@ckeditor/ckeditor5-track-changes 45.2.0-alpha.5 → 45.2.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +27 -27
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x5e4a13(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x154f0a,_0x51611c){super(),this['id']=_0x51611c['id'],this['type']=_0x51611c['type'],this['subType']=_0x51611c['subType']||null,this['author']=_0x51611c['author'],this['creator']=_0x51611c['creator']||_0x51611c['author'],this['isExternal']=Boolean(_0x51611c['attributes']&&_0x51611c['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x51611c['originalSuggestionId']||null,this['_model']=_0x154f0a,this['_onAccept']=_0x51611c['onAccept'],this['_onDiscard']=_0x51611c['onDiscard'],this['_onAttributesChange']=_0x51611c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x51611c['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 _0x5306e0=this;for(;_0x5306e0['previous'];)_0x5306e0=_0x5306e0['previous'];return _0x5306e0;}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'](_0x33da33){this['_markerNames']['add'](_0x33da33);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3abcbd=>this['_model']['markers']['get'](_0x3abcbd))['filter'](_0x534b3e=>_0x534b3e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x308a52=>{for(const _0x153aae of this['getMarkers']())_0x308a52['removeMarker'](_0x153aae);}),this['_markerNames']['clear']();}['removeMarker'](_0x36995f){this['_model']['change'](_0x4c1b1b=>{_0x4c1b1b['removeMarker'](_0x36995f);}),this['_markerNames']['delete'](_0x36995f);}['addRange'](_0x2d41f0){const _0xf7a01a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0xf7a01a),this['_model']['change'](_0x543150=>{_0x543150['addMarker'](_0xf7a01a,{'range':_0x2d41f0,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xdc7d60){for(const _0x3118f8 of this['getRanges']())if(_0x3118f8['isIntersecting'](_0xdc7d60))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4f0cb5=>_0x4f0cb5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4c221b,_0x2c2140)=>[..._0x4c221b,..._0x2c2140['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5c934b=this['getRanges']();if(0x1!=_0x5c934b['length'])return null;const _0x16e5f=_0x5c934b[0x0],_0x1d21af=_0x16e5f['start']['nodeAfter'],_0x2d4610=_0x16e5f['end']['nodeBefore'];return _0x1d21af instanceof _0x1e4107?_0x1d21af!=_0x2d4610?null:_0x1d21af: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 _0x215508=[];let _0x52e557=this['head'];for(;_0x52e557;)_0x215508['push'](_0x52e557),_0x52e557=_0x52e557['next'];return _0x215508;}['setAttribute'](_0x4f1084,_0xba0fb0){const _0x437386=_0xdf7c9c(this['attributes']);_0x5326f2(_0x437386,_0x4f1084,_0xba0fb0),_0x1cc8d5(_0x437386,this['attributes'])||(this['attributes']=_0x437386,this['_onAttributesChange'](_0x437386));}['removeAttribute'](_0x1f7789){const _0x6849d=_0xdf7c9c(this['attributes']);_0x2a8867(_0x6849d,_0x1f7789),_0x1cc8d5(_0x6849d,this['attributes'])||(this['attributes']=_0x6849d,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 _0x38a072()['substr'](0x1,0x5);}}function c(_0x2692d5,_0x59b731,_0x18aa2d){const _0x17c0ee=_0x2692d5['t'],t=_0x2692d5['t'];switch(_0x59b731){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',_0x18aa2d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x18aa2d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x18aa2d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x18aa2d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x18aa2d);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',_0x18aa2d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x18aa2d);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',_0x18aa2d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x18aa2d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x18aa2d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x18aa2d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x18aa2d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x18aa2d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x18aa2d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x18aa2d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x18aa2d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x18aa2d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x18aa2d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x18aa2d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x18aa2d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x18aa2d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x18aa2d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x18aa2d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x18aa2d);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x18aa2d);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'},_0x18aa2d);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x18aa2d);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x18aa2d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x18aa2d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x18aa2d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x18aa2d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x18aa2d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x18aa2d);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'},_0x18aa2d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x18aa2d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x18aa2d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x18aa2d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x18aa2d);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'},_0x18aa2d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x18aa2d);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'},_0x18aa2d);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'},_0x18aa2d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x18aa2d);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'},_0x18aa2d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x18aa2d);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'},_0x18aa2d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x18aa2d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x18aa2d);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'},_0x18aa2d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x18aa2d);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 _0x17c0ee({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x18aa2d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x17c0ee({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x18aa2d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x18aa2d);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'},_0x18aa2d);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'},_0x18aa2d);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'},_0x18aa2d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x59b731;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x25d0d6,_0xce19e4){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x25d0d6,this['_locale']=_0xce19e4;}['getDescriptions'](_0x2f0317){const _0x4acd27=[],_0x418e33=new Set(),_0x4d1fa8=new Set();for(let _0x4ccce2=0x0;_0x4ccce2<_0x2f0317['length'];_0x4ccce2++){const _0x402d4c=_0x2f0317[_0x4ccce2];if(!_0x402d4c['isInContent'])continue;const _0x4e664e=this['_handleCustomCallbackDescription'](_0x402d4c);if(_0x4e664e){if(null!=_0x402d4c['subType']){if(_0x418e33['has'](_0x402d4c['subType']))continue;_0x418e33['add'](_0x402d4c['subType']);}_0x4acd27['push'](_0x4e664e);}else{if('attribute'!=_0x402d4c['type'])'insertion'!=_0x402d4c['type']&&'deletion'!=_0x402d4c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4acd27,_0x402d4c,_0x2f0317[_0x4ccce2+0x1]);else{const _0x180583=_0x402d4c['data']['key'];if(_0x4d1fa8['has'](_0x180583))continue;_0x4d1fa8['add'](_0x402d4c['data']['key']),_0x180583==u?this['_handleRenameSuggestionDescription'](_0x4acd27,_0x402d4c):this['_handleAttributeSuggestionDescription'](_0x4acd27,_0x402d4c);}}}return this['_resolveDescriptionItems'](_0x4acd27);}['registerDescriptionCallback'](_0x1d04fa){this['_customCallbacks']['push'](_0x1d04fa);}['registerElementLabel'](_0x4eea0a,_0x5572c0,_0x3d0650=_0x1dda41['normal']){'function'==typeof _0x4eea0a?_0x409bb9(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4eea0a,'label':_0x5572c0,'priority':_0x3d0650}):this['_itemLabels']['set'](_0x4eea0a,_0x5572c0);}['registerAttributeLabel'](_0x40e2f0,_0x1d1344){this['_attributeLabels']['set'](_0x40e2f0,_0x1d1344);}['getItemLabel'](_0x19f091,_0x55ec96=0x1){let _0x4e586b;for(const _0xef86cc of this['_itemLabelsCallbacks'])if(_0xef86cc['matchingCallback'](_0x19f091)){_0x4e586b=_0xef86cc['label'];break;}return _0x4e586b||(_0x4e586b=this['_itemLabels']['get'](_0x19f091['name'])),_0x4e586b?_0x4e586b(_0x55ec96):0x1!==_0x55ec96?_0x55ec96+'\x20'+_0x19f091['name']+'s':''+_0x19f091['name'];}['_addDescriptionItems'](_0x111c36,_0x45b413){const _0x5398d5=_0x45b413['getFirstRange']()['getWalker'](),_0x19d2a1='insertion'==_0x45b413['type']?'add':'remove';for(const _0x2d82fa of _0x5398d5){const _0x9095ef=_0x2d82fa['item'],_0x346bf7=_0x111c36[_0x111c36['length']-0x1];if(_0x9095ef['is']('$textProxy'))_0x346bf7&&_0x346bf7['type']['indexOf']('Container')>-0x1&&_0x111c36['pop'](),_0x346bf7&&'text'==_0x346bf7['type']?_0x346bf7[_0x19d2a1]+=_0x9095ef['data']:_0x111c36['push']({'type':'text','add':'add'==_0x19d2a1?_0x9095ef['data']:'','remove':'remove'==_0x19d2a1?_0x9095ef['data']:''});else{if(this['_schema']['isObject'](_0x9095ef)){const _0x5e3fb5=_0x9095ef;if(_0x346bf7&&_0x346bf7['type']['indexOf']('Container')>-0x1&&_0x111c36['pop'](),'elementEnd'==_0x2d82fa['type'])continue;_0x346bf7&&_0x346bf7['type']==_0x19d2a1+'Object'&&_0x346bf7['element']['name']==_0x5e3fb5['name']?_0x346bf7['quantity']++:_0x111c36['push']({'type':_0x19d2a1+'Object','element':_0x5e3fb5,'quantity':0x1}),_0x5398d5['skip'](_0x5f38ac=>!('elementEnd'==_0x5f38ac['type']&&_0x5f38ac['item']==_0x9095ef));}else{if(this['_schema']['checkChild'](_0x9095ef,'$text')||_0x9095ef['is']('element','softBreak')){const _0x5569d7=_0x9095ef;if('add'==_0x19d2a1&&'elementStart'==_0x2d82fa['type']||'remove'==_0x19d2a1&&'elementEnd'==_0x2d82fa['type'])continue;if(_0x346bf7&&-0x1==_0x346bf7['type']['indexOf']('Container')){'text'==_0x346bf7['type']&&(_0x346bf7[_0x19d2a1]+='\x0a');continue;}let _0x37c29f;if(_0x37c29f='add'==_0x19d2a1?_0x5569d7['nextSibling']&&!this['_schema']['isObject'](_0x5569d7['nextSibling'])?_0x5569d7['nextSibling']:null:_0x5569d7['previousSibling']&&!this['_schema']['isObject'](_0x5569d7['previousSibling'])?_0x5569d7['previousSibling']:null,_0x5569d7['isEmpty']||_0x37c29f&&_0x37c29f['isEmpty']){const _0x487c85=_0x37c29f&&_0x37c29f['isEmpty']?_0x37c29f:_0x5569d7;_0x346bf7&&_0x346bf7['type']==_0x19d2a1+'EmptyContainer'&&_0x346bf7['element']['name']==_0x487c85['name']?_0x346bf7['quantity']++:_0x111c36['push']({'type':_0x19d2a1+'EmptyContainer','element':_0x487c85,'quantity':0x1});}else _0x111c36['push']({'type':_0x19d2a1+'Container','element':_0x5569d7});}}}}}['_resolveDescriptionItems'](_0x45dabf){const _0x1f71a9=this['_locale'],_0x563ec8=[],_0xe104ba=[],_0x2c866f=[];for(const _0x4e2345 of _0x45dabf)switch(_0x4e2345['type']){case'text':if(_0x4e2345['add']=_0x4e2345['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4e2345['remove']=_0x4e2345['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4e2345['add']&&''!=_0x4e2345['remove']){_0x563ec8['push']({'type':'replace','content':c(_0x1f71a9,'REPLACE_TEXT',['\x22'+_0x4e2345['remove']+'\x22','\x22'+_0x4e2345['add']+'\x22'])});continue;}if(null!=_0x4e2345['add']['match'](/^ +$/)){_0x563ec8['push']({'type':'insertion','content':c(_0x1f71a9,'*Insert:*\x20%0',c(_0x1f71a9,'ELEMENT_SPACE',_0x4e2345['add']['length']))});continue;}if(null!=_0x4e2345['remove']['match'](/^ +$/)){_0x563ec8['push']({'type':'deletion','content':c(_0x1f71a9,'*Remove:*\x20%0',c(_0x1f71a9,'ELEMENT_SPACE',_0x4e2345['remove']['length']))});continue;}if(''!=_0x4e2345['add']){_0x563ec8['push']({'type':'insertion','content':c(_0x1f71a9,'*Insert:*\x20%0','\x22'+_0x4e2345['add']+'\x22')});continue;}_0x563ec8['push']({'type':'deletion','content':c(_0x1f71a9,'*Remove:*\x20%0','\x22'+_0x4e2345['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x563ec8['push']({'type':'insertion','content':c(_0x1f71a9,'*Insert:*\x20%0',this['getItemLabel'](_0x4e2345['element'],_0x4e2345['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x563ec8['push']({'type':'deletion','content':c(_0x1f71a9,'*Remove:*\x20%0',this['getItemLabel'](_0x4e2345['element'],_0x4e2345['quantity']))});continue;case'addContainer':_0x563ec8['push']({'type':'insertion','content':c(_0x1f71a9,'*Split:*\x20%0',this['getItemLabel'](_0x4e2345['element'],_0x4e2345['quantity']))});continue;case'removeContainer':_0x563ec8['push']({'type':'deletion','content':c(_0x1f71a9,'*Merge:*\x20%0',this['getItemLabel'](_0x4e2345['element'],_0x4e2345['quantity']))});continue;case'addFormat':_0xe104ba['push'](_0x4e2345['key']);continue;case'removeFormat':_0x2c866f['push'](_0x4e2345['key']);continue;default:_0x563ec8['push'](_0x4e2345);}if(_0xe104ba['length']){const _0x1e6a82=_0xe104ba['map'](_0x34bd9a=>this['_attributeLabels']['has'](_0x34bd9a)?this['_attributeLabels']['get'](_0x34bd9a):_0x34bd9a)['join'](',\x20');_0x563ec8['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x1e6a82)});}if(_0x2c866f['length']){const _0x158c24=_0x2c866f['map'](_0x3deef9=>this['_attributeLabels']['has'](_0x3deef9)?this['_attributeLabels']['get'](_0x3deef9):_0x3deef9)['join'](',\x20');_0x563ec8['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x158c24)});}return _0x563ec8;}['_handleCustomCallbackDescription'](_0x115557){for(const _0x53c17a of this['_customCallbacks']){const _0x46e746=_0x53c17a(_0x115557);if(_0x46e746&&'type'in _0x46e746)return _0x46e746;}}['_handleAttributeSuggestionDescription'](_0x35e5b3,_0x146f3a){const _0x1464f1=_0x146f3a['data'],_0x5edc36=void 0x0===_0x1464f1['newValue']?'removeFormat':'addFormat';_0x35e5b3['push']({'type':_0x5edc36,'key':_0x1464f1['key']});}['_handleRenameSuggestionDescription'](_0x115693,_0x59e385){_0x115693['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x59e385['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x26ae25,_0x373bb6,_0x2fd6ff){if(this['_addDescriptionItems'](_0x26ae25,_0x373bb6),_0x2fd6ff&&_0x2fd6ff['getFirstRange']()&&!_0x373bb6['getFirstRange']()['end']['isEqual'](_0x2fd6ff['getFirstRange']()['start'])){const _0x2de508=_0x26ae25[_0x26ae25['length']-0x1],_0x2edbde='insertion'==_0x373bb6['type']?'add':'remove';_0x2de508&&'text'==_0x2de508['type']&&(_0x2de508[_0x2edbde]+='\x0a');}}}class U extends _0x385d2b{['afterInit'](){const _0x460b19=this['editor'],_0x8efc07=_0x460b19['plugins']['get']('TrackChangesEditing');_0x460b19['commands']['get']('showAIAssistant')&&_0x8efc07['enableCommand']('showAIAssistant');}}class V extends _0x385d2b{['afterInit'](){const _0x1d7bcb=this['editor'],_0x22eec7=_0x1d7bcb['locale'];if(!_0x1d7bcb['plugins']['has']('AlignmentEditing'))return;const _0x3b3adf=_0x1d7bcb['plugins']['get']('TrackChangesEditing');_0x3b3adf['enableDefaultAttributesIntegration']('alignment'),_0x3b3adf['registerBlockAttribute']('alignment'),_0x3b3adf['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x22eec7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x102312=this['editor'],_0x508067=_0x102312['locale'];_0x102312['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x209a99=>{if('formatBlock'!=_0x209a99['type'])return;const {data:_0x13d342}=_0x209a99;if(_0x13d342&&'alignment'==_0x13d342['commandName']){const _0x9efc7b=_0x13d342['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x508067,'*Format:*\x20%0',function(_0x29333c){switch(_0x29333c){case'left':return c(_0x508067,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x508067,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x508067,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x508067,'FORMAT_JUSTIFY_TEXT');}}(_0x9efc7b))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x385d2b{['afterInit'](){const _0x3a319f=this['editor'],_0xb4865f=_0x3a319f['plugins']['get']('TrackChangesEditing'),_0x54da60=_0x3a319f['locale'];for(const _0x2857f5 of Zt){if(!_0x3a319f['plugins']['has'](_0x2857f5))continue;const _0x2d2234=_0x2857f5['slice'](0x0,-0x7)['toLowerCase'](),_0x2db610='FORMAT_'+_0x2d2234['toUpperCase']();_0xb4865f['enableDefaultAttributesIntegration'](_0x2d2234),_0xb4865f['registerInlineAttribute'](_0x2d2234),_0xb4865f['descriptionFactory']['registerAttributeLabel'](_0x2d2234,c(_0x54da60,_0x2db610));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb6a2ea=this['editor'],_0x3492e5=_0xb6a2ea['locale'],_0x3fcc57=_0xb6a2ea['plugins']['get']('TrackChangesEditing');function _0x84660b(_0x66d7cb,_0x28f3c7){_0x3fcc57['descriptionFactory']['registerDescriptionCallback'](_0x536bed=>{if('formatInline'!=_0x536bed['type'])return;const {data:_0x29986e}=_0x536bed;return _0x29986e&&_0x29986e['commandName']===_0x66d7cb?_0x29986e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3492e5,'*Format:*\x20%0',_0x28f3c7)}:{'type':'format','content':c(_0x3492e5,'*Remove\x20format:*\x20%0',_0x28f3c7)}:void 0x0;});}_0x84660b('bold',c(_0x3492e5,'FORMAT_BOLD')),_0x84660b('italic',c(_0x3492e5,'FORMAT_ITALIC')),_0x84660b('underline',c(_0x3492e5,'FORMAT_UNDERLINE')),_0x84660b('code',c(_0x3492e5,'FORMAT_CODE')),_0x84660b('strikethrough',c(_0x3492e5,'FORMAT_STRIKETHROUGH')),_0x84660b('subscript',c(_0x3492e5,'FORMAT_SUBSCRIPT')),_0x84660b('superscript',c(_0x3492e5,'FORMAT_SUPERSCRIPT'));}}class G extends _0x385d2b{['afterInit'](){const _0x59b338=this['editor'],_0x1f73fe=_0x59b338['locale'];if(!_0x59b338['plugins']['has']('BlockQuoteEditing'))return;const _0x555295=_0x59b338['plugins']['get']('TrackChangesEditing'),_0xb546f4=this['editor']['commands']['get']('blockQuote');_0x555295['enableCommand']('blockQuote',(_0x58c8f5,_0x5cd4a8={})=>{const _0xe43876=this['editor']['model']['document']['selection'],_0x2f18df=_0x5cd4a8&&void 0x0!==_0x5cd4a8['forceValue']?_0x5cd4a8['forceValue']:!_0xb546f4['value'];let _0x2a30ec=[];if(_0x2f18df){const _0x50284e=Array['from'](_0xe43876['getSelectedBlocks']())['filter'](_0x13b1c8=>oo(_0x13b1c8)||function(_0x2f0684,_0x1bd03b){const _0x262163=_0x1bd03b['checkChild'](_0x2f0684['parent'],'blockQuote'),_0x28c767=_0x1bd03b['checkChild'](['$root','blockQuote'],_0x2f0684);return _0x262163&&_0x28c767;}(_0x13b1c8,this['editor']['model']['schema']));_0x2a30ec=to(_0x50284e,_0x59b338['model']);}else{const _0x524575=Array['from'](_0xe43876['getSelectedBlocks']())['filter'](_0x1b30e0=>oo(_0x1b30e0));_0x2a30ec=to(_0x524575,_0x59b338['model']);}_0x59b338['model']['change'](()=>{for(const _0x3289ac of _0x2a30ec)_0x555295['markBlockFormat'](_0x3289ac,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2f18df}]});});}),_0x555295['descriptionFactory']['registerDescriptionCallback'](_0x387cc1=>{const {data:_0x3c6e9f}=_0x387cc1;if(_0x3c6e9f&&'blockQuote'==_0x3c6e9f['commandName']){const _0x532fe1=c(_0x1f73fe,'ELEMENT_BLOCK_QUOTE');return _0x3c6e9f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1f73fe,'*Set\x20format:*\x20%0',_0x532fe1)}:{'type':'format','content':c(_0x1f73fe,'*Remove\x20format:*\x20%0',_0x532fe1)};}});}}function oo(_0x2f718d){return'blockQuote'==_0x2f718d['parent']['name'];}class L extends _0x385d2b{['afterInit'](){const _0x1c517b=this['editor'],_0x1a8470=_0x1c517b['locale'],_0x57d27d=_0x1c517b['plugins']['get']('TrackChangesEditing');_0x1c517b['plugins']['has']('BookmarkEditing')&&(_0x57d27d['enableCommand']('insertBookmark'),_0x57d27d['enableDefaultAttributesIntegration']('updateBookmark'),_0x57d27d['registerBlockAttribute']('bookmarkId'),_0x57d27d['descriptionFactory']['registerDescriptionCallback'](_0x39b3e4=>{if('insertion'!=_0x39b3e4['type']&&'deletion'!=_0x39b3e4['type']&&'attribute'!=_0x39b3e4['type'])return;const _0x4cfc3e=_0x39b3e4['getContainedElement']();if(null==_0x4cfc3e)return;if(!_0x4cfc3e['is']('element','bookmark'))return;const _0x18581b=_0x4cfc3e['getAttribute']('bookmarkId');if('insertion'==_0x39b3e4['type'])return{'type':'insertion','content':c(_0x1a8470,'*Insert:*\x20%0','\x22'+_0x18581b+'\x22\x20'+c(_0x1a8470,'ELEMENT_BOOKMARK'))};if('deletion'==_0x39b3e4['type'])return{'type':'deletion','content':c(_0x1a8470,'*Remove:*\x20%0','\x22'+_0x18581b+'\x22\x20'+c(_0x1a8470,'ELEMENT_BOOKMARK'))};const {data:_0x3f4edf}=_0x39b3e4;if(!_0x3f4edf||'bookmarkId'!=_0x3f4edf['key'])return;return{'type':'format','content':c(_0x1a8470,'*Set\x20bookmark:*\x20%0','\x22'+_0x3f4edf['newValue']+'\x22')};}));}}class J extends _0x385d2b{['afterInit'](){const _0x1b978f=this['editor'];_0x1b978f['plugins']['has']('CaseChange')&&(_0x1b978f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1b978f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1b978f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x385d2b{['afterInit'](){const _0x59b0f6=this['editor'];_0x59b0f6['commands']['get']('ckbox')&&_0x59b0f6['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x385d2b{['afterInit'](){const _0x37d47c=this['editor'];if(!_0x37d47c['plugins']['has']('CodeBlock'))return;const _0x3a1f28=_0x37d47c['plugins']['get']('TrackChangesEditing'),_0x49c9bf=_0x37d47c['locale'],_0x108aa7=_0x37d47c['config']['get']('codeBlock')['languages'],_0x2d0aad=_0x37d47c['commands']['get']('codeBlock');_0x3a1f28['enableCommand']('indentCodeBlock'),_0x3a1f28['enableCommand']('outdentCodeBlock'),_0x3a1f28['enableCommand']('codeBlock',(_0x53f6cf,_0xbe3509={})=>{const _0x2474ae=_0x37d47c['model'],_0x10bc1f=_0x37d47c['model']['document']['selection'],_0x46199b=_0xbe3509&&void 0x0!==_0xbe3509['forceValue']?_0xbe3509['forceValue']:!_0x2d0aad['value'];let _0x4401d2;_0xbe3509['language']||(_0xbe3509['language']=_0x108aa7[0x0]['language']),_0x4401d2=_0x46199b?Array['from'](_0x10bc1f['getSelectedBlocks']())['filter'](_0x2582bb=>eo(_0x2582bb)||function(_0x416dec,_0x99bfbe){if(_0x416dec['is']('rootElement')||_0x99bfbe['isLimit'](_0x416dec))return!0x1;return _0x99bfbe['checkChild'](_0x416dec['parent'],'codeBlock');}(_0x2582bb,_0x2474ae['schema'])):Array['from'](_0x10bc1f['getSelectedBlocks']())['filter'](_0x477bc6=>eo(_0x477bc6));const _0x30503b=to(_0x4401d2,_0x2474ae);_0x2474ae['change'](()=>{for(const _0x1ccc0b of _0x30503b)_0x3a1f28['markBlockFormat'](_0x1ccc0b,{'commandName':'codeBlock','commandParams':[{..._0xbe3509,'forceValue':_0x46199b}],'formatGroupId':'blockName'});});}),(_0x3a1f28['descriptionFactory']['registerElementLabel']('codeBlock',_0x6b3d2d=>c(_0x49c9bf,'ELEMENT_CODE_BLOCK',_0x6b3d2d)),_0x3a1f28['descriptionFactory']['registerDescriptionCallback'](_0x28a44b=>{if('formatBlock'!=_0x28a44b['type'])return;const _0x5a476a=_0x49c9bf['t'],{data:_0x414bc7}=_0x28a44b;if(!_0x414bc7||'codeBlock'!=_0x414bc7['commandName'])return;const _0x5af9dd=_0x414bc7['commandParams'][0x0]['language'],_0x1a7497=_0x5a476a(_0x108aa7['find'](_0x504c80=>_0x504c80['language']===_0x5af9dd)['label'])['toLowerCase']();return _0x414bc7['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x49c9bf,'*Set\x20format:*\x20%0',c(_0x49c9bf,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1a7497+')')}:{'type':'format','content':c(_0x49c9bf,'*Remove\x20format:*\x20%0',c(_0x49c9bf,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2cfd4e){return'codeBlock'==_0x2cfd4e['name'];}class q extends _0x385d2b{['afterInit'](){const _0x18252b=this['editor'];if(!_0x18252b['plugins']['has']('CommentsEditing'))return;_0x18252b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x24ee29,_0x1b58ff,_0x43d3a6){const _0x4d00e9=[];for(const _0x35b8f9 of _0x1b58ff['getItems']())_0x35b8f9['hasAttribute'](_0x24ee29)&&_0x4d00e9['push'](_0x43d3a6['createRangeOn'](_0x35b8f9));return _0x4d00e9;}function Fe(_0x1cc868,_0x835458,{showActiveMarker:_0x588b96=!0x0}={}){const _0xbcfdd2=_0x1cc868['plugins']['get']('TrackChangesEditing');return(_0x5c2e6e,_0x125ff3,_0x4d69dc)=>{if(!_0x4d69dc['consumable']['test'](_0x125ff3['markerRange'],_0x5c2e6e['name']))return;const _0x94faa=_0x125ff3['markerRange']['getWalker'](),_0x579aee=_0x125ff3['markerRange']['start'],_0x57ed53=_0x1cc868['model']['schema'];let _0x568901=null,_0x5441c3=null,_0xb4c223=!0x1,_0x27dbbb=!0x1;for(const _0x556af2 of _0x94faa){const _0x317701=_0x556af2['item'];_0xb4c223=_0xb4c223||_0x57ed53['isContent'](_0x317701);const _0x1382ab=_0x4d69dc['mapper']['toViewElement'](_0x317701);if(_0x1382ab&&_0x1382ab['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x556af2['type']&&(_0x57ed53['isBlock'](_0x317701)&&!_0x57ed53['isLimit'](_0x317701)&&(_0x317701['nextSibling']||_0x579aee['isAtEnd']?_0x568901&&_0x568901['parent']==_0x317701||(_0x568901=_0x317701,_0x5b6b4f(_0x556af2['previousPosition']),_0x27dbbb=!0x0):_0x5441c3=_0x5441c3||_0x556af2['previousPosition']));}function _0x5b6b4f(_0x4233ee){const {id:_0x43a2f5,authorId:_0x860974}=_0xbcfdd2['_splitMarkerName'](_0x125ff3['markerName']),_0x164e93=_0x4d69dc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x835458,'data-suggestion':_0x43a2f5,'data-author-id':_0x860974}),_0x555b71=_0x4d69dc['mapper']['toViewPosition'](_0x4233ee);_0x588b96&&_0xbcfdd2['activeMarkers']['includes'](_0x125ff3['markerName'])&&_0x4d69dc['writer']['addClass']('ck-suggestion-marker--active',_0x164e93),_0x4d69dc['writer']['insert'](_0x555b71,_0x164e93),_0x4d69dc['mapper']['bindElementToMarker'](_0x164e93,_0x125ff3['markerName']);}_0xb4c223||_0x27dbbb||!_0x5441c3||_0x5b6b4f(_0x5441c3);};}class z extends _0x385d2b{static get['requires'](){return[_0x9d734f];}['init'](){const _0x4bb480=this['editor'],_0x370a80=_0x4bb480['plugins']['get']('TrackChangesEditing');_0x370a80['enableCommand']('delete');const _0x3520a2=_0x4bb480['commands']['get']('deleteForward');_0x370a80['enableCommand']('deleteForward',(_0x2f64e2,_0x36be89={})=>{const _0x3ed9c5=_0x4bb480['model']['createSelection'](_0x4bb480['model']['document']['selection']);_0x3ed9c5['isCollapsed']&&_0x4bb480['model']['modifySelection'](_0x3ed9c5,{'direction':'forward','unit':_0x36be89['unit']});const _0x1dd504=_0x3ed9c5['getFirstRange'](),_0x2c1291=_0x21cd14['fromRange'](_0x1dd504);let _0x484775;_0x2f64e2(_0x36be89),_0x484775='$graveyard'==_0x2c1291['root']['rootName']?_0x4bb480['model']['createRange'](_0x1dd504['start']):_0x4bb480['model']['createRange'](_0x2c1291['start'],_0x2c1291['end']),_0x2c1291['detach'](),_0x4bb480['model']['enqueueChange'](_0x3520a2['buffer']['batch'],_0x3dff33=>{_0x3520a2['buffer']['lock'](),_0x3dff33['setSelection'](_0x3dff33['createRange'](_0x484775['end'])),_0x3520a2['buffer']['unlock']();});}),_0x4bb480['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x4bb480,'merge'),{'priority':'high'}),_0x4bb480['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1ebd2d,_0x4af6d,_0x4a44e7)=>{_0x4a44e7['options']['showSuggestionHighlights']&&Fe(_0x4bb480,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1ebd2d,_0x4af6d,_0x4a44e7);},{'priority':'high'}),_0x4bb480['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x358223,_0x33371f,_0xc7281e)=>{const _0xc68350=_0xc7281e['mapper']['markerNameToElements'](_0x33371f['markerName']);if(_0xc68350){for(const _0x4bb075 of _0xc68350)_0x4bb075['is']('uiElement')&&(_0xc7281e['mapper']['unbindElementFromMarkerName'](_0x4bb075,_0x33371f['markerName']),_0xc7281e['writer']['remove'](_0x4bb075));}},{'priority':'high'});}}class W extends _0x385d2b{['afterInit'](){const _0x35a934=this['editor'];if(!_0x35a934['plugins']['has']('ListEditing'))return;const _0x231ecd=_0x35a934['locale'],_0x146b83=_0x35a934['plugins']['get']('TrackChangesEditing'),_0x223b78=_0x35a934['plugins']['has']('TodoListEditing'),_0x104a9f=!!_0x35a934['config']['get']('list.multiBlock');function _0x17afe7(_0x205de7){return{'type':'format','content':''+c(_0x231ecd,'*Set\x20format:*\x20%0',_0x205de7)};}function _0x404fcd(_0x30d859){return{'type':'format','content':''+c(_0x231ecd,'*Remove\x20format:*\x20%0',_0x30d859)};}_0x146b83['enableDefaultAttributesIntegration']('numberedList'),_0x146b83['enableDefaultAttributesIntegration']('bulletedList'),_0x146b83['enableDefaultAttributesIntegration']('customNumberedList'),_0x146b83['enableDefaultAttributesIntegration']('customBulletedList'),_0x146b83['enableDefaultAttributesIntegration']('indentList'),_0x146b83['enableDefaultAttributesIntegration']('outdentList'),_0x146b83['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x146b83['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x146b83['registerBlockAttribute']('listItemId'),_0x146b83['registerBlockAttribute']('listType'),_0x146b83['registerBlockAttribute']('listIndent'),_0x104a9f&&(_0x146b83['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x146b83['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x223b78&&(_0x146b83['enableDefaultAttributesIntegration']('todoList'),_0x146b83['enableDefaultAttributesIntegration']('checkTodoList'),_0x146b83['registerBlockAttribute']('todoListChecked'),_0x146b83['descriptionFactory']['registerDescriptionCallback'](_0x32d809=>{const {data:_0x5c5e82}=_0x32d809;if(_0x5c5e82&&'todoListChecked'==_0x5c5e82['key'])return{'type':'format','content':_0x5c5e82['newValue']?c(_0x231ecd,'*Check\x20item*'):c(_0x231ecd,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x54bf66=>{if(_0x54bf66['batch']['isUndo'])return!0x1;let _0x272bfc=!0x1;const _0x49d241=_0x146b83['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xec913d=>'todoListChecked'===_0x146b83['_getAttributeKey'](_0xec913d));for(const _0x5d4a0a of _0x49d241){'todo'!=_0x5d4a0a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x146b83['_findSuggestions'](_0x5d4a0a['getFirstRange'](),'attribute')['find'](_0x4a2032=>'listType'===_0x146b83['_getAttributeKey'](_0x4a2032['suggestion']))||(_0x54bf66['removeMarker'](_0x5d4a0a['getFirstMarker']()),_0x272bfc=!0x0));}return _0x272bfc;})),_0x146b83['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x231ecd,'FORMAT_INDENT'));const _0x1c6ece={'type':'format','content':''};_0x146b83['descriptionFactory']['registerDescriptionCallback'](_0x4d6a73=>{const {data:_0x5a5f68}=_0x4d6a73;if(!_0x5a5f68||'listType'!=_0x5a5f68['key'])return;let _0x3bed9f=_0x4d6a73['head'];for(;_0x3bed9f;){if(_0x3bed9f['data']&&(('listStyle'==_0x3bed9f['data']['key']||'listMarkerStyle'==_0x3bed9f['data']['key'])&&(_0x3bed9f['data']['newValue']&&'default'!=_0x3bed9f['data']['newValue']||'default'!=_0x3bed9f['data']['oldValue']&&!_0x5a5f68['newValue'])||!_0x104a9f&&_0x3bed9f['data']['key']==u))return _0x1c6ece;_0x3bed9f=_0x3bed9f['next'];}if(null==_0x5a5f68['newValue'])switch(_0x5a5f68['oldValue']){case'bulleted':return _0x404fcd(c(_0x231ecd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x404fcd(c(_0x231ecd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x404fcd(c(_0x231ecd,'ELEMENT_TODO_LIST'));}switch(_0x5a5f68['newValue']){case'bulleted':return _0x17afe7(c(_0x231ecd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x17afe7(c(_0x231ecd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x17afe7(c(_0x231ecd,'ELEMENT_TODO_LIST'));}}),_0x146b83['descriptionFactory']['registerDescriptionCallback'](_0x308259=>{const {data:_0x153323}=_0x308259;if(_0x153323&&'listIndent'==_0x153323['key'])return null==_0x153323['newValue']||null==_0x153323['oldValue']&&0x0==_0x153323['newValue']?_0x1c6ece:void 0x0;}),_0x146b83['descriptionFactory']['registerDescriptionCallback'](_0x559a66=>{if('attribute'!=_0x559a66['type'])return;const {data:_0x57e3db}=_0x559a66;if(!_0x57e3db||'listItemId'!=_0x57e3db['key'])return;const _0x482935=Te(_0x559a66);return'newValue'==_0x482935?{'type':'format','content':c(_0x231ecd,'*Merge:*\x20list\x20item')}:'oldValue'==_0x482935?{'type':'format','content':c(_0x231ecd,'*Split:*\x20list\x20item')}:_0x1c6ece;}),_0x35a934['model']['document']['registerPostFixer'](_0x307199=>this['listItemIdFixer'](_0x307199)),_0x35a934['model']['document']['registerPostFixer'](_0x343d00=>this['noTrackChangesFixer'](_0x343d00)),_0x35a934['model']['document']['on']('change:data',(_0x5f5e0f,_0x3ae53c)=>{if(_0x3ae53c['isUndo']||!_0x3ae53c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x207f1f){if(_0x207f1f['batch']['isUndo']||!_0x207f1f['batch']['isLocal'])return!0x1;let _0x184924=!0x1;const _0x4c0317=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xea9bf1=>_0xea9bf1['data']&&'listItemId'==_0xea9bf1['data']['key'])['filter'](_0x50cfc9=>_0x50cfc9['data']['newValue']&&_0x50cfc9['data']['oldValue']);for(const _0x33204b of _0x4c0317)Te(_0x33204b)||(_0x207f1f['removeMarker'](_0x33204b['getFirstMarker']()),_0x184924=!0x0);return _0x184924;}['noTrackChangesFixer'](_0x1b64ba){if(_0x1b64ba['batch']['isUndo']||!_0x1b64ba['batch']['isLocal'])return!0x1;const _0x8f88b9=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x8f88b9['trackChangesCommand']['value'])return!0x1;let _0x3ee775=!0x1;const _0x528843=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x55911b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x45d4e6=>'attribute'==_0x45d4e6['type'])['filter'](_0x367f47=>_0x528843['includes'](_0x367f47['attributeKey']));if(0x0==_0x55911b['length'])return _0x3ee775;for(const _0x720b47 of _0x55911b){const _0x4f9cb1=_0x8f88b9['_findSuggestions'](_0x720b47['range'],'attribute')['filter'](_0x1ae5b0=>!_0x1ae5b0['meta']['isNextTo'])['map'](_0x4d5906=>_0x4d5906['suggestion'])['filter'](_0x2a9167=>{const _0x3419da=_0x8f88b9['_getAttributeKey'](_0x2a9167);return _0x528843['includes'](_0x3419da);});if(_0x4f9cb1['length']){for(const _0x11f138 of _0x4f9cb1)_0x1b64ba['removeMarker'](_0x11f138['getFirstMarker']());_0x3ee775=!0x0;}}return _0x3ee775;}['assureChains'](){const _0x5801a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ac4a0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1a7329;const _0x5573b8=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x296a7f=>{if(_0x296a7f['data']['oldRange']||!_0x296a7f['data']['newRange'])return null;if(!_0x296a7f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xcd79fe}=_0x5801a1['_splitMarkerName'](_0x296a7f['name']);if(!_0x5801a1['hasSuggestion'](_0xcd79fe))return null;const _0x1b158d=_0x5801a1['getSuggestion'](_0xcd79fe);return _0x5ac4a0['includes'](_0x1b158d['data']['key']);})['map'](_0x2c00b1=>{const {id:_0x570414}=_0x5801a1['_splitMarkerName'](_0x2c00b1['name']),_0x2c2ad3=_0x5801a1['getSuggestion'](_0x570414);return _0x1a7329=_0x2c2ad3['attributes']['groupId'],_0x2c2ad3['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5573b8['size'])return;const _0x483a0b=_0x5801a1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe3ca2c=>'attribute'==_0xe3ca2c['type']&&_0xe3ca2c['data']&&_0x5ac4a0['includes'](_0xe3ca2c['data']['key'])&&_0xe3ca2c['attributes']['groupId']!=_0x1a7329)['map'](_0xd0493b=>({'listItem':_0xd0493b['getFirstRange']()['start']['nodeAfter'],'groupId':_0xd0493b['attributes']['groupId']})),_0x142f26=new Set();for(const {groupId:_0x41ec91,listItem:_0xadce90}of _0x483a0b)_0x5573b8['has'](_0xadce90)&&_0x142f26['add'](_0x41ec91);for(const _0x4ec6e3 of _0x5801a1['getSuggestions']())_0x142f26['has'](_0x4ec6e3['attributes']['groupId'])&&_0x4ec6e3['setAttribute']('groupId',_0x1a7329);}['_supportLegacySuggestions'](){const _0x27fffb=this['editor'],_0x4901fb=_0x27fffb['locale'],_0x3ba1c9=_0x27fffb['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3ba1c9['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x50157c,_0xad123){const _0x112e31=[];for(let _0x44ff77 of _0x50157c)_0x44ff77['start']['nodeAfter']===_0x44ff77['end']['parent']&&(_0x44ff77=_0x27fffb['model']['createRange'](_0x27fffb['model']['createPositionAt'](_0x44ff77['start']['nodeAfter'],0x0))),_0x112e31['push'](_0x44ff77);_0x27fffb['model']['change'](_0x432853=>{const _0x4d9578=_0x27fffb['model']['document']['selection'],_0x24dad5=Array['from'](_0x4d9578['getRanges']())['map'](_0x41c96a=>_0x21cd14['fromRange'](_0x41c96a));_0x432853['setSelection'](_0x112e31),_0x27fffb['commands']['get'](_0xad123['commandName'])['refresh'](),_0xad123['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x27fffb['execute'](_0xad123['commandName'],..._0xad123['commandParams']),_0x432853['setSelection'](_0x24dad5);for(const _0x2d9de6 of _0x24dad5)_0x2d9de6['detach']();});}),_0x3ba1c9['descriptionFactory']['registerElementLabel'](function(_0x435fbb){const _0x28aeac=!_0x27fffb['model']['schema']['isObject'](_0x435fbb),_0x56bdaf=_0x435fbb['previousSibling'],_0x3bf43d=_0x435fbb['nextSibling'],_0x4b4120=_0x435fbb['getAttribute']('listItemId'),_0x37bb4b=!_0x56bdaf||_0x56bdaf['getAttribute']('listItemId')!==_0x4b4120,_0x5ac8d3=!_0x3bf43d||_0x3bf43d['getAttribute']('listItemId')!==_0x4b4120;return _0x28aeac&&Boolean(_0x4b4120)&&_0x37bb4b&&_0x5ac8d3;},_0x407d41=>c(_0x4901fb,'ELEMENT_LIST_ITEM',_0x407d41));}['_registerLegacyDescription'](){const _0x46e425=this['editor'],_0x624503=_0x46e425['locale'];function _0xf2c837(_0x58bb1a){const _0x5abe25=_0x46e425['commands']['get']('bulletedList')['value'],_0x341807=_0x46e425['commands']['get']('numberedList')['value'];return'numberedList'===_0x58bb1a?_0x5abe25:_0x341807;}_0x46e425['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xeff8cc){if('formatBlock'!=_0xeff8cc['type'])return;const {data:_0x19d108}=_0xeff8cc;if(!_0x19d108)return;let _0x19a7f0,_0x564966,_0x2de07a,_0x5bc672;switch(_0x19d108['commandName']){case'bulletedList':_0x2de07a=_0x19d108['commandParams'][0x0]['forceValue'],_0x5bc672=_0xf2c837(_0x19d108['commandName']),_0x19a7f0=_0x2de07a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5bc672&&_0x46e425['config']['get']('list.multiBlock')||(_0x19a7f0='*Change\x20to:*\x20%0'),_0x564966={'type':'format','content':c(_0x624503,_0x19a7f0,c(_0x624503,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2de07a=_0x19d108['commandParams'][0x0]['forceValue'],_0x5bc672=_0xf2c837(_0x19d108['commandName']),_0x19a7f0=_0x2de07a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5bc672&&_0x46e425['config']['get']('list.multiBlock')||(_0x19a7f0='*Change\x20to:*\x20%0'),_0x564966={'type':'format','content':c(_0x624503,_0x19a7f0,c(_0x624503,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x19a7f0='*Indent:*\x20%0',_0x564966={'type':'format','content':c(_0x624503,_0x19a7f0,c(_0x624503,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x19a7f0=function(_0xa5ae23){const _0x1b47bb=_0xa5ae23['getFirstRange']();let _0x3ac6d6=_0x1b47bb['start']['nodeAfter'];for(;_0x3ac6d6&&_0x1b47bb['containsItem'](_0x3ac6d6);){if(_0x3ac6d6['getAttribute']('listIndent')>0x0)return!0x1;_0x3ac6d6=_0x3ac6d6['nextSibling'];}return!0x0;}(_0xeff8cc)?c(_0x624503,'*Format:*\x20remove\x20from\x20%0',c(_0x624503,function(_0x5d9693){return'ELEMENT_'+_0x5d9693['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xeff8cc))):c(_0x624503,'*Outdent:*\x20%0',c(_0x624503,'ELEMENT_LIST_ITEM')),_0x564966={'type':'format','content':_0x19a7f0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x19d108['multipleBlocks']&&(_0x19a7f0='*Merge:*\x20%0',_0x564966={'type':'deletion','content':c(_0x624503,_0x19a7f0,c(_0x624503,'ELEMENT_LIST_ITEM'))});}return _0x564966;});}}function Te(_0x327fbe){let _0x3ba91d=_0x327fbe['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3ba91d;){const _0x4f1705=_0x3ba91d['getAttribute']('listItemId');if(!_0x4f1705)return!0x1;if(_0x4f1705==_0x327fbe['data']['newValue'])return'newValue';if(_0x4f1705==_0x327fbe['data']['oldValue'])return'oldValue';_0x3ba91d=_0x3ba91d['previousSibling'];}return!0x1;}class Se extends _0x385d2b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3817c2=this['editor']['config']['get']('list.properties'),_0x2ae1f6=this['editor']['plugins']['get']('TrackChangesEditing');_0x3817c2['styles']&&(_0x2ae1f6['enableDefaultAttributesIntegration']('listStyle'),_0x2ae1f6['registerBlockAttribute']('listStyle')),_0x3817c2['reversed']&&(_0x2ae1f6['enableDefaultAttributesIntegration']('listReversed'),_0x2ae1f6['registerBlockAttribute']('listReversed')),_0x3817c2['startIndex']&&(_0x2ae1f6['enableDefaultAttributesIntegration']('listStart'),_0x2ae1f6['registerBlockAttribute']('listStart'));const _0x116853={'type':'format','content':''};_0x2ae1f6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3d6de2=this['editor']['locale'];_0x2ae1f6['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x3d6de2,'FORMAT_LIST_REVERSED')),_0x2ae1f6['descriptionFactory']['registerDescriptionCallback'](_0x565941=>{const {data:_0x1c5d49}=_0x565941;if(_0x1c5d49&&'listReversed'==_0x1c5d49['key'])return null==_0x1c5d49['newValue']||0x0==_0x1c5d49['newValue']&&null==_0x1c5d49['oldValue']?_0x116853:void 0x0;}),_0x2ae1f6['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x3d6de2,'FORMAT_LIST_START')),_0x2ae1f6['descriptionFactory']['registerDescriptionCallback'](_0x1415c3=>{const {data:_0x58f9d9}=_0x1415c3;if(_0x58f9d9&&'listStart'==_0x58f9d9['key'])return null==_0x58f9d9['newValue']||0x1==_0x58f9d9['newValue']&&null==_0x58f9d9['oldValue']?_0x116853:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5ea73e=>{if(_0x5ea73e['batch']['isUndo'])return!0x1;let _0x5c2ddb=!0x1;const _0x541349=_0x2ae1f6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xde92a7=>{const _0x4a660b=_0x2ae1f6['_getAttributeKey'](_0xde92a7);return'listStart'==_0x4a660b||'listReversed'==_0x4a660b;});for(const _0x52d4f9 of _0x541349){const _0x31b0c2=_0x52d4f9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x31b0c2||'customNumbered'==_0x31b0c2)continue;_0x2ae1f6['_findSuggestions'](_0x52d4f9['getFirstRange'](),'attribute')['find'](_0x3298e6=>'listType'==_0x2ae1f6['_getAttributeKey'](_0x3298e6['suggestion']))||(_0x5ea73e['removeMarker'](_0x52d4f9['getFirstMarker']()),_0x5c2ddb=!0x0);}return _0x5c2ddb;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1208df){const _0xb5634e=this['editor']['locale'],{data:_0x2b2847}=_0x1208df,_0x3b3fbc={'type':'format','content':''};if(!_0x2b2847||'listStyle'!=_0x2b2847['key'])return;if(!_0x2b2847['oldValue'])return'default'==_0x2b2847['newValue']?_0x3b3fbc:{'type':'format','content':''+c(_0xb5634e,'*Set\x20format:*\x20%0',c(_0xb5634e,this['_getTranslationKeyForListStyle'](_0x2b2847['newValue'])))};if(!_0x2b2847['newValue']){if('default'==_0x2b2847['oldValue'])return _0x3b3fbc;let _0x5d3e7c=_0x1208df['head'];for(;_0x5d3e7c;){if(_0x5d3e7c['data']&&'listType'==_0x5d3e7c['data']['key']&&_0x5d3e7c['data']['newValue'])return _0x3b3fbc;_0x5d3e7c=_0x5d3e7c['next'];}return{'type':'format','content':''+c(_0xb5634e,'*Remove\x20format:*\x20%0',c(_0xb5634e,this['_getTranslationKeyForListStyle'](_0x2b2847['oldValue'])))};}if('default'!=_0x2b2847['newValue'])return{'type':'format','content':''+c(_0xb5634e,'*Set\x20format:*\x20%0',c(_0xb5634e,this['_getTranslationKeyForListStyle'](_0x2b2847['newValue'])))};let _0x44aa3f=_0x1208df['head'];for(;_0x44aa3f;){if(_0x44aa3f['data']&&'listType'==_0x44aa3f['data']['key']&&_0x44aa3f['data']['newValue']&&_0x44aa3f['data']['oldValue'])return _0x3b3fbc;_0x44aa3f=_0x44aa3f['next'];}return{'type':'format','content':c(_0xb5634e,'*Set\x20format:*\x20%0',c(_0xb5634e,'ELEMENT_'+_0x1208df['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xce070b=this['editor'],_0x515fb2=_0xce070b['locale'];_0xce070b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37a580=>{if('formatBlock'!=_0x37a580['type'])return;const {data:_0x3c5084}=_0x37a580;if(!_0x3c5084)return;let _0x2dba66,_0x1766c0;switch(_0x3c5084['commandName']){case'listStyle':_0x2dba66='*Change\x20to:*\x20%0',_0x1766c0={'type':'format','content':c(_0x515fb2,_0x2dba66,c(_0x515fb2,this['_getTranslationKeyForListStyle'](_0x3c5084['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2dba66=_0x3c5084['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1766c0={'type':'format','content':c(_0x515fb2,_0x2dba66)};break;case'listStart':_0x2dba66='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1766c0={'type':'format','content':c(_0x515fb2,_0x2dba66,_0x3c5084['commandParams'][0x0]['startIndex'])};}return _0x1766c0;});}['_getTranslationKeyForListStyle'](_0x216ac){return'ELEMENT_'+function(_0x132614){if(_e['includes'](_0x132614))return'bulleted';if(Re['includes'](_0x132614))return'numbered';return null;}(_0x216ac)['toUpperCase']()+'_LIST_'+_0x216ac['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x385d2b{['afterInit'](){const _0x2b28d6=this['editor'];_0x2b28d6['commands']['get']('emoji')&&_0x2b28d6['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x385d2b{static get['requires'](){return[_0x4dd6b6];}['init'](){const _0x364a1c=this['editor'],_0x161424=_0x364a1c['plugins']['get']('TrackChangesEditing'),_0x318df2=_0x364a1c['commands']['get']('enter');_0x161424['enableCommand']('enter',()=>{_0x364a1c['model']['change'](_0x1697f2=>{const _0xb4acbc=_0x364a1c['model']['document']['selection'],_0x55912b=_0xb4acbc['getFirstPosition'](),_0x4eea00=_0x21cd14['fromRange'](_0xb4acbc['getFirstRange']());if(_0x318df2['enterBlock'](_0x1697f2)){const _0x1cb9e6=_0x364a1c['model']['createPositionAt'](_0x55912b['parent']['nextSibling'],0x0),_0x4b4fb4=_0x1697f2['createRange'](_0x55912b,_0x1cb9e6);_0x161424['markInsertion'](_0x4b4fb4);}else _0x1697f2['setSelection'](_0x1697f2['createRange'](_0x4eea00['end']));_0x4eea00['detach'](),_0x318df2['fire']('afterExecute',{'writer':_0x1697f2});});}),_0x364a1c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x364a1c,'split'),{'priority':'high'}),_0x364a1c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x43b13e,_0x52fcf2,_0x3ccda3)=>{const _0x524b2a=_0x3ccda3['mapper']['markerNameToElements'](_0x52fcf2['markerName']);if(_0x524b2a){for(const _0x56e6b7 of _0x524b2a)_0x56e6b7['hasClass']('ck-suggestion-marker-split')&&(_0x3ccda3['mapper']['unbindElementFromMarkerName'](_0x56e6b7,_0x52fcf2['markerName']),_0x3ccda3['writer']['remove'](_0x56e6b7));}},{'priority':'high'}),_0x364a1c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3f5215,_0x4a0412,_0x2a8f54)=>{_0x2a8f54['options']['showSuggestionHighlights']&&Fe(_0x364a1c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3f5215,_0x4a0412,_0x2a8f54);},{'priority':'high'});}}class Z extends _0x385d2b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x56bd98=this['editor']['plugins']['get']('TrackChangesEditing');_0x56bd98['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x56bd98['enableCommand']('findNext'),_0x56bd98['enableCommand']('findPrevious'),_0x56bd98['enableCommand']('replace'),_0x56bd98['enableCommand']('replaceAll');}['handleFindCommand'](_0x59b426,_0x2852b4,_0x43aed2={}){const _0x44638d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x59b426(_0x537997=>{let _0x1aa752=('string'==typeof _0x2852b4?_0x44638d['findByTextCallback'](_0x2852b4,_0x43aed2):_0x2852b4)(_0x537997);Array['isArray'](_0x1aa752)&&(_0x1aa752={'results':_0x1aa752,'searchText':'string'==typeof _0x2852b4?_0x2852b4:''});const _0x5f2847=_0x1aa752['results']['filter'](_0x1181c2=>!0x1===this['_isInDeletionRange'](_0x1181c2,_0x537997['item']));return{..._0x1aa752,'results':_0x5f2847};},_0x43aed2);}['_isInDeletionRange'](_0x2762cc,_0xa67eea){const _0x14aaef=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xa67eea,_0x2762cc['start']),this['editor']['model']['createPositionAt'](_0xa67eea,_0x2762cc['end']));for(const _0x45ec0b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x14aaef['getIntersection'](_0x45ec0b['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 _0x385d2b{['afterInit'](){const _0x2387db=this['editor']['locale'],_0x2b378a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x49c7ad,commandName:_0x199929}of ro)this['editor']['plugins']['has'](_0x49c7ad)&&(_0x2b378a['enableDefaultAttributesIntegration'](_0x199929),_0x2b378a['registerInlineAttribute'](_0x199929));_0x2b378a['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x2387db,'FORMAT_FONT_SIZE')),_0x2b378a['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x2387db,'FORMAT_FONT_FAMILY')),_0x2b378a['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x2387db,'FORMAT_FONT_COLOR')),_0x2b378a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x2387db,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21b4a=this['editor'],_0x2842ba=_0x21b4a['locale'];_0x21b4a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13feca=>{const _0x5814d1=_0x2842ba['t'];if('formatInline'!=_0x13feca['type'])return;const {data:_0x1be631}=_0x13feca;if(null!=_0x1be631){if('fontSize'==_0x1be631['commandName']){const _0x29a38b=_0x1be631['commandParams'][0x0]['value'];if(_0x29a38b){const _0x21515e=_0x5814d1(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1c8a29=>_0x1c8a29['model']==_0x29a38b)['title'])['toLowerCase']();return{'type':'format','content':c(_0x2842ba,'*Set\x20font\x20size:*\x20%0',_0x21515e)};}return{'type':'format','content':c(_0x2842ba,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1be631['commandName']){const _0x41ec8a=_0x1be631['commandParams'][0x0]['value'];return _0x41ec8a?{'type':'format','content':c(_0x2842ba,'*Set\x20font\x20family:*\x20%0',_0x41ec8a)}:{'type':'format','content':c(_0x2842ba,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1be631['commandName']){const _0xb9b4e5=_0x1be631['commandParams'][0x0]['value'];if(_0xb9b4e5){const _0x3c19b2=_0x1c7a9d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5f5a49=>_0x5f5a49['model']==_0xb9b4e5);let _0xb30c51=_0xb9b4e5,_0x5c3ada='';return _0x3c19b2&&(_0xb30c51=_0x3c19b2['label'],_0x5c3ada=_0x5814d1(_0xb30c51)['toLowerCase']()),{'type':'format','content':c(_0x2842ba,'*Set\x20font\x20color:*\x20%0',_0x5c3ada)['trim'](),'color':{'value':_0xb9b4e5,'title':_0x5c3ada||_0xb30c51}};}return{'type':'format','content':c(_0x2842ba,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1be631['commandName']){const _0x579314=_0x1be631['commandParams'][0x0]['value'];if(_0x579314){const _0x294896=_0x1c7a9d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x42d136=>_0x42d136['model']==_0x579314);let _0x1e8209=_0x579314,_0x4c823e='';return _0x294896&&(_0x1e8209=_0x294896['label'],_0x4c823e=_0x5814d1(_0x1e8209)['toLowerCase']()),{'type':'format','content':c(_0x2842ba,'*Set\x20font\x20background\x20color:*\x20%0',_0x4c823e)['trim'](),'color':{'value':_0x579314,'title':_0x4c823e||_0x1e8209}};}return{'type':'format','content':c(_0x2842ba,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x385d2b{['afterInit'](){const _0x26f97e=this['editor'],_0x53c997=_0x26f97e['plugins']['get']('TrackChangesEditing'),_0x4ca13d=_0x26f97e['commands']['get']('copyFormat'),_0x1eba66=_0x26f97e['commands']['get']('pasteFormat');_0x4ca13d&&_0x1eba66&&(_0x53c997['enableDefaultAttributesIntegration']('pasteFormat'),_0x53c997['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x443011=this['editor'],_0x2f8d1d=_0x443011['locale'];_0x443011['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x300052=>{if('formatBlock'!=_0x300052['type']&&'formatInline'!=_0x300052['type'])return;const {data:_0x3b2a6f}=_0x300052;if(_0x3b2a6f&&'pasteFormat'===_0x3b2a6f['commandName']){const _0x1151b4=[],_0xcb4d91=_0x3b2a6f['commandParams'][0x0];for(const [_0x3498b6,_0x52bb5d]of Object['entries'](_0xcb4d91))_0x1151b4['push'](so(_0x443011,_0x3498b6,_0x52bb5d));return _0x1151b4['length']?{'type':'format','content':c(_0x2f8d1d,'*Set\x20format\x20to:*\x20%0',_0x1151b4['join'](',\x20'))}:{'type':'format','content':c(_0x2f8d1d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2804b5,_0x4c49f5,_0xca5e45){const _0x5b5ba7=_0x2804b5['locale']['t'],_0x2d15a7=_0x4c49f5['split'](/(?=[A-Z])/)['join']('\x20'),_0x28c0bb=_0x5b5ba7(_0x2d15a7['charAt'](0x0)['toUpperCase']()+_0x2d15a7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xca5e45)return _0x28c0bb;if('fontColor'===_0x4c49f5||'fontBackgroundColor'===_0x4c49f5){const _0x5b23a5=_0x1c7a9d(_0x2804b5['config']['get']('fontColor.colors'))['find'](_0x54915b=>_0x54915b['model']==_0xca5e45);return _0x28c0bb+'\x20('+(_0x5b23a5?_0x5b5ba7(_0x5b23a5['label'])['toLowerCase']():_0xca5e45)+')';}if('fontSize'===_0x4c49f5&&isNaN(parseFloat(_0xca5e45))){const _0x38b8ca=_0x2804b5['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2804b5['config']['get']('fontSize.options'))['find'](_0x39462a=>_0x39462a['model']==_0xca5e45);return _0x28c0bb+'\x20('+(_0x38b8ca?_0x5b5ba7(_0x38b8ca['title'])['toLowerCase']():_0xca5e45)+')';}return _0x28c0bb+'\x20('+_0xca5e45+')';}class et extends _0x385d2b{['_headingOptions'];['afterInit'](){const _0x24f685=this['editor'];if(!_0x24f685['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x24f685['config']['get']('heading.options');const _0x248baa=_0x24f685['locale'],_0x166495=_0x24f685['plugins']['get']('TrackChangesEditing');_0x166495['enableDefaultAttributesIntegration']('heading');for(const _0xdfe596 of this['_headingOptions'])'paragraph'!=_0xdfe596['model']&&_0x166495['descriptionFactory']['registerElementLabel'](_0xdfe596['model'],_0x2abefb=>{const _0x463f2c=this['_getHeadingLevel'](_0xdfe596['model']);return null!==_0x463f2c?_0x1dbeca(_0x2abefb,_0x463f2c):_0x62096e(_0x2abefb,_0xdfe596['title']);});function _0x1dbeca(_0x6dbd3,_0x36ee38){return c(_0x248baa,'ELEMENT_HEADING',[_0x6dbd3,_0x36ee38]);}function _0x62096e(_0x5c2198,_0x467951){return c(_0x248baa,'ELEMENT_HEADING_CUSTOM',[_0x5c2198,_0x467951]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x358fec=this['editor'],_0x3faf94=_0x358fec['locale'];function _0xf3b69d(_0x51c6f8,_0x12c952){return c(_0x3faf94,'ELEMENT_HEADING_CUSTOM',[_0x51c6f8,_0x12c952]);}_0x358fec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b493d=>{if('formatBlock'!=_0x2b493d['type'])return;const {data:_0x8679d1}=_0x2b493d;if(_0x8679d1&&'heading'==_0x8679d1['commandName']){const _0x51eeab=_0x8679d1['commandParams'][0x0]['value'],_0x5c7ca7=this['_getHeadingLevel'](_0x51eeab);if(null!==_0x5c7ca7)return{'type':'format','content':c(_0x3faf94,'*Change\x20to:*\x20%0',(_0x2c04bd=0x1,_0x2f5b02=_0x5c7ca7,c(_0x3faf94,'ELEMENT_HEADING',[_0x2c04bd,_0x2f5b02])))};const _0x385c96=this['_headingOptions']['find'](_0xf1f1=>_0xf1f1['model']===_0x51eeab)['title'];return{'type':'format','content':c(_0x3faf94,'*Change\x20to:*\x20%0',_0xf3b69d(0x1,_0x385c96))};}var _0x2c04bd,_0x2f5b02;});}['_getHeadingLevel'](_0x2db57c){const _0x2a9369=_0x2db57c['match'](/^heading(\d+)/);if(_0x2a9369)return _0x2a9369[0x1];const _0x79720d=this['_headingOptions']?.['find'](_0x55dd93=>_0x55dd93['model']==_0x2db57c);if(_0x79720d&&_0x79720d['view']){const _0xa3a62d=_0x79720d['view'],_0x5c8165=(_0xa3a62d['name']??_0xa3a62d)['match'](/^h(\d+)/);if(_0x5c8165)return _0x5c8165[0x1];}return null;}}class nt extends _0x385d2b{['afterInit'](){const _0x2fde54=this['editor'];if(!_0x2fde54['plugins']['has']('HighlightEditing'))return;const _0xa0275d=_0x2fde54['plugins']['get']('TrackChangesEditing'),_0x1cbd61=_0x2fde54['locale'];_0xa0275d['enableDefaultAttributesIntegration']('highlight'),_0xa0275d['registerInlineAttribute']('highlight'),_0xa0275d['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x1cbd61,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24f3cb=this['editor'],_0x305f14=_0x24f3cb['locale'];_0x24f3cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x346bae=>{if('formatInline'!=_0x346bae['type'])return;const {data:_0x3b7307}=_0x346bae;if(_0x3b7307&&'highlight'==_0x3b7307['commandName']){const _0x186d1a=_0x305f14['t'],_0x4803a2=_0x3b7307['commandParams'][0x0]['value'];if(_0x4803a2){const _0x29d7f5=_0x24f3cb['config']['get']('highlight.options')['find'](_0x5bcf2b=>_0x5bcf2b['model']==_0x4803a2),_0x153b7=_0x186d1a(_0x29d7f5['title'])['toLowerCase']();return{'type':'format','content':c(_0x305f14,'*Set\x20highlight:*\x20%0',_0x153b7),'color':{'value':_0x29d7f5['color'],'title':_0x29d7f5['title']}};}return{'type':'format','content':c(_0x305f14,'*Remove\x20highlight*',c(_0x305f14,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x385d2b{['afterInit'](){const _0x3f58e7=this['editor'];if(!_0x3f58e7['plugins']['has']('HorizontalLineEditing'))return;_0x3f58e7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x52c7f9=_0x3f58e7['plugins']['get']('TrackChangesEditing'),_0x2311eb=_0x3f58e7['locale'];_0x52c7f9['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1d7338=>c(_0x2311eb,'ELEMENT_HORIZONTAL_LINE',_0x1d7338)),_0x3f58e7['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x47c6fd,{writer:_0x580987,options:_0x2d2a80})=>{if(!_0x2d2a80['showSuggestionHighlights'])return null;const _0x524daf=_0x580987['createContainerElement']('div'),_0x3a6523=_0x580987['createEmptyElement']('hr');return _0x580987['addClass']('ck-horizontal-line',_0x524daf),_0x580987['insert'](_0x580987['createPositionAt'](_0x524daf,0x0),_0x3a6523),_0x524daf;},'converterPriority':'high'});}}class ot extends _0x385d2b{['afterInit'](){const _0x1bfbb9=this['editor'];if(!_0x1bfbb9['plugins']['has']('HtmlEmbed'))return;const _0x52fdc6=_0x1bfbb9['plugins']['get']('TrackChangesEditing'),_0x1687ff=_0x1bfbb9['locale'];_0x52fdc6['descriptionFactory']['registerElementLabel']('rawHtml',_0x14170a=>c(_0x1687ff,'ELEMENT_HTML_EMBED',_0x14170a)),_0x52fdc6['enableDefaultAttributesIntegration']('htmlEmbed'),_0x52fdc6['registerBlockAttribute']('value'),_0x52fdc6['descriptionFactory']['registerDescriptionCallback'](_0x4557ed=>{if('attribute'!=_0x4557ed['type'])return;const {data:_0x3b52c4}=_0x4557ed;if(_0x3b52c4&&'value'==_0x3b52c4['key']&&_0x4557ed['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1b94be=c(_0x1687ff,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1687ff,'*Change\x20%0\x20content*',_0x1b94be)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d84a4=this['editor'],_0x53981f=_0x4d84a4['locale'];_0x4d84a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25b7fe=>{if('formatBlock'!=_0x25b7fe['type'])return;const {data:_0x3d291d}=_0x25b7fe;if(_0x3d291d&&'htmlEmbed'==_0x3d291d['commandName']){const _0xe88bac=c(_0x53981f,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x53981f,'*Change\x20%0\x20content*',_0xe88bac)};}});}}class rt extends _0x385d2b{['afterInit'](){const _0x35764b=this['editor'];if(!_0x35764b['plugins']['has']('ImageEditing'))return;const _0x1359bb=_0x35764b['plugins']['get']('TrackChangesEditing'),_0x510494=_0x35764b['plugins']['get']('ImageUtils'),_0x5b1499=_0x35764b['locale'];_0x1359bb['enableCommand']('insertImage'),_0x1359bb['descriptionFactory']['registerElementLabel']('imageBlock',_0x1e0a98=>c(_0x5b1499,'ELEMENT_IMAGE',_0x1e0a98)),_0x1359bb['descriptionFactory']['registerElementLabel']('imageInline',_0x6169c1=>c(_0x5b1499,'ELEMENT_INLINE_IMAGE',_0x6169c1)),_0x1359bb['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x5b1499,'ELEMENT_CAPTION')),_0x35764b['plugins']['has']('ImageUploadEditing')&&_0x1359bb['enableCommand']('uploadImage'),_0x35764b['plugins']['has']('ImageBlockEditing')&&_0x35764b['plugins']['has']('ImageInlineEditing')&&(_0x1359bb['enableCommand']('imageTypeInline',(_0xee0527,_0xd8bb2b)=>{const _0x3a1a17=_0x510494['getClosestSelectedImageElement'](_0x35764b['model']['document']['selection']);_0x35764b['model']['change'](()=>{_0x1359bb['markBlockFormat'](_0x3a1a17,{'commandName':'imageTypeInline','commandParams':[_0xd8bb2b]},[],'convertBlockImageToInline');});}),_0x1359bb['enableCommand']('imageTypeBlock',(_0x2c69dc,_0x30c2b9)=>{_0x35764b['model']['change'](_0x207c56=>{let _0xfa681f=_0x510494['getClosestSelectedImageElement'](_0x35764b['model']['document']['selection']),_0x2e7908=_0x207c56['createRangeOn'](_0xfa681f);const _0x1e5cb6=_0x3fff8c['fromPosition'](_0x2e7908['start'],'toPrevious'),_0x148c13=_0x3fff8c['fromPosition'](_0x2e7908['end'],'toNext');_0x1359bb['forceDefaultExecution'](()=>_0x2c69dc(_0x30c2b9)),_0xfa681f=_0x510494['getClosestSelectedImageElement'](_0x35764b['model']['document']['selection']),_0x2e7908=_0x207c56['createRangeOn'](_0xfa681f);const _0x1567b7=_0x207c56['createRange'](_0x1e5cb6,_0x148c13);_0x1e5cb6['detach'](),_0x148c13['detach'](),_0x1359bb['markBlockFormat'](_0xfa681f,{'commandName':'imageTypeInline','commandParams':[_0x30c2b9]},[],'convertInlineImageToBlock'),_0x1567b7['start']['isBefore'](_0x2e7908['start'])&&_0x1359bb['markInsertion'](_0x207c56['createRange'](_0x1567b7['start'],_0x2e7908['start']),'convertInlineImageToBlock'),_0x2e7908['end']['isBefore'](_0x1567b7['end'])&&_0x1359bb['markInsertion'](_0x207c56['createRange'](_0x2e7908['end'],_0x1567b7['end']),'convertInlineImageToBlock');});}),_0x1359bb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1359bb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1359bb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1359bb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1359bb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1359bb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x52a106])=>{const _0x26315f=_0x1359bb['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x9cba52=_0x52a106['start'],_0x3d6b67=_0x52a106['end'];const _0x49482c=_0x35764b['model']['schema']['getNearestSelectionRange'](_0x9cba52,'backward'),_0x4077e2=_0x35764b['model']['schema']['getNearestSelectionRange'](_0x3d6b67,'forward');_0x49482c['isCollapsed']&&(_0x9cba52=_0x49482c['start']),_0x4077e2['isCollapsed']&&(_0x3d6b67=_0x4077e2['end']),_0x26315f([_0x35764b['model']['createRange'](_0x9cba52,_0x3d6b67)]);}),_0x1359bb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x50d21a),_0x1359bb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x50d21a)),_0x35764b['plugins']['has']('ImageCaptionEditing')&&(_0x1359bb['enableCommand']('toggleImageCaption',(_0x3c2347,_0x59b004)=>{const _0x1ab09d=_0x35764b['plugins']['get']('ImageCaptionUtils');let _0x4638f8=_0x510494['getClosestSelectedImageElement'](_0x35764b['model']['document']['selection']),_0x18bb7a=_0x1ab09d['getCaptionFromImageModelElement'](_0x4638f8);_0x35764b['model']['change'](()=>{if(_0x18bb7a)return void _0x1359bb['markDeletion'](_0x35764b['model']['createRangeOn'](_0x18bb7a));const _0x274e16=_0x510494['isBlockImage'](_0x4638f8);_0x3c2347(_0x59b004),_0x4638f8=_0x510494['getClosestSelectedImageElement'](_0x35764b['model']['document']['selection']),_0x18bb7a=_0x1ab09d['getCaptionFromImageModelElement'](_0x4638f8),_0x1359bb['markInsertion'](_0x35764b['model']['createRangeOn'](_0x18bb7a),_0x274e16?null:'imageCaption');});}),_0x1359bb['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x50d21a));const _0x55c4c4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x58d39f(_0x3720e3,_0x44d1b3){const _0x59821d=_0x55c4c4['findIndex'](({type:_0x15b7bb,subType:_0xdbc420})=>_0x3720e3['type']==_0x15b7bb&&_0x3720e3['subType']==_0xdbc420),_0x47ccc4=_0x55c4c4['findIndex'](({type:_0x113e32,subType:_0x471363})=>_0x44d1b3['type']==_0x113e32&&_0x44d1b3['subType']==_0x471363);if(_0x59821d<0x0||_0x47ccc4<0x0)return!0x1;const _0x6983f4=_0x3720e3['getFirstRange'](),_0x4933fc=_0x44d1b3['getFirstRange']();if((0x0==_0x59821d||0x1==_0x59821d)&&0x2==_0x47ccc4&&_0x6983f4['isIntersecting'](_0x4933fc))return!0x0;if(0x2==_0x59821d&&0x3==_0x47ccc4){const _0x129098=_0x1359bb['_findSuggestions'](_0x6983f4,'insertion')['filter'](({suggestion:_0x54a22d,meta:_0x26a7ff})=>_0x26a7ff['isOwn']&&'convertInlineImageToBlock'==_0x54a22d['subType']);if(_0x129098['length']>0x1&&_0x4933fc['end']['isEqual'](_0x6983f4['start']))return!0x0;if(0x1==_0x129098['length']&&(_0x6983f4['start']['isEqual'](_0x4933fc['end'])||_0x6983f4['end']['isEqual'](_0x4933fc['start'])))return!0x0;}if(0x3==_0x59821d&&0x3==_0x47ccc4&&_0x6983f4['start']['isBefore'](_0x4933fc['start'])){const _0x9a6eb9=_0x6983f4['end']['nodeAfter'],_0x3c4a1e=_0x4933fc['start']['nodeBefore'];return _0x510494['isBlockImage'](_0x9a6eb9)&&_0x9a6eb9===_0x3c4a1e;}return!0x1;}function _0x50d21a(_0x443036,_0x50c9c4){return _0x58d39f(_0x443036,_0x50c9c4)?[_0x443036,_0x50c9c4]:_0x58d39f(_0x50c9c4,_0x443036)?[_0x50c9c4,_0x443036]:null;}_0x35764b['plugins']['has']('ImageResize')&&(_0x1359bb['enableDefaultAttributesIntegration']('resizeImage'),_0x1359bb['registerBlockAttribute']('resizedWidth'),_0x1359bb['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x5b1499,'FORMAT_IMAGE_SIZE'))),_0x35764b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1359bb['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1359bb['registerBlockAttribute']('alt')),_0x35764b['plugins']['has']('PictureEditing')&&(_0x1359bb['registerBlockAttribute']('sources'),_0x1359bb['descriptionFactory']['registerDescriptionCallback'](_0x1d8ada=>{if('attribute'!=_0x1d8ada['type'])return;const {data:_0x30189a}=_0x1d8ada;return _0x30189a&&'sources'==_0x30189a['key']?{'type':'format','content':''}:void 0x0;})),_0x35764b['plugins']['has']('ImageSizeAttributes')&&(_0x1359bb['registerBlockAttribute']('width'),_0x1359bb['registerBlockAttribute']('height'),_0x1359bb['descriptionFactory']['registerDescriptionCallback'](_0x1c7a52=>{if('attribute'!=_0x1c7a52['type'])return;const {data:_0x319739}=_0x1c7a52;return!_0x319739||'width'!=_0x319739['key']&&'height'!=_0x319739['key']?void 0x0:{'type':'format','content':''};})),_0x1359bb['descriptionFactory']['registerDescriptionCallback'](_0x28b633=>{if(!!_0x55c4c4['find'](({type:_0x420f7f,subType:_0x3ce651})=>_0x28b633['type']==_0x420f7f&&_0x28b633['subType']==_0x3ce651))return _0x28b633['previous']?{}:void 0x0;}),_0x1359bb['descriptionFactory']['registerDescriptionCallback'](_0xdd041a=>{if('insertion'==_0xdd041a['type']||'deletion'==_0xdd041a['type']){const _0x4d36c3=_0xdd041a['getContainedElement']();if(_0x4d36c3&&_0x4d36c3['is']('element','caption'))return{'type':'insertion'==_0xdd041a['type']?'addObject':'removeObject','element':_0x4d36c3,'quantity':0x1};}}),_0x1359bb['descriptionFactory']['registerDescriptionCallback'](_0x44a909=>'formatBlock'==_0x44a909['type']&&'convertInlineImageToBlock'==_0x44a909['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x44a909['type']&&'convertBlockImageToInline'==_0x44a909['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1359bb['descriptionFactory']['registerDescriptionCallback'](_0x24b5b4=>{if('attribute'!=_0x24b5b4['type'])return;const {data:_0x18df60}=_0x24b5b4;if(!_0x18df60||'alt'!=_0x18df60['key'])return;const _0x41e634=_0x18df60['newValue'];return _0x41e634?{'type':'format','content':c(_0x5b1499,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x41e634+'\x22')}:{'type':'format','content':c(_0x5b1499,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f6c85=this['editor'],_0x13ffad=_0x3f6c85['locale'];_0x3f6c85['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5201ca=>{if('formatBlock'!=_0x5201ca['type']&&'formatInline'!=_0x5201ca['type'])return;const {data:_0x2dbe31}=_0x5201ca;if(_0x2dbe31){if('imageTextAlternative'==_0x2dbe31['commandName']){const _0x2fa379=_0x2dbe31['commandParams'][0x0]['newValue'];return _0x2fa379?{'type':'format','content':c(_0x13ffad,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2fa379+'\x22')}:{'type':'format','content':c(_0x13ffad,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2dbe31['commandName']){const _0x4e0dec=_0x2dbe31['commandParams'][0x0]['width'];return _0x4e0dec?{'type':'format','content':c(_0x13ffad,'*Set\x20image\x20width:*\x20%0',_0x4e0dec)}:{'type':'format','content':c(_0x13ffad,'*Reset\x20image\x20width*')};}}});}}class at extends _0x385d2b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5aead6=this['editor']['locale'],_0x3b8f19=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b8f19['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3b8f19['registerBlockAttribute']('src'),_0x3b8f19['descriptionFactory']['registerDescriptionCallback'](_0xc39498=>{if('attribute'!=_0xc39498['type'])return;const {data:_0x16368a}=_0xc39498;return _0x16368a&&'src'==_0x16368a['key']?_0x16368a['newValue']&&_0x16368a['oldValue']?{'type':'format','content':c(_0x5aead6,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x107109=this['editor']['plugins']['get']('TrackChangesEditing');_0x107109['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x107109['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x107109['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x107109['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5da4a7=this['editor'],_0x270641=_0x5da4a7['locale'];_0x5da4a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cc49c=>{if('formatBlock'!=_0x4cc49c['type']&&'formatInline'!=_0x4cc49c['type'])return;const {data:_0x5147f0}=_0x4cc49c;if(!_0x5147f0||'replaceImageSource'!=_0x5147f0['commandName'])return;return{'type':'format','content':c(_0x270641,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x385d2b{['afterInit'](){const _0x3cff01=this['editor'];if(!_0x3cff01['plugins']['has']('ImageStyleEditing'))return;const _0x46d95d=_0x3cff01['plugins']['get']('TrackChangesEditing'),_0x4f22e7=_0x3cff01['plugins']['get']('ImageUtils'),_0x411b39={};_0x46d95d['enableCommand']('imageStyle',(_0x204f5c,_0x1cdd52)=>{const _0x1f1c6c=_0x3cff01['plugins']['get']('Users')['me'],_0x54d5d9=_0x3cff01['commands']['get']('imageStyle');let _0x14f755=_0x4f22e7['getClosestSelectedImageElement'](_0x3cff01['model']['document']['selection']),_0x88d815=_0x3cff01['model']['createRangeOn'](_0x14f755),_0x336408=_0x54d5d9['value'];if(_0x336408==_0x1cdd52['value'])return;const _0x379505={'commandName':'imageStyle','commandParams':[_0x1cdd52],'formatGroupId':_0x38a072()};_0x3cff01['model']['change'](()=>{if(_0x46d95d['getSuggestions']()['filter'](_0x5cd469=>_0x5cd469['isInContent']&&_0x1f1c6c==_0x5cd469['author']&&('formatBlock'==_0x5cd469['type']||'formatInline'==_0x5cd469['type'])&&('imageStylePreApply'==_0x5cd469['subType']||'imageStylePostApply'==_0x5cd469['subType'])&&_0x5cd469['getFirstRange']()['isEqual'](_0x88d815))['forEach'](_0x448eed=>_0x46d95d['discardSuggestion'](_0x448eed['head'])),_0x14f755=_0x4f22e7['getClosestSelectedImageElement'](_0x3cff01['model']['document']['selection']),_0x88d815=_0x3cff01['model']['createRangeOn'](_0x14f755),_0x54d5d9['refresh'](),_0x3cff01['commands']['get']('imageTypeInline')['refresh'](),_0x3cff01['commands']['get']('imageTypeBlock')['refresh'](),_0x336408=_0x54d5d9['value'],_0x336408!=_0x1cdd52['value'])return _0x4f22e7['isInlineImage'](_0x14f755)&&_0x54d5d9['shouldConvertImageType'](_0x1cdd52['value'],_0x14f755)?(_0x204f5c({..._0x1cdd52,'setImageSizes':!0x1}),_0x14f755=_0x4f22e7['getClosestSelectedImageElement'](_0x3cff01['model']['document']['selection']),void _0x46d95d['markBlockFormat'](_0x14f755,{..._0x379505,'commandReversedParams':[{'value':_0x336408||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4f22e7['isBlockImage'](_0x14f755)?_0x46d95d['markBlockFormat'](_0x14f755,_0x379505,[],'imageStylePostApply'):_0x46d95d['markInlineFormat'](_0x88d815,_0x379505,'imageStylePostApply'));});});for(const _0x9c8d03 of _0x3cff01['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x411b39[_0x9c8d03['name']]=_0x9c8d03['title']['toLowerCase']();_0x46d95d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x46d95d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x46d95d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x46d95d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x261997])=>{_0x4f22e7['setImageNaturalSizeAttributes'](_0x261997['getContainedElement']());}),_0x46d95d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xbf9bb1,_0x1dc72a)=>{_0x46d95d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xbf9bb1,{'commandName':_0x1dc72a['commandName'],'commandParams':_0x1dc72a['commandReversedParams']});}),_0x46d95d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x35f364,_0x12d8c4){if(_0x319edd(_0x35f364,_0x12d8c4))return[_0x35f364,_0x12d8c4];if(_0x319edd(_0x12d8c4,_0x35f364))return[_0x12d8c4,_0x35f364];return null;});const _0x159f70=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x319edd(_0x10f600,_0x5a4ca9){const _0x4d5f12=_0x159f70['findIndex'](({type:_0x3b01d9,subType:_0xd9beb9})=>_0x10f600['type']==_0x3b01d9&&_0x10f600['subType']==_0xd9beb9),_0x3cd5bc=_0x159f70['findIndex'](({type:_0x484dfb,subType:_0x59e048})=>_0x5a4ca9['type']==_0x484dfb&&_0x5a4ca9['subType']==_0x59e048);if(_0x4d5f12<0x0||_0x3cd5bc<0x0)return!0x1;const _0x7a9cda=_0x10f600['getFirstRange'](),_0x2cf412=_0x5a4ca9['getFirstRange']();if((0x0==_0x4d5f12||0x1==_0x4d5f12)&&0x2==_0x3cd5bc&&_0x7a9cda['isIntersecting'](_0x2cf412))return!0x0;if(0x2==_0x4d5f12&&0x3==_0x3cd5bc){const _0xbf1366=_0x46d95d['_findSuggestions'](_0x7a9cda,'insertion')['filter'](({suggestion:_0x6a01bc,meta:_0x3ab363})=>_0x3ab363['isOwn']&&'convertInlineImageToBlock'==_0x6a01bc['subType']);if(_0xbf1366['length']>0x1&&_0x2cf412['end']['isEqual'](_0x7a9cda['start']))return!0x0;if(0x1==_0xbf1366['length']&&(_0x7a9cda['start']['isEqual'](_0x2cf412['end'])||_0x7a9cda['end']['isEqual'](_0x2cf412['start'])))return!0x0;}if(0x3==_0x4d5f12&&0x3==_0x3cd5bc&&_0x7a9cda['start']['isBefore'](_0x2cf412['start'])){const _0x36a0a2=_0x7a9cda['end']['nodeAfter'],_0x11d797=_0x2cf412['start']['nodeBefore'];return _0x4f22e7['isBlockImage'](_0x36a0a2)&&_0x36a0a2===_0x11d797;}return!0x1;}_0x3cff01['model']['document']['registerPostFixer'](()=>{let _0x4ae678=!0x1;const _0x1c35ef=Array['from'](_0x3cff01['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf9bc96,data:_0xcf4a14}of _0x1c35ef){const {group:_0x1745f4,type:_0x2de523,subType:_0x184a6c,id:_0x37d116}=_0x46d95d['_splitMarkerName'](_0xf9bc96);if('suggestion'==_0x1745f4&&_0x46d95d['hasSuggestion'](_0x37d116)){if('formatBlock'==_0x2de523&&('imageStylePreApply'==_0x184a6c||'imageStylePostApply'==_0x184a6c)){const _0x11f6bc=_0x46d95d['getSuggestion'](_0x37d116);if(_0xcf4a14['newRange']){const _0x114ba2=_0x11f6bc['getFirstRange']()['getContainedElement']();if(_0x4f22e7['isBlockImage'](_0x114ba2))continue;_0x46d95d['discardSuggestion'](_0x11f6bc),_0x4ae678=!0x0;}}if('insertion'==_0x2de523&&'imageCaption'==_0x184a6c&&!_0xcf4a14['newRange']){const _0x4fe032=_0x46d95d['getSuggestion'](_0x37d116);_0x4fe032['next']&&_0x4fe032['next']['isInContent']&&(_0x46d95d['discardSuggestion'](_0x4fe032['next']),_0x4ae678=!0x0);}}}return _0x4ae678;}),this['_registerLegacyDescription'](_0x411b39);}['_registerLegacyDescription'](_0x14e9b2){const _0x59fbd6=this['editor'],_0x464fc2=_0x59fbd6['locale'];_0x59fbd6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7fc160=>{if('formatBlock'!=_0x7fc160['type']&&'formatInline'!=_0x7fc160['type'])return;const {data:_0x4b752}=_0x7fc160;if(!_0x4b752||'imageStyle'!=_0x4b752['commandName'])return;const _0x1ff953=_0x4b752['commandParams'][0x0]['value'];return _0x3e3b43('side'===_0x1ff953?c(_0x464fc2,'FORMAT_SIDE_IMAGE'):_0x14e9b2[_0x1ff953]||_0x1ff953);function _0x3e3b43(_0x24fa4a){return{'type':'format','content':c(_0x464fc2,'*Format:*\x20%0',_0x24fa4a)};}});}}class ut extends _0x385d2b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x34f577){super(_0x34f577),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2402e1=this['editor'],_0x123a45=_0x2402e1['commands']['get']('importWord'),_0xebafa1=_0x2402e1['commands']['get']('trackChanges');_0x123a45&&(_0x123a45['on']('execute',(_0x1e5d97,[,_0x19101e])=>{this['_trackChangesValueDuringImport']=_0xebafa1['value'],_0x19101e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x123a45,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x123a45,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xebafa1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2402e1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1f8e98,_0x2f0606){const {suggestions:_0x2cd47e}=_0x2f0606,_0x6d0319=this['editor']['commands']['get']('trackChanges'),_0x53d3b5=_0x6d0319['value'];this['_trackChangesValueDuringImport']!==_0x53d3b5&&(_0x6d0319['execute'](),this['_trackChangesExecuted']=!0x0),_0x2cd47e&&_0x2cd47e['forEach'](({id:_0x2a50d6,type:_0x3caf0e,author:_0xf1bf94,created_at:_0x4d2bb7})=>{const _0x47f484={'id':_0x2a50d6,'type':_0x3caf0e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xf1bf94,'createdAt':_0x4d2bb7?new Date(_0x4d2bb7):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x47f484);});}}class ft extends _0x385d2b{['afterInit'](){const _0x50c14d=this['editor'],_0x17da70=_0x50c14d['plugins']['get']('TrackChangesEditing');if(_0x50c14d['plugins']['has']('IndentEditing')&&(_0x17da70['enableCommand']('indent'),_0x17da70['enableCommand']('outdent')),_0x50c14d['plugins']['has']('IndentBlock')){for(const _0x50d2fc of['indentBlock','outdentBlock'])_0x17da70['enableDefaultAttributesIntegration'](_0x50d2fc);}const _0x56c68c=_0x50c14d['locale'];_0x17da70['registerBlockAttribute']('blockIndent'),_0x17da70['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x56c68c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3679e8=this['editor'],_0x5c7e04=_0x3679e8['locale'],_0x40cfa2=_0x3679e8['plugins']['get']('TrackChangesEditing');_0x40cfa2['descriptionFactory']['registerDescriptionCallback'](_0x48b7ea=>{if('formatBlock'!=_0x48b7ea['type'])return;const {data:_0x3b3cc1}=_0x48b7ea;if(!_0x3b3cc1)return;if('indentBlock'!=_0x3b3cc1['commandName']&&'outdentBlock'!=_0x3b3cc1['commandName'])return;const _0x50fa0b=_0x48b7ea['getItems']()[0x0],_0x5d68ef=_0x40cfa2['descriptionFactory']['getItemLabel'](_0x50fa0b);return'indentBlock'==_0x3b3cc1['commandName']?{'type':'format','content':c(_0x5c7e04,'*Indent:*\x20%0',_0x5d68ef)}:'outdentBlock'==_0x3b3cc1['commandName']?{'type':'format','content':c(_0x5c7e04,'*Outdent:*\x20%0',_0x5d68ef)}:void 0x0;});}}class ht extends _0x385d2b{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x385d2b{['afterInit'](){const _0x4a0b96=this['editor'];if(!_0x4a0b96['plugins']['has']('LinkEditing'))return;const _0x2cf079=_0x4a0b96['plugins']['get']('TrackChangesEditing'),_0x530d3c=_0x4a0b96['commands']['get']('link');_0x2cf079['enableDefaultAttributesIntegration']('link'),_0x2cf079['enableDefaultAttributesIntegration']('unlink'),_0x2cf079['registerInlineAttribute']('linkHref');for(const _0x2c46d4 of _0x530d3c['manualDecorators'])_0x2cf079['registerInlineAttribute'](_0x2c46d4['id']),_0x2cf079['descriptionFactory']['registerAttributeLabel'](_0x2c46d4['id'],'link\x20('+_0x2c46d4['label']['toLowerCase']()+')');_0x2cf079['descriptionFactory']['registerDescriptionCallback'](_0x5939c4=>{if('attribute'!=_0x5939c4['type'])return;const {data:_0x1dab47}=_0x5939c4;if(!_0x1dab47||'linkHref'!=_0x1dab47['key'])return;const _0x628322=_0x1dab47['newValue'],_0x36f7b5=_0x4a0b96['locale'];return{'type':'format','content':null==_0x628322?c(_0x36f7b5,'*Remove\x20link*'):c(_0x36f7b5,'*Set\x20link:*\x20%0','\x22'+_0x628322+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x580098=this['editor'],_0xb47622=_0x580098['locale'];_0x580098['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c1ce5=>{if('formatInline'!=_0x2c1ce5['type'])return;const {data:_0x2e4899}=_0x2c1ce5;if(_0x2e4899){if('link'==_0x2e4899['commandName']){const _0x3715a8=_0x2e4899['commandParams'][0x0];return{'type':'format','content':c(_0xb47622,'*Set\x20link:*\x20%0','\x22'+_0x3715a8+'\x22')};}return'unlink'==_0x2e4899['commandName']?{'type':'format','content':c(_0xb47622,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x385d2b{['afterInit'](){const _0x35377f=this['editor'],_0x5d46fa=_0x35377f['locale'];if(!_0x35377f['plugins']['has']('LegacyListEditing'))return;const _0x5d7187=_0x35377f['plugins']['get']('TrackChangesEditing'),_0x3a1dec=_0x35377f['plugins']['has']('LegacyTodoListEditing');function _0x318d2e(_0x1caa12){return()=>{const _0x220191=_0x35377f['model']['document']['selection'],_0x3cccfa=_0x35377f['commands']['get'](_0x1caa12);if(_0x3cccfa['value'])return void _0x35377f['execute']('paragraph',{});const _0xc55a1e=_0x1caa12['slice'](0x0,-0x4),_0x3eb7a9=function(_0x19018b,_0x1d894d,_0x1714fe){let _0x4b1442=Array['from'](_0x19018b)['filter'](_0x2f1af9=>function(_0x2b1a69,_0x3ea17d){return _0x3ea17d['checkChild'](_0x2b1a69['parent'],'listItem')&&!_0x3ea17d['isObject'](_0x2b1a69);}(_0x2f1af9,_0x1714fe));_0x4b1442=_0x4b1442['filter'](_0xb85661=>!_0xb85661['is']('element','listItem')||_0xb85661['getAttribute']('listType')!=_0x1d894d);const _0x554c57=new Set();for(const _0x324ea5 of _0x4b1442)_0x324ea5['is']('element','listItem')?_0x554c57['add'](Le(_0x324ea5)):_0x554c57['add'](_0x324ea5);return Array['from'](_0x554c57);}(_0x220191['getSelectedBlocks'](),_0xc55a1e,_0x35377f['model']['schema']);_0x35377f['model']['change'](()=>{for(const _0x451d2d of _0x3eb7a9)_0x5d7187['markBlockFormat'](_0x451d2d,{'commandName':_0x1caa12,'commandParams':[{'forceValue':!_0x3cccfa['value']}],'formatGroupId':'blockName'},Ee(_0x451d2d));});};}function _0x11bb35(_0x4dcf93){return()=>{const _0x5b934b=function(_0x267b6c){let _0x403d4f=Array['from'](_0x267b6c);const _0x48def5=_0x403d4f['findIndex'](_0x1aa2d8=>'listItem'!=_0x1aa2d8['name']);return _0x48def5>-0x1&&(_0x403d4f=_0x403d4f['slice'](0x0,_0x48def5)),_0x403d4f;}(_0x35377f['model']['document']['selection']['getSelectedBlocks']()),_0x1e3eb3=_0x35377f['model']['createRange'](_0x35377f['model']['createPositionAt'](_0x5b934b[0x0],'before'),_0x35377f['model']['createPositionAt'](_0x5b934b[_0x5b934b['length']-0x1],'end'));_0x35377f['model']['change'](()=>{_0x5d7187['markBlockFormat'](_0x1e3eb3,{'commandName':_0x4dcf93,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5800de){const _0x45cea2=new Set();for(const _0x46c526 of _0x5800de){let _0x401a6c=_0x46c526['nextSibling'];for(;_0x401a6c&&_0x401a6c['getAttribute']('listIndent')>_0x46c526['getAttribute']('listIndent');)_0x45cea2['add'](_0x401a6c),_0x401a6c=_0x401a6c['nextSibling'];}return Array['from'](_0x45cea2);}(_0x5b934b));});};}_0x5d7187['enableCommand']('numberedList',_0x318d2e('numberedList')),_0x5d7187['enableCommand']('bulletedList',_0x318d2e('bulletedList')),_0x3a1dec&&_0x5d7187['enableCommand']('todoList',_0x318d2e('todoList')),_0x5d7187['enableCommand']('indentList',_0x11bb35('indentList')),_0x5d7187['enableCommand']('outdentList',_0x11bb35('outdentList')),_0x3a1dec&&_0x5d7187['enableCommand']('checkTodoList',()=>{const _0x4a87ea=_0x35377f['commands']['get']('checkTodoList'),_0x3f9663=Array['from'](_0x4a87ea['_selectedElements']);_0x3f9663['filter'](_0x2bbd55=>_0x2bbd55['getAttribute']('todoListChecked')!=_0x4a87ea['value']),_0x35377f['model']['change'](()=>{for(const _0x3e59bc of _0x3f9663)_0x5d7187['markBlockFormat'](_0x3e59bc,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4a87ea['value']}]});});}),_0x5d7187['descriptionFactory']['registerElementLabel']('listItem',_0x588aae=>c(_0x5d46fa,'ELEMENT_LIST_ITEM',_0x588aae)),_0x5d7187['descriptionFactory']['registerDescriptionCallback'](_0x1c8304=>{if('formatBlock'!=_0x1c8304['type']&&'formatInline'!=_0x1c8304['type'])return;const {data:_0x5745dd}=_0x1c8304;if(_0x5745dd){if('numberedList'==_0x5745dd['commandName']||'bulletedList'==_0x5745dd['commandName']||'todoList'==_0x5745dd['commandName'])switch(_0x5745dd['commandName']['replace']('List','')){case'bulleted':return _0x384eff(c(_0x5d46fa,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x384eff(c(_0x5d46fa,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x384eff(c(_0x5d46fa,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5745dd['commandName'])return{'type':'format','content':c(_0x5d46fa,'*Indent:*\x20%0',c(_0x5d46fa,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5745dd['commandName'])return{'type':'format','content':c(_0x5d46fa,'*Outdent:*\x20%0',c(_0x5d46fa,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5745dd['commandName'])return _0x5745dd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5d46fa,'*Check\x20item*')}:{'type':'format','content':c(_0x5d46fa,'*Uncheck\x20item*')};}function _0x384eff(_0x1137aa){return{'type':'format','content':c(_0x5d46fa,'*Change\x20to:*\x20%0',_0x1137aa)};}});}}function Le(_0x1cb9dd){const _0x24785b=_0x1cb9dd['getAttribute']('listIndent');if(0x0==_0x24785b)return _0x1cb9dd;let _0x4c9137=_0x1cb9dd;for(;_0x1cb9dd['previousSibling']&&_0x1cb9dd['previousSibling']['is']('element','listItem');){const _0x2981a0=_0x1cb9dd['previousSibling']['getAttribute']('listIndent');if(_0x2981a0==_0x24785b)_0x4c9137=_0x1cb9dd['previousSibling'];else{if(_0x2981a0<_0x24785b)break;}_0x1cb9dd=_0x1cb9dd['previousSibling'];}return _0x4c9137;}function Ee(_0x545c84){const _0x187da0=[];if(_0x545c84['is']('element','listItem')&&_0x545c84['getAttribute']('listIndent')>0x0){let _0x3ef164=_0x545c84['nextSibling'];for(;_0x3ef164&&'listItem'==_0x3ef164['name']&&_0x3ef164['getAttribute']('listIndent')==_0x545c84['getAttribute']('listIndent');)_0x187da0['push'](_0x3ef164),_0x3ef164=_0x3ef164['nextSibling'];}return _0x187da0;}class Q extends _0x385d2b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xc7fa96=this['editor']['config']['get']('list.properties'),_0x4197b0=this['editor']['plugins']['get']('TrackChangesEditing');_0xc7fa96['styles']&&_0x4197b0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xc7fa96['reversed']&&_0x4197b0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xc7fa96['startIndex']&&_0x4197b0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4197b0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x70056a,_0x283b50={}){const _0x17bc82=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c7da0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x17bc82['markMultiRangeBlockFormat'](_0x5c7da0,{'commandName':'listStyle','commandParams':[{'type':_0x283b50['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x15f197,_0x538206={}){const _0x2610d5=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd7949b=this['_getSuggestionBlocks'](_0x58ad02=>_0x58ad02['is']('element','listItem')&&'numbered'===_0x58ad02['getAttribute']('listType'));if(_0xd7949b['length']<0x1)return;const _0x186bc5=_0xd7949b['map'](_0x31d087=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x31d087,'before'),this['editor']['model']['createPositionAt'](_0x31d087,0x0)));this['editor']['model']['change'](()=>{_0x2610d5['markMultiRangeBlockFormat'](_0x186bc5,{'commandName':'listReversed','commandParams':[{'reversed':_0x538206['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x532a80,_0x51860a={}){const _0x4e6b41=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e05fb=this['_getSuggestionBlocks'](_0x422546=>_0x422546['is']('element','listItem')&&'numbered'===_0x422546['getAttribute']('listType'));if(_0x3e05fb['length']<0x1)return;const _0x6ab488=_0x3e05fb['map'](_0x5db33b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5db33b,'before'),this['editor']['model']['createPositionAt'](_0x5db33b,0x0)));this['editor']['model']['change'](()=>{_0x4e6b41['markMultiRangeBlockFormat'](_0x6ab488,{'commandName':'listStart','commandParams':[{'startIndex':_0x51860a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4e28bd){if('formatBlock'!=_0x4e28bd['type']&&'formatInline'!=_0x4e28bd['type'])return;const _0x19196d=this['editor']['locale'],{data:_0x47064a}=_0x4e28bd;if(!_0x47064a)return;let _0x547b45,_0x203a24;switch(_0x47064a['commandName']){case'listStyle':_0x547b45='*Change\x20to:*\x20%0',_0x203a24={'type':'format','content':c(_0x19196d,_0x547b45,c(_0x19196d,this['_getTranslationKeyForListStyle'](_0x47064a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x547b45=_0x47064a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x203a24={'type':'format','content':c(_0x19196d,_0x547b45)};break;case'listStart':_0x547b45='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x203a24={'type':'format','content':c(_0x19196d,_0x547b45,_0x47064a['commandParams'][0x0]['startIndex'])};}return _0x203a24;}['_getSuggestionBlocksForListStyle'](){const _0x376bd5=this['editor']['plugins']['get']('LegacyListUtils');let _0x2aad20=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2aad20[0x0]?.['is']('element','listItem')&&_0x2aad20['unshift'](..._0x376bd5['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2aad20[_0x2aad20['length']-0x1]?.['is']('element','listItem')&&_0x2aad20['push'](..._0x376bd5['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2aad20=[...new Set(_0x2aad20)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2aad20=_0x2aad20['filter'](_0xdad2f2=>_0xdad2f2['is']('element','listItem'))),_0x2aad20;}['_getSuggestionBlocks'](_0x38e4d7){const _0x3e7dd7=this['editor']['plugins']['get']('LegacyListUtils');let _0x111b7f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x38e4d7)['map'](_0x296254=>{const _0x5b7037=this['editor']['model']['createPositionAt'](_0x296254,0x0);return[..._0x3e7dd7['getSiblingNodes'](_0x5b7037,'backward'),..._0x3e7dd7['getSiblingNodes'](_0x5b7037,'forward')];})['flat']();return _0x111b7f=[...new Set(_0x111b7f)],_0x111b7f;}['_getTranslationKeyForListStyle'](_0x5450f5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5450f5)||'default')['toUpperCase']()+'_LIST_'+_0x5450f5['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x385d2b{['afterInit'](){const _0x4ef3b0=this['editor'];if(!_0x4ef3b0['plugins']['has']('MediaEmbedEditing'))return;const _0x49c7de=_0x4ef3b0['plugins']['get']('TrackChangesEditing'),_0x26855e=_0x4ef3b0['locale'];_0x49c7de['enableCommand']('mediaEmbed'),_0x49c7de['descriptionFactory']['registerElementLabel']('media',_0x425606=>c(_0x26855e,'ELEMENT_MEDIA',_0x425606)),_0x4ef3b0['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3ce2b4,{writer:_0x5b50c3,options:_0x2e0df3})=>{if(_0x2e0df3['showSuggestionHighlights'])return _0x5b50c3['createEmptyElement']('div');},'converterPriority':'high'}),_0x4ef3b0['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5cbf95,_0x535cec,_0xd35e8d)=>{_0xd35e8d['options']['showSuggestionHighlights']&&_0x5cbf95['stop']();},{'priority':'high'});}}class pt extends _0x385d2b{['afterInit'](){const _0x2c0bab=this['editor'];_0x2c0bab['plugins']['has']('MentionEditing')&&_0x2c0bab['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x385d2b{['afterInit'](){const _0x4d6ce7=this['editor'];if(!_0x4d6ce7['plugins']['has']('MergeFieldsEditing'))return;const _0x2683af=_0x4d6ce7['plugins']['get']('TrackChangesEditing'),_0xbb640=_0x4d6ce7['locale'];_0x2683af['enableCommand']('insertMergeField'),_0x2683af['enableCommand']('insertMergeFieldBlock'),_0x2683af['enableCommand']('insertMergeFieldImage'),_0x2683af['descriptionFactory']['registerElementLabel']('mergeField',_0x2ffdfc=>c(_0xbb640,'ELEMENT_MERGE_FIELD',_0x2ffdfc)),_0x2683af['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x48ba44=>c(_0xbb640,'ELEMENT_MERGE_FIELD',_0x48ba44)),_0x2683af['descriptionFactory']['registerDescriptionCallback'](_0x5855fc=>{if('insertion'!=_0x5855fc['type']&&'deletion'!=_0x5855fc['type'])return;const _0x6a15a3=_0x5855fc['getContainedElement']();if(null==_0x6a15a3)return;const _0xda3591=_0x4d6ce7['plugins']['get']('MergeFieldsEditing');let _0x3d0975;switch(_0xda3591['getMergeFieldType'](_0x6a15a3)){case null:return;case'image':{const _0x47c5b7=_0xda3591['unwrapAffixes'](_0x6a15a3['getAttribute']('src'));_0x3d0975=_0xda3591['getLabel'](_0x47c5b7)||_0x47c5b7;break;}default:{const _0x37c649=_0x6a15a3['getAttribute']('id');_0x3d0975=_0xda3591['getLabel'](_0x37c649)||_0x37c649;break;}}return'insertion'==_0x5855fc['type']?{'type':'insertion','content':c(_0xbb640,'*Insert:*\x20%0','\x22'+_0x3d0975+'\x22\x20'+c(_0xbb640,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0xbb640,'*Remove:*\x20%0','\x22'+_0x3d0975+'\x22\x20'+c(_0xbb640,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x385d2b{['afterInit'](){const _0x55c7f4=this['editor'],_0x35e428=_0x55c7f4['plugins']['get']('TrackChangesEditing');_0x55c7f4['plugins']['has']('MultiLevelList')&&(_0x35e428['enableDefaultAttributesIntegration']('multiLevelList'),_0x35e428['registerBlockAttribute']('listMarkerStyle'),_0x35e428['descriptionFactory']['registerDescriptionCallback'](_0x3b43eb=>this['handleDescriptions'](_0x3b43eb)));}['handleDescriptions'](_0x166ce3){const _0x5d9ab9=this['editor']['locale'],{data:_0x5b051f}=_0x166ce3,_0x4d0a72={'type':'format','content':''};if(_0x5b051f&&'listMarkerStyle'==_0x5b051f['key']){if(!_0x5b051f['oldValue'])return{'type':'format','content':c(_0x5d9ab9,'*Set\x20format:*\x20%0',c(_0x5d9ab9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b051f['newValue']+')'};if(!_0x5b051f['newValue']){let _0x333e8e=_0x166ce3['head'];for(;_0x333e8e;){if(_0x333e8e['data']&&'listType'==_0x333e8e['data']['key']&&_0x333e8e['data']['newValue'])return _0x4d0a72;_0x333e8e=_0x333e8e['next'];}return{'type':'format','content':c(_0x5d9ab9,'*Remove\x20format:*\x20%0',c(_0x5d9ab9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b051f['oldValue']+')'};}}}}class bt extends _0x385d2b{['afterInit'](){const _0x408a7c=this['editor'];if(!_0x408a7c['plugins']['has']('PageBreakEditing'))return;_0x408a7c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x23f534=_0x408a7c['plugins']['get']('TrackChangesEditing'),_0x580ba0=_0x408a7c['locale'];_0x23f534['descriptionFactory']['registerElementLabel']('pageBreak',_0x573ac3=>c(_0x580ba0,'ELEMENT_PAGE_BREAK',_0x573ac3));}}class yt extends _0x385d2b{['afterInit'](){const _0x16ee9d=this['editor'];if(!_0x16ee9d['plugins']['has']('Paragraph'))return;const _0x3ef5fd=_0x16ee9d['locale'],_0x244118=_0x16ee9d['plugins']['get']('TrackChangesEditing');_0x244118['descriptionFactory']['registerElementLabel']('paragraph',_0x233cc0=>c(_0x3ef5fd,'ELEMENT_PARAGRAPH',_0x233cc0)),_0x244118['enableDefaultAttributesIntegration']('paragraph'),_0x244118['enableCommand']('insertParagraph'),_0x16ee9d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x16ee9d),{'priority':'highest'}),_0x16ee9d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x23802c,_0x414119,_0x497535)=>{_0x497535['options']['showSuggestionHighlights']&&nr(_0x16ee9d,{'showActiveMarker':!0x1})(_0x23802c,_0x414119,_0x497535);},{'priority':'highest'});const _0x3088c7=_0x244118['descriptionFactory'];_0x3088c7['registerDescriptionCallback'](_0x4658b9=>{if('insertion'!==_0x4658b9['type'])return;const {start:_0x586089,end:_0x772a82}=_0x4658b9['getFirstRange']();if(!_0x586089['isTouching'](_0x772a82)||!_0x586089['nodeAfter'])return;const _0x205420=_0x16ee9d['model']['schema'],_0x499e99=_0x586089['nodeAfter'];return _0x205420['isBlock'](_0x499e99)&&!_0x205420['isLimit'](_0x499e99)&&_0x205420['checkChild'](_0x499e99,'$text')?{'type':'insertion','content':c(_0x3ef5fd,'*Insert:*\x20%0',_0x3088c7['getItemLabel'](_0x499e99,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43d3f3=this['editor'],_0x5f43d4=_0x43d3f3['locale'];_0x43d3f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa0f01f=>{if('formatBlock'!=_0xa0f01f['type'])return;const {data:_0x31bc96}=_0xa0f01f;return _0x31bc96&&'paragraph'==_0x31bc96['commandName']?{'type':'format','content':c(_0x5f43d4,'*Change\x20to:*\x20%0',c(_0x5f43d4,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2d2e00,{showActiveMarker:_0x2bd71f=!0x0}={}){return(_0x2e0423,_0x5e6319,_0xf7d226)=>{const _0x442265=_0x2d2e00['plugins']['get']('TrackChangesEditing'),_0x1b7092=_0x5e6319['markerRange']['start'],_0x5c95a5=_0x5e6319['markerRange']['end'],_0x291f39=_0x2d2e00['model']['schema'];if(!_0x1b7092['isTouching'](_0x5c95a5)||!_0x1b7092['nodeAfter'])return;const _0x50519b=_0x1b7092['nodeAfter'];if(_0x291f39['isBlock'](_0x50519b)&&!_0x291f39['isLimit'](_0x50519b)&&_0x291f39['checkChild'](_0x50519b,'$text')){if(!_0xf7d226['consumable']['consume'](_0x5e6319['markerRange'],_0x2e0423['name']))return;const {id:_0x2d692b,authorId:_0xcf4c02}=_0x442265['_splitMarkerName'](_0x5e6319['markerName']),_0x25fa44=_0xf7d226['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x2d692b,'data-author-id':_0xcf4c02}),_0xdbfe57=_0xf7d226['mapper']['toViewPosition'](_0x5c95a5);_0x2bd71f&&_0x442265['activeMarkers']['includes'](_0x5e6319['markerName'])&&_0xf7d226['writer']['addClass']('ck-suggestion-marker--active',_0x25fa44),_0xf7d226['writer']['insert'](_0xdbfe57,_0x25fa44),_0xf7d226['mapper']['bindElementToMarker'](_0x25fa44,_0x5e6319['markerName']);}};}class St extends _0x385d2b{['afterInit'](){const _0xc9e5d=this['editor'];_0xc9e5d['commands']['get']('replaceSource')&&_0xc9e5d['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x385d2b{['afterInit'](){const _0x3c9e97=this['editor'];if(!_0x3c9e97['plugins']['has']('RemoveFormatEditing'))return;_0x3c9e97['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e8d88=this['editor'];_0x1e8d88['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31b946=>{if('formatBlock'!=_0x31b946['type']&&'formatInline'!=_0x31b946['type'])return;const {data:_0x5be20b}=_0x31b946;return _0x5be20b&&'removeFormat'==_0x5be20b['commandName']?{'type':'format','content':c(_0x1e8d88['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x385d2b{['afterInit'](){const _0x4abf62=this['editor'];if(!_0x4abf62['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2aea43=_0x4abf62['plugins']['get']('TrackChangesEditing');_0x2aea43['enableCommand']('goToPreviousRestrictedEditingException'),_0x2aea43['enableCommand']('goToNextRestrictedEditingException');const _0x515780=_0x4abf62['plugins']['get']('RestrictedEditingModeEditing');_0x515780['enableCommand']('trackChanges'),_0x515780['enableCommand']('acceptSuggestion'),_0x515780['enableCommand']('discardSuggestion'),_0x515780['enableCommand']('acceptAllSuggestions'),_0x515780['enableCommand']('discardAllSuggestions'),_0x515780['enableCommand']('acceptSelectedSuggestions'),_0x515780['enableCommand']('discardSelectedSuggestions');}}class At extends _0x385d2b{['afterInit'](){const _0x5e541e=this['editor'];if(!_0x5e541e['plugins']['has']('ShiftEnter'))return;const _0x11131e=_0x5e541e['plugins']['get']('TrackChangesEditing');_0x11131e['enableCommand']('shiftEnter'),_0x5e541e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x5e541e),{'priority':'high'}),_0x5e541e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x5e541e),{'priority':'high'}),_0x5e541e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x390188,_0x161d35,_0x3b5495)=>{_0x3b5495['options']['showSuggestionHighlights']&&je(_0x5e541e,{'showActiveMarker':!0x1})(_0x390188,_0x161d35,_0x3b5495);}),_0x11131e['descriptionFactory']['registerElementLabel']('softBreak',_0x3eb5bb=>c(_0x5e541e['locale'],'ELEMENT_LINE_BREAK',_0x3eb5bb));}}function je(_0x5237aa,{showActiveMarker:_0x6333c0=!0x0}={}){return(_0x150079,_0x1eb610,_0xb827c5)=>{const _0x5ebcba=_0x5237aa['plugins']['get']('TrackChangesEditing');if(!_0xb827c5['consumable']['test'](_0x1eb610['markerRange'],_0x150079['name']))return;const _0x4e8ad8=_0x5237aa['model'];for(const _0x2d809b of _0x1eb610['markerRange']['getItems']()){if(!_0x2d809b['is']('element','softBreak'))continue;const _0x456fcf='deletion'==_0x1eb610['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x3e051c,authorId:_0x4c4e82}=_0x5ebcba['_splitMarkerName'](_0x1eb610['markerName']),_0x18baf3=_0xb827c5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x456fcf,'data-suggestion':_0x3e051c,'data-author-id':_0x4c4e82}),_0x1895f1=_0xb827c5['mapper']['toViewPosition'](_0x4e8ad8['createPositionBefore'](_0x2d809b));_0x6333c0&&_0x5ebcba['activeMarkers']['includes'](_0x1eb610['markerName'])&&_0xb827c5['writer']['addClass']('ck-suggestion-marker--active',_0x18baf3),_0xb827c5['writer']['insert'](_0x1895f1,_0x18baf3),_0xb827c5['mapper']['bindElementToMarker'](_0x18baf3,_0x1eb610['markerName']);}};}class _t extends _0x385d2b{['afterInit'](){const _0x5a37f5=this['editor'],_0x415ee3=_0x5a37f5['model'],_0xd0c6aa=_0x5a37f5['locale'];if(!_0x5a37f5['plugins']['has']('StandardEditingModeEditing'))return;const _0x367423=_0x5a37f5['plugins']['get']('TrackChangesEditing'),_0x1bda0a='restrictedEditingException',_0x1bb0a6=_0x5a37f5['commands']['get'](_0x1bda0a);_0x367423['enableCommand'](_0x1bda0a,(_0x5a40e5,_0x10c24a={})=>{const _0x2beee1=_0x415ee3['document']['selection'];if(_0x2beee1['isCollapsed'])return void _0x5a40e5(_0x10c24a);const _0x4a150d=void 0x0!==_0x10c24a['forceValue']?_0x10c24a['forceValue']:!_0x1bb0a6['value'];_0x415ee3['change'](()=>{const _0x9a20f3=Array['from'](_0x2beee1['getRanges']());for(const _0x289a50 of _0x9a20f3){const _0x6a95e2=_0x4a150d?[_0x289a50]:io(_0x1bda0a,_0x289a50,_0x415ee3);for(const _0x24819f of _0x6a95e2)_0x367423['markInlineFormat'](_0x24819f,{'commandName':_0x1bda0a,'commandParams':[{'forceValue':_0x4a150d}]});}});}),_0x367423['descriptionFactory']['registerDescriptionCallback'](_0x472231=>{if('formatBlock'!=_0x472231['type']&&'formatInline'!=_0x472231['type'])return;const {data:_0x154a68}=_0x472231;return _0x154a68&&_0x154a68['commandName']==_0x1bda0a?_0x154a68['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xd0c6aa,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0xd0c6aa,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x385d2b{['afterInit'](){const _0x18a9b4=this['editor'];if(!_0x18a9b4['plugins']['has']('Style')||!_0x18a9b4['plugins']['has']('DataSchema'))return;const _0x38fb54=_0x18a9b4['plugins']['get']('TrackChangesEditing'),_0x35d785=_0x18a9b4['locale'],_0x37c659=_0x18a9b4['config']['get']('style')||{},_0x1f6ce4=_0x18a9b4['plugins']['get']('GeneralHtmlSupport'),_0x596150=_0x18a9b4['plugins']['get']('StyleUtils')['normalizeConfig'](_0x18a9b4['plugins']['get']('DataSchema'),_0x37c659['definitions']);_0x38fb54['enableDefaultAttributesIntegration']('style');const _0x33c1b5=new Set();for(const _0xf4ad36 of _0x596150['block']){const _0x43c102=_0x1f6ce4['getGhsAttributeNameForElement'](_0xf4ad36['element']);_0x33c1b5['add'](_0x43c102);}const _0x5d0d5f=new Set();for(const _0x2b9edb of _0x596150['inline']){const _0x963835=_0x1f6ce4['getGhsAttributeNameForElement'](_0x2b9edb['element']);_0x5d0d5f['add'](_0x963835);for(const _0xfb607e of _0x2b9edb['ghsAttributes'])_0x5d0d5f['add'](_0xfb607e);}for(const _0x917916 of _0x33c1b5)_0x38fb54['registerBlockAttribute'](_0x917916),_0x38fb54['descriptionFactory']['registerAttributeLabel'](_0x917916,c(_0x35d785,'FORMAT_STYLE'));for(const _0x1c0728 of _0x5d0d5f)_0x38fb54['registerInlineAttribute'](_0x1c0728),_0x38fb54['descriptionFactory']['registerAttributeLabel'](_0x1c0728,c(_0x35d785,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41aaa9=this['editor'],_0x21c6e2=_0x41aaa9['locale'];_0x41aaa9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x99edf7=>{if('formatBlock'!=_0x99edf7['type']&&'formatInline'!=_0x99edf7['type'])return;const {data:_0x4efed0}=_0x99edf7;return _0x4efed0&&'style'===_0x4efed0['commandName']?_0x4efed0['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x21c6e2,'*Set\x20format:*\x20%0',_0x4efed0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x21c6e2,'*Remove\x20format:*\x20%0',_0x4efed0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x385d2b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1e98c8){super(_0x1e98c8),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x313223=this['editor'],_0x2fa294=_0x313223['model']['document']['selection'];if(!_0x313223['plugins']['has']('TableEditing'))return;const _0x3ad8d9=_0x313223['locale'],_0x3d9b2d=_0x313223['plugins']['get']('TrackChangesEditing'),_0x539de7=_0x313223['plugins']['get']('TableUtils');_0x3d9b2d['descriptionFactory']['registerElementLabel']('table',_0x30fc10=>c(_0x3ad8d9,'ELEMENT_TABLE',_0x30fc10)),this['_setupColumnsRowsFixing'](),_0x3d9b2d['enableCommand']('insertTable'),_0x3d9b2d['enableCommand']('selectTableRow'),_0x3d9b2d['enableCommand']('selectTableColumn');for(const _0x1fb064 of['insertTableRowAbove','insertTableRowBelow']){const _0xeb4974=_0x313223['commands']['get'](_0x1fb064);_0x3d9b2d['enableCommand'](_0x1fb064,_0x14bd83=>{_0x313223['model']['change'](_0x555e0f=>{_0x14bd83();const _0x33bac4='above'===_0xeb4974['order'],_0x5d4700=_0x539de7['getSelectionAffectedTableCells'](_0x2fa294),_0x3676d4=_0x539de7['getRowIndexes'](_0x5d4700),_0xe9caca=_0x33bac4?_0x3676d4['first']-0x1:_0x3676d4['last']+0x1,_0x3a6c42=_0x5d4700[0x0]['findAncestor']('table'),_0x5874a0=_0x539de7['createTableWalker'](_0x3a6c42,{'startRow':_0xe9caca,'endRow':_0xe9caca}),_0x47306b=Array['from'](_0x5874a0)['map'](_0x24a87d=>_0x555e0f['createRangeOn'](_0x24a87d['cell']));_0x3d9b2d['markMultiRangeInsertion'](_0x47306b,'tableRow');});});}for(const _0x313364 of['insertTableColumnLeft','insertTableColumnRight']){const _0xaf96ba=_0x313223['commands']['get'](_0x313364);_0x3d9b2d['enableCommand'](_0x313364,_0x548836=>{_0x313223['model']['change'](_0x4d0d42=>{_0x548836();const _0x3b814b='left'===_0xaf96ba['order'],_0x5a98bb=_0x539de7['getSelectionAffectedTableCells'](_0x2fa294),_0xd2b669=_0x539de7['getColumnIndexes'](_0x5a98bb),_0x1a5860=_0x3b814b?_0xd2b669['first']-0x1:_0xd2b669['last']+0x1,_0x2230f1=_0x5a98bb[0x0]['findAncestor']('table'),_0x222d5e=_0x539de7['createTableWalker'](_0x2230f1,{'startRow':0x0,'column':_0x1a5860,'includeAllSlots':!0x1}),_0x32ae31=Array['from'](_0x222d5e)['map'](_0x4c2ce7=>_0x4d0d42['createRangeOn'](_0x4c2ce7['cell']));_0x3d9b2d['markMultiRangeInsertion'](_0x32ae31,'tableColumn');});});}for(const _0x15271d of['removeTableRow','removeTableColumn']){const _0x282c17=_0x15271d['substr'](0xb),_0x34ea89=_0x282c17['toLowerCase'](),_0x152b84=_0x34ea89['substr'](0x0,0x3)+'span',_0x2262d1='table'+_0x282c17,_0x524b01='min'+_0x282c17,_0x41f798='max'+_0x282c17;_0x3d9b2d['enableCommand'](_0x15271d,()=>{_0x313223['model']['change'](_0x2efc0c=>{const _0x18f4a9=_0x539de7['getSelectionAffectedTableCells'](_0x2fa294),_0x2eee90=_0x18f4a9[0x0]['findAncestor']('table');let _0x437f15;if('removeTableRow'==_0x15271d){const _0x29292e=_0x539de7['getRowIndexes'](_0x18f4a9);_0x437f15={'startRow':_0x29292e['first'],'endRow':_0x29292e['last'],'includeAllSlots':!0x0};}else{const _0x2487e5=_0x539de7['getColumnIndexes'](_0x18f4a9);_0x437f15={'startColumn':_0x2487e5['first'],'endColumn':_0x2487e5['last'],'includeAllSlots':!0x0};}const _0x21a999=_0x539de7['createTableWalker'](_0x2eee90,_0x437f15),_0x233427=Array['from'](_0x21a999)['map'](({cell:_0xcbd202})=>_0xcbd202),_0x166026=xe(_0x233427['filter'](_0x23b839=>_0x23b839['hasAttribute'](_0x152b84))),_0x35982e=xe(_0x233427['filter'](_0x10496c=>!_0x10496c['hasAttribute'](_0x152b84)))['map'](_0x915d90=>_0x2efc0c['createRangeOn'](_0x915d90)),_0x4fd474=_0x3d9b2d['markMultiRangeDeletion'](_0x35982e,_0x2262d1);if(_0x4fd474&&('tableRow'==_0x4fd474['subType']||'tableColumn'==_0x4fd474['subType'])){const _0x44c041=this['_getSuggestionCoords'](_0x4fd474);for(const _0x328835 of _0x166026){const _0x1960f8=_0x2efc0c['createRangeOn'](_0x328835),_0x39448e=_0x539de7['getCellLocation'](_0x328835),_0x4d749f=_0x328835['getAttribute'](_0x152b84)-0x1,_0x1d4b6a=_0x44c041[_0x524b01],_0x368198=_0x44c041[_0x41f798];_0x1d4b6a<=_0x39448e[_0x34ea89]&&_0x39448e[_0x34ea89]+_0x4d749f<=_0x368198&&_0x4fd474['addRange'](_0x1960f8);}}});});}function _0x214851(_0x57cc70){const _0x359dab=Array['from'](_0x2fa294['getRanges']())['map'](_0x44301d=>_0x21cd14['fromRange'](_0x44301d));_0x313223['model']['change'](_0x60d2e3=>{const _0x281262=_0x60d2e3['batch'];_0x57cc70=_0x57cc70['filter'](_0x467c9d=>'$graveyard'!=_0x467c9d['root']['rootName']),_0x60d2e3['setSelection'](_0x57cc70),_0x313223['commands']['get']('removeTableRow')['refresh'](),_0x313223['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x313223['model']['enqueueChange'](()=>{_0x313223['model']['enqueueChange'](_0x281262,_0x565173=>{const _0x3d30d7=_0x359dab['filter'](_0x4d16ee=>'$graveyard'!=_0x4d16ee['root']['rootName']);_0x3d30d7['length']>0x0&&_0x565173['setSelection'](_0x3d30d7);for(const _0x1adf30 of _0x359dab)_0x1adf30['detach']();});});});}function _0x5e9dbe(_0x52eeec){_0x313223['model']['change'](_0x42e7fa=>{const _0x1c2c17=Array['from'](_0x2fa294['getRanges']())['map'](_0x5a70dd=>_0x21cd14['fromRange'](_0x5a70dd)),_0x2abff1=[];for(const _0x522c09 of _0x52eeec)for(const _0x234951 of _0x522c09['getItems']({'shallow':!0x0}))_0x2abff1['push'](_0x234951);for(const _0x580e6c of _0x2abff1)'$graveyard'!=_0x580e6c['root']['rootName']&&(_0x42e7fa['setSelection'](_0x42e7fa['createPositionAt'](_0x580e6c,0x0)),_0x313223['commands']['get']('removeTableColumn')['refresh'](),_0x313223['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xb42a28=_0x1c2c17['filter'](_0x54c749=>'$graveyard'!=_0x54c749['root']['rootName']);_0xb42a28['length']>0x0&&_0x42e7fa['setSelection'](_0xb42a28);for(const _0x4fde99 of _0x1c2c17)_0x4fde99['detach']();});}function _0x1549bf(_0xf009b3,_0x3fc780){return _0x3fc780['every'](_0x234f57=>_0xf009b3['some'](_0x231ea3=>_0x231ea3['end']['isEqual'](_0x234f57['start'])||_0x234f57['end']['isEqual'](_0x231ea3['start'])));}function _0x131311(_0x41bfac,_0x4eb07b){return!_0x41bfac['some'](_0x455b97=>_0x4eb07b['some'](_0xba4010=>_0x455b97['isIntersecting'](_0xba4010)))&&_0x41bfac['some'](_0x5e0ec5=>_0x4eb07b['some'](_0x4c6884=>_0x5e0ec5['end']['isTouching'](_0x4c6884['start'])));}_0x313223['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3955d6,_0x1db31f,_0x2fca8a)=>{if(!_0x2fca8a['options']['showSuggestionHighlights'])return;const _0x3e7047=_0x1db31f['item'];if(!_0x3e7047||!_0x3e7047['is']('element','tableCell'))return;const _0x2a5e82=_0x2fca8a['mapper']['toViewElement'](_0x3e7047);if(_0x2a5e82){const {id:_0x223f1e,authorId:_0x4117b2}=_0x3d9b2d['_splitMarkerName'](_0x1db31f['markerName']);_0xf0eea4(_0x2a5e82,_0x2fca8a['writer'],(_0x47d4f1,_0x37b7b8,_0x4ac785)=>{_0x4ac785['addClass'](_0x2b741c(_0x37b7b8['classes']),_0x47d4f1),_0x4ac785['setAttribute']('data-suggestion-id',_0x223f1e,_0x47d4f1),_0x4ac785['setAttribute']('data-author-id',_0x4117b2,_0x47d4f1);},(_0x13856a,_0x6b4908,_0x1bf48f)=>{_0x1bf48f['removeClass'](_0x2b741c(_0x6b4908['classes']),_0x13856a),_0x1bf48f['removeAttribute']('data-suggestion-id',_0x13856a),_0x1bf48f['removeAttribute']('data-author-id',_0x13856a);});}},{'priority':'highest'}),_0x3d9b2d['descriptionFactory']['registerDescriptionCallback'](_0x826a23=>{if('insertion'!=_0x826a23['type']&&'deletion'!=_0x826a23['type'])return;const _0x2c1709=_0x826a23['getContainedElement']();if(null!=_0x2c1709&&_0x2c1709['is']('element','table')){if('insertion'==_0x826a23['type']){const _0x9f5a31=_0x826a23['getItems']()['filter'](_0x4fdaec=>_0x4fdaec['is']('$textProxy'))['map'](_0x1d5a88=>_0x1d5a88['data']);if(_0x9f5a31['length'])return{'type':'insertion','content':c(_0x3ad8d9,'*Insert:*\x20%0',c(_0x3ad8d9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x9f5a31['join']('\x20')+'\x22'))};}if('deletion'==_0x826a23['type']){const _0x11b02d=_0x826a23['getItems']()['filter'](_0x332b0b=>_0x332b0b['is']('$textProxy'))['map'](_0x260e32=>_0x260e32['data']);if(_0x11b02d['length'])return{'type':'deletion','content':c(_0x3ad8d9,'*Remove:*\x20%0',c(_0x3ad8d9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x11b02d['join']('\x20')+'\x22'))};}}}),_0x3d9b2d['descriptionFactory']['registerDescriptionCallback'](_0x35c502=>{if('tableRow'==_0x35c502['subType']){const _0x1cfc07=_0x35c502['getItems']()['filter'](_0x2602cd=>_0x2602cd['is']('$textProxy'))['map'](_0xb4512e=>_0xb4512e['data']),_0x559b0d=this['_getSuggestionCoords'](_0x35c502),_0x342215=_0x559b0d['maxRow']-_0x559b0d['minRow']+0x1;if('insertion'==_0x35c502['type'])return _0x1cfc07['length']?{'type':'insertion','content':c(_0x3ad8d9,'*Insert:*\x20%0',c(_0x3ad8d9,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x342215,'\x22'+_0x1cfc07['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3ad8d9,'*Insert:*\x20%0',c(_0x3ad8d9,'ELEMENT_TABLE_ROW',_0x342215))};if('deletion'==_0x35c502['type'])return _0x1cfc07['length']?{'type':'deletion','content':c(_0x3ad8d9,'*Remove:*\x20%0',c(_0x3ad8d9,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x342215,'\x22'+_0x1cfc07['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3ad8d9,'*Remove:*\x20%0',c(_0x3ad8d9,'ELEMENT_TABLE_ROW',_0x342215))};}if('tableColumn'==_0x35c502['subType']){const _0x53eae9=_0x35c502['getItems']()['filter'](_0x9247cb=>_0x9247cb['is']('$textProxy'))['map'](_0x49ae72=>_0x49ae72['data']),_0x5ed261=this['_getSuggestionCoords'](_0x35c502),_0x346dea=_0x5ed261['maxColumn']-_0x5ed261['minColumn']+0x1;if('insertion'==_0x35c502['type'])return _0x53eae9['length']?{'type':'insertion','content':c(_0x3ad8d9,'*Insert:*\x20%0',c(_0x3ad8d9,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x346dea,'\x22'+_0x53eae9['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3ad8d9,'*Insert:*\x20%0',c(_0x3ad8d9,'ELEMENT_TABLE_COLUMN',_0x346dea))};if('deletion'==_0x35c502['type'])return _0x53eae9['length']?{'type':'deletion','content':c(_0x3ad8d9,'*Remove:*\x20%0',c(_0x3ad8d9,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x346dea,'\x22'+_0x53eae9['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3ad8d9,'*Remove:*\x20%0',c(_0x3ad8d9,'ELEMENT_TABLE_COLUMN',_0x346dea))};}}),_0x3d9b2d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x214851),_0x3d9b2d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x214851),_0x3d9b2d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5e9dbe),_0x3d9b2d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5e9dbe),_0x3d9b2d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1549bf),_0x3d9b2d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1549bf),_0x3d9b2d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x131311),_0x3d9b2d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x131311);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5ba59f=this['editor'],_0x3d215e=_0x5ba59f['model']['document']['selection'];return(_0x2aaa62,_0x5c95e5)=>{_0x5ba59f['model']['change'](_0x301ff0=>{const {commandName:_0x25717a,commandParams:_0x571dde}=_0x5c95e5;let _0x4d1156=_0x2aaa62[0x0]['end']['nodeBefore'];_0x571dde&&_0x571dde[0x0]&&!0x1===_0x571dde[0x0]['forceValue']&&(_0x4d1156=_0x2aaa62[0x0]['start']['nodeAfter']);const _0x5084b7=_0x301ff0['createRangeIn'](_0x4d1156);if('$graveyard'==_0x5084b7['root']['rootName'])return;const _0x338d09=Array['from'](_0x3d215e['getRanges']())['map'](_0x142cdc=>_0x21cd14['fromRange'](_0x142cdc));_0x301ff0['setSelection'](_0x5084b7),_0x5ba59f['commands']['get'](_0x25717a)['refresh'](),_0x571dde['push']({'forceDefaultExecution':!0x0}),_0x5ba59f['execute'](_0x25717a,..._0x571dde);const _0x4afc03=_0x338d09['filter'](_0x1eed82=>'$graveyard'!=_0x1eed82['root']['rootName']);_0x4afc03['length']>0x0&&_0x301ff0['setSelection'](_0x4afc03);for(const _0x2eabf1 of _0x338d09)_0x2eabf1['detach']();});};}['_getCoordsForCells'](_0x384e83){const _0x3070ce=this['editor']['plugins']['get']('TableUtils');let _0xf7562a=Number['MAX_SAFE_INTEGER'],_0x2d4545=Number['MIN_SAFE_INTEGER'],_0x4b3036=Number['MAX_SAFE_INTEGER'],_0x3e0d3e=Number['MIN_SAFE_INTEGER'];for(const _0xd6065c of _0x384e83){if('$graveyard'==_0xd6065c['root']['rootName'])continue;const {row:_0x48f015,column:_0x39228e}=_0x3070ce['getCellLocation'](_0xd6065c),_0x553330=_0xd6065c['hasAttribute']('rowspan')?_0xd6065c['getAttribute']('rowspan')-0x1:0x0,_0x75d51c=_0xd6065c['hasAttribute']('colspan')?_0xd6065c['getAttribute']('colspan')-0x1:0x0;_0xf7562a=_0x48f015<_0xf7562a?_0x48f015:_0xf7562a,_0x2d4545=_0x48f015+_0x553330>_0x2d4545?_0x48f015+_0x553330:_0x2d4545,_0x4b3036=_0x39228e<_0x4b3036?_0x39228e:_0x4b3036,_0x3e0d3e=_0x39228e+_0x75d51c>_0x3e0d3e?_0x39228e+_0x75d51c:_0x3e0d3e;}return{'minRow':_0xf7562a,'maxRow':_0x2d4545,'minColumn':_0x4b3036,'maxColumn':_0x3e0d3e};}['_setupColumnsRowsFixing'](){const _0x23a218=this['editor'],_0x1dc79b=_0x23a218['plugins']['get']('TrackChangesEditing'),_0x334c55=_0x23a218['plugins']['get']('TableUtils');_0x23a218['model']['document']['on']('change:data',()=>{const _0x15a99a=Array['from'](_0x23a218['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4122a1,data:_0x5da1cf}of _0x15a99a){const {group:_0x32f836,id:_0x4444bf,subType:_0xb680ac}=_0x1dc79b['_splitMarkerName'](_0x4122a1);if('suggestion'!=_0x32f836)continue;if(null!=_0x5da1cf['oldRange'])continue;const _0x1a844c=_0x1dc79b['getSuggestion'](_0x4444bf);this['_tablePostFixingSubtypes']['includes'](_0xb680ac)&&this['_tableSuggestions']['add'](_0x1a844c);}},{'priority':'low'});const _0x1a6808=(_0x3c4fd3,_0xcf974a)=>{let _0x33e6b2=!0x1;const _0x146124=_0xcf974a['createRangeOn'](_0x3c4fd3),_0x5738d8=_0x3c4fd3['findAncestor']('table'),_0x335928=_0x334c55['getCellLocation'](_0x3c4fd3);for(const _0x341ecd of this['_tableSuggestions']){const _0x1fd2c4=_0x341ecd['subType'],_0x5a7f92=_0x1fd2c4['startsWith']('tablePaste'),_0x581d0d=_0x1fd2c4['substr'](_0x5a7f92?0xa:0x5),_0x2b0615=_0x581d0d['toLowerCase'](),_0x14cae4=_0x2b0615['substr'](0x0,0x3)+'span',_0x459f02='min'+_0x581d0d,_0x18b597='max'+_0x581d0d;if(!_0x341ecd['isInContent'])continue;if(_0x5738d8!=_0x341ecd['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x341ecd['isIntersectingWithRange'](_0x146124))continue;const _0x5169eb=_0x3c4fd3['hasAttribute'](_0x14cae4)?_0x3c4fd3['getAttribute'](_0x14cae4)-0x1:0x0,_0x18d30b=this['_getSuggestionCoords'](_0x341ecd),_0x3c8dce=_0x18d30b[_0x459f02],_0x111f39=_0x18d30b[_0x18b597];_0x3c8dce<=_0x335928[_0x2b0615]&&_0x335928[_0x2b0615]+_0x5169eb<=_0x111f39&&(_0x341ecd['addRange'](_0x146124),_0x33e6b2=!0x0);}return _0x33e6b2;};_0x23a218['model']['document']['registerPostFixer'](_0x11fbea=>{let _0x4bc971=!0x1;for(const _0x211ebf of _0x23a218['model']['document']['differ']['getChanges']())if('insert'==_0x211ebf['type']){if('tableRow'==_0x211ebf['name']){for(const _0x4cfecf of _0x211ebf['position']['nodeAfter']['getChildren']())_0x4bc971=_0x4bc971||_0x1a6808(_0x4cfecf,_0x11fbea);}else'tableCell'==_0x211ebf['name']&&(_0x4bc971=_0x4bc971||_0x1a6808(_0x211ebf['position']['nodeAfter'],_0x11fbea));}return _0x4bc971;});}['_getSuggestionCoords'](_0xf71fc3){return this['_getCoordsForCells'](_0xf71fc3['getRanges']()['map'](_0x58cd5e=>_0x58cd5e['start']['nodeAfter']));}}function xe(_0x50e626){return Array['from'](new Set(_0x50e626)['values']());}class Nt extends _0x385d2b{static get['requires'](){return[Ct];}['afterInit'](){const _0x375631=this['editor'],_0x9036f5=_0x375631['model']['document']['selection'],_0x1d343d=_0x375631['locale'];if(!_0x375631['plugins']['has']('TableEditing'))return;const _0x3bf48e=_0x375631['plugins']['get']('TrackChangesEditing'),_0x49bac0=_0x375631['plugins']['get']('TableUtils'),_0x49a123=_0x375631['plugins']['get'](Ct);_0x49a123['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3bf48e['enableCommand']('mergeTableCells',()=>{const _0x360b9f=_0x49bac0['getSelectionAffectedTableCells'](_0x375631['model']['document']['selection']);_0x375631['model']['change'](()=>{_0x3bf48e['markMultiRangeBlockFormat'](_0x360b9f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x375631['commands']['get']('mergeTableCells')['on']('execute',(_0x2558df,_0x1c78bf)=>{_0x375631['commands']['get']('trackChanges')['value']&&(_0x1c78bf['length']>0x0&&_0x1c78bf[_0x1c78bf['length']-0x1]&&_0x1c78bf[_0x1c78bf['length']-0x1]['forceDefaultExecution']||_0x3bf48e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2558df['stop']());},{'priority':'highest'});for(const _0x1136df of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5838f1=_0x375631['commands']['get'](_0x1136df);_0x3bf48e['enableCommand'](_0x1136df,()=>{const _0x239807=_0x375631['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x39a6bb=>_0x39a6bb['is']('element','tableCell')),_0x283a87=_0x5838f1['value'];_0x375631['model']['change'](()=>{_0x3bf48e['markMultiRangeBlockFormat']([_0x239807,_0x283a87],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5bc1a6 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x57ed22=_0x375631['commands']['get'](_0x5bc1a6);_0x3bf48e['enableCommand'](_0x5bc1a6,()=>{const _0x38734f=_0x49bac0['getSelectionAffectedTableCells'](_0x375631['model']['document']['selection'])[0x0],_0xe0ce7=_0x38734f['findAncestor']('table'),{column:_0x5270f0,row:_0x12537f}=_0x49bac0['getCellLocation'](_0x38734f);let _0x3856c1=[];if('horizontally'==_0x57ed22['direction']){const _0x4b8bb5=_0x49bac0['createTableWalker'](_0xe0ce7,{'startRow':_0x12537f,'endRow':_0x12537f,'includeAllSlots':!0x0});_0x3856c1=Array['from'](_0x4b8bb5)['map'](_0x2ff090=>_0x2ff090['cell']);}else{const _0x37a466=_0x49bac0['createTableWalker'](_0xe0ce7,{'column':_0x5270f0,'includeAllSlots':!0x0});_0x3856c1=Array['from'](_0x37a466)['map'](_0x52dadb=>_0x52dadb['cell']);}_0x375631['model']['change'](_0x1c5a35=>{_0x3bf48e['markBlockFormat'](_0x1c5a35['createRangeOn'](_0x38734f),{'commandName':_0x5bc1a6,'commandParams':[]},_0x3856c1,_0x5bc1a6);});});}_0x3bf48e['descriptionFactory']['registerDescriptionCallback'](_0x53d49f=>{if('formatBlock'!=_0x53d49f['type']&&'formatInline'!=_0x53d49f['type'])return;const {data:_0x5662ee}=_0x53d49f;return _0x5662ee&&'mergeTableCells'==_0x5662ee['commandName']?{'type':'format','content':c(_0x1d343d,'*Merge\x20cells*')}:void 0x0;}),_0x3bf48e['descriptionFactory']['registerDescriptionCallback'](_0x23b504=>{if('formatBlock'!=_0x23b504['type']&&'formatInline'!=_0x23b504['type'])return;const {data:_0x17c8fa}=_0x23b504;return _0x17c8fa?'splitTableCellVertically'==_0x17c8fa['commandName']?{'type':'format','content':c(_0x1d343d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x17c8fa['commandName']?{'type':'format','content':c(_0x1d343d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5116de=_0x49a123['_acceptFormatSuggestionCallbackFactory']();for(const _0x53b12b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3bf48e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x53b12b,'accept',_0x5116de);for(const _0x34e48f of['splitTableCellVertically','splitTableCellHorizontally'])_0x3bf48e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x34e48f,'accept',_0x5116de);_0x3bf48e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x20da3f=>{_0x375631['model']['change'](_0x4dfba6=>{const _0x20c5d8=Array['from'](_0x9036f5['getRanges']())['map'](_0x3c1c27=>_0x21cd14['fromRange'](_0x3c1c27));_0x4dfba6['setSelection'](_0x20da3f),_0x375631['commands']['get']('mergeTableCells')['refresh'](),_0x375631['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x23f9f1=_0x20c5d8['filter'](_0x3c58be=>'$graveyard'!=_0x3c58be['root']['rootName']);_0x23f9f1['length']>0x0&&_0x4dfba6['setSelection'](_0x23f9f1);for(const _0x294111 of _0x20c5d8)_0x294111['detach']();});});for(const _0x2c0bd1 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4718bc=_0x375631['commands']['get'](_0x2c0bd1);_0x4718bc['on']('set:isEnabled',(_0x2b0cd5,_0x4c844f,_0x2cdbc1)=>{if(_0x2cdbc1){const _0x110483=_0x375631['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5affe8=>_0x5affe8['is']('element','tableCell'));this['_areMergableCells'](_0x4718bc['value'],_0x110483)||(_0x2b0cd5['return']=!0x1,_0x2b0cd5['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x28ac0c=this['editor']['commands']['get']('mergeTableCells'),_0x42fe85=this['editor']['plugins']['get']('TableUtils');if(!_0x28ac0c['isEnabled'])return!0x1;const _0xca03e8=_0x42fe85['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x34b1f6 of _0xca03e8)for(const _0x6cebf5 of _0xca03e8)if(_0x34b1f6!=_0x6cebf5&&!this['_areMergableCells'](_0x34b1f6,_0x6cebf5))return!0x1;return!0x0;}['_areMergableCells'](_0x2611c3,_0x47000a){const _0x5d7bd3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33c8e1=this['editor']['model']['createRangeOn'](_0x2611c3),_0x3b500c=this['editor']['model']['createRangeOn'](_0x47000a),_0x3d2434=new Set(),_0x158fa8=new Set();for(const _0x37120e of _0x5d7bd3['getSuggestions']())if(('insertion'==_0x37120e['type']||'deletion'==_0x37120e['type']||'mergeTableCells'==_0x37120e['subType'])&&_0x37120e['isInContent']){for(const _0x9dd8de of _0x37120e['getRanges']())_0x9dd8de['containsRange'](_0x33c8e1,!0x0)&&_0x3d2434['add'](_0x37120e['type']+':'+_0x37120e['author']['id']),_0x9dd8de['containsRange'](_0x3b500c,!0x0)&&_0x158fa8['add'](_0x37120e['type']+':'+_0x37120e['author']['id']);}if(_0x3d2434['size']!=_0x158fa8['size'])return!0x1;for(const _0x1ee0b0 of _0x3d2434)if(!_0x158fa8['has'](_0x1ee0b0))return!0x1;return!0x0;}}class Dt extends _0x385d2b{static get['requires'](){return[Ct];}['afterInit'](){const _0xf83df7=this['editor'];if(!_0xf83df7['plugins']['has']('TableEditing'))return;const _0x5e9cf1=_0xf83df7['locale'],_0x104b68=_0xf83df7['plugins']['get']('TrackChangesEditing');_0x104b68['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x104b68['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x104b68['registerBlockAttribute']('headingRows'),_0x104b68['registerBlockAttribute']('headingColumns'),_0x104b68['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x5e9cf1,'FORMAT_HEADER_ROW')),_0x104b68['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x5e9cf1,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4af3d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5245e7=this['editor']['plugins']['get']('TableUtils'),_0x55edf9=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x10011a({showActiveMarker:_0x9b6293=!0x0,setDataAttribute:_0x1f0972=!0x0}={}){return(_0x3fb86f,_0x2b033f,_0xaaf2d4)=>{const {type:_0x274a20,id:_0x199162}=_0x4af3d8['_splitMarkerName'](_0x2b033f['markerName']),_0x10f76f=_0x4af3d8['getSuggestion'](_0x199162),_0x37aa24=_0x10f76f['data'];if('formatBlock'!=_0x10f76f['type']||!_0x37aa24||'setTableColumnHeader'!=_0x37aa24['commandName'])return;if(_0x2b033f['item'])return void _0x3fb86f['stop']();if(!_0xaaf2d4['consumable']['consume'](_0x2b033f['markerRange'],_0x3fb86f['name']))return;const _0x56a9ac=_0x2b033f['markerRange']['start']['nodeAfter'],_0x404d1a=_0x2b033f['markerRange']['end']['nodeBefore'],_0x1865c1=_0x56a9ac['parent']['parent'],{column:_0x3e02fb}=_0x5245e7['getCellLocation'](_0x56a9ac),{column:_0x2ff87a}=_0x5245e7['getCellLocation'](_0x404d1a);for(let _0x5a3f35=_0x3e02fb;_0x5a3f35<=_0x2ff87a;_0x5a3f35++){const _0x2c7869=_0x5245e7['createTableWalker'](_0x1865c1,{'column':_0x5a3f35,'includeAllSlots':!0x1});for(const _0x55a57d of _0x2c7869){const _0x334072=_0x55a57d['cell'],_0x4cd93d=_0xaaf2d4['mapper']['toViewElement'](_0x334072);_0xaaf2d4['writer']['addClass']('ck-suggestion-marker-'+_0x274a20,_0x4cd93d),_0x1f0972&&_0xaaf2d4['writer']['setAttribute']('data-suggestion',_0x199162,_0x4cd93d),_0xaaf2d4['mapper']['bindElementToMarker'](_0x4cd93d,_0x2b033f['markerName']),_0x9b6293&&(_0x4af3d8['activeMarkers']['includes'](_0x2b033f['markerName'])?_0xaaf2d4['writer']['addClass']('ck-suggestion-marker--active',_0x4cd93d):_0xaaf2d4['writer']['removeClass']('ck-suggestion-marker--active',_0x4cd93d));}}};}_0x4af3d8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x55edf9),_0x4af3d8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x55edf9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x10011a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2f3882,_0x121caa,_0x4b2e22)=>{_0x4b2e22['options']['showSuggestionHighlights']&&_0x10011a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2f3882,_0x121caa,_0x4b2e22);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x40949b,_0x9f5e05,_0x1b8327)=>{const {type:_0x1b8119,id:_0x25046e}=_0x4af3d8['_splitMarkerName'](_0x9f5e05['markerName']),_0x1e93ea=_0x4af3d8['getSuggestion'](_0x25046e),_0x396c6b=_0x1e93ea['data'];if('formatBlock'!=_0x1e93ea['type']||!_0x396c6b||'setTableColumnHeader'!=_0x396c6b['commandName'])return;const _0x32084c=_0x1b8327['mapper']['markerNameToElements'](_0x9f5e05['markerName']);if(_0x32084c){for(const _0x471c47 of _0x32084c)_0x1b8327['writer']['removeClass']('ck-suggestion-marker-'+_0x1b8119,_0x471c47),_0x1b8327['writer']['removeClass']('ck-suggestion-marker--active',_0x471c47),_0x1b8327['writer']['removeAttribute']('data-suggestion',_0x471c47),_0x1b8327['mapper']['unbindElementFromMarkerName'](_0x471c47,_0x9f5e05['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dcfd3=this['editor'],_0x118978=_0x3dcfd3['locale'];function _0xd11b10(_0x475821){return{'type':'format','content':c(_0x118978,'*Format:*\x20%0',_0x475821)};}_0x3dcfd3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fe0f4=>{if('formatBlock'!=_0x3fe0f4['type'])return;const {data:_0x1222b7}=_0x3fe0f4;if(_0x1222b7){if('setTableRowHeader'==_0x1222b7['commandName']){const _0x49a2d2=_0x1222b7['commandParams'][0x0]['forceValue'];return _0xd11b10(c(_0x118978,_0x49a2d2?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1222b7['commandName']){const _0x1090b6=_0x1222b7['commandParams'][0x0]['forceValue'];return _0xd11b10(c(_0x118978,_0x1090b6?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x385d2b{['afterInit'](){const _0x540d6b=this['editor'],_0x36c357=_0x540d6b['locale'],_0x54d1bf=_0x540d6b['plugins']['get']('TrackChangesEditing');function _0x474127(_0x332ba0){return{'type':'format','content':''+c(_0x36c357,'*Set\x20table\x20type:*\x20%0',_0x332ba0)};}_0x540d6b['plugins']['has']('TableLayout')&&(_0x54d1bf['enableCommand']('insertTableLayout'),_0x54d1bf['enableDefaultAttributesIntegration']('tableType'),_0x54d1bf['registerBlockAttribute']('tableType'),_0x54d1bf['descriptionFactory']['registerElementLabel'](_0x5eff0b=>_0x5eff0b['is']('element','table')&&'layout'===_0x5eff0b['getAttribute']('tableType'),_0x31d935=>c(_0x36c357,'ELEMENT_LAYOUT_TABLE',_0x31d935)),_0x54d1bf['descriptionFactory']['registerDescriptionCallback'](_0x1c6789=>{const {data:_0x29448d}=_0x1c6789;if(_0x29448d&&'tableType'==_0x29448d['key'])switch(_0x29448d['newValue']){case'layout':return _0x474127(c(_0x36c357,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x474127(c(_0x36c357,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x3b9fbd=>[_0x3b9fbd,null]));class $t extends _0x385d2b{static get['requires'](){return[Ct];}['afterInit'](){const _0x4e5609=this['editor'];if(!_0x4e5609['plugins']['has']('TableClipboard'))return;const _0x273c04=_0x4e5609['plugins']['get']('TrackChangesEditing'),_0x1208d8=_0x4e5609['plugins']['get']('TableUtils'),_0x5c9b08=_0x4e5609['plugins']['get'](Ct),_0x3d926e=_0x4e5609['plugins']['get']('TableClipboard'),_0x2c293f=_0x4e5609['plugins']['get']('TableSelection'),_0x18abc2=_0x4e5609['plugins']['get'](_0x370390);_0x5c9b08['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4e5609['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4e5609['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3d242c=null,_0x15267f=!0x1;_0x18abc2['on']('contentInsertion',(_0x14e1e4,_0x1e782f)=>{_0x15267f='paste'===_0x1e782f['method'];}),_0x4e5609['model']['on']('insertContent',(_0x25b908,_0x41931c)=>{if(!_0x15267f&&null===_0x2c293f['getSelectedTableCells']())return;const [_0x4a3eda,_0x94cf6f]=_0x41931c,_0x532639=_0x41931c[_0x41931c['length']-0x1];_0x532639&&_0x532639['forceDefaultExecution']||_0x273c04['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x40eea1,_0x5da95e,_0x39037d,_0x1b841b,_0x3b5650){if(_0x5da95e&&!_0x5da95e['is']('documentSelection'))return!0x1;const _0x3092ae=_0x3b5650['getTableIfOnlyTableInContent'](_0x40eea1,_0x39037d);if(!_0x3092ae||!He(_0x3092ae,void 0x0,_0x1b841b))return!0x1;const _0x43e857=_0x1b841b['getSelectionAffectedTableCells'](_0x39037d['document']['selection']);if(!_0x43e857['length'])return!0x1;const _0x133d01=_0x43e857[0x0]['findAncestor']('table'),_0x3568c9=_0x1b841b['getRowIndexes'](_0x43e857),_0x5c1d14=_0x1b841b['getColumnIndexes'](_0x43e857),_0x58520a={'startRow':_0x3568c9['first'],'endRow':_0x3568c9['last'],'startColumn':_0x5c1d14['first'],'endColumn':_0x5c1d14['last']};return 0x1==_0x43e857['length']&&(_0x58520a['endRow']+=_0x1b841b['getRows'](_0x3092ae)-0x1,_0x58520a['endColumn']+=_0x1b841b['getColumns'](_0x3092ae)-0x1),He(_0x133d01,_0x58520a,_0x1b841b);}(_0x4a3eda,_0x94cf6f,_0x4e5609['model'],_0x1208d8,_0x3d926e)&&(_0x25b908['stop'](),_0x3d242c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4e5609['model']['change'](()=>{_0x4e5609['model']['insertContent'](_0x41931c[0x0],_0x41931c[0x1],_0x41931c[0x2],{'forceDefaultExecution':!0x0});const _0x212a87=_0x38a072(),{rowInsertionRanges:_0x56c762,columnInsertionRanges:_0x1ebf5e,insertionRanges:_0x3305cb,deletionRanges:_0x96887a,cells:_0x7063e9}=_0x3d242c;_0x56c762['length']&&_0x273c04['markMultiRangeInsertion'](_0x56c762,'tablePasteRow',{'tablePasteChainId':_0x212a87}),_0x1ebf5e['length']&&_0x273c04['markMultiRangeInsertion'](_0x1ebf5e,'tablePasteColumn',{'tablePasteChainId':_0x212a87}),_0x3305cb['length']&&(_0x273c04['markMultiRangeInsertion'](_0x3305cb,'tablePaste',{'tablePasteChainId':_0x212a87,'skipNestingCheck':!0x0}),_0x3305cb['forEach'](_0x412c73=>_0x412c73['detach']?.())),_0x96887a['length']&&(_0x273c04['markMultiRangeDeletion'](_0x96887a,'tablePaste',{'tablePasteChainId':_0x212a87,'skipNestingCheck':!0x0}),_0x96887a['forEach'](_0x1d20f7=>_0x1d20f7['detach']?.()));const _0x30f7e6=_0x273c04['markMultiRangeBlockFormat'](_0x7063e9['map'](({element:_0x216226})=>_0x216226),{'formatGroupId':_0x38a072()},[],'tablePasteCell',{'tablePasteChainId':_0x212a87});if(_0x30f7e6){const _0x5384c7=_0x30f7e6['getMarkers'](),_0x179c28=[];for(const {element:_0x358d72,attributes:_0x4479a9}of _0x7063e9){if(!_0x4479a9)continue;const _0x260086=_0x4e5609['model']['createRangeOn'](_0x358d72),_0x117006=_0x5384c7['find'](_0x2ae314=>_0x2ae314['getRange']()['isEqual'](_0x260086));_0x117006&&_0x179c28['push']([_0x117006['name'],_0x4479a9]);}_0x179c28['length']&&_0x30f7e6['setAttribute']('markerAttributes',Object['fromEntries'](_0x179c28));}_0x3d242c=null;}));},{'priority':_0x1dda41['high']+0xa}),_0x18abc2['on']('contentInsertion',()=>{_0x15267f=!0x1;},{'priority':'lowest'}),_0x4e5609['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x14730b,_0x4730f0)=>{const [_0x26591a,_0x11d45f,,_0x520dee]=_0x4730f0;if(!_0x3d242c)return;_0x14730b['stop']();const _0x374cee=_0x26591a['cell'],_0x1c351f=_0x11d45f,_0x1cb2ed=De(_0x374cee),_0x1ccb62=De(_0x1c351f);_0x14730b['return']=_0x374cee;let _0x196fd4=null,_0x3e4ae0=null;if(_0x1ccb62||_0x1cb2ed){if(_0x1cb2ed&&!_0x1ccb62){_0x520dee['remove'](_0x374cee['getChild'](0x0));for(const _0x238bc0 of Array['from'](_0x1c351f['getChildren']()))_0x520dee['insert'](_0x238bc0,_0x374cee,'end');const _0xaded18=_0x3d242c['rowInsertionIndexes']['includes'](_0x26591a['row']),_0x3def83=_0x3d242c['columnInsertionIndexes']['includes'](_0x26591a['column']);_0xaded18||_0x3def83||(_0x196fd4=_0x21cd14['fromRange'](_0x520dee['createRangeIn'](_0x374cee)));}else _0x1ccb62&&!_0x1cb2ed&&(_0x3e4ae0=_0x520dee['createRangeIn'](_0x374cee));}else{const _0x180fba=_0x520dee['createElement']('tableCellSuggestion'),_0x3b9170=_0x520dee['createElement']('tableCellSuggestion');_0x520dee['wrap'](_0x520dee['createRangeIn'](_0x374cee),_0x3b9170),_0x520dee['insert'](_0x180fba,_0x374cee,0x0);for(const _0x5ac74e of Array['from'](_0x1c351f['getChildren']()))_0x520dee['insert'](_0x5ac74e,_0x180fba,'end');_0x196fd4=_0x21cd14['fromRange'](_0x520dee['createRangeOn'](_0x180fba)),_0x3e4ae0=_0x21cd14['fromRange'](_0x520dee['createRangeOn'](_0x3b9170));}const _0x1b91dc=Array['from'](_0x1c351f['getAttributes']())['filter'](([_0x1c352f])=>Oe['includes'](_0x1c352f));_0x3d242c['cells']['push']({'element':_0x374cee,'attributes':_0x1b91dc['length']?Object['fromEntries'](_0x1b91dc):null}),_0x196fd4&&_0x3d242c['insertionRanges']['push'](_0x196fd4),_0x3e4ae0&&_0x3d242c['deletionRanges']['push'](_0x3e4ae0);},{'priority':'high'}),_0x1208d8['on']('insertColumns',(_0x5ec0b4,_0x3a83e9)=>{const [_0x11baf6,_0x4dd8b4={}]=_0x3a83e9;if(!_0x3d242c)return;const _0xfc0282=_0x4dd8b4['at']||0x0,_0x9e8e81=_0x4dd8b4['columns']||0x1;_0x3d242c['columnInsertionIndexes']=new Array(_0x9e8e81)['fill'](_0xfc0282)['map']((_0x2a4ec1,_0x54083b)=>_0x2a4ec1+_0x54083b);for(const {cell:_0x5e2f15}of _0x1208d8['createTableWalker'](_0x11baf6,{'startColumn':_0xfc0282,'endColumn':_0xfc0282+_0x9e8e81-0x1}))_0x3d242c['columnInsertionRanges']['push'](_0x4e5609['model']['createRangeOn'](_0x5e2f15));},{'priority':'low'}),_0x1208d8['on']('insertRows',(_0x477c81,_0x31ba73)=>{const [_0x2d31ed,_0x509640={}]=_0x31ba73;if(!_0x3d242c)return;const _0x15e9ba=_0x509640['at']||0x0,_0x2441b9=_0x509640['rows']||0x1;_0x3d242c['rowInsertionIndexes']=new Array(_0x2441b9)['fill'](_0x15e9ba)['map']((_0x23778b,_0xc12454)=>_0x23778b+_0xc12454);for(const {cell:_0x12c58c}of _0x1208d8['createTableWalker'](_0x2d31ed,{'startRow':_0x15e9ba,'endRow':_0x15e9ba+_0x2441b9-0x1}))_0x3d242c['rowInsertionRanges']['push'](_0x4e5609['model']['createRangeOn'](_0x12c58c));},{'priority':'low'}),_0x273c04['descriptionFactory']['registerDescriptionCallback'](_0x35f46c=>{if(_0x35f46c['subType']&&_0x35f46c['subType']['startsWith']('tablePaste'))return _0x35f46c['previous']?{}:{'type':'insertion','content':c(_0x4e5609['locale'],'*Replace\x20table\x20cells*')};});const _0x5c72f1=()=>!0x1;for(const _0xad034a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x273c04['_suggestionFactory']['registerCustomCallback']('insertion',_0xad034a,'join',_0x5c72f1),_0x273c04['_suggestionFactory']['registerCustomCallback']('deletion',_0xad034a,'join',_0x5c72f1),_0x273c04['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xad034a,'join',_0x5c72f1);_0x273c04['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5c72f1),_0x273c04['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x454bb5,_0x201568,_0x119fa0)=>{const _0x3862c3=_0x454bb5['map'](_0x3c41dd=>_0x3c41dd['getContainedElement']())['filter'](_0x2bf0d9=>_0x2bf0d9),_0x4fdcff=new Map(_0x3862c3['map'](_0x36810a=>[_0x36810a,null]));if(_0x3d242c){for(const {element:_0x495977,attributes:_0x418b13}of _0x3d242c['cells'])_0x418b13&&_0x4fdcff['set'](_0x495977,_0x418b13);}else{if(_0x119fa0&&_0x119fa0['markerAttributes'])for(const [_0x22ec0f,_0x714ac0]of Object['entries'](_0x119fa0['markerAttributes'])){const _0x5ba4e2=_0x4e5609['model']['markers']['get'](_0x22ec0f),_0x13ab80=_0x5ba4e2?_0x5ba4e2['getRange']()['getContainedElement']():null;_0x13ab80&&_0x4fdcff['set'](_0x13ab80,_0x714ac0);}}_0x4e5609['model']['change'](_0x59409b=>{for(const [_0x37b3c1,_0xa21af0]of _0x4fdcff)_0x59409b['setAttributes']({...Ue,..._0xa21af0},_0x37b3c1);});});const _0xbe68c6=(_0x18f225,_0xb884a1)=>{_0x273c04['_suggestionFactory']['registerCustomCallback'](_0x18f225,'tablePaste',_0xb884a1,(_0xd3a8b6,_0x261537,_0x52df91)=>{_0x4e5609['model']['change'](_0x138b71=>{const _0x186c93=[];for(const _0x314fc5 of _0xd3a8b6){const _0x3cc6d7=_0x314fc5['start']['nodeAfter'];_0x3cc6d7['is']('element','tableCellSuggestion')&&_0x186c93['push'](_0x3cc6d7);}_0x273c04['_suggestionFactory']['getSuggestionCallback'](_0x18f225,null,_0xb884a1)(_0xd3a8b6,_0x261537,_0x52df91);for(const _0x4ad6eb of _0x186c93)'$graveyard'!=_0x4ad6eb['root']['rootName']&&_0x138b71['unwrap'](_0x4ad6eb);});});};_0xbe68c6('insertion','accept'),_0xbe68c6('insertion','discard'),_0xbe68c6('deletion','accept'),_0xbe68c6('deletion','discard'),_0x273c04['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x337d56=>{const _0x223e88=_0x337d56['map'](_0x4f3a10=>_0x4f3a10['getContainedElement']()),_0x3de16e=_0x223e88[0x0]['findAncestor']('table'),{minRow:_0x5ebfed,maxRow:_0x5dfa27}=_0x5c9b08['_getCoordsForCells'](_0x223e88);_0x1208d8['removeRows'](_0x3de16e,{'at':_0x5ebfed,'rows':_0x5dfa27-_0x5ebfed+0x1});}),_0x273c04['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x421c34=>{const _0x4d7292=_0x421c34['map'](_0xc08bda=>_0xc08bda['getContainedElement']()),_0x5a5778=_0x4d7292[0x0]['findAncestor']('table'),{minColumn:_0x85e3cb,maxColumn:_0x4cbe9c}=_0x5c9b08['_getCoordsForCells'](_0x4d7292);_0x1208d8['removeColumns'](_0x5a5778,{'at':_0x85e3cb,'columns':_0x4cbe9c-_0x85e3cb+0x1});});const _0x520841=(_0x3bfbf9,_0x1674b3)=>{if(!_0x1674b3['subType']||!_0x1674b3['subType']['startsWith']('tablePaste'))return;const _0x3799ad=_0x1674b3['attributes']['tablePasteChainId'],_0x5d1051=_0x273c04['getSuggestions']()['filter'](_0x35b561=>_0x35b561['isInContent']&&_0x35b561['attributes']&&_0x35b561['attributes']['tablePasteChainId']==_0x3799ad);_0x5d1051['length']&&_0x1674b3['getAllAdjacentSuggestions']()['length']!=_0x5d1051['length']&&_0x5d1051['reduce']((_0x3f6efa,_0x385d4c)=>(_0x3f6efa['next']=_0x385d4c,_0x385d4c['previous']=_0x3f6efa,_0x385d4c));};function _0x3ed738(_0x1727a0,_0x2c75c9=!0x0){const {id:_0x47f080,authorId:_0x30ea25}=_0x273c04['_splitMarkerName'](_0x1727a0['markerName']),_0x113a1a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x26ea93=_0x273c04['activeMarkers']['includes'](_0x1727a0['markerName']);return _0x26ea93&&_0x113a1a['push']('ck-suggestion-marker--active'),{'classes':_0x113a1a,'attributes':{'data-suggestion':_0x47f080,'data-author-id':_0x30ea25},'priority':_0x26ea93&&_0x2c75c9?0xbc2:0xbb8};}_0x273c04['on']('suggestionLoaded',_0x520841,{'priority':'high'}),_0x273c04['on']('suggestionUnloaded',_0x520841,{'priority':'high'}),_0x4e5609['model']['document']['registerPostFixer'](()=>{let _0x14d353=!0x1;const _0x5eaffe=Array['from'](_0x4e5609['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1dda72,data:_0x3d9c37}of _0x5eaffe){const {group:_0x3abd27,type:_0xfeed39,id:_0x1057c7}=_0x273c04['_splitMarkerName'](_0x1dda72);if('suggestion'!=_0x3abd27||'deletion'!=_0xfeed39||_0x3d9c37['oldRange'])continue;if(!_0x273c04['hasSuggestion'](_0x1057c7))continue;const _0x1d7fc6=_0x273c04['getSuggestion'](_0x1057c7)['getRanges'](),_0x2f4c31=_0x4e5609['plugins']['get']('Users')['me'];for(const _0x5eb461 of _0x273c04['getSuggestions']()){if(!_0x5eb461['isInContent']||_0x5eb461['author']!=_0x2f4c31)continue;if('formatBlock'!=_0x5eb461['type']||'tablePasteCell'!=_0x5eb461['subType'])continue;if(_0x5eb461['getRanges']()['every'](_0x3ad9e4=>_0x1d7fc6['some'](_0x55550=>_0x55550['containsRange'](_0x3ad9e4,!0x0)))){for(const _0x5ce891 of _0x5eb461['getAllAdjacentSuggestions']())_0x5ce891['isInContent']&&(_0x5ce891['discard'](),_0x14d353=!0x0);}}}return _0x14d353;}),_0x4e5609['model']['document']['registerPostFixer'](_0x54968f=>{const _0x3c443d=_0x4e5609['commands']['get']('redo');if(!_0x3c443d||!_0x3c443d['_createdBatches']['has'](_0x54968f['batch']))return!0x1;let _0x5635c0=!0x1;const _0x3161ac=_0x4e5609['plugins']['get']('Users')['me'],_0x88631=_0x4e5609['model']['document']['differ']['getChanges'](),_0x18bcc1=Array['from'](_0x4e5609['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x43ab9f,data:_0x3b7850})=>{const {group:_0x487c0e,subType:_0x316110,authorId:_0x4764c6}=_0x273c04['_splitMarkerName'](_0x43ab9f);return'suggestion'==_0x487c0e&&'tablePaste'==_0x316110&&_0x4764c6==_0x3161ac['id']&&!_0x3b7850['oldRange'];});for(const _0x1e73e7 of _0x88631){if('insert'!=_0x1e73e7['type']||'tableCellSuggestion'!=_0x1e73e7['name']||0x1!=_0x1e73e7['length'])continue;const _0xcb635=_0x54968f['createRange'](_0x1e73e7['position'],_0x1e73e7['position']['getShiftedBy'](0x1));if(!_0x18bcc1['find'](({data:_0x17beff})=>_0x17beff['newRange']['isEqual'](_0xcb635))){for(const {name:_0x2fe70a,data:_0x55875c}of _0x18bcc1)if(_0xcb635['containsRange'](_0x55875c['newRange'])){_0x54968f['updateMarker'](_0x2fe70a,{'range':_0xcb635}),_0x5635c0=!0x0;break;}}}return _0x5635c0;}),_0x4e5609['model']['document']['registerPostFixer'](_0x114939=>{let _0x204508=!0x1;const _0x4b784b=_0x4e5609['plugins']['get']('Users')['me'],_0xf772dd=_0x273c04['getSuggestions']()['filter'](_0x4434c4=>_0x4434c4['isInContent']&&_0x4434c4['author']==_0x4b784b),_0x396ac0=new Set(),_0x3eab20=new Set();for(const _0x48f4cf of _0xf772dd)if('tablePaste'==_0x48f4cf['subType'])for(const _0x25c8aa of _0x48f4cf['getMarkers']()){const _0x2f9489=_0x25c8aa['getRange']()['getContainedElement']();if(_0x2f9489){if(_0x2f9489['is']('element','tableCellSuggestion')&&De(_0x2f9489)){_0x48f4cf['removeMarker'](_0x25c8aa['name']),_0x396ac0['add'](_0x2f9489),_0x204508=!0x0;const _0x57eb56=_0x2f9489['nextSibling'],_0x31f60c=_0x2f9489['previousSibling'],_0x29163f=_0x57eb56&&_0x57eb56['is']('element','tableCellSuggestion'),_0x3d839c=_0x31f60c&&_0x31f60c['is']('element','tableCellSuggestion');_0x29163f&&!_0x396ac0['has'](_0x57eb56)&&_0x3eab20['add'](_0x57eb56),_0x3d839c&&!_0x396ac0['has'](_0x31f60c)&&_0x3eab20['add'](_0x31f60c);}else _0x2f9489['is']('element','paragraph')&&_0x2f9489['isEmpty']&&(_0x48f4cf['removeMarker'](_0x25c8aa['name']),_0x204508=!0x0);}}else{if('tablePasteCell'==_0x48f4cf['subType']){if(!_0x48f4cf['attributes']||!_0x48f4cf['attributes']['tablePasteChainId'])continue;const _0x356a43=_0x48f4cf['attributes']['markerAttributes'];if(_0x356a43&&Object['keys'](_0x356a43)['length'])continue;const _0x28d385=_0x48f4cf['attributes']['tablePasteChainId'];let _0x3ed9d9=!0x0,_0x324ccf=!0x0;for(const _0x23faa1 of _0xf772dd)if(_0x23faa1['subType']&&_0x23faa1['subType']['startsWith']('tablePaste')){if(!_0x23faa1['attributes']['tablePasteChainId']){_0x324ccf=!0x1;break;}if(_0x23faa1['id']!=_0x48f4cf['id']&&_0x23faa1['attributes']['tablePasteChainId']==_0x28d385){_0x3ed9d9=!0x1;break;}}_0x324ccf&&_0x3ed9d9&&(_0x48f4cf['removeMarkers'](),_0x204508=!0x0);}}for(const _0x4613e7 of _0x396ac0)_0x114939['remove'](_0x4613e7);for(const _0x112d60 of _0x3eab20)_0x114939['unwrap'](_0x112d60);return _0x204508;}),_0x4e5609['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4cd4e1=>_0x3ed738(_0x4cd4e1),'converterPriority':'high'}),_0x4e5609['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1f54ba,_0x2a780e)=>_0x2a780e['options']['showSuggestionHighlights']?_0x3ed738(_0x1f54ba,!0x1):null,'converterPriority':'high'});const _0x5288bf=_0x4e5609['editing']['view'];this['listenTo'](_0x5288bf['document'],'clipboardOutput',(_0x222eb2,_0x3c5cfd)=>{const _0x426759=[];for(const _0x5a9e21 of _0x5288bf['createRangeIn'](_0x3c5cfd['content'])['getItems']())_0x5a9e21['is']('element','suggestion-td')&&_0x426759['push'](_0x5a9e21);_0x5288bf['change'](_0x3ab0e6=>{for(const _0x190f43 of _0x426759)_0x3ab0e6['move'](_0x3ab0e6['createRangeIn'](_0x190f43),_0x3ab0e6['createPositionBefore'](_0x190f43)),_0x3ab0e6['remove'](_0x190f43);});});}}function De(_0x4ce84f){if(_0x4ce84f['isEmpty'])return!0x0;const _0x588cc5=_0x4ce84f['getChild'](0x0);return _0x588cc5['is']('element','paragraph')&&_0x588cc5['isEmpty'];}function He(_0x4d4095,_0x8e281f={},_0x5acac3){for(const {isAnchor:_0x2928fa,cellHeight:_0x5dfd48,cellWidth:_0x385802}of _0x5acac3['createTableWalker'](_0x4d4095,{'includeAllSlots':!0x0,..._0x8e281f}))if(!_0x2928fa||0x1!=_0x5dfd48||0x1!=_0x385802)return!0x1;return!0x0;}class Bt extends _0x385d2b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x14b58c=this['editor']['plugins']['get']('TrackChangesEditing');_0x14b58c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x14b58c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x14b58c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x14b58c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x14b58c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x14b58c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1fd02d,_0x1e177c){const _0x1cb7f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12d557=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xc5e915=_0x1e177c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1f58f2=_0x12d557['getColumnGroupElement'](_0xc5e915);let _0x71ff71=_0x1f58f2?_0x12d557['getTableColumnsWidths'](_0x1f58f2):null,_0x32e8aa=_0xc5e915['getAttribute']('tableWidth')||null;const _0x5a5c7f=_0x1e177c['tableWidth']||_0x32e8aa,_0x1d112f=_0x1e177c['columnWidths']||_0x71ff71,_0x4f4eee=this['editor']['plugins']['get']('Users')['me'];for(const _0x467fc2 of _0x1cb7f0['getSuggestions']()){const _0x1cf228=_0x467fc2['getContainedElement']();if('resizeTable'===_0x467fc2['subType']&&_0x1cf228===_0xc5e915){_0x467fc2['author']!==_0x4f4eee&&_0x467fc2['discard']();const _0x130a42=_0x467fc2['data']['commandParams'];_0x32e8aa=_0x130a42[0x0]['tableWidth'],_0x71ff71=_0x130a42[0x0]['columnWidths'];break;}}_0x1fd02d({'table':_0xc5e915,'tableWidth':_0x5a5c7f,'columnWidths':_0x1d112f}),_0x1cb7f0['markBlockFormat'](_0xc5e915,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x32e8aa,'columnWidths':_0x71ff71}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4f559c){if('formatBlock'!=_0x4f559c['type']&&'formatInline'!=_0x4f559c['type'])return;const {data:_0x28ce7e}=_0x4f559c;if(_0x28ce7e&&'resizeTable'===_0x28ce7e['formatGroupId']){const _0x2c1a05='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x2c1a05)};}}}class xt extends _0x385d2b{['afterInit'](){const _0x458867=this['editor'];_0x458867['plugins']['has']('Template')&&_0x458867['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x385d2b{['afterInit'](){const _0x5d6407=this['editor'];if(!_0x5d6407['commands']['get']('insertTableOfContents'))return;_0x5d6407['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x685cf5=_0x5d6407['plugins']['get']('TrackChangesEditing'),_0x19e103=_0x5d6407['locale'];_0x685cf5['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4cfcc0=>c(_0x19e103,'ELEMENT_TABLE_OF_CONTENTS',_0x4cfcc0));}}class Rt extends _0x385d2b{['afterInit'](){const _0x4aaa21=this['editor'];if(!_0x4aaa21['plugins']['has']('Title'))return;const _0x142605=_0x4aaa21['plugins']['get']('TrackChangesEditing');_0x142605['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x4aaa21['locale'],'ELEMENT_TITLE')),_0x4aaa21['model']['document']['registerPostFixer'](_0xc9aa50=>{let _0x47536e=!0x1;const _0x555d2f=Array['from'](_0x4aaa21['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x427ff1,data:_0x14350b}of _0x555d2f){const {group:_0x3ec101}=_0x142605['_splitMarkerName'](_0x427ff1);if('suggestion'!==_0x3ec101||!_0x14350b['newRange'])continue;const _0x2a80b0=_0x14350b['newRange'],_0x297752=_0x2a80b0['end']['nodeBefore'];if(!_0x297752||!_0x297752['is']('element','title-content'))continue;if(!_0x2a80b0['start']['isTouching'](_0x2a80b0['end']))continue;const _0x121381=_0x4aaa21['model']['schema']['getNearestSelectionRange'](_0x2a80b0['end'],'forward');if(_0x121381&&_0x121381['isCollapsed']){const _0xa3159=_0xc9aa50['createRange'](_0x2a80b0['start'],_0x121381['start']);_0xa3159['isEqual'](_0x2a80b0)||(_0xc9aa50['updateMarker'](_0x427ff1,{'range':_0xa3159}),_0x47536e=!0x0);}_0x47536e||(_0xc9aa50['removeMarker'](_0x427ff1),_0x47536e=!0x0);}return _0x47536e;});}}class Tt extends _0x385d2b{['afterInit'](){const _0xfe4153=this['editor'],_0x28df36=_0xfe4153['plugins']['get']('TrackChangesEditing');_0xfe4153['plugins']['has']('Uploadcare')&&(_0x28df36['enableCommand']('uploadcare'),_0xfe4153['plugins']['has']('UploadcareImageEdit')&&(_0x28df36['enableCommand']('uploadcareImageEdit'),_0x28df36['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x28df36['registerBlockAttribute']('uploadcareImageId'),_0x28df36['descriptionFactory']['registerDescriptionCallback'](_0x2c5272=>{if('attribute'!=_0x2c5272['type'])return;const {data:_0x4ae55e}=_0x2c5272;return _0x4ae55e&&'uploadcareImageId'==_0x4ae55e['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x385d2b{['afterInit'](){const _0x2257a9=this['editor'],_0x49269b=_0x2257a9['plugins']['get']('TrackChangesEditing');_0x2257a9['plugins']['has']('UndoEditing')&&(_0x49269b['enableCommand']('undo'),_0x49269b['enableCommand']('redo'));}}class Ut extends _0x385d2b{static get['requires'](){return[Ct];}['afterInit'](){const _0x5c867b=this['editor'];if(!_0x5c867b['plugins']['has']('TableCaptionEditing'))return;_0x5c867b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x385d2b{['tableProperties'];['tableCellProperties'];constructor(_0x5f0f5f){super(_0x5f0f5f),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 _0x22dd69=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x20bf34 of this['tableProperties'])_0x22dd69['enableCommand'](_0x20bf34,(_0x5d15d1,_0x393db1)=>{const _0xc5b085=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x20bf34,[_0xc5b085],this['tableProperties'],'tableProperties',_0x5d15d1,_0x393db1);});_0x22dd69['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x22dd69['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x22dd69['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3bdb10,_0x259c8e)=>this['handleDiscardAction'](this['tableProperties'],_0x3bdb10,_0x259c8e)),_0x22dd69['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x74ab8e of this['tableCellProperties'])_0x22dd69['enableCommand'](_0x74ab8e,(_0x106785,_0x418484)=>{const _0x24b025=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x74ab8e,_0x24b025,this['tableCellProperties'],'tableCellProperties',_0x106785,_0x418484);});_0x22dd69['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x22dd69['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x22dd69['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x229358,_0xf6d8e1)=>this['handleDiscardAction'](this['tableCellProperties'],_0x229358,_0xf6d8e1)),_0x22dd69['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x22dd69['descriptionFactory']['registerDescriptionCallback'](_0x1304d9=>this['handleSuggestionDescription'](_0x1304d9));}['_handlePropertyChange'](_0x23f52a,_0x3911d3,_0x3aa33b,_0x266a4c,_0x103904,_0x35fd6e){const _0x53c23e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x35fd6e['batch'],()=>{for(const _0x9ccd7c of _0x3911d3){if(this['_getSuggestion'](_0x9ccd7c,_0x266a4c))_0x103904(_0x35fd6e);else{const _0x1842ed={};for(const _0x2cfe40 of _0x3aa33b){const _0x1cc50a=_0x9ccd7c['getAttribute'](_0x2cfe40);void 0x0!==_0x1cc50a&&(_0x1842ed[_0x2cfe40]=_0x1cc50a);}_0x103904(_0x35fd6e),_0x53c23e['markBlockFormat'](_0x9ccd7c,{'commandParams':[_0x1842ed]},[],_0x266a4c);}}});}['handleDiscardAction'](_0x3a5504,_0x42dd32,_0x551637){const _0x16aded=_0x42dd32[0x0]['start']['nodeAfter'],_0x41b2e1=_0x551637['commandParams'][0x0];this['editor']['model']['change'](_0x451d31=>{for(const _0x31c142 of _0x3a5504)void 0x0!==_0x41b2e1[_0x31c142]?_0x451d31['setAttribute'](_0x31c142,_0x41b2e1[_0x31c142],_0x16aded):_0x451d31['removeAttribute'](_0x31c142,_0x16aded);});}['handleSuggestionDescription'](_0x1f7f0c){if(_0x1f7f0c['data'])switch(_0x1f7f0c['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'](_0x17b973,_0xbc8ceb){const _0x1aa623=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2840ed of _0x1aa623['getSuggestions']({'skipNotAttached':!0x0})){const _0x4bc712=_0x2840ed['getContainedElement']();if(_0x2840ed['subType']===_0xbc8ceb&&_0x4bc712===_0x17b973)return _0x2840ed;}return null;}}const u='$elementName';class p extends _0x385d2b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x147b02,_0x1120b7,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4440f9){super(_0x4440f9),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x461daf,_0xd7be2e,_0x3b3a64,_0x2a360b)=>{this['_model']['change'](()=>{for(const _0x3b16fb of[..._0x2a360b,..._0x3b3a64])this['_model']['markers']['has'](_0x3b16fb)&&_0x4440f9['editing']['reconvertMarker'](_0x3b16fb);});}),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']=_0x4440f9['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(),_0x4440f9['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4440f9['config']['get']('trackChanges.trackFormatChanges'),_0x4440f9['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4440f9['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4440f9,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1cbd95=this['editor'],_0x26190f=(_0x38da71,_0x52d281)=>{if('attribute'!=_0x38da71)return'ck-suggestion-marker-'+_0x38da71;const _0x15ec9e=_0x52d281['split']('|')[0x0];return this['_isBlockAttribute'](_0x15ec9e)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1cbd95['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x483baf=>{const {id:_0x38e942,authorId:_0x53ff6c,type:_0x634380,subType:_0x157a90}=this['_splitMarkerName'](_0x483baf['markerName']),_0x47efb0=['ck-suggestion-marker',_0x26190f(_0x634380,_0x157a90)];let _0x50960e=0xbb8;return this['activeMarkers']['includes'](_0x483baf['markerName'])&&(_0x47efb0['push']('ck-suggestion-marker--active'),_0x50960e=0xbc2),'deletion'==_0x634380&&(_0x50960e+=0x5),{'classes':_0x47efb0,'attributes':{'data-suggestion':_0x38e942,'data-author-id':_0x53ff6c},'priority':_0x50960e};}}),_0x1cbd95['conversion']['for']('dataDowncast')['add'](_0x17506b=>{_0x17506b['on']('addMarker:suggestion',(_0x1f5e29,_0x32cb3d,_0x228649)=>{if(!_0x228649['options']['showSuggestionHighlights'])return;const _0x11f76d=_0x32cb3d['item'];if(!_0x11f76d)return;const _0x3a7fbc=_0x228649['mapper']['toViewElement'](_0x11f76d);_0x1cbd95['model']['schema']['isObject'](_0x11f76d)&&_0x3a7fbc&&!_0x3a7fbc['getCustomProperty']('widget')&&_0x3a7fbc['is']('containerElement')&&_0x407821(_0x3a7fbc,_0x228649['writer']);},{'priority':'high'});}),_0x1cbd95['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x94dccf,_0x34950a)=>{if(!_0x34950a['options']['showSuggestionHighlights'])return null;const {id:_0xdc3e90,authorId:_0x1764f9,type:_0xf0e302,subType:_0x4a6a43}=this['_splitMarkerName'](_0x94dccf['markerName']);return{'classes':['ck-suggestion-marker',_0x26190f(_0xf0e302,_0x4a6a43)],'priority':0xbb8,'attributes':{'data-suggestion':_0xdc3e90,'data-author-id':_0x1764f9}};}});const _0x42268e=({showActiveMarkers:_0x5e6fe2=!0x0,isAttributeSuggestion:_0x2c7846=!0x1}={})=>(_0x2e6d0e,_0x53b9f3,_0x188a26)=>{if(!_0x53b9f3['item'])return;const {id:_0x36bcc9,authorId:_0x46c46c}=this['_splitMarkerName'](_0x53b9f3['markerName']);if(_0x2c7846){const _0x57a4d4=this['_suggestions']['get'](_0x36bcc9),_0x29c8bd=this['_getAttributeKey'](_0x57a4d4);if(!this['_isBlockAttribute'](_0x29c8bd))return;}if(_0x53b9f3['item']['is']('selection'))return void _0x188a26['consumable']['consume'](_0x53b9f3['item'],_0x2e6d0e['name']);const _0x3ba125=_0x188a26['mapper']['toViewElement'](_0x53b9f3['item']);if(_0x53b9f3['item']['is']('element')&&_0x1cbd95['model']['schema']['isBlock'](_0x53b9f3['item'])&&!_0x3ba125['getCustomProperty']('addHighlight')){_0x188a26['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3ba125),_0x188a26['writer']['setAttribute']('data-suggestion',_0x36bcc9,_0x3ba125),_0x188a26['writer']['setAttribute']('data-author-id',_0x46c46c,_0x3ba125),_0x188a26['mapper']['bindElementToMarker'](_0x3ba125,_0x53b9f3['markerName']),_0x5e6fe2&&(this['activeMarkers']['includes'](_0x53b9f3['markerName'])?_0x188a26['writer']['addClass']('ck-suggestion-marker--active',_0x3ba125):_0x188a26['writer']['removeClass']('ck-suggestion-marker--active',_0x3ba125));for(const _0xc9592f of _0x1cbd95['model']['createRangeIn'](_0x53b9f3['item'])['getItems']())_0x188a26['consumable']['consume'](_0xc9592f,_0x2e6d0e['name']);_0x188a26['consumable']['consume'](_0x53b9f3['item'],_0x2e6d0e['name']);}};_0x1cbd95['conversion']['for']('dataDowncast')['add'](_0x21581e=>{_0x21581e['on']('addMarker:suggestion:formatBlock',(_0xecaf2d,_0x217cdc,_0x4c9372)=>{_0x4c9372['options']['showSuggestionHighlights']&&_0x42268e({'showActiveMarkers':!0x1})(_0xecaf2d,_0x217cdc,_0x4c9372);},{'priority':'highest'});}),_0x1cbd95['conversion']['for']('dataDowncast')['add'](_0x214985=>{_0x214985['on']('addMarker:suggestion:attribute',(_0x5328a0,_0x2df598,_0x306247)=>{_0x306247['options']['showSuggestionHighlights']&&_0x42268e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5328a0,_0x2df598,_0x306247);},{'priority':'highest'});}),_0x1cbd95['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x327436,_0x4d30c2)=>{if(_0x4d30c2['options']['showSuggestionHighlights']){const {id:_0x484676,authorId:_0x10353b}=this['_splitMarkerName'](_0x327436);return _0x327436['includes'](':split')||_0x327436['includes'](':merge')?{'group':'suggestion','name':_0x327436['substr'](0xb),'attributes':{'data-suggestion':_0x484676,'data-author-id':_0x10353b}}:null;}return{'group':'suggestion','name':_0x327436['substr'](0xb)};}}),_0x1cbd95['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4aaffd,{writer:_0xafeedc})=>{let _0x70e135='suggestion:'+_0x4aaffd['getAttribute']('suggestion-type')+':'+_0x4aaffd['getAttribute']('id');return _0x4aaffd['getAttribute']('marker-count')&&(_0x70e135+=':'+_0x4aaffd['getAttribute']('marker-count')),_0xafeedc['createElement']('$marker',{'data-name':_0x70e135});}}),_0x1cbd95['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1cbd95['conversion']['for']('editingDowncast')['add'](_0xea6b39=>{_0xea6b39['on']('addMarker:suggestion:formatBlock',_0x42268e(),{'priority':'high'});}),_0x1cbd95['conversion']['for']('editingDowncast')['add'](_0x23b35c=>{_0x23b35c['on']('addMarker:suggestion:attribute',_0x42268e({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1cbd95['conversion']['for']('editingDowncast')['add'](_0x456d16=>{_0x456d16['on']('removeMarker:suggestion:formatBlock',(_0x47238b,_0x1b12e5,_0x4a5c5e)=>{const _0x3c544e=_0x4a5c5e['mapper']['markerNameToElements'](_0x1b12e5['markerName']);if(_0x3c544e){for(const _0x53badd of _0x3c544e)_0x53badd['getCustomProperty']('addHighlight')||(_0x4a5c5e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x53badd),_0x4a5c5e['writer']['removeAttribute']('data-suggestion',_0x53badd),_0x4a5c5e['writer']['removeAttribute']('data-author-id',_0x53badd),_0x4a5c5e['mapper']['unbindElementFromMarkerName'](_0x53badd,_0x1b12e5['markerName']));}},{'priority':'high'});}),_0x1cbd95['conversion']['for']('editingDowncast')['add'](_0x35aa89=>{_0x35aa89['on']('removeMarker:suggestion:attribute',(_0x46b92b,_0x30702d,_0x30bb18)=>{const _0x5786cd=_0x30bb18['mapper']['markerNameToElements'](_0x30702d['markerName']);if(!_0x5786cd)return;const {id:_0x213f01}=this['_splitMarkerName'](_0x30702d['markerName']),_0x578f5e=this['_suggestions']['get'](_0x213f01),_0x2497fd=this['_getAttributeKey'](_0x578f5e);if(this['_isBlockAttribute'](_0x2497fd)){for(const _0x354294 of _0x5786cd)_0x354294['getCustomProperty']('addHighlight')||(_0x30bb18['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x354294),_0x30bb18['writer']['removeAttribute']('data-suggestion',_0x354294),_0x30bb18['writer']['removeAttribute']('data-author-id',_0x354294),_0x30bb18['mapper']['unbindElementFromMarkerName'](_0x354294,_0x30702d['markerName']));}},{'priority':'high'});}),_0x1cbd95['model']['document']['registerPostFixer'](_0x2c8a50=>{let _0x4a8f81=!0x1;const _0x20da1e=Array['from'](_0x1cbd95['model']['document']['differ']['getChangedMarkers']()),_0x452048=new Set();for(const {name:_0x267931,data:_0x135917}of _0x20da1e){const {group:_0x463791,type:_0x3aa297,subType:_0x39d25c,id:_0x47db02}=this['_splitMarkerName'](_0x267931);if('suggestion'!==_0x463791)continue;const _0xe93e9c=this['_suggestions']['get'](_0x47db02);if(null!=_0x135917['newRange']){'formatInline'==_0x3aa297&&(_0x4a8f81=_0x4a8f81||Jt(_0x135917['newRange'],_0x267931,_0x2c8a50,_0x1cbd95['model']['schema']));const _0x4362d4='attribute'==_0x3aa297&&this['_isBlockAttribute'](_0x39d25c['split']('|')[0x0]);if(_0x135917['newRange']['isCollapsed']||'$graveyard'==_0x135917['newRange']['root']['rootName']||'formatBlock'==_0x3aa297&&!Ht(_0x135917['newRange'])||_0x4362d4&&!Ht(_0x135917['newRange'])||'deletion'==_0x3aa297&&!(!Lt(_0x48112b=_0x135917['newRange'])&&!function(_0x4fcc1e){return _0x4fcc1e['start']['parent']==_0x4fcc1e['end']['nodeBefore']&&_0x4fcc1e['start']['isAtEnd'];}(_0x48112b)))_0x2c8a50['removeMarker'](_0x267931),_0x4a8f81=!0x0;else{if(!_0xe93e9c||!_0xe93e9c['isInContent'])continue;if(_0x135917['newRange']&&_0x135917['oldRange']&&_0x135917['newRange']['isEqual'](_0x135917['oldRange']))continue;_0x452048['add'](_0xe93e9c);}}}var _0x48112b;return _0x452048['size']>0x0&&(_0x4a8f81=!!this['_joinWithAdjacentSuggestions'](_0x452048)||_0x4a8f81),_0x4a8f81;}),_0x1cbd95['model']['document']['registerPostFixer'](_0xa47a08=>{let _0x20ad9b=!0x1;for(const _0x2cc420 of _0x1cbd95['model']['document']['differ']['getChanges']())if('insert'==_0x2cc420['type'])for(const _0x4d7ee7 of this['_suggestions']['values']()){if(_0x4d7ee7['isMultiRange']||!_0x4d7ee7['isInContent'])continue;const _0x2377fa='formatBlock'==_0x4d7ee7['type'],_0x328e6e=this['_getAttributeKey'](_0x4d7ee7),_0xafaf36=_0x328e6e&&this['_isBlockAttribute'](_0x328e6e);if(!_0x2377fa&&!_0xafaf36)continue;const _0x307be0=_0x4d7ee7['getFirstRange']();if(_0x307be0['start']['parent']!=_0x307be0['end']['parent']&&!_0x307be0['end']['isAtEnd']){const _0x4bf2e4=_0x1cbd95['model']['createPositionAt'](_0x307be0['start']['nodeAfter'],'end'),_0x2a2dfb=_0x1cbd95['model']['createRange'](_0x307be0['start'],_0x4bf2e4);_0xa47a08['updateMarker'](_0x4d7ee7['getFirstMarker'](),{'range':_0x2a2dfb}),_0x20ad9b=!0x0;}}return _0x20ad9b;}),_0x1cbd95['model']['document']['registerPostFixer'](_0x34368e=>this['_processAttributeChanges'](_0x34368e)),_0x1cbd95['model']['document']['registerPostFixer'](_0x3eb38e=>!_0x3eb38e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3eb38e)),_0x1cbd95['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1cbd95['model']['document']['on']('change:data',(_0x20adcf,_0x3a9491)=>{if(!_0x3a9491['isLocal']||_0x3a9491['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1114b6=_0x1cbd95['model']['document']['differ']['getChanges']();if(0x0==_0x1114b6['length'])return;const _0x132cae=[],_0x503687=_0x1114b6['filter'](_0x4cd1e3=>'attribute'==_0x4cd1e3['type']),_0x2bda5c=_0x1114b6['filter'](_0x39ad7c=>'insert'==_0x39ad7c['type']&&'$text'!=_0x39ad7c['name']);for(const _0x4d5fcb of _0x503687)this['_isRegisteredAttribute'](_0x4d5fcb['attributeKey'])&&_0x132cae['push']({'key':_0x4d5fcb['attributeKey'],'newValue':_0x4d5fcb['attributeNewValue'],'oldValue':_0x4d5fcb['attributeOldValue'],'range':qt(_0x4d5fcb['range'],_0x1cbd95['model'])});for(const _0x422d71 of _0x2bda5c){if('rename'!=_0x422d71['action']&&'refresh'!=_0x422d71['action'])continue;const _0x5ddccb=zt(_0x422d71['position']['nodeAfter'],_0x1cbd95['model']),_0xb06279=_0x422d71['before'];'rename'==_0x422d71['action']&&_0x132cae['push']({'key':u,'newValue':_0x422d71['name'],'oldValue':_0xb06279['name'],'range':_0x5ddccb});for(const [_0x11bb43,_0x304ddd]of _0xb06279['attributes']){if(!this['_isRegisteredAttribute'](_0x11bb43))continue;const _0xdfb2b0=_0x422d71['attributes']['get'](_0x11bb43);_0x304ddd!==_0xdfb2b0&&_0x132cae['push']({'key':_0x11bb43,'newValue':_0xdfb2b0,'oldValue':_0x304ddd,'range':_0x5ddccb});}for(const [_0x216eef,_0x3e0d35]of _0x422d71['attributes'])this['_isRegisteredAttribute'](_0x216eef)&&(_0xb06279['attributes']['has'](_0x216eef)||_0x132cae['push']({'key':_0x216eef,'newValue':_0x3e0d35,'oldValue':null,'range':_0x5ddccb}));}0x0!=_0x132cae['length']&&_0x1cbd95['model']['enqueueChange'](_0x3a9491,_0x36e944=>{const _0x3cbca4=_0x38a072();for(const {range:_0x869378,key:_0x1c1b60,oldValue:_0x57b8b7,newValue:_0x182c61}of _0x132cae)this['markAttributeChange'](_0x869378,_0x1c1b60,_0x57b8b7,_0x182c61,{'groupId':_0x3cbca4});this['_reduceExistingSuggestions'](_0x36e944,_0x132cae);});},{'priority':'lowest'}),_0x1cbd95['model']['markers']['on']('update:suggestion',(_0x59e090,_0x55bbeb,_0x31ecdc)=>{if(null==_0x31ecdc){const {id:_0x5e8e37}=this['_splitMarkerName'](_0x55bbeb['name']),_0x5bf0fa=this['_suggestions']['get'](_0x5e8e37);_0x5bf0fa&&_0x5bf0fa['addMarkerName'](_0x55bbeb['name']);}}),_0x1cbd95['model']['document']['on']('change:data',()=>{const _0x386367=Array['from'](_0x1cbd95['model']['document']['differ']['getChangedMarkers']())['filter'](_0x32b432=>'suggestion'===this['_splitMarkerName'](_0x32b432['name'])['group']);if(0x0===_0x386367['length'])return;_0x386367['sort']((_0x313ea7,_0x4bc0ab)=>{const _0x4978a6=_0x313ea7['data']['oldRange'],_0x253e98=_0x4bc0ab['data']['oldRange'];return null===_0x4978a6&&null===_0x253e98?0x0:null===_0x4978a6&&null!==_0x253e98?-0x1:null!==_0x4978a6&&null===_0x253e98?0x1:_0x4978a6['start']['isBefore'](_0x253e98['start'])?-0x1:0x1;});const _0x4038ed=new Set(),_0xdd2495=new Set();for(const {name:_0x2ba9c4,data:_0x18c14c}of _0x386367){const {id:_0x522b5b}=this['_splitMarkerName'](_0x2ba9c4);if(null===_0x18c14c['oldRange']){const _0x1cc6fd=this['_handleNewSuggestionMarker'](_0x2ba9c4);_0xdd2495['add'](_0x1cc6fd);}else{const _0xf0c752=this['_suggestions']['get'](_0x522b5b);null!==_0x18c14c['newRange']||_0xf0c752['isInContent']?(_0x4038ed['add'](_0xf0c752['head']),_0xdd2495['add'](_0xf0c752)):this['_removeSuggestion'](_0xf0c752);}}_0xdd2495['size']>0x0&&this['_refreshSuggestionsChain'](_0xdd2495);for(const _0x19962d of _0x4038ed)this['fire']('suggestionChanged',_0x19962d);}),_0x1cbd95['model']['on']('applyOperation',(_0x458a37,_0x463ec4)=>{const _0x5707c8=_0x463ec4[0x0];if(!this['_suggestions']['size'])return;if(!_0x5707c8['isDocumentOperation'])return;if(_0x5707c8['batch']['isUndo']||!_0x5707c8['batch']['isLocal'])return;let _0x3ea3e2,_0x45fb54;switch(_0x5707c8['type']){case'insert':_0x3ea3e2=_0x1cbd95['model']['createPositionAt'](_0x5707c8['position']),_0x45fb54=_0x3ea3e2['getShiftedBy'](_0x5707c8['howMany']);break;case'split':_0x3ea3e2=_0x1cbd95['model']['createPositionAt'](_0x5707c8['splitPosition']),_0x45fb54=_0x1cbd95['model']['createPositionAt'](_0x5707c8['moveTargetPosition']);break;case'move':_0x3ea3e2=_0x1cbd95['model']['createPositionAt'](_0x5707c8['targetPosition']),_0x45fb54=_0x3ea3e2['getShiftedBy'](_0x5707c8['howMany']);break;default:return;}const _0x3bd1cc=_0x1cbd95['model']['createRange'](_0x3ea3e2,_0x45fb54);_0x1cbd95['model']['change'](()=>{for(const {suggestion:_0x225b23,meta:_0x29fca0}of this['_findSuggestions'](_0x3bd1cc)){if(_0x225b23['isMultiRange'])continue;if('formatInline'==_0x225b23['type'])continue;const _0x2d0308=this['_getAttributeKey'](_0x225b23);if(_0x2d0308&&this['_isBlockAttribute'](_0x2d0308)&&'split'!=_0x5707c8['type'])continue;const _0x319836=_0x225b23['data']&&_0x225b23['data']['multipleBlocks'];('formatBlock'!=_0x225b23['type']||'split'==_0x5707c8['type']&&!_0x319836)&&(_0x29fca0['containsRangeInObject']||'insertion'==_0x225b23['type']&&_0x29fca0['isOwn']||_0x225b23['getFirstRange']()['containsRange'](_0x3bd1cc)&&this['_breakSuggestionMarker'](_0x225b23,_0x3ea3e2,_0x45fb54));}});},{'priority':'lowest'}),_0x1cbd95['model']['on']('deleteContent',(_0x2a3881,_0x4d8d70)=>{const _0x11b97e=_0x4d8d70[0x0],_0xffb13b=_0x4d8d70[0x1];if(_0xffb13b&&_0xffb13b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x11b97e['isCollapsed'])return;const _0x7b292c=_0x1cbd95['model']['schema'],{start:_0x5941cf,end:_0x576754}=_0x11b97e['getFirstRange'](),_0x1bb519=_0x5941cf['nodeAfter']&&_0x7b292c['isLimit'](_0x5941cf['nodeAfter'])?null:_0x7b292c['getNearestSelectionRange'](_0x5941cf,'forward'),_0x2d7c85=_0x576754['nodeBefore']&&_0x7b292c['isLimit'](_0x576754['nodeBefore'])?null:_0x7b292c['getNearestSelectionRange'](_0x576754,'backward'),_0x191a54=_0x1cbd95['model']['createRange'](_0x1bb519?_0x1bb519['start']:_0x5941cf,_0x2d7c85?_0x2d7c85['end']:_0x576754);_0x1cbd95['model']['change'](_0xfcd849=>{this['markDeletion'](_0x191a54);const _0x4d658f=_0x1cbd95['model']['schema']['getNearestSelectionRange'](_0x191a54['start']);_0x11b97e['is']('documentSelection')?_0xfcd849['setSelection'](_0x4d658f):_0x11b97e['setTo'](_0x4d658f);}),_0x2a3881['stop']();},{'priority':_0x1dda41['normal']+0xa}),_0x1cbd95['model']['on']('insertContent',(_0x576282,_0x244da9)=>{const _0x419d3d=_0x244da9[_0x244da9['length']-0x1];_0x419d3d&&_0x419d3d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1cbd95['model']['change'](()=>{let _0x55838e=_0x1cbd95['model']['insertContent'](_0x244da9[0x0],_0x244da9[0x1],_0x244da9[0x2],{'forceDefaultExecution':!0x0});if(!_0x55838e)return;_0x576282['return']=_0x55838e['clone']();const _0x436e3c=_0x55838e['end']['nodeBefore'],_0x3ae89a=_0x1cbd95['model']['schema'];_0x436e3c&&_0x3ae89a['isBlock'](_0x436e3c)&&!_0x3ae89a['isObject'](_0x436e3c)&&(_0x55838e=_0x1cbd95['model']['createRange'](_0x55838e['start'],_0x1cbd95['model']['createPositionAt'](_0x436e3c,'end'))),this['markInsertion'](_0x55838e);}),_0x576282['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x170603=new x(_0x1cbd95,this['_suggestions']);_0x1cbd95['commands']['add']('acceptSuggestion',_0x170603),this['enableCommand']('acceptSuggestion');const _0x2286a4=new O(_0x1cbd95,this['_suggestions']);_0x1cbd95['commands']['add']('discardSuggestion',_0x2286a4),this['enableCommand']('discardSuggestion'),_0x1cbd95['commands']['add']('acceptAllSuggestions',new R(_0x1cbd95,_0x170603,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1cbd95['commands']['add']('discardAllSuggestions',new R(_0x1cbd95,_0x2286a4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1cbd95['commands']['add']('acceptSelectedSuggestions',new E(_0x1cbd95,_0x170603,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1cbd95['commands']['add']('discardSelectedSuggestions',new E(_0x1cbd95,_0x2286a4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2e2b6e=_0x1cbd95['plugins']['get']('CommentsRepository');this['listenTo'](_0x2e2b6e,'addComment',(_0xa64c57,{threadId:_0x4c3739})=>{const _0xc289f6=this['_suggestions']['get'](_0x4c3739);_0xc289f6&&_0xc289f6['commentThread']&&0x1===_0xc289f6['commentThread']['length']&&this['_updateSuggestionData'](_0x4c3739,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2e2b6e,'removeComment',(_0x3ce9db,{threadId:_0x48596})=>{const _0x131995=this['_suggestions']['get'](_0x48596);_0x131995&&_0x131995['commentThread']&&!_0x131995['commentThread']['length']&&this['_updateSuggestionData'](_0x48596,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2c295e){const _0x57ca42=_0xba93fb([0x52,0x56,0x58,0x6a,0x32,0x59,0x79,0x61,0x4d,0x50,0x69,0x72,0x48,0x78,0x41,0x57,0x49,0x39,0x35,0x38,0x6c,0x42,0x63,0x4c,0x4a,0x43,0x68,0x77,0x47,0x70,0x33,0x54,0x6b,0x5a,0x65,0x37,0x4b,0x74,0x6e,0x36,0x53,0x71,0x55,0x45,0x64,0x34,0x6d,0x4f,0x6f,0x31,0x76,0x4e,0x46,0x67,0x30,0x7a,0x44,0x75,0x51,0x73,0x66,0x62]),_0x31e197=0x68be6f3,_0x6bc86a=0x68c8f6b^_0x31e197,_0x62e2c8=window[_0xba93fb([0x44,0x61,0x74,0x65])][_0xba93fb([0x6e,0x6f,0x77])](),_0x366ab0=_0x2c295e[_0xba93fb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1936a1=new window[(_0xba93fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x392fe9=>{_0x366ab0[_0xba93fb([0x6f,0x6e,0x63,0x65])](_0xba93fb([0x72,0x65,0x61,0x64,0x79]),_0x392fe9);}),_0x426907={[_0xba93fb([0x6b,0x74,0x79])]:_0xba93fb([0x45,0x43]),[_0xba93fb([0x75,0x73,0x65])]:_0xba93fb([0x73,0x69,0x67]),[_0xba93fb([0x63,0x72,0x76])]:_0xba93fb([0x50,0x2d,0x32,0x35,0x36]),[_0xba93fb([0x78])]:_0xba93fb([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]),[_0xba93fb([0x79])]:_0xba93fb([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]),[_0xba93fb([0x61,0x6c,0x67])]:_0xba93fb([0x45,0x53,0x32,0x35,0x36])},_0x8fae3b=_0x366ab0[_0xba93fb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xba93fb([0x67,0x65,0x74])](_0xba93fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3ec290(){let _0x9757f8,_0x2beab6=null,_0x40c7e5=null;try{if(_0x8fae3b==_0xba93fb([0x47,0x50,0x4c]))return _0xba93fb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9757f8=_0x39f006(),!_0x9757f8)return _0xba93fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9757f8[_0xba93fb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x40c7e5=_0x6c1298(_0x9757f8[_0xba93fb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9757f8[_0xba93fb([0x6a,0x74,0x69])])),await _0x5c5046()?_0x3691de()?_0x4637fd()?_0xba93fb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x426ffe()?(_0x9757f8[_0xba93fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xba93fb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2beab6=_0x10621a(_0xba93fb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x9757f8[_0xba93fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xba93fb([0x74,0x72,0x69,0x61,0x6c])&&(_0x2beab6=_0x10621a(_0xba93fb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1feb42()):_0xba93fb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xba93fb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xba93fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xba93fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4637fd(){const _0x50f2ab=[_0xba93fb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xba93fb([0x74,0x72,0x69,0x61,0x6c])][_0xba93fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9757f8[_0xba93fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x62e2c8/0x3e8:0xe10*_0x6bc86a;return _0x9757f8[_0xba93fb([0x65,0x78,0x70])]<_0x50f2ab;}function _0x3691de(){const _0x365dc6=_0x9757f8[_0xba93fb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x365dc6)return!0x1;if(_0x365dc6[_0xba93fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xba93fb([0x2a])))return!0x0;if(_0x365dc6[_0xba93fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xba93fb([0x54,0x43])))return!0x0;if(_0x365dc6[_0xba93fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xba93fb([0x52,0x54,0x43]))){if(_0x48d6c3())return!0x0;if(_0x431e4c()||_0x1c92d3())return!0x0;}return!0x1;}function _0x426ffe(){const _0x186779=_0x9757f8[_0xba93fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x186779||0x0==_0x186779[_0xba93fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4cf5b6}=new URL(window[_0xba93fb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x186779[_0xba93fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cf5b6))return!0x0;const _0x1ad579=_0x4cf5b6[_0xba93fb([0x73,0x70,0x6c,0x69,0x74])](_0xba93fb([0x2e]));return _0x186779[_0xba93fb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x232765=>_0x232765[_0xba93fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xba93fb([0x2a])))[_0xba93fb([0x6d,0x61,0x70])](_0x2b3b66=>_0x2b3b66[_0xba93fb([0x73,0x70,0x6c,0x69,0x74])](_0xba93fb([0x2e])))[_0xba93fb([0x73,0x6f,0x6d,0x65])](_0x42d9b3=>_0x1ad579[_0xba93fb([0x65,0x76,0x65,0x72,0x79])]((_0x30d5cd,_0x417fdd)=>_0x42d9b3[_0x417fdd]===_0x30d5cd||_0x42d9b3[_0x417fdd]===_0xba93fb([0x2a])));}function _0x1feb42(){return _0x2beab6&&_0x40c7e5?new window[(_0xba93fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x424936,_0x3be776)=>{_0x2beab6[_0xba93fb([0x74,0x68,0x65,0x6e])](_0x424936,_0x3be776),_0x40c7e5[_0xba93fb([0x74,0x68,0x65,0x6e])](_0x32aa58=>{_0x32aa58!=_0xba93fb([0x56,0x61,0x6c,0x69,0x64])&&_0x424936(_0x32aa58);},_0x3be776);}):_0x2beab6||_0x40c7e5||_0xba93fb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x6c1298(_0x1b1e56,_0x3fec0a){return new window[(_0xba93fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31f68f=>{if(_0x1ff31f())return _0x31f68f(_0xba93fb([0x56,0x61,0x6c,0x69,0x64]));_0x308019(),_0x366ab0[_0xba93fb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xba93fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x525260=!0x1;const _0x48884a=_0x38a072();function _0x55f989(_0x4c7c98){return!!_0x4c7c98&&(typeof _0x4c7c98===_0xba93fb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4c7c98===_0xba93fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4c7c98[_0xba93fb([0x74,0x68,0x65,0x6e])]===_0xba93fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4c7c98[_0xba93fb([0x63,0x61,0x74,0x63,0x68])]===_0xba93fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1cefb1(_0x3e2aa3){_0x3b9370(_0x3e2aa3)[_0xba93fb([0x74,0x68,0x65,0x6e])](_0x10230e=>{if(!_0x10230e||_0x10230e[_0xba93fb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xba93fb([0x6f,0x6b]))return _0xba93fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3a470a(_0x2fd252(_0x48884a+_0x3fec0a))!=_0x10230e[_0xba93fb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xba93fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xba93fb([0x56,0x61,0x6c,0x69,0x64]);})[_0xba93fb([0x74,0x68,0x65,0x6e])](_0x97033b=>(_0x4044dd(),_0x97033b),()=>{const _0x3b23ee=_0x577c3f();return null==_0x3b23ee?(_0x4044dd(),_0xba93fb([0x56,0x61,0x6c,0x69,0x64])):_0xba93fb(_0x62e2c8-_0x3b23ee>(0x228762f3^_0x31e197)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xba93fb([0x74,0x68,0x65,0x6e])](_0x31f68f)[_0xba93fb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x31f68f(_0xba93fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x439f38=0x6bd0873^_0x31e197;function _0x4044dd(){const _0x28fa55=_0xba93fb([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a470a(_0x2fd252(_0x1b1e56)),_0x3473c4=_0x4b7378(_0x3a470a(window[_0xba93fb([0x4d,0x61,0x74,0x68])][_0xba93fb([0x63,0x65,0x69,0x6c])](_0x62e2c8/_0x439f38)));window[_0xba93fb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xba93fb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28fa55,_0x3473c4);}function _0x577c3f(){const _0x41697e=_0xba93fb([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a470a(_0x2fd252(_0x1b1e56)),_0x41021c=window[_0xba93fb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xba93fb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x41697e);return _0x41021c?window[_0xba93fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b7378(_0x41021c),0x10)*_0x439f38:null;}function _0x3b9370(_0x5ac0f3){return new window[(_0xba93fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cfda4,_0x5214cb)=>{_0x5ac0f3[_0xba93fb([0x74,0x68,0x65,0x6e])](_0x2cfda4,_0x5214cb),window[_0xba93fb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5214cb,0x68a3233^_0x31e197);});}}_0x366ab0[_0xba93fb([0x6f,0x6e])](_0xba93fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1b0cce,_0x11d122)=>{if(_0x11d122[0x0]!=_0x1b1e56)return _0x31f68f(_0xba93fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x11d122[0x1]={..._0x11d122[0x1],[_0xba93fb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x48884a};},{[_0xba93fb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xba93fb([0x68,0x69,0x67,0x68])}),_0x366ab0[_0xba93fb([0x6f,0x6e])](_0xba93fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x15294f=>{_0x55f989(_0x15294f[_0xba93fb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x525260=!0x0,_0x1cefb1(_0x15294f[_0xba93fb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xba93fb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xba93fb([0x6c,0x6f,0x77])}),_0x1936a1[_0xba93fb([0x74,0x68,0x65,0x6e])](()=>{_0x525260||_0x31f68f(_0xba93fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1ff31f(){return _0x366ab0[_0xba93fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xba93fb([0x76,0x69,0x65,0x77])][_0xba93fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xba93fb([0x61,0x75,0x74,0x6f]);}function _0x308019(){_0x366ab0[_0xba93fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xba93fb([0x76,0x69,0x65,0x77])][_0xba93fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xba93fb([0x61,0x75,0x74,0x6f]);}}function _0x10621a(_0xc1abd9){const _0x2928ae=[new window[(_0xba93fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47bc84=>setTimeout(_0x47bc84,0x682d83f^_0x31e197)),_0x1936a1[_0xba93fb([0x74,0x68,0x65,0x6e])](()=>new window[(_0xba93fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e9c47=>{let _0x4dcefe=0x0;_0x366ab0[_0xba93fb([0x6d,0x6f,0x64,0x65,0x6c])][_0xba93fb([0x6f,0x6e])](_0xba93fb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x24b476,_0x567194)=>{_0x567194[0x0][_0xba93fb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4dcefe++,_0x4dcefe==(0x68be70b^_0x31e197)&&(_0x5e9c47(),_0x24b476[_0xba93fb([0x6f,0x66,0x66])]());});}))];return window[_0xba93fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xba93fb([0x72,0x61,0x63,0x65])](_0x2928ae)[_0xba93fb([0x74,0x68,0x65,0x6e])](()=>_0xc1abd9);}async function _0x3d9cc5(){await _0x1936a1,_0x366ab0[_0xba93fb([0x6d,0x6f,0x64,0x65,0x6c])][_0xba93fb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2868c1,_0x366ab0[_0xba93fb([0x6d,0x6f,0x64,0x65,0x6c])][_0xba93fb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2868c1,_0x366ab0[_0xba93fb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xba93fb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x48d6c3(){return _0x227dc9(_0xba93fb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2e40f2(_0xba93fb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xba93fb([0x73,0x74,0x61,0x74,0x65])]==_0xba93fb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x431e4c(){return _0x227dc9(_0xba93fb([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 _0x1c92d3(){return _0x227dc9(_0xba93fb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x204e6e(_0x3f5d87){const _0x9d209b=_0x1a98ec();_0x366ab0[_0x9d209b]=_0xba93fb([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3f5d87,_0x3f5d87!=_0xba93fb([0x56,0x61,0x6c,0x69,0x64])&&_0x3d9cc5();}function _0x1a98ec(){const _0x2e1d77=window[_0xba93fb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xba93fb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xba93fb([0x6e,0x6f,0x77])]())[_0xba93fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xba93fb([0x2e]),'');let _0x54b431=_0xba93fb([0x52]);for(let _0x22f0d3=0x0;_0x22f0d3<_0x2e1d77[_0xba93fb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22f0d3+=0x2){let _0x3270d1=window[_0xba93fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e1d77[_0xba93fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22f0d3,_0x22f0d3+0x2));_0x3270d1>=_0x57ca42[_0xba93fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3270d1-=_0x57ca42[_0xba93fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x54b431+=_0x57ca42[_0x3270d1];}return _0x54b431;}function _0x39f006(){const _0x376e6c=_0x8fae3b[_0xba93fb([0x73,0x70,0x6c,0x69,0x74])](_0xba93fb([0x2e]));if(0x3!=_0x376e6c[_0xba93fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x51d686(_0x376e6c[0x1]);function _0x51d686(_0x4cce73){const _0x486a5c=_0x1b68c8(_0x4cce73);return _0x486a5c&&_0x46cf4a()?_0x486a5c:null;function _0x46cf4a(){const _0x5bbfda=_0x486a5c[_0xba93fb([0x6a,0x74,0x69])],_0x9aa598=window[_0xba93fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bbfda[_0xba93fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5bbfda[_0xba93fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x192c62={..._0x486a5c,[_0xba93fb([0x6a,0x74,0x69])]:_0x5bbfda[_0xba93fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5bbfda[_0xba93fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x192c62[_0xba93fb([0x76,0x63])],_0x2fd252(_0x192c62)==_0x9aa598;}}}async function _0x5c5046(){let _0x460694=!0x0;try{const _0x35570c=_0x8fae3b[_0xba93fb([0x73,0x70,0x6c,0x69,0x74])](_0xba93fb([0x2e])),[_0x434794,_0x6f1897,_0x2e5b0d]=_0x35570c;return _0x764f58(_0x434794),await _0x4df38b(_0x434794,_0x6f1897,_0x2e5b0d),_0x460694;}catch{return!0x1;}function _0x764f58(_0x1a8d27){const _0x25bc9f=_0x1b68c8(_0x1a8d27);_0x25bc9f&&_0x25bc9f[_0xba93fb([0x61,0x6c,0x67])]==_0xba93fb([0x45,0x53,0x32,0x35,0x36])||(_0x460694=!0x1);}async function _0x4df38b(_0x22d50d,_0x48bb1d,_0x37fae2){const _0x37ab2b=window[_0xba93fb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xba93fb([0x66,0x72,0x6f,0x6d])](_0x562c90(_0x37fae2),_0x2004cd=>_0x2004cd[_0xba93fb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3511af=new window[(_0xba93fb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xba93fb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x22d50d+_0xba93fb([0x2e])+_0x48bb1d),_0x27d200=window[_0xba93fb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xba93fb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27d200)return;const _0x10e84d=await _0x27d200[_0xba93fb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xba93fb([0x6a,0x77,0x6b]),_0x426907,{[_0xba93fb([0x6e,0x61,0x6d,0x65])]:_0xba93fb([0x45,0x43,0x44,0x53,0x41]),[_0xba93fb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xba93fb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xba93fb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27d200[_0xba93fb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xba93fb([0x6e,0x61,0x6d,0x65])]:_0xba93fb([0x45,0x43,0x44,0x53,0x41]),[_0xba93fb([0x68,0x61,0x73,0x68])]:{[_0xba93fb([0x6e,0x61,0x6d,0x65])]:_0xba93fb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x10e84d,_0x37ab2b,_0x3511af)||(_0x460694=!0x1);}}function _0x1b68c8(_0x4a625a){return _0x4a625a[_0xba93fb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xba93fb([0x65,0x79]))?JSON[_0xba93fb([0x70,0x61,0x72,0x73,0x65])](_0x562c90(_0x4a625a)):null;}function _0x562c90(_0x5c7220){return window[_0xba93fb([0x61,0x74,0x6f,0x62])](_0x5c7220[_0xba93fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xba93fb([0x2b]))[_0xba93fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xba93fb([0x2f])));}function _0x2fd252(_0x40c1fc){let _0x2d1b13=0x1505;function _0x3e9c9c(_0x520ffb){for(let _0x3a11ea=0x0;_0x3a11ea<_0x520ffb[_0xba93fb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a11ea++){const _0xf7d95b=_0x520ffb[_0xba93fb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3a11ea);_0x2d1b13=(_0x2d1b13<<0x5)+_0x2d1b13+_0xf7d95b,_0x2d1b13&=_0x2d1b13;}}function _0x282b7d(_0x305b4b){Array[_0xba93fb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x305b4b)?_0x305b4b[_0xba93fb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x282b7d):_0x305b4b&&typeof _0x305b4b==_0xba93fb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xba93fb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x305b4b)[_0xba93fb([0x73,0x6f,0x72,0x74])]()[_0xba93fb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xbdea79,_0x1799e1])=>{_0x3e9c9c(_0xbdea79),_0x282b7d(_0x1799e1);}):_0x3e9c9c(window[_0xba93fb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x305b4b));}return _0x282b7d(_0x40c1fc),_0x2d1b13>>>0x0;}function _0x3a470a(_0x3c6570){return _0x3c6570[_0xba93fb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xba93fb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xba93fb([0x30]));}function _0x4b7378(_0x375628){return _0x375628[_0xba93fb([0x73,0x70,0x6c,0x69,0x74])]('')[_0xba93fb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xba93fb([0x6a,0x6f,0x69,0x6e])]('');}function _0x227dc9(_0x30bb43){return _0x366ab0[_0xba93fb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xba93fb([0x68,0x61,0x73])](_0x30bb43);}function _0x2e40f2(_0x48cd37){return _0x366ab0[_0xba93fb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xba93fb([0x67,0x65,0x74])](_0x48cd37);}function _0x2868c1(){}function _0xba93fb(_0x48a387){return _0x48a387['map'](_0x35928c=>String['fromCharCode'](_0x35928c))['join']('');}_0x204e6e(await _0x3ec290());}(this);}set['adapter'](_0x3c8f97){if(this['_adapter'])throw new _0x5e9249('track-changes-adapter-already-set',this);this['_adapter']=_0x3c8f97;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4908d8=!0x1,toJSON:_0x4d8436=!0x1}={}){const _0x83f4b6=[];for(const _0x1894ed of this['_suggestions']['values']())_0x4908d8&&!_0x1894ed['isInContent']||_0x83f4b6['push'](_0x1894ed);return _0x4d8436?_0x83f4b6['map'](_0x28f29b=>_0x28f29b['toJSON']()):_0x83f4b6;}['getSuggestion'](_0x18030d){const _0x1f7e13=this['_suggestions']['get'](_0x18030d);if(!_0x1f7e13)throw new _0x5e9249('track-changes-suggestion-not-found',this);return _0x1f7e13;}['hasSuggestion'](_0x52e2e8){return this['_suggestions']['has'](_0x52e2e8);}['addSuggestionData'](_0x5cf2d3){const {authorId:_0x3b7957,id:_0x447ce1,originalSuggestionId:_0x2eae96,attributes:_0x1e209f}=_0x5cf2d3,[_0x194ae5,_0x5e1e68]=_0x5cf2d3['type']['split'](':'),_0x564746=this['_suggestions']['get'](_0x447ce1)||this['_createSuggestion'](_0x194ae5,_0x5e1e68,_0x447ce1,_0x3b7957,_0x1e209f,_0x2eae96);if(this['_addThreadToSuggestion'](_0x564746),this['_checkSuggestionCorrectness'](_0x564746,_0x194ae5,_0x5e1e68||null,_0x3b7957),_0x564746['createdAt']=_0x5cf2d3['createdAt'],_0x564746['_isDataLoaded']=!0x0,_0x1e209f&&_0x1e209f['@external']){const _0x316345=_0x1e209f['@external'],_0x13e68d=this['_getExternalAuthor'](_0x316345['authorName']);_0x564746['authoredAt']=_0x316345['createdAt'],_0x564746['author']=_0x13e68d,_0x564746['isExternal']=!0x0;}else _0x564746['authoredAt']=_0x5cf2d3['createdAt'];switch(_0x5cf2d3['data']&&(_0x564746['data']=_0x5cf2d3['data']),_0x5cf2d3['attributes']&&(_0x564746['attributes']=_0x5cf2d3['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x564746['_saved']=!0x0),this['_suggestionState']['get'](_0x564746)){case'notReady':this['_suggestionState']['set'](_0x564746,'dataReady');break;case'markerReady':_0x564746['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x564746])),this['_refreshSuggestionsChain'](new Set([_0x564746])),this['_suggestionState']['set'](_0x564746,'ready'),this['fire']('suggestionLoaded',_0x564746)):this['_suggestionState']['set'](_0x564746,'removed');}return _0x564746;}['acceptSuggestion'](_0x385828){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x425aff of _0x385828['getAllAdjacentSuggestions']())_0x425aff['accept']();});});}['discardSuggestion'](_0x1d23cc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xdaa764 of _0x1d23cc['getAllAdjacentSuggestions']())_0xdaa764['discard']();});});}['enableCommand'](_0xbfc425,_0x2eacc9){const _0x1b6ad3=this['editor']['commands']['get'](_0xbfc425);if(!_0x1b6ad3)throw new _0x5e9249('track-changes-command-not-found',this,{'commandName':_0xbfc425});if(this['_enabledCommands']['has'](_0x1b6ad3))throw new _0x5e9249('track-changes-enable-command-twice',this,{'commandName':_0xbfc425});this['_enabledCommands']['add'](_0x1b6ad3),_0x2eacc9&&_0x1b6ad3['on']('execute',(_0x2e57c7,_0x245ca9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x245ca9['length']>0x0&&_0x245ca9[_0x245ca9['length']-0x1]&&_0x245ca9[_0x245ca9['length']-0x1]['forceDefaultExecution']?_0x245ca9['pop']():(_0x2e57c7['return']=_0x2eacc9((..._0x92e3ce)=>_0x1b6ad3['execute'](..._0x92e3ce,{'forceDefaultExecution':!0x0}),..._0x245ca9),_0x2e57c7['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x480bf3){let _0x7e919a,_0x22962e;const _0x3a8269=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x7e919a=_0x480bf3();}catch(_0x2fcaa2){_0x22962e=_0x2fcaa2;}return _0x3a8269||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x22962e&&_0x5e9249['rethrowUnexpectedError'](_0x22962e,this),_0x7e919a;}['markInsertion'](_0x6095df,_0x315a77=null,_0x4dd6d7={}){if(_0x6095df['isCollapsed'])return null;const _0x3e118c=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4dd6d7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x48c6d3,meta:_0x2dc12f}of this['_findSuggestions'](_0x6095df,'insertion'))if(_0x2dc12f['isOwn']){if(!_0x2dc12f['isNextTo']){if(_0x2dc12f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x48c6d3,_0x4dd6d7))continue;return _0x48c6d3;}if(Xt(_0x48c6d3,_0x4dd6d7))return _0x48c6d3;this['_breakSuggestionMarker'](_0x48c6d3,_0x6095df['start'],_0x6095df['end']);break;}if(_0x315a77==_0x48c6d3['subType']&&Xt(_0x48c6d3,_0x4dd6d7)){const _0x490f15=_0x48c6d3['getFirstRange']();return _0x490f15['start']['isEqual'](_0x6095df['end'])?this['_setSuggestionRange'](_0x48c6d3,this['_model']['createRange'](_0x6095df['start'],_0x490f15['end'])):this['_setSuggestionRange'](_0x48c6d3,this['_model']['createRange'](_0x490f15['start'],_0x6095df['end'])),_0x48c6d3;}}const _0x3f9b9d=_0x38a072(),_0x59a685=_0x3e118c['id'],_0xa7fc93=_0x315a77?'insertion:'+_0x315a77:'insertion',_0xbdde2c=this['_setSuggestionData']({'id':_0x3f9b9d,'type':_0xa7fc93,'createdAt':new Date(),'authorId':_0x59a685,'attributes':_0x4dd6d7});return this['_addSuggestionMarker'](_0xa7fc93,_0x3f9b9d,_0x59a685,_0x6095df),_0xbdde2c;}['markMultiRangeInsertion'](_0xbbf114,_0x447501='multi',_0x3e9696={}){const _0x425699=this['editor']['plugins']['get']('Users')['me'],_0x5d03c8=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x447501,'join');this['_trackingSessionId']&&(_0x3e9696['trackingSessionId']=this['_trackingSessionId']);for(const _0x22600a of this['getSuggestions']())if(_0x22600a['author']['id']==_0x425699['id']&&'insertion'==_0x22600a['type']&&_0x22600a['subType']==_0x447501&&Xt(_0x22600a,_0x3e9696)&&(_0x5d03c8(_0x22600a['getRanges'](),_0xbbf114)||_0x5d03c8(_0xbbf114,_0x22600a['getRanges']()))){for(const _0x4de08c of _0xbbf114)_0x22600a['addRange'](_0x4de08c);return _0x22600a;}for(const {suggestion:_0x1cc163,meta:_0x266583}of this['_findSuggestions'](_0xbbf114,'insertion')){if(!_0x266583['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x266583['containsRangeInObject'])continue;if(!Xt(_0x1cc163,_0x3e9696))continue;let _0x31bf39=!0x0;for(const _0x357973 of _0x1cc163['getRanges']())for(const _0x4d5742 of _0xbbf114)if(!_0x357973['containsRange'](_0x4d5742)){_0x31bf39=!0x1;break;}if(_0x31bf39)return _0x1cc163;}const _0x5154fa=_0x38a072(),_0x275350=_0x425699['id'],_0x4542ad='insertion:'+_0x447501,_0x227db3=this['_setSuggestionData']({'id':_0x5154fa,'type':_0x4542ad,'createdAt':new Date(),'authorId':_0x275350,'attributes':_0x3e9696});for(const _0x2c02d1 of _0xbbf114)this['_addSuggestionMarker'](_0x4542ad,_0x5154fa,_0x275350,_0x2c02d1,o['getMultiRangeId']());return _0x227db3;}['markInlineFormat'](_0x3b3807,_0x39eb9e,_0x1469f0=null,_0x4d12e0={}){if(_0x1469f0=_0x1469f0||Kt(_0x39eb9e),_0x3b3807['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4d12e0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3d21b3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1469f0,'accept');return this['forceDefaultExecution'](()=>_0x3d21b3([_0x3b3807],_0x39eb9e,_0x4d12e0)),null;}const _0x301bc5=this['editor']['plugins']['get']('Users')['me'],_0x43a8bf=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3206f3,meta:_0x519650}of this['_findSuggestions'](_0x3b3807,'insertion'))_0x519650['isOwn']&&!_0x519650['isInsideObject']&&_0x43a8bf['push'](..._0x3206f3['getRanges']());}const _0x210615=function(_0xcbdea0,_0x4b266d){const _0x2e3a2c=[];for(const _0x7bb9ba of _0x4b266d){const _0x4fcd26=_0xcbdea0['getIntersection'](_0x7bb9ba);_0x4fcd26&&_0x2e3a2c['push'](_0x4fcd26);}return _0x2e3a2c;}(_0x3b3807,_0x43a8bf),_0x50b7d6=function(_0x12be25,_0x39004b){const _0x351021=[_0x12be25];for(const _0x25f398 of _0x39004b){let _0x579d21=0x0;for(;_0x579d21<_0x351021['length'];){const _0x1cc7d2=_0x351021[_0x579d21]['getDifference'](_0x25f398);_0x351021['splice'](_0x579d21,0x1,..._0x1cc7d2),_0x579d21+=_0x1cc7d2['length'];}}return _0x351021;}(_0x3b3807,_0x43a8bf);_0x210615['length']&&this['_model']['change'](()=>{for(const _0x4dda57 of _0x210615){const _0x36b906=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1469f0,'accept');this['forceDefaultExecution'](()=>_0x36b906([_0x4dda57],_0x39eb9e,_0x4d12e0));}});for(const _0x2e1ac5 of _0x50b7d6){let _0x5bc832=null,_0x409671=_0x2e1ac5['start'],_0x5437e2=_0x2e1ac5['end'];for(const {suggestion:_0x50367c,meta:_0x967a81}of this['_findSuggestions'](_0x2e1ac5,'formatInline')){if(!_0x967a81['isOwn'])continue;if(_0x50367c['subType']!=_0x1469f0)continue;if(!Xt(_0x50367c,_0x4d12e0))continue;const _0x207c3f=_0x50367c['getFirstRange']();if(_0x207c3f['containsRange'](_0x2e1ac5,!0x0))return null;_0x409671=_0x409671['isBefore'](_0x207c3f['start'])?_0x409671:_0x207c3f['start'],_0x5437e2=_0x5437e2['isAfter'](_0x207c3f['end'])?_0x5437e2:_0x207c3f['end'],_0x5bc832?_0x207c3f['start']['isBefore'](_0x5bc832['getFirstRange']()['start'])?(_0x5bc832['removeMarkers'](),_0x5bc832=_0x50367c):_0x50367c['removeMarkers']():_0x5bc832=_0x50367c;}const _0x5eddbd=this['_model']['createRange'](_0x409671,_0x5437e2);if(_0x5bc832)this['_setSuggestionRange'](_0x5bc832,_0x5eddbd);else{const _0x581589=_0x38a072(),_0x3bcf06=_0x301bc5['id'];this['_setSuggestionData']({'id':_0x581589,'type':'formatInline:'+_0x1469f0,'data':_0x39eb9e,'createdAt':new Date(),'authorId':_0x3bcf06,'attributes':_0x4d12e0}),this['_addSuggestionMarker']('formatInline:'+_0x1469f0,_0x581589,_0x3bcf06,_0x5eddbd);}}return null;}['markBlockFormat'](_0x3097a5,_0x2935c4,_0x3d6bb0=[],_0x32cb67=null,_0x33eab5={}){_0x2935c4['formatGroupId']||(_0x2935c4['formatGroupId']=_0x2935c4['commandName']),_0x2935c4['multipleBlocks']=_0x3097a5['is']('range'),_0x32cb67=_0x32cb67||Kt(_0x2935c4);const _0x5295b6=_0x3d6bb0['map'](_0xe903a9=>zt(_0xe903a9,this['_model'])),_0x33f571=_0x3097a5['is']('range')?_0x3097a5:zt(_0x3097a5,this['_model']);if(this['_trackingSessionId']&&(_0x33eab5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xea2ea1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x32cb67,'accept');return this['forceDefaultExecution'](()=>_0xea2ea1([_0x33f571],_0x2935c4,_0x33eab5)),null;}_0x5295b6['push'](_0x33f571);let _0x14bb01=!0x0;for(const _0x172613 of _0x5295b6)if(!this['_rangeIsInLocalUserInsertion'](_0x172613)){_0x14bb01=!0x1;break;}if(_0x14bb01&&'always'!==this['_trackFormatChanges']){const _0x22c2c4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x32cb67,'accept');return this['forceDefaultExecution'](()=>_0x22c2c4([_0x33f571],_0x2935c4,_0x33eab5)),null;}let _0x1cedc=null,_0xeaef97=_0x33f571['start'],_0x2dd65b=_0x33f571['end'];for(const {suggestion:_0xf6eacb,meta:_0x3511d2}of this['_findSuggestions'](_0x33f571,'formatBlock')){if(!_0x3511d2['isOwn'])continue;if(_0x3511d2['isNextTo']||_0x3511d2['containsRangeInObject']||_0x3511d2['isInsideObject'])continue;if(_0xf6eacb['data']['formatGroupId']!=_0x2935c4['formatGroupId'])continue;if(!Xt(_0xf6eacb,_0x33eab5))continue;const _0xa78e6e=_0xf6eacb['getFirstRange']();if(_0xf6eacb['subType']==_0x32cb67){if(_0xa78e6e['containsRange'](_0x33f571,!0x0))return null;_0xeaef97=_0xeaef97['isBefore'](_0xa78e6e['start'])?_0xeaef97:_0xa78e6e['start'],_0x2dd65b=_0x2dd65b['isAfter'](_0xa78e6e['end'])?_0x2dd65b:_0xa78e6e['end'],_0x1cedc?_0xa78e6e['start']['isBefore'](_0x1cedc['getFirstRange']()['start'])?(_0x1cedc['removeMarkers'](),_0x1cedc=_0xf6eacb):_0xf6eacb['removeMarkers']():_0x1cedc=_0xf6eacb;}else{const _0x1bb80b=_0x33f571['getIntersection'](_0xa78e6e);this['_cutOutSuggestionMarker'](_0xf6eacb,_0x1bb80b);}}const _0x493ff0=this['editor']['plugins']['get']('Users')['me'],_0xd60a0b=_0x38a072(),_0x5687ca=_0x493ff0['id'];if(_0x1cedc)return this['_setSuggestionRange'](_0x1cedc,this['_model']['createRange'](_0xeaef97,_0x2dd65b)),_0x1cedc;{const _0x1345fd=this['_setSuggestionData']({'id':_0xd60a0b,'type':'formatBlock:'+_0x32cb67,'data':_0x2935c4,'createdAt':new Date(),'authorId':_0x5687ca,'attributes':_0x33eab5});return this['_addSuggestionMarker']('formatBlock:'+_0x32cb67,_0xd60a0b,_0x5687ca,this['_model']['createRange'](_0xeaef97,_0x2dd65b)),_0x1345fd;}}['markMultiRangeBlockFormat'](_0x4915b7,_0x12bf2a,_0x2937cf=[],_0x32fe83=null,_0x323ef6={}){_0x12bf2a['formatGroupId']||(_0x12bf2a['formatGroupId']=_0x12bf2a['commandName']);const _0x4c8969=_0x4915b7[0x0];_0x12bf2a['multipleBlocks']=_0x4c8969['is']('range'),_0x32fe83=_0x32fe83||Kt(_0x12bf2a);const _0x1c9e81=_0x2937cf['map'](_0x72b87c=>zt(_0x72b87c,this['_model'])),_0x4e4c2f=_0x4c8969['is']('range')?_0x4915b7:_0x4915b7['map'](_0x5c9939=>zt(_0x5c9939,this['_model']));if(this['_trackingSessionId']&&(_0x323ef6['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x277e6f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x32fe83,'accept');return this['forceDefaultExecution'](()=>_0x277e6f(_0x4e4c2f,_0x12bf2a,_0x323ef6)),null;}_0x1c9e81['push'](..._0x4e4c2f);let _0x330919=!0x0;for(const _0x3a5e3e of _0x1c9e81)if(!this['_rangeIsInLocalUserInsertion'](_0x3a5e3e)){_0x330919=!0x1;break;}if(_0x330919&&'always'!==this['_trackFormatChanges']){const _0x1411ff=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x32fe83,'accept');return this['forceDefaultExecution'](()=>_0x1411ff(_0x4e4c2f,_0x12bf2a,_0x323ef6)),null;}const _0x2b4948=this['editor']['plugins']['get']('Users')['me'];for(const _0x4f13f6 of this['getSuggestions']()){if(_0x4f13f6['author']['id']!=_0x2b4948['id'])continue;if('formatBlock'!=_0x4f13f6['type']||_0x4f13f6['data']['formatGroupId']!=_0x12bf2a['formatGroupId'])continue;if(!Xt(_0x4f13f6,_0x323ef6))continue;const _0x141203=_0x4f13f6['subType']==_0x32fe83;for(let _0x1db97e=0x0;_0x1db97e<_0x4e4c2f['length'];_0x1db97e++){const _0x3fda6a=_0x4e4c2f[_0x1db97e];for(const _0x387242 of _0x4f13f6['getMarkers']()){const _0x5c9f44=_0x387242['getRange']();if(_0x3fda6a['isEqual'](_0x5c9f44)){_0x141203?(_0x4e4c2f['splice'](_0x1db97e,0x1),_0x1db97e--):_0x4f13f6['removeMarker'](_0x387242['name']);break;}}}}if(0x0==_0x4e4c2f['length'])return null;const _0x52cd75=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x32fe83,'join');for(const _0x46d8eb of this['getSuggestions']())if(_0x46d8eb['author']['id']==_0x2b4948['id']&&'formatBlock'==_0x46d8eb['type']&&_0x46d8eb['data']['formatGroupId']==_0x12bf2a['formatGroupId']&&_0x46d8eb['subType']==_0x32fe83&&Xt(_0x46d8eb,_0x323ef6)&&(_0x52cd75(_0x46d8eb['getRanges'](),_0x4e4c2f)||_0x52cd75(_0x4e4c2f,_0x46d8eb['getRanges']()))){for(const _0x15144d of _0x4e4c2f)_0x46d8eb['addRange'](_0x15144d);return _0x46d8eb;}const _0x1c0d83=_0x38a072(),_0x221c43=_0x2b4948['id'],_0x1bec4b='formatBlock:'+_0x32fe83,_0x336b0d=this['_setSuggestionData']({'id':_0x1c0d83,'type':_0x1bec4b,'data':_0x12bf2a,'createdAt':new Date(),'authorId':_0x221c43,'attributes':_0x323ef6});for(const _0x4be4b3 of _0x4e4c2f)this['_addSuggestionMarker'](_0x1bec4b,_0x1c0d83,_0x221c43,_0x4be4b3,o['getMultiRangeId']());return _0x336b0d;}['markDeletion'](_0x2d8a6f,_0x1916a1=null,_0x337501={}){if(_0x2d8a6f['isCollapsed'])return null;const _0x17d59a=this['editor']['plugins']['get']('Users')['me'],_0x2f20d9=new _0x21cd14(_0x2d8a6f['start'],_0x2d8a6f['end']);this['_trackingSessionId']&&(_0x337501['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x41c027,meta:_0x419f92}of this['_findSuggestions'](_0x2f20d9,'insertion'))if(_0x419f92['isOwn']&&!_0x419f92['isNextTo']){if(_0x41c027['isMultiRange']){const _0x28a4af=_0x41c027['getRanges']()['filter'](_0x33128e=>'$graveyard'!=_0x33128e['root']['rootName']);_0x28a4af['every'](_0x5603cf=>_0x2f20d9['containsRange'](_0x5603cf,!0x0))&&_0x41c027['discard']();if(_0x28a4af['some'](_0x4f8a06=>_0x4f8a06['containsRange'](_0x2f20d9,!0x0))){const _0x49fe84=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1916a1,'accept');return this['forceDefaultExecution'](()=>_0x49fe84([_0x2f20d9],null,_0x337501)),null;}}else{const _0x3f88b1=_0x2f20d9['getIntersection'](_0x41c027['getFirstRange']());null!==_0x3f88b1&&_0x41c027['_onDiscard']([_0x3f88b1],null,_0x337501);}}if(_0x2f20d9['detach'](),_0x2f20d9['isCollapsed']||'$graveyard'==_0x2f20d9['root']['rootName'])return null;let _0x1a8f18=null,_0x581f55=_0x2f20d9['start'],_0x44d877=_0x2f20d9['end'];const _0x47bc26=this['_findSuggestions'](_0x2f20d9,'deletion');for(const {suggestion:_0x518a1e,meta:_0x8160e5}of _0x47bc26){const _0x4b3a14=this['_model']['createRange'](_0x581f55,_0x44d877);if(_0x8160e5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x8160e5['containsRangeInObject']&&!_0x8160e5['isInsideObject'])){if(_0x518a1e['isMultiRange']){if(!Xt(_0x518a1e,_0x337501))continue;let _0x2f7d4b=!0x0;for(const _0x659f13 of _0x518a1e['getRanges']()){if(_0x659f13['containsRange'](_0x4b3a14,!0x0))return _0x518a1e;_0x4b3a14['containsRange'](_0x659f13)||(_0x2f7d4b=!0x1);}_0x2f7d4b&&_0x518a1e['discard']();}else{const _0x125b95=_0x518a1e['getFirstRange']();if(_0x125b95['containsRange'](_0x4b3a14,!0x0))return _0x518a1e;if(!Xt(_0x518a1e,_0x337501)){_0x4b3a14['containsRange'](_0x125b95)?_0x518a1e['removeMarkers']():_0x125b95['containsPosition'](_0x581f55)?_0x581f55=_0x125b95['end']:_0x125b95['containsPosition'](_0x44d877)&&(_0x44d877=_0x125b95['start']);continue;}_0x581f55=_0x581f55['isBefore'](_0x125b95['start'])?_0x581f55:_0x125b95['start'],_0x44d877=_0x44d877['isAfter'](_0x125b95['end'])?_0x44d877:_0x125b95['end'],_0x337501=Object['assign']({},_0x518a1e['attributes']),_0x1a8f18?_0x125b95['start']['isBefore'](_0x1a8f18['getFirstRange']()['start'])?(_0x1a8f18['removeMarkers'](),_0x1a8f18=_0x518a1e):_0x518a1e['removeMarkers']():_0x1a8f18=_0x518a1e;}}}if(_0x1a8f18)return this['_setSuggestionRange'](_0x1a8f18,this['_model']['createRange'](_0x581f55,_0x44d877)),_0x1a8f18;{const _0x511b96=_0x38a072(),_0x47c707=this['_model']['createRange'](_0x581f55,_0x44d877),_0x4e1ec1=_0x17d59a['id'],_0x32314d=_0x1916a1?'deletion:'+_0x1916a1:'deletion',_0x4b33a8=this['_setSuggestionData']({'id':_0x511b96,'type':_0x32314d,'createdAt':new Date(),'authorId':_0x4e1ec1,'attributes':_0x337501});return this['_addSuggestionMarker'](_0x32314d,_0x511b96,_0x4e1ec1,_0x47c707),_0x4b33a8;}}['markMultiRangeDeletion'](_0x3e9443,_0x31983c='multi',_0x4b600e={}){const _0x2f64a6=this['editor']['plugins']['get']('Users')['me'],_0x423853=_0x3e9443['map'](_0x3b6dca=>new _0x21cd14(_0x3b6dca['start'],_0x3b6dca['end'])),_0x71cc29=new Set();this['_trackingSessionId']&&(_0x4b600e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2aea46,meta:_0x4f823f}of this['_findSuggestions'](_0x423853,'insertion'))_0x4f823f['isOwn']&&!_0x4f823f['isNextTo']&&_0x71cc29['add'](_0x2aea46);for(const _0x351656 of _0x71cc29)if(_0x351656['isMultiRange']){const _0x29cc53=_0x351656['getRanges']();(!_0x351656['attributes']||!_0x351656['attributes']['skipNestingCheck'])&&(_0x29cc53['every'](_0x42c6b8=>_0x423853['some'](_0xa436ff=>_0xa436ff['containsRange'](_0x42c6b8,!0x0)))&&_0x351656['discard']());if(_0x423853['every'](_0x2da1e9=>_0x29cc53['some'](_0x1a3562=>_0x1a3562['containsRange'](_0x2da1e9,!0x0)))){const _0x2797e6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31983c,'accept');return this['forceDefaultExecution'](()=>_0x2797e6(_0x3e9443,null,_0x4b600e)),null;}}else{const _0x33e905=_0x351656['getFirstRange']();_0x423853['some'](_0x57e6ed=>_0x57e6ed['containsRange'](_0x33e905,!0x0))&&_0x351656['discard']();if(_0x423853['every'](_0xfcf852=>_0x33e905['containsRange'](_0xfcf852,!0x0))){const _0x3ce737=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31983c,'accept');return this['forceDefaultExecution'](()=>_0x3ce737(_0x423853,null,_0x4b600e)),null;}}const _0x1367bd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31983c,'join');let _0x2f439f=null;for(const _0x11962f of this['getSuggestions']())if(_0x11962f['author']['id']==_0x2f64a6['id']&&_0x11962f['isInContent']&&'deletion'==_0x11962f['type']&&_0x11962f['subType']==_0x31983c&&Xt(_0x11962f,_0x4b600e)&&(_0x1367bd(_0x11962f['getRanges'](),_0x423853)||_0x1367bd(_0x423853,_0x11962f['getRanges']()))){if(_0x2f439f){if(_0x11962f['commentThread']&&_0x11962f['commentThread']['length'])continue;for(const _0x442472 of _0x11962f['getRanges']())_0x2f439f['isIntersectingWithRange'](_0x442472)||_0x2f439f['addRange'](_0x442472);_0x11962f['removeMarkers']();}else{_0x2f439f=_0x11962f;for(const _0x240ac9 of _0x423853)_0x11962f['isIntersectingWithRange'](_0x240ac9)||_0x11962f['addRange'](_0x240ac9);}}if(_0x2f439f)return _0x2f439f;_0x71cc29['clear']();for(const {suggestion:_0x1ec979,meta:_0x58da59}of this['_findSuggestions'](_0x423853,'deletion'))_0x58da59['isOwn']&&(this['_mergeNestedSuggestions']||!_0x58da59['containsRangeInObject']&&!_0x58da59['isInsideObject'])&&Xt(_0x1ec979,_0x4b600e)&&_0x71cc29['add'](_0x1ec979);for(const _0x1a13ed of _0x71cc29){const _0x37dea1=_0x1a13ed['getRanges']();if(!_0x4b600e||!_0x4b600e['skipNestingCheck']){if(_0x423853['every'](_0x288010=>_0x37dea1['some'](_0x2ef30b=>_0x2ef30b['containsRange'](_0x288010,!0x0))))return _0x1a13ed;}(!_0x1a13ed['attributes']||!_0x1a13ed['attributes']['skipNestingCheck'])&&(_0x37dea1['every'](_0x7514ad=>_0x423853['some'](_0x1a3b5e=>_0x1a3b5e['containsRange'](_0x7514ad,!0x0)))&&_0x1a13ed['discard']());}const _0x39c96d=_0x38a072(),_0x4c49ae=_0x2f64a6['id'],_0x248ae8='deletion:'+_0x31983c,_0xedb678=this['_setSuggestionData']({'id':_0x39c96d,'type':_0x248ae8,'createdAt':new Date(),'authorId':_0x4c49ae,'attributes':_0x4b600e});for(const _0xa17ada of _0x423853)_0xa17ada['detach'](),_0xa17ada['isCollapsed']||'$graveyard'==_0xa17ada['root']['rootName']||this['_addSuggestionMarker'](_0x248ae8,_0x39c96d,_0x4c49ae,_0xa17ada,o['getMultiRangeId']());return _0xedb678;}['markAttributeChange'](_0x141f75,_0x1a2ec1,_0x45e326,_0x5a22ed,_0x269818){if(_0x141f75['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x285c39=this['editor']['plugins']['get']('Users')['me']['id'],_0x57548f=Array['from'](this['_suggestions']['values']())['filter'](_0x23d66b=>'attribute'==_0x23d66b['type']&&_0x23d66b['data']['key']==_0x1a2ec1&&_0x23d66b['isIntersectingWithRange'](_0x141f75));if(this['_trackingSessionId']&&(_0x269818['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0xd7731c=this['_findSuggestions'](_0x141f75,'insertion')['filter'](({meta:_0x43fbfb})=>_0x43fbfb['isOwn']&&!_0x43fbfb['isInsideObject']&&!_0x43fbfb['isNextTo'])['map'](({suggestion:_0x531432})=>_0x531432);_0x57548f['unshift'](..._0xd7731c);}const _0x285dce=new Map([[_0x141f75,_0x45e326]]);for(const _0x26b8cc of _0x57548f){const _0x4eb081='attribute'==_0x26b8cc['type']?_0x26b8cc['data']['oldValue']:void 0x0,_0x14d139=_0x26b8cc['getFirstRange'](),_0xb506a9=Array['from'](_0x285dce['keys']())['find'](_0x14e707=>_0x14e707['isIntersecting'](_0x14d139));if(!_0xb506a9)continue;const _0x3c72dd=_0xb506a9['getDifference'](_0x14d139);this['_isBlockAttribute'](_0x1a2ec1)&&'insertion'==_0x26b8cc['type']&&0x0!=_0x3c72dd['length']||(_0x285dce['delete'](_0xb506a9),_0x3c72dd['forEach'](_0x223db6=>{_0x285dce['set'](_0x223db6,_0x45e326);}),'insertion'!=_0x26b8cc['type']&&_0x4eb081!=_0x5a22ed&&_0x285dce['set'](_0xb506a9['getIntersection'](_0x14d139),_0x4eb081));}const _0x407c35=[];for(const [_0x56afd,_0xaf3914]of _0x285dce){const _0x16957e=_0x38a072(),_0x598385={'key':_0x1a2ec1,'oldValue':_0xaf3914,'newValue':_0x5a22ed};_0x1a2ec1['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':_0x1a2ec1});const _0x231f6a=('attribute:'+(_0x1a2ec1+'|'+Kt({'newValue':_0x5a22ed})))['substring'](0x0,0x3c),_0x6e143a=this['_setSuggestionData']({'id':_0x16957e,'type':_0x231f6a,'data':_0x598385,'createdAt':new Date(),'authorId':_0x285c39,'attributes':_0x269818});_0x407c35['push'](_0x6e143a),this['_addSuggestionMarker'](_0x231f6a,_0x16957e,_0x285c39,_0x56afd);}return _0x407c35;}['enableDefaultAttributesIntegration'](_0x23f5ea){this['enableCommand'](_0x23f5ea,(_0x622660,..._0x4c4ea6)=>{this['_recordAttributeChanges'](()=>{_0x622660(..._0x4c4ea6);});});}['registerBlockAttribute'](_0x4a247c){this['_blockAttributeKeys']['add'](_0x4a247c);}['registerInlineAttribute'](_0xa2f7eb){this['_inlineAttributeKeys']['add'](_0xa2f7eb);}['startTrackingSession'](_0x4ae23b){return this['_trackingSessionId']=void 0x0!==_0x4ae23b?_0x4ae23b:_0x38a072(),this['_trackingSessionId'];}['_getAttributeKey'](_0x14ee35){return'attribute'==_0x14ee35['type']?_0x14ee35['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xdc4578,_0x58fc54){const _0x84879e=_0xdc4578['getFirstMarker']();this['_model']['change'](_0x116018=>{_0x116018['updateMarker'](_0x84879e,{'range':_0x58fc54});});}['_addThreadToSuggestion'](_0x2d1ff9){const _0x3a3730=_0x2d1ff9['id'],_0x33a2ab=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3a3730)||this['_commentsRepository']['addCommentThread']({'channelId':_0x33a2ab,'threadId':_0x3a3730,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3a66fb=this['_commentsRepository']['getCommentThread'](_0x3a3730);_0x3a66fb['unbind']('isRemovable'),_0x3a66fb['isRemovable']=!0x1,_0x2d1ff9['commentThread']=_0x3a66fb;}['_checkSuggestionCorrectness'](_0x2d2479,_0x2fd809,_0x3a718e,_0x4aa434){if(_0x2d2479['type']!=_0x2fd809||_0x2d2479['subType']!=_0x3a718e||_0x2d2479['creator']['id']!=_0x4aa434)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5e9249('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xbc5228,_0xdebb2a){const _0x2a653f=_0xbc5228['getFirstRange']();if(_0xdebb2a['isEqual'](_0x2a653f))_0xbc5228['removeMarkers']();else{if(_0x2a653f['containsRange'](_0xdebb2a)){const _0x3f8be4=this['_model']['createPositionAt'](_0xdebb2a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xbc5228,this['_model']['createRange'](_0x2a653f['start'],_0x3f8be4));const _0x2c8370=_0x38a072(),_0x4034a2=_0xbc5228['creator']['id'],_0x3c1e68=_0xbc5228['type']+':'+_0xbc5228['subType'];this['_setSuggestionData']({'id':_0x2c8370,'type':_0x3c1e68,'createdAt':new Date(),'authorId':_0x4034a2,'data':_0xbc5228['data'],'attributes':_0xbc5228['attributes']});const _0x136e59=this['_model']['createPositionAt'](_0xdebb2a['end']['parent'],'after'),_0x2922b6=this['_model']['createRange'](_0x136e59,_0x2a653f['end']);this['_addSuggestionMarker'](_0x3c1e68,_0x2c8370,_0x4034a2,_0x2922b6);}else{if(_0x2a653f['containsPosition'](_0xdebb2a['start'])){const _0x48eb57=this['_model']['createPositionAt'](_0xdebb2a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xbc5228,this['_model']['createRange'](_0x2a653f['start'],_0x48eb57));}else{const _0x9c7284=this['_model']['createPositionAt'](_0xdebb2a['end']['parent'],'after');this['_setSuggestionRange'](_0xbc5228,this['_model']['createRange'](_0x9c7284,_0x2a653f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4f31ef){for(const {suggestion:_0x27e0ae,meta:_0x38b12e}of this['_findSuggestions'](_0x4f31ef,'insertion')){if(!_0x38b12e['isOwn'])continue;const _0x3cafeb=_0x27e0ae['getRanges']();for(const _0x59106d of _0x3cafeb)if(!_0x4f31ef['getDifference'](_0x59106d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x285980){const _0x536aa1=this['editor']['plugins']['get']('Users')['getUser'](_0x285980);if(!_0x536aa1)throw new _0x5e9249('track-changes-user-not-found',this);return _0x536aa1;}['_getExternalAuthor'](_0x29f954){const _0x116c45=this['editor']['plugins']['get']('Users'),_0x13ee90=_0x1152a2('external:'+_0x29f954),_0x1d7c78=_0x116c45['getUser'](_0x13ee90);return _0x1d7c78||_0x116c45['addUser']({'id':_0x13ee90,'name':_0x29f954});}['_createSuggestion'](_0x5d7654,_0x347264,_0xbe47d,_0x3f6db0,_0x59df18,_0x22754a){const _0x24de7e=this['_getAuthorFromId'](_0x3f6db0),_0x323de1=this['_suggestionFactory']['buildSuggestion'](_0x5d7654,_0x347264,_0xbe47d,_0x24de7e,_0x59df18,_0x15362b=>{this['_updateSuggestionData'](_0xbe47d,{'attributes':_0x15362b});const _0x35f433=this['getSuggestion'](_0xbe47d);this['_joinWithAdjacentSuggestions'](new Set([_0x35f433])),this['_refreshSuggestionsChain'](new Set([_0x35f433]));},_0x22754a);return this['listenTo'](_0x323de1,'accept',()=>{this['_updateSuggestionData'](_0xbe47d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x323de1,'discard',()=>{this['_updateSuggestionData'](_0xbe47d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xbe47d,_0x323de1),this['_suggestionState']['set'](_0x323de1,'notReady'),_0x323de1;}['_splitMarkerName'](_0x243749){const _0x2a7b8f=_0x243749['split'](':');return{'group':_0x2a7b8f[0x0],'type':_0x2a7b8f[0x1],'subType':_0x2a7b8f['length']>=0x5?_0x2a7b8f[0x2]:null,'id':_0x2a7b8f['length']<0x5?_0x2a7b8f[0x2]:_0x2a7b8f[0x3],'authorId':_0x2a7b8f['length']<0x5?_0x2a7b8f[0x3]:_0x2a7b8f[0x4],'markerCount':0x6==_0x2a7b8f['length']?_0x2a7b8f[0x5]:null};}['_breakSuggestionMarker'](_0x2b692f,_0x30bb84,_0x6468ae){const _0xa047a3=_0x2b692f['getFirstRange'](),_0x5f08c4=_0xa047a3['start'],_0x3d353d=_0xa047a3['end'];this['_setSuggestionRange'](_0x2b692f,this['_model']['createRange'](_0x5f08c4,_0x30bb84));const _0xa3b06c=_0x38a072(),_0x4e73b1=_0x2b692f['creator']['id'],_0x1da892=_0x2b692f['type']+(_0x2b692f['subType']?':'+_0x2b692f['subType']:'');this['_setSuggestionData']({'id':_0xa3b06c,'type':_0x1da892,'createdAt':new Date(),'authorId':_0x4e73b1,'originalSuggestionId':_0x2b692f['_originalSuggestionId']||_0x2b692f['id'],'attributes':_0x2b692f['attributes'],'data':_0x2b692f['data']});const _0x59be75=this['_getAttributeKey'](_0x2b692f);('formatBlock'==_0x2b692f['type']||_0x59be75&&this['_isBlockAttribute'](_0x59be75))&&(_0x6468ae=this['_model']['createPositionBefore'](_0x6468ae['parent'])),this['_addSuggestionMarker'](_0x1da892,_0xa3b06c,_0x4e73b1,this['_model']['createRange'](_0x6468ae,_0x3d353d));}['_findSuggestions'](_0x5a5a18,_0x54f8ca=null){const _0x44210b=[],_0x321c8d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5a5a18)||(_0x5a5a18=[_0x5a5a18]);for(const _0x19cb7f of this['getSuggestions']()){if(!_0x19cb7f['isInContent'])continue;if(_0x54f8ca&&_0x19cb7f['type']!=_0x54f8ca)continue;let _0x490684=!0x1;for(const _0xc8b7e5 of _0x19cb7f['getRanges']()){for(const _0x5878a0 of _0x5a5a18){const _0x1c5228=_0x5878a0['start']['isEqual'](_0xc8b7e5['end'])||_0x5878a0['end']['isEqual'](_0xc8b7e5['start']);if(_0x1c5228||_0x5878a0['getIntersection'](_0xc8b7e5)){const _0x426e82=_0x5878a0['containsRange'](_0xc8b7e5)&&Gt(this['_model']['schema'],_0xc8b7e5['start'],_0x5878a0),_0x35fade=_0xc8b7e5['containsRange'](_0x5878a0)&&Gt(this['_model']['schema'],_0x5878a0['start'],_0xc8b7e5);_0x44210b['push']({'suggestion':_0x19cb7f,'meta':{'isOwn':_0x321c8d==_0x19cb7f['author'],'isNextTo':_0x1c5228,'isInsideObject':_0x426e82,'containsRangeInObject':_0x35fade}}),_0x490684=!0x0;break;}}if(_0x490684)break;}}return _0x44210b;}['_addSuggestionMarker'](_0x3c40c3,_0x141ce4,_0xafbeb,_0x20aead,_0x31c957){this['_model']['change'](_0x1ff024=>{let _0xac3a9d='suggestion:'+_0x3c40c3+':'+_0x141ce4+':'+_0xafbeb;_0x31c957&&(_0xac3a9d=_0xac3a9d+':'+_0x31c957),_0x1ff024['addMarker'](_0xac3a9d,{'range':_0x20aead,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4f05d9){const _0x43347a=_0x4f05d9['previous'],_0x4a2774=_0x4f05d9['next'];_0x4f05d9['previous']=null,_0x4f05d9['next']=null,null!=_0x43347a&&_0x43347a['next']==_0x4f05d9&&(_0x43347a['next']=_0x4a2774),null!=_0x4a2774&&_0x4a2774['previous']==_0x4f05d9&&(_0x4a2774['previous']=_0x43347a),'ready'==this['_suggestionState']['get'](_0x4f05d9)&&(this['_suggestionState']['set'](_0x4f05d9,'removed'),this['fire']('suggestionUnloaded',_0x4f05d9,_0x43347a,_0x4a2774));}['_setSuggestionData'](_0x494773){const _0x497e6f=_0x494773['id'],_0x1973de=this['addSuggestionData'](_0x494773);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x37e051=this['editor']['plugins']['get']('PendingActions'),_0x48200b=_0x1973de['hasComments'],_0xc3549a=_0x1973de['subType']?_0x1973de['type']+':'+_0x1973de['subType']:_0x1973de['type'],_0x288d7a=this['editor']['locale'],_0x364461=_0x37e051['add'](c(_0x288d7a,'PENDING_ACTION_SUGGESTION')),_0x409837={'id':_0x497e6f,'type':_0xc3549a,'hasComments':_0x48200b,'data':_0x494773['data']||null,'originalSuggestionId':_0x494773['originalSuggestionId']||null,'attributes':_0x1973de['attributes']};this['_adapter']['addSuggestion'](_0x409837)['then'](_0x15e3fe=>{_0x1973de['_saved']=!0x0,_0x37e051['remove'](_0x364461),_0x15e3fe&&_0x15e3fe['createdAt']&&(this['_suggestions']['get'](_0x497e6f)['createdAt']=_0x15e3fe['createdAt']);})['catch'](_0x418eba=>{throw _0x449267('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1973de['discard']();}),_0x1973de['stopListening'](),this['_suggestions']['delete'](_0x1973de['id']),this['_suggestionState']['delete'](_0x1973de),_0x418eba;});}return _0x1973de;}['_isBlockAttribute'](_0x21be51){return this['_blockAttributeKeys']['has'](_0x21be51);}['_updateSuggestionData'](_0x4edf07,_0x305aa6){const _0x26a759=this['editor']['plugins']['get']('PendingActions'),_0x4c71b7=this['getSuggestion'](_0x4edf07);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4c71b7['_saved']){const _0x47d9d0=_0x26a759['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4edf07,_0x305aa6)['then'](()=>{_0x26a759['remove'](_0x47d9d0);});}else _0x4c71b7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4edf07,_0x305aa6);});}}['_getSuggestionData'](_0x36aee3){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5e9249('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x36aee3);}['_handleNewSuggestionMarker'](_0x1b42a5){const {id:_0x55317a,type:_0x22213b,subType:_0x578a08,authorId:_0x137ab5}=this['_splitMarkerName'](_0x1b42a5),_0x10bb6f=this['_suggestions']['get'](_0x55317a)||this['_createSuggestion'](_0x22213b,_0x578a08,_0x55317a,_0x137ab5,{});switch(this['_checkSuggestionCorrectness'](_0x10bb6f,_0x22213b,_0x578a08,_0x137ab5),this['_suggestionState']['get'](_0x10bb6f)){case'notReady':this['_getSuggestionData'](_0x55317a)['then'](_0x91656e=>{let _0x420869=Promise['resolve']();_0x91656e['hasComments']&&(_0x420869=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x55317a})),_0x420869['then'](()=>{this['addSuggestionData'](_0x91656e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x10bb6f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x55317a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x10bb6f,'ready'),this['fire']('suggestionLoaded',_0x10bb6f);break;case'ready':this['fire']('suggestionChanged',_0x10bb6f);}return _0x10bb6f['addMarkerName'](_0x1b42a5),_0x10bb6f;}['_refreshSuggestionsChain'](_0x19c38c){const _0x3c47cb=Array['from'](_0x19c38c),_0x7aad16=_0x3c47cb['filter'](_0x23d13a=>'attribute'==_0x23d13a['type']);this['_refreshAttributeSuggestionsChain'](_0x7aad16);const _0x496d6d=_0x3c47cb['filter'](_0x100d83=>!_0x100d83['isMultiRange']&&'attribute'!=_0x100d83['type']),_0x2f56b8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41af3f=>!_0x41af3f['isMultiRange']&&'attribute'!=_0x41af3f['type']),_0x2fcc86=_0x2f56b8['filter'](_0x229517=>!_0x19c38c['has'](_0x229517)),_0x3db4b4=new Map(_0x2f56b8['map'](_0x2ab316=>[_0x2ab316,this['_suggestionFactory']['getSuggestionCallback'](_0x2ab316['type'],_0x2ab316['subType'],'chain')])),_0x5b7a6c=new Map(_0x2f56b8['map'](_0xa7cfa8=>[_0xa7cfa8,_0xa7cfa8['getFirstRange']()])),_0xd0101d=new Set(),_0x5e6369=new Set();for(let _0x38d3e8=0x0;_0x38d3e8<_0x496d6d['length'];_0x38d3e8++)_0x219d69(_0x496d6d[_0x38d3e8],_0x496d6d,_0x38d3e8+0x1);for(let _0x38560a=0x0;_0x38560a<_0x496d6d['length'];_0x38560a++)_0x219d69(_0x496d6d[_0x38560a],_0x2fcc86,0x0);const _0x3b64f9=new Set();for(let _0x2b0ba4=0x0;_0x2b0ba4<_0x496d6d['length'];_0x2b0ba4++){const _0x3a5f0e=_0x496d6d[_0x2b0ba4];!_0x5e6369['has'](_0x3a5f0e)&&_0x3a5f0e['previous']&&(_0x3b64f9['add'](_0x3a5f0e['previous']),_0x3a5f0e['previous']['next']===_0x3a5f0e&&(_0x3a5f0e['previous']['next']=null),_0x3a5f0e['previous']=null),!_0xd0101d['has'](_0x3a5f0e)&&_0x3a5f0e['next']&&(_0x3b64f9['add'](_0x3a5f0e['next']),_0x3a5f0e['next']['previous']===_0x3a5f0e&&(_0x3a5f0e['next']['previous']=null),_0x3a5f0e['next']=null);}function _0x219d69(_0x4eab4f,_0x36bc03,_0x23b3b1){for(let _0x51bac9=_0x23b3b1;_0x51bac9<_0x36bc03['length'];_0x51bac9++){const _0x19c825=_0x2d33a3(_0x4eab4f,_0x36bc03[_0x51bac9]);_0x19c825&&(_0x19c825[0x0]['next']=_0x19c825[0x1],_0x19c825[0x1]['previous']=_0x19c825[0x0],_0xd0101d['add'](_0x19c825[0x0]),_0x5e6369['add'](_0x19c825[0x1]));}}function _0x2d33a3(_0x17a3b2,_0x5b4ded){if(_0x17a3b2['author']['id']!==_0x5b4ded['author']['id'])return null;const _0xb66426=_0x3db4b4['get'](_0x17a3b2)(_0x17a3b2,_0x5b4ded,_0x5b7a6c['get'](_0x17a3b2),_0x5b7a6c['get'](_0x5b4ded));if(!_0xb66426)return null;return _0x3db4b4['get'](_0x5b4ded)(_0x17a3b2,_0x5b4ded,_0x5b7a6c['get'](_0x17a3b2),_0x5b7a6c['get'](_0x5b4ded))?_0xb66426[0x1]['commentThread']&&_0xb66426[0x1]['commentThread']['length']?null:_0xb66426:null;}_0x3b64f9['size']&&this['_refreshSuggestionsChain'](_0x3b64f9);}['_refreshAttributeSuggestionsChain'](_0x549901){if(0x0==_0x549901['length'])return;const _0x102d17=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x14545f=>'attribute'==_0x14545f['type']&&_0x14545f['_isDataLoaded']),_0x6cb33b=[],_0x2e83e2=new Map();for(const _0x154137 of _0x102d17){const _0x21c0ad=_0x1152a2(_0x154137['attributes']);_0x2e83e2['has'](_0x21c0ad)||(_0x2e83e2['set'](_0x21c0ad,_0x6cb33b['length']),_0x6cb33b['push']([]));const _0x1d4d50=_0x2e83e2['get'](_0x21c0ad);_0x6cb33b[_0x1d4d50]['push'](_0x154137);}!(function(){_0x6cb33b['sort']((_0x5b715a,_0x20f2e7)=>{const _0x23b85a=_0x5b715a[0x0]['createdAt'],_0x3200ec=_0x20f2e7[0x0]['createdAt'];return _0x23b85a==_0x3200ec?_0x5b715a[0x0]['attributes']['groupId']<_0x20f2e7[0x0]['attributes']['groupId']?-0x1:0x1:_0x23b85a<_0x3200ec?-0x1:0x1;});for(const _0x16306c of _0x6cb33b)_0x16306c['sort']((_0x24246f,_0x2e0aa8)=>_0x24246f['id']<_0x2e0aa8['id']?-0x1:0x1);}());for(let _0x2d8d98=0x0;_0x2d8d98<_0x6cb33b['length'];_0x2d8d98++){if(0x0==_0x6cb33b[_0x2d8d98]['length'])continue;const _0x19e506=[];for(let _0x552ef8=_0x2d8d98+0x1;_0x552ef8<_0x6cb33b['length'];_0x552ef8++)0x0!=_0x6cb33b[_0x552ef8]['length']&&_0x5067f7(_0x6cb33b[_0x2d8d98],_0x6cb33b[_0x552ef8])&&_0x19e506['push'](_0x552ef8);for(const _0x277c65 of _0x19e506)_0x6cb33b[_0x2d8d98]=_0x6cb33b[_0x2d8d98]['concat'](_0x6cb33b[_0x277c65]),_0x6cb33b[_0x277c65]=[];}for(const _0xf3ba9a of _0x6cb33b)for(let _0x53c314=0x0;_0x53c314<_0xf3ba9a['length'];_0x53c314++){const _0x499a8d=_0xf3ba9a[_0x53c314+0x1]||null;_0xf3ba9a[_0x53c314]['next']!==_0x499a8d&&(_0xf3ba9a[_0x53c314]['next']=_0x499a8d);}for(const _0x1287ed of _0x6cb33b)for(let _0x2c1860=0x0;_0x2c1860<_0x1287ed['length'];_0x2c1860++){const _0x2c4201=_0x1287ed[_0x2c1860-0x1]||null;_0x1287ed[_0x2c1860]['previous']!==_0x2c4201&&(_0x1287ed[_0x2c1860]['previous']=_0x2c4201);}function _0x5067f7(_0x4f2172,_0x28d78f){if(_0x4f2172[0x0]['attributes']['groupId']!==_0x28d78f[0x0]['attributes']['groupId']&&_0x4f2172[0x0]['author']!==_0x28d78f[0x0]['author'])return!0x1;if(!function(_0x2bb13a,_0x565422){if(!_0x2bb13a['hasComments']&&!_0x565422['hasComments'])return!0x0;if(_0x2bb13a['hasComments']&&_0x565422['hasComments'])return!0x1;if(_0x2bb13a['hasComments']&&_0x565422['createdAt']<_0x2bb13a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x565422['hasComments']&&_0x2bb13a['createdAt']<_0x565422['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4f2172[0x0],_0x28d78f[0x0]))return!0x1;const _0xe8b1b8=Ft(_0x4f2172[0x0]['attributes'],['groupId','trackingSessionId']),_0x27157c=Ft(_0x28d78f[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x1cc8d5(_0xe8b1b8,_0x27157c))return!0x1;if(_0x4f2172[0x0]['attributes']['groupId']==_0x28d78f[0x0]['attributes']['groupId'])return!0x0;if(_0x4f2172[0x0]['attributes']['trackingSessionId']!==_0x28d78f[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4f2172['every'](_0x3583af=>_0x28d78f['some'](_0x408525=>_0x3583af['getFirstRange']()['isEqual'](_0x408525['getFirstRange']())))&&_0x28d78f['every'](_0x485402=>_0x4f2172['some'](_0x2171a5=>_0x485402['getFirstRange']()['isEqual'](_0x2171a5['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xd5dcaf){const _0x25a8ee=Array['from'](_0xd5dcaf),_0x1df7cb=this['getSuggestions']({'skipNotAttached':!0x0}),_0x407654=_0x1df7cb['filter'](_0x3cc662=>!_0xd5dcaf['has'](_0x3cc662)),_0x270f86=new Map(_0x25a8ee['map'](_0x1a7a56=>[_0x1a7a56,this['_suggestionFactory']['getSuggestionCallback'](_0x1a7a56['type'],_0x1a7a56['subType'],'join')])),_0x2ffc05=new Map(_0x1df7cb['map'](_0x5a93fc=>[_0x5a93fc,_0x5a93fc['getRanges']()]));for(let _0x1f1d58=0x0;_0x1f1d58<_0x25a8ee['length'];_0x1f1d58++){if(_0x2d53d1(this,_0x25a8ee[_0x1f1d58],_0x25a8ee,_0x1f1d58+0x1))return!0x0;}for(let _0x493ce9=0x0;_0x493ce9<_0x25a8ee['length'];_0x493ce9++){if(_0x2d53d1(this,_0x25a8ee[_0x493ce9],_0x407654,0x0))return!0x0;}return!0x1;function _0x2d53d1(_0x2afaf3,_0x22886f,_0x3ab360,_0x546d45){for(let _0x3e92b1=_0x546d45;_0x3e92b1<_0x3ab360['length'];_0x3e92b1++){const _0x5c85fb=_0x3ab360[_0x3e92b1];if(_0x5c85fb['type']!==_0x22886f['type']||_0x5c85fb['author']['id']!==_0x22886f['author']['id']||_0x5c85fb['subType']!==_0x22886f['subType'])continue;if(!Qt(_0x22886f,_0x5c85fb))continue;if('attribute'==_0x22886f['type']&&_0x22886f['data']['oldValue']!=_0x5c85fb['data']['oldValue'])continue;if('attribute'==_0x22886f['type']&&_0x2afaf3['_isBlockAttribute'](_0x22886f['data']['key']))continue;if('formatBlock'==_0x22886f['type']){const _0x4ddb1e=_0x2afaf3['editor']['model'],_0x4a982b=_0x22886f['getContainedElement']();if(_0x4a982b&&(_0x4ddb1e['schema']['isObject'](_0x4a982b)||_0x4ddb1e['schema']['isLimit'](_0x4a982b)))continue;}const _0xec58a5=_0x270f86['get'](_0x22886f),_0x1d6c0a=_0x2ffc05['get'](_0x22886f),_0x2da0f6=_0x2ffc05['get'](_0x5c85fb),_0x589e2b=_0x22886f['commentThread']&&_0x22886f['commentThread']['length'],_0x4fa1ba=_0x5c85fb['commentThread']&&_0x5c85fb['commentThread']['length'];if(!_0x589e2b&&_0xec58a5(_0x2da0f6,_0x1d6c0a))return _0x2afaf3['_joinSuggestions'](_0x5c85fb,_0x22886f),_0x2ffc05['delete'](_0x22886f),!0x0;if(!_0x4fa1ba&&_0xec58a5(_0x1d6c0a,_0x2da0f6))return _0x2afaf3['_joinSuggestions'](_0x22886f,_0x5c85fb),_0x2ffc05['delete'](_0x5c85fb),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2b113e,_0x4890a3){if(_0x2b113e['isMultiRange']){for(const _0x1acbe1 of _0x4890a3['getRanges']())_0x2b113e['addRange'](_0x1acbe1);}else{const _0x352ac9=_0x4890a3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2b113e,this['_model']['createRange'](_0x2b113e['getFirstRange']()['start'],_0x352ac9));}_0x4890a3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5682df,_0x49684d,_0x293593){const _0x1a72f1=_0x5682df['startsWith']('format')||_0x5682df['startsWith']('attribute')?'FORMATTING':_0x5682df['toUpperCase']();return c(this['editor']['locale'],_0x49684d+'_'+_0x1a72f1+'_SUGGESTION_ANNOUNCEMENT',_0x293593);}['_initAriaMarkerChangeAnnouncements'](){const _0xd937db=this['editor'];if(!_0xd937db['ui'])return;const {ariaLiveAnnouncer:_0x46fe17}=_0xd937db['ui'];_0xb989cc(this['_model'],({left:_0x5e1b0d,entered:_0x4859ec})=>{for(const _0x5b2835 of _0x5e1b0d){const {group:_0x3183a2,type:_0x5c602c}=this['_splitMarkerName'](_0x5b2835['name']);if('suggestion'===_0x3183a2){_0x46fe17['announce'](this['_getMarkerAnnouncementText'](_0x5c602c,'LEAVE'));break;}}for(const _0x213147 of _0x4859ec){const {group:_0x560add,type:_0x34878c}=this['_splitMarkerName'](_0x213147['name']);if('suggestion'===_0x560add){_0x46fe17['announce'](this['_getMarkerAnnouncementText'](_0x34878c,'ENTER',_0x4c7332(_0xc353d)));break;}}});}['_processAttributeChanges'](_0x402725){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1e0807=this['editor'],_0x15f508=_0x1e0807['model']['document']['differ']['getChanges']();if(0x0==_0x15f508['length'])return!0x1;const _0x46990b=[],_0x3ef8c2=_0x15f508['filter'](_0x346acb=>'attribute'==_0x346acb['type']),_0x21164b=_0x15f508['filter'](_0xe4ba7f=>'insert'==_0xe4ba7f['type']&&'$text'!=_0xe4ba7f['name']),_0x28ed09=_0x15f508['filter'](_0x264001=>'remove'==_0x264001['type']&&'$text'!=_0x264001['name']);for(const _0x43c8f4 of _0x3ef8c2)_0x46990b['push']({'key':_0x43c8f4['attributeKey'],'newValue':_0x43c8f4['attributeNewValue'],'oldValue':_0x43c8f4['attributeOldValue'],'range':qt(_0x43c8f4['range'],_0x1e0807['model'])});for(const _0x19a951 of _0x21164b){const _0x5da8d2=_0x28ed09['find'](_0x4c9376=>_0x4c9376['position']['isEqual'](_0x19a951['position']));_0x5da8d2&&_0x46990b['push']({'key':u,'newValue':_0x19a951['name'],'oldValue':_0x5da8d2['name'],'range':_0x1e0807['model']['createRangeOn'](_0x19a951['position']['nodeAfter'])});}return 0x0!=_0x46990b['length']&&this['_reduceExistingSuggestions'](_0x402725,_0x46990b);}['_processAttributeSuggestions'](_0x597db7){let _0x36b8d9=!0x1;const _0x16d208=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2babba=>_0x2babba['data']['newRange']&&_0x2babba['name']['startsWith']('suggestion:attribute:'));for(const _0x1bdb36 of _0x16d208){const {subType:_0x4399c3,id:_0x4b4d5f}=this['_splitMarkerName'](_0x1bdb36['name']),_0x285aa7=_0x4399c3['split']('|')[0x0];for(const _0x55a0de of this['getSuggestions']({'skipNotAttached':!0x0}))_0x55a0de['id']!=_0x4b4d5f&&'attribute'==_0x55a0de['type']&&_0x55a0de['data']&&_0x55a0de['data']['key']==_0x285aa7&&_0x55a0de['getFirstRange']()['isIntersecting'](_0x1bdb36['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x55a0de,_0x1bdb36['data']['newRange'],_0x597db7),_0x36b8d9=!0x0);}return _0x36b8d9;}['_recordAttributeChanges'](_0xdbd999){this['_recordAttributeSuggestions']=!0x0,_0xdbd999();}['_isRegisteredAttribute'](_0x30c772){const _0x8b3720=this['_isBlockAttribute'](_0x30c772),_0x20b3b7=this['_inlineAttributeKeys']['has'](_0x30c772);return _0x8b3720||_0x20b3b7;}['_reduceExistingSuggestions'](_0x4d5fe0,_0x49a553){if(0x0==_0x49a553['length'])return!0x1;let _0x250125=!0x1;for(const _0x1e2c1b of _0x49a553){const _0x4a7df5=this['_findSuggestions'](_0x1e2c1b['range'],'attribute')['filter'](_0x126771=>!_0x126771['meta']['isNextTo'])['map'](_0x4044c9=>_0x4044c9['suggestion']),_0x4b8ead=_0x1152a2({'newValue':_0x1e2c1b['newValue']});_0x4a7df5['filter'](_0x5f27a2=>{const [_0x3a5449,_0x17da9f]=_0x5f27a2['subType']['split']('|');return _0x3a5449==_0x1e2c1b['key']&&_0x17da9f!=_0x4b8ead;})['forEach'](_0x2f60b2=>{this['_reduceSuggestionAttributeRange'](_0x2f60b2,_0x1e2c1b['range'],_0x4d5fe0),_0x250125=!0x0;});}return _0x250125;}['_reduceSuggestionAttributeRange'](_0x467ddd,_0x7c24e2,_0x141ed1){const _0x2fe2f5=_0x467ddd['getFirstRange']()['getDifference'](_0x7c24e2);0x0!==_0x2fe2f5['length']?0x1!==_0x2fe2f5['length']?this['_breakSuggestionMarker'](_0x467ddd,_0x7c24e2['start'],_0x7c24e2['end']):this['_setSuggestionRange'](_0x467ddd,_0x2fe2f5[0x0]):_0x141ed1['removeMarker'](_0x467ddd['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4d6e5f){this['_editor']=_0x4d6e5f,this['_model']=_0x4d6e5f['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x401d34,_0x428eb8,_0x27347f,_0x32b6f2,_0x2fa7f8,_0x36c79c,_0x440a5a){return new o(this['_model'],{'type':_0x401d34,'subType':_0x428eb8,'id':_0x27347f,'originalSuggestionId':_0x440a5a,'author':_0x32b6f2,'creator':_0x32b6f2,'attributes':_0x2fa7f8,'onAttributesChange':_0x36c79c,'onAccept':(..._0x1b5a0a)=>this['getSuggestionCallback'](_0x401d34,_0x428eb8,'accept')(..._0x1b5a0a),'onDiscard':(..._0x4b1273)=>this['getSuggestionCallback'](_0x401d34,_0x428eb8,'discard')(..._0x4b1273)});}['registerCustomCallback'](_0x45016d,_0x4b89f7,_0x40953c,_0xd4e89d){const _0x546360=_0x45016d+':'+_0x4b89f7+':'+_0x40953c;this['_customCallbacks']['set'](_0x546360,_0xd4e89d);}['getSuggestionCallback'](_0x480481,_0x2371e9,_0x1eead8){const _0x1d2bb0=_0x480481+':'+_0x2371e9+':'+_0x1eead8;return this['_customCallbacks']['get'](_0x1d2bb0)||this['_defaultCallbacks']['get'](_0x480481+':'+_0x1eead8);}['_registerDefaultCallbacks'](){const _0x2f6ad3=()=>!0x1,_0x38f234=_0x118080=>{_0x118080['sort']((_0x5019ea,_0x594301)=>_0x5019ea['start']['isBefore'](_0x594301['start'])?0x1:-0x1),this['_model']['change'](_0x1144d8=>{for(const _0x16d831 of _0x118080){let _0x423896;_0x423896=_0x16d831['end']['isAtEnd']&&_0x16d831['end']['parent']==_0x16d831['start']['nodeAfter']?_0x1144d8['createSelection'](_0x16d831['start']['nodeAfter'],'on'):_0x1144d8['createSelection'](_0x16d831),this['_model']['deleteContent'](_0x423896,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x216f5b=(_0x4a2dc1,_0x5af9bb)=>{_0x5af9bb&&this['_model']['change'](_0x566318=>{const {commandName:_0x1c1b98,commandParams:_0x467824=[]}=_0x5af9bb,_0x42527b=_0x4a2dc1['map'](_0x1171fd=>(Lt(_0x1171fd)&&(_0x1171fd=this['_model']['createRange'](_0x1171fd['end'])),_0x1171fd))['filter'](_0x518f13=>'$graveyard'!==_0x518f13['root']['rootName']);if(_0x42527b['length']<0x1)return;const _0x126b88=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2ced88=>_0x21cd14['fromRange'](_0x2ced88));_0x566318['setSelection'](_0x42527b);for(const _0x6a6e66 of this['_editor']['commands']['commands']())_0x6a6e66['refresh']();_0x467824['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1c1b98,..._0x467824);const _0x359f4d=_0x126b88['filter'](_0x1e591b=>'$graveyard'!=_0x1e591b['root']['rootName']);_0x359f4d['length']>0x0&&_0x566318['setSelection'](_0x359f4d);for(const _0x76269d of _0x126b88)_0x76269d['detach']();});},_0x3b07a1=(_0x3f9253,_0x4a4939)=>0x1==_0x3f9253['length']&&0x1==_0x4a4939['length']&&_0x3f9253[0x0]['end']['isEqual'](_0x4a4939[0x0]['start']),_0x1c25c1=(_0x5a5db7,_0x7e272f,_0x37d63a,_0x32c8d1)=>Wt(_0x5a5db7,_0x7e272f,_0x37d63a,_0x32c8d1)?[_0x5a5db7,_0x7e272f]:Wt(_0x7e272f,_0x5a5db7,_0x32c8d1,_0x37d63a)?[_0x7e272f,_0x5a5db7]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2f6ad3),this['_defaultCallbacks']['set']('insertion:discard',_0x38f234),this['_defaultCallbacks']['set']('insertion:join',_0x3b07a1),this['_defaultCallbacks']['set']('insertion:chain',_0x1c25c1),this['_defaultCallbacks']['set']('deletion:accept',_0x38f234),this['_defaultCallbacks']['set']('deletion:discard',_0x2f6ad3),this['_defaultCallbacks']['set']('deletion:join',_0x3b07a1),this['_defaultCallbacks']['set']('deletion:chain',_0x1c25c1),this['_defaultCallbacks']['set']('formatInline:accept',_0x216f5b),this['_defaultCallbacks']['set']('formatInline:discard',_0x2f6ad3),this['_defaultCallbacks']['set']('formatInline:join',_0x3b07a1),this['_defaultCallbacks']['set']('formatInline:chain',_0x2f6ad3),this['_defaultCallbacks']['set']('formatBlock:accept',_0x216f5b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2f6ad3),this['_defaultCallbacks']['set']('formatBlock:join',_0x3b07a1),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2f6ad3),this['_defaultCallbacks']['set']('attribute:accept',_0x2f6ad3),this['_defaultCallbacks']['set']('attribute:discard',(_0x133f6b,_0x414b1a)=>{if(!_0x414b1a)return;const _0x21c0e2=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5cf101=>{if(_0x414b1a['key']==u)for(const _0x447245 of _0x133f6b){const _0x235e3d=_0x447245['start']['nodeAfter'],_0x1cdd0e=_0x414b1a['oldValue'];_0x5cf101['rename'](_0x235e3d,_0x1cdd0e);}else{if(_0x21c0e2['_isBlockAttribute'](_0x414b1a['key'])){for(const _0x196d76 of _0x133f6b)void 0x0!==_0x414b1a['oldValue']?_0x5cf101['setAttribute'](_0x414b1a['key'],_0x414b1a['oldValue'],_0x196d76['start']['nodeAfter']):_0x5cf101['removeAttribute'](_0x414b1a['key'],_0x196d76['start']['nodeAfter']);}else{for(const _0x5a5e76 of _0x133f6b)_0x414b1a['oldValue']?_0x5cf101['setAttribute'](_0x414b1a['key'],_0x414b1a['oldValue'],_0x5a5e76):_0x5cf101['removeAttribute'](_0x414b1a['key'],_0x5a5e76);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3b07a1);}}function Gt(_0x22a5cd,_0xbd4ed8,_0x5b033c){for(const _0x45d124 of _0xbd4ed8['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x45d124['root']==_0x45d124)return!0x1;if(!_0x5b033c['containsItem'](_0x45d124))return!0x1;if(_0x22a5cd['isObject'](_0x45d124)||_0x22a5cd['isLimit'](_0x45d124))return!0x0;}return!0x1;}function Lt(_0x3fb557){return _0x3fb557['end']['parent']==_0x3fb557['start']['nodeAfter']&&_0x3fb557['end']['isAtStart'];}function Jt(_0x199332,_0x21df51,_0x675682,_0x4194a9){const _0x46c3de=_0x3831e6=>!_0x3831e6['item']['is']('$textProxy')&&!_0x4194a9['isObject'](_0x3831e6['item']),_0x28c7ae=_0x199332['start']['getLastMatchingPosition'](_0x46c3de),_0x5bc6fd=_0x199332['end']['getLastMatchingPosition'](_0x46c3de,{'direction':'backward'});return(!_0x199332['start']['isEqual'](_0x28c7ae)||!_0x199332['end']['isEqual'](_0x5bc6fd))&&(_0x28c7ae['isBefore'](_0x5bc6fd)?_0x675682['updateMarker'](_0x21df51,{'range':_0x675682['createRange'](_0x28c7ae,_0x5bc6fd)}):_0x675682['removeMarker'](_0x21df51),!0x0);}function Kt(_0x59e24f){return _0x1152a2(_0x59e24f);}function Ht(_0x28a179){const _0x38481e=_0x28a179['start']['nodeAfter'];return _0x38481e&&_0x38481e['is']('element');}function qt(_0xb88d8a,_0x26365f){return null==_0xb88d8a['end']['nodeBefore']&&_0xb88d8a['end']['parent']==_0xb88d8a['start']['nodeAfter']?zt(_0xb88d8a['start']['nodeAfter'],_0x26365f):_0xb88d8a;}function zt(_0x30c04a,_0x20af43){const _0xfe9d0d=_0x20af43['schema']['isObject'](_0x30c04a)||_0x20af43['schema']['isSelectable'](_0x30c04a);return _0x20af43['createRange'](_0x20af43['createPositionAt'](_0x30c04a,'before'),_0xfe9d0d?_0x20af43['createPositionAfter'](_0x30c04a):_0x20af43['createPositionAt'](_0x30c04a,'end'));}function Wt(_0x847454,_0x4df904,_0x1853cc,_0x60b21b){return!!Qt(_0x847454,_0x4df904)&&_0x1853cc['end']['isEqual'](_0x60b21b['start']);}function Qt(_0x685d25,_0x2a2d49){if(!_0x685d25['_isDataLoaded']||!_0x2a2d49['_isDataLoaded'])return!0x1;const _0x209990=new Set(Object['keys'](_0x685d25['attributes'])),_0xbb905b=new Set(Object['keys'](_0x2a2d49['attributes']));if(_0x209990['delete']('groupId'),_0xbb905b['delete']('groupId'),0x0==_0x209990['size']&&0x0==_0xbb905b['size'])return!0x0;if(_0x209990['size']!=_0xbb905b['size'])return!0x1;const _0x1d492a={..._0x685d25['attributes']},_0x2511da={..._0x2a2d49['attributes']};return delete _0x1d492a['groupId'],delete _0x2511da['groupId'],JSON['stringify'](_0x1d492a)==JSON['stringify'](_0x2511da);}function Xt(_0x35e264,_0x5d0250){const _0xcbc1e1=Yt(_0x35e264['attributes']),_0x4a12dd=Yt(_0x5d0250);if(!_0x35e264['_isDataLoaded'])return!0x1;for(const _0x1b2e82 of Object['keys'](_0x4a12dd))if(!_0x1cc8d5(_0xcbc1e1[_0x1b2e82],_0x4a12dd[_0x1b2e82]))return!0x1;return!0x0;}function Yt(_0x4f961e){const _0x12012=Object['assign']({},_0x4f961e);return delete _0x12012['skipNestingCheck'],delete _0x12012['tablePasteChainId'],_0x12012;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5e4a13(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x29f00c,_0x460267,_0x29c9a9,_0x425106){super(),this['model']=_0x460267,this['view']=_0x29c9a9,this['commentThreadController']=_0x425106,this['_editor']=_0x29f00c,this['_acceptCommand']=_0x29f00c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x29f00c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x91d5e,_0x27715a)=>_0x91d5e||_0x27715a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x49aacf=>_0x49aacf&&this['_editor']['model']['canEditAt'](_0x460267['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x404a16=>_0x404a16&&this['_editor']['model']['canEditAt'](_0x460267['getRanges']())),this['_pendingAction']=null,_0x29c9a9['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x29c9a9,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x29c9a9,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x29c9a9,'change:isDirty',()=>{_0x29c9a9['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 _0x1391fa=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1391fa);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x160dd4{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4a8669,_0x165d8a,_0x3a18a6,_0x4842e3){super(_0x4a8669),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x13763c(_0x4a8669,c(_0x4a8669,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x165d8a['authoredAt']),this['bind']('authoredAt')['to'](_0x165d8a),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',_0x165d8a,'authoredAt',this,'descriptionParts',(_0x20b670,_0xe761f5,_0x3f9418)=>{const _0x2c9a14=_0x3f9418['map'](_0x459103=>ls(_0x459103['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x20b670-0x1,_0x165d8a['author']['name'],_0xe761f5?_0x4842e3['formatDateTime'](_0xe761f5):'',new DOMParser()['parseFromString'](_0x2c9a14,'text/html')['body']['textContent']]);}),this['focusables']=new _0x282e9a(),this['focusTracker']=new _0x4d2e11(),this['keystrokes']=new _0x3b3830(),this['focusCycler']=new _0x11e62c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1becd7=>_0x1becd7['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x165d8a,this['_localUser']=_0x3a18a6,this['_config']=_0x4842e3,_0x4842e3['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4cd8d1(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x195417}=this['_config'];this['commentsListView']=new _0x195417(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',_0x571225=>_0x571225+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x160c26,_0x3e9b8c)=>_0x160c26||!!_0x3e9b8c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5f08dd}=this['_config'],_0x391e50=new _0x5f08dd(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3be586=_0x391e50['commentInputView'];return _0x391e50['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3be586,'value',(_0x17ba88,_0x5c84ec,_0x549f84)=>!!_0x549f84||_0x17ba88&&!_0x5c84ec),_0x3be586['on']('submit',(_0x1c2e04,_0x50804b)=>{this['fire']('addComment',_0x50804b),_0x3be586['editor']['setData']('');}),_0x3be586['on']('cancel',()=>this['focus']()),_0x3be586['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x391e50;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5e7656,_0x5da942,_0x3271c6,_0x3052f4){super(_0x5e7656,_0x5da942,_0x3271c6,_0x3052f4),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5ace66=>_0x5ace66&&_0x5ace66[0x0]?_0x5ace66[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1466c6,_0xd99ef6)=>{let _0x2c3e66='';for(const _0x1462af of _0x1466c6)_0x2c3e66+='<p>'+ls(_0x1462af['content'],_0x1462af['color'])+'</p>';return _0xd99ef6?_0x2c3e66:ti(_0x2c3e66,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3052f4['SuggestionView'](_0x5e7656,_0x5da942,{'formatDateTime':_0x3052f4['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 _0x5ac428=this['bindTemplate'],_0x28e59e=[this['suggestionView']];return this['commentsListView']&&_0x28e59e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x28e59e['push'](this['commentThreadInputView']),_0x28e59e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5ac428['if']('isActive','ck-suggestion-wrapper--active'),_0x5ac428['to']('type',_0x1e663c=>'ck-suggestion-'+_0x1e663c),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':_0x5ac428['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x28e59e};}['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 _0x160dd4{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2a247e,_0x17108d,_0x9425cf){super(_0x2a247e),this['_model']=_0x17108d,this['_config']=_0x9425cf,this['set']('description',''),this['bind']('authoredAt')['to'](_0x17108d),this['acceptButton']=this['_createButton'](c(_0x2a247e,'Accept\x20suggestion'),_0x1b3868,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x2a247e,'Discard\x20suggestion'),_0x3e114e,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1628b5(_0x2a247e,_0x17108d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x282e9a([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4d2e11(),this['keystrokes']=new _0x3b3830(),this['focusCycler']=new _0x11e62c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5cdd09=>_0x5cdd09['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x44d69d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x44d69d['innerHTML']=this['description'],this['on']('change:description',(_0xf14c8e,_0x10534d,_0x2e2d9a)=>{_0x44d69d['innerHTML']=_0x2e2d9a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4dee3e=this['bindTemplate'],_0x40d571=[{'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':_0x4dee3e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4dee3e['to']('authoredAt',_0x1db097=>this['_config']['formatDateTime'](_0x1db097))}]}]},{'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']&&_0x40d571['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':_0x40d571}]};}['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'](_0x5d965f,_0x20fda5,_0x4d2831,_0x411048,_0xbc3f32){const _0x3fa049=new _0x25ba23(this['locale']);return _0x3fa049['set']({'label':_0x5d965f,'icon':_0x20fda5,'tooltip':!0x0,'tooltipPosition':_0xbc3f32}),_0x3fa049['extendTemplate']({'attributes':{'class':_0x4d2831}}),_0x3fa049['on']('execute',()=>{this['fire'](_0x411048,this['_model']['id']);}),_0x3fa049;}['_setupKeyboardNavigation'](){const _0x2b0367=this['element'];this['keystrokes']['listenTo'](_0x2b0367);for(const _0x1a3254 of this['focusables'])this['focusTracker']['add'](_0x1a3254['element']),this['keystrokes']['listenTo'](_0x1a3254['element']);this['keystrokes']['set']('enter',(_0x2d663f,_0x1a6a49)=>{_0x2b0367===_0x2d663f['target']&&(this['focusCycler']['focusFirst'](),_0x1a6a49());}),this['keystrokes']['set']('esc',(_0x992482,_0x1f6453)=>{_0x2b0367!==_0x992482['target']&&(this['focus'](),_0x1f6453());});}}class d extends _0x385d2b{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x147b02,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa3791b){super(_0xa3791b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3ea3c6=this['editor']['config'];_0x3ea3c6['define']('trackChanges.SuggestionThreadView',fe),_0x3ea3c6['define']('trackChanges.SuggestionView',we),_0x3ea3c6['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3ea3c6['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1f765c,_0x2ddb21){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4397ad,_0x58ea88]of this['_handleControllerBuffer']){const _0xf6a94=this['_suggestionToController']['has'](_0x4397ad);_0xf6a94||_0x58ea88?_0xf6a94&&_0x58ea88&&this['_destroyController'](_0x4397ad):this['_initializeController'](_0x4397ad);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1f765c,_0x2ddb21);}['init'](){const _0x32dc5b=this['editor'],_0x4c2649=_0x32dc5b['plugins']['get']('TrackChangesEditing'),_0x21153a=_0x32dc5b['plugins']['get']('Annotations'),_0x2d8d2e=_0x32dc5b['plugins']['get']('EditorAnnotations'),_0x1b1b1d=_0x32dc5b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2d8d2e['addSourceCollector'](()=>{const _0x93b5ad=[];for(const [_0x2f5421,_0x2bcca0]of Array['from'](this['_suggestionToController'])){const _0x48c871=_0x2f5421['getAllAdjacentSuggestions'](),_0x499bb3=[];for(const _0x21204a of _0x48c871){if(!_0x21204a['isInContent'])continue;if(_0x21204a['isMultiRange']){_0x499bb3['push'](..._0x21204a['getRanges']());continue;}const _0x226622=_0x21204a['getFirstRange']();if(_0x499bb3['length']>0x0){const _0x349d95=_0x499bb3[0x0]['getJoined'](_0x226622);if(_0x349d95){_0x499bb3[0x0]=_0x349d95;continue;}}_0x499bb3['push'](_0x226622);}_0x93b5ad['push']([_0x2bcca0['view'],_0x499bb3]);}return _0x93b5ad;}),this['listenTo'](_0x4c2649,'suggestionLoaded',(_0x42528a,_0x301668)=>{this['listenTo'](_0x301668,'change:previous',(_0x3ad45f,_0x2b10d8,_0x1e37cf,_0x37aaa1)=>{_0x301668['isInContent']&&(null==_0x1e37cf?(this['_updateController'](_0x37aaa1['head']),this['_handleSuggestionControllerDelayed'](_0x301668,!0x1)):(this['_updateController'](_0x1e37cf['head']),null==_0x37aaa1&&this['_handleSuggestionControllerDelayed'](_0x301668,!0x0)));}),null!==_0x301668['previous']?this['_updateController'](_0x301668['head']):this['_handleSuggestionControllerDelayed'](_0x301668,!0x1);}),this['listenTo'](_0x4c2649,'suggestionUnloaded',(_0x1feb19,_0x406b64,_0xe4209d)=>{this['stopListening'](_0x406b64,'change:previous'),this['_handleControllerBuffer']['delete'](_0x406b64),this['_suggestionToController']['has'](_0x406b64)&&this['_destroyController'](_0x406b64),_0xe4209d&&this['_updateController'](_0xe4209d['head']);}),this['listenTo'](_0x4c2649,'suggestionChanged',(_0x5c1b90,_0x3a5f52)=>{this['_updateController'](_0x3a5f52);}),this['listenTo'](_0x21153a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1b1b1d,'addComment',(_0x2ea490,{threadId:_0x2deb6c,isFromAdapter:_0x4339cb})=>{if(_0x4339cb||!_0x4c2649['hasSuggestion'](_0x2deb6c))return;const _0x24ce19=_0x4c2649['getSuggestion'](_0x2deb6c);this['_suggestionToController']['get'](_0x24ce19)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x32c5e5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xf1f871;for(const _0x53858f in _0x32c5e5){const _0x4a84ce=_0x53858f,_0x5082d5=_0x32c5e5[_0x4a84ce];if('trackChangesLicenseKeyValid'==_0x5082d5||'trackChangesLicenseKeyInvalid'==_0x5082d5||'trackChangesLicenseKeyExpired'==_0x5082d5||'trackChangesLicenseKeyDomainLimit'==_0x5082d5||'trackChangesLicenseKeyNotAllowed'==_0x5082d5||'trackChangesLicenseKeyEvaluationLimit'==_0x5082d5||'trackChangesLicenseKeyTrialLimit'==_0x5082d5||'trackChangesLicenseKeyUsageLimit'==_0x5082d5){delete _0x32c5e5[_0x4a84ce],_0xf1f871=_0x5082d5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xf1f871&&_0x32c5e5['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xf1f871&&_0x32c5e5['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xf1f871&&_0x32c5e5['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xf1f871&&_0x32c5e5['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xf1f871&&_0x32c5e5['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xf1f871&&_0x32c5e5['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xf1f871&&_0x32c5e5['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x12b8e0=this['editor']['plugins']['get']('Annotations'),_0x2c789c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8cd0a2=Array['from'](_0x12b8e0['activeAnnotations'],_0x4f5389=>_0x4f5389['innerView'])['filter'](_0x474dba=>this['_viewToController']['has'](_0x474dba)),_0x5f3e34=[];for(const _0x11bf30 of _0x8cd0a2){const _0x278f0a=this['_viewToController']['get'](_0x11bf30)['model']['getAllAdjacentSuggestions']();_0x5f3e34['push'](..._0x278f0a['reduce']((_0x2945e0,_0xf34b8f)=>[..._0x2945e0,..._0xf34b8f['getMarkerNames']()],[]));}_0x2c789c['activeMarkers']=_0x5f3e34;}['_addUIComponentsToFactory'](){const _0x2c6784=this['editor'],_0x2ec05a=_0x2c6784['locale'],_0xe2e9bd=c(_0x2ec05a,'Track\x20changes'),_0x2e7756=new _0x2fed68([{'type':'switchbutton','model':new _0x2ad1ea({'withText':!0x0,'isToggleable':!0x0,'label':_0xe2e9bd,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2ad1ea({'withText':!0x0,'label':c(_0x2ec05a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ad1ea({'withText':!0x0,'label':c(_0x2ec05a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ad1ea({'withText':!0x0,'label':c(_0x2ec05a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ad1ea({'withText':!0x0,'label':c(_0x2ec05a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2c6784['plugins']['has']('TrackChangesPreview')&&_0x2e7756['addMany']([{'type':'separator'},{'type':'button','model':new _0x2ad1ea({'withText':!0x0,'label':c(_0x2ec05a,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4c0fb5 of _0x2e7756)if(ke(_0x4c0fb5)){const _0x2db6f9=_0x2c6784['commands']['get'](_0x4c0fb5['model']['commandName']);_0x4c0fb5['model']['bind']('isOn','isEnabled')['to'](_0x2db6f9,'value','isEnabled');}_0x2c6784['ui']['componentFactory']['add']('trackChanges',_0x187973=>this['_createToolbarButton'](_0x187973,_0x2e7756,_0xe2e9bd)),_0x2c6784['ui']['componentFactory']['add']('menuBar:trackChanges',_0x313e0f=>this['_createMenuBarMenu'](_0x313e0f,_0x2e7756,_0xe2e9bd));}['_createToolbarButton'](_0x969aa6,_0x5264b5,_0x43bac6){const _0x466c1b=_0x5b6ead(_0x969aa6,_0x1b9d33),_0x266ee2=this['editor']['commands']['get']('trackChanges');_0x466c1b['buttonView']['set']({'tooltip':_0x43bac6,'label':_0x43bac6,'icon':_0x53e025}),_0x466c1b['buttonView']['bind']('isOn')['to'](_0x266ee2,'value'),_0x466c1b['buttonView']['on']('execute',()=>{_0x266ee2['execute'](),this['editor']['editing']['view']['focus']();}),_0x30b889(_0x466c1b,_0x5264b5,{'role':'menu'});const _0xcb081a=[];for(const _0x39ec7b of _0x5264b5)ke(_0x39ec7b)&&_0xcb081a['push'](this['editor']['commands']['get'](_0x39ec7b['model']['commandName']));const _0x7efb1b=_0x466c1b['buttonView'];return _0x7efb1b['actionView']['unbind']('isEnabled'),_0x7efb1b['arrowView']['unbind']('isEnabled'),_0x7efb1b['actionView']['bind']('isEnabled')['to'](_0x266ee2,'isEnabled'),_0x7efb1b['arrowView']['bind']('isEnabled')['toMany'](_0xcb081a,'isEnabled',(..._0x1fd26e)=>_0x1fd26e['some'](_0x234b17=>_0x234b17)),_0x466c1b['on']('execute',_0x55ced1=>{this['editor']['execute'](_0x55ced1['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x466c1b;}['_createMenuBarMenu'](_0x435667,_0x421cd3,_0x675c46){const _0xd1f927=new _0x3c88f7(_0x435667),_0x56804c=this['editor']['commands']['get']('trackChanges');_0xd1f927['buttonView']['set']({'label':_0x675c46,'icon':_0x53e025});const _0x3b4fcd=new _0x141f2a(_0x435667);for(const _0x169a42 of _0x421cd3){if('separator'==_0x169a42['type']){_0x3b4fcd['items']['add'](new _0x51174f(_0x435667));continue;}const _0x1e03df=new _0x3d5574(_0x435667,_0xd1f927),_0x5eacf5=new _0x4e727c(_0x435667),_0x5c8ab0=_0x169a42['model'];_0x5eacf5['bind'](...Object['keys'](_0x5c8ab0))['to'](_0x5c8ab0),_0x5eacf5['delegate']('execute')['to'](_0xd1f927),_0x5eacf5['on']('execute',()=>{this['editor']['execute'](_0x5c8ab0['commandName']),this['editor']['editing']['view']['focus']();}),_0x1e03df['children']['add'](_0x5eacf5),_0x3b4fcd['items']['add'](_0x1e03df);}return _0xd1f927['bind']('isEnabled')['to'](_0x56804c,'isEnabled'),_0xd1f927['panelView']['children']['add'](_0x3b4fcd),_0xd1f927;}['_initializeController'](_0x388890){const _0x8b2cf4=this['editor'],_0x35dcee=_0x8b2cf4['config'],_0x1c980f=_0x8b2cf4['plugins']['get']('Annotations'),_0x4df293=_0x8b2cf4['plugins']['get']('CommentsRepository'),_0x21fe10=_0x8b2cf4['plugins']['get']('EditorAnnotations'),_0x415478=_0x8b2cf4['plugins']['get'](_0x147b02)['me'],_0x464948=_0x35dcee['get']('trackChanges')['SuggestionThreadView'],_0x21d460=_0x35dcee['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4fd8cc,CommentThreadInputView:_0x56a966}=_0x8b2cf4['plugins']['get']('CommentsUI');let _0x13665f,_0x35e37d,_0x2ac350;this['_annotationViews']['has'](_0x388890['id'])?(_0x35e37d=this['_annotationViews']['get'](_0x388890['id']),_0x13665f=_0x35e37d['mainView']):(_0x13665f=new _0x464948(_0x8b2cf4['locale'],_0x388890,_0x415478,{'disableComments':this['_disableComments'],'editorConfig':{..._0x35dcee['get']('comments.editorConfig'),'licenseKey':_0x35dcee['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x35dcee['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x35dcee['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x35dcee['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x352c5a(_0x35dcee['get']('locale'),_0x8b2cf4['locale']),'CommentView':_0x35dcee['get']('comments')['CommentView'],'CommentsListView':_0x4fd8cc,'CommentThreadInputView':_0x56a966,'SuggestionView':_0x21d460}),_0x13665f['suggestionView']['acceptButton']['on']('execute',()=>{_0x8b2cf4['editing']['view']['focus']();}),_0x13665f['suggestionView']['discardButton']['on']('execute',()=>{_0x8b2cf4['editing']['view']['focus']();}),_0x35e37d=_0x1c980f['createAnnotationView'](this['editor']['locale'],_0x13665f),_0x35e37d['bind']('isDirty')['to'](_0x13665f,'isDirty'),_0x35e37d['bind']('length')['to'](_0x13665f),_0x35e37d['bind']('type')['to'](_0x13665f,'type',_0x20a1e1=>'suggestion-'+_0x20a1e1),_0x13665f['on']('escape',()=>{_0x2ac350['fire']('escape');}),this['_annotationViews']['set'](_0x388890['id'],_0x35e37d));const _0x335dca=_0x4df293['createCommentThreadController'](_0x388890['commentThread'],_0x13665f),_0x449edd=new pe(_0x8b2cf4,_0x388890,_0x13665f,_0x335dca),_0x1542b0=_0x388890['getAllAdjacentSuggestions']()['filter'](_0x4171a3=>_0x4171a3['isInContent']);_0x13665f['descriptionParts']=_0x8b2cf4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1542b0),this['_suggestionToController']['set'](_0x388890,_0x449edd),this['_viewToController']['set'](_0x13665f,_0x449edd),_0x2ac350=_0x1c980f['createAnnotation']({'view':_0x35e37d,'target':()=>{const _0x13d49b=[],_0x86d2b4=_0x388890['getAllAdjacentSuggestions']()['filter'](_0x5bb608=>_0x5bb608['isInContent']);for(const _0x15c92c of _0x86d2b4)_0x13d49b['push'](..._0x15c92c['getMarkers']());return _0x105a56(_0x8b2cf4['editing'],_0x13d49b);},'type':()=>'suggestion-'+_0x449edd['view']['type']}),_0x4df293['_bindAnnotationToEditors'](_0x13665f,_0x2ac350),_0x1c980f['add'](_0x2ac350),_0x21fe10['registerAnnotation'](_0x2ac350);}['_destroyController'](_0x2f7bda){const _0x3e700b=this['editor']['plugins']['get']('CommentsRepository'),_0x46fdb1=this['editor']['plugins']['get']('Annotations'),_0x3d3508=this['_suggestionToController']['get'](_0x2f7bda),_0x4d5d18=_0x3d3508['view'],_0x5c507d=_0x46fdb1['getByInnerView'](_0x4d5d18);_0x3e700b['_unbindEditors'](_0x4d5d18),_0x5c507d&&_0x46fdb1['remove'](_0x5c507d),this['_suggestionToController']['delete'](_0x2f7bda),this['_viewToController']['delete'](_0x4d5d18),_0x3d3508['destroy']();}['_updateController'](_0xf13054){if(!_0xf13054['isInContent']||!this['_suggestionToController']['has'](_0xf13054))return;const _0x2625f9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11af1e=this['_suggestionToController']['get'](_0xf13054),_0x411d2d=_0xf13054['getAllAdjacentSuggestions']();_0x11af1e['view']['descriptionParts']=_0x2625f9['descriptionFactory']['getDescriptions'](_0x411d2d);}['destroy'](){for(const _0x26a307 of this['_suggestionToController']['keys']())this['_destroyController'](_0x26a307);for(const _0x5bd25f of this['_annotationViews']['values']())_0x5bd25f['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x23d743){return'model'in _0x23d743;}class k extends _0x385d2b{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x159399){this['editor']['plugins']['get'](p)['adapter']=_0x159399;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x8f04f4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x8f04f4);}['getSuggestions']({skipNotAttached:_0x4c59ab=!0x1,toJSON:_0x138101=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4c59ab,'toJSON':_0x138101});}['getSuggestion'](_0x56898c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x56898c);}}const w=['Pagination'];class T extends _0x385d2b{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3e31ea=this['editor'];if(_0x3e31ea['config']['define']('trackChangesData.editorCreator',_0x6d2400=>{const _0x4933ed=_0x3e31ea['model']['document']['getRootNames']()['reduce']((_0xf83949,_0x2db9ad)=>(_0xf83949[_0x2db9ad]='',_0xf83949),{});return _0x3e31ea['constructor']['create'](_0x4933ed,_0x6d2400);}),'function'!=typeof _0x3e31ea['config']['get']('trackChangesData')['editorCreator'])throw new _0x5e9249('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5c3076){return N(this['editor'],!0x0,_0x5c3076);}['getDataWithDiscardedSuggestions'](_0x16164e){return N(this['editor'],!0x1,_0x16164e);}}class D extends _0x385d2b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ffde2){function _0xbe1d66(_0xa3d538){return _0xa3d538['map'](_0x303012=>String['fromCharCode'](_0x303012))['join']('');}super(_0x5ffde2),this['result']='end',_0x5ffde2[_0xbe1d66([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbe1d66([0x76,0x69,0x65,0x77])][_0xbe1d66([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xbe1d66([0x61,0x75,0x74,0x6f]),_0x5ffde2[_0xbe1d66([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xbe1d66([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xbe1d66([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xbe1d66([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xbe1d66([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(_0x3d8ece){return void 0x0!==_0x3d8ece['getRootsAttributes'];}async function N(_0x41e2a7,_0x43196f,_0x3a5069){const _0x5ee6e2=_0x4eadee(_0x41e2a7,w);_0x5ee6e2['plugins']['push'](p,D),_0x5ee6e2['rootsAttributes']=Ge(_0x41e2a7)?_0x41e2a7['getRootsAttributes']():void 0x0;const _0x3a4048=document['createDocumentFragment'](),_0x26097f=_0x41e2a7['config']['get']('trackChangesData')['editorCreator'],_0x5d4426=await _0x26097f(_0x5ee6e2,()=>function(_0x362063){const _0xc55a12=document['createElement']('div');return _0x362063['appendChild'](_0xc55a12),_0xc55a12;}(_0x3a4048));!function(_0x3534cd,_0x8a10ad){const _0x5daceb=_0x3534cd['model']['document']['getRootNames']()['reduce']((_0x45764e,_0x364511)=>(_0x45764e[_0x364511]=_0x3534cd['data']['get']({'rootName':_0x364511}),_0x45764e),{}),_0x321711=_0x3534cd['plugins']['get']('Users')['users']['map'](_0x10cc7f=>({'id':_0x10cc7f['id'],'name':_0x10cc7f['name']})),_0x40cdbe=_0x3534cd['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x12a85e=_0x3534cd['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4dc84d=_0x8a10ad['plugins']['get']('Users'),_0x4b00d5=_0x8a10ad['plugins']['get']('TrackChangesEditing'),_0x4909d9=_0x8a10ad['plugins']['get']('CommentsRepository');for(const _0x50f0a7 of _0x4909d9['getCommentThreads']())_0x50f0a7['remove']();for(const _0x4cf20e of _0x321711)_0x4dc84d['getUser'](_0x4cf20e['id'])||_0x4dc84d['addUser'](_0x4cf20e);_0x4dc84d['me']||_0x4dc84d['useAnonymousUser']();for(const _0x397dd9 of _0x12a85e)_0x4909d9['addCommentThread'](_0x397dd9);for(const _0x45beec of _0x40cdbe)_0x4b00d5['addSuggestionData'](_0x45beec);_0x8a10ad['data']['set'](_0x5daceb);}(_0x41e2a7,_0x5d4426),_0x5d4426['execute'](_0x43196f?'acceptAllSuggestions':'discardAllSuggestions');const _0x45fbf6=Ge(_0x5d4426)?_0x5d4426['getFullData'](_0x3a5069):_0x5d4426['data']['get'](_0x3a5069);return await _0x5d4426['destroy'](),_0x45fbf6;}class Me extends _0x160dd4{['options'];constructor(_0x20b51a,_0x50e0ed){super(_0x20b51a),this['options']=_0x50e0ed,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'](_0x34e4f0,_0x78c1ac){if(!this['element'])return;const _0x2b3cab=[];for(const [_0x33a58d,_0x1ee67e]of _0x34e4f0){const _0x18f4b2=document['createElement']('div');_0x18f4b2['setAttribute']('data-ck-root-name',_0x33a58d),_0x18f4b2['className']=_0x1ee67e['classes']+'\x20ck-track-changes-preview__root-container',_0x18f4b2['innerHTML']=_0x1ee67e['content'],_0x2b3cab['push'](_0x18f4b2);}_0x78c1ac(this['element'],_0x2b3cab),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x2f89f8{constructor(_0x497482){super(_0x497482),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5ee5d1=this['editor'],_0x599552=_0x5ee5d1['locale'],_0x55fd52=_0x5ee5d1['plugins']['get']('Dialog');let _0x5828e0;const _0x20199c=function(_0x2e9183){const _0x4b23bc={};if('editables'in _0x2e9183['ui']['view']){for(const [_0x3da151,_0x19db20]of Object['entries'](_0x2e9183['ui']['view']['editables']))_0x4b23bc[_0x3da151]=_0x19db20['element'];}else _0x4b23bc[_0x2e9183['model']['document']['getRootNames']()[0x0]]=_0x2e9183['ui']['view']['editable']['element'];return _0x4b23bc;}(_0x5ee5d1),_0x219da1=function(_0x182b1e){let _0x1a2955=0x0;for(const _0x37b9a6 of Object['values'](_0x182b1e))_0x1a2955=Math['max'](_0x1a2955,_0x37b9a6['getBoundingClientRect']()['width']);let _0x3a3ec4=0x0;for(const _0x4a73b3 of Object['values'](_0x182b1e))_0x3a3ec4+=_0x4a73b3['getBoundingClientRect']()['height'];const _0x3aab5f=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x114184=Math['min'](_0x3a3ec4,_0x3aab5f);return{'width':_0x1a2955,'height':_0x114184};}(_0x20199c);_0x55fd52['show']({'id':'finalContentPreview','title':c(_0x599552,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x599552,{'dialogRects':_0x219da1}),'onHide':()=>{_0x5828e0['detachFromDom']();},'onShow':()=>{_0x5ee5d1['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x158687=>{const _0xca38e5=this['_standarizeRootsData'](_0x158687,_0x5ee5d1,_0x20199c);_0x55fd52['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xca38e5,_0x5ee5d1['config']['get']('trackChanges.preview.renderFunction'));}),_0x5828e0=new _0x4afe6b(_0x599552,[_0x55fd52['view']]),_0x5828e0['attachToDom'](),_0x5828e0['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5ee5d1['once']('destroy',()=>{_0x5828e0['detachFromDom']();});const _0x474eb8=_0x55fd52['view']['headerView']['class'];_0x55fd52['view']['headerView']['class']=_0x474eb8?_0x474eb8+'\x20ck-reset_all':'ck-reset_all',_0x55fd52['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x55fd52['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x123b71=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xdb509b=_0x123b71['previewMode'],_0x1dd289={};if('$labels'===_0xdb509b){for(const _0x638eae of _0x123b71['getMergeFieldsIds']())_0x1dd289[_0x638eae]=_0x123b71['getLabel'](_0x638eae)||_0x638eae;}else{const _0x555026='$defaultValues'===_0xdb509b?_0x123b71['getDefaultValues']():_0x123b71['getDataSetValues'](_0xdb509b,!0x0);for(const _0x3e3271 of Object['entries'](_0x555026)){const [_0x1264bf,_0x4e48ae]=_0x3e3271;_0x1dd289[_0x1264bf]=null!==_0x4e48ae?_0x4e48ae:_0x123b71['getLabel'](_0x1264bf)||_0x1264bf;}}return{'mergeFieldsData':_0x1dd289};}['_standarizeRootsData'](_0xaf4047,_0x5e90a7,_0x84d605){let _0x20f695;if('string'==typeof _0xaf4047){const _0x443470=_0x5e90a7['model']['document']['getRootNames']()[0x0];_0x20f695={[_0x443470]:_0xaf4047};}else _0x20f695=_0xaf4047;const _0x14a06d=this['_fixMediaEmbeds'](_0x20f695,_0x5e90a7),_0x7ab022=function(_0x81d607,_0x35835d){for(const [_0x1a8118,_0x40c3d8]of _0x81d607)_0x40c3d8['classes']=_0x35835d[_0x1a8118]['classList']['value']['replace']('ck-focused','');return _0x81d607;}(this['_sortRoots'](_0x5e90a7)['reduce']((_0xf5503b,_0x241031)=>(_0xf5503b['push']([_0x241031,{'content':_0x14a06d[_0x241031],'classes':''}]),_0xf5503b),[]),_0x84d605);return _0x7ab022;}['_fixMediaEmbeds'](_0x24748c,_0x344993){if(!_0x344993['plugins']['has']('MediaEmbedEditing'))return _0x24748c;const _0x23774e=_0x344993['plugins']['get']('MediaEmbedEditing');for(const [_0x4ee3d2,_0x27476a]of Object['entries'](_0x24748c)){const _0x3dc717=document['createElement']('div');_0x3dc717['innerHTML']=_0x27476a,(_0x3dc717['querySelectorAll']('figure.media')['forEach'](_0xf63b6c=>{const _0x3d5d69=_0xf63b6c['querySelector']('oembed');if(_0x3d5d69){const _0xc59521=_0x3d5d69['getAttribute']('url');if(_0xc59521){const _0x5190f0=_0x23774e['registry']['getMediaViewElement'](new _0x82119c(_0x344993['editing']['view']['document']),_0xc59521,{'elementName':'','renderForEditingView':!0x0}),_0x5e8e45=document['createElement']('div');_0x5e8e45['classList']['add']('ck-media__wrapper'),_0x5190f0['render'](_0x5e8e45,_0x344993['editing']['view']['domConverter']),_0x3d5d69['replaceWith'](_0x5e8e45);}}}),_0x24748c[_0x4ee3d2]=_0x3dc717['innerHTML']);}return _0x24748c;}['_sortRoots'](_0x44fb6a){if(!function(_0x571bbc){return void 0x0!==_0x571bbc['getRootsAttributes'];}(_0x44fb6a))return _0x44fb6a['model']['document']['getRootNames']();const _0x385a57=[],_0x405794=new Map();for(const _0x268a76 of _0x44fb6a['model']['document']['getRootNames']()){const _0xe1e593=_0x44fb6a['editing']['view']['getDomRoot'](_0x268a76)['getClientRects']()['item'](0x0);_0x385a57['push'](_0x268a76),_0x405794['set'](_0x268a76,_0xe1e593);}return _0x385a57['sort']((_0x263e0e,_0x33197b)=>{const _0x2148d1=_0x405794['get'](_0x263e0e),_0x30c449=_0x405794['get'](_0x33197b);return _0x2148d1['y']-_0x30c449['y']||_0x2148d1['x']-_0x30c449['x'];}),_0x385a57;}}class te extends _0x385d2b{static get['requires'](){return[T,_0x273140];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe96fbb){super(_0xe96fbb),_0xe96fbb['commands']['add']('previewFinalContent',new re(this['editor'])),_0xe96fbb['config']['define']('trackChanges.preview.renderFunction',(_0x2a786b,_0x1058f4)=>{for(const _0x2d9ff0 of _0x1058f4)_0x2a786b['appendChild'](_0x2d9ff0);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as _0xb8ee90,Plugin as _0x3953b7,PendingActions as _0x5a4bb9}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x445a81,ObservableMixin as _0x3e790a,uid as _0x524fb1,priorities as _0x2ab9b9,insertToPriorityArray as _0x50c834,toArray as _0x4e0548,logWarning as _0x2d9cbe,getEnvKeystrokeText as _0x24010f,FocusTracker as _0x54fb7e,KeystrokeHandler as _0x242ec4,Collection as _0x39c9e2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x13fbe8,IconCancel as _0x4f5a20,IconTrackChanges as _0x149199}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x60b02b,View as _0x4eff8d,ViewCollection as _0x1c7024,FocusCycler as _0x15fc30,ViewModel as _0xbf88d3,createDropdown as _0x5e9696,SplitButtonView as _0x881f8,addListToDropdown as _0x2e601e,MenuBarMenuView as _0x262cec,MenuBarMenuListView as _0x54e796,ListSeparatorView as _0x8cf7a6,MenuBarMenuListItemView as _0x289202,MenuBarMenuListItemButtonView as _0xcb61eb,BodyCollection as _0x27f01f,Dialog as _0x14c57e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x58f2c4,hashObject as _0x419ded,surroundingMarkersDetector as _0x4cacd4,FOCUS_ANNOTATION_KEYSTROKE as _0x1b8fee,AriaDescriptionView as _0x473e7c,setupThreadKeyboardNavigation as _0x3a8cc9,trimHtml as ti,UserView as _0x5604b1,LateFocusButtonView as _0x590555,getDateTimeFormatter as _0x25d804,getAllMarkersDomElementsSorted as _0x52d4fd,sanitizeEditorConfig as _0x3ba5cf}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x148d33,LiveRange as _0x34ca76,LivePosition as _0x15578e,DowncastWriter as _0x4481d1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x16b302,toWidget as _0x2cd5b7}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x45dc80,set as _0x5bbb5e,isEqual as _0x8ce2d0,unset as _0x110115,omit as Ft}from'es-toolkit/compat';import{Delete as _0x3e9cd0,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x34f239}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x2a45ef}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0xb8ee90{['_enabledCommands'];constructor(_0x58fddf,_0x354a20){super(_0x58fddf),this['_enabledCommands']=_0x354a20,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x423478 of this['editor']['commands']['commands']())_0x423478['affectsData']&&!this['_enabledCommands']['has'](_0x423478)&&_0x423478['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5429c6 of this['editor']['commands']['commands']())_0x5429c6['affectsData']&&!this['_enabledCommands']['has'](_0x5429c6)&&_0x5429c6['clearForceDisabled']('TrackChangesCommand');}}class x extends _0xb8ee90{['_suggestions'];constructor(_0x27db30,_0x3ca287){super(_0x27db30),this['_suggestions']=_0x3ca287,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5b33b5){const _0x3108e5=this['_suggestions']['get'](_0x5b33b5);if(!_0x3108e5)throw new _0x445a81('track-changes-accept-suggestion-not-found',this);const _0x1fd4ec=_0x3108e5['getRanges']();this['editor']['model']['canEditAt'](_0x1fd4ec)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3108e5);}}class O extends _0xb8ee90{['_suggestions'];constructor(_0x395e5,_0x476867){super(_0x395e5),this['_suggestions']=_0x476867,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x232084){const _0x109b0c=this['_suggestions']['get'](_0x232084);if(!_0x109b0c)throw new _0x445a81('track-changes-discard-suggestion-not-found',this);const _0x519555=_0x109b0c['getRanges']();this['editor']['model']['canEditAt'](_0x519555)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x109b0c);}}function ls(_0x173413,_0xbbab9b){let _0x331c7f='';return _0x331c7f+=_0x173413['split']('*')['map']((_0x1b113c,_0x4ee803)=>_0x4ee803%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x1b113c)+'</span>':nn(_0x1b113c))['join'](''),_0xbbab9b&&(_0x331c7f+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xbbab9b['value']+'\x22\x20title=\x22'+_0xbbab9b['title']+'\x22></span>'),_0x331c7f;}function nn(_0x6fe741){const _0x4951d1=document['createElement']('span');return _0x4951d1['innerText']=_0x6fe741,_0x4951d1['innerHTML'];}function ts(_0x406bc0){return _0x406bc0['sort']((_0x2876f0,_0x4e79cc)=>'deletion'==_0x2876f0['type']&&'deletion'!=_0x4e79cc['type']?-0x1:'deletion'!=_0x2876f0['type']&&'deletion'==_0x4e79cc['type']?0x1:0x0);}function to(_0x5c29ec,_0x3dccc2){let _0x4e981d,_0x8f64d=0x0;const _0x1e0209=[],_0x21a436=_0x3dccc2['schema'];for(;_0x8f64d<_0x5c29ec['length'];){const _0x29dcb3=_0x5c29ec[_0x8f64d],_0xac73dd=_0x5c29ec[_0x8f64d+0x1];_0x4e981d||(_0x4e981d=_0x3dccc2['createPositionBefore'](_0x29dcb3)),on(_0x3dccc2,_0x29dcb3,_0xac73dd)||(_0x1e0209['push'](_0x3dccc2['createRange'](_0x4e981d,_0x21a436['isObject'](_0x29dcb3)?_0x3dccc2['createPositionAfter'](_0x29dcb3):_0x3dccc2['createPositionAt'](_0x29dcb3,'end'))),_0x4e981d=null),_0x8f64d++;}return _0x1e0209;}function on(_0x37a406,_0x4325ce,_0x51ef19){if(!_0x51ef19)return!0x1;const _0x489bf1=_0x37a406['createPositionAfter'](_0x4325ce),_0x41d7a5=_0x37a406['createPositionBefore'](_0x51ef19);return _0x489bf1['isTouching'](_0x41d7a5);}function rs(_0x5745ea,_0x4d6d17,_0x2d1a1f){for(;_0x2d1a1f['length'];){const _0x5b0c3d=_0x2d1a1f['splice'](0x0,0x64);_0x5745ea['change'](()=>{for(const _0x3a63ef of _0x5b0c3d)_0x3a63ef['isInContent']&&_0x4d6d17['execute'](_0x3a63ef['id']);});}}class R extends _0xb8ee90{['_command'];['_suggestions'];constructor(_0x569101,_0x33587f,_0x2aedbf){super(_0x569101),this['_command']=_0x33587f,this['_suggestions']=_0x2aedbf,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x57f682=Array['from'](this['_suggestions']['values']())['some'](_0x1919bb=>_0x1919bb['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x57f682;}['execute'](){const _0x481aae=ts(Array['from'](this['_suggestions']['values']()));for(const _0x1d0d71 of _0x481aae){const _0x4914a3=_0x1d0d71['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4914a3))return;}rs(this['editor']['model'],this['_command'],_0x481aae);}}class E extends _0xb8ee90{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x49ad08,_0x5c3757,_0x262f3d){super(_0x49ad08),this['_command']=_0x5c3757,this['_suggestions']=_0x262f3d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x78ee36=this['editor']['model']['document']['selection'],_0x159737=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x40622f,_0x393122){const _0x40b7dc=Array['from'](_0x40622f['getRanges']()),_0x163859=new Set();for(const _0x120b21 of _0x393122)if(_0x120b21['isInContent']){for(const _0x48762a of _0x40b7dc)for(const _0x198fd9 of _0x120b21['getRanges']())(_0x48762a['isIntersecting'](_0x198fd9)||_0x40622f['isCollapsed']&&!_0x120b21['isMultiRange']&&_0x120b21['next']&&_0x198fd9['end']['isTouching'](_0x48762a['start']))&&_0x163859['add'](_0x120b21);}return _0x163859;}(_0x78ee36,_0x159737),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1365c4=ts(Array['from'](this['_selectedSuggestions']));for(const _0x2d16bc of _0x1365c4){const _0x1e77d6=_0x2d16bc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1e77d6))return;}rs(this['editor']['model'],this['_command'],_0x1365c4);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3e790a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x447537,_0x257a8e){super(),this['id']=_0x257a8e['id'],this['type']=_0x257a8e['type'],this['subType']=_0x257a8e['subType']||null,this['author']=_0x257a8e['author'],this['creator']=_0x257a8e['creator']||_0x257a8e['author'],this['isExternal']=Boolean(_0x257a8e['attributes']&&_0x257a8e['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x257a8e['originalSuggestionId']||null,this['_model']=_0x447537,this['_onAccept']=_0x257a8e['onAccept'],this['_onDiscard']=_0x257a8e['onDiscard'],this['_onAttributesChange']=_0x257a8e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x257a8e['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x31f2f8=this;for(;_0x31f2f8['previous'];)_0x31f2f8=_0x31f2f8['previous'];return _0x31f2f8;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x348106){this['_markerNames']['add'](_0x348106);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5676a3=>this['_model']['markers']['get'](_0x5676a3))['filter'](_0x115f3c=>_0x115f3c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2f066a=>{for(const _0x5e6768 of this['getMarkers']())_0x2f066a['removeMarker'](_0x5e6768);}),this['_markerNames']['clear']();}['removeMarker'](_0x13b009){this['_model']['change'](_0x27f6c2=>{_0x27f6c2['removeMarker'](_0x13b009);}),this['_markerNames']['delete'](_0x13b009);}['addRange'](_0xe6443){const _0x410cf6='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x410cf6),this['_model']['change'](_0x4abeee=>{_0x4abeee['addMarker'](_0x410cf6,{'range':_0xe6443,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5c63dc){for(const _0x2d7ad8 of this['getRanges']())if(_0x2d7ad8['isIntersecting'](_0x5c63dc))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x177c39=>_0x177c39['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x36ff83,_0x4b49dc)=>[..._0x36ff83,..._0x4b49dc['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2f2038=this['getRanges']();if(0x1!=_0x2f2038['length'])return null;const _0x214e5e=_0x2f2038[0x0],_0xb36962=_0x214e5e['start']['nodeAfter'],_0xb93498=_0x214e5e['end']['nodeBefore'];return _0xb36962 instanceof _0x148d33?_0xb36962!=_0xb93498?null:_0xb36962:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x57aa6b=[];let _0x3ccfcf=this['head'];for(;_0x3ccfcf;)_0x57aa6b['push'](_0x3ccfcf),_0x3ccfcf=_0x3ccfcf['next'];return _0x57aa6b;}['setAttribute'](_0x5d5485,_0xb03585){const _0x4f2c43=_0x45dc80(this['attributes']);_0x5bbb5e(_0x4f2c43,_0x5d5485,_0xb03585),_0x8ce2d0(_0x4f2c43,this['attributes'])||(this['attributes']=_0x4f2c43,this['_onAttributesChange'](_0x4f2c43));}['removeAttribute'](_0x55fb69){const _0x4cb0c3=_0x45dc80(this['attributes']);_0x110115(_0x4cb0c3,_0x55fb69),_0x8ce2d0(_0x4cb0c3,this['attributes'])||(this['attributes']=_0x4cb0c3,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x524fb1()['substr'](0x1,0x5);}}function c(_0x3341c1,_0x3c13ca,_0x41a5d3){const _0x33f020=_0x3341c1['t'],t=_0x3341c1['t'];switch(_0x3c13ca){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x41a5d3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x41a5d3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x41a5d3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x41a5d3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x41a5d3);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x41a5d3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x41a5d3);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x41a5d3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x41a5d3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x41a5d3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x41a5d3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x41a5d3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x41a5d3);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x41a5d3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x41a5d3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x41a5d3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x41a5d3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x41a5d3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x41a5d3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x41a5d3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x41a5d3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x41a5d3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x41a5d3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x41a5d3);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x41a5d3);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x41a5d3);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x41a5d3);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x41a5d3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x41a5d3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x41a5d3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x41a5d3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x41a5d3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x41a5d3);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x41a5d3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x41a5d3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x41a5d3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x41a5d3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x41a5d3);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x41a5d3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x41a5d3);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x41a5d3);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x41a5d3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x41a5d3);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x41a5d3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x41a5d3);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x41a5d3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x41a5d3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x41a5d3);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x41a5d3);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x41a5d3);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x33f020({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x41a5d3);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x33f020({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x41a5d3);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x41a5d3);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x41a5d3);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x41a5d3);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x41a5d3);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3c13ca;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x32e894,_0x211b92){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x32e894,this['_locale']=_0x211b92;}['getDescriptions'](_0x573a27){const _0x333c29=[],_0x470f59=new Set(),_0x299487=new Set();for(let _0x566349=0x0;_0x566349<_0x573a27['length'];_0x566349++){const _0x42aac1=_0x573a27[_0x566349];if(!_0x42aac1['isInContent'])continue;const _0x3ed56d=this['_handleCustomCallbackDescription'](_0x42aac1);if(_0x3ed56d){if(null!=_0x42aac1['subType']){if(_0x470f59['has'](_0x42aac1['subType']))continue;_0x470f59['add'](_0x42aac1['subType']);}_0x333c29['push'](_0x3ed56d);}else{if('attribute'!=_0x42aac1['type'])'insertion'!=_0x42aac1['type']&&'deletion'!=_0x42aac1['type']||this['_handleInsertRemoveSuggestionDescription'](_0x333c29,_0x42aac1,_0x573a27[_0x566349+0x1]);else{const _0x44f5f4=_0x42aac1['data']['key'];if(_0x299487['has'](_0x44f5f4))continue;_0x299487['add'](_0x42aac1['data']['key']),_0x44f5f4==u?this['_handleRenameSuggestionDescription'](_0x333c29,_0x42aac1):this['_handleAttributeSuggestionDescription'](_0x333c29,_0x42aac1);}}}return this['_resolveDescriptionItems'](_0x333c29);}['registerDescriptionCallback'](_0x3d5cdd){this['_customCallbacks']['push'](_0x3d5cdd);}['registerElementLabel'](_0x474fa9,_0x1235e4,_0x1e57b8=_0x2ab9b9['normal']){'function'==typeof _0x474fa9?_0x50c834(this['_itemLabelsCallbacks'],{'matchingCallback':_0x474fa9,'label':_0x1235e4,'priority':_0x1e57b8}):this['_itemLabels']['set'](_0x474fa9,_0x1235e4);}['registerAttributeLabel'](_0x16ec3b,_0x39be45){this['_attributeLabels']['set'](_0x16ec3b,_0x39be45);}['getItemLabel'](_0x5d6f70,_0x355bc0=0x1){let _0x565eed;for(const _0x209113 of this['_itemLabelsCallbacks'])if(_0x209113['matchingCallback'](_0x5d6f70)){_0x565eed=_0x209113['label'];break;}return _0x565eed||(_0x565eed=this['_itemLabels']['get'](_0x5d6f70['name'])),_0x565eed?_0x565eed(_0x355bc0):0x1!==_0x355bc0?_0x355bc0+'\x20'+_0x5d6f70['name']+'s':''+_0x5d6f70['name'];}['_addDescriptionItems'](_0x146909,_0x4ae1d1){const _0x4768ff=_0x4ae1d1['getFirstRange']()['getWalker'](),_0x1f394a='insertion'==_0x4ae1d1['type']?'add':'remove';for(const _0x56b906 of _0x4768ff){const _0x447538=_0x56b906['item'],_0x93ec1d=_0x146909[_0x146909['length']-0x1];if(_0x447538['is']('$textProxy'))_0x93ec1d&&_0x93ec1d['type']['indexOf']('Container')>-0x1&&_0x146909['pop'](),_0x93ec1d&&'text'==_0x93ec1d['type']?_0x93ec1d[_0x1f394a]+=_0x447538['data']:_0x146909['push']({'type':'text','add':'add'==_0x1f394a?_0x447538['data']:'','remove':'remove'==_0x1f394a?_0x447538['data']:''});else{if(this['_schema']['isObject'](_0x447538)){const _0x5d4299=_0x447538;if(_0x93ec1d&&_0x93ec1d['type']['indexOf']('Container')>-0x1&&_0x146909['pop'](),'elementEnd'==_0x56b906['type'])continue;_0x93ec1d&&_0x93ec1d['type']==_0x1f394a+'Object'&&_0x93ec1d['element']['name']==_0x5d4299['name']?_0x93ec1d['quantity']++:_0x146909['push']({'type':_0x1f394a+'Object','element':_0x5d4299,'quantity':0x1}),_0x4768ff['skip'](_0x53f742=>!('elementEnd'==_0x53f742['type']&&_0x53f742['item']==_0x447538));}else{if(this['_schema']['checkChild'](_0x447538,'$text')||_0x447538['is']('element','softBreak')){const _0x50de9d=_0x447538;if('add'==_0x1f394a&&'elementStart'==_0x56b906['type']||'remove'==_0x1f394a&&'elementEnd'==_0x56b906['type'])continue;if(_0x93ec1d&&-0x1==_0x93ec1d['type']['indexOf']('Container')){'text'==_0x93ec1d['type']&&(_0x93ec1d[_0x1f394a]+='\x0a');continue;}let _0x3a9b2e;if(_0x3a9b2e='add'==_0x1f394a?_0x50de9d['nextSibling']&&!this['_schema']['isObject'](_0x50de9d['nextSibling'])?_0x50de9d['nextSibling']:null:_0x50de9d['previousSibling']&&!this['_schema']['isObject'](_0x50de9d['previousSibling'])?_0x50de9d['previousSibling']:null,_0x50de9d['isEmpty']||_0x3a9b2e&&_0x3a9b2e['isEmpty']){const _0x362dcb=_0x3a9b2e&&_0x3a9b2e['isEmpty']?_0x3a9b2e:_0x50de9d;_0x93ec1d&&_0x93ec1d['type']==_0x1f394a+'EmptyContainer'&&_0x93ec1d['element']['name']==_0x362dcb['name']?_0x93ec1d['quantity']++:_0x146909['push']({'type':_0x1f394a+'EmptyContainer','element':_0x362dcb,'quantity':0x1});}else _0x146909['push']({'type':_0x1f394a+'Container','element':_0x50de9d});}}}}}['_resolveDescriptionItems'](_0x3b95a8){const _0xf93cad=this['_locale'],_0x5407fb=[],_0x4d7155=[],_0x1e05b3=[];for(const _0x1f170b of _0x3b95a8)switch(_0x1f170b['type']){case'text':if(_0x1f170b['add']=_0x1f170b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1f170b['remove']=_0x1f170b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1f170b['add']&&''!=_0x1f170b['remove']){_0x5407fb['push']({'type':'replace','content':c(_0xf93cad,'REPLACE_TEXT',['\x22'+_0x1f170b['remove']+'\x22','\x22'+_0x1f170b['add']+'\x22'])});continue;}if(null!=_0x1f170b['add']['match'](/^ +$/)){_0x5407fb['push']({'type':'insertion','content':c(_0xf93cad,'*Insert:*\x20%0',c(_0xf93cad,'ELEMENT_SPACE',_0x1f170b['add']['length']))});continue;}if(null!=_0x1f170b['remove']['match'](/^ +$/)){_0x5407fb['push']({'type':'deletion','content':c(_0xf93cad,'*Remove:*\x20%0',c(_0xf93cad,'ELEMENT_SPACE',_0x1f170b['remove']['length']))});continue;}if(''!=_0x1f170b['add']){_0x5407fb['push']({'type':'insertion','content':c(_0xf93cad,'*Insert:*\x20%0','\x22'+_0x1f170b['add']+'\x22')});continue;}_0x5407fb['push']({'type':'deletion','content':c(_0xf93cad,'*Remove:*\x20%0','\x22'+_0x1f170b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5407fb['push']({'type':'insertion','content':c(_0xf93cad,'*Insert:*\x20%0',this['getItemLabel'](_0x1f170b['element'],_0x1f170b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5407fb['push']({'type':'deletion','content':c(_0xf93cad,'*Remove:*\x20%0',this['getItemLabel'](_0x1f170b['element'],_0x1f170b['quantity']))});continue;case'addContainer':_0x5407fb['push']({'type':'insertion','content':c(_0xf93cad,'*Split:*\x20%0',this['getItemLabel'](_0x1f170b['element'],_0x1f170b['quantity']))});continue;case'removeContainer':_0x5407fb['push']({'type':'deletion','content':c(_0xf93cad,'*Merge:*\x20%0',this['getItemLabel'](_0x1f170b['element'],_0x1f170b['quantity']))});continue;case'addFormat':_0x4d7155['push'](_0x1f170b['key']);continue;case'removeFormat':_0x1e05b3['push'](_0x1f170b['key']);continue;default:_0x5407fb['push'](_0x1f170b);}if(_0x4d7155['length']){const _0x3ebe3e=_0x4d7155['map'](_0x1576e4=>this['_attributeLabels']['has'](_0x1576e4)?this['_attributeLabels']['get'](_0x1576e4):_0x1576e4)['join'](',\x20');_0x5407fb['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x3ebe3e)});}if(_0x1e05b3['length']){const _0x18aebc=_0x1e05b3['map'](_0x2eb850=>this['_attributeLabels']['has'](_0x2eb850)?this['_attributeLabels']['get'](_0x2eb850):_0x2eb850)['join'](',\x20');_0x5407fb['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x18aebc)});}return _0x5407fb;}['_handleCustomCallbackDescription'](_0x5493d3){for(const _0x555e5c of this['_customCallbacks']){const _0x2d69d0=_0x555e5c(_0x5493d3);if(_0x2d69d0&&'type'in _0x2d69d0)return _0x2d69d0;}}['_handleAttributeSuggestionDescription'](_0x299a1d,_0x40dd3d){const _0x2e60da=_0x40dd3d['data'],_0x5b5360=void 0x0===_0x2e60da['newValue']?'removeFormat':'addFormat';_0x299a1d['push']({'type':_0x5b5360,'key':_0x2e60da['key']});}['_handleRenameSuggestionDescription'](_0x198f52,_0x160fc5){_0x198f52['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x160fc5['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5ea04b,_0x3f8900,_0xebd642){if(this['_addDescriptionItems'](_0x5ea04b,_0x3f8900),_0xebd642&&_0xebd642['getFirstRange']()&&!_0x3f8900['getFirstRange']()['end']['isEqual'](_0xebd642['getFirstRange']()['start'])){const _0x2c36df=_0x5ea04b[_0x5ea04b['length']-0x1],_0x3db6f7='insertion'==_0x3f8900['type']?'add':'remove';_0x2c36df&&'text'==_0x2c36df['type']&&(_0x2c36df[_0x3db6f7]+='\x0a');}}}class U extends _0x3953b7{['afterInit'](){const _0x22d8b3=this['editor'],_0x11ea3f=_0x22d8b3['plugins']['get']('TrackChangesEditing');_0x22d8b3['commands']['get']('showAIAssistant')&&_0x11ea3f['enableCommand']('showAIAssistant');}}class V extends _0x3953b7{['afterInit'](){const _0x34c7df=this['editor'],_0x39cf6=_0x34c7df['locale'];if(!_0x34c7df['plugins']['has']('AlignmentEditing'))return;const _0xc0d346=_0x34c7df['plugins']['get']('TrackChangesEditing');_0xc0d346['enableDefaultAttributesIntegration']('alignment'),_0xc0d346['registerBlockAttribute']('alignment'),_0xc0d346['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x39cf6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45227c=this['editor'],_0x2f6922=_0x45227c['locale'];_0x45227c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e5cca=>{if('formatBlock'!=_0x2e5cca['type'])return;const {data:_0x53be3f}=_0x2e5cca;if(_0x53be3f&&'alignment'==_0x53be3f['commandName']){const _0x16638a=_0x53be3f['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x2f6922,'*Format:*\x20%0',function(_0x336f48){switch(_0x336f48){case'left':return c(_0x2f6922,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x2f6922,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x2f6922,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x2f6922,'FORMAT_JUSTIFY_TEXT');}}(_0x16638a))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x3953b7{['afterInit'](){const _0x1c6119=this['editor'],_0x5712ad=_0x1c6119['plugins']['get']('TrackChangesEditing'),_0x4fcfcb=_0x1c6119['locale'];for(const _0x417b2f of Zt){if(!_0x1c6119['plugins']['has'](_0x417b2f))continue;const _0x37c3ce=_0x417b2f['slice'](0x0,-0x7)['toLowerCase'](),_0x5afa86='FORMAT_'+_0x37c3ce['toUpperCase']();_0x5712ad['enableDefaultAttributesIntegration'](_0x37c3ce),_0x5712ad['registerInlineAttribute'](_0x37c3ce),_0x5712ad['descriptionFactory']['registerAttributeLabel'](_0x37c3ce,c(_0x4fcfcb,_0x5afa86));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x185981=this['editor'],_0x5f522f=_0x185981['locale'],_0x239bf5=_0x185981['plugins']['get']('TrackChangesEditing');function _0x2c2917(_0x1b7a21,_0x39e600){_0x239bf5['descriptionFactory']['registerDescriptionCallback'](_0x530344=>{if('formatInline'!=_0x530344['type'])return;const {data:_0x56cff0}=_0x530344;return _0x56cff0&&_0x56cff0['commandName']===_0x1b7a21?_0x56cff0['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5f522f,'*Format:*\x20%0',_0x39e600)}:{'type':'format','content':c(_0x5f522f,'*Remove\x20format:*\x20%0',_0x39e600)}:void 0x0;});}_0x2c2917('bold',c(_0x5f522f,'FORMAT_BOLD')),_0x2c2917('italic',c(_0x5f522f,'FORMAT_ITALIC')),_0x2c2917('underline',c(_0x5f522f,'FORMAT_UNDERLINE')),_0x2c2917('code',c(_0x5f522f,'FORMAT_CODE')),_0x2c2917('strikethrough',c(_0x5f522f,'FORMAT_STRIKETHROUGH')),_0x2c2917('subscript',c(_0x5f522f,'FORMAT_SUBSCRIPT')),_0x2c2917('superscript',c(_0x5f522f,'FORMAT_SUPERSCRIPT'));}}class G extends _0x3953b7{['afterInit'](){const _0x16a265=this['editor'],_0x59e9e9=_0x16a265['locale'];if(!_0x16a265['plugins']['has']('BlockQuoteEditing'))return;const _0x553262=_0x16a265['plugins']['get']('TrackChangesEditing'),_0x64d004=this['editor']['commands']['get']('blockQuote');_0x553262['enableCommand']('blockQuote',(_0x5cc2f0,_0x5af59b={})=>{const _0x5a3d12=this['editor']['model']['document']['selection'],_0x95418a=_0x5af59b&&void 0x0!==_0x5af59b['forceValue']?_0x5af59b['forceValue']:!_0x64d004['value'];let _0x561da9=[];if(_0x95418a){const _0x1d5b49=Array['from'](_0x5a3d12['getSelectedBlocks']())['filter'](_0x351cab=>oo(_0x351cab)||function(_0x346bee,_0x1219d8){const _0x5b23ea=_0x1219d8['checkChild'](_0x346bee['parent'],'blockQuote'),_0x8aeae1=_0x1219d8['checkChild'](['$root','blockQuote'],_0x346bee);return _0x5b23ea&&_0x8aeae1;}(_0x351cab,this['editor']['model']['schema']));_0x561da9=to(_0x1d5b49,_0x16a265['model']);}else{const _0x12f6ba=Array['from'](_0x5a3d12['getSelectedBlocks']())['filter'](_0x56cb79=>oo(_0x56cb79));_0x561da9=to(_0x12f6ba,_0x16a265['model']);}_0x16a265['model']['change'](()=>{for(const _0x1ad4ed of _0x561da9)_0x553262['markBlockFormat'](_0x1ad4ed,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x95418a}]});});}),_0x553262['descriptionFactory']['registerDescriptionCallback'](_0x20bdd1=>{const {data:_0x4a4d71}=_0x20bdd1;if(_0x4a4d71&&'blockQuote'==_0x4a4d71['commandName']){const _0xd4471a=c(_0x59e9e9,'ELEMENT_BLOCK_QUOTE');return _0x4a4d71['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x59e9e9,'*Set\x20format:*\x20%0',_0xd4471a)}:{'type':'format','content':c(_0x59e9e9,'*Remove\x20format:*\x20%0',_0xd4471a)};}});}}function oo(_0x41298c){return'blockQuote'==_0x41298c['parent']['name'];}class L extends _0x3953b7{['afterInit'](){const _0x1f76c4=this['editor'],_0x208507=_0x1f76c4['locale'],_0x35b7c1=_0x1f76c4['plugins']['get']('TrackChangesEditing');_0x1f76c4['plugins']['has']('BookmarkEditing')&&(_0x35b7c1['enableCommand']('insertBookmark'),_0x35b7c1['enableDefaultAttributesIntegration']('updateBookmark'),_0x35b7c1['registerBlockAttribute']('bookmarkId'),_0x35b7c1['descriptionFactory']['registerDescriptionCallback'](_0x485a53=>{if('insertion'!=_0x485a53['type']&&'deletion'!=_0x485a53['type']&&'attribute'!=_0x485a53['type'])return;const _0x5ad1f1=_0x485a53['getContainedElement']();if(null==_0x5ad1f1)return;if(!_0x5ad1f1['is']('element','bookmark'))return;const _0x29a23b=_0x5ad1f1['getAttribute']('bookmarkId');if('insertion'==_0x485a53['type'])return{'type':'insertion','content':c(_0x208507,'*Insert:*\x20%0','\x22'+_0x29a23b+'\x22\x20'+c(_0x208507,'ELEMENT_BOOKMARK'))};if('deletion'==_0x485a53['type'])return{'type':'deletion','content':c(_0x208507,'*Remove:*\x20%0','\x22'+_0x29a23b+'\x22\x20'+c(_0x208507,'ELEMENT_BOOKMARK'))};const {data:_0x24dea6}=_0x485a53;if(!_0x24dea6||'bookmarkId'!=_0x24dea6['key'])return;return{'type':'format','content':c(_0x208507,'*Set\x20bookmark:*\x20%0','\x22'+_0x24dea6['newValue']+'\x22')};}));}}class J extends _0x3953b7{['afterInit'](){const _0x18a203=this['editor'];_0x18a203['plugins']['has']('CaseChange')&&(_0x18a203['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x18a203['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x18a203['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x3953b7{['afterInit'](){const _0xaf9eab=this['editor'];_0xaf9eab['commands']['get']('ckbox')&&_0xaf9eab['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x3953b7{['afterInit'](){const _0x573558=this['editor'];if(!_0x573558['plugins']['has']('CodeBlock'))return;const _0x48d39a=_0x573558['plugins']['get']('TrackChangesEditing'),_0x3291ab=_0x573558['locale'],_0x57c2b1=_0x573558['config']['get']('codeBlock')['languages'],_0x252932=_0x573558['commands']['get']('codeBlock');_0x48d39a['enableCommand']('indentCodeBlock'),_0x48d39a['enableCommand']('outdentCodeBlock'),_0x48d39a['enableCommand']('codeBlock',(_0x2c50b7,_0x3f98c9={})=>{const _0x4a0c3d=_0x573558['model'],_0x1b37a3=_0x573558['model']['document']['selection'],_0x11049e=_0x3f98c9&&void 0x0!==_0x3f98c9['forceValue']?_0x3f98c9['forceValue']:!_0x252932['value'];let _0x235a2e;_0x3f98c9['language']||(_0x3f98c9['language']=_0x57c2b1[0x0]['language']),_0x235a2e=_0x11049e?Array['from'](_0x1b37a3['getSelectedBlocks']())['filter'](_0x34b0ea=>eo(_0x34b0ea)||function(_0xa18a6b,_0x43e268){if(_0xa18a6b['is']('rootElement')||_0x43e268['isLimit'](_0xa18a6b))return!0x1;return _0x43e268['checkChild'](_0xa18a6b['parent'],'codeBlock');}(_0x34b0ea,_0x4a0c3d['schema'])):Array['from'](_0x1b37a3['getSelectedBlocks']())['filter'](_0x54f8d6=>eo(_0x54f8d6));const _0x20394a=to(_0x235a2e,_0x4a0c3d);_0x4a0c3d['change'](()=>{for(const _0x24680d of _0x20394a)_0x48d39a['markBlockFormat'](_0x24680d,{'commandName':'codeBlock','commandParams':[{..._0x3f98c9,'forceValue':_0x11049e}],'formatGroupId':'blockName'});});}),(_0x48d39a['descriptionFactory']['registerElementLabel']('codeBlock',_0x501a42=>c(_0x3291ab,'ELEMENT_CODE_BLOCK',_0x501a42)),_0x48d39a['descriptionFactory']['registerDescriptionCallback'](_0xb7874c=>{if('formatBlock'!=_0xb7874c['type'])return;const _0xd6a5c9=_0x3291ab['t'],{data:_0x2bf80e}=_0xb7874c;if(!_0x2bf80e||'codeBlock'!=_0x2bf80e['commandName'])return;const _0x533ea5=_0x2bf80e['commandParams'][0x0]['language'],_0x5e1777=_0xd6a5c9(_0x57c2b1['find'](_0x51447c=>_0x51447c['language']===_0x533ea5)['label'])['toLowerCase']();return _0x2bf80e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3291ab,'*Set\x20format:*\x20%0',c(_0x3291ab,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5e1777+')')}:{'type':'format','content':c(_0x3291ab,'*Remove\x20format:*\x20%0',c(_0x3291ab,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x29491d){return'codeBlock'==_0x29491d['name'];}class q extends _0x3953b7{['afterInit'](){const _0x4be3e3=this['editor'];if(!_0x4be3e3['plugins']['has']('CommentsEditing'))return;_0x4be3e3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x48547e,_0x2fa16e,_0x1177dc){const _0xccb16=[];for(const _0x36cf24 of _0x2fa16e['getItems']())_0x36cf24['hasAttribute'](_0x48547e)&&_0xccb16['push'](_0x1177dc['createRangeOn'](_0x36cf24));return _0xccb16;}function Fe(_0x52a845,_0x3455da,{showActiveMarker:_0x186762=!0x0}={}){const _0xc42dd3=_0x52a845['plugins']['get']('TrackChangesEditing');return(_0x48ae6a,_0x581ad8,_0x66c4e)=>{if(!_0x66c4e['consumable']['test'](_0x581ad8['markerRange'],_0x48ae6a['name']))return;const _0x3ca31c=_0x581ad8['markerRange']['getWalker'](),_0x130bff=_0x581ad8['markerRange']['start'],_0x37f363=_0x52a845['model']['schema'];let _0x1b53f5=null,_0x15970d=null,_0x1cb576=!0x1,_0xebf4=!0x1;for(const _0x404212 of _0x3ca31c){const _0x2a8a5b=_0x404212['item'];_0x1cb576=_0x1cb576||_0x37f363['isContent'](_0x2a8a5b);const _0x59815f=_0x66c4e['mapper']['toViewElement'](_0x2a8a5b);if(_0x59815f&&_0x59815f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x404212['type']&&(_0x37f363['isBlock'](_0x2a8a5b)&&!_0x37f363['isLimit'](_0x2a8a5b)&&(_0x2a8a5b['nextSibling']||_0x130bff['isAtEnd']?_0x1b53f5&&_0x1b53f5['parent']==_0x2a8a5b||(_0x1b53f5=_0x2a8a5b,_0x4994b4(_0x404212['previousPosition']),_0xebf4=!0x0):_0x15970d=_0x15970d||_0x404212['previousPosition']));}function _0x4994b4(_0x45126c){const {id:_0x5c5e7f,authorId:_0x5587d4}=_0xc42dd3['_splitMarkerName'](_0x581ad8['markerName']),_0x1707d6=_0x66c4e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3455da,'data-suggestion':_0x5c5e7f,'data-author-id':_0x5587d4}),_0x41fceb=_0x66c4e['mapper']['toViewPosition'](_0x45126c);_0x186762&&_0xc42dd3['activeMarkers']['includes'](_0x581ad8['markerName'])&&_0x66c4e['writer']['addClass']('ck-suggestion-marker--active',_0x1707d6),_0x66c4e['writer']['insert'](_0x41fceb,_0x1707d6),_0x66c4e['mapper']['bindElementToMarker'](_0x1707d6,_0x581ad8['markerName']);}_0x1cb576||_0xebf4||!_0x15970d||_0x4994b4(_0x15970d);};}class z extends _0x3953b7{static get['requires'](){return[_0x3e9cd0];}['init'](){const _0x229a4e=this['editor'],_0x11e9e4=_0x229a4e['plugins']['get']('TrackChangesEditing');_0x11e9e4['enableCommand']('delete');const _0x5e98a5=_0x229a4e['commands']['get']('deleteForward');_0x11e9e4['enableCommand']('deleteForward',(_0x1b6441,_0x1a277b={})=>{const _0x347e3e=_0x229a4e['model']['createSelection'](_0x229a4e['model']['document']['selection']);_0x347e3e['isCollapsed']&&_0x229a4e['model']['modifySelection'](_0x347e3e,{'direction':'forward','unit':_0x1a277b['unit']});const _0x1514c1=_0x347e3e['getFirstRange'](),_0x48fdce=_0x34ca76['fromRange'](_0x1514c1);let _0x6dada3;_0x1b6441(_0x1a277b),_0x6dada3='$graveyard'==_0x48fdce['root']['rootName']?_0x229a4e['model']['createRange'](_0x1514c1['start']):_0x229a4e['model']['createRange'](_0x48fdce['start'],_0x48fdce['end']),_0x48fdce['detach'](),_0x229a4e['model']['enqueueChange'](_0x5e98a5['buffer']['batch'],_0x280b97=>{_0x5e98a5['buffer']['lock'](),_0x280b97['setSelection'](_0x280b97['createRange'](_0x6dada3['end'])),_0x5e98a5['buffer']['unlock']();});}),_0x229a4e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x229a4e,'merge'),{'priority':'high'}),_0x229a4e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x33938c,_0x203cf2,_0xcfce60)=>{_0xcfce60['options']['showSuggestionHighlights']&&Fe(_0x229a4e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x33938c,_0x203cf2,_0xcfce60);},{'priority':'high'}),_0x229a4e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4da7e1,_0xddf7e0,_0x5d3e44)=>{const _0x1ce21d=_0x5d3e44['mapper']['markerNameToElements'](_0xddf7e0['markerName']);if(_0x1ce21d){for(const _0x57d23 of _0x1ce21d)_0x57d23['is']('uiElement')&&(_0x5d3e44['mapper']['unbindElementFromMarkerName'](_0x57d23,_0xddf7e0['markerName']),_0x5d3e44['writer']['remove'](_0x57d23));}},{'priority':'high'});}}class W extends _0x3953b7{['afterInit'](){const _0x13daaf=this['editor'];if(!_0x13daaf['plugins']['has']('ListEditing'))return;const _0xe1f257=_0x13daaf['locale'],_0xd315b6=_0x13daaf['plugins']['get']('TrackChangesEditing'),_0x396cb3=_0x13daaf['plugins']['has']('TodoListEditing'),_0xaa203c=!!_0x13daaf['config']['get']('list.multiBlock');function _0x3073e5(_0x5bbbca){return{'type':'format','content':''+c(_0xe1f257,'*Set\x20format:*\x20%0',_0x5bbbca)};}function _0x31f5ba(_0x87f592){return{'type':'format','content':''+c(_0xe1f257,'*Remove\x20format:*\x20%0',_0x87f592)};}_0xd315b6['enableDefaultAttributesIntegration']('numberedList'),_0xd315b6['enableDefaultAttributesIntegration']('bulletedList'),_0xd315b6['enableDefaultAttributesIntegration']('customNumberedList'),_0xd315b6['enableDefaultAttributesIntegration']('customBulletedList'),_0xd315b6['enableDefaultAttributesIntegration']('indentList'),_0xd315b6['enableDefaultAttributesIntegration']('outdentList'),_0xd315b6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xd315b6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xd315b6['registerBlockAttribute']('listItemId'),_0xd315b6['registerBlockAttribute']('listType'),_0xd315b6['registerBlockAttribute']('listIndent'),_0xaa203c&&(_0xd315b6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xd315b6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x396cb3&&(_0xd315b6['enableDefaultAttributesIntegration']('todoList'),_0xd315b6['enableDefaultAttributesIntegration']('checkTodoList'),_0xd315b6['registerBlockAttribute']('todoListChecked'),_0xd315b6['descriptionFactory']['registerDescriptionCallback'](_0x428844=>{const {data:_0x13ddd9}=_0x428844;if(_0x13ddd9&&'todoListChecked'==_0x13ddd9['key'])return{'type':'format','content':_0x13ddd9['newValue']?c(_0xe1f257,'*Check\x20item*'):c(_0xe1f257,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3b6aff=>{if(_0x3b6aff['batch']['isUndo'])return!0x1;let _0x74e3fc=!0x1;const _0x2624a8=_0xd315b6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2faffe=>'todoListChecked'===_0xd315b6['_getAttributeKey'](_0x2faffe));for(const _0x73d99d of _0x2624a8){'todo'!=_0x73d99d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xd315b6['_findSuggestions'](_0x73d99d['getFirstRange'](),'attribute')['find'](_0x124853=>'listType'===_0xd315b6['_getAttributeKey'](_0x124853['suggestion']))||(_0x3b6aff['removeMarker'](_0x73d99d['getFirstMarker']()),_0x74e3fc=!0x0));}return _0x74e3fc;})),_0xd315b6['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0xe1f257,'FORMAT_INDENT'));const _0x31677b={'type':'format','content':''};_0xd315b6['descriptionFactory']['registerDescriptionCallback'](_0x490591=>{const {data:_0x1a88f6}=_0x490591;if(!_0x1a88f6||'listType'!=_0x1a88f6['key'])return;let _0x3ef2f6=_0x490591['head'];for(;_0x3ef2f6;){if(_0x3ef2f6['data']&&(('listStyle'==_0x3ef2f6['data']['key']||'listMarkerStyle'==_0x3ef2f6['data']['key'])&&(_0x3ef2f6['data']['newValue']&&'default'!=_0x3ef2f6['data']['newValue']||'default'!=_0x3ef2f6['data']['oldValue']&&!_0x1a88f6['newValue'])||!_0xaa203c&&_0x3ef2f6['data']['key']==u))return _0x31677b;_0x3ef2f6=_0x3ef2f6['next'];}if(null==_0x1a88f6['newValue'])switch(_0x1a88f6['oldValue']){case'bulleted':return _0x31f5ba(c(_0xe1f257,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x31f5ba(c(_0xe1f257,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x31f5ba(c(_0xe1f257,'ELEMENT_TODO_LIST'));}switch(_0x1a88f6['newValue']){case'bulleted':return _0x3073e5(c(_0xe1f257,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3073e5(c(_0xe1f257,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3073e5(c(_0xe1f257,'ELEMENT_TODO_LIST'));}}),_0xd315b6['descriptionFactory']['registerDescriptionCallback'](_0x59dd3a=>{const {data:_0x336e3e}=_0x59dd3a;if(_0x336e3e&&'listIndent'==_0x336e3e['key'])return null==_0x336e3e['newValue']||null==_0x336e3e['oldValue']&&0x0==_0x336e3e['newValue']?_0x31677b:void 0x0;}),_0xd315b6['descriptionFactory']['registerDescriptionCallback'](_0x4cad1b=>{if('attribute'!=_0x4cad1b['type'])return;const {data:_0x447a7f}=_0x4cad1b;if(!_0x447a7f||'listItemId'!=_0x447a7f['key'])return;const _0x2b98ad=Te(_0x4cad1b);return'newValue'==_0x2b98ad?{'type':'format','content':c(_0xe1f257,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2b98ad?{'type':'format','content':c(_0xe1f257,'*Split:*\x20list\x20item')}:_0x31677b;}),_0x13daaf['model']['document']['registerPostFixer'](_0x1ad639=>this['listItemIdFixer'](_0x1ad639)),_0x13daaf['model']['document']['registerPostFixer'](_0x228055=>this['noTrackChangesFixer'](_0x228055)),_0x13daaf['model']['document']['on']('change:data',(_0x9ecb49,_0x59b47c)=>{if(_0x59b47c['isUndo']||!_0x59b47c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3db5b0){if(_0x3db5b0['batch']['isUndo']||!_0x3db5b0['batch']['isLocal'])return!0x1;let _0x2c8b18=!0x1;const _0x3b1f1b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x110ade=>_0x110ade['data']&&'listItemId'==_0x110ade['data']['key'])['filter'](_0x544367=>_0x544367['data']['newValue']&&_0x544367['data']['oldValue']);for(const _0x4e276d of _0x3b1f1b)Te(_0x4e276d)||(_0x3db5b0['removeMarker'](_0x4e276d['getFirstMarker']()),_0x2c8b18=!0x0);return _0x2c8b18;}['noTrackChangesFixer'](_0xe37521){if(_0xe37521['batch']['isUndo']||!_0xe37521['batch']['isLocal'])return!0x1;const _0x15ad01=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x15ad01['trackChangesCommand']['value'])return!0x1;let _0x4986fb=!0x1;const _0x2d1a66=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x569011=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x301781=>'attribute'==_0x301781['type'])['filter'](_0x199173=>_0x2d1a66['includes'](_0x199173['attributeKey']));if(0x0==_0x569011['length'])return _0x4986fb;for(const _0x4477c1 of _0x569011){const _0x3accda=_0x15ad01['_findSuggestions'](_0x4477c1['range'],'attribute')['filter'](_0x22ebd0=>!_0x22ebd0['meta']['isNextTo'])['map'](_0x179e09=>_0x179e09['suggestion'])['filter'](_0x3ebd36=>{const _0x396930=_0x15ad01['_getAttributeKey'](_0x3ebd36);return _0x2d1a66['includes'](_0x396930);});if(_0x3accda['length']){for(const _0x1110fd of _0x3accda)_0xe37521['removeMarker'](_0x1110fd['getFirstMarker']());_0x4986fb=!0x0;}}return _0x4986fb;}['assureChains'](){const _0x3537b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x498a79=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x173536;const _0x255740=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x40bff6=>{if(_0x40bff6['data']['oldRange']||!_0x40bff6['data']['newRange'])return null;if(!_0x40bff6['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x10c5de}=_0x3537b5['_splitMarkerName'](_0x40bff6['name']);if(!_0x3537b5['hasSuggestion'](_0x10c5de))return null;const _0x54655b=_0x3537b5['getSuggestion'](_0x10c5de);return _0x498a79['includes'](_0x54655b['data']['key']);})['map'](_0x2b43fe=>{const {id:_0x3032bd}=_0x3537b5['_splitMarkerName'](_0x2b43fe['name']),_0x3d894c=_0x3537b5['getSuggestion'](_0x3032bd);return _0x173536=_0x3d894c['attributes']['groupId'],_0x3d894c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x255740['size'])return;const _0x3d5b71=_0x3537b5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42ddf2=>'attribute'==_0x42ddf2['type']&&_0x42ddf2['data']&&_0x498a79['includes'](_0x42ddf2['data']['key'])&&_0x42ddf2['attributes']['groupId']!=_0x173536)['map'](_0x7d53d=>({'listItem':_0x7d53d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x7d53d['attributes']['groupId']})),_0x339fc0=new Set();for(const {groupId:_0x5a7e04,listItem:_0x33ff98}of _0x3d5b71)_0x255740['has'](_0x33ff98)&&_0x339fc0['add'](_0x5a7e04);for(const _0x591f54 of _0x3537b5['getSuggestions']())_0x339fc0['has'](_0x591f54['attributes']['groupId'])&&_0x591f54['setAttribute']('groupId',_0x173536);}['_supportLegacySuggestions'](){const _0x2573a9=this['editor'],_0x1d0698=_0x2573a9['locale'],_0x435761=_0x2573a9['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x435761['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x260be4,_0x3d0bca){const _0x4c1b2e=[];for(let _0x334278 of _0x260be4)_0x334278['start']['nodeAfter']===_0x334278['end']['parent']&&(_0x334278=_0x2573a9['model']['createRange'](_0x2573a9['model']['createPositionAt'](_0x334278['start']['nodeAfter'],0x0))),_0x4c1b2e['push'](_0x334278);_0x2573a9['model']['change'](_0x15c8f9=>{const _0xb4341f=_0x2573a9['model']['document']['selection'],_0x4eaa30=Array['from'](_0xb4341f['getRanges']())['map'](_0x5cf485=>_0x34ca76['fromRange'](_0x5cf485));_0x15c8f9['setSelection'](_0x4c1b2e),_0x2573a9['commands']['get'](_0x3d0bca['commandName'])['refresh'](),_0x3d0bca['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2573a9['execute'](_0x3d0bca['commandName'],..._0x3d0bca['commandParams']),_0x15c8f9['setSelection'](_0x4eaa30);for(const _0x79dbb0 of _0x4eaa30)_0x79dbb0['detach']();});}),_0x435761['descriptionFactory']['registerElementLabel'](function(_0x318fa7){const _0x54eae9=!_0x2573a9['model']['schema']['isObject'](_0x318fa7),_0x2aaf73=_0x318fa7['previousSibling'],_0x3e6b5f=_0x318fa7['nextSibling'],_0x7b49ea=_0x318fa7['getAttribute']('listItemId'),_0x54079d=!_0x2aaf73||_0x2aaf73['getAttribute']('listItemId')!==_0x7b49ea,_0x2b0645=!_0x3e6b5f||_0x3e6b5f['getAttribute']('listItemId')!==_0x7b49ea;return _0x54eae9&&Boolean(_0x7b49ea)&&_0x54079d&&_0x2b0645;},_0x5a8c05=>c(_0x1d0698,'ELEMENT_LIST_ITEM',_0x5a8c05));}['_registerLegacyDescription'](){const _0x6543d9=this['editor'],_0x4708e7=_0x6543d9['locale'];function _0x3569ee(_0x3648af){const _0x3e6cf6=_0x6543d9['commands']['get']('bulletedList')['value'],_0x30c4c8=_0x6543d9['commands']['get']('numberedList')['value'];return'numberedList'===_0x3648af?_0x3e6cf6:_0x30c4c8;}_0x6543d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1e308c){if('formatBlock'!=_0x1e308c['type'])return;const {data:_0x1a2e1c}=_0x1e308c;if(!_0x1a2e1c)return;let _0x464e61,_0x868b65,_0x5d7f85,_0x3a7a79;switch(_0x1a2e1c['commandName']){case'bulletedList':_0x5d7f85=_0x1a2e1c['commandParams'][0x0]['forceValue'],_0x3a7a79=_0x3569ee(_0x1a2e1c['commandName']),_0x464e61=_0x5d7f85?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3a7a79&&_0x6543d9['config']['get']('list.multiBlock')||(_0x464e61='*Change\x20to:*\x20%0'),_0x868b65={'type':'format','content':c(_0x4708e7,_0x464e61,c(_0x4708e7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5d7f85=_0x1a2e1c['commandParams'][0x0]['forceValue'],_0x3a7a79=_0x3569ee(_0x1a2e1c['commandName']),_0x464e61=_0x5d7f85?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3a7a79&&_0x6543d9['config']['get']('list.multiBlock')||(_0x464e61='*Change\x20to:*\x20%0'),_0x868b65={'type':'format','content':c(_0x4708e7,_0x464e61,c(_0x4708e7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x464e61='*Indent:*\x20%0',_0x868b65={'type':'format','content':c(_0x4708e7,_0x464e61,c(_0x4708e7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x464e61=function(_0x1ed92e){const _0x4fd0df=_0x1ed92e['getFirstRange']();let _0x5059a0=_0x4fd0df['start']['nodeAfter'];for(;_0x5059a0&&_0x4fd0df['containsItem'](_0x5059a0);){if(_0x5059a0['getAttribute']('listIndent')>0x0)return!0x1;_0x5059a0=_0x5059a0['nextSibling'];}return!0x0;}(_0x1e308c)?c(_0x4708e7,'*Format:*\x20remove\x20from\x20%0',c(_0x4708e7,function(_0x5453c2){return'ELEMENT_'+_0x5453c2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1e308c))):c(_0x4708e7,'*Outdent:*\x20%0',c(_0x4708e7,'ELEMENT_LIST_ITEM')),_0x868b65={'type':'format','content':_0x464e61};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1a2e1c['multipleBlocks']&&(_0x464e61='*Merge:*\x20%0',_0x868b65={'type':'deletion','content':c(_0x4708e7,_0x464e61,c(_0x4708e7,'ELEMENT_LIST_ITEM'))});}return _0x868b65;});}}function Te(_0x3ef2f1){let _0x53d69b=_0x3ef2f1['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x53d69b;){const _0x2476c7=_0x53d69b['getAttribute']('listItemId');if(!_0x2476c7)return!0x1;if(_0x2476c7==_0x3ef2f1['data']['newValue'])return'newValue';if(_0x2476c7==_0x3ef2f1['data']['oldValue'])return'oldValue';_0x53d69b=_0x53d69b['previousSibling'];}return!0x1;}class Se extends _0x3953b7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x39b053=this['editor']['config']['get']('list.properties'),_0x1f7cf6=this['editor']['plugins']['get']('TrackChangesEditing');_0x39b053['styles']&&(_0x1f7cf6['enableDefaultAttributesIntegration']('listStyle'),_0x1f7cf6['registerBlockAttribute']('listStyle')),_0x39b053['reversed']&&(_0x1f7cf6['enableDefaultAttributesIntegration']('listReversed'),_0x1f7cf6['registerBlockAttribute']('listReversed')),_0x39b053['startIndex']&&(_0x1f7cf6['enableDefaultAttributesIntegration']('listStart'),_0x1f7cf6['registerBlockAttribute']('listStart'));const _0x342134={'type':'format','content':''};_0x1f7cf6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5e3264=this['editor']['locale'];_0x1f7cf6['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x5e3264,'FORMAT_LIST_REVERSED')),_0x1f7cf6['descriptionFactory']['registerDescriptionCallback'](_0xb88041=>{const {data:_0x2aa6ae}=_0xb88041;if(_0x2aa6ae&&'listReversed'==_0x2aa6ae['key'])return null==_0x2aa6ae['newValue']||0x0==_0x2aa6ae['newValue']&&null==_0x2aa6ae['oldValue']?_0x342134:void 0x0;}),_0x1f7cf6['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x5e3264,'FORMAT_LIST_START')),_0x1f7cf6['descriptionFactory']['registerDescriptionCallback'](_0x2222ea=>{const {data:_0x1a8dce}=_0x2222ea;if(_0x1a8dce&&'listStart'==_0x1a8dce['key'])return null==_0x1a8dce['newValue']||0x1==_0x1a8dce['newValue']&&null==_0x1a8dce['oldValue']?_0x342134:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x29077f=>{if(_0x29077f['batch']['isUndo'])return!0x1;let _0x240a81=!0x1;const _0x17dd0d=_0x1f7cf6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4eb10e=>{const _0x4cd39e=_0x1f7cf6['_getAttributeKey'](_0x4eb10e);return'listStart'==_0x4cd39e||'listReversed'==_0x4cd39e;});for(const _0x2d1c01 of _0x17dd0d){const _0x470719=_0x2d1c01['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x470719||'customNumbered'==_0x470719)continue;_0x1f7cf6['_findSuggestions'](_0x2d1c01['getFirstRange'](),'attribute')['find'](_0x6b9947=>'listType'==_0x1f7cf6['_getAttributeKey'](_0x6b9947['suggestion']))||(_0x29077f['removeMarker'](_0x2d1c01['getFirstMarker']()),_0x240a81=!0x0);}return _0x240a81;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2fd994){const _0x314c45=this['editor']['locale'],{data:_0x41eafc}=_0x2fd994,_0x5ce104={'type':'format','content':''};if(!_0x41eafc||'listStyle'!=_0x41eafc['key'])return;if(!_0x41eafc['oldValue'])return'default'==_0x41eafc['newValue']?_0x5ce104:{'type':'format','content':''+c(_0x314c45,'*Set\x20format:*\x20%0',c(_0x314c45,this['_getTranslationKeyForListStyle'](_0x41eafc['newValue'])))};if(!_0x41eafc['newValue']){if('default'==_0x41eafc['oldValue'])return _0x5ce104;let _0x43233e=_0x2fd994['head'];for(;_0x43233e;){if(_0x43233e['data']&&'listType'==_0x43233e['data']['key']&&_0x43233e['data']['newValue'])return _0x5ce104;_0x43233e=_0x43233e['next'];}return{'type':'format','content':''+c(_0x314c45,'*Remove\x20format:*\x20%0',c(_0x314c45,this['_getTranslationKeyForListStyle'](_0x41eafc['oldValue'])))};}if('default'!=_0x41eafc['newValue'])return{'type':'format','content':''+c(_0x314c45,'*Set\x20format:*\x20%0',c(_0x314c45,this['_getTranslationKeyForListStyle'](_0x41eafc['newValue'])))};let _0x264eae=_0x2fd994['head'];for(;_0x264eae;){if(_0x264eae['data']&&'listType'==_0x264eae['data']['key']&&_0x264eae['data']['newValue']&&_0x264eae['data']['oldValue'])return _0x5ce104;_0x264eae=_0x264eae['next'];}return{'type':'format','content':c(_0x314c45,'*Set\x20format:*\x20%0',c(_0x314c45,'ELEMENT_'+_0x2fd994['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1fcd47=this['editor'],_0x5e824b=_0x1fcd47['locale'];_0x1fcd47['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x352a5c=>{if('formatBlock'!=_0x352a5c['type'])return;const {data:_0x2d2667}=_0x352a5c;if(!_0x2d2667)return;let _0x2d4b1f,_0x35a246;switch(_0x2d2667['commandName']){case'listStyle':_0x2d4b1f='*Change\x20to:*\x20%0',_0x35a246={'type':'format','content':c(_0x5e824b,_0x2d4b1f,c(_0x5e824b,this['_getTranslationKeyForListStyle'](_0x2d2667['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2d4b1f=_0x2d2667['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x35a246={'type':'format','content':c(_0x5e824b,_0x2d4b1f)};break;case'listStart':_0x2d4b1f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x35a246={'type':'format','content':c(_0x5e824b,_0x2d4b1f,_0x2d2667['commandParams'][0x0]['startIndex'])};}return _0x35a246;});}['_getTranslationKeyForListStyle'](_0x3db420){return'ELEMENT_'+function(_0x5163d3){if(_e['includes'](_0x5163d3))return'bulleted';if(Re['includes'](_0x5163d3))return'numbered';return null;}(_0x3db420)['toUpperCase']()+'_LIST_'+_0x3db420['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x3953b7{['afterInit'](){const _0x48dedc=this['editor'];_0x48dedc['commands']['get']('emoji')&&_0x48dedc['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x3953b7{static get['requires'](){return[_0x34f239];}['init'](){const _0x21a1a4=this['editor'],_0x1ed3f2=_0x21a1a4['plugins']['get']('TrackChangesEditing'),_0x463eef=_0x21a1a4['commands']['get']('enter');_0x1ed3f2['enableCommand']('enter',()=>{_0x21a1a4['model']['change'](_0x2b771d=>{const _0x462582=_0x21a1a4['model']['document']['selection'],_0x4f3f04=_0x462582['getFirstPosition'](),_0x14874d=_0x34ca76['fromRange'](_0x462582['getFirstRange']());if(_0x463eef['enterBlock'](_0x2b771d)){const _0x135e3e=_0x21a1a4['model']['createPositionAt'](_0x4f3f04['parent']['nextSibling'],0x0),_0x5a51e=_0x2b771d['createRange'](_0x4f3f04,_0x135e3e);_0x1ed3f2['markInsertion'](_0x5a51e);}else _0x2b771d['setSelection'](_0x2b771d['createRange'](_0x14874d['end']));_0x14874d['detach'](),_0x463eef['fire']('afterExecute',{'writer':_0x2b771d});});}),_0x21a1a4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x21a1a4,'split'),{'priority':'high'}),_0x21a1a4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5e41d8,_0xe2edea,_0x2834b6)=>{const _0xa05977=_0x2834b6['mapper']['markerNameToElements'](_0xe2edea['markerName']);if(_0xa05977){for(const _0x219e54 of _0xa05977)_0x219e54['hasClass']('ck-suggestion-marker-split')&&(_0x2834b6['mapper']['unbindElementFromMarkerName'](_0x219e54,_0xe2edea['markerName']),_0x2834b6['writer']['remove'](_0x219e54));}},{'priority':'high'}),_0x21a1a4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x15f7ea,_0xaa7512,_0x4d7324)=>{_0x4d7324['options']['showSuggestionHighlights']&&Fe(_0x21a1a4,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x15f7ea,_0xaa7512,_0x4d7324);},{'priority':'high'});}}class Z extends _0x3953b7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x48ea79=this['editor']['plugins']['get']('TrackChangesEditing');_0x48ea79['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x48ea79['enableCommand']('findNext'),_0x48ea79['enableCommand']('findPrevious'),_0x48ea79['enableCommand']('replace'),_0x48ea79['enableCommand']('replaceAll');}['handleFindCommand'](_0x50d70e,_0x39065f,_0x526d84={}){const _0x68da15=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x50d70e(_0x484be1=>{let _0x1a0fbf=('string'==typeof _0x39065f?_0x68da15['findByTextCallback'](_0x39065f,_0x526d84):_0x39065f)(_0x484be1);Array['isArray'](_0x1a0fbf)&&(_0x1a0fbf={'results':_0x1a0fbf,'searchText':'string'==typeof _0x39065f?_0x39065f:''});const _0x48d55d=_0x1a0fbf['results']['filter'](_0xd47bad=>!0x1===this['_isInDeletionRange'](_0xd47bad,_0x484be1['item']));return{..._0x1a0fbf,'results':_0x48d55d};},_0x526d84);}['_isInDeletionRange'](_0x1bceeb,_0x53c222){const _0x9cbd85=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x53c222,_0x1bceeb['start']),this['editor']['model']['createPositionAt'](_0x53c222,_0x1bceeb['end']));for(const _0x59e64e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x9cbd85['getIntersection'](_0x59e64e['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x3953b7{['afterInit'](){const _0x462b5a=this['editor']['locale'],_0x43c630=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x41b350,commandName:_0xd22c08}of ro)this['editor']['plugins']['has'](_0x41b350)&&(_0x43c630['enableDefaultAttributesIntegration'](_0xd22c08),_0x43c630['registerInlineAttribute'](_0xd22c08));_0x43c630['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x462b5a,'FORMAT_FONT_SIZE')),_0x43c630['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x462b5a,'FORMAT_FONT_FAMILY')),_0x43c630['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x462b5a,'FORMAT_FONT_COLOR')),_0x43c630['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x462b5a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3aa6c5=this['editor'],_0x2fe457=_0x3aa6c5['locale'];_0x3aa6c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14cb5b=>{const _0x502bb1=_0x2fe457['t'];if('formatInline'!=_0x14cb5b['type'])return;const {data:_0x15610e}=_0x14cb5b;if(null!=_0x15610e){if('fontSize'==_0x15610e['commandName']){const _0x29aa72=_0x15610e['commandParams'][0x0]['value'];if(_0x29aa72){const _0x58cd4a=_0x502bb1(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x43dc59=>_0x43dc59['model']==_0x29aa72)['title'])['toLowerCase']();return{'type':'format','content':c(_0x2fe457,'*Set\x20font\x20size:*\x20%0',_0x58cd4a)};}return{'type':'format','content':c(_0x2fe457,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x15610e['commandName']){const _0x33b0b8=_0x15610e['commandParams'][0x0]['value'];return _0x33b0b8?{'type':'format','content':c(_0x2fe457,'*Set\x20font\x20family:*\x20%0',_0x33b0b8)}:{'type':'format','content':c(_0x2fe457,'*Reset\x20font\x20family*')};}if('fontColor'==_0x15610e['commandName']){const _0x5b59c3=_0x15610e['commandParams'][0x0]['value'];if(_0x5b59c3){const _0x75f764=_0x60b02b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2ca463=>_0x2ca463['model']==_0x5b59c3);let _0x462e62=_0x5b59c3,_0x5340ce='';return _0x75f764&&(_0x462e62=_0x75f764['label'],_0x5340ce=_0x502bb1(_0x462e62)['toLowerCase']()),{'type':'format','content':c(_0x2fe457,'*Set\x20font\x20color:*\x20%0',_0x5340ce)['trim'](),'color':{'value':_0x5b59c3,'title':_0x5340ce||_0x462e62}};}return{'type':'format','content':c(_0x2fe457,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x15610e['commandName']){const _0x537065=_0x15610e['commandParams'][0x0]['value'];if(_0x537065){const _0x407969=_0x60b02b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2ead88=>_0x2ead88['model']==_0x537065);let _0x1793bf=_0x537065,_0x3de2ee='';return _0x407969&&(_0x1793bf=_0x407969['label'],_0x3de2ee=_0x502bb1(_0x1793bf)['toLowerCase']()),{'type':'format','content':c(_0x2fe457,'*Set\x20font\x20background\x20color:*\x20%0',_0x3de2ee)['trim'](),'color':{'value':_0x537065,'title':_0x3de2ee||_0x1793bf}};}return{'type':'format','content':c(_0x2fe457,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x3953b7{['afterInit'](){const _0xb0491a=this['editor'],_0x804b1=_0xb0491a['plugins']['get']('TrackChangesEditing'),_0x5a29e3=_0xb0491a['commands']['get']('copyFormat'),_0x23e135=_0xb0491a['commands']['get']('pasteFormat');_0x5a29e3&&_0x23e135&&(_0x804b1['enableDefaultAttributesIntegration']('pasteFormat'),_0x804b1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x20be50=this['editor'],_0x561a70=_0x20be50['locale'];_0x20be50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58bfe2=>{if('formatBlock'!=_0x58bfe2['type']&&'formatInline'!=_0x58bfe2['type'])return;const {data:_0xf1ad1f}=_0x58bfe2;if(_0xf1ad1f&&'pasteFormat'===_0xf1ad1f['commandName']){const _0x50043c=[],_0x564215=_0xf1ad1f['commandParams'][0x0];for(const [_0x38e0fb,_0x363b0b]of Object['entries'](_0x564215))_0x50043c['push'](so(_0x20be50,_0x38e0fb,_0x363b0b));return _0x50043c['length']?{'type':'format','content':c(_0x561a70,'*Set\x20format\x20to:*\x20%0',_0x50043c['join'](',\x20'))}:{'type':'format','content':c(_0x561a70,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4d82fe,_0x1f0b32,_0x551112){const _0x155e6b=_0x4d82fe['locale']['t'],_0x2b530a=_0x1f0b32['split'](/(?=[A-Z])/)['join']('\x20'),_0x1b8560=_0x155e6b(_0x2b530a['charAt'](0x0)['toUpperCase']()+_0x2b530a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x551112)return _0x1b8560;if('fontColor'===_0x1f0b32||'fontBackgroundColor'===_0x1f0b32){const _0xda3dd9=_0x60b02b(_0x4d82fe['config']['get']('fontColor.colors'))['find'](_0x23f43d=>_0x23f43d['model']==_0x551112);return _0x1b8560+'\x20('+(_0xda3dd9?_0x155e6b(_0xda3dd9['label'])['toLowerCase']():_0x551112)+')';}if('fontSize'===_0x1f0b32&&isNaN(parseFloat(_0x551112))){const _0x4dd1c0=_0x4d82fe['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4d82fe['config']['get']('fontSize.options'))['find'](_0xa68d1d=>_0xa68d1d['model']==_0x551112);return _0x1b8560+'\x20('+(_0x4dd1c0?_0x155e6b(_0x4dd1c0['title'])['toLowerCase']():_0x551112)+')';}return _0x1b8560+'\x20('+_0x551112+')';}class et extends _0x3953b7{['_headingOptions'];['afterInit'](){const _0x24786d=this['editor'];if(!_0x24786d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x24786d['config']['get']('heading.options');const _0x2755bc=_0x24786d['locale'],_0xee80f6=_0x24786d['plugins']['get']('TrackChangesEditing');_0xee80f6['enableDefaultAttributesIntegration']('heading');for(const _0xbeb9c1 of this['_headingOptions'])'paragraph'!=_0xbeb9c1['model']&&_0xee80f6['descriptionFactory']['registerElementLabel'](_0xbeb9c1['model'],_0x321222=>{const _0x6ad84a=this['_getHeadingLevel'](_0xbeb9c1['model']);return null!==_0x6ad84a?_0x502436(_0x321222,_0x6ad84a):_0x32a492(_0x321222,_0xbeb9c1['title']);});function _0x502436(_0x22f509,_0x269e7f){return c(_0x2755bc,'ELEMENT_HEADING',[_0x22f509,_0x269e7f]);}function _0x32a492(_0x4a0884,_0x24bfb4){return c(_0x2755bc,'ELEMENT_HEADING_CUSTOM',[_0x4a0884,_0x24bfb4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cb42a=this['editor'],_0x5dddc6=_0x4cb42a['locale'];function _0xef2970(_0x54fbd9,_0x355f43){return c(_0x5dddc6,'ELEMENT_HEADING_CUSTOM',[_0x54fbd9,_0x355f43]);}_0x4cb42a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fe6c7=>{if('formatBlock'!=_0x3fe6c7['type'])return;const {data:_0x15a7d9}=_0x3fe6c7;if(_0x15a7d9&&'heading'==_0x15a7d9['commandName']){const _0x5b423e=_0x15a7d9['commandParams'][0x0]['value'],_0x491af0=this['_getHeadingLevel'](_0x5b423e);if(null!==_0x491af0)return{'type':'format','content':c(_0x5dddc6,'*Change\x20to:*\x20%0',(_0xa23eb3=0x1,_0x3d53dd=_0x491af0,c(_0x5dddc6,'ELEMENT_HEADING',[_0xa23eb3,_0x3d53dd])))};const _0x37b1c1=this['_headingOptions']['find'](_0x33ee74=>_0x33ee74['model']===_0x5b423e)['title'];return{'type':'format','content':c(_0x5dddc6,'*Change\x20to:*\x20%0',_0xef2970(0x1,_0x37b1c1))};}var _0xa23eb3,_0x3d53dd;});}['_getHeadingLevel'](_0x23c915){const _0x535bcb=_0x23c915['match'](/^heading(\d+)/);if(_0x535bcb)return _0x535bcb[0x1];const _0x2acef9=this['_headingOptions']?.['find'](_0x156ec4=>_0x156ec4['model']==_0x23c915);if(_0x2acef9&&_0x2acef9['view']){const _0x191be2=_0x2acef9['view'],_0x344eb5=(_0x191be2['name']??_0x191be2)['match'](/^h(\d+)/);if(_0x344eb5)return _0x344eb5[0x1];}return null;}}class nt extends _0x3953b7{['afterInit'](){const _0x51d347=this['editor'];if(!_0x51d347['plugins']['has']('HighlightEditing'))return;const _0x40ca59=_0x51d347['plugins']['get']('TrackChangesEditing'),_0x9cb591=_0x51d347['locale'];_0x40ca59['enableDefaultAttributesIntegration']('highlight'),_0x40ca59['registerInlineAttribute']('highlight'),_0x40ca59['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x9cb591,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9b486d=this['editor'],_0x28735b=_0x9b486d['locale'];_0x9b486d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cd5d1=>{if('formatInline'!=_0x1cd5d1['type'])return;const {data:_0x5dba2c}=_0x1cd5d1;if(_0x5dba2c&&'highlight'==_0x5dba2c['commandName']){const _0x164677=_0x28735b['t'],_0x1f97c1=_0x5dba2c['commandParams'][0x0]['value'];if(_0x1f97c1){const _0x5d7daa=_0x9b486d['config']['get']('highlight.options')['find'](_0x4e91f3=>_0x4e91f3['model']==_0x1f97c1),_0x2699a6=_0x164677(_0x5d7daa['title'])['toLowerCase']();return{'type':'format','content':c(_0x28735b,'*Set\x20highlight:*\x20%0',_0x2699a6),'color':{'value':_0x5d7daa['color'],'title':_0x5d7daa['title']}};}return{'type':'format','content':c(_0x28735b,'*Remove\x20highlight*',c(_0x28735b,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x3953b7{['afterInit'](){const _0x1b5f5f=this['editor'];if(!_0x1b5f5f['plugins']['has']('HorizontalLineEditing'))return;_0x1b5f5f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x421348=_0x1b5f5f['plugins']['get']('TrackChangesEditing'),_0x3fdbfc=_0x1b5f5f['locale'];_0x421348['descriptionFactory']['registerElementLabel']('horizontalLine',_0x398210=>c(_0x3fdbfc,'ELEMENT_HORIZONTAL_LINE',_0x398210)),_0x1b5f5f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x24fe7f,{writer:_0x18ccdd,options:_0x8ca225})=>{if(!_0x8ca225['showSuggestionHighlights'])return null;const _0x120baf=_0x18ccdd['createContainerElement']('div'),_0x4840ae=_0x18ccdd['createEmptyElement']('hr');return _0x18ccdd['addClass']('ck-horizontal-line',_0x120baf),_0x18ccdd['insert'](_0x18ccdd['createPositionAt'](_0x120baf,0x0),_0x4840ae),_0x120baf;},'converterPriority':'high'});}}class ot extends _0x3953b7{['afterInit'](){const _0x29c5bc=this['editor'];if(!_0x29c5bc['plugins']['has']('HtmlEmbed'))return;const _0xbae537=_0x29c5bc['plugins']['get']('TrackChangesEditing'),_0x2f65d0=_0x29c5bc['locale'];_0xbae537['descriptionFactory']['registerElementLabel']('rawHtml',_0x51111c=>c(_0x2f65d0,'ELEMENT_HTML_EMBED',_0x51111c)),_0xbae537['enableDefaultAttributesIntegration']('htmlEmbed'),_0xbae537['registerBlockAttribute']('value'),_0xbae537['descriptionFactory']['registerDescriptionCallback'](_0x3f9bf1=>{if('attribute'!=_0x3f9bf1['type'])return;const {data:_0x141a75}=_0x3f9bf1;if(_0x141a75&&'value'==_0x141a75['key']&&_0x3f9bf1['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x166257=c(_0x2f65d0,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x2f65d0,'*Change\x20%0\x20content*',_0x166257)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30837f=this['editor'],_0x7c30c4=_0x30837f['locale'];_0x30837f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x314307=>{if('formatBlock'!=_0x314307['type'])return;const {data:_0x23b24d}=_0x314307;if(_0x23b24d&&'htmlEmbed'==_0x23b24d['commandName']){const _0x5f2bab=c(_0x7c30c4,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x7c30c4,'*Change\x20%0\x20content*',_0x5f2bab)};}});}}class rt extends _0x3953b7{['afterInit'](){const _0x4ff951=this['editor'];if(!_0x4ff951['plugins']['has']('ImageEditing'))return;const _0x42e22c=_0x4ff951['plugins']['get']('TrackChangesEditing'),_0x1e3f17=_0x4ff951['plugins']['get']('ImageUtils'),_0xe3793b=_0x4ff951['locale'];_0x42e22c['enableCommand']('insertImage'),_0x42e22c['descriptionFactory']['registerElementLabel']('imageBlock',_0x5edfff=>c(_0xe3793b,'ELEMENT_IMAGE',_0x5edfff)),_0x42e22c['descriptionFactory']['registerElementLabel']('imageInline',_0x45ab5d=>c(_0xe3793b,'ELEMENT_INLINE_IMAGE',_0x45ab5d)),_0x42e22c['descriptionFactory']['registerElementLabel']('caption',()=>c(_0xe3793b,'ELEMENT_CAPTION')),_0x4ff951['plugins']['has']('ImageUploadEditing')&&_0x42e22c['enableCommand']('uploadImage'),_0x4ff951['plugins']['has']('ImageBlockEditing')&&_0x4ff951['plugins']['has']('ImageInlineEditing')&&(_0x42e22c['enableCommand']('imageTypeInline',(_0x33c38b,_0x54926b)=>{const _0x38283b=_0x1e3f17['getClosestSelectedImageElement'](_0x4ff951['model']['document']['selection']);_0x4ff951['model']['change'](()=>{_0x42e22c['markBlockFormat'](_0x38283b,{'commandName':'imageTypeInline','commandParams':[_0x54926b]},[],'convertBlockImageToInline');});}),_0x42e22c['enableCommand']('imageTypeBlock',(_0x52a9c2,_0x1cfa92)=>{_0x4ff951['model']['change'](_0x1a8a62=>{let _0x527e64=_0x1e3f17['getClosestSelectedImageElement'](_0x4ff951['model']['document']['selection']),_0x3020ad=_0x1a8a62['createRangeOn'](_0x527e64);const _0x57f49f=_0x15578e['fromPosition'](_0x3020ad['start'],'toPrevious'),_0x5e65eb=_0x15578e['fromPosition'](_0x3020ad['end'],'toNext');_0x42e22c['forceDefaultExecution'](()=>_0x52a9c2(_0x1cfa92)),_0x527e64=_0x1e3f17['getClosestSelectedImageElement'](_0x4ff951['model']['document']['selection']),_0x3020ad=_0x1a8a62['createRangeOn'](_0x527e64);const _0x249729=_0x1a8a62['createRange'](_0x57f49f,_0x5e65eb);_0x57f49f['detach'](),_0x5e65eb['detach'](),_0x42e22c['markBlockFormat'](_0x527e64,{'commandName':'imageTypeInline','commandParams':[_0x1cfa92]},[],'convertInlineImageToBlock'),_0x249729['start']['isBefore'](_0x3020ad['start'])&&_0x42e22c['markInsertion'](_0x1a8a62['createRange'](_0x249729['start'],_0x3020ad['start']),'convertInlineImageToBlock'),_0x3020ad['end']['isBefore'](_0x249729['end'])&&_0x42e22c['markInsertion'](_0x1a8a62['createRange'](_0x3020ad['end'],_0x249729['end']),'convertInlineImageToBlock');});}),_0x42e22c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x42e22c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x42e22c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x42e22c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x42e22c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x42e22c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4b4ee7])=>{const _0x3b1e54=_0x42e22c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5a672e=_0x4b4ee7['start'],_0x2dc0a4=_0x4b4ee7['end'];const _0x5b7607=_0x4ff951['model']['schema']['getNearestSelectionRange'](_0x5a672e,'backward'),_0x5ae850=_0x4ff951['model']['schema']['getNearestSelectionRange'](_0x2dc0a4,'forward');_0x5b7607['isCollapsed']&&(_0x5a672e=_0x5b7607['start']),_0x5ae850['isCollapsed']&&(_0x2dc0a4=_0x5ae850['end']),_0x3b1e54([_0x4ff951['model']['createRange'](_0x5a672e,_0x2dc0a4)]);}),_0x42e22c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x57838b),_0x42e22c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x57838b)),_0x4ff951['plugins']['has']('ImageCaptionEditing')&&(_0x42e22c['enableCommand']('toggleImageCaption',(_0x1efbb4,_0x5a278b)=>{const _0x14a64d=_0x4ff951['plugins']['get']('ImageCaptionUtils');let _0x4900e9=_0x1e3f17['getClosestSelectedImageElement'](_0x4ff951['model']['document']['selection']),_0x2fc832=_0x14a64d['getCaptionFromImageModelElement'](_0x4900e9);_0x4ff951['model']['change'](()=>{if(_0x2fc832)return void _0x42e22c['markDeletion'](_0x4ff951['model']['createRangeOn'](_0x2fc832));const _0x372498=_0x1e3f17['isBlockImage'](_0x4900e9);_0x1efbb4(_0x5a278b),_0x4900e9=_0x1e3f17['getClosestSelectedImageElement'](_0x4ff951['model']['document']['selection']),_0x2fc832=_0x14a64d['getCaptionFromImageModelElement'](_0x4900e9),_0x42e22c['markInsertion'](_0x4ff951['model']['createRangeOn'](_0x2fc832),_0x372498?null:'imageCaption');});}),_0x42e22c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x57838b));const _0x5e57cc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3e393d(_0x51a1c4,_0x953aab){const _0x2f3589=_0x5e57cc['findIndex'](({type:_0x410723,subType:_0x35b287})=>_0x51a1c4['type']==_0x410723&&_0x51a1c4['subType']==_0x35b287),_0x4f8e9d=_0x5e57cc['findIndex'](({type:_0x54eeea,subType:_0xf5d791})=>_0x953aab['type']==_0x54eeea&&_0x953aab['subType']==_0xf5d791);if(_0x2f3589<0x0||_0x4f8e9d<0x0)return!0x1;const _0x2dc6cb=_0x51a1c4['getFirstRange'](),_0x550131=_0x953aab['getFirstRange']();if((0x0==_0x2f3589||0x1==_0x2f3589)&&0x2==_0x4f8e9d&&_0x2dc6cb['isIntersecting'](_0x550131))return!0x0;if(0x2==_0x2f3589&&0x3==_0x4f8e9d){const _0x5458e0=_0x42e22c['_findSuggestions'](_0x2dc6cb,'insertion')['filter'](({suggestion:_0x48fa32,meta:_0xeb87bc})=>_0xeb87bc['isOwn']&&'convertInlineImageToBlock'==_0x48fa32['subType']);if(_0x5458e0['length']>0x1&&_0x550131['end']['isEqual'](_0x2dc6cb['start']))return!0x0;if(0x1==_0x5458e0['length']&&(_0x2dc6cb['start']['isEqual'](_0x550131['end'])||_0x2dc6cb['end']['isEqual'](_0x550131['start'])))return!0x0;}if(0x3==_0x2f3589&&0x3==_0x4f8e9d&&_0x2dc6cb['start']['isBefore'](_0x550131['start'])){const _0x416f8d=_0x2dc6cb['end']['nodeAfter'],_0x345144=_0x550131['start']['nodeBefore'];return _0x1e3f17['isBlockImage'](_0x416f8d)&&_0x416f8d===_0x345144;}return!0x1;}function _0x57838b(_0x4e1efd,_0x45c35a){return _0x3e393d(_0x4e1efd,_0x45c35a)?[_0x4e1efd,_0x45c35a]:_0x3e393d(_0x45c35a,_0x4e1efd)?[_0x45c35a,_0x4e1efd]:null;}_0x4ff951['plugins']['has']('ImageResize')&&(_0x42e22c['enableDefaultAttributesIntegration']('resizeImage'),_0x42e22c['registerBlockAttribute']('resizedWidth'),_0x42e22c['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0xe3793b,'FORMAT_IMAGE_SIZE'))),_0x4ff951['plugins']['has']('ImageTextAlternativeEditing')&&(_0x42e22c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x42e22c['registerBlockAttribute']('alt')),_0x4ff951['plugins']['has']('PictureEditing')&&(_0x42e22c['registerBlockAttribute']('sources'),_0x42e22c['descriptionFactory']['registerDescriptionCallback'](_0x1f8519=>{if('attribute'!=_0x1f8519['type'])return;const {data:_0x5e874e}=_0x1f8519;return _0x5e874e&&'sources'==_0x5e874e['key']?{'type':'format','content':''}:void 0x0;})),_0x4ff951['plugins']['has']('ImageSizeAttributes')&&(_0x42e22c['registerBlockAttribute']('width'),_0x42e22c['registerBlockAttribute']('height'),_0x42e22c['descriptionFactory']['registerDescriptionCallback'](_0x571ce9=>{if('attribute'!=_0x571ce9['type'])return;const {data:_0x1a0182}=_0x571ce9;return!_0x1a0182||'width'!=_0x1a0182['key']&&'height'!=_0x1a0182['key']?void 0x0:{'type':'format','content':''};})),_0x42e22c['descriptionFactory']['registerDescriptionCallback'](_0x4f63db=>{if(!!_0x5e57cc['find'](({type:_0x22f40a,subType:_0x3bc908})=>_0x4f63db['type']==_0x22f40a&&_0x4f63db['subType']==_0x3bc908))return _0x4f63db['previous']?{}:void 0x0;}),_0x42e22c['descriptionFactory']['registerDescriptionCallback'](_0x24da56=>{if('insertion'==_0x24da56['type']||'deletion'==_0x24da56['type']){const _0x5497f6=_0x24da56['getContainedElement']();if(_0x5497f6&&_0x5497f6['is']('element','caption'))return{'type':'insertion'==_0x24da56['type']?'addObject':'removeObject','element':_0x5497f6,'quantity':0x1};}}),_0x42e22c['descriptionFactory']['registerDescriptionCallback'](_0x169ba8=>'formatBlock'==_0x169ba8['type']&&'convertInlineImageToBlock'==_0x169ba8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x169ba8['type']&&'convertBlockImageToInline'==_0x169ba8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x42e22c['descriptionFactory']['registerDescriptionCallback'](_0x4fdead=>{if('attribute'!=_0x4fdead['type'])return;const {data:_0x4e5761}=_0x4fdead;if(!_0x4e5761||'alt'!=_0x4e5761['key'])return;const _0x5cf346=_0x4e5761['newValue'];return _0x5cf346?{'type':'format','content':c(_0xe3793b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5cf346+'\x22')}:{'type':'format','content':c(_0xe3793b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56f371=this['editor'],_0x251b19=_0x56f371['locale'];_0x56f371['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d934c=>{if('formatBlock'!=_0x3d934c['type']&&'formatInline'!=_0x3d934c['type'])return;const {data:_0x21024c}=_0x3d934c;if(_0x21024c){if('imageTextAlternative'==_0x21024c['commandName']){const _0x4e65fd=_0x21024c['commandParams'][0x0]['newValue'];return _0x4e65fd?{'type':'format','content':c(_0x251b19,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4e65fd+'\x22')}:{'type':'format','content':c(_0x251b19,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x21024c['commandName']){const _0x4e9f41=_0x21024c['commandParams'][0x0]['width'];return _0x4e9f41?{'type':'format','content':c(_0x251b19,'*Set\x20image\x20width:*\x20%0',_0x4e9f41)}:{'type':'format','content':c(_0x251b19,'*Reset\x20image\x20width*')};}}});}}class at extends _0x3953b7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4aa5bc=this['editor']['locale'],_0x496e85=this['editor']['plugins']['get']('TrackChangesEditing');_0x496e85['enableDefaultAttributesIntegration']('replaceImageSource'),_0x496e85['registerBlockAttribute']('src'),_0x496e85['descriptionFactory']['registerDescriptionCallback'](_0x10fe36=>{if('attribute'!=_0x10fe36['type'])return;const {data:_0x5f37a6}=_0x10fe36;return _0x5f37a6&&'src'==_0x5f37a6['key']?_0x5f37a6['newValue']&&_0x5f37a6['oldValue']?{'type':'format','content':c(_0x4aa5bc,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5c782d=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c782d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5c782d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c782d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5c782d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12272e=this['editor'],_0x1d136b=_0x12272e['locale'];_0x12272e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cedb3=>{if('formatBlock'!=_0x5cedb3['type']&&'formatInline'!=_0x5cedb3['type'])return;const {data:_0x4eedd6}=_0x5cedb3;if(!_0x4eedd6||'replaceImageSource'!=_0x4eedd6['commandName'])return;return{'type':'format','content':c(_0x1d136b,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x3953b7{['afterInit'](){const _0xb6299a=this['editor'];if(!_0xb6299a['plugins']['has']('ImageStyleEditing'))return;const _0x129110=_0xb6299a['plugins']['get']('TrackChangesEditing'),_0x309b86=_0xb6299a['plugins']['get']('ImageUtils'),_0x248105={};_0x129110['enableCommand']('imageStyle',(_0x3b6143,_0x24d9b0)=>{const _0x2a5921=_0xb6299a['plugins']['get']('Users')['me'],_0x2c4fde=_0xb6299a['commands']['get']('imageStyle');let _0x287dba=_0x309b86['getClosestSelectedImageElement'](_0xb6299a['model']['document']['selection']),_0x170e1a=_0xb6299a['model']['createRangeOn'](_0x287dba),_0x41348d=_0x2c4fde['value'];if(_0x41348d==_0x24d9b0['value'])return;const _0x1037ee={'commandName':'imageStyle','commandParams':[_0x24d9b0],'formatGroupId':_0x524fb1()};_0xb6299a['model']['change'](()=>{if(_0x129110['getSuggestions']()['filter'](_0x412793=>_0x412793['isInContent']&&_0x2a5921==_0x412793['author']&&('formatBlock'==_0x412793['type']||'formatInline'==_0x412793['type'])&&('imageStylePreApply'==_0x412793['subType']||'imageStylePostApply'==_0x412793['subType'])&&_0x412793['getFirstRange']()['isEqual'](_0x170e1a))['forEach'](_0x59066f=>_0x129110['discardSuggestion'](_0x59066f['head'])),_0x287dba=_0x309b86['getClosestSelectedImageElement'](_0xb6299a['model']['document']['selection']),_0x170e1a=_0xb6299a['model']['createRangeOn'](_0x287dba),_0x2c4fde['refresh'](),_0xb6299a['commands']['get']('imageTypeInline')['refresh'](),_0xb6299a['commands']['get']('imageTypeBlock')['refresh'](),_0x41348d=_0x2c4fde['value'],_0x41348d!=_0x24d9b0['value'])return _0x309b86['isInlineImage'](_0x287dba)&&_0x2c4fde['shouldConvertImageType'](_0x24d9b0['value'],_0x287dba)?(_0x3b6143({..._0x24d9b0,'setImageSizes':!0x1}),_0x287dba=_0x309b86['getClosestSelectedImageElement'](_0xb6299a['model']['document']['selection']),void _0x129110['markBlockFormat'](_0x287dba,{..._0x1037ee,'commandReversedParams':[{'value':_0x41348d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x309b86['isBlockImage'](_0x287dba)?_0x129110['markBlockFormat'](_0x287dba,_0x1037ee,[],'imageStylePostApply'):_0x129110['markInlineFormat'](_0x170e1a,_0x1037ee,'imageStylePostApply'));});});for(const _0x5e35f4 of _0xb6299a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x248105[_0x5e35f4['name']]=_0x5e35f4['title']['toLowerCase']();_0x129110['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x129110['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x129110['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x129110['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x362157])=>{_0x309b86['setImageNaturalSizeAttributes'](_0x362157['getContainedElement']());}),_0x129110['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2fcd2e,_0x54ccfb)=>{_0x129110['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2fcd2e,{'commandName':_0x54ccfb['commandName'],'commandParams':_0x54ccfb['commandReversedParams']});}),_0x129110['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x26b034,_0x22ef52){if(_0x218bb1(_0x26b034,_0x22ef52))return[_0x26b034,_0x22ef52];if(_0x218bb1(_0x22ef52,_0x26b034))return[_0x22ef52,_0x26b034];return null;});const _0x593cca=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x218bb1(_0x135cea,_0x5d567c){const _0x161112=_0x593cca['findIndex'](({type:_0x1c7b00,subType:_0x1c8d98})=>_0x135cea['type']==_0x1c7b00&&_0x135cea['subType']==_0x1c8d98),_0x2fd31c=_0x593cca['findIndex'](({type:_0x139536,subType:_0x420bc9})=>_0x5d567c['type']==_0x139536&&_0x5d567c['subType']==_0x420bc9);if(_0x161112<0x0||_0x2fd31c<0x0)return!0x1;const _0x51ec98=_0x135cea['getFirstRange'](),_0xbc99cc=_0x5d567c['getFirstRange']();if((0x0==_0x161112||0x1==_0x161112)&&0x2==_0x2fd31c&&_0x51ec98['isIntersecting'](_0xbc99cc))return!0x0;if(0x2==_0x161112&&0x3==_0x2fd31c){const _0x53d326=_0x129110['_findSuggestions'](_0x51ec98,'insertion')['filter'](({suggestion:_0x3d24f8,meta:_0x3141c5})=>_0x3141c5['isOwn']&&'convertInlineImageToBlock'==_0x3d24f8['subType']);if(_0x53d326['length']>0x1&&_0xbc99cc['end']['isEqual'](_0x51ec98['start']))return!0x0;if(0x1==_0x53d326['length']&&(_0x51ec98['start']['isEqual'](_0xbc99cc['end'])||_0x51ec98['end']['isEqual'](_0xbc99cc['start'])))return!0x0;}if(0x3==_0x161112&&0x3==_0x2fd31c&&_0x51ec98['start']['isBefore'](_0xbc99cc['start'])){const _0x1d9104=_0x51ec98['end']['nodeAfter'],_0x21865d=_0xbc99cc['start']['nodeBefore'];return _0x309b86['isBlockImage'](_0x1d9104)&&_0x1d9104===_0x21865d;}return!0x1;}_0xb6299a['model']['document']['registerPostFixer'](()=>{let _0x3caa8a=!0x1;const _0x393337=Array['from'](_0xb6299a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x292117,data:_0x5b5d7a}of _0x393337){const {group:_0xb09eab,type:_0x2a039d,subType:_0x2d2537,id:_0x4570e2}=_0x129110['_splitMarkerName'](_0x292117);if('suggestion'==_0xb09eab&&_0x129110['hasSuggestion'](_0x4570e2)){if('formatBlock'==_0x2a039d&&('imageStylePreApply'==_0x2d2537||'imageStylePostApply'==_0x2d2537)){const _0x2dd726=_0x129110['getSuggestion'](_0x4570e2);if(_0x5b5d7a['newRange']){const _0x57a6b1=_0x2dd726['getFirstRange']()['getContainedElement']();if(_0x309b86['isBlockImage'](_0x57a6b1))continue;_0x129110['discardSuggestion'](_0x2dd726),_0x3caa8a=!0x0;}}if('insertion'==_0x2a039d&&'imageCaption'==_0x2d2537&&!_0x5b5d7a['newRange']){const _0xe27769=_0x129110['getSuggestion'](_0x4570e2);_0xe27769['next']&&_0xe27769['next']['isInContent']&&(_0x129110['discardSuggestion'](_0xe27769['next']),_0x3caa8a=!0x0);}}}return _0x3caa8a;}),this['_registerLegacyDescription'](_0x248105);}['_registerLegacyDescription'](_0x551ae8){const _0x4879e4=this['editor'],_0x69d769=_0x4879e4['locale'];_0x4879e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28d765=>{if('formatBlock'!=_0x28d765['type']&&'formatInline'!=_0x28d765['type'])return;const {data:_0x3bd2f5}=_0x28d765;if(!_0x3bd2f5||'imageStyle'!=_0x3bd2f5['commandName'])return;const _0x57d3e6=_0x3bd2f5['commandParams'][0x0]['value'];return _0x18d994('side'===_0x57d3e6?c(_0x69d769,'FORMAT_SIDE_IMAGE'):_0x551ae8[_0x57d3e6]||_0x57d3e6);function _0x18d994(_0x2db2b9){return{'type':'format','content':c(_0x69d769,'*Format:*\x20%0',_0x2db2b9)};}});}}class ut extends _0x3953b7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3e0bb5){super(_0x3e0bb5),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x53f0ed=this['editor'],_0x1dcb95=_0x53f0ed['commands']['get']('importWord'),_0x5bb57c=_0x53f0ed['commands']['get']('trackChanges');_0x1dcb95&&(_0x1dcb95['on']('execute',(_0x27da4f,[,_0xed00b9])=>{this['_trackChangesValueDuringImport']=_0x5bb57c['value'],_0xed00b9['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1dcb95,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1dcb95,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5bb57c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x53f0ed['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x114bc9,_0x2d807f){const {suggestions:_0x3d6ec7}=_0x2d807f,_0x160af3=this['editor']['commands']['get']('trackChanges'),_0x2c7cd3=_0x160af3['value'];this['_trackChangesValueDuringImport']!==_0x2c7cd3&&(_0x160af3['execute'](),this['_trackChangesExecuted']=!0x0),_0x3d6ec7&&_0x3d6ec7['forEach'](({id:_0x322cfd,type:_0x1f24a3,author:_0x902ea6,created_at:_0x545430})=>{const _0x1bfeb7={'id':_0x322cfd,'type':_0x1f24a3,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x902ea6,'createdAt':_0x545430?new Date(_0x545430):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1bfeb7);});}}class ft extends _0x3953b7{['afterInit'](){const _0x1c60d8=this['editor'],_0x33ad79=_0x1c60d8['plugins']['get']('TrackChangesEditing');if(_0x1c60d8['plugins']['has']('IndentEditing')&&(_0x33ad79['enableCommand']('indent'),_0x33ad79['enableCommand']('outdent')),_0x1c60d8['plugins']['has']('IndentBlock')){for(const _0x64dec5 of['indentBlock','outdentBlock'])_0x33ad79['enableDefaultAttributesIntegration'](_0x64dec5);}const _0x2704cd=_0x1c60d8['locale'];_0x33ad79['registerBlockAttribute']('blockIndent'),_0x33ad79['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x2704cd,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e952a=this['editor'],_0x39006b=_0x3e952a['locale'],_0x358f6b=_0x3e952a['plugins']['get']('TrackChangesEditing');_0x358f6b['descriptionFactory']['registerDescriptionCallback'](_0x4db59c=>{if('formatBlock'!=_0x4db59c['type'])return;const {data:_0x4d981b}=_0x4db59c;if(!_0x4d981b)return;if('indentBlock'!=_0x4d981b['commandName']&&'outdentBlock'!=_0x4d981b['commandName'])return;const _0x3d722c=_0x4db59c['getItems']()[0x0],_0x3b4351=_0x358f6b['descriptionFactory']['getItemLabel'](_0x3d722c);return'indentBlock'==_0x4d981b['commandName']?{'type':'format','content':c(_0x39006b,'*Indent:*\x20%0',_0x3b4351)}:'outdentBlock'==_0x4d981b['commandName']?{'type':'format','content':c(_0x39006b,'*Outdent:*\x20%0',_0x3b4351)}:void 0x0;});}}class ht extends _0x3953b7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x3953b7{['afterInit'](){const _0x47bb36=this['editor'];if(!_0x47bb36['plugins']['has']('LinkEditing'))return;const _0x138e1e=_0x47bb36['plugins']['get']('TrackChangesEditing'),_0xc3de38=_0x47bb36['commands']['get']('link');_0x138e1e['enableDefaultAttributesIntegration']('link'),_0x138e1e['enableDefaultAttributesIntegration']('unlink'),_0x138e1e['registerInlineAttribute']('linkHref');for(const _0x181fbe of _0xc3de38['manualDecorators'])_0x138e1e['registerInlineAttribute'](_0x181fbe['id']),_0x138e1e['descriptionFactory']['registerAttributeLabel'](_0x181fbe['id'],'link\x20('+_0x181fbe['label']['toLowerCase']()+')');_0x138e1e['descriptionFactory']['registerDescriptionCallback'](_0x32308e=>{if('attribute'!=_0x32308e['type'])return;const {data:_0x2a8f06}=_0x32308e;if(!_0x2a8f06||'linkHref'!=_0x2a8f06['key'])return;const _0x4bcfc8=_0x2a8f06['newValue'],_0x5f57a2=_0x47bb36['locale'];return{'type':'format','content':null==_0x4bcfc8?c(_0x5f57a2,'*Remove\x20link*'):c(_0x5f57a2,'*Set\x20link:*\x20%0','\x22'+_0x4bcfc8+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23d2aa=this['editor'],_0x3eb318=_0x23d2aa['locale'];_0x23d2aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x543634=>{if('formatInline'!=_0x543634['type'])return;const {data:_0x9a8f6e}=_0x543634;if(_0x9a8f6e){if('link'==_0x9a8f6e['commandName']){const _0x1f3a69=_0x9a8f6e['commandParams'][0x0];return{'type':'format','content':c(_0x3eb318,'*Set\x20link:*\x20%0','\x22'+_0x1f3a69+'\x22')};}return'unlink'==_0x9a8f6e['commandName']?{'type':'format','content':c(_0x3eb318,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x3953b7{['afterInit'](){const _0x2541fd=this['editor'],_0x476f00=_0x2541fd['locale'];if(!_0x2541fd['plugins']['has']('LegacyListEditing'))return;const _0x5dd766=_0x2541fd['plugins']['get']('TrackChangesEditing'),_0xa55af9=_0x2541fd['plugins']['has']('LegacyTodoListEditing');function _0xda926c(_0x317109){return()=>{const _0xad1b5=_0x2541fd['model']['document']['selection'],_0x4eef75=_0x2541fd['commands']['get'](_0x317109);if(_0x4eef75['value'])return void _0x2541fd['execute']('paragraph',{});const _0x3e6689=_0x317109['slice'](0x0,-0x4),_0x1cf122=function(_0x336e42,_0x55a722,_0x51e2b0){let _0x1d23fe=Array['from'](_0x336e42)['filter'](_0x36543f=>function(_0x11e05c,_0xf02293){return _0xf02293['checkChild'](_0x11e05c['parent'],'listItem')&&!_0xf02293['isObject'](_0x11e05c);}(_0x36543f,_0x51e2b0));_0x1d23fe=_0x1d23fe['filter'](_0x5eb3ed=>!_0x5eb3ed['is']('element','listItem')||_0x5eb3ed['getAttribute']('listType')!=_0x55a722);const _0x4ede8a=new Set();for(const _0x226d4e of _0x1d23fe)_0x226d4e['is']('element','listItem')?_0x4ede8a['add'](Le(_0x226d4e)):_0x4ede8a['add'](_0x226d4e);return Array['from'](_0x4ede8a);}(_0xad1b5['getSelectedBlocks'](),_0x3e6689,_0x2541fd['model']['schema']);_0x2541fd['model']['change'](()=>{for(const _0x12abf1 of _0x1cf122)_0x5dd766['markBlockFormat'](_0x12abf1,{'commandName':_0x317109,'commandParams':[{'forceValue':!_0x4eef75['value']}],'formatGroupId':'blockName'},Ee(_0x12abf1));});};}function _0x4adb6b(_0x17b3e6){return()=>{const _0x514a45=function(_0x599e01){let _0x4b4d1f=Array['from'](_0x599e01);const _0x4457aa=_0x4b4d1f['findIndex'](_0x26f99f=>'listItem'!=_0x26f99f['name']);return _0x4457aa>-0x1&&(_0x4b4d1f=_0x4b4d1f['slice'](0x0,_0x4457aa)),_0x4b4d1f;}(_0x2541fd['model']['document']['selection']['getSelectedBlocks']()),_0x243754=_0x2541fd['model']['createRange'](_0x2541fd['model']['createPositionAt'](_0x514a45[0x0],'before'),_0x2541fd['model']['createPositionAt'](_0x514a45[_0x514a45['length']-0x1],'end'));_0x2541fd['model']['change'](()=>{_0x5dd766['markBlockFormat'](_0x243754,{'commandName':_0x17b3e6,'commandParams':[],'formatGroupId':'listIndent'},function(_0x437b39){const _0x3a1794=new Set();for(const _0x44709e of _0x437b39){let _0x4ee7c3=_0x44709e['nextSibling'];for(;_0x4ee7c3&&_0x4ee7c3['getAttribute']('listIndent')>_0x44709e['getAttribute']('listIndent');)_0x3a1794['add'](_0x4ee7c3),_0x4ee7c3=_0x4ee7c3['nextSibling'];}return Array['from'](_0x3a1794);}(_0x514a45));});};}_0x5dd766['enableCommand']('numberedList',_0xda926c('numberedList')),_0x5dd766['enableCommand']('bulletedList',_0xda926c('bulletedList')),_0xa55af9&&_0x5dd766['enableCommand']('todoList',_0xda926c('todoList')),_0x5dd766['enableCommand']('indentList',_0x4adb6b('indentList')),_0x5dd766['enableCommand']('outdentList',_0x4adb6b('outdentList')),_0xa55af9&&_0x5dd766['enableCommand']('checkTodoList',()=>{const _0x1f8c7f=_0x2541fd['commands']['get']('checkTodoList'),_0x45d851=Array['from'](_0x1f8c7f['_selectedElements']);_0x45d851['filter'](_0x1f4ed7=>_0x1f4ed7['getAttribute']('todoListChecked')!=_0x1f8c7f['value']),_0x2541fd['model']['change'](()=>{for(const _0x419b19 of _0x45d851)_0x5dd766['markBlockFormat'](_0x419b19,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1f8c7f['value']}]});});}),_0x5dd766['descriptionFactory']['registerElementLabel']('listItem',_0x198456=>c(_0x476f00,'ELEMENT_LIST_ITEM',_0x198456)),_0x5dd766['descriptionFactory']['registerDescriptionCallback'](_0x267497=>{if('formatBlock'!=_0x267497['type']&&'formatInline'!=_0x267497['type'])return;const {data:_0x230380}=_0x267497;if(_0x230380){if('numberedList'==_0x230380['commandName']||'bulletedList'==_0x230380['commandName']||'todoList'==_0x230380['commandName'])switch(_0x230380['commandName']['replace']('List','')){case'bulleted':return _0x3027da(c(_0x476f00,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3027da(c(_0x476f00,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3027da(c(_0x476f00,'ELEMENT_TODO_LIST'));}if('indentList'==_0x230380['commandName'])return{'type':'format','content':c(_0x476f00,'*Indent:*\x20%0',c(_0x476f00,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x230380['commandName'])return{'type':'format','content':c(_0x476f00,'*Outdent:*\x20%0',c(_0x476f00,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x230380['commandName'])return _0x230380['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x476f00,'*Check\x20item*')}:{'type':'format','content':c(_0x476f00,'*Uncheck\x20item*')};}function _0x3027da(_0x56a54c){return{'type':'format','content':c(_0x476f00,'*Change\x20to:*\x20%0',_0x56a54c)};}});}}function Le(_0x45c58d){const _0x137ece=_0x45c58d['getAttribute']('listIndent');if(0x0==_0x137ece)return _0x45c58d;let _0x8c603c=_0x45c58d;for(;_0x45c58d['previousSibling']&&_0x45c58d['previousSibling']['is']('element','listItem');){const _0x38c5ff=_0x45c58d['previousSibling']['getAttribute']('listIndent');if(_0x38c5ff==_0x137ece)_0x8c603c=_0x45c58d['previousSibling'];else{if(_0x38c5ff<_0x137ece)break;}_0x45c58d=_0x45c58d['previousSibling'];}return _0x8c603c;}function Ee(_0x3d0d84){const _0x402d46=[];if(_0x3d0d84['is']('element','listItem')&&_0x3d0d84['getAttribute']('listIndent')>0x0){let _0x27049d=_0x3d0d84['nextSibling'];for(;_0x27049d&&'listItem'==_0x27049d['name']&&_0x27049d['getAttribute']('listIndent')==_0x3d0d84['getAttribute']('listIndent');)_0x402d46['push'](_0x27049d),_0x27049d=_0x27049d['nextSibling'];}return _0x402d46;}class Q extends _0x3953b7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x588cd3=this['editor']['config']['get']('list.properties'),_0x2efb47=this['editor']['plugins']['get']('TrackChangesEditing');_0x588cd3['styles']&&_0x2efb47['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x588cd3['reversed']&&_0x2efb47['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x588cd3['startIndex']&&_0x2efb47['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2efb47['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x209ee1,_0x251f62={}){const _0x338b49=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d5017=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x338b49['markMultiRangeBlockFormat'](_0x3d5017,{'commandName':'listStyle','commandParams':[{'type':_0x251f62['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4a66f9,_0x3e1467={}){const _0x505223=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35b9b9=this['_getSuggestionBlocks'](_0x329dd1=>_0x329dd1['is']('element','listItem')&&'numbered'===_0x329dd1['getAttribute']('listType'));if(_0x35b9b9['length']<0x1)return;const _0x1cf24a=_0x35b9b9['map'](_0x32e9f4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x32e9f4,'before'),this['editor']['model']['createPositionAt'](_0x32e9f4,0x0)));this['editor']['model']['change'](()=>{_0x505223['markMultiRangeBlockFormat'](_0x1cf24a,{'commandName':'listReversed','commandParams':[{'reversed':_0x3e1467['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x30334b,_0x155a1d={}){const _0x5bce00=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfaf30b=this['_getSuggestionBlocks'](_0x1b63ea=>_0x1b63ea['is']('element','listItem')&&'numbered'===_0x1b63ea['getAttribute']('listType'));if(_0xfaf30b['length']<0x1)return;const _0x127d72=_0xfaf30b['map'](_0x428415=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x428415,'before'),this['editor']['model']['createPositionAt'](_0x428415,0x0)));this['editor']['model']['change'](()=>{_0x5bce00['markMultiRangeBlockFormat'](_0x127d72,{'commandName':'listStart','commandParams':[{'startIndex':_0x155a1d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x172a96){if('formatBlock'!=_0x172a96['type']&&'formatInline'!=_0x172a96['type'])return;const _0x44fab1=this['editor']['locale'],{data:_0x4fb62b}=_0x172a96;if(!_0x4fb62b)return;let _0x952770,_0x535265;switch(_0x4fb62b['commandName']){case'listStyle':_0x952770='*Change\x20to:*\x20%0',_0x535265={'type':'format','content':c(_0x44fab1,_0x952770,c(_0x44fab1,this['_getTranslationKeyForListStyle'](_0x4fb62b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x952770=_0x4fb62b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x535265={'type':'format','content':c(_0x44fab1,_0x952770)};break;case'listStart':_0x952770='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x535265={'type':'format','content':c(_0x44fab1,_0x952770,_0x4fb62b['commandParams'][0x0]['startIndex'])};}return _0x535265;}['_getSuggestionBlocksForListStyle'](){const _0x16c25c=this['editor']['plugins']['get']('LegacyListUtils');let _0x436c7f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x436c7f[0x0]?.['is']('element','listItem')&&_0x436c7f['unshift'](..._0x16c25c['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x436c7f[_0x436c7f['length']-0x1]?.['is']('element','listItem')&&_0x436c7f['push'](..._0x16c25c['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x436c7f=[...new Set(_0x436c7f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x436c7f=_0x436c7f['filter'](_0x166c02=>_0x166c02['is']('element','listItem'))),_0x436c7f;}['_getSuggestionBlocks'](_0x37f628){const _0x2cea7a=this['editor']['plugins']['get']('LegacyListUtils');let _0x2aee28=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x37f628)['map'](_0x2428d9=>{const _0x343bf2=this['editor']['model']['createPositionAt'](_0x2428d9,0x0);return[..._0x2cea7a['getSiblingNodes'](_0x343bf2,'backward'),..._0x2cea7a['getSiblingNodes'](_0x343bf2,'forward')];})['flat']();return _0x2aee28=[...new Set(_0x2aee28)],_0x2aee28;}['_getTranslationKeyForListStyle'](_0xa3a13c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xa3a13c)||'default')['toUpperCase']()+'_LIST_'+_0xa3a13c['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x3953b7{['afterInit'](){const _0x30046e=this['editor'];if(!_0x30046e['plugins']['has']('MediaEmbedEditing'))return;const _0x24c87b=_0x30046e['plugins']['get']('TrackChangesEditing'),_0x40a231=_0x30046e['locale'];_0x24c87b['enableCommand']('mediaEmbed'),_0x24c87b['descriptionFactory']['registerElementLabel']('media',_0x4a7101=>c(_0x40a231,'ELEMENT_MEDIA',_0x4a7101)),_0x30046e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5d33bf,{writer:_0x410a55,options:_0x3f8edc})=>{if(_0x3f8edc['showSuggestionHighlights'])return _0x410a55['createEmptyElement']('div');},'converterPriority':'high'}),_0x30046e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x138f6a,_0x4ff56e,_0x2f98d9)=>{_0x2f98d9['options']['showSuggestionHighlights']&&_0x138f6a['stop']();},{'priority':'high'});}}class pt extends _0x3953b7{['afterInit'](){const _0x2d1c36=this['editor'];_0x2d1c36['plugins']['has']('MentionEditing')&&_0x2d1c36['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x3953b7{['afterInit'](){const _0x763880=this['editor'];if(!_0x763880['plugins']['has']('MergeFieldsEditing'))return;const _0x24bc63=_0x763880['plugins']['get']('TrackChangesEditing'),_0x2ca272=_0x763880['locale'];_0x24bc63['enableCommand']('insertMergeField'),_0x24bc63['enableCommand']('insertMergeFieldBlock'),_0x24bc63['enableCommand']('insertMergeFieldImage'),_0x24bc63['descriptionFactory']['registerElementLabel']('mergeField',_0x1fad2f=>c(_0x2ca272,'ELEMENT_MERGE_FIELD',_0x1fad2f)),_0x24bc63['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x59b392=>c(_0x2ca272,'ELEMENT_MERGE_FIELD',_0x59b392)),_0x24bc63['descriptionFactory']['registerDescriptionCallback'](_0x1a5251=>{if('insertion'!=_0x1a5251['type']&&'deletion'!=_0x1a5251['type'])return;const _0x51d65e=_0x1a5251['getContainedElement']();if(null==_0x51d65e)return;const _0x429f49=_0x763880['plugins']['get']('MergeFieldsEditing');let _0x2873ba;switch(_0x429f49['getMergeFieldType'](_0x51d65e)){case null:return;case'image':{const _0x2dfe9a=_0x429f49['unwrapAffixes'](_0x51d65e['getAttribute']('src'));_0x2873ba=_0x429f49['getLabel'](_0x2dfe9a)||_0x2dfe9a;break;}default:{const _0x419ee1=_0x51d65e['getAttribute']('id');_0x2873ba=_0x429f49['getLabel'](_0x419ee1)||_0x419ee1;break;}}return'insertion'==_0x1a5251['type']?{'type':'insertion','content':c(_0x2ca272,'*Insert:*\x20%0','\x22'+_0x2873ba+'\x22\x20'+c(_0x2ca272,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x2ca272,'*Remove:*\x20%0','\x22'+_0x2873ba+'\x22\x20'+c(_0x2ca272,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x3953b7{['afterInit'](){const _0x4374cf=this['editor'],_0x3ce089=_0x4374cf['plugins']['get']('TrackChangesEditing');_0x4374cf['plugins']['has']('MultiLevelList')&&(_0x3ce089['enableDefaultAttributesIntegration']('multiLevelList'),_0x3ce089['registerBlockAttribute']('listMarkerStyle'),_0x3ce089['descriptionFactory']['registerDescriptionCallback'](_0x5f404d=>this['handleDescriptions'](_0x5f404d)));}['handleDescriptions'](_0x294de1){const _0x52886e=this['editor']['locale'],{data:_0xf9dd11}=_0x294de1,_0x552317={'type':'format','content':''};if(_0xf9dd11&&'listMarkerStyle'==_0xf9dd11['key']){if(!_0xf9dd11['oldValue'])return{'type':'format','content':c(_0x52886e,'*Set\x20format:*\x20%0',c(_0x52886e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xf9dd11['newValue']+')'};if(!_0xf9dd11['newValue']){let _0x558662=_0x294de1['head'];for(;_0x558662;){if(_0x558662['data']&&'listType'==_0x558662['data']['key']&&_0x558662['data']['newValue'])return _0x552317;_0x558662=_0x558662['next'];}return{'type':'format','content':c(_0x52886e,'*Remove\x20format:*\x20%0',c(_0x52886e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xf9dd11['oldValue']+')'};}}}}class bt extends _0x3953b7{['afterInit'](){const _0xe8fdcd=this['editor'];if(!_0xe8fdcd['plugins']['has']('PageBreakEditing'))return;_0xe8fdcd['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2b327e=_0xe8fdcd['plugins']['get']('TrackChangesEditing'),_0x1f4043=_0xe8fdcd['locale'];_0x2b327e['descriptionFactory']['registerElementLabel']('pageBreak',_0x18880f=>c(_0x1f4043,'ELEMENT_PAGE_BREAK',_0x18880f));}}class yt extends _0x3953b7{['afterInit'](){const _0x374d22=this['editor'];if(!_0x374d22['plugins']['has']('Paragraph'))return;const _0x439bef=_0x374d22['locale'],_0x18ce7f=_0x374d22['plugins']['get']('TrackChangesEditing');_0x18ce7f['descriptionFactory']['registerElementLabel']('paragraph',_0x514dd0=>c(_0x439bef,'ELEMENT_PARAGRAPH',_0x514dd0)),_0x18ce7f['enableDefaultAttributesIntegration']('paragraph'),_0x18ce7f['enableCommand']('insertParagraph'),_0x374d22['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x374d22),{'priority':'highest'}),_0x374d22['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xff0ebf,_0x3677ef,_0x34d4b8)=>{_0x34d4b8['options']['showSuggestionHighlights']&&nr(_0x374d22,{'showActiveMarker':!0x1})(_0xff0ebf,_0x3677ef,_0x34d4b8);},{'priority':'highest'});const _0x71c6f6=_0x18ce7f['descriptionFactory'];_0x71c6f6['registerDescriptionCallback'](_0x26e3b4=>{if('insertion'!==_0x26e3b4['type'])return;const {start:_0x130657,end:_0x2fc15b}=_0x26e3b4['getFirstRange']();if(!_0x130657['isTouching'](_0x2fc15b)||!_0x130657['nodeAfter'])return;const _0x2c7323=_0x374d22['model']['schema'],_0x2a6c76=_0x130657['nodeAfter'];return _0x2c7323['isBlock'](_0x2a6c76)&&!_0x2c7323['isLimit'](_0x2a6c76)&&_0x2c7323['checkChild'](_0x2a6c76,'$text')?{'type':'insertion','content':c(_0x439bef,'*Insert:*\x20%0',_0x71c6f6['getItemLabel'](_0x2a6c76,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19a933=this['editor'],_0x1e3420=_0x19a933['locale'];_0x19a933['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x372799=>{if('formatBlock'!=_0x372799['type'])return;const {data:_0x49e4df}=_0x372799;return _0x49e4df&&'paragraph'==_0x49e4df['commandName']?{'type':'format','content':c(_0x1e3420,'*Change\x20to:*\x20%0',c(_0x1e3420,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x59e9b2,{showActiveMarker:_0x1d695d=!0x0}={}){return(_0x3029be,_0x3696fc,_0x401184)=>{const _0xa32b21=_0x59e9b2['plugins']['get']('TrackChangesEditing'),_0x4ab57c=_0x3696fc['markerRange']['start'],_0x410ff5=_0x3696fc['markerRange']['end'],_0x5c2d59=_0x59e9b2['model']['schema'];if(!_0x4ab57c['isTouching'](_0x410ff5)||!_0x4ab57c['nodeAfter'])return;const _0x95e977=_0x4ab57c['nodeAfter'];if(_0x5c2d59['isBlock'](_0x95e977)&&!_0x5c2d59['isLimit'](_0x95e977)&&_0x5c2d59['checkChild'](_0x95e977,'$text')){if(!_0x401184['consumable']['consume'](_0x3696fc['markerRange'],_0x3029be['name']))return;const {id:_0x2dc490,authorId:_0x2aa979}=_0xa32b21['_splitMarkerName'](_0x3696fc['markerName']),_0x4751fa=_0x401184['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x2dc490,'data-author-id':_0x2aa979}),_0x481c4e=_0x401184['mapper']['toViewPosition'](_0x410ff5);_0x1d695d&&_0xa32b21['activeMarkers']['includes'](_0x3696fc['markerName'])&&_0x401184['writer']['addClass']('ck-suggestion-marker--active',_0x4751fa),_0x401184['writer']['insert'](_0x481c4e,_0x4751fa),_0x401184['mapper']['bindElementToMarker'](_0x4751fa,_0x3696fc['markerName']);}};}class St extends _0x3953b7{['afterInit'](){const _0x488584=this['editor'];_0x488584['commands']['get']('replaceSource')&&_0x488584['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x3953b7{['afterInit'](){const _0x328877=this['editor'];if(!_0x328877['plugins']['has']('RemoveFormatEditing'))return;_0x328877['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x313d8a=this['editor'];_0x313d8a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12e012=>{if('formatBlock'!=_0x12e012['type']&&'formatInline'!=_0x12e012['type'])return;const {data:_0x3527c4}=_0x12e012;return _0x3527c4&&'removeFormat'==_0x3527c4['commandName']?{'type':'format','content':c(_0x313d8a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x3953b7{['afterInit'](){const _0x5030e9=this['editor'];if(!_0x5030e9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3d43ec=_0x5030e9['plugins']['get']('TrackChangesEditing');_0x3d43ec['enableCommand']('goToPreviousRestrictedEditingException'),_0x3d43ec['enableCommand']('goToNextRestrictedEditingException');const _0xa93aad=_0x5030e9['plugins']['get']('RestrictedEditingModeEditing');_0xa93aad['enableCommand']('trackChanges'),_0xa93aad['enableCommand']('acceptSuggestion'),_0xa93aad['enableCommand']('discardSuggestion'),_0xa93aad['enableCommand']('acceptAllSuggestions'),_0xa93aad['enableCommand']('discardAllSuggestions'),_0xa93aad['enableCommand']('acceptSelectedSuggestions'),_0xa93aad['enableCommand']('discardSelectedSuggestions');}}class At extends _0x3953b7{['afterInit'](){const _0x4b9a55=this['editor'];if(!_0x4b9a55['plugins']['has']('ShiftEnter'))return;const _0x4665de=_0x4b9a55['plugins']['get']('TrackChangesEditing');_0x4665de['enableCommand']('shiftEnter'),_0x4b9a55['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4b9a55),{'priority':'high'}),_0x4b9a55['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4b9a55),{'priority':'high'}),_0x4b9a55['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4d7ff6,_0x3e51cf,_0x2b5ab5)=>{_0x2b5ab5['options']['showSuggestionHighlights']&&je(_0x4b9a55,{'showActiveMarker':!0x1})(_0x4d7ff6,_0x3e51cf,_0x2b5ab5);}),_0x4665de['descriptionFactory']['registerElementLabel']('softBreak',_0x2a3585=>c(_0x4b9a55['locale'],'ELEMENT_LINE_BREAK',_0x2a3585));}}function je(_0x1eacb3,{showActiveMarker:_0x48de0a=!0x0}={}){return(_0x3f8356,_0x2f67c6,_0x4df324)=>{const _0xfeda1c=_0x1eacb3['plugins']['get']('TrackChangesEditing');if(!_0x4df324['consumable']['test'](_0x2f67c6['markerRange'],_0x3f8356['name']))return;const _0xc1c1f=_0x1eacb3['model'];for(const _0x3c97e0 of _0x2f67c6['markerRange']['getItems']()){if(!_0x3c97e0['is']('element','softBreak'))continue;const _0xde57d4='deletion'==_0x2f67c6['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2b8785,authorId:_0x43a9bb}=_0xfeda1c['_splitMarkerName'](_0x2f67c6['markerName']),_0x5889c0=_0x4df324['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xde57d4,'data-suggestion':_0x2b8785,'data-author-id':_0x43a9bb}),_0x13311a=_0x4df324['mapper']['toViewPosition'](_0xc1c1f['createPositionBefore'](_0x3c97e0));_0x48de0a&&_0xfeda1c['activeMarkers']['includes'](_0x2f67c6['markerName'])&&_0x4df324['writer']['addClass']('ck-suggestion-marker--active',_0x5889c0),_0x4df324['writer']['insert'](_0x13311a,_0x5889c0),_0x4df324['mapper']['bindElementToMarker'](_0x5889c0,_0x2f67c6['markerName']);}};}class _t extends _0x3953b7{['afterInit'](){const _0x17cd8b=this['editor'],_0x4b5cb1=_0x17cd8b['model'],_0x418c5d=_0x17cd8b['locale'];if(!_0x17cd8b['plugins']['has']('StandardEditingModeEditing'))return;const _0x314b95=_0x17cd8b['plugins']['get']('TrackChangesEditing'),_0x5ebca4='restrictedEditingException',_0x56dfcf=_0x17cd8b['commands']['get'](_0x5ebca4);_0x314b95['enableCommand'](_0x5ebca4,(_0x4ad6eb,_0x254104={})=>{const _0xc8b633=_0x4b5cb1['document']['selection'];if(_0xc8b633['isCollapsed'])return void _0x4ad6eb(_0x254104);const _0x5defac=void 0x0!==_0x254104['forceValue']?_0x254104['forceValue']:!_0x56dfcf['value'];_0x4b5cb1['change'](()=>{const _0x4d85c1=Array['from'](_0xc8b633['getRanges']());for(const _0x4925b8 of _0x4d85c1){const _0x232a8b=_0x5defac?[_0x4925b8]:io(_0x5ebca4,_0x4925b8,_0x4b5cb1);for(const _0x152c39 of _0x232a8b)_0x314b95['markInlineFormat'](_0x152c39,{'commandName':_0x5ebca4,'commandParams':[{'forceValue':_0x5defac}]});}});}),_0x314b95['descriptionFactory']['registerDescriptionCallback'](_0x23746b=>{if('formatBlock'!=_0x23746b['type']&&'formatInline'!=_0x23746b['type'])return;const {data:_0x41e326}=_0x23746b;return _0x41e326&&_0x41e326['commandName']==_0x5ebca4?_0x41e326['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x418c5d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x418c5d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x3953b7{['afterInit'](){const _0x532060=this['editor'];if(!_0x532060['plugins']['has']('Style')||!_0x532060['plugins']['has']('DataSchema'))return;const _0x49e169=_0x532060['plugins']['get']('TrackChangesEditing'),_0x46de92=_0x532060['locale'],_0x59f34d=_0x532060['config']['get']('style')||{},_0x293cef=_0x532060['plugins']['get']('GeneralHtmlSupport'),_0x3846fa=_0x532060['plugins']['get']('StyleUtils')['normalizeConfig'](_0x532060['plugins']['get']('DataSchema'),_0x59f34d['definitions']);_0x49e169['enableDefaultAttributesIntegration']('style');const _0x5735ad=new Set();for(const _0x427ddb of _0x3846fa['block']){const _0x550470=_0x293cef['getGhsAttributeNameForElement'](_0x427ddb['element']);_0x5735ad['add'](_0x550470);}const _0x5bb839=new Set();for(const _0x1c5bb2 of _0x3846fa['inline']){const _0x4a6d41=_0x293cef['getGhsAttributeNameForElement'](_0x1c5bb2['element']);_0x5bb839['add'](_0x4a6d41);for(const _0x2e502a of _0x1c5bb2['ghsAttributes'])_0x5bb839['add'](_0x2e502a);}for(const _0x52b2cb of _0x5735ad)_0x49e169['registerBlockAttribute'](_0x52b2cb),_0x49e169['descriptionFactory']['registerAttributeLabel'](_0x52b2cb,c(_0x46de92,'FORMAT_STYLE'));for(const _0x548fea of _0x5bb839)_0x49e169['registerInlineAttribute'](_0x548fea),_0x49e169['descriptionFactory']['registerAttributeLabel'](_0x548fea,c(_0x46de92,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc4b40e=this['editor'],_0x171098=_0xc4b40e['locale'];_0xc4b40e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f457c=>{if('formatBlock'!=_0x2f457c['type']&&'formatInline'!=_0x2f457c['type'])return;const {data:_0x5ab4c9}=_0x2f457c;return _0x5ab4c9&&'style'===_0x5ab4c9['commandName']?_0x5ab4c9['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x171098,'*Set\x20format:*\x20%0',_0x5ab4c9['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x171098,'*Remove\x20format:*\x20%0',_0x5ab4c9['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x3953b7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4bf097){super(_0x4bf097),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2ebc38=this['editor'],_0x4940f7=_0x2ebc38['model']['document']['selection'];if(!_0x2ebc38['plugins']['has']('TableEditing'))return;const _0x2c2242=_0x2ebc38['locale'],_0x3cffbc=_0x2ebc38['plugins']['get']('TrackChangesEditing'),_0x432d67=_0x2ebc38['plugins']['get']('TableUtils');_0x3cffbc['descriptionFactory']['registerElementLabel']('table',_0x2887dd=>c(_0x2c2242,'ELEMENT_TABLE',_0x2887dd)),this['_setupColumnsRowsFixing'](),_0x3cffbc['enableCommand']('insertTable'),_0x3cffbc['enableCommand']('selectTableRow'),_0x3cffbc['enableCommand']('selectTableColumn');for(const _0x1933f8 of['insertTableRowAbove','insertTableRowBelow']){const _0x596b3e=_0x2ebc38['commands']['get'](_0x1933f8);_0x3cffbc['enableCommand'](_0x1933f8,_0x550fb1=>{_0x2ebc38['model']['change'](_0x2b98f1=>{_0x550fb1();const _0x1be6f7='above'===_0x596b3e['order'],_0x1cc09a=_0x432d67['getSelectionAffectedTableCells'](_0x4940f7),_0x346fd1=_0x432d67['getRowIndexes'](_0x1cc09a),_0x34199b=_0x1be6f7?_0x346fd1['first']-0x1:_0x346fd1['last']+0x1,_0x9d19e0=_0x1cc09a[0x0]['findAncestor']('table'),_0x4e4f55=_0x432d67['createTableWalker'](_0x9d19e0,{'startRow':_0x34199b,'endRow':_0x34199b}),_0x37d2fd=Array['from'](_0x4e4f55)['map'](_0x296c99=>_0x2b98f1['createRangeOn'](_0x296c99['cell']));_0x3cffbc['markMultiRangeInsertion'](_0x37d2fd,'tableRow');});});}for(const _0x424311 of['insertTableColumnLeft','insertTableColumnRight']){const _0x7ea6fc=_0x2ebc38['commands']['get'](_0x424311);_0x3cffbc['enableCommand'](_0x424311,_0x472636=>{_0x2ebc38['model']['change'](_0x3c19ee=>{_0x472636();const _0x217cba='left'===_0x7ea6fc['order'],_0x14f5b6=_0x432d67['getSelectionAffectedTableCells'](_0x4940f7),_0x28b4b4=_0x432d67['getColumnIndexes'](_0x14f5b6),_0xab4823=_0x217cba?_0x28b4b4['first']-0x1:_0x28b4b4['last']+0x1,_0x1b0514=_0x14f5b6[0x0]['findAncestor']('table'),_0x201d3c=_0x432d67['createTableWalker'](_0x1b0514,{'startRow':0x0,'column':_0xab4823,'includeAllSlots':!0x1}),_0x36a229=Array['from'](_0x201d3c)['map'](_0x27e6c8=>_0x3c19ee['createRangeOn'](_0x27e6c8['cell']));_0x3cffbc['markMultiRangeInsertion'](_0x36a229,'tableColumn');});});}for(const _0x59121b of['removeTableRow','removeTableColumn']){const _0x2f88d5=_0x59121b['substr'](0xb),_0x5e02c1=_0x2f88d5['toLowerCase'](),_0x258f38=_0x5e02c1['substr'](0x0,0x3)+'span',_0xa9c92e='table'+_0x2f88d5,_0x44701a='min'+_0x2f88d5,_0x3c00b9='max'+_0x2f88d5;_0x3cffbc['enableCommand'](_0x59121b,()=>{_0x2ebc38['model']['change'](_0x2937e6=>{const _0x3178b2=_0x432d67['getSelectionAffectedTableCells'](_0x4940f7),_0x2252cf=_0x3178b2[0x0]['findAncestor']('table');let _0x10db0d;if('removeTableRow'==_0x59121b){const _0x90ddf0=_0x432d67['getRowIndexes'](_0x3178b2);_0x10db0d={'startRow':_0x90ddf0['first'],'endRow':_0x90ddf0['last'],'includeAllSlots':!0x0};}else{const _0x2d67dd=_0x432d67['getColumnIndexes'](_0x3178b2);_0x10db0d={'startColumn':_0x2d67dd['first'],'endColumn':_0x2d67dd['last'],'includeAllSlots':!0x0};}const _0x4476a4=_0x432d67['createTableWalker'](_0x2252cf,_0x10db0d),_0x5c1c8d=Array['from'](_0x4476a4)['map'](({cell:_0x24cd47})=>_0x24cd47),_0x2748bc=xe(_0x5c1c8d['filter'](_0x20d79f=>_0x20d79f['hasAttribute'](_0x258f38))),_0x5b253c=xe(_0x5c1c8d['filter'](_0x10072f=>!_0x10072f['hasAttribute'](_0x258f38)))['map'](_0x19dc25=>_0x2937e6['createRangeOn'](_0x19dc25)),_0x295dbb=_0x3cffbc['markMultiRangeDeletion'](_0x5b253c,_0xa9c92e);if(_0x295dbb&&('tableRow'==_0x295dbb['subType']||'tableColumn'==_0x295dbb['subType'])){const _0x1ccc33=this['_getSuggestionCoords'](_0x295dbb);for(const _0x3b4d6e of _0x2748bc){const _0x18c8df=_0x2937e6['createRangeOn'](_0x3b4d6e),_0x3dd36d=_0x432d67['getCellLocation'](_0x3b4d6e),_0x33dc1b=_0x3b4d6e['getAttribute'](_0x258f38)-0x1,_0x12d39b=_0x1ccc33[_0x44701a],_0xaee1ba=_0x1ccc33[_0x3c00b9];_0x12d39b<=_0x3dd36d[_0x5e02c1]&&_0x3dd36d[_0x5e02c1]+_0x33dc1b<=_0xaee1ba&&_0x295dbb['addRange'](_0x18c8df);}}});});}function _0x2ecb45(_0x4fe8ad){const _0xa384bd=Array['from'](_0x4940f7['getRanges']())['map'](_0x8c8d5b=>_0x34ca76['fromRange'](_0x8c8d5b));_0x2ebc38['model']['change'](_0x2bd521=>{const _0x42ab34=_0x2bd521['batch'];_0x4fe8ad=_0x4fe8ad['filter'](_0x4d20b4=>'$graveyard'!=_0x4d20b4['root']['rootName']),_0x2bd521['setSelection'](_0x4fe8ad),_0x2ebc38['commands']['get']('removeTableRow')['refresh'](),_0x2ebc38['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2ebc38['model']['enqueueChange'](()=>{_0x2ebc38['model']['enqueueChange'](_0x42ab34,_0x1e4565=>{const _0x5b10d9=_0xa384bd['filter'](_0x2baa5f=>'$graveyard'!=_0x2baa5f['root']['rootName']);_0x5b10d9['length']>0x0&&_0x1e4565['setSelection'](_0x5b10d9);for(const _0x266883 of _0xa384bd)_0x266883['detach']();});});});}function _0x53f18d(_0x6be0a){_0x2ebc38['model']['change'](_0x464931=>{const _0xdc35be=Array['from'](_0x4940f7['getRanges']())['map'](_0x21d627=>_0x34ca76['fromRange'](_0x21d627)),_0x397c2d=[];for(const _0x28eaa9 of _0x6be0a)for(const _0x3a6255 of _0x28eaa9['getItems']({'shallow':!0x0}))_0x397c2d['push'](_0x3a6255);for(const _0x3a5b57 of _0x397c2d)'$graveyard'!=_0x3a5b57['root']['rootName']&&(_0x464931['setSelection'](_0x464931['createPositionAt'](_0x3a5b57,0x0)),_0x2ebc38['commands']['get']('removeTableColumn')['refresh'](),_0x2ebc38['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x37dc13=_0xdc35be['filter'](_0x2fc980=>'$graveyard'!=_0x2fc980['root']['rootName']);_0x37dc13['length']>0x0&&_0x464931['setSelection'](_0x37dc13);for(const _0x208e73 of _0xdc35be)_0x208e73['detach']();});}function _0x24693e(_0x269b0b,_0x18914){return _0x18914['every'](_0x3ea327=>_0x269b0b['some'](_0x5e211a=>_0x5e211a['end']['isEqual'](_0x3ea327['start'])||_0x3ea327['end']['isEqual'](_0x5e211a['start'])));}function _0x316b16(_0x5f06a9,_0x4a35b2){return!_0x5f06a9['some'](_0x57f0c7=>_0x4a35b2['some'](_0x592fab=>_0x57f0c7['isIntersecting'](_0x592fab)))&&_0x5f06a9['some'](_0x5211f2=>_0x4a35b2['some'](_0xfe37c6=>_0x5211f2['end']['isTouching'](_0xfe37c6['start'])));}_0x2ebc38['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2bac83,_0x58865a,_0x1b3e4b)=>{if(!_0x1b3e4b['options']['showSuggestionHighlights'])return;const _0x442b36=_0x58865a['item'];if(!_0x442b36||!_0x442b36['is']('element','tableCell'))return;const _0x59d763=_0x1b3e4b['mapper']['toViewElement'](_0x442b36);if(_0x59d763){const {id:_0x561fa1,authorId:_0x5cbc53}=_0x3cffbc['_splitMarkerName'](_0x58865a['markerName']);_0x16b302(_0x59d763,_0x1b3e4b['writer'],(_0xc715a1,_0x8118f2,_0x11c402)=>{_0x11c402['addClass'](_0x4e0548(_0x8118f2['classes']),_0xc715a1),_0x11c402['setAttribute']('data-suggestion-id',_0x561fa1,_0xc715a1),_0x11c402['setAttribute']('data-author-id',_0x5cbc53,_0xc715a1);},(_0x543071,_0x4c69a2,_0x441d20)=>{_0x441d20['removeClass'](_0x4e0548(_0x4c69a2['classes']),_0x543071),_0x441d20['removeAttribute']('data-suggestion-id',_0x543071),_0x441d20['removeAttribute']('data-author-id',_0x543071);});}},{'priority':'highest'}),_0x3cffbc['descriptionFactory']['registerDescriptionCallback'](_0x3755ee=>{if('insertion'!=_0x3755ee['type']&&'deletion'!=_0x3755ee['type'])return;const _0x5d7872=_0x3755ee['getContainedElement']();if(null!=_0x5d7872&&_0x5d7872['is']('element','table')){if('insertion'==_0x3755ee['type']){const _0x43894f=_0x3755ee['getItems']()['filter'](_0xad4deb=>_0xad4deb['is']('$textProxy'))['map'](_0x4824f5=>_0x4824f5['data']);if(_0x43894f['length'])return{'type':'insertion','content':c(_0x2c2242,'*Insert:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x43894f['join']('\x20')+'\x22'))};}if('deletion'==_0x3755ee['type']){const _0x579d67=_0x3755ee['getItems']()['filter'](_0x16d215=>_0x16d215['is']('$textProxy'))['map'](_0x383b81=>_0x383b81['data']);if(_0x579d67['length'])return{'type':'deletion','content':c(_0x2c2242,'*Remove:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x579d67['join']('\x20')+'\x22'))};}}}),_0x3cffbc['descriptionFactory']['registerDescriptionCallback'](_0x32cbd5=>{if('tableRow'==_0x32cbd5['subType']){const _0x5c1004=_0x32cbd5['getItems']()['filter'](_0x10a8b8=>_0x10a8b8['is']('$textProxy'))['map'](_0x3f7551=>_0x3f7551['data']),_0x384c23=this['_getSuggestionCoords'](_0x32cbd5),_0x48a853=_0x384c23['maxRow']-_0x384c23['minRow']+0x1;if('insertion'==_0x32cbd5['type'])return _0x5c1004['length']?{'type':'insertion','content':c(_0x2c2242,'*Insert:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x48a853,'\x22'+_0x5c1004['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2c2242,'*Insert:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_ROW',_0x48a853))};if('deletion'==_0x32cbd5['type'])return _0x5c1004['length']?{'type':'deletion','content':c(_0x2c2242,'*Remove:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x48a853,'\x22'+_0x5c1004['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2c2242,'*Remove:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_ROW',_0x48a853))};}if('tableColumn'==_0x32cbd5['subType']){const _0x54c1e1=_0x32cbd5['getItems']()['filter'](_0x388aac=>_0x388aac['is']('$textProxy'))['map'](_0x49ed21=>_0x49ed21['data']),_0x336a7a=this['_getSuggestionCoords'](_0x32cbd5),_0x4ad386=_0x336a7a['maxColumn']-_0x336a7a['minColumn']+0x1;if('insertion'==_0x32cbd5['type'])return _0x54c1e1['length']?{'type':'insertion','content':c(_0x2c2242,'*Insert:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4ad386,'\x22'+_0x54c1e1['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2c2242,'*Insert:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_COLUMN',_0x4ad386))};if('deletion'==_0x32cbd5['type'])return _0x54c1e1['length']?{'type':'deletion','content':c(_0x2c2242,'*Remove:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4ad386,'\x22'+_0x54c1e1['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2c2242,'*Remove:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_COLUMN',_0x4ad386))};}}),_0x3cffbc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2ecb45),_0x3cffbc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2ecb45),_0x3cffbc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x53f18d),_0x3cffbc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x53f18d),_0x3cffbc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x24693e),_0x3cffbc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x24693e),_0x3cffbc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x316b16),_0x3cffbc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x316b16);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1e225e=this['editor'],_0x5e3523=_0x1e225e['model']['document']['selection'];return(_0x16e3b3,_0x473fae)=>{_0x1e225e['model']['change'](_0x1251ae=>{const {commandName:_0x40f110,commandParams:_0x498893}=_0x473fae;let _0x334a61=_0x16e3b3[0x0]['end']['nodeBefore'];_0x498893&&_0x498893[0x0]&&!0x1===_0x498893[0x0]['forceValue']&&(_0x334a61=_0x16e3b3[0x0]['start']['nodeAfter']);const _0x3ce29e=_0x1251ae['createRangeIn'](_0x334a61);if('$graveyard'==_0x3ce29e['root']['rootName'])return;const _0x336ae7=Array['from'](_0x5e3523['getRanges']())['map'](_0x1060ea=>_0x34ca76['fromRange'](_0x1060ea));_0x1251ae['setSelection'](_0x3ce29e),_0x1e225e['commands']['get'](_0x40f110)['refresh'](),_0x498893['push']({'forceDefaultExecution':!0x0}),_0x1e225e['execute'](_0x40f110,..._0x498893);const _0x1db4ff=_0x336ae7['filter'](_0x5ec0c7=>'$graveyard'!=_0x5ec0c7['root']['rootName']);_0x1db4ff['length']>0x0&&_0x1251ae['setSelection'](_0x1db4ff);for(const _0x46fe02 of _0x336ae7)_0x46fe02['detach']();});};}['_getCoordsForCells'](_0xe6147f){const _0x1fe6d3=this['editor']['plugins']['get']('TableUtils');let _0x3d6609=Number['MAX_SAFE_INTEGER'],_0x1710dd=Number['MIN_SAFE_INTEGER'],_0x1d5f59=Number['MAX_SAFE_INTEGER'],_0x2107e4=Number['MIN_SAFE_INTEGER'];for(const _0x3d3c1d of _0xe6147f){if('$graveyard'==_0x3d3c1d['root']['rootName'])continue;const {row:_0x1cd6ff,column:_0x4ad503}=_0x1fe6d3['getCellLocation'](_0x3d3c1d),_0x234b0d=_0x3d3c1d['hasAttribute']('rowspan')?_0x3d3c1d['getAttribute']('rowspan')-0x1:0x0,_0x53862a=_0x3d3c1d['hasAttribute']('colspan')?_0x3d3c1d['getAttribute']('colspan')-0x1:0x0;_0x3d6609=_0x1cd6ff<_0x3d6609?_0x1cd6ff:_0x3d6609,_0x1710dd=_0x1cd6ff+_0x234b0d>_0x1710dd?_0x1cd6ff+_0x234b0d:_0x1710dd,_0x1d5f59=_0x4ad503<_0x1d5f59?_0x4ad503:_0x1d5f59,_0x2107e4=_0x4ad503+_0x53862a>_0x2107e4?_0x4ad503+_0x53862a:_0x2107e4;}return{'minRow':_0x3d6609,'maxRow':_0x1710dd,'minColumn':_0x1d5f59,'maxColumn':_0x2107e4};}['_setupColumnsRowsFixing'](){const _0x36f420=this['editor'],_0x553d06=_0x36f420['plugins']['get']('TrackChangesEditing'),_0x34248f=_0x36f420['plugins']['get']('TableUtils');_0x36f420['model']['document']['on']('change:data',()=>{const _0x58ee71=Array['from'](_0x36f420['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2efaae,data:_0x200de9}of _0x58ee71){const {group:_0x37ac47,id:_0x3f76a4,subType:_0x48368c}=_0x553d06['_splitMarkerName'](_0x2efaae);if('suggestion'!=_0x37ac47)continue;if(null!=_0x200de9['oldRange'])continue;const _0x2da423=_0x553d06['getSuggestion'](_0x3f76a4);this['_tablePostFixingSubtypes']['includes'](_0x48368c)&&this['_tableSuggestions']['add'](_0x2da423);}},{'priority':'low'});const _0x1c784e=(_0x5c33f7,_0x50b914)=>{let _0x96fc96=!0x1;const _0x576c20=_0x50b914['createRangeOn'](_0x5c33f7),_0x2a2062=_0x5c33f7['findAncestor']('table'),_0xedcd0c=_0x34248f['getCellLocation'](_0x5c33f7);for(const _0x4e4eac of this['_tableSuggestions']){const _0x1b800c=_0x4e4eac['subType'],_0x3a2afd=_0x1b800c['startsWith']('tablePaste'),_0x2cbad1=_0x1b800c['substr'](_0x3a2afd?0xa:0x5),_0xc71d26=_0x2cbad1['toLowerCase'](),_0x258eec=_0xc71d26['substr'](0x0,0x3)+'span',_0x52a0a1='min'+_0x2cbad1,_0x56925e='max'+_0x2cbad1;if(!_0x4e4eac['isInContent'])continue;if(_0x2a2062!=_0x4e4eac['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4e4eac['isIntersectingWithRange'](_0x576c20))continue;const _0x20f5ec=_0x5c33f7['hasAttribute'](_0x258eec)?_0x5c33f7['getAttribute'](_0x258eec)-0x1:0x0,_0x223a9d=this['_getSuggestionCoords'](_0x4e4eac),_0x3d57ed=_0x223a9d[_0x52a0a1],_0xa5732=_0x223a9d[_0x56925e];_0x3d57ed<=_0xedcd0c[_0xc71d26]&&_0xedcd0c[_0xc71d26]+_0x20f5ec<=_0xa5732&&(_0x4e4eac['addRange'](_0x576c20),_0x96fc96=!0x0);}return _0x96fc96;};_0x36f420['model']['document']['registerPostFixer'](_0xbf83bc=>{let _0x32e483=!0x1;for(const _0x3a105e of _0x36f420['model']['document']['differ']['getChanges']())if('insert'==_0x3a105e['type']){if('tableRow'==_0x3a105e['name']){for(const _0x3053f2 of _0x3a105e['position']['nodeAfter']['getChildren']())_0x32e483=_0x32e483||_0x1c784e(_0x3053f2,_0xbf83bc);}else'tableCell'==_0x3a105e['name']&&(_0x32e483=_0x32e483||_0x1c784e(_0x3a105e['position']['nodeAfter'],_0xbf83bc));}return _0x32e483;});}['_getSuggestionCoords'](_0x49d866){return this['_getCoordsForCells'](_0x49d866['getRanges']()['map'](_0x4c2e3a=>_0x4c2e3a['start']['nodeAfter']));}}function xe(_0xde480d){return Array['from'](new Set(_0xde480d)['values']());}class Nt extends _0x3953b7{static get['requires'](){return[Ct];}['afterInit'](){const _0xce40a7=this['editor'],_0x3200f7=_0xce40a7['model']['document']['selection'],_0x552419=_0xce40a7['locale'];if(!_0xce40a7['plugins']['has']('TableEditing'))return;const _0xdfb73d=_0xce40a7['plugins']['get']('TrackChangesEditing'),_0x41ac90=_0xce40a7['plugins']['get']('TableUtils'),_0x1a8eb8=_0xce40a7['plugins']['get'](Ct);_0x1a8eb8['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xdfb73d['enableCommand']('mergeTableCells',()=>{const _0x3d633e=_0x41ac90['getSelectionAffectedTableCells'](_0xce40a7['model']['document']['selection']);_0xce40a7['model']['change'](()=>{_0xdfb73d['markMultiRangeBlockFormat'](_0x3d633e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xce40a7['commands']['get']('mergeTableCells')['on']('execute',(_0x3bac3d,_0x24b9ed)=>{_0xce40a7['commands']['get']('trackChanges')['value']&&(_0x24b9ed['length']>0x0&&_0x24b9ed[_0x24b9ed['length']-0x1]&&_0x24b9ed[_0x24b9ed['length']-0x1]['forceDefaultExecution']||_0xdfb73d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3bac3d['stop']());},{'priority':'highest'});for(const _0x383f8a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2b633b=_0xce40a7['commands']['get'](_0x383f8a);_0xdfb73d['enableCommand'](_0x383f8a,()=>{const _0x470e97=_0xce40a7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x216f74=>_0x216f74['is']('element','tableCell')),_0x5a6e23=_0x2b633b['value'];_0xce40a7['model']['change'](()=>{_0xdfb73d['markMultiRangeBlockFormat']([_0x470e97,_0x5a6e23],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4a4201 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5220ee=_0xce40a7['commands']['get'](_0x4a4201);_0xdfb73d['enableCommand'](_0x4a4201,()=>{const _0x72fb92=_0x41ac90['getSelectionAffectedTableCells'](_0xce40a7['model']['document']['selection'])[0x0],_0x55a6ed=_0x72fb92['findAncestor']('table'),{column:_0x11320c,row:_0x11fb7d}=_0x41ac90['getCellLocation'](_0x72fb92);let _0xd5dacf=[];if('horizontally'==_0x5220ee['direction']){const _0x29b3c6=_0x41ac90['createTableWalker'](_0x55a6ed,{'startRow':_0x11fb7d,'endRow':_0x11fb7d,'includeAllSlots':!0x0});_0xd5dacf=Array['from'](_0x29b3c6)['map'](_0x3427fb=>_0x3427fb['cell']);}else{const _0x39d079=_0x41ac90['createTableWalker'](_0x55a6ed,{'column':_0x11320c,'includeAllSlots':!0x0});_0xd5dacf=Array['from'](_0x39d079)['map'](_0x49d17f=>_0x49d17f['cell']);}_0xce40a7['model']['change'](_0x3252e1=>{_0xdfb73d['markBlockFormat'](_0x3252e1['createRangeOn'](_0x72fb92),{'commandName':_0x4a4201,'commandParams':[]},_0xd5dacf,_0x4a4201);});});}_0xdfb73d['descriptionFactory']['registerDescriptionCallback'](_0x4eb71d=>{if('formatBlock'!=_0x4eb71d['type']&&'formatInline'!=_0x4eb71d['type'])return;const {data:_0x81c5a8}=_0x4eb71d;return _0x81c5a8&&'mergeTableCells'==_0x81c5a8['commandName']?{'type':'format','content':c(_0x552419,'*Merge\x20cells*')}:void 0x0;}),_0xdfb73d['descriptionFactory']['registerDescriptionCallback'](_0x5821eb=>{if('formatBlock'!=_0x5821eb['type']&&'formatInline'!=_0x5821eb['type'])return;const {data:_0x5c42d5}=_0x5821eb;return _0x5c42d5?'splitTableCellVertically'==_0x5c42d5['commandName']?{'type':'format','content':c(_0x552419,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5c42d5['commandName']?{'type':'format','content':c(_0x552419,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x41db90=_0x1a8eb8['_acceptFormatSuggestionCallbackFactory']();for(const _0x16f720 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xdfb73d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x16f720,'accept',_0x41db90);for(const _0x27291c of['splitTableCellVertically','splitTableCellHorizontally'])_0xdfb73d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x27291c,'accept',_0x41db90);_0xdfb73d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x42f712=>{_0xce40a7['model']['change'](_0x37fa22=>{const _0x4fd0e5=Array['from'](_0x3200f7['getRanges']())['map'](_0x525a63=>_0x34ca76['fromRange'](_0x525a63));_0x37fa22['setSelection'](_0x42f712),_0xce40a7['commands']['get']('mergeTableCells')['refresh'](),_0xce40a7['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5706c8=_0x4fd0e5['filter'](_0x406620=>'$graveyard'!=_0x406620['root']['rootName']);_0x5706c8['length']>0x0&&_0x37fa22['setSelection'](_0x5706c8);for(const _0x413e9a of _0x4fd0e5)_0x413e9a['detach']();});});for(const _0x4aea6b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4bfb5d=_0xce40a7['commands']['get'](_0x4aea6b);_0x4bfb5d['on']('set:isEnabled',(_0x2e6d90,_0x5233d7,_0x3d4460)=>{if(_0x3d4460){const _0x15bd1b=_0xce40a7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x363d15=>_0x363d15['is']('element','tableCell'));this['_areMergableCells'](_0x4bfb5d['value'],_0x15bd1b)||(_0x2e6d90['return']=!0x1,_0x2e6d90['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x22a66a=this['editor']['commands']['get']('mergeTableCells'),_0x20750d=this['editor']['plugins']['get']('TableUtils');if(!_0x22a66a['isEnabled'])return!0x1;const _0x434547=_0x20750d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4429c6 of _0x434547)for(const _0x1768d4 of _0x434547)if(_0x4429c6!=_0x1768d4&&!this['_areMergableCells'](_0x4429c6,_0x1768d4))return!0x1;return!0x0;}['_areMergableCells'](_0x15046d,_0x197e81){const _0x1ab098=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37dd11=this['editor']['model']['createRangeOn'](_0x15046d),_0x2329a4=this['editor']['model']['createRangeOn'](_0x197e81),_0x5b1342=new Set(),_0x3923f8=new Set();for(const _0x1db2b4 of _0x1ab098['getSuggestions']())if(('insertion'==_0x1db2b4['type']||'deletion'==_0x1db2b4['type']||'mergeTableCells'==_0x1db2b4['subType'])&&_0x1db2b4['isInContent']){for(const _0x4a67fc of _0x1db2b4['getRanges']())_0x4a67fc['containsRange'](_0x37dd11,!0x0)&&_0x5b1342['add'](_0x1db2b4['type']+':'+_0x1db2b4['author']['id']),_0x4a67fc['containsRange'](_0x2329a4,!0x0)&&_0x3923f8['add'](_0x1db2b4['type']+':'+_0x1db2b4['author']['id']);}if(_0x5b1342['size']!=_0x3923f8['size'])return!0x1;for(const _0x3adcbe of _0x5b1342)if(!_0x3923f8['has'](_0x3adcbe))return!0x1;return!0x0;}}class Dt extends _0x3953b7{static get['requires'](){return[Ct];}['afterInit'](){const _0x540027=this['editor'];if(!_0x540027['plugins']['has']('TableEditing'))return;const _0x5da675=_0x540027['locale'],_0x268271=_0x540027['plugins']['get']('TrackChangesEditing');_0x268271['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x268271['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x268271['registerBlockAttribute']('headingRows'),_0x268271['registerBlockAttribute']('headingColumns'),_0x268271['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x5da675,'FORMAT_HEADER_ROW')),_0x268271['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x5da675,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1a6c4b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d0928=this['editor']['plugins']['get']('TableUtils'),_0x4c8290=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x8d224a({showActiveMarker:_0x34d4bb=!0x0,setDataAttribute:_0x22fc15=!0x0}={}){return(_0x503f14,_0xfbfb67,_0x38af61)=>{const {type:_0x579a04,id:_0x179131}=_0x1a6c4b['_splitMarkerName'](_0xfbfb67['markerName']),_0x521248=_0x1a6c4b['getSuggestion'](_0x179131),_0x1a84dd=_0x521248['data'];if('formatBlock'!=_0x521248['type']||!_0x1a84dd||'setTableColumnHeader'!=_0x1a84dd['commandName'])return;if(_0xfbfb67['item'])return void _0x503f14['stop']();if(!_0x38af61['consumable']['consume'](_0xfbfb67['markerRange'],_0x503f14['name']))return;const _0x2bccb5=_0xfbfb67['markerRange']['start']['nodeAfter'],_0x3ec357=_0xfbfb67['markerRange']['end']['nodeBefore'],_0x17a124=_0x2bccb5['parent']['parent'],{column:_0x4aa25e}=_0x4d0928['getCellLocation'](_0x2bccb5),{column:_0x15086c}=_0x4d0928['getCellLocation'](_0x3ec357);for(let _0x35692b=_0x4aa25e;_0x35692b<=_0x15086c;_0x35692b++){const _0x546eb7=_0x4d0928['createTableWalker'](_0x17a124,{'column':_0x35692b,'includeAllSlots':!0x1});for(const _0x21a242 of _0x546eb7){const _0x4be507=_0x21a242['cell'],_0x6ad4f5=_0x38af61['mapper']['toViewElement'](_0x4be507);_0x38af61['writer']['addClass']('ck-suggestion-marker-'+_0x579a04,_0x6ad4f5),_0x22fc15&&_0x38af61['writer']['setAttribute']('data-suggestion',_0x179131,_0x6ad4f5),_0x38af61['mapper']['bindElementToMarker'](_0x6ad4f5,_0xfbfb67['markerName']),_0x34d4bb&&(_0x1a6c4b['activeMarkers']['includes'](_0xfbfb67['markerName'])?_0x38af61['writer']['addClass']('ck-suggestion-marker--active',_0x6ad4f5):_0x38af61['writer']['removeClass']('ck-suggestion-marker--active',_0x6ad4f5));}}};}_0x1a6c4b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4c8290),_0x1a6c4b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4c8290),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x8d224a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5adea2,_0x5b944e,_0x1ba193)=>{_0x1ba193['options']['showSuggestionHighlights']&&_0x8d224a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5adea2,_0x5b944e,_0x1ba193);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x58718d,_0x33b9d5,_0x4555c8)=>{const {type:_0x5b76ef,id:_0x1516bb}=_0x1a6c4b['_splitMarkerName'](_0x33b9d5['markerName']),_0x128be5=_0x1a6c4b['getSuggestion'](_0x1516bb),_0x31d44c=_0x128be5['data'];if('formatBlock'!=_0x128be5['type']||!_0x31d44c||'setTableColumnHeader'!=_0x31d44c['commandName'])return;const _0x5b11d5=_0x4555c8['mapper']['markerNameToElements'](_0x33b9d5['markerName']);if(_0x5b11d5){for(const _0x1c53e2 of _0x5b11d5)_0x4555c8['writer']['removeClass']('ck-suggestion-marker-'+_0x5b76ef,_0x1c53e2),_0x4555c8['writer']['removeClass']('ck-suggestion-marker--active',_0x1c53e2),_0x4555c8['writer']['removeAttribute']('data-suggestion',_0x1c53e2),_0x4555c8['mapper']['unbindElementFromMarkerName'](_0x1c53e2,_0x33b9d5['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x484dcf=this['editor'],_0x1fe843=_0x484dcf['locale'];function _0x1ed380(_0x406715){return{'type':'format','content':c(_0x1fe843,'*Format:*\x20%0',_0x406715)};}_0x484dcf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b7b87=>{if('formatBlock'!=_0x1b7b87['type'])return;const {data:_0x5ab0f1}=_0x1b7b87;if(_0x5ab0f1){if('setTableRowHeader'==_0x5ab0f1['commandName']){const _0x320dc4=_0x5ab0f1['commandParams'][0x0]['forceValue'];return _0x1ed380(c(_0x1fe843,_0x320dc4?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5ab0f1['commandName']){const _0xe05354=_0x5ab0f1['commandParams'][0x0]['forceValue'];return _0x1ed380(c(_0x1fe843,_0xe05354?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x3953b7{['afterInit'](){const _0x36a993=this['editor'],_0x35e178=_0x36a993['locale'],_0x16a8fb=_0x36a993['plugins']['get']('TrackChangesEditing');function _0x5e6a09(_0x219352){return{'type':'format','content':''+c(_0x35e178,'*Set\x20table\x20type:*\x20%0',_0x219352)};}_0x36a993['plugins']['has']('TableLayout')&&(_0x16a8fb['enableCommand']('insertTableLayout'),_0x16a8fb['enableDefaultAttributesIntegration']('tableType'),_0x16a8fb['registerBlockAttribute']('tableType'),_0x16a8fb['descriptionFactory']['registerElementLabel'](_0x41e892=>_0x41e892['is']('element','table')&&'layout'===_0x41e892['getAttribute']('tableType'),_0x4c1d83=>c(_0x35e178,'ELEMENT_LAYOUT_TABLE',_0x4c1d83)),_0x16a8fb['descriptionFactory']['registerDescriptionCallback'](_0x4528e3=>{const {data:_0x2d03f2}=_0x4528e3;if(_0x2d03f2&&'tableType'==_0x2d03f2['key'])switch(_0x2d03f2['newValue']){case'layout':return _0x5e6a09(c(_0x35e178,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5e6a09(c(_0x35e178,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x3cea32=>[_0x3cea32,null]));class $t extends _0x3953b7{static get['requires'](){return[Ct];}['afterInit'](){const _0x42e92b=this['editor'];if(!_0x42e92b['plugins']['has']('TableClipboard'))return;const _0x59f9cb=_0x42e92b['plugins']['get']('TrackChangesEditing'),_0x3993d2=_0x42e92b['plugins']['get']('TableUtils'),_0x313e3=_0x42e92b['plugins']['get'](Ct),_0x1c36ec=_0x42e92b['plugins']['get']('TableClipboard'),_0x397705=_0x42e92b['plugins']['get']('TableSelection'),_0x8753d9=_0x42e92b['plugins']['get'](_0x2a45ef);_0x313e3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x42e92b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x42e92b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x458a04=null,_0x5dbf8e=!0x1;_0x8753d9['on']('contentInsertion',(_0x49a5d5,_0x3e93de)=>{_0x5dbf8e='paste'===_0x3e93de['method'];}),_0x42e92b['model']['on']('insertContent',(_0x23b193,_0x441df7)=>{if(!_0x5dbf8e&&null===_0x397705['getSelectedTableCells']())return;const [_0x45c9a3,_0x4546ae]=_0x441df7,_0x850a25=_0x441df7[_0x441df7['length']-0x1];_0x850a25&&_0x850a25['forceDefaultExecution']||_0x59f9cb['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x41407b,_0x51b385,_0x50ccd0,_0x542865,_0x8a6d2d){if(_0x51b385&&!_0x51b385['is']('documentSelection'))return!0x1;const _0x35811f=_0x8a6d2d['getTableIfOnlyTableInContent'](_0x41407b,_0x50ccd0);if(!_0x35811f||!He(_0x35811f,void 0x0,_0x542865))return!0x1;const _0x36b909=_0x542865['getSelectionAffectedTableCells'](_0x50ccd0['document']['selection']);if(!_0x36b909['length'])return!0x1;const _0x17fbe9=_0x36b909[0x0]['findAncestor']('table'),_0x462227=_0x542865['getRowIndexes'](_0x36b909),_0x25f22c=_0x542865['getColumnIndexes'](_0x36b909),_0x204568={'startRow':_0x462227['first'],'endRow':_0x462227['last'],'startColumn':_0x25f22c['first'],'endColumn':_0x25f22c['last']};return 0x1==_0x36b909['length']&&(_0x204568['endRow']+=_0x542865['getRows'](_0x35811f)-0x1,_0x204568['endColumn']+=_0x542865['getColumns'](_0x35811f)-0x1),He(_0x17fbe9,_0x204568,_0x542865);}(_0x45c9a3,_0x4546ae,_0x42e92b['model'],_0x3993d2,_0x1c36ec)&&(_0x23b193['stop'](),_0x458a04={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x42e92b['model']['change'](()=>{_0x42e92b['model']['insertContent'](_0x441df7[0x0],_0x441df7[0x1],_0x441df7[0x2],{'forceDefaultExecution':!0x0});const _0x5eb903=_0x524fb1(),{rowInsertionRanges:_0x27001e,columnInsertionRanges:_0x577ba5,insertionRanges:_0x1945c9,deletionRanges:_0x209a13,cells:_0x2c88f3}=_0x458a04;_0x27001e['length']&&_0x59f9cb['markMultiRangeInsertion'](_0x27001e,'tablePasteRow',{'tablePasteChainId':_0x5eb903}),_0x577ba5['length']&&_0x59f9cb['markMultiRangeInsertion'](_0x577ba5,'tablePasteColumn',{'tablePasteChainId':_0x5eb903}),_0x1945c9['length']&&(_0x59f9cb['markMultiRangeInsertion'](_0x1945c9,'tablePaste',{'tablePasteChainId':_0x5eb903,'skipNestingCheck':!0x0}),_0x1945c9['forEach'](_0x550bda=>_0x550bda['detach']?.())),_0x209a13['length']&&(_0x59f9cb['markMultiRangeDeletion'](_0x209a13,'tablePaste',{'tablePasteChainId':_0x5eb903,'skipNestingCheck':!0x0}),_0x209a13['forEach'](_0x2b2416=>_0x2b2416['detach']?.()));const _0x224f74=_0x59f9cb['markMultiRangeBlockFormat'](_0x2c88f3['map'](({element:_0x50f279})=>_0x50f279),{'formatGroupId':_0x524fb1()},[],'tablePasteCell',{'tablePasteChainId':_0x5eb903});if(_0x224f74){const _0x3ae3b4=_0x224f74['getMarkers'](),_0x2c4009=[];for(const {element:_0x1b98da,attributes:_0x327f90}of _0x2c88f3){if(!_0x327f90)continue;const _0x2e0db4=_0x42e92b['model']['createRangeOn'](_0x1b98da),_0x2c69db=_0x3ae3b4['find'](_0x176333=>_0x176333['getRange']()['isEqual'](_0x2e0db4));_0x2c69db&&_0x2c4009['push']([_0x2c69db['name'],_0x327f90]);}_0x2c4009['length']&&_0x224f74['setAttribute']('markerAttributes',Object['fromEntries'](_0x2c4009));}_0x458a04=null;}));},{'priority':_0x2ab9b9['high']+0xa}),_0x8753d9['on']('contentInsertion',()=>{_0x5dbf8e=!0x1;},{'priority':'lowest'}),_0x42e92b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x41144e,_0x537246)=>{const [_0x1d0e57,_0x1998e1,,_0x3e1665]=_0x537246;if(!_0x458a04)return;_0x41144e['stop']();const _0x2af41f=_0x1d0e57['cell'],_0x5ded86=_0x1998e1,_0x72ecf1=De(_0x2af41f),_0x4b4af5=De(_0x5ded86);_0x41144e['return']=_0x2af41f;let _0x562b8c=null,_0xe67601=null;if(_0x4b4af5||_0x72ecf1){if(_0x72ecf1&&!_0x4b4af5){_0x3e1665['remove'](_0x2af41f['getChild'](0x0));for(const _0x37734e of Array['from'](_0x5ded86['getChildren']()))_0x3e1665['insert'](_0x37734e,_0x2af41f,'end');const _0x53ee7a=_0x458a04['rowInsertionIndexes']['includes'](_0x1d0e57['row']),_0x3ad07e=_0x458a04['columnInsertionIndexes']['includes'](_0x1d0e57['column']);_0x53ee7a||_0x3ad07e||(_0x562b8c=_0x34ca76['fromRange'](_0x3e1665['createRangeIn'](_0x2af41f)));}else _0x4b4af5&&!_0x72ecf1&&(_0xe67601=_0x3e1665['createRangeIn'](_0x2af41f));}else{const _0x371562=_0x3e1665['createElement']('tableCellSuggestion'),_0x5d7952=_0x3e1665['createElement']('tableCellSuggestion');_0x3e1665['wrap'](_0x3e1665['createRangeIn'](_0x2af41f),_0x5d7952),_0x3e1665['insert'](_0x371562,_0x2af41f,0x0);for(const _0x4fa452 of Array['from'](_0x5ded86['getChildren']()))_0x3e1665['insert'](_0x4fa452,_0x371562,'end');_0x562b8c=_0x34ca76['fromRange'](_0x3e1665['createRangeOn'](_0x371562)),_0xe67601=_0x34ca76['fromRange'](_0x3e1665['createRangeOn'](_0x5d7952));}const _0x2e92e4=Array['from'](_0x5ded86['getAttributes']())['filter'](([_0x2d1793])=>Oe['includes'](_0x2d1793));_0x458a04['cells']['push']({'element':_0x2af41f,'attributes':_0x2e92e4['length']?Object['fromEntries'](_0x2e92e4):null}),_0x562b8c&&_0x458a04['insertionRanges']['push'](_0x562b8c),_0xe67601&&_0x458a04['deletionRanges']['push'](_0xe67601);},{'priority':'high'}),_0x3993d2['on']('insertColumns',(_0x42af83,_0x5c546a)=>{const [_0x329a85,_0x4a5595={}]=_0x5c546a;if(!_0x458a04)return;const _0x2c1d7c=_0x4a5595['at']||0x0,_0x36e808=_0x4a5595['columns']||0x1;_0x458a04['columnInsertionIndexes']=new Array(_0x36e808)['fill'](_0x2c1d7c)['map']((_0x503429,_0x1c8253)=>_0x503429+_0x1c8253);for(const {cell:_0x428c48}of _0x3993d2['createTableWalker'](_0x329a85,{'startColumn':_0x2c1d7c,'endColumn':_0x2c1d7c+_0x36e808-0x1}))_0x458a04['columnInsertionRanges']['push'](_0x42e92b['model']['createRangeOn'](_0x428c48));},{'priority':'low'}),_0x3993d2['on']('insertRows',(_0x21b875,_0x3a70f6)=>{const [_0x4fdd06,_0x32cdf8={}]=_0x3a70f6;if(!_0x458a04)return;const _0x5909ce=_0x32cdf8['at']||0x0,_0x2436e8=_0x32cdf8['rows']||0x1;_0x458a04['rowInsertionIndexes']=new Array(_0x2436e8)['fill'](_0x5909ce)['map']((_0x725f6a,_0x1e827f)=>_0x725f6a+_0x1e827f);for(const {cell:_0x196bd9}of _0x3993d2['createTableWalker'](_0x4fdd06,{'startRow':_0x5909ce,'endRow':_0x5909ce+_0x2436e8-0x1}))_0x458a04['rowInsertionRanges']['push'](_0x42e92b['model']['createRangeOn'](_0x196bd9));},{'priority':'low'}),_0x59f9cb['descriptionFactory']['registerDescriptionCallback'](_0x2443d9=>{if(_0x2443d9['subType']&&_0x2443d9['subType']['startsWith']('tablePaste'))return _0x2443d9['previous']?{}:{'type':'insertion','content':c(_0x42e92b['locale'],'*Replace\x20table\x20cells*')};});const _0x4217ec=()=>!0x1;for(const _0x3f950f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x59f9cb['_suggestionFactory']['registerCustomCallback']('insertion',_0x3f950f,'join',_0x4217ec),_0x59f9cb['_suggestionFactory']['registerCustomCallback']('deletion',_0x3f950f,'join',_0x4217ec),_0x59f9cb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f950f,'join',_0x4217ec);_0x59f9cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4217ec),_0x59f9cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3a1c2,_0x4d6339,_0x2b57a2)=>{const _0x1e9665=_0x3a1c2['map'](_0x4a3b81=>_0x4a3b81['getContainedElement']())['filter'](_0x378991=>_0x378991),_0x5e7475=new Map(_0x1e9665['map'](_0x180f1a=>[_0x180f1a,null]));if(_0x458a04){for(const {element:_0x5c753b,attributes:_0x15f72e}of _0x458a04['cells'])_0x15f72e&&_0x5e7475['set'](_0x5c753b,_0x15f72e);}else{if(_0x2b57a2&&_0x2b57a2['markerAttributes'])for(const [_0x1c9d61,_0x59896a]of Object['entries'](_0x2b57a2['markerAttributes'])){const _0xa2e086=_0x42e92b['model']['markers']['get'](_0x1c9d61),_0x221ea1=_0xa2e086?_0xa2e086['getRange']()['getContainedElement']():null;_0x221ea1&&_0x5e7475['set'](_0x221ea1,_0x59896a);}}_0x42e92b['model']['change'](_0x2e106e=>{for(const [_0x37ea49,_0x3ad380]of _0x5e7475)_0x2e106e['setAttributes']({...Ue,..._0x3ad380},_0x37ea49);});});const _0x4f4369=(_0x1e558b,_0x590ad8)=>{_0x59f9cb['_suggestionFactory']['registerCustomCallback'](_0x1e558b,'tablePaste',_0x590ad8,(_0x21ec48,_0x4b4d39,_0x191232)=>{_0x42e92b['model']['change'](_0x5c9d6c=>{const _0x50aaf2=[];for(const _0x2f6d45 of _0x21ec48){const _0x10f8a2=_0x2f6d45['start']['nodeAfter'];_0x10f8a2['is']('element','tableCellSuggestion')&&_0x50aaf2['push'](_0x10f8a2);}_0x59f9cb['_suggestionFactory']['getSuggestionCallback'](_0x1e558b,null,_0x590ad8)(_0x21ec48,_0x4b4d39,_0x191232);for(const _0x275dce of _0x50aaf2)'$graveyard'!=_0x275dce['root']['rootName']&&_0x5c9d6c['unwrap'](_0x275dce);});});};_0x4f4369('insertion','accept'),_0x4f4369('insertion','discard'),_0x4f4369('deletion','accept'),_0x4f4369('deletion','discard'),_0x59f9cb['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x34eba6=>{const _0x353daf=_0x34eba6['map'](_0x175931=>_0x175931['getContainedElement']()),_0x1e63af=_0x353daf[0x0]['findAncestor']('table'),{minRow:_0x42df53,maxRow:_0x109ff3}=_0x313e3['_getCoordsForCells'](_0x353daf);_0x3993d2['removeRows'](_0x1e63af,{'at':_0x42df53,'rows':_0x109ff3-_0x42df53+0x1});}),_0x59f9cb['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x848aac=>{const _0x327828=_0x848aac['map'](_0xb05b1b=>_0xb05b1b['getContainedElement']()),_0x52778c=_0x327828[0x0]['findAncestor']('table'),{minColumn:_0x3967f3,maxColumn:_0x33595c}=_0x313e3['_getCoordsForCells'](_0x327828);_0x3993d2['removeColumns'](_0x52778c,{'at':_0x3967f3,'columns':_0x33595c-_0x3967f3+0x1});});const _0x446140=(_0xe915dc,_0x599484)=>{if(!_0x599484['subType']||!_0x599484['subType']['startsWith']('tablePaste'))return;const _0x3ce88a=_0x599484['attributes']['tablePasteChainId'],_0x4d6de7=_0x59f9cb['getSuggestions']()['filter'](_0xfa06e7=>_0xfa06e7['isInContent']&&_0xfa06e7['attributes']&&_0xfa06e7['attributes']['tablePasteChainId']==_0x3ce88a);_0x4d6de7['length']&&_0x599484['getAllAdjacentSuggestions']()['length']!=_0x4d6de7['length']&&_0x4d6de7['reduce']((_0x292102,_0x114a05)=>(_0x292102['next']=_0x114a05,_0x114a05['previous']=_0x292102,_0x114a05));};function _0x3e81bd(_0x5134f5,_0x1eaba8=!0x0){const {id:_0x42fa0a,authorId:_0x45419c}=_0x59f9cb['_splitMarkerName'](_0x5134f5['markerName']),_0x5a74e1=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x190c83=_0x59f9cb['activeMarkers']['includes'](_0x5134f5['markerName']);return _0x190c83&&_0x5a74e1['push']('ck-suggestion-marker--active'),{'classes':_0x5a74e1,'attributes':{'data-suggestion':_0x42fa0a,'data-author-id':_0x45419c},'priority':_0x190c83&&_0x1eaba8?0xbc2:0xbb8};}_0x59f9cb['on']('suggestionLoaded',_0x446140,{'priority':'high'}),_0x59f9cb['on']('suggestionUnloaded',_0x446140,{'priority':'high'}),_0x42e92b['model']['document']['registerPostFixer'](()=>{let _0x42c6f9=!0x1;const _0x31aa6f=Array['from'](_0x42e92b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5bf6c4,data:_0x3d7b72}of _0x31aa6f){const {group:_0x46288b,type:_0x26264e,id:_0x4ae4b0}=_0x59f9cb['_splitMarkerName'](_0x5bf6c4);if('suggestion'!=_0x46288b||'deletion'!=_0x26264e||_0x3d7b72['oldRange'])continue;if(!_0x59f9cb['hasSuggestion'](_0x4ae4b0))continue;const _0x49a3bc=_0x59f9cb['getSuggestion'](_0x4ae4b0)['getRanges'](),_0x1d72d2=_0x42e92b['plugins']['get']('Users')['me'];for(const _0x5a1843 of _0x59f9cb['getSuggestions']()){if(!_0x5a1843['isInContent']||_0x5a1843['author']!=_0x1d72d2)continue;if('formatBlock'!=_0x5a1843['type']||'tablePasteCell'!=_0x5a1843['subType'])continue;if(_0x5a1843['getRanges']()['every'](_0x4cdb2e=>_0x49a3bc['some'](_0x46370d=>_0x46370d['containsRange'](_0x4cdb2e,!0x0)))){for(const _0x4576da of _0x5a1843['getAllAdjacentSuggestions']())_0x4576da['isInContent']&&(_0x4576da['discard'](),_0x42c6f9=!0x0);}}}return _0x42c6f9;}),_0x42e92b['model']['document']['registerPostFixer'](_0xcfdf09=>{const _0x1f321d=_0x42e92b['commands']['get']('redo');if(!_0x1f321d||!_0x1f321d['_createdBatches']['has'](_0xcfdf09['batch']))return!0x1;let _0x4b12b3=!0x1;const _0x377e58=_0x42e92b['plugins']['get']('Users')['me'],_0x1053ff=_0x42e92b['model']['document']['differ']['getChanges'](),_0x586a66=Array['from'](_0x42e92b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5f1acc,data:_0x30ed95})=>{const {group:_0x41c3cc,subType:_0x17a11c,authorId:_0x85233b}=_0x59f9cb['_splitMarkerName'](_0x5f1acc);return'suggestion'==_0x41c3cc&&'tablePaste'==_0x17a11c&&_0x85233b==_0x377e58['id']&&!_0x30ed95['oldRange'];});for(const _0x1733b0 of _0x1053ff){if('insert'!=_0x1733b0['type']||'tableCellSuggestion'!=_0x1733b0['name']||0x1!=_0x1733b0['length'])continue;const _0x22ff7d=_0xcfdf09['createRange'](_0x1733b0['position'],_0x1733b0['position']['getShiftedBy'](0x1));if(!_0x586a66['find'](({data:_0x89df9})=>_0x89df9['newRange']['isEqual'](_0x22ff7d))){for(const {name:_0x86d576,data:_0x4d2af5}of _0x586a66)if(_0x22ff7d['containsRange'](_0x4d2af5['newRange'])){_0xcfdf09['updateMarker'](_0x86d576,{'range':_0x22ff7d}),_0x4b12b3=!0x0;break;}}}return _0x4b12b3;}),_0x42e92b['model']['document']['registerPostFixer'](_0x19388a=>{let _0x576bbd=!0x1;const _0x3446b1=_0x42e92b['plugins']['get']('Users')['me'],_0x12f164=_0x59f9cb['getSuggestions']()['filter'](_0x39d5a2=>_0x39d5a2['isInContent']&&_0x39d5a2['author']==_0x3446b1),_0x595d1d=new Set(),_0x476382=new Set();for(const _0x1ab586 of _0x12f164)if('tablePaste'==_0x1ab586['subType'])for(const _0x5e8ebc of _0x1ab586['getMarkers']()){const _0x43d4c2=_0x5e8ebc['getRange']()['getContainedElement']();if(_0x43d4c2){if(_0x43d4c2['is']('element','tableCellSuggestion')&&De(_0x43d4c2)){_0x1ab586['removeMarker'](_0x5e8ebc['name']),_0x595d1d['add'](_0x43d4c2),_0x576bbd=!0x0;const _0x26426a=_0x43d4c2['nextSibling'],_0x28207b=_0x43d4c2['previousSibling'],_0x40c55d=_0x26426a&&_0x26426a['is']('element','tableCellSuggestion'),_0x5d75b3=_0x28207b&&_0x28207b['is']('element','tableCellSuggestion');_0x40c55d&&!_0x595d1d['has'](_0x26426a)&&_0x476382['add'](_0x26426a),_0x5d75b3&&!_0x595d1d['has'](_0x28207b)&&_0x476382['add'](_0x28207b);}else _0x43d4c2['is']('element','paragraph')&&_0x43d4c2['isEmpty']&&(_0x1ab586['removeMarker'](_0x5e8ebc['name']),_0x576bbd=!0x0);}}else{if('tablePasteCell'==_0x1ab586['subType']){if(!_0x1ab586['attributes']||!_0x1ab586['attributes']['tablePasteChainId'])continue;const _0x518ced=_0x1ab586['attributes']['markerAttributes'];if(_0x518ced&&Object['keys'](_0x518ced)['length'])continue;const _0x4266af=_0x1ab586['attributes']['tablePasteChainId'];let _0x4c7fdc=!0x0,_0x1b80cf=!0x0;for(const _0x875bca of _0x12f164)if(_0x875bca['subType']&&_0x875bca['subType']['startsWith']('tablePaste')){if(!_0x875bca['attributes']['tablePasteChainId']){_0x1b80cf=!0x1;break;}if(_0x875bca['id']!=_0x1ab586['id']&&_0x875bca['attributes']['tablePasteChainId']==_0x4266af){_0x4c7fdc=!0x1;break;}}_0x1b80cf&&_0x4c7fdc&&(_0x1ab586['removeMarkers'](),_0x576bbd=!0x0);}}for(const _0x2884dd of _0x595d1d)_0x19388a['remove'](_0x2884dd);for(const _0x4852f5 of _0x476382)_0x19388a['unwrap'](_0x4852f5);return _0x576bbd;}),_0x42e92b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3b88c8=>_0x3e81bd(_0x3b88c8),'converterPriority':'high'}),_0x42e92b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xd1ebd6,_0x4b0ec8)=>_0x4b0ec8['options']['showSuggestionHighlights']?_0x3e81bd(_0xd1ebd6,!0x1):null,'converterPriority':'high'});const _0x286b7e=_0x42e92b['editing']['view'];this['listenTo'](_0x286b7e['document'],'clipboardOutput',(_0x45ae87,_0xc13dc6)=>{const _0x237cf0=[];for(const _0x3739c7 of _0x286b7e['createRangeIn'](_0xc13dc6['content'])['getItems']())_0x3739c7['is']('element','suggestion-td')&&_0x237cf0['push'](_0x3739c7);_0x286b7e['change'](_0x383fd4=>{for(const _0x50109f of _0x237cf0)_0x383fd4['move'](_0x383fd4['createRangeIn'](_0x50109f),_0x383fd4['createPositionBefore'](_0x50109f)),_0x383fd4['remove'](_0x50109f);});});}}function De(_0x525f65){if(_0x525f65['isEmpty'])return!0x0;const _0xd19a1b=_0x525f65['getChild'](0x0);return _0xd19a1b['is']('element','paragraph')&&_0xd19a1b['isEmpty'];}function He(_0x188d01,_0x5aa785={},_0x509e91){for(const {isAnchor:_0x3ad162,cellHeight:_0x598372,cellWidth:_0x4283b6}of _0x509e91['createTableWalker'](_0x188d01,{'includeAllSlots':!0x0,..._0x5aa785}))if(!_0x3ad162||0x1!=_0x598372||0x1!=_0x4283b6)return!0x1;return!0x0;}class Bt extends _0x3953b7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x310af5=this['editor']['plugins']['get']('TrackChangesEditing');_0x310af5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x310af5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x310af5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x310af5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x310af5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x310af5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x8c3115,_0x1f6e58){const _0x42985d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x395109=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x126766=_0x1f6e58['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2ef990=_0x395109['getColumnGroupElement'](_0x126766);let _0x5df962=_0x2ef990?_0x395109['getTableColumnsWidths'](_0x2ef990):null,_0x5d0cb6=_0x126766['getAttribute']('tableWidth')||null;const _0x46d89f=_0x1f6e58['tableWidth']||_0x5d0cb6,_0x59494b=_0x1f6e58['columnWidths']||_0x5df962,_0x1c1dd9=this['editor']['plugins']['get']('Users')['me'];for(const _0xf41ef7 of _0x42985d['getSuggestions']()){const _0x4490c1=_0xf41ef7['getContainedElement']();if('resizeTable'===_0xf41ef7['subType']&&_0x4490c1===_0x126766){_0xf41ef7['author']!==_0x1c1dd9&&_0xf41ef7['discard']();const _0x108911=_0xf41ef7['data']['commandParams'];_0x5d0cb6=_0x108911[0x0]['tableWidth'],_0x5df962=_0x108911[0x0]['columnWidths'];break;}}_0x8c3115({'table':_0x126766,'tableWidth':_0x46d89f,'columnWidths':_0x59494b}),_0x42985d['markBlockFormat'](_0x126766,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5d0cb6,'columnWidths':_0x5df962}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xc01d7b){if('formatBlock'!=_0xc01d7b['type']&&'formatInline'!=_0xc01d7b['type'])return;const {data:_0xb52e42}=_0xc01d7b;if(_0xb52e42&&'resizeTable'===_0xb52e42['formatGroupId']){const _0x58f1a0='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x58f1a0)};}}}class xt extends _0x3953b7{['afterInit'](){const _0x4aff4c=this['editor'];_0x4aff4c['plugins']['has']('Template')&&_0x4aff4c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x3953b7{['afterInit'](){const _0x55a871=this['editor'];if(!_0x55a871['commands']['get']('insertTableOfContents'))return;_0x55a871['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5e55cb=_0x55a871['plugins']['get']('TrackChangesEditing'),_0x2be939=_0x55a871['locale'];_0x5e55cb['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5817a2=>c(_0x2be939,'ELEMENT_TABLE_OF_CONTENTS',_0x5817a2));}}class Rt extends _0x3953b7{['afterInit'](){const _0x47c0ae=this['editor'];if(!_0x47c0ae['plugins']['has']('Title'))return;const _0x33d2b3=_0x47c0ae['plugins']['get']('TrackChangesEditing');_0x33d2b3['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x47c0ae['locale'],'ELEMENT_TITLE')),_0x47c0ae['model']['document']['registerPostFixer'](_0x57b577=>{let _0x2d662a=!0x1;const _0x1df106=Array['from'](_0x47c0ae['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x289e45,data:_0x20c034}of _0x1df106){const {group:_0x33ed4d}=_0x33d2b3['_splitMarkerName'](_0x289e45);if('suggestion'!==_0x33ed4d||!_0x20c034['newRange'])continue;const _0x5e9883=_0x20c034['newRange'],_0x1a970e=_0x5e9883['end']['nodeBefore'];if(!_0x1a970e||!_0x1a970e['is']('element','title-content'))continue;if(!_0x5e9883['start']['isTouching'](_0x5e9883['end']))continue;const _0x4902f7=_0x47c0ae['model']['schema']['getNearestSelectionRange'](_0x5e9883['end'],'forward');if(_0x4902f7&&_0x4902f7['isCollapsed']){const _0x146d58=_0x57b577['createRange'](_0x5e9883['start'],_0x4902f7['start']);_0x146d58['isEqual'](_0x5e9883)||(_0x57b577['updateMarker'](_0x289e45,{'range':_0x146d58}),_0x2d662a=!0x0);}_0x2d662a||(_0x57b577['removeMarker'](_0x289e45),_0x2d662a=!0x0);}return _0x2d662a;});}}class Tt extends _0x3953b7{['afterInit'](){const _0x5248ac=this['editor'],_0x2c2ae8=_0x5248ac['plugins']['get']('TrackChangesEditing');_0x5248ac['plugins']['has']('Uploadcare')&&(_0x2c2ae8['enableCommand']('uploadcare'),_0x5248ac['plugins']['has']('UploadcareImageEdit')&&(_0x2c2ae8['enableCommand']('uploadcareImageEdit'),_0x2c2ae8['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2c2ae8['registerBlockAttribute']('uploadcareImageId'),_0x2c2ae8['descriptionFactory']['registerDescriptionCallback'](_0xc9d453=>{if('attribute'!=_0xc9d453['type'])return;const {data:_0x13faab}=_0xc9d453;return _0x13faab&&'uploadcareImageId'==_0x13faab['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x3953b7{['afterInit'](){const _0x12a1b0=this['editor'],_0xc0ee1b=_0x12a1b0['plugins']['get']('TrackChangesEditing');_0x12a1b0['plugins']['has']('UndoEditing')&&(_0xc0ee1b['enableCommand']('undo'),_0xc0ee1b['enableCommand']('redo'));}}class Ut extends _0x3953b7{static get['requires'](){return[Ct];}['afterInit'](){const _0x410393=this['editor'];if(!_0x410393['plugins']['has']('TableCaptionEditing'))return;_0x410393['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x3953b7{['tableProperties'];['tableCellProperties'];constructor(_0x35e88f){super(_0x35e88f),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0xda7f98=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x35a7b7 of this['tableProperties'])_0xda7f98['enableCommand'](_0x35a7b7,(_0x3527b5,_0x1e4cd1)=>{const _0x2abbb5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x35a7b7,[_0x2abbb5],this['tableProperties'],'tableProperties',_0x3527b5,_0x1e4cd1);});_0xda7f98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xda7f98['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xda7f98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x41d165,_0x42d257)=>this['handleDiscardAction'](this['tableProperties'],_0x41d165,_0x42d257)),_0xda7f98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x39cb25 of this['tableCellProperties'])_0xda7f98['enableCommand'](_0x39cb25,(_0x322fb7,_0x812ff2)=>{const _0x458785=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x39cb25,_0x458785,this['tableCellProperties'],'tableCellProperties',_0x322fb7,_0x812ff2);});_0xda7f98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xda7f98['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xda7f98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x319a94,_0x39c07c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x319a94,_0x39c07c)),_0xda7f98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xda7f98['descriptionFactory']['registerDescriptionCallback'](_0x3700cf=>this['handleSuggestionDescription'](_0x3700cf));}['_handlePropertyChange'](_0x42347a,_0x5e079c,_0x162056,_0x2c9f97,_0x3b9c98,_0x9d6864){const _0x54294b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x9d6864['batch'],()=>{for(const _0x3dae9a of _0x5e079c){if(this['_getSuggestion'](_0x3dae9a,_0x2c9f97))_0x3b9c98(_0x9d6864);else{const _0x11c28f={};for(const _0x491fc3 of _0x162056){const _0xe6d56b=_0x3dae9a['getAttribute'](_0x491fc3);void 0x0!==_0xe6d56b&&(_0x11c28f[_0x491fc3]=_0xe6d56b);}_0x3b9c98(_0x9d6864),_0x54294b['markBlockFormat'](_0x3dae9a,{'commandParams':[_0x11c28f]},[],_0x2c9f97);}}});}['handleDiscardAction'](_0x46c759,_0x2af9ba,_0xdc87f){const _0xe2023c=_0x2af9ba[0x0]['start']['nodeAfter'],_0x4cdfc1=_0xdc87f['commandParams'][0x0];this['editor']['model']['change'](_0x336616=>{for(const _0x3f7e0f of _0x46c759)void 0x0!==_0x4cdfc1[_0x3f7e0f]?_0x336616['setAttribute'](_0x3f7e0f,_0x4cdfc1[_0x3f7e0f],_0xe2023c):_0x336616['removeAttribute'](_0x3f7e0f,_0xe2023c);});}['handleSuggestionDescription'](_0x50dd98){if(_0x50dd98['data'])switch(_0x50dd98['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x57905f,_0x494917){const _0x11ffa3=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3e6ab4 of _0x11ffa3['getSuggestions']({'skipNotAttached':!0x0})){const _0x1d1aa8=_0x3e6ab4['getContainedElement']();if(_0x3e6ab4['subType']===_0x494917&&_0x1d1aa8===_0x57905f)return _0x3e6ab4;}return null;}}const u='$elementName';class p extends _0x3953b7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x58f2c4,_0x5a4bb9,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c6548){super(_0x5c6548),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5680dd,_0x502132,_0xfff8b8,_0x334064)=>{this['_model']['change'](()=>{for(const _0x144fd9 of[..._0x334064,..._0xfff8b8])this['_model']['markers']['has'](_0x144fd9)&&_0x5c6548['editing']['reconvertMarker'](_0x144fd9);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5c6548['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x5c6548['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5c6548['config']['get']('trackChanges.trackFormatChanges'),_0x5c6548['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5c6548['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5c6548,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x49ef70=this['editor'],_0x12a39e=(_0x30a1ad,_0x433042)=>{if('attribute'!=_0x30a1ad)return'ck-suggestion-marker-'+_0x30a1ad;const _0x4e96eb=_0x433042['split']('|')[0x0];return this['_isBlockAttribute'](_0x4e96eb)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x49ef70['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x542e61=>{const {id:_0x34c9ab,authorId:_0x59eb6b,type:_0x123df3,subType:_0x1ae858}=this['_splitMarkerName'](_0x542e61['markerName']),_0x5ac56a=['ck-suggestion-marker',_0x12a39e(_0x123df3,_0x1ae858)];let _0x48598f=0xbb8;return this['activeMarkers']['includes'](_0x542e61['markerName'])&&(_0x5ac56a['push']('ck-suggestion-marker--active'),_0x48598f=0xbc2),'deletion'==_0x123df3&&(_0x48598f+=0x5),{'classes':_0x5ac56a,'attributes':{'data-suggestion':_0x34c9ab,'data-author-id':_0x59eb6b},'priority':_0x48598f};}}),_0x49ef70['conversion']['for']('dataDowncast')['add'](_0x231837=>{_0x231837['on']('addMarker:suggestion',(_0x318b2c,_0x51c1be,_0x5f5488)=>{if(!_0x5f5488['options']['showSuggestionHighlights'])return;const _0x428105=_0x51c1be['item'];if(!_0x428105)return;const _0x359818=_0x5f5488['mapper']['toViewElement'](_0x428105);_0x49ef70['model']['schema']['isObject'](_0x428105)&&_0x359818&&!_0x359818['getCustomProperty']('widget')&&_0x359818['is']('containerElement')&&_0x2cd5b7(_0x359818,_0x5f5488['writer']);},{'priority':'high'});}),_0x49ef70['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1cf8b6,_0x3f0106)=>{if(!_0x3f0106['options']['showSuggestionHighlights'])return null;const {id:_0x637e56,authorId:_0x5a0ee4,type:_0x338171,subType:_0x4fe53d}=this['_splitMarkerName'](_0x1cf8b6['markerName']);return{'classes':['ck-suggestion-marker',_0x12a39e(_0x338171,_0x4fe53d)],'priority':0xbb8,'attributes':{'data-suggestion':_0x637e56,'data-author-id':_0x5a0ee4}};}});const _0x3c46ef=({showActiveMarkers:_0x522188=!0x0,isAttributeSuggestion:_0x1ed241=!0x1}={})=>(_0x34fa41,_0x3749a1,_0x53a611)=>{if(!_0x3749a1['item'])return;const {id:_0x1321ae,authorId:_0x32bfa1}=this['_splitMarkerName'](_0x3749a1['markerName']);if(_0x1ed241){const _0x4f29fb=this['_suggestions']['get'](_0x1321ae),_0x4849fe=this['_getAttributeKey'](_0x4f29fb);if(!this['_isBlockAttribute'](_0x4849fe))return;}if(_0x3749a1['item']['is']('selection'))return void _0x53a611['consumable']['consume'](_0x3749a1['item'],_0x34fa41['name']);const _0x4f9dbf=_0x53a611['mapper']['toViewElement'](_0x3749a1['item']);if(_0x3749a1['item']['is']('element')&&_0x49ef70['model']['schema']['isBlock'](_0x3749a1['item'])&&!_0x4f9dbf['getCustomProperty']('addHighlight')){_0x53a611['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4f9dbf),_0x53a611['writer']['setAttribute']('data-suggestion',_0x1321ae,_0x4f9dbf),_0x53a611['writer']['setAttribute']('data-author-id',_0x32bfa1,_0x4f9dbf),_0x53a611['mapper']['bindElementToMarker'](_0x4f9dbf,_0x3749a1['markerName']),_0x522188&&(this['activeMarkers']['includes'](_0x3749a1['markerName'])?_0x53a611['writer']['addClass']('ck-suggestion-marker--active',_0x4f9dbf):_0x53a611['writer']['removeClass']('ck-suggestion-marker--active',_0x4f9dbf));for(const _0x5d5df3 of _0x49ef70['model']['createRangeIn'](_0x3749a1['item'])['getItems']())_0x53a611['consumable']['consume'](_0x5d5df3,_0x34fa41['name']);_0x53a611['consumable']['consume'](_0x3749a1['item'],_0x34fa41['name']);}};_0x49ef70['conversion']['for']('dataDowncast')['add'](_0x23f80e=>{_0x23f80e['on']('addMarker:suggestion:formatBlock',(_0x403a5d,_0x583603,_0x165fd2)=>{_0x165fd2['options']['showSuggestionHighlights']&&_0x3c46ef({'showActiveMarkers':!0x1})(_0x403a5d,_0x583603,_0x165fd2);},{'priority':'highest'});}),_0x49ef70['conversion']['for']('dataDowncast')['add'](_0x54287c=>{_0x54287c['on']('addMarker:suggestion:attribute',(_0xc7c33a,_0x413641,_0x22f8cc)=>{_0x22f8cc['options']['showSuggestionHighlights']&&_0x3c46ef({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xc7c33a,_0x413641,_0x22f8cc);},{'priority':'highest'});}),_0x49ef70['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1a2e82,_0x14f70c)=>{if(_0x14f70c['options']['showSuggestionHighlights']){const {id:_0x116c7b,authorId:_0x362f7f}=this['_splitMarkerName'](_0x1a2e82);return _0x1a2e82['includes'](':split')||_0x1a2e82['includes'](':merge')?{'group':'suggestion','name':_0x1a2e82['substr'](0xb),'attributes':{'data-suggestion':_0x116c7b,'data-author-id':_0x362f7f}}:null;}return{'group':'suggestion','name':_0x1a2e82['substr'](0xb)};}}),_0x49ef70['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x18e028,{writer:_0x396383})=>{let _0x286231='suggestion:'+_0x18e028['getAttribute']('suggestion-type')+':'+_0x18e028['getAttribute']('id');return _0x18e028['getAttribute']('marker-count')&&(_0x286231+=':'+_0x18e028['getAttribute']('marker-count')),_0x396383['createElement']('$marker',{'data-name':_0x286231});}}),_0x49ef70['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x49ef70['conversion']['for']('editingDowncast')['add'](_0x48734e=>{_0x48734e['on']('addMarker:suggestion:formatBlock',_0x3c46ef(),{'priority':'high'});}),_0x49ef70['conversion']['for']('editingDowncast')['add'](_0x5b801e=>{_0x5b801e['on']('addMarker:suggestion:attribute',_0x3c46ef({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x49ef70['conversion']['for']('editingDowncast')['add'](_0x19eecf=>{_0x19eecf['on']('removeMarker:suggestion:formatBlock',(_0x2b6d0f,_0x284227,_0xb15d67)=>{const _0x3102bd=_0xb15d67['mapper']['markerNameToElements'](_0x284227['markerName']);if(_0x3102bd){for(const _0x13dd83 of _0x3102bd)_0x13dd83['getCustomProperty']('addHighlight')||(_0xb15d67['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x13dd83),_0xb15d67['writer']['removeAttribute']('data-suggestion',_0x13dd83),_0xb15d67['writer']['removeAttribute']('data-author-id',_0x13dd83),_0xb15d67['mapper']['unbindElementFromMarkerName'](_0x13dd83,_0x284227['markerName']));}},{'priority':'high'});}),_0x49ef70['conversion']['for']('editingDowncast')['add'](_0x2d7c5e=>{_0x2d7c5e['on']('removeMarker:suggestion:attribute',(_0x3f72ea,_0x2cfa88,_0x4bd72a)=>{const _0xaba1fb=_0x4bd72a['mapper']['markerNameToElements'](_0x2cfa88['markerName']);if(!_0xaba1fb)return;const {id:_0x238039}=this['_splitMarkerName'](_0x2cfa88['markerName']),_0x4a5ef3=this['_suggestions']['get'](_0x238039),_0x548d18=this['_getAttributeKey'](_0x4a5ef3);if(this['_isBlockAttribute'](_0x548d18)){for(const _0x5a2fa5 of _0xaba1fb)_0x5a2fa5['getCustomProperty']('addHighlight')||(_0x4bd72a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5a2fa5),_0x4bd72a['writer']['removeAttribute']('data-suggestion',_0x5a2fa5),_0x4bd72a['writer']['removeAttribute']('data-author-id',_0x5a2fa5),_0x4bd72a['mapper']['unbindElementFromMarkerName'](_0x5a2fa5,_0x2cfa88['markerName']));}},{'priority':'high'});}),_0x49ef70['model']['document']['registerPostFixer'](_0x270b02=>{let _0x352fde=!0x1;const _0x95c9cc=Array['from'](_0x49ef70['model']['document']['differ']['getChangedMarkers']()),_0x209377=new Set();for(const {name:_0x3b8d1d,data:_0xf8a10b}of _0x95c9cc){const {group:_0x102b32,type:_0x86192e,subType:_0x5d2d4b,id:_0x2abff2}=this['_splitMarkerName'](_0x3b8d1d);if('suggestion'!==_0x102b32)continue;const _0x595266=this['_suggestions']['get'](_0x2abff2);if(null!=_0xf8a10b['newRange']){'formatInline'==_0x86192e&&(_0x352fde=_0x352fde||Jt(_0xf8a10b['newRange'],_0x3b8d1d,_0x270b02,_0x49ef70['model']['schema']));const _0x261aae='attribute'==_0x86192e&&this['_isBlockAttribute'](_0x5d2d4b['split']('|')[0x0]);if(_0xf8a10b['newRange']['isCollapsed']||'$graveyard'==_0xf8a10b['newRange']['root']['rootName']||'formatBlock'==_0x86192e&&!Ht(_0xf8a10b['newRange'])||_0x261aae&&!Ht(_0xf8a10b['newRange'])||'deletion'==_0x86192e&&!(!Lt(_0x2b1bad=_0xf8a10b['newRange'])&&!function(_0x56c57e){return _0x56c57e['start']['parent']==_0x56c57e['end']['nodeBefore']&&_0x56c57e['start']['isAtEnd'];}(_0x2b1bad)))_0x270b02['removeMarker'](_0x3b8d1d),_0x352fde=!0x0;else{if(!_0x595266||!_0x595266['isInContent'])continue;if(_0xf8a10b['newRange']&&_0xf8a10b['oldRange']&&_0xf8a10b['newRange']['isEqual'](_0xf8a10b['oldRange']))continue;_0x209377['add'](_0x595266);}}}var _0x2b1bad;return _0x209377['size']>0x0&&(_0x352fde=!!this['_joinWithAdjacentSuggestions'](_0x209377)||_0x352fde),_0x352fde;}),_0x49ef70['model']['document']['registerPostFixer'](_0x2ac7e7=>{let _0x466a59=!0x1;for(const _0x1531b7 of _0x49ef70['model']['document']['differ']['getChanges']())if('insert'==_0x1531b7['type'])for(const _0x51e317 of this['_suggestions']['values']()){if(_0x51e317['isMultiRange']||!_0x51e317['isInContent'])continue;const _0x3fa8b9='formatBlock'==_0x51e317['type'],_0x3afdb7=this['_getAttributeKey'](_0x51e317),_0x2b7625=_0x3afdb7&&this['_isBlockAttribute'](_0x3afdb7);if(!_0x3fa8b9&&!_0x2b7625)continue;const _0x4eecf2=_0x51e317['getFirstRange']();if(_0x4eecf2['start']['parent']!=_0x4eecf2['end']['parent']&&!_0x4eecf2['end']['isAtEnd']){const _0x241842=_0x49ef70['model']['createPositionAt'](_0x4eecf2['start']['nodeAfter'],'end'),_0x3536bf=_0x49ef70['model']['createRange'](_0x4eecf2['start'],_0x241842);_0x2ac7e7['updateMarker'](_0x51e317['getFirstMarker'](),{'range':_0x3536bf}),_0x466a59=!0x0;}}return _0x466a59;}),_0x49ef70['model']['document']['registerPostFixer'](_0xab4539=>this['_processAttributeChanges'](_0xab4539)),_0x49ef70['model']['document']['registerPostFixer'](_0x341d90=>!_0x341d90['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x341d90)),_0x49ef70['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x49ef70['model']['document']['on']('change:data',(_0x329ee6,_0x4e4d9e)=>{if(!_0x4e4d9e['isLocal']||_0x4e4d9e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x358e90=_0x49ef70['model']['document']['differ']['getChanges']();if(0x0==_0x358e90['length'])return;const _0x434728=[],_0x2c5490=_0x358e90['filter'](_0x295a5b=>'attribute'==_0x295a5b['type']),_0x3cd6f8=_0x358e90['filter'](_0x4db842=>'insert'==_0x4db842['type']&&'$text'!=_0x4db842['name']);for(const _0x431527 of _0x2c5490)this['_isRegisteredAttribute'](_0x431527['attributeKey'])&&_0x434728['push']({'key':_0x431527['attributeKey'],'newValue':_0x431527['attributeNewValue'],'oldValue':_0x431527['attributeOldValue'],'range':qt(_0x431527['range'],_0x49ef70['model'])});for(const _0x4b6baf of _0x3cd6f8){if('rename'!=_0x4b6baf['action']&&'refresh'!=_0x4b6baf['action'])continue;const _0x9b599f=zt(_0x4b6baf['position']['nodeAfter'],_0x49ef70['model']),_0x429db8=_0x4b6baf['before'];'rename'==_0x4b6baf['action']&&_0x434728['push']({'key':u,'newValue':_0x4b6baf['name'],'oldValue':_0x429db8['name'],'range':_0x9b599f});for(const [_0x783101,_0x21e798]of _0x429db8['attributes']){if(!this['_isRegisteredAttribute'](_0x783101))continue;const _0x2cef94=_0x4b6baf['attributes']['get'](_0x783101);_0x21e798!==_0x2cef94&&_0x434728['push']({'key':_0x783101,'newValue':_0x2cef94,'oldValue':_0x21e798,'range':_0x9b599f});}for(const [_0x4c945b,_0x3d763e]of _0x4b6baf['attributes'])this['_isRegisteredAttribute'](_0x4c945b)&&(_0x429db8['attributes']['has'](_0x4c945b)||_0x434728['push']({'key':_0x4c945b,'newValue':_0x3d763e,'oldValue':null,'range':_0x9b599f}));}0x0!=_0x434728['length']&&_0x49ef70['model']['enqueueChange'](_0x4e4d9e,_0x56bc1c=>{const _0x4a815a=_0x524fb1();for(const {range:_0x13ddea,key:_0x1e6b78,oldValue:_0xfb2c74,newValue:_0x30ec64}of _0x434728)this['markAttributeChange'](_0x13ddea,_0x1e6b78,_0xfb2c74,_0x30ec64,{'groupId':_0x4a815a});this['_reduceExistingSuggestions'](_0x56bc1c,_0x434728);});},{'priority':'lowest'}),_0x49ef70['model']['markers']['on']('update:suggestion',(_0x1e169f,_0x398493,_0xf488fb)=>{if(null==_0xf488fb){const {id:_0xab459b}=this['_splitMarkerName'](_0x398493['name']),_0x1c4fba=this['_suggestions']['get'](_0xab459b);_0x1c4fba&&_0x1c4fba['addMarkerName'](_0x398493['name']);}}),_0x49ef70['model']['document']['on']('change:data',()=>{const _0x3e5f2b=Array['from'](_0x49ef70['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5dbf79=>'suggestion'===this['_splitMarkerName'](_0x5dbf79['name'])['group']);if(0x0===_0x3e5f2b['length'])return;_0x3e5f2b['sort']((_0x2e3aa8,_0x28867a)=>{const _0x3898c2=_0x2e3aa8['data']['oldRange'],_0x2e284b=_0x28867a['data']['oldRange'];return null===_0x3898c2&&null===_0x2e284b?0x0:null===_0x3898c2&&null!==_0x2e284b?-0x1:null!==_0x3898c2&&null===_0x2e284b?0x1:_0x3898c2['start']['isBefore'](_0x2e284b['start'])?-0x1:0x1;});const _0x543cae=new Set(),_0x2daadf=new Set();for(const {name:_0x354ed5,data:_0x3775cd}of _0x3e5f2b){const {id:_0x32af42}=this['_splitMarkerName'](_0x354ed5);if(null===_0x3775cd['oldRange']){const _0x5f28de=this['_handleNewSuggestionMarker'](_0x354ed5);_0x2daadf['add'](_0x5f28de);}else{const _0x4cf726=this['_suggestions']['get'](_0x32af42);null!==_0x3775cd['newRange']||_0x4cf726['isInContent']?(_0x543cae['add'](_0x4cf726['head']),_0x2daadf['add'](_0x4cf726)):this['_removeSuggestion'](_0x4cf726);}}_0x2daadf['size']>0x0&&this['_refreshSuggestionsChain'](_0x2daadf);for(const _0x324820 of _0x543cae)this['fire']('suggestionChanged',_0x324820);}),_0x49ef70['model']['on']('applyOperation',(_0x52915d,_0xfcec6d)=>{const _0xf63952=_0xfcec6d[0x0];if(!this['_suggestions']['size'])return;if(!_0xf63952['isDocumentOperation'])return;if(_0xf63952['batch']['isUndo']||!_0xf63952['batch']['isLocal'])return;let _0x3c35e2,_0x4ecaad;switch(_0xf63952['type']){case'insert':_0x3c35e2=_0x49ef70['model']['createPositionAt'](_0xf63952['position']),_0x4ecaad=_0x3c35e2['getShiftedBy'](_0xf63952['howMany']);break;case'split':_0x3c35e2=_0x49ef70['model']['createPositionAt'](_0xf63952['splitPosition']),_0x4ecaad=_0x49ef70['model']['createPositionAt'](_0xf63952['moveTargetPosition']);break;case'move':_0x3c35e2=_0x49ef70['model']['createPositionAt'](_0xf63952['targetPosition']),_0x4ecaad=_0x3c35e2['getShiftedBy'](_0xf63952['howMany']);break;default:return;}const _0x4cd215=_0x49ef70['model']['createRange'](_0x3c35e2,_0x4ecaad);_0x49ef70['model']['change'](()=>{for(const {suggestion:_0x5dd3cb,meta:_0x33bf06}of this['_findSuggestions'](_0x4cd215)){if(_0x5dd3cb['isMultiRange'])continue;if('formatInline'==_0x5dd3cb['type'])continue;const _0x87cfae=this['_getAttributeKey'](_0x5dd3cb);if(_0x87cfae&&this['_isBlockAttribute'](_0x87cfae)&&'split'!=_0xf63952['type'])continue;const _0x5a5e65=_0x5dd3cb['data']&&_0x5dd3cb['data']['multipleBlocks'];('formatBlock'!=_0x5dd3cb['type']||'split'==_0xf63952['type']&&!_0x5a5e65)&&(_0x33bf06['containsRangeInObject']||'insertion'==_0x5dd3cb['type']&&_0x33bf06['isOwn']||_0x5dd3cb['getFirstRange']()['containsRange'](_0x4cd215)&&this['_breakSuggestionMarker'](_0x5dd3cb,_0x3c35e2,_0x4ecaad));}});},{'priority':'lowest'}),_0x49ef70['model']['on']('deleteContent',(_0x814f44,_0x5c8886)=>{const _0x545944=_0x5c8886[0x0],_0x2ae2ba=_0x5c8886[0x1];if(_0x2ae2ba&&_0x2ae2ba['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x545944['isCollapsed'])return;const _0x42cef7=_0x49ef70['model']['schema'],{start:_0x1f2622,end:_0x54a301}=_0x545944['getFirstRange'](),_0x4c0247=_0x1f2622['nodeAfter']&&_0x42cef7['isLimit'](_0x1f2622['nodeAfter'])?null:_0x42cef7['getNearestSelectionRange'](_0x1f2622,'forward'),_0x32b6d5=_0x54a301['nodeBefore']&&_0x42cef7['isLimit'](_0x54a301['nodeBefore'])?null:_0x42cef7['getNearestSelectionRange'](_0x54a301,'backward'),_0x2470d8=_0x49ef70['model']['createRange'](_0x4c0247?_0x4c0247['start']:_0x1f2622,_0x32b6d5?_0x32b6d5['end']:_0x54a301);_0x49ef70['model']['change'](_0x571334=>{this['markDeletion'](_0x2470d8);const _0x3d89df=_0x49ef70['model']['schema']['getNearestSelectionRange'](_0x2470d8['start']);_0x545944['is']('documentSelection')?_0x571334['setSelection'](_0x3d89df):_0x545944['setTo'](_0x3d89df);}),_0x814f44['stop']();},{'priority':_0x2ab9b9['normal']+0xa}),_0x49ef70['model']['on']('insertContent',(_0x1fbd23,_0x3d31f8)=>{const _0x5de7ad=_0x3d31f8[_0x3d31f8['length']-0x1];_0x5de7ad&&_0x5de7ad['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x49ef70['model']['change'](()=>{let _0x301b12=_0x49ef70['model']['insertContent'](_0x3d31f8[0x0],_0x3d31f8[0x1],_0x3d31f8[0x2],{'forceDefaultExecution':!0x0});if(!_0x301b12)return;_0x1fbd23['return']=_0x301b12['clone']();const _0x2a8e6f=_0x301b12['end']['nodeBefore'],_0x151cf3=_0x49ef70['model']['schema'];_0x2a8e6f&&_0x151cf3['isBlock'](_0x2a8e6f)&&!_0x151cf3['isObject'](_0x2a8e6f)&&(_0x301b12=_0x49ef70['model']['createRange'](_0x301b12['start'],_0x49ef70['model']['createPositionAt'](_0x2a8e6f,'end'))),this['markInsertion'](_0x301b12);}),_0x1fbd23['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5470bb=new x(_0x49ef70,this['_suggestions']);_0x49ef70['commands']['add']('acceptSuggestion',_0x5470bb),this['enableCommand']('acceptSuggestion');const _0x581fd3=new O(_0x49ef70,this['_suggestions']);_0x49ef70['commands']['add']('discardSuggestion',_0x581fd3),this['enableCommand']('discardSuggestion'),_0x49ef70['commands']['add']('acceptAllSuggestions',new R(_0x49ef70,_0x5470bb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x49ef70['commands']['add']('discardAllSuggestions',new R(_0x49ef70,_0x581fd3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x49ef70['commands']['add']('acceptSelectedSuggestions',new E(_0x49ef70,_0x5470bb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x49ef70['commands']['add']('discardSelectedSuggestions',new E(_0x49ef70,_0x581fd3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x15c406=_0x49ef70['plugins']['get']('CommentsRepository');this['listenTo'](_0x15c406,'addComment',(_0x379d5a,{threadId:_0x22cdcf})=>{const _0xf1a18e=this['_suggestions']['get'](_0x22cdcf);_0xf1a18e&&_0xf1a18e['commentThread']&&0x1===_0xf1a18e['commentThread']['length']&&this['_updateSuggestionData'](_0x22cdcf,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x15c406,'removeComment',(_0x38787c,{threadId:_0x513687})=>{const _0x1a5f9d=this['_suggestions']['get'](_0x513687);_0x1a5f9d&&_0x1a5f9d['commentThread']&&!_0x1a5f9d['commentThread']['length']&&this['_updateSuggestionData'](_0x513687,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x589e82){const _0x4ae7ac=_0x32360e([0x49,0x34,0x50,0x42,0x6d,0x66,0x4d,0x72,0x73,0x4a,0x33,0x4e,0x31,0x75,0x5a,0x37,0x35,0x58,0x51,0x30,0x61,0x54,0x65,0x53,0x6b,0x46,0x48,0x47,0x56,0x74,0x67,0x68,0x69,0x44,0x70,0x52,0x6a,0x6f,0x4f,0x45,0x32,0x62,0x76,0x39,0x36,0x7a,0x57,0x38,0x79,0x71,0x43,0x55,0x6c,0x78,0x59,0x41,0x63,0x6e,0x64,0x77,0x4b,0x4c]),_0x260317=0x4635f8c9,_0x3a0544=0x46329179^_0x260317,_0x2fe808=window[_0x32360e([0x44,0x61,0x74,0x65])][_0x32360e([0x6e,0x6f,0x77])](),_0xfe2df8=_0x589e82[_0x32360e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x297476=new window[(_0x32360e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x368c24=>{_0xfe2df8[_0x32360e([0x6f,0x6e,0x63,0x65])](_0x32360e([0x72,0x65,0x61,0x64,0x79]),_0x368c24);}),_0x53f2fc={[_0x32360e([0x6b,0x74,0x79])]:_0x32360e([0x45,0x43]),[_0x32360e([0x75,0x73,0x65])]:_0x32360e([0x73,0x69,0x67]),[_0x32360e([0x63,0x72,0x76])]:_0x32360e([0x50,0x2d,0x32,0x35,0x36]),[_0x32360e([0x78])]:_0x32360e([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x32360e([0x79])]:_0x32360e([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x32360e([0x61,0x6c,0x67])]:_0x32360e([0x45,0x53,0x32,0x35,0x36])},_0x23cbe0=_0xfe2df8[_0x32360e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x32360e([0x67,0x65,0x74])](_0x32360e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5bb33f(){let _0x7f9cd4,_0xc3ce03=null,_0x3599a0=null;try{if(_0x23cbe0==_0x32360e([0x47,0x50,0x4c]))return _0x32360e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x7f9cd4=_0x163cb1(),!_0x7f9cd4)return _0x32360e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x7f9cd4[_0x32360e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3599a0=_0xb65b3e(_0x7f9cd4[_0x32360e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x7f9cd4[_0x32360e([0x6a,0x74,0x69])])),await _0x5e5729()?_0x4e44db()?_0x376386()?_0x32360e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2b238e()?(_0x7f9cd4[_0x32360e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32360e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc3ce03=_0x551a74(_0x32360e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x7f9cd4[_0x32360e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32360e([0x74,0x72,0x69,0x61,0x6c])&&(_0xc3ce03=_0x551a74(_0x32360e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5729dd()):_0x32360e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x32360e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x32360e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x32360e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x376386(){const _0x25f29b=[_0x32360e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x32360e([0x74,0x72,0x69,0x61,0x6c])][_0x32360e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7f9cd4[_0x32360e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2fe808/0x3e8:0xe10*_0x3a0544;return _0x7f9cd4[_0x32360e([0x65,0x78,0x70])]<_0x25f29b;}function _0x4e44db(){const _0x589ab8=_0x7f9cd4[_0x32360e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x589ab8)return!0x1;if(_0x589ab8[_0x32360e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32360e([0x2a])))return!0x0;if(_0x589ab8[_0x32360e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32360e([0x54,0x43])))return!0x0;if(_0x589ab8[_0x32360e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32360e([0x52,0x54,0x43]))){if(_0x28c369())return!0x0;if(_0x5ba489()||_0x7829c())return!0x0;}return!0x1;}function _0x2b238e(){const _0x5efa28=_0x7f9cd4[_0x32360e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5efa28||0x0==_0x5efa28[_0x32360e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3870ef}=new URL(window[_0x32360e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5efa28[_0x32360e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3870ef))return!0x0;const _0x369ce9=_0x3870ef[_0x32360e([0x73,0x70,0x6c,0x69,0x74])](_0x32360e([0x2e]));return _0x5efa28[_0x32360e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26bca3=>_0x26bca3[_0x32360e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32360e([0x2a])))[_0x32360e([0x6d,0x61,0x70])](_0x578e1e=>_0x578e1e[_0x32360e([0x73,0x70,0x6c,0x69,0x74])](_0x32360e([0x2e])))[_0x32360e([0x73,0x6f,0x6d,0x65])](_0x442019=>_0x369ce9[_0x32360e([0x65,0x76,0x65,0x72,0x79])]((_0x21cb5c,_0x3827f2)=>_0x442019[_0x3827f2]===_0x21cb5c||_0x442019[_0x3827f2]===_0x32360e([0x2a])));}function _0x5729dd(){return _0xc3ce03&&_0x3599a0?new window[(_0x32360e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc510b9,_0x68c9e1)=>{_0xc3ce03[_0x32360e([0x74,0x68,0x65,0x6e])](_0xc510b9,_0x68c9e1),_0x3599a0[_0x32360e([0x74,0x68,0x65,0x6e])](_0x5912d4=>{_0x5912d4!=_0x32360e([0x56,0x61,0x6c,0x69,0x64])&&_0xc510b9(_0x5912d4);},_0x68c9e1);}):_0xc3ce03||_0x3599a0||_0x32360e([0x56,0x61,0x6c,0x69,0x64]);}}function _0xb65b3e(_0x448d64,_0x9a12f1){return new window[(_0x32360e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcc81d4=>{if(_0x5e21db())return _0xcc81d4(_0x32360e([0x56,0x61,0x6c,0x69,0x64]));_0x4a1581(),_0xfe2df8[_0x32360e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x32360e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x47273b=!0x1;const _0x58039e=_0x524fb1();function _0x39c1d4(_0x381431){return!!_0x381431&&(typeof _0x381431===_0x32360e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x381431===_0x32360e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x381431[_0x32360e([0x74,0x68,0x65,0x6e])]===_0x32360e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x381431[_0x32360e([0x63,0x61,0x74,0x63,0x68])]===_0x32360e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f3190(_0x1f6797){_0x574e71(_0x1f6797)[_0x32360e([0x74,0x68,0x65,0x6e])](_0x2f7db4=>{if(!_0x2f7db4||_0x2f7db4[_0x32360e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x32360e([0x6f,0x6b]))return _0x32360e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c43e3(_0x174560(_0x58039e+_0x9a12f1))!=_0x2f7db4[_0x32360e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x32360e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x32360e([0x56,0x61,0x6c,0x69,0x64]);})[_0x32360e([0x74,0x68,0x65,0x6e])](_0x3d80aa=>(_0x10f6a7(),_0x3d80aa),()=>{const _0x56d113=_0x42500e();return null==_0x56d113?(_0x10f6a7(),_0x32360e([0x56,0x61,0x6c,0x69,0x64])):_0x32360e(_0x2fe808-_0x56d113>(0x62397cc9^_0x260317)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x32360e([0x74,0x68,0x65,0x6e])](_0xcc81d4)[_0x32360e([0x63,0x61,0x74,0x63,0x68])](()=>{_0xcc81d4(_0x32360e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4289ef=0x46031649^_0x260317;function _0x10f6a7(){const _0x5423ab=_0x32360e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c43e3(_0x174560(_0x448d64)),_0x4cbf00=_0x2d333c(_0x2c43e3(window[_0x32360e([0x4d,0x61,0x74,0x68])][_0x32360e([0x63,0x65,0x69,0x6c])](_0x2fe808/_0x4289ef)));window[_0x32360e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32360e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5423ab,_0x4cbf00);}function _0x42500e(){const _0x1e7404=_0x32360e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c43e3(_0x174560(_0x448d64)),_0x362f67=window[_0x32360e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32360e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e7404);return _0x362f67?window[_0x32360e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d333c(_0x362f67),0x10)*_0x4289ef:null;}function _0x574e71(_0x1380ec){return new window[(_0x32360e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52beaf,_0x41c7ac)=>{_0x1380ec[_0x32360e([0x74,0x68,0x65,0x6e])](_0x52beaf,_0x41c7ac),window[_0x32360e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x41c7ac,0x46342c09^_0x260317);});}}_0xfe2df8[_0x32360e([0x6f,0x6e])](_0x32360e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x19776b,_0x4ab60a)=>{if(_0x4ab60a[0x0]!=_0x448d64)return _0xcc81d4(_0x32360e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ab60a[0x1]={..._0x4ab60a[0x1],[_0x32360e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58039e};},{[_0x32360e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32360e([0x68,0x69,0x67,0x68])}),_0xfe2df8[_0x32360e([0x6f,0x6e])](_0x32360e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f57f3=>{_0x39c1d4(_0x4f57f3[_0x32360e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x47273b=!0x0,_0x3f3190(_0x4f57f3[_0x32360e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x32360e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32360e([0x6c,0x6f,0x77])}),_0x297476[_0x32360e([0x74,0x68,0x65,0x6e])](()=>{_0x47273b||_0xcc81d4(_0x32360e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e21db(){return _0xfe2df8[_0x32360e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32360e([0x76,0x69,0x65,0x77])][_0x32360e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x32360e([0x61,0x75,0x74,0x6f]);}function _0x4a1581(){_0xfe2df8[_0x32360e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32360e([0x76,0x69,0x65,0x77])][_0x32360e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x32360e([0x61,0x75,0x74,0x6f]);}}function _0x551a74(_0x4d585c){const _0x4293c8=[new window[(_0x32360e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25d2ca=>setTimeout(_0x25d2ca,0x463cc605^_0x260317)),_0x297476[_0x32360e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x32360e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x145632=>{let _0x5bc1a6=0x0;_0xfe2df8[_0x32360e([0x6d,0x6f,0x64,0x65,0x6c])][_0x32360e([0x6f,0x6e])](_0x32360e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2dcc89,_0x3f028f)=>{_0x3f028f[0x0][_0x32360e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5bc1a6++,_0x5bc1a6==(0x4635f931^_0x260317)&&(_0x145632(),_0x2dcc89[_0x32360e([0x6f,0x66,0x66])]());});}))];return window[_0x32360e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x32360e([0x72,0x61,0x63,0x65])](_0x4293c8)[_0x32360e([0x74,0x68,0x65,0x6e])](()=>_0x4d585c);}async function _0x17951d(){await _0x297476,_0xfe2df8[_0x32360e([0x6d,0x6f,0x64,0x65,0x6c])][_0x32360e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x356e41,_0xfe2df8[_0x32360e([0x6d,0x6f,0x64,0x65,0x6c])][_0x32360e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x356e41,_0xfe2df8[_0x32360e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x32360e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x28c369(){return _0x2f43d9(_0x32360e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5790ee(_0x32360e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x32360e([0x73,0x74,0x61,0x74,0x65])]==_0x32360e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5ba489(){return _0x2f43d9(_0x32360e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x7829c(){return _0x2f43d9(_0x32360e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3d8083(_0x2a3cc0){const _0x377300=_0x4c3105();_0xfe2df8[_0x377300]=_0x32360e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2a3cc0,_0x2a3cc0!=_0x32360e([0x56,0x61,0x6c,0x69,0x64])&&_0x17951d();}function _0x4c3105(){const _0xb261f5=window[_0x32360e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x32360e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x32360e([0x6e,0x6f,0x77])]())[_0x32360e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x32360e([0x2e]),'');let _0x24c1f8=_0x32360e([0x49]);for(let _0x122e9a=0x0;_0x122e9a<_0xb261f5[_0x32360e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x122e9a+=0x2){let _0x3b7b3e=window[_0x32360e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb261f5[_0x32360e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x122e9a,_0x122e9a+0x2));_0x3b7b3e>=_0x4ae7ac[_0x32360e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3b7b3e-=_0x4ae7ac[_0x32360e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x24c1f8+=_0x4ae7ac[_0x3b7b3e];}return _0x24c1f8;}function _0x163cb1(){const _0xd14761=_0x23cbe0[_0x32360e([0x73,0x70,0x6c,0x69,0x74])](_0x32360e([0x2e]));if(0x3!=_0xd14761[_0x32360e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34bd11(_0xd14761[0x1]);function _0x34bd11(_0x1ed6c2){const _0x36e12b=_0x315e33(_0x1ed6c2);return _0x36e12b&&_0x2f381f()?_0x36e12b:null;function _0x2f381f(){const _0x190327=_0x36e12b[_0x32360e([0x6a,0x74,0x69])],_0x68440d=window[_0x32360e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x190327[_0x32360e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x190327[_0x32360e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x466f8c={..._0x36e12b,[_0x32360e([0x6a,0x74,0x69])]:_0x190327[_0x32360e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x190327[_0x32360e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x466f8c[_0x32360e([0x76,0x63])],_0x174560(_0x466f8c)==_0x68440d;}}}async function _0x5e5729(){let _0x58dae1=!0x0;try{const _0x40bb3f=_0x23cbe0[_0x32360e([0x73,0x70,0x6c,0x69,0x74])](_0x32360e([0x2e])),[_0x52ab96,_0x337bb9,_0x2d7f95]=_0x40bb3f;return _0x11efd4(_0x52ab96),await _0x4d2a0d(_0x52ab96,_0x337bb9,_0x2d7f95),_0x58dae1;}catch{return!0x1;}function _0x11efd4(_0x4c2238){const _0x5b1632=_0x315e33(_0x4c2238);_0x5b1632&&_0x5b1632[_0x32360e([0x61,0x6c,0x67])]==_0x32360e([0x45,0x53,0x32,0x35,0x36])||(_0x58dae1=!0x1);}async function _0x4d2a0d(_0x2ce0ea,_0x12d90f,_0x42a02c){const _0x25cb05=window[_0x32360e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x32360e([0x66,0x72,0x6f,0x6d])](_0x4c6a50(_0x42a02c),_0x50d29b=>_0x50d29b[_0x32360e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2143bb=new window[(_0x32360e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x32360e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2ce0ea+_0x32360e([0x2e])+_0x12d90f),_0x23d7da=window[_0x32360e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x32360e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x23d7da)return;const _0x3fbeee=await _0x23d7da[_0x32360e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x32360e([0x6a,0x77,0x6b]),_0x53f2fc,{[_0x32360e([0x6e,0x61,0x6d,0x65])]:_0x32360e([0x45,0x43,0x44,0x53,0x41]),[_0x32360e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x32360e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x32360e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x23d7da[_0x32360e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x32360e([0x6e,0x61,0x6d,0x65])]:_0x32360e([0x45,0x43,0x44,0x53,0x41]),[_0x32360e([0x68,0x61,0x73,0x68])]:{[_0x32360e([0x6e,0x61,0x6d,0x65])]:_0x32360e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3fbeee,_0x25cb05,_0x2143bb)||(_0x58dae1=!0x1);}}function _0x315e33(_0x42117a){return _0x42117a[_0x32360e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x32360e([0x65,0x79]))?JSON[_0x32360e([0x70,0x61,0x72,0x73,0x65])](_0x4c6a50(_0x42117a)):null;}function _0x4c6a50(_0x427125){return window[_0x32360e([0x61,0x74,0x6f,0x62])](_0x427125[_0x32360e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x32360e([0x2b]))[_0x32360e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x32360e([0x2f])));}function _0x174560(_0x5dea07){let _0x10211a=0x1505;function _0x5c9685(_0x3fd8cc){for(let _0x41853f=0x0;_0x41853f<_0x3fd8cc[_0x32360e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x41853f++){const _0x2d5b=_0x3fd8cc[_0x32360e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x41853f);_0x10211a=(_0x10211a<<0x5)+_0x10211a+_0x2d5b,_0x10211a&=_0x10211a;}}function _0x5bbc7e(_0x20ede8){Array[_0x32360e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x20ede8)?_0x20ede8[_0x32360e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5bbc7e):_0x20ede8&&typeof _0x20ede8==_0x32360e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x32360e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x20ede8)[_0x32360e([0x73,0x6f,0x72,0x74])]()[_0x32360e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40e65a,_0x51cfae])=>{_0x5c9685(_0x40e65a),_0x5bbc7e(_0x51cfae);}):_0x5c9685(window[_0x32360e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x20ede8));}return _0x5bbc7e(_0x5dea07),_0x10211a>>>0x0;}function _0x2c43e3(_0x4cfde9){return _0x4cfde9[_0x32360e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x32360e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x32360e([0x30]));}function _0x2d333c(_0x1119e8){return _0x1119e8[_0x32360e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x32360e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x32360e([0x6a,0x6f,0x69,0x6e])]('');}function _0x2f43d9(_0x18c4aa){return _0xfe2df8[_0x32360e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x32360e([0x68,0x61,0x73])](_0x18c4aa);}function _0x5790ee(_0x50d936){return _0xfe2df8[_0x32360e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x32360e([0x67,0x65,0x74])](_0x50d936);}function _0x356e41(){}function _0x32360e(_0x375ab0){return _0x375ab0['map'](_0x51a49d=>String['fromCharCode'](_0x51a49d))['join']('');}_0x3d8083(await _0x5bb33f());}(this);}set['adapter'](_0x57a3ed){if(this['_adapter'])throw new _0x445a81('track-changes-adapter-already-set',this);this['_adapter']=_0x57a3ed;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x13ac09=!0x1,toJSON:_0x17e19c=!0x1}={}){const _0x27b1e0=[];for(const _0x1a0629 of this['_suggestions']['values']())_0x13ac09&&!_0x1a0629['isInContent']||_0x27b1e0['push'](_0x1a0629);return _0x17e19c?_0x27b1e0['map'](_0x56030f=>_0x56030f['toJSON']()):_0x27b1e0;}['getSuggestion'](_0x5ac50f){const _0x3d9405=this['_suggestions']['get'](_0x5ac50f);if(!_0x3d9405)throw new _0x445a81('track-changes-suggestion-not-found',this);return _0x3d9405;}['hasSuggestion'](_0x21d47b){return this['_suggestions']['has'](_0x21d47b);}['addSuggestionData'](_0x43b49e){const {authorId:_0x4a84af,id:_0x4ca8cd,originalSuggestionId:_0x492d89,attributes:_0x387489}=_0x43b49e,[_0xbe46e7,_0x14b91]=_0x43b49e['type']['split'](':'),_0x32b83e=this['_suggestions']['get'](_0x4ca8cd)||this['_createSuggestion'](_0xbe46e7,_0x14b91,_0x4ca8cd,_0x4a84af,_0x387489,_0x492d89);if(this['_addThreadToSuggestion'](_0x32b83e),this['_checkSuggestionCorrectness'](_0x32b83e,_0xbe46e7,_0x14b91||null,_0x4a84af),_0x32b83e['createdAt']=_0x43b49e['createdAt'],_0x32b83e['_isDataLoaded']=!0x0,_0x387489&&_0x387489['@external']){const _0x352c1d=_0x387489['@external'],_0x5ef5aa=this['_getExternalAuthor'](_0x352c1d['authorName']);_0x32b83e['authoredAt']=_0x352c1d['createdAt'],_0x32b83e['author']=_0x5ef5aa,_0x32b83e['isExternal']=!0x0;}else _0x32b83e['authoredAt']=_0x43b49e['createdAt'];switch(_0x43b49e['data']&&(_0x32b83e['data']=_0x43b49e['data']),_0x43b49e['attributes']&&(_0x32b83e['attributes']=_0x43b49e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x32b83e['_saved']=!0x0),this['_suggestionState']['get'](_0x32b83e)){case'notReady':this['_suggestionState']['set'](_0x32b83e,'dataReady');break;case'markerReady':_0x32b83e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x32b83e])),this['_refreshSuggestionsChain'](new Set([_0x32b83e])),this['_suggestionState']['set'](_0x32b83e,'ready'),this['fire']('suggestionLoaded',_0x32b83e)):this['_suggestionState']['set'](_0x32b83e,'removed');}return _0x32b83e;}['acceptSuggestion'](_0x54d529){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x25b105 of _0x54d529['getAllAdjacentSuggestions']())_0x25b105['accept']();});});}['discardSuggestion'](_0x1ae35b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2adc07 of _0x1ae35b['getAllAdjacentSuggestions']())_0x2adc07['discard']();});});}['enableCommand'](_0x3ed321,_0x160328){const _0x2bae7e=this['editor']['commands']['get'](_0x3ed321);if(!_0x2bae7e)throw new _0x445a81('track-changes-command-not-found',this,{'commandName':_0x3ed321});if(this['_enabledCommands']['has'](_0x2bae7e))throw new _0x445a81('track-changes-enable-command-twice',this,{'commandName':_0x3ed321});this['_enabledCommands']['add'](_0x2bae7e),_0x160328&&_0x2bae7e['on']('execute',(_0x37c6fe,_0x595755)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x595755['length']>0x0&&_0x595755[_0x595755['length']-0x1]&&_0x595755[_0x595755['length']-0x1]['forceDefaultExecution']?_0x595755['pop']():(_0x37c6fe['return']=_0x160328((..._0x2d604b)=>_0x2bae7e['execute'](..._0x2d604b,{'forceDefaultExecution':!0x0}),..._0x595755),_0x37c6fe['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x39042c){let _0x3545ed,_0x10e38f;const _0x50dea6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3545ed=_0x39042c();}catch(_0x5190fe){_0x10e38f=_0x5190fe;}return _0x50dea6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x10e38f&&_0x445a81['rethrowUnexpectedError'](_0x10e38f,this),_0x3545ed;}['markInsertion'](_0x120478,_0x572f76=null,_0x36b01a={}){if(_0x120478['isCollapsed'])return null;const _0x4bea46=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x36b01a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x8a7e97,meta:_0x11b409}of this['_findSuggestions'](_0x120478,'insertion'))if(_0x11b409['isOwn']){if(!_0x11b409['isNextTo']){if(_0x11b409['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x8a7e97,_0x36b01a))continue;return _0x8a7e97;}if(Xt(_0x8a7e97,_0x36b01a))return _0x8a7e97;this['_breakSuggestionMarker'](_0x8a7e97,_0x120478['start'],_0x120478['end']);break;}if(_0x572f76==_0x8a7e97['subType']&&Xt(_0x8a7e97,_0x36b01a)){const _0x56f720=_0x8a7e97['getFirstRange']();return _0x56f720['start']['isEqual'](_0x120478['end'])?this['_setSuggestionRange'](_0x8a7e97,this['_model']['createRange'](_0x120478['start'],_0x56f720['end'])):this['_setSuggestionRange'](_0x8a7e97,this['_model']['createRange'](_0x56f720['start'],_0x120478['end'])),_0x8a7e97;}}const _0x22f4b6=_0x524fb1(),_0x32930b=_0x4bea46['id'],_0x129ee0=_0x572f76?'insertion:'+_0x572f76:'insertion',_0xe713a=this['_setSuggestionData']({'id':_0x22f4b6,'type':_0x129ee0,'createdAt':new Date(),'authorId':_0x32930b,'attributes':_0x36b01a});return this['_addSuggestionMarker'](_0x129ee0,_0x22f4b6,_0x32930b,_0x120478),_0xe713a;}['markMultiRangeInsertion'](_0x1840ad,_0x4cb90e='multi',_0x44cc99={}){const _0xc90fd6=this['editor']['plugins']['get']('Users')['me'],_0x32f9d3=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4cb90e,'join');this['_trackingSessionId']&&(_0x44cc99['trackingSessionId']=this['_trackingSessionId']);for(const _0x55392b of this['getSuggestions']())if(_0x55392b['author']['id']==_0xc90fd6['id']&&'insertion'==_0x55392b['type']&&_0x55392b['subType']==_0x4cb90e&&Xt(_0x55392b,_0x44cc99)&&(_0x32f9d3(_0x55392b['getRanges'](),_0x1840ad)||_0x32f9d3(_0x1840ad,_0x55392b['getRanges']()))){for(const _0x5cf5a7 of _0x1840ad)_0x55392b['addRange'](_0x5cf5a7);return _0x55392b;}for(const {suggestion:_0x3db680,meta:_0x20f775}of this['_findSuggestions'](_0x1840ad,'insertion')){if(!_0x20f775['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x20f775['containsRangeInObject'])continue;if(!Xt(_0x3db680,_0x44cc99))continue;let _0xa6c49a=!0x0;for(const _0x4c696c of _0x3db680['getRanges']())for(const _0x5bb13c of _0x1840ad)if(!_0x4c696c['containsRange'](_0x5bb13c)){_0xa6c49a=!0x1;break;}if(_0xa6c49a)return _0x3db680;}const _0x389afd=_0x524fb1(),_0x1fa08f=_0xc90fd6['id'],_0xc0810='insertion:'+_0x4cb90e,_0x2ef4c7=this['_setSuggestionData']({'id':_0x389afd,'type':_0xc0810,'createdAt':new Date(),'authorId':_0x1fa08f,'attributes':_0x44cc99});for(const _0x138185 of _0x1840ad)this['_addSuggestionMarker'](_0xc0810,_0x389afd,_0x1fa08f,_0x138185,o['getMultiRangeId']());return _0x2ef4c7;}['markInlineFormat'](_0x47805c,_0x2e379d,_0x595f06=null,_0x5294f7={}){if(_0x595f06=_0x595f06||Kt(_0x2e379d),_0x47805c['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5294f7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xfc5f5c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x595f06,'accept');return this['forceDefaultExecution'](()=>_0xfc5f5c([_0x47805c],_0x2e379d,_0x5294f7)),null;}const _0x2165e1=this['editor']['plugins']['get']('Users')['me'],_0x3a8b0f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x35db96,meta:_0xe9b420}of this['_findSuggestions'](_0x47805c,'insertion'))_0xe9b420['isOwn']&&!_0xe9b420['isInsideObject']&&_0x3a8b0f['push'](..._0x35db96['getRanges']());}const _0x5e7c13=function(_0x4b3c26,_0x51dbe8){const _0x309d38=[];for(const _0x4a44c6 of _0x51dbe8){const _0x309ff0=_0x4b3c26['getIntersection'](_0x4a44c6);_0x309ff0&&_0x309d38['push'](_0x309ff0);}return _0x309d38;}(_0x47805c,_0x3a8b0f),_0x146746=function(_0x4b2169,_0x1673c2){const _0x15e98e=[_0x4b2169];for(const _0x100d4e of _0x1673c2){let _0x297932=0x0;for(;_0x297932<_0x15e98e['length'];){const _0x5db5b7=_0x15e98e[_0x297932]['getDifference'](_0x100d4e);_0x15e98e['splice'](_0x297932,0x1,..._0x5db5b7),_0x297932+=_0x5db5b7['length'];}}return _0x15e98e;}(_0x47805c,_0x3a8b0f);_0x5e7c13['length']&&this['_model']['change'](()=>{for(const _0xb4db02 of _0x5e7c13){const _0x435897=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x595f06,'accept');this['forceDefaultExecution'](()=>_0x435897([_0xb4db02],_0x2e379d,_0x5294f7));}});for(const _0x1ea2f8 of _0x146746){let _0x18cff6=null,_0x272704=_0x1ea2f8['start'],_0x384a15=_0x1ea2f8['end'];for(const {suggestion:_0x55ce4a,meta:_0x2040a8}of this['_findSuggestions'](_0x1ea2f8,'formatInline')){if(!_0x2040a8['isOwn'])continue;if(_0x55ce4a['subType']!=_0x595f06)continue;if(!Xt(_0x55ce4a,_0x5294f7))continue;const _0x558b96=_0x55ce4a['getFirstRange']();if(_0x558b96['containsRange'](_0x1ea2f8,!0x0))return null;_0x272704=_0x272704['isBefore'](_0x558b96['start'])?_0x272704:_0x558b96['start'],_0x384a15=_0x384a15['isAfter'](_0x558b96['end'])?_0x384a15:_0x558b96['end'],_0x18cff6?_0x558b96['start']['isBefore'](_0x18cff6['getFirstRange']()['start'])?(_0x18cff6['removeMarkers'](),_0x18cff6=_0x55ce4a):_0x55ce4a['removeMarkers']():_0x18cff6=_0x55ce4a;}const _0x19acd8=this['_model']['createRange'](_0x272704,_0x384a15);if(_0x18cff6)this['_setSuggestionRange'](_0x18cff6,_0x19acd8);else{const _0x557f2e=_0x524fb1(),_0x58eda7=_0x2165e1['id'];this['_setSuggestionData']({'id':_0x557f2e,'type':'formatInline:'+_0x595f06,'data':_0x2e379d,'createdAt':new Date(),'authorId':_0x58eda7,'attributes':_0x5294f7}),this['_addSuggestionMarker']('formatInline:'+_0x595f06,_0x557f2e,_0x58eda7,_0x19acd8);}}return null;}['markBlockFormat'](_0x46933c,_0x34beac,_0x32127a=[],_0x3fcc59=null,_0x281db6={}){_0x34beac['formatGroupId']||(_0x34beac['formatGroupId']=_0x34beac['commandName']),_0x34beac['multipleBlocks']=_0x46933c['is']('range'),_0x3fcc59=_0x3fcc59||Kt(_0x34beac);const _0x269914=_0x32127a['map'](_0x5b36ed=>zt(_0x5b36ed,this['_model'])),_0x20ad12=_0x46933c['is']('range')?_0x46933c:zt(_0x46933c,this['_model']);if(this['_trackingSessionId']&&(_0x281db6['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x405cf8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fcc59,'accept');return this['forceDefaultExecution'](()=>_0x405cf8([_0x20ad12],_0x34beac,_0x281db6)),null;}_0x269914['push'](_0x20ad12);let _0x448baf=!0x0;for(const _0x4818e0 of _0x269914)if(!this['_rangeIsInLocalUserInsertion'](_0x4818e0)){_0x448baf=!0x1;break;}if(_0x448baf&&'always'!==this['_trackFormatChanges']){const _0x2bac17=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fcc59,'accept');return this['forceDefaultExecution'](()=>_0x2bac17([_0x20ad12],_0x34beac,_0x281db6)),null;}let _0x357589=null,_0x485801=_0x20ad12['start'],_0x23bae6=_0x20ad12['end'];for(const {suggestion:_0x457c61,meta:_0x1b5a30}of this['_findSuggestions'](_0x20ad12,'formatBlock')){if(!_0x1b5a30['isOwn'])continue;if(_0x1b5a30['isNextTo']||_0x1b5a30['containsRangeInObject']||_0x1b5a30['isInsideObject'])continue;if(_0x457c61['data']['formatGroupId']!=_0x34beac['formatGroupId'])continue;if(!Xt(_0x457c61,_0x281db6))continue;const _0x57fefe=_0x457c61['getFirstRange']();if(_0x457c61['subType']==_0x3fcc59){if(_0x57fefe['containsRange'](_0x20ad12,!0x0))return null;_0x485801=_0x485801['isBefore'](_0x57fefe['start'])?_0x485801:_0x57fefe['start'],_0x23bae6=_0x23bae6['isAfter'](_0x57fefe['end'])?_0x23bae6:_0x57fefe['end'],_0x357589?_0x57fefe['start']['isBefore'](_0x357589['getFirstRange']()['start'])?(_0x357589['removeMarkers'](),_0x357589=_0x457c61):_0x457c61['removeMarkers']():_0x357589=_0x457c61;}else{const _0x5bb219=_0x20ad12['getIntersection'](_0x57fefe);this['_cutOutSuggestionMarker'](_0x457c61,_0x5bb219);}}const _0x4a8670=this['editor']['plugins']['get']('Users')['me'],_0x2dd28b=_0x524fb1(),_0x3cf85e=_0x4a8670['id'];if(_0x357589)return this['_setSuggestionRange'](_0x357589,this['_model']['createRange'](_0x485801,_0x23bae6)),_0x357589;{const _0x5e6bf1=this['_setSuggestionData']({'id':_0x2dd28b,'type':'formatBlock:'+_0x3fcc59,'data':_0x34beac,'createdAt':new Date(),'authorId':_0x3cf85e,'attributes':_0x281db6});return this['_addSuggestionMarker']('formatBlock:'+_0x3fcc59,_0x2dd28b,_0x3cf85e,this['_model']['createRange'](_0x485801,_0x23bae6)),_0x5e6bf1;}}['markMultiRangeBlockFormat'](_0xdca5ee,_0x5a05df,_0x21d357=[],_0x33e255=null,_0x350dec={}){_0x5a05df['formatGroupId']||(_0x5a05df['formatGroupId']=_0x5a05df['commandName']);const _0x124725=_0xdca5ee[0x0];_0x5a05df['multipleBlocks']=_0x124725['is']('range'),_0x33e255=_0x33e255||Kt(_0x5a05df);const _0x34b654=_0x21d357['map'](_0x11da0d=>zt(_0x11da0d,this['_model'])),_0x5246c8=_0x124725['is']('range')?_0xdca5ee:_0xdca5ee['map'](_0x54862b=>zt(_0x54862b,this['_model']));if(this['_trackingSessionId']&&(_0x350dec['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2adfad=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33e255,'accept');return this['forceDefaultExecution'](()=>_0x2adfad(_0x5246c8,_0x5a05df,_0x350dec)),null;}_0x34b654['push'](..._0x5246c8);let _0xfcba8=!0x0;for(const _0x503875 of _0x34b654)if(!this['_rangeIsInLocalUserInsertion'](_0x503875)){_0xfcba8=!0x1;break;}if(_0xfcba8&&'always'!==this['_trackFormatChanges']){const _0x251c62=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33e255,'accept');return this['forceDefaultExecution'](()=>_0x251c62(_0x5246c8,_0x5a05df,_0x350dec)),null;}const _0x3427d5=this['editor']['plugins']['get']('Users')['me'];for(const _0x1b2b05 of this['getSuggestions']()){if(_0x1b2b05['author']['id']!=_0x3427d5['id'])continue;if('formatBlock'!=_0x1b2b05['type']||_0x1b2b05['data']['formatGroupId']!=_0x5a05df['formatGroupId'])continue;if(!Xt(_0x1b2b05,_0x350dec))continue;const _0x6ec4b=_0x1b2b05['subType']==_0x33e255;for(let _0xb6746f=0x0;_0xb6746f<_0x5246c8['length'];_0xb6746f++){const _0x4f6794=_0x5246c8[_0xb6746f];for(const _0x4d83af of _0x1b2b05['getMarkers']()){const _0x20c881=_0x4d83af['getRange']();if(_0x4f6794['isEqual'](_0x20c881)){_0x6ec4b?(_0x5246c8['splice'](_0xb6746f,0x1),_0xb6746f--):_0x1b2b05['removeMarker'](_0x4d83af['name']);break;}}}}if(0x0==_0x5246c8['length'])return null;const _0x47f37a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33e255,'join');for(const _0x37b3c7 of this['getSuggestions']())if(_0x37b3c7['author']['id']==_0x3427d5['id']&&'formatBlock'==_0x37b3c7['type']&&_0x37b3c7['data']['formatGroupId']==_0x5a05df['formatGroupId']&&_0x37b3c7['subType']==_0x33e255&&Xt(_0x37b3c7,_0x350dec)&&(_0x47f37a(_0x37b3c7['getRanges'](),_0x5246c8)||_0x47f37a(_0x5246c8,_0x37b3c7['getRanges']()))){for(const _0x10527d of _0x5246c8)_0x37b3c7['addRange'](_0x10527d);return _0x37b3c7;}const _0x5ccf70=_0x524fb1(),_0x3da651=_0x3427d5['id'],_0x565ab6='formatBlock:'+_0x33e255,_0x46276f=this['_setSuggestionData']({'id':_0x5ccf70,'type':_0x565ab6,'data':_0x5a05df,'createdAt':new Date(),'authorId':_0x3da651,'attributes':_0x350dec});for(const _0x5f2df8 of _0x5246c8)this['_addSuggestionMarker'](_0x565ab6,_0x5ccf70,_0x3da651,_0x5f2df8,o['getMultiRangeId']());return _0x46276f;}['markDeletion'](_0x2fe810,_0x422dcf=null,_0x279b86={}){if(_0x2fe810['isCollapsed'])return null;const _0x54c555=this['editor']['plugins']['get']('Users')['me'],_0x2a6860=new _0x34ca76(_0x2fe810['start'],_0x2fe810['end']);this['_trackingSessionId']&&(_0x279b86['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x93da5a,meta:_0x182fd4}of this['_findSuggestions'](_0x2a6860,'insertion'))if(_0x182fd4['isOwn']&&!_0x182fd4['isNextTo']){if(_0x93da5a['isMultiRange']){const _0x389da1=_0x93da5a['getRanges']()['filter'](_0x47fd3e=>'$graveyard'!=_0x47fd3e['root']['rootName']);_0x389da1['every'](_0x18c854=>_0x2a6860['containsRange'](_0x18c854,!0x0))&&_0x93da5a['discard']();if(_0x389da1['some'](_0x4be7ad=>_0x4be7ad['containsRange'](_0x2a6860,!0x0))){const _0x210afe=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x422dcf,'accept');return this['forceDefaultExecution'](()=>_0x210afe([_0x2a6860],null,_0x279b86)),null;}}else{const _0x58f6d0=_0x2a6860['getIntersection'](_0x93da5a['getFirstRange']());null!==_0x58f6d0&&_0x93da5a['_onDiscard']([_0x58f6d0],null,_0x279b86);}}if(_0x2a6860['detach'](),_0x2a6860['isCollapsed']||'$graveyard'==_0x2a6860['root']['rootName'])return null;let _0x4c486b=null,_0x668f28=_0x2a6860['start'],_0xc6b70b=_0x2a6860['end'];const _0x3271a3=this['_findSuggestions'](_0x2a6860,'deletion');for(const {suggestion:_0x213906,meta:_0x2ebb9e}of _0x3271a3){const _0x2eff6f=this['_model']['createRange'](_0x668f28,_0xc6b70b);if(_0x2ebb9e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2ebb9e['containsRangeInObject']&&!_0x2ebb9e['isInsideObject'])){if(_0x213906['isMultiRange']){if(!Xt(_0x213906,_0x279b86))continue;let _0x59c154=!0x0;for(const _0x9cf7b5 of _0x213906['getRanges']()){if(_0x9cf7b5['containsRange'](_0x2eff6f,!0x0))return _0x213906;_0x2eff6f['containsRange'](_0x9cf7b5)||(_0x59c154=!0x1);}_0x59c154&&_0x213906['discard']();}else{const _0x7f4a61=_0x213906['getFirstRange']();if(_0x7f4a61['containsRange'](_0x2eff6f,!0x0))return _0x213906;if(!Xt(_0x213906,_0x279b86)){_0x2eff6f['containsRange'](_0x7f4a61)?_0x213906['removeMarkers']():_0x7f4a61['containsPosition'](_0x668f28)?_0x668f28=_0x7f4a61['end']:_0x7f4a61['containsPosition'](_0xc6b70b)&&(_0xc6b70b=_0x7f4a61['start']);continue;}_0x668f28=_0x668f28['isBefore'](_0x7f4a61['start'])?_0x668f28:_0x7f4a61['start'],_0xc6b70b=_0xc6b70b['isAfter'](_0x7f4a61['end'])?_0xc6b70b:_0x7f4a61['end'],_0x279b86=Object['assign']({},_0x213906['attributes']),_0x4c486b?_0x7f4a61['start']['isBefore'](_0x4c486b['getFirstRange']()['start'])?(_0x4c486b['removeMarkers'](),_0x4c486b=_0x213906):_0x213906['removeMarkers']():_0x4c486b=_0x213906;}}}if(_0x4c486b)return this['_setSuggestionRange'](_0x4c486b,this['_model']['createRange'](_0x668f28,_0xc6b70b)),_0x4c486b;{const _0x8e66a3=_0x524fb1(),_0x56a73e=this['_model']['createRange'](_0x668f28,_0xc6b70b),_0x52528f=_0x54c555['id'],_0x50e309=_0x422dcf?'deletion:'+_0x422dcf:'deletion',_0x4e166a=this['_setSuggestionData']({'id':_0x8e66a3,'type':_0x50e309,'createdAt':new Date(),'authorId':_0x52528f,'attributes':_0x279b86});return this['_addSuggestionMarker'](_0x50e309,_0x8e66a3,_0x52528f,_0x56a73e),_0x4e166a;}}['markMultiRangeDeletion'](_0x225b16,_0x33572d='multi',_0x2bf531={}){const _0x90e718=this['editor']['plugins']['get']('Users')['me'],_0x3c916a=_0x225b16['map'](_0x377618=>new _0x34ca76(_0x377618['start'],_0x377618['end'])),_0x532d33=new Set();this['_trackingSessionId']&&(_0x2bf531['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x166b5a,meta:_0x558160}of this['_findSuggestions'](_0x3c916a,'insertion'))_0x558160['isOwn']&&!_0x558160['isNextTo']&&_0x532d33['add'](_0x166b5a);for(const _0xe0284d of _0x532d33)if(_0xe0284d['isMultiRange']){const _0x5df5cc=_0xe0284d['getRanges']();(!_0xe0284d['attributes']||!_0xe0284d['attributes']['skipNestingCheck'])&&(_0x5df5cc['every'](_0xba4e0f=>_0x3c916a['some'](_0x127d97=>_0x127d97['containsRange'](_0xba4e0f,!0x0)))&&_0xe0284d['discard']());if(_0x3c916a['every'](_0x5c4328=>_0x5df5cc['some'](_0x9fbeac=>_0x9fbeac['containsRange'](_0x5c4328,!0x0)))){const _0x99e8db=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33572d,'accept');return this['forceDefaultExecution'](()=>_0x99e8db(_0x225b16,null,_0x2bf531)),null;}}else{const _0x30c095=_0xe0284d['getFirstRange']();_0x3c916a['some'](_0xa9ad14=>_0xa9ad14['containsRange'](_0x30c095,!0x0))&&_0xe0284d['discard']();if(_0x3c916a['every'](_0x1c3aa7=>_0x30c095['containsRange'](_0x1c3aa7,!0x0))){const _0x3b0fb6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33572d,'accept');return this['forceDefaultExecution'](()=>_0x3b0fb6(_0x3c916a,null,_0x2bf531)),null;}}const _0x1ea442=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33572d,'join');let _0x4fba41=null;for(const _0x5b0901 of this['getSuggestions']())if(_0x5b0901['author']['id']==_0x90e718['id']&&_0x5b0901['isInContent']&&'deletion'==_0x5b0901['type']&&_0x5b0901['subType']==_0x33572d&&Xt(_0x5b0901,_0x2bf531)&&(_0x1ea442(_0x5b0901['getRanges'](),_0x3c916a)||_0x1ea442(_0x3c916a,_0x5b0901['getRanges']()))){if(_0x4fba41){if(_0x5b0901['commentThread']&&_0x5b0901['commentThread']['length'])continue;for(const _0x26a1a1 of _0x5b0901['getRanges']())_0x4fba41['isIntersectingWithRange'](_0x26a1a1)||_0x4fba41['addRange'](_0x26a1a1);_0x5b0901['removeMarkers']();}else{_0x4fba41=_0x5b0901;for(const _0x3c5994 of _0x3c916a)_0x5b0901['isIntersectingWithRange'](_0x3c5994)||_0x5b0901['addRange'](_0x3c5994);}}if(_0x4fba41)return _0x4fba41;_0x532d33['clear']();for(const {suggestion:_0x206d07,meta:_0x507e81}of this['_findSuggestions'](_0x3c916a,'deletion'))_0x507e81['isOwn']&&(this['_mergeNestedSuggestions']||!_0x507e81['containsRangeInObject']&&!_0x507e81['isInsideObject'])&&Xt(_0x206d07,_0x2bf531)&&_0x532d33['add'](_0x206d07);for(const _0x13fac2 of _0x532d33){const _0x11a141=_0x13fac2['getRanges']();if(!_0x2bf531||!_0x2bf531['skipNestingCheck']){if(_0x3c916a['every'](_0x4683c8=>_0x11a141['some'](_0x34d51c=>_0x34d51c['containsRange'](_0x4683c8,!0x0))))return _0x13fac2;}(!_0x13fac2['attributes']||!_0x13fac2['attributes']['skipNestingCheck'])&&(_0x11a141['every'](_0x32a272=>_0x3c916a['some'](_0x1782d9=>_0x1782d9['containsRange'](_0x32a272,!0x0)))&&_0x13fac2['discard']());}const _0x19bbf6=_0x524fb1(),_0x501dfd=_0x90e718['id'],_0x9bc4d7='deletion:'+_0x33572d,_0x57ed2b=this['_setSuggestionData']({'id':_0x19bbf6,'type':_0x9bc4d7,'createdAt':new Date(),'authorId':_0x501dfd,'attributes':_0x2bf531});for(const _0x1567ad of _0x3c916a)_0x1567ad['detach'](),_0x1567ad['isCollapsed']||'$graveyard'==_0x1567ad['root']['rootName']||this['_addSuggestionMarker'](_0x9bc4d7,_0x19bbf6,_0x501dfd,_0x1567ad,o['getMultiRangeId']());return _0x57ed2b;}['markAttributeChange'](_0x4adf02,_0x13113a,_0xd0e9d3,_0x3998a9,_0x5c29c6){if(_0x4adf02['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3fca96=this['editor']['plugins']['get']('Users')['me']['id'],_0xa6af58=Array['from'](this['_suggestions']['values']())['filter'](_0x549322=>'attribute'==_0x549322['type']&&_0x549322['data']['key']==_0x13113a&&_0x549322['isIntersectingWithRange'](_0x4adf02));if(this['_trackingSessionId']&&(_0x5c29c6['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4e203c=this['_findSuggestions'](_0x4adf02,'insertion')['filter'](({meta:_0x1386ab})=>_0x1386ab['isOwn']&&!_0x1386ab['isInsideObject']&&!_0x1386ab['isNextTo'])['map'](({suggestion:_0x10b156})=>_0x10b156);_0xa6af58['unshift'](..._0x4e203c);}const _0x4cef1c=new Map([[_0x4adf02,_0xd0e9d3]]);for(const _0x4e3ac2 of _0xa6af58){const _0x41ef4a='attribute'==_0x4e3ac2['type']?_0x4e3ac2['data']['oldValue']:void 0x0,_0x2c8d6d=_0x4e3ac2['getFirstRange'](),_0x63b130=Array['from'](_0x4cef1c['keys']())['find'](_0x21e439=>_0x21e439['isIntersecting'](_0x2c8d6d));if(!_0x63b130)continue;const _0x4886d5=_0x63b130['getDifference'](_0x2c8d6d);this['_isBlockAttribute'](_0x13113a)&&'insertion'==_0x4e3ac2['type']&&0x0!=_0x4886d5['length']||(_0x4cef1c['delete'](_0x63b130),_0x4886d5['forEach'](_0x15ed4d=>{_0x4cef1c['set'](_0x15ed4d,_0xd0e9d3);}),'insertion'!=_0x4e3ac2['type']&&_0x41ef4a!=_0x3998a9&&_0x4cef1c['set'](_0x63b130['getIntersection'](_0x2c8d6d),_0x41ef4a));}const _0x4b7c4b=[];for(const [_0x54746c,_0x263caa]of _0x4cef1c){const _0x19bbb7=_0x524fb1(),_0x46bfe4={'key':_0x13113a,'oldValue':_0x263caa,'newValue':_0x3998a9};_0x13113a['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x13113a});const _0x45fbdb=('attribute:'+(_0x13113a+'|'+Kt({'newValue':_0x3998a9})))['substring'](0x0,0x3c),_0x48a1d8=this['_setSuggestionData']({'id':_0x19bbb7,'type':_0x45fbdb,'data':_0x46bfe4,'createdAt':new Date(),'authorId':_0x3fca96,'attributes':_0x5c29c6});_0x4b7c4b['push'](_0x48a1d8),this['_addSuggestionMarker'](_0x45fbdb,_0x19bbb7,_0x3fca96,_0x54746c);}return _0x4b7c4b;}['enableDefaultAttributesIntegration'](_0x1b5b2f){this['enableCommand'](_0x1b5b2f,(_0x3dd647,..._0x593937)=>{this['_recordAttributeChanges'](()=>{_0x3dd647(..._0x593937);});});}['registerBlockAttribute'](_0x365a61){this['_blockAttributeKeys']['add'](_0x365a61);}['registerInlineAttribute'](_0xb9c28c){this['_inlineAttributeKeys']['add'](_0xb9c28c);}['startTrackingSession'](_0x41fe46){return this['_trackingSessionId']=void 0x0!==_0x41fe46?_0x41fe46:_0x524fb1(),this['_trackingSessionId'];}['_getAttributeKey'](_0xc54e4e){return'attribute'==_0xc54e4e['type']?_0xc54e4e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xd05119,_0x16e14b){const _0x103ee4=_0xd05119['getFirstMarker']();this['_model']['change'](_0x51fc30=>{_0x51fc30['updateMarker'](_0x103ee4,{'range':_0x16e14b});});}['_addThreadToSuggestion'](_0x3cf764){const _0x2f9467=_0x3cf764['id'],_0x14fee0=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2f9467)||this['_commentsRepository']['addCommentThread']({'channelId':_0x14fee0,'threadId':_0x2f9467,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x44f452=this['_commentsRepository']['getCommentThread'](_0x2f9467);_0x44f452['unbind']('isRemovable'),_0x44f452['isRemovable']=!0x1,_0x3cf764['commentThread']=_0x44f452;}['_checkSuggestionCorrectness'](_0x425ec6,_0x3b5014,_0x647c6b,_0x116d2d){if(_0x425ec6['type']!=_0x3b5014||_0x425ec6['subType']!=_0x647c6b||_0x425ec6['creator']['id']!=_0x116d2d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x445a81('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4451c9,_0x386ff1){const _0x461043=_0x4451c9['getFirstRange']();if(_0x386ff1['isEqual'](_0x461043))_0x4451c9['removeMarkers']();else{if(_0x461043['containsRange'](_0x386ff1)){const _0x290cab=this['_model']['createPositionAt'](_0x386ff1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4451c9,this['_model']['createRange'](_0x461043['start'],_0x290cab));const _0x323286=_0x524fb1(),_0x5f0a19=_0x4451c9['creator']['id'],_0x236219=_0x4451c9['type']+':'+_0x4451c9['subType'];this['_setSuggestionData']({'id':_0x323286,'type':_0x236219,'createdAt':new Date(),'authorId':_0x5f0a19,'data':_0x4451c9['data'],'attributes':_0x4451c9['attributes']});const _0xad0092=this['_model']['createPositionAt'](_0x386ff1['end']['parent'],'after'),_0x88365d=this['_model']['createRange'](_0xad0092,_0x461043['end']);this['_addSuggestionMarker'](_0x236219,_0x323286,_0x5f0a19,_0x88365d);}else{if(_0x461043['containsPosition'](_0x386ff1['start'])){const _0x163a64=this['_model']['createPositionAt'](_0x386ff1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4451c9,this['_model']['createRange'](_0x461043['start'],_0x163a64));}else{const _0x45b8a1=this['_model']['createPositionAt'](_0x386ff1['end']['parent'],'after');this['_setSuggestionRange'](_0x4451c9,this['_model']['createRange'](_0x45b8a1,_0x461043['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x15b72f){for(const {suggestion:_0x3d75e2,meta:_0xcb0476}of this['_findSuggestions'](_0x15b72f,'insertion')){if(!_0xcb0476['isOwn'])continue;const _0x428d08=_0x3d75e2['getRanges']();for(const _0x14c472 of _0x428d08)if(!_0x15b72f['getDifference'](_0x14c472)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x134a9f){const _0x2a4ab1=this['editor']['plugins']['get']('Users')['getUser'](_0x134a9f);if(!_0x2a4ab1)throw new _0x445a81('track-changes-user-not-found',this);return _0x2a4ab1;}['_getExternalAuthor'](_0x9022bc){const _0x3807dc=this['editor']['plugins']['get']('Users'),_0x799188=_0x419ded('external:'+_0x9022bc),_0x29ecf9=_0x3807dc['getUser'](_0x799188);return _0x29ecf9||_0x3807dc['addUser']({'id':_0x799188,'name':_0x9022bc});}['_createSuggestion'](_0x4127b3,_0x5263e9,_0x5b1d32,_0x110032,_0x25d05f,_0x326fe7){const _0x8482cc=this['_getAuthorFromId'](_0x110032),_0x3ead7e=this['_suggestionFactory']['buildSuggestion'](_0x4127b3,_0x5263e9,_0x5b1d32,_0x8482cc,_0x25d05f,_0x642f4f=>{this['_updateSuggestionData'](_0x5b1d32,{'attributes':_0x642f4f});const _0xfe47ba=this['getSuggestion'](_0x5b1d32);this['_joinWithAdjacentSuggestions'](new Set([_0xfe47ba])),this['_refreshSuggestionsChain'](new Set([_0xfe47ba]));},_0x326fe7);return this['listenTo'](_0x3ead7e,'accept',()=>{this['_updateSuggestionData'](_0x5b1d32,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3ead7e,'discard',()=>{this['_updateSuggestionData'](_0x5b1d32,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5b1d32,_0x3ead7e),this['_suggestionState']['set'](_0x3ead7e,'notReady'),_0x3ead7e;}['_splitMarkerName'](_0x284518){const _0x2c5682=_0x284518['split'](':');return{'group':_0x2c5682[0x0],'type':_0x2c5682[0x1],'subType':_0x2c5682['length']>=0x5?_0x2c5682[0x2]:null,'id':_0x2c5682['length']<0x5?_0x2c5682[0x2]:_0x2c5682[0x3],'authorId':_0x2c5682['length']<0x5?_0x2c5682[0x3]:_0x2c5682[0x4],'markerCount':0x6==_0x2c5682['length']?_0x2c5682[0x5]:null};}['_breakSuggestionMarker'](_0x120967,_0x8d89bc,_0x5ef2e9){const _0x2e4cef=_0x120967['getFirstRange'](),_0x1cb67e=_0x2e4cef['start'],_0x314daa=_0x2e4cef['end'];this['_setSuggestionRange'](_0x120967,this['_model']['createRange'](_0x1cb67e,_0x8d89bc));const _0xa3cb44=_0x524fb1(),_0xc81026=_0x120967['creator']['id'],_0x36db49=_0x120967['type']+(_0x120967['subType']?':'+_0x120967['subType']:'');this['_setSuggestionData']({'id':_0xa3cb44,'type':_0x36db49,'createdAt':new Date(),'authorId':_0xc81026,'originalSuggestionId':_0x120967['_originalSuggestionId']||_0x120967['id'],'attributes':_0x120967['attributes'],'data':_0x120967['data']});const _0x2b22ef=this['_getAttributeKey'](_0x120967);('formatBlock'==_0x120967['type']||_0x2b22ef&&this['_isBlockAttribute'](_0x2b22ef))&&(_0x5ef2e9=this['_model']['createPositionBefore'](_0x5ef2e9['parent'])),this['_addSuggestionMarker'](_0x36db49,_0xa3cb44,_0xc81026,this['_model']['createRange'](_0x5ef2e9,_0x314daa));}['_findSuggestions'](_0x374ba6,_0x2f512d=null){const _0x54ccaf=[],_0x7a03b4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x374ba6)||(_0x374ba6=[_0x374ba6]);for(const _0x44ff29 of this['getSuggestions']()){if(!_0x44ff29['isInContent'])continue;if(_0x2f512d&&_0x44ff29['type']!=_0x2f512d)continue;let _0x316753=!0x1;for(const _0x46fa5f of _0x44ff29['getRanges']()){for(const _0x295d64 of _0x374ba6){const _0x3d7194=_0x295d64['start']['isEqual'](_0x46fa5f['end'])||_0x295d64['end']['isEqual'](_0x46fa5f['start']);if(_0x3d7194||_0x295d64['getIntersection'](_0x46fa5f)){const _0x3c8c83=_0x295d64['containsRange'](_0x46fa5f)&&Gt(this['_model']['schema'],_0x46fa5f['start'],_0x295d64),_0x29f153=_0x46fa5f['containsRange'](_0x295d64)&&Gt(this['_model']['schema'],_0x295d64['start'],_0x46fa5f);_0x54ccaf['push']({'suggestion':_0x44ff29,'meta':{'isOwn':_0x7a03b4==_0x44ff29['author'],'isNextTo':_0x3d7194,'isInsideObject':_0x3c8c83,'containsRangeInObject':_0x29f153}}),_0x316753=!0x0;break;}}if(_0x316753)break;}}return _0x54ccaf;}['_addSuggestionMarker'](_0x444647,_0x4e6fdc,_0x141f6f,_0x506e18,_0x2c0e3c){this['_model']['change'](_0x1fc18b=>{let _0x53d8ab='suggestion:'+_0x444647+':'+_0x4e6fdc+':'+_0x141f6f;_0x2c0e3c&&(_0x53d8ab=_0x53d8ab+':'+_0x2c0e3c),_0x1fc18b['addMarker'](_0x53d8ab,{'range':_0x506e18,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2c058c){const _0x5478bb=_0x2c058c['previous'],_0x11867b=_0x2c058c['next'];_0x2c058c['previous']=null,_0x2c058c['next']=null,null!=_0x5478bb&&_0x5478bb['next']==_0x2c058c&&(_0x5478bb['next']=_0x11867b),null!=_0x11867b&&_0x11867b['previous']==_0x2c058c&&(_0x11867b['previous']=_0x5478bb),'ready'==this['_suggestionState']['get'](_0x2c058c)&&(this['_suggestionState']['set'](_0x2c058c,'removed'),this['fire']('suggestionUnloaded',_0x2c058c,_0x5478bb,_0x11867b));}['_setSuggestionData'](_0x1882ce){const _0x1c876b=_0x1882ce['id'],_0x294b83=this['addSuggestionData'](_0x1882ce);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x13b61a=this['editor']['plugins']['get']('PendingActions'),_0x15cc56=_0x294b83['hasComments'],_0x471a70=_0x294b83['subType']?_0x294b83['type']+':'+_0x294b83['subType']:_0x294b83['type'],_0x1bbcf1=this['editor']['locale'],_0x11b6a4=_0x13b61a['add'](c(_0x1bbcf1,'PENDING_ACTION_SUGGESTION')),_0x2ebe78={'id':_0x1c876b,'type':_0x471a70,'hasComments':_0x15cc56,'data':_0x1882ce['data']||null,'originalSuggestionId':_0x1882ce['originalSuggestionId']||null,'attributes':_0x294b83['attributes']};this['_adapter']['addSuggestion'](_0x2ebe78)['then'](_0x1b50a3=>{_0x294b83['_saved']=!0x0,_0x13b61a['remove'](_0x11b6a4),_0x1b50a3&&_0x1b50a3['createdAt']&&(this['_suggestions']['get'](_0x1c876b)['createdAt']=_0x1b50a3['createdAt']);})['catch'](_0x5916f5=>{throw _0x2d9cbe('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x294b83['discard']();}),_0x294b83['stopListening'](),this['_suggestions']['delete'](_0x294b83['id']),this['_suggestionState']['delete'](_0x294b83),_0x5916f5;});}return _0x294b83;}['_isBlockAttribute'](_0x611f11){return this['_blockAttributeKeys']['has'](_0x611f11);}['_updateSuggestionData'](_0x524624,_0x284f6f){const _0x115c83=this['editor']['plugins']['get']('PendingActions'),_0xacb1e1=this['getSuggestion'](_0x524624);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xacb1e1['_saved']){const _0x5e34f8=_0x115c83['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x524624,_0x284f6f)['then'](()=>{_0x115c83['remove'](_0x5e34f8);});}else _0xacb1e1['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x524624,_0x284f6f);});}}['_getSuggestionData'](_0xc35e3d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x445a81('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xc35e3d);}['_handleNewSuggestionMarker'](_0x16979d){const {id:_0xe60c70,type:_0x4aede0,subType:_0x335365,authorId:_0x1ef210}=this['_splitMarkerName'](_0x16979d),_0x50f5fb=this['_suggestions']['get'](_0xe60c70)||this['_createSuggestion'](_0x4aede0,_0x335365,_0xe60c70,_0x1ef210,{});switch(this['_checkSuggestionCorrectness'](_0x50f5fb,_0x4aede0,_0x335365,_0x1ef210),this['_suggestionState']['get'](_0x50f5fb)){case'notReady':this['_getSuggestionData'](_0xe60c70)['then'](_0x39ee2b=>{let _0x47117a=Promise['resolve']();_0x39ee2b['hasComments']&&(_0x47117a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xe60c70})),_0x47117a['then'](()=>{this['addSuggestionData'](_0x39ee2b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x50f5fb,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xe60c70,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x50f5fb,'ready'),this['fire']('suggestionLoaded',_0x50f5fb);break;case'ready':this['fire']('suggestionChanged',_0x50f5fb);}return _0x50f5fb['addMarkerName'](_0x16979d),_0x50f5fb;}['_refreshSuggestionsChain'](_0x4578b3){const _0x37c2bf=Array['from'](_0x4578b3),_0x29e54e=_0x37c2bf['filter'](_0x33eb99=>'attribute'==_0x33eb99['type']);this['_refreshAttributeSuggestionsChain'](_0x29e54e);const _0x5cf74b=_0x37c2bf['filter'](_0x427609=>!_0x427609['isMultiRange']&&'attribute'!=_0x427609['type']),_0x58c1d2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58c63c=>!_0x58c63c['isMultiRange']&&'attribute'!=_0x58c63c['type']),_0x307c59=_0x58c1d2['filter'](_0x40ee6a=>!_0x4578b3['has'](_0x40ee6a)),_0x3fa382=new Map(_0x58c1d2['map'](_0x3eef69=>[_0x3eef69,this['_suggestionFactory']['getSuggestionCallback'](_0x3eef69['type'],_0x3eef69['subType'],'chain')])),_0x2f5e63=new Map(_0x58c1d2['map'](_0x41109b=>[_0x41109b,_0x41109b['getFirstRange']()])),_0x324f6c=new Set(),_0x8de32d=new Set();for(let _0x1a832b=0x0;_0x1a832b<_0x5cf74b['length'];_0x1a832b++)_0x1eb9c7(_0x5cf74b[_0x1a832b],_0x5cf74b,_0x1a832b+0x1);for(let _0xc78abc=0x0;_0xc78abc<_0x5cf74b['length'];_0xc78abc++)_0x1eb9c7(_0x5cf74b[_0xc78abc],_0x307c59,0x0);const _0x5865d3=new Set();for(let _0x39bd8b=0x0;_0x39bd8b<_0x5cf74b['length'];_0x39bd8b++){const _0x40980d=_0x5cf74b[_0x39bd8b];!_0x8de32d['has'](_0x40980d)&&_0x40980d['previous']&&(_0x5865d3['add'](_0x40980d['previous']),_0x40980d['previous']['next']===_0x40980d&&(_0x40980d['previous']['next']=null),_0x40980d['previous']=null),!_0x324f6c['has'](_0x40980d)&&_0x40980d['next']&&(_0x5865d3['add'](_0x40980d['next']),_0x40980d['next']['previous']===_0x40980d&&(_0x40980d['next']['previous']=null),_0x40980d['next']=null);}function _0x1eb9c7(_0x301442,_0x2d48fb,_0x1d9707){for(let _0x5a654e=_0x1d9707;_0x5a654e<_0x2d48fb['length'];_0x5a654e++){const _0xeb9a70=_0x3b7e6b(_0x301442,_0x2d48fb[_0x5a654e]);_0xeb9a70&&(_0xeb9a70[0x0]['next']=_0xeb9a70[0x1],_0xeb9a70[0x1]['previous']=_0xeb9a70[0x0],_0x324f6c['add'](_0xeb9a70[0x0]),_0x8de32d['add'](_0xeb9a70[0x1]));}}function _0x3b7e6b(_0x13bb79,_0x2d2cb2){if(_0x13bb79['author']['id']!==_0x2d2cb2['author']['id'])return null;const _0x2e7223=_0x3fa382['get'](_0x13bb79)(_0x13bb79,_0x2d2cb2,_0x2f5e63['get'](_0x13bb79),_0x2f5e63['get'](_0x2d2cb2));if(!_0x2e7223)return null;return _0x3fa382['get'](_0x2d2cb2)(_0x13bb79,_0x2d2cb2,_0x2f5e63['get'](_0x13bb79),_0x2f5e63['get'](_0x2d2cb2))?_0x2e7223[0x1]['commentThread']&&_0x2e7223[0x1]['commentThread']['length']?null:_0x2e7223:null;}_0x5865d3['size']&&this['_refreshSuggestionsChain'](_0x5865d3);}['_refreshAttributeSuggestionsChain'](_0x3bfc9e){if(0x0==_0x3bfc9e['length'])return;const _0x1de65b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1223d0=>'attribute'==_0x1223d0['type']&&_0x1223d0['_isDataLoaded']),_0x55407f=[],_0x383ba0=new Map();for(const _0x459bdb of _0x1de65b){const _0x5a601d=_0x419ded(_0x459bdb['attributes']);_0x383ba0['has'](_0x5a601d)||(_0x383ba0['set'](_0x5a601d,_0x55407f['length']),_0x55407f['push']([]));const _0xb7e622=_0x383ba0['get'](_0x5a601d);_0x55407f[_0xb7e622]['push'](_0x459bdb);}!(function(){_0x55407f['sort']((_0x242296,_0xc1e3f5)=>{const _0x12d1bb=_0x242296[0x0]['createdAt'],_0x16874a=_0xc1e3f5[0x0]['createdAt'];return _0x12d1bb==_0x16874a?_0x242296[0x0]['attributes']['groupId']<_0xc1e3f5[0x0]['attributes']['groupId']?-0x1:0x1:_0x12d1bb<_0x16874a?-0x1:0x1;});for(const _0x4c9a62 of _0x55407f)_0x4c9a62['sort']((_0x4b35a9,_0x1cf1c1)=>_0x4b35a9['id']<_0x1cf1c1['id']?-0x1:0x1);}());for(let _0x4b3594=0x0;_0x4b3594<_0x55407f['length'];_0x4b3594++){if(0x0==_0x55407f[_0x4b3594]['length'])continue;const _0x598f56=[];for(let _0x1b8dfd=_0x4b3594+0x1;_0x1b8dfd<_0x55407f['length'];_0x1b8dfd++)0x0!=_0x55407f[_0x1b8dfd]['length']&&_0x48bcce(_0x55407f[_0x4b3594],_0x55407f[_0x1b8dfd])&&_0x598f56['push'](_0x1b8dfd);for(const _0x4252ca of _0x598f56)_0x55407f[_0x4b3594]=_0x55407f[_0x4b3594]['concat'](_0x55407f[_0x4252ca]),_0x55407f[_0x4252ca]=[];}for(const _0x334fba of _0x55407f)for(let _0x14aef9=0x0;_0x14aef9<_0x334fba['length'];_0x14aef9++){const _0x3356a1=_0x334fba[_0x14aef9+0x1]||null;_0x334fba[_0x14aef9]['next']!==_0x3356a1&&(_0x334fba[_0x14aef9]['next']=_0x3356a1);}for(const _0x3b0f58 of _0x55407f)for(let _0x342a55=0x0;_0x342a55<_0x3b0f58['length'];_0x342a55++){const _0x22212a=_0x3b0f58[_0x342a55-0x1]||null;_0x3b0f58[_0x342a55]['previous']!==_0x22212a&&(_0x3b0f58[_0x342a55]['previous']=_0x22212a);}function _0x48bcce(_0x286fd3,_0x2bec17){if(_0x286fd3[0x0]['attributes']['groupId']!==_0x2bec17[0x0]['attributes']['groupId']&&_0x286fd3[0x0]['author']!==_0x2bec17[0x0]['author'])return!0x1;if(!function(_0x4ecbe3,_0x160c98){if(!_0x4ecbe3['hasComments']&&!_0x160c98['hasComments'])return!0x0;if(_0x4ecbe3['hasComments']&&_0x160c98['hasComments'])return!0x1;if(_0x4ecbe3['hasComments']&&_0x160c98['createdAt']<_0x4ecbe3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x160c98['hasComments']&&_0x4ecbe3['createdAt']<_0x160c98['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x286fd3[0x0],_0x2bec17[0x0]))return!0x1;const _0x274dbb=Ft(_0x286fd3[0x0]['attributes'],['groupId','trackingSessionId']),_0x168466=Ft(_0x2bec17[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x8ce2d0(_0x274dbb,_0x168466))return!0x1;if(_0x286fd3[0x0]['attributes']['groupId']==_0x2bec17[0x0]['attributes']['groupId'])return!0x0;if(_0x286fd3[0x0]['attributes']['trackingSessionId']!==_0x2bec17[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x286fd3['every'](_0x4d7e53=>_0x2bec17['some'](_0x26e91c=>_0x4d7e53['getFirstRange']()['isEqual'](_0x26e91c['getFirstRange']())))&&_0x2bec17['every'](_0x2307c0=>_0x286fd3['some'](_0x4eadf9=>_0x2307c0['getFirstRange']()['isEqual'](_0x4eadf9['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1a7cee){const _0x45eff4=Array['from'](_0x1a7cee),_0x594486=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3e75f3=_0x594486['filter'](_0x4c01f7=>!_0x1a7cee['has'](_0x4c01f7)),_0x47fc0e=new Map(_0x45eff4['map'](_0x191c23=>[_0x191c23,this['_suggestionFactory']['getSuggestionCallback'](_0x191c23['type'],_0x191c23['subType'],'join')])),_0x2f6b05=new Map(_0x594486['map'](_0x52567c=>[_0x52567c,_0x52567c['getRanges']()]));for(let _0xbb6a44=0x0;_0xbb6a44<_0x45eff4['length'];_0xbb6a44++){if(_0x46d483(this,_0x45eff4[_0xbb6a44],_0x45eff4,_0xbb6a44+0x1))return!0x0;}for(let _0x2263cc=0x0;_0x2263cc<_0x45eff4['length'];_0x2263cc++){if(_0x46d483(this,_0x45eff4[_0x2263cc],_0x3e75f3,0x0))return!0x0;}return!0x1;function _0x46d483(_0x2a69f3,_0x33d099,_0x325529,_0x4abfb2){for(let _0xc978b4=_0x4abfb2;_0xc978b4<_0x325529['length'];_0xc978b4++){const _0x226397=_0x325529[_0xc978b4];if(_0x226397['type']!==_0x33d099['type']||_0x226397['author']['id']!==_0x33d099['author']['id']||_0x226397['subType']!==_0x33d099['subType'])continue;if(!Qt(_0x33d099,_0x226397))continue;if('attribute'==_0x33d099['type']&&_0x33d099['data']['oldValue']!=_0x226397['data']['oldValue'])continue;if('attribute'==_0x33d099['type']&&_0x2a69f3['_isBlockAttribute'](_0x33d099['data']['key']))continue;if('formatBlock'==_0x33d099['type']){const _0x4e25cd=_0x2a69f3['editor']['model'],_0x547896=_0x33d099['getContainedElement']();if(_0x547896&&(_0x4e25cd['schema']['isObject'](_0x547896)||_0x4e25cd['schema']['isLimit'](_0x547896)))continue;}const _0x18b719=_0x47fc0e['get'](_0x33d099),_0x1e8959=_0x2f6b05['get'](_0x33d099),_0x291325=_0x2f6b05['get'](_0x226397),_0x14ceca=_0x33d099['commentThread']&&_0x33d099['commentThread']['length'],_0x50e13a=_0x226397['commentThread']&&_0x226397['commentThread']['length'];if(!_0x14ceca&&_0x18b719(_0x291325,_0x1e8959))return _0x2a69f3['_joinSuggestions'](_0x226397,_0x33d099),_0x2f6b05['delete'](_0x33d099),!0x0;if(!_0x50e13a&&_0x18b719(_0x1e8959,_0x291325))return _0x2a69f3['_joinSuggestions'](_0x33d099,_0x226397),_0x2f6b05['delete'](_0x226397),!0x0;}return!0x1;}}['_joinSuggestions'](_0x329bbb,_0x5485dd){if(_0x329bbb['isMultiRange']){for(const _0x89a5a7 of _0x5485dd['getRanges']())_0x329bbb['addRange'](_0x89a5a7);}else{const _0x4b8a19=_0x5485dd['getFirstRange']()['end'];this['_setSuggestionRange'](_0x329bbb,this['_model']['createRange'](_0x329bbb['getFirstRange']()['start'],_0x4b8a19));}_0x5485dd['removeMarkers']();}['_getMarkerAnnouncementText'](_0x29f53f,_0x2d06b5,_0x49f87f){const _0x2b9ab2=_0x29f53f['startsWith']('format')||_0x29f53f['startsWith']('attribute')?'FORMATTING':_0x29f53f['toUpperCase']();return c(this['editor']['locale'],_0x2d06b5+'_'+_0x2b9ab2+'_SUGGESTION_ANNOUNCEMENT',_0x49f87f);}['_initAriaMarkerChangeAnnouncements'](){const _0x4807d0=this['editor'];if(!_0x4807d0['ui'])return;const {ariaLiveAnnouncer:_0x5557b0}=_0x4807d0['ui'];_0x4cacd4(this['_model'],({left:_0x35f7a8,entered:_0x13db3b})=>{for(const _0x39b487 of _0x35f7a8){const {group:_0x478d0f,type:_0x53d3d2}=this['_splitMarkerName'](_0x39b487['name']);if('suggestion'===_0x478d0f){_0x5557b0['announce'](this['_getMarkerAnnouncementText'](_0x53d3d2,'LEAVE'));break;}}for(const _0x2d3c4d of _0x13db3b){const {group:_0x5b97f7,type:_0x5f2837}=this['_splitMarkerName'](_0x2d3c4d['name']);if('suggestion'===_0x5b97f7){_0x5557b0['announce'](this['_getMarkerAnnouncementText'](_0x5f2837,'ENTER',_0x24010f(_0x1b8fee)));break;}}});}['_processAttributeChanges'](_0x3d5392){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3ec308=this['editor'],_0x3ecbdb=_0x3ec308['model']['document']['differ']['getChanges']();if(0x0==_0x3ecbdb['length'])return!0x1;const _0x1eadca=[],_0x5ac9eb=_0x3ecbdb['filter'](_0x200830=>'attribute'==_0x200830['type']),_0x113e15=_0x3ecbdb['filter'](_0x54fd45=>'insert'==_0x54fd45['type']&&'$text'!=_0x54fd45['name']),_0x1e46bc=_0x3ecbdb['filter'](_0x514a30=>'remove'==_0x514a30['type']&&'$text'!=_0x514a30['name']);for(const _0x3db637 of _0x5ac9eb)_0x1eadca['push']({'key':_0x3db637['attributeKey'],'newValue':_0x3db637['attributeNewValue'],'oldValue':_0x3db637['attributeOldValue'],'range':qt(_0x3db637['range'],_0x3ec308['model'])});for(const _0x168e48 of _0x113e15){const _0x221bfd=_0x1e46bc['find'](_0x4c7b75=>_0x4c7b75['position']['isEqual'](_0x168e48['position']));_0x221bfd&&_0x1eadca['push']({'key':u,'newValue':_0x168e48['name'],'oldValue':_0x221bfd['name'],'range':_0x3ec308['model']['createRangeOn'](_0x168e48['position']['nodeAfter'])});}return 0x0!=_0x1eadca['length']&&this['_reduceExistingSuggestions'](_0x3d5392,_0x1eadca);}['_processAttributeSuggestions'](_0xccf91d){let _0x3167d9=!0x1;const _0x2b9026=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1bf9f0=>_0x1bf9f0['data']['newRange']&&_0x1bf9f0['name']['startsWith']('suggestion:attribute:'));for(const _0x3cf1e3 of _0x2b9026){const {subType:_0x56119b,id:_0x5c1d71}=this['_splitMarkerName'](_0x3cf1e3['name']),_0xcee170=_0x56119b['split']('|')[0x0];for(const _0x176b39 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x176b39['id']!=_0x5c1d71&&'attribute'==_0x176b39['type']&&_0x176b39['data']&&_0x176b39['data']['key']==_0xcee170&&_0x176b39['getFirstRange']()['isIntersecting'](_0x3cf1e3['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x176b39,_0x3cf1e3['data']['newRange'],_0xccf91d),_0x3167d9=!0x0);}return _0x3167d9;}['_recordAttributeChanges'](_0x1c4496){this['_recordAttributeSuggestions']=!0x0,_0x1c4496();}['_isRegisteredAttribute'](_0x4628a1){const _0x4edbe9=this['_isBlockAttribute'](_0x4628a1),_0x20c85e=this['_inlineAttributeKeys']['has'](_0x4628a1);return _0x4edbe9||_0x20c85e;}['_reduceExistingSuggestions'](_0x5b0c5d,_0x924dc0){if(0x0==_0x924dc0['length'])return!0x1;let _0x3d46b2=!0x1;for(const _0x90c7da of _0x924dc0){const _0x265d83=this['_findSuggestions'](_0x90c7da['range'],'attribute')['filter'](_0x387cab=>!_0x387cab['meta']['isNextTo'])['map'](_0x53869f=>_0x53869f['suggestion']),_0x105c02=_0x419ded({'newValue':_0x90c7da['newValue']});_0x265d83['filter'](_0xa1d8df=>{const [_0x564261,_0x6183a7]=_0xa1d8df['subType']['split']('|');return _0x564261==_0x90c7da['key']&&_0x6183a7!=_0x105c02;})['forEach'](_0x345548=>{this['_reduceSuggestionAttributeRange'](_0x345548,_0x90c7da['range'],_0x5b0c5d),_0x3d46b2=!0x0;});}return _0x3d46b2;}['_reduceSuggestionAttributeRange'](_0x3ea06d,_0x459b0d,_0x1f086c){const _0x2910f5=_0x3ea06d['getFirstRange']()['getDifference'](_0x459b0d);0x0!==_0x2910f5['length']?0x1!==_0x2910f5['length']?this['_breakSuggestionMarker'](_0x3ea06d,_0x459b0d['start'],_0x459b0d['end']):this['_setSuggestionRange'](_0x3ea06d,_0x2910f5[0x0]):_0x1f086c['removeMarker'](_0x3ea06d['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x287462){this['_editor']=_0x287462,this['_model']=_0x287462['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xf9463e,_0x22be91,_0x966dd0,_0x1b3303,_0x2ad033,_0x1bb1cc,_0x3bd869){return new o(this['_model'],{'type':_0xf9463e,'subType':_0x22be91,'id':_0x966dd0,'originalSuggestionId':_0x3bd869,'author':_0x1b3303,'creator':_0x1b3303,'attributes':_0x2ad033,'onAttributesChange':_0x1bb1cc,'onAccept':(..._0x3c8672)=>this['getSuggestionCallback'](_0xf9463e,_0x22be91,'accept')(..._0x3c8672),'onDiscard':(..._0x43456d)=>this['getSuggestionCallback'](_0xf9463e,_0x22be91,'discard')(..._0x43456d)});}['registerCustomCallback'](_0x3e6bae,_0x4c896f,_0x527764,_0x5ca2b7){const _0x52b8ad=_0x3e6bae+':'+_0x4c896f+':'+_0x527764;this['_customCallbacks']['set'](_0x52b8ad,_0x5ca2b7);}['getSuggestionCallback'](_0x2bcc40,_0x391947,_0x39df09){const _0xd9a276=_0x2bcc40+':'+_0x391947+':'+_0x39df09;return this['_customCallbacks']['get'](_0xd9a276)||this['_defaultCallbacks']['get'](_0x2bcc40+':'+_0x39df09);}['_registerDefaultCallbacks'](){const _0x11120b=()=>!0x1,_0x1b7f26=_0x2b3435=>{_0x2b3435['sort']((_0x30052b,_0x5c8552)=>_0x30052b['start']['isBefore'](_0x5c8552['start'])?0x1:-0x1),this['_model']['change'](_0x5b0371=>{for(const _0x52c44c of _0x2b3435){let _0x6a5abf;_0x6a5abf=_0x52c44c['end']['isAtEnd']&&_0x52c44c['end']['parent']==_0x52c44c['start']['nodeAfter']?_0x5b0371['createSelection'](_0x52c44c['start']['nodeAfter'],'on'):_0x5b0371['createSelection'](_0x52c44c),this['_model']['deleteContent'](_0x6a5abf,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2ebc24=(_0x1eb342,_0x1abe2c)=>{_0x1abe2c&&this['_model']['change'](_0xd9ac72=>{const {commandName:_0x1bfe85,commandParams:_0x49b6d2=[]}=_0x1abe2c,_0x463229=_0x1eb342['map'](_0x1922af=>(Lt(_0x1922af)&&(_0x1922af=this['_model']['createRange'](_0x1922af['end'])),_0x1922af))['filter'](_0x68a3c6=>'$graveyard'!==_0x68a3c6['root']['rootName']);if(_0x463229['length']<0x1)return;const _0x24b8af=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x11d86a=>_0x34ca76['fromRange'](_0x11d86a));_0xd9ac72['setSelection'](_0x463229);for(const _0x40cf56 of this['_editor']['commands']['commands']())_0x40cf56['refresh']();_0x49b6d2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1bfe85,..._0x49b6d2);const _0x44accd=_0x24b8af['filter'](_0x4d8321=>'$graveyard'!=_0x4d8321['root']['rootName']);_0x44accd['length']>0x0&&_0xd9ac72['setSelection'](_0x44accd);for(const _0x17676d of _0x24b8af)_0x17676d['detach']();});},_0x33884c=(_0x46d599,_0x3b1751)=>0x1==_0x46d599['length']&&0x1==_0x3b1751['length']&&_0x46d599[0x0]['end']['isEqual'](_0x3b1751[0x0]['start']),_0xd97133=(_0x405cd6,_0x1695c1,_0x2c9e18,_0x484d58)=>Wt(_0x405cd6,_0x1695c1,_0x2c9e18,_0x484d58)?[_0x405cd6,_0x1695c1]:Wt(_0x1695c1,_0x405cd6,_0x484d58,_0x2c9e18)?[_0x1695c1,_0x405cd6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x11120b),this['_defaultCallbacks']['set']('insertion:discard',_0x1b7f26),this['_defaultCallbacks']['set']('insertion:join',_0x33884c),this['_defaultCallbacks']['set']('insertion:chain',_0xd97133),this['_defaultCallbacks']['set']('deletion:accept',_0x1b7f26),this['_defaultCallbacks']['set']('deletion:discard',_0x11120b),this['_defaultCallbacks']['set']('deletion:join',_0x33884c),this['_defaultCallbacks']['set']('deletion:chain',_0xd97133),this['_defaultCallbacks']['set']('formatInline:accept',_0x2ebc24),this['_defaultCallbacks']['set']('formatInline:discard',_0x11120b),this['_defaultCallbacks']['set']('formatInline:join',_0x33884c),this['_defaultCallbacks']['set']('formatInline:chain',_0x11120b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2ebc24),this['_defaultCallbacks']['set']('formatBlock:discard',_0x11120b),this['_defaultCallbacks']['set']('formatBlock:join',_0x33884c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x11120b),this['_defaultCallbacks']['set']('attribute:accept',_0x11120b),this['_defaultCallbacks']['set']('attribute:discard',(_0x313a6d,_0xa64c7)=>{if(!_0xa64c7)return;const _0x1b94ca=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x221648=>{if(_0xa64c7['key']==u)for(const _0x4ea033 of _0x313a6d){const _0x4e1750=_0x4ea033['start']['nodeAfter'],_0x3b6a06=_0xa64c7['oldValue'];_0x221648['rename'](_0x4e1750,_0x3b6a06);}else{if(_0x1b94ca['_isBlockAttribute'](_0xa64c7['key'])){for(const _0x3e6a44 of _0x313a6d)void 0x0!==_0xa64c7['oldValue']?_0x221648['setAttribute'](_0xa64c7['key'],_0xa64c7['oldValue'],_0x3e6a44['start']['nodeAfter']):_0x221648['removeAttribute'](_0xa64c7['key'],_0x3e6a44['start']['nodeAfter']);}else{for(const _0x33d81b of _0x313a6d)_0xa64c7['oldValue']?_0x221648['setAttribute'](_0xa64c7['key'],_0xa64c7['oldValue'],_0x33d81b):_0x221648['removeAttribute'](_0xa64c7['key'],_0x33d81b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x33884c);}}function Gt(_0x4ef3df,_0x18b822,_0x1617cf){for(const _0x35e622 of _0x18b822['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x35e622['root']==_0x35e622)return!0x1;if(!_0x1617cf['containsItem'](_0x35e622))return!0x1;if(_0x4ef3df['isObject'](_0x35e622)||_0x4ef3df['isLimit'](_0x35e622))return!0x0;}return!0x1;}function Lt(_0x4bec7b){return _0x4bec7b['end']['parent']==_0x4bec7b['start']['nodeAfter']&&_0x4bec7b['end']['isAtStart'];}function Jt(_0x8e3681,_0x4b711c,_0x3c082f,_0x275520){const _0xa5a15e=_0x73ceb9=>!_0x73ceb9['item']['is']('$textProxy')&&!_0x275520['isObject'](_0x73ceb9['item']),_0x22fb48=_0x8e3681['start']['getLastMatchingPosition'](_0xa5a15e),_0x1bde16=_0x8e3681['end']['getLastMatchingPosition'](_0xa5a15e,{'direction':'backward'});return(!_0x8e3681['start']['isEqual'](_0x22fb48)||!_0x8e3681['end']['isEqual'](_0x1bde16))&&(_0x22fb48['isBefore'](_0x1bde16)?_0x3c082f['updateMarker'](_0x4b711c,{'range':_0x3c082f['createRange'](_0x22fb48,_0x1bde16)}):_0x3c082f['removeMarker'](_0x4b711c),!0x0);}function Kt(_0x2ec05b){return _0x419ded(_0x2ec05b);}function Ht(_0x12bd54){const _0x54db9f=_0x12bd54['start']['nodeAfter'];return _0x54db9f&&_0x54db9f['is']('element');}function qt(_0x1b5afc,_0x3e2479){return null==_0x1b5afc['end']['nodeBefore']&&_0x1b5afc['end']['parent']==_0x1b5afc['start']['nodeAfter']?zt(_0x1b5afc['start']['nodeAfter'],_0x3e2479):_0x1b5afc;}function zt(_0x59733d,_0x196dd9){const _0x568336=_0x196dd9['schema']['isObject'](_0x59733d)||_0x196dd9['schema']['isSelectable'](_0x59733d);return _0x196dd9['createRange'](_0x196dd9['createPositionAt'](_0x59733d,'before'),_0x568336?_0x196dd9['createPositionAfter'](_0x59733d):_0x196dd9['createPositionAt'](_0x59733d,'end'));}function Wt(_0x3acee5,_0x5b1712,_0x5dfdb7,_0x5aea5e){return!!Qt(_0x3acee5,_0x5b1712)&&_0x5dfdb7['end']['isEqual'](_0x5aea5e['start']);}function Qt(_0x3e87c8,_0x5901cc){if(!_0x3e87c8['_isDataLoaded']||!_0x5901cc['_isDataLoaded'])return!0x1;const _0x5e2ae8=new Set(Object['keys'](_0x3e87c8['attributes'])),_0x409263=new Set(Object['keys'](_0x5901cc['attributes']));if(_0x5e2ae8['delete']('groupId'),_0x409263['delete']('groupId'),0x0==_0x5e2ae8['size']&&0x0==_0x409263['size'])return!0x0;if(_0x5e2ae8['size']!=_0x409263['size'])return!0x1;const _0x6a122b={..._0x3e87c8['attributes']},_0x1d8b86={..._0x5901cc['attributes']};return delete _0x6a122b['groupId'],delete _0x1d8b86['groupId'],JSON['stringify'](_0x6a122b)==JSON['stringify'](_0x1d8b86);}function Xt(_0x55318c,_0x31ed71){const _0x4252e4=Yt(_0x55318c['attributes']),_0x39c5d0=Yt(_0x31ed71);if(!_0x55318c['_isDataLoaded'])return!0x1;for(const _0x38d0a3 of Object['keys'](_0x39c5d0))if(!_0x8ce2d0(_0x4252e4[_0x38d0a3],_0x39c5d0[_0x38d0a3]))return!0x1;return!0x0;}function Yt(_0x3fc531){const _0x115551=Object['assign']({},_0x3fc531);return delete _0x115551['skipNestingCheck'],delete _0x115551['tablePasteChainId'],_0x115551;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3e790a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x476568,_0x386f36,_0x3457cd,_0x3c8323){super(),this['model']=_0x386f36,this['view']=_0x3457cd,this['commentThreadController']=_0x3c8323,this['_editor']=_0x476568,this['_acceptCommand']=_0x476568['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x476568['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x17c214,_0x5d8efb)=>_0x17c214||_0x5d8efb),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1aa9b5=>_0x1aa9b5&&this['_editor']['model']['canEditAt'](_0x386f36['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4f0a54=>_0x4f0a54&&this['_editor']['model']['canEditAt'](_0x386f36['getRanges']())),this['_pendingAction']=null,_0x3457cd['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3457cd,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3457cd,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3457cd,'change:isDirty',()=>{_0x3457cd['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x2274e1=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2274e1);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x4eff8d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x21e604,_0x4c2f2,_0x3dffea,_0xf1f871){super(_0x21e604),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x473e7c(_0x21e604,c(_0x21e604,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4c2f2['authoredAt']),this['bind']('authoredAt')['to'](_0x4c2f2),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x4c2f2,'authoredAt',this,'descriptionParts',(_0x13744b,_0x1aa486,_0x46ee00)=>{const _0x1422a0=_0x46ee00['map'](_0x1f3254=>ls(_0x1f3254['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x13744b-0x1,_0x4c2f2['author']['name'],_0x1aa486?_0xf1f871['formatDateTime'](_0x1aa486):'',new DOMParser()['parseFromString'](_0x1422a0,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1c7024(),this['focusTracker']=new _0x54fb7e(),this['keystrokes']=new _0x242ec4(),this['focusCycler']=new _0x15fc30({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4531a2=>_0x4531a2['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4c2f2,this['_localUser']=_0x3dffea,this['_config']=_0xf1f871,_0xf1f871['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3a8cc9(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x28e077}=this['_config'];this['commentsListView']=new _0x28e077(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x244041=>_0x244041+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x263fca,_0x52ad8d)=>_0x263fca||!!_0x52ad8d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x45ca82}=this['_config'],_0xfaaebd=new _0x45ca82(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4251bb=_0xfaaebd['commentInputView'];return _0xfaaebd['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4251bb,'value',(_0xfd4cc8,_0x4892f4,_0x3bb1a0)=>!!_0x3bb1a0||_0xfd4cc8&&!_0x4892f4),_0x4251bb['on']('submit',(_0xb78896,_0x31a4b6)=>{this['fire']('addComment',_0x31a4b6),_0x4251bb['editor']['setData']('');}),_0x4251bb['on']('cancel',()=>this['focus']()),_0x4251bb['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xfaaebd;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x2c137a,_0x2d212d,_0xac515c,_0x4d19f8){super(_0x2c137a,_0x2d212d,_0xac515c,_0x4d19f8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x38bde1=>_0x38bde1&&_0x38bde1[0x0]?_0x38bde1[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x57a85b,_0x147cfe)=>{let _0x33da97='';for(const _0x539a85 of _0x57a85b)_0x33da97+='<p>'+ls(_0x539a85['content'],_0x539a85['color'])+'</p>';return _0x147cfe?_0x33da97:ti(_0x33da97,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4d19f8['SuggestionView'](_0x2c137a,_0x2d212d,{'formatDateTime':_0x4d19f8['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x12c552=this['bindTemplate'],_0x1bab89=[this['suggestionView']];return this['commentsListView']&&_0x1bab89['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1bab89['push'](this['commentThreadInputView']),_0x1bab89['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x12c552['if']('isActive','ck-suggestion-wrapper--active'),_0x12c552['to']('type',_0x4526f1=>'ck-suggestion-'+_0x4526f1),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x12c552['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1bab89};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x4eff8d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xf3923a,_0x2b91e7,_0x1a825b){super(_0xf3923a),this['_model']=_0x2b91e7,this['_config']=_0x1a825b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2b91e7),this['acceptButton']=this['_createButton'](c(_0xf3923a,'Accept\x20suggestion'),_0x13fbe8,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0xf3923a,'Discard\x20suggestion'),_0x4f5a20,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5604b1(_0xf3923a,_0x2b91e7['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1c7024([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x54fb7e(),this['keystrokes']=new _0x242ec4(),this['focusCycler']=new _0x15fc30({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3c41dc=>_0x3c41dc['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1f2d07=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1f2d07['innerHTML']=this['description'],this['on']('change:description',(_0x16cb9f,_0x2686e0,_0x1d4409)=>{_0x1f2d07['innerHTML']=_0x1d4409;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xb23cba=this['bindTemplate'],_0x40f52e=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0xb23cba['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xb23cba['to']('authoredAt',_0x522a79=>this['_config']['formatDateTime'](_0x522a79))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x40f52e['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x40f52e}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x48b564,_0x2a9ab8,_0x5a276d,_0x9a2fe,_0x55d29c){const _0x89fd63=new _0x590555(this['locale']);return _0x89fd63['set']({'label':_0x48b564,'icon':_0x2a9ab8,'tooltip':!0x0,'tooltipPosition':_0x55d29c}),_0x89fd63['extendTemplate']({'attributes':{'class':_0x5a276d}}),_0x89fd63['on']('execute',()=>{this['fire'](_0x9a2fe,this['_model']['id']);}),_0x89fd63;}['_setupKeyboardNavigation'](){const _0x4a51b0=this['element'];this['keystrokes']['listenTo'](_0x4a51b0);for(const _0x36a647 of this['focusables'])this['focusTracker']['add'](_0x36a647['element']),this['keystrokes']['listenTo'](_0x36a647['element']);this['keystrokes']['set']('enter',(_0x45b566,_0x419442)=>{_0x4a51b0===_0x45b566['target']&&(this['focusCycler']['focusFirst'](),_0x419442());}),this['keystrokes']['set']('esc',(_0x52f785,_0x3ae4e6)=>{_0x4a51b0!==_0x52f785['target']&&(this['focus'](),_0x3ae4e6());});}}class d extends _0x3953b7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x58f2c4,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x80302b){super(_0x80302b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x912c52=this['editor']['config'];_0x912c52['define']('trackChanges.SuggestionThreadView',fe),_0x912c52['define']('trackChanges.SuggestionView',we),_0x912c52['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x912c52['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2ee424,_0x4afb34){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x443c48,_0x230fa5]of this['_handleControllerBuffer']){const _0x4aae7b=this['_suggestionToController']['has'](_0x443c48);_0x4aae7b||_0x230fa5?_0x4aae7b&&_0x230fa5&&this['_destroyController'](_0x443c48):this['_initializeController'](_0x443c48);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2ee424,_0x4afb34);}['init'](){const _0x1b91f4=this['editor'],_0x569d7e=_0x1b91f4['plugins']['get']('TrackChangesEditing'),_0x4bb404=_0x1b91f4['plugins']['get']('Annotations'),_0x5099c3=_0x1b91f4['plugins']['get']('EditorAnnotations'),_0x21d2a0=_0x1b91f4['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5099c3['addSourceCollector'](()=>{const _0x3ab2a6=[];for(const [_0x9243ff,_0x104842]of Array['from'](this['_suggestionToController'])){const _0xee1431=_0x9243ff['getAllAdjacentSuggestions'](),_0x59b66f=[];for(const _0x4d25d0 of _0xee1431){if(!_0x4d25d0['isInContent'])continue;if(_0x4d25d0['isMultiRange']){_0x59b66f['push'](..._0x4d25d0['getRanges']());continue;}const _0x4e0706=_0x4d25d0['getFirstRange']();if(_0x59b66f['length']>0x0){const _0x1be15a=_0x59b66f[0x0]['getJoined'](_0x4e0706);if(_0x1be15a){_0x59b66f[0x0]=_0x1be15a;continue;}}_0x59b66f['push'](_0x4e0706);}_0x3ab2a6['push']([_0x104842['view'],_0x59b66f]);}return _0x3ab2a6;}),this['listenTo'](_0x569d7e,'suggestionLoaded',(_0x680d2b,_0x556801)=>{this['listenTo'](_0x556801,'change:previous',(_0x56b1aa,_0x1c5a5d,_0x194cc9,_0x3ff352)=>{_0x556801['isInContent']&&(null==_0x194cc9?(this['_updateController'](_0x3ff352['head']),this['_handleSuggestionControllerDelayed'](_0x556801,!0x1)):(this['_updateController'](_0x194cc9['head']),null==_0x3ff352&&this['_handleSuggestionControllerDelayed'](_0x556801,!0x0)));}),null!==_0x556801['previous']?this['_updateController'](_0x556801['head']):this['_handleSuggestionControllerDelayed'](_0x556801,!0x1);}),this['listenTo'](_0x569d7e,'suggestionUnloaded',(_0x31f009,_0x3c497d,_0xe35c3a)=>{this['stopListening'](_0x3c497d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3c497d),this['_suggestionToController']['has'](_0x3c497d)&&this['_destroyController'](_0x3c497d),_0xe35c3a&&this['_updateController'](_0xe35c3a['head']);}),this['listenTo'](_0x569d7e,'suggestionChanged',(_0x2a0062,_0x4386b9)=>{this['_updateController'](_0x4386b9);}),this['listenTo'](_0x4bb404,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x21d2a0,'addComment',(_0x2fa284,{threadId:_0x595928,isFromAdapter:_0x2c63b6})=>{if(_0x2c63b6||!_0x569d7e['hasSuggestion'](_0x595928))return;const _0x1cf67f=_0x569d7e['getSuggestion'](_0x595928);this['_suggestionToController']['get'](_0x1cf67f)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x456be7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5c3d59;for(const _0x17c2d5 in _0x456be7){const _0x19a56b=_0x17c2d5,_0x52da2d=_0x456be7[_0x19a56b];if('trackChangesLicenseKeyValid'==_0x52da2d||'trackChangesLicenseKeyInvalid'==_0x52da2d||'trackChangesLicenseKeyExpired'==_0x52da2d||'trackChangesLicenseKeyDomainLimit'==_0x52da2d||'trackChangesLicenseKeyNotAllowed'==_0x52da2d||'trackChangesLicenseKeyEvaluationLimit'==_0x52da2d||'trackChangesLicenseKeyTrialLimit'==_0x52da2d||'trackChangesLicenseKeyUsageLimit'==_0x52da2d){delete _0x456be7[_0x19a56b],_0x5c3d59=_0x52da2d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5c3d59&&_0x456be7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5c3d59&&_0x456be7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5c3d59&&_0x456be7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5c3d59&&_0x456be7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5c3d59&&_0x456be7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5c3d59&&_0x456be7['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5c3d59&&_0x456be7['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x3eff9a=this['editor']['plugins']['get']('Annotations'),_0x1cdbed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e3930=Array['from'](_0x3eff9a['activeAnnotations'],_0x1d770f=>_0x1d770f['innerView'])['filter'](_0x36ee71=>this['_viewToController']['has'](_0x36ee71)),_0xde1bc=[];for(const _0x486dd9 of _0x3e3930){const _0x166d28=this['_viewToController']['get'](_0x486dd9)['model']['getAllAdjacentSuggestions']();_0xde1bc['push'](..._0x166d28['reduce']((_0x43fdae,_0x426a12)=>[..._0x43fdae,..._0x426a12['getMarkerNames']()],[]));}_0x1cdbed['activeMarkers']=_0xde1bc;}['_addUIComponentsToFactory'](){const _0x1ae4be=this['editor'],_0x78699e=_0x1ae4be['locale'],_0x4bd9ff=c(_0x78699e,'Track\x20changes'),_0xede360=new _0x39c9e2([{'type':'switchbutton','model':new _0xbf88d3({'withText':!0x0,'isToggleable':!0x0,'label':_0x4bd9ff,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xbf88d3({'withText':!0x0,'label':c(_0x78699e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xbf88d3({'withText':!0x0,'label':c(_0x78699e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xbf88d3({'withText':!0x0,'label':c(_0x78699e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xbf88d3({'withText':!0x0,'label':c(_0x78699e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1ae4be['plugins']['has']('TrackChangesPreview')&&_0xede360['addMany']([{'type':'separator'},{'type':'button','model':new _0xbf88d3({'withText':!0x0,'label':c(_0x78699e,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x157272 of _0xede360)if(ke(_0x157272)){const _0x3229d2=_0x1ae4be['commands']['get'](_0x157272['model']['commandName']);_0x157272['model']['bind']('isOn','isEnabled')['to'](_0x3229d2,'value','isEnabled');}_0x1ae4be['ui']['componentFactory']['add']('trackChanges',_0x46d7ad=>this['_createToolbarButton'](_0x46d7ad,_0xede360,_0x4bd9ff)),_0x1ae4be['ui']['componentFactory']['add']('menuBar:trackChanges',_0x682c60=>this['_createMenuBarMenu'](_0x682c60,_0xede360,_0x4bd9ff));}['_createToolbarButton'](_0x34dc90,_0x3a2a34,_0x3d3ddc){const _0xf70599=_0x5e9696(_0x34dc90,_0x881f8),_0x40eb76=this['editor']['commands']['get']('trackChanges');_0xf70599['buttonView']['set']({'tooltip':_0x3d3ddc,'label':_0x3d3ddc,'icon':_0x149199}),_0xf70599['buttonView']['bind']('isOn')['to'](_0x40eb76,'value'),_0xf70599['buttonView']['on']('execute',()=>{_0x40eb76['execute'](),this['editor']['editing']['view']['focus']();}),_0x2e601e(_0xf70599,_0x3a2a34,{'role':'menu'});const _0x1be56d=[];for(const _0x487b2a of _0x3a2a34)ke(_0x487b2a)&&_0x1be56d['push'](this['editor']['commands']['get'](_0x487b2a['model']['commandName']));const _0x5d1329=_0xf70599['buttonView'];return _0x5d1329['actionView']['unbind']('isEnabled'),_0x5d1329['arrowView']['unbind']('isEnabled'),_0x5d1329['actionView']['bind']('isEnabled')['to'](_0x40eb76,'isEnabled'),_0x5d1329['arrowView']['bind']('isEnabled')['toMany'](_0x1be56d,'isEnabled',(..._0x550771)=>_0x550771['some'](_0x343798=>_0x343798)),_0xf70599['on']('execute',_0x4ea9fc=>{this['editor']['execute'](_0x4ea9fc['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xf70599;}['_createMenuBarMenu'](_0x38431d,_0x14f721,_0x2654f8){const _0x45e546=new _0x262cec(_0x38431d),_0x2fc7cb=this['editor']['commands']['get']('trackChanges');_0x45e546['buttonView']['set']({'label':_0x2654f8,'icon':_0x149199});const _0x152420=new _0x54e796(_0x38431d);for(const _0x3c5eae of _0x14f721){if('separator'==_0x3c5eae['type']){_0x152420['items']['add'](new _0x8cf7a6(_0x38431d));continue;}const _0x656d25=new _0x289202(_0x38431d,_0x45e546),_0x50603d=new _0xcb61eb(_0x38431d),_0x2d0585=_0x3c5eae['model'];_0x50603d['bind'](...Object['keys'](_0x2d0585))['to'](_0x2d0585),_0x50603d['delegate']('execute')['to'](_0x45e546),_0x50603d['on']('execute',()=>{this['editor']['execute'](_0x2d0585['commandName']),this['editor']['editing']['view']['focus']();}),_0x656d25['children']['add'](_0x50603d),_0x152420['items']['add'](_0x656d25);}return _0x45e546['bind']('isEnabled')['to'](_0x2fc7cb,'isEnabled'),_0x45e546['panelView']['children']['add'](_0x152420),_0x45e546;}['_initializeController'](_0x4d474c){const _0x3130af=this['editor'],_0x3acaca=_0x3130af['config'],_0x1f52e6=_0x3130af['plugins']['get']('Annotations'),_0x408f56=_0x3130af['plugins']['get']('CommentsRepository'),_0x235246=_0x3130af['plugins']['get']('EditorAnnotations'),_0x104b71=_0x3130af['plugins']['get'](_0x58f2c4)['me'],_0x5e692d=_0x3acaca['get']('trackChanges')['SuggestionThreadView'],_0x15819c=_0x3acaca['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x598ccb,CommentThreadInputView:_0x1a81fe}=_0x3130af['plugins']['get']('CommentsUI');let _0xcf6d58,_0x382963,_0x435a6f;this['_annotationViews']['has'](_0x4d474c['id'])?(_0x382963=this['_annotationViews']['get'](_0x4d474c['id']),_0xcf6d58=_0x382963['mainView']):(_0xcf6d58=new _0x5e692d(_0x3130af['locale'],_0x4d474c,_0x104b71,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3acaca['get']('comments.editorConfig'),'licenseKey':_0x3acaca['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3acaca['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3acaca['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3acaca['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x25d804(_0x3acaca['get']('locale'),_0x3130af['locale']),'CommentView':_0x3acaca['get']('comments')['CommentView'],'CommentsListView':_0x598ccb,'CommentThreadInputView':_0x1a81fe,'SuggestionView':_0x15819c}),_0xcf6d58['suggestionView']['acceptButton']['on']('execute',()=>{_0x3130af['editing']['view']['focus']();}),_0xcf6d58['suggestionView']['discardButton']['on']('execute',()=>{_0x3130af['editing']['view']['focus']();}),_0x382963=_0x1f52e6['createAnnotationView'](this['editor']['locale'],_0xcf6d58),_0x382963['bind']('isDirty')['to'](_0xcf6d58,'isDirty'),_0x382963['bind']('length')['to'](_0xcf6d58),_0x382963['bind']('type')['to'](_0xcf6d58,'type',_0x5559f6=>'suggestion-'+_0x5559f6),_0xcf6d58['on']('escape',()=>{_0x435a6f['fire']('escape');}),this['_annotationViews']['set'](_0x4d474c['id'],_0x382963));const _0x5de0fd=_0x408f56['createCommentThreadController'](_0x4d474c['commentThread'],_0xcf6d58),_0x2194e3=new pe(_0x3130af,_0x4d474c,_0xcf6d58,_0x5de0fd),_0x20c371=_0x4d474c['getAllAdjacentSuggestions']()['filter'](_0x5affc0=>_0x5affc0['isInContent']);_0xcf6d58['descriptionParts']=_0x3130af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x20c371),this['_suggestionToController']['set'](_0x4d474c,_0x2194e3),this['_viewToController']['set'](_0xcf6d58,_0x2194e3),_0x435a6f=_0x1f52e6['createAnnotation']({'view':_0x382963,'target':()=>{const _0x5750d4=[],_0x3bfa67=_0x4d474c['getAllAdjacentSuggestions']()['filter'](_0x529620=>_0x529620['isInContent']);for(const _0x5e65dd of _0x3bfa67)_0x5750d4['push'](..._0x5e65dd['getMarkers']());return _0x52d4fd(_0x3130af['editing'],_0x5750d4);},'type':()=>'suggestion-'+_0x2194e3['view']['type']}),_0x408f56['_bindAnnotationToEditors'](_0xcf6d58,_0x435a6f),_0x1f52e6['add'](_0x435a6f),_0x235246['registerAnnotation'](_0x435a6f);}['_destroyController'](_0x231841){const _0x4f1ac2=this['editor']['plugins']['get']('CommentsRepository'),_0x44ce04=this['editor']['plugins']['get']('Annotations'),_0x4e63cb=this['_suggestionToController']['get'](_0x231841),_0x4f89fb=_0x4e63cb['view'],_0x510144=_0x44ce04['getByInnerView'](_0x4f89fb);_0x4f1ac2['_unbindEditors'](_0x4f89fb),_0x510144&&_0x44ce04['remove'](_0x510144),this['_suggestionToController']['delete'](_0x231841),this['_viewToController']['delete'](_0x4f89fb),_0x4e63cb['destroy']();}['_updateController'](_0x1c06eb){if(!_0x1c06eb['isInContent']||!this['_suggestionToController']['has'](_0x1c06eb))return;const _0x354681=this['editor']['plugins']['get']('TrackChangesEditing'),_0x293a63=this['_suggestionToController']['get'](_0x1c06eb),_0x45d991=_0x1c06eb['getAllAdjacentSuggestions']();_0x293a63['view']['descriptionParts']=_0x354681['descriptionFactory']['getDescriptions'](_0x45d991);}['destroy'](){for(const _0x203885 of this['_suggestionToController']['keys']())this['_destroyController'](_0x203885);for(const _0xbe0d6f of this['_annotationViews']['values']())_0xbe0d6f['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x868b2f){return'model'in _0x868b2f;}class k extends _0x3953b7{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x213a6d){this['editor']['plugins']['get'](p)['adapter']=_0x213a6d;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2cb2ef){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2cb2ef);}['getSuggestions']({skipNotAttached:_0x3a14e3=!0x1,toJSON:_0x4f6b68=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3a14e3,'toJSON':_0x4f6b68});}['getSuggestion'](_0x114f44){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x114f44);}}const w=['Pagination'];class T extends _0x3953b7{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x43138=this['editor'];if(_0x43138['config']['define']('trackChangesData.editorCreator',_0x21100a=>{const _0x54a068=_0x43138['model']['document']['getRootNames']()['reduce']((_0x5856d0,_0x330200)=>(_0x5856d0[_0x330200]='',_0x5856d0),{});return _0x43138['constructor']['create'](_0x54a068,_0x21100a);}),'function'!=typeof _0x43138['config']['get']('trackChangesData')['editorCreator'])throw new _0x445a81('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4bb5a7){return N(this['editor'],!0x0,_0x4bb5a7);}['getDataWithDiscardedSuggestions'](_0x2a4371){return N(this['editor'],!0x1,_0x2a4371);}}class D extends _0x3953b7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10cf8a){function _0x4453aa(_0x2c727d){return _0x2c727d['map'](_0x697600=>String['fromCharCode'](_0x697600))['join']('');}super(_0x10cf8a),this['result']='end',_0x10cf8a[_0x4453aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4453aa([0x76,0x69,0x65,0x77])][_0x4453aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4453aa([0x61,0x75,0x74,0x6f]),_0x10cf8a[_0x4453aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4453aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4453aa([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4453aa([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4453aa([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0x458440){return void 0x0!==_0x458440['getRootsAttributes'];}async function N(_0x5ca952,_0x1bdeff,_0x2ce29e){const _0x56b316=_0x3ba5cf(_0x5ca952,w);_0x56b316['plugins']['push'](p,D),_0x56b316['rootsAttributes']=Ge(_0x5ca952)?_0x5ca952['getRootsAttributes']():void 0x0;const _0x11c04f=document['createDocumentFragment'](),_0x4cc917=_0x5ca952['config']['get']('trackChangesData')['editorCreator'],_0x9ceb65=await _0x4cc917(_0x56b316,()=>function(_0x47973e){const _0x4ae9ca=document['createElement']('div');return _0x47973e['appendChild'](_0x4ae9ca),_0x4ae9ca;}(_0x11c04f));!function(_0x5cc72e,_0x2e582a){const _0x2ab9aa=_0x5cc72e['model']['document']['getRootNames']()['reduce']((_0x49739e,_0x34a1a3)=>(_0x49739e[_0x34a1a3]=_0x5cc72e['data']['get']({'rootName':_0x34a1a3}),_0x49739e),{}),_0x300d5c=_0x5cc72e['plugins']['get']('Users')['users']['map'](_0x4ff85e=>({'id':_0x4ff85e['id'],'name':_0x4ff85e['name']})),_0x3eac04=_0x5cc72e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c33c8=_0x5cc72e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5b4d28=_0x2e582a['plugins']['get']('Users'),_0x34c020=_0x2e582a['plugins']['get']('TrackChangesEditing'),_0x4c2177=_0x2e582a['plugins']['get']('CommentsRepository');for(const _0xe354 of _0x4c2177['getCommentThreads']())_0xe354['remove']();for(const _0x11a8fb of _0x300d5c)_0x5b4d28['getUser'](_0x11a8fb['id'])||_0x5b4d28['addUser'](_0x11a8fb);_0x5b4d28['me']||_0x5b4d28['useAnonymousUser']();for(const _0x550944 of _0x5c33c8)_0x4c2177['addCommentThread'](_0x550944);for(const _0x4c3dc6 of _0x3eac04)_0x34c020['addSuggestionData'](_0x4c3dc6);_0x2e582a['data']['set'](_0x2ab9aa);}(_0x5ca952,_0x9ceb65),_0x9ceb65['execute'](_0x1bdeff?'acceptAllSuggestions':'discardAllSuggestions');const _0x1a547d=Ge(_0x9ceb65)?_0x9ceb65['getFullData'](_0x2ce29e):_0x9ceb65['data']['get'](_0x2ce29e);return await _0x9ceb65['destroy'](),_0x1a547d;}class Me extends _0x4eff8d{['options'];constructor(_0x5e0aee,_0x14b5aa){super(_0x5e0aee),this['options']=_0x14b5aa,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0xf98a80,_0x4e0048){if(!this['element'])return;const _0x2b4125=[];for(const [_0x21c128,_0x33d097]of _0xf98a80){const _0xb201ce=document['createElement']('div');_0xb201ce['setAttribute']('data-ck-root-name',_0x21c128),_0xb201ce['className']=_0x33d097['classes']+'\x20ck-track-changes-preview__root-container',_0xb201ce['innerHTML']=_0x33d097['content'],_0x2b4125['push'](_0xb201ce);}_0x4e0048(this['element'],_0x2b4125),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0xb8ee90{constructor(_0x85f450){super(_0x85f450),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3db9b7=this['editor'],_0x5394a2=_0x3db9b7['locale'],_0x3703e2=_0x3db9b7['plugins']['get']('Dialog');let _0x508b60;const _0xbb4dbc=function(_0x452363){const _0x3b0c8e={};if('editables'in _0x452363['ui']['view']){for(const [_0x4f0c9e,_0x1b6425]of Object['entries'](_0x452363['ui']['view']['editables']))_0x3b0c8e[_0x4f0c9e]=_0x1b6425['element'];}else _0x3b0c8e[_0x452363['model']['document']['getRootNames']()[0x0]]=_0x452363['ui']['view']['editable']['element'];return _0x3b0c8e;}(_0x3db9b7),_0x266164=function(_0x358b96){let _0x151bda=0x0;for(const _0x3a24aa of Object['values'](_0x358b96))_0x151bda=Math['max'](_0x151bda,_0x3a24aa['getBoundingClientRect']()['width']);let _0x390e61=0x0;for(const _0x243653 of Object['values'](_0x358b96))_0x390e61+=_0x243653['getBoundingClientRect']()['height'];const _0x2a1cb5=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x16d578=Math['min'](_0x390e61,_0x2a1cb5);return{'width':_0x151bda,'height':_0x16d578};}(_0xbb4dbc);_0x3703e2['show']({'id':'finalContentPreview','title':c(_0x5394a2,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5394a2,{'dialogRects':_0x266164}),'onHide':()=>{_0x508b60['detachFromDom']();},'onShow':()=>{_0x3db9b7['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x31f003=>{const _0x44a40d=this['_standarizeRootsData'](_0x31f003,_0x3db9b7,_0xbb4dbc);_0x3703e2['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x44a40d,_0x3db9b7['config']['get']('trackChanges.preview.renderFunction'));}),_0x508b60=new _0x27f01f(_0x5394a2,[_0x3703e2['view']]),_0x508b60['attachToDom'](),_0x508b60['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3db9b7['once']('destroy',()=>{_0x508b60['detachFromDom']();});const _0x5b863d=_0x3703e2['view']['headerView']['class'];_0x3703e2['view']['headerView']['class']=_0x5b863d?_0x5b863d+'\x20ck-reset_all':'ck-reset_all',_0x3703e2['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3703e2['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3335e7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x7b259d=_0x3335e7['previewMode'],_0x14f7f9={};if('$labels'===_0x7b259d){for(const _0x239b73 of _0x3335e7['getMergeFieldsIds']())_0x14f7f9[_0x239b73]=_0x3335e7['getLabel'](_0x239b73)||_0x239b73;}else{const _0x590781='$defaultValues'===_0x7b259d?_0x3335e7['getDefaultValues']():_0x3335e7['getDataSetValues'](_0x7b259d,!0x0);for(const _0x1f113d of Object['entries'](_0x590781)){const [_0x555161,_0x270ab1]=_0x1f113d;_0x14f7f9[_0x555161]=null!==_0x270ab1?_0x270ab1:_0x3335e7['getLabel'](_0x555161)||_0x555161;}}return{'mergeFieldsData':_0x14f7f9};}['_standarizeRootsData'](_0x2d226f,_0x111b1f,_0xe14a75){let _0x5c9d82;if('string'==typeof _0x2d226f){const _0x56da54=_0x111b1f['model']['document']['getRootNames']()[0x0];_0x5c9d82={[_0x56da54]:_0x2d226f};}else _0x5c9d82=_0x2d226f;const _0x4a083e=this['_fixMediaEmbeds'](_0x5c9d82,_0x111b1f),_0x4f530=function(_0x6f944b,_0x2686d1){for(const [_0x4bb052,_0x7c08f4]of _0x6f944b)_0x7c08f4['classes']=_0x2686d1[_0x4bb052]['classList']['value']['replace']('ck-focused','');return _0x6f944b;}(this['_sortRoots'](_0x111b1f)['reduce']((_0x3165d5,_0x532c59)=>(_0x3165d5['push']([_0x532c59,{'content':_0x4a083e[_0x532c59],'classes':''}]),_0x3165d5),[]),_0xe14a75);return _0x4f530;}['_fixMediaEmbeds'](_0xeed717,_0x1a65a0){if(!_0x1a65a0['plugins']['has']('MediaEmbedEditing'))return _0xeed717;const _0x12299d=_0x1a65a0['plugins']['get']('MediaEmbedEditing');for(const [_0x12f9a6,_0x1de5c3]of Object['entries'](_0xeed717)){const _0x54b9d5=document['createElement']('div');_0x54b9d5['innerHTML']=_0x1de5c3,(_0x54b9d5['querySelectorAll']('figure.media')['forEach'](_0x32c139=>{const _0x1098de=_0x32c139['querySelector']('oembed');if(_0x1098de){const _0x1dac3b=_0x1098de['getAttribute']('url');if(_0x1dac3b){const _0x1090f6=_0x12299d['registry']['getMediaViewElement'](new _0x4481d1(_0x1a65a0['editing']['view']['document']),_0x1dac3b,{'elementName':'','renderForEditingView':!0x0}),_0x11bcd9=document['createElement']('div');_0x11bcd9['classList']['add']('ck-media__wrapper'),_0x1090f6['render'](_0x11bcd9,_0x1a65a0['editing']['view']['domConverter']),_0x1098de['replaceWith'](_0x11bcd9);}}}),_0xeed717[_0x12f9a6]=_0x54b9d5['innerHTML']);}return _0xeed717;}['_sortRoots'](_0x19c85b){if(!function(_0x3f1698){return void 0x0!==_0x3f1698['getRootsAttributes'];}(_0x19c85b))return _0x19c85b['model']['document']['getRootNames']();const _0x2fe04f=[],_0x2c3585=new Map();for(const _0x9ac097 of _0x19c85b['model']['document']['getRootNames']()){const _0x213f8d=_0x19c85b['editing']['view']['getDomRoot'](_0x9ac097)['getClientRects']()['item'](0x0);_0x2fe04f['push'](_0x9ac097),_0x2c3585['set'](_0x9ac097,_0x213f8d);}return _0x2fe04f['sort']((_0x1fc302,_0x115282)=>{const _0x5e5d1e=_0x2c3585['get'](_0x1fc302),_0x5665e8=_0x2c3585['get'](_0x115282);return _0x5e5d1e['y']-_0x5665e8['y']||_0x5e5d1e['x']-_0x5665e8['x'];}),_0x2fe04f;}}class te extends _0x3953b7{static get['requires'](){return[T,_0x14c57e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2490af){super(_0x2490af),_0x2490af['commands']['add']('previewFinalContent',new re(this['editor'])),_0x2490af['config']['define']('trackChanges.preview.renderFunction',(_0x4e2353,_0x33f66d)=>{for(const _0x35f48e of _0x33f66d)_0x4e2353['appendChild'](_0x35f48e);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|