@ckeditor/ckeditor5-track-changes 45.1.0-alpha.2 → 45.1.0-alpha.3
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
|
-
_0x311d1a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4e0240,_0x3fc569){super(),this['id']=_0x3fc569['id'],this['type']=_0x3fc569['type'],this['subType']=_0x3fc569['subType']||null,this['author']=_0x3fc569['author'],this['creator']=_0x3fc569['creator']||_0x3fc569['author'],this['isExternal']=Boolean(_0x3fc569['attributes']&&_0x3fc569['attributes']['@external']),this['data']=null,this['_model']=_0x4e0240,this['_onAccept']=_0x3fc569['onAccept'],this['_onDiscard']=_0x3fc569['onDiscard'],this['_onAttributesChange']=_0x3fc569['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3fc569['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 _0xb42a50=this;for(;_0xb42a50['previous'];)_0xb42a50=_0xb42a50['previous'];return _0xb42a50;}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'](_0x3f17ed){this['_markerNames']['add'](_0x3f17ed);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2cff3f=>this['_model']['markers']['get'](_0x2cff3f))['filter'](_0x19dd9d=>_0x19dd9d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x505b24=>{for(const _0x453e1d of this['getMarkers']())_0x505b24['removeMarker'](_0x453e1d);}),this['_markerNames']['clear']();}['removeMarker'](_0x4832b9){this['_model']['change'](_0x28a000=>{_0x28a000['removeMarker'](_0x4832b9);}),this['_markerNames']['delete'](_0x4832b9);}['addRange'](_0x32e934){const _0x15d7d1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x15d7d1),this['_model']['change'](_0x534575=>{_0x534575['addMarker'](_0x15d7d1,{'range':_0x32e934,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2a80f6){for(const _0x49bad5 of this['getRanges']())if(_0x49bad5['isIntersecting'](_0x2a80f6))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2ec2e7=>_0x2ec2e7['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3a6e6f,_0x576a68)=>[..._0x3a6e6f,..._0x576a68['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1c28bd=this['getRanges']();if(0x1!=_0x1c28bd['length'])return null;const _0x1ef986=_0x1c28bd[0x0],_0x56a42b=_0x1ef986['start']['nodeAfter'],_0x3ef6a0=_0x1ef986['end']['nodeBefore'];return _0x56a42b instanceof _0x58b344?_0x56a42b!=_0x3ef6a0?null:_0x56a42b: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 _0x4cf782=[];let _0x3be9dd=this['head'];for(;_0x3be9dd;)_0x4cf782['push'](_0x3be9dd),_0x3be9dd=_0x3be9dd['next'];return _0x4cf782;}['setAttribute'](_0x1ad52e,_0x21dec1){const _0x257fd9=_0x4e8e33(this['attributes']);_0x11e46c(_0x257fd9,_0x1ad52e,_0x21dec1),_0x48064e(_0x257fd9,this['attributes'])||(this['attributes']=_0x257fd9,this['_onAttributesChange'](_0x257fd9));}['removeAttribute'](_0x87281c){const _0x29ca08=_0x4e8e33(this['attributes']);_0x32b6c0(_0x29ca08,_0x87281c),_0x48064e(_0x29ca08,this['attributes'])||(this['attributes']=_0x29ca08,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 _0x32b8bc()['substr'](0x1,0x5);}}function c(_0x2b47f9,_0x3519ff,_0x3273eb){const _0x33d982=_0x2b47f9['t'],t=_0x2b47f9['t'];switch(_0x3519ff){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',_0x3273eb);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3273eb);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3273eb);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3273eb);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3273eb);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',_0x3273eb);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3273eb);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',_0x3273eb);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3273eb);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3273eb);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3273eb);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3273eb);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3273eb);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3273eb);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3273eb);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3273eb);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3273eb);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3273eb);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3273eb);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3273eb);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3273eb);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3273eb);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3273eb);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3273eb);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3273eb);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'},_0x3273eb);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3273eb);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3273eb);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3273eb);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3273eb);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3273eb);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3273eb);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3273eb);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'},_0x3273eb);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3273eb);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3273eb);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3273eb);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3273eb);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'},_0x3273eb);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3273eb);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'},_0x3273eb);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'},_0x3273eb);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3273eb);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'},_0x3273eb);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3273eb);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'},_0x3273eb);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3273eb);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3273eb);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'},_0x3273eb);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3273eb);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 _0x33d982({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3273eb);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x33d982({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3273eb);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3273eb);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'},_0x3273eb);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'},_0x3273eb);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'},_0x3273eb);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3519ff;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3ac808,_0x4de412){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3ac808,this['_locale']=_0x4de412;}['getDescriptions'](_0x2ae3ba){const _0x1e7e76=[],_0x325cba=new Set(),_0x5c4efe=new Set();for(let _0x188a35=0x0;_0x188a35<_0x2ae3ba['length'];_0x188a35++){const _0x5e2996=_0x2ae3ba[_0x188a35];if(!_0x5e2996['isInContent'])continue;const _0x3ab99a=this['_handleCustomCallbackDescription'](_0x5e2996);if(_0x3ab99a){if(null!=_0x5e2996['subType']){if(_0x325cba['has'](_0x5e2996['subType']))continue;_0x325cba['add'](_0x5e2996['subType']);}_0x1e7e76['push'](_0x3ab99a);}else{if('attribute'!=_0x5e2996['type'])'insertion'!=_0x5e2996['type']&&'deletion'!=_0x5e2996['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1e7e76,_0x5e2996,_0x2ae3ba[_0x188a35+0x1]);else{const _0x205c4d=_0x5e2996['data']['key'];if(_0x5c4efe['has'](_0x205c4d))continue;_0x5c4efe['add'](_0x5e2996['data']['key']),_0x205c4d==u?this['_handleRenameSuggestionDescription'](_0x1e7e76,_0x5e2996):this['_handleAttributeSuggestionDescription'](_0x1e7e76,_0x5e2996);}}}return this['_resolveDescriptionItems'](_0x1e7e76);}['registerDescriptionCallback'](_0x3409c8){this['_customCallbacks']['push'](_0x3409c8);}['registerElementLabel'](_0x2ce795,_0x274048,_0x424fe4=_0x1180b2['normal']){'function'==typeof _0x2ce795?_0x530ca3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2ce795,'label':_0x274048,'priority':_0x424fe4}):this['_itemLabels']['set'](_0x2ce795,_0x274048);}['registerAttributeLabel'](_0x4102f3,_0x3ad770){this['_attributeLabels']['set'](_0x4102f3,_0x3ad770);}['getItemLabel'](_0x53194b,_0x45c82d=0x1){let _0x5e04ab;for(const _0x5ae785 of this['_itemLabelsCallbacks'])if(_0x5ae785['matchingCallback'](_0x53194b)){_0x5e04ab=_0x5ae785['label'];break;}return _0x5e04ab||(_0x5e04ab=this['_itemLabels']['get'](_0x53194b['name'])),_0x5e04ab?_0x5e04ab(_0x45c82d):0x1!==_0x45c82d?_0x45c82d+'\x20'+_0x53194b['name']+'s':''+_0x53194b['name'];}['_addDescriptionItems'](_0x5d6fd2,_0x59b652){const _0xf00b3f=_0x59b652['getFirstRange']()['getWalker'](),_0x3218c6='insertion'==_0x59b652['type']?'add':'remove';for(const _0x4f4631 of _0xf00b3f){const _0x43b4b6=_0x4f4631['item'],_0x3534ad=_0x5d6fd2[_0x5d6fd2['length']-0x1];if(_0x43b4b6['is']('$textProxy'))_0x3534ad&&_0x3534ad['type']['indexOf']('Container')>-0x1&&_0x5d6fd2['pop'](),_0x3534ad&&'text'==_0x3534ad['type']?_0x3534ad[_0x3218c6]+=_0x43b4b6['data']:_0x5d6fd2['push']({'type':'text','add':'add'==_0x3218c6?_0x43b4b6['data']:'','remove':'remove'==_0x3218c6?_0x43b4b6['data']:''});else{if(this['_schema']['isObject'](_0x43b4b6)){const _0x171d46=_0x43b4b6;if(_0x3534ad&&_0x3534ad['type']['indexOf']('Container')>-0x1&&_0x5d6fd2['pop'](),'elementEnd'==_0x4f4631['type'])continue;_0x3534ad&&_0x3534ad['type']==_0x3218c6+'Object'&&_0x3534ad['element']['name']==_0x171d46['name']?_0x3534ad['quantity']++:_0x5d6fd2['push']({'type':_0x3218c6+'Object','element':_0x171d46,'quantity':0x1}),_0xf00b3f['skip'](_0x72a79e=>!('elementEnd'==_0x72a79e['type']&&_0x72a79e['item']==_0x43b4b6));}else{if(this['_schema']['checkChild'](_0x43b4b6,'$text')||_0x43b4b6['is']('element','softBreak')){const _0x357505=_0x43b4b6;if('add'==_0x3218c6&&'elementStart'==_0x4f4631['type']||'remove'==_0x3218c6&&'elementEnd'==_0x4f4631['type'])continue;if(_0x3534ad&&-0x1==_0x3534ad['type']['indexOf']('Container')){'text'==_0x3534ad['type']&&(_0x3534ad[_0x3218c6]+='\x0a');continue;}let _0x2c5214;if(_0x2c5214='add'==_0x3218c6?_0x357505['nextSibling']&&!this['_schema']['isObject'](_0x357505['nextSibling'])?_0x357505['nextSibling']:null:_0x357505['previousSibling']&&!this['_schema']['isObject'](_0x357505['previousSibling'])?_0x357505['previousSibling']:null,_0x357505['isEmpty']||_0x2c5214&&_0x2c5214['isEmpty']){const _0xef8833=_0x2c5214&&_0x2c5214['isEmpty']?_0x2c5214:_0x357505;_0x3534ad&&_0x3534ad['type']==_0x3218c6+'EmptyContainer'&&_0x3534ad['element']['name']==_0xef8833['name']?_0x3534ad['quantity']++:_0x5d6fd2['push']({'type':_0x3218c6+'EmptyContainer','element':_0xef8833,'quantity':0x1});}else _0x5d6fd2['push']({'type':_0x3218c6+'Container','element':_0x357505});}}}}}['_resolveDescriptionItems'](_0x53ddb3){const _0x57fecc=this['_locale'],_0x376b15=[],_0x2a98f3=[],_0x4a524f=[];for(const _0xf8b708 of _0x53ddb3)switch(_0xf8b708['type']){case'text':if(_0xf8b708['add']=_0xf8b708['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xf8b708['remove']=_0xf8b708['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xf8b708['add']&&''!=_0xf8b708['remove']){_0x376b15['push']({'type':'replace','content':c(_0x57fecc,'REPLACE_TEXT',['\x22'+_0xf8b708['remove']+'\x22','\x22'+_0xf8b708['add']+'\x22'])});continue;}if(null!=_0xf8b708['add']['match'](/^ +$/)){_0x376b15['push']({'type':'insertion','content':c(_0x57fecc,'*Insert:*\x20%0',c(_0x57fecc,'ELEMENT_SPACE',_0xf8b708['add']['length']))});continue;}if(null!=_0xf8b708['remove']['match'](/^ +$/)){_0x376b15['push']({'type':'deletion','content':c(_0x57fecc,'*Remove:*\x20%0',c(_0x57fecc,'ELEMENT_SPACE',_0xf8b708['remove']['length']))});continue;}if(''!=_0xf8b708['add']){_0x376b15['push']({'type':'insertion','content':c(_0x57fecc,'*Insert:*\x20%0','\x22'+_0xf8b708['add']+'\x22')});continue;}_0x376b15['push']({'type':'deletion','content':c(_0x57fecc,'*Remove:*\x20%0','\x22'+_0xf8b708['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x376b15['push']({'type':'insertion','content':c(_0x57fecc,'*Insert:*\x20%0',this['getItemLabel'](_0xf8b708['element'],_0xf8b708['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x376b15['push']({'type':'deletion','content':c(_0x57fecc,'*Remove:*\x20%0',this['getItemLabel'](_0xf8b708['element'],_0xf8b708['quantity']))});continue;case'addContainer':_0x376b15['push']({'type':'insertion','content':c(_0x57fecc,'*Split:*\x20%0',this['getItemLabel'](_0xf8b708['element'],_0xf8b708['quantity']))});continue;case'removeContainer':_0x376b15['push']({'type':'deletion','content':c(_0x57fecc,'*Merge:*\x20%0',this['getItemLabel'](_0xf8b708['element'],_0xf8b708['quantity']))});continue;case'addFormat':_0x2a98f3['push'](_0xf8b708['key']);continue;case'removeFormat':_0x4a524f['push'](_0xf8b708['key']);continue;default:_0x376b15['push'](_0xf8b708);}if(_0x2a98f3['length']){const _0x29c906=_0x2a98f3['map'](_0x14dae3=>this['_attributeLabels']['has'](_0x14dae3)?this['_attributeLabels']['get'](_0x14dae3):_0x14dae3)['join'](',\x20');_0x376b15['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x29c906)});}if(_0x4a524f['length']){const _0x46507e=_0x4a524f['map'](_0x263bd0=>this['_attributeLabels']['has'](_0x263bd0)?this['_attributeLabels']['get'](_0x263bd0):_0x263bd0)['join'](',\x20');_0x376b15['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x46507e)});}return _0x376b15;}['_handleCustomCallbackDescription'](_0x585ae6){for(const _0x32cd0e of this['_customCallbacks']){const _0x4f17f9=_0x32cd0e(_0x585ae6);if(_0x4f17f9&&'type'in _0x4f17f9)return _0x4f17f9;}}['_handleAttributeSuggestionDescription'](_0x16e3a9,_0x3e30e4){const _0x196fb2=_0x3e30e4['data'],_0x104db5=void 0x0===_0x196fb2['newValue']?'removeFormat':'addFormat';_0x16e3a9['push']({'type':_0x104db5,'key':_0x196fb2['key']});}['_handleRenameSuggestionDescription'](_0x23e6b9,_0x5d4775){_0x23e6b9['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5d4775['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2c85de,_0x4a31c8,_0x57ee7a){if(this['_addDescriptionItems'](_0x2c85de,_0x4a31c8),_0x57ee7a&&_0x57ee7a['getFirstRange']()&&!_0x4a31c8['getFirstRange']()['end']['isEqual'](_0x57ee7a['getFirstRange']()['start'])){const _0x22c52b=_0x2c85de[_0x2c85de['length']-0x1],_0x91a79d='insertion'==_0x4a31c8['type']?'add':'remove';_0x22c52b&&'text'==_0x22c52b['type']&&(_0x22c52b[_0x91a79d]+='\x0a');}}}class U extends _0x3e2428{['afterInit'](){const _0x232b09=this['editor'],_0x13cbcf=_0x232b09['plugins']['get']('TrackChangesEditing');_0x232b09['commands']['get']('showAIAssistant')&&_0x13cbcf['enableCommand']('showAIAssistant');}}class V extends _0x3e2428{['afterInit'](){const _0x264742=this['editor'],_0x2b0bf6=_0x264742['locale'];if(!_0x264742['plugins']['has']('AlignmentEditing'))return;const _0x2b33df=_0x264742['plugins']['get']('TrackChangesEditing');_0x2b33df['enableDefaultAttributesIntegration']('alignment'),_0x2b33df['registerBlockAttribute']('alignment'),_0x2b33df['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x2b0bf6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41a3de=this['editor'],_0x465ce3=_0x41a3de['locale'];_0x41a3de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5769a5=>{if('formatBlock'!=_0x5769a5['type'])return;const {data:_0xf16875}=_0x5769a5;if(_0xf16875&&'alignment'==_0xf16875['commandName']){const _0x932f33=_0xf16875['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x465ce3,'*Format:*\x20%0',function(_0x7c230d){switch(_0x7c230d){case'left':return c(_0x465ce3,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x465ce3,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x465ce3,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x465ce3,'FORMAT_JUSTIFY_TEXT');}}(_0x932f33))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x3e2428{['afterInit'](){const _0x4cc6bc=this['editor'],_0xb4d5b5=_0x4cc6bc['plugins']['get']('TrackChangesEditing'),_0x9244f0=_0x4cc6bc['locale'];for(const _0x1ce84e of Zt){if(!_0x4cc6bc['plugins']['has'](_0x1ce84e))continue;const _0x23ac69=_0x1ce84e['slice'](0x0,-0x7)['toLowerCase'](),_0x3d4550='FORMAT_'+_0x23ac69['toUpperCase']();_0xb4d5b5['enableDefaultAttributesIntegration'](_0x23ac69),_0xb4d5b5['registerInlineAttribute'](_0x23ac69),_0xb4d5b5['descriptionFactory']['registerAttributeLabel'](_0x23ac69,c(_0x9244f0,_0x3d4550));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bc1f6=this['editor'],_0x27ec28=_0x4bc1f6['locale'],_0x39aed3=_0x4bc1f6['plugins']['get']('TrackChangesEditing');function _0x37ad44(_0x216e25,_0x8445d4){_0x39aed3['descriptionFactory']['registerDescriptionCallback'](_0x35018d=>{if('formatInline'!=_0x35018d['type'])return;const {data:_0x6371}=_0x35018d;return _0x6371&&_0x6371['commandName']===_0x216e25?_0x6371['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x27ec28,'*Format:*\x20%0',_0x8445d4)}:{'type':'format','content':c(_0x27ec28,'*Remove\x20format:*\x20%0',_0x8445d4)}:void 0x0;});}_0x37ad44('bold',c(_0x27ec28,'FORMAT_BOLD')),_0x37ad44('italic',c(_0x27ec28,'FORMAT_ITALIC')),_0x37ad44('underline',c(_0x27ec28,'FORMAT_UNDERLINE')),_0x37ad44('code',c(_0x27ec28,'FORMAT_CODE')),_0x37ad44('strikethrough',c(_0x27ec28,'FORMAT_STRIKETHROUGH')),_0x37ad44('subscript',c(_0x27ec28,'FORMAT_SUBSCRIPT')),_0x37ad44('superscript',c(_0x27ec28,'FORMAT_SUPERSCRIPT'));}}class G extends _0x3e2428{['afterInit'](){const _0x2ab709=this['editor'],_0x40d1cd=_0x2ab709['locale'];if(!_0x2ab709['plugins']['has']('BlockQuoteEditing'))return;const _0x5419ef=_0x2ab709['plugins']['get']('TrackChangesEditing'),_0x9fb5c2=this['editor']['commands']['get']('blockQuote');_0x5419ef['enableCommand']('blockQuote',(_0x19b64a,_0xfb482e={})=>{const _0xc279c4=this['editor']['model']['document']['selection'],_0xec11c1=_0xfb482e&&void 0x0!==_0xfb482e['forceValue']?_0xfb482e['forceValue']:!_0x9fb5c2['value'];let _0x276766=[];if(_0xec11c1){const _0x568cce=Array['from'](_0xc279c4['getSelectedBlocks']())['filter'](_0x540de=>oo(_0x540de)||function(_0x18f200,_0x360228){const _0x1c5c12=_0x360228['checkChild'](_0x18f200['parent'],'blockQuote'),_0x1ed780=_0x360228['checkChild'](['$root','blockQuote'],_0x18f200);return _0x1c5c12&&_0x1ed780;}(_0x540de,this['editor']['model']['schema']));_0x276766=to(_0x568cce,_0x2ab709['model']);}else{const _0x54b5f7=Array['from'](_0xc279c4['getSelectedBlocks']())['filter'](_0x57bba1=>oo(_0x57bba1));_0x276766=to(_0x54b5f7,_0x2ab709['model']);}_0x2ab709['model']['change'](()=>{for(const _0x262ecb of _0x276766)_0x5419ef['markBlockFormat'](_0x262ecb,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xec11c1}]});});}),_0x5419ef['descriptionFactory']['registerDescriptionCallback'](_0x58919f=>{const {data:_0x146b60}=_0x58919f;if(_0x146b60&&'blockQuote'==_0x146b60['commandName']){const _0x224780=c(_0x40d1cd,'ELEMENT_BLOCK_QUOTE');return _0x146b60['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x40d1cd,'*Set\x20format:*\x20%0',_0x224780)}:{'type':'format','content':c(_0x40d1cd,'*Remove\x20format:*\x20%0',_0x224780)};}});}}function oo(_0x2049b9){return'blockQuote'==_0x2049b9['parent']['name'];}class L extends _0x3e2428{['afterInit'](){const _0x1638f0=this['editor'],_0x221361=_0x1638f0['locale'],_0x2e077f=_0x1638f0['plugins']['get']('TrackChangesEditing');_0x1638f0['plugins']['has']('BookmarkEditing')&&(_0x2e077f['enableCommand']('insertBookmark'),_0x2e077f['enableDefaultAttributesIntegration']('updateBookmark'),_0x2e077f['registerBlockAttribute']('bookmarkId'),_0x2e077f['descriptionFactory']['registerDescriptionCallback'](_0x4520b4=>{if('insertion'!=_0x4520b4['type']&&'deletion'!=_0x4520b4['type']&&'attribute'!=_0x4520b4['type'])return;const _0x24b998=_0x4520b4['getContainedElement']();if(null==_0x24b998)return;if(!_0x24b998['is']('element','bookmark'))return;const _0x5de2b8=_0x24b998['getAttribute']('bookmarkId');if('insertion'==_0x4520b4['type'])return{'type':'insertion','content':c(_0x221361,'*Insert:*\x20%0','\x22'+_0x5de2b8+'\x22\x20'+c(_0x221361,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4520b4['type'])return{'type':'deletion','content':c(_0x221361,'*Remove:*\x20%0','\x22'+_0x5de2b8+'\x22\x20'+c(_0x221361,'ELEMENT_BOOKMARK'))};const {data:_0x2ef328}=_0x4520b4;if(!_0x2ef328||'bookmarkId'!=_0x2ef328['key'])return;return{'type':'format','content':c(_0x221361,'*Set\x20bookmark:*\x20%0','\x22'+_0x2ef328['newValue']+'\x22')};}));}}class J extends _0x3e2428{['afterInit'](){const _0x5b0331=this['editor'];_0x5b0331['plugins']['has']('CaseChange')&&(_0x5b0331['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5b0331['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5b0331['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x3e2428{['afterInit'](){const _0x5cdf8e=this['editor'];_0x5cdf8e['commands']['get']('ckbox')&&_0x5cdf8e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x3e2428{['afterInit'](){const _0x5f4df0=this['editor'];if(!_0x5f4df0['plugins']['has']('CodeBlock'))return;const _0x1df761=_0x5f4df0['plugins']['get']('TrackChangesEditing'),_0x4b3e65=_0x5f4df0['locale'],_0x486648=_0x5f4df0['config']['get']('codeBlock')['languages'],_0x37d1b7=_0x5f4df0['commands']['get']('codeBlock');_0x1df761['enableCommand']('indentCodeBlock'),_0x1df761['enableCommand']('outdentCodeBlock'),_0x1df761['enableCommand']('codeBlock',(_0x460b37,_0x4f01cb={})=>{const _0x147c99=_0x5f4df0['model'],_0x1aa8aa=_0x5f4df0['model']['document']['selection'],_0x1d0975=_0x4f01cb&&void 0x0!==_0x4f01cb['forceValue']?_0x4f01cb['forceValue']:!_0x37d1b7['value'];let _0x493733;_0x4f01cb['language']||(_0x4f01cb['language']=_0x486648[0x0]['language']),_0x493733=_0x1d0975?Array['from'](_0x1aa8aa['getSelectedBlocks']())['filter'](_0x392422=>eo(_0x392422)||function(_0x1f24b5,_0x3bfa40){if(_0x1f24b5['is']('rootElement')||_0x3bfa40['isLimit'](_0x1f24b5))return!0x1;return _0x3bfa40['checkChild'](_0x1f24b5['parent'],'codeBlock');}(_0x392422,_0x147c99['schema'])):Array['from'](_0x1aa8aa['getSelectedBlocks']())['filter'](_0x116f2d=>eo(_0x116f2d));const _0x4429f4=to(_0x493733,_0x147c99);_0x147c99['change'](()=>{for(const _0xe1285f of _0x4429f4)_0x1df761['markBlockFormat'](_0xe1285f,{'commandName':'codeBlock','commandParams':[{..._0x4f01cb,'forceValue':_0x1d0975}],'formatGroupId':'blockName'});});}),(_0x1df761['descriptionFactory']['registerElementLabel']('codeBlock',_0x2a2b01=>c(_0x4b3e65,'ELEMENT_CODE_BLOCK',_0x2a2b01)),_0x1df761['descriptionFactory']['registerDescriptionCallback'](_0x186f94=>{if('formatBlock'!=_0x186f94['type'])return;const _0x1683a6=_0x4b3e65['t'],{data:_0x4af9fc}=_0x186f94;if(!_0x4af9fc||'codeBlock'!=_0x4af9fc['commandName'])return;const _0x2465ce=_0x4af9fc['commandParams'][0x0]['language'],_0x181b1d=_0x1683a6(_0x486648['find'](_0x5f4bb8=>_0x5f4bb8['language']===_0x2465ce)['label'])['toLowerCase']();return _0x4af9fc['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4b3e65,'*Set\x20format:*\x20%0',c(_0x4b3e65,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x181b1d+')')}:{'type':'format','content':c(_0x4b3e65,'*Remove\x20format:*\x20%0',c(_0x4b3e65,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3ad882){return'codeBlock'==_0x3ad882['name'];}class q extends _0x3e2428{['afterInit'](){const _0x3ab871=this['editor'];if(!_0x3ab871['plugins']['has']('CommentsEditing'))return;_0x3ab871['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5d9741,_0x46981b,_0x45c8a3){const _0x26130a=[];for(const _0x4a35d5 of _0x46981b['getItems']())_0x4a35d5['hasAttribute'](_0x5d9741)&&_0x26130a['push'](_0x45c8a3['createRangeOn'](_0x4a35d5));return _0x26130a;}function Fe(_0x4159d4,_0x155451,{showActiveMarker:_0x179fd4=!0x0}={}){const _0x578cbe=_0x4159d4['plugins']['get']('TrackChangesEditing');return(_0x14ffa9,_0x1376dd,_0x574617)=>{if(!_0x574617['consumable']['test'](_0x1376dd['markerRange'],_0x14ffa9['name']))return;const _0x1f5b41=_0x1376dd['markerRange']['getWalker'](),_0x2f692b=_0x1376dd['markerRange']['start'],_0x13821d=_0x4159d4['model']['schema'];let _0x5072f5=null,_0x20a2f4=null,_0x476fe5=!0x1,_0x47dc95=!0x1;for(const _0x1f3916 of _0x1f5b41){const _0x8b6250=_0x1f3916['item'];_0x476fe5=_0x476fe5||_0x13821d['isContent'](_0x8b6250);const _0x117710=_0x574617['mapper']['toViewElement'](_0x8b6250);if(_0x117710&&_0x117710['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1f3916['type']&&(_0x13821d['isBlock'](_0x8b6250)&&!_0x13821d['isLimit'](_0x8b6250)&&(_0x8b6250['nextSibling']||_0x2f692b['isAtEnd']?_0x5072f5&&_0x5072f5['parent']==_0x8b6250||(_0x5072f5=_0x8b6250,_0x23144d(_0x1f3916['previousPosition']),_0x47dc95=!0x0):_0x20a2f4=_0x20a2f4||_0x1f3916['previousPosition']));}function _0x23144d(_0x273071){const {id:_0x802468,authorId:_0x5a5282}=_0x578cbe['_splitMarkerName'](_0x1376dd['markerName']),_0x4a2a3b=_0x574617['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x155451,'data-suggestion':_0x802468,'data-author-id':_0x5a5282}),_0x129897=_0x574617['mapper']['toViewPosition'](_0x273071);_0x179fd4&&_0x578cbe['activeMarkers']['includes'](_0x1376dd['markerName'])&&_0x574617['writer']['addClass']('ck-suggestion-marker--active',_0x4a2a3b),_0x574617['writer']['insert'](_0x129897,_0x4a2a3b),_0x574617['mapper']['bindElementToMarker'](_0x4a2a3b,_0x1376dd['markerName']);}_0x476fe5||_0x47dc95||!_0x20a2f4||_0x23144d(_0x20a2f4);};}class z extends _0x3e2428{static get['requires'](){return[_0x5f586e];}['init'](){const _0x112dc7=this['editor'],_0x199981=_0x112dc7['plugins']['get']('TrackChangesEditing');_0x199981['enableCommand']('delete');const _0xd93d28=_0x112dc7['commands']['get']('deleteForward');_0x199981['enableCommand']('deleteForward',(_0x4a1311,_0x46ad47={})=>{const _0x10875a=_0x112dc7['model']['createSelection'](_0x112dc7['model']['document']['selection']);_0x10875a['isCollapsed']&&_0x112dc7['model']['modifySelection'](_0x10875a,{'direction':'forward','unit':_0x46ad47['unit']});const _0x33e938=_0x10875a['getFirstRange'](),_0x405765=_0x2daf6a['fromRange'](_0x33e938);let _0x29c1e3;_0x4a1311(_0x46ad47),_0x29c1e3='$graveyard'==_0x405765['root']['rootName']?_0x112dc7['model']['createRange'](_0x33e938['start']):_0x112dc7['model']['createRange'](_0x405765['start'],_0x405765['end']),_0x405765['detach'](),_0x112dc7['model']['enqueueChange'](_0xd93d28['buffer']['batch'],_0x309b9b=>{_0xd93d28['buffer']['lock'](),_0x309b9b['setSelection'](_0x309b9b['createRange'](_0x29c1e3['end'])),_0xd93d28['buffer']['unlock']();});}),_0x112dc7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x112dc7,'merge'),{'priority':'high'}),_0x112dc7['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x35113c,_0x20a06a,_0x3d2032)=>{_0x3d2032['options']['showSuggestionHighlights']&&Fe(_0x112dc7,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x35113c,_0x20a06a,_0x3d2032);},{'priority':'high'}),_0x112dc7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x23364d,_0x3c2509,_0x47d77b)=>{const _0x2ed1=_0x47d77b['mapper']['markerNameToElements'](_0x3c2509['markerName']);if(_0x2ed1){for(const _0x1d52a7 of _0x2ed1)_0x1d52a7['is']('uiElement')&&(_0x47d77b['mapper']['unbindElementFromMarkerName'](_0x1d52a7,_0x3c2509['markerName']),_0x47d77b['writer']['remove'](_0x1d52a7));}},{'priority':'high'});}}class W extends _0x3e2428{['afterInit'](){const _0x11220e=this['editor'];if(!_0x11220e['plugins']['has']('ListEditing'))return;const _0x121a8b=_0x11220e['locale'],_0x525c83=_0x11220e['plugins']['get']('TrackChangesEditing'),_0x2e98a9=_0x11220e['plugins']['has']('TodoListEditing'),_0x4fa5f4=!!_0x11220e['config']['get']('list.multiBlock');function _0x31a70a(_0x4aee5b){return{'type':'format','content':''+c(_0x121a8b,'*Set\x20format:*\x20%0',_0x4aee5b)};}function _0x2dc79d(_0x436cff){return{'type':'format','content':''+c(_0x121a8b,'*Remove\x20format:*\x20%0',_0x436cff)};}_0x525c83['enableDefaultAttributesIntegration']('numberedList'),_0x525c83['enableDefaultAttributesIntegration']('bulletedList'),_0x525c83['enableDefaultAttributesIntegration']('customNumberedList'),_0x525c83['enableDefaultAttributesIntegration']('customBulletedList'),_0x525c83['enableDefaultAttributesIntegration']('indentList'),_0x525c83['enableDefaultAttributesIntegration']('outdentList'),_0x525c83['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x525c83['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x525c83['registerBlockAttribute']('listItemId'),_0x525c83['registerBlockAttribute']('listType'),_0x525c83['registerBlockAttribute']('listIndent'),_0x4fa5f4&&(_0x525c83['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x525c83['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2e98a9&&(_0x525c83['enableDefaultAttributesIntegration']('todoList'),_0x525c83['enableDefaultAttributesIntegration']('checkTodoList'),_0x525c83['registerBlockAttribute']('todoListChecked'),_0x525c83['descriptionFactory']['registerDescriptionCallback'](_0x40f9b5=>{const {data:_0x452806}=_0x40f9b5;if(_0x452806&&'todoListChecked'==_0x452806['key'])return{'type':'format','content':_0x452806['newValue']?c(_0x121a8b,'*Check\x20item*'):c(_0x121a8b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2e3300=>{if(_0x2e3300['batch']['isUndo'])return!0x1;let _0x1207ec=!0x1;const _0x3fb86a=_0x525c83['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x185724=>'todoListChecked'===_0x525c83['_getAttributeKey'](_0x185724));for(const _0x16d977 of _0x3fb86a){'todo'!=_0x16d977['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x525c83['_findSuggestions'](_0x16d977['getFirstRange'](),'attribute')['find'](_0x2678b0=>'listType'===_0x525c83['_getAttributeKey'](_0x2678b0['suggestion']))||(_0x2e3300['removeMarker'](_0x16d977['getFirstMarker']()),_0x1207ec=!0x0));}return _0x1207ec;})),_0x525c83['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x121a8b,'FORMAT_INDENT'));const _0x22cc7d={'type':'format','content':''};_0x525c83['descriptionFactory']['registerDescriptionCallback'](_0x5c27e5=>{const {data:_0x688a73}=_0x5c27e5;if(!_0x688a73||'listType'!=_0x688a73['key'])return;let _0x111653=_0x5c27e5['head'];for(;_0x111653;){if(_0x111653['data']&&(('listStyle'==_0x111653['data']['key']||'listMarkerStyle'==_0x111653['data']['key'])&&(_0x111653['data']['newValue']&&'default'!=_0x111653['data']['newValue']||'default'!=_0x111653['data']['oldValue']&&!_0x688a73['newValue'])||!_0x4fa5f4&&_0x111653['data']['key']==u))return _0x22cc7d;_0x111653=_0x111653['next'];}if(null==_0x688a73['newValue'])switch(_0x688a73['oldValue']){case'bulleted':return _0x2dc79d(c(_0x121a8b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2dc79d(c(_0x121a8b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2dc79d(c(_0x121a8b,'ELEMENT_TODO_LIST'));}switch(_0x688a73['newValue']){case'bulleted':return _0x31a70a(c(_0x121a8b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x31a70a(c(_0x121a8b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x31a70a(c(_0x121a8b,'ELEMENT_TODO_LIST'));}}),_0x525c83['descriptionFactory']['registerDescriptionCallback'](_0x4439c8=>{const {data:_0x13fb09}=_0x4439c8;if(_0x13fb09&&'listIndent'==_0x13fb09['key'])return null==_0x13fb09['newValue']||null==_0x13fb09['oldValue']&&0x0==_0x13fb09['newValue']?_0x22cc7d:void 0x0;}),_0x525c83['descriptionFactory']['registerDescriptionCallback'](_0x3b5d91=>{if('attribute'!=_0x3b5d91['type'])return;const {data:_0x35e651}=_0x3b5d91;if(!_0x35e651||'listItemId'!=_0x35e651['key'])return;const _0x59a2d2=Te(_0x3b5d91);return'newValue'==_0x59a2d2?{'type':'format','content':c(_0x121a8b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x59a2d2?{'type':'format','content':c(_0x121a8b,'*Split:*\x20list\x20item')}:_0x22cc7d;}),_0x11220e['model']['document']['registerPostFixer'](_0x314a91=>this['listItemIdFixer'](_0x314a91)),_0x11220e['model']['document']['registerPostFixer'](_0x9f3f72=>this['noTrackChangesFixer'](_0x9f3f72)),_0x11220e['model']['document']['on']('change:data',(_0x5a94ef,_0xd57e91)=>{if(_0xd57e91['isUndo']||!_0xd57e91['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x330bf2){if(_0x330bf2['batch']['isUndo']||!_0x330bf2['batch']['isLocal'])return!0x1;let _0x398eda=!0x1;const _0x3756d6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52d74c=>_0x52d74c['data']&&'listItemId'==_0x52d74c['data']['key'])['filter'](_0xae75c6=>_0xae75c6['data']['newValue']&&_0xae75c6['data']['oldValue']);for(const _0x45bd85 of _0x3756d6)Te(_0x45bd85)||(_0x330bf2['removeMarker'](_0x45bd85['getFirstMarker']()),_0x398eda=!0x0);return _0x398eda;}['noTrackChangesFixer'](_0x1497fb){if(_0x1497fb['batch']['isUndo']||!_0x1497fb['batch']['isLocal'])return!0x1;const _0x490266=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x490266['trackChangesCommand']['value'])return!0x1;let _0x1cb697=!0x1;const _0x459e99=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x151967=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5acf88=>'attribute'==_0x5acf88['type'])['filter'](_0x337235=>_0x459e99['includes'](_0x337235['attributeKey']));if(0x0==_0x151967['length'])return _0x1cb697;for(const _0x5498ad of _0x151967){const _0x263caf=_0x490266['_findSuggestions'](_0x5498ad['range'],'attribute')['filter'](_0x600748=>!_0x600748['meta']['isNextTo'])['map'](_0x555225=>_0x555225['suggestion'])['filter'](_0x56f220=>{const _0x460fee=_0x490266['_getAttributeKey'](_0x56f220);return _0x459e99['includes'](_0x460fee);});if(_0x263caf['length']){for(const _0x240018 of _0x263caf)_0x1497fb['removeMarker'](_0x240018['getFirstMarker']());_0x1cb697=!0x0;}}return _0x1cb697;}['assureChains'](){const _0x9a10=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f9ce1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x54949f;const _0x11bbf2=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5915d6=>{if(_0x5915d6['data']['oldRange']||!_0x5915d6['data']['newRange'])return null;if(!_0x5915d6['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xf5b5b4}=_0x9a10['_splitMarkerName'](_0x5915d6['name']);if(!_0x9a10['hasSuggestion'](_0xf5b5b4))return null;const _0x321a79=_0x9a10['getSuggestion'](_0xf5b5b4);return _0x2f9ce1['includes'](_0x321a79['data']['key']);})['map'](_0x4ba546=>{const {id:_0x190ae7}=_0x9a10['_splitMarkerName'](_0x4ba546['name']),_0x4d876f=_0x9a10['getSuggestion'](_0x190ae7);return _0x54949f=_0x4d876f['attributes']['groupId'],_0x4d876f['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x11bbf2['size'])return;const _0x39a52e=_0x9a10['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3feb18=>'attribute'==_0x3feb18['type']&&_0x3feb18['data']&&_0x2f9ce1['includes'](_0x3feb18['data']['key'])&&_0x3feb18['attributes']['groupId']!=_0x54949f)['map'](_0x510e68=>({'listItem':_0x510e68['getFirstRange']()['start']['nodeAfter'],'groupId':_0x510e68['attributes']['groupId']})),_0x30aa59=new Set();for(const {groupId:_0x21ec88,listItem:_0x1cf909}of _0x39a52e)_0x11bbf2['has'](_0x1cf909)&&_0x30aa59['add'](_0x21ec88);for(const _0x3760a5 of _0x9a10['getSuggestions']())_0x30aa59['has'](_0x3760a5['attributes']['groupId'])&&_0x3760a5['setAttribute']('groupId',_0x54949f);}['_supportLegacySuggestions'](){const _0x4e059f=this['editor'],_0x464e47=_0x4e059f['locale'],_0x348dcd=_0x4e059f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x348dcd['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x51aa10,_0x1313c0){const _0x4630db=[];for(let _0x16b3a7 of _0x51aa10)_0x16b3a7['start']['nodeAfter']===_0x16b3a7['end']['parent']&&(_0x16b3a7=_0x4e059f['model']['createRange'](_0x4e059f['model']['createPositionAt'](_0x16b3a7['start']['nodeAfter'],0x0))),_0x4630db['push'](_0x16b3a7);_0x4e059f['model']['change'](_0x3443f7=>{const _0x298ad7=_0x4e059f['model']['document']['selection'],_0x10c835=Array['from'](_0x298ad7['getRanges']())['map'](_0x565c95=>_0x2daf6a['fromRange'](_0x565c95));_0x3443f7['setSelection'](_0x4630db),_0x4e059f['commands']['get'](_0x1313c0['commandName'])['refresh'](),_0x1313c0['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4e059f['execute'](_0x1313c0['commandName'],..._0x1313c0['commandParams']),_0x3443f7['setSelection'](_0x10c835);for(const _0x47440c of _0x10c835)_0x47440c['detach']();});}),_0x348dcd['descriptionFactory']['registerElementLabel'](function(_0x196a48){const _0x4597e0=!_0x4e059f['model']['schema']['isObject'](_0x196a48),_0x230082=_0x196a48['previousSibling'],_0xb39458=_0x196a48['nextSibling'],_0x228d51=_0x196a48['getAttribute']('listItemId'),_0x26419c=!_0x230082||_0x230082['getAttribute']('listItemId')!==_0x228d51,_0x47e1fc=!_0xb39458||_0xb39458['getAttribute']('listItemId')!==_0x228d51;return _0x4597e0&&Boolean(_0x228d51)&&_0x26419c&&_0x47e1fc;},_0x2d615c=>c(_0x464e47,'ELEMENT_LIST_ITEM',_0x2d615c));}['_registerLegacyDescription'](){const _0x1b2591=this['editor'],_0x1817d4=_0x1b2591['locale'];function _0x1fcd15(_0x4e7421){const _0x2b45ee=_0x1b2591['commands']['get']('bulletedList')['value'],_0x4a9dff=_0x1b2591['commands']['get']('numberedList')['value'];return'numberedList'===_0x4e7421?_0x2b45ee:_0x4a9dff;}_0x1b2591['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2e388a){if('formatBlock'!=_0x2e388a['type'])return;const {data:_0x33f1aa}=_0x2e388a;if(!_0x33f1aa)return;let _0x2c3908,_0x1ac9d7,_0x34cd44,_0x1aa54d;switch(_0x33f1aa['commandName']){case'bulletedList':_0x34cd44=_0x33f1aa['commandParams'][0x0]['forceValue'],_0x1aa54d=_0x1fcd15(_0x33f1aa['commandName']),_0x2c3908=_0x34cd44?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1aa54d&&_0x1b2591['config']['get']('list.multiBlock')||(_0x2c3908='*Change\x20to:*\x20%0'),_0x1ac9d7={'type':'format','content':c(_0x1817d4,_0x2c3908,c(_0x1817d4,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x34cd44=_0x33f1aa['commandParams'][0x0]['forceValue'],_0x1aa54d=_0x1fcd15(_0x33f1aa['commandName']),_0x2c3908=_0x34cd44?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1aa54d&&_0x1b2591['config']['get']('list.multiBlock')||(_0x2c3908='*Change\x20to:*\x20%0'),_0x1ac9d7={'type':'format','content':c(_0x1817d4,_0x2c3908,c(_0x1817d4,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2c3908='*Indent:*\x20%0',_0x1ac9d7={'type':'format','content':c(_0x1817d4,_0x2c3908,c(_0x1817d4,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2c3908=function(_0x5634b1){const _0x54d466=_0x5634b1['getFirstRange']();let _0x24172b=_0x54d466['start']['nodeAfter'];for(;_0x24172b&&_0x54d466['containsItem'](_0x24172b);){if(_0x24172b['getAttribute']('listIndent')>0x0)return!0x1;_0x24172b=_0x24172b['nextSibling'];}return!0x0;}(_0x2e388a)?c(_0x1817d4,'*Format:*\x20remove\x20from\x20%0',c(_0x1817d4,function(_0x40fd8e){return'ELEMENT_'+_0x40fd8e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2e388a))):c(_0x1817d4,'*Outdent:*\x20%0',c(_0x1817d4,'ELEMENT_LIST_ITEM')),_0x1ac9d7={'type':'format','content':_0x2c3908};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x33f1aa['multipleBlocks']&&(_0x2c3908='*Merge:*\x20%0',_0x1ac9d7={'type':'deletion','content':c(_0x1817d4,_0x2c3908,c(_0x1817d4,'ELEMENT_LIST_ITEM'))});}return _0x1ac9d7;});}}function Te(_0x264f30){let _0x557af2=_0x264f30['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x557af2;){const _0x414e33=_0x557af2['getAttribute']('listItemId');if(!_0x414e33)return!0x1;if(_0x414e33==_0x264f30['data']['newValue'])return'newValue';if(_0x414e33==_0x264f30['data']['oldValue'])return'oldValue';_0x557af2=_0x557af2['previousSibling'];}return!0x1;}class Se extends _0x3e2428{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2c0e1c=this['editor']['config']['get']('list.properties'),_0x587fda=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c0e1c['styles']&&(_0x587fda['enableDefaultAttributesIntegration']('listStyle'),_0x587fda['registerBlockAttribute']('listStyle')),_0x2c0e1c['reversed']&&(_0x587fda['enableDefaultAttributesIntegration']('listReversed'),_0x587fda['registerBlockAttribute']('listReversed')),_0x2c0e1c['startIndex']&&(_0x587fda['enableDefaultAttributesIntegration']('listStart'),_0x587fda['registerBlockAttribute']('listStart'));const _0x250c93={'type':'format','content':''};_0x587fda['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3f0e59=this['editor']['locale'];_0x587fda['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x3f0e59,'FORMAT_LIST_REVERSED')),_0x587fda['descriptionFactory']['registerDescriptionCallback'](_0x2a7d47=>{const {data:_0x2bbb21}=_0x2a7d47;if(_0x2bbb21&&'listReversed'==_0x2bbb21['key'])return null==_0x2bbb21['newValue']||0x0==_0x2bbb21['newValue']&&null==_0x2bbb21['oldValue']?_0x250c93:void 0x0;}),_0x587fda['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x3f0e59,'FORMAT_LIST_START')),_0x587fda['descriptionFactory']['registerDescriptionCallback'](_0x43fee7=>{const {data:_0x3a8350}=_0x43fee7;if(_0x3a8350&&'listStart'==_0x3a8350['key'])return null==_0x3a8350['newValue']||0x1==_0x3a8350['newValue']&&null==_0x3a8350['oldValue']?_0x250c93:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x46352e=>{if(_0x46352e['batch']['isUndo'])return!0x1;let _0xc69fcc=!0x1;const _0x5c0dd0=_0x587fda['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ad7b0=>{const _0x2f784f=_0x587fda['_getAttributeKey'](_0x5ad7b0);return'listStart'==_0x2f784f||'listReversed'==_0x2f784f;});for(const _0x54012a of _0x5c0dd0){const _0x56f15f=_0x54012a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x56f15f||'customNumbered'==_0x56f15f)continue;_0x587fda['_findSuggestions'](_0x54012a['getFirstRange'](),'attribute')['find'](_0x1da84b=>'listType'==_0x587fda['_getAttributeKey'](_0x1da84b['suggestion']))||(_0x46352e['removeMarker'](_0x54012a['getFirstMarker']()),_0xc69fcc=!0x0);}return _0xc69fcc;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x42a369){const _0x3c150f=this['editor']['locale'],{data:_0x3e74e0}=_0x42a369,_0x589095={'type':'format','content':''};if(!_0x3e74e0||'listStyle'!=_0x3e74e0['key'])return;if(!_0x3e74e0['oldValue'])return'default'==_0x3e74e0['newValue']?_0x589095:{'type':'format','content':''+c(_0x3c150f,'*Set\x20format:*\x20%0',c(_0x3c150f,this['_getTranslationKeyForListStyle'](_0x3e74e0['newValue'])))};if(!_0x3e74e0['newValue']){if('default'==_0x3e74e0['oldValue'])return _0x589095;let _0x5c187f=_0x42a369['head'];for(;_0x5c187f;){if(_0x5c187f['data']&&'listType'==_0x5c187f['data']['key']&&_0x5c187f['data']['newValue'])return _0x589095;_0x5c187f=_0x5c187f['next'];}return{'type':'format','content':''+c(_0x3c150f,'*Remove\x20format:*\x20%0',c(_0x3c150f,this['_getTranslationKeyForListStyle'](_0x3e74e0['oldValue'])))};}if('default'!=_0x3e74e0['newValue'])return{'type':'format','content':''+c(_0x3c150f,'*Set\x20format:*\x20%0',c(_0x3c150f,this['_getTranslationKeyForListStyle'](_0x3e74e0['newValue'])))};let _0xaac368=_0x42a369['head'];for(;_0xaac368;){if(_0xaac368['data']&&'listType'==_0xaac368['data']['key']&&_0xaac368['data']['newValue']&&_0xaac368['data']['oldValue'])return _0x589095;_0xaac368=_0xaac368['next'];}return{'type':'format','content':c(_0x3c150f,'*Set\x20format:*\x20%0',c(_0x3c150f,'ELEMENT_'+_0x42a369['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x55b3a5=this['editor'],_0x4e31ac=_0x55b3a5['locale'];_0x55b3a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e36aa=>{if('formatBlock'!=_0x1e36aa['type'])return;const {data:_0x4075e3}=_0x1e36aa;if(!_0x4075e3)return;let _0x53439e,_0x4c0ec1;switch(_0x4075e3['commandName']){case'listStyle':_0x53439e='*Change\x20to:*\x20%0',_0x4c0ec1={'type':'format','content':c(_0x4e31ac,_0x53439e,c(_0x4e31ac,this['_getTranslationKeyForListStyle'](_0x4075e3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x53439e=_0x4075e3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4c0ec1={'type':'format','content':c(_0x4e31ac,_0x53439e)};break;case'listStart':_0x53439e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4c0ec1={'type':'format','content':c(_0x4e31ac,_0x53439e,_0x4075e3['commandParams'][0x0]['startIndex'])};}return _0x4c0ec1;});}['_getTranslationKeyForListStyle'](_0x5d8c40){return'ELEMENT_'+function(_0x507456){if(_e['includes'](_0x507456))return'bulleted';if(Re['includes'](_0x507456))return'numbered';return null;}(_0x5d8c40)['toUpperCase']()+'_LIST_'+_0x5d8c40['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x3e2428{['afterInit'](){const _0xc950ed=this['editor'];_0xc950ed['commands']['get']('emoji')&&_0xc950ed['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x3e2428{static get['requires'](){return[_0x3ceda9];}['init'](){const _0x455158=this['editor'],_0x547b4d=_0x455158['plugins']['get']('TrackChangesEditing'),_0x5d4892=_0x455158['commands']['get']('enter');_0x547b4d['enableCommand']('enter',()=>{_0x455158['model']['change'](_0xe8c2ec=>{const _0x3dc118=_0x455158['model']['document']['selection'],_0x296754=_0x3dc118['getFirstPosition'](),_0x1df128=_0x2daf6a['fromRange'](_0x3dc118['getFirstRange']());if(_0x5d4892['enterBlock'](_0xe8c2ec)){const _0x22ffd6=_0x455158['model']['createPositionAt'](_0x296754['parent']['nextSibling'],0x0),_0x1fff5f=_0xe8c2ec['createRange'](_0x296754,_0x22ffd6);_0x547b4d['markInsertion'](_0x1fff5f);}else _0xe8c2ec['setSelection'](_0xe8c2ec['createRange'](_0x1df128['end']));_0x1df128['detach'](),_0x5d4892['fire']('afterExecute',{'writer':_0xe8c2ec});});}),_0x455158['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x455158,'split'),{'priority':'high'}),_0x455158['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x35de17,_0xc42f94,_0x2d88e4)=>{const _0x153a99=_0x2d88e4['mapper']['markerNameToElements'](_0xc42f94['markerName']);if(_0x153a99){for(const _0x13599f of _0x153a99)_0x13599f['hasClass']('ck-suggestion-marker-split')&&(_0x2d88e4['mapper']['unbindElementFromMarkerName'](_0x13599f,_0xc42f94['markerName']),_0x2d88e4['writer']['remove'](_0x13599f));}},{'priority':'high'}),_0x455158['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5f0ff0,_0x3d1126,_0x177b88)=>{_0x177b88['options']['showSuggestionHighlights']&&Fe(_0x455158,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5f0ff0,_0x3d1126,_0x177b88);},{'priority':'high'});}}class Z extends _0x3e2428{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1fa489=this['editor']['plugins']['get']('TrackChangesEditing');_0x1fa489['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1fa489['enableCommand']('findNext'),_0x1fa489['enableCommand']('findPrevious'),_0x1fa489['enableCommand']('replace'),_0x1fa489['enableCommand']('replaceAll');}['handleFindCommand'](_0x4ce954,_0x400477,_0x1985ec={}){const _0x4a2364=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4ce954(_0x5e22c4=>{let _0xdf6480=('string'==typeof _0x400477?_0x4a2364['findByTextCallback'](_0x400477,_0x1985ec):_0x400477)(_0x5e22c4);Array['isArray'](_0xdf6480)&&(_0xdf6480={'results':_0xdf6480,'searchText':'string'==typeof _0x400477?_0x400477:''});const _0x16520a=_0xdf6480['results']['filter'](_0x2b9f4f=>!0x1===this['_isInDeletionRange'](_0x2b9f4f,_0x5e22c4['item']));return{..._0xdf6480,'results':_0x16520a};},_0x1985ec);}['_isInDeletionRange'](_0xaf5cef,_0x5a39b1){const _0x5f0d50=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5a39b1,_0xaf5cef['start']),this['editor']['model']['createPositionAt'](_0x5a39b1,_0xaf5cef['end']));for(const _0x215b33 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5f0d50['getIntersection'](_0x215b33['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 _0x3e2428{['afterInit'](){const _0xbffba0=this['editor']['locale'],_0x3aa59b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1d33c2,commandName:_0x2b463d}of ro)this['editor']['plugins']['has'](_0x1d33c2)&&(_0x3aa59b['enableDefaultAttributesIntegration'](_0x2b463d),_0x3aa59b['registerInlineAttribute'](_0x2b463d));_0x3aa59b['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0xbffba0,'FORMAT_FONT_SIZE')),_0x3aa59b['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0xbffba0,'FORMAT_FONT_FAMILY')),_0x3aa59b['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0xbffba0,'FORMAT_FONT_COLOR')),_0x3aa59b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0xbffba0,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29bdfa=this['editor'],_0x4dd8=_0x29bdfa['locale'];_0x29bdfa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa29949=>{const _0x5de613=_0x4dd8['t'];if('formatInline'!=_0xa29949['type'])return;const {data:_0x3a2bd8}=_0xa29949;if(null!=_0x3a2bd8){if('fontSize'==_0x3a2bd8['commandName']){const _0x45ae12=_0x3a2bd8['commandParams'][0x0]['value'];if(_0x45ae12){const _0x3ed5c6=_0x5de613(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2fb941=>_0x2fb941['model']==_0x45ae12)['title'])['toLowerCase']();return{'type':'format','content':c(_0x4dd8,'*Set\x20font\x20size:*\x20%0',_0x3ed5c6)};}return{'type':'format','content':c(_0x4dd8,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3a2bd8['commandName']){const _0x21edd6=_0x3a2bd8['commandParams'][0x0]['value'];return _0x21edd6?{'type':'format','content':c(_0x4dd8,'*Set\x20font\x20family:*\x20%0',_0x21edd6)}:{'type':'format','content':c(_0x4dd8,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3a2bd8['commandName']){const _0x4bed0f=_0x3a2bd8['commandParams'][0x0]['value'];if(_0x4bed0f){const _0x3819f2=_0x3de588(this['editor']['config']['get']('fontColor.colors'))['find'](_0x119a14=>_0x119a14['model']==_0x4bed0f);let _0x284dde=_0x4bed0f,_0x872a54='';return _0x3819f2&&(_0x284dde=_0x3819f2['label'],_0x872a54=_0x5de613(_0x284dde)['toLowerCase']()),{'type':'format','content':c(_0x4dd8,'*Set\x20font\x20color:*\x20%0',_0x872a54)['trim'](),'color':{'value':_0x4bed0f,'title':_0x872a54||_0x284dde}};}return{'type':'format','content':c(_0x4dd8,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3a2bd8['commandName']){const _0x1a8c0d=_0x3a2bd8['commandParams'][0x0]['value'];if(_0x1a8c0d){const _0x226182=_0x3de588(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x166bfd=>_0x166bfd['model']==_0x1a8c0d);let _0x821c1d=_0x1a8c0d,_0x495250='';return _0x226182&&(_0x821c1d=_0x226182['label'],_0x495250=_0x5de613(_0x821c1d)['toLowerCase']()),{'type':'format','content':c(_0x4dd8,'*Set\x20font\x20background\x20color:*\x20%0',_0x495250)['trim'](),'color':{'value':_0x1a8c0d,'title':_0x495250||_0x821c1d}};}return{'type':'format','content':c(_0x4dd8,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x3e2428{['afterInit'](){const _0x25b7a8=this['editor'],_0x836944=_0x25b7a8['plugins']['get']('TrackChangesEditing'),_0x19c9ff=_0x25b7a8['commands']['get']('copyFormat'),_0xe3c139=_0x25b7a8['commands']['get']('pasteFormat');_0x19c9ff&&_0xe3c139&&(_0x836944['enableDefaultAttributesIntegration']('pasteFormat'),_0x836944['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x228300=this['editor'],_0x4dfe84=_0x228300['locale'];_0x228300['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e44a5=>{if('formatBlock'!=_0x2e44a5['type']&&'formatInline'!=_0x2e44a5['type'])return;const {data:_0x44922b}=_0x2e44a5;if(_0x44922b&&'pasteFormat'===_0x44922b['commandName']){const _0x3f78c1=[],_0x1de79c=_0x44922b['commandParams'][0x0];for(const [_0x29aea7,_0x4a024f]of Object['entries'](_0x1de79c))_0x3f78c1['push'](so(_0x228300,_0x29aea7,_0x4a024f));return _0x3f78c1['length']?{'type':'format','content':c(_0x4dfe84,'*Set\x20format\x20to:*\x20%0',_0x3f78c1['join'](',\x20'))}:{'type':'format','content':c(_0x4dfe84,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5282dd,_0x395b62,_0x38741f){const _0x586f64=_0x5282dd['locale']['t'],_0x17fbbf=_0x395b62['split'](/(?=[A-Z])/)['join']('\x20'),_0x5f4c2c=_0x586f64(_0x17fbbf['charAt'](0x0)['toUpperCase']()+_0x17fbbf['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x38741f)return _0x5f4c2c;if('fontColor'===_0x395b62||'fontBackgroundColor'===_0x395b62){const _0x40981c=_0x3de588(_0x5282dd['config']['get']('fontColor.colors'))['find'](_0x44cbfd=>_0x44cbfd['model']==_0x38741f);return _0x5f4c2c+'\x20('+(_0x40981c?_0x586f64(_0x40981c['label'])['toLowerCase']():_0x38741f)+')';}if('fontSize'===_0x395b62&&isNaN(parseFloat(_0x38741f))){const _0x3bf865=_0x5282dd['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5282dd['config']['get']('fontSize.options'))['find'](_0x2d2039=>_0x2d2039['model']==_0x38741f);return _0x5f4c2c+'\x20('+(_0x3bf865?_0x586f64(_0x3bf865['title'])['toLowerCase']():_0x38741f)+')';}return _0x5f4c2c+'\x20('+_0x38741f+')';}class et extends _0x3e2428{['_headingOptions'];['afterInit'](){const _0x30cc69=this['editor'];if(!_0x30cc69['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x30cc69['config']['get']('heading.options');const _0x3b0d29=_0x30cc69['locale'],_0x44a759=_0x30cc69['plugins']['get']('TrackChangesEditing');_0x44a759['enableDefaultAttributesIntegration']('heading');for(const _0x5e6d6f of this['_headingOptions'])'paragraph'!=_0x5e6d6f['model']&&_0x44a759['descriptionFactory']['registerElementLabel'](_0x5e6d6f['model'],_0x4e9d41=>{const _0xde345d=this['_getHeadingLevel'](_0x5e6d6f['model']);return null!==_0xde345d?_0x49f819(_0x4e9d41,_0xde345d):_0x400214(_0x4e9d41,_0x5e6d6f['title']);});function _0x49f819(_0x569748,_0x147e4d){return c(_0x3b0d29,'ELEMENT_HEADING',[_0x569748,_0x147e4d]);}function _0x400214(_0x2a0717,_0x9fe10){return c(_0x3b0d29,'ELEMENT_HEADING_CUSTOM',[_0x2a0717,_0x9fe10]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2850de=this['editor'],_0x26f9ea=_0x2850de['locale'];function _0x131b34(_0x57ea17,_0x47f71a){return c(_0x26f9ea,'ELEMENT_HEADING_CUSTOM',[_0x57ea17,_0x47f71a]);}_0x2850de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c1430=>{if('formatBlock'!=_0x2c1430['type'])return;const {data:_0x1433bb}=_0x2c1430;if(_0x1433bb&&'heading'==_0x1433bb['commandName']){const _0x2ddb4b=_0x1433bb['commandParams'][0x0]['value'],_0x37418b=this['_getHeadingLevel'](_0x2ddb4b);if(null!==_0x37418b)return{'type':'format','content':c(_0x26f9ea,'*Change\x20to:*\x20%0',(_0x2d97e0=0x1,_0x2668a3=_0x37418b,c(_0x26f9ea,'ELEMENT_HEADING',[_0x2d97e0,_0x2668a3])))};const _0x35d78d=this['_headingOptions']['find'](_0x536faf=>_0x536faf['model']===_0x2ddb4b)['title'];return{'type':'format','content':c(_0x26f9ea,'*Change\x20to:*\x20%0',_0x131b34(0x1,_0x35d78d))};}var _0x2d97e0,_0x2668a3;});}['_getHeadingLevel'](_0x21ca35){const _0x336194=_0x21ca35['match'](/^heading(\d+)/);if(_0x336194)return _0x336194[0x1];const _0x396485=this['_headingOptions']?.['find'](_0x24c0ec=>_0x24c0ec['model']==_0x21ca35);if(_0x396485&&_0x396485['view']){const _0x403b09=_0x396485['view'],_0x12b749=(_0x403b09['name']??_0x403b09)['match'](/^h(\d+)/);if(_0x12b749)return _0x12b749[0x1];}return null;}}class nt extends _0x3e2428{['afterInit'](){const _0x38d093=this['editor'];if(!_0x38d093['plugins']['has']('HighlightEditing'))return;const _0x4eba3a=_0x38d093['plugins']['get']('TrackChangesEditing'),_0x3adff0=_0x38d093['locale'];_0x4eba3a['enableDefaultAttributesIntegration']('highlight'),_0x4eba3a['registerInlineAttribute']('highlight'),_0x4eba3a['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x3adff0,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43d83b=this['editor'],_0x22f366=_0x43d83b['locale'];_0x43d83b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2aa04f=>{if('formatInline'!=_0x2aa04f['type'])return;const {data:_0x471c82}=_0x2aa04f;if(_0x471c82&&'highlight'==_0x471c82['commandName']){const _0x602ca5=_0x22f366['t'],_0x117c30=_0x471c82['commandParams'][0x0]['value'];if(_0x117c30){const _0x3ebe9e=_0x43d83b['config']['get']('highlight.options')['find'](_0x36da5b=>_0x36da5b['model']==_0x117c30),_0x19c0f2=_0x602ca5(_0x3ebe9e['title'])['toLowerCase']();return{'type':'format','content':c(_0x22f366,'*Set\x20highlight:*\x20%0',_0x19c0f2),'color':{'value':_0x3ebe9e['color'],'title':_0x3ebe9e['title']}};}return{'type':'format','content':c(_0x22f366,'*Remove\x20highlight*',c(_0x22f366,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x3e2428{['afterInit'](){const _0x14b1d1=this['editor'];if(!_0x14b1d1['plugins']['has']('HorizontalLineEditing'))return;_0x14b1d1['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x36df86=_0x14b1d1['plugins']['get']('TrackChangesEditing'),_0x225e51=_0x14b1d1['locale'];_0x36df86['descriptionFactory']['registerElementLabel']('horizontalLine',_0x33eefb=>c(_0x225e51,'ELEMENT_HORIZONTAL_LINE',_0x33eefb)),_0x14b1d1['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2d5468,{writer:_0x94fb49,options:_0x4b6cf3})=>{if(!_0x4b6cf3['showSuggestionHighlights'])return null;const _0x1dd34c=_0x94fb49['createContainerElement']('div'),_0x5fbd60=_0x94fb49['createEmptyElement']('hr');return _0x94fb49['addClass']('ck-horizontal-line',_0x1dd34c),_0x94fb49['insert'](_0x94fb49['createPositionAt'](_0x1dd34c,0x0),_0x5fbd60),_0x1dd34c;},'converterPriority':'high'});}}class ot extends _0x3e2428{['afterInit'](){const _0x47c2db=this['editor'];if(!_0x47c2db['plugins']['has']('HtmlEmbed'))return;const _0x4892d6=_0x47c2db['plugins']['get']('TrackChangesEditing'),_0x4a9adf=_0x47c2db['locale'];_0x4892d6['descriptionFactory']['registerElementLabel']('rawHtml',_0x26d740=>c(_0x4a9adf,'ELEMENT_HTML_EMBED',_0x26d740)),_0x4892d6['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4892d6['registerBlockAttribute']('value'),_0x4892d6['descriptionFactory']['registerDescriptionCallback'](_0x69c0b0=>{if('attribute'!=_0x69c0b0['type'])return;const {data:_0x7ce89f}=_0x69c0b0;if(_0x7ce89f&&'value'==_0x7ce89f['key']&&_0x69c0b0['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4eaf14=c(_0x4a9adf,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x4a9adf,'*Change\x20%0\x20content*',_0x4eaf14)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e8536=this['editor'],_0x7f1a71=_0x3e8536['locale'];_0x3e8536['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a900a=>{if('formatBlock'!=_0x5a900a['type'])return;const {data:_0x540072}=_0x5a900a;if(_0x540072&&'htmlEmbed'==_0x540072['commandName']){const _0xf3d332=c(_0x7f1a71,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x7f1a71,'*Change\x20%0\x20content*',_0xf3d332)};}});}}class rt extends _0x3e2428{['afterInit'](){const _0xd6e3a3=this['editor'];if(!_0xd6e3a3['plugins']['has']('ImageEditing'))return;const _0x3edf40=_0xd6e3a3['plugins']['get']('TrackChangesEditing'),_0x3474e3=_0xd6e3a3['plugins']['get']('ImageUtils'),_0x3fc91d=_0xd6e3a3['locale'];_0x3edf40['enableCommand']('insertImage'),_0x3edf40['descriptionFactory']['registerElementLabel']('imageBlock',_0x19dee3=>c(_0x3fc91d,'ELEMENT_IMAGE',_0x19dee3)),_0x3edf40['descriptionFactory']['registerElementLabel']('imageInline',_0x48d7d8=>c(_0x3fc91d,'ELEMENT_INLINE_IMAGE',_0x48d7d8)),_0x3edf40['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x3fc91d,'ELEMENT_CAPTION')),_0xd6e3a3['plugins']['has']('ImageUploadEditing')&&_0x3edf40['enableCommand']('uploadImage'),_0xd6e3a3['plugins']['has']('ImageBlockEditing')&&_0xd6e3a3['plugins']['has']('ImageInlineEditing')&&(_0x3edf40['enableCommand']('imageTypeInline',(_0x4174b1,_0x317535)=>{const _0x5688bf=_0x3474e3['getClosestSelectedImageElement'](_0xd6e3a3['model']['document']['selection']);_0xd6e3a3['model']['change'](()=>{_0x3edf40['markBlockFormat'](_0x5688bf,{'commandName':'imageTypeInline','commandParams':[_0x317535]},[],'convertBlockImageToInline');});}),_0x3edf40['enableCommand']('imageTypeBlock',(_0x58ebf2,_0x1bd442)=>{_0xd6e3a3['model']['change'](_0x5500b8=>{let _0x3364af=_0x3474e3['getClosestSelectedImageElement'](_0xd6e3a3['model']['document']['selection']),_0x56d643=_0x5500b8['createRangeOn'](_0x3364af);const _0x59c2f3=_0x342ae3['fromPosition'](_0x56d643['start'],'toPrevious'),_0x1516b3=_0x342ae3['fromPosition'](_0x56d643['end'],'toNext');_0x3edf40['forceDefaultExecution'](()=>_0x58ebf2(_0x1bd442)),_0x3364af=_0x3474e3['getClosestSelectedImageElement'](_0xd6e3a3['model']['document']['selection']),_0x56d643=_0x5500b8['createRangeOn'](_0x3364af);const _0x4cc4f3=_0x5500b8['createRange'](_0x59c2f3,_0x1516b3);_0x59c2f3['detach'](),_0x1516b3['detach'](),_0x3edf40['markBlockFormat'](_0x3364af,{'commandName':'imageTypeInline','commandParams':[_0x1bd442]},[],'convertInlineImageToBlock'),_0x4cc4f3['start']['isBefore'](_0x56d643['start'])&&_0x3edf40['markInsertion'](_0x5500b8['createRange'](_0x4cc4f3['start'],_0x56d643['start']),'convertInlineImageToBlock'),_0x56d643['end']['isBefore'](_0x4cc4f3['end'])&&_0x3edf40['markInsertion'](_0x5500b8['createRange'](_0x56d643['end'],_0x4cc4f3['end']),'convertInlineImageToBlock');});}),_0x3edf40['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3edf40['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3edf40['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3edf40['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3edf40['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3edf40['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x42c64f])=>{const _0x2fd8bf=_0x3edf40['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x286b98=_0x42c64f['start'],_0x47dccc=_0x42c64f['end'];const _0x29a3cc=_0xd6e3a3['model']['schema']['getNearestSelectionRange'](_0x286b98,'backward'),_0x35a3f5=_0xd6e3a3['model']['schema']['getNearestSelectionRange'](_0x47dccc,'forward');_0x29a3cc['isCollapsed']&&(_0x286b98=_0x29a3cc['start']),_0x35a3f5['isCollapsed']&&(_0x47dccc=_0x35a3f5['end']),_0x2fd8bf([_0xd6e3a3['model']['createRange'](_0x286b98,_0x47dccc)]);}),_0x3edf40['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x47d29f),_0x3edf40['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x47d29f)),_0xd6e3a3['plugins']['has']('ImageCaptionEditing')&&(_0x3edf40['enableCommand']('toggleImageCaption',(_0x17372c,_0x3749a3)=>{const _0x4477f2=_0xd6e3a3['plugins']['get']('ImageCaptionUtils');let _0x1d1534=_0x3474e3['getClosestSelectedImageElement'](_0xd6e3a3['model']['document']['selection']),_0x9fc4e5=_0x4477f2['getCaptionFromImageModelElement'](_0x1d1534);_0xd6e3a3['model']['change'](()=>{if(_0x9fc4e5)return void _0x3edf40['markDeletion'](_0xd6e3a3['model']['createRangeOn'](_0x9fc4e5));const _0x52b560=_0x3474e3['isBlockImage'](_0x1d1534);_0x17372c(_0x3749a3),_0x1d1534=_0x3474e3['getClosestSelectedImageElement'](_0xd6e3a3['model']['document']['selection']),_0x9fc4e5=_0x4477f2['getCaptionFromImageModelElement'](_0x1d1534),_0x3edf40['markInsertion'](_0xd6e3a3['model']['createRangeOn'](_0x9fc4e5),_0x52b560?null:'imageCaption');});}),_0x3edf40['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x47d29f));const _0x4c66ff=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x422f23(_0x98e6d7,_0x5f2074){const _0x185d1a=_0x4c66ff['findIndex'](({type:_0x29317d,subType:_0x397b6d})=>_0x98e6d7['type']==_0x29317d&&_0x98e6d7['subType']==_0x397b6d),_0x46e916=_0x4c66ff['findIndex'](({type:_0x14cf17,subType:_0xcd557e})=>_0x5f2074['type']==_0x14cf17&&_0x5f2074['subType']==_0xcd557e);if(_0x185d1a<0x0||_0x46e916<0x0)return!0x1;const _0x4f1c41=_0x98e6d7['getFirstRange'](),_0x25f700=_0x5f2074['getFirstRange']();if((0x0==_0x185d1a||0x1==_0x185d1a)&&0x2==_0x46e916&&_0x4f1c41['isIntersecting'](_0x25f700))return!0x0;if(0x2==_0x185d1a&&0x3==_0x46e916){const _0xceef3c=_0x3edf40['_findSuggestions'](_0x4f1c41,'insertion')['filter'](({suggestion:_0x201191,meta:_0x27d17c})=>_0x27d17c['isOwn']&&'convertInlineImageToBlock'==_0x201191['subType']);if(_0xceef3c['length']>0x1&&_0x25f700['end']['isEqual'](_0x4f1c41['start']))return!0x0;if(0x1==_0xceef3c['length']&&(_0x4f1c41['start']['isEqual'](_0x25f700['end'])||_0x4f1c41['end']['isEqual'](_0x25f700['start'])))return!0x0;}if(0x3==_0x185d1a&&0x3==_0x46e916&&_0x4f1c41['start']['isBefore'](_0x25f700['start'])){const _0x442420=_0x4f1c41['end']['nodeAfter'],_0x46c522=_0x25f700['start']['nodeBefore'];return _0x3474e3['isBlockImage'](_0x442420)&&_0x442420===_0x46c522;}return!0x1;}function _0x47d29f(_0xe62fb3,_0xf121b3){return _0x422f23(_0xe62fb3,_0xf121b3)?[_0xe62fb3,_0xf121b3]:_0x422f23(_0xf121b3,_0xe62fb3)?[_0xf121b3,_0xe62fb3]:null;}_0xd6e3a3['plugins']['has']('ImageResize')&&(_0x3edf40['enableDefaultAttributesIntegration']('resizeImage'),_0x3edf40['registerBlockAttribute']('resizedWidth'),_0x3edf40['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x3fc91d,'FORMAT_IMAGE_SIZE'))),_0xd6e3a3['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3edf40['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3edf40['registerBlockAttribute']('alt')),_0xd6e3a3['plugins']['has']('PictureEditing')&&(_0x3edf40['registerBlockAttribute']('sources'),_0x3edf40['descriptionFactory']['registerDescriptionCallback'](_0x39e55a=>{if('attribute'!=_0x39e55a['type'])return;const {data:_0x27178e}=_0x39e55a;return _0x27178e&&'sources'==_0x27178e['key']?{'type':'format','content':''}:void 0x0;})),_0xd6e3a3['plugins']['has']('ImageSizeAttributes')&&(_0x3edf40['registerBlockAttribute']('width'),_0x3edf40['registerBlockAttribute']('height'),_0x3edf40['descriptionFactory']['registerDescriptionCallback'](_0x4ab2e2=>{if('attribute'!=_0x4ab2e2['type'])return;const {data:_0x5c8a28}=_0x4ab2e2;return!_0x5c8a28||'width'!=_0x5c8a28['key']&&'height'!=_0x5c8a28['key']?void 0x0:{'type':'format','content':''};})),_0x3edf40['descriptionFactory']['registerDescriptionCallback'](_0x29aa79=>{if(!!_0x4c66ff['find'](({type:_0x43b1da,subType:_0x4e45cf})=>_0x29aa79['type']==_0x43b1da&&_0x29aa79['subType']==_0x4e45cf))return _0x29aa79['previous']?{}:void 0x0;}),_0x3edf40['descriptionFactory']['registerDescriptionCallback'](_0x141262=>{if('insertion'==_0x141262['type']||'deletion'==_0x141262['type']){const _0x3c1647=_0x141262['getContainedElement']();if(_0x3c1647&&_0x3c1647['is']('element','caption'))return{'type':'insertion'==_0x141262['type']?'addObject':'removeObject','element':_0x3c1647,'quantity':0x1};}}),_0x3edf40['descriptionFactory']['registerDescriptionCallback'](_0x2e6543=>'formatBlock'==_0x2e6543['type']&&'convertInlineImageToBlock'==_0x2e6543['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2e6543['type']&&'convertBlockImageToInline'==_0x2e6543['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3edf40['descriptionFactory']['registerDescriptionCallback'](_0x1afafc=>{if('attribute'!=_0x1afafc['type'])return;const {data:_0x45d584}=_0x1afafc;if(!_0x45d584||'alt'!=_0x45d584['key'])return;const _0x39b246=_0x45d584['newValue'];return _0x39b246?{'type':'format','content':c(_0x3fc91d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x39b246+'\x22')}:{'type':'format','content':c(_0x3fc91d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5552fa=this['editor'],_0xf4285b=_0x5552fa['locale'];_0x5552fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56b00d=>{if('formatBlock'!=_0x56b00d['type']&&'formatInline'!=_0x56b00d['type'])return;const {data:_0x322d2a}=_0x56b00d;if(_0x322d2a){if('imageTextAlternative'==_0x322d2a['commandName']){const _0x2c1cf1=_0x322d2a['commandParams'][0x0]['newValue'];return _0x2c1cf1?{'type':'format','content':c(_0xf4285b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c1cf1+'\x22')}:{'type':'format','content':c(_0xf4285b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x322d2a['commandName']){const _0x4f4a98=_0x322d2a['commandParams'][0x0]['width'];return _0x4f4a98?{'type':'format','content':c(_0xf4285b,'*Set\x20image\x20width:*\x20%0',_0x4f4a98)}:{'type':'format','content':c(_0xf4285b,'*Reset\x20image\x20width*')};}}});}}class at extends _0x3e2428{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x36ec23=this['editor']['locale'],_0x2f6de3=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f6de3['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2f6de3['registerBlockAttribute']('src'),_0x2f6de3['descriptionFactory']['registerDescriptionCallback'](_0x298924=>{if('attribute'!=_0x298924['type'])return;const {data:_0x56aab4}=_0x298924;return _0x56aab4&&'src'==_0x56aab4['key']?_0x56aab4['newValue']&&_0x56aab4['oldValue']?{'type':'format','content':c(_0x36ec23,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5ba9f9=this['editor']['plugins']['get']('TrackChangesEditing');_0x5ba9f9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5ba9f9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ba9f9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5ba9f9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x138b7e=this['editor'],_0x435aff=_0x138b7e['locale'];_0x138b7e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b5b1b=>{if('formatBlock'!=_0x5b5b1b['type']&&'formatInline'!=_0x5b5b1b['type'])return;const {data:_0x484e01}=_0x5b5b1b;if(!_0x484e01||'replaceImageSource'!=_0x484e01['commandName'])return;return{'type':'format','content':c(_0x435aff,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x3e2428{['afterInit'](){const _0x42a5c8=this['editor'];if(!_0x42a5c8['plugins']['has']('ImageStyleEditing'))return;const _0x482a20=_0x42a5c8['plugins']['get']('TrackChangesEditing'),_0x3e4948=_0x42a5c8['plugins']['get']('ImageUtils'),_0x45ff16={};_0x482a20['enableCommand']('imageStyle',(_0x254d03,_0x2e62ec)=>{const _0xf267d4=_0x42a5c8['plugins']['get']('Users')['me'],_0x152831=_0x42a5c8['commands']['get']('imageStyle');let _0x51c0b3=_0x3e4948['getClosestSelectedImageElement'](_0x42a5c8['model']['document']['selection']),_0x388e38=_0x42a5c8['model']['createRangeOn'](_0x51c0b3),_0x1604c0=_0x152831['value'];if(_0x1604c0==_0x2e62ec['value'])return;const _0x37412c={'commandName':'imageStyle','commandParams':[_0x2e62ec],'formatGroupId':_0x32b8bc()};_0x42a5c8['model']['change'](()=>{if(_0x482a20['getSuggestions']()['filter'](_0x3e901b=>_0x3e901b['isInContent']&&_0xf267d4==_0x3e901b['author']&&('formatBlock'==_0x3e901b['type']||'formatInline'==_0x3e901b['type'])&&('imageStylePreApply'==_0x3e901b['subType']||'imageStylePostApply'==_0x3e901b['subType'])&&_0x3e901b['getFirstRange']()['isEqual'](_0x388e38))['forEach'](_0x44d624=>_0x482a20['discardSuggestion'](_0x44d624['head'])),_0x51c0b3=_0x3e4948['getClosestSelectedImageElement'](_0x42a5c8['model']['document']['selection']),_0x388e38=_0x42a5c8['model']['createRangeOn'](_0x51c0b3),_0x152831['refresh'](),_0x42a5c8['commands']['get']('imageTypeInline')['refresh'](),_0x42a5c8['commands']['get']('imageTypeBlock')['refresh'](),_0x1604c0=_0x152831['value'],_0x1604c0!=_0x2e62ec['value'])return _0x3e4948['isInlineImage'](_0x51c0b3)&&_0x152831['shouldConvertImageType'](_0x2e62ec['value'],_0x51c0b3)?(_0x254d03({..._0x2e62ec,'setImageSizes':!0x1}),_0x51c0b3=_0x3e4948['getClosestSelectedImageElement'](_0x42a5c8['model']['document']['selection']),void _0x482a20['markBlockFormat'](_0x51c0b3,{..._0x37412c,'commandReversedParams':[{'value':_0x1604c0||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3e4948['isBlockImage'](_0x51c0b3)?_0x482a20['markBlockFormat'](_0x51c0b3,_0x37412c,[],'imageStylePostApply'):_0x482a20['markInlineFormat'](_0x388e38,_0x37412c,'imageStylePostApply'));});});for(const _0x44394e of _0x42a5c8['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x45ff16[_0x44394e['name']]=_0x44394e['title']['toLowerCase']();_0x482a20['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x482a20['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x482a20['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x482a20['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x171bb7])=>{_0x3e4948['setImageNaturalSizeAttributes'](_0x171bb7['getContainedElement']());}),_0x482a20['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2c047a,_0x38b308)=>{_0x482a20['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2c047a,{'commandName':_0x38b308['commandName'],'commandParams':_0x38b308['commandReversedParams']});}),_0x482a20['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5dbb26,_0xe33c6c){if(_0x5e82be(_0x5dbb26,_0xe33c6c))return[_0x5dbb26,_0xe33c6c];if(_0x5e82be(_0xe33c6c,_0x5dbb26))return[_0xe33c6c,_0x5dbb26];return null;});const _0x32bcfc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5e82be(_0x27c000,_0x368fc2){const _0x435ac8=_0x32bcfc['findIndex'](({type:_0x394e6b,subType:_0x376639})=>_0x27c000['type']==_0x394e6b&&_0x27c000['subType']==_0x376639),_0x28fa0f=_0x32bcfc['findIndex'](({type:_0x51abe3,subType:_0x6c3267})=>_0x368fc2['type']==_0x51abe3&&_0x368fc2['subType']==_0x6c3267);if(_0x435ac8<0x0||_0x28fa0f<0x0)return!0x1;const _0x3bd3a6=_0x27c000['getFirstRange'](),_0x4fecd6=_0x368fc2['getFirstRange']();if((0x0==_0x435ac8||0x1==_0x435ac8)&&0x2==_0x28fa0f&&_0x3bd3a6['isIntersecting'](_0x4fecd6))return!0x0;if(0x2==_0x435ac8&&0x3==_0x28fa0f){const _0x57ec4=_0x482a20['_findSuggestions'](_0x3bd3a6,'insertion')['filter'](({suggestion:_0x18f600,meta:_0x4621b5})=>_0x4621b5['isOwn']&&'convertInlineImageToBlock'==_0x18f600['subType']);if(_0x57ec4['length']>0x1&&_0x4fecd6['end']['isEqual'](_0x3bd3a6['start']))return!0x0;if(0x1==_0x57ec4['length']&&(_0x3bd3a6['start']['isEqual'](_0x4fecd6['end'])||_0x3bd3a6['end']['isEqual'](_0x4fecd6['start'])))return!0x0;}if(0x3==_0x435ac8&&0x3==_0x28fa0f&&_0x3bd3a6['start']['isBefore'](_0x4fecd6['start'])){const _0x59d91f=_0x3bd3a6['end']['nodeAfter'],_0x2ff680=_0x4fecd6['start']['nodeBefore'];return _0x3e4948['isBlockImage'](_0x59d91f)&&_0x59d91f===_0x2ff680;}return!0x1;}_0x42a5c8['model']['document']['registerPostFixer'](()=>{let _0x353422=!0x1;const _0x7e0138=Array['from'](_0x42a5c8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf36c72,data:_0x508e54}of _0x7e0138){const {group:_0x3e375b,type:_0x53af50,subType:_0x30bda0,id:_0x1986aa}=_0x482a20['_splitMarkerName'](_0xf36c72);if('suggestion'==_0x3e375b&&_0x482a20['hasSuggestion'](_0x1986aa)){if('formatBlock'==_0x53af50&&('imageStylePreApply'==_0x30bda0||'imageStylePostApply'==_0x30bda0)){const _0x231095=_0x482a20['getSuggestion'](_0x1986aa);if(_0x508e54['newRange']){const _0x599da8=_0x231095['getFirstRange']()['getContainedElement']();if(_0x3e4948['isBlockImage'](_0x599da8))continue;_0x482a20['discardSuggestion'](_0x231095),_0x353422=!0x0;}}if('insertion'==_0x53af50&&'imageCaption'==_0x30bda0&&!_0x508e54['newRange']){const _0x1c6afb=_0x482a20['getSuggestion'](_0x1986aa);_0x1c6afb['next']&&_0x1c6afb['next']['isInContent']&&(_0x482a20['discardSuggestion'](_0x1c6afb['next']),_0x353422=!0x0);}}}return _0x353422;}),this['_registerLegacyDescription'](_0x45ff16);}['_registerLegacyDescription'](_0x33d1c2){const _0x27c60a=this['editor'],_0x11bc13=_0x27c60a['locale'];_0x27c60a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10790a=>{if('formatBlock'!=_0x10790a['type']&&'formatInline'!=_0x10790a['type'])return;const {data:_0x3e599a}=_0x10790a;if(!_0x3e599a||'imageStyle'!=_0x3e599a['commandName'])return;const _0x1c88e8=_0x3e599a['commandParams'][0x0]['value'];return _0x5cc673('side'===_0x1c88e8?c(_0x11bc13,'FORMAT_SIDE_IMAGE'):_0x33d1c2[_0x1c88e8]||_0x1c88e8);function _0x5cc673(_0x4ce9d8){return{'type':'format','content':c(_0x11bc13,'*Format:*\x20%0',_0x4ce9d8)};}});}}class ut extends _0x3e2428{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4104a9){super(_0x4104a9),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x8c00be=this['editor'],_0x2f89f3=_0x8c00be['commands']['get']('importWord'),_0x2493d7=_0x8c00be['commands']['get']('trackChanges');_0x2f89f3&&(_0x2f89f3['on']('execute',(_0x41cca4,[,_0x28e3ee])=>{this['_trackChangesValueDuringImport']=_0x2493d7['value'],_0x28e3ee['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2f89f3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2f89f3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2493d7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x8c00be['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x46f04d,_0x22d72e){const {suggestions:_0x1384b3}=_0x22d72e,_0x1989b5=this['editor']['commands']['get']('trackChanges'),_0x3cac94=_0x1989b5['value'];this['_trackChangesValueDuringImport']!==_0x3cac94&&(_0x1989b5['execute'](),this['_trackChangesExecuted']=!0x0),_0x1384b3&&_0x1384b3['forEach'](({id:_0x40a816,type:_0x3066d2,author:_0x5305e5,created_at:_0x30b40d})=>{const _0x5380f3={'id':_0x40a816,'type':_0x3066d2,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5305e5,'createdAt':_0x30b40d?new Date(_0x30b40d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5380f3);});}}class ft extends _0x3e2428{['afterInit'](){const _0x4e982f=this['editor'],_0x368f18=_0x4e982f['plugins']['get']('TrackChangesEditing');if(_0x4e982f['plugins']['has']('IndentEditing')&&(_0x368f18['enableCommand']('indent'),_0x368f18['enableCommand']('outdent')),_0x4e982f['plugins']['has']('IndentBlock')){for(const _0x5104a0 of['indentBlock','outdentBlock'])_0x368f18['enableDefaultAttributesIntegration'](_0x5104a0);}const _0x15e7d0=_0x4e982f['locale'];_0x368f18['registerBlockAttribute']('blockIndent'),_0x368f18['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x15e7d0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d8ee2=this['editor'],_0x2e86b7=_0x2d8ee2['locale'],_0x4824f5=_0x2d8ee2['plugins']['get']('TrackChangesEditing');_0x4824f5['descriptionFactory']['registerDescriptionCallback'](_0xf32d35=>{if('formatBlock'!=_0xf32d35['type'])return;const {data:_0x915dd0}=_0xf32d35;if(!_0x915dd0)return;if('indentBlock'!=_0x915dd0['commandName']&&'outdentBlock'!=_0x915dd0['commandName'])return;const _0x52fb6e=_0xf32d35['getItems']()[0x0],_0x173758=_0x4824f5['descriptionFactory']['getItemLabel'](_0x52fb6e);return'indentBlock'==_0x915dd0['commandName']?{'type':'format','content':c(_0x2e86b7,'*Indent:*\x20%0',_0x173758)}:'outdentBlock'==_0x915dd0['commandName']?{'type':'format','content':c(_0x2e86b7,'*Outdent:*\x20%0',_0x173758)}:void 0x0;});}}class ht extends _0x3e2428{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x3e2428{['afterInit'](){const _0x3498a3=this['editor'];if(!_0x3498a3['plugins']['has']('LinkEditing'))return;const _0x128f0d=_0x3498a3['plugins']['get']('TrackChangesEditing'),_0x2b8c66=_0x3498a3['commands']['get']('link');_0x128f0d['enableDefaultAttributesIntegration']('link'),_0x128f0d['enableDefaultAttributesIntegration']('unlink'),_0x128f0d['registerInlineAttribute']('linkHref');for(const _0x1888dd of _0x2b8c66['manualDecorators'])_0x128f0d['registerInlineAttribute'](_0x1888dd['id']),_0x128f0d['descriptionFactory']['registerAttributeLabel'](_0x1888dd['id'],'link\x20('+_0x1888dd['label']['toLowerCase']()+')');_0x128f0d['descriptionFactory']['registerDescriptionCallback'](_0x3964c6=>{if('attribute'!=_0x3964c6['type'])return;const {data:_0x50cfcc}=_0x3964c6;if(!_0x50cfcc||'linkHref'!=_0x50cfcc['key'])return;const _0x2090d5=_0x50cfcc['newValue'],_0x43cd0d=_0x3498a3['locale'];return{'type':'format','content':null==_0x2090d5?c(_0x43cd0d,'*Remove\x20link*'):c(_0x43cd0d,'*Set\x20link:*\x20%0','\x22'+_0x2090d5+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f65b6=this['editor'],_0x2818e6=_0x3f65b6['locale'];_0x3f65b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22caa7=>{if('formatInline'!=_0x22caa7['type'])return;const {data:_0x867420}=_0x22caa7;if(_0x867420){if('link'==_0x867420['commandName']){const _0x2482e1=_0x867420['commandParams'][0x0];return{'type':'format','content':c(_0x2818e6,'*Set\x20link:*\x20%0','\x22'+_0x2482e1+'\x22')};}return'unlink'==_0x867420['commandName']?{'type':'format','content':c(_0x2818e6,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x3e2428{['afterInit'](){const _0x16264a=this['editor'],_0x2500a5=_0x16264a['locale'];if(!_0x16264a['plugins']['has']('LegacyListEditing'))return;const _0x2dff99=_0x16264a['plugins']['get']('TrackChangesEditing'),_0xa5b666=_0x16264a['plugins']['has']('LegacyTodoListEditing');function _0x15bfc0(_0x4e05c1){return()=>{const _0x5cba08=_0x16264a['model']['document']['selection'],_0x42d316=_0x16264a['commands']['get'](_0x4e05c1);if(_0x42d316['value'])return void _0x16264a['execute']('paragraph',{});const _0x324a42=_0x4e05c1['slice'](0x0,-0x4),_0x26d698=function(_0x4f615c,_0x30621c,_0x20c2ea){let _0x1d2160=Array['from'](_0x4f615c)['filter'](_0x513baf=>function(_0x32c1d8,_0x429025){return _0x429025['checkChild'](_0x32c1d8['parent'],'listItem')&&!_0x429025['isObject'](_0x32c1d8);}(_0x513baf,_0x20c2ea));_0x1d2160=_0x1d2160['filter'](_0x1b066f=>!_0x1b066f['is']('element','listItem')||_0x1b066f['getAttribute']('listType')!=_0x30621c);const _0xc9f070=new Set();for(const _0x49c9e9 of _0x1d2160)_0x49c9e9['is']('element','listItem')?_0xc9f070['add'](Le(_0x49c9e9)):_0xc9f070['add'](_0x49c9e9);return Array['from'](_0xc9f070);}(_0x5cba08['getSelectedBlocks'](),_0x324a42,_0x16264a['model']['schema']);_0x16264a['model']['change'](()=>{for(const _0x20e35a of _0x26d698)_0x2dff99['markBlockFormat'](_0x20e35a,{'commandName':_0x4e05c1,'commandParams':[{'forceValue':!_0x42d316['value']}],'formatGroupId':'blockName'},Ee(_0x20e35a));});};}function _0x4bfda(_0xd595c9){return()=>{const _0x409c10=function(_0xf5d4a8){let _0x194db5=Array['from'](_0xf5d4a8);const _0x40e546=_0x194db5['findIndex'](_0x165887=>'listItem'!=_0x165887['name']);return _0x40e546>-0x1&&(_0x194db5=_0x194db5['slice'](0x0,_0x40e546)),_0x194db5;}(_0x16264a['model']['document']['selection']['getSelectedBlocks']()),_0x39aa8c=_0x16264a['model']['createRange'](_0x16264a['model']['createPositionAt'](_0x409c10[0x0],'before'),_0x16264a['model']['createPositionAt'](_0x409c10[_0x409c10['length']-0x1],'end'));_0x16264a['model']['change'](()=>{_0x2dff99['markBlockFormat'](_0x39aa8c,{'commandName':_0xd595c9,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3a6f2b){const _0x40ec99=new Set();for(const _0x266801 of _0x3a6f2b){let _0x130505=_0x266801['nextSibling'];for(;_0x130505&&_0x130505['getAttribute']('listIndent')>_0x266801['getAttribute']('listIndent');)_0x40ec99['add'](_0x130505),_0x130505=_0x130505['nextSibling'];}return Array['from'](_0x40ec99);}(_0x409c10));});};}_0x2dff99['enableCommand']('numberedList',_0x15bfc0('numberedList')),_0x2dff99['enableCommand']('bulletedList',_0x15bfc0('bulletedList')),_0xa5b666&&_0x2dff99['enableCommand']('todoList',_0x15bfc0('todoList')),_0x2dff99['enableCommand']('indentList',_0x4bfda('indentList')),_0x2dff99['enableCommand']('outdentList',_0x4bfda('outdentList')),_0xa5b666&&_0x2dff99['enableCommand']('checkTodoList',()=>{const _0x319e87=_0x16264a['commands']['get']('checkTodoList'),_0x2189b7=Array['from'](_0x319e87['_selectedElements']);_0x2189b7['filter'](_0x3234e6=>_0x3234e6['getAttribute']('todoListChecked')!=_0x319e87['value']),_0x16264a['model']['change'](()=>{for(const _0x2431f9 of _0x2189b7)_0x2dff99['markBlockFormat'](_0x2431f9,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x319e87['value']}]});});}),_0x2dff99['descriptionFactory']['registerElementLabel']('listItem',_0x57eeeb=>c(_0x2500a5,'ELEMENT_LIST_ITEM',_0x57eeeb)),_0x2dff99['descriptionFactory']['registerDescriptionCallback'](_0x2f2ed7=>{if('formatBlock'!=_0x2f2ed7['type']&&'formatInline'!=_0x2f2ed7['type'])return;const {data:_0x2b36db}=_0x2f2ed7;if(_0x2b36db){if('numberedList'==_0x2b36db['commandName']||'bulletedList'==_0x2b36db['commandName']||'todoList'==_0x2b36db['commandName'])switch(_0x2b36db['commandName']['replace']('List','')){case'bulleted':return _0x8a60c0(c(_0x2500a5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x8a60c0(c(_0x2500a5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x8a60c0(c(_0x2500a5,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2b36db['commandName'])return{'type':'format','content':c(_0x2500a5,'*Indent:*\x20%0',c(_0x2500a5,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2b36db['commandName'])return{'type':'format','content':c(_0x2500a5,'*Outdent:*\x20%0',c(_0x2500a5,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2b36db['commandName'])return _0x2b36db['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2500a5,'*Check\x20item*')}:{'type':'format','content':c(_0x2500a5,'*Uncheck\x20item*')};}function _0x8a60c0(_0x15b46e){return{'type':'format','content':c(_0x2500a5,'*Change\x20to:*\x20%0',_0x15b46e)};}});}}function Le(_0x11623a){const _0x48953b=_0x11623a['getAttribute']('listIndent');if(0x0==_0x48953b)return _0x11623a;let _0x12182d=_0x11623a;for(;_0x11623a['previousSibling']&&_0x11623a['previousSibling']['is']('element','listItem');){const _0x1c79c9=_0x11623a['previousSibling']['getAttribute']('listIndent');if(_0x1c79c9==_0x48953b)_0x12182d=_0x11623a['previousSibling'];else{if(_0x1c79c9<_0x48953b)break;}_0x11623a=_0x11623a['previousSibling'];}return _0x12182d;}function Ee(_0x70970d){const _0xc3a317=[];if(_0x70970d['is']('element','listItem')&&_0x70970d['getAttribute']('listIndent')>0x0){let _0x484d5d=_0x70970d['nextSibling'];for(;_0x484d5d&&'listItem'==_0x484d5d['name']&&_0x484d5d['getAttribute']('listIndent')==_0x70970d['getAttribute']('listIndent');)_0xc3a317['push'](_0x484d5d),_0x484d5d=_0x484d5d['nextSibling'];}return _0xc3a317;}class Q extends _0x3e2428{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x149e5d=this['editor']['config']['get']('list.properties'),_0x28e9d2=this['editor']['plugins']['get']('TrackChangesEditing');_0x149e5d['styles']&&_0x28e9d2['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x149e5d['reversed']&&_0x28e9d2['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x149e5d['startIndex']&&_0x28e9d2['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x28e9d2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3d54ae,_0x2721f5={}){const _0x2ad15d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x255cb7=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2ad15d['markMultiRangeBlockFormat'](_0x255cb7,{'commandName':'listStyle','commandParams':[{'type':_0x2721f5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3644d1,_0x3db445={}){const _0x26a4de=this['editor']['plugins']['get']('TrackChangesEditing'),_0x347e93=this['_getSuggestionBlocks'](_0x5398d0=>_0x5398d0['is']('element','listItem')&&'numbered'===_0x5398d0['getAttribute']('listType'));if(_0x347e93['length']<0x1)return;const _0x13ab4c=_0x347e93['map'](_0x46f24e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x46f24e,'before'),this['editor']['model']['createPositionAt'](_0x46f24e,0x0)));this['editor']['model']['change'](()=>{_0x26a4de['markMultiRangeBlockFormat'](_0x13ab4c,{'commandName':'listReversed','commandParams':[{'reversed':_0x3db445['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x154e78,_0x2e4180={}){const _0x4891ee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x368fe9=this['_getSuggestionBlocks'](_0xae8def=>_0xae8def['is']('element','listItem')&&'numbered'===_0xae8def['getAttribute']('listType'));if(_0x368fe9['length']<0x1)return;const _0xcb202e=_0x368fe9['map'](_0xcce6fb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xcce6fb,'before'),this['editor']['model']['createPositionAt'](_0xcce6fb,0x0)));this['editor']['model']['change'](()=>{_0x4891ee['markMultiRangeBlockFormat'](_0xcb202e,{'commandName':'listStart','commandParams':[{'startIndex':_0x2e4180['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1516b7){if('formatBlock'!=_0x1516b7['type']&&'formatInline'!=_0x1516b7['type'])return;const _0x4e3606=this['editor']['locale'],{data:_0x52012a}=_0x1516b7;if(!_0x52012a)return;let _0x854184,_0x4e748e;switch(_0x52012a['commandName']){case'listStyle':_0x854184='*Change\x20to:*\x20%0',_0x4e748e={'type':'format','content':c(_0x4e3606,_0x854184,c(_0x4e3606,this['_getTranslationKeyForListStyle'](_0x52012a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x854184=_0x52012a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4e748e={'type':'format','content':c(_0x4e3606,_0x854184)};break;case'listStart':_0x854184='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4e748e={'type':'format','content':c(_0x4e3606,_0x854184,_0x52012a['commandParams'][0x0]['startIndex'])};}return _0x4e748e;}['_getSuggestionBlocksForListStyle'](){const _0x128a45=this['editor']['plugins']['get']('LegacyListUtils');let _0x3c4695=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3c4695[0x0]?.['is']('element','listItem')&&_0x3c4695['unshift'](..._0x128a45['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3c4695[_0x3c4695['length']-0x1]?.['is']('element','listItem')&&_0x3c4695['push'](..._0x128a45['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3c4695=[...new Set(_0x3c4695)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3c4695=_0x3c4695['filter'](_0x2a612d=>_0x2a612d['is']('element','listItem'))),_0x3c4695;}['_getSuggestionBlocks'](_0x5cf5b7){const _0x4cb3b7=this['editor']['plugins']['get']('LegacyListUtils');let _0x281ce3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5cf5b7)['map'](_0x5a9dd4=>{const _0x4b0791=this['editor']['model']['createPositionAt'](_0x5a9dd4,0x0);return[..._0x4cb3b7['getSiblingNodes'](_0x4b0791,'backward'),..._0x4cb3b7['getSiblingNodes'](_0x4b0791,'forward')];})['flat']();return _0x281ce3=[...new Set(_0x281ce3)],_0x281ce3;}['_getTranslationKeyForListStyle'](_0x83b248){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x83b248)||'default')['toUpperCase']()+'_LIST_'+_0x83b248['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x3e2428{['afterInit'](){const _0x253f2b=this['editor'];if(!_0x253f2b['plugins']['has']('MediaEmbedEditing'))return;const _0xc68487=_0x253f2b['plugins']['get']('TrackChangesEditing'),_0x192d0b=_0x253f2b['locale'];_0xc68487['enableCommand']('mediaEmbed'),_0xc68487['descriptionFactory']['registerElementLabel']('media',_0x519276=>c(_0x192d0b,'ELEMENT_MEDIA',_0x519276)),_0x253f2b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3de94a,{writer:_0x33a1d5,options:_0x25460d})=>{if(_0x25460d['showSuggestionHighlights'])return _0x33a1d5['createEmptyElement']('div');},'converterPriority':'high'}),_0x253f2b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x26b014,_0x125c8c,_0x4f2add)=>{_0x4f2add['options']['showSuggestionHighlights']&&_0x26b014['stop']();},{'priority':'high'});}}class pt extends _0x3e2428{['afterInit'](){const _0x473f16=this['editor'];_0x473f16['plugins']['has']('MentionEditing')&&_0x473f16['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x3e2428{['afterInit'](){const _0x31f65a=this['editor'];if(!_0x31f65a['plugins']['has']('MergeFieldsEditing'))return;const _0x16635b=_0x31f65a['plugins']['get']('TrackChangesEditing'),_0x5a5a1f=_0x31f65a['locale'];_0x16635b['enableCommand']('insertMergeField'),_0x16635b['enableCommand']('insertMergeFieldBlock'),_0x16635b['enableCommand']('insertMergeFieldImage'),_0x16635b['descriptionFactory']['registerElementLabel']('mergeField',_0x584691=>c(_0x5a5a1f,'ELEMENT_MERGE_FIELD',_0x584691)),_0x16635b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x57ba7c=>c(_0x5a5a1f,'ELEMENT_MERGE_FIELD',_0x57ba7c)),_0x16635b['descriptionFactory']['registerDescriptionCallback'](_0x48f3a3=>{if('insertion'!=_0x48f3a3['type']&&'deletion'!=_0x48f3a3['type'])return;const _0x16c5c1=_0x48f3a3['getContainedElement']();if(null==_0x16c5c1)return;const _0x40a279=_0x31f65a['plugins']['get']('MergeFieldsEditing');let _0x145331;switch(_0x40a279['getMergeFieldType'](_0x16c5c1)){case null:return;case'image':{const _0x40cb25=_0x40a279['unwrapAffixes'](_0x16c5c1['getAttribute']('src'));_0x145331=_0x40a279['getLabel'](_0x40cb25)||_0x40cb25;break;}default:{const _0x4ae8db=_0x16c5c1['getAttribute']('id');_0x145331=_0x40a279['getLabel'](_0x4ae8db)||_0x4ae8db;break;}}return'insertion'==_0x48f3a3['type']?{'type':'insertion','content':c(_0x5a5a1f,'*Insert:*\x20%0','\x22'+_0x145331+'\x22\x20'+c(_0x5a5a1f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x5a5a1f,'*Remove:*\x20%0','\x22'+_0x145331+'\x22\x20'+c(_0x5a5a1f,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x3e2428{['afterInit'](){const _0x2f8aaa=this['editor'],_0x2cabb3=_0x2f8aaa['plugins']['get']('TrackChangesEditing');_0x2f8aaa['plugins']['has']('MultiLevelList')&&(_0x2cabb3['enableDefaultAttributesIntegration']('multiLevelList'),_0x2cabb3['registerBlockAttribute']('listMarkerStyle'),_0x2cabb3['descriptionFactory']['registerDescriptionCallback'](_0x26d50d=>this['handleDescriptions'](_0x26d50d)));}['handleDescriptions'](_0x22a696){const _0x20427a=this['editor']['locale'],{data:_0x219973}=_0x22a696,_0x45ddbc={'type':'format','content':''};if(_0x219973&&'listMarkerStyle'==_0x219973['key']){if(!_0x219973['oldValue'])return{'type':'format','content':c(_0x20427a,'*Set\x20format:*\x20%0',c(_0x20427a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x219973['newValue']+')'};if(!_0x219973['newValue']){let _0x158ccd=_0x22a696['head'];for(;_0x158ccd;){if(_0x158ccd['data']&&'listType'==_0x158ccd['data']['key']&&_0x158ccd['data']['newValue'])return _0x45ddbc;_0x158ccd=_0x158ccd['next'];}return{'type':'format','content':c(_0x20427a,'*Remove\x20format:*\x20%0',c(_0x20427a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x219973['oldValue']+')'};}}}}class bt extends _0x3e2428{['afterInit'](){const _0x2835fb=this['editor'];if(!_0x2835fb['plugins']['has']('PageBreakEditing'))return;_0x2835fb['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x56313b=_0x2835fb['plugins']['get']('TrackChangesEditing'),_0x130488=_0x2835fb['locale'];_0x56313b['descriptionFactory']['registerElementLabel']('pageBreak',_0x23a208=>c(_0x130488,'ELEMENT_PAGE_BREAK',_0x23a208));}}class yt extends _0x3e2428{['afterInit'](){const _0x33302c=this['editor'];if(!_0x33302c['plugins']['has']('Paragraph'))return;const _0x43a8d6=_0x33302c['locale'],_0x10b1e9=_0x33302c['plugins']['get']('TrackChangesEditing');_0x10b1e9['descriptionFactory']['registerElementLabel']('paragraph',_0xf74491=>c(_0x43a8d6,'ELEMENT_PARAGRAPH',_0xf74491)),_0x10b1e9['enableDefaultAttributesIntegration']('paragraph'),_0x10b1e9['enableCommand']('insertParagraph'),_0x33302c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x33302c),{'priority':'highest'}),_0x33302c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x45035a,_0x52adac,_0x47ddd8)=>{_0x47ddd8['options']['showSuggestionHighlights']&&nr(_0x33302c,{'showActiveMarker':!0x1})(_0x45035a,_0x52adac,_0x47ddd8);},{'priority':'highest'});const _0x5d43f4=_0x10b1e9['descriptionFactory'];_0x5d43f4['registerDescriptionCallback'](_0x1aac6a=>{if('insertion'!==_0x1aac6a['type'])return;const {start:_0x4d29d8,end:_0x23ebce}=_0x1aac6a['getFirstRange']();if(!_0x4d29d8['isTouching'](_0x23ebce)||!_0x4d29d8['nodeAfter'])return;const _0x18bf4a=_0x33302c['model']['schema'],_0x58467b=_0x4d29d8['nodeAfter'];return _0x18bf4a['isBlock'](_0x58467b)&&!_0x18bf4a['isLimit'](_0x58467b)&&_0x18bf4a['checkChild'](_0x58467b,'$text')?{'type':'insertion','content':c(_0x43a8d6,'*Insert:*\x20%0',_0x5d43f4['getItemLabel'](_0x58467b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x596889=this['editor'],_0x238048=_0x596889['locale'];_0x596889['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2551b3=>{if('formatBlock'!=_0x2551b3['type'])return;const {data:_0x59aac4}=_0x2551b3;return _0x59aac4&&'paragraph'==_0x59aac4['commandName']?{'type':'format','content':c(_0x238048,'*Change\x20to:*\x20%0',c(_0x238048,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2f8864,{showActiveMarker:_0x16a393=!0x0}={}){return(_0x1645e6,_0x31ba84,_0x21875c)=>{const _0x54542d=_0x2f8864['plugins']['get']('TrackChangesEditing'),_0x44fc99=_0x31ba84['markerRange']['start'],_0x34818f=_0x31ba84['markerRange']['end'],_0x2eb0fc=_0x2f8864['model']['schema'];if(!_0x44fc99['isTouching'](_0x34818f)||!_0x44fc99['nodeAfter'])return;const _0x55da63=_0x44fc99['nodeAfter'];if(_0x2eb0fc['isBlock'](_0x55da63)&&!_0x2eb0fc['isLimit'](_0x55da63)&&_0x2eb0fc['checkChild'](_0x55da63,'$text')){if(!_0x21875c['consumable']['consume'](_0x31ba84['markerRange'],_0x1645e6['name']))return;const {id:_0x4bddc6,authorId:_0x349f60}=_0x54542d['_splitMarkerName'](_0x31ba84['markerName']),_0x562ac0=_0x21875c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4bddc6,'data-author-id':_0x349f60}),_0x2628c1=_0x21875c['mapper']['toViewPosition'](_0x34818f);_0x16a393&&_0x54542d['activeMarkers']['includes'](_0x31ba84['markerName'])&&_0x21875c['writer']['addClass']('ck-suggestion-marker--active',_0x562ac0),_0x21875c['writer']['insert'](_0x2628c1,_0x562ac0),_0x21875c['mapper']['bindElementToMarker'](_0x562ac0,_0x31ba84['markerName']);}};}class jt extends _0x3e2428{['afterInit'](){const _0xc968f2=this['editor'];_0xc968f2['commands']['get']('replaceSource')&&_0xc968f2['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x3e2428{['afterInit'](){const _0x423b78=this['editor'];if(!_0x423b78['plugins']['has']('RemoveFormatEditing'))return;_0x423b78['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9eca37=this['editor'];_0x9eca37['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15dd03=>{if('formatBlock'!=_0x15dd03['type']&&'formatInline'!=_0x15dd03['type'])return;const {data:_0x1e54cc}=_0x15dd03;return _0x1e54cc&&'removeFormat'==_0x1e54cc['commandName']?{'type':'format','content':c(_0x9eca37['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x3e2428{['afterInit'](){const _0x565254=this['editor'];if(!_0x565254['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3e397a=_0x565254['plugins']['get']('TrackChangesEditing');_0x3e397a['enableCommand']('goToPreviousRestrictedEditingException'),_0x3e397a['enableCommand']('goToNextRestrictedEditingException');const _0x205e9b=_0x565254['plugins']['get']('RestrictedEditingModeEditing');_0x205e9b['enableCommand']('trackChanges'),_0x205e9b['enableCommand']('acceptSuggestion'),_0x205e9b['enableCommand']('discardSuggestion'),_0x205e9b['enableCommand']('acceptAllSuggestions'),_0x205e9b['enableCommand']('discardAllSuggestions'),_0x205e9b['enableCommand']('acceptSelectedSuggestions'),_0x205e9b['enableCommand']('discardSelectedSuggestions');}}class It extends _0x3e2428{['afterInit'](){const _0x33675a=this['editor'];if(!_0x33675a['plugins']['has']('ShiftEnter'))return;const _0x1cfff1=_0x33675a['plugins']['get']('TrackChangesEditing');_0x1cfff1['enableCommand']('shiftEnter'),_0x33675a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x33675a),{'priority':'high'}),_0x33675a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x33675a),{'priority':'high'}),_0x33675a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x166e65,_0x77b6f4,_0x3c213d)=>{_0x3c213d['options']['showSuggestionHighlights']&&je(_0x33675a,{'showActiveMarker':!0x1})(_0x166e65,_0x77b6f4,_0x3c213d);}),_0x1cfff1['descriptionFactory']['registerElementLabel']('softBreak',_0x1795e5=>c(_0x33675a['locale'],'ELEMENT_LINE_BREAK',_0x1795e5));}}function je(_0x2908a2,{showActiveMarker:_0x149a50=!0x0}={}){return(_0x47f063,_0x5b9691,_0x245aef)=>{const _0x40d7fe=_0x2908a2['plugins']['get']('TrackChangesEditing');if(!_0x245aef['consumable']['test'](_0x5b9691['markerRange'],_0x47f063['name']))return;const _0x2024ff=_0x2908a2['model'];for(const _0x1c4b83 of _0x5b9691['markerRange']['getItems']()){if(!_0x1c4b83['is']('element','softBreak'))continue;const _0x2526ec='deletion'==_0x5b9691['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1d6972,authorId:_0x5ce776}=_0x40d7fe['_splitMarkerName'](_0x5b9691['markerName']),_0x5534c0=_0x245aef['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2526ec,'data-suggestion':_0x1d6972,'data-author-id':_0x5ce776}),_0x34a567=_0x245aef['mapper']['toViewPosition'](_0x2024ff['createPositionBefore'](_0x1c4b83));_0x149a50&&_0x40d7fe['activeMarkers']['includes'](_0x5b9691['markerName'])&&_0x245aef['writer']['addClass']('ck-suggestion-marker--active',_0x5534c0),_0x245aef['writer']['insert'](_0x34a567,_0x5534c0),_0x245aef['mapper']['bindElementToMarker'](_0x5534c0,_0x5b9691['markerName']);}};}class _t extends _0x3e2428{['afterInit'](){const _0x5003be=this['editor'],_0xf747b3=_0x5003be['model'],_0x1d1f72=_0x5003be['locale'];if(!_0x5003be['plugins']['has']('StandardEditingModeEditing'))return;const _0x290902=_0x5003be['plugins']['get']('TrackChangesEditing'),_0x256669='restrictedEditingException',_0x385419=_0x5003be['commands']['get'](_0x256669);_0x290902['enableCommand'](_0x256669,(_0x2105e4,_0x2b6438={})=>{const _0x209bb2=_0xf747b3['document']['selection'];if(_0x209bb2['isCollapsed'])return void _0x2105e4(_0x2b6438);const _0x36e7b7=void 0x0!==_0x2b6438['forceValue']?_0x2b6438['forceValue']:!_0x385419['value'];_0xf747b3['change'](()=>{const _0x2e1c05=Array['from'](_0x209bb2['getRanges']());for(const _0x1b201a of _0x2e1c05){const _0x4df966=_0x36e7b7?[_0x1b201a]:io(_0x256669,_0x1b201a,_0xf747b3);for(const _0x29bf1c of _0x4df966)_0x290902['markInlineFormat'](_0x29bf1c,{'commandName':_0x256669,'commandParams':[{'forceValue':_0x36e7b7}]});}});}),_0x290902['descriptionFactory']['registerDescriptionCallback'](_0x1db0b0=>{if('formatBlock'!=_0x1db0b0['type']&&'formatInline'!=_0x1db0b0['type'])return;const {data:_0x30b9e9}=_0x1db0b0;return _0x30b9e9&&_0x30b9e9['commandName']==_0x256669?_0x30b9e9['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1d1f72,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x1d1f72,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x3e2428{['afterInit'](){const _0x5b8630=this['editor'];if(!_0x5b8630['plugins']['has']('Style')||!_0x5b8630['plugins']['has']('DataSchema'))return;const _0x4ae259=_0x5b8630['plugins']['get']('TrackChangesEditing'),_0x3a4d91=_0x5b8630['locale'],_0x57cec6=_0x5b8630['config']['get']('style')||{},_0x2b92ef=_0x5b8630['plugins']['get']('GeneralHtmlSupport'),_0x43a0dc=_0x5b8630['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5b8630['plugins']['get']('DataSchema'),_0x57cec6['definitions']);_0x4ae259['enableDefaultAttributesIntegration']('style');const _0x241fb3=new Set();for(const _0x893482 of _0x43a0dc['block']){const _0x13ffbd=_0x2b92ef['getGhsAttributeNameForElement'](_0x893482['element']);_0x241fb3['add'](_0x13ffbd);}const _0x1a7781=new Set();for(const _0x164dc0 of _0x43a0dc['inline']){const _0x162e90=_0x2b92ef['getGhsAttributeNameForElement'](_0x164dc0['element']);_0x1a7781['add'](_0x162e90);for(const _0x32eaf3 of _0x164dc0['ghsAttributes'])_0x1a7781['add'](_0x32eaf3);}for(const _0x336e5d of _0x241fb3)_0x4ae259['registerBlockAttribute'](_0x336e5d),_0x4ae259['descriptionFactory']['registerAttributeLabel'](_0x336e5d,c(_0x3a4d91,'FORMAT_STYLE'));for(const _0x4db9ed of _0x1a7781)_0x4ae259['registerInlineAttribute'](_0x4db9ed),_0x4ae259['descriptionFactory']['registerAttributeLabel'](_0x4db9ed,c(_0x3a4d91,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x206216=this['editor'],_0x112578=_0x206216['locale'];_0x206216['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x173b73=>{if('formatBlock'!=_0x173b73['type']&&'formatInline'!=_0x173b73['type'])return;const {data:_0x27f7b8}=_0x173b73;return _0x27f7b8&&'style'===_0x27f7b8['commandName']?_0x27f7b8['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x112578,'*Set\x20format:*\x20%0',_0x27f7b8['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x112578,'*Remove\x20format:*\x20%0',_0x27f7b8['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x3e2428{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xcc35ed){super(_0xcc35ed),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x39ff17=this['editor'],_0x4733cd=_0x39ff17['model']['document']['selection'];if(!_0x39ff17['plugins']['has']('TableEditing'))return;const _0x3165dd=_0x39ff17['locale'],_0x4c82ab=_0x39ff17['plugins']['get']('TrackChangesEditing'),_0x49e7d6=_0x39ff17['plugins']['get']('TableUtils');_0x4c82ab['descriptionFactory']['registerElementLabel']('table',_0x67f2a7=>c(_0x3165dd,'ELEMENT_TABLE',_0x67f2a7)),this['_setupColumnsRowsFixing'](),_0x4c82ab['enableCommand']('insertTable'),_0x4c82ab['enableCommand']('selectTableRow'),_0x4c82ab['enableCommand']('selectTableColumn');for(const _0x245760 of['insertTableRowAbove','insertTableRowBelow']){const _0x5d76d5=_0x39ff17['commands']['get'](_0x245760);_0x4c82ab['enableCommand'](_0x245760,_0x13e01d=>{_0x39ff17['model']['change'](_0x241b53=>{_0x13e01d();const _0xd9ce6a='above'===_0x5d76d5['order'],_0x404fb1=_0x49e7d6['getSelectionAffectedTableCells'](_0x4733cd),_0x115b2b=_0x49e7d6['getRowIndexes'](_0x404fb1),_0x3b21da=_0xd9ce6a?_0x115b2b['first']-0x1:_0x115b2b['last']+0x1,_0xe87e51=_0x404fb1[0x0]['findAncestor']('table'),_0x10bb88=_0x49e7d6['createTableWalker'](_0xe87e51,{'startRow':_0x3b21da,'endRow':_0x3b21da}),_0x61bb7c=Array['from'](_0x10bb88)['map'](_0x489d28=>_0x241b53['createRangeOn'](_0x489d28['cell']));_0x4c82ab['markMultiRangeInsertion'](_0x61bb7c,'tableRow');});});}for(const _0x546500 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5ca63d=_0x39ff17['commands']['get'](_0x546500);_0x4c82ab['enableCommand'](_0x546500,_0xfe6f2e=>{_0x39ff17['model']['change'](_0x23f51b=>{_0xfe6f2e();const _0xacd0f1='left'===_0x5ca63d['order'],_0x26006e=_0x49e7d6['getSelectionAffectedTableCells'](_0x4733cd),_0x1ce305=_0x49e7d6['getColumnIndexes'](_0x26006e),_0x1370a7=_0xacd0f1?_0x1ce305['first']-0x1:_0x1ce305['last']+0x1,_0x228cee=_0x26006e[0x0]['findAncestor']('table'),_0x589f15=_0x49e7d6['createTableWalker'](_0x228cee,{'startRow':0x0,'column':_0x1370a7,'includeAllSlots':!0x1}),_0x912a09=Array['from'](_0x589f15)['map'](_0xea4498=>_0x23f51b['createRangeOn'](_0xea4498['cell']));_0x4c82ab['markMultiRangeInsertion'](_0x912a09,'tableColumn');});});}for(const _0x215ebc of['removeTableRow','removeTableColumn']){const _0x31f019=_0x215ebc['substr'](0xb),_0x2b1c11=_0x31f019['toLowerCase'](),_0x22cb97=_0x2b1c11['substr'](0x0,0x3)+'span',_0x45becd='table'+_0x31f019,_0x301a4d='min'+_0x31f019,_0x2c6dc6='max'+_0x31f019;_0x4c82ab['enableCommand'](_0x215ebc,()=>{_0x39ff17['model']['change'](_0x437f64=>{const _0x1f491c=_0x49e7d6['getSelectionAffectedTableCells'](_0x4733cd),_0x14959d=_0x1f491c[0x0]['findAncestor']('table');let _0x1623be;if('removeTableRow'==_0x215ebc){const _0x2e547a=_0x49e7d6['getRowIndexes'](_0x1f491c);_0x1623be={'startRow':_0x2e547a['first'],'endRow':_0x2e547a['last'],'includeAllSlots':!0x0};}else{const _0x502e74=_0x49e7d6['getColumnIndexes'](_0x1f491c);_0x1623be={'startColumn':_0x502e74['first'],'endColumn':_0x502e74['last'],'includeAllSlots':!0x0};}const _0x4934b6=_0x49e7d6['createTableWalker'](_0x14959d,_0x1623be),_0x256f71=Array['from'](_0x4934b6)['map'](({cell:_0x3fce14})=>_0x3fce14),_0x484838=xe(_0x256f71['filter'](_0x5b0856=>_0x5b0856['hasAttribute'](_0x22cb97))),_0x26817b=xe(_0x256f71['filter'](_0x246d3e=>!_0x246d3e['hasAttribute'](_0x22cb97)))['map'](_0x4da916=>_0x437f64['createRangeOn'](_0x4da916)),_0x478fb6=_0x4c82ab['markMultiRangeDeletion'](_0x26817b,_0x45becd);if(_0x478fb6&&('tableRow'==_0x478fb6['subType']||'tableColumn'==_0x478fb6['subType'])){const _0x3be4a2=this['_getSuggestionCoords'](_0x478fb6);for(const _0xc68b23 of _0x484838){const _0x56ecc6=_0x437f64['createRangeOn'](_0xc68b23),_0x392709=_0x49e7d6['getCellLocation'](_0xc68b23),_0x46a063=_0xc68b23['getAttribute'](_0x22cb97)-0x1,_0x51ef17=_0x3be4a2[_0x301a4d],_0x5b3243=_0x3be4a2[_0x2c6dc6];_0x51ef17<=_0x392709[_0x2b1c11]&&_0x392709[_0x2b1c11]+_0x46a063<=_0x5b3243&&_0x478fb6['addRange'](_0x56ecc6);}}});});}function _0x2e1388(_0xb4b2ed){const _0x2ffea2=Array['from'](_0x4733cd['getRanges']())['map'](_0x5e5944=>_0x2daf6a['fromRange'](_0x5e5944));_0x39ff17['model']['change'](_0x1a1fd=>{const _0xef327=_0x1a1fd['batch'];_0xb4b2ed=_0xb4b2ed['filter'](_0x4068d2=>'$graveyard'!=_0x4068d2['root']['rootName']),_0x1a1fd['setSelection'](_0xb4b2ed),_0x39ff17['commands']['get']('removeTableRow')['refresh'](),_0x39ff17['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x39ff17['model']['enqueueChange'](()=>{_0x39ff17['model']['enqueueChange'](_0xef327,_0x1595c2=>{const _0x4d70bd=_0x2ffea2['filter'](_0x2e1f54=>'$graveyard'!=_0x2e1f54['root']['rootName']);_0x4d70bd['length']>0x0&&_0x1595c2['setSelection'](_0x4d70bd);for(const _0x41aa4a of _0x2ffea2)_0x41aa4a['detach']();});});});}function _0x49ca50(_0x533f5f){_0x39ff17['model']['change'](_0x4289a1=>{const _0x48385a=Array['from'](_0x4733cd['getRanges']())['map'](_0x20f39b=>_0x2daf6a['fromRange'](_0x20f39b)),_0x176c16=[];for(const _0x224a6d of _0x533f5f)for(const _0x35610b of _0x224a6d['getItems']({'shallow':!0x0}))_0x176c16['push'](_0x35610b);for(const _0xc0dbb2 of _0x176c16)'$graveyard'!=_0xc0dbb2['root']['rootName']&&(_0x4289a1['setSelection'](_0x4289a1['createPositionAt'](_0xc0dbb2,0x0)),_0x39ff17['commands']['get']('removeTableColumn')['refresh'](),_0x39ff17['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x48518e=_0x48385a['filter'](_0x484308=>'$graveyard'!=_0x484308['root']['rootName']);_0x48518e['length']>0x0&&_0x4289a1['setSelection'](_0x48518e);for(const _0xe21cca of _0x48385a)_0xe21cca['detach']();});}function _0x309c2a(_0xb9d856,_0x30dacb){return _0x30dacb['every'](_0x1b61c0=>_0xb9d856['some'](_0x2cb242=>_0x2cb242['end']['isEqual'](_0x1b61c0['start'])||_0x1b61c0['end']['isEqual'](_0x2cb242['start'])));}function _0xf67d7e(_0x13a6c7,_0x5030ba){return!_0x13a6c7['some'](_0x507b48=>_0x5030ba['some'](_0x3d3388=>_0x507b48['isIntersecting'](_0x3d3388)))&&_0x13a6c7['some'](_0x5648a4=>_0x5030ba['some'](_0x6921cd=>_0x5648a4['end']['isTouching'](_0x6921cd['start'])));}_0x39ff17['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xd9a662,_0x137a0b,_0x599b91)=>{if(!_0x599b91['options']['showSuggestionHighlights'])return;const _0x84c271=_0x137a0b['item'];if(!_0x84c271||!_0x84c271['is']('element','tableCell'))return;const _0x3f8b7c=_0x599b91['mapper']['toViewElement'](_0x84c271);if(_0x3f8b7c){const {id:_0x433fc0,authorId:_0x4d3519}=_0x4c82ab['_splitMarkerName'](_0x137a0b['markerName']);_0x18e857(_0x3f8b7c,_0x599b91['writer'],(_0x3a7177,_0x56601f,_0x436b2d)=>{_0x436b2d['addClass'](_0x9aaf0b(_0x56601f['classes']),_0x3a7177),_0x436b2d['setAttribute']('data-suggestion-id',_0x433fc0,_0x3a7177),_0x436b2d['setAttribute']('data-author-id',_0x4d3519,_0x3a7177);},(_0xabc7cf,_0x2f880c,_0x1bff9c)=>{_0x1bff9c['removeClass'](_0x9aaf0b(_0x2f880c['classes']),_0xabc7cf),_0x1bff9c['removeAttribute']('data-suggestion-id',_0xabc7cf),_0x1bff9c['removeAttribute']('data-author-id',_0xabc7cf);});}},{'priority':'highest'}),_0x4c82ab['descriptionFactory']['registerDescriptionCallback'](_0x3f772b=>{if('insertion'!=_0x3f772b['type']&&'deletion'!=_0x3f772b['type'])return;const _0x5de665=_0x3f772b['getContainedElement']();if(null!=_0x5de665&&_0x5de665['is']('element','table')){if('insertion'==_0x3f772b['type']){const _0x92acba=_0x3f772b['getItems']()['filter'](_0xadf4a2=>_0xadf4a2['is']('$textProxy'))['map'](_0x52bcae=>_0x52bcae['data']);if(_0x92acba['length'])return{'type':'insertion','content':c(_0x3165dd,'*Insert:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x92acba['join']('\x20')+'\x22'))};}if('deletion'==_0x3f772b['type']){const _0x3559e7=_0x3f772b['getItems']()['filter'](_0x4aa4d0=>_0x4aa4d0['is']('$textProxy'))['map'](_0x4a52f6=>_0x4a52f6['data']);if(_0x3559e7['length'])return{'type':'deletion','content':c(_0x3165dd,'*Remove:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3559e7['join']('\x20')+'\x22'))};}}}),_0x4c82ab['descriptionFactory']['registerDescriptionCallback'](_0x31c19f=>{if('tableRow'==_0x31c19f['subType']){const _0x14241c=_0x31c19f['getItems']()['filter'](_0x1a1665=>_0x1a1665['is']('$textProxy'))['map'](_0x8846d3=>_0x8846d3['data']),_0x510ad0=this['_getSuggestionCoords'](_0x31c19f),_0x1d3771=_0x510ad0['maxRow']-_0x510ad0['minRow']+0x1;if('insertion'==_0x31c19f['type'])return _0x14241c['length']?{'type':'insertion','content':c(_0x3165dd,'*Insert:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d3771,'\x22'+_0x14241c['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3165dd,'*Insert:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_ROW',_0x1d3771))};if('deletion'==_0x31c19f['type'])return _0x14241c['length']?{'type':'deletion','content':c(_0x3165dd,'*Remove:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d3771,'\x22'+_0x14241c['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3165dd,'*Remove:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_ROW',_0x1d3771))};}if('tableColumn'==_0x31c19f['subType']){const _0x22faa7=_0x31c19f['getItems']()['filter'](_0x47febd=>_0x47febd['is']('$textProxy'))['map'](_0x936e4a=>_0x936e4a['data']),_0x1dbda4=this['_getSuggestionCoords'](_0x31c19f),_0x391e09=_0x1dbda4['maxColumn']-_0x1dbda4['minColumn']+0x1;if('insertion'==_0x31c19f['type'])return _0x22faa7['length']?{'type':'insertion','content':c(_0x3165dd,'*Insert:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x391e09,'\x22'+_0x22faa7['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3165dd,'*Insert:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_COLUMN',_0x391e09))};if('deletion'==_0x31c19f['type'])return _0x22faa7['length']?{'type':'deletion','content':c(_0x3165dd,'*Remove:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x391e09,'\x22'+_0x22faa7['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3165dd,'*Remove:*\x20%0',c(_0x3165dd,'ELEMENT_TABLE_COLUMN',_0x391e09))};}}),_0x4c82ab['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2e1388),_0x4c82ab['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2e1388),_0x4c82ab['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x49ca50),_0x4c82ab['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x49ca50),_0x4c82ab['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x309c2a),_0x4c82ab['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x309c2a),_0x4c82ab['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xf67d7e),_0x4c82ab['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xf67d7e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1bc2f4=this['editor'],_0x4584c7=_0x1bc2f4['model']['document']['selection'];return(_0x31c575,_0x3e04ad)=>{_0x1bc2f4['model']['change'](_0x58b531=>{const {commandName:_0x318c35,commandParams:_0x3672f5}=_0x3e04ad;let _0x20b7d3=_0x31c575[0x0]['end']['nodeBefore'];_0x3672f5&&_0x3672f5[0x0]&&!0x1===_0x3672f5[0x0]['forceValue']&&(_0x20b7d3=_0x31c575[0x0]['start']['nodeAfter']);const _0x2bd0ef=_0x58b531['createRangeIn'](_0x20b7d3);if('$graveyard'==_0x2bd0ef['root']['rootName'])return;const _0x286e29=Array['from'](_0x4584c7['getRanges']())['map'](_0x545043=>_0x2daf6a['fromRange'](_0x545043));_0x58b531['setSelection'](_0x2bd0ef),_0x1bc2f4['commands']['get'](_0x318c35)['refresh'](),_0x3672f5['push']({'forceDefaultExecution':!0x0}),_0x1bc2f4['execute'](_0x318c35,..._0x3672f5);const _0xd331c8=_0x286e29['filter'](_0xc38730=>'$graveyard'!=_0xc38730['root']['rootName']);_0xd331c8['length']>0x0&&_0x58b531['setSelection'](_0xd331c8);for(const _0xe549ea of _0x286e29)_0xe549ea['detach']();});};}['_getCoordsForCells'](_0x2391bd){const _0x1b7676=this['editor']['plugins']['get']('TableUtils');let _0x49fefa=Number['MAX_SAFE_INTEGER'],_0x178926=Number['MIN_SAFE_INTEGER'],_0x145f8a=Number['MAX_SAFE_INTEGER'],_0x589766=Number['MIN_SAFE_INTEGER'];for(const _0x1f0555 of _0x2391bd){if('$graveyard'==_0x1f0555['root']['rootName'])continue;const {row:_0x40a4cd,column:_0x4c0153}=_0x1b7676['getCellLocation'](_0x1f0555),_0x7e9a14=_0x1f0555['hasAttribute']('rowspan')?_0x1f0555['getAttribute']('rowspan')-0x1:0x0,_0x5e3340=_0x1f0555['hasAttribute']('colspan')?_0x1f0555['getAttribute']('colspan')-0x1:0x0;_0x49fefa=_0x40a4cd<_0x49fefa?_0x40a4cd:_0x49fefa,_0x178926=_0x40a4cd+_0x7e9a14>_0x178926?_0x40a4cd+_0x7e9a14:_0x178926,_0x145f8a=_0x4c0153<_0x145f8a?_0x4c0153:_0x145f8a,_0x589766=_0x4c0153+_0x5e3340>_0x589766?_0x4c0153+_0x5e3340:_0x589766;}return{'minRow':_0x49fefa,'maxRow':_0x178926,'minColumn':_0x145f8a,'maxColumn':_0x589766};}['_setupColumnsRowsFixing'](){const _0x460084=this['editor'],_0x5476f5=_0x460084['plugins']['get']('TrackChangesEditing'),_0x96260c=_0x460084['plugins']['get']('TableUtils');_0x460084['model']['document']['on']('change:data',()=>{const _0xe24f07=Array['from'](_0x460084['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3926f7,data:_0x304ec7}of _0xe24f07){const {group:_0x25a942,id:_0x374339,subType:_0x21bdaa}=_0x5476f5['_splitMarkerName'](_0x3926f7);if('suggestion'!=_0x25a942)continue;if(null!=_0x304ec7['oldRange'])continue;const _0x26951c=_0x5476f5['getSuggestion'](_0x374339);this['_tablePostFixingSubtypes']['includes'](_0x21bdaa)&&this['_tableSuggestions']['add'](_0x26951c);}},{'priority':'low'});const _0x3e3e46=(_0x25a335,_0xb8abe0)=>{let _0x5b4f68=!0x1;const _0x38cd57=_0xb8abe0['createRangeOn'](_0x25a335),_0x4a129d=_0x25a335['findAncestor']('table'),_0x2ac14d=_0x96260c['getCellLocation'](_0x25a335);for(const _0x28fce7 of this['_tableSuggestions']){const _0x5f008c=_0x28fce7['subType'],_0x5c7e38=_0x5f008c['startsWith']('tablePaste'),_0x38945e=_0x5f008c['substr'](_0x5c7e38?0xa:0x5),_0x156a5f=_0x38945e['toLowerCase'](),_0x365242=_0x156a5f['substr'](0x0,0x3)+'span',_0x47450e='min'+_0x38945e,_0x47746d='max'+_0x38945e;if(!_0x28fce7['isInContent'])continue;if(_0x4a129d!=_0x28fce7['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x28fce7['isIntersectingWithRange'](_0x38cd57))continue;const _0x436f76=_0x25a335['hasAttribute'](_0x365242)?_0x25a335['getAttribute'](_0x365242)-0x1:0x0,_0x16dbb3=this['_getSuggestionCoords'](_0x28fce7),_0x4a82d5=_0x16dbb3[_0x47450e],_0x2aed7a=_0x16dbb3[_0x47746d];_0x4a82d5<=_0x2ac14d[_0x156a5f]&&_0x2ac14d[_0x156a5f]+_0x436f76<=_0x2aed7a&&(_0x28fce7['addRange'](_0x38cd57),_0x5b4f68=!0x0);}return _0x5b4f68;};_0x460084['model']['document']['registerPostFixer'](_0x3d49fb=>{let _0x387513=!0x1;for(const _0xcf30b3 of _0x460084['model']['document']['differ']['getChanges']())if('insert'==_0xcf30b3['type']){if('tableRow'==_0xcf30b3['name']){for(const _0x41570c of _0xcf30b3['position']['nodeAfter']['getChildren']())_0x387513=_0x387513||_0x3e3e46(_0x41570c,_0x3d49fb);}else'tableCell'==_0xcf30b3['name']&&(_0x387513=_0x387513||_0x3e3e46(_0xcf30b3['position']['nodeAfter'],_0x3d49fb));}return _0x387513;});}['_getSuggestionCoords'](_0x332c49){return this['_getCoordsForCells'](_0x332c49['getRanges']()['map'](_0x44c684=>_0x44c684['start']['nodeAfter']));}}function xe(_0x47c129){return Array['from'](new Set(_0x47c129)['values']());}class Nt extends _0x3e2428{static get['requires'](){return[Ct];}['afterInit'](){const _0xf32b96=this['editor'],_0x4284a7=_0xf32b96['model']['document']['selection'],_0x11ea71=_0xf32b96['locale'];if(!_0xf32b96['plugins']['has']('TableEditing'))return;const _0x451c61=_0xf32b96['plugins']['get']('TrackChangesEditing'),_0x17c2cf=_0xf32b96['plugins']['get']('TableUtils'),_0x571805=_0xf32b96['plugins']['get'](Ct);_0x571805['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x451c61['enableCommand']('mergeTableCells',()=>{const _0x386aa4=_0x17c2cf['getSelectionAffectedTableCells'](_0xf32b96['model']['document']['selection']);_0xf32b96['model']['change'](()=>{_0x451c61['markMultiRangeBlockFormat'](_0x386aa4,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xf32b96['commands']['get']('mergeTableCells')['on']('execute',(_0x1cc883,_0x56632e)=>{_0xf32b96['commands']['get']('trackChanges')['value']&&(_0x56632e['length']>0x0&&_0x56632e[_0x56632e['length']-0x1]&&_0x56632e[_0x56632e['length']-0x1]['forceDefaultExecution']||_0x451c61['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1cc883['stop']());},{'priority':'highest'});for(const _0xec25f0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4f3144=_0xf32b96['commands']['get'](_0xec25f0);_0x451c61['enableCommand'](_0xec25f0,()=>{const _0x13d50=_0xf32b96['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1cbe8d=>_0x1cbe8d['is']('element','tableCell')),_0x5d4773=_0x4f3144['value'];_0xf32b96['model']['change'](()=>{_0x451c61['markMultiRangeBlockFormat']([_0x13d50,_0x5d4773],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x463085 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5e4f54=_0xf32b96['commands']['get'](_0x463085);_0x451c61['enableCommand'](_0x463085,()=>{const _0x49e2c5=_0x17c2cf['getSelectionAffectedTableCells'](_0xf32b96['model']['document']['selection'])[0x0],_0x1f4c89=_0x49e2c5['findAncestor']('table'),{column:_0x17fe1f,row:_0x58958e}=_0x17c2cf['getCellLocation'](_0x49e2c5);let _0x492d2e=[];if('horizontally'==_0x5e4f54['direction']){const _0x3d1709=_0x17c2cf['createTableWalker'](_0x1f4c89,{'startRow':_0x58958e,'endRow':_0x58958e,'includeAllSlots':!0x0});_0x492d2e=Array['from'](_0x3d1709)['map'](_0x2bb103=>_0x2bb103['cell']);}else{const _0x3dd611=_0x17c2cf['createTableWalker'](_0x1f4c89,{'column':_0x17fe1f,'includeAllSlots':!0x0});_0x492d2e=Array['from'](_0x3dd611)['map'](_0x53f115=>_0x53f115['cell']);}_0xf32b96['model']['change'](_0x3201d2=>{_0x451c61['markBlockFormat'](_0x3201d2['createRangeOn'](_0x49e2c5),{'commandName':_0x463085,'commandParams':[]},_0x492d2e,_0x463085);});});}_0x451c61['descriptionFactory']['registerDescriptionCallback'](_0x4568ba=>{if('formatBlock'!=_0x4568ba['type']&&'formatInline'!=_0x4568ba['type'])return;const {data:_0x362d9a}=_0x4568ba;return _0x362d9a&&'mergeTableCells'==_0x362d9a['commandName']?{'type':'format','content':c(_0x11ea71,'*Merge\x20cells*')}:void 0x0;}),_0x451c61['descriptionFactory']['registerDescriptionCallback'](_0x5d4a7d=>{if('formatBlock'!=_0x5d4a7d['type']&&'formatInline'!=_0x5d4a7d['type'])return;const {data:_0x16290b}=_0x5d4a7d;return _0x16290b?'splitTableCellVertically'==_0x16290b['commandName']?{'type':'format','content':c(_0x11ea71,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x16290b['commandName']?{'type':'format','content':c(_0x11ea71,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5f43d5=_0x571805['_acceptFormatSuggestionCallbackFactory']();for(const _0x232ac1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x451c61['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x232ac1,'accept',_0x5f43d5);for(const _0x4b146b of['splitTableCellVertically','splitTableCellHorizontally'])_0x451c61['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4b146b,'accept',_0x5f43d5);_0x451c61['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xdfb969=>{_0xf32b96['model']['change'](_0x32c1fd=>{const _0x2bae54=Array['from'](_0x4284a7['getRanges']())['map'](_0xa906d8=>_0x2daf6a['fromRange'](_0xa906d8));_0x32c1fd['setSelection'](_0xdfb969),_0xf32b96['commands']['get']('mergeTableCells')['refresh'](),_0xf32b96['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x95f4f8=_0x2bae54['filter'](_0x4b7f1e=>'$graveyard'!=_0x4b7f1e['root']['rootName']);_0x95f4f8['length']>0x0&&_0x32c1fd['setSelection'](_0x95f4f8);for(const _0x8f9f36 of _0x2bae54)_0x8f9f36['detach']();});});for(const _0x31e0ef of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x549a44=_0xf32b96['commands']['get'](_0x31e0ef);_0x549a44['on']('set:isEnabled',(_0x657461,_0x5a9c8d,_0xf55b92)=>{if(_0xf55b92){const _0x2c8513=_0xf32b96['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5aa46d=>_0x5aa46d['is']('element','tableCell'));this['_areMergableCells'](_0x549a44['value'],_0x2c8513)||(_0x657461['return']=!0x1,_0x657461['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x17e381=this['editor']['commands']['get']('mergeTableCells'),_0x351541=this['editor']['plugins']['get']('TableUtils');if(!_0x17e381['isEnabled'])return!0x1;const _0x568bac=_0x351541['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4ce8fd of _0x568bac)for(const _0x49ab31 of _0x568bac)if(_0x4ce8fd!=_0x49ab31&&!this['_areMergableCells'](_0x4ce8fd,_0x49ab31))return!0x1;return!0x0;}['_areMergableCells'](_0x94acd1,_0x135ca9){const _0x5cba86=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ac246=this['editor']['model']['createRangeOn'](_0x94acd1),_0x5bb9b9=this['editor']['model']['createRangeOn'](_0x135ca9),_0xd328e5=new Set(),_0x1bfa5c=new Set();for(const _0x9075fa of _0x5cba86['getSuggestions']())if(('insertion'==_0x9075fa['type']||'deletion'==_0x9075fa['type']||'mergeTableCells'==_0x9075fa['subType'])&&_0x9075fa['isInContent']){for(const _0x17ce3d of _0x9075fa['getRanges']())_0x17ce3d['containsRange'](_0x3ac246,!0x0)&&_0xd328e5['add'](_0x9075fa['type']+':'+_0x9075fa['author']['id']),_0x17ce3d['containsRange'](_0x5bb9b9,!0x0)&&_0x1bfa5c['add'](_0x9075fa['type']+':'+_0x9075fa['author']['id']);}if(_0xd328e5['size']!=_0x1bfa5c['size'])return!0x1;for(const _0x4f22d3 of _0xd328e5)if(!_0x1bfa5c['has'](_0x4f22d3))return!0x1;return!0x0;}}class Dt extends _0x3e2428{static get['requires'](){return[Ct];}['afterInit'](){const _0x3d52b4=this['editor'];if(!_0x3d52b4['plugins']['has']('TableEditing'))return;const _0x233943=_0x3d52b4['locale'],_0x4276f5=_0x3d52b4['plugins']['get']('TrackChangesEditing');_0x4276f5['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4276f5['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4276f5['registerBlockAttribute']('headingRows'),_0x4276f5['registerBlockAttribute']('headingColumns'),_0x4276f5['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x233943,'FORMAT_HEADER_ROW')),_0x4276f5['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x233943,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x101874=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54f3e3=this['editor']['plugins']['get']('TableUtils'),_0x4a2aaa=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x25417d({showActiveMarker:_0x54d961=!0x0,setDataAttribute:_0x58df10=!0x0}={}){return(_0x2ba39,_0xdb818f,_0x28c468)=>{const {type:_0x347bb,id:_0x19f745}=_0x101874['_splitMarkerName'](_0xdb818f['markerName']),_0x2da1c4=_0x101874['getSuggestion'](_0x19f745),_0x27b2b6=_0x2da1c4['data'];if('formatBlock'!=_0x2da1c4['type']||!_0x27b2b6||'setTableColumnHeader'!=_0x27b2b6['commandName'])return;if(_0xdb818f['item'])return void _0x2ba39['stop']();if(!_0x28c468['consumable']['consume'](_0xdb818f['markerRange'],_0x2ba39['name']))return;const _0x3d200e=_0xdb818f['markerRange']['start']['nodeAfter'],_0x58a4fc=_0xdb818f['markerRange']['end']['nodeBefore'],_0x3e1020=_0x3d200e['parent']['parent'],{column:_0x4f80f9}=_0x54f3e3['getCellLocation'](_0x3d200e),{column:_0x1e8ca9}=_0x54f3e3['getCellLocation'](_0x58a4fc);for(let _0x2f50cd=_0x4f80f9;_0x2f50cd<=_0x1e8ca9;_0x2f50cd++){const _0x955e19=_0x54f3e3['createTableWalker'](_0x3e1020,{'column':_0x2f50cd,'includeAllSlots':!0x1});for(const _0x58d474 of _0x955e19){const _0x294c95=_0x58d474['cell'],_0x76aac4=_0x28c468['mapper']['toViewElement'](_0x294c95);_0x28c468['writer']['addClass']('ck-suggestion-marker-'+_0x347bb,_0x76aac4),_0x58df10&&_0x28c468['writer']['setAttribute']('data-suggestion',_0x19f745,_0x76aac4),_0x28c468['mapper']['bindElementToMarker'](_0x76aac4,_0xdb818f['markerName']),_0x54d961&&(_0x101874['activeMarkers']['includes'](_0xdb818f['markerName'])?_0x28c468['writer']['addClass']('ck-suggestion-marker--active',_0x76aac4):_0x28c468['writer']['removeClass']('ck-suggestion-marker--active',_0x76aac4));}}};}_0x101874['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4a2aaa),_0x101874['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4a2aaa),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x25417d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2abf32,_0x1b663b,_0x424356)=>{_0x424356['options']['showSuggestionHighlights']&&_0x25417d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2abf32,_0x1b663b,_0x424356);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x54483f,_0x5e19d0,_0x5643b8)=>{const {type:_0x4bf023,id:_0x2ca180}=_0x101874['_splitMarkerName'](_0x5e19d0['markerName']),_0x52bed7=_0x101874['getSuggestion'](_0x2ca180),_0x2a4a20=_0x52bed7['data'];if('formatBlock'!=_0x52bed7['type']||!_0x2a4a20||'setTableColumnHeader'!=_0x2a4a20['commandName'])return;const _0x378ce9=_0x5643b8['mapper']['markerNameToElements'](_0x5e19d0['markerName']);if(_0x378ce9){for(const _0x598ac3 of _0x378ce9)_0x5643b8['writer']['removeClass']('ck-suggestion-marker-'+_0x4bf023,_0x598ac3),_0x5643b8['writer']['removeClass']('ck-suggestion-marker--active',_0x598ac3),_0x5643b8['writer']['removeAttribute']('data-suggestion',_0x598ac3),_0x5643b8['mapper']['unbindElementFromMarkerName'](_0x598ac3,_0x5e19d0['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bf754=this['editor'],_0xe4edce=_0x1bf754['locale'];function _0x3fb5c2(_0x5daf67){return{'type':'format','content':c(_0xe4edce,'*Format:*\x20%0',_0x5daf67)};}_0x1bf754['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x409c5b=>{if('formatBlock'!=_0x409c5b['type'])return;const {data:_0x1320f3}=_0x409c5b;if(_0x1320f3){if('setTableRowHeader'==_0x1320f3['commandName']){const _0x36fde5=_0x1320f3['commandParams'][0x0]['forceValue'];return _0x3fb5c2(c(_0xe4edce,_0x36fde5?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1320f3['commandName']){const _0x169f5c=_0x1320f3['commandParams'][0x0]['forceValue'];return _0x3fb5c2(c(_0xe4edce,_0x169f5c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x3e2428{['afterInit'](){const _0x226e0e=this['editor'],_0x49e886=_0x226e0e['locale'],_0x4393ca=_0x226e0e['plugins']['get']('TrackChangesEditing');function _0xe4d885(_0x2f804e){return{'type':'format','content':''+c(_0x49e886,'*Set\x20table\x20type:*\x20%0',_0x2f804e)};}_0x226e0e['plugins']['has']('TableLayout')&&(_0x4393ca['enableCommand']('insertTableLayout'),_0x4393ca['enableDefaultAttributesIntegration']('tableType'),_0x4393ca['registerBlockAttribute']('tableType'),_0x4393ca['descriptionFactory']['registerElementLabel'](_0x28ab2a=>_0x28ab2a['is']('element','table')&&'layout'===_0x28ab2a['getAttribute']('tableType'),_0x4161ab=>c(_0x49e886,'ELEMENT_LAYOUT_TABLE',_0x4161ab)),_0x4393ca['descriptionFactory']['registerDescriptionCallback'](_0x396402=>{const {data:_0x1b3087}=_0x396402;if(_0x1b3087&&'tableType'==_0x1b3087['key'])switch(_0x1b3087['newValue']){case'layout':return _0xe4d885(c(_0x49e886,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xe4d885(c(_0x49e886,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x153535=>[_0x153535,null]));class $t extends _0x3e2428{static get['requires'](){return[Ct];}['afterInit'](){const _0x9aaa82=this['editor'];if(!_0x9aaa82['plugins']['has']('TableClipboard'))return;const _0x27528a=_0x9aaa82['plugins']['get']('TrackChangesEditing'),_0x5bacd0=_0x9aaa82['plugins']['get']('TableUtils'),_0x8de5f2=_0x9aaa82['plugins']['get'](Ct),_0x4533dd=_0x9aaa82['plugins']['get']('TableClipboard'),_0x4f31c8=_0x9aaa82['plugins']['get']('TableSelection'),_0xb6bf39=_0x9aaa82['plugins']['get'](_0x4a16f7);_0x8de5f2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x9aaa82['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x9aaa82['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x489c5e=null,_0x250976=!0x1;_0xb6bf39['on']('contentInsertion',(_0x2d1dc5,_0x46c1db)=>{_0x250976='paste'===_0x46c1db['method'];}),_0x9aaa82['model']['on']('insertContent',(_0x1001a5,_0x2c404b)=>{if(!_0x250976&&null===_0x4f31c8['getSelectedTableCells']())return;const [_0x228aac,_0x183c20]=_0x2c404b,_0x27c0e4=_0x2c404b[_0x2c404b['length']-0x1];_0x27c0e4&&_0x27c0e4['forceDefaultExecution']||_0x27528a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1eded8,_0xa720f9,_0x1fdfb1,_0x2b631a,_0x5986e3){if(_0xa720f9&&!_0xa720f9['is']('documentSelection'))return!0x1;const _0x2d6f94=_0x5986e3['getTableIfOnlyTableInContent'](_0x1eded8,_0x1fdfb1);if(!_0x2d6f94||!He(_0x2d6f94,void 0x0,_0x2b631a))return!0x1;const _0x349366=_0x2b631a['getSelectionAffectedTableCells'](_0x1fdfb1['document']['selection']);if(!_0x349366['length'])return!0x1;const _0x1b9e12=_0x349366[0x0]['findAncestor']('table'),_0x2d28ad=_0x2b631a['getRowIndexes'](_0x349366),_0x5ba71d=_0x2b631a['getColumnIndexes'](_0x349366),_0x34266a={'startRow':_0x2d28ad['first'],'endRow':_0x2d28ad['last'],'startColumn':_0x5ba71d['first'],'endColumn':_0x5ba71d['last']};return 0x1==_0x349366['length']&&(_0x34266a['endRow']+=_0x2b631a['getRows'](_0x2d6f94)-0x1,_0x34266a['endColumn']+=_0x2b631a['getColumns'](_0x2d6f94)-0x1),He(_0x1b9e12,_0x34266a,_0x2b631a);}(_0x228aac,_0x183c20,_0x9aaa82['model'],_0x5bacd0,_0x4533dd)&&(_0x1001a5['stop'](),_0x489c5e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x9aaa82['model']['change'](()=>{_0x9aaa82['model']['insertContent'](_0x2c404b[0x0],_0x2c404b[0x1],_0x2c404b[0x2],{'forceDefaultExecution':!0x0});const _0x24c628=_0x32b8bc(),{rowInsertionRanges:_0x39913e,columnInsertionRanges:_0xd7ba0b,insertionRanges:_0x73d60e,deletionRanges:_0x214b8e,cells:_0x520b59}=_0x489c5e;_0x39913e['length']&&_0x27528a['markMultiRangeInsertion'](_0x39913e,'tablePasteRow',{'tablePasteChainId':_0x24c628}),_0xd7ba0b['length']&&_0x27528a['markMultiRangeInsertion'](_0xd7ba0b,'tablePasteColumn',{'tablePasteChainId':_0x24c628}),_0x73d60e['length']&&(_0x27528a['markMultiRangeInsertion'](_0x73d60e,'tablePaste',{'tablePasteChainId':_0x24c628,'skipNestingCheck':!0x0}),_0x73d60e['forEach'](_0x9f9269=>_0x9f9269['detach']?.())),_0x214b8e['length']&&(_0x27528a['markMultiRangeDeletion'](_0x214b8e,'tablePaste',{'tablePasteChainId':_0x24c628,'skipNestingCheck':!0x0}),_0x214b8e['forEach'](_0x123a70=>_0x123a70['detach']?.()));const _0x21ba59=_0x27528a['markMultiRangeBlockFormat'](_0x520b59['map'](({element:_0x2424da})=>_0x2424da),{'formatGroupId':_0x32b8bc()},[],'tablePasteCell',{'tablePasteChainId':_0x24c628});if(_0x21ba59){const _0x93f280=_0x21ba59['getMarkers'](),_0x243cc1=[];for(const {element:_0x1fb22a,attributes:_0x539bbb}of _0x520b59){if(!_0x539bbb)continue;const _0x3ec989=_0x9aaa82['model']['createRangeOn'](_0x1fb22a),_0xe09b83=_0x93f280['find'](_0x9737b9=>_0x9737b9['getRange']()['isEqual'](_0x3ec989));_0xe09b83&&_0x243cc1['push']([_0xe09b83['name'],_0x539bbb]);}_0x243cc1['length']&&_0x21ba59['setAttribute']('markerAttributes',Object['fromEntries'](_0x243cc1));}_0x489c5e=null;}));},{'priority':_0x1180b2['high']+0xa}),_0xb6bf39['on']('contentInsertion',()=>{_0x250976=!0x1;},{'priority':'lowest'}),_0x9aaa82['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x41b1c7,_0x315f28)=>{const [_0x46fbd5,_0x36ebc1,,_0x477670]=_0x315f28;if(!_0x489c5e)return;_0x41b1c7['stop']();const _0x298c94=_0x46fbd5['cell'],_0x5a2e54=_0x36ebc1,_0x50ca4a=De(_0x298c94),_0x493eec=De(_0x5a2e54);_0x41b1c7['return']=_0x298c94;let _0x332367=null,_0x1086fc=null;if(_0x493eec||_0x50ca4a){if(_0x50ca4a&&!_0x493eec){_0x477670['remove'](_0x298c94['getChild'](0x0));for(const _0x1600fe of Array['from'](_0x5a2e54['getChildren']()))_0x477670['insert'](_0x1600fe,_0x298c94,'end');const _0x1f0f94=_0x489c5e['rowInsertionIndexes']['includes'](_0x46fbd5['row']),_0x4112af=_0x489c5e['columnInsertionIndexes']['includes'](_0x46fbd5['column']);_0x1f0f94||_0x4112af||(_0x332367=_0x2daf6a['fromRange'](_0x477670['createRangeIn'](_0x298c94)));}else _0x493eec&&!_0x50ca4a&&(_0x1086fc=_0x477670['createRangeIn'](_0x298c94));}else{const _0x472d9c=_0x477670['createElement']('tableCellSuggestion'),_0x396fc7=_0x477670['createElement']('tableCellSuggestion');_0x477670['wrap'](_0x477670['createRangeIn'](_0x298c94),_0x396fc7),_0x477670['insert'](_0x472d9c,_0x298c94,0x0);for(const _0x2f7d3b of Array['from'](_0x5a2e54['getChildren']()))_0x477670['insert'](_0x2f7d3b,_0x472d9c,'end');_0x332367=_0x2daf6a['fromRange'](_0x477670['createRangeOn'](_0x472d9c)),_0x1086fc=_0x2daf6a['fromRange'](_0x477670['createRangeOn'](_0x396fc7));}const _0x4c8d30=Array['from'](_0x5a2e54['getAttributes']())['filter'](([_0x311f77])=>Oe['includes'](_0x311f77));_0x489c5e['cells']['push']({'element':_0x298c94,'attributes':_0x4c8d30['length']?Object['fromEntries'](_0x4c8d30):null}),_0x332367&&_0x489c5e['insertionRanges']['push'](_0x332367),_0x1086fc&&_0x489c5e['deletionRanges']['push'](_0x1086fc);},{'priority':'high'}),_0x5bacd0['on']('insertColumns',(_0x339ea1,_0x4655e2)=>{const [_0x3c9750,_0x5e8fcd={}]=_0x4655e2;if(!_0x489c5e)return;const _0x54fd12=_0x5e8fcd['at']||0x0,_0x10a021=_0x5e8fcd['columns']||0x1;_0x489c5e['columnInsertionIndexes']=new Array(_0x10a021)['fill'](_0x54fd12)['map']((_0x5abe84,_0x82dabf)=>_0x5abe84+_0x82dabf);for(const {cell:_0x549fdd}of _0x5bacd0['createTableWalker'](_0x3c9750,{'startColumn':_0x54fd12,'endColumn':_0x54fd12+_0x10a021-0x1}))_0x489c5e['columnInsertionRanges']['push'](_0x9aaa82['model']['createRangeOn'](_0x549fdd));},{'priority':'low'}),_0x5bacd0['on']('insertRows',(_0x522d36,_0x3bd48f)=>{const [_0x1fbb90,_0x52bb44={}]=_0x3bd48f;if(!_0x489c5e)return;const _0x1b90ca=_0x52bb44['at']||0x0,_0x4af033=_0x52bb44['rows']||0x1;_0x489c5e['rowInsertionIndexes']=new Array(_0x4af033)['fill'](_0x1b90ca)['map']((_0x3f5d3b,_0x4c2213)=>_0x3f5d3b+_0x4c2213);for(const {cell:_0x32dd54}of _0x5bacd0['createTableWalker'](_0x1fbb90,{'startRow':_0x1b90ca,'endRow':_0x1b90ca+_0x4af033-0x1}))_0x489c5e['rowInsertionRanges']['push'](_0x9aaa82['model']['createRangeOn'](_0x32dd54));},{'priority':'low'}),_0x27528a['descriptionFactory']['registerDescriptionCallback'](_0x46af93=>{if(_0x46af93['subType']&&_0x46af93['subType']['startsWith']('tablePaste'))return _0x46af93['previous']?{}:{'type':'insertion','content':c(_0x9aaa82['locale'],'*Replace\x20table\x20cells*')};});const _0x308f46=()=>!0x1;for(const _0x104547 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x27528a['_suggestionFactory']['registerCustomCallback']('insertion',_0x104547,'join',_0x308f46),_0x27528a['_suggestionFactory']['registerCustomCallback']('deletion',_0x104547,'join',_0x308f46),_0x27528a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x104547,'join',_0x308f46);_0x27528a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x308f46),_0x27528a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3b8eb3,_0x1f0fd0,_0x1bf79f)=>{const _0x19e91d=_0x3b8eb3['map'](_0x476c11=>_0x476c11['getContainedElement']())['filter'](_0x479373=>_0x479373),_0x22fbad=new Map(_0x19e91d['map'](_0xa8466e=>[_0xa8466e,null]));if(_0x489c5e){for(const {element:_0xa0290b,attributes:_0x5675a1}of _0x489c5e['cells'])_0x5675a1&&_0x22fbad['set'](_0xa0290b,_0x5675a1);}else{if(_0x1bf79f&&_0x1bf79f['markerAttributes'])for(const [_0x53d371,_0x57d1bf]of Object['entries'](_0x1bf79f['markerAttributes'])){const _0x52ad76=_0x9aaa82['model']['markers']['get'](_0x53d371),_0x8bbe72=_0x52ad76?_0x52ad76['getRange']()['getContainedElement']():null;_0x8bbe72&&_0x22fbad['set'](_0x8bbe72,_0x57d1bf);}}_0x9aaa82['model']['change'](_0x30316f=>{for(const [_0x2f3192,_0x29eeac]of _0x22fbad)_0x30316f['setAttributes']({...Ue,..._0x29eeac},_0x2f3192);});});const _0x1c03f7=(_0x2451a2,_0x24c171)=>{_0x27528a['_suggestionFactory']['registerCustomCallback'](_0x2451a2,'tablePaste',_0x24c171,(_0x126d29,_0x1708de,_0x56fa69)=>{_0x9aaa82['model']['change'](_0x45a2b8=>{const _0x19f26e=[];for(const _0x331e5f of _0x126d29){const _0x9ac80a=_0x331e5f['start']['nodeAfter'];_0x9ac80a['is']('element','tableCellSuggestion')&&_0x19f26e['push'](_0x9ac80a);}_0x27528a['_suggestionFactory']['getSuggestionCallback'](_0x2451a2,null,_0x24c171)(_0x126d29,_0x1708de,_0x56fa69);for(const _0x287d2a of _0x19f26e)'$graveyard'!=_0x287d2a['root']['rootName']&&_0x45a2b8['unwrap'](_0x287d2a);});});};_0x1c03f7('insertion','accept'),_0x1c03f7('insertion','discard'),_0x1c03f7('deletion','accept'),_0x1c03f7('deletion','discard'),_0x27528a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x33fedd=>{const _0x498a60=_0x33fedd['map'](_0x4f7922=>_0x4f7922['getContainedElement']()),_0x1f584b=_0x498a60[0x0]['findAncestor']('table'),{minRow:_0x312205,maxRow:_0x2b8df6}=_0x8de5f2['_getCoordsForCells'](_0x498a60);_0x5bacd0['removeRows'](_0x1f584b,{'at':_0x312205,'rows':_0x2b8df6-_0x312205+0x1});}),_0x27528a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x52e0a3=>{const _0x51487d=_0x52e0a3['map'](_0x4fafd7=>_0x4fafd7['getContainedElement']()),_0x50ab31=_0x51487d[0x0]['findAncestor']('table'),{minColumn:_0x41191e,maxColumn:_0x26df1b}=_0x8de5f2['_getCoordsForCells'](_0x51487d);_0x5bacd0['removeColumns'](_0x50ab31,{'at':_0x41191e,'columns':_0x26df1b-_0x41191e+0x1});});const _0x388b42=(_0x4e61b1,_0x3ee002)=>{if(!_0x3ee002['subType']||!_0x3ee002['subType']['startsWith']('tablePaste'))return;const _0x3c1bfc=_0x3ee002['attributes']['tablePasteChainId'],_0x18d553=_0x27528a['getSuggestions']()['filter'](_0x26d67f=>_0x26d67f['isInContent']&&_0x26d67f['attributes']&&_0x26d67f['attributes']['tablePasteChainId']==_0x3c1bfc);_0x18d553['length']&&_0x3ee002['getAllAdjacentSuggestions']()['length']!=_0x18d553['length']&&_0x18d553['reduce']((_0x1b1eff,_0x1c3cbb)=>(_0x1b1eff['next']=_0x1c3cbb,_0x1c3cbb['previous']=_0x1b1eff,_0x1c3cbb));};function _0x1aab83(_0x15b590,_0x1b31e2=!0x0){const {id:_0x52b8bf,authorId:_0x1a0b72}=_0x27528a['_splitMarkerName'](_0x15b590['markerName']),_0x1dbb26=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x171271=_0x27528a['activeMarkers']['includes'](_0x15b590['markerName']);return _0x171271&&_0x1dbb26['push']('ck-suggestion-marker--active'),{'classes':_0x1dbb26,'attributes':{'data-suggestion':_0x52b8bf,'data-author-id':_0x1a0b72},'priority':_0x171271&&_0x1b31e2?0xbc2:0xbb8};}_0x27528a['on']('suggestionLoaded',_0x388b42,{'priority':'high'}),_0x27528a['on']('suggestionUnloaded',_0x388b42,{'priority':'high'}),_0x9aaa82['model']['document']['registerPostFixer'](()=>{let _0x3ab31a=!0x1;const _0x1743c2=Array['from'](_0x9aaa82['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10ffe2,data:_0x581f0c}of _0x1743c2){const {group:_0x32646e,type:_0x3df543,id:_0x497ae7}=_0x27528a['_splitMarkerName'](_0x10ffe2);if('suggestion'!=_0x32646e||'deletion'!=_0x3df543||_0x581f0c['oldRange'])continue;if(!_0x27528a['hasSuggestion'](_0x497ae7))continue;const _0x4e0467=_0x27528a['getSuggestion'](_0x497ae7)['getRanges'](),_0x343248=_0x9aaa82['plugins']['get']('Users')['me'];for(const _0xa9a1c3 of _0x27528a['getSuggestions']()){if(!_0xa9a1c3['isInContent']||_0xa9a1c3['author']!=_0x343248)continue;if('formatBlock'!=_0xa9a1c3['type']||'tablePasteCell'!=_0xa9a1c3['subType'])continue;if(_0xa9a1c3['getRanges']()['every'](_0x34e541=>_0x4e0467['some'](_0x408dc6=>_0x408dc6['containsRange'](_0x34e541,!0x0)))){for(const _0x22fb7c of _0xa9a1c3['getAllAdjacentSuggestions']())_0x22fb7c['isInContent']&&(_0x22fb7c['discard'](),_0x3ab31a=!0x0);}}}return _0x3ab31a;}),_0x9aaa82['model']['document']['registerPostFixer'](_0x5e6f67=>{const _0x361f8c=_0x9aaa82['commands']['get']('redo');if(!_0x361f8c||!_0x361f8c['_createdBatches']['has'](_0x5e6f67['batch']))return!0x1;let _0x5a441a=!0x1;const _0x5e4a5f=_0x9aaa82['plugins']['get']('Users')['me'],_0x3e6fd8=_0x9aaa82['model']['document']['differ']['getChanges'](),_0x552d54=Array['from'](_0x9aaa82['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4982a4,data:_0x48f9e7})=>{const {group:_0x294da8,subType:_0x1f8013,authorId:_0x1fbd0f}=_0x27528a['_splitMarkerName'](_0x4982a4);return'suggestion'==_0x294da8&&'tablePaste'==_0x1f8013&&_0x1fbd0f==_0x5e4a5f['id']&&!_0x48f9e7['oldRange'];});for(const _0x2c3a11 of _0x3e6fd8){if('insert'!=_0x2c3a11['type']||'tableCellSuggestion'!=_0x2c3a11['name']||0x1!=_0x2c3a11['length'])continue;const _0x4ef0a4=_0x5e6f67['createRange'](_0x2c3a11['position'],_0x2c3a11['position']['getShiftedBy'](0x1));if(!_0x552d54['find'](({data:_0x15d525})=>_0x15d525['newRange']['isEqual'](_0x4ef0a4))){for(const {name:_0xfdc56d,data:_0x1a3864}of _0x552d54)if(_0x4ef0a4['containsRange'](_0x1a3864['newRange'])){_0x5e6f67['updateMarker'](_0xfdc56d,{'range':_0x4ef0a4}),_0x5a441a=!0x0;break;}}}return _0x5a441a;}),_0x9aaa82['model']['document']['registerPostFixer'](_0x46fa4a=>{let _0x2ef1df=!0x1;const _0x1d9742=_0x9aaa82['plugins']['get']('Users')['me'],_0x208fd2=_0x27528a['getSuggestions']()['filter'](_0x3c1324=>_0x3c1324['isInContent']&&_0x3c1324['author']==_0x1d9742),_0x41eb55=new Set(),_0x1cb64=new Set();for(const _0x4a7dfb of _0x208fd2)if('tablePaste'==_0x4a7dfb['subType'])for(const _0x5e98c0 of _0x4a7dfb['getMarkers']()){const _0xfcc4a8=_0x5e98c0['getRange']()['getContainedElement']();if(_0xfcc4a8){if(_0xfcc4a8['is']('element','tableCellSuggestion')&&De(_0xfcc4a8)){_0x4a7dfb['removeMarker'](_0x5e98c0['name']),_0x41eb55['add'](_0xfcc4a8),_0x2ef1df=!0x0;const _0x1c556f=_0xfcc4a8['nextSibling'],_0x3fea72=_0xfcc4a8['previousSibling'],_0x5c815f=_0x1c556f&&_0x1c556f['is']('element','tableCellSuggestion'),_0x5f0747=_0x3fea72&&_0x3fea72['is']('element','tableCellSuggestion');_0x5c815f&&!_0x41eb55['has'](_0x1c556f)&&_0x1cb64['add'](_0x1c556f),_0x5f0747&&!_0x41eb55['has'](_0x3fea72)&&_0x1cb64['add'](_0x3fea72);}else _0xfcc4a8['is']('element','paragraph')&&_0xfcc4a8['isEmpty']&&(_0x4a7dfb['removeMarker'](_0x5e98c0['name']),_0x2ef1df=!0x0);}}else{if('tablePasteCell'==_0x4a7dfb['subType']){if(!_0x4a7dfb['attributes']||!_0x4a7dfb['attributes']['tablePasteChainId'])continue;const _0x1cdac7=_0x4a7dfb['attributes']['markerAttributes'];if(_0x1cdac7&&Object['keys'](_0x1cdac7)['length'])continue;const _0x5bae43=_0x4a7dfb['attributes']['tablePasteChainId'];let _0xc4ffb=!0x0,_0x10e884=!0x0;for(const _0xb9182b of _0x208fd2)if(_0xb9182b['subType']&&_0xb9182b['subType']['startsWith']('tablePaste')){if(!_0xb9182b['attributes']['tablePasteChainId']){_0x10e884=!0x1;break;}if(_0xb9182b['id']!=_0x4a7dfb['id']&&_0xb9182b['attributes']['tablePasteChainId']==_0x5bae43){_0xc4ffb=!0x1;break;}}_0x10e884&&_0xc4ffb&&(_0x4a7dfb['removeMarkers'](),_0x2ef1df=!0x0);}}for(const _0x30a7ef of _0x41eb55)_0x46fa4a['remove'](_0x30a7ef);for(const _0x16551b of _0x1cb64)_0x46fa4a['unwrap'](_0x16551b);return _0x2ef1df;}),_0x9aaa82['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2f5c9f=>_0x1aab83(_0x2f5c9f),'converterPriority':'high'}),_0x9aaa82['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2b036b,_0x27ae97)=>_0x27ae97['options']['showSuggestionHighlights']?_0x1aab83(_0x2b036b,!0x1):null,'converterPriority':'high'});const _0x244919=_0x9aaa82['editing']['view'];this['listenTo'](_0x244919['document'],'clipboardOutput',(_0xdd109,_0x512efe)=>{const _0x3ac2ee=[];for(const _0x540d5f of _0x244919['createRangeIn'](_0x512efe['content'])['getItems']())_0x540d5f['is']('element','suggestion-td')&&_0x3ac2ee['push'](_0x540d5f);_0x244919['change'](_0x3816f4=>{for(const _0x3b60a2 of _0x3ac2ee)_0x3816f4['move'](_0x3816f4['createRangeIn'](_0x3b60a2),_0x3816f4['createPositionBefore'](_0x3b60a2)),_0x3816f4['remove'](_0x3b60a2);});});}}function De(_0x821c1f){if(_0x821c1f['isEmpty'])return!0x0;const _0x575ab4=_0x821c1f['getChild'](0x0);return _0x575ab4['is']('element','paragraph')&&_0x575ab4['isEmpty'];}function He(_0x457dc9,_0x31ddd8={},_0x43f799){for(const {isAnchor:_0x2d2985,cellHeight:_0x413717,cellWidth:_0x405d1e}of _0x43f799['createTableWalker'](_0x457dc9,{'includeAllSlots':!0x0,..._0x31ddd8}))if(!_0x2d2985||0x1!=_0x413717||0x1!=_0x405d1e)return!0x1;return!0x0;}class Bt extends _0x3e2428{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5797cd=this['editor']['plugins']['get']('TrackChangesEditing');_0x5797cd['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5797cd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5797cd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5797cd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5797cd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5797cd['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3cc9f6,_0x1186a6){const _0x51e99f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53bede=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x32027b=_0x1186a6['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x7151ea=_0x53bede['getColumnGroupElement'](_0x32027b);let _0x4bc9c2=_0x7151ea?_0x53bede['getTableColumnsWidths'](_0x7151ea):null,_0x502c18=_0x32027b['getAttribute']('tableWidth')||null;const _0x276114=_0x1186a6['tableWidth']||_0x502c18,_0x1d68d4=_0x1186a6['columnWidths']||_0x4bc9c2,_0x57bfda=this['editor']['plugins']['get']('Users')['me'];for(const _0x16d8c4 of _0x51e99f['getSuggestions']()){const _0x280bfd=_0x16d8c4['getContainedElement']();if('resizeTable'===_0x16d8c4['subType']&&_0x280bfd===_0x32027b){_0x16d8c4['author']!==_0x57bfda&&_0x16d8c4['discard']();const _0x5b8ce8=_0x16d8c4['data']['commandParams'];_0x502c18=_0x5b8ce8[0x0]['tableWidth'],_0x4bc9c2=_0x5b8ce8[0x0]['columnWidths'];break;}}_0x3cc9f6({'table':_0x32027b,'tableWidth':_0x276114,'columnWidths':_0x1d68d4}),_0x51e99f['markBlockFormat'](_0x32027b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x502c18,'columnWidths':_0x4bc9c2}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3e5e7e){if('formatBlock'!=_0x3e5e7e['type']&&'formatInline'!=_0x3e5e7e['type'])return;const {data:_0x5e6be7}=_0x3e5e7e;if(_0x5e6be7&&'resizeTable'===_0x5e6be7['formatGroupId']){const _0x5c8aed='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x5c8aed)};}}}class xt extends _0x3e2428{['afterInit'](){const _0x560b36=this['editor'];_0x560b36['plugins']['has']('Template')&&_0x560b36['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x3e2428{['afterInit'](){const _0x607131=this['editor'];if(!_0x607131['commands']['get']('insertTableOfContents'))return;_0x607131['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x30f1cc=_0x607131['plugins']['get']('TrackChangesEditing'),_0x88aa9a=_0x607131['locale'];_0x30f1cc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x53e833=>c(_0x88aa9a,'ELEMENT_TABLE_OF_CONTENTS',_0x53e833));}}class Rt extends _0x3e2428{['afterInit'](){const _0x1d9f5c=this['editor'];if(!_0x1d9f5c['plugins']['has']('Title'))return;const _0x4f6015=_0x1d9f5c['plugins']['get']('TrackChangesEditing');_0x4f6015['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x1d9f5c['locale'],'ELEMENT_TITLE')),_0x1d9f5c['model']['document']['registerPostFixer'](_0x45c42b=>{let _0x80c370=!0x1;const _0xc8adf7=Array['from'](_0x1d9f5c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x28b946,data:_0x175aa9}of _0xc8adf7){const {group:_0x131cd3}=_0x4f6015['_splitMarkerName'](_0x28b946);if('suggestion'!==_0x131cd3||!_0x175aa9['newRange'])continue;const _0x1b65c5=_0x175aa9['newRange'],_0x17734e=_0x1b65c5['end']['nodeBefore'];if(!_0x17734e||!_0x17734e['is']('element','title-content'))continue;if(!_0x1b65c5['start']['isTouching'](_0x1b65c5['end']))continue;const _0x189f5d=_0x1d9f5c['model']['schema']['getNearestSelectionRange'](_0x1b65c5['end'],'forward');if(_0x189f5d&&_0x189f5d['isCollapsed']){const _0x5c0886=_0x45c42b['createRange'](_0x1b65c5['start'],_0x189f5d['start']);_0x5c0886['isEqual'](_0x1b65c5)||(_0x45c42b['updateMarker'](_0x28b946,{'range':_0x5c0886}),_0x80c370=!0x0);}_0x80c370||(_0x45c42b['removeMarker'](_0x28b946),_0x80c370=!0x0);}return _0x80c370;});}}class Tt extends _0x3e2428{['afterInit'](){const _0xa1c884=this['editor'],_0x1acd53=_0xa1c884['plugins']['get']('TrackChangesEditing');_0xa1c884['plugins']['has']('Uploadcare')&&(_0x1acd53['enableCommand']('uploadcare'),_0xa1c884['plugins']['has']('UploadcareImageEdit')&&(_0x1acd53['enableCommand']('uploadcareImageEdit'),_0x1acd53['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1acd53['registerBlockAttribute']('uploadcareImageId'),_0x1acd53['descriptionFactory']['registerDescriptionCallback'](_0x5ee8ff=>{if('attribute'!=_0x5ee8ff['type'])return;const {data:_0x6f51ab}=_0x5ee8ff;return _0x6f51ab&&'uploadcareImageId'==_0x6f51ab['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x3e2428{['afterInit'](){const _0xff076=this['editor'],_0x210d18=_0xff076['plugins']['get']('TrackChangesEditing');_0xff076['plugins']['has']('UndoEditing')&&(_0x210d18['enableCommand']('undo'),_0x210d18['enableCommand']('redo'));}}class Ut extends _0x3e2428{static get['requires'](){return[Ct];}['afterInit'](){const _0x52b6d8=this['editor'];if(!_0x52b6d8['plugins']['has']('TableCaptionEditing'))return;_0x52b6d8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x3e2428{['tableProperties'];['tableCellProperties'];constructor(_0x20cf41){super(_0x20cf41),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 _0x15835b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x26feb5 of this['tableProperties'])_0x15835b['enableCommand'](_0x26feb5,(_0x311b38,_0x408066)=>{const _0x43f2e1=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x26feb5,[_0x43f2e1],this['tableProperties'],'tableProperties',_0x311b38,_0x408066);});_0x15835b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x15835b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x15835b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x14a1a7,_0x154676)=>this['handleDiscardAction'](this['tableProperties'],_0x14a1a7,_0x154676)),_0x15835b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xa27cad of this['tableCellProperties'])_0x15835b['enableCommand'](_0xa27cad,(_0x1593ee,_0x41a5bf)=>{const _0x1cd765=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xa27cad,_0x1cd765,this['tableCellProperties'],'tableCellProperties',_0x1593ee,_0x41a5bf);});_0x15835b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x15835b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x15835b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x178ed8,_0x505f01)=>this['handleDiscardAction'](this['tableCellProperties'],_0x178ed8,_0x505f01)),_0x15835b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x15835b['descriptionFactory']['registerDescriptionCallback'](_0x6c14a8=>this['handleSuggestionDescription'](_0x6c14a8));}['_handlePropertyChange'](_0x5bb38f,_0x4f0e38,_0x5c8d20,_0x418d55,_0x4c6818,_0x328e27){const _0x13d003=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x328e27['batch'],()=>{for(const _0x7c86a9 of _0x4f0e38){if(this['_getSuggestion'](_0x7c86a9,_0x418d55))_0x4c6818(_0x328e27);else{const _0x3e5e1a={};for(const _0x3c00e6 of _0x5c8d20){const _0x43b5ff=_0x7c86a9['getAttribute'](_0x3c00e6);void 0x0!==_0x43b5ff&&(_0x3e5e1a[_0x3c00e6]=_0x43b5ff);}_0x4c6818(_0x328e27),_0x13d003['markBlockFormat'](_0x7c86a9,{'commandParams':[_0x3e5e1a]},[],_0x418d55);}}});}['handleDiscardAction'](_0xd5726d,_0x667a2a,_0x1f4d69){const _0x5bac61=_0x667a2a[0x0]['start']['nodeAfter'],_0x2310ac=_0x1f4d69['commandParams'][0x0];this['editor']['model']['change'](_0x3f105b=>{for(const _0x1fce80 of _0xd5726d)void 0x0!==_0x2310ac[_0x1fce80]?_0x3f105b['setAttribute'](_0x1fce80,_0x2310ac[_0x1fce80],_0x5bac61):_0x3f105b['removeAttribute'](_0x1fce80,_0x5bac61);});}['handleSuggestionDescription'](_0x529f23){if(_0x529f23['data'])switch(_0x529f23['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'](_0x3082ed,_0xe6a6ff){const _0x3178f5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3ec696 of _0x3178f5['getSuggestions']({'skipNotAttached':!0x0})){const _0x56ae50=_0x3ec696['getContainedElement']();if(_0x3ec696['subType']===_0xe6a6ff&&_0x56ae50===_0x3082ed)return _0x3ec696;}return null;}}const u='$elementName';class p extends _0x3e2428{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x3c7e0d,_0x408eaa,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(_0x4fd8d5){super(_0x4fd8d5),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x25f6e5,_0x27a247,_0x46ed0b,_0x4df9e4)=>{this['_model']['change'](()=>{for(const _0x4fac5a of[..._0x4df9e4,..._0x46ed0b])this['_model']['markers']['has'](_0x4fac5a)&&_0x4fd8d5['editing']['reconvertMarker'](_0x4fac5a);});}),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']=_0x4fd8d5['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(),_0x4fd8d5['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4fd8d5['config']['get']('trackChanges.trackFormatChanges'),_0x4fd8d5['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4fd8d5['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4fd8d5,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x23b862=this['editor'],_0x15f5d9=(_0x3c9c82,_0x564682)=>{if('attribute'!=_0x3c9c82)return'ck-suggestion-marker-'+_0x3c9c82;const _0x5bb4b5=_0x564682['split']('|')[0x0];return this['_isBlockAttribute'](_0x5bb4b5)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x23b862['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4a035b=>{const {id:_0x17207,authorId:_0x377f7b,type:_0x3045bb,subType:_0x57969c}=this['_splitMarkerName'](_0x4a035b['markerName']),_0x3bfa11=['ck-suggestion-marker',_0x15f5d9(_0x3045bb,_0x57969c)];let _0xf65087=0xbb8;return this['activeMarkers']['includes'](_0x4a035b['markerName'])&&(_0x3bfa11['push']('ck-suggestion-marker--active'),_0xf65087=0xbc2),'deletion'==_0x3045bb&&(_0xf65087+=0x5),{'classes':_0x3bfa11,'attributes':{'data-suggestion':_0x17207,'data-author-id':_0x377f7b},'priority':_0xf65087};}}),_0x23b862['conversion']['for']('dataDowncast')['add'](_0x1a1c46=>{_0x1a1c46['on']('addMarker:suggestion',(_0x43d9b9,_0x13f4cb,_0x48111d)=>{if(!_0x48111d['options']['showSuggestionHighlights'])return;const _0x3b6710=_0x13f4cb['item'];if(!_0x3b6710)return;const _0x2dc986=_0x48111d['mapper']['toViewElement'](_0x3b6710);_0x23b862['model']['schema']['isObject'](_0x3b6710)&&_0x2dc986&&!_0x2dc986['getCustomProperty']('widget')&&_0x2dc986['is']('containerElement')&&_0x4a3734(_0x2dc986,_0x48111d['writer']);},{'priority':'high'});}),_0x23b862['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1c8190,_0xadaebb)=>{if(!_0xadaebb['options']['showSuggestionHighlights'])return null;const {id:_0xfa927d,authorId:_0x146267,type:_0x5aba5f,subType:_0x5b6862}=this['_splitMarkerName'](_0x1c8190['markerName']);return{'classes':['ck-suggestion-marker',_0x15f5d9(_0x5aba5f,_0x5b6862)],'priority':0xbb8,'attributes':{'data-suggestion':_0xfa927d,'data-author-id':_0x146267}};}});const _0xdaf641=({showActiveMarkers:_0x4f3daa=!0x0,isAttributeSuggestion:_0x1e2058=!0x1}={})=>(_0x6129e5,_0x188aea,_0x3e7656)=>{if(!_0x188aea['item'])return;const {id:_0x17f375,authorId:_0x2bb83a}=this['_splitMarkerName'](_0x188aea['markerName']);if(_0x1e2058){const _0x2ad415=this['_suggestions']['get'](_0x17f375),_0x8f8a51=this['_getAttributeKey'](_0x2ad415);if(!this['_isBlockAttribute'](_0x8f8a51))return;}if(_0x188aea['item']['is']('selection'))return void _0x3e7656['consumable']['consume'](_0x188aea['item'],_0x6129e5['name']);const _0x176354=_0x3e7656['mapper']['toViewElement'](_0x188aea['item']);if(_0x188aea['item']['is']('element')&&_0x23b862['model']['schema']['isBlock'](_0x188aea['item'])&&!_0x176354['getCustomProperty']('addHighlight')){_0x3e7656['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x176354),_0x3e7656['writer']['setAttribute']('data-suggestion',_0x17f375,_0x176354),_0x3e7656['writer']['setAttribute']('data-author-id',_0x2bb83a,_0x176354),_0x3e7656['mapper']['bindElementToMarker'](_0x176354,_0x188aea['markerName']),_0x4f3daa&&(this['activeMarkers']['includes'](_0x188aea['markerName'])?_0x3e7656['writer']['addClass']('ck-suggestion-marker--active',_0x176354):_0x3e7656['writer']['removeClass']('ck-suggestion-marker--active',_0x176354));for(const _0x1a6de6 of _0x23b862['model']['createRangeIn'](_0x188aea['item'])['getItems']())_0x3e7656['consumable']['consume'](_0x1a6de6,_0x6129e5['name']);_0x3e7656['consumable']['consume'](_0x188aea['item'],_0x6129e5['name']);}};_0x23b862['conversion']['for']('dataDowncast')['add'](_0x48ebaf=>{_0x48ebaf['on']('addMarker:suggestion:formatBlock',(_0x152ea5,_0x4b58e5,_0x1b6352)=>{_0x1b6352['options']['showSuggestionHighlights']&&_0xdaf641({'showActiveMarkers':!0x1})(_0x152ea5,_0x4b58e5,_0x1b6352);},{'priority':'highest'});}),_0x23b862['conversion']['for']('dataDowncast')['add'](_0x46b0eb=>{_0x46b0eb['on']('addMarker:suggestion:attribute',(_0x2b6c5a,_0x3752af,_0x3128a3)=>{_0x3128a3['options']['showSuggestionHighlights']&&_0xdaf641({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2b6c5a,_0x3752af,_0x3128a3);},{'priority':'highest'});}),_0x23b862['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x21f4aa,_0x17c890)=>{if(_0x17c890['options']['showSuggestionHighlights']){const {id:_0x34964e,authorId:_0xef308c}=this['_splitMarkerName'](_0x21f4aa);return _0x21f4aa['includes'](':split')||_0x21f4aa['includes'](':merge')?{'group':'suggestion','name':_0x21f4aa['substr'](0xb),'attributes':{'data-suggestion':_0x34964e,'data-author-id':_0xef308c}}:null;}return{'group':'suggestion','name':_0x21f4aa['substr'](0xb)};}}),_0x23b862['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xce94f7,{writer:_0x178b15})=>{let _0x21b86a='suggestion:'+_0xce94f7['getAttribute']('suggestion-type')+':'+_0xce94f7['getAttribute']('id');return _0xce94f7['getAttribute']('marker-count')&&(_0x21b86a+=':'+_0xce94f7['getAttribute']('marker-count')),_0x178b15['createElement']('$marker',{'data-name':_0x21b86a});}}),_0x23b862['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x23b862['conversion']['for']('editingDowncast')['add'](_0x279453=>{_0x279453['on']('addMarker:suggestion:formatBlock',_0xdaf641(),{'priority':'high'});}),_0x23b862['conversion']['for']('editingDowncast')['add'](_0x4dc4e4=>{_0x4dc4e4['on']('addMarker:suggestion:attribute',_0xdaf641({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x23b862['conversion']['for']('editingDowncast')['add'](_0x34a139=>{_0x34a139['on']('removeMarker:suggestion:formatBlock',(_0x45d00d,_0x8b3b46,_0x2aaa22)=>{const _0x7579=_0x2aaa22['mapper']['markerNameToElements'](_0x8b3b46['markerName']);if(_0x7579){for(const _0x208495 of _0x7579)_0x208495['getCustomProperty']('addHighlight')||(_0x2aaa22['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x208495),_0x2aaa22['writer']['removeAttribute']('data-suggestion',_0x208495),_0x2aaa22['writer']['removeAttribute']('data-author-id',_0x208495),_0x2aaa22['mapper']['unbindElementFromMarkerName'](_0x208495,_0x8b3b46['markerName']));}},{'priority':'high'});}),_0x23b862['conversion']['for']('editingDowncast')['add'](_0x5f1f23=>{_0x5f1f23['on']('removeMarker:suggestion:attribute',(_0x33600a,_0x206e81,_0xcf27be)=>{const _0x1a4d50=_0xcf27be['mapper']['markerNameToElements'](_0x206e81['markerName']);if(!_0x1a4d50)return;const {id:_0x4f662e}=this['_splitMarkerName'](_0x206e81['markerName']),_0x1ad901=this['_suggestions']['get'](_0x4f662e),_0x350eaf=this['_getAttributeKey'](_0x1ad901);if(this['_isBlockAttribute'](_0x350eaf)){for(const _0x23e002 of _0x1a4d50)_0x23e002['getCustomProperty']('addHighlight')||(_0xcf27be['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x23e002),_0xcf27be['writer']['removeAttribute']('data-suggestion',_0x23e002),_0xcf27be['writer']['removeAttribute']('data-author-id',_0x23e002),_0xcf27be['mapper']['unbindElementFromMarkerName'](_0x23e002,_0x206e81['markerName']));}},{'priority':'high'});}),_0x23b862['model']['document']['registerPostFixer'](_0x4dd547=>{let _0x1655bd=!0x1;const _0x237076=Array['from'](_0x23b862['model']['document']['differ']['getChangedMarkers']()),_0x38decd=new Set();for(const {name:_0x43d9da,data:_0x5a8137}of _0x237076){const {group:_0x47c5b1,type:_0x43aa87,subType:_0x306f98,id:_0xda07b1}=this['_splitMarkerName'](_0x43d9da);if('suggestion'!==_0x47c5b1)continue;const _0x12b64c=this['_suggestions']['get'](_0xda07b1);if(null!=_0x5a8137['newRange']){'formatInline'==_0x43aa87&&(_0x1655bd=_0x1655bd||Jt(_0x5a8137['newRange'],_0x43d9da,_0x4dd547,_0x23b862['model']['schema']));const _0xbc0177='attribute'==_0x43aa87&&this['_isBlockAttribute'](_0x306f98['split']('|')[0x0]);if(_0x5a8137['newRange']['isCollapsed']||'$graveyard'==_0x5a8137['newRange']['root']['rootName']||'formatBlock'==_0x43aa87&&!Ht(_0x5a8137['newRange'])||_0xbc0177&&!Ht(_0x5a8137['newRange'])||'deletion'==_0x43aa87&&!(!Lt(_0x915dee=_0x5a8137['newRange'])&&!function(_0x75ee5){return _0x75ee5['start']['parent']==_0x75ee5['end']['nodeBefore']&&_0x75ee5['start']['isAtEnd'];}(_0x915dee)))_0x4dd547['removeMarker'](_0x43d9da),_0x1655bd=!0x0;else{if(!_0x12b64c||!_0x12b64c['isInContent'])continue;if(_0x5a8137['newRange']&&_0x5a8137['oldRange']&&_0x5a8137['newRange']['isEqual'](_0x5a8137['oldRange']))continue;_0x38decd['add'](_0x12b64c);}}}var _0x915dee;return _0x38decd['size']>0x0&&(_0x1655bd=!!this['_joinWithAdjacentSuggestions'](_0x38decd)||_0x1655bd),_0x1655bd;}),_0x23b862['model']['document']['registerPostFixer'](_0x4a2d4c=>{let _0x568d59=!0x1;for(const _0x3befb6 of _0x23b862['model']['document']['differ']['getChanges']())if('insert'==_0x3befb6['type'])for(const _0x2eee82 of this['_suggestions']['values']()){if(_0x2eee82['isMultiRange']||!_0x2eee82['isInContent'])continue;const _0x9685e9='formatBlock'==_0x2eee82['type'],_0x4b2956=this['_getAttributeKey'](_0x2eee82),_0x18a17c=_0x4b2956&&this['_isBlockAttribute'](_0x4b2956);if(!_0x9685e9&&!_0x18a17c)continue;const _0x177c62=_0x2eee82['getFirstRange']();if(_0x177c62['start']['parent']!=_0x177c62['end']['parent']&&!_0x177c62['end']['isAtEnd']){const _0x528f5f=_0x23b862['model']['createPositionAt'](_0x177c62['start']['nodeAfter'],'end'),_0x2d88e8=_0x23b862['model']['createRange'](_0x177c62['start'],_0x528f5f);_0x4a2d4c['updateMarker'](_0x2eee82['getFirstMarker'](),{'range':_0x2d88e8}),_0x568d59=!0x0;}}return _0x568d59;}),_0x23b862['model']['document']['registerPostFixer'](_0xa00a30=>this['_processAttributeChanges'](_0xa00a30)),_0x23b862['model']['document']['registerPostFixer'](_0x14e7b1=>!_0x14e7b1['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x14e7b1)),_0x23b862['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x23b862['model']['document']['on']('change:data',(_0x390fa6,_0x4fde51)=>{if(!_0x4fde51['isLocal']||_0x4fde51['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3d77e5=_0x23b862['model']['document']['differ']['getChanges']();if(0x0==_0x3d77e5['length'])return;const _0x4b9e55=[],_0x41def0=_0x3d77e5['filter'](_0x51ec0d=>'attribute'==_0x51ec0d['type']),_0x2acdc4=_0x3d77e5['filter'](_0x42cc7a=>'insert'==_0x42cc7a['type']&&'$text'!=_0x42cc7a['name']);for(const _0x5dccc2 of _0x41def0)this['_isRegisteredAttribute'](_0x5dccc2['attributeKey'])&&_0x4b9e55['push']({'key':_0x5dccc2['attributeKey'],'newValue':_0x5dccc2['attributeNewValue'],'oldValue':_0x5dccc2['attributeOldValue'],'range':qt(_0x5dccc2['range'],_0x23b862['model'])});for(const _0x6fda45 of _0x2acdc4){if('rename'!=_0x6fda45['action']&&'refresh'!=_0x6fda45['action'])continue;const _0x4b3ea6=zt(_0x6fda45['position']['nodeAfter'],_0x23b862['model']),_0x438625=_0x6fda45['before'];'rename'==_0x6fda45['action']&&_0x4b9e55['push']({'key':u,'newValue':_0x6fda45['name'],'oldValue':_0x438625['name'],'range':_0x4b3ea6});for(const [_0x54e43a,_0x2c59f0]of _0x438625['attributes']){if(!this['_isRegisteredAttribute'](_0x54e43a))continue;const _0x2745ed=_0x6fda45['attributes']['get'](_0x54e43a);_0x2c59f0!==_0x2745ed&&_0x4b9e55['push']({'key':_0x54e43a,'newValue':_0x2745ed,'oldValue':_0x2c59f0,'range':_0x4b3ea6});}for(const [_0x1f1216,_0x48d68d]of _0x6fda45['attributes'])this['_isRegisteredAttribute'](_0x1f1216)&&(_0x438625['attributes']['has'](_0x1f1216)||_0x4b9e55['push']({'key':_0x1f1216,'newValue':_0x48d68d,'oldValue':null,'range':_0x4b3ea6}));}0x0!=_0x4b9e55['length']&&_0x23b862['model']['enqueueChange'](_0x4fde51,_0x55f54d=>{const _0x27a981=_0x32b8bc();for(const {range:_0x581510,key:_0x4aada9,oldValue:_0x2a9b60,newValue:_0x11191b}of _0x4b9e55)this['markAttributeChange'](_0x581510,_0x4aada9,_0x2a9b60,_0x11191b,{'groupId':_0x27a981});this['_reduceExistingSuggestions'](_0x55f54d,_0x4b9e55);});},{'priority':'lowest'}),_0x23b862['model']['markers']['on']('update:suggestion',(_0x2df097,_0x33c30e,_0x4256c2)=>{if(null==_0x4256c2){const {id:_0x366f30}=this['_splitMarkerName'](_0x33c30e['name']),_0x2550d8=this['_suggestions']['get'](_0x366f30);_0x2550d8&&_0x2550d8['addMarkerName'](_0x33c30e['name']);}}),_0x23b862['model']['document']['on']('change:data',()=>{const _0x436df9=Array['from'](_0x23b862['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4f9c60=>'suggestion'===this['_splitMarkerName'](_0x4f9c60['name'])['group']);if(0x0===_0x436df9['length'])return;_0x436df9['sort']((_0x16fa0e,_0x13b2b6)=>{const _0x25a8c7=_0x16fa0e['data']['oldRange'],_0x832a21=_0x13b2b6['data']['oldRange'];return null===_0x25a8c7&&null===_0x832a21?0x0:null===_0x25a8c7&&null!==_0x832a21?-0x1:null!==_0x25a8c7&&null===_0x832a21?0x1:_0x25a8c7['start']['isBefore'](_0x832a21['start'])?-0x1:0x1;});const _0x49e65b=new Set(),_0x335719=new Set();for(const {name:_0x433de3,data:_0x2c2103}of _0x436df9){const {id:_0x5a692c}=this['_splitMarkerName'](_0x433de3);if(null===_0x2c2103['oldRange']){const _0x4f8507=this['_handleNewSuggestionMarker'](_0x433de3);_0x335719['add'](_0x4f8507);}else{const _0x4c474d=this['_suggestions']['get'](_0x5a692c);null!==_0x2c2103['newRange']||_0x4c474d['isInContent']?(_0x49e65b['add'](_0x4c474d['head']),_0x335719['add'](_0x4c474d)):this['_removeSuggestion'](_0x4c474d);}}_0x335719['size']>0x0&&this['_refreshSuggestionsChain'](_0x335719);for(const _0x48ab43 of _0x49e65b)this['fire']('suggestionChanged',_0x48ab43);}),_0x23b862['model']['on']('applyOperation',(_0x213d44,_0x12760b)=>{const _0x507509=_0x12760b[0x0];if(!this['_suggestions']['size'])return;if(!_0x507509['isDocumentOperation'])return;if(_0x507509['batch']['isUndo']||!_0x507509['batch']['isLocal'])return;let _0x3fb963,_0x344ec8;switch(_0x507509['type']){case'insert':_0x3fb963=_0x23b862['model']['createPositionAt'](_0x507509['position']),_0x344ec8=_0x3fb963['getShiftedBy'](_0x507509['howMany']);break;case'split':_0x3fb963=_0x23b862['model']['createPositionAt'](_0x507509['splitPosition']),_0x344ec8=_0x23b862['model']['createPositionAt'](_0x507509['moveTargetPosition']);break;case'move':_0x3fb963=_0x23b862['model']['createPositionAt'](_0x507509['targetPosition']),_0x344ec8=_0x3fb963['getShiftedBy'](_0x507509['howMany']);break;default:return;}const _0x13eb54=_0x23b862['model']['createRange'](_0x3fb963,_0x344ec8);_0x23b862['model']['change'](()=>{for(const {suggestion:_0x431204,meta:_0x1e552c}of this['_findSuggestions'](_0x13eb54)){if(_0x431204['isMultiRange'])continue;if('formatInline'==_0x431204['type'])continue;const _0x3ae9d2=this['_getAttributeKey'](_0x431204);if(_0x3ae9d2&&this['_isBlockAttribute'](_0x3ae9d2)&&'split'!=_0x507509['type'])continue;const _0x398086=_0x431204['data']&&_0x431204['data']['multipleBlocks'];('formatBlock'!=_0x431204['type']||'split'==_0x507509['type']&&!_0x398086)&&(_0x1e552c['containsRangeInObject']||'insertion'==_0x431204['type']&&_0x1e552c['isOwn']||_0x431204['getFirstRange']()['containsRange'](_0x13eb54)&&this['_breakSuggestionMarker'](_0x431204,_0x3fb963,_0x344ec8));}});},{'priority':'lowest'}),_0x23b862['model']['on']('deleteContent',(_0x2a74b5,_0x27983c)=>{const _0x3cab6b=_0x27983c[0x0],_0x422672=_0x27983c[0x1];if(_0x422672&&_0x422672['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3cab6b['isCollapsed'])return;const _0x18d107=_0x23b862['model']['schema'],{start:_0x23cc6b,end:_0x14d2a0}=_0x3cab6b['getFirstRange'](),_0x374971=_0x23cc6b['nodeAfter']&&_0x18d107['isLimit'](_0x23cc6b['nodeAfter'])?null:_0x18d107['getNearestSelectionRange'](_0x23cc6b,'forward'),_0x53de0c=_0x14d2a0['nodeBefore']&&_0x18d107['isLimit'](_0x14d2a0['nodeBefore'])?null:_0x18d107['getNearestSelectionRange'](_0x14d2a0,'backward'),_0x4a9d94=_0x23b862['model']['createRange'](_0x374971?_0x374971['start']:_0x23cc6b,_0x53de0c?_0x53de0c['end']:_0x14d2a0);_0x23b862['model']['change'](_0x1d37e4=>{this['markDeletion'](_0x4a9d94);const _0x534390=_0x23b862['model']['schema']['getNearestSelectionRange'](_0x4a9d94['start']);_0x3cab6b['is']('documentSelection')?_0x1d37e4['setSelection'](_0x534390):_0x3cab6b['setTo'](_0x534390);}),_0x2a74b5['stop']();},{'priority':_0x1180b2['normal']+0xa}),_0x23b862['model']['on']('insertContent',(_0x3f24fe,_0x12f100)=>{const _0x5e12bd=_0x12f100[_0x12f100['length']-0x1];_0x5e12bd&&_0x5e12bd['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x23b862['model']['change'](()=>{let _0x105a2d=_0x23b862['model']['insertContent'](_0x12f100[0x0],_0x12f100[0x1],_0x12f100[0x2],{'forceDefaultExecution':!0x0});if(!_0x105a2d)return;_0x3f24fe['return']=_0x105a2d['clone']();const _0x4fa7f4=_0x105a2d['end']['nodeBefore'],_0x340534=_0x23b862['model']['schema'];_0x4fa7f4&&_0x340534['isBlock'](_0x4fa7f4)&&!_0x340534['isObject'](_0x4fa7f4)&&(_0x105a2d=_0x23b862['model']['createRange'](_0x105a2d['start'],_0x23b862['model']['createPositionAt'](_0x4fa7f4,'end'))),this['markInsertion'](_0x105a2d);}),_0x3f24fe['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xd6853f=new x(_0x23b862,this['_suggestions']);_0x23b862['commands']['add']('acceptSuggestion',_0xd6853f),this['enableCommand']('acceptSuggestion');const _0x55f64=new O(_0x23b862,this['_suggestions']);_0x23b862['commands']['add']('discardSuggestion',_0x55f64),this['enableCommand']('discardSuggestion'),_0x23b862['commands']['add']('acceptAllSuggestions',new R(_0x23b862,_0xd6853f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x23b862['commands']['add']('discardAllSuggestions',new R(_0x23b862,_0x55f64,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x23b862['commands']['add']('acceptSelectedSuggestions',new E(_0x23b862,_0xd6853f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x23b862['commands']['add']('discardSelectedSuggestions',new E(_0x23b862,_0x55f64,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x59bb31=_0x23b862['plugins']['get']('CommentsRepository');this['listenTo'](_0x59bb31,'addComment',(_0x5c4001,{threadId:_0xf8b9cd})=>{const _0x3bb728=this['_suggestions']['get'](_0xf8b9cd);_0x3bb728&&_0x3bb728['commentThread']&&0x1===_0x3bb728['commentThread']['length']&&this['_updateSuggestionData'](_0xf8b9cd,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x59bb31,'removeComment',(_0x2f220b,{threadId:_0x166a00})=>{const _0x3b6efb=this['_suggestions']['get'](_0x166a00);_0x3b6efb&&_0x3b6efb['commentThread']&&!_0x3b6efb['commentThread']['length']&&this['_updateSuggestionData'](_0x166a00,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5c4432){const _0x502825=_0x1f1b7d([0x46,0x33,0x49,0x7a,0x50,0x53,0x6a,0x55,0x48,0x47,0x31,0x4f,0x70,0x78,0x6c,0x58,0x72,0x6b,0x77,0x62,0x4e,0x76,0x6e,0x79,0x4c,0x59,0x43,0x56,0x4a,0x61,0x32,0x63,0x57,0x67,0x6f,0x64,0x74,0x36,0x71,0x37,0x5a,0x30,0x34,0x4b,0x68,0x41,0x65,0x66,0x44,0x42,0x52,0x45,0x54,0x75,0x38,0x6d,0x51,0x35,0x73,0x39,0x4d,0x69]),_0x5f403a=0x40ce757,_0x563057=0x40b800f^_0x5f403a,_0x189f97=window[_0x1f1b7d([0x44,0x61,0x74,0x65])][_0x1f1b7d([0x6e,0x6f,0x77])](),_0x175296=_0x5c4432[_0x1f1b7d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3fbae4=new window[(_0x1f1b7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45ff3d=>{_0x175296[_0x1f1b7d([0x6f,0x6e,0x63,0x65])](_0x1f1b7d([0x72,0x65,0x61,0x64,0x79]),_0x45ff3d);}),_0x2116e0={[_0x1f1b7d([0x6b,0x74,0x79])]:_0x1f1b7d([0x45,0x43]),[_0x1f1b7d([0x75,0x73,0x65])]:_0x1f1b7d([0x73,0x69,0x67]),[_0x1f1b7d([0x63,0x72,0x76])]:_0x1f1b7d([0x50,0x2d,0x32,0x35,0x36]),[_0x1f1b7d([0x78])]:_0x1f1b7d([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]),[_0x1f1b7d([0x79])]:_0x1f1b7d([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]),[_0x1f1b7d([0x61,0x6c,0x67])]:_0x1f1b7d([0x45,0x53,0x32,0x35,0x36])},_0x316422=_0x175296[_0x1f1b7d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f1b7d([0x67,0x65,0x74])](_0x1f1b7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x301798(){let _0x29f4e2,_0x549439=null,_0x60615c=null;try{if(_0x316422==_0x1f1b7d([0x47,0x50,0x4c]))return _0x1f1b7d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x29f4e2=_0x453258(),!_0x29f4e2)return _0x1f1b7d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x29f4e2[_0x1f1b7d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x60615c=_0x417178(_0x29f4e2[_0x1f1b7d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x29f4e2[_0x1f1b7d([0x6a,0x74,0x69])])),await _0x32b557()?_0x459526()?_0x2c13cd()?_0x1f1b7d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xc2666b()?(_0x29f4e2[_0x1f1b7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f1b7d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x549439=_0x4e6e65(_0x1f1b7d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x29f4e2[_0x1f1b7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f1b7d([0x74,0x72,0x69,0x61,0x6c])&&(_0x549439=_0x4e6e65(_0x1f1b7d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x28a461()):_0x1f1b7d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f1b7d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f1b7d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x11be90){return _0x1f1b7d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2c13cd(){const _0x596460=[_0x1f1b7d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f1b7d([0x74,0x72,0x69,0x61,0x6c])][_0x1f1b7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29f4e2[_0x1f1b7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x189f97/0x3e8:0xe10*_0x563057;return _0x29f4e2[_0x1f1b7d([0x65,0x78,0x70])]<_0x596460;}function _0x459526(){const _0x5c18ce=_0x29f4e2[_0x1f1b7d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5c18ce)return!0x1;if(_0x5c18ce[_0x1f1b7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1b7d([0x2a])))return!0x0;if(_0x5c18ce[_0x1f1b7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1b7d([0x54,0x43])))return!0x0;if(_0x5c18ce[_0x1f1b7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1b7d([0x52,0x54,0x43]))){if(_0xbb927d())return!0x0;if(_0x252673()||_0x19e065())return!0x0;}return!0x1;}function _0xc2666b(){const _0x21ebd1=_0x29f4e2[_0x1f1b7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x21ebd1||0x0==_0x21ebd1[_0x1f1b7d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa4b96a}=new URL(window[_0x1f1b7d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x21ebd1[_0x1f1b7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa4b96a))return!0x0;const _0x41363b=_0xa4b96a[_0x1f1b7d([0x73,0x70,0x6c,0x69,0x74])](_0x1f1b7d([0x2e]));return _0x21ebd1[_0x1f1b7d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48f493=>_0x48f493[_0x1f1b7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1b7d([0x2a])))[_0x1f1b7d([0x6d,0x61,0x70])](_0x131c46=>_0x131c46[_0x1f1b7d([0x73,0x70,0x6c,0x69,0x74])](_0x1f1b7d([0x2e])))[_0x1f1b7d([0x73,0x6f,0x6d,0x65])](_0x12d459=>_0x41363b[_0x1f1b7d([0x65,0x76,0x65,0x72,0x79])]((_0x262a1d,_0x61ae36)=>_0x12d459[_0x61ae36]===_0x262a1d||_0x12d459[_0x61ae36]===_0x1f1b7d([0x2a])));}function _0x28a461(){return _0x549439&&_0x60615c?new window[(_0x1f1b7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c3aef,_0x379a5c)=>{_0x549439[_0x1f1b7d([0x74,0x68,0x65,0x6e])](_0x2c3aef,_0x379a5c),_0x60615c[_0x1f1b7d([0x74,0x68,0x65,0x6e])](_0x3c95a9=>{_0x3c95a9!=_0x1f1b7d([0x56,0x61,0x6c,0x69,0x64])&&_0x2c3aef(_0x3c95a9);},_0x379a5c);}):_0x549439||_0x60615c||_0x1f1b7d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x417178(_0x225ff4,_0x56ba16){return new window[(_0x1f1b7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x405630=>{if(_0x492a4f())return _0x405630(_0x1f1b7d([0x56,0x61,0x6c,0x69,0x64]));_0x3af37b(),_0x175296[_0x1f1b7d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f1b7d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ddf39=!0x1;const _0x205857=_0x32b8bc();function _0x1dd3d6(_0x21f4e9){return!!_0x21f4e9&&(typeof _0x21f4e9===_0x1f1b7d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21f4e9===_0x1f1b7d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21f4e9[_0x1f1b7d([0x74,0x68,0x65,0x6e])]===_0x1f1b7d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21f4e9[_0x1f1b7d([0x63,0x61,0x74,0x63,0x68])]===_0x1f1b7d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46403c(_0x6b6624){_0x2fe314(_0x6b6624)[_0x1f1b7d([0x74,0x68,0x65,0x6e])](_0x50ab83=>{if(!_0x50ab83||_0x50ab83[_0x1f1b7d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f1b7d([0x6f,0x6b]))return _0x1f1b7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ef5b0(_0xb53759(_0x205857+_0x56ba16))!=_0x50ab83[_0x1f1b7d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f1b7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f1b7d([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f1b7d([0x74,0x68,0x65,0x6e])](_0xd55668=>(_0x227160(),_0xd55668),()=>{const _0x294029=_0x4a1a66();return null==_0x294029?(_0x227160(),_0x1f1b7d([0x56,0x61,0x6c,0x69,0x64])):_0x1f1b7d(_0x189f97-_0x294029>(0x20006357^_0x5f403a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f1b7d([0x74,0x68,0x65,0x6e])](_0x405630)[_0x1f1b7d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x405630(_0x1f1b7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x499aa8=0x43a09d7^_0x5f403a;function _0x227160(){const _0x5844f7=_0x1f1b7d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ef5b0(_0xb53759(_0x225ff4)),_0x33f494=_0x258fe6(_0x4ef5b0(window[_0x1f1b7d([0x4d,0x61,0x74,0x68])][_0x1f1b7d([0x63,0x65,0x69,0x6c])](_0x189f97/_0x499aa8)));window[_0x1f1b7d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f1b7d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5844f7,_0x33f494);}function _0x4a1a66(){const _0x104cba=_0x1f1b7d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ef5b0(_0xb53759(_0x225ff4)),_0x6b291d=window[_0x1f1b7d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f1b7d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x104cba);return _0x6b291d?window[_0x1f1b7d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x258fe6(_0x6b291d),0x10)*_0x499aa8:null;}function _0x2fe314(_0x247351){return new window[(_0x1f1b7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa0550d,_0x49f476)=>{_0x247351[_0x1f1b7d([0x74,0x68,0x65,0x6e])](_0xa0550d,_0x49f476),window[_0x1f1b7d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x49f476,0x40d3397^_0x5f403a);});}}_0x175296[_0x1f1b7d([0x6f,0x6e])](_0x1f1b7d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1fa754,_0x4dfe29)=>{if(_0x4dfe29[0x0]!=_0x225ff4)return _0x405630(_0x1f1b7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4dfe29[0x1]={..._0x4dfe29[0x1],[_0x1f1b7d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x205857};},{[_0x1f1b7d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f1b7d([0x68,0x69,0x67,0x68])}),_0x175296[_0x1f1b7d([0x6f,0x6e])](_0x1f1b7d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a2312=>{_0x1dd3d6(_0x2a2312[_0x1f1b7d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ddf39=!0x0,_0x46403c(_0x2a2312[_0x1f1b7d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f1b7d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f1b7d([0x6c,0x6f,0x77])}),_0x3fbae4[_0x1f1b7d([0x74,0x68,0x65,0x6e])](()=>{_0x4ddf39||_0x405630(_0x1f1b7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x492a4f(){return _0x175296[_0x1f1b7d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f1b7d([0x76,0x69,0x65,0x77])][_0x1f1b7d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f1b7d([0x61,0x75,0x74,0x6f]);}function _0x3af37b(){_0x175296[_0x1f1b7d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f1b7d([0x76,0x69,0x65,0x77])][_0x1f1b7d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f1b7d([0x61,0x75,0x74,0x6f]);}}function _0x4e6e65(_0x1ea0de){const _0x3951c2=[new window[(_0x1f1b7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5892ce=>setTimeout(_0x5892ce,0x405d99b^_0x5f403a)),_0x3fbae4[_0x1f1b7d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f1b7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48be06=>{let _0x43f3d3=0x0;_0x175296[_0x1f1b7d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1b7d([0x6f,0x6e])](_0x1f1b7d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x642b49,_0x5c7f92)=>{_0x5c7f92[0x0][_0x1f1b7d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x43f3d3++,_0x43f3d3==(0x40ce6af^_0x5f403a)&&(_0x48be06(),_0x642b49[_0x1f1b7d([0x6f,0x66,0x66])]());});}))];return window[_0x1f1b7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f1b7d([0x72,0x61,0x63,0x65])](_0x3951c2)[_0x1f1b7d([0x74,0x68,0x65,0x6e])](()=>_0x1ea0de);}async function _0x22a48f(){await _0x3fbae4,_0x175296[_0x1f1b7d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1b7d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5eee22,_0x175296[_0x1f1b7d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1b7d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5eee22,_0x175296[_0x1f1b7d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f1b7d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xbb927d(){return _0x21598f(_0x1f1b7d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2de62e(_0x1f1b7d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1f1b7d([0x73,0x74,0x61,0x74,0x65])]==_0x1f1b7d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x252673(){return _0x21598f(_0x1f1b7d([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 _0x19e065(){return _0x21598f(_0x1f1b7d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5380d6(_0x3caf87){const _0x5479fc=_0x120c70();_0x175296[_0x5479fc]=_0x1f1b7d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3caf87,_0x3caf87!=_0x1f1b7d([0x56,0x61,0x6c,0x69,0x64])&&_0x22a48f();}function _0x120c70(){const _0x4631e4=window[_0x1f1b7d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f1b7d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f1b7d([0x6e,0x6f,0x77])]())[_0x1f1b7d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f1b7d([0x2e]),'');let _0xe71de3=_0x1f1b7d([0x46]);for(let _0x4c1297=0x0;_0x4c1297<_0x4631e4[_0x1f1b7d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c1297+=0x2){let _0x31c139=window[_0x1f1b7d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4631e4[_0x1f1b7d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c1297,_0x4c1297+0x2));_0x31c139>=_0x502825[_0x1f1b7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x31c139-=_0x502825[_0x1f1b7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xe71de3+=_0x502825[_0x31c139];}return _0xe71de3;}function _0x453258(){const _0x51facd=_0x316422[_0x1f1b7d([0x73,0x70,0x6c,0x69,0x74])](_0x1f1b7d([0x2e]));if(0x3!=_0x51facd[_0x1f1b7d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x16a724(_0x51facd[0x1]);function _0x16a724(_0x3baed4){const _0x3b0663=_0x3b90fc(_0x3baed4);return _0x3b0663&&_0x450a9d()?_0x3b0663:null;function _0x450a9d(){const _0x29143c=_0x3b0663[_0x1f1b7d([0x6a,0x74,0x69])],_0x313a71=window[_0x1f1b7d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29143c[_0x1f1b7d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29143c[_0x1f1b7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x380b18={..._0x3b0663,[_0x1f1b7d([0x6a,0x74,0x69])]:_0x29143c[_0x1f1b7d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x29143c[_0x1f1b7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x380b18[_0x1f1b7d([0x76,0x63])],_0xb53759(_0x380b18)==_0x313a71;}}}async function _0x32b557(){let _0x347697=!0x0;try{const _0x31d88b=_0x316422[_0x1f1b7d([0x73,0x70,0x6c,0x69,0x74])](_0x1f1b7d([0x2e])),[_0x4ab965,_0x188c70,_0x77ee6d]=_0x31d88b;return _0x571e1c(_0x4ab965),await _0x26f2b0(_0x4ab965,_0x188c70,_0x77ee6d),_0x347697;}catch(_0x52afcb){return!0x1;}function _0x571e1c(_0x4b219a){const _0x1d6f29=_0x3b90fc(_0x4b219a);_0x1d6f29&&_0x1d6f29[_0x1f1b7d([0x61,0x6c,0x67])]==_0x1f1b7d([0x45,0x53,0x32,0x35,0x36])||(_0x347697=!0x1);}async function _0x26f2b0(_0x158d12,_0xca0cf1,_0x44cdbc){const _0x5141b4=window[_0x1f1b7d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f1b7d([0x66,0x72,0x6f,0x6d])](_0x99b752(_0x44cdbc),_0x3df3be=>_0x3df3be[_0x1f1b7d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47b478=new window[(_0x1f1b7d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f1b7d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x158d12+_0x1f1b7d([0x2e])+_0xca0cf1),_0x89c7ba=window[_0x1f1b7d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f1b7d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x89c7ba)return;const _0xc07385=await _0x89c7ba[_0x1f1b7d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f1b7d([0x6a,0x77,0x6b]),_0x2116e0,{[_0x1f1b7d([0x6e,0x61,0x6d,0x65])]:_0x1f1b7d([0x45,0x43,0x44,0x53,0x41]),[_0x1f1b7d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f1b7d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f1b7d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x89c7ba[_0x1f1b7d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f1b7d([0x6e,0x61,0x6d,0x65])]:_0x1f1b7d([0x45,0x43,0x44,0x53,0x41]),[_0x1f1b7d([0x68,0x61,0x73,0x68])]:{[_0x1f1b7d([0x6e,0x61,0x6d,0x65])]:_0x1f1b7d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xc07385,_0x5141b4,_0x47b478)||(_0x347697=!0x1);}}function _0x3b90fc(_0x26d01a){return _0x26d01a[_0x1f1b7d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f1b7d([0x65,0x79]))?JSON[_0x1f1b7d([0x70,0x61,0x72,0x73,0x65])](_0x99b752(_0x26d01a)):null;}function _0x99b752(_0x25e657){return window[_0x1f1b7d([0x61,0x74,0x6f,0x62])](_0x25e657[_0x1f1b7d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f1b7d([0x2b]))[_0x1f1b7d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f1b7d([0x2f])));}function _0xb53759(_0x3e3273){let _0xa40ca2=0x1505;function _0x106d81(_0x4fae86){for(let _0x34e6e4=0x0;_0x34e6e4<_0x4fae86[_0x1f1b7d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34e6e4++){const _0x1b5b3f=_0x4fae86[_0x1f1b7d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x34e6e4);_0xa40ca2=(_0xa40ca2<<0x5)+_0xa40ca2+_0x1b5b3f,_0xa40ca2&=_0xa40ca2;}}function _0xa77491(_0x2dfe60){Array[_0x1f1b7d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2dfe60)?_0x2dfe60[_0x1f1b7d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa77491):_0x2dfe60&&typeof _0x2dfe60==_0x1f1b7d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f1b7d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2dfe60)[_0x1f1b7d([0x73,0x6f,0x72,0x74])]()[_0x1f1b7d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3edbf2,_0x4ed89d])=>{_0x106d81(_0x3edbf2),_0xa77491(_0x4ed89d);}):_0x106d81(window[_0x1f1b7d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2dfe60));}return _0xa77491(_0x3e3273),_0xa40ca2>>>0x0;}function _0x4ef5b0(_0x219b53){return _0x219b53[_0x1f1b7d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f1b7d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f1b7d([0x30]));}function _0x258fe6(_0x4651dc){return _0x4651dc[_0x1f1b7d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f1b7d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f1b7d([0x6a,0x6f,0x69,0x6e])]('');}function _0x21598f(_0x2d019a){return _0x175296[_0x1f1b7d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1f1b7d([0x68,0x61,0x73])](_0x2d019a);}function _0x2de62e(_0x2a228e){return _0x175296[_0x1f1b7d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1f1b7d([0x67,0x65,0x74])](_0x2a228e);}function _0x5eee22(){}function _0x1f1b7d(_0x192266){return _0x192266['map'](_0xd7287d=>String['fromCharCode'](_0xd7287d))['join']('');}_0x5380d6(await _0x301798());}(this);}set['adapter'](_0x375548){if(this['_adapter'])throw new _0x2c0c45('track-changes-adapter-already-set',this);this['_adapter']=_0x375548;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1b2bdb=!0x1,toJSON:_0x2bfb47=!0x1}={}){const _0x9dad14=[];for(const _0x2368a4 of this['_suggestions']['values']())_0x1b2bdb&&!_0x2368a4['isInContent']||_0x9dad14['push'](_0x2368a4);return _0x2bfb47?_0x9dad14['map'](_0xff5037=>_0xff5037['toJSON']()):_0x9dad14;}['getSuggestion'](_0x55b06b){const _0x59f749=this['_suggestions']['get'](_0x55b06b);if(!_0x59f749)throw new _0x2c0c45('track-changes-suggestion-not-found',this);return _0x59f749;}['hasSuggestion'](_0x8e0a32){return this['_suggestions']['has'](_0x8e0a32);}['addSuggestionData'](_0x262af0){const {authorId:_0x433ffe,id:_0x53fe4c,attributes:_0x348c21}=_0x262af0,[_0x49d191,_0x1b0892]=_0x262af0['type']['split'](':'),_0x50fb86=this['_suggestions']['get'](_0x53fe4c)||this['_createSuggestion'](_0x49d191,_0x1b0892,_0x53fe4c,_0x433ffe,_0x348c21);if(this['_addThreadToSuggestion'](_0x50fb86),this['_checkSuggestionCorrectness'](_0x50fb86,_0x49d191,_0x1b0892||null,_0x433ffe),_0x50fb86['createdAt']=_0x262af0['createdAt'],_0x50fb86['_isDataLoaded']=!0x0,_0x348c21&&_0x348c21['@external']){const _0x27a730=_0x348c21['@external'],_0xbceb58=this['_getExternalAuthor'](_0x27a730['authorName']);_0x50fb86['authoredAt']=_0x27a730['createdAt'],_0x50fb86['author']=_0xbceb58,_0x50fb86['isExternal']=!0x0;}else _0x50fb86['authoredAt']=_0x262af0['createdAt'];switch(_0x262af0['data']&&(_0x50fb86['data']=_0x262af0['data']),_0x262af0['attributes']&&(_0x50fb86['attributes']=_0x262af0['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x50fb86['_saved']=!0x0),this['_suggestionState']['get'](_0x50fb86)){case'notReady':this['_suggestionState']['set'](_0x50fb86,'dataReady');break;case'markerReady':_0x50fb86['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x50fb86])),this['_refreshSuggestionsChain'](new Set([_0x50fb86])),this['_suggestionState']['set'](_0x50fb86,'ready'),this['fire']('suggestionLoaded',_0x50fb86)):this['_suggestionState']['set'](_0x50fb86,'removed');}return _0x50fb86;}['acceptSuggestion'](_0x1bbd80){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2bdcb9 of _0x1bbd80['getAllAdjacentSuggestions']())_0x2bdcb9['accept']();});});}['discardSuggestion'](_0x400f3f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x101577 of _0x400f3f['getAllAdjacentSuggestions']())_0x101577['discard']();});});}['enableCommand'](_0x456ec,_0x3f71ed){const _0x15be84=this['editor']['commands']['get'](_0x456ec);if(!_0x15be84)throw new _0x2c0c45('track-changes-command-not-found',this,{'commandName':_0x456ec});if(this['_enabledCommands']['has'](_0x15be84))throw new _0x2c0c45('track-changes-enable-command-twice',this,{'commandName':_0x456ec});this['_enabledCommands']['add'](_0x15be84),_0x3f71ed&&_0x15be84['on']('execute',(_0x48eb08,_0x1fbeaa)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1fbeaa['length']>0x0&&_0x1fbeaa[_0x1fbeaa['length']-0x1]&&_0x1fbeaa[_0x1fbeaa['length']-0x1]['forceDefaultExecution']?_0x1fbeaa['pop']():(_0x48eb08['return']=_0x3f71ed((..._0xd6fb01)=>_0x15be84['execute'](..._0xd6fb01,{'forceDefaultExecution':!0x0}),..._0x1fbeaa),_0x48eb08['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4364a5){let _0x43eb43,_0x446ef0;const _0x2590ea=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x43eb43=_0x4364a5();}catch(_0x4e61d6){_0x446ef0=_0x4e61d6;}return _0x2590ea||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x446ef0&&_0x2c0c45['rethrowUnexpectedError'](_0x446ef0,this),_0x43eb43;}['markInsertion'](_0x127d48,_0x55db02=null,_0x247783={}){if(_0x127d48['isCollapsed'])return null;const _0x27a643=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x247783['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5963fc,meta:_0x435983}of this['_findSuggestions'](_0x127d48,'insertion'))if(_0x435983['isOwn']){if(!_0x435983['isNextTo']){if(_0x435983['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x5963fc,_0x247783))continue;return _0x5963fc;}if(Xt(_0x5963fc,_0x247783))return _0x5963fc;this['_breakSuggestionMarker'](_0x5963fc,_0x127d48['start'],_0x127d48['end']);break;}if(_0x55db02==_0x5963fc['subType']&&Xt(_0x5963fc,_0x247783)){const _0x1c1c18=_0x5963fc['getFirstRange']();return _0x1c1c18['start']['isEqual'](_0x127d48['end'])?this['_setSuggestionRange'](_0x5963fc,this['_model']['createRange'](_0x127d48['start'],_0x1c1c18['end'])):this['_setSuggestionRange'](_0x5963fc,this['_model']['createRange'](_0x1c1c18['start'],_0x127d48['end'])),_0x5963fc;}}const _0x58fd68=_0x32b8bc(),_0x482da9=_0x27a643['id'],_0x275a84=_0x55db02?'insertion:'+_0x55db02:'insertion',_0x4d849=this['_setSuggestionData']({'id':_0x58fd68,'type':_0x275a84,'createdAt':new Date(),'authorId':_0x482da9,'attributes':_0x247783});return this['_addSuggestionMarker'](_0x275a84,_0x58fd68,_0x482da9,_0x127d48),_0x4d849;}['markMultiRangeInsertion'](_0x4ca222,_0x3be3a0='multi',_0x33be38={}){const _0x55f9f8=this['editor']['plugins']['get']('Users')['me'],_0x10c92f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3be3a0,'join');this['_trackingSessionId']&&(_0x33be38['trackingSessionId']=this['_trackingSessionId']);for(const _0x2c9eb1 of this['getSuggestions']())if(_0x2c9eb1['author']['id']==_0x55f9f8['id']&&'insertion'==_0x2c9eb1['type']&&_0x2c9eb1['subType']==_0x3be3a0&&Xt(_0x2c9eb1,_0x33be38)&&(_0x10c92f(_0x2c9eb1['getRanges'](),_0x4ca222)||_0x10c92f(_0x4ca222,_0x2c9eb1['getRanges']()))){for(const _0x1b2a7a of _0x4ca222)_0x2c9eb1['addRange'](_0x1b2a7a);return _0x2c9eb1;}for(const {suggestion:_0x5d30d9,meta:_0x253ae2}of this['_findSuggestions'](_0x4ca222,'insertion')){if(!_0x253ae2['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x253ae2['containsRangeInObject'])continue;if(!Xt(_0x5d30d9,_0x33be38))continue;let _0x97a861=!0x0;for(const _0x3d14c2 of _0x5d30d9['getRanges']())for(const _0x204bfd of _0x4ca222)if(!_0x3d14c2['containsRange'](_0x204bfd)){_0x97a861=!0x1;break;}if(_0x97a861)return _0x5d30d9;}const _0x15bf98=_0x32b8bc(),_0x149cda=_0x55f9f8['id'],_0x3afa32='insertion:'+_0x3be3a0,_0x398d79=this['_setSuggestionData']({'id':_0x15bf98,'type':_0x3afa32,'createdAt':new Date(),'authorId':_0x149cda,'attributes':_0x33be38});for(const _0x2ad330 of _0x4ca222)this['_addSuggestionMarker'](_0x3afa32,_0x15bf98,_0x149cda,_0x2ad330,o['getMultiRangeId']());return _0x398d79;}['markInlineFormat'](_0x5989d2,_0x49f34f,_0x19e391=null,_0x591a07={}){if(_0x19e391=_0x19e391||Kt(_0x49f34f),_0x5989d2['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x591a07['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x37683b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x19e391,'accept');return this['forceDefaultExecution'](()=>_0x37683b([_0x5989d2],_0x49f34f,_0x591a07)),null;}const _0x56585c=this['editor']['plugins']['get']('Users')['me'],_0x508e0a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x239939,meta:_0x112b85}of this['_findSuggestions'](_0x5989d2,'insertion'))_0x112b85['isOwn']&&!_0x112b85['isInsideObject']&&_0x508e0a['push'](..._0x239939['getRanges']());}const _0x5adba8=function(_0xf7f200,_0x3501d6){const _0x589ba3=[];for(const _0x114282 of _0x3501d6){const _0x4e7ff3=_0xf7f200['getIntersection'](_0x114282);_0x4e7ff3&&_0x589ba3['push'](_0x4e7ff3);}return _0x589ba3;}(_0x5989d2,_0x508e0a),_0xe7b452=function(_0x369234,_0x1900d4){const _0xc5c40d=[_0x369234];for(const _0x57f2d0 of _0x1900d4){let _0x22d78d=0x0;for(;_0x22d78d<_0xc5c40d['length'];){const _0x468f7f=_0xc5c40d[_0x22d78d]['getDifference'](_0x57f2d0);_0xc5c40d['splice'](_0x22d78d,0x1,..._0x468f7f),_0x22d78d+=_0x468f7f['length'];}}return _0xc5c40d;}(_0x5989d2,_0x508e0a);_0x5adba8['length']&&this['_model']['change'](()=>{for(const _0x14bf13 of _0x5adba8){const _0x1d0578=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x19e391,'accept');this['forceDefaultExecution'](()=>_0x1d0578([_0x14bf13],_0x49f34f,_0x591a07));}});for(const _0x399fd7 of _0xe7b452){let _0x26135a=null,_0x2fc07f=_0x399fd7['start'],_0x4bab4f=_0x399fd7['end'];for(const {suggestion:_0x1fb01c,meta:_0x2d382e}of this['_findSuggestions'](_0x399fd7,'formatInline')){if(!_0x2d382e['isOwn'])continue;if(_0x1fb01c['subType']!=_0x19e391)continue;if(!Xt(_0x1fb01c,_0x591a07))continue;const _0x33a831=_0x1fb01c['getFirstRange']();if(_0x33a831['containsRange'](_0x399fd7,!0x0))return null;_0x2fc07f=_0x2fc07f['isBefore'](_0x33a831['start'])?_0x2fc07f:_0x33a831['start'],_0x4bab4f=_0x4bab4f['isAfter'](_0x33a831['end'])?_0x4bab4f:_0x33a831['end'],_0x26135a?_0x33a831['start']['isBefore'](_0x26135a['getFirstRange']()['start'])?(_0x26135a['removeMarkers'](),_0x26135a=_0x1fb01c):_0x1fb01c['removeMarkers']():_0x26135a=_0x1fb01c;}const _0x4bf28f=this['_model']['createRange'](_0x2fc07f,_0x4bab4f);if(_0x26135a)this['_setSuggestionRange'](_0x26135a,_0x4bf28f);else{const _0x42792f=_0x32b8bc(),_0x48e2c3=_0x56585c['id'];this['_setSuggestionData']({'id':_0x42792f,'type':'formatInline:'+_0x19e391,'data':_0x49f34f,'createdAt':new Date(),'authorId':_0x48e2c3,'attributes':_0x591a07}),this['_addSuggestionMarker']('formatInline:'+_0x19e391,_0x42792f,_0x48e2c3,_0x4bf28f);}}return null;}['markBlockFormat'](_0x42d4df,_0x8423db,_0x18da58=[],_0x1a1044=null,_0x4768ac={}){_0x8423db['formatGroupId']||(_0x8423db['formatGroupId']=_0x8423db['commandName']),_0x8423db['multipleBlocks']=_0x42d4df['is']('range'),_0x1a1044=_0x1a1044||Kt(_0x8423db);const _0x444dc1=_0x18da58['map'](_0x1d50c4=>zt(_0x1d50c4,this['_model'])),_0x10efa2=_0x42d4df['is']('range')?_0x42d4df:zt(_0x42d4df,this['_model']);if(this['_trackingSessionId']&&(_0x4768ac['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2c95aa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1a1044,'accept');return this['forceDefaultExecution'](()=>_0x2c95aa([_0x10efa2],_0x8423db,_0x4768ac)),null;}_0x444dc1['push'](_0x10efa2);let _0x217a73=!0x0;for(const _0xdf908e of _0x444dc1)if(!this['_rangeIsInLocalUserInsertion'](_0xdf908e)){_0x217a73=!0x1;break;}if(_0x217a73&&'always'!==this['_trackFormatChanges']){const _0x31be7f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1a1044,'accept');return this['forceDefaultExecution'](()=>_0x31be7f([_0x10efa2],_0x8423db,_0x4768ac)),null;}let _0x55f679=null,_0x197931=_0x10efa2['start'],_0x540a73=_0x10efa2['end'];for(const {suggestion:_0x39eace,meta:_0x332ef8}of this['_findSuggestions'](_0x10efa2,'formatBlock')){if(!_0x332ef8['isOwn'])continue;if(_0x332ef8['isNextTo']||_0x332ef8['containsRangeInObject']||_0x332ef8['isInsideObject'])continue;if(_0x39eace['data']['formatGroupId']!=_0x8423db['formatGroupId'])continue;if(!Xt(_0x39eace,_0x4768ac))continue;const _0x16ed4d=_0x39eace['getFirstRange']();if(_0x39eace['subType']==_0x1a1044){if(_0x16ed4d['containsRange'](_0x10efa2,!0x0))return null;_0x197931=_0x197931['isBefore'](_0x16ed4d['start'])?_0x197931:_0x16ed4d['start'],_0x540a73=_0x540a73['isAfter'](_0x16ed4d['end'])?_0x540a73:_0x16ed4d['end'],_0x55f679?_0x16ed4d['start']['isBefore'](_0x55f679['getFirstRange']()['start'])?(_0x55f679['removeMarkers'](),_0x55f679=_0x39eace):_0x39eace['removeMarkers']():_0x55f679=_0x39eace;}else{const _0x195c2c=_0x10efa2['getIntersection'](_0x16ed4d);this['_cutOutSuggestionMarker'](_0x39eace,_0x195c2c);}}const _0x3ff0d1=this['editor']['plugins']['get']('Users')['me'],_0x2f9171=_0x32b8bc(),_0x47d75e=_0x3ff0d1['id'];if(_0x55f679)return this['_setSuggestionRange'](_0x55f679,this['_model']['createRange'](_0x197931,_0x540a73)),_0x55f679;{const _0x20c5e8=this['_setSuggestionData']({'id':_0x2f9171,'type':'formatBlock:'+_0x1a1044,'data':_0x8423db,'createdAt':new Date(),'authorId':_0x47d75e,'attributes':_0x4768ac});return this['_addSuggestionMarker']('formatBlock:'+_0x1a1044,_0x2f9171,_0x47d75e,this['_model']['createRange'](_0x197931,_0x540a73)),_0x20c5e8;}}['markMultiRangeBlockFormat'](_0x212856,_0x2167f6,_0x326e79=[],_0x487587=null,_0x2de843={}){_0x2167f6['formatGroupId']||(_0x2167f6['formatGroupId']=_0x2167f6['commandName']);const _0x39a762=_0x212856[0x0];_0x2167f6['multipleBlocks']=_0x39a762['is']('range'),_0x487587=_0x487587||Kt(_0x2167f6);const _0x1656e8=_0x326e79['map'](_0xb6b67e=>zt(_0xb6b67e,this['_model'])),_0xb16483=_0x39a762['is']('range')?_0x212856:_0x212856['map'](_0x40f64a=>zt(_0x40f64a,this['_model']));if(this['_trackingSessionId']&&(_0x2de843['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x72d8bf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x487587,'accept');return this['forceDefaultExecution'](()=>_0x72d8bf(_0xb16483,_0x2167f6,_0x2de843)),null;}_0x1656e8['push'](..._0xb16483);let _0x1dacd5=!0x0;for(const _0x233cc4 of _0x1656e8)if(!this['_rangeIsInLocalUserInsertion'](_0x233cc4)){_0x1dacd5=!0x1;break;}if(_0x1dacd5&&'always'!==this['_trackFormatChanges']){const _0x3fec8e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x487587,'accept');return this['forceDefaultExecution'](()=>_0x3fec8e(_0xb16483,_0x2167f6,_0x2de843)),null;}const _0x41d765=this['editor']['plugins']['get']('Users')['me'];for(const _0x5015ec of this['getSuggestions']()){if(_0x5015ec['author']['id']!=_0x41d765['id'])continue;if('formatBlock'!=_0x5015ec['type']||_0x5015ec['data']['formatGroupId']!=_0x2167f6['formatGroupId'])continue;if(!Xt(_0x5015ec,_0x2de843))continue;const _0x2639e0=_0x5015ec['subType']==_0x487587;for(let _0x2a0375=0x0;_0x2a0375<_0xb16483['length'];_0x2a0375++){const _0x3fdc78=_0xb16483[_0x2a0375];for(const _0x2aa97b of _0x5015ec['getMarkers']()){const _0x51c3db=_0x2aa97b['getRange']();if(_0x3fdc78['isEqual'](_0x51c3db)){_0x2639e0?(_0xb16483['splice'](_0x2a0375,0x1),_0x2a0375--):_0x5015ec['removeMarker'](_0x2aa97b['name']);break;}}}}if(0x0==_0xb16483['length'])return null;const _0x2998a4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x487587,'join');for(const _0x23720f of this['getSuggestions']())if(_0x23720f['author']['id']==_0x41d765['id']&&'formatBlock'==_0x23720f['type']&&_0x23720f['data']['formatGroupId']==_0x2167f6['formatGroupId']&&_0x23720f['subType']==_0x487587&&Xt(_0x23720f,_0x2de843)&&(_0x2998a4(_0x23720f['getRanges'](),_0xb16483)||_0x2998a4(_0xb16483,_0x23720f['getRanges']()))){for(const _0x19017e of _0xb16483)_0x23720f['addRange'](_0x19017e);return _0x23720f;}const _0x4a7ac0=_0x32b8bc(),_0x245611=_0x41d765['id'],_0x3f9722='formatBlock:'+_0x487587,_0x1f5ece=this['_setSuggestionData']({'id':_0x4a7ac0,'type':_0x3f9722,'data':_0x2167f6,'createdAt':new Date(),'authorId':_0x245611,'attributes':_0x2de843});for(const _0xaacd0d of _0xb16483)this['_addSuggestionMarker'](_0x3f9722,_0x4a7ac0,_0x245611,_0xaacd0d,o['getMultiRangeId']());return _0x1f5ece;}['markDeletion'](_0xc18315,_0x14638b=null,_0x1fc0d2={}){if(_0xc18315['isCollapsed'])return null;const _0x4915b3=this['editor']['plugins']['get']('Users')['me'],_0xb536e5=new _0x2daf6a(_0xc18315['start'],_0xc18315['end']);this['_trackingSessionId']&&(_0x1fc0d2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xff484e,meta:_0xd8f443}of this['_findSuggestions'](_0xb536e5,'insertion'))if(_0xd8f443['isOwn']&&!_0xd8f443['isNextTo']){if(_0xff484e['isMultiRange']){const _0x810b4=_0xff484e['getRanges']()['filter'](_0x463583=>'$graveyard'!=_0x463583['root']['rootName']);_0x810b4['every'](_0x56b574=>_0xb536e5['containsRange'](_0x56b574,!0x0))&&_0xff484e['discard']();if(_0x810b4['some'](_0xa5e506=>_0xa5e506['containsRange'](_0xb536e5,!0x0))){const _0x1d601d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x14638b,'accept');return this['forceDefaultExecution'](()=>_0x1d601d([_0xb536e5],null,_0x1fc0d2)),null;}}else{const _0x1773bc=_0xb536e5['getIntersection'](_0xff484e['getFirstRange']());null!==_0x1773bc&&_0xff484e['_onDiscard']([_0x1773bc],null,_0x1fc0d2);}}if(_0xb536e5['detach'](),_0xb536e5['isCollapsed']||'$graveyard'==_0xb536e5['root']['rootName'])return null;let _0x145147=null,_0x54b4af=_0xb536e5['start'],_0x5abed9=_0xb536e5['end'];const _0x6434b6=this['_findSuggestions'](_0xb536e5,'deletion');for(const {suggestion:_0x3b217f,meta:_0x5aa4b7}of _0x6434b6){const _0x22b141=this['_model']['createRange'](_0x54b4af,_0x5abed9);if(_0x5aa4b7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5aa4b7['containsRangeInObject']&&!_0x5aa4b7['isInsideObject'])){if(_0x3b217f['isMultiRange']){if(!Xt(_0x3b217f,_0x1fc0d2))continue;let _0x114a66=!0x0;for(const _0x3ba3df of _0x3b217f['getRanges']()){if(_0x3ba3df['containsRange'](_0x22b141,!0x0))return _0x3b217f;_0x22b141['containsRange'](_0x3ba3df)||(_0x114a66=!0x1);}_0x114a66&&_0x3b217f['discard']();}else{const _0x5c7679=_0x3b217f['getFirstRange']();if(_0x5c7679['containsRange'](_0x22b141,!0x0))return _0x3b217f;if(!Xt(_0x3b217f,_0x1fc0d2)){_0x22b141['containsRange'](_0x5c7679)?_0x3b217f['removeMarkers']():_0x5c7679['containsPosition'](_0x54b4af)?_0x54b4af=_0x5c7679['end']:_0x5c7679['containsPosition'](_0x5abed9)&&(_0x5abed9=_0x5c7679['start']);continue;}_0x54b4af=_0x54b4af['isBefore'](_0x5c7679['start'])?_0x54b4af:_0x5c7679['start'],_0x5abed9=_0x5abed9['isAfter'](_0x5c7679['end'])?_0x5abed9:_0x5c7679['end'],_0x1fc0d2=Object['assign']({},_0x3b217f['attributes']),_0x145147?_0x5c7679['start']['isBefore'](_0x145147['getFirstRange']()['start'])?(_0x145147['removeMarkers'](),_0x145147=_0x3b217f):_0x3b217f['removeMarkers']():_0x145147=_0x3b217f;}}}if(_0x145147)return this['_setSuggestionRange'](_0x145147,this['_model']['createRange'](_0x54b4af,_0x5abed9)),_0x145147;{const _0x4a1a85=_0x32b8bc(),_0xb11fad=this['_model']['createRange'](_0x54b4af,_0x5abed9),_0x1a12f1=_0x4915b3['id'],_0x1894a5=_0x14638b?'deletion:'+_0x14638b:'deletion',_0x571edb=this['_setSuggestionData']({'id':_0x4a1a85,'type':_0x1894a5,'createdAt':new Date(),'authorId':_0x1a12f1,'attributes':_0x1fc0d2});return this['_addSuggestionMarker'](_0x1894a5,_0x4a1a85,_0x1a12f1,_0xb11fad),_0x571edb;}}['markMultiRangeDeletion'](_0x20a902,_0x26065c='multi',_0x4b22c7={}){const _0x190f41=this['editor']['plugins']['get']('Users')['me'],_0x357d83=_0x20a902['map'](_0x72c5=>new _0x2daf6a(_0x72c5['start'],_0x72c5['end'])),_0x39b1a5=new Set();this['_trackingSessionId']&&(_0x4b22c7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3e0b7b,meta:_0x46f845}of this['_findSuggestions'](_0x357d83,'insertion'))_0x46f845['isOwn']&&!_0x46f845['isNextTo']&&_0x39b1a5['add'](_0x3e0b7b);for(const _0x2a9565 of _0x39b1a5)if(_0x2a9565['isMultiRange']){const _0x2f0e40=_0x2a9565['getRanges']();(!_0x2a9565['attributes']||!_0x2a9565['attributes']['skipNestingCheck'])&&(_0x2f0e40['every'](_0x76ffc6=>_0x357d83['some'](_0x4f05c4=>_0x4f05c4['containsRange'](_0x76ffc6,!0x0)))&&_0x2a9565['discard']());if(_0x357d83['every'](_0x5a69c7=>_0x2f0e40['some'](_0x5b7e29=>_0x5b7e29['containsRange'](_0x5a69c7,!0x0)))){const _0x11ed10=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x26065c,'accept');return this['forceDefaultExecution'](()=>_0x11ed10(_0x20a902,null,_0x4b22c7)),null;}}else{const _0x468376=_0x2a9565['getFirstRange']();_0x357d83['some'](_0x53fcba=>_0x53fcba['containsRange'](_0x468376,!0x0))&&_0x2a9565['discard']();if(_0x357d83['every'](_0x1afebc=>_0x468376['containsRange'](_0x1afebc,!0x0))){const _0x1c8068=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x26065c,'accept');return this['forceDefaultExecution'](()=>_0x1c8068(_0x357d83,null,_0x4b22c7)),null;}}const _0x1f35c3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x26065c,'join');let _0x4d9dd4=null;for(const _0x22c69d of this['getSuggestions']())if(_0x22c69d['author']['id']==_0x190f41['id']&&_0x22c69d['isInContent']&&'deletion'==_0x22c69d['type']&&_0x22c69d['subType']==_0x26065c&&Xt(_0x22c69d,_0x4b22c7)&&(_0x1f35c3(_0x22c69d['getRanges'](),_0x357d83)||_0x1f35c3(_0x357d83,_0x22c69d['getRanges']()))){if(_0x4d9dd4){if(_0x22c69d['commentThread']&&_0x22c69d['commentThread']['length'])continue;for(const _0x334367 of _0x22c69d['getRanges']())_0x4d9dd4['isIntersectingWithRange'](_0x334367)||_0x4d9dd4['addRange'](_0x334367);_0x22c69d['removeMarkers']();}else{_0x4d9dd4=_0x22c69d;for(const _0x282330 of _0x357d83)_0x22c69d['isIntersectingWithRange'](_0x282330)||_0x22c69d['addRange'](_0x282330);}}if(_0x4d9dd4)return _0x4d9dd4;_0x39b1a5['clear']();for(const {suggestion:_0x2480ed,meta:_0x131ac6}of this['_findSuggestions'](_0x357d83,'deletion'))_0x131ac6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x131ac6['containsRangeInObject']&&!_0x131ac6['isInsideObject'])&&Xt(_0x2480ed,_0x4b22c7)&&_0x39b1a5['add'](_0x2480ed);for(const _0x4b67c2 of _0x39b1a5){const _0x4536ca=_0x4b67c2['getRanges']();if(!_0x4b22c7||!_0x4b22c7['skipNestingCheck']){if(_0x357d83['every'](_0x596025=>_0x4536ca['some'](_0x567885=>_0x567885['containsRange'](_0x596025,!0x0))))return _0x4b67c2;}(!_0x4b67c2['attributes']||!_0x4b67c2['attributes']['skipNestingCheck'])&&(_0x4536ca['every'](_0xd63ad1=>_0x357d83['some'](_0x44e5b7=>_0x44e5b7['containsRange'](_0xd63ad1,!0x0)))&&_0x4b67c2['discard']());}const _0x1d1d1d=_0x32b8bc(),_0x32354e=_0x190f41['id'],_0x2700e1='deletion:'+_0x26065c,_0x475eae=this['_setSuggestionData']({'id':_0x1d1d1d,'type':_0x2700e1,'createdAt':new Date(),'authorId':_0x32354e,'attributes':_0x4b22c7});for(const _0x415289 of _0x357d83)_0x415289['detach'](),_0x415289['isCollapsed']||'$graveyard'==_0x415289['root']['rootName']||this['_addSuggestionMarker'](_0x2700e1,_0x1d1d1d,_0x32354e,_0x415289,o['getMultiRangeId']());return _0x475eae;}['markAttributeChange'](_0x1bdc2a,_0x596dc9,_0x10dcc6,_0xdcffd9,_0x2d1ac8){if(_0x1bdc2a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xe94ffb=this['editor']['plugins']['get']('Users')['me']['id'],_0x389132=Array['from'](this['_suggestions']['values']())['filter'](_0x44d27b=>'attribute'==_0x44d27b['type']&&_0x44d27b['data']['key']==_0x596dc9&&_0x44d27b['isIntersectingWithRange'](_0x1bdc2a));if(this['_trackingSessionId']&&(_0x2d1ac8['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x573d1c=this['_findSuggestions'](_0x1bdc2a,'insertion')['filter'](({meta:_0x5da79b})=>_0x5da79b['isOwn']&&!_0x5da79b['isInsideObject']&&!_0x5da79b['isNextTo'])['map'](({suggestion:_0x477469})=>_0x477469);_0x389132['unshift'](..._0x573d1c);}const _0x402fac=new Map([[_0x1bdc2a,_0x10dcc6]]);for(const _0x334ff3 of _0x389132){const _0x4a8de5='attribute'==_0x334ff3['type']?_0x334ff3['data']['oldValue']:void 0x0,_0x9e9329=_0x334ff3['getFirstRange'](),_0x52afab=Array['from'](_0x402fac['keys']())['find'](_0x372805=>_0x372805['isIntersecting'](_0x9e9329));if(!_0x52afab)continue;const _0xc74f18=_0x52afab['getDifference'](_0x9e9329);this['_isBlockAttribute'](_0x596dc9)&&'insertion'==_0x334ff3['type']&&0x0!=_0xc74f18['length']||(_0x402fac['delete'](_0x52afab),_0xc74f18['forEach'](_0x4899c7=>{_0x402fac['set'](_0x4899c7,_0x10dcc6);}),'insertion'!=_0x334ff3['type']&&_0x4a8de5!=_0xdcffd9&&_0x402fac['set'](_0x52afab['getIntersection'](_0x9e9329),_0x4a8de5));}const _0x2272a7=[];for(const [_0x582c5d,_0x3737fc]of _0x402fac){const _0x2c3ce0=_0x32b8bc(),_0x336e92={'key':_0x596dc9,'oldValue':_0x3737fc,'newValue':_0xdcffd9};_0x596dc9['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':_0x596dc9});const _0x32df4c=('attribute:'+(_0x596dc9+'|'+Kt({'newValue':_0xdcffd9})))['substring'](0x0,0x3c),_0x390d0e=this['_setSuggestionData']({'id':_0x2c3ce0,'type':_0x32df4c,'data':_0x336e92,'createdAt':new Date(),'authorId':_0xe94ffb,'attributes':_0x2d1ac8});_0x2272a7['push'](_0x390d0e),this['_addSuggestionMarker'](_0x32df4c,_0x2c3ce0,_0xe94ffb,_0x582c5d);}return _0x2272a7;}['enableDefaultAttributesIntegration'](_0x1edb88){this['enableCommand'](_0x1edb88,(_0x55bbb6,..._0x299b63)=>{this['_recordAttributeChanges'](()=>{_0x55bbb6(..._0x299b63);});});}['registerBlockAttribute'](_0x37fc1f){this['_blockAttributeKeys']['add'](_0x37fc1f);}['registerInlineAttribute'](_0x3cc9b2){this['_inlineAttributeKeys']['add'](_0x3cc9b2);}['startTrackingSession'](_0x622ba0){return this['_trackingSessionId']=void 0x0!==_0x622ba0?_0x622ba0:_0x32b8bc(),this['_trackingSessionId'];}['_getAttributeKey'](_0x22915d){return'attribute'==_0x22915d['type']?_0x22915d['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3bc321,_0x8a610c){const _0x3cb3a3=_0x3bc321['getFirstMarker']();this['_model']['change'](_0x1dc405=>{_0x1dc405['updateMarker'](_0x3cb3a3,{'range':_0x8a610c});});}['_addThreadToSuggestion'](_0x15c415){const _0x19bd53=_0x15c415['id'],_0x7c9853=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x19bd53)||this['_commentsRepository']['addCommentThread']({'channelId':_0x7c9853,'threadId':_0x19bd53,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1c153c=this['_commentsRepository']['getCommentThread'](_0x19bd53);_0x1c153c['unbind']('isRemovable'),_0x1c153c['isRemovable']=!0x1,_0x15c415['commentThread']=_0x1c153c;}['_checkSuggestionCorrectness'](_0xb0b876,_0x233db9,_0x51d772,_0x451e5f){if(_0xb0b876['type']!=_0x233db9||_0xb0b876['subType']!=_0x51d772||_0xb0b876['creator']['id']!=_0x451e5f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2c0c45('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2beaca,_0x5b7877){const _0x2d01f0=_0x2beaca['getFirstRange']();if(_0x5b7877['isEqual'](_0x2d01f0))_0x2beaca['removeMarkers']();else{if(_0x2d01f0['containsRange'](_0x5b7877)){const _0x38b1a0=this['_model']['createPositionAt'](_0x5b7877['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2beaca,this['_model']['createRange'](_0x2d01f0['start'],_0x38b1a0));const _0x17a240=_0x32b8bc(),_0x4f7269=_0x2beaca['creator']['id'],_0x125703=_0x2beaca['type']+':'+_0x2beaca['subType'];this['_setSuggestionData']({'id':_0x17a240,'type':_0x125703,'createdAt':new Date(),'authorId':_0x4f7269,'data':_0x2beaca['data'],'attributes':_0x2beaca['attributes']});const _0xe799b2=this['_model']['createPositionAt'](_0x5b7877['end']['parent'],'after'),_0x5eb417=this['_model']['createRange'](_0xe799b2,_0x2d01f0['end']);this['_addSuggestionMarker'](_0x125703,_0x17a240,_0x4f7269,_0x5eb417);}else{if(_0x2d01f0['containsPosition'](_0x5b7877['start'])){const _0xbb9d0c=this['_model']['createPositionAt'](_0x5b7877['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2beaca,this['_model']['createRange'](_0x2d01f0['start'],_0xbb9d0c));}else{const _0x135fef=this['_model']['createPositionAt'](_0x5b7877['end']['parent'],'after');this['_setSuggestionRange'](_0x2beaca,this['_model']['createRange'](_0x135fef,_0x2d01f0['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4fa919){for(const {suggestion:_0x959890,meta:_0x1b110b}of this['_findSuggestions'](_0x4fa919,'insertion')){if(!_0x1b110b['isOwn'])continue;const _0x47ce34=_0x959890['getRanges']();for(const _0x37f17b of _0x47ce34)if(!_0x4fa919['getDifference'](_0x37f17b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xba43a4){const _0x305776=this['editor']['plugins']['get']('Users')['getUser'](_0xba43a4);if(!_0x305776)throw new _0x2c0c45('track-changes-user-not-found',this);return _0x305776;}['_getExternalAuthor'](_0x241a91){const _0x1ea1ad=this['editor']['plugins']['get']('Users'),_0x1e02fb=_0x1098f6('external:'+_0x241a91),_0x216554=_0x1ea1ad['getUser'](_0x1e02fb);return _0x216554||_0x1ea1ad['addUser']({'id':_0x1e02fb,'name':_0x241a91});}['_createSuggestion'](_0x1409c3,_0x48b71a,_0x49000e,_0x1a66d1,_0x181872){const _0x4fb5e3=this['_getAuthorFromId'](_0x1a66d1),_0x2ab142=this['_suggestionFactory']['buildSuggestion'](_0x1409c3,_0x48b71a,_0x49000e,_0x4fb5e3,_0x181872,_0x1d7d5d=>{this['_updateSuggestionData'](_0x49000e,{'attributes':_0x1d7d5d});const _0x23f55f=this['getSuggestion'](_0x49000e);this['_joinWithAdjacentSuggestions'](new Set([_0x23f55f])),this['_refreshSuggestionsChain'](new Set([_0x23f55f]));});return this['listenTo'](_0x2ab142,'accept',()=>{this['_updateSuggestionData'](_0x49000e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2ab142,'discard',()=>{this['_updateSuggestionData'](_0x49000e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x49000e,_0x2ab142),this['_suggestionState']['set'](_0x2ab142,'notReady'),_0x2ab142;}['_splitMarkerName'](_0x574824){const _0x227c82=_0x574824['split'](':');return{'group':_0x227c82[0x0],'type':_0x227c82[0x1],'subType':_0x227c82['length']>=0x5?_0x227c82[0x2]:null,'id':_0x227c82['length']<0x5?_0x227c82[0x2]:_0x227c82[0x3],'authorId':_0x227c82['length']<0x5?_0x227c82[0x3]:_0x227c82[0x4],'markerCount':0x6==_0x227c82['length']?_0x227c82[0x5]:null};}['_breakSuggestionMarker'](_0x55807e,_0x22d498,_0x2a46bb){const _0x4a61c1=_0x55807e['getFirstRange'](),_0x4d2e81=_0x4a61c1['start'],_0x7989c6=_0x4a61c1['end'];this['_setSuggestionRange'](_0x55807e,this['_model']['createRange'](_0x4d2e81,_0x22d498));const _0x3df43f=_0x32b8bc(),_0x4d2e05=_0x55807e['creator']['id'],_0xb22c77=_0x55807e['type']+(_0x55807e['subType']?':'+_0x55807e['subType']:'');this['_setSuggestionData']({'id':_0x3df43f,'type':_0xb22c77,'createdAt':new Date(),'authorId':_0x4d2e05,'originalSuggestionId':_0x55807e['id'],'attributes':_0x55807e['attributes'],'data':_0x55807e['data']});const _0x4a97ad=this['_getAttributeKey'](_0x55807e);('formatBlock'==_0x55807e['type']||_0x4a97ad&&this['_isBlockAttribute'](_0x4a97ad))&&(_0x2a46bb=this['_model']['createPositionBefore'](_0x2a46bb['parent'])),this['_addSuggestionMarker'](_0xb22c77,_0x3df43f,_0x4d2e05,this['_model']['createRange'](_0x2a46bb,_0x7989c6));}['_findSuggestions'](_0x1e9f5f,_0x42faca=null){const _0x3a35a1=[],_0x32d4a2=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1e9f5f)||(_0x1e9f5f=[_0x1e9f5f]);for(const _0x596e29 of this['getSuggestions']()){if(!_0x596e29['isInContent'])continue;if(_0x42faca&&_0x596e29['type']!=_0x42faca)continue;let _0x30d641=!0x1;for(const _0x24ee56 of _0x596e29['getRanges']()){for(const _0x4ace57 of _0x1e9f5f){const _0x2b0279=_0x4ace57['start']['isEqual'](_0x24ee56['end'])||_0x4ace57['end']['isEqual'](_0x24ee56['start']);if(_0x2b0279||_0x4ace57['getIntersection'](_0x24ee56)){const _0x339336=_0x4ace57['containsRange'](_0x24ee56)&&Gt(this['_model']['schema'],_0x24ee56['start'],_0x4ace57),_0x2e9450=_0x24ee56['containsRange'](_0x4ace57)&&Gt(this['_model']['schema'],_0x4ace57['start'],_0x24ee56);_0x3a35a1['push']({'suggestion':_0x596e29,'meta':{'isOwn':_0x32d4a2==_0x596e29['author'],'isNextTo':_0x2b0279,'isInsideObject':_0x339336,'containsRangeInObject':_0x2e9450}}),_0x30d641=!0x0;break;}}if(_0x30d641)break;}}return _0x3a35a1;}['_addSuggestionMarker'](_0x5c89ea,_0x2400b7,_0x53c995,_0x3784eb,_0x285a42){this['_model']['change'](_0x413503=>{let _0x1bdbdc='suggestion:'+_0x5c89ea+':'+_0x2400b7+':'+_0x53c995;_0x285a42&&(_0x1bdbdc=_0x1bdbdc+':'+_0x285a42),_0x413503['addMarker'](_0x1bdbdc,{'range':_0x3784eb,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x35397d){const _0x473928=_0x35397d['previous'],_0x140c99=_0x35397d['next'];_0x35397d['previous']=null,_0x35397d['next']=null,null!=_0x473928&&_0x473928['next']==_0x35397d&&(_0x473928['next']=_0x140c99),null!=_0x140c99&&_0x140c99['previous']==_0x35397d&&(_0x140c99['previous']=_0x473928),'ready'==this['_suggestionState']['get'](_0x35397d)&&(this['_suggestionState']['set'](_0x35397d,'removed'),this['fire']('suggestionUnloaded',_0x35397d,_0x473928,_0x140c99));}['_setSuggestionData'](_0x22a100){const _0x3b7cc9=_0x22a100['id'],_0x5ad4f3=this['addSuggestionData'](_0x22a100);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x471ce0=this['editor']['plugins']['get']('PendingActions'),_0x1535b5=_0x5ad4f3['hasComments'],_0x1eda72=_0x5ad4f3['subType']?_0x5ad4f3['type']+':'+_0x5ad4f3['subType']:_0x5ad4f3['type'],_0x1da9b4=this['editor']['locale'],_0x793d24=_0x471ce0['add'](c(_0x1da9b4,'PENDING_ACTION_SUGGESTION')),_0x5025fd={'id':_0x3b7cc9,'type':_0x1eda72,'hasComments':_0x1535b5,'data':_0x22a100['data']||null,'originalSuggestionId':_0x22a100['originalSuggestionId']||null,'attributes':_0x5ad4f3['attributes']};this['_adapter']['addSuggestion'](_0x5025fd)['then'](_0x48033e=>{_0x5ad4f3['_saved']=!0x0,_0x471ce0['remove'](_0x793d24),_0x48033e&&_0x48033e['createdAt']&&(this['_suggestions']['get'](_0x3b7cc9)['createdAt']=_0x48033e['createdAt']);})['catch'](_0x1db02c=>{throw _0x5027ec('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5ad4f3['discard']();}),_0x5ad4f3['stopListening'](),this['_suggestions']['delete'](_0x5ad4f3['id']),this['_suggestionState']['delete'](_0x5ad4f3),_0x1db02c;});}return _0x5ad4f3;}['_isBlockAttribute'](_0x40debe){return this['_blockAttributeKeys']['has'](_0x40debe);}['_updateSuggestionData'](_0x20da92,_0x3d6b11){const _0x278fe6=this['editor']['plugins']['get']('PendingActions'),_0x3aa424=this['getSuggestion'](_0x20da92);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3aa424['_saved']){const _0x4082b5=_0x278fe6['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x20da92,_0x3d6b11)['then'](()=>{_0x278fe6['remove'](_0x4082b5);});}else _0x3aa424['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x20da92,_0x3d6b11);});}}['_getSuggestionData'](_0x10d884){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2c0c45('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x10d884);}['_handleNewSuggestionMarker'](_0x2858b3){const {id:_0x3e6364,type:_0x49a829,subType:_0x5bc0c1,authorId:_0xc2e22b}=this['_splitMarkerName'](_0x2858b3),_0xf12da=this['_suggestions']['get'](_0x3e6364)||this['_createSuggestion'](_0x49a829,_0x5bc0c1,_0x3e6364,_0xc2e22b,{});switch(this['_checkSuggestionCorrectness'](_0xf12da,_0x49a829,_0x5bc0c1,_0xc2e22b),this['_suggestionState']['get'](_0xf12da)){case'notReady':this['_getSuggestionData'](_0x3e6364)['then'](_0x376d34=>{let _0x55c373=Promise['resolve']();_0x376d34['hasComments']&&(_0x55c373=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3e6364})),_0x55c373['then'](()=>{this['addSuggestionData'](_0x376d34)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xf12da,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3e6364,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xf12da,'ready'),this['fire']('suggestionLoaded',_0xf12da);break;case'ready':this['fire']('suggestionChanged',_0xf12da);}return _0xf12da['addMarkerName'](_0x2858b3),_0xf12da;}['_refreshSuggestionsChain'](_0x3a6d1f){const _0x414ebd=Array['from'](_0x3a6d1f),_0x414ab9=_0x414ebd['filter'](_0x1e8ed7=>'attribute'==_0x1e8ed7['type']);this['_refreshAttributeSuggestionsChain'](_0x414ab9);const _0x1d0d54=_0x414ebd['filter'](_0x406130=>!_0x406130['isMultiRange']&&'attribute'!=_0x406130['type']),_0xe6b7c8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7143de=>!_0x7143de['isMultiRange']&&'attribute'!=_0x7143de['type']),_0x46a7de=_0xe6b7c8['filter'](_0x3dcea3=>!_0x3a6d1f['has'](_0x3dcea3)),_0x2a2242=new Map(_0xe6b7c8['map'](_0xcb967a=>[_0xcb967a,this['_suggestionFactory']['getSuggestionCallback'](_0xcb967a['type'],_0xcb967a['subType'],'chain')])),_0x46a3f5=new Map(_0xe6b7c8['map'](_0x237dc5=>[_0x237dc5,_0x237dc5['getFirstRange']()])),_0x41cf06=new Set(),_0x31521e=new Set();for(let _0xf42ccd=0x0;_0xf42ccd<_0x1d0d54['length'];_0xf42ccd++)_0xaf1b58(_0x1d0d54[_0xf42ccd],_0x1d0d54,_0xf42ccd+0x1);for(let _0x573cc0=0x0;_0x573cc0<_0x1d0d54['length'];_0x573cc0++)_0xaf1b58(_0x1d0d54[_0x573cc0],_0x46a7de,0x0);const _0x6aa78c=new Set();for(let _0x54b5de=0x0;_0x54b5de<_0x1d0d54['length'];_0x54b5de++){const _0xb5ff16=_0x1d0d54[_0x54b5de];!_0x31521e['has'](_0xb5ff16)&&_0xb5ff16['previous']&&(_0x6aa78c['add'](_0xb5ff16['previous']),_0xb5ff16['previous']['next']===_0xb5ff16&&(_0xb5ff16['previous']['next']=null),_0xb5ff16['previous']=null),!_0x41cf06['has'](_0xb5ff16)&&_0xb5ff16['next']&&(_0x6aa78c['add'](_0xb5ff16['next']),_0xb5ff16['next']['previous']===_0xb5ff16&&(_0xb5ff16['next']['previous']=null),_0xb5ff16['next']=null);}function _0xaf1b58(_0x10a773,_0x13103c,_0x49ad54){for(let _0xf5779c=_0x49ad54;_0xf5779c<_0x13103c['length'];_0xf5779c++){const _0xf53d5d=_0x459aa9(_0x10a773,_0x13103c[_0xf5779c]);_0xf53d5d&&(_0xf53d5d[0x0]['next']=_0xf53d5d[0x1],_0xf53d5d[0x1]['previous']=_0xf53d5d[0x0],_0x41cf06['add'](_0xf53d5d[0x0]),_0x31521e['add'](_0xf53d5d[0x1]));}}function _0x459aa9(_0x499f33,_0x5018a6){if(_0x499f33['author']['id']!==_0x5018a6['author']['id'])return null;const _0xfddad4=_0x2a2242['get'](_0x499f33)(_0x499f33,_0x5018a6,_0x46a3f5['get'](_0x499f33),_0x46a3f5['get'](_0x5018a6));if(!_0xfddad4)return null;return _0x2a2242['get'](_0x5018a6)(_0x499f33,_0x5018a6,_0x46a3f5['get'](_0x499f33),_0x46a3f5['get'](_0x5018a6))?_0xfddad4[0x1]['commentThread']&&_0xfddad4[0x1]['commentThread']['length']?null:_0xfddad4:null;}_0x6aa78c['size']&&this['_refreshSuggestionsChain'](_0x6aa78c);}['_refreshAttributeSuggestionsChain'](_0x185174){if(0x0==_0x185174['length'])return;const _0x4d6a95=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f62fe=>'attribute'==_0x2f62fe['type']&&_0x2f62fe['_isDataLoaded']),_0x516b51=[],_0x47a7fb=new Map();for(const _0x5500e6 of _0x4d6a95){const _0x2a5fde=_0x1098f6(_0x5500e6['attributes']);_0x47a7fb['has'](_0x2a5fde)||(_0x47a7fb['set'](_0x2a5fde,_0x516b51['length']),_0x516b51['push']([]));const _0x6d49a2=_0x47a7fb['get'](_0x2a5fde);_0x516b51[_0x6d49a2]['push'](_0x5500e6);}!(function(){_0x516b51['sort']((_0x1b89e8,_0x5851bb)=>{const _0x58a6c5=_0x1b89e8[0x0]['createdAt'],_0x2ba1b9=_0x5851bb[0x0]['createdAt'];return _0x58a6c5==_0x2ba1b9?_0x1b89e8[0x0]['attributes']['groupId']<_0x5851bb[0x0]['attributes']['groupId']?-0x1:0x1:_0x58a6c5<_0x2ba1b9?-0x1:0x1;});for(const _0x15eeb8 of _0x516b51)_0x15eeb8['sort']((_0x148247,_0x4adc00)=>_0x148247['id']<_0x4adc00['id']?-0x1:0x1);}());for(let _0x360818=0x0;_0x360818<_0x516b51['length'];_0x360818++){if(0x0==_0x516b51[_0x360818]['length'])continue;const _0x49bd4c=[];for(let _0x42632c=_0x360818+0x1;_0x42632c<_0x516b51['length'];_0x42632c++)0x0!=_0x516b51[_0x42632c]['length']&&_0x1523cd(_0x516b51[_0x360818],_0x516b51[_0x42632c])&&_0x49bd4c['push'](_0x42632c);for(const _0x37ea63 of _0x49bd4c)_0x516b51[_0x360818]=_0x516b51[_0x360818]['concat'](_0x516b51[_0x37ea63]),_0x516b51[_0x37ea63]=[];}for(const _0x5f22a4 of _0x516b51)for(let _0x445a34=0x0;_0x445a34<_0x5f22a4['length'];_0x445a34++){const _0x370109=_0x5f22a4[_0x445a34+0x1]||null;_0x5f22a4[_0x445a34]['next']!==_0x370109&&(_0x5f22a4[_0x445a34]['next']=_0x370109);}for(const _0x2b6079 of _0x516b51)for(let _0x520dd4=0x0;_0x520dd4<_0x2b6079['length'];_0x520dd4++){const _0x3e47a2=_0x2b6079[_0x520dd4-0x1]||null;_0x2b6079[_0x520dd4]['previous']!==_0x3e47a2&&(_0x2b6079[_0x520dd4]['previous']=_0x3e47a2);}function _0x1523cd(_0x1c9600,_0x1cc5b1){if(_0x1c9600[0x0]['attributes']['groupId']!==_0x1cc5b1[0x0]['attributes']['groupId']&&_0x1c9600[0x0]['author']!==_0x1cc5b1[0x0]['author'])return!0x1;if(!function(_0x5dee35,_0x184a36){if(!_0x5dee35['hasComments']&&!_0x184a36['hasComments'])return!0x0;if(_0x5dee35['hasComments']&&_0x184a36['hasComments'])return!0x1;if(_0x5dee35['hasComments']&&_0x184a36['createdAt']<_0x5dee35['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x184a36['hasComments']&&_0x5dee35['createdAt']<_0x184a36['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1c9600[0x0],_0x1cc5b1[0x0]))return!0x1;const _0x9ed775=Ft(_0x1c9600[0x0]['attributes'],['groupId','trackingSessionId']),_0x3c1655=Ft(_0x1cc5b1[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x48064e(_0x9ed775,_0x3c1655))return!0x1;if(_0x1c9600[0x0]['attributes']['groupId']==_0x1cc5b1[0x0]['attributes']['groupId'])return!0x0;if(_0x1c9600[0x0]['attributes']['trackingSessionId']!==_0x1cc5b1[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1c9600['every'](_0x24d6f2=>_0x1cc5b1['some'](_0x5f0a62=>_0x24d6f2['getFirstRange']()['isEqual'](_0x5f0a62['getFirstRange']())))&&_0x1cc5b1['every'](_0x1889ce=>_0x1c9600['some'](_0x4f4b41=>_0x1889ce['getFirstRange']()['isEqual'](_0x4f4b41['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x520676){const _0xa9d32b=Array['from'](_0x520676),_0x1ab0a7=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4251bc=_0x1ab0a7['filter'](_0xd868b0=>!_0x520676['has'](_0xd868b0)),_0x4375be=new Map(_0xa9d32b['map'](_0x19aa51=>[_0x19aa51,this['_suggestionFactory']['getSuggestionCallback'](_0x19aa51['type'],_0x19aa51['subType'],'join')])),_0x256efd=new Map(_0x1ab0a7['map'](_0x4f1c8d=>[_0x4f1c8d,_0x4f1c8d['getRanges']()]));for(let _0x537b2f=0x0;_0x537b2f<_0xa9d32b['length'];_0x537b2f++){if(_0x1ad7d3(this,_0xa9d32b[_0x537b2f],_0xa9d32b,_0x537b2f+0x1))return!0x0;}for(let _0x5b99bb=0x0;_0x5b99bb<_0xa9d32b['length'];_0x5b99bb++){if(_0x1ad7d3(this,_0xa9d32b[_0x5b99bb],_0x4251bc,0x0))return!0x0;}return!0x1;function _0x1ad7d3(_0xfded42,_0x54dc7f,_0x14dc1e,_0x228bd6){for(let _0x240111=_0x228bd6;_0x240111<_0x14dc1e['length'];_0x240111++){const _0x12186c=_0x14dc1e[_0x240111];if(_0x12186c['type']!==_0x54dc7f['type']||_0x12186c['author']['id']!==_0x54dc7f['author']['id']||_0x12186c['subType']!==_0x54dc7f['subType'])continue;if(!Qt(_0x54dc7f,_0x12186c))continue;if('attribute'==_0x54dc7f['type']&&_0x54dc7f['data']['oldValue']!=_0x12186c['data']['oldValue'])continue;if('attribute'==_0x54dc7f['type']&&_0xfded42['_isBlockAttribute'](_0x54dc7f['data']['key']))continue;if('formatBlock'==_0x54dc7f['type']){const _0x2d69c7=_0xfded42['editor']['model'],_0x425807=_0x54dc7f['getContainedElement']();if(_0x425807&&(_0x2d69c7['schema']['isObject'](_0x425807)||_0x2d69c7['schema']['isLimit'](_0x425807)))continue;}const _0x386a2e=_0x4375be['get'](_0x54dc7f),_0x11b5b7=_0x256efd['get'](_0x54dc7f),_0x45bdad=_0x256efd['get'](_0x12186c),_0x536ebc=_0x54dc7f['commentThread']&&_0x54dc7f['commentThread']['length'],_0x2e8126=_0x12186c['commentThread']&&_0x12186c['commentThread']['length'];if(!_0x536ebc&&_0x386a2e(_0x45bdad,_0x11b5b7))return _0xfded42['_joinSuggestions'](_0x12186c,_0x54dc7f),_0x256efd['delete'](_0x54dc7f),!0x0;if(!_0x2e8126&&_0x386a2e(_0x11b5b7,_0x45bdad))return _0xfded42['_joinSuggestions'](_0x54dc7f,_0x12186c),_0x256efd['delete'](_0x12186c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x46b459,_0x487d60){if(_0x46b459['isMultiRange']){for(const _0x95c51d of _0x487d60['getRanges']())_0x46b459['addRange'](_0x95c51d);}else{const _0x14dc64=_0x487d60['getFirstRange']()['end'];this['_setSuggestionRange'](_0x46b459,this['_model']['createRange'](_0x46b459['getFirstRange']()['start'],_0x14dc64));}_0x487d60['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5c66f0,_0x198a6e,_0x498fe8){const _0x5410b6=_0x5c66f0['startsWith']('format')||_0x5c66f0['startsWith']('attribute')?'FORMATTING':_0x5c66f0['toUpperCase']();return c(this['editor']['locale'],_0x198a6e+'_'+_0x5410b6+'_SUGGESTION_ANNOUNCEMENT',_0x498fe8);}['_initAriaMarkerChangeAnnouncements'](){const _0x3431c0=this['editor'];if(!_0x3431c0['ui'])return;const {ariaLiveAnnouncer:_0x1344b7}=_0x3431c0['ui'];_0x113694(this['_model'],({left:_0x60179d,entered:_0x451262})=>{for(const _0x298296 of _0x60179d){const {group:_0x20213e,type:_0x28909d}=this['_splitMarkerName'](_0x298296['name']);if('suggestion'===_0x20213e){_0x1344b7['announce'](this['_getMarkerAnnouncementText'](_0x28909d,'LEAVE'));break;}}for(const _0x5e8c62 of _0x451262){const {group:_0xe0004d,type:_0x51509a}=this['_splitMarkerName'](_0x5e8c62['name']);if('suggestion'===_0xe0004d){_0x1344b7['announce'](this['_getMarkerAnnouncementText'](_0x51509a,'ENTER',_0x57f152(_0x55e069)));break;}}});}['_processAttributeChanges'](_0x3c1cba){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1fc76c=this['editor'],_0x383897=_0x1fc76c['model']['document']['differ']['getChanges']();if(0x0==_0x383897['length'])return!0x1;const _0x300dc4=[],_0x41c30d=_0x383897['filter'](_0x589159=>'attribute'==_0x589159['type']),_0x5dfad6=_0x383897['filter'](_0x7fef3d=>'insert'==_0x7fef3d['type']&&'$text'!=_0x7fef3d['name']),_0x2c36a0=_0x383897['filter'](_0x540b0f=>'remove'==_0x540b0f['type']&&'$text'!=_0x540b0f['name']);for(const _0x301230 of _0x41c30d)_0x300dc4['push']({'key':_0x301230['attributeKey'],'newValue':_0x301230['attributeNewValue'],'oldValue':_0x301230['attributeOldValue'],'range':qt(_0x301230['range'],_0x1fc76c['model'])});for(const _0x14f96c of _0x5dfad6){const _0x5b1ccd=_0x2c36a0['find'](_0x13e05c=>_0x13e05c['position']['isEqual'](_0x14f96c['position']));_0x5b1ccd&&_0x300dc4['push']({'key':u,'newValue':_0x14f96c['name'],'oldValue':_0x5b1ccd['name'],'range':_0x1fc76c['model']['createRangeOn'](_0x14f96c['position']['nodeAfter'])});}return 0x0!=_0x300dc4['length']&&this['_reduceExistingSuggestions'](_0x3c1cba,_0x300dc4);}['_processAttributeSuggestions'](_0x219c8){let _0xe2b3bc=!0x1;const _0x56165f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1026e4=>_0x1026e4['data']['newRange']&&_0x1026e4['name']['startsWith']('suggestion:attribute:'));for(const _0x318dc0 of _0x56165f){const {subType:_0xb14656,id:_0x30a097}=this['_splitMarkerName'](_0x318dc0['name']),_0x290b10=_0xb14656['split']('|')[0x0];for(const _0x56f36b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x56f36b['id']!=_0x30a097&&'attribute'==_0x56f36b['type']&&_0x56f36b['data']&&_0x56f36b['data']['key']==_0x290b10&&_0x56f36b['getFirstRange']()['isIntersecting'](_0x318dc0['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x56f36b,_0x318dc0['data']['newRange'],_0x219c8),_0xe2b3bc=!0x0);}return _0xe2b3bc;}['_recordAttributeChanges'](_0x512044){this['_recordAttributeSuggestions']=!0x0,_0x512044();}['_isRegisteredAttribute'](_0xb42dc4){const _0x41d870=this['_isBlockAttribute'](_0xb42dc4),_0x406cf8=this['_inlineAttributeKeys']['has'](_0xb42dc4);return _0x41d870||_0x406cf8;}['_reduceExistingSuggestions'](_0x4775a0,_0x29cabe){if(0x0==_0x29cabe['length'])return!0x1;let _0x53db84=!0x1;for(const _0x3a1ba3 of _0x29cabe){const _0x4c88e3=this['_findSuggestions'](_0x3a1ba3['range'],'attribute')['filter'](_0x825f34=>!_0x825f34['meta']['isNextTo'])['map'](_0x1d4803=>_0x1d4803['suggestion']),_0x574d8e=_0x1098f6({'newValue':_0x3a1ba3['newValue']});_0x4c88e3['filter'](_0xde966f=>{const [_0x274258,_0x1ac940]=_0xde966f['subType']['split']('|');return _0x274258==_0x3a1ba3['key']&&_0x1ac940!=_0x574d8e;})['forEach'](_0x3051ec=>{this['_reduceSuggestionAttributeRange'](_0x3051ec,_0x3a1ba3['range'],_0x4775a0),_0x53db84=!0x0;});}return _0x53db84;}['_reduceSuggestionAttributeRange'](_0x31e16c,_0x5441a6,_0x4e06ab){const _0x11e77f=_0x31e16c['getFirstRange']()['getDifference'](_0x5441a6);0x0!==_0x11e77f['length']?0x1!==_0x11e77f['length']?this['_breakSuggestionMarker'](_0x31e16c,_0x5441a6['start'],_0x5441a6['end']):this['_setSuggestionRange'](_0x31e16c,_0x11e77f[0x0]):_0x4e06ab['removeMarker'](_0x31e16c['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xa17fc0){this['_editor']=_0xa17fc0,this['_model']=_0xa17fc0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x228b66,_0x1a5163,_0x4fc6a8,_0x324403,_0x550720,_0xe11a10){return new o(this['_model'],{'type':_0x228b66,'subType':_0x1a5163,'id':_0x4fc6a8,'author':_0x324403,'creator':_0x324403,'attributes':_0x550720,'onAttributesChange':_0xe11a10,'onAccept':(..._0x36d197)=>this['getSuggestionCallback'](_0x228b66,_0x1a5163,'accept')(..._0x36d197),'onDiscard':(..._0x51ae06)=>this['getSuggestionCallback'](_0x228b66,_0x1a5163,'discard')(..._0x51ae06)});}['registerCustomCallback'](_0x4f9530,_0x57eb29,_0x2854be,_0x4951dd){const _0x5a5911=_0x4f9530+':'+_0x57eb29+':'+_0x2854be;this['_customCallbacks']['set'](_0x5a5911,_0x4951dd);}['getSuggestionCallback'](_0x14fa17,_0x173c7e,_0x292ad4){const _0x217ca2=_0x14fa17+':'+_0x173c7e+':'+_0x292ad4;return this['_customCallbacks']['get'](_0x217ca2)||this['_defaultCallbacks']['get'](_0x14fa17+':'+_0x292ad4);}['_registerDefaultCallbacks'](){const _0x53ba4a=()=>!0x1,_0xd65c9d=_0x499e0e=>{_0x499e0e['sort']((_0x5d2f0d,_0x378a34)=>_0x5d2f0d['start']['isBefore'](_0x378a34['start'])?0x1:-0x1),this['_model']['change'](_0x3c2055=>{for(const _0x2e27a0 of _0x499e0e){let _0x365a32;_0x365a32=_0x2e27a0['end']['isAtEnd']&&_0x2e27a0['end']['parent']==_0x2e27a0['start']['nodeAfter']?_0x3c2055['createSelection'](_0x2e27a0['start']['nodeAfter'],'on'):_0x3c2055['createSelection'](_0x2e27a0),this['_model']['deleteContent'](_0x365a32,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x48c8f0=(_0x264d02,_0x1ca2c2)=>{_0x1ca2c2&&this['_model']['change'](_0xf3d89e=>{const {commandName:_0x1a3bcb,commandParams:_0x1ced8c=[]}=_0x1ca2c2,_0xb20289=_0x264d02['map'](_0x156cf0=>(Lt(_0x156cf0)&&(_0x156cf0=this['_model']['createRange'](_0x156cf0['end'])),_0x156cf0))['filter'](_0x5ab039=>'$graveyard'!==_0x5ab039['root']['rootName']);if(_0xb20289['length']<0x1)return;const _0x2a1668=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x34fdef=>_0x2daf6a['fromRange'](_0x34fdef));_0xf3d89e['setSelection'](_0xb20289);for(const _0x46615d of this['_editor']['commands']['commands']())_0x46615d['refresh']();_0x1ced8c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1a3bcb,..._0x1ced8c);const _0x191dd5=_0x2a1668['filter'](_0x8d2814=>'$graveyard'!=_0x8d2814['root']['rootName']);_0x191dd5['length']>0x0&&_0xf3d89e['setSelection'](_0x191dd5);for(const _0x83509b of _0x2a1668)_0x83509b['detach']();});},_0x1960cc=(_0x540455,_0x171c30)=>0x1==_0x540455['length']&&0x1==_0x171c30['length']&&_0x540455[0x0]['end']['isEqual'](_0x171c30[0x0]['start']),_0x373288=(_0x20a0a6,_0x135c9e,_0x19fc9,_0x5d9a57)=>Wt(_0x20a0a6,_0x135c9e,_0x19fc9,_0x5d9a57)?[_0x20a0a6,_0x135c9e]:Wt(_0x135c9e,_0x20a0a6,_0x5d9a57,_0x19fc9)?[_0x135c9e,_0x20a0a6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x53ba4a),this['_defaultCallbacks']['set']('insertion:discard',_0xd65c9d),this['_defaultCallbacks']['set']('insertion:join',_0x1960cc),this['_defaultCallbacks']['set']('insertion:chain',_0x373288),this['_defaultCallbacks']['set']('deletion:accept',_0xd65c9d),this['_defaultCallbacks']['set']('deletion:discard',_0x53ba4a),this['_defaultCallbacks']['set']('deletion:join',_0x1960cc),this['_defaultCallbacks']['set']('deletion:chain',_0x373288),this['_defaultCallbacks']['set']('formatInline:accept',_0x48c8f0),this['_defaultCallbacks']['set']('formatInline:discard',_0x53ba4a),this['_defaultCallbacks']['set']('formatInline:join',_0x1960cc),this['_defaultCallbacks']['set']('formatInline:chain',_0x53ba4a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x48c8f0),this['_defaultCallbacks']['set']('formatBlock:discard',_0x53ba4a),this['_defaultCallbacks']['set']('formatBlock:join',_0x1960cc),this['_defaultCallbacks']['set']('formatBlock:chain',_0x53ba4a),this['_defaultCallbacks']['set']('attribute:accept',_0x53ba4a),this['_defaultCallbacks']['set']('attribute:discard',(_0x573d09,_0x330b1b)=>{if(!_0x330b1b)return;const _0x4ba994=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3f965d=>{if(_0x330b1b['key']==u)for(const _0x2b5eb4 of _0x573d09){const _0x4be42e=_0x2b5eb4['start']['nodeAfter'],_0x1b9001=_0x330b1b['oldValue'];_0x3f965d['rename'](_0x4be42e,_0x1b9001);}else{if(_0x4ba994['_isBlockAttribute'](_0x330b1b['key'])){for(const _0x142e79 of _0x573d09)void 0x0!==_0x330b1b['oldValue']?_0x3f965d['setAttribute'](_0x330b1b['key'],_0x330b1b['oldValue'],_0x142e79['start']['nodeAfter']):_0x3f965d['removeAttribute'](_0x330b1b['key'],_0x142e79['start']['nodeAfter']);}else{for(const _0x38897c of _0x573d09)_0x330b1b['oldValue']?_0x3f965d['setAttribute'](_0x330b1b['key'],_0x330b1b['oldValue'],_0x38897c):_0x3f965d['removeAttribute'](_0x330b1b['key'],_0x38897c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1960cc);}}function Gt(_0x3a4f51,_0x3d36ed,_0x5dbd5d){for(const _0x256082 of _0x3d36ed['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x256082['root']==_0x256082)return!0x1;if(!_0x5dbd5d['containsItem'](_0x256082))return!0x1;if(_0x3a4f51['isObject'](_0x256082)||_0x3a4f51['isLimit'](_0x256082))return!0x0;}return!0x1;}function Lt(_0x314d17){return _0x314d17['end']['parent']==_0x314d17['start']['nodeAfter']&&_0x314d17['end']['isAtStart'];}function Jt(_0x172dfd,_0x178bba,_0x3ca0e3,_0x428377){const _0x2ae517=_0x538f46=>!_0x538f46['item']['is']('$textProxy')&&!_0x428377['isObject'](_0x538f46['item']),_0x167acb=_0x172dfd['start']['getLastMatchingPosition'](_0x2ae517),_0x1704ed=_0x172dfd['end']['getLastMatchingPosition'](_0x2ae517,{'direction':'backward'});return(!_0x172dfd['start']['isEqual'](_0x167acb)||!_0x172dfd['end']['isEqual'](_0x1704ed))&&(_0x167acb['isBefore'](_0x1704ed)?_0x3ca0e3['updateMarker'](_0x178bba,{'range':_0x3ca0e3['createRange'](_0x167acb,_0x1704ed)}):_0x3ca0e3['removeMarker'](_0x178bba),!0x0);}function Kt(_0x1c1326){return _0x1098f6(_0x1c1326);}function Ht(_0x5bf391){const _0x40e72a=_0x5bf391['start']['nodeAfter'];return _0x40e72a&&_0x40e72a['is']('element');}function qt(_0x266950,_0x4b1909){return null==_0x266950['end']['nodeBefore']&&_0x266950['end']['parent']==_0x266950['start']['nodeAfter']?zt(_0x266950['start']['nodeAfter'],_0x4b1909):_0x266950;}function zt(_0x2f7820,_0x188b88){const _0x2b7b5d=_0x188b88['schema']['isObject'](_0x2f7820)||_0x188b88['schema']['isSelectable'](_0x2f7820);return _0x188b88['createRange'](_0x188b88['createPositionAt'](_0x2f7820,'before'),_0x2b7b5d?_0x188b88['createPositionAfter'](_0x2f7820):_0x188b88['createPositionAt'](_0x2f7820,'end'));}function Wt(_0x3eeff5,_0x1ab592,_0x404c42,_0x7d9511){return!!Qt(_0x3eeff5,_0x1ab592)&&_0x404c42['end']['isEqual'](_0x7d9511['start']);}function Qt(_0x194293,_0x4a2015){if(!_0x194293['_isDataLoaded']||!_0x4a2015['_isDataLoaded'])return!0x1;const _0x43ec49=new Set(Object['keys'](_0x194293['attributes'])),_0x18215c=new Set(Object['keys'](_0x4a2015['attributes']));if(_0x43ec49['delete']('groupId'),_0x18215c['delete']('groupId'),0x0==_0x43ec49['size']&&0x0==_0x18215c['size'])return!0x0;if(_0x43ec49['size']!=_0x18215c['size'])return!0x1;const _0x4479c4={..._0x194293['attributes']},_0x514ba8={..._0x4a2015['attributes']};return delete _0x4479c4['groupId'],delete _0x514ba8['groupId'],JSON['stringify'](_0x4479c4)==JSON['stringify'](_0x514ba8);}function Xt(_0x289475,_0x12c371){const _0x33cf06=Yt(_0x289475['attributes']),_0x17ea84=Yt(_0x12c371);if(!_0x289475['_isDataLoaded'])return!0x1;for(const _0x184cba of Object['keys'](_0x17ea84))if(!_0x48064e(_0x33cf06[_0x184cba],_0x17ea84[_0x184cba]))return!0x1;return!0x0;}function Yt(_0x5310d0){const _0x426bd2=Object['assign']({},_0x5310d0);return delete _0x426bd2['skipNestingCheck'],delete _0x426bd2['tablePasteChainId'],_0x426bd2;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x311d1a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x30a3a7,_0x313cbb,_0x59fec9,_0x4902aa){super(),this['model']=_0x313cbb,this['view']=_0x59fec9,this['commentThreadController']=_0x4902aa,this['_editor']=_0x30a3a7,this['_acceptCommand']=_0x30a3a7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x30a3a7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1ed936,_0x1cc7b5)=>_0x1ed936||_0x1cc7b5),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x10dd49=>_0x10dd49&&this['_editor']['model']['canEditAt'](_0x313cbb['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x12e95d=>_0x12e95d&&this['_editor']['model']['canEditAt'](_0x313cbb['getRanges']())),this['_pendingAction']=null,_0x59fec9['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x59fec9,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x59fec9,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x59fec9,'change:isDirty',()=>{_0x59fec9['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 _0xd03b8d=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xd03b8d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x5c5cfc{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4e303c,_0x31bee7,_0x2052ab,_0x5a41e7){super(_0x4e303c),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x23fc2c(_0x4e303c,c(_0x4e303c,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x31bee7['authoredAt']),this['bind']('authoredAt')['to'](_0x31bee7),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',_0x31bee7,'authoredAt',this,'descriptionParts',(_0x3e46e5,_0x38346c,_0x5857a6)=>{const _0x22e1cb=_0x5857a6['map'](_0x2a8cb5=>ls(_0x2a8cb5['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3e46e5-0x1,_0x31bee7['author']['name'],_0x38346c?_0x5a41e7['formatDateTime'](_0x38346c):'',new DOMParser()['parseFromString'](_0x22e1cb,'text/html')['body']['textContent']]);}),this['focusables']=new _0x47c984(),this['focusTracker']=new _0x5f0f65(),this['keystrokes']=new _0x3c238c(),this['focusCycler']=new _0x1b92be({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5e824f=>_0x5e824f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x31bee7,this['_localUser']=_0x2052ab,this['_config']=_0x5a41e7,_0x5a41e7['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1e4d43(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2e1d79}=this['_config'];this['commentsListView']=new _0x2e1d79(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',_0x43634b=>_0x43634b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x32dcf3,_0x5e6687)=>_0x32dcf3||!!_0x5e6687);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x46e3d7}=this['_config'],_0x949f88=new _0x46e3d7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5ead82=_0x949f88['commentInputView'];return _0x949f88['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5ead82,'value',(_0x357271,_0x291ae4,_0x598092)=>!!_0x598092||_0x357271&&!_0x291ae4),_0x5ead82['on']('submit',(_0x3ef3da,_0x1a31f2)=>{this['fire']('addComment',_0x1a31f2),_0x5ead82['editor']['setData']('');}),_0x5ead82['on']('cancel',()=>this['focus']()),_0x5ead82['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x949f88;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x647052,_0x2f617e,_0x4c5013,_0xa2017b){super(_0x647052,_0x2f617e,_0x4c5013,_0xa2017b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2d056d=>_0x2d056d&&_0x2d056d[0x0]?_0x2d056d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x59e51a,_0x45d557)=>{let _0x1c03b8='';for(const _0xf8b2e5 of _0x59e51a)_0x1c03b8+='<p>'+ls(_0xf8b2e5['content'],_0xf8b2e5['color'])+'</p>';return _0x45d557?_0x1c03b8:ti(_0x1c03b8,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xa2017b['SuggestionView'](_0x647052,_0x2f617e,{'formatDateTime':_0xa2017b['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 _0x24ff49=this['bindTemplate'],_0x354761=[this['suggestionView']];return this['commentsListView']&&_0x354761['push'](this['commentsListView']),this['commentThreadInputView']&&_0x354761['push'](this['commentThreadInputView']),_0x354761['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x24ff49['if']('isActive','ck-suggestion-wrapper--active'),_0x24ff49['to']('type',_0x48811b=>'ck-suggestion-'+_0x48811b),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':_0x24ff49['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x354761};}['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 _0x5c5cfc{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x52bcb9,_0x21d7e4,_0x42c609){super(_0x52bcb9),this['_model']=_0x21d7e4,this['_config']=_0x42c609,this['set']('description',''),this['bind']('authoredAt')['to'](_0x21d7e4),this['acceptButton']=this['_createButton'](c(_0x52bcb9,'Accept\x20suggestion'),_0xf2cf96,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x52bcb9,'Discard\x20suggestion'),_0x58b8b2,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x18adfe(_0x52bcb9,_0x21d7e4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x47c984([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5f0f65(),this['keystrokes']=new _0x3c238c(),this['focusCycler']=new _0x1b92be({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x25b84c=>_0x25b84c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1f35d7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1f35d7['innerHTML']=this['description'],this['on']('change:description',(_0x1c7460,_0x46f933,_0x365c3a)=>{_0x1f35d7['innerHTML']=_0x365c3a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x46bf50=this['bindTemplate'],_0x639f6f=[{'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':_0x46bf50['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x46bf50['to']('authoredAt',_0x1949c0=>this['_config']['formatDateTime'](_0x1949c0))}]}]},{'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']&&_0x639f6f['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':_0x639f6f}]};}['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'](_0x1dff6d,_0x49da1e,_0x4f5bd9,_0x44221a,_0x889043){const _0x38d440=new _0x155a22(this['locale']);return _0x38d440['set']({'label':_0x1dff6d,'icon':_0x49da1e,'tooltip':!0x0,'tooltipPosition':_0x889043}),_0x38d440['extendTemplate']({'attributes':{'class':_0x4f5bd9}}),_0x38d440['on']('execute',()=>{this['fire'](_0x44221a,this['_model']['id']);}),_0x38d440;}['_setupKeyboardNavigation'](){const _0x3f27d9=this['element'];this['keystrokes']['listenTo'](_0x3f27d9);for(const _0x8d4e4a of this['focusables'])this['focusTracker']['add'](_0x8d4e4a['element']),this['keystrokes']['listenTo'](_0x8d4e4a['element']);this['keystrokes']['set']('enter',(_0x5c3040,_0x1e4784)=>{_0x3f27d9===_0x5c3040['target']&&(this['focusCycler']['focusFirst'](),_0x1e4784());}),this['keystrokes']['set']('esc',(_0x1a41e2,_0xe3025b)=>{_0x3f27d9!==_0x1a41e2['target']&&(this['focus'](),_0xe3025b());});}}class d extends _0x3e2428{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3c7e0d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xae5599){super(_0xae5599),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xb89422=this['editor']['config'];_0xb89422['define']('trackChanges.SuggestionThreadView',fe),_0xb89422['define']('trackChanges.SuggestionView',we),_0xb89422['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xb89422['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xd0fa78,_0x2ff953){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4238e4,_0xdd59c3]of this['_handleControllerBuffer']){const _0x524dc3=this['_suggestionToController']['has'](_0x4238e4);_0x524dc3||_0xdd59c3?_0x524dc3&&_0xdd59c3&&this['_destroyController'](_0x4238e4):this['_initializeController'](_0x4238e4);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xd0fa78,_0x2ff953);}['init'](){const _0x413cac=this['editor'],_0x501994=_0x413cac['plugins']['get']('TrackChangesEditing'),_0x4847fa=_0x413cac['plugins']['get']('Annotations'),_0xafe614=_0x413cac['plugins']['get']('EditorAnnotations'),_0x69b62=_0x413cac['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xafe614['addSourceCollector'](()=>{const _0x166f1d=[];for(const [_0x55396f,_0x38e1cc]of Array['from'](this['_suggestionToController'])){const _0x3586f8=_0x55396f['getAllAdjacentSuggestions'](),_0x2551b4=[];for(const _0x4d8d0e of _0x3586f8){if(!_0x4d8d0e['isInContent'])continue;if(_0x4d8d0e['isMultiRange']){_0x2551b4['push'](..._0x4d8d0e['getRanges']());continue;}const _0x544e0a=_0x4d8d0e['getFirstRange']();if(_0x2551b4['length']>0x0){const _0x5aed5e=_0x2551b4[0x0]['getJoined'](_0x544e0a);if(_0x5aed5e){_0x2551b4[0x0]=_0x5aed5e;continue;}}_0x2551b4['push'](_0x544e0a);}_0x166f1d['push']([_0x38e1cc['view'],_0x2551b4]);}return _0x166f1d;}),this['listenTo'](_0x501994,'suggestionLoaded',(_0x320ee4,_0x28996d)=>{this['listenTo'](_0x28996d,'change:previous',(_0x4d0301,_0x3828e8,_0x300645,_0x450eee)=>{_0x28996d['isInContent']&&(null==_0x300645?(this['_updateController'](_0x450eee['head']),this['_handleSuggestionControllerDelayed'](_0x28996d,!0x1)):(this['_updateController'](_0x300645['head']),null==_0x450eee&&this['_handleSuggestionControllerDelayed'](_0x28996d,!0x0)));}),null!==_0x28996d['previous']?this['_updateController'](_0x28996d['head']):this['_handleSuggestionControllerDelayed'](_0x28996d,!0x1);}),this['listenTo'](_0x501994,'suggestionUnloaded',(_0x1544dc,_0x4cf09b,_0x170b36)=>{this['stopListening'](_0x4cf09b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4cf09b),this['_suggestionToController']['has'](_0x4cf09b)&&this['_destroyController'](_0x4cf09b),_0x170b36&&this['_updateController'](_0x170b36['head']);}),this['listenTo'](_0x501994,'suggestionChanged',(_0x8107b4,_0x3bbb11)=>{this['_updateController'](_0x3bbb11);}),this['listenTo'](_0x4847fa,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x69b62,'addComment',(_0xadf7e8,{threadId:_0xad2df7,isFromAdapter:_0x3ac85c})=>{if(_0x3ac85c||!_0x501994['hasSuggestion'](_0xad2df7))return;const _0x5d93d2=_0x501994['getSuggestion'](_0xad2df7);this['_suggestionToController']['get'](_0x5d93d2)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x21d4aa=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x560b4e;for(const _0x3516ed in _0x21d4aa){const _0xaf514c=_0x3516ed,_0x256bd9=_0x21d4aa[_0xaf514c];if('trackChangesLicenseKeyValid'==_0x256bd9||'trackChangesLicenseKeyInvalid'==_0x256bd9||'trackChangesLicenseKeyExpired'==_0x256bd9||'trackChangesLicenseKeyDomainLimit'==_0x256bd9||'trackChangesLicenseKeyNotAllowed'==_0x256bd9||'trackChangesLicenseKeyEvaluationLimit'==_0x256bd9||'trackChangesLicenseKeyTrialLimit'==_0x256bd9||'trackChangesLicenseKeyUsageLimit'==_0x256bd9){delete _0x21d4aa[_0xaf514c],_0x560b4e=_0x256bd9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x560b4e&&_0x21d4aa['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x560b4e&&_0x21d4aa['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x560b4e&&_0x21d4aa['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x560b4e&&_0x21d4aa['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x560b4e&&_0x21d4aa['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x560b4e&&_0x21d4aa['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x560b4e&&_0x21d4aa['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x26f189=this['editor']['plugins']['get']('Annotations'),_0xe57910=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fbb76=Array['from'](_0x26f189['activeAnnotations'],_0x268fda=>_0x268fda['innerView'])['filter'](_0x1aa22d=>this['_viewToController']['has'](_0x1aa22d)),_0xc78e4b=[];for(const _0x3df73c of _0x3fbb76){const _0x91561f=this['_viewToController']['get'](_0x3df73c)['model']['getAllAdjacentSuggestions']();_0xc78e4b['push'](..._0x91561f['reduce']((_0x1eff90,_0x4b27b5)=>[..._0x1eff90,..._0x4b27b5['getMarkerNames']()],[]));}_0xe57910['activeMarkers']=_0xc78e4b;}['_addUIComponentsToFactory'](){const _0x330fc7=this['editor'],_0x392112=_0x330fc7['locale'],_0x1eaa92=c(_0x392112,'Track\x20changes'),_0x2f96ca=new _0x367e57([{'type':'switchbutton','model':new _0x597f14({'withText':!0x0,'isToggleable':!0x0,'label':_0x1eaa92,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x597f14({'withText':!0x0,'label':c(_0x392112,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x597f14({'withText':!0x0,'label':c(_0x392112,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x597f14({'withText':!0x0,'label':c(_0x392112,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x597f14({'withText':!0x0,'label':c(_0x392112,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x330fc7['plugins']['has']('TrackChangesPreview')&&_0x2f96ca['addMany']([{'type':'separator'},{'type':'button','model':new _0x597f14({'withText':!0x0,'label':c(_0x392112,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5d5fe2 of _0x2f96ca)if(ke(_0x5d5fe2)){const _0xd3792c=_0x330fc7['commands']['get'](_0x5d5fe2['model']['commandName']);_0x5d5fe2['model']['bind']('isOn','isEnabled')['to'](_0xd3792c,'value','isEnabled');}_0x330fc7['ui']['componentFactory']['add']('trackChanges',_0x4bc102=>this['_createToolbarButton'](_0x4bc102,_0x2f96ca,_0x1eaa92)),_0x330fc7['ui']['componentFactory']['add']('menuBar:trackChanges',_0x28bbad=>this['_createMenuBarMenu'](_0x28bbad,_0x2f96ca,_0x1eaa92));}['_createToolbarButton'](_0x33f9a9,_0x551afc,_0x1101d8){const _0xcc5d6e=_0x648dfa(_0x33f9a9,_0x423aa4),_0x10a48a=this['editor']['commands']['get']('trackChanges');_0xcc5d6e['buttonView']['set']({'tooltip':_0x1101d8,'label':_0x1101d8,'icon':_0xf43b}),_0xcc5d6e['buttonView']['bind']('isOn')['to'](_0x10a48a,'value'),_0xcc5d6e['buttonView']['on']('execute',()=>{_0x10a48a['execute'](),this['editor']['editing']['view']['focus']();}),_0x4f877f(_0xcc5d6e,_0x551afc,{'role':'menu'});const _0x1e17d2=[];for(const _0x206ea0 of _0x551afc)ke(_0x206ea0)&&_0x1e17d2['push'](this['editor']['commands']['get'](_0x206ea0['model']['commandName']));const _0x3e3a32=_0xcc5d6e['buttonView'];return _0x3e3a32['actionView']['unbind']('isEnabled'),_0x3e3a32['arrowView']['unbind']('isEnabled'),_0x3e3a32['actionView']['bind']('isEnabled')['to'](_0x10a48a,'isEnabled'),_0x3e3a32['arrowView']['bind']('isEnabled')['toMany'](_0x1e17d2,'isEnabled',(..._0x1cece5)=>_0x1cece5['some'](_0x1afbc3=>_0x1afbc3)),_0xcc5d6e['on']('execute',_0x1765f1=>{this['editor']['execute'](_0x1765f1['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xcc5d6e;}['_createMenuBarMenu'](_0x2764cf,_0xf27ded,_0x3e47b7){const _0x39bb9c=new _0x25591e(_0x2764cf),_0x473a5b=this['editor']['commands']['get']('trackChanges');_0x39bb9c['buttonView']['set']({'label':_0x3e47b7,'icon':_0xf43b});const _0x1eabf7=new _0x13ff27(_0x2764cf);for(const _0x49c87f of _0xf27ded){if('separator'==_0x49c87f['type']){_0x1eabf7['items']['add'](new _0x405e56(_0x2764cf));continue;}const _0x4ea31b=new _0x5986e2(_0x2764cf,_0x39bb9c),_0x5637ce=new _0x510a60(_0x2764cf),_0x30ba8b=_0x49c87f['model'];_0x5637ce['bind'](...Object['keys'](_0x30ba8b))['to'](_0x30ba8b),_0x5637ce['delegate']('execute')['to'](_0x39bb9c),_0x5637ce['on']('execute',()=>{this['editor']['execute'](_0x30ba8b['commandName']),this['editor']['editing']['view']['focus']();}),_0x4ea31b['children']['add'](_0x5637ce),_0x1eabf7['items']['add'](_0x4ea31b);}return _0x39bb9c['bind']('isEnabled')['to'](_0x473a5b,'isEnabled'),_0x39bb9c['panelView']['children']['add'](_0x1eabf7),_0x39bb9c;}['_initializeController'](_0x50c2a5){const _0x588786=this['editor'],_0x55079c=_0x588786['config'],_0x34d6f5=_0x588786['plugins']['get']('Annotations'),_0x569f10=_0x588786['plugins']['get']('CommentsRepository'),_0x512803=_0x588786['plugins']['get']('EditorAnnotations'),_0x4f549b=_0x588786['plugins']['get'](_0x3c7e0d)['me'],_0x482e9c=_0x55079c['get']('trackChanges')['SuggestionThreadView'],_0x3a2804=_0x55079c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x171331,CommentThreadInputView:_0x201a7a}=_0x588786['plugins']['get']('CommentsUI');let _0x280f5e,_0xedf6ef,_0x523bad;this['_annotationViews']['has'](_0x50c2a5['id'])?(_0xedf6ef=this['_annotationViews']['get'](_0x50c2a5['id']),_0x280f5e=_0xedf6ef['mainView']):(_0x280f5e=new _0x482e9c(_0x588786['locale'],_0x50c2a5,_0x4f549b,{'disableComments':this['_disableComments'],'editorConfig':{..._0x55079c['get']('comments.editorConfig'),'licenseKey':_0x55079c['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x55079c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x55079c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x55079c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2b3e4a(_0x55079c['get']('locale'),_0x588786['locale']),'CommentView':_0x55079c['get']('comments')['CommentView'],'CommentsListView':_0x171331,'CommentThreadInputView':_0x201a7a,'SuggestionView':_0x3a2804}),_0x280f5e['suggestionView']['acceptButton']['on']('execute',()=>{_0x588786['editing']['view']['focus']();}),_0x280f5e['suggestionView']['discardButton']['on']('execute',()=>{_0x588786['editing']['view']['focus']();}),_0xedf6ef=_0x34d6f5['createAnnotationView'](this['editor']['locale'],_0x280f5e),_0xedf6ef['bind']('isDirty')['to'](_0x280f5e,'isDirty'),_0xedf6ef['bind']('length')['to'](_0x280f5e),_0xedf6ef['bind']('type')['to'](_0x280f5e,'type',_0x31552a=>'suggestion-'+_0x31552a),_0x280f5e['on']('escape',()=>{_0x523bad['fire']('escape');}),this['_annotationViews']['set'](_0x50c2a5['id'],_0xedf6ef));const _0x967785=_0x569f10['createCommentThreadController'](_0x50c2a5['commentThread'],_0x280f5e),_0x20fc3d=new pe(_0x588786,_0x50c2a5,_0x280f5e,_0x967785),_0x12103e=_0x50c2a5['getAllAdjacentSuggestions']()['filter'](_0x590b17=>_0x590b17['isInContent']);_0x280f5e['descriptionParts']=_0x588786['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x12103e),this['_suggestionToController']['set'](_0x50c2a5,_0x20fc3d),this['_viewToController']['set'](_0x280f5e,_0x20fc3d),_0x523bad=_0x34d6f5['createAnnotation']({'view':_0xedf6ef,'target':()=>{const _0x545b9a=[],_0x4cf406=_0x50c2a5['getAllAdjacentSuggestions']()['filter'](_0xc64c8b=>_0xc64c8b['isInContent']);for(const _0x5abdc1 of _0x4cf406)_0x545b9a['push'](..._0x5abdc1['getMarkers']());return _0x371a4a(_0x588786['editing'],_0x545b9a);},'type':()=>'suggestion-'+_0x20fc3d['view']['type']}),_0x569f10['_bindAnnotationToEditors'](_0x280f5e,_0x523bad),_0x34d6f5['add'](_0x523bad),_0x512803['registerAnnotation'](_0x523bad);}['_destroyController'](_0x5e8a3d){const _0x856c58=this['editor']['plugins']['get']('CommentsRepository'),_0x22b770=this['editor']['plugins']['get']('Annotations'),_0x3db15f=this['_suggestionToController']['get'](_0x5e8a3d),_0xfb23c2=_0x3db15f['view'],_0x2188ad=_0x22b770['getByInnerView'](_0xfb23c2);_0x856c58['_unbindEditors'](_0xfb23c2),_0x2188ad&&_0x22b770['remove'](_0x2188ad),this['_suggestionToController']['delete'](_0x5e8a3d),this['_viewToController']['delete'](_0xfb23c2),_0x3db15f['destroy']();}['_updateController'](_0x5712d8){if(!_0x5712d8['isInContent']||!this['_suggestionToController']['has'](_0x5712d8))return;const _0x26e44c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2764fb=this['_suggestionToController']['get'](_0x5712d8),_0x368ca7=_0x5712d8['getAllAdjacentSuggestions']();_0x2764fb['view']['descriptionParts']=_0x26e44c['descriptionFactory']['getDescriptions'](_0x368ca7);}['destroy'](){for(const _0x2a34d8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2a34d8);for(const _0x9c9108 of this['_annotationViews']['values']())_0x9c9108['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x153a85){return'model'in _0x153a85;}class k extends _0x3e2428{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x39b524){this['editor']['plugins']['get'](p)['adapter']=_0x39b524;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x56e91f){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x56e91f);}['getSuggestions']({skipNotAttached:_0x125669=!0x1,toJSON:_0xec8e5d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x125669,'toJSON':_0xec8e5d});}['getSuggestion'](_0x4c599f){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4c599f);}}const w=['Pagination'];class T extends _0x3e2428{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x569d62=this['editor'];if(_0x569d62['config']['define']('trackChangesData.editorCreator',_0x1c1945=>{const _0x3ee409=_0x569d62['model']['document']['getRootNames']()['reduce']((_0x277921,_0x36cec3)=>(_0x277921[_0x36cec3]='',_0x277921),{});return _0x569d62['constructor']['create'](_0x3ee409,_0x1c1945);}),'function'!=typeof _0x569d62['config']['get']('trackChangesData')['editorCreator'])throw new _0x2c0c45('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x64503e){return N(this['editor'],!0x0,_0x64503e);}['getDataWithDiscardedSuggestions'](_0x5f4878){return N(this['editor'],!0x1,_0x5f4878);}}class D extends _0x3e2428{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12d9d5){function _0x509318(_0x1e808c){return _0x1e808c['map'](_0x21f020=>String['fromCharCode'](_0x21f020))['join']('');}super(_0x12d9d5),this['result']='end',_0x12d9d5[_0x509318([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x509318([0x76,0x69,0x65,0x77])][_0x509318([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x509318([0x61,0x75,0x74,0x6f]),_0x12d9d5[_0x509318([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x509318([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x509318([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x509318([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x509318([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(_0x14c9e5){return void 0x0!==_0x14c9e5['getRootsAttributes'];}async function N(_0x40fc68,_0x5b3e93,_0x2b6882){const _0x44e0ce=_0x4ca52d(_0x40fc68,w);_0x44e0ce['plugins']['push'](p,D),_0x44e0ce['rootsAttributes']=Ge(_0x40fc68)?_0x40fc68['getRootsAttributes']():void 0x0;const _0x3801af=document['createDocumentFragment'](),_0x27c75d=_0x40fc68['config']['get']('trackChangesData')['editorCreator'],_0x4046f5=await _0x27c75d(_0x44e0ce,()=>function(_0x121d07){const _0x48e1ce=document['createElement']('div');return _0x121d07['appendChild'](_0x48e1ce),_0x48e1ce;}(_0x3801af));!function(_0x52209d,_0x2991fd){const _0x15071d=_0x52209d['model']['document']['getRootNames']()['reduce']((_0x18fcb1,_0x3897da)=>(_0x18fcb1[_0x3897da]=_0x52209d['data']['get']({'rootName':_0x3897da}),_0x18fcb1),{}),_0x3ed560=_0x52209d['plugins']['get']('Users')['users']['map'](_0x3867a4=>({'id':_0x3867a4['id'],'name':_0x3867a4['name']})),_0x2766cc=_0x52209d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3d0e6a=_0x52209d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x781bc1=_0x2991fd['plugins']['get']('Users'),_0x3bf12b=_0x2991fd['plugins']['get']('TrackChangesEditing'),_0x5ad61e=_0x2991fd['plugins']['get']('CommentsRepository');for(const _0x2ce7fd of _0x5ad61e['getCommentThreads']())_0x2ce7fd['remove']();for(const _0x35c9b6 of _0x3ed560)_0x781bc1['getUser'](_0x35c9b6['id'])||_0x781bc1['addUser'](_0x35c9b6);_0x781bc1['me']||_0x781bc1['useAnonymousUser']();for(const _0x40b6c5 of _0x3d0e6a)_0x5ad61e['addCommentThread'](_0x40b6c5);for(const _0x402b7d of _0x2766cc)_0x3bf12b['addSuggestionData'](_0x402b7d);_0x2991fd['data']['set'](_0x15071d);}(_0x40fc68,_0x4046f5),_0x4046f5['execute'](_0x5b3e93?'acceptAllSuggestions':'discardAllSuggestions');const _0x51451d=Ge(_0x4046f5)?_0x4046f5['getFullData'](_0x2b6882):_0x4046f5['data']['get'](_0x2b6882);return await _0x4046f5['destroy'](),_0x51451d;}class Me extends _0x5c5cfc{['options'];constructor(_0x33e457,_0x4c6477){super(_0x33e457),this['options']=_0x4c6477,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'](_0x55701e,_0x2c4cde){if(!this['element'])return;const _0x2d6263=[];for(const [_0x5c353f,_0x4e764d]of _0x55701e){const _0x3ba6e7=document['createElement']('div');_0x3ba6e7['setAttribute']('data-ck-root-name',_0x5c353f),_0x3ba6e7['className']=_0x4e764d['classes']+'\x20ck-track-changes-preview__root-container',_0x3ba6e7['innerHTML']=_0x4e764d['content'],_0x2d6263['push'](_0x3ba6e7);}_0x2c4cde(this['element'],_0x2d6263),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x3929fd{constructor(_0x23440d){super(_0x23440d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2b6495=this['editor'],_0x41a5b=_0x2b6495['locale'],_0x51a374=_0x2b6495['plugins']['get']('Dialog');let _0x4caab8;const _0xafa077=function(_0x1b1137){const _0x50a39d={};if('editables'in _0x1b1137['ui']['view']){for(const [_0x945bf9,_0x1b7358]of Object['entries'](_0x1b1137['ui']['view']['editables']))_0x50a39d[_0x945bf9]=_0x1b7358['element'];}else _0x50a39d[_0x1b1137['model']['document']['getRootNames']()[0x0]]=_0x1b1137['ui']['view']['editable']['element'];return _0x50a39d;}(_0x2b6495),_0xde7694=function(_0x5db221){let _0x4e797c=0x0;for(const _0x50b7c7 of Object['values'](_0x5db221))_0x4e797c=Math['max'](_0x4e797c,_0x50b7c7['getBoundingClientRect']()['width']);let _0x2db317=0x0;for(const _0x578f21 of Object['values'](_0x5db221))_0x2db317+=_0x578f21['getBoundingClientRect']()['height'];const _0x57d620=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4ca68d=Math['min'](_0x2db317,_0x57d620);return{'width':_0x4e797c,'height':_0x4ca68d};}(_0xafa077);_0x51a374['show']({'id':'finalContentPreview','title':c(_0x41a5b,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x41a5b,{'dialogRects':_0xde7694}),'onHide':()=>{_0x4caab8['detachFromDom']();},'onShow':()=>{_0x2b6495['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x31d076=>{const _0x55fe74=this['_standarizeRootsData'](_0x31d076,_0x2b6495,_0xafa077);_0x51a374['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x55fe74,_0x2b6495['config']['get']('trackChanges.preview.renderFunction'));}),_0x4caab8=new _0x5ccbb8(_0x41a5b,[_0x51a374['view']]),_0x4caab8['attachToDom'](),_0x4caab8['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2b6495['once']('destroy',()=>{_0x4caab8['detachFromDom']();});const _0x5a023a=_0x51a374['view']['headerView']['class'];_0x51a374['view']['headerView']['class']=_0x5a023a?_0x5a023a+'\x20ck-reset_all':'ck-reset_all',_0x51a374['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x51a374['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1ce414=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x343439=_0x1ce414['previewMode'],_0x365a0d={};if('$labels'===_0x343439){for(const _0x43459e of _0x1ce414['getMergeFieldsIds']())_0x365a0d[_0x43459e]=_0x1ce414['getLabel'](_0x43459e)||_0x43459e;}else{const _0x5192b9='$defaultValues'===_0x343439?_0x1ce414['getDefaultValues']():_0x1ce414['getDataSetValues'](_0x343439,!0x0);for(const _0x42a737 of Object['entries'](_0x5192b9)){const [_0x2d1cd6,_0x38f3b4]=_0x42a737;_0x365a0d[_0x2d1cd6]=null!==_0x38f3b4?_0x38f3b4:_0x1ce414['getLabel'](_0x2d1cd6)||_0x2d1cd6;}}return{'mergeFieldsData':_0x365a0d};}['_standarizeRootsData'](_0x35cc84,_0x454194,_0x45b5db){let _0x180951;if('string'==typeof _0x35cc84){const _0x347954=_0x454194['model']['document']['getRootNames']()[0x0];_0x180951={[_0x347954]:_0x35cc84};}else _0x180951=_0x35cc84;const _0x3a490a=this['_fixMediaEmbeds'](_0x180951,_0x454194),_0x27d91d=function(_0x1b78a3,_0x5316f7){for(const [_0x4306fe,_0x5061cb]of _0x1b78a3)_0x5061cb['classes']=_0x5316f7[_0x4306fe]['classList']['value']['replace']('ck-focused','');return _0x1b78a3;}(this['_sortRoots'](_0x454194)['reduce']((_0x430c53,_0x222b16)=>(_0x430c53['push']([_0x222b16,{'content':_0x3a490a[_0x222b16],'classes':''}]),_0x430c53),[]),_0x45b5db);return _0x27d91d;}['_fixMediaEmbeds'](_0x34fa2f,_0x3b3f69){if(!_0x3b3f69['plugins']['has']('MediaEmbedEditing'))return _0x34fa2f;const _0x23524e=_0x3b3f69['plugins']['get']('MediaEmbedEditing');for(const [_0xb03de8,_0x3806e8]of Object['entries'](_0x34fa2f)){const _0x5948f2=document['createElement']('div');_0x5948f2['innerHTML']=_0x3806e8,(_0x5948f2['querySelectorAll']('figure.media')['forEach'](_0x9ca5fb=>{const _0x286a79=_0x9ca5fb['querySelector']('oembed');if(_0x286a79){const _0x238fd6=_0x286a79['getAttribute']('url');if(_0x238fd6){const _0x1a3ef0=_0x23524e['registry']['getMediaViewElement'](new _0xd41810(_0x3b3f69['editing']['view']['document']),_0x238fd6,{'elementName':'','renderForEditingView':!0x0}),_0x836e7f=document['createElement']('div');_0x836e7f['classList']['add']('ck-media__wrapper'),_0x1a3ef0['render'](_0x836e7f,_0x3b3f69['editing']['view']['domConverter']),_0x286a79['replaceWith'](_0x836e7f);}}}),_0x34fa2f[_0xb03de8]=_0x5948f2['innerHTML']);}return _0x34fa2f;}['_sortRoots'](_0x513842){if(!function(_0xa55e6d){return void 0x0!==_0xa55e6d['getRootsAttributes'];}(_0x513842))return _0x513842['model']['document']['getRootNames']();const _0x2ea131=[],_0x14660d=new Map();for(const _0x431377 of _0x513842['model']['document']['getRootNames']()){const _0x519884=_0x513842['editing']['view']['getDomRoot'](_0x431377)['getClientRects']()['item'](0x0);_0x2ea131['push'](_0x431377),_0x14660d['set'](_0x431377,_0x519884);}return _0x2ea131['sort']((_0x1b57a2,_0x959287)=>{const _0x2d70fd=_0x14660d['get'](_0x1b57a2),_0x28515d=_0x14660d['get'](_0x959287);return _0x2d70fd['y']-_0x28515d['y']||_0x2d70fd['x']-_0x28515d['x'];}),_0x2ea131;}}class te extends _0x3e2428{static get['requires'](){return[T,_0x37cf6e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb31b48){super(_0xb31b48),_0xb31b48['commands']['add']('previewFinalContent',new re(this['editor'])),_0xb31b48['config']['define']('trackChanges.preview.renderFunction',(_0x2e1979,_0x564b21)=>{for(const _0x493a88 of _0x564b21)_0x2e1979['appendChild'](_0x493a88);});}}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 _0x452710,Plugin as _0x1f2d8e,PendingActions as _0x2d1220}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x37a522,ObservableMixin as _0x5651e5,uid as _0x51cb10,priorities as _0x2a07cf,insertToPriorityArray as _0x3ca681,toArray as _0x47f455,logWarning as _0x554ee1,getEnvKeystrokeText as _0x98b6d3,FocusTracker as _0x48dea9,KeystrokeHandler as _0x4fa3ff,Collection as _0x55e1d1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x57ee3a,IconCancel as _0x5cef2e,IconTrackChanges as _0x3d1630}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x591dcb,View as _0x32d33a,ViewCollection as _0x5129bd,FocusCycler as _0x5358bc,ViewModel as _0x464a84,createDropdown as _0x436f69,SplitButtonView as _0x13941c,addListToDropdown as _0x83a458,MenuBarMenuView as _0x1da52a,MenuBarMenuListView as _0x3179db,ListSeparatorView as _0x42ba10,MenuBarMenuListItemView as _0x101db4,MenuBarMenuListItemButtonView as _0x137d18,BodyCollection as _0x48fe04,Dialog as _0x419c0f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1bf6a0,hashObject as _0xac6d13,surroundingMarkersDetector as _0x4c0d16,FOCUS_ANNOTATION_KEYSTROKE as _0x54f72d,AriaDescriptionView as _0x5b4f7d,setupThreadKeyboardNavigation as _0x21440b,trimHtml as ti,UserView as _0x5d6d0c,LateFocusButtonView as _0x27f3f4,getDateTimeFormatter as _0x3b7302,getAllMarkersDomElementsSorted as _0x4eabe4,sanitizeEditorConfig as _0xe47ff7}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5affcb,LiveRange as _0x41f0a3,LivePosition as _0x1dc9c2,DowncastWriter as _0x5584ca}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2af7d7,toWidget as _0xa77c19}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xaf7dc4,set as _0x344a4a,isEqual as _0x511cf6,unset as _0x5b161e,omit as Ft}from'es-toolkit/compat';import{Delete as _0x1d9661,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x432e00}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1f66ef}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x452710{['_enabledCommands'];constructor(_0x73d72b,_0x46c9d2){super(_0x73d72b),this['_enabledCommands']=_0x46c9d2,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 _0x498404 of this['editor']['commands']['commands']())_0x498404['affectsData']&&!this['_enabledCommands']['has'](_0x498404)&&_0x498404['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x194203 of this['editor']['commands']['commands']())_0x194203['affectsData']&&!this['_enabledCommands']['has'](_0x194203)&&_0x194203['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x452710{['_suggestions'];constructor(_0x25f561,_0x925071){super(_0x25f561),this['_suggestions']=_0x925071,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3275aa){const _0x109745=this['_suggestions']['get'](_0x3275aa);if(!_0x109745)throw new _0x37a522('track-changes-accept-suggestion-not-found',this);const _0x36ad76=_0x109745['getRanges']();this['editor']['model']['canEditAt'](_0x36ad76)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x109745);}}class O extends _0x452710{['_suggestions'];constructor(_0x1f10d0,_0x2c0b14){super(_0x1f10d0),this['_suggestions']=_0x2c0b14,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1c6529){const _0x2fb979=this['_suggestions']['get'](_0x1c6529);if(!_0x2fb979)throw new _0x37a522('track-changes-discard-suggestion-not-found',this);const _0x2205ef=_0x2fb979['getRanges']();this['editor']['model']['canEditAt'](_0x2205ef)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2fb979);}}function ls(_0x35e447,_0x215188){let _0x4dc4f9='';return _0x4dc4f9+=_0x35e447['split']('*')['map']((_0x22dc4e,_0x4d81da)=>_0x4d81da%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x22dc4e)+'</span>':nn(_0x22dc4e))['join'](''),_0x215188&&(_0x4dc4f9+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x215188['value']+'\x22\x20title=\x22'+_0x215188['title']+'\x22></span>'),_0x4dc4f9;}function nn(_0x5489c1){const _0x183a38=document['createElement']('span');return _0x183a38['innerText']=_0x5489c1,_0x183a38['innerHTML'];}function ts(_0x14d176){return _0x14d176['sort']((_0x42a4d9,_0x470a09)=>'deletion'==_0x42a4d9['type']&&'deletion'!=_0x470a09['type']?-0x1:'deletion'!=_0x42a4d9['type']&&'deletion'==_0x470a09['type']?0x1:0x0);}function to(_0x577e66,_0x1ac315){let _0x2f322c,_0x22f9f4=0x0;const _0x3e1842=[],_0x1be4f0=_0x1ac315['schema'];for(;_0x22f9f4<_0x577e66['length'];){const _0x4d04a=_0x577e66[_0x22f9f4],_0x1a9b82=_0x577e66[_0x22f9f4+0x1];_0x2f322c||(_0x2f322c=_0x1ac315['createPositionBefore'](_0x4d04a)),on(_0x1ac315,_0x4d04a,_0x1a9b82)||(_0x3e1842['push'](_0x1ac315['createRange'](_0x2f322c,_0x1be4f0['isObject'](_0x4d04a)?_0x1ac315['createPositionAfter'](_0x4d04a):_0x1ac315['createPositionAt'](_0x4d04a,'end'))),_0x2f322c=null),_0x22f9f4++;}return _0x3e1842;}function on(_0x2cfaef,_0x277312,_0x479a45){if(!_0x479a45)return!0x1;const _0x4ec7b1=_0x2cfaef['createPositionAfter'](_0x277312),_0x2eb354=_0x2cfaef['createPositionBefore'](_0x479a45);return _0x4ec7b1['isTouching'](_0x2eb354);}function rs(_0x22c9d7,_0x36d342,_0x1672be){for(;_0x1672be['length'];){const _0x5de1bb=_0x1672be['splice'](0x0,0x64);_0x22c9d7['change'](()=>{for(const _0x518247 of _0x5de1bb)_0x518247['isInContent']&&_0x36d342['execute'](_0x518247['id']);});}}class R extends _0x452710{['_command'];['_suggestions'];constructor(_0x437d00,_0x2e0c53,_0x5ef2c5){super(_0x437d00),this['_command']=_0x2e0c53,this['_suggestions']=_0x5ef2c5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x14079a=Array['from'](this['_suggestions']['values']())['some'](_0x1e9738=>_0x1e9738['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x14079a;}['execute'](){const _0x20e31d=ts(Array['from'](this['_suggestions']['values']()));for(const _0x1780eb of _0x20e31d){const _0x2d0b4f=_0x1780eb['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2d0b4f))return;}rs(this['editor']['model'],this['_command'],_0x20e31d);}}class E extends _0x452710{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xf5b357,_0x5a21c8,_0x3b2d18){super(_0xf5b357),this['_command']=_0x5a21c8,this['_suggestions']=_0x3b2d18,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4f5b84=this['editor']['model']['document']['selection'],_0xc6e043=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3f8d2b,_0x3d10e7){const _0x2cdc7e=Array['from'](_0x3f8d2b['getRanges']()),_0x39d9d1=new Set();for(const _0x389105 of _0x3d10e7)if(_0x389105['isInContent']){for(const _0x95978f of _0x2cdc7e)for(const _0x60c1fb of _0x389105['getRanges']())(_0x95978f['isIntersecting'](_0x60c1fb)||_0x3f8d2b['isCollapsed']&&!_0x389105['isMultiRange']&&_0x389105['next']&&_0x60c1fb['end']['isTouching'](_0x95978f['start']))&&_0x39d9d1['add'](_0x389105);}return _0x39d9d1;}(_0x4f5b84,_0xc6e043),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5c9464=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3f9b17 of _0x5c9464){const _0x3b53c1=_0x3f9b17['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3b53c1))return;}rs(this['editor']['model'],this['_command'],_0x5c9464);}}class o extends/* #__PURE__ -- @preserve */
|
|
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};
|