@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250705.0 → 0.0.0-nightly-20250707.0
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 +4 -4
- package/package.json +27 -27
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x3d1913(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x8a09aa,_0x5ef916){super(),this['id']=_0x5ef916['id'],this['type']=_0x5ef916['type'],this['subType']=_0x5ef916['subType']||null,this['author']=_0x5ef916['author'],this['creator']=_0x5ef916['creator']||_0x5ef916['author'],this['isExternal']=Boolean(_0x5ef916['attributes']&&_0x5ef916['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5ef916['originalSuggestionId']||null,this['_model']=_0x8a09aa,this['_onAccept']=_0x5ef916['onAccept'],this['_onDiscard']=_0x5ef916['onDiscard'],this['_onAttributesChange']=_0x5ef916['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5ef916['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 _0x212350=this;for(;_0x212350['previous'];)_0x212350=_0x212350['previous'];return _0x212350;}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'](_0x556ad1){this['_markerNames']['add'](_0x556ad1);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x319007=>this['_model']['markers']['get'](_0x319007))['filter'](_0x45f83e=>_0x45f83e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x545f93=>{for(const _0x1ca1e6 of this['getMarkers']())_0x545f93['removeMarker'](_0x1ca1e6);}),this['_markerNames']['clear']();}['removeMarker'](_0x27ed17){this['_model']['change'](_0x25c4e6=>{_0x25c4e6['removeMarker'](_0x27ed17);}),this['_markerNames']['delete'](_0x27ed17);}['addRange'](_0x301eac){const _0x4b509b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x4b509b),this['_model']['change'](_0x880f21=>{_0x880f21['addMarker'](_0x4b509b,{'range':_0x301eac,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2aaf03){for(const _0x5a312c of this['getRanges']())if(_0x5a312c['isIntersecting'](_0x2aaf03))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x34a9f1=>_0x34a9f1['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x384afd,_0x4c1c0a)=>[..._0x384afd,..._0x4c1c0a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2fcf4d=this['getRanges']();if(0x1!=_0x2fcf4d['length'])return null;const _0x4df925=_0x2fcf4d[0x0],_0x3f9086=_0x4df925['start']['nodeAfter'],_0x3ef28a=_0x4df925['end']['nodeBefore'];return _0x3f9086 instanceof _0x350e6d?_0x3f9086!=_0x3ef28a?null:_0x3f9086: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 _0x489d56=[];let _0x1355f9=this['head'];for(;_0x1355f9;)_0x489d56['push'](_0x1355f9),_0x1355f9=_0x1355f9['next'];return _0x489d56;}['setAttribute'](_0x5d7142,_0x3d0ba6){const _0xe5248d=_0x52757e(this['attributes']);_0x2d513c(_0xe5248d,_0x5d7142,_0x3d0ba6),_0x5d29ba(_0xe5248d,this['attributes'])||(this['attributes']=_0xe5248d,this['_onAttributesChange'](_0xe5248d));}['removeAttribute'](_0x29c053){const _0x251b24=_0x52757e(this['attributes']);_0x21088a(_0x251b24,_0x29c053),_0x5d29ba(_0x251b24,this['attributes'])||(this['attributes']=_0x251b24,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 _0xf49555()['substr'](0x1,0x5);}}function o(_0x225ebd,_0x57cf56,_0x3b2512){const _0x2328ca=_0x225ebd['t'],t=_0x225ebd['t'];switch(_0x57cf56){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',_0x3b2512);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3b2512);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3b2512);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3b2512);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3b2512);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',_0x3b2512);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3b2512);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',_0x3b2512);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3b2512);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3b2512);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3b2512);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3b2512);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3b2512);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3b2512);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3b2512);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3b2512);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3b2512);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3b2512);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3b2512);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3b2512);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3b2512);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3b2512);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3b2512);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3b2512);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3b2512);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'},_0x3b2512);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3b2512);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3b2512);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3b2512);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3b2512);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3b2512);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3b2512);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3b2512);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'},_0x3b2512);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3b2512);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3b2512);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3b2512);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3b2512);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'},_0x3b2512);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3b2512);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'},_0x3b2512);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});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'},_0x3b2512);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3b2512);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'},_0x3b2512);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3b2512);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'},_0x3b2512);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3b2512);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3b2512);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'},_0x3b2512);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3b2512);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 _0x2328ca({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3b2512);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2328ca({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3b2512);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3b2512);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'},_0x3b2512);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'},_0x3b2512);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'},_0x3b2512);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x57cf56;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x36df18,_0x571b0c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x36df18,this['_locale']=_0x571b0c;}['getDescriptions'](_0x26acd7){const _0x159c3d=[],_0x35fc2f=new Set(),_0x43f6ae=new Set();for(let _0x227f8c=0x0;_0x227f8c<_0x26acd7['length'];_0x227f8c++){const _0x456ef7=_0x26acd7[_0x227f8c];if(!_0x456ef7['isInContent'])continue;const _0x284c57=this['_handleCustomCallbackDescription'](_0x456ef7);if(_0x284c57){if(null!=_0x456ef7['subType']){if(_0x35fc2f['has'](_0x456ef7['subType']))continue;_0x35fc2f['add'](_0x456ef7['subType']);}_0x159c3d['push'](_0x284c57);}else{if('attribute'==_0x456ef7['type']){const _0xb54fc9=_0x456ef7['data']['key'];if(_0x43f6ae['has'](_0xb54fc9))continue;_0x43f6ae['add'](_0x456ef7['data']['key']),_0xb54fc9==m?this['_handleRenameSuggestionDescription'](_0x159c3d,_0x456ef7):this['_handleAttributeSuggestionDescription'](_0x159c3d,_0x456ef7);continue;}'insertion'!=_0x456ef7['type']&&'deletion'!=_0x456ef7['type']||this['_handleInsertRemoveSuggestionDescription'](_0x159c3d,_0x456ef7,_0x26acd7[_0x227f8c+0x1]);}}return this['_resolveDescriptionItems'](_0x159c3d);}['registerDescriptionCallback'](_0x2278d8){this['_customCallbacks']['push'](_0x2278d8);}['registerElementLabel'](_0x547af9,_0x453a20,_0xcae65c=_0x26fe75['normal']){'function'==typeof _0x547af9?_0xa489c4(this['_itemLabelsCallbacks'],{'matchingCallback':_0x547af9,'label':_0x453a20,'priority':_0xcae65c}):this['_itemLabels']['set'](_0x547af9,_0x453a20);}['registerAttributeLabel'](_0x177d4d,_0x21c5af){this['_attributeLabels']['set'](_0x177d4d,_0x21c5af);}['getItemLabel'](_0x289990,_0x4a6cc5=0x1){let _0x53cefa;for(const _0x2b2507 of this['_itemLabelsCallbacks'])if(_0x2b2507['matchingCallback'](_0x289990)){_0x53cefa=_0x2b2507['label'];break;}return _0x53cefa||(_0x53cefa=this['_itemLabels']['get'](_0x289990['name'])),_0x53cefa?_0x53cefa(_0x4a6cc5):0x1!==_0x4a6cc5?_0x4a6cc5+'\x20'+_0x289990['name']+'s':''+_0x289990['name'];}['_addDescriptionItems'](_0xb57f37,_0x4ffc3e){const _0x8d1424=_0x4ffc3e['getFirstRange']()['getWalker'](),_0x535a7a='insertion'==_0x4ffc3e['type']?'add':'remove';for(const _0x3a3132 of _0x8d1424){const _0x112360=_0x3a3132['item'],_0x5e69d5=_0xb57f37[_0xb57f37['length']-0x1];if(_0x112360['is']('$textProxy'))_0x5e69d5&&_0x5e69d5['type']['indexOf']('Container')>-0x1&&_0xb57f37['pop'](),_0x5e69d5&&'text'==_0x5e69d5['type']?_0x5e69d5[_0x535a7a]+=_0x112360['data']:_0xb57f37['push']({'type':'text','add':'add'==_0x535a7a?_0x112360['data']:'','remove':'remove'==_0x535a7a?_0x112360['data']:''});else{if(this['_schema']['isObject'](_0x112360)){const _0x1c50e6=_0x112360;if(_0x5e69d5&&_0x5e69d5['type']['indexOf']('Container')>-0x1&&_0xb57f37['pop'](),'elementEnd'==_0x3a3132['type'])continue;_0x5e69d5&&_0x5e69d5['type']==_0x535a7a+'Object'&&_0x5e69d5['element']['name']==_0x1c50e6['name']?_0x5e69d5['quantity']++:_0xb57f37['push']({'type':_0x535a7a+'Object','element':_0x1c50e6,'quantity':0x1}),_0x8d1424['skip'](_0x49570b=>!('elementEnd'==_0x49570b['type']&&_0x49570b['item']==_0x112360));}else{if(this['_schema']['checkChild'](_0x112360,'$text')||_0x112360['is']('element','softBreak')){const _0x4fa8c5=_0x112360;if('add'==_0x535a7a&&'elementStart'==_0x3a3132['type']||'remove'==_0x535a7a&&'elementEnd'==_0x3a3132['type'])continue;if(_0x5e69d5&&-0x1==_0x5e69d5['type']['indexOf']('Container')){'text'==_0x5e69d5['type']&&(_0x5e69d5[_0x535a7a]+='\x0a');continue;}let _0x16081e;if(_0x16081e='add'==_0x535a7a?_0x4fa8c5['nextSibling']&&!this['_schema']['isObject'](_0x4fa8c5['nextSibling'])?_0x4fa8c5['nextSibling']:null:_0x4fa8c5['previousSibling']&&!this['_schema']['isObject'](_0x4fa8c5['previousSibling'])?_0x4fa8c5['previousSibling']:null,_0x4fa8c5['isEmpty']||_0x16081e&&_0x16081e['isEmpty']){const _0x46709b=_0x16081e&&_0x16081e['isEmpty']?_0x16081e:_0x4fa8c5;_0x5e69d5&&_0x5e69d5['type']==_0x535a7a+'EmptyContainer'&&_0x5e69d5['element']['name']==_0x46709b['name']?_0x5e69d5['quantity']++:_0xb57f37['push']({'type':_0x535a7a+'EmptyContainer','element':_0x46709b,'quantity':0x1});}else _0xb57f37['push']({'type':_0x535a7a+'Container','element':_0x4fa8c5});}}}}}['_resolveDescriptionItems'](_0x8e2ab1){const _0x29842d=this['_locale'],_0x318ce2=[],_0x2fd8fa=[],_0x4cfd60=[];for(const _0x1f9b0e of _0x8e2ab1)switch(_0x1f9b0e['type']){case'text':if(_0x1f9b0e['add']=_0x1f9b0e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1f9b0e['remove']=_0x1f9b0e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1f9b0e['add']&&''!=_0x1f9b0e['remove']){_0x318ce2['push']({'type':'replace','content':o(_0x29842d,'REPLACE_TEXT',['\x22'+_0x1f9b0e['remove']+'\x22','\x22'+_0x1f9b0e['add']+'\x22'])});continue;}if(null!=_0x1f9b0e['add']['match'](/^ +$/)){_0x318ce2['push']({'type':'insertion','content':o(_0x29842d,'*Insert:*\x20%0',o(_0x29842d,'ELEMENT_SPACE',_0x1f9b0e['add']['length']))});continue;}if(null!=_0x1f9b0e['remove']['match'](/^ +$/)){_0x318ce2['push']({'type':'deletion','content':o(_0x29842d,'*Remove:*\x20%0',o(_0x29842d,'ELEMENT_SPACE',_0x1f9b0e['remove']['length']))});continue;}if(''!=_0x1f9b0e['add']){_0x318ce2['push']({'type':'insertion','content':o(_0x29842d,'*Insert:*\x20%0','\x22'+_0x1f9b0e['add']+'\x22')});continue;}_0x318ce2['push']({'type':'deletion','content':o(_0x29842d,'*Remove:*\x20%0','\x22'+_0x1f9b0e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x318ce2['push']({'type':'insertion','content':o(_0x29842d,'*Insert:*\x20%0',this['getItemLabel'](_0x1f9b0e['element'],_0x1f9b0e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x318ce2['push']({'type':'deletion','content':o(_0x29842d,'*Remove:*\x20%0',this['getItemLabel'](_0x1f9b0e['element'],_0x1f9b0e['quantity']))});continue;case'addContainer':_0x318ce2['push']({'type':'insertion','content':o(_0x29842d,'*Split:*\x20%0',this['getItemLabel'](_0x1f9b0e['element'],_0x1f9b0e['quantity']))});continue;case'removeContainer':_0x318ce2['push']({'type':'deletion','content':o(_0x29842d,'*Merge:*\x20%0',this['getItemLabel'](_0x1f9b0e['element'],_0x1f9b0e['quantity']))});continue;case'addFormat':_0x2fd8fa['push'](_0x1f9b0e['key']);continue;case'removeFormat':_0x4cfd60['push'](_0x1f9b0e['key']);continue;default:_0x318ce2['push'](_0x1f9b0e);}if(_0x2fd8fa['length']){const _0x30f887=_0x2fd8fa['map'](_0x2843bd=>this['_attributeLabels']['has'](_0x2843bd)?this['_attributeLabels']['get'](_0x2843bd):_0x2843bd)['join'](',\x20');_0x318ce2['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x30f887)});}if(_0x4cfd60['length']){const _0x3bf895=_0x4cfd60['map'](_0x4477d6=>this['_attributeLabels']['has'](_0x4477d6)?this['_attributeLabels']['get'](_0x4477d6):_0x4477d6)['join'](',\x20');_0x318ce2['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3bf895)});}return _0x318ce2;}['_handleCustomCallbackDescription'](_0x2fe528){for(const _0x5debfa of this['_customCallbacks']){const _0x403ed8=_0x5debfa(_0x2fe528);if(_0x403ed8&&'type'in _0x403ed8)return _0x403ed8;}}['_handleAttributeSuggestionDescription'](_0x4e43ab,_0x18a0a7){const _0x127068=_0x18a0a7['data'],_0x108844=void 0x0===_0x127068['newValue']?'removeFormat':'addFormat';_0x4e43ab['push']({'type':_0x108844,'key':_0x127068['key']});}['_handleRenameSuggestionDescription'](_0x3fabea,_0x3f02cd){_0x3fabea['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3f02cd['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3ce7b6,_0x20c33a,_0x11049d){if(this['_addDescriptionItems'](_0x3ce7b6,_0x20c33a),_0x11049d&&_0x11049d['getFirstRange']()&&!_0x20c33a['getFirstRange']()['end']['isEqual'](_0x11049d['getFirstRange']()['start'])){const _0x493be9=_0x3ce7b6[_0x3ce7b6['length']-0x1],_0xed78de='insertion'==_0x20c33a['type']?'add':'remove';_0x493be9&&'text'==_0x493be9['type']&&(_0x493be9[_0xed78de]+='\x0a');}}}class O extends _0x189d79{['afterInit'](){const _0x175363=this['editor'],_0x554ad6=_0x175363['plugins']['get']('TrackChangesEditing');_0x175363['commands']['get']('showAIAssistant')&&_0x554ad6['enableCommand']('showAIAssistant');}}class E extends _0x189d79{['afterInit'](){const _0x539bca=this['editor'],_0x2a2681=_0x539bca['locale'];if(!_0x539bca['plugins']['has']('AlignmentEditing'))return;const _0x57d93c=_0x539bca['plugins']['get']('TrackChangesEditing');_0x57d93c['enableDefaultAttributesIntegration']('alignment'),_0x57d93c['registerBlockAttribute']('alignment'),_0x57d93c['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2a2681,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bceed=this['editor'],_0x299450=_0x1bceed['locale'];_0x1bceed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x191a8c=>{if('formatBlock'!=_0x191a8c['type'])return;const {data:_0x41325c}=_0x191a8c;if(_0x41325c&&'alignment'==_0x41325c['commandName']){const _0x4be182=_0x41325c['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x299450,'*Format:*\x20%0',function(_0x4a6bb9){switch(_0x4a6bb9){case'left':return o(_0x299450,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x299450,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x299450,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x299450,'FORMAT_JUSTIFY_TEXT');}}(_0x4be182))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x189d79{['afterInit'](){const _0x33bf61=this['editor'],_0x51a478=_0x33bf61['plugins']['get']('TrackChangesEditing'),_0x441996=_0x33bf61['locale'];for(const _0x203211 of ti){if(!_0x33bf61['plugins']['has'](_0x203211))continue;const _0x47af84=_0x203211['slice'](0x0,-0x7)['toLowerCase'](),_0x1c740e='FORMAT_'+_0x47af84['toUpperCase']();_0x51a478['enableDefaultAttributesIntegration'](_0x47af84),_0x51a478['registerInlineAttribute'](_0x47af84),_0x51a478['descriptionFactory']['registerAttributeLabel'](_0x47af84,o(_0x441996,_0x1c740e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4dc52b=this['editor'],_0x2bc1d0=_0x4dc52b['locale'],_0x5dbdbd=_0x4dc52b['plugins']['get']('TrackChangesEditing');function _0x43bedb(_0x24d95d,_0x539d36){_0x5dbdbd['descriptionFactory']['registerDescriptionCallback'](_0x21982f=>{if('formatInline'!=_0x21982f['type'])return;const {data:_0x473446}=_0x21982f;return _0x473446&&_0x473446['commandName']===_0x24d95d?_0x473446['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2bc1d0,'*Format:*\x20%0',_0x539d36)}:{'type':'format','content':o(_0x2bc1d0,'*Remove\x20format:*\x20%0',_0x539d36)}:void 0x0;});}_0x43bedb('bold',o(_0x2bc1d0,'FORMAT_BOLD')),_0x43bedb('italic',o(_0x2bc1d0,'FORMAT_ITALIC')),_0x43bedb('underline',o(_0x2bc1d0,'FORMAT_UNDERLINE')),_0x43bedb('code',o(_0x2bc1d0,'FORMAT_CODE')),_0x43bedb('strikethrough',o(_0x2bc1d0,'FORMAT_STRIKETHROUGH')),_0x43bedb('subscript',o(_0x2bc1d0,'FORMAT_SUBSCRIPT')),_0x43bedb('superscript',o(_0x2bc1d0,'FORMAT_SUPERSCRIPT'));}}class U extends _0x189d79{['afterInit'](){const _0x32ef60=this['editor'],_0x506c65=_0x32ef60['locale'];if(!_0x32ef60['plugins']['has']('BlockQuoteEditing'))return;const _0x4e7dba=_0x32ef60['plugins']['get']('TrackChangesEditing'),_0x37042b=this['editor']['commands']['get']('blockQuote');_0x4e7dba['enableCommand']('blockQuote',(_0x2f9265,_0x15e131={})=>{const _0x21fb49=this['editor']['model']['document']['selection'],_0x4a170a=_0x15e131&&void 0x0!==_0x15e131['forceValue']?_0x15e131['forceValue']:!_0x37042b['value'];let _0x562670=[];if(_0x4a170a){const _0x13acd0=Array['from'](_0x21fb49['getSelectedBlocks']())['filter'](_0xa2aac=>oo(_0xa2aac)||function(_0xc6b2c8,_0x5d7f44){const _0x1ec647=_0x5d7f44['checkChild'](_0xc6b2c8['parent'],'blockQuote'),_0x57b291=_0x5d7f44['checkChild'](['$root','blockQuote'],_0xc6b2c8);return _0x1ec647&&_0x57b291;}(_0xa2aac,this['editor']['model']['schema']));_0x562670=to(_0x13acd0,_0x32ef60['model']);}else{const _0x5ec50a=Array['from'](_0x21fb49['getSelectedBlocks']())['filter'](_0x4b1032=>oo(_0x4b1032));_0x562670=to(_0x5ec50a,_0x32ef60['model']);}_0x32ef60['model']['change'](()=>{for(const _0x4d4860 of _0x562670)_0x4e7dba['markBlockFormat'](_0x4d4860,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4a170a}]});});}),_0x4e7dba['descriptionFactory']['registerDescriptionCallback'](_0x509f7a=>{const {data:_0xf15036}=_0x509f7a;if(_0xf15036&&'blockQuote'==_0xf15036['commandName']){const _0x216547=o(_0x506c65,'ELEMENT_BLOCK_QUOTE');return _0xf15036['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x506c65,'*Set\x20format:*\x20%0',_0x216547)}:{'type':'format','content':o(_0x506c65,'*Remove\x20format:*\x20%0',_0x216547)};}});}}function oo(_0x15e45d){return'blockQuote'==_0x15e45d['parent']['name'];}class V extends _0x189d79{['afterInit'](){const _0x5b963=this['editor'],_0x22929f=_0x5b963['locale'],_0x5e78bb=_0x5b963['plugins']['get']('TrackChangesEditing');_0x5b963['plugins']['has']('BookmarkEditing')&&(_0x5e78bb['enableCommand']('insertBookmark'),_0x5e78bb['enableDefaultAttributesIntegration']('updateBookmark'),_0x5e78bb['registerBlockAttribute']('bookmarkId'),_0x5e78bb['descriptionFactory']['registerDescriptionCallback'](_0x3fc1e4=>{if('insertion'!=_0x3fc1e4['type']&&'deletion'!=_0x3fc1e4['type']&&'attribute'!=_0x3fc1e4['type'])return;const _0x3a2957=_0x3fc1e4['getContainedElement']();if(null==_0x3a2957)return;if(!_0x3a2957['is']('element','bookmark'))return;const _0x2cb903=_0x3a2957['getAttribute']('bookmarkId');if('insertion'==_0x3fc1e4['type'])return{'type':'insertion','content':o(_0x22929f,'*Insert:*\x20%0','\x22'+_0x2cb903+'\x22\x20'+o(_0x22929f,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3fc1e4['type'])return{'type':'deletion','content':o(_0x22929f,'*Remove:*\x20%0','\x22'+_0x2cb903+'\x22\x20'+o(_0x22929f,'ELEMENT_BOOKMARK'))};const {data:_0x2a6592}=_0x3fc1e4;if(!_0x2a6592||'bookmarkId'!=_0x2a6592['key'])return;return{'type':'format','content':o(_0x22929f,'*Set\x20bookmark:*\x20%0','\x22'+_0x2a6592['newValue']+'\x22')};}));}}class F extends _0x189d79{['afterInit'](){const _0x448194=this['editor'];_0x448194['plugins']['has']('CaseChange')&&(_0x448194['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x448194['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x448194['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x189d79{['afterInit'](){const _0xad877c=this['editor'];_0xad877c['commands']['get']('ckbox')&&_0xad877c['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x189d79{['afterInit'](){const _0x693c85=this['editor'];if(!_0x693c85['plugins']['has']('CodeBlock'))return;const _0x4a2f2a=_0x693c85['plugins']['get']('TrackChangesEditing'),_0x30324d=_0x693c85['locale'],_0x1b4197=_0x693c85['config']['get']('codeBlock')['languages'],_0x517be2=_0x693c85['commands']['get']('codeBlock');_0x4a2f2a['enableCommand']('indentCodeBlock'),_0x4a2f2a['enableCommand']('outdentCodeBlock'),_0x4a2f2a['enableCommand']('codeBlock',(_0x1abdd4,_0x3e49e3={})=>{const _0x120aa3=_0x693c85['model'],_0xfc5286=_0x693c85['model']['document']['selection'],_0x35b399=_0x3e49e3&&void 0x0!==_0x3e49e3['forceValue']?_0x3e49e3['forceValue']:!_0x517be2['value'];let _0x4229ba;_0x3e49e3['language']||(_0x3e49e3['language']=_0x1b4197[0x0]['language']),_0x4229ba=_0x35b399?Array['from'](_0xfc5286['getSelectedBlocks']())['filter'](_0x475b85=>co(_0x475b85)||function(_0x419143,_0x5a3948){if(_0x419143['is']('rootElement')||_0x5a3948['isLimit'](_0x419143))return!0x1;return _0x5a3948['checkChild'](_0x419143['parent'],'codeBlock');}(_0x475b85,_0x120aa3['schema'])):Array['from'](_0xfc5286['getSelectedBlocks']())['filter'](_0x3e4960=>co(_0x3e4960));const _0x451b81=to(_0x4229ba,_0x120aa3);_0x120aa3['change'](()=>{for(const _0x52e35e of _0x451b81)_0x4a2f2a['markBlockFormat'](_0x52e35e,{'commandName':'codeBlock','commandParams':[{..._0x3e49e3,'forceValue':_0x35b399}],'formatGroupId':'blockName'});});}),(_0x4a2f2a['descriptionFactory']['registerElementLabel']('codeBlock',_0x541f1a=>o(_0x30324d,'ELEMENT_CODE_BLOCK',_0x541f1a)),_0x4a2f2a['descriptionFactory']['registerDescriptionCallback'](_0x16fa62=>{if('formatBlock'!=_0x16fa62['type'])return;const _0xafe33c=_0x30324d['t'],{data:_0x2ee0a2}=_0x16fa62;if(!_0x2ee0a2||'codeBlock'!=_0x2ee0a2['commandName'])return;const _0x524974=_0x2ee0a2['commandParams'][0x0]['language'],_0x4db782=_0xafe33c(_0x1b4197['find'](_0xa0e81d=>_0xa0e81d['language']===_0x524974)['label'])['toLowerCase']();return _0x2ee0a2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x30324d,'*Set\x20format:*\x20%0',o(_0x30324d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4db782+')')}:{'type':'format','content':o(_0x30324d,'*Remove\x20format:*\x20%0',o(_0x30324d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0xdcef85){return'codeBlock'==_0xdcef85['name'];}class J extends _0x189d79{['afterInit'](){const _0x5e3763=this['editor'];if(!_0x5e3763['plugins']['has']('CommentsEditing'))return;_0x5e3763['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x26be40,_0x353316,_0x578a13){const _0x431e5d=[];for(const _0x23ba1b of _0x353316['getItems']())_0x23ba1b['hasAttribute'](_0x26be40)&&_0x431e5d['push'](_0x578a13['createRangeOn'](_0x23ba1b));return _0x431e5d;}function De(_0x44129a,_0x46fb9c,{showActiveMarker:_0x433b57=!0x0}={}){const _0x173616=_0x44129a['plugins']['get']('TrackChangesEditing');return(_0x4e9db8,_0xa3716c,_0x57ba19)=>{if(!_0x57ba19['consumable']['test'](_0xa3716c['markerRange'],_0x4e9db8['name']))return;const _0x155bda=_0xa3716c['markerRange']['getWalker'](),_0x23e0fc=_0xa3716c['markerRange']['start'],_0x4bd1ba=_0x44129a['model']['schema'];let _0x54b5db=null,_0x340c7d=null,_0x355991=!0x1,_0x231ea5=!0x1;for(const _0x525504 of _0x155bda){const _0x56a906=_0x525504['item'];_0x355991=_0x355991||_0x4bd1ba['isContent'](_0x56a906);const _0x4eea91=_0x57ba19['mapper']['toViewElement'](_0x56a906);if(_0x4eea91&&_0x4eea91['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x525504['type']&&(_0x4bd1ba['isBlock'](_0x56a906)&&!_0x4bd1ba['isLimit'](_0x56a906)&&(_0x56a906['nextSibling']||_0x23e0fc['isAtEnd']?_0x54b5db&&_0x54b5db['parent']==_0x56a906||(_0x54b5db=_0x56a906,_0x5c419c(_0x525504['previousPosition']),_0x231ea5=!0x0):_0x340c7d=_0x340c7d||_0x525504['previousPosition']));}function _0x5c419c(_0x5bd425){const {id:_0x459d17,authorId:_0x35b3b5}=_0x173616['_splitMarkerName'](_0xa3716c['markerName']),_0x395a89=_0x57ba19['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x46fb9c,'data-suggestion':_0x459d17,'data-author-id':_0x35b3b5}),_0x28db26=_0x57ba19['mapper']['toViewPosition'](_0x5bd425);_0x433b57&&_0x173616['activeMarkers']['includes'](_0xa3716c['markerName'])&&_0x57ba19['writer']['addClass']('ck-suggestion-marker--active',_0x395a89),_0x57ba19['writer']['insert'](_0x28db26,_0x395a89),_0x57ba19['mapper']['bindElementToMarker'](_0x395a89,_0xa3716c['markerName']);}_0x355991||_0x231ea5||!_0x340c7d||_0x5c419c(_0x340c7d);};}class K extends _0x189d79{static get['requires'](){return[_0x1facd8];}['init'](){const _0x42fe29=this['editor'],_0xae8d1d=_0x42fe29['plugins']['get']('TrackChangesEditing');_0xae8d1d['enableCommand']('delete');const _0x3d0852=_0x42fe29['commands']['get']('deleteForward');_0xae8d1d['enableCommand']('deleteForward',(_0x8a1e31,_0x41535f={})=>{const _0x4ae0ba=_0x42fe29['model']['createSelection'](_0x42fe29['model']['document']['selection']);_0x4ae0ba['isCollapsed']&&_0x42fe29['model']['modifySelection'](_0x4ae0ba,{'direction':'forward','unit':_0x41535f['unit']});const _0xd365df=_0x4ae0ba['getFirstRange'](),_0x164fb2=_0x247134['fromRange'](_0xd365df);let _0x2bcf12;_0x8a1e31(_0x41535f),_0x2bcf12='$graveyard'==_0x164fb2['root']['rootName']?_0x42fe29['model']['createRange'](_0xd365df['start']):_0x42fe29['model']['createRange'](_0x164fb2['start'],_0x164fb2['end']),_0x164fb2['detach'](),_0x42fe29['model']['enqueueChange'](_0x3d0852['buffer']['batch'],_0x363e75=>{_0x3d0852['buffer']['lock'](),_0x363e75['setSelection'](_0x363e75['createRange'](_0x2bcf12['end'])),_0x3d0852['buffer']['unlock']();});}),_0x42fe29['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x42fe29,'merge'),{'priority':'high'}),_0x42fe29['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x40a31c,_0x4dc2eb,_0x365afb)=>{_0x365afb['options']['showSuggestionHighlights']&&De(_0x42fe29,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x40a31c,_0x4dc2eb,_0x365afb);},{'priority':'high'}),_0x42fe29['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x566cc9,_0x552b17,_0x410794)=>{const _0x448ed7=_0x410794['mapper']['markerNameToElements'](_0x552b17['markerName']);if(_0x448ed7){for(const _0x580f4a of _0x448ed7)_0x580f4a['is']('uiElement')&&(_0x410794['mapper']['unbindElementFromMarkerName'](_0x580f4a,_0x552b17['markerName']),_0x410794['writer']['remove'](_0x580f4a));}},{'priority':'high'});}}class H extends _0x189d79{['afterInit'](){const _0x18749b=this['editor'];if(!_0x18749b['plugins']['has']('ListEditing'))return;const _0x2eac3d=_0x18749b['locale'],_0x125d88=_0x18749b['plugins']['get']('TrackChangesEditing'),_0xc2e4b0=_0x18749b['plugins']['has']('TodoListEditing'),_0x978183=!!_0x18749b['config']['get']('list.multiBlock');function _0x2757f6(_0x2ed10b){return{'type':'format','content':''+o(_0x2eac3d,'*Set\x20format:*\x20%0',_0x2ed10b)};}function _0x17c2da(_0x4d800a){return{'type':'format','content':''+o(_0x2eac3d,'*Remove\x20format:*\x20%0',_0x4d800a)};}_0x125d88['enableDefaultAttributesIntegration']('numberedList'),_0x125d88['enableDefaultAttributesIntegration']('bulletedList'),_0x125d88['enableDefaultAttributesIntegration']('customNumberedList'),_0x125d88['enableDefaultAttributesIntegration']('customBulletedList'),_0x125d88['enableDefaultAttributesIntegration']('indentList'),_0x125d88['enableDefaultAttributesIntegration']('outdentList'),_0x125d88['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x125d88['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x125d88['registerBlockAttribute']('listItemId'),_0x125d88['registerBlockAttribute']('listType'),_0x125d88['registerBlockAttribute']('listIndent'),_0x978183&&(_0x125d88['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x125d88['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xc2e4b0&&(_0x125d88['enableDefaultAttributesIntegration']('todoList'),_0x125d88['enableDefaultAttributesIntegration']('checkTodoList'),_0x125d88['registerBlockAttribute']('todoListChecked'),_0x125d88['descriptionFactory']['registerDescriptionCallback'](_0x12ae52=>{const {data:_0x45a71e}=_0x12ae52;if(_0x45a71e&&'todoListChecked'==_0x45a71e['key'])return{'type':'format','content':_0x45a71e['newValue']?o(_0x2eac3d,'*Check\x20item*'):o(_0x2eac3d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x46f7ce=>{if(_0x46f7ce['batch']['isUndo'])return!0x1;let _0x272a91=!0x1;const _0x3a6b6c=_0x125d88['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3aa9cc=>'todoListChecked'===_0x125d88['_getAttributeKey'](_0x3aa9cc));for(const _0x49ad12 of _0x3a6b6c){'todo'!=_0x49ad12['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x125d88['_findSuggestions'](_0x49ad12['getFirstRange'](),'attribute')['find'](_0x461f5a=>'listType'===_0x125d88['_getAttributeKey'](_0x461f5a['suggestion']))||(_0x46f7ce['removeMarker'](_0x49ad12['getFirstMarker']()),_0x272a91=!0x0));}return _0x272a91;})),_0x125d88['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2eac3d,'FORMAT_INDENT'));const _0x27f8b0={'type':'format','content':''};_0x125d88['descriptionFactory']['registerDescriptionCallback'](_0x4668c4=>{const {data:_0x11056d}=_0x4668c4;if(!_0x11056d||'listType'!=_0x11056d['key'])return;let _0x5c84a0=_0x4668c4['head'];for(;_0x5c84a0;){if(_0x5c84a0['data']&&(('listStyle'==_0x5c84a0['data']['key']||'listMarkerStyle'==_0x5c84a0['data']['key'])&&(_0x5c84a0['data']['newValue']&&'default'!=_0x5c84a0['data']['newValue']||'default'!=_0x5c84a0['data']['oldValue']&&!_0x11056d['newValue'])||!_0x978183&&_0x5c84a0['data']['key']==m))return _0x27f8b0;_0x5c84a0=_0x5c84a0['next'];}if(null==_0x11056d['newValue'])switch(_0x11056d['oldValue']){case'bulleted':return _0x17c2da(o(_0x2eac3d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x17c2da(o(_0x2eac3d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x17c2da(o(_0x2eac3d,'ELEMENT_TODO_LIST'));}switch(_0x11056d['newValue']){case'bulleted':return _0x2757f6(o(_0x2eac3d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2757f6(o(_0x2eac3d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2757f6(o(_0x2eac3d,'ELEMENT_TODO_LIST'));}}),_0x125d88['descriptionFactory']['registerDescriptionCallback'](_0x1cef18=>{const {data:_0x2f3441}=_0x1cef18;if(_0x2f3441&&'listIndent'==_0x2f3441['key'])return null==_0x2f3441['newValue']||null==_0x2f3441['oldValue']&&0x0==_0x2f3441['newValue']?_0x27f8b0:void 0x0;}),_0x125d88['descriptionFactory']['registerDescriptionCallback'](_0x4c6a34=>{if('attribute'!=_0x4c6a34['type'])return;const {data:_0x593688}=_0x4c6a34;if(!_0x593688||'listItemId'!=_0x593688['key'])return;const _0x2b2ad0=Te(_0x4c6a34);return'newValue'==_0x2b2ad0?{'type':'format','content':o(_0x2eac3d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2b2ad0?{'type':'format','content':o(_0x2eac3d,'*Split:*\x20list\x20item')}:_0x27f8b0;}),_0x18749b['model']['document']['registerPostFixer'](_0x2ea56f=>this['listItemIdFixer'](_0x2ea56f)),_0x18749b['model']['document']['registerPostFixer'](_0x1fcbf4=>this['noTrackChangesFixer'](_0x1fcbf4)),_0x18749b['model']['document']['on']('change:data',(_0x22945d,_0x35dcea)=>{if(_0x35dcea['isUndo']||!_0x35dcea['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x40a041){if(_0x40a041['batch']['isUndo']||!_0x40a041['batch']['isLocal'])return!0x1;let _0x21cc29=!0x1;const _0x445ce0=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x392377=>_0x392377['data']&&'listItemId'==_0x392377['data']['key'])['filter'](_0x22b7a3=>_0x22b7a3['data']['newValue']&&_0x22b7a3['data']['oldValue']);for(const _0x5a4e72 of _0x445ce0)Te(_0x5a4e72)||(_0x40a041['removeMarker'](_0x5a4e72['getFirstMarker']()),_0x21cc29=!0x0);return _0x21cc29;}['noTrackChangesFixer'](_0x23005c){if(_0x23005c['batch']['isUndo']||!_0x23005c['batch']['isLocal'])return!0x1;const _0x8925f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x8925f['trackChangesCommand']['value'])return!0x1;let _0x2ecd82=!0x1;const _0x359b90=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x41986a=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x579584=>'attribute'==_0x579584['type'])['filter'](_0x2c567e=>_0x359b90['includes'](_0x2c567e['attributeKey']));if(0x0==_0x41986a['length'])return _0x2ecd82;for(const _0xf685ba of _0x41986a){const _0x347383=_0x8925f['_findSuggestions'](_0xf685ba['range'],'attribute')['filter'](_0x51aac7=>!_0x51aac7['meta']['isNextTo'])['map'](_0x1cd148=>_0x1cd148['suggestion'])['filter'](_0x454f90=>{const _0xd3cff2=_0x8925f['_getAttributeKey'](_0x454f90);return _0x359b90['includes'](_0xd3cff2);});if(_0x347383['length']){for(const _0x5a92c5 of _0x347383)_0x23005c['removeMarker'](_0x5a92c5['getFirstMarker']());_0x2ecd82=!0x0;}}return _0x2ecd82;}['assureChains'](){const _0x2c5ae8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x502ffb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x376bb3;const _0x1ca09e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x59d234=>{if(_0x59d234['data']['oldRange']||!_0x59d234['data']['newRange'])return null;if(!_0x59d234['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x364ced}=_0x2c5ae8['_splitMarkerName'](_0x59d234['name']);if(!_0x2c5ae8['hasSuggestion'](_0x364ced))return null;const _0xe7078=_0x2c5ae8['getSuggestion'](_0x364ced);return _0x502ffb['includes'](_0xe7078['data']['key']);})['map'](_0x34869e=>{const {id:_0x1bdd38}=_0x2c5ae8['_splitMarkerName'](_0x34869e['name']),_0x5e0ee0=_0x2c5ae8['getSuggestion'](_0x1bdd38);return _0x376bb3=_0x5e0ee0['attributes']['groupId'],_0x5e0ee0['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1ca09e['size'])return;const _0x307359=_0x2c5ae8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50f658=>'attribute'==_0x50f658['type']&&_0x50f658['data']&&_0x502ffb['includes'](_0x50f658['data']['key'])&&_0x50f658['attributes']['groupId']!=_0x376bb3)['map'](_0x44e255=>({'listItem':_0x44e255['getFirstRange']()['start']['nodeAfter'],'groupId':_0x44e255['attributes']['groupId']})),_0x2fce0d=new Set();for(const {groupId:_0x1d4e20,listItem:_0x202b43}of _0x307359)_0x1ca09e['has'](_0x202b43)&&_0x2fce0d['add'](_0x1d4e20);for(const _0x124296 of _0x2c5ae8['getSuggestions']())_0x2fce0d['has'](_0x124296['attributes']['groupId'])&&_0x124296['setAttribute']('groupId',_0x376bb3);}['_supportLegacySuggestions'](){const _0x507fd0=this['editor'],_0x4b93df=_0x507fd0['locale'],_0xaad8f9=_0x507fd0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xaad8f9['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4ae492,_0x4846af){const _0x4ebe7d=[];for(let _0x2c74ac of _0x4ae492)_0x2c74ac['start']['nodeAfter']===_0x2c74ac['end']['parent']&&(_0x2c74ac=_0x507fd0['model']['createRange'](_0x507fd0['model']['createPositionAt'](_0x2c74ac['start']['nodeAfter'],0x0))),_0x4ebe7d['push'](_0x2c74ac);_0x507fd0['model']['change'](_0x1af36c=>{const _0x20e9e0=_0x507fd0['model']['document']['selection'],_0x511728=Array['from'](_0x20e9e0['getRanges']())['map'](_0x360219=>_0x247134['fromRange'](_0x360219));_0x1af36c['setSelection'](_0x4ebe7d),_0x507fd0['commands']['get'](_0x4846af['commandName'])['refresh'](),_0x4846af['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x507fd0['execute'](_0x4846af['commandName'],..._0x4846af['commandParams']),_0x1af36c['setSelection'](_0x511728);for(const _0x527792 of _0x511728)_0x527792['detach']();});}),_0xaad8f9['descriptionFactory']['registerElementLabel'](function(_0x1ddb41){const _0x12d18a=!_0x507fd0['model']['schema']['isObject'](_0x1ddb41),_0xb4465c=_0x1ddb41['previousSibling'],_0x2bfc9e=_0x1ddb41['nextSibling'],_0x5cd7f7=_0x1ddb41['getAttribute']('listItemId'),_0x5db8c0=!_0xb4465c||_0xb4465c['getAttribute']('listItemId')!==_0x5cd7f7,_0x34de9a=!_0x2bfc9e||_0x2bfc9e['getAttribute']('listItemId')!==_0x5cd7f7;return _0x12d18a&&Boolean(_0x5cd7f7)&&_0x5db8c0&&_0x34de9a;},_0x59990c=>o(_0x4b93df,'ELEMENT_LIST_ITEM',_0x59990c));}['_registerLegacyDescription'](){const _0x1c5b58=this['editor'],_0x26e918=_0x1c5b58['locale'];function _0x4d8b4e(_0x53f98f){const _0x57b46d=_0x1c5b58['commands']['get']('bulletedList')['value'],_0xeac29a=_0x1c5b58['commands']['get']('numberedList')['value'];return'numberedList'===_0x53f98f?_0x57b46d:_0xeac29a;}_0x1c5b58['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x31a056){if('formatBlock'!=_0x31a056['type'])return;const {data:_0x56e5df}=_0x31a056;if(!_0x56e5df)return;let _0x23340b,_0x18ab7a,_0x208b50,_0x2286c4;switch(_0x56e5df['commandName']){case'bulletedList':_0x208b50=_0x56e5df['commandParams'][0x0]['forceValue'],_0x2286c4=_0x4d8b4e(_0x56e5df['commandName']),_0x23340b=_0x208b50?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2286c4&&_0x1c5b58['config']['get']('list.multiBlock')||(_0x23340b='*Change\x20to:*\x20%0'),_0x18ab7a={'type':'format','content':o(_0x26e918,_0x23340b,o(_0x26e918,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x208b50=_0x56e5df['commandParams'][0x0]['forceValue'],_0x2286c4=_0x4d8b4e(_0x56e5df['commandName']),_0x23340b=_0x208b50?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2286c4&&_0x1c5b58['config']['get']('list.multiBlock')||(_0x23340b='*Change\x20to:*\x20%0'),_0x18ab7a={'type':'format','content':o(_0x26e918,_0x23340b,o(_0x26e918,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x23340b='*Indent:*\x20%0',_0x18ab7a={'type':'format','content':o(_0x26e918,_0x23340b,o(_0x26e918,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x23340b=function(_0x58f52b){const _0x3d1bae=_0x58f52b['getFirstRange']();let _0x5154a2=_0x3d1bae['start']['nodeAfter'];for(;_0x5154a2&&_0x3d1bae['containsItem'](_0x5154a2);){if(_0x5154a2['getAttribute']('listIndent')>0x0)return!0x1;_0x5154a2=_0x5154a2['nextSibling'];}return!0x0;}(_0x31a056)?o(_0x26e918,'*Format:*\x20remove\x20from\x20%0',o(_0x26e918,function(_0x4e662f){return'ELEMENT_'+_0x4e662f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x31a056))):o(_0x26e918,'*Outdent:*\x20%0',o(_0x26e918,'ELEMENT_LIST_ITEM')),_0x18ab7a={'type':'format','content':_0x23340b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x56e5df['multipleBlocks']&&(_0x23340b='*Merge:*\x20%0',_0x18ab7a={'type':'deletion','content':o(_0x26e918,_0x23340b,o(_0x26e918,'ELEMENT_LIST_ITEM'))});}return _0x18ab7a;});}}function Te(_0x2f0a21){let _0x40ff75=_0x2f0a21['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x40ff75;){const _0x4648f7=_0x40ff75['getAttribute']('listItemId');if(!_0x4648f7)return!0x1;if(_0x4648f7==_0x2f0a21['data']['newValue'])return'newValue';if(_0x4648f7==_0x2f0a21['data']['oldValue'])return'oldValue';_0x40ff75=_0x40ff75['previousSibling'];}return!0x1;}class q extends _0x189d79{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x560103=this['editor']['config']['get']('list.properties'),_0x64fb7e=this['editor']['plugins']['get']('TrackChangesEditing');_0x560103['styles']&&(_0x64fb7e['enableDefaultAttributesIntegration']('listStyle'),_0x64fb7e['registerBlockAttribute']('listStyle')),_0x560103['reversed']&&(_0x64fb7e['enableDefaultAttributesIntegration']('listReversed'),_0x64fb7e['registerBlockAttribute']('listReversed')),_0x560103['startIndex']&&(_0x64fb7e['enableDefaultAttributesIntegration']('listStart'),_0x64fb7e['registerBlockAttribute']('listStart'));const _0x29caab={'type':'format','content':''};_0x64fb7e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1e5f96=this['editor']['locale'];_0x64fb7e['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1e5f96,'FORMAT_LIST_REVERSED')),_0x64fb7e['descriptionFactory']['registerDescriptionCallback'](_0x4e90d8=>{const {data:_0x42a76e}=_0x4e90d8;if(_0x42a76e&&'listReversed'==_0x42a76e['key'])return null==_0x42a76e['newValue']||0x0==_0x42a76e['newValue']&&null==_0x42a76e['oldValue']?_0x29caab:void 0x0;}),_0x64fb7e['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1e5f96,'FORMAT_LIST_START')),_0x64fb7e['descriptionFactory']['registerDescriptionCallback'](_0x3b1e21=>{const {data:_0x402465}=_0x3b1e21;if(_0x402465&&'listStart'==_0x402465['key'])return null==_0x402465['newValue']||0x1==_0x402465['newValue']&&null==_0x402465['oldValue']?_0x29caab:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4704d5=>{if(_0x4704d5['batch']['isUndo'])return!0x1;let _0xb8eb50=!0x1;const _0x30e892=_0x64fb7e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e88dd=>{const _0x24fabc=_0x64fb7e['_getAttributeKey'](_0x4e88dd);return'listStart'==_0x24fabc||'listReversed'==_0x24fabc;});for(const _0x35ff9d of _0x30e892){const _0x5c0c79=_0x35ff9d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5c0c79||'customNumbered'==_0x5c0c79)continue;_0x64fb7e['_findSuggestions'](_0x35ff9d['getFirstRange'](),'attribute')['find'](_0x125295=>'listType'==_0x64fb7e['_getAttributeKey'](_0x125295['suggestion']))||(_0x4704d5['removeMarker'](_0x35ff9d['getFirstMarker']()),_0xb8eb50=!0x0);}return _0xb8eb50;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x46c4b6){const _0x110740=this['editor']['locale'],{data:_0x2b8e4f}=_0x46c4b6,_0x50ea46={'type':'format','content':''};if(!_0x2b8e4f||'listStyle'!=_0x2b8e4f['key'])return;if(!_0x2b8e4f['oldValue'])return'default'==_0x2b8e4f['newValue']?_0x50ea46:{'type':'format','content':''+o(_0x110740,'*Set\x20format:*\x20%0',o(_0x110740,this['_getTranslationKeyForListStyle'](_0x2b8e4f['newValue'])))};if(!_0x2b8e4f['newValue']){if('default'==_0x2b8e4f['oldValue'])return _0x50ea46;let _0x242f07=_0x46c4b6['head'];for(;_0x242f07;){if(_0x242f07['data']&&'listType'==_0x242f07['data']['key']&&_0x242f07['data']['newValue'])return _0x50ea46;_0x242f07=_0x242f07['next'];}return{'type':'format','content':''+o(_0x110740,'*Remove\x20format:*\x20%0',o(_0x110740,this['_getTranslationKeyForListStyle'](_0x2b8e4f['oldValue'])))};}if('default'!=_0x2b8e4f['newValue'])return{'type':'format','content':''+o(_0x110740,'*Set\x20format:*\x20%0',o(_0x110740,this['_getTranslationKeyForListStyle'](_0x2b8e4f['newValue'])))};let _0x46420c=_0x46c4b6['head'];for(;_0x46420c;){if(_0x46420c['data']&&'listType'==_0x46420c['data']['key']&&_0x46420c['data']['newValue']&&_0x46420c['data']['oldValue'])return _0x50ea46;_0x46420c=_0x46420c['next'];}return{'type':'format','content':o(_0x110740,'*Set\x20format:*\x20%0',o(_0x110740,'ELEMENT_'+_0x46c4b6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3d3d7c=this['editor'],_0x30a58d=_0x3d3d7c['locale'];_0x3d3d7c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29510e=>{if('formatBlock'!=_0x29510e['type'])return;const {data:_0x2a6849}=_0x29510e;if(!_0x2a6849)return;let _0x3bbf64,_0x31c113;switch(_0x2a6849['commandName']){case'listStyle':_0x3bbf64='*Change\x20to:*\x20%0',_0x31c113={'type':'format','content':o(_0x30a58d,_0x3bbf64,o(_0x30a58d,this['_getTranslationKeyForListStyle'](_0x2a6849['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3bbf64=_0x2a6849['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x31c113={'type':'format','content':o(_0x30a58d,_0x3bbf64)};break;case'listStart':_0x3bbf64='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x31c113={'type':'format','content':o(_0x30a58d,_0x3bbf64,_0x2a6849['commandParams'][0x0]['startIndex'])};}return _0x31c113;});}['_getTranslationKeyForListStyle'](_0x2e0c21){return'ELEMENT_'+function(_0x4e3d05){if(Se['includes'](_0x4e3d05))return'bulleted';if(_e['includes'](_0x4e3d05))return'numbered';return null;}(_0x2e0c21)['toUpperCase']()+'_LIST_'+_0x2e0c21['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x189d79{['afterInit'](){const _0x4d4759=this['editor'];_0x4d4759['commands']['get']('emoji')&&_0x4d4759['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x189d79{static get['requires'](){return[_0x1a369f];}['init'](){const _0x1b73b7=this['editor'],_0x74c761=_0x1b73b7['plugins']['get']('TrackChangesEditing'),_0x437fb6=_0x1b73b7['commands']['get']('enter');_0x74c761['enableCommand']('enter',()=>{_0x1b73b7['model']['change'](_0x25acbb=>{const _0x23645e=_0x1b73b7['model']['document']['selection'],_0x596775=_0x23645e['getFirstPosition'](),_0x415b49=_0x247134['fromRange'](_0x23645e['getFirstRange']());if(_0x437fb6['enterBlock'](_0x25acbb)){const _0x5c46cd=_0x1b73b7['model']['createPositionAt'](_0x596775['parent']['nextSibling'],0x0),_0x5f1d0c=_0x25acbb['createRange'](_0x596775,_0x5c46cd);_0x74c761['markInsertion'](_0x5f1d0c);}else _0x25acbb['setSelection'](_0x25acbb['createRange'](_0x415b49['end']));_0x415b49['detach'](),_0x437fb6['fire']('afterExecute',{'writer':_0x25acbb});});}),_0x1b73b7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x1b73b7,'split'),{'priority':'high'}),_0x1b73b7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x290041,_0x5e2663,_0x395b68)=>{const _0x28222f=_0x395b68['mapper']['markerNameToElements'](_0x5e2663['markerName']);if(_0x28222f){for(const _0x305189 of _0x28222f)_0x305189['hasClass']('ck-suggestion-marker-split')&&(_0x395b68['mapper']['unbindElementFromMarkerName'](_0x305189,_0x5e2663['markerName']),_0x395b68['writer']['remove'](_0x305189));}},{'priority':'high'}),_0x1b73b7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xcac4f,_0x4baafc,_0x39593f)=>{_0x39593f['options']['showSuggestionHighlights']&&De(_0x1b73b7,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xcac4f,_0x4baafc,_0x39593f);},{'priority':'high'});}}class Q extends _0x189d79{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5e5d6f=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e5d6f['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5e5d6f['enableCommand']('findNext'),_0x5e5d6f['enableCommand']('findPrevious'),_0x5e5d6f['enableCommand']('replace'),_0x5e5d6f['enableCommand']('replaceAll');}['handleFindCommand'](_0x3a7b0b,_0x5a4a79,_0x4003ce={}){const _0x45d24c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3a7b0b(_0x55e54d=>{let _0x1b6d69=('string'==typeof _0x5a4a79?_0x45d24c['findByTextCallback'](_0x5a4a79,_0x4003ce):_0x5a4a79)(_0x55e54d);Array['isArray'](_0x1b6d69)&&(_0x1b6d69={'results':_0x1b6d69,'searchText':'string'==typeof _0x5a4a79?_0x5a4a79:''});const _0x2f99a4=_0x1b6d69['results']['filter'](_0x2d29b2=>!0x1===this['_isInDeletionRange'](_0x2d29b2,_0x55e54d['item']));return{..._0x1b6d69,'results':_0x2f99a4};},_0x4003ce);}['_isInDeletionRange'](_0x122ef9,_0x211db6){const _0x1f5129=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x211db6,_0x122ef9['start']),this['editor']['model']['createPositionAt'](_0x211db6,_0x122ef9['end']));for(const _0x125c25 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1f5129['getIntersection'](_0x125c25['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x189d79{['afterInit'](){const _0x2170ea=this['editor']['locale'],_0x496b27=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xcab5b4,commandName:_0x4d5bea}of eo)this['editor']['plugins']['has'](_0xcab5b4)&&(_0x496b27['enableDefaultAttributesIntegration'](_0x4d5bea),_0x496b27['registerInlineAttribute'](_0x4d5bea));_0x496b27['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2170ea,'FORMAT_FONT_SIZE')),_0x496b27['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2170ea,'FORMAT_FONT_FAMILY')),_0x496b27['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2170ea,'FORMAT_FONT_COLOR')),_0x496b27['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2170ea,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc0ddcf=this['editor'],_0x4dbe26=_0xc0ddcf['locale'];_0xc0ddcf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a7c55=>{const _0x395577=_0x4dbe26['t'];if('formatInline'!=_0x4a7c55['type'])return;const {data:_0x290b40}=_0x4a7c55;if(null!=_0x290b40){if('fontSize'==_0x290b40['commandName']){const _0x70926e=_0x290b40['commandParams'][0x0]['value'];if(_0x70926e){const _0x24d945=_0x395577(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x7393d1=>_0x7393d1['model']==_0x70926e)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4dbe26,'*Set\x20font\x20size:*\x20%0',_0x24d945)};}return{'type':'format','content':o(_0x4dbe26,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x290b40['commandName']){const _0x116a31=_0x290b40['commandParams'][0x0]['value'];return _0x116a31?{'type':'format','content':o(_0x4dbe26,'*Set\x20font\x20family:*\x20%0',_0x116a31)}:{'type':'format','content':o(_0x4dbe26,'*Reset\x20font\x20family*')};}if('fontColor'==_0x290b40['commandName']){const _0x3f7d24=_0x290b40['commandParams'][0x0]['value'];if(_0x3f7d24){const _0x3ecd28=_0x1b4857(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1c6692=>_0x1c6692['model']==_0x3f7d24);let _0x2fa33f=_0x3f7d24,_0x5bb5f3='';return _0x3ecd28&&(_0x2fa33f=_0x3ecd28['label'],_0x5bb5f3=_0x395577(_0x2fa33f)['toLowerCase']()),{'type':'format','content':o(_0x4dbe26,'*Set\x20font\x20color:*\x20%0',_0x5bb5f3)['trim'](),'color':{'value':_0x3f7d24,'title':_0x5bb5f3||_0x2fa33f}};}return{'type':'format','content':o(_0x4dbe26,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x290b40['commandName']){const _0xe07616=_0x290b40['commandParams'][0x0]['value'];if(_0xe07616){const _0x1a297d=_0x1b4857(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5f0167=>_0x5f0167['model']==_0xe07616);let _0x369df6=_0xe07616,_0x5b5ad5='';return _0x1a297d&&(_0x369df6=_0x1a297d['label'],_0x5b5ad5=_0x395577(_0x369df6)['toLowerCase']()),{'type':'format','content':o(_0x4dbe26,'*Set\x20font\x20background\x20color:*\x20%0',_0x5b5ad5)['trim'](),'color':{'value':_0xe07616,'title':_0x5b5ad5||_0x369df6}};}return{'type':'format','content':o(_0x4dbe26,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x189d79{['afterInit'](){const _0x510db1=this['editor'],_0x1e087c=_0x510db1['plugins']['get']('TrackChangesEditing'),_0x511e22=_0x510db1['commands']['get']('copyFormat'),_0x533b7a=_0x510db1['commands']['get']('pasteFormat');_0x511e22&&_0x533b7a&&(_0x1e087c['enableDefaultAttributesIntegration']('pasteFormat'),_0x1e087c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x31cc89=this['editor'],_0x3f9076=_0x31cc89['locale'];_0x31cc89['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cd0f3=>{if('formatBlock'!=_0x4cd0f3['type']&&'formatInline'!=_0x4cd0f3['type'])return;const {data:_0x52b77e}=_0x4cd0f3;if(_0x52b77e&&'pasteFormat'===_0x52b77e['commandName']){const _0x5e434f=[],_0x19a1a9=_0x52b77e['commandParams'][0x0];for(const [_0x2f7b40,_0x2231a6]of Object['entries'](_0x19a1a9))_0x5e434f['push'](ro(_0x31cc89,_0x2f7b40,_0x2231a6));return _0x5e434f['length']?{'type':'format','content':o(_0x3f9076,'*Set\x20format\x20to:*\x20%0',_0x5e434f['join'](',\x20'))}:{'type':'format','content':o(_0x3f9076,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x12bc44,_0x5ce33e,_0x59b144){const _0xea500f=_0x12bc44['locale']['t'],_0x14d85c=_0x5ce33e['split'](/(?=[A-Z])/)['join']('\x20'),_0x1fc457=_0xea500f(_0x14d85c['charAt'](0x0)['toUpperCase']()+_0x14d85c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x59b144)return _0x1fc457;if('fontColor'===_0x5ce33e||'fontBackgroundColor'===_0x5ce33e){const _0x3e5a77=_0x1b4857(_0x12bc44['config']['get']('fontColor.colors'))['find'](_0x1fb7de=>_0x1fb7de['model']==_0x59b144);return _0x1fc457+'\x20('+(_0x3e5a77?_0xea500f(_0x3e5a77['label'])['toLowerCase']():_0x59b144)+')';}if('fontSize'===_0x5ce33e&&isNaN(parseFloat(_0x59b144))){const _0x2930a7=_0x12bc44['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x12bc44['config']['get']('fontSize.options'))['find'](_0x234267=>_0x234267['model']==_0x59b144);return _0x1fc457+'\x20('+(_0x2930a7?_0xea500f(_0x2930a7['title'])['toLowerCase']():_0x59b144)+')';}return _0x1fc457+'\x20('+_0x59b144+')';}class Z extends _0x189d79{['_headingOptions'];['afterInit'](){const _0x44a75c=this['editor'];if(!_0x44a75c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x44a75c['config']['get']('heading.options');const _0x2eead6=_0x44a75c['locale'],_0x578e11=_0x44a75c['plugins']['get']('TrackChangesEditing');_0x578e11['enableDefaultAttributesIntegration']('heading');for(const _0x1ba636 of this['_headingOptions'])'paragraph'!=_0x1ba636['model']&&_0x578e11['descriptionFactory']['registerElementLabel'](_0x1ba636['model'],_0x2eddca=>{const _0x139195=this['_getHeadingLevel'](_0x1ba636['model']);return null!==_0x139195?_0x11a813(_0x2eddca,_0x139195):_0x5723d5(_0x2eddca,_0x1ba636['title']);});function _0x11a813(_0x570ee5,_0x4c58e7){return o(_0x2eead6,'ELEMENT_HEADING',[_0x570ee5,_0x4c58e7]);}function _0x5723d5(_0x4ae200,_0x554ce5){return o(_0x2eead6,'ELEMENT_HEADING_CUSTOM',[_0x4ae200,_0x554ce5]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ee3b2=this['editor'],_0x1ef7cd=_0x2ee3b2['locale'];function _0x412fcc(_0x4e8237,_0x23ad38){return o(_0x1ef7cd,'ELEMENT_HEADING_CUSTOM',[_0x4e8237,_0x23ad38]);}_0x2ee3b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x124521=>{if('formatBlock'!=_0x124521['type'])return;const {data:_0x136abb}=_0x124521;if(_0x136abb&&'heading'==_0x136abb['commandName']){const _0xb3f729=_0x136abb['commandParams'][0x0]['value'],_0x354c72=this['_getHeadingLevel'](_0xb3f729);if(null!==_0x354c72)return{'type':'format','content':o(_0x1ef7cd,'*Change\x20to:*\x20%0',(_0x43b648=0x1,_0x3e09a1=_0x354c72,o(_0x1ef7cd,'ELEMENT_HEADING',[_0x43b648,_0x3e09a1])))};const _0x1c62a9=this['_headingOptions']['find'](_0x13d816=>_0x13d816['model']===_0xb3f729)['title'];return{'type':'format','content':o(_0x1ef7cd,'*Change\x20to:*\x20%0',_0x412fcc(0x1,_0x1c62a9))};}var _0x43b648,_0x3e09a1;});}['_getHeadingLevel'](_0x1147ef){const _0x531884=_0x1147ef['match'](/^heading(\d+)/);if(_0x531884)return _0x531884[0x1];const _0x368856=this['_headingOptions']?.['find'](_0x485e3a=>_0x485e3a['model']==_0x1147ef);if(_0x368856&&_0x368856['view']){const _0x302e4a=_0x368856['view'],_0x5963ca=(_0x302e4a['name']??_0x302e4a)['match'](/^h(\d+)/);if(_0x5963ca)return _0x5963ca[0x1];}return null;}}class tt extends _0x189d79{['afterInit'](){const _0x38be1a=this['editor'];if(!_0x38be1a['plugins']['has']('HighlightEditing'))return;const _0x2a7e3b=_0x38be1a['plugins']['get']('TrackChangesEditing'),_0x4309f6=_0x38be1a['locale'];_0x2a7e3b['enableDefaultAttributesIntegration']('highlight'),_0x2a7e3b['registerInlineAttribute']('highlight'),_0x2a7e3b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4309f6,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ffe06=this['editor'],_0x1847be=_0x3ffe06['locale'];_0x3ffe06['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48d96f=>{if('formatInline'!=_0x48d96f['type'])return;const {data:_0x48d292}=_0x48d96f;if(_0x48d292&&'highlight'==_0x48d292['commandName']){const _0x5ac90d=_0x1847be['t'],_0xc64920=_0x48d292['commandParams'][0x0]['value'];if(_0xc64920){const _0x546315=_0x3ffe06['config']['get']('highlight.options')['find'](_0x12f3c6=>_0x12f3c6['model']==_0xc64920),_0x5e3c20=_0x5ac90d(_0x546315['title'])['toLowerCase']();return{'type':'format','content':o(_0x1847be,'*Set\x20highlight:*\x20%0',_0x5e3c20),'color':{'value':_0x546315['color'],'title':_0x546315['title']}};}return{'type':'format','content':o(_0x1847be,'*Remove\x20highlight*',o(_0x1847be,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x189d79{['afterInit'](){const _0x1c430a=this['editor'];if(!_0x1c430a['plugins']['has']('HorizontalLineEditing'))return;_0x1c430a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x34b59a=_0x1c430a['plugins']['get']('TrackChangesEditing'),_0x23fb8b=_0x1c430a['locale'];_0x34b59a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3bff32=>o(_0x23fb8b,'ELEMENT_HORIZONTAL_LINE',_0x3bff32)),_0x1c430a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x228aca,{writer:_0x44008,options:_0x316a70})=>{if(!_0x316a70['showSuggestionHighlights'])return null;const _0x3955b8=_0x44008['createContainerElement']('div'),_0x5e8681=_0x44008['createEmptyElement']('hr');return _0x44008['addClass']('ck-horizontal-line',_0x3955b8),_0x44008['insert'](_0x44008['createPositionAt'](_0x3955b8,0x0),_0x5e8681),_0x3955b8;},'converterPriority':'high'});}}class nt extends _0x189d79{['afterInit'](){const _0x26d5ac=this['editor'];if(!_0x26d5ac['plugins']['has']('HtmlEmbed'))return;const _0x4efdbb=_0x26d5ac['plugins']['get']('TrackChangesEditing'),_0x2860cb=_0x26d5ac['locale'];_0x4efdbb['descriptionFactory']['registerElementLabel']('rawHtml',_0x1856a9=>o(_0x2860cb,'ELEMENT_HTML_EMBED',_0x1856a9)),_0x4efdbb['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4efdbb['registerBlockAttribute']('value'),_0x4efdbb['descriptionFactory']['registerDescriptionCallback'](_0x3faee5=>{if('attribute'!=_0x3faee5['type'])return;const {data:_0x2f8052}=_0x3faee5;if(_0x2f8052&&'value'==_0x2f8052['key']&&_0x3faee5['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2c4e2c=o(_0x2860cb,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2860cb,'*Change\x20%0\x20content*',_0x2c4e2c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b25e3=this['editor'],_0x5d4de3=_0x2b25e3['locale'];_0x2b25e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e2275=>{if('formatBlock'!=_0x5e2275['type'])return;const {data:_0x1ba277}=_0x5e2275;if(_0x1ba277&&'htmlEmbed'==_0x1ba277['commandName']){const _0x294afd=o(_0x5d4de3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5d4de3,'*Change\x20%0\x20content*',_0x294afd)};}});}}class et extends _0x189d79{['afterInit'](){const _0xe3a639=this['editor'];if(!_0xe3a639['plugins']['has']('ImageEditing'))return;const _0x516b8a=_0xe3a639['plugins']['get']('TrackChangesEditing'),_0x2d25d7=_0xe3a639['plugins']['get']('ImageUtils'),_0x3db6fa=_0xe3a639['locale'];_0x516b8a['enableCommand']('insertImage'),_0x516b8a['descriptionFactory']['registerElementLabel']('imageBlock',_0x1d915d=>o(_0x3db6fa,'ELEMENT_IMAGE',_0x1d915d)),_0x516b8a['descriptionFactory']['registerElementLabel']('imageInline',_0x125be0=>o(_0x3db6fa,'ELEMENT_INLINE_IMAGE',_0x125be0)),_0x516b8a['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3db6fa,'ELEMENT_CAPTION')),_0xe3a639['plugins']['has']('ImageUploadEditing')&&_0x516b8a['enableCommand']('uploadImage'),_0xe3a639['plugins']['has']('ImageBlockEditing')&&_0xe3a639['plugins']['has']('ImageInlineEditing')&&(_0x516b8a['enableCommand']('imageTypeInline',(_0x2f943a,_0x279ce5)=>{const _0x4cb086=_0x2d25d7['getClosestSelectedImageElement'](_0xe3a639['model']['document']['selection']);_0xe3a639['model']['change'](()=>{_0x516b8a['markBlockFormat'](_0x4cb086,{'commandName':'imageTypeInline','commandParams':[_0x279ce5]},[],'convertBlockImageToInline');});}),_0x516b8a['enableCommand']('imageTypeBlock',(_0x1f4c2a,_0x18e871)=>{_0xe3a639['model']['change'](_0x3940dc=>{let _0x5c66fe=_0x2d25d7['getClosestSelectedImageElement'](_0xe3a639['model']['document']['selection']),_0x3c807d=_0x3940dc['createRangeOn'](_0x5c66fe);const _0x17bbef=_0x33313b['fromPosition'](_0x3c807d['start'],'toPrevious'),_0x46ad6e=_0x33313b['fromPosition'](_0x3c807d['end'],'toNext');_0x516b8a['forceDefaultExecution'](()=>_0x1f4c2a(_0x18e871)),_0x5c66fe=_0x2d25d7['getClosestSelectedImageElement'](_0xe3a639['model']['document']['selection']),_0x3c807d=_0x3940dc['createRangeOn'](_0x5c66fe);const _0x3bab75=_0x3940dc['createRange'](_0x17bbef,_0x46ad6e);_0x17bbef['detach'](),_0x46ad6e['detach'](),_0x516b8a['markBlockFormat'](_0x5c66fe,{'commandName':'imageTypeInline','commandParams':[_0x18e871]},[],'convertInlineImageToBlock'),_0x3bab75['start']['isBefore'](_0x3c807d['start'])&&_0x516b8a['markInsertion'](_0x3940dc['createRange'](_0x3bab75['start'],_0x3c807d['start']),'convertInlineImageToBlock'),_0x3c807d['end']['isBefore'](_0x3bab75['end'])&&_0x516b8a['markInsertion'](_0x3940dc['createRange'](_0x3c807d['end'],_0x3bab75['end']),'convertInlineImageToBlock');});}),_0x516b8a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x516b8a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x516b8a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x516b8a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x516b8a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x516b8a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4aaa60])=>{const _0x36d039=_0x516b8a['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1358f4=_0x4aaa60['start'],_0x313705=_0x4aaa60['end'];const _0x2aae42=_0xe3a639['model']['schema']['getNearestSelectionRange'](_0x1358f4,'backward'),_0x48298f=_0xe3a639['model']['schema']['getNearestSelectionRange'](_0x313705,'forward');_0x2aae42['isCollapsed']&&(_0x1358f4=_0x2aae42['start']),_0x48298f['isCollapsed']&&(_0x313705=_0x48298f['end']),_0x36d039([_0xe3a639['model']['createRange'](_0x1358f4,_0x313705)]);}),_0x516b8a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x18932d),_0x516b8a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x18932d)),_0xe3a639['plugins']['has']('ImageCaptionEditing')&&(_0x516b8a['enableCommand']('toggleImageCaption',(_0x4f21f6,_0x41305b)=>{const _0x4f38dc=_0xe3a639['plugins']['get']('ImageCaptionUtils');let _0x5b42e7=_0x2d25d7['getClosestSelectedImageElement'](_0xe3a639['model']['document']['selection']),_0x4d99bb=_0x4f38dc['getCaptionFromImageModelElement'](_0x5b42e7);_0xe3a639['model']['change'](()=>{if(_0x4d99bb)return void _0x516b8a['markDeletion'](_0xe3a639['model']['createRangeOn'](_0x4d99bb));const _0x287314=_0x2d25d7['isBlockImage'](_0x5b42e7);_0x4f21f6(_0x41305b),_0x5b42e7=_0x2d25d7['getClosestSelectedImageElement'](_0xe3a639['model']['document']['selection']),_0x4d99bb=_0x4f38dc['getCaptionFromImageModelElement'](_0x5b42e7),_0x516b8a['markInsertion'](_0xe3a639['model']['createRangeOn'](_0x4d99bb),_0x287314?null:'imageCaption');});}),_0x516b8a['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x18932d));const _0x2ad491=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x35d348(_0x47db56,_0x495b41){const _0x9b17e2=_0x2ad491['findIndex'](({type:_0x4cdf92,subType:_0x2502b5})=>_0x47db56['type']==_0x4cdf92&&_0x47db56['subType']==_0x2502b5),_0x1e271f=_0x2ad491['findIndex'](({type:_0x138c63,subType:_0x3ae9b6})=>_0x495b41['type']==_0x138c63&&_0x495b41['subType']==_0x3ae9b6);if(_0x9b17e2<0x0||_0x1e271f<0x0)return!0x1;const _0x898de9=_0x47db56['getFirstRange'](),_0x3c1aa7=_0x495b41['getFirstRange']();if((0x0==_0x9b17e2||0x1==_0x9b17e2)&&0x2==_0x1e271f&&_0x898de9['isIntersecting'](_0x3c1aa7))return!0x0;if(0x2==_0x9b17e2&&0x3==_0x1e271f){const _0x328f89=_0x516b8a['_findSuggestions'](_0x898de9,'insertion')['filter'](({suggestion:_0x420b09,meta:_0x568dac})=>_0x568dac['isOwn']&&'convertInlineImageToBlock'==_0x420b09['subType']);if(_0x328f89['length']>0x1&&_0x3c1aa7['end']['isEqual'](_0x898de9['start']))return!0x0;if(0x1==_0x328f89['length']&&(_0x898de9['start']['isEqual'](_0x3c1aa7['end'])||_0x898de9['end']['isEqual'](_0x3c1aa7['start'])))return!0x0;}if(0x3==_0x9b17e2&&0x3==_0x1e271f&&_0x898de9['start']['isBefore'](_0x3c1aa7['start'])){const _0x4b7a19=_0x898de9['end']['nodeAfter'],_0x12a1dc=_0x3c1aa7['start']['nodeBefore'];return _0x2d25d7['isBlockImage'](_0x4b7a19)&&_0x4b7a19===_0x12a1dc;}return!0x1;}function _0x18932d(_0x2b6261,_0x108267){return _0x35d348(_0x2b6261,_0x108267)?[_0x2b6261,_0x108267]:_0x35d348(_0x108267,_0x2b6261)?[_0x108267,_0x2b6261]:null;}_0xe3a639['plugins']['has']('ImageResize')&&(_0x516b8a['enableDefaultAttributesIntegration']('resizeImage'),_0x516b8a['registerBlockAttribute']('resizedWidth'),_0x516b8a['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3db6fa,'FORMAT_IMAGE_SIZE'))),_0xe3a639['plugins']['has']('ImageTextAlternativeEditing')&&(_0x516b8a['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x516b8a['registerBlockAttribute']('alt')),_0xe3a639['plugins']['has']('PictureEditing')&&(_0x516b8a['registerBlockAttribute']('sources'),_0x516b8a['descriptionFactory']['registerDescriptionCallback'](_0x5da429=>{if('attribute'!=_0x5da429['type'])return;const {data:_0x16c6c1}=_0x5da429;return _0x16c6c1&&'sources'==_0x16c6c1['key']?{'type':'format','content':''}:void 0x0;})),_0xe3a639['plugins']['has']('ImageSizeAttributes')&&(_0x516b8a['registerBlockAttribute']('width'),_0x516b8a['registerBlockAttribute']('height'),_0x516b8a['descriptionFactory']['registerDescriptionCallback'](_0x70cf77=>{if('attribute'!=_0x70cf77['type'])return;const {data:_0x30e549}=_0x70cf77;return!_0x30e549||'width'!=_0x30e549['key']&&'height'!=_0x30e549['key']?void 0x0:{'type':'format','content':''};})),_0x516b8a['descriptionFactory']['registerDescriptionCallback'](_0x252c23=>{if(!!_0x2ad491['find'](({type:_0x110a7e,subType:_0x3b1e24})=>_0x252c23['type']==_0x110a7e&&_0x252c23['subType']==_0x3b1e24))return _0x252c23['previous']?{}:void 0x0;}),_0x516b8a['descriptionFactory']['registerDescriptionCallback'](_0x311cf7=>{if('insertion'==_0x311cf7['type']||'deletion'==_0x311cf7['type']){const _0x2d1ce7=_0x311cf7['getContainedElement']();if(_0x2d1ce7&&_0x2d1ce7['is']('element','caption'))return{'type':'insertion'==_0x311cf7['type']?'addObject':'removeObject','element':_0x2d1ce7,'quantity':0x1};}}),_0x516b8a['descriptionFactory']['registerDescriptionCallback'](_0x3b42ca=>'formatBlock'==_0x3b42ca['type']&&'convertInlineImageToBlock'==_0x3b42ca['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3b42ca['type']&&'convertBlockImageToInline'==_0x3b42ca['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x516b8a['descriptionFactory']['registerDescriptionCallback'](_0x39c8d6=>{if('attribute'!=_0x39c8d6['type'])return;const {data:_0x23f2ac}=_0x39c8d6;if(!_0x23f2ac||'alt'!=_0x23f2ac['key'])return;const _0x55de34=_0x23f2ac['newValue'];return _0x55de34?{'type':'format','content':o(_0x3db6fa,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x55de34+'\x22')}:{'type':'format','content':o(_0x3db6fa,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2dfa7f=this['editor'],_0x126494=_0x2dfa7f['locale'];_0x2dfa7f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x102f35=>{if('formatBlock'!=_0x102f35['type']&&'formatInline'!=_0x102f35['type'])return;const {data:_0x5b546c}=_0x102f35;if(_0x5b546c){if('imageTextAlternative'==_0x5b546c['commandName']){const _0x134335=_0x5b546c['commandParams'][0x0]['newValue'];return _0x134335?{'type':'format','content':o(_0x126494,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x134335+'\x22')}:{'type':'format','content':o(_0x126494,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5b546c['commandName']){const _0x309a89=_0x5b546c['commandParams'][0x0]['width'];return _0x309a89?{'type':'format','content':o(_0x126494,'*Set\x20image\x20width:*\x20%0',_0x309a89)}:{'type':'format','content':o(_0x126494,'*Reset\x20image\x20width*')};}}});}}class st extends _0x189d79{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4e4113=this['editor']['locale'],_0xb780a=this['editor']['plugins']['get']('TrackChangesEditing');_0xb780a['enableDefaultAttributesIntegration']('replaceImageSource'),_0xb780a['registerBlockAttribute']('src'),_0xb780a['descriptionFactory']['registerDescriptionCallback'](_0x1e7dab=>{if('attribute'!=_0x1e7dab['type'])return;const {data:_0x28135a}=_0x1e7dab;return _0x28135a&&'src'==_0x28135a['key']?_0x28135a['newValue']&&_0x28135a['oldValue']?{'type':'format','content':o(_0x4e4113,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4fe8d2=this['editor']['plugins']['get']('TrackChangesEditing');_0x4fe8d2['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4fe8d2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4fe8d2['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4fe8d2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x429dc4=this['editor'],_0x35b3ee=_0x429dc4['locale'];_0x429dc4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xafed00=>{if('formatBlock'!=_0xafed00['type']&&'formatInline'!=_0xafed00['type'])return;const {data:_0x3fcf9a}=_0xafed00;if(!_0x3fcf9a||'replaceImageSource'!=_0x3fcf9a['commandName'])return;return{'type':'format','content':o(_0x35b3ee,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x189d79{['afterInit'](){const _0x2ebfc1=this['editor'];if(!_0x2ebfc1['plugins']['has']('ImageStyleEditing'))return;const _0x24fb52=_0x2ebfc1['plugins']['get']('TrackChangesEditing'),_0x179d26=_0x2ebfc1['plugins']['get']('ImageUtils'),_0x4e6679={};_0x24fb52['enableCommand']('imageStyle',(_0x16a5ce,_0x1de144)=>{const _0x5e8f67=_0x2ebfc1['plugins']['get']('Users')['me'],_0x32270f=_0x2ebfc1['commands']['get']('imageStyle');let _0x177f69=_0x179d26['getClosestSelectedImageElement'](_0x2ebfc1['model']['document']['selection']),_0x344404=_0x2ebfc1['model']['createRangeOn'](_0x177f69),_0x3544c5=_0x32270f['value'];if(_0x3544c5==_0x1de144['value'])return;const _0x21e9b3={'commandName':'imageStyle','commandParams':[_0x1de144],'formatGroupId':_0xf49555()};_0x2ebfc1['model']['change'](()=>{if(_0x24fb52['getSuggestions']()['filter'](_0x5eb44f=>_0x5eb44f['isInContent']&&_0x5e8f67==_0x5eb44f['author']&&('formatBlock'==_0x5eb44f['type']||'formatInline'==_0x5eb44f['type'])&&('imageStylePreApply'==_0x5eb44f['subType']||'imageStylePostApply'==_0x5eb44f['subType'])&&_0x5eb44f['getFirstRange']()['isEqual'](_0x344404))['forEach'](_0x3a8555=>_0x24fb52['discardSuggestion'](_0x3a8555['head'])),_0x177f69=_0x179d26['getClosestSelectedImageElement'](_0x2ebfc1['model']['document']['selection']),_0x344404=_0x2ebfc1['model']['createRangeOn'](_0x177f69),_0x32270f['refresh'](),_0x2ebfc1['commands']['get']('imageTypeInline')['refresh'](),_0x2ebfc1['commands']['get']('imageTypeBlock')['refresh'](),_0x3544c5=_0x32270f['value'],_0x3544c5!=_0x1de144['value'])return _0x179d26['isInlineImage'](_0x177f69)&&_0x32270f['shouldConvertImageType'](_0x1de144['value'],_0x177f69)?(_0x16a5ce({..._0x1de144,'setImageSizes':!0x1}),_0x177f69=_0x179d26['getClosestSelectedImageElement'](_0x2ebfc1['model']['document']['selection']),void _0x24fb52['markBlockFormat'](_0x177f69,{..._0x21e9b3,'commandReversedParams':[{'value':_0x3544c5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x179d26['isBlockImage'](_0x177f69)?_0x24fb52['markBlockFormat'](_0x177f69,_0x21e9b3,[],'imageStylePostApply'):_0x24fb52['markInlineFormat'](_0x344404,_0x21e9b3,'imageStylePostApply'));});});for(const _0x19dd8a of _0x2ebfc1['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4e6679[_0x19dd8a['name']]=_0x19dd8a['title']['toLowerCase']();_0x24fb52['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x24fb52['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x24fb52['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x24fb52['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x6e8e78])=>{_0x179d26['setImageNaturalSizeAttributes'](_0x6e8e78['getContainedElement']());}),_0x24fb52['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x994223,_0x3b8545)=>{_0x24fb52['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x994223,{'commandName':_0x3b8545['commandName'],'commandParams':_0x3b8545['commandReversedParams']});}),_0x24fb52['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x191b7f,_0x86483b){if(_0x3fcd66(_0x191b7f,_0x86483b))return[_0x191b7f,_0x86483b];if(_0x3fcd66(_0x86483b,_0x191b7f))return[_0x86483b,_0x191b7f];return null;});const _0x1aac2e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3fcd66(_0x1822ce,_0x2ad04f){const _0x4ae665=_0x1aac2e['findIndex'](({type:_0x38cec3,subType:_0x5e0979})=>_0x1822ce['type']==_0x38cec3&&_0x1822ce['subType']==_0x5e0979),_0x3b82f9=_0x1aac2e['findIndex'](({type:_0x3b091f,subType:_0x1091db})=>_0x2ad04f['type']==_0x3b091f&&_0x2ad04f['subType']==_0x1091db);if(_0x4ae665<0x0||_0x3b82f9<0x0)return!0x1;const _0x52fe3d=_0x1822ce['getFirstRange'](),_0x3ea4b3=_0x2ad04f['getFirstRange']();if((0x0==_0x4ae665||0x1==_0x4ae665)&&0x2==_0x3b82f9&&_0x52fe3d['isIntersecting'](_0x3ea4b3))return!0x0;if(0x2==_0x4ae665&&0x3==_0x3b82f9){const _0x258e9a=_0x24fb52['_findSuggestions'](_0x52fe3d,'insertion')['filter'](({suggestion:_0x545421,meta:_0x3a099f})=>_0x3a099f['isOwn']&&'convertInlineImageToBlock'==_0x545421['subType']);if(_0x258e9a['length']>0x1&&_0x3ea4b3['end']['isEqual'](_0x52fe3d['start']))return!0x0;if(0x1==_0x258e9a['length']&&(_0x52fe3d['start']['isEqual'](_0x3ea4b3['end'])||_0x52fe3d['end']['isEqual'](_0x3ea4b3['start'])))return!0x0;}if(0x3==_0x4ae665&&0x3==_0x3b82f9&&_0x52fe3d['start']['isBefore'](_0x3ea4b3['start'])){const _0x57db01=_0x52fe3d['end']['nodeAfter'],_0x29bb6a=_0x3ea4b3['start']['nodeBefore'];return _0x179d26['isBlockImage'](_0x57db01)&&_0x57db01===_0x29bb6a;}return!0x1;}_0x2ebfc1['model']['document']['registerPostFixer'](()=>{let _0x24c596=!0x1;const _0x3954dd=Array['from'](_0x2ebfc1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x355bd7,data:_0x257fe9}of _0x3954dd){const {group:_0xebc9e1,type:_0xc1e857,subType:_0x2ebf0f,id:_0x5e76a3}=_0x24fb52['_splitMarkerName'](_0x355bd7);if('suggestion'==_0xebc9e1&&_0x24fb52['hasSuggestion'](_0x5e76a3)){if('formatBlock'==_0xc1e857&&('imageStylePreApply'==_0x2ebf0f||'imageStylePostApply'==_0x2ebf0f)){const _0x22aa22=_0x24fb52['getSuggestion'](_0x5e76a3);if(_0x257fe9['newRange']){const _0x8b307b=_0x22aa22['getFirstRange']()['getContainedElement']();if(_0x179d26['isBlockImage'](_0x8b307b))continue;_0x24fb52['discardSuggestion'](_0x22aa22),_0x24c596=!0x0;}}if('insertion'==_0xc1e857&&'imageCaption'==_0x2ebf0f&&!_0x257fe9['newRange']){const _0x265587=_0x24fb52['getSuggestion'](_0x5e76a3);_0x265587['next']&&_0x265587['next']['isInContent']&&(_0x24fb52['discardSuggestion'](_0x265587['next']),_0x24c596=!0x0);}}}return _0x24c596;}),this['_registerLegacyDescription'](_0x4e6679);}['_registerLegacyDescription'](_0x5709c3){const _0x3d40d9=this['editor'],_0x528c09=_0x3d40d9['locale'];_0x3d40d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x526dc5=>{if('formatBlock'!=_0x526dc5['type']&&'formatInline'!=_0x526dc5['type'])return;const {data:_0x3a1ac9}=_0x526dc5;if(!_0x3a1ac9||'imageStyle'!=_0x3a1ac9['commandName'])return;const _0x332ff0=_0x3a1ac9['commandParams'][0x0]['value'];return _0x2a316f('side'===_0x332ff0?o(_0x528c09,'FORMAT_SIDE_IMAGE'):_0x5709c3[_0x332ff0]||_0x332ff0);function _0x2a316f(_0x497f42){return{'type':'format','content':o(_0x528c09,'*Format:*\x20%0',_0x497f42)};}});}}class rt extends _0x189d79{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5d762e){super(_0x5d762e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4f3322=this['editor'],_0x5da413=_0x4f3322['commands']['get']('importWord'),_0x37c332=_0x4f3322['commands']['get']('trackChanges');_0x5da413&&(_0x5da413['on']('execute',(_0x2cd7de,[,_0x1a6bde])=>{this['_trackChangesValueDuringImport']=_0x37c332['value'],_0x1a6bde['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5da413,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5da413,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x37c332['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4f3322['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2fc786,_0x1c7a31){const {suggestions:_0x18ff78}=_0x1c7a31,_0xc79f53=this['editor']['commands']['get']('trackChanges'),_0xbaaf9e=_0xc79f53['value'];this['_trackChangesValueDuringImport']!==_0xbaaf9e&&(_0xc79f53['execute'](),this['_trackChangesExecuted']=!0x0),_0x18ff78&&_0x18ff78['forEach'](({id:_0x4136db,type:_0x535173,author:_0x19cbdc,created_at:_0x4bb518})=>{const _0x1bbcd8={'id':_0x4136db,'type':_0x535173,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x19cbdc,'createdAt':_0x4bb518?new Date(_0x4bb518):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1bbcd8);});}}class at extends _0x189d79{['afterInit'](){const _0x3ea3e7=this['editor'],_0x58d056=_0x3ea3e7['plugins']['get']('TrackChangesEditing');if(_0x3ea3e7['plugins']['has']('IndentEditing')&&(_0x58d056['enableCommand']('indent'),_0x58d056['enableCommand']('outdent')),_0x3ea3e7['plugins']['has']('IndentBlock')){for(const _0x50b4df of['indentBlock','outdentBlock'])_0x58d056['enableDefaultAttributesIntegration'](_0x50b4df);}const _0x1f34ab=_0x3ea3e7['locale'];_0x58d056['registerBlockAttribute']('blockIndent'),_0x58d056['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1f34ab,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2871a0=this['editor'],_0x2d28f1=_0x2871a0['locale'],_0x26ad19=_0x2871a0['plugins']['get']('TrackChangesEditing');_0x26ad19['descriptionFactory']['registerDescriptionCallback'](_0x536948=>{if('formatBlock'!=_0x536948['type'])return;const {data:_0x232cbf}=_0x536948;if(!_0x232cbf)return;if('indentBlock'!=_0x232cbf['commandName']&&'outdentBlock'!=_0x232cbf['commandName'])return;const _0x30018d=_0x536948['getItems']()[0x0],_0x2c49fc=_0x26ad19['descriptionFactory']['getItemLabel'](_0x30018d);return'indentBlock'==_0x232cbf['commandName']?{'type':'format','content':o(_0x2d28f1,'*Indent:*\x20%0',_0x2c49fc)}:'outdentBlock'==_0x232cbf['commandName']?{'type':'format','content':o(_0x2d28f1,'*Outdent:*\x20%0',_0x2c49fc)}:void 0x0;});}}class ct extends _0x189d79{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x189d79{['afterInit'](){const _0x33e46a=this['editor'];if(!_0x33e46a['plugins']['has']('LinkEditing'))return;const _0x3dfb7a=_0x33e46a['plugins']['get']('TrackChangesEditing'),_0x247cfb=_0x33e46a['commands']['get']('link');_0x3dfb7a['enableDefaultAttributesIntegration']('link'),_0x3dfb7a['enableDefaultAttributesIntegration']('unlink'),_0x3dfb7a['registerInlineAttribute']('linkHref');for(const _0x558031 of _0x247cfb['manualDecorators'])_0x3dfb7a['registerInlineAttribute'](_0x558031['id']),_0x3dfb7a['descriptionFactory']['registerAttributeLabel'](_0x558031['id'],'link\x20('+_0x558031['label']['toLowerCase']()+')');_0x3dfb7a['descriptionFactory']['registerDescriptionCallback'](_0x82be5f=>{if('attribute'!=_0x82be5f['type'])return;const {data:_0x5c7f62}=_0x82be5f;if(!_0x5c7f62||'linkHref'!=_0x5c7f62['key'])return;const _0x7418c0=_0x5c7f62['newValue'],_0x24d972=_0x33e46a['locale'];return{'type':'format','content':null==_0x7418c0?o(_0x24d972,'*Remove\x20link*'):o(_0x24d972,'*Set\x20link:*\x20%0','\x22'+_0x7418c0+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2137ff=this['editor'],_0x218f2d=_0x2137ff['locale'];_0x2137ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36b25b=>{if('formatInline'!=_0x36b25b['type'])return;const {data:_0x4c9d4b}=_0x36b25b;if(_0x4c9d4b){if('link'==_0x4c9d4b['commandName']){const _0x410ac7=_0x4c9d4b['commandParams'][0x0];return{'type':'format','content':o(_0x218f2d,'*Set\x20link:*\x20%0','\x22'+_0x410ac7+'\x22')};}return'unlink'==_0x4c9d4b['commandName']?{'type':'format','content':o(_0x218f2d,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x189d79{['afterInit'](){const _0x596392=this['editor'],_0x356718=_0x596392['locale'];if(!_0x596392['plugins']['has']('LegacyListEditing'))return;const _0x722451=_0x596392['plugins']['get']('TrackChangesEditing'),_0x4f6707=_0x596392['plugins']['has']('LegacyTodoListEditing');function _0x486645(_0x319e4e){return()=>{const _0x51b085=_0x596392['model']['document']['selection'],_0x19c41f=_0x596392['commands']['get'](_0x319e4e);if(_0x19c41f['value'])return void _0x596392['execute']('paragraph',{});const _0x54ed26=_0x319e4e['slice'](0x0,-0x4),_0xc49ef1=function(_0x5e95ad,_0x22f1a9,_0x269345){let _0x237e7c=Array['from'](_0x5e95ad)['filter'](_0xc295f=>function(_0x53a107,_0x142615){return _0x142615['checkChild'](_0x53a107['parent'],'listItem')&&!_0x142615['isObject'](_0x53a107);}(_0xc295f,_0x269345));_0x237e7c=_0x237e7c['filter'](_0x365101=>!_0x365101['is']('element','listItem')||_0x365101['getAttribute']('listType')!=_0x22f1a9);const _0x25d872=new Set();for(const _0x4e985b of _0x237e7c)_0x4e985b['is']('element','listItem')?_0x25d872['add'](Le(_0x4e985b)):_0x25d872['add'](_0x4e985b);return Array['from'](_0x25d872);}(_0x51b085['getSelectedBlocks'](),_0x54ed26,_0x596392['model']['schema']);_0x596392['model']['change'](()=>{for(const _0x2bf4c0 of _0xc49ef1)_0x722451['markBlockFormat'](_0x2bf4c0,{'commandName':_0x319e4e,'commandParams':[{'forceValue':!_0x19c41f['value']}],'formatGroupId':'blockName'},Ee(_0x2bf4c0));});};}function _0x127474(_0x4a21fd){return()=>{const _0x1d6606=function(_0xf2f290){let _0x47ed9c=Array['from'](_0xf2f290);const _0x18de3e=_0x47ed9c['findIndex'](_0x3d2633=>'listItem'!=_0x3d2633['name']);return _0x18de3e>-0x1&&(_0x47ed9c=_0x47ed9c['slice'](0x0,_0x18de3e)),_0x47ed9c;}(_0x596392['model']['document']['selection']['getSelectedBlocks']()),_0x42531e=_0x596392['model']['createRange'](_0x596392['model']['createPositionAt'](_0x1d6606[0x0],'before'),_0x596392['model']['createPositionAt'](_0x1d6606[_0x1d6606['length']-0x1],'end'));_0x596392['model']['change'](()=>{_0x722451['markBlockFormat'](_0x42531e,{'commandName':_0x4a21fd,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5b56a4){const _0x4269aa=new Set();for(const _0x529c4e of _0x5b56a4){let _0x52ab6c=_0x529c4e['nextSibling'];for(;_0x52ab6c&&_0x52ab6c['getAttribute']('listIndent')>_0x529c4e['getAttribute']('listIndent');)_0x4269aa['add'](_0x52ab6c),_0x52ab6c=_0x52ab6c['nextSibling'];}return Array['from'](_0x4269aa);}(_0x1d6606));});};}_0x722451['enableCommand']('numberedList',_0x486645('numberedList')),_0x722451['enableCommand']('bulletedList',_0x486645('bulletedList')),_0x4f6707&&_0x722451['enableCommand']('todoList',_0x486645('todoList')),_0x722451['enableCommand']('indentList',_0x127474('indentList')),_0x722451['enableCommand']('outdentList',_0x127474('outdentList')),_0x4f6707&&_0x722451['enableCommand']('checkTodoList',()=>{const _0x9dba80=_0x596392['commands']['get']('checkTodoList'),_0x3ce404=Array['from'](_0x9dba80['_selectedElements']);_0x3ce404['filter'](_0x4f827b=>_0x4f827b['getAttribute']('todoListChecked')!=_0x9dba80['value']),_0x596392['model']['change'](()=>{for(const _0x425589 of _0x3ce404)_0x722451['markBlockFormat'](_0x425589,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x9dba80['value']}]});});}),_0x722451['descriptionFactory']['registerElementLabel']('listItem',_0x416cac=>o(_0x356718,'ELEMENT_LIST_ITEM',_0x416cac)),_0x722451['descriptionFactory']['registerDescriptionCallback'](_0x2f12fb=>{if('formatBlock'!=_0x2f12fb['type']&&'formatInline'!=_0x2f12fb['type'])return;const {data:_0x2220cd}=_0x2f12fb;if(_0x2220cd){if('numberedList'==_0x2220cd['commandName']||'bulletedList'==_0x2220cd['commandName']||'todoList'==_0x2220cd['commandName'])switch(_0x2220cd['commandName']['replace']('List','')){case'bulleted':return _0x460e9b(o(_0x356718,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x460e9b(o(_0x356718,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x460e9b(o(_0x356718,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2220cd['commandName'])return{'type':'format','content':o(_0x356718,'*Indent:*\x20%0',o(_0x356718,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2220cd['commandName'])return{'type':'format','content':o(_0x356718,'*Outdent:*\x20%0',o(_0x356718,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2220cd['commandName'])return _0x2220cd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x356718,'*Check\x20item*')}:{'type':'format','content':o(_0x356718,'*Uncheck\x20item*')};}function _0x460e9b(_0x1c4414){return{'type':'format','content':o(_0x356718,'*Change\x20to:*\x20%0',_0x1c4414)};}});}}function Le(_0x482517){const _0x52a7e0=_0x482517['getAttribute']('listIndent');if(0x0==_0x52a7e0)return _0x482517;let _0x4c4f91=_0x482517;for(;_0x482517['previousSibling']&&_0x482517['previousSibling']['is']('element','listItem');){const _0x34699d=_0x482517['previousSibling']['getAttribute']('listIndent');if(_0x34699d==_0x52a7e0)_0x4c4f91=_0x482517['previousSibling'];else{if(_0x34699d<_0x52a7e0)break;}_0x482517=_0x482517['previousSibling'];}return _0x4c4f91;}function Ee(_0x3949e8){const _0x3017e5=[];if(_0x3949e8['is']('element','listItem')&&_0x3949e8['getAttribute']('listIndent')>0x0){let _0x1b3724=_0x3949e8['nextSibling'];for(;_0x1b3724&&'listItem'==_0x1b3724['name']&&_0x1b3724['getAttribute']('listIndent')==_0x3949e8['getAttribute']('listIndent');)_0x3017e5['push'](_0x1b3724),_0x1b3724=_0x1b3724['nextSibling'];}return _0x3017e5;}class ht extends _0x189d79{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x13990b=this['editor']['config']['get']('list.properties'),_0x2808eb=this['editor']['plugins']['get']('TrackChangesEditing');_0x13990b['styles']&&_0x2808eb['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x13990b['reversed']&&_0x2808eb['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x13990b['startIndex']&&_0x2808eb['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2808eb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x12c021,_0x48c5ee={}){const _0x51468d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c9b5a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x51468d['markMultiRangeBlockFormat'](_0x1c9b5a,{'commandName':'listStyle','commandParams':[{'type':_0x48c5ee['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4892e6,_0x495507={}){const _0x2731a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d7259=this['_getSuggestionBlocks'](_0xa77428=>_0xa77428['is']('element','listItem')&&'numbered'===_0xa77428['getAttribute']('listType'));if(_0x5d7259['length']<0x1)return;const _0x155898=_0x5d7259['map'](_0x40e2b7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x40e2b7,'before'),this['editor']['model']['createPositionAt'](_0x40e2b7,0x0)));this['editor']['model']['change'](()=>{_0x2731a1['markMultiRangeBlockFormat'](_0x155898,{'commandName':'listReversed','commandParams':[{'reversed':_0x495507['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2dad83,_0x53b083={}){const _0x135d6a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5032bb=this['_getSuggestionBlocks'](_0xcc4c5e=>_0xcc4c5e['is']('element','listItem')&&'numbered'===_0xcc4c5e['getAttribute']('listType'));if(_0x5032bb['length']<0x1)return;const _0x3016c4=_0x5032bb['map'](_0x314d41=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x314d41,'before'),this['editor']['model']['createPositionAt'](_0x314d41,0x0)));this['editor']['model']['change'](()=>{_0x135d6a['markMultiRangeBlockFormat'](_0x3016c4,{'commandName':'listStart','commandParams':[{'startIndex':_0x53b083['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x15142f){if('formatBlock'!=_0x15142f['type']&&'formatInline'!=_0x15142f['type'])return;const _0x1d2ae3=this['editor']['locale'],{data:_0xc1bf95}=_0x15142f;if(!_0xc1bf95)return;let _0x5502f7,_0x2ac6d2;switch(_0xc1bf95['commandName']){case'listStyle':_0x5502f7='*Change\x20to:*\x20%0',_0x2ac6d2={'type':'format','content':o(_0x1d2ae3,_0x5502f7,o(_0x1d2ae3,this['_getTranslationKeyForListStyle'](_0xc1bf95['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5502f7=_0xc1bf95['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2ac6d2={'type':'format','content':o(_0x1d2ae3,_0x5502f7)};break;case'listStart':_0x5502f7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2ac6d2={'type':'format','content':o(_0x1d2ae3,_0x5502f7,_0xc1bf95['commandParams'][0x0]['startIndex'])};}return _0x2ac6d2;}['_getSuggestionBlocksForListStyle'](){const _0x25d15f=this['editor']['plugins']['get']('LegacyListUtils');let _0x19c7b1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x19c7b1[0x0]?.['is']('element','listItem')&&_0x19c7b1['unshift'](..._0x25d15f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x19c7b1[_0x19c7b1['length']-0x1]?.['is']('element','listItem')&&_0x19c7b1['push'](..._0x25d15f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x19c7b1=[...new Set(_0x19c7b1)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x19c7b1=_0x19c7b1['filter'](_0xfa57bc=>_0xfa57bc['is']('element','listItem'))),_0x19c7b1;}['_getSuggestionBlocks'](_0x184ee6){const _0x183157=this['editor']['plugins']['get']('LegacyListUtils');let _0x492f81=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x184ee6)['map'](_0x602c8f=>{const _0x30631e=this['editor']['model']['createPositionAt'](_0x602c8f,0x0);return[..._0x183157['getSiblingNodes'](_0x30631e,'backward'),..._0x183157['getSiblingNodes'](_0x30631e,'forward')];})['flat']();return _0x492f81=[...new Set(_0x492f81)],_0x492f81;}['_getTranslationKeyForListStyle'](_0x17e003){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x17e003)||'default')['toUpperCase']()+'_LIST_'+_0x17e003['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x189d79{['afterInit'](){const _0x54eda4=this['editor'];if(!_0x54eda4['plugins']['has']('MediaEmbedEditing'))return;const _0x3a26fa=_0x54eda4['plugins']['get']('TrackChangesEditing'),_0x5b9c54=_0x54eda4['locale'];_0x3a26fa['enableCommand']('mediaEmbed'),_0x3a26fa['descriptionFactory']['registerElementLabel']('media',_0x47b619=>o(_0x5b9c54,'ELEMENT_MEDIA',_0x47b619)),_0x54eda4['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1efbbc,{writer:_0x4a4795,options:_0x1cc5a2})=>{if(_0x1cc5a2['showSuggestionHighlights'])return _0x4a4795['createEmptyElement']('div');},'converterPriority':'high'}),_0x54eda4['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4f0772,_0x1605bf,_0x178b18)=>{_0x178b18['options']['showSuggestionHighlights']&&_0x4f0772['stop']();},{'priority':'high'});}}class lt extends _0x189d79{['afterInit'](){const _0x502465=this['editor'];_0x502465['plugins']['has']('MentionEditing')&&_0x502465['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x189d79{['afterInit'](){const _0x3fa810=this['editor'];if(!_0x3fa810['plugins']['has']('MergeFieldsEditing'))return;const _0x536b51=_0x3fa810['plugins']['get']('TrackChangesEditing'),_0x5a0d2b=_0x3fa810['locale'];_0x536b51['enableCommand']('insertMergeField'),_0x536b51['enableCommand']('insertMergeFieldBlock'),_0x536b51['enableCommand']('insertMergeFieldImage'),_0x536b51['descriptionFactory']['registerElementLabel']('mergeField',_0x1d40d5=>o(_0x5a0d2b,'ELEMENT_MERGE_FIELD',_0x1d40d5)),_0x536b51['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4c661f=>o(_0x5a0d2b,'ELEMENT_MERGE_FIELD',_0x4c661f)),_0x536b51['descriptionFactory']['registerDescriptionCallback'](_0x38f21e=>{if('insertion'!=_0x38f21e['type']&&'deletion'!=_0x38f21e['type'])return;const _0x43a806=_0x38f21e['getContainedElement']();if(null==_0x43a806)return;const _0x5dad56=_0x3fa810['plugins']['get']('MergeFieldsEditing');let _0x4c0b97;switch(_0x5dad56['getMergeFieldType'](_0x43a806)){case null:return;case'image':{const _0x17fe95=_0x5dad56['unwrapAffixes'](_0x43a806['getAttribute']('src'));_0x4c0b97=_0x5dad56['getLabel'](_0x17fe95)||_0x17fe95;break;}default:{const _0x2b9b6f=_0x43a806['getAttribute']('id');_0x4c0b97=_0x5dad56['getLabel'](_0x2b9b6f)||_0x2b9b6f;break;}}return'insertion'==_0x38f21e['type']?{'type':'insertion','content':o(_0x5a0d2b,'*Insert:*\x20%0','\x22'+_0x4c0b97+'\x22\x20'+o(_0x5a0d2b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5a0d2b,'*Remove:*\x20%0','\x22'+_0x4c0b97+'\x22\x20'+o(_0x5a0d2b,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x189d79{['afterInit'](){const _0x5acaac=this['editor'],_0x4601c6=_0x5acaac['plugins']['get']('TrackChangesEditing');_0x5acaac['plugins']['has']('MultiLevelList')&&(_0x4601c6['enableDefaultAttributesIntegration']('multiLevelList'),_0x4601c6['registerBlockAttribute']('listMarkerStyle'),_0x4601c6['descriptionFactory']['registerDescriptionCallback'](_0x340437=>this['handleDescriptions'](_0x340437)));}['handleDescriptions'](_0x39bccd){const _0x5c5857=this['editor']['locale'],{data:_0x433c88}=_0x39bccd,_0x4344f0={'type':'format','content':''};if(_0x433c88&&'listMarkerStyle'==_0x433c88['key']){if(!_0x433c88['oldValue'])return{'type':'format','content':o(_0x5c5857,'*Set\x20format:*\x20%0',o(_0x5c5857,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x433c88['newValue']+')'};if(!_0x433c88['newValue']){let _0x165499=_0x39bccd['head'];for(;_0x165499;){if(_0x165499['data']&&'listType'==_0x165499['data']['key']&&_0x165499['data']['newValue'])return _0x4344f0;_0x165499=_0x165499['next'];}return{'type':'format','content':o(_0x5c5857,'*Remove\x20format:*\x20%0',o(_0x5c5857,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x433c88['oldValue']+')'};}}}}class pt extends _0x189d79{['afterInit'](){const _0x483b4d=this['editor'];if(!_0x483b4d['plugins']['has']('PageBreakEditing'))return;_0x483b4d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x463b33=_0x483b4d['plugins']['get']('TrackChangesEditing'),_0x3c29d7=_0x483b4d['locale'];_0x463b33['descriptionFactory']['registerElementLabel']('pageBreak',_0x333009=>o(_0x3c29d7,'ELEMENT_PAGE_BREAK',_0x333009));}}class kt extends _0x189d79{['afterInit'](){const _0x48ecc=this['editor'];if(!_0x48ecc['plugins']['has']('Paragraph'))return;const _0x2b34e1=_0x48ecc['locale'],_0x4dd5fd=_0x48ecc['plugins']['get']('TrackChangesEditing');_0x4dd5fd['descriptionFactory']['registerElementLabel']('paragraph',_0x3dcb79=>o(_0x2b34e1,'ELEMENT_PARAGRAPH',_0x3dcb79)),_0x4dd5fd['enableDefaultAttributesIntegration']('paragraph'),_0x4dd5fd['enableCommand']('insertParagraph'),_0x48ecc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x48ecc),{'priority':'highest'}),_0x48ecc['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3be770,_0x3c0eda,_0x141977)=>{_0x141977['options']['showSuggestionHighlights']&&nr(_0x48ecc,{'showActiveMarker':!0x1})(_0x3be770,_0x3c0eda,_0x141977);},{'priority':'highest'});const _0x14a89b=_0x4dd5fd['descriptionFactory'];_0x14a89b['registerDescriptionCallback'](_0x175894=>{if('insertion'!==_0x175894['type'])return;const {start:_0x11e08e,end:_0x1a23e6}=_0x175894['getFirstRange']();if(!_0x11e08e['isTouching'](_0x1a23e6)||!_0x11e08e['nodeAfter'])return;const _0x3c3d2c=_0x48ecc['model']['schema'],_0x4f4762=_0x11e08e['nodeAfter'];return _0x3c3d2c['isBlock'](_0x4f4762)&&!_0x3c3d2c['isLimit'](_0x4f4762)&&_0x3c3d2c['checkChild'](_0x4f4762,'$text')?{'type':'insertion','content':o(_0x2b34e1,'*Insert:*\x20%0',_0x14a89b['getItemLabel'](_0x4f4762,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c206f=this['editor'],_0x2ebb5a=_0x5c206f['locale'];_0x5c206f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30de06=>{if('formatBlock'!=_0x30de06['type'])return;const {data:_0x303d49}=_0x30de06;return _0x303d49&&'paragraph'==_0x303d49['commandName']?{'type':'format','content':o(_0x2ebb5a,'*Change\x20to:*\x20%0',o(_0x2ebb5a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2bdb3a,{showActiveMarker:_0x44f8d6=!0x0}={}){return(_0x67e93a,_0x88bd13,_0x2075f4)=>{const _0x4cbf18=_0x2bdb3a['plugins']['get']('TrackChangesEditing'),_0xcabd5c=_0x88bd13['markerRange']['start'],_0x47ce0b=_0x88bd13['markerRange']['end'],_0x389e56=_0x2bdb3a['model']['schema'];if(!_0xcabd5c['isTouching'](_0x47ce0b)||!_0xcabd5c['nodeAfter'])return;const _0x272a35=_0xcabd5c['nodeAfter'];if(_0x389e56['isBlock'](_0x272a35)&&!_0x389e56['isLimit'](_0x272a35)&&_0x389e56['checkChild'](_0x272a35,'$text')){if(!_0x2075f4['consumable']['consume'](_0x88bd13['markerRange'],_0x67e93a['name']))return;const {id:_0x563e65,authorId:_0x100982}=_0x4cbf18['_splitMarkerName'](_0x88bd13['markerName']),_0x347878=_0x2075f4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x563e65,'data-author-id':_0x100982}),_0x565c2a=_0x2075f4['mapper']['toViewPosition'](_0x47ce0b);_0x44f8d6&&_0x4cbf18['activeMarkers']['includes'](_0x88bd13['markerName'])&&_0x2075f4['writer']['addClass']('ck-suggestion-marker--active',_0x347878),_0x2075f4['writer']['insert'](_0x565c2a,_0x347878),_0x2075f4['mapper']['bindElementToMarker'](_0x347878,_0x88bd13['markerName']);}};}class wt extends _0x189d79{['afterInit'](){const _0x401752=this['editor'];_0x401752['commands']['get']('replaceSource')&&_0x401752['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x189d79{['afterInit'](){const _0x444cc8=this['editor'];if(!_0x444cc8['plugins']['has']('RemoveFormatEditing'))return;_0x444cc8['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x457e4f=this['editor'];_0x457e4f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9a7d4d=>{if('formatBlock'!=_0x9a7d4d['type']&&'formatInline'!=_0x9a7d4d['type'])return;const {data:_0xde282}=_0x9a7d4d;return _0xde282&&'removeFormat'==_0xde282['commandName']?{'type':'format','content':o(_0x457e4f['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x189d79{['afterInit'](){const _0x3a3f03=this['editor'];if(!_0x3a3f03['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3fcab0=_0x3a3f03['plugins']['get']('TrackChangesEditing');_0x3fcab0['enableCommand']('goToPreviousRestrictedEditingException'),_0x3fcab0['enableCommand']('goToNextRestrictedEditingException');const _0x4295fb=_0x3a3f03['plugins']['get']('RestrictedEditingModeEditing');_0x4295fb['enableCommand']('trackChanges'),_0x4295fb['enableCommand']('acceptSuggestion'),_0x4295fb['enableCommand']('discardSuggestion'),_0x4295fb['enableCommand']('acceptAllSuggestions'),_0x4295fb['enableCommand']('discardAllSuggestions'),_0x4295fb['enableCommand']('acceptSelectedSuggestions'),_0x4295fb['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x189d79{['afterInit'](){const _0x12e9fe=this['editor'];if(!_0x12e9fe['plugins']['has']('ShiftEnter'))return;const _0x1d6850=_0x12e9fe['plugins']['get']('TrackChangesEditing');_0x1d6850['enableCommand']('shiftEnter'),_0x12e9fe['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x12e9fe),{'priority':'high'}),_0x12e9fe['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x12e9fe),{'priority':'high'}),_0x12e9fe['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x30d025,_0x4a058d,_0x41d899)=>{_0x41d899['options']['showSuggestionHighlights']&&je(_0x12e9fe,{'showActiveMarker':!0x1})(_0x30d025,_0x4a058d,_0x41d899);}),_0x1d6850['descriptionFactory']['registerElementLabel']('softBreak',_0x5d51c0=>o(_0x12e9fe['locale'],'ELEMENT_LINE_BREAK',_0x5d51c0));}}function je(_0x63aad6,{showActiveMarker:_0x12f478=!0x0}={}){return(_0x395c76,_0x275f5f,_0x3c2319)=>{const _0x591cba=_0x63aad6['plugins']['get']('TrackChangesEditing');if(!_0x3c2319['consumable']['test'](_0x275f5f['markerRange'],_0x395c76['name']))return;const _0x4ad058=_0x63aad6['model'];for(const _0x1d2e61 of _0x275f5f['markerRange']['getItems']()){if(!_0x1d2e61['is']('element','softBreak'))continue;const _0x3e503a='deletion'==_0x275f5f['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x5aa969,authorId:_0x5cc763}=_0x591cba['_splitMarkerName'](_0x275f5f['markerName']),_0x385e21=_0x3c2319['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3e503a,'data-suggestion':_0x5aa969,'data-author-id':_0x5cc763}),_0x4913ba=_0x3c2319['mapper']['toViewPosition'](_0x4ad058['createPositionBefore'](_0x1d2e61));_0x12f478&&_0x591cba['activeMarkers']['includes'](_0x275f5f['markerName'])&&_0x3c2319['writer']['addClass']('ck-suggestion-marker--active',_0x385e21),_0x3c2319['writer']['insert'](_0x4913ba,_0x385e21),_0x3c2319['mapper']['bindElementToMarker'](_0x385e21,_0x275f5f['markerName']);}};}class St extends _0x189d79{['afterInit'](){const _0x33afd4=this['editor'],_0x931a00=_0x33afd4['model'],_0x2ea120=_0x33afd4['locale'];if(!_0x33afd4['plugins']['has']('StandardEditingModeEditing'))return;const _0x5328e6=_0x33afd4['plugins']['get']('TrackChangesEditing'),_0x1a1cda='restrictedEditingException',_0x3d8ba3=_0x33afd4['commands']['get'](_0x1a1cda);_0x5328e6['enableCommand'](_0x1a1cda,(_0x26d4f2,_0x47b4ff={})=>{const _0x17507c=_0x931a00['document']['selection'];if(_0x17507c['isCollapsed'])return void _0x26d4f2(_0x47b4ff);const _0x2e812b=void 0x0!==_0x47b4ff['forceValue']?_0x47b4ff['forceValue']:!_0x3d8ba3['value'];_0x931a00['change'](()=>{const _0x8f4436=Array['from'](_0x17507c['getRanges']());for(const _0x942b2a of _0x8f4436){const _0x3b138f=_0x2e812b?[_0x942b2a]:io(_0x1a1cda,_0x942b2a,_0x931a00);for(const _0x3dc70f of _0x3b138f)_0x5328e6['markInlineFormat'](_0x3dc70f,{'commandName':_0x1a1cda,'commandParams':[{'forceValue':_0x2e812b}]});}});}),_0x5328e6['descriptionFactory']['registerDescriptionCallback'](_0x1bf17b=>{if('formatBlock'!=_0x1bf17b['type']&&'formatInline'!=_0x1bf17b['type'])return;const {data:_0x3d70b5}=_0x1bf17b;return _0x3d70b5&&_0x3d70b5['commandName']==_0x1a1cda?_0x3d70b5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2ea120,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2ea120,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x189d79{['afterInit'](){const _0x3a9d15=this['editor'];if(!_0x3a9d15['plugins']['has']('Style')||!_0x3a9d15['plugins']['has']('DataSchema'))return;const _0x49e673=_0x3a9d15['plugins']['get']('TrackChangesEditing'),_0x154943=_0x3a9d15['locale'],_0x15a33b=_0x3a9d15['config']['get']('style')||{},_0x1ca6bb=_0x3a9d15['plugins']['get']('GeneralHtmlSupport'),_0x2c96c5=_0x3a9d15['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3a9d15['plugins']['get']('DataSchema'),_0x15a33b['definitions']);_0x49e673['enableDefaultAttributesIntegration']('style');const _0xb003a0=new Set();for(const _0x3ef8cf of _0x2c96c5['block']){const _0x3d0cea=_0x1ca6bb['getGhsAttributeNameForElement'](_0x3ef8cf['element']);_0xb003a0['add'](_0x3d0cea);}const _0x2fb7fc=new Set();for(const _0x149cba of _0x2c96c5['inline']){const _0x47967e=_0x1ca6bb['getGhsAttributeNameForElement'](_0x149cba['element']);_0x2fb7fc['add'](_0x47967e);for(const _0x49165f of _0x149cba['ghsAttributes'])_0x2fb7fc['add'](_0x49165f);}for(const _0x5779f4 of _0xb003a0)_0x49e673['registerBlockAttribute'](_0x5779f4),_0x49e673['descriptionFactory']['registerAttributeLabel'](_0x5779f4,o(_0x154943,'FORMAT_STYLE'));for(const _0x3fcd4e of _0x2fb7fc)_0x49e673['registerInlineAttribute'](_0x3fcd4e),_0x49e673['descriptionFactory']['registerAttributeLabel'](_0x3fcd4e,o(_0x154943,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49c104=this['editor'],_0x2e03a4=_0x49c104['locale'];_0x49c104['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51a4c4=>{if('formatBlock'!=_0x51a4c4['type']&&'formatInline'!=_0x51a4c4['type'])return;const {data:_0x2fec2f}=_0x51a4c4;return _0x2fec2f&&'style'===_0x2fec2f['commandName']?_0x2fec2f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2e03a4,'*Set\x20format:*\x20%0',_0x2fec2f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2e03a4,'*Remove\x20format:*\x20%0',_0x2fec2f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x189d79{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1e4c37){super(_0x1e4c37),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x6db340=this['editor'],_0x324b6c=_0x6db340['model']['document']['selection'];if(!_0x6db340['plugins']['has']('TableEditing'))return;const _0x344f02=_0x6db340['locale'],_0x37e4c0=_0x6db340['plugins']['get']('TrackChangesEditing'),_0x4880dc=_0x6db340['plugins']['get']('TableUtils');_0x37e4c0['descriptionFactory']['registerElementLabel']('table',_0x39a40b=>o(_0x344f02,'ELEMENT_TABLE',_0x39a40b)),this['_setupColumnsRowsFixing'](),_0x37e4c0['enableCommand']('insertTable'),_0x37e4c0['enableCommand']('selectTableRow'),_0x37e4c0['enableCommand']('selectTableColumn');for(const _0x1eaaf3 of['insertTableRowAbove','insertTableRowBelow']){const _0x40eb95=_0x6db340['commands']['get'](_0x1eaaf3);_0x37e4c0['enableCommand'](_0x1eaaf3,_0x404a63=>{_0x6db340['model']['change'](_0x6e7511=>{_0x404a63();const _0x377b67='above'===_0x40eb95['order'],_0x31e0f4=_0x4880dc['getSelectionAffectedTableCells'](_0x324b6c),_0x128e4b=_0x4880dc['getRowIndexes'](_0x31e0f4),_0x2d7484=_0x377b67?_0x128e4b['first']-0x1:_0x128e4b['last']+0x1,_0x5a1b06=_0x31e0f4[0x0]['findAncestor']('table'),_0x4c5fa4=_0x4880dc['createTableWalker'](_0x5a1b06,{'startRow':_0x2d7484,'endRow':_0x2d7484}),_0x298d57=Array['from'](_0x4c5fa4)['map'](_0x303db=>_0x6e7511['createRangeOn'](_0x303db['cell']));_0x37e4c0['markMultiRangeInsertion'](_0x298d57,'tableRow');});});}for(const _0x37ada4 of['insertTableColumnLeft','insertTableColumnRight']){const _0x45afcc=_0x6db340['commands']['get'](_0x37ada4);_0x37e4c0['enableCommand'](_0x37ada4,_0x13d5d5=>{_0x6db340['model']['change'](_0x66c3f=>{_0x13d5d5();const _0x376ed9='left'===_0x45afcc['order'],_0x550135=_0x4880dc['getSelectionAffectedTableCells'](_0x324b6c),_0x50d1d3=_0x4880dc['getColumnIndexes'](_0x550135),_0x461356=_0x376ed9?_0x50d1d3['first']-0x1:_0x50d1d3['last']+0x1,_0x5abf85=_0x550135[0x0]['findAncestor']('table'),_0x4452c5=_0x4880dc['createTableWalker'](_0x5abf85,{'startRow':0x0,'column':_0x461356,'includeAllSlots':!0x1}),_0x5d1ae=Array['from'](_0x4452c5)['map'](_0x4413cd=>_0x66c3f['createRangeOn'](_0x4413cd['cell']));_0x37e4c0['markMultiRangeInsertion'](_0x5d1ae,'tableColumn');});});}for(const _0x1aec38 of['removeTableRow','removeTableColumn']){const _0x16689b=_0x1aec38['substr'](0xb),_0x34770=_0x16689b['toLowerCase'](),_0x1f58e0=_0x34770['substr'](0x0,0x3)+'span',_0x58a467='table'+_0x16689b,_0x2edb93='min'+_0x16689b,_0x3d4eed='max'+_0x16689b;_0x37e4c0['enableCommand'](_0x1aec38,()=>{_0x6db340['model']['change'](_0x1db4a2=>{const _0x2c3296=_0x4880dc['getSelectionAffectedTableCells'](_0x324b6c),_0x4fc4a8=_0x2c3296[0x0]['findAncestor']('table');let _0x4f4df7;if('removeTableRow'==_0x1aec38){const _0x22b64b=_0x4880dc['getRowIndexes'](_0x2c3296);_0x4f4df7={'startRow':_0x22b64b['first'],'endRow':_0x22b64b['last'],'includeAllSlots':!0x0};}else{const _0x24e616=_0x4880dc['getColumnIndexes'](_0x2c3296);_0x4f4df7={'startColumn':_0x24e616['first'],'endColumn':_0x24e616['last'],'includeAllSlots':!0x0};}const _0x479f2e=_0x4880dc['createTableWalker'](_0x4fc4a8,_0x4f4df7),_0x1930ec=Array['from'](_0x479f2e)['map'](({cell:_0x48ede9})=>_0x48ede9),_0x2fae67=Ne(_0x1930ec['filter'](_0x539940=>_0x539940['hasAttribute'](_0x1f58e0))),_0x2500d9=Ne(_0x1930ec['filter'](_0x5dec85=>!_0x5dec85['hasAttribute'](_0x1f58e0)))['map'](_0x175767=>_0x1db4a2['createRangeOn'](_0x175767)),_0x567863=_0x37e4c0['markMultiRangeDeletion'](_0x2500d9,_0x58a467);if(_0x567863&&('tableRow'==_0x567863['subType']||'tableColumn'==_0x567863['subType'])){const _0x2a5eed=this['_getSuggestionCoords'](_0x567863);for(const _0x469013 of _0x2fae67){const _0x36507c=_0x1db4a2['createRangeOn'](_0x469013),_0xd16709=_0x4880dc['getCellLocation'](_0x469013),_0x25f268=_0x469013['getAttribute'](_0x1f58e0)-0x1,_0x276fe8=_0x2a5eed[_0x2edb93],_0x3366fe=_0x2a5eed[_0x3d4eed];_0x276fe8<=_0xd16709[_0x34770]&&_0xd16709[_0x34770]+_0x25f268<=_0x3366fe&&_0x567863['addRange'](_0x36507c);}}});});}function _0x25c635(_0x433da6){const _0x5bb7e0=Array['from'](_0x324b6c['getRanges']())['map'](_0x1a6c45=>_0x247134['fromRange'](_0x1a6c45));_0x6db340['model']['change'](_0x3a1bf7=>{const _0x48fd28=_0x3a1bf7['batch'];_0x433da6=_0x433da6['filter'](_0x4ff605=>'$graveyard'!=_0x4ff605['root']['rootName']),_0x3a1bf7['setSelection'](_0x433da6),_0x6db340['commands']['get']('removeTableRow')['refresh'](),_0x6db340['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x6db340['model']['enqueueChange'](()=>{_0x6db340['model']['enqueueChange'](_0x48fd28,_0x166325=>{const _0x26bb62=_0x5bb7e0['filter'](_0x590245=>'$graveyard'!=_0x590245['root']['rootName']);_0x26bb62['length']>0x0&&_0x166325['setSelection'](_0x26bb62);for(const _0x2e1570 of _0x5bb7e0)_0x2e1570['detach']();});});});}function _0x2d7c52(_0x27564e){_0x6db340['model']['change'](_0x101c05=>{const _0x4e0cfa=Array['from'](_0x324b6c['getRanges']())['map'](_0x52692c=>_0x247134['fromRange'](_0x52692c)),_0x2b068a=[];for(const _0xb339cb of _0x27564e)for(const _0x2e8845 of _0xb339cb['getItems']({'shallow':!0x0}))_0x2b068a['push'](_0x2e8845);for(const _0x2f12b4 of _0x2b068a)'$graveyard'!=_0x2f12b4['root']['rootName']&&(_0x101c05['setSelection'](_0x101c05['createPositionAt'](_0x2f12b4,0x0)),_0x6db340['commands']['get']('removeTableColumn')['refresh'](),_0x6db340['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x12a0f1=_0x4e0cfa['filter'](_0x59af01=>'$graveyard'!=_0x59af01['root']['rootName']);_0x12a0f1['length']>0x0&&_0x101c05['setSelection'](_0x12a0f1);for(const _0x54410c of _0x4e0cfa)_0x54410c['detach']();});}function _0x4ee2c7(_0x149033,_0xedfee3){return _0xedfee3['every'](_0x40ea28=>_0x149033['some'](_0x1d246f=>_0x1d246f['end']['isEqual'](_0x40ea28['start'])||_0x40ea28['end']['isEqual'](_0x1d246f['start'])));}function _0x258ad6(_0x1b8dab,_0x2c65aa){return!_0x1b8dab['some'](_0x429042=>_0x2c65aa['some'](_0xa1a63e=>_0x429042['isIntersecting'](_0xa1a63e)))&&_0x1b8dab['some'](_0x3d5716=>_0x2c65aa['some'](_0x4a859f=>_0x3d5716['end']['isTouching'](_0x4a859f['start'])));}_0x6db340['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x468dd7,_0x2594c4,_0x11824a)=>{if(!_0x11824a['options']['showSuggestionHighlights'])return;const _0x5a0097=_0x2594c4['item'];if(!_0x5a0097||!_0x5a0097['is']('element','tableCell'))return;const _0x5dc168=_0x11824a['mapper']['toViewElement'](_0x5a0097);if(_0x5dc168){const {id:_0x30cee3,authorId:_0x502c61}=_0x37e4c0['_splitMarkerName'](_0x2594c4['markerName']);_0xe7b566(_0x5dc168,_0x11824a['writer'],(_0x14c615,_0x324328,_0x514920)=>{_0x514920['addClass'](_0x127efe(_0x324328['classes']),_0x14c615),_0x514920['setAttribute']('data-suggestion-id',_0x30cee3,_0x14c615),_0x514920['setAttribute']('data-author-id',_0x502c61,_0x14c615);},(_0x40e886,_0x1230f5,_0x42cc42)=>{_0x42cc42['removeClass'](_0x127efe(_0x1230f5['classes']),_0x40e886),_0x42cc42['removeAttribute']('data-suggestion-id',_0x40e886),_0x42cc42['removeAttribute']('data-author-id',_0x40e886);});}},{'priority':'highest'}),_0x37e4c0['descriptionFactory']['registerDescriptionCallback'](_0x334967=>{if('insertion'!=_0x334967['type']&&'deletion'!=_0x334967['type'])return;const _0x1e147c=_0x334967['getContainedElement']();if(null!=_0x1e147c&&_0x1e147c['is']('element','table')){if('insertion'==_0x334967['type']){const _0x3a9056=_0x334967['getItems']()['filter'](_0x3421dc=>_0x3421dc['is']('$textProxy'))['map'](_0x3526d2=>_0x3526d2['data']);if(_0x3a9056['length'])return{'type':'insertion','content':o(_0x344f02,'*Insert:*\x20%0',o(_0x344f02,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3a9056['join']('\x20')+'\x22'))};}if('deletion'==_0x334967['type']){const _0xed4fe8=_0x334967['getItems']()['filter'](_0x1900e7=>_0x1900e7['is']('$textProxy'))['map'](_0x34f23d=>_0x34f23d['data']);if(_0xed4fe8['length'])return{'type':'deletion','content':o(_0x344f02,'*Remove:*\x20%0',o(_0x344f02,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xed4fe8['join']('\x20')+'\x22'))};}}}),_0x37e4c0['descriptionFactory']['registerDescriptionCallback'](_0x30ffa3=>{if('tableRow'==_0x30ffa3['subType']){const _0x44f96f=_0x30ffa3['getItems']()['filter'](_0x15fcdb=>_0x15fcdb['is']('$textProxy'))['map'](_0x524d0b=>_0x524d0b['data']),_0x397ab5=this['_getSuggestionCoords'](_0x30ffa3),_0x661a42=_0x397ab5['maxRow']-_0x397ab5['minRow']+0x1;if('insertion'==_0x30ffa3['type'])return _0x44f96f['length']?{'type':'insertion','content':o(_0x344f02,'*Insert:*\x20%0',o(_0x344f02,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x661a42,'\x22'+_0x44f96f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x344f02,'*Insert:*\x20%0',o(_0x344f02,'ELEMENT_TABLE_ROW',_0x661a42))};if('deletion'==_0x30ffa3['type'])return _0x44f96f['length']?{'type':'deletion','content':o(_0x344f02,'*Remove:*\x20%0',o(_0x344f02,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x661a42,'\x22'+_0x44f96f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x344f02,'*Remove:*\x20%0',o(_0x344f02,'ELEMENT_TABLE_ROW',_0x661a42))};}if('tableColumn'==_0x30ffa3['subType']){const _0x1e740d=_0x30ffa3['getItems']()['filter'](_0x4cdad5=>_0x4cdad5['is']('$textProxy'))['map'](_0x507669=>_0x507669['data']),_0x1bf99d=this['_getSuggestionCoords'](_0x30ffa3),_0x163460=_0x1bf99d['maxColumn']-_0x1bf99d['minColumn']+0x1;if('insertion'==_0x30ffa3['type'])return _0x1e740d['length']?{'type':'insertion','content':o(_0x344f02,'*Insert:*\x20%0',o(_0x344f02,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x163460,'\x22'+_0x1e740d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x344f02,'*Insert:*\x20%0',o(_0x344f02,'ELEMENT_TABLE_COLUMN',_0x163460))};if('deletion'==_0x30ffa3['type'])return _0x1e740d['length']?{'type':'deletion','content':o(_0x344f02,'*Remove:*\x20%0',o(_0x344f02,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x163460,'\x22'+_0x1e740d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x344f02,'*Remove:*\x20%0',o(_0x344f02,'ELEMENT_TABLE_COLUMN',_0x163460))};}}),_0x37e4c0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x25c635),_0x37e4c0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x25c635),_0x37e4c0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2d7c52),_0x37e4c0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2d7c52),_0x37e4c0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4ee2c7),_0x37e4c0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4ee2c7),_0x37e4c0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x258ad6),_0x37e4c0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x258ad6);}['_acceptFormatSuggestionCallbackFactory'](){const _0xcfcf32=this['editor'],_0x48c773=_0xcfcf32['model']['document']['selection'];return(_0x5120ef,_0x128c70)=>{_0xcfcf32['model']['change'](_0x1821a8=>{const {commandName:_0x495d03,commandParams:_0xa3681e}=_0x128c70;let _0x22fc60=_0x5120ef[0x0]['end']['nodeBefore'];_0xa3681e&&_0xa3681e[0x0]&&!0x1===_0xa3681e[0x0]['forceValue']&&(_0x22fc60=_0x5120ef[0x0]['start']['nodeAfter']);const _0x162586=_0x1821a8['createRangeIn'](_0x22fc60);if('$graveyard'==_0x162586['root']['rootName'])return;const _0x2549e3=Array['from'](_0x48c773['getRanges']())['map'](_0x8229a5=>_0x247134['fromRange'](_0x8229a5));_0x1821a8['setSelection'](_0x162586),_0xcfcf32['commands']['get'](_0x495d03)['refresh'](),_0xa3681e['push']({'forceDefaultExecution':!0x0}),_0xcfcf32['execute'](_0x495d03,..._0xa3681e);const _0x32f192=_0x2549e3['filter'](_0x321a64=>'$graveyard'!=_0x321a64['root']['rootName']);_0x32f192['length']>0x0&&_0x1821a8['setSelection'](_0x32f192);for(const _0x3177b4 of _0x2549e3)_0x3177b4['detach']();});};}['_getCoordsForCells'](_0x24f0cf){const _0x4e2619=this['editor']['plugins']['get']('TableUtils');let _0x59da3e=Number['MAX_SAFE_INTEGER'],_0x4b1093=Number['MIN_SAFE_INTEGER'],_0x294aab=Number['MAX_SAFE_INTEGER'],_0x5ed790=Number['MIN_SAFE_INTEGER'];for(const _0x57b9e3 of _0x24f0cf){if('$graveyard'==_0x57b9e3['root']['rootName'])continue;const {row:_0x176cc3,column:_0x473b41}=_0x4e2619['getCellLocation'](_0x57b9e3),_0x5d9877=_0x57b9e3['hasAttribute']('rowspan')?_0x57b9e3['getAttribute']('rowspan')-0x1:0x0,_0x41c157=_0x57b9e3['hasAttribute']('colspan')?_0x57b9e3['getAttribute']('colspan')-0x1:0x0;_0x59da3e=_0x176cc3<_0x59da3e?_0x176cc3:_0x59da3e,_0x4b1093=_0x176cc3+_0x5d9877>_0x4b1093?_0x176cc3+_0x5d9877:_0x4b1093,_0x294aab=_0x473b41<_0x294aab?_0x473b41:_0x294aab,_0x5ed790=_0x473b41+_0x41c157>_0x5ed790?_0x473b41+_0x41c157:_0x5ed790;}return{'minRow':_0x59da3e,'maxRow':_0x4b1093,'minColumn':_0x294aab,'maxColumn':_0x5ed790};}['_setupColumnsRowsFixing'](){const _0xabf0b9=this['editor'],_0x1302ec=_0xabf0b9['plugins']['get']('TrackChangesEditing'),_0x415b6e=_0xabf0b9['plugins']['get']('TableUtils');_0xabf0b9['model']['document']['on']('change:data',()=>{const _0x25b4fd=Array['from'](_0xabf0b9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x549bc8,data:_0x3522a4}of _0x25b4fd){const {group:_0xcfcfbf,id:_0x448ba0,subType:_0x55d19a}=_0x1302ec['_splitMarkerName'](_0x549bc8);if('suggestion'!=_0xcfcfbf)continue;if(null!=_0x3522a4['oldRange'])continue;const _0x2b0efd=_0x1302ec['getSuggestion'](_0x448ba0);this['_tablePostFixingSubtypes']['includes'](_0x55d19a)&&this['_tableSuggestions']['add'](_0x2b0efd);}},{'priority':'low'});const _0x51a94e=(_0x404b27,_0x348b58)=>{let _0x57e8c5=!0x1;const _0x4370a6=_0x348b58['createRangeOn'](_0x404b27),_0x25b943=_0x404b27['findAncestor']('table'),_0x3f0509=_0x415b6e['getCellLocation'](_0x404b27);for(const _0x4d496a of this['_tableSuggestions']){const _0x475891=_0x4d496a['subType'],_0x5bdb39=_0x475891['startsWith']('tablePaste'),_0x5d09c8=_0x475891['substr'](_0x5bdb39?0xa:0x5),_0x2a5a8a=_0x5d09c8['toLowerCase'](),_0x818f04=_0x2a5a8a['substr'](0x0,0x3)+'span',_0x20fea5='min'+_0x5d09c8,_0x34c837='max'+_0x5d09c8;if(!_0x4d496a['isInContent'])continue;if(_0x25b943!=_0x4d496a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4d496a['isIntersectingWithRange'](_0x4370a6))continue;const _0x57ecbf=_0x404b27['hasAttribute'](_0x818f04)?_0x404b27['getAttribute'](_0x818f04)-0x1:0x0,_0x406ec7=this['_getSuggestionCoords'](_0x4d496a),_0x5c078c=_0x406ec7[_0x20fea5],_0x5a8932=_0x406ec7[_0x34c837];_0x5c078c<=_0x3f0509[_0x2a5a8a]&&_0x3f0509[_0x2a5a8a]+_0x57ecbf<=_0x5a8932&&(_0x4d496a['addRange'](_0x4370a6),_0x57e8c5=!0x0);}return _0x57e8c5;};_0xabf0b9['model']['document']['registerPostFixer'](_0x191903=>{let _0x36de8b=!0x1;for(const _0x2c6b95 of _0xabf0b9['model']['document']['differ']['getChanges']())if('insert'==_0x2c6b95['type']){if('tableRow'==_0x2c6b95['name']){for(const _0x1faffd of _0x2c6b95['position']['nodeAfter']['getChildren']())_0x36de8b=_0x36de8b||_0x51a94e(_0x1faffd,_0x191903);}else'tableCell'==_0x2c6b95['name']&&(_0x36de8b=_0x36de8b||_0x51a94e(_0x2c6b95['position']['nodeAfter'],_0x191903));}return _0x36de8b;});}['_getSuggestionCoords'](_0x3ac35e){return this['_getCoordsForCells'](_0x3ac35e['getRanges']()['map'](_0x1f3754=>_0x1f3754['start']['nodeAfter']));}}function Ne(_0x253c09){return Array['from'](new Set(_0x253c09)['values']());}class _t extends _0x189d79{static get['requires'](){return[At];}['afterInit'](){const _0x49cdf9=this['editor'],_0x54bcd0=_0x49cdf9['model']['document']['selection'],_0x29976b=_0x49cdf9['locale'];if(!_0x49cdf9['plugins']['has']('TableEditing'))return;const _0x110bef=_0x49cdf9['plugins']['get']('TrackChangesEditing'),_0x1704b1=_0x49cdf9['plugins']['get']('TableUtils'),_0x1a4615=_0x49cdf9['plugins']['get'](At);_0x1a4615['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x110bef['enableCommand']('mergeTableCells',()=>{const _0x443503=_0x1704b1['getSelectionAffectedTableCells'](_0x49cdf9['model']['document']['selection']);_0x49cdf9['model']['change'](()=>{_0x110bef['markMultiRangeBlockFormat'](_0x443503,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x49cdf9['commands']['get']('mergeTableCells')['on']('execute',(_0x521a15,_0x19e58c)=>{_0x49cdf9['commands']['get']('trackChanges')['value']&&(_0x19e58c['length']>0x0&&_0x19e58c[_0x19e58c['length']-0x1]&&_0x19e58c[_0x19e58c['length']-0x1]['forceDefaultExecution']||_0x110bef['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x521a15['stop']());},{'priority':'highest'});for(const _0x5912f2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4224b4=_0x49cdf9['commands']['get'](_0x5912f2);_0x110bef['enableCommand'](_0x5912f2,()=>{const _0x53cac6=_0x49cdf9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3e24e1=>_0x3e24e1['is']('element','tableCell')),_0x45db1f=_0x4224b4['value'];_0x49cdf9['model']['change'](()=>{_0x110bef['markMultiRangeBlockFormat']([_0x53cac6,_0x45db1f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x381c1b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x173d17=_0x49cdf9['commands']['get'](_0x381c1b);_0x110bef['enableCommand'](_0x381c1b,()=>{const _0x25382c=_0x1704b1['getSelectionAffectedTableCells'](_0x49cdf9['model']['document']['selection'])[0x0],_0x56b988=_0x25382c['findAncestor']('table'),{column:_0x576c2c,row:_0x5ba438}=_0x1704b1['getCellLocation'](_0x25382c);let _0x17830a=[];if('horizontally'==_0x173d17['direction']){const _0x5c235f=_0x1704b1['createTableWalker'](_0x56b988,{'startRow':_0x5ba438,'endRow':_0x5ba438,'includeAllSlots':!0x0});_0x17830a=Array['from'](_0x5c235f)['map'](_0x44f781=>_0x44f781['cell']);}else{const _0x4da4db=_0x1704b1['createTableWalker'](_0x56b988,{'column':_0x576c2c,'includeAllSlots':!0x0});_0x17830a=Array['from'](_0x4da4db)['map'](_0xdceb90=>_0xdceb90['cell']);}_0x49cdf9['model']['change'](_0x3f6373=>{_0x110bef['markBlockFormat'](_0x3f6373['createRangeOn'](_0x25382c),{'commandName':_0x381c1b,'commandParams':[]},_0x17830a,_0x381c1b);});});}_0x110bef['descriptionFactory']['registerDescriptionCallback'](_0x264181=>{if('formatBlock'!=_0x264181['type']&&'formatInline'!=_0x264181['type'])return;const {data:_0x9ec2da}=_0x264181;return _0x9ec2da&&'mergeTableCells'==_0x9ec2da['commandName']?{'type':'format','content':o(_0x29976b,'*Merge\x20cells*')}:void 0x0;}),_0x110bef['descriptionFactory']['registerDescriptionCallback'](_0x1d446d=>{if('formatBlock'!=_0x1d446d['type']&&'formatInline'!=_0x1d446d['type'])return;const {data:_0x30d3df}=_0x1d446d;return _0x30d3df?'splitTableCellVertically'==_0x30d3df['commandName']?{'type':'format','content':o(_0x29976b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x30d3df['commandName']?{'type':'format','content':o(_0x29976b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x540a51=_0x1a4615['_acceptFormatSuggestionCallbackFactory']();for(const _0x10ab9e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x110bef['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x10ab9e,'accept',_0x540a51);for(const _0x5f0d93 of['splitTableCellVertically','splitTableCellHorizontally'])_0x110bef['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5f0d93,'accept',_0x540a51);_0x110bef['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x21570d=>{_0x49cdf9['model']['change'](_0x200fa0=>{const _0x267a4d=Array['from'](_0x54bcd0['getRanges']())['map'](_0x321760=>_0x247134['fromRange'](_0x321760));_0x200fa0['setSelection'](_0x21570d),_0x49cdf9['commands']['get']('mergeTableCells')['refresh'](),_0x49cdf9['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4f90dc=_0x267a4d['filter'](_0x40194f=>'$graveyard'!=_0x40194f['root']['rootName']);_0x4f90dc['length']>0x0&&_0x200fa0['setSelection'](_0x4f90dc);for(const _0x4b3bed of _0x267a4d)_0x4b3bed['detach']();});});for(const _0x3bb8a2 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x59d179=_0x49cdf9['commands']['get'](_0x3bb8a2);_0x59d179['on']('set:isEnabled',(_0xa0dda7,_0x535970,_0x13656f)=>{if(_0x13656f){const _0x213776=_0x49cdf9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3bc489=>_0x3bc489['is']('element','tableCell'));this['_areMergableCells'](_0x59d179['value'],_0x213776)||(_0xa0dda7['return']=!0x1,_0xa0dda7['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x322924=this['editor']['commands']['get']('mergeTableCells'),_0x4742e1=this['editor']['plugins']['get']('TableUtils');if(!_0x322924['isEnabled'])return!0x1;const _0x19c406=_0x4742e1['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x555413 of _0x19c406)for(const _0x4a6329 of _0x19c406)if(_0x555413!=_0x4a6329&&!this['_areMergableCells'](_0x555413,_0x4a6329))return!0x1;return!0x0;}['_areMergableCells'](_0x3593c6,_0x437692){const _0x2b7ad1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4808da=this['editor']['model']['createRangeOn'](_0x3593c6),_0x30371d=this['editor']['model']['createRangeOn'](_0x437692),_0x2ee02c=new Set(),_0x5d576f=new Set();for(const _0x4efcb3 of _0x2b7ad1['getSuggestions']())if(('insertion'==_0x4efcb3['type']||'deletion'==_0x4efcb3['type']||'mergeTableCells'==_0x4efcb3['subType'])&&_0x4efcb3['isInContent']){for(const _0x3b8a76 of _0x4efcb3['getRanges']())_0x3b8a76['containsRange'](_0x4808da,!0x0)&&_0x2ee02c['add'](_0x4efcb3['type']+':'+_0x4efcb3['author']['id']),_0x3b8a76['containsRange'](_0x30371d,!0x0)&&_0x5d576f['add'](_0x4efcb3['type']+':'+_0x4efcb3['author']['id']);}if(_0x2ee02c['size']!=_0x5d576f['size'])return!0x1;for(const _0x547ea6 of _0x2ee02c)if(!_0x5d576f['has'](_0x547ea6))return!0x1;return!0x0;}}class Ct extends _0x189d79{static get['requires'](){return[At];}['afterInit'](){const _0x4f0197=this['editor'];if(!_0x4f0197['plugins']['has']('TableEditing'))return;const _0x248999=_0x4f0197['locale'],_0xcb7f32=_0x4f0197['plugins']['get']('TrackChangesEditing');_0xcb7f32['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xcb7f32['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xcb7f32['registerBlockAttribute']('headingRows'),_0xcb7f32['registerBlockAttribute']('headingColumns'),_0xcb7f32['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x248999,'FORMAT_HEADER_ROW')),_0xcb7f32['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x248999,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x16629f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2726ea=this['editor']['plugins']['get']('TableUtils'),_0x58f381=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x2cbb6f({showActiveMarker:_0x23f79f=!0x0,setDataAttribute:_0x31ab41=!0x0}={}){return(_0x51744a,_0x13bea7,_0x45cc9c)=>{const {type:_0x13f52c,id:_0x2717a0}=_0x16629f['_splitMarkerName'](_0x13bea7['markerName']),_0x16e041=_0x16629f['getSuggestion'](_0x2717a0),_0x66edb9=_0x16e041['data'];if('formatBlock'!=_0x16e041['type']||!_0x66edb9||'setTableColumnHeader'!=_0x66edb9['commandName'])return;if(_0x13bea7['item'])return void _0x51744a['stop']();if(!_0x45cc9c['consumable']['consume'](_0x13bea7['markerRange'],_0x51744a['name']))return;const _0x10462c=_0x13bea7['markerRange']['start']['nodeAfter'],_0x13fddf=_0x13bea7['markerRange']['end']['nodeBefore'],_0xbd6d8c=_0x10462c['parent']['parent'],{column:_0x86b04f}=_0x2726ea['getCellLocation'](_0x10462c),{column:_0x52e4dc}=_0x2726ea['getCellLocation'](_0x13fddf);for(let _0x584fb6=_0x86b04f;_0x584fb6<=_0x52e4dc;_0x584fb6++){const _0x148e77=_0x2726ea['createTableWalker'](_0xbd6d8c,{'column':_0x584fb6,'includeAllSlots':!0x1});for(const _0x1e39bd of _0x148e77){const _0x53ab9c=_0x1e39bd['cell'],_0x5bb1d2=_0x45cc9c['mapper']['toViewElement'](_0x53ab9c);_0x45cc9c['writer']['addClass']('ck-suggestion-marker-'+_0x13f52c,_0x5bb1d2),_0x31ab41&&_0x45cc9c['writer']['setAttribute']('data-suggestion',_0x2717a0,_0x5bb1d2),_0x45cc9c['mapper']['bindElementToMarker'](_0x5bb1d2,_0x13bea7['markerName']),_0x23f79f&&(_0x16629f['activeMarkers']['includes'](_0x13bea7['markerName'])?_0x45cc9c['writer']['addClass']('ck-suggestion-marker--active',_0x5bb1d2):_0x45cc9c['writer']['removeClass']('ck-suggestion-marker--active',_0x5bb1d2));}}};}_0x16629f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x58f381),_0x16629f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x58f381),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2cbb6f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x9c9be1,_0x53660d,_0x5bdd29)=>{_0x5bdd29['options']['showSuggestionHighlights']&&_0x2cbb6f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x9c9be1,_0x53660d,_0x5bdd29);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x8711f2,_0x3d0a5f,_0x2545fa)=>{const {type:_0xca6b71,id:_0x1751c7}=_0x16629f['_splitMarkerName'](_0x3d0a5f['markerName']),_0x475cf6=_0x16629f['getSuggestion'](_0x1751c7),_0xea2616=_0x475cf6['data'];if('formatBlock'!=_0x475cf6['type']||!_0xea2616||'setTableColumnHeader'!=_0xea2616['commandName'])return;const _0x1ab666=_0x2545fa['mapper']['markerNameToElements'](_0x3d0a5f['markerName']);if(_0x1ab666){for(const _0x540c29 of _0x1ab666)_0x2545fa['writer']['removeClass']('ck-suggestion-marker-'+_0xca6b71,_0x540c29),_0x2545fa['writer']['removeClass']('ck-suggestion-marker--active',_0x540c29),_0x2545fa['writer']['removeAttribute']('data-suggestion',_0x540c29),_0x2545fa['mapper']['unbindElementFromMarkerName'](_0x540c29,_0x3d0a5f['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a4287=this['editor'],_0x5572d7=_0x2a4287['locale'];function _0x136ba6(_0x4be996){return{'type':'format','content':o(_0x5572d7,'*Format:*\x20%0',_0x4be996)};}_0x2a4287['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4615cf=>{if('formatBlock'!=_0x4615cf['type'])return;const {data:_0x18be08}=_0x4615cf;if(_0x18be08){if('setTableRowHeader'==_0x18be08['commandName']){const _0x23e89d=_0x18be08['commandParams'][0x0]['forceValue'];return _0x136ba6(o(_0x5572d7,_0x23e89d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x18be08['commandName']){const _0x117833=_0x18be08['commandParams'][0x0]['forceValue'];return _0x136ba6(o(_0x5572d7,_0x117833?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x189d79{['afterInit'](){const _0x1fc634=this['editor'],_0x4e9a6d=_0x1fc634['locale'],_0x1c4bd5=_0x1fc634['plugins']['get']('TrackChangesEditing');function _0x3de7e0(_0x3235d3){return{'type':'format','content':''+o(_0x4e9a6d,'*Set\x20table\x20type:*\x20%0',_0x3235d3)};}_0x1fc634['plugins']['has']('TableLayout')&&(_0x1c4bd5['enableCommand']('insertTableLayout'),_0x1c4bd5['enableDefaultAttributesIntegration']('tableType'),_0x1c4bd5['registerBlockAttribute']('tableType'),_0x1c4bd5['descriptionFactory']['registerElementLabel'](_0x21d7c3=>_0x21d7c3['is']('element','table')&&'layout'===_0x21d7c3['getAttribute']('tableType'),_0x38821c=>o(_0x4e9a6d,'ELEMENT_LAYOUT_TABLE',_0x38821c)),_0x1c4bd5['descriptionFactory']['registerDescriptionCallback'](_0xa50fc5=>{const {data:_0x571b2a}=_0xa50fc5;if(_0x571b2a&&'tableType'==_0x571b2a['key'])switch(_0x571b2a['newValue']){case'layout':return _0x3de7e0(o(_0x4e9a6d,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3de7e0(o(_0x4e9a6d,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x30a942=>[_0x30a942,null]));class Nt extends _0x189d79{static get['requires'](){return[At];}['afterInit'](){const _0x214514=this['editor'];if(!_0x214514['plugins']['has']('TableClipboard'))return;const _0xc1dbe9=_0x214514['plugins']['get']('TrackChangesEditing'),_0x52ad16=_0x214514['plugins']['get']('TableUtils'),_0x4c8889=_0x214514['plugins']['get'](At),_0x8f9a7f=_0x214514['plugins']['get']('TableClipboard'),_0x5a5b9e=_0x214514['plugins']['get']('TableSelection'),_0x561ceb=_0x214514['plugins']['get'](_0x4c72b8);_0x4c8889['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x214514['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x214514['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x570f9f=null,_0x1e69e1=!0x1;_0x561ceb['on']('contentInsertion',(_0x2517e9,_0x2e5029)=>{_0x1e69e1='paste'===_0x2e5029['method'];}),_0x214514['model']['on']('insertContent',(_0x48fc21,_0x7fc0fe)=>{if(!_0x1e69e1&&null===_0x5a5b9e['getSelectedTableCells']())return;const [_0x5c8ac5,_0x424132]=_0x7fc0fe,_0x4826ef=_0x7fc0fe[_0x7fc0fe['length']-0x1];_0x4826ef&&_0x4826ef['forceDefaultExecution']||_0xc1dbe9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5782ae,_0x1286a8,_0x52850c,_0x3856a8,_0x4da125){if(_0x1286a8&&!_0x1286a8['is']('documentSelection'))return!0x1;const _0x6f6c98=_0x4da125['getTableIfOnlyTableInContent'](_0x5782ae,_0x52850c);if(!_0x6f6c98||!Ue(_0x6f6c98,void 0x0,_0x3856a8))return!0x1;const _0x4ed79c=_0x3856a8['getSelectionAffectedTableCells'](_0x52850c['document']['selection']);if(!_0x4ed79c['length'])return!0x1;const _0x347513=_0x4ed79c[0x0]['findAncestor']('table'),_0x344b70=_0x3856a8['getRowIndexes'](_0x4ed79c),_0x52f678=_0x3856a8['getColumnIndexes'](_0x4ed79c),_0x1e730f={'startRow':_0x344b70['first'],'endRow':_0x344b70['last'],'startColumn':_0x52f678['first'],'endColumn':_0x52f678['last']};return 0x1==_0x4ed79c['length']&&(_0x1e730f['endRow']+=_0x3856a8['getRows'](_0x6f6c98)-0x1,_0x1e730f['endColumn']+=_0x3856a8['getColumns'](_0x6f6c98)-0x1),Ue(_0x347513,_0x1e730f,_0x3856a8);}(_0x5c8ac5,_0x424132,_0x214514['model'],_0x52ad16,_0x8f9a7f)&&(_0x48fc21['stop'](),_0x570f9f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x214514['model']['change'](()=>{_0x214514['model']['insertContent'](_0x7fc0fe[0x0],_0x7fc0fe[0x1],_0x7fc0fe[0x2],{'forceDefaultExecution':!0x0});const _0xdf60aa=_0xf49555(),{rowInsertionRanges:_0x46deab,columnInsertionRanges:_0x4c0b91,insertionRanges:_0x125a8f,deletionRanges:_0x2e488c,cells:_0x5a64e4}=_0x570f9f;_0x46deab['length']&&_0xc1dbe9['markMultiRangeInsertion'](_0x46deab,'tablePasteRow',{'tablePasteChainId':_0xdf60aa}),_0x4c0b91['length']&&_0xc1dbe9['markMultiRangeInsertion'](_0x4c0b91,'tablePasteColumn',{'tablePasteChainId':_0xdf60aa}),_0x125a8f['length']&&(_0xc1dbe9['markMultiRangeInsertion'](_0x125a8f,'tablePaste',{'tablePasteChainId':_0xdf60aa,'skipNestingCheck':!0x0}),_0x125a8f['forEach'](_0xb33f7c=>_0xb33f7c['detach']?.())),_0x2e488c['length']&&(_0xc1dbe9['markMultiRangeDeletion'](_0x2e488c,'tablePaste',{'tablePasteChainId':_0xdf60aa,'skipNestingCheck':!0x0}),_0x2e488c['forEach'](_0xd3c243=>_0xd3c243['detach']?.()));const _0x26eb38=_0xc1dbe9['markMultiRangeBlockFormat'](_0x5a64e4['map'](({element:_0x23bc7b})=>_0x23bc7b),{'formatGroupId':_0xf49555()},[],'tablePasteCell',{'tablePasteChainId':_0xdf60aa});if(_0x26eb38){const _0x9047a6=_0x26eb38['getMarkers'](),_0x275529=[];for(const {element:_0x436052,attributes:_0x440699}of _0x5a64e4){if(!_0x440699)continue;const _0x449906=_0x214514['model']['createRangeOn'](_0x436052),_0x237c8e=_0x9047a6['find'](_0x4163be=>_0x4163be['getRange']()['isEqual'](_0x449906));_0x237c8e&&_0x275529['push']([_0x237c8e['name'],_0x440699]);}_0x275529['length']&&_0x26eb38['setAttribute']('markerAttributes',Object['fromEntries'](_0x275529));}_0x570f9f=null;}));},{'priority':_0x26fe75['high']+0xa}),_0x561ceb['on']('contentInsertion',()=>{_0x1e69e1=!0x1;},{'priority':'lowest'}),_0x214514['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x42aae1,_0x4e9964)=>{const [_0x9db5c,_0xe19062,,_0x3fc58b]=_0x4e9964;if(!_0x570f9f)return;_0x42aae1['stop']();const _0x2a6015=_0x9db5c['cell'],_0x37eca8=_0xe19062,_0x3334db=Oe(_0x2a6015),_0xc00f59=Oe(_0x37eca8);_0x42aae1['return']=_0x2a6015;let _0x503cba=null,_0x225b49=null;if(_0xc00f59||_0x3334db){if(_0x3334db&&!_0xc00f59){_0x3fc58b['remove'](_0x2a6015['getChild'](0x0));for(const _0x3153dd of Array['from'](_0x37eca8['getChildren']()))_0x3fc58b['insert'](_0x3153dd,_0x2a6015,'end');const _0x21f406=_0x570f9f['rowInsertionIndexes']['includes'](_0x9db5c['row']),_0x5e08c7=_0x570f9f['columnInsertionIndexes']['includes'](_0x9db5c['column']);_0x21f406||_0x5e08c7||(_0x503cba=_0x247134['fromRange'](_0x3fc58b['createRangeIn'](_0x2a6015)));}else _0xc00f59&&!_0x3334db&&(_0x225b49=_0x3fc58b['createRangeIn'](_0x2a6015));}else{const _0x1b3e8d=_0x3fc58b['createElement']('tableCellSuggestion'),_0x5c6f8a=_0x3fc58b['createElement']('tableCellSuggestion');_0x3fc58b['wrap'](_0x3fc58b['createRangeIn'](_0x2a6015),_0x5c6f8a),_0x3fc58b['insert'](_0x1b3e8d,_0x2a6015,0x0);for(const _0xd994ed of Array['from'](_0x37eca8['getChildren']()))_0x3fc58b['insert'](_0xd994ed,_0x1b3e8d,'end');_0x503cba=_0x247134['fromRange'](_0x3fc58b['createRangeOn'](_0x1b3e8d)),_0x225b49=_0x247134['fromRange'](_0x3fc58b['createRangeOn'](_0x5c6f8a));}const _0x1c5833=Array['from'](_0x37eca8['getAttributes']())['filter'](([_0x2683f1])=>Be['includes'](_0x2683f1));_0x570f9f['cells']['push']({'element':_0x2a6015,'attributes':_0x1c5833['length']?Object['fromEntries'](_0x1c5833):null}),_0x503cba&&_0x570f9f['insertionRanges']['push'](_0x503cba),_0x225b49&&_0x570f9f['deletionRanges']['push'](_0x225b49);},{'priority':'high'}),_0x52ad16['on']('insertColumns',(_0x356113,_0x10b709)=>{const [_0x30e372,_0xcf1789={}]=_0x10b709;if(!_0x570f9f)return;const _0x5d1c97=_0xcf1789['at']||0x0,_0x455cbd=_0xcf1789['columns']||0x1;_0x570f9f['columnInsertionIndexes']=new Array(_0x455cbd)['fill'](_0x5d1c97)['map']((_0x489102,_0x1ec2f8)=>_0x489102+_0x1ec2f8);for(const {cell:_0x39c2b5}of _0x52ad16['createTableWalker'](_0x30e372,{'startColumn':_0x5d1c97,'endColumn':_0x5d1c97+_0x455cbd-0x1}))_0x570f9f['columnInsertionRanges']['push'](_0x214514['model']['createRangeOn'](_0x39c2b5));},{'priority':'low'}),_0x52ad16['on']('insertRows',(_0x4e4007,_0x1228fd)=>{const [_0x51ae54,_0x78c6ff={}]=_0x1228fd;if(!_0x570f9f)return;const _0x1524ce=_0x78c6ff['at']||0x0,_0x2686ed=_0x78c6ff['rows']||0x1;_0x570f9f['rowInsertionIndexes']=new Array(_0x2686ed)['fill'](_0x1524ce)['map']((_0x4db70e,_0x715a74)=>_0x4db70e+_0x715a74);for(const {cell:_0x43f13a}of _0x52ad16['createTableWalker'](_0x51ae54,{'startRow':_0x1524ce,'endRow':_0x1524ce+_0x2686ed-0x1}))_0x570f9f['rowInsertionRanges']['push'](_0x214514['model']['createRangeOn'](_0x43f13a));},{'priority':'low'}),_0xc1dbe9['descriptionFactory']['registerDescriptionCallback'](_0x250565=>{if(_0x250565['subType']&&_0x250565['subType']['startsWith']('tablePaste'))return _0x250565['previous']?{}:{'type':'insertion','content':o(_0x214514['locale'],'*Replace\x20table\x20cells*')};});const _0x437349=()=>!0x1;for(const _0x5327cf of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xc1dbe9['_suggestionFactory']['registerCustomCallback']('insertion',_0x5327cf,'join',_0x437349),_0xc1dbe9['_suggestionFactory']['registerCustomCallback']('deletion',_0x5327cf,'join',_0x437349),_0xc1dbe9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5327cf,'join',_0x437349);_0xc1dbe9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x437349),_0xc1dbe9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x35423c,_0x533e55,_0x52a99a)=>{const _0xa76244=_0x35423c['map'](_0x1bac99=>_0x1bac99['getContainedElement']())['filter'](_0x7a450a=>_0x7a450a),_0x439f76=new Map(_0xa76244['map'](_0x682180=>[_0x682180,null]));if(_0x570f9f){for(const {element:_0x43f6f9,attributes:_0xc7955f}of _0x570f9f['cells'])_0xc7955f&&_0x439f76['set'](_0x43f6f9,_0xc7955f);}else{if(_0x52a99a&&_0x52a99a['markerAttributes'])for(const [_0x11cac9,_0x110c6e]of Object['entries'](_0x52a99a['markerAttributes'])){const _0x583b58=_0x214514['model']['markers']['get'](_0x11cac9),_0x36fd8e=_0x583b58?_0x583b58['getRange']()['getContainedElement']():null;_0x36fd8e&&_0x439f76['set'](_0x36fd8e,_0x110c6e);}}_0x214514['model']['change'](_0xa05a71=>{for(const [_0x40ed17,_0x526db7]of _0x439f76)_0xa05a71['setAttributes']({...xe,..._0x526db7},_0x40ed17);});});const _0x244764=(_0x29a6e3,_0x41dc2f)=>{_0xc1dbe9['_suggestionFactory']['registerCustomCallback'](_0x29a6e3,'tablePaste',_0x41dc2f,(_0x5d11d9,_0x574898,_0x25a225)=>{_0x214514['model']['change'](_0x199f7a=>{const _0xef953=[];for(const _0x5e0c0e of _0x5d11d9){const _0x81b76c=_0x5e0c0e['start']['nodeAfter'];_0x81b76c['is']('element','tableCellSuggestion')&&_0xef953['push'](_0x81b76c);}_0xc1dbe9['_suggestionFactory']['getSuggestionCallback'](_0x29a6e3,null,_0x41dc2f)(_0x5d11d9,_0x574898,_0x25a225);for(const _0x3a08f8 of _0xef953)'$graveyard'!=_0x3a08f8['root']['rootName']&&_0x199f7a['unwrap'](_0x3a08f8);});});};_0x244764('insertion','accept'),_0x244764('insertion','discard'),_0x244764('deletion','accept'),_0x244764('deletion','discard'),_0xc1dbe9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x311fb9=>{const _0x5d2398=_0x311fb9['map'](_0x1c0c0a=>_0x1c0c0a['getContainedElement']()),_0x201d7e=_0x5d2398[0x0]['findAncestor']('table'),{minRow:_0x1f3e90,maxRow:_0x38fd55}=_0x4c8889['_getCoordsForCells'](_0x5d2398);_0x52ad16['removeRows'](_0x201d7e,{'at':_0x1f3e90,'rows':_0x38fd55-_0x1f3e90+0x1});}),_0xc1dbe9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x59797f=>{const _0x1cc9f1=_0x59797f['map'](_0x2058b7=>_0x2058b7['getContainedElement']()),_0x51493e=_0x1cc9f1[0x0]['findAncestor']('table'),{minColumn:_0x1c4c4c,maxColumn:_0x5cb243}=_0x4c8889['_getCoordsForCells'](_0x1cc9f1);_0x52ad16['removeColumns'](_0x51493e,{'at':_0x1c4c4c,'columns':_0x5cb243-_0x1c4c4c+0x1});});const _0x5cd97d=(_0xf595ff,_0x58ddb7)=>{if(!_0x58ddb7['subType']||!_0x58ddb7['subType']['startsWith']('tablePaste'))return;const _0x4031dd=_0x58ddb7['attributes']['tablePasteChainId'],_0x26394d=_0xc1dbe9['getSuggestions']()['filter'](_0x148146=>_0x148146['isInContent']&&_0x148146['attributes']&&_0x148146['attributes']['tablePasteChainId']==_0x4031dd);_0x26394d['length']&&_0x58ddb7['getAllAdjacentSuggestions']()['length']!=_0x26394d['length']&&_0x26394d['reduce']((_0x2f4254,_0x39d40c)=>(_0x2f4254['next']=_0x39d40c,_0x39d40c['previous']=_0x2f4254,_0x39d40c));};function _0x181987(_0x2d6e96,_0x417cd1=!0x0){const {id:_0x4389de,authorId:_0x44def5}=_0xc1dbe9['_splitMarkerName'](_0x2d6e96['markerName']),_0x207806=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x34edca=_0xc1dbe9['activeMarkers']['includes'](_0x2d6e96['markerName']);return _0x34edca&&_0x207806['push']('ck-suggestion-marker--active'),{'classes':_0x207806,'attributes':{'data-suggestion':_0x4389de,'data-author-id':_0x44def5},'priority':_0x34edca&&_0x417cd1?0xbc2:0xbb8};}_0xc1dbe9['on']('suggestionLoaded',_0x5cd97d,{'priority':'high'}),_0xc1dbe9['on']('suggestionUnloaded',_0x5cd97d,{'priority':'high'}),_0x214514['model']['document']['registerPostFixer'](()=>{let _0x38f03=!0x1;const _0xe76094=Array['from'](_0x214514['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5d0b40,data:_0x485134}of _0xe76094){const {group:_0x5a7363,type:_0x282edd,id:_0x4b8eb9}=_0xc1dbe9['_splitMarkerName'](_0x5d0b40);if('suggestion'!=_0x5a7363||'deletion'!=_0x282edd||_0x485134['oldRange'])continue;if(!_0xc1dbe9['hasSuggestion'](_0x4b8eb9))continue;const _0x1735d2=_0xc1dbe9['getSuggestion'](_0x4b8eb9)['getRanges'](),_0x3cf2b4=_0x214514['plugins']['get']('Users')['me'];for(const _0x5adf79 of _0xc1dbe9['getSuggestions']()){if(!_0x5adf79['isInContent']||_0x5adf79['author']!=_0x3cf2b4)continue;if('formatBlock'!=_0x5adf79['type']||'tablePasteCell'!=_0x5adf79['subType'])continue;if(_0x5adf79['getRanges']()['every'](_0x2afd0f=>_0x1735d2['some'](_0x2d38db=>_0x2d38db['containsRange'](_0x2afd0f,!0x0)))){for(const _0x290004 of _0x5adf79['getAllAdjacentSuggestions']())_0x290004['isInContent']&&(_0x290004['discard'](),_0x38f03=!0x0);}}}return _0x38f03;}),_0x214514['model']['document']['registerPostFixer'](_0xea6b66=>{const _0x8c9e25=_0x214514['commands']['get']('redo');if(!_0x8c9e25||!_0x8c9e25['_createdBatches']['has'](_0xea6b66['batch']))return!0x1;let _0x4ebaea=!0x1;const _0x1cfc11=_0x214514['plugins']['get']('Users')['me'],_0x2259b9=_0x214514['model']['document']['differ']['getChanges'](),_0x43868b=Array['from'](_0x214514['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x36d7fa,data:_0xc40a81})=>{const {group:_0x94b220,subType:_0x3adb3d,authorId:_0x46a29d}=_0xc1dbe9['_splitMarkerName'](_0x36d7fa);return'suggestion'==_0x94b220&&'tablePaste'==_0x3adb3d&&_0x46a29d==_0x1cfc11['id']&&!_0xc40a81['oldRange'];});for(const _0x1830bc of _0x2259b9){if('insert'!=_0x1830bc['type']||'tableCellSuggestion'!=_0x1830bc['name']||0x1!=_0x1830bc['length'])continue;const _0x9635b=_0xea6b66['createRange'](_0x1830bc['position'],_0x1830bc['position']['getShiftedBy'](0x1));if(!_0x43868b['find'](({data:_0x3da86e})=>_0x3da86e['newRange']['isEqual'](_0x9635b))){for(const {name:_0x371ebd,data:_0xaddfd7}of _0x43868b)if(_0x9635b['containsRange'](_0xaddfd7['newRange'])){_0xea6b66['updateMarker'](_0x371ebd,{'range':_0x9635b}),_0x4ebaea=!0x0;break;}}}return _0x4ebaea;}),_0x214514['model']['document']['registerPostFixer'](_0x96ef95=>{let _0x551b92=!0x1;const _0x5126d3=_0x214514['plugins']['get']('Users')['me'],_0x5767b9=_0xc1dbe9['getSuggestions']()['filter'](_0x2a8de0=>_0x2a8de0['isInContent']&&_0x2a8de0['author']==_0x5126d3),_0x55c8ca=new Set(),_0x427ca5=new Set();for(const _0x36135e of _0x5767b9)if('tablePaste'==_0x36135e['subType'])for(const _0x435ca6 of _0x36135e['getMarkers']()){const _0x4c096e=_0x435ca6['getRange']()['getContainedElement']();if(_0x4c096e){if(_0x4c096e['is']('element','tableCellSuggestion')&&Oe(_0x4c096e)){_0x36135e['removeMarker'](_0x435ca6['name']),_0x55c8ca['add'](_0x4c096e),_0x551b92=!0x0;const _0x55911e=_0x4c096e['nextSibling'],_0x51b826=_0x4c096e['previousSibling'],_0xa41765=_0x55911e&&_0x55911e['is']('element','tableCellSuggestion'),_0x4dde43=_0x51b826&&_0x51b826['is']('element','tableCellSuggestion');_0xa41765&&!_0x55c8ca['has'](_0x55911e)&&_0x427ca5['add'](_0x55911e),_0x4dde43&&!_0x55c8ca['has'](_0x51b826)&&_0x427ca5['add'](_0x51b826);}else _0x4c096e['is']('element','paragraph')&&_0x4c096e['isEmpty']&&(_0x36135e['removeMarker'](_0x435ca6['name']),_0x551b92=!0x0);}}else{if('tablePasteCell'==_0x36135e['subType']){if(!_0x36135e['attributes']||!_0x36135e['attributes']['tablePasteChainId'])continue;const _0xd03aee=_0x36135e['attributes']['markerAttributes'];if(_0xd03aee&&Object['keys'](_0xd03aee)['length'])continue;const _0x88fe98=_0x36135e['attributes']['tablePasteChainId'];let _0x282409=!0x0,_0x327740=!0x0;for(const _0x459ea1 of _0x5767b9)if(_0x459ea1['subType']&&_0x459ea1['subType']['startsWith']('tablePaste')){if(!_0x459ea1['attributes']['tablePasteChainId']){_0x327740=!0x1;break;}if(_0x459ea1['id']!=_0x36135e['id']&&_0x459ea1['attributes']['tablePasteChainId']==_0x88fe98){_0x282409=!0x1;break;}}_0x327740&&_0x282409&&(_0x36135e['removeMarkers'](),_0x551b92=!0x0);}}for(const _0x5e2a9e of _0x55c8ca)_0x96ef95['remove'](_0x5e2a9e);for(const _0x217999 of _0x427ca5)_0x96ef95['unwrap'](_0x217999);return _0x551b92;}),_0x214514['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3b32f1=>_0x181987(_0x3b32f1),'converterPriority':'high'}),_0x214514['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3e9fba,_0x2af65a)=>_0x2af65a['options']['showSuggestionHighlights']?_0x181987(_0x3e9fba,!0x1):null,'converterPriority':'high'});const _0x186b2a=_0x214514['editing']['view'];this['listenTo'](_0x186b2a['document'],'clipboardOutput',(_0xf55e37,_0x38c46d)=>{const _0x50682b=[];for(const _0x493846 of _0x186b2a['createRangeIn'](_0x38c46d['content'])['getItems']())_0x493846['is']('element','suggestion-td')&&_0x50682b['push'](_0x493846);_0x186b2a['change'](_0x4f8c7c=>{for(const _0x3fe3ac of _0x50682b)_0x4f8c7c['move'](_0x4f8c7c['createRangeIn'](_0x3fe3ac),_0x4f8c7c['createPositionBefore'](_0x3fe3ac)),_0x4f8c7c['remove'](_0x3fe3ac);});});}}function Oe(_0x2adcce){if(_0x2adcce['isEmpty'])return!0x0;const _0xca6273=_0x2adcce['getChild'](0x0);return _0xca6273['is']('element','paragraph')&&_0xca6273['isEmpty'];}function Ue(_0x565a64,_0x50e344={},_0x2aa470){for(const {isAnchor:_0x2073e4,cellHeight:_0x503209,cellWidth:_0x456c6b}of _0x2aa470['createTableWalker'](_0x565a64,{'includeAllSlots':!0x0,..._0x50e344}))if(!_0x2073e4||0x1!=_0x503209||0x1!=_0x456c6b)return!0x1;return!0x0;}class Dt extends _0x189d79{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xa299e0=this['editor']['plugins']['get']('TrackChangesEditing');_0xa299e0['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xa299e0['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xa299e0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xa299e0['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xa299e0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xa299e0['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xb0f288,_0x3c26b1){const _0x1a86a7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x594bb3=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x6035f8=_0x3c26b1['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5a751b=_0x594bb3['getColumnGroupElement'](_0x6035f8);let _0x21ffc2=_0x5a751b?_0x594bb3['getTableColumnsWidths'](_0x5a751b):null,_0x47d524=_0x6035f8['getAttribute']('tableWidth')||null;const _0x46b315=_0x3c26b1['tableWidth']||_0x47d524,_0x156387=_0x3c26b1['columnWidths']||_0x21ffc2,_0x2befd0=this['editor']['plugins']['get']('Users')['me'];for(const _0x54b740 of _0x1a86a7['getSuggestions']()){const _0x944bbb=_0x54b740['getContainedElement']();if('resizeTable'===_0x54b740['subType']&&_0x944bbb===_0x6035f8){_0x54b740['author']!==_0x2befd0&&_0x54b740['discard']();const _0x5ed089=_0x54b740['data']['commandParams'];_0x47d524=_0x5ed089[0x0]['tableWidth'],_0x21ffc2=_0x5ed089[0x0]['columnWidths'];break;}}_0xb0f288({'table':_0x6035f8,'tableWidth':_0x46b315,'columnWidths':_0x156387}),_0x1a86a7['markBlockFormat'](_0x6035f8,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x47d524,'columnWidths':_0x21ffc2}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2649b4){if('formatBlock'!=_0x2649b4['type']&&'formatInline'!=_0x2649b4['type'])return;const {data:_0x37c5ad}=_0x2649b4;if(_0x37c5ad&&'resizeTable'===_0x37c5ad['formatGroupId']){const _0x33b275='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x33b275)};}}}class Mt extends _0x189d79{['afterInit'](){const _0x14c0fe=this['editor'];_0x14c0fe['plugins']['has']('Template')&&_0x14c0fe['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x189d79{['afterInit'](){const _0x40b811=this['editor'];if(!_0x40b811['commands']['get']('insertTableOfContents'))return;_0x40b811['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x14a9f6=_0x40b811['plugins']['get']('TrackChangesEditing'),_0x19b0a6=_0x40b811['locale'];_0x14a9f6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x16ab2a=>o(_0x19b0a6,'ELEMENT_TABLE_OF_CONTENTS',_0x16ab2a));}}class Bt extends _0x189d79{['afterInit'](){const _0x5e8763=this['editor'];if(!_0x5e8763['plugins']['has']('Title'))return;const _0xbb7432=_0x5e8763['plugins']['get']('TrackChangesEditing');_0xbb7432['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5e8763['locale'],'ELEMENT_TITLE')),_0x5e8763['model']['document']['registerPostFixer'](_0x17d5cf=>{let _0x2f02d1=!0x1;const _0x2c447a=Array['from'](_0x5e8763['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1a0850,data:_0x840580}of _0x2c447a){const {group:_0x2570c8}=_0xbb7432['_splitMarkerName'](_0x1a0850);if('suggestion'!==_0x2570c8||!_0x840580['newRange'])continue;const _0xcb8583=_0x840580['newRange'],_0x5267d7=_0xcb8583['end']['nodeBefore'];if(!_0x5267d7||!_0x5267d7['is']('element','title-content'))continue;if(!_0xcb8583['start']['isTouching'](_0xcb8583['end']))continue;const _0x14eca2=_0x5e8763['model']['schema']['getNearestSelectionRange'](_0xcb8583['end'],'forward');if(_0x14eca2&&_0x14eca2['isCollapsed']){const _0xb20ab=_0x17d5cf['createRange'](_0xcb8583['start'],_0x14eca2['start']);_0xb20ab['isEqual'](_0xcb8583)||(_0x17d5cf['updateMarker'](_0x1a0850,{'range':_0xb20ab}),_0x2f02d1=!0x0);}_0x2f02d1||(_0x17d5cf['removeMarker'](_0x1a0850),_0x2f02d1=!0x0);}return _0x2f02d1;});}}class Tt extends _0x189d79{['afterInit'](){const _0x22afb2=this['editor'],_0x5085d8=_0x22afb2['plugins']['get']('TrackChangesEditing');_0x22afb2['plugins']['has']('Uploadcare')&&(_0x5085d8['enableCommand']('uploadcare'),_0x22afb2['plugins']['has']('UploadcareImageEdit')&&(_0x5085d8['enableCommand']('uploadcareImageEdit'),_0x5085d8['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5085d8['registerBlockAttribute']('uploadcareImageId'),_0x5085d8['descriptionFactory']['registerDescriptionCallback'](_0x2d55d9=>{if('attribute'!=_0x2d55d9['type'])return;const {data:_0x5106cc}=_0x2d55d9;return _0x5106cc&&'uploadcareImageId'==_0x5106cc['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x189d79{['afterInit'](){const _0x3fbfa5=this['editor'],_0x9a37f6=_0x3fbfa5['plugins']['get']('TrackChangesEditing');_0x3fbfa5['plugins']['has']('UndoEditing')&&(_0x9a37f6['enableCommand']('undo'),_0x9a37f6['enableCommand']('redo'));}}class Ot extends _0x189d79{static get['requires'](){return[At];}['afterInit'](){const _0x4325c1=this['editor'];if(!_0x4325c1['plugins']['has']('TableCaptionEditing'))return;_0x4325c1['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x189d79{['tableProperties'];['tableCellProperties'];constructor(_0x4ca7cb){super(_0x4ca7cb),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 _0x400f36=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2fac3b of this['tableProperties'])_0x400f36['enableCommand'](_0x2fac3b,(_0x34fc79,_0x5dc69f)=>{const _0xdca0a1=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2fac3b,[_0xdca0a1],this['tableProperties'],'tableProperties',_0x34fc79,_0x5dc69f);});_0x400f36['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x400f36['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x400f36['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x39d349,_0x5c6234)=>this['handleDiscardAction'](this['tableProperties'],_0x39d349,_0x5c6234)),_0x400f36['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3bc89b of this['tableCellProperties'])_0x400f36['enableCommand'](_0x3bc89b,(_0x114b9b,_0x3119ad)=>{const _0x485d8e=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3bc89b,_0x485d8e,this['tableCellProperties'],'tableCellProperties',_0x114b9b,_0x3119ad);});_0x400f36['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x400f36['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x400f36['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xd6eb32,_0xb89ef7)=>this['handleDiscardAction'](this['tableCellProperties'],_0xd6eb32,_0xb89ef7)),_0x400f36['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x400f36['descriptionFactory']['registerDescriptionCallback'](_0x385725=>this['handleSuggestionDescription'](_0x385725));}['_handlePropertyChange'](_0x36a23c,_0x1ab357,_0x2b9e6d,_0x5e9af9,_0x14c3e0,_0x542790){const _0xe188d2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x542790['batch'],()=>{for(const _0x797539 of _0x1ab357){if(this['_getSuggestion'](_0x797539,_0x5e9af9))_0x14c3e0(_0x542790);else{const _0x3c4f84={};for(const _0x1c377f of _0x2b9e6d){const _0x1f00a2=_0x797539['getAttribute'](_0x1c377f);void 0x0!==_0x1f00a2&&(_0x3c4f84[_0x1c377f]=_0x1f00a2);}_0x14c3e0(_0x542790),_0xe188d2['markBlockFormat'](_0x797539,{'commandParams':[_0x3c4f84]},[],_0x5e9af9);}}});}['handleDiscardAction'](_0x94c619,_0x164da2,_0x2ae81e){const _0x6aae47=_0x164da2[0x0]['start']['nodeAfter'],_0x42d18f=_0x2ae81e['commandParams'][0x0];this['editor']['model']['change'](_0x500703=>{for(const _0x35f7d7 of _0x94c619)void 0x0!==_0x42d18f[_0x35f7d7]?_0x500703['setAttribute'](_0x35f7d7,_0x42d18f[_0x35f7d7],_0x6aae47):_0x500703['removeAttribute'](_0x35f7d7,_0x6aae47);});}['handleSuggestionDescription'](_0x105e59){if(_0x105e59['data'])switch(_0x105e59['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x29ad8b,_0x1662f3){const _0x550a64=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x145e92 of _0x550a64['getSuggestions']({'skipNotAttached':!0x0})){const _0x542a89=_0x145e92['getContainedElement']();if(_0x145e92['subType']===_0x1662f3&&_0x542a89===_0x29ad8b)return _0x145e92;}return null;}}class Rt extends _0x189d79{['afterInit'](){const _0x26efd1=this['editor'];if(!_0x26efd1['plugins']['has']('LineHeight'))return;const _0x94758a=_0x26efd1['plugins']['get']('TrackChangesEditing'),_0x3f4784=_0x26efd1['locale'];_0x94758a['enableDefaultAttributesIntegration']('lineHeight'),_0x94758a['registerBlockAttribute']('lineHeight'),_0x94758a['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x3f4784,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x189d79{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x2c5666,_0x46b05d,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d8193){super(_0x4d8193),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x465713,_0x3e62fc,_0x126eaa,_0x2eaa0c)=>{this['_model']['change'](()=>{for(const _0x1c0981 of[..._0x2eaa0c,..._0x126eaa])this['_model']['markers']['has'](_0x1c0981)&&_0x4d8193['editing']['reconvertMarker'](_0x1c0981);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4d8193['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x4d8193['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4d8193['config']['get']('trackChanges.trackFormatChanges'),_0x4d8193['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4d8193['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x4d8193,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x45cc3a=this['editor'],_0x387a1e=(_0x46b2d6,_0x4fef76)=>{if('attribute'!=_0x46b2d6)return'ck-suggestion-marker-'+_0x46b2d6;const _0x45fcf8=_0x4fef76['split']('|')[0x0];return this['_isBlockAttribute'](_0x45fcf8)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x45cc3a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x42cf75=>{const {id:_0x2dd146,authorId:_0x507479,type:_0xa73738,subType:_0x3be308}=this['_splitMarkerName'](_0x42cf75['markerName']),_0x4e4f69=['ck-suggestion-marker',_0x387a1e(_0xa73738,_0x3be308)];let _0xafffae=0xbb8;return this['activeMarkers']['includes'](_0x42cf75['markerName'])&&(_0x4e4f69['push']('ck-suggestion-marker--active'),_0xafffae=0xbc2),'deletion'==_0xa73738&&(_0xafffae+=0x5),{'classes':_0x4e4f69,'attributes':{'data-suggestion':_0x2dd146,'data-author-id':_0x507479},'priority':_0xafffae};}}),_0x45cc3a['conversion']['for']('dataDowncast')['add'](_0x3dc84b=>{_0x3dc84b['on']('addMarker:suggestion',(_0x1d0226,_0x14f832,_0x163715)=>{if(!_0x163715['options']['showSuggestionHighlights'])return;const _0x59bfbc=_0x14f832['item'];if(!_0x59bfbc)return;const _0x4cb559=_0x163715['mapper']['toViewElement'](_0x59bfbc);_0x45cc3a['model']['schema']['isObject'](_0x59bfbc)&&_0x4cb559&&!_0x4cb559['getCustomProperty']('widget')&&_0x4cb559['is']('containerElement')&&_0x1a3cfa(_0x4cb559,_0x163715['writer']);},{'priority':'high'});}),_0x45cc3a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x147798,_0x27f564)=>{if(!_0x27f564['options']['showSuggestionHighlights'])return null;const {id:_0x37c331,authorId:_0x514d60,type:_0x4c729e,subType:_0x404328}=this['_splitMarkerName'](_0x147798['markerName']);return{'classes':['ck-suggestion-marker',_0x387a1e(_0x4c729e,_0x404328)],'priority':0xbb8,'attributes':{'data-suggestion':_0x37c331,'data-author-id':_0x514d60}};}});const _0x23200b=({showActiveMarkers:_0x4fd9dd=!0x0,isAttributeSuggestion:_0x37af2d=!0x1}={})=>(_0x4944fa,_0x12d430,_0x23612e)=>{if(!_0x12d430['item'])return;const {id:_0x422030,authorId:_0x439519}=this['_splitMarkerName'](_0x12d430['markerName']);if(_0x37af2d){const _0xa3f6cb=this['_suggestions']['get'](_0x422030),_0x2f3728=this['_getAttributeKey'](_0xa3f6cb);if(!this['_isBlockAttribute'](_0x2f3728))return;}if(_0x12d430['item']['is']('selection'))return void _0x23612e['consumable']['consume'](_0x12d430['item'],_0x4944fa['name']);const _0x110080=_0x23612e['mapper']['toViewElement'](_0x12d430['item']);if(_0x12d430['item']['is']('element')&&_0x45cc3a['model']['schema']['isBlock'](_0x12d430['item'])&&!_0x110080['getCustomProperty']('addHighlight')){_0x23612e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x110080),_0x23612e['writer']['setAttribute']('data-suggestion',_0x422030,_0x110080),_0x23612e['writer']['setAttribute']('data-author-id',_0x439519,_0x110080),_0x23612e['mapper']['bindElementToMarker'](_0x110080,_0x12d430['markerName']),_0x4fd9dd&&(this['activeMarkers']['includes'](_0x12d430['markerName'])?_0x23612e['writer']['addClass']('ck-suggestion-marker--active',_0x110080):_0x23612e['writer']['removeClass']('ck-suggestion-marker--active',_0x110080));for(const _0xc761fe of _0x45cc3a['model']['createRangeIn'](_0x12d430['item'])['getItems']())_0x23612e['consumable']['consume'](_0xc761fe,_0x4944fa['name']);_0x23612e['consumable']['consume'](_0x12d430['item'],_0x4944fa['name']);}};_0x45cc3a['conversion']['for']('dataDowncast')['add'](_0x1d0595=>{_0x1d0595['on']('addMarker:suggestion:formatBlock',(_0x11755f,_0x415aa8,_0x1a222b)=>{_0x1a222b['options']['showSuggestionHighlights']&&_0x23200b({'showActiveMarkers':!0x1})(_0x11755f,_0x415aa8,_0x1a222b);},{'priority':'highest'});}),_0x45cc3a['conversion']['for']('dataDowncast')['add'](_0x1ba082=>{_0x1ba082['on']('addMarker:suggestion:attribute',(_0x4cdc59,_0x92ab79,_0x3180e4)=>{_0x3180e4['options']['showSuggestionHighlights']&&_0x23200b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4cdc59,_0x92ab79,_0x3180e4);},{'priority':'highest'});}),_0x45cc3a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5c1243,_0x197907)=>{if(_0x197907['options']['showSuggestionHighlights']){const {id:_0x7b3630,authorId:_0x182b14}=this['_splitMarkerName'](_0x5c1243);return _0x5c1243['includes'](':split')||_0x5c1243['includes'](':merge')?{'group':'suggestion','name':_0x5c1243['substr'](0xb),'attributes':{'data-suggestion':_0x7b3630,'data-author-id':_0x182b14}}:null;}return{'group':'suggestion','name':_0x5c1243['substr'](0xb)};}}),_0x45cc3a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x32b956,{writer:_0x4a382b})=>{let _0x208e84='suggestion:'+_0x32b956['getAttribute']('suggestion-type')+':'+_0x32b956['getAttribute']('id');return _0x32b956['getAttribute']('marker-count')&&(_0x208e84+=':'+_0x32b956['getAttribute']('marker-count')),_0x4a382b['createElement']('$marker',{'data-name':_0x208e84});}}),_0x45cc3a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x45cc3a['conversion']['for']('editingDowncast')['add'](_0x740e20=>{_0x740e20['on']('addMarker:suggestion:formatBlock',_0x23200b(),{'priority':'high'});}),_0x45cc3a['conversion']['for']('editingDowncast')['add'](_0x173dde=>{_0x173dde['on']('addMarker:suggestion:attribute',_0x23200b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x45cc3a['conversion']['for']('editingDowncast')['add'](_0x106267=>{_0x106267['on']('removeMarker:suggestion:formatBlock',(_0x7cb4ac,_0x38b9ba,_0x1512d6)=>{const _0x2c0ec8=_0x1512d6['mapper']['markerNameToElements'](_0x38b9ba['markerName']);if(_0x2c0ec8){for(const _0x3d52a8 of _0x2c0ec8)_0x3d52a8['getCustomProperty']('addHighlight')||(_0x1512d6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3d52a8),_0x1512d6['writer']['removeAttribute']('data-suggestion',_0x3d52a8),_0x1512d6['writer']['removeAttribute']('data-author-id',_0x3d52a8),_0x1512d6['mapper']['unbindElementFromMarkerName'](_0x3d52a8,_0x38b9ba['markerName']));}},{'priority':'high'});}),_0x45cc3a['conversion']['for']('editingDowncast')['add'](_0x5bbfb7=>{_0x5bbfb7['on']('removeMarker:suggestion:attribute',(_0x52f647,_0x9feeef,_0x3444a6)=>{const _0x3d9848=_0x3444a6['mapper']['markerNameToElements'](_0x9feeef['markerName']);if(!_0x3d9848)return;const {id:_0x2d7099}=this['_splitMarkerName'](_0x9feeef['markerName']),_0x48ce1d=this['_suggestions']['get'](_0x2d7099),_0x2995e7=this['_getAttributeKey'](_0x48ce1d);if(this['_isBlockAttribute'](_0x2995e7)){for(const _0x39dc0d of _0x3d9848)_0x39dc0d['getCustomProperty']('addHighlight')||(_0x3444a6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x39dc0d),_0x3444a6['writer']['removeAttribute']('data-suggestion',_0x39dc0d),_0x3444a6['writer']['removeAttribute']('data-author-id',_0x39dc0d),_0x3444a6['mapper']['unbindElementFromMarkerName'](_0x39dc0d,_0x9feeef['markerName']));}},{'priority':'high'});}),_0x45cc3a['model']['document']['registerPostFixer'](_0x37ad96=>{let _0x3db399=!0x1;const _0x5f5009=Array['from'](_0x45cc3a['model']['document']['differ']['getChangedMarkers']()),_0x405438=new Set();for(const {name:_0x4445a5,data:_0x4101e9}of _0x5f5009){const {group:_0x4d1640,type:_0x6a9425,subType:_0x3dadee,id:_0x28e61b}=this['_splitMarkerName'](_0x4445a5);if('suggestion'!==_0x4d1640)continue;const _0x435b86=this['_suggestions']['get'](_0x28e61b);if(null!=_0x4101e9['newRange']){'formatInline'==_0x6a9425&&(_0x3db399=_0x3db399||Gt(_0x4101e9['newRange'],_0x4445a5,_0x37ad96,_0x45cc3a['model']['schema']));const _0x2d9248='attribute'==_0x6a9425&&this['_isBlockAttribute'](_0x3dadee['split']('|')[0x0]);if(_0x4101e9['newRange']['isCollapsed']||'$graveyard'==_0x4101e9['newRange']['root']['rootName']||'formatBlock'==_0x6a9425&&!Jt(_0x4101e9['newRange'])||_0x2d9248&&!Jt(_0x4101e9['newRange'])||'deletion'==_0x6a9425&&!Kt(_0x4101e9['newRange']))_0x37ad96['removeMarker'](_0x4445a5),_0x3db399=!0x0;else{if(!_0x435b86||!_0x435b86['isInContent'])continue;if(_0x4101e9['newRange']&&_0x4101e9['oldRange']&&_0x4101e9['newRange']['isEqual'](_0x4101e9['oldRange']))continue;_0x405438['add'](_0x435b86);}}}return _0x405438['size']>0x0&&(_0x3db399=!!this['_joinWithAdjacentSuggestions'](_0x405438)||_0x3db399),_0x3db399;}),_0x45cc3a['model']['document']['registerPostFixer'](_0x1e7cff=>{let _0x176dbf=!0x1;for(const _0x46a174 of _0x45cc3a['model']['document']['differ']['getChanges']())if('insert'==_0x46a174['type'])for(const _0x1f2cba of this['_suggestions']['values']()){if(_0x1f2cba['isMultiRange']||!_0x1f2cba['isInContent'])continue;const _0x9cf916='formatBlock'==_0x1f2cba['type'],_0xc70764=this['_getAttributeKey'](_0x1f2cba),_0x490e11=_0xc70764&&this['_isBlockAttribute'](_0xc70764);if(!_0x9cf916&&!_0x490e11)continue;const _0x3aad69=_0x1f2cba['getFirstRange']();if(_0x3aad69['start']['parent']!=_0x3aad69['end']['parent']&&!_0x3aad69['end']['isAtEnd']){const _0x2a8bc8=_0x45cc3a['model']['createPositionAt'](_0x3aad69['start']['nodeAfter'],'end'),_0x16ee2d=_0x45cc3a['model']['createRange'](_0x3aad69['start'],_0x2a8bc8);_0x1e7cff['updateMarker'](_0x1f2cba['getFirstMarker'](),{'range':_0x16ee2d}),_0x176dbf=!0x0;}}return _0x176dbf;}),_0x45cc3a['model']['document']['registerPostFixer'](_0x45d0f7=>this['_processAttributeChanges'](_0x45d0f7)),_0x45cc3a['model']['document']['registerPostFixer'](_0x477d0b=>!_0x477d0b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x477d0b)),_0x45cc3a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x45cc3a['model']['document']['on']('change:data',(_0x7e07d4,_0x5c84c7)=>{if(!_0x5c84c7['isLocal']||_0x5c84c7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x345317=_0x45cc3a['model']['document']['differ']['getChanges']();if(0x0==_0x345317['length'])return;const _0x466c6e=[],_0x3e3cde=_0x345317['filter'](_0x4f8679=>'attribute'==_0x4f8679['type']),_0x1fd3ac=_0x345317['filter'](_0x3638e2=>'insert'==_0x3638e2['type']&&'$text'!=_0x3638e2['name']);for(const _0x47f1c3 of _0x3e3cde)this['_isRegisteredAttribute'](_0x47f1c3['attributeKey'])&&_0x466c6e['push']({'key':_0x47f1c3['attributeKey'],'newValue':_0x47f1c3['attributeNewValue'],'oldValue':_0x47f1c3['attributeOldValue'],'range':Ht(_0x47f1c3['range'],_0x45cc3a['model'])});for(const _0xc6efe6 of _0x1fd3ac){if('rename'!=_0xc6efe6['action']&&'refresh'!=_0xc6efe6['action'])continue;const _0x28fecc=qt(_0xc6efe6['position']['nodeAfter'],_0x45cc3a['model']),_0x4b17a2=_0xc6efe6['before'];'rename'==_0xc6efe6['action']&&_0x466c6e['push']({'key':m,'newValue':_0xc6efe6['name'],'oldValue':_0x4b17a2['name'],'range':_0x28fecc});for(const [_0x3878bd,_0xbf738c]of _0x4b17a2['attributes']){if(!this['_isRegisteredAttribute'](_0x3878bd))continue;const _0x2e2952=_0xc6efe6['attributes']['get'](_0x3878bd);_0xbf738c!==_0x2e2952&&_0x466c6e['push']({'key':_0x3878bd,'newValue':_0x2e2952,'oldValue':_0xbf738c,'range':_0x28fecc});}for(const [_0x4bcda1,_0x228e73]of _0xc6efe6['attributes'])this['_isRegisteredAttribute'](_0x4bcda1)&&(_0x4b17a2['attributes']['has'](_0x4bcda1)||_0x466c6e['push']({'key':_0x4bcda1,'newValue':_0x228e73,'oldValue':null,'range':_0x28fecc}));}0x0!=_0x466c6e['length']&&_0x45cc3a['model']['enqueueChange'](_0x5c84c7,_0x526521=>{const _0x338073=_0xf49555();for(const {range:_0xee0920,key:_0x2cecd1,oldValue:_0x2e1771,newValue:_0x5b37ed}of _0x466c6e)this['markAttributeChange'](_0xee0920,_0x2cecd1,_0x2e1771,_0x5b37ed,{'groupId':_0x338073});this['_reduceExistingSuggestions'](_0x526521,_0x466c6e);});},{'priority':'lowest'}),_0x45cc3a['model']['markers']['on']('update:suggestion',(_0x3af8e4,_0x9c2741,_0x400159)=>{if(null==_0x400159){const {id:_0x1e80da}=this['_splitMarkerName'](_0x9c2741['name']),_0x4acaaa=this['_suggestions']['get'](_0x1e80da);_0x4acaaa&&_0x4acaaa['addMarkerName'](_0x9c2741['name']);}}),_0x45cc3a['model']['document']['on']('change:data',()=>{const _0xf12511=Array['from'](_0x45cc3a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x59023f=>'suggestion'===this['_splitMarkerName'](_0x59023f['name'])['group']);if(0x0===_0xf12511['length'])return;_0xf12511['sort']((_0x29e1d9,_0x5b1c34)=>{const _0x1b8421=_0x29e1d9['data']['oldRange'],_0x58e57a=_0x5b1c34['data']['oldRange'];return null===_0x1b8421&&null===_0x58e57a?0x0:null===_0x1b8421&&null!==_0x58e57a?-0x1:null!==_0x1b8421&&null===_0x58e57a?0x1:_0x1b8421['start']['isBefore'](_0x58e57a['start'])?-0x1:0x1;});const _0x34313f=new Set(),_0x581af7=new Set();for(const {name:_0x3af39e,data:_0x156b5f}of _0xf12511){const {id:_0xd90c2d}=this['_splitMarkerName'](_0x3af39e);if(null===_0x156b5f['oldRange']){const _0x12215a=this['_handleNewSuggestionMarker'](_0x3af39e);_0x581af7['add'](_0x12215a);}else{const _0x3dbd3c=this['_suggestions']['get'](_0xd90c2d);null!==_0x156b5f['newRange']||_0x3dbd3c['isInContent']?(_0x34313f['add'](_0x3dbd3c['head']),_0x581af7['add'](_0x3dbd3c)):this['_removeSuggestion'](_0x3dbd3c);}}_0x581af7['size']>0x0&&this['_refreshSuggestionsChain'](_0x581af7);for(const _0x442e7e of _0x34313f)this['fire']('suggestionChanged',_0x442e7e);}),_0x45cc3a['model']['on']('applyOperation',(_0x506f4f,_0x88a78a)=>{const _0x20a6a8=_0x88a78a[0x0];if(!this['_suggestions']['size'])return;if(!_0x20a6a8['isDocumentOperation'])return;if(_0x20a6a8['batch']['isUndo']||!_0x20a6a8['batch']['isLocal'])return;let _0x1cc5e0,_0x5b461b;switch(_0x20a6a8['type']){case'insert':_0x1cc5e0=_0x45cc3a['model']['createPositionAt'](_0x20a6a8['position']),_0x5b461b=_0x1cc5e0['getShiftedBy'](_0x20a6a8['howMany']);break;case'split':_0x1cc5e0=_0x45cc3a['model']['createPositionAt'](_0x20a6a8['splitPosition']),_0x5b461b=_0x45cc3a['model']['createPositionAt'](_0x20a6a8['moveTargetPosition']);break;case'move':_0x1cc5e0=_0x45cc3a['model']['createPositionAt'](_0x20a6a8['targetPosition']),_0x5b461b=_0x1cc5e0['getShiftedBy'](_0x20a6a8['howMany']);break;default:return;}const _0x52118a=_0x45cc3a['model']['createRange'](_0x1cc5e0,_0x5b461b);_0x45cc3a['model']['change'](()=>{for(const {suggestion:_0x162023,meta:_0x175e4b}of this['_findSuggestions'](_0x52118a)){if(_0x162023['isMultiRange'])continue;if('formatInline'==_0x162023['type'])continue;const _0x5baaf1=this['_getAttributeKey'](_0x162023);if(_0x5baaf1&&this['_isBlockAttribute'](_0x5baaf1)&&'split'!=_0x20a6a8['type'])continue;const _0x20f9ff=_0x162023['data']&&_0x162023['data']['multipleBlocks'];('formatBlock'!=_0x162023['type']||'split'==_0x20a6a8['type']&&!_0x20f9ff)&&(_0x175e4b['containsRangeInObject']||'insertion'==_0x162023['type']&&_0x175e4b['isOwn']||_0x162023['getFirstRange']()['containsRange'](_0x52118a)&&this['_breakSuggestionMarker'](_0x162023,_0x1cc5e0,_0x5b461b));}});},{'priority':'lowest'}),_0x45cc3a['model']['on']('deleteContent',(_0x4978d3,_0x26136b)=>{const _0xc030de=_0x26136b[0x0],_0x400c39=_0x26136b[0x1];if(_0x400c39&&_0x400c39['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xc030de['isCollapsed'])return;const _0x53c6ba=_0x45cc3a['model']['schema'],{start:_0x26e021,end:_0x4a7093}=_0xc030de['getFirstRange'](),_0x2c469f=_0x26e021['nodeAfter']&&_0x53c6ba['isLimit'](_0x26e021['nodeAfter'])?null:_0x53c6ba['getNearestSelectionRange'](_0x26e021,'forward'),_0x57b07a=_0x4a7093['nodeBefore']&&_0x53c6ba['isLimit'](_0x4a7093['nodeBefore'])?null:_0x53c6ba['getNearestSelectionRange'](_0x4a7093,'backward'),_0x4facd4=_0x45cc3a['model']['createRange'](_0x2c469f?_0x2c469f['start']:_0x26e021,_0x57b07a?_0x57b07a['end']:_0x4a7093);_0x45cc3a['model']['change'](_0x3a5bc7=>{this['markDeletion'](_0x4facd4);const _0x3567f2=_0x45cc3a['model']['schema']['getNearestSelectionRange'](_0x4facd4['start']);_0xc030de['is']('documentSelection')?_0x3a5bc7['setSelection'](_0x3567f2):_0xc030de['setTo'](_0x3567f2);}),_0x4978d3['stop']();},{'priority':_0x26fe75['normal']+0xa}),_0x45cc3a['model']['on']('insertContent',(_0x17cc98,_0x416cb1)=>{const _0x35d272=_0x416cb1[_0x416cb1['length']-0x1];_0x35d272&&_0x35d272['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x45cc3a['model']['change'](()=>{let _0x477900=_0x45cc3a['model']['insertContent'](_0x416cb1[0x0],_0x416cb1[0x1],_0x416cb1[0x2],{'forceDefaultExecution':!0x0});if(!_0x477900)return;_0x17cc98['return']=_0x477900['clone']();const _0x15cdeb=_0x477900['end']['nodeBefore'],_0x5bad86=_0x45cc3a['model']['schema'];_0x15cdeb&&_0x5bad86['isBlock'](_0x15cdeb)&&!_0x5bad86['isObject'](_0x15cdeb)&&(_0x477900=_0x45cc3a['model']['createRange'](_0x477900['start'],_0x45cc3a['model']['createPositionAt'](_0x15cdeb,'end'))),this['markInsertion'](_0x477900);}),_0x17cc98['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x15accc=new D(_0x45cc3a,this['_suggestions']);_0x45cc3a['commands']['add']('acceptSuggestion',_0x15accc),this['enableCommand']('acceptSuggestion');const _0x2466cf=new M(_0x45cc3a,this['_suggestions']);_0x45cc3a['commands']['add']('discardSuggestion',_0x2466cf),this['enableCommand']('discardSuggestion'),_0x45cc3a['commands']['add']('acceptAllSuggestions',new $(_0x45cc3a,_0x15accc,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x45cc3a['commands']['add']('discardAllSuggestions',new $(_0x45cc3a,_0x2466cf,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x45cc3a['commands']['add']('acceptSelectedSuggestions',new B(_0x45cc3a,_0x15accc,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x45cc3a['commands']['add']('discardSelectedSuggestions',new B(_0x45cc3a,_0x2466cf,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3fb476=_0x45cc3a['plugins']['get']('CommentsRepository');this['listenTo'](_0x3fb476,'addComment',(_0x334ca2,{threadId:_0x13517b})=>{const _0x4d3f85=this['_suggestions']['get'](_0x13517b);_0x4d3f85&&_0x4d3f85['commentThread']&&0x1===_0x4d3f85['commentThread']['length']&&this['_updateSuggestionData'](_0x13517b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3fb476,'removeComment',(_0x239efd,{threadId:_0x59009d})=>{const _0x1db69e=this['_suggestions']['get'](_0x59009d);_0x1db69e&&_0x1db69e['commentThread']&&!_0x1db69e['commentThread']['length']&&this['_updateSuggestionData'](_0x59009d,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xa1a9db){const _0xb7e469=_0x363720([0x47,0x6c,0x37,0x36,0x6d,0x53,0x70,0x62,0x64,0x4d,0x51,0x78,0x71,0x79,0x4c,0x32,0x43,0x39,0x5a,0x6a,0x30,0x7a,0x42,0x65,0x33,0x63,0x31,0x77,0x38,0x6f,0x68,0x4a,0x52,0x75,0x48,0x66,0x76,0x74,0x67,0x58,0x6b,0x45,0x73,0x59,0x4b,0x50,0x56,0x55,0x69,0x4e,0x46,0x57,0x35,0x72,0x6e,0x4f,0x44,0x34,0x49,0x54,0x61,0x41]),_0x116db0=0x5122e44,_0x24f46b=0x51542f4^_0x116db0,_0x502837=window[_0x363720([0x44,0x61,0x74,0x65])][_0x363720([0x6e,0x6f,0x77])](),_0x54155a=_0xa1a9db[_0x363720([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x26b595=new window[(_0x363720([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20bcb6=>{_0x54155a[_0x363720([0x6f,0x6e,0x63,0x65])](_0x363720([0x72,0x65,0x61,0x64,0x79]),_0x20bcb6);}),_0x500b3a={[_0x363720([0x6b,0x74,0x79])]:_0x363720([0x45,0x43]),[_0x363720([0x75,0x73,0x65])]:_0x363720([0x73,0x69,0x67]),[_0x363720([0x63,0x72,0x76])]:_0x363720([0x50,0x2d,0x32,0x35,0x36]),[_0x363720([0x78])]:_0x363720([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]),[_0x363720([0x79])]:_0x363720([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]),[_0x363720([0x61,0x6c,0x67])]:_0x363720([0x45,0x53,0x32,0x35,0x36])},_0x158134=_0x54155a[_0x363720([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x363720([0x67,0x65,0x74])](_0x363720([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x358f0e(){let _0x45acd0,_0x30aed3=null,_0x118ee9=null;try{if(_0x158134==_0x363720([0x47,0x50,0x4c]))return _0x363720([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x45acd0=_0x2de770(),!_0x45acd0)return _0x363720([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x45acd0[_0x363720([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x118ee9=_0x523240(_0x45acd0[_0x363720([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x45acd0[_0x363720([0x6a,0x74,0x69])])),await _0x2b698e()?_0x3ee2f1()?_0x4174dc()?_0x363720([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x27734d()?(_0x45acd0[_0x363720([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x363720([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x30aed3=_0x1705de(_0x363720([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x45acd0[_0x363720([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x363720([0x74,0x72,0x69,0x61,0x6c])&&(_0x30aed3=_0x1705de(_0x363720([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x102763()):_0x363720([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x363720([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x363720([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x363720([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4174dc(){const _0x124e95=[_0x363720([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x363720([0x74,0x72,0x69,0x61,0x6c])][_0x363720([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45acd0[_0x363720([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x502837/0x3e8:0xe10*_0x24f46b;return _0x45acd0[_0x363720([0x65,0x78,0x70])]<_0x124e95;}function _0x3ee2f1(){const _0x2e7146=_0x45acd0[_0x363720([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2e7146)return!0x1;if(_0x2e7146[_0x363720([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x363720([0x2a])))return!0x0;if(_0x2e7146[_0x363720([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x363720([0x54,0x43])))return!0x0;if(_0x2e7146[_0x363720([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x363720([0x52,0x54,0x43]))){if(_0x214823())return!0x0;if(_0x43226b()||_0x50b8b1())return!0x0;}return!0x1;}function _0x27734d(){const _0x25ada5=_0x45acd0[_0x363720([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x25ada5||0x0==_0x25ada5[_0x363720([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x246b26}=new URL(window[_0x363720([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x25ada5[_0x363720([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x246b26))return!0x0;const _0x29e638=_0x246b26[_0x363720([0x73,0x70,0x6c,0x69,0x74])](_0x363720([0x2e]));return _0x25ada5[_0x363720([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x472cd2=>_0x472cd2[_0x363720([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x363720([0x2a])))[_0x363720([0x6d,0x61,0x70])](_0x359768=>_0x359768[_0x363720([0x73,0x70,0x6c,0x69,0x74])](_0x363720([0x2e])))[_0x363720([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52db79=>_0x52db79[_0x363720([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x29e638[_0x363720([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x363720([0x6d,0x61,0x70])](_0x1daf9b=>Array(_0x29e638[_0x363720([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1daf9b[_0x363720([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x363720([0x66,0x69,0x6c,0x6c])](_0x1daf9b[0x0]===_0x363720([0x2a])?_0x363720([0x2a]):'')[_0x363720([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1daf9b))[_0x363720([0x73,0x6f,0x6d,0x65])](_0x5c099d=>_0x29e638[_0x363720([0x65,0x76,0x65,0x72,0x79])]((_0x289fc7,_0x1bdc9f)=>_0x5c099d[_0x1bdc9f]===_0x289fc7||_0x5c099d[_0x1bdc9f]===_0x363720([0x2a])));}function _0x102763(){return _0x30aed3&&_0x118ee9?new window[(_0x363720([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4fcd06,_0x27df20)=>{_0x30aed3[_0x363720([0x74,0x68,0x65,0x6e])](_0x4fcd06,_0x27df20),_0x118ee9[_0x363720([0x74,0x68,0x65,0x6e])](_0x2de48b=>{_0x2de48b!=_0x363720([0x56,0x61,0x6c,0x69,0x64])&&_0x4fcd06(_0x2de48b);},_0x27df20);}):_0x30aed3||_0x118ee9||_0x363720([0x56,0x61,0x6c,0x69,0x64]);}}function _0x523240(_0x35c4c7,_0x3cb525){return new window[(_0x363720([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x217690=>{if(_0x257b46())return _0x217690(_0x363720([0x56,0x61,0x6c,0x69,0x64]));_0x1e7da5(),_0x54155a[_0x363720([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x363720([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xea1467=!0x1;const _0x29ced2=_0xf49555();function _0x436770(_0x42224d){return!!_0x42224d&&(typeof _0x42224d===_0x363720([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x42224d===_0x363720([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x42224d[_0x363720([0x74,0x68,0x65,0x6e])]===_0x363720([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x42224d[_0x363720([0x63,0x61,0x74,0x63,0x68])]===_0x363720([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x345719(_0x104ffd){_0x15b42f(_0x104ffd)[_0x363720([0x74,0x68,0x65,0x6e])](_0x224010=>{if(!_0x224010||_0x224010[_0x363720([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x363720([0x6f,0x6b]))return _0x363720([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x375cec(_0x2d7c0b(_0x29ced2+_0x3cb525))!=_0x224010[_0x363720([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x363720([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x363720([0x56,0x61,0x6c,0x69,0x64]);})[_0x363720([0x74,0x68,0x65,0x6e])](_0x5d734d=>(_0x3a2b45(),_0x5d734d),()=>{const _0x2609ab=_0x31c1ee();return null==_0x2609ab?(_0x3a2b45(),_0x363720([0x56,0x61,0x6c,0x69,0x64])):_0x363720(_0x502837-_0x2609ab>(0x211eaa44^_0x116db0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x363720([0x74,0x68,0x65,0x6e])](_0x217690)[_0x363720([0x63,0x61,0x74,0x63,0x68])](()=>{_0x217690(_0x363720([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2139bd=0x524c0c4^_0x116db0;function _0x3a2b45(){const _0x4e006b=_0x363720([0x6c,0x6c,0x63,0x74,0x2d])+_0x375cec(_0x2d7c0b(_0x35c4c7)),_0x4bf2ee=_0x141851(_0x375cec(window[_0x363720([0x4d,0x61,0x74,0x68])][_0x363720([0x63,0x65,0x69,0x6c])](_0x502837/_0x2139bd)));window[_0x363720([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x363720([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e006b,_0x4bf2ee);}function _0x31c1ee(){const _0xb1b22=_0x363720([0x6c,0x6c,0x63,0x74,0x2d])+_0x375cec(_0x2d7c0b(_0x35c4c7)),_0x292cb1=window[_0x363720([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x363720([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb1b22);return _0x292cb1?window[_0x363720([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x141851(_0x292cb1),0x10)*_0x2139bd:null;}function _0x15b42f(_0x140023){return new window[(_0x363720([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x335e7c,_0x3669cf)=>{_0x140023[_0x363720([0x74,0x68,0x65,0x6e])](_0x335e7c,_0x3669cf),window[_0x363720([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3669cf,0x513fa84^_0x116db0);});}}_0x54155a[_0x363720([0x6f,0x6e])](_0x363720([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x461bb7,_0x5a7339)=>{if(_0x5a7339[0x0]!=_0x35c4c7)return _0x217690(_0x363720([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a7339[0x1]={..._0x5a7339[0x1],[_0x363720([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x29ced2};},{[_0x363720([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x363720([0x68,0x69,0x67,0x68])}),_0x54155a[_0x363720([0x6f,0x6e])](_0x363720([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4a55d7=>{_0x436770(_0x4a55d7[_0x363720([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xea1467=!0x0,_0x345719(_0x4a55d7[_0x363720([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x363720([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x363720([0x6c,0x6f,0x77])}),_0x26b595[_0x363720([0x74,0x68,0x65,0x6e])](()=>{_0xea1467||_0x217690(_0x363720([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x257b46(){return _0x54155a[_0x363720([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x363720([0x76,0x69,0x65,0x77])][_0x363720([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x363720([0x61,0x75,0x74,0x6f]);}function _0x1e7da5(){_0x54155a[_0x363720([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x363720([0x76,0x69,0x65,0x77])][_0x363720([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x363720([0x61,0x75,0x74,0x6f]);}}function _0x1705de(_0x53c157){const _0x401d16=[new window[(_0x363720([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x147d79=>setTimeout(_0x147d79,0x51b1088^_0x116db0)),_0x26b595[_0x363720([0x74,0x68,0x65,0x6e])](()=>new window[(_0x363720([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21704d=>{let _0x399154=0x0;_0x54155a[_0x363720([0x6d,0x6f,0x64,0x65,0x6c])][_0x363720([0x6f,0x6e])](_0x363720([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x31c2d5,_0x326c8a)=>{_0x326c8a[0x0][_0x363720([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x399154++,_0x399154==(0x5122fbc^_0x116db0)&&(_0x21704d(),_0x31c2d5[_0x363720([0x6f,0x66,0x66])]());});}))];return window[_0x363720([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x363720([0x72,0x61,0x63,0x65])](_0x401d16)[_0x363720([0x74,0x68,0x65,0x6e])](()=>_0x53c157);}async function _0x6c673a(){await _0x26b595,_0x54155a[_0x363720([0x6d,0x6f,0x64,0x65,0x6c])][_0x363720([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x30f50d,_0x54155a[_0x363720([0x6d,0x6f,0x64,0x65,0x6c])][_0x363720([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x30f50d,_0x54155a[_0x363720([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x363720([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x214823(){return _0x4c96c7(_0x363720([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x496f60(_0x363720([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x363720([0x73,0x74,0x61,0x74,0x65])]==_0x363720([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x43226b(){return _0x4c96c7(_0x363720([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 _0x50b8b1(){return _0x4c96c7(_0x363720([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x332f7c(_0x2cf59f){const _0x106c91=_0x4959d9();_0x54155a[_0x106c91]=_0x363720([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2cf59f,_0x2cf59f!=_0x363720([0x56,0x61,0x6c,0x69,0x64])&&_0x6c673a();}function _0x4959d9(){const _0x53d252=window[_0x363720([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x363720([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x363720([0x6e,0x6f,0x77])]())[_0x363720([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x363720([0x2e]),'');let _0x58defd=_0x363720([0x47]);for(let _0xafc209=0x0;_0xafc209<_0x53d252[_0x363720([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xafc209+=0x2){let _0x405fbd=window[_0x363720([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53d252[_0x363720([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xafc209,_0xafc209+0x2));_0x405fbd>=_0xb7e469[_0x363720([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x405fbd-=_0xb7e469[_0x363720([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x58defd+=_0xb7e469[_0x405fbd];}return _0x58defd;}function _0x2de770(){const _0x4179ea=_0x158134[_0x363720([0x73,0x70,0x6c,0x69,0x74])](_0x363720([0x2e]));if(0x3!=_0x4179ea[_0x363720([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x23ddcb(_0x4179ea[0x1]);function _0x23ddcb(_0x4df637){const _0x3a02ee=_0x463c12(_0x4df637);return _0x3a02ee&&_0x450dcc()?_0x3a02ee:null;function _0x450dcc(){const _0x23518e=_0x3a02ee[_0x363720([0x6a,0x74,0x69])],_0x3720f9=window[_0x363720([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23518e[_0x363720([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23518e[_0x363720([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x29ceba={..._0x3a02ee,[_0x363720([0x6a,0x74,0x69])]:_0x23518e[_0x363720([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23518e[_0x363720([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x29ceba[_0x363720([0x76,0x63])],_0x2d7c0b(_0x29ceba)==_0x3720f9;}}}async function _0x2b698e(){let _0x336fb7=!0x0;try{const _0x3397ba=_0x158134[_0x363720([0x73,0x70,0x6c,0x69,0x74])](_0x363720([0x2e])),[_0x2c282c,_0x10b5af,_0x4c7947]=_0x3397ba;return _0x595302(_0x2c282c),await _0x1456af(_0x2c282c,_0x10b5af,_0x4c7947),_0x336fb7;}catch{return!0x1;}function _0x595302(_0x13b5f9){const _0x586172=_0x463c12(_0x13b5f9);_0x586172&&_0x586172[_0x363720([0x61,0x6c,0x67])]==_0x363720([0x45,0x53,0x32,0x35,0x36])||(_0x336fb7=!0x1);}async function _0x1456af(_0xb8d726,_0x2dbf88,_0x2e2b8f){const _0x3358f2=window[_0x363720([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x363720([0x66,0x72,0x6f,0x6d])](_0x38cc5b(_0x2e2b8f),_0x2fe231=>_0x2fe231[_0x363720([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2218f4=new window[(_0x363720([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x363720([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xb8d726+_0x363720([0x2e])+_0x2dbf88),_0x971177=window[_0x363720([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x363720([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x971177)return;const _0xf1573=await _0x971177[_0x363720([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x363720([0x6a,0x77,0x6b]),_0x500b3a,{[_0x363720([0x6e,0x61,0x6d,0x65])]:_0x363720([0x45,0x43,0x44,0x53,0x41]),[_0x363720([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x363720([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x363720([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x971177[_0x363720([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x363720([0x6e,0x61,0x6d,0x65])]:_0x363720([0x45,0x43,0x44,0x53,0x41]),[_0x363720([0x68,0x61,0x73,0x68])]:{[_0x363720([0x6e,0x61,0x6d,0x65])]:_0x363720([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xf1573,_0x3358f2,_0x2218f4)||(_0x336fb7=!0x1);}}function _0x463c12(_0x50acad){return _0x50acad[_0x363720([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x363720([0x65,0x79]))?JSON[_0x363720([0x70,0x61,0x72,0x73,0x65])](_0x38cc5b(_0x50acad)):null;}function _0x38cc5b(_0xcf4219){return window[_0x363720([0x61,0x74,0x6f,0x62])](_0xcf4219[_0x363720([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x363720([0x2b]))[_0x363720([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x363720([0x2f])));}function _0x2d7c0b(_0x1bd71b){let _0x18662c=0x1505;function _0x4627f0(_0x36a1f0){for(let _0x4e8732=0x0;_0x4e8732<_0x36a1f0[_0x363720([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e8732++){const _0x5df647=_0x36a1f0[_0x363720([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e8732);_0x18662c=(_0x18662c<<0x5)+_0x18662c+_0x5df647,_0x18662c&=_0x18662c;}}function _0x2eb1de(_0xb51fb9){Array[_0x363720([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb51fb9)?_0xb51fb9[_0x363720([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2eb1de):_0xb51fb9&&typeof _0xb51fb9==_0x363720([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x363720([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb51fb9)[_0x363720([0x73,0x6f,0x72,0x74])]()[_0x363720([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x418e53,_0x3ad748])=>{_0x4627f0(_0x418e53),_0x2eb1de(_0x3ad748);}):_0x4627f0(window[_0x363720([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb51fb9));}return _0x2eb1de(_0x1bd71b),_0x18662c>>>0x0;}function _0x375cec(_0x359fee){return _0x359fee[_0x363720([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x363720([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x363720([0x30]));}function _0x141851(_0x732cf3){return _0x732cf3[_0x363720([0x73,0x70,0x6c,0x69,0x74])]('')[_0x363720([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x363720([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c96c7(_0x5eedf9){return _0x54155a[_0x363720([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x363720([0x68,0x61,0x73])](_0x5eedf9);}function _0x496f60(_0x420175){return _0x54155a[_0x363720([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x363720([0x67,0x65,0x74])](_0x420175);}function _0x30f50d(){}function _0x363720(_0x321764){return _0x321764['map'](_0x3283e8=>String['fromCharCode'](_0x3283e8))['join']('');}_0x332f7c(await _0x358f0e());}(this);}set['adapter'](_0x2db1b0){if(this['_adapter'])throw new _0x2cce5b('track-changes-adapter-already-set',this);this['_adapter']=_0x2db1b0;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2488c4=!0x1,toJSON:_0x3c9ac5=!0x1}={}){const _0x4685bd=[];for(const _0x237432 of this['_suggestions']['values']())_0x2488c4&&!_0x237432['isInContent']||_0x4685bd['push'](_0x237432);return _0x3c9ac5?_0x4685bd['map'](_0x2d2691=>_0x2d2691['toJSON']()):_0x4685bd;}['getSuggestion'](_0x58387c){const _0x1b98a1=this['_suggestions']['get'](_0x58387c);if(!_0x1b98a1)throw new _0x2cce5b('track-changes-suggestion-not-found',this);return _0x1b98a1;}['hasSuggestion'](_0x2ade20){return this['_suggestions']['has'](_0x2ade20);}['addSuggestionData'](_0x1a2c52){const {authorId:_0x1f1227,id:_0x4a08bd,originalSuggestionId:_0x4f6859,attributes:_0x237538}=_0x1a2c52,[_0x5f0f2e,_0x22aaa5]=_0x1a2c52['type']['split'](':'),_0x8408ba=this['_suggestions']['get'](_0x4a08bd)||this['_createSuggestion'](_0x5f0f2e,_0x22aaa5,_0x4a08bd,_0x1f1227,_0x237538,_0x4f6859);if(this['_addThreadToSuggestion'](_0x8408ba),this['_checkSuggestionCorrectness'](_0x8408ba,_0x5f0f2e,_0x22aaa5||null,_0x1f1227),_0x8408ba['createdAt']=_0x1a2c52['createdAt'],_0x8408ba['_isDataLoaded']=!0x0,_0x237538&&_0x237538['@external']){const _0x3eb765=_0x237538['@external'],_0x1912d5=this['_getExternalAuthor'](_0x3eb765['authorName']);_0x8408ba['authoredAt']=_0x3eb765['createdAt'],_0x8408ba['author']=_0x1912d5,_0x8408ba['isExternal']=!0x0;}else _0x8408ba['authoredAt']=_0x1a2c52['createdAt'];switch(_0x1a2c52['data']&&(_0x8408ba['data']=_0x1a2c52['data']),_0x1a2c52['attributes']&&(_0x8408ba['attributes']=_0x1a2c52['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x8408ba['_saved']=!0x0),this['_suggestionState']['get'](_0x8408ba)){case'notReady':this['_suggestionState']['set'](_0x8408ba,'dataReady');break;case'markerReady':_0x8408ba['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x8408ba])),this['_refreshSuggestionsChain'](new Set([_0x8408ba])),this['_suggestionState']['set'](_0x8408ba,'ready'),this['fire']('suggestionLoaded',_0x8408ba)):this['_suggestionState']['set'](_0x8408ba,'removed');}return _0x8408ba;}['acceptSuggestion'](_0x7f1bd3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3b108d of _0x7f1bd3['getAllAdjacentSuggestions']())_0x3b108d['accept']();});});}['discardSuggestion'](_0x3bb7b1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x52ec85 of _0x3bb7b1['getAllAdjacentSuggestions']())_0x52ec85['discard']();});});}['enableCommand'](_0x1db52a,_0x1ca07c){const _0x2e2a1e=this['editor']['commands']['get'](_0x1db52a);if(!_0x2e2a1e)throw new _0x2cce5b('track-changes-command-not-found',this,{'commandName':_0x1db52a});if(this['_enabledCommands']['has'](_0x2e2a1e))throw new _0x2cce5b('track-changes-enable-command-twice',this,{'commandName':_0x1db52a});this['_enabledCommands']['add'](_0x2e2a1e),_0x1ca07c&&_0x2e2a1e['on']('execute',(_0x29a4ec,_0x20cdce)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x20cdce['length']>0x0&&_0x20cdce[_0x20cdce['length']-0x1]&&_0x20cdce[_0x20cdce['length']-0x1]['forceDefaultExecution']?_0x20cdce['pop']():(_0x29a4ec['return']=_0x1ca07c((..._0x1d3d23)=>_0x2e2a1e['execute'](..._0x1d3d23,{'forceDefaultExecution':!0x0}),..._0x20cdce),_0x29a4ec['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x442b1c){let _0x2c08ac,_0x59ed0d;const _0x6c0ac9=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2c08ac=_0x442b1c();}catch(_0x2e9d30){_0x59ed0d=_0x2e9d30;}return _0x6c0ac9||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x59ed0d&&_0x2cce5b['rethrowUnexpectedError'](_0x59ed0d,this),_0x2c08ac;}['markInsertion'](_0x137541,_0x555622=null,_0x5f13e0={}){if(_0x137541['isCollapsed'])return null;const _0x7c8c0f=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5f13e0['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3ebac0,meta:_0x4eeba7}of this['_findSuggestions'](_0x137541,'insertion'))if(_0x4eeba7['isOwn']){if(!_0x4eeba7['isNextTo']){if(_0x4eeba7['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x3ebac0,_0x5f13e0))continue;return _0x3ebac0;}if(Qt(_0x3ebac0,_0x5f13e0))return _0x3ebac0;this['_breakSuggestionMarker'](_0x3ebac0,_0x137541['start'],_0x137541['end']);break;}if(_0x555622==_0x3ebac0['subType']&&Qt(_0x3ebac0,_0x5f13e0)){const _0x59aac1=_0x3ebac0['getFirstRange']();return _0x59aac1['start']['isEqual'](_0x137541['end'])?this['_setSuggestionRange'](_0x3ebac0,this['_model']['createRange'](_0x137541['start'],_0x59aac1['end'])):this['_setSuggestionRange'](_0x3ebac0,this['_model']['createRange'](_0x59aac1['start'],_0x137541['end'])),_0x3ebac0;}}const _0x2b5f33=_0xf49555(),_0x53faa7=_0x7c8c0f['id'],_0xb7db2f=_0x555622?'insertion:'+_0x555622:'insertion',_0xf1f429=this['_setSuggestionData']({'id':_0x2b5f33,'type':_0xb7db2f,'createdAt':new Date(),'authorId':_0x53faa7,'attributes':_0x5f13e0});return this['_addSuggestionMarker'](_0xb7db2f,_0x2b5f33,_0x53faa7,_0x137541),_0xf1f429;}['markMultiRangeInsertion'](_0x15f0ff,_0x379102='multi',_0x437080={}){const _0x58f891=this['editor']['plugins']['get']('Users')['me'],_0x20ed22=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x379102,'join');this['_trackingSessionId']&&(_0x437080['trackingSessionId']=this['_trackingSessionId']);for(const _0x39548f of this['getSuggestions']())if(_0x39548f['author']['id']==_0x58f891['id']&&'insertion'==_0x39548f['type']&&_0x39548f['subType']==_0x379102&&Qt(_0x39548f,_0x437080)&&(_0x20ed22(_0x39548f['getRanges'](),_0x15f0ff)||_0x20ed22(_0x15f0ff,_0x39548f['getRanges']()))){for(const _0x4e9097 of _0x15f0ff)_0x39548f['addRange'](_0x4e9097);return _0x39548f;}for(const {suggestion:_0xd54062,meta:_0x4ea851}of this['_findSuggestions'](_0x15f0ff,'insertion')){if(!_0x4ea851['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4ea851['containsRangeInObject'])continue;if(!Qt(_0xd54062,_0x437080))continue;let _0x50c675=!0x0;for(const _0x5acf6e of _0xd54062['getRanges']())for(const _0x3be929 of _0x15f0ff)if(!_0x5acf6e['containsRange'](_0x3be929)){_0x50c675=!0x1;break;}if(_0x50c675)return _0xd54062;}const _0x4a53e8=_0xf49555(),_0x330a1d=_0x58f891['id'],_0x274641='insertion:'+_0x379102,_0x4751c9=this['_setSuggestionData']({'id':_0x4a53e8,'type':_0x274641,'createdAt':new Date(),'authorId':_0x330a1d,'attributes':_0x437080});for(const _0x1cccf3 of _0x15f0ff)this['_addSuggestionMarker'](_0x274641,_0x4a53e8,_0x330a1d,_0x1cccf3,T['getMultiRangeId']());return _0x4751c9;}['markInlineFormat'](_0x3c5626,_0x22bde3,_0x5d9f8f=null,_0xc8016c={}){if(_0x5d9f8f=_0x5d9f8f||Lt(_0x22bde3),_0x3c5626['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0xc8016c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5d2743=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5d9f8f,'accept');return this['forceDefaultExecution'](()=>_0x5d2743([_0x3c5626],_0x22bde3,_0xc8016c)),null;}const _0x13e521=this['editor']['plugins']['get']('Users')['me'],_0x3e5286=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5dcd04,meta:_0x3edf6b}of this['_findSuggestions'](_0x3c5626,'insertion'))_0x3edf6b['isOwn']&&!_0x3edf6b['isInsideObject']&&_0x3e5286['push'](..._0x5dcd04['getRanges']());}const _0x127503=function(_0x2aff5f,_0x5c1df6){const _0x114096=[];for(const _0x36d0f6 of _0x5c1df6){const _0x5bfe0a=_0x2aff5f['getIntersection'](_0x36d0f6);_0x5bfe0a&&_0x114096['push'](_0x5bfe0a);}return _0x114096;}(_0x3c5626,_0x3e5286),_0x38ccad=function(_0x3c4375,_0x404593){const _0x53319a=[_0x3c4375];for(const _0x5a18bb of _0x404593){let _0x3fc06b=0x0;for(;_0x3fc06b<_0x53319a['length'];){const _0x10e17d=_0x53319a[_0x3fc06b]['getDifference'](_0x5a18bb);_0x53319a['splice'](_0x3fc06b,0x1,..._0x10e17d),_0x3fc06b+=_0x10e17d['length'];}}return _0x53319a;}(_0x3c5626,_0x3e5286);_0x127503['length']&&this['_model']['change'](()=>{for(const _0x4adbe4 of _0x127503){const _0x4438a4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5d9f8f,'accept');this['forceDefaultExecution'](()=>_0x4438a4([_0x4adbe4],_0x22bde3,_0xc8016c));}});for(const _0x2717c9 of _0x38ccad){let _0x4a8734=null,_0xc23030=_0x2717c9['start'],_0x4b9ccf=_0x2717c9['end'];for(const {suggestion:_0x29389e,meta:_0x191f18}of this['_findSuggestions'](_0x2717c9,'formatInline')){if(!_0x191f18['isOwn'])continue;if(_0x29389e['subType']!=_0x5d9f8f)continue;if(!Qt(_0x29389e,_0xc8016c))continue;const _0x14a541=_0x29389e['getFirstRange']();if(_0x14a541['containsRange'](_0x2717c9,!0x0))return null;_0xc23030=_0xc23030['isBefore'](_0x14a541['start'])?_0xc23030:_0x14a541['start'],_0x4b9ccf=_0x4b9ccf['isAfter'](_0x14a541['end'])?_0x4b9ccf:_0x14a541['end'],_0x4a8734?_0x14a541['start']['isBefore'](_0x4a8734['getFirstRange']()['start'])?(_0x4a8734['removeMarkers'](),_0x4a8734=_0x29389e):_0x29389e['removeMarkers']():_0x4a8734=_0x29389e;}const _0x508155=this['_model']['createRange'](_0xc23030,_0x4b9ccf);if(_0x4a8734)this['_setSuggestionRange'](_0x4a8734,_0x508155);else{const _0x53cc65=_0xf49555(),_0x25038f=_0x13e521['id'];this['_setSuggestionData']({'id':_0x53cc65,'type':'formatInline:'+_0x5d9f8f,'data':_0x22bde3,'createdAt':new Date(),'authorId':_0x25038f,'attributes':_0xc8016c}),this['_addSuggestionMarker']('formatInline:'+_0x5d9f8f,_0x53cc65,_0x25038f,_0x508155);}}return null;}['markBlockFormat'](_0x25514b,_0x4bde8d,_0x292373=[],_0x5e7039=null,_0x3b9eae={}){_0x4bde8d['formatGroupId']||(_0x4bde8d['formatGroupId']=_0x4bde8d['commandName']),_0x4bde8d['multipleBlocks']=_0x25514b['is']('range'),_0x5e7039=_0x5e7039||Lt(_0x4bde8d);const _0x1fc4be=_0x292373['map'](_0x43f017=>qt(_0x43f017,this['_model'])),_0x26a253=_0x25514b['is']('range')?_0x25514b:qt(_0x25514b,this['_model']);if(this['_trackingSessionId']&&(_0x3b9eae['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x12d684=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e7039,'accept');return this['forceDefaultExecution'](()=>_0x12d684([_0x26a253],_0x4bde8d,_0x3b9eae)),null;}_0x1fc4be['push'](_0x26a253);let _0x2da765=!0x0;for(const _0x4558ae of _0x1fc4be)if(!this['_rangeIsInLocalUserInsertion'](_0x4558ae)){_0x2da765=!0x1;break;}if(_0x2da765&&'always'!==this['_trackFormatChanges']){const _0xc4c9b8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e7039,'accept');return this['forceDefaultExecution'](()=>_0xc4c9b8([_0x26a253],_0x4bde8d,_0x3b9eae)),null;}let _0x100945=null,_0x1f8987=_0x26a253['start'],_0x331849=_0x26a253['end'];for(const {suggestion:_0x23662b,meta:_0x2a9a3a}of this['_findSuggestions'](_0x26a253,'formatBlock')){if(!_0x2a9a3a['isOwn'])continue;if(_0x2a9a3a['isNextTo']||_0x2a9a3a['containsRangeInObject']||_0x2a9a3a['isInsideObject'])continue;if(_0x23662b['data']['formatGroupId']!=_0x4bde8d['formatGroupId'])continue;if(!Qt(_0x23662b,_0x3b9eae))continue;const _0x41e7f1=_0x23662b['getFirstRange']();if(_0x23662b['subType']==_0x5e7039){if(_0x41e7f1['containsRange'](_0x26a253,!0x0))return null;_0x1f8987=_0x1f8987['isBefore'](_0x41e7f1['start'])?_0x1f8987:_0x41e7f1['start'],_0x331849=_0x331849['isAfter'](_0x41e7f1['end'])?_0x331849:_0x41e7f1['end'],_0x100945?_0x41e7f1['start']['isBefore'](_0x100945['getFirstRange']()['start'])?(_0x100945['removeMarkers'](),_0x100945=_0x23662b):_0x23662b['removeMarkers']():_0x100945=_0x23662b;}else{const _0x185d1a=_0x26a253['getIntersection'](_0x41e7f1);this['_cutOutSuggestionMarker'](_0x23662b,_0x185d1a);}}const _0x4aac95=this['editor']['plugins']['get']('Users')['me'],_0x20eb6a=_0xf49555(),_0x3088c0=_0x4aac95['id'];if(_0x100945)return this['_setSuggestionRange'](_0x100945,this['_model']['createRange'](_0x1f8987,_0x331849)),_0x100945;{const _0x8af371=this['_setSuggestionData']({'id':_0x20eb6a,'type':'formatBlock:'+_0x5e7039,'data':_0x4bde8d,'createdAt':new Date(),'authorId':_0x3088c0,'attributes':_0x3b9eae});return this['_addSuggestionMarker']('formatBlock:'+_0x5e7039,_0x20eb6a,_0x3088c0,this['_model']['createRange'](_0x1f8987,_0x331849)),_0x8af371;}}['markMultiRangeBlockFormat'](_0x2e4659,_0x50361b,_0x1231b0=[],_0x3315ad=null,_0x1f9046={}){_0x50361b['formatGroupId']||(_0x50361b['formatGroupId']=_0x50361b['commandName']);const _0x3cb943=_0x2e4659[0x0];_0x50361b['multipleBlocks']=_0x3cb943['is']('range'),_0x3315ad=_0x3315ad||Lt(_0x50361b);const _0x591dc0=_0x1231b0['map'](_0x54b9ce=>qt(_0x54b9ce,this['_model'])),_0x541372=_0x3cb943['is']('range')?_0x2e4659:_0x2e4659['map'](_0x144f19=>qt(_0x144f19,this['_model']));if(this['_trackingSessionId']&&(_0x1f9046['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5c7379=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3315ad,'accept');return this['forceDefaultExecution'](()=>_0x5c7379(_0x541372,_0x50361b,_0x1f9046)),null;}_0x591dc0['push'](..._0x541372);let _0x4f2da5=!0x0;for(const _0x26be3e of _0x591dc0)if(!this['_rangeIsInLocalUserInsertion'](_0x26be3e)){_0x4f2da5=!0x1;break;}if(_0x4f2da5&&'always'!==this['_trackFormatChanges']){const _0x5093f1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3315ad,'accept');return this['forceDefaultExecution'](()=>_0x5093f1(_0x541372,_0x50361b,_0x1f9046)),null;}const _0x5902fd=this['editor']['plugins']['get']('Users')['me'];for(const _0x59baa1 of this['getSuggestions']()){const _0x28e19a=_0x59baa1['data'];if(_0x59baa1['author']['id']!=_0x5902fd['id'])continue;if('formatBlock'!=_0x59baa1['type']||_0x28e19a['formatGroupId']!=_0x50361b['formatGroupId'])continue;if(!Qt(_0x59baa1,_0x1f9046))continue;const _0x37d598=_0x59baa1['subType']==_0x3315ad;for(let _0x2bdc15=0x0;_0x2bdc15<_0x541372['length'];_0x2bdc15++){const _0x44ad69=_0x541372[_0x2bdc15];for(const _0x6dc901 of _0x59baa1['getMarkers']()){const _0x591b31=_0x6dc901['getRange']();if(_0x44ad69['isEqual'](_0x591b31)){_0x37d598?(_0x541372['splice'](_0x2bdc15,0x1),_0x2bdc15--):_0x59baa1['removeMarker'](_0x6dc901['name']);break;}}}}if(0x0==_0x541372['length'])return null;const _0x50fdd9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3315ad,'join');for(const _0x23c606 of this['getSuggestions']()){const _0xc4bd5b=_0x23c606['data'];if(_0x23c606['author']['id']==_0x5902fd['id']&&('formatBlock'==_0x23c606['type']&&_0xc4bd5b['formatGroupId']==_0x50361b['formatGroupId']&&_0x23c606['subType']==_0x3315ad&&Qt(_0x23c606,_0x1f9046)&&(_0x50fdd9(_0x23c606['getRanges'](),_0x541372)||_0x50fdd9(_0x541372,_0x23c606['getRanges']())))){for(const _0x12c096 of _0x541372)_0x23c606['addRange'](_0x12c096);return _0x23c606;}}const _0x50dab4=_0xf49555(),_0x5aaa8e=_0x5902fd['id'],_0x56ce0f='formatBlock:'+_0x3315ad,_0x410c52=this['_setSuggestionData']({'id':_0x50dab4,'type':_0x56ce0f,'data':_0x50361b,'createdAt':new Date(),'authorId':_0x5aaa8e,'attributes':_0x1f9046});for(const _0x2f322e of _0x541372)this['_addSuggestionMarker'](_0x56ce0f,_0x50dab4,_0x5aaa8e,_0x2f322e,T['getMultiRangeId']());return _0x410c52;}['markDeletion'](_0x494d30,_0x42d616=null,_0x5bc98f={}){if(_0x494d30['isCollapsed'])return null;const _0x4e4719=this['editor']['plugins']['get']('Users')['me'],_0x5681c9=new _0x247134(_0x494d30['start'],_0x494d30['end']);this['_trackingSessionId']&&(_0x5bc98f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xcf242c,meta:_0x2e8ce6}of this['_findSuggestions'](_0x5681c9,'insertion'))if(_0x2e8ce6['isOwn']&&!_0x2e8ce6['isNextTo']){if(_0xcf242c['isMultiRange']){const _0xf1a016=_0xcf242c['getRanges']()['filter'](_0x474803=>'$graveyard'!=_0x474803['root']['rootName']);_0xf1a016['every'](_0x1c4fcf=>_0x5681c9['containsRange'](_0x1c4fcf,!0x0))&&_0xcf242c['discard']();if(_0xf1a016['some'](_0x1c8ecc=>_0x1c8ecc['containsRange'](_0x5681c9,!0x0))){const _0x301667=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x42d616,'accept');return this['forceDefaultExecution'](()=>_0x301667([_0x5681c9],null,_0x5bc98f)),null;}}else{const _0x41a851=_0x5681c9['getIntersection'](_0xcf242c['getFirstRange']());null!==_0x41a851&&_0xcf242c['_onDiscard']([_0x41a851],null,_0x5bc98f);}}if(_0x5681c9['detach'](),_0x5681c9['isCollapsed']||'$graveyard'==_0x5681c9['root']['rootName'])return null;let _0x7947ca=null,_0x2a6422=_0x5681c9['start'],_0x17792a=_0x5681c9['end'];const _0x279a0c=this['_findSuggestions'](_0x5681c9,'deletion');for(const {suggestion:_0x3c2235,meta:_0x5b43aa}of _0x279a0c){const _0x365053=this['_model']['createRange'](_0x2a6422,_0x17792a);if(_0x5b43aa['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5b43aa['containsRangeInObject']&&!_0x5b43aa['isInsideObject'])){if(_0x3c2235['isMultiRange']){if(!Qt(_0x3c2235,_0x5bc98f))continue;let _0x1e8704=!0x0;for(const _0x5c6988 of _0x3c2235['getRanges']()){if(_0x5c6988['containsRange'](_0x365053,!0x0))return _0x3c2235;_0x365053['containsRange'](_0x5c6988)||(_0x1e8704=!0x1);}_0x1e8704&&_0x3c2235['discard']();}else{const _0x178c27=_0x3c2235['getFirstRange']();if(_0x178c27['containsRange'](_0x365053,!0x0))return _0x3c2235;if(!Qt(_0x3c2235,_0x5bc98f)){_0x365053['containsRange'](_0x178c27)?_0x3c2235['removeMarkers']():_0x178c27['containsPosition'](_0x2a6422)?_0x2a6422=_0x178c27['end']:_0x178c27['containsPosition'](_0x17792a)&&(_0x17792a=_0x178c27['start']);continue;}_0x2a6422=_0x2a6422['isBefore'](_0x178c27['start'])?_0x2a6422:_0x178c27['start'],_0x17792a=_0x17792a['isAfter'](_0x178c27['end'])?_0x17792a:_0x178c27['end'],_0x5bc98f=Object['assign']({},_0x3c2235['attributes']),_0x7947ca?_0x178c27['start']['isBefore'](_0x7947ca['getFirstRange']()['start'])?(_0x7947ca['removeMarkers'](),_0x7947ca=_0x3c2235):_0x3c2235['removeMarkers']():_0x7947ca=_0x3c2235;}}}if(_0x7947ca)return this['_setSuggestionRange'](_0x7947ca,this['_model']['createRange'](_0x2a6422,_0x17792a)),_0x7947ca;{const _0x4e7b30=_0xf49555(),_0x318e3f=this['_model']['createRange'](_0x2a6422,_0x17792a),_0x1c4e83=_0x4e4719['id'],_0x170978=_0x42d616?'deletion:'+_0x42d616:'deletion',_0xcc2b5b=this['_setSuggestionData']({'id':_0x4e7b30,'type':_0x170978,'createdAt':new Date(),'authorId':_0x1c4e83,'attributes':_0x5bc98f});return this['_addSuggestionMarker'](_0x170978,_0x4e7b30,_0x1c4e83,_0x318e3f),_0xcc2b5b;}}['markMultiRangeDeletion'](_0x1d2750,_0x363949='multi',_0x286eae={}){const _0x35cddd=this['editor']['plugins']['get']('Users')['me'],_0x2f1ffe=_0x1d2750['map'](_0x9698a=>new _0x247134(_0x9698a['start'],_0x9698a['end'])),_0x5446b1=new Set();this['_trackingSessionId']&&(_0x286eae['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x150b37,meta:_0x1818d9}of this['_findSuggestions'](_0x2f1ffe,'insertion'))_0x1818d9['isOwn']&&!_0x1818d9['isNextTo']&&_0x5446b1['add'](_0x150b37);for(const _0x3cbf60 of _0x5446b1)if(_0x3cbf60['isMultiRange']){const _0x4795f7=_0x3cbf60['getRanges']();(!_0x3cbf60['attributes']||!_0x3cbf60['attributes']['skipNestingCheck'])&&(_0x4795f7['every'](_0x27b803=>_0x2f1ffe['some'](_0x3f0cac=>_0x3f0cac['containsRange'](_0x27b803,!0x0)))&&_0x3cbf60['discard']());if(_0x2f1ffe['every'](_0x394de9=>_0x4795f7['some'](_0x4a4b2b=>_0x4a4b2b['containsRange'](_0x394de9,!0x0)))){const _0x30662b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x363949,'accept');return this['forceDefaultExecution'](()=>_0x30662b(_0x1d2750,null,_0x286eae)),null;}}else{const _0x2e686d=_0x3cbf60['getFirstRange']();_0x2f1ffe['some'](_0x487dd7=>_0x487dd7['containsRange'](_0x2e686d,!0x0))&&_0x3cbf60['discard']();if(_0x2f1ffe['every'](_0x4c0c3f=>_0x2e686d['containsRange'](_0x4c0c3f,!0x0))){const _0x3afdf9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x363949,'accept');return this['forceDefaultExecution'](()=>_0x3afdf9(_0x2f1ffe,null,_0x286eae)),null;}}const _0x40a798=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x363949,'join');let _0x3a9b43=null;for(const _0x4d8c69 of this['getSuggestions']())if(_0x4d8c69['author']['id']==_0x35cddd['id']&&_0x4d8c69['isInContent']&&'deletion'==_0x4d8c69['type']&&_0x4d8c69['subType']==_0x363949&&Qt(_0x4d8c69,_0x286eae)&&(_0x40a798(_0x4d8c69['getRanges'](),_0x2f1ffe)||_0x40a798(_0x2f1ffe,_0x4d8c69['getRanges']()))){if(_0x3a9b43){if(_0x4d8c69['commentThread']&&_0x4d8c69['commentThread']['length'])continue;for(const _0x4d67f8 of _0x4d8c69['getRanges']())_0x3a9b43['isIntersectingWithRange'](_0x4d67f8)||_0x3a9b43['addRange'](_0x4d67f8);_0x4d8c69['removeMarkers']();}else{_0x3a9b43=_0x4d8c69;for(const _0x3a7ffc of _0x2f1ffe)_0x4d8c69['isIntersectingWithRange'](_0x3a7ffc)||_0x4d8c69['addRange'](_0x3a7ffc);}}if(_0x3a9b43)return _0x3a9b43;_0x5446b1['clear']();for(const {suggestion:_0x47df03,meta:_0x1857b6}of this['_findSuggestions'](_0x2f1ffe,'deletion'))_0x1857b6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1857b6['containsRangeInObject']&&!_0x1857b6['isInsideObject'])&&Qt(_0x47df03,_0x286eae)&&_0x5446b1['add'](_0x47df03);for(const _0x3824c2 of _0x5446b1){const _0x4247bb=_0x3824c2['getRanges']();if(!_0x286eae||!_0x286eae['skipNestingCheck']){if(_0x2f1ffe['every'](_0x18e270=>_0x4247bb['some'](_0x1c40ff=>_0x1c40ff['containsRange'](_0x18e270,!0x0))))return _0x3824c2;}(!_0x3824c2['attributes']||!_0x3824c2['attributes']['skipNestingCheck'])&&(_0x4247bb['every'](_0xafe88=>_0x2f1ffe['some'](_0x40a219=>_0x40a219['containsRange'](_0xafe88,!0x0)))&&_0x3824c2['discard']());}const _0x19d44f=_0xf49555(),_0x1c1c18=_0x35cddd['id'],_0x37df05='deletion:'+_0x363949,_0x5a8244=this['_setSuggestionData']({'id':_0x19d44f,'type':_0x37df05,'createdAt':new Date(),'authorId':_0x1c1c18,'attributes':_0x286eae});for(const _0x574e7a of _0x2f1ffe)_0x574e7a['detach'](),_0x574e7a['isCollapsed']||'$graveyard'==_0x574e7a['root']['rootName']||this['_addSuggestionMarker'](_0x37df05,_0x19d44f,_0x1c1c18,_0x574e7a,T['getMultiRangeId']());return _0x5a8244;}['markAttributeChange'](_0x5b9254,_0x1c9688,_0x4e1d74,_0x3198ad,_0x28c26e){if(_0x5b9254['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3eb322=this['editor']['plugins']['get']('Users')['me']['id'],_0xfd5384=Array['from'](this['_suggestions']['values']())['filter'](_0x4dd767=>'attribute'==_0x4dd767['type']&&_0x4dd767['data']['key']==_0x1c9688&&_0x4dd767['isIntersectingWithRange'](_0x5b9254));if(this['_trackingSessionId']&&(_0x28c26e['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x44d6b1=this['_findSuggestions'](_0x5b9254,'insertion')['filter'](({meta:_0x55dfad})=>_0x55dfad['isOwn']&&!_0x55dfad['isInsideObject']&&!_0x55dfad['isNextTo'])['map'](({suggestion:_0x34258d})=>_0x34258d);_0xfd5384['unshift'](..._0x44d6b1);}const _0x1b0e52=new Map([[_0x5b9254,_0x4e1d74]]);for(const _0x5ef045 of _0xfd5384){const _0x110453='attribute'==_0x5ef045['type']?_0x5ef045['data']['oldValue']:void 0x0,_0x1d39c5=_0x5ef045['getFirstRange'](),_0x280b50=Array['from'](_0x1b0e52['keys']())['find'](_0x40ace0=>_0x40ace0['isIntersecting'](_0x1d39c5));if(!_0x280b50)continue;const _0x20e9aa=_0x280b50['getDifference'](_0x1d39c5);this['_isBlockAttribute'](_0x1c9688)&&'insertion'==_0x5ef045['type']&&0x0!=_0x20e9aa['length']||(_0x1b0e52['delete'](_0x280b50),_0x20e9aa['forEach'](_0x173a8b=>{_0x1b0e52['set'](_0x173a8b,_0x4e1d74);}),'insertion'!=_0x5ef045['type']&&_0x110453!=_0x3198ad&&_0x1b0e52['set'](_0x280b50['getIntersection'](_0x1d39c5),_0x110453));}const _0x2c603e=[];for(const [_0x3b3770,_0x4473f9]of _0x1b0e52){const _0x461fbf=_0xf49555(),_0x45360c={'key':_0x1c9688,'oldValue':_0x4473f9,'newValue':_0x3198ad};_0x1c9688['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':_0x1c9688});const _0x4e7b22=('attribute:'+(_0x1c9688+'|'+Lt({'newValue':_0x3198ad})))['substring'](0x0,0x3c),_0x56fb92=this['_setSuggestionData']({'id':_0x461fbf,'type':_0x4e7b22,'data':_0x45360c,'createdAt':new Date(),'authorId':_0x3eb322,'attributes':_0x28c26e});_0x2c603e['push'](_0x56fb92),this['_addSuggestionMarker'](_0x4e7b22,_0x461fbf,_0x3eb322,_0x3b3770);}return _0x2c603e;}['enableDefaultAttributesIntegration'](_0x5531c9){this['enableCommand'](_0x5531c9,(_0x5cca31,..._0x2cb979)=>{this['recordAttributeChanges'](()=>{_0x5cca31(..._0x2cb979);});});}['registerBlockAttribute'](_0xc83eb4){this['_blockAttributeKeys']['add'](_0xc83eb4);}['registerInlineAttribute'](_0x2e5048){this['_inlineAttributeKeys']['add'](_0x2e5048);}['startTrackingSession'](_0x4fb76b){return this['_trackingSessionId']=void 0x0!==_0x4fb76b?_0x4fb76b:_0xf49555(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2efd44){return'attribute'==_0x2efd44['type']?_0x2efd44['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x26c49f,_0x122f40){const _0x260ebe=_0x26c49f['getFirstMarker']();this['_model']['change'](_0x7d9e38=>{_0x7d9e38['updateMarker'](_0x260ebe,{'range':_0x122f40});});}['_addThreadToSuggestion'](_0x4d8c42){const _0x4a54b5=_0x4d8c42['id'],_0x2f758b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4a54b5)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2f758b,'threadId':_0x4a54b5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2c6acd=this['_commentsRepository']['getCommentThread'](_0x4a54b5);_0x2c6acd['unbind']('isRemovable'),_0x2c6acd['isRemovable']=!0x1,_0x4d8c42['commentThread']=_0x2c6acd;}['_checkSuggestionCorrectness'](_0x3fe489,_0x2a8578,_0x5b377f,_0x2f8659){if(_0x3fe489['type']!=_0x2a8578||_0x3fe489['subType']!=_0x5b377f||_0x3fe489['creator']['id']!=_0x2f8659)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2cce5b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x261321,_0x316130){const _0x2494a5=_0x261321['getFirstRange']();if(_0x316130['isEqual'](_0x2494a5))_0x261321['removeMarkers']();else{if(_0x2494a5['containsRange'](_0x316130)){const _0xcfe389=this['_model']['createPositionAt'](_0x316130['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x261321,this['_model']['createRange'](_0x2494a5['start'],_0xcfe389));const _0x2d6afb=_0xf49555(),_0x54fc6f=_0x261321['creator']['id'],_0x451f81=_0x261321['type']+':'+_0x261321['subType'];this['_setSuggestionData']({'id':_0x2d6afb,'type':_0x451f81,'createdAt':new Date(),'authorId':_0x54fc6f,'data':_0x261321['data'],'attributes':_0x261321['attributes']});const _0x1ba175=this['_model']['createPositionAt'](_0x316130['end']['parent'],'after'),_0x1b15b3=this['_model']['createRange'](_0x1ba175,_0x2494a5['end']);this['_addSuggestionMarker'](_0x451f81,_0x2d6afb,_0x54fc6f,_0x1b15b3);}else{if(_0x2494a5['containsPosition'](_0x316130['start'])){const _0x4a19a9=this['_model']['createPositionAt'](_0x316130['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x261321,this['_model']['createRange'](_0x2494a5['start'],_0x4a19a9));}else{const _0x18aa47=this['_model']['createPositionAt'](_0x316130['end']['parent'],'after');this['_setSuggestionRange'](_0x261321,this['_model']['createRange'](_0x18aa47,_0x2494a5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x18fe9b){for(const {suggestion:_0x4acf28,meta:_0x2ff2c4}of this['_findSuggestions'](_0x18fe9b,'insertion')){if(!_0x2ff2c4['isOwn'])continue;const _0x5cc157=_0x4acf28['getRanges']();for(const _0x5b3fd6 of _0x5cc157)if(!_0x18fe9b['getDifference'](_0x5b3fd6)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1b65f3){const _0x4a6d3a=this['editor']['plugins']['get']('Users')['getUser'](_0x1b65f3);if(!_0x4a6d3a)throw new _0x2cce5b('track-changes-user-not-found',this);return _0x4a6d3a;}['_getExternalAuthor'](_0x4783c3){const _0x28d491=this['editor']['plugins']['get']('Users'),_0x46ce53=_0x1afb2e('external:'+_0x4783c3),_0xf5e15a=_0x28d491['getUser'](_0x46ce53);return _0xf5e15a||_0x28d491['addUser']({'id':_0x46ce53,'name':_0x4783c3});}['_createSuggestion'](_0x11b114,_0x53ecdc,_0x142ebc,_0x57b449,_0x99ac7e,_0x33ec9d){const _0x31e47e=this['_getAuthorFromId'](_0x57b449),_0x1b7726=this['_suggestionFactory']['buildSuggestion'](_0x11b114,_0x53ecdc,_0x142ebc,_0x31e47e,_0x99ac7e,_0x24aec0=>{this['_updateSuggestionData'](_0x142ebc,{'attributes':_0x24aec0});const _0x21be8c=this['getSuggestion'](_0x142ebc);this['_joinWithAdjacentSuggestions'](new Set([_0x21be8c])),this['_refreshSuggestionsChain'](new Set([_0x21be8c]));},_0x33ec9d);return this['listenTo'](_0x1b7726,'accept',()=>{this['_updateSuggestionData'](_0x142ebc,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1b7726,'discard',()=>{this['_updateSuggestionData'](_0x142ebc,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x142ebc,_0x1b7726),this['_suggestionState']['set'](_0x1b7726,'notReady'),_0x1b7726;}['_splitMarkerName'](_0x3c15ab){const _0x16bd96=_0x3c15ab['split'](':');return{'group':_0x16bd96[0x0],'type':_0x16bd96[0x1],'subType':_0x16bd96['length']>=0x5?_0x16bd96[0x2]:null,'id':_0x16bd96['length']<0x5?_0x16bd96[0x2]:_0x16bd96[0x3],'authorId':_0x16bd96['length']<0x5?_0x16bd96[0x3]:_0x16bd96[0x4],'markerCount':0x6==_0x16bd96['length']?_0x16bd96[0x5]:null};}['_breakSuggestionMarker'](_0x42b9c0,_0x2cac93,_0x536e3c){const _0x1f3ebe=_0x42b9c0['getFirstRange'](),_0x4ca0d0=_0x1f3ebe['start'],_0x275235=_0x1f3ebe['end'];this['_setSuggestionRange'](_0x42b9c0,this['_model']['createRange'](_0x4ca0d0,_0x2cac93));const _0x2e588b=_0xf49555(),_0x400c72=_0x42b9c0['creator']['id'],_0x194fa1=_0x42b9c0['type']+(_0x42b9c0['subType']?':'+_0x42b9c0['subType']:'');this['_setSuggestionData']({'id':_0x2e588b,'type':_0x194fa1,'createdAt':new Date(),'authorId':_0x400c72,'originalSuggestionId':_0x42b9c0['_originalSuggestionId']||_0x42b9c0['id'],'attributes':_0x42b9c0['attributes'],'data':_0x42b9c0['data']});const _0x2373ab=this['_getAttributeKey'](_0x42b9c0);('formatBlock'==_0x42b9c0['type']||_0x2373ab&&this['_isBlockAttribute'](_0x2373ab))&&(_0x536e3c=this['_model']['createPositionBefore'](_0x536e3c['parent'])),this['_addSuggestionMarker'](_0x194fa1,_0x2e588b,_0x400c72,this['_model']['createRange'](_0x536e3c,_0x275235));}['_findSuggestions'](_0x3a04b0,_0xad1209=null){const _0x4dd943=[],_0xd133ce=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3a04b0)||(_0x3a04b0=[_0x3a04b0]);for(const _0x34bcbe of this['getSuggestions']()){if(!_0x34bcbe['isInContent'])continue;if(_0xad1209&&_0x34bcbe['type']!=_0xad1209)continue;let _0x42cbdd=!0x1;for(const _0x46a4c8 of _0x34bcbe['getRanges']()){for(const _0xc2befd of _0x3a04b0){const _0x309995=_0xc2befd['start']['isEqual'](_0x46a4c8['end'])||_0xc2befd['end']['isEqual'](_0x46a4c8['start']);if(_0x309995||_0xc2befd['getIntersection'](_0x46a4c8)){const _0x49d810=_0xc2befd['containsRange'](_0x46a4c8)&&Ft(this['_model']['schema'],_0x46a4c8['start'],_0xc2befd),_0x1fc51c=_0x46a4c8['containsRange'](_0xc2befd)&&Ft(this['_model']['schema'],_0xc2befd['start'],_0x46a4c8);_0x4dd943['push']({'suggestion':_0x34bcbe,'meta':{'isOwn':_0xd133ce==_0x34bcbe['author'],'isNextTo':_0x309995,'isInsideObject':_0x49d810,'containsRangeInObject':_0x1fc51c}}),_0x42cbdd=!0x0;break;}}if(_0x42cbdd)break;}}return _0x4dd943;}['_addSuggestionMarker'](_0x241139,_0xe437ca,_0x46cf4e,_0x59a0d0,_0x3ba881){this['_model']['change'](_0x2a72a3=>{let _0x5ee161='suggestion:'+_0x241139+':'+_0xe437ca+':'+_0x46cf4e;_0x3ba881&&(_0x5ee161=_0x5ee161+':'+_0x3ba881),_0x2a72a3['addMarker'](_0x5ee161,{'range':_0x59a0d0,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x11fa9a){const _0x5d10ac=_0x11fa9a['previous'],_0x36ed18=_0x11fa9a['next'];_0x11fa9a['previous']=null,_0x11fa9a['next']=null,null!=_0x5d10ac&&_0x5d10ac['next']==_0x11fa9a&&(_0x5d10ac['next']=_0x36ed18),null!=_0x36ed18&&_0x36ed18['previous']==_0x11fa9a&&(_0x36ed18['previous']=_0x5d10ac),'ready'==this['_suggestionState']['get'](_0x11fa9a)&&(this['_suggestionState']['set'](_0x11fa9a,'removed'),this['fire']('suggestionUnloaded',_0x11fa9a,_0x5d10ac,_0x36ed18));}['_setSuggestionData'](_0x24e99a){const _0x370fa4=_0x24e99a['id'],_0x5d3f98=this['addSuggestionData'](_0x24e99a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x757f2a=this['editor']['plugins']['get']('PendingActions'),_0x453cfb=_0x5d3f98['hasComments'],_0x353f59=_0x5d3f98['subType']?_0x5d3f98['type']+':'+_0x5d3f98['subType']:_0x5d3f98['type'],_0x3bbc2b=this['editor']['locale'],_0x4d3eb0=_0x757f2a['add'](o(_0x3bbc2b,'PENDING_ACTION_SUGGESTION')),_0x3eef99={'id':_0x370fa4,'type':_0x353f59,'hasComments':_0x453cfb,'data':_0x24e99a['data']||null,'originalSuggestionId':_0x24e99a['originalSuggestionId']||null,'attributes':_0x5d3f98['attributes']};this['_adapter']['addSuggestion'](_0x3eef99)['then'](_0x1659bc=>{_0x5d3f98['_saved']=!0x0,_0x757f2a['remove'](_0x4d3eb0),_0x1659bc&&_0x1659bc['createdAt']&&(this['_suggestions']['get'](_0x370fa4)['createdAt']=_0x1659bc['createdAt']);})['catch'](_0x1b8525=>{throw _0x290294('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5d3f98['discard']();}),_0x5d3f98['stopListening'](),this['_suggestions']['delete'](_0x5d3f98['id']),this['_suggestionState']['delete'](_0x5d3f98),_0x1b8525;});}return _0x5d3f98;}['_isBlockAttribute'](_0x1299ad){return this['_blockAttributeKeys']['has'](_0x1299ad);}['_updateSuggestionData'](_0x380c78,_0x5a3362){const _0x3a19c2=this['editor']['plugins']['get']('PendingActions'),_0x2acbc6=this['getSuggestion'](_0x380c78);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2acbc6['_saved']){const _0x1d0c58=_0x3a19c2['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x380c78,_0x5a3362)['then'](()=>{_0x3a19c2['remove'](_0x1d0c58);});}else _0x2acbc6['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x380c78,_0x5a3362);});}}['_getSuggestionData'](_0x414a8b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2cce5b('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x414a8b);}['_handleNewSuggestionMarker'](_0x29fce2){const {id:_0x5baad9,type:_0x2a42a7,subType:_0x3ef84a,authorId:_0x3922a5}=this['_splitMarkerName'](_0x29fce2),_0x3cda8a=this['_suggestions']['get'](_0x5baad9)||this['_createSuggestion'](_0x2a42a7,_0x3ef84a,_0x5baad9,_0x3922a5,{});switch(this['_checkSuggestionCorrectness'](_0x3cda8a,_0x2a42a7,_0x3ef84a,_0x3922a5),this['_suggestionState']['get'](_0x3cda8a)){case'notReady':this['_getSuggestionData'](_0x5baad9)['then'](_0x4b021d=>{let _0x3b2bdf=Promise['resolve']();_0x4b021d['hasComments']&&(_0x3b2bdf=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5baad9})),_0x3b2bdf['then'](()=>{this['addSuggestionData'](_0x4b021d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3cda8a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5baad9,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3cda8a,'ready'),this['fire']('suggestionLoaded',_0x3cda8a);break;case'ready':this['fire']('suggestionChanged',_0x3cda8a);}return _0x3cda8a['addMarkerName'](_0x29fce2),_0x3cda8a;}['_refreshSuggestionsChain'](_0x191d5e){const _0x2a05fc=Array['from'](_0x191d5e),_0x587aa0=_0x2a05fc['filter'](_0x21deff=>'attribute'==_0x21deff['type']);this['_refreshAttributeSuggestionsChain'](_0x587aa0);const _0x17f4db=_0x2a05fc['filter'](_0x13e4fd=>!_0x13e4fd['isMultiRange']&&'attribute'!=_0x13e4fd['type']),_0x27ede9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f2341=>!_0x3f2341['isMultiRange']&&'attribute'!=_0x3f2341['type']),_0x1d7f79=_0x27ede9['filter'](_0x38b48b=>!_0x191d5e['has'](_0x38b48b)),_0x236616=new Map(_0x27ede9['map'](_0x56538f=>[_0x56538f,this['_suggestionFactory']['getSuggestionCallback'](_0x56538f['type'],_0x56538f['subType'],'chain')])),_0x26afe0=new Map(_0x27ede9['map'](_0x20dd2d=>[_0x20dd2d,_0x20dd2d['getFirstRange']()])),_0x1aa5b4=new Set(),_0x1045f6=new Set();for(let _0x59894f=0x0;_0x59894f<_0x17f4db['length'];_0x59894f++)_0x50a103(_0x17f4db[_0x59894f],_0x17f4db,_0x59894f+0x1);for(let _0x44e8b6=0x0;_0x44e8b6<_0x17f4db['length'];_0x44e8b6++)_0x50a103(_0x17f4db[_0x44e8b6],_0x1d7f79,0x0);const _0x2a47c3=new Set();for(let _0x7f65bf=0x0;_0x7f65bf<_0x17f4db['length'];_0x7f65bf++){const _0x2614dd=_0x17f4db[_0x7f65bf];!_0x1045f6['has'](_0x2614dd)&&_0x2614dd['previous']&&(_0x2a47c3['add'](_0x2614dd['previous']),_0x2614dd['previous']['next']===_0x2614dd&&(_0x2614dd['previous']['next']=null),_0x2614dd['previous']=null),!_0x1aa5b4['has'](_0x2614dd)&&_0x2614dd['next']&&(_0x2a47c3['add'](_0x2614dd['next']),_0x2614dd['next']['previous']===_0x2614dd&&(_0x2614dd['next']['previous']=null),_0x2614dd['next']=null);}function _0x50a103(_0x54a4ee,_0x351d31,_0xbf7d64){for(let _0x38c44f=_0xbf7d64;_0x38c44f<_0x351d31['length'];_0x38c44f++){const _0x1bb585=_0xc7a91c(_0x54a4ee,_0x351d31[_0x38c44f]);_0x1bb585&&(_0x1bb585[0x0]['next']=_0x1bb585[0x1],_0x1bb585[0x1]['previous']=_0x1bb585[0x0],_0x1aa5b4['add'](_0x1bb585[0x0]),_0x1045f6['add'](_0x1bb585[0x1]));}}function _0xc7a91c(_0xb56fe8,_0x4f1cf3){if(_0xb56fe8['author']['id']!==_0x4f1cf3['author']['id'])return null;const _0x394b9d=_0x236616['get'](_0xb56fe8)(_0xb56fe8,_0x4f1cf3,_0x26afe0['get'](_0xb56fe8),_0x26afe0['get'](_0x4f1cf3));if(!_0x394b9d)return null;return _0x236616['get'](_0x4f1cf3)(_0xb56fe8,_0x4f1cf3,_0x26afe0['get'](_0xb56fe8),_0x26afe0['get'](_0x4f1cf3))?_0x394b9d[0x1]['commentThread']&&_0x394b9d[0x1]['commentThread']['length']?null:_0x394b9d:null;}_0x2a47c3['size']&&this['_refreshSuggestionsChain'](_0x2a47c3);}['_refreshAttributeSuggestionsChain'](_0xbf369f){if(0x0==_0xbf369f['length'])return;const _0x38d296=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4be85d=>'attribute'==_0x4be85d['type']&&_0x4be85d['_isDataLoaded']),_0x15e336=[],_0x2621dd=new Map();for(const _0x9b8eb2 of _0x38d296){const _0x39e9a2=_0x1afb2e(_0x9b8eb2['attributes']);_0x2621dd['has'](_0x39e9a2)||(_0x2621dd['set'](_0x39e9a2,_0x15e336['length']),_0x15e336['push']([]));const _0x4e4f2c=_0x2621dd['get'](_0x39e9a2);_0x15e336[_0x4e4f2c]['push'](_0x9b8eb2);}!(function(){_0x15e336['sort']((_0xf90c4f,_0x598a9e)=>{const _0x1999fe=_0xf90c4f[0x0]['createdAt'],_0x587821=_0x598a9e[0x0]['createdAt'];return _0x1999fe==_0x587821?_0xf90c4f[0x0]['attributes']['groupId']<_0x598a9e[0x0]['attributes']['groupId']?-0x1:0x1:_0x1999fe<_0x587821?-0x1:0x1;});for(const _0x5dbe9d of _0x15e336)_0x5dbe9d['sort']((_0x5bdd92,_0x40928e)=>_0x5bdd92['id']<_0x40928e['id']?-0x1:0x1);}());for(let _0x2b5cd3=0x0;_0x2b5cd3<_0x15e336['length'];_0x2b5cd3++){if(0x0==_0x15e336[_0x2b5cd3]['length'])continue;const _0x43c1fb=[];for(let _0x34648b=_0x2b5cd3+0x1;_0x34648b<_0x15e336['length'];_0x34648b++)0x0!=_0x15e336[_0x34648b]['length']&&_0x223d97(_0x15e336[_0x2b5cd3],_0x15e336[_0x34648b])&&_0x43c1fb['push'](_0x34648b);for(const _0x456474 of _0x43c1fb)_0x15e336[_0x2b5cd3]=_0x15e336[_0x2b5cd3]['concat'](_0x15e336[_0x456474]),_0x15e336[_0x456474]=[];}for(const _0x1f87a2 of _0x15e336)for(let _0x2f03f5=0x0;_0x2f03f5<_0x1f87a2['length'];_0x2f03f5++){const _0x30245f=_0x1f87a2[_0x2f03f5+0x1]||null;_0x1f87a2[_0x2f03f5]['next']!==_0x30245f&&(_0x1f87a2[_0x2f03f5]['next']=_0x30245f);}for(const _0x537e2e of _0x15e336)for(let _0x502c44=0x0;_0x502c44<_0x537e2e['length'];_0x502c44++){const _0x373b97=_0x537e2e[_0x502c44-0x1]||null;_0x537e2e[_0x502c44]['previous']!==_0x373b97&&(_0x537e2e[_0x502c44]['previous']=_0x373b97);}function _0x223d97(_0x5688c6,_0x15f469){if(_0x5688c6[0x0]['attributes']['groupId']!==_0x15f469[0x0]['attributes']['groupId']&&_0x5688c6[0x0]['author']!==_0x15f469[0x0]['author'])return!0x1;if(!function(_0x5774a2,_0x56f368){if(!_0x5774a2['hasComments']&&!_0x56f368['hasComments'])return!0x0;if(_0x5774a2['hasComments']&&_0x56f368['hasComments'])return!0x1;if(_0x5774a2['hasComments']&&_0x56f368['createdAt']<_0x5774a2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x56f368['hasComments']&&_0x5774a2['createdAt']<_0x56f368['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5688c6[0x0],_0x15f469[0x0]))return!0x1;const _0x230ca4=Ut(_0x5688c6[0x0]['attributes'],['groupId','trackingSessionId']),_0x16fabd=Ut(_0x15f469[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5d29ba(_0x230ca4,_0x16fabd))return!0x1;if(_0x5688c6[0x0]['attributes']['groupId']==_0x15f469[0x0]['attributes']['groupId'])return!0x0;if(_0x5688c6[0x0]['attributes']['trackingSessionId']!==_0x15f469[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x5688c6['every'](_0x4fe009=>_0x15f469['some'](_0xa2cc03=>_0x4fe009['getFirstRange']()['isEqual'](_0xa2cc03['getFirstRange']())))&&_0x15f469['every'](_0x124e08=>_0x5688c6['some'](_0x149a67=>_0x124e08['getFirstRange']()['isEqual'](_0x149a67['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5f46b3){const _0x541322=Array['from'](_0x5f46b3),_0x473a61=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2f53e9=_0x473a61['filter'](_0x328f9a=>!_0x5f46b3['has'](_0x328f9a)),_0x452c88=new Map(_0x541322['map'](_0x2145d5=>[_0x2145d5,this['_suggestionFactory']['getSuggestionCallback'](_0x2145d5['type'],_0x2145d5['subType'],'join')])),_0x2229fc=new Map(_0x473a61['map'](_0x23c285=>[_0x23c285,_0x23c285['getRanges']()]));for(let _0x1ec22f=0x0;_0x1ec22f<_0x541322['length'];_0x1ec22f++){if(_0x29ff31(this,_0x541322[_0x1ec22f],_0x541322,_0x1ec22f+0x1))return!0x0;}for(let _0x4d22f8=0x0;_0x4d22f8<_0x541322['length'];_0x4d22f8++){if(_0x29ff31(this,_0x541322[_0x4d22f8],_0x2f53e9,0x0))return!0x0;}return!0x1;function _0x29ff31(_0x37eddf,_0x3e44fe,_0x471c7e,_0x4ddbe3){for(let _0x362651=_0x4ddbe3;_0x362651<_0x471c7e['length'];_0x362651++){const _0x5a31a7=_0x471c7e[_0x362651];if(_0x5a31a7['type']!==_0x3e44fe['type']||_0x5a31a7['author']['id']!==_0x3e44fe['author']['id']||_0x5a31a7['subType']!==_0x3e44fe['subType'])continue;if(!Wt(_0x3e44fe,_0x5a31a7))continue;if('attribute'==_0x3e44fe['type']&&_0x3e44fe['data']['oldValue']!=_0x5a31a7['data']['oldValue'])continue;if('attribute'==_0x3e44fe['type']&&_0x37eddf['_isBlockAttribute'](_0x3e44fe['data']['key']))continue;if('formatBlock'==_0x3e44fe['type']){const _0xb4cf91=_0x37eddf['editor']['model'],_0x48c557=_0x3e44fe['getContainedElement']();if(_0x48c557&&(_0xb4cf91['schema']['isObject'](_0x48c557)||_0xb4cf91['schema']['isLimit'](_0x48c557)))continue;}const _0x5bf84c=_0x452c88['get'](_0x3e44fe),_0x2a4754=_0x2229fc['get'](_0x3e44fe),_0x3227b5=_0x2229fc['get'](_0x5a31a7),_0x4a9597=_0x3e44fe['commentThread']&&_0x3e44fe['commentThread']['length'],_0x5de30f=_0x5a31a7['commentThread']&&_0x5a31a7['commentThread']['length'];if(!_0x4a9597&&_0x5bf84c(_0x3227b5,_0x2a4754))return _0x37eddf['_joinSuggestions'](_0x5a31a7,_0x3e44fe),_0x2229fc['delete'](_0x3e44fe),!0x0;if(!_0x5de30f&&_0x5bf84c(_0x2a4754,_0x3227b5))return _0x37eddf['_joinSuggestions'](_0x3e44fe,_0x5a31a7),_0x2229fc['delete'](_0x5a31a7),!0x0;}return!0x1;}}['_joinSuggestions'](_0xc0842f,_0x511a14){if(_0xc0842f['isMultiRange']){for(const _0x340eb7 of _0x511a14['getRanges']())_0xc0842f['addRange'](_0x340eb7);}else{const _0x51959e=_0x511a14['getFirstRange']()['end'];this['_setSuggestionRange'](_0xc0842f,this['_model']['createRange'](_0xc0842f['getFirstRange']()['start'],_0x51959e));}_0x511a14['removeMarkers']();}['_getMarkerAnnouncementText'](_0x51ea30,_0x1c7671,_0x23d2a5){const _0x55eff6=_0x51ea30['startsWith']('format')||_0x51ea30['startsWith']('attribute')?'FORMATTING':_0x51ea30['toUpperCase']();return o(this['editor']['locale'],_0x1c7671+'_'+_0x55eff6+'_SUGGESTION_ANNOUNCEMENT',_0x23d2a5);}['_initAriaMarkerChangeAnnouncements'](){const _0x3d0b53=this['editor'];if(!_0x3d0b53['ui'])return;const {ariaLiveAnnouncer:_0x188d14}=_0x3d0b53['ui'];_0x175cea(this['_model'],({left:_0x21dda9,entered:_0x538f72})=>{for(const _0x3023dd of _0x21dda9){const {group:_0x188034,type:_0x1faa54}=this['_splitMarkerName'](_0x3023dd['name']);if('suggestion'===_0x188034){_0x188d14['announce'](this['_getMarkerAnnouncementText'](_0x1faa54,'LEAVE'));break;}}for(const _0x1f7bc4 of _0x538f72){const {group:_0x5a623b,type:_0x5bb010}=this['_splitMarkerName'](_0x1f7bc4['name']);if('suggestion'===_0x5a623b){_0x188d14['announce'](this['_getMarkerAnnouncementText'](_0x5bb010,'ENTER',_0x347efd(_0x31ab6e)));break;}}});}['_processAttributeChanges'](_0x5d660e){if(this['_recordAttributeSuggestions'])return!0x1;const _0x164af1=this['editor'],_0x394656=_0x164af1['model']['document']['differ']['getChanges']();if(0x0==_0x394656['length'])return!0x1;const _0x1fef78=[],_0x1a059a=_0x394656['filter'](_0x172ac5=>'attribute'==_0x172ac5['type']),_0x5921db=_0x394656['filter'](_0x20f503=>'insert'==_0x20f503['type']&&'$text'!=_0x20f503['name']),_0x52b5f0=_0x394656['filter'](_0x54b358=>'remove'==_0x54b358['type']&&'$text'!=_0x54b358['name']);for(const _0x2073dd of _0x1a059a)_0x1fef78['push']({'key':_0x2073dd['attributeKey'],'newValue':_0x2073dd['attributeNewValue'],'oldValue':_0x2073dd['attributeOldValue'],'range':Ht(_0x2073dd['range'],_0x164af1['model'])});for(const _0x27fbc1 of _0x5921db){const _0x481168=_0x52b5f0['find'](_0x5a63aa=>_0x5a63aa['position']['isEqual'](_0x27fbc1['position']));_0x481168&&_0x1fef78['push']({'key':m,'newValue':_0x27fbc1['name'],'oldValue':_0x481168['name'],'range':_0x164af1['model']['createRangeOn'](_0x27fbc1['position']['nodeAfter'])});}return 0x0!=_0x1fef78['length']&&this['_reduceExistingSuggestions'](_0x5d660e,_0x1fef78);}['_processAttributeSuggestions'](_0x42f242){let _0x5de40d=!0x1;const _0x4388c6=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4664b1=>_0x4664b1['data']['newRange']&&_0x4664b1['name']['startsWith']('suggestion:attribute:'));for(const _0x1a5b38 of _0x4388c6){const {subType:_0x17fecf,id:_0x1b1c51}=this['_splitMarkerName'](_0x1a5b38['name']),_0x57b796=_0x17fecf['split']('|')[0x0];for(const _0x7fbbc6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x7fbbc6['id']!=_0x1b1c51&&'attribute'==_0x7fbbc6['type']&&_0x7fbbc6['data']&&_0x7fbbc6['data']['key']==_0x57b796&&_0x7fbbc6['getFirstRange']()['isIntersecting'](_0x1a5b38['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x7fbbc6,_0x1a5b38['data']['newRange'],_0x42f242),_0x5de40d=!0x0);}return _0x5de40d;}['recordAttributeChanges'](_0xeea6c8){this['_recordAttributeSuggestions']=!0x0,_0xeea6c8();}['_isRegisteredAttribute'](_0x3da8fe){const _0x2c0916=this['_isBlockAttribute'](_0x3da8fe),_0x5c9724=this['_inlineAttributeKeys']['has'](_0x3da8fe);return _0x2c0916||_0x5c9724;}['_reduceExistingSuggestions'](_0x5ed5bf,_0x170c53){if(0x0==_0x170c53['length'])return!0x1;let _0x1aa376=!0x1;for(const _0x571528 of _0x170c53){const _0xbac332=this['_findSuggestions'](_0x571528['range'],'attribute')['filter'](_0x3ad189=>!_0x3ad189['meta']['isNextTo'])['map'](_0x32d373=>_0x32d373['suggestion']),_0x12e210=_0x1afb2e({'newValue':_0x571528['newValue']});_0xbac332['filter'](_0x2b8e9e=>{const [_0x1a2de3,_0x310dab]=_0x2b8e9e['subType']['split']('|');return _0x1a2de3==_0x571528['key']&&_0x310dab!=_0x12e210;})['forEach'](_0x25b1b8=>{this['_reduceSuggestionAttributeRange'](_0x25b1b8,_0x571528['range'],_0x5ed5bf),_0x1aa376=!0x0;});}return _0x1aa376;}['_reduceSuggestionAttributeRange'](_0x3cb530,_0x116f31,_0x3bfa7c){const _0xc0538e=_0x3cb530['getFirstRange']()['getDifference'](_0x116f31);0x0!==_0xc0538e['length']?0x1!==_0xc0538e['length']?this['_breakSuggestionMarker'](_0x3cb530,_0x116f31['start'],_0x116f31['end']):this['_setSuggestionRange'](_0x3cb530,_0xc0538e[0x0]):_0x3bfa7c['removeMarker'](_0x3cb530['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x70102a){this['_editor']=_0x70102a,this['_model']=_0x70102a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x908fde,_0x30fb25,_0x40076b,_0x3d4404,_0x536ef8,_0x406f51,_0x276c5c){return new T(this['_model'],{'type':_0x908fde,'subType':_0x30fb25,'id':_0x40076b,'originalSuggestionId':_0x276c5c,'author':_0x3d4404,'creator':_0x3d4404,'attributes':_0x536ef8,'onAttributesChange':_0x406f51,'onAccept':(..._0x568811)=>this['getSuggestionCallback'](_0x908fde,_0x30fb25,'accept')(..._0x568811),'onDiscard':(..._0x270301)=>this['getSuggestionCallback'](_0x908fde,_0x30fb25,'discard')(..._0x270301)});}['registerCustomCallback'](_0x7e2e8a,_0x383000,_0x7fe89d,_0x2baf3c){const _0x1d7d6e=_0x7e2e8a+':'+_0x383000+':'+_0x7fe89d;this['_customCallbacks']['set'](_0x1d7d6e,_0x2baf3c);}['getSuggestionCallback'](_0x59b068,_0x594ea3,_0x273190){const _0x4fc32b=_0x59b068+':'+_0x594ea3+':'+_0x273190;return this['_customCallbacks']['get'](_0x4fc32b)||this['_defaultCallbacks']['get'](_0x59b068+':'+_0x273190);}['_registerDefaultCallbacks'](){const _0x23cf3b=()=>!0x1,_0x5c7bbe=_0x1a07a0=>{_0x1a07a0['sort']((_0x34ad66,_0x1ea17b)=>_0x34ad66['start']['isBefore'](_0x1ea17b['start'])?0x1:-0x1),this['_model']['change'](_0x1671f9=>{for(const _0x2b40b5 of _0x1a07a0){let _0x23be5d;_0x23be5d=_0x2b40b5['end']['isAtEnd']&&_0x2b40b5['end']['parent']==_0x2b40b5['start']['nodeAfter']?_0x1671f9['createSelection'](_0x2b40b5['start']['nodeAfter'],'on'):_0x1671f9['createSelection'](_0x2b40b5),this['_model']['deleteContent'](_0x23be5d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x591c9b=(_0x47ff97,_0x18d71b)=>{_0x18d71b&&this['_model']['change'](_0x1821c9=>{const {commandName:_0x9cc0cc,commandParams:_0x4daa88=[]}=_0x18d71b,_0x2c7c34=_0x47ff97['map'](_0x494302=>(Pt(_0x494302)&&(_0x494302=this['_model']['createRange'](_0x494302['end'])),_0x494302))['filter'](_0x320fab=>'$graveyard'!==_0x320fab['root']['rootName']);if(_0x2c7c34['length']<0x1)return;const _0x5c2afb=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x290611=>_0x247134['fromRange'](_0x290611));_0x1821c9['setSelection'](_0x2c7c34);for(const _0x4d4eba of this['_editor']['commands']['commands']())_0x4d4eba['refresh']();_0x4daa88['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x9cc0cc,..._0x4daa88);const _0x3930b5=_0x5c2afb['filter'](_0x21671d=>'$graveyard'!=_0x21671d['root']['rootName']);_0x3930b5['length']>0x0&&_0x1821c9['setSelection'](_0x3930b5);for(const _0x134077 of _0x5c2afb)_0x134077['detach']();});},_0x11aaa0=(_0x4460ff,_0x24f72a)=>0x1==_0x4460ff['length']&&0x1==_0x24f72a['length']&&_0x4460ff[0x0]['end']['isEqual'](_0x24f72a[0x0]['start']),_0x506775=(_0x15fbf1,_0x2444c6,_0x4e6ab8,_0x5cf913)=>zt(_0x15fbf1,_0x2444c6,_0x4e6ab8,_0x5cf913)?[_0x15fbf1,_0x2444c6]:zt(_0x2444c6,_0x15fbf1,_0x5cf913,_0x4e6ab8)?[_0x2444c6,_0x15fbf1]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x23cf3b),this['_defaultCallbacks']['set']('insertion:discard',_0x5c7bbe),this['_defaultCallbacks']['set']('insertion:join',_0x11aaa0),this['_defaultCallbacks']['set']('insertion:chain',_0x506775),this['_defaultCallbacks']['set']('deletion:accept',_0x5c7bbe),this['_defaultCallbacks']['set']('deletion:discard',_0x23cf3b),this['_defaultCallbacks']['set']('deletion:join',_0x11aaa0),this['_defaultCallbacks']['set']('deletion:chain',_0x506775),this['_defaultCallbacks']['set']('formatInline:accept',_0x591c9b),this['_defaultCallbacks']['set']('formatInline:discard',_0x23cf3b),this['_defaultCallbacks']['set']('formatInline:join',_0x11aaa0),this['_defaultCallbacks']['set']('formatInline:chain',_0x23cf3b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x591c9b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x23cf3b),this['_defaultCallbacks']['set']('formatBlock:join',_0x11aaa0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x23cf3b),this['_defaultCallbacks']['set']('attribute:accept',_0x23cf3b),this['_defaultCallbacks']['set']('attribute:discard',(_0x5d0e2b,_0x2edcd5)=>{if(!_0x2edcd5)return;const _0x1a4041=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x90b849=>{if(_0x2edcd5['key']==m)for(const _0x533069 of _0x5d0e2b){const _0x2e7249=_0x533069['start']['nodeAfter'],_0x149940=_0x2edcd5['oldValue'];_0x90b849['rename'](_0x2e7249,_0x149940);}else{if(_0x1a4041['_isBlockAttribute'](_0x2edcd5['key'])){for(const _0x289174 of _0x5d0e2b)void 0x0!==_0x2edcd5['oldValue']?_0x90b849['setAttribute'](_0x2edcd5['key'],_0x2edcd5['oldValue'],_0x289174['start']['nodeAfter']):_0x90b849['removeAttribute'](_0x2edcd5['key'],_0x289174['start']['nodeAfter']);}else{for(const _0x497c4c of _0x5d0e2b)_0x2edcd5['oldValue']?_0x90b849['setAttribute'](_0x2edcd5['key'],_0x2edcd5['oldValue'],_0x497c4c):_0x90b849['removeAttribute'](_0x2edcd5['key'],_0x497c4c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x11aaa0);}}function Ft(_0x252aba,_0x965aaa,_0x446643){for(const _0x30ecf2 of _0x965aaa['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x30ecf2['root']==_0x30ecf2)return!0x1;if(!_0x446643['containsItem'](_0x30ecf2))return!0x1;if(_0x252aba['isObject'](_0x30ecf2)||_0x252aba['isLimit'](_0x30ecf2))return!0x0;}return!0x1;}function Pt(_0x4118a5){return _0x4118a5['end']['parent']==_0x4118a5['start']['nodeAfter']&&_0x4118a5['end']['isAtStart'];}function Gt(_0x103865,_0x24525a,_0x4175ce,_0x43eefa){const _0x3f830b=_0x401f47=>!_0x401f47['item']['is']('$textProxy')&&!_0x43eefa['isObject'](_0x401f47['item']),_0x55ac64=_0x103865['start']['getLastMatchingPosition'](_0x3f830b),_0x46b0ac=_0x103865['end']['getLastMatchingPosition'](_0x3f830b,{'direction':'backward'});return(!_0x103865['start']['isEqual'](_0x55ac64)||!_0x103865['end']['isEqual'](_0x46b0ac))&&(_0x55ac64['isBefore'](_0x46b0ac)?_0x4175ce['updateMarker'](_0x24525a,{'range':_0x4175ce['createRange'](_0x55ac64,_0x46b0ac)}):_0x4175ce['removeMarker'](_0x24525a),!0x0);}function Lt(_0x596efd){return _0x1afb2e(_0x596efd);}function Jt(_0x55a79e){const _0x379037=_0x55a79e['start']['nodeAfter'];return _0x379037&&_0x379037['is']('element');}function Kt(_0x4275c5){return!Pt(_0x4275c5)&&!function(_0x48df87){return _0x48df87['start']['parent']==_0x48df87['end']['nodeBefore']&&_0x48df87['start']['isAtEnd'];}(_0x4275c5);}function Ht(_0x23e21a,_0x474019){return null==_0x23e21a['end']['nodeBefore']&&_0x23e21a['end']['parent']==_0x23e21a['start']['nodeAfter']?qt(_0x23e21a['start']['nodeAfter'],_0x474019):_0x23e21a;}function qt(_0x89c211,_0x15b9a0){const _0x170e25=_0x15b9a0['schema']['isObject'](_0x89c211)||_0x15b9a0['schema']['isSelectable'](_0x89c211);return _0x15b9a0['createRange'](_0x15b9a0['createPositionAt'](_0x89c211,'before'),_0x170e25?_0x15b9a0['createPositionAfter'](_0x89c211):_0x15b9a0['createPositionAt'](_0x89c211,'end'));}function zt(_0x26b03a,_0x48bc22,_0x53d384,_0x216d34){return!!Wt(_0x26b03a,_0x48bc22)&&_0x53d384['end']['isEqual'](_0x216d34['start']);}function Wt(_0x1748b4,_0x4280d5){if(!_0x1748b4['_isDataLoaded']||!_0x4280d5['_isDataLoaded'])return!0x1;const _0x30c6b0=new Set(Object['keys'](_0x1748b4['attributes'])),_0x425458=new Set(Object['keys'](_0x4280d5['attributes']));if(_0x30c6b0['delete']('groupId'),_0x425458['delete']('groupId'),0x0==_0x30c6b0['size']&&0x0==_0x425458['size'])return!0x0;if(_0x30c6b0['size']!=_0x425458['size'])return!0x1;const _0x23b1cf={..._0x1748b4['attributes']},_0x309429={..._0x4280d5['attributes']};return delete _0x23b1cf['groupId'],delete _0x309429['groupId'],JSON['stringify'](_0x23b1cf)==JSON['stringify'](_0x309429);}function Qt(_0x560aac,_0x502ff1){const _0x1d69b2=Xt(_0x560aac['attributes']),_0x265d5c=Xt(_0x502ff1);if(!_0x560aac['_isDataLoaded'])return!0x1;for(const _0x22e3a4 of Object['keys'](_0x265d5c))if(!_0x5d29ba(_0x1d69b2[_0x22e3a4],_0x265d5c[_0x22e3a4]))return!0x1;return!0x0;}function Xt(_0x12d4fc){const _0xf52c0f=Object['assign']({},_0x12d4fc);return delete _0xf52c0f['skipNestingCheck'],delete _0xf52c0f['tablePasteChainId'],_0xf52c0f;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x3d1913(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x14e533,_0x722dab,_0x572861,_0x2acf64){super(),this['model']=_0x722dab,this['view']=_0x572861,this['commentThreadController']=_0x2acf64,this['_editor']=_0x14e533,this['_acceptCommand']=_0x14e533['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x14e533['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1e2160,_0x2c3e0d)=>_0x1e2160||_0x2c3e0d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x47c588=>_0x47c588&&this['_editor']['model']['canEditAt'](_0x722dab['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x364895=>_0x364895&&this['_editor']['model']['canEditAt'](_0x722dab['getRanges']())),this['_pendingAction']=null,_0x572861['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x572861,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x572861,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x572861,'change:isDirty',()=>{_0x572861['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 _0x56532c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x56532c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x4f4084{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x437483,_0x26e165,_0x4743c2,_0x4c3228){super(_0x437483),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x379a7b(_0x437483,o(_0x437483,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x26e165['authoredAt']),this['bind']('authoredAt')['to'](_0x26e165),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',_0x26e165,'authoredAt',this,'descriptionParts',(_0x390c45,_0x8b9731,_0x8a39a)=>{const _0x1ee14e=_0x8a39a['map'](_0x1f8250=>ls(_0x1f8250['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x390c45-0x1,_0x26e165['author']['name'],_0x8b9731?_0x4c3228['formatDateTime'](_0x8b9731):'',new DOMParser()['parseFromString'](_0x1ee14e,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4006cb(),this['focusTracker']=new _0x371e9c(),this['keystrokes']=new _0x25d583(),this['focusCycler']=new _0x56694e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x584209=>_0x584209['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x26e165,this['_localUser']=_0x4743c2,this['_config']=_0x4c3228,_0x4c3228['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x32237f(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4f1aeb}=this['_config'];this['commentsListView']=new _0x4f1aeb(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',_0x324a9d=>_0x324a9d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1fffc9,_0xb8951)=>_0x1fffc9||!!_0xb8951);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x560438}=this['_config'],_0x287131=new _0x560438(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3418d6=_0x287131['commentInputView'];return _0x287131['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3418d6,'value',(_0x3526e6,_0x4c4447,_0x45698a)=>!!_0x45698a||_0x3526e6&&!_0x4c4447),_0x3418d6['on']('submit',(_0x4062b3,_0xe469f)=>{this['fire']('addComment',_0xe469f),_0x3418d6['editor']['setData']('');}),_0x3418d6['on']('cancel',()=>this['focus']()),_0x3418d6['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x287131;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x2f6112,_0x396b38,_0x485b21,_0x4dcf99){super(_0x2f6112,_0x396b38,_0x485b21,_0x4dcf99),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x44cd2f=>_0x44cd2f&&_0x44cd2f[0x0]?_0x44cd2f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x55f7e8,_0x5be198)=>{let _0x9be48f='';for(const _0x4fd35c of _0x55f7e8)_0x9be48f+='<p>'+ls(_0x4fd35c['content'],_0x4fd35c['color'])+'</p>';return _0x5be198?_0x9be48f:_0x51d264(_0x9be48f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4dcf99['SuggestionView'](_0x2f6112,_0x396b38,{'formatDateTime':_0x4dcf99['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 _0x5e4aac=this['bindTemplate'],_0x4f7369=[this['suggestionView']];return this['commentsListView']&&_0x4f7369['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4f7369['push'](this['commentThreadInputView']),_0x4f7369['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5e4aac['if']('isActive','ck-suggestion-wrapper--active'),_0x5e4aac['to']('type',_0x25d4a8=>'ck-suggestion-'+_0x25d4a8),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':_0x5e4aac['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4f7369};}['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 _0x4f4084{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3b2577,_0x48c5b5,_0x16f0de){super(_0x3b2577),this['_model']=_0x48c5b5,this['_config']=_0x16f0de,this['set']('description',''),this['bind']('authoredAt')['to'](_0x48c5b5),this['acceptButton']=this['_createButton'](o(_0x3b2577,'Accept\x20suggestion'),_0x15c5dd,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3b2577,'Discard\x20suggestion'),_0x470e00,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x45781a(_0x3b2577,_0x48c5b5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4006cb([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x371e9c(),this['keystrokes']=new _0x25d583(),this['focusCycler']=new _0x56694e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1b85b6=>_0x1b85b6['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xe1d173=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xe1d173['innerHTML']=this['description'],this['on']('change:description',(_0x11a8fb,_0x3c073c,_0x5c18ba)=>{_0xe1d173['innerHTML']=_0x5c18ba;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4991b1=this['bindTemplate'],_0x501b07=[{'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':_0x4991b1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4991b1['to']('authoredAt',_0x5c3174=>this['_config']['formatDateTime'](_0x5c3174))}]}]},{'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']&&_0x501b07['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':_0x501b07}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x255aac,_0x2c01ae,_0x4e8905,_0x2f09c4,_0x355c84){const _0x55c8b6=new _0x519199(this['locale']);return _0x55c8b6['set']({'label':_0x255aac,'icon':_0x2c01ae,'tooltip':!0x0,'tooltipPosition':_0x355c84}),_0x55c8b6['extendTemplate']({'attributes':{'class':_0x4e8905}}),_0x55c8b6['on']('execute',()=>{this['fire'](_0x2f09c4,this['_model']['id']);}),_0x55c8b6;}['_setupKeyboardNavigation'](){const _0x49378c=this['element'];this['keystrokes']['listenTo'](_0x49378c);for(const _0x33864b of this['focusables'])this['focusTracker']['add'](_0x33864b['element']),this['keystrokes']['listenTo'](_0x33864b['element']);this['keystrokes']['set']('enter',(_0x1591c2,_0x1435fd)=>{_0x49378c===_0x1591c2['target']&&(this['focusCycler']['focusFirst'](),_0x1435fd());}),this['keystrokes']['set']('esc',(_0x2aaccb,_0x49ecfb)=>{_0x49378c!==_0x2aaccb['target']&&(this['focus'](),_0x49ecfb());});}}class u extends _0x189d79{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x2c5666,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x372490){super(_0x372490),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x27a210=this['editor']['config'];_0x27a210['define']('trackChanges.SuggestionThreadView',fe),_0x27a210['define']('trackChanges.SuggestionView',we),_0x27a210['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x27a210['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x12d63b,_0x481211){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2401ef,_0x5bb58a]of this['_handleControllerBuffer']){const _0x59b43e=this['_suggestionToController']['has'](_0x2401ef);_0x59b43e||_0x5bb58a?_0x59b43e&&_0x5bb58a&&this['_destroyController'](_0x2401ef):this['_initializeController'](_0x2401ef);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x12d63b,_0x481211);}['init'](){const _0x1ad68c=this['editor'],_0x21bf78=_0x1ad68c['plugins']['get']('TrackChangesEditing'),_0x36d1d9=_0x1ad68c['plugins']['get']('Annotations'),_0x3a4bef=_0x1ad68c['plugins']['get']('EditorAnnotations'),_0x4b79a2=_0x1ad68c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3a4bef['addSourceCollector'](()=>{const _0x385c5a=[];for(const [_0x2ac742,_0x3f97b0]of Array['from'](this['_suggestionToController'])){const _0x271ab3=_0x2ac742['getAllAdjacentSuggestions'](),_0x1e8ca6=[];for(const _0x2d617e of _0x271ab3){if(!_0x2d617e['isInContent'])continue;if(_0x2d617e['isMultiRange']){_0x1e8ca6['push'](..._0x2d617e['getRanges']());continue;}const _0x4e58c3=_0x2d617e['getFirstRange']();if(_0x1e8ca6['length']>0x0){const _0x111275=_0x1e8ca6[0x0]['getJoined'](_0x4e58c3);if(_0x111275){_0x1e8ca6[0x0]=_0x111275;continue;}}_0x1e8ca6['push'](_0x4e58c3);}_0x385c5a['push']([_0x3f97b0['view'],_0x1e8ca6]);}return _0x385c5a;}),this['listenTo'](_0x21bf78,'suggestionLoaded',(_0x153af1,_0x2031f4)=>{this['listenTo'](_0x2031f4,'change:previous',(_0x3a4446,_0x1a2c33,_0xb024b3,_0x3e6b5e)=>{_0x2031f4['isInContent']&&(null==_0xb024b3?(this['_updateController'](_0x3e6b5e['head']),this['_handleSuggestionControllerDelayed'](_0x2031f4,!0x1)):(this['_updateController'](_0xb024b3['head']),null==_0x3e6b5e&&this['_handleSuggestionControllerDelayed'](_0x2031f4,!0x0)));}),null!==_0x2031f4['previous']?this['_updateController'](_0x2031f4['head']):this['_handleSuggestionControllerDelayed'](_0x2031f4,!0x1);}),this['listenTo'](_0x21bf78,'suggestionUnloaded',(_0x13c21f,_0x50b8ba,_0x522040)=>{this['stopListening'](_0x50b8ba,'change:previous'),this['_handleControllerBuffer']['delete'](_0x50b8ba),this['_suggestionToController']['has'](_0x50b8ba)&&this['_destroyController'](_0x50b8ba),_0x522040&&this['_updateController'](_0x522040['head']);}),this['listenTo'](_0x21bf78,'suggestionChanged',(_0x5f30b8,_0x29c5cd)=>{this['_updateController'](_0x29c5cd);}),this['listenTo'](_0x36d1d9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4b79a2,'addComment',(_0x5a4b15,{threadId:_0x2f68bd,isFromAdapter:_0x165012})=>{if(_0x165012||!_0x21bf78['hasSuggestion'](_0x2f68bd))return;const _0xd7a775=_0x21bf78['getSuggestion'](_0x2f68bd);this['_suggestionToController']['get'](_0xd7a775)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x19df8a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x40dc12;for(const _0x4b71d0 in _0x19df8a){const _0x372a23=_0x4b71d0,_0x476b91=_0x19df8a[_0x372a23];if('trackChangesLicenseKeyValid'==_0x476b91||'trackChangesLicenseKeyInvalid'==_0x476b91||'trackChangesLicenseKeyExpired'==_0x476b91||'trackChangesLicenseKeyDomainLimit'==_0x476b91||'trackChangesLicenseKeyNotAllowed'==_0x476b91||'trackChangesLicenseKeyEvaluationLimit'==_0x476b91||'trackChangesLicenseKeyTrialLimit'==_0x476b91||'trackChangesLicenseKeyUsageLimit'==_0x476b91){delete _0x19df8a[_0x372a23],_0x40dc12=_0x476b91,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x40dc12&&_0x19df8a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x40dc12&&_0x19df8a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x40dc12&&_0x19df8a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x40dc12&&_0x19df8a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x40dc12&&_0x19df8a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x40dc12&&_0x19df8a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x40dc12&&_0x19df8a['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2a38ff){const _0x307d12=this['_suggestionToController']['get'](_0x2a38ff);if(!_0x307d12)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x307d12['view'])||null;}['getSuggestionForAnnotation'](_0x2711dd){const _0x4b870f=this['_viewToController']['get'](_0x2711dd['innerView']);return _0x4b870f?_0x4b870f['model']:null;}['_refreshActiveMarkers'](){const _0xed4e88=this['editor']['plugins']['get']('Annotations'),_0x30a2c4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b0f59=Array['from'](_0xed4e88['activeAnnotations'],_0x586453=>_0x586453['innerView'])['filter'](_0x19e13e=>this['_viewToController']['has'](_0x19e13e)),_0x3f6a22=[];for(const _0xc2bb5c of _0x5b0f59){const _0x3bf748=this['_viewToController']['get'](_0xc2bb5c)['model']['getAllAdjacentSuggestions']();_0x3f6a22['push'](..._0x3bf748['reduce']((_0x3d9b79,_0x403fad)=>[..._0x3d9b79,..._0x403fad['getMarkerNames']()],[]));}_0x30a2c4['activeMarkers']=_0x3f6a22;}['_addUIComponentsToFactory'](){const _0x36602e=this['editor'],_0x2faf06=_0x36602e['locale'],_0x86f033=o(_0x2faf06,'Track\x20changes'),_0x29bde4=new _0x2a8fc8([{'type':'switchbutton','model':new _0x2dc6cc({'withText':!0x0,'isToggleable':!0x0,'label':_0x86f033,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2dc6cc({'withText':!0x0,'label':o(_0x2faf06,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2dc6cc({'withText':!0x0,'label':o(_0x2faf06,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2dc6cc({'withText':!0x0,'label':o(_0x2faf06,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2dc6cc({'withText':!0x0,'label':o(_0x2faf06,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x36602e['plugins']['has']('TrackChangesPreview')&&_0x29bde4['addMany']([{'type':'separator'},{'type':'button','model':new _0x2dc6cc({'withText':!0x0,'label':o(_0x2faf06,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x38e43b of _0x29bde4)if(ke(_0x38e43b)){const _0x34e283=_0x36602e['commands']['get'](_0x38e43b['model']['commandName']);_0x38e43b['model']['bind']('isOn','isEnabled')['to'](_0x34e283,'value','isEnabled');}_0x36602e['ui']['componentFactory']['add']('trackChanges',_0x3b6dcd=>this['_createToolbarButton'](_0x3b6dcd,_0x29bde4,_0x86f033)),_0x36602e['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4ea4c1=>this['_createMenuBarMenu'](_0x4ea4c1,_0x29bde4,_0x86f033));}['_createToolbarButton'](_0x3a33f4,_0x5611cf,_0x1f1f6c){const _0x602d21=_0x31a9ad(_0x3a33f4,_0x5190ee),_0x40915d=this['editor']['commands']['get']('trackChanges');_0x602d21['buttonView']['set']({'tooltip':_0x1f1f6c,'label':_0x1f1f6c,'icon':_0x51f8bc}),_0x602d21['buttonView']['bind']('isOn')['to'](_0x40915d,'value'),_0x602d21['buttonView']['on']('execute',()=>{_0x40915d['execute'](),this['editor']['editing']['view']['focus']();}),_0x325ceb(_0x602d21,_0x5611cf,{'role':'menu'});const _0x194fbb=[];for(const _0x396243 of _0x5611cf)ke(_0x396243)&&_0x194fbb['push'](this['editor']['commands']['get'](_0x396243['model']['commandName']));const _0x232e3c=_0x602d21['buttonView'];return _0x232e3c['actionView']['unbind']('isEnabled'),_0x232e3c['arrowView']['unbind']('isEnabled'),_0x232e3c['actionView']['bind']('isEnabled')['to'](_0x40915d,'isEnabled'),_0x232e3c['arrowView']['bind']('isEnabled')['toMany'](_0x194fbb,'isEnabled',(..._0x5b09b5)=>_0x5b09b5['some'](_0x1c6525=>_0x1c6525)),_0x602d21['on']('execute',_0x4805d1=>{this['editor']['execute'](_0x4805d1['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x602d21;}['_createMenuBarMenu'](_0x18b3b7,_0x138541,_0xe3a1fb){const _0xf5b87d=new _0x2ae479(_0x18b3b7),_0x3b35a0=this['editor']['commands']['get']('trackChanges');_0xf5b87d['buttonView']['set']({'label':_0xe3a1fb,'icon':_0x51f8bc});const _0xbfb517=new _0x11c347(_0x18b3b7);for(const _0x2ced2d of _0x138541){if('separator'==_0x2ced2d['type']){_0xbfb517['items']['add'](new _0x4842ea(_0x18b3b7));continue;}const _0x250e5c=new _0x303f50(_0x18b3b7,_0xf5b87d),_0x3aeddc=new _0x1de36e(_0x18b3b7),_0x1b3945=_0x2ced2d['model'];_0x3aeddc['bind'](...Object['keys'](_0x1b3945))['to'](_0x1b3945),_0x3aeddc['delegate']('execute')['to'](_0xf5b87d),_0x3aeddc['on']('execute',()=>{this['editor']['execute'](_0x1b3945['commandName']),this['editor']['editing']['view']['focus']();}),_0x250e5c['children']['add'](_0x3aeddc),_0xbfb517['items']['add'](_0x250e5c);}return _0xf5b87d['bind']('isEnabled')['to'](_0x3b35a0,'isEnabled'),_0xf5b87d['panelView']['children']['add'](_0xbfb517),_0xf5b87d;}['_initializeController'](_0x4e7cec){const _0x506e93=this['editor'],_0x1b6f61=_0x506e93['config'],_0x4b592b=_0x506e93['plugins']['get']('Annotations'),_0x321375=_0x506e93['plugins']['get']('CommentsRepository'),_0x24d6f6=_0x506e93['plugins']['get']('EditorAnnotations'),_0x16642a=_0x506e93['plugins']['get'](_0x2c5666)['me'],_0x410685=_0x1b6f61['get']('trackChanges')['SuggestionThreadView'],_0x2bdc93=_0x1b6f61['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x163917,CommentThreadInputView:_0x1e327e}=_0x506e93['plugins']['get']('CommentsUI');let _0x586d1f,_0x33d7ed,_0x26ebdc;this['_annotationViews']['has'](_0x4e7cec['id'])?(_0x33d7ed=this['_annotationViews']['get'](_0x4e7cec['id']),_0x586d1f=_0x33d7ed['mainView']):(_0x586d1f=new _0x410685(_0x506e93['locale'],_0x4e7cec,_0x16642a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1b6f61['get']('comments.editorConfig'),'licenseKey':_0x1b6f61['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1b6f61['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1b6f61['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1b6f61['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1ea9d5(_0x1b6f61['get']('locale'),_0x506e93['locale']),'CommentView':_0x1b6f61['get']('comments')['CommentView'],'CommentsListView':_0x163917,'CommentThreadInputView':_0x1e327e,'SuggestionView':_0x2bdc93}),_0x586d1f['suggestionView']['acceptButton']['on']('execute',()=>{_0x506e93['editing']['view']['focus']();}),_0x586d1f['suggestionView']['discardButton']['on']('execute',()=>{_0x506e93['editing']['view']['focus']();}),_0x33d7ed=_0x4b592b['createAnnotationView'](this['editor']['locale'],_0x586d1f),_0x33d7ed['bind']('isDirty')['to'](_0x586d1f,'isDirty'),_0x33d7ed['bind']('length')['to'](_0x586d1f),_0x33d7ed['bind']('type')['to'](_0x586d1f,'type',_0x4316d8=>'suggestion-'+_0x4316d8),_0x586d1f['on']('escape',()=>{_0x26ebdc['fire']('escape');}),this['_annotationViews']['set'](_0x4e7cec['id'],_0x33d7ed));const _0x302c2f=_0x321375['createCommentThreadController'](_0x4e7cec['commentThread'],_0x586d1f),_0x42dcd3=new pe(_0x506e93,_0x4e7cec,_0x586d1f,_0x302c2f),_0x2bf416=_0x4e7cec['getAllAdjacentSuggestions']()['filter'](_0x1fb64d=>_0x1fb64d['isInContent']);_0x586d1f['descriptionParts']=_0x506e93['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2bf416),this['_suggestionToController']['set'](_0x4e7cec,_0x42dcd3),this['_viewToController']['set'](_0x586d1f,_0x42dcd3),_0x26ebdc=_0x4b592b['createAnnotation']({'view':_0x33d7ed,'target':()=>{const _0x1621d3=[],_0x1ebfe7=_0x4e7cec['getAllAdjacentSuggestions']()['filter'](_0x797548=>_0x797548['isInContent']);for(const _0x5dada2 of _0x1ebfe7)_0x1621d3['push'](..._0x5dada2['getMarkers']());return _0x1e8dbe(_0x506e93['editing'],_0x1621d3);},'type':()=>'suggestion-'+_0x42dcd3['view']['type']}),_0x321375['_bindAnnotationToEditors'](_0x586d1f,_0x26ebdc),_0x4b592b['add'](_0x26ebdc),_0x24d6f6['registerAnnotation'](_0x26ebdc);}['_destroyController'](_0x325668){const _0x6e00dc=this['editor']['plugins']['get']('CommentsRepository'),_0x98674e=this['editor']['plugins']['get']('Annotations'),_0x463b39=this['_suggestionToController']['get'](_0x325668),_0x44e3b6=_0x463b39['view'],_0x214c7c=_0x98674e['getByInnerView'](_0x44e3b6);_0x6e00dc['_unbindEditors'](_0x44e3b6),_0x214c7c&&_0x98674e['remove'](_0x214c7c),this['_suggestionToController']['delete'](_0x325668),this['_viewToController']['delete'](_0x44e3b6),_0x463b39['destroy']();}['_updateController'](_0x1be6de){if(!_0x1be6de['isInContent']||!this['_suggestionToController']['has'](_0x1be6de))return;const _0x200fc1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3382b4=this['_suggestionToController']['get'](_0x1be6de),_0x217ea2=_0x1be6de['getAllAdjacentSuggestions']();_0x3382b4['view']['descriptionParts']=_0x200fc1['descriptionFactory']['getDescriptions'](_0x217ea2);}['destroy'](){for(const _0x348441 of this['_suggestionToController']['keys']())this['_destroyController'](_0x348441);for(const _0x23a6b8 of this['_annotationViews']['values']())_0x23a6b8['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x122687){return'model'in _0x122687;}class Fe extends _0x189d79{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x556edb){this['editor']['plugins']['get'](d)['adapter']=_0x556edb;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x30d5e6){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x30d5e6);}['getSuggestions']({skipNotAttached:_0x3cc560=!0x1,toJSON:_0x4cca68=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x3cc560,'toJSON':_0x4cca68});}['getSuggestion'](_0x4681d2){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x4681d2);}}const p=['Pagination'];class re extends _0x189d79{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1fc885=this['editor'];if(_0x1fc885['config']['define']('trackChangesData.editorCreator',_0x3e2f23=>{const _0x1500c4=_0x1fc885['model']['document']['getRootNames']()['reduce']((_0x46bc94,_0x1676af)=>(_0x46bc94[_0x1676af]='',_0x46bc94),{});return _0x1fc885['constructor']['create'](_0x1500c4,_0x3e2f23);}),'function'!=typeof _0x1fc885['config']['get']('trackChangesData')['editorCreator'])throw new _0x2cce5b('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4a4db4){return P(this['editor'],!0x0,_0x4a4db4);}['getDataWithDiscardedSuggestions'](_0x5901a1){return P(this['editor'],!0x1,_0x5901a1);}}class Ge extends _0x189d79{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa134b7){function _0x270c9f(_0x137373){return _0x137373['map'](_0x4b843b=>String['fromCharCode'](_0x4b843b))['join']('');}super(_0xa134b7),this['result']='end',_0xa134b7[_0x270c9f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x270c9f([0x76,0x69,0x65,0x77])][_0x270c9f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x270c9f([0x61,0x75,0x74,0x6f]),_0xa134b7[_0x270c9f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x270c9f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x270c9f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x270c9f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x270c9f([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 $e(_0x30232b){return void 0x0!==_0x30232b['getRootsAttributes'];}async function P(_0x21f79a,_0x49b840,_0x1d3f0a){const _0x5885a6=_0x4c5ec6(_0x21f79a,p);_0x5885a6['plugins']['push'](d,Ge),_0x5885a6['rootsAttributes']=$e(_0x21f79a)?_0x21f79a['getRootsAttributes']():void 0x0;const _0x14d1ce=document['createDocumentFragment'](),_0x3f1009=_0x21f79a['config']['get']('trackChangesData')['editorCreator'],_0x4e11bf=await _0x3f1009(_0x5885a6,()=>function(_0x1b73f1){const _0x204798=document['createElement']('div');return _0x1b73f1['appendChild'](_0x204798),_0x204798;}(_0x14d1ce));!function(_0x481828,_0x57a9f0){const _0x557993=_0x481828['model']['document']['getRootNames']()['reduce']((_0x54e90d,_0x4e9f7)=>(_0x54e90d[_0x4e9f7]=_0x481828['data']['get']({'rootName':_0x4e9f7}),_0x54e90d),{}),_0x6496e=_0x481828['plugins']['get']('Users')['users']['map'](_0x3a410f=>({'id':_0x3a410f['id'],'name':_0x3a410f['name']})),_0x405a61=_0x481828['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1dfe99=_0x481828['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x96925d=_0x57a9f0['plugins']['get']('Users'),_0x49785e=_0x57a9f0['plugins']['get']('TrackChangesEditing'),_0xda7bf9=_0x57a9f0['plugins']['get']('CommentsRepository');for(const _0xc036ba of _0xda7bf9['getCommentThreads']())_0xc036ba['remove']();for(const _0x38a96f of _0x6496e)_0x96925d['getUser'](_0x38a96f['id'])||_0x96925d['addUser'](_0x38a96f);_0x96925d['me']||_0x96925d['useAnonymousUser']();for(const _0x124987 of _0x1dfe99)_0xda7bf9['addCommentThread'](_0x124987);for(const _0x2672db of _0x405a61)_0x49785e['addSuggestionData'](_0x2672db);_0x57a9f0['data']['set'](_0x557993);}(_0x21f79a,_0x4e11bf),_0x4e11bf['execute'](_0x49b840?'acceptAllSuggestions':'discardAllSuggestions');const _0x1d41b7=$e(_0x4e11bf)?_0x4e11bf['getFullData'](_0x1d3f0a):_0x4e11bf['data']['get'](_0x1d3f0a);return await _0x4e11bf['destroy'](),_0x1d41b7;}class Me extends _0x4f4084{['options'];constructor(_0x123a5e,_0x252d4a){super(_0x123a5e),this['options']=_0x252d4a,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'](_0x3e4913,_0x436f59){if(!this['element'])return;const _0x58f5ec=[];for(const [_0xbb0012,_0x4b7c32]of _0x3e4913){const _0x3639c5=document['createElement']('div');_0x3639c5['setAttribute']('data-ck-root-name',_0xbb0012),_0x3639c5['className']=_0x4b7c32['classes']+'\x20ck-track-changes-preview__root-container',_0x3639c5['innerHTML']=_0x4b7c32['content'],_0x58f5ec['push'](_0x3639c5);}_0x436f59(this['element'],_0x58f5ec),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0xda86c0{constructor(_0x59d974){super(_0x59d974),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2b4758=this['editor'],_0x5de914=_0x2b4758['locale'],_0x101792=_0x2b4758['plugins']['get']('Dialog');let _0x3d12bd;const _0x8c8957=function(_0x1fa62e){const _0x2ddd15={};if('editables'in _0x1fa62e['ui']['view']){for(const [_0x3f20c7,_0xc0e276]of Object['entries'](_0x1fa62e['ui']['view']['editables']))_0x2ddd15[_0x3f20c7]=_0xc0e276['element'];}else _0x2ddd15[_0x1fa62e['model']['document']['getRootNames']()[0x0]]=_0x1fa62e['ui']['view']['editable']['element'];return _0x2ddd15;}(_0x2b4758),_0x33938a=function(_0x3d1aef){let _0x5e030a=0x0;for(const _0x2e8781 of Object['values'](_0x3d1aef))_0x5e030a=Math['max'](_0x5e030a,_0x2e8781['getBoundingClientRect']()['width']);let _0x2b42b9=0x0;for(const _0x562d6e of Object['values'](_0x3d1aef))_0x2b42b9+=_0x562d6e['getBoundingClientRect']()['height'];const _0x44eb4f=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1c37b1=Math['min'](_0x2b42b9,_0x44eb4f);return{'width':_0x5e030a,'height':_0x1c37b1};}(_0x8c8957);_0x101792['show']({'id':'finalContentPreview','title':o(_0x5de914,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5de914,{'dialogRects':_0x33938a}),'onHide':()=>{_0x3d12bd['detachFromDom']();},'onShow':()=>{_0x2b4758['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x54ce63=>{const _0x4bd820=this['_standarizeRootsData'](_0x54ce63,_0x2b4758,_0x8c8957);_0x101792['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4bd820,_0x2b4758['config']['get']('trackChanges.preview.renderFunction'));}),_0x3d12bd=new _0x329d6c(_0x5de914,[_0x101792['view']]),_0x3d12bd['attachToDom'](),_0x3d12bd['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2b4758['once']('destroy',()=>{_0x3d12bd['detachFromDom']();});const _0x3183cd=_0x101792['view']['headerView']['class'];_0x101792['view']['headerView']['class']=_0x3183cd?_0x3183cd+'\x20ck-reset_all':'ck-reset_all',_0x101792['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x101792['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5e78c7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x22d537=_0x5e78c7['previewMode'],_0x252e34={};if('$labels'===_0x22d537){for(const _0x8c46c9 of _0x5e78c7['getMergeFieldsIds']())_0x252e34[_0x8c46c9]=_0x5e78c7['getLabel'](_0x8c46c9)||_0x8c46c9;}else{const _0x16e679='$defaultValues'===_0x22d537?_0x5e78c7['getDefaultValues']():_0x5e78c7['getDataSetValues'](_0x22d537,!0x0);for(const _0x317040 of Object['entries'](_0x16e679)){const [_0x3afcaf,_0x25f7cf]=_0x317040;_0x252e34[_0x3afcaf]=null!==_0x25f7cf?_0x25f7cf:_0x5e78c7['getLabel'](_0x3afcaf)||_0x3afcaf;}}return{'mergeFieldsData':_0x252e34};}['_standarizeRootsData'](_0xac0a6e,_0x240951,_0x37924d){let _0x3472da;if('string'==typeof _0xac0a6e){const _0x14f675=_0x240951['model']['document']['getRootNames']()[0x0];_0x3472da={[_0x14f675]:_0xac0a6e};}else _0x3472da=_0xac0a6e;const _0x1fcb7f=this['_fixMediaEmbeds'](_0x3472da,_0x240951),_0x5c621e=function(_0x1965bd,_0x6e6568){for(const [_0x58e37f,_0x3f380b]of _0x1965bd)_0x3f380b['classes']=_0x6e6568[_0x58e37f]['classList']['value']['replace']('ck-focused','');return _0x1965bd;}(this['_sortRoots'](_0x240951)['reduce']((_0x3a2678,_0xb90e93)=>(_0x3a2678['push']([_0xb90e93,{'content':_0x1fcb7f[_0xb90e93],'classes':''}]),_0x3a2678),[]),_0x37924d);return _0x5c621e;}['_fixMediaEmbeds'](_0x4eaef4,_0x294af1){if(!_0x294af1['plugins']['has']('MediaEmbedEditing'))return _0x4eaef4;const _0x3b31c1=_0x294af1['plugins']['get']('MediaEmbedEditing');for(const [_0x1a7239,_0x54183d]of Object['entries'](_0x4eaef4)){const _0x44036a=document['createElement']('div');_0x44036a['innerHTML']=_0x54183d,(_0x44036a['querySelectorAll']('figure.media')['forEach'](_0x230c58=>{const _0x365714=_0x230c58['querySelector']('oembed');if(_0x365714){const _0x4ad4af=_0x365714['getAttribute']('url');if(_0x4ad4af){const _0x27aad6=_0x3b31c1['registry']['getMediaViewElement'](new _0x4dca3b(_0x294af1['editing']['view']['document']),_0x4ad4af,{'elementName':'','renderForEditingView':!0x0}),_0x16d1ba=document['createElement']('div');_0x16d1ba['classList']['add']('ck-media__wrapper'),_0x27aad6['render'](_0x16d1ba,_0x294af1['editing']['view']['domConverter']),_0x365714['replaceWith'](_0x16d1ba);}}}),_0x4eaef4[_0x1a7239]=_0x44036a['innerHTML']);}return _0x4eaef4;}['_sortRoots'](_0x2ac218){if(!function(_0x3edcb1){return void 0x0!==_0x3edcb1['getRootsAttributes'];}(_0x2ac218))return _0x2ac218['model']['document']['getRootNames']();const _0x40f5fc=[],_0x753afa=new Map();for(const _0x50004a of _0x2ac218['model']['document']['getRootNames']()){const _0x239149=_0x2ac218['editing']['view']['getDomRoot'](_0x50004a)['getClientRects']()['item'](0x0);_0x40f5fc['push'](_0x50004a),_0x753afa['set'](_0x50004a,_0x239149);}return _0x40f5fc['sort']((_0x191600,_0x32c6af)=>{const _0x488f80=_0x753afa['get'](_0x191600),_0x22277a=_0x753afa['get'](_0x32c6af);return _0x488f80['y']-_0x22277a['y']||_0x488f80['x']-_0x22277a['x'];}),_0x40f5fc;}}class He extends _0x189d79{static get['requires'](){return[re,_0x52b051];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x22f705){super(_0x22f705),_0x22f705['commands']['add']('previewFinalContent',new te(this['editor'])),_0x22f705['config']['define']('trackChanges.preview.renderFunction',(_0x338871,_0x17986d)=>{for(const _0x3fe835 of _0x17986d)_0x338871['appendChild'](_0x3fe835);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
|
|
23
|
+
import{Command as _0x38a689,Plugin as _0x142398,PendingActions as _0x20a14a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x33e300,ObservableMixin as _0x231f54,uid as _0x140250,priorities as _0x568555,insertToPriorityArray as _0x19bcc9,toArray as _0x337b53,logWarning as _0x51214e,getEnvKeystrokeText as _0x185a9c,FocusTracker as _0x30b267,KeystrokeHandler as _0x22e422,Collection as _0x1dd914}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x7f4849,IconCancel as _0x1a2728,IconTrackChanges as _0x43b753}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x444e09,View as _0x2bab32,ViewCollection as _0x4ad431,FocusCycler as _0x1213d5,UIModel as _0x5bca00,createDropdown as _0x1e437f,SplitButtonView as _0x202e1a,addListToDropdown as _0x152cdf,MenuBarMenuView as _0x392ca6,MenuBarMenuListView as _0x2bb303,ListSeparatorView as _0x3f8930,MenuBarMenuListItemView as _0x7d02b3,MenuBarMenuListItemButtonView as _0x433ed2,BodyCollection as _0x22e14b,Dialog as _0x1e62e1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1e445d,hashObject as _0x172249,surroundingMarkersDetector as _0x1f8bfc,FOCUS_ANNOTATION_KEYSTROKE as _0x44f7ba,AriaDescriptionView as _0x456c6a,setupThreadKeyboardNavigation as _0x10e5f9,trimHtml as _0x13706f,UserView as _0x1a32b2,LateFocusButtonView as _0x460bf7,getDateTimeFormatter as _0x36690b,getAllMarkersDomElementsSorted as _0x46a7c8,sanitizeEditorConfig as _0x2b55a4}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x3f3fae,ModelLiveRange as _0x3590e7,ModelLivePosition as _0x22b32f,ViewDowncastWriter as _0x155f8c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x34ad7c,toWidget as _0x4c0789}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x513380,set as _0x30d626,isEqual as _0x48cd59,unset as _0xbc339,omit as Ut}from'es-toolkit/compat';import{Delete as _0x43362c,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x318fb5}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x27aa69}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x38a689{['_enabledCommands'];constructor(_0x2c6406,_0x32d952){super(_0x2c6406),this['_enabledCommands']=_0x32d952,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 _0x18a057 of this['editor']['commands']['commands']())_0x18a057['affectsData']&&!this['_enabledCommands']['has'](_0x18a057)&&_0x18a057['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x80c9c of this['editor']['commands']['commands']())_0x80c9c['affectsData']&&!this['_enabledCommands']['has'](_0x80c9c)&&_0x80c9c['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x38a689{['_suggestions'];constructor(_0x7254fe,_0x5d86dc){super(_0x7254fe),this['_suggestions']=_0x5d86dc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x58d56a){const _0x7aa76d=this['_suggestions']['get'](_0x58d56a);if(!_0x7aa76d)throw new _0x33e300('track-changes-accept-suggestion-not-found',this);const _0x2f67b5=_0x7aa76d['getRanges']();this['editor']['model']['canEditAt'](_0x2f67b5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x7aa76d);}}class M extends _0x38a689{['_suggestions'];constructor(_0x4fe4a5,_0x58cb59){super(_0x4fe4a5),this['_suggestions']=_0x58cb59,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2520ac){const _0x35cb31=this['_suggestions']['get'](_0x2520ac);if(!_0x35cb31)throw new _0x33e300('track-changes-discard-suggestion-not-found',this);const _0x1c7666=_0x35cb31['getRanges']();this['editor']['model']['canEditAt'](_0x1c7666)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x35cb31);}}function ls(_0x660934,_0x1ed48b){let _0x4b5c06='';return _0x4b5c06+=_0x660934['split']('*')['map']((_0x22894b,_0x2af848)=>_0x2af848%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x22894b)+'</span>':Yt(_0x22894b))['join'](''),_0x1ed48b&&(_0x4b5c06+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1ed48b['value']+'\x22\x20title=\x22'+_0x1ed48b['title']+'\x22></span>'),_0x4b5c06;}function Yt(_0x1cb2fc){const _0x1674d8=document['createElement']('span');return _0x1674d8['innerText']=_0x1cb2fc,_0x1674d8['innerHTML'];}function ts(_0x1ed2b9){return _0x1ed2b9['sort']((_0x506b5a,_0x1a9927)=>'attribute'===_0x506b5a['type']&&'attribute'!==_0x1a9927['type']?-0x1:'attribute'!==_0x506b5a['type']&&'attribute'===_0x1a9927['type']?0x1:'deletion'==_0x506b5a['type']&&'deletion'!=_0x1a9927['type']?-0x1:'deletion'!=_0x506b5a['type']&&'deletion'==_0x1a9927['type']?0x1:0x0);}function to(_0x58ebc0,_0x7860b1){let _0x152262,_0x5d9618=0x0;const _0x1bb154=[],_0x5cbb60=_0x7860b1['schema'];for(;_0x5d9618<_0x58ebc0['length'];){const _0x32ad0f=_0x58ebc0[_0x5d9618],_0x56ab4c=_0x58ebc0[_0x5d9618+0x1];_0x152262||(_0x152262=_0x7860b1['createPositionBefore'](_0x32ad0f)),Zt(_0x7860b1,_0x32ad0f,_0x56ab4c)||(_0x1bb154['push'](_0x7860b1['createRange'](_0x152262,_0x5cbb60['isObject'](_0x32ad0f)?_0x7860b1['createPositionAfter'](_0x32ad0f):_0x7860b1['createPositionAt'](_0x32ad0f,'end'))),_0x152262=null),_0x5d9618++;}return _0x1bb154;}function Zt(_0x5cad4e,_0x317317,_0x2fdf5e){if(!_0x2fdf5e)return!0x1;const _0x1df6e4=_0x5cad4e['createPositionAfter'](_0x317317),_0x5bd59d=_0x5cad4e['createPositionBefore'](_0x2fdf5e);return _0x1df6e4['isTouching'](_0x5bd59d);}function rs(_0xc726eb,_0x3cdb67,_0x4de313){for(;_0x4de313['length'];){const _0x5e0d88=_0x4de313['splice'](0x0,0x64);_0xc726eb['change'](()=>{for(const _0x12ac56 of _0x5e0d88)_0x12ac56['isInContent']&&_0x3cdb67['execute'](_0x12ac56['id']);});}}class $ extends _0x38a689{['_command'];['_suggestions'];constructor(_0x15947c,_0x24f61e,_0x2013f1){super(_0x15947c),this['_command']=_0x24f61e,this['_suggestions']=_0x2013f1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5ac68c=Array['from'](this['_suggestions']['values']())['some'](_0x56c71a=>_0x56c71a['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5ac68c;}['execute'](){const _0x1a5c69=ts(Array['from'](this['_suggestions']['values']()));for(const _0x478a74 of _0x1a5c69){const _0x9e2c1f=_0x478a74['getRanges']();if(!this['editor']['model']['canEditAt'](_0x9e2c1f))return;}rs(this['editor']['model'],this['_command'],_0x1a5c69);}}class B extends _0x38a689{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x511cce,_0x489452,_0x157c57){super(_0x511cce),this['_command']=_0x489452,this['_suggestions']=_0x157c57,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x21634a=this['editor']['model']['document']['selection'],_0x373d6b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x21e09d,_0x4a206f){const _0x5b2072=Array['from'](_0x21e09d['getRanges']()),_0x18c066=new Set();for(const _0x2b8b79 of _0x4a206f)if(_0x2b8b79['isInContent']){for(const _0x3aa96e of _0x5b2072)for(const _0x22e792 of _0x2b8b79['getRanges']())(_0x3aa96e['isIntersecting'](_0x22e792)||_0x21e09d['isCollapsed']&&!_0x2b8b79['isMultiRange']&&_0x2b8b79['next']&&_0x22e792['end']['isTouching'](_0x3aa96e['start']))&&_0x18c066['add'](_0x2b8b79);}return _0x18c066;}(_0x21634a,_0x373d6b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3df97a=ts(Array['from'](this['_selectedSuggestions']));for(const _0x2aad95 of _0x3df97a){const _0xacd0b=_0x2aad95['getRanges']();if(!this['editor']['model']['canEditAt'](_0xacd0b))return;}rs(this['editor']['model'],this['_command'],_0x3df97a);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x231f54(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x16718e,_0x5d8f1e){super(),this['id']=_0x5d8f1e['id'],this['type']=_0x5d8f1e['type'],this['subType']=_0x5d8f1e['subType']||null,this['author']=_0x5d8f1e['author'],this['creator']=_0x5d8f1e['creator']||_0x5d8f1e['author'],this['isExternal']=Boolean(_0x5d8f1e['attributes']&&_0x5d8f1e['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5d8f1e['originalSuggestionId']||null,this['_model']=_0x16718e,this['_onAccept']=_0x5d8f1e['onAccept'],this['_onDiscard']=_0x5d8f1e['onDiscard'],this['_onAttributesChange']=_0x5d8f1e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5d8f1e['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 _0x40782c=this;for(;_0x40782c['previous'];)_0x40782c=_0x40782c['previous'];return _0x40782c;}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'](_0x1235fe){this['_markerNames']['add'](_0x1235fe);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x195866=>this['_model']['markers']['get'](_0x195866))['filter'](_0x12e3af=>_0x12e3af);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x46e658=>{for(const _0x5e31e2 of this['getMarkers']())_0x46e658['removeMarker'](_0x5e31e2);}),this['_markerNames']['clear']();}['removeMarker'](_0x43557f){this['_model']['change'](_0x110979=>{_0x110979['removeMarker'](_0x43557f);}),this['_markerNames']['delete'](_0x43557f);}['addRange'](_0xd95be8){const _0x3e5352='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x3e5352),this['_model']['change'](_0x1df384=>{_0x1df384['addMarker'](_0x3e5352,{'range':_0xd95be8,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xdb4e54){for(const _0x24048d of this['getRanges']())if(_0x24048d['isIntersecting'](_0xdb4e54))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x33faa6=>_0x33faa6['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x41525d,_0x1606e5)=>[..._0x41525d,..._0x1606e5['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x46ac6a=this['getRanges']();if(0x1!=_0x46ac6a['length'])return null;const _0x1a1b1b=_0x46ac6a[0x0],_0x89f2cb=_0x1a1b1b['start']['nodeAfter'],_0x405db0=_0x1a1b1b['end']['nodeBefore'];return _0x89f2cb instanceof _0x3f3fae?_0x89f2cb!=_0x405db0?null:_0x89f2cb: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 _0x3ba07f=[];let _0x2471eb=this['head'];for(;_0x2471eb;)_0x3ba07f['push'](_0x2471eb),_0x2471eb=_0x2471eb['next'];return _0x3ba07f;}['setAttribute'](_0x2297c1,_0x135d0c){const _0x58b60a=_0x513380(this['attributes']);_0x30d626(_0x58b60a,_0x2297c1,_0x135d0c),_0x48cd59(_0x58b60a,this['attributes'])||(this['attributes']=_0x58b60a,this['_onAttributesChange'](_0x58b60a));}['removeAttribute'](_0x56cadc){const _0x3bd41b=_0x513380(this['attributes']);_0xbc339(_0x3bd41b,_0x56cadc),_0x48cd59(_0x3bd41b,this['attributes'])||(this['attributes']=_0x3bd41b,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 _0x140250()['substr'](0x1,0x5);}}function o(_0x319d1e,_0x2fa035,_0x4caf70){const _0x308be2=_0x319d1e['t'],t=_0x319d1e['t'];switch(_0x2fa035){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',_0x4caf70);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4caf70);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4caf70);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4caf70);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4caf70);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',_0x4caf70);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4caf70);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',_0x4caf70);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4caf70);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4caf70);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4caf70);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4caf70);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4caf70);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4caf70);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4caf70);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4caf70);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4caf70);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4caf70);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4caf70);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4caf70);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4caf70);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4caf70);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4caf70);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4caf70);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4caf70);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'},_0x4caf70);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4caf70);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4caf70);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4caf70);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4caf70);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4caf70);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4caf70);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4caf70);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'},_0x4caf70);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4caf70);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4caf70);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4caf70);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4caf70);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'},_0x4caf70);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4caf70);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'},_0x4caf70);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});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'},_0x4caf70);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4caf70);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'},_0x4caf70);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4caf70);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'},_0x4caf70);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4caf70);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4caf70);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'},_0x4caf70);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4caf70);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 _0x308be2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4caf70);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x308be2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4caf70);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4caf70);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'},_0x4caf70);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'},_0x4caf70);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'},_0x4caf70);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2fa035;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xb44bc1,_0x499754){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xb44bc1,this['_locale']=_0x499754;}['getDescriptions'](_0x5ef7f1){const _0x38565d=[],_0x2a70e5=new Set(),_0x4adfa2=new Set();for(let _0x434698=0x0;_0x434698<_0x5ef7f1['length'];_0x434698++){const _0x21fdcf=_0x5ef7f1[_0x434698];if(!_0x21fdcf['isInContent'])continue;const _0x2c7ea5=this['_handleCustomCallbackDescription'](_0x21fdcf);if(_0x2c7ea5){if(null!=_0x21fdcf['subType']){if(_0x2a70e5['has'](_0x21fdcf['subType']))continue;_0x2a70e5['add'](_0x21fdcf['subType']);}_0x38565d['push'](_0x2c7ea5);}else{if('attribute'==_0x21fdcf['type']){const _0x27320d=_0x21fdcf['data']['key'];if(_0x4adfa2['has'](_0x27320d))continue;_0x4adfa2['add'](_0x21fdcf['data']['key']),_0x27320d==m?this['_handleRenameSuggestionDescription'](_0x38565d,_0x21fdcf):this['_handleAttributeSuggestionDescription'](_0x38565d,_0x21fdcf);continue;}'insertion'!=_0x21fdcf['type']&&'deletion'!=_0x21fdcf['type']||this['_handleInsertRemoveSuggestionDescription'](_0x38565d,_0x21fdcf,_0x5ef7f1[_0x434698+0x1]);}}return this['_resolveDescriptionItems'](_0x38565d);}['registerDescriptionCallback'](_0x26afe5){this['_customCallbacks']['push'](_0x26afe5);}['registerElementLabel'](_0x4c25fc,_0x2d19d4,_0x3df8f7=_0x568555['normal']){'function'==typeof _0x4c25fc?_0x19bcc9(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4c25fc,'label':_0x2d19d4,'priority':_0x3df8f7}):this['_itemLabels']['set'](_0x4c25fc,_0x2d19d4);}['registerAttributeLabel'](_0x1343c0,_0x22edde){this['_attributeLabels']['set'](_0x1343c0,_0x22edde);}['getItemLabel'](_0x440bf1,_0x5f19a5=0x1){let _0x57429f;for(const _0x1f1fda of this['_itemLabelsCallbacks'])if(_0x1f1fda['matchingCallback'](_0x440bf1)){_0x57429f=_0x1f1fda['label'];break;}return _0x57429f||(_0x57429f=this['_itemLabels']['get'](_0x440bf1['name'])),_0x57429f?_0x57429f(_0x5f19a5):0x1!==_0x5f19a5?_0x5f19a5+'\x20'+_0x440bf1['name']+'s':''+_0x440bf1['name'];}['_addDescriptionItems'](_0x5d5bb7,_0x57445d){const _0xc6ad=_0x57445d['getFirstRange']()['getWalker'](),_0x12cfc7='insertion'==_0x57445d['type']?'add':'remove';for(const _0x59f4b2 of _0xc6ad){const _0xa39df0=_0x59f4b2['item'],_0x51eceb=_0x5d5bb7[_0x5d5bb7['length']-0x1];if(_0xa39df0['is']('$textProxy'))_0x51eceb&&_0x51eceb['type']['indexOf']('Container')>-0x1&&_0x5d5bb7['pop'](),_0x51eceb&&'text'==_0x51eceb['type']?_0x51eceb[_0x12cfc7]+=_0xa39df0['data']:_0x5d5bb7['push']({'type':'text','add':'add'==_0x12cfc7?_0xa39df0['data']:'','remove':'remove'==_0x12cfc7?_0xa39df0['data']:''});else{if(this['_schema']['isObject'](_0xa39df0)){const _0x2e427d=_0xa39df0;if(_0x51eceb&&_0x51eceb['type']['indexOf']('Container')>-0x1&&_0x5d5bb7['pop'](),'elementEnd'==_0x59f4b2['type'])continue;_0x51eceb&&_0x51eceb['type']==_0x12cfc7+'Object'&&_0x51eceb['element']['name']==_0x2e427d['name']?_0x51eceb['quantity']++:_0x5d5bb7['push']({'type':_0x12cfc7+'Object','element':_0x2e427d,'quantity':0x1}),_0xc6ad['skip'](_0x20bdd0=>!('elementEnd'==_0x20bdd0['type']&&_0x20bdd0['item']==_0xa39df0));}else{if(this['_schema']['checkChild'](_0xa39df0,'$text')||_0xa39df0['is']('element','softBreak')){const _0x25a463=_0xa39df0;if('add'==_0x12cfc7&&'elementStart'==_0x59f4b2['type']||'remove'==_0x12cfc7&&'elementEnd'==_0x59f4b2['type'])continue;if(_0x51eceb&&-0x1==_0x51eceb['type']['indexOf']('Container')){'text'==_0x51eceb['type']&&(_0x51eceb[_0x12cfc7]+='\x0a');continue;}let _0x4539f1;if(_0x4539f1='add'==_0x12cfc7?_0x25a463['nextSibling']&&!this['_schema']['isObject'](_0x25a463['nextSibling'])?_0x25a463['nextSibling']:null:_0x25a463['previousSibling']&&!this['_schema']['isObject'](_0x25a463['previousSibling'])?_0x25a463['previousSibling']:null,_0x25a463['isEmpty']||_0x4539f1&&_0x4539f1['isEmpty']){const _0x4c4f9c=_0x4539f1&&_0x4539f1['isEmpty']?_0x4539f1:_0x25a463;_0x51eceb&&_0x51eceb['type']==_0x12cfc7+'EmptyContainer'&&_0x51eceb['element']['name']==_0x4c4f9c['name']?_0x51eceb['quantity']++:_0x5d5bb7['push']({'type':_0x12cfc7+'EmptyContainer','element':_0x4c4f9c,'quantity':0x1});}else _0x5d5bb7['push']({'type':_0x12cfc7+'Container','element':_0x25a463});}}}}}['_resolveDescriptionItems'](_0x3df2a4){const _0x277a31=this['_locale'],_0x54cb57=[],_0xdd6b48=[],_0x2e832a=[];for(const _0x915184 of _0x3df2a4)switch(_0x915184['type']){case'text':if(_0x915184['add']=_0x915184['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x915184['remove']=_0x915184['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x915184['add']&&''!=_0x915184['remove']){_0x54cb57['push']({'type':'replace','content':o(_0x277a31,'REPLACE_TEXT',['\x22'+_0x915184['remove']+'\x22','\x22'+_0x915184['add']+'\x22'])});continue;}if(null!=_0x915184['add']['match'](/^ +$/)){_0x54cb57['push']({'type':'insertion','content':o(_0x277a31,'*Insert:*\x20%0',o(_0x277a31,'ELEMENT_SPACE',_0x915184['add']['length']))});continue;}if(null!=_0x915184['remove']['match'](/^ +$/)){_0x54cb57['push']({'type':'deletion','content':o(_0x277a31,'*Remove:*\x20%0',o(_0x277a31,'ELEMENT_SPACE',_0x915184['remove']['length']))});continue;}if(''!=_0x915184['add']){_0x54cb57['push']({'type':'insertion','content':o(_0x277a31,'*Insert:*\x20%0','\x22'+_0x915184['add']+'\x22')});continue;}_0x54cb57['push']({'type':'deletion','content':o(_0x277a31,'*Remove:*\x20%0','\x22'+_0x915184['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x54cb57['push']({'type':'insertion','content':o(_0x277a31,'*Insert:*\x20%0',this['getItemLabel'](_0x915184['element'],_0x915184['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x54cb57['push']({'type':'deletion','content':o(_0x277a31,'*Remove:*\x20%0',this['getItemLabel'](_0x915184['element'],_0x915184['quantity']))});continue;case'addContainer':_0x54cb57['push']({'type':'insertion','content':o(_0x277a31,'*Split:*\x20%0',this['getItemLabel'](_0x915184['element'],_0x915184['quantity']))});continue;case'removeContainer':_0x54cb57['push']({'type':'deletion','content':o(_0x277a31,'*Merge:*\x20%0',this['getItemLabel'](_0x915184['element'],_0x915184['quantity']))});continue;case'addFormat':_0xdd6b48['push'](_0x915184['key']);continue;case'removeFormat':_0x2e832a['push'](_0x915184['key']);continue;default:_0x54cb57['push'](_0x915184);}if(_0xdd6b48['length']){const _0x10a998=_0xdd6b48['map'](_0x168784=>this['_attributeLabels']['has'](_0x168784)?this['_attributeLabels']['get'](_0x168784):_0x168784)['join'](',\x20');_0x54cb57['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x10a998)});}if(_0x2e832a['length']){const _0x296eb1=_0x2e832a['map'](_0x23d48c=>this['_attributeLabels']['has'](_0x23d48c)?this['_attributeLabels']['get'](_0x23d48c):_0x23d48c)['join'](',\x20');_0x54cb57['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x296eb1)});}return _0x54cb57;}['_handleCustomCallbackDescription'](_0x34f34e){for(const _0x357d1f of this['_customCallbacks']){const _0x3c2137=_0x357d1f(_0x34f34e);if(_0x3c2137&&'type'in _0x3c2137)return _0x3c2137;}}['_handleAttributeSuggestionDescription'](_0x17bf08,_0x21787b){const _0x58d801=_0x21787b['data'],_0x4969fe=void 0x0===_0x58d801['newValue']?'removeFormat':'addFormat';_0x17bf08['push']({'type':_0x4969fe,'key':_0x58d801['key']});}['_handleRenameSuggestionDescription'](_0x2233de,_0x3ece4b){_0x2233de['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3ece4b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xe46151,_0x2af0bc,_0x4837b1){if(this['_addDescriptionItems'](_0xe46151,_0x2af0bc),_0x4837b1&&_0x4837b1['getFirstRange']()&&!_0x2af0bc['getFirstRange']()['end']['isEqual'](_0x4837b1['getFirstRange']()['start'])){const _0xdb4bd5=_0xe46151[_0xe46151['length']-0x1],_0xf2e0d7='insertion'==_0x2af0bc['type']?'add':'remove';_0xdb4bd5&&'text'==_0xdb4bd5['type']&&(_0xdb4bd5[_0xf2e0d7]+='\x0a');}}}class O extends _0x142398{['afterInit'](){const _0xc37629=this['editor'],_0x4c62ec=_0xc37629['plugins']['get']('TrackChangesEditing');_0xc37629['commands']['get']('showAIAssistant')&&_0x4c62ec['enableCommand']('showAIAssistant');}}class E extends _0x142398{['afterInit'](){const _0x57dae3=this['editor'],_0x45e039=_0x57dae3['locale'];if(!_0x57dae3['plugins']['has']('AlignmentEditing'))return;const _0x4a6ce7=_0x57dae3['plugins']['get']('TrackChangesEditing');_0x4a6ce7['enableDefaultAttributesIntegration']('alignment'),_0x4a6ce7['registerBlockAttribute']('alignment'),_0x4a6ce7['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x45e039,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x466f5a=this['editor'],_0x437e60=_0x466f5a['locale'];_0x466f5a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28f378=>{if('formatBlock'!=_0x28f378['type'])return;const {data:_0x2b9d45}=_0x28f378;if(_0x2b9d45&&'alignment'==_0x2b9d45['commandName']){const _0x206dcb=_0x2b9d45['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x437e60,'*Format:*\x20%0',function(_0x2a8158){switch(_0x2a8158){case'left':return o(_0x437e60,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x437e60,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x437e60,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x437e60,'FORMAT_JUSTIFY_TEXT');}}(_0x206dcb))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x142398{['afterInit'](){const _0x2cc67c=this['editor'],_0x535223=_0x2cc67c['plugins']['get']('TrackChangesEditing'),_0x2d13e8=_0x2cc67c['locale'];for(const _0x46a076 of ti){if(!_0x2cc67c['plugins']['has'](_0x46a076))continue;const _0x4df287=_0x46a076['slice'](0x0,-0x7)['toLowerCase'](),_0x28df2e='FORMAT_'+_0x4df287['toUpperCase']();_0x535223['enableDefaultAttributesIntegration'](_0x4df287),_0x535223['registerInlineAttribute'](_0x4df287),_0x535223['descriptionFactory']['registerAttributeLabel'](_0x4df287,o(_0x2d13e8,_0x28df2e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x531fa7=this['editor'],_0x26516d=_0x531fa7['locale'],_0x3c77ba=_0x531fa7['plugins']['get']('TrackChangesEditing');function _0x3e5bc2(_0x1d4499,_0x3a6a49){_0x3c77ba['descriptionFactory']['registerDescriptionCallback'](_0x5b1545=>{if('formatInline'!=_0x5b1545['type'])return;const {data:_0x134e89}=_0x5b1545;return _0x134e89&&_0x134e89['commandName']===_0x1d4499?_0x134e89['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x26516d,'*Format:*\x20%0',_0x3a6a49)}:{'type':'format','content':o(_0x26516d,'*Remove\x20format:*\x20%0',_0x3a6a49)}:void 0x0;});}_0x3e5bc2('bold',o(_0x26516d,'FORMAT_BOLD')),_0x3e5bc2('italic',o(_0x26516d,'FORMAT_ITALIC')),_0x3e5bc2('underline',o(_0x26516d,'FORMAT_UNDERLINE')),_0x3e5bc2('code',o(_0x26516d,'FORMAT_CODE')),_0x3e5bc2('strikethrough',o(_0x26516d,'FORMAT_STRIKETHROUGH')),_0x3e5bc2('subscript',o(_0x26516d,'FORMAT_SUBSCRIPT')),_0x3e5bc2('superscript',o(_0x26516d,'FORMAT_SUPERSCRIPT'));}}class U extends _0x142398{['afterInit'](){const _0x3ffd7b=this['editor'],_0x33ff07=_0x3ffd7b['locale'];if(!_0x3ffd7b['plugins']['has']('BlockQuoteEditing'))return;const _0x10ac29=_0x3ffd7b['plugins']['get']('TrackChangesEditing'),_0x5c167d=this['editor']['commands']['get']('blockQuote');_0x10ac29['enableCommand']('blockQuote',(_0x526607,_0x89e608={})=>{const _0x3483b3=this['editor']['model']['document']['selection'],_0x5b40ae=_0x89e608&&void 0x0!==_0x89e608['forceValue']?_0x89e608['forceValue']:!_0x5c167d['value'];let _0x2492d4=[];if(_0x5b40ae){const _0x44b8ed=Array['from'](_0x3483b3['getSelectedBlocks']())['filter'](_0x5529df=>oo(_0x5529df)||function(_0x356b33,_0xbbf108){const _0x451511=_0xbbf108['checkChild'](_0x356b33['parent'],'blockQuote'),_0x2a7d28=_0xbbf108['checkChild'](['$root','blockQuote'],_0x356b33);return _0x451511&&_0x2a7d28;}(_0x5529df,this['editor']['model']['schema']));_0x2492d4=to(_0x44b8ed,_0x3ffd7b['model']);}else{const _0x771b6b=Array['from'](_0x3483b3['getSelectedBlocks']())['filter'](_0x56ed60=>oo(_0x56ed60));_0x2492d4=to(_0x771b6b,_0x3ffd7b['model']);}_0x3ffd7b['model']['change'](()=>{for(const _0x260577 of _0x2492d4)_0x10ac29['markBlockFormat'](_0x260577,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5b40ae}]});});}),_0x10ac29['descriptionFactory']['registerDescriptionCallback'](_0xbc7422=>{const {data:_0x4c3c5a}=_0xbc7422;if(_0x4c3c5a&&'blockQuote'==_0x4c3c5a['commandName']){const _0x46f6d7=o(_0x33ff07,'ELEMENT_BLOCK_QUOTE');return _0x4c3c5a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33ff07,'*Set\x20format:*\x20%0',_0x46f6d7)}:{'type':'format','content':o(_0x33ff07,'*Remove\x20format:*\x20%0',_0x46f6d7)};}});}}function oo(_0x3f70b8){return'blockQuote'==_0x3f70b8['parent']['name'];}class V extends _0x142398{['afterInit'](){const _0x517b3a=this['editor'],_0x2b9b2d=_0x517b3a['locale'],_0x4416ab=_0x517b3a['plugins']['get']('TrackChangesEditing');_0x517b3a['plugins']['has']('BookmarkEditing')&&(_0x4416ab['enableCommand']('insertBookmark'),_0x4416ab['enableDefaultAttributesIntegration']('updateBookmark'),_0x4416ab['registerBlockAttribute']('bookmarkId'),_0x4416ab['descriptionFactory']['registerDescriptionCallback'](_0x147936=>{if('insertion'!=_0x147936['type']&&'deletion'!=_0x147936['type']&&'attribute'!=_0x147936['type'])return;const _0x39b914=_0x147936['getContainedElement']();if(null==_0x39b914)return;if(!_0x39b914['is']('element','bookmark'))return;const _0xf0f53d=_0x39b914['getAttribute']('bookmarkId');if('insertion'==_0x147936['type'])return{'type':'insertion','content':o(_0x2b9b2d,'*Insert:*\x20%0','\x22'+_0xf0f53d+'\x22\x20'+o(_0x2b9b2d,'ELEMENT_BOOKMARK'))};if('deletion'==_0x147936['type'])return{'type':'deletion','content':o(_0x2b9b2d,'*Remove:*\x20%0','\x22'+_0xf0f53d+'\x22\x20'+o(_0x2b9b2d,'ELEMENT_BOOKMARK'))};const {data:_0x2c9a6c}=_0x147936;if(!_0x2c9a6c||'bookmarkId'!=_0x2c9a6c['key'])return;return{'type':'format','content':o(_0x2b9b2d,'*Set\x20bookmark:*\x20%0','\x22'+_0x2c9a6c['newValue']+'\x22')};}));}}class F extends _0x142398{['afterInit'](){const _0x1e8854=this['editor'];_0x1e8854['plugins']['has']('CaseChange')&&(_0x1e8854['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1e8854['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1e8854['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x142398{['afterInit'](){const _0x5940bb=this['editor'];_0x5940bb['commands']['get']('ckbox')&&_0x5940bb['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x142398{['afterInit'](){const _0x454b81=this['editor'];if(!_0x454b81['plugins']['has']('CodeBlock'))return;const _0x342261=_0x454b81['plugins']['get']('TrackChangesEditing'),_0xb50ec5=_0x454b81['locale'],_0x25e138=_0x454b81['config']['get']('codeBlock')['languages'],_0x114ead=_0x454b81['commands']['get']('codeBlock');_0x342261['enableCommand']('indentCodeBlock'),_0x342261['enableCommand']('outdentCodeBlock'),_0x342261['enableCommand']('codeBlock',(_0x1326d4,_0x2dc0fd={})=>{const _0x27cc42=_0x454b81['model'],_0x4a861f=_0x454b81['model']['document']['selection'],_0x5030ab=_0x2dc0fd&&void 0x0!==_0x2dc0fd['forceValue']?_0x2dc0fd['forceValue']:!_0x114ead['value'];let _0x1e7b81;_0x2dc0fd['language']||(_0x2dc0fd['language']=_0x25e138[0x0]['language']),_0x1e7b81=_0x5030ab?Array['from'](_0x4a861f['getSelectedBlocks']())['filter'](_0x19dbd7=>co(_0x19dbd7)||function(_0x27eff3,_0x373493){if(_0x27eff3['is']('rootElement')||_0x373493['isLimit'](_0x27eff3))return!0x1;return _0x373493['checkChild'](_0x27eff3['parent'],'codeBlock');}(_0x19dbd7,_0x27cc42['schema'])):Array['from'](_0x4a861f['getSelectedBlocks']())['filter'](_0x4add82=>co(_0x4add82));const _0x55e1ad=to(_0x1e7b81,_0x27cc42);_0x27cc42['change'](()=>{for(const _0x18624a of _0x55e1ad)_0x342261['markBlockFormat'](_0x18624a,{'commandName':'codeBlock','commandParams':[{..._0x2dc0fd,'forceValue':_0x5030ab}],'formatGroupId':'blockName'});});}),(_0x342261['descriptionFactory']['registerElementLabel']('codeBlock',_0x378682=>o(_0xb50ec5,'ELEMENT_CODE_BLOCK',_0x378682)),_0x342261['descriptionFactory']['registerDescriptionCallback'](_0x1844ca=>{if('formatBlock'!=_0x1844ca['type'])return;const _0x1a0711=_0xb50ec5['t'],{data:_0x276cb8}=_0x1844ca;if(!_0x276cb8||'codeBlock'!=_0x276cb8['commandName'])return;const _0x3dce1f=_0x276cb8['commandParams'][0x0]['language'],_0x4d1f1f=_0x1a0711(_0x25e138['find'](_0x4c8631=>_0x4c8631['language']===_0x3dce1f)['label'])['toLowerCase']();return _0x276cb8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb50ec5,'*Set\x20format:*\x20%0',o(_0xb50ec5,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4d1f1f+')')}:{'type':'format','content':o(_0xb50ec5,'*Remove\x20format:*\x20%0',o(_0xb50ec5,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0xad4cc2){return'codeBlock'==_0xad4cc2['name'];}class J extends _0x142398{['afterInit'](){const _0x393cd3=this['editor'];if(!_0x393cd3['plugins']['has']('CommentsEditing'))return;_0x393cd3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3b9fcd,_0x4ac0db,_0x5277de){const _0x17f615=[];for(const _0x35d42a of _0x4ac0db['getItems']())_0x35d42a['hasAttribute'](_0x3b9fcd)&&_0x17f615['push'](_0x5277de['createRangeOn'](_0x35d42a));return _0x17f615;}function De(_0x5468ee,_0x509fef,{showActiveMarker:_0x45e5aa=!0x0}={}){const _0x399ece=_0x5468ee['plugins']['get']('TrackChangesEditing');return(_0x1069d6,_0x1ebc48,_0xb65169)=>{if(!_0xb65169['consumable']['test'](_0x1ebc48['markerRange'],_0x1069d6['name']))return;const _0xb060a9=_0x1ebc48['markerRange']['getWalker'](),_0x12cd9c=_0x1ebc48['markerRange']['start'],_0x1f57ab=_0x5468ee['model']['schema'];let _0x308d6d=null,_0x103186=null,_0x1e9d3f=!0x1,_0x109065=!0x1;for(const _0xf9656b of _0xb060a9){const _0x1d9033=_0xf9656b['item'];_0x1e9d3f=_0x1e9d3f||_0x1f57ab['isContent'](_0x1d9033);const _0xa0d3a4=_0xb65169['mapper']['toViewElement'](_0x1d9033);if(_0xa0d3a4&&_0xa0d3a4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xf9656b['type']&&(_0x1f57ab['isBlock'](_0x1d9033)&&!_0x1f57ab['isLimit'](_0x1d9033)&&(_0x1d9033['nextSibling']||_0x12cd9c['isAtEnd']?_0x308d6d&&_0x308d6d['parent']==_0x1d9033||(_0x308d6d=_0x1d9033,_0x10a0ae(_0xf9656b['previousPosition']),_0x109065=!0x0):_0x103186=_0x103186||_0xf9656b['previousPosition']));}function _0x10a0ae(_0x3ddad7){const {id:_0x37ea6c,authorId:_0x335752}=_0x399ece['_splitMarkerName'](_0x1ebc48['markerName']),_0x59ca73=_0xb65169['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x509fef,'data-suggestion':_0x37ea6c,'data-author-id':_0x335752}),_0x4507b8=_0xb65169['mapper']['toViewPosition'](_0x3ddad7);_0x45e5aa&&_0x399ece['activeMarkers']['includes'](_0x1ebc48['markerName'])&&_0xb65169['writer']['addClass']('ck-suggestion-marker--active',_0x59ca73),_0xb65169['writer']['insert'](_0x4507b8,_0x59ca73),_0xb65169['mapper']['bindElementToMarker'](_0x59ca73,_0x1ebc48['markerName']);}_0x1e9d3f||_0x109065||!_0x103186||_0x10a0ae(_0x103186);};}class K extends _0x142398{static get['requires'](){return[_0x43362c];}['init'](){const _0x31f43c=this['editor'],_0x4152d8=_0x31f43c['plugins']['get']('TrackChangesEditing');_0x4152d8['enableCommand']('delete');const _0x563c73=_0x31f43c['commands']['get']('deleteForward');_0x4152d8['enableCommand']('deleteForward',(_0x21ea09,_0x24112b={})=>{const _0x1d0f7f=_0x31f43c['model']['createSelection'](_0x31f43c['model']['document']['selection']);_0x1d0f7f['isCollapsed']&&_0x31f43c['model']['modifySelection'](_0x1d0f7f,{'direction':'forward','unit':_0x24112b['unit']});const _0x479464=_0x1d0f7f['getFirstRange'](),_0x59e222=_0x3590e7['fromRange'](_0x479464);let _0x47225b;_0x21ea09(_0x24112b),_0x47225b='$graveyard'==_0x59e222['root']['rootName']?_0x31f43c['model']['createRange'](_0x479464['start']):_0x31f43c['model']['createRange'](_0x59e222['start'],_0x59e222['end']),_0x59e222['detach'](),_0x31f43c['model']['enqueueChange'](_0x563c73['buffer']['batch'],_0x2c70a0=>{_0x563c73['buffer']['lock'](),_0x2c70a0['setSelection'](_0x2c70a0['createRange'](_0x47225b['end'])),_0x563c73['buffer']['unlock']();});}),_0x31f43c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x31f43c,'merge'),{'priority':'high'}),_0x31f43c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x278765,_0x401168,_0x34ad50)=>{_0x34ad50['options']['showSuggestionHighlights']&&De(_0x31f43c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x278765,_0x401168,_0x34ad50);},{'priority':'high'}),_0x31f43c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x57b32e,_0x20bacf,_0x3926f4)=>{const _0x243a84=_0x3926f4['mapper']['markerNameToElements'](_0x20bacf['markerName']);if(_0x243a84){for(const _0x227789 of _0x243a84)_0x227789['is']('uiElement')&&(_0x3926f4['mapper']['unbindElementFromMarkerName'](_0x227789,_0x20bacf['markerName']),_0x3926f4['writer']['remove'](_0x227789));}},{'priority':'high'});}}class H extends _0x142398{['afterInit'](){const _0x1bd3d1=this['editor'];if(!_0x1bd3d1['plugins']['has']('ListEditing'))return;const _0x1d76b7=_0x1bd3d1['locale'],_0x530202=_0x1bd3d1['plugins']['get']('TrackChangesEditing'),_0x3c0da7=_0x1bd3d1['plugins']['has']('TodoListEditing'),_0x43646d=!!_0x1bd3d1['config']['get']('list.multiBlock');function _0x1549a1(_0x7fb213){return{'type':'format','content':''+o(_0x1d76b7,'*Set\x20format:*\x20%0',_0x7fb213)};}function _0x2e984a(_0x3e9e38){return{'type':'format','content':''+o(_0x1d76b7,'*Remove\x20format:*\x20%0',_0x3e9e38)};}_0x530202['enableDefaultAttributesIntegration']('numberedList'),_0x530202['enableDefaultAttributesIntegration']('bulletedList'),_0x530202['enableDefaultAttributesIntegration']('customNumberedList'),_0x530202['enableDefaultAttributesIntegration']('customBulletedList'),_0x530202['enableDefaultAttributesIntegration']('indentList'),_0x530202['enableDefaultAttributesIntegration']('outdentList'),_0x530202['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x530202['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x530202['registerBlockAttribute']('listItemId'),_0x530202['registerBlockAttribute']('listType'),_0x530202['registerBlockAttribute']('listIndent'),_0x43646d&&(_0x530202['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x530202['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3c0da7&&(_0x530202['enableDefaultAttributesIntegration']('todoList'),_0x530202['enableDefaultAttributesIntegration']('checkTodoList'),_0x530202['registerBlockAttribute']('todoListChecked'),_0x530202['descriptionFactory']['registerDescriptionCallback'](_0x2ba2ee=>{const {data:_0x532a18}=_0x2ba2ee;if(_0x532a18&&'todoListChecked'==_0x532a18['key'])return{'type':'format','content':_0x532a18['newValue']?o(_0x1d76b7,'*Check\x20item*'):o(_0x1d76b7,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x31cfc8=>{if(_0x31cfc8['batch']['isUndo'])return!0x1;let _0x45f32f=!0x1;const _0x3cc038=_0x530202['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2262e0=>'todoListChecked'===_0x530202['_getAttributeKey'](_0x2262e0));for(const _0x44ddef of _0x3cc038){'todo'!=_0x44ddef['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x530202['_findSuggestions'](_0x44ddef['getFirstRange'](),'attribute')['find'](_0x36e6ac=>'listType'===_0x530202['_getAttributeKey'](_0x36e6ac['suggestion']))||(_0x31cfc8['removeMarker'](_0x44ddef['getFirstMarker']()),_0x45f32f=!0x0));}return _0x45f32f;})),_0x530202['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1d76b7,'FORMAT_INDENT'));const _0x2e257d={'type':'format','content':''};_0x530202['descriptionFactory']['registerDescriptionCallback'](_0x320721=>{const {data:_0x3dd191}=_0x320721;if(!_0x3dd191||'listType'!=_0x3dd191['key'])return;let _0x4854a3=_0x320721['head'];for(;_0x4854a3;){if(_0x4854a3['data']&&(('listStyle'==_0x4854a3['data']['key']||'listMarkerStyle'==_0x4854a3['data']['key'])&&(_0x4854a3['data']['newValue']&&'default'!=_0x4854a3['data']['newValue']||'default'!=_0x4854a3['data']['oldValue']&&!_0x3dd191['newValue'])||!_0x43646d&&_0x4854a3['data']['key']==m))return _0x2e257d;_0x4854a3=_0x4854a3['next'];}if(null==_0x3dd191['newValue'])switch(_0x3dd191['oldValue']){case'bulleted':return _0x2e984a(o(_0x1d76b7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2e984a(o(_0x1d76b7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2e984a(o(_0x1d76b7,'ELEMENT_TODO_LIST'));}switch(_0x3dd191['newValue']){case'bulleted':return _0x1549a1(o(_0x1d76b7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1549a1(o(_0x1d76b7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1549a1(o(_0x1d76b7,'ELEMENT_TODO_LIST'));}}),_0x530202['descriptionFactory']['registerDescriptionCallback'](_0x131498=>{const {data:_0x507d32}=_0x131498;if(_0x507d32&&'listIndent'==_0x507d32['key'])return null==_0x507d32['newValue']||null==_0x507d32['oldValue']&&0x0==_0x507d32['newValue']?_0x2e257d:void 0x0;}),_0x530202['descriptionFactory']['registerDescriptionCallback'](_0x12f047=>{if('attribute'!=_0x12f047['type'])return;const {data:_0x4ccef4}=_0x12f047;if(!_0x4ccef4||'listItemId'!=_0x4ccef4['key'])return;const _0xac21b3=Te(_0x12f047);return'newValue'==_0xac21b3?{'type':'format','content':o(_0x1d76b7,'*Merge:*\x20list\x20item')}:'oldValue'==_0xac21b3?{'type':'format','content':o(_0x1d76b7,'*Split:*\x20list\x20item')}:_0x2e257d;}),_0x1bd3d1['model']['document']['registerPostFixer'](_0x36386c=>this['listItemIdFixer'](_0x36386c)),_0x1bd3d1['model']['document']['registerPostFixer'](_0x31de99=>this['noTrackChangesFixer'](_0x31de99)),_0x1bd3d1['model']['document']['on']('change:data',(_0x37bc9a,_0x498e3d)=>{if(_0x498e3d['isUndo']||!_0x498e3d['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xdd34f8){if(_0xdd34f8['batch']['isUndo']||!_0xdd34f8['batch']['isLocal'])return!0x1;let _0x1e14b6=!0x1;const _0x2351c3=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d8dd4=>_0x5d8dd4['data']&&'listItemId'==_0x5d8dd4['data']['key'])['filter'](_0x1d81b4=>_0x1d81b4['data']['newValue']&&_0x1d81b4['data']['oldValue']);for(const _0x2e0af7 of _0x2351c3)Te(_0x2e0af7)||(_0xdd34f8['removeMarker'](_0x2e0af7['getFirstMarker']()),_0x1e14b6=!0x0);return _0x1e14b6;}['noTrackChangesFixer'](_0x3c2c20){if(_0x3c2c20['batch']['isUndo']||!_0x3c2c20['batch']['isLocal'])return!0x1;const _0xd6d9d4=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xd6d9d4['trackChangesCommand']['value'])return!0x1;let _0x598977=!0x1;const _0xa0bd8d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x265423=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x29b326=>'attribute'==_0x29b326['type'])['filter'](_0x400896=>_0xa0bd8d['includes'](_0x400896['attributeKey']));if(0x0==_0x265423['length'])return _0x598977;for(const _0x21db74 of _0x265423){const _0x4ae1b3=_0xd6d9d4['_findSuggestions'](_0x21db74['range'],'attribute')['filter'](_0x381b49=>!_0x381b49['meta']['isNextTo'])['map'](_0xaa64ab=>_0xaa64ab['suggestion'])['filter'](_0x44b848=>{const _0x2d62ba=_0xd6d9d4['_getAttributeKey'](_0x44b848);return _0xa0bd8d['includes'](_0x2d62ba);});if(_0x4ae1b3['length']){for(const _0x11cdcd of _0x4ae1b3)_0x3c2c20['removeMarker'](_0x11cdcd['getFirstMarker']());_0x598977=!0x0;}}return _0x598977;}['assureChains'](){const _0x1bf9b9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1dbf4e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3e2ddd;const _0x1b5fb9=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4ea390=>{if(_0x4ea390['data']['oldRange']||!_0x4ea390['data']['newRange'])return null;if(!_0x4ea390['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x136f26}=_0x1bf9b9['_splitMarkerName'](_0x4ea390['name']);if(!_0x1bf9b9['hasSuggestion'](_0x136f26))return null;const _0x20078c=_0x1bf9b9['getSuggestion'](_0x136f26);return _0x1dbf4e['includes'](_0x20078c['data']['key']);})['map'](_0x2e7a18=>{const {id:_0x43bf8b}=_0x1bf9b9['_splitMarkerName'](_0x2e7a18['name']),_0x27a244=_0x1bf9b9['getSuggestion'](_0x43bf8b);return _0x3e2ddd=_0x27a244['attributes']['groupId'],_0x27a244['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1b5fb9['size'])return;const _0x1f00e4=_0x1bf9b9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x494740=>'attribute'==_0x494740['type']&&_0x494740['data']&&_0x1dbf4e['includes'](_0x494740['data']['key'])&&_0x494740['attributes']['groupId']!=_0x3e2ddd)['map'](_0x261174=>({'listItem':_0x261174['getFirstRange']()['start']['nodeAfter'],'groupId':_0x261174['attributes']['groupId']})),_0xcdddd5=new Set();for(const {groupId:_0x2e21c7,listItem:_0x2ed0b8}of _0x1f00e4)_0x1b5fb9['has'](_0x2ed0b8)&&_0xcdddd5['add'](_0x2e21c7);for(const _0x1b7ce3 of _0x1bf9b9['getSuggestions']())_0xcdddd5['has'](_0x1b7ce3['attributes']['groupId'])&&_0x1b7ce3['setAttribute']('groupId',_0x3e2ddd);}['_supportLegacySuggestions'](){const _0x43a158=this['editor'],_0x325f2f=_0x43a158['locale'],_0x21322b=_0x43a158['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x21322b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x451d04,_0x38e95c){const _0x1fbbc1=[];for(let _0x1bc5af of _0x451d04)_0x1bc5af['start']['nodeAfter']===_0x1bc5af['end']['parent']&&(_0x1bc5af=_0x43a158['model']['createRange'](_0x43a158['model']['createPositionAt'](_0x1bc5af['start']['nodeAfter'],0x0))),_0x1fbbc1['push'](_0x1bc5af);_0x43a158['model']['change'](_0x1fe4d9=>{const _0x58662f=_0x43a158['model']['document']['selection'],_0x33d09f=Array['from'](_0x58662f['getRanges']())['map'](_0x3bab4b=>_0x3590e7['fromRange'](_0x3bab4b));_0x1fe4d9['setSelection'](_0x1fbbc1),_0x43a158['commands']['get'](_0x38e95c['commandName'])['refresh'](),_0x38e95c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x43a158['execute'](_0x38e95c['commandName'],..._0x38e95c['commandParams']),_0x1fe4d9['setSelection'](_0x33d09f);for(const _0x2470ce of _0x33d09f)_0x2470ce['detach']();});}),_0x21322b['descriptionFactory']['registerElementLabel'](function(_0x323985){const _0x4c5bd0=!_0x43a158['model']['schema']['isObject'](_0x323985),_0x758182=_0x323985['previousSibling'],_0x557e4c=_0x323985['nextSibling'],_0x592f2b=_0x323985['getAttribute']('listItemId'),_0x5bd364=!_0x758182||_0x758182['getAttribute']('listItemId')!==_0x592f2b,_0x1cadba=!_0x557e4c||_0x557e4c['getAttribute']('listItemId')!==_0x592f2b;return _0x4c5bd0&&Boolean(_0x592f2b)&&_0x5bd364&&_0x1cadba;},_0xeda896=>o(_0x325f2f,'ELEMENT_LIST_ITEM',_0xeda896));}['_registerLegacyDescription'](){const _0x3cf472=this['editor'],_0x2fe11c=_0x3cf472['locale'];function _0x44bef5(_0x2a7324){const _0x3dbcab=_0x3cf472['commands']['get']('bulletedList')['value'],_0x2de749=_0x3cf472['commands']['get']('numberedList')['value'];return'numberedList'===_0x2a7324?_0x3dbcab:_0x2de749;}_0x3cf472['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5565a9){if('formatBlock'!=_0x5565a9['type'])return;const {data:_0x3d763a}=_0x5565a9;if(!_0x3d763a)return;let _0x341940,_0x2a00a2,_0x237a6e,_0xe02947;switch(_0x3d763a['commandName']){case'bulletedList':_0x237a6e=_0x3d763a['commandParams'][0x0]['forceValue'],_0xe02947=_0x44bef5(_0x3d763a['commandName']),_0x341940=_0x237a6e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xe02947&&_0x3cf472['config']['get']('list.multiBlock')||(_0x341940='*Change\x20to:*\x20%0'),_0x2a00a2={'type':'format','content':o(_0x2fe11c,_0x341940,o(_0x2fe11c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x237a6e=_0x3d763a['commandParams'][0x0]['forceValue'],_0xe02947=_0x44bef5(_0x3d763a['commandName']),_0x341940=_0x237a6e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xe02947&&_0x3cf472['config']['get']('list.multiBlock')||(_0x341940='*Change\x20to:*\x20%0'),_0x2a00a2={'type':'format','content':o(_0x2fe11c,_0x341940,o(_0x2fe11c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x341940='*Indent:*\x20%0',_0x2a00a2={'type':'format','content':o(_0x2fe11c,_0x341940,o(_0x2fe11c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x341940=function(_0x372b8f){const _0x21d8f7=_0x372b8f['getFirstRange']();let _0x34f747=_0x21d8f7['start']['nodeAfter'];for(;_0x34f747&&_0x21d8f7['containsItem'](_0x34f747);){if(_0x34f747['getAttribute']('listIndent')>0x0)return!0x1;_0x34f747=_0x34f747['nextSibling'];}return!0x0;}(_0x5565a9)?o(_0x2fe11c,'*Format:*\x20remove\x20from\x20%0',o(_0x2fe11c,function(_0x359fbc){return'ELEMENT_'+_0x359fbc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5565a9))):o(_0x2fe11c,'*Outdent:*\x20%0',o(_0x2fe11c,'ELEMENT_LIST_ITEM')),_0x2a00a2={'type':'format','content':_0x341940};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3d763a['multipleBlocks']&&(_0x341940='*Merge:*\x20%0',_0x2a00a2={'type':'deletion','content':o(_0x2fe11c,_0x341940,o(_0x2fe11c,'ELEMENT_LIST_ITEM'))});}return _0x2a00a2;});}}function Te(_0x284c5c){let _0x18cc74=_0x284c5c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x18cc74;){const _0x7b74d0=_0x18cc74['getAttribute']('listItemId');if(!_0x7b74d0)return!0x1;if(_0x7b74d0==_0x284c5c['data']['newValue'])return'newValue';if(_0x7b74d0==_0x284c5c['data']['oldValue'])return'oldValue';_0x18cc74=_0x18cc74['previousSibling'];}return!0x1;}class q extends _0x142398{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5106f6=this['editor']['config']['get']('list.properties'),_0x220dbb=this['editor']['plugins']['get']('TrackChangesEditing');_0x5106f6['styles']&&(_0x220dbb['enableDefaultAttributesIntegration']('listStyle'),_0x220dbb['registerBlockAttribute']('listStyle')),_0x5106f6['reversed']&&(_0x220dbb['enableDefaultAttributesIntegration']('listReversed'),_0x220dbb['registerBlockAttribute']('listReversed')),_0x5106f6['startIndex']&&(_0x220dbb['enableDefaultAttributesIntegration']('listStart'),_0x220dbb['registerBlockAttribute']('listStart'));const _0x5d0b96={'type':'format','content':''};_0x220dbb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1dc2fb=this['editor']['locale'];_0x220dbb['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1dc2fb,'FORMAT_LIST_REVERSED')),_0x220dbb['descriptionFactory']['registerDescriptionCallback'](_0x78ccf8=>{const {data:_0x2469b0}=_0x78ccf8;if(_0x2469b0&&'listReversed'==_0x2469b0['key'])return null==_0x2469b0['newValue']||0x0==_0x2469b0['newValue']&&null==_0x2469b0['oldValue']?_0x5d0b96:void 0x0;}),_0x220dbb['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1dc2fb,'FORMAT_LIST_START')),_0x220dbb['descriptionFactory']['registerDescriptionCallback'](_0x56aed6=>{const {data:_0x5ab32f}=_0x56aed6;if(_0x5ab32f&&'listStart'==_0x5ab32f['key'])return null==_0x5ab32f['newValue']||0x1==_0x5ab32f['newValue']&&null==_0x5ab32f['oldValue']?_0x5d0b96:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x598bef=>{if(_0x598bef['batch']['isUndo'])return!0x1;let _0x1c4546=!0x1;const _0x23cdf9=_0x220dbb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5f01fd=>{const _0x56061a=_0x220dbb['_getAttributeKey'](_0x5f01fd);return'listStart'==_0x56061a||'listReversed'==_0x56061a;});for(const _0x449631 of _0x23cdf9){const _0x22e5b1=_0x449631['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x22e5b1||'customNumbered'==_0x22e5b1)continue;_0x220dbb['_findSuggestions'](_0x449631['getFirstRange'](),'attribute')['find'](_0x3a9d74=>'listType'==_0x220dbb['_getAttributeKey'](_0x3a9d74['suggestion']))||(_0x598bef['removeMarker'](_0x449631['getFirstMarker']()),_0x1c4546=!0x0);}return _0x1c4546;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x37c3ad){const _0x31fb01=this['editor']['locale'],{data:_0x1d2d8a}=_0x37c3ad,_0x8e6bd9={'type':'format','content':''};if(!_0x1d2d8a||'listStyle'!=_0x1d2d8a['key'])return;if(!_0x1d2d8a['oldValue'])return'default'==_0x1d2d8a['newValue']?_0x8e6bd9:{'type':'format','content':''+o(_0x31fb01,'*Set\x20format:*\x20%0',o(_0x31fb01,this['_getTranslationKeyForListStyle'](_0x1d2d8a['newValue'])))};if(!_0x1d2d8a['newValue']){if('default'==_0x1d2d8a['oldValue'])return _0x8e6bd9;let _0x31e13f=_0x37c3ad['head'];for(;_0x31e13f;){if(_0x31e13f['data']&&'listType'==_0x31e13f['data']['key']&&_0x31e13f['data']['newValue'])return _0x8e6bd9;_0x31e13f=_0x31e13f['next'];}return{'type':'format','content':''+o(_0x31fb01,'*Remove\x20format:*\x20%0',o(_0x31fb01,this['_getTranslationKeyForListStyle'](_0x1d2d8a['oldValue'])))};}if('default'!=_0x1d2d8a['newValue'])return{'type':'format','content':''+o(_0x31fb01,'*Set\x20format:*\x20%0',o(_0x31fb01,this['_getTranslationKeyForListStyle'](_0x1d2d8a['newValue'])))};let _0x56e995=_0x37c3ad['head'];for(;_0x56e995;){if(_0x56e995['data']&&'listType'==_0x56e995['data']['key']&&_0x56e995['data']['newValue']&&_0x56e995['data']['oldValue'])return _0x8e6bd9;_0x56e995=_0x56e995['next'];}return{'type':'format','content':o(_0x31fb01,'*Set\x20format:*\x20%0',o(_0x31fb01,'ELEMENT_'+_0x37c3ad['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x544461=this['editor'],_0x400106=_0x544461['locale'];_0x544461['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56ab5a=>{if('formatBlock'!=_0x56ab5a['type'])return;const {data:_0x240d06}=_0x56ab5a;if(!_0x240d06)return;let _0x3211ef,_0x133d7f;switch(_0x240d06['commandName']){case'listStyle':_0x3211ef='*Change\x20to:*\x20%0',_0x133d7f={'type':'format','content':o(_0x400106,_0x3211ef,o(_0x400106,this['_getTranslationKeyForListStyle'](_0x240d06['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3211ef=_0x240d06['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x133d7f={'type':'format','content':o(_0x400106,_0x3211ef)};break;case'listStart':_0x3211ef='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x133d7f={'type':'format','content':o(_0x400106,_0x3211ef,_0x240d06['commandParams'][0x0]['startIndex'])};}return _0x133d7f;});}['_getTranslationKeyForListStyle'](_0x1578a5){return'ELEMENT_'+function(_0x9ff93d){if(Se['includes'](_0x9ff93d))return'bulleted';if(_e['includes'](_0x9ff93d))return'numbered';return null;}(_0x1578a5)['toUpperCase']()+'_LIST_'+_0x1578a5['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x142398{['afterInit'](){const _0x1e0c93=this['editor'];_0x1e0c93['commands']['get']('emoji')&&_0x1e0c93['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x142398{static get['requires'](){return[_0x318fb5];}['init'](){const _0x4cc3ec=this['editor'],_0xf6f64a=_0x4cc3ec['plugins']['get']('TrackChangesEditing'),_0x53b336=_0x4cc3ec['commands']['get']('enter');_0xf6f64a['enableCommand']('enter',()=>{_0x4cc3ec['model']['change'](_0x5ba9ab=>{const _0x14c90f=_0x4cc3ec['model']['document']['selection'],_0xc4aa90=_0x14c90f['getFirstPosition'](),_0x38d9f2=_0x3590e7['fromRange'](_0x14c90f['getFirstRange']());if(_0x53b336['enterBlock'](_0x5ba9ab)){const _0x32768c=_0x4cc3ec['model']['createPositionAt'](_0xc4aa90['parent']['nextSibling'],0x0),_0x1612ec=_0x5ba9ab['createRange'](_0xc4aa90,_0x32768c);_0xf6f64a['markInsertion'](_0x1612ec);}else _0x5ba9ab['setSelection'](_0x5ba9ab['createRange'](_0x38d9f2['end']));_0x38d9f2['detach'](),_0x53b336['fire']('afterExecute',{'writer':_0x5ba9ab});});}),_0x4cc3ec['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x4cc3ec,'split'),{'priority':'high'}),_0x4cc3ec['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5f017b,_0x316a5e,_0x2a2f4c)=>{const _0x413e94=_0x2a2f4c['mapper']['markerNameToElements'](_0x316a5e['markerName']);if(_0x413e94){for(const _0x31d357 of _0x413e94)_0x31d357['hasClass']('ck-suggestion-marker-split')&&(_0x2a2f4c['mapper']['unbindElementFromMarkerName'](_0x31d357,_0x316a5e['markerName']),_0x2a2f4c['writer']['remove'](_0x31d357));}},{'priority':'high'}),_0x4cc3ec['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5adf57,_0x38cd01,_0x274e25)=>{_0x274e25['options']['showSuggestionHighlights']&&De(_0x4cc3ec,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5adf57,_0x38cd01,_0x274e25);},{'priority':'high'});}}class Q extends _0x142398{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4e4d38=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e4d38['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4e4d38['enableCommand']('findNext'),_0x4e4d38['enableCommand']('findPrevious'),_0x4e4d38['enableCommand']('replace'),_0x4e4d38['enableCommand']('replaceAll');}['handleFindCommand'](_0x1d72f4,_0x1efb1d,_0x4893a7={}){const _0x80d449=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1d72f4(_0x175cd3=>{let _0xca9e0f=('string'==typeof _0x1efb1d?_0x80d449['findByTextCallback'](_0x1efb1d,_0x4893a7):_0x1efb1d)(_0x175cd3);Array['isArray'](_0xca9e0f)&&(_0xca9e0f={'results':_0xca9e0f,'searchText':'string'==typeof _0x1efb1d?_0x1efb1d:''});const _0x3a9055=_0xca9e0f['results']['filter'](_0x46f2db=>!0x1===this['_isInDeletionRange'](_0x46f2db,_0x175cd3['item']));return{..._0xca9e0f,'results':_0x3a9055};},_0x4893a7);}['_isInDeletionRange'](_0x254d19,_0x252ae2){const _0x244f8f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x252ae2,_0x254d19['start']),this['editor']['model']['createPositionAt'](_0x252ae2,_0x254d19['end']));for(const _0x1384a3 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x244f8f['getIntersection'](_0x1384a3['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x142398{['afterInit'](){const _0x2379da=this['editor']['locale'],_0x49e777=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2c48a,commandName:_0x1f48ed}of eo)this['editor']['plugins']['has'](_0x2c48a)&&(_0x49e777['enableDefaultAttributesIntegration'](_0x1f48ed),_0x49e777['registerInlineAttribute'](_0x1f48ed));_0x49e777['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2379da,'FORMAT_FONT_SIZE')),_0x49e777['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2379da,'FORMAT_FONT_FAMILY')),_0x49e777['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2379da,'FORMAT_FONT_COLOR')),_0x49e777['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2379da,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59180a=this['editor'],_0x37f8e4=_0x59180a['locale'];_0x59180a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a1619=>{const _0x29b2f7=_0x37f8e4['t'];if('formatInline'!=_0x4a1619['type'])return;const {data:_0x203766}=_0x4a1619;if(null!=_0x203766){if('fontSize'==_0x203766['commandName']){const _0x57edb6=_0x203766['commandParams'][0x0]['value'];if(_0x57edb6){const _0x1231be=_0x29b2f7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1056c6=>_0x1056c6['model']==_0x57edb6)['title'])['toLowerCase']();return{'type':'format','content':o(_0x37f8e4,'*Set\x20font\x20size:*\x20%0',_0x1231be)};}return{'type':'format','content':o(_0x37f8e4,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x203766['commandName']){const _0x3b1865=_0x203766['commandParams'][0x0]['value'];return _0x3b1865?{'type':'format','content':o(_0x37f8e4,'*Set\x20font\x20family:*\x20%0',_0x3b1865)}:{'type':'format','content':o(_0x37f8e4,'*Reset\x20font\x20family*')};}if('fontColor'==_0x203766['commandName']){const _0x2a70f3=_0x203766['commandParams'][0x0]['value'];if(_0x2a70f3){const _0x2d9fd0=_0x444e09(this['editor']['config']['get']('fontColor.colors'))['find'](_0xa12a2c=>_0xa12a2c['model']==_0x2a70f3);let _0x28d5e6=_0x2a70f3,_0x3a9b71='';return _0x2d9fd0&&(_0x28d5e6=_0x2d9fd0['label'],_0x3a9b71=_0x29b2f7(_0x28d5e6)['toLowerCase']()),{'type':'format','content':o(_0x37f8e4,'*Set\x20font\x20color:*\x20%0',_0x3a9b71)['trim'](),'color':{'value':_0x2a70f3,'title':_0x3a9b71||_0x28d5e6}};}return{'type':'format','content':o(_0x37f8e4,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x203766['commandName']){const _0x16fd5f=_0x203766['commandParams'][0x0]['value'];if(_0x16fd5f){const _0x25449a=_0x444e09(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1f4d1a=>_0x1f4d1a['model']==_0x16fd5f);let _0x3bb050=_0x16fd5f,_0xd480c='';return _0x25449a&&(_0x3bb050=_0x25449a['label'],_0xd480c=_0x29b2f7(_0x3bb050)['toLowerCase']()),{'type':'format','content':o(_0x37f8e4,'*Set\x20font\x20background\x20color:*\x20%0',_0xd480c)['trim'](),'color':{'value':_0x16fd5f,'title':_0xd480c||_0x3bb050}};}return{'type':'format','content':o(_0x37f8e4,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x142398{['afterInit'](){const _0x54bf6c=this['editor'],_0x44f0c8=_0x54bf6c['plugins']['get']('TrackChangesEditing'),_0x18f092=_0x54bf6c['commands']['get']('copyFormat'),_0x39162f=_0x54bf6c['commands']['get']('pasteFormat');_0x18f092&&_0x39162f&&(_0x44f0c8['enableDefaultAttributesIntegration']('pasteFormat'),_0x44f0c8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2f7b97=this['editor'],_0x4096d8=_0x2f7b97['locale'];_0x2f7b97['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cdd2a=>{if('formatBlock'!=_0x3cdd2a['type']&&'formatInline'!=_0x3cdd2a['type'])return;const {data:_0x24e10a}=_0x3cdd2a;if(_0x24e10a&&'pasteFormat'===_0x24e10a['commandName']){const _0x47283b=[],_0x51aea6=_0x24e10a['commandParams'][0x0];for(const [_0x4db39f,_0x5686a6]of Object['entries'](_0x51aea6))_0x47283b['push'](ro(_0x2f7b97,_0x4db39f,_0x5686a6));return _0x47283b['length']?{'type':'format','content':o(_0x4096d8,'*Set\x20format\x20to:*\x20%0',_0x47283b['join'](',\x20'))}:{'type':'format','content':o(_0x4096d8,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x23c1e4,_0x222416,_0x469125){const _0x541caf=_0x23c1e4['locale']['t'],_0x16dd05=_0x222416['split'](/(?=[A-Z])/)['join']('\x20'),_0xdc5a01=_0x541caf(_0x16dd05['charAt'](0x0)['toUpperCase']()+_0x16dd05['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x469125)return _0xdc5a01;if('fontColor'===_0x222416||'fontBackgroundColor'===_0x222416){const _0x301c1c=_0x444e09(_0x23c1e4['config']['get']('fontColor.colors'))['find'](_0x24e447=>_0x24e447['model']==_0x469125);return _0xdc5a01+'\x20('+(_0x301c1c?_0x541caf(_0x301c1c['label'])['toLowerCase']():_0x469125)+')';}if('fontSize'===_0x222416&&isNaN(parseFloat(_0x469125))){const _0x238b5d=_0x23c1e4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x23c1e4['config']['get']('fontSize.options'))['find'](_0x4f08ef=>_0x4f08ef['model']==_0x469125);return _0xdc5a01+'\x20('+(_0x238b5d?_0x541caf(_0x238b5d['title'])['toLowerCase']():_0x469125)+')';}return _0xdc5a01+'\x20('+_0x469125+')';}class Z extends _0x142398{['_headingOptions'];['afterInit'](){const _0x5b47bf=this['editor'];if(!_0x5b47bf['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5b47bf['config']['get']('heading.options');const _0x2de2f=_0x5b47bf['locale'],_0x21201d=_0x5b47bf['plugins']['get']('TrackChangesEditing');_0x21201d['enableDefaultAttributesIntegration']('heading');for(const _0x1ff4f4 of this['_headingOptions'])'paragraph'!=_0x1ff4f4['model']&&_0x21201d['descriptionFactory']['registerElementLabel'](_0x1ff4f4['model'],_0x560406=>{const _0x421400=this['_getHeadingLevel'](_0x1ff4f4['model']);return null!==_0x421400?_0x5f0a89(_0x560406,_0x421400):_0x1e5fe3(_0x560406,_0x1ff4f4['title']);});function _0x5f0a89(_0x2d2514,_0x5d5d3f){return o(_0x2de2f,'ELEMENT_HEADING',[_0x2d2514,_0x5d5d3f]);}function _0x1e5fe3(_0xbf3e00,_0x172c3a){return o(_0x2de2f,'ELEMENT_HEADING_CUSTOM',[_0xbf3e00,_0x172c3a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b06bd=this['editor'],_0x2c2d60=_0x3b06bd['locale'];function _0x3b11e1(_0x2342ca,_0x580c9e){return o(_0x2c2d60,'ELEMENT_HEADING_CUSTOM',[_0x2342ca,_0x580c9e]);}_0x3b06bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8953e4=>{if('formatBlock'!=_0x8953e4['type'])return;const {data:_0x3341cb}=_0x8953e4;if(_0x3341cb&&'heading'==_0x3341cb['commandName']){const _0x1c9978=_0x3341cb['commandParams'][0x0]['value'],_0x57e800=this['_getHeadingLevel'](_0x1c9978);if(null!==_0x57e800)return{'type':'format','content':o(_0x2c2d60,'*Change\x20to:*\x20%0',(_0x1f7ae3=0x1,_0x2c2a26=_0x57e800,o(_0x2c2d60,'ELEMENT_HEADING',[_0x1f7ae3,_0x2c2a26])))};const _0x5ab2e8=this['_headingOptions']['find'](_0x16bf41=>_0x16bf41['model']===_0x1c9978)['title'];return{'type':'format','content':o(_0x2c2d60,'*Change\x20to:*\x20%0',_0x3b11e1(0x1,_0x5ab2e8))};}var _0x1f7ae3,_0x2c2a26;});}['_getHeadingLevel'](_0x153d64){const _0x53c7db=_0x153d64['match'](/^heading(\d+)/);if(_0x53c7db)return _0x53c7db[0x1];const _0x354ce0=this['_headingOptions']?.['find'](_0x2ad900=>_0x2ad900['model']==_0x153d64);if(_0x354ce0&&_0x354ce0['view']){const _0x1d2581=_0x354ce0['view'],_0x1b1003=(_0x1d2581['name']??_0x1d2581)['match'](/^h(\d+)/);if(_0x1b1003)return _0x1b1003[0x1];}return null;}}class tt extends _0x142398{['afterInit'](){const _0x227b02=this['editor'];if(!_0x227b02['plugins']['has']('HighlightEditing'))return;const _0x5722f0=_0x227b02['plugins']['get']('TrackChangesEditing'),_0x57d70c=_0x227b02['locale'];_0x5722f0['enableDefaultAttributesIntegration']('highlight'),_0x5722f0['registerInlineAttribute']('highlight'),_0x5722f0['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x57d70c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50a0b7=this['editor'],_0x489c4=_0x50a0b7['locale'];_0x50a0b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x401d9c=>{if('formatInline'!=_0x401d9c['type'])return;const {data:_0x31cfa4}=_0x401d9c;if(_0x31cfa4&&'highlight'==_0x31cfa4['commandName']){const _0x5368f3=_0x489c4['t'],_0x24ee6c=_0x31cfa4['commandParams'][0x0]['value'];if(_0x24ee6c){const _0x3ca615=_0x50a0b7['config']['get']('highlight.options')['find'](_0x50091b=>_0x50091b['model']==_0x24ee6c),_0x2a0f05=_0x5368f3(_0x3ca615['title'])['toLowerCase']();return{'type':'format','content':o(_0x489c4,'*Set\x20highlight:*\x20%0',_0x2a0f05),'color':{'value':_0x3ca615['color'],'title':_0x3ca615['title']}};}return{'type':'format','content':o(_0x489c4,'*Remove\x20highlight*',o(_0x489c4,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x142398{['afterInit'](){const _0x598a7b=this['editor'];if(!_0x598a7b['plugins']['has']('HorizontalLineEditing'))return;_0x598a7b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xb2b192=_0x598a7b['plugins']['get']('TrackChangesEditing'),_0x55da0f=_0x598a7b['locale'];_0xb2b192['descriptionFactory']['registerElementLabel']('horizontalLine',_0x18ac18=>o(_0x55da0f,'ELEMENT_HORIZONTAL_LINE',_0x18ac18)),_0x598a7b['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x494bea,{writer:_0xf12679,options:_0xcb5ca7})=>{if(!_0xcb5ca7['showSuggestionHighlights'])return null;const _0x130f2a=_0xf12679['createContainerElement']('div'),_0x959ff7=_0xf12679['createEmptyElement']('hr');return _0xf12679['addClass']('ck-horizontal-line',_0x130f2a),_0xf12679['insert'](_0xf12679['createPositionAt'](_0x130f2a,0x0),_0x959ff7),_0x130f2a;},'converterPriority':'high'});}}class nt extends _0x142398{['afterInit'](){const _0x3d04cd=this['editor'];if(!_0x3d04cd['plugins']['has']('HtmlEmbed'))return;const _0x296a70=_0x3d04cd['plugins']['get']('TrackChangesEditing'),_0x451d3e=_0x3d04cd['locale'];_0x296a70['descriptionFactory']['registerElementLabel']('rawHtml',_0x4a0891=>o(_0x451d3e,'ELEMENT_HTML_EMBED',_0x4a0891)),_0x296a70['enableDefaultAttributesIntegration']('htmlEmbed'),_0x296a70['registerBlockAttribute']('value'),_0x296a70['descriptionFactory']['registerDescriptionCallback'](_0x430880=>{if('attribute'!=_0x430880['type'])return;const {data:_0x502d48}=_0x430880;if(_0x502d48&&'value'==_0x502d48['key']&&_0x430880['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x487d73=o(_0x451d3e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x451d3e,'*Change\x20%0\x20content*',_0x487d73)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3930c2=this['editor'],_0x3c5f5c=_0x3930c2['locale'];_0x3930c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a517f=>{if('formatBlock'!=_0x5a517f['type'])return;const {data:_0x49efd1}=_0x5a517f;if(_0x49efd1&&'htmlEmbed'==_0x49efd1['commandName']){const _0x1e90bd=o(_0x3c5f5c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3c5f5c,'*Change\x20%0\x20content*',_0x1e90bd)};}});}}class et extends _0x142398{['afterInit'](){const _0x590ebf=this['editor'];if(!_0x590ebf['plugins']['has']('ImageEditing'))return;const _0x4174bb=_0x590ebf['plugins']['get']('TrackChangesEditing'),_0xf036b6=_0x590ebf['plugins']['get']('ImageUtils'),_0xade5ad=_0x590ebf['locale'];_0x4174bb['enableCommand']('insertImage'),_0x4174bb['descriptionFactory']['registerElementLabel']('imageBlock',_0x45f3e9=>o(_0xade5ad,'ELEMENT_IMAGE',_0x45f3e9)),_0x4174bb['descriptionFactory']['registerElementLabel']('imageInline',_0xdc91dc=>o(_0xade5ad,'ELEMENT_INLINE_IMAGE',_0xdc91dc)),_0x4174bb['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xade5ad,'ELEMENT_CAPTION')),_0x590ebf['plugins']['has']('ImageUploadEditing')&&_0x4174bb['enableCommand']('uploadImage'),_0x590ebf['plugins']['has']('ImageBlockEditing')&&_0x590ebf['plugins']['has']('ImageInlineEditing')&&(_0x4174bb['enableCommand']('imageTypeInline',(_0x2b997b,_0x568669)=>{const _0x4b4722=_0xf036b6['getClosestSelectedImageElement'](_0x590ebf['model']['document']['selection']);_0x590ebf['model']['change'](()=>{_0x4174bb['markBlockFormat'](_0x4b4722,{'commandName':'imageTypeInline','commandParams':[_0x568669]},[],'convertBlockImageToInline');});}),_0x4174bb['enableCommand']('imageTypeBlock',(_0x348202,_0x20f5aa)=>{_0x590ebf['model']['change'](_0x45437d=>{let _0x273be5=_0xf036b6['getClosestSelectedImageElement'](_0x590ebf['model']['document']['selection']),_0x4272be=_0x45437d['createRangeOn'](_0x273be5);const _0x332aa1=_0x22b32f['fromPosition'](_0x4272be['start'],'toPrevious'),_0x19ccbf=_0x22b32f['fromPosition'](_0x4272be['end'],'toNext');_0x4174bb['forceDefaultExecution'](()=>_0x348202(_0x20f5aa)),_0x273be5=_0xf036b6['getClosestSelectedImageElement'](_0x590ebf['model']['document']['selection']),_0x4272be=_0x45437d['createRangeOn'](_0x273be5);const _0x5def8c=_0x45437d['createRange'](_0x332aa1,_0x19ccbf);_0x332aa1['detach'](),_0x19ccbf['detach'](),_0x4174bb['markBlockFormat'](_0x273be5,{'commandName':'imageTypeInline','commandParams':[_0x20f5aa]},[],'convertInlineImageToBlock'),_0x5def8c['start']['isBefore'](_0x4272be['start'])&&_0x4174bb['markInsertion'](_0x45437d['createRange'](_0x5def8c['start'],_0x4272be['start']),'convertInlineImageToBlock'),_0x4272be['end']['isBefore'](_0x5def8c['end'])&&_0x4174bb['markInsertion'](_0x45437d['createRange'](_0x4272be['end'],_0x5def8c['end']),'convertInlineImageToBlock');});}),_0x4174bb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4174bb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4174bb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4174bb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4174bb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4174bb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1ce5a0])=>{const _0x4cfbb9=_0x4174bb['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x52223a=_0x1ce5a0['start'],_0x12719c=_0x1ce5a0['end'];const _0x24523a=_0x590ebf['model']['schema']['getNearestSelectionRange'](_0x52223a,'backward'),_0x5b2b83=_0x590ebf['model']['schema']['getNearestSelectionRange'](_0x12719c,'forward');_0x24523a['isCollapsed']&&(_0x52223a=_0x24523a['start']),_0x5b2b83['isCollapsed']&&(_0x12719c=_0x5b2b83['end']),_0x4cfbb9([_0x590ebf['model']['createRange'](_0x52223a,_0x12719c)]);}),_0x4174bb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1b96e6),_0x4174bb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1b96e6)),_0x590ebf['plugins']['has']('ImageCaptionEditing')&&(_0x4174bb['enableCommand']('toggleImageCaption',(_0x877867,_0x3f8284)=>{const _0x34f341=_0x590ebf['plugins']['get']('ImageCaptionUtils');let _0x480f2b=_0xf036b6['getClosestSelectedImageElement'](_0x590ebf['model']['document']['selection']),_0x3f3d7d=_0x34f341['getCaptionFromImageModelElement'](_0x480f2b);_0x590ebf['model']['change'](()=>{if(_0x3f3d7d)return void _0x4174bb['markDeletion'](_0x590ebf['model']['createRangeOn'](_0x3f3d7d));const _0x45bbb4=_0xf036b6['isBlockImage'](_0x480f2b);_0x877867(_0x3f8284),_0x480f2b=_0xf036b6['getClosestSelectedImageElement'](_0x590ebf['model']['document']['selection']),_0x3f3d7d=_0x34f341['getCaptionFromImageModelElement'](_0x480f2b),_0x4174bb['markInsertion'](_0x590ebf['model']['createRangeOn'](_0x3f3d7d),_0x45bbb4?null:'imageCaption');});}),_0x4174bb['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1b96e6));const _0x760646=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x104db8(_0x16a545,_0x4f75d0){const _0x593bc1=_0x760646['findIndex'](({type:_0x3c4f2d,subType:_0x5bd914})=>_0x16a545['type']==_0x3c4f2d&&_0x16a545['subType']==_0x5bd914),_0x38c125=_0x760646['findIndex'](({type:_0x4303aa,subType:_0x8dc2d0})=>_0x4f75d0['type']==_0x4303aa&&_0x4f75d0['subType']==_0x8dc2d0);if(_0x593bc1<0x0||_0x38c125<0x0)return!0x1;const _0x1a2019=_0x16a545['getFirstRange'](),_0x259a1d=_0x4f75d0['getFirstRange']();if((0x0==_0x593bc1||0x1==_0x593bc1)&&0x2==_0x38c125&&_0x1a2019['isIntersecting'](_0x259a1d))return!0x0;if(0x2==_0x593bc1&&0x3==_0x38c125){const _0x2a2550=_0x4174bb['_findSuggestions'](_0x1a2019,'insertion')['filter'](({suggestion:_0x5f3bfc,meta:_0x30339d})=>_0x30339d['isOwn']&&'convertInlineImageToBlock'==_0x5f3bfc['subType']);if(_0x2a2550['length']>0x1&&_0x259a1d['end']['isEqual'](_0x1a2019['start']))return!0x0;if(0x1==_0x2a2550['length']&&(_0x1a2019['start']['isEqual'](_0x259a1d['end'])||_0x1a2019['end']['isEqual'](_0x259a1d['start'])))return!0x0;}if(0x3==_0x593bc1&&0x3==_0x38c125&&_0x1a2019['start']['isBefore'](_0x259a1d['start'])){const _0x737af5=_0x1a2019['end']['nodeAfter'],_0x320265=_0x259a1d['start']['nodeBefore'];return _0xf036b6['isBlockImage'](_0x737af5)&&_0x737af5===_0x320265;}return!0x1;}function _0x1b96e6(_0x7fe373,_0x1abeff){return _0x104db8(_0x7fe373,_0x1abeff)?[_0x7fe373,_0x1abeff]:_0x104db8(_0x1abeff,_0x7fe373)?[_0x1abeff,_0x7fe373]:null;}_0x590ebf['plugins']['has']('ImageResize')&&(_0x4174bb['enableDefaultAttributesIntegration']('resizeImage'),_0x4174bb['registerBlockAttribute']('resizedWidth'),_0x4174bb['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xade5ad,'FORMAT_IMAGE_SIZE'))),_0x590ebf['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4174bb['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4174bb['registerBlockAttribute']('alt')),_0x590ebf['plugins']['has']('PictureEditing')&&(_0x4174bb['registerBlockAttribute']('sources'),_0x4174bb['descriptionFactory']['registerDescriptionCallback'](_0x33e122=>{if('attribute'!=_0x33e122['type'])return;const {data:_0x3203eb}=_0x33e122;return _0x3203eb&&'sources'==_0x3203eb['key']?{'type':'format','content':''}:void 0x0;})),_0x590ebf['plugins']['has']('ImageSizeAttributes')&&(_0x4174bb['registerBlockAttribute']('width'),_0x4174bb['registerBlockAttribute']('height'),_0x4174bb['descriptionFactory']['registerDescriptionCallback'](_0x54e650=>{if('attribute'!=_0x54e650['type'])return;const {data:_0x253777}=_0x54e650;return!_0x253777||'width'!=_0x253777['key']&&'height'!=_0x253777['key']?void 0x0:{'type':'format','content':''};})),_0x4174bb['descriptionFactory']['registerDescriptionCallback'](_0x3c8a2a=>{if(!!_0x760646['find'](({type:_0x58db74,subType:_0x45910c})=>_0x3c8a2a['type']==_0x58db74&&_0x3c8a2a['subType']==_0x45910c))return _0x3c8a2a['previous']?{}:void 0x0;}),_0x4174bb['descriptionFactory']['registerDescriptionCallback'](_0x465b4f=>{if('insertion'==_0x465b4f['type']||'deletion'==_0x465b4f['type']){const _0x1cc383=_0x465b4f['getContainedElement']();if(_0x1cc383&&_0x1cc383['is']('element','caption'))return{'type':'insertion'==_0x465b4f['type']?'addObject':'removeObject','element':_0x1cc383,'quantity':0x1};}}),_0x4174bb['descriptionFactory']['registerDescriptionCallback'](_0x29d658=>'formatBlock'==_0x29d658['type']&&'convertInlineImageToBlock'==_0x29d658['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x29d658['type']&&'convertBlockImageToInline'==_0x29d658['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4174bb['descriptionFactory']['registerDescriptionCallback'](_0x5362d5=>{if('attribute'!=_0x5362d5['type'])return;const {data:_0x165ab5}=_0x5362d5;if(!_0x165ab5||'alt'!=_0x165ab5['key'])return;const _0x9c73d8=_0x165ab5['newValue'];return _0x9c73d8?{'type':'format','content':o(_0xade5ad,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x9c73d8+'\x22')}:{'type':'format','content':o(_0xade5ad,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58b49b=this['editor'],_0x257e57=_0x58b49b['locale'];_0x58b49b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e4239=>{if('formatBlock'!=_0x3e4239['type']&&'formatInline'!=_0x3e4239['type'])return;const {data:_0x236775}=_0x3e4239;if(_0x236775){if('imageTextAlternative'==_0x236775['commandName']){const _0x1abe6e=_0x236775['commandParams'][0x0]['newValue'];return _0x1abe6e?{'type':'format','content':o(_0x257e57,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1abe6e+'\x22')}:{'type':'format','content':o(_0x257e57,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x236775['commandName']){const _0x50dd22=_0x236775['commandParams'][0x0]['width'];return _0x50dd22?{'type':'format','content':o(_0x257e57,'*Set\x20image\x20width:*\x20%0',_0x50dd22)}:{'type':'format','content':o(_0x257e57,'*Reset\x20image\x20width*')};}}});}}class st extends _0x142398{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3c99bc=this['editor']['locale'],_0x2e0856=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e0856['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2e0856['registerBlockAttribute']('src'),_0x2e0856['descriptionFactory']['registerDescriptionCallback'](_0x52bc77=>{if('attribute'!=_0x52bc77['type'])return;const {data:_0x4869ca}=_0x52bc77;return _0x4869ca&&'src'==_0x4869ca['key']?_0x4869ca['newValue']&&_0x4869ca['oldValue']?{'type':'format','content':o(_0x3c99bc,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3d302a=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d302a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3d302a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3d302a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3d302a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x155650=this['editor'],_0x26ee12=_0x155650['locale'];_0x155650['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc5803c=>{if('formatBlock'!=_0xc5803c['type']&&'formatInline'!=_0xc5803c['type'])return;const {data:_0x4df723}=_0xc5803c;if(!_0x4df723||'replaceImageSource'!=_0x4df723['commandName'])return;return{'type':'format','content':o(_0x26ee12,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x142398{['afterInit'](){const _0x295646=this['editor'];if(!_0x295646['plugins']['has']('ImageStyleEditing'))return;const _0x3a7ad1=_0x295646['plugins']['get']('TrackChangesEditing'),_0x5bc0d5=_0x295646['plugins']['get']('ImageUtils'),_0x28116c={};_0x3a7ad1['enableCommand']('imageStyle',(_0xa1cb99,_0x25ab65)=>{const _0x370d78=_0x295646['plugins']['get']('Users')['me'],_0x31a8d6=_0x295646['commands']['get']('imageStyle');let _0x26e09c=_0x5bc0d5['getClosestSelectedImageElement'](_0x295646['model']['document']['selection']),_0x482052=_0x295646['model']['createRangeOn'](_0x26e09c),_0xfeb653=_0x31a8d6['value'];if(_0xfeb653==_0x25ab65['value'])return;const _0xb64b56={'commandName':'imageStyle','commandParams':[_0x25ab65],'formatGroupId':_0x140250()};_0x295646['model']['change'](()=>{if(_0x3a7ad1['getSuggestions']()['filter'](_0x27b871=>_0x27b871['isInContent']&&_0x370d78==_0x27b871['author']&&('formatBlock'==_0x27b871['type']||'formatInline'==_0x27b871['type'])&&('imageStylePreApply'==_0x27b871['subType']||'imageStylePostApply'==_0x27b871['subType'])&&_0x27b871['getFirstRange']()['isEqual'](_0x482052))['forEach'](_0x2ed985=>_0x3a7ad1['discardSuggestion'](_0x2ed985['head'])),_0x26e09c=_0x5bc0d5['getClosestSelectedImageElement'](_0x295646['model']['document']['selection']),_0x482052=_0x295646['model']['createRangeOn'](_0x26e09c),_0x31a8d6['refresh'](),_0x295646['commands']['get']('imageTypeInline')['refresh'](),_0x295646['commands']['get']('imageTypeBlock')['refresh'](),_0xfeb653=_0x31a8d6['value'],_0xfeb653!=_0x25ab65['value'])return _0x5bc0d5['isInlineImage'](_0x26e09c)&&_0x31a8d6['shouldConvertImageType'](_0x25ab65['value'],_0x26e09c)?(_0xa1cb99({..._0x25ab65,'setImageSizes':!0x1}),_0x26e09c=_0x5bc0d5['getClosestSelectedImageElement'](_0x295646['model']['document']['selection']),void _0x3a7ad1['markBlockFormat'](_0x26e09c,{..._0xb64b56,'commandReversedParams':[{'value':_0xfeb653||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5bc0d5['isBlockImage'](_0x26e09c)?_0x3a7ad1['markBlockFormat'](_0x26e09c,_0xb64b56,[],'imageStylePostApply'):_0x3a7ad1['markInlineFormat'](_0x482052,_0xb64b56,'imageStylePostApply'));});});for(const _0x5b370b of _0x295646['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x28116c[_0x5b370b['name']]=_0x5b370b['title']['toLowerCase']();_0x3a7ad1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3a7ad1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3a7ad1['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3a7ad1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4670fd])=>{_0x5bc0d5['setImageNaturalSizeAttributes'](_0x4670fd['getContainedElement']());}),_0x3a7ad1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1d0313,_0x3e8a00)=>{_0x3a7ad1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1d0313,{'commandName':_0x3e8a00['commandName'],'commandParams':_0x3e8a00['commandReversedParams']});}),_0x3a7ad1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x55a647,_0x5a3d56){if(_0x37a2a7(_0x55a647,_0x5a3d56))return[_0x55a647,_0x5a3d56];if(_0x37a2a7(_0x5a3d56,_0x55a647))return[_0x5a3d56,_0x55a647];return null;});const _0x2b42e0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x37a2a7(_0x3ff843,_0xccb436){const _0x4cd87b=_0x2b42e0['findIndex'](({type:_0xbde48c,subType:_0x3c8ecd})=>_0x3ff843['type']==_0xbde48c&&_0x3ff843['subType']==_0x3c8ecd),_0x1898a5=_0x2b42e0['findIndex'](({type:_0x36fdef,subType:_0x1d474e})=>_0xccb436['type']==_0x36fdef&&_0xccb436['subType']==_0x1d474e);if(_0x4cd87b<0x0||_0x1898a5<0x0)return!0x1;const _0x23ff21=_0x3ff843['getFirstRange'](),_0x3f6cf0=_0xccb436['getFirstRange']();if((0x0==_0x4cd87b||0x1==_0x4cd87b)&&0x2==_0x1898a5&&_0x23ff21['isIntersecting'](_0x3f6cf0))return!0x0;if(0x2==_0x4cd87b&&0x3==_0x1898a5){const _0x35e508=_0x3a7ad1['_findSuggestions'](_0x23ff21,'insertion')['filter'](({suggestion:_0x491936,meta:_0x3b623d})=>_0x3b623d['isOwn']&&'convertInlineImageToBlock'==_0x491936['subType']);if(_0x35e508['length']>0x1&&_0x3f6cf0['end']['isEqual'](_0x23ff21['start']))return!0x0;if(0x1==_0x35e508['length']&&(_0x23ff21['start']['isEqual'](_0x3f6cf0['end'])||_0x23ff21['end']['isEqual'](_0x3f6cf0['start'])))return!0x0;}if(0x3==_0x4cd87b&&0x3==_0x1898a5&&_0x23ff21['start']['isBefore'](_0x3f6cf0['start'])){const _0x406e75=_0x23ff21['end']['nodeAfter'],_0x12d17c=_0x3f6cf0['start']['nodeBefore'];return _0x5bc0d5['isBlockImage'](_0x406e75)&&_0x406e75===_0x12d17c;}return!0x1;}_0x295646['model']['document']['registerPostFixer'](()=>{let _0x452465=!0x1;const _0x31b673=Array['from'](_0x295646['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x132fa9,data:_0x3ba2dc}of _0x31b673){const {group:_0x463573,type:_0xbfc77b,subType:_0x2fbe7c,id:_0x3723e3}=_0x3a7ad1['_splitMarkerName'](_0x132fa9);if('suggestion'==_0x463573&&_0x3a7ad1['hasSuggestion'](_0x3723e3)){if('formatBlock'==_0xbfc77b&&('imageStylePreApply'==_0x2fbe7c||'imageStylePostApply'==_0x2fbe7c)){const _0xe94a0=_0x3a7ad1['getSuggestion'](_0x3723e3);if(_0x3ba2dc['newRange']){const _0x29bfd0=_0xe94a0['getFirstRange']()['getContainedElement']();if(_0x5bc0d5['isBlockImage'](_0x29bfd0))continue;_0x3a7ad1['discardSuggestion'](_0xe94a0),_0x452465=!0x0;}}if('insertion'==_0xbfc77b&&'imageCaption'==_0x2fbe7c&&!_0x3ba2dc['newRange']){const _0x23f7d4=_0x3a7ad1['getSuggestion'](_0x3723e3);_0x23f7d4['next']&&_0x23f7d4['next']['isInContent']&&(_0x3a7ad1['discardSuggestion'](_0x23f7d4['next']),_0x452465=!0x0);}}}return _0x452465;}),this['_registerLegacyDescription'](_0x28116c);}['_registerLegacyDescription'](_0x44c3bd){const _0x3376f4=this['editor'],_0xa62147=_0x3376f4['locale'];_0x3376f4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a60a8=>{if('formatBlock'!=_0x5a60a8['type']&&'formatInline'!=_0x5a60a8['type'])return;const {data:_0x3ec93c}=_0x5a60a8;if(!_0x3ec93c||'imageStyle'!=_0x3ec93c['commandName'])return;const _0x3014b7=_0x3ec93c['commandParams'][0x0]['value'];return _0x200853('side'===_0x3014b7?o(_0xa62147,'FORMAT_SIDE_IMAGE'):_0x44c3bd[_0x3014b7]||_0x3014b7);function _0x200853(_0x2d940e){return{'type':'format','content':o(_0xa62147,'*Format:*\x20%0',_0x2d940e)};}});}}class rt extends _0x142398{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1b9a99){super(_0x1b9a99),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x36fdf3=this['editor'],_0x278d67=_0x36fdf3['commands']['get']('importWord'),_0x4e3ad4=_0x36fdf3['commands']['get']('trackChanges');_0x278d67&&(_0x278d67['on']('execute',(_0x597252,[,_0x4e8cef])=>{this['_trackChangesValueDuringImport']=_0x4e3ad4['value'],_0x4e8cef['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x278d67,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x278d67,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4e3ad4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x36fdf3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xb67b13,_0x37fd62){const {suggestions:_0x1f09a6}=_0x37fd62,_0x53bff8=this['editor']['commands']['get']('trackChanges'),_0x158a0d=_0x53bff8['value'];this['_trackChangesValueDuringImport']!==_0x158a0d&&(_0x53bff8['execute'](),this['_trackChangesExecuted']=!0x0),_0x1f09a6&&_0x1f09a6['forEach'](({id:_0x364abc,type:_0x131680,author:_0xf7949a,created_at:_0x59fa41})=>{const _0x3ea708={'id':_0x364abc,'type':_0x131680,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xf7949a,'createdAt':_0x59fa41?new Date(_0x59fa41):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3ea708);});}}class at extends _0x142398{['afterInit'](){const _0x320264=this['editor'],_0x2080ba=_0x320264['plugins']['get']('TrackChangesEditing');if(_0x320264['plugins']['has']('IndentEditing')&&(_0x2080ba['enableCommand']('indent'),_0x2080ba['enableCommand']('outdent')),_0x320264['plugins']['has']('IndentBlock')){for(const _0x3fd332 of['indentBlock','outdentBlock'])_0x2080ba['enableDefaultAttributesIntegration'](_0x3fd332);}const _0x262a79=_0x320264['locale'];_0x2080ba['registerBlockAttribute']('blockIndent'),_0x2080ba['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x262a79,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c1c62=this['editor'],_0x2da4ef=_0x4c1c62['locale'],_0xcc5b25=_0x4c1c62['plugins']['get']('TrackChangesEditing');_0xcc5b25['descriptionFactory']['registerDescriptionCallback'](_0x1e648f=>{if('formatBlock'!=_0x1e648f['type'])return;const {data:_0x514552}=_0x1e648f;if(!_0x514552)return;if('indentBlock'!=_0x514552['commandName']&&'outdentBlock'!=_0x514552['commandName'])return;const _0x42a152=_0x1e648f['getItems']()[0x0],_0x23e90b=_0xcc5b25['descriptionFactory']['getItemLabel'](_0x42a152);return'indentBlock'==_0x514552['commandName']?{'type':'format','content':o(_0x2da4ef,'*Indent:*\x20%0',_0x23e90b)}:'outdentBlock'==_0x514552['commandName']?{'type':'format','content':o(_0x2da4ef,'*Outdent:*\x20%0',_0x23e90b)}:void 0x0;});}}class ct extends _0x142398{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x142398{['afterInit'](){const _0x15a92f=this['editor'];if(!_0x15a92f['plugins']['has']('LinkEditing'))return;const _0xb3f8f=_0x15a92f['plugins']['get']('TrackChangesEditing'),_0x524375=_0x15a92f['commands']['get']('link');_0xb3f8f['enableDefaultAttributesIntegration']('link'),_0xb3f8f['enableDefaultAttributesIntegration']('unlink'),_0xb3f8f['registerInlineAttribute']('linkHref');for(const _0x4a1fa3 of _0x524375['manualDecorators'])_0xb3f8f['registerInlineAttribute'](_0x4a1fa3['id']),_0xb3f8f['descriptionFactory']['registerAttributeLabel'](_0x4a1fa3['id'],'link\x20('+_0x4a1fa3['label']['toLowerCase']()+')');_0xb3f8f['descriptionFactory']['registerDescriptionCallback'](_0x5d6ea4=>{if('attribute'!=_0x5d6ea4['type'])return;const {data:_0x4ac20f}=_0x5d6ea4;if(!_0x4ac20f||'linkHref'!=_0x4ac20f['key'])return;const _0x2a8bd6=_0x4ac20f['newValue'],_0xc92e34=_0x15a92f['locale'];return{'type':'format','content':null==_0x2a8bd6?o(_0xc92e34,'*Remove\x20link*'):o(_0xc92e34,'*Set\x20link:*\x20%0','\x22'+_0x2a8bd6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x471aa2=this['editor'],_0x560171=_0x471aa2['locale'];_0x471aa2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x548072=>{if('formatInline'!=_0x548072['type'])return;const {data:_0x2baf38}=_0x548072;if(_0x2baf38){if('link'==_0x2baf38['commandName']){const _0x1ae34f=_0x2baf38['commandParams'][0x0];return{'type':'format','content':o(_0x560171,'*Set\x20link:*\x20%0','\x22'+_0x1ae34f+'\x22')};}return'unlink'==_0x2baf38['commandName']?{'type':'format','content':o(_0x560171,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x142398{['afterInit'](){const _0x1bab31=this['editor'],_0x3b30b1=_0x1bab31['locale'];if(!_0x1bab31['plugins']['has']('LegacyListEditing'))return;const _0x5c04a9=_0x1bab31['plugins']['get']('TrackChangesEditing'),_0x5a6826=_0x1bab31['plugins']['has']('LegacyTodoListEditing');function _0x117e7f(_0x5a88c1){return()=>{const _0x5c90af=_0x1bab31['model']['document']['selection'],_0x5d3876=_0x1bab31['commands']['get'](_0x5a88c1);if(_0x5d3876['value'])return void _0x1bab31['execute']('paragraph',{});const _0x4a7c9a=_0x5a88c1['slice'](0x0,-0x4),_0x3b2092=function(_0xd47bc7,_0xeb288d,_0x459a13){let _0x341b9f=Array['from'](_0xd47bc7)['filter'](_0x3ffb25=>function(_0x400455,_0x1be31e){return _0x1be31e['checkChild'](_0x400455['parent'],'listItem')&&!_0x1be31e['isObject'](_0x400455);}(_0x3ffb25,_0x459a13));_0x341b9f=_0x341b9f['filter'](_0x46b2ea=>!_0x46b2ea['is']('element','listItem')||_0x46b2ea['getAttribute']('listType')!=_0xeb288d);const _0x49dbf7=new Set();for(const _0x3929bb of _0x341b9f)_0x3929bb['is']('element','listItem')?_0x49dbf7['add'](Le(_0x3929bb)):_0x49dbf7['add'](_0x3929bb);return Array['from'](_0x49dbf7);}(_0x5c90af['getSelectedBlocks'](),_0x4a7c9a,_0x1bab31['model']['schema']);_0x1bab31['model']['change'](()=>{for(const _0x396b9a of _0x3b2092)_0x5c04a9['markBlockFormat'](_0x396b9a,{'commandName':_0x5a88c1,'commandParams':[{'forceValue':!_0x5d3876['value']}],'formatGroupId':'blockName'},Ee(_0x396b9a));});};}function _0x54f01f(_0x4b9480){return()=>{const _0xc6e368=function(_0x29722a){let _0x29f0b8=Array['from'](_0x29722a);const _0x30b4ba=_0x29f0b8['findIndex'](_0x2f9915=>'listItem'!=_0x2f9915['name']);return _0x30b4ba>-0x1&&(_0x29f0b8=_0x29f0b8['slice'](0x0,_0x30b4ba)),_0x29f0b8;}(_0x1bab31['model']['document']['selection']['getSelectedBlocks']()),_0x4af364=_0x1bab31['model']['createRange'](_0x1bab31['model']['createPositionAt'](_0xc6e368[0x0],'before'),_0x1bab31['model']['createPositionAt'](_0xc6e368[_0xc6e368['length']-0x1],'end'));_0x1bab31['model']['change'](()=>{_0x5c04a9['markBlockFormat'](_0x4af364,{'commandName':_0x4b9480,'commandParams':[],'formatGroupId':'listIndent'},function(_0xeb5aba){const _0x2a1b14=new Set();for(const _0x439283 of _0xeb5aba){let _0x3f2b68=_0x439283['nextSibling'];for(;_0x3f2b68&&_0x3f2b68['getAttribute']('listIndent')>_0x439283['getAttribute']('listIndent');)_0x2a1b14['add'](_0x3f2b68),_0x3f2b68=_0x3f2b68['nextSibling'];}return Array['from'](_0x2a1b14);}(_0xc6e368));});};}_0x5c04a9['enableCommand']('numberedList',_0x117e7f('numberedList')),_0x5c04a9['enableCommand']('bulletedList',_0x117e7f('bulletedList')),_0x5a6826&&_0x5c04a9['enableCommand']('todoList',_0x117e7f('todoList')),_0x5c04a9['enableCommand']('indentList',_0x54f01f('indentList')),_0x5c04a9['enableCommand']('outdentList',_0x54f01f('outdentList')),_0x5a6826&&_0x5c04a9['enableCommand']('checkTodoList',()=>{const _0x1b5afd=_0x1bab31['commands']['get']('checkTodoList'),_0x35f79d=Array['from'](_0x1b5afd['_selectedElements']);_0x35f79d['filter'](_0x171b5e=>_0x171b5e['getAttribute']('todoListChecked')!=_0x1b5afd['value']),_0x1bab31['model']['change'](()=>{for(const _0xfb3f7e of _0x35f79d)_0x5c04a9['markBlockFormat'](_0xfb3f7e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1b5afd['value']}]});});}),_0x5c04a9['descriptionFactory']['registerElementLabel']('listItem',_0x56baeb=>o(_0x3b30b1,'ELEMENT_LIST_ITEM',_0x56baeb)),_0x5c04a9['descriptionFactory']['registerDescriptionCallback'](_0x18fc4e=>{if('formatBlock'!=_0x18fc4e['type']&&'formatInline'!=_0x18fc4e['type'])return;const {data:_0x3f0197}=_0x18fc4e;if(_0x3f0197){if('numberedList'==_0x3f0197['commandName']||'bulletedList'==_0x3f0197['commandName']||'todoList'==_0x3f0197['commandName'])switch(_0x3f0197['commandName']['replace']('List','')){case'bulleted':return _0x18c373(o(_0x3b30b1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x18c373(o(_0x3b30b1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x18c373(o(_0x3b30b1,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3f0197['commandName'])return{'type':'format','content':o(_0x3b30b1,'*Indent:*\x20%0',o(_0x3b30b1,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3f0197['commandName'])return{'type':'format','content':o(_0x3b30b1,'*Outdent:*\x20%0',o(_0x3b30b1,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3f0197['commandName'])return _0x3f0197['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b30b1,'*Check\x20item*')}:{'type':'format','content':o(_0x3b30b1,'*Uncheck\x20item*')};}function _0x18c373(_0x30258d){return{'type':'format','content':o(_0x3b30b1,'*Change\x20to:*\x20%0',_0x30258d)};}});}}function Le(_0x3d19e6){const _0x238ca4=_0x3d19e6['getAttribute']('listIndent');if(0x0==_0x238ca4)return _0x3d19e6;let _0x592a35=_0x3d19e6;for(;_0x3d19e6['previousSibling']&&_0x3d19e6['previousSibling']['is']('element','listItem');){const _0x26a59f=_0x3d19e6['previousSibling']['getAttribute']('listIndent');if(_0x26a59f==_0x238ca4)_0x592a35=_0x3d19e6['previousSibling'];else{if(_0x26a59f<_0x238ca4)break;}_0x3d19e6=_0x3d19e6['previousSibling'];}return _0x592a35;}function Ee(_0x214823){const _0x47e43b=[];if(_0x214823['is']('element','listItem')&&_0x214823['getAttribute']('listIndent')>0x0){let _0x11a1c0=_0x214823['nextSibling'];for(;_0x11a1c0&&'listItem'==_0x11a1c0['name']&&_0x11a1c0['getAttribute']('listIndent')==_0x214823['getAttribute']('listIndent');)_0x47e43b['push'](_0x11a1c0),_0x11a1c0=_0x11a1c0['nextSibling'];}return _0x47e43b;}class ht extends _0x142398{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3158e7=this['editor']['config']['get']('list.properties'),_0x299797=this['editor']['plugins']['get']('TrackChangesEditing');_0x3158e7['styles']&&_0x299797['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3158e7['reversed']&&_0x299797['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3158e7['startIndex']&&_0x299797['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x299797['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x43fc43,_0x213bd2={}){const _0x2bc393=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c8c19=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2bc393['markMultiRangeBlockFormat'](_0x5c8c19,{'commandName':'listStyle','commandParams':[{'type':_0x213bd2['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x173c1e,_0x286973={}){const _0x5a0727=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17abe6=this['_getSuggestionBlocks'](_0x3c5d36=>_0x3c5d36['is']('element','listItem')&&'numbered'===_0x3c5d36['getAttribute']('listType'));if(_0x17abe6['length']<0x1)return;const _0x5a300a=_0x17abe6['map'](_0x274740=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x274740,'before'),this['editor']['model']['createPositionAt'](_0x274740,0x0)));this['editor']['model']['change'](()=>{_0x5a0727['markMultiRangeBlockFormat'](_0x5a300a,{'commandName':'listReversed','commandParams':[{'reversed':_0x286973['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x234275,_0x23cd70={}){const _0x2759c5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d2e77=this['_getSuggestionBlocks'](_0x232c32=>_0x232c32['is']('element','listItem')&&'numbered'===_0x232c32['getAttribute']('listType'));if(_0x3d2e77['length']<0x1)return;const _0x125e07=_0x3d2e77['map'](_0x367c2c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x367c2c,'before'),this['editor']['model']['createPositionAt'](_0x367c2c,0x0)));this['editor']['model']['change'](()=>{_0x2759c5['markMultiRangeBlockFormat'](_0x125e07,{'commandName':'listStart','commandParams':[{'startIndex':_0x23cd70['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x535c63){if('formatBlock'!=_0x535c63['type']&&'formatInline'!=_0x535c63['type'])return;const _0x4780b5=this['editor']['locale'],{data:_0x1a0c99}=_0x535c63;if(!_0x1a0c99)return;let _0x230d21,_0x1dd1b0;switch(_0x1a0c99['commandName']){case'listStyle':_0x230d21='*Change\x20to:*\x20%0',_0x1dd1b0={'type':'format','content':o(_0x4780b5,_0x230d21,o(_0x4780b5,this['_getTranslationKeyForListStyle'](_0x1a0c99['commandParams'][0x0]['type'])))};break;case'listReversed':_0x230d21=_0x1a0c99['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1dd1b0={'type':'format','content':o(_0x4780b5,_0x230d21)};break;case'listStart':_0x230d21='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1dd1b0={'type':'format','content':o(_0x4780b5,_0x230d21,_0x1a0c99['commandParams'][0x0]['startIndex'])};}return _0x1dd1b0;}['_getSuggestionBlocksForListStyle'](){const _0x58106e=this['editor']['plugins']['get']('LegacyListUtils');let _0x2995ed=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2995ed[0x0]?.['is']('element','listItem')&&_0x2995ed['unshift'](..._0x58106e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2995ed[_0x2995ed['length']-0x1]?.['is']('element','listItem')&&_0x2995ed['push'](..._0x58106e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2995ed=[...new Set(_0x2995ed)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2995ed=_0x2995ed['filter'](_0x58178d=>_0x58178d['is']('element','listItem'))),_0x2995ed;}['_getSuggestionBlocks'](_0x5fb352){const _0x150508=this['editor']['plugins']['get']('LegacyListUtils');let _0x52c6e4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5fb352)['map'](_0x39ee70=>{const _0x4025ff=this['editor']['model']['createPositionAt'](_0x39ee70,0x0);return[..._0x150508['getSiblingNodes'](_0x4025ff,'backward'),..._0x150508['getSiblingNodes'](_0x4025ff,'forward')];})['flat']();return _0x52c6e4=[...new Set(_0x52c6e4)],_0x52c6e4;}['_getTranslationKeyForListStyle'](_0x207c86){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x207c86)||'default')['toUpperCase']()+'_LIST_'+_0x207c86['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x142398{['afterInit'](){const _0x39f08c=this['editor'];if(!_0x39f08c['plugins']['has']('MediaEmbedEditing'))return;const _0xe91a12=_0x39f08c['plugins']['get']('TrackChangesEditing'),_0x126833=_0x39f08c['locale'];_0xe91a12['enableCommand']('mediaEmbed'),_0xe91a12['descriptionFactory']['registerElementLabel']('media',_0x241aec=>o(_0x126833,'ELEMENT_MEDIA',_0x241aec)),_0x39f08c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4f6ca1,{writer:_0x27ab30,options:_0x5ce030})=>{if(_0x5ce030['showSuggestionHighlights'])return _0x27ab30['createEmptyElement']('div');},'converterPriority':'high'}),_0x39f08c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x57a3e1,_0x39d285,_0xa65e09)=>{_0xa65e09['options']['showSuggestionHighlights']&&_0x57a3e1['stop']();},{'priority':'high'});}}class lt extends _0x142398{['afterInit'](){const _0x2956df=this['editor'];_0x2956df['plugins']['has']('MentionEditing')&&_0x2956df['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x142398{['afterInit'](){const _0x13ebbb=this['editor'];if(!_0x13ebbb['plugins']['has']('MergeFieldsEditing'))return;const _0x970ef5=_0x13ebbb['plugins']['get']('TrackChangesEditing'),_0x132854=_0x13ebbb['locale'];_0x970ef5['enableCommand']('insertMergeField'),_0x970ef5['enableCommand']('insertMergeFieldBlock'),_0x970ef5['enableCommand']('insertMergeFieldImage'),_0x970ef5['descriptionFactory']['registerElementLabel']('mergeField',_0x4619e9=>o(_0x132854,'ELEMENT_MERGE_FIELD',_0x4619e9)),_0x970ef5['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x517840=>o(_0x132854,'ELEMENT_MERGE_FIELD',_0x517840)),_0x970ef5['descriptionFactory']['registerDescriptionCallback'](_0x245dad=>{if('insertion'!=_0x245dad['type']&&'deletion'!=_0x245dad['type'])return;const _0x1fc180=_0x245dad['getContainedElement']();if(null==_0x1fc180)return;const _0x47733e=_0x13ebbb['plugins']['get']('MergeFieldsEditing');let _0x4ed134;switch(_0x47733e['getMergeFieldType'](_0x1fc180)){case null:return;case'image':{const _0x4ed586=_0x47733e['unwrapAffixes'](_0x1fc180['getAttribute']('src'));_0x4ed134=_0x47733e['getLabel'](_0x4ed586)||_0x4ed586;break;}default:{const _0x13f30a=_0x1fc180['getAttribute']('id');_0x4ed134=_0x47733e['getLabel'](_0x13f30a)||_0x13f30a;break;}}return'insertion'==_0x245dad['type']?{'type':'insertion','content':o(_0x132854,'*Insert:*\x20%0','\x22'+_0x4ed134+'\x22\x20'+o(_0x132854,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x132854,'*Remove:*\x20%0','\x22'+_0x4ed134+'\x22\x20'+o(_0x132854,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x142398{['afterInit'](){const _0x50d700=this['editor'],_0x3499c1=_0x50d700['plugins']['get']('TrackChangesEditing');_0x50d700['plugins']['has']('MultiLevelList')&&(_0x3499c1['enableDefaultAttributesIntegration']('multiLevelList'),_0x3499c1['registerBlockAttribute']('listMarkerStyle'),_0x3499c1['descriptionFactory']['registerDescriptionCallback'](_0x4e7713=>this['handleDescriptions'](_0x4e7713)));}['handleDescriptions'](_0x49c40a){const _0x15fc99=this['editor']['locale'],{data:_0x39458d}=_0x49c40a,_0x3e6c95={'type':'format','content':''};if(_0x39458d&&'listMarkerStyle'==_0x39458d['key']){if(!_0x39458d['oldValue'])return{'type':'format','content':o(_0x15fc99,'*Set\x20format:*\x20%0',o(_0x15fc99,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x39458d['newValue']+')'};if(!_0x39458d['newValue']){let _0x2b5771=_0x49c40a['head'];for(;_0x2b5771;){if(_0x2b5771['data']&&'listType'==_0x2b5771['data']['key']&&_0x2b5771['data']['newValue'])return _0x3e6c95;_0x2b5771=_0x2b5771['next'];}return{'type':'format','content':o(_0x15fc99,'*Remove\x20format:*\x20%0',o(_0x15fc99,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x39458d['oldValue']+')'};}}}}class pt extends _0x142398{['afterInit'](){const _0x5dd93e=this['editor'];if(!_0x5dd93e['plugins']['has']('PageBreakEditing'))return;_0x5dd93e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3293ae=_0x5dd93e['plugins']['get']('TrackChangesEditing'),_0x527749=_0x5dd93e['locale'];_0x3293ae['descriptionFactory']['registerElementLabel']('pageBreak',_0x27a6ec=>o(_0x527749,'ELEMENT_PAGE_BREAK',_0x27a6ec));}}class kt extends _0x142398{['afterInit'](){const _0x3fda72=this['editor'];if(!_0x3fda72['plugins']['has']('Paragraph'))return;const _0x1e5fc8=_0x3fda72['locale'],_0x37fde2=_0x3fda72['plugins']['get']('TrackChangesEditing');_0x37fde2['descriptionFactory']['registerElementLabel']('paragraph',_0x5e5704=>o(_0x1e5fc8,'ELEMENT_PARAGRAPH',_0x5e5704)),_0x37fde2['enableDefaultAttributesIntegration']('paragraph'),_0x37fde2['enableCommand']('insertParagraph'),_0x3fda72['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3fda72),{'priority':'highest'}),_0x3fda72['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x12096c,_0x1a8e84,_0x5ea040)=>{_0x5ea040['options']['showSuggestionHighlights']&&nr(_0x3fda72,{'showActiveMarker':!0x1})(_0x12096c,_0x1a8e84,_0x5ea040);},{'priority':'highest'});const _0x4b2bd3=_0x37fde2['descriptionFactory'];_0x4b2bd3['registerDescriptionCallback'](_0x3e0c3c=>{if('insertion'!==_0x3e0c3c['type'])return;const {start:_0x16a1a8,end:_0x222f43}=_0x3e0c3c['getFirstRange']();if(!_0x16a1a8['isTouching'](_0x222f43)||!_0x16a1a8['nodeAfter'])return;const _0x3d70b6=_0x3fda72['model']['schema'],_0x398689=_0x16a1a8['nodeAfter'];return _0x3d70b6['isBlock'](_0x398689)&&!_0x3d70b6['isLimit'](_0x398689)&&_0x3d70b6['checkChild'](_0x398689,'$text')?{'type':'insertion','content':o(_0x1e5fc8,'*Insert:*\x20%0',_0x4b2bd3['getItemLabel'](_0x398689,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30b48b=this['editor'],_0x27706a=_0x30b48b['locale'];_0x30b48b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d9077=>{if('formatBlock'!=_0x1d9077['type'])return;const {data:_0x18fe3b}=_0x1d9077;return _0x18fe3b&&'paragraph'==_0x18fe3b['commandName']?{'type':'format','content':o(_0x27706a,'*Change\x20to:*\x20%0',o(_0x27706a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xb45b80,{showActiveMarker:_0x192a3b=!0x0}={}){return(_0x23aff0,_0xf22f0,_0x3a9a6b)=>{const _0x1cedd0=_0xb45b80['plugins']['get']('TrackChangesEditing'),_0x23f6e4=_0xf22f0['markerRange']['start'],_0x56d78b=_0xf22f0['markerRange']['end'],_0x2c4e5=_0xb45b80['model']['schema'];if(!_0x23f6e4['isTouching'](_0x56d78b)||!_0x23f6e4['nodeAfter'])return;const _0x25c298=_0x23f6e4['nodeAfter'];if(_0x2c4e5['isBlock'](_0x25c298)&&!_0x2c4e5['isLimit'](_0x25c298)&&_0x2c4e5['checkChild'](_0x25c298,'$text')){if(!_0x3a9a6b['consumable']['consume'](_0xf22f0['markerRange'],_0x23aff0['name']))return;const {id:_0x1d031f,authorId:_0x2244c4}=_0x1cedd0['_splitMarkerName'](_0xf22f0['markerName']),_0x3b690c=_0x3a9a6b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x1d031f,'data-author-id':_0x2244c4}),_0x349f4f=_0x3a9a6b['mapper']['toViewPosition'](_0x56d78b);_0x192a3b&&_0x1cedd0['activeMarkers']['includes'](_0xf22f0['markerName'])&&_0x3a9a6b['writer']['addClass']('ck-suggestion-marker--active',_0x3b690c),_0x3a9a6b['writer']['insert'](_0x349f4f,_0x3b690c),_0x3a9a6b['mapper']['bindElementToMarker'](_0x3b690c,_0xf22f0['markerName']);}};}class wt extends _0x142398{['afterInit'](){const _0x240f6d=this['editor'];_0x240f6d['commands']['get']('replaceSource')&&_0x240f6d['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x142398{['afterInit'](){const _0x13b179=this['editor'];if(!_0x13b179['plugins']['has']('RemoveFormatEditing'))return;_0x13b179['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13aa88=this['editor'];_0x13aa88['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28bfec=>{if('formatBlock'!=_0x28bfec['type']&&'formatInline'!=_0x28bfec['type'])return;const {data:_0x2f112c}=_0x28bfec;return _0x2f112c&&'removeFormat'==_0x2f112c['commandName']?{'type':'format','content':o(_0x13aa88['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x142398{['afterInit'](){const _0x42d687=this['editor'];if(!_0x42d687['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2c4629=_0x42d687['plugins']['get']('TrackChangesEditing');_0x2c4629['enableCommand']('goToPreviousRestrictedEditingException'),_0x2c4629['enableCommand']('goToNextRestrictedEditingException');const _0x1e6746=_0x42d687['plugins']['get']('RestrictedEditingModeEditing');_0x1e6746['enableCommand']('trackChanges'),_0x1e6746['enableCommand']('acceptSuggestion'),_0x1e6746['enableCommand']('discardSuggestion'),_0x1e6746['enableCommand']('acceptAllSuggestions'),_0x1e6746['enableCommand']('discardAllSuggestions'),_0x1e6746['enableCommand']('acceptSelectedSuggestions'),_0x1e6746['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x142398{['afterInit'](){const _0x292232=this['editor'];if(!_0x292232['plugins']['has']('ShiftEnter'))return;const _0x11d018=_0x292232['plugins']['get']('TrackChangesEditing');_0x11d018['enableCommand']('shiftEnter'),_0x292232['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x292232),{'priority':'high'}),_0x292232['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x292232),{'priority':'high'}),_0x292232['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x11e4b1,_0x5a13f3,_0x5d3a82)=>{_0x5d3a82['options']['showSuggestionHighlights']&&je(_0x292232,{'showActiveMarker':!0x1})(_0x11e4b1,_0x5a13f3,_0x5d3a82);}),_0x11d018['descriptionFactory']['registerElementLabel']('softBreak',_0x56b1b4=>o(_0x292232['locale'],'ELEMENT_LINE_BREAK',_0x56b1b4));}}function je(_0x22724b,{showActiveMarker:_0x7e366a=!0x0}={}){return(_0x2b17b3,_0x57c19f,_0x4f8616)=>{const _0x1ea1a1=_0x22724b['plugins']['get']('TrackChangesEditing');if(!_0x4f8616['consumable']['test'](_0x57c19f['markerRange'],_0x2b17b3['name']))return;const _0x2e2687=_0x22724b['model'];for(const _0x4cb4fa of _0x57c19f['markerRange']['getItems']()){if(!_0x4cb4fa['is']('element','softBreak'))continue;const _0x12e115='deletion'==_0x57c19f['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x3bfdfe,authorId:_0x5c205d}=_0x1ea1a1['_splitMarkerName'](_0x57c19f['markerName']),_0x319572=_0x4f8616['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x12e115,'data-suggestion':_0x3bfdfe,'data-author-id':_0x5c205d}),_0x121a8e=_0x4f8616['mapper']['toViewPosition'](_0x2e2687['createPositionBefore'](_0x4cb4fa));_0x7e366a&&_0x1ea1a1['activeMarkers']['includes'](_0x57c19f['markerName'])&&_0x4f8616['writer']['addClass']('ck-suggestion-marker--active',_0x319572),_0x4f8616['writer']['insert'](_0x121a8e,_0x319572),_0x4f8616['mapper']['bindElementToMarker'](_0x319572,_0x57c19f['markerName']);}};}class St extends _0x142398{['afterInit'](){const _0x2e5e9f=this['editor'],_0x5018ae=_0x2e5e9f['model'],_0x1d8714=_0x2e5e9f['locale'];if(!_0x2e5e9f['plugins']['has']('StandardEditingModeEditing'))return;const _0x8fd224=_0x2e5e9f['plugins']['get']('TrackChangesEditing'),_0x5aa05b='restrictedEditingException',_0x1885eb=_0x2e5e9f['commands']['get'](_0x5aa05b);_0x8fd224['enableCommand'](_0x5aa05b,(_0x3e6ec7,_0x548b6c={})=>{const _0x273bce=_0x5018ae['document']['selection'];if(_0x273bce['isCollapsed'])return void _0x3e6ec7(_0x548b6c);const _0x5da543=void 0x0!==_0x548b6c['forceValue']?_0x548b6c['forceValue']:!_0x1885eb['value'];_0x5018ae['change'](()=>{const _0x28d635=Array['from'](_0x273bce['getRanges']());for(const _0x974aab of _0x28d635){const _0x44ee9b=_0x5da543?[_0x974aab]:io(_0x5aa05b,_0x974aab,_0x5018ae);for(const _0x356c86 of _0x44ee9b)_0x8fd224['markInlineFormat'](_0x356c86,{'commandName':_0x5aa05b,'commandParams':[{'forceValue':_0x5da543}]});}});}),_0x8fd224['descriptionFactory']['registerDescriptionCallback'](_0xcfd656=>{if('formatBlock'!=_0xcfd656['type']&&'formatInline'!=_0xcfd656['type'])return;const {data:_0x15c978}=_0xcfd656;return _0x15c978&&_0x15c978['commandName']==_0x5aa05b?_0x15c978['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1d8714,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1d8714,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x142398{['afterInit'](){const _0x12a819=this['editor'];if(!_0x12a819['plugins']['has']('Style')||!_0x12a819['plugins']['has']('DataSchema'))return;const _0x538316=_0x12a819['plugins']['get']('TrackChangesEditing'),_0x11c3e7=_0x12a819['locale'],_0x48ba3e=_0x12a819['config']['get']('style')||{},_0x24a952=_0x12a819['plugins']['get']('GeneralHtmlSupport'),_0x5afae4=_0x12a819['plugins']['get']('StyleUtils')['normalizeConfig'](_0x12a819['plugins']['get']('DataSchema'),_0x48ba3e['definitions']);_0x538316['enableDefaultAttributesIntegration']('style');const _0x5e7afd=new Set();for(const _0x16629e of _0x5afae4['block']){const _0x50f1c3=_0x24a952['getGhsAttributeNameForElement'](_0x16629e['element']);_0x5e7afd['add'](_0x50f1c3);}const _0x49a7e7=new Set();for(const _0x77c3e8 of _0x5afae4['inline']){const _0x21a3b8=_0x24a952['getGhsAttributeNameForElement'](_0x77c3e8['element']);_0x49a7e7['add'](_0x21a3b8);for(const _0x3678a3 of _0x77c3e8['ghsAttributes'])_0x49a7e7['add'](_0x3678a3);}for(const _0x119665 of _0x5e7afd)_0x538316['registerBlockAttribute'](_0x119665),_0x538316['descriptionFactory']['registerAttributeLabel'](_0x119665,o(_0x11c3e7,'FORMAT_STYLE'));for(const _0x1a0bc5 of _0x49a7e7)_0x538316['registerInlineAttribute'](_0x1a0bc5),_0x538316['descriptionFactory']['registerAttributeLabel'](_0x1a0bc5,o(_0x11c3e7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5699d0=this['editor'],_0x6900f8=_0x5699d0['locale'];_0x5699d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52cb2e=>{if('formatBlock'!=_0x52cb2e['type']&&'formatInline'!=_0x52cb2e['type'])return;const {data:_0x203e66}=_0x52cb2e;return _0x203e66&&'style'===_0x203e66['commandName']?_0x203e66['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x6900f8,'*Set\x20format:*\x20%0',_0x203e66['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x6900f8,'*Remove\x20format:*\x20%0',_0x203e66['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x142398{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3cb353){super(_0x3cb353),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xa56de6=this['editor'],_0x336e36=_0xa56de6['model']['document']['selection'];if(!_0xa56de6['plugins']['has']('TableEditing'))return;const _0x237a10=_0xa56de6['locale'],_0x20ed08=_0xa56de6['plugins']['get']('TrackChangesEditing'),_0x10e1f4=_0xa56de6['plugins']['get']('TableUtils');_0x20ed08['descriptionFactory']['registerElementLabel']('table',_0x181892=>o(_0x237a10,'ELEMENT_TABLE',_0x181892)),this['_setupColumnsRowsFixing'](),_0x20ed08['enableCommand']('insertTable'),_0x20ed08['enableCommand']('selectTableRow'),_0x20ed08['enableCommand']('selectTableColumn');for(const _0x4256df of['insertTableRowAbove','insertTableRowBelow']){const _0x2fdc62=_0xa56de6['commands']['get'](_0x4256df);_0x20ed08['enableCommand'](_0x4256df,_0x4dd89a=>{_0xa56de6['model']['change'](_0xa8e77b=>{_0x4dd89a();const _0x3393c9='above'===_0x2fdc62['order'],_0x4761ab=_0x10e1f4['getSelectionAffectedTableCells'](_0x336e36),_0x12612d=_0x10e1f4['getRowIndexes'](_0x4761ab),_0x429c1b=_0x3393c9?_0x12612d['first']-0x1:_0x12612d['last']+0x1,_0x5d6820=_0x4761ab[0x0]['findAncestor']('table'),_0x4a00ee=_0x10e1f4['createTableWalker'](_0x5d6820,{'startRow':_0x429c1b,'endRow':_0x429c1b}),_0x35a0fb=Array['from'](_0x4a00ee)['map'](_0x4103cb=>_0xa8e77b['createRangeOn'](_0x4103cb['cell']));_0x20ed08['markMultiRangeInsertion'](_0x35a0fb,'tableRow');});});}for(const _0x23fe83 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4400f7=_0xa56de6['commands']['get'](_0x23fe83);_0x20ed08['enableCommand'](_0x23fe83,_0x490829=>{_0xa56de6['model']['change'](_0x1959aa=>{_0x490829();const _0x4fa42e='left'===_0x4400f7['order'],_0x4d0db7=_0x10e1f4['getSelectionAffectedTableCells'](_0x336e36),_0x5b1fe0=_0x10e1f4['getColumnIndexes'](_0x4d0db7),_0x4f0495=_0x4fa42e?_0x5b1fe0['first']-0x1:_0x5b1fe0['last']+0x1,_0x315020=_0x4d0db7[0x0]['findAncestor']('table'),_0xbe01e0=_0x10e1f4['createTableWalker'](_0x315020,{'startRow':0x0,'column':_0x4f0495,'includeAllSlots':!0x1}),_0x13591a=Array['from'](_0xbe01e0)['map'](_0x275938=>_0x1959aa['createRangeOn'](_0x275938['cell']));_0x20ed08['markMultiRangeInsertion'](_0x13591a,'tableColumn');});});}for(const _0xbe59c of['removeTableRow','removeTableColumn']){const _0x2777af=_0xbe59c['substr'](0xb),_0x2dc325=_0x2777af['toLowerCase'](),_0x48dd0b=_0x2dc325['substr'](0x0,0x3)+'span',_0x4a42f8='table'+_0x2777af,_0x24178b='min'+_0x2777af,_0x274814='max'+_0x2777af;_0x20ed08['enableCommand'](_0xbe59c,()=>{_0xa56de6['model']['change'](_0x150b03=>{const _0x543eae=_0x10e1f4['getSelectionAffectedTableCells'](_0x336e36),_0x2a6e5a=_0x543eae[0x0]['findAncestor']('table');let _0x9bdc1f;if('removeTableRow'==_0xbe59c){const _0x50552e=_0x10e1f4['getRowIndexes'](_0x543eae);_0x9bdc1f={'startRow':_0x50552e['first'],'endRow':_0x50552e['last'],'includeAllSlots':!0x0};}else{const _0xdd46=_0x10e1f4['getColumnIndexes'](_0x543eae);_0x9bdc1f={'startColumn':_0xdd46['first'],'endColumn':_0xdd46['last'],'includeAllSlots':!0x0};}const _0x3db1d=_0x10e1f4['createTableWalker'](_0x2a6e5a,_0x9bdc1f),_0x365419=Array['from'](_0x3db1d)['map'](({cell:_0x152599})=>_0x152599),_0x230013=Ne(_0x365419['filter'](_0xe1f656=>_0xe1f656['hasAttribute'](_0x48dd0b))),_0x39093a=Ne(_0x365419['filter'](_0x1a5cf0=>!_0x1a5cf0['hasAttribute'](_0x48dd0b)))['map'](_0x1db9da=>_0x150b03['createRangeOn'](_0x1db9da)),_0x26674b=_0x20ed08['markMultiRangeDeletion'](_0x39093a,_0x4a42f8);if(_0x26674b&&('tableRow'==_0x26674b['subType']||'tableColumn'==_0x26674b['subType'])){const _0x2398dc=this['_getSuggestionCoords'](_0x26674b);for(const _0x3d8573 of _0x230013){const _0x366f86=_0x150b03['createRangeOn'](_0x3d8573),_0x42e761=_0x10e1f4['getCellLocation'](_0x3d8573),_0x21cc70=_0x3d8573['getAttribute'](_0x48dd0b)-0x1,_0x529c45=_0x2398dc[_0x24178b],_0x9d4bcd=_0x2398dc[_0x274814];_0x529c45<=_0x42e761[_0x2dc325]&&_0x42e761[_0x2dc325]+_0x21cc70<=_0x9d4bcd&&_0x26674b['addRange'](_0x366f86);}}});});}function _0x1c0ce6(_0x4096f9){const _0x387bc4=Array['from'](_0x336e36['getRanges']())['map'](_0x31388a=>_0x3590e7['fromRange'](_0x31388a));_0xa56de6['model']['change'](_0xe51bcf=>{const _0x2bf52c=_0xe51bcf['batch'];_0x4096f9=_0x4096f9['filter'](_0x45a17b=>'$graveyard'!=_0x45a17b['root']['rootName']),_0xe51bcf['setSelection'](_0x4096f9),_0xa56de6['commands']['get']('removeTableRow')['refresh'](),_0xa56de6['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xa56de6['model']['enqueueChange'](()=>{_0xa56de6['model']['enqueueChange'](_0x2bf52c,_0x5bcbb2=>{const _0xdcbd38=_0x387bc4['filter'](_0x5b0ff5=>'$graveyard'!=_0x5b0ff5['root']['rootName']);_0xdcbd38['length']>0x0&&_0x5bcbb2['setSelection'](_0xdcbd38);for(const _0xcda424 of _0x387bc4)_0xcda424['detach']();});});});}function _0x1a50df(_0x1dbe61){_0xa56de6['model']['change'](_0x5c2489=>{const _0x48da91=Array['from'](_0x336e36['getRanges']())['map'](_0x5207ef=>_0x3590e7['fromRange'](_0x5207ef)),_0x33577b=[];for(const _0x6b3c0 of _0x1dbe61)for(const _0x52e469 of _0x6b3c0['getItems']({'shallow':!0x0}))_0x33577b['push'](_0x52e469);for(const _0x28b967 of _0x33577b)'$graveyard'!=_0x28b967['root']['rootName']&&(_0x5c2489['setSelection'](_0x5c2489['createPositionAt'](_0x28b967,0x0)),_0xa56de6['commands']['get']('removeTableColumn')['refresh'](),_0xa56de6['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x45a74b=_0x48da91['filter'](_0xbb5de0=>'$graveyard'!=_0xbb5de0['root']['rootName']);_0x45a74b['length']>0x0&&_0x5c2489['setSelection'](_0x45a74b);for(const _0x11f5c4 of _0x48da91)_0x11f5c4['detach']();});}function _0x2b2a26(_0x3bd269,_0x94ce89){return _0x94ce89['every'](_0x3781b6=>_0x3bd269['some'](_0x125677=>_0x125677['end']['isEqual'](_0x3781b6['start'])||_0x3781b6['end']['isEqual'](_0x125677['start'])));}function _0x163c8a(_0x155bf5,_0x1fec82){return!_0x155bf5['some'](_0x3092fe=>_0x1fec82['some'](_0x49dfad=>_0x3092fe['isIntersecting'](_0x49dfad)))&&_0x155bf5['some'](_0x49fa63=>_0x1fec82['some'](_0x4f11ab=>_0x49fa63['end']['isTouching'](_0x4f11ab['start'])));}_0xa56de6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1695e0,_0x423e16,_0x4905fd)=>{if(!_0x4905fd['options']['showSuggestionHighlights'])return;const _0x5aa8ae=_0x423e16['item'];if(!_0x5aa8ae||!_0x5aa8ae['is']('element','tableCell'))return;const _0xa3e1ec=_0x4905fd['mapper']['toViewElement'](_0x5aa8ae);if(_0xa3e1ec){const {id:_0xe4dae2,authorId:_0x5f58b0}=_0x20ed08['_splitMarkerName'](_0x423e16['markerName']);_0x34ad7c(_0xa3e1ec,_0x4905fd['writer'],(_0x4be017,_0x424c53,_0x490e43)=>{_0x490e43['addClass'](_0x337b53(_0x424c53['classes']),_0x4be017),_0x490e43['setAttribute']('data-suggestion-id',_0xe4dae2,_0x4be017),_0x490e43['setAttribute']('data-author-id',_0x5f58b0,_0x4be017);},(_0x43e31c,_0x340937,_0x2d5033)=>{_0x2d5033['removeClass'](_0x337b53(_0x340937['classes']),_0x43e31c),_0x2d5033['removeAttribute']('data-suggestion-id',_0x43e31c),_0x2d5033['removeAttribute']('data-author-id',_0x43e31c);});}},{'priority':'highest'}),_0x20ed08['descriptionFactory']['registerDescriptionCallback'](_0x41feac=>{if('insertion'!=_0x41feac['type']&&'deletion'!=_0x41feac['type'])return;const _0x2bd882=_0x41feac['getContainedElement']();if(null!=_0x2bd882&&_0x2bd882['is']('element','table')){if('insertion'==_0x41feac['type']){const _0x2b1468=_0x41feac['getItems']()['filter'](_0x42f4a5=>_0x42f4a5['is']('$textProxy'))['map'](_0x295a50=>_0x295a50['data']);if(_0x2b1468['length'])return{'type':'insertion','content':o(_0x237a10,'*Insert:*\x20%0',o(_0x237a10,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2b1468['join']('\x20')+'\x22'))};}if('deletion'==_0x41feac['type']){const _0x4fdccb=_0x41feac['getItems']()['filter'](_0x598c31=>_0x598c31['is']('$textProxy'))['map'](_0x1864fb=>_0x1864fb['data']);if(_0x4fdccb['length'])return{'type':'deletion','content':o(_0x237a10,'*Remove:*\x20%0',o(_0x237a10,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4fdccb['join']('\x20')+'\x22'))};}}}),_0x20ed08['descriptionFactory']['registerDescriptionCallback'](_0x45db81=>{if('tableRow'==_0x45db81['subType']){const _0x19add8=_0x45db81['getItems']()['filter'](_0x491fbf=>_0x491fbf['is']('$textProxy'))['map'](_0x44c545=>_0x44c545['data']),_0x3b1342=this['_getSuggestionCoords'](_0x45db81),_0x58c7c5=_0x3b1342['maxRow']-_0x3b1342['minRow']+0x1;if('insertion'==_0x45db81['type'])return _0x19add8['length']?{'type':'insertion','content':o(_0x237a10,'*Insert:*\x20%0',o(_0x237a10,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x58c7c5,'\x22'+_0x19add8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x237a10,'*Insert:*\x20%0',o(_0x237a10,'ELEMENT_TABLE_ROW',_0x58c7c5))};if('deletion'==_0x45db81['type'])return _0x19add8['length']?{'type':'deletion','content':o(_0x237a10,'*Remove:*\x20%0',o(_0x237a10,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x58c7c5,'\x22'+_0x19add8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x237a10,'*Remove:*\x20%0',o(_0x237a10,'ELEMENT_TABLE_ROW',_0x58c7c5))};}if('tableColumn'==_0x45db81['subType']){const _0xe90c=_0x45db81['getItems']()['filter'](_0x10e684=>_0x10e684['is']('$textProxy'))['map'](_0x2c8fea=>_0x2c8fea['data']),_0x4b65ff=this['_getSuggestionCoords'](_0x45db81),_0x4cafd1=_0x4b65ff['maxColumn']-_0x4b65ff['minColumn']+0x1;if('insertion'==_0x45db81['type'])return _0xe90c['length']?{'type':'insertion','content':o(_0x237a10,'*Insert:*\x20%0',o(_0x237a10,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4cafd1,'\x22'+_0xe90c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x237a10,'*Insert:*\x20%0',o(_0x237a10,'ELEMENT_TABLE_COLUMN',_0x4cafd1))};if('deletion'==_0x45db81['type'])return _0xe90c['length']?{'type':'deletion','content':o(_0x237a10,'*Remove:*\x20%0',o(_0x237a10,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4cafd1,'\x22'+_0xe90c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x237a10,'*Remove:*\x20%0',o(_0x237a10,'ELEMENT_TABLE_COLUMN',_0x4cafd1))};}}),_0x20ed08['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1c0ce6),_0x20ed08['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1c0ce6),_0x20ed08['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1a50df),_0x20ed08['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1a50df),_0x20ed08['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2b2a26),_0x20ed08['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2b2a26),_0x20ed08['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x163c8a),_0x20ed08['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x163c8a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x9c7862=this['editor'],_0x15f05a=_0x9c7862['model']['document']['selection'];return(_0x55ea9c,_0x12db17)=>{_0x9c7862['model']['change'](_0x159be0=>{const {commandName:_0x153e74,commandParams:_0x5f363c}=_0x12db17;let _0x26a278=_0x55ea9c[0x0]['end']['nodeBefore'];_0x5f363c&&_0x5f363c[0x0]&&!0x1===_0x5f363c[0x0]['forceValue']&&(_0x26a278=_0x55ea9c[0x0]['start']['nodeAfter']);const _0x5707b4=_0x159be0['createRangeIn'](_0x26a278);if('$graveyard'==_0x5707b4['root']['rootName'])return;const _0x310015=Array['from'](_0x15f05a['getRanges']())['map'](_0x23ca2c=>_0x3590e7['fromRange'](_0x23ca2c));_0x159be0['setSelection'](_0x5707b4),_0x9c7862['commands']['get'](_0x153e74)['refresh'](),_0x5f363c['push']({'forceDefaultExecution':!0x0}),_0x9c7862['execute'](_0x153e74,..._0x5f363c);const _0x226ad5=_0x310015['filter'](_0x272ada=>'$graveyard'!=_0x272ada['root']['rootName']);_0x226ad5['length']>0x0&&_0x159be0['setSelection'](_0x226ad5);for(const _0x382076 of _0x310015)_0x382076['detach']();});};}['_getCoordsForCells'](_0x1df0f1){const _0x2bfd22=this['editor']['plugins']['get']('TableUtils');let _0x75cc7d=Number['MAX_SAFE_INTEGER'],_0x592c34=Number['MIN_SAFE_INTEGER'],_0x37f10b=Number['MAX_SAFE_INTEGER'],_0x5ba4b8=Number['MIN_SAFE_INTEGER'];for(const _0x48e09c of _0x1df0f1){if('$graveyard'==_0x48e09c['root']['rootName'])continue;const {row:_0x32e6de,column:_0x2db148}=_0x2bfd22['getCellLocation'](_0x48e09c),_0x4866fd=_0x48e09c['hasAttribute']('rowspan')?_0x48e09c['getAttribute']('rowspan')-0x1:0x0,_0x39acb7=_0x48e09c['hasAttribute']('colspan')?_0x48e09c['getAttribute']('colspan')-0x1:0x0;_0x75cc7d=_0x32e6de<_0x75cc7d?_0x32e6de:_0x75cc7d,_0x592c34=_0x32e6de+_0x4866fd>_0x592c34?_0x32e6de+_0x4866fd:_0x592c34,_0x37f10b=_0x2db148<_0x37f10b?_0x2db148:_0x37f10b,_0x5ba4b8=_0x2db148+_0x39acb7>_0x5ba4b8?_0x2db148+_0x39acb7:_0x5ba4b8;}return{'minRow':_0x75cc7d,'maxRow':_0x592c34,'minColumn':_0x37f10b,'maxColumn':_0x5ba4b8};}['_setupColumnsRowsFixing'](){const _0x1950d7=this['editor'],_0x24bab0=_0x1950d7['plugins']['get']('TrackChangesEditing'),_0x37f904=_0x1950d7['plugins']['get']('TableUtils');_0x1950d7['model']['document']['on']('change:data',()=>{const _0x2e1654=Array['from'](_0x1950d7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x14a00b,data:_0x3ef5a9}of _0x2e1654){const {group:_0x40fb35,id:_0x11740d,subType:_0x4683d2}=_0x24bab0['_splitMarkerName'](_0x14a00b);if('suggestion'!=_0x40fb35)continue;if(null!=_0x3ef5a9['oldRange'])continue;const _0x433002=_0x24bab0['getSuggestion'](_0x11740d);this['_tablePostFixingSubtypes']['includes'](_0x4683d2)&&this['_tableSuggestions']['add'](_0x433002);}},{'priority':'low'});const _0x4b4f51=(_0x52d4fa,_0x73a8ba)=>{let _0x2c64e2=!0x1;const _0x1d9f58=_0x73a8ba['createRangeOn'](_0x52d4fa),_0x2bad80=_0x52d4fa['findAncestor']('table'),_0x242b8c=_0x37f904['getCellLocation'](_0x52d4fa);for(const _0x534002 of this['_tableSuggestions']){const _0x1b3e4f=_0x534002['subType'],_0x339ef6=_0x1b3e4f['startsWith']('tablePaste'),_0x551196=_0x1b3e4f['substr'](_0x339ef6?0xa:0x5),_0x5e2d5f=_0x551196['toLowerCase'](),_0x2220a0=_0x5e2d5f['substr'](0x0,0x3)+'span',_0x2e274c='min'+_0x551196,_0x4dd47a='max'+_0x551196;if(!_0x534002['isInContent'])continue;if(_0x2bad80!=_0x534002['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x534002['isIntersectingWithRange'](_0x1d9f58))continue;const _0x26d977=_0x52d4fa['hasAttribute'](_0x2220a0)?_0x52d4fa['getAttribute'](_0x2220a0)-0x1:0x0,_0x37f4f6=this['_getSuggestionCoords'](_0x534002),_0x2e151f=_0x37f4f6[_0x2e274c],_0x52751c=_0x37f4f6[_0x4dd47a];_0x2e151f<=_0x242b8c[_0x5e2d5f]&&_0x242b8c[_0x5e2d5f]+_0x26d977<=_0x52751c&&(_0x534002['addRange'](_0x1d9f58),_0x2c64e2=!0x0);}return _0x2c64e2;};_0x1950d7['model']['document']['registerPostFixer'](_0x435c34=>{let _0x1b38c2=!0x1;for(const _0x2b45ca of _0x1950d7['model']['document']['differ']['getChanges']())if('insert'==_0x2b45ca['type']){if('tableRow'==_0x2b45ca['name']){for(const _0x54c905 of _0x2b45ca['position']['nodeAfter']['getChildren']())_0x1b38c2=_0x1b38c2||_0x4b4f51(_0x54c905,_0x435c34);}else'tableCell'==_0x2b45ca['name']&&(_0x1b38c2=_0x1b38c2||_0x4b4f51(_0x2b45ca['position']['nodeAfter'],_0x435c34));}return _0x1b38c2;});}['_getSuggestionCoords'](_0x524aee){return this['_getCoordsForCells'](_0x524aee['getRanges']()['map'](_0x5a89a3=>_0x5a89a3['start']['nodeAfter']));}}function Ne(_0x199148){return Array['from'](new Set(_0x199148)['values']());}class _t extends _0x142398{static get['requires'](){return[At];}['afterInit'](){const _0x160b66=this['editor'],_0x37ead0=_0x160b66['model']['document']['selection'],_0x266894=_0x160b66['locale'];if(!_0x160b66['plugins']['has']('TableEditing'))return;const _0x5ac497=_0x160b66['plugins']['get']('TrackChangesEditing'),_0x45a9dd=_0x160b66['plugins']['get']('TableUtils'),_0x11ef8a=_0x160b66['plugins']['get'](At);_0x11ef8a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5ac497['enableCommand']('mergeTableCells',()=>{const _0x53d809=_0x45a9dd['getSelectionAffectedTableCells'](_0x160b66['model']['document']['selection']);_0x160b66['model']['change'](()=>{_0x5ac497['markMultiRangeBlockFormat'](_0x53d809,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x160b66['commands']['get']('mergeTableCells')['on']('execute',(_0x5c6ca8,_0x56dc50)=>{_0x160b66['commands']['get']('trackChanges')['value']&&(_0x56dc50['length']>0x0&&_0x56dc50[_0x56dc50['length']-0x1]&&_0x56dc50[_0x56dc50['length']-0x1]['forceDefaultExecution']||_0x5ac497['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5c6ca8['stop']());},{'priority':'highest'});for(const _0x1039d8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x35d3c0=_0x160b66['commands']['get'](_0x1039d8);_0x5ac497['enableCommand'](_0x1039d8,()=>{const _0x3d9a6b=_0x160b66['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1f4ec4=>_0x1f4ec4['is']('element','tableCell')),_0x31f73b=_0x35d3c0['value'];_0x160b66['model']['change'](()=>{_0x5ac497['markMultiRangeBlockFormat']([_0x3d9a6b,_0x31f73b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xf08a97 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x40fd73=_0x160b66['commands']['get'](_0xf08a97);_0x5ac497['enableCommand'](_0xf08a97,()=>{const _0x1ce315=_0x45a9dd['getSelectionAffectedTableCells'](_0x160b66['model']['document']['selection'])[0x0],_0x342ee9=_0x1ce315['findAncestor']('table'),{column:_0x1901e9,row:_0x3b2166}=_0x45a9dd['getCellLocation'](_0x1ce315);let _0x595112=[];if('horizontally'==_0x40fd73['direction']){const _0x318d4f=_0x45a9dd['createTableWalker'](_0x342ee9,{'startRow':_0x3b2166,'endRow':_0x3b2166,'includeAllSlots':!0x0});_0x595112=Array['from'](_0x318d4f)['map'](_0x5c3cb2=>_0x5c3cb2['cell']);}else{const _0x550ff8=_0x45a9dd['createTableWalker'](_0x342ee9,{'column':_0x1901e9,'includeAllSlots':!0x0});_0x595112=Array['from'](_0x550ff8)['map'](_0x4c9be9=>_0x4c9be9['cell']);}_0x160b66['model']['change'](_0x8626f3=>{_0x5ac497['markBlockFormat'](_0x8626f3['createRangeOn'](_0x1ce315),{'commandName':_0xf08a97,'commandParams':[]},_0x595112,_0xf08a97);});});}_0x5ac497['descriptionFactory']['registerDescriptionCallback'](_0x5d7840=>{if('formatBlock'!=_0x5d7840['type']&&'formatInline'!=_0x5d7840['type'])return;const {data:_0x1f4bd4}=_0x5d7840;return _0x1f4bd4&&'mergeTableCells'==_0x1f4bd4['commandName']?{'type':'format','content':o(_0x266894,'*Merge\x20cells*')}:void 0x0;}),_0x5ac497['descriptionFactory']['registerDescriptionCallback'](_0x289482=>{if('formatBlock'!=_0x289482['type']&&'formatInline'!=_0x289482['type'])return;const {data:_0x376b38}=_0x289482;return _0x376b38?'splitTableCellVertically'==_0x376b38['commandName']?{'type':'format','content':o(_0x266894,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x376b38['commandName']?{'type':'format','content':o(_0x266894,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x20d59c=_0x11ef8a['_acceptFormatSuggestionCallbackFactory']();for(const _0x4a6448 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5ac497['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4a6448,'accept',_0x20d59c);for(const _0x55165c of['splitTableCellVertically','splitTableCellHorizontally'])_0x5ac497['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x55165c,'accept',_0x20d59c);_0x5ac497['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2bde9a=>{_0x160b66['model']['change'](_0x3f6d53=>{const _0x260d5d=Array['from'](_0x37ead0['getRanges']())['map'](_0x1141cf=>_0x3590e7['fromRange'](_0x1141cf));_0x3f6d53['setSelection'](_0x2bde9a),_0x160b66['commands']['get']('mergeTableCells')['refresh'](),_0x160b66['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x29b12d=_0x260d5d['filter'](_0x90a4b3=>'$graveyard'!=_0x90a4b3['root']['rootName']);_0x29b12d['length']>0x0&&_0x3f6d53['setSelection'](_0x29b12d);for(const _0x2a4cf9 of _0x260d5d)_0x2a4cf9['detach']();});});for(const _0x236207 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x49a0ff=_0x160b66['commands']['get'](_0x236207);_0x49a0ff['on']('set:isEnabled',(_0x235328,_0x444bd8,_0x5899cc)=>{if(_0x5899cc){const _0x521693=_0x160b66['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x352073=>_0x352073['is']('element','tableCell'));this['_areMergableCells'](_0x49a0ff['value'],_0x521693)||(_0x235328['return']=!0x1,_0x235328['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x80bcd6=this['editor']['commands']['get']('mergeTableCells'),_0x6ba82e=this['editor']['plugins']['get']('TableUtils');if(!_0x80bcd6['isEnabled'])return!0x1;const _0x5e3857=_0x6ba82e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x47d856 of _0x5e3857)for(const _0x33acde of _0x5e3857)if(_0x47d856!=_0x33acde&&!this['_areMergableCells'](_0x47d856,_0x33acde))return!0x1;return!0x0;}['_areMergableCells'](_0x2dd793,_0x152610){const _0x4b2678=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17ab81=this['editor']['model']['createRangeOn'](_0x2dd793),_0xf7cad5=this['editor']['model']['createRangeOn'](_0x152610),_0x91d367=new Set(),_0xa2d1a5=new Set();for(const _0x3a8440 of _0x4b2678['getSuggestions']())if(('insertion'==_0x3a8440['type']||'deletion'==_0x3a8440['type']||'mergeTableCells'==_0x3a8440['subType'])&&_0x3a8440['isInContent']){for(const _0x3aadaa of _0x3a8440['getRanges']())_0x3aadaa['containsRange'](_0x17ab81,!0x0)&&_0x91d367['add'](_0x3a8440['type']+':'+_0x3a8440['author']['id']),_0x3aadaa['containsRange'](_0xf7cad5,!0x0)&&_0xa2d1a5['add'](_0x3a8440['type']+':'+_0x3a8440['author']['id']);}if(_0x91d367['size']!=_0xa2d1a5['size'])return!0x1;for(const _0x733bcc of _0x91d367)if(!_0xa2d1a5['has'](_0x733bcc))return!0x1;return!0x0;}}class Ct extends _0x142398{static get['requires'](){return[At];}['afterInit'](){const _0x129a47=this['editor'];if(!_0x129a47['plugins']['has']('TableEditing'))return;const _0x5a20cd=_0x129a47['locale'],_0x526070=_0x129a47['plugins']['get']('TrackChangesEditing');_0x526070['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x526070['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x526070['registerBlockAttribute']('headingRows'),_0x526070['registerBlockAttribute']('headingColumns'),_0x526070['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5a20cd,'FORMAT_HEADER_ROW')),_0x526070['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5a20cd,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2ed988=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d7d01=this['editor']['plugins']['get']('TableUtils'),_0x3f996e=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x1d860d({showActiveMarker:_0x168959=!0x0,setDataAttribute:_0x3e52a0=!0x0}={}){return(_0x2fd8c7,_0x64bcb7,_0x34aa31)=>{const {type:_0x255b66,id:_0x4e2e4a}=_0x2ed988['_splitMarkerName'](_0x64bcb7['markerName']),_0x2603f0=_0x2ed988['getSuggestion'](_0x4e2e4a),_0x1904e3=_0x2603f0['data'];if('formatBlock'!=_0x2603f0['type']||!_0x1904e3||'setTableColumnHeader'!=_0x1904e3['commandName'])return;if(_0x64bcb7['item'])return void _0x2fd8c7['stop']();if(!_0x34aa31['consumable']['consume'](_0x64bcb7['markerRange'],_0x2fd8c7['name']))return;const _0x1757e1=_0x64bcb7['markerRange']['start']['nodeAfter'],_0x5274b4=_0x64bcb7['markerRange']['end']['nodeBefore'],_0x83202b=_0x1757e1['parent']['parent'],{column:_0x167f3a}=_0x5d7d01['getCellLocation'](_0x1757e1),{column:_0x135dfa}=_0x5d7d01['getCellLocation'](_0x5274b4);for(let _0x33e0c8=_0x167f3a;_0x33e0c8<=_0x135dfa;_0x33e0c8++){const _0xeb6842=_0x5d7d01['createTableWalker'](_0x83202b,{'column':_0x33e0c8,'includeAllSlots':!0x1});for(const _0x271cb6 of _0xeb6842){const _0x2eccf0=_0x271cb6['cell'],_0x122251=_0x34aa31['mapper']['toViewElement'](_0x2eccf0);_0x34aa31['writer']['addClass']('ck-suggestion-marker-'+_0x255b66,_0x122251),_0x3e52a0&&_0x34aa31['writer']['setAttribute']('data-suggestion',_0x4e2e4a,_0x122251),_0x34aa31['mapper']['bindElementToMarker'](_0x122251,_0x64bcb7['markerName']),_0x168959&&(_0x2ed988['activeMarkers']['includes'](_0x64bcb7['markerName'])?_0x34aa31['writer']['addClass']('ck-suggestion-marker--active',_0x122251):_0x34aa31['writer']['removeClass']('ck-suggestion-marker--active',_0x122251));}}};}_0x2ed988['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3f996e),_0x2ed988['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3f996e),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1d860d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x56ef86,_0x5166f6,_0x5a5166)=>{_0x5a5166['options']['showSuggestionHighlights']&&_0x1d860d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x56ef86,_0x5166f6,_0x5a5166);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2341fa,_0x17e7ee,_0x55dd83)=>{const {type:_0x354a23,id:_0x3b0a9e}=_0x2ed988['_splitMarkerName'](_0x17e7ee['markerName']),_0x1dcea7=_0x2ed988['getSuggestion'](_0x3b0a9e),_0x1530ce=_0x1dcea7['data'];if('formatBlock'!=_0x1dcea7['type']||!_0x1530ce||'setTableColumnHeader'!=_0x1530ce['commandName'])return;const _0x1c14a4=_0x55dd83['mapper']['markerNameToElements'](_0x17e7ee['markerName']);if(_0x1c14a4){for(const _0x25f9a3 of _0x1c14a4)_0x55dd83['writer']['removeClass']('ck-suggestion-marker-'+_0x354a23,_0x25f9a3),_0x55dd83['writer']['removeClass']('ck-suggestion-marker--active',_0x25f9a3),_0x55dd83['writer']['removeAttribute']('data-suggestion',_0x25f9a3),_0x55dd83['mapper']['unbindElementFromMarkerName'](_0x25f9a3,_0x17e7ee['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32e0c2=this['editor'],_0x1ade1c=_0x32e0c2['locale'];function _0x51e30c(_0x7316c){return{'type':'format','content':o(_0x1ade1c,'*Format:*\x20%0',_0x7316c)};}_0x32e0c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ca4ae=>{if('formatBlock'!=_0x2ca4ae['type'])return;const {data:_0x37c71e}=_0x2ca4ae;if(_0x37c71e){if('setTableRowHeader'==_0x37c71e['commandName']){const _0x26c792=_0x37c71e['commandParams'][0x0]['forceValue'];return _0x51e30c(o(_0x1ade1c,_0x26c792?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x37c71e['commandName']){const _0xed36e=_0x37c71e['commandParams'][0x0]['forceValue'];return _0x51e30c(o(_0x1ade1c,_0xed36e?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x142398{['afterInit'](){const _0x4312d4=this['editor'],_0x325706=_0x4312d4['locale'],_0x5585d0=_0x4312d4['plugins']['get']('TrackChangesEditing');function _0x41391b(_0xab5fe3){return{'type':'format','content':''+o(_0x325706,'*Set\x20table\x20type:*\x20%0',_0xab5fe3)};}_0x4312d4['plugins']['has']('TableLayout')&&(_0x5585d0['enableCommand']('insertTableLayout'),_0x5585d0['enableDefaultAttributesIntegration']('tableType'),_0x5585d0['registerBlockAttribute']('tableType'),_0x5585d0['descriptionFactory']['registerElementLabel'](_0xa39ccd=>_0xa39ccd['is']('element','table')&&'layout'===_0xa39ccd['getAttribute']('tableType'),_0x487449=>o(_0x325706,'ELEMENT_LAYOUT_TABLE',_0x487449)),_0x5585d0['descriptionFactory']['registerDescriptionCallback'](_0x1a8927=>{const {data:_0x2c11eb}=_0x1a8927;if(_0x2c11eb&&'tableType'==_0x2c11eb['key'])switch(_0x2c11eb['newValue']){case'layout':return _0x41391b(o(_0x325706,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x41391b(o(_0x325706,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0x255ba8=>[_0x255ba8,null]));class Nt extends _0x142398{static get['requires'](){return[At];}['afterInit'](){const _0x270537=this['editor'];if(!_0x270537['plugins']['has']('TableClipboard'))return;const _0x42f611=_0x270537['plugins']['get']('TrackChangesEditing'),_0x1a47bc=_0x270537['plugins']['get']('TableUtils'),_0x4940b2=_0x270537['plugins']['get'](At),_0x2d3036=_0x270537['plugins']['get']('TableClipboard'),_0x43b344=_0x270537['plugins']['get']('TableSelection'),_0x4db1e1=_0x270537['plugins']['get'](_0x27aa69);_0x4940b2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x270537['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x270537['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x55abe5=null,_0x3ce18a=!0x1;_0x4db1e1['on']('contentInsertion',(_0x5c90ad,_0x3e9f30)=>{_0x3ce18a='paste'===_0x3e9f30['method'];}),_0x270537['model']['on']('insertContent',(_0x1005ac,_0x36e94c)=>{if(!_0x3ce18a&&null===_0x43b344['getSelectedTableCells']())return;const [_0x326550,_0x3b2c47]=_0x36e94c,_0xc02ac3=_0x36e94c[_0x36e94c['length']-0x1];_0xc02ac3&&_0xc02ac3['forceDefaultExecution']||_0x42f611['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x39cb7b,_0x1d4791,_0x13feab,_0x36c146,_0x231ba6){if(_0x1d4791&&!_0x1d4791['is']('documentSelection'))return!0x1;const _0x40d124=_0x231ba6['getTableIfOnlyTableInContent'](_0x39cb7b,_0x13feab);if(!_0x40d124||!Ue(_0x40d124,void 0x0,_0x36c146))return!0x1;const _0x59749e=_0x36c146['getSelectionAffectedTableCells'](_0x13feab['document']['selection']);if(!_0x59749e['length'])return!0x1;const _0x35de85=_0x59749e[0x0]['findAncestor']('table'),_0x4206f3=_0x36c146['getRowIndexes'](_0x59749e),_0x4532d1=_0x36c146['getColumnIndexes'](_0x59749e),_0x2611dc={'startRow':_0x4206f3['first'],'endRow':_0x4206f3['last'],'startColumn':_0x4532d1['first'],'endColumn':_0x4532d1['last']};return 0x1==_0x59749e['length']&&(_0x2611dc['endRow']+=_0x36c146['getRows'](_0x40d124)-0x1,_0x2611dc['endColumn']+=_0x36c146['getColumns'](_0x40d124)-0x1),Ue(_0x35de85,_0x2611dc,_0x36c146);}(_0x326550,_0x3b2c47,_0x270537['model'],_0x1a47bc,_0x2d3036)&&(_0x1005ac['stop'](),_0x55abe5={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x270537['model']['change'](()=>{_0x270537['model']['insertContent'](_0x36e94c[0x0],_0x36e94c[0x1],_0x36e94c[0x2],{'forceDefaultExecution':!0x0});const _0x16aff2=_0x140250(),{rowInsertionRanges:_0x19dab3,columnInsertionRanges:_0x356bbc,insertionRanges:_0x5d4d72,deletionRanges:_0x3232b6,cells:_0x406afe}=_0x55abe5;_0x19dab3['length']&&_0x42f611['markMultiRangeInsertion'](_0x19dab3,'tablePasteRow',{'tablePasteChainId':_0x16aff2}),_0x356bbc['length']&&_0x42f611['markMultiRangeInsertion'](_0x356bbc,'tablePasteColumn',{'tablePasteChainId':_0x16aff2}),_0x5d4d72['length']&&(_0x42f611['markMultiRangeInsertion'](_0x5d4d72,'tablePaste',{'tablePasteChainId':_0x16aff2,'skipNestingCheck':!0x0}),_0x5d4d72['forEach'](_0x470343=>_0x470343['detach']?.())),_0x3232b6['length']&&(_0x42f611['markMultiRangeDeletion'](_0x3232b6,'tablePaste',{'tablePasteChainId':_0x16aff2,'skipNestingCheck':!0x0}),_0x3232b6['forEach'](_0x25bca8=>_0x25bca8['detach']?.()));const _0x541f4c=_0x42f611['markMultiRangeBlockFormat'](_0x406afe['map'](({element:_0x2e510a})=>_0x2e510a),{'formatGroupId':_0x140250()},[],'tablePasteCell',{'tablePasteChainId':_0x16aff2});if(_0x541f4c){const _0x2e845e=_0x541f4c['getMarkers'](),_0x17d292=[];for(const {element:_0xf20273,attributes:_0x2948b2}of _0x406afe){if(!_0x2948b2)continue;const _0x242985=_0x270537['model']['createRangeOn'](_0xf20273),_0x23222e=_0x2e845e['find'](_0x16c6a6=>_0x16c6a6['getRange']()['isEqual'](_0x242985));_0x23222e&&_0x17d292['push']([_0x23222e['name'],_0x2948b2]);}_0x17d292['length']&&_0x541f4c['setAttribute']('markerAttributes',Object['fromEntries'](_0x17d292));}_0x55abe5=null;}));},{'priority':_0x568555['high']+0xa}),_0x4db1e1['on']('contentInsertion',()=>{_0x3ce18a=!0x1;},{'priority':'lowest'}),_0x270537['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4f066a,_0x761a13)=>{const [_0x10c9fa,_0x4cf590,,_0x4e3857]=_0x761a13;if(!_0x55abe5)return;_0x4f066a['stop']();const _0x52a83f=_0x10c9fa['cell'],_0x115b60=_0x4cf590,_0x49896a=Oe(_0x52a83f),_0x42f4cc=Oe(_0x115b60);_0x4f066a['return']=_0x52a83f;let _0x272416=null,_0x2e75bd=null;if(_0x42f4cc||_0x49896a){if(_0x49896a&&!_0x42f4cc){_0x4e3857['remove'](_0x52a83f['getChild'](0x0));for(const _0x239849 of Array['from'](_0x115b60['getChildren']()))_0x4e3857['insert'](_0x239849,_0x52a83f,'end');const _0x217fd2=_0x55abe5['rowInsertionIndexes']['includes'](_0x10c9fa['row']),_0x2398c3=_0x55abe5['columnInsertionIndexes']['includes'](_0x10c9fa['column']);_0x217fd2||_0x2398c3||(_0x272416=_0x3590e7['fromRange'](_0x4e3857['createRangeIn'](_0x52a83f)));}else _0x42f4cc&&!_0x49896a&&(_0x2e75bd=_0x4e3857['createRangeIn'](_0x52a83f));}else{const _0x5c0158=_0x4e3857['createElement']('tableCellSuggestion'),_0x38f969=_0x4e3857['createElement']('tableCellSuggestion');_0x4e3857['wrap'](_0x4e3857['createRangeIn'](_0x52a83f),_0x38f969),_0x4e3857['insert'](_0x5c0158,_0x52a83f,0x0);for(const _0x5ae105 of Array['from'](_0x115b60['getChildren']()))_0x4e3857['insert'](_0x5ae105,_0x5c0158,'end');_0x272416=_0x3590e7['fromRange'](_0x4e3857['createRangeOn'](_0x5c0158)),_0x2e75bd=_0x3590e7['fromRange'](_0x4e3857['createRangeOn'](_0x38f969));}const _0x69923a=Array['from'](_0x115b60['getAttributes']())['filter'](([_0x4963bc])=>Be['includes'](_0x4963bc));_0x55abe5['cells']['push']({'element':_0x52a83f,'attributes':_0x69923a['length']?Object['fromEntries'](_0x69923a):null}),_0x272416&&_0x55abe5['insertionRanges']['push'](_0x272416),_0x2e75bd&&_0x55abe5['deletionRanges']['push'](_0x2e75bd);},{'priority':'high'}),_0x1a47bc['on']('insertColumns',(_0x3aeded,_0x2fb77a)=>{const [_0x406899,_0x269e08={}]=_0x2fb77a;if(!_0x55abe5)return;const _0x62ed61=_0x269e08['at']||0x0,_0x4c9bae=_0x269e08['columns']||0x1;_0x55abe5['columnInsertionIndexes']=new Array(_0x4c9bae)['fill'](_0x62ed61)['map']((_0x28b1c1,_0x1a6d37)=>_0x28b1c1+_0x1a6d37);for(const {cell:_0x49caa8}of _0x1a47bc['createTableWalker'](_0x406899,{'startColumn':_0x62ed61,'endColumn':_0x62ed61+_0x4c9bae-0x1}))_0x55abe5['columnInsertionRanges']['push'](_0x270537['model']['createRangeOn'](_0x49caa8));},{'priority':'low'}),_0x1a47bc['on']('insertRows',(_0xd02696,_0x1bda45)=>{const [_0x4a5d22,_0x2cd5c2={}]=_0x1bda45;if(!_0x55abe5)return;const _0x472638=_0x2cd5c2['at']||0x0,_0x462163=_0x2cd5c2['rows']||0x1;_0x55abe5['rowInsertionIndexes']=new Array(_0x462163)['fill'](_0x472638)['map']((_0x5cfc69,_0x55f33f)=>_0x5cfc69+_0x55f33f);for(const {cell:_0x273169}of _0x1a47bc['createTableWalker'](_0x4a5d22,{'startRow':_0x472638,'endRow':_0x472638+_0x462163-0x1}))_0x55abe5['rowInsertionRanges']['push'](_0x270537['model']['createRangeOn'](_0x273169));},{'priority':'low'}),_0x42f611['descriptionFactory']['registerDescriptionCallback'](_0x2c1592=>{if(_0x2c1592['subType']&&_0x2c1592['subType']['startsWith']('tablePaste'))return _0x2c1592['previous']?{}:{'type':'insertion','content':o(_0x270537['locale'],'*Replace\x20table\x20cells*')};});const _0x1fda03=()=>!0x1;for(const _0x13782c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x42f611['_suggestionFactory']['registerCustomCallback']('insertion',_0x13782c,'join',_0x1fda03),_0x42f611['_suggestionFactory']['registerCustomCallback']('deletion',_0x13782c,'join',_0x1fda03),_0x42f611['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x13782c,'join',_0x1fda03);_0x42f611['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1fda03),_0x42f611['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x52056d,_0x29dd24,_0x3634c8)=>{const _0x53ad81=_0x52056d['map'](_0x599081=>_0x599081['getContainedElement']())['filter'](_0x487349=>_0x487349),_0x5d463e=new Map(_0x53ad81['map'](_0x4f0e9f=>[_0x4f0e9f,null]));if(_0x55abe5){for(const {element:_0x29b5fb,attributes:_0x51cc3e}of _0x55abe5['cells'])_0x51cc3e&&_0x5d463e['set'](_0x29b5fb,_0x51cc3e);}else{if(_0x3634c8&&_0x3634c8['markerAttributes'])for(const [_0x35ab78,_0x53f84d]of Object['entries'](_0x3634c8['markerAttributes'])){const _0x186f99=_0x270537['model']['markers']['get'](_0x35ab78),_0x722300=_0x186f99?_0x186f99['getRange']()['getContainedElement']():null;_0x722300&&_0x5d463e['set'](_0x722300,_0x53f84d);}}_0x270537['model']['change'](_0x2f22a7=>{for(const [_0x17eb05,_0xec848b]of _0x5d463e)_0x2f22a7['setAttributes']({...xe,..._0xec848b},_0x17eb05);});});const _0x30ebec=(_0x36a3e9,_0x2e1e82)=>{_0x42f611['_suggestionFactory']['registerCustomCallback'](_0x36a3e9,'tablePaste',_0x2e1e82,(_0x29c3fa,_0x160f5f,_0x69e6d3)=>{_0x270537['model']['change'](_0x115747=>{const _0x4cfca0=[];for(const _0x4be6c6 of _0x29c3fa){const _0x9538ab=_0x4be6c6['start']['nodeAfter'];_0x9538ab['is']('element','tableCellSuggestion')&&_0x4cfca0['push'](_0x9538ab);}_0x42f611['_suggestionFactory']['getSuggestionCallback'](_0x36a3e9,null,_0x2e1e82)(_0x29c3fa,_0x160f5f,_0x69e6d3);for(const _0x5284a2 of _0x4cfca0)'$graveyard'!=_0x5284a2['root']['rootName']&&_0x115747['unwrap'](_0x5284a2);});});};_0x30ebec('insertion','accept'),_0x30ebec('insertion','discard'),_0x30ebec('deletion','accept'),_0x30ebec('deletion','discard'),_0x42f611['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x38c45a=>{const _0x15c62f=_0x38c45a['map'](_0x30e915=>_0x30e915['getContainedElement']()),_0x49cc10=_0x15c62f[0x0]['findAncestor']('table'),{minRow:_0x10c50c,maxRow:_0xbd1189}=_0x4940b2['_getCoordsForCells'](_0x15c62f);_0x1a47bc['removeRows'](_0x49cc10,{'at':_0x10c50c,'rows':_0xbd1189-_0x10c50c+0x1});}),_0x42f611['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x164507=>{const _0x56de91=_0x164507['map'](_0x2ef4bd=>_0x2ef4bd['getContainedElement']()),_0x8e5121=_0x56de91[0x0]['findAncestor']('table'),{minColumn:_0x4359e8,maxColumn:_0x76ef5a}=_0x4940b2['_getCoordsForCells'](_0x56de91);_0x1a47bc['removeColumns'](_0x8e5121,{'at':_0x4359e8,'columns':_0x76ef5a-_0x4359e8+0x1});});const _0x452306=(_0x1d9609,_0x1ac6b0)=>{if(!_0x1ac6b0['subType']||!_0x1ac6b0['subType']['startsWith']('tablePaste'))return;const _0x48534d=_0x1ac6b0['attributes']['tablePasteChainId'],_0xbd74c1=_0x42f611['getSuggestions']()['filter'](_0x334d7e=>_0x334d7e['isInContent']&&_0x334d7e['attributes']&&_0x334d7e['attributes']['tablePasteChainId']==_0x48534d);_0xbd74c1['length']&&_0x1ac6b0['getAllAdjacentSuggestions']()['length']!=_0xbd74c1['length']&&_0xbd74c1['reduce']((_0x2c4abc,_0x54aa7a)=>(_0x2c4abc['next']=_0x54aa7a,_0x54aa7a['previous']=_0x2c4abc,_0x54aa7a));};function _0x3c1c8d(_0x232edf,_0x5c5282=!0x0){const {id:_0x29075f,authorId:_0x35cc7a}=_0x42f611['_splitMarkerName'](_0x232edf['markerName']),_0x59a25d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x37bbd2=_0x42f611['activeMarkers']['includes'](_0x232edf['markerName']);return _0x37bbd2&&_0x59a25d['push']('ck-suggestion-marker--active'),{'classes':_0x59a25d,'attributes':{'data-suggestion':_0x29075f,'data-author-id':_0x35cc7a},'priority':_0x37bbd2&&_0x5c5282?0xbc2:0xbb8};}_0x42f611['on']('suggestionLoaded',_0x452306,{'priority':'high'}),_0x42f611['on']('suggestionUnloaded',_0x452306,{'priority':'high'}),_0x270537['model']['document']['registerPostFixer'](()=>{let _0x7b3857=!0x1;const _0x14a872=Array['from'](_0x270537['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47c6d8,data:_0xdc5c5f}of _0x14a872){const {group:_0x48b12f,type:_0x56014c,id:_0x1623b2}=_0x42f611['_splitMarkerName'](_0x47c6d8);if('suggestion'!=_0x48b12f||'deletion'!=_0x56014c||_0xdc5c5f['oldRange'])continue;if(!_0x42f611['hasSuggestion'](_0x1623b2))continue;const _0x3baf7=_0x42f611['getSuggestion'](_0x1623b2)['getRanges'](),_0x27ded4=_0x270537['plugins']['get']('Users')['me'];for(const _0x5e9aeb of _0x42f611['getSuggestions']()){if(!_0x5e9aeb['isInContent']||_0x5e9aeb['author']!=_0x27ded4)continue;if('formatBlock'!=_0x5e9aeb['type']||'tablePasteCell'!=_0x5e9aeb['subType'])continue;if(_0x5e9aeb['getRanges']()['every'](_0x5d1e7c=>_0x3baf7['some'](_0x98781c=>_0x98781c['containsRange'](_0x5d1e7c,!0x0)))){for(const _0x293a75 of _0x5e9aeb['getAllAdjacentSuggestions']())_0x293a75['isInContent']&&(_0x293a75['discard'](),_0x7b3857=!0x0);}}}return _0x7b3857;}),_0x270537['model']['document']['registerPostFixer'](_0x2e73da=>{const _0x40a0ed=_0x270537['commands']['get']('redo');if(!_0x40a0ed||!_0x40a0ed['_createdBatches']['has'](_0x2e73da['batch']))return!0x1;let _0x5bf1bc=!0x1;const _0x33e148=_0x270537['plugins']['get']('Users')['me'],_0x32877b=_0x270537['model']['document']['differ']['getChanges'](),_0x2767ff=Array['from'](_0x270537['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5f5bb7,data:_0x2ba82b})=>{const {group:_0x1e05fc,subType:_0x83dacb,authorId:_0x46fff4}=_0x42f611['_splitMarkerName'](_0x5f5bb7);return'suggestion'==_0x1e05fc&&'tablePaste'==_0x83dacb&&_0x46fff4==_0x33e148['id']&&!_0x2ba82b['oldRange'];});for(const _0x257f89 of _0x32877b){if('insert'!=_0x257f89['type']||'tableCellSuggestion'!=_0x257f89['name']||0x1!=_0x257f89['length'])continue;const _0x23295d=_0x2e73da['createRange'](_0x257f89['position'],_0x257f89['position']['getShiftedBy'](0x1));if(!_0x2767ff['find'](({data:_0x3b1bda})=>_0x3b1bda['newRange']['isEqual'](_0x23295d))){for(const {name:_0x1d1786,data:_0x5258b6}of _0x2767ff)if(_0x23295d['containsRange'](_0x5258b6['newRange'])){_0x2e73da['updateMarker'](_0x1d1786,{'range':_0x23295d}),_0x5bf1bc=!0x0;break;}}}return _0x5bf1bc;}),_0x270537['model']['document']['registerPostFixer'](_0x145057=>{let _0x2decf4=!0x1;const _0x1f94cf=_0x270537['plugins']['get']('Users')['me'],_0x2eb896=_0x42f611['getSuggestions']()['filter'](_0x20356b=>_0x20356b['isInContent']&&_0x20356b['author']==_0x1f94cf),_0x4a8bf0=new Set(),_0x1ee566=new Set();for(const _0x42ffa1 of _0x2eb896)if('tablePaste'==_0x42ffa1['subType'])for(const _0x4f5da0 of _0x42ffa1['getMarkers']()){const _0x4bc5de=_0x4f5da0['getRange']()['getContainedElement']();if(_0x4bc5de){if(_0x4bc5de['is']('element','tableCellSuggestion')&&Oe(_0x4bc5de)){_0x42ffa1['removeMarker'](_0x4f5da0['name']),_0x4a8bf0['add'](_0x4bc5de),_0x2decf4=!0x0;const _0x48efa9=_0x4bc5de['nextSibling'],_0x332709=_0x4bc5de['previousSibling'],_0x557354=_0x48efa9&&_0x48efa9['is']('element','tableCellSuggestion'),_0x2d04f3=_0x332709&&_0x332709['is']('element','tableCellSuggestion');_0x557354&&!_0x4a8bf0['has'](_0x48efa9)&&_0x1ee566['add'](_0x48efa9),_0x2d04f3&&!_0x4a8bf0['has'](_0x332709)&&_0x1ee566['add'](_0x332709);}else _0x4bc5de['is']('element','paragraph')&&_0x4bc5de['isEmpty']&&(_0x42ffa1['removeMarker'](_0x4f5da0['name']),_0x2decf4=!0x0);}}else{if('tablePasteCell'==_0x42ffa1['subType']){if(!_0x42ffa1['attributes']||!_0x42ffa1['attributes']['tablePasteChainId'])continue;const _0x193df1=_0x42ffa1['attributes']['markerAttributes'];if(_0x193df1&&Object['keys'](_0x193df1)['length'])continue;const _0x2bc7c3=_0x42ffa1['attributes']['tablePasteChainId'];let _0x1eb03b=!0x0,_0xd6f2fd=!0x0;for(const _0x310f79 of _0x2eb896)if(_0x310f79['subType']&&_0x310f79['subType']['startsWith']('tablePaste')){if(!_0x310f79['attributes']['tablePasteChainId']){_0xd6f2fd=!0x1;break;}if(_0x310f79['id']!=_0x42ffa1['id']&&_0x310f79['attributes']['tablePasteChainId']==_0x2bc7c3){_0x1eb03b=!0x1;break;}}_0xd6f2fd&&_0x1eb03b&&(_0x42ffa1['removeMarkers'](),_0x2decf4=!0x0);}}for(const _0x526c81 of _0x4a8bf0)_0x145057['remove'](_0x526c81);for(const _0x2fbbfd of _0x1ee566)_0x145057['unwrap'](_0x2fbbfd);return _0x2decf4;}),_0x270537['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4136e6=>_0x3c1c8d(_0x4136e6),'converterPriority':'high'}),_0x270537['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x6f12de,_0x5991fb)=>_0x5991fb['options']['showSuggestionHighlights']?_0x3c1c8d(_0x6f12de,!0x1):null,'converterPriority':'high'});const _0x3cf481=_0x270537['editing']['view'];this['listenTo'](_0x3cf481['document'],'clipboardOutput',(_0x49161a,_0x15cc9b)=>{const _0x4e7fa8=[];for(const _0x1e11a6 of _0x3cf481['createRangeIn'](_0x15cc9b['content'])['getItems']())_0x1e11a6['is']('element','suggestion-td')&&_0x4e7fa8['push'](_0x1e11a6);_0x3cf481['change'](_0xac7e27=>{for(const _0x3cd7a3 of _0x4e7fa8)_0xac7e27['move'](_0xac7e27['createRangeIn'](_0x3cd7a3),_0xac7e27['createPositionBefore'](_0x3cd7a3)),_0xac7e27['remove'](_0x3cd7a3);});});}}function Oe(_0x62c366){if(_0x62c366['isEmpty'])return!0x0;const _0x9f79e3=_0x62c366['getChild'](0x0);return _0x9f79e3['is']('element','paragraph')&&_0x9f79e3['isEmpty'];}function Ue(_0x36300b,_0x27c713={},_0x21d32e){for(const {isAnchor:_0x3a630b,cellHeight:_0x26ea95,cellWidth:_0x3e746e}of _0x21d32e['createTableWalker'](_0x36300b,{'includeAllSlots':!0x0,..._0x27c713}))if(!_0x3a630b||0x1!=_0x26ea95||0x1!=_0x3e746e)return!0x1;return!0x0;}class Dt extends _0x142398{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xae76af=this['editor']['plugins']['get']('TrackChangesEditing');_0xae76af['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xae76af['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xae76af['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xae76af['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xae76af['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xae76af['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3375b3,_0x403f85){const _0x52b5b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42926b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x34b63f=_0x403f85['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x263da1=_0x42926b['getColumnGroupElement'](_0x34b63f);let _0x2fd94d=_0x263da1?_0x42926b['getTableColumnsWidths'](_0x263da1):null,_0x3dd25b=_0x34b63f['getAttribute']('tableWidth')||null;const _0x41f874=_0x403f85['tableWidth']||_0x3dd25b,_0x5c25fb=_0x403f85['columnWidths']||_0x2fd94d,_0x12d2e1=this['editor']['plugins']['get']('Users')['me'];for(const _0x3ae161 of _0x52b5b7['getSuggestions']()){const _0x6a9d26=_0x3ae161['getContainedElement']();if('resizeTable'===_0x3ae161['subType']&&_0x6a9d26===_0x34b63f){_0x3ae161['author']!==_0x12d2e1&&_0x3ae161['discard']();const _0x49baee=_0x3ae161['data']['commandParams'];_0x3dd25b=_0x49baee[0x0]['tableWidth'],_0x2fd94d=_0x49baee[0x0]['columnWidths'];break;}}_0x3375b3({'table':_0x34b63f,'tableWidth':_0x41f874,'columnWidths':_0x5c25fb}),_0x52b5b7['markBlockFormat'](_0x34b63f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3dd25b,'columnWidths':_0x2fd94d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xcf50c5){if('formatBlock'!=_0xcf50c5['type']&&'formatInline'!=_0xcf50c5['type'])return;const {data:_0x578e70}=_0xcf50c5;if(_0x578e70&&'resizeTable'===_0x578e70['formatGroupId']){const _0x297968='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x297968)};}}}class Mt extends _0x142398{['afterInit'](){const _0x1f188f=this['editor'];_0x1f188f['plugins']['has']('Template')&&_0x1f188f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x142398{['afterInit'](){const _0x5b5d3c=this['editor'];if(!_0x5b5d3c['commands']['get']('insertTableOfContents'))return;_0x5b5d3c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x550b11=_0x5b5d3c['plugins']['get']('TrackChangesEditing'),_0x1ecc0f=_0x5b5d3c['locale'];_0x550b11['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1ddaf1=>o(_0x1ecc0f,'ELEMENT_TABLE_OF_CONTENTS',_0x1ddaf1));}}class Bt extends _0x142398{['afterInit'](){const _0x2f0a2b=this['editor'];if(!_0x2f0a2b['plugins']['has']('Title'))return;const _0x197568=_0x2f0a2b['plugins']['get']('TrackChangesEditing');_0x197568['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2f0a2b['locale'],'ELEMENT_TITLE')),_0x2f0a2b['model']['document']['registerPostFixer'](_0x57b340=>{let _0x1a12a2=!0x1;const _0x1afdae=Array['from'](_0x2f0a2b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x290813,data:_0x4f5718}of _0x1afdae){const {group:_0x113cb8}=_0x197568['_splitMarkerName'](_0x290813);if('suggestion'!==_0x113cb8||!_0x4f5718['newRange'])continue;const _0x26f9f3=_0x4f5718['newRange'],_0x4feb98=_0x26f9f3['end']['nodeBefore'];if(!_0x4feb98||!_0x4feb98['is']('element','title-content'))continue;if(!_0x26f9f3['start']['isTouching'](_0x26f9f3['end']))continue;const _0x5c8d08=_0x2f0a2b['model']['schema']['getNearestSelectionRange'](_0x26f9f3['end'],'forward');if(_0x5c8d08&&_0x5c8d08['isCollapsed']){const _0x383989=_0x57b340['createRange'](_0x26f9f3['start'],_0x5c8d08['start']);_0x383989['isEqual'](_0x26f9f3)||(_0x57b340['updateMarker'](_0x290813,{'range':_0x383989}),_0x1a12a2=!0x0);}_0x1a12a2||(_0x57b340['removeMarker'](_0x290813),_0x1a12a2=!0x0);}return _0x1a12a2;});}}class Tt extends _0x142398{['afterInit'](){const _0x3d3af9=this['editor'],_0x5d2edb=_0x3d3af9['plugins']['get']('TrackChangesEditing');_0x3d3af9['plugins']['has']('Uploadcare')&&(_0x5d2edb['enableCommand']('uploadcare'),_0x3d3af9['plugins']['has']('UploadcareImageEdit')&&(_0x5d2edb['enableCommand']('uploadcareImageEdit'),_0x5d2edb['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5d2edb['registerBlockAttribute']('uploadcareImageId'),_0x5d2edb['descriptionFactory']['registerDescriptionCallback'](_0x2e02b8=>{if('attribute'!=_0x2e02b8['type'])return;const {data:_0x211be5}=_0x2e02b8;return _0x211be5&&'uploadcareImageId'==_0x211be5['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x142398{['afterInit'](){const _0x269aeb=this['editor'],_0x338710=_0x269aeb['plugins']['get']('TrackChangesEditing');_0x269aeb['plugins']['has']('UndoEditing')&&(_0x338710['enableCommand']('undo'),_0x338710['enableCommand']('redo'));}}class Ot extends _0x142398{static get['requires'](){return[At];}['afterInit'](){const _0x2d5e09=this['editor'];if(!_0x2d5e09['plugins']['has']('TableCaptionEditing'))return;_0x2d5e09['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x142398{['tableProperties'];['tableCellProperties'];constructor(_0x4a2406){super(_0x4a2406),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 _0x5c9290=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5739d7 of this['tableProperties'])_0x5c9290['enableCommand'](_0x5739d7,(_0x452e49,_0x476352)=>{const _0x19ad53=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5739d7,[_0x19ad53],this['tableProperties'],'tableProperties',_0x452e49,_0x476352);});_0x5c9290['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5c9290['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c9290['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1b3988,_0x20b2dc)=>this['handleDiscardAction'](this['tableProperties'],_0x1b3988,_0x20b2dc)),_0x5c9290['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x395817 of this['tableCellProperties'])_0x5c9290['enableCommand'](_0x395817,(_0x2d27f7,_0x4c63ca)=>{const _0x4c8871=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x395817,_0x4c8871,this['tableCellProperties'],'tableCellProperties',_0x2d27f7,_0x4c63ca);});_0x5c9290['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5c9290['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c9290['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x43f09c,_0x3c75b7)=>this['handleDiscardAction'](this['tableCellProperties'],_0x43f09c,_0x3c75b7)),_0x5c9290['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5c9290['descriptionFactory']['registerDescriptionCallback'](_0x51f466=>this['handleSuggestionDescription'](_0x51f466));}['_handlePropertyChange'](_0x3c181b,_0x480d74,_0x997c07,_0x3e7556,_0x1e82e1,_0x1148ba){const _0x413e0a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1148ba['batch'],()=>{for(const _0x16941e of _0x480d74){if(this['_getSuggestion'](_0x16941e,_0x3e7556))_0x1e82e1(_0x1148ba);else{const _0x5239a7={};for(const _0xe28908 of _0x997c07){const _0x576a88=_0x16941e['getAttribute'](_0xe28908);void 0x0!==_0x576a88&&(_0x5239a7[_0xe28908]=_0x576a88);}_0x1e82e1(_0x1148ba),_0x413e0a['markBlockFormat'](_0x16941e,{'commandParams':[_0x5239a7]},[],_0x3e7556);}}});}['handleDiscardAction'](_0x4349a3,_0x99760e,_0x473c27){const _0xf127c8=_0x99760e[0x0]['start']['nodeAfter'],_0x5e189b=_0x473c27['commandParams'][0x0];this['editor']['model']['change'](_0x265d77=>{for(const _0x342871 of _0x4349a3)void 0x0!==_0x5e189b[_0x342871]?_0x265d77['setAttribute'](_0x342871,_0x5e189b[_0x342871],_0xf127c8):_0x265d77['removeAttribute'](_0x342871,_0xf127c8);});}['handleSuggestionDescription'](_0x3495d8){if(_0x3495d8['data'])switch(_0x3495d8['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x22b48d,_0x3171ff){const _0x130b34=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1cee14 of _0x130b34['getSuggestions']({'skipNotAttached':!0x0})){const _0x2d5fd2=_0x1cee14['getContainedElement']();if(_0x1cee14['subType']===_0x3171ff&&_0x2d5fd2===_0x22b48d)return _0x1cee14;}return null;}}class Rt extends _0x142398{['afterInit'](){const _0x3238db=this['editor'];if(!_0x3238db['plugins']['has']('LineHeight'))return;const _0x5a2aac=_0x3238db['plugins']['get']('TrackChangesEditing'),_0x10fe05=_0x3238db['locale'];_0x5a2aac['enableDefaultAttributesIntegration']('lineHeight'),_0x5a2aac['registerBlockAttribute']('lineHeight'),_0x5a2aac['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x10fe05,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x142398{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x1e445d,_0x20a14a,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x46fd51){super(_0x46fd51),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1deb30,_0x20ff13,_0x448f10,_0x2068f2)=>{this['_model']['change'](()=>{for(const _0x325da2 of[..._0x2068f2,..._0x448f10])this['_model']['markers']['has'](_0x325da2)&&_0x46fd51['editing']['reconvertMarker'](_0x325da2);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x46fd51['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x46fd51['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x46fd51['config']['get']('trackChanges.trackFormatChanges'),_0x46fd51['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x46fd51['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x46fd51,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x13f71d=this['editor'],_0x84dda=(_0x1d1033,_0x4a5f8c)=>{if('attribute'!=_0x1d1033)return'ck-suggestion-marker-'+_0x1d1033;const _0x14432c=_0x4a5f8c['split']('|')[0x0];return this['_isBlockAttribute'](_0x14432c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x13f71d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x240266=>{const {id:_0x232a31,authorId:_0x3e46af,type:_0x304802,subType:_0x234a2b}=this['_splitMarkerName'](_0x240266['markerName']),_0x37c05e=['ck-suggestion-marker',_0x84dda(_0x304802,_0x234a2b)];let _0x5b6c56=0xbb8;return this['activeMarkers']['includes'](_0x240266['markerName'])&&(_0x37c05e['push']('ck-suggestion-marker--active'),_0x5b6c56=0xbc2),'deletion'==_0x304802&&(_0x5b6c56+=0x5),{'classes':_0x37c05e,'attributes':{'data-suggestion':_0x232a31,'data-author-id':_0x3e46af},'priority':_0x5b6c56};}}),_0x13f71d['conversion']['for']('dataDowncast')['add'](_0x49d99b=>{_0x49d99b['on']('addMarker:suggestion',(_0x1f8170,_0x294109,_0x542658)=>{if(!_0x542658['options']['showSuggestionHighlights'])return;const _0x1e4eaf=_0x294109['item'];if(!_0x1e4eaf)return;const _0x594943=_0x542658['mapper']['toViewElement'](_0x1e4eaf);_0x13f71d['model']['schema']['isObject'](_0x1e4eaf)&&_0x594943&&!_0x594943['getCustomProperty']('widget')&&_0x594943['is']('containerElement')&&_0x4c0789(_0x594943,_0x542658['writer']);},{'priority':'high'});}),_0x13f71d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x49da9b,_0x161d07)=>{if(!_0x161d07['options']['showSuggestionHighlights'])return null;const {id:_0x4fabe5,authorId:_0x444081,type:_0x4e1dfa,subType:_0x4fee08}=this['_splitMarkerName'](_0x49da9b['markerName']);return{'classes':['ck-suggestion-marker',_0x84dda(_0x4e1dfa,_0x4fee08)],'priority':0xbb8,'attributes':{'data-suggestion':_0x4fabe5,'data-author-id':_0x444081}};}});const _0x364606=({showActiveMarkers:_0x584376=!0x0,isAttributeSuggestion:_0x66df9d=!0x1}={})=>(_0x193248,_0x570a12,_0x28dd05)=>{if(!_0x570a12['item'])return;const {id:_0x1f0292,authorId:_0x442261}=this['_splitMarkerName'](_0x570a12['markerName']);if(_0x66df9d){const _0x85f382=this['_suggestions']['get'](_0x1f0292),_0x1d9dec=this['_getAttributeKey'](_0x85f382);if(!this['_isBlockAttribute'](_0x1d9dec))return;}if(_0x570a12['item']['is']('selection'))return void _0x28dd05['consumable']['consume'](_0x570a12['item'],_0x193248['name']);const _0x7a9004=_0x28dd05['mapper']['toViewElement'](_0x570a12['item']);if(_0x570a12['item']['is']('element')&&_0x13f71d['model']['schema']['isBlock'](_0x570a12['item'])&&!_0x7a9004['getCustomProperty']('addHighlight')){_0x28dd05['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x7a9004),_0x28dd05['writer']['setAttribute']('data-suggestion',_0x1f0292,_0x7a9004),_0x28dd05['writer']['setAttribute']('data-author-id',_0x442261,_0x7a9004),_0x28dd05['mapper']['bindElementToMarker'](_0x7a9004,_0x570a12['markerName']),_0x584376&&(this['activeMarkers']['includes'](_0x570a12['markerName'])?_0x28dd05['writer']['addClass']('ck-suggestion-marker--active',_0x7a9004):_0x28dd05['writer']['removeClass']('ck-suggestion-marker--active',_0x7a9004));for(const _0x15ebeb of _0x13f71d['model']['createRangeIn'](_0x570a12['item'])['getItems']())_0x28dd05['consumable']['consume'](_0x15ebeb,_0x193248['name']);_0x28dd05['consumable']['consume'](_0x570a12['item'],_0x193248['name']);}};_0x13f71d['conversion']['for']('dataDowncast')['add'](_0x3bc801=>{_0x3bc801['on']('addMarker:suggestion:formatBlock',(_0x44752c,_0xa09484,_0x1e7f7e)=>{_0x1e7f7e['options']['showSuggestionHighlights']&&_0x364606({'showActiveMarkers':!0x1})(_0x44752c,_0xa09484,_0x1e7f7e);},{'priority':'highest'});}),_0x13f71d['conversion']['for']('dataDowncast')['add'](_0x1da43f=>{_0x1da43f['on']('addMarker:suggestion:attribute',(_0x20e240,_0x1aeb46,_0x4b835b)=>{_0x4b835b['options']['showSuggestionHighlights']&&_0x364606({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x20e240,_0x1aeb46,_0x4b835b);},{'priority':'highest'});}),_0x13f71d['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4c916d,_0x585cc8)=>{if(_0x585cc8['options']['showSuggestionHighlights']){const {id:_0x37f98d,authorId:_0x24fcc9}=this['_splitMarkerName'](_0x4c916d);return _0x4c916d['includes'](':split')||_0x4c916d['includes'](':merge')?{'group':'suggestion','name':_0x4c916d['substr'](0xb),'attributes':{'data-suggestion':_0x37f98d,'data-author-id':_0x24fcc9}}:null;}return{'group':'suggestion','name':_0x4c916d['substr'](0xb)};}}),_0x13f71d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4a1230,{writer:_0x136c3b})=>{let _0x54d68b='suggestion:'+_0x4a1230['getAttribute']('suggestion-type')+':'+_0x4a1230['getAttribute']('id');return _0x4a1230['getAttribute']('marker-count')&&(_0x54d68b+=':'+_0x4a1230['getAttribute']('marker-count')),_0x136c3b['createElement']('$marker',{'data-name':_0x54d68b});}}),_0x13f71d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x13f71d['conversion']['for']('editingDowncast')['add'](_0x3675fe=>{_0x3675fe['on']('addMarker:suggestion:formatBlock',_0x364606(),{'priority':'high'});}),_0x13f71d['conversion']['for']('editingDowncast')['add'](_0x161d20=>{_0x161d20['on']('addMarker:suggestion:attribute',_0x364606({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x13f71d['conversion']['for']('editingDowncast')['add'](_0x9016c8=>{_0x9016c8['on']('removeMarker:suggestion:formatBlock',(_0x3e8cb2,_0x6c32e4,_0xde60ee)=>{const _0x1e5474=_0xde60ee['mapper']['markerNameToElements'](_0x6c32e4['markerName']);if(_0x1e5474){for(const _0x483908 of _0x1e5474)_0x483908['getCustomProperty']('addHighlight')||(_0xde60ee['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x483908),_0xde60ee['writer']['removeAttribute']('data-suggestion',_0x483908),_0xde60ee['writer']['removeAttribute']('data-author-id',_0x483908),_0xde60ee['mapper']['unbindElementFromMarkerName'](_0x483908,_0x6c32e4['markerName']));}},{'priority':'high'});}),_0x13f71d['conversion']['for']('editingDowncast')['add'](_0x1b3453=>{_0x1b3453['on']('removeMarker:suggestion:attribute',(_0x5f2357,_0x529330,_0x44dcc6)=>{const _0x2e3068=_0x44dcc6['mapper']['markerNameToElements'](_0x529330['markerName']);if(!_0x2e3068)return;const {id:_0x305bc1}=this['_splitMarkerName'](_0x529330['markerName']),_0x49e0a3=this['_suggestions']['get'](_0x305bc1),_0x15918f=this['_getAttributeKey'](_0x49e0a3);if(this['_isBlockAttribute'](_0x15918f)){for(const _0x4fea96 of _0x2e3068)_0x4fea96['getCustomProperty']('addHighlight')||(_0x44dcc6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4fea96),_0x44dcc6['writer']['removeAttribute']('data-suggestion',_0x4fea96),_0x44dcc6['writer']['removeAttribute']('data-author-id',_0x4fea96),_0x44dcc6['mapper']['unbindElementFromMarkerName'](_0x4fea96,_0x529330['markerName']));}},{'priority':'high'});}),_0x13f71d['model']['document']['registerPostFixer'](_0x33094f=>{let _0x3dce47=!0x1;const _0x20d420=Array['from'](_0x13f71d['model']['document']['differ']['getChangedMarkers']()),_0x436aa6=new Set();for(const {name:_0x420014,data:_0x4a000b}of _0x20d420){const {group:_0x3941bc,type:_0x5a9f9e,subType:_0x4317db,id:_0x1a5560}=this['_splitMarkerName'](_0x420014);if('suggestion'!==_0x3941bc)continue;const _0x4c089c=this['_suggestions']['get'](_0x1a5560);if(null!=_0x4a000b['newRange']){'formatInline'==_0x5a9f9e&&(_0x3dce47=_0x3dce47||Gt(_0x4a000b['newRange'],_0x420014,_0x33094f,_0x13f71d['model']['schema']));const _0x1f9f8c='attribute'==_0x5a9f9e&&this['_isBlockAttribute'](_0x4317db['split']('|')[0x0]);if(_0x4a000b['newRange']['isCollapsed']||'$graveyard'==_0x4a000b['newRange']['root']['rootName']||'formatBlock'==_0x5a9f9e&&!Jt(_0x4a000b['newRange'])||_0x1f9f8c&&!Jt(_0x4a000b['newRange'])||'deletion'==_0x5a9f9e&&!Kt(_0x4a000b['newRange']))_0x33094f['removeMarker'](_0x420014),_0x3dce47=!0x0;else{if(!_0x4c089c||!_0x4c089c['isInContent'])continue;if(_0x4a000b['newRange']&&_0x4a000b['oldRange']&&_0x4a000b['newRange']['isEqual'](_0x4a000b['oldRange']))continue;_0x436aa6['add'](_0x4c089c);}}}return _0x436aa6['size']>0x0&&(_0x3dce47=!!this['_joinWithAdjacentSuggestions'](_0x436aa6)||_0x3dce47),_0x3dce47;}),_0x13f71d['model']['document']['registerPostFixer'](_0x290fd8=>{let _0x5104b5=!0x1;for(const _0x1a55d3 of _0x13f71d['model']['document']['differ']['getChanges']())if('insert'==_0x1a55d3['type'])for(const _0x2a3ffc of this['_suggestions']['values']()){if(_0x2a3ffc['isMultiRange']||!_0x2a3ffc['isInContent'])continue;const _0x5d1a1d='formatBlock'==_0x2a3ffc['type'],_0x1977c3=this['_getAttributeKey'](_0x2a3ffc),_0x50fc77=_0x1977c3&&this['_isBlockAttribute'](_0x1977c3);if(!_0x5d1a1d&&!_0x50fc77)continue;const _0x19ba84=_0x2a3ffc['getFirstRange']();if(_0x19ba84['start']['parent']!=_0x19ba84['end']['parent']&&!_0x19ba84['end']['isAtEnd']){const _0x488f37=_0x13f71d['model']['createPositionAt'](_0x19ba84['start']['nodeAfter'],'end'),_0x30866a=_0x13f71d['model']['createRange'](_0x19ba84['start'],_0x488f37);_0x290fd8['updateMarker'](_0x2a3ffc['getFirstMarker'](),{'range':_0x30866a}),_0x5104b5=!0x0;}}return _0x5104b5;}),_0x13f71d['model']['document']['registerPostFixer'](_0x17fe53=>this['_processAttributeChanges'](_0x17fe53)),_0x13f71d['model']['document']['registerPostFixer'](_0x1bc3ca=>!_0x1bc3ca['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1bc3ca)),_0x13f71d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x13f71d['model']['document']['on']('change:data',(_0x2b6a2a,_0x94a40b)=>{if(!_0x94a40b['isLocal']||_0x94a40b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2cfa26=_0x13f71d['model']['document']['differ']['getChanges']();if(0x0==_0x2cfa26['length'])return;const _0x490701=[],_0x3b0b46=_0x2cfa26['filter'](_0x43d512=>'attribute'==_0x43d512['type']),_0x72aeb9=_0x2cfa26['filter'](_0x48db29=>'insert'==_0x48db29['type']&&'$text'!=_0x48db29['name']);for(const _0x14d1d4 of _0x3b0b46)this['_isRegisteredAttribute'](_0x14d1d4['attributeKey'])&&_0x490701['push']({'key':_0x14d1d4['attributeKey'],'newValue':_0x14d1d4['attributeNewValue'],'oldValue':_0x14d1d4['attributeOldValue'],'range':Ht(_0x14d1d4['range'],_0x13f71d['model'])});for(const _0x3b5ada of _0x72aeb9){if('rename'!=_0x3b5ada['action']&&'refresh'!=_0x3b5ada['action'])continue;const _0x3126a1=qt(_0x3b5ada['position']['nodeAfter'],_0x13f71d['model']),_0x4acfd5=_0x3b5ada['before'];'rename'==_0x3b5ada['action']&&_0x490701['push']({'key':m,'newValue':_0x3b5ada['name'],'oldValue':_0x4acfd5['name'],'range':_0x3126a1});for(const [_0x2749a9,_0x2963ff]of _0x4acfd5['attributes']){if(!this['_isRegisteredAttribute'](_0x2749a9))continue;const _0x26ce8a=_0x3b5ada['attributes']['get'](_0x2749a9);_0x2963ff!==_0x26ce8a&&_0x490701['push']({'key':_0x2749a9,'newValue':_0x26ce8a,'oldValue':_0x2963ff,'range':_0x3126a1});}for(const [_0x8c8411,_0x5f48b3]of _0x3b5ada['attributes'])this['_isRegisteredAttribute'](_0x8c8411)&&(_0x4acfd5['attributes']['has'](_0x8c8411)||_0x490701['push']({'key':_0x8c8411,'newValue':_0x5f48b3,'oldValue':null,'range':_0x3126a1}));}0x0!=_0x490701['length']&&_0x13f71d['model']['enqueueChange'](_0x94a40b,_0x53f09e=>{const _0x9a9b06=_0x140250();for(const {range:_0x5e0ee4,key:_0x169244,oldValue:_0x5279be,newValue:_0x153b73}of _0x490701)this['markAttributeChange'](_0x5e0ee4,_0x169244,_0x5279be,_0x153b73,{'groupId':_0x9a9b06});this['_reduceExistingSuggestions'](_0x53f09e,_0x490701);});},{'priority':'lowest'}),_0x13f71d['model']['markers']['on']('update:suggestion',(_0x1a3d92,_0x3c4aae,_0x3515cd)=>{if(null==_0x3515cd){const {id:_0x5b62b6}=this['_splitMarkerName'](_0x3c4aae['name']),_0x6c8d54=this['_suggestions']['get'](_0x5b62b6);_0x6c8d54&&_0x6c8d54['addMarkerName'](_0x3c4aae['name']);}}),_0x13f71d['model']['document']['on']('change:data',()=>{const _0x503d63=Array['from'](_0x13f71d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x32e508=>'suggestion'===this['_splitMarkerName'](_0x32e508['name'])['group']);if(0x0===_0x503d63['length'])return;_0x503d63['sort']((_0x32804f,_0x4ed864)=>{const _0x1fc767=_0x32804f['data']['oldRange'],_0x44c0ed=_0x4ed864['data']['oldRange'];return null===_0x1fc767&&null===_0x44c0ed?0x0:null===_0x1fc767&&null!==_0x44c0ed?-0x1:null!==_0x1fc767&&null===_0x44c0ed?0x1:_0x1fc767['start']['isBefore'](_0x44c0ed['start'])?-0x1:0x1;});const _0x4a43b2=new Set(),_0xc5dcb=new Set();for(const {name:_0x4ccac8,data:_0xf12e27}of _0x503d63){const {id:_0x398f5f}=this['_splitMarkerName'](_0x4ccac8);if(null===_0xf12e27['oldRange']){const _0x328a7d=this['_handleNewSuggestionMarker'](_0x4ccac8);_0xc5dcb['add'](_0x328a7d);}else{const _0xf14b75=this['_suggestions']['get'](_0x398f5f);null!==_0xf12e27['newRange']||_0xf14b75['isInContent']?(_0x4a43b2['add'](_0xf14b75['head']),_0xc5dcb['add'](_0xf14b75)):this['_removeSuggestion'](_0xf14b75);}}_0xc5dcb['size']>0x0&&this['_refreshSuggestionsChain'](_0xc5dcb);for(const _0x57dc3f of _0x4a43b2)this['fire']('suggestionChanged',_0x57dc3f);}),_0x13f71d['model']['on']('applyOperation',(_0xfcb74d,_0xb38edf)=>{const _0xc6935=_0xb38edf[0x0];if(!this['_suggestions']['size'])return;if(!_0xc6935['isDocumentOperation'])return;if(_0xc6935['batch']['isUndo']||!_0xc6935['batch']['isLocal'])return;let _0x33404b,_0x375d83;switch(_0xc6935['type']){case'insert':_0x33404b=_0x13f71d['model']['createPositionAt'](_0xc6935['position']),_0x375d83=_0x33404b['getShiftedBy'](_0xc6935['howMany']);break;case'split':_0x33404b=_0x13f71d['model']['createPositionAt'](_0xc6935['splitPosition']),_0x375d83=_0x13f71d['model']['createPositionAt'](_0xc6935['moveTargetPosition']);break;case'move':_0x33404b=_0x13f71d['model']['createPositionAt'](_0xc6935['targetPosition']),_0x375d83=_0x33404b['getShiftedBy'](_0xc6935['howMany']);break;default:return;}const _0xae6f93=_0x13f71d['model']['createRange'](_0x33404b,_0x375d83);_0x13f71d['model']['change'](()=>{for(const {suggestion:_0x401b82,meta:_0x52763b}of this['_findSuggestions'](_0xae6f93)){if(_0x401b82['isMultiRange'])continue;if('formatInline'==_0x401b82['type'])continue;const _0x216c9a=this['_getAttributeKey'](_0x401b82);if(_0x216c9a&&this['_isBlockAttribute'](_0x216c9a)&&'split'!=_0xc6935['type'])continue;const _0x4674c2=_0x401b82['data']&&_0x401b82['data']['multipleBlocks'];('formatBlock'!=_0x401b82['type']||'split'==_0xc6935['type']&&!_0x4674c2)&&(_0x52763b['containsRangeInObject']||'insertion'==_0x401b82['type']&&_0x52763b['isOwn']||_0x401b82['getFirstRange']()['containsRange'](_0xae6f93)&&this['_breakSuggestionMarker'](_0x401b82,_0x33404b,_0x375d83));}});},{'priority':'lowest'}),_0x13f71d['model']['on']('deleteContent',(_0x5fe9c6,_0x57e7b6)=>{const _0x15f818=_0x57e7b6[0x0],_0x2314c6=_0x57e7b6[0x1];if(_0x2314c6&&_0x2314c6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x15f818['isCollapsed'])return;const _0x544095=_0x13f71d['model']['schema'],{start:_0x18584c,end:_0x19bf27}=_0x15f818['getFirstRange'](),_0x1700c9=_0x18584c['nodeAfter']&&_0x544095['isLimit'](_0x18584c['nodeAfter'])?null:_0x544095['getNearestSelectionRange'](_0x18584c,'forward'),_0x1a089b=_0x19bf27['nodeBefore']&&_0x544095['isLimit'](_0x19bf27['nodeBefore'])?null:_0x544095['getNearestSelectionRange'](_0x19bf27,'backward'),_0x3ffd14=_0x13f71d['model']['createRange'](_0x1700c9?_0x1700c9['start']:_0x18584c,_0x1a089b?_0x1a089b['end']:_0x19bf27);_0x13f71d['model']['change'](_0x5883c4=>{this['markDeletion'](_0x3ffd14);const _0x528b9d=_0x13f71d['model']['schema']['getNearestSelectionRange'](_0x3ffd14['start']);_0x15f818['is']('documentSelection')?_0x5883c4['setSelection'](_0x528b9d):_0x15f818['setTo'](_0x528b9d);}),_0x5fe9c6['stop']();},{'priority':_0x568555['normal']+0xa}),_0x13f71d['model']['on']('insertContent',(_0x3b5220,_0x303e58)=>{const _0x1416f4=_0x303e58[_0x303e58['length']-0x1];_0x1416f4&&_0x1416f4['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x13f71d['model']['change'](()=>{let _0x396955=_0x13f71d['model']['insertContent'](_0x303e58[0x0],_0x303e58[0x1],_0x303e58[0x2],{'forceDefaultExecution':!0x0});if(!_0x396955)return;_0x3b5220['return']=_0x396955['clone']();const _0xc8b88e=_0x396955['end']['nodeBefore'],_0x3215ea=_0x13f71d['model']['schema'];_0xc8b88e&&_0x3215ea['isBlock'](_0xc8b88e)&&!_0x3215ea['isObject'](_0xc8b88e)&&(_0x396955=_0x13f71d['model']['createRange'](_0x396955['start'],_0x13f71d['model']['createPositionAt'](_0xc8b88e,'end'))),this['markInsertion'](_0x396955);}),_0x3b5220['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x32db92=new D(_0x13f71d,this['_suggestions']);_0x13f71d['commands']['add']('acceptSuggestion',_0x32db92),this['enableCommand']('acceptSuggestion');const _0x30a14c=new M(_0x13f71d,this['_suggestions']);_0x13f71d['commands']['add']('discardSuggestion',_0x30a14c),this['enableCommand']('discardSuggestion'),_0x13f71d['commands']['add']('acceptAllSuggestions',new $(_0x13f71d,_0x32db92,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x13f71d['commands']['add']('discardAllSuggestions',new $(_0x13f71d,_0x30a14c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x13f71d['commands']['add']('acceptSelectedSuggestions',new B(_0x13f71d,_0x32db92,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x13f71d['commands']['add']('discardSelectedSuggestions',new B(_0x13f71d,_0x30a14c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2482bf=_0x13f71d['plugins']['get']('CommentsRepository');this['listenTo'](_0x2482bf,'addComment',(_0x4d4eb8,{threadId:_0x436ee6})=>{const _0x51e87e=this['_suggestions']['get'](_0x436ee6);_0x51e87e&&_0x51e87e['commentThread']&&0x1===_0x51e87e['commentThread']['length']&&this['_updateSuggestionData'](_0x436ee6,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2482bf,'removeComment',(_0x188fed,{threadId:_0x2dd28f})=>{const _0x363d77=this['_suggestions']['get'](_0x2dd28f);_0x363d77&&_0x363d77['commentThread']&&!_0x363d77['commentThread']['length']&&this['_updateSuggestionData'](_0x2dd28f,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x39ec01){const _0x4dbd40=_0x5a541f([0x78,0x68,0x6a,0x6b,0x67,0x61,0x32,0x43,0x7a,0x56,0x50,0x36,0x34,0x58,0x41,0x4f,0x49,0x31,0x6e,0x64,0x71,0x35,0x37,0x48,0x66,0x73,0x47,0x53,0x76,0x72,0x4c,0x4e,0x52,0x74,0x30,0x38,0x51,0x44,0x69,0x54,0x62,0x59,0x77,0x6f,0x4b,0x33,0x46,0x57,0x4a,0x70,0x55,0x5a,0x79,0x4d,0x6d,0x75,0x63,0x39,0x45,0x65,0x6c,0x42]),_0xd3cc57=0x67596b20,_0x69d045=0x675e07c0^_0xd3cc57,_0x489375=window[_0x5a541f([0x44,0x61,0x74,0x65])][_0x5a541f([0x6e,0x6f,0x77])](),_0x16daa8=_0x39ec01[_0x5a541f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1d5d37=new window[(_0x5a541f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x359a15=>{_0x16daa8[_0x5a541f([0x6f,0x6e,0x63,0x65])](_0x5a541f([0x72,0x65,0x61,0x64,0x79]),_0x359a15);}),_0x4c35a8={[_0x5a541f([0x6b,0x74,0x79])]:_0x5a541f([0x45,0x43]),[_0x5a541f([0x75,0x73,0x65])]:_0x5a541f([0x73,0x69,0x67]),[_0x5a541f([0x63,0x72,0x76])]:_0x5a541f([0x50,0x2d,0x32,0x35,0x36]),[_0x5a541f([0x78])]:_0x5a541f([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]),[_0x5a541f([0x79])]:_0x5a541f([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]),[_0x5a541f([0x61,0x6c,0x67])]:_0x5a541f([0x45,0x53,0x32,0x35,0x36])},_0x8e5cc8=_0x16daa8[_0x5a541f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5a541f([0x67,0x65,0x74])](_0x5a541f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x8befa3(){let _0x9d5511,_0x4f2348=null,_0x26af2e=null;try{if(_0x8e5cc8==_0x5a541f([0x47,0x50,0x4c]))return _0x5a541f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9d5511=_0x1d484b(),!_0x9d5511)return _0x5a541f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9d5511[_0x5a541f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x26af2e=_0x16d225(_0x9d5511[_0x5a541f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9d5511[_0x5a541f([0x6a,0x74,0x69])])),await _0x1ec898()?_0x2c16e8()?_0x47f3b2()?_0x5a541f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1f4068()?(_0x9d5511[_0x5a541f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a541f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4f2348=_0x2c6d64(_0x5a541f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x9d5511[_0x5a541f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a541f([0x74,0x72,0x69,0x61,0x6c])&&(_0x4f2348=_0x2c6d64(_0x5a541f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x375cfd()):_0x5a541f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5a541f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5a541f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5a541f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x47f3b2(){const _0x17e4c8=[_0x5a541f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5a541f([0x74,0x72,0x69,0x61,0x6c])][_0x5a541f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9d5511[_0x5a541f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x489375/0x3e8:0xe10*_0x69d045;return _0x9d5511[_0x5a541f([0x65,0x78,0x70])]<_0x17e4c8;}function _0x2c16e8(){const _0xf9e505=_0x9d5511[_0x5a541f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xf9e505)return!0x1;if(_0xf9e505[_0x5a541f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a541f([0x2a])))return!0x0;if(_0xf9e505[_0x5a541f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a541f([0x54,0x43])))return!0x0;if(_0xf9e505[_0x5a541f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a541f([0x52,0x54,0x43]))){if(_0x283ccc())return!0x0;if(_0x3419b2()||_0x453612())return!0x0;}return!0x1;}function _0x1f4068(){const _0x1fcec8=_0x9d5511[_0x5a541f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1fcec8||0x0==_0x1fcec8[_0x5a541f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x355767}=new URL(window[_0x5a541f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1fcec8[_0x5a541f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x355767))return!0x0;const _0x24232a=_0x355767[_0x5a541f([0x73,0x70,0x6c,0x69,0x74])](_0x5a541f([0x2e]));return _0x1fcec8[_0x5a541f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12a4ba=>_0x12a4ba[_0x5a541f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a541f([0x2a])))[_0x5a541f([0x6d,0x61,0x70])](_0x52856a=>_0x52856a[_0x5a541f([0x73,0x70,0x6c,0x69,0x74])](_0x5a541f([0x2e])))[_0x5a541f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3aca35=>_0x3aca35[_0x5a541f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x24232a[_0x5a541f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5a541f([0x6d,0x61,0x70])](_0x104476=>Array(_0x24232a[_0x5a541f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x104476[_0x5a541f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5a541f([0x66,0x69,0x6c,0x6c])](_0x104476[0x0]===_0x5a541f([0x2a])?_0x5a541f([0x2a]):'')[_0x5a541f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x104476))[_0x5a541f([0x73,0x6f,0x6d,0x65])](_0x3f2a56=>_0x24232a[_0x5a541f([0x65,0x76,0x65,0x72,0x79])]((_0x4fb05a,_0x340f78)=>_0x3f2a56[_0x340f78]===_0x4fb05a||_0x3f2a56[_0x340f78]===_0x5a541f([0x2a])));}function _0x375cfd(){return _0x4f2348&&_0x26af2e?new window[(_0x5a541f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3eb6d1,_0x25802f)=>{_0x4f2348[_0x5a541f([0x74,0x68,0x65,0x6e])](_0x3eb6d1,_0x25802f),_0x26af2e[_0x5a541f([0x74,0x68,0x65,0x6e])](_0x15e65c=>{_0x15e65c!=_0x5a541f([0x56,0x61,0x6c,0x69,0x64])&&_0x3eb6d1(_0x15e65c);},_0x25802f);}):_0x4f2348||_0x26af2e||_0x5a541f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x16d225(_0x4b5be6,_0x5b6aa5){return new window[(_0x5a541f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bdf67=>{if(_0x45961c())return _0x1bdf67(_0x5a541f([0x56,0x61,0x6c,0x69,0x64]));_0x3f2a44(),_0x16daa8[_0x5a541f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5a541f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5378f4=!0x1;const _0x34f21c=_0x140250();function _0x23fd52(_0x176365){return!!_0x176365&&(typeof _0x176365===_0x5a541f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x176365===_0x5a541f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x176365[_0x5a541f([0x74,0x68,0x65,0x6e])]===_0x5a541f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x176365[_0x5a541f([0x63,0x61,0x74,0x63,0x68])]===_0x5a541f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ac95f(_0x5de791){_0x464dfc(_0x5de791)[_0x5a541f([0x74,0x68,0x65,0x6e])](_0x119a87=>{if(!_0x119a87||_0x119a87[_0x5a541f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5a541f([0x6f,0x6b]))return _0x5a541f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x32ae2e(_0x58eef9(_0x34f21c+_0x5b6aa5))!=_0x119a87[_0x5a541f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5a541f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5a541f([0x56,0x61,0x6c,0x69,0x64]);})[_0x5a541f([0x74,0x68,0x65,0x6e])](_0x3d00e2=>(_0x5b4cff(),_0x3d00e2),()=>{const _0x107917=_0x3e8e6c();return null==_0x107917?(_0x5b4cff(),_0x5a541f([0x56,0x61,0x6c,0x69,0x64])):_0x5a541f(_0x489375-_0x107917>(0x4355ef20^_0xd3cc57)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5a541f([0x74,0x68,0x65,0x6e])](_0x1bdf67)[_0x5a541f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1bdf67(_0x5a541f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4628fc=0x676f85a0^_0xd3cc57;function _0x5b4cff(){const _0x2e51eb=_0x5a541f([0x6c,0x6c,0x63,0x74,0x2d])+_0x32ae2e(_0x58eef9(_0x4b5be6)),_0x5303ed=_0x4c38ed(_0x32ae2e(window[_0x5a541f([0x4d,0x61,0x74,0x68])][_0x5a541f([0x63,0x65,0x69,0x6c])](_0x489375/_0x4628fc)));window[_0x5a541f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a541f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e51eb,_0x5303ed);}function _0x3e8e6c(){const _0x297f14=_0x5a541f([0x6c,0x6c,0x63,0x74,0x2d])+_0x32ae2e(_0x58eef9(_0x4b5be6)),_0x2bf026=window[_0x5a541f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a541f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x297f14);return _0x2bf026?window[_0x5a541f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c38ed(_0x2bf026),0x10)*_0x4628fc:null;}function _0x464dfc(_0x20b2ff){return new window[(_0x5a541f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x423aed,_0x383f6b)=>{_0x20b2ff[_0x5a541f([0x74,0x68,0x65,0x6e])](_0x423aed,_0x383f6b),window[_0x5a541f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x383f6b,0x6758bfe0^_0xd3cc57);});}}_0x16daa8[_0x5a541f([0x6f,0x6e])](_0x5a541f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x59e9d2,_0x2ef858)=>{if(_0x2ef858[0x0]!=_0x4b5be6)return _0x1bdf67(_0x5a541f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2ef858[0x1]={..._0x2ef858[0x1],[_0x5a541f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x34f21c};},{[_0x5a541f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a541f([0x68,0x69,0x67,0x68])}),_0x16daa8[_0x5a541f([0x6f,0x6e])](_0x5a541f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2cdcbc=>{_0x23fd52(_0x2cdcbc[_0x5a541f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5378f4=!0x0,_0x4ac95f(_0x2cdcbc[_0x5a541f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5a541f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a541f([0x6c,0x6f,0x77])}),_0x1d5d37[_0x5a541f([0x74,0x68,0x65,0x6e])](()=>{_0x5378f4||_0x1bdf67(_0x5a541f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x45961c(){return _0x16daa8[_0x5a541f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a541f([0x76,0x69,0x65,0x77])][_0x5a541f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5a541f([0x61,0x75,0x74,0x6f]);}function _0x3f2a44(){_0x16daa8[_0x5a541f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a541f([0x76,0x69,0x65,0x77])][_0x5a541f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a541f([0x61,0x75,0x74,0x6f]);}}function _0x2c6d64(_0x3277d7){const _0x65905=[new window[(_0x5a541f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x929b1f=>setTimeout(_0x929b1f,0x675055ec^_0xd3cc57)),_0x1d5d37[_0x5a541f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5a541f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x344007=>{let _0x39ec59=0x0;_0x16daa8[_0x5a541f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a541f([0x6f,0x6e])](_0x5a541f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x530a62,_0x44a042)=>{_0x44a042[0x0][_0x5a541f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x39ec59++,_0x39ec59==(0x67596ad8^_0xd3cc57)&&(_0x344007(),_0x530a62[_0x5a541f([0x6f,0x66,0x66])]());});}))];return window[_0x5a541f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a541f([0x72,0x61,0x63,0x65])](_0x65905)[_0x5a541f([0x74,0x68,0x65,0x6e])](()=>_0x3277d7);}async function _0x28001c(){await _0x1d5d37,_0x16daa8[_0x5a541f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a541f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x39c943,_0x16daa8[_0x5a541f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a541f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x39c943,_0x16daa8[_0x5a541f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a541f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x283ccc(){return _0x58e903(_0x5a541f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x15d39d(_0x5a541f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5a541f([0x73,0x74,0x61,0x74,0x65])]==_0x5a541f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3419b2(){return _0x58e903(_0x5a541f([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 _0x453612(){return _0x58e903(_0x5a541f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x20e995(_0x308c0b){const _0xed872e=_0x3ffde4();_0x16daa8[_0xed872e]=_0x5a541f([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x308c0b,_0x308c0b!=_0x5a541f([0x56,0x61,0x6c,0x69,0x64])&&_0x28001c();}function _0x3ffde4(){const _0x15bb60=window[_0x5a541f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5a541f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a541f([0x6e,0x6f,0x77])]())[_0x5a541f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a541f([0x2e]),'');let _0x548ea7=_0x5a541f([0x78]);for(let _0x19ffbc=0x0;_0x19ffbc<_0x15bb60[_0x5a541f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19ffbc+=0x2){let _0x3aa447=window[_0x5a541f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15bb60[_0x5a541f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19ffbc,_0x19ffbc+0x2));_0x3aa447>=_0x4dbd40[_0x5a541f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3aa447-=_0x4dbd40[_0x5a541f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x548ea7+=_0x4dbd40[_0x3aa447];}return _0x548ea7;}function _0x1d484b(){const _0x4f7c59=_0x8e5cc8[_0x5a541f([0x73,0x70,0x6c,0x69,0x74])](_0x5a541f([0x2e]));if(0x3!=_0x4f7c59[_0x5a541f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58fee9(_0x4f7c59[0x1]);function _0x58fee9(_0x371fe8){const _0x4509d8=_0x40ea8d(_0x371fe8);return _0x4509d8&&_0x3f9a4e()?_0x4509d8:null;function _0x3f9a4e(){const _0x5b949f=_0x4509d8[_0x5a541f([0x6a,0x74,0x69])],_0x3700ca=window[_0x5a541f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b949f[_0x5a541f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b949f[_0x5a541f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x50ff85={..._0x4509d8,[_0x5a541f([0x6a,0x74,0x69])]:_0x5b949f[_0x5a541f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5b949f[_0x5a541f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x50ff85[_0x5a541f([0x76,0x63])],_0x58eef9(_0x50ff85)==_0x3700ca;}}}async function _0x1ec898(){let _0x81429a=!0x0;try{const _0xf94637=_0x8e5cc8[_0x5a541f([0x73,0x70,0x6c,0x69,0x74])](_0x5a541f([0x2e])),[_0x9c0c4c,_0x476ac3,_0x15e869]=_0xf94637;return _0x205e0b(_0x9c0c4c),await _0x1a3bf7(_0x9c0c4c,_0x476ac3,_0x15e869),_0x81429a;}catch{return!0x1;}function _0x205e0b(_0x2f1515){const _0x481d2c=_0x40ea8d(_0x2f1515);_0x481d2c&&_0x481d2c[_0x5a541f([0x61,0x6c,0x67])]==_0x5a541f([0x45,0x53,0x32,0x35,0x36])||(_0x81429a=!0x1);}async function _0x1a3bf7(_0x5659ca,_0x22bcb3,_0x267be9){const _0x4ed6b3=window[_0x5a541f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5a541f([0x66,0x72,0x6f,0x6d])](_0x3672d3(_0x267be9),_0x4e24da=>_0x4e24da[_0x5a541f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5b859b=new window[(_0x5a541f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5a541f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5659ca+_0x5a541f([0x2e])+_0x22bcb3),_0xec9cb7=window[_0x5a541f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5a541f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xec9cb7)return;const _0x4ca5f3=await _0xec9cb7[_0x5a541f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5a541f([0x6a,0x77,0x6b]),_0x4c35a8,{[_0x5a541f([0x6e,0x61,0x6d,0x65])]:_0x5a541f([0x45,0x43,0x44,0x53,0x41]),[_0x5a541f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5a541f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5a541f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xec9cb7[_0x5a541f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5a541f([0x6e,0x61,0x6d,0x65])]:_0x5a541f([0x45,0x43,0x44,0x53,0x41]),[_0x5a541f([0x68,0x61,0x73,0x68])]:{[_0x5a541f([0x6e,0x61,0x6d,0x65])]:_0x5a541f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ca5f3,_0x4ed6b3,_0x5b859b)||(_0x81429a=!0x1);}}function _0x40ea8d(_0x4394ce){return _0x4394ce[_0x5a541f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5a541f([0x65,0x79]))?JSON[_0x5a541f([0x70,0x61,0x72,0x73,0x65])](_0x3672d3(_0x4394ce)):null;}function _0x3672d3(_0x38e107){return window[_0x5a541f([0x61,0x74,0x6f,0x62])](_0x38e107[_0x5a541f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5a541f([0x2b]))[_0x5a541f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5a541f([0x2f])));}function _0x58eef9(_0x403307){let _0xb690e0=0x1505;function _0x680d8a(_0x14aaa3){for(let _0x2ccf22=0x0;_0x2ccf22<_0x14aaa3[_0x5a541f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ccf22++){const _0x5edeec=_0x14aaa3[_0x5a541f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2ccf22);_0xb690e0=(_0xb690e0<<0x5)+_0xb690e0+_0x5edeec,_0xb690e0&=_0xb690e0;}}function _0x47c8f2(_0x4ef528){Array[_0x5a541f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ef528)?_0x4ef528[_0x5a541f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x47c8f2):_0x4ef528&&typeof _0x4ef528==_0x5a541f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5a541f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ef528)[_0x5a541f([0x73,0x6f,0x72,0x74])]()[_0x5a541f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x496ddd,_0x367344])=>{_0x680d8a(_0x496ddd),_0x47c8f2(_0x367344);}):_0x680d8a(window[_0x5a541f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ef528));}return _0x47c8f2(_0x403307),_0xb690e0>>>0x0;}function _0x32ae2e(_0x3dc295){return _0x3dc295[_0x5a541f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5a541f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5a541f([0x30]));}function _0x4c38ed(_0xf2ae82){return _0xf2ae82[_0x5a541f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5a541f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5a541f([0x6a,0x6f,0x69,0x6e])]('');}function _0x58e903(_0x49a307){return _0x16daa8[_0x5a541f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5a541f([0x68,0x61,0x73])](_0x49a307);}function _0x15d39d(_0x49b63a){return _0x16daa8[_0x5a541f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5a541f([0x67,0x65,0x74])](_0x49b63a);}function _0x39c943(){}function _0x5a541f(_0x50e6e8){return _0x50e6e8['map'](_0x10113f=>String['fromCharCode'](_0x10113f))['join']('');}_0x20e995(await _0x8befa3());}(this);}set['adapter'](_0x2c9381){if(this['_adapter'])throw new _0x33e300('track-changes-adapter-already-set',this);this['_adapter']=_0x2c9381;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x187fdd=!0x1,toJSON:_0x86275a=!0x1}={}){const _0xbf67da=[];for(const _0xa2bae2 of this['_suggestions']['values']())_0x187fdd&&!_0xa2bae2['isInContent']||_0xbf67da['push'](_0xa2bae2);return _0x86275a?_0xbf67da['map'](_0x3d84ac=>_0x3d84ac['toJSON']()):_0xbf67da;}['getSuggestion'](_0x447457){const _0x4eec4f=this['_suggestions']['get'](_0x447457);if(!_0x4eec4f)throw new _0x33e300('track-changes-suggestion-not-found',this);return _0x4eec4f;}['hasSuggestion'](_0x1caa81){return this['_suggestions']['has'](_0x1caa81);}['addSuggestionData'](_0x366406){const {authorId:_0x2f86aa,id:_0x16295d,originalSuggestionId:_0x43a518,attributes:_0x5382fb}=_0x366406,[_0x458655,_0x4e4191]=_0x366406['type']['split'](':'),_0xbc46d0=this['_suggestions']['get'](_0x16295d)||this['_createSuggestion'](_0x458655,_0x4e4191,_0x16295d,_0x2f86aa,_0x5382fb,_0x43a518);if(this['_addThreadToSuggestion'](_0xbc46d0),this['_checkSuggestionCorrectness'](_0xbc46d0,_0x458655,_0x4e4191||null,_0x2f86aa),_0xbc46d0['createdAt']=_0x366406['createdAt'],_0xbc46d0['_isDataLoaded']=!0x0,_0x5382fb&&_0x5382fb['@external']){const _0xa99896=_0x5382fb['@external'],_0x40e35d=this['_getExternalAuthor'](_0xa99896['authorName']);_0xbc46d0['authoredAt']=_0xa99896['createdAt'],_0xbc46d0['author']=_0x40e35d,_0xbc46d0['isExternal']=!0x0;}else _0xbc46d0['authoredAt']=_0x366406['createdAt'];switch(_0x366406['data']&&(_0xbc46d0['data']=_0x366406['data']),_0x366406['attributes']&&(_0xbc46d0['attributes']=_0x366406['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xbc46d0['_saved']=!0x0),this['_suggestionState']['get'](_0xbc46d0)){case'notReady':this['_suggestionState']['set'](_0xbc46d0,'dataReady');break;case'markerReady':_0xbc46d0['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xbc46d0])),this['_refreshSuggestionsChain'](new Set([_0xbc46d0])),this['_suggestionState']['set'](_0xbc46d0,'ready'),this['fire']('suggestionLoaded',_0xbc46d0)):this['_suggestionState']['set'](_0xbc46d0,'removed');}return _0xbc46d0;}['acceptSuggestion'](_0x4df528){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x15fb39 of _0x4df528['getAllAdjacentSuggestions']())_0x15fb39['accept']();});});}['discardSuggestion'](_0x3d8ac0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4a60e1 of _0x3d8ac0['getAllAdjacentSuggestions']())_0x4a60e1['discard']();});});}['enableCommand'](_0x184a2d,_0x44c6ce){const _0x2838e0=this['editor']['commands']['get'](_0x184a2d);if(!_0x2838e0)throw new _0x33e300('track-changes-command-not-found',this,{'commandName':_0x184a2d});if(this['_enabledCommands']['has'](_0x2838e0))throw new _0x33e300('track-changes-enable-command-twice',this,{'commandName':_0x184a2d});this['_enabledCommands']['add'](_0x2838e0),_0x44c6ce&&_0x2838e0['on']('execute',(_0x477575,_0x53f2cf)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x53f2cf['length']>0x0&&_0x53f2cf[_0x53f2cf['length']-0x1]&&_0x53f2cf[_0x53f2cf['length']-0x1]['forceDefaultExecution']?_0x53f2cf['pop']():(_0x477575['return']=_0x44c6ce((..._0xea564f)=>_0x2838e0['execute'](..._0xea564f,{'forceDefaultExecution':!0x0}),..._0x53f2cf),_0x477575['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x54ab99){let _0x5b916e,_0x42bdcc;const _0x11ea5c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5b916e=_0x54ab99();}catch(_0x5821f7){_0x42bdcc=_0x5821f7;}return _0x11ea5c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x42bdcc&&_0x33e300['rethrowUnexpectedError'](_0x42bdcc,this),_0x5b916e;}['markInsertion'](_0x3929b4,_0x656bb2=null,_0x146a35={}){if(_0x3929b4['isCollapsed'])return null;const _0x4e4351=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x146a35['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x14d96a,meta:_0x57da22}of this['_findSuggestions'](_0x3929b4,'insertion'))if(_0x57da22['isOwn']){if(!_0x57da22['isNextTo']){if(_0x57da22['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x14d96a,_0x146a35))continue;return _0x14d96a;}if(Qt(_0x14d96a,_0x146a35))return _0x14d96a;this['_breakSuggestionMarker'](_0x14d96a,_0x3929b4['start'],_0x3929b4['end']);break;}if(_0x656bb2==_0x14d96a['subType']&&Qt(_0x14d96a,_0x146a35)){const _0x48c4ef=_0x14d96a['getFirstRange']();return _0x48c4ef['start']['isEqual'](_0x3929b4['end'])?this['_setSuggestionRange'](_0x14d96a,this['_model']['createRange'](_0x3929b4['start'],_0x48c4ef['end'])):this['_setSuggestionRange'](_0x14d96a,this['_model']['createRange'](_0x48c4ef['start'],_0x3929b4['end'])),_0x14d96a;}}const _0x3cce7f=_0x140250(),_0x370ab9=_0x4e4351['id'],_0x39c9f4=_0x656bb2?'insertion:'+_0x656bb2:'insertion',_0x507b44=this['_setSuggestionData']({'id':_0x3cce7f,'type':_0x39c9f4,'createdAt':new Date(),'authorId':_0x370ab9,'attributes':_0x146a35});return this['_addSuggestionMarker'](_0x39c9f4,_0x3cce7f,_0x370ab9,_0x3929b4),_0x507b44;}['markMultiRangeInsertion'](_0x5e5e2b,_0x21dbe6='multi',_0x668424={}){const _0x14e1c4=this['editor']['plugins']['get']('Users')['me'],_0x7a09b5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x21dbe6,'join');this['_trackingSessionId']&&(_0x668424['trackingSessionId']=this['_trackingSessionId']);for(const _0x4e6ba2 of this['getSuggestions']())if(_0x4e6ba2['author']['id']==_0x14e1c4['id']&&'insertion'==_0x4e6ba2['type']&&_0x4e6ba2['subType']==_0x21dbe6&&Qt(_0x4e6ba2,_0x668424)&&(_0x7a09b5(_0x4e6ba2['getRanges'](),_0x5e5e2b)||_0x7a09b5(_0x5e5e2b,_0x4e6ba2['getRanges']()))){for(const _0x5d8140 of _0x5e5e2b)_0x4e6ba2['addRange'](_0x5d8140);return _0x4e6ba2;}for(const {suggestion:_0x14e9f9,meta:_0x19cbec}of this['_findSuggestions'](_0x5e5e2b,'insertion')){if(!_0x19cbec['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x19cbec['containsRangeInObject'])continue;if(!Qt(_0x14e9f9,_0x668424))continue;let _0x43577f=!0x0;for(const _0x4eb938 of _0x14e9f9['getRanges']())for(const _0x1ab8d7 of _0x5e5e2b)if(!_0x4eb938['containsRange'](_0x1ab8d7)){_0x43577f=!0x1;break;}if(_0x43577f)return _0x14e9f9;}const _0xb00e81=_0x140250(),_0x1c80a0=_0x14e1c4['id'],_0x3d9d25='insertion:'+_0x21dbe6,_0x2fe387=this['_setSuggestionData']({'id':_0xb00e81,'type':_0x3d9d25,'createdAt':new Date(),'authorId':_0x1c80a0,'attributes':_0x668424});for(const _0x1fe32c of _0x5e5e2b)this['_addSuggestionMarker'](_0x3d9d25,_0xb00e81,_0x1c80a0,_0x1fe32c,T['getMultiRangeId']());return _0x2fe387;}['markInlineFormat'](_0x471750,_0x3250a5,_0x52e074=null,_0x469909={}){if(_0x52e074=_0x52e074||Lt(_0x3250a5),_0x471750['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x469909['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1ee662=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x52e074,'accept');return this['forceDefaultExecution'](()=>_0x1ee662([_0x471750],_0x3250a5,_0x469909)),null;}const _0x5a62e4=this['editor']['plugins']['get']('Users')['me'],_0x95c12f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x29e619,meta:_0x28e92c}of this['_findSuggestions'](_0x471750,'insertion'))_0x28e92c['isOwn']&&!_0x28e92c['isInsideObject']&&_0x95c12f['push'](..._0x29e619['getRanges']());}const _0x1869f7=function(_0x519d9c,_0x3a6351){const _0x5c02ec=[];for(const _0x27e04a of _0x3a6351){const _0x5066a3=_0x519d9c['getIntersection'](_0x27e04a);_0x5066a3&&_0x5c02ec['push'](_0x5066a3);}return _0x5c02ec;}(_0x471750,_0x95c12f),_0x56f06c=function(_0x5b64de,_0x59544c){const _0x47d56b=[_0x5b64de];for(const _0x98da88 of _0x59544c){let _0x2793fa=0x0;for(;_0x2793fa<_0x47d56b['length'];){const _0x565295=_0x47d56b[_0x2793fa]['getDifference'](_0x98da88);_0x47d56b['splice'](_0x2793fa,0x1,..._0x565295),_0x2793fa+=_0x565295['length'];}}return _0x47d56b;}(_0x471750,_0x95c12f);_0x1869f7['length']&&this['_model']['change'](()=>{for(const _0x11b823 of _0x1869f7){const _0x494eb6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x52e074,'accept');this['forceDefaultExecution'](()=>_0x494eb6([_0x11b823],_0x3250a5,_0x469909));}});for(const _0x476373 of _0x56f06c){let _0x25c65a=null,_0x15651c=_0x476373['start'],_0xefdaf3=_0x476373['end'];for(const {suggestion:_0x5b25e8,meta:_0x2666ee}of this['_findSuggestions'](_0x476373,'formatInline')){if(!_0x2666ee['isOwn'])continue;if(_0x5b25e8['subType']!=_0x52e074)continue;if(!Qt(_0x5b25e8,_0x469909))continue;const _0x3a9a29=_0x5b25e8['getFirstRange']();if(_0x3a9a29['containsRange'](_0x476373,!0x0))return null;_0x15651c=_0x15651c['isBefore'](_0x3a9a29['start'])?_0x15651c:_0x3a9a29['start'],_0xefdaf3=_0xefdaf3['isAfter'](_0x3a9a29['end'])?_0xefdaf3:_0x3a9a29['end'],_0x25c65a?_0x3a9a29['start']['isBefore'](_0x25c65a['getFirstRange']()['start'])?(_0x25c65a['removeMarkers'](),_0x25c65a=_0x5b25e8):_0x5b25e8['removeMarkers']():_0x25c65a=_0x5b25e8;}const _0x2051d7=this['_model']['createRange'](_0x15651c,_0xefdaf3);if(_0x25c65a)this['_setSuggestionRange'](_0x25c65a,_0x2051d7);else{const _0x2e9835=_0x140250(),_0x2423de=_0x5a62e4['id'];this['_setSuggestionData']({'id':_0x2e9835,'type':'formatInline:'+_0x52e074,'data':_0x3250a5,'createdAt':new Date(),'authorId':_0x2423de,'attributes':_0x469909}),this['_addSuggestionMarker']('formatInline:'+_0x52e074,_0x2e9835,_0x2423de,_0x2051d7);}}return null;}['markBlockFormat'](_0x1fb9e4,_0x1bdded,_0x10e413=[],_0x48dcb2=null,_0x2a6a4e={}){_0x1bdded['formatGroupId']||(_0x1bdded['formatGroupId']=_0x1bdded['commandName']),_0x1bdded['multipleBlocks']=_0x1fb9e4['is']('range'),_0x48dcb2=_0x48dcb2||Lt(_0x1bdded);const _0x1f55da=_0x10e413['map'](_0x48c467=>qt(_0x48c467,this['_model'])),_0x1d0eb4=_0x1fb9e4['is']('range')?_0x1fb9e4:qt(_0x1fb9e4,this['_model']);if(this['_trackingSessionId']&&(_0x2a6a4e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xe396fb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48dcb2,'accept');return this['forceDefaultExecution'](()=>_0xe396fb([_0x1d0eb4],_0x1bdded,_0x2a6a4e)),null;}_0x1f55da['push'](_0x1d0eb4);let _0xfeba2a=!0x0;for(const _0x20fd84 of _0x1f55da)if(!this['_rangeIsInLocalUserInsertion'](_0x20fd84)){_0xfeba2a=!0x1;break;}if(_0xfeba2a&&'always'!==this['_trackFormatChanges']){const _0x35f542=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48dcb2,'accept');return this['forceDefaultExecution'](()=>_0x35f542([_0x1d0eb4],_0x1bdded,_0x2a6a4e)),null;}let _0x5a4ac4=null,_0x56a1f3=_0x1d0eb4['start'],_0x48e0dd=_0x1d0eb4['end'];for(const {suggestion:_0x20f44b,meta:_0x259a0a}of this['_findSuggestions'](_0x1d0eb4,'formatBlock')){if(!_0x259a0a['isOwn'])continue;if(_0x259a0a['isNextTo']||_0x259a0a['containsRangeInObject']||_0x259a0a['isInsideObject'])continue;if(_0x20f44b['data']['formatGroupId']!=_0x1bdded['formatGroupId'])continue;if(!Qt(_0x20f44b,_0x2a6a4e))continue;const _0x55b946=_0x20f44b['getFirstRange']();if(_0x20f44b['subType']==_0x48dcb2){if(_0x55b946['containsRange'](_0x1d0eb4,!0x0))return null;_0x56a1f3=_0x56a1f3['isBefore'](_0x55b946['start'])?_0x56a1f3:_0x55b946['start'],_0x48e0dd=_0x48e0dd['isAfter'](_0x55b946['end'])?_0x48e0dd:_0x55b946['end'],_0x5a4ac4?_0x55b946['start']['isBefore'](_0x5a4ac4['getFirstRange']()['start'])?(_0x5a4ac4['removeMarkers'](),_0x5a4ac4=_0x20f44b):_0x20f44b['removeMarkers']():_0x5a4ac4=_0x20f44b;}else{const _0x1beb0e=_0x1d0eb4['getIntersection'](_0x55b946);this['_cutOutSuggestionMarker'](_0x20f44b,_0x1beb0e);}}const _0x3e5eee=this['editor']['plugins']['get']('Users')['me'],_0x256549=_0x140250(),_0x3ef851=_0x3e5eee['id'];if(_0x5a4ac4)return this['_setSuggestionRange'](_0x5a4ac4,this['_model']['createRange'](_0x56a1f3,_0x48e0dd)),_0x5a4ac4;{const _0x3dd01e=this['_setSuggestionData']({'id':_0x256549,'type':'formatBlock:'+_0x48dcb2,'data':_0x1bdded,'createdAt':new Date(),'authorId':_0x3ef851,'attributes':_0x2a6a4e});return this['_addSuggestionMarker']('formatBlock:'+_0x48dcb2,_0x256549,_0x3ef851,this['_model']['createRange'](_0x56a1f3,_0x48e0dd)),_0x3dd01e;}}['markMultiRangeBlockFormat'](_0x4cf559,_0x21ee6c,_0x393ec0=[],_0x32a053=null,_0x12223b={}){_0x21ee6c['formatGroupId']||(_0x21ee6c['formatGroupId']=_0x21ee6c['commandName']);const _0x597c39=_0x4cf559[0x0];_0x21ee6c['multipleBlocks']=_0x597c39['is']('range'),_0x32a053=_0x32a053||Lt(_0x21ee6c);const _0x70995b=_0x393ec0['map'](_0x13f3f6=>qt(_0x13f3f6,this['_model'])),_0x5f2cb6=_0x597c39['is']('range')?_0x4cf559:_0x4cf559['map'](_0x1ad0df=>qt(_0x1ad0df,this['_model']));if(this['_trackingSessionId']&&(_0x12223b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4075e7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x32a053,'accept');return this['forceDefaultExecution'](()=>_0x4075e7(_0x5f2cb6,_0x21ee6c,_0x12223b)),null;}_0x70995b['push'](..._0x5f2cb6);let _0x2d42a0=!0x0;for(const _0xdbf3d3 of _0x70995b)if(!this['_rangeIsInLocalUserInsertion'](_0xdbf3d3)){_0x2d42a0=!0x1;break;}if(_0x2d42a0&&'always'!==this['_trackFormatChanges']){const _0x3678f1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x32a053,'accept');return this['forceDefaultExecution'](()=>_0x3678f1(_0x5f2cb6,_0x21ee6c,_0x12223b)),null;}const _0xc7bc44=this['editor']['plugins']['get']('Users')['me'];for(const _0xd6afbd of this['getSuggestions']()){const _0x3dd953=_0xd6afbd['data'];if(_0xd6afbd['author']['id']!=_0xc7bc44['id'])continue;if('formatBlock'!=_0xd6afbd['type']||_0x3dd953['formatGroupId']!=_0x21ee6c['formatGroupId'])continue;if(!Qt(_0xd6afbd,_0x12223b))continue;const _0x446764=_0xd6afbd['subType']==_0x32a053;for(let _0x4fc306=0x0;_0x4fc306<_0x5f2cb6['length'];_0x4fc306++){const _0xea5bd7=_0x5f2cb6[_0x4fc306];for(const _0x2667f3 of _0xd6afbd['getMarkers']()){const _0x3a8f4c=_0x2667f3['getRange']();if(_0xea5bd7['isEqual'](_0x3a8f4c)){_0x446764?(_0x5f2cb6['splice'](_0x4fc306,0x1),_0x4fc306--):_0xd6afbd['removeMarker'](_0x2667f3['name']);break;}}}}if(0x0==_0x5f2cb6['length'])return null;const _0x39963a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x32a053,'join');for(const _0x28753e of this['getSuggestions']()){const _0x3c790c=_0x28753e['data'];if(_0x28753e['author']['id']==_0xc7bc44['id']&&('formatBlock'==_0x28753e['type']&&_0x3c790c['formatGroupId']==_0x21ee6c['formatGroupId']&&_0x28753e['subType']==_0x32a053&&Qt(_0x28753e,_0x12223b)&&(_0x39963a(_0x28753e['getRanges'](),_0x5f2cb6)||_0x39963a(_0x5f2cb6,_0x28753e['getRanges']())))){for(const _0x47f161 of _0x5f2cb6)_0x28753e['addRange'](_0x47f161);return _0x28753e;}}const _0x5ad938=_0x140250(),_0x56aa2d=_0xc7bc44['id'],_0x367111='formatBlock:'+_0x32a053,_0x1b2f67=this['_setSuggestionData']({'id':_0x5ad938,'type':_0x367111,'data':_0x21ee6c,'createdAt':new Date(),'authorId':_0x56aa2d,'attributes':_0x12223b});for(const _0x1d0001 of _0x5f2cb6)this['_addSuggestionMarker'](_0x367111,_0x5ad938,_0x56aa2d,_0x1d0001,T['getMultiRangeId']());return _0x1b2f67;}['markDeletion'](_0x5edce8,_0x121d7a=null,_0x1798cf={}){if(_0x5edce8['isCollapsed'])return null;const _0x15b0f9=this['editor']['plugins']['get']('Users')['me'],_0xe846fa=new _0x3590e7(_0x5edce8['start'],_0x5edce8['end']);this['_trackingSessionId']&&(_0x1798cf['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4f7b62,meta:_0x2522ad}of this['_findSuggestions'](_0xe846fa,'insertion'))if(_0x2522ad['isOwn']&&!_0x2522ad['isNextTo']){if(_0x4f7b62['isMultiRange']){const _0x4cb6c2=_0x4f7b62['getRanges']()['filter'](_0x302dab=>'$graveyard'!=_0x302dab['root']['rootName']);_0x4cb6c2['every'](_0x188ede=>_0xe846fa['containsRange'](_0x188ede,!0x0))&&_0x4f7b62['discard']();if(_0x4cb6c2['some'](_0x1480bb=>_0x1480bb['containsRange'](_0xe846fa,!0x0))){const _0x59b87f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x121d7a,'accept');return this['forceDefaultExecution'](()=>_0x59b87f([_0xe846fa],null,_0x1798cf)),null;}}else{const _0x46d3bc=_0xe846fa['getIntersection'](_0x4f7b62['getFirstRange']());null!==_0x46d3bc&&_0x4f7b62['_onDiscard']([_0x46d3bc],null,_0x1798cf);}}if(_0xe846fa['detach'](),_0xe846fa['isCollapsed']||'$graveyard'==_0xe846fa['root']['rootName'])return null;let _0x16c1bf=null,_0x2e4497=_0xe846fa['start'],_0x20be79=_0xe846fa['end'];const _0x5d30c6=this['_findSuggestions'](_0xe846fa,'deletion');for(const {suggestion:_0x215a7,meta:_0x5c6a66}of _0x5d30c6){const _0x475bde=this['_model']['createRange'](_0x2e4497,_0x20be79);if(_0x5c6a66['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5c6a66['containsRangeInObject']&&!_0x5c6a66['isInsideObject'])){if(_0x215a7['isMultiRange']){if(!Qt(_0x215a7,_0x1798cf))continue;let _0x1aafc4=!0x0;for(const _0x28a587 of _0x215a7['getRanges']()){if(_0x28a587['containsRange'](_0x475bde,!0x0))return _0x215a7;_0x475bde['containsRange'](_0x28a587)||(_0x1aafc4=!0x1);}_0x1aafc4&&_0x215a7['discard']();}else{const _0xa2aa56=_0x215a7['getFirstRange']();if(_0xa2aa56['containsRange'](_0x475bde,!0x0))return _0x215a7;if(!Qt(_0x215a7,_0x1798cf)){_0x475bde['containsRange'](_0xa2aa56)?_0x215a7['removeMarkers']():_0xa2aa56['containsPosition'](_0x2e4497)?_0x2e4497=_0xa2aa56['end']:_0xa2aa56['containsPosition'](_0x20be79)&&(_0x20be79=_0xa2aa56['start']);continue;}_0x2e4497=_0x2e4497['isBefore'](_0xa2aa56['start'])?_0x2e4497:_0xa2aa56['start'],_0x20be79=_0x20be79['isAfter'](_0xa2aa56['end'])?_0x20be79:_0xa2aa56['end'],_0x1798cf=Object['assign']({},_0x215a7['attributes']),_0x16c1bf?_0xa2aa56['start']['isBefore'](_0x16c1bf['getFirstRange']()['start'])?(_0x16c1bf['removeMarkers'](),_0x16c1bf=_0x215a7):_0x215a7['removeMarkers']():_0x16c1bf=_0x215a7;}}}if(_0x16c1bf)return this['_setSuggestionRange'](_0x16c1bf,this['_model']['createRange'](_0x2e4497,_0x20be79)),_0x16c1bf;{const _0xe87113=_0x140250(),_0x273bc4=this['_model']['createRange'](_0x2e4497,_0x20be79),_0x55926f=_0x15b0f9['id'],_0x6f84a2=_0x121d7a?'deletion:'+_0x121d7a:'deletion',_0x5dc8a7=this['_setSuggestionData']({'id':_0xe87113,'type':_0x6f84a2,'createdAt':new Date(),'authorId':_0x55926f,'attributes':_0x1798cf});return this['_addSuggestionMarker'](_0x6f84a2,_0xe87113,_0x55926f,_0x273bc4),_0x5dc8a7;}}['markMultiRangeDeletion'](_0xedc16d,_0x3a144a='multi',_0x3ae2f5={}){const _0x108741=this['editor']['plugins']['get']('Users')['me'],_0x56d19e=_0xedc16d['map'](_0x3204b7=>new _0x3590e7(_0x3204b7['start'],_0x3204b7['end'])),_0x48e269=new Set();this['_trackingSessionId']&&(_0x3ae2f5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x437087,meta:_0x48bcf8}of this['_findSuggestions'](_0x56d19e,'insertion'))_0x48bcf8['isOwn']&&!_0x48bcf8['isNextTo']&&_0x48e269['add'](_0x437087);for(const _0x2854ec of _0x48e269)if(_0x2854ec['isMultiRange']){const _0x51de26=_0x2854ec['getRanges']();(!_0x2854ec['attributes']||!_0x2854ec['attributes']['skipNestingCheck'])&&(_0x51de26['every'](_0x5c75ca=>_0x56d19e['some'](_0x4613cd=>_0x4613cd['containsRange'](_0x5c75ca,!0x0)))&&_0x2854ec['discard']());if(_0x56d19e['every'](_0x343e4d=>_0x51de26['some'](_0x3d708e=>_0x3d708e['containsRange'](_0x343e4d,!0x0)))){const _0x5baf8f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a144a,'accept');return this['forceDefaultExecution'](()=>_0x5baf8f(_0xedc16d,null,_0x3ae2f5)),null;}}else{const _0x27c3a9=_0x2854ec['getFirstRange']();_0x56d19e['some'](_0x335b3f=>_0x335b3f['containsRange'](_0x27c3a9,!0x0))&&_0x2854ec['discard']();if(_0x56d19e['every'](_0x38708f=>_0x27c3a9['containsRange'](_0x38708f,!0x0))){const _0x2bfd27=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a144a,'accept');return this['forceDefaultExecution'](()=>_0x2bfd27(_0x56d19e,null,_0x3ae2f5)),null;}}const _0x3a3949=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a144a,'join');let _0x160944=null;for(const _0x1ebbd0 of this['getSuggestions']())if(_0x1ebbd0['author']['id']==_0x108741['id']&&_0x1ebbd0['isInContent']&&'deletion'==_0x1ebbd0['type']&&_0x1ebbd0['subType']==_0x3a144a&&Qt(_0x1ebbd0,_0x3ae2f5)&&(_0x3a3949(_0x1ebbd0['getRanges'](),_0x56d19e)||_0x3a3949(_0x56d19e,_0x1ebbd0['getRanges']()))){if(_0x160944){if(_0x1ebbd0['commentThread']&&_0x1ebbd0['commentThread']['length'])continue;for(const _0x297c54 of _0x1ebbd0['getRanges']())_0x160944['isIntersectingWithRange'](_0x297c54)||_0x160944['addRange'](_0x297c54);_0x1ebbd0['removeMarkers']();}else{_0x160944=_0x1ebbd0;for(const _0x869816 of _0x56d19e)_0x1ebbd0['isIntersectingWithRange'](_0x869816)||_0x1ebbd0['addRange'](_0x869816);}}if(_0x160944)return _0x160944;_0x48e269['clear']();for(const {suggestion:_0x2ee8b2,meta:_0x57c88a}of this['_findSuggestions'](_0x56d19e,'deletion'))_0x57c88a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x57c88a['containsRangeInObject']&&!_0x57c88a['isInsideObject'])&&Qt(_0x2ee8b2,_0x3ae2f5)&&_0x48e269['add'](_0x2ee8b2);for(const _0x4d35d1 of _0x48e269){const _0x88000b=_0x4d35d1['getRanges']();if(!_0x3ae2f5||!_0x3ae2f5['skipNestingCheck']){if(_0x56d19e['every'](_0x174333=>_0x88000b['some'](_0x51afbc=>_0x51afbc['containsRange'](_0x174333,!0x0))))return _0x4d35d1;}(!_0x4d35d1['attributes']||!_0x4d35d1['attributes']['skipNestingCheck'])&&(_0x88000b['every'](_0x41f3fe=>_0x56d19e['some'](_0x2bc4e4=>_0x2bc4e4['containsRange'](_0x41f3fe,!0x0)))&&_0x4d35d1['discard']());}const _0x3c7552=_0x140250(),_0x38265c=_0x108741['id'],_0xad2d45='deletion:'+_0x3a144a,_0x45f447=this['_setSuggestionData']({'id':_0x3c7552,'type':_0xad2d45,'createdAt':new Date(),'authorId':_0x38265c,'attributes':_0x3ae2f5});for(const _0xc9162a of _0x56d19e)_0xc9162a['detach'](),_0xc9162a['isCollapsed']||'$graveyard'==_0xc9162a['root']['rootName']||this['_addSuggestionMarker'](_0xad2d45,_0x3c7552,_0x38265c,_0xc9162a,T['getMultiRangeId']());return _0x45f447;}['markAttributeChange'](_0x41aabc,_0x5d8034,_0x28086,_0xa7e9d0,_0x2cb7a4){if(_0x41aabc['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x75b14b=this['editor']['plugins']['get']('Users')['me']['id'],_0x578fd2=Array['from'](this['_suggestions']['values']())['filter'](_0x46e4a5=>'attribute'==_0x46e4a5['type']&&_0x46e4a5['data']['key']==_0x5d8034&&_0x46e4a5['isIntersectingWithRange'](_0x41aabc));if(this['_trackingSessionId']&&(_0x2cb7a4['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x21c47b=this['_findSuggestions'](_0x41aabc,'insertion')['filter'](({meta:_0x3467df})=>_0x3467df['isOwn']&&!_0x3467df['isInsideObject']&&!_0x3467df['isNextTo'])['map'](({suggestion:_0x474638})=>_0x474638);_0x578fd2['unshift'](..._0x21c47b);}const _0x5dfaa3=new Map([[_0x41aabc,_0x28086]]);for(const _0x405530 of _0x578fd2){const _0x12c431='attribute'==_0x405530['type']?_0x405530['data']['oldValue']:void 0x0,_0x258af3=_0x405530['getFirstRange'](),_0x596c80=Array['from'](_0x5dfaa3['keys']())['find'](_0x413c56=>_0x413c56['isIntersecting'](_0x258af3));if(!_0x596c80)continue;const _0x1752c7=_0x596c80['getDifference'](_0x258af3);this['_isBlockAttribute'](_0x5d8034)&&'insertion'==_0x405530['type']&&0x0!=_0x1752c7['length']||(_0x5dfaa3['delete'](_0x596c80),_0x1752c7['forEach'](_0x50baef=>{_0x5dfaa3['set'](_0x50baef,_0x28086);}),'insertion'!=_0x405530['type']&&_0x12c431!=_0xa7e9d0&&_0x5dfaa3['set'](_0x596c80['getIntersection'](_0x258af3),_0x12c431));}const _0x37443b=[];for(const [_0x1b1e96,_0x1a8a7c]of _0x5dfaa3){const _0x1e390b=_0x140250(),_0x84ff95={'key':_0x5d8034,'oldValue':_0x1a8a7c,'newValue':_0xa7e9d0};_0x5d8034['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':_0x5d8034});const _0x3d9c98=('attribute:'+(_0x5d8034+'|'+Lt({'newValue':_0xa7e9d0})))['substring'](0x0,0x3c),_0x2d1efa=this['_setSuggestionData']({'id':_0x1e390b,'type':_0x3d9c98,'data':_0x84ff95,'createdAt':new Date(),'authorId':_0x75b14b,'attributes':_0x2cb7a4});_0x37443b['push'](_0x2d1efa),this['_addSuggestionMarker'](_0x3d9c98,_0x1e390b,_0x75b14b,_0x1b1e96);}return _0x37443b;}['enableDefaultAttributesIntegration'](_0xdeab52){this['enableCommand'](_0xdeab52,(_0x19f44d,..._0x578664)=>{this['recordAttributeChanges'](()=>{_0x19f44d(..._0x578664);});});}['registerBlockAttribute'](_0x299ff7){this['_blockAttributeKeys']['add'](_0x299ff7);}['registerInlineAttribute'](_0x4c3720){this['_inlineAttributeKeys']['add'](_0x4c3720);}['startTrackingSession'](_0x394e8b){return this['_trackingSessionId']=void 0x0!==_0x394e8b?_0x394e8b:_0x140250(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1fa19a){return'attribute'==_0x1fa19a['type']?_0x1fa19a['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x168f8c,_0xe2f616){const _0x4f7116=_0x168f8c['getFirstMarker']();this['_model']['change'](_0x91b860=>{_0x91b860['updateMarker'](_0x4f7116,{'range':_0xe2f616});});}['_addThreadToSuggestion'](_0x258f6c){const _0x3c2650=_0x258f6c['id'],_0x182534=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3c2650)||this['_commentsRepository']['addCommentThread']({'channelId':_0x182534,'threadId':_0x3c2650,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3ff2b5=this['_commentsRepository']['getCommentThread'](_0x3c2650);_0x3ff2b5['unbind']('isRemovable'),_0x3ff2b5['isRemovable']=!0x1,_0x258f6c['commentThread']=_0x3ff2b5;}['_checkSuggestionCorrectness'](_0x311276,_0x48e81c,_0x5ef66c,_0x3b5955){if(_0x311276['type']!=_0x48e81c||_0x311276['subType']!=_0x5ef66c||_0x311276['creator']['id']!=_0x3b5955)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x33e300('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3cb0a3,_0x24ad17){const _0x4d8879=_0x3cb0a3['getFirstRange']();if(_0x24ad17['isEqual'](_0x4d8879))_0x3cb0a3['removeMarkers']();else{if(_0x4d8879['containsRange'](_0x24ad17)){const _0x2ef937=this['_model']['createPositionAt'](_0x24ad17['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3cb0a3,this['_model']['createRange'](_0x4d8879['start'],_0x2ef937));const _0x3dcd99=_0x140250(),_0x4f978e=_0x3cb0a3['creator']['id'],_0x2d0b05=_0x3cb0a3['type']+':'+_0x3cb0a3['subType'];this['_setSuggestionData']({'id':_0x3dcd99,'type':_0x2d0b05,'createdAt':new Date(),'authorId':_0x4f978e,'data':_0x3cb0a3['data'],'attributes':_0x3cb0a3['attributes']});const _0x522c79=this['_model']['createPositionAt'](_0x24ad17['end']['parent'],'after'),_0x398228=this['_model']['createRange'](_0x522c79,_0x4d8879['end']);this['_addSuggestionMarker'](_0x2d0b05,_0x3dcd99,_0x4f978e,_0x398228);}else{if(_0x4d8879['containsPosition'](_0x24ad17['start'])){const _0x404aab=this['_model']['createPositionAt'](_0x24ad17['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3cb0a3,this['_model']['createRange'](_0x4d8879['start'],_0x404aab));}else{const _0x5dbeb1=this['_model']['createPositionAt'](_0x24ad17['end']['parent'],'after');this['_setSuggestionRange'](_0x3cb0a3,this['_model']['createRange'](_0x5dbeb1,_0x4d8879['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5b8e3b){for(const {suggestion:_0x11530e,meta:_0x34114f}of this['_findSuggestions'](_0x5b8e3b,'insertion')){if(!_0x34114f['isOwn'])continue;const _0x4c4a11=_0x11530e['getRanges']();for(const _0x215163 of _0x4c4a11)if(!_0x5b8e3b['getDifference'](_0x215163)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x37cede){const _0x3112f4=this['editor']['plugins']['get']('Users')['getUser'](_0x37cede);if(!_0x3112f4)throw new _0x33e300('track-changes-user-not-found',this);return _0x3112f4;}['_getExternalAuthor'](_0x1ee97d){const _0x462b8b=this['editor']['plugins']['get']('Users'),_0x2f1d50=_0x172249('external:'+_0x1ee97d),_0x3826a5=_0x462b8b['getUser'](_0x2f1d50);return _0x3826a5||_0x462b8b['addUser']({'id':_0x2f1d50,'name':_0x1ee97d});}['_createSuggestion'](_0x4317a3,_0xebd98b,_0x1ea2ef,_0x19f9de,_0x276ba9,_0x25188e){const _0x358a94=this['_getAuthorFromId'](_0x19f9de),_0x3b6312=this['_suggestionFactory']['buildSuggestion'](_0x4317a3,_0xebd98b,_0x1ea2ef,_0x358a94,_0x276ba9,_0x17c25b=>{this['_updateSuggestionData'](_0x1ea2ef,{'attributes':_0x17c25b});const _0x5e3b8b=this['getSuggestion'](_0x1ea2ef);this['_joinWithAdjacentSuggestions'](new Set([_0x5e3b8b])),this['_refreshSuggestionsChain'](new Set([_0x5e3b8b]));},_0x25188e);return this['listenTo'](_0x3b6312,'accept',()=>{this['_updateSuggestionData'](_0x1ea2ef,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3b6312,'discard',()=>{this['_updateSuggestionData'](_0x1ea2ef,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1ea2ef,_0x3b6312),this['_suggestionState']['set'](_0x3b6312,'notReady'),_0x3b6312;}['_splitMarkerName'](_0x2c06d6){const _0x1ab4aa=_0x2c06d6['split'](':');return{'group':_0x1ab4aa[0x0],'type':_0x1ab4aa[0x1],'subType':_0x1ab4aa['length']>=0x5?_0x1ab4aa[0x2]:null,'id':_0x1ab4aa['length']<0x5?_0x1ab4aa[0x2]:_0x1ab4aa[0x3],'authorId':_0x1ab4aa['length']<0x5?_0x1ab4aa[0x3]:_0x1ab4aa[0x4],'markerCount':0x6==_0x1ab4aa['length']?_0x1ab4aa[0x5]:null};}['_breakSuggestionMarker'](_0x4aa204,_0x624b9d,_0x92c08c){const _0x1eea82=_0x4aa204['getFirstRange'](),_0x4bc757=_0x1eea82['start'],_0x35391e=_0x1eea82['end'];this['_setSuggestionRange'](_0x4aa204,this['_model']['createRange'](_0x4bc757,_0x624b9d));const _0x2deee4=_0x140250(),_0x85e096=_0x4aa204['creator']['id'],_0x2e7c62=_0x4aa204['type']+(_0x4aa204['subType']?':'+_0x4aa204['subType']:'');this['_setSuggestionData']({'id':_0x2deee4,'type':_0x2e7c62,'createdAt':new Date(),'authorId':_0x85e096,'originalSuggestionId':_0x4aa204['_originalSuggestionId']||_0x4aa204['id'],'attributes':_0x4aa204['attributes'],'data':_0x4aa204['data']});const _0x2d5b2f=this['_getAttributeKey'](_0x4aa204);('formatBlock'==_0x4aa204['type']||_0x2d5b2f&&this['_isBlockAttribute'](_0x2d5b2f))&&(_0x92c08c=this['_model']['createPositionBefore'](_0x92c08c['parent'])),this['_addSuggestionMarker'](_0x2e7c62,_0x2deee4,_0x85e096,this['_model']['createRange'](_0x92c08c,_0x35391e));}['_findSuggestions'](_0x503607,_0x1c952c=null){const _0x3aad07=[],_0x2b0750=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x503607)||(_0x503607=[_0x503607]);for(const _0x7b7d6a of this['getSuggestions']()){if(!_0x7b7d6a['isInContent'])continue;if(_0x1c952c&&_0x7b7d6a['type']!=_0x1c952c)continue;let _0x37418f=!0x1;for(const _0x36f45a of _0x7b7d6a['getRanges']()){for(const _0xd1eda5 of _0x503607){const _0x2977ae=_0xd1eda5['start']['isEqual'](_0x36f45a['end'])||_0xd1eda5['end']['isEqual'](_0x36f45a['start']);if(_0x2977ae||_0xd1eda5['getIntersection'](_0x36f45a)){const _0x23aa88=_0xd1eda5['containsRange'](_0x36f45a)&&Ft(this['_model']['schema'],_0x36f45a['start'],_0xd1eda5),_0x506b3e=_0x36f45a['containsRange'](_0xd1eda5)&&Ft(this['_model']['schema'],_0xd1eda5['start'],_0x36f45a);_0x3aad07['push']({'suggestion':_0x7b7d6a,'meta':{'isOwn':_0x2b0750==_0x7b7d6a['author'],'isNextTo':_0x2977ae,'isInsideObject':_0x23aa88,'containsRangeInObject':_0x506b3e}}),_0x37418f=!0x0;break;}}if(_0x37418f)break;}}return _0x3aad07;}['_addSuggestionMarker'](_0x4bc2db,_0x2cf6ec,_0xb91c46,_0x552661,_0x158ecc){this['_model']['change'](_0x109c0d=>{let _0x2e9c4c='suggestion:'+_0x4bc2db+':'+_0x2cf6ec+':'+_0xb91c46;_0x158ecc&&(_0x2e9c4c=_0x2e9c4c+':'+_0x158ecc),_0x109c0d['addMarker'](_0x2e9c4c,{'range':_0x552661,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4b6926){const _0x4f9bc7=_0x4b6926['previous'],_0xbdbf55=_0x4b6926['next'];_0x4b6926['previous']=null,_0x4b6926['next']=null,null!=_0x4f9bc7&&_0x4f9bc7['next']==_0x4b6926&&(_0x4f9bc7['next']=_0xbdbf55),null!=_0xbdbf55&&_0xbdbf55['previous']==_0x4b6926&&(_0xbdbf55['previous']=_0x4f9bc7),'ready'==this['_suggestionState']['get'](_0x4b6926)&&(this['_suggestionState']['set'](_0x4b6926,'removed'),this['fire']('suggestionUnloaded',_0x4b6926,_0x4f9bc7,_0xbdbf55));}['_setSuggestionData'](_0x2889a9){const _0x14f89d=_0x2889a9['id'],_0x576f4b=this['addSuggestionData'](_0x2889a9);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x56305f=this['editor']['plugins']['get']('PendingActions'),_0x3bde50=_0x576f4b['hasComments'],_0x2848d5=_0x576f4b['subType']?_0x576f4b['type']+':'+_0x576f4b['subType']:_0x576f4b['type'],_0x4f70d7=this['editor']['locale'],_0x3d8dcc=_0x56305f['add'](o(_0x4f70d7,'PENDING_ACTION_SUGGESTION')),_0x376ba4={'id':_0x14f89d,'type':_0x2848d5,'hasComments':_0x3bde50,'data':_0x2889a9['data']||null,'originalSuggestionId':_0x2889a9['originalSuggestionId']||null,'attributes':_0x576f4b['attributes']};this['_adapter']['addSuggestion'](_0x376ba4)['then'](_0x521918=>{_0x576f4b['_saved']=!0x0,_0x56305f['remove'](_0x3d8dcc),_0x521918&&_0x521918['createdAt']&&(this['_suggestions']['get'](_0x14f89d)['createdAt']=_0x521918['createdAt']);})['catch'](_0x5ae0ea=>{throw _0x51214e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x576f4b['discard']();}),_0x576f4b['stopListening'](),this['_suggestions']['delete'](_0x576f4b['id']),this['_suggestionState']['delete'](_0x576f4b),_0x5ae0ea;});}return _0x576f4b;}['_isBlockAttribute'](_0x1fce2b){return this['_blockAttributeKeys']['has'](_0x1fce2b);}['_updateSuggestionData'](_0x566632,_0x21e436){const _0x5cb5f4=this['editor']['plugins']['get']('PendingActions'),_0x404de5=this['getSuggestion'](_0x566632);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x404de5['_saved']){const _0x5eb367=_0x5cb5f4['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x566632,_0x21e436)['then'](()=>{_0x5cb5f4['remove'](_0x5eb367);});}else _0x404de5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x566632,_0x21e436);});}}['_getSuggestionData'](_0x387cb5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x33e300('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x387cb5);}['_handleNewSuggestionMarker'](_0x2b098d){const {id:_0x271882,type:_0x1dd5c1,subType:_0x40f52e,authorId:_0x302957}=this['_splitMarkerName'](_0x2b098d),_0x4b3dd6=this['_suggestions']['get'](_0x271882)||this['_createSuggestion'](_0x1dd5c1,_0x40f52e,_0x271882,_0x302957,{});switch(this['_checkSuggestionCorrectness'](_0x4b3dd6,_0x1dd5c1,_0x40f52e,_0x302957),this['_suggestionState']['get'](_0x4b3dd6)){case'notReady':this['_getSuggestionData'](_0x271882)['then'](_0xb9f2ff=>{let _0x11ca2b=Promise['resolve']();_0xb9f2ff['hasComments']&&(_0x11ca2b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x271882})),_0x11ca2b['then'](()=>{this['addSuggestionData'](_0xb9f2ff)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4b3dd6,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x271882,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4b3dd6,'ready'),this['fire']('suggestionLoaded',_0x4b3dd6);break;case'ready':this['fire']('suggestionChanged',_0x4b3dd6);}return _0x4b3dd6['addMarkerName'](_0x2b098d),_0x4b3dd6;}['_refreshSuggestionsChain'](_0x260d88){const _0x4d952e=Array['from'](_0x260d88),_0x54da50=_0x4d952e['filter'](_0x1603fd=>'attribute'==_0x1603fd['type']);this['_refreshAttributeSuggestionsChain'](_0x54da50);const _0x30dbdf=_0x4d952e['filter'](_0x103e02=>!_0x103e02['isMultiRange']&&'attribute'!=_0x103e02['type']),_0x529e05=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17612d=>!_0x17612d['isMultiRange']&&'attribute'!=_0x17612d['type']),_0x566833=_0x529e05['filter'](_0x263f3f=>!_0x260d88['has'](_0x263f3f)),_0x125258=new Map(_0x529e05['map'](_0x19441a=>[_0x19441a,this['_suggestionFactory']['getSuggestionCallback'](_0x19441a['type'],_0x19441a['subType'],'chain')])),_0x525061=new Map(_0x529e05['map'](_0x4da5d8=>[_0x4da5d8,_0x4da5d8['getFirstRange']()])),_0x3223f6=new Set(),_0x3d7e98=new Set();for(let _0x495c7e=0x0;_0x495c7e<_0x30dbdf['length'];_0x495c7e++)_0x25fdf6(_0x30dbdf[_0x495c7e],_0x30dbdf,_0x495c7e+0x1);for(let _0x90649e=0x0;_0x90649e<_0x30dbdf['length'];_0x90649e++)_0x25fdf6(_0x30dbdf[_0x90649e],_0x566833,0x0);const _0x440a56=new Set();for(let _0x2a4229=0x0;_0x2a4229<_0x30dbdf['length'];_0x2a4229++){const _0xf24ccf=_0x30dbdf[_0x2a4229];!_0x3d7e98['has'](_0xf24ccf)&&_0xf24ccf['previous']&&(_0x440a56['add'](_0xf24ccf['previous']),_0xf24ccf['previous']['next']===_0xf24ccf&&(_0xf24ccf['previous']['next']=null),_0xf24ccf['previous']=null),!_0x3223f6['has'](_0xf24ccf)&&_0xf24ccf['next']&&(_0x440a56['add'](_0xf24ccf['next']),_0xf24ccf['next']['previous']===_0xf24ccf&&(_0xf24ccf['next']['previous']=null),_0xf24ccf['next']=null);}function _0x25fdf6(_0xf7614,_0x290b02,_0x38fd43){for(let _0x2d9ab0=_0x38fd43;_0x2d9ab0<_0x290b02['length'];_0x2d9ab0++){const _0x4ea0bb=_0x2bf679(_0xf7614,_0x290b02[_0x2d9ab0]);_0x4ea0bb&&(_0x4ea0bb[0x0]['next']=_0x4ea0bb[0x1],_0x4ea0bb[0x1]['previous']=_0x4ea0bb[0x0],_0x3223f6['add'](_0x4ea0bb[0x0]),_0x3d7e98['add'](_0x4ea0bb[0x1]));}}function _0x2bf679(_0x28cdbf,_0x19877e){if(_0x28cdbf['author']['id']!==_0x19877e['author']['id'])return null;const _0x295cc1=_0x125258['get'](_0x28cdbf)(_0x28cdbf,_0x19877e,_0x525061['get'](_0x28cdbf),_0x525061['get'](_0x19877e));if(!_0x295cc1)return null;return _0x125258['get'](_0x19877e)(_0x28cdbf,_0x19877e,_0x525061['get'](_0x28cdbf),_0x525061['get'](_0x19877e))?_0x295cc1[0x1]['commentThread']&&_0x295cc1[0x1]['commentThread']['length']?null:_0x295cc1:null;}_0x440a56['size']&&this['_refreshSuggestionsChain'](_0x440a56);}['_refreshAttributeSuggestionsChain'](_0x4b3edb){if(0x0==_0x4b3edb['length'])return;const _0x370223=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e0daf=>'attribute'==_0x5e0daf['type']&&_0x5e0daf['_isDataLoaded']),_0x3dd8ae=[],_0x5462b6=new Map();for(const _0x4b9e62 of _0x370223){const _0x40ad4c=_0x172249(_0x4b9e62['attributes']);_0x5462b6['has'](_0x40ad4c)||(_0x5462b6['set'](_0x40ad4c,_0x3dd8ae['length']),_0x3dd8ae['push']([]));const _0x4c508a=_0x5462b6['get'](_0x40ad4c);_0x3dd8ae[_0x4c508a]['push'](_0x4b9e62);}!(function(){_0x3dd8ae['sort']((_0x2573f2,_0x3728ee)=>{const _0x48fa79=_0x2573f2[0x0]['createdAt'],_0x2836bb=_0x3728ee[0x0]['createdAt'];return _0x48fa79==_0x2836bb?_0x2573f2[0x0]['attributes']['groupId']<_0x3728ee[0x0]['attributes']['groupId']?-0x1:0x1:_0x48fa79<_0x2836bb?-0x1:0x1;});for(const _0x5a0221 of _0x3dd8ae)_0x5a0221['sort']((_0x53f196,_0x245e03)=>_0x53f196['id']<_0x245e03['id']?-0x1:0x1);}());for(let _0x1eb43d=0x0;_0x1eb43d<_0x3dd8ae['length'];_0x1eb43d++){if(0x0==_0x3dd8ae[_0x1eb43d]['length'])continue;const _0x371fc6=[];for(let _0x1ae6fb=_0x1eb43d+0x1;_0x1ae6fb<_0x3dd8ae['length'];_0x1ae6fb++)0x0!=_0x3dd8ae[_0x1ae6fb]['length']&&_0x9808bb(_0x3dd8ae[_0x1eb43d],_0x3dd8ae[_0x1ae6fb])&&_0x371fc6['push'](_0x1ae6fb);for(const _0x19ac61 of _0x371fc6)_0x3dd8ae[_0x1eb43d]=_0x3dd8ae[_0x1eb43d]['concat'](_0x3dd8ae[_0x19ac61]),_0x3dd8ae[_0x19ac61]=[];}for(const _0xf13174 of _0x3dd8ae)for(let _0x53b470=0x0;_0x53b470<_0xf13174['length'];_0x53b470++){const _0x263c41=_0xf13174[_0x53b470+0x1]||null;_0xf13174[_0x53b470]['next']!==_0x263c41&&(_0xf13174[_0x53b470]['next']=_0x263c41);}for(const _0x1c6588 of _0x3dd8ae)for(let _0x4bb73a=0x0;_0x4bb73a<_0x1c6588['length'];_0x4bb73a++){const _0x2f348b=_0x1c6588[_0x4bb73a-0x1]||null;_0x1c6588[_0x4bb73a]['previous']!==_0x2f348b&&(_0x1c6588[_0x4bb73a]['previous']=_0x2f348b);}function _0x9808bb(_0x56f07c,_0x98e54d){if(_0x56f07c[0x0]['attributes']['groupId']!==_0x98e54d[0x0]['attributes']['groupId']&&_0x56f07c[0x0]['author']!==_0x98e54d[0x0]['author'])return!0x1;if(!function(_0x4da725,_0x20126e){if(!_0x4da725['hasComments']&&!_0x20126e['hasComments'])return!0x0;if(_0x4da725['hasComments']&&_0x20126e['hasComments'])return!0x1;if(_0x4da725['hasComments']&&_0x20126e['createdAt']<_0x4da725['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x20126e['hasComments']&&_0x4da725['createdAt']<_0x20126e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x56f07c[0x0],_0x98e54d[0x0]))return!0x1;const _0x5c0bc7=Ut(_0x56f07c[0x0]['attributes'],['groupId','trackingSessionId']),_0x558993=Ut(_0x98e54d[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x48cd59(_0x5c0bc7,_0x558993))return!0x1;if(_0x56f07c[0x0]['attributes']['groupId']==_0x98e54d[0x0]['attributes']['groupId'])return!0x0;if(_0x56f07c[0x0]['attributes']['trackingSessionId']!==_0x98e54d[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x56f07c['every'](_0xf2da16=>_0x98e54d['some'](_0x88fdcc=>_0xf2da16['getFirstRange']()['isEqual'](_0x88fdcc['getFirstRange']())))&&_0x98e54d['every'](_0x37851f=>_0x56f07c['some'](_0x87ef22=>_0x37851f['getFirstRange']()['isEqual'](_0x87ef22['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x19ac77){const _0x2e8297=Array['from'](_0x19ac77),_0x51b2b1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x42625a=_0x51b2b1['filter'](_0x3689ec=>!_0x19ac77['has'](_0x3689ec)),_0x4b728a=new Map(_0x2e8297['map'](_0x537d3e=>[_0x537d3e,this['_suggestionFactory']['getSuggestionCallback'](_0x537d3e['type'],_0x537d3e['subType'],'join')])),_0x4508e7=new Map(_0x51b2b1['map'](_0x10794d=>[_0x10794d,_0x10794d['getRanges']()]));for(let _0x3a9d07=0x0;_0x3a9d07<_0x2e8297['length'];_0x3a9d07++){if(_0x346c06(this,_0x2e8297[_0x3a9d07],_0x2e8297,_0x3a9d07+0x1))return!0x0;}for(let _0x43377a=0x0;_0x43377a<_0x2e8297['length'];_0x43377a++){if(_0x346c06(this,_0x2e8297[_0x43377a],_0x42625a,0x0))return!0x0;}return!0x1;function _0x346c06(_0x5090d2,_0x47e03f,_0x2239fe,_0x1653d7){for(let _0x44ced4=_0x1653d7;_0x44ced4<_0x2239fe['length'];_0x44ced4++){const _0x2bc3a4=_0x2239fe[_0x44ced4];if(_0x2bc3a4['type']!==_0x47e03f['type']||_0x2bc3a4['author']['id']!==_0x47e03f['author']['id']||_0x2bc3a4['subType']!==_0x47e03f['subType'])continue;if(!Wt(_0x47e03f,_0x2bc3a4))continue;if('attribute'==_0x47e03f['type']&&_0x47e03f['data']['oldValue']!=_0x2bc3a4['data']['oldValue'])continue;if('attribute'==_0x47e03f['type']&&_0x5090d2['_isBlockAttribute'](_0x47e03f['data']['key']))continue;if('formatBlock'==_0x47e03f['type']){const _0x2b6532=_0x5090d2['editor']['model'],_0x79bd54=_0x47e03f['getContainedElement']();if(_0x79bd54&&(_0x2b6532['schema']['isObject'](_0x79bd54)||_0x2b6532['schema']['isLimit'](_0x79bd54)))continue;}const _0x2ae8a5=_0x4b728a['get'](_0x47e03f),_0x403788=_0x4508e7['get'](_0x47e03f),_0x5c53d0=_0x4508e7['get'](_0x2bc3a4),_0x836506=_0x47e03f['commentThread']&&_0x47e03f['commentThread']['length'],_0x3981fd=_0x2bc3a4['commentThread']&&_0x2bc3a4['commentThread']['length'];if(!_0x836506&&_0x2ae8a5(_0x5c53d0,_0x403788))return _0x5090d2['_joinSuggestions'](_0x2bc3a4,_0x47e03f),_0x4508e7['delete'](_0x47e03f),!0x0;if(!_0x3981fd&&_0x2ae8a5(_0x403788,_0x5c53d0))return _0x5090d2['_joinSuggestions'](_0x47e03f,_0x2bc3a4),_0x4508e7['delete'](_0x2bc3a4),!0x0;}return!0x1;}}['_joinSuggestions'](_0x126723,_0xc53112){if(_0x126723['isMultiRange']){for(const _0x40720f of _0xc53112['getRanges']())_0x126723['addRange'](_0x40720f);}else{const _0x1f2e5c=_0xc53112['getFirstRange']()['end'];this['_setSuggestionRange'](_0x126723,this['_model']['createRange'](_0x126723['getFirstRange']()['start'],_0x1f2e5c));}_0xc53112['removeMarkers']();}['_getMarkerAnnouncementText'](_0x312834,_0x13022c,_0x307644){const _0x5d7877=_0x312834['startsWith']('format')||_0x312834['startsWith']('attribute')?'FORMATTING':_0x312834['toUpperCase']();return o(this['editor']['locale'],_0x13022c+'_'+_0x5d7877+'_SUGGESTION_ANNOUNCEMENT',_0x307644);}['_initAriaMarkerChangeAnnouncements'](){const _0x4fe106=this['editor'];if(!_0x4fe106['ui'])return;const {ariaLiveAnnouncer:_0x5bbd1f}=_0x4fe106['ui'];_0x1f8bfc(this['_model'],({left:_0x165711,entered:_0x875072})=>{for(const _0x17c5cc of _0x165711){const {group:_0x51103c,type:_0x2ead43}=this['_splitMarkerName'](_0x17c5cc['name']);if('suggestion'===_0x51103c){_0x5bbd1f['announce'](this['_getMarkerAnnouncementText'](_0x2ead43,'LEAVE'));break;}}for(const _0x490818 of _0x875072){const {group:_0x8fbfd8,type:_0x4a176d}=this['_splitMarkerName'](_0x490818['name']);if('suggestion'===_0x8fbfd8){_0x5bbd1f['announce'](this['_getMarkerAnnouncementText'](_0x4a176d,'ENTER',_0x185a9c(_0x44f7ba)));break;}}});}['_processAttributeChanges'](_0x5a3f4f){if(this['_recordAttributeSuggestions'])return!0x1;const _0x58c40e=this['editor'],_0x51b159=_0x58c40e['model']['document']['differ']['getChanges']();if(0x0==_0x51b159['length'])return!0x1;const _0x1b3897=[],_0x14780b=_0x51b159['filter'](_0x4412b5=>'attribute'==_0x4412b5['type']),_0x131974=_0x51b159['filter'](_0x4d9230=>'insert'==_0x4d9230['type']&&'$text'!=_0x4d9230['name']),_0x1a96ef=_0x51b159['filter'](_0x510469=>'remove'==_0x510469['type']&&'$text'!=_0x510469['name']);for(const _0x15024d of _0x14780b)_0x1b3897['push']({'key':_0x15024d['attributeKey'],'newValue':_0x15024d['attributeNewValue'],'oldValue':_0x15024d['attributeOldValue'],'range':Ht(_0x15024d['range'],_0x58c40e['model'])});for(const _0x5e70c9 of _0x131974){const _0x1e21bb=_0x1a96ef['find'](_0x1af3d0=>_0x1af3d0['position']['isEqual'](_0x5e70c9['position']));_0x1e21bb&&_0x1b3897['push']({'key':m,'newValue':_0x5e70c9['name'],'oldValue':_0x1e21bb['name'],'range':_0x58c40e['model']['createRangeOn'](_0x5e70c9['position']['nodeAfter'])});}return 0x0!=_0x1b3897['length']&&this['_reduceExistingSuggestions'](_0x5a3f4f,_0x1b3897);}['_processAttributeSuggestions'](_0x3b8ddd){let _0x31fb2a=!0x1;const _0x3556be=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x253055=>_0x253055['data']['newRange']&&_0x253055['name']['startsWith']('suggestion:attribute:'));for(const _0x125a4f of _0x3556be){const {subType:_0x85fbc7,id:_0x2f3a91}=this['_splitMarkerName'](_0x125a4f['name']),_0x487699=_0x85fbc7['split']('|')[0x0];for(const _0x550d3a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x550d3a['id']!=_0x2f3a91&&'attribute'==_0x550d3a['type']&&_0x550d3a['data']&&_0x550d3a['data']['key']==_0x487699&&_0x550d3a['getFirstRange']()['isIntersecting'](_0x125a4f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x550d3a,_0x125a4f['data']['newRange'],_0x3b8ddd),_0x31fb2a=!0x0);}return _0x31fb2a;}['recordAttributeChanges'](_0x4d223b){this['_recordAttributeSuggestions']=!0x0,_0x4d223b();}['_isRegisteredAttribute'](_0x3c6185){const _0x2fa28b=this['_isBlockAttribute'](_0x3c6185),_0x6eec5a=this['_inlineAttributeKeys']['has'](_0x3c6185);return _0x2fa28b||_0x6eec5a;}['_reduceExistingSuggestions'](_0x4c0b4d,_0x4394ab){if(0x0==_0x4394ab['length'])return!0x1;let _0x168dc0=!0x1;for(const _0x397bf3 of _0x4394ab){const _0xead900=this['_findSuggestions'](_0x397bf3['range'],'attribute')['filter'](_0x3c1761=>!_0x3c1761['meta']['isNextTo'])['map'](_0x23d5a4=>_0x23d5a4['suggestion']),_0x156428=_0x172249({'newValue':_0x397bf3['newValue']});_0xead900['filter'](_0x9197c8=>{const [_0x46abbc,_0x4146fc]=_0x9197c8['subType']['split']('|');return _0x46abbc==_0x397bf3['key']&&_0x4146fc!=_0x156428;})['forEach'](_0xc6ac0e=>{this['_reduceSuggestionAttributeRange'](_0xc6ac0e,_0x397bf3['range'],_0x4c0b4d),_0x168dc0=!0x0;});}return _0x168dc0;}['_reduceSuggestionAttributeRange'](_0x599566,_0x281d63,_0x3dd14f){const _0x42533a=_0x599566['getFirstRange']()['getDifference'](_0x281d63);0x0!==_0x42533a['length']?0x1!==_0x42533a['length']?this['_breakSuggestionMarker'](_0x599566,_0x281d63['start'],_0x281d63['end']):this['_setSuggestionRange'](_0x599566,_0x42533a[0x0]):_0x3dd14f['removeMarker'](_0x599566['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x12ed5c){this['_editor']=_0x12ed5c,this['_model']=_0x12ed5c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4b7758,_0x40a27e,_0x1d72b8,_0x198d8c,_0xdfb2a1,_0x5a9f1d,_0x536628){return new T(this['_model'],{'type':_0x4b7758,'subType':_0x40a27e,'id':_0x1d72b8,'originalSuggestionId':_0x536628,'author':_0x198d8c,'creator':_0x198d8c,'attributes':_0xdfb2a1,'onAttributesChange':_0x5a9f1d,'onAccept':(..._0x7c03ad)=>this['getSuggestionCallback'](_0x4b7758,_0x40a27e,'accept')(..._0x7c03ad),'onDiscard':(..._0x4b67cc)=>this['getSuggestionCallback'](_0x4b7758,_0x40a27e,'discard')(..._0x4b67cc)});}['registerCustomCallback'](_0x2ba3c6,_0x2f971e,_0x14a96e,_0x384dd4){const _0x18dd1d=_0x2ba3c6+':'+_0x2f971e+':'+_0x14a96e;this['_customCallbacks']['set'](_0x18dd1d,_0x384dd4);}['getSuggestionCallback'](_0x10ed9b,_0x3fa83a,_0x4c8374){const _0x4a9fec=_0x10ed9b+':'+_0x3fa83a+':'+_0x4c8374;return this['_customCallbacks']['get'](_0x4a9fec)||this['_defaultCallbacks']['get'](_0x10ed9b+':'+_0x4c8374);}['_registerDefaultCallbacks'](){const _0x35d383=()=>!0x1,_0x3fe6f0=_0xcdd37f=>{_0xcdd37f['sort']((_0x2c8ca1,_0x2a7db0)=>_0x2c8ca1['start']['isBefore'](_0x2a7db0['start'])?0x1:-0x1),this['_model']['change'](_0x572767=>{for(const _0x2c6e0a of _0xcdd37f){let _0x21b76f;_0x21b76f=_0x2c6e0a['end']['isAtEnd']&&_0x2c6e0a['end']['parent']==_0x2c6e0a['start']['nodeAfter']?_0x572767['createSelection'](_0x2c6e0a['start']['nodeAfter'],'on'):_0x572767['createSelection'](_0x2c6e0a),this['_model']['deleteContent'](_0x21b76f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x6a1fae=(_0x45d801,_0x7af6a2)=>{_0x7af6a2&&this['_model']['change'](_0x28b9b0=>{const {commandName:_0x31df2a,commandParams:_0x17ce3a=[]}=_0x7af6a2,_0x70bcad=_0x45d801['map'](_0x1f89c2=>(Pt(_0x1f89c2)&&(_0x1f89c2=this['_model']['createRange'](_0x1f89c2['end'])),_0x1f89c2))['filter'](_0x52ff3c=>'$graveyard'!==_0x52ff3c['root']['rootName']);if(_0x70bcad['length']<0x1)return;const _0x596c90=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x54225a=>_0x3590e7['fromRange'](_0x54225a));_0x28b9b0['setSelection'](_0x70bcad);for(const _0x187ae2 of this['_editor']['commands']['commands']())_0x187ae2['refresh']();_0x17ce3a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x31df2a,..._0x17ce3a);const _0x3f656a=_0x596c90['filter'](_0x452294=>'$graveyard'!=_0x452294['root']['rootName']);_0x3f656a['length']>0x0&&_0x28b9b0['setSelection'](_0x3f656a);for(const _0x30d7ce of _0x596c90)_0x30d7ce['detach']();});},_0x5e6de5=(_0x1e1dd4,_0x1f2c53)=>0x1==_0x1e1dd4['length']&&0x1==_0x1f2c53['length']&&_0x1e1dd4[0x0]['end']['isEqual'](_0x1f2c53[0x0]['start']),_0x4c6fa1=(_0xe4e869,_0x39df70,_0x5b360c,_0x18f6b0)=>zt(_0xe4e869,_0x39df70,_0x5b360c,_0x18f6b0)?[_0xe4e869,_0x39df70]:zt(_0x39df70,_0xe4e869,_0x18f6b0,_0x5b360c)?[_0x39df70,_0xe4e869]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x35d383),this['_defaultCallbacks']['set']('insertion:discard',_0x3fe6f0),this['_defaultCallbacks']['set']('insertion:join',_0x5e6de5),this['_defaultCallbacks']['set']('insertion:chain',_0x4c6fa1),this['_defaultCallbacks']['set']('deletion:accept',_0x3fe6f0),this['_defaultCallbacks']['set']('deletion:discard',_0x35d383),this['_defaultCallbacks']['set']('deletion:join',_0x5e6de5),this['_defaultCallbacks']['set']('deletion:chain',_0x4c6fa1),this['_defaultCallbacks']['set']('formatInline:accept',_0x6a1fae),this['_defaultCallbacks']['set']('formatInline:discard',_0x35d383),this['_defaultCallbacks']['set']('formatInline:join',_0x5e6de5),this['_defaultCallbacks']['set']('formatInline:chain',_0x35d383),this['_defaultCallbacks']['set']('formatBlock:accept',_0x6a1fae),this['_defaultCallbacks']['set']('formatBlock:discard',_0x35d383),this['_defaultCallbacks']['set']('formatBlock:join',_0x5e6de5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x35d383),this['_defaultCallbacks']['set']('attribute:accept',_0x35d383),this['_defaultCallbacks']['set']('attribute:discard',(_0x230770,_0x2c844f)=>{if(!_0x2c844f)return;const _0x1aa454=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x446b5d=>{if(_0x2c844f['key']==m)for(const _0x2004a6 of _0x230770){const _0x2e4e7d=_0x2004a6['start']['nodeAfter'],_0x42f578=_0x2c844f['oldValue'];_0x446b5d['rename'](_0x2e4e7d,_0x42f578);}else{if(_0x1aa454['_isBlockAttribute'](_0x2c844f['key'])){for(const _0x24b92c of _0x230770)void 0x0!==_0x2c844f['oldValue']?_0x446b5d['setAttribute'](_0x2c844f['key'],_0x2c844f['oldValue'],_0x24b92c['start']['nodeAfter']):_0x446b5d['removeAttribute'](_0x2c844f['key'],_0x24b92c['start']['nodeAfter']);}else{for(const _0xd33c13 of _0x230770)_0x2c844f['oldValue']?_0x446b5d['setAttribute'](_0x2c844f['key'],_0x2c844f['oldValue'],_0xd33c13):_0x446b5d['removeAttribute'](_0x2c844f['key'],_0xd33c13);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5e6de5);}}function Ft(_0x5cc63a,_0x43f277,_0x57c0e3){for(const _0x2dde19 of _0x43f277['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2dde19['root']==_0x2dde19)return!0x1;if(!_0x57c0e3['containsItem'](_0x2dde19))return!0x1;if(_0x5cc63a['isObject'](_0x2dde19)||_0x5cc63a['isLimit'](_0x2dde19))return!0x0;}return!0x1;}function Pt(_0x46e637){return _0x46e637['end']['parent']==_0x46e637['start']['nodeAfter']&&_0x46e637['end']['isAtStart'];}function Gt(_0x43628d,_0x5d2c00,_0x3a201f,_0x4475e2){const _0x583329=_0x37b0e3=>!_0x37b0e3['item']['is']('$textProxy')&&!_0x4475e2['isObject'](_0x37b0e3['item']),_0x2cbc7f=_0x43628d['start']['getLastMatchingPosition'](_0x583329),_0x34dbb9=_0x43628d['end']['getLastMatchingPosition'](_0x583329,{'direction':'backward'});return(!_0x43628d['start']['isEqual'](_0x2cbc7f)||!_0x43628d['end']['isEqual'](_0x34dbb9))&&(_0x2cbc7f['isBefore'](_0x34dbb9)?_0x3a201f['updateMarker'](_0x5d2c00,{'range':_0x3a201f['createRange'](_0x2cbc7f,_0x34dbb9)}):_0x3a201f['removeMarker'](_0x5d2c00),!0x0);}function Lt(_0x116e3a){return _0x172249(_0x116e3a);}function Jt(_0xc363f3){const _0x2f37cf=_0xc363f3['start']['nodeAfter'];return _0x2f37cf&&_0x2f37cf['is']('element');}function Kt(_0x3e3416){return!Pt(_0x3e3416)&&!function(_0x337460){return _0x337460['start']['parent']==_0x337460['end']['nodeBefore']&&_0x337460['start']['isAtEnd'];}(_0x3e3416);}function Ht(_0x10702c,_0x4f4bfe){return null==_0x10702c['end']['nodeBefore']&&_0x10702c['end']['parent']==_0x10702c['start']['nodeAfter']?qt(_0x10702c['start']['nodeAfter'],_0x4f4bfe):_0x10702c;}function qt(_0x172dfc,_0x466182){const _0x5dfdef=_0x466182['schema']['isObject'](_0x172dfc)||_0x466182['schema']['isSelectable'](_0x172dfc);return _0x466182['createRange'](_0x466182['createPositionAt'](_0x172dfc,'before'),_0x5dfdef?_0x466182['createPositionAfter'](_0x172dfc):_0x466182['createPositionAt'](_0x172dfc,'end'));}function zt(_0xf73188,_0x574b92,_0x351d68,_0x27e76e){return!!Wt(_0xf73188,_0x574b92)&&_0x351d68['end']['isEqual'](_0x27e76e['start']);}function Wt(_0x3f274e,_0x2a479f){if(!_0x3f274e['_isDataLoaded']||!_0x2a479f['_isDataLoaded'])return!0x1;const _0x1f96e6=new Set(Object['keys'](_0x3f274e['attributes'])),_0x2c4942=new Set(Object['keys'](_0x2a479f['attributes']));if(_0x1f96e6['delete']('groupId'),_0x2c4942['delete']('groupId'),0x0==_0x1f96e6['size']&&0x0==_0x2c4942['size'])return!0x0;if(_0x1f96e6['size']!=_0x2c4942['size'])return!0x1;const _0x117038={..._0x3f274e['attributes']},_0xcca6e9={..._0x2a479f['attributes']};return delete _0x117038['groupId'],delete _0xcca6e9['groupId'],JSON['stringify'](_0x117038)==JSON['stringify'](_0xcca6e9);}function Qt(_0x2dd361,_0x2f64ff){const _0x3a9695=Xt(_0x2dd361['attributes']),_0x5b620c=Xt(_0x2f64ff);if(!_0x2dd361['_isDataLoaded'])return!0x1;for(const _0x8cc53c of Object['keys'](_0x5b620c))if(!_0x48cd59(_0x3a9695[_0x8cc53c],_0x5b620c[_0x8cc53c]))return!0x1;return!0x0;}function Xt(_0x3cde2b){const _0x4542cb=Object['assign']({},_0x3cde2b);return delete _0x4542cb['skipNestingCheck'],delete _0x4542cb['tablePasteChainId'],_0x4542cb;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x231f54(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x19ca72,_0x3f4fa4,_0x2e40e4,_0x42bd44){super(),this['model']=_0x3f4fa4,this['view']=_0x2e40e4,this['commentThreadController']=_0x42bd44,this['_editor']=_0x19ca72,this['_acceptCommand']=_0x19ca72['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x19ca72['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xf14c84,_0x99c6e3)=>_0xf14c84||_0x99c6e3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x23ef47=>_0x23ef47&&this['_editor']['model']['canEditAt'](_0x3f4fa4['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4a46da=>_0x4a46da&&this['_editor']['model']['canEditAt'](_0x3f4fa4['getRanges']())),this['_pendingAction']=null,_0x2e40e4['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2e40e4,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2e40e4,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2e40e4,'change:isDirty',()=>{_0x2e40e4['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 _0x39a36f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x39a36f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x2bab32{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4f1156,_0x2c7d83,_0x1e4fc6,_0x323b88){super(_0x4f1156),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x456c6a(_0x4f1156,o(_0x4f1156,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2c7d83['authoredAt']),this['bind']('authoredAt')['to'](_0x2c7d83),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',_0x2c7d83,'authoredAt',this,'descriptionParts',(_0x162252,_0x28098b,_0x372d60)=>{const _0x17dd2c=_0x372d60['map'](_0x16410f=>ls(_0x16410f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x162252-0x1,_0x2c7d83['author']['name'],_0x28098b?_0x323b88['formatDateTime'](_0x28098b):'',new DOMParser()['parseFromString'](_0x17dd2c,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4ad431(),this['focusTracker']=new _0x30b267(),this['keystrokes']=new _0x22e422(),this['focusCycler']=new _0x1213d5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x349b97=>_0x349b97['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2c7d83,this['_localUser']=_0x1e4fc6,this['_config']=_0x323b88,_0x323b88['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x10e5f9(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1a6ca2}=this['_config'];this['commentsListView']=new _0x1a6ca2(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',_0x623ec8=>_0x623ec8+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2f3699,_0x2ff32d)=>_0x2f3699||!!_0x2ff32d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x27d497}=this['_config'],_0x407f3a=new _0x27d497(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3d5093=_0x407f3a['commentInputView'];return _0x407f3a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3d5093,'value',(_0xb40e9d,_0x57d010,_0x589ace)=>!!_0x589ace||_0xb40e9d&&!_0x57d010),_0x3d5093['on']('submit',(_0x451cf6,_0x4c581c)=>{this['fire']('addComment',_0x4c581c),_0x3d5093['editor']['setData']('');}),_0x3d5093['on']('cancel',()=>this['focus']()),_0x3d5093['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x407f3a;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x17231b,_0x51c8a5,_0x443ab8,_0x560034){super(_0x17231b,_0x51c8a5,_0x443ab8,_0x560034),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xf781da=>_0xf781da&&_0xf781da[0x0]?_0xf781da[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xe0a097,_0x322246)=>{let _0x1635e9='';for(const _0x123808 of _0xe0a097)_0x1635e9+='<p>'+ls(_0x123808['content'],_0x123808['color'])+'</p>';return _0x322246?_0x1635e9:_0x13706f(_0x1635e9,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x560034['SuggestionView'](_0x17231b,_0x51c8a5,{'formatDateTime':_0x560034['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 _0x3fe11e=this['bindTemplate'],_0x1f1208=[this['suggestionView']];return this['commentsListView']&&_0x1f1208['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1f1208['push'](this['commentThreadInputView']),_0x1f1208['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3fe11e['if']('isActive','ck-suggestion-wrapper--active'),_0x3fe11e['to']('type',_0x4aa363=>'ck-suggestion-'+_0x4aa363),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':_0x3fe11e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1f1208};}['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 _0x2bab32{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x45055d,_0x33a6d3,_0xcfac8e){super(_0x45055d),this['_model']=_0x33a6d3,this['_config']=_0xcfac8e,this['set']('description',''),this['bind']('authoredAt')['to'](_0x33a6d3),this['acceptButton']=this['_createButton'](o(_0x45055d,'Accept\x20suggestion'),_0x7f4849,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x45055d,'Discard\x20suggestion'),_0x1a2728,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1a32b2(_0x45055d,_0x33a6d3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4ad431([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x30b267(),this['keystrokes']=new _0x22e422(),this['focusCycler']=new _0x1213d5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1a08f0=>_0x1a08f0['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4450ba=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4450ba['innerHTML']=this['description'],this['on']('change:description',(_0x16b465,_0x1c9262,_0x11a135)=>{_0x4450ba['innerHTML']=_0x11a135;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1991a3=this['bindTemplate'],_0x1c687b=[{'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':_0x1991a3['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1991a3['to']('authoredAt',_0xdb8258=>this['_config']['formatDateTime'](_0xdb8258))}]}]},{'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']&&_0x1c687b['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':_0x1c687b}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x4f52a3,_0x3d19ce,_0x568124,_0x25cf20,_0x119bd7){const _0x132cac=new _0x460bf7(this['locale']);return _0x132cac['set']({'label':_0x4f52a3,'icon':_0x3d19ce,'tooltip':!0x0,'tooltipPosition':_0x119bd7}),_0x132cac['extendTemplate']({'attributes':{'class':_0x568124}}),_0x132cac['on']('execute',()=>{this['fire'](_0x25cf20,this['_model']['id']);}),_0x132cac;}['_setupKeyboardNavigation'](){const _0xf150a1=this['element'];this['keystrokes']['listenTo'](_0xf150a1);for(const _0x19602e of this['focusables'])this['focusTracker']['add'](_0x19602e['element']),this['keystrokes']['listenTo'](_0x19602e['element']);this['keystrokes']['set']('enter',(_0xf7d2b,_0x5a735e)=>{_0xf150a1===_0xf7d2b['target']&&(this['focusCycler']['focusFirst'](),_0x5a735e());}),this['keystrokes']['set']('esc',(_0x52d339,_0x7aa0fc)=>{_0xf150a1!==_0x52d339['target']&&(this['focus'](),_0x7aa0fc());});}}class u extends _0x142398{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x1e445d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b1778){super(_0x4b1778),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xb6c8b1=this['editor']['config'];_0xb6c8b1['define']('trackChanges.SuggestionThreadView',fe),_0xb6c8b1['define']('trackChanges.SuggestionView',we),_0xb6c8b1['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xb6c8b1['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1fbe78,_0x67a13){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3b2e67,_0x2c2d77]of this['_handleControllerBuffer']){const _0x41a5c0=this['_suggestionToController']['has'](_0x3b2e67);_0x41a5c0||_0x2c2d77?_0x41a5c0&&_0x2c2d77&&this['_destroyController'](_0x3b2e67):this['_initializeController'](_0x3b2e67);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1fbe78,_0x67a13);}['init'](){const _0x4f834a=this['editor'],_0x34f7eb=_0x4f834a['plugins']['get']('TrackChangesEditing'),_0x28c031=_0x4f834a['plugins']['get']('Annotations'),_0x40126e=_0x4f834a['plugins']['get']('EditorAnnotations'),_0x56c084=_0x4f834a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x40126e['addSourceCollector'](()=>{const _0x26d43d=[];for(const [_0x3ab922,_0x30690e]of Array['from'](this['_suggestionToController'])){const _0x1d230b=_0x3ab922['getAllAdjacentSuggestions'](),_0x21424c=[];for(const _0x355471 of _0x1d230b){if(!_0x355471['isInContent'])continue;if(_0x355471['isMultiRange']){_0x21424c['push'](..._0x355471['getRanges']());continue;}const _0x43032f=_0x355471['getFirstRange']();if(_0x21424c['length']>0x0){const _0x544aa2=_0x21424c[0x0]['getJoined'](_0x43032f);if(_0x544aa2){_0x21424c[0x0]=_0x544aa2;continue;}}_0x21424c['push'](_0x43032f);}_0x26d43d['push']([_0x30690e['view'],_0x21424c]);}return _0x26d43d;}),this['listenTo'](_0x34f7eb,'suggestionLoaded',(_0x49303f,_0x26458a)=>{this['listenTo'](_0x26458a,'change:previous',(_0x2e2877,_0x2b2e6d,_0x3fbba2,_0x3e2688)=>{_0x26458a['isInContent']&&(null==_0x3fbba2?(this['_updateController'](_0x3e2688['head']),this['_handleSuggestionControllerDelayed'](_0x26458a,!0x1)):(this['_updateController'](_0x3fbba2['head']),null==_0x3e2688&&this['_handleSuggestionControllerDelayed'](_0x26458a,!0x0)));}),null!==_0x26458a['previous']?this['_updateController'](_0x26458a['head']):this['_handleSuggestionControllerDelayed'](_0x26458a,!0x1);}),this['listenTo'](_0x34f7eb,'suggestionUnloaded',(_0x44e1b5,_0xa23c81,_0x3061e0)=>{this['stopListening'](_0xa23c81,'change:previous'),this['_handleControllerBuffer']['delete'](_0xa23c81),this['_suggestionToController']['has'](_0xa23c81)&&this['_destroyController'](_0xa23c81),_0x3061e0&&this['_updateController'](_0x3061e0['head']);}),this['listenTo'](_0x34f7eb,'suggestionChanged',(_0xa69eec,_0x7650b6)=>{this['_updateController'](_0x7650b6);}),this['listenTo'](_0x28c031,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x56c084,'addComment',(_0x2f37bc,{threadId:_0x24bbe5,isFromAdapter:_0x473374})=>{if(_0x473374||!_0x34f7eb['hasSuggestion'](_0x24bbe5))return;const _0x330bed=_0x34f7eb['getSuggestion'](_0x24bbe5);this['_suggestionToController']['get'](_0x330bed)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3b04f6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x945d0d;for(const _0x2901d6 in _0x3b04f6){const _0x25d4f4=_0x2901d6,_0x5b081=_0x3b04f6[_0x25d4f4];if('trackChangesLicenseKeyValid'==_0x5b081||'trackChangesLicenseKeyInvalid'==_0x5b081||'trackChangesLicenseKeyExpired'==_0x5b081||'trackChangesLicenseKeyDomainLimit'==_0x5b081||'trackChangesLicenseKeyNotAllowed'==_0x5b081||'trackChangesLicenseKeyEvaluationLimit'==_0x5b081||'trackChangesLicenseKeyTrialLimit'==_0x5b081||'trackChangesLicenseKeyUsageLimit'==_0x5b081){delete _0x3b04f6[_0x25d4f4],_0x945d0d=_0x5b081,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x945d0d&&_0x3b04f6['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x945d0d&&_0x3b04f6['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x945d0d&&_0x3b04f6['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x945d0d&&_0x3b04f6['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x945d0d&&_0x3b04f6['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x945d0d&&_0x3b04f6['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x945d0d&&_0x3b04f6['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x551d93){const _0x13c7fd=this['_suggestionToController']['get'](_0x551d93);if(!_0x13c7fd)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x13c7fd['view'])||null;}['getSuggestionForAnnotation'](_0x5d1d2f){const _0x5e5f25=this['_viewToController']['get'](_0x5d1d2f['innerView']);return _0x5e5f25?_0x5e5f25['model']:null;}['_refreshActiveMarkers'](){const _0x1b7c12=this['editor']['plugins']['get']('Annotations'),_0x32445d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e20b0=Array['from'](_0x1b7c12['activeAnnotations'],_0x2a041d=>_0x2a041d['innerView'])['filter'](_0x4f9e75=>this['_viewToController']['has'](_0x4f9e75)),_0x30763d=[];for(const _0x1b53e0 of _0x2e20b0){const _0x248f10=this['_viewToController']['get'](_0x1b53e0)['model']['getAllAdjacentSuggestions']();_0x30763d['push'](..._0x248f10['reduce']((_0x23652a,_0x1668d0)=>[..._0x23652a,..._0x1668d0['getMarkerNames']()],[]));}_0x32445d['activeMarkers']=_0x30763d;}['_addUIComponentsToFactory'](){const _0x19324f=this['editor'],_0x4500d7=_0x19324f['locale'],_0x23ef30=o(_0x4500d7,'Track\x20changes'),_0x1de2fe=new _0x1dd914([{'type':'switchbutton','model':new _0x5bca00({'withText':!0x0,'isToggleable':!0x0,'label':_0x23ef30,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5bca00({'withText':!0x0,'label':o(_0x4500d7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5bca00({'withText':!0x0,'label':o(_0x4500d7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5bca00({'withText':!0x0,'label':o(_0x4500d7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5bca00({'withText':!0x0,'label':o(_0x4500d7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x19324f['plugins']['has']('TrackChangesPreview')&&_0x1de2fe['addMany']([{'type':'separator'},{'type':'button','model':new _0x5bca00({'withText':!0x0,'label':o(_0x4500d7,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x450b4b of _0x1de2fe)if(ke(_0x450b4b)){const _0x42319c=_0x19324f['commands']['get'](_0x450b4b['model']['commandName']);_0x450b4b['model']['bind']('isOn','isEnabled')['to'](_0x42319c,'value','isEnabled');}_0x19324f['ui']['componentFactory']['add']('trackChanges',_0x1f9d11=>this['_createToolbarButton'](_0x1f9d11,_0x1de2fe,_0x23ef30)),_0x19324f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2ad4e7=>this['_createMenuBarMenu'](_0x2ad4e7,_0x1de2fe,_0x23ef30));}['_createToolbarButton'](_0x1c4cce,_0x203236,_0x11cd17){const _0x50886a=_0x1e437f(_0x1c4cce,_0x202e1a),_0x4b749e=this['editor']['commands']['get']('trackChanges');_0x50886a['buttonView']['set']({'tooltip':_0x11cd17,'label':_0x11cd17,'icon':_0x43b753}),_0x50886a['buttonView']['bind']('isOn')['to'](_0x4b749e,'value'),_0x50886a['buttonView']['on']('execute',()=>{_0x4b749e['execute'](),this['editor']['editing']['view']['focus']();}),_0x152cdf(_0x50886a,_0x203236,{'role':'menu'});const _0x3f4f32=[];for(const _0x1f8803 of _0x203236)ke(_0x1f8803)&&_0x3f4f32['push'](this['editor']['commands']['get'](_0x1f8803['model']['commandName']));const _0x399518=_0x50886a['buttonView'];return _0x399518['actionView']['unbind']('isEnabled'),_0x399518['arrowView']['unbind']('isEnabled'),_0x399518['actionView']['bind']('isEnabled')['to'](_0x4b749e,'isEnabled'),_0x399518['arrowView']['bind']('isEnabled')['toMany'](_0x3f4f32,'isEnabled',(..._0x4bd57f)=>_0x4bd57f['some'](_0x80a344=>_0x80a344)),_0x50886a['on']('execute',_0x3ab117=>{this['editor']['execute'](_0x3ab117['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x50886a;}['_createMenuBarMenu'](_0x3a9409,_0x6410bb,_0x55714a){const _0x4ef9bf=new _0x392ca6(_0x3a9409),_0x3761f8=this['editor']['commands']['get']('trackChanges');_0x4ef9bf['buttonView']['set']({'label':_0x55714a,'icon':_0x43b753});const _0xf3e743=new _0x2bb303(_0x3a9409);for(const _0x13bb95 of _0x6410bb){if('separator'==_0x13bb95['type']){_0xf3e743['items']['add'](new _0x3f8930(_0x3a9409));continue;}const _0xf38a09=new _0x7d02b3(_0x3a9409,_0x4ef9bf),_0x2b2498=new _0x433ed2(_0x3a9409),_0x4c5277=_0x13bb95['model'];_0x2b2498['bind'](...Object['keys'](_0x4c5277))['to'](_0x4c5277),_0x2b2498['delegate']('execute')['to'](_0x4ef9bf),_0x2b2498['on']('execute',()=>{this['editor']['execute'](_0x4c5277['commandName']),this['editor']['editing']['view']['focus']();}),_0xf38a09['children']['add'](_0x2b2498),_0xf3e743['items']['add'](_0xf38a09);}return _0x4ef9bf['bind']('isEnabled')['to'](_0x3761f8,'isEnabled'),_0x4ef9bf['panelView']['children']['add'](_0xf3e743),_0x4ef9bf;}['_initializeController'](_0x4654c7){const _0x146aaa=this['editor'],_0x224b5b=_0x146aaa['config'],_0x32637f=_0x146aaa['plugins']['get']('Annotations'),_0x5497c5=_0x146aaa['plugins']['get']('CommentsRepository'),_0x1f915d=_0x146aaa['plugins']['get']('EditorAnnotations'),_0x53864a=_0x146aaa['plugins']['get'](_0x1e445d)['me'],_0x59550f=_0x224b5b['get']('trackChanges')['SuggestionThreadView'],_0x24280e=_0x224b5b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5dd4f9,CommentThreadInputView:_0x10cd9e}=_0x146aaa['plugins']['get']('CommentsUI');let _0x101127,_0x294efc,_0x1364db;this['_annotationViews']['has'](_0x4654c7['id'])?(_0x294efc=this['_annotationViews']['get'](_0x4654c7['id']),_0x101127=_0x294efc['mainView']):(_0x101127=new _0x59550f(_0x146aaa['locale'],_0x4654c7,_0x53864a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x224b5b['get']('comments.editorConfig'),'licenseKey':_0x224b5b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x224b5b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x224b5b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x224b5b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x36690b(_0x224b5b['get']('locale'),_0x146aaa['locale']),'CommentView':_0x224b5b['get']('comments')['CommentView'],'CommentsListView':_0x5dd4f9,'CommentThreadInputView':_0x10cd9e,'SuggestionView':_0x24280e}),_0x101127['suggestionView']['acceptButton']['on']('execute',()=>{_0x146aaa['editing']['view']['focus']();}),_0x101127['suggestionView']['discardButton']['on']('execute',()=>{_0x146aaa['editing']['view']['focus']();}),_0x294efc=_0x32637f['createAnnotationView'](this['editor']['locale'],_0x101127),_0x294efc['bind']('isDirty')['to'](_0x101127,'isDirty'),_0x294efc['bind']('length')['to'](_0x101127),_0x294efc['bind']('type')['to'](_0x101127,'type',_0x24f825=>'suggestion-'+_0x24f825),_0x101127['on']('escape',()=>{_0x1364db['fire']('escape');}),this['_annotationViews']['set'](_0x4654c7['id'],_0x294efc));const _0x201e83=_0x5497c5['createCommentThreadController'](_0x4654c7['commentThread'],_0x101127),_0x181f61=new pe(_0x146aaa,_0x4654c7,_0x101127,_0x201e83),_0x346722=_0x4654c7['getAllAdjacentSuggestions']()['filter'](_0x5c49fe=>_0x5c49fe['isInContent']);_0x101127['descriptionParts']=_0x146aaa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x346722),this['_suggestionToController']['set'](_0x4654c7,_0x181f61),this['_viewToController']['set'](_0x101127,_0x181f61),_0x1364db=_0x32637f['createAnnotation']({'view':_0x294efc,'target':()=>{const _0x1a38ee=[],_0x234dc1=_0x4654c7['getAllAdjacentSuggestions']()['filter'](_0xb196e=>_0xb196e['isInContent']);for(const _0x174bbc of _0x234dc1)_0x1a38ee['push'](..._0x174bbc['getMarkers']());return _0x46a7c8(_0x146aaa['editing'],_0x1a38ee);},'type':()=>'suggestion-'+_0x181f61['view']['type']}),_0x5497c5['_bindAnnotationToEditors'](_0x101127,_0x1364db),_0x32637f['add'](_0x1364db),_0x1f915d['registerAnnotation'](_0x1364db);}['_destroyController'](_0xff5ec7){const _0x2b2442=this['editor']['plugins']['get']('CommentsRepository'),_0x2c05e3=this['editor']['plugins']['get']('Annotations'),_0x494c12=this['_suggestionToController']['get'](_0xff5ec7),_0x614869=_0x494c12['view'],_0x5db40b=_0x2c05e3['getByInnerView'](_0x614869);_0x2b2442['_unbindEditors'](_0x614869),_0x5db40b&&_0x2c05e3['remove'](_0x5db40b),this['_suggestionToController']['delete'](_0xff5ec7),this['_viewToController']['delete'](_0x614869),_0x494c12['destroy']();}['_updateController'](_0x508b00){if(!_0x508b00['isInContent']||!this['_suggestionToController']['has'](_0x508b00))return;const _0x4d1853=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2797fe=this['_suggestionToController']['get'](_0x508b00),_0x35e7f2=_0x508b00['getAllAdjacentSuggestions']();_0x2797fe['view']['descriptionParts']=_0x4d1853['descriptionFactory']['getDescriptions'](_0x35e7f2);}['destroy'](){for(const _0x3bdf74 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3bdf74);for(const _0x16372f of this['_annotationViews']['values']())_0x16372f['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x47d55c){return'model'in _0x47d55c;}class Fe extends _0x142398{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x26a5d9){this['editor']['plugins']['get'](d)['adapter']=_0x26a5d9;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x452478){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x452478);}['getSuggestions']({skipNotAttached:_0x49c705=!0x1,toJSON:_0x551fb0=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x49c705,'toJSON':_0x551fb0});}['getSuggestion'](_0x212781){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x212781);}}const p=['Pagination'];class re extends _0x142398{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x162605=this['editor'];if(_0x162605['config']['define']('trackChangesData.editorCreator',_0x499bc4=>{const _0x292d7e=_0x162605['model']['document']['getRootNames']()['reduce']((_0x155417,_0x253c1f)=>(_0x155417[_0x253c1f]='',_0x155417),{});return _0x162605['constructor']['create'](_0x292d7e,_0x499bc4);}),'function'!=typeof _0x162605['config']['get']('trackChangesData')['editorCreator'])throw new _0x33e300('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2ac989){return P(this['editor'],!0x0,_0x2ac989);}['getDataWithDiscardedSuggestions'](_0x30988c){return P(this['editor'],!0x1,_0x30988c);}}class Ge extends _0x142398{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x241766){function _0x17d273(_0xb7ea85){return _0xb7ea85['map'](_0x4c28d2=>String['fromCharCode'](_0x4c28d2))['join']('');}super(_0x241766),this['result']='end',_0x241766[_0x17d273([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17d273([0x76,0x69,0x65,0x77])][_0x17d273([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17d273([0x61,0x75,0x74,0x6f]),_0x241766[_0x17d273([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x17d273([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17d273([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x17d273([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x17d273([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 $e(_0x3f4634){return void 0x0!==_0x3f4634['getRootsAttributes'];}async function P(_0x44896a,_0x30df1a,_0x486a1f){const _0x519f82=_0x2b55a4(_0x44896a,p);_0x519f82['plugins']['push'](d,Ge),_0x519f82['rootsAttributes']=$e(_0x44896a)?_0x44896a['getRootsAttributes']():void 0x0;const _0x2abb40=document['createDocumentFragment'](),_0x3a653d=_0x44896a['config']['get']('trackChangesData')['editorCreator'],_0x4993fb=await _0x3a653d(_0x519f82,()=>function(_0x421a49){const _0x1a88ee=document['createElement']('div');return _0x421a49['appendChild'](_0x1a88ee),_0x1a88ee;}(_0x2abb40));!function(_0x485c35,_0x25e911){const _0x2a9dfa=_0x485c35['model']['document']['getRootNames']()['reduce']((_0x2867c6,_0x5354a7)=>(_0x2867c6[_0x5354a7]=_0x485c35['data']['get']({'rootName':_0x5354a7}),_0x2867c6),{}),_0x4761b7=_0x485c35['plugins']['get']('Users')['users']['map'](_0x30728c=>({'id':_0x30728c['id'],'name':_0x30728c['name']})),_0x3e77bf=_0x485c35['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2ab9fc=_0x485c35['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x20c1b2=_0x25e911['plugins']['get']('Users'),_0xe33a7e=_0x25e911['plugins']['get']('TrackChangesEditing'),_0x3aeab3=_0x25e911['plugins']['get']('CommentsRepository');for(const _0x4ca3db of _0x3aeab3['getCommentThreads']())_0x4ca3db['remove']();for(const _0x1cce1b of _0x4761b7)_0x20c1b2['getUser'](_0x1cce1b['id'])||_0x20c1b2['addUser'](_0x1cce1b);_0x20c1b2['me']||_0x20c1b2['useAnonymousUser']();for(const _0x1c6d8f of _0x2ab9fc)_0x3aeab3['addCommentThread'](_0x1c6d8f);for(const _0x5b5130 of _0x3e77bf)_0xe33a7e['addSuggestionData'](_0x5b5130);_0x25e911['data']['set'](_0x2a9dfa);}(_0x44896a,_0x4993fb),_0x4993fb['execute'](_0x30df1a?'acceptAllSuggestions':'discardAllSuggestions');const _0xbb9e8d=$e(_0x4993fb)?_0x4993fb['getFullData'](_0x486a1f):_0x4993fb['data']['get'](_0x486a1f);return await _0x4993fb['destroy'](),_0xbb9e8d;}class Me extends _0x2bab32{['options'];constructor(_0xe00348,_0x5c3d5a){super(_0xe00348),this['options']=_0x5c3d5a,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'](_0x2da0e3,_0x4819e1){if(!this['element'])return;const _0x7dabc7=[];for(const [_0x5383ec,_0x1ab618]of _0x2da0e3){const _0x1701bc=document['createElement']('div');_0x1701bc['setAttribute']('data-ck-root-name',_0x5383ec),_0x1701bc['className']=_0x1ab618['classes']+'\x20ck-track-changes-preview__root-container',_0x1701bc['innerHTML']=_0x1ab618['content'],_0x7dabc7['push'](_0x1701bc);}_0x4819e1(this['element'],_0x7dabc7),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x38a689{constructor(_0x22a9c1){super(_0x22a9c1),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4f7f47=this['editor'],_0x5be10e=_0x4f7f47['locale'],_0x1b26c7=_0x4f7f47['plugins']['get']('Dialog');let _0x257d2c;const _0xed1f73=function(_0x5e73f3){const _0x43faa6={};if('editables'in _0x5e73f3['ui']['view']){for(const [_0x253f4d,_0x444aec]of Object['entries'](_0x5e73f3['ui']['view']['editables']))_0x43faa6[_0x253f4d]=_0x444aec['element'];}else _0x43faa6[_0x5e73f3['model']['document']['getRootNames']()[0x0]]=_0x5e73f3['ui']['view']['editable']['element'];return _0x43faa6;}(_0x4f7f47),_0x3bfdc2=function(_0x1a9aef){let _0xa420ba=0x0;for(const _0x215f0c of Object['values'](_0x1a9aef))_0xa420ba=Math['max'](_0xa420ba,_0x215f0c['getBoundingClientRect']()['width']);let _0x5d71fa=0x0;for(const _0x46b549 of Object['values'](_0x1a9aef))_0x5d71fa+=_0x46b549['getBoundingClientRect']()['height'];const _0x44db43=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x439d0f=Math['min'](_0x5d71fa,_0x44db43);return{'width':_0xa420ba,'height':_0x439d0f};}(_0xed1f73);_0x1b26c7['show']({'id':'finalContentPreview','title':o(_0x5be10e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5be10e,{'dialogRects':_0x3bfdc2}),'onHide':()=>{_0x257d2c['detachFromDom']();},'onShow':()=>{_0x4f7f47['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x51fbdc=>{const _0x43e0cd=this['_standarizeRootsData'](_0x51fbdc,_0x4f7f47,_0xed1f73);_0x1b26c7['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x43e0cd,_0x4f7f47['config']['get']('trackChanges.preview.renderFunction'));}),_0x257d2c=new _0x22e14b(_0x5be10e,[_0x1b26c7['view']]),_0x257d2c['attachToDom'](),_0x257d2c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4f7f47['once']('destroy',()=>{_0x257d2c['detachFromDom']();});const _0x16b7b4=_0x1b26c7['view']['headerView']['class'];_0x1b26c7['view']['headerView']['class']=_0x16b7b4?_0x16b7b4+'\x20ck-reset_all':'ck-reset_all',_0x1b26c7['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1b26c7['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x27f589=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3b83c2=_0x27f589['previewMode'],_0x4bfbf0={};if('$labels'===_0x3b83c2){for(const _0x17decc of _0x27f589['getMergeFieldsIds']())_0x4bfbf0[_0x17decc]=_0x27f589['getLabel'](_0x17decc)||_0x17decc;}else{const _0x4cd19d='$defaultValues'===_0x3b83c2?_0x27f589['getDefaultValues']():_0x27f589['getDataSetValues'](_0x3b83c2,!0x0);for(const _0x4df8a0 of Object['entries'](_0x4cd19d)){const [_0x45b724,_0x46365b]=_0x4df8a0;_0x4bfbf0[_0x45b724]=null!==_0x46365b?_0x46365b:_0x27f589['getLabel'](_0x45b724)||_0x45b724;}}return{'mergeFieldsData':_0x4bfbf0};}['_standarizeRootsData'](_0x28e930,_0x28339d,_0x260575){let _0x339d6a;if('string'==typeof _0x28e930){const _0x16fa1b=_0x28339d['model']['document']['getRootNames']()[0x0];_0x339d6a={[_0x16fa1b]:_0x28e930};}else _0x339d6a=_0x28e930;const _0x11b34b=this['_fixMediaEmbeds'](_0x339d6a,_0x28339d),_0x26b09a=function(_0x5ed2d4,_0xfbcc30){for(const [_0x5d5451,_0x593dce]of _0x5ed2d4)_0x593dce['classes']=_0xfbcc30[_0x5d5451]['classList']['value']['replace']('ck-focused','');return _0x5ed2d4;}(this['_sortRoots'](_0x28339d)['reduce']((_0x447b1d,_0x167962)=>(_0x447b1d['push']([_0x167962,{'content':_0x11b34b[_0x167962],'classes':''}]),_0x447b1d),[]),_0x260575);return _0x26b09a;}['_fixMediaEmbeds'](_0x3090ec,_0xa00922){if(!_0xa00922['plugins']['has']('MediaEmbedEditing'))return _0x3090ec;const _0x58071b=_0xa00922['plugins']['get']('MediaEmbedEditing');for(const [_0x314b5c,_0x971431]of Object['entries'](_0x3090ec)){const _0x15f6b2=document['createElement']('div');_0x15f6b2['innerHTML']=_0x971431,(_0x15f6b2['querySelectorAll']('figure.media')['forEach'](_0x53ee2b=>{const _0x43c2f8=_0x53ee2b['querySelector']('oembed');if(_0x43c2f8){const _0x416ac9=_0x43c2f8['getAttribute']('url');if(_0x416ac9){const _0x49a4e0=_0x58071b['registry']['getMediaViewElement'](new _0x155f8c(_0xa00922['editing']['view']['document']),_0x416ac9,{'elementName':'','renderForEditingView':!0x0}),_0x30cd93=document['createElement']('div');_0x30cd93['classList']['add']('ck-media__wrapper'),_0x49a4e0['render'](_0x30cd93,_0xa00922['editing']['view']['domConverter']),_0x43c2f8['replaceWith'](_0x30cd93);}}}),_0x3090ec[_0x314b5c]=_0x15f6b2['innerHTML']);}return _0x3090ec;}['_sortRoots'](_0x165a37){if(!function(_0xf63d7a){return void 0x0!==_0xf63d7a['getRootsAttributes'];}(_0x165a37))return _0x165a37['model']['document']['getRootNames']();const _0x2319a8=[],_0x57a8ce=new Map();for(const _0x156043 of _0x165a37['model']['document']['getRootNames']()){const _0x3d1a50=_0x165a37['editing']['view']['getDomRoot'](_0x156043)['getClientRects']()['item'](0x0);_0x2319a8['push'](_0x156043),_0x57a8ce['set'](_0x156043,_0x3d1a50);}return _0x2319a8['sort']((_0x27d157,_0x2f8afe)=>{const _0x10d1c5=_0x57a8ce['get'](_0x27d157),_0x3e1014=_0x57a8ce['get'](_0x2f8afe);return _0x10d1c5['y']-_0x3e1014['y']||_0x10d1c5['x']-_0x3e1014['x'];}),_0x2319a8;}}class He extends _0x142398{static get['requires'](){return[re,_0x1e62e1];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ec819){super(_0x4ec819),_0x4ec819['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4ec819['config']['define']('trackChanges.preview.renderFunction',(_0x44da0d,_0x4c02ca)=>{for(const _0x5aa539 of _0x4c02ca)_0x44da0d['appendChild'](_0x5aa539);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
|