@ckeditor/ckeditor5-track-changes 45.1.0-alpha.3 → 45.1.0-alpha.4
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
|
-
_0x5651e5(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3e9b6a,_0x58f9e4){super(),this['id']=_0x58f9e4['id'],this['type']=_0x58f9e4['type'],this['subType']=_0x58f9e4['subType']||null,this['author']=_0x58f9e4['author'],this['creator']=_0x58f9e4['creator']||_0x58f9e4['author'],this['isExternal']=Boolean(_0x58f9e4['attributes']&&_0x58f9e4['attributes']['@external']),this['data']=null,this['_model']=_0x3e9b6a,this['_onAccept']=_0x58f9e4['onAccept'],this['_onDiscard']=_0x58f9e4['onDiscard'],this['_onAttributesChange']=_0x58f9e4['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x58f9e4['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 _0xef83d1=this;for(;_0xef83d1['previous'];)_0xef83d1=_0xef83d1['previous'];return _0xef83d1;}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'](_0x445e89){this['_markerNames']['add'](_0x445e89);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x63ed2c=>this['_model']['markers']['get'](_0x63ed2c))['filter'](_0x1cfd03=>_0x1cfd03);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5e7d1d=>{for(const _0x28bc18 of this['getMarkers']())_0x5e7d1d['removeMarker'](_0x28bc18);}),this['_markerNames']['clear']();}['removeMarker'](_0x595265){this['_model']['change'](_0x32a98a=>{_0x32a98a['removeMarker'](_0x595265);}),this['_markerNames']['delete'](_0x595265);}['addRange'](_0x34f62f){const _0x32ed0c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x32ed0c),this['_model']['change'](_0x13db18=>{_0x13db18['addMarker'](_0x32ed0c,{'range':_0x34f62f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4b72d7){for(const _0x1d2330 of this['getRanges']())if(_0x1d2330['isIntersecting'](_0x4b72d7))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3ac021=>_0x3ac021['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1f2167,_0x4a23ca)=>[..._0x1f2167,..._0x4a23ca['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1c9c05=this['getRanges']();if(0x1!=_0x1c9c05['length'])return null;const _0x4684e2=_0x1c9c05[0x0],_0x3399d6=_0x4684e2['start']['nodeAfter'],_0x3a91f5=_0x4684e2['end']['nodeBefore'];return _0x3399d6 instanceof _0x5affcb?_0x3399d6!=_0x3a91f5?null:_0x3399d6: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 _0x5d9bb1=[];let _0x3b8ac6=this['head'];for(;_0x3b8ac6;)_0x5d9bb1['push'](_0x3b8ac6),_0x3b8ac6=_0x3b8ac6['next'];return _0x5d9bb1;}['setAttribute'](_0x3afb3c,_0x1ea45d){const _0xa7e358=_0xaf7dc4(this['attributes']);_0x344a4a(_0xa7e358,_0x3afb3c,_0x1ea45d),_0x511cf6(_0xa7e358,this['attributes'])||(this['attributes']=_0xa7e358,this['_onAttributesChange'](_0xa7e358));}['removeAttribute'](_0x14a818){const _0xa9b06a=_0xaf7dc4(this['attributes']);_0x5b161e(_0xa9b06a,_0x14a818),_0x511cf6(_0xa9b06a,this['attributes'])||(this['attributes']=_0xa9b06a,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 _0x51cb10()['substr'](0x1,0x5);}}function c(_0x390bde,_0x14a5f0,_0x389eea){const _0x4ef7de=_0x390bde['t'],t=_0x390bde['t'];switch(_0x14a5f0){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',_0x389eea);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x389eea);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x389eea);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x389eea);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x389eea);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',_0x389eea);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x389eea);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',_0x389eea);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x389eea);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x389eea);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x389eea);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x389eea);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x389eea);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x389eea);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x389eea);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x389eea);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x389eea);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x389eea);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x389eea);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x389eea);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x389eea);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x389eea);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x389eea);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x389eea);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x389eea);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'},_0x389eea);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x389eea);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x389eea);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x389eea);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x389eea);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x389eea);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x389eea);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x389eea);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'},_0x389eea);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x389eea);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x389eea);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x389eea);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x389eea);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'},_0x389eea);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x389eea);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'},_0x389eea);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'},_0x389eea);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x389eea);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'},_0x389eea);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x389eea);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'},_0x389eea);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x389eea);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x389eea);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'},_0x389eea);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x389eea);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 _0x4ef7de({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x389eea);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4ef7de({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x389eea);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x389eea);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'},_0x389eea);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'},_0x389eea);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'},_0x389eea);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x14a5f0;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3162df,_0x2fa080){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3162df,this['_locale']=_0x2fa080;}['getDescriptions'](_0x370bd2){const _0x25fa6a=[],_0x2a7cf8=new Set(),_0x5a616b=new Set();for(let _0x27cdec=0x0;_0x27cdec<_0x370bd2['length'];_0x27cdec++){const _0x5a9892=_0x370bd2[_0x27cdec];if(!_0x5a9892['isInContent'])continue;const _0x3d6e1a=this['_handleCustomCallbackDescription'](_0x5a9892);if(_0x3d6e1a){if(null!=_0x5a9892['subType']){if(_0x2a7cf8['has'](_0x5a9892['subType']))continue;_0x2a7cf8['add'](_0x5a9892['subType']);}_0x25fa6a['push'](_0x3d6e1a);}else{if('attribute'!=_0x5a9892['type'])'insertion'!=_0x5a9892['type']&&'deletion'!=_0x5a9892['type']||this['_handleInsertRemoveSuggestionDescription'](_0x25fa6a,_0x5a9892,_0x370bd2[_0x27cdec+0x1]);else{const _0x2cf1bb=_0x5a9892['data']['key'];if(_0x5a616b['has'](_0x2cf1bb))continue;_0x5a616b['add'](_0x5a9892['data']['key']),_0x2cf1bb==u?this['_handleRenameSuggestionDescription'](_0x25fa6a,_0x5a9892):this['_handleAttributeSuggestionDescription'](_0x25fa6a,_0x5a9892);}}}return this['_resolveDescriptionItems'](_0x25fa6a);}['registerDescriptionCallback'](_0x26b356){this['_customCallbacks']['push'](_0x26b356);}['registerElementLabel'](_0x4e3327,_0x1aa8de,_0x2ba37e=_0x2a07cf['normal']){'function'==typeof _0x4e3327?_0x3ca681(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4e3327,'label':_0x1aa8de,'priority':_0x2ba37e}):this['_itemLabels']['set'](_0x4e3327,_0x1aa8de);}['registerAttributeLabel'](_0x1704dc,_0x2db554){this['_attributeLabels']['set'](_0x1704dc,_0x2db554);}['getItemLabel'](_0x24f9dc,_0x20f0b2=0x1){let _0x1bad57;for(const _0x15a335 of this['_itemLabelsCallbacks'])if(_0x15a335['matchingCallback'](_0x24f9dc)){_0x1bad57=_0x15a335['label'];break;}return _0x1bad57||(_0x1bad57=this['_itemLabels']['get'](_0x24f9dc['name'])),_0x1bad57?_0x1bad57(_0x20f0b2):0x1!==_0x20f0b2?_0x20f0b2+'\x20'+_0x24f9dc['name']+'s':''+_0x24f9dc['name'];}['_addDescriptionItems'](_0x9df83d,_0x20fe70){const _0x390d0e=_0x20fe70['getFirstRange']()['getWalker'](),_0x40fa54='insertion'==_0x20fe70['type']?'add':'remove';for(const _0x46063e of _0x390d0e){const _0x33d1f4=_0x46063e['item'],_0x4e02fd=_0x9df83d[_0x9df83d['length']-0x1];if(_0x33d1f4['is']('$textProxy'))_0x4e02fd&&_0x4e02fd['type']['indexOf']('Container')>-0x1&&_0x9df83d['pop'](),_0x4e02fd&&'text'==_0x4e02fd['type']?_0x4e02fd[_0x40fa54]+=_0x33d1f4['data']:_0x9df83d['push']({'type':'text','add':'add'==_0x40fa54?_0x33d1f4['data']:'','remove':'remove'==_0x40fa54?_0x33d1f4['data']:''});else{if(this['_schema']['isObject'](_0x33d1f4)){const _0x157854=_0x33d1f4;if(_0x4e02fd&&_0x4e02fd['type']['indexOf']('Container')>-0x1&&_0x9df83d['pop'](),'elementEnd'==_0x46063e['type'])continue;_0x4e02fd&&_0x4e02fd['type']==_0x40fa54+'Object'&&_0x4e02fd['element']['name']==_0x157854['name']?_0x4e02fd['quantity']++:_0x9df83d['push']({'type':_0x40fa54+'Object','element':_0x157854,'quantity':0x1}),_0x390d0e['skip'](_0x15c8f6=>!('elementEnd'==_0x15c8f6['type']&&_0x15c8f6['item']==_0x33d1f4));}else{if(this['_schema']['checkChild'](_0x33d1f4,'$text')||_0x33d1f4['is']('element','softBreak')){const _0x1311a4=_0x33d1f4;if('add'==_0x40fa54&&'elementStart'==_0x46063e['type']||'remove'==_0x40fa54&&'elementEnd'==_0x46063e['type'])continue;if(_0x4e02fd&&-0x1==_0x4e02fd['type']['indexOf']('Container')){'text'==_0x4e02fd['type']&&(_0x4e02fd[_0x40fa54]+='\x0a');continue;}let _0x59f0cb;if(_0x59f0cb='add'==_0x40fa54?_0x1311a4['nextSibling']&&!this['_schema']['isObject'](_0x1311a4['nextSibling'])?_0x1311a4['nextSibling']:null:_0x1311a4['previousSibling']&&!this['_schema']['isObject'](_0x1311a4['previousSibling'])?_0x1311a4['previousSibling']:null,_0x1311a4['isEmpty']||_0x59f0cb&&_0x59f0cb['isEmpty']){const _0x288281=_0x59f0cb&&_0x59f0cb['isEmpty']?_0x59f0cb:_0x1311a4;_0x4e02fd&&_0x4e02fd['type']==_0x40fa54+'EmptyContainer'&&_0x4e02fd['element']['name']==_0x288281['name']?_0x4e02fd['quantity']++:_0x9df83d['push']({'type':_0x40fa54+'EmptyContainer','element':_0x288281,'quantity':0x1});}else _0x9df83d['push']({'type':_0x40fa54+'Container','element':_0x1311a4});}}}}}['_resolveDescriptionItems'](_0x50c8c4){const _0x40a4b3=this['_locale'],_0x3accf6=[],_0xb5c5c1=[],_0x2065bf=[];for(const _0x15ee17 of _0x50c8c4)switch(_0x15ee17['type']){case'text':if(_0x15ee17['add']=_0x15ee17['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x15ee17['remove']=_0x15ee17['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x15ee17['add']&&''!=_0x15ee17['remove']){_0x3accf6['push']({'type':'replace','content':c(_0x40a4b3,'REPLACE_TEXT',['\x22'+_0x15ee17['remove']+'\x22','\x22'+_0x15ee17['add']+'\x22'])});continue;}if(null!=_0x15ee17['add']['match'](/^ +$/)){_0x3accf6['push']({'type':'insertion','content':c(_0x40a4b3,'*Insert:*\x20%0',c(_0x40a4b3,'ELEMENT_SPACE',_0x15ee17['add']['length']))});continue;}if(null!=_0x15ee17['remove']['match'](/^ +$/)){_0x3accf6['push']({'type':'deletion','content':c(_0x40a4b3,'*Remove:*\x20%0',c(_0x40a4b3,'ELEMENT_SPACE',_0x15ee17['remove']['length']))});continue;}if(''!=_0x15ee17['add']){_0x3accf6['push']({'type':'insertion','content':c(_0x40a4b3,'*Insert:*\x20%0','\x22'+_0x15ee17['add']+'\x22')});continue;}_0x3accf6['push']({'type':'deletion','content':c(_0x40a4b3,'*Remove:*\x20%0','\x22'+_0x15ee17['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3accf6['push']({'type':'insertion','content':c(_0x40a4b3,'*Insert:*\x20%0',this['getItemLabel'](_0x15ee17['element'],_0x15ee17['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3accf6['push']({'type':'deletion','content':c(_0x40a4b3,'*Remove:*\x20%0',this['getItemLabel'](_0x15ee17['element'],_0x15ee17['quantity']))});continue;case'addContainer':_0x3accf6['push']({'type':'insertion','content':c(_0x40a4b3,'*Split:*\x20%0',this['getItemLabel'](_0x15ee17['element'],_0x15ee17['quantity']))});continue;case'removeContainer':_0x3accf6['push']({'type':'deletion','content':c(_0x40a4b3,'*Merge:*\x20%0',this['getItemLabel'](_0x15ee17['element'],_0x15ee17['quantity']))});continue;case'addFormat':_0xb5c5c1['push'](_0x15ee17['key']);continue;case'removeFormat':_0x2065bf['push'](_0x15ee17['key']);continue;default:_0x3accf6['push'](_0x15ee17);}if(_0xb5c5c1['length']){const _0x5c3d23=_0xb5c5c1['map'](_0x245234=>this['_attributeLabels']['has'](_0x245234)?this['_attributeLabels']['get'](_0x245234):_0x245234)['join'](',\x20');_0x3accf6['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x5c3d23)});}if(_0x2065bf['length']){const _0x161aab=_0x2065bf['map'](_0x299955=>this['_attributeLabels']['has'](_0x299955)?this['_attributeLabels']['get'](_0x299955):_0x299955)['join'](',\x20');_0x3accf6['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x161aab)});}return _0x3accf6;}['_handleCustomCallbackDescription'](_0x5ba772){for(const _0xa6aeb1 of this['_customCallbacks']){const _0x15af81=_0xa6aeb1(_0x5ba772);if(_0x15af81&&'type'in _0x15af81)return _0x15af81;}}['_handleAttributeSuggestionDescription'](_0xf309c9,_0x36751f){const _0x10c515=_0x36751f['data'],_0x16176d=void 0x0===_0x10c515['newValue']?'removeFormat':'addFormat';_0xf309c9['push']({'type':_0x16176d,'key':_0x10c515['key']});}['_handleRenameSuggestionDescription'](_0x47ccd0,_0x36043b){_0x47ccd0['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x36043b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3219de,_0x14a91d,_0x15e44a){if(this['_addDescriptionItems'](_0x3219de,_0x14a91d),_0x15e44a&&_0x15e44a['getFirstRange']()&&!_0x14a91d['getFirstRange']()['end']['isEqual'](_0x15e44a['getFirstRange']()['start'])){const _0x52914e=_0x3219de[_0x3219de['length']-0x1],_0x262879='insertion'==_0x14a91d['type']?'add':'remove';_0x52914e&&'text'==_0x52914e['type']&&(_0x52914e[_0x262879]+='\x0a');}}}class U extends _0x1f2d8e{['afterInit'](){const _0x47cc6d=this['editor'],_0x3b71de=_0x47cc6d['plugins']['get']('TrackChangesEditing');_0x47cc6d['commands']['get']('showAIAssistant')&&_0x3b71de['enableCommand']('showAIAssistant');}}class V extends _0x1f2d8e{['afterInit'](){const _0x35b568=this['editor'],_0x10aac2=_0x35b568['locale'];if(!_0x35b568['plugins']['has']('AlignmentEditing'))return;const _0x47e989=_0x35b568['plugins']['get']('TrackChangesEditing');_0x47e989['enableDefaultAttributesIntegration']('alignment'),_0x47e989['registerBlockAttribute']('alignment'),_0x47e989['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x10aac2,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x509f22=this['editor'],_0x367d3e=_0x509f22['locale'];_0x509f22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38fd15=>{if('formatBlock'!=_0x38fd15['type'])return;const {data:_0x17e3dc}=_0x38fd15;if(_0x17e3dc&&'alignment'==_0x17e3dc['commandName']){const _0x111893=_0x17e3dc['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x367d3e,'*Format:*\x20%0',function(_0x57a11a){switch(_0x57a11a){case'left':return c(_0x367d3e,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x367d3e,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x367d3e,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x367d3e,'FORMAT_JUSTIFY_TEXT');}}(_0x111893))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x1f2d8e{['afterInit'](){const _0xbfe5b9=this['editor'],_0x6def3c=_0xbfe5b9['plugins']['get']('TrackChangesEditing'),_0x4cddb=_0xbfe5b9['locale'];for(const _0x15c24e of Zt){if(!_0xbfe5b9['plugins']['has'](_0x15c24e))continue;const _0x5714e9=_0x15c24e['slice'](0x0,-0x7)['toLowerCase'](),_0x365d00='FORMAT_'+_0x5714e9['toUpperCase']();_0x6def3c['enableDefaultAttributesIntegration'](_0x5714e9),_0x6def3c['registerInlineAttribute'](_0x5714e9),_0x6def3c['descriptionFactory']['registerAttributeLabel'](_0x5714e9,c(_0x4cddb,_0x365d00));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25ee5d=this['editor'],_0x26e7c7=_0x25ee5d['locale'],_0x4165be=_0x25ee5d['plugins']['get']('TrackChangesEditing');function _0x5d3ba4(_0x28ca0c,_0x1f01c8){_0x4165be['descriptionFactory']['registerDescriptionCallback'](_0x126f8f=>{if('formatInline'!=_0x126f8f['type'])return;const {data:_0x235163}=_0x126f8f;return _0x235163&&_0x235163['commandName']===_0x28ca0c?_0x235163['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x26e7c7,'*Format:*\x20%0',_0x1f01c8)}:{'type':'format','content':c(_0x26e7c7,'*Remove\x20format:*\x20%0',_0x1f01c8)}:void 0x0;});}_0x5d3ba4('bold',c(_0x26e7c7,'FORMAT_BOLD')),_0x5d3ba4('italic',c(_0x26e7c7,'FORMAT_ITALIC')),_0x5d3ba4('underline',c(_0x26e7c7,'FORMAT_UNDERLINE')),_0x5d3ba4('code',c(_0x26e7c7,'FORMAT_CODE')),_0x5d3ba4('strikethrough',c(_0x26e7c7,'FORMAT_STRIKETHROUGH')),_0x5d3ba4('subscript',c(_0x26e7c7,'FORMAT_SUBSCRIPT')),_0x5d3ba4('superscript',c(_0x26e7c7,'FORMAT_SUPERSCRIPT'));}}class G extends _0x1f2d8e{['afterInit'](){const _0x458bb7=this['editor'],_0x181bd8=_0x458bb7['locale'];if(!_0x458bb7['plugins']['has']('BlockQuoteEditing'))return;const _0x5dcb39=_0x458bb7['plugins']['get']('TrackChangesEditing'),_0xed0443=this['editor']['commands']['get']('blockQuote');_0x5dcb39['enableCommand']('blockQuote',(_0x5d107e,_0x2091cf={})=>{const _0x5c7305=this['editor']['model']['document']['selection'],_0x3cfc57=_0x2091cf&&void 0x0!==_0x2091cf['forceValue']?_0x2091cf['forceValue']:!_0xed0443['value'];let _0x27e6ea=[];if(_0x3cfc57){const _0x10cec0=Array['from'](_0x5c7305['getSelectedBlocks']())['filter'](_0x568236=>oo(_0x568236)||function(_0x346ab0,_0x207a0b){const _0x4d892b=_0x207a0b['checkChild'](_0x346ab0['parent'],'blockQuote'),_0x46f250=_0x207a0b['checkChild'](['$root','blockQuote'],_0x346ab0);return _0x4d892b&&_0x46f250;}(_0x568236,this['editor']['model']['schema']));_0x27e6ea=to(_0x10cec0,_0x458bb7['model']);}else{const _0x18df13=Array['from'](_0x5c7305['getSelectedBlocks']())['filter'](_0x23199e=>oo(_0x23199e));_0x27e6ea=to(_0x18df13,_0x458bb7['model']);}_0x458bb7['model']['change'](()=>{for(const _0x3d915b of _0x27e6ea)_0x5dcb39['markBlockFormat'](_0x3d915b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3cfc57}]});});}),_0x5dcb39['descriptionFactory']['registerDescriptionCallback'](_0x4fcfb8=>{const {data:_0x467b05}=_0x4fcfb8;if(_0x467b05&&'blockQuote'==_0x467b05['commandName']){const _0x22205b=c(_0x181bd8,'ELEMENT_BLOCK_QUOTE');return _0x467b05['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x181bd8,'*Set\x20format:*\x20%0',_0x22205b)}:{'type':'format','content':c(_0x181bd8,'*Remove\x20format:*\x20%0',_0x22205b)};}});}}function oo(_0x4f45ff){return'blockQuote'==_0x4f45ff['parent']['name'];}class L extends _0x1f2d8e{['afterInit'](){const _0xa1c0b0=this['editor'],_0x26027b=_0xa1c0b0['locale'],_0x1002e2=_0xa1c0b0['plugins']['get']('TrackChangesEditing');_0xa1c0b0['plugins']['has']('BookmarkEditing')&&(_0x1002e2['enableCommand']('insertBookmark'),_0x1002e2['enableDefaultAttributesIntegration']('updateBookmark'),_0x1002e2['registerBlockAttribute']('bookmarkId'),_0x1002e2['descriptionFactory']['registerDescriptionCallback'](_0x2f3b0d=>{if('insertion'!=_0x2f3b0d['type']&&'deletion'!=_0x2f3b0d['type']&&'attribute'!=_0x2f3b0d['type'])return;const _0x28c401=_0x2f3b0d['getContainedElement']();if(null==_0x28c401)return;if(!_0x28c401['is']('element','bookmark'))return;const _0x5619a3=_0x28c401['getAttribute']('bookmarkId');if('insertion'==_0x2f3b0d['type'])return{'type':'insertion','content':c(_0x26027b,'*Insert:*\x20%0','\x22'+_0x5619a3+'\x22\x20'+c(_0x26027b,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2f3b0d['type'])return{'type':'deletion','content':c(_0x26027b,'*Remove:*\x20%0','\x22'+_0x5619a3+'\x22\x20'+c(_0x26027b,'ELEMENT_BOOKMARK'))};const {data:_0xedbfe5}=_0x2f3b0d;if(!_0xedbfe5||'bookmarkId'!=_0xedbfe5['key'])return;return{'type':'format','content':c(_0x26027b,'*Set\x20bookmark:*\x20%0','\x22'+_0xedbfe5['newValue']+'\x22')};}));}}class J extends _0x1f2d8e{['afterInit'](){const _0x529056=this['editor'];_0x529056['plugins']['has']('CaseChange')&&(_0x529056['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x529056['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x529056['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x1f2d8e{['afterInit'](){const _0x430b10=this['editor'];_0x430b10['commands']['get']('ckbox')&&_0x430b10['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x1f2d8e{['afterInit'](){const _0x26cc58=this['editor'];if(!_0x26cc58['plugins']['has']('CodeBlock'))return;const _0x23965b=_0x26cc58['plugins']['get']('TrackChangesEditing'),_0x3ee9ac=_0x26cc58['locale'],_0x489169=_0x26cc58['config']['get']('codeBlock')['languages'],_0x14eff6=_0x26cc58['commands']['get']('codeBlock');_0x23965b['enableCommand']('indentCodeBlock'),_0x23965b['enableCommand']('outdentCodeBlock'),_0x23965b['enableCommand']('codeBlock',(_0x1ccca7,_0x55da49={})=>{const _0x595c10=_0x26cc58['model'],_0x503dd0=_0x26cc58['model']['document']['selection'],_0x4300a6=_0x55da49&&void 0x0!==_0x55da49['forceValue']?_0x55da49['forceValue']:!_0x14eff6['value'];let _0x182f81;_0x55da49['language']||(_0x55da49['language']=_0x489169[0x0]['language']),_0x182f81=_0x4300a6?Array['from'](_0x503dd0['getSelectedBlocks']())['filter'](_0x160a0b=>eo(_0x160a0b)||function(_0x8c3642,_0x12b09c){if(_0x8c3642['is']('rootElement')||_0x12b09c['isLimit'](_0x8c3642))return!0x1;return _0x12b09c['checkChild'](_0x8c3642['parent'],'codeBlock');}(_0x160a0b,_0x595c10['schema'])):Array['from'](_0x503dd0['getSelectedBlocks']())['filter'](_0x457111=>eo(_0x457111));const _0x261c8d=to(_0x182f81,_0x595c10);_0x595c10['change'](()=>{for(const _0xe5b017 of _0x261c8d)_0x23965b['markBlockFormat'](_0xe5b017,{'commandName':'codeBlock','commandParams':[{..._0x55da49,'forceValue':_0x4300a6}],'formatGroupId':'blockName'});});}),(_0x23965b['descriptionFactory']['registerElementLabel']('codeBlock',_0x20fadd=>c(_0x3ee9ac,'ELEMENT_CODE_BLOCK',_0x20fadd)),_0x23965b['descriptionFactory']['registerDescriptionCallback'](_0x32352f=>{if('formatBlock'!=_0x32352f['type'])return;const _0x2cb1c0=_0x3ee9ac['t'],{data:_0x3027bb}=_0x32352f;if(!_0x3027bb||'codeBlock'!=_0x3027bb['commandName'])return;const _0x452b39=_0x3027bb['commandParams'][0x0]['language'],_0x1d986b=_0x2cb1c0(_0x489169['find'](_0x51555e=>_0x51555e['language']===_0x452b39)['label'])['toLowerCase']();return _0x3027bb['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3ee9ac,'*Set\x20format:*\x20%0',c(_0x3ee9ac,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1d986b+')')}:{'type':'format','content':c(_0x3ee9ac,'*Remove\x20format:*\x20%0',c(_0x3ee9ac,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x517cb4){return'codeBlock'==_0x517cb4['name'];}class q extends _0x1f2d8e{['afterInit'](){const _0x14695c=this['editor'];if(!_0x14695c['plugins']['has']('CommentsEditing'))return;_0x14695c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4dc13a,_0x3f4f25,_0x3eff24){const _0x398846=[];for(const _0x3cc787 of _0x3f4f25['getItems']())_0x3cc787['hasAttribute'](_0x4dc13a)&&_0x398846['push'](_0x3eff24['createRangeOn'](_0x3cc787));return _0x398846;}function Fe(_0x529807,_0x30f631,{showActiveMarker:_0x4c864a=!0x0}={}){const _0x42e5ba=_0x529807['plugins']['get']('TrackChangesEditing');return(_0x467eb9,_0x3c71fe,_0x517d9e)=>{if(!_0x517d9e['consumable']['test'](_0x3c71fe['markerRange'],_0x467eb9['name']))return;const _0x3baeae=_0x3c71fe['markerRange']['getWalker'](),_0x30bb4f=_0x3c71fe['markerRange']['start'],_0x403602=_0x529807['model']['schema'];let _0x1361bc=null,_0x553eca=null,_0x3a44aa=!0x1,_0x146328=!0x1;for(const _0x5b2d81 of _0x3baeae){const _0x3e6e8b=_0x5b2d81['item'];_0x3a44aa=_0x3a44aa||_0x403602['isContent'](_0x3e6e8b);const _0x592d57=_0x517d9e['mapper']['toViewElement'](_0x3e6e8b);if(_0x592d57&&_0x592d57['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5b2d81['type']&&(_0x403602['isBlock'](_0x3e6e8b)&&!_0x403602['isLimit'](_0x3e6e8b)&&(_0x3e6e8b['nextSibling']||_0x30bb4f['isAtEnd']?_0x1361bc&&_0x1361bc['parent']==_0x3e6e8b||(_0x1361bc=_0x3e6e8b,_0x9e5eff(_0x5b2d81['previousPosition']),_0x146328=!0x0):_0x553eca=_0x553eca||_0x5b2d81['previousPosition']));}function _0x9e5eff(_0x26fdbd){const {id:_0x5f22ff,authorId:_0xcb96b0}=_0x42e5ba['_splitMarkerName'](_0x3c71fe['markerName']),_0x1ad86f=_0x517d9e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x30f631,'data-suggestion':_0x5f22ff,'data-author-id':_0xcb96b0}),_0x3768db=_0x517d9e['mapper']['toViewPosition'](_0x26fdbd);_0x4c864a&&_0x42e5ba['activeMarkers']['includes'](_0x3c71fe['markerName'])&&_0x517d9e['writer']['addClass']('ck-suggestion-marker--active',_0x1ad86f),_0x517d9e['writer']['insert'](_0x3768db,_0x1ad86f),_0x517d9e['mapper']['bindElementToMarker'](_0x1ad86f,_0x3c71fe['markerName']);}_0x3a44aa||_0x146328||!_0x553eca||_0x9e5eff(_0x553eca);};}class z extends _0x1f2d8e{static get['requires'](){return[_0x1d9661];}['init'](){const _0x456b43=this['editor'],_0x1fc9ce=_0x456b43['plugins']['get']('TrackChangesEditing');_0x1fc9ce['enableCommand']('delete');const _0x589b8e=_0x456b43['commands']['get']('deleteForward');_0x1fc9ce['enableCommand']('deleteForward',(_0x93c219,_0x572668={})=>{const _0x480378=_0x456b43['model']['createSelection'](_0x456b43['model']['document']['selection']);_0x480378['isCollapsed']&&_0x456b43['model']['modifySelection'](_0x480378,{'direction':'forward','unit':_0x572668['unit']});const _0x3a5723=_0x480378['getFirstRange'](),_0x530f10=_0x41f0a3['fromRange'](_0x3a5723);let _0x99b777;_0x93c219(_0x572668),_0x99b777='$graveyard'==_0x530f10['root']['rootName']?_0x456b43['model']['createRange'](_0x3a5723['start']):_0x456b43['model']['createRange'](_0x530f10['start'],_0x530f10['end']),_0x530f10['detach'](),_0x456b43['model']['enqueueChange'](_0x589b8e['buffer']['batch'],_0x337318=>{_0x589b8e['buffer']['lock'](),_0x337318['setSelection'](_0x337318['createRange'](_0x99b777['end'])),_0x589b8e['buffer']['unlock']();});}),_0x456b43['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x456b43,'merge'),{'priority':'high'}),_0x456b43['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3abc51,_0x12dba2,_0x2120f7)=>{_0x2120f7['options']['showSuggestionHighlights']&&Fe(_0x456b43,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3abc51,_0x12dba2,_0x2120f7);},{'priority':'high'}),_0x456b43['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x50f5ec,_0x257d45,_0x22d5f3)=>{const _0x5bc04f=_0x22d5f3['mapper']['markerNameToElements'](_0x257d45['markerName']);if(_0x5bc04f){for(const _0x46cff1 of _0x5bc04f)_0x46cff1['is']('uiElement')&&(_0x22d5f3['mapper']['unbindElementFromMarkerName'](_0x46cff1,_0x257d45['markerName']),_0x22d5f3['writer']['remove'](_0x46cff1));}},{'priority':'high'});}}class W extends _0x1f2d8e{['afterInit'](){const _0x101e44=this['editor'];if(!_0x101e44['plugins']['has']('ListEditing'))return;const _0x522ec0=_0x101e44['locale'],_0x1acb7c=_0x101e44['plugins']['get']('TrackChangesEditing'),_0x1e1bf4=_0x101e44['plugins']['has']('TodoListEditing'),_0x43d7f1=!!_0x101e44['config']['get']('list.multiBlock');function _0x53998d(_0x16d968){return{'type':'format','content':''+c(_0x522ec0,'*Set\x20format:*\x20%0',_0x16d968)};}function _0x506de5(_0x40124c){return{'type':'format','content':''+c(_0x522ec0,'*Remove\x20format:*\x20%0',_0x40124c)};}_0x1acb7c['enableDefaultAttributesIntegration']('numberedList'),_0x1acb7c['enableDefaultAttributesIntegration']('bulletedList'),_0x1acb7c['enableDefaultAttributesIntegration']('customNumberedList'),_0x1acb7c['enableDefaultAttributesIntegration']('customBulletedList'),_0x1acb7c['enableDefaultAttributesIntegration']('indentList'),_0x1acb7c['enableDefaultAttributesIntegration']('outdentList'),_0x1acb7c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1acb7c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1acb7c['registerBlockAttribute']('listItemId'),_0x1acb7c['registerBlockAttribute']('listType'),_0x1acb7c['registerBlockAttribute']('listIndent'),_0x43d7f1&&(_0x1acb7c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1acb7c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1e1bf4&&(_0x1acb7c['enableDefaultAttributesIntegration']('todoList'),_0x1acb7c['enableDefaultAttributesIntegration']('checkTodoList'),_0x1acb7c['registerBlockAttribute']('todoListChecked'),_0x1acb7c['descriptionFactory']['registerDescriptionCallback'](_0x5b3c05=>{const {data:_0x5ae34a}=_0x5b3c05;if(_0x5ae34a&&'todoListChecked'==_0x5ae34a['key'])return{'type':'format','content':_0x5ae34a['newValue']?c(_0x522ec0,'*Check\x20item*'):c(_0x522ec0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3e6532=>{if(_0x3e6532['batch']['isUndo'])return!0x1;let _0x5a3082=!0x1;const _0x2a2655=_0x1acb7c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5541de=>'todoListChecked'===_0x1acb7c['_getAttributeKey'](_0x5541de));for(const _0x4b00d2 of _0x2a2655){'todo'!=_0x4b00d2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1acb7c['_findSuggestions'](_0x4b00d2['getFirstRange'](),'attribute')['find'](_0x2d5a8e=>'listType'===_0x1acb7c['_getAttributeKey'](_0x2d5a8e['suggestion']))||(_0x3e6532['removeMarker'](_0x4b00d2['getFirstMarker']()),_0x5a3082=!0x0));}return _0x5a3082;})),_0x1acb7c['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x522ec0,'FORMAT_INDENT'));const _0x1dc163={'type':'format','content':''};_0x1acb7c['descriptionFactory']['registerDescriptionCallback'](_0x23d094=>{const {data:_0x180f60}=_0x23d094;if(!_0x180f60||'listType'!=_0x180f60['key'])return;let _0x24f2e8=_0x23d094['head'];for(;_0x24f2e8;){if(_0x24f2e8['data']&&(('listStyle'==_0x24f2e8['data']['key']||'listMarkerStyle'==_0x24f2e8['data']['key'])&&(_0x24f2e8['data']['newValue']&&'default'!=_0x24f2e8['data']['newValue']||'default'!=_0x24f2e8['data']['oldValue']&&!_0x180f60['newValue'])||!_0x43d7f1&&_0x24f2e8['data']['key']==u))return _0x1dc163;_0x24f2e8=_0x24f2e8['next'];}if(null==_0x180f60['newValue'])switch(_0x180f60['oldValue']){case'bulleted':return _0x506de5(c(_0x522ec0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x506de5(c(_0x522ec0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x506de5(c(_0x522ec0,'ELEMENT_TODO_LIST'));}switch(_0x180f60['newValue']){case'bulleted':return _0x53998d(c(_0x522ec0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x53998d(c(_0x522ec0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x53998d(c(_0x522ec0,'ELEMENT_TODO_LIST'));}}),_0x1acb7c['descriptionFactory']['registerDescriptionCallback'](_0xae339=>{const {data:_0xf21186}=_0xae339;if(_0xf21186&&'listIndent'==_0xf21186['key'])return null==_0xf21186['newValue']||null==_0xf21186['oldValue']&&0x0==_0xf21186['newValue']?_0x1dc163:void 0x0;}),_0x1acb7c['descriptionFactory']['registerDescriptionCallback'](_0x475757=>{if('attribute'!=_0x475757['type'])return;const {data:_0x4ab060}=_0x475757;if(!_0x4ab060||'listItemId'!=_0x4ab060['key'])return;const _0x4f8025=Te(_0x475757);return'newValue'==_0x4f8025?{'type':'format','content':c(_0x522ec0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4f8025?{'type':'format','content':c(_0x522ec0,'*Split:*\x20list\x20item')}:_0x1dc163;}),_0x101e44['model']['document']['registerPostFixer'](_0x31671f=>this['listItemIdFixer'](_0x31671f)),_0x101e44['model']['document']['registerPostFixer'](_0xba65e7=>this['noTrackChangesFixer'](_0xba65e7)),_0x101e44['model']['document']['on']('change:data',(_0x4c585e,_0x12cc0b)=>{if(_0x12cc0b['isUndo']||!_0x12cc0b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x251485){if(_0x251485['batch']['isUndo']||!_0x251485['batch']['isLocal'])return!0x1;let _0x3711e6=!0x1;const _0x9684b0=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c478a=>_0x1c478a['data']&&'listItemId'==_0x1c478a['data']['key'])['filter'](_0x494d43=>_0x494d43['data']['newValue']&&_0x494d43['data']['oldValue']);for(const _0x4be069 of _0x9684b0)Te(_0x4be069)||(_0x251485['removeMarker'](_0x4be069['getFirstMarker']()),_0x3711e6=!0x0);return _0x3711e6;}['noTrackChangesFixer'](_0x301562){if(_0x301562['batch']['isUndo']||!_0x301562['batch']['isLocal'])return!0x1;const _0x25edc1=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x25edc1['trackChangesCommand']['value'])return!0x1;let _0x2beb99=!0x1;const _0x4e1966=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5da76b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x224325=>'attribute'==_0x224325['type'])['filter'](_0x58523d=>_0x4e1966['includes'](_0x58523d['attributeKey']));if(0x0==_0x5da76b['length'])return _0x2beb99;for(const _0x1300e3 of _0x5da76b){const _0x4ca7b6=_0x25edc1['_findSuggestions'](_0x1300e3['range'],'attribute')['filter'](_0x3341c9=>!_0x3341c9['meta']['isNextTo'])['map'](_0xb46b80=>_0xb46b80['suggestion'])['filter'](_0x1f131c=>{const _0xa464cf=_0x25edc1['_getAttributeKey'](_0x1f131c);return _0x4e1966['includes'](_0xa464cf);});if(_0x4ca7b6['length']){for(const _0x5973c5 of _0x4ca7b6)_0x301562['removeMarker'](_0x5973c5['getFirstMarker']());_0x2beb99=!0x0;}}return _0x2beb99;}['assureChains'](){const _0x35cee3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b06ff=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x13840d;const _0x944d9c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5bce99=>{if(_0x5bce99['data']['oldRange']||!_0x5bce99['data']['newRange'])return null;if(!_0x5bce99['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x17e029}=_0x35cee3['_splitMarkerName'](_0x5bce99['name']);if(!_0x35cee3['hasSuggestion'](_0x17e029))return null;const _0x259cd1=_0x35cee3['getSuggestion'](_0x17e029);return _0x4b06ff['includes'](_0x259cd1['data']['key']);})['map'](_0x318e12=>{const {id:_0x3c97c2}=_0x35cee3['_splitMarkerName'](_0x318e12['name']),_0x1585b3=_0x35cee3['getSuggestion'](_0x3c97c2);return _0x13840d=_0x1585b3['attributes']['groupId'],_0x1585b3['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x944d9c['size'])return;const _0x927692=_0x35cee3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49c469=>'attribute'==_0x49c469['type']&&_0x49c469['data']&&_0x4b06ff['includes'](_0x49c469['data']['key'])&&_0x49c469['attributes']['groupId']!=_0x13840d)['map'](_0x4c8f13=>({'listItem':_0x4c8f13['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4c8f13['attributes']['groupId']})),_0x1deb7f=new Set();for(const {groupId:_0x527f31,listItem:_0x1d8f91}of _0x927692)_0x944d9c['has'](_0x1d8f91)&&_0x1deb7f['add'](_0x527f31);for(const _0x4ef4a4 of _0x35cee3['getSuggestions']())_0x1deb7f['has'](_0x4ef4a4['attributes']['groupId'])&&_0x4ef4a4['setAttribute']('groupId',_0x13840d);}['_supportLegacySuggestions'](){const _0x242224=this['editor'],_0x5dde0d=_0x242224['locale'],_0x4c6e1d=_0x242224['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4c6e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4a9b00,_0x23394d){const _0x5dcc26=[];for(let _0x225c18 of _0x4a9b00)_0x225c18['start']['nodeAfter']===_0x225c18['end']['parent']&&(_0x225c18=_0x242224['model']['createRange'](_0x242224['model']['createPositionAt'](_0x225c18['start']['nodeAfter'],0x0))),_0x5dcc26['push'](_0x225c18);_0x242224['model']['change'](_0x27da37=>{const _0xe8353f=_0x242224['model']['document']['selection'],_0x5f08fe=Array['from'](_0xe8353f['getRanges']())['map'](_0x407861=>_0x41f0a3['fromRange'](_0x407861));_0x27da37['setSelection'](_0x5dcc26),_0x242224['commands']['get'](_0x23394d['commandName'])['refresh'](),_0x23394d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x242224['execute'](_0x23394d['commandName'],..._0x23394d['commandParams']),_0x27da37['setSelection'](_0x5f08fe);for(const _0x4b01a3 of _0x5f08fe)_0x4b01a3['detach']();});}),_0x4c6e1d['descriptionFactory']['registerElementLabel'](function(_0x2826ac){const _0x395bde=!_0x242224['model']['schema']['isObject'](_0x2826ac),_0x208e25=_0x2826ac['previousSibling'],_0x5e5968=_0x2826ac['nextSibling'],_0x31b4c8=_0x2826ac['getAttribute']('listItemId'),_0x2dd38b=!_0x208e25||_0x208e25['getAttribute']('listItemId')!==_0x31b4c8,_0x551cf8=!_0x5e5968||_0x5e5968['getAttribute']('listItemId')!==_0x31b4c8;return _0x395bde&&Boolean(_0x31b4c8)&&_0x2dd38b&&_0x551cf8;},_0x2dfca1=>c(_0x5dde0d,'ELEMENT_LIST_ITEM',_0x2dfca1));}['_registerLegacyDescription'](){const _0x29b895=this['editor'],_0x51ce7a=_0x29b895['locale'];function _0x8ba163(_0x38c12e){const _0x35eb01=_0x29b895['commands']['get']('bulletedList')['value'],_0x10c72d=_0x29b895['commands']['get']('numberedList')['value'];return'numberedList'===_0x38c12e?_0x35eb01:_0x10c72d;}_0x29b895['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3f9221){if('formatBlock'!=_0x3f9221['type'])return;const {data:_0x3e3c55}=_0x3f9221;if(!_0x3e3c55)return;let _0xfab3b7,_0x24d265,_0x115689,_0xd7ea;switch(_0x3e3c55['commandName']){case'bulletedList':_0x115689=_0x3e3c55['commandParams'][0x0]['forceValue'],_0xd7ea=_0x8ba163(_0x3e3c55['commandName']),_0xfab3b7=_0x115689?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xd7ea&&_0x29b895['config']['get']('list.multiBlock')||(_0xfab3b7='*Change\x20to:*\x20%0'),_0x24d265={'type':'format','content':c(_0x51ce7a,_0xfab3b7,c(_0x51ce7a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x115689=_0x3e3c55['commandParams'][0x0]['forceValue'],_0xd7ea=_0x8ba163(_0x3e3c55['commandName']),_0xfab3b7=_0x115689?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xd7ea&&_0x29b895['config']['get']('list.multiBlock')||(_0xfab3b7='*Change\x20to:*\x20%0'),_0x24d265={'type':'format','content':c(_0x51ce7a,_0xfab3b7,c(_0x51ce7a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xfab3b7='*Indent:*\x20%0',_0x24d265={'type':'format','content':c(_0x51ce7a,_0xfab3b7,c(_0x51ce7a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xfab3b7=function(_0x56625f){const _0x3c497f=_0x56625f['getFirstRange']();let _0x457cd9=_0x3c497f['start']['nodeAfter'];for(;_0x457cd9&&_0x3c497f['containsItem'](_0x457cd9);){if(_0x457cd9['getAttribute']('listIndent')>0x0)return!0x1;_0x457cd9=_0x457cd9['nextSibling'];}return!0x0;}(_0x3f9221)?c(_0x51ce7a,'*Format:*\x20remove\x20from\x20%0',c(_0x51ce7a,function(_0xb8ac42){return'ELEMENT_'+_0xb8ac42['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3f9221))):c(_0x51ce7a,'*Outdent:*\x20%0',c(_0x51ce7a,'ELEMENT_LIST_ITEM')),_0x24d265={'type':'format','content':_0xfab3b7};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3e3c55['multipleBlocks']&&(_0xfab3b7='*Merge:*\x20%0',_0x24d265={'type':'deletion','content':c(_0x51ce7a,_0xfab3b7,c(_0x51ce7a,'ELEMENT_LIST_ITEM'))});}return _0x24d265;});}}function Te(_0x383530){let _0x2f468f=_0x383530['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2f468f;){const _0x496af9=_0x2f468f['getAttribute']('listItemId');if(!_0x496af9)return!0x1;if(_0x496af9==_0x383530['data']['newValue'])return'newValue';if(_0x496af9==_0x383530['data']['oldValue'])return'oldValue';_0x2f468f=_0x2f468f['previousSibling'];}return!0x1;}class Se extends _0x1f2d8e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1c903e=this['editor']['config']['get']('list.properties'),_0x5377e8=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c903e['styles']&&(_0x5377e8['enableDefaultAttributesIntegration']('listStyle'),_0x5377e8['registerBlockAttribute']('listStyle')),_0x1c903e['reversed']&&(_0x5377e8['enableDefaultAttributesIntegration']('listReversed'),_0x5377e8['registerBlockAttribute']('listReversed')),_0x1c903e['startIndex']&&(_0x5377e8['enableDefaultAttributesIntegration']('listStart'),_0x5377e8['registerBlockAttribute']('listStart'));const _0x5c2793={'type':'format','content':''};_0x5377e8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2b04a6=this['editor']['locale'];_0x5377e8['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x2b04a6,'FORMAT_LIST_REVERSED')),_0x5377e8['descriptionFactory']['registerDescriptionCallback'](_0x317839=>{const {data:_0x12c0b7}=_0x317839;if(_0x12c0b7&&'listReversed'==_0x12c0b7['key'])return null==_0x12c0b7['newValue']||0x0==_0x12c0b7['newValue']&&null==_0x12c0b7['oldValue']?_0x5c2793:void 0x0;}),_0x5377e8['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x2b04a6,'FORMAT_LIST_START')),_0x5377e8['descriptionFactory']['registerDescriptionCallback'](_0x19428b=>{const {data:_0x3837a0}=_0x19428b;if(_0x3837a0&&'listStart'==_0x3837a0['key'])return null==_0x3837a0['newValue']||0x1==_0x3837a0['newValue']&&null==_0x3837a0['oldValue']?_0x5c2793:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1aa904=>{if(_0x1aa904['batch']['isUndo'])return!0x1;let _0x3b4242=!0x1;const _0x2b8830=_0x5377e8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c2cf6=>{const _0x490de9=_0x5377e8['_getAttributeKey'](_0x3c2cf6);return'listStart'==_0x490de9||'listReversed'==_0x490de9;});for(const _0x513111 of _0x2b8830){const _0xdeb589=_0x513111['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xdeb589||'customNumbered'==_0xdeb589)continue;_0x5377e8['_findSuggestions'](_0x513111['getFirstRange'](),'attribute')['find'](_0x35b426=>'listType'==_0x5377e8['_getAttributeKey'](_0x35b426['suggestion']))||(_0x1aa904['removeMarker'](_0x513111['getFirstMarker']()),_0x3b4242=!0x0);}return _0x3b4242;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xc4a5d5){const _0x5b330d=this['editor']['locale'],{data:_0x58c4de}=_0xc4a5d5,_0x4ed039={'type':'format','content':''};if(!_0x58c4de||'listStyle'!=_0x58c4de['key'])return;if(!_0x58c4de['oldValue'])return'default'==_0x58c4de['newValue']?_0x4ed039:{'type':'format','content':''+c(_0x5b330d,'*Set\x20format:*\x20%0',c(_0x5b330d,this['_getTranslationKeyForListStyle'](_0x58c4de['newValue'])))};if(!_0x58c4de['newValue']){if('default'==_0x58c4de['oldValue'])return _0x4ed039;let _0x265816=_0xc4a5d5['head'];for(;_0x265816;){if(_0x265816['data']&&'listType'==_0x265816['data']['key']&&_0x265816['data']['newValue'])return _0x4ed039;_0x265816=_0x265816['next'];}return{'type':'format','content':''+c(_0x5b330d,'*Remove\x20format:*\x20%0',c(_0x5b330d,this['_getTranslationKeyForListStyle'](_0x58c4de['oldValue'])))};}if('default'!=_0x58c4de['newValue'])return{'type':'format','content':''+c(_0x5b330d,'*Set\x20format:*\x20%0',c(_0x5b330d,this['_getTranslationKeyForListStyle'](_0x58c4de['newValue'])))};let _0x28e6df=_0xc4a5d5['head'];for(;_0x28e6df;){if(_0x28e6df['data']&&'listType'==_0x28e6df['data']['key']&&_0x28e6df['data']['newValue']&&_0x28e6df['data']['oldValue'])return _0x4ed039;_0x28e6df=_0x28e6df['next'];}return{'type':'format','content':c(_0x5b330d,'*Set\x20format:*\x20%0',c(_0x5b330d,'ELEMENT_'+_0xc4a5d5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x354bcc=this['editor'],_0x207747=_0x354bcc['locale'];_0x354bcc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26cab7=>{if('formatBlock'!=_0x26cab7['type'])return;const {data:_0x283db9}=_0x26cab7;if(!_0x283db9)return;let _0x5f5b14,_0x2a7778;switch(_0x283db9['commandName']){case'listStyle':_0x5f5b14='*Change\x20to:*\x20%0',_0x2a7778={'type':'format','content':c(_0x207747,_0x5f5b14,c(_0x207747,this['_getTranslationKeyForListStyle'](_0x283db9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5f5b14=_0x283db9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2a7778={'type':'format','content':c(_0x207747,_0x5f5b14)};break;case'listStart':_0x5f5b14='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2a7778={'type':'format','content':c(_0x207747,_0x5f5b14,_0x283db9['commandParams'][0x0]['startIndex'])};}return _0x2a7778;});}['_getTranslationKeyForListStyle'](_0x1d4bae){return'ELEMENT_'+function(_0x1661af){if(_e['includes'](_0x1661af))return'bulleted';if(Re['includes'](_0x1661af))return'numbered';return null;}(_0x1d4bae)['toUpperCase']()+'_LIST_'+_0x1d4bae['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x1f2d8e{['afterInit'](){const _0x44af23=this['editor'];_0x44af23['commands']['get']('emoji')&&_0x44af23['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x1f2d8e{static get['requires'](){return[_0x432e00];}['init'](){const _0x2b6900=this['editor'],_0x3ffb43=_0x2b6900['plugins']['get']('TrackChangesEditing'),_0x134ed3=_0x2b6900['commands']['get']('enter');_0x3ffb43['enableCommand']('enter',()=>{_0x2b6900['model']['change'](_0x80412f=>{const _0x537ef1=_0x2b6900['model']['document']['selection'],_0x46ab8d=_0x537ef1['getFirstPosition'](),_0x2f5f16=_0x41f0a3['fromRange'](_0x537ef1['getFirstRange']());if(_0x134ed3['enterBlock'](_0x80412f)){const _0x201402=_0x2b6900['model']['createPositionAt'](_0x46ab8d['parent']['nextSibling'],0x0),_0x146f30=_0x80412f['createRange'](_0x46ab8d,_0x201402);_0x3ffb43['markInsertion'](_0x146f30);}else _0x80412f['setSelection'](_0x80412f['createRange'](_0x2f5f16['end']));_0x2f5f16['detach'](),_0x134ed3['fire']('afterExecute',{'writer':_0x80412f});});}),_0x2b6900['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x2b6900,'split'),{'priority':'high'}),_0x2b6900['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xa1e423,_0x1304de,_0x1758ea)=>{const _0x48fb64=_0x1758ea['mapper']['markerNameToElements'](_0x1304de['markerName']);if(_0x48fb64){for(const _0x6d8768 of _0x48fb64)_0x6d8768['hasClass']('ck-suggestion-marker-split')&&(_0x1758ea['mapper']['unbindElementFromMarkerName'](_0x6d8768,_0x1304de['markerName']),_0x1758ea['writer']['remove'](_0x6d8768));}},{'priority':'high'}),_0x2b6900['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x57ca3e,_0x142d12,_0x4f6dfc)=>{_0x4f6dfc['options']['showSuggestionHighlights']&&Fe(_0x2b6900,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x57ca3e,_0x142d12,_0x4f6dfc);},{'priority':'high'});}}class Z extends _0x1f2d8e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x160356=this['editor']['plugins']['get']('TrackChangesEditing');_0x160356['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x160356['enableCommand']('findNext'),_0x160356['enableCommand']('findPrevious'),_0x160356['enableCommand']('replace'),_0x160356['enableCommand']('replaceAll');}['handleFindCommand'](_0x4aec2f,_0x4c68c6,_0x250aac={}){const _0x80c325=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4aec2f(_0x5ba1f4=>{let _0x4784bc=('string'==typeof _0x4c68c6?_0x80c325['findByTextCallback'](_0x4c68c6,_0x250aac):_0x4c68c6)(_0x5ba1f4);Array['isArray'](_0x4784bc)&&(_0x4784bc={'results':_0x4784bc,'searchText':'string'==typeof _0x4c68c6?_0x4c68c6:''});const _0x2739bf=_0x4784bc['results']['filter'](_0x382c98=>!0x1===this['_isInDeletionRange'](_0x382c98,_0x5ba1f4['item']));return{..._0x4784bc,'results':_0x2739bf};},_0x250aac);}['_isInDeletionRange'](_0x4ddae7,_0x441e8f){const _0x175ea4=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x441e8f,_0x4ddae7['start']),this['editor']['model']['createPositionAt'](_0x441e8f,_0x4ddae7['end']));for(const _0x2b56eb of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x175ea4['getIntersection'](_0x2b56eb['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 _0x1f2d8e{['afterInit'](){const _0x3595dc=this['editor']['locale'],_0x414d6f=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4b8a66,commandName:_0x147693}of ro)this['editor']['plugins']['has'](_0x4b8a66)&&(_0x414d6f['enableDefaultAttributesIntegration'](_0x147693),_0x414d6f['registerInlineAttribute'](_0x147693));_0x414d6f['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x3595dc,'FORMAT_FONT_SIZE')),_0x414d6f['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x3595dc,'FORMAT_FONT_FAMILY')),_0x414d6f['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x3595dc,'FORMAT_FONT_COLOR')),_0x414d6f['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x3595dc,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e5a30=this['editor'],_0x2aa125=_0x5e5a30['locale'];_0x5e5a30['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fb248=>{const _0x54a866=_0x2aa125['t'];if('formatInline'!=_0x2fb248['type'])return;const {data:_0x2f5303}=_0x2fb248;if(null!=_0x2f5303){if('fontSize'==_0x2f5303['commandName']){const _0x463d4f=_0x2f5303['commandParams'][0x0]['value'];if(_0x463d4f){const _0x71eb0f=_0x54a866(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x112991=>_0x112991['model']==_0x463d4f)['title'])['toLowerCase']();return{'type':'format','content':c(_0x2aa125,'*Set\x20font\x20size:*\x20%0',_0x71eb0f)};}return{'type':'format','content':c(_0x2aa125,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2f5303['commandName']){const _0x1a2d58=_0x2f5303['commandParams'][0x0]['value'];return _0x1a2d58?{'type':'format','content':c(_0x2aa125,'*Set\x20font\x20family:*\x20%0',_0x1a2d58)}:{'type':'format','content':c(_0x2aa125,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2f5303['commandName']){const _0x2240a6=_0x2f5303['commandParams'][0x0]['value'];if(_0x2240a6){const _0x54b633=_0x591dcb(this['editor']['config']['get']('fontColor.colors'))['find'](_0x17dec7=>_0x17dec7['model']==_0x2240a6);let _0x33a844=_0x2240a6,_0x585d89='';return _0x54b633&&(_0x33a844=_0x54b633['label'],_0x585d89=_0x54a866(_0x33a844)['toLowerCase']()),{'type':'format','content':c(_0x2aa125,'*Set\x20font\x20color:*\x20%0',_0x585d89)['trim'](),'color':{'value':_0x2240a6,'title':_0x585d89||_0x33a844}};}return{'type':'format','content':c(_0x2aa125,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2f5303['commandName']){const _0xfce05a=_0x2f5303['commandParams'][0x0]['value'];if(_0xfce05a){const _0x2eb402=_0x591dcb(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5394f0=>_0x5394f0['model']==_0xfce05a);let _0x3485b6=_0xfce05a,_0x35c382='';return _0x2eb402&&(_0x3485b6=_0x2eb402['label'],_0x35c382=_0x54a866(_0x3485b6)['toLowerCase']()),{'type':'format','content':c(_0x2aa125,'*Set\x20font\x20background\x20color:*\x20%0',_0x35c382)['trim'](),'color':{'value':_0xfce05a,'title':_0x35c382||_0x3485b6}};}return{'type':'format','content':c(_0x2aa125,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x1f2d8e{['afterInit'](){const _0x575c04=this['editor'],_0x401f62=_0x575c04['plugins']['get']('TrackChangesEditing'),_0x195719=_0x575c04['commands']['get']('copyFormat'),_0x503dc1=_0x575c04['commands']['get']('pasteFormat');_0x195719&&_0x503dc1&&(_0x401f62['enableDefaultAttributesIntegration']('pasteFormat'),_0x401f62['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x28f0f8=this['editor'],_0x302dde=_0x28f0f8['locale'];_0x28f0f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32a3c0=>{if('formatBlock'!=_0x32a3c0['type']&&'formatInline'!=_0x32a3c0['type'])return;const {data:_0x84f692}=_0x32a3c0;if(_0x84f692&&'pasteFormat'===_0x84f692['commandName']){const _0x329383=[],_0x1889c5=_0x84f692['commandParams'][0x0];for(const [_0x269f5c,_0x44f236]of Object['entries'](_0x1889c5))_0x329383['push'](so(_0x28f0f8,_0x269f5c,_0x44f236));return _0x329383['length']?{'type':'format','content':c(_0x302dde,'*Set\x20format\x20to:*\x20%0',_0x329383['join'](',\x20'))}:{'type':'format','content':c(_0x302dde,'*Remove\x20all\x20formatting*')};}});}}function so(_0x56bd06,_0x948eff,_0x2f8d02){const _0x275854=_0x56bd06['locale']['t'],_0x226b0b=_0x948eff['split'](/(?=[A-Z])/)['join']('\x20'),_0x3a3f55=_0x275854(_0x226b0b['charAt'](0x0)['toUpperCase']()+_0x226b0b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2f8d02)return _0x3a3f55;if('fontColor'===_0x948eff||'fontBackgroundColor'===_0x948eff){const _0x108bf1=_0x591dcb(_0x56bd06['config']['get']('fontColor.colors'))['find'](_0x24d98a=>_0x24d98a['model']==_0x2f8d02);return _0x3a3f55+'\x20('+(_0x108bf1?_0x275854(_0x108bf1['label'])['toLowerCase']():_0x2f8d02)+')';}if('fontSize'===_0x948eff&&isNaN(parseFloat(_0x2f8d02))){const _0xe38ac1=_0x56bd06['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x56bd06['config']['get']('fontSize.options'))['find'](_0x146b30=>_0x146b30['model']==_0x2f8d02);return _0x3a3f55+'\x20('+(_0xe38ac1?_0x275854(_0xe38ac1['title'])['toLowerCase']():_0x2f8d02)+')';}return _0x3a3f55+'\x20('+_0x2f8d02+')';}class et extends _0x1f2d8e{['_headingOptions'];['afterInit'](){const _0x4eb6d2=this['editor'];if(!_0x4eb6d2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4eb6d2['config']['get']('heading.options');const _0x24fcde=_0x4eb6d2['locale'],_0xf7057d=_0x4eb6d2['plugins']['get']('TrackChangesEditing');_0xf7057d['enableDefaultAttributesIntegration']('heading');for(const _0x2091ef of this['_headingOptions'])'paragraph'!=_0x2091ef['model']&&_0xf7057d['descriptionFactory']['registerElementLabel'](_0x2091ef['model'],_0x3f9725=>{const _0x5d9616=this['_getHeadingLevel'](_0x2091ef['model']);return null!==_0x5d9616?_0x1b12e4(_0x3f9725,_0x5d9616):_0x2749c3(_0x3f9725,_0x2091ef['title']);});function _0x1b12e4(_0x3f6f34,_0x6c7cc3){return c(_0x24fcde,'ELEMENT_HEADING',[_0x3f6f34,_0x6c7cc3]);}function _0x2749c3(_0x50e6fe,_0x2c1549){return c(_0x24fcde,'ELEMENT_HEADING_CUSTOM',[_0x50e6fe,_0x2c1549]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b5b72=this['editor'],_0x49e989=_0x5b5b72['locale'];function _0x22136d(_0xf2dfc2,_0x5ab986){return c(_0x49e989,'ELEMENT_HEADING_CUSTOM',[_0xf2dfc2,_0x5ab986]);}_0x5b5b72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a3e3c=>{if('formatBlock'!=_0x5a3e3c['type'])return;const {data:_0x30ff40}=_0x5a3e3c;if(_0x30ff40&&'heading'==_0x30ff40['commandName']){const _0x2513f0=_0x30ff40['commandParams'][0x0]['value'],_0x551cbb=this['_getHeadingLevel'](_0x2513f0);if(null!==_0x551cbb)return{'type':'format','content':c(_0x49e989,'*Change\x20to:*\x20%0',(_0x112d6f=0x1,_0x14b19f=_0x551cbb,c(_0x49e989,'ELEMENT_HEADING',[_0x112d6f,_0x14b19f])))};const _0x56484a=this['_headingOptions']['find'](_0x3ab4fa=>_0x3ab4fa['model']===_0x2513f0)['title'];return{'type':'format','content':c(_0x49e989,'*Change\x20to:*\x20%0',_0x22136d(0x1,_0x56484a))};}var _0x112d6f,_0x14b19f;});}['_getHeadingLevel'](_0x1f39b4){const _0x2675b8=_0x1f39b4['match'](/^heading(\d+)/);if(_0x2675b8)return _0x2675b8[0x1];const _0x57c060=this['_headingOptions']?.['find'](_0x1f2d21=>_0x1f2d21['model']==_0x1f39b4);if(_0x57c060&&_0x57c060['view']){const _0x245efd=_0x57c060['view'],_0x301533=(_0x245efd['name']??_0x245efd)['match'](/^h(\d+)/);if(_0x301533)return _0x301533[0x1];}return null;}}class nt extends _0x1f2d8e{['afterInit'](){const _0x92f762=this['editor'];if(!_0x92f762['plugins']['has']('HighlightEditing'))return;const _0x38847a=_0x92f762['plugins']['get']('TrackChangesEditing'),_0x2c66f9=_0x92f762['locale'];_0x38847a['enableDefaultAttributesIntegration']('highlight'),_0x38847a['registerInlineAttribute']('highlight'),_0x38847a['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x2c66f9,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x445f05=this['editor'],_0x33636a=_0x445f05['locale'];_0x445f05['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3036cd=>{if('formatInline'!=_0x3036cd['type'])return;const {data:_0x796515}=_0x3036cd;if(_0x796515&&'highlight'==_0x796515['commandName']){const _0x48b373=_0x33636a['t'],_0x511c72=_0x796515['commandParams'][0x0]['value'];if(_0x511c72){const _0x17a061=_0x445f05['config']['get']('highlight.options')['find'](_0x252e10=>_0x252e10['model']==_0x511c72),_0x423868=_0x48b373(_0x17a061['title'])['toLowerCase']();return{'type':'format','content':c(_0x33636a,'*Set\x20highlight:*\x20%0',_0x423868),'color':{'value':_0x17a061['color'],'title':_0x17a061['title']}};}return{'type':'format','content':c(_0x33636a,'*Remove\x20highlight*',c(_0x33636a,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x1f2d8e{['afterInit'](){const _0x4b4534=this['editor'];if(!_0x4b4534['plugins']['has']('HorizontalLineEditing'))return;_0x4b4534['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x20d4f4=_0x4b4534['plugins']['get']('TrackChangesEditing'),_0x5441a9=_0x4b4534['locale'];_0x20d4f4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x22a280=>c(_0x5441a9,'ELEMENT_HORIZONTAL_LINE',_0x22a280)),_0x4b4534['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1f0767,{writer:_0x587f3e,options:_0xca9cbd})=>{if(!_0xca9cbd['showSuggestionHighlights'])return null;const _0x449842=_0x587f3e['createContainerElement']('div'),_0x2ec5b0=_0x587f3e['createEmptyElement']('hr');return _0x587f3e['addClass']('ck-horizontal-line',_0x449842),_0x587f3e['insert'](_0x587f3e['createPositionAt'](_0x449842,0x0),_0x2ec5b0),_0x449842;},'converterPriority':'high'});}}class ot extends _0x1f2d8e{['afterInit'](){const _0x4babd4=this['editor'];if(!_0x4babd4['plugins']['has']('HtmlEmbed'))return;const _0xf10f6c=_0x4babd4['plugins']['get']('TrackChangesEditing'),_0x414afb=_0x4babd4['locale'];_0xf10f6c['descriptionFactory']['registerElementLabel']('rawHtml',_0x1c25c7=>c(_0x414afb,'ELEMENT_HTML_EMBED',_0x1c25c7)),_0xf10f6c['enableDefaultAttributesIntegration']('htmlEmbed'),_0xf10f6c['registerBlockAttribute']('value'),_0xf10f6c['descriptionFactory']['registerDescriptionCallback'](_0xd47173=>{if('attribute'!=_0xd47173['type'])return;const {data:_0x459432}=_0xd47173;if(_0x459432&&'value'==_0x459432['key']&&_0xd47173['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xd14c0a=c(_0x414afb,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x414afb,'*Change\x20%0\x20content*',_0xd14c0a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39abdb=this['editor'],_0x4eba7d=_0x39abdb['locale'];_0x39abdb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x212d75=>{if('formatBlock'!=_0x212d75['type'])return;const {data:_0x5a7639}=_0x212d75;if(_0x5a7639&&'htmlEmbed'==_0x5a7639['commandName']){const _0xb21ea7=c(_0x4eba7d,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x4eba7d,'*Change\x20%0\x20content*',_0xb21ea7)};}});}}class rt extends _0x1f2d8e{['afterInit'](){const _0x402f80=this['editor'];if(!_0x402f80['plugins']['has']('ImageEditing'))return;const _0x37cc8e=_0x402f80['plugins']['get']('TrackChangesEditing'),_0x275f56=_0x402f80['plugins']['get']('ImageUtils'),_0x13a88a=_0x402f80['locale'];_0x37cc8e['enableCommand']('insertImage'),_0x37cc8e['descriptionFactory']['registerElementLabel']('imageBlock',_0x1ed452=>c(_0x13a88a,'ELEMENT_IMAGE',_0x1ed452)),_0x37cc8e['descriptionFactory']['registerElementLabel']('imageInline',_0x2bc301=>c(_0x13a88a,'ELEMENT_INLINE_IMAGE',_0x2bc301)),_0x37cc8e['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x13a88a,'ELEMENT_CAPTION')),_0x402f80['plugins']['has']('ImageUploadEditing')&&_0x37cc8e['enableCommand']('uploadImage'),_0x402f80['plugins']['has']('ImageBlockEditing')&&_0x402f80['plugins']['has']('ImageInlineEditing')&&(_0x37cc8e['enableCommand']('imageTypeInline',(_0x1a19be,_0x8f007b)=>{const _0xd98da9=_0x275f56['getClosestSelectedImageElement'](_0x402f80['model']['document']['selection']);_0x402f80['model']['change'](()=>{_0x37cc8e['markBlockFormat'](_0xd98da9,{'commandName':'imageTypeInline','commandParams':[_0x8f007b]},[],'convertBlockImageToInline');});}),_0x37cc8e['enableCommand']('imageTypeBlock',(_0x38b0b6,_0x54ec63)=>{_0x402f80['model']['change'](_0x2cf7fb=>{let _0x3dafa6=_0x275f56['getClosestSelectedImageElement'](_0x402f80['model']['document']['selection']),_0x4ac1c5=_0x2cf7fb['createRangeOn'](_0x3dafa6);const _0x4aa45c=_0x1dc9c2['fromPosition'](_0x4ac1c5['start'],'toPrevious'),_0x13219a=_0x1dc9c2['fromPosition'](_0x4ac1c5['end'],'toNext');_0x37cc8e['forceDefaultExecution'](()=>_0x38b0b6(_0x54ec63)),_0x3dafa6=_0x275f56['getClosestSelectedImageElement'](_0x402f80['model']['document']['selection']),_0x4ac1c5=_0x2cf7fb['createRangeOn'](_0x3dafa6);const _0x312f21=_0x2cf7fb['createRange'](_0x4aa45c,_0x13219a);_0x4aa45c['detach'](),_0x13219a['detach'](),_0x37cc8e['markBlockFormat'](_0x3dafa6,{'commandName':'imageTypeInline','commandParams':[_0x54ec63]},[],'convertInlineImageToBlock'),_0x312f21['start']['isBefore'](_0x4ac1c5['start'])&&_0x37cc8e['markInsertion'](_0x2cf7fb['createRange'](_0x312f21['start'],_0x4ac1c5['start']),'convertInlineImageToBlock'),_0x4ac1c5['end']['isBefore'](_0x312f21['end'])&&_0x37cc8e['markInsertion'](_0x2cf7fb['createRange'](_0x4ac1c5['end'],_0x312f21['end']),'convertInlineImageToBlock');});}),_0x37cc8e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x37cc8e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x37cc8e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x37cc8e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x37cc8e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x37cc8e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x10412f])=>{const _0x1e8f2a=_0x37cc8e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x13a3c9=_0x10412f['start'],_0x5525c1=_0x10412f['end'];const _0xc7f7ae=_0x402f80['model']['schema']['getNearestSelectionRange'](_0x13a3c9,'backward'),_0x5bed25=_0x402f80['model']['schema']['getNearestSelectionRange'](_0x5525c1,'forward');_0xc7f7ae['isCollapsed']&&(_0x13a3c9=_0xc7f7ae['start']),_0x5bed25['isCollapsed']&&(_0x5525c1=_0x5bed25['end']),_0x1e8f2a([_0x402f80['model']['createRange'](_0x13a3c9,_0x5525c1)]);}),_0x37cc8e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x208ac3),_0x37cc8e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x208ac3)),_0x402f80['plugins']['has']('ImageCaptionEditing')&&(_0x37cc8e['enableCommand']('toggleImageCaption',(_0xbed4a7,_0x2b03d6)=>{const _0xf90a99=_0x402f80['plugins']['get']('ImageCaptionUtils');let _0x2ef93f=_0x275f56['getClosestSelectedImageElement'](_0x402f80['model']['document']['selection']),_0x5413a9=_0xf90a99['getCaptionFromImageModelElement'](_0x2ef93f);_0x402f80['model']['change'](()=>{if(_0x5413a9)return void _0x37cc8e['markDeletion'](_0x402f80['model']['createRangeOn'](_0x5413a9));const _0x16f073=_0x275f56['isBlockImage'](_0x2ef93f);_0xbed4a7(_0x2b03d6),_0x2ef93f=_0x275f56['getClosestSelectedImageElement'](_0x402f80['model']['document']['selection']),_0x5413a9=_0xf90a99['getCaptionFromImageModelElement'](_0x2ef93f),_0x37cc8e['markInsertion'](_0x402f80['model']['createRangeOn'](_0x5413a9),_0x16f073?null:'imageCaption');});}),_0x37cc8e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x208ac3));const _0x43edbe=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4b2a26(_0x4e618c,_0x10a21c){const _0x53c63d=_0x43edbe['findIndex'](({type:_0x29fe48,subType:_0x3348b0})=>_0x4e618c['type']==_0x29fe48&&_0x4e618c['subType']==_0x3348b0),_0x5b9642=_0x43edbe['findIndex'](({type:_0x3ab1bc,subType:_0x538f61})=>_0x10a21c['type']==_0x3ab1bc&&_0x10a21c['subType']==_0x538f61);if(_0x53c63d<0x0||_0x5b9642<0x0)return!0x1;const _0x24fca4=_0x4e618c['getFirstRange'](),_0x3d637=_0x10a21c['getFirstRange']();if((0x0==_0x53c63d||0x1==_0x53c63d)&&0x2==_0x5b9642&&_0x24fca4['isIntersecting'](_0x3d637))return!0x0;if(0x2==_0x53c63d&&0x3==_0x5b9642){const _0x3524c7=_0x37cc8e['_findSuggestions'](_0x24fca4,'insertion')['filter'](({suggestion:_0x38f9af,meta:_0x29b01d})=>_0x29b01d['isOwn']&&'convertInlineImageToBlock'==_0x38f9af['subType']);if(_0x3524c7['length']>0x1&&_0x3d637['end']['isEqual'](_0x24fca4['start']))return!0x0;if(0x1==_0x3524c7['length']&&(_0x24fca4['start']['isEqual'](_0x3d637['end'])||_0x24fca4['end']['isEqual'](_0x3d637['start'])))return!0x0;}if(0x3==_0x53c63d&&0x3==_0x5b9642&&_0x24fca4['start']['isBefore'](_0x3d637['start'])){const _0x1038aa=_0x24fca4['end']['nodeAfter'],_0x4e563a=_0x3d637['start']['nodeBefore'];return _0x275f56['isBlockImage'](_0x1038aa)&&_0x1038aa===_0x4e563a;}return!0x1;}function _0x208ac3(_0x109d70,_0x5e1d3a){return _0x4b2a26(_0x109d70,_0x5e1d3a)?[_0x109d70,_0x5e1d3a]:_0x4b2a26(_0x5e1d3a,_0x109d70)?[_0x5e1d3a,_0x109d70]:null;}_0x402f80['plugins']['has']('ImageResize')&&(_0x37cc8e['enableDefaultAttributesIntegration']('resizeImage'),_0x37cc8e['registerBlockAttribute']('resizedWidth'),_0x37cc8e['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x13a88a,'FORMAT_IMAGE_SIZE'))),_0x402f80['plugins']['has']('ImageTextAlternativeEditing')&&(_0x37cc8e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x37cc8e['registerBlockAttribute']('alt')),_0x402f80['plugins']['has']('PictureEditing')&&(_0x37cc8e['registerBlockAttribute']('sources'),_0x37cc8e['descriptionFactory']['registerDescriptionCallback'](_0x489a27=>{if('attribute'!=_0x489a27['type'])return;const {data:_0x45fc6d}=_0x489a27;return _0x45fc6d&&'sources'==_0x45fc6d['key']?{'type':'format','content':''}:void 0x0;})),_0x402f80['plugins']['has']('ImageSizeAttributes')&&(_0x37cc8e['registerBlockAttribute']('width'),_0x37cc8e['registerBlockAttribute']('height'),_0x37cc8e['descriptionFactory']['registerDescriptionCallback'](_0x1c05c6=>{if('attribute'!=_0x1c05c6['type'])return;const {data:_0x34533c}=_0x1c05c6;return!_0x34533c||'width'!=_0x34533c['key']&&'height'!=_0x34533c['key']?void 0x0:{'type':'format','content':''};})),_0x37cc8e['descriptionFactory']['registerDescriptionCallback'](_0x363e83=>{if(!!_0x43edbe['find'](({type:_0x1067af,subType:_0x519826})=>_0x363e83['type']==_0x1067af&&_0x363e83['subType']==_0x519826))return _0x363e83['previous']?{}:void 0x0;}),_0x37cc8e['descriptionFactory']['registerDescriptionCallback'](_0x539317=>{if('insertion'==_0x539317['type']||'deletion'==_0x539317['type']){const _0x2ae7bb=_0x539317['getContainedElement']();if(_0x2ae7bb&&_0x2ae7bb['is']('element','caption'))return{'type':'insertion'==_0x539317['type']?'addObject':'removeObject','element':_0x2ae7bb,'quantity':0x1};}}),_0x37cc8e['descriptionFactory']['registerDescriptionCallback'](_0x337786=>'formatBlock'==_0x337786['type']&&'convertInlineImageToBlock'==_0x337786['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x337786['type']&&'convertBlockImageToInline'==_0x337786['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x37cc8e['descriptionFactory']['registerDescriptionCallback'](_0x31f87c=>{if('attribute'!=_0x31f87c['type'])return;const {data:_0x13447b}=_0x31f87c;if(!_0x13447b||'alt'!=_0x13447b['key'])return;const _0x219d31=_0x13447b['newValue'];return _0x219d31?{'type':'format','content':c(_0x13a88a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x219d31+'\x22')}:{'type':'format','content':c(_0x13a88a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3142ac=this['editor'],_0xaf659e=_0x3142ac['locale'];_0x3142ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x491dbb=>{if('formatBlock'!=_0x491dbb['type']&&'formatInline'!=_0x491dbb['type'])return;const {data:_0x47d8c5}=_0x491dbb;if(_0x47d8c5){if('imageTextAlternative'==_0x47d8c5['commandName']){const _0x30ee94=_0x47d8c5['commandParams'][0x0]['newValue'];return _0x30ee94?{'type':'format','content':c(_0xaf659e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x30ee94+'\x22')}:{'type':'format','content':c(_0xaf659e,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x47d8c5['commandName']){const _0xd07359=_0x47d8c5['commandParams'][0x0]['width'];return _0xd07359?{'type':'format','content':c(_0xaf659e,'*Set\x20image\x20width:*\x20%0',_0xd07359)}:{'type':'format','content':c(_0xaf659e,'*Reset\x20image\x20width*')};}}});}}class at extends _0x1f2d8e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x19057c=this['editor']['locale'],_0x4d90d4=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d90d4['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4d90d4['registerBlockAttribute']('src'),_0x4d90d4['descriptionFactory']['registerDescriptionCallback'](_0x5db4cb=>{if('attribute'!=_0x5db4cb['type'])return;const {data:_0x217ab0}=_0x5db4cb;return _0x217ab0&&'src'==_0x217ab0['key']?_0x217ab0['newValue']&&_0x217ab0['oldValue']?{'type':'format','content':c(_0x19057c,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x342b52=this['editor']['plugins']['get']('TrackChangesEditing');_0x342b52['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x342b52['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x342b52['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x342b52['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4654a4=this['editor'],_0x4b36f0=_0x4654a4['locale'];_0x4654a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11d73c=>{if('formatBlock'!=_0x11d73c['type']&&'formatInline'!=_0x11d73c['type'])return;const {data:_0x234d0a}=_0x11d73c;if(!_0x234d0a||'replaceImageSource'!=_0x234d0a['commandName'])return;return{'type':'format','content':c(_0x4b36f0,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x1f2d8e{['afterInit'](){const _0x490dbe=this['editor'];if(!_0x490dbe['plugins']['has']('ImageStyleEditing'))return;const _0x5f4be5=_0x490dbe['plugins']['get']('TrackChangesEditing'),_0xc65aa7=_0x490dbe['plugins']['get']('ImageUtils'),_0x337bac={};_0x5f4be5['enableCommand']('imageStyle',(_0x9a596c,_0x11784b)=>{const _0x3cca7f=_0x490dbe['plugins']['get']('Users')['me'],_0x24b11a=_0x490dbe['commands']['get']('imageStyle');let _0xc11441=_0xc65aa7['getClosestSelectedImageElement'](_0x490dbe['model']['document']['selection']),_0xf15dce=_0x490dbe['model']['createRangeOn'](_0xc11441),_0x1f3cbe=_0x24b11a['value'];if(_0x1f3cbe==_0x11784b['value'])return;const _0x597d8a={'commandName':'imageStyle','commandParams':[_0x11784b],'formatGroupId':_0x51cb10()};_0x490dbe['model']['change'](()=>{if(_0x5f4be5['getSuggestions']()['filter'](_0x484185=>_0x484185['isInContent']&&_0x3cca7f==_0x484185['author']&&('formatBlock'==_0x484185['type']||'formatInline'==_0x484185['type'])&&('imageStylePreApply'==_0x484185['subType']||'imageStylePostApply'==_0x484185['subType'])&&_0x484185['getFirstRange']()['isEqual'](_0xf15dce))['forEach'](_0x9d9d7e=>_0x5f4be5['discardSuggestion'](_0x9d9d7e['head'])),_0xc11441=_0xc65aa7['getClosestSelectedImageElement'](_0x490dbe['model']['document']['selection']),_0xf15dce=_0x490dbe['model']['createRangeOn'](_0xc11441),_0x24b11a['refresh'](),_0x490dbe['commands']['get']('imageTypeInline')['refresh'](),_0x490dbe['commands']['get']('imageTypeBlock')['refresh'](),_0x1f3cbe=_0x24b11a['value'],_0x1f3cbe!=_0x11784b['value'])return _0xc65aa7['isInlineImage'](_0xc11441)&&_0x24b11a['shouldConvertImageType'](_0x11784b['value'],_0xc11441)?(_0x9a596c({..._0x11784b,'setImageSizes':!0x1}),_0xc11441=_0xc65aa7['getClosestSelectedImageElement'](_0x490dbe['model']['document']['selection']),void _0x5f4be5['markBlockFormat'](_0xc11441,{..._0x597d8a,'commandReversedParams':[{'value':_0x1f3cbe||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xc65aa7['isBlockImage'](_0xc11441)?_0x5f4be5['markBlockFormat'](_0xc11441,_0x597d8a,[],'imageStylePostApply'):_0x5f4be5['markInlineFormat'](_0xf15dce,_0x597d8a,'imageStylePostApply'));});});for(const _0x5b1ecd of _0x490dbe['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x337bac[_0x5b1ecd['name']]=_0x5b1ecd['title']['toLowerCase']();_0x5f4be5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5f4be5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5f4be5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5f4be5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x35da59])=>{_0xc65aa7['setImageNaturalSizeAttributes'](_0x35da59['getContainedElement']());}),_0x5f4be5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1c9aab,_0x29f359)=>{_0x5f4be5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1c9aab,{'commandName':_0x29f359['commandName'],'commandParams':_0x29f359['commandReversedParams']});}),_0x5f4be5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x57d494,_0x242f37){if(_0x5ab8f8(_0x57d494,_0x242f37))return[_0x57d494,_0x242f37];if(_0x5ab8f8(_0x242f37,_0x57d494))return[_0x242f37,_0x57d494];return null;});const _0x46afbb=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5ab8f8(_0x33ab27,_0x290ddc){const _0x498e47=_0x46afbb['findIndex'](({type:_0x40ea6a,subType:_0x54b07d})=>_0x33ab27['type']==_0x40ea6a&&_0x33ab27['subType']==_0x54b07d),_0x41d243=_0x46afbb['findIndex'](({type:_0x21d47c,subType:_0x58461d})=>_0x290ddc['type']==_0x21d47c&&_0x290ddc['subType']==_0x58461d);if(_0x498e47<0x0||_0x41d243<0x0)return!0x1;const _0x3414b5=_0x33ab27['getFirstRange'](),_0x35b9c6=_0x290ddc['getFirstRange']();if((0x0==_0x498e47||0x1==_0x498e47)&&0x2==_0x41d243&&_0x3414b5['isIntersecting'](_0x35b9c6))return!0x0;if(0x2==_0x498e47&&0x3==_0x41d243){const _0x2997ed=_0x5f4be5['_findSuggestions'](_0x3414b5,'insertion')['filter'](({suggestion:_0x57ad25,meta:_0x14a575})=>_0x14a575['isOwn']&&'convertInlineImageToBlock'==_0x57ad25['subType']);if(_0x2997ed['length']>0x1&&_0x35b9c6['end']['isEqual'](_0x3414b5['start']))return!0x0;if(0x1==_0x2997ed['length']&&(_0x3414b5['start']['isEqual'](_0x35b9c6['end'])||_0x3414b5['end']['isEqual'](_0x35b9c6['start'])))return!0x0;}if(0x3==_0x498e47&&0x3==_0x41d243&&_0x3414b5['start']['isBefore'](_0x35b9c6['start'])){const _0x5a50b1=_0x3414b5['end']['nodeAfter'],_0xb5775f=_0x35b9c6['start']['nodeBefore'];return _0xc65aa7['isBlockImage'](_0x5a50b1)&&_0x5a50b1===_0xb5775f;}return!0x1;}_0x490dbe['model']['document']['registerPostFixer'](()=>{let _0x25e4db=!0x1;const _0x1451f6=Array['from'](_0x490dbe['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5655d7,data:_0x1f833e}of _0x1451f6){const {group:_0xf27725,type:_0x17be31,subType:_0x40e118,id:_0x31fac3}=_0x5f4be5['_splitMarkerName'](_0x5655d7);if('suggestion'==_0xf27725&&_0x5f4be5['hasSuggestion'](_0x31fac3)){if('formatBlock'==_0x17be31&&('imageStylePreApply'==_0x40e118||'imageStylePostApply'==_0x40e118)){const _0x15ffed=_0x5f4be5['getSuggestion'](_0x31fac3);if(_0x1f833e['newRange']){const _0xdb4c23=_0x15ffed['getFirstRange']()['getContainedElement']();if(_0xc65aa7['isBlockImage'](_0xdb4c23))continue;_0x5f4be5['discardSuggestion'](_0x15ffed),_0x25e4db=!0x0;}}if('insertion'==_0x17be31&&'imageCaption'==_0x40e118&&!_0x1f833e['newRange']){const _0x5e1400=_0x5f4be5['getSuggestion'](_0x31fac3);_0x5e1400['next']&&_0x5e1400['next']['isInContent']&&(_0x5f4be5['discardSuggestion'](_0x5e1400['next']),_0x25e4db=!0x0);}}}return _0x25e4db;}),this['_registerLegacyDescription'](_0x337bac);}['_registerLegacyDescription'](_0x8ed6a5){const _0x1ebcc7=this['editor'],_0x425b39=_0x1ebcc7['locale'];_0x1ebcc7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e659f=>{if('formatBlock'!=_0x2e659f['type']&&'formatInline'!=_0x2e659f['type'])return;const {data:_0x593379}=_0x2e659f;if(!_0x593379||'imageStyle'!=_0x593379['commandName'])return;const _0x4ea415=_0x593379['commandParams'][0x0]['value'];return _0x5d6789('side'===_0x4ea415?c(_0x425b39,'FORMAT_SIDE_IMAGE'):_0x8ed6a5[_0x4ea415]||_0x4ea415);function _0x5d6789(_0x42f3f7){return{'type':'format','content':c(_0x425b39,'*Format:*\x20%0',_0x42f3f7)};}});}}class ut extends _0x1f2d8e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2d457d){super(_0x2d457d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4d3f71=this['editor'],_0x1ce878=_0x4d3f71['commands']['get']('importWord'),_0x55260d=_0x4d3f71['commands']['get']('trackChanges');_0x1ce878&&(_0x1ce878['on']('execute',(_0x2e7101,[,_0x29af68])=>{this['_trackChangesValueDuringImport']=_0x55260d['value'],_0x29af68['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1ce878,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1ce878,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x55260d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4d3f71['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1a06a4,_0x227f1b){const {suggestions:_0x5f5ceb}=_0x227f1b,_0x29e81e=this['editor']['commands']['get']('trackChanges'),_0xf25515=_0x29e81e['value'];this['_trackChangesValueDuringImport']!==_0xf25515&&(_0x29e81e['execute'](),this['_trackChangesExecuted']=!0x0),_0x5f5ceb&&_0x5f5ceb['forEach'](({id:_0xa38912,type:_0x5c2d60,author:_0x35df1f,created_at:_0x58c7dc})=>{const _0x1594c5={'id':_0xa38912,'type':_0x5c2d60,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x35df1f,'createdAt':_0x58c7dc?new Date(_0x58c7dc):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1594c5);});}}class ft extends _0x1f2d8e{['afterInit'](){const _0x4a308a=this['editor'],_0x1c23c3=_0x4a308a['plugins']['get']('TrackChangesEditing');if(_0x4a308a['plugins']['has']('IndentEditing')&&(_0x1c23c3['enableCommand']('indent'),_0x1c23c3['enableCommand']('outdent')),_0x4a308a['plugins']['has']('IndentBlock')){for(const _0x1cb9ef of['indentBlock','outdentBlock'])_0x1c23c3['enableDefaultAttributesIntegration'](_0x1cb9ef);}const _0x40dba8=_0x4a308a['locale'];_0x1c23c3['registerBlockAttribute']('blockIndent'),_0x1c23c3['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x40dba8,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbe0be=this['editor'],_0x28b1a7=_0xbe0be['locale'],_0x410ff6=_0xbe0be['plugins']['get']('TrackChangesEditing');_0x410ff6['descriptionFactory']['registerDescriptionCallback'](_0x366acc=>{if('formatBlock'!=_0x366acc['type'])return;const {data:_0x1afbf8}=_0x366acc;if(!_0x1afbf8)return;if('indentBlock'!=_0x1afbf8['commandName']&&'outdentBlock'!=_0x1afbf8['commandName'])return;const _0x5ef478=_0x366acc['getItems']()[0x0],_0x43f85d=_0x410ff6['descriptionFactory']['getItemLabel'](_0x5ef478);return'indentBlock'==_0x1afbf8['commandName']?{'type':'format','content':c(_0x28b1a7,'*Indent:*\x20%0',_0x43f85d)}:'outdentBlock'==_0x1afbf8['commandName']?{'type':'format','content':c(_0x28b1a7,'*Outdent:*\x20%0',_0x43f85d)}:void 0x0;});}}class ht extends _0x1f2d8e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x1f2d8e{['afterInit'](){const _0x46f5cc=this['editor'];if(!_0x46f5cc['plugins']['has']('LinkEditing'))return;const _0x25553f=_0x46f5cc['plugins']['get']('TrackChangesEditing'),_0x5d0ad2=_0x46f5cc['commands']['get']('link');_0x25553f['enableDefaultAttributesIntegration']('link'),_0x25553f['enableDefaultAttributesIntegration']('unlink'),_0x25553f['registerInlineAttribute']('linkHref');for(const _0x576671 of _0x5d0ad2['manualDecorators'])_0x25553f['registerInlineAttribute'](_0x576671['id']),_0x25553f['descriptionFactory']['registerAttributeLabel'](_0x576671['id'],'link\x20('+_0x576671['label']['toLowerCase']()+')');_0x25553f['descriptionFactory']['registerDescriptionCallback'](_0x1d57e1=>{if('attribute'!=_0x1d57e1['type'])return;const {data:_0xf6d00f}=_0x1d57e1;if(!_0xf6d00f||'linkHref'!=_0xf6d00f['key'])return;const _0x155014=_0xf6d00f['newValue'],_0x5f3dfb=_0x46f5cc['locale'];return{'type':'format','content':null==_0x155014?c(_0x5f3dfb,'*Remove\x20link*'):c(_0x5f3dfb,'*Set\x20link:*\x20%0','\x22'+_0x155014+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30a010=this['editor'],_0x5e1432=_0x30a010['locale'];_0x30a010['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59484c=>{if('formatInline'!=_0x59484c['type'])return;const {data:_0x46a814}=_0x59484c;if(_0x46a814){if('link'==_0x46a814['commandName']){const _0x38c52b=_0x46a814['commandParams'][0x0];return{'type':'format','content':c(_0x5e1432,'*Set\x20link:*\x20%0','\x22'+_0x38c52b+'\x22')};}return'unlink'==_0x46a814['commandName']?{'type':'format','content':c(_0x5e1432,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x1f2d8e{['afterInit'](){const _0x454054=this['editor'],_0x5ec371=_0x454054['locale'];if(!_0x454054['plugins']['has']('LegacyListEditing'))return;const _0x4f8688=_0x454054['plugins']['get']('TrackChangesEditing'),_0x362a46=_0x454054['plugins']['has']('LegacyTodoListEditing');function _0x204c2e(_0x53e2f4){return()=>{const _0x3df15c=_0x454054['model']['document']['selection'],_0x566ab0=_0x454054['commands']['get'](_0x53e2f4);if(_0x566ab0['value'])return void _0x454054['execute']('paragraph',{});const _0xe8174=_0x53e2f4['slice'](0x0,-0x4),_0x59c860=function(_0x2349d3,_0x5c9469,_0x1e56c2){let _0x4a7b3e=Array['from'](_0x2349d3)['filter'](_0x5439b6=>function(_0x335dc1,_0x2ddee0){return _0x2ddee0['checkChild'](_0x335dc1['parent'],'listItem')&&!_0x2ddee0['isObject'](_0x335dc1);}(_0x5439b6,_0x1e56c2));_0x4a7b3e=_0x4a7b3e['filter'](_0x1f40c=>!_0x1f40c['is']('element','listItem')||_0x1f40c['getAttribute']('listType')!=_0x5c9469);const _0x1dc1d7=new Set();for(const _0x18eed1 of _0x4a7b3e)_0x18eed1['is']('element','listItem')?_0x1dc1d7['add'](Le(_0x18eed1)):_0x1dc1d7['add'](_0x18eed1);return Array['from'](_0x1dc1d7);}(_0x3df15c['getSelectedBlocks'](),_0xe8174,_0x454054['model']['schema']);_0x454054['model']['change'](()=>{for(const _0x45fbd4 of _0x59c860)_0x4f8688['markBlockFormat'](_0x45fbd4,{'commandName':_0x53e2f4,'commandParams':[{'forceValue':!_0x566ab0['value']}],'formatGroupId':'blockName'},Ee(_0x45fbd4));});};}function _0x3241a1(_0x260315){return()=>{const _0x4bccfd=function(_0x31755c){let _0x5cefa3=Array['from'](_0x31755c);const _0x2a4054=_0x5cefa3['findIndex'](_0x1dd045=>'listItem'!=_0x1dd045['name']);return _0x2a4054>-0x1&&(_0x5cefa3=_0x5cefa3['slice'](0x0,_0x2a4054)),_0x5cefa3;}(_0x454054['model']['document']['selection']['getSelectedBlocks']()),_0x4666c0=_0x454054['model']['createRange'](_0x454054['model']['createPositionAt'](_0x4bccfd[0x0],'before'),_0x454054['model']['createPositionAt'](_0x4bccfd[_0x4bccfd['length']-0x1],'end'));_0x454054['model']['change'](()=>{_0x4f8688['markBlockFormat'](_0x4666c0,{'commandName':_0x260315,'commandParams':[],'formatGroupId':'listIndent'},function(_0x146e8d){const _0x3111c9=new Set();for(const _0x2e1883 of _0x146e8d){let _0x202c81=_0x2e1883['nextSibling'];for(;_0x202c81&&_0x202c81['getAttribute']('listIndent')>_0x2e1883['getAttribute']('listIndent');)_0x3111c9['add'](_0x202c81),_0x202c81=_0x202c81['nextSibling'];}return Array['from'](_0x3111c9);}(_0x4bccfd));});};}_0x4f8688['enableCommand']('numberedList',_0x204c2e('numberedList')),_0x4f8688['enableCommand']('bulletedList',_0x204c2e('bulletedList')),_0x362a46&&_0x4f8688['enableCommand']('todoList',_0x204c2e('todoList')),_0x4f8688['enableCommand']('indentList',_0x3241a1('indentList')),_0x4f8688['enableCommand']('outdentList',_0x3241a1('outdentList')),_0x362a46&&_0x4f8688['enableCommand']('checkTodoList',()=>{const _0x13bf4a=_0x454054['commands']['get']('checkTodoList'),_0x17c7c9=Array['from'](_0x13bf4a['_selectedElements']);_0x17c7c9['filter'](_0x3dbacd=>_0x3dbacd['getAttribute']('todoListChecked')!=_0x13bf4a['value']),_0x454054['model']['change'](()=>{for(const _0x2cafb7 of _0x17c7c9)_0x4f8688['markBlockFormat'](_0x2cafb7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x13bf4a['value']}]});});}),_0x4f8688['descriptionFactory']['registerElementLabel']('listItem',_0x206f4f=>c(_0x5ec371,'ELEMENT_LIST_ITEM',_0x206f4f)),_0x4f8688['descriptionFactory']['registerDescriptionCallback'](_0x2e11e8=>{if('formatBlock'!=_0x2e11e8['type']&&'formatInline'!=_0x2e11e8['type'])return;const {data:_0x5871de}=_0x2e11e8;if(_0x5871de){if('numberedList'==_0x5871de['commandName']||'bulletedList'==_0x5871de['commandName']||'todoList'==_0x5871de['commandName'])switch(_0x5871de['commandName']['replace']('List','')){case'bulleted':return _0x2ebf27(c(_0x5ec371,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2ebf27(c(_0x5ec371,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2ebf27(c(_0x5ec371,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5871de['commandName'])return{'type':'format','content':c(_0x5ec371,'*Indent:*\x20%0',c(_0x5ec371,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5871de['commandName'])return{'type':'format','content':c(_0x5ec371,'*Outdent:*\x20%0',c(_0x5ec371,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5871de['commandName'])return _0x5871de['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5ec371,'*Check\x20item*')}:{'type':'format','content':c(_0x5ec371,'*Uncheck\x20item*')};}function _0x2ebf27(_0x28ccc8){return{'type':'format','content':c(_0x5ec371,'*Change\x20to:*\x20%0',_0x28ccc8)};}});}}function Le(_0x5ca91d){const _0x4f1301=_0x5ca91d['getAttribute']('listIndent');if(0x0==_0x4f1301)return _0x5ca91d;let _0x5cee92=_0x5ca91d;for(;_0x5ca91d['previousSibling']&&_0x5ca91d['previousSibling']['is']('element','listItem');){const _0x1eedfe=_0x5ca91d['previousSibling']['getAttribute']('listIndent');if(_0x1eedfe==_0x4f1301)_0x5cee92=_0x5ca91d['previousSibling'];else{if(_0x1eedfe<_0x4f1301)break;}_0x5ca91d=_0x5ca91d['previousSibling'];}return _0x5cee92;}function Ee(_0x2861d4){const _0x1f57c5=[];if(_0x2861d4['is']('element','listItem')&&_0x2861d4['getAttribute']('listIndent')>0x0){let _0x4c6e3c=_0x2861d4['nextSibling'];for(;_0x4c6e3c&&'listItem'==_0x4c6e3c['name']&&_0x4c6e3c['getAttribute']('listIndent')==_0x2861d4['getAttribute']('listIndent');)_0x1f57c5['push'](_0x4c6e3c),_0x4c6e3c=_0x4c6e3c['nextSibling'];}return _0x1f57c5;}class Q extends _0x1f2d8e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x11fb82=this['editor']['config']['get']('list.properties'),_0xc43d37=this['editor']['plugins']['get']('TrackChangesEditing');_0x11fb82['styles']&&_0xc43d37['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x11fb82['reversed']&&_0xc43d37['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x11fb82['startIndex']&&_0xc43d37['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xc43d37['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x41bb76,_0x166165={}){const _0x526768=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b38e0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x526768['markMultiRangeBlockFormat'](_0x5b38e0,{'commandName':'listStyle','commandParams':[{'type':_0x166165['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x46cad1,_0x230225={}){const _0x2a6a49=this['editor']['plugins']['get']('TrackChangesEditing'),_0x490f1b=this['_getSuggestionBlocks'](_0x49e125=>_0x49e125['is']('element','listItem')&&'numbered'===_0x49e125['getAttribute']('listType'));if(_0x490f1b['length']<0x1)return;const _0x557140=_0x490f1b['map'](_0x5b971e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5b971e,'before'),this['editor']['model']['createPositionAt'](_0x5b971e,0x0)));this['editor']['model']['change'](()=>{_0x2a6a49['markMultiRangeBlockFormat'](_0x557140,{'commandName':'listReversed','commandParams':[{'reversed':_0x230225['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x38a827,_0x52d69c={}){const _0x3eeaff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d0437=this['_getSuggestionBlocks'](_0x5a7d6c=>_0x5a7d6c['is']('element','listItem')&&'numbered'===_0x5a7d6c['getAttribute']('listType'));if(_0x3d0437['length']<0x1)return;const _0x5a2c46=_0x3d0437['map'](_0x1b9d4e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1b9d4e,'before'),this['editor']['model']['createPositionAt'](_0x1b9d4e,0x0)));this['editor']['model']['change'](()=>{_0x3eeaff['markMultiRangeBlockFormat'](_0x5a2c46,{'commandName':'listStart','commandParams':[{'startIndex':_0x52d69c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5aea0b){if('formatBlock'!=_0x5aea0b['type']&&'formatInline'!=_0x5aea0b['type'])return;const _0x82afd8=this['editor']['locale'],{data:_0x1d6d95}=_0x5aea0b;if(!_0x1d6d95)return;let _0xdfc183,_0x3dbb41;switch(_0x1d6d95['commandName']){case'listStyle':_0xdfc183='*Change\x20to:*\x20%0',_0x3dbb41={'type':'format','content':c(_0x82afd8,_0xdfc183,c(_0x82afd8,this['_getTranslationKeyForListStyle'](_0x1d6d95['commandParams'][0x0]['type'])))};break;case'listReversed':_0xdfc183=_0x1d6d95['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3dbb41={'type':'format','content':c(_0x82afd8,_0xdfc183)};break;case'listStart':_0xdfc183='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3dbb41={'type':'format','content':c(_0x82afd8,_0xdfc183,_0x1d6d95['commandParams'][0x0]['startIndex'])};}return _0x3dbb41;}['_getSuggestionBlocksForListStyle'](){const _0x3ad5d3=this['editor']['plugins']['get']('LegacyListUtils');let _0x437646=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x437646[0x0]?.['is']('element','listItem')&&_0x437646['unshift'](..._0x3ad5d3['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x437646[_0x437646['length']-0x1]?.['is']('element','listItem')&&_0x437646['push'](..._0x3ad5d3['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x437646=[...new Set(_0x437646)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x437646=_0x437646['filter'](_0x635a85=>_0x635a85['is']('element','listItem'))),_0x437646;}['_getSuggestionBlocks'](_0x285e09){const _0x3c807d=this['editor']['plugins']['get']('LegacyListUtils');let _0x10a14d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x285e09)['map'](_0x645880=>{const _0x102e07=this['editor']['model']['createPositionAt'](_0x645880,0x0);return[..._0x3c807d['getSiblingNodes'](_0x102e07,'backward'),..._0x3c807d['getSiblingNodes'](_0x102e07,'forward')];})['flat']();return _0x10a14d=[...new Set(_0x10a14d)],_0x10a14d;}['_getTranslationKeyForListStyle'](_0x5eb64b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5eb64b)||'default')['toUpperCase']()+'_LIST_'+_0x5eb64b['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x1f2d8e{['afterInit'](){const _0x57b537=this['editor'];if(!_0x57b537['plugins']['has']('MediaEmbedEditing'))return;const _0x85c257=_0x57b537['plugins']['get']('TrackChangesEditing'),_0x4b86a0=_0x57b537['locale'];_0x85c257['enableCommand']('mediaEmbed'),_0x85c257['descriptionFactory']['registerElementLabel']('media',_0x1e208f=>c(_0x4b86a0,'ELEMENT_MEDIA',_0x1e208f)),_0x57b537['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5a1df1,{writer:_0x2ef98a,options:_0x1370cb})=>{if(_0x1370cb['showSuggestionHighlights'])return _0x2ef98a['createEmptyElement']('div');},'converterPriority':'high'}),_0x57b537['data']['downcastDispatcher']['on']('attribute:url:media',(_0xd608b8,_0x5947e1,_0x159064)=>{_0x159064['options']['showSuggestionHighlights']&&_0xd608b8['stop']();},{'priority':'high'});}}class pt extends _0x1f2d8e{['afterInit'](){const _0x323db7=this['editor'];_0x323db7['plugins']['has']('MentionEditing')&&_0x323db7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x1f2d8e{['afterInit'](){const _0x145ea9=this['editor'];if(!_0x145ea9['plugins']['has']('MergeFieldsEditing'))return;const _0x15540a=_0x145ea9['plugins']['get']('TrackChangesEditing'),_0x34e761=_0x145ea9['locale'];_0x15540a['enableCommand']('insertMergeField'),_0x15540a['enableCommand']('insertMergeFieldBlock'),_0x15540a['enableCommand']('insertMergeFieldImage'),_0x15540a['descriptionFactory']['registerElementLabel']('mergeField',_0x5ec67c=>c(_0x34e761,'ELEMENT_MERGE_FIELD',_0x5ec67c)),_0x15540a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x26eb13=>c(_0x34e761,'ELEMENT_MERGE_FIELD',_0x26eb13)),_0x15540a['descriptionFactory']['registerDescriptionCallback'](_0x225c04=>{if('insertion'!=_0x225c04['type']&&'deletion'!=_0x225c04['type'])return;const _0x4c3121=_0x225c04['getContainedElement']();if(null==_0x4c3121)return;const _0x462589=_0x145ea9['plugins']['get']('MergeFieldsEditing');let _0x59d03e;switch(_0x462589['getMergeFieldType'](_0x4c3121)){case null:return;case'image':{const _0x7bdfa=_0x462589['unwrapAffixes'](_0x4c3121['getAttribute']('src'));_0x59d03e=_0x462589['getLabel'](_0x7bdfa)||_0x7bdfa;break;}default:{const _0x41b825=_0x4c3121['getAttribute']('id');_0x59d03e=_0x462589['getLabel'](_0x41b825)||_0x41b825;break;}}return'insertion'==_0x225c04['type']?{'type':'insertion','content':c(_0x34e761,'*Insert:*\x20%0','\x22'+_0x59d03e+'\x22\x20'+c(_0x34e761,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x34e761,'*Remove:*\x20%0','\x22'+_0x59d03e+'\x22\x20'+c(_0x34e761,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x1f2d8e{['afterInit'](){const _0x5caff4=this['editor'],_0x9af6f3=_0x5caff4['plugins']['get']('TrackChangesEditing');_0x5caff4['plugins']['has']('MultiLevelList')&&(_0x9af6f3['enableDefaultAttributesIntegration']('multiLevelList'),_0x9af6f3['registerBlockAttribute']('listMarkerStyle'),_0x9af6f3['descriptionFactory']['registerDescriptionCallback'](_0x586c97=>this['handleDescriptions'](_0x586c97)));}['handleDescriptions'](_0x3b50ce){const _0x5365f7=this['editor']['locale'],{data:_0x2e0528}=_0x3b50ce,_0x1e683c={'type':'format','content':''};if(_0x2e0528&&'listMarkerStyle'==_0x2e0528['key']){if(!_0x2e0528['oldValue'])return{'type':'format','content':c(_0x5365f7,'*Set\x20format:*\x20%0',c(_0x5365f7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2e0528['newValue']+')'};if(!_0x2e0528['newValue']){let _0x12e289=_0x3b50ce['head'];for(;_0x12e289;){if(_0x12e289['data']&&'listType'==_0x12e289['data']['key']&&_0x12e289['data']['newValue'])return _0x1e683c;_0x12e289=_0x12e289['next'];}return{'type':'format','content':c(_0x5365f7,'*Remove\x20format:*\x20%0',c(_0x5365f7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2e0528['oldValue']+')'};}}}}class bt extends _0x1f2d8e{['afterInit'](){const _0x52bfb5=this['editor'];if(!_0x52bfb5['plugins']['has']('PageBreakEditing'))return;_0x52bfb5['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x256fd2=_0x52bfb5['plugins']['get']('TrackChangesEditing'),_0x141753=_0x52bfb5['locale'];_0x256fd2['descriptionFactory']['registerElementLabel']('pageBreak',_0x473d65=>c(_0x141753,'ELEMENT_PAGE_BREAK',_0x473d65));}}class yt extends _0x1f2d8e{['afterInit'](){const _0x3c389d=this['editor'];if(!_0x3c389d['plugins']['has']('Paragraph'))return;const _0x6980b3=_0x3c389d['locale'],_0xfbb72d=_0x3c389d['plugins']['get']('TrackChangesEditing');_0xfbb72d['descriptionFactory']['registerElementLabel']('paragraph',_0x13362c=>c(_0x6980b3,'ELEMENT_PARAGRAPH',_0x13362c)),_0xfbb72d['enableDefaultAttributesIntegration']('paragraph'),_0xfbb72d['enableCommand']('insertParagraph'),_0x3c389d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3c389d),{'priority':'highest'}),_0x3c389d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x46fb6e,_0x1e78b0,_0xf216c9)=>{_0xf216c9['options']['showSuggestionHighlights']&&nr(_0x3c389d,{'showActiveMarker':!0x1})(_0x46fb6e,_0x1e78b0,_0xf216c9);},{'priority':'highest'});const _0x40cd97=_0xfbb72d['descriptionFactory'];_0x40cd97['registerDescriptionCallback'](_0x8f63f4=>{if('insertion'!==_0x8f63f4['type'])return;const {start:_0x47d5ae,end:_0x3e39fc}=_0x8f63f4['getFirstRange']();if(!_0x47d5ae['isTouching'](_0x3e39fc)||!_0x47d5ae['nodeAfter'])return;const _0x884bdf=_0x3c389d['model']['schema'],_0x77aa50=_0x47d5ae['nodeAfter'];return _0x884bdf['isBlock'](_0x77aa50)&&!_0x884bdf['isLimit'](_0x77aa50)&&_0x884bdf['checkChild'](_0x77aa50,'$text')?{'type':'insertion','content':c(_0x6980b3,'*Insert:*\x20%0',_0x40cd97['getItemLabel'](_0x77aa50,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa3bff0=this['editor'],_0x2f6cff=_0xa3bff0['locale'];_0xa3bff0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcee1e5=>{if('formatBlock'!=_0xcee1e5['type'])return;const {data:_0x45ca50}=_0xcee1e5;return _0x45ca50&&'paragraph'==_0x45ca50['commandName']?{'type':'format','content':c(_0x2f6cff,'*Change\x20to:*\x20%0',c(_0x2f6cff,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x425445,{showActiveMarker:_0x39f65f=!0x0}={}){return(_0x31c58e,_0x7316b1,_0x433a8b)=>{const _0x55793f=_0x425445['plugins']['get']('TrackChangesEditing'),_0x2bb01a=_0x7316b1['markerRange']['start'],_0x74e9c9=_0x7316b1['markerRange']['end'],_0x5a174b=_0x425445['model']['schema'];if(!_0x2bb01a['isTouching'](_0x74e9c9)||!_0x2bb01a['nodeAfter'])return;const _0x1dbe7b=_0x2bb01a['nodeAfter'];if(_0x5a174b['isBlock'](_0x1dbe7b)&&!_0x5a174b['isLimit'](_0x1dbe7b)&&_0x5a174b['checkChild'](_0x1dbe7b,'$text')){if(!_0x433a8b['consumable']['consume'](_0x7316b1['markerRange'],_0x31c58e['name']))return;const {id:_0x4caf72,authorId:_0x763b7}=_0x55793f['_splitMarkerName'](_0x7316b1['markerName']),_0x15927d=_0x433a8b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4caf72,'data-author-id':_0x763b7}),_0x5c380d=_0x433a8b['mapper']['toViewPosition'](_0x74e9c9);_0x39f65f&&_0x55793f['activeMarkers']['includes'](_0x7316b1['markerName'])&&_0x433a8b['writer']['addClass']('ck-suggestion-marker--active',_0x15927d),_0x433a8b['writer']['insert'](_0x5c380d,_0x15927d),_0x433a8b['mapper']['bindElementToMarker'](_0x15927d,_0x7316b1['markerName']);}};}class jt extends _0x1f2d8e{['afterInit'](){const _0x3240c6=this['editor'];_0x3240c6['commands']['get']('replaceSource')&&_0x3240c6['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x1f2d8e{['afterInit'](){const _0x48fafa=this['editor'];if(!_0x48fafa['plugins']['has']('RemoveFormatEditing'))return;_0x48fafa['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22a001=this['editor'];_0x22a001['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ea29b=>{if('formatBlock'!=_0x2ea29b['type']&&'formatInline'!=_0x2ea29b['type'])return;const {data:_0x48cd54}=_0x2ea29b;return _0x48cd54&&'removeFormat'==_0x48cd54['commandName']?{'type':'format','content':c(_0x22a001['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x1f2d8e{['afterInit'](){const _0x194df=this['editor'];if(!_0x194df['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x460d78=_0x194df['plugins']['get']('TrackChangesEditing');_0x460d78['enableCommand']('goToPreviousRestrictedEditingException'),_0x460d78['enableCommand']('goToNextRestrictedEditingException');const _0x4838ae=_0x194df['plugins']['get']('RestrictedEditingModeEditing');_0x4838ae['enableCommand']('trackChanges'),_0x4838ae['enableCommand']('acceptSuggestion'),_0x4838ae['enableCommand']('discardSuggestion'),_0x4838ae['enableCommand']('acceptAllSuggestions'),_0x4838ae['enableCommand']('discardAllSuggestions'),_0x4838ae['enableCommand']('acceptSelectedSuggestions'),_0x4838ae['enableCommand']('discardSelectedSuggestions');}}class It extends _0x1f2d8e{['afterInit'](){const _0xd6dbe0=this['editor'];if(!_0xd6dbe0['plugins']['has']('ShiftEnter'))return;const _0x4eb6d9=_0xd6dbe0['plugins']['get']('TrackChangesEditing');_0x4eb6d9['enableCommand']('shiftEnter'),_0xd6dbe0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0xd6dbe0),{'priority':'high'}),_0xd6dbe0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0xd6dbe0),{'priority':'high'}),_0xd6dbe0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x390bf2,_0x20ea40,_0x315f64)=>{_0x315f64['options']['showSuggestionHighlights']&&je(_0xd6dbe0,{'showActiveMarker':!0x1})(_0x390bf2,_0x20ea40,_0x315f64);}),_0x4eb6d9['descriptionFactory']['registerElementLabel']('softBreak',_0x599b47=>c(_0xd6dbe0['locale'],'ELEMENT_LINE_BREAK',_0x599b47));}}function je(_0x234433,{showActiveMarker:_0x219d78=!0x0}={}){return(_0x323ac7,_0x1db496,_0x258605)=>{const _0x5de4ee=_0x234433['plugins']['get']('TrackChangesEditing');if(!_0x258605['consumable']['test'](_0x1db496['markerRange'],_0x323ac7['name']))return;const _0x495704=_0x234433['model'];for(const _0x55206d of _0x1db496['markerRange']['getItems']()){if(!_0x55206d['is']('element','softBreak'))continue;const _0x3246ad='deletion'==_0x1db496['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x3c56f9,authorId:_0x42b1e3}=_0x5de4ee['_splitMarkerName'](_0x1db496['markerName']),_0x1787f6=_0x258605['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3246ad,'data-suggestion':_0x3c56f9,'data-author-id':_0x42b1e3}),_0x19f2ed=_0x258605['mapper']['toViewPosition'](_0x495704['createPositionBefore'](_0x55206d));_0x219d78&&_0x5de4ee['activeMarkers']['includes'](_0x1db496['markerName'])&&_0x258605['writer']['addClass']('ck-suggestion-marker--active',_0x1787f6),_0x258605['writer']['insert'](_0x19f2ed,_0x1787f6),_0x258605['mapper']['bindElementToMarker'](_0x1787f6,_0x1db496['markerName']);}};}class _t extends _0x1f2d8e{['afterInit'](){const _0x170adf=this['editor'],_0x220444=_0x170adf['model'],_0x4ff7dd=_0x170adf['locale'];if(!_0x170adf['plugins']['has']('StandardEditingModeEditing'))return;const _0x33840f=_0x170adf['plugins']['get']('TrackChangesEditing'),_0x54248b='restrictedEditingException',_0x58fe18=_0x170adf['commands']['get'](_0x54248b);_0x33840f['enableCommand'](_0x54248b,(_0x4db7ed,_0x5bb788={})=>{const _0x377f8d=_0x220444['document']['selection'];if(_0x377f8d['isCollapsed'])return void _0x4db7ed(_0x5bb788);const _0x4d3b88=void 0x0!==_0x5bb788['forceValue']?_0x5bb788['forceValue']:!_0x58fe18['value'];_0x220444['change'](()=>{const _0x49eeb1=Array['from'](_0x377f8d['getRanges']());for(const _0x1721b4 of _0x49eeb1){const _0x4a5e70=_0x4d3b88?[_0x1721b4]:io(_0x54248b,_0x1721b4,_0x220444);for(const _0xa58896 of _0x4a5e70)_0x33840f['markInlineFormat'](_0xa58896,{'commandName':_0x54248b,'commandParams':[{'forceValue':_0x4d3b88}]});}});}),_0x33840f['descriptionFactory']['registerDescriptionCallback'](_0x3fa985=>{if('formatBlock'!=_0x3fa985['type']&&'formatInline'!=_0x3fa985['type'])return;const {data:_0x37782f}=_0x3fa985;return _0x37782f&&_0x37782f['commandName']==_0x54248b?_0x37782f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4ff7dd,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x4ff7dd,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x1f2d8e{['afterInit'](){const _0x13c57e=this['editor'];if(!_0x13c57e['plugins']['has']('Style')||!_0x13c57e['plugins']['has']('DataSchema'))return;const _0x102b38=_0x13c57e['plugins']['get']('TrackChangesEditing'),_0x49962b=_0x13c57e['locale'],_0x16bdbd=_0x13c57e['config']['get']('style')||{},_0x4d81f1=_0x13c57e['plugins']['get']('GeneralHtmlSupport'),_0x132fa5=_0x13c57e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x13c57e['plugins']['get']('DataSchema'),_0x16bdbd['definitions']);_0x102b38['enableDefaultAttributesIntegration']('style');const _0xd4e656=new Set();for(const _0x5d789d of _0x132fa5['block']){const _0x509a2b=_0x4d81f1['getGhsAttributeNameForElement'](_0x5d789d['element']);_0xd4e656['add'](_0x509a2b);}const _0x282bb1=new Set();for(const _0xfac41a of _0x132fa5['inline']){const _0x5d2334=_0x4d81f1['getGhsAttributeNameForElement'](_0xfac41a['element']);_0x282bb1['add'](_0x5d2334);for(const _0xe63bb2 of _0xfac41a['ghsAttributes'])_0x282bb1['add'](_0xe63bb2);}for(const _0x59ba9d of _0xd4e656)_0x102b38['registerBlockAttribute'](_0x59ba9d),_0x102b38['descriptionFactory']['registerAttributeLabel'](_0x59ba9d,c(_0x49962b,'FORMAT_STYLE'));for(const _0x59d88e of _0x282bb1)_0x102b38['registerInlineAttribute'](_0x59d88e),_0x102b38['descriptionFactory']['registerAttributeLabel'](_0x59d88e,c(_0x49962b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xee1089=this['editor'],_0x3f7b36=_0xee1089['locale'];_0xee1089['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2dc3df=>{if('formatBlock'!=_0x2dc3df['type']&&'formatInline'!=_0x2dc3df['type'])return;const {data:_0x3d114b}=_0x2dc3df;return _0x3d114b&&'style'===_0x3d114b['commandName']?_0x3d114b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3f7b36,'*Set\x20format:*\x20%0',_0x3d114b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x3f7b36,'*Remove\x20format:*\x20%0',_0x3d114b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x1f2d8e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x17b1aa){super(_0x17b1aa),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4ea9a0=this['editor'],_0x21a3ee=_0x4ea9a0['model']['document']['selection'];if(!_0x4ea9a0['plugins']['has']('TableEditing'))return;const _0x1f0e76=_0x4ea9a0['locale'],_0x1766a9=_0x4ea9a0['plugins']['get']('TrackChangesEditing'),_0x151e38=_0x4ea9a0['plugins']['get']('TableUtils');_0x1766a9['descriptionFactory']['registerElementLabel']('table',_0x3e4856=>c(_0x1f0e76,'ELEMENT_TABLE',_0x3e4856)),this['_setupColumnsRowsFixing'](),_0x1766a9['enableCommand']('insertTable'),_0x1766a9['enableCommand']('selectTableRow'),_0x1766a9['enableCommand']('selectTableColumn');for(const _0x4bff7a of['insertTableRowAbove','insertTableRowBelow']){const _0x5ee07b=_0x4ea9a0['commands']['get'](_0x4bff7a);_0x1766a9['enableCommand'](_0x4bff7a,_0x1aa0dc=>{_0x4ea9a0['model']['change'](_0x55d13e=>{_0x1aa0dc();const _0x3a08fa='above'===_0x5ee07b['order'],_0x147ba8=_0x151e38['getSelectionAffectedTableCells'](_0x21a3ee),_0xf22ef6=_0x151e38['getRowIndexes'](_0x147ba8),_0x20c82c=_0x3a08fa?_0xf22ef6['first']-0x1:_0xf22ef6['last']+0x1,_0x5ae5e5=_0x147ba8[0x0]['findAncestor']('table'),_0x3e648a=_0x151e38['createTableWalker'](_0x5ae5e5,{'startRow':_0x20c82c,'endRow':_0x20c82c}),_0x206f18=Array['from'](_0x3e648a)['map'](_0x2f8a35=>_0x55d13e['createRangeOn'](_0x2f8a35['cell']));_0x1766a9['markMultiRangeInsertion'](_0x206f18,'tableRow');});});}for(const _0x7158cd of['insertTableColumnLeft','insertTableColumnRight']){const _0x471af7=_0x4ea9a0['commands']['get'](_0x7158cd);_0x1766a9['enableCommand'](_0x7158cd,_0x225df8=>{_0x4ea9a0['model']['change'](_0x1253e1=>{_0x225df8();const _0x39196c='left'===_0x471af7['order'],_0x19ee45=_0x151e38['getSelectionAffectedTableCells'](_0x21a3ee),_0x16d290=_0x151e38['getColumnIndexes'](_0x19ee45),_0x36e462=_0x39196c?_0x16d290['first']-0x1:_0x16d290['last']+0x1,_0x55fc4c=_0x19ee45[0x0]['findAncestor']('table'),_0x37620c=_0x151e38['createTableWalker'](_0x55fc4c,{'startRow':0x0,'column':_0x36e462,'includeAllSlots':!0x1}),_0x177a45=Array['from'](_0x37620c)['map'](_0x11daf3=>_0x1253e1['createRangeOn'](_0x11daf3['cell']));_0x1766a9['markMultiRangeInsertion'](_0x177a45,'tableColumn');});});}for(const _0x185765 of['removeTableRow','removeTableColumn']){const _0x552d20=_0x185765['substr'](0xb),_0x1b2de5=_0x552d20['toLowerCase'](),_0x3522a7=_0x1b2de5['substr'](0x0,0x3)+'span',_0x14c0d7='table'+_0x552d20,_0x31d122='min'+_0x552d20,_0x35dad5='max'+_0x552d20;_0x1766a9['enableCommand'](_0x185765,()=>{_0x4ea9a0['model']['change'](_0x1aeefd=>{const _0x113889=_0x151e38['getSelectionAffectedTableCells'](_0x21a3ee),_0xb360dd=_0x113889[0x0]['findAncestor']('table');let _0x2d2975;if('removeTableRow'==_0x185765){const _0x71be2f=_0x151e38['getRowIndexes'](_0x113889);_0x2d2975={'startRow':_0x71be2f['first'],'endRow':_0x71be2f['last'],'includeAllSlots':!0x0};}else{const _0x383805=_0x151e38['getColumnIndexes'](_0x113889);_0x2d2975={'startColumn':_0x383805['first'],'endColumn':_0x383805['last'],'includeAllSlots':!0x0};}const _0x35efce=_0x151e38['createTableWalker'](_0xb360dd,_0x2d2975),_0x3b5d09=Array['from'](_0x35efce)['map'](({cell:_0x3f67e5})=>_0x3f67e5),_0x1322ea=xe(_0x3b5d09['filter'](_0x240638=>_0x240638['hasAttribute'](_0x3522a7))),_0x465125=xe(_0x3b5d09['filter'](_0x145a52=>!_0x145a52['hasAttribute'](_0x3522a7)))['map'](_0xb00ab0=>_0x1aeefd['createRangeOn'](_0xb00ab0)),_0x5752c9=_0x1766a9['markMultiRangeDeletion'](_0x465125,_0x14c0d7);if(_0x5752c9&&('tableRow'==_0x5752c9['subType']||'tableColumn'==_0x5752c9['subType'])){const _0x1be55e=this['_getSuggestionCoords'](_0x5752c9);for(const _0x3608d6 of _0x1322ea){const _0x4d44f2=_0x1aeefd['createRangeOn'](_0x3608d6),_0x4c8c62=_0x151e38['getCellLocation'](_0x3608d6),_0x288d3c=_0x3608d6['getAttribute'](_0x3522a7)-0x1,_0x4f24fc=_0x1be55e[_0x31d122],_0x4a20cd=_0x1be55e[_0x35dad5];_0x4f24fc<=_0x4c8c62[_0x1b2de5]&&_0x4c8c62[_0x1b2de5]+_0x288d3c<=_0x4a20cd&&_0x5752c9['addRange'](_0x4d44f2);}}});});}function _0x12c365(_0x2a37c7){const _0x5222d9=Array['from'](_0x21a3ee['getRanges']())['map'](_0x3b384e=>_0x41f0a3['fromRange'](_0x3b384e));_0x4ea9a0['model']['change'](_0x1948c5=>{const _0x3d16e8=_0x1948c5['batch'];_0x2a37c7=_0x2a37c7['filter'](_0x4acd6a=>'$graveyard'!=_0x4acd6a['root']['rootName']),_0x1948c5['setSelection'](_0x2a37c7),_0x4ea9a0['commands']['get']('removeTableRow')['refresh'](),_0x4ea9a0['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4ea9a0['model']['enqueueChange'](()=>{_0x4ea9a0['model']['enqueueChange'](_0x3d16e8,_0x470ffe=>{const _0x43c022=_0x5222d9['filter'](_0x387085=>'$graveyard'!=_0x387085['root']['rootName']);_0x43c022['length']>0x0&&_0x470ffe['setSelection'](_0x43c022);for(const _0x1114fc of _0x5222d9)_0x1114fc['detach']();});});});}function _0x217d96(_0x30d9e1){_0x4ea9a0['model']['change'](_0x499f06=>{const _0x1f1cb3=Array['from'](_0x21a3ee['getRanges']())['map'](_0x256295=>_0x41f0a3['fromRange'](_0x256295)),_0x43083a=[];for(const _0x23ad4a of _0x30d9e1)for(const _0x411372 of _0x23ad4a['getItems']({'shallow':!0x0}))_0x43083a['push'](_0x411372);for(const _0x49773a of _0x43083a)'$graveyard'!=_0x49773a['root']['rootName']&&(_0x499f06['setSelection'](_0x499f06['createPositionAt'](_0x49773a,0x0)),_0x4ea9a0['commands']['get']('removeTableColumn')['refresh'](),_0x4ea9a0['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2c9737=_0x1f1cb3['filter'](_0x5ca149=>'$graveyard'!=_0x5ca149['root']['rootName']);_0x2c9737['length']>0x0&&_0x499f06['setSelection'](_0x2c9737);for(const _0x3f2d23 of _0x1f1cb3)_0x3f2d23['detach']();});}function _0x25feb4(_0x200b36,_0x5b4d5f){return _0x5b4d5f['every'](_0x24c20b=>_0x200b36['some'](_0x56074f=>_0x56074f['end']['isEqual'](_0x24c20b['start'])||_0x24c20b['end']['isEqual'](_0x56074f['start'])));}function _0x377c9e(_0x3472af,_0x2cb416){return!_0x3472af['some'](_0x3c9bb1=>_0x2cb416['some'](_0x33823f=>_0x3c9bb1['isIntersecting'](_0x33823f)))&&_0x3472af['some'](_0x5e44b3=>_0x2cb416['some'](_0x28a67e=>_0x5e44b3['end']['isTouching'](_0x28a67e['start'])));}_0x4ea9a0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1d638b,_0x5f2675,_0x3f7946)=>{if(!_0x3f7946['options']['showSuggestionHighlights'])return;const _0x4f80d0=_0x5f2675['item'];if(!_0x4f80d0||!_0x4f80d0['is']('element','tableCell'))return;const _0x131e3e=_0x3f7946['mapper']['toViewElement'](_0x4f80d0);if(_0x131e3e){const {id:_0x9da72c,authorId:_0x5d16c6}=_0x1766a9['_splitMarkerName'](_0x5f2675['markerName']);_0x2af7d7(_0x131e3e,_0x3f7946['writer'],(_0x3a753f,_0x3ac374,_0x5590d8)=>{_0x5590d8['addClass'](_0x47f455(_0x3ac374['classes']),_0x3a753f),_0x5590d8['setAttribute']('data-suggestion-id',_0x9da72c,_0x3a753f),_0x5590d8['setAttribute']('data-author-id',_0x5d16c6,_0x3a753f);},(_0x1a79a5,_0x2272fd,_0x20667c)=>{_0x20667c['removeClass'](_0x47f455(_0x2272fd['classes']),_0x1a79a5),_0x20667c['removeAttribute']('data-suggestion-id',_0x1a79a5),_0x20667c['removeAttribute']('data-author-id',_0x1a79a5);});}},{'priority':'highest'}),_0x1766a9['descriptionFactory']['registerDescriptionCallback'](_0x22110a=>{if('insertion'!=_0x22110a['type']&&'deletion'!=_0x22110a['type'])return;const _0x5c6976=_0x22110a['getContainedElement']();if(null!=_0x5c6976&&_0x5c6976['is']('element','table')){if('insertion'==_0x22110a['type']){const _0x4d61ab=_0x22110a['getItems']()['filter'](_0x323294=>_0x323294['is']('$textProxy'))['map'](_0x32900a=>_0x32900a['data']);if(_0x4d61ab['length'])return{'type':'insertion','content':c(_0x1f0e76,'*Insert:*\x20%0',c(_0x1f0e76,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4d61ab['join']('\x20')+'\x22'))};}if('deletion'==_0x22110a['type']){const _0x1a62ff=_0x22110a['getItems']()['filter'](_0x5f434b=>_0x5f434b['is']('$textProxy'))['map'](_0x1a6bc3=>_0x1a6bc3['data']);if(_0x1a62ff['length'])return{'type':'deletion','content':c(_0x1f0e76,'*Remove:*\x20%0',c(_0x1f0e76,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1a62ff['join']('\x20')+'\x22'))};}}}),_0x1766a9['descriptionFactory']['registerDescriptionCallback'](_0x18d262=>{if('tableRow'==_0x18d262['subType']){const _0x1df5cc=_0x18d262['getItems']()['filter'](_0x4ec683=>_0x4ec683['is']('$textProxy'))['map'](_0x3e29ed=>_0x3e29ed['data']),_0x285ca0=this['_getSuggestionCoords'](_0x18d262),_0x203ae2=_0x285ca0['maxRow']-_0x285ca0['minRow']+0x1;if('insertion'==_0x18d262['type'])return _0x1df5cc['length']?{'type':'insertion','content':c(_0x1f0e76,'*Insert:*\x20%0',c(_0x1f0e76,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x203ae2,'\x22'+_0x1df5cc['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1f0e76,'*Insert:*\x20%0',c(_0x1f0e76,'ELEMENT_TABLE_ROW',_0x203ae2))};if('deletion'==_0x18d262['type'])return _0x1df5cc['length']?{'type':'deletion','content':c(_0x1f0e76,'*Remove:*\x20%0',c(_0x1f0e76,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x203ae2,'\x22'+_0x1df5cc['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1f0e76,'*Remove:*\x20%0',c(_0x1f0e76,'ELEMENT_TABLE_ROW',_0x203ae2))};}if('tableColumn'==_0x18d262['subType']){const _0x1bad86=_0x18d262['getItems']()['filter'](_0x57d650=>_0x57d650['is']('$textProxy'))['map'](_0x3cdeea=>_0x3cdeea['data']),_0x4b51eb=this['_getSuggestionCoords'](_0x18d262),_0x397a64=_0x4b51eb['maxColumn']-_0x4b51eb['minColumn']+0x1;if('insertion'==_0x18d262['type'])return _0x1bad86['length']?{'type':'insertion','content':c(_0x1f0e76,'*Insert:*\x20%0',c(_0x1f0e76,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x397a64,'\x22'+_0x1bad86['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1f0e76,'*Insert:*\x20%0',c(_0x1f0e76,'ELEMENT_TABLE_COLUMN',_0x397a64))};if('deletion'==_0x18d262['type'])return _0x1bad86['length']?{'type':'deletion','content':c(_0x1f0e76,'*Remove:*\x20%0',c(_0x1f0e76,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x397a64,'\x22'+_0x1bad86['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1f0e76,'*Remove:*\x20%0',c(_0x1f0e76,'ELEMENT_TABLE_COLUMN',_0x397a64))};}}),_0x1766a9['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x12c365),_0x1766a9['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x12c365),_0x1766a9['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x217d96),_0x1766a9['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x217d96),_0x1766a9['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x25feb4),_0x1766a9['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x25feb4),_0x1766a9['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x377c9e),_0x1766a9['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x377c9e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1f3172=this['editor'],_0x943650=_0x1f3172['model']['document']['selection'];return(_0x666f43,_0x5297b9)=>{_0x1f3172['model']['change'](_0x1078a4=>{const {commandName:_0x5c3016,commandParams:_0x1dde1a}=_0x5297b9;let _0x10ea76=_0x666f43[0x0]['end']['nodeBefore'];_0x1dde1a&&_0x1dde1a[0x0]&&!0x1===_0x1dde1a[0x0]['forceValue']&&(_0x10ea76=_0x666f43[0x0]['start']['nodeAfter']);const _0x221073=_0x1078a4['createRangeIn'](_0x10ea76);if('$graveyard'==_0x221073['root']['rootName'])return;const _0x3f6192=Array['from'](_0x943650['getRanges']())['map'](_0x4157d2=>_0x41f0a3['fromRange'](_0x4157d2));_0x1078a4['setSelection'](_0x221073),_0x1f3172['commands']['get'](_0x5c3016)['refresh'](),_0x1dde1a['push']({'forceDefaultExecution':!0x0}),_0x1f3172['execute'](_0x5c3016,..._0x1dde1a);const _0x387db8=_0x3f6192['filter'](_0x3be3e1=>'$graveyard'!=_0x3be3e1['root']['rootName']);_0x387db8['length']>0x0&&_0x1078a4['setSelection'](_0x387db8);for(const _0x29d97e of _0x3f6192)_0x29d97e['detach']();});};}['_getCoordsForCells'](_0x53d306){const _0x2d10dd=this['editor']['plugins']['get']('TableUtils');let _0x30ca24=Number['MAX_SAFE_INTEGER'],_0x22517d=Number['MIN_SAFE_INTEGER'],_0x3460ea=Number['MAX_SAFE_INTEGER'],_0x15dc39=Number['MIN_SAFE_INTEGER'];for(const _0x353e1d of _0x53d306){if('$graveyard'==_0x353e1d['root']['rootName'])continue;const {row:_0x5629eb,column:_0x15fc86}=_0x2d10dd['getCellLocation'](_0x353e1d),_0x3b885b=_0x353e1d['hasAttribute']('rowspan')?_0x353e1d['getAttribute']('rowspan')-0x1:0x0,_0xdeb4ff=_0x353e1d['hasAttribute']('colspan')?_0x353e1d['getAttribute']('colspan')-0x1:0x0;_0x30ca24=_0x5629eb<_0x30ca24?_0x5629eb:_0x30ca24,_0x22517d=_0x5629eb+_0x3b885b>_0x22517d?_0x5629eb+_0x3b885b:_0x22517d,_0x3460ea=_0x15fc86<_0x3460ea?_0x15fc86:_0x3460ea,_0x15dc39=_0x15fc86+_0xdeb4ff>_0x15dc39?_0x15fc86+_0xdeb4ff:_0x15dc39;}return{'minRow':_0x30ca24,'maxRow':_0x22517d,'minColumn':_0x3460ea,'maxColumn':_0x15dc39};}['_setupColumnsRowsFixing'](){const _0x1a18a7=this['editor'],_0x11f327=_0x1a18a7['plugins']['get']('TrackChangesEditing'),_0x4e87b8=_0x1a18a7['plugins']['get']('TableUtils');_0x1a18a7['model']['document']['on']('change:data',()=>{const _0x13528c=Array['from'](_0x1a18a7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x38ac6c,data:_0x248eec}of _0x13528c){const {group:_0x4cae12,id:_0x48fdd6,subType:_0x108754}=_0x11f327['_splitMarkerName'](_0x38ac6c);if('suggestion'!=_0x4cae12)continue;if(null!=_0x248eec['oldRange'])continue;const _0x5e965b=_0x11f327['getSuggestion'](_0x48fdd6);this['_tablePostFixingSubtypes']['includes'](_0x108754)&&this['_tableSuggestions']['add'](_0x5e965b);}},{'priority':'low'});const _0x4b2ae7=(_0x4468a0,_0x551770)=>{let _0x52a856=!0x1;const _0x398656=_0x551770['createRangeOn'](_0x4468a0),_0x4527be=_0x4468a0['findAncestor']('table'),_0x423668=_0x4e87b8['getCellLocation'](_0x4468a0);for(const _0x1aab48 of this['_tableSuggestions']){const _0x3303bb=_0x1aab48['subType'],_0xeb284a=_0x3303bb['startsWith']('tablePaste'),_0x4104c4=_0x3303bb['substr'](_0xeb284a?0xa:0x5),_0x2218d5=_0x4104c4['toLowerCase'](),_0x2d8999=_0x2218d5['substr'](0x0,0x3)+'span',_0x2d4660='min'+_0x4104c4,_0x4a8fbd='max'+_0x4104c4;if(!_0x1aab48['isInContent'])continue;if(_0x4527be!=_0x1aab48['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1aab48['isIntersectingWithRange'](_0x398656))continue;const _0x384417=_0x4468a0['hasAttribute'](_0x2d8999)?_0x4468a0['getAttribute'](_0x2d8999)-0x1:0x0,_0x167aa5=this['_getSuggestionCoords'](_0x1aab48),_0x2b5f33=_0x167aa5[_0x2d4660],_0x13b191=_0x167aa5[_0x4a8fbd];_0x2b5f33<=_0x423668[_0x2218d5]&&_0x423668[_0x2218d5]+_0x384417<=_0x13b191&&(_0x1aab48['addRange'](_0x398656),_0x52a856=!0x0);}return _0x52a856;};_0x1a18a7['model']['document']['registerPostFixer'](_0x1ae0fc=>{let _0x11e6e5=!0x1;for(const _0x5985bc of _0x1a18a7['model']['document']['differ']['getChanges']())if('insert'==_0x5985bc['type']){if('tableRow'==_0x5985bc['name']){for(const _0x5b2516 of _0x5985bc['position']['nodeAfter']['getChildren']())_0x11e6e5=_0x11e6e5||_0x4b2ae7(_0x5b2516,_0x1ae0fc);}else'tableCell'==_0x5985bc['name']&&(_0x11e6e5=_0x11e6e5||_0x4b2ae7(_0x5985bc['position']['nodeAfter'],_0x1ae0fc));}return _0x11e6e5;});}['_getSuggestionCoords'](_0x101f73){return this['_getCoordsForCells'](_0x101f73['getRanges']()['map'](_0x4719a4=>_0x4719a4['start']['nodeAfter']));}}function xe(_0x352823){return Array['from'](new Set(_0x352823)['values']());}class Nt extends _0x1f2d8e{static get['requires'](){return[Ct];}['afterInit'](){const _0x4c11aa=this['editor'],_0x480cc7=_0x4c11aa['model']['document']['selection'],_0x30ca93=_0x4c11aa['locale'];if(!_0x4c11aa['plugins']['has']('TableEditing'))return;const _0x2caacc=_0x4c11aa['plugins']['get']('TrackChangesEditing'),_0x464073=_0x4c11aa['plugins']['get']('TableUtils'),_0x71e7be=_0x4c11aa['plugins']['get'](Ct);_0x71e7be['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2caacc['enableCommand']('mergeTableCells',()=>{const _0x5d58ac=_0x464073['getSelectionAffectedTableCells'](_0x4c11aa['model']['document']['selection']);_0x4c11aa['model']['change'](()=>{_0x2caacc['markMultiRangeBlockFormat'](_0x5d58ac,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4c11aa['commands']['get']('mergeTableCells')['on']('execute',(_0x35e672,_0x249ea6)=>{_0x4c11aa['commands']['get']('trackChanges')['value']&&(_0x249ea6['length']>0x0&&_0x249ea6[_0x249ea6['length']-0x1]&&_0x249ea6[_0x249ea6['length']-0x1]['forceDefaultExecution']||_0x2caacc['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x35e672['stop']());},{'priority':'highest'});for(const _0xe89efc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x25fb16=_0x4c11aa['commands']['get'](_0xe89efc);_0x2caacc['enableCommand'](_0xe89efc,()=>{const _0xc88665=_0x4c11aa['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x54ed5f=>_0x54ed5f['is']('element','tableCell')),_0x510650=_0x25fb16['value'];_0x4c11aa['model']['change'](()=>{_0x2caacc['markMultiRangeBlockFormat']([_0xc88665,_0x510650],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x15bb51 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x52e5be=_0x4c11aa['commands']['get'](_0x15bb51);_0x2caacc['enableCommand'](_0x15bb51,()=>{const _0x10dd03=_0x464073['getSelectionAffectedTableCells'](_0x4c11aa['model']['document']['selection'])[0x0],_0x5551e8=_0x10dd03['findAncestor']('table'),{column:_0x1141e5,row:_0x24b2f8}=_0x464073['getCellLocation'](_0x10dd03);let _0x312fc2=[];if('horizontally'==_0x52e5be['direction']){const _0x3bd12e=_0x464073['createTableWalker'](_0x5551e8,{'startRow':_0x24b2f8,'endRow':_0x24b2f8,'includeAllSlots':!0x0});_0x312fc2=Array['from'](_0x3bd12e)['map'](_0x1792ef=>_0x1792ef['cell']);}else{const _0x13cc0c=_0x464073['createTableWalker'](_0x5551e8,{'column':_0x1141e5,'includeAllSlots':!0x0});_0x312fc2=Array['from'](_0x13cc0c)['map'](_0x5505af=>_0x5505af['cell']);}_0x4c11aa['model']['change'](_0x4703ae=>{_0x2caacc['markBlockFormat'](_0x4703ae['createRangeOn'](_0x10dd03),{'commandName':_0x15bb51,'commandParams':[]},_0x312fc2,_0x15bb51);});});}_0x2caacc['descriptionFactory']['registerDescriptionCallback'](_0x1d84e1=>{if('formatBlock'!=_0x1d84e1['type']&&'formatInline'!=_0x1d84e1['type'])return;const {data:_0xd75afa}=_0x1d84e1;return _0xd75afa&&'mergeTableCells'==_0xd75afa['commandName']?{'type':'format','content':c(_0x30ca93,'*Merge\x20cells*')}:void 0x0;}),_0x2caacc['descriptionFactory']['registerDescriptionCallback'](_0x22b64d=>{if('formatBlock'!=_0x22b64d['type']&&'formatInline'!=_0x22b64d['type'])return;const {data:_0x39b1c5}=_0x22b64d;return _0x39b1c5?'splitTableCellVertically'==_0x39b1c5['commandName']?{'type':'format','content':c(_0x30ca93,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x39b1c5['commandName']?{'type':'format','content':c(_0x30ca93,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2c6247=_0x71e7be['_acceptFormatSuggestionCallbackFactory']();for(const _0x53d62c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2caacc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x53d62c,'accept',_0x2c6247);for(const _0x1f0174 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2caacc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f0174,'accept',_0x2c6247);_0x2caacc['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4fcde7=>{_0x4c11aa['model']['change'](_0xc41427=>{const _0x1fce6f=Array['from'](_0x480cc7['getRanges']())['map'](_0x21e4a2=>_0x41f0a3['fromRange'](_0x21e4a2));_0xc41427['setSelection'](_0x4fcde7),_0x4c11aa['commands']['get']('mergeTableCells')['refresh'](),_0x4c11aa['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x17f2a8=_0x1fce6f['filter'](_0x4e7e2e=>'$graveyard'!=_0x4e7e2e['root']['rootName']);_0x17f2a8['length']>0x0&&_0xc41427['setSelection'](_0x17f2a8);for(const _0x40d587 of _0x1fce6f)_0x40d587['detach']();});});for(const _0x507818 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4dbb0f=_0x4c11aa['commands']['get'](_0x507818);_0x4dbb0f['on']('set:isEnabled',(_0x10688c,_0x64aecf,_0x529389)=>{if(_0x529389){const _0x249968=_0x4c11aa['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x31b732=>_0x31b732['is']('element','tableCell'));this['_areMergableCells'](_0x4dbb0f['value'],_0x249968)||(_0x10688c['return']=!0x1,_0x10688c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2957b5=this['editor']['commands']['get']('mergeTableCells'),_0x540d13=this['editor']['plugins']['get']('TableUtils');if(!_0x2957b5['isEnabled'])return!0x1;const _0x432dcb=_0x540d13['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1a7bcb of _0x432dcb)for(const _0x95975 of _0x432dcb)if(_0x1a7bcb!=_0x95975&&!this['_areMergableCells'](_0x1a7bcb,_0x95975))return!0x1;return!0x0;}['_areMergableCells'](_0x31ee42,_0x15cba4){const _0x130cbe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d7d8e=this['editor']['model']['createRangeOn'](_0x31ee42),_0x532847=this['editor']['model']['createRangeOn'](_0x15cba4),_0x3e2d76=new Set(),_0x52c40b=new Set();for(const _0x4076e2 of _0x130cbe['getSuggestions']())if(('insertion'==_0x4076e2['type']||'deletion'==_0x4076e2['type']||'mergeTableCells'==_0x4076e2['subType'])&&_0x4076e2['isInContent']){for(const _0x306760 of _0x4076e2['getRanges']())_0x306760['containsRange'](_0x2d7d8e,!0x0)&&_0x3e2d76['add'](_0x4076e2['type']+':'+_0x4076e2['author']['id']),_0x306760['containsRange'](_0x532847,!0x0)&&_0x52c40b['add'](_0x4076e2['type']+':'+_0x4076e2['author']['id']);}if(_0x3e2d76['size']!=_0x52c40b['size'])return!0x1;for(const _0x330f0c of _0x3e2d76)if(!_0x52c40b['has'](_0x330f0c))return!0x1;return!0x0;}}class Dt extends _0x1f2d8e{static get['requires'](){return[Ct];}['afterInit'](){const _0x25b13e=this['editor'];if(!_0x25b13e['plugins']['has']('TableEditing'))return;const _0x3833d3=_0x25b13e['locale'],_0x2667d1=_0x25b13e['plugins']['get']('TrackChangesEditing');_0x2667d1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2667d1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2667d1['registerBlockAttribute']('headingRows'),_0x2667d1['registerBlockAttribute']('headingColumns'),_0x2667d1['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x3833d3,'FORMAT_HEADER_ROW')),_0x2667d1['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x3833d3,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x49d729=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24aebb=this['editor']['plugins']['get']('TableUtils'),_0x2312a9=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x3c6827({showActiveMarker:_0x55bf81=!0x0,setDataAttribute:_0x3ed3d7=!0x0}={}){return(_0x3a34f2,_0x44983b,_0x4941a4)=>{const {type:_0x23998c,id:_0x4e81f2}=_0x49d729['_splitMarkerName'](_0x44983b['markerName']),_0x15b6a9=_0x49d729['getSuggestion'](_0x4e81f2),_0x4a5179=_0x15b6a9['data'];if('formatBlock'!=_0x15b6a9['type']||!_0x4a5179||'setTableColumnHeader'!=_0x4a5179['commandName'])return;if(_0x44983b['item'])return void _0x3a34f2['stop']();if(!_0x4941a4['consumable']['consume'](_0x44983b['markerRange'],_0x3a34f2['name']))return;const _0xadbed5=_0x44983b['markerRange']['start']['nodeAfter'],_0xc88fd5=_0x44983b['markerRange']['end']['nodeBefore'],_0xffa86b=_0xadbed5['parent']['parent'],{column:_0x52a6c8}=_0x24aebb['getCellLocation'](_0xadbed5),{column:_0x218e6d}=_0x24aebb['getCellLocation'](_0xc88fd5);for(let _0x445bff=_0x52a6c8;_0x445bff<=_0x218e6d;_0x445bff++){const _0x9e2e67=_0x24aebb['createTableWalker'](_0xffa86b,{'column':_0x445bff,'includeAllSlots':!0x1});for(const _0x217da4 of _0x9e2e67){const _0x57afe5=_0x217da4['cell'],_0x16da39=_0x4941a4['mapper']['toViewElement'](_0x57afe5);_0x4941a4['writer']['addClass']('ck-suggestion-marker-'+_0x23998c,_0x16da39),_0x3ed3d7&&_0x4941a4['writer']['setAttribute']('data-suggestion',_0x4e81f2,_0x16da39),_0x4941a4['mapper']['bindElementToMarker'](_0x16da39,_0x44983b['markerName']),_0x55bf81&&(_0x49d729['activeMarkers']['includes'](_0x44983b['markerName'])?_0x4941a4['writer']['addClass']('ck-suggestion-marker--active',_0x16da39):_0x4941a4['writer']['removeClass']('ck-suggestion-marker--active',_0x16da39));}}};}_0x49d729['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2312a9),_0x49d729['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2312a9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3c6827(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x240d5f,_0x1642cb,_0x547307)=>{_0x547307['options']['showSuggestionHighlights']&&_0x3c6827({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x240d5f,_0x1642cb,_0x547307);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x105bbb,_0x30f238,_0x5238af)=>{const {type:_0xa21f66,id:_0xb560dd}=_0x49d729['_splitMarkerName'](_0x30f238['markerName']),_0x48b95d=_0x49d729['getSuggestion'](_0xb560dd),_0x400626=_0x48b95d['data'];if('formatBlock'!=_0x48b95d['type']||!_0x400626||'setTableColumnHeader'!=_0x400626['commandName'])return;const _0x22e8ad=_0x5238af['mapper']['markerNameToElements'](_0x30f238['markerName']);if(_0x22e8ad){for(const _0x12e47a of _0x22e8ad)_0x5238af['writer']['removeClass']('ck-suggestion-marker-'+_0xa21f66,_0x12e47a),_0x5238af['writer']['removeClass']('ck-suggestion-marker--active',_0x12e47a),_0x5238af['writer']['removeAttribute']('data-suggestion',_0x12e47a),_0x5238af['mapper']['unbindElementFromMarkerName'](_0x12e47a,_0x30f238['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51beed=this['editor'],_0x15d355=_0x51beed['locale'];function _0x3765f6(_0x56817c){return{'type':'format','content':c(_0x15d355,'*Format:*\x20%0',_0x56817c)};}_0x51beed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b8cd8=>{if('formatBlock'!=_0x5b8cd8['type'])return;const {data:_0x120378}=_0x5b8cd8;if(_0x120378){if('setTableRowHeader'==_0x120378['commandName']){const _0x2db0bc=_0x120378['commandParams'][0x0]['forceValue'];return _0x3765f6(c(_0x15d355,_0x2db0bc?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x120378['commandName']){const _0x3d2799=_0x120378['commandParams'][0x0]['forceValue'];return _0x3765f6(c(_0x15d355,_0x3d2799?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x1f2d8e{['afterInit'](){const _0x3f28b5=this['editor'],_0x1136d6=_0x3f28b5['locale'],_0x35dbeb=_0x3f28b5['plugins']['get']('TrackChangesEditing');function _0x2f3651(_0x3b5b59){return{'type':'format','content':''+c(_0x1136d6,'*Set\x20table\x20type:*\x20%0',_0x3b5b59)};}_0x3f28b5['plugins']['has']('TableLayout')&&(_0x35dbeb['enableCommand']('insertTableLayout'),_0x35dbeb['enableDefaultAttributesIntegration']('tableType'),_0x35dbeb['registerBlockAttribute']('tableType'),_0x35dbeb['descriptionFactory']['registerElementLabel'](_0x134267=>_0x134267['is']('element','table')&&'layout'===_0x134267['getAttribute']('tableType'),_0x3abd0f=>c(_0x1136d6,'ELEMENT_LAYOUT_TABLE',_0x3abd0f)),_0x35dbeb['descriptionFactory']['registerDescriptionCallback'](_0x3c2247=>{const {data:_0x50140f}=_0x3c2247;if(_0x50140f&&'tableType'==_0x50140f['key'])switch(_0x50140f['newValue']){case'layout':return _0x2f3651(c(_0x1136d6,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2f3651(c(_0x1136d6,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x2f74b3=>[_0x2f74b3,null]));class $t extends _0x1f2d8e{static get['requires'](){return[Ct];}['afterInit'](){const _0x162554=this['editor'];if(!_0x162554['plugins']['has']('TableClipboard'))return;const _0x136d58=_0x162554['plugins']['get']('TrackChangesEditing'),_0x5f011f=_0x162554['plugins']['get']('TableUtils'),_0x53dd96=_0x162554['plugins']['get'](Ct),_0x426a59=_0x162554['plugins']['get']('TableClipboard'),_0xe44b44=_0x162554['plugins']['get']('TableSelection'),_0x4d696d=_0x162554['plugins']['get'](_0x1f66ef);_0x53dd96['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x162554['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x162554['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x20ea8d=null,_0x4fee2e=!0x1;_0x4d696d['on']('contentInsertion',(_0xc1bbb,_0x1a3aaf)=>{_0x4fee2e='paste'===_0x1a3aaf['method'];}),_0x162554['model']['on']('insertContent',(_0x5ccc41,_0x119759)=>{if(!_0x4fee2e&&null===_0xe44b44['getSelectedTableCells']())return;const [_0x530991,_0x1dcc37]=_0x119759,_0x154d47=_0x119759[_0x119759['length']-0x1];_0x154d47&&_0x154d47['forceDefaultExecution']||_0x136d58['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2e0c3f,_0x1f3f70,_0x325f0f,_0x197958,_0x30ecbf){if(_0x1f3f70&&!_0x1f3f70['is']('documentSelection'))return!0x1;const _0x550d67=_0x30ecbf['getTableIfOnlyTableInContent'](_0x2e0c3f,_0x325f0f);if(!_0x550d67||!He(_0x550d67,void 0x0,_0x197958))return!0x1;const _0x111678=_0x197958['getSelectionAffectedTableCells'](_0x325f0f['document']['selection']);if(!_0x111678['length'])return!0x1;const _0x538bd8=_0x111678[0x0]['findAncestor']('table'),_0x1d2974=_0x197958['getRowIndexes'](_0x111678),_0x5da4dd=_0x197958['getColumnIndexes'](_0x111678),_0x2f05f7={'startRow':_0x1d2974['first'],'endRow':_0x1d2974['last'],'startColumn':_0x5da4dd['first'],'endColumn':_0x5da4dd['last']};return 0x1==_0x111678['length']&&(_0x2f05f7['endRow']+=_0x197958['getRows'](_0x550d67)-0x1,_0x2f05f7['endColumn']+=_0x197958['getColumns'](_0x550d67)-0x1),He(_0x538bd8,_0x2f05f7,_0x197958);}(_0x530991,_0x1dcc37,_0x162554['model'],_0x5f011f,_0x426a59)&&(_0x5ccc41['stop'](),_0x20ea8d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x162554['model']['change'](()=>{_0x162554['model']['insertContent'](_0x119759[0x0],_0x119759[0x1],_0x119759[0x2],{'forceDefaultExecution':!0x0});const _0x3b3ca7=_0x51cb10(),{rowInsertionRanges:_0x12ee5e,columnInsertionRanges:_0x8f4e44,insertionRanges:_0x1b2585,deletionRanges:_0x367a99,cells:_0x3ab93a}=_0x20ea8d;_0x12ee5e['length']&&_0x136d58['markMultiRangeInsertion'](_0x12ee5e,'tablePasteRow',{'tablePasteChainId':_0x3b3ca7}),_0x8f4e44['length']&&_0x136d58['markMultiRangeInsertion'](_0x8f4e44,'tablePasteColumn',{'tablePasteChainId':_0x3b3ca7}),_0x1b2585['length']&&(_0x136d58['markMultiRangeInsertion'](_0x1b2585,'tablePaste',{'tablePasteChainId':_0x3b3ca7,'skipNestingCheck':!0x0}),_0x1b2585['forEach'](_0x107c85=>_0x107c85['detach']?.())),_0x367a99['length']&&(_0x136d58['markMultiRangeDeletion'](_0x367a99,'tablePaste',{'tablePasteChainId':_0x3b3ca7,'skipNestingCheck':!0x0}),_0x367a99['forEach'](_0x171df7=>_0x171df7['detach']?.()));const _0x2334d3=_0x136d58['markMultiRangeBlockFormat'](_0x3ab93a['map'](({element:_0x232ae0})=>_0x232ae0),{'formatGroupId':_0x51cb10()},[],'tablePasteCell',{'tablePasteChainId':_0x3b3ca7});if(_0x2334d3){const _0x3fb65b=_0x2334d3['getMarkers'](),_0x281853=[];for(const {element:_0xbb5685,attributes:_0x5f3612}of _0x3ab93a){if(!_0x5f3612)continue;const _0x529ada=_0x162554['model']['createRangeOn'](_0xbb5685),_0xf32eba=_0x3fb65b['find'](_0x3b7435=>_0x3b7435['getRange']()['isEqual'](_0x529ada));_0xf32eba&&_0x281853['push']([_0xf32eba['name'],_0x5f3612]);}_0x281853['length']&&_0x2334d3['setAttribute']('markerAttributes',Object['fromEntries'](_0x281853));}_0x20ea8d=null;}));},{'priority':_0x2a07cf['high']+0xa}),_0x4d696d['on']('contentInsertion',()=>{_0x4fee2e=!0x1;},{'priority':'lowest'}),_0x162554['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x225db6,_0x208b57)=>{const [_0xe20f29,_0x1e1474,,_0x52b565]=_0x208b57;if(!_0x20ea8d)return;_0x225db6['stop']();const _0x33dcc5=_0xe20f29['cell'],_0x11b837=_0x1e1474,_0x4f6b09=De(_0x33dcc5),_0x31838f=De(_0x11b837);_0x225db6['return']=_0x33dcc5;let _0x56d3e1=null,_0x4499e7=null;if(_0x31838f||_0x4f6b09){if(_0x4f6b09&&!_0x31838f){_0x52b565['remove'](_0x33dcc5['getChild'](0x0));for(const _0x35389e of Array['from'](_0x11b837['getChildren']()))_0x52b565['insert'](_0x35389e,_0x33dcc5,'end');const _0x5526f6=_0x20ea8d['rowInsertionIndexes']['includes'](_0xe20f29['row']),_0x396f1f=_0x20ea8d['columnInsertionIndexes']['includes'](_0xe20f29['column']);_0x5526f6||_0x396f1f||(_0x56d3e1=_0x41f0a3['fromRange'](_0x52b565['createRangeIn'](_0x33dcc5)));}else _0x31838f&&!_0x4f6b09&&(_0x4499e7=_0x52b565['createRangeIn'](_0x33dcc5));}else{const _0x4fb01f=_0x52b565['createElement']('tableCellSuggestion'),_0x1e11af=_0x52b565['createElement']('tableCellSuggestion');_0x52b565['wrap'](_0x52b565['createRangeIn'](_0x33dcc5),_0x1e11af),_0x52b565['insert'](_0x4fb01f,_0x33dcc5,0x0);for(const _0x594b45 of Array['from'](_0x11b837['getChildren']()))_0x52b565['insert'](_0x594b45,_0x4fb01f,'end');_0x56d3e1=_0x41f0a3['fromRange'](_0x52b565['createRangeOn'](_0x4fb01f)),_0x4499e7=_0x41f0a3['fromRange'](_0x52b565['createRangeOn'](_0x1e11af));}const _0x16a6d7=Array['from'](_0x11b837['getAttributes']())['filter'](([_0x316f69])=>Oe['includes'](_0x316f69));_0x20ea8d['cells']['push']({'element':_0x33dcc5,'attributes':_0x16a6d7['length']?Object['fromEntries'](_0x16a6d7):null}),_0x56d3e1&&_0x20ea8d['insertionRanges']['push'](_0x56d3e1),_0x4499e7&&_0x20ea8d['deletionRanges']['push'](_0x4499e7);},{'priority':'high'}),_0x5f011f['on']('insertColumns',(_0x700f44,_0x289f9a)=>{const [_0x58fe9e,_0xecc068={}]=_0x289f9a;if(!_0x20ea8d)return;const _0x40c030=_0xecc068['at']||0x0,_0xc20569=_0xecc068['columns']||0x1;_0x20ea8d['columnInsertionIndexes']=new Array(_0xc20569)['fill'](_0x40c030)['map']((_0x593ac4,_0x58792b)=>_0x593ac4+_0x58792b);for(const {cell:_0x2aa936}of _0x5f011f['createTableWalker'](_0x58fe9e,{'startColumn':_0x40c030,'endColumn':_0x40c030+_0xc20569-0x1}))_0x20ea8d['columnInsertionRanges']['push'](_0x162554['model']['createRangeOn'](_0x2aa936));},{'priority':'low'}),_0x5f011f['on']('insertRows',(_0x44e7e1,_0x54d210)=>{const [_0x1b3475,_0x3ba6c4={}]=_0x54d210;if(!_0x20ea8d)return;const _0x3cddda=_0x3ba6c4['at']||0x0,_0x230e29=_0x3ba6c4['rows']||0x1;_0x20ea8d['rowInsertionIndexes']=new Array(_0x230e29)['fill'](_0x3cddda)['map']((_0x35e2a0,_0x1ad868)=>_0x35e2a0+_0x1ad868);for(const {cell:_0x3ec093}of _0x5f011f['createTableWalker'](_0x1b3475,{'startRow':_0x3cddda,'endRow':_0x3cddda+_0x230e29-0x1}))_0x20ea8d['rowInsertionRanges']['push'](_0x162554['model']['createRangeOn'](_0x3ec093));},{'priority':'low'}),_0x136d58['descriptionFactory']['registerDescriptionCallback'](_0x23a2a6=>{if(_0x23a2a6['subType']&&_0x23a2a6['subType']['startsWith']('tablePaste'))return _0x23a2a6['previous']?{}:{'type':'insertion','content':c(_0x162554['locale'],'*Replace\x20table\x20cells*')};});const _0xee55de=()=>!0x1;for(const _0x2ab4ea of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x136d58['_suggestionFactory']['registerCustomCallback']('insertion',_0x2ab4ea,'join',_0xee55de),_0x136d58['_suggestionFactory']['registerCustomCallback']('deletion',_0x2ab4ea,'join',_0xee55de),_0x136d58['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2ab4ea,'join',_0xee55de);_0x136d58['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xee55de),_0x136d58['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2d0e5f,_0x4a7357,_0x55af12)=>{const _0x4e4711=_0x2d0e5f['map'](_0xc7ac43=>_0xc7ac43['getContainedElement']())['filter'](_0x1ce5dc=>_0x1ce5dc),_0x491a32=new Map(_0x4e4711['map'](_0x27bc42=>[_0x27bc42,null]));if(_0x20ea8d){for(const {element:_0x55eeec,attributes:_0x50be2f}of _0x20ea8d['cells'])_0x50be2f&&_0x491a32['set'](_0x55eeec,_0x50be2f);}else{if(_0x55af12&&_0x55af12['markerAttributes'])for(const [_0x5aee9f,_0x1cafcf]of Object['entries'](_0x55af12['markerAttributes'])){const _0x2d0407=_0x162554['model']['markers']['get'](_0x5aee9f),_0x4090fb=_0x2d0407?_0x2d0407['getRange']()['getContainedElement']():null;_0x4090fb&&_0x491a32['set'](_0x4090fb,_0x1cafcf);}}_0x162554['model']['change'](_0xe8a4bd=>{for(const [_0x1af5df,_0x503376]of _0x491a32)_0xe8a4bd['setAttributes']({...Ue,..._0x503376},_0x1af5df);});});const _0x10929a=(_0x50bc21,_0x359952)=>{_0x136d58['_suggestionFactory']['registerCustomCallback'](_0x50bc21,'tablePaste',_0x359952,(_0x1a5cb3,_0xd7f661,_0x47bdc0)=>{_0x162554['model']['change'](_0x14c1ca=>{const _0x5e0fdf=[];for(const _0x25cf34 of _0x1a5cb3){const _0x153e54=_0x25cf34['start']['nodeAfter'];_0x153e54['is']('element','tableCellSuggestion')&&_0x5e0fdf['push'](_0x153e54);}_0x136d58['_suggestionFactory']['getSuggestionCallback'](_0x50bc21,null,_0x359952)(_0x1a5cb3,_0xd7f661,_0x47bdc0);for(const _0x2b92c8 of _0x5e0fdf)'$graveyard'!=_0x2b92c8['root']['rootName']&&_0x14c1ca['unwrap'](_0x2b92c8);});});};_0x10929a('insertion','accept'),_0x10929a('insertion','discard'),_0x10929a('deletion','accept'),_0x10929a('deletion','discard'),_0x136d58['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x53131c=>{const _0x3036b5=_0x53131c['map'](_0x18235f=>_0x18235f['getContainedElement']()),_0x2eab16=_0x3036b5[0x0]['findAncestor']('table'),{minRow:_0x3c7864,maxRow:_0x581ad4}=_0x53dd96['_getCoordsForCells'](_0x3036b5);_0x5f011f['removeRows'](_0x2eab16,{'at':_0x3c7864,'rows':_0x581ad4-_0x3c7864+0x1});}),_0x136d58['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2d07a0=>{const _0x42d3b8=_0x2d07a0['map'](_0x4b5c9f=>_0x4b5c9f['getContainedElement']()),_0x3af816=_0x42d3b8[0x0]['findAncestor']('table'),{minColumn:_0x3927d0,maxColumn:_0x18f1c7}=_0x53dd96['_getCoordsForCells'](_0x42d3b8);_0x5f011f['removeColumns'](_0x3af816,{'at':_0x3927d0,'columns':_0x18f1c7-_0x3927d0+0x1});});const _0x1ec82f=(_0xb66dbc,_0x3b249b)=>{if(!_0x3b249b['subType']||!_0x3b249b['subType']['startsWith']('tablePaste'))return;const _0x416899=_0x3b249b['attributes']['tablePasteChainId'],_0x13e98f=_0x136d58['getSuggestions']()['filter'](_0x1feb3a=>_0x1feb3a['isInContent']&&_0x1feb3a['attributes']&&_0x1feb3a['attributes']['tablePasteChainId']==_0x416899);_0x13e98f['length']&&_0x3b249b['getAllAdjacentSuggestions']()['length']!=_0x13e98f['length']&&_0x13e98f['reduce']((_0x5af804,_0x25c802)=>(_0x5af804['next']=_0x25c802,_0x25c802['previous']=_0x5af804,_0x25c802));};function _0x493ad2(_0x31ccc9,_0x5c6c0c=!0x0){const {id:_0x57f484,authorId:_0x5eaa82}=_0x136d58['_splitMarkerName'](_0x31ccc9['markerName']),_0x8b3940=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1a60e2=_0x136d58['activeMarkers']['includes'](_0x31ccc9['markerName']);return _0x1a60e2&&_0x8b3940['push']('ck-suggestion-marker--active'),{'classes':_0x8b3940,'attributes':{'data-suggestion':_0x57f484,'data-author-id':_0x5eaa82},'priority':_0x1a60e2&&_0x5c6c0c?0xbc2:0xbb8};}_0x136d58['on']('suggestionLoaded',_0x1ec82f,{'priority':'high'}),_0x136d58['on']('suggestionUnloaded',_0x1ec82f,{'priority':'high'}),_0x162554['model']['document']['registerPostFixer'](()=>{let _0x430a88=!0x1;const _0x1d8f88=Array['from'](_0x162554['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xab2a5f,data:_0x21f2b4}of _0x1d8f88){const {group:_0x385f62,type:_0x54e74a,id:_0x57d9bb}=_0x136d58['_splitMarkerName'](_0xab2a5f);if('suggestion'!=_0x385f62||'deletion'!=_0x54e74a||_0x21f2b4['oldRange'])continue;if(!_0x136d58['hasSuggestion'](_0x57d9bb))continue;const _0x4d17a4=_0x136d58['getSuggestion'](_0x57d9bb)['getRanges'](),_0x14cb31=_0x162554['plugins']['get']('Users')['me'];for(const _0x46b33d of _0x136d58['getSuggestions']()){if(!_0x46b33d['isInContent']||_0x46b33d['author']!=_0x14cb31)continue;if('formatBlock'!=_0x46b33d['type']||'tablePasteCell'!=_0x46b33d['subType'])continue;if(_0x46b33d['getRanges']()['every'](_0x1b6b72=>_0x4d17a4['some'](_0xf57721=>_0xf57721['containsRange'](_0x1b6b72,!0x0)))){for(const _0x1475da of _0x46b33d['getAllAdjacentSuggestions']())_0x1475da['isInContent']&&(_0x1475da['discard'](),_0x430a88=!0x0);}}}return _0x430a88;}),_0x162554['model']['document']['registerPostFixer'](_0x3bdf80=>{const _0x5ca07d=_0x162554['commands']['get']('redo');if(!_0x5ca07d||!_0x5ca07d['_createdBatches']['has'](_0x3bdf80['batch']))return!0x1;let _0x5f537f=!0x1;const _0x5e3bb5=_0x162554['plugins']['get']('Users')['me'],_0x724f4b=_0x162554['model']['document']['differ']['getChanges'](),_0x3b2d42=Array['from'](_0x162554['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x345df0,data:_0x2de1f1})=>{const {group:_0x1e7d19,subType:_0x2d5777,authorId:_0x3cd12e}=_0x136d58['_splitMarkerName'](_0x345df0);return'suggestion'==_0x1e7d19&&'tablePaste'==_0x2d5777&&_0x3cd12e==_0x5e3bb5['id']&&!_0x2de1f1['oldRange'];});for(const _0x1d0d70 of _0x724f4b){if('insert'!=_0x1d0d70['type']||'tableCellSuggestion'!=_0x1d0d70['name']||0x1!=_0x1d0d70['length'])continue;const _0x49ba3d=_0x3bdf80['createRange'](_0x1d0d70['position'],_0x1d0d70['position']['getShiftedBy'](0x1));if(!_0x3b2d42['find'](({data:_0x13c68d})=>_0x13c68d['newRange']['isEqual'](_0x49ba3d))){for(const {name:_0x1106a7,data:_0x34e288}of _0x3b2d42)if(_0x49ba3d['containsRange'](_0x34e288['newRange'])){_0x3bdf80['updateMarker'](_0x1106a7,{'range':_0x49ba3d}),_0x5f537f=!0x0;break;}}}return _0x5f537f;}),_0x162554['model']['document']['registerPostFixer'](_0xdebcd=>{let _0x262329=!0x1;const _0x195875=_0x162554['plugins']['get']('Users')['me'],_0x536993=_0x136d58['getSuggestions']()['filter'](_0x34df4d=>_0x34df4d['isInContent']&&_0x34df4d['author']==_0x195875),_0x41e3e1=new Set(),_0x3d416f=new Set();for(const _0x52adf5 of _0x536993)if('tablePaste'==_0x52adf5['subType'])for(const _0xa0d22c of _0x52adf5['getMarkers']()){const _0x571a8f=_0xa0d22c['getRange']()['getContainedElement']();if(_0x571a8f){if(_0x571a8f['is']('element','tableCellSuggestion')&&De(_0x571a8f)){_0x52adf5['removeMarker'](_0xa0d22c['name']),_0x41e3e1['add'](_0x571a8f),_0x262329=!0x0;const _0x37ea0d=_0x571a8f['nextSibling'],_0xb4c0b9=_0x571a8f['previousSibling'],_0x2147aa=_0x37ea0d&&_0x37ea0d['is']('element','tableCellSuggestion'),_0x6f6751=_0xb4c0b9&&_0xb4c0b9['is']('element','tableCellSuggestion');_0x2147aa&&!_0x41e3e1['has'](_0x37ea0d)&&_0x3d416f['add'](_0x37ea0d),_0x6f6751&&!_0x41e3e1['has'](_0xb4c0b9)&&_0x3d416f['add'](_0xb4c0b9);}else _0x571a8f['is']('element','paragraph')&&_0x571a8f['isEmpty']&&(_0x52adf5['removeMarker'](_0xa0d22c['name']),_0x262329=!0x0);}}else{if('tablePasteCell'==_0x52adf5['subType']){if(!_0x52adf5['attributes']||!_0x52adf5['attributes']['tablePasteChainId'])continue;const _0xc2f881=_0x52adf5['attributes']['markerAttributes'];if(_0xc2f881&&Object['keys'](_0xc2f881)['length'])continue;const _0x5cb4ff=_0x52adf5['attributes']['tablePasteChainId'];let _0x4e45e2=!0x0,_0x352503=!0x0;for(const _0x3b530c of _0x536993)if(_0x3b530c['subType']&&_0x3b530c['subType']['startsWith']('tablePaste')){if(!_0x3b530c['attributes']['tablePasteChainId']){_0x352503=!0x1;break;}if(_0x3b530c['id']!=_0x52adf5['id']&&_0x3b530c['attributes']['tablePasteChainId']==_0x5cb4ff){_0x4e45e2=!0x1;break;}}_0x352503&&_0x4e45e2&&(_0x52adf5['removeMarkers'](),_0x262329=!0x0);}}for(const _0x3004e1 of _0x41e3e1)_0xdebcd['remove'](_0x3004e1);for(const _0x2ffb27 of _0x3d416f)_0xdebcd['unwrap'](_0x2ffb27);return _0x262329;}),_0x162554['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3f021e=>_0x493ad2(_0x3f021e),'converterPriority':'high'}),_0x162554['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x496833,_0x1bebd7)=>_0x1bebd7['options']['showSuggestionHighlights']?_0x493ad2(_0x496833,!0x1):null,'converterPriority':'high'});const _0x23d7ab=_0x162554['editing']['view'];this['listenTo'](_0x23d7ab['document'],'clipboardOutput',(_0x480eab,_0x1e0f77)=>{const _0x4eb993=[];for(const _0x1db048 of _0x23d7ab['createRangeIn'](_0x1e0f77['content'])['getItems']())_0x1db048['is']('element','suggestion-td')&&_0x4eb993['push'](_0x1db048);_0x23d7ab['change'](_0x521e05=>{for(const _0x4a3532 of _0x4eb993)_0x521e05['move'](_0x521e05['createRangeIn'](_0x4a3532),_0x521e05['createPositionBefore'](_0x4a3532)),_0x521e05['remove'](_0x4a3532);});});}}function De(_0x47f7f7){if(_0x47f7f7['isEmpty'])return!0x0;const _0x92cd10=_0x47f7f7['getChild'](0x0);return _0x92cd10['is']('element','paragraph')&&_0x92cd10['isEmpty'];}function He(_0x17a13c,_0x5b8807={},_0x5664a6){for(const {isAnchor:_0x4ab98e,cellHeight:_0x2abdbb,cellWidth:_0x82f77a}of _0x5664a6['createTableWalker'](_0x17a13c,{'includeAllSlots':!0x0,..._0x5b8807}))if(!_0x4ab98e||0x1!=_0x2abdbb||0x1!=_0x82f77a)return!0x1;return!0x0;}class Bt extends _0x1f2d8e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5533b8=this['editor']['plugins']['get']('TrackChangesEditing');_0x5533b8['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5533b8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5533b8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5533b8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5533b8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5533b8['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x58e67d,_0x1d98d7){const _0x182be7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x331d94=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x551c20=_0x1d98d7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4140c7=_0x331d94['getColumnGroupElement'](_0x551c20);let _0x2c2167=_0x4140c7?_0x331d94['getTableColumnsWidths'](_0x4140c7):null,_0x30515a=_0x551c20['getAttribute']('tableWidth')||null;const _0x4de0a8=_0x1d98d7['tableWidth']||_0x30515a,_0x1df251=_0x1d98d7['columnWidths']||_0x2c2167,_0x5574a5=this['editor']['plugins']['get']('Users')['me'];for(const _0x140f37 of _0x182be7['getSuggestions']()){const _0x14ea14=_0x140f37['getContainedElement']();if('resizeTable'===_0x140f37['subType']&&_0x14ea14===_0x551c20){_0x140f37['author']!==_0x5574a5&&_0x140f37['discard']();const _0x13fb61=_0x140f37['data']['commandParams'];_0x30515a=_0x13fb61[0x0]['tableWidth'],_0x2c2167=_0x13fb61[0x0]['columnWidths'];break;}}_0x58e67d({'table':_0x551c20,'tableWidth':_0x4de0a8,'columnWidths':_0x1df251}),_0x182be7['markBlockFormat'](_0x551c20,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x30515a,'columnWidths':_0x2c2167}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5d0ebf){if('formatBlock'!=_0x5d0ebf['type']&&'formatInline'!=_0x5d0ebf['type'])return;const {data:_0xb928a9}=_0x5d0ebf;if(_0xb928a9&&'resizeTable'===_0xb928a9['formatGroupId']){const _0x4caeba='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x4caeba)};}}}class xt extends _0x1f2d8e{['afterInit'](){const _0x2d3cce=this['editor'];_0x2d3cce['plugins']['has']('Template')&&_0x2d3cce['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x1f2d8e{['afterInit'](){const _0x27fd51=this['editor'];if(!_0x27fd51['commands']['get']('insertTableOfContents'))return;_0x27fd51['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x34eb11=_0x27fd51['plugins']['get']('TrackChangesEditing'),_0x315709=_0x27fd51['locale'];_0x34eb11['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4133a3=>c(_0x315709,'ELEMENT_TABLE_OF_CONTENTS',_0x4133a3));}}class Rt extends _0x1f2d8e{['afterInit'](){const _0x3179c2=this['editor'];if(!_0x3179c2['plugins']['has']('Title'))return;const _0x133a4c=_0x3179c2['plugins']['get']('TrackChangesEditing');_0x133a4c['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x3179c2['locale'],'ELEMENT_TITLE')),_0x3179c2['model']['document']['registerPostFixer'](_0x8121a4=>{let _0x4eaeb2=!0x1;const _0x2f7110=Array['from'](_0x3179c2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3339d6,data:_0x39db81}of _0x2f7110){const {group:_0x914d9c}=_0x133a4c['_splitMarkerName'](_0x3339d6);if('suggestion'!==_0x914d9c||!_0x39db81['newRange'])continue;const _0x5142fd=_0x39db81['newRange'],_0x4f5467=_0x5142fd['end']['nodeBefore'];if(!_0x4f5467||!_0x4f5467['is']('element','title-content'))continue;if(!_0x5142fd['start']['isTouching'](_0x5142fd['end']))continue;const _0x278c20=_0x3179c2['model']['schema']['getNearestSelectionRange'](_0x5142fd['end'],'forward');if(_0x278c20&&_0x278c20['isCollapsed']){const _0xdec269=_0x8121a4['createRange'](_0x5142fd['start'],_0x278c20['start']);_0xdec269['isEqual'](_0x5142fd)||(_0x8121a4['updateMarker'](_0x3339d6,{'range':_0xdec269}),_0x4eaeb2=!0x0);}_0x4eaeb2||(_0x8121a4['removeMarker'](_0x3339d6),_0x4eaeb2=!0x0);}return _0x4eaeb2;});}}class Tt extends _0x1f2d8e{['afterInit'](){const _0xba3061=this['editor'],_0x33ad77=_0xba3061['plugins']['get']('TrackChangesEditing');_0xba3061['plugins']['has']('Uploadcare')&&(_0x33ad77['enableCommand']('uploadcare'),_0xba3061['plugins']['has']('UploadcareImageEdit')&&(_0x33ad77['enableCommand']('uploadcareImageEdit'),_0x33ad77['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x33ad77['registerBlockAttribute']('uploadcareImageId'),_0x33ad77['descriptionFactory']['registerDescriptionCallback'](_0x168a66=>{if('attribute'!=_0x168a66['type'])return;const {data:_0x444664}=_0x168a66;return _0x444664&&'uploadcareImageId'==_0x444664['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x1f2d8e{['afterInit'](){const _0x28f780=this['editor'],_0x30f10a=_0x28f780['plugins']['get']('TrackChangesEditing');_0x28f780['plugins']['has']('UndoEditing')&&(_0x30f10a['enableCommand']('undo'),_0x30f10a['enableCommand']('redo'));}}class Ut extends _0x1f2d8e{static get['requires'](){return[Ct];}['afterInit'](){const _0x272cf2=this['editor'];if(!_0x272cf2['plugins']['has']('TableCaptionEditing'))return;_0x272cf2['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x1f2d8e{['tableProperties'];['tableCellProperties'];constructor(_0x915d89){super(_0x915d89),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 _0x32ce86=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1729a4 of this['tableProperties'])_0x32ce86['enableCommand'](_0x1729a4,(_0x49c586,_0x3961d7)=>{const _0x1d4a52=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1729a4,[_0x1d4a52],this['tableProperties'],'tableProperties',_0x49c586,_0x3961d7);});_0x32ce86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x32ce86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x32ce86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x56e09,_0x394a2a)=>this['handleDiscardAction'](this['tableProperties'],_0x56e09,_0x394a2a)),_0x32ce86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5954dd of this['tableCellProperties'])_0x32ce86['enableCommand'](_0x5954dd,(_0x21f6b2,_0x2fc9bb)=>{const _0x422f35=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5954dd,_0x422f35,this['tableCellProperties'],'tableCellProperties',_0x21f6b2,_0x2fc9bb);});_0x32ce86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x32ce86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x32ce86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x526dad,_0x553b8d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x526dad,_0x553b8d)),_0x32ce86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x32ce86['descriptionFactory']['registerDescriptionCallback'](_0x2f4791=>this['handleSuggestionDescription'](_0x2f4791));}['_handlePropertyChange'](_0x2482f7,_0x358479,_0x3a58f1,_0x2f2784,_0x33b28f,_0x2f0afa){const _0x24dffe=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2f0afa['batch'],()=>{for(const _0x1eb950 of _0x358479){if(this['_getSuggestion'](_0x1eb950,_0x2f2784))_0x33b28f(_0x2f0afa);else{const _0x190f33={};for(const _0x48eb12 of _0x3a58f1){const _0x22d812=_0x1eb950['getAttribute'](_0x48eb12);void 0x0!==_0x22d812&&(_0x190f33[_0x48eb12]=_0x22d812);}_0x33b28f(_0x2f0afa),_0x24dffe['markBlockFormat'](_0x1eb950,{'commandParams':[_0x190f33]},[],_0x2f2784);}}});}['handleDiscardAction'](_0x5ef63e,_0x1656e4,_0x5589c9){const _0x18ed3a=_0x1656e4[0x0]['start']['nodeAfter'],_0x65e316=_0x5589c9['commandParams'][0x0];this['editor']['model']['change'](_0x3749ea=>{for(const _0x46ccf2 of _0x5ef63e)void 0x0!==_0x65e316[_0x46ccf2]?_0x3749ea['setAttribute'](_0x46ccf2,_0x65e316[_0x46ccf2],_0x18ed3a):_0x3749ea['removeAttribute'](_0x46ccf2,_0x18ed3a);});}['handleSuggestionDescription'](_0x3f7169){if(_0x3f7169['data'])switch(_0x3f7169['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'](_0x44669b,_0x270bf9){const _0x4d15e7=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x19093a of _0x4d15e7['getSuggestions']({'skipNotAttached':!0x0})){const _0x15180d=_0x19093a['getContainedElement']();if(_0x19093a['subType']===_0x270bf9&&_0x15180d===_0x44669b)return _0x19093a;}return null;}}const u='$elementName';class p extends _0x1f2d8e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x1bf6a0,_0x2d1220,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,gt,Q,wt,lt,W,Se,mt,pt,kt,bt,yt,jt,St,At,It,_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(_0x52c88){super(_0x52c88),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5e15ae,_0x2352a1,_0xd3f4c5,_0x48eb19)=>{this['_model']['change'](()=>{for(const _0x532273 of[..._0x48eb19,..._0xd3f4c5])this['_model']['markers']['has'](_0x532273)&&_0x52c88['editing']['reconvertMarker'](_0x532273);});}),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']=_0x52c88['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(),_0x52c88['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x52c88['config']['get']('trackChanges.trackFormatChanges'),_0x52c88['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x52c88['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x52c88,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x38733f=this['editor'],_0x59d638=(_0x3fcaec,_0x2d166b)=>{if('attribute'!=_0x3fcaec)return'ck-suggestion-marker-'+_0x3fcaec;const _0x329eee=_0x2d166b['split']('|')[0x0];return this['_isBlockAttribute'](_0x329eee)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x38733f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3b750b=>{const {id:_0x54a00e,authorId:_0x41f1a8,type:_0x32e0ad,subType:_0x190e1a}=this['_splitMarkerName'](_0x3b750b['markerName']),_0x196f54=['ck-suggestion-marker',_0x59d638(_0x32e0ad,_0x190e1a)];let _0x350746=0xbb8;return this['activeMarkers']['includes'](_0x3b750b['markerName'])&&(_0x196f54['push']('ck-suggestion-marker--active'),_0x350746=0xbc2),'deletion'==_0x32e0ad&&(_0x350746+=0x5),{'classes':_0x196f54,'attributes':{'data-suggestion':_0x54a00e,'data-author-id':_0x41f1a8},'priority':_0x350746};}}),_0x38733f['conversion']['for']('dataDowncast')['add'](_0x37c28b=>{_0x37c28b['on']('addMarker:suggestion',(_0x75999a,_0x8a27fc,_0x1b6931)=>{if(!_0x1b6931['options']['showSuggestionHighlights'])return;const _0x46fd53=_0x8a27fc['item'];if(!_0x46fd53)return;const _0x21eafa=_0x1b6931['mapper']['toViewElement'](_0x46fd53);_0x38733f['model']['schema']['isObject'](_0x46fd53)&&_0x21eafa&&!_0x21eafa['getCustomProperty']('widget')&&_0x21eafa['is']('containerElement')&&_0xa77c19(_0x21eafa,_0x1b6931['writer']);},{'priority':'high'});}),_0x38733f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2bc11b,_0x236ae0)=>{if(!_0x236ae0['options']['showSuggestionHighlights'])return null;const {id:_0x536da3,authorId:_0x386468,type:_0x8785d4,subType:_0x56b068}=this['_splitMarkerName'](_0x2bc11b['markerName']);return{'classes':['ck-suggestion-marker',_0x59d638(_0x8785d4,_0x56b068)],'priority':0xbb8,'attributes':{'data-suggestion':_0x536da3,'data-author-id':_0x386468}};}});const _0x33a49d=({showActiveMarkers:_0x4ae10e=!0x0,isAttributeSuggestion:_0x350675=!0x1}={})=>(_0x11e2e9,_0x493566,_0x46a197)=>{if(!_0x493566['item'])return;const {id:_0x221e6b,authorId:_0x590094}=this['_splitMarkerName'](_0x493566['markerName']);if(_0x350675){const _0x17e258=this['_suggestions']['get'](_0x221e6b),_0x41cf65=this['_getAttributeKey'](_0x17e258);if(!this['_isBlockAttribute'](_0x41cf65))return;}if(_0x493566['item']['is']('selection'))return void _0x46a197['consumable']['consume'](_0x493566['item'],_0x11e2e9['name']);const _0x1727ff=_0x46a197['mapper']['toViewElement'](_0x493566['item']);if(_0x493566['item']['is']('element')&&_0x38733f['model']['schema']['isBlock'](_0x493566['item'])&&!_0x1727ff['getCustomProperty']('addHighlight')){_0x46a197['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1727ff),_0x46a197['writer']['setAttribute']('data-suggestion',_0x221e6b,_0x1727ff),_0x46a197['writer']['setAttribute']('data-author-id',_0x590094,_0x1727ff),_0x46a197['mapper']['bindElementToMarker'](_0x1727ff,_0x493566['markerName']),_0x4ae10e&&(this['activeMarkers']['includes'](_0x493566['markerName'])?_0x46a197['writer']['addClass']('ck-suggestion-marker--active',_0x1727ff):_0x46a197['writer']['removeClass']('ck-suggestion-marker--active',_0x1727ff));for(const _0x170070 of _0x38733f['model']['createRangeIn'](_0x493566['item'])['getItems']())_0x46a197['consumable']['consume'](_0x170070,_0x11e2e9['name']);_0x46a197['consumable']['consume'](_0x493566['item'],_0x11e2e9['name']);}};_0x38733f['conversion']['for']('dataDowncast')['add'](_0x4643ad=>{_0x4643ad['on']('addMarker:suggestion:formatBlock',(_0x3f8b67,_0x220c50,_0x4bb755)=>{_0x4bb755['options']['showSuggestionHighlights']&&_0x33a49d({'showActiveMarkers':!0x1})(_0x3f8b67,_0x220c50,_0x4bb755);},{'priority':'highest'});}),_0x38733f['conversion']['for']('dataDowncast')['add'](_0x21d494=>{_0x21d494['on']('addMarker:suggestion:attribute',(_0x2c171b,_0x5352da,_0xe0a2a1)=>{_0xe0a2a1['options']['showSuggestionHighlights']&&_0x33a49d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2c171b,_0x5352da,_0xe0a2a1);},{'priority':'highest'});}),_0x38733f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2c2c61,_0x3bf98b)=>{if(_0x3bf98b['options']['showSuggestionHighlights']){const {id:_0x2096e3,authorId:_0x2dfdf6}=this['_splitMarkerName'](_0x2c2c61);return _0x2c2c61['includes'](':split')||_0x2c2c61['includes'](':merge')?{'group':'suggestion','name':_0x2c2c61['substr'](0xb),'attributes':{'data-suggestion':_0x2096e3,'data-author-id':_0x2dfdf6}}:null;}return{'group':'suggestion','name':_0x2c2c61['substr'](0xb)};}}),_0x38733f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2cccab,{writer:_0x1eab3a})=>{let _0x502f81='suggestion:'+_0x2cccab['getAttribute']('suggestion-type')+':'+_0x2cccab['getAttribute']('id');return _0x2cccab['getAttribute']('marker-count')&&(_0x502f81+=':'+_0x2cccab['getAttribute']('marker-count')),_0x1eab3a['createElement']('$marker',{'data-name':_0x502f81});}}),_0x38733f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x38733f['conversion']['for']('editingDowncast')['add'](_0x2a70ee=>{_0x2a70ee['on']('addMarker:suggestion:formatBlock',_0x33a49d(),{'priority':'high'});}),_0x38733f['conversion']['for']('editingDowncast')['add'](_0xb04aa8=>{_0xb04aa8['on']('addMarker:suggestion:attribute',_0x33a49d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x38733f['conversion']['for']('editingDowncast')['add'](_0x290ca4=>{_0x290ca4['on']('removeMarker:suggestion:formatBlock',(_0x364515,_0x3db175,_0x11db72)=>{const _0x6e9b0f=_0x11db72['mapper']['markerNameToElements'](_0x3db175['markerName']);if(_0x6e9b0f){for(const _0x104cec of _0x6e9b0f)_0x104cec['getCustomProperty']('addHighlight')||(_0x11db72['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x104cec),_0x11db72['writer']['removeAttribute']('data-suggestion',_0x104cec),_0x11db72['writer']['removeAttribute']('data-author-id',_0x104cec),_0x11db72['mapper']['unbindElementFromMarkerName'](_0x104cec,_0x3db175['markerName']));}},{'priority':'high'});}),_0x38733f['conversion']['for']('editingDowncast')['add'](_0x57d0cc=>{_0x57d0cc['on']('removeMarker:suggestion:attribute',(_0x17cb01,_0x26ae08,_0x384128)=>{const _0x6f49f5=_0x384128['mapper']['markerNameToElements'](_0x26ae08['markerName']);if(!_0x6f49f5)return;const {id:_0x38d533}=this['_splitMarkerName'](_0x26ae08['markerName']),_0x2449ec=this['_suggestions']['get'](_0x38d533),_0x2f9085=this['_getAttributeKey'](_0x2449ec);if(this['_isBlockAttribute'](_0x2f9085)){for(const _0x182a2a of _0x6f49f5)_0x182a2a['getCustomProperty']('addHighlight')||(_0x384128['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x182a2a),_0x384128['writer']['removeAttribute']('data-suggestion',_0x182a2a),_0x384128['writer']['removeAttribute']('data-author-id',_0x182a2a),_0x384128['mapper']['unbindElementFromMarkerName'](_0x182a2a,_0x26ae08['markerName']));}},{'priority':'high'});}),_0x38733f['model']['document']['registerPostFixer'](_0x39dcf6=>{let _0x3d96f5=!0x1;const _0x11f6b3=Array['from'](_0x38733f['model']['document']['differ']['getChangedMarkers']()),_0x3e9dd5=new Set();for(const {name:_0x37afa2,data:_0x1e4316}of _0x11f6b3){const {group:_0x51b921,type:_0x1f0c4c,subType:_0x1c442a,id:_0xfc6faf}=this['_splitMarkerName'](_0x37afa2);if('suggestion'!==_0x51b921)continue;const _0x3ac137=this['_suggestions']['get'](_0xfc6faf);if(null!=_0x1e4316['newRange']){'formatInline'==_0x1f0c4c&&(_0x3d96f5=_0x3d96f5||Jt(_0x1e4316['newRange'],_0x37afa2,_0x39dcf6,_0x38733f['model']['schema']));const _0x7ab60c='attribute'==_0x1f0c4c&&this['_isBlockAttribute'](_0x1c442a['split']('|')[0x0]);if(_0x1e4316['newRange']['isCollapsed']||'$graveyard'==_0x1e4316['newRange']['root']['rootName']||'formatBlock'==_0x1f0c4c&&!Ht(_0x1e4316['newRange'])||_0x7ab60c&&!Ht(_0x1e4316['newRange'])||'deletion'==_0x1f0c4c&&!(!Lt(_0x5dfa27=_0x1e4316['newRange'])&&!function(_0x2a358a){return _0x2a358a['start']['parent']==_0x2a358a['end']['nodeBefore']&&_0x2a358a['start']['isAtEnd'];}(_0x5dfa27)))_0x39dcf6['removeMarker'](_0x37afa2),_0x3d96f5=!0x0;else{if(!_0x3ac137||!_0x3ac137['isInContent'])continue;if(_0x1e4316['newRange']&&_0x1e4316['oldRange']&&_0x1e4316['newRange']['isEqual'](_0x1e4316['oldRange']))continue;_0x3e9dd5['add'](_0x3ac137);}}}var _0x5dfa27;return _0x3e9dd5['size']>0x0&&(_0x3d96f5=!!this['_joinWithAdjacentSuggestions'](_0x3e9dd5)||_0x3d96f5),_0x3d96f5;}),_0x38733f['model']['document']['registerPostFixer'](_0x1921a0=>{let _0x315f91=!0x1;for(const _0x1dc930 of _0x38733f['model']['document']['differ']['getChanges']())if('insert'==_0x1dc930['type'])for(const _0x1581b3 of this['_suggestions']['values']()){if(_0x1581b3['isMultiRange']||!_0x1581b3['isInContent'])continue;const _0x115e48='formatBlock'==_0x1581b3['type'],_0x3d973a=this['_getAttributeKey'](_0x1581b3),_0x559c0c=_0x3d973a&&this['_isBlockAttribute'](_0x3d973a);if(!_0x115e48&&!_0x559c0c)continue;const _0x194a25=_0x1581b3['getFirstRange']();if(_0x194a25['start']['parent']!=_0x194a25['end']['parent']&&!_0x194a25['end']['isAtEnd']){const _0x3c0bcb=_0x38733f['model']['createPositionAt'](_0x194a25['start']['nodeAfter'],'end'),_0x517564=_0x38733f['model']['createRange'](_0x194a25['start'],_0x3c0bcb);_0x1921a0['updateMarker'](_0x1581b3['getFirstMarker'](),{'range':_0x517564}),_0x315f91=!0x0;}}return _0x315f91;}),_0x38733f['model']['document']['registerPostFixer'](_0x358442=>this['_processAttributeChanges'](_0x358442)),_0x38733f['model']['document']['registerPostFixer'](_0x1853c2=>!_0x1853c2['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1853c2)),_0x38733f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x38733f['model']['document']['on']('change:data',(_0x1d194e,_0x1c9b60)=>{if(!_0x1c9b60['isLocal']||_0x1c9b60['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x54860c=_0x38733f['model']['document']['differ']['getChanges']();if(0x0==_0x54860c['length'])return;const _0x493e9a=[],_0x18882e=_0x54860c['filter'](_0x40a029=>'attribute'==_0x40a029['type']),_0x32b19e=_0x54860c['filter'](_0x573d5d=>'insert'==_0x573d5d['type']&&'$text'!=_0x573d5d['name']);for(const _0x2ee68a of _0x18882e)this['_isRegisteredAttribute'](_0x2ee68a['attributeKey'])&&_0x493e9a['push']({'key':_0x2ee68a['attributeKey'],'newValue':_0x2ee68a['attributeNewValue'],'oldValue':_0x2ee68a['attributeOldValue'],'range':qt(_0x2ee68a['range'],_0x38733f['model'])});for(const _0x30f8e1 of _0x32b19e){if('rename'!=_0x30f8e1['action']&&'refresh'!=_0x30f8e1['action'])continue;const _0x26911b=zt(_0x30f8e1['position']['nodeAfter'],_0x38733f['model']),_0x4ded43=_0x30f8e1['before'];'rename'==_0x30f8e1['action']&&_0x493e9a['push']({'key':u,'newValue':_0x30f8e1['name'],'oldValue':_0x4ded43['name'],'range':_0x26911b});for(const [_0x119b14,_0x2d9df]of _0x4ded43['attributes']){if(!this['_isRegisteredAttribute'](_0x119b14))continue;const _0x3f2046=_0x30f8e1['attributes']['get'](_0x119b14);_0x2d9df!==_0x3f2046&&_0x493e9a['push']({'key':_0x119b14,'newValue':_0x3f2046,'oldValue':_0x2d9df,'range':_0x26911b});}for(const [_0x4eb29a,_0xe4ea]of _0x30f8e1['attributes'])this['_isRegisteredAttribute'](_0x4eb29a)&&(_0x4ded43['attributes']['has'](_0x4eb29a)||_0x493e9a['push']({'key':_0x4eb29a,'newValue':_0xe4ea,'oldValue':null,'range':_0x26911b}));}0x0!=_0x493e9a['length']&&_0x38733f['model']['enqueueChange'](_0x1c9b60,_0x42a951=>{const _0xca1212=_0x51cb10();for(const {range:_0x32e0b2,key:_0x310a88,oldValue:_0x3a0098,newValue:_0x53d798}of _0x493e9a)this['markAttributeChange'](_0x32e0b2,_0x310a88,_0x3a0098,_0x53d798,{'groupId':_0xca1212});this['_reduceExistingSuggestions'](_0x42a951,_0x493e9a);});},{'priority':'lowest'}),_0x38733f['model']['markers']['on']('update:suggestion',(_0x104b22,_0x12a4cf,_0x46172a)=>{if(null==_0x46172a){const {id:_0x5737d2}=this['_splitMarkerName'](_0x12a4cf['name']),_0x2818ea=this['_suggestions']['get'](_0x5737d2);_0x2818ea&&_0x2818ea['addMarkerName'](_0x12a4cf['name']);}}),_0x38733f['model']['document']['on']('change:data',()=>{const _0x45ffd7=Array['from'](_0x38733f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x8c7df3=>'suggestion'===this['_splitMarkerName'](_0x8c7df3['name'])['group']);if(0x0===_0x45ffd7['length'])return;_0x45ffd7['sort']((_0x1e7f7b,_0x5ed243)=>{const _0x4bd8b8=_0x1e7f7b['data']['oldRange'],_0x11fbbe=_0x5ed243['data']['oldRange'];return null===_0x4bd8b8&&null===_0x11fbbe?0x0:null===_0x4bd8b8&&null!==_0x11fbbe?-0x1:null!==_0x4bd8b8&&null===_0x11fbbe?0x1:_0x4bd8b8['start']['isBefore'](_0x11fbbe['start'])?-0x1:0x1;});const _0x4220ad=new Set(),_0x2e1395=new Set();for(const {name:_0x478fea,data:_0x1486ae}of _0x45ffd7){const {id:_0x4285da}=this['_splitMarkerName'](_0x478fea);if(null===_0x1486ae['oldRange']){const _0xba83cf=this['_handleNewSuggestionMarker'](_0x478fea);_0x2e1395['add'](_0xba83cf);}else{const _0x1a8976=this['_suggestions']['get'](_0x4285da);null!==_0x1486ae['newRange']||_0x1a8976['isInContent']?(_0x4220ad['add'](_0x1a8976['head']),_0x2e1395['add'](_0x1a8976)):this['_removeSuggestion'](_0x1a8976);}}_0x2e1395['size']>0x0&&this['_refreshSuggestionsChain'](_0x2e1395);for(const _0x1e930e of _0x4220ad)this['fire']('suggestionChanged',_0x1e930e);}),_0x38733f['model']['on']('applyOperation',(_0x1ea0e1,_0x2ffced)=>{const _0xca4e72=_0x2ffced[0x0];if(!this['_suggestions']['size'])return;if(!_0xca4e72['isDocumentOperation'])return;if(_0xca4e72['batch']['isUndo']||!_0xca4e72['batch']['isLocal'])return;let _0x441e41,_0x4c685e;switch(_0xca4e72['type']){case'insert':_0x441e41=_0x38733f['model']['createPositionAt'](_0xca4e72['position']),_0x4c685e=_0x441e41['getShiftedBy'](_0xca4e72['howMany']);break;case'split':_0x441e41=_0x38733f['model']['createPositionAt'](_0xca4e72['splitPosition']),_0x4c685e=_0x38733f['model']['createPositionAt'](_0xca4e72['moveTargetPosition']);break;case'move':_0x441e41=_0x38733f['model']['createPositionAt'](_0xca4e72['targetPosition']),_0x4c685e=_0x441e41['getShiftedBy'](_0xca4e72['howMany']);break;default:return;}const _0x5e48f7=_0x38733f['model']['createRange'](_0x441e41,_0x4c685e);_0x38733f['model']['change'](()=>{for(const {suggestion:_0x14016c,meta:_0x5b1370}of this['_findSuggestions'](_0x5e48f7)){if(_0x14016c['isMultiRange'])continue;if('formatInline'==_0x14016c['type'])continue;const _0x422fab=this['_getAttributeKey'](_0x14016c);if(_0x422fab&&this['_isBlockAttribute'](_0x422fab)&&'split'!=_0xca4e72['type'])continue;const _0x5c7e6b=_0x14016c['data']&&_0x14016c['data']['multipleBlocks'];('formatBlock'!=_0x14016c['type']||'split'==_0xca4e72['type']&&!_0x5c7e6b)&&(_0x5b1370['containsRangeInObject']||'insertion'==_0x14016c['type']&&_0x5b1370['isOwn']||_0x14016c['getFirstRange']()['containsRange'](_0x5e48f7)&&this['_breakSuggestionMarker'](_0x14016c,_0x441e41,_0x4c685e));}});},{'priority':'lowest'}),_0x38733f['model']['on']('deleteContent',(_0x577f36,_0x2f98ad)=>{const _0x59157b=_0x2f98ad[0x0],_0x1971bc=_0x2f98ad[0x1];if(_0x1971bc&&_0x1971bc['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x59157b['isCollapsed'])return;const _0x1926a1=_0x38733f['model']['schema'],{start:_0x1a6b0f,end:_0x24bc04}=_0x59157b['getFirstRange'](),_0x18baed=_0x1a6b0f['nodeAfter']&&_0x1926a1['isLimit'](_0x1a6b0f['nodeAfter'])?null:_0x1926a1['getNearestSelectionRange'](_0x1a6b0f,'forward'),_0x862c02=_0x24bc04['nodeBefore']&&_0x1926a1['isLimit'](_0x24bc04['nodeBefore'])?null:_0x1926a1['getNearestSelectionRange'](_0x24bc04,'backward'),_0x1140d7=_0x38733f['model']['createRange'](_0x18baed?_0x18baed['start']:_0x1a6b0f,_0x862c02?_0x862c02['end']:_0x24bc04);_0x38733f['model']['change'](_0x549cd0=>{this['markDeletion'](_0x1140d7);const _0x2a2bd1=_0x38733f['model']['schema']['getNearestSelectionRange'](_0x1140d7['start']);_0x59157b['is']('documentSelection')?_0x549cd0['setSelection'](_0x2a2bd1):_0x59157b['setTo'](_0x2a2bd1);}),_0x577f36['stop']();},{'priority':_0x2a07cf['normal']+0xa}),_0x38733f['model']['on']('insertContent',(_0x5bdd69,_0xa78ea4)=>{const _0x4efd4b=_0xa78ea4[_0xa78ea4['length']-0x1];_0x4efd4b&&_0x4efd4b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x38733f['model']['change'](()=>{let _0x38a7fc=_0x38733f['model']['insertContent'](_0xa78ea4[0x0],_0xa78ea4[0x1],_0xa78ea4[0x2],{'forceDefaultExecution':!0x0});if(!_0x38a7fc)return;_0x5bdd69['return']=_0x38a7fc['clone']();const _0x1bcc2d=_0x38a7fc['end']['nodeBefore'],_0x1b13e0=_0x38733f['model']['schema'];_0x1bcc2d&&_0x1b13e0['isBlock'](_0x1bcc2d)&&!_0x1b13e0['isObject'](_0x1bcc2d)&&(_0x38a7fc=_0x38733f['model']['createRange'](_0x38a7fc['start'],_0x38733f['model']['createPositionAt'](_0x1bcc2d,'end'))),this['markInsertion'](_0x38a7fc);}),_0x5bdd69['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3eda1d=new x(_0x38733f,this['_suggestions']);_0x38733f['commands']['add']('acceptSuggestion',_0x3eda1d),this['enableCommand']('acceptSuggestion');const _0x492c91=new O(_0x38733f,this['_suggestions']);_0x38733f['commands']['add']('discardSuggestion',_0x492c91),this['enableCommand']('discardSuggestion'),_0x38733f['commands']['add']('acceptAllSuggestions',new R(_0x38733f,_0x3eda1d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x38733f['commands']['add']('discardAllSuggestions',new R(_0x38733f,_0x492c91,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x38733f['commands']['add']('acceptSelectedSuggestions',new E(_0x38733f,_0x3eda1d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x38733f['commands']['add']('discardSelectedSuggestions',new E(_0x38733f,_0x492c91,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1c5af0=_0x38733f['plugins']['get']('CommentsRepository');this['listenTo'](_0x1c5af0,'addComment',(_0x144fb1,{threadId:_0x581447})=>{const _0x3f6f73=this['_suggestions']['get'](_0x581447);_0x3f6f73&&_0x3f6f73['commentThread']&&0x1===_0x3f6f73['commentThread']['length']&&this['_updateSuggestionData'](_0x581447,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1c5af0,'removeComment',(_0x4eaf74,{threadId:_0x38eb49})=>{const _0x23d19a=this['_suggestions']['get'](_0x38eb49);_0x23d19a&&_0x23d19a['commentThread']&&!_0x23d19a['commentThread']['length']&&this['_updateSuggestionData'](_0x38eb49,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5806f4){const _0x252086=_0x3e3bc9([0x35,0x66,0x75,0x45,0x36,0x6a,0x55,0x74,0x71,0x37,0x63,0x68,0x4d,0x57,0x76,0x70,0x52,0x61,0x4e,0x30,0x6e,0x73,0x4f,0x38,0x46,0x49,0x47,0x4c,0x78,0x6d,0x7a,0x54,0x44,0x31,0x34,0x43,0x62,0x50,0x79,0x64,0x59,0x39,0x51,0x42,0x33,0x69,0x77,0x6b,0x72,0x58,0x6f,0x41,0x53,0x4b,0x67,0x4a,0x32,0x65,0x48,0x5a,0x6c,0x56]),_0x5e035b=0x20cb8eda,_0x3242cf=0x20cce9aa^_0x5e035b,_0x2cf40f=window[_0x3e3bc9([0x44,0x61,0x74,0x65])][_0x3e3bc9([0x6e,0x6f,0x77])](),_0x1ea79a=_0x5806f4[_0x3e3bc9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x16696d=new window[(_0x3e3bc9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4898ae=>{_0x1ea79a[_0x3e3bc9([0x6f,0x6e,0x63,0x65])](_0x3e3bc9([0x72,0x65,0x61,0x64,0x79]),_0x4898ae);}),_0x48ba80={[_0x3e3bc9([0x6b,0x74,0x79])]:_0x3e3bc9([0x45,0x43]),[_0x3e3bc9([0x75,0x73,0x65])]:_0x3e3bc9([0x73,0x69,0x67]),[_0x3e3bc9([0x63,0x72,0x76])]:_0x3e3bc9([0x50,0x2d,0x32,0x35,0x36]),[_0x3e3bc9([0x78])]:_0x3e3bc9([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]),[_0x3e3bc9([0x79])]:_0x3e3bc9([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]),[_0x3e3bc9([0x61,0x6c,0x67])]:_0x3e3bc9([0x45,0x53,0x32,0x35,0x36])},_0x58697a=_0x1ea79a[_0x3e3bc9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e3bc9([0x67,0x65,0x74])](_0x3e3bc9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x33e393(){let _0x109ae4,_0x3fbeff=null,_0x1c6f56=null;try{if(_0x58697a==_0x3e3bc9([0x47,0x50,0x4c]))return _0x3e3bc9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x109ae4=_0x232031(),!_0x109ae4)return _0x3e3bc9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x109ae4[_0x3e3bc9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1c6f56=_0x27c6a0(_0x109ae4[_0x3e3bc9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x109ae4[_0x3e3bc9([0x6a,0x74,0x69])])),await _0x2c0437()?_0x545939()?_0x2badab()?_0x3e3bc9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x556979()?(_0x109ae4[_0x3e3bc9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e3bc9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3fbeff=_0x44e289(_0x3e3bc9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x109ae4[_0x3e3bc9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e3bc9([0x74,0x72,0x69,0x61,0x6c])&&(_0x3fbeff=_0x44e289(_0x3e3bc9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5d13e9()):_0x3e3bc9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e3bc9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e3bc9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x38190b){return _0x3e3bc9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2badab(){const _0x4c04b2=[_0x3e3bc9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e3bc9([0x74,0x72,0x69,0x61,0x6c])][_0x3e3bc9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x109ae4[_0x3e3bc9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2cf40f/0x3e8:0xe10*_0x3242cf;return _0x109ae4[_0x3e3bc9([0x65,0x78,0x70])]<_0x4c04b2;}function _0x545939(){const _0x2de2f8=_0x109ae4[_0x3e3bc9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2de2f8)return!0x1;if(_0x2de2f8[_0x3e3bc9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e3bc9([0x2a])))return!0x0;if(_0x2de2f8[_0x3e3bc9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e3bc9([0x54,0x43])))return!0x0;if(_0x2de2f8[_0x3e3bc9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e3bc9([0x52,0x54,0x43]))){if(_0xdfe817())return!0x0;if(_0x53689e()||_0x3b1ad2())return!0x0;}return!0x1;}function _0x556979(){const _0x568847=_0x109ae4[_0x3e3bc9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x568847||0x0==_0x568847[_0x3e3bc9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x198fdd}=new URL(window[_0x3e3bc9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x568847[_0x3e3bc9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x198fdd))return!0x0;const _0xae5233=_0x198fdd[_0x3e3bc9([0x73,0x70,0x6c,0x69,0x74])](_0x3e3bc9([0x2e]));return _0x568847[_0x3e3bc9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x129425=>_0x129425[_0x3e3bc9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e3bc9([0x2a])))[_0x3e3bc9([0x6d,0x61,0x70])](_0x3f4bab=>_0x3f4bab[_0x3e3bc9([0x73,0x70,0x6c,0x69,0x74])](_0x3e3bc9([0x2e])))[_0x3e3bc9([0x73,0x6f,0x6d,0x65])](_0x11a20a=>_0xae5233[_0x3e3bc9([0x65,0x76,0x65,0x72,0x79])]((_0x51b422,_0x52f98a)=>_0x11a20a[_0x52f98a]===_0x51b422||_0x11a20a[_0x52f98a]===_0x3e3bc9([0x2a])));}function _0x5d13e9(){return _0x3fbeff&&_0x1c6f56?new window[(_0x3e3bc9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a49de,_0x538366)=>{_0x3fbeff[_0x3e3bc9([0x74,0x68,0x65,0x6e])](_0x3a49de,_0x538366),_0x1c6f56[_0x3e3bc9([0x74,0x68,0x65,0x6e])](_0x389d68=>{_0x389d68!=_0x3e3bc9([0x56,0x61,0x6c,0x69,0x64])&&_0x3a49de(_0x389d68);},_0x538366);}):_0x3fbeff||_0x1c6f56||_0x3e3bc9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x27c6a0(_0x2e0b46,_0x43ae52){return new window[(_0x3e3bc9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21eaac=>{if(_0x50902d())return _0x21eaac(_0x3e3bc9([0x56,0x61,0x6c,0x69,0x64]));_0x3133d5(),_0x1ea79a[_0x3e3bc9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e3bc9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xc29027=!0x1;const _0x5f52c4=_0x51cb10();function _0x5d491f(_0x3ef980){return!!_0x3ef980&&(typeof _0x3ef980===_0x3e3bc9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3ef980===_0x3e3bc9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3ef980[_0x3e3bc9([0x74,0x68,0x65,0x6e])]===_0x3e3bc9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3ef980[_0x3e3bc9([0x63,0x61,0x74,0x63,0x68])]===_0x3e3bc9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x402719(_0xbb5734){_0x537348(_0xbb5734)[_0x3e3bc9([0x74,0x68,0x65,0x6e])](_0x3d258d=>{if(!_0x3d258d||_0x3d258d[_0x3e3bc9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e3bc9([0x6f,0x6b]))return _0x3e3bc9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x524b54(_0x2b2737(_0x5f52c4+_0x43ae52))!=_0x3d258d[_0x3e3bc9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e3bc9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e3bc9([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e3bc9([0x74,0x68,0x65,0x6e])](_0x31c919=>(_0x194c58(),_0x31c919),()=>{const _0x117409=_0x438694();return null==_0x117409?(_0x194c58(),_0x3e3bc9([0x56,0x61,0x6c,0x69,0x64])):_0x3e3bc9(_0x2cf40f-_0x117409>(0x4c70ada^_0x5e035b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e3bc9([0x74,0x68,0x65,0x6e])](_0x21eaac)[_0x3e3bc9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x21eaac(_0x3e3bc9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xf3c0ef=0x20fd605a^_0x5e035b;function _0x194c58(){const _0x2bc989=_0x3e3bc9([0x6c,0x6c,0x63,0x74,0x2d])+_0x524b54(_0x2b2737(_0x2e0b46)),_0x17553d=_0xe1da7(_0x524b54(window[_0x3e3bc9([0x4d,0x61,0x74,0x68])][_0x3e3bc9([0x63,0x65,0x69,0x6c])](_0x2cf40f/_0xf3c0ef)));window[_0x3e3bc9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e3bc9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2bc989,_0x17553d);}function _0x438694(){const _0x52fb3f=_0x3e3bc9([0x6c,0x6c,0x63,0x74,0x2d])+_0x524b54(_0x2b2737(_0x2e0b46)),_0x4a7b08=window[_0x3e3bc9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e3bc9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52fb3f);return _0x4a7b08?window[_0x3e3bc9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe1da7(_0x4a7b08),0x10)*_0xf3c0ef:null;}function _0x537348(_0x5a3e6b){return new window[(_0x3e3bc9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2829ad,_0x12506f)=>{_0x5a3e6b[_0x3e3bc9([0x74,0x68,0x65,0x6e])](_0x2829ad,_0x12506f),window[_0x3e3bc9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12506f,0x20ca5a1a^_0x5e035b);});}}_0x1ea79a[_0x3e3bc9([0x6f,0x6e])](_0x3e3bc9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x156b27,_0x26d882)=>{if(_0x26d882[0x0]!=_0x2e0b46)return _0x21eaac(_0x3e3bc9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x26d882[0x1]={..._0x26d882[0x1],[_0x3e3bc9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5f52c4};},{[_0x3e3bc9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e3bc9([0x68,0x69,0x67,0x68])}),_0x1ea79a[_0x3e3bc9([0x6f,0x6e])](_0x3e3bc9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x192818=>{_0x5d491f(_0x192818[_0x3e3bc9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xc29027=!0x0,_0x402719(_0x192818[_0x3e3bc9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e3bc9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e3bc9([0x6c,0x6f,0x77])}),_0x16696d[_0x3e3bc9([0x74,0x68,0x65,0x6e])](()=>{_0xc29027||_0x21eaac(_0x3e3bc9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x50902d(){return _0x1ea79a[_0x3e3bc9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e3bc9([0x76,0x69,0x65,0x77])][_0x3e3bc9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e3bc9([0x61,0x75,0x74,0x6f]);}function _0x3133d5(){_0x1ea79a[_0x3e3bc9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e3bc9([0x76,0x69,0x65,0x77])][_0x3e3bc9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e3bc9([0x61,0x75,0x74,0x6f]);}}function _0x44e289(_0x197154){const _0xb222e3=[new window[(_0x3e3bc9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3781bf=>setTimeout(_0x3781bf,0x20c2b016^_0x5e035b)),_0x16696d[_0x3e3bc9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e3bc9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2981c3=>{let _0x1a2fae=0x0;_0x1ea79a[_0x3e3bc9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e3bc9([0x6f,0x6e])](_0x3e3bc9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x15a0c8,_0x21b147)=>{_0x21b147[0x0][_0x3e3bc9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a2fae++,_0x1a2fae==(0x20cb8f22^_0x5e035b)&&(_0x2981c3(),_0x15a0c8[_0x3e3bc9([0x6f,0x66,0x66])]());});}))];return window[_0x3e3bc9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e3bc9([0x72,0x61,0x63,0x65])](_0xb222e3)[_0x3e3bc9([0x74,0x68,0x65,0x6e])](()=>_0x197154);}async function _0x53c3a1(){await _0x16696d,_0x1ea79a[_0x3e3bc9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e3bc9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4cc808,_0x1ea79a[_0x3e3bc9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e3bc9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4cc808,_0x1ea79a[_0x3e3bc9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e3bc9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xdfe817(){return _0x527897(_0x3e3bc9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5d12a2(_0x3e3bc9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3e3bc9([0x73,0x74,0x61,0x74,0x65])]==_0x3e3bc9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x53689e(){return _0x527897(_0x3e3bc9([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 _0x3b1ad2(){return _0x527897(_0x3e3bc9([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xbbc5c6(_0x19afcb){const _0x440060=_0x574d09();_0x1ea79a[_0x440060]=_0x3e3bc9([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x19afcb,_0x19afcb!=_0x3e3bc9([0x56,0x61,0x6c,0x69,0x64])&&_0x53c3a1();}function _0x574d09(){const _0x3cacb6=window[_0x3e3bc9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e3bc9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e3bc9([0x6e,0x6f,0x77])]())[_0x3e3bc9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e3bc9([0x2e]),'');let _0x52ebfc=_0x3e3bc9([0x66]);for(let _0x368ee8=0x0;_0x368ee8<_0x3cacb6[_0x3e3bc9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x368ee8+=0x2){let _0x41d1ef=window[_0x3e3bc9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3cacb6[_0x3e3bc9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x368ee8,_0x368ee8+0x2));_0x41d1ef>=_0x252086[_0x3e3bc9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x41d1ef-=_0x252086[_0x3e3bc9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x52ebfc+=_0x252086[_0x41d1ef];}return _0x52ebfc;}function _0x232031(){const _0x4e151c=_0x58697a[_0x3e3bc9([0x73,0x70,0x6c,0x69,0x74])](_0x3e3bc9([0x2e]));if(0x3!=_0x4e151c[_0x3e3bc9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x15cf96(_0x4e151c[0x1]);function _0x15cf96(_0x3603c2){const _0x159587=_0x4d9845(_0x3603c2);return _0x159587&&_0x45ab99()?_0x159587:null;function _0x45ab99(){const _0x5bae2b=_0x159587[_0x3e3bc9([0x6a,0x74,0x69])],_0x36b051=window[_0x3e3bc9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bae2b[_0x3e3bc9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5bae2b[_0x3e3bc9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4cf258={..._0x159587,[_0x3e3bc9([0x6a,0x74,0x69])]:_0x5bae2b[_0x3e3bc9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5bae2b[_0x3e3bc9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4cf258[_0x3e3bc9([0x76,0x63])],_0x2b2737(_0x4cf258)==_0x36b051;}}}async function _0x2c0437(){let _0x1cdaac=!0x0;try{const _0x662557=_0x58697a[_0x3e3bc9([0x73,0x70,0x6c,0x69,0x74])](_0x3e3bc9([0x2e])),[_0xbe1b29,_0x3b5239,_0x34075e]=_0x662557;return _0x246cd1(_0xbe1b29),await _0x37e237(_0xbe1b29,_0x3b5239,_0x34075e),_0x1cdaac;}catch(_0x328029){return!0x1;}function _0x246cd1(_0x4082a9){const _0x297d3f=_0x4d9845(_0x4082a9);_0x297d3f&&_0x297d3f[_0x3e3bc9([0x61,0x6c,0x67])]==_0x3e3bc9([0x45,0x53,0x32,0x35,0x36])||(_0x1cdaac=!0x1);}async function _0x37e237(_0x526980,_0x3d7f28,_0xd1951c){const _0x52cae9=window[_0x3e3bc9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e3bc9([0x66,0x72,0x6f,0x6d])](_0xf785e1(_0xd1951c),_0x2fc74a=>_0x2fc74a[_0x3e3bc9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2738f3=new window[(_0x3e3bc9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e3bc9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x526980+_0x3e3bc9([0x2e])+_0x3d7f28),_0x37aa32=window[_0x3e3bc9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e3bc9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x37aa32)return;const _0x1855ae=await _0x37aa32[_0x3e3bc9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e3bc9([0x6a,0x77,0x6b]),_0x48ba80,{[_0x3e3bc9([0x6e,0x61,0x6d,0x65])]:_0x3e3bc9([0x45,0x43,0x44,0x53,0x41]),[_0x3e3bc9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e3bc9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e3bc9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x37aa32[_0x3e3bc9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e3bc9([0x6e,0x61,0x6d,0x65])]:_0x3e3bc9([0x45,0x43,0x44,0x53,0x41]),[_0x3e3bc9([0x68,0x61,0x73,0x68])]:{[_0x3e3bc9([0x6e,0x61,0x6d,0x65])]:_0x3e3bc9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1855ae,_0x52cae9,_0x2738f3)||(_0x1cdaac=!0x1);}}function _0x4d9845(_0x46a5e4){return _0x46a5e4[_0x3e3bc9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e3bc9([0x65,0x79]))?JSON[_0x3e3bc9([0x70,0x61,0x72,0x73,0x65])](_0xf785e1(_0x46a5e4)):null;}function _0xf785e1(_0x287a81){return window[_0x3e3bc9([0x61,0x74,0x6f,0x62])](_0x287a81[_0x3e3bc9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e3bc9([0x2b]))[_0x3e3bc9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e3bc9([0x2f])));}function _0x2b2737(_0x493900){let _0x14b63b=0x1505;function _0x1cf5d2(_0xadca8b){for(let _0x21fb04=0x0;_0x21fb04<_0xadca8b[_0x3e3bc9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x21fb04++){const _0x374f37=_0xadca8b[_0x3e3bc9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x21fb04);_0x14b63b=(_0x14b63b<<0x5)+_0x14b63b+_0x374f37,_0x14b63b&=_0x14b63b;}}function _0x3ca170(_0x2d7959){Array[_0x3e3bc9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d7959)?_0x2d7959[_0x3e3bc9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3ca170):_0x2d7959&&typeof _0x2d7959==_0x3e3bc9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e3bc9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d7959)[_0x3e3bc9([0x73,0x6f,0x72,0x74])]()[_0x3e3bc9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x516b72,_0x4519f7])=>{_0x1cf5d2(_0x516b72),_0x3ca170(_0x4519f7);}):_0x1cf5d2(window[_0x3e3bc9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d7959));}return _0x3ca170(_0x493900),_0x14b63b>>>0x0;}function _0x524b54(_0x51ac85){return _0x51ac85[_0x3e3bc9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e3bc9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e3bc9([0x30]));}function _0xe1da7(_0x594641){return _0x594641[_0x3e3bc9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e3bc9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e3bc9([0x6a,0x6f,0x69,0x6e])]('');}function _0x527897(_0x20eab2){return _0x1ea79a[_0x3e3bc9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3e3bc9([0x68,0x61,0x73])](_0x20eab2);}function _0x5d12a2(_0x287f8e){return _0x1ea79a[_0x3e3bc9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3e3bc9([0x67,0x65,0x74])](_0x287f8e);}function _0x4cc808(){}function _0x3e3bc9(_0x25100f){return _0x25100f['map'](_0x460270=>String['fromCharCode'](_0x460270))['join']('');}_0xbbc5c6(await _0x33e393());}(this);}set['adapter'](_0x562d52){if(this['_adapter'])throw new _0x37a522('track-changes-adapter-already-set',this);this['_adapter']=_0x562d52;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x6481af=!0x1,toJSON:_0x701aa9=!0x1}={}){const _0x2e903b=[];for(const _0x24f1bb of this['_suggestions']['values']())_0x6481af&&!_0x24f1bb['isInContent']||_0x2e903b['push'](_0x24f1bb);return _0x701aa9?_0x2e903b['map'](_0xa43452=>_0xa43452['toJSON']()):_0x2e903b;}['getSuggestion'](_0x3b264e){const _0x593fb4=this['_suggestions']['get'](_0x3b264e);if(!_0x593fb4)throw new _0x37a522('track-changes-suggestion-not-found',this);return _0x593fb4;}['hasSuggestion'](_0x1afab0){return this['_suggestions']['has'](_0x1afab0);}['addSuggestionData'](_0x2735a4){const {authorId:_0x921a15,id:_0xdbd77,attributes:_0x17bb7b}=_0x2735a4,[_0x216388,_0xe4622f]=_0x2735a4['type']['split'](':'),_0x420d82=this['_suggestions']['get'](_0xdbd77)||this['_createSuggestion'](_0x216388,_0xe4622f,_0xdbd77,_0x921a15,_0x17bb7b);if(this['_addThreadToSuggestion'](_0x420d82),this['_checkSuggestionCorrectness'](_0x420d82,_0x216388,_0xe4622f||null,_0x921a15),_0x420d82['createdAt']=_0x2735a4['createdAt'],_0x420d82['_isDataLoaded']=!0x0,_0x17bb7b&&_0x17bb7b['@external']){const _0x39d452=_0x17bb7b['@external'],_0x1944fd=this['_getExternalAuthor'](_0x39d452['authorName']);_0x420d82['authoredAt']=_0x39d452['createdAt'],_0x420d82['author']=_0x1944fd,_0x420d82['isExternal']=!0x0;}else _0x420d82['authoredAt']=_0x2735a4['createdAt'];switch(_0x2735a4['data']&&(_0x420d82['data']=_0x2735a4['data']),_0x2735a4['attributes']&&(_0x420d82['attributes']=_0x2735a4['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x420d82['_saved']=!0x0),this['_suggestionState']['get'](_0x420d82)){case'notReady':this['_suggestionState']['set'](_0x420d82,'dataReady');break;case'markerReady':_0x420d82['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x420d82])),this['_refreshSuggestionsChain'](new Set([_0x420d82])),this['_suggestionState']['set'](_0x420d82,'ready'),this['fire']('suggestionLoaded',_0x420d82)):this['_suggestionState']['set'](_0x420d82,'removed');}return _0x420d82;}['acceptSuggestion'](_0x4cc3df){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x305bce of _0x4cc3df['getAllAdjacentSuggestions']())_0x305bce['accept']();});});}['discardSuggestion'](_0x107c2f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2f05f0 of _0x107c2f['getAllAdjacentSuggestions']())_0x2f05f0['discard']();});});}['enableCommand'](_0x576637,_0xccef60){const _0x2c409b=this['editor']['commands']['get'](_0x576637);if(!_0x2c409b)throw new _0x37a522('track-changes-command-not-found',this,{'commandName':_0x576637});if(this['_enabledCommands']['has'](_0x2c409b))throw new _0x37a522('track-changes-enable-command-twice',this,{'commandName':_0x576637});this['_enabledCommands']['add'](_0x2c409b),_0xccef60&&_0x2c409b['on']('execute',(_0x2536d6,_0x408cda)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x408cda['length']>0x0&&_0x408cda[_0x408cda['length']-0x1]&&_0x408cda[_0x408cda['length']-0x1]['forceDefaultExecution']?_0x408cda['pop']():(_0x2536d6['return']=_0xccef60((..._0x229ec7)=>_0x2c409b['execute'](..._0x229ec7,{'forceDefaultExecution':!0x0}),..._0x408cda),_0x2536d6['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5cbfcd){let _0x445a49,_0x47cde2;const _0x1529c5=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x445a49=_0x5cbfcd();}catch(_0x3ba46a){_0x47cde2=_0x3ba46a;}return _0x1529c5||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x47cde2&&_0x37a522['rethrowUnexpectedError'](_0x47cde2,this),_0x445a49;}['markInsertion'](_0x376905,_0x53cc30=null,_0x2ab0cf={}){if(_0x376905['isCollapsed'])return null;const _0x3490b6=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x2ab0cf['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2eb586,meta:_0x100959}of this['_findSuggestions'](_0x376905,'insertion'))if(_0x100959['isOwn']){if(!_0x100959['isNextTo']){if(_0x100959['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x2eb586,_0x2ab0cf))continue;return _0x2eb586;}if(Xt(_0x2eb586,_0x2ab0cf))return _0x2eb586;this['_breakSuggestionMarker'](_0x2eb586,_0x376905['start'],_0x376905['end']);break;}if(_0x53cc30==_0x2eb586['subType']&&Xt(_0x2eb586,_0x2ab0cf)){const _0x171ec1=_0x2eb586['getFirstRange']();return _0x171ec1['start']['isEqual'](_0x376905['end'])?this['_setSuggestionRange'](_0x2eb586,this['_model']['createRange'](_0x376905['start'],_0x171ec1['end'])):this['_setSuggestionRange'](_0x2eb586,this['_model']['createRange'](_0x171ec1['start'],_0x376905['end'])),_0x2eb586;}}const _0x243a09=_0x51cb10(),_0x5972c7=_0x3490b6['id'],_0x361b6a=_0x53cc30?'insertion:'+_0x53cc30:'insertion',_0x5be8da=this['_setSuggestionData']({'id':_0x243a09,'type':_0x361b6a,'createdAt':new Date(),'authorId':_0x5972c7,'attributes':_0x2ab0cf});return this['_addSuggestionMarker'](_0x361b6a,_0x243a09,_0x5972c7,_0x376905),_0x5be8da;}['markMultiRangeInsertion'](_0x2a513c,_0x49b062='multi',_0x441f14={}){const _0x209b98=this['editor']['plugins']['get']('Users')['me'],_0x55da5a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x49b062,'join');this['_trackingSessionId']&&(_0x441f14['trackingSessionId']=this['_trackingSessionId']);for(const _0xff2c8c of this['getSuggestions']())if(_0xff2c8c['author']['id']==_0x209b98['id']&&'insertion'==_0xff2c8c['type']&&_0xff2c8c['subType']==_0x49b062&&Xt(_0xff2c8c,_0x441f14)&&(_0x55da5a(_0xff2c8c['getRanges'](),_0x2a513c)||_0x55da5a(_0x2a513c,_0xff2c8c['getRanges']()))){for(const _0xf34a61 of _0x2a513c)_0xff2c8c['addRange'](_0xf34a61);return _0xff2c8c;}for(const {suggestion:_0x480cc9,meta:_0x3e689c}of this['_findSuggestions'](_0x2a513c,'insertion')){if(!_0x3e689c['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3e689c['containsRangeInObject'])continue;if(!Xt(_0x480cc9,_0x441f14))continue;let _0x230bf=!0x0;for(const _0x463c8d of _0x480cc9['getRanges']())for(const _0x51286a of _0x2a513c)if(!_0x463c8d['containsRange'](_0x51286a)){_0x230bf=!0x1;break;}if(_0x230bf)return _0x480cc9;}const _0x327a99=_0x51cb10(),_0x1889bd=_0x209b98['id'],_0x43fb7d='insertion:'+_0x49b062,_0xc8be73=this['_setSuggestionData']({'id':_0x327a99,'type':_0x43fb7d,'createdAt':new Date(),'authorId':_0x1889bd,'attributes':_0x441f14});for(const _0x270fb8 of _0x2a513c)this['_addSuggestionMarker'](_0x43fb7d,_0x327a99,_0x1889bd,_0x270fb8,o['getMultiRangeId']());return _0xc8be73;}['markInlineFormat'](_0x459ec7,_0x354930,_0x237c3b=null,_0x3acfe8={}){if(_0x237c3b=_0x237c3b||Kt(_0x354930),_0x459ec7['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x3acfe8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4eeca8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x237c3b,'accept');return this['forceDefaultExecution'](()=>_0x4eeca8([_0x459ec7],_0x354930,_0x3acfe8)),null;}const _0x8ce930=this['editor']['plugins']['get']('Users')['me'],_0x30ceff=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x50482d,meta:_0x389543}of this['_findSuggestions'](_0x459ec7,'insertion'))_0x389543['isOwn']&&!_0x389543['isInsideObject']&&_0x30ceff['push'](..._0x50482d['getRanges']());}const _0x1dd284=function(_0x484697,_0x261066){const _0x266064=[];for(const _0x544ad4 of _0x261066){const _0x1a4a57=_0x484697['getIntersection'](_0x544ad4);_0x1a4a57&&_0x266064['push'](_0x1a4a57);}return _0x266064;}(_0x459ec7,_0x30ceff),_0x5d20fc=function(_0x2fe7f1,_0xdb5ba5){const _0x497f48=[_0x2fe7f1];for(const _0x322f58 of _0xdb5ba5){let _0x451255=0x0;for(;_0x451255<_0x497f48['length'];){const _0x141920=_0x497f48[_0x451255]['getDifference'](_0x322f58);_0x497f48['splice'](_0x451255,0x1,..._0x141920),_0x451255+=_0x141920['length'];}}return _0x497f48;}(_0x459ec7,_0x30ceff);_0x1dd284['length']&&this['_model']['change'](()=>{for(const _0x501730 of _0x1dd284){const _0x32d0a1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x237c3b,'accept');this['forceDefaultExecution'](()=>_0x32d0a1([_0x501730],_0x354930,_0x3acfe8));}});for(const _0x489137 of _0x5d20fc){let _0x4c8729=null,_0x371b2d=_0x489137['start'],_0x3fd806=_0x489137['end'];for(const {suggestion:_0x1d7b6e,meta:_0x172512}of this['_findSuggestions'](_0x489137,'formatInline')){if(!_0x172512['isOwn'])continue;if(_0x1d7b6e['subType']!=_0x237c3b)continue;if(!Xt(_0x1d7b6e,_0x3acfe8))continue;const _0x40f62b=_0x1d7b6e['getFirstRange']();if(_0x40f62b['containsRange'](_0x489137,!0x0))return null;_0x371b2d=_0x371b2d['isBefore'](_0x40f62b['start'])?_0x371b2d:_0x40f62b['start'],_0x3fd806=_0x3fd806['isAfter'](_0x40f62b['end'])?_0x3fd806:_0x40f62b['end'],_0x4c8729?_0x40f62b['start']['isBefore'](_0x4c8729['getFirstRange']()['start'])?(_0x4c8729['removeMarkers'](),_0x4c8729=_0x1d7b6e):_0x1d7b6e['removeMarkers']():_0x4c8729=_0x1d7b6e;}const _0x2f0a18=this['_model']['createRange'](_0x371b2d,_0x3fd806);if(_0x4c8729)this['_setSuggestionRange'](_0x4c8729,_0x2f0a18);else{const _0x49c66d=_0x51cb10(),_0x14dee1=_0x8ce930['id'];this['_setSuggestionData']({'id':_0x49c66d,'type':'formatInline:'+_0x237c3b,'data':_0x354930,'createdAt':new Date(),'authorId':_0x14dee1,'attributes':_0x3acfe8}),this['_addSuggestionMarker']('formatInline:'+_0x237c3b,_0x49c66d,_0x14dee1,_0x2f0a18);}}return null;}['markBlockFormat'](_0x2835a4,_0xd16d16,_0x42703b=[],_0x493fdb=null,_0x43eae3={}){_0xd16d16['formatGroupId']||(_0xd16d16['formatGroupId']=_0xd16d16['commandName']),_0xd16d16['multipleBlocks']=_0x2835a4['is']('range'),_0x493fdb=_0x493fdb||Kt(_0xd16d16);const _0x29a068=_0x42703b['map'](_0x169fdb=>zt(_0x169fdb,this['_model'])),_0x3d2b9e=_0x2835a4['is']('range')?_0x2835a4:zt(_0x2835a4,this['_model']);if(this['_trackingSessionId']&&(_0x43eae3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5cbdac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x493fdb,'accept');return this['forceDefaultExecution'](()=>_0x5cbdac([_0x3d2b9e],_0xd16d16,_0x43eae3)),null;}_0x29a068['push'](_0x3d2b9e);let _0x2fb62b=!0x0;for(const _0xad7bee of _0x29a068)if(!this['_rangeIsInLocalUserInsertion'](_0xad7bee)){_0x2fb62b=!0x1;break;}if(_0x2fb62b&&'always'!==this['_trackFormatChanges']){const _0x1dcd4a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x493fdb,'accept');return this['forceDefaultExecution'](()=>_0x1dcd4a([_0x3d2b9e],_0xd16d16,_0x43eae3)),null;}let _0x906fb9=null,_0x12c437=_0x3d2b9e['start'],_0x282c5f=_0x3d2b9e['end'];for(const {suggestion:_0x52ce42,meta:_0x6a2230}of this['_findSuggestions'](_0x3d2b9e,'formatBlock')){if(!_0x6a2230['isOwn'])continue;if(_0x6a2230['isNextTo']||_0x6a2230['containsRangeInObject']||_0x6a2230['isInsideObject'])continue;if(_0x52ce42['data']['formatGroupId']!=_0xd16d16['formatGroupId'])continue;if(!Xt(_0x52ce42,_0x43eae3))continue;const _0x39f63a=_0x52ce42['getFirstRange']();if(_0x52ce42['subType']==_0x493fdb){if(_0x39f63a['containsRange'](_0x3d2b9e,!0x0))return null;_0x12c437=_0x12c437['isBefore'](_0x39f63a['start'])?_0x12c437:_0x39f63a['start'],_0x282c5f=_0x282c5f['isAfter'](_0x39f63a['end'])?_0x282c5f:_0x39f63a['end'],_0x906fb9?_0x39f63a['start']['isBefore'](_0x906fb9['getFirstRange']()['start'])?(_0x906fb9['removeMarkers'](),_0x906fb9=_0x52ce42):_0x52ce42['removeMarkers']():_0x906fb9=_0x52ce42;}else{const _0x525c31=_0x3d2b9e['getIntersection'](_0x39f63a);this['_cutOutSuggestionMarker'](_0x52ce42,_0x525c31);}}const _0xe39538=this['editor']['plugins']['get']('Users')['me'],_0x14c4fa=_0x51cb10(),_0x590669=_0xe39538['id'];if(_0x906fb9)return this['_setSuggestionRange'](_0x906fb9,this['_model']['createRange'](_0x12c437,_0x282c5f)),_0x906fb9;{const _0x4b02de=this['_setSuggestionData']({'id':_0x14c4fa,'type':'formatBlock:'+_0x493fdb,'data':_0xd16d16,'createdAt':new Date(),'authorId':_0x590669,'attributes':_0x43eae3});return this['_addSuggestionMarker']('formatBlock:'+_0x493fdb,_0x14c4fa,_0x590669,this['_model']['createRange'](_0x12c437,_0x282c5f)),_0x4b02de;}}['markMultiRangeBlockFormat'](_0x469454,_0x3effbb,_0x3c8bb1=[],_0x220655=null,_0x5bf362={}){_0x3effbb['formatGroupId']||(_0x3effbb['formatGroupId']=_0x3effbb['commandName']);const _0x989d15=_0x469454[0x0];_0x3effbb['multipleBlocks']=_0x989d15['is']('range'),_0x220655=_0x220655||Kt(_0x3effbb);const _0x2da16d=_0x3c8bb1['map'](_0x25ee3d=>zt(_0x25ee3d,this['_model'])),_0x2e8c7a=_0x989d15['is']('range')?_0x469454:_0x469454['map'](_0x3f5418=>zt(_0x3f5418,this['_model']));if(this['_trackingSessionId']&&(_0x5bf362['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xdf2274=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x220655,'accept');return this['forceDefaultExecution'](()=>_0xdf2274(_0x2e8c7a,_0x3effbb,_0x5bf362)),null;}_0x2da16d['push'](..._0x2e8c7a);let _0xbe2f6=!0x0;for(const _0x3e4985 of _0x2da16d)if(!this['_rangeIsInLocalUserInsertion'](_0x3e4985)){_0xbe2f6=!0x1;break;}if(_0xbe2f6&&'always'!==this['_trackFormatChanges']){const _0x4cc086=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x220655,'accept');return this['forceDefaultExecution'](()=>_0x4cc086(_0x2e8c7a,_0x3effbb,_0x5bf362)),null;}const _0x30a69d=this['editor']['plugins']['get']('Users')['me'];for(const _0x13fca8 of this['getSuggestions']()){if(_0x13fca8['author']['id']!=_0x30a69d['id'])continue;if('formatBlock'!=_0x13fca8['type']||_0x13fca8['data']['formatGroupId']!=_0x3effbb['formatGroupId'])continue;if(!Xt(_0x13fca8,_0x5bf362))continue;const _0x4b4718=_0x13fca8['subType']==_0x220655;for(let _0x1d308a=0x0;_0x1d308a<_0x2e8c7a['length'];_0x1d308a++){const _0xa7ce4f=_0x2e8c7a[_0x1d308a];for(const _0x4c437a of _0x13fca8['getMarkers']()){const _0x37172c=_0x4c437a['getRange']();if(_0xa7ce4f['isEqual'](_0x37172c)){_0x4b4718?(_0x2e8c7a['splice'](_0x1d308a,0x1),_0x1d308a--):_0x13fca8['removeMarker'](_0x4c437a['name']);break;}}}}if(0x0==_0x2e8c7a['length'])return null;const _0x12bbd0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x220655,'join');for(const _0x1bb08b of this['getSuggestions']())if(_0x1bb08b['author']['id']==_0x30a69d['id']&&'formatBlock'==_0x1bb08b['type']&&_0x1bb08b['data']['formatGroupId']==_0x3effbb['formatGroupId']&&_0x1bb08b['subType']==_0x220655&&Xt(_0x1bb08b,_0x5bf362)&&(_0x12bbd0(_0x1bb08b['getRanges'](),_0x2e8c7a)||_0x12bbd0(_0x2e8c7a,_0x1bb08b['getRanges']()))){for(const _0x125645 of _0x2e8c7a)_0x1bb08b['addRange'](_0x125645);return _0x1bb08b;}const _0xef14b9=_0x51cb10(),_0x1382ef=_0x30a69d['id'],_0x1215df='formatBlock:'+_0x220655,_0x1922d5=this['_setSuggestionData']({'id':_0xef14b9,'type':_0x1215df,'data':_0x3effbb,'createdAt':new Date(),'authorId':_0x1382ef,'attributes':_0x5bf362});for(const _0xfa2065 of _0x2e8c7a)this['_addSuggestionMarker'](_0x1215df,_0xef14b9,_0x1382ef,_0xfa2065,o['getMultiRangeId']());return _0x1922d5;}['markDeletion'](_0x392aa7,_0x33c899=null,_0x4c3cc8={}){if(_0x392aa7['isCollapsed'])return null;const _0x310375=this['editor']['plugins']['get']('Users')['me'],_0x4c1ba8=new _0x41f0a3(_0x392aa7['start'],_0x392aa7['end']);this['_trackingSessionId']&&(_0x4c3cc8['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2fdb8a,meta:_0x1c0dba}of this['_findSuggestions'](_0x4c1ba8,'insertion'))if(_0x1c0dba['isOwn']&&!_0x1c0dba['isNextTo']){if(_0x2fdb8a['isMultiRange']){const _0x17fd1a=_0x2fdb8a['getRanges']()['filter'](_0x50f9da=>'$graveyard'!=_0x50f9da['root']['rootName']);_0x17fd1a['every'](_0x1b67c1=>_0x4c1ba8['containsRange'](_0x1b67c1,!0x0))&&_0x2fdb8a['discard']();if(_0x17fd1a['some'](_0x342939=>_0x342939['containsRange'](_0x4c1ba8,!0x0))){const _0x38d6ff=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33c899,'accept');return this['forceDefaultExecution'](()=>_0x38d6ff([_0x4c1ba8],null,_0x4c3cc8)),null;}}else{const _0x5d5364=_0x4c1ba8['getIntersection'](_0x2fdb8a['getFirstRange']());null!==_0x5d5364&&_0x2fdb8a['_onDiscard']([_0x5d5364],null,_0x4c3cc8);}}if(_0x4c1ba8['detach'](),_0x4c1ba8['isCollapsed']||'$graveyard'==_0x4c1ba8['root']['rootName'])return null;let _0x175738=null,_0x1451d8=_0x4c1ba8['start'],_0x1bb9ad=_0x4c1ba8['end'];const _0x19077d=this['_findSuggestions'](_0x4c1ba8,'deletion');for(const {suggestion:_0x53d1d9,meta:_0x4cc929}of _0x19077d){const _0x1adbd0=this['_model']['createRange'](_0x1451d8,_0x1bb9ad);if(_0x4cc929['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4cc929['containsRangeInObject']&&!_0x4cc929['isInsideObject'])){if(_0x53d1d9['isMultiRange']){if(!Xt(_0x53d1d9,_0x4c3cc8))continue;let _0x3fbde9=!0x0;for(const _0x3e15e2 of _0x53d1d9['getRanges']()){if(_0x3e15e2['containsRange'](_0x1adbd0,!0x0))return _0x53d1d9;_0x1adbd0['containsRange'](_0x3e15e2)||(_0x3fbde9=!0x1);}_0x3fbde9&&_0x53d1d9['discard']();}else{const _0x3ff5f4=_0x53d1d9['getFirstRange']();if(_0x3ff5f4['containsRange'](_0x1adbd0,!0x0))return _0x53d1d9;if(!Xt(_0x53d1d9,_0x4c3cc8)){_0x1adbd0['containsRange'](_0x3ff5f4)?_0x53d1d9['removeMarkers']():_0x3ff5f4['containsPosition'](_0x1451d8)?_0x1451d8=_0x3ff5f4['end']:_0x3ff5f4['containsPosition'](_0x1bb9ad)&&(_0x1bb9ad=_0x3ff5f4['start']);continue;}_0x1451d8=_0x1451d8['isBefore'](_0x3ff5f4['start'])?_0x1451d8:_0x3ff5f4['start'],_0x1bb9ad=_0x1bb9ad['isAfter'](_0x3ff5f4['end'])?_0x1bb9ad:_0x3ff5f4['end'],_0x4c3cc8=Object['assign']({},_0x53d1d9['attributes']),_0x175738?_0x3ff5f4['start']['isBefore'](_0x175738['getFirstRange']()['start'])?(_0x175738['removeMarkers'](),_0x175738=_0x53d1d9):_0x53d1d9['removeMarkers']():_0x175738=_0x53d1d9;}}}if(_0x175738)return this['_setSuggestionRange'](_0x175738,this['_model']['createRange'](_0x1451d8,_0x1bb9ad)),_0x175738;{const _0x117e45=_0x51cb10(),_0x14b00f=this['_model']['createRange'](_0x1451d8,_0x1bb9ad),_0x279196=_0x310375['id'],_0x1eadf8=_0x33c899?'deletion:'+_0x33c899:'deletion',_0xfa4658=this['_setSuggestionData']({'id':_0x117e45,'type':_0x1eadf8,'createdAt':new Date(),'authorId':_0x279196,'attributes':_0x4c3cc8});return this['_addSuggestionMarker'](_0x1eadf8,_0x117e45,_0x279196,_0x14b00f),_0xfa4658;}}['markMultiRangeDeletion'](_0x466fd8,_0x6ed80b='multi',_0x48375a={}){const _0x37f809=this['editor']['plugins']['get']('Users')['me'],_0x1a6a62=_0x466fd8['map'](_0x8b90c4=>new _0x41f0a3(_0x8b90c4['start'],_0x8b90c4['end'])),_0x43541c=new Set();this['_trackingSessionId']&&(_0x48375a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x461c38,meta:_0x490029}of this['_findSuggestions'](_0x1a6a62,'insertion'))_0x490029['isOwn']&&!_0x490029['isNextTo']&&_0x43541c['add'](_0x461c38);for(const _0x408c42 of _0x43541c)if(_0x408c42['isMultiRange']){const _0x3523c9=_0x408c42['getRanges']();(!_0x408c42['attributes']||!_0x408c42['attributes']['skipNestingCheck'])&&(_0x3523c9['every'](_0x35bb53=>_0x1a6a62['some'](_0x4af8e5=>_0x4af8e5['containsRange'](_0x35bb53,!0x0)))&&_0x408c42['discard']());if(_0x1a6a62['every'](_0x4ea871=>_0x3523c9['some'](_0x1525ca=>_0x1525ca['containsRange'](_0x4ea871,!0x0)))){const _0x436e14=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x6ed80b,'accept');return this['forceDefaultExecution'](()=>_0x436e14(_0x466fd8,null,_0x48375a)),null;}}else{const _0x19fef4=_0x408c42['getFirstRange']();_0x1a6a62['some'](_0x4f113e=>_0x4f113e['containsRange'](_0x19fef4,!0x0))&&_0x408c42['discard']();if(_0x1a6a62['every'](_0x4e6ade=>_0x19fef4['containsRange'](_0x4e6ade,!0x0))){const _0x11e624=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x6ed80b,'accept');return this['forceDefaultExecution'](()=>_0x11e624(_0x1a6a62,null,_0x48375a)),null;}}const _0x3c4f57=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x6ed80b,'join');let _0x541b5d=null;for(const _0x2a8c9c of this['getSuggestions']())if(_0x2a8c9c['author']['id']==_0x37f809['id']&&_0x2a8c9c['isInContent']&&'deletion'==_0x2a8c9c['type']&&_0x2a8c9c['subType']==_0x6ed80b&&Xt(_0x2a8c9c,_0x48375a)&&(_0x3c4f57(_0x2a8c9c['getRanges'](),_0x1a6a62)||_0x3c4f57(_0x1a6a62,_0x2a8c9c['getRanges']()))){if(_0x541b5d){if(_0x2a8c9c['commentThread']&&_0x2a8c9c['commentThread']['length'])continue;for(const _0x44042f of _0x2a8c9c['getRanges']())_0x541b5d['isIntersectingWithRange'](_0x44042f)||_0x541b5d['addRange'](_0x44042f);_0x2a8c9c['removeMarkers']();}else{_0x541b5d=_0x2a8c9c;for(const _0x34e0fa of _0x1a6a62)_0x2a8c9c['isIntersectingWithRange'](_0x34e0fa)||_0x2a8c9c['addRange'](_0x34e0fa);}}if(_0x541b5d)return _0x541b5d;_0x43541c['clear']();for(const {suggestion:_0x4bd957,meta:_0x31e7aa}of this['_findSuggestions'](_0x1a6a62,'deletion'))_0x31e7aa['isOwn']&&(this['_mergeNestedSuggestions']||!_0x31e7aa['containsRangeInObject']&&!_0x31e7aa['isInsideObject'])&&Xt(_0x4bd957,_0x48375a)&&_0x43541c['add'](_0x4bd957);for(const _0x578cd6 of _0x43541c){const _0x4eda7e=_0x578cd6['getRanges']();if(!_0x48375a||!_0x48375a['skipNestingCheck']){if(_0x1a6a62['every'](_0x13b307=>_0x4eda7e['some'](_0x464c5d=>_0x464c5d['containsRange'](_0x13b307,!0x0))))return _0x578cd6;}(!_0x578cd6['attributes']||!_0x578cd6['attributes']['skipNestingCheck'])&&(_0x4eda7e['every'](_0x3eced5=>_0x1a6a62['some'](_0xc8b76e=>_0xc8b76e['containsRange'](_0x3eced5,!0x0)))&&_0x578cd6['discard']());}const _0x5fc133=_0x51cb10(),_0x83c43d=_0x37f809['id'],_0x54e9be='deletion:'+_0x6ed80b,_0x3f7876=this['_setSuggestionData']({'id':_0x5fc133,'type':_0x54e9be,'createdAt':new Date(),'authorId':_0x83c43d,'attributes':_0x48375a});for(const _0x25aad1 of _0x1a6a62)_0x25aad1['detach'](),_0x25aad1['isCollapsed']||'$graveyard'==_0x25aad1['root']['rootName']||this['_addSuggestionMarker'](_0x54e9be,_0x5fc133,_0x83c43d,_0x25aad1,o['getMultiRangeId']());return _0x3f7876;}['markAttributeChange'](_0x150a46,_0x3bb396,_0x29a00e,_0x29e9dd,_0x1fa35c){if(_0x150a46['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3650e2=this['editor']['plugins']['get']('Users')['me']['id'],_0x24df9d=Array['from'](this['_suggestions']['values']())['filter'](_0x2bc06c=>'attribute'==_0x2bc06c['type']&&_0x2bc06c['data']['key']==_0x3bb396&&_0x2bc06c['isIntersectingWithRange'](_0x150a46));if(this['_trackingSessionId']&&(_0x1fa35c['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x54967a=this['_findSuggestions'](_0x150a46,'insertion')['filter'](({meta:_0x52ee4b})=>_0x52ee4b['isOwn']&&!_0x52ee4b['isInsideObject']&&!_0x52ee4b['isNextTo'])['map'](({suggestion:_0x2f569f})=>_0x2f569f);_0x24df9d['unshift'](..._0x54967a);}const _0x4893ed=new Map([[_0x150a46,_0x29a00e]]);for(const _0x2684a1 of _0x24df9d){const _0x237c92='attribute'==_0x2684a1['type']?_0x2684a1['data']['oldValue']:void 0x0,_0x5820cc=_0x2684a1['getFirstRange'](),_0x22e470=Array['from'](_0x4893ed['keys']())['find'](_0x374d2c=>_0x374d2c['isIntersecting'](_0x5820cc));if(!_0x22e470)continue;const _0x211300=_0x22e470['getDifference'](_0x5820cc);this['_isBlockAttribute'](_0x3bb396)&&'insertion'==_0x2684a1['type']&&0x0!=_0x211300['length']||(_0x4893ed['delete'](_0x22e470),_0x211300['forEach'](_0x4a5f8d=>{_0x4893ed['set'](_0x4a5f8d,_0x29a00e);}),'insertion'!=_0x2684a1['type']&&_0x237c92!=_0x29e9dd&&_0x4893ed['set'](_0x22e470['getIntersection'](_0x5820cc),_0x237c92));}const _0x3d8a33=[];for(const [_0x2a6c83,_0x156440]of _0x4893ed){const _0x109594=_0x51cb10(),_0x1fe1e1={'key':_0x3bb396,'oldValue':_0x156440,'newValue':_0x29e9dd};_0x3bb396['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':_0x3bb396});const _0x1b0a0e=('attribute:'+(_0x3bb396+'|'+Kt({'newValue':_0x29e9dd})))['substring'](0x0,0x3c),_0x8e8ba9=this['_setSuggestionData']({'id':_0x109594,'type':_0x1b0a0e,'data':_0x1fe1e1,'createdAt':new Date(),'authorId':_0x3650e2,'attributes':_0x1fa35c});_0x3d8a33['push'](_0x8e8ba9),this['_addSuggestionMarker'](_0x1b0a0e,_0x109594,_0x3650e2,_0x2a6c83);}return _0x3d8a33;}['enableDefaultAttributesIntegration'](_0x5d45df){this['enableCommand'](_0x5d45df,(_0x5f23c8,..._0x35df7f)=>{this['_recordAttributeChanges'](()=>{_0x5f23c8(..._0x35df7f);});});}['registerBlockAttribute'](_0x56cd52){this['_blockAttributeKeys']['add'](_0x56cd52);}['registerInlineAttribute'](_0x1441b7){this['_inlineAttributeKeys']['add'](_0x1441b7);}['startTrackingSession'](_0x219775){return this['_trackingSessionId']=void 0x0!==_0x219775?_0x219775:_0x51cb10(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1b9d11){return'attribute'==_0x1b9d11['type']?_0x1b9d11['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xee9b2b,_0x5de927){const _0x4255b5=_0xee9b2b['getFirstMarker']();this['_model']['change'](_0x209651=>{_0x209651['updateMarker'](_0x4255b5,{'range':_0x5de927});});}['_addThreadToSuggestion'](_0x2b3cce){const _0x410046=_0x2b3cce['id'],_0x4a6f0c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x410046)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4a6f0c,'threadId':_0x410046,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3ea7c0=this['_commentsRepository']['getCommentThread'](_0x410046);_0x3ea7c0['unbind']('isRemovable'),_0x3ea7c0['isRemovable']=!0x1,_0x2b3cce['commentThread']=_0x3ea7c0;}['_checkSuggestionCorrectness'](_0xd7f017,_0x2186c5,_0x58bb1f,_0x110098){if(_0xd7f017['type']!=_0x2186c5||_0xd7f017['subType']!=_0x58bb1f||_0xd7f017['creator']['id']!=_0x110098)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x37a522('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x421f4b,_0x54fa2f){const _0x1634e1=_0x421f4b['getFirstRange']();if(_0x54fa2f['isEqual'](_0x1634e1))_0x421f4b['removeMarkers']();else{if(_0x1634e1['containsRange'](_0x54fa2f)){const _0x5d447e=this['_model']['createPositionAt'](_0x54fa2f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x421f4b,this['_model']['createRange'](_0x1634e1['start'],_0x5d447e));const _0x18fc47=_0x51cb10(),_0x1332a1=_0x421f4b['creator']['id'],_0x4c3b93=_0x421f4b['type']+':'+_0x421f4b['subType'];this['_setSuggestionData']({'id':_0x18fc47,'type':_0x4c3b93,'createdAt':new Date(),'authorId':_0x1332a1,'data':_0x421f4b['data'],'attributes':_0x421f4b['attributes']});const _0x256be6=this['_model']['createPositionAt'](_0x54fa2f['end']['parent'],'after'),_0x41b6c0=this['_model']['createRange'](_0x256be6,_0x1634e1['end']);this['_addSuggestionMarker'](_0x4c3b93,_0x18fc47,_0x1332a1,_0x41b6c0);}else{if(_0x1634e1['containsPosition'](_0x54fa2f['start'])){const _0x3d7d94=this['_model']['createPositionAt'](_0x54fa2f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x421f4b,this['_model']['createRange'](_0x1634e1['start'],_0x3d7d94));}else{const _0x4aedbb=this['_model']['createPositionAt'](_0x54fa2f['end']['parent'],'after');this['_setSuggestionRange'](_0x421f4b,this['_model']['createRange'](_0x4aedbb,_0x1634e1['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2d455e){for(const {suggestion:_0x358e81,meta:_0x315c50}of this['_findSuggestions'](_0x2d455e,'insertion')){if(!_0x315c50['isOwn'])continue;const _0x250eca=_0x358e81['getRanges']();for(const _0x2e6cdb of _0x250eca)if(!_0x2d455e['getDifference'](_0x2e6cdb)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1dbce5){const _0x4f2b80=this['editor']['plugins']['get']('Users')['getUser'](_0x1dbce5);if(!_0x4f2b80)throw new _0x37a522('track-changes-user-not-found',this);return _0x4f2b80;}['_getExternalAuthor'](_0x129814){const _0x3725f5=this['editor']['plugins']['get']('Users'),_0x4be879=_0xac6d13('external:'+_0x129814),_0x22fe77=_0x3725f5['getUser'](_0x4be879);return _0x22fe77||_0x3725f5['addUser']({'id':_0x4be879,'name':_0x129814});}['_createSuggestion'](_0x399540,_0x497ddc,_0x250f76,_0x4b1d5a,_0x31a8d8){const _0xb8a4dd=this['_getAuthorFromId'](_0x4b1d5a),_0x4afc39=this['_suggestionFactory']['buildSuggestion'](_0x399540,_0x497ddc,_0x250f76,_0xb8a4dd,_0x31a8d8,_0x411ba1=>{this['_updateSuggestionData'](_0x250f76,{'attributes':_0x411ba1});const _0x1e3f08=this['getSuggestion'](_0x250f76);this['_joinWithAdjacentSuggestions'](new Set([_0x1e3f08])),this['_refreshSuggestionsChain'](new Set([_0x1e3f08]));});return this['listenTo'](_0x4afc39,'accept',()=>{this['_updateSuggestionData'](_0x250f76,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4afc39,'discard',()=>{this['_updateSuggestionData'](_0x250f76,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x250f76,_0x4afc39),this['_suggestionState']['set'](_0x4afc39,'notReady'),_0x4afc39;}['_splitMarkerName'](_0x3faee8){const _0x12f1ea=_0x3faee8['split'](':');return{'group':_0x12f1ea[0x0],'type':_0x12f1ea[0x1],'subType':_0x12f1ea['length']>=0x5?_0x12f1ea[0x2]:null,'id':_0x12f1ea['length']<0x5?_0x12f1ea[0x2]:_0x12f1ea[0x3],'authorId':_0x12f1ea['length']<0x5?_0x12f1ea[0x3]:_0x12f1ea[0x4],'markerCount':0x6==_0x12f1ea['length']?_0x12f1ea[0x5]:null};}['_breakSuggestionMarker'](_0x338bc4,_0x5d68a9,_0x93342b){const _0x4b8cd7=_0x338bc4['getFirstRange'](),_0x1df543=_0x4b8cd7['start'],_0x564164=_0x4b8cd7['end'];this['_setSuggestionRange'](_0x338bc4,this['_model']['createRange'](_0x1df543,_0x5d68a9));const _0x67d423=_0x51cb10(),_0x710581=_0x338bc4['creator']['id'],_0x4468e4=_0x338bc4['type']+(_0x338bc4['subType']?':'+_0x338bc4['subType']:'');this['_setSuggestionData']({'id':_0x67d423,'type':_0x4468e4,'createdAt':new Date(),'authorId':_0x710581,'originalSuggestionId':_0x338bc4['id'],'attributes':_0x338bc4['attributes'],'data':_0x338bc4['data']});const _0x2ba0a4=this['_getAttributeKey'](_0x338bc4);('formatBlock'==_0x338bc4['type']||_0x2ba0a4&&this['_isBlockAttribute'](_0x2ba0a4))&&(_0x93342b=this['_model']['createPositionBefore'](_0x93342b['parent'])),this['_addSuggestionMarker'](_0x4468e4,_0x67d423,_0x710581,this['_model']['createRange'](_0x93342b,_0x564164));}['_findSuggestions'](_0x14c085,_0x14edea=null){const _0x4c64d5=[],_0x5b64ca=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x14c085)||(_0x14c085=[_0x14c085]);for(const _0x4bab41 of this['getSuggestions']()){if(!_0x4bab41['isInContent'])continue;if(_0x14edea&&_0x4bab41['type']!=_0x14edea)continue;let _0x4dfb82=!0x1;for(const _0x9c933b of _0x4bab41['getRanges']()){for(const _0x1f781b of _0x14c085){const _0x53d233=_0x1f781b['start']['isEqual'](_0x9c933b['end'])||_0x1f781b['end']['isEqual'](_0x9c933b['start']);if(_0x53d233||_0x1f781b['getIntersection'](_0x9c933b)){const _0x3e49b8=_0x1f781b['containsRange'](_0x9c933b)&&Gt(this['_model']['schema'],_0x9c933b['start'],_0x1f781b),_0x5963b7=_0x9c933b['containsRange'](_0x1f781b)&&Gt(this['_model']['schema'],_0x1f781b['start'],_0x9c933b);_0x4c64d5['push']({'suggestion':_0x4bab41,'meta':{'isOwn':_0x5b64ca==_0x4bab41['author'],'isNextTo':_0x53d233,'isInsideObject':_0x3e49b8,'containsRangeInObject':_0x5963b7}}),_0x4dfb82=!0x0;break;}}if(_0x4dfb82)break;}}return _0x4c64d5;}['_addSuggestionMarker'](_0x10ceb7,_0x54833c,_0x6d9c90,_0x5e7e12,_0x26b6b9){this['_model']['change'](_0xfb4abf=>{let _0x398723='suggestion:'+_0x10ceb7+':'+_0x54833c+':'+_0x6d9c90;_0x26b6b9&&(_0x398723=_0x398723+':'+_0x26b6b9),_0xfb4abf['addMarker'](_0x398723,{'range':_0x5e7e12,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4abc89){const _0x31ea2a=_0x4abc89['previous'],_0xc86c09=_0x4abc89['next'];_0x4abc89['previous']=null,_0x4abc89['next']=null,null!=_0x31ea2a&&_0x31ea2a['next']==_0x4abc89&&(_0x31ea2a['next']=_0xc86c09),null!=_0xc86c09&&_0xc86c09['previous']==_0x4abc89&&(_0xc86c09['previous']=_0x31ea2a),'ready'==this['_suggestionState']['get'](_0x4abc89)&&(this['_suggestionState']['set'](_0x4abc89,'removed'),this['fire']('suggestionUnloaded',_0x4abc89,_0x31ea2a,_0xc86c09));}['_setSuggestionData'](_0x2c5ced){const _0x5bec5e=_0x2c5ced['id'],_0x32e2a1=this['addSuggestionData'](_0x2c5ced);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3b7150=this['editor']['plugins']['get']('PendingActions'),_0x4e5d6f=_0x32e2a1['hasComments'],_0x3c082b=_0x32e2a1['subType']?_0x32e2a1['type']+':'+_0x32e2a1['subType']:_0x32e2a1['type'],_0xe806e1=this['editor']['locale'],_0x346c38=_0x3b7150['add'](c(_0xe806e1,'PENDING_ACTION_SUGGESTION')),_0x53f208={'id':_0x5bec5e,'type':_0x3c082b,'hasComments':_0x4e5d6f,'data':_0x2c5ced['data']||null,'originalSuggestionId':_0x2c5ced['originalSuggestionId']||null,'attributes':_0x32e2a1['attributes']};this['_adapter']['addSuggestion'](_0x53f208)['then'](_0x532e75=>{_0x32e2a1['_saved']=!0x0,_0x3b7150['remove'](_0x346c38),_0x532e75&&_0x532e75['createdAt']&&(this['_suggestions']['get'](_0x5bec5e)['createdAt']=_0x532e75['createdAt']);})['catch'](_0x3f6882=>{throw _0x554ee1('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x32e2a1['discard']();}),_0x32e2a1['stopListening'](),this['_suggestions']['delete'](_0x32e2a1['id']),this['_suggestionState']['delete'](_0x32e2a1),_0x3f6882;});}return _0x32e2a1;}['_isBlockAttribute'](_0xb5f4b3){return this['_blockAttributeKeys']['has'](_0xb5f4b3);}['_updateSuggestionData'](_0x3f965b,_0x501b7e){const _0x1f9d27=this['editor']['plugins']['get']('PendingActions'),_0x441846=this['getSuggestion'](_0x3f965b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x441846['_saved']){const _0x2efa16=_0x1f9d27['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3f965b,_0x501b7e)['then'](()=>{_0x1f9d27['remove'](_0x2efa16);});}else _0x441846['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3f965b,_0x501b7e);});}}['_getSuggestionData'](_0xbcb139){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x37a522('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xbcb139);}['_handleNewSuggestionMarker'](_0x204147){const {id:_0x4c977d,type:_0x968503,subType:_0x17d845,authorId:_0x5cda80}=this['_splitMarkerName'](_0x204147),_0xe200e8=this['_suggestions']['get'](_0x4c977d)||this['_createSuggestion'](_0x968503,_0x17d845,_0x4c977d,_0x5cda80,{});switch(this['_checkSuggestionCorrectness'](_0xe200e8,_0x968503,_0x17d845,_0x5cda80),this['_suggestionState']['get'](_0xe200e8)){case'notReady':this['_getSuggestionData'](_0x4c977d)['then'](_0x202771=>{let _0x2c38c7=Promise['resolve']();_0x202771['hasComments']&&(_0x2c38c7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4c977d})),_0x2c38c7['then'](()=>{this['addSuggestionData'](_0x202771)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xe200e8,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4c977d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xe200e8,'ready'),this['fire']('suggestionLoaded',_0xe200e8);break;case'ready':this['fire']('suggestionChanged',_0xe200e8);}return _0xe200e8['addMarkerName'](_0x204147),_0xe200e8;}['_refreshSuggestionsChain'](_0x13895d){const _0x2a3005=Array['from'](_0x13895d),_0x5742f1=_0x2a3005['filter'](_0x44f772=>'attribute'==_0x44f772['type']);this['_refreshAttributeSuggestionsChain'](_0x5742f1);const _0xae459c=_0x2a3005['filter'](_0x387d67=>!_0x387d67['isMultiRange']&&'attribute'!=_0x387d67['type']),_0x5cc85f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5058aa=>!_0x5058aa['isMultiRange']&&'attribute'!=_0x5058aa['type']),_0x3918f5=_0x5cc85f['filter'](_0x2546a7=>!_0x13895d['has'](_0x2546a7)),_0x1264e7=new Map(_0x5cc85f['map'](_0x5aa56b=>[_0x5aa56b,this['_suggestionFactory']['getSuggestionCallback'](_0x5aa56b['type'],_0x5aa56b['subType'],'chain')])),_0x2e79ad=new Map(_0x5cc85f['map'](_0x1afe26=>[_0x1afe26,_0x1afe26['getFirstRange']()])),_0xa268c5=new Set(),_0xffe15d=new Set();for(let _0x45eec4=0x0;_0x45eec4<_0xae459c['length'];_0x45eec4++)_0x1a5ebe(_0xae459c[_0x45eec4],_0xae459c,_0x45eec4+0x1);for(let _0x8fd2e8=0x0;_0x8fd2e8<_0xae459c['length'];_0x8fd2e8++)_0x1a5ebe(_0xae459c[_0x8fd2e8],_0x3918f5,0x0);const _0x279f22=new Set();for(let _0x127217=0x0;_0x127217<_0xae459c['length'];_0x127217++){const _0x516102=_0xae459c[_0x127217];!_0xffe15d['has'](_0x516102)&&_0x516102['previous']&&(_0x279f22['add'](_0x516102['previous']),_0x516102['previous']['next']===_0x516102&&(_0x516102['previous']['next']=null),_0x516102['previous']=null),!_0xa268c5['has'](_0x516102)&&_0x516102['next']&&(_0x279f22['add'](_0x516102['next']),_0x516102['next']['previous']===_0x516102&&(_0x516102['next']['previous']=null),_0x516102['next']=null);}function _0x1a5ebe(_0x459559,_0x1667c7,_0x57152a){for(let _0x261fb0=_0x57152a;_0x261fb0<_0x1667c7['length'];_0x261fb0++){const _0x13ce35=_0x11cb9b(_0x459559,_0x1667c7[_0x261fb0]);_0x13ce35&&(_0x13ce35[0x0]['next']=_0x13ce35[0x1],_0x13ce35[0x1]['previous']=_0x13ce35[0x0],_0xa268c5['add'](_0x13ce35[0x0]),_0xffe15d['add'](_0x13ce35[0x1]));}}function _0x11cb9b(_0x23c52c,_0x251fd3){if(_0x23c52c['author']['id']!==_0x251fd3['author']['id'])return null;const _0x34ec47=_0x1264e7['get'](_0x23c52c)(_0x23c52c,_0x251fd3,_0x2e79ad['get'](_0x23c52c),_0x2e79ad['get'](_0x251fd3));if(!_0x34ec47)return null;return _0x1264e7['get'](_0x251fd3)(_0x23c52c,_0x251fd3,_0x2e79ad['get'](_0x23c52c),_0x2e79ad['get'](_0x251fd3))?_0x34ec47[0x1]['commentThread']&&_0x34ec47[0x1]['commentThread']['length']?null:_0x34ec47:null;}_0x279f22['size']&&this['_refreshSuggestionsChain'](_0x279f22);}['_refreshAttributeSuggestionsChain'](_0x46bd87){if(0x0==_0x46bd87['length'])return;const _0x32449c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x496f2e=>'attribute'==_0x496f2e['type']&&_0x496f2e['_isDataLoaded']),_0x35fcb8=[],_0x18eda0=new Map();for(const _0x17ec02 of _0x32449c){const _0x3ce7b8=_0xac6d13(_0x17ec02['attributes']);_0x18eda0['has'](_0x3ce7b8)||(_0x18eda0['set'](_0x3ce7b8,_0x35fcb8['length']),_0x35fcb8['push']([]));const _0x4b90df=_0x18eda0['get'](_0x3ce7b8);_0x35fcb8[_0x4b90df]['push'](_0x17ec02);}!(function(){_0x35fcb8['sort']((_0x117e58,_0x3bbba6)=>{const _0x1172ee=_0x117e58[0x0]['createdAt'],_0x18ec4e=_0x3bbba6[0x0]['createdAt'];return _0x1172ee==_0x18ec4e?_0x117e58[0x0]['attributes']['groupId']<_0x3bbba6[0x0]['attributes']['groupId']?-0x1:0x1:_0x1172ee<_0x18ec4e?-0x1:0x1;});for(const _0x4a0f08 of _0x35fcb8)_0x4a0f08['sort']((_0x21bf4e,_0x1cef75)=>_0x21bf4e['id']<_0x1cef75['id']?-0x1:0x1);}());for(let _0x5b6daf=0x0;_0x5b6daf<_0x35fcb8['length'];_0x5b6daf++){if(0x0==_0x35fcb8[_0x5b6daf]['length'])continue;const _0x51d8ba=[];for(let _0x32317e=_0x5b6daf+0x1;_0x32317e<_0x35fcb8['length'];_0x32317e++)0x0!=_0x35fcb8[_0x32317e]['length']&&_0xce90d0(_0x35fcb8[_0x5b6daf],_0x35fcb8[_0x32317e])&&_0x51d8ba['push'](_0x32317e);for(const _0x21dfdb of _0x51d8ba)_0x35fcb8[_0x5b6daf]=_0x35fcb8[_0x5b6daf]['concat'](_0x35fcb8[_0x21dfdb]),_0x35fcb8[_0x21dfdb]=[];}for(const _0x2f04ee of _0x35fcb8)for(let _0x1487fc=0x0;_0x1487fc<_0x2f04ee['length'];_0x1487fc++){const _0x1b8b70=_0x2f04ee[_0x1487fc+0x1]||null;_0x2f04ee[_0x1487fc]['next']!==_0x1b8b70&&(_0x2f04ee[_0x1487fc]['next']=_0x1b8b70);}for(const _0x3cb872 of _0x35fcb8)for(let _0x26d343=0x0;_0x26d343<_0x3cb872['length'];_0x26d343++){const _0x2edd75=_0x3cb872[_0x26d343-0x1]||null;_0x3cb872[_0x26d343]['previous']!==_0x2edd75&&(_0x3cb872[_0x26d343]['previous']=_0x2edd75);}function _0xce90d0(_0x4fcba9,_0xc64f67){if(_0x4fcba9[0x0]['attributes']['groupId']!==_0xc64f67[0x0]['attributes']['groupId']&&_0x4fcba9[0x0]['author']!==_0xc64f67[0x0]['author'])return!0x1;if(!function(_0x17d720,_0x481346){if(!_0x17d720['hasComments']&&!_0x481346['hasComments'])return!0x0;if(_0x17d720['hasComments']&&_0x481346['hasComments'])return!0x1;if(_0x17d720['hasComments']&&_0x481346['createdAt']<_0x17d720['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x481346['hasComments']&&_0x17d720['createdAt']<_0x481346['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4fcba9[0x0],_0xc64f67[0x0]))return!0x1;const _0x115be7=Ft(_0x4fcba9[0x0]['attributes'],['groupId','trackingSessionId']),_0x30e63f=Ft(_0xc64f67[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x511cf6(_0x115be7,_0x30e63f))return!0x1;if(_0x4fcba9[0x0]['attributes']['groupId']==_0xc64f67[0x0]['attributes']['groupId'])return!0x0;if(_0x4fcba9[0x0]['attributes']['trackingSessionId']!==_0xc64f67[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4fcba9['every'](_0x101f70=>_0xc64f67['some'](_0x47b6a2=>_0x101f70['getFirstRange']()['isEqual'](_0x47b6a2['getFirstRange']())))&&_0xc64f67['every'](_0xa4830c=>_0x4fcba9['some'](_0x3c1580=>_0xa4830c['getFirstRange']()['isEqual'](_0x3c1580['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3c2008){const _0xe91bb4=Array['from'](_0x3c2008),_0x1b563b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x59f00f=_0x1b563b['filter'](_0x24bfae=>!_0x3c2008['has'](_0x24bfae)),_0x3ec92c=new Map(_0xe91bb4['map'](_0x35d66c=>[_0x35d66c,this['_suggestionFactory']['getSuggestionCallback'](_0x35d66c['type'],_0x35d66c['subType'],'join')])),_0x2db60e=new Map(_0x1b563b['map'](_0x2fa527=>[_0x2fa527,_0x2fa527['getRanges']()]));for(let _0x38de29=0x0;_0x38de29<_0xe91bb4['length'];_0x38de29++){if(_0x197c4a(this,_0xe91bb4[_0x38de29],_0xe91bb4,_0x38de29+0x1))return!0x0;}for(let _0x469e6e=0x0;_0x469e6e<_0xe91bb4['length'];_0x469e6e++){if(_0x197c4a(this,_0xe91bb4[_0x469e6e],_0x59f00f,0x0))return!0x0;}return!0x1;function _0x197c4a(_0x4a5d78,_0x140fa7,_0x228324,_0x5cda75){for(let _0x3619fc=_0x5cda75;_0x3619fc<_0x228324['length'];_0x3619fc++){const _0x429140=_0x228324[_0x3619fc];if(_0x429140['type']!==_0x140fa7['type']||_0x429140['author']['id']!==_0x140fa7['author']['id']||_0x429140['subType']!==_0x140fa7['subType'])continue;if(!Qt(_0x140fa7,_0x429140))continue;if('attribute'==_0x140fa7['type']&&_0x140fa7['data']['oldValue']!=_0x429140['data']['oldValue'])continue;if('attribute'==_0x140fa7['type']&&_0x4a5d78['_isBlockAttribute'](_0x140fa7['data']['key']))continue;if('formatBlock'==_0x140fa7['type']){const _0x43c935=_0x4a5d78['editor']['model'],_0x4d536e=_0x140fa7['getContainedElement']();if(_0x4d536e&&(_0x43c935['schema']['isObject'](_0x4d536e)||_0x43c935['schema']['isLimit'](_0x4d536e)))continue;}const _0x3497c7=_0x3ec92c['get'](_0x140fa7),_0x16becf=_0x2db60e['get'](_0x140fa7),_0x100ec9=_0x2db60e['get'](_0x429140),_0x30c03f=_0x140fa7['commentThread']&&_0x140fa7['commentThread']['length'],_0x3b7ab8=_0x429140['commentThread']&&_0x429140['commentThread']['length'];if(!_0x30c03f&&_0x3497c7(_0x100ec9,_0x16becf))return _0x4a5d78['_joinSuggestions'](_0x429140,_0x140fa7),_0x2db60e['delete'](_0x140fa7),!0x0;if(!_0x3b7ab8&&_0x3497c7(_0x16becf,_0x100ec9))return _0x4a5d78['_joinSuggestions'](_0x140fa7,_0x429140),_0x2db60e['delete'](_0x429140),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4fe297,_0x3be9b3){if(_0x4fe297['isMultiRange']){for(const _0x3a17d5 of _0x3be9b3['getRanges']())_0x4fe297['addRange'](_0x3a17d5);}else{const _0x2c5fb3=_0x3be9b3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4fe297,this['_model']['createRange'](_0x4fe297['getFirstRange']()['start'],_0x2c5fb3));}_0x3be9b3['removeMarkers']();}['_getMarkerAnnouncementText'](_0xa5013c,_0x165310,_0x5f427d){const _0xa03faf=_0xa5013c['startsWith']('format')||_0xa5013c['startsWith']('attribute')?'FORMATTING':_0xa5013c['toUpperCase']();return c(this['editor']['locale'],_0x165310+'_'+_0xa03faf+'_SUGGESTION_ANNOUNCEMENT',_0x5f427d);}['_initAriaMarkerChangeAnnouncements'](){const _0x5a1e64=this['editor'];if(!_0x5a1e64['ui'])return;const {ariaLiveAnnouncer:_0x2e3b43}=_0x5a1e64['ui'];_0x4c0d16(this['_model'],({left:_0xe57762,entered:_0x4c3d08})=>{for(const _0x4708a5 of _0xe57762){const {group:_0x589e24,type:_0x53fb83}=this['_splitMarkerName'](_0x4708a5['name']);if('suggestion'===_0x589e24){_0x2e3b43['announce'](this['_getMarkerAnnouncementText'](_0x53fb83,'LEAVE'));break;}}for(const _0x12976b of _0x4c3d08){const {group:_0x46a0b6,type:_0xe24257}=this['_splitMarkerName'](_0x12976b['name']);if('suggestion'===_0x46a0b6){_0x2e3b43['announce'](this['_getMarkerAnnouncementText'](_0xe24257,'ENTER',_0x98b6d3(_0x54f72d)));break;}}});}['_processAttributeChanges'](_0x466ba3){if(this['_recordAttributeSuggestions'])return!0x1;const _0x57fc71=this['editor'],_0x43f733=_0x57fc71['model']['document']['differ']['getChanges']();if(0x0==_0x43f733['length'])return!0x1;const _0x37efed=[],_0x92fe0c=_0x43f733['filter'](_0x2b4efa=>'attribute'==_0x2b4efa['type']),_0x1c07e6=_0x43f733['filter'](_0x21cce9=>'insert'==_0x21cce9['type']&&'$text'!=_0x21cce9['name']),_0x5ef1a3=_0x43f733['filter'](_0x4b6801=>'remove'==_0x4b6801['type']&&'$text'!=_0x4b6801['name']);for(const _0xe58cb4 of _0x92fe0c)_0x37efed['push']({'key':_0xe58cb4['attributeKey'],'newValue':_0xe58cb4['attributeNewValue'],'oldValue':_0xe58cb4['attributeOldValue'],'range':qt(_0xe58cb4['range'],_0x57fc71['model'])});for(const _0xc96013 of _0x1c07e6){const _0x59a6ef=_0x5ef1a3['find'](_0x111bfd=>_0x111bfd['position']['isEqual'](_0xc96013['position']));_0x59a6ef&&_0x37efed['push']({'key':u,'newValue':_0xc96013['name'],'oldValue':_0x59a6ef['name'],'range':_0x57fc71['model']['createRangeOn'](_0xc96013['position']['nodeAfter'])});}return 0x0!=_0x37efed['length']&&this['_reduceExistingSuggestions'](_0x466ba3,_0x37efed);}['_processAttributeSuggestions'](_0x38271f){let _0x42fc25=!0x1;const _0x12b48a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2f31d2=>_0x2f31d2['data']['newRange']&&_0x2f31d2['name']['startsWith']('suggestion:attribute:'));for(const _0x56a7c6 of _0x12b48a){const {subType:_0x549839,id:_0x375978}=this['_splitMarkerName'](_0x56a7c6['name']),_0x162424=_0x549839['split']('|')[0x0];for(const _0x159383 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x159383['id']!=_0x375978&&'attribute'==_0x159383['type']&&_0x159383['data']&&_0x159383['data']['key']==_0x162424&&_0x159383['getFirstRange']()['isIntersecting'](_0x56a7c6['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x159383,_0x56a7c6['data']['newRange'],_0x38271f),_0x42fc25=!0x0);}return _0x42fc25;}['_recordAttributeChanges'](_0x1f6869){this['_recordAttributeSuggestions']=!0x0,_0x1f6869();}['_isRegisteredAttribute'](_0x18e1f6){const _0x498ddd=this['_isBlockAttribute'](_0x18e1f6),_0x435e52=this['_inlineAttributeKeys']['has'](_0x18e1f6);return _0x498ddd||_0x435e52;}['_reduceExistingSuggestions'](_0x4e352e,_0x3810f1){if(0x0==_0x3810f1['length'])return!0x1;let _0x27b5ef=!0x1;for(const _0xc8c137 of _0x3810f1){const _0x169c98=this['_findSuggestions'](_0xc8c137['range'],'attribute')['filter'](_0x55e4ad=>!_0x55e4ad['meta']['isNextTo'])['map'](_0x376be0=>_0x376be0['suggestion']),_0x424c7d=_0xac6d13({'newValue':_0xc8c137['newValue']});_0x169c98['filter'](_0xfdcb72=>{const [_0x274327,_0x581e1f]=_0xfdcb72['subType']['split']('|');return _0x274327==_0xc8c137['key']&&_0x581e1f!=_0x424c7d;})['forEach'](_0x18e8b2=>{this['_reduceSuggestionAttributeRange'](_0x18e8b2,_0xc8c137['range'],_0x4e352e),_0x27b5ef=!0x0;});}return _0x27b5ef;}['_reduceSuggestionAttributeRange'](_0x78ddd2,_0xd463cf,_0x1ffec2){const _0x1db988=_0x78ddd2['getFirstRange']()['getDifference'](_0xd463cf);0x0!==_0x1db988['length']?0x1!==_0x1db988['length']?this['_breakSuggestionMarker'](_0x78ddd2,_0xd463cf['start'],_0xd463cf['end']):this['_setSuggestionRange'](_0x78ddd2,_0x1db988[0x0]):_0x1ffec2['removeMarker'](_0x78ddd2['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x285f05){this['_editor']=_0x285f05,this['_model']=_0x285f05['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x44fd4a,_0x2fa2e1,_0x2b7aa7,_0x4d98aa,_0x203702,_0x470dbe){return new o(this['_model'],{'type':_0x44fd4a,'subType':_0x2fa2e1,'id':_0x2b7aa7,'author':_0x4d98aa,'creator':_0x4d98aa,'attributes':_0x203702,'onAttributesChange':_0x470dbe,'onAccept':(..._0x4b762e)=>this['getSuggestionCallback'](_0x44fd4a,_0x2fa2e1,'accept')(..._0x4b762e),'onDiscard':(..._0x325c12)=>this['getSuggestionCallback'](_0x44fd4a,_0x2fa2e1,'discard')(..._0x325c12)});}['registerCustomCallback'](_0x54b559,_0x4ae763,_0x5b5148,_0x9ed09e){const _0x22bc72=_0x54b559+':'+_0x4ae763+':'+_0x5b5148;this['_customCallbacks']['set'](_0x22bc72,_0x9ed09e);}['getSuggestionCallback'](_0x4a9a83,_0xc2c66e,_0x337338){const _0x1ac50b=_0x4a9a83+':'+_0xc2c66e+':'+_0x337338;return this['_customCallbacks']['get'](_0x1ac50b)||this['_defaultCallbacks']['get'](_0x4a9a83+':'+_0x337338);}['_registerDefaultCallbacks'](){const _0x3a9615=()=>!0x1,_0x2cce3b=_0x2d0487=>{_0x2d0487['sort']((_0x33a24f,_0x22da8b)=>_0x33a24f['start']['isBefore'](_0x22da8b['start'])?0x1:-0x1),this['_model']['change'](_0x437d82=>{for(const _0x17da38 of _0x2d0487){let _0x644b7d;_0x644b7d=_0x17da38['end']['isAtEnd']&&_0x17da38['end']['parent']==_0x17da38['start']['nodeAfter']?_0x437d82['createSelection'](_0x17da38['start']['nodeAfter'],'on'):_0x437d82['createSelection'](_0x17da38),this['_model']['deleteContent'](_0x644b7d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x164ad0=(_0x1bcac2,_0x453e23)=>{_0x453e23&&this['_model']['change'](_0x59d4bb=>{const {commandName:_0x189956,commandParams:_0x55da2a=[]}=_0x453e23,_0x3ace85=_0x1bcac2['map'](_0x697273=>(Lt(_0x697273)&&(_0x697273=this['_model']['createRange'](_0x697273['end'])),_0x697273))['filter'](_0x1b3e2a=>'$graveyard'!==_0x1b3e2a['root']['rootName']);if(_0x3ace85['length']<0x1)return;const _0x436b4d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x542312=>_0x41f0a3['fromRange'](_0x542312));_0x59d4bb['setSelection'](_0x3ace85);for(const _0x3b8a45 of this['_editor']['commands']['commands']())_0x3b8a45['refresh']();_0x55da2a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x189956,..._0x55da2a);const _0x1edcc7=_0x436b4d['filter'](_0x2288a5=>'$graveyard'!=_0x2288a5['root']['rootName']);_0x1edcc7['length']>0x0&&_0x59d4bb['setSelection'](_0x1edcc7);for(const _0x2967aa of _0x436b4d)_0x2967aa['detach']();});},_0xdb6731=(_0x357cec,_0x1ea02e)=>0x1==_0x357cec['length']&&0x1==_0x1ea02e['length']&&_0x357cec[0x0]['end']['isEqual'](_0x1ea02e[0x0]['start']),_0x5a3f96=(_0x35b0bb,_0x3ffb0e,_0x3fdebd,_0xf3b5d4)=>Wt(_0x35b0bb,_0x3ffb0e,_0x3fdebd,_0xf3b5d4)?[_0x35b0bb,_0x3ffb0e]:Wt(_0x3ffb0e,_0x35b0bb,_0xf3b5d4,_0x3fdebd)?[_0x3ffb0e,_0x35b0bb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3a9615),this['_defaultCallbacks']['set']('insertion:discard',_0x2cce3b),this['_defaultCallbacks']['set']('insertion:join',_0xdb6731),this['_defaultCallbacks']['set']('insertion:chain',_0x5a3f96),this['_defaultCallbacks']['set']('deletion:accept',_0x2cce3b),this['_defaultCallbacks']['set']('deletion:discard',_0x3a9615),this['_defaultCallbacks']['set']('deletion:join',_0xdb6731),this['_defaultCallbacks']['set']('deletion:chain',_0x5a3f96),this['_defaultCallbacks']['set']('formatInline:accept',_0x164ad0),this['_defaultCallbacks']['set']('formatInline:discard',_0x3a9615),this['_defaultCallbacks']['set']('formatInline:join',_0xdb6731),this['_defaultCallbacks']['set']('formatInline:chain',_0x3a9615),this['_defaultCallbacks']['set']('formatBlock:accept',_0x164ad0),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3a9615),this['_defaultCallbacks']['set']('formatBlock:join',_0xdb6731),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3a9615),this['_defaultCallbacks']['set']('attribute:accept',_0x3a9615),this['_defaultCallbacks']['set']('attribute:discard',(_0x4ac0dc,_0x3e563b)=>{if(!_0x3e563b)return;const _0x5935c5=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x383be2=>{if(_0x3e563b['key']==u)for(const _0x33184f of _0x4ac0dc){const _0x2dfea5=_0x33184f['start']['nodeAfter'],_0x29cdf4=_0x3e563b['oldValue'];_0x383be2['rename'](_0x2dfea5,_0x29cdf4);}else{if(_0x5935c5['_isBlockAttribute'](_0x3e563b['key'])){for(const _0x146d7e of _0x4ac0dc)void 0x0!==_0x3e563b['oldValue']?_0x383be2['setAttribute'](_0x3e563b['key'],_0x3e563b['oldValue'],_0x146d7e['start']['nodeAfter']):_0x383be2['removeAttribute'](_0x3e563b['key'],_0x146d7e['start']['nodeAfter']);}else{for(const _0x24051e of _0x4ac0dc)_0x3e563b['oldValue']?_0x383be2['setAttribute'](_0x3e563b['key'],_0x3e563b['oldValue'],_0x24051e):_0x383be2['removeAttribute'](_0x3e563b['key'],_0x24051e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xdb6731);}}function Gt(_0x196bb0,_0x13953c,_0x20f58a){for(const _0x4f5832 of _0x13953c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4f5832['root']==_0x4f5832)return!0x1;if(!_0x20f58a['containsItem'](_0x4f5832))return!0x1;if(_0x196bb0['isObject'](_0x4f5832)||_0x196bb0['isLimit'](_0x4f5832))return!0x0;}return!0x1;}function Lt(_0x2971f4){return _0x2971f4['end']['parent']==_0x2971f4['start']['nodeAfter']&&_0x2971f4['end']['isAtStart'];}function Jt(_0x2b2e06,_0x14b27e,_0x453b99,_0x2d3480){const _0xbb6ca8=_0x4022f4=>!_0x4022f4['item']['is']('$textProxy')&&!_0x2d3480['isObject'](_0x4022f4['item']),_0x395eaf=_0x2b2e06['start']['getLastMatchingPosition'](_0xbb6ca8),_0x4d4560=_0x2b2e06['end']['getLastMatchingPosition'](_0xbb6ca8,{'direction':'backward'});return(!_0x2b2e06['start']['isEqual'](_0x395eaf)||!_0x2b2e06['end']['isEqual'](_0x4d4560))&&(_0x395eaf['isBefore'](_0x4d4560)?_0x453b99['updateMarker'](_0x14b27e,{'range':_0x453b99['createRange'](_0x395eaf,_0x4d4560)}):_0x453b99['removeMarker'](_0x14b27e),!0x0);}function Kt(_0x333c85){return _0xac6d13(_0x333c85);}function Ht(_0x23702b){const _0x5784dc=_0x23702b['start']['nodeAfter'];return _0x5784dc&&_0x5784dc['is']('element');}function qt(_0x2a952a,_0x45899a){return null==_0x2a952a['end']['nodeBefore']&&_0x2a952a['end']['parent']==_0x2a952a['start']['nodeAfter']?zt(_0x2a952a['start']['nodeAfter'],_0x45899a):_0x2a952a;}function zt(_0x2d3b6b,_0x4450f2){const _0x2a0d82=_0x4450f2['schema']['isObject'](_0x2d3b6b)||_0x4450f2['schema']['isSelectable'](_0x2d3b6b);return _0x4450f2['createRange'](_0x4450f2['createPositionAt'](_0x2d3b6b,'before'),_0x2a0d82?_0x4450f2['createPositionAfter'](_0x2d3b6b):_0x4450f2['createPositionAt'](_0x2d3b6b,'end'));}function Wt(_0x40987e,_0x3e5afb,_0x1f96f9,_0xace44e){return!!Qt(_0x40987e,_0x3e5afb)&&_0x1f96f9['end']['isEqual'](_0xace44e['start']);}function Qt(_0x1abc21,_0x38050b){if(!_0x1abc21['_isDataLoaded']||!_0x38050b['_isDataLoaded'])return!0x1;const _0x50df85=new Set(Object['keys'](_0x1abc21['attributes'])),_0x582b1b=new Set(Object['keys'](_0x38050b['attributes']));if(_0x50df85['delete']('groupId'),_0x582b1b['delete']('groupId'),0x0==_0x50df85['size']&&0x0==_0x582b1b['size'])return!0x0;if(_0x50df85['size']!=_0x582b1b['size'])return!0x1;const _0x56c59e={..._0x1abc21['attributes']},_0x2115a2={..._0x38050b['attributes']};return delete _0x56c59e['groupId'],delete _0x2115a2['groupId'],JSON['stringify'](_0x56c59e)==JSON['stringify'](_0x2115a2);}function Xt(_0x3041af,_0x50953b){const _0x26ecce=Yt(_0x3041af['attributes']),_0x4b1dca=Yt(_0x50953b);if(!_0x3041af['_isDataLoaded'])return!0x1;for(const _0x4d5331 of Object['keys'](_0x4b1dca))if(!_0x511cf6(_0x26ecce[_0x4d5331],_0x4b1dca[_0x4d5331]))return!0x1;return!0x0;}function Yt(_0x26d8d2){const _0x1ff6fb=Object['assign']({},_0x26d8d2);return delete _0x1ff6fb['skipNestingCheck'],delete _0x1ff6fb['tablePasteChainId'],_0x1ff6fb;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5651e5(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3a7f55,_0x2cf61c,_0x12dbbd,_0x3e6ff0){super(),this['model']=_0x2cf61c,this['view']=_0x12dbbd,this['commentThreadController']=_0x3e6ff0,this['_editor']=_0x3a7f55,this['_acceptCommand']=_0x3a7f55['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3a7f55['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x7990a5,_0xccb19a)=>_0x7990a5||_0xccb19a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x128212=>_0x128212&&this['_editor']['model']['canEditAt'](_0x2cf61c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x581f4e=>_0x581f4e&&this['_editor']['model']['canEditAt'](_0x2cf61c['getRanges']())),this['_pendingAction']=null,_0x12dbbd['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x12dbbd,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x12dbbd,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x12dbbd,'change:isDirty',()=>{_0x12dbbd['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 _0x140b1e=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x140b1e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x32d33a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4f763d,_0x4a0e56,_0x42f477,_0x4f5bc5){super(_0x4f763d),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5b4f7d(_0x4f763d,c(_0x4f763d,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4a0e56['authoredAt']),this['bind']('authoredAt')['to'](_0x4a0e56),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',_0x4a0e56,'authoredAt',this,'descriptionParts',(_0x3dd0c6,_0x5ceaf0,_0x1dd449)=>{const _0x2c7def=_0x1dd449['map'](_0x4e5b60=>ls(_0x4e5b60['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3dd0c6-0x1,_0x4a0e56['author']['name'],_0x5ceaf0?_0x4f5bc5['formatDateTime'](_0x5ceaf0):'',new DOMParser()['parseFromString'](_0x2c7def,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5129bd(),this['focusTracker']=new _0x48dea9(),this['keystrokes']=new _0x4fa3ff(),this['focusCycler']=new _0x5358bc({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x42138e=>_0x42138e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4a0e56,this['_localUser']=_0x42f477,this['_config']=_0x4f5bc5,_0x4f5bc5['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x21440b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x540d5d}=this['_config'];this['commentsListView']=new _0x540d5d(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',_0x3cc954=>_0x3cc954+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x18ec1d,_0x1884fe)=>_0x18ec1d||!!_0x1884fe);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2f6ea3}=this['_config'],_0x251252=new _0x2f6ea3(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3336c3=_0x251252['commentInputView'];return _0x251252['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3336c3,'value',(_0x4b62d6,_0x249119,_0x23ad2c)=>!!_0x23ad2c||_0x4b62d6&&!_0x249119),_0x3336c3['on']('submit',(_0x1d6862,_0x578051)=>{this['fire']('addComment',_0x578051),_0x3336c3['editor']['setData']('');}),_0x3336c3['on']('cancel',()=>this['focus']()),_0x3336c3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x251252;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x17eb13,_0x1ac441,_0x11b0f7,_0x4d382d){super(_0x17eb13,_0x1ac441,_0x11b0f7,_0x4d382d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x482ffd=>_0x482ffd&&_0x482ffd[0x0]?_0x482ffd[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x21cd1a,_0x93da75)=>{let _0x45e35d='';for(const _0x204acd of _0x21cd1a)_0x45e35d+='<p>'+ls(_0x204acd['content'],_0x204acd['color'])+'</p>';return _0x93da75?_0x45e35d:ti(_0x45e35d,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4d382d['SuggestionView'](_0x17eb13,_0x1ac441,{'formatDateTime':_0x4d382d['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 _0x343435=this['bindTemplate'],_0x5b961e=[this['suggestionView']];return this['commentsListView']&&_0x5b961e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5b961e['push'](this['commentThreadInputView']),_0x5b961e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x343435['if']('isActive','ck-suggestion-wrapper--active'),_0x343435['to']('type',_0x1fd11f=>'ck-suggestion-'+_0x1fd11f),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':_0x343435['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5b961e};}['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 _0x32d33a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x12938c,_0x21cb92,_0x24dca9){super(_0x12938c),this['_model']=_0x21cb92,this['_config']=_0x24dca9,this['set']('description',''),this['bind']('authoredAt')['to'](_0x21cb92),this['acceptButton']=this['_createButton'](c(_0x12938c,'Accept\x20suggestion'),_0x57ee3a,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x12938c,'Discard\x20suggestion'),_0x5cef2e,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5d6d0c(_0x12938c,_0x21cb92['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5129bd([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x48dea9(),this['keystrokes']=new _0x4fa3ff(),this['focusCycler']=new _0x5358bc({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x31ef0d=>_0x31ef0d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x94cb43=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x94cb43['innerHTML']=this['description'],this['on']('change:description',(_0x463c10,_0x2da629,_0x3fdcf3)=>{_0x94cb43['innerHTML']=_0x3fdcf3;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x325626=this['bindTemplate'],_0x4a60ee=[{'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':_0x325626['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x325626['to']('authoredAt',_0x2af0c2=>this['_config']['formatDateTime'](_0x2af0c2))}]}]},{'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']&&_0x4a60ee['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':_0x4a60ee}]};}['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'](_0x5f1df2,_0x233234,_0x3c0462,_0x21a881,_0x4ffaf7){const _0x5a2980=new _0x27f3f4(this['locale']);return _0x5a2980['set']({'label':_0x5f1df2,'icon':_0x233234,'tooltip':!0x0,'tooltipPosition':_0x4ffaf7}),_0x5a2980['extendTemplate']({'attributes':{'class':_0x3c0462}}),_0x5a2980['on']('execute',()=>{this['fire'](_0x21a881,this['_model']['id']);}),_0x5a2980;}['_setupKeyboardNavigation'](){const _0x46a08d=this['element'];this['keystrokes']['listenTo'](_0x46a08d);for(const _0x579f2f of this['focusables'])this['focusTracker']['add'](_0x579f2f['element']),this['keystrokes']['listenTo'](_0x579f2f['element']);this['keystrokes']['set']('enter',(_0x5bca4c,_0x21f603)=>{_0x46a08d===_0x5bca4c['target']&&(this['focusCycler']['focusFirst'](),_0x21f603());}),this['keystrokes']['set']('esc',(_0x333ffa,_0x17ac75)=>{_0x46a08d!==_0x333ffa['target']&&(this['focus'](),_0x17ac75());});}}class d extends _0x1f2d8e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1bf6a0,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x61f83b){super(_0x61f83b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3ad291=this['editor']['config'];_0x3ad291['define']('trackChanges.SuggestionThreadView',fe),_0x3ad291['define']('trackChanges.SuggestionView',we),_0x3ad291['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3ad291['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x158ff5,_0x10b410){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x23d88c,_0x12fd9a]of this['_handleControllerBuffer']){const _0x8a7e4c=this['_suggestionToController']['has'](_0x23d88c);_0x8a7e4c||_0x12fd9a?_0x8a7e4c&&_0x12fd9a&&this['_destroyController'](_0x23d88c):this['_initializeController'](_0x23d88c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x158ff5,_0x10b410);}['init'](){const _0x534dde=this['editor'],_0x131c01=_0x534dde['plugins']['get']('TrackChangesEditing'),_0x45993b=_0x534dde['plugins']['get']('Annotations'),_0x34e351=_0x534dde['plugins']['get']('EditorAnnotations'),_0x43eeba=_0x534dde['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x34e351['addSourceCollector'](()=>{const _0xde2da0=[];for(const [_0x5834a2,_0x249010]of Array['from'](this['_suggestionToController'])){const _0x59b0b0=_0x5834a2['getAllAdjacentSuggestions'](),_0x649ce0=[];for(const _0x2b7929 of _0x59b0b0){if(!_0x2b7929['isInContent'])continue;if(_0x2b7929['isMultiRange']){_0x649ce0['push'](..._0x2b7929['getRanges']());continue;}const _0x245de7=_0x2b7929['getFirstRange']();if(_0x649ce0['length']>0x0){const _0x521c7d=_0x649ce0[0x0]['getJoined'](_0x245de7);if(_0x521c7d){_0x649ce0[0x0]=_0x521c7d;continue;}}_0x649ce0['push'](_0x245de7);}_0xde2da0['push']([_0x249010['view'],_0x649ce0]);}return _0xde2da0;}),this['listenTo'](_0x131c01,'suggestionLoaded',(_0x50296e,_0x320834)=>{this['listenTo'](_0x320834,'change:previous',(_0xd4b59e,_0x3661a9,_0x156ca3,_0x55c0a9)=>{_0x320834['isInContent']&&(null==_0x156ca3?(this['_updateController'](_0x55c0a9['head']),this['_handleSuggestionControllerDelayed'](_0x320834,!0x1)):(this['_updateController'](_0x156ca3['head']),null==_0x55c0a9&&this['_handleSuggestionControllerDelayed'](_0x320834,!0x0)));}),null!==_0x320834['previous']?this['_updateController'](_0x320834['head']):this['_handleSuggestionControllerDelayed'](_0x320834,!0x1);}),this['listenTo'](_0x131c01,'suggestionUnloaded',(_0x48db2a,_0x166e41,_0x57c535)=>{this['stopListening'](_0x166e41,'change:previous'),this['_handleControllerBuffer']['delete'](_0x166e41),this['_suggestionToController']['has'](_0x166e41)&&this['_destroyController'](_0x166e41),_0x57c535&&this['_updateController'](_0x57c535['head']);}),this['listenTo'](_0x131c01,'suggestionChanged',(_0x223d14,_0x1f93df)=>{this['_updateController'](_0x1f93df);}),this['listenTo'](_0x45993b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x43eeba,'addComment',(_0x1131f1,{threadId:_0x1844d0,isFromAdapter:_0x4690fc})=>{if(_0x4690fc||!_0x131c01['hasSuggestion'](_0x1844d0))return;const _0x2dc707=_0x131c01['getSuggestion'](_0x1844d0);this['_suggestionToController']['get'](_0x2dc707)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x322bc7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xbd24e8;for(const _0x37500f in _0x322bc7){const _0x57d4ed=_0x37500f,_0x3bf35e=_0x322bc7[_0x57d4ed];if('trackChangesLicenseKeyValid'==_0x3bf35e||'trackChangesLicenseKeyInvalid'==_0x3bf35e||'trackChangesLicenseKeyExpired'==_0x3bf35e||'trackChangesLicenseKeyDomainLimit'==_0x3bf35e||'trackChangesLicenseKeyNotAllowed'==_0x3bf35e||'trackChangesLicenseKeyEvaluationLimit'==_0x3bf35e||'trackChangesLicenseKeyTrialLimit'==_0x3bf35e||'trackChangesLicenseKeyUsageLimit'==_0x3bf35e){delete _0x322bc7[_0x57d4ed],_0xbd24e8=_0x3bf35e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xbd24e8&&_0x322bc7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xbd24e8&&_0x322bc7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xbd24e8&&_0x322bc7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xbd24e8&&_0x322bc7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xbd24e8&&_0x322bc7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xbd24e8&&_0x322bc7['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xbd24e8&&_0x322bc7['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x462ba0=this['editor']['plugins']['get']('Annotations'),_0x3917e9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18170f=Array['from'](_0x462ba0['activeAnnotations'],_0x2f9450=>_0x2f9450['innerView'])['filter'](_0x96a228=>this['_viewToController']['has'](_0x96a228)),_0x460e6b=[];for(const _0x120eb7 of _0x18170f){const _0x32f48b=this['_viewToController']['get'](_0x120eb7)['model']['getAllAdjacentSuggestions']();_0x460e6b['push'](..._0x32f48b['reduce']((_0x348f2c,_0x4d6b6a)=>[..._0x348f2c,..._0x4d6b6a['getMarkerNames']()],[]));}_0x3917e9['activeMarkers']=_0x460e6b;}['_addUIComponentsToFactory'](){const _0x2181bb=this['editor'],_0x24f786=_0x2181bb['locale'],_0x3ac6c6=c(_0x24f786,'Track\x20changes'),_0x2fc832=new _0x55e1d1([{'type':'switchbutton','model':new _0x464a84({'withText':!0x0,'isToggleable':!0x0,'label':_0x3ac6c6,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x464a84({'withText':!0x0,'label':c(_0x24f786,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x464a84({'withText':!0x0,'label':c(_0x24f786,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x464a84({'withText':!0x0,'label':c(_0x24f786,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x464a84({'withText':!0x0,'label':c(_0x24f786,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2181bb['plugins']['has']('TrackChangesPreview')&&_0x2fc832['addMany']([{'type':'separator'},{'type':'button','model':new _0x464a84({'withText':!0x0,'label':c(_0x24f786,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x270c42 of _0x2fc832)if(ke(_0x270c42)){const _0x4a9b35=_0x2181bb['commands']['get'](_0x270c42['model']['commandName']);_0x270c42['model']['bind']('isOn','isEnabled')['to'](_0x4a9b35,'value','isEnabled');}_0x2181bb['ui']['componentFactory']['add']('trackChanges',_0x381993=>this['_createToolbarButton'](_0x381993,_0x2fc832,_0x3ac6c6)),_0x2181bb['ui']['componentFactory']['add']('menuBar:trackChanges',_0x508a42=>this['_createMenuBarMenu'](_0x508a42,_0x2fc832,_0x3ac6c6));}['_createToolbarButton'](_0x1cdbf9,_0xa9f07,_0x158e25){const _0x418aef=_0x436f69(_0x1cdbf9,_0x13941c),_0x2efe10=this['editor']['commands']['get']('trackChanges');_0x418aef['buttonView']['set']({'tooltip':_0x158e25,'label':_0x158e25,'icon':_0x3d1630}),_0x418aef['buttonView']['bind']('isOn')['to'](_0x2efe10,'value'),_0x418aef['buttonView']['on']('execute',()=>{_0x2efe10['execute'](),this['editor']['editing']['view']['focus']();}),_0x83a458(_0x418aef,_0xa9f07,{'role':'menu'});const _0x120dc5=[];for(const _0x367afd of _0xa9f07)ke(_0x367afd)&&_0x120dc5['push'](this['editor']['commands']['get'](_0x367afd['model']['commandName']));const _0x380aff=_0x418aef['buttonView'];return _0x380aff['actionView']['unbind']('isEnabled'),_0x380aff['arrowView']['unbind']('isEnabled'),_0x380aff['actionView']['bind']('isEnabled')['to'](_0x2efe10,'isEnabled'),_0x380aff['arrowView']['bind']('isEnabled')['toMany'](_0x120dc5,'isEnabled',(..._0x479bb1)=>_0x479bb1['some'](_0x5e3a36=>_0x5e3a36)),_0x418aef['on']('execute',_0x12971a=>{this['editor']['execute'](_0x12971a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x418aef;}['_createMenuBarMenu'](_0x2f2279,_0x4b7bd9,_0x324555){const _0x117074=new _0x1da52a(_0x2f2279),_0x56b5f6=this['editor']['commands']['get']('trackChanges');_0x117074['buttonView']['set']({'label':_0x324555,'icon':_0x3d1630});const _0x40c4b0=new _0x3179db(_0x2f2279);for(const _0x41d10e of _0x4b7bd9){if('separator'==_0x41d10e['type']){_0x40c4b0['items']['add'](new _0x42ba10(_0x2f2279));continue;}const _0x14a464=new _0x101db4(_0x2f2279,_0x117074),_0x191807=new _0x137d18(_0x2f2279),_0x72d73b=_0x41d10e['model'];_0x191807['bind'](...Object['keys'](_0x72d73b))['to'](_0x72d73b),_0x191807['delegate']('execute')['to'](_0x117074),_0x191807['on']('execute',()=>{this['editor']['execute'](_0x72d73b['commandName']),this['editor']['editing']['view']['focus']();}),_0x14a464['children']['add'](_0x191807),_0x40c4b0['items']['add'](_0x14a464);}return _0x117074['bind']('isEnabled')['to'](_0x56b5f6,'isEnabled'),_0x117074['panelView']['children']['add'](_0x40c4b0),_0x117074;}['_initializeController'](_0x3e7e88){const _0xae51ab=this['editor'],_0x27f518=_0xae51ab['config'],_0x4b1b67=_0xae51ab['plugins']['get']('Annotations'),_0x433238=_0xae51ab['plugins']['get']('CommentsRepository'),_0x273bca=_0xae51ab['plugins']['get']('EditorAnnotations'),_0x48b270=_0xae51ab['plugins']['get'](_0x1bf6a0)['me'],_0x2bb8e7=_0x27f518['get']('trackChanges')['SuggestionThreadView'],_0x2df5c7=_0x27f518['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x54a9ba,CommentThreadInputView:_0x96def7}=_0xae51ab['plugins']['get']('CommentsUI');let _0x5df4ed,_0x15c277,_0x942690;this['_annotationViews']['has'](_0x3e7e88['id'])?(_0x15c277=this['_annotationViews']['get'](_0x3e7e88['id']),_0x5df4ed=_0x15c277['mainView']):(_0x5df4ed=new _0x2bb8e7(_0xae51ab['locale'],_0x3e7e88,_0x48b270,{'disableComments':this['_disableComments'],'editorConfig':{..._0x27f518['get']('comments.editorConfig'),'licenseKey':_0x27f518['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x27f518['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x27f518['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x27f518['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3b7302(_0x27f518['get']('locale'),_0xae51ab['locale']),'CommentView':_0x27f518['get']('comments')['CommentView'],'CommentsListView':_0x54a9ba,'CommentThreadInputView':_0x96def7,'SuggestionView':_0x2df5c7}),_0x5df4ed['suggestionView']['acceptButton']['on']('execute',()=>{_0xae51ab['editing']['view']['focus']();}),_0x5df4ed['suggestionView']['discardButton']['on']('execute',()=>{_0xae51ab['editing']['view']['focus']();}),_0x15c277=_0x4b1b67['createAnnotationView'](this['editor']['locale'],_0x5df4ed),_0x15c277['bind']('isDirty')['to'](_0x5df4ed,'isDirty'),_0x15c277['bind']('length')['to'](_0x5df4ed),_0x15c277['bind']('type')['to'](_0x5df4ed,'type',_0x3fc88f=>'suggestion-'+_0x3fc88f),_0x5df4ed['on']('escape',()=>{_0x942690['fire']('escape');}),this['_annotationViews']['set'](_0x3e7e88['id'],_0x15c277));const _0x3e51ac=_0x433238['createCommentThreadController'](_0x3e7e88['commentThread'],_0x5df4ed),_0x1fe47c=new pe(_0xae51ab,_0x3e7e88,_0x5df4ed,_0x3e51ac),_0x2e9ee6=_0x3e7e88['getAllAdjacentSuggestions']()['filter'](_0x4cfd35=>_0x4cfd35['isInContent']);_0x5df4ed['descriptionParts']=_0xae51ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2e9ee6),this['_suggestionToController']['set'](_0x3e7e88,_0x1fe47c),this['_viewToController']['set'](_0x5df4ed,_0x1fe47c),_0x942690=_0x4b1b67['createAnnotation']({'view':_0x15c277,'target':()=>{const _0x36e3b4=[],_0x37a2de=_0x3e7e88['getAllAdjacentSuggestions']()['filter'](_0x3e43f1=>_0x3e43f1['isInContent']);for(const _0xd4b23f of _0x37a2de)_0x36e3b4['push'](..._0xd4b23f['getMarkers']());return _0x4eabe4(_0xae51ab['editing'],_0x36e3b4);},'type':()=>'suggestion-'+_0x1fe47c['view']['type']}),_0x433238['_bindAnnotationToEditors'](_0x5df4ed,_0x942690),_0x4b1b67['add'](_0x942690),_0x273bca['registerAnnotation'](_0x942690);}['_destroyController'](_0x5e7539){const _0x63ae7d=this['editor']['plugins']['get']('CommentsRepository'),_0x1bae39=this['editor']['plugins']['get']('Annotations'),_0x22eb09=this['_suggestionToController']['get'](_0x5e7539),_0x2fd58d=_0x22eb09['view'],_0x10a94f=_0x1bae39['getByInnerView'](_0x2fd58d);_0x63ae7d['_unbindEditors'](_0x2fd58d),_0x10a94f&&_0x1bae39['remove'](_0x10a94f),this['_suggestionToController']['delete'](_0x5e7539),this['_viewToController']['delete'](_0x2fd58d),_0x22eb09['destroy']();}['_updateController'](_0xbe178b){if(!_0xbe178b['isInContent']||!this['_suggestionToController']['has'](_0xbe178b))return;const _0x35a940=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42a3a3=this['_suggestionToController']['get'](_0xbe178b),_0xf2254e=_0xbe178b['getAllAdjacentSuggestions']();_0x42a3a3['view']['descriptionParts']=_0x35a940['descriptionFactory']['getDescriptions'](_0xf2254e);}['destroy'](){for(const _0x4741fc of this['_suggestionToController']['keys']())this['_destroyController'](_0x4741fc);for(const _0x3e5b2c of this['_annotationViews']['values']())_0x3e5b2c['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x238db3){return'model'in _0x238db3;}class k extends _0x1f2d8e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4ca567){this['editor']['plugins']['get'](p)['adapter']=_0x4ca567;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x470835){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x470835);}['getSuggestions']({skipNotAttached:_0x49acd9=!0x1,toJSON:_0x1a5bae=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x49acd9,'toJSON':_0x1a5bae});}['getSuggestion'](_0xcca0e7){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xcca0e7);}}const w=['Pagination'];class T extends _0x1f2d8e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x474344=this['editor'];if(_0x474344['config']['define']('trackChangesData.editorCreator',_0x29dc6e=>{const _0x1f2def=_0x474344['model']['document']['getRootNames']()['reduce']((_0x3fb231,_0x30970a)=>(_0x3fb231[_0x30970a]='',_0x3fb231),{});return _0x474344['constructor']['create'](_0x1f2def,_0x29dc6e);}),'function'!=typeof _0x474344['config']['get']('trackChangesData')['editorCreator'])throw new _0x37a522('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4b6231){return N(this['editor'],!0x0,_0x4b6231);}['getDataWithDiscardedSuggestions'](_0x49a33c){return N(this['editor'],!0x1,_0x49a33c);}}class D extends _0x1f2d8e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xfd0584){function _0x53e837(_0x2bbd3c){return _0x2bbd3c['map'](_0x131f91=>String['fromCharCode'](_0x131f91))['join']('');}super(_0xfd0584),this['result']='end',_0xfd0584[_0x53e837([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53e837([0x76,0x69,0x65,0x77])][_0x53e837([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53e837([0x61,0x75,0x74,0x6f]),_0xfd0584[_0x53e837([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x53e837([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53e837([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x53e837([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x53e837([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(_0x4cb08c){return void 0x0!==_0x4cb08c['getRootsAttributes'];}async function N(_0x10e042,_0x48676c,_0xc8152c){const _0x1bb300=_0xe47ff7(_0x10e042,w);_0x1bb300['plugins']['push'](p,D),_0x1bb300['rootsAttributes']=Ge(_0x10e042)?_0x10e042['getRootsAttributes']():void 0x0;const _0x4a7ac5=document['createDocumentFragment'](),_0x5284bb=_0x10e042['config']['get']('trackChangesData')['editorCreator'],_0x51eaa2=await _0x5284bb(_0x1bb300,()=>function(_0x1953ea){const _0x5ec3f2=document['createElement']('div');return _0x1953ea['appendChild'](_0x5ec3f2),_0x5ec3f2;}(_0x4a7ac5));!function(_0x268dcb,_0x236a45){const _0x10e83c=_0x268dcb['model']['document']['getRootNames']()['reduce']((_0x4b9caf,_0x20c704)=>(_0x4b9caf[_0x20c704]=_0x268dcb['data']['get']({'rootName':_0x20c704}),_0x4b9caf),{}),_0xe9d002=_0x268dcb['plugins']['get']('Users')['users']['map'](_0x25c789=>({'id':_0x25c789['id'],'name':_0x25c789['name']})),_0x1a52ff=_0x268dcb['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3e9c22=_0x268dcb['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1eb0f1=_0x236a45['plugins']['get']('Users'),_0x3764dd=_0x236a45['plugins']['get']('TrackChangesEditing'),_0x289b4a=_0x236a45['plugins']['get']('CommentsRepository');for(const _0x3d571e of _0x289b4a['getCommentThreads']())_0x3d571e['remove']();for(const _0x29f44e of _0xe9d002)_0x1eb0f1['getUser'](_0x29f44e['id'])||_0x1eb0f1['addUser'](_0x29f44e);_0x1eb0f1['me']||_0x1eb0f1['useAnonymousUser']();for(const _0xc48787 of _0x3e9c22)_0x289b4a['addCommentThread'](_0xc48787);for(const _0x14a4a2 of _0x1a52ff)_0x3764dd['addSuggestionData'](_0x14a4a2);_0x236a45['data']['set'](_0x10e83c);}(_0x10e042,_0x51eaa2),_0x51eaa2['execute'](_0x48676c?'acceptAllSuggestions':'discardAllSuggestions');const _0x22e618=Ge(_0x51eaa2)?_0x51eaa2['getFullData'](_0xc8152c):_0x51eaa2['data']['get'](_0xc8152c);return await _0x51eaa2['destroy'](),_0x22e618;}class Me extends _0x32d33a{['options'];constructor(_0x22474b,_0x345cc1){super(_0x22474b),this['options']=_0x345cc1,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'](_0x3f2ccf,_0x31d93a){if(!this['element'])return;const _0x27cc35=[];for(const [_0x1e8b22,_0x1e8dc5]of _0x3f2ccf){const _0x2c4056=document['createElement']('div');_0x2c4056['setAttribute']('data-ck-root-name',_0x1e8b22),_0x2c4056['className']=_0x1e8dc5['classes']+'\x20ck-track-changes-preview__root-container',_0x2c4056['innerHTML']=_0x1e8dc5['content'],_0x27cc35['push'](_0x2c4056);}_0x31d93a(this['element'],_0x27cc35),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x452710{constructor(_0xf17a0e){super(_0xf17a0e),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1f4737=this['editor'],_0x1986d1=_0x1f4737['locale'],_0x532f28=_0x1f4737['plugins']['get']('Dialog');let _0x273399;const _0x5b8886=function(_0x1779e8){const _0x36b7d5={};if('editables'in _0x1779e8['ui']['view']){for(const [_0x30b224,_0x5700c9]of Object['entries'](_0x1779e8['ui']['view']['editables']))_0x36b7d5[_0x30b224]=_0x5700c9['element'];}else _0x36b7d5[_0x1779e8['model']['document']['getRootNames']()[0x0]]=_0x1779e8['ui']['view']['editable']['element'];return _0x36b7d5;}(_0x1f4737),_0x4274e2=function(_0x1e4acc){let _0x38d6a3=0x0;for(const _0x4bc2be of Object['values'](_0x1e4acc))_0x38d6a3=Math['max'](_0x38d6a3,_0x4bc2be['getBoundingClientRect']()['width']);let _0x1200f2=0x0;for(const _0x3b7cdf of Object['values'](_0x1e4acc))_0x1200f2+=_0x3b7cdf['getBoundingClientRect']()['height'];const _0x56fe74=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x12bc92=Math['min'](_0x1200f2,_0x56fe74);return{'width':_0x38d6a3,'height':_0x12bc92};}(_0x5b8886);_0x532f28['show']({'id':'finalContentPreview','title':c(_0x1986d1,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1986d1,{'dialogRects':_0x4274e2}),'onHide':()=>{_0x273399['detachFromDom']();},'onShow':()=>{_0x1f4737['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x14070d=>{const _0x47672c=this['_standarizeRootsData'](_0x14070d,_0x1f4737,_0x5b8886);_0x532f28['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x47672c,_0x1f4737['config']['get']('trackChanges.preview.renderFunction'));}),_0x273399=new _0x48fe04(_0x1986d1,[_0x532f28['view']]),_0x273399['attachToDom'](),_0x273399['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1f4737['once']('destroy',()=>{_0x273399['detachFromDom']();});const _0x5abdaf=_0x532f28['view']['headerView']['class'];_0x532f28['view']['headerView']['class']=_0x5abdaf?_0x5abdaf+'\x20ck-reset_all':'ck-reset_all',_0x532f28['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x532f28['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2b1211=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x36c1c1=_0x2b1211['previewMode'],_0x2ac945={};if('$labels'===_0x36c1c1){for(const _0xbe10fb of _0x2b1211['getMergeFieldsIds']())_0x2ac945[_0xbe10fb]=_0x2b1211['getLabel'](_0xbe10fb)||_0xbe10fb;}else{const _0x1fc4c6='$defaultValues'===_0x36c1c1?_0x2b1211['getDefaultValues']():_0x2b1211['getDataSetValues'](_0x36c1c1,!0x0);for(const _0x5a46ab of Object['entries'](_0x1fc4c6)){const [_0x3f2d66,_0x3d6aee]=_0x5a46ab;_0x2ac945[_0x3f2d66]=null!==_0x3d6aee?_0x3d6aee:_0x2b1211['getLabel'](_0x3f2d66)||_0x3f2d66;}}return{'mergeFieldsData':_0x2ac945};}['_standarizeRootsData'](_0xb30f30,_0x178e0e,_0x29a680){let _0x766742;if('string'==typeof _0xb30f30){const _0x2b1a7c=_0x178e0e['model']['document']['getRootNames']()[0x0];_0x766742={[_0x2b1a7c]:_0xb30f30};}else _0x766742=_0xb30f30;const _0x10d0d0=this['_fixMediaEmbeds'](_0x766742,_0x178e0e),_0x131d3f=function(_0x545f2f,_0xb4888a){for(const [_0x2b3bc9,_0xe07165]of _0x545f2f)_0xe07165['classes']=_0xb4888a[_0x2b3bc9]['classList']['value']['replace']('ck-focused','');return _0x545f2f;}(this['_sortRoots'](_0x178e0e)['reduce']((_0x5321da,_0x4a418b)=>(_0x5321da['push']([_0x4a418b,{'content':_0x10d0d0[_0x4a418b],'classes':''}]),_0x5321da),[]),_0x29a680);return _0x131d3f;}['_fixMediaEmbeds'](_0x1583be,_0x513cda){if(!_0x513cda['plugins']['has']('MediaEmbedEditing'))return _0x1583be;const _0x1244ef=_0x513cda['plugins']['get']('MediaEmbedEditing');for(const [_0x2a8a37,_0x2b6630]of Object['entries'](_0x1583be)){const _0x1ceadb=document['createElement']('div');_0x1ceadb['innerHTML']=_0x2b6630,(_0x1ceadb['querySelectorAll']('figure.media')['forEach'](_0x4d9fc4=>{const _0x1fca73=_0x4d9fc4['querySelector']('oembed');if(_0x1fca73){const _0x5e109f=_0x1fca73['getAttribute']('url');if(_0x5e109f){const _0x2d988f=_0x1244ef['registry']['getMediaViewElement'](new _0x5584ca(_0x513cda['editing']['view']['document']),_0x5e109f,{'elementName':'','renderForEditingView':!0x0}),_0x1c2b00=document['createElement']('div');_0x1c2b00['classList']['add']('ck-media__wrapper'),_0x2d988f['render'](_0x1c2b00,_0x513cda['editing']['view']['domConverter']),_0x1fca73['replaceWith'](_0x1c2b00);}}}),_0x1583be[_0x2a8a37]=_0x1ceadb['innerHTML']);}return _0x1583be;}['_sortRoots'](_0x4ecde1){if(!function(_0x4a49e9){return void 0x0!==_0x4a49e9['getRootsAttributes'];}(_0x4ecde1))return _0x4ecde1['model']['document']['getRootNames']();const _0x244466=[],_0x5cd3f3=new Map();for(const _0x564053 of _0x4ecde1['model']['document']['getRootNames']()){const _0x2f7afb=_0x4ecde1['editing']['view']['getDomRoot'](_0x564053)['getClientRects']()['item'](0x0);_0x244466['push'](_0x564053),_0x5cd3f3['set'](_0x564053,_0x2f7afb);}return _0x244466['sort']((_0x346f95,_0x5215eb)=>{const _0x5e98b1=_0x5cd3f3['get'](_0x346f95),_0x1154c5=_0x5cd3f3['get'](_0x5215eb);return _0x5e98b1['y']-_0x1154c5['y']||_0x5e98b1['x']-_0x1154c5['x'];}),_0x244466;}}class te extends _0x1f2d8e{static get['requires'](){return[T,_0x419c0f];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x566b21){super(_0x566b21),_0x566b21['commands']['add']('previewFinalContent',new re(this['editor'])),_0x566b21['config']['define']('trackChanges.preview.renderFunction',(_0x2cacaa,_0x5b505b)=>{for(const _0xc5e46f of _0x5b505b)_0x2cacaa['appendChild'](_0xc5e46f);});}}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 _0x1b6f03,Plugin as _0x5c1181,PendingActions as _0x2f18b2}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x27ba3f,ObservableMixin as _0x52bea3,uid as _0x1b595f,priorities as _0x4b8f33,insertToPriorityArray as _0x16f9a1,toArray as _0x4f6f0d,logWarning as _0x7309e5,getEnvKeystrokeText as _0x2d0d08,FocusTracker as _0x4b0c7e,KeystrokeHandler as _0x1a0162,Collection as _0x1fedff}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x480e97,IconCancel as _0x101f8f,IconTrackChanges as _0xaf24d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x275dee,View as _0x1a544d,ViewCollection as _0x4468c6,FocusCycler as _0x28c7b7,ViewModel as _0x1b419b,createDropdown as _0x3c0e80,SplitButtonView as _0x53e4cf,addListToDropdown as _0x45bee5,MenuBarMenuView as _0x52108a,MenuBarMenuListView as _0x3b3307,ListSeparatorView as _0x1dd12e,MenuBarMenuListItemView as _0x2891fd,MenuBarMenuListItemButtonView as _0x5ec854,BodyCollection as _0x4f698a,Dialog as _0x236eb9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4a4901,hashObject as _0x14dbbf,surroundingMarkersDetector as _0xd99fe4,FOCUS_ANNOTATION_KEYSTROKE as _0x3d13f0,AriaDescriptionView as _0x50f820,setupThreadKeyboardNavigation as _0x5058bd,trimHtml as ti,UserView as _0x595140,LateFocusButtonView as _0x5edada,getDateTimeFormatter as _0x4af0d7,getAllMarkersDomElementsSorted as _0x1e60ff,sanitizeEditorConfig as _0x420930}from'ckeditor5-collaboration/dist/index.js';import{Element as _0xb007b4,LiveRange as _0x597cd7,LivePosition as _0xcc0df3,DowncastWriter as _0x20bc2a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3adf2c,toWidget as _0x586b6a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x59f217,set as _0x5464db,isEqual as _0x16f315,unset as _0x4b3ed5,omit as Ft}from'es-toolkit/compat';import{Delete as _0x29e068,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x31970b}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x47d534}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x1b6f03{['_enabledCommands'];constructor(_0x2f32c8,_0x42c3f5){super(_0x2f32c8),this['_enabledCommands']=_0x42c3f5,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 _0x416cb7 of this['editor']['commands']['commands']())_0x416cb7['affectsData']&&!this['_enabledCommands']['has'](_0x416cb7)&&_0x416cb7['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2ad589 of this['editor']['commands']['commands']())_0x2ad589['affectsData']&&!this['_enabledCommands']['has'](_0x2ad589)&&_0x2ad589['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x1b6f03{['_suggestions'];constructor(_0x44a5d9,_0x166658){super(_0x44a5d9),this['_suggestions']=_0x166658,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x376233){const _0x3c45ac=this['_suggestions']['get'](_0x376233);if(!_0x3c45ac)throw new _0x27ba3f('track-changes-accept-suggestion-not-found',this);const _0x456f4e=_0x3c45ac['getRanges']();this['editor']['model']['canEditAt'](_0x456f4e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3c45ac);}}class O extends _0x1b6f03{['_suggestions'];constructor(_0x364164,_0x51ac90){super(_0x364164),this['_suggestions']=_0x51ac90,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x228e07){const _0x420e86=this['_suggestions']['get'](_0x228e07);if(!_0x420e86)throw new _0x27ba3f('track-changes-discard-suggestion-not-found',this);const _0x4ce1c9=_0x420e86['getRanges']();this['editor']['model']['canEditAt'](_0x4ce1c9)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x420e86);}}function ls(_0x3911ff,_0x474501){let _0x304ebc='';return _0x304ebc+=_0x3911ff['split']('*')['map']((_0x199853,_0x36bd58)=>_0x36bd58%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x199853)+'</span>':nn(_0x199853))['join'](''),_0x474501&&(_0x304ebc+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x474501['value']+'\x22\x20title=\x22'+_0x474501['title']+'\x22></span>'),_0x304ebc;}function nn(_0x375796){const _0xb1f555=document['createElement']('span');return _0xb1f555['innerText']=_0x375796,_0xb1f555['innerHTML'];}function ts(_0x2f5eac){return _0x2f5eac['sort']((_0x593770,_0x3f9bbb)=>'deletion'==_0x593770['type']&&'deletion'!=_0x3f9bbb['type']?-0x1:'deletion'!=_0x593770['type']&&'deletion'==_0x3f9bbb['type']?0x1:0x0);}function to(_0x3a1937,_0x563812){let _0x5dba3e,_0x406d58=0x0;const _0x4ed200=[],_0x200da7=_0x563812['schema'];for(;_0x406d58<_0x3a1937['length'];){const _0x52bb52=_0x3a1937[_0x406d58],_0x54d0ee=_0x3a1937[_0x406d58+0x1];_0x5dba3e||(_0x5dba3e=_0x563812['createPositionBefore'](_0x52bb52)),on(_0x563812,_0x52bb52,_0x54d0ee)||(_0x4ed200['push'](_0x563812['createRange'](_0x5dba3e,_0x200da7['isObject'](_0x52bb52)?_0x563812['createPositionAfter'](_0x52bb52):_0x563812['createPositionAt'](_0x52bb52,'end'))),_0x5dba3e=null),_0x406d58++;}return _0x4ed200;}function on(_0x27de8e,_0x39dbbe,_0x1f816b){if(!_0x1f816b)return!0x1;const _0x322d01=_0x27de8e['createPositionAfter'](_0x39dbbe),_0x350e53=_0x27de8e['createPositionBefore'](_0x1f816b);return _0x322d01['isTouching'](_0x350e53);}function rs(_0x4c1b5d,_0x30a9cc,_0x41ef20){for(;_0x41ef20['length'];){const _0x1176d6=_0x41ef20['splice'](0x0,0x64);_0x4c1b5d['change'](()=>{for(const _0x45d352 of _0x1176d6)_0x45d352['isInContent']&&_0x30a9cc['execute'](_0x45d352['id']);});}}class R extends _0x1b6f03{['_command'];['_suggestions'];constructor(_0x13915b,_0x38732f,_0x5db001){super(_0x13915b),this['_command']=_0x38732f,this['_suggestions']=_0x5db001,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x41b5d1=Array['from'](this['_suggestions']['values']())['some'](_0x486d72=>_0x486d72['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x41b5d1;}['execute'](){const _0x5c87fd=ts(Array['from'](this['_suggestions']['values']()));for(const _0x4593df of _0x5c87fd){const _0x10426e=_0x4593df['getRanges']();if(!this['editor']['model']['canEditAt'](_0x10426e))return;}rs(this['editor']['model'],this['_command'],_0x5c87fd);}}class E extends _0x1b6f03{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x53e1cc,_0x5617a2,_0x55c567){super(_0x53e1cc),this['_command']=_0x5617a2,this['_suggestions']=_0x55c567,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x419f3=this['editor']['model']['document']['selection'],_0x59fce9=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4eaa1a,_0x5a147a){const _0x236867=Array['from'](_0x4eaa1a['getRanges']()),_0x404469=new Set();for(const _0x45ae44 of _0x5a147a)if(_0x45ae44['isInContent']){for(const _0x554fc8 of _0x236867)for(const _0x1402f8 of _0x45ae44['getRanges']())(_0x554fc8['isIntersecting'](_0x1402f8)||_0x4eaa1a['isCollapsed']&&!_0x45ae44['isMultiRange']&&_0x45ae44['next']&&_0x1402f8['end']['isTouching'](_0x554fc8['start']))&&_0x404469['add'](_0x45ae44);}return _0x404469;}(_0x419f3,_0x59fce9),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x100ad5=ts(Array['from'](this['_selectedSuggestions']));for(const _0x303492 of _0x100ad5){const _0x66f517=_0x303492['getRanges']();if(!this['editor']['model']['canEditAt'](_0x66f517))return;}rs(this['editor']['model'],this['_command'],_0x100ad5);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x52bea3(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x12c665,_0x4fd756){super(),this['id']=_0x4fd756['id'],this['type']=_0x4fd756['type'],this['subType']=_0x4fd756['subType']||null,this['author']=_0x4fd756['author'],this['creator']=_0x4fd756['creator']||_0x4fd756['author'],this['isExternal']=Boolean(_0x4fd756['attributes']&&_0x4fd756['attributes']['@external']),this['data']=null,this['_model']=_0x12c665,this['_onAccept']=_0x4fd756['onAccept'],this['_onDiscard']=_0x4fd756['onDiscard'],this['_onAttributesChange']=_0x4fd756['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4fd756['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 _0x32cf53=this;for(;_0x32cf53['previous'];)_0x32cf53=_0x32cf53['previous'];return _0x32cf53;}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'](_0x5511c0){this['_markerNames']['add'](_0x5511c0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x20bd6a=>this['_model']['markers']['get'](_0x20bd6a))['filter'](_0xd3a00d=>_0xd3a00d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x69ba53=>{for(const _0x182f88 of this['getMarkers']())_0x69ba53['removeMarker'](_0x182f88);}),this['_markerNames']['clear']();}['removeMarker'](_0x4c1608){this['_model']['change'](_0x56444b=>{_0x56444b['removeMarker'](_0x4c1608);}),this['_markerNames']['delete'](_0x4c1608);}['addRange'](_0x103748){const _0x24af20='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x24af20),this['_model']['change'](_0x4440fe=>{_0x4440fe['addMarker'](_0x24af20,{'range':_0x103748,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x27a0c3){for(const _0x2263a2 of this['getRanges']())if(_0x2263a2['isIntersecting'](_0x27a0c3))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x36f6fc=>_0x36f6fc['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3b0483,_0x278b76)=>[..._0x3b0483,..._0x278b76['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x142e6e=this['getRanges']();if(0x1!=_0x142e6e['length'])return null;const _0x52cefe=_0x142e6e[0x0],_0x460393=_0x52cefe['start']['nodeAfter'],_0x1116bf=_0x52cefe['end']['nodeBefore'];return _0x460393 instanceof _0xb007b4?_0x460393!=_0x1116bf?null:_0x460393: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 _0x48feb9=[];let _0x49b397=this['head'];for(;_0x49b397;)_0x48feb9['push'](_0x49b397),_0x49b397=_0x49b397['next'];return _0x48feb9;}['setAttribute'](_0x8e3aa8,_0x31dfab){const _0x2127fc=_0x59f217(this['attributes']);_0x5464db(_0x2127fc,_0x8e3aa8,_0x31dfab),_0x16f315(_0x2127fc,this['attributes'])||(this['attributes']=_0x2127fc,this['_onAttributesChange'](_0x2127fc));}['removeAttribute'](_0x9812b8){const _0x26651e=_0x59f217(this['attributes']);_0x4b3ed5(_0x26651e,_0x9812b8),_0x16f315(_0x26651e,this['attributes'])||(this['attributes']=_0x26651e,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 _0x1b595f()['substr'](0x1,0x5);}}function c(_0x19c801,_0x51c375,_0x4b4713){const _0x4bd6fb=_0x19c801['t'],t=_0x19c801['t'];switch(_0x51c375){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',_0x4b4713);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4b4713);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4b4713);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4b4713);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4b4713);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',_0x4b4713);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4b4713);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',_0x4b4713);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4b4713);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4b4713);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4b4713);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4b4713);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4b4713);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4b4713);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4b4713);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4b4713);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4b4713);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4b4713);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4b4713);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4b4713);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4b4713);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4b4713);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4b4713);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4b4713);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4b4713);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'},_0x4b4713);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4b4713);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4b4713);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4b4713);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4b4713);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4b4713);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4b4713);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4b4713);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'},_0x4b4713);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4b4713);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4b4713);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4b4713);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4b4713);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'},_0x4b4713);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4b4713);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'},_0x4b4713);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'},_0x4b4713);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4b4713);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'},_0x4b4713);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4b4713);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'},_0x4b4713);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4b4713);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4b4713);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'},_0x4b4713);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4b4713);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 _0x4bd6fb({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4b4713);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4bd6fb({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4b4713);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4b4713);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'},_0x4b4713);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'},_0x4b4713);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'},_0x4b4713);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x51c375;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x91c089,_0x13a290){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x91c089,this['_locale']=_0x13a290;}['getDescriptions'](_0x54cb1a){const _0x411511=[],_0x37e157=new Set(),_0x1a4518=new Set();for(let _0x1c4c8b=0x0;_0x1c4c8b<_0x54cb1a['length'];_0x1c4c8b++){const _0x293890=_0x54cb1a[_0x1c4c8b];if(!_0x293890['isInContent'])continue;const _0x2f20ae=this['_handleCustomCallbackDescription'](_0x293890);if(_0x2f20ae){if(null!=_0x293890['subType']){if(_0x37e157['has'](_0x293890['subType']))continue;_0x37e157['add'](_0x293890['subType']);}_0x411511['push'](_0x2f20ae);}else{if('attribute'!=_0x293890['type'])'insertion'!=_0x293890['type']&&'deletion'!=_0x293890['type']||this['_handleInsertRemoveSuggestionDescription'](_0x411511,_0x293890,_0x54cb1a[_0x1c4c8b+0x1]);else{const _0x4e794d=_0x293890['data']['key'];if(_0x1a4518['has'](_0x4e794d))continue;_0x1a4518['add'](_0x293890['data']['key']),_0x4e794d==u?this['_handleRenameSuggestionDescription'](_0x411511,_0x293890):this['_handleAttributeSuggestionDescription'](_0x411511,_0x293890);}}}return this['_resolveDescriptionItems'](_0x411511);}['registerDescriptionCallback'](_0x6b78c6){this['_customCallbacks']['push'](_0x6b78c6);}['registerElementLabel'](_0x329882,_0x591e22,_0x1af609=_0x4b8f33['normal']){'function'==typeof _0x329882?_0x16f9a1(this['_itemLabelsCallbacks'],{'matchingCallback':_0x329882,'label':_0x591e22,'priority':_0x1af609}):this['_itemLabels']['set'](_0x329882,_0x591e22);}['registerAttributeLabel'](_0x2e0e14,_0x118494){this['_attributeLabels']['set'](_0x2e0e14,_0x118494);}['getItemLabel'](_0x15ad34,_0x370868=0x1){let _0x32b114;for(const _0x5cabc6 of this['_itemLabelsCallbacks'])if(_0x5cabc6['matchingCallback'](_0x15ad34)){_0x32b114=_0x5cabc6['label'];break;}return _0x32b114||(_0x32b114=this['_itemLabels']['get'](_0x15ad34['name'])),_0x32b114?_0x32b114(_0x370868):0x1!==_0x370868?_0x370868+'\x20'+_0x15ad34['name']+'s':''+_0x15ad34['name'];}['_addDescriptionItems'](_0x14736d,_0x3b70b9){const _0x33ddc0=_0x3b70b9['getFirstRange']()['getWalker'](),_0x58f17c='insertion'==_0x3b70b9['type']?'add':'remove';for(const _0x152a30 of _0x33ddc0){const _0xb85c07=_0x152a30['item'],_0x3b2a37=_0x14736d[_0x14736d['length']-0x1];if(_0xb85c07['is']('$textProxy'))_0x3b2a37&&_0x3b2a37['type']['indexOf']('Container')>-0x1&&_0x14736d['pop'](),_0x3b2a37&&'text'==_0x3b2a37['type']?_0x3b2a37[_0x58f17c]+=_0xb85c07['data']:_0x14736d['push']({'type':'text','add':'add'==_0x58f17c?_0xb85c07['data']:'','remove':'remove'==_0x58f17c?_0xb85c07['data']:''});else{if(this['_schema']['isObject'](_0xb85c07)){const _0x3debc7=_0xb85c07;if(_0x3b2a37&&_0x3b2a37['type']['indexOf']('Container')>-0x1&&_0x14736d['pop'](),'elementEnd'==_0x152a30['type'])continue;_0x3b2a37&&_0x3b2a37['type']==_0x58f17c+'Object'&&_0x3b2a37['element']['name']==_0x3debc7['name']?_0x3b2a37['quantity']++:_0x14736d['push']({'type':_0x58f17c+'Object','element':_0x3debc7,'quantity':0x1}),_0x33ddc0['skip'](_0x1df014=>!('elementEnd'==_0x1df014['type']&&_0x1df014['item']==_0xb85c07));}else{if(this['_schema']['checkChild'](_0xb85c07,'$text')||_0xb85c07['is']('element','softBreak')){const _0x582c8a=_0xb85c07;if('add'==_0x58f17c&&'elementStart'==_0x152a30['type']||'remove'==_0x58f17c&&'elementEnd'==_0x152a30['type'])continue;if(_0x3b2a37&&-0x1==_0x3b2a37['type']['indexOf']('Container')){'text'==_0x3b2a37['type']&&(_0x3b2a37[_0x58f17c]+='\x0a');continue;}let _0x4f1a1d;if(_0x4f1a1d='add'==_0x58f17c?_0x582c8a['nextSibling']&&!this['_schema']['isObject'](_0x582c8a['nextSibling'])?_0x582c8a['nextSibling']:null:_0x582c8a['previousSibling']&&!this['_schema']['isObject'](_0x582c8a['previousSibling'])?_0x582c8a['previousSibling']:null,_0x582c8a['isEmpty']||_0x4f1a1d&&_0x4f1a1d['isEmpty']){const _0x4f64e5=_0x4f1a1d&&_0x4f1a1d['isEmpty']?_0x4f1a1d:_0x582c8a;_0x3b2a37&&_0x3b2a37['type']==_0x58f17c+'EmptyContainer'&&_0x3b2a37['element']['name']==_0x4f64e5['name']?_0x3b2a37['quantity']++:_0x14736d['push']({'type':_0x58f17c+'EmptyContainer','element':_0x4f64e5,'quantity':0x1});}else _0x14736d['push']({'type':_0x58f17c+'Container','element':_0x582c8a});}}}}}['_resolveDescriptionItems'](_0x4be09d){const _0x2627b7=this['_locale'],_0x3ee78a=[],_0x6ea583=[],_0x5c56b8=[];for(const _0x5cc0ea of _0x4be09d)switch(_0x5cc0ea['type']){case'text':if(_0x5cc0ea['add']=_0x5cc0ea['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5cc0ea['remove']=_0x5cc0ea['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5cc0ea['add']&&''!=_0x5cc0ea['remove']){_0x3ee78a['push']({'type':'replace','content':c(_0x2627b7,'REPLACE_TEXT',['\x22'+_0x5cc0ea['remove']+'\x22','\x22'+_0x5cc0ea['add']+'\x22'])});continue;}if(null!=_0x5cc0ea['add']['match'](/^ +$/)){_0x3ee78a['push']({'type':'insertion','content':c(_0x2627b7,'*Insert:*\x20%0',c(_0x2627b7,'ELEMENT_SPACE',_0x5cc0ea['add']['length']))});continue;}if(null!=_0x5cc0ea['remove']['match'](/^ +$/)){_0x3ee78a['push']({'type':'deletion','content':c(_0x2627b7,'*Remove:*\x20%0',c(_0x2627b7,'ELEMENT_SPACE',_0x5cc0ea['remove']['length']))});continue;}if(''!=_0x5cc0ea['add']){_0x3ee78a['push']({'type':'insertion','content':c(_0x2627b7,'*Insert:*\x20%0','\x22'+_0x5cc0ea['add']+'\x22')});continue;}_0x3ee78a['push']({'type':'deletion','content':c(_0x2627b7,'*Remove:*\x20%0','\x22'+_0x5cc0ea['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3ee78a['push']({'type':'insertion','content':c(_0x2627b7,'*Insert:*\x20%0',this['getItemLabel'](_0x5cc0ea['element'],_0x5cc0ea['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3ee78a['push']({'type':'deletion','content':c(_0x2627b7,'*Remove:*\x20%0',this['getItemLabel'](_0x5cc0ea['element'],_0x5cc0ea['quantity']))});continue;case'addContainer':_0x3ee78a['push']({'type':'insertion','content':c(_0x2627b7,'*Split:*\x20%0',this['getItemLabel'](_0x5cc0ea['element'],_0x5cc0ea['quantity']))});continue;case'removeContainer':_0x3ee78a['push']({'type':'deletion','content':c(_0x2627b7,'*Merge:*\x20%0',this['getItemLabel'](_0x5cc0ea['element'],_0x5cc0ea['quantity']))});continue;case'addFormat':_0x6ea583['push'](_0x5cc0ea['key']);continue;case'removeFormat':_0x5c56b8['push'](_0x5cc0ea['key']);continue;default:_0x3ee78a['push'](_0x5cc0ea);}if(_0x6ea583['length']){const _0x4d478f=_0x6ea583['map'](_0x4f1121=>this['_attributeLabels']['has'](_0x4f1121)?this['_attributeLabels']['get'](_0x4f1121):_0x4f1121)['join'](',\x20');_0x3ee78a['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x4d478f)});}if(_0x5c56b8['length']){const _0x58448e=_0x5c56b8['map'](_0x14cfce=>this['_attributeLabels']['has'](_0x14cfce)?this['_attributeLabels']['get'](_0x14cfce):_0x14cfce)['join'](',\x20');_0x3ee78a['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x58448e)});}return _0x3ee78a;}['_handleCustomCallbackDescription'](_0x3a6892){for(const _0x2bcde6 of this['_customCallbacks']){const _0x3e0991=_0x2bcde6(_0x3a6892);if(_0x3e0991&&'type'in _0x3e0991)return _0x3e0991;}}['_handleAttributeSuggestionDescription'](_0x413214,_0x487692){const _0x2a63eb=_0x487692['data'],_0x9b6ffa=void 0x0===_0x2a63eb['newValue']?'removeFormat':'addFormat';_0x413214['push']({'type':_0x9b6ffa,'key':_0x2a63eb['key']});}['_handleRenameSuggestionDescription'](_0x42ef89,_0x47d3fc){_0x42ef89['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x47d3fc['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x515562,_0x2f64a6,_0x2dc77e){if(this['_addDescriptionItems'](_0x515562,_0x2f64a6),_0x2dc77e&&_0x2dc77e['getFirstRange']()&&!_0x2f64a6['getFirstRange']()['end']['isEqual'](_0x2dc77e['getFirstRange']()['start'])){const _0xb7ed33=_0x515562[_0x515562['length']-0x1],_0x18a0fa='insertion'==_0x2f64a6['type']?'add':'remove';_0xb7ed33&&'text'==_0xb7ed33['type']&&(_0xb7ed33[_0x18a0fa]+='\x0a');}}}class U extends _0x5c1181{['afterInit'](){const _0x23ae9e=this['editor'],_0x5e3db9=_0x23ae9e['plugins']['get']('TrackChangesEditing');_0x23ae9e['commands']['get']('showAIAssistant')&&_0x5e3db9['enableCommand']('showAIAssistant');}}class V extends _0x5c1181{['afterInit'](){const _0x1dcaa6=this['editor'],_0x16f1f6=_0x1dcaa6['locale'];if(!_0x1dcaa6['plugins']['has']('AlignmentEditing'))return;const _0x581e57=_0x1dcaa6['plugins']['get']('TrackChangesEditing');_0x581e57['enableDefaultAttributesIntegration']('alignment'),_0x581e57['registerBlockAttribute']('alignment'),_0x581e57['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x16f1f6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e65c8=this['editor'],_0x507bec=_0x4e65c8['locale'];_0x4e65c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x194ea4=>{if('formatBlock'!=_0x194ea4['type'])return;const {data:_0xb9b82a}=_0x194ea4;if(_0xb9b82a&&'alignment'==_0xb9b82a['commandName']){const _0x48ebec=_0xb9b82a['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x507bec,'*Format:*\x20%0',function(_0x521541){switch(_0x521541){case'left':return c(_0x507bec,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x507bec,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x507bec,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x507bec,'FORMAT_JUSTIFY_TEXT');}}(_0x48ebec))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x5c1181{['afterInit'](){const _0x5493a0=this['editor'],_0x282820=_0x5493a0['plugins']['get']('TrackChangesEditing'),_0x3df2b1=_0x5493a0['locale'];for(const _0x4b0b81 of Zt){if(!_0x5493a0['plugins']['has'](_0x4b0b81))continue;const _0x140228=_0x4b0b81['slice'](0x0,-0x7)['toLowerCase'](),_0x41e546='FORMAT_'+_0x140228['toUpperCase']();_0x282820['enableDefaultAttributesIntegration'](_0x140228),_0x282820['registerInlineAttribute'](_0x140228),_0x282820['descriptionFactory']['registerAttributeLabel'](_0x140228,c(_0x3df2b1,_0x41e546));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c0175=this['editor'],_0x14671d=_0x2c0175['locale'],_0x3e9384=_0x2c0175['plugins']['get']('TrackChangesEditing');function _0x2f48eb(_0x5c9e24,_0x2c7054){_0x3e9384['descriptionFactory']['registerDescriptionCallback'](_0x2db230=>{if('formatInline'!=_0x2db230['type'])return;const {data:_0x410124}=_0x2db230;return _0x410124&&_0x410124['commandName']===_0x5c9e24?_0x410124['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x14671d,'*Format:*\x20%0',_0x2c7054)}:{'type':'format','content':c(_0x14671d,'*Remove\x20format:*\x20%0',_0x2c7054)}:void 0x0;});}_0x2f48eb('bold',c(_0x14671d,'FORMAT_BOLD')),_0x2f48eb('italic',c(_0x14671d,'FORMAT_ITALIC')),_0x2f48eb('underline',c(_0x14671d,'FORMAT_UNDERLINE')),_0x2f48eb('code',c(_0x14671d,'FORMAT_CODE')),_0x2f48eb('strikethrough',c(_0x14671d,'FORMAT_STRIKETHROUGH')),_0x2f48eb('subscript',c(_0x14671d,'FORMAT_SUBSCRIPT')),_0x2f48eb('superscript',c(_0x14671d,'FORMAT_SUPERSCRIPT'));}}class G extends _0x5c1181{['afterInit'](){const _0x6a5a88=this['editor'],_0x4eaef6=_0x6a5a88['locale'];if(!_0x6a5a88['plugins']['has']('BlockQuoteEditing'))return;const _0x357cc4=_0x6a5a88['plugins']['get']('TrackChangesEditing'),_0x413547=this['editor']['commands']['get']('blockQuote');_0x357cc4['enableCommand']('blockQuote',(_0x2be189,_0x4f9713={})=>{const _0x371ee3=this['editor']['model']['document']['selection'],_0x30303a=_0x4f9713&&void 0x0!==_0x4f9713['forceValue']?_0x4f9713['forceValue']:!_0x413547['value'];let _0x1eff00=[];if(_0x30303a){const _0x3927ec=Array['from'](_0x371ee3['getSelectedBlocks']())['filter'](_0x21752e=>oo(_0x21752e)||function(_0x137bf7,_0x31b118){const _0x2d0bb6=_0x31b118['checkChild'](_0x137bf7['parent'],'blockQuote'),_0x15af9d=_0x31b118['checkChild'](['$root','blockQuote'],_0x137bf7);return _0x2d0bb6&&_0x15af9d;}(_0x21752e,this['editor']['model']['schema']));_0x1eff00=to(_0x3927ec,_0x6a5a88['model']);}else{const _0x1bdcfe=Array['from'](_0x371ee3['getSelectedBlocks']())['filter'](_0x37eafd=>oo(_0x37eafd));_0x1eff00=to(_0x1bdcfe,_0x6a5a88['model']);}_0x6a5a88['model']['change'](()=>{for(const _0x226f2e of _0x1eff00)_0x357cc4['markBlockFormat'](_0x226f2e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x30303a}]});});}),_0x357cc4['descriptionFactory']['registerDescriptionCallback'](_0x25e27b=>{const {data:_0x334c96}=_0x25e27b;if(_0x334c96&&'blockQuote'==_0x334c96['commandName']){const _0xb68b8a=c(_0x4eaef6,'ELEMENT_BLOCK_QUOTE');return _0x334c96['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4eaef6,'*Set\x20format:*\x20%0',_0xb68b8a)}:{'type':'format','content':c(_0x4eaef6,'*Remove\x20format:*\x20%0',_0xb68b8a)};}});}}function oo(_0x469001){return'blockQuote'==_0x469001['parent']['name'];}class L extends _0x5c1181{['afterInit'](){const _0x54ec32=this['editor'],_0x22404e=_0x54ec32['locale'],_0x24d23b=_0x54ec32['plugins']['get']('TrackChangesEditing');_0x54ec32['plugins']['has']('BookmarkEditing')&&(_0x24d23b['enableCommand']('insertBookmark'),_0x24d23b['enableDefaultAttributesIntegration']('updateBookmark'),_0x24d23b['registerBlockAttribute']('bookmarkId'),_0x24d23b['descriptionFactory']['registerDescriptionCallback'](_0x26916f=>{if('insertion'!=_0x26916f['type']&&'deletion'!=_0x26916f['type']&&'attribute'!=_0x26916f['type'])return;const _0x1f7ab6=_0x26916f['getContainedElement']();if(null==_0x1f7ab6)return;if(!_0x1f7ab6['is']('element','bookmark'))return;const _0x136fee=_0x1f7ab6['getAttribute']('bookmarkId');if('insertion'==_0x26916f['type'])return{'type':'insertion','content':c(_0x22404e,'*Insert:*\x20%0','\x22'+_0x136fee+'\x22\x20'+c(_0x22404e,'ELEMENT_BOOKMARK'))};if('deletion'==_0x26916f['type'])return{'type':'deletion','content':c(_0x22404e,'*Remove:*\x20%0','\x22'+_0x136fee+'\x22\x20'+c(_0x22404e,'ELEMENT_BOOKMARK'))};const {data:_0x5ab4a2}=_0x26916f;if(!_0x5ab4a2||'bookmarkId'!=_0x5ab4a2['key'])return;return{'type':'format','content':c(_0x22404e,'*Set\x20bookmark:*\x20%0','\x22'+_0x5ab4a2['newValue']+'\x22')};}));}}class J extends _0x5c1181{['afterInit'](){const _0x22a8d2=this['editor'];_0x22a8d2['plugins']['has']('CaseChange')&&(_0x22a8d2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x22a8d2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x22a8d2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x5c1181{['afterInit'](){const _0x50ac04=this['editor'];_0x50ac04['commands']['get']('ckbox')&&_0x50ac04['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x5c1181{['afterInit'](){const _0x287b3c=this['editor'];if(!_0x287b3c['plugins']['has']('CodeBlock'))return;const _0xd02e81=_0x287b3c['plugins']['get']('TrackChangesEditing'),_0x52799d=_0x287b3c['locale'],_0x53198c=_0x287b3c['config']['get']('codeBlock')['languages'],_0x2e5369=_0x287b3c['commands']['get']('codeBlock');_0xd02e81['enableCommand']('indentCodeBlock'),_0xd02e81['enableCommand']('outdentCodeBlock'),_0xd02e81['enableCommand']('codeBlock',(_0x593df4,_0x60d10a={})=>{const _0x28632f=_0x287b3c['model'],_0x5ef807=_0x287b3c['model']['document']['selection'],_0x367110=_0x60d10a&&void 0x0!==_0x60d10a['forceValue']?_0x60d10a['forceValue']:!_0x2e5369['value'];let _0x38da36;_0x60d10a['language']||(_0x60d10a['language']=_0x53198c[0x0]['language']),_0x38da36=_0x367110?Array['from'](_0x5ef807['getSelectedBlocks']())['filter'](_0x56e1e9=>eo(_0x56e1e9)||function(_0x4d2efe,_0x43d962){if(_0x4d2efe['is']('rootElement')||_0x43d962['isLimit'](_0x4d2efe))return!0x1;return _0x43d962['checkChild'](_0x4d2efe['parent'],'codeBlock');}(_0x56e1e9,_0x28632f['schema'])):Array['from'](_0x5ef807['getSelectedBlocks']())['filter'](_0x1d56b5=>eo(_0x1d56b5));const _0x22927c=to(_0x38da36,_0x28632f);_0x28632f['change'](()=>{for(const _0x25e8d6 of _0x22927c)_0xd02e81['markBlockFormat'](_0x25e8d6,{'commandName':'codeBlock','commandParams':[{..._0x60d10a,'forceValue':_0x367110}],'formatGroupId':'blockName'});});}),(_0xd02e81['descriptionFactory']['registerElementLabel']('codeBlock',_0x3b1633=>c(_0x52799d,'ELEMENT_CODE_BLOCK',_0x3b1633)),_0xd02e81['descriptionFactory']['registerDescriptionCallback'](_0x46f653=>{if('formatBlock'!=_0x46f653['type'])return;const _0x5e34d9=_0x52799d['t'],{data:_0x38aef4}=_0x46f653;if(!_0x38aef4||'codeBlock'!=_0x38aef4['commandName'])return;const _0x3e77f4=_0x38aef4['commandParams'][0x0]['language'],_0x11ad70=_0x5e34d9(_0x53198c['find'](_0x224d80=>_0x224d80['language']===_0x3e77f4)['label'])['toLowerCase']();return _0x38aef4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x52799d,'*Set\x20format:*\x20%0',c(_0x52799d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x11ad70+')')}:{'type':'format','content':c(_0x52799d,'*Remove\x20format:*\x20%0',c(_0x52799d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x56d985){return'codeBlock'==_0x56d985['name'];}class q extends _0x5c1181{['afterInit'](){const _0x265688=this['editor'];if(!_0x265688['plugins']['has']('CommentsEditing'))return;_0x265688['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x526168,_0x993381,_0x442a68){const _0x53b619=[];for(const _0x1bbcd2 of _0x993381['getItems']())_0x1bbcd2['hasAttribute'](_0x526168)&&_0x53b619['push'](_0x442a68['createRangeOn'](_0x1bbcd2));return _0x53b619;}function Fe(_0x492738,_0x2cfb4f,{showActiveMarker:_0x426d64=!0x0}={}){const _0x54d2ae=_0x492738['plugins']['get']('TrackChangesEditing');return(_0x96f765,_0xfb21b5,_0xd95da)=>{if(!_0xd95da['consumable']['test'](_0xfb21b5['markerRange'],_0x96f765['name']))return;const _0x26e343=_0xfb21b5['markerRange']['getWalker'](),_0x3041e0=_0xfb21b5['markerRange']['start'],_0x5210a2=_0x492738['model']['schema'];let _0x254b92=null,_0x1a8f60=null,_0xb2168f=!0x1,_0x5d1511=!0x1;for(const _0x10e846 of _0x26e343){const _0x3b08ac=_0x10e846['item'];_0xb2168f=_0xb2168f||_0x5210a2['isContent'](_0x3b08ac);const _0x20dda5=_0xd95da['mapper']['toViewElement'](_0x3b08ac);if(_0x20dda5&&_0x20dda5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x10e846['type']&&(_0x5210a2['isBlock'](_0x3b08ac)&&!_0x5210a2['isLimit'](_0x3b08ac)&&(_0x3b08ac['nextSibling']||_0x3041e0['isAtEnd']?_0x254b92&&_0x254b92['parent']==_0x3b08ac||(_0x254b92=_0x3b08ac,_0x39af97(_0x10e846['previousPosition']),_0x5d1511=!0x0):_0x1a8f60=_0x1a8f60||_0x10e846['previousPosition']));}function _0x39af97(_0x35343a){const {id:_0x466927,authorId:_0xe1afb7}=_0x54d2ae['_splitMarkerName'](_0xfb21b5['markerName']),_0x25a56a=_0xd95da['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2cfb4f,'data-suggestion':_0x466927,'data-author-id':_0xe1afb7}),_0x2a6488=_0xd95da['mapper']['toViewPosition'](_0x35343a);_0x426d64&&_0x54d2ae['activeMarkers']['includes'](_0xfb21b5['markerName'])&&_0xd95da['writer']['addClass']('ck-suggestion-marker--active',_0x25a56a),_0xd95da['writer']['insert'](_0x2a6488,_0x25a56a),_0xd95da['mapper']['bindElementToMarker'](_0x25a56a,_0xfb21b5['markerName']);}_0xb2168f||_0x5d1511||!_0x1a8f60||_0x39af97(_0x1a8f60);};}class z extends _0x5c1181{static get['requires'](){return[_0x29e068];}['init'](){const _0x2253d0=this['editor'],_0x51b3d8=_0x2253d0['plugins']['get']('TrackChangesEditing');_0x51b3d8['enableCommand']('delete');const _0xf4be99=_0x2253d0['commands']['get']('deleteForward');_0x51b3d8['enableCommand']('deleteForward',(_0x3c8120,_0x1c9659={})=>{const _0x2d38bd=_0x2253d0['model']['createSelection'](_0x2253d0['model']['document']['selection']);_0x2d38bd['isCollapsed']&&_0x2253d0['model']['modifySelection'](_0x2d38bd,{'direction':'forward','unit':_0x1c9659['unit']});const _0x1f4ce0=_0x2d38bd['getFirstRange'](),_0x36f3db=_0x597cd7['fromRange'](_0x1f4ce0);let _0x34f5d5;_0x3c8120(_0x1c9659),_0x34f5d5='$graveyard'==_0x36f3db['root']['rootName']?_0x2253d0['model']['createRange'](_0x1f4ce0['start']):_0x2253d0['model']['createRange'](_0x36f3db['start'],_0x36f3db['end']),_0x36f3db['detach'](),_0x2253d0['model']['enqueueChange'](_0xf4be99['buffer']['batch'],_0x8d0435=>{_0xf4be99['buffer']['lock'](),_0x8d0435['setSelection'](_0x8d0435['createRange'](_0x34f5d5['end'])),_0xf4be99['buffer']['unlock']();});}),_0x2253d0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x2253d0,'merge'),{'priority':'high'}),_0x2253d0['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x85b199,_0x6b63d0,_0x1fef67)=>{_0x1fef67['options']['showSuggestionHighlights']&&Fe(_0x2253d0,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x85b199,_0x6b63d0,_0x1fef67);},{'priority':'high'}),_0x2253d0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4fc11b,_0x26648f,_0x1d974b)=>{const _0x891678=_0x1d974b['mapper']['markerNameToElements'](_0x26648f['markerName']);if(_0x891678){for(const _0xd99ab4 of _0x891678)_0xd99ab4['is']('uiElement')&&(_0x1d974b['mapper']['unbindElementFromMarkerName'](_0xd99ab4,_0x26648f['markerName']),_0x1d974b['writer']['remove'](_0xd99ab4));}},{'priority':'high'});}}class W extends _0x5c1181{['afterInit'](){const _0x2d6839=this['editor'];if(!_0x2d6839['plugins']['has']('ListEditing'))return;const _0xf5461f=_0x2d6839['locale'],_0x738265=_0x2d6839['plugins']['get']('TrackChangesEditing'),_0x279f57=_0x2d6839['plugins']['has']('TodoListEditing'),_0x41335c=!!_0x2d6839['config']['get']('list.multiBlock');function _0x59192e(_0x51463c){return{'type':'format','content':''+c(_0xf5461f,'*Set\x20format:*\x20%0',_0x51463c)};}function _0x1ddd7f(_0x374e3c){return{'type':'format','content':''+c(_0xf5461f,'*Remove\x20format:*\x20%0',_0x374e3c)};}_0x738265['enableDefaultAttributesIntegration']('numberedList'),_0x738265['enableDefaultAttributesIntegration']('bulletedList'),_0x738265['enableDefaultAttributesIntegration']('customNumberedList'),_0x738265['enableDefaultAttributesIntegration']('customBulletedList'),_0x738265['enableDefaultAttributesIntegration']('indentList'),_0x738265['enableDefaultAttributesIntegration']('outdentList'),_0x738265['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x738265['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x738265['registerBlockAttribute']('listItemId'),_0x738265['registerBlockAttribute']('listType'),_0x738265['registerBlockAttribute']('listIndent'),_0x41335c&&(_0x738265['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x738265['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x279f57&&(_0x738265['enableDefaultAttributesIntegration']('todoList'),_0x738265['enableDefaultAttributesIntegration']('checkTodoList'),_0x738265['registerBlockAttribute']('todoListChecked'),_0x738265['descriptionFactory']['registerDescriptionCallback'](_0x509a6a=>{const {data:_0x9e620b}=_0x509a6a;if(_0x9e620b&&'todoListChecked'==_0x9e620b['key'])return{'type':'format','content':_0x9e620b['newValue']?c(_0xf5461f,'*Check\x20item*'):c(_0xf5461f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x558aa1=>{if(_0x558aa1['batch']['isUndo'])return!0x1;let _0x4f452f=!0x1;const _0x4eb5c9=_0x738265['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9860c1=>'todoListChecked'===_0x738265['_getAttributeKey'](_0x9860c1));for(const _0x26783a of _0x4eb5c9){'todo'!=_0x26783a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x738265['_findSuggestions'](_0x26783a['getFirstRange'](),'attribute')['find'](_0x15f672=>'listType'===_0x738265['_getAttributeKey'](_0x15f672['suggestion']))||(_0x558aa1['removeMarker'](_0x26783a['getFirstMarker']()),_0x4f452f=!0x0));}return _0x4f452f;})),_0x738265['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0xf5461f,'FORMAT_INDENT'));const _0x366a59={'type':'format','content':''};_0x738265['descriptionFactory']['registerDescriptionCallback'](_0x59d2ec=>{const {data:_0x47e9d2}=_0x59d2ec;if(!_0x47e9d2||'listType'!=_0x47e9d2['key'])return;let _0x15dcf1=_0x59d2ec['head'];for(;_0x15dcf1;){if(_0x15dcf1['data']&&(('listStyle'==_0x15dcf1['data']['key']||'listMarkerStyle'==_0x15dcf1['data']['key'])&&(_0x15dcf1['data']['newValue']&&'default'!=_0x15dcf1['data']['newValue']||'default'!=_0x15dcf1['data']['oldValue']&&!_0x47e9d2['newValue'])||!_0x41335c&&_0x15dcf1['data']['key']==u))return _0x366a59;_0x15dcf1=_0x15dcf1['next'];}if(null==_0x47e9d2['newValue'])switch(_0x47e9d2['oldValue']){case'bulleted':return _0x1ddd7f(c(_0xf5461f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1ddd7f(c(_0xf5461f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1ddd7f(c(_0xf5461f,'ELEMENT_TODO_LIST'));}switch(_0x47e9d2['newValue']){case'bulleted':return _0x59192e(c(_0xf5461f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x59192e(c(_0xf5461f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x59192e(c(_0xf5461f,'ELEMENT_TODO_LIST'));}}),_0x738265['descriptionFactory']['registerDescriptionCallback'](_0x3f8a0e=>{const {data:_0x3d6a38}=_0x3f8a0e;if(_0x3d6a38&&'listIndent'==_0x3d6a38['key'])return null==_0x3d6a38['newValue']||null==_0x3d6a38['oldValue']&&0x0==_0x3d6a38['newValue']?_0x366a59:void 0x0;}),_0x738265['descriptionFactory']['registerDescriptionCallback'](_0x51cedf=>{if('attribute'!=_0x51cedf['type'])return;const {data:_0x53e0a1}=_0x51cedf;if(!_0x53e0a1||'listItemId'!=_0x53e0a1['key'])return;const _0x4530d2=Te(_0x51cedf);return'newValue'==_0x4530d2?{'type':'format','content':c(_0xf5461f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4530d2?{'type':'format','content':c(_0xf5461f,'*Split:*\x20list\x20item')}:_0x366a59;}),_0x2d6839['model']['document']['registerPostFixer'](_0x401504=>this['listItemIdFixer'](_0x401504)),_0x2d6839['model']['document']['registerPostFixer'](_0x37801d=>this['noTrackChangesFixer'](_0x37801d)),_0x2d6839['model']['document']['on']('change:data',(_0x325991,_0x53ee05)=>{if(_0x53ee05['isUndo']||!_0x53ee05['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x17f886){if(_0x17f886['batch']['isUndo']||!_0x17f886['batch']['isLocal'])return!0x1;let _0x38beaa=!0x1;const _0x5e7b2f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8a061b=>_0x8a061b['data']&&'listItemId'==_0x8a061b['data']['key'])['filter'](_0x164279=>_0x164279['data']['newValue']&&_0x164279['data']['oldValue']);for(const _0x377961 of _0x5e7b2f)Te(_0x377961)||(_0x17f886['removeMarker'](_0x377961['getFirstMarker']()),_0x38beaa=!0x0);return _0x38beaa;}['noTrackChangesFixer'](_0x39821d){if(_0x39821d['batch']['isUndo']||!_0x39821d['batch']['isLocal'])return!0x1;const _0x2667b5=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2667b5['trackChangesCommand']['value'])return!0x1;let _0x3989e0=!0x1;const _0x5d0fc2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3e08e5=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x464bfe=>'attribute'==_0x464bfe['type'])['filter'](_0x219bf7=>_0x5d0fc2['includes'](_0x219bf7['attributeKey']));if(0x0==_0x3e08e5['length'])return _0x3989e0;for(const _0x400ac7 of _0x3e08e5){const _0x271e88=_0x2667b5['_findSuggestions'](_0x400ac7['range'],'attribute')['filter'](_0x52b029=>!_0x52b029['meta']['isNextTo'])['map'](_0x550b3c=>_0x550b3c['suggestion'])['filter'](_0x3703f7=>{const _0x415dae=_0x2667b5['_getAttributeKey'](_0x3703f7);return _0x5d0fc2['includes'](_0x415dae);});if(_0x271e88['length']){for(const _0x4750e1 of _0x271e88)_0x39821d['removeMarker'](_0x4750e1['getFirstMarker']());_0x3989e0=!0x0;}}return _0x3989e0;}['assureChains'](){const _0x52fa41=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52552d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2a8678;const _0x26faa6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x199866=>{if(_0x199866['data']['oldRange']||!_0x199866['data']['newRange'])return null;if(!_0x199866['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x39dfc2}=_0x52fa41['_splitMarkerName'](_0x199866['name']);if(!_0x52fa41['hasSuggestion'](_0x39dfc2))return null;const _0x1e031c=_0x52fa41['getSuggestion'](_0x39dfc2);return _0x52552d['includes'](_0x1e031c['data']['key']);})['map'](_0x445703=>{const {id:_0x362936}=_0x52fa41['_splitMarkerName'](_0x445703['name']),_0x1a27ed=_0x52fa41['getSuggestion'](_0x362936);return _0x2a8678=_0x1a27ed['attributes']['groupId'],_0x1a27ed['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x26faa6['size'])return;const _0x41162f=_0x52fa41['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19c5ee=>'attribute'==_0x19c5ee['type']&&_0x19c5ee['data']&&_0x52552d['includes'](_0x19c5ee['data']['key'])&&_0x19c5ee['attributes']['groupId']!=_0x2a8678)['map'](_0x46aea1=>({'listItem':_0x46aea1['getFirstRange']()['start']['nodeAfter'],'groupId':_0x46aea1['attributes']['groupId']})),_0x1cbd46=new Set();for(const {groupId:_0xd4ef51,listItem:_0x13a4b7}of _0x41162f)_0x26faa6['has'](_0x13a4b7)&&_0x1cbd46['add'](_0xd4ef51);for(const _0x48a0c4 of _0x52fa41['getSuggestions']())_0x1cbd46['has'](_0x48a0c4['attributes']['groupId'])&&_0x48a0c4['setAttribute']('groupId',_0x2a8678);}['_supportLegacySuggestions'](){const _0x5aa4e0=this['editor'],_0xc4e4af=_0x5aa4e0['locale'],_0x104093=_0x5aa4e0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x104093['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3d95db,_0x3bb836){const _0x3f764d=[];for(let _0x301378 of _0x3d95db)_0x301378['start']['nodeAfter']===_0x301378['end']['parent']&&(_0x301378=_0x5aa4e0['model']['createRange'](_0x5aa4e0['model']['createPositionAt'](_0x301378['start']['nodeAfter'],0x0))),_0x3f764d['push'](_0x301378);_0x5aa4e0['model']['change'](_0x292870=>{const _0x5dd78b=_0x5aa4e0['model']['document']['selection'],_0x2d94a7=Array['from'](_0x5dd78b['getRanges']())['map'](_0x2a38d1=>_0x597cd7['fromRange'](_0x2a38d1));_0x292870['setSelection'](_0x3f764d),_0x5aa4e0['commands']['get'](_0x3bb836['commandName'])['refresh'](),_0x3bb836['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5aa4e0['execute'](_0x3bb836['commandName'],..._0x3bb836['commandParams']),_0x292870['setSelection'](_0x2d94a7);for(const _0xe162eb of _0x2d94a7)_0xe162eb['detach']();});}),_0x104093['descriptionFactory']['registerElementLabel'](function(_0x1ef22a){const _0x204d62=!_0x5aa4e0['model']['schema']['isObject'](_0x1ef22a),_0x545f8d=_0x1ef22a['previousSibling'],_0x4557c1=_0x1ef22a['nextSibling'],_0x3a7b7f=_0x1ef22a['getAttribute']('listItemId'),_0x175866=!_0x545f8d||_0x545f8d['getAttribute']('listItemId')!==_0x3a7b7f,_0x246397=!_0x4557c1||_0x4557c1['getAttribute']('listItemId')!==_0x3a7b7f;return _0x204d62&&Boolean(_0x3a7b7f)&&_0x175866&&_0x246397;},_0x46946a=>c(_0xc4e4af,'ELEMENT_LIST_ITEM',_0x46946a));}['_registerLegacyDescription'](){const _0x56c742=this['editor'],_0xf95ee9=_0x56c742['locale'];function _0x567cc0(_0x5b6b4d){const _0x21aa34=_0x56c742['commands']['get']('bulletedList')['value'],_0x1f167a=_0x56c742['commands']['get']('numberedList')['value'];return'numberedList'===_0x5b6b4d?_0x21aa34:_0x1f167a;}_0x56c742['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x270e86){if('formatBlock'!=_0x270e86['type'])return;const {data:_0x1ead48}=_0x270e86;if(!_0x1ead48)return;let _0x4e1199,_0x575071,_0x519a85,_0x1d2a01;switch(_0x1ead48['commandName']){case'bulletedList':_0x519a85=_0x1ead48['commandParams'][0x0]['forceValue'],_0x1d2a01=_0x567cc0(_0x1ead48['commandName']),_0x4e1199=_0x519a85?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1d2a01&&_0x56c742['config']['get']('list.multiBlock')||(_0x4e1199='*Change\x20to:*\x20%0'),_0x575071={'type':'format','content':c(_0xf95ee9,_0x4e1199,c(_0xf95ee9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x519a85=_0x1ead48['commandParams'][0x0]['forceValue'],_0x1d2a01=_0x567cc0(_0x1ead48['commandName']),_0x4e1199=_0x519a85?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1d2a01&&_0x56c742['config']['get']('list.multiBlock')||(_0x4e1199='*Change\x20to:*\x20%0'),_0x575071={'type':'format','content':c(_0xf95ee9,_0x4e1199,c(_0xf95ee9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4e1199='*Indent:*\x20%0',_0x575071={'type':'format','content':c(_0xf95ee9,_0x4e1199,c(_0xf95ee9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4e1199=function(_0x2dc0b9){const _0x267140=_0x2dc0b9['getFirstRange']();let _0x421c34=_0x267140['start']['nodeAfter'];for(;_0x421c34&&_0x267140['containsItem'](_0x421c34);){if(_0x421c34['getAttribute']('listIndent')>0x0)return!0x1;_0x421c34=_0x421c34['nextSibling'];}return!0x0;}(_0x270e86)?c(_0xf95ee9,'*Format:*\x20remove\x20from\x20%0',c(_0xf95ee9,function(_0x336de2){return'ELEMENT_'+_0x336de2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x270e86))):c(_0xf95ee9,'*Outdent:*\x20%0',c(_0xf95ee9,'ELEMENT_LIST_ITEM')),_0x575071={'type':'format','content':_0x4e1199};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1ead48['multipleBlocks']&&(_0x4e1199='*Merge:*\x20%0',_0x575071={'type':'deletion','content':c(_0xf95ee9,_0x4e1199,c(_0xf95ee9,'ELEMENT_LIST_ITEM'))});}return _0x575071;});}}function Te(_0x45c33b){let _0x21ac2f=_0x45c33b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x21ac2f;){const _0x16b845=_0x21ac2f['getAttribute']('listItemId');if(!_0x16b845)return!0x1;if(_0x16b845==_0x45c33b['data']['newValue'])return'newValue';if(_0x16b845==_0x45c33b['data']['oldValue'])return'oldValue';_0x21ac2f=_0x21ac2f['previousSibling'];}return!0x1;}class Se extends _0x5c1181{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1531e5=this['editor']['config']['get']('list.properties'),_0x31983d=this['editor']['plugins']['get']('TrackChangesEditing');_0x1531e5['styles']&&(_0x31983d['enableDefaultAttributesIntegration']('listStyle'),_0x31983d['registerBlockAttribute']('listStyle')),_0x1531e5['reversed']&&(_0x31983d['enableDefaultAttributesIntegration']('listReversed'),_0x31983d['registerBlockAttribute']('listReversed')),_0x1531e5['startIndex']&&(_0x31983d['enableDefaultAttributesIntegration']('listStart'),_0x31983d['registerBlockAttribute']('listStart'));const _0x28b05b={'type':'format','content':''};_0x31983d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x8d45ef=this['editor']['locale'];_0x31983d['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x8d45ef,'FORMAT_LIST_REVERSED')),_0x31983d['descriptionFactory']['registerDescriptionCallback'](_0x5cf369=>{const {data:_0x4b35e2}=_0x5cf369;if(_0x4b35e2&&'listReversed'==_0x4b35e2['key'])return null==_0x4b35e2['newValue']||0x0==_0x4b35e2['newValue']&&null==_0x4b35e2['oldValue']?_0x28b05b:void 0x0;}),_0x31983d['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x8d45ef,'FORMAT_LIST_START')),_0x31983d['descriptionFactory']['registerDescriptionCallback'](_0x593be9=>{const {data:_0xe93ae}=_0x593be9;if(_0xe93ae&&'listStart'==_0xe93ae['key'])return null==_0xe93ae['newValue']||0x1==_0xe93ae['newValue']&&null==_0xe93ae['oldValue']?_0x28b05b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x29326f=>{if(_0x29326f['batch']['isUndo'])return!0x1;let _0x3d4a0d=!0x1;const _0x5ce55f=_0x31983d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc8577a=>{const _0x529b95=_0x31983d['_getAttributeKey'](_0xc8577a);return'listStart'==_0x529b95||'listReversed'==_0x529b95;});for(const _0x43862e of _0x5ce55f){const _0x58874e=_0x43862e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x58874e||'customNumbered'==_0x58874e)continue;_0x31983d['_findSuggestions'](_0x43862e['getFirstRange'](),'attribute')['find'](_0x6048dd=>'listType'==_0x31983d['_getAttributeKey'](_0x6048dd['suggestion']))||(_0x29326f['removeMarker'](_0x43862e['getFirstMarker']()),_0x3d4a0d=!0x0);}return _0x3d4a0d;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3a66b8){const _0x45ca7b=this['editor']['locale'],{data:_0x4818ac}=_0x3a66b8,_0x4fca21={'type':'format','content':''};if(!_0x4818ac||'listStyle'!=_0x4818ac['key'])return;if(!_0x4818ac['oldValue'])return'default'==_0x4818ac['newValue']?_0x4fca21:{'type':'format','content':''+c(_0x45ca7b,'*Set\x20format:*\x20%0',c(_0x45ca7b,this['_getTranslationKeyForListStyle'](_0x4818ac['newValue'])))};if(!_0x4818ac['newValue']){if('default'==_0x4818ac['oldValue'])return _0x4fca21;let _0x3ff3dd=_0x3a66b8['head'];for(;_0x3ff3dd;){if(_0x3ff3dd['data']&&'listType'==_0x3ff3dd['data']['key']&&_0x3ff3dd['data']['newValue'])return _0x4fca21;_0x3ff3dd=_0x3ff3dd['next'];}return{'type':'format','content':''+c(_0x45ca7b,'*Remove\x20format:*\x20%0',c(_0x45ca7b,this['_getTranslationKeyForListStyle'](_0x4818ac['oldValue'])))};}if('default'!=_0x4818ac['newValue'])return{'type':'format','content':''+c(_0x45ca7b,'*Set\x20format:*\x20%0',c(_0x45ca7b,this['_getTranslationKeyForListStyle'](_0x4818ac['newValue'])))};let _0x2b57c5=_0x3a66b8['head'];for(;_0x2b57c5;){if(_0x2b57c5['data']&&'listType'==_0x2b57c5['data']['key']&&_0x2b57c5['data']['newValue']&&_0x2b57c5['data']['oldValue'])return _0x4fca21;_0x2b57c5=_0x2b57c5['next'];}return{'type':'format','content':c(_0x45ca7b,'*Set\x20format:*\x20%0',c(_0x45ca7b,'ELEMENT_'+_0x3a66b8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x23c084=this['editor'],_0x2099a4=_0x23c084['locale'];_0x23c084['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x300188=>{if('formatBlock'!=_0x300188['type'])return;const {data:_0x1474a9}=_0x300188;if(!_0x1474a9)return;let _0x4a91f9,_0x3a8b9a;switch(_0x1474a9['commandName']){case'listStyle':_0x4a91f9='*Change\x20to:*\x20%0',_0x3a8b9a={'type':'format','content':c(_0x2099a4,_0x4a91f9,c(_0x2099a4,this['_getTranslationKeyForListStyle'](_0x1474a9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4a91f9=_0x1474a9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3a8b9a={'type':'format','content':c(_0x2099a4,_0x4a91f9)};break;case'listStart':_0x4a91f9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3a8b9a={'type':'format','content':c(_0x2099a4,_0x4a91f9,_0x1474a9['commandParams'][0x0]['startIndex'])};}return _0x3a8b9a;});}['_getTranslationKeyForListStyle'](_0x4d145a){return'ELEMENT_'+function(_0x236a02){if(_e['includes'](_0x236a02))return'bulleted';if(Re['includes'](_0x236a02))return'numbered';return null;}(_0x4d145a)['toUpperCase']()+'_LIST_'+_0x4d145a['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x5c1181{['afterInit'](){const _0x229418=this['editor'];_0x229418['commands']['get']('emoji')&&_0x229418['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x5c1181{static get['requires'](){return[_0x31970b];}['init'](){const _0xaf9800=this['editor'],_0x4d39e8=_0xaf9800['plugins']['get']('TrackChangesEditing'),_0x310dc6=_0xaf9800['commands']['get']('enter');_0x4d39e8['enableCommand']('enter',()=>{_0xaf9800['model']['change'](_0x19556d=>{const _0x369c59=_0xaf9800['model']['document']['selection'],_0x2ba90a=_0x369c59['getFirstPosition'](),_0xaf9574=_0x597cd7['fromRange'](_0x369c59['getFirstRange']());if(_0x310dc6['enterBlock'](_0x19556d)){const _0xd8ff24=_0xaf9800['model']['createPositionAt'](_0x2ba90a['parent']['nextSibling'],0x0),_0x2d6b97=_0x19556d['createRange'](_0x2ba90a,_0xd8ff24);_0x4d39e8['markInsertion'](_0x2d6b97);}else _0x19556d['setSelection'](_0x19556d['createRange'](_0xaf9574['end']));_0xaf9574['detach'](),_0x310dc6['fire']('afterExecute',{'writer':_0x19556d});});}),_0xaf9800['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0xaf9800,'split'),{'priority':'high'}),_0xaf9800['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5ea2d8,_0x404cfa,_0x40d9ff)=>{const _0xf8ef69=_0x40d9ff['mapper']['markerNameToElements'](_0x404cfa['markerName']);if(_0xf8ef69){for(const _0x3f5912 of _0xf8ef69)_0x3f5912['hasClass']('ck-suggestion-marker-split')&&(_0x40d9ff['mapper']['unbindElementFromMarkerName'](_0x3f5912,_0x404cfa['markerName']),_0x40d9ff['writer']['remove'](_0x3f5912));}},{'priority':'high'}),_0xaf9800['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x212d2a,_0x18fad3,_0x8df92d)=>{_0x8df92d['options']['showSuggestionHighlights']&&Fe(_0xaf9800,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x212d2a,_0x18fad3,_0x8df92d);},{'priority':'high'});}}class Z extends _0x5c1181{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x25984b=this['editor']['plugins']['get']('TrackChangesEditing');_0x25984b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x25984b['enableCommand']('findNext'),_0x25984b['enableCommand']('findPrevious'),_0x25984b['enableCommand']('replace'),_0x25984b['enableCommand']('replaceAll');}['handleFindCommand'](_0x109119,_0x2ef9ca,_0x1f1f59={}){const _0x574c91=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x109119(_0x4d7392=>{let _0x2f3223=('string'==typeof _0x2ef9ca?_0x574c91['findByTextCallback'](_0x2ef9ca,_0x1f1f59):_0x2ef9ca)(_0x4d7392);Array['isArray'](_0x2f3223)&&(_0x2f3223={'results':_0x2f3223,'searchText':'string'==typeof _0x2ef9ca?_0x2ef9ca:''});const _0x4bff32=_0x2f3223['results']['filter'](_0xceea2d=>!0x1===this['_isInDeletionRange'](_0xceea2d,_0x4d7392['item']));return{..._0x2f3223,'results':_0x4bff32};},_0x1f1f59);}['_isInDeletionRange'](_0x22db37,_0x2c8f2c){const _0x48906f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2c8f2c,_0x22db37['start']),this['editor']['model']['createPositionAt'](_0x2c8f2c,_0x22db37['end']));for(const _0x2f51cc of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x48906f['getIntersection'](_0x2f51cc['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 _0x5c1181{['afterInit'](){const _0x34b18c=this['editor']['locale'],_0x46c147=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x463737,commandName:_0xf4dc34}of ro)this['editor']['plugins']['has'](_0x463737)&&(_0x46c147['enableDefaultAttributesIntegration'](_0xf4dc34),_0x46c147['registerInlineAttribute'](_0xf4dc34));_0x46c147['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x34b18c,'FORMAT_FONT_SIZE')),_0x46c147['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x34b18c,'FORMAT_FONT_FAMILY')),_0x46c147['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x34b18c,'FORMAT_FONT_COLOR')),_0x46c147['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x34b18c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30b573=this['editor'],_0x9c6c6e=_0x30b573['locale'];_0x30b573['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39128d=>{const _0x4e695c=_0x9c6c6e['t'];if('formatInline'!=_0x39128d['type'])return;const {data:_0x421ed6}=_0x39128d;if(null!=_0x421ed6){if('fontSize'==_0x421ed6['commandName']){const _0x15e630=_0x421ed6['commandParams'][0x0]['value'];if(_0x15e630){const _0x3c54c8=_0x4e695c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1dd124=>_0x1dd124['model']==_0x15e630)['title'])['toLowerCase']();return{'type':'format','content':c(_0x9c6c6e,'*Set\x20font\x20size:*\x20%0',_0x3c54c8)};}return{'type':'format','content':c(_0x9c6c6e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x421ed6['commandName']){const _0x1e2ede=_0x421ed6['commandParams'][0x0]['value'];return _0x1e2ede?{'type':'format','content':c(_0x9c6c6e,'*Set\x20font\x20family:*\x20%0',_0x1e2ede)}:{'type':'format','content':c(_0x9c6c6e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x421ed6['commandName']){const _0xe0d6c3=_0x421ed6['commandParams'][0x0]['value'];if(_0xe0d6c3){const _0x43937b=_0x275dee(this['editor']['config']['get']('fontColor.colors'))['find'](_0x52967d=>_0x52967d['model']==_0xe0d6c3);let _0x518015=_0xe0d6c3,_0x4eed41='';return _0x43937b&&(_0x518015=_0x43937b['label'],_0x4eed41=_0x4e695c(_0x518015)['toLowerCase']()),{'type':'format','content':c(_0x9c6c6e,'*Set\x20font\x20color:*\x20%0',_0x4eed41)['trim'](),'color':{'value':_0xe0d6c3,'title':_0x4eed41||_0x518015}};}return{'type':'format','content':c(_0x9c6c6e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x421ed6['commandName']){const _0x3e76f3=_0x421ed6['commandParams'][0x0]['value'];if(_0x3e76f3){const _0x34b4f4=_0x275dee(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x142db0=>_0x142db0['model']==_0x3e76f3);let _0x302173=_0x3e76f3,_0x4cb19c='';return _0x34b4f4&&(_0x302173=_0x34b4f4['label'],_0x4cb19c=_0x4e695c(_0x302173)['toLowerCase']()),{'type':'format','content':c(_0x9c6c6e,'*Set\x20font\x20background\x20color:*\x20%0',_0x4cb19c)['trim'](),'color':{'value':_0x3e76f3,'title':_0x4cb19c||_0x302173}};}return{'type':'format','content':c(_0x9c6c6e,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x5c1181{['afterInit'](){const _0x42d2d6=this['editor'],_0x27b302=_0x42d2d6['plugins']['get']('TrackChangesEditing'),_0x2a1e9c=_0x42d2d6['commands']['get']('copyFormat'),_0x19a8a8=_0x42d2d6['commands']['get']('pasteFormat');_0x2a1e9c&&_0x19a8a8&&(_0x27b302['enableDefaultAttributesIntegration']('pasteFormat'),_0x27b302['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2f2813=this['editor'],_0x559d54=_0x2f2813['locale'];_0x2f2813['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e35b1=>{if('formatBlock'!=_0x2e35b1['type']&&'formatInline'!=_0x2e35b1['type'])return;const {data:_0x2ea49f}=_0x2e35b1;if(_0x2ea49f&&'pasteFormat'===_0x2ea49f['commandName']){const _0x530044=[],_0x3c40d4=_0x2ea49f['commandParams'][0x0];for(const [_0x377933,_0x1e7ae2]of Object['entries'](_0x3c40d4))_0x530044['push'](so(_0x2f2813,_0x377933,_0x1e7ae2));return _0x530044['length']?{'type':'format','content':c(_0x559d54,'*Set\x20format\x20to:*\x20%0',_0x530044['join'](',\x20'))}:{'type':'format','content':c(_0x559d54,'*Remove\x20all\x20formatting*')};}});}}function so(_0x487abe,_0xce948e,_0x2445d1){const _0x50e32e=_0x487abe['locale']['t'],_0x3c6f52=_0xce948e['split'](/(?=[A-Z])/)['join']('\x20'),_0x25ab63=_0x50e32e(_0x3c6f52['charAt'](0x0)['toUpperCase']()+_0x3c6f52['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2445d1)return _0x25ab63;if('fontColor'===_0xce948e||'fontBackgroundColor'===_0xce948e){const _0x2fe621=_0x275dee(_0x487abe['config']['get']('fontColor.colors'))['find'](_0x5ef219=>_0x5ef219['model']==_0x2445d1);return _0x25ab63+'\x20('+(_0x2fe621?_0x50e32e(_0x2fe621['label'])['toLowerCase']():_0x2445d1)+')';}if('fontSize'===_0xce948e&&isNaN(parseFloat(_0x2445d1))){const _0x1e1c12=_0x487abe['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x487abe['config']['get']('fontSize.options'))['find'](_0x374d8f=>_0x374d8f['model']==_0x2445d1);return _0x25ab63+'\x20('+(_0x1e1c12?_0x50e32e(_0x1e1c12['title'])['toLowerCase']():_0x2445d1)+')';}return _0x25ab63+'\x20('+_0x2445d1+')';}class et extends _0x5c1181{['_headingOptions'];['afterInit'](){const _0x5b7de6=this['editor'];if(!_0x5b7de6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5b7de6['config']['get']('heading.options');const _0x4cf315=_0x5b7de6['locale'],_0x759bc3=_0x5b7de6['plugins']['get']('TrackChangesEditing');_0x759bc3['enableDefaultAttributesIntegration']('heading');for(const _0x45e9dd of this['_headingOptions'])'paragraph'!=_0x45e9dd['model']&&_0x759bc3['descriptionFactory']['registerElementLabel'](_0x45e9dd['model'],_0x13d7be=>{const _0xcdb62=this['_getHeadingLevel'](_0x45e9dd['model']);return null!==_0xcdb62?_0x32b127(_0x13d7be,_0xcdb62):_0x3589cd(_0x13d7be,_0x45e9dd['title']);});function _0x32b127(_0x53d150,_0x4a469e){return c(_0x4cf315,'ELEMENT_HEADING',[_0x53d150,_0x4a469e]);}function _0x3589cd(_0x5e278a,_0x5e2ecb){return c(_0x4cf315,'ELEMENT_HEADING_CUSTOM',[_0x5e278a,_0x5e2ecb]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e1a93=this['editor'],_0x31ca00=_0x1e1a93['locale'];function _0x71cf77(_0xce456e,_0x444774){return c(_0x31ca00,'ELEMENT_HEADING_CUSTOM',[_0xce456e,_0x444774]);}_0x1e1a93['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f6937=>{if('formatBlock'!=_0x2f6937['type'])return;const {data:_0x39fd48}=_0x2f6937;if(_0x39fd48&&'heading'==_0x39fd48['commandName']){const _0x3f3388=_0x39fd48['commandParams'][0x0]['value'],_0x43cf02=this['_getHeadingLevel'](_0x3f3388);if(null!==_0x43cf02)return{'type':'format','content':c(_0x31ca00,'*Change\x20to:*\x20%0',(_0xaf069=0x1,_0x3b9dd4=_0x43cf02,c(_0x31ca00,'ELEMENT_HEADING',[_0xaf069,_0x3b9dd4])))};const _0x3f80fa=this['_headingOptions']['find'](_0x29adad=>_0x29adad['model']===_0x3f3388)['title'];return{'type':'format','content':c(_0x31ca00,'*Change\x20to:*\x20%0',_0x71cf77(0x1,_0x3f80fa))};}var _0xaf069,_0x3b9dd4;});}['_getHeadingLevel'](_0x107558){const _0x10f4f5=_0x107558['match'](/^heading(\d+)/);if(_0x10f4f5)return _0x10f4f5[0x1];const _0x4a3199=this['_headingOptions']?.['find'](_0x34926c=>_0x34926c['model']==_0x107558);if(_0x4a3199&&_0x4a3199['view']){const _0x1353b6=_0x4a3199['view'],_0x4eed2b=(_0x1353b6['name']??_0x1353b6)['match'](/^h(\d+)/);if(_0x4eed2b)return _0x4eed2b[0x1];}return null;}}class nt extends _0x5c1181{['afterInit'](){const _0x35b5f4=this['editor'];if(!_0x35b5f4['plugins']['has']('HighlightEditing'))return;const _0x41e01d=_0x35b5f4['plugins']['get']('TrackChangesEditing'),_0x313c2a=_0x35b5f4['locale'];_0x41e01d['enableDefaultAttributesIntegration']('highlight'),_0x41e01d['registerInlineAttribute']('highlight'),_0x41e01d['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x313c2a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x512dd1=this['editor'],_0x28287c=_0x512dd1['locale'];_0x512dd1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3efde5=>{if('formatInline'!=_0x3efde5['type'])return;const {data:_0x6d3670}=_0x3efde5;if(_0x6d3670&&'highlight'==_0x6d3670['commandName']){const _0x211986=_0x28287c['t'],_0x5b939e=_0x6d3670['commandParams'][0x0]['value'];if(_0x5b939e){const _0x11faed=_0x512dd1['config']['get']('highlight.options')['find'](_0x8f2101=>_0x8f2101['model']==_0x5b939e),_0x3af5aa=_0x211986(_0x11faed['title'])['toLowerCase']();return{'type':'format','content':c(_0x28287c,'*Set\x20highlight:*\x20%0',_0x3af5aa),'color':{'value':_0x11faed['color'],'title':_0x11faed['title']}};}return{'type':'format','content':c(_0x28287c,'*Remove\x20highlight*',c(_0x28287c,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x5c1181{['afterInit'](){const _0xc09fd8=this['editor'];if(!_0xc09fd8['plugins']['has']('HorizontalLineEditing'))return;_0xc09fd8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5394e8=_0xc09fd8['plugins']['get']('TrackChangesEditing'),_0x8b7eff=_0xc09fd8['locale'];_0x5394e8['descriptionFactory']['registerElementLabel']('horizontalLine',_0x290e68=>c(_0x8b7eff,'ELEMENT_HORIZONTAL_LINE',_0x290e68)),_0xc09fd8['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3b8055,{writer:_0x2ac288,options:_0x35cd72})=>{if(!_0x35cd72['showSuggestionHighlights'])return null;const _0x2e1909=_0x2ac288['createContainerElement']('div'),_0x134878=_0x2ac288['createEmptyElement']('hr');return _0x2ac288['addClass']('ck-horizontal-line',_0x2e1909),_0x2ac288['insert'](_0x2ac288['createPositionAt'](_0x2e1909,0x0),_0x134878),_0x2e1909;},'converterPriority':'high'});}}class ot extends _0x5c1181{['afterInit'](){const _0x5ad426=this['editor'];if(!_0x5ad426['plugins']['has']('HtmlEmbed'))return;const _0x4dcbe9=_0x5ad426['plugins']['get']('TrackChangesEditing'),_0x56a21a=_0x5ad426['locale'];_0x4dcbe9['descriptionFactory']['registerElementLabel']('rawHtml',_0x2955f8=>c(_0x56a21a,'ELEMENT_HTML_EMBED',_0x2955f8)),_0x4dcbe9['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4dcbe9['registerBlockAttribute']('value'),_0x4dcbe9['descriptionFactory']['registerDescriptionCallback'](_0x323474=>{if('attribute'!=_0x323474['type'])return;const {data:_0x2f7787}=_0x323474;if(_0x2f7787&&'value'==_0x2f7787['key']&&_0x323474['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x18718b=c(_0x56a21a,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x56a21a,'*Change\x20%0\x20content*',_0x18718b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b9b8f=this['editor'],_0x31b8b9=_0x5b9b8f['locale'];_0x5b9b8f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d3cdb=>{if('formatBlock'!=_0x3d3cdb['type'])return;const {data:_0x30cb4b}=_0x3d3cdb;if(_0x30cb4b&&'htmlEmbed'==_0x30cb4b['commandName']){const _0x1f31ef=c(_0x31b8b9,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x31b8b9,'*Change\x20%0\x20content*',_0x1f31ef)};}});}}class rt extends _0x5c1181{['afterInit'](){const _0x53d61f=this['editor'];if(!_0x53d61f['plugins']['has']('ImageEditing'))return;const _0x37c1a6=_0x53d61f['plugins']['get']('TrackChangesEditing'),_0x25851b=_0x53d61f['plugins']['get']('ImageUtils'),_0x297627=_0x53d61f['locale'];_0x37c1a6['enableCommand']('insertImage'),_0x37c1a6['descriptionFactory']['registerElementLabel']('imageBlock',_0x17393f=>c(_0x297627,'ELEMENT_IMAGE',_0x17393f)),_0x37c1a6['descriptionFactory']['registerElementLabel']('imageInline',_0x257179=>c(_0x297627,'ELEMENT_INLINE_IMAGE',_0x257179)),_0x37c1a6['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x297627,'ELEMENT_CAPTION')),_0x53d61f['plugins']['has']('ImageUploadEditing')&&_0x37c1a6['enableCommand']('uploadImage'),_0x53d61f['plugins']['has']('ImageBlockEditing')&&_0x53d61f['plugins']['has']('ImageInlineEditing')&&(_0x37c1a6['enableCommand']('imageTypeInline',(_0x16a32f,_0xcbd25e)=>{const _0x111385=_0x25851b['getClosestSelectedImageElement'](_0x53d61f['model']['document']['selection']);_0x53d61f['model']['change'](()=>{_0x37c1a6['markBlockFormat'](_0x111385,{'commandName':'imageTypeInline','commandParams':[_0xcbd25e]},[],'convertBlockImageToInline');});}),_0x37c1a6['enableCommand']('imageTypeBlock',(_0xaeacf3,_0x182b47)=>{_0x53d61f['model']['change'](_0x4ef4fc=>{let _0x538b7e=_0x25851b['getClosestSelectedImageElement'](_0x53d61f['model']['document']['selection']),_0x16639e=_0x4ef4fc['createRangeOn'](_0x538b7e);const _0x51fef3=_0xcc0df3['fromPosition'](_0x16639e['start'],'toPrevious'),_0xd9902d=_0xcc0df3['fromPosition'](_0x16639e['end'],'toNext');_0x37c1a6['forceDefaultExecution'](()=>_0xaeacf3(_0x182b47)),_0x538b7e=_0x25851b['getClosestSelectedImageElement'](_0x53d61f['model']['document']['selection']),_0x16639e=_0x4ef4fc['createRangeOn'](_0x538b7e);const _0x327745=_0x4ef4fc['createRange'](_0x51fef3,_0xd9902d);_0x51fef3['detach'](),_0xd9902d['detach'](),_0x37c1a6['markBlockFormat'](_0x538b7e,{'commandName':'imageTypeInline','commandParams':[_0x182b47]},[],'convertInlineImageToBlock'),_0x327745['start']['isBefore'](_0x16639e['start'])&&_0x37c1a6['markInsertion'](_0x4ef4fc['createRange'](_0x327745['start'],_0x16639e['start']),'convertInlineImageToBlock'),_0x16639e['end']['isBefore'](_0x327745['end'])&&_0x37c1a6['markInsertion'](_0x4ef4fc['createRange'](_0x16639e['end'],_0x327745['end']),'convertInlineImageToBlock');});}),_0x37c1a6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x37c1a6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x37c1a6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x37c1a6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x37c1a6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x37c1a6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3b62cf])=>{const _0x510553=_0x37c1a6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x19c6ef=_0x3b62cf['start'],_0x27a82b=_0x3b62cf['end'];const _0xfc9c00=_0x53d61f['model']['schema']['getNearestSelectionRange'](_0x19c6ef,'backward'),_0x2f615b=_0x53d61f['model']['schema']['getNearestSelectionRange'](_0x27a82b,'forward');_0xfc9c00['isCollapsed']&&(_0x19c6ef=_0xfc9c00['start']),_0x2f615b['isCollapsed']&&(_0x27a82b=_0x2f615b['end']),_0x510553([_0x53d61f['model']['createRange'](_0x19c6ef,_0x27a82b)]);}),_0x37c1a6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xd3a944),_0x37c1a6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xd3a944)),_0x53d61f['plugins']['has']('ImageCaptionEditing')&&(_0x37c1a6['enableCommand']('toggleImageCaption',(_0x1f328a,_0x47e182)=>{const _0x4a2a00=_0x53d61f['plugins']['get']('ImageCaptionUtils');let _0x53337c=_0x25851b['getClosestSelectedImageElement'](_0x53d61f['model']['document']['selection']),_0xf6c982=_0x4a2a00['getCaptionFromImageModelElement'](_0x53337c);_0x53d61f['model']['change'](()=>{if(_0xf6c982)return void _0x37c1a6['markDeletion'](_0x53d61f['model']['createRangeOn'](_0xf6c982));const _0x1fb151=_0x25851b['isBlockImage'](_0x53337c);_0x1f328a(_0x47e182),_0x53337c=_0x25851b['getClosestSelectedImageElement'](_0x53d61f['model']['document']['selection']),_0xf6c982=_0x4a2a00['getCaptionFromImageModelElement'](_0x53337c),_0x37c1a6['markInsertion'](_0x53d61f['model']['createRangeOn'](_0xf6c982),_0x1fb151?null:'imageCaption');});}),_0x37c1a6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xd3a944));const _0x31aaff=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x47909a(_0xbe84dc,_0x2f4c20){const _0x14ce0f=_0x31aaff['findIndex'](({type:_0x370c95,subType:_0x100d57})=>_0xbe84dc['type']==_0x370c95&&_0xbe84dc['subType']==_0x100d57),_0x5d5743=_0x31aaff['findIndex'](({type:_0x42182d,subType:_0x5dfd80})=>_0x2f4c20['type']==_0x42182d&&_0x2f4c20['subType']==_0x5dfd80);if(_0x14ce0f<0x0||_0x5d5743<0x0)return!0x1;const _0x4f54ad=_0xbe84dc['getFirstRange'](),_0x4f1ee7=_0x2f4c20['getFirstRange']();if((0x0==_0x14ce0f||0x1==_0x14ce0f)&&0x2==_0x5d5743&&_0x4f54ad['isIntersecting'](_0x4f1ee7))return!0x0;if(0x2==_0x14ce0f&&0x3==_0x5d5743){const _0xaa51d1=_0x37c1a6['_findSuggestions'](_0x4f54ad,'insertion')['filter'](({suggestion:_0x184053,meta:_0x3940d6})=>_0x3940d6['isOwn']&&'convertInlineImageToBlock'==_0x184053['subType']);if(_0xaa51d1['length']>0x1&&_0x4f1ee7['end']['isEqual'](_0x4f54ad['start']))return!0x0;if(0x1==_0xaa51d1['length']&&(_0x4f54ad['start']['isEqual'](_0x4f1ee7['end'])||_0x4f54ad['end']['isEqual'](_0x4f1ee7['start'])))return!0x0;}if(0x3==_0x14ce0f&&0x3==_0x5d5743&&_0x4f54ad['start']['isBefore'](_0x4f1ee7['start'])){const _0x494cb4=_0x4f54ad['end']['nodeAfter'],_0xc5ad86=_0x4f1ee7['start']['nodeBefore'];return _0x25851b['isBlockImage'](_0x494cb4)&&_0x494cb4===_0xc5ad86;}return!0x1;}function _0xd3a944(_0x34e9fb,_0x20853e){return _0x47909a(_0x34e9fb,_0x20853e)?[_0x34e9fb,_0x20853e]:_0x47909a(_0x20853e,_0x34e9fb)?[_0x20853e,_0x34e9fb]:null;}_0x53d61f['plugins']['has']('ImageResize')&&(_0x37c1a6['enableDefaultAttributesIntegration']('resizeImage'),_0x37c1a6['registerBlockAttribute']('resizedWidth'),_0x37c1a6['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x297627,'FORMAT_IMAGE_SIZE'))),_0x53d61f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x37c1a6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x37c1a6['registerBlockAttribute']('alt')),_0x53d61f['plugins']['has']('PictureEditing')&&(_0x37c1a6['registerBlockAttribute']('sources'),_0x37c1a6['descriptionFactory']['registerDescriptionCallback'](_0x54d3c9=>{if('attribute'!=_0x54d3c9['type'])return;const {data:_0xf82a1f}=_0x54d3c9;return _0xf82a1f&&'sources'==_0xf82a1f['key']?{'type':'format','content':''}:void 0x0;})),_0x53d61f['plugins']['has']('ImageSizeAttributes')&&(_0x37c1a6['registerBlockAttribute']('width'),_0x37c1a6['registerBlockAttribute']('height'),_0x37c1a6['descriptionFactory']['registerDescriptionCallback'](_0x53e055=>{if('attribute'!=_0x53e055['type'])return;const {data:_0x1a4ee0}=_0x53e055;return!_0x1a4ee0||'width'!=_0x1a4ee0['key']&&'height'!=_0x1a4ee0['key']?void 0x0:{'type':'format','content':''};})),_0x37c1a6['descriptionFactory']['registerDescriptionCallback'](_0x16b107=>{if(!!_0x31aaff['find'](({type:_0x40368b,subType:_0x38984e})=>_0x16b107['type']==_0x40368b&&_0x16b107['subType']==_0x38984e))return _0x16b107['previous']?{}:void 0x0;}),_0x37c1a6['descriptionFactory']['registerDescriptionCallback'](_0x4ad534=>{if('insertion'==_0x4ad534['type']||'deletion'==_0x4ad534['type']){const _0x92a124=_0x4ad534['getContainedElement']();if(_0x92a124&&_0x92a124['is']('element','caption'))return{'type':'insertion'==_0x4ad534['type']?'addObject':'removeObject','element':_0x92a124,'quantity':0x1};}}),_0x37c1a6['descriptionFactory']['registerDescriptionCallback'](_0x526906=>'formatBlock'==_0x526906['type']&&'convertInlineImageToBlock'==_0x526906['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x526906['type']&&'convertBlockImageToInline'==_0x526906['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x37c1a6['descriptionFactory']['registerDescriptionCallback'](_0x1d102a=>{if('attribute'!=_0x1d102a['type'])return;const {data:_0xc3837c}=_0x1d102a;if(!_0xc3837c||'alt'!=_0xc3837c['key'])return;const _0x252592=_0xc3837c['newValue'];return _0x252592?{'type':'format','content':c(_0x297627,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x252592+'\x22')}:{'type':'format','content':c(_0x297627,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ec4af=this['editor'],_0x40c06a=_0x3ec4af['locale'];_0x3ec4af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26a69d=>{if('formatBlock'!=_0x26a69d['type']&&'formatInline'!=_0x26a69d['type'])return;const {data:_0xed4f5c}=_0x26a69d;if(_0xed4f5c){if('imageTextAlternative'==_0xed4f5c['commandName']){const _0x302a57=_0xed4f5c['commandParams'][0x0]['newValue'];return _0x302a57?{'type':'format','content':c(_0x40c06a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x302a57+'\x22')}:{'type':'format','content':c(_0x40c06a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xed4f5c['commandName']){const _0x62e665=_0xed4f5c['commandParams'][0x0]['width'];return _0x62e665?{'type':'format','content':c(_0x40c06a,'*Set\x20image\x20width:*\x20%0',_0x62e665)}:{'type':'format','content':c(_0x40c06a,'*Reset\x20image\x20width*')};}}});}}class at extends _0x5c1181{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x424a7f=this['editor']['locale'],_0x812c40=this['editor']['plugins']['get']('TrackChangesEditing');_0x812c40['enableDefaultAttributesIntegration']('replaceImageSource'),_0x812c40['registerBlockAttribute']('src'),_0x812c40['descriptionFactory']['registerDescriptionCallback'](_0x1aa157=>{if('attribute'!=_0x1aa157['type'])return;const {data:_0x5aebbd}=_0x1aa157;return _0x5aebbd&&'src'==_0x5aebbd['key']?_0x5aebbd['newValue']&&_0x5aebbd['oldValue']?{'type':'format','content':c(_0x424a7f,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x43c68d=this['editor']['plugins']['get']('TrackChangesEditing');_0x43c68d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x43c68d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x43c68d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x43c68d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ae9cb=this['editor'],_0x51d09e=_0x3ae9cb['locale'];_0x3ae9cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22aafe=>{if('formatBlock'!=_0x22aafe['type']&&'formatInline'!=_0x22aafe['type'])return;const {data:_0x33a43e}=_0x22aafe;if(!_0x33a43e||'replaceImageSource'!=_0x33a43e['commandName'])return;return{'type':'format','content':c(_0x51d09e,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x5c1181{['afterInit'](){const _0x3d71ce=this['editor'];if(!_0x3d71ce['plugins']['has']('ImageStyleEditing'))return;const _0x4ca04a=_0x3d71ce['plugins']['get']('TrackChangesEditing'),_0x28e8d8=_0x3d71ce['plugins']['get']('ImageUtils'),_0x3fbc86={};_0x4ca04a['enableCommand']('imageStyle',(_0x21465e,_0x587fa8)=>{const _0x10c8b8=_0x3d71ce['plugins']['get']('Users')['me'],_0xb28fe3=_0x3d71ce['commands']['get']('imageStyle');let _0x5e42e0=_0x28e8d8['getClosestSelectedImageElement'](_0x3d71ce['model']['document']['selection']),_0x45a081=_0x3d71ce['model']['createRangeOn'](_0x5e42e0),_0x26d149=_0xb28fe3['value'];if(_0x26d149==_0x587fa8['value'])return;const _0x4885d0={'commandName':'imageStyle','commandParams':[_0x587fa8],'formatGroupId':_0x1b595f()};_0x3d71ce['model']['change'](()=>{if(_0x4ca04a['getSuggestions']()['filter'](_0x554d11=>_0x554d11['isInContent']&&_0x10c8b8==_0x554d11['author']&&('formatBlock'==_0x554d11['type']||'formatInline'==_0x554d11['type'])&&('imageStylePreApply'==_0x554d11['subType']||'imageStylePostApply'==_0x554d11['subType'])&&_0x554d11['getFirstRange']()['isEqual'](_0x45a081))['forEach'](_0x3e74c7=>_0x4ca04a['discardSuggestion'](_0x3e74c7['head'])),_0x5e42e0=_0x28e8d8['getClosestSelectedImageElement'](_0x3d71ce['model']['document']['selection']),_0x45a081=_0x3d71ce['model']['createRangeOn'](_0x5e42e0),_0xb28fe3['refresh'](),_0x3d71ce['commands']['get']('imageTypeInline')['refresh'](),_0x3d71ce['commands']['get']('imageTypeBlock')['refresh'](),_0x26d149=_0xb28fe3['value'],_0x26d149!=_0x587fa8['value'])return _0x28e8d8['isInlineImage'](_0x5e42e0)&&_0xb28fe3['shouldConvertImageType'](_0x587fa8['value'],_0x5e42e0)?(_0x21465e({..._0x587fa8,'setImageSizes':!0x1}),_0x5e42e0=_0x28e8d8['getClosestSelectedImageElement'](_0x3d71ce['model']['document']['selection']),void _0x4ca04a['markBlockFormat'](_0x5e42e0,{..._0x4885d0,'commandReversedParams':[{'value':_0x26d149||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x28e8d8['isBlockImage'](_0x5e42e0)?_0x4ca04a['markBlockFormat'](_0x5e42e0,_0x4885d0,[],'imageStylePostApply'):_0x4ca04a['markInlineFormat'](_0x45a081,_0x4885d0,'imageStylePostApply'));});});for(const _0xfe93aa of _0x3d71ce['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3fbc86[_0xfe93aa['name']]=_0xfe93aa['title']['toLowerCase']();_0x4ca04a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4ca04a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4ca04a['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4ca04a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5cb6e4])=>{_0x28e8d8['setImageNaturalSizeAttributes'](_0x5cb6e4['getContainedElement']());}),_0x4ca04a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x6cd3d0,_0x21f92a)=>{_0x4ca04a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x6cd3d0,{'commandName':_0x21f92a['commandName'],'commandParams':_0x21f92a['commandReversedParams']});}),_0x4ca04a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x6d8b18,_0x230361){if(_0x20f4d2(_0x6d8b18,_0x230361))return[_0x6d8b18,_0x230361];if(_0x20f4d2(_0x230361,_0x6d8b18))return[_0x230361,_0x6d8b18];return null;});const _0x2b00bd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x20f4d2(_0x9b1d4b,_0x51a11a){const _0x146a36=_0x2b00bd['findIndex'](({type:_0x50a32d,subType:_0x2eb204})=>_0x9b1d4b['type']==_0x50a32d&&_0x9b1d4b['subType']==_0x2eb204),_0x3055c8=_0x2b00bd['findIndex'](({type:_0x404ba8,subType:_0x2ca2a6})=>_0x51a11a['type']==_0x404ba8&&_0x51a11a['subType']==_0x2ca2a6);if(_0x146a36<0x0||_0x3055c8<0x0)return!0x1;const _0x5a11b1=_0x9b1d4b['getFirstRange'](),_0x4ff9b7=_0x51a11a['getFirstRange']();if((0x0==_0x146a36||0x1==_0x146a36)&&0x2==_0x3055c8&&_0x5a11b1['isIntersecting'](_0x4ff9b7))return!0x0;if(0x2==_0x146a36&&0x3==_0x3055c8){const _0x28768a=_0x4ca04a['_findSuggestions'](_0x5a11b1,'insertion')['filter'](({suggestion:_0x1dc732,meta:_0x170958})=>_0x170958['isOwn']&&'convertInlineImageToBlock'==_0x1dc732['subType']);if(_0x28768a['length']>0x1&&_0x4ff9b7['end']['isEqual'](_0x5a11b1['start']))return!0x0;if(0x1==_0x28768a['length']&&(_0x5a11b1['start']['isEqual'](_0x4ff9b7['end'])||_0x5a11b1['end']['isEqual'](_0x4ff9b7['start'])))return!0x0;}if(0x3==_0x146a36&&0x3==_0x3055c8&&_0x5a11b1['start']['isBefore'](_0x4ff9b7['start'])){const _0x2a0c01=_0x5a11b1['end']['nodeAfter'],_0xd3c6a5=_0x4ff9b7['start']['nodeBefore'];return _0x28e8d8['isBlockImage'](_0x2a0c01)&&_0x2a0c01===_0xd3c6a5;}return!0x1;}_0x3d71ce['model']['document']['registerPostFixer'](()=>{let _0x57c725=!0x1;const _0x32b6f2=Array['from'](_0x3d71ce['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xeede50,data:_0x5c1d26}of _0x32b6f2){const {group:_0x45706a,type:_0x16bb23,subType:_0x325745,id:_0x27452b}=_0x4ca04a['_splitMarkerName'](_0xeede50);if('suggestion'==_0x45706a&&_0x4ca04a['hasSuggestion'](_0x27452b)){if('formatBlock'==_0x16bb23&&('imageStylePreApply'==_0x325745||'imageStylePostApply'==_0x325745)){const _0x39e798=_0x4ca04a['getSuggestion'](_0x27452b);if(_0x5c1d26['newRange']){const _0x5c4a0d=_0x39e798['getFirstRange']()['getContainedElement']();if(_0x28e8d8['isBlockImage'](_0x5c4a0d))continue;_0x4ca04a['discardSuggestion'](_0x39e798),_0x57c725=!0x0;}}if('insertion'==_0x16bb23&&'imageCaption'==_0x325745&&!_0x5c1d26['newRange']){const _0x3fb36c=_0x4ca04a['getSuggestion'](_0x27452b);_0x3fb36c['next']&&_0x3fb36c['next']['isInContent']&&(_0x4ca04a['discardSuggestion'](_0x3fb36c['next']),_0x57c725=!0x0);}}}return _0x57c725;}),this['_registerLegacyDescription'](_0x3fbc86);}['_registerLegacyDescription'](_0x4b1cbc){const _0x40368d=this['editor'],_0x1d732e=_0x40368d['locale'];_0x40368d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b75aa=>{if('formatBlock'!=_0x5b75aa['type']&&'formatInline'!=_0x5b75aa['type'])return;const {data:_0x45ccba}=_0x5b75aa;if(!_0x45ccba||'imageStyle'!=_0x45ccba['commandName'])return;const _0x127c89=_0x45ccba['commandParams'][0x0]['value'];return _0x40be8f('side'===_0x127c89?c(_0x1d732e,'FORMAT_SIDE_IMAGE'):_0x4b1cbc[_0x127c89]||_0x127c89);function _0x40be8f(_0xf3ffe3){return{'type':'format','content':c(_0x1d732e,'*Format:*\x20%0',_0xf3ffe3)};}});}}class ut extends _0x5c1181{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x165e01){super(_0x165e01),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x531147=this['editor'],_0x28a9e3=_0x531147['commands']['get']('importWord'),_0x29edac=_0x531147['commands']['get']('trackChanges');_0x28a9e3&&(_0x28a9e3['on']('execute',(_0x5399ab,[,_0x522501])=>{this['_trackChangesValueDuringImport']=_0x29edac['value'],_0x522501['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x28a9e3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x28a9e3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x29edac['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x531147['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x42a1e1,_0x44f573){const {suggestions:_0x57cbe3}=_0x44f573,_0x43e95e=this['editor']['commands']['get']('trackChanges'),_0xec3471=_0x43e95e['value'];this['_trackChangesValueDuringImport']!==_0xec3471&&(_0x43e95e['execute'](),this['_trackChangesExecuted']=!0x0),_0x57cbe3&&_0x57cbe3['forEach'](({id:_0x54f8ab,type:_0x5db368,author:_0x265979,created_at:_0x11e4bc})=>{const _0x262f58={'id':_0x54f8ab,'type':_0x5db368,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x265979,'createdAt':_0x11e4bc?new Date(_0x11e4bc):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x262f58);});}}class ft extends _0x5c1181{['afterInit'](){const _0x382e84=this['editor'],_0x271550=_0x382e84['plugins']['get']('TrackChangesEditing');if(_0x382e84['plugins']['has']('IndentEditing')&&(_0x271550['enableCommand']('indent'),_0x271550['enableCommand']('outdent')),_0x382e84['plugins']['has']('IndentBlock')){for(const _0x5b145c of['indentBlock','outdentBlock'])_0x271550['enableDefaultAttributesIntegration'](_0x5b145c);}const _0x56a228=_0x382e84['locale'];_0x271550['registerBlockAttribute']('blockIndent'),_0x271550['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x56a228,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x443a0d=this['editor'],_0x3d1d4d=_0x443a0d['locale'],_0x4fa06d=_0x443a0d['plugins']['get']('TrackChangesEditing');_0x4fa06d['descriptionFactory']['registerDescriptionCallback'](_0x18222f=>{if('formatBlock'!=_0x18222f['type'])return;const {data:_0x2912ad}=_0x18222f;if(!_0x2912ad)return;if('indentBlock'!=_0x2912ad['commandName']&&'outdentBlock'!=_0x2912ad['commandName'])return;const _0x2f8572=_0x18222f['getItems']()[0x0],_0x3abacc=_0x4fa06d['descriptionFactory']['getItemLabel'](_0x2f8572);return'indentBlock'==_0x2912ad['commandName']?{'type':'format','content':c(_0x3d1d4d,'*Indent:*\x20%0',_0x3abacc)}:'outdentBlock'==_0x2912ad['commandName']?{'type':'format','content':c(_0x3d1d4d,'*Outdent:*\x20%0',_0x3abacc)}:void 0x0;});}}class ht extends _0x5c1181{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x5c1181{['afterInit'](){const _0x495644=this['editor'];if(!_0x495644['plugins']['has']('LinkEditing'))return;const _0x260428=_0x495644['plugins']['get']('TrackChangesEditing'),_0x22d3c0=_0x495644['commands']['get']('link');_0x260428['enableDefaultAttributesIntegration']('link'),_0x260428['enableDefaultAttributesIntegration']('unlink'),_0x260428['registerInlineAttribute']('linkHref');for(const _0xda141c of _0x22d3c0['manualDecorators'])_0x260428['registerInlineAttribute'](_0xda141c['id']),_0x260428['descriptionFactory']['registerAttributeLabel'](_0xda141c['id'],'link\x20('+_0xda141c['label']['toLowerCase']()+')');_0x260428['descriptionFactory']['registerDescriptionCallback'](_0x476b47=>{if('attribute'!=_0x476b47['type'])return;const {data:_0x525c05}=_0x476b47;if(!_0x525c05||'linkHref'!=_0x525c05['key'])return;const _0x14a924=_0x525c05['newValue'],_0xb269ef=_0x495644['locale'];return{'type':'format','content':null==_0x14a924?c(_0xb269ef,'*Remove\x20link*'):c(_0xb269ef,'*Set\x20link:*\x20%0','\x22'+_0x14a924+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x277f77=this['editor'],_0x493752=_0x277f77['locale'];_0x277f77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x890deb=>{if('formatInline'!=_0x890deb['type'])return;const {data:_0x4073bb}=_0x890deb;if(_0x4073bb){if('link'==_0x4073bb['commandName']){const _0x3f3839=_0x4073bb['commandParams'][0x0];return{'type':'format','content':c(_0x493752,'*Set\x20link:*\x20%0','\x22'+_0x3f3839+'\x22')};}return'unlink'==_0x4073bb['commandName']?{'type':'format','content':c(_0x493752,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x5c1181{['afterInit'](){const _0x28ea8a=this['editor'],_0xb46465=_0x28ea8a['locale'];if(!_0x28ea8a['plugins']['has']('LegacyListEditing'))return;const _0x3a61b8=_0x28ea8a['plugins']['get']('TrackChangesEditing'),_0x1c2383=_0x28ea8a['plugins']['has']('LegacyTodoListEditing');function _0x27e1dc(_0x5e634c){return()=>{const _0x287f19=_0x28ea8a['model']['document']['selection'],_0x44beea=_0x28ea8a['commands']['get'](_0x5e634c);if(_0x44beea['value'])return void _0x28ea8a['execute']('paragraph',{});const _0x5b9f88=_0x5e634c['slice'](0x0,-0x4),_0x2607bf=function(_0x4e69ec,_0x5ae196,_0x5d4c25){let _0x2380ce=Array['from'](_0x4e69ec)['filter'](_0x302241=>function(_0x2a5901,_0x1a3ff8){return _0x1a3ff8['checkChild'](_0x2a5901['parent'],'listItem')&&!_0x1a3ff8['isObject'](_0x2a5901);}(_0x302241,_0x5d4c25));_0x2380ce=_0x2380ce['filter'](_0x1a641d=>!_0x1a641d['is']('element','listItem')||_0x1a641d['getAttribute']('listType')!=_0x5ae196);const _0x5f2ec4=new Set();for(const _0x2d0947 of _0x2380ce)_0x2d0947['is']('element','listItem')?_0x5f2ec4['add'](Le(_0x2d0947)):_0x5f2ec4['add'](_0x2d0947);return Array['from'](_0x5f2ec4);}(_0x287f19['getSelectedBlocks'](),_0x5b9f88,_0x28ea8a['model']['schema']);_0x28ea8a['model']['change'](()=>{for(const _0x30e9c8 of _0x2607bf)_0x3a61b8['markBlockFormat'](_0x30e9c8,{'commandName':_0x5e634c,'commandParams':[{'forceValue':!_0x44beea['value']}],'formatGroupId':'blockName'},Ee(_0x30e9c8));});};}function _0x3ef6dc(_0x408a0b){return()=>{const _0x55f5aa=function(_0x4eaba4){let _0x9eb5f5=Array['from'](_0x4eaba4);const _0x413627=_0x9eb5f5['findIndex'](_0x4b704a=>'listItem'!=_0x4b704a['name']);return _0x413627>-0x1&&(_0x9eb5f5=_0x9eb5f5['slice'](0x0,_0x413627)),_0x9eb5f5;}(_0x28ea8a['model']['document']['selection']['getSelectedBlocks']()),_0x3338f8=_0x28ea8a['model']['createRange'](_0x28ea8a['model']['createPositionAt'](_0x55f5aa[0x0],'before'),_0x28ea8a['model']['createPositionAt'](_0x55f5aa[_0x55f5aa['length']-0x1],'end'));_0x28ea8a['model']['change'](()=>{_0x3a61b8['markBlockFormat'](_0x3338f8,{'commandName':_0x408a0b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x48f0b2){const _0x3950d1=new Set();for(const _0x467554 of _0x48f0b2){let _0x8d5b9b=_0x467554['nextSibling'];for(;_0x8d5b9b&&_0x8d5b9b['getAttribute']('listIndent')>_0x467554['getAttribute']('listIndent');)_0x3950d1['add'](_0x8d5b9b),_0x8d5b9b=_0x8d5b9b['nextSibling'];}return Array['from'](_0x3950d1);}(_0x55f5aa));});};}_0x3a61b8['enableCommand']('numberedList',_0x27e1dc('numberedList')),_0x3a61b8['enableCommand']('bulletedList',_0x27e1dc('bulletedList')),_0x1c2383&&_0x3a61b8['enableCommand']('todoList',_0x27e1dc('todoList')),_0x3a61b8['enableCommand']('indentList',_0x3ef6dc('indentList')),_0x3a61b8['enableCommand']('outdentList',_0x3ef6dc('outdentList')),_0x1c2383&&_0x3a61b8['enableCommand']('checkTodoList',()=>{const _0xe06984=_0x28ea8a['commands']['get']('checkTodoList'),_0x208f64=Array['from'](_0xe06984['_selectedElements']);_0x208f64['filter'](_0x4cc8f7=>_0x4cc8f7['getAttribute']('todoListChecked')!=_0xe06984['value']),_0x28ea8a['model']['change'](()=>{for(const _0x1b09ab of _0x208f64)_0x3a61b8['markBlockFormat'](_0x1b09ab,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xe06984['value']}]});});}),_0x3a61b8['descriptionFactory']['registerElementLabel']('listItem',_0x142ed0=>c(_0xb46465,'ELEMENT_LIST_ITEM',_0x142ed0)),_0x3a61b8['descriptionFactory']['registerDescriptionCallback'](_0xd5a4d2=>{if('formatBlock'!=_0xd5a4d2['type']&&'formatInline'!=_0xd5a4d2['type'])return;const {data:_0xf9654d}=_0xd5a4d2;if(_0xf9654d){if('numberedList'==_0xf9654d['commandName']||'bulletedList'==_0xf9654d['commandName']||'todoList'==_0xf9654d['commandName'])switch(_0xf9654d['commandName']['replace']('List','')){case'bulleted':return _0x5059f5(c(_0xb46465,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5059f5(c(_0xb46465,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5059f5(c(_0xb46465,'ELEMENT_TODO_LIST'));}if('indentList'==_0xf9654d['commandName'])return{'type':'format','content':c(_0xb46465,'*Indent:*\x20%0',c(_0xb46465,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xf9654d['commandName'])return{'type':'format','content':c(_0xb46465,'*Outdent:*\x20%0',c(_0xb46465,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xf9654d['commandName'])return _0xf9654d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xb46465,'*Check\x20item*')}:{'type':'format','content':c(_0xb46465,'*Uncheck\x20item*')};}function _0x5059f5(_0x9d6dd1){return{'type':'format','content':c(_0xb46465,'*Change\x20to:*\x20%0',_0x9d6dd1)};}});}}function Le(_0x50a7a6){const _0x10a38e=_0x50a7a6['getAttribute']('listIndent');if(0x0==_0x10a38e)return _0x50a7a6;let _0x399f8c=_0x50a7a6;for(;_0x50a7a6['previousSibling']&&_0x50a7a6['previousSibling']['is']('element','listItem');){const _0x5155b4=_0x50a7a6['previousSibling']['getAttribute']('listIndent');if(_0x5155b4==_0x10a38e)_0x399f8c=_0x50a7a6['previousSibling'];else{if(_0x5155b4<_0x10a38e)break;}_0x50a7a6=_0x50a7a6['previousSibling'];}return _0x399f8c;}function Ee(_0x33d74e){const _0x165808=[];if(_0x33d74e['is']('element','listItem')&&_0x33d74e['getAttribute']('listIndent')>0x0){let _0x21bb9e=_0x33d74e['nextSibling'];for(;_0x21bb9e&&'listItem'==_0x21bb9e['name']&&_0x21bb9e['getAttribute']('listIndent')==_0x33d74e['getAttribute']('listIndent');)_0x165808['push'](_0x21bb9e),_0x21bb9e=_0x21bb9e['nextSibling'];}return _0x165808;}class Q extends _0x5c1181{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4942d2=this['editor']['config']['get']('list.properties'),_0x32970f=this['editor']['plugins']['get']('TrackChangesEditing');_0x4942d2['styles']&&_0x32970f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4942d2['reversed']&&_0x32970f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4942d2['startIndex']&&_0x32970f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x32970f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4f5deb,_0x147977={}){const _0x4562e7=this['editor']['plugins']['get']('TrackChangesEditing'),_0xffb982=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4562e7['markMultiRangeBlockFormat'](_0xffb982,{'commandName':'listStyle','commandParams':[{'type':_0x147977['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1a120f,_0x9f5425={}){const _0x211fa7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5903c9=this['_getSuggestionBlocks'](_0x258714=>_0x258714['is']('element','listItem')&&'numbered'===_0x258714['getAttribute']('listType'));if(_0x5903c9['length']<0x1)return;const _0x44e113=_0x5903c9['map'](_0x3cb6f9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3cb6f9,'before'),this['editor']['model']['createPositionAt'](_0x3cb6f9,0x0)));this['editor']['model']['change'](()=>{_0x211fa7['markMultiRangeBlockFormat'](_0x44e113,{'commandName':'listReversed','commandParams':[{'reversed':_0x9f5425['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4032a8,_0x48c399={}){const _0x533d85=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55ba65=this['_getSuggestionBlocks'](_0x32f963=>_0x32f963['is']('element','listItem')&&'numbered'===_0x32f963['getAttribute']('listType'));if(_0x55ba65['length']<0x1)return;const _0x46a274=_0x55ba65['map'](_0x3c6b5c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3c6b5c,'before'),this['editor']['model']['createPositionAt'](_0x3c6b5c,0x0)));this['editor']['model']['change'](()=>{_0x533d85['markMultiRangeBlockFormat'](_0x46a274,{'commandName':'listStart','commandParams':[{'startIndex':_0x48c399['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x341745){if('formatBlock'!=_0x341745['type']&&'formatInline'!=_0x341745['type'])return;const _0x1fe9b7=this['editor']['locale'],{data:_0x1ac6d1}=_0x341745;if(!_0x1ac6d1)return;let _0x29a43f,_0x4390c2;switch(_0x1ac6d1['commandName']){case'listStyle':_0x29a43f='*Change\x20to:*\x20%0',_0x4390c2={'type':'format','content':c(_0x1fe9b7,_0x29a43f,c(_0x1fe9b7,this['_getTranslationKeyForListStyle'](_0x1ac6d1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x29a43f=_0x1ac6d1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4390c2={'type':'format','content':c(_0x1fe9b7,_0x29a43f)};break;case'listStart':_0x29a43f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4390c2={'type':'format','content':c(_0x1fe9b7,_0x29a43f,_0x1ac6d1['commandParams'][0x0]['startIndex'])};}return _0x4390c2;}['_getSuggestionBlocksForListStyle'](){const _0x4f3b22=this['editor']['plugins']['get']('LegacyListUtils');let _0x3b6ebf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3b6ebf[0x0]?.['is']('element','listItem')&&_0x3b6ebf['unshift'](..._0x4f3b22['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3b6ebf[_0x3b6ebf['length']-0x1]?.['is']('element','listItem')&&_0x3b6ebf['push'](..._0x4f3b22['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3b6ebf=[...new Set(_0x3b6ebf)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3b6ebf=_0x3b6ebf['filter'](_0x4ed106=>_0x4ed106['is']('element','listItem'))),_0x3b6ebf;}['_getSuggestionBlocks'](_0x83b986){const _0x231eee=this['editor']['plugins']['get']('LegacyListUtils');let _0x4f1f8e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x83b986)['map'](_0x336800=>{const _0x48de3c=this['editor']['model']['createPositionAt'](_0x336800,0x0);return[..._0x231eee['getSiblingNodes'](_0x48de3c,'backward'),..._0x231eee['getSiblingNodes'](_0x48de3c,'forward')];})['flat']();return _0x4f1f8e=[...new Set(_0x4f1f8e)],_0x4f1f8e;}['_getTranslationKeyForListStyle'](_0x403096){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x403096)||'default')['toUpperCase']()+'_LIST_'+_0x403096['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x5c1181{['afterInit'](){const _0x37b04e=this['editor'];if(!_0x37b04e['plugins']['has']('MediaEmbedEditing'))return;const _0x218137=_0x37b04e['plugins']['get']('TrackChangesEditing'),_0x165a01=_0x37b04e['locale'];_0x218137['enableCommand']('mediaEmbed'),_0x218137['descriptionFactory']['registerElementLabel']('media',_0x2a8a3b=>c(_0x165a01,'ELEMENT_MEDIA',_0x2a8a3b)),_0x37b04e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x33133f,{writer:_0x258e52,options:_0x517341})=>{if(_0x517341['showSuggestionHighlights'])return _0x258e52['createEmptyElement']('div');},'converterPriority':'high'}),_0x37b04e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x244c8c,_0x58ac2c,_0x317fa6)=>{_0x317fa6['options']['showSuggestionHighlights']&&_0x244c8c['stop']();},{'priority':'high'});}}class pt extends _0x5c1181{['afterInit'](){const _0x57c6bc=this['editor'];_0x57c6bc['plugins']['has']('MentionEditing')&&_0x57c6bc['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x5c1181{['afterInit'](){const _0x558a0c=this['editor'];if(!_0x558a0c['plugins']['has']('MergeFieldsEditing'))return;const _0x4c4db7=_0x558a0c['plugins']['get']('TrackChangesEditing'),_0x24cdda=_0x558a0c['locale'];_0x4c4db7['enableCommand']('insertMergeField'),_0x4c4db7['enableCommand']('insertMergeFieldBlock'),_0x4c4db7['enableCommand']('insertMergeFieldImage'),_0x4c4db7['descriptionFactory']['registerElementLabel']('mergeField',_0x521ad7=>c(_0x24cdda,'ELEMENT_MERGE_FIELD',_0x521ad7)),_0x4c4db7['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1aabed=>c(_0x24cdda,'ELEMENT_MERGE_FIELD',_0x1aabed)),_0x4c4db7['descriptionFactory']['registerDescriptionCallback'](_0x96cc0b=>{if('insertion'!=_0x96cc0b['type']&&'deletion'!=_0x96cc0b['type'])return;const _0x30a40e=_0x96cc0b['getContainedElement']();if(null==_0x30a40e)return;const _0x39a50d=_0x558a0c['plugins']['get']('MergeFieldsEditing');let _0x44d0d3;switch(_0x39a50d['getMergeFieldType'](_0x30a40e)){case null:return;case'image':{const _0x36bfa9=_0x39a50d['unwrapAffixes'](_0x30a40e['getAttribute']('src'));_0x44d0d3=_0x39a50d['getLabel'](_0x36bfa9)||_0x36bfa9;break;}default:{const _0x41a0be=_0x30a40e['getAttribute']('id');_0x44d0d3=_0x39a50d['getLabel'](_0x41a0be)||_0x41a0be;break;}}return'insertion'==_0x96cc0b['type']?{'type':'insertion','content':c(_0x24cdda,'*Insert:*\x20%0','\x22'+_0x44d0d3+'\x22\x20'+c(_0x24cdda,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x24cdda,'*Remove:*\x20%0','\x22'+_0x44d0d3+'\x22\x20'+c(_0x24cdda,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x5c1181{['afterInit'](){const _0xf7626c=this['editor'],_0xdd0d5f=_0xf7626c['plugins']['get']('TrackChangesEditing');_0xf7626c['plugins']['has']('MultiLevelList')&&(_0xdd0d5f['enableDefaultAttributesIntegration']('multiLevelList'),_0xdd0d5f['registerBlockAttribute']('listMarkerStyle'),_0xdd0d5f['descriptionFactory']['registerDescriptionCallback'](_0x5bed16=>this['handleDescriptions'](_0x5bed16)));}['handleDescriptions'](_0x489fea){const _0x39ad62=this['editor']['locale'],{data:_0x9f08cb}=_0x489fea,_0x867d32={'type':'format','content':''};if(_0x9f08cb&&'listMarkerStyle'==_0x9f08cb['key']){if(!_0x9f08cb['oldValue'])return{'type':'format','content':c(_0x39ad62,'*Set\x20format:*\x20%0',c(_0x39ad62,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x9f08cb['newValue']+')'};if(!_0x9f08cb['newValue']){let _0x38c3b8=_0x489fea['head'];for(;_0x38c3b8;){if(_0x38c3b8['data']&&'listType'==_0x38c3b8['data']['key']&&_0x38c3b8['data']['newValue'])return _0x867d32;_0x38c3b8=_0x38c3b8['next'];}return{'type':'format','content':c(_0x39ad62,'*Remove\x20format:*\x20%0',c(_0x39ad62,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x9f08cb['oldValue']+')'};}}}}class bt extends _0x5c1181{['afterInit'](){const _0x15a56c=this['editor'];if(!_0x15a56c['plugins']['has']('PageBreakEditing'))return;_0x15a56c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x128e39=_0x15a56c['plugins']['get']('TrackChangesEditing'),_0x5c3984=_0x15a56c['locale'];_0x128e39['descriptionFactory']['registerElementLabel']('pageBreak',_0x4b6024=>c(_0x5c3984,'ELEMENT_PAGE_BREAK',_0x4b6024));}}class yt extends _0x5c1181{['afterInit'](){const _0x313f9a=this['editor'];if(!_0x313f9a['plugins']['has']('Paragraph'))return;const _0x271cde=_0x313f9a['locale'],_0x12527f=_0x313f9a['plugins']['get']('TrackChangesEditing');_0x12527f['descriptionFactory']['registerElementLabel']('paragraph',_0x5a3988=>c(_0x271cde,'ELEMENT_PARAGRAPH',_0x5a3988)),_0x12527f['enableDefaultAttributesIntegration']('paragraph'),_0x12527f['enableCommand']('insertParagraph'),_0x313f9a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x313f9a),{'priority':'highest'}),_0x313f9a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x662a84,_0x191d23,_0x2eb014)=>{_0x2eb014['options']['showSuggestionHighlights']&&nr(_0x313f9a,{'showActiveMarker':!0x1})(_0x662a84,_0x191d23,_0x2eb014);},{'priority':'highest'});const _0x5b2d78=_0x12527f['descriptionFactory'];_0x5b2d78['registerDescriptionCallback'](_0x104563=>{if('insertion'!==_0x104563['type'])return;const {start:_0xa419ca,end:_0x88adf0}=_0x104563['getFirstRange']();if(!_0xa419ca['isTouching'](_0x88adf0)||!_0xa419ca['nodeAfter'])return;const _0x58bbe1=_0x313f9a['model']['schema'],_0x403d6d=_0xa419ca['nodeAfter'];return _0x58bbe1['isBlock'](_0x403d6d)&&!_0x58bbe1['isLimit'](_0x403d6d)&&_0x58bbe1['checkChild'](_0x403d6d,'$text')?{'type':'insertion','content':c(_0x271cde,'*Insert:*\x20%0',_0x5b2d78['getItemLabel'](_0x403d6d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3876e3=this['editor'],_0x1931ce=_0x3876e3['locale'];_0x3876e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x575547=>{if('formatBlock'!=_0x575547['type'])return;const {data:_0x45f066}=_0x575547;return _0x45f066&&'paragraph'==_0x45f066['commandName']?{'type':'format','content':c(_0x1931ce,'*Change\x20to:*\x20%0',c(_0x1931ce,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x19a55b,{showActiveMarker:_0x5a805a=!0x0}={}){return(_0x1082e5,_0x3f1df0,_0xe16bef)=>{const _0x5eeedb=_0x19a55b['plugins']['get']('TrackChangesEditing'),_0x4deaaf=_0x3f1df0['markerRange']['start'],_0x5819c9=_0x3f1df0['markerRange']['end'],_0x20808d=_0x19a55b['model']['schema'];if(!_0x4deaaf['isTouching'](_0x5819c9)||!_0x4deaaf['nodeAfter'])return;const _0x12cdd0=_0x4deaaf['nodeAfter'];if(_0x20808d['isBlock'](_0x12cdd0)&&!_0x20808d['isLimit'](_0x12cdd0)&&_0x20808d['checkChild'](_0x12cdd0,'$text')){if(!_0xe16bef['consumable']['consume'](_0x3f1df0['markerRange'],_0x1082e5['name']))return;const {id:_0x4e6b3f,authorId:_0x38b303}=_0x5eeedb['_splitMarkerName'](_0x3f1df0['markerName']),_0xe5906=_0xe16bef['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4e6b3f,'data-author-id':_0x38b303}),_0x358ef8=_0xe16bef['mapper']['toViewPosition'](_0x5819c9);_0x5a805a&&_0x5eeedb['activeMarkers']['includes'](_0x3f1df0['markerName'])&&_0xe16bef['writer']['addClass']('ck-suggestion-marker--active',_0xe5906),_0xe16bef['writer']['insert'](_0x358ef8,_0xe5906),_0xe16bef['mapper']['bindElementToMarker'](_0xe5906,_0x3f1df0['markerName']);}};}class jt extends _0x5c1181{['afterInit'](){const _0x544872=this['editor'];_0x544872['commands']['get']('replaceSource')&&_0x544872['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x5c1181{['afterInit'](){const _0x4c7034=this['editor'];if(!_0x4c7034['plugins']['has']('RemoveFormatEditing'))return;_0x4c7034['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14b582=this['editor'];_0x14b582['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38c08a=>{if('formatBlock'!=_0x38c08a['type']&&'formatInline'!=_0x38c08a['type'])return;const {data:_0x3dffab}=_0x38c08a;return _0x3dffab&&'removeFormat'==_0x3dffab['commandName']?{'type':'format','content':c(_0x14b582['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x5c1181{['afterInit'](){const _0x14e339=this['editor'];if(!_0x14e339['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x378d96=_0x14e339['plugins']['get']('TrackChangesEditing');_0x378d96['enableCommand']('goToPreviousRestrictedEditingException'),_0x378d96['enableCommand']('goToNextRestrictedEditingException');const _0x21eeaf=_0x14e339['plugins']['get']('RestrictedEditingModeEditing');_0x21eeaf['enableCommand']('trackChanges'),_0x21eeaf['enableCommand']('acceptSuggestion'),_0x21eeaf['enableCommand']('discardSuggestion'),_0x21eeaf['enableCommand']('acceptAllSuggestions'),_0x21eeaf['enableCommand']('discardAllSuggestions'),_0x21eeaf['enableCommand']('acceptSelectedSuggestions'),_0x21eeaf['enableCommand']('discardSelectedSuggestions');}}class It extends _0x5c1181{['afterInit'](){const _0x2ab6f3=this['editor'];if(!_0x2ab6f3['plugins']['has']('ShiftEnter'))return;const _0x4c01a4=_0x2ab6f3['plugins']['get']('TrackChangesEditing');_0x4c01a4['enableCommand']('shiftEnter'),_0x2ab6f3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2ab6f3),{'priority':'high'}),_0x2ab6f3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2ab6f3),{'priority':'high'}),_0x2ab6f3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2d4e77,_0x57c849,_0x578b06)=>{_0x578b06['options']['showSuggestionHighlights']&&je(_0x2ab6f3,{'showActiveMarker':!0x1})(_0x2d4e77,_0x57c849,_0x578b06);}),_0x4c01a4['descriptionFactory']['registerElementLabel']('softBreak',_0x5c97a6=>c(_0x2ab6f3['locale'],'ELEMENT_LINE_BREAK',_0x5c97a6));}}function je(_0x51c80b,{showActiveMarker:_0x33b1aa=!0x0}={}){return(_0x2cf5ae,_0x35c851,_0x435b13)=>{const _0x5b948b=_0x51c80b['plugins']['get']('TrackChangesEditing');if(!_0x435b13['consumable']['test'](_0x35c851['markerRange'],_0x2cf5ae['name']))return;const _0x19d24c=_0x51c80b['model'];for(const _0xd3dc20 of _0x35c851['markerRange']['getItems']()){if(!_0xd3dc20['is']('element','softBreak'))continue;const _0x2c8328='deletion'==_0x35c851['markerName']['split'](':')[0x1]?'merge':'split',{id:_0xd72984,authorId:_0x590195}=_0x5b948b['_splitMarkerName'](_0x35c851['markerName']),_0x2d9190=_0x435b13['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2c8328,'data-suggestion':_0xd72984,'data-author-id':_0x590195}),_0x2f7f34=_0x435b13['mapper']['toViewPosition'](_0x19d24c['createPositionBefore'](_0xd3dc20));_0x33b1aa&&_0x5b948b['activeMarkers']['includes'](_0x35c851['markerName'])&&_0x435b13['writer']['addClass']('ck-suggestion-marker--active',_0x2d9190),_0x435b13['writer']['insert'](_0x2f7f34,_0x2d9190),_0x435b13['mapper']['bindElementToMarker'](_0x2d9190,_0x35c851['markerName']);}};}class _t extends _0x5c1181{['afterInit'](){const _0x1cfe32=this['editor'],_0x3bf2a1=_0x1cfe32['model'],_0x3e863e=_0x1cfe32['locale'];if(!_0x1cfe32['plugins']['has']('StandardEditingModeEditing'))return;const _0x1f3ed7=_0x1cfe32['plugins']['get']('TrackChangesEditing'),_0x50df6d='restrictedEditingException',_0x35e0b6=_0x1cfe32['commands']['get'](_0x50df6d);_0x1f3ed7['enableCommand'](_0x50df6d,(_0x360c93,_0x556ce6={})=>{const _0xfa6e35=_0x3bf2a1['document']['selection'];if(_0xfa6e35['isCollapsed'])return void _0x360c93(_0x556ce6);const _0x152b01=void 0x0!==_0x556ce6['forceValue']?_0x556ce6['forceValue']:!_0x35e0b6['value'];_0x3bf2a1['change'](()=>{const _0x45758e=Array['from'](_0xfa6e35['getRanges']());for(const _0x4d5603 of _0x45758e){const _0x585d1d=_0x152b01?[_0x4d5603]:io(_0x50df6d,_0x4d5603,_0x3bf2a1);for(const _0x5ecf77 of _0x585d1d)_0x1f3ed7['markInlineFormat'](_0x5ecf77,{'commandName':_0x50df6d,'commandParams':[{'forceValue':_0x152b01}]});}});}),_0x1f3ed7['descriptionFactory']['registerDescriptionCallback'](_0x494b42=>{if('formatBlock'!=_0x494b42['type']&&'formatInline'!=_0x494b42['type'])return;const {data:_0x1acf51}=_0x494b42;return _0x1acf51&&_0x1acf51['commandName']==_0x50df6d?_0x1acf51['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3e863e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x3e863e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x5c1181{['afterInit'](){const _0x318ed9=this['editor'];if(!_0x318ed9['plugins']['has']('Style')||!_0x318ed9['plugins']['has']('DataSchema'))return;const _0x2d59d7=_0x318ed9['plugins']['get']('TrackChangesEditing'),_0x339337=_0x318ed9['locale'],_0x21cf3d=_0x318ed9['config']['get']('style')||{},_0x252131=_0x318ed9['plugins']['get']('GeneralHtmlSupport'),_0x416cd8=_0x318ed9['plugins']['get']('StyleUtils')['normalizeConfig'](_0x318ed9['plugins']['get']('DataSchema'),_0x21cf3d['definitions']);_0x2d59d7['enableDefaultAttributesIntegration']('style');const _0x1b1299=new Set();for(const _0x2631be of _0x416cd8['block']){const _0x177dae=_0x252131['getGhsAttributeNameForElement'](_0x2631be['element']);_0x1b1299['add'](_0x177dae);}const _0x5a5110=new Set();for(const _0x53623 of _0x416cd8['inline']){const _0x4450ec=_0x252131['getGhsAttributeNameForElement'](_0x53623['element']);_0x5a5110['add'](_0x4450ec);for(const _0xfee731 of _0x53623['ghsAttributes'])_0x5a5110['add'](_0xfee731);}for(const _0x39ed88 of _0x1b1299)_0x2d59d7['registerBlockAttribute'](_0x39ed88),_0x2d59d7['descriptionFactory']['registerAttributeLabel'](_0x39ed88,c(_0x339337,'FORMAT_STYLE'));for(const _0x5297d4 of _0x5a5110)_0x2d59d7['registerInlineAttribute'](_0x5297d4),_0x2d59d7['descriptionFactory']['registerAttributeLabel'](_0x5297d4,c(_0x339337,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3499ff=this['editor'],_0x12d355=_0x3499ff['locale'];_0x3499ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x178aba=>{if('formatBlock'!=_0x178aba['type']&&'formatInline'!=_0x178aba['type'])return;const {data:_0x1f2507}=_0x178aba;return _0x1f2507&&'style'===_0x1f2507['commandName']?_0x1f2507['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x12d355,'*Set\x20format:*\x20%0',_0x1f2507['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x12d355,'*Remove\x20format:*\x20%0',_0x1f2507['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x5c1181{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1ef109){super(_0x1ef109),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x57e576=this['editor'],_0xa3374f=_0x57e576['model']['document']['selection'];if(!_0x57e576['plugins']['has']('TableEditing'))return;const _0xb11b81=_0x57e576['locale'],_0x8c1bf9=_0x57e576['plugins']['get']('TrackChangesEditing'),_0x1e2bb0=_0x57e576['plugins']['get']('TableUtils');_0x8c1bf9['descriptionFactory']['registerElementLabel']('table',_0x113a89=>c(_0xb11b81,'ELEMENT_TABLE',_0x113a89)),this['_setupColumnsRowsFixing'](),_0x8c1bf9['enableCommand']('insertTable'),_0x8c1bf9['enableCommand']('selectTableRow'),_0x8c1bf9['enableCommand']('selectTableColumn');for(const _0x2505f8 of['insertTableRowAbove','insertTableRowBelow']){const _0x3be292=_0x57e576['commands']['get'](_0x2505f8);_0x8c1bf9['enableCommand'](_0x2505f8,_0xd5ab25=>{_0x57e576['model']['change'](_0x3ec080=>{_0xd5ab25();const _0x4d6ea4='above'===_0x3be292['order'],_0x48dca6=_0x1e2bb0['getSelectionAffectedTableCells'](_0xa3374f),_0x1f203f=_0x1e2bb0['getRowIndexes'](_0x48dca6),_0x2d6ea2=_0x4d6ea4?_0x1f203f['first']-0x1:_0x1f203f['last']+0x1,_0x41cc91=_0x48dca6[0x0]['findAncestor']('table'),_0x345c1d=_0x1e2bb0['createTableWalker'](_0x41cc91,{'startRow':_0x2d6ea2,'endRow':_0x2d6ea2}),_0x3de694=Array['from'](_0x345c1d)['map'](_0x17b622=>_0x3ec080['createRangeOn'](_0x17b622['cell']));_0x8c1bf9['markMultiRangeInsertion'](_0x3de694,'tableRow');});});}for(const _0x1ac714 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5cf812=_0x57e576['commands']['get'](_0x1ac714);_0x8c1bf9['enableCommand'](_0x1ac714,_0x4583fd=>{_0x57e576['model']['change'](_0x374c66=>{_0x4583fd();const _0x15d843='left'===_0x5cf812['order'],_0x44efaf=_0x1e2bb0['getSelectionAffectedTableCells'](_0xa3374f),_0x3da570=_0x1e2bb0['getColumnIndexes'](_0x44efaf),_0x1e90ca=_0x15d843?_0x3da570['first']-0x1:_0x3da570['last']+0x1,_0x169b21=_0x44efaf[0x0]['findAncestor']('table'),_0x3e4d7c=_0x1e2bb0['createTableWalker'](_0x169b21,{'startRow':0x0,'column':_0x1e90ca,'includeAllSlots':!0x1}),_0x1dc74e=Array['from'](_0x3e4d7c)['map'](_0x645c02=>_0x374c66['createRangeOn'](_0x645c02['cell']));_0x8c1bf9['markMultiRangeInsertion'](_0x1dc74e,'tableColumn');});});}for(const _0x32b901 of['removeTableRow','removeTableColumn']){const _0x4f56e0=_0x32b901['substr'](0xb),_0x5d6c10=_0x4f56e0['toLowerCase'](),_0x404fb3=_0x5d6c10['substr'](0x0,0x3)+'span',_0x210c12='table'+_0x4f56e0,_0x2323d1='min'+_0x4f56e0,_0xbb2abd='max'+_0x4f56e0;_0x8c1bf9['enableCommand'](_0x32b901,()=>{_0x57e576['model']['change'](_0x354ead=>{const _0x569ff2=_0x1e2bb0['getSelectionAffectedTableCells'](_0xa3374f),_0x1487d0=_0x569ff2[0x0]['findAncestor']('table');let _0x24a66b;if('removeTableRow'==_0x32b901){const _0x3258cc=_0x1e2bb0['getRowIndexes'](_0x569ff2);_0x24a66b={'startRow':_0x3258cc['first'],'endRow':_0x3258cc['last'],'includeAllSlots':!0x0};}else{const _0x4a1fea=_0x1e2bb0['getColumnIndexes'](_0x569ff2);_0x24a66b={'startColumn':_0x4a1fea['first'],'endColumn':_0x4a1fea['last'],'includeAllSlots':!0x0};}const _0x13a4d1=_0x1e2bb0['createTableWalker'](_0x1487d0,_0x24a66b),_0x5228dd=Array['from'](_0x13a4d1)['map'](({cell:_0x328a6e})=>_0x328a6e),_0x267236=xe(_0x5228dd['filter'](_0x11f588=>_0x11f588['hasAttribute'](_0x404fb3))),_0x19e3c7=xe(_0x5228dd['filter'](_0x4e03d5=>!_0x4e03d5['hasAttribute'](_0x404fb3)))['map'](_0x397950=>_0x354ead['createRangeOn'](_0x397950)),_0x637803=_0x8c1bf9['markMultiRangeDeletion'](_0x19e3c7,_0x210c12);if(_0x637803&&('tableRow'==_0x637803['subType']||'tableColumn'==_0x637803['subType'])){const _0x4adf48=this['_getSuggestionCoords'](_0x637803);for(const _0x349518 of _0x267236){const _0x45194f=_0x354ead['createRangeOn'](_0x349518),_0x43dba1=_0x1e2bb0['getCellLocation'](_0x349518),_0x158157=_0x349518['getAttribute'](_0x404fb3)-0x1,_0x1c834b=_0x4adf48[_0x2323d1],_0x3ba80e=_0x4adf48[_0xbb2abd];_0x1c834b<=_0x43dba1[_0x5d6c10]&&_0x43dba1[_0x5d6c10]+_0x158157<=_0x3ba80e&&_0x637803['addRange'](_0x45194f);}}});});}function _0x5e713e(_0x52e2d5){const _0x4e3574=Array['from'](_0xa3374f['getRanges']())['map'](_0xdfa02c=>_0x597cd7['fromRange'](_0xdfa02c));_0x57e576['model']['change'](_0x3832b6=>{const _0x4d69bf=_0x3832b6['batch'];_0x52e2d5=_0x52e2d5['filter'](_0x1ff1cc=>'$graveyard'!=_0x1ff1cc['root']['rootName']),_0x3832b6['setSelection'](_0x52e2d5),_0x57e576['commands']['get']('removeTableRow')['refresh'](),_0x57e576['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x57e576['model']['enqueueChange'](()=>{_0x57e576['model']['enqueueChange'](_0x4d69bf,_0x3af659=>{const _0x451f69=_0x4e3574['filter'](_0x38de7e=>'$graveyard'!=_0x38de7e['root']['rootName']);_0x451f69['length']>0x0&&_0x3af659['setSelection'](_0x451f69);for(const _0x43d185 of _0x4e3574)_0x43d185['detach']();});});});}function _0x2c8f90(_0x30cfe9){_0x57e576['model']['change'](_0x285949=>{const _0x2a2b4a=Array['from'](_0xa3374f['getRanges']())['map'](_0x3626f2=>_0x597cd7['fromRange'](_0x3626f2)),_0x4be49a=[];for(const _0x1348e3 of _0x30cfe9)for(const _0x19c5d5 of _0x1348e3['getItems']({'shallow':!0x0}))_0x4be49a['push'](_0x19c5d5);for(const _0x15000f of _0x4be49a)'$graveyard'!=_0x15000f['root']['rootName']&&(_0x285949['setSelection'](_0x285949['createPositionAt'](_0x15000f,0x0)),_0x57e576['commands']['get']('removeTableColumn')['refresh'](),_0x57e576['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xa073de=_0x2a2b4a['filter'](_0x25156e=>'$graveyard'!=_0x25156e['root']['rootName']);_0xa073de['length']>0x0&&_0x285949['setSelection'](_0xa073de);for(const _0x18d8b3 of _0x2a2b4a)_0x18d8b3['detach']();});}function _0x45dfd5(_0x1fde30,_0x4eeec6){return _0x4eeec6['every'](_0x34899f=>_0x1fde30['some'](_0x3b8d9a=>_0x3b8d9a['end']['isEqual'](_0x34899f['start'])||_0x34899f['end']['isEqual'](_0x3b8d9a['start'])));}function _0x647545(_0x3d041b,_0x3bc82d){return!_0x3d041b['some'](_0x3c36d1=>_0x3bc82d['some'](_0x429bfd=>_0x3c36d1['isIntersecting'](_0x429bfd)))&&_0x3d041b['some'](_0x51462f=>_0x3bc82d['some'](_0x4dade5=>_0x51462f['end']['isTouching'](_0x4dade5['start'])));}_0x57e576['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x772040,_0xc7fca3,_0x47d182)=>{if(!_0x47d182['options']['showSuggestionHighlights'])return;const _0x21df90=_0xc7fca3['item'];if(!_0x21df90||!_0x21df90['is']('element','tableCell'))return;const _0x4776ab=_0x47d182['mapper']['toViewElement'](_0x21df90);if(_0x4776ab){const {id:_0x4b7e53,authorId:_0x276ef5}=_0x8c1bf9['_splitMarkerName'](_0xc7fca3['markerName']);_0x3adf2c(_0x4776ab,_0x47d182['writer'],(_0x139e90,_0x22ea14,_0x4dec12)=>{_0x4dec12['addClass'](_0x4f6f0d(_0x22ea14['classes']),_0x139e90),_0x4dec12['setAttribute']('data-suggestion-id',_0x4b7e53,_0x139e90),_0x4dec12['setAttribute']('data-author-id',_0x276ef5,_0x139e90);},(_0x2b8146,_0x2e88d4,_0x5dade7)=>{_0x5dade7['removeClass'](_0x4f6f0d(_0x2e88d4['classes']),_0x2b8146),_0x5dade7['removeAttribute']('data-suggestion-id',_0x2b8146),_0x5dade7['removeAttribute']('data-author-id',_0x2b8146);});}},{'priority':'highest'}),_0x8c1bf9['descriptionFactory']['registerDescriptionCallback'](_0x55bb87=>{if('insertion'!=_0x55bb87['type']&&'deletion'!=_0x55bb87['type'])return;const _0x3f7cf5=_0x55bb87['getContainedElement']();if(null!=_0x3f7cf5&&_0x3f7cf5['is']('element','table')){if('insertion'==_0x55bb87['type']){const _0x5dffc6=_0x55bb87['getItems']()['filter'](_0x37bdc4=>_0x37bdc4['is']('$textProxy'))['map'](_0x11d980=>_0x11d980['data']);if(_0x5dffc6['length'])return{'type':'insertion','content':c(_0xb11b81,'*Insert:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5dffc6['join']('\x20')+'\x22'))};}if('deletion'==_0x55bb87['type']){const _0x233bb2=_0x55bb87['getItems']()['filter'](_0x32ea12=>_0x32ea12['is']('$textProxy'))['map'](_0x449d34=>_0x449d34['data']);if(_0x233bb2['length'])return{'type':'deletion','content':c(_0xb11b81,'*Remove:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x233bb2['join']('\x20')+'\x22'))};}}}),_0x8c1bf9['descriptionFactory']['registerDescriptionCallback'](_0x361650=>{if('tableRow'==_0x361650['subType']){const _0x493699=_0x361650['getItems']()['filter'](_0x11ba87=>_0x11ba87['is']('$textProxy'))['map'](_0x16374f=>_0x16374f['data']),_0x2fda7d=this['_getSuggestionCoords'](_0x361650),_0x4efdbc=_0x2fda7d['maxRow']-_0x2fda7d['minRow']+0x1;if('insertion'==_0x361650['type'])return _0x493699['length']?{'type':'insertion','content':c(_0xb11b81,'*Insert:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4efdbc,'\x22'+_0x493699['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0xb11b81,'*Insert:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_ROW',_0x4efdbc))};if('deletion'==_0x361650['type'])return _0x493699['length']?{'type':'deletion','content':c(_0xb11b81,'*Remove:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4efdbc,'\x22'+_0x493699['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0xb11b81,'*Remove:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_ROW',_0x4efdbc))};}if('tableColumn'==_0x361650['subType']){const _0x1a074a=_0x361650['getItems']()['filter'](_0x402499=>_0x402499['is']('$textProxy'))['map'](_0x3062b8=>_0x3062b8['data']),_0x3ab509=this['_getSuggestionCoords'](_0x361650),_0x2598bc=_0x3ab509['maxColumn']-_0x3ab509['minColumn']+0x1;if('insertion'==_0x361650['type'])return _0x1a074a['length']?{'type':'insertion','content':c(_0xb11b81,'*Insert:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2598bc,'\x22'+_0x1a074a['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0xb11b81,'*Insert:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_COLUMN',_0x2598bc))};if('deletion'==_0x361650['type'])return _0x1a074a['length']?{'type':'deletion','content':c(_0xb11b81,'*Remove:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2598bc,'\x22'+_0x1a074a['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0xb11b81,'*Remove:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_COLUMN',_0x2598bc))};}}),_0x8c1bf9['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5e713e),_0x8c1bf9['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5e713e),_0x8c1bf9['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2c8f90),_0x8c1bf9['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2c8f90),_0x8c1bf9['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x45dfd5),_0x8c1bf9['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x45dfd5),_0x8c1bf9['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x647545),_0x8c1bf9['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x647545);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4a3b1d=this['editor'],_0x3e4d81=_0x4a3b1d['model']['document']['selection'];return(_0x4c7641,_0x27f545)=>{_0x4a3b1d['model']['change'](_0x7b835=>{const {commandName:_0x3db69f,commandParams:_0x1bebbc}=_0x27f545;let _0x5d4cb4=_0x4c7641[0x0]['end']['nodeBefore'];_0x1bebbc&&_0x1bebbc[0x0]&&!0x1===_0x1bebbc[0x0]['forceValue']&&(_0x5d4cb4=_0x4c7641[0x0]['start']['nodeAfter']);const _0x2c0c31=_0x7b835['createRangeIn'](_0x5d4cb4);if('$graveyard'==_0x2c0c31['root']['rootName'])return;const _0x25d38f=Array['from'](_0x3e4d81['getRanges']())['map'](_0x45dba2=>_0x597cd7['fromRange'](_0x45dba2));_0x7b835['setSelection'](_0x2c0c31),_0x4a3b1d['commands']['get'](_0x3db69f)['refresh'](),_0x1bebbc['push']({'forceDefaultExecution':!0x0}),_0x4a3b1d['execute'](_0x3db69f,..._0x1bebbc);const _0x54adf6=_0x25d38f['filter'](_0x33529d=>'$graveyard'!=_0x33529d['root']['rootName']);_0x54adf6['length']>0x0&&_0x7b835['setSelection'](_0x54adf6);for(const _0x1017a5 of _0x25d38f)_0x1017a5['detach']();});};}['_getCoordsForCells'](_0x3902bc){const _0x2dd335=this['editor']['plugins']['get']('TableUtils');let _0x4a1679=Number['MAX_SAFE_INTEGER'],_0x4bf90f=Number['MIN_SAFE_INTEGER'],_0x2a8448=Number['MAX_SAFE_INTEGER'],_0x3aa7a3=Number['MIN_SAFE_INTEGER'];for(const _0x51142b of _0x3902bc){if('$graveyard'==_0x51142b['root']['rootName'])continue;const {row:_0x918ce8,column:_0x4d40bc}=_0x2dd335['getCellLocation'](_0x51142b),_0x414cff=_0x51142b['hasAttribute']('rowspan')?_0x51142b['getAttribute']('rowspan')-0x1:0x0,_0x387c16=_0x51142b['hasAttribute']('colspan')?_0x51142b['getAttribute']('colspan')-0x1:0x0;_0x4a1679=_0x918ce8<_0x4a1679?_0x918ce8:_0x4a1679,_0x4bf90f=_0x918ce8+_0x414cff>_0x4bf90f?_0x918ce8+_0x414cff:_0x4bf90f,_0x2a8448=_0x4d40bc<_0x2a8448?_0x4d40bc:_0x2a8448,_0x3aa7a3=_0x4d40bc+_0x387c16>_0x3aa7a3?_0x4d40bc+_0x387c16:_0x3aa7a3;}return{'minRow':_0x4a1679,'maxRow':_0x4bf90f,'minColumn':_0x2a8448,'maxColumn':_0x3aa7a3};}['_setupColumnsRowsFixing'](){const _0x51c472=this['editor'],_0x5e8aee=_0x51c472['plugins']['get']('TrackChangesEditing'),_0x4da5a8=_0x51c472['plugins']['get']('TableUtils');_0x51c472['model']['document']['on']('change:data',()=>{const _0x47f6f0=Array['from'](_0x51c472['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25698b,data:_0x3aeba3}of _0x47f6f0){const {group:_0x21beb7,id:_0x35fcea,subType:_0x55e64b}=_0x5e8aee['_splitMarkerName'](_0x25698b);if('suggestion'!=_0x21beb7)continue;if(null!=_0x3aeba3['oldRange'])continue;const _0x516d17=_0x5e8aee['getSuggestion'](_0x35fcea);this['_tablePostFixingSubtypes']['includes'](_0x55e64b)&&this['_tableSuggestions']['add'](_0x516d17);}},{'priority':'low'});const _0xbea5bc=(_0x16c669,_0x4d7da4)=>{let _0x10aab2=!0x1;const _0x13fab=_0x4d7da4['createRangeOn'](_0x16c669),_0x263c90=_0x16c669['findAncestor']('table'),_0x4bcce8=_0x4da5a8['getCellLocation'](_0x16c669);for(const _0x415c89 of this['_tableSuggestions']){const _0x45bcd8=_0x415c89['subType'],_0x20e6b8=_0x45bcd8['startsWith']('tablePaste'),_0x597ae7=_0x45bcd8['substr'](_0x20e6b8?0xa:0x5),_0x1be13f=_0x597ae7['toLowerCase'](),_0x40dd92=_0x1be13f['substr'](0x0,0x3)+'span',_0x68a9bd='min'+_0x597ae7,_0x44932a='max'+_0x597ae7;if(!_0x415c89['isInContent'])continue;if(_0x263c90!=_0x415c89['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x415c89['isIntersectingWithRange'](_0x13fab))continue;const _0x30a02c=_0x16c669['hasAttribute'](_0x40dd92)?_0x16c669['getAttribute'](_0x40dd92)-0x1:0x0,_0x5480a0=this['_getSuggestionCoords'](_0x415c89),_0x197036=_0x5480a0[_0x68a9bd],_0x47d768=_0x5480a0[_0x44932a];_0x197036<=_0x4bcce8[_0x1be13f]&&_0x4bcce8[_0x1be13f]+_0x30a02c<=_0x47d768&&(_0x415c89['addRange'](_0x13fab),_0x10aab2=!0x0);}return _0x10aab2;};_0x51c472['model']['document']['registerPostFixer'](_0x40e61e=>{let _0x2986d1=!0x1;for(const _0x588482 of _0x51c472['model']['document']['differ']['getChanges']())if('insert'==_0x588482['type']){if('tableRow'==_0x588482['name']){for(const _0x3799e0 of _0x588482['position']['nodeAfter']['getChildren']())_0x2986d1=_0x2986d1||_0xbea5bc(_0x3799e0,_0x40e61e);}else'tableCell'==_0x588482['name']&&(_0x2986d1=_0x2986d1||_0xbea5bc(_0x588482['position']['nodeAfter'],_0x40e61e));}return _0x2986d1;});}['_getSuggestionCoords'](_0x3e9edc){return this['_getCoordsForCells'](_0x3e9edc['getRanges']()['map'](_0x4cbf2b=>_0x4cbf2b['start']['nodeAfter']));}}function xe(_0xd3f111){return Array['from'](new Set(_0xd3f111)['values']());}class Nt extends _0x5c1181{static get['requires'](){return[Ct];}['afterInit'](){const _0x118743=this['editor'],_0x22fb83=_0x118743['model']['document']['selection'],_0x56df16=_0x118743['locale'];if(!_0x118743['plugins']['has']('TableEditing'))return;const _0xba5eed=_0x118743['plugins']['get']('TrackChangesEditing'),_0x19f79f=_0x118743['plugins']['get']('TableUtils'),_0x30dc06=_0x118743['plugins']['get'](Ct);_0x30dc06['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xba5eed['enableCommand']('mergeTableCells',()=>{const _0x2ed95f=_0x19f79f['getSelectionAffectedTableCells'](_0x118743['model']['document']['selection']);_0x118743['model']['change'](()=>{_0xba5eed['markMultiRangeBlockFormat'](_0x2ed95f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x118743['commands']['get']('mergeTableCells')['on']('execute',(_0x115638,_0x20034a)=>{_0x118743['commands']['get']('trackChanges')['value']&&(_0x20034a['length']>0x0&&_0x20034a[_0x20034a['length']-0x1]&&_0x20034a[_0x20034a['length']-0x1]['forceDefaultExecution']||_0xba5eed['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x115638['stop']());},{'priority':'highest'});for(const _0x1bb830 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x33d15d=_0x118743['commands']['get'](_0x1bb830);_0xba5eed['enableCommand'](_0x1bb830,()=>{const _0x48358d=_0x118743['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x42664f=>_0x42664f['is']('element','tableCell')),_0x2e688c=_0x33d15d['value'];_0x118743['model']['change'](()=>{_0xba5eed['markMultiRangeBlockFormat']([_0x48358d,_0x2e688c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3971bf of['splitTableCellVertically','splitTableCellHorizontally']){const _0x588bb9=_0x118743['commands']['get'](_0x3971bf);_0xba5eed['enableCommand'](_0x3971bf,()=>{const _0x129405=_0x19f79f['getSelectionAffectedTableCells'](_0x118743['model']['document']['selection'])[0x0],_0x5c4e7c=_0x129405['findAncestor']('table'),{column:_0x1b036b,row:_0x29cec9}=_0x19f79f['getCellLocation'](_0x129405);let _0x1cabc6=[];if('horizontally'==_0x588bb9['direction']){const _0x2270f9=_0x19f79f['createTableWalker'](_0x5c4e7c,{'startRow':_0x29cec9,'endRow':_0x29cec9,'includeAllSlots':!0x0});_0x1cabc6=Array['from'](_0x2270f9)['map'](_0x1cedb9=>_0x1cedb9['cell']);}else{const _0x38f608=_0x19f79f['createTableWalker'](_0x5c4e7c,{'column':_0x1b036b,'includeAllSlots':!0x0});_0x1cabc6=Array['from'](_0x38f608)['map'](_0x38c993=>_0x38c993['cell']);}_0x118743['model']['change'](_0x4e1ac5=>{_0xba5eed['markBlockFormat'](_0x4e1ac5['createRangeOn'](_0x129405),{'commandName':_0x3971bf,'commandParams':[]},_0x1cabc6,_0x3971bf);});});}_0xba5eed['descriptionFactory']['registerDescriptionCallback'](_0x4e6dea=>{if('formatBlock'!=_0x4e6dea['type']&&'formatInline'!=_0x4e6dea['type'])return;const {data:_0x1042de}=_0x4e6dea;return _0x1042de&&'mergeTableCells'==_0x1042de['commandName']?{'type':'format','content':c(_0x56df16,'*Merge\x20cells*')}:void 0x0;}),_0xba5eed['descriptionFactory']['registerDescriptionCallback'](_0x52cbaf=>{if('formatBlock'!=_0x52cbaf['type']&&'formatInline'!=_0x52cbaf['type'])return;const {data:_0x3f658a}=_0x52cbaf;return _0x3f658a?'splitTableCellVertically'==_0x3f658a['commandName']?{'type':'format','content':c(_0x56df16,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3f658a['commandName']?{'type':'format','content':c(_0x56df16,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x56b17c=_0x30dc06['_acceptFormatSuggestionCallbackFactory']();for(const _0x539c33 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xba5eed['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x539c33,'accept',_0x56b17c);for(const _0x3e4937 of['splitTableCellVertically','splitTableCellHorizontally'])_0xba5eed['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3e4937,'accept',_0x56b17c);_0xba5eed['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x42658a=>{_0x118743['model']['change'](_0x4f3031=>{const _0x562f0f=Array['from'](_0x22fb83['getRanges']())['map'](_0x2fb9b3=>_0x597cd7['fromRange'](_0x2fb9b3));_0x4f3031['setSelection'](_0x42658a),_0x118743['commands']['get']('mergeTableCells')['refresh'](),_0x118743['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x43b3b8=_0x562f0f['filter'](_0x76a11b=>'$graveyard'!=_0x76a11b['root']['rootName']);_0x43b3b8['length']>0x0&&_0x4f3031['setSelection'](_0x43b3b8);for(const _0x17f383 of _0x562f0f)_0x17f383['detach']();});});for(const _0x6f8b78 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x31b405=_0x118743['commands']['get'](_0x6f8b78);_0x31b405['on']('set:isEnabled',(_0x35ff14,_0x6cbec1,_0x5222e6)=>{if(_0x5222e6){const _0x1d7033=_0x118743['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3cc38f=>_0x3cc38f['is']('element','tableCell'));this['_areMergableCells'](_0x31b405['value'],_0x1d7033)||(_0x35ff14['return']=!0x1,_0x35ff14['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3d33ec=this['editor']['commands']['get']('mergeTableCells'),_0x74b01a=this['editor']['plugins']['get']('TableUtils');if(!_0x3d33ec['isEnabled'])return!0x1;const _0x404937=_0x74b01a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2d95d8 of _0x404937)for(const _0x1db6bf of _0x404937)if(_0x2d95d8!=_0x1db6bf&&!this['_areMergableCells'](_0x2d95d8,_0x1db6bf))return!0x1;return!0x0;}['_areMergableCells'](_0x4f2c9f,_0x453b53){const _0x174cc6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a4e0d=this['editor']['model']['createRangeOn'](_0x4f2c9f),_0x5609f7=this['editor']['model']['createRangeOn'](_0x453b53),_0x1f3d28=new Set(),_0x4f2f1c=new Set();for(const _0x4e5811 of _0x174cc6['getSuggestions']())if(('insertion'==_0x4e5811['type']||'deletion'==_0x4e5811['type']||'mergeTableCells'==_0x4e5811['subType'])&&_0x4e5811['isInContent']){for(const _0x43701a of _0x4e5811['getRanges']())_0x43701a['containsRange'](_0x2a4e0d,!0x0)&&_0x1f3d28['add'](_0x4e5811['type']+':'+_0x4e5811['author']['id']),_0x43701a['containsRange'](_0x5609f7,!0x0)&&_0x4f2f1c['add'](_0x4e5811['type']+':'+_0x4e5811['author']['id']);}if(_0x1f3d28['size']!=_0x4f2f1c['size'])return!0x1;for(const _0x19782c of _0x1f3d28)if(!_0x4f2f1c['has'](_0x19782c))return!0x1;return!0x0;}}class Dt extends _0x5c1181{static get['requires'](){return[Ct];}['afterInit'](){const _0x5114ef=this['editor'];if(!_0x5114ef['plugins']['has']('TableEditing'))return;const _0x432e28=_0x5114ef['locale'],_0x2fa127=_0x5114ef['plugins']['get']('TrackChangesEditing');_0x2fa127['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2fa127['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2fa127['registerBlockAttribute']('headingRows'),_0x2fa127['registerBlockAttribute']('headingColumns'),_0x2fa127['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x432e28,'FORMAT_HEADER_ROW')),_0x2fa127['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x432e28,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x280e7f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4946db=this['editor']['plugins']['get']('TableUtils'),_0x32b77d=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x6f8e46({showActiveMarker:_0x3895cd=!0x0,setDataAttribute:_0x6a502c=!0x0}={}){return(_0x14b264,_0x2b56fb,_0x9b882e)=>{const {type:_0x33e6a1,id:_0x1b33d2}=_0x280e7f['_splitMarkerName'](_0x2b56fb['markerName']),_0x4a538d=_0x280e7f['getSuggestion'](_0x1b33d2),_0x122f79=_0x4a538d['data'];if('formatBlock'!=_0x4a538d['type']||!_0x122f79||'setTableColumnHeader'!=_0x122f79['commandName'])return;if(_0x2b56fb['item'])return void _0x14b264['stop']();if(!_0x9b882e['consumable']['consume'](_0x2b56fb['markerRange'],_0x14b264['name']))return;const _0x4ba097=_0x2b56fb['markerRange']['start']['nodeAfter'],_0xaec9ca=_0x2b56fb['markerRange']['end']['nodeBefore'],_0x4a92ae=_0x4ba097['parent']['parent'],{column:_0x5ba43e}=_0x4946db['getCellLocation'](_0x4ba097),{column:_0x39a2df}=_0x4946db['getCellLocation'](_0xaec9ca);for(let _0xef3aff=_0x5ba43e;_0xef3aff<=_0x39a2df;_0xef3aff++){const _0xd1e047=_0x4946db['createTableWalker'](_0x4a92ae,{'column':_0xef3aff,'includeAllSlots':!0x1});for(const _0x4cf010 of _0xd1e047){const _0x12e85c=_0x4cf010['cell'],_0x5aef2f=_0x9b882e['mapper']['toViewElement'](_0x12e85c);_0x9b882e['writer']['addClass']('ck-suggestion-marker-'+_0x33e6a1,_0x5aef2f),_0x6a502c&&_0x9b882e['writer']['setAttribute']('data-suggestion',_0x1b33d2,_0x5aef2f),_0x9b882e['mapper']['bindElementToMarker'](_0x5aef2f,_0x2b56fb['markerName']),_0x3895cd&&(_0x280e7f['activeMarkers']['includes'](_0x2b56fb['markerName'])?_0x9b882e['writer']['addClass']('ck-suggestion-marker--active',_0x5aef2f):_0x9b882e['writer']['removeClass']('ck-suggestion-marker--active',_0x5aef2f));}}};}_0x280e7f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x32b77d),_0x280e7f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x32b77d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x6f8e46(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3db401,_0x3d00c3,_0x2a2e61)=>{_0x2a2e61['options']['showSuggestionHighlights']&&_0x6f8e46({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3db401,_0x3d00c3,_0x2a2e61);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4856a7,_0x21dd47,_0x82cb43)=>{const {type:_0x315457,id:_0x4fb6e4}=_0x280e7f['_splitMarkerName'](_0x21dd47['markerName']),_0x20b7be=_0x280e7f['getSuggestion'](_0x4fb6e4),_0x93b82b=_0x20b7be['data'];if('formatBlock'!=_0x20b7be['type']||!_0x93b82b||'setTableColumnHeader'!=_0x93b82b['commandName'])return;const _0x2c3b6f=_0x82cb43['mapper']['markerNameToElements'](_0x21dd47['markerName']);if(_0x2c3b6f){for(const _0x1f959d of _0x2c3b6f)_0x82cb43['writer']['removeClass']('ck-suggestion-marker-'+_0x315457,_0x1f959d),_0x82cb43['writer']['removeClass']('ck-suggestion-marker--active',_0x1f959d),_0x82cb43['writer']['removeAttribute']('data-suggestion',_0x1f959d),_0x82cb43['mapper']['unbindElementFromMarkerName'](_0x1f959d,_0x21dd47['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7c1297=this['editor'],_0x1a813b=_0x7c1297['locale'];function _0x526e5a(_0x170fcf){return{'type':'format','content':c(_0x1a813b,'*Format:*\x20%0',_0x170fcf)};}_0x7c1297['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4697e1=>{if('formatBlock'!=_0x4697e1['type'])return;const {data:_0x269050}=_0x4697e1;if(_0x269050){if('setTableRowHeader'==_0x269050['commandName']){const _0x27bef4=_0x269050['commandParams'][0x0]['forceValue'];return _0x526e5a(c(_0x1a813b,_0x27bef4?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x269050['commandName']){const _0x31857d=_0x269050['commandParams'][0x0]['forceValue'];return _0x526e5a(c(_0x1a813b,_0x31857d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x5c1181{['afterInit'](){const _0x1e8da9=this['editor'],_0x276247=_0x1e8da9['locale'],_0x5d4cf8=_0x1e8da9['plugins']['get']('TrackChangesEditing');function _0x2ac53d(_0x14ce99){return{'type':'format','content':''+c(_0x276247,'*Set\x20table\x20type:*\x20%0',_0x14ce99)};}_0x1e8da9['plugins']['has']('TableLayout')&&(_0x5d4cf8['enableCommand']('insertTableLayout'),_0x5d4cf8['enableDefaultAttributesIntegration']('tableType'),_0x5d4cf8['registerBlockAttribute']('tableType'),_0x5d4cf8['descriptionFactory']['registerElementLabel'](_0xb0cfdb=>_0xb0cfdb['is']('element','table')&&'layout'===_0xb0cfdb['getAttribute']('tableType'),_0x47075e=>c(_0x276247,'ELEMENT_LAYOUT_TABLE',_0x47075e)),_0x5d4cf8['descriptionFactory']['registerDescriptionCallback'](_0x325f01=>{const {data:_0x341fbc}=_0x325f01;if(_0x341fbc&&'tableType'==_0x341fbc['key'])switch(_0x341fbc['newValue']){case'layout':return _0x2ac53d(c(_0x276247,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2ac53d(c(_0x276247,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x12ed10=>[_0x12ed10,null]));class $t extends _0x5c1181{static get['requires'](){return[Ct];}['afterInit'](){const _0x73ff8=this['editor'];if(!_0x73ff8['plugins']['has']('TableClipboard'))return;const _0x57f583=_0x73ff8['plugins']['get']('TrackChangesEditing'),_0x1737f5=_0x73ff8['plugins']['get']('TableUtils'),_0x4dc73d=_0x73ff8['plugins']['get'](Ct),_0x4926c3=_0x73ff8['plugins']['get']('TableClipboard'),_0x543fe4=_0x73ff8['plugins']['get']('TableSelection'),_0x374e84=_0x73ff8['plugins']['get'](_0x47d534);_0x4dc73d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x73ff8['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x73ff8['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x46c0f0=null,_0x5b47af=!0x1;_0x374e84['on']('contentInsertion',(_0x2e16e6,_0x518a5c)=>{_0x5b47af='paste'===_0x518a5c['method'];}),_0x73ff8['model']['on']('insertContent',(_0x320b37,_0x2a1264)=>{if(!_0x5b47af&&null===_0x543fe4['getSelectedTableCells']())return;const [_0x446dc1,_0x5b5b36]=_0x2a1264,_0x5c5935=_0x2a1264[_0x2a1264['length']-0x1];_0x5c5935&&_0x5c5935['forceDefaultExecution']||_0x57f583['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x7e0f93,_0x240f10,_0x4011ed,_0x257b07,_0x28d98b){if(_0x240f10&&!_0x240f10['is']('documentSelection'))return!0x1;const _0x351046=_0x28d98b['getTableIfOnlyTableInContent'](_0x7e0f93,_0x4011ed);if(!_0x351046||!He(_0x351046,void 0x0,_0x257b07))return!0x1;const _0x45affd=_0x257b07['getSelectionAffectedTableCells'](_0x4011ed['document']['selection']);if(!_0x45affd['length'])return!0x1;const _0x38f035=_0x45affd[0x0]['findAncestor']('table'),_0x4414b0=_0x257b07['getRowIndexes'](_0x45affd),_0x2c4d42=_0x257b07['getColumnIndexes'](_0x45affd),_0x572745={'startRow':_0x4414b0['first'],'endRow':_0x4414b0['last'],'startColumn':_0x2c4d42['first'],'endColumn':_0x2c4d42['last']};return 0x1==_0x45affd['length']&&(_0x572745['endRow']+=_0x257b07['getRows'](_0x351046)-0x1,_0x572745['endColumn']+=_0x257b07['getColumns'](_0x351046)-0x1),He(_0x38f035,_0x572745,_0x257b07);}(_0x446dc1,_0x5b5b36,_0x73ff8['model'],_0x1737f5,_0x4926c3)&&(_0x320b37['stop'](),_0x46c0f0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x73ff8['model']['change'](()=>{_0x73ff8['model']['insertContent'](_0x2a1264[0x0],_0x2a1264[0x1],_0x2a1264[0x2],{'forceDefaultExecution':!0x0});const _0x574895=_0x1b595f(),{rowInsertionRanges:_0x18dd96,columnInsertionRanges:_0x539803,insertionRanges:_0x334640,deletionRanges:_0x293b4d,cells:_0x5bdeb5}=_0x46c0f0;_0x18dd96['length']&&_0x57f583['markMultiRangeInsertion'](_0x18dd96,'tablePasteRow',{'tablePasteChainId':_0x574895}),_0x539803['length']&&_0x57f583['markMultiRangeInsertion'](_0x539803,'tablePasteColumn',{'tablePasteChainId':_0x574895}),_0x334640['length']&&(_0x57f583['markMultiRangeInsertion'](_0x334640,'tablePaste',{'tablePasteChainId':_0x574895,'skipNestingCheck':!0x0}),_0x334640['forEach'](_0xfbfafc=>_0xfbfafc['detach']?.())),_0x293b4d['length']&&(_0x57f583['markMultiRangeDeletion'](_0x293b4d,'tablePaste',{'tablePasteChainId':_0x574895,'skipNestingCheck':!0x0}),_0x293b4d['forEach'](_0x1aef95=>_0x1aef95['detach']?.()));const _0x38d19e=_0x57f583['markMultiRangeBlockFormat'](_0x5bdeb5['map'](({element:_0x3e482a})=>_0x3e482a),{'formatGroupId':_0x1b595f()},[],'tablePasteCell',{'tablePasteChainId':_0x574895});if(_0x38d19e){const _0x5f062e=_0x38d19e['getMarkers'](),_0x53e8ad=[];for(const {element:_0x598b50,attributes:_0x1d3f26}of _0x5bdeb5){if(!_0x1d3f26)continue;const _0x2ea6bc=_0x73ff8['model']['createRangeOn'](_0x598b50),_0x44848b=_0x5f062e['find'](_0x1328d9=>_0x1328d9['getRange']()['isEqual'](_0x2ea6bc));_0x44848b&&_0x53e8ad['push']([_0x44848b['name'],_0x1d3f26]);}_0x53e8ad['length']&&_0x38d19e['setAttribute']('markerAttributes',Object['fromEntries'](_0x53e8ad));}_0x46c0f0=null;}));},{'priority':_0x4b8f33['high']+0xa}),_0x374e84['on']('contentInsertion',()=>{_0x5b47af=!0x1;},{'priority':'lowest'}),_0x73ff8['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5d6c80,_0x39e42d)=>{const [_0x9ff03e,_0x4c1621,,_0x8d7076]=_0x39e42d;if(!_0x46c0f0)return;_0x5d6c80['stop']();const _0x3ba080=_0x9ff03e['cell'],_0x3791fd=_0x4c1621,_0x1700c7=De(_0x3ba080),_0x3ef618=De(_0x3791fd);_0x5d6c80['return']=_0x3ba080;let _0x31e5b7=null,_0x1c7ffc=null;if(_0x3ef618||_0x1700c7){if(_0x1700c7&&!_0x3ef618){_0x8d7076['remove'](_0x3ba080['getChild'](0x0));for(const _0x39a105 of Array['from'](_0x3791fd['getChildren']()))_0x8d7076['insert'](_0x39a105,_0x3ba080,'end');const _0x72e7ef=_0x46c0f0['rowInsertionIndexes']['includes'](_0x9ff03e['row']),_0x296e77=_0x46c0f0['columnInsertionIndexes']['includes'](_0x9ff03e['column']);_0x72e7ef||_0x296e77||(_0x31e5b7=_0x597cd7['fromRange'](_0x8d7076['createRangeIn'](_0x3ba080)));}else _0x3ef618&&!_0x1700c7&&(_0x1c7ffc=_0x8d7076['createRangeIn'](_0x3ba080));}else{const _0x365c2f=_0x8d7076['createElement']('tableCellSuggestion'),_0x3e8c81=_0x8d7076['createElement']('tableCellSuggestion');_0x8d7076['wrap'](_0x8d7076['createRangeIn'](_0x3ba080),_0x3e8c81),_0x8d7076['insert'](_0x365c2f,_0x3ba080,0x0);for(const _0x31020a of Array['from'](_0x3791fd['getChildren']()))_0x8d7076['insert'](_0x31020a,_0x365c2f,'end');_0x31e5b7=_0x597cd7['fromRange'](_0x8d7076['createRangeOn'](_0x365c2f)),_0x1c7ffc=_0x597cd7['fromRange'](_0x8d7076['createRangeOn'](_0x3e8c81));}const _0x51a8a0=Array['from'](_0x3791fd['getAttributes']())['filter'](([_0x10bfe3])=>Oe['includes'](_0x10bfe3));_0x46c0f0['cells']['push']({'element':_0x3ba080,'attributes':_0x51a8a0['length']?Object['fromEntries'](_0x51a8a0):null}),_0x31e5b7&&_0x46c0f0['insertionRanges']['push'](_0x31e5b7),_0x1c7ffc&&_0x46c0f0['deletionRanges']['push'](_0x1c7ffc);},{'priority':'high'}),_0x1737f5['on']('insertColumns',(_0x2a968c,_0x422223)=>{const [_0x1ec8f0,_0x41440c={}]=_0x422223;if(!_0x46c0f0)return;const _0x1609cd=_0x41440c['at']||0x0,_0x12fde7=_0x41440c['columns']||0x1;_0x46c0f0['columnInsertionIndexes']=new Array(_0x12fde7)['fill'](_0x1609cd)['map']((_0x39eb9a,_0xa6bc08)=>_0x39eb9a+_0xa6bc08);for(const {cell:_0x4cb6dc}of _0x1737f5['createTableWalker'](_0x1ec8f0,{'startColumn':_0x1609cd,'endColumn':_0x1609cd+_0x12fde7-0x1}))_0x46c0f0['columnInsertionRanges']['push'](_0x73ff8['model']['createRangeOn'](_0x4cb6dc));},{'priority':'low'}),_0x1737f5['on']('insertRows',(_0x2cf119,_0x180d23)=>{const [_0x5439dc,_0x2c0bb3={}]=_0x180d23;if(!_0x46c0f0)return;const _0xf5ba1c=_0x2c0bb3['at']||0x0,_0x1bcc63=_0x2c0bb3['rows']||0x1;_0x46c0f0['rowInsertionIndexes']=new Array(_0x1bcc63)['fill'](_0xf5ba1c)['map']((_0x49c7a3,_0xa817ae)=>_0x49c7a3+_0xa817ae);for(const {cell:_0x171578}of _0x1737f5['createTableWalker'](_0x5439dc,{'startRow':_0xf5ba1c,'endRow':_0xf5ba1c+_0x1bcc63-0x1}))_0x46c0f0['rowInsertionRanges']['push'](_0x73ff8['model']['createRangeOn'](_0x171578));},{'priority':'low'}),_0x57f583['descriptionFactory']['registerDescriptionCallback'](_0x3ee1db=>{if(_0x3ee1db['subType']&&_0x3ee1db['subType']['startsWith']('tablePaste'))return _0x3ee1db['previous']?{}:{'type':'insertion','content':c(_0x73ff8['locale'],'*Replace\x20table\x20cells*')};});const _0x3edf0e=()=>!0x1;for(const _0x5da8ab of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x57f583['_suggestionFactory']['registerCustomCallback']('insertion',_0x5da8ab,'join',_0x3edf0e),_0x57f583['_suggestionFactory']['registerCustomCallback']('deletion',_0x5da8ab,'join',_0x3edf0e),_0x57f583['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5da8ab,'join',_0x3edf0e);_0x57f583['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3edf0e),_0x57f583['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x53b615,_0x342703,_0x591bae)=>{const _0x1d4fe2=_0x53b615['map'](_0x35c2bd=>_0x35c2bd['getContainedElement']())['filter'](_0x29716d=>_0x29716d),_0x5a4a99=new Map(_0x1d4fe2['map'](_0x8a72b9=>[_0x8a72b9,null]));if(_0x46c0f0){for(const {element:_0x5963f7,attributes:_0x14eb9b}of _0x46c0f0['cells'])_0x14eb9b&&_0x5a4a99['set'](_0x5963f7,_0x14eb9b);}else{if(_0x591bae&&_0x591bae['markerAttributes'])for(const [_0x49fd7c,_0x5ab748]of Object['entries'](_0x591bae['markerAttributes'])){const _0x278a41=_0x73ff8['model']['markers']['get'](_0x49fd7c),_0x36535c=_0x278a41?_0x278a41['getRange']()['getContainedElement']():null;_0x36535c&&_0x5a4a99['set'](_0x36535c,_0x5ab748);}}_0x73ff8['model']['change'](_0x549734=>{for(const [_0x20ae9a,_0x4f6ec0]of _0x5a4a99)_0x549734['setAttributes']({...Ue,..._0x4f6ec0},_0x20ae9a);});});const _0x17b9ff=(_0x204047,_0x401e6e)=>{_0x57f583['_suggestionFactory']['registerCustomCallback'](_0x204047,'tablePaste',_0x401e6e,(_0x70f32b,_0x5b14b3,_0x1857ef)=>{_0x73ff8['model']['change'](_0x1e07dd=>{const _0x48be72=[];for(const _0x8b203f of _0x70f32b){const _0x77af71=_0x8b203f['start']['nodeAfter'];_0x77af71['is']('element','tableCellSuggestion')&&_0x48be72['push'](_0x77af71);}_0x57f583['_suggestionFactory']['getSuggestionCallback'](_0x204047,null,_0x401e6e)(_0x70f32b,_0x5b14b3,_0x1857ef);for(const _0x4fca3c of _0x48be72)'$graveyard'!=_0x4fca3c['root']['rootName']&&_0x1e07dd['unwrap'](_0x4fca3c);});});};_0x17b9ff('insertion','accept'),_0x17b9ff('insertion','discard'),_0x17b9ff('deletion','accept'),_0x17b9ff('deletion','discard'),_0x57f583['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5973ef=>{const _0x2611c5=_0x5973ef['map'](_0x158b48=>_0x158b48['getContainedElement']()),_0x240273=_0x2611c5[0x0]['findAncestor']('table'),{minRow:_0x1b97f1,maxRow:_0x20bcbc}=_0x4dc73d['_getCoordsForCells'](_0x2611c5);_0x1737f5['removeRows'](_0x240273,{'at':_0x1b97f1,'rows':_0x20bcbc-_0x1b97f1+0x1});}),_0x57f583['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xd5eb66=>{const _0x2a8b7d=_0xd5eb66['map'](_0x88d2f4=>_0x88d2f4['getContainedElement']()),_0x407c91=_0x2a8b7d[0x0]['findAncestor']('table'),{minColumn:_0x46e219,maxColumn:_0x178516}=_0x4dc73d['_getCoordsForCells'](_0x2a8b7d);_0x1737f5['removeColumns'](_0x407c91,{'at':_0x46e219,'columns':_0x178516-_0x46e219+0x1});});const _0x94e5e9=(_0x24169a,_0x3354c0)=>{if(!_0x3354c0['subType']||!_0x3354c0['subType']['startsWith']('tablePaste'))return;const _0x5f747e=_0x3354c0['attributes']['tablePasteChainId'],_0x37c937=_0x57f583['getSuggestions']()['filter'](_0x1539fd=>_0x1539fd['isInContent']&&_0x1539fd['attributes']&&_0x1539fd['attributes']['tablePasteChainId']==_0x5f747e);_0x37c937['length']&&_0x3354c0['getAllAdjacentSuggestions']()['length']!=_0x37c937['length']&&_0x37c937['reduce']((_0x26d444,_0x230816)=>(_0x26d444['next']=_0x230816,_0x230816['previous']=_0x26d444,_0x230816));};function _0x2b0a57(_0x57beea,_0x1ac47f=!0x0){const {id:_0xeaa9ed,authorId:_0x1f5fa1}=_0x57f583['_splitMarkerName'](_0x57beea['markerName']),_0x312e7a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5094c1=_0x57f583['activeMarkers']['includes'](_0x57beea['markerName']);return _0x5094c1&&_0x312e7a['push']('ck-suggestion-marker--active'),{'classes':_0x312e7a,'attributes':{'data-suggestion':_0xeaa9ed,'data-author-id':_0x1f5fa1},'priority':_0x5094c1&&_0x1ac47f?0xbc2:0xbb8};}_0x57f583['on']('suggestionLoaded',_0x94e5e9,{'priority':'high'}),_0x57f583['on']('suggestionUnloaded',_0x94e5e9,{'priority':'high'}),_0x73ff8['model']['document']['registerPostFixer'](()=>{let _0x1eeabf=!0x1;const _0x292c88=Array['from'](_0x73ff8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42de37,data:_0x2ce2f6}of _0x292c88){const {group:_0x4eac86,type:_0x46d34b,id:_0x320522}=_0x57f583['_splitMarkerName'](_0x42de37);if('suggestion'!=_0x4eac86||'deletion'!=_0x46d34b||_0x2ce2f6['oldRange'])continue;if(!_0x57f583['hasSuggestion'](_0x320522))continue;const _0x28dc55=_0x57f583['getSuggestion'](_0x320522)['getRanges'](),_0x3cb35a=_0x73ff8['plugins']['get']('Users')['me'];for(const _0x92704b of _0x57f583['getSuggestions']()){if(!_0x92704b['isInContent']||_0x92704b['author']!=_0x3cb35a)continue;if('formatBlock'!=_0x92704b['type']||'tablePasteCell'!=_0x92704b['subType'])continue;if(_0x92704b['getRanges']()['every'](_0x3076c2=>_0x28dc55['some'](_0x3efc84=>_0x3efc84['containsRange'](_0x3076c2,!0x0)))){for(const _0x2a2516 of _0x92704b['getAllAdjacentSuggestions']())_0x2a2516['isInContent']&&(_0x2a2516['discard'](),_0x1eeabf=!0x0);}}}return _0x1eeabf;}),_0x73ff8['model']['document']['registerPostFixer'](_0xc257cd=>{const _0x4087f2=_0x73ff8['commands']['get']('redo');if(!_0x4087f2||!_0x4087f2['_createdBatches']['has'](_0xc257cd['batch']))return!0x1;let _0x397a69=!0x1;const _0x103dfe=_0x73ff8['plugins']['get']('Users')['me'],_0x1a7661=_0x73ff8['model']['document']['differ']['getChanges'](),_0x3ab427=Array['from'](_0x73ff8['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x21f894,data:_0x329c6a})=>{const {group:_0x46ca97,subType:_0x401b37,authorId:_0x2be004}=_0x57f583['_splitMarkerName'](_0x21f894);return'suggestion'==_0x46ca97&&'tablePaste'==_0x401b37&&_0x2be004==_0x103dfe['id']&&!_0x329c6a['oldRange'];});for(const _0x1e4f40 of _0x1a7661){if('insert'!=_0x1e4f40['type']||'tableCellSuggestion'!=_0x1e4f40['name']||0x1!=_0x1e4f40['length'])continue;const _0x1a9354=_0xc257cd['createRange'](_0x1e4f40['position'],_0x1e4f40['position']['getShiftedBy'](0x1));if(!_0x3ab427['find'](({data:_0x26b28e})=>_0x26b28e['newRange']['isEqual'](_0x1a9354))){for(const {name:_0x124dee,data:_0x52b0d8}of _0x3ab427)if(_0x1a9354['containsRange'](_0x52b0d8['newRange'])){_0xc257cd['updateMarker'](_0x124dee,{'range':_0x1a9354}),_0x397a69=!0x0;break;}}}return _0x397a69;}),_0x73ff8['model']['document']['registerPostFixer'](_0x570ce7=>{let _0x31695c=!0x1;const _0x55002d=_0x73ff8['plugins']['get']('Users')['me'],_0x400629=_0x57f583['getSuggestions']()['filter'](_0x435e9e=>_0x435e9e['isInContent']&&_0x435e9e['author']==_0x55002d),_0x1ae5f4=new Set(),_0xecf94d=new Set();for(const _0x4e35a0 of _0x400629)if('tablePaste'==_0x4e35a0['subType'])for(const _0x16dbf1 of _0x4e35a0['getMarkers']()){const _0x26c214=_0x16dbf1['getRange']()['getContainedElement']();if(_0x26c214){if(_0x26c214['is']('element','tableCellSuggestion')&&De(_0x26c214)){_0x4e35a0['removeMarker'](_0x16dbf1['name']),_0x1ae5f4['add'](_0x26c214),_0x31695c=!0x0;const _0x363230=_0x26c214['nextSibling'],_0x259456=_0x26c214['previousSibling'],_0x3d0ec3=_0x363230&&_0x363230['is']('element','tableCellSuggestion'),_0x5b699b=_0x259456&&_0x259456['is']('element','tableCellSuggestion');_0x3d0ec3&&!_0x1ae5f4['has'](_0x363230)&&_0xecf94d['add'](_0x363230),_0x5b699b&&!_0x1ae5f4['has'](_0x259456)&&_0xecf94d['add'](_0x259456);}else _0x26c214['is']('element','paragraph')&&_0x26c214['isEmpty']&&(_0x4e35a0['removeMarker'](_0x16dbf1['name']),_0x31695c=!0x0);}}else{if('tablePasteCell'==_0x4e35a0['subType']){if(!_0x4e35a0['attributes']||!_0x4e35a0['attributes']['tablePasteChainId'])continue;const _0x1c775c=_0x4e35a0['attributes']['markerAttributes'];if(_0x1c775c&&Object['keys'](_0x1c775c)['length'])continue;const _0x3df7be=_0x4e35a0['attributes']['tablePasteChainId'];let _0x2b9e6f=!0x0,_0x39630f=!0x0;for(const _0xecaaa0 of _0x400629)if(_0xecaaa0['subType']&&_0xecaaa0['subType']['startsWith']('tablePaste')){if(!_0xecaaa0['attributes']['tablePasteChainId']){_0x39630f=!0x1;break;}if(_0xecaaa0['id']!=_0x4e35a0['id']&&_0xecaaa0['attributes']['tablePasteChainId']==_0x3df7be){_0x2b9e6f=!0x1;break;}}_0x39630f&&_0x2b9e6f&&(_0x4e35a0['removeMarkers'](),_0x31695c=!0x0);}}for(const _0x54ee75 of _0x1ae5f4)_0x570ce7['remove'](_0x54ee75);for(const _0xaa8ced of _0xecf94d)_0x570ce7['unwrap'](_0xaa8ced);return _0x31695c;}),_0x73ff8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2be315=>_0x2b0a57(_0x2be315),'converterPriority':'high'}),_0x73ff8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1f8e0d,_0x43d100)=>_0x43d100['options']['showSuggestionHighlights']?_0x2b0a57(_0x1f8e0d,!0x1):null,'converterPriority':'high'});const _0x15104d=_0x73ff8['editing']['view'];this['listenTo'](_0x15104d['document'],'clipboardOutput',(_0x2ecfbc,_0x1b1215)=>{const _0x14dacd=[];for(const _0x2e07dd of _0x15104d['createRangeIn'](_0x1b1215['content'])['getItems']())_0x2e07dd['is']('element','suggestion-td')&&_0x14dacd['push'](_0x2e07dd);_0x15104d['change'](_0x490d86=>{for(const _0x50297c of _0x14dacd)_0x490d86['move'](_0x490d86['createRangeIn'](_0x50297c),_0x490d86['createPositionBefore'](_0x50297c)),_0x490d86['remove'](_0x50297c);});});}}function De(_0x30c8ae){if(_0x30c8ae['isEmpty'])return!0x0;const _0x480335=_0x30c8ae['getChild'](0x0);return _0x480335['is']('element','paragraph')&&_0x480335['isEmpty'];}function He(_0x1a8f41,_0x2356aa={},_0x5ead01){for(const {isAnchor:_0x33792d,cellHeight:_0xb76efb,cellWidth:_0x295531}of _0x5ead01['createTableWalker'](_0x1a8f41,{'includeAllSlots':!0x0,..._0x2356aa}))if(!_0x33792d||0x1!=_0xb76efb||0x1!=_0x295531)return!0x1;return!0x0;}class Bt extends _0x5c1181{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3969e1=this['editor']['plugins']['get']('TrackChangesEditing');_0x3969e1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3969e1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3969e1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3969e1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3969e1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3969e1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x227295,_0x150f96){const _0x4a9869=this['editor']['plugins']['get']('TrackChangesEditing'),_0x91d15f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x292853=_0x150f96['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x347104=_0x91d15f['getColumnGroupElement'](_0x292853);let _0x873a46=_0x347104?_0x91d15f['getTableColumnsWidths'](_0x347104):null,_0x6178c9=_0x292853['getAttribute']('tableWidth')||null;const _0x2821bd=_0x150f96['tableWidth']||_0x6178c9,_0x348546=_0x150f96['columnWidths']||_0x873a46,_0x2407ee=this['editor']['plugins']['get']('Users')['me'];for(const _0x58b90a of _0x4a9869['getSuggestions']()){const _0x53d001=_0x58b90a['getContainedElement']();if('resizeTable'===_0x58b90a['subType']&&_0x53d001===_0x292853){_0x58b90a['author']!==_0x2407ee&&_0x58b90a['discard']();const _0x8799e1=_0x58b90a['data']['commandParams'];_0x6178c9=_0x8799e1[0x0]['tableWidth'],_0x873a46=_0x8799e1[0x0]['columnWidths'];break;}}_0x227295({'table':_0x292853,'tableWidth':_0x2821bd,'columnWidths':_0x348546}),_0x4a9869['markBlockFormat'](_0x292853,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x6178c9,'columnWidths':_0x873a46}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x43acb1){if('formatBlock'!=_0x43acb1['type']&&'formatInline'!=_0x43acb1['type'])return;const {data:_0x558f5f}=_0x43acb1;if(_0x558f5f&&'resizeTable'===_0x558f5f['formatGroupId']){const _0x351f39='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x351f39)};}}}class xt extends _0x5c1181{['afterInit'](){const _0x1bab27=this['editor'];_0x1bab27['plugins']['has']('Template')&&_0x1bab27['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x5c1181{['afterInit'](){const _0x376765=this['editor'];if(!_0x376765['commands']['get']('insertTableOfContents'))return;_0x376765['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x572a21=_0x376765['plugins']['get']('TrackChangesEditing'),_0x4f2f9b=_0x376765['locale'];_0x572a21['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5845f4=>c(_0x4f2f9b,'ELEMENT_TABLE_OF_CONTENTS',_0x5845f4));}}class Rt extends _0x5c1181{['afterInit'](){const _0x394c72=this['editor'];if(!_0x394c72['plugins']['has']('Title'))return;const _0xef86a5=_0x394c72['plugins']['get']('TrackChangesEditing');_0xef86a5['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x394c72['locale'],'ELEMENT_TITLE')),_0x394c72['model']['document']['registerPostFixer'](_0xa029ee=>{let _0x924f91=!0x1;const _0x3a6905=Array['from'](_0x394c72['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5dcb49,data:_0x103fac}of _0x3a6905){const {group:_0x3facf9}=_0xef86a5['_splitMarkerName'](_0x5dcb49);if('suggestion'!==_0x3facf9||!_0x103fac['newRange'])continue;const _0x3c82ca=_0x103fac['newRange'],_0x4d1024=_0x3c82ca['end']['nodeBefore'];if(!_0x4d1024||!_0x4d1024['is']('element','title-content'))continue;if(!_0x3c82ca['start']['isTouching'](_0x3c82ca['end']))continue;const _0xda8261=_0x394c72['model']['schema']['getNearestSelectionRange'](_0x3c82ca['end'],'forward');if(_0xda8261&&_0xda8261['isCollapsed']){const _0x13e695=_0xa029ee['createRange'](_0x3c82ca['start'],_0xda8261['start']);_0x13e695['isEqual'](_0x3c82ca)||(_0xa029ee['updateMarker'](_0x5dcb49,{'range':_0x13e695}),_0x924f91=!0x0);}_0x924f91||(_0xa029ee['removeMarker'](_0x5dcb49),_0x924f91=!0x0);}return _0x924f91;});}}class Tt extends _0x5c1181{['afterInit'](){const _0x3b0cc0=this['editor'],_0x2f3849=_0x3b0cc0['plugins']['get']('TrackChangesEditing');_0x3b0cc0['plugins']['has']('Uploadcare')&&(_0x2f3849['enableCommand']('uploadcare'),_0x3b0cc0['plugins']['has']('UploadcareImageEdit')&&(_0x2f3849['enableCommand']('uploadcareImageEdit'),_0x2f3849['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2f3849['registerBlockAttribute']('uploadcareImageId'),_0x2f3849['descriptionFactory']['registerDescriptionCallback'](_0x45f021=>{if('attribute'!=_0x45f021['type'])return;const {data:_0x1da00f}=_0x45f021;return _0x1da00f&&'uploadcareImageId'==_0x1da00f['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x5c1181{['afterInit'](){const _0x570d49=this['editor'],_0x339f37=_0x570d49['plugins']['get']('TrackChangesEditing');_0x570d49['plugins']['has']('UndoEditing')&&(_0x339f37['enableCommand']('undo'),_0x339f37['enableCommand']('redo'));}}class Ut extends _0x5c1181{static get['requires'](){return[Ct];}['afterInit'](){const _0x432e05=this['editor'];if(!_0x432e05['plugins']['has']('TableCaptionEditing'))return;_0x432e05['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x5c1181{['tableProperties'];['tableCellProperties'];constructor(_0x4a96bc){super(_0x4a96bc),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 _0x45724e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x422929 of this['tableProperties'])_0x45724e['enableCommand'](_0x422929,(_0x475fd3,_0xbf8f31)=>{const _0x2e8790=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x422929,[_0x2e8790],this['tableProperties'],'tableProperties',_0x475fd3,_0xbf8f31);});_0x45724e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x45724e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x45724e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x12dc53,_0x1a78a9)=>this['handleDiscardAction'](this['tableProperties'],_0x12dc53,_0x1a78a9)),_0x45724e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3d8aa3 of this['tableCellProperties'])_0x45724e['enableCommand'](_0x3d8aa3,(_0x967719,_0x41b70a)=>{const _0x469ef0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3d8aa3,_0x469ef0,this['tableCellProperties'],'tableCellProperties',_0x967719,_0x41b70a);});_0x45724e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x45724e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x45724e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x270605,_0x2ffae1)=>this['handleDiscardAction'](this['tableCellProperties'],_0x270605,_0x2ffae1)),_0x45724e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x45724e['descriptionFactory']['registerDescriptionCallback'](_0x4f9c9a=>this['handleSuggestionDescription'](_0x4f9c9a));}['_handlePropertyChange'](_0x54cd60,_0x4c0dbd,_0x47f6ba,_0x1a5dda,_0x5c1891,_0x43e813){const _0x103985=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x43e813['batch'],()=>{for(const _0x6294d of _0x4c0dbd){if(this['_getSuggestion'](_0x6294d,_0x1a5dda))_0x5c1891(_0x43e813);else{const _0x88abd0={};for(const _0x588a3f of _0x47f6ba){const _0x1249a=_0x6294d['getAttribute'](_0x588a3f);void 0x0!==_0x1249a&&(_0x88abd0[_0x588a3f]=_0x1249a);}_0x5c1891(_0x43e813),_0x103985['markBlockFormat'](_0x6294d,{'commandParams':[_0x88abd0]},[],_0x1a5dda);}}});}['handleDiscardAction'](_0x272848,_0x8f6f53,_0x4e65e0){const _0x276dcb=_0x8f6f53[0x0]['start']['nodeAfter'],_0x49aebe=_0x4e65e0['commandParams'][0x0];this['editor']['model']['change'](_0x2c9a90=>{for(const _0x1a487c of _0x272848)void 0x0!==_0x49aebe[_0x1a487c]?_0x2c9a90['setAttribute'](_0x1a487c,_0x49aebe[_0x1a487c],_0x276dcb):_0x2c9a90['removeAttribute'](_0x1a487c,_0x276dcb);});}['handleSuggestionDescription'](_0x116d15){if(_0x116d15['data'])switch(_0x116d15['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'](_0x236924,_0x1c5957){const _0x29a88c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x28dcdf of _0x29a88c['getSuggestions']({'skipNotAttached':!0x0})){const _0x5d83cd=_0x28dcdf['getContainedElement']();if(_0x28dcdf['subType']===_0x1c5957&&_0x5d83cd===_0x236924)return _0x28dcdf;}return null;}}const u='$elementName';class p extends _0x5c1181{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x4a4901,_0x2f18b2,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,gt,Q,wt,lt,W,Se,mt,pt,kt,bt,yt,jt,St,At,It,_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(_0x23ce1b){super(_0x23ce1b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x542b8e,_0x1cdbe5,_0x507ca1,_0x31a80d)=>{this['_model']['change'](()=>{for(const _0x59f763 of[..._0x31a80d,..._0x507ca1])this['_model']['markers']['has'](_0x59f763)&&_0x23ce1b['editing']['reconvertMarker'](_0x59f763);});}),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']=_0x23ce1b['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(),_0x23ce1b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x23ce1b['config']['get']('trackChanges.trackFormatChanges'),_0x23ce1b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x23ce1b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x23ce1b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x27bdfc=this['editor'],_0x58e709=(_0xe0a5c8,_0x184635)=>{if('attribute'!=_0xe0a5c8)return'ck-suggestion-marker-'+_0xe0a5c8;const _0x3708cb=_0x184635['split']('|')[0x0];return this['_isBlockAttribute'](_0x3708cb)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x27bdfc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x42636d=>{const {id:_0x9ae946,authorId:_0x25ff33,type:_0x4f2165,subType:_0x5d5537}=this['_splitMarkerName'](_0x42636d['markerName']),_0x3ffda=['ck-suggestion-marker',_0x58e709(_0x4f2165,_0x5d5537)];let _0x43f9a9=0xbb8;return this['activeMarkers']['includes'](_0x42636d['markerName'])&&(_0x3ffda['push']('ck-suggestion-marker--active'),_0x43f9a9=0xbc2),'deletion'==_0x4f2165&&(_0x43f9a9+=0x5),{'classes':_0x3ffda,'attributes':{'data-suggestion':_0x9ae946,'data-author-id':_0x25ff33},'priority':_0x43f9a9};}}),_0x27bdfc['conversion']['for']('dataDowncast')['add'](_0x14070a=>{_0x14070a['on']('addMarker:suggestion',(_0x5adf9c,_0x181634,_0x3ade61)=>{if(!_0x3ade61['options']['showSuggestionHighlights'])return;const _0x3e5f55=_0x181634['item'];if(!_0x3e5f55)return;const _0x27bc8a=_0x3ade61['mapper']['toViewElement'](_0x3e5f55);_0x27bdfc['model']['schema']['isObject'](_0x3e5f55)&&_0x27bc8a&&!_0x27bc8a['getCustomProperty']('widget')&&_0x27bc8a['is']('containerElement')&&_0x586b6a(_0x27bc8a,_0x3ade61['writer']);},{'priority':'high'});}),_0x27bdfc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x9e9787,_0xcebd7a)=>{if(!_0xcebd7a['options']['showSuggestionHighlights'])return null;const {id:_0x2180bf,authorId:_0x54f9ad,type:_0x114650,subType:_0x48c3e0}=this['_splitMarkerName'](_0x9e9787['markerName']);return{'classes':['ck-suggestion-marker',_0x58e709(_0x114650,_0x48c3e0)],'priority':0xbb8,'attributes':{'data-suggestion':_0x2180bf,'data-author-id':_0x54f9ad}};}});const _0x56f5f9=({showActiveMarkers:_0xd1f67a=!0x0,isAttributeSuggestion:_0x35bd7d=!0x1}={})=>(_0x38e9ba,_0x540d10,_0x2bda81)=>{if(!_0x540d10['item'])return;const {id:_0x8837a7,authorId:_0x5ef822}=this['_splitMarkerName'](_0x540d10['markerName']);if(_0x35bd7d){const _0x7f65b3=this['_suggestions']['get'](_0x8837a7),_0x4823c8=this['_getAttributeKey'](_0x7f65b3);if(!this['_isBlockAttribute'](_0x4823c8))return;}if(_0x540d10['item']['is']('selection'))return void _0x2bda81['consumable']['consume'](_0x540d10['item'],_0x38e9ba['name']);const _0x123394=_0x2bda81['mapper']['toViewElement'](_0x540d10['item']);if(_0x540d10['item']['is']('element')&&_0x27bdfc['model']['schema']['isBlock'](_0x540d10['item'])&&!_0x123394['getCustomProperty']('addHighlight')){_0x2bda81['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x123394),_0x2bda81['writer']['setAttribute']('data-suggestion',_0x8837a7,_0x123394),_0x2bda81['writer']['setAttribute']('data-author-id',_0x5ef822,_0x123394),_0x2bda81['mapper']['bindElementToMarker'](_0x123394,_0x540d10['markerName']),_0xd1f67a&&(this['activeMarkers']['includes'](_0x540d10['markerName'])?_0x2bda81['writer']['addClass']('ck-suggestion-marker--active',_0x123394):_0x2bda81['writer']['removeClass']('ck-suggestion-marker--active',_0x123394));for(const _0x23599e of _0x27bdfc['model']['createRangeIn'](_0x540d10['item'])['getItems']())_0x2bda81['consumable']['consume'](_0x23599e,_0x38e9ba['name']);_0x2bda81['consumable']['consume'](_0x540d10['item'],_0x38e9ba['name']);}};_0x27bdfc['conversion']['for']('dataDowncast')['add'](_0x1ae102=>{_0x1ae102['on']('addMarker:suggestion:formatBlock',(_0x2c6289,_0x540165,_0x248e19)=>{_0x248e19['options']['showSuggestionHighlights']&&_0x56f5f9({'showActiveMarkers':!0x1})(_0x2c6289,_0x540165,_0x248e19);},{'priority':'highest'});}),_0x27bdfc['conversion']['for']('dataDowncast')['add'](_0x11da31=>{_0x11da31['on']('addMarker:suggestion:attribute',(_0x448100,_0x457581,_0x211673)=>{_0x211673['options']['showSuggestionHighlights']&&_0x56f5f9({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x448100,_0x457581,_0x211673);},{'priority':'highest'});}),_0x27bdfc['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x554929,_0x5550a6)=>{if(_0x5550a6['options']['showSuggestionHighlights']){const {id:_0x307adb,authorId:_0x23c175}=this['_splitMarkerName'](_0x554929);return _0x554929['includes'](':split')||_0x554929['includes'](':merge')?{'group':'suggestion','name':_0x554929['substr'](0xb),'attributes':{'data-suggestion':_0x307adb,'data-author-id':_0x23c175}}:null;}return{'group':'suggestion','name':_0x554929['substr'](0xb)};}}),_0x27bdfc['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3f89cd,{writer:_0x95d2de})=>{let _0x19de02='suggestion:'+_0x3f89cd['getAttribute']('suggestion-type')+':'+_0x3f89cd['getAttribute']('id');return _0x3f89cd['getAttribute']('marker-count')&&(_0x19de02+=':'+_0x3f89cd['getAttribute']('marker-count')),_0x95d2de['createElement']('$marker',{'data-name':_0x19de02});}}),_0x27bdfc['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x27bdfc['conversion']['for']('editingDowncast')['add'](_0x1c0678=>{_0x1c0678['on']('addMarker:suggestion:formatBlock',_0x56f5f9(),{'priority':'high'});}),_0x27bdfc['conversion']['for']('editingDowncast')['add'](_0x4f1a29=>{_0x4f1a29['on']('addMarker:suggestion:attribute',_0x56f5f9({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x27bdfc['conversion']['for']('editingDowncast')['add'](_0x178c6b=>{_0x178c6b['on']('removeMarker:suggestion:formatBlock',(_0x4c02ad,_0x4a7a07,_0x44024b)=>{const _0x5d8c9f=_0x44024b['mapper']['markerNameToElements'](_0x4a7a07['markerName']);if(_0x5d8c9f){for(const _0x53157b of _0x5d8c9f)_0x53157b['getCustomProperty']('addHighlight')||(_0x44024b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x53157b),_0x44024b['writer']['removeAttribute']('data-suggestion',_0x53157b),_0x44024b['writer']['removeAttribute']('data-author-id',_0x53157b),_0x44024b['mapper']['unbindElementFromMarkerName'](_0x53157b,_0x4a7a07['markerName']));}},{'priority':'high'});}),_0x27bdfc['conversion']['for']('editingDowncast')['add'](_0x3a196e=>{_0x3a196e['on']('removeMarker:suggestion:attribute',(_0x31f6a4,_0x58a796,_0x2f592a)=>{const _0x494800=_0x2f592a['mapper']['markerNameToElements'](_0x58a796['markerName']);if(!_0x494800)return;const {id:_0x4aacb9}=this['_splitMarkerName'](_0x58a796['markerName']),_0x55c613=this['_suggestions']['get'](_0x4aacb9),_0x2ad7a5=this['_getAttributeKey'](_0x55c613);if(this['_isBlockAttribute'](_0x2ad7a5)){for(const _0x3fe9ed of _0x494800)_0x3fe9ed['getCustomProperty']('addHighlight')||(_0x2f592a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3fe9ed),_0x2f592a['writer']['removeAttribute']('data-suggestion',_0x3fe9ed),_0x2f592a['writer']['removeAttribute']('data-author-id',_0x3fe9ed),_0x2f592a['mapper']['unbindElementFromMarkerName'](_0x3fe9ed,_0x58a796['markerName']));}},{'priority':'high'});}),_0x27bdfc['model']['document']['registerPostFixer'](_0xadfc78=>{let _0x467c5a=!0x1;const _0x4dda9d=Array['from'](_0x27bdfc['model']['document']['differ']['getChangedMarkers']()),_0x3b5bd9=new Set();for(const {name:_0x580c09,data:_0x13f1cd}of _0x4dda9d){const {group:_0x42645b,type:_0x44d4b9,subType:_0x4e8c15,id:_0x2d27e4}=this['_splitMarkerName'](_0x580c09);if('suggestion'!==_0x42645b)continue;const _0x439c13=this['_suggestions']['get'](_0x2d27e4);if(null!=_0x13f1cd['newRange']){'formatInline'==_0x44d4b9&&(_0x467c5a=_0x467c5a||Jt(_0x13f1cd['newRange'],_0x580c09,_0xadfc78,_0x27bdfc['model']['schema']));const _0x3b4d87='attribute'==_0x44d4b9&&this['_isBlockAttribute'](_0x4e8c15['split']('|')[0x0]);if(_0x13f1cd['newRange']['isCollapsed']||'$graveyard'==_0x13f1cd['newRange']['root']['rootName']||'formatBlock'==_0x44d4b9&&!Ht(_0x13f1cd['newRange'])||_0x3b4d87&&!Ht(_0x13f1cd['newRange'])||'deletion'==_0x44d4b9&&!(!Lt(_0xbb1453=_0x13f1cd['newRange'])&&!function(_0x1d5216){return _0x1d5216['start']['parent']==_0x1d5216['end']['nodeBefore']&&_0x1d5216['start']['isAtEnd'];}(_0xbb1453)))_0xadfc78['removeMarker'](_0x580c09),_0x467c5a=!0x0;else{if(!_0x439c13||!_0x439c13['isInContent'])continue;if(_0x13f1cd['newRange']&&_0x13f1cd['oldRange']&&_0x13f1cd['newRange']['isEqual'](_0x13f1cd['oldRange']))continue;_0x3b5bd9['add'](_0x439c13);}}}var _0xbb1453;return _0x3b5bd9['size']>0x0&&(_0x467c5a=!!this['_joinWithAdjacentSuggestions'](_0x3b5bd9)||_0x467c5a),_0x467c5a;}),_0x27bdfc['model']['document']['registerPostFixer'](_0xcb3fbc=>{let _0x3fa8eb=!0x1;for(const _0x1cf71f of _0x27bdfc['model']['document']['differ']['getChanges']())if('insert'==_0x1cf71f['type'])for(const _0x478887 of this['_suggestions']['values']()){if(_0x478887['isMultiRange']||!_0x478887['isInContent'])continue;const _0x1c501c='formatBlock'==_0x478887['type'],_0x306233=this['_getAttributeKey'](_0x478887),_0x4c1ac6=_0x306233&&this['_isBlockAttribute'](_0x306233);if(!_0x1c501c&&!_0x4c1ac6)continue;const _0x1a6bb4=_0x478887['getFirstRange']();if(_0x1a6bb4['start']['parent']!=_0x1a6bb4['end']['parent']&&!_0x1a6bb4['end']['isAtEnd']){const _0x3fe5c7=_0x27bdfc['model']['createPositionAt'](_0x1a6bb4['start']['nodeAfter'],'end'),_0x2d60c1=_0x27bdfc['model']['createRange'](_0x1a6bb4['start'],_0x3fe5c7);_0xcb3fbc['updateMarker'](_0x478887['getFirstMarker'](),{'range':_0x2d60c1}),_0x3fa8eb=!0x0;}}return _0x3fa8eb;}),_0x27bdfc['model']['document']['registerPostFixer'](_0x456794=>this['_processAttributeChanges'](_0x456794)),_0x27bdfc['model']['document']['registerPostFixer'](_0x2bd9fa=>!_0x2bd9fa['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2bd9fa)),_0x27bdfc['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x27bdfc['model']['document']['on']('change:data',(_0xf6f88e,_0x575f3b)=>{if(!_0x575f3b['isLocal']||_0x575f3b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2b52ec=_0x27bdfc['model']['document']['differ']['getChanges']();if(0x0==_0x2b52ec['length'])return;const _0x2a91d1=[],_0x4e4fef=_0x2b52ec['filter'](_0x7b1cf1=>'attribute'==_0x7b1cf1['type']),_0x287ce1=_0x2b52ec['filter'](_0x1782a5=>'insert'==_0x1782a5['type']&&'$text'!=_0x1782a5['name']);for(const _0x2f10f1 of _0x4e4fef)this['_isRegisteredAttribute'](_0x2f10f1['attributeKey'])&&_0x2a91d1['push']({'key':_0x2f10f1['attributeKey'],'newValue':_0x2f10f1['attributeNewValue'],'oldValue':_0x2f10f1['attributeOldValue'],'range':qt(_0x2f10f1['range'],_0x27bdfc['model'])});for(const _0x50f0ce of _0x287ce1){if('rename'!=_0x50f0ce['action']&&'refresh'!=_0x50f0ce['action'])continue;const _0xa53430=zt(_0x50f0ce['position']['nodeAfter'],_0x27bdfc['model']),_0x26ffa7=_0x50f0ce['before'];'rename'==_0x50f0ce['action']&&_0x2a91d1['push']({'key':u,'newValue':_0x50f0ce['name'],'oldValue':_0x26ffa7['name'],'range':_0xa53430});for(const [_0x16f017,_0x486e85]of _0x26ffa7['attributes']){if(!this['_isRegisteredAttribute'](_0x16f017))continue;const _0x2d89cd=_0x50f0ce['attributes']['get'](_0x16f017);_0x486e85!==_0x2d89cd&&_0x2a91d1['push']({'key':_0x16f017,'newValue':_0x2d89cd,'oldValue':_0x486e85,'range':_0xa53430});}for(const [_0x3dd5fe,_0x35f5b9]of _0x50f0ce['attributes'])this['_isRegisteredAttribute'](_0x3dd5fe)&&(_0x26ffa7['attributes']['has'](_0x3dd5fe)||_0x2a91d1['push']({'key':_0x3dd5fe,'newValue':_0x35f5b9,'oldValue':null,'range':_0xa53430}));}0x0!=_0x2a91d1['length']&&_0x27bdfc['model']['enqueueChange'](_0x575f3b,_0xb50389=>{const _0x4ab150=_0x1b595f();for(const {range:_0x326a40,key:_0x317137,oldValue:_0x1d7332,newValue:_0x37fc76}of _0x2a91d1)this['markAttributeChange'](_0x326a40,_0x317137,_0x1d7332,_0x37fc76,{'groupId':_0x4ab150});this['_reduceExistingSuggestions'](_0xb50389,_0x2a91d1);});},{'priority':'lowest'}),_0x27bdfc['model']['markers']['on']('update:suggestion',(_0xa35f07,_0x108d88,_0x1bf24d)=>{if(null==_0x1bf24d){const {id:_0x1dd81d}=this['_splitMarkerName'](_0x108d88['name']),_0x2273b0=this['_suggestions']['get'](_0x1dd81d);_0x2273b0&&_0x2273b0['addMarkerName'](_0x108d88['name']);}}),_0x27bdfc['model']['document']['on']('change:data',()=>{const _0x2afd02=Array['from'](_0x27bdfc['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2a28ff=>'suggestion'===this['_splitMarkerName'](_0x2a28ff['name'])['group']);if(0x0===_0x2afd02['length'])return;_0x2afd02['sort']((_0x41fed7,_0x56229e)=>{const _0x752787=_0x41fed7['data']['oldRange'],_0x14d30f=_0x56229e['data']['oldRange'];return null===_0x752787&&null===_0x14d30f?0x0:null===_0x752787&&null!==_0x14d30f?-0x1:null!==_0x752787&&null===_0x14d30f?0x1:_0x752787['start']['isBefore'](_0x14d30f['start'])?-0x1:0x1;});const _0x35ebd4=new Set(),_0x493ac4=new Set();for(const {name:_0x54c021,data:_0x1d25de}of _0x2afd02){const {id:_0x5bd328}=this['_splitMarkerName'](_0x54c021);if(null===_0x1d25de['oldRange']){const _0x585905=this['_handleNewSuggestionMarker'](_0x54c021);_0x493ac4['add'](_0x585905);}else{const _0x2fae8a=this['_suggestions']['get'](_0x5bd328);null!==_0x1d25de['newRange']||_0x2fae8a['isInContent']?(_0x35ebd4['add'](_0x2fae8a['head']),_0x493ac4['add'](_0x2fae8a)):this['_removeSuggestion'](_0x2fae8a);}}_0x493ac4['size']>0x0&&this['_refreshSuggestionsChain'](_0x493ac4);for(const _0x528f05 of _0x35ebd4)this['fire']('suggestionChanged',_0x528f05);}),_0x27bdfc['model']['on']('applyOperation',(_0x3c1cbe,_0x3b3298)=>{const _0x34988e=_0x3b3298[0x0];if(!this['_suggestions']['size'])return;if(!_0x34988e['isDocumentOperation'])return;if(_0x34988e['batch']['isUndo']||!_0x34988e['batch']['isLocal'])return;let _0x5ee98e,_0x50fb5d;switch(_0x34988e['type']){case'insert':_0x5ee98e=_0x27bdfc['model']['createPositionAt'](_0x34988e['position']),_0x50fb5d=_0x5ee98e['getShiftedBy'](_0x34988e['howMany']);break;case'split':_0x5ee98e=_0x27bdfc['model']['createPositionAt'](_0x34988e['splitPosition']),_0x50fb5d=_0x27bdfc['model']['createPositionAt'](_0x34988e['moveTargetPosition']);break;case'move':_0x5ee98e=_0x27bdfc['model']['createPositionAt'](_0x34988e['targetPosition']),_0x50fb5d=_0x5ee98e['getShiftedBy'](_0x34988e['howMany']);break;default:return;}const _0x5a3239=_0x27bdfc['model']['createRange'](_0x5ee98e,_0x50fb5d);_0x27bdfc['model']['change'](()=>{for(const {suggestion:_0x4e05f4,meta:_0x101a0a}of this['_findSuggestions'](_0x5a3239)){if(_0x4e05f4['isMultiRange'])continue;if('formatInline'==_0x4e05f4['type'])continue;const _0x1dadb2=this['_getAttributeKey'](_0x4e05f4);if(_0x1dadb2&&this['_isBlockAttribute'](_0x1dadb2)&&'split'!=_0x34988e['type'])continue;const _0x17ecd0=_0x4e05f4['data']&&_0x4e05f4['data']['multipleBlocks'];('formatBlock'!=_0x4e05f4['type']||'split'==_0x34988e['type']&&!_0x17ecd0)&&(_0x101a0a['containsRangeInObject']||'insertion'==_0x4e05f4['type']&&_0x101a0a['isOwn']||_0x4e05f4['getFirstRange']()['containsRange'](_0x5a3239)&&this['_breakSuggestionMarker'](_0x4e05f4,_0x5ee98e,_0x50fb5d));}});},{'priority':'lowest'}),_0x27bdfc['model']['on']('deleteContent',(_0x3c7033,_0x3b3051)=>{const _0x2bd991=_0x3b3051[0x0],_0x30dcdf=_0x3b3051[0x1];if(_0x30dcdf&&_0x30dcdf['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2bd991['isCollapsed'])return;const _0x2b8be7=_0x27bdfc['model']['schema'],{start:_0x442002,end:_0x58677c}=_0x2bd991['getFirstRange'](),_0x42e5b=_0x442002['nodeAfter']&&_0x2b8be7['isLimit'](_0x442002['nodeAfter'])?null:_0x2b8be7['getNearestSelectionRange'](_0x442002,'forward'),_0x1a3a00=_0x58677c['nodeBefore']&&_0x2b8be7['isLimit'](_0x58677c['nodeBefore'])?null:_0x2b8be7['getNearestSelectionRange'](_0x58677c,'backward'),_0x413234=_0x27bdfc['model']['createRange'](_0x42e5b?_0x42e5b['start']:_0x442002,_0x1a3a00?_0x1a3a00['end']:_0x58677c);_0x27bdfc['model']['change'](_0x599c63=>{this['markDeletion'](_0x413234);const _0x21f4e5=_0x27bdfc['model']['schema']['getNearestSelectionRange'](_0x413234['start']);_0x2bd991['is']('documentSelection')?_0x599c63['setSelection'](_0x21f4e5):_0x2bd991['setTo'](_0x21f4e5);}),_0x3c7033['stop']();},{'priority':_0x4b8f33['normal']+0xa}),_0x27bdfc['model']['on']('insertContent',(_0xc8d6e2,_0x907cf1)=>{const _0x39c94a=_0x907cf1[_0x907cf1['length']-0x1];_0x39c94a&&_0x39c94a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x27bdfc['model']['change'](()=>{let _0x2d1fb1=_0x27bdfc['model']['insertContent'](_0x907cf1[0x0],_0x907cf1[0x1],_0x907cf1[0x2],{'forceDefaultExecution':!0x0});if(!_0x2d1fb1)return;_0xc8d6e2['return']=_0x2d1fb1['clone']();const _0x39a679=_0x2d1fb1['end']['nodeBefore'],_0xa352e0=_0x27bdfc['model']['schema'];_0x39a679&&_0xa352e0['isBlock'](_0x39a679)&&!_0xa352e0['isObject'](_0x39a679)&&(_0x2d1fb1=_0x27bdfc['model']['createRange'](_0x2d1fb1['start'],_0x27bdfc['model']['createPositionAt'](_0x39a679,'end'))),this['markInsertion'](_0x2d1fb1);}),_0xc8d6e2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x6477ff=new x(_0x27bdfc,this['_suggestions']);_0x27bdfc['commands']['add']('acceptSuggestion',_0x6477ff),this['enableCommand']('acceptSuggestion');const _0x39ecb0=new O(_0x27bdfc,this['_suggestions']);_0x27bdfc['commands']['add']('discardSuggestion',_0x39ecb0),this['enableCommand']('discardSuggestion'),_0x27bdfc['commands']['add']('acceptAllSuggestions',new R(_0x27bdfc,_0x6477ff,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x27bdfc['commands']['add']('discardAllSuggestions',new R(_0x27bdfc,_0x39ecb0,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x27bdfc['commands']['add']('acceptSelectedSuggestions',new E(_0x27bdfc,_0x6477ff,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x27bdfc['commands']['add']('discardSelectedSuggestions',new E(_0x27bdfc,_0x39ecb0,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x45a24d=_0x27bdfc['plugins']['get']('CommentsRepository');this['listenTo'](_0x45a24d,'addComment',(_0x38b74c,{threadId:_0x5570d1})=>{const _0x4c626b=this['_suggestions']['get'](_0x5570d1);_0x4c626b&&_0x4c626b['commentThread']&&0x1===_0x4c626b['commentThread']['length']&&this['_updateSuggestionData'](_0x5570d1,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x45a24d,'removeComment',(_0x209817,{threadId:_0xde2e00})=>{const _0x5c337a=this['_suggestions']['get'](_0xde2e00);_0x5c337a&&_0x5c337a['commentThread']&&!_0x5c337a['commentThread']['length']&&this['_updateSuggestionData'](_0xde2e00,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5c263a){const _0x396a95=_0x244c3f([0x69,0x4a,0x68,0x37,0x6f,0x35,0x6d,0x32,0x54,0x6c,0x5a,0x72,0x39,0x64,0x47,0x71,0x58,0x79,0x45,0x75,0x31,0x4b,0x4d,0x48,0x76,0x46,0x70,0x50,0x6b,0x4f,0x73,0x67,0x4c,0x57,0x78,0x36,0x49,0x6e,0x33,0x55,0x65,0x38,0x42,0x63,0x7a,0x62,0x34,0x59,0x51,0x30,0x66,0x53,0x6a,0x43,0x61,0x74,0x77,0x44,0x4e,0x41,0x56,0x52]),_0x1f573c=0x38ed8500,_0x530f7b=0x38eae288^_0x1f573c,_0x86b5a7=window[_0x244c3f([0x44,0x61,0x74,0x65])][_0x244c3f([0x6e,0x6f,0x77])](),_0x576d50=_0x5c263a[_0x244c3f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a6316=new window[(_0x244c3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10122e=>{_0x576d50[_0x244c3f([0x6f,0x6e,0x63,0x65])](_0x244c3f([0x72,0x65,0x61,0x64,0x79]),_0x10122e);}),_0x249101={[_0x244c3f([0x6b,0x74,0x79])]:_0x244c3f([0x45,0x43]),[_0x244c3f([0x75,0x73,0x65])]:_0x244c3f([0x73,0x69,0x67]),[_0x244c3f([0x63,0x72,0x76])]:_0x244c3f([0x50,0x2d,0x32,0x35,0x36]),[_0x244c3f([0x78])]:_0x244c3f([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]),[_0x244c3f([0x79])]:_0x244c3f([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]),[_0x244c3f([0x61,0x6c,0x67])]:_0x244c3f([0x45,0x53,0x32,0x35,0x36])},_0x142b8a=_0x576d50[_0x244c3f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x244c3f([0x67,0x65,0x74])](_0x244c3f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2cb41f(){let _0x3b40b6,_0x1601ee=null,_0x3afaba=null;try{if(_0x142b8a==_0x244c3f([0x47,0x50,0x4c]))return _0x244c3f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b40b6=_0x6a9165(),!_0x3b40b6)return _0x244c3f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3b40b6[_0x244c3f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3afaba=_0x4437c0(_0x3b40b6[_0x244c3f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b40b6[_0x244c3f([0x6a,0x74,0x69])])),await _0x3c6dc6()?_0x339992()?_0x47327f()?_0x244c3f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40e750()?(_0x3b40b6[_0x244c3f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x244c3f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1601ee=_0x4b0d7e(_0x244c3f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3b40b6[_0x244c3f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x244c3f([0x74,0x72,0x69,0x61,0x6c])&&(_0x1601ee=_0x4b0d7e(_0x244c3f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2c9601()):_0x244c3f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x244c3f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x244c3f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2296a3){return _0x244c3f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x47327f(){const _0xec1351=[_0x244c3f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x244c3f([0x74,0x72,0x69,0x61,0x6c])][_0x244c3f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b40b6[_0x244c3f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x86b5a7/0x3e8:0xe10*_0x530f7b;return _0x3b40b6[_0x244c3f([0x65,0x78,0x70])]<_0xec1351;}function _0x339992(){const _0x62c6e3=_0x3b40b6[_0x244c3f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x62c6e3)return!0x1;if(_0x62c6e3[_0x244c3f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x244c3f([0x2a])))return!0x0;if(_0x62c6e3[_0x244c3f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x244c3f([0x54,0x43])))return!0x0;if(_0x62c6e3[_0x244c3f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x244c3f([0x52,0x54,0x43]))){if(_0x1cc6aa())return!0x0;if(_0x41a6f8()||_0x277b5c())return!0x0;}return!0x1;}function _0x40e750(){const _0x262c91=_0x3b40b6[_0x244c3f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x262c91||0x0==_0x262c91[_0x244c3f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x6fc0a9}=new URL(window[_0x244c3f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x262c91[_0x244c3f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6fc0a9))return!0x0;const _0x41b3a2=_0x6fc0a9[_0x244c3f([0x73,0x70,0x6c,0x69,0x74])](_0x244c3f([0x2e]));return _0x262c91[_0x244c3f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24ee2d=>_0x24ee2d[_0x244c3f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x244c3f([0x2a])))[_0x244c3f([0x6d,0x61,0x70])](_0x8b5385=>_0x8b5385[_0x244c3f([0x73,0x70,0x6c,0x69,0x74])](_0x244c3f([0x2e])))[_0x244c3f([0x73,0x6f,0x6d,0x65])](_0x1c38f5=>_0x41b3a2[_0x244c3f([0x65,0x76,0x65,0x72,0x79])]((_0x2e5bec,_0x520398)=>_0x1c38f5[_0x520398]===_0x2e5bec||_0x1c38f5[_0x520398]===_0x244c3f([0x2a])));}function _0x2c9601(){return _0x1601ee&&_0x3afaba?new window[(_0x244c3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4736e9,_0x4aeffb)=>{_0x1601ee[_0x244c3f([0x74,0x68,0x65,0x6e])](_0x4736e9,_0x4aeffb),_0x3afaba[_0x244c3f([0x74,0x68,0x65,0x6e])](_0x1cb066=>{_0x1cb066!=_0x244c3f([0x56,0x61,0x6c,0x69,0x64])&&_0x4736e9(_0x1cb066);},_0x4aeffb);}):_0x1601ee||_0x3afaba||_0x244c3f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4437c0(_0x2e41c4,_0x5955cd){return new window[(_0x244c3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d033a=>{if(_0x35b4b6())return _0x5d033a(_0x244c3f([0x56,0x61,0x6c,0x69,0x64]));_0x58a48e(),_0x576d50[_0x244c3f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x244c3f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x28e10b=!0x1;const _0xfab0fb=_0x1b595f();function _0x5d18d0(_0x1cef14){return!!_0x1cef14&&(typeof _0x1cef14===_0x244c3f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1cef14===_0x244c3f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1cef14[_0x244c3f([0x74,0x68,0x65,0x6e])]===_0x244c3f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1cef14[_0x244c3f([0x63,0x61,0x74,0x63,0x68])]===_0x244c3f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5de5f1(_0x8d96a4){_0x59af7e(_0x8d96a4)[_0x244c3f([0x74,0x68,0x65,0x6e])](_0x202fa4=>{if(!_0x202fa4||_0x202fa4[_0x244c3f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x244c3f([0x6f,0x6b]))return _0x244c3f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x222e37(_0x39cd92(_0xfab0fb+_0x5955cd))!=_0x202fa4[_0x244c3f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x244c3f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x244c3f([0x56,0x61,0x6c,0x69,0x64]);})[_0x244c3f([0x74,0x68,0x65,0x6e])](_0x380014=>(_0x547f16(),_0x380014),()=>{const _0x4a6c24=_0x4b7475();return null==_0x4a6c24?(_0x547f16(),_0x244c3f([0x56,0x61,0x6c,0x69,0x64])):_0x244c3f(_0x86b5a7-_0x4a6c24>(0x1ce10100^_0x1f573c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x244c3f([0x74,0x68,0x65,0x6e])](_0x5d033a)[_0x244c3f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d033a(_0x244c3f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x53d047=0x38db6b80^_0x1f573c;function _0x547f16(){const _0x442bd0=_0x244c3f([0x6c,0x6c,0x63,0x74,0x2d])+_0x222e37(_0x39cd92(_0x2e41c4)),_0xa7dca0=_0x3c1040(_0x222e37(window[_0x244c3f([0x4d,0x61,0x74,0x68])][_0x244c3f([0x63,0x65,0x69,0x6c])](_0x86b5a7/_0x53d047)));window[_0x244c3f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x244c3f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x442bd0,_0xa7dca0);}function _0x4b7475(){const _0x5e381d=_0x244c3f([0x6c,0x6c,0x63,0x74,0x2d])+_0x222e37(_0x39cd92(_0x2e41c4)),_0x40810b=window[_0x244c3f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x244c3f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e381d);return _0x40810b?window[_0x244c3f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c1040(_0x40810b),0x10)*_0x53d047:null;}function _0x59af7e(_0xb1c5){return new window[(_0x244c3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ed941,_0x2dcc88)=>{_0xb1c5[_0x244c3f([0x74,0x68,0x65,0x6e])](_0x4ed941,_0x2dcc88),window[_0x244c3f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2dcc88,0x38ec51c0^_0x1f573c);});}}_0x576d50[_0x244c3f([0x6f,0x6e])](_0x244c3f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x9a7ee6,_0x5b5111)=>{if(_0x5b5111[0x0]!=_0x2e41c4)return _0x5d033a(_0x244c3f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b5111[0x1]={..._0x5b5111[0x1],[_0x244c3f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xfab0fb};},{[_0x244c3f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x244c3f([0x68,0x69,0x67,0x68])}),_0x576d50[_0x244c3f([0x6f,0x6e])](_0x244c3f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4fed5f=>{_0x5d18d0(_0x4fed5f[_0x244c3f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x28e10b=!0x0,_0x5de5f1(_0x4fed5f[_0x244c3f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x244c3f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x244c3f([0x6c,0x6f,0x77])}),_0x3a6316[_0x244c3f([0x74,0x68,0x65,0x6e])](()=>{_0x28e10b||_0x5d033a(_0x244c3f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x35b4b6(){return _0x576d50[_0x244c3f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x244c3f([0x76,0x69,0x65,0x77])][_0x244c3f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x244c3f([0x61,0x75,0x74,0x6f]);}function _0x58a48e(){_0x576d50[_0x244c3f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x244c3f([0x76,0x69,0x65,0x77])][_0x244c3f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x244c3f([0x61,0x75,0x74,0x6f]);}}function _0x4b0d7e(_0x4887c8){const _0x35ed4f=[new window[(_0x244c3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x212045=>setTimeout(_0x212045,0x38e4bbcc^_0x1f573c)),_0x3a6316[_0x244c3f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x244c3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x343828=>{let _0xea9ecb=0x0;_0x576d50[_0x244c3f([0x6d,0x6f,0x64,0x65,0x6c])][_0x244c3f([0x6f,0x6e])](_0x244c3f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b4c27,_0x2325c8)=>{_0x2325c8[0x0][_0x244c3f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xea9ecb++,_0xea9ecb==(0x38ed84f8^_0x1f573c)&&(_0x343828(),_0x3b4c27[_0x244c3f([0x6f,0x66,0x66])]());});}))];return window[_0x244c3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x244c3f([0x72,0x61,0x63,0x65])](_0x35ed4f)[_0x244c3f([0x74,0x68,0x65,0x6e])](()=>_0x4887c8);}async function _0x984e84(){await _0x3a6316,_0x576d50[_0x244c3f([0x6d,0x6f,0x64,0x65,0x6c])][_0x244c3f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x206a5e,_0x576d50[_0x244c3f([0x6d,0x6f,0x64,0x65,0x6c])][_0x244c3f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x206a5e,_0x576d50[_0x244c3f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x244c3f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1cc6aa(){return _0x434d4e(_0x244c3f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xcc5a93(_0x244c3f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x244c3f([0x73,0x74,0x61,0x74,0x65])]==_0x244c3f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x41a6f8(){return _0x434d4e(_0x244c3f([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 _0x277b5c(){return _0x434d4e(_0x244c3f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xc9fe6d(_0x5d6681){const _0x57c8b0=_0xfa8228();_0x576d50[_0x57c8b0]=_0x244c3f([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5d6681,_0x5d6681!=_0x244c3f([0x56,0x61,0x6c,0x69,0x64])&&_0x984e84();}function _0xfa8228(){const _0x4d5deb=window[_0x244c3f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x244c3f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x244c3f([0x6e,0x6f,0x77])]())[_0x244c3f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x244c3f([0x2e]),'');let _0x51b00b=_0x244c3f([0x69]);for(let _0x3131a5=0x0;_0x3131a5<_0x4d5deb[_0x244c3f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3131a5+=0x2){let _0x29f5d9=window[_0x244c3f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d5deb[_0x244c3f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3131a5,_0x3131a5+0x2));_0x29f5d9>=_0x396a95[_0x244c3f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x29f5d9-=_0x396a95[_0x244c3f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x51b00b+=_0x396a95[_0x29f5d9];}return _0x51b00b;}function _0x6a9165(){const _0x1babed=_0x142b8a[_0x244c3f([0x73,0x70,0x6c,0x69,0x74])](_0x244c3f([0x2e]));if(0x3!=_0x1babed[_0x244c3f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xb8f8bc(_0x1babed[0x1]);function _0xb8f8bc(_0x20ec21){const _0x4cef8d=_0x47ade9(_0x20ec21);return _0x4cef8d&&_0x4d9975()?_0x4cef8d:null;function _0x4d9975(){const _0x166263=_0x4cef8d[_0x244c3f([0x6a,0x74,0x69])],_0x448ad4=window[_0x244c3f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x166263[_0x244c3f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x166263[_0x244c3f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ca98d={..._0x4cef8d,[_0x244c3f([0x6a,0x74,0x69])]:_0x166263[_0x244c3f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x166263[_0x244c3f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ca98d[_0x244c3f([0x76,0x63])],_0x39cd92(_0x2ca98d)==_0x448ad4;}}}async function _0x3c6dc6(){let _0x1e4e70=!0x0;try{const _0x4b54d3=_0x142b8a[_0x244c3f([0x73,0x70,0x6c,0x69,0x74])](_0x244c3f([0x2e])),[_0xe9991c,_0x1ea7b5,_0x543d43]=_0x4b54d3;return _0x4141b5(_0xe9991c),await _0x2ec59d(_0xe9991c,_0x1ea7b5,_0x543d43),_0x1e4e70;}catch(_0x41358c){return!0x1;}function _0x4141b5(_0x4a6272){const _0x238abc=_0x47ade9(_0x4a6272);_0x238abc&&_0x238abc[_0x244c3f([0x61,0x6c,0x67])]==_0x244c3f([0x45,0x53,0x32,0x35,0x36])||(_0x1e4e70=!0x1);}async function _0x2ec59d(_0x2cd3f8,_0x1f2ffb,_0x3e4fc6){const _0x262311=window[_0x244c3f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x244c3f([0x66,0x72,0x6f,0x6d])](_0x13673d(_0x3e4fc6),_0x1daf72=>_0x1daf72[_0x244c3f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x24d6f8=new window[(_0x244c3f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x244c3f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2cd3f8+_0x244c3f([0x2e])+_0x1f2ffb),_0x2366a4=window[_0x244c3f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x244c3f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2366a4)return;const _0x255390=await _0x2366a4[_0x244c3f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x244c3f([0x6a,0x77,0x6b]),_0x249101,{[_0x244c3f([0x6e,0x61,0x6d,0x65])]:_0x244c3f([0x45,0x43,0x44,0x53,0x41]),[_0x244c3f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x244c3f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x244c3f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2366a4[_0x244c3f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x244c3f([0x6e,0x61,0x6d,0x65])]:_0x244c3f([0x45,0x43,0x44,0x53,0x41]),[_0x244c3f([0x68,0x61,0x73,0x68])]:{[_0x244c3f([0x6e,0x61,0x6d,0x65])]:_0x244c3f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x255390,_0x262311,_0x24d6f8)||(_0x1e4e70=!0x1);}}function _0x47ade9(_0x5cc094){return _0x5cc094[_0x244c3f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x244c3f([0x65,0x79]))?JSON[_0x244c3f([0x70,0x61,0x72,0x73,0x65])](_0x13673d(_0x5cc094)):null;}function _0x13673d(_0x326fb7){return window[_0x244c3f([0x61,0x74,0x6f,0x62])](_0x326fb7[_0x244c3f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x244c3f([0x2b]))[_0x244c3f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x244c3f([0x2f])));}function _0x39cd92(_0x198765){let _0x4b07c8=0x1505;function _0x27760e(_0x7b6219){for(let _0xee6747=0x0;_0xee6747<_0x7b6219[_0x244c3f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xee6747++){const _0x41d641=_0x7b6219[_0x244c3f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xee6747);_0x4b07c8=(_0x4b07c8<<0x5)+_0x4b07c8+_0x41d641,_0x4b07c8&=_0x4b07c8;}}function _0x1ea907(_0xf3cfb2){Array[_0x244c3f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xf3cfb2)?_0xf3cfb2[_0x244c3f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ea907):_0xf3cfb2&&typeof _0xf3cfb2==_0x244c3f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x244c3f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xf3cfb2)[_0x244c3f([0x73,0x6f,0x72,0x74])]()[_0x244c3f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x273aad,_0x52d682])=>{_0x27760e(_0x273aad),_0x1ea907(_0x52d682);}):_0x27760e(window[_0x244c3f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xf3cfb2));}return _0x1ea907(_0x198765),_0x4b07c8>>>0x0;}function _0x222e37(_0x25324a){return _0x25324a[_0x244c3f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x244c3f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x244c3f([0x30]));}function _0x3c1040(_0x3d4be8){return _0x3d4be8[_0x244c3f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x244c3f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x244c3f([0x6a,0x6f,0x69,0x6e])]('');}function _0x434d4e(_0x4b3469){return _0x576d50[_0x244c3f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x244c3f([0x68,0x61,0x73])](_0x4b3469);}function _0xcc5a93(_0x159c75){return _0x576d50[_0x244c3f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x244c3f([0x67,0x65,0x74])](_0x159c75);}function _0x206a5e(){}function _0x244c3f(_0x3b48c0){return _0x3b48c0['map'](_0x13ab36=>String['fromCharCode'](_0x13ab36))['join']('');}_0xc9fe6d(await _0x2cb41f());}(this);}set['adapter'](_0x7bd6b8){if(this['_adapter'])throw new _0x27ba3f('track-changes-adapter-already-set',this);this['_adapter']=_0x7bd6b8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2eabe5=!0x1,toJSON:_0x42eb63=!0x1}={}){const _0x167c8a=[];for(const _0x4d1884 of this['_suggestions']['values']())_0x2eabe5&&!_0x4d1884['isInContent']||_0x167c8a['push'](_0x4d1884);return _0x42eb63?_0x167c8a['map'](_0x4b7b9f=>_0x4b7b9f['toJSON']()):_0x167c8a;}['getSuggestion'](_0x3c85d4){const _0x1fdacb=this['_suggestions']['get'](_0x3c85d4);if(!_0x1fdacb)throw new _0x27ba3f('track-changes-suggestion-not-found',this);return _0x1fdacb;}['hasSuggestion'](_0x395c4f){return this['_suggestions']['has'](_0x395c4f);}['addSuggestionData'](_0x1d17d6){const {authorId:_0x25d9b2,id:_0xf9ba7c,attributes:_0x269ad7}=_0x1d17d6,[_0x5d57ba,_0x1397c1]=_0x1d17d6['type']['split'](':'),_0x2ae6de=this['_suggestions']['get'](_0xf9ba7c)||this['_createSuggestion'](_0x5d57ba,_0x1397c1,_0xf9ba7c,_0x25d9b2,_0x269ad7);if(this['_addThreadToSuggestion'](_0x2ae6de),this['_checkSuggestionCorrectness'](_0x2ae6de,_0x5d57ba,_0x1397c1||null,_0x25d9b2),_0x2ae6de['createdAt']=_0x1d17d6['createdAt'],_0x2ae6de['_isDataLoaded']=!0x0,_0x269ad7&&_0x269ad7['@external']){const _0x4e15fe=_0x269ad7['@external'],_0x2a0397=this['_getExternalAuthor'](_0x4e15fe['authorName']);_0x2ae6de['authoredAt']=_0x4e15fe['createdAt'],_0x2ae6de['author']=_0x2a0397,_0x2ae6de['isExternal']=!0x0;}else _0x2ae6de['authoredAt']=_0x1d17d6['createdAt'];switch(_0x1d17d6['data']&&(_0x2ae6de['data']=_0x1d17d6['data']),_0x1d17d6['attributes']&&(_0x2ae6de['attributes']=_0x1d17d6['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2ae6de['_saved']=!0x0),this['_suggestionState']['get'](_0x2ae6de)){case'notReady':this['_suggestionState']['set'](_0x2ae6de,'dataReady');break;case'markerReady':_0x2ae6de['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2ae6de])),this['_refreshSuggestionsChain'](new Set([_0x2ae6de])),this['_suggestionState']['set'](_0x2ae6de,'ready'),this['fire']('suggestionLoaded',_0x2ae6de)):this['_suggestionState']['set'](_0x2ae6de,'removed');}return _0x2ae6de;}['acceptSuggestion'](_0x48786e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3b052c of _0x48786e['getAllAdjacentSuggestions']())_0x3b052c['accept']();});});}['discardSuggestion'](_0xd5f5ac){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x45b0be of _0xd5f5ac['getAllAdjacentSuggestions']())_0x45b0be['discard']();});});}['enableCommand'](_0x29b098,_0x274d1f){const _0x58f3ac=this['editor']['commands']['get'](_0x29b098);if(!_0x58f3ac)throw new _0x27ba3f('track-changes-command-not-found',this,{'commandName':_0x29b098});if(this['_enabledCommands']['has'](_0x58f3ac))throw new _0x27ba3f('track-changes-enable-command-twice',this,{'commandName':_0x29b098});this['_enabledCommands']['add'](_0x58f3ac),_0x274d1f&&_0x58f3ac['on']('execute',(_0x871bca,_0xa47d0a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xa47d0a['length']>0x0&&_0xa47d0a[_0xa47d0a['length']-0x1]&&_0xa47d0a[_0xa47d0a['length']-0x1]['forceDefaultExecution']?_0xa47d0a['pop']():(_0x871bca['return']=_0x274d1f((..._0x32fa43)=>_0x58f3ac['execute'](..._0x32fa43,{'forceDefaultExecution':!0x0}),..._0xa47d0a),_0x871bca['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x29f014){let _0x472000,_0x22e772;const _0x344a1c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x472000=_0x29f014();}catch(_0x10ab9d){_0x22e772=_0x10ab9d;}return _0x344a1c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x22e772&&_0x27ba3f['rethrowUnexpectedError'](_0x22e772,this),_0x472000;}['markInsertion'](_0x491036,_0x4ab199=null,_0x6233c={}){if(_0x491036['isCollapsed'])return null;const _0x227acf=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x6233c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x739ec6,meta:_0x31057a}of this['_findSuggestions'](_0x491036,'insertion'))if(_0x31057a['isOwn']){if(!_0x31057a['isNextTo']){if(_0x31057a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x739ec6,_0x6233c))continue;return _0x739ec6;}if(Xt(_0x739ec6,_0x6233c))return _0x739ec6;this['_breakSuggestionMarker'](_0x739ec6,_0x491036['start'],_0x491036['end']);break;}if(_0x4ab199==_0x739ec6['subType']&&Xt(_0x739ec6,_0x6233c)){const _0x58059a=_0x739ec6['getFirstRange']();return _0x58059a['start']['isEqual'](_0x491036['end'])?this['_setSuggestionRange'](_0x739ec6,this['_model']['createRange'](_0x491036['start'],_0x58059a['end'])):this['_setSuggestionRange'](_0x739ec6,this['_model']['createRange'](_0x58059a['start'],_0x491036['end'])),_0x739ec6;}}const _0x1bbafd=_0x1b595f(),_0x476848=_0x227acf['id'],_0x481a2a=_0x4ab199?'insertion:'+_0x4ab199:'insertion',_0xea61bf=this['_setSuggestionData']({'id':_0x1bbafd,'type':_0x481a2a,'createdAt':new Date(),'authorId':_0x476848,'attributes':_0x6233c});return this['_addSuggestionMarker'](_0x481a2a,_0x1bbafd,_0x476848,_0x491036),_0xea61bf;}['markMultiRangeInsertion'](_0x1e5882,_0x414475='multi',_0x32e29d={}){const _0x3ce031=this['editor']['plugins']['get']('Users')['me'],_0x4db958=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x414475,'join');this['_trackingSessionId']&&(_0x32e29d['trackingSessionId']=this['_trackingSessionId']);for(const _0x42d7b8 of this['getSuggestions']())if(_0x42d7b8['author']['id']==_0x3ce031['id']&&'insertion'==_0x42d7b8['type']&&_0x42d7b8['subType']==_0x414475&&Xt(_0x42d7b8,_0x32e29d)&&(_0x4db958(_0x42d7b8['getRanges'](),_0x1e5882)||_0x4db958(_0x1e5882,_0x42d7b8['getRanges']()))){for(const _0x14c190 of _0x1e5882)_0x42d7b8['addRange'](_0x14c190);return _0x42d7b8;}for(const {suggestion:_0x5573a6,meta:_0x3ebb1b}of this['_findSuggestions'](_0x1e5882,'insertion')){if(!_0x3ebb1b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3ebb1b['containsRangeInObject'])continue;if(!Xt(_0x5573a6,_0x32e29d))continue;let _0x7c8472=!0x0;for(const _0x51fcc7 of _0x5573a6['getRanges']())for(const _0x30c773 of _0x1e5882)if(!_0x51fcc7['containsRange'](_0x30c773)){_0x7c8472=!0x1;break;}if(_0x7c8472)return _0x5573a6;}const _0x2e18bf=_0x1b595f(),_0x11b525=_0x3ce031['id'],_0x1ebf8a='insertion:'+_0x414475,_0x304e41=this['_setSuggestionData']({'id':_0x2e18bf,'type':_0x1ebf8a,'createdAt':new Date(),'authorId':_0x11b525,'attributes':_0x32e29d});for(const _0x2f6fef of _0x1e5882)this['_addSuggestionMarker'](_0x1ebf8a,_0x2e18bf,_0x11b525,_0x2f6fef,o['getMultiRangeId']());return _0x304e41;}['markInlineFormat'](_0x402126,_0x4625b8,_0x5b7bc7=null,_0x2948a5={}){if(_0x5b7bc7=_0x5b7bc7||Kt(_0x4625b8),_0x402126['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2948a5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x356257=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5b7bc7,'accept');return this['forceDefaultExecution'](()=>_0x356257([_0x402126],_0x4625b8,_0x2948a5)),null;}const _0x18d1c6=this['editor']['plugins']['get']('Users')['me'],_0x16f3a3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x528e4f,meta:_0x525f8f}of this['_findSuggestions'](_0x402126,'insertion'))_0x525f8f['isOwn']&&!_0x525f8f['isInsideObject']&&_0x16f3a3['push'](..._0x528e4f['getRanges']());}const _0xb57fd9=function(_0x15e1f6,_0x11b466){const _0x131ae3=[];for(const _0x4f4856 of _0x11b466){const _0x7c89e1=_0x15e1f6['getIntersection'](_0x4f4856);_0x7c89e1&&_0x131ae3['push'](_0x7c89e1);}return _0x131ae3;}(_0x402126,_0x16f3a3),_0x23390c=function(_0x4fb0f4,_0x53cc1b){const _0x377751=[_0x4fb0f4];for(const _0x15dcb0 of _0x53cc1b){let _0x3ea301=0x0;for(;_0x3ea301<_0x377751['length'];){const _0x4e6d3a=_0x377751[_0x3ea301]['getDifference'](_0x15dcb0);_0x377751['splice'](_0x3ea301,0x1,..._0x4e6d3a),_0x3ea301+=_0x4e6d3a['length'];}}return _0x377751;}(_0x402126,_0x16f3a3);_0xb57fd9['length']&&this['_model']['change'](()=>{for(const _0x44737d of _0xb57fd9){const _0x5a7f59=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5b7bc7,'accept');this['forceDefaultExecution'](()=>_0x5a7f59([_0x44737d],_0x4625b8,_0x2948a5));}});for(const _0x1879f1 of _0x23390c){let _0x59fa27=null,_0x165fe0=_0x1879f1['start'],_0x160100=_0x1879f1['end'];for(const {suggestion:_0x48d374,meta:_0x5286d7}of this['_findSuggestions'](_0x1879f1,'formatInline')){if(!_0x5286d7['isOwn'])continue;if(_0x48d374['subType']!=_0x5b7bc7)continue;if(!Xt(_0x48d374,_0x2948a5))continue;const _0x21dd84=_0x48d374['getFirstRange']();if(_0x21dd84['containsRange'](_0x1879f1,!0x0))return null;_0x165fe0=_0x165fe0['isBefore'](_0x21dd84['start'])?_0x165fe0:_0x21dd84['start'],_0x160100=_0x160100['isAfter'](_0x21dd84['end'])?_0x160100:_0x21dd84['end'],_0x59fa27?_0x21dd84['start']['isBefore'](_0x59fa27['getFirstRange']()['start'])?(_0x59fa27['removeMarkers'](),_0x59fa27=_0x48d374):_0x48d374['removeMarkers']():_0x59fa27=_0x48d374;}const _0x4e3708=this['_model']['createRange'](_0x165fe0,_0x160100);if(_0x59fa27)this['_setSuggestionRange'](_0x59fa27,_0x4e3708);else{const _0x594bfc=_0x1b595f(),_0x30029c=_0x18d1c6['id'];this['_setSuggestionData']({'id':_0x594bfc,'type':'formatInline:'+_0x5b7bc7,'data':_0x4625b8,'createdAt':new Date(),'authorId':_0x30029c,'attributes':_0x2948a5}),this['_addSuggestionMarker']('formatInline:'+_0x5b7bc7,_0x594bfc,_0x30029c,_0x4e3708);}}return null;}['markBlockFormat'](_0x3ce77e,_0x1d766a,_0x288cb6=[],_0x5e53d6=null,_0xb9592c={}){_0x1d766a['formatGroupId']||(_0x1d766a['formatGroupId']=_0x1d766a['commandName']),_0x1d766a['multipleBlocks']=_0x3ce77e['is']('range'),_0x5e53d6=_0x5e53d6||Kt(_0x1d766a);const _0x5d7aeb=_0x288cb6['map'](_0x42e489=>zt(_0x42e489,this['_model'])),_0x242580=_0x3ce77e['is']('range')?_0x3ce77e:zt(_0x3ce77e,this['_model']);if(this['_trackingSessionId']&&(_0xb9592c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x32c994=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e53d6,'accept');return this['forceDefaultExecution'](()=>_0x32c994([_0x242580],_0x1d766a,_0xb9592c)),null;}_0x5d7aeb['push'](_0x242580);let _0x2a95d5=!0x0;for(const _0x57af9d of _0x5d7aeb)if(!this['_rangeIsInLocalUserInsertion'](_0x57af9d)){_0x2a95d5=!0x1;break;}if(_0x2a95d5&&'always'!==this['_trackFormatChanges']){const _0x369018=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e53d6,'accept');return this['forceDefaultExecution'](()=>_0x369018([_0x242580],_0x1d766a,_0xb9592c)),null;}let _0x3c15ab=null,_0x51ada3=_0x242580['start'],_0x2beddc=_0x242580['end'];for(const {suggestion:_0x5d5bb0,meta:_0x5f2704}of this['_findSuggestions'](_0x242580,'formatBlock')){if(!_0x5f2704['isOwn'])continue;if(_0x5f2704['isNextTo']||_0x5f2704['containsRangeInObject']||_0x5f2704['isInsideObject'])continue;if(_0x5d5bb0['data']['formatGroupId']!=_0x1d766a['formatGroupId'])continue;if(!Xt(_0x5d5bb0,_0xb9592c))continue;const _0x5ba16a=_0x5d5bb0['getFirstRange']();if(_0x5d5bb0['subType']==_0x5e53d6){if(_0x5ba16a['containsRange'](_0x242580,!0x0))return null;_0x51ada3=_0x51ada3['isBefore'](_0x5ba16a['start'])?_0x51ada3:_0x5ba16a['start'],_0x2beddc=_0x2beddc['isAfter'](_0x5ba16a['end'])?_0x2beddc:_0x5ba16a['end'],_0x3c15ab?_0x5ba16a['start']['isBefore'](_0x3c15ab['getFirstRange']()['start'])?(_0x3c15ab['removeMarkers'](),_0x3c15ab=_0x5d5bb0):_0x5d5bb0['removeMarkers']():_0x3c15ab=_0x5d5bb0;}else{const _0x286cec=_0x242580['getIntersection'](_0x5ba16a);this['_cutOutSuggestionMarker'](_0x5d5bb0,_0x286cec);}}const _0x43baae=this['editor']['plugins']['get']('Users')['me'],_0x22ed77=_0x1b595f(),_0x30b913=_0x43baae['id'];if(_0x3c15ab)return this['_setSuggestionRange'](_0x3c15ab,this['_model']['createRange'](_0x51ada3,_0x2beddc)),_0x3c15ab;{const _0x6469c3=this['_setSuggestionData']({'id':_0x22ed77,'type':'formatBlock:'+_0x5e53d6,'data':_0x1d766a,'createdAt':new Date(),'authorId':_0x30b913,'attributes':_0xb9592c});return this['_addSuggestionMarker']('formatBlock:'+_0x5e53d6,_0x22ed77,_0x30b913,this['_model']['createRange'](_0x51ada3,_0x2beddc)),_0x6469c3;}}['markMultiRangeBlockFormat'](_0x437a1e,_0x549ba6,_0x239fd4=[],_0x1b1f7b=null,_0x47e6d1={}){_0x549ba6['formatGroupId']||(_0x549ba6['formatGroupId']=_0x549ba6['commandName']);const _0xcaf6f2=_0x437a1e[0x0];_0x549ba6['multipleBlocks']=_0xcaf6f2['is']('range'),_0x1b1f7b=_0x1b1f7b||Kt(_0x549ba6);const _0x4c0f3b=_0x239fd4['map'](_0x3096d6=>zt(_0x3096d6,this['_model'])),_0x349aaa=_0xcaf6f2['is']('range')?_0x437a1e:_0x437a1e['map'](_0xe39f53=>zt(_0xe39f53,this['_model']));if(this['_trackingSessionId']&&(_0x47e6d1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x58dd9b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b1f7b,'accept');return this['forceDefaultExecution'](()=>_0x58dd9b(_0x349aaa,_0x549ba6,_0x47e6d1)),null;}_0x4c0f3b['push'](..._0x349aaa);let _0x46b43d=!0x0;for(const _0x313ecf of _0x4c0f3b)if(!this['_rangeIsInLocalUserInsertion'](_0x313ecf)){_0x46b43d=!0x1;break;}if(_0x46b43d&&'always'!==this['_trackFormatChanges']){const _0x314858=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b1f7b,'accept');return this['forceDefaultExecution'](()=>_0x314858(_0x349aaa,_0x549ba6,_0x47e6d1)),null;}const _0x633d24=this['editor']['plugins']['get']('Users')['me'];for(const _0x19e1dd of this['getSuggestions']()){if(_0x19e1dd['author']['id']!=_0x633d24['id'])continue;if('formatBlock'!=_0x19e1dd['type']||_0x19e1dd['data']['formatGroupId']!=_0x549ba6['formatGroupId'])continue;if(!Xt(_0x19e1dd,_0x47e6d1))continue;const _0x2039ee=_0x19e1dd['subType']==_0x1b1f7b;for(let _0x2740c7=0x0;_0x2740c7<_0x349aaa['length'];_0x2740c7++){const _0x104221=_0x349aaa[_0x2740c7];for(const _0x1e84cf of _0x19e1dd['getMarkers']()){const _0x37ca82=_0x1e84cf['getRange']();if(_0x104221['isEqual'](_0x37ca82)){_0x2039ee?(_0x349aaa['splice'](_0x2740c7,0x1),_0x2740c7--):_0x19e1dd['removeMarker'](_0x1e84cf['name']);break;}}}}if(0x0==_0x349aaa['length'])return null;const _0xb9f80e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b1f7b,'join');for(const _0x54244e of this['getSuggestions']())if(_0x54244e['author']['id']==_0x633d24['id']&&'formatBlock'==_0x54244e['type']&&_0x54244e['data']['formatGroupId']==_0x549ba6['formatGroupId']&&_0x54244e['subType']==_0x1b1f7b&&Xt(_0x54244e,_0x47e6d1)&&(_0xb9f80e(_0x54244e['getRanges'](),_0x349aaa)||_0xb9f80e(_0x349aaa,_0x54244e['getRanges']()))){for(const _0x14b113 of _0x349aaa)_0x54244e['addRange'](_0x14b113);return _0x54244e;}const _0x3eacd5=_0x1b595f(),_0x400590=_0x633d24['id'],_0xc08f82='formatBlock:'+_0x1b1f7b,_0x4a7814=this['_setSuggestionData']({'id':_0x3eacd5,'type':_0xc08f82,'data':_0x549ba6,'createdAt':new Date(),'authorId':_0x400590,'attributes':_0x47e6d1});for(const _0x4b66f9 of _0x349aaa)this['_addSuggestionMarker'](_0xc08f82,_0x3eacd5,_0x400590,_0x4b66f9,o['getMultiRangeId']());return _0x4a7814;}['markDeletion'](_0x206e3e,_0x53fd39=null,_0x4976f6={}){if(_0x206e3e['isCollapsed'])return null;const _0x1e5715=this['editor']['plugins']['get']('Users')['me'],_0x12eebd=new _0x597cd7(_0x206e3e['start'],_0x206e3e['end']);this['_trackingSessionId']&&(_0x4976f6['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3a8cd7,meta:_0x59d98e}of this['_findSuggestions'](_0x12eebd,'insertion'))if(_0x59d98e['isOwn']&&!_0x59d98e['isNextTo']){if(_0x3a8cd7['isMultiRange']){const _0x27872d=_0x3a8cd7['getRanges']()['filter'](_0x3d619b=>'$graveyard'!=_0x3d619b['root']['rootName']);_0x27872d['every'](_0x18d5eb=>_0x12eebd['containsRange'](_0x18d5eb,!0x0))&&_0x3a8cd7['discard']();if(_0x27872d['some'](_0x41dfdf=>_0x41dfdf['containsRange'](_0x12eebd,!0x0))){const _0x1144bf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53fd39,'accept');return this['forceDefaultExecution'](()=>_0x1144bf([_0x12eebd],null,_0x4976f6)),null;}}else{const _0x1108e3=_0x12eebd['getIntersection'](_0x3a8cd7['getFirstRange']());null!==_0x1108e3&&_0x3a8cd7['_onDiscard']([_0x1108e3],null,_0x4976f6);}}if(_0x12eebd['detach'](),_0x12eebd['isCollapsed']||'$graveyard'==_0x12eebd['root']['rootName'])return null;let _0x8bbe6a=null,_0x2203b2=_0x12eebd['start'],_0x5c1db4=_0x12eebd['end'];const _0x115a50=this['_findSuggestions'](_0x12eebd,'deletion');for(const {suggestion:_0x596588,meta:_0x197790}of _0x115a50){const _0x21ff7d=this['_model']['createRange'](_0x2203b2,_0x5c1db4);if(_0x197790['isOwn']&&(this['_mergeNestedSuggestions']||!_0x197790['containsRangeInObject']&&!_0x197790['isInsideObject'])){if(_0x596588['isMultiRange']){if(!Xt(_0x596588,_0x4976f6))continue;let _0x5633a8=!0x0;for(const _0x19965c of _0x596588['getRanges']()){if(_0x19965c['containsRange'](_0x21ff7d,!0x0))return _0x596588;_0x21ff7d['containsRange'](_0x19965c)||(_0x5633a8=!0x1);}_0x5633a8&&_0x596588['discard']();}else{const _0x160b88=_0x596588['getFirstRange']();if(_0x160b88['containsRange'](_0x21ff7d,!0x0))return _0x596588;if(!Xt(_0x596588,_0x4976f6)){_0x21ff7d['containsRange'](_0x160b88)?_0x596588['removeMarkers']():_0x160b88['containsPosition'](_0x2203b2)?_0x2203b2=_0x160b88['end']:_0x160b88['containsPosition'](_0x5c1db4)&&(_0x5c1db4=_0x160b88['start']);continue;}_0x2203b2=_0x2203b2['isBefore'](_0x160b88['start'])?_0x2203b2:_0x160b88['start'],_0x5c1db4=_0x5c1db4['isAfter'](_0x160b88['end'])?_0x5c1db4:_0x160b88['end'],_0x4976f6=Object['assign']({},_0x596588['attributes']),_0x8bbe6a?_0x160b88['start']['isBefore'](_0x8bbe6a['getFirstRange']()['start'])?(_0x8bbe6a['removeMarkers'](),_0x8bbe6a=_0x596588):_0x596588['removeMarkers']():_0x8bbe6a=_0x596588;}}}if(_0x8bbe6a)return this['_setSuggestionRange'](_0x8bbe6a,this['_model']['createRange'](_0x2203b2,_0x5c1db4)),_0x8bbe6a;{const _0x4cfff7=_0x1b595f(),_0x18edbe=this['_model']['createRange'](_0x2203b2,_0x5c1db4),_0x2c225a=_0x1e5715['id'],_0x5d2eab=_0x53fd39?'deletion:'+_0x53fd39:'deletion',_0x2e04ce=this['_setSuggestionData']({'id':_0x4cfff7,'type':_0x5d2eab,'createdAt':new Date(),'authorId':_0x2c225a,'attributes':_0x4976f6});return this['_addSuggestionMarker'](_0x5d2eab,_0x4cfff7,_0x2c225a,_0x18edbe),_0x2e04ce;}}['markMultiRangeDeletion'](_0x2a5074,_0x377f7c='multi',_0x4ba078={}){const _0x4a3a76=this['editor']['plugins']['get']('Users')['me'],_0x2f893c=_0x2a5074['map'](_0x5d38fd=>new _0x597cd7(_0x5d38fd['start'],_0x5d38fd['end'])),_0x4eb71b=new Set();this['_trackingSessionId']&&(_0x4ba078['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2bf946,meta:_0x4f3fce}of this['_findSuggestions'](_0x2f893c,'insertion'))_0x4f3fce['isOwn']&&!_0x4f3fce['isNextTo']&&_0x4eb71b['add'](_0x2bf946);for(const _0x1c7cc3 of _0x4eb71b)if(_0x1c7cc3['isMultiRange']){const _0x1c8e71=_0x1c7cc3['getRanges']();(!_0x1c7cc3['attributes']||!_0x1c7cc3['attributes']['skipNestingCheck'])&&(_0x1c8e71['every'](_0x29b43d=>_0x2f893c['some'](_0x2be777=>_0x2be777['containsRange'](_0x29b43d,!0x0)))&&_0x1c7cc3['discard']());if(_0x2f893c['every'](_0x12553e=>_0x1c8e71['some'](_0x816eb2=>_0x816eb2['containsRange'](_0x12553e,!0x0)))){const _0x329c70=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x377f7c,'accept');return this['forceDefaultExecution'](()=>_0x329c70(_0x2a5074,null,_0x4ba078)),null;}}else{const _0x31b27f=_0x1c7cc3['getFirstRange']();_0x2f893c['some'](_0x3f2e84=>_0x3f2e84['containsRange'](_0x31b27f,!0x0))&&_0x1c7cc3['discard']();if(_0x2f893c['every'](_0x2e589d=>_0x31b27f['containsRange'](_0x2e589d,!0x0))){const _0x134b58=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x377f7c,'accept');return this['forceDefaultExecution'](()=>_0x134b58(_0x2f893c,null,_0x4ba078)),null;}}const _0x49d1fc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x377f7c,'join');let _0x5dde86=null;for(const _0xe5470 of this['getSuggestions']())if(_0xe5470['author']['id']==_0x4a3a76['id']&&_0xe5470['isInContent']&&'deletion'==_0xe5470['type']&&_0xe5470['subType']==_0x377f7c&&Xt(_0xe5470,_0x4ba078)&&(_0x49d1fc(_0xe5470['getRanges'](),_0x2f893c)||_0x49d1fc(_0x2f893c,_0xe5470['getRanges']()))){if(_0x5dde86){if(_0xe5470['commentThread']&&_0xe5470['commentThread']['length'])continue;for(const _0x2b44e2 of _0xe5470['getRanges']())_0x5dde86['isIntersectingWithRange'](_0x2b44e2)||_0x5dde86['addRange'](_0x2b44e2);_0xe5470['removeMarkers']();}else{_0x5dde86=_0xe5470;for(const _0x4b1c2b of _0x2f893c)_0xe5470['isIntersectingWithRange'](_0x4b1c2b)||_0xe5470['addRange'](_0x4b1c2b);}}if(_0x5dde86)return _0x5dde86;_0x4eb71b['clear']();for(const {suggestion:_0x1ed820,meta:_0x431191}of this['_findSuggestions'](_0x2f893c,'deletion'))_0x431191['isOwn']&&(this['_mergeNestedSuggestions']||!_0x431191['containsRangeInObject']&&!_0x431191['isInsideObject'])&&Xt(_0x1ed820,_0x4ba078)&&_0x4eb71b['add'](_0x1ed820);for(const _0x1075fb of _0x4eb71b){const _0x2a3544=_0x1075fb['getRanges']();if(!_0x4ba078||!_0x4ba078['skipNestingCheck']){if(_0x2f893c['every'](_0x1c9aec=>_0x2a3544['some'](_0x5e8112=>_0x5e8112['containsRange'](_0x1c9aec,!0x0))))return _0x1075fb;}(!_0x1075fb['attributes']||!_0x1075fb['attributes']['skipNestingCheck'])&&(_0x2a3544['every'](_0x611abd=>_0x2f893c['some'](_0x23bbca=>_0x23bbca['containsRange'](_0x611abd,!0x0)))&&_0x1075fb['discard']());}const _0x140257=_0x1b595f(),_0x296069=_0x4a3a76['id'],_0x4302a1='deletion:'+_0x377f7c,_0x3a9c0e=this['_setSuggestionData']({'id':_0x140257,'type':_0x4302a1,'createdAt':new Date(),'authorId':_0x296069,'attributes':_0x4ba078});for(const _0xf478bf of _0x2f893c)_0xf478bf['detach'](),_0xf478bf['isCollapsed']||'$graveyard'==_0xf478bf['root']['rootName']||this['_addSuggestionMarker'](_0x4302a1,_0x140257,_0x296069,_0xf478bf,o['getMultiRangeId']());return _0x3a9c0e;}['markAttributeChange'](_0x524ff6,_0x16a370,_0x2b0130,_0x598c14,_0x6141a){if(_0x524ff6['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x791293=this['editor']['plugins']['get']('Users')['me']['id'],_0x866dba=Array['from'](this['_suggestions']['values']())['filter'](_0x24d704=>'attribute'==_0x24d704['type']&&_0x24d704['data']['key']==_0x16a370&&_0x24d704['isIntersectingWithRange'](_0x524ff6));if(this['_trackingSessionId']&&(_0x6141a['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3838e4=this['_findSuggestions'](_0x524ff6,'insertion')['filter'](({meta:_0x4162bd})=>_0x4162bd['isOwn']&&!_0x4162bd['isInsideObject']&&!_0x4162bd['isNextTo'])['map'](({suggestion:_0xcd6cf3})=>_0xcd6cf3);_0x866dba['unshift'](..._0x3838e4);}const _0x10667e=new Map([[_0x524ff6,_0x2b0130]]);for(const _0x126946 of _0x866dba){const _0x172b7e='attribute'==_0x126946['type']?_0x126946['data']['oldValue']:void 0x0,_0x3ade21=_0x126946['getFirstRange'](),_0x33b50b=Array['from'](_0x10667e['keys']())['find'](_0x3758a1=>_0x3758a1['isIntersecting'](_0x3ade21));if(!_0x33b50b)continue;const _0x365f28=_0x33b50b['getDifference'](_0x3ade21);this['_isBlockAttribute'](_0x16a370)&&'insertion'==_0x126946['type']&&0x0!=_0x365f28['length']||(_0x10667e['delete'](_0x33b50b),_0x365f28['forEach'](_0x10c6a1=>{_0x10667e['set'](_0x10c6a1,_0x2b0130);}),'insertion'!=_0x126946['type']&&_0x172b7e!=_0x598c14&&_0x10667e['set'](_0x33b50b['getIntersection'](_0x3ade21),_0x172b7e));}const _0x245290=[];for(const [_0x35ebd7,_0x90f158]of _0x10667e){const _0x3e7273=_0x1b595f(),_0x506b53={'key':_0x16a370,'oldValue':_0x90f158,'newValue':_0x598c14};_0x16a370['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':_0x16a370});const _0x2bf9c3=('attribute:'+(_0x16a370+'|'+Kt({'newValue':_0x598c14})))['substring'](0x0,0x3c),_0x5a0a6b=this['_setSuggestionData']({'id':_0x3e7273,'type':_0x2bf9c3,'data':_0x506b53,'createdAt':new Date(),'authorId':_0x791293,'attributes':_0x6141a});_0x245290['push'](_0x5a0a6b),this['_addSuggestionMarker'](_0x2bf9c3,_0x3e7273,_0x791293,_0x35ebd7);}return _0x245290;}['enableDefaultAttributesIntegration'](_0x2f47f2){this['enableCommand'](_0x2f47f2,(_0x11d5c2,..._0x3fcb4d)=>{this['_recordAttributeChanges'](()=>{_0x11d5c2(..._0x3fcb4d);});});}['registerBlockAttribute'](_0x3449b2){this['_blockAttributeKeys']['add'](_0x3449b2);}['registerInlineAttribute'](_0x1be93c){this['_inlineAttributeKeys']['add'](_0x1be93c);}['startTrackingSession'](_0x3f43df){return this['_trackingSessionId']=void 0x0!==_0x3f43df?_0x3f43df:_0x1b595f(),this['_trackingSessionId'];}['_getAttributeKey'](_0x3a7f12){return'attribute'==_0x3a7f12['type']?_0x3a7f12['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x578946,_0x2d6b02){const _0x1e452b=_0x578946['getFirstMarker']();this['_model']['change'](_0x4e6071=>{_0x4e6071['updateMarker'](_0x1e452b,{'range':_0x2d6b02});});}['_addThreadToSuggestion'](_0x3ade41){const _0x3a3e89=_0x3ade41['id'],_0x411afc=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3a3e89)||this['_commentsRepository']['addCommentThread']({'channelId':_0x411afc,'threadId':_0x3a3e89,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1aabbb=this['_commentsRepository']['getCommentThread'](_0x3a3e89);_0x1aabbb['unbind']('isRemovable'),_0x1aabbb['isRemovable']=!0x1,_0x3ade41['commentThread']=_0x1aabbb;}['_checkSuggestionCorrectness'](_0x14139b,_0x5f22f0,_0x2da8eb,_0x59da0f){if(_0x14139b['type']!=_0x5f22f0||_0x14139b['subType']!=_0x2da8eb||_0x14139b['creator']['id']!=_0x59da0f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x27ba3f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x126d8a,_0x413482){const _0x5a320a=_0x126d8a['getFirstRange']();if(_0x413482['isEqual'](_0x5a320a))_0x126d8a['removeMarkers']();else{if(_0x5a320a['containsRange'](_0x413482)){const _0x198dba=this['_model']['createPositionAt'](_0x413482['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x126d8a,this['_model']['createRange'](_0x5a320a['start'],_0x198dba));const _0x217bcd=_0x1b595f(),_0x270e30=_0x126d8a['creator']['id'],_0x2d5109=_0x126d8a['type']+':'+_0x126d8a['subType'];this['_setSuggestionData']({'id':_0x217bcd,'type':_0x2d5109,'createdAt':new Date(),'authorId':_0x270e30,'data':_0x126d8a['data'],'attributes':_0x126d8a['attributes']});const _0x35cc41=this['_model']['createPositionAt'](_0x413482['end']['parent'],'after'),_0x397f02=this['_model']['createRange'](_0x35cc41,_0x5a320a['end']);this['_addSuggestionMarker'](_0x2d5109,_0x217bcd,_0x270e30,_0x397f02);}else{if(_0x5a320a['containsPosition'](_0x413482['start'])){const _0x1e7e79=this['_model']['createPositionAt'](_0x413482['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x126d8a,this['_model']['createRange'](_0x5a320a['start'],_0x1e7e79));}else{const _0x168893=this['_model']['createPositionAt'](_0x413482['end']['parent'],'after');this['_setSuggestionRange'](_0x126d8a,this['_model']['createRange'](_0x168893,_0x5a320a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1d2570){for(const {suggestion:_0x2baaca,meta:_0x13e7fb}of this['_findSuggestions'](_0x1d2570,'insertion')){if(!_0x13e7fb['isOwn'])continue;const _0x1d4050=_0x2baaca['getRanges']();for(const _0x280948 of _0x1d4050)if(!_0x1d2570['getDifference'](_0x280948)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x45f815){const _0x2ae717=this['editor']['plugins']['get']('Users')['getUser'](_0x45f815);if(!_0x2ae717)throw new _0x27ba3f('track-changes-user-not-found',this);return _0x2ae717;}['_getExternalAuthor'](_0x25676b){const _0x57a85e=this['editor']['plugins']['get']('Users'),_0x54ef4f=_0x14dbbf('external:'+_0x25676b),_0x3c715a=_0x57a85e['getUser'](_0x54ef4f);return _0x3c715a||_0x57a85e['addUser']({'id':_0x54ef4f,'name':_0x25676b});}['_createSuggestion'](_0x155c69,_0x4d3775,_0x2f669c,_0x101070,_0x3a6bfd){const _0x32285b=this['_getAuthorFromId'](_0x101070),_0x59383f=this['_suggestionFactory']['buildSuggestion'](_0x155c69,_0x4d3775,_0x2f669c,_0x32285b,_0x3a6bfd,_0xa1be01=>{this['_updateSuggestionData'](_0x2f669c,{'attributes':_0xa1be01});const _0x3153ea=this['getSuggestion'](_0x2f669c);this['_joinWithAdjacentSuggestions'](new Set([_0x3153ea])),this['_refreshSuggestionsChain'](new Set([_0x3153ea]));});return this['listenTo'](_0x59383f,'accept',()=>{this['_updateSuggestionData'](_0x2f669c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x59383f,'discard',()=>{this['_updateSuggestionData'](_0x2f669c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2f669c,_0x59383f),this['_suggestionState']['set'](_0x59383f,'notReady'),_0x59383f;}['_splitMarkerName'](_0x44912a){const _0x1a310d=_0x44912a['split'](':');return{'group':_0x1a310d[0x0],'type':_0x1a310d[0x1],'subType':_0x1a310d['length']>=0x5?_0x1a310d[0x2]:null,'id':_0x1a310d['length']<0x5?_0x1a310d[0x2]:_0x1a310d[0x3],'authorId':_0x1a310d['length']<0x5?_0x1a310d[0x3]:_0x1a310d[0x4],'markerCount':0x6==_0x1a310d['length']?_0x1a310d[0x5]:null};}['_breakSuggestionMarker'](_0x36609a,_0xd38bf6,_0x4373eb){const _0x5c1156=_0x36609a['getFirstRange'](),_0x8a7c76=_0x5c1156['start'],_0x51e6aa=_0x5c1156['end'];this['_setSuggestionRange'](_0x36609a,this['_model']['createRange'](_0x8a7c76,_0xd38bf6));const _0x256376=_0x1b595f(),_0x309c2b=_0x36609a['creator']['id'],_0x663b6=_0x36609a['type']+(_0x36609a['subType']?':'+_0x36609a['subType']:'');this['_setSuggestionData']({'id':_0x256376,'type':_0x663b6,'createdAt':new Date(),'authorId':_0x309c2b,'originalSuggestionId':_0x36609a['id'],'attributes':_0x36609a['attributes'],'data':_0x36609a['data']});const _0x30b023=this['_getAttributeKey'](_0x36609a);('formatBlock'==_0x36609a['type']||_0x30b023&&this['_isBlockAttribute'](_0x30b023))&&(_0x4373eb=this['_model']['createPositionBefore'](_0x4373eb['parent'])),this['_addSuggestionMarker'](_0x663b6,_0x256376,_0x309c2b,this['_model']['createRange'](_0x4373eb,_0x51e6aa));}['_findSuggestions'](_0xeb8e65,_0x486b93=null){const _0x17756a=[],_0x5c39f1=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xeb8e65)||(_0xeb8e65=[_0xeb8e65]);for(const _0x1bcf7f of this['getSuggestions']()){if(!_0x1bcf7f['isInContent'])continue;if(_0x486b93&&_0x1bcf7f['type']!=_0x486b93)continue;let _0x5f5c72=!0x1;for(const _0x4b4b06 of _0x1bcf7f['getRanges']()){for(const _0x305589 of _0xeb8e65){const _0x9c259=_0x305589['start']['isEqual'](_0x4b4b06['end'])||_0x305589['end']['isEqual'](_0x4b4b06['start']);if(_0x9c259||_0x305589['getIntersection'](_0x4b4b06)){const _0x347601=_0x305589['containsRange'](_0x4b4b06)&&Gt(this['_model']['schema'],_0x4b4b06['start'],_0x305589),_0x2ef053=_0x4b4b06['containsRange'](_0x305589)&&Gt(this['_model']['schema'],_0x305589['start'],_0x4b4b06);_0x17756a['push']({'suggestion':_0x1bcf7f,'meta':{'isOwn':_0x5c39f1==_0x1bcf7f['author'],'isNextTo':_0x9c259,'isInsideObject':_0x347601,'containsRangeInObject':_0x2ef053}}),_0x5f5c72=!0x0;break;}}if(_0x5f5c72)break;}}return _0x17756a;}['_addSuggestionMarker'](_0x4465c3,_0x522828,_0x56eccc,_0x40f4e6,_0x10f0cc){this['_model']['change'](_0x151e0c=>{let _0x78c43d='suggestion:'+_0x4465c3+':'+_0x522828+':'+_0x56eccc;_0x10f0cc&&(_0x78c43d=_0x78c43d+':'+_0x10f0cc),_0x151e0c['addMarker'](_0x78c43d,{'range':_0x40f4e6,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x329065){const _0x2e8674=_0x329065['previous'],_0x3340c5=_0x329065['next'];_0x329065['previous']=null,_0x329065['next']=null,null!=_0x2e8674&&_0x2e8674['next']==_0x329065&&(_0x2e8674['next']=_0x3340c5),null!=_0x3340c5&&_0x3340c5['previous']==_0x329065&&(_0x3340c5['previous']=_0x2e8674),'ready'==this['_suggestionState']['get'](_0x329065)&&(this['_suggestionState']['set'](_0x329065,'removed'),this['fire']('suggestionUnloaded',_0x329065,_0x2e8674,_0x3340c5));}['_setSuggestionData'](_0x58bf61){const _0x53d5ae=_0x58bf61['id'],_0x4bfb23=this['addSuggestionData'](_0x58bf61);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5a3bd0=this['editor']['plugins']['get']('PendingActions'),_0x57dea1=_0x4bfb23['hasComments'],_0x385b05=_0x4bfb23['subType']?_0x4bfb23['type']+':'+_0x4bfb23['subType']:_0x4bfb23['type'],_0x15c4c2=this['editor']['locale'],_0x3194e1=_0x5a3bd0['add'](c(_0x15c4c2,'PENDING_ACTION_SUGGESTION')),_0x2f5aa6={'id':_0x53d5ae,'type':_0x385b05,'hasComments':_0x57dea1,'data':_0x58bf61['data']||null,'originalSuggestionId':_0x58bf61['originalSuggestionId']||null,'attributes':_0x4bfb23['attributes']};this['_adapter']['addSuggestion'](_0x2f5aa6)['then'](_0x324129=>{_0x4bfb23['_saved']=!0x0,_0x5a3bd0['remove'](_0x3194e1),_0x324129&&_0x324129['createdAt']&&(this['_suggestions']['get'](_0x53d5ae)['createdAt']=_0x324129['createdAt']);})['catch'](_0x15ffcb=>{throw _0x7309e5('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4bfb23['discard']();}),_0x4bfb23['stopListening'](),this['_suggestions']['delete'](_0x4bfb23['id']),this['_suggestionState']['delete'](_0x4bfb23),_0x15ffcb;});}return _0x4bfb23;}['_isBlockAttribute'](_0xa86bc8){return this['_blockAttributeKeys']['has'](_0xa86bc8);}['_updateSuggestionData'](_0x1e486b,_0x404b81){const _0x136773=this['editor']['plugins']['get']('PendingActions'),_0x50a584=this['getSuggestion'](_0x1e486b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x50a584['_saved']){const _0x4e463e=_0x136773['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1e486b,_0x404b81)['then'](()=>{_0x136773['remove'](_0x4e463e);});}else _0x50a584['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1e486b,_0x404b81);});}}['_getSuggestionData'](_0x46e3d1){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x27ba3f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x46e3d1);}['_handleNewSuggestionMarker'](_0x5c2e73){const {id:_0x30decb,type:_0x159f08,subType:_0x5b3977,authorId:_0x2b4eb5}=this['_splitMarkerName'](_0x5c2e73),_0x91e00=this['_suggestions']['get'](_0x30decb)||this['_createSuggestion'](_0x159f08,_0x5b3977,_0x30decb,_0x2b4eb5,{});switch(this['_checkSuggestionCorrectness'](_0x91e00,_0x159f08,_0x5b3977,_0x2b4eb5),this['_suggestionState']['get'](_0x91e00)){case'notReady':this['_getSuggestionData'](_0x30decb)['then'](_0x271c0e=>{let _0x10eb99=Promise['resolve']();_0x271c0e['hasComments']&&(_0x10eb99=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x30decb})),_0x10eb99['then'](()=>{this['addSuggestionData'](_0x271c0e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x91e00,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x30decb,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x91e00,'ready'),this['fire']('suggestionLoaded',_0x91e00);break;case'ready':this['fire']('suggestionChanged',_0x91e00);}return _0x91e00['addMarkerName'](_0x5c2e73),_0x91e00;}['_refreshSuggestionsChain'](_0x2729d7){const _0xad5dee=Array['from'](_0x2729d7),_0xd27dce=_0xad5dee['filter'](_0x3132c2=>'attribute'==_0x3132c2['type']);this['_refreshAttributeSuggestionsChain'](_0xd27dce);const _0x2feb23=_0xad5dee['filter'](_0x3334c3=>!_0x3334c3['isMultiRange']&&'attribute'!=_0x3334c3['type']),_0x5da8e0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5491b8=>!_0x5491b8['isMultiRange']&&'attribute'!=_0x5491b8['type']),_0x907daa=_0x5da8e0['filter'](_0x48f9bd=>!_0x2729d7['has'](_0x48f9bd)),_0x73b53e=new Map(_0x5da8e0['map'](_0x43a2b1=>[_0x43a2b1,this['_suggestionFactory']['getSuggestionCallback'](_0x43a2b1['type'],_0x43a2b1['subType'],'chain')])),_0x295393=new Map(_0x5da8e0['map'](_0x14d840=>[_0x14d840,_0x14d840['getFirstRange']()])),_0xad975=new Set(),_0x65a71d=new Set();for(let _0xabad00=0x0;_0xabad00<_0x2feb23['length'];_0xabad00++)_0x31c075(_0x2feb23[_0xabad00],_0x2feb23,_0xabad00+0x1);for(let _0x2e502d=0x0;_0x2e502d<_0x2feb23['length'];_0x2e502d++)_0x31c075(_0x2feb23[_0x2e502d],_0x907daa,0x0);const _0x3507b2=new Set();for(let _0x3f3b62=0x0;_0x3f3b62<_0x2feb23['length'];_0x3f3b62++){const _0x4d4159=_0x2feb23[_0x3f3b62];!_0x65a71d['has'](_0x4d4159)&&_0x4d4159['previous']&&(_0x3507b2['add'](_0x4d4159['previous']),_0x4d4159['previous']['next']===_0x4d4159&&(_0x4d4159['previous']['next']=null),_0x4d4159['previous']=null),!_0xad975['has'](_0x4d4159)&&_0x4d4159['next']&&(_0x3507b2['add'](_0x4d4159['next']),_0x4d4159['next']['previous']===_0x4d4159&&(_0x4d4159['next']['previous']=null),_0x4d4159['next']=null);}function _0x31c075(_0x384e18,_0x5239e6,_0x5aa853){for(let _0x3803dc=_0x5aa853;_0x3803dc<_0x5239e6['length'];_0x3803dc++){const _0x51aa6a=_0x17fa0d(_0x384e18,_0x5239e6[_0x3803dc]);_0x51aa6a&&(_0x51aa6a[0x0]['next']=_0x51aa6a[0x1],_0x51aa6a[0x1]['previous']=_0x51aa6a[0x0],_0xad975['add'](_0x51aa6a[0x0]),_0x65a71d['add'](_0x51aa6a[0x1]));}}function _0x17fa0d(_0x41b0ae,_0x1bf624){if(_0x41b0ae['author']['id']!==_0x1bf624['author']['id'])return null;const _0xa44495=_0x73b53e['get'](_0x41b0ae)(_0x41b0ae,_0x1bf624,_0x295393['get'](_0x41b0ae),_0x295393['get'](_0x1bf624));if(!_0xa44495)return null;return _0x73b53e['get'](_0x1bf624)(_0x41b0ae,_0x1bf624,_0x295393['get'](_0x41b0ae),_0x295393['get'](_0x1bf624))?_0xa44495[0x1]['commentThread']&&_0xa44495[0x1]['commentThread']['length']?null:_0xa44495:null;}_0x3507b2['size']&&this['_refreshSuggestionsChain'](_0x3507b2);}['_refreshAttributeSuggestionsChain'](_0x12a956){if(0x0==_0x12a956['length'])return;const _0x4b7711=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4039ca=>'attribute'==_0x4039ca['type']&&_0x4039ca['_isDataLoaded']),_0x152e22=[],_0x4bcd2a=new Map();for(const _0x3db85f of _0x4b7711){const _0x2ef82f=_0x14dbbf(_0x3db85f['attributes']);_0x4bcd2a['has'](_0x2ef82f)||(_0x4bcd2a['set'](_0x2ef82f,_0x152e22['length']),_0x152e22['push']([]));const _0x434a37=_0x4bcd2a['get'](_0x2ef82f);_0x152e22[_0x434a37]['push'](_0x3db85f);}!(function(){_0x152e22['sort']((_0x919fc9,_0x1f6f86)=>{const _0x5f1b91=_0x919fc9[0x0]['createdAt'],_0x3299e7=_0x1f6f86[0x0]['createdAt'];return _0x5f1b91==_0x3299e7?_0x919fc9[0x0]['attributes']['groupId']<_0x1f6f86[0x0]['attributes']['groupId']?-0x1:0x1:_0x5f1b91<_0x3299e7?-0x1:0x1;});for(const _0x32201 of _0x152e22)_0x32201['sort']((_0x5e9868,_0xda3a0a)=>_0x5e9868['id']<_0xda3a0a['id']?-0x1:0x1);}());for(let _0x207efa=0x0;_0x207efa<_0x152e22['length'];_0x207efa++){if(0x0==_0x152e22[_0x207efa]['length'])continue;const _0x3fdba2=[];for(let _0x25a21d=_0x207efa+0x1;_0x25a21d<_0x152e22['length'];_0x25a21d++)0x0!=_0x152e22[_0x25a21d]['length']&&_0x113bc3(_0x152e22[_0x207efa],_0x152e22[_0x25a21d])&&_0x3fdba2['push'](_0x25a21d);for(const _0x29bc37 of _0x3fdba2)_0x152e22[_0x207efa]=_0x152e22[_0x207efa]['concat'](_0x152e22[_0x29bc37]),_0x152e22[_0x29bc37]=[];}for(const _0xfa83d0 of _0x152e22)for(let _0x75f793=0x0;_0x75f793<_0xfa83d0['length'];_0x75f793++){const _0x3efb92=_0xfa83d0[_0x75f793+0x1]||null;_0xfa83d0[_0x75f793]['next']!==_0x3efb92&&(_0xfa83d0[_0x75f793]['next']=_0x3efb92);}for(const _0x3b2699 of _0x152e22)for(let _0x525eb0=0x0;_0x525eb0<_0x3b2699['length'];_0x525eb0++){const _0x49e0e9=_0x3b2699[_0x525eb0-0x1]||null;_0x3b2699[_0x525eb0]['previous']!==_0x49e0e9&&(_0x3b2699[_0x525eb0]['previous']=_0x49e0e9);}function _0x113bc3(_0x45bb39,_0x590b17){if(_0x45bb39[0x0]['attributes']['groupId']!==_0x590b17[0x0]['attributes']['groupId']&&_0x45bb39[0x0]['author']!==_0x590b17[0x0]['author'])return!0x1;if(!function(_0x3c4dc4,_0xcad3dc){if(!_0x3c4dc4['hasComments']&&!_0xcad3dc['hasComments'])return!0x0;if(_0x3c4dc4['hasComments']&&_0xcad3dc['hasComments'])return!0x1;if(_0x3c4dc4['hasComments']&&_0xcad3dc['createdAt']<_0x3c4dc4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xcad3dc['hasComments']&&_0x3c4dc4['createdAt']<_0xcad3dc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x45bb39[0x0],_0x590b17[0x0]))return!0x1;const _0x367bf2=Ft(_0x45bb39[0x0]['attributes'],['groupId','trackingSessionId']),_0x1f3342=Ft(_0x590b17[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x16f315(_0x367bf2,_0x1f3342))return!0x1;if(_0x45bb39[0x0]['attributes']['groupId']==_0x590b17[0x0]['attributes']['groupId'])return!0x0;if(_0x45bb39[0x0]['attributes']['trackingSessionId']!==_0x590b17[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x45bb39['every'](_0x4b2209=>_0x590b17['some'](_0x15f27e=>_0x4b2209['getFirstRange']()['isEqual'](_0x15f27e['getFirstRange']())))&&_0x590b17['every'](_0x35fceb=>_0x45bb39['some'](_0x170268=>_0x35fceb['getFirstRange']()['isEqual'](_0x170268['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x24d08c){const _0x1c16f8=Array['from'](_0x24d08c),_0x406b14=this['getSuggestions']({'skipNotAttached':!0x0}),_0x22862e=_0x406b14['filter'](_0x21f313=>!_0x24d08c['has'](_0x21f313)),_0x4a3f23=new Map(_0x1c16f8['map'](_0x3728c5=>[_0x3728c5,this['_suggestionFactory']['getSuggestionCallback'](_0x3728c5['type'],_0x3728c5['subType'],'join')])),_0x14163d=new Map(_0x406b14['map'](_0x1dc311=>[_0x1dc311,_0x1dc311['getRanges']()]));for(let _0xf3f239=0x0;_0xf3f239<_0x1c16f8['length'];_0xf3f239++){if(_0x1cb0e6(this,_0x1c16f8[_0xf3f239],_0x1c16f8,_0xf3f239+0x1))return!0x0;}for(let _0x571ad9=0x0;_0x571ad9<_0x1c16f8['length'];_0x571ad9++){if(_0x1cb0e6(this,_0x1c16f8[_0x571ad9],_0x22862e,0x0))return!0x0;}return!0x1;function _0x1cb0e6(_0x3fe3d9,_0x453cfa,_0x497c00,_0x510473){for(let _0x368490=_0x510473;_0x368490<_0x497c00['length'];_0x368490++){const _0x17e97f=_0x497c00[_0x368490];if(_0x17e97f['type']!==_0x453cfa['type']||_0x17e97f['author']['id']!==_0x453cfa['author']['id']||_0x17e97f['subType']!==_0x453cfa['subType'])continue;if(!Qt(_0x453cfa,_0x17e97f))continue;if('attribute'==_0x453cfa['type']&&_0x453cfa['data']['oldValue']!=_0x17e97f['data']['oldValue'])continue;if('attribute'==_0x453cfa['type']&&_0x3fe3d9['_isBlockAttribute'](_0x453cfa['data']['key']))continue;if('formatBlock'==_0x453cfa['type']){const _0x202da8=_0x3fe3d9['editor']['model'],_0x50d5a4=_0x453cfa['getContainedElement']();if(_0x50d5a4&&(_0x202da8['schema']['isObject'](_0x50d5a4)||_0x202da8['schema']['isLimit'](_0x50d5a4)))continue;}const _0x47b4e9=_0x4a3f23['get'](_0x453cfa),_0x156cf3=_0x14163d['get'](_0x453cfa),_0x4ab35b=_0x14163d['get'](_0x17e97f),_0x380d90=_0x453cfa['commentThread']&&_0x453cfa['commentThread']['length'],_0x2821dc=_0x17e97f['commentThread']&&_0x17e97f['commentThread']['length'];if(!_0x380d90&&_0x47b4e9(_0x4ab35b,_0x156cf3))return _0x3fe3d9['_joinSuggestions'](_0x17e97f,_0x453cfa),_0x14163d['delete'](_0x453cfa),!0x0;if(!_0x2821dc&&_0x47b4e9(_0x156cf3,_0x4ab35b))return _0x3fe3d9['_joinSuggestions'](_0x453cfa,_0x17e97f),_0x14163d['delete'](_0x17e97f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x49fed3,_0x4723fe){if(_0x49fed3['isMultiRange']){for(const _0x52f3d9 of _0x4723fe['getRanges']())_0x49fed3['addRange'](_0x52f3d9);}else{const _0x5bb5d3=_0x4723fe['getFirstRange']()['end'];this['_setSuggestionRange'](_0x49fed3,this['_model']['createRange'](_0x49fed3['getFirstRange']()['start'],_0x5bb5d3));}_0x4723fe['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2648e1,_0x5159b9,_0x23d257){const _0x3129e1=_0x2648e1['startsWith']('format')||_0x2648e1['startsWith']('attribute')?'FORMATTING':_0x2648e1['toUpperCase']();return c(this['editor']['locale'],_0x5159b9+'_'+_0x3129e1+'_SUGGESTION_ANNOUNCEMENT',_0x23d257);}['_initAriaMarkerChangeAnnouncements'](){const _0xe58a69=this['editor'];if(!_0xe58a69['ui'])return;const {ariaLiveAnnouncer:_0x3ba1d3}=_0xe58a69['ui'];_0xd99fe4(this['_model'],({left:_0x28b30f,entered:_0x577f07})=>{for(const _0x57a9c0 of _0x28b30f){const {group:_0x37b6f6,type:_0x32ca04}=this['_splitMarkerName'](_0x57a9c0['name']);if('suggestion'===_0x37b6f6){_0x3ba1d3['announce'](this['_getMarkerAnnouncementText'](_0x32ca04,'LEAVE'));break;}}for(const _0xc7cc8e of _0x577f07){const {group:_0x568090,type:_0x853994}=this['_splitMarkerName'](_0xc7cc8e['name']);if('suggestion'===_0x568090){_0x3ba1d3['announce'](this['_getMarkerAnnouncementText'](_0x853994,'ENTER',_0x2d0d08(_0x3d13f0)));break;}}});}['_processAttributeChanges'](_0x18e8a7){if(this['_recordAttributeSuggestions'])return!0x1;const _0xd84029=this['editor'],_0x77316c=_0xd84029['model']['document']['differ']['getChanges']();if(0x0==_0x77316c['length'])return!0x1;const _0x144591=[],_0x32aa0c=_0x77316c['filter'](_0x9d223a=>'attribute'==_0x9d223a['type']),_0x36f855=_0x77316c['filter'](_0x4d0684=>'insert'==_0x4d0684['type']&&'$text'!=_0x4d0684['name']),_0x5a8d5e=_0x77316c['filter'](_0x2753ec=>'remove'==_0x2753ec['type']&&'$text'!=_0x2753ec['name']);for(const _0xd41ea6 of _0x32aa0c)_0x144591['push']({'key':_0xd41ea6['attributeKey'],'newValue':_0xd41ea6['attributeNewValue'],'oldValue':_0xd41ea6['attributeOldValue'],'range':qt(_0xd41ea6['range'],_0xd84029['model'])});for(const _0x4b42c9 of _0x36f855){const _0x2ea34b=_0x5a8d5e['find'](_0x4ec725=>_0x4ec725['position']['isEqual'](_0x4b42c9['position']));_0x2ea34b&&_0x144591['push']({'key':u,'newValue':_0x4b42c9['name'],'oldValue':_0x2ea34b['name'],'range':_0xd84029['model']['createRangeOn'](_0x4b42c9['position']['nodeAfter'])});}return 0x0!=_0x144591['length']&&this['_reduceExistingSuggestions'](_0x18e8a7,_0x144591);}['_processAttributeSuggestions'](_0x21bfb5){let _0x3afb3a=!0x1;const _0x8692ac=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x570358=>_0x570358['data']['newRange']&&_0x570358['name']['startsWith']('suggestion:attribute:'));for(const _0x438e2a of _0x8692ac){const {subType:_0x477211,id:_0x2bf0cb}=this['_splitMarkerName'](_0x438e2a['name']),_0x10b38e=_0x477211['split']('|')[0x0];for(const _0x17317e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x17317e['id']!=_0x2bf0cb&&'attribute'==_0x17317e['type']&&_0x17317e['data']&&_0x17317e['data']['key']==_0x10b38e&&_0x17317e['getFirstRange']()['isIntersecting'](_0x438e2a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x17317e,_0x438e2a['data']['newRange'],_0x21bfb5),_0x3afb3a=!0x0);}return _0x3afb3a;}['_recordAttributeChanges'](_0x1a9bd9){this['_recordAttributeSuggestions']=!0x0,_0x1a9bd9();}['_isRegisteredAttribute'](_0x3edf22){const _0x4c7b2b=this['_isBlockAttribute'](_0x3edf22),_0x42c1d1=this['_inlineAttributeKeys']['has'](_0x3edf22);return _0x4c7b2b||_0x42c1d1;}['_reduceExistingSuggestions'](_0x48fda3,_0xe3b2d8){if(0x0==_0xe3b2d8['length'])return!0x1;let _0x4a259b=!0x1;for(const _0x43b680 of _0xe3b2d8){const _0x2e2619=this['_findSuggestions'](_0x43b680['range'],'attribute')['filter'](_0x371715=>!_0x371715['meta']['isNextTo'])['map'](_0x379647=>_0x379647['suggestion']),_0x547c5b=_0x14dbbf({'newValue':_0x43b680['newValue']});_0x2e2619['filter'](_0x221e39=>{const [_0x55663a,_0x19e444]=_0x221e39['subType']['split']('|');return _0x55663a==_0x43b680['key']&&_0x19e444!=_0x547c5b;})['forEach'](_0x447ecd=>{this['_reduceSuggestionAttributeRange'](_0x447ecd,_0x43b680['range'],_0x48fda3),_0x4a259b=!0x0;});}return _0x4a259b;}['_reduceSuggestionAttributeRange'](_0x7c4038,_0xe38601,_0x2d66b3){const _0x152499=_0x7c4038['getFirstRange']()['getDifference'](_0xe38601);0x0!==_0x152499['length']?0x1!==_0x152499['length']?this['_breakSuggestionMarker'](_0x7c4038,_0xe38601['start'],_0xe38601['end']):this['_setSuggestionRange'](_0x7c4038,_0x152499[0x0]):_0x2d66b3['removeMarker'](_0x7c4038['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xd56356){this['_editor']=_0xd56356,this['_model']=_0xd56356['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4c0f2c,_0x4d4c0e,_0x4d148,_0x534034,_0x58586a,_0x39fbd7){return new o(this['_model'],{'type':_0x4c0f2c,'subType':_0x4d4c0e,'id':_0x4d148,'author':_0x534034,'creator':_0x534034,'attributes':_0x58586a,'onAttributesChange':_0x39fbd7,'onAccept':(..._0x3348dc)=>this['getSuggestionCallback'](_0x4c0f2c,_0x4d4c0e,'accept')(..._0x3348dc),'onDiscard':(..._0x573b10)=>this['getSuggestionCallback'](_0x4c0f2c,_0x4d4c0e,'discard')(..._0x573b10)});}['registerCustomCallback'](_0x2af03c,_0x5697de,_0x182ec9,_0x16a51b){const _0x152388=_0x2af03c+':'+_0x5697de+':'+_0x182ec9;this['_customCallbacks']['set'](_0x152388,_0x16a51b);}['getSuggestionCallback'](_0x355893,_0xd21f2e,_0x38601a){const _0x2acde8=_0x355893+':'+_0xd21f2e+':'+_0x38601a;return this['_customCallbacks']['get'](_0x2acde8)||this['_defaultCallbacks']['get'](_0x355893+':'+_0x38601a);}['_registerDefaultCallbacks'](){const _0x50ae55=()=>!0x1,_0x566ede=_0x333d6a=>{_0x333d6a['sort']((_0x265220,_0x1f6a47)=>_0x265220['start']['isBefore'](_0x1f6a47['start'])?0x1:-0x1),this['_model']['change'](_0xd58211=>{for(const _0x158fb3 of _0x333d6a){let _0x6fe662;_0x6fe662=_0x158fb3['end']['isAtEnd']&&_0x158fb3['end']['parent']==_0x158fb3['start']['nodeAfter']?_0xd58211['createSelection'](_0x158fb3['start']['nodeAfter'],'on'):_0xd58211['createSelection'](_0x158fb3),this['_model']['deleteContent'](_0x6fe662,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1c1b8c=(_0x10ed31,_0x3cff22)=>{_0x3cff22&&this['_model']['change'](_0x3aadec=>{const {commandName:_0x5f4b91,commandParams:_0x4cda29=[]}=_0x3cff22,_0x3c9434=_0x10ed31['map'](_0x12ddd2=>(Lt(_0x12ddd2)&&(_0x12ddd2=this['_model']['createRange'](_0x12ddd2['end'])),_0x12ddd2))['filter'](_0x16f846=>'$graveyard'!==_0x16f846['root']['rootName']);if(_0x3c9434['length']<0x1)return;const _0x19e71c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x300918=>_0x597cd7['fromRange'](_0x300918));_0x3aadec['setSelection'](_0x3c9434);for(const _0x1c15fe of this['_editor']['commands']['commands']())_0x1c15fe['refresh']();_0x4cda29['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5f4b91,..._0x4cda29);const _0x255767=_0x19e71c['filter'](_0x12a658=>'$graveyard'!=_0x12a658['root']['rootName']);_0x255767['length']>0x0&&_0x3aadec['setSelection'](_0x255767);for(const _0x32c1bd of _0x19e71c)_0x32c1bd['detach']();});},_0x5958c8=(_0x2a5d6a,_0x592d45)=>0x1==_0x2a5d6a['length']&&0x1==_0x592d45['length']&&_0x2a5d6a[0x0]['end']['isEqual'](_0x592d45[0x0]['start']),_0x32dfb1=(_0x5b040c,_0x629ae9,_0xe56fe2,_0x1d6533)=>Wt(_0x5b040c,_0x629ae9,_0xe56fe2,_0x1d6533)?[_0x5b040c,_0x629ae9]:Wt(_0x629ae9,_0x5b040c,_0x1d6533,_0xe56fe2)?[_0x629ae9,_0x5b040c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x50ae55),this['_defaultCallbacks']['set']('insertion:discard',_0x566ede),this['_defaultCallbacks']['set']('insertion:join',_0x5958c8),this['_defaultCallbacks']['set']('insertion:chain',_0x32dfb1),this['_defaultCallbacks']['set']('deletion:accept',_0x566ede),this['_defaultCallbacks']['set']('deletion:discard',_0x50ae55),this['_defaultCallbacks']['set']('deletion:join',_0x5958c8),this['_defaultCallbacks']['set']('deletion:chain',_0x32dfb1),this['_defaultCallbacks']['set']('formatInline:accept',_0x1c1b8c),this['_defaultCallbacks']['set']('formatInline:discard',_0x50ae55),this['_defaultCallbacks']['set']('formatInline:join',_0x5958c8),this['_defaultCallbacks']['set']('formatInline:chain',_0x50ae55),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1c1b8c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x50ae55),this['_defaultCallbacks']['set']('formatBlock:join',_0x5958c8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x50ae55),this['_defaultCallbacks']['set']('attribute:accept',_0x50ae55),this['_defaultCallbacks']['set']('attribute:discard',(_0x115019,_0x1b5e25)=>{if(!_0x1b5e25)return;const _0xcaf941=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x546749=>{if(_0x1b5e25['key']==u)for(const _0x2045bf of _0x115019){const _0x27bec8=_0x2045bf['start']['nodeAfter'],_0x2d30c2=_0x1b5e25['oldValue'];_0x546749['rename'](_0x27bec8,_0x2d30c2);}else{if(_0xcaf941['_isBlockAttribute'](_0x1b5e25['key'])){for(const _0x2469c0 of _0x115019)void 0x0!==_0x1b5e25['oldValue']?_0x546749['setAttribute'](_0x1b5e25['key'],_0x1b5e25['oldValue'],_0x2469c0['start']['nodeAfter']):_0x546749['removeAttribute'](_0x1b5e25['key'],_0x2469c0['start']['nodeAfter']);}else{for(const _0x824532 of _0x115019)_0x1b5e25['oldValue']?_0x546749['setAttribute'](_0x1b5e25['key'],_0x1b5e25['oldValue'],_0x824532):_0x546749['removeAttribute'](_0x1b5e25['key'],_0x824532);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5958c8);}}function Gt(_0x45e587,_0x4b7cd4,_0x18ca35){for(const _0x2f9616 of _0x4b7cd4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2f9616['root']==_0x2f9616)return!0x1;if(!_0x18ca35['containsItem'](_0x2f9616))return!0x1;if(_0x45e587['isObject'](_0x2f9616)||_0x45e587['isLimit'](_0x2f9616))return!0x0;}return!0x1;}function Lt(_0xbacc6c){return _0xbacc6c['end']['parent']==_0xbacc6c['start']['nodeAfter']&&_0xbacc6c['end']['isAtStart'];}function Jt(_0x33bb83,_0x383308,_0x4c80f3,_0x2c04a3){const _0xe0da74=_0xf08bba=>!_0xf08bba['item']['is']('$textProxy')&&!_0x2c04a3['isObject'](_0xf08bba['item']),_0x6f8c07=_0x33bb83['start']['getLastMatchingPosition'](_0xe0da74),_0x135e20=_0x33bb83['end']['getLastMatchingPosition'](_0xe0da74,{'direction':'backward'});return(!_0x33bb83['start']['isEqual'](_0x6f8c07)||!_0x33bb83['end']['isEqual'](_0x135e20))&&(_0x6f8c07['isBefore'](_0x135e20)?_0x4c80f3['updateMarker'](_0x383308,{'range':_0x4c80f3['createRange'](_0x6f8c07,_0x135e20)}):_0x4c80f3['removeMarker'](_0x383308),!0x0);}function Kt(_0x4f1602){return _0x14dbbf(_0x4f1602);}function Ht(_0x51e115){const _0x6b033b=_0x51e115['start']['nodeAfter'];return _0x6b033b&&_0x6b033b['is']('element');}function qt(_0x1ae194,_0x300a03){return null==_0x1ae194['end']['nodeBefore']&&_0x1ae194['end']['parent']==_0x1ae194['start']['nodeAfter']?zt(_0x1ae194['start']['nodeAfter'],_0x300a03):_0x1ae194;}function zt(_0xdcdac6,_0x5ed868){const _0x5094fa=_0x5ed868['schema']['isObject'](_0xdcdac6)||_0x5ed868['schema']['isSelectable'](_0xdcdac6);return _0x5ed868['createRange'](_0x5ed868['createPositionAt'](_0xdcdac6,'before'),_0x5094fa?_0x5ed868['createPositionAfter'](_0xdcdac6):_0x5ed868['createPositionAt'](_0xdcdac6,'end'));}function Wt(_0x38ab1c,_0x13c7c4,_0x50daf2,_0x4115d6){return!!Qt(_0x38ab1c,_0x13c7c4)&&_0x50daf2['end']['isEqual'](_0x4115d6['start']);}function Qt(_0x20abbe,_0x1703ad){if(!_0x20abbe['_isDataLoaded']||!_0x1703ad['_isDataLoaded'])return!0x1;const _0x3096a1=new Set(Object['keys'](_0x20abbe['attributes'])),_0x837f5d=new Set(Object['keys'](_0x1703ad['attributes']));if(_0x3096a1['delete']('groupId'),_0x837f5d['delete']('groupId'),0x0==_0x3096a1['size']&&0x0==_0x837f5d['size'])return!0x0;if(_0x3096a1['size']!=_0x837f5d['size'])return!0x1;const _0x3a2fb2={..._0x20abbe['attributes']},_0x48e155={..._0x1703ad['attributes']};return delete _0x3a2fb2['groupId'],delete _0x48e155['groupId'],JSON['stringify'](_0x3a2fb2)==JSON['stringify'](_0x48e155);}function Xt(_0x120ea3,_0x4dc8ae){const _0x190b0f=Yt(_0x120ea3['attributes']),_0x4a43c1=Yt(_0x4dc8ae);if(!_0x120ea3['_isDataLoaded'])return!0x1;for(const _0x53a538 of Object['keys'](_0x4a43c1))if(!_0x16f315(_0x190b0f[_0x53a538],_0x4a43c1[_0x53a538]))return!0x1;return!0x0;}function Yt(_0xcbb90c){const _0x382c02=Object['assign']({},_0xcbb90c);return delete _0x382c02['skipNestingCheck'],delete _0x382c02['tablePasteChainId'],_0x382c02;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x52bea3(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x278dce,_0x30a5d7,_0x546600,_0x295e99){super(),this['model']=_0x30a5d7,this['view']=_0x546600,this['commentThreadController']=_0x295e99,this['_editor']=_0x278dce,this['_acceptCommand']=_0x278dce['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x278dce['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2e0122,_0x131284)=>_0x2e0122||_0x131284),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x283e00=>_0x283e00&&this['_editor']['model']['canEditAt'](_0x30a5d7['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x66e74=>_0x66e74&&this['_editor']['model']['canEditAt'](_0x30a5d7['getRanges']())),this['_pendingAction']=null,_0x546600['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x546600,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x546600,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x546600,'change:isDirty',()=>{_0x546600['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 _0x2caadb=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2caadb);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1a544d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4b4efd,_0x3bc722,_0x1aa08b,_0x2095b6){super(_0x4b4efd),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x50f820(_0x4b4efd,c(_0x4b4efd,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3bc722['authoredAt']),this['bind']('authoredAt')['to'](_0x3bc722),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',_0x3bc722,'authoredAt',this,'descriptionParts',(_0x400170,_0x207b9a,_0x15c60b)=>{const _0x1af1ea=_0x15c60b['map'](_0x4b1fdf=>ls(_0x4b1fdf['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x400170-0x1,_0x3bc722['author']['name'],_0x207b9a?_0x2095b6['formatDateTime'](_0x207b9a):'',new DOMParser()['parseFromString'](_0x1af1ea,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4468c6(),this['focusTracker']=new _0x4b0c7e(),this['keystrokes']=new _0x1a0162(),this['focusCycler']=new _0x28c7b7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x579d9f=>_0x579d9f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3bc722,this['_localUser']=_0x1aa08b,this['_config']=_0x2095b6,_0x2095b6['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5058bd(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3787ff}=this['_config'];this['commentsListView']=new _0x3787ff(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',_0x3be854=>_0x3be854+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x18a545,_0x4835e6)=>_0x18a545||!!_0x4835e6);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1745c8}=this['_config'],_0x1e4818=new _0x1745c8(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xe8ab94=_0x1e4818['commentInputView'];return _0x1e4818['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xe8ab94,'value',(_0x34183c,_0x39539d,_0x292728)=>!!_0x292728||_0x34183c&&!_0x39539d),_0xe8ab94['on']('submit',(_0x2107f8,_0x25062e)=>{this['fire']('addComment',_0x25062e),_0xe8ab94['editor']['setData']('');}),_0xe8ab94['on']('cancel',()=>this['focus']()),_0xe8ab94['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1e4818;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x37774f,_0x183629,_0x4f0b7e,_0x24ef6e){super(_0x37774f,_0x183629,_0x4f0b7e,_0x24ef6e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x173f30=>_0x173f30&&_0x173f30[0x0]?_0x173f30[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x26c75b,_0x5b644f)=>{let _0x16b1a9='';for(const _0x28c0f0 of _0x26c75b)_0x16b1a9+='<p>'+ls(_0x28c0f0['content'],_0x28c0f0['color'])+'</p>';return _0x5b644f?_0x16b1a9:ti(_0x16b1a9,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x24ef6e['SuggestionView'](_0x37774f,_0x183629,{'formatDateTime':_0x24ef6e['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 _0x35bc3a=this['bindTemplate'],_0x1b738e=[this['suggestionView']];return this['commentsListView']&&_0x1b738e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1b738e['push'](this['commentThreadInputView']),_0x1b738e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x35bc3a['if']('isActive','ck-suggestion-wrapper--active'),_0x35bc3a['to']('type',_0x474a44=>'ck-suggestion-'+_0x474a44),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':_0x35bc3a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1b738e};}['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 _0x1a544d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x443ec4,_0x2628f1,_0x368fab){super(_0x443ec4),this['_model']=_0x2628f1,this['_config']=_0x368fab,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2628f1),this['acceptButton']=this['_createButton'](c(_0x443ec4,'Accept\x20suggestion'),_0x480e97,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x443ec4,'Discard\x20suggestion'),_0x101f8f,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x595140(_0x443ec4,_0x2628f1['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4468c6([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4b0c7e(),this['keystrokes']=new _0x1a0162(),this['focusCycler']=new _0x28c7b7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3f4aa2=>_0x3f4aa2['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x485f3d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x485f3d['innerHTML']=this['description'],this['on']('change:description',(_0x201743,_0x530c52,_0xbcc965)=>{_0x485f3d['innerHTML']=_0xbcc965;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1cafcc=this['bindTemplate'],_0x5cb8e1=[{'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':_0x1cafcc['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1cafcc['to']('authoredAt',_0x1dcc5f=>this['_config']['formatDateTime'](_0x1dcc5f))}]}]},{'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']&&_0x5cb8e1['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':_0x5cb8e1}]};}['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'](_0x49d792,_0x4fe5c3,_0x281733,_0x580e50,_0x2db415){const _0x14d6b9=new _0x5edada(this['locale']);return _0x14d6b9['set']({'label':_0x49d792,'icon':_0x4fe5c3,'tooltip':!0x0,'tooltipPosition':_0x2db415}),_0x14d6b9['extendTemplate']({'attributes':{'class':_0x281733}}),_0x14d6b9['on']('execute',()=>{this['fire'](_0x580e50,this['_model']['id']);}),_0x14d6b9;}['_setupKeyboardNavigation'](){const _0x2de1f7=this['element'];this['keystrokes']['listenTo'](_0x2de1f7);for(const _0x451678 of this['focusables'])this['focusTracker']['add'](_0x451678['element']),this['keystrokes']['listenTo'](_0x451678['element']);this['keystrokes']['set']('enter',(_0x33eb55,_0x1f6746)=>{_0x2de1f7===_0x33eb55['target']&&(this['focusCycler']['focusFirst'](),_0x1f6746());}),this['keystrokes']['set']('esc',(_0x457df7,_0x5787d9)=>{_0x2de1f7!==_0x457df7['target']&&(this['focus'](),_0x5787d9());});}}class d extends _0x5c1181{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4a4901,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45c0ac){super(_0x45c0ac),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xc05fdf=this['editor']['config'];_0xc05fdf['define']('trackChanges.SuggestionThreadView',fe),_0xc05fdf['define']('trackChanges.SuggestionView',we),_0xc05fdf['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xc05fdf['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3564ca,_0x150e51){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x340554,_0x3b5321]of this['_handleControllerBuffer']){const _0x6cf43d=this['_suggestionToController']['has'](_0x340554);_0x6cf43d||_0x3b5321?_0x6cf43d&&_0x3b5321&&this['_destroyController'](_0x340554):this['_initializeController'](_0x340554);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3564ca,_0x150e51);}['init'](){const _0x2e19b6=this['editor'],_0x357c22=_0x2e19b6['plugins']['get']('TrackChangesEditing'),_0x86e2de=_0x2e19b6['plugins']['get']('Annotations'),_0xaa2d6f=_0x2e19b6['plugins']['get']('EditorAnnotations'),_0x531304=_0x2e19b6['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xaa2d6f['addSourceCollector'](()=>{const _0x38fac0=[];for(const [_0x4f62fa,_0xee3ecc]of Array['from'](this['_suggestionToController'])){const _0x16352d=_0x4f62fa['getAllAdjacentSuggestions'](),_0x1b94e6=[];for(const _0x45da47 of _0x16352d){if(!_0x45da47['isInContent'])continue;if(_0x45da47['isMultiRange']){_0x1b94e6['push'](..._0x45da47['getRanges']());continue;}const _0x5a9c4=_0x45da47['getFirstRange']();if(_0x1b94e6['length']>0x0){const _0x2ccf4e=_0x1b94e6[0x0]['getJoined'](_0x5a9c4);if(_0x2ccf4e){_0x1b94e6[0x0]=_0x2ccf4e;continue;}}_0x1b94e6['push'](_0x5a9c4);}_0x38fac0['push']([_0xee3ecc['view'],_0x1b94e6]);}return _0x38fac0;}),this['listenTo'](_0x357c22,'suggestionLoaded',(_0x3b4ee2,_0x4428dd)=>{this['listenTo'](_0x4428dd,'change:previous',(_0x3cbab2,_0x400aad,_0x2c74e7,_0x38b4f5)=>{_0x4428dd['isInContent']&&(null==_0x2c74e7?(this['_updateController'](_0x38b4f5['head']),this['_handleSuggestionControllerDelayed'](_0x4428dd,!0x1)):(this['_updateController'](_0x2c74e7['head']),null==_0x38b4f5&&this['_handleSuggestionControllerDelayed'](_0x4428dd,!0x0)));}),null!==_0x4428dd['previous']?this['_updateController'](_0x4428dd['head']):this['_handleSuggestionControllerDelayed'](_0x4428dd,!0x1);}),this['listenTo'](_0x357c22,'suggestionUnloaded',(_0x5ecc7b,_0x52326d,_0x544ccb)=>{this['stopListening'](_0x52326d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x52326d),this['_suggestionToController']['has'](_0x52326d)&&this['_destroyController'](_0x52326d),_0x544ccb&&this['_updateController'](_0x544ccb['head']);}),this['listenTo'](_0x357c22,'suggestionChanged',(_0x1284c5,_0x2e31ba)=>{this['_updateController'](_0x2e31ba);}),this['listenTo'](_0x86e2de,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x531304,'addComment',(_0x35fa20,{threadId:_0x24d8fc,isFromAdapter:_0x1ed5ff})=>{if(_0x1ed5ff||!_0x357c22['hasSuggestion'](_0x24d8fc))return;const _0x46cf3c=_0x357c22['getSuggestion'](_0x24d8fc);this['_suggestionToController']['get'](_0x46cf3c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x52eaca=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x55f968;for(const _0x2856cf in _0x52eaca){const _0x3f347b=_0x2856cf,_0x3b042d=_0x52eaca[_0x3f347b];if('trackChangesLicenseKeyValid'==_0x3b042d||'trackChangesLicenseKeyInvalid'==_0x3b042d||'trackChangesLicenseKeyExpired'==_0x3b042d||'trackChangesLicenseKeyDomainLimit'==_0x3b042d||'trackChangesLicenseKeyNotAllowed'==_0x3b042d||'trackChangesLicenseKeyEvaluationLimit'==_0x3b042d||'trackChangesLicenseKeyTrialLimit'==_0x3b042d||'trackChangesLicenseKeyUsageLimit'==_0x3b042d){delete _0x52eaca[_0x3f347b],_0x55f968=_0x3b042d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x55f968&&_0x52eaca['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x55f968&&_0x52eaca['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x55f968&&_0x52eaca['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x55f968&&_0x52eaca['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x55f968&&_0x52eaca['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x55f968&&_0x52eaca['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x55f968&&_0x52eaca['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x14a77b=this['editor']['plugins']['get']('Annotations'),_0x41e3bf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51a008=Array['from'](_0x14a77b['activeAnnotations'],_0x562103=>_0x562103['innerView'])['filter'](_0x33946b=>this['_viewToController']['has'](_0x33946b)),_0x51a1e8=[];for(const _0x48dce4 of _0x51a008){const _0x1dc293=this['_viewToController']['get'](_0x48dce4)['model']['getAllAdjacentSuggestions']();_0x51a1e8['push'](..._0x1dc293['reduce']((_0x500d45,_0x4d4ac7)=>[..._0x500d45,..._0x4d4ac7['getMarkerNames']()],[]));}_0x41e3bf['activeMarkers']=_0x51a1e8;}['_addUIComponentsToFactory'](){const _0x53ccec=this['editor'],_0x1c3706=_0x53ccec['locale'],_0x57b994=c(_0x1c3706,'Track\x20changes'),_0x40238e=new _0x1fedff([{'type':'switchbutton','model':new _0x1b419b({'withText':!0x0,'isToggleable':!0x0,'label':_0x57b994,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1b419b({'withText':!0x0,'label':c(_0x1c3706,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1b419b({'withText':!0x0,'label':c(_0x1c3706,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1b419b({'withText':!0x0,'label':c(_0x1c3706,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1b419b({'withText':!0x0,'label':c(_0x1c3706,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x53ccec['plugins']['has']('TrackChangesPreview')&&_0x40238e['addMany']([{'type':'separator'},{'type':'button','model':new _0x1b419b({'withText':!0x0,'label':c(_0x1c3706,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x260dc6 of _0x40238e)if(ke(_0x260dc6)){const _0xdd3b96=_0x53ccec['commands']['get'](_0x260dc6['model']['commandName']);_0x260dc6['model']['bind']('isOn','isEnabled')['to'](_0xdd3b96,'value','isEnabled');}_0x53ccec['ui']['componentFactory']['add']('trackChanges',_0x1799bd=>this['_createToolbarButton'](_0x1799bd,_0x40238e,_0x57b994)),_0x53ccec['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2ea15b=>this['_createMenuBarMenu'](_0x2ea15b,_0x40238e,_0x57b994));}['_createToolbarButton'](_0x41a4cf,_0x561feb,_0xdd47){const _0x271d45=_0x3c0e80(_0x41a4cf,_0x53e4cf),_0x5f0f7=this['editor']['commands']['get']('trackChanges');_0x271d45['buttonView']['set']({'tooltip':_0xdd47,'label':_0xdd47,'icon':_0xaf24d}),_0x271d45['buttonView']['bind']('isOn')['to'](_0x5f0f7,'value'),_0x271d45['buttonView']['on']('execute',()=>{_0x5f0f7['execute'](),this['editor']['editing']['view']['focus']();}),_0x45bee5(_0x271d45,_0x561feb,{'role':'menu'});const _0x1071c2=[];for(const _0x2aa82e of _0x561feb)ke(_0x2aa82e)&&_0x1071c2['push'](this['editor']['commands']['get'](_0x2aa82e['model']['commandName']));const _0x58e51c=_0x271d45['buttonView'];return _0x58e51c['actionView']['unbind']('isEnabled'),_0x58e51c['arrowView']['unbind']('isEnabled'),_0x58e51c['actionView']['bind']('isEnabled')['to'](_0x5f0f7,'isEnabled'),_0x58e51c['arrowView']['bind']('isEnabled')['toMany'](_0x1071c2,'isEnabled',(..._0x121f32)=>_0x121f32['some'](_0x13091b=>_0x13091b)),_0x271d45['on']('execute',_0x362eb2=>{this['editor']['execute'](_0x362eb2['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x271d45;}['_createMenuBarMenu'](_0x475c7b,_0x4c89c8,_0x135964){const _0x4ef2dd=new _0x52108a(_0x475c7b),_0x14bcf5=this['editor']['commands']['get']('trackChanges');_0x4ef2dd['buttonView']['set']({'label':_0x135964,'icon':_0xaf24d});const _0x2c4783=new _0x3b3307(_0x475c7b);for(const _0x4fa81b of _0x4c89c8){if('separator'==_0x4fa81b['type']){_0x2c4783['items']['add'](new _0x1dd12e(_0x475c7b));continue;}const _0x3d70a2=new _0x2891fd(_0x475c7b,_0x4ef2dd),_0x13d3d2=new _0x5ec854(_0x475c7b),_0x2f6696=_0x4fa81b['model'];_0x13d3d2['bind'](...Object['keys'](_0x2f6696))['to'](_0x2f6696),_0x13d3d2['delegate']('execute')['to'](_0x4ef2dd),_0x13d3d2['on']('execute',()=>{this['editor']['execute'](_0x2f6696['commandName']),this['editor']['editing']['view']['focus']();}),_0x3d70a2['children']['add'](_0x13d3d2),_0x2c4783['items']['add'](_0x3d70a2);}return _0x4ef2dd['bind']('isEnabled')['to'](_0x14bcf5,'isEnabled'),_0x4ef2dd['panelView']['children']['add'](_0x2c4783),_0x4ef2dd;}['_initializeController'](_0x5b7fdf){const _0x33c6a7=this['editor'],_0x122ef0=_0x33c6a7['config'],_0x4cf2ac=_0x33c6a7['plugins']['get']('Annotations'),_0x2cb97d=_0x33c6a7['plugins']['get']('CommentsRepository'),_0x50c6fa=_0x33c6a7['plugins']['get']('EditorAnnotations'),_0x1febe1=_0x33c6a7['plugins']['get'](_0x4a4901)['me'],_0xcf30e=_0x122ef0['get']('trackChanges')['SuggestionThreadView'],_0x5d6958=_0x122ef0['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x258c59,CommentThreadInputView:_0x2f8fb2}=_0x33c6a7['plugins']['get']('CommentsUI');let _0x5cef19,_0x408aa7,_0x4597b6;this['_annotationViews']['has'](_0x5b7fdf['id'])?(_0x408aa7=this['_annotationViews']['get'](_0x5b7fdf['id']),_0x5cef19=_0x408aa7['mainView']):(_0x5cef19=new _0xcf30e(_0x33c6a7['locale'],_0x5b7fdf,_0x1febe1,{'disableComments':this['_disableComments'],'editorConfig':{..._0x122ef0['get']('comments.editorConfig'),'licenseKey':_0x122ef0['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x122ef0['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x122ef0['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x122ef0['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4af0d7(_0x122ef0['get']('locale'),_0x33c6a7['locale']),'CommentView':_0x122ef0['get']('comments')['CommentView'],'CommentsListView':_0x258c59,'CommentThreadInputView':_0x2f8fb2,'SuggestionView':_0x5d6958}),_0x5cef19['suggestionView']['acceptButton']['on']('execute',()=>{_0x33c6a7['editing']['view']['focus']();}),_0x5cef19['suggestionView']['discardButton']['on']('execute',()=>{_0x33c6a7['editing']['view']['focus']();}),_0x408aa7=_0x4cf2ac['createAnnotationView'](this['editor']['locale'],_0x5cef19),_0x408aa7['bind']('isDirty')['to'](_0x5cef19,'isDirty'),_0x408aa7['bind']('length')['to'](_0x5cef19),_0x408aa7['bind']('type')['to'](_0x5cef19,'type',_0x341f35=>'suggestion-'+_0x341f35),_0x5cef19['on']('escape',()=>{_0x4597b6['fire']('escape');}),this['_annotationViews']['set'](_0x5b7fdf['id'],_0x408aa7));const _0x4357c2=_0x2cb97d['createCommentThreadController'](_0x5b7fdf['commentThread'],_0x5cef19),_0x9a2a7d=new pe(_0x33c6a7,_0x5b7fdf,_0x5cef19,_0x4357c2),_0x42a7c5=_0x5b7fdf['getAllAdjacentSuggestions']()['filter'](_0x193d37=>_0x193d37['isInContent']);_0x5cef19['descriptionParts']=_0x33c6a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x42a7c5),this['_suggestionToController']['set'](_0x5b7fdf,_0x9a2a7d),this['_viewToController']['set'](_0x5cef19,_0x9a2a7d),_0x4597b6=_0x4cf2ac['createAnnotation']({'view':_0x408aa7,'target':()=>{const _0x10e788=[],_0x41ccf9=_0x5b7fdf['getAllAdjacentSuggestions']()['filter'](_0x243168=>_0x243168['isInContent']);for(const _0x43bb48 of _0x41ccf9)_0x10e788['push'](..._0x43bb48['getMarkers']());return _0x1e60ff(_0x33c6a7['editing'],_0x10e788);},'type':()=>'suggestion-'+_0x9a2a7d['view']['type']}),_0x2cb97d['_bindAnnotationToEditors'](_0x5cef19,_0x4597b6),_0x4cf2ac['add'](_0x4597b6),_0x50c6fa['registerAnnotation'](_0x4597b6);}['_destroyController'](_0x57718b){const _0x545737=this['editor']['plugins']['get']('CommentsRepository'),_0x2d2821=this['editor']['plugins']['get']('Annotations'),_0xc03532=this['_suggestionToController']['get'](_0x57718b),_0x43d1d3=_0xc03532['view'],_0x32e894=_0x2d2821['getByInnerView'](_0x43d1d3);_0x545737['_unbindEditors'](_0x43d1d3),_0x32e894&&_0x2d2821['remove'](_0x32e894),this['_suggestionToController']['delete'](_0x57718b),this['_viewToController']['delete'](_0x43d1d3),_0xc03532['destroy']();}['_updateController'](_0x3abd3f){if(!_0x3abd3f['isInContent']||!this['_suggestionToController']['has'](_0x3abd3f))return;const _0x4f3521=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd13dad=this['_suggestionToController']['get'](_0x3abd3f),_0x46d017=_0x3abd3f['getAllAdjacentSuggestions']();_0xd13dad['view']['descriptionParts']=_0x4f3521['descriptionFactory']['getDescriptions'](_0x46d017);}['destroy'](){for(const _0x9b0dd of this['_suggestionToController']['keys']())this['_destroyController'](_0x9b0dd);for(const _0x31da68 of this['_annotationViews']['values']())_0x31da68['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x565010){return'model'in _0x565010;}class k extends _0x5c1181{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x23f33d){this['editor']['plugins']['get'](p)['adapter']=_0x23f33d;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x116c58){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x116c58);}['getSuggestions']({skipNotAttached:_0x3bf23e=!0x1,toJSON:_0x370545=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3bf23e,'toJSON':_0x370545});}['getSuggestion'](_0x60048f){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x60048f);}}const w=['Pagination'];class T extends _0x5c1181{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x54fa6e=this['editor'];if(_0x54fa6e['config']['define']('trackChangesData.editorCreator',_0x315b1d=>{const _0x47a972=_0x54fa6e['model']['document']['getRootNames']()['reduce']((_0x1b1887,_0x115d72)=>(_0x1b1887[_0x115d72]='',_0x1b1887),{});return _0x54fa6e['constructor']['create'](_0x47a972,_0x315b1d);}),'function'!=typeof _0x54fa6e['config']['get']('trackChangesData')['editorCreator'])throw new _0x27ba3f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x538908){return N(this['editor'],!0x0,_0x538908);}['getDataWithDiscardedSuggestions'](_0x5d089d){return N(this['editor'],!0x1,_0x5d089d);}}class D extends _0x5c1181{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2bfb6c){function _0x3d3f8a(_0x2588f4){return _0x2588f4['map'](_0x3d3a05=>String['fromCharCode'](_0x3d3a05))['join']('');}super(_0x2bfb6c),this['result']='end',_0x2bfb6c[_0x3d3f8a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d3f8a([0x76,0x69,0x65,0x77])][_0x3d3f8a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d3f8a([0x61,0x75,0x74,0x6f]),_0x2bfb6c[_0x3d3f8a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3d3f8a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d3f8a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3d3f8a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3d3f8a([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(_0x149913){return void 0x0!==_0x149913['getRootsAttributes'];}async function N(_0x85fd99,_0x35fd29,_0x3327f7){const _0x138adf=_0x420930(_0x85fd99,w);_0x138adf['plugins']['push'](p,D),_0x138adf['rootsAttributes']=Ge(_0x85fd99)?_0x85fd99['getRootsAttributes']():void 0x0;const _0x400d2c=document['createDocumentFragment'](),_0xc8168a=_0x85fd99['config']['get']('trackChangesData')['editorCreator'],_0x50cd46=await _0xc8168a(_0x138adf,()=>function(_0x3de939){const _0x54d41a=document['createElement']('div');return _0x3de939['appendChild'](_0x54d41a),_0x54d41a;}(_0x400d2c));!function(_0x29e257,_0x59a484){const _0x318496=_0x29e257['model']['document']['getRootNames']()['reduce']((_0xc66e20,_0x41f008)=>(_0xc66e20[_0x41f008]=_0x29e257['data']['get']({'rootName':_0x41f008}),_0xc66e20),{}),_0x3cbce4=_0x29e257['plugins']['get']('Users')['users']['map'](_0x52977c=>({'id':_0x52977c['id'],'name':_0x52977c['name']})),_0x4ef197=_0x29e257['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xa8c8db=_0x29e257['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x16fe01=_0x59a484['plugins']['get']('Users'),_0x1d5167=_0x59a484['plugins']['get']('TrackChangesEditing'),_0x4cdf70=_0x59a484['plugins']['get']('CommentsRepository');for(const _0x38eb30 of _0x4cdf70['getCommentThreads']())_0x38eb30['remove']();for(const _0x4e99ef of _0x3cbce4)_0x16fe01['getUser'](_0x4e99ef['id'])||_0x16fe01['addUser'](_0x4e99ef);_0x16fe01['me']||_0x16fe01['useAnonymousUser']();for(const _0x56e03f of _0xa8c8db)_0x4cdf70['addCommentThread'](_0x56e03f);for(const _0x34c416 of _0x4ef197)_0x1d5167['addSuggestionData'](_0x34c416);_0x59a484['data']['set'](_0x318496);}(_0x85fd99,_0x50cd46),_0x50cd46['execute'](_0x35fd29?'acceptAllSuggestions':'discardAllSuggestions');const _0x1a48b8=Ge(_0x50cd46)?_0x50cd46['getFullData'](_0x3327f7):_0x50cd46['data']['get'](_0x3327f7);return await _0x50cd46['destroy'](),_0x1a48b8;}class Me extends _0x1a544d{['options'];constructor(_0x3ca307,_0x5738d8){super(_0x3ca307),this['options']=_0x5738d8,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'](_0x84d0e,_0x3a02c2){if(!this['element'])return;const _0x4abf17=[];for(const [_0x15d7c9,_0x53634c]of _0x84d0e){const _0x51548f=document['createElement']('div');_0x51548f['setAttribute']('data-ck-root-name',_0x15d7c9),_0x51548f['className']=_0x53634c['classes']+'\x20ck-track-changes-preview__root-container',_0x51548f['innerHTML']=_0x53634c['content'],_0x4abf17['push'](_0x51548f);}_0x3a02c2(this['element'],_0x4abf17),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x1b6f03{constructor(_0x152558){super(_0x152558),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x40e4c6=this['editor'],_0x1eb686=_0x40e4c6['locale'],_0x245e82=_0x40e4c6['plugins']['get']('Dialog');let _0x1accae;const _0x1c42ad=function(_0x58e8a3){const _0x5003b3={};if('editables'in _0x58e8a3['ui']['view']){for(const [_0x4ef1a4,_0x37ad86]of Object['entries'](_0x58e8a3['ui']['view']['editables']))_0x5003b3[_0x4ef1a4]=_0x37ad86['element'];}else _0x5003b3[_0x58e8a3['model']['document']['getRootNames']()[0x0]]=_0x58e8a3['ui']['view']['editable']['element'];return _0x5003b3;}(_0x40e4c6),_0x33e44c=function(_0x15b11c){let _0x4f84b3=0x0;for(const _0x23b1af of Object['values'](_0x15b11c))_0x4f84b3=Math['max'](_0x4f84b3,_0x23b1af['getBoundingClientRect']()['width']);let _0x20ad4e=0x0;for(const _0x175945 of Object['values'](_0x15b11c))_0x20ad4e+=_0x175945['getBoundingClientRect']()['height'];const _0x5768c8=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x300a84=Math['min'](_0x20ad4e,_0x5768c8);return{'width':_0x4f84b3,'height':_0x300a84};}(_0x1c42ad);_0x245e82['show']({'id':'finalContentPreview','title':c(_0x1eb686,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1eb686,{'dialogRects':_0x33e44c}),'onHide':()=>{_0x1accae['detachFromDom']();},'onShow':()=>{_0x40e4c6['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x540a17=>{const _0x2d30ab=this['_standarizeRootsData'](_0x540a17,_0x40e4c6,_0x1c42ad);_0x245e82['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2d30ab,_0x40e4c6['config']['get']('trackChanges.preview.renderFunction'));}),_0x1accae=new _0x4f698a(_0x1eb686,[_0x245e82['view']]),_0x1accae['attachToDom'](),_0x1accae['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x40e4c6['once']('destroy',()=>{_0x1accae['detachFromDom']();});const _0x3753ab=_0x245e82['view']['headerView']['class'];_0x245e82['view']['headerView']['class']=_0x3753ab?_0x3753ab+'\x20ck-reset_all':'ck-reset_all',_0x245e82['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x245e82['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3fc1c9=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4ddf51=_0x3fc1c9['previewMode'],_0x471d66={};if('$labels'===_0x4ddf51){for(const _0x168c43 of _0x3fc1c9['getMergeFieldsIds']())_0x471d66[_0x168c43]=_0x3fc1c9['getLabel'](_0x168c43)||_0x168c43;}else{const _0x38c0a0='$defaultValues'===_0x4ddf51?_0x3fc1c9['getDefaultValues']():_0x3fc1c9['getDataSetValues'](_0x4ddf51,!0x0);for(const _0x5c1175 of Object['entries'](_0x38c0a0)){const [_0x46f934,_0x3bf578]=_0x5c1175;_0x471d66[_0x46f934]=null!==_0x3bf578?_0x3bf578:_0x3fc1c9['getLabel'](_0x46f934)||_0x46f934;}}return{'mergeFieldsData':_0x471d66};}['_standarizeRootsData'](_0x1a6b75,_0x3fde72,_0x5828dc){let _0x3309f6;if('string'==typeof _0x1a6b75){const _0x3e750d=_0x3fde72['model']['document']['getRootNames']()[0x0];_0x3309f6={[_0x3e750d]:_0x1a6b75};}else _0x3309f6=_0x1a6b75;const _0x414602=this['_fixMediaEmbeds'](_0x3309f6,_0x3fde72),_0x12eaa1=function(_0x3fd53c,_0x4c9857){for(const [_0x3c23bd,_0x376160]of _0x3fd53c)_0x376160['classes']=_0x4c9857[_0x3c23bd]['classList']['value']['replace']('ck-focused','');return _0x3fd53c;}(this['_sortRoots'](_0x3fde72)['reduce']((_0x16dc4f,_0x2d891a)=>(_0x16dc4f['push']([_0x2d891a,{'content':_0x414602[_0x2d891a],'classes':''}]),_0x16dc4f),[]),_0x5828dc);return _0x12eaa1;}['_fixMediaEmbeds'](_0x1c1bce,_0x1824c0){if(!_0x1824c0['plugins']['has']('MediaEmbedEditing'))return _0x1c1bce;const _0x2190d7=_0x1824c0['plugins']['get']('MediaEmbedEditing');for(const [_0x1bda9c,_0x3b2df3]of Object['entries'](_0x1c1bce)){const _0x4695e7=document['createElement']('div');_0x4695e7['innerHTML']=_0x3b2df3,(_0x4695e7['querySelectorAll']('figure.media')['forEach'](_0x559715=>{const _0x1e07f6=_0x559715['querySelector']('oembed');if(_0x1e07f6){const _0x2b3dd7=_0x1e07f6['getAttribute']('url');if(_0x2b3dd7){const _0x2f77b6=_0x2190d7['registry']['getMediaViewElement'](new _0x20bc2a(_0x1824c0['editing']['view']['document']),_0x2b3dd7,{'elementName':'','renderForEditingView':!0x0}),_0x197689=document['createElement']('div');_0x197689['classList']['add']('ck-media__wrapper'),_0x2f77b6['render'](_0x197689,_0x1824c0['editing']['view']['domConverter']),_0x1e07f6['replaceWith'](_0x197689);}}}),_0x1c1bce[_0x1bda9c]=_0x4695e7['innerHTML']);}return _0x1c1bce;}['_sortRoots'](_0x432acd){if(!function(_0x27d1fe){return void 0x0!==_0x27d1fe['getRootsAttributes'];}(_0x432acd))return _0x432acd['model']['document']['getRootNames']();const _0x1a4181=[],_0x43d9da=new Map();for(const _0x4323dc of _0x432acd['model']['document']['getRootNames']()){const _0x3e6929=_0x432acd['editing']['view']['getDomRoot'](_0x4323dc)['getClientRects']()['item'](0x0);_0x1a4181['push'](_0x4323dc),_0x43d9da['set'](_0x4323dc,_0x3e6929);}return _0x1a4181['sort']((_0x50d1ad,_0x50123b)=>{const _0x1e6541=_0x43d9da['get'](_0x50d1ad),_0x33a75d=_0x43d9da['get'](_0x50123b);return _0x1e6541['y']-_0x33a75d['y']||_0x1e6541['x']-_0x33a75d['x'];}),_0x1a4181;}}class te extends _0x5c1181{static get['requires'](){return[T,_0x236eb9];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e8994){super(_0x3e8994),_0x3e8994['commands']['add']('previewFinalContent',new re(this['editor'])),_0x3e8994['config']['define']('trackChanges.preview.renderFunction',(_0x2e934b,_0x3ddb65)=>{for(const _0x280269 of _0x3ddb65)_0x2e934b['appendChild'](_0x280269);});}}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};
|