@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250503.0 → 0.0.0-nightly-20250504.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 +3 -3
- package/package.json +27 -27
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x16ce4b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x40a5d4,_0xca0b4e){super(),this['id']=_0xca0b4e['id'],this['type']=_0xca0b4e['type'],this['subType']=_0xca0b4e['subType']||null,this['author']=_0xca0b4e['author'],this['creator']=_0xca0b4e['creator']||_0xca0b4e['author'],this['isExternal']=Boolean(_0xca0b4e['attributes']&&_0xca0b4e['attributes']['@external']),this['data']=null,this['_model']=_0x40a5d4,this['_onAccept']=_0xca0b4e['onAccept'],this['_onDiscard']=_0xca0b4e['onDiscard'],this['_onAttributesChange']=_0xca0b4e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xca0b4e['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 _0x1c76e4=this;for(;_0x1c76e4['previous'];)_0x1c76e4=_0x1c76e4['previous'];return _0x1c76e4;}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'](_0xcb3396){this['_markerNames']['add'](_0xcb3396);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x239b8a=>this['_model']['markers']['get'](_0x239b8a))['filter'](_0x52ecc4=>_0x52ecc4);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x8fbf2d=>{for(const _0x5bc2b1 of this['getMarkers']())_0x8fbf2d['removeMarker'](_0x5bc2b1);}),this['_markerNames']['clear']();}['removeMarker'](_0x3f9343){this['_model']['change'](_0x299a7e=>{_0x299a7e['removeMarker'](_0x3f9343);}),this['_markerNames']['delete'](_0x3f9343);}['addRange'](_0x12c73b){const _0x35e3cc='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x35e3cc),this['_model']['change'](_0x5824d9=>{_0x5824d9['addMarker'](_0x35e3cc,{'range':_0x12c73b,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x179a2a){for(const _0x14a87d of this['getRanges']())if(_0x14a87d['isIntersecting'](_0x179a2a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1fed27=>_0x1fed27['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x11b3ea,_0x59e4d4)=>[..._0x11b3ea,..._0x59e4d4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3e5444=this['getRanges']();if(0x1!=_0x3e5444['length'])return null;const _0x1008a9=_0x3e5444[0x0],_0x5c592c=_0x1008a9['start']['nodeAfter'],_0x30437c=_0x1008a9['end']['nodeBefore'];return _0x5c592c instanceof _0x288260?_0x5c592c!=_0x30437c?null:_0x5c592c: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 _0x5e1d00=[];let _0xe4d055=this['head'];for(;_0xe4d055;)_0x5e1d00['push'](_0xe4d055),_0xe4d055=_0xe4d055['next'];return _0x5e1d00;}['setAttribute'](_0x8f32c7,_0x1b7ec3){const _0x36cbe5=_0x5e8802(this['attributes']);_0xb27ea9(_0x36cbe5,_0x8f32c7,_0x1b7ec3),_0x1370a7(_0x36cbe5,this['attributes'])||(this['attributes']=_0x36cbe5,this['_onAttributesChange'](_0x36cbe5));}['removeAttribute'](_0x39cf63){const _0x4eb775=_0x5e8802(this['attributes']);_0x5f2b71(_0x4eb775,_0x39cf63),_0x1370a7(_0x4eb775,this['attributes'])||(this['attributes']=_0x4eb775,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 _0x20de28()['substr'](0x1,0x5);}}function c(_0x57b5a5,_0x2e3d88,_0x1f25a8){const _0x4c541b=_0x57b5a5['t'],t=_0x57b5a5['t'];switch(_0x2e3d88){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',_0x1f25a8);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1f25a8);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1f25a8);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1f25a8);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1f25a8);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',_0x1f25a8);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1f25a8);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',_0x1f25a8);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1f25a8);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1f25a8);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1f25a8);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1f25a8);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1f25a8);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1f25a8);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1f25a8);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1f25a8);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1f25a8);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1f25a8);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1f25a8);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1f25a8);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1f25a8);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1f25a8);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1f25a8);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1f25a8);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1f25a8);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'},_0x1f25a8);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1f25a8);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1f25a8);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1f25a8);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1f25a8);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1f25a8);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1f25a8);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1f25a8);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'},_0x1f25a8);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1f25a8);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1f25a8);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1f25a8);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1f25a8);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'},_0x1f25a8);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1f25a8);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'},_0x1f25a8);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x1f25a8);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1f25a8);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'},_0x1f25a8);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1f25a8);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'},_0x1f25a8);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1f25a8);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1f25a8);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'},_0x1f25a8);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1f25a8);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 _0x4c541b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1f25a8);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4c541b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1f25a8);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1f25a8);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'},_0x1f25a8);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'},_0x1f25a8);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'},_0x1f25a8);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2e3d88;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3e9c26,_0x3d4319){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3e9c26,this['_locale']=_0x3d4319;}['getDescriptions'](_0x1c8197){const _0x5b338c=[],_0x59e3c3=new Set(),_0x288cf8=new Set();for(let _0x19cbe1=0x0;_0x19cbe1<_0x1c8197['length'];_0x19cbe1++){const _0x871b93=_0x1c8197[_0x19cbe1];if(!_0x871b93['isInContent'])continue;const _0x530d79=this['_handleCustomCallbackDescription'](_0x871b93);if(_0x530d79){if(null!=_0x871b93['subType']){if(_0x59e3c3['has'](_0x871b93['subType']))continue;_0x59e3c3['add'](_0x871b93['subType']);}_0x5b338c['push'](_0x530d79);}else{if('attribute'!=_0x871b93['type'])'insertion'!=_0x871b93['type']&&'deletion'!=_0x871b93['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5b338c,_0x871b93,_0x1c8197[_0x19cbe1+0x1]);else{const _0x3bf1d6=_0x871b93['data']['key'];if(_0x288cf8['has'](_0x3bf1d6))continue;_0x288cf8['add'](_0x871b93['data']['key']),_0x3bf1d6==u?this['_handleRenameSuggestionDescription'](_0x5b338c,_0x871b93):this['_handleAttributeSuggestionDescription'](_0x5b338c,_0x871b93);}}}return this['_resolveDescriptionItems'](_0x5b338c);}['registerDescriptionCallback'](_0x2454ac){this['_customCallbacks']['push'](_0x2454ac);}['registerElementLabel'](_0xccae99,_0x16d45a,_0x20ef72=_0x1626e5['normal']){'function'==typeof _0xccae99?_0x58f348(this['_itemLabelsCallbacks'],{'matchingCallback':_0xccae99,'label':_0x16d45a,'priority':_0x20ef72}):this['_itemLabels']['set'](_0xccae99,_0x16d45a);}['registerAttributeLabel'](_0x40f427,_0xa7c5f2){this['_attributeLabels']['set'](_0x40f427,_0xa7c5f2);}['getItemLabel'](_0x400fac,_0x3d985e=0x1){let _0x522db3;for(const _0x3b0c29 of this['_itemLabelsCallbacks'])if(_0x3b0c29['matchingCallback'](_0x400fac)){_0x522db3=_0x3b0c29['label'];break;}return _0x522db3||(_0x522db3=this['_itemLabels']['get'](_0x400fac['name'])),_0x522db3?_0x522db3(_0x3d985e):0x1!==_0x3d985e?_0x3d985e+'\x20'+_0x400fac['name']+'s':''+_0x400fac['name'];}['_addDescriptionItems'](_0x50bc01,_0x40b131){const _0x316460=_0x40b131['getFirstRange']()['getWalker'](),_0x1049c8='insertion'==_0x40b131['type']?'add':'remove';for(const _0x3e32bb of _0x316460){const _0x802a9b=_0x3e32bb['item'],_0x28bcd5=_0x50bc01[_0x50bc01['length']-0x1];if(_0x802a9b['is']('$textProxy'))_0x28bcd5&&_0x28bcd5['type']['indexOf']('Container')>-0x1&&_0x50bc01['pop'](),_0x28bcd5&&'text'==_0x28bcd5['type']?_0x28bcd5[_0x1049c8]+=_0x802a9b['data']:_0x50bc01['push']({'type':'text','add':'add'==_0x1049c8?_0x802a9b['data']:'','remove':'remove'==_0x1049c8?_0x802a9b['data']:''});else{if(this['_schema']['isObject'](_0x802a9b)){const _0x21244d=_0x802a9b;if(_0x28bcd5&&_0x28bcd5['type']['indexOf']('Container')>-0x1&&_0x50bc01['pop'](),'elementEnd'==_0x3e32bb['type'])continue;_0x28bcd5&&_0x28bcd5['type']==_0x1049c8+'Object'&&_0x28bcd5['element']['name']==_0x21244d['name']?_0x28bcd5['quantity']++:_0x50bc01['push']({'type':_0x1049c8+'Object','element':_0x21244d,'quantity':0x1}),_0x316460['skip'](_0x5c66c4=>!('elementEnd'==_0x5c66c4['type']&&_0x5c66c4['item']==_0x802a9b));}else{if(this['_schema']['checkChild'](_0x802a9b,'$text')||_0x802a9b['is']('element','softBreak')){const _0x4dc7ee=_0x802a9b;if('add'==_0x1049c8&&'elementStart'==_0x3e32bb['type']||'remove'==_0x1049c8&&'elementEnd'==_0x3e32bb['type'])continue;if(_0x28bcd5&&-0x1==_0x28bcd5['type']['indexOf']('Container')){'text'==_0x28bcd5['type']&&(_0x28bcd5[_0x1049c8]+='\x0a');continue;}let _0x481a78;if(_0x481a78='add'==_0x1049c8?_0x4dc7ee['nextSibling']&&!this['_schema']['isObject'](_0x4dc7ee['nextSibling'])?_0x4dc7ee['nextSibling']:null:_0x4dc7ee['previousSibling']&&!this['_schema']['isObject'](_0x4dc7ee['previousSibling'])?_0x4dc7ee['previousSibling']:null,_0x4dc7ee['isEmpty']||_0x481a78&&_0x481a78['isEmpty']){const _0x402b19=_0x481a78&&_0x481a78['isEmpty']?_0x481a78:_0x4dc7ee;_0x28bcd5&&_0x28bcd5['type']==_0x1049c8+'EmptyContainer'&&_0x28bcd5['element']['name']==_0x402b19['name']?_0x28bcd5['quantity']++:_0x50bc01['push']({'type':_0x1049c8+'EmptyContainer','element':_0x402b19,'quantity':0x1});}else _0x50bc01['push']({'type':_0x1049c8+'Container','element':_0x4dc7ee});}}}}}['_resolveDescriptionItems'](_0x58cb7a){const _0x1f0f70=this['_locale'],_0x182988=[],_0x3fbb1c=[],_0x21dbe4=[];for(const _0x46b76a of _0x58cb7a)switch(_0x46b76a['type']){case'text':if(_0x46b76a['add']=_0x46b76a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x46b76a['remove']=_0x46b76a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x46b76a['add']&&''!=_0x46b76a['remove']){_0x182988['push']({'type':'replace','content':c(_0x1f0f70,'REPLACE_TEXT',['\x22'+_0x46b76a['remove']+'\x22','\x22'+_0x46b76a['add']+'\x22'])});continue;}if(null!=_0x46b76a['add']['match'](/^ +$/)){_0x182988['push']({'type':'insertion','content':c(_0x1f0f70,'*Insert:*\x20%0',c(_0x1f0f70,'ELEMENT_SPACE',_0x46b76a['add']['length']))});continue;}if(null!=_0x46b76a['remove']['match'](/^ +$/)){_0x182988['push']({'type':'deletion','content':c(_0x1f0f70,'*Remove:*\x20%0',c(_0x1f0f70,'ELEMENT_SPACE',_0x46b76a['remove']['length']))});continue;}if(''!=_0x46b76a['add']){_0x182988['push']({'type':'insertion','content':c(_0x1f0f70,'*Insert:*\x20%0','\x22'+_0x46b76a['add']+'\x22')});continue;}_0x182988['push']({'type':'deletion','content':c(_0x1f0f70,'*Remove:*\x20%0','\x22'+_0x46b76a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x182988['push']({'type':'insertion','content':c(_0x1f0f70,'*Insert:*\x20%0',this['getItemLabel'](_0x46b76a['element'],_0x46b76a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x182988['push']({'type':'deletion','content':c(_0x1f0f70,'*Remove:*\x20%0',this['getItemLabel'](_0x46b76a['element'],_0x46b76a['quantity']))});continue;case'addContainer':_0x182988['push']({'type':'insertion','content':c(_0x1f0f70,'*Split:*\x20%0',this['getItemLabel'](_0x46b76a['element'],_0x46b76a['quantity']))});continue;case'removeContainer':_0x182988['push']({'type':'deletion','content':c(_0x1f0f70,'*Merge:*\x20%0',this['getItemLabel'](_0x46b76a['element'],_0x46b76a['quantity']))});continue;case'addFormat':_0x3fbb1c['push'](_0x46b76a['key']);continue;case'removeFormat':_0x21dbe4['push'](_0x46b76a['key']);continue;default:_0x182988['push'](_0x46b76a);}if(_0x3fbb1c['length']){const _0x156200=_0x3fbb1c['map'](_0x1b164b=>this['_attributeLabels']['has'](_0x1b164b)?this['_attributeLabels']['get'](_0x1b164b):_0x1b164b)['join'](',\x20');_0x182988['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x156200)});}if(_0x21dbe4['length']){const _0x581d79=_0x21dbe4['map'](_0xf38d35=>this['_attributeLabels']['has'](_0xf38d35)?this['_attributeLabels']['get'](_0xf38d35):_0xf38d35)['join'](',\x20');_0x182988['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x581d79)});}return _0x182988;}['_handleCustomCallbackDescription'](_0x194cfb){for(const _0x46e72b of this['_customCallbacks']){const _0x427a25=_0x46e72b(_0x194cfb);if(_0x427a25&&'type'in _0x427a25)return _0x427a25;}}['_handleAttributeSuggestionDescription'](_0x355d71,_0x3067d1){const _0x44310b=_0x3067d1['data'],_0x4af1f7=void 0x0===_0x44310b['newValue']?'removeFormat':'addFormat';_0x355d71['push']({'type':_0x4af1f7,'key':_0x44310b['key']});}['_handleRenameSuggestionDescription'](_0x5c9906,_0x53a125){_0x5c9906['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x53a125['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x19eb40,_0x3af653,_0x3e96dc){if(this['_addDescriptionItems'](_0x19eb40,_0x3af653),_0x3e96dc&&_0x3e96dc['getFirstRange']()&&!_0x3af653['getFirstRange']()['end']['isEqual'](_0x3e96dc['getFirstRange']()['start'])){const _0x2ebde6=_0x19eb40[_0x19eb40['length']-0x1],_0x245757='insertion'==_0x3af653['type']?'add':'remove';_0x2ebde6&&'text'==_0x2ebde6['type']&&(_0x2ebde6[_0x245757]+='\x0a');}}}class U extends _0x483067{['afterInit'](){const _0x50a083=this['editor'],_0x2eeb55=_0x50a083['plugins']['get']('TrackChangesEditing');_0x50a083['commands']['get']('showAIAssistant')&&_0x2eeb55['enableCommand']('showAIAssistant');}}class V extends _0x483067{['afterInit'](){const _0x2e0952=this['editor'],_0x5ad303=_0x2e0952['locale'];if(!_0x2e0952['plugins']['has']('AlignmentEditing'))return;const _0x4ef5a5=_0x2e0952['plugins']['get']('TrackChangesEditing');_0x4ef5a5['enableDefaultAttributesIntegration']('alignment'),_0x4ef5a5['registerBlockAttribute']('alignment'),_0x4ef5a5['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x5ad303,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5549f7=this['editor'],_0x25c497=_0x5549f7['locale'];_0x5549f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5950d3=>{if('formatBlock'!=_0x5950d3['type'])return;const {data:_0x39a898}=_0x5950d3;if(_0x39a898&&'alignment'==_0x39a898['commandName']){const _0x5ae924=_0x39a898['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x25c497,'*Format:*\x20%0',function(_0x1f6968){switch(_0x1f6968){case'left':return c(_0x25c497,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x25c497,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x25c497,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x25c497,'FORMAT_JUSTIFY_TEXT');}}(_0x5ae924))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x483067{['afterInit'](){const _0x3d425a=this['editor'],_0x3d3562=_0x3d425a['plugins']['get']('TrackChangesEditing'),_0x2081ab=_0x3d425a['locale'];for(const _0x43008 of Zt){if(!_0x3d425a['plugins']['has'](_0x43008))continue;const _0x26f8c0=_0x43008['slice'](0x0,-0x7)['toLowerCase'](),_0x342470='FORMAT_'+_0x26f8c0['toUpperCase']();_0x3d3562['enableDefaultAttributesIntegration'](_0x26f8c0),_0x3d3562['registerInlineAttribute'](_0x26f8c0),_0x3d3562['descriptionFactory']['registerAttributeLabel'](_0x26f8c0,c(_0x2081ab,_0x342470));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c450a=this['editor'],_0x67d25=_0x4c450a['locale'],_0xeb72f=_0x4c450a['plugins']['get']('TrackChangesEditing');function _0x82a18c(_0x1f3f3e,_0x4edc05){_0xeb72f['descriptionFactory']['registerDescriptionCallback'](_0x4b322f=>{if('formatInline'!=_0x4b322f['type'])return;const {data:_0x3f71b7}=_0x4b322f;return _0x3f71b7&&_0x3f71b7['commandName']===_0x1f3f3e?_0x3f71b7['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x67d25,'*Format:*\x20%0',_0x4edc05)}:{'type':'format','content':c(_0x67d25,'*Remove\x20format:*\x20%0',_0x4edc05)}:void 0x0;});}_0x82a18c('bold',c(_0x67d25,'FORMAT_BOLD')),_0x82a18c('italic',c(_0x67d25,'FORMAT_ITALIC')),_0x82a18c('underline',c(_0x67d25,'FORMAT_UNDERLINE')),_0x82a18c('code',c(_0x67d25,'FORMAT_CODE')),_0x82a18c('strikethrough',c(_0x67d25,'FORMAT_STRIKETHROUGH')),_0x82a18c('subscript',c(_0x67d25,'FORMAT_SUBSCRIPT')),_0x82a18c('superscript',c(_0x67d25,'FORMAT_SUPERSCRIPT'));}}class G extends _0x483067{['afterInit'](){const _0x529f03=this['editor'],_0x1b90aa=_0x529f03['locale'];if(!_0x529f03['plugins']['has']('BlockQuoteEditing'))return;const _0x1009f0=_0x529f03['plugins']['get']('TrackChangesEditing'),_0xc9848c=this['editor']['commands']['get']('blockQuote');_0x1009f0['enableCommand']('blockQuote',(_0x4444af,_0x102f24={})=>{const _0x4f9be6=this['editor']['model']['document']['selection'],_0x3f1e66=_0x102f24&&void 0x0!==_0x102f24['forceValue']?_0x102f24['forceValue']:!_0xc9848c['value'];let _0x59054c=[];if(_0x3f1e66){const _0x2d2c31=Array['from'](_0x4f9be6['getSelectedBlocks']())['filter'](_0x2e75a5=>oo(_0x2e75a5)||function(_0xbeedf5,_0x2d0296){const _0x45be87=_0x2d0296['checkChild'](_0xbeedf5['parent'],'blockQuote'),_0xb12d2d=_0x2d0296['checkChild'](['$root','blockQuote'],_0xbeedf5);return _0x45be87&&_0xb12d2d;}(_0x2e75a5,this['editor']['model']['schema']));_0x59054c=to(_0x2d2c31,_0x529f03['model']);}else{const _0x1ce960=Array['from'](_0x4f9be6['getSelectedBlocks']())['filter'](_0x165632=>oo(_0x165632));_0x59054c=to(_0x1ce960,_0x529f03['model']);}_0x529f03['model']['change'](()=>{for(const _0x1206cf of _0x59054c)_0x1009f0['markBlockFormat'](_0x1206cf,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3f1e66}]});});}),_0x1009f0['descriptionFactory']['registerDescriptionCallback'](_0x3e0f16=>{const {data:_0x4d27f3}=_0x3e0f16;if(_0x4d27f3&&'blockQuote'==_0x4d27f3['commandName']){const _0xf79535=c(_0x1b90aa,'ELEMENT_BLOCK_QUOTE');return _0x4d27f3['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1b90aa,'*Set\x20format:*\x20%0',_0xf79535)}:{'type':'format','content':c(_0x1b90aa,'*Remove\x20format:*\x20%0',_0xf79535)};}});}}function oo(_0xf110c6){return'blockQuote'==_0xf110c6['parent']['name'];}class L extends _0x483067{['afterInit'](){const _0x23bd79=this['editor'],_0x10a2ca=_0x23bd79['locale'],_0x18da3e=_0x23bd79['plugins']['get']('TrackChangesEditing');_0x23bd79['plugins']['has']('BookmarkEditing')&&(_0x18da3e['enableCommand']('insertBookmark'),_0x18da3e['enableDefaultAttributesIntegration']('updateBookmark'),_0x18da3e['registerBlockAttribute']('bookmarkId'),_0x18da3e['descriptionFactory']['registerDescriptionCallback'](_0x31303a=>{if('insertion'!=_0x31303a['type']&&'deletion'!=_0x31303a['type']&&'attribute'!=_0x31303a['type'])return;const _0x455060=_0x31303a['getContainedElement']();if(null==_0x455060)return;if(!_0x455060['is']('element','bookmark'))return;const _0x40d7a9=_0x455060['getAttribute']('bookmarkId');if('insertion'==_0x31303a['type'])return{'type':'insertion','content':c(_0x10a2ca,'*Insert:*\x20%0','\x22'+_0x40d7a9+'\x22\x20'+c(_0x10a2ca,'ELEMENT_BOOKMARK'))};if('deletion'==_0x31303a['type'])return{'type':'deletion','content':c(_0x10a2ca,'*Remove:*\x20%0','\x22'+_0x40d7a9+'\x22\x20'+c(_0x10a2ca,'ELEMENT_BOOKMARK'))};const {data:_0x3903ee}=_0x31303a;if(!_0x3903ee||'bookmarkId'!=_0x3903ee['key'])return;return{'type':'format','content':c(_0x10a2ca,'*Set\x20bookmark:*\x20%0','\x22'+_0x3903ee['newValue']+'\x22')};}));}}class J extends _0x483067{['afterInit'](){const _0x48cf64=this['editor'];_0x48cf64['plugins']['has']('CaseChange')&&(_0x48cf64['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x48cf64['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x48cf64['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x483067{['afterInit'](){const _0x3beb02=this['editor'];_0x3beb02['commands']['get']('ckbox')&&_0x3beb02['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x483067{['afterInit'](){const _0x236eef=this['editor'];if(!_0x236eef['plugins']['has']('CodeBlock'))return;const _0x44e68e=_0x236eef['plugins']['get']('TrackChangesEditing'),_0x334c99=_0x236eef['locale'],_0x4de469=_0x236eef['config']['get']('codeBlock')['languages'],_0x3e288c=_0x236eef['commands']['get']('codeBlock');_0x44e68e['enableCommand']('indentCodeBlock'),_0x44e68e['enableCommand']('outdentCodeBlock'),_0x44e68e['enableCommand']('codeBlock',(_0x29b8a7,_0x14b6da={})=>{const _0x4ce7c2=_0x236eef['model'],_0x4ab306=_0x236eef['model']['document']['selection'],_0xd1f6bb=_0x14b6da&&void 0x0!==_0x14b6da['forceValue']?_0x14b6da['forceValue']:!_0x3e288c['value'];let _0x235a24;_0x14b6da['language']||(_0x14b6da['language']=_0x4de469[0x0]['language']),_0x235a24=_0xd1f6bb?Array['from'](_0x4ab306['getSelectedBlocks']())['filter'](_0x141ba3=>eo(_0x141ba3)||function(_0x40071f,_0x2c9141){if(_0x40071f['is']('rootElement')||_0x2c9141['isLimit'](_0x40071f))return!0x1;return _0x2c9141['checkChild'](_0x40071f['parent'],'codeBlock');}(_0x141ba3,_0x4ce7c2['schema'])):Array['from'](_0x4ab306['getSelectedBlocks']())['filter'](_0x3a3376=>eo(_0x3a3376));const _0x4b04e1=to(_0x235a24,_0x4ce7c2);_0x4ce7c2['change'](()=>{for(const _0x2a23de of _0x4b04e1)_0x44e68e['markBlockFormat'](_0x2a23de,{'commandName':'codeBlock','commandParams':[{..._0x14b6da,'forceValue':_0xd1f6bb}],'formatGroupId':'blockName'});});}),(_0x44e68e['descriptionFactory']['registerElementLabel']('codeBlock',_0xd7c51=>c(_0x334c99,'ELEMENT_CODE_BLOCK',_0xd7c51)),_0x44e68e['descriptionFactory']['registerDescriptionCallback'](_0x3087d8=>{if('formatBlock'!=_0x3087d8['type'])return;const _0xd03c3d=_0x334c99['t'],{data:_0x36275b}=_0x3087d8;if(!_0x36275b||'codeBlock'!=_0x36275b['commandName'])return;const _0x50c2b2=_0x36275b['commandParams'][0x0]['language'],_0x37dda8=_0xd03c3d(_0x4de469['find'](_0x322ecd=>_0x322ecd['language']===_0x50c2b2)['label'])['toLowerCase']();return _0x36275b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x334c99,'*Set\x20format:*\x20%0',c(_0x334c99,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x37dda8+')')}:{'type':'format','content':c(_0x334c99,'*Remove\x20format:*\x20%0',c(_0x334c99,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4bb504){return'codeBlock'==_0x4bb504['name'];}class q extends _0x483067{['afterInit'](){const _0x12e1ee=this['editor'];if(!_0x12e1ee['plugins']['has']('CommentsEditing'))return;_0x12e1ee['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x20815b,_0x7cf7f6,_0x12aa03){const _0x509bda=[];for(const _0x6cbca8 of _0x7cf7f6['getItems']())_0x6cbca8['hasAttribute'](_0x20815b)&&_0x509bda['push'](_0x12aa03['createRangeOn'](_0x6cbca8));return _0x509bda;}function Fe(_0x4a1eee,_0x1a5d1d,{showActiveMarker:_0x5528e8=!0x0}={}){const _0x250fb2=_0x4a1eee['plugins']['get']('TrackChangesEditing');return(_0x2ce343,_0x497695,_0x26b9b7)=>{if(!_0x26b9b7['consumable']['test'](_0x497695['markerRange'],_0x2ce343['name']))return;const _0x168de4=_0x497695['markerRange']['getWalker'](),_0x42c18a=_0x497695['markerRange']['start'],_0x39ff0f=_0x4a1eee['model']['schema'];let _0x2d1538=null,_0x2689fe=null,_0x5e2345=!0x1,_0xcd58d9=!0x1;for(const _0x145ead of _0x168de4){const _0x9d87a9=_0x145ead['item'];_0x5e2345=_0x5e2345||_0x39ff0f['isContent'](_0x9d87a9);const _0x17acb7=_0x26b9b7['mapper']['toViewElement'](_0x9d87a9);if(_0x17acb7&&_0x17acb7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x145ead['type']&&(_0x39ff0f['isBlock'](_0x9d87a9)&&!_0x39ff0f['isLimit'](_0x9d87a9)&&(_0x9d87a9['nextSibling']||_0x42c18a['isAtEnd']?_0x2d1538&&_0x2d1538['parent']==_0x9d87a9||(_0x2d1538=_0x9d87a9,_0x4e193a(_0x145ead['previousPosition']),_0xcd58d9=!0x0):_0x2689fe=_0x2689fe||_0x145ead['previousPosition']));}function _0x4e193a(_0x2a259d){const {id:_0x3bc87d,authorId:_0xbf811f}=_0x250fb2['_splitMarkerName'](_0x497695['markerName']),_0x33fdf9=_0x26b9b7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1a5d1d,'data-suggestion':_0x3bc87d,'data-author-id':_0xbf811f}),_0x1c65e8=_0x26b9b7['mapper']['toViewPosition'](_0x2a259d);_0x5528e8&&_0x250fb2['activeMarkers']['includes'](_0x497695['markerName'])&&_0x26b9b7['writer']['addClass']('ck-suggestion-marker--active',_0x33fdf9),_0x26b9b7['writer']['insert'](_0x1c65e8,_0x33fdf9),_0x26b9b7['mapper']['bindElementToMarker'](_0x33fdf9,_0x497695['markerName']);}_0x5e2345||_0xcd58d9||!_0x2689fe||_0x4e193a(_0x2689fe);};}class z extends _0x483067{static get['requires'](){return[_0x212892];}['init'](){const _0x2245db=this['editor'],_0x524d61=_0x2245db['plugins']['get']('TrackChangesEditing');_0x524d61['enableCommand']('delete');const _0x10c296=_0x2245db['commands']['get']('deleteForward');_0x524d61['enableCommand']('deleteForward',(_0x42bd1d,_0x53f631={})=>{const _0x37a9e3=_0x2245db['model']['createSelection'](_0x2245db['model']['document']['selection']);_0x37a9e3['isCollapsed']&&_0x2245db['model']['modifySelection'](_0x37a9e3,{'direction':'forward','unit':_0x53f631['unit']});const _0x2dc8c3=_0x37a9e3['getFirstRange'](),_0x1cc115=_0x3bdca8['fromRange'](_0x2dc8c3);let _0x15fcd4;_0x42bd1d(_0x53f631),_0x15fcd4='$graveyard'==_0x1cc115['root']['rootName']?_0x2245db['model']['createRange'](_0x2dc8c3['start']):_0x2245db['model']['createRange'](_0x1cc115['start'],_0x1cc115['end']),_0x1cc115['detach'](),_0x2245db['model']['enqueueChange'](_0x10c296['buffer']['batch'],_0x4fa936=>{_0x10c296['buffer']['lock'](),_0x4fa936['setSelection'](_0x4fa936['createRange'](_0x15fcd4['end'])),_0x10c296['buffer']['unlock']();});}),_0x2245db['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x2245db,'merge'),{'priority':'high'}),_0x2245db['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3d6abc,_0x4ebb4c,_0x543e41)=>{_0x543e41['options']['showSuggestionHighlights']&&Fe(_0x2245db,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3d6abc,_0x4ebb4c,_0x543e41);},{'priority':'high'}),_0x2245db['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x172a80,_0x4f0600,_0x17bf85)=>{const _0x5485bf=_0x17bf85['mapper']['markerNameToElements'](_0x4f0600['markerName']);if(_0x5485bf){for(const _0x2d4cb6 of _0x5485bf)_0x2d4cb6['is']('uiElement')&&(_0x17bf85['mapper']['unbindElementFromMarkerName'](_0x2d4cb6,_0x4f0600['markerName']),_0x17bf85['writer']['remove'](_0x2d4cb6));}},{'priority':'high'});}}class W extends _0x483067{['afterInit'](){const _0x1fca2e=this['editor'];if(!_0x1fca2e['plugins']['has']('ListEditing'))return;const _0x5f4028=_0x1fca2e['locale'],_0x4f4c70=_0x1fca2e['plugins']['get']('TrackChangesEditing'),_0x4e2895=_0x1fca2e['plugins']['has']('TodoListEditing'),_0x139902=!!_0x1fca2e['config']['get']('list.multiBlock');function _0x1e8ee5(_0x4cafa6){return{'type':'format','content':''+c(_0x5f4028,'*Set\x20format:*\x20%0',_0x4cafa6)};}function _0x1294ab(_0x3a8978){return{'type':'format','content':''+c(_0x5f4028,'*Remove\x20format:*\x20%0',_0x3a8978)};}_0x4f4c70['enableDefaultAttributesIntegration']('numberedList'),_0x4f4c70['enableDefaultAttributesIntegration']('bulletedList'),_0x4f4c70['enableDefaultAttributesIntegration']('customNumberedList'),_0x4f4c70['enableDefaultAttributesIntegration']('customBulletedList'),_0x4f4c70['enableDefaultAttributesIntegration']('indentList'),_0x4f4c70['enableDefaultAttributesIntegration']('outdentList'),_0x4f4c70['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4f4c70['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4f4c70['registerBlockAttribute']('listItemId'),_0x4f4c70['registerBlockAttribute']('listType'),_0x4f4c70['registerBlockAttribute']('listIndent'),_0x139902&&(_0x4f4c70['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4f4c70['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4e2895&&(_0x4f4c70['enableDefaultAttributesIntegration']('todoList'),_0x4f4c70['enableDefaultAttributesIntegration']('checkTodoList'),_0x4f4c70['registerBlockAttribute']('todoListChecked'),_0x4f4c70['descriptionFactory']['registerDescriptionCallback'](_0x13879e=>{const {data:_0xf6f13c}=_0x13879e;if(_0xf6f13c&&'todoListChecked'==_0xf6f13c['key'])return{'type':'format','content':_0xf6f13c['newValue']?c(_0x5f4028,'*Check\x20item*'):c(_0x5f4028,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3c3704=>{if(_0x3c3704['batch']['isUndo'])return!0x1;let _0x3d26f9=!0x1;const _0x13c72b=_0x4f4c70['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50248a=>'todoListChecked'===_0x4f4c70['_getAttributeKey'](_0x50248a));for(const _0x14691f of _0x13c72b){'todo'!=_0x14691f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4f4c70['_findSuggestions'](_0x14691f['getFirstRange'](),'attribute')['find'](_0x3586cf=>'listType'===_0x4f4c70['_getAttributeKey'](_0x3586cf['suggestion']))||(_0x3c3704['removeMarker'](_0x14691f['getFirstMarker']()),_0x3d26f9=!0x0));}return _0x3d26f9;})),_0x4f4c70['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x5f4028,'FORMAT_INDENT'));const _0x44fafb={'type':'format','content':''};_0x4f4c70['descriptionFactory']['registerDescriptionCallback'](_0x500a4e=>{const {data:_0x5920f7}=_0x500a4e;if(!_0x5920f7||'listType'!=_0x5920f7['key'])return;let _0x443660=_0x500a4e['head'];for(;_0x443660;){if(_0x443660['data']&&(('listStyle'==_0x443660['data']['key']||'listMarkerStyle'==_0x443660['data']['key'])&&(_0x443660['data']['newValue']&&'default'!=_0x443660['data']['newValue']||'default'!=_0x443660['data']['oldValue']&&!_0x5920f7['newValue'])||!_0x139902&&_0x443660['data']['key']==u))return _0x44fafb;_0x443660=_0x443660['next'];}if(null==_0x5920f7['newValue'])switch(_0x5920f7['oldValue']){case'bulleted':return _0x1294ab(c(_0x5f4028,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1294ab(c(_0x5f4028,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1294ab(c(_0x5f4028,'ELEMENT_TODO_LIST'));}switch(_0x5920f7['newValue']){case'bulleted':return _0x1e8ee5(c(_0x5f4028,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1e8ee5(c(_0x5f4028,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1e8ee5(c(_0x5f4028,'ELEMENT_TODO_LIST'));}}),_0x4f4c70['descriptionFactory']['registerDescriptionCallback'](_0x4702b3=>{const {data:_0x22145f}=_0x4702b3;if(_0x22145f&&'listIndent'==_0x22145f['key'])return null==_0x22145f['newValue']||null==_0x22145f['oldValue']&&0x0==_0x22145f['newValue']?_0x44fafb:void 0x0;}),_0x4f4c70['descriptionFactory']['registerDescriptionCallback'](_0x1bd0da=>{if('attribute'!=_0x1bd0da['type'])return;const {data:_0xb56e41}=_0x1bd0da;if(!_0xb56e41||'listItemId'!=_0xb56e41['key'])return;const _0x5955ed=Te(_0x1bd0da);return'newValue'==_0x5955ed?{'type':'format','content':c(_0x5f4028,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5955ed?{'type':'format','content':c(_0x5f4028,'*Split:*\x20list\x20item')}:_0x44fafb;}),_0x1fca2e['model']['document']['registerPostFixer'](_0x15ba02=>this['listItemIdFixer'](_0x15ba02)),_0x1fca2e['model']['document']['registerPostFixer'](_0x4bdc55=>this['noTrackChangesFixer'](_0x4bdc55)),_0x1fca2e['model']['document']['on']('change:data',(_0x5bd87d,_0x5eb26e)=>{if(_0x5eb26e['isUndo']||!_0x5eb26e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x171baf){if(_0x171baf['batch']['isUndo']||!_0x171baf['batch']['isLocal'])return!0x1;let _0x4b23e6=!0x1;const _0x261612=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3278f2=>_0x3278f2['data']&&'listItemId'==_0x3278f2['data']['key'])['filter'](_0x5c315d=>_0x5c315d['data']['newValue']&&_0x5c315d['data']['oldValue']);for(const _0x9d761f of _0x261612)Te(_0x9d761f)||(_0x171baf['removeMarker'](_0x9d761f['getFirstMarker']()),_0x4b23e6=!0x0);return _0x4b23e6;}['noTrackChangesFixer'](_0x57a6a6){if(_0x57a6a6['batch']['isUndo']||!_0x57a6a6['batch']['isLocal'])return!0x1;const _0x4e2fb8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4e2fb8['trackChangesCommand']['value'])return!0x1;let _0xb23317=!0x1;const _0x4799b2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x57fdc5=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x29a0a6=>'attribute'==_0x29a0a6['type'])['filter'](_0x1d98cd=>_0x4799b2['includes'](_0x1d98cd['attributeKey']));if(0x0==_0x57fdc5['length'])return _0xb23317;for(const _0x45ce00 of _0x57fdc5){const _0x281e42=_0x4e2fb8['_findSuggestions'](_0x45ce00['range'],'attribute')['filter'](_0x2cf719=>!_0x2cf719['meta']['isNextTo'])['map'](_0x1fffe9=>_0x1fffe9['suggestion'])['filter'](_0x5b8872=>{const _0x272e02=_0x4e2fb8['_getAttributeKey'](_0x5b8872);return _0x4799b2['includes'](_0x272e02);});if(_0x281e42['length']){for(const _0x41a856 of _0x281e42)_0x57a6a6['removeMarker'](_0x41a856['getFirstMarker']());_0xb23317=!0x0;}}return _0xb23317;}['assureChains'](){const _0x5d54e2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22b711=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x7fdd9c;const _0x30add2=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xe83756=>{if(_0xe83756['data']['oldRange']||!_0xe83756['data']['newRange'])return null;if(!_0xe83756['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1e4181}=_0x5d54e2['_splitMarkerName'](_0xe83756['name']);if(!_0x5d54e2['hasSuggestion'](_0x1e4181))return null;const _0x103f7b=_0x5d54e2['getSuggestion'](_0x1e4181);return _0x22b711['includes'](_0x103f7b['data']['key']);})['map'](_0x39c887=>{const {id:_0x64cf29}=_0x5d54e2['_splitMarkerName'](_0x39c887['name']),_0xc3286b=_0x5d54e2['getSuggestion'](_0x64cf29);return _0x7fdd9c=_0xc3286b['attributes']['groupId'],_0xc3286b['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x30add2['size'])return;const _0x57d47d=_0x5d54e2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27c197=>'attribute'==_0x27c197['type']&&_0x27c197['data']&&_0x22b711['includes'](_0x27c197['data']['key'])&&_0x27c197['attributes']['groupId']!=_0x7fdd9c)['map'](_0x243560=>({'listItem':_0x243560['getFirstRange']()['start']['nodeAfter'],'groupId':_0x243560['attributes']['groupId']})),_0x3b5778=new Set();for(const {groupId:_0x326d3d,listItem:_0x2daba6}of _0x57d47d)_0x30add2['has'](_0x2daba6)&&_0x3b5778['add'](_0x326d3d);for(const _0x1c2505 of _0x5d54e2['getSuggestions']())_0x3b5778['has'](_0x1c2505['attributes']['groupId'])&&_0x1c2505['setAttribute']('groupId',_0x7fdd9c);}['_supportLegacySuggestions'](){const _0x3bab70=this['editor'],_0x5a283e=_0x3bab70['locale'],_0x86ac2d=_0x3bab70['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x86ac2d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3dd4f3,_0x33b80f){const _0xeed9dd=[];for(let _0x45d299 of _0x3dd4f3)_0x45d299['start']['nodeAfter']===_0x45d299['end']['parent']&&(_0x45d299=_0x3bab70['model']['createRange'](_0x3bab70['model']['createPositionAt'](_0x45d299['start']['nodeAfter'],0x0))),_0xeed9dd['push'](_0x45d299);_0x3bab70['model']['change'](_0x2100ce=>{const _0x80fa83=_0x3bab70['model']['document']['selection'],_0x4d208c=Array['from'](_0x80fa83['getRanges']())['map'](_0x1fe37f=>_0x3bdca8['fromRange'](_0x1fe37f));_0x2100ce['setSelection'](_0xeed9dd),_0x3bab70['commands']['get'](_0x33b80f['commandName'])['refresh'](),_0x33b80f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3bab70['execute'](_0x33b80f['commandName'],..._0x33b80f['commandParams']),_0x2100ce['setSelection'](_0x4d208c);for(const _0x137b1a of _0x4d208c)_0x137b1a['detach']();});}),_0x86ac2d['descriptionFactory']['registerElementLabel'](function(_0x5c2538){const _0x5bcf51=!_0x3bab70['model']['schema']['isObject'](_0x5c2538),_0x449a05=_0x5c2538['previousSibling'],_0x46a32e=_0x5c2538['nextSibling'],_0x294698=_0x5c2538['getAttribute']('listItemId'),_0x37c2c9=!_0x449a05||_0x449a05['getAttribute']('listItemId')!==_0x294698,_0x4ec4b7=!_0x46a32e||_0x46a32e['getAttribute']('listItemId')!==_0x294698;return _0x5bcf51&&Boolean(_0x294698)&&_0x37c2c9&&_0x4ec4b7;},_0x41a699=>c(_0x5a283e,'ELEMENT_LIST_ITEM',_0x41a699));}['_registerLegacyDescription'](){const _0x335478=this['editor'],_0x3ba968=_0x335478['locale'];function _0x46edbd(_0x3676b6){const _0x17dc9c=_0x335478['commands']['get']('bulletedList')['value'],_0xf9d883=_0x335478['commands']['get']('numberedList')['value'];return'numberedList'===_0x3676b6?_0x17dc9c:_0xf9d883;}_0x335478['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3806e9){if('formatBlock'!=_0x3806e9['type'])return;const {data:_0x4b0d31}=_0x3806e9;if(!_0x4b0d31)return;let _0x512f95,_0x2a7c0c,_0x131c63,_0x2abedf;switch(_0x4b0d31['commandName']){case'bulletedList':_0x131c63=_0x4b0d31['commandParams'][0x0]['forceValue'],_0x2abedf=_0x46edbd(_0x4b0d31['commandName']),_0x512f95=_0x131c63?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2abedf&&_0x335478['config']['get']('list.multiBlock')||(_0x512f95='*Change\x20to:*\x20%0'),_0x2a7c0c={'type':'format','content':c(_0x3ba968,_0x512f95,c(_0x3ba968,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x131c63=_0x4b0d31['commandParams'][0x0]['forceValue'],_0x2abedf=_0x46edbd(_0x4b0d31['commandName']),_0x512f95=_0x131c63?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2abedf&&_0x335478['config']['get']('list.multiBlock')||(_0x512f95='*Change\x20to:*\x20%0'),_0x2a7c0c={'type':'format','content':c(_0x3ba968,_0x512f95,c(_0x3ba968,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x512f95='*Indent:*\x20%0',_0x2a7c0c={'type':'format','content':c(_0x3ba968,_0x512f95,c(_0x3ba968,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x512f95=function(_0x455a0b){const _0x4a9a57=_0x455a0b['getFirstRange']();let _0x55a3e0=_0x4a9a57['start']['nodeAfter'];for(;_0x55a3e0&&_0x4a9a57['containsItem'](_0x55a3e0);){if(_0x55a3e0['getAttribute']('listIndent')>0x0)return!0x1;_0x55a3e0=_0x55a3e0['nextSibling'];}return!0x0;}(_0x3806e9)?c(_0x3ba968,'*Format:*\x20remove\x20from\x20%0',c(_0x3ba968,function(_0x1d1024){return'ELEMENT_'+_0x1d1024['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3806e9))):c(_0x3ba968,'*Outdent:*\x20%0',c(_0x3ba968,'ELEMENT_LIST_ITEM')),_0x2a7c0c={'type':'format','content':_0x512f95};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4b0d31['multipleBlocks']&&(_0x512f95='*Merge:*\x20%0',_0x2a7c0c={'type':'deletion','content':c(_0x3ba968,_0x512f95,c(_0x3ba968,'ELEMENT_LIST_ITEM'))});}return _0x2a7c0c;});}}function Te(_0xd91899){let _0x4d4ba0=_0xd91899['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4d4ba0;){const _0x3efca3=_0x4d4ba0['getAttribute']('listItemId');if(!_0x3efca3)return!0x1;if(_0x3efca3==_0xd91899['data']['newValue'])return'newValue';if(_0x3efca3==_0xd91899['data']['oldValue'])return'oldValue';_0x4d4ba0=_0x4d4ba0['previousSibling'];}return!0x1;}class Se extends _0x483067{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4c74b2=this['editor']['config']['get']('list.properties'),_0x25b695=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c74b2['styles']&&(_0x25b695['enableDefaultAttributesIntegration']('listStyle'),_0x25b695['registerBlockAttribute']('listStyle')),_0x4c74b2['reversed']&&(_0x25b695['enableDefaultAttributesIntegration']('listReversed'),_0x25b695['registerBlockAttribute']('listReversed')),_0x4c74b2['startIndex']&&(_0x25b695['enableDefaultAttributesIntegration']('listStart'),_0x25b695['registerBlockAttribute']('listStart'));const _0x57e4aa={'type':'format','content':''};_0x25b695['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3231d0=this['editor']['locale'];_0x25b695['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x3231d0,'FORMAT_LIST_REVERSED')),_0x25b695['descriptionFactory']['registerDescriptionCallback'](_0x2101fb=>{const {data:_0x54b476}=_0x2101fb;if(_0x54b476&&'listReversed'==_0x54b476['key'])return null==_0x54b476['newValue']||0x0==_0x54b476['newValue']&&null==_0x54b476['oldValue']?_0x57e4aa:void 0x0;}),_0x25b695['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x3231d0,'FORMAT_LIST_START')),_0x25b695['descriptionFactory']['registerDescriptionCallback'](_0x19ba7b=>{const {data:_0x5d81c9}=_0x19ba7b;if(_0x5d81c9&&'listStart'==_0x5d81c9['key'])return null==_0x5d81c9['newValue']||0x1==_0x5d81c9['newValue']&&null==_0x5d81c9['oldValue']?_0x57e4aa:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x597da5=>{if(_0x597da5['batch']['isUndo'])return!0x1;let _0x1c852d=!0x1;const _0x5e9b62=_0x25b695['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x60b20d=>{const _0x595762=_0x25b695['_getAttributeKey'](_0x60b20d);return'listStart'==_0x595762||'listReversed'==_0x595762;});for(const _0x45b922 of _0x5e9b62){const _0x4ec874=_0x45b922['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4ec874||'customNumbered'==_0x4ec874)continue;_0x25b695['_findSuggestions'](_0x45b922['getFirstRange'](),'attribute')['find'](_0x1cc6bd=>'listType'==_0x25b695['_getAttributeKey'](_0x1cc6bd['suggestion']))||(_0x597da5['removeMarker'](_0x45b922['getFirstMarker']()),_0x1c852d=!0x0);}return _0x1c852d;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xef79fe){const _0x495686=this['editor']['locale'],{data:_0xa2803c}=_0xef79fe,_0x3e138a={'type':'format','content':''};if(!_0xa2803c||'listStyle'!=_0xa2803c['key'])return;if(!_0xa2803c['oldValue'])return'default'==_0xa2803c['newValue']?_0x3e138a:{'type':'format','content':''+c(_0x495686,'*Set\x20format:*\x20%0',c(_0x495686,this['_getTranslationKeyForListStyle'](_0xa2803c['newValue'])))};if(!_0xa2803c['newValue']){if('default'==_0xa2803c['oldValue'])return _0x3e138a;let _0x289e6d=_0xef79fe['head'];for(;_0x289e6d;){if(_0x289e6d['data']&&'listType'==_0x289e6d['data']['key']&&_0x289e6d['data']['newValue'])return _0x3e138a;_0x289e6d=_0x289e6d['next'];}return{'type':'format','content':''+c(_0x495686,'*Remove\x20format:*\x20%0',c(_0x495686,this['_getTranslationKeyForListStyle'](_0xa2803c['oldValue'])))};}if('default'!=_0xa2803c['newValue'])return{'type':'format','content':''+c(_0x495686,'*Set\x20format:*\x20%0',c(_0x495686,this['_getTranslationKeyForListStyle'](_0xa2803c['newValue'])))};let _0x2d7163=_0xef79fe['head'];for(;_0x2d7163;){if(_0x2d7163['data']&&'listType'==_0x2d7163['data']['key']&&_0x2d7163['data']['newValue']&&_0x2d7163['data']['oldValue'])return _0x3e138a;_0x2d7163=_0x2d7163['next'];}return{'type':'format','content':c(_0x495686,'*Set\x20format:*\x20%0',c(_0x495686,'ELEMENT_'+_0xef79fe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x652106=this['editor'],_0x1af9ad=_0x652106['locale'];_0x652106['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46d18a=>{if('formatBlock'!=_0x46d18a['type'])return;const {data:_0x4360f1}=_0x46d18a;if(!_0x4360f1)return;let _0x56f899,_0x304216;switch(_0x4360f1['commandName']){case'listStyle':_0x56f899='*Change\x20to:*\x20%0',_0x304216={'type':'format','content':c(_0x1af9ad,_0x56f899,c(_0x1af9ad,this['_getTranslationKeyForListStyle'](_0x4360f1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x56f899=_0x4360f1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x304216={'type':'format','content':c(_0x1af9ad,_0x56f899)};break;case'listStart':_0x56f899='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x304216={'type':'format','content':c(_0x1af9ad,_0x56f899,_0x4360f1['commandParams'][0x0]['startIndex'])};}return _0x304216;});}['_getTranslationKeyForListStyle'](_0x287e77){return'ELEMENT_'+function(_0x14bf8f){if(_e['includes'](_0x14bf8f))return'bulleted';if(Re['includes'](_0x14bf8f))return'numbered';return null;}(_0x287e77)['toUpperCase']()+'_LIST_'+_0x287e77['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x483067{['afterInit'](){const _0x287532=this['editor'];_0x287532['commands']['get']('emoji')&&_0x287532['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x483067{static get['requires'](){return[_0x250e76];}['init'](){const _0x33fbd4=this['editor'],_0x1d4151=_0x33fbd4['plugins']['get']('TrackChangesEditing'),_0x5bbcb3=_0x33fbd4['commands']['get']('enter');_0x1d4151['enableCommand']('enter',()=>{_0x33fbd4['model']['change'](_0x23ef50=>{const _0x283929=_0x33fbd4['model']['document']['selection'],_0x5c7f77=_0x283929['getFirstPosition'](),_0x34ca2b=_0x3bdca8['fromRange'](_0x283929['getFirstRange']());if(_0x5bbcb3['enterBlock'](_0x23ef50)){const _0x375be6=_0x33fbd4['model']['createPositionAt'](_0x5c7f77['parent']['nextSibling'],0x0),_0x40f39f=_0x23ef50['createRange'](_0x5c7f77,_0x375be6);_0x1d4151['markInsertion'](_0x40f39f);}else _0x23ef50['setSelection'](_0x23ef50['createRange'](_0x34ca2b['end']));_0x34ca2b['detach'](),_0x5bbcb3['fire']('afterExecute',{'writer':_0x23ef50});});}),_0x33fbd4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x33fbd4,'split'),{'priority':'high'}),_0x33fbd4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x574c62,_0x1670a7,_0x5d903a)=>{const _0x5a629a=_0x5d903a['mapper']['markerNameToElements'](_0x1670a7['markerName']);if(_0x5a629a){for(const _0x4c6447 of _0x5a629a)_0x4c6447['hasClass']('ck-suggestion-marker-split')&&(_0x5d903a['mapper']['unbindElementFromMarkerName'](_0x4c6447,_0x1670a7['markerName']),_0x5d903a['writer']['remove'](_0x4c6447));}},{'priority':'high'}),_0x33fbd4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1ddb47,_0x1dcae8,_0x53445d)=>{_0x53445d['options']['showSuggestionHighlights']&&Fe(_0x33fbd4,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1ddb47,_0x1dcae8,_0x53445d);},{'priority':'high'});}}class Z extends _0x483067{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x385617=this['editor']['plugins']['get']('TrackChangesEditing');_0x385617['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x385617['enableCommand']('findNext'),_0x385617['enableCommand']('findPrevious'),_0x385617['enableCommand']('replace'),_0x385617['enableCommand']('replaceAll');}['handleFindCommand'](_0x325cbd,_0x4d3925,_0xede1f4={}){const _0x351827=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x325cbd(_0x209c7b=>{let _0x11b56f=('string'==typeof _0x4d3925?_0x351827['findByTextCallback'](_0x4d3925,_0xede1f4):_0x4d3925)(_0x209c7b);Array['isArray'](_0x11b56f)&&(_0x11b56f={'results':_0x11b56f,'searchText':'string'==typeof _0x4d3925?_0x4d3925:''});const _0x2e0e5a=_0x11b56f['results']['filter'](_0x40a186=>!0x1===this['_isInDeletionRange'](_0x40a186,_0x209c7b['item']));return{..._0x11b56f,'results':_0x2e0e5a};},_0xede1f4);}['_isInDeletionRange'](_0x705412,_0x883a0d){const _0x29b9c3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x883a0d,_0x705412['start']),this['editor']['model']['createPositionAt'](_0x883a0d,_0x705412['end']));for(const _0x4f47fb of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x29b9c3['getIntersection'](_0x4f47fb['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x483067{['afterInit'](){const _0x1fd0ce=this['editor']['locale'],_0x301378=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3c1f39,commandName:_0x503765}of ro)this['editor']['plugins']['has'](_0x3c1f39)&&(_0x301378['enableDefaultAttributesIntegration'](_0x503765),_0x301378['registerInlineAttribute'](_0x503765));_0x301378['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x1fd0ce,'FORMAT_FONT_SIZE')),_0x301378['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x1fd0ce,'FORMAT_FONT_FAMILY')),_0x301378['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x1fd0ce,'FORMAT_FONT_COLOR')),_0x301378['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x1fd0ce,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x229184=this['editor'],_0x556cdd=_0x229184['locale'];_0x229184['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10ad63=>{const _0xbe8cd3=_0x556cdd['t'];if('formatInline'!=_0x10ad63['type'])return;const {data:_0x45396c}=_0x10ad63;if(null!=_0x45396c){if('fontSize'==_0x45396c['commandName']){const _0xfa041=_0x45396c['commandParams'][0x0]['value'];if(_0xfa041){const _0x2f4e7b=_0xbe8cd3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x24173f=>_0x24173f['model']==_0xfa041)['title'])['toLowerCase']();return{'type':'format','content':c(_0x556cdd,'*Set\x20font\x20size:*\x20%0',_0x2f4e7b)};}return{'type':'format','content':c(_0x556cdd,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x45396c['commandName']){const _0x86911a=_0x45396c['commandParams'][0x0]['value'];return _0x86911a?{'type':'format','content':c(_0x556cdd,'*Set\x20font\x20family:*\x20%0',_0x86911a)}:{'type':'format','content':c(_0x556cdd,'*Reset\x20font\x20family*')};}if('fontColor'==_0x45396c['commandName']){const _0x24fd92=_0x45396c['commandParams'][0x0]['value'];if(_0x24fd92){const _0x3c6371=_0x514ef4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x122144=>_0x122144['model']==_0x24fd92);let _0x133b13=_0x24fd92,_0x418f91='';return _0x3c6371&&(_0x133b13=_0x3c6371['label'],_0x418f91=_0xbe8cd3(_0x133b13)['toLowerCase']()),{'type':'format','content':c(_0x556cdd,'*Set\x20font\x20color:*\x20%0',_0x418f91)['trim'](),'color':{'value':_0x24fd92,'title':_0x418f91||_0x133b13}};}return{'type':'format','content':c(_0x556cdd,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x45396c['commandName']){const _0x4d1ea4=_0x45396c['commandParams'][0x0]['value'];if(_0x4d1ea4){const _0x35666c=_0x514ef4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x150bcb=>_0x150bcb['model']==_0x4d1ea4);let _0x4794de=_0x4d1ea4,_0x1fe54a='';return _0x35666c&&(_0x4794de=_0x35666c['label'],_0x1fe54a=_0xbe8cd3(_0x4794de)['toLowerCase']()),{'type':'format','content':c(_0x556cdd,'*Set\x20font\x20background\x20color:*\x20%0',_0x1fe54a)['trim'](),'color':{'value':_0x4d1ea4,'title':_0x1fe54a||_0x4794de}};}return{'type':'format','content':c(_0x556cdd,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x483067{['afterInit'](){const _0x59fb25=this['editor'],_0x28978d=_0x59fb25['plugins']['get']('TrackChangesEditing'),_0x4a9061=_0x59fb25['commands']['get']('copyFormat'),_0x455476=_0x59fb25['commands']['get']('pasteFormat');_0x4a9061&&_0x455476&&(_0x28978d['enableDefaultAttributesIntegration']('pasteFormat'),_0x28978d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1f5692=this['editor'],_0x57d883=_0x1f5692['locale'];_0x1f5692['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17c429=>{if('formatBlock'!=_0x17c429['type']&&'formatInline'!=_0x17c429['type'])return;const {data:_0x53f84e}=_0x17c429;if(_0x53f84e&&'pasteFormat'===_0x53f84e['commandName']){const _0x85df92=[],_0x38216d=_0x53f84e['commandParams'][0x0];for(const [_0x41c6f9,_0x30893e]of Object['entries'](_0x38216d))_0x85df92['push'](so(_0x1f5692,_0x41c6f9,_0x30893e));return _0x85df92['length']?{'type':'format','content':c(_0x57d883,'*Set\x20format\x20to:*\x20%0',_0x85df92['join'](',\x20'))}:{'type':'format','content':c(_0x57d883,'*Remove\x20all\x20formatting*')};}});}}function so(_0x59a15a,_0x2bc860,_0x11d34d){const _0x597bb7=_0x59a15a['locale']['t'],_0x2ce873=_0x2bc860['split'](/(?=[A-Z])/)['join']('\x20'),_0x8a03ce=_0x597bb7(_0x2ce873['charAt'](0x0)['toUpperCase']()+_0x2ce873['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x11d34d)return _0x8a03ce;if('fontColor'===_0x2bc860||'fontBackgroundColor'===_0x2bc860){const _0x1372ef=_0x514ef4(_0x59a15a['config']['get']('fontColor.colors'))['find'](_0x373d01=>_0x373d01['model']==_0x11d34d);return _0x8a03ce+'\x20('+(_0x1372ef?_0x597bb7(_0x1372ef['label'])['toLowerCase']():_0x11d34d)+')';}if('fontSize'===_0x2bc860&&isNaN(parseFloat(_0x11d34d))){const _0x592d38=_0x59a15a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x59a15a['config']['get']('fontSize.options'))['find'](_0x1a871e=>_0x1a871e['model']==_0x11d34d);return _0x8a03ce+'\x20('+(_0x592d38?_0x597bb7(_0x592d38['title'])['toLowerCase']():_0x11d34d)+')';}return _0x8a03ce+'\x20('+_0x11d34d+')';}class it extends _0x483067{['_headingOptions'];['afterInit'](){const _0x87c970=this['editor'];if(!_0x87c970['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x87c970['config']['get']('heading.options');const _0x5fd668=_0x87c970['locale'],_0x1a2887=_0x87c970['plugins']['get']('TrackChangesEditing');_0x1a2887['enableDefaultAttributesIntegration']('heading');for(const _0x2531df of this['_headingOptions'])'paragraph'!=_0x2531df['model']&&_0x1a2887['descriptionFactory']['registerElementLabel'](_0x2531df['model'],_0x42ac65=>{const _0x19354b=this['_getHeadingLevel'](_0x2531df['model']);return null!==_0x19354b?_0x44446e(_0x42ac65,_0x19354b):_0x22d943(_0x42ac65,_0x2531df['title']);});function _0x44446e(_0x4c87d9,_0x5d92c5){return c(_0x5fd668,'ELEMENT_HEADING',[_0x4c87d9,_0x5d92c5]);}function _0x22d943(_0x2133c8,_0x390a88){return c(_0x5fd668,'ELEMENT_HEADING_CUSTOM',[_0x2133c8,_0x390a88]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53e754=this['editor'],_0x1efbfc=_0x53e754['locale'];function _0x5c6489(_0x42093c,_0x49fe13){return c(_0x1efbfc,'ELEMENT_HEADING_CUSTOM',[_0x42093c,_0x49fe13]);}_0x53e754['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x115193=>{if('formatBlock'!=_0x115193['type'])return;const {data:_0x4ad694}=_0x115193;if(_0x4ad694&&'heading'==_0x4ad694['commandName']){const _0x4f57dd=_0x4ad694['commandParams'][0x0]['value'],_0x4773c0=this['_getHeadingLevel'](_0x4f57dd);if(null!==_0x4773c0)return{'type':'format','content':c(_0x1efbfc,'*Change\x20to:*\x20%0',(_0x5c887e=0x1,_0x4c1d9a=_0x4773c0,c(_0x1efbfc,'ELEMENT_HEADING',[_0x5c887e,_0x4c1d9a])))};const _0x1bca35=this['_headingOptions']['find'](_0x2685a9=>_0x2685a9['model']===_0x4f57dd)['title'];return{'type':'format','content':c(_0x1efbfc,'*Change\x20to:*\x20%0',_0x5c6489(0x1,_0x1bca35))};}var _0x5c887e,_0x4c1d9a;});}['_getHeadingLevel'](_0x27bb90){const _0x15a172=_0x27bb90['match'](/^heading(\d+)/);if(_0x15a172)return _0x15a172[0x1];const _0x3ecbcf=this['_headingOptions']?.['find'](_0x5b6d11=>_0x5b6d11['model']==_0x27bb90);if(_0x3ecbcf&&_0x3ecbcf['view']){const _0x1a44f8=_0x3ecbcf['view'],_0x49d4f2=(_0x1a44f8['name']??_0x1a44f8)['match'](/^h(\d+)/);if(_0x49d4f2)return _0x49d4f2[0x1];}return null;}}class nt extends _0x483067{['afterInit'](){const _0xdd65c1=this['editor'];if(!_0xdd65c1['plugins']['has']('HighlightEditing'))return;const _0x390d09=_0xdd65c1['plugins']['get']('TrackChangesEditing'),_0x12925c=_0xdd65c1['locale'];_0x390d09['enableDefaultAttributesIntegration']('highlight'),_0x390d09['registerInlineAttribute']('highlight'),_0x390d09['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x12925c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x141731=this['editor'],_0x3df5e5=_0x141731['locale'];_0x141731['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2687a0=>{if('formatInline'!=_0x2687a0['type'])return;const {data:_0x5407cd}=_0x2687a0;if(_0x5407cd&&'highlight'==_0x5407cd['commandName']){const _0x55bc18=_0x3df5e5['t'],_0x2e13ea=_0x5407cd['commandParams'][0x0]['value'];if(_0x2e13ea){const _0x258bee=_0x141731['config']['get']('highlight.options')['find'](_0x4fb8be=>_0x4fb8be['model']==_0x2e13ea),_0x44ef6b=_0x55bc18(_0x258bee['title'])['toLowerCase']();return{'type':'format','content':c(_0x3df5e5,'*Set\x20highlight:*\x20%0',_0x44ef6b),'color':{'value':_0x258bee['color'],'title':_0x258bee['title']}};}return{'type':'format','content':c(_0x3df5e5,'*Remove\x20highlight*',c(_0x3df5e5,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x483067{['afterInit'](){const _0x243d1f=this['editor'];if(!_0x243d1f['plugins']['has']('HorizontalLineEditing'))return;_0x243d1f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x268c61=_0x243d1f['plugins']['get']('TrackChangesEditing'),_0x56b905=_0x243d1f['locale'];_0x268c61['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4588d0=>c(_0x56b905,'ELEMENT_HORIZONTAL_LINE',_0x4588d0)),_0x243d1f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x263de4,{writer:_0x580a43,options:_0x1cc740})=>{if(!_0x1cc740['showSuggestionHighlights'])return null;const _0x23b8a1=_0x580a43['createContainerElement']('div'),_0x5c3790=_0x580a43['createEmptyElement']('hr');return _0x580a43['addClass']('ck-horizontal-line',_0x23b8a1),_0x580a43['insert'](_0x580a43['createPositionAt'](_0x23b8a1,0x0),_0x5c3790),_0x23b8a1;},'converterPriority':'high'});}}class ot extends _0x483067{['afterInit'](){const _0x4c94c9=this['editor'];if(!_0x4c94c9['plugins']['has']('HtmlEmbed'))return;const _0x140e6e=_0x4c94c9['plugins']['get']('TrackChangesEditing'),_0x16bfcf=_0x4c94c9['locale'];_0x140e6e['descriptionFactory']['registerElementLabel']('rawHtml',_0x3cce89=>c(_0x16bfcf,'ELEMENT_HTML_EMBED',_0x3cce89)),_0x140e6e['enableDefaultAttributesIntegration']('htmlEmbed'),_0x140e6e['registerBlockAttribute']('value'),_0x140e6e['descriptionFactory']['registerDescriptionCallback'](_0x4e6604=>{if('attribute'!=_0x4e6604['type'])return;const {data:_0x4324eb}=_0x4e6604;if(_0x4324eb&&'value'==_0x4324eb['key']&&_0x4e6604['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x30750f=c(_0x16bfcf,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x16bfcf,'*Change\x20%0\x20content*',_0x30750f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbaa3b5=this['editor'],_0x4211eb=_0xbaa3b5['locale'];_0xbaa3b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3505b2=>{if('formatBlock'!=_0x3505b2['type'])return;const {data:_0x4e53dd}=_0x3505b2;if(_0x4e53dd&&'htmlEmbed'==_0x4e53dd['commandName']){const _0x27248f=c(_0x4211eb,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x4211eb,'*Change\x20%0\x20content*',_0x27248f)};}});}}class rt extends _0x483067{['afterInit'](){const _0x394ed8=this['editor'];if(!_0x394ed8['plugins']['has']('ImageEditing'))return;const _0x34e2d1=_0x394ed8['plugins']['get']('TrackChangesEditing'),_0x4cebe9=_0x394ed8['plugins']['get']('ImageUtils'),_0xfb77e6=_0x394ed8['locale'];_0x34e2d1['enableCommand']('insertImage'),_0x34e2d1['descriptionFactory']['registerElementLabel']('imageBlock',_0x6b2694=>c(_0xfb77e6,'ELEMENT_IMAGE',_0x6b2694)),_0x34e2d1['descriptionFactory']['registerElementLabel']('imageInline',_0x5c0807=>c(_0xfb77e6,'ELEMENT_INLINE_IMAGE',_0x5c0807)),_0x34e2d1['descriptionFactory']['registerElementLabel']('caption',()=>c(_0xfb77e6,'ELEMENT_CAPTION')),_0x394ed8['plugins']['has']('ImageUploadEditing')&&_0x34e2d1['enableCommand']('uploadImage'),_0x394ed8['plugins']['has']('ImageBlockEditing')&&_0x394ed8['plugins']['has']('ImageInlineEditing')&&(_0x34e2d1['enableCommand']('imageTypeInline',(_0x29e143,_0x5e7203)=>{const _0x2603f6=_0x4cebe9['getClosestSelectedImageElement'](_0x394ed8['model']['document']['selection']);_0x394ed8['model']['change'](()=>{_0x34e2d1['markBlockFormat'](_0x2603f6,{'commandName':'imageTypeInline','commandParams':[_0x5e7203]},[],'convertBlockImageToInline');});}),_0x34e2d1['enableCommand']('imageTypeBlock',(_0x236e76,_0x55843a)=>{_0x394ed8['model']['change'](_0x5bc2a0=>{let _0xed70dd=_0x4cebe9['getClosestSelectedImageElement'](_0x394ed8['model']['document']['selection']),_0x3e677b=_0x5bc2a0['createRangeOn'](_0xed70dd);const _0x2a72d1=_0x3b1981['fromPosition'](_0x3e677b['start'],'toPrevious'),_0x56d7c4=_0x3b1981['fromPosition'](_0x3e677b['end'],'toNext');_0x34e2d1['forceDefaultExecution'](()=>_0x236e76(_0x55843a)),_0xed70dd=_0x4cebe9['getClosestSelectedImageElement'](_0x394ed8['model']['document']['selection']),_0x3e677b=_0x5bc2a0['createRangeOn'](_0xed70dd);const _0x136379=_0x5bc2a0['createRange'](_0x2a72d1,_0x56d7c4);_0x2a72d1['detach'](),_0x56d7c4['detach'](),_0x34e2d1['markBlockFormat'](_0xed70dd,{'commandName':'imageTypeInline','commandParams':[_0x55843a]},[],'convertInlineImageToBlock'),_0x136379['start']['isBefore'](_0x3e677b['start'])&&_0x34e2d1['markInsertion'](_0x5bc2a0['createRange'](_0x136379['start'],_0x3e677b['start']),'convertInlineImageToBlock'),_0x3e677b['end']['isBefore'](_0x136379['end'])&&_0x34e2d1['markInsertion'](_0x5bc2a0['createRange'](_0x3e677b['end'],_0x136379['end']),'convertInlineImageToBlock');});}),_0x34e2d1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x34e2d1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x34e2d1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x34e2d1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x34e2d1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x34e2d1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3cae00])=>{const _0x3bbd84=_0x34e2d1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1bbe36=_0x3cae00['start'],_0x3522a6=_0x3cae00['end'];const _0x219bab=_0x394ed8['model']['schema']['getNearestSelectionRange'](_0x1bbe36,'backward'),_0x4aee34=_0x394ed8['model']['schema']['getNearestSelectionRange'](_0x3522a6,'forward');_0x219bab['isCollapsed']&&(_0x1bbe36=_0x219bab['start']),_0x4aee34['isCollapsed']&&(_0x3522a6=_0x4aee34['end']),_0x3bbd84([_0x394ed8['model']['createRange'](_0x1bbe36,_0x3522a6)]);}),_0x34e2d1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x47709f),_0x34e2d1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x47709f)),_0x394ed8['plugins']['has']('ImageCaptionEditing')&&(_0x34e2d1['enableCommand']('toggleImageCaption',(_0x53b456,_0x55cef3)=>{const _0x1fbe57=_0x394ed8['plugins']['get']('ImageCaptionUtils');let _0x394a8b=_0x4cebe9['getClosestSelectedImageElement'](_0x394ed8['model']['document']['selection']),_0x550b76=_0x1fbe57['getCaptionFromImageModelElement'](_0x394a8b);_0x394ed8['model']['change'](()=>{if(_0x550b76)return void _0x34e2d1['markDeletion'](_0x394ed8['model']['createRangeOn'](_0x550b76));const _0x40d3a5=_0x4cebe9['isBlockImage'](_0x394a8b);_0x53b456(_0x55cef3),_0x394a8b=_0x4cebe9['getClosestSelectedImageElement'](_0x394ed8['model']['document']['selection']),_0x550b76=_0x1fbe57['getCaptionFromImageModelElement'](_0x394a8b),_0x34e2d1['markInsertion'](_0x394ed8['model']['createRangeOn'](_0x550b76),_0x40d3a5?null:'imageCaption');});}),_0x34e2d1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x47709f));const _0x4d47da=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2e7fd8(_0x180dc2,_0x3a2b90){const _0x1ea497=_0x4d47da['findIndex'](({type:_0x1d5aaa,subType:_0x2d253a})=>_0x180dc2['type']==_0x1d5aaa&&_0x180dc2['subType']==_0x2d253a),_0x2ec63e=_0x4d47da['findIndex'](({type:_0x5c07fc,subType:_0x51f5af})=>_0x3a2b90['type']==_0x5c07fc&&_0x3a2b90['subType']==_0x51f5af);if(_0x1ea497<0x0||_0x2ec63e<0x0)return!0x1;const _0x2eaf3e=_0x180dc2['getFirstRange'](),_0xb6d918=_0x3a2b90['getFirstRange']();if((0x0==_0x1ea497||0x1==_0x1ea497)&&0x2==_0x2ec63e&&_0x2eaf3e['isIntersecting'](_0xb6d918))return!0x0;if(0x2==_0x1ea497&&0x3==_0x2ec63e){const _0x494401=_0x34e2d1['_findSuggestions'](_0x2eaf3e,'insertion')['filter'](({suggestion:_0x37e4c6,meta:_0x518954})=>_0x518954['isOwn']&&'convertInlineImageToBlock'==_0x37e4c6['subType']);if(_0x494401['length']>0x1&&_0xb6d918['end']['isEqual'](_0x2eaf3e['start']))return!0x0;if(0x1==_0x494401['length']&&(_0x2eaf3e['start']['isEqual'](_0xb6d918['end'])||_0x2eaf3e['end']['isEqual'](_0xb6d918['start'])))return!0x0;}if(0x3==_0x1ea497&&0x3==_0x2ec63e&&_0x2eaf3e['start']['isBefore'](_0xb6d918['start'])){const _0x57fccd=_0x2eaf3e['end']['nodeAfter'],_0x13be74=_0xb6d918['start']['nodeBefore'];return _0x4cebe9['isBlockImage'](_0x57fccd)&&_0x57fccd===_0x13be74;}return!0x1;}function _0x47709f(_0x218e0a,_0x3e1f41){return _0x2e7fd8(_0x218e0a,_0x3e1f41)?[_0x218e0a,_0x3e1f41]:_0x2e7fd8(_0x3e1f41,_0x218e0a)?[_0x3e1f41,_0x218e0a]:null;}_0x394ed8['plugins']['has']('ImageResize')&&(_0x34e2d1['enableDefaultAttributesIntegration']('resizeImage'),_0x34e2d1['registerBlockAttribute']('resizedWidth'),_0x34e2d1['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0xfb77e6,'FORMAT_IMAGE_SIZE'))),_0x394ed8['plugins']['has']('ImageTextAlternativeEditing')&&(_0x34e2d1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x34e2d1['registerBlockAttribute']('alt')),_0x394ed8['plugins']['has']('PictureEditing')&&(_0x34e2d1['registerBlockAttribute']('sources'),_0x34e2d1['descriptionFactory']['registerDescriptionCallback'](_0x312511=>{if('attribute'!=_0x312511['type'])return;const {data:_0xd5b62f}=_0x312511;return _0xd5b62f&&'sources'==_0xd5b62f['key']?{'type':'format','content':''}:void 0x0;})),_0x394ed8['plugins']['has']('ImageSizeAttributes')&&(_0x34e2d1['registerBlockAttribute']('width'),_0x34e2d1['registerBlockAttribute']('height'),_0x34e2d1['descriptionFactory']['registerDescriptionCallback'](_0x46f205=>{if('attribute'!=_0x46f205['type'])return;const {data:_0x5d878a}=_0x46f205;return!_0x5d878a||'width'!=_0x5d878a['key']&&'height'!=_0x5d878a['key']?void 0x0:{'type':'format','content':''};})),_0x34e2d1['descriptionFactory']['registerDescriptionCallback'](_0x4b3041=>{if(!!_0x4d47da['find'](({type:_0x5b9986,subType:_0x1e3372})=>_0x4b3041['type']==_0x5b9986&&_0x4b3041['subType']==_0x1e3372))return _0x4b3041['previous']?{}:void 0x0;}),_0x34e2d1['descriptionFactory']['registerDescriptionCallback'](_0xef5aa2=>{if('insertion'==_0xef5aa2['type']||'deletion'==_0xef5aa2['type']){const _0x241069=_0xef5aa2['getContainedElement']();if(_0x241069&&_0x241069['is']('element','caption'))return{'type':'insertion'==_0xef5aa2['type']?'addObject':'removeObject','element':_0x241069,'quantity':0x1};}}),_0x34e2d1['descriptionFactory']['registerDescriptionCallback'](_0x287f3d=>'formatBlock'==_0x287f3d['type']&&'convertInlineImageToBlock'==_0x287f3d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x287f3d['type']&&'convertBlockImageToInline'==_0x287f3d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x34e2d1['descriptionFactory']['registerDescriptionCallback'](_0x461a2a=>{if('attribute'!=_0x461a2a['type'])return;const {data:_0x3b7a08}=_0x461a2a;if(!_0x3b7a08||'alt'!=_0x3b7a08['key'])return;const _0x2c0bba=_0x3b7a08['newValue'];return _0x2c0bba?{'type':'format','content':c(_0xfb77e6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c0bba+'\x22')}:{'type':'format','content':c(_0xfb77e6,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c8c17=this['editor'],_0x348e36=_0x5c8c17['locale'];_0x5c8c17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e51e0=>{if('formatBlock'!=_0x4e51e0['type']&&'formatInline'!=_0x4e51e0['type'])return;const {data:_0x41b14b}=_0x4e51e0;if(_0x41b14b){if('imageTextAlternative'==_0x41b14b['commandName']){const _0x43b6dd=_0x41b14b['commandParams'][0x0]['newValue'];return _0x43b6dd?{'type':'format','content':c(_0x348e36,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x43b6dd+'\x22')}:{'type':'format','content':c(_0x348e36,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x41b14b['commandName']){const _0x2e02f6=_0x41b14b['commandParams'][0x0]['width'];return _0x2e02f6?{'type':'format','content':c(_0x348e36,'*Set\x20image\x20width:*\x20%0',_0x2e02f6)}:{'type':'format','content':c(_0x348e36,'*Reset\x20image\x20width*')};}}});}}class at extends _0x483067{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5521f8=this['editor']['locale'],_0x44de12=this['editor']['plugins']['get']('TrackChangesEditing');_0x44de12['enableDefaultAttributesIntegration']('replaceImageSource'),_0x44de12['registerBlockAttribute']('src'),_0x44de12['descriptionFactory']['registerDescriptionCallback'](_0x1b3a9a=>{if('attribute'!=_0x1b3a9a['type'])return;const {data:_0x441296}=_0x1b3a9a;return _0x441296&&'src'==_0x441296['key']?_0x441296['newValue']&&_0x441296['oldValue']?{'type':'format','content':c(_0x5521f8,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5ba2b5=this['editor']['plugins']['get']('TrackChangesEditing');_0x5ba2b5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5ba2b5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ba2b5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5ba2b5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x481d36=this['editor'],_0x1e7f50=_0x481d36['locale'];_0x481d36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25860b=>{if('formatBlock'!=_0x25860b['type']&&'formatInline'!=_0x25860b['type'])return;const {data:_0x18f1b0}=_0x25860b;if(!_0x18f1b0||'replaceImageSource'!=_0x18f1b0['commandName'])return;return{'type':'format','content':c(_0x1e7f50,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x483067{['afterInit'](){const _0x334148=this['editor'];if(!_0x334148['plugins']['has']('ImageStyleEditing'))return;const _0x5014d5=_0x334148['plugins']['get']('TrackChangesEditing'),_0x330711=_0x334148['plugins']['get']('ImageUtils'),_0x3fe2dd={};_0x5014d5['enableCommand']('imageStyle',(_0x2f439f,_0x5e5817)=>{const _0x1040ba=_0x334148['plugins']['get']('Users')['me'],_0x3d4e72=_0x334148['commands']['get']('imageStyle');let _0x420e33=_0x330711['getClosestSelectedImageElement'](_0x334148['model']['document']['selection']),_0x1d69eb=_0x334148['model']['createRangeOn'](_0x420e33),_0x35b530=_0x3d4e72['value'];if(_0x35b530==_0x5e5817['value'])return;const _0x134a68={'commandName':'imageStyle','commandParams':[_0x5e5817],'formatGroupId':_0x20de28()};_0x334148['model']['change'](()=>{if(_0x5014d5['getSuggestions']()['filter'](_0xb30df7=>_0xb30df7['isInContent']&&_0x1040ba==_0xb30df7['author']&&('formatBlock'==_0xb30df7['type']||'formatInline'==_0xb30df7['type'])&&('imageStylePreApply'==_0xb30df7['subType']||'imageStylePostApply'==_0xb30df7['subType'])&&_0xb30df7['getFirstRange']()['isEqual'](_0x1d69eb))['forEach'](_0xa5cdae=>_0x5014d5['discardSuggestion'](_0xa5cdae['head'])),_0x420e33=_0x330711['getClosestSelectedImageElement'](_0x334148['model']['document']['selection']),_0x1d69eb=_0x334148['model']['createRangeOn'](_0x420e33),_0x3d4e72['refresh'](),_0x334148['commands']['get']('imageTypeInline')['refresh'](),_0x334148['commands']['get']('imageTypeBlock')['refresh'](),_0x35b530=_0x3d4e72['value'],_0x35b530!=_0x5e5817['value'])return _0x330711['isInlineImage'](_0x420e33)&&_0x3d4e72['shouldConvertImageType'](_0x5e5817['value'],_0x420e33)?(_0x2f439f({..._0x5e5817,'setImageSizes':!0x1}),_0x420e33=_0x330711['getClosestSelectedImageElement'](_0x334148['model']['document']['selection']),void _0x5014d5['markBlockFormat'](_0x420e33,{..._0x134a68,'commandReversedParams':[{'value':_0x35b530||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x330711['isBlockImage'](_0x420e33)?_0x5014d5['markBlockFormat'](_0x420e33,_0x134a68,[],'imageStylePostApply'):_0x5014d5['markInlineFormat'](_0x1d69eb,_0x134a68,'imageStylePostApply'));});});for(const _0x37a434 of _0x334148['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3fe2dd[_0x37a434['name']]=_0x37a434['title']['toLowerCase']();_0x5014d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5014d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5014d5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5014d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2dd6c4])=>{_0x330711['setImageNaturalSizeAttributes'](_0x2dd6c4['getContainedElement']());}),_0x5014d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x50d619,_0x2f8fe0)=>{_0x5014d5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x50d619,{'commandName':_0x2f8fe0['commandName'],'commandParams':_0x2f8fe0['commandReversedParams']});}),_0x5014d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x57251b,_0x3813c8){if(_0x1d269a(_0x57251b,_0x3813c8))return[_0x57251b,_0x3813c8];if(_0x1d269a(_0x3813c8,_0x57251b))return[_0x3813c8,_0x57251b];return null;});const _0x18824f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1d269a(_0x3404f3,_0x2c2e40){const _0xd8095c=_0x18824f['findIndex'](({type:_0x28d3dd,subType:_0x435736})=>_0x3404f3['type']==_0x28d3dd&&_0x3404f3['subType']==_0x435736),_0x413b71=_0x18824f['findIndex'](({type:_0x3cfb91,subType:_0x113fac})=>_0x2c2e40['type']==_0x3cfb91&&_0x2c2e40['subType']==_0x113fac);if(_0xd8095c<0x0||_0x413b71<0x0)return!0x1;const _0x40a689=_0x3404f3['getFirstRange'](),_0x39e841=_0x2c2e40['getFirstRange']();if((0x0==_0xd8095c||0x1==_0xd8095c)&&0x2==_0x413b71&&_0x40a689['isIntersecting'](_0x39e841))return!0x0;if(0x2==_0xd8095c&&0x3==_0x413b71){const _0x38d279=_0x5014d5['_findSuggestions'](_0x40a689,'insertion')['filter'](({suggestion:_0x153e2e,meta:_0x26242e})=>_0x26242e['isOwn']&&'convertInlineImageToBlock'==_0x153e2e['subType']);if(_0x38d279['length']>0x1&&_0x39e841['end']['isEqual'](_0x40a689['start']))return!0x0;if(0x1==_0x38d279['length']&&(_0x40a689['start']['isEqual'](_0x39e841['end'])||_0x40a689['end']['isEqual'](_0x39e841['start'])))return!0x0;}if(0x3==_0xd8095c&&0x3==_0x413b71&&_0x40a689['start']['isBefore'](_0x39e841['start'])){const _0x361ca1=_0x40a689['end']['nodeAfter'],_0x57a578=_0x39e841['start']['nodeBefore'];return _0x330711['isBlockImage'](_0x361ca1)&&_0x361ca1===_0x57a578;}return!0x1;}_0x334148['model']['document']['registerPostFixer'](()=>{let _0x1d6dd9=!0x1;const _0x400141=Array['from'](_0x334148['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3e595f,data:_0x5dd9f0}of _0x400141){const {group:_0x35f6f2,type:_0x4a5092,subType:_0x485862,id:_0x236176}=_0x5014d5['_splitMarkerName'](_0x3e595f);if('suggestion'==_0x35f6f2&&_0x5014d5['hasSuggestion'](_0x236176)){if('formatBlock'==_0x4a5092&&('imageStylePreApply'==_0x485862||'imageStylePostApply'==_0x485862)){const _0x37ebd9=_0x5014d5['getSuggestion'](_0x236176);if(_0x5dd9f0['newRange']){const _0x447678=_0x37ebd9['getFirstRange']()['getContainedElement']();if(_0x330711['isBlockImage'](_0x447678))continue;_0x5014d5['discardSuggestion'](_0x37ebd9),_0x1d6dd9=!0x0;}}if('insertion'==_0x4a5092&&'imageCaption'==_0x485862&&!_0x5dd9f0['newRange']){const _0x3d3ed4=_0x5014d5['getSuggestion'](_0x236176);_0x3d3ed4['next']&&_0x3d3ed4['next']['isInContent']&&(_0x5014d5['discardSuggestion'](_0x3d3ed4['next']),_0x1d6dd9=!0x0);}}}return _0x1d6dd9;}),this['_registerLegacyDescription'](_0x3fe2dd);}['_registerLegacyDescription'](_0x838e6b){const _0x1f31b7=this['editor'],_0x18e31a=_0x1f31b7['locale'];_0x1f31b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x600b66=>{if('formatBlock'!=_0x600b66['type']&&'formatInline'!=_0x600b66['type'])return;const {data:_0x1f7c5b}=_0x600b66;if(!_0x1f7c5b||'imageStyle'!=_0x1f7c5b['commandName'])return;const _0x3d5779=_0x1f7c5b['commandParams'][0x0]['value'];return _0x2ddfd5('side'===_0x3d5779?c(_0x18e31a,'FORMAT_SIDE_IMAGE'):_0x838e6b[_0x3d5779]||_0x3d5779);function _0x2ddfd5(_0x2963eb){return{'type':'format','content':c(_0x18e31a,'*Format:*\x20%0',_0x2963eb)};}});}}class ut extends _0x483067{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xcc2be8){super(_0xcc2be8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x391a02=this['editor'],_0x5cd95d=_0x391a02['commands']['get']('importWord'),_0x2c77dc=_0x391a02['commands']['get']('trackChanges');_0x5cd95d&&(_0x5cd95d['on']('execute',(_0x5f54e6,[,_0x539b4e])=>{this['_trackChangesValueDuringImport']=_0x2c77dc['value'],_0x539b4e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5cd95d,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5cd95d,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2c77dc['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x391a02['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x395cba,_0x3a70c2){const {suggestions:_0x6e0401}=_0x3a70c2,_0x556046=this['editor']['commands']['get']('trackChanges'),_0x5c0ddd=_0x556046['value'];this['_trackChangesValueDuringImport']!==_0x5c0ddd&&(_0x556046['execute'](),this['_trackChangesExecuted']=!0x0),_0x6e0401&&_0x6e0401['forEach'](({id:_0x22f734,type:_0x746116,author:_0xceea2f,created_at:_0x2cd206})=>{const _0x394c93={'id':_0x22f734,'type':_0x746116,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xceea2f,'createdAt':_0x2cd206?new Date(_0x2cd206):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x394c93);});}}class ft extends _0x483067{['afterInit'](){const _0x46a0df=this['editor'],_0x10fe27=_0x46a0df['plugins']['get']('TrackChangesEditing');if(_0x46a0df['plugins']['has']('IndentEditing')&&(_0x10fe27['enableCommand']('indent'),_0x10fe27['enableCommand']('outdent')),_0x46a0df['plugins']['has']('IndentBlock')){for(const _0x100981 of['indentBlock','outdentBlock'])_0x10fe27['enableDefaultAttributesIntegration'](_0x100981);}const _0x548407=_0x46a0df['locale'];_0x10fe27['registerBlockAttribute']('blockIndent'),_0x10fe27['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x548407,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9ad2be=this['editor'],_0xfd7d92=_0x9ad2be['locale'],_0x29cc43=_0x9ad2be['plugins']['get']('TrackChangesEditing');_0x29cc43['descriptionFactory']['registerDescriptionCallback'](_0x20c151=>{if('formatBlock'!=_0x20c151['type'])return;const {data:_0x298257}=_0x20c151;if(!_0x298257)return;if('indentBlock'!=_0x298257['commandName']&&'outdentBlock'!=_0x298257['commandName'])return;const _0x26819e=_0x20c151['getItems']()[0x0],_0x4fa295=_0x29cc43['descriptionFactory']['getItemLabel'](_0x26819e);return'indentBlock'==_0x298257['commandName']?{'type':'format','content':c(_0xfd7d92,'*Indent:*\x20%0',_0x4fa295)}:'outdentBlock'==_0x298257['commandName']?{'type':'format','content':c(_0xfd7d92,'*Outdent:*\x20%0',_0x4fa295)}:void 0x0;});}}class ht extends _0x483067{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x483067{['afterInit'](){const _0x1b78aa=this['editor'];if(!_0x1b78aa['plugins']['has']('LinkEditing'))return;const _0x3ed3d1=_0x1b78aa['plugins']['get']('TrackChangesEditing'),_0x47423f=_0x1b78aa['commands']['get']('link');_0x3ed3d1['enableDefaultAttributesIntegration']('link'),_0x3ed3d1['enableDefaultAttributesIntegration']('unlink'),_0x3ed3d1['registerInlineAttribute']('linkHref');for(const _0x10cef0 of _0x47423f['manualDecorators'])_0x3ed3d1['registerInlineAttribute'](_0x10cef0['id']),_0x3ed3d1['descriptionFactory']['registerAttributeLabel'](_0x10cef0['id'],'link\x20('+_0x10cef0['label']['toLowerCase']()+')');_0x3ed3d1['descriptionFactory']['registerDescriptionCallback'](_0x3a5a9b=>{if('attribute'!=_0x3a5a9b['type'])return;const {data:_0x125264}=_0x3a5a9b;if(!_0x125264||'linkHref'!=_0x125264['key'])return;const _0x2d8aa2=_0x125264['newValue'],_0x400db0=_0x1b78aa['locale'];return{'type':'format','content':null==_0x2d8aa2?c(_0x400db0,'*Remove\x20link*'):c(_0x400db0,'*Set\x20link:*\x20%0','\x22'+_0x2d8aa2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16f320=this['editor'],_0x255b5e=_0x16f320['locale'];_0x16f320['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9415b2=>{if('formatInline'!=_0x9415b2['type'])return;const {data:_0x14a76f}=_0x9415b2;if(_0x14a76f){if('link'==_0x14a76f['commandName']){const _0x1ddd6d=_0x14a76f['commandParams'][0x0];return{'type':'format','content':c(_0x255b5e,'*Set\x20link:*\x20%0','\x22'+_0x1ddd6d+'\x22')};}return'unlink'==_0x14a76f['commandName']?{'type':'format','content':c(_0x255b5e,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x483067{['afterInit'](){const _0x3b09d3=this['editor'],_0x544420=_0x3b09d3['locale'];if(!_0x3b09d3['plugins']['has']('LegacyListEditing'))return;const _0x3a807a=_0x3b09d3['plugins']['get']('TrackChangesEditing'),_0x489f86=_0x3b09d3['plugins']['has']('LegacyTodoListEditing');function _0x4e68b7(_0x6f2485){return()=>{const _0x11c9fb=_0x3b09d3['model']['document']['selection'],_0x54ed8b=_0x3b09d3['commands']['get'](_0x6f2485);if(_0x54ed8b['value'])return void _0x3b09d3['execute']('paragraph',{});const _0xb550f0=_0x6f2485['slice'](0x0,-0x4),_0x17815f=function(_0x367489,_0x243a62,_0x56d750){let _0xe7c93c=Array['from'](_0x367489)['filter'](_0x4cffa0=>function(_0xd63d2,_0x2b4d6f){return _0x2b4d6f['checkChild'](_0xd63d2['parent'],'listItem')&&!_0x2b4d6f['isObject'](_0xd63d2);}(_0x4cffa0,_0x56d750));_0xe7c93c=_0xe7c93c['filter'](_0x374b02=>!_0x374b02['is']('element','listItem')||_0x374b02['getAttribute']('listType')!=_0x243a62);const _0x595085=new Set();for(const _0x1e3f14 of _0xe7c93c)_0x1e3f14['is']('element','listItem')?_0x595085['add'](Le(_0x1e3f14)):_0x595085['add'](_0x1e3f14);return Array['from'](_0x595085);}(_0x11c9fb['getSelectedBlocks'](),_0xb550f0,_0x3b09d3['model']['schema']);_0x3b09d3['model']['change'](()=>{for(const _0x32b5cb of _0x17815f)_0x3a807a['markBlockFormat'](_0x32b5cb,{'commandName':_0x6f2485,'commandParams':[{'forceValue':!_0x54ed8b['value']}],'formatGroupId':'blockName'},Ee(_0x32b5cb));});};}function _0x23aeda(_0x56c6df){return()=>{const _0x558555=function(_0x37fc88){let _0x501bf5=Array['from'](_0x37fc88);const _0x409de9=_0x501bf5['findIndex'](_0x304a19=>'listItem'!=_0x304a19['name']);return _0x409de9>-0x1&&(_0x501bf5=_0x501bf5['slice'](0x0,_0x409de9)),_0x501bf5;}(_0x3b09d3['model']['document']['selection']['getSelectedBlocks']()),_0x40a34a=_0x3b09d3['model']['createRange'](_0x3b09d3['model']['createPositionAt'](_0x558555[0x0],'before'),_0x3b09d3['model']['createPositionAt'](_0x558555[_0x558555['length']-0x1],'end'));_0x3b09d3['model']['change'](()=>{_0x3a807a['markBlockFormat'](_0x40a34a,{'commandName':_0x56c6df,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3fbdb4){const _0x521ae2=new Set();for(const _0x515652 of _0x3fbdb4){let _0x44295e=_0x515652['nextSibling'];for(;_0x44295e&&_0x44295e['getAttribute']('listIndent')>_0x515652['getAttribute']('listIndent');)_0x521ae2['add'](_0x44295e),_0x44295e=_0x44295e['nextSibling'];}return Array['from'](_0x521ae2);}(_0x558555));});};}_0x3a807a['enableCommand']('numberedList',_0x4e68b7('numberedList')),_0x3a807a['enableCommand']('bulletedList',_0x4e68b7('bulletedList')),_0x489f86&&_0x3a807a['enableCommand']('todoList',_0x4e68b7('todoList')),_0x3a807a['enableCommand']('indentList',_0x23aeda('indentList')),_0x3a807a['enableCommand']('outdentList',_0x23aeda('outdentList')),_0x489f86&&_0x3a807a['enableCommand']('checkTodoList',()=>{const _0x147871=_0x3b09d3['commands']['get']('checkTodoList'),_0x3374bf=Array['from'](_0x147871['_selectedElements']);_0x3374bf['filter'](_0x4e9fcd=>_0x4e9fcd['getAttribute']('todoListChecked')!=_0x147871['value']),_0x3b09d3['model']['change'](()=>{for(const _0x3a69a9 of _0x3374bf)_0x3a807a['markBlockFormat'](_0x3a69a9,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x147871['value']}]});});}),_0x3a807a['descriptionFactory']['registerElementLabel']('listItem',_0x21e534=>c(_0x544420,'ELEMENT_LIST_ITEM',_0x21e534)),_0x3a807a['descriptionFactory']['registerDescriptionCallback'](_0x574c7e=>{if('formatBlock'!=_0x574c7e['type']&&'formatInline'!=_0x574c7e['type'])return;const {data:_0x23832b}=_0x574c7e;if(_0x23832b){if('numberedList'==_0x23832b['commandName']||'bulletedList'==_0x23832b['commandName']||'todoList'==_0x23832b['commandName'])switch(_0x23832b['commandName']['replace']('List','')){case'bulleted':return _0x11cbc8(c(_0x544420,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x11cbc8(c(_0x544420,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x11cbc8(c(_0x544420,'ELEMENT_TODO_LIST'));}if('indentList'==_0x23832b['commandName'])return{'type':'format','content':c(_0x544420,'*Indent:*\x20%0',c(_0x544420,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x23832b['commandName'])return{'type':'format','content':c(_0x544420,'*Outdent:*\x20%0',c(_0x544420,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x23832b['commandName'])return _0x23832b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x544420,'*Check\x20item*')}:{'type':'format','content':c(_0x544420,'*Uncheck\x20item*')};}function _0x11cbc8(_0x442c8a){return{'type':'format','content':c(_0x544420,'*Change\x20to:*\x20%0',_0x442c8a)};}});}}function Le(_0x383b74){const _0x23f7d4=_0x383b74['getAttribute']('listIndent');if(0x0==_0x23f7d4)return _0x383b74;let _0x52e3e8=_0x383b74;for(;_0x383b74['previousSibling']&&_0x383b74['previousSibling']['is']('element','listItem');){const _0x45ced4=_0x383b74['previousSibling']['getAttribute']('listIndent');if(_0x45ced4==_0x23f7d4)_0x52e3e8=_0x383b74['previousSibling'];else{if(_0x45ced4<_0x23f7d4)break;}_0x383b74=_0x383b74['previousSibling'];}return _0x52e3e8;}function Ee(_0x3399c3){const _0x1081b4=[];if(_0x3399c3['is']('element','listItem')&&_0x3399c3['getAttribute']('listIndent')>0x0){let _0x565d20=_0x3399c3['nextSibling'];for(;_0x565d20&&'listItem'==_0x565d20['name']&&_0x565d20['getAttribute']('listIndent')==_0x3399c3['getAttribute']('listIndent');)_0x1081b4['push'](_0x565d20),_0x565d20=_0x565d20['nextSibling'];}return _0x1081b4;}class Q extends _0x483067{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x7e5e69=this['editor']['config']['get']('list.properties'),_0x46ffd4=this['editor']['plugins']['get']('TrackChangesEditing');_0x7e5e69['styles']&&_0x46ffd4['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x7e5e69['reversed']&&_0x46ffd4['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x7e5e69['startIndex']&&_0x46ffd4['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x46ffd4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x23c651,_0x32bf4b={}){const _0x395c01=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20eea0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x395c01['markMultiRangeBlockFormat'](_0x20eea0,{'commandName':'listStyle','commandParams':[{'type':_0x32bf4b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x135bba,_0x3e42c8={}){const _0x5498cb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22ffe8=this['_getSuggestionBlocks'](_0x58f317=>_0x58f317['is']('element','listItem')&&'numbered'===_0x58f317['getAttribute']('listType'));if(_0x22ffe8['length']<0x1)return;const _0x34763b=_0x22ffe8['map'](_0x14a2d2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x14a2d2,'before'),this['editor']['model']['createPositionAt'](_0x14a2d2,0x0)));this['editor']['model']['change'](()=>{_0x5498cb['markMultiRangeBlockFormat'](_0x34763b,{'commandName':'listReversed','commandParams':[{'reversed':_0x3e42c8['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x9407a5,_0x4e57e1={}){const _0x3e062e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x676a45=this['_getSuggestionBlocks'](_0x12bd0e=>_0x12bd0e['is']('element','listItem')&&'numbered'===_0x12bd0e['getAttribute']('listType'));if(_0x676a45['length']<0x1)return;const _0x173910=_0x676a45['map'](_0x5cb37f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5cb37f,'before'),this['editor']['model']['createPositionAt'](_0x5cb37f,0x0)));this['editor']['model']['change'](()=>{_0x3e062e['markMultiRangeBlockFormat'](_0x173910,{'commandName':'listStart','commandParams':[{'startIndex':_0x4e57e1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x543239){if('formatBlock'!=_0x543239['type']&&'formatInline'!=_0x543239['type'])return;const _0x4d8887=this['editor']['locale'],{data:_0x2ade89}=_0x543239;if(!_0x2ade89)return;let _0x5d8bd3,_0x520bb0;switch(_0x2ade89['commandName']){case'listStyle':_0x5d8bd3='*Change\x20to:*\x20%0',_0x520bb0={'type':'format','content':c(_0x4d8887,_0x5d8bd3,c(_0x4d8887,this['_getTranslationKeyForListStyle'](_0x2ade89['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5d8bd3=_0x2ade89['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x520bb0={'type':'format','content':c(_0x4d8887,_0x5d8bd3)};break;case'listStart':_0x5d8bd3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x520bb0={'type':'format','content':c(_0x4d8887,_0x5d8bd3,_0x2ade89['commandParams'][0x0]['startIndex'])};}return _0x520bb0;}['_getSuggestionBlocksForListStyle'](){const _0x1e8431=this['editor']['plugins']['get']('LegacyListUtils');let _0x19c4d0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x19c4d0[0x0]?.['is']('element','listItem')&&_0x19c4d0['unshift'](..._0x1e8431['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x19c4d0[_0x19c4d0['length']-0x1]?.['is']('element','listItem')&&_0x19c4d0['push'](..._0x1e8431['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x19c4d0=[...new Set(_0x19c4d0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x19c4d0=_0x19c4d0['filter'](_0x479db5=>_0x479db5['is']('element','listItem'))),_0x19c4d0;}['_getSuggestionBlocks'](_0x320909){const _0xe023b7=this['editor']['plugins']['get']('LegacyListUtils');let _0x17ba9c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x320909)['map'](_0x4a6c1a=>{const _0x399d04=this['editor']['model']['createPositionAt'](_0x4a6c1a,0x0);return[..._0xe023b7['getSiblingNodes'](_0x399d04,'backward'),..._0xe023b7['getSiblingNodes'](_0x399d04,'forward')];})['flat']();return _0x17ba9c=[...new Set(_0x17ba9c)],_0x17ba9c;}['_getTranslationKeyForListStyle'](_0x15fcf8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x15fcf8)||'default')['toUpperCase']()+'_LIST_'+_0x15fcf8['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x483067{['afterInit'](){const _0x34b286=this['editor'];if(!_0x34b286['plugins']['has']('MediaEmbedEditing'))return;const _0x1aa6e9=_0x34b286['plugins']['get']('TrackChangesEditing'),_0x3ed1a3=_0x34b286['locale'];_0x1aa6e9['enableCommand']('mediaEmbed'),_0x1aa6e9['descriptionFactory']['registerElementLabel']('media',_0x211493=>c(_0x3ed1a3,'ELEMENT_MEDIA',_0x211493)),_0x34b286['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1d267b,{writer:_0x26d358,options:_0x4aab14})=>{if(_0x4aab14['showSuggestionHighlights'])return _0x26d358['createEmptyElement']('div');},'converterPriority':'high'}),_0x34b286['data']['downcastDispatcher']['on']('attribute:url:media',(_0x40494c,_0x6bb83d,_0x37b716)=>{_0x37b716['options']['showSuggestionHighlights']&&_0x40494c['stop']();},{'priority':'high'});}}class pt extends _0x483067{['afterInit'](){const _0x3ca7e8=this['editor'];_0x3ca7e8['plugins']['has']('MentionEditing')&&_0x3ca7e8['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x483067{['afterInit'](){const _0x110160=this['editor'];if(!_0x110160['plugins']['has']('MergeFieldsEditing'))return;const _0x4899c8=_0x110160['plugins']['get']('TrackChangesEditing'),_0x48cf16=_0x110160['locale'];_0x4899c8['enableCommand']('insertMergeField'),_0x4899c8['enableCommand']('insertMergeFieldBlock'),_0x4899c8['enableCommand']('insertMergeFieldImage'),_0x4899c8['descriptionFactory']['registerElementLabel']('mergeField',_0x1cb194=>c(_0x48cf16,'ELEMENT_MERGE_FIELD',_0x1cb194)),_0x4899c8['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x26c791=>c(_0x48cf16,'ELEMENT_MERGE_FIELD',_0x26c791)),_0x4899c8['descriptionFactory']['registerDescriptionCallback'](_0x230f35=>{if('insertion'!=_0x230f35['type']&&'deletion'!=_0x230f35['type'])return;const _0x31298d=_0x230f35['getContainedElement']();if(null==_0x31298d)return;const _0x5ab282=_0x110160['plugins']['get']('MergeFieldsEditing');let _0x285cda;switch(_0x5ab282['getMergeFieldType'](_0x31298d)){case null:return;case'image':{const _0x5aa10d=_0x5ab282['unwrapAffixes'](_0x31298d['getAttribute']('src'));_0x285cda=_0x5ab282['getLabel'](_0x5aa10d)||_0x5aa10d;break;}default:{const _0x4c106e=_0x31298d['getAttribute']('id');_0x285cda=_0x5ab282['getLabel'](_0x4c106e)||_0x4c106e;break;}}return'insertion'==_0x230f35['type']?{'type':'insertion','content':c(_0x48cf16,'*Insert:*\x20%0','\x22'+_0x285cda+'\x22\x20'+c(_0x48cf16,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x48cf16,'*Remove:*\x20%0','\x22'+_0x285cda+'\x22\x20'+c(_0x48cf16,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x483067{['afterInit'](){const _0x4e96a3=this['editor'],_0x1f2147=_0x4e96a3['plugins']['get']('TrackChangesEditing');_0x4e96a3['plugins']['has']('MultiLevelList')&&(_0x1f2147['enableDefaultAttributesIntegration']('multiLevelList'),_0x1f2147['registerBlockAttribute']('listMarkerStyle'),_0x1f2147['descriptionFactory']['registerDescriptionCallback'](_0x1a2dc4=>this['handleDescriptions'](_0x1a2dc4)));}['handleDescriptions'](_0x15de9c){const _0x50158e=this['editor']['locale'],{data:_0x4ce818}=_0x15de9c,_0x3d26bd={'type':'format','content':''};if(_0x4ce818&&'listMarkerStyle'==_0x4ce818['key']){if(!_0x4ce818['oldValue'])return{'type':'format','content':c(_0x50158e,'*Set\x20format:*\x20%0',c(_0x50158e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4ce818['newValue']+')'};if(!_0x4ce818['newValue']){let _0x1177b5=_0x15de9c['head'];for(;_0x1177b5;){if(_0x1177b5['data']&&'listType'==_0x1177b5['data']['key']&&_0x1177b5['data']['newValue'])return _0x3d26bd;_0x1177b5=_0x1177b5['next'];}return{'type':'format','content':c(_0x50158e,'*Remove\x20format:*\x20%0',c(_0x50158e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4ce818['oldValue']+')'};}}}}class bt extends _0x483067{['afterInit'](){const _0x257842=this['editor'];if(!_0x257842['plugins']['has']('PageBreakEditing'))return;_0x257842['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3f2e39=_0x257842['plugins']['get']('TrackChangesEditing'),_0x3f3021=_0x257842['locale'];_0x3f2e39['descriptionFactory']['registerElementLabel']('pageBreak',_0x1dcd3a=>c(_0x3f3021,'ELEMENT_PAGE_BREAK',_0x1dcd3a));}}class yt extends _0x483067{['afterInit'](){const _0x42eb7a=this['editor'];if(!_0x42eb7a['plugins']['has']('Paragraph'))return;const _0x443a44=_0x42eb7a['locale'],_0x3fc82c=_0x42eb7a['plugins']['get']('TrackChangesEditing');_0x3fc82c['descriptionFactory']['registerElementLabel']('paragraph',_0x2c4291=>c(_0x443a44,'ELEMENT_PARAGRAPH',_0x2c4291)),_0x3fc82c['enableDefaultAttributesIntegration']('paragraph'),_0x3fc82c['enableCommand']('insertParagraph'),_0x42eb7a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x42eb7a),{'priority':'highest'}),_0x42eb7a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x17a81b,_0x26f8dd,_0x3ca950)=>{_0x3ca950['options']['showSuggestionHighlights']&&nr(_0x42eb7a,{'showActiveMarker':!0x1})(_0x17a81b,_0x26f8dd,_0x3ca950);},{'priority':'highest'});const _0x25c636=_0x3fc82c['descriptionFactory'];_0x25c636['registerDescriptionCallback'](_0x37d2ba=>{if('insertion'!==_0x37d2ba['type'])return;const {start:_0x56865e,end:_0x393c59}=_0x37d2ba['getFirstRange']();if(!_0x56865e['isTouching'](_0x393c59)||!_0x56865e['nodeAfter'])return;const _0x141940=_0x42eb7a['model']['schema'],_0x4c4696=_0x56865e['nodeAfter'];return _0x141940['isBlock'](_0x4c4696)&&!_0x141940['isLimit'](_0x4c4696)&&_0x141940['checkChild'](_0x4c4696,'$text')?{'type':'insertion','content':c(_0x443a44,'*Insert:*\x20%0',_0x25c636['getItemLabel'](_0x4c4696,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x230b2b=this['editor'],_0xdb3ff7=_0x230b2b['locale'];_0x230b2b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f2d14=>{if('formatBlock'!=_0x5f2d14['type'])return;const {data:_0x3069fd}=_0x5f2d14;return _0x3069fd&&'paragraph'==_0x3069fd['commandName']?{'type':'format','content':c(_0xdb3ff7,'*Change\x20to:*\x20%0',c(_0xdb3ff7,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x25d4ed,{showActiveMarker:_0x59ba84=!0x0}={}){return(_0x23e21b,_0x3e5f01,_0x2016ba)=>{const _0x753418=_0x25d4ed['plugins']['get']('TrackChangesEditing'),_0x3b05ab=_0x3e5f01['markerRange']['start'],_0x7569cb=_0x3e5f01['markerRange']['end'],_0x4d0d8f=_0x25d4ed['model']['schema'];if(!_0x3b05ab['isTouching'](_0x7569cb)||!_0x3b05ab['nodeAfter'])return;const _0xfd1f5a=_0x3b05ab['nodeAfter'];if(_0x4d0d8f['isBlock'](_0xfd1f5a)&&!_0x4d0d8f['isLimit'](_0xfd1f5a)&&_0x4d0d8f['checkChild'](_0xfd1f5a,'$text')){if(!_0x2016ba['consumable']['consume'](_0x3e5f01['markerRange'],_0x23e21b['name']))return;const {id:_0x5dc448,authorId:_0x13813c}=_0x753418['_splitMarkerName'](_0x3e5f01['markerName']),_0x47aa54=_0x2016ba['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x5dc448,'data-author-id':_0x13813c}),_0x15eb20=_0x2016ba['mapper']['toViewPosition'](_0x7569cb);_0x59ba84&&_0x753418['activeMarkers']['includes'](_0x3e5f01['markerName'])&&_0x2016ba['writer']['addClass']('ck-suggestion-marker--active',_0x47aa54),_0x2016ba['writer']['insert'](_0x15eb20,_0x47aa54),_0x2016ba['mapper']['bindElementToMarker'](_0x47aa54,_0x3e5f01['markerName']);}};}class jt extends _0x483067{['afterInit'](){const _0x51e5ee=this['editor'];_0x51e5ee['commands']['get']('replaceSource')&&_0x51e5ee['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x483067{['afterInit'](){const _0x145f56=this['editor'];if(!_0x145f56['plugins']['has']('RemoveFormatEditing'))return;_0x145f56['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x488b48=this['editor'];_0x488b48['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1aa7a1=>{if('formatBlock'!=_0x1aa7a1['type']&&'formatInline'!=_0x1aa7a1['type'])return;const {data:_0x4a0af1}=_0x1aa7a1;return _0x4a0af1&&'removeFormat'==_0x4a0af1['commandName']?{'type':'format','content':c(_0x488b48['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x483067{['afterInit'](){const _0x2b7112=this['editor'];if(!_0x2b7112['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5537b8=_0x2b7112['plugins']['get']('TrackChangesEditing');_0x5537b8['enableCommand']('goToPreviousRestrictedEditingException'),_0x5537b8['enableCommand']('goToNextRestrictedEditingException');const _0x2c7e7a=_0x2b7112['plugins']['get']('RestrictedEditingModeEditing');_0x2c7e7a['enableCommand']('trackChanges'),_0x2c7e7a['enableCommand']('acceptSuggestion'),_0x2c7e7a['enableCommand']('discardSuggestion'),_0x2c7e7a['enableCommand']('acceptAllSuggestions'),_0x2c7e7a['enableCommand']('discardAllSuggestions'),_0x2c7e7a['enableCommand']('acceptSelectedSuggestions'),_0x2c7e7a['enableCommand']('discardSelectedSuggestions');}}class It extends _0x483067{['afterInit'](){const _0x40e61a=this['editor'];if(!_0x40e61a['plugins']['has']('ShiftEnter'))return;const _0x56b869=_0x40e61a['plugins']['get']('TrackChangesEditing');_0x56b869['enableCommand']('shiftEnter'),_0x40e61a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x40e61a),{'priority':'high'}),_0x40e61a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x40e61a),{'priority':'high'}),_0x40e61a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x582866,_0x176f49,_0x4550fc)=>{_0x4550fc['options']['showSuggestionHighlights']&&je(_0x40e61a,{'showActiveMarker':!0x1})(_0x582866,_0x176f49,_0x4550fc);}),_0x56b869['descriptionFactory']['registerElementLabel']('softBreak',_0x1737e4=>c(_0x40e61a['locale'],'ELEMENT_LINE_BREAK',_0x1737e4));}}function je(_0x4b43c1,{showActiveMarker:_0x2e6795=!0x0}={}){return(_0x386d00,_0x107ea8,_0x58a29b)=>{const _0x1aa1d7=_0x4b43c1['plugins']['get']('TrackChangesEditing');if(!_0x58a29b['consumable']['test'](_0x107ea8['markerRange'],_0x386d00['name']))return;const _0x33ea3b=_0x4b43c1['model'];for(const _0x3e58a4 of _0x107ea8['markerRange']['getItems']()){if(!_0x3e58a4['is']('element','softBreak'))continue;const _0x54c72d='deletion'==_0x107ea8['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1441de,authorId:_0x58a7fd}=_0x1aa1d7['_splitMarkerName'](_0x107ea8['markerName']),_0x2a74c6=_0x58a29b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x54c72d,'data-suggestion':_0x1441de,'data-author-id':_0x58a7fd}),_0x3b5fe9=_0x58a29b['mapper']['toViewPosition'](_0x33ea3b['createPositionBefore'](_0x3e58a4));_0x2e6795&&_0x1aa1d7['activeMarkers']['includes'](_0x107ea8['markerName'])&&_0x58a29b['writer']['addClass']('ck-suggestion-marker--active',_0x2a74c6),_0x58a29b['writer']['insert'](_0x3b5fe9,_0x2a74c6),_0x58a29b['mapper']['bindElementToMarker'](_0x2a74c6,_0x107ea8['markerName']);}};}class _t extends _0x483067{['afterInit'](){const _0x589fc4=this['editor'],_0x503746=_0x589fc4['model'],_0x472982=_0x589fc4['locale'];if(!_0x589fc4['plugins']['has']('StandardEditingModeEditing'))return;const _0x35d014=_0x589fc4['plugins']['get']('TrackChangesEditing'),_0x286cc9='restrictedEditingException',_0x42d961=_0x589fc4['commands']['get'](_0x286cc9);_0x35d014['enableCommand'](_0x286cc9,(_0x56d95a,_0x3c7a34={})=>{const _0x1ad865=_0x503746['document']['selection'];if(_0x1ad865['isCollapsed'])return void _0x56d95a(_0x3c7a34);const _0x413f06=void 0x0!==_0x3c7a34['forceValue']?_0x3c7a34['forceValue']:!_0x42d961['value'];_0x503746['change'](()=>{const _0x103e34=Array['from'](_0x1ad865['getRanges']());for(const _0x59135c of _0x103e34){const _0x193dcf=_0x413f06?[_0x59135c]:io(_0x286cc9,_0x59135c,_0x503746);for(const _0x2c834f of _0x193dcf)_0x35d014['markInlineFormat'](_0x2c834f,{'commandName':_0x286cc9,'commandParams':[{'forceValue':_0x413f06}]});}});}),_0x35d014['descriptionFactory']['registerDescriptionCallback'](_0x1c10c3=>{if('formatBlock'!=_0x1c10c3['type']&&'formatInline'!=_0x1c10c3['type'])return;const {data:_0x109869}=_0x1c10c3;return _0x109869&&_0x109869['commandName']==_0x286cc9?_0x109869['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x472982,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x472982,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x483067{['afterInit'](){const _0x4aa436=this['editor'];if(!_0x4aa436['plugins']['has']('Style')||!_0x4aa436['plugins']['has']('DataSchema'))return;const _0x4d5c5e=_0x4aa436['plugins']['get']('TrackChangesEditing'),_0x3f2b3d=_0x4aa436['locale'],_0x2f248c=_0x4aa436['config']['get']('style')||{},_0x3e2af7=_0x4aa436['plugins']['get']('GeneralHtmlSupport'),_0x2450b1=_0x4aa436['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4aa436['plugins']['get']('DataSchema'),_0x2f248c['definitions']);_0x4d5c5e['enableDefaultAttributesIntegration']('style');const _0x10bbbb=new Set();for(const _0x24ead9 of _0x2450b1['block']){const _0x2f10cd=_0x3e2af7['getGhsAttributeNameForElement'](_0x24ead9['element']);_0x10bbbb['add'](_0x2f10cd);}const _0x26ffc9=new Set();for(const _0x1f090b of _0x2450b1['inline']){const _0x1e53d9=_0x3e2af7['getGhsAttributeNameForElement'](_0x1f090b['element']);_0x26ffc9['add'](_0x1e53d9);for(const _0x55021e of _0x1f090b['ghsAttributes'])_0x26ffc9['add'](_0x55021e);}for(const _0x4053b3 of _0x10bbbb)_0x4d5c5e['registerBlockAttribute'](_0x4053b3),_0x4d5c5e['descriptionFactory']['registerAttributeLabel'](_0x4053b3,c(_0x3f2b3d,'FORMAT_STYLE'));for(const _0x11dd88 of _0x26ffc9)_0x4d5c5e['registerInlineAttribute'](_0x11dd88),_0x4d5c5e['descriptionFactory']['registerAttributeLabel'](_0x11dd88,c(_0x3f2b3d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x501e04=this['editor'],_0x2dc28a=_0x501e04['locale'];_0x501e04['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f27d3=>{if('formatBlock'!=_0x2f27d3['type']&&'formatInline'!=_0x2f27d3['type'])return;const {data:_0x337fc0}=_0x2f27d3;return _0x337fc0&&'style'===_0x337fc0['commandName']?_0x337fc0['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2dc28a,'*Set\x20format:*\x20%0',_0x337fc0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x2dc28a,'*Remove\x20format:*\x20%0',_0x337fc0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x483067{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x22382f){super(_0x22382f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xd17675=this['editor'],_0xa39f01=_0xd17675['model']['document']['selection'];if(!_0xd17675['plugins']['has']('TableEditing'))return;const _0x590ac0=_0xd17675['locale'],_0x57e030=_0xd17675['plugins']['get']('TrackChangesEditing'),_0x23b037=_0xd17675['plugins']['get']('TableUtils');_0x57e030['descriptionFactory']['registerElementLabel']('table',_0x2f5864=>c(_0x590ac0,'ELEMENT_TABLE',_0x2f5864)),this['_setupColumnsRowsFixing'](),_0x57e030['enableCommand']('insertTable'),_0x57e030['enableCommand']('selectTableRow'),_0x57e030['enableCommand']('selectTableColumn');for(const _0x17f604 of['insertTableRowAbove','insertTableRowBelow']){const _0x310be8=_0xd17675['commands']['get'](_0x17f604);_0x57e030['enableCommand'](_0x17f604,_0x3bb182=>{_0xd17675['model']['change'](_0x27dc42=>{_0x3bb182();const _0x9b6e79='above'===_0x310be8['order'],_0x3c8689=_0x23b037['getSelectionAffectedTableCells'](_0xa39f01),_0x54f0b9=_0x23b037['getRowIndexes'](_0x3c8689),_0x190f6f=_0x9b6e79?_0x54f0b9['first']-0x1:_0x54f0b9['last']+0x1,_0x521b28=_0x3c8689[0x0]['findAncestor']('table'),_0x93cf4c=_0x23b037['createTableWalker'](_0x521b28,{'startRow':_0x190f6f,'endRow':_0x190f6f}),_0x33c37c=Array['from'](_0x93cf4c)['map'](_0x53ba41=>_0x27dc42['createRangeOn'](_0x53ba41['cell']));_0x57e030['markMultiRangeInsertion'](_0x33c37c,'tableRow');});});}for(const _0x33013d of['insertTableColumnLeft','insertTableColumnRight']){const _0x40cc7d=_0xd17675['commands']['get'](_0x33013d);_0x57e030['enableCommand'](_0x33013d,_0xeeefda=>{_0xd17675['model']['change'](_0x3b4a1c=>{_0xeeefda();const _0x5bace0='left'===_0x40cc7d['order'],_0x47ee5f=_0x23b037['getSelectionAffectedTableCells'](_0xa39f01),_0x3534d5=_0x23b037['getColumnIndexes'](_0x47ee5f),_0x5399f4=_0x5bace0?_0x3534d5['first']-0x1:_0x3534d5['last']+0x1,_0x3ee72a=_0x47ee5f[0x0]['findAncestor']('table'),_0x3a7bd7=_0x23b037['createTableWalker'](_0x3ee72a,{'startRow':0x0,'column':_0x5399f4,'includeAllSlots':!0x1}),_0x19c578=Array['from'](_0x3a7bd7)['map'](_0x53dea7=>_0x3b4a1c['createRangeOn'](_0x53dea7['cell']));_0x57e030['markMultiRangeInsertion'](_0x19c578,'tableColumn');});});}for(const _0x284e58 of['removeTableRow','removeTableColumn']){const _0x29637c=_0x284e58['substr'](0xb),_0x2035ad=_0x29637c['toLowerCase'](),_0x4a4465=_0x2035ad['substr'](0x0,0x3)+'span',_0x44f88d='table'+_0x29637c,_0x422d6b='min'+_0x29637c,_0x4db621='max'+_0x29637c;_0x57e030['enableCommand'](_0x284e58,()=>{_0xd17675['model']['change'](_0x91f3d7=>{const _0x3839d4=_0x23b037['getSelectionAffectedTableCells'](_0xa39f01),_0x5f6662=_0x3839d4[0x0]['findAncestor']('table');let _0x2a1042;if('removeTableRow'==_0x284e58){const _0x22d6c3=_0x23b037['getRowIndexes'](_0x3839d4);_0x2a1042={'startRow':_0x22d6c3['first'],'endRow':_0x22d6c3['last'],'includeAllSlots':!0x0};}else{const _0x42ba20=_0x23b037['getColumnIndexes'](_0x3839d4);_0x2a1042={'startColumn':_0x42ba20['first'],'endColumn':_0x42ba20['last'],'includeAllSlots':!0x0};}const _0x456a09=_0x23b037['createTableWalker'](_0x5f6662,_0x2a1042),_0x197fe4=Array['from'](_0x456a09)['map'](({cell:_0x2c628b})=>_0x2c628b),_0x50fce8=xe(_0x197fe4['filter'](_0x7a8c1f=>_0x7a8c1f['hasAttribute'](_0x4a4465))),_0x50c6ce=xe(_0x197fe4['filter'](_0x1996a6=>!_0x1996a6['hasAttribute'](_0x4a4465)))['map'](_0x4345e8=>_0x91f3d7['createRangeOn'](_0x4345e8)),_0x1276c9=_0x57e030['markMultiRangeDeletion'](_0x50c6ce,_0x44f88d);if(_0x1276c9&&('tableRow'==_0x1276c9['subType']||'tableColumn'==_0x1276c9['subType'])){const _0x46aeba=this['_getSuggestionCoords'](_0x1276c9);for(const _0x3b44a9 of _0x50fce8){const _0x538b74=_0x91f3d7['createRangeOn'](_0x3b44a9),_0x41c96e=_0x23b037['getCellLocation'](_0x3b44a9),_0x2231a1=_0x3b44a9['getAttribute'](_0x4a4465)-0x1,_0x111322=_0x46aeba[_0x422d6b],_0x188f1=_0x46aeba[_0x4db621];_0x111322<=_0x41c96e[_0x2035ad]&&_0x41c96e[_0x2035ad]+_0x2231a1<=_0x188f1&&_0x1276c9['addRange'](_0x538b74);}}});});}function _0x687061(_0x5a1fb1){const _0x592d1b=Array['from'](_0xa39f01['getRanges']())['map'](_0x812dc2=>_0x3bdca8['fromRange'](_0x812dc2));_0xd17675['model']['change'](_0x2334f0=>{const _0x3a8ce8=_0x2334f0['batch'];_0x5a1fb1=_0x5a1fb1['filter'](_0x493e11=>'$graveyard'!=_0x493e11['root']['rootName']),_0x2334f0['setSelection'](_0x5a1fb1),_0xd17675['commands']['get']('removeTableRow')['refresh'](),_0xd17675['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xd17675['model']['enqueueChange'](()=>{_0xd17675['model']['enqueueChange'](_0x3a8ce8,_0x53085e=>{const _0x214999=_0x592d1b['filter'](_0x3f9263=>'$graveyard'!=_0x3f9263['root']['rootName']);_0x214999['length']>0x0&&_0x53085e['setSelection'](_0x214999);for(const _0x50fb59 of _0x592d1b)_0x50fb59['detach']();});});});}function _0x11b236(_0x3e5659){_0xd17675['model']['change'](_0x546f50=>{const _0x441590=Array['from'](_0xa39f01['getRanges']())['map'](_0x242e31=>_0x3bdca8['fromRange'](_0x242e31)),_0x2528c1=[];for(const _0x10044a of _0x3e5659)for(const _0x540c1b of _0x10044a['getItems']({'shallow':!0x0}))_0x2528c1['push'](_0x540c1b);for(const _0x5dfefa of _0x2528c1)'$graveyard'!=_0x5dfefa['root']['rootName']&&(_0x546f50['setSelection'](_0x546f50['createPositionAt'](_0x5dfefa,0x0)),_0xd17675['commands']['get']('removeTableColumn')['refresh'](),_0xd17675['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5a1315=_0x441590['filter'](_0x107505=>'$graveyard'!=_0x107505['root']['rootName']);_0x5a1315['length']>0x0&&_0x546f50['setSelection'](_0x5a1315);for(const _0x476827 of _0x441590)_0x476827['detach']();});}function _0x53199c(_0x1e61cf,_0x4801bd){return _0x4801bd['every'](_0x339f92=>_0x1e61cf['some'](_0xa4393d=>_0xa4393d['end']['isEqual'](_0x339f92['start'])||_0x339f92['end']['isEqual'](_0xa4393d['start'])));}function _0x504e4b(_0x2bc920,_0x44b645){return!_0x2bc920['some'](_0x2e68d8=>_0x44b645['some'](_0x5ed57a=>_0x2e68d8['isIntersecting'](_0x5ed57a)))&&_0x2bc920['some'](_0x4c4549=>_0x44b645['some'](_0x678a17=>_0x4c4549['end']['isTouching'](_0x678a17['start'])));}_0xd17675['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4c6677,_0x4278c8,_0x1dfef8)=>{if(!_0x1dfef8['options']['showSuggestionHighlights'])return;const _0x4588f3=_0x4278c8['item'];if(!_0x4588f3||!_0x4588f3['is']('element','tableCell'))return;const _0x2fba9e=_0x1dfef8['mapper']['toViewElement'](_0x4588f3);if(_0x2fba9e){const {id:_0xd381b1,authorId:_0x3fc1da}=_0x57e030['_splitMarkerName'](_0x4278c8['markerName']);_0x48b275(_0x2fba9e,_0x1dfef8['writer'],(_0x4fb10b,_0x1d4075,_0x1e2189)=>{_0x1e2189['addClass'](_0x49c6d9(_0x1d4075['classes']),_0x4fb10b),_0x1e2189['setAttribute']('data-suggestion-id',_0xd381b1,_0x4fb10b),_0x1e2189['setAttribute']('data-author-id',_0x3fc1da,_0x4fb10b);},(_0x135e66,_0x568adf,_0xdb3f56)=>{_0xdb3f56['removeClass'](_0x49c6d9(_0x568adf['classes']),_0x135e66),_0xdb3f56['removeAttribute']('data-suggestion-id',_0x135e66),_0xdb3f56['removeAttribute']('data-author-id',_0x135e66);});}},{'priority':'highest'}),_0x57e030['descriptionFactory']['registerDescriptionCallback'](_0x535fc6=>{if('insertion'!=_0x535fc6['type']&&'deletion'!=_0x535fc6['type'])return;const _0x4a2ddd=_0x535fc6['getContainedElement']();if(null!=_0x4a2ddd&&_0x4a2ddd['is']('element','table')){if('insertion'==_0x535fc6['type']){const _0x571f7b=_0x535fc6['getItems']()['filter'](_0x44d41e=>_0x44d41e['is']('$textProxy'))['map'](_0x159535=>_0x159535['data']);if(_0x571f7b['length'])return{'type':'insertion','content':c(_0x590ac0,'*Insert:*\x20%0',c(_0x590ac0,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x571f7b['join']('\x20')+'\x22'))};}if('deletion'==_0x535fc6['type']){const _0x42f013=_0x535fc6['getItems']()['filter'](_0x494bab=>_0x494bab['is']('$textProxy'))['map'](_0x542627=>_0x542627['data']);if(_0x42f013['length'])return{'type':'deletion','content':c(_0x590ac0,'*Remove:*\x20%0',c(_0x590ac0,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x42f013['join']('\x20')+'\x22'))};}}}),_0x57e030['descriptionFactory']['registerDescriptionCallback'](_0x55ae11=>{if('tableRow'==_0x55ae11['subType']){const _0x360b7c=_0x55ae11['getItems']()['filter'](_0x438877=>_0x438877['is']('$textProxy'))['map'](_0x27c2c9=>_0x27c2c9['data']),_0x5d9031=this['_getSuggestionCoords'](_0x55ae11),_0xbe800f=_0x5d9031['maxRow']-_0x5d9031['minRow']+0x1;if('insertion'==_0x55ae11['type'])return _0x360b7c['length']?{'type':'insertion','content':c(_0x590ac0,'*Insert:*\x20%0',c(_0x590ac0,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xbe800f,'\x22'+_0x360b7c['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x590ac0,'*Insert:*\x20%0',c(_0x590ac0,'ELEMENT_TABLE_ROW',_0xbe800f))};if('deletion'==_0x55ae11['type'])return _0x360b7c['length']?{'type':'deletion','content':c(_0x590ac0,'*Remove:*\x20%0',c(_0x590ac0,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xbe800f,'\x22'+_0x360b7c['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x590ac0,'*Remove:*\x20%0',c(_0x590ac0,'ELEMENT_TABLE_ROW',_0xbe800f))};}if('tableColumn'==_0x55ae11['subType']){const _0xf66842=_0x55ae11['getItems']()['filter'](_0x4a3ffd=>_0x4a3ffd['is']('$textProxy'))['map'](_0x5c0bbc=>_0x5c0bbc['data']),_0x14f1b5=this['_getSuggestionCoords'](_0x55ae11),_0x3ad16c=_0x14f1b5['maxColumn']-_0x14f1b5['minColumn']+0x1;if('insertion'==_0x55ae11['type'])return _0xf66842['length']?{'type':'insertion','content':c(_0x590ac0,'*Insert:*\x20%0',c(_0x590ac0,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ad16c,'\x22'+_0xf66842['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x590ac0,'*Insert:*\x20%0',c(_0x590ac0,'ELEMENT_TABLE_COLUMN',_0x3ad16c))};if('deletion'==_0x55ae11['type'])return _0xf66842['length']?{'type':'deletion','content':c(_0x590ac0,'*Remove:*\x20%0',c(_0x590ac0,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ad16c,'\x22'+_0xf66842['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x590ac0,'*Remove:*\x20%0',c(_0x590ac0,'ELEMENT_TABLE_COLUMN',_0x3ad16c))};}}),_0x57e030['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x687061),_0x57e030['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x687061),_0x57e030['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x11b236),_0x57e030['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x11b236),_0x57e030['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x53199c),_0x57e030['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x53199c),_0x57e030['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x504e4b),_0x57e030['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x504e4b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x55832d=this['editor'],_0x5a07d9=_0x55832d['model']['document']['selection'];return(_0x6c35e7,_0x23ea99)=>{_0x55832d['model']['change'](_0x5363e2=>{const {commandName:_0x4c476b,commandParams:_0x496328}=_0x23ea99;let _0x5e0fee=_0x6c35e7[0x0]['end']['nodeBefore'];_0x496328&&_0x496328[0x0]&&!0x1===_0x496328[0x0]['forceValue']&&(_0x5e0fee=_0x6c35e7[0x0]['start']['nodeAfter']);const _0x2d12c3=_0x5363e2['createRangeIn'](_0x5e0fee);if('$graveyard'==_0x2d12c3['root']['rootName'])return;const _0x4cb762=Array['from'](_0x5a07d9['getRanges']())['map'](_0x549513=>_0x3bdca8['fromRange'](_0x549513));_0x5363e2['setSelection'](_0x2d12c3),_0x55832d['commands']['get'](_0x4c476b)['refresh'](),_0x496328['push']({'forceDefaultExecution':!0x0}),_0x55832d['execute'](_0x4c476b,..._0x496328);const _0x52838d=_0x4cb762['filter'](_0x47d93d=>'$graveyard'!=_0x47d93d['root']['rootName']);_0x52838d['length']>0x0&&_0x5363e2['setSelection'](_0x52838d);for(const _0x37c41c of _0x4cb762)_0x37c41c['detach']();});};}['_getCoordsForCells'](_0x1ef25b){const _0x36a307=this['editor']['plugins']['get']('TableUtils');let _0x1dfda4=Number['MAX_SAFE_INTEGER'],_0x414c5d=Number['MIN_SAFE_INTEGER'],_0x5d2ddc=Number['MAX_SAFE_INTEGER'],_0x3fdb7d=Number['MIN_SAFE_INTEGER'];for(const _0xd4123e of _0x1ef25b){if('$graveyard'==_0xd4123e['root']['rootName'])continue;const {row:_0x36a0b7,column:_0x5d7085}=_0x36a307['getCellLocation'](_0xd4123e),_0x323f24=_0xd4123e['hasAttribute']('rowspan')?_0xd4123e['getAttribute']('rowspan')-0x1:0x0,_0x1be35d=_0xd4123e['hasAttribute']('colspan')?_0xd4123e['getAttribute']('colspan')-0x1:0x0;_0x1dfda4=_0x36a0b7<_0x1dfda4?_0x36a0b7:_0x1dfda4,_0x414c5d=_0x36a0b7+_0x323f24>_0x414c5d?_0x36a0b7+_0x323f24:_0x414c5d,_0x5d2ddc=_0x5d7085<_0x5d2ddc?_0x5d7085:_0x5d2ddc,_0x3fdb7d=_0x5d7085+_0x1be35d>_0x3fdb7d?_0x5d7085+_0x1be35d:_0x3fdb7d;}return{'minRow':_0x1dfda4,'maxRow':_0x414c5d,'minColumn':_0x5d2ddc,'maxColumn':_0x3fdb7d};}['_setupColumnsRowsFixing'](){const _0x2a6420=this['editor'],_0x2a39dc=_0x2a6420['plugins']['get']('TrackChangesEditing'),_0x44ad37=_0x2a6420['plugins']['get']('TableUtils');_0x2a6420['model']['document']['on']('change:data',()=>{const _0x4dbb9c=Array['from'](_0x2a6420['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47b907,data:_0x5ea491}of _0x4dbb9c){const {group:_0x330524,id:_0x45ce77,subType:_0x3012c6}=_0x2a39dc['_splitMarkerName'](_0x47b907);if('suggestion'!=_0x330524)continue;if(null!=_0x5ea491['oldRange'])continue;const _0x3d8d41=_0x2a39dc['getSuggestion'](_0x45ce77);this['_tablePostFixingSubtypes']['includes'](_0x3012c6)&&this['_tableSuggestions']['add'](_0x3d8d41);}},{'priority':'low'});const _0x149d60=(_0x32c23f,_0x37be3f)=>{let _0xe38a34=!0x1;const _0x3fe33d=_0x37be3f['createRangeOn'](_0x32c23f),_0x609c1=_0x32c23f['findAncestor']('table'),_0x264129=_0x44ad37['getCellLocation'](_0x32c23f);for(const _0x492562 of this['_tableSuggestions']){const _0xa4a33c=_0x492562['subType'],_0x3df008=_0xa4a33c['startsWith']('tablePaste'),_0x475584=_0xa4a33c['substr'](_0x3df008?0xa:0x5),_0x29c74a=_0x475584['toLowerCase'](),_0x5c4d04=_0x29c74a['substr'](0x0,0x3)+'span',_0x275ac6='min'+_0x475584,_0x167090='max'+_0x475584;if(!_0x492562['isInContent'])continue;if(_0x609c1!=_0x492562['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x492562['isIntersectingWithRange'](_0x3fe33d))continue;const _0x51e925=_0x32c23f['hasAttribute'](_0x5c4d04)?_0x32c23f['getAttribute'](_0x5c4d04)-0x1:0x0,_0x3e8e40=this['_getSuggestionCoords'](_0x492562),_0x3ead48=_0x3e8e40[_0x275ac6],_0x54cd31=_0x3e8e40[_0x167090];_0x3ead48<=_0x264129[_0x29c74a]&&_0x264129[_0x29c74a]+_0x51e925<=_0x54cd31&&(_0x492562['addRange'](_0x3fe33d),_0xe38a34=!0x0);}return _0xe38a34;};_0x2a6420['model']['document']['registerPostFixer'](_0x13406b=>{let _0x3ac7c6=!0x1;for(const _0x460543 of _0x2a6420['model']['document']['differ']['getChanges']())if('insert'==_0x460543['type']){if('tableRow'==_0x460543['name']){for(const _0x506965 of _0x460543['position']['nodeAfter']['getChildren']())_0x3ac7c6=_0x3ac7c6||_0x149d60(_0x506965,_0x13406b);}else'tableCell'==_0x460543['name']&&(_0x3ac7c6=_0x3ac7c6||_0x149d60(_0x460543['position']['nodeAfter'],_0x13406b));}return _0x3ac7c6;});}['_getSuggestionCoords'](_0x5117da){return this['_getCoordsForCells'](_0x5117da['getRanges']()['map'](_0x1200b3=>_0x1200b3['start']['nodeAfter']));}}function xe(_0x5abf0c){return Array['from'](new Set(_0x5abf0c)['values']());}class Nt extends _0x483067{static get['requires'](){return[Ct];}['afterInit'](){const _0x40e677=this['editor'],_0x106b40=_0x40e677['model']['document']['selection'],_0x297d5a=_0x40e677['locale'];if(!_0x40e677['plugins']['has']('TableEditing'))return;const _0x5691cf=_0x40e677['plugins']['get']('TrackChangesEditing'),_0x3187af=_0x40e677['plugins']['get']('TableUtils'),_0x2a9d60=_0x40e677['plugins']['get'](Ct);_0x2a9d60['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5691cf['enableCommand']('mergeTableCells',()=>{const _0x53c739=_0x3187af['getSelectionAffectedTableCells'](_0x40e677['model']['document']['selection']);_0x40e677['model']['change'](()=>{_0x5691cf['markMultiRangeBlockFormat'](_0x53c739,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x40e677['commands']['get']('mergeTableCells')['on']('execute',(_0x3ff184,_0x260892)=>{_0x40e677['commands']['get']('trackChanges')['value']&&(_0x260892['length']>0x0&&_0x260892[_0x260892['length']-0x1]&&_0x260892[_0x260892['length']-0x1]['forceDefaultExecution']||_0x5691cf['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3ff184['stop']());},{'priority':'highest'});for(const _0x4ce06c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x514eaa=_0x40e677['commands']['get'](_0x4ce06c);_0x5691cf['enableCommand'](_0x4ce06c,()=>{const _0x110a45=_0x40e677['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3948c9=>_0x3948c9['is']('element','tableCell')),_0x33e26c=_0x514eaa['value'];_0x40e677['model']['change'](()=>{_0x5691cf['markMultiRangeBlockFormat']([_0x110a45,_0x33e26c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x30bccd of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2f9bad=_0x40e677['commands']['get'](_0x30bccd);_0x5691cf['enableCommand'](_0x30bccd,()=>{const _0x3a0afe=_0x3187af['getSelectionAffectedTableCells'](_0x40e677['model']['document']['selection'])[0x0],_0x4bb7a0=_0x3a0afe['findAncestor']('table'),{column:_0x15c10f,row:_0x16e300}=_0x3187af['getCellLocation'](_0x3a0afe);let _0x2b0408=[];if('horizontally'==_0x2f9bad['direction']){const _0x1afa78=_0x3187af['createTableWalker'](_0x4bb7a0,{'startRow':_0x16e300,'endRow':_0x16e300,'includeAllSlots':!0x0});_0x2b0408=Array['from'](_0x1afa78)['map'](_0x379f86=>_0x379f86['cell']);}else{const _0xb54fa0=_0x3187af['createTableWalker'](_0x4bb7a0,{'column':_0x15c10f,'includeAllSlots':!0x0});_0x2b0408=Array['from'](_0xb54fa0)['map'](_0x225d78=>_0x225d78['cell']);}_0x40e677['model']['change'](_0xafc3c0=>{_0x5691cf['markBlockFormat'](_0xafc3c0['createRangeOn'](_0x3a0afe),{'commandName':_0x30bccd,'commandParams':[]},_0x2b0408,_0x30bccd);});});}_0x5691cf['descriptionFactory']['registerDescriptionCallback'](_0x24717d=>{if('formatBlock'!=_0x24717d['type']&&'formatInline'!=_0x24717d['type'])return;const {data:_0x37dea6}=_0x24717d;return _0x37dea6&&'mergeTableCells'==_0x37dea6['commandName']?{'type':'format','content':c(_0x297d5a,'*Merge\x20cells*')}:void 0x0;}),_0x5691cf['descriptionFactory']['registerDescriptionCallback'](_0x11b5a2=>{if('formatBlock'!=_0x11b5a2['type']&&'formatInline'!=_0x11b5a2['type'])return;const {data:_0x564f41}=_0x11b5a2;return _0x564f41?'splitTableCellVertically'==_0x564f41['commandName']?{'type':'format','content':c(_0x297d5a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x564f41['commandName']?{'type':'format','content':c(_0x297d5a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3dcd8d=_0x2a9d60['_acceptFormatSuggestionCallbackFactory']();for(const _0x277ed9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5691cf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x277ed9,'accept',_0x3dcd8d);for(const _0x36448d of['splitTableCellVertically','splitTableCellHorizontally'])_0x5691cf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x36448d,'accept',_0x3dcd8d);_0x5691cf['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x8b336=>{_0x40e677['model']['change'](_0x5ebf6a=>{const _0x2893b6=Array['from'](_0x106b40['getRanges']())['map'](_0x146531=>_0x3bdca8['fromRange'](_0x146531));_0x5ebf6a['setSelection'](_0x8b336),_0x40e677['commands']['get']('mergeTableCells')['refresh'](),_0x40e677['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x424bb8=_0x2893b6['filter'](_0xa37c59=>'$graveyard'!=_0xa37c59['root']['rootName']);_0x424bb8['length']>0x0&&_0x5ebf6a['setSelection'](_0x424bb8);for(const _0x4978cf of _0x2893b6)_0x4978cf['detach']();});});for(const _0x2c4d1f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1fec7a=_0x40e677['commands']['get'](_0x2c4d1f);_0x1fec7a['on']('set:isEnabled',(_0x52eeb8,_0x4d0228,_0x226d5d)=>{if(_0x226d5d){const _0x2a83fb=_0x40e677['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x238e1d=>_0x238e1d['is']('element','tableCell'));this['_areMergableCells'](_0x1fec7a['value'],_0x2a83fb)||(_0x52eeb8['return']=!0x1,_0x52eeb8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4c1efa=this['editor']['commands']['get']('mergeTableCells'),_0x5b83be=this['editor']['plugins']['get']('TableUtils');if(!_0x4c1efa['isEnabled'])return!0x1;const _0x1d940f=_0x5b83be['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x15f695 of _0x1d940f)for(const _0x453967 of _0x1d940f)if(_0x15f695!=_0x453967&&!this['_areMergableCells'](_0x15f695,_0x453967))return!0x1;return!0x0;}['_areMergableCells'](_0x112282,_0x3d53dc){const _0x41f462=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1daad2=this['editor']['model']['createRangeOn'](_0x112282),_0x494841=this['editor']['model']['createRangeOn'](_0x3d53dc),_0xbf3791=new Set(),_0x3988f1=new Set();for(const _0x3848cf of _0x41f462['getSuggestions']())if(('insertion'==_0x3848cf['type']||'deletion'==_0x3848cf['type']||'mergeTableCells'==_0x3848cf['subType'])&&_0x3848cf['isInContent']){for(const _0xba8091 of _0x3848cf['getRanges']())_0xba8091['containsRange'](_0x1daad2,!0x0)&&_0xbf3791['add'](_0x3848cf['type']+':'+_0x3848cf['author']['id']),_0xba8091['containsRange'](_0x494841,!0x0)&&_0x3988f1['add'](_0x3848cf['type']+':'+_0x3848cf['author']['id']);}if(_0xbf3791['size']!=_0x3988f1['size'])return!0x1;for(const _0x267569 of _0xbf3791)if(!_0x3988f1['has'](_0x267569))return!0x1;return!0x0;}}class Dt extends _0x483067{static get['requires'](){return[Ct];}['afterInit'](){const _0x3234ae=this['editor'];if(!_0x3234ae['plugins']['has']('TableEditing'))return;const _0x163a3e=_0x3234ae['locale'],_0x22389c=_0x3234ae['plugins']['get']('TrackChangesEditing');_0x22389c['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x22389c['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x22389c['registerBlockAttribute']('headingRows'),_0x22389c['registerBlockAttribute']('headingColumns'),_0x22389c['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x163a3e,'FORMAT_HEADER_ROW')),_0x22389c['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x163a3e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x307e97=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b13af=this['editor']['plugins']['get']('TableUtils'),_0x390a10=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x15b315({showActiveMarker:_0x580d88=!0x0,setDataAttribute:_0x144806=!0x0}={}){return(_0x63ea0d,_0x5ee691,_0x2ef389)=>{const {type:_0x4b0889,id:_0x473012}=_0x307e97['_splitMarkerName'](_0x5ee691['markerName']),_0x38dfdc=_0x307e97['getSuggestion'](_0x473012),_0x5b75fc=_0x38dfdc['data'];if('formatBlock'!=_0x38dfdc['type']||!_0x5b75fc||'setTableColumnHeader'!=_0x5b75fc['commandName'])return;if(_0x5ee691['item'])return void _0x63ea0d['stop']();if(!_0x2ef389['consumable']['consume'](_0x5ee691['markerRange'],_0x63ea0d['name']))return;const _0x217ed3=_0x5ee691['markerRange']['start']['nodeAfter'],_0x11b85f=_0x5ee691['markerRange']['end']['nodeBefore'],_0x33fd15=_0x217ed3['parent']['parent'],{column:_0x121a95}=_0x2b13af['getCellLocation'](_0x217ed3),{column:_0x355066}=_0x2b13af['getCellLocation'](_0x11b85f);for(let _0x2fc68c=_0x121a95;_0x2fc68c<=_0x355066;_0x2fc68c++){const _0x40fa2f=_0x2b13af['createTableWalker'](_0x33fd15,{'column':_0x2fc68c,'includeAllSlots':!0x1});for(const _0x2e8dc5 of _0x40fa2f){const _0x308f73=_0x2e8dc5['cell'],_0x48373e=_0x2ef389['mapper']['toViewElement'](_0x308f73);_0x2ef389['writer']['addClass']('ck-suggestion-marker-'+_0x4b0889,_0x48373e),_0x144806&&_0x2ef389['writer']['setAttribute']('data-suggestion',_0x473012,_0x48373e),_0x2ef389['mapper']['bindElementToMarker'](_0x48373e,_0x5ee691['markerName']),_0x580d88&&(_0x307e97['activeMarkers']['includes'](_0x5ee691['markerName'])?_0x2ef389['writer']['addClass']('ck-suggestion-marker--active',_0x48373e):_0x2ef389['writer']['removeClass']('ck-suggestion-marker--active',_0x48373e));}}};}_0x307e97['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x390a10),_0x307e97['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x390a10),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x15b315(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x113e8c,_0x2623b9,_0x31e914)=>{_0x31e914['options']['showSuggestionHighlights']&&_0x15b315({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x113e8c,_0x2623b9,_0x31e914);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4a5e57,_0x5e40e6,_0x52f021)=>{const {type:_0x69dbc1,id:_0x439ca4}=_0x307e97['_splitMarkerName'](_0x5e40e6['markerName']),_0xe23898=_0x307e97['getSuggestion'](_0x439ca4),_0x351ed3=_0xe23898['data'];if('formatBlock'!=_0xe23898['type']||!_0x351ed3||'setTableColumnHeader'!=_0x351ed3['commandName'])return;const _0x35f2f8=_0x52f021['mapper']['markerNameToElements'](_0x5e40e6['markerName']);if(_0x35f2f8){for(const _0xf5af17 of _0x35f2f8)_0x52f021['writer']['removeClass']('ck-suggestion-marker-'+_0x69dbc1,_0xf5af17),_0x52f021['writer']['removeClass']('ck-suggestion-marker--active',_0xf5af17),_0x52f021['writer']['removeAttribute']('data-suggestion',_0xf5af17),_0x52f021['mapper']['unbindElementFromMarkerName'](_0xf5af17,_0x5e40e6['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x159980=this['editor'],_0x49f21a=_0x159980['locale'];function _0xf9ffa5(_0x385c1c){return{'type':'format','content':c(_0x49f21a,'*Format:*\x20%0',_0x385c1c)};}_0x159980['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x298dce=>{if('formatBlock'!=_0x298dce['type'])return;const {data:_0x285005}=_0x298dce;if(_0x285005){if('setTableRowHeader'==_0x285005['commandName']){const _0x1081aa=_0x285005['commandParams'][0x0]['forceValue'];return _0xf9ffa5(c(_0x49f21a,_0x1081aa?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x285005['commandName']){const _0x24ac5f=_0x285005['commandParams'][0x0]['forceValue'];return _0xf9ffa5(c(_0x49f21a,_0x24ac5f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x483067{['afterInit'](){const _0x4f3f94=this['editor'],_0x311660=_0x4f3f94['locale'],_0xd2fa3f=_0x4f3f94['plugins']['get']('TrackChangesEditing');function _0x5bc89d(_0x4bf6d4){return{'type':'format','content':''+c(_0x311660,'*Set\x20table\x20type:*\x20%0',_0x4bf6d4)};}_0x4f3f94['plugins']['has']('TableLayout')&&(_0xd2fa3f['enableCommand']('insertTableLayout'),_0xd2fa3f['enableDefaultAttributesIntegration']('tableType'),_0xd2fa3f['registerBlockAttribute']('tableType'),_0xd2fa3f['descriptionFactory']['registerElementLabel'](_0x1ab8b1=>_0x1ab8b1['is']('element','table')&&'layout'===_0x1ab8b1['getAttribute']('tableType'),_0x4c49e3=>c(_0x311660,'ELEMENT_LAYOUT_TABLE',_0x4c49e3)),_0xd2fa3f['descriptionFactory']['registerDescriptionCallback'](_0xb427c=>{const {data:_0x293796}=_0xb427c;if(_0x293796&&'tableType'==_0x293796['key'])switch(_0x293796['newValue']){case'layout':return _0x5bc89d(c(_0x311660,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5bc89d(c(_0x311660,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x32f465=>[_0x32f465,null]));class $t extends _0x483067{static get['requires'](){return[Ct];}['afterInit'](){const _0x36167e=this['editor'];if(!_0x36167e['plugins']['has']('TableClipboard'))return;const _0x537ae6=_0x36167e['plugins']['get']('TrackChangesEditing'),_0x30c50b=_0x36167e['plugins']['get']('TableUtils'),_0x23ea31=_0x36167e['plugins']['get'](Ct),_0x51505=_0x36167e['plugins']['get']('TableClipboard'),_0x26b425=_0x36167e['plugins']['get']('TableSelection'),_0x552c94=_0x36167e['plugins']['get'](_0x1ec869);_0x23ea31['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x36167e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x36167e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1ae91f=null,_0x57fb0e=!0x1;_0x552c94['on']('contentInsertion',(_0x2b647d,_0x59425d)=>{_0x57fb0e='paste'===_0x59425d['method'];}),_0x36167e['model']['on']('insertContent',(_0x4c7b7a,_0x1abec7)=>{if(!_0x57fb0e&&null===_0x26b425['getSelectedTableCells']())return;const [_0x1a9813,_0x108ec2]=_0x1abec7,_0x582893=_0x1abec7[_0x1abec7['length']-0x1];_0x582893&&_0x582893['forceDefaultExecution']||_0x537ae6['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x13d081,_0x35d943,_0xa425c8,_0x543041,_0x10d606){if(_0x35d943&&!_0x35d943['is']('documentSelection'))return!0x1;const _0x187bac=_0x10d606['getTableIfOnlyTableInContent'](_0x13d081,_0xa425c8);if(!_0x187bac||!He(_0x187bac,void 0x0,_0x543041))return!0x1;const _0x36efb9=_0x543041['getSelectionAffectedTableCells'](_0xa425c8['document']['selection']);if(!_0x36efb9['length'])return!0x1;const _0x3eee31=_0x36efb9[0x0]['findAncestor']('table'),_0x3a447a=_0x543041['getRowIndexes'](_0x36efb9),_0x20d6cb=_0x543041['getColumnIndexes'](_0x36efb9),_0x57aedd={'startRow':_0x3a447a['first'],'endRow':_0x3a447a['last'],'startColumn':_0x20d6cb['first'],'endColumn':_0x20d6cb['last']};return 0x1==_0x36efb9['length']&&(_0x57aedd['endRow']+=_0x543041['getRows'](_0x187bac)-0x1,_0x57aedd['endColumn']+=_0x543041['getColumns'](_0x187bac)-0x1),He(_0x3eee31,_0x57aedd,_0x543041);}(_0x1a9813,_0x108ec2,_0x36167e['model'],_0x30c50b,_0x51505)&&(_0x4c7b7a['stop'](),_0x1ae91f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x36167e['model']['change'](()=>{_0x36167e['model']['insertContent'](_0x1abec7[0x0],_0x1abec7[0x1],_0x1abec7[0x2],{'forceDefaultExecution':!0x0});const _0x29c6c0=_0x20de28(),{rowInsertionRanges:_0x46a117,columnInsertionRanges:_0x9e9268,insertionRanges:_0x2b4da7,deletionRanges:_0x58dd78,cells:_0x2bc333}=_0x1ae91f;_0x46a117['length']&&_0x537ae6['markMultiRangeInsertion'](_0x46a117,'tablePasteRow',{'tablePasteChainId':_0x29c6c0}),_0x9e9268['length']&&_0x537ae6['markMultiRangeInsertion'](_0x9e9268,'tablePasteColumn',{'tablePasteChainId':_0x29c6c0}),_0x2b4da7['length']&&(_0x537ae6['markMultiRangeInsertion'](_0x2b4da7,'tablePaste',{'tablePasteChainId':_0x29c6c0,'skipNestingCheck':!0x0}),_0x2b4da7['forEach'](_0x417031=>_0x417031['detach']?.())),_0x58dd78['length']&&(_0x537ae6['markMultiRangeDeletion'](_0x58dd78,'tablePaste',{'tablePasteChainId':_0x29c6c0,'skipNestingCheck':!0x0}),_0x58dd78['forEach'](_0x283ac0=>_0x283ac0['detach']?.()));const _0x39bb0b=_0x537ae6['markMultiRangeBlockFormat'](_0x2bc333['map'](({element:_0x9b4842})=>_0x9b4842),{'formatGroupId':_0x20de28()},[],'tablePasteCell',{'tablePasteChainId':_0x29c6c0});if(_0x39bb0b){const _0x479778=_0x39bb0b['getMarkers'](),_0xd03622=[];for(const {element:_0x527272,attributes:_0x131655}of _0x2bc333){if(!_0x131655)continue;const _0x4685b6=_0x36167e['model']['createRangeOn'](_0x527272),_0x23b54c=_0x479778['find'](_0x28f843=>_0x28f843['getRange']()['isEqual'](_0x4685b6));_0x23b54c&&_0xd03622['push']([_0x23b54c['name'],_0x131655]);}_0xd03622['length']&&_0x39bb0b['setAttribute']('markerAttributes',Object['fromEntries'](_0xd03622));}_0x1ae91f=null;}));},{'priority':_0x1626e5['high']+0xa}),_0x552c94['on']('contentInsertion',()=>{_0x57fb0e=!0x1;},{'priority':'lowest'}),_0x36167e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4671d2,_0x236b65)=>{const [_0x5927de,_0x2e72fc,,_0x966f05]=_0x236b65;if(!_0x1ae91f)return;_0x4671d2['stop']();const _0x5e587e=_0x5927de['cell'],_0x41aa8b=_0x2e72fc,_0x4525a1=De(_0x5e587e),_0x174ef2=De(_0x41aa8b);_0x4671d2['return']=_0x5e587e;let _0x3e97d7=null,_0x205cdb=null;if(_0x174ef2||_0x4525a1){if(_0x4525a1&&!_0x174ef2){_0x966f05['remove'](_0x5e587e['getChild'](0x0));for(const _0x10dd96 of Array['from'](_0x41aa8b['getChildren']()))_0x966f05['insert'](_0x10dd96,_0x5e587e,'end');const _0x34ed3d=_0x1ae91f['rowInsertionIndexes']['includes'](_0x5927de['row']),_0x5c3a52=_0x1ae91f['columnInsertionIndexes']['includes'](_0x5927de['column']);_0x34ed3d||_0x5c3a52||(_0x3e97d7=_0x3bdca8['fromRange'](_0x966f05['createRangeIn'](_0x5e587e)));}else _0x174ef2&&!_0x4525a1&&(_0x205cdb=_0x966f05['createRangeIn'](_0x5e587e));}else{const _0x34cc62=_0x966f05['createElement']('tableCellSuggestion'),_0x185869=_0x966f05['createElement']('tableCellSuggestion');_0x966f05['wrap'](_0x966f05['createRangeIn'](_0x5e587e),_0x185869),_0x966f05['insert'](_0x34cc62,_0x5e587e,0x0);for(const _0x236b31 of Array['from'](_0x41aa8b['getChildren']()))_0x966f05['insert'](_0x236b31,_0x34cc62,'end');_0x3e97d7=_0x3bdca8['fromRange'](_0x966f05['createRangeOn'](_0x34cc62)),_0x205cdb=_0x3bdca8['fromRange'](_0x966f05['createRangeOn'](_0x185869));}const _0xa4762e=Array['from'](_0x41aa8b['getAttributes']())['filter'](([_0x175c81])=>Oe['includes'](_0x175c81));_0x1ae91f['cells']['push']({'element':_0x5e587e,'attributes':_0xa4762e['length']?Object['fromEntries'](_0xa4762e):null}),_0x3e97d7&&_0x1ae91f['insertionRanges']['push'](_0x3e97d7),_0x205cdb&&_0x1ae91f['deletionRanges']['push'](_0x205cdb);},{'priority':'high'}),_0x30c50b['on']('insertColumns',(_0x546b0c,_0x5cb46a)=>{const [_0x2620c0,_0x355a28={}]=_0x5cb46a;if(!_0x1ae91f)return;const _0x3a62e2=_0x355a28['at']||0x0,_0x49ac17=_0x355a28['columns']||0x1;_0x1ae91f['columnInsertionIndexes']=new Array(_0x49ac17)['fill'](_0x3a62e2)['map']((_0x21addb,_0x31f464)=>_0x21addb+_0x31f464);for(const {cell:_0x56079f}of _0x30c50b['createTableWalker'](_0x2620c0,{'startColumn':_0x3a62e2,'endColumn':_0x3a62e2+_0x49ac17-0x1}))_0x1ae91f['columnInsertionRanges']['push'](_0x36167e['model']['createRangeOn'](_0x56079f));},{'priority':'low'}),_0x30c50b['on']('insertRows',(_0x5322f3,_0x47d889)=>{const [_0x4f056c,_0x34110e={}]=_0x47d889;if(!_0x1ae91f)return;const _0x406d4a=_0x34110e['at']||0x0,_0x592624=_0x34110e['rows']||0x1;_0x1ae91f['rowInsertionIndexes']=new Array(_0x592624)['fill'](_0x406d4a)['map']((_0x516f4d,_0x4dfa65)=>_0x516f4d+_0x4dfa65);for(const {cell:_0x47fe35}of _0x30c50b['createTableWalker'](_0x4f056c,{'startRow':_0x406d4a,'endRow':_0x406d4a+_0x592624-0x1}))_0x1ae91f['rowInsertionRanges']['push'](_0x36167e['model']['createRangeOn'](_0x47fe35));},{'priority':'low'}),_0x537ae6['descriptionFactory']['registerDescriptionCallback'](_0x4d395c=>{if(_0x4d395c['subType']&&_0x4d395c['subType']['startsWith']('tablePaste'))return _0x4d395c['previous']?{}:{'type':'insertion','content':c(_0x36167e['locale'],'*Replace\x20table\x20cells*')};});const _0x362864=()=>!0x1;for(const _0x1f97d1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x537ae6['_suggestionFactory']['registerCustomCallback']('insertion',_0x1f97d1,'join',_0x362864),_0x537ae6['_suggestionFactory']['registerCustomCallback']('deletion',_0x1f97d1,'join',_0x362864),_0x537ae6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f97d1,'join',_0x362864);_0x537ae6['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x362864),_0x537ae6['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x15fecf,_0x5b02fe,_0x1b3d6c)=>{const _0xa2e68c=_0x15fecf['map'](_0x57ef93=>_0x57ef93['getContainedElement']())['filter'](_0x12788f=>_0x12788f),_0x338ec6=new Map(_0xa2e68c['map'](_0x288849=>[_0x288849,null]));if(_0x1ae91f){for(const {element:_0x438af4,attributes:_0x1f5d3a}of _0x1ae91f['cells'])_0x1f5d3a&&_0x338ec6['set'](_0x438af4,_0x1f5d3a);}else{if(_0x1b3d6c&&_0x1b3d6c['markerAttributes'])for(const [_0x24350b,_0x47752f]of Object['entries'](_0x1b3d6c['markerAttributes'])){const _0x5daed3=_0x36167e['model']['markers']['get'](_0x24350b),_0x6a2332=_0x5daed3?_0x5daed3['getRange']()['getContainedElement']():null;_0x6a2332&&_0x338ec6['set'](_0x6a2332,_0x47752f);}}_0x36167e['model']['change'](_0x26c045=>{for(const [_0x583f0e,_0x26d921]of _0x338ec6)_0x26c045['setAttributes']({...Ue,..._0x26d921},_0x583f0e);});});const _0x4d1213=(_0x5f4eb0,_0x2da516)=>{_0x537ae6['_suggestionFactory']['registerCustomCallback'](_0x5f4eb0,'tablePaste',_0x2da516,(_0x2bccb8,_0x105749,_0x75930e)=>{_0x36167e['model']['change'](_0xe3c60=>{const _0x211f09=[];for(const _0x14c354 of _0x2bccb8){const _0x54052c=_0x14c354['start']['nodeAfter'];_0x54052c['is']('element','tableCellSuggestion')&&_0x211f09['push'](_0x54052c);}_0x537ae6['_suggestionFactory']['getSuggestionCallback'](_0x5f4eb0,null,_0x2da516)(_0x2bccb8,_0x105749,_0x75930e);for(const _0x30549 of _0x211f09)'$graveyard'!=_0x30549['root']['rootName']&&_0xe3c60['unwrap'](_0x30549);});});};_0x4d1213('insertion','accept'),_0x4d1213('insertion','discard'),_0x4d1213('deletion','accept'),_0x4d1213('deletion','discard'),_0x537ae6['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2d6980=>{const _0x155818=_0x2d6980['map'](_0x1eeea8=>_0x1eeea8['getContainedElement']()),_0x35b3ed=_0x155818[0x0]['findAncestor']('table'),{minRow:_0x1453a5,maxRow:_0x313239}=_0x23ea31['_getCoordsForCells'](_0x155818);_0x30c50b['removeRows'](_0x35b3ed,{'at':_0x1453a5,'rows':_0x313239-_0x1453a5+0x1});}),_0x537ae6['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xde9eca=>{const _0x42d576=_0xde9eca['map'](_0x261a50=>_0x261a50['getContainedElement']()),_0x5d364d=_0x42d576[0x0]['findAncestor']('table'),{minColumn:_0x2e36cb,maxColumn:_0x2446b1}=_0x23ea31['_getCoordsForCells'](_0x42d576);_0x30c50b['removeColumns'](_0x5d364d,{'at':_0x2e36cb,'columns':_0x2446b1-_0x2e36cb+0x1});});const _0x22b2b7=(_0x2b572c,_0x1b0eae)=>{if(!_0x1b0eae['subType']||!_0x1b0eae['subType']['startsWith']('tablePaste'))return;const _0x596361=_0x1b0eae['attributes']['tablePasteChainId'],_0x25dae3=_0x537ae6['getSuggestions']()['filter'](_0x23df47=>_0x23df47['isInContent']&&_0x23df47['attributes']&&_0x23df47['attributes']['tablePasteChainId']==_0x596361);_0x25dae3['length']&&_0x1b0eae['getAllAdjacentSuggestions']()['length']!=_0x25dae3['length']&&_0x25dae3['reduce']((_0x2e94ee,_0x190378)=>(_0x2e94ee['next']=_0x190378,_0x190378['previous']=_0x2e94ee,_0x190378));};function _0x2996b2(_0x40043a,_0x540c31=!0x0){const {id:_0x11155d,authorId:_0x544f19}=_0x537ae6['_splitMarkerName'](_0x40043a['markerName']),_0x3eb740=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x40740c=_0x537ae6['activeMarkers']['includes'](_0x40043a['markerName']);return _0x40740c&&_0x3eb740['push']('ck-suggestion-marker--active'),{'classes':_0x3eb740,'attributes':{'data-suggestion':_0x11155d,'data-author-id':_0x544f19},'priority':_0x40740c&&_0x540c31?0xbc2:0xbb8};}_0x537ae6['on']('suggestionLoaded',_0x22b2b7,{'priority':'high'}),_0x537ae6['on']('suggestionUnloaded',_0x22b2b7,{'priority':'high'}),_0x36167e['model']['document']['registerPostFixer'](()=>{let _0x39c22b=!0x1;const _0x5ed413=Array['from'](_0x36167e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x26cd60,data:_0x28f74f}of _0x5ed413){const {group:_0x5cbe23,type:_0x10518c,id:_0x5482e4}=_0x537ae6['_splitMarkerName'](_0x26cd60);if('suggestion'!=_0x5cbe23||'deletion'!=_0x10518c||_0x28f74f['oldRange'])continue;if(!_0x537ae6['hasSuggestion'](_0x5482e4))continue;const _0x342635=_0x537ae6['getSuggestion'](_0x5482e4)['getRanges'](),_0x127585=_0x36167e['plugins']['get']('Users')['me'];for(const _0x27e847 of _0x537ae6['getSuggestions']()){if(!_0x27e847['isInContent']||_0x27e847['author']!=_0x127585)continue;if('formatBlock'!=_0x27e847['type']||'tablePasteCell'!=_0x27e847['subType'])continue;if(_0x27e847['getRanges']()['every'](_0x2e75e6=>_0x342635['some'](_0x510498=>_0x510498['containsRange'](_0x2e75e6,!0x0)))){for(const _0x141766 of _0x27e847['getAllAdjacentSuggestions']())_0x141766['isInContent']&&(_0x141766['discard'](),_0x39c22b=!0x0);}}}return _0x39c22b;}),_0x36167e['model']['document']['registerPostFixer'](_0x2b179f=>{const _0x3161bf=_0x36167e['commands']['get']('redo');if(!_0x3161bf||!_0x3161bf['_createdBatches']['has'](_0x2b179f['batch']))return!0x1;let _0x2b2b46=!0x1;const _0x2900ed=_0x36167e['plugins']['get']('Users')['me'],_0x5124a2=_0x36167e['model']['document']['differ']['getChanges'](),_0x28fe29=Array['from'](_0x36167e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x478f66,data:_0x4fb348})=>{const {group:_0x48eecf,subType:_0x4e0f04,authorId:_0x42b0d2}=_0x537ae6['_splitMarkerName'](_0x478f66);return'suggestion'==_0x48eecf&&'tablePaste'==_0x4e0f04&&_0x42b0d2==_0x2900ed['id']&&!_0x4fb348['oldRange'];});for(const _0x4fd15b of _0x5124a2){if('insert'!=_0x4fd15b['type']||'tableCellSuggestion'!=_0x4fd15b['name']||0x1!=_0x4fd15b['length'])continue;const _0x2fb017=_0x2b179f['createRange'](_0x4fd15b['position'],_0x4fd15b['position']['getShiftedBy'](0x1));if(!_0x28fe29['find'](({data:_0x276efe})=>_0x276efe['newRange']['isEqual'](_0x2fb017))){for(const {name:_0x1c7dea,data:_0x468d17}of _0x28fe29)if(_0x2fb017['containsRange'](_0x468d17['newRange'])){_0x2b179f['updateMarker'](_0x1c7dea,{'range':_0x2fb017}),_0x2b2b46=!0x0;break;}}}return _0x2b2b46;}),_0x36167e['model']['document']['registerPostFixer'](_0x1d19d9=>{let _0xfe141c=!0x1;const _0x166bb7=_0x36167e['plugins']['get']('Users')['me'],_0xb84df5=_0x537ae6['getSuggestions']()['filter'](_0x237e9d=>_0x237e9d['isInContent']&&_0x237e9d['author']==_0x166bb7),_0x305a85=new Set(),_0x154f9f=new Set();for(const _0x364189 of _0xb84df5)if('tablePaste'==_0x364189['subType'])for(const _0x46c627 of _0x364189['getMarkers']()){const _0x50f8bd=_0x46c627['getRange']()['getContainedElement']();if(_0x50f8bd){if(_0x50f8bd['is']('element','tableCellSuggestion')&&De(_0x50f8bd)){_0x364189['removeMarker'](_0x46c627['name']),_0x305a85['add'](_0x50f8bd),_0xfe141c=!0x0;const _0x3649b4=_0x50f8bd['nextSibling'],_0x454d7f=_0x50f8bd['previousSibling'],_0x4b822e=_0x3649b4&&_0x3649b4['is']('element','tableCellSuggestion'),_0x52dc28=_0x454d7f&&_0x454d7f['is']('element','tableCellSuggestion');_0x4b822e&&!_0x305a85['has'](_0x3649b4)&&_0x154f9f['add'](_0x3649b4),_0x52dc28&&!_0x305a85['has'](_0x454d7f)&&_0x154f9f['add'](_0x454d7f);}else _0x50f8bd['is']('element','paragraph')&&_0x50f8bd['isEmpty']&&(_0x364189['removeMarker'](_0x46c627['name']),_0xfe141c=!0x0);}}else{if('tablePasteCell'==_0x364189['subType']){if(!_0x364189['attributes']||!_0x364189['attributes']['tablePasteChainId'])continue;const _0xad4113=_0x364189['attributes']['markerAttributes'];if(_0xad4113&&Object['keys'](_0xad4113)['length'])continue;const _0x3a1666=_0x364189['attributes']['tablePasteChainId'];let _0x195c9b=!0x0,_0x59e21d=!0x0;for(const _0x937e1b of _0xb84df5)if(_0x937e1b['subType']&&_0x937e1b['subType']['startsWith']('tablePaste')){if(!_0x937e1b['attributes']['tablePasteChainId']){_0x59e21d=!0x1;break;}if(_0x937e1b['id']!=_0x364189['id']&&_0x937e1b['attributes']['tablePasteChainId']==_0x3a1666){_0x195c9b=!0x1;break;}}_0x59e21d&&_0x195c9b&&(_0x364189['removeMarkers'](),_0xfe141c=!0x0);}}for(const _0x10f764 of _0x305a85)_0x1d19d9['remove'](_0x10f764);for(const _0x24d75b of _0x154f9f)_0x1d19d9['unwrap'](_0x24d75b);return _0xfe141c;}),_0x36167e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2bb888=>_0x2996b2(_0x2bb888),'converterPriority':'high'}),_0x36167e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x136463,_0x17b31d)=>_0x17b31d['options']['showSuggestionHighlights']?_0x2996b2(_0x136463,!0x1):null,'converterPriority':'high'});const _0x1f734b=_0x36167e['editing']['view'];this['listenTo'](_0x1f734b['document'],'clipboardOutput',(_0x3ae171,_0x13d701)=>{const _0x2ccd7f=[];for(const _0x3fdd60 of _0x1f734b['createRangeIn'](_0x13d701['content'])['getItems']())_0x3fdd60['is']('element','suggestion-td')&&_0x2ccd7f['push'](_0x3fdd60);_0x1f734b['change'](_0x4ce6ac=>{for(const _0x5ee736 of _0x2ccd7f)_0x4ce6ac['move'](_0x4ce6ac['createRangeIn'](_0x5ee736),_0x4ce6ac['createPositionBefore'](_0x5ee736)),_0x4ce6ac['remove'](_0x5ee736);});});}}function De(_0x13bd98){if(_0x13bd98['isEmpty'])return!0x0;const _0x47bba7=_0x13bd98['getChild'](0x0);return _0x47bba7['is']('element','paragraph')&&_0x47bba7['isEmpty'];}function He(_0x3b7692,_0x42b255={},_0x51752a){for(const {isAnchor:_0xb52a17,cellHeight:_0x488da4,cellWidth:_0xa9dafb}of _0x51752a['createTableWalker'](_0x3b7692,{'includeAllSlots':!0x0,..._0x42b255}))if(!_0xb52a17||0x1!=_0x488da4||0x1!=_0xa9dafb)return!0x1;return!0x0;}class Bt extends _0x483067{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3b2a6b=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b2a6b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3b2a6b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3b2a6b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3b2a6b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3b2a6b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3b2a6b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x44a559,_0x15a68f){const _0x564e78=this['editor']['plugins']['get']('TrackChangesEditing'),_0x273a7f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x46eeef=_0x15a68f['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5acd3d=_0x273a7f['getColumnGroupElement'](_0x46eeef);let _0x1368e8=_0x5acd3d?_0x273a7f['getTableColumnsWidths'](_0x5acd3d):null,_0x2265e3=_0x46eeef['getAttribute']('tableWidth')||null;const _0x311588=_0x15a68f['tableWidth']||_0x2265e3,_0x4e6159=_0x15a68f['columnWidths']||_0x1368e8,_0x218cf1=this['editor']['plugins']['get']('Users')['me'];for(const _0x52bd97 of _0x564e78['getSuggestions']()){const _0x492883=_0x52bd97['getContainedElement']();if('resizeTable'===_0x52bd97['subType']&&_0x492883===_0x46eeef){_0x52bd97['author']!==_0x218cf1&&_0x52bd97['discard']();const _0x1ce0aa=_0x52bd97['data']['commandParams'];_0x2265e3=_0x1ce0aa[0x0]['tableWidth'],_0x1368e8=_0x1ce0aa[0x0]['columnWidths'];break;}}_0x44a559({'table':_0x46eeef,'tableWidth':_0x311588,'columnWidths':_0x4e6159}),_0x564e78['markBlockFormat'](_0x46eeef,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2265e3,'columnWidths':_0x1368e8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x410221){if('formatBlock'!=_0x410221['type']&&'formatInline'!=_0x410221['type'])return;const {data:_0x4664b5}=_0x410221;if(_0x4664b5&&'resizeTable'===_0x4664b5['formatGroupId']){const _0x25dab6='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x25dab6)};}}}class Ot extends _0x483067{['afterInit'](){const _0x1d7f83=this['editor'];_0x1d7f83['plugins']['has']('Template')&&_0x1d7f83['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x483067{['afterInit'](){const _0x2daf1d=this['editor'];if(!_0x2daf1d['commands']['get']('insertTableOfContents'))return;_0x2daf1d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xde2efa=_0x2daf1d['plugins']['get']('TrackChangesEditing'),_0x850af1=_0x2daf1d['locale'];_0xde2efa['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1d2024=>c(_0x850af1,'ELEMENT_TABLE_OF_CONTENTS',_0x1d2024));}}class xt extends _0x483067{['afterInit'](){const _0x2206c6=this['editor'];if(!_0x2206c6['plugins']['has']('Title'))return;const _0x15b4ff=_0x2206c6['plugins']['get']('TrackChangesEditing');_0x15b4ff['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x2206c6['locale'],'ELEMENT_TITLE')),_0x2206c6['model']['document']['registerPostFixer'](_0x4c7088=>{let _0x3138d7=!0x1;const _0x270a25=Array['from'](_0x2206c6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x213203,data:_0x2aaa30}of _0x270a25){const {group:_0x313e3f}=_0x15b4ff['_splitMarkerName'](_0x213203);if('suggestion'!==_0x313e3f||!_0x2aaa30['newRange'])continue;const _0x210147=_0x2aaa30['newRange'],_0x504c8e=_0x210147['end']['nodeBefore'];if(!_0x504c8e||!_0x504c8e['is']('element','title-content'))continue;if(!_0x210147['start']['isTouching'](_0x210147['end']))continue;const _0x2b7787=_0x2206c6['model']['schema']['getNearestSelectionRange'](_0x210147['end'],'forward');if(_0x2b7787&&_0x2b7787['isCollapsed']){const _0x19beab=_0x4c7088['createRange'](_0x210147['start'],_0x2b7787['start']);_0x19beab['isEqual'](_0x210147)||(_0x4c7088['updateMarker'](_0x213203,{'range':_0x19beab}),_0x3138d7=!0x0);}_0x3138d7||(_0x4c7088['removeMarker'](_0x213203),_0x3138d7=!0x0);}return _0x3138d7;});}}class Tt extends _0x483067{['afterInit'](){const _0x16dac6=this['editor'],_0x257d55=_0x16dac6['plugins']['get']('TrackChangesEditing');_0x16dac6['plugins']['has']('Uploadcare')&&(_0x257d55['enableCommand']('uploadcare'),_0x16dac6['plugins']['has']('UploadcareImageEdit')&&(_0x257d55['enableCommand']('uploadcareImageEdit'),_0x257d55['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x257d55['registerBlockAttribute']('uploadcareImageId'),_0x257d55['descriptionFactory']['registerDescriptionCallback'](_0x18f86c=>{if('attribute'!=_0x18f86c['type'])return;const {data:_0x4fb04b}=_0x18f86c;return _0x4fb04b&&'uploadcareImageId'==_0x4fb04b['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x483067{['afterInit'](){const _0x4c16a6=this['editor'],_0x3c6aee=_0x4c16a6['plugins']['get']('TrackChangesEditing');_0x4c16a6['plugins']['has']('UndoEditing')&&(_0x3c6aee['enableCommand']('undo'),_0x3c6aee['enableCommand']('redo'));}}class Ut extends _0x483067{static get['requires'](){return[Ct];}['afterInit'](){const _0x481d4f=this['editor'];if(!_0x481d4f['plugins']['has']('TableCaptionEditing'))return;_0x481d4f['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x483067{['tableProperties'];['tableCellProperties'];constructor(_0x155467){super(_0x155467),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 _0x5e673e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5bfa6c of this['tableProperties'])_0x5e673e['enableCommand'](_0x5bfa6c,(_0x5d5980,_0x39abfb)=>{const _0x152214=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5bfa6c,[_0x152214],this['tableProperties'],'tableProperties',_0x5d5980,_0x39abfb);});_0x5e673e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5e673e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e673e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x16867c,_0x11afdc)=>this['handleDiscardAction'](this['tableProperties'],_0x16867c,_0x11afdc)),_0x5e673e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x26b4bf of this['tableCellProperties'])_0x5e673e['enableCommand'](_0x26b4bf,(_0x5e7288,_0x200095)=>{const _0x4a6485=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x26b4bf,_0x4a6485,this['tableCellProperties'],'tableCellProperties',_0x5e7288,_0x200095);});_0x5e673e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5e673e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e673e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2e8267,_0x5d23a9)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2e8267,_0x5d23a9)),_0x5e673e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5e673e['descriptionFactory']['registerDescriptionCallback'](_0x2d0465=>this['handleSuggestionDescription'](_0x2d0465));}['_handlePropertyChange'](_0x7b23a0,_0x16f151,_0x1c0898,_0x34bdda,_0x31d200,_0x5d04fc){const _0x23e6ad=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5d04fc['batch'],()=>{for(const _0x25f5ed of _0x16f151){if(this['_getSuggestion'](_0x25f5ed,_0x34bdda))_0x31d200(_0x5d04fc);else{const _0x261cbc={};for(const _0x6f8d7 of _0x1c0898){const _0x529724=_0x25f5ed['getAttribute'](_0x6f8d7);void 0x0!==_0x529724&&(_0x261cbc[_0x6f8d7]=_0x529724);}_0x31d200(_0x5d04fc),_0x23e6ad['markBlockFormat'](_0x25f5ed,{'commandParams':[_0x261cbc]},[],_0x34bdda);}}});}['handleDiscardAction'](_0x5e0596,_0x24f2ef,_0xafbd4){const _0x47433b=_0x24f2ef[0x0]['start']['nodeAfter'],_0x47edec=_0xafbd4['commandParams'][0x0];this['editor']['model']['change'](_0x2d9b08=>{for(const _0x21c0cd of _0x5e0596)void 0x0!==_0x47edec[_0x21c0cd]?_0x2d9b08['setAttribute'](_0x21c0cd,_0x47edec[_0x21c0cd],_0x47433b):_0x2d9b08['removeAttribute'](_0x21c0cd,_0x47433b);});}['handleSuggestionDescription'](_0x4a24fa){if(_0x4a24fa['data'])switch(_0x4a24fa['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x5c3630,_0x69d881){const _0x1d30ba=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1e7143 of _0x1d30ba['getSuggestions']({'skipNotAttached':!0x0})){const _0xb2e9d4=_0x1e7143['getContainedElement']();if(_0x1e7143['subType']===_0x69d881&&_0xb2e9d4===_0x5c3630)return _0x1e7143;}return null;}}const u='$elementName';class p extends _0x483067{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2624ff,_0x59bb81,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,it,nt,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,mt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x8af488){super(_0x8af488),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x35d889,_0x4d6ec3,_0x135576,_0x3888c5)=>{this['_model']['change'](()=>{for(const _0xdcdec4 of[..._0x3888c5,..._0x135576])this['_model']['markers']['has'](_0xdcdec4)&&_0x8af488['editing']['reconvertMarker'](_0xdcdec4);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x8af488['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x8af488['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x8af488['config']['get']('trackChanges.trackFormatChanges'),_0x8af488['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x8af488['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x8af488,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3e2f21=this['editor'],_0x126bb7=(_0x47f0d4,_0x53a80c)=>{if('attribute'!=_0x47f0d4)return'ck-suggestion-marker-'+_0x47f0d4;const _0x470150=_0x53a80c['split']('|')[0x0];return this['_isBlockAttribute'](_0x470150)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3e2f21['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1f2f06=>{const {id:_0x170d4d,authorId:_0x1a1358,type:_0x37f139,subType:_0x4e3299}=this['_splitMarkerName'](_0x1f2f06['markerName']),_0x5dc021=['ck-suggestion-marker',_0x126bb7(_0x37f139,_0x4e3299)];let _0x121323=0xbb8;return this['activeMarkers']['includes'](_0x1f2f06['markerName'])&&(_0x5dc021['push']('ck-suggestion-marker--active'),_0x121323=0xbc2),'deletion'==_0x37f139&&(_0x121323+=0x5),{'classes':_0x5dc021,'attributes':{'data-suggestion':_0x170d4d,'data-author-id':_0x1a1358},'priority':_0x121323};}}),_0x3e2f21['conversion']['for']('dataDowncast')['add'](_0x51bff2=>{_0x51bff2['on']('addMarker:suggestion',(_0x585de0,_0x19c2fb,_0x1ccfb2)=>{if(!_0x1ccfb2['options']['showSuggestionHighlights'])return;const _0x39d89e=_0x19c2fb['item'];if(!_0x39d89e)return;const _0x4740a7=_0x1ccfb2['mapper']['toViewElement'](_0x39d89e);_0x3e2f21['model']['schema']['isObject'](_0x39d89e)&&_0x4740a7&&!_0x4740a7['getCustomProperty']('widget')&&_0x4740a7['is']('containerElement')&&_0x54a5a0(_0x4740a7,_0x1ccfb2['writer']);},{'priority':'high'});}),_0x3e2f21['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x822883,_0x131685)=>{if(!_0x131685['options']['showSuggestionHighlights'])return null;const {id:_0x32e3d8,authorId:_0x5335a0,type:_0xcb0568,subType:_0x51dd90}=this['_splitMarkerName'](_0x822883['markerName']);return{'classes':['ck-suggestion-marker',_0x126bb7(_0xcb0568,_0x51dd90)],'priority':0xbb8,'attributes':{'data-suggestion':_0x32e3d8,'data-author-id':_0x5335a0}};}});const _0x3a7ad0=({showActiveMarkers:_0x792d8e=!0x0,isAttributeSuggestion:_0x117a50=!0x1}={})=>(_0x744f76,_0x5e7db2,_0x4eaad5)=>{if(!_0x5e7db2['item'])return;const {id:_0x95f033,authorId:_0x24c812}=this['_splitMarkerName'](_0x5e7db2['markerName']);if(_0x117a50){const _0x4a93e5=this['_suggestions']['get'](_0x95f033),_0x186231=this['_getAttributeKey'](_0x4a93e5);if(!this['_isBlockAttribute'](_0x186231))return;}if(_0x5e7db2['item']['is']('selection'))return void _0x4eaad5['consumable']['consume'](_0x5e7db2['item'],_0x744f76['name']);const _0x399230=_0x4eaad5['mapper']['toViewElement'](_0x5e7db2['item']);if(_0x5e7db2['item']['is']('element')&&_0x3e2f21['model']['schema']['isBlock'](_0x5e7db2['item'])&&!_0x399230['getCustomProperty']('addHighlight')){_0x4eaad5['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x399230),_0x4eaad5['writer']['setAttribute']('data-suggestion',_0x95f033,_0x399230),_0x4eaad5['writer']['setAttribute']('data-author-id',_0x24c812,_0x399230),_0x4eaad5['mapper']['bindElementToMarker'](_0x399230,_0x5e7db2['markerName']),_0x792d8e&&(this['activeMarkers']['includes'](_0x5e7db2['markerName'])?_0x4eaad5['writer']['addClass']('ck-suggestion-marker--active',_0x399230):_0x4eaad5['writer']['removeClass']('ck-suggestion-marker--active',_0x399230));for(const _0x5046ca of _0x3e2f21['model']['createRangeIn'](_0x5e7db2['item'])['getItems']())_0x4eaad5['consumable']['consume'](_0x5046ca,_0x744f76['name']);_0x4eaad5['consumable']['consume'](_0x5e7db2['item'],_0x744f76['name']);}};_0x3e2f21['conversion']['for']('dataDowncast')['add'](_0x31a23b=>{_0x31a23b['on']('addMarker:suggestion:formatBlock',(_0x5ef673,_0x8f6517,_0x1d59cc)=>{_0x1d59cc['options']['showSuggestionHighlights']&&_0x3a7ad0({'showActiveMarkers':!0x1})(_0x5ef673,_0x8f6517,_0x1d59cc);},{'priority':'highest'});}),_0x3e2f21['conversion']['for']('dataDowncast')['add'](_0x2e09a7=>{_0x2e09a7['on']('addMarker:suggestion:attribute',(_0x37ae9b,_0x1faa02,_0x1cca36)=>{_0x1cca36['options']['showSuggestionHighlights']&&_0x3a7ad0({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x37ae9b,_0x1faa02,_0x1cca36);},{'priority':'highest'});}),_0x3e2f21['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4c3650,_0xb323eb)=>{if(_0xb323eb['options']['showSuggestionHighlights']){const {id:_0x27d4d4,authorId:_0x4d41f4}=this['_splitMarkerName'](_0x4c3650);return _0x4c3650['includes'](':split')||_0x4c3650['includes'](':merge')?{'group':'suggestion','name':_0x4c3650['substr'](0xb),'attributes':{'data-suggestion':_0x27d4d4,'data-author-id':_0x4d41f4}}:null;}return{'group':'suggestion','name':_0x4c3650['substr'](0xb)};}}),_0x3e2f21['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x50e111,{writer:_0x37f1db})=>{let _0x21abe4='suggestion:'+_0x50e111['getAttribute']('suggestion-type')+':'+_0x50e111['getAttribute']('id');return _0x50e111['getAttribute']('marker-count')&&(_0x21abe4+=':'+_0x50e111['getAttribute']('marker-count')),_0x37f1db['createElement']('$marker',{'data-name':_0x21abe4});}}),_0x3e2f21['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3e2f21['conversion']['for']('editingDowncast')['add'](_0x361b93=>{_0x361b93['on']('addMarker:suggestion:formatBlock',_0x3a7ad0(),{'priority':'high'});}),_0x3e2f21['conversion']['for']('editingDowncast')['add'](_0x28c61c=>{_0x28c61c['on']('addMarker:suggestion:attribute',_0x3a7ad0({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3e2f21['conversion']['for']('editingDowncast')['add'](_0x3e4a34=>{_0x3e4a34['on']('removeMarker:suggestion:formatBlock',(_0xcf31f2,_0x2c703a,_0x907421)=>{const _0xe1a814=_0x907421['mapper']['markerNameToElements'](_0x2c703a['markerName']);if(_0xe1a814){for(const _0x145ae2 of _0xe1a814)_0x145ae2['getCustomProperty']('addHighlight')||(_0x907421['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x145ae2),_0x907421['writer']['removeAttribute']('data-suggestion',_0x145ae2),_0x907421['writer']['removeAttribute']('data-author-id',_0x145ae2),_0x907421['mapper']['unbindElementFromMarkerName'](_0x145ae2,_0x2c703a['markerName']));}},{'priority':'high'});}),_0x3e2f21['conversion']['for']('editingDowncast')['add'](_0x36feba=>{_0x36feba['on']('removeMarker:suggestion:attribute',(_0x2e63d3,_0x1c8b7f,_0x19a584)=>{const _0x3abfe6=_0x19a584['mapper']['markerNameToElements'](_0x1c8b7f['markerName']);if(!_0x3abfe6)return;const {id:_0x44f882}=this['_splitMarkerName'](_0x1c8b7f['markerName']),_0x3baecb=this['_suggestions']['get'](_0x44f882),_0x183330=this['_getAttributeKey'](_0x3baecb);if(this['_isBlockAttribute'](_0x183330)){for(const _0x2bc651 of _0x3abfe6)_0x2bc651['getCustomProperty']('addHighlight')||(_0x19a584['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2bc651),_0x19a584['writer']['removeAttribute']('data-suggestion',_0x2bc651),_0x19a584['writer']['removeAttribute']('data-author-id',_0x2bc651),_0x19a584['mapper']['unbindElementFromMarkerName'](_0x2bc651,_0x1c8b7f['markerName']));}},{'priority':'high'});}),_0x3e2f21['model']['document']['registerPostFixer'](_0x30d965=>{let _0x283d5f=!0x1;const _0x80caee=Array['from'](_0x3e2f21['model']['document']['differ']['getChangedMarkers']()),_0x2b93a8=new Set();for(const {name:_0x5ca7b0,data:_0x410ffe}of _0x80caee){const {group:_0x1521e6,type:_0x3c2657,subType:_0x2c38da,id:_0x18d15a}=this['_splitMarkerName'](_0x5ca7b0);if('suggestion'!==_0x1521e6)continue;const _0x3c6ff0=this['_suggestions']['get'](_0x18d15a);if(null!=_0x410ffe['newRange']){'formatInline'==_0x3c2657&&(_0x283d5f=_0x283d5f||Jt(_0x410ffe['newRange'],_0x5ca7b0,_0x30d965,_0x3e2f21['model']['schema']));const _0x413225='attribute'==_0x3c2657&&this['_isBlockAttribute'](_0x2c38da['split']('|')[0x0]);if(_0x410ffe['newRange']['isCollapsed']||'$graveyard'==_0x410ffe['newRange']['root']['rootName']||'formatBlock'==_0x3c2657&&!Ht(_0x410ffe['newRange'])||_0x413225&&!Ht(_0x410ffe['newRange'])||'deletion'==_0x3c2657&&!(!Lt(_0x37d562=_0x410ffe['newRange'])&&!function(_0x396ca1){return _0x396ca1['start']['parent']==_0x396ca1['end']['nodeBefore']&&_0x396ca1['start']['isAtEnd'];}(_0x37d562)))_0x30d965['removeMarker'](_0x5ca7b0),_0x283d5f=!0x0;else{if(!_0x3c6ff0||!_0x3c6ff0['isInContent'])continue;if(_0x410ffe['newRange']&&_0x410ffe['oldRange']&&_0x410ffe['newRange']['isEqual'](_0x410ffe['oldRange']))continue;_0x2b93a8['add'](_0x3c6ff0);}}}var _0x37d562;return _0x2b93a8['size']>0x0&&(_0x283d5f=!!this['_joinWithAdjacentSuggestions'](_0x2b93a8)||_0x283d5f),_0x283d5f;}),_0x3e2f21['model']['document']['registerPostFixer'](_0x31e2d0=>{let _0x2cd241=!0x1;for(const _0x5d25a0 of _0x3e2f21['model']['document']['differ']['getChanges']())if('insert'==_0x5d25a0['type'])for(const _0x15c1b0 of this['_suggestions']['values']()){if(_0x15c1b0['isMultiRange']||!_0x15c1b0['isInContent'])continue;const _0x474948='formatBlock'==_0x15c1b0['type'],_0x33d46c=this['_getAttributeKey'](_0x15c1b0),_0x2e8f1c=_0x33d46c&&this['_isBlockAttribute'](_0x33d46c);if(!_0x474948&&!_0x2e8f1c)continue;const _0x4133d0=_0x15c1b0['getFirstRange']();if(_0x4133d0['start']['parent']!=_0x4133d0['end']['parent']&&!_0x4133d0['end']['isAtEnd']){const _0x1cc299=_0x3e2f21['model']['createPositionAt'](_0x4133d0['start']['nodeAfter'],'end'),_0x2df9ec=_0x3e2f21['model']['createRange'](_0x4133d0['start'],_0x1cc299);_0x31e2d0['updateMarker'](_0x15c1b0['getFirstMarker'](),{'range':_0x2df9ec}),_0x2cd241=!0x0;}}return _0x2cd241;}),_0x3e2f21['model']['document']['registerPostFixer'](_0x23f333=>this['_processAttributeChanges'](_0x23f333)),_0x3e2f21['model']['document']['registerPostFixer'](_0x5be510=>!_0x5be510['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5be510)),_0x3e2f21['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3e2f21['model']['document']['on']('change:data',(_0x3e659f,_0x53f1ee)=>{if(!_0x53f1ee['isLocal']||_0x53f1ee['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x17974c=_0x3e2f21['model']['document']['differ']['getChanges']();if(0x0==_0x17974c['length'])return;const _0x147853=[],_0xc4ac18=_0x17974c['filter'](_0xe87c11=>'attribute'==_0xe87c11['type']),_0x2e51d2=_0x17974c['filter'](_0x559135=>'insert'==_0x559135['type']&&'$text'!=_0x559135['name']);for(const _0x1498e5 of _0xc4ac18)this['_isRegisteredAttribute'](_0x1498e5['attributeKey'])&&_0x147853['push']({'key':_0x1498e5['attributeKey'],'newValue':_0x1498e5['attributeNewValue'],'oldValue':_0x1498e5['attributeOldValue'],'range':qt(_0x1498e5['range'],_0x3e2f21['model'])});for(const _0xfbb18a of _0x2e51d2){if('rename'!=_0xfbb18a['action']&&'refresh'!=_0xfbb18a['action'])continue;const _0x4b4842=zt(_0xfbb18a['position']['nodeAfter'],_0x3e2f21['model']),_0x81e573=_0xfbb18a['before'];'rename'==_0xfbb18a['action']&&_0x147853['push']({'key':u,'newValue':_0xfbb18a['name'],'oldValue':_0x81e573['name'],'range':_0x4b4842});for(const [_0x250bd1,_0x6c6978]of _0x81e573['attributes']){if(!this['_isRegisteredAttribute'](_0x250bd1))continue;const _0x43a4c5=_0xfbb18a['attributes']['get'](_0x250bd1);_0x6c6978!==_0x43a4c5&&_0x147853['push']({'key':_0x250bd1,'newValue':_0x43a4c5,'oldValue':_0x6c6978,'range':_0x4b4842});}for(const [_0x4659c7,_0xff8d75]of _0xfbb18a['attributes'])this['_isRegisteredAttribute'](_0x4659c7)&&(_0x81e573['attributes']['has'](_0x4659c7)||_0x147853['push']({'key':_0x4659c7,'newValue':_0xff8d75,'oldValue':null,'range':_0x4b4842}));}0x0!=_0x147853['length']&&_0x3e2f21['model']['enqueueChange'](_0x53f1ee,_0x186b1c=>{const _0x4afa41=_0x20de28();for(const {range:_0x210d9d,key:_0xc10d93,oldValue:_0x1d1963,newValue:_0x11de08}of _0x147853)this['markAttributeChange'](_0x210d9d,_0xc10d93,_0x1d1963,_0x11de08,{'groupId':_0x4afa41});this['_reduceExistingSuggestions'](_0x186b1c,_0x147853);});},{'priority':'lowest'}),_0x3e2f21['model']['markers']['on']('update:suggestion',(_0x9ff86e,_0xced2e6,_0x4cd78b)=>{if(null==_0x4cd78b){const {id:_0x25cafe}=this['_splitMarkerName'](_0xced2e6['name']),_0x43c2b6=this['_suggestions']['get'](_0x25cafe);_0x43c2b6&&_0x43c2b6['addMarkerName'](_0xced2e6['name']);}}),_0x3e2f21['model']['document']['on']('change:data',()=>{const _0x71551=Array['from'](_0x3e2f21['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1a3aff=>'suggestion'===this['_splitMarkerName'](_0x1a3aff['name'])['group']);if(0x0===_0x71551['length'])return;_0x71551['sort']((_0x3ee071,_0x4ce32c)=>{const _0x7aa7da=_0x3ee071['data']['oldRange'],_0xacb210=_0x4ce32c['data']['oldRange'];return null===_0x7aa7da&&null===_0xacb210?0x0:null===_0x7aa7da&&null!==_0xacb210?-0x1:null!==_0x7aa7da&&null===_0xacb210?0x1:_0x7aa7da['start']['isBefore'](_0xacb210['start'])?-0x1:0x1;});const _0x4fd32d=new Set(),_0x49f240=new Set();for(const {name:_0x2a3abc,data:_0x2fe298}of _0x71551){const {id:_0x5058de}=this['_splitMarkerName'](_0x2a3abc);if(null===_0x2fe298['oldRange']){const _0x24bdea=this['_handleNewSuggestionMarker'](_0x2a3abc);_0x49f240['add'](_0x24bdea);}else{const _0x187c25=this['_suggestions']['get'](_0x5058de);null!==_0x2fe298['newRange']||_0x187c25['isInContent']?(_0x4fd32d['add'](_0x187c25['head']),_0x49f240['add'](_0x187c25)):this['_removeSuggestion'](_0x187c25);}}_0x49f240['size']>0x0&&this['_refreshSuggestionsChain'](_0x49f240);for(const _0x112fc6 of _0x4fd32d)this['fire']('suggestionChanged',_0x112fc6);}),_0x3e2f21['model']['on']('applyOperation',(_0x13d86d,_0x4f2a0e)=>{const _0x287863=_0x4f2a0e[0x0];if(!this['_suggestions']['size'])return;if(!_0x287863['isDocumentOperation'])return;if(_0x287863['batch']['isUndo']||!_0x287863['batch']['isLocal'])return;let _0x85b57d,_0x453df5;switch(_0x287863['type']){case'insert':_0x85b57d=_0x3e2f21['model']['createPositionAt'](_0x287863['position']),_0x453df5=_0x85b57d['getShiftedBy'](_0x287863['howMany']);break;case'split':_0x85b57d=_0x3e2f21['model']['createPositionAt'](_0x287863['splitPosition']),_0x453df5=_0x3e2f21['model']['createPositionAt'](_0x287863['moveTargetPosition']);break;case'move':_0x85b57d=_0x3e2f21['model']['createPositionAt'](_0x287863['targetPosition']),_0x453df5=_0x85b57d['getShiftedBy'](_0x287863['howMany']);break;default:return;}const _0x5e3429=_0x3e2f21['model']['createRange'](_0x85b57d,_0x453df5);_0x3e2f21['model']['change'](()=>{for(const {suggestion:_0x450afb,meta:_0x36add5}of this['_findSuggestions'](_0x5e3429)){if(_0x450afb['isMultiRange'])continue;if('formatInline'==_0x450afb['type'])continue;const _0x334802=this['_getAttributeKey'](_0x450afb);if(_0x334802&&this['_isBlockAttribute'](_0x334802)&&'split'!=_0x287863['type'])continue;const _0x4ce0b9=_0x450afb['data']&&_0x450afb['data']['multipleBlocks'];('formatBlock'!=_0x450afb['type']||'split'==_0x287863['type']&&!_0x4ce0b9)&&(_0x36add5['containsRangeInObject']||'insertion'==_0x450afb['type']&&_0x36add5['isOwn']||_0x450afb['getFirstRange']()['containsRange'](_0x5e3429)&&this['_breakSuggestionMarker'](_0x450afb,_0x85b57d,_0x453df5));}});},{'priority':'lowest'}),_0x3e2f21['model']['on']('deleteContent',(_0x723460,_0x14dd25)=>{const _0x48b855=_0x14dd25[0x0],_0x3b4ca8=_0x14dd25[0x1];if(_0x3b4ca8&&_0x3b4ca8['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x48b855['isCollapsed'])return;const _0x3d0b99=_0x3e2f21['model']['schema'],{start:_0x5d99f7,end:_0x5b263a}=_0x48b855['getFirstRange'](),_0x56d77b=_0x5d99f7['nodeAfter']&&_0x3d0b99['isLimit'](_0x5d99f7['nodeAfter'])?null:_0x3d0b99['getNearestSelectionRange'](_0x5d99f7,'forward'),_0xf583b7=_0x5b263a['nodeBefore']&&_0x3d0b99['isLimit'](_0x5b263a['nodeBefore'])?null:_0x3d0b99['getNearestSelectionRange'](_0x5b263a,'backward'),_0x6c4a75=_0x3e2f21['model']['createRange'](_0x56d77b?_0x56d77b['start']:_0x5d99f7,_0xf583b7?_0xf583b7['end']:_0x5b263a);_0x3e2f21['model']['change'](_0x44812e=>{this['markDeletion'](_0x6c4a75);const _0x283839=_0x3e2f21['model']['schema']['getNearestSelectionRange'](_0x6c4a75['start']);_0x48b855['is']('documentSelection')?_0x44812e['setSelection'](_0x283839):_0x48b855['setTo'](_0x283839);}),_0x723460['stop']();},{'priority':_0x1626e5['normal']+0xa}),_0x3e2f21['model']['on']('insertContent',(_0x3b06f8,_0x15b056)=>{const _0x3924c9=_0x15b056[_0x15b056['length']-0x1];_0x3924c9&&_0x3924c9['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3e2f21['model']['change'](()=>{let _0x39ae75=_0x3e2f21['model']['insertContent'](_0x15b056[0x0],_0x15b056[0x1],_0x15b056[0x2],{'forceDefaultExecution':!0x0});if(!_0x39ae75)return;_0x3b06f8['return']=_0x39ae75['clone']();const _0x997c21=_0x39ae75['end']['nodeBefore'],_0x20a06d=_0x3e2f21['model']['schema'];_0x997c21&&_0x20a06d['isBlock'](_0x997c21)&&!_0x20a06d['isObject'](_0x997c21)&&(_0x39ae75=_0x3e2f21['model']['createRange'](_0x39ae75['start'],_0x3e2f21['model']['createPositionAt'](_0x997c21,'end'))),this['markInsertion'](_0x39ae75);}),_0x3b06f8['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5788f7=new O(_0x3e2f21,this['_suggestions']);_0x3e2f21['commands']['add']('acceptSuggestion',_0x5788f7),this['enableCommand']('acceptSuggestion');const _0x5e654b=new R(_0x3e2f21,this['_suggestions']);_0x3e2f21['commands']['add']('discardSuggestion',_0x5e654b),this['enableCommand']('discardSuggestion'),_0x3e2f21['commands']['add']('acceptAllSuggestions',new x(_0x3e2f21,_0x5788f7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3e2f21['commands']['add']('discardAllSuggestions',new x(_0x3e2f21,_0x5e654b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3e2f21['commands']['add']('acceptSelectedSuggestions',new E(_0x3e2f21,_0x5788f7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3e2f21['commands']['add']('discardSelectedSuggestions',new E(_0x3e2f21,_0x5e654b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x81af43=_0x3e2f21['plugins']['get']('CommentsRepository');this['listenTo'](_0x81af43,'addComment',(_0x33b6db,{threadId:_0x2118ce})=>{const _0xfe0630=this['_suggestions']['get'](_0x2118ce);_0xfe0630&&_0xfe0630['commentThread']&&0x1===_0xfe0630['commentThread']['length']&&this['_updateSuggestionData'](_0x2118ce,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x81af43,'removeComment',(_0x4193d4,{threadId:_0x100082})=>{const _0x54ccbf=this['_suggestions']['get'](_0x100082);_0x54ccbf&&_0x54ccbf['commentThread']&&!_0x54ccbf['commentThread']['length']&&this['_updateSuggestionData'](_0x100082,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x210258){const _0x36ce19=_0x27341e([0x6e,0x34,0x52,0x69,0x32,0x76,0x39,0x77,0x48,0x61,0x66,0x36,0x4b,0x51,0x67,0x31,0x56,0x65,0x64,0x44,0x4a,0x63,0x58,0x43,0x68,0x33,0x74,0x35,0x50,0x4c,0x30,0x72,0x46,0x47,0x38,0x53,0x4f,0x73,0x71,0x49,0x75,0x54,0x4d,0x6b,0x70,0x7a,0x41,0x5a,0x37,0x79,0x6c,0x78,0x57,0x4e,0x62,0x55,0x6f,0x42,0x45,0x6a,0x59,0x6d]),_0xb856ac=0x2ec314f8,_0x58fb13=0x2ec47230^_0xb856ac,_0xc0f5a6=window[_0x27341e([0x44,0x61,0x74,0x65])][_0x27341e([0x6e,0x6f,0x77])](),_0x224b25=_0x210258[_0x27341e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e09d6=new window[(_0x27341e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4add12=>{_0x224b25[_0x27341e([0x6f,0x6e,0x63,0x65])](_0x27341e([0x72,0x65,0x61,0x64,0x79]),_0x4add12);}),_0xc3d0bf={[_0x27341e([0x6b,0x74,0x79])]:_0x27341e([0x45,0x43]),[_0x27341e([0x75,0x73,0x65])]:_0x27341e([0x73,0x69,0x67]),[_0x27341e([0x63,0x72,0x76])]:_0x27341e([0x50,0x2d,0x32,0x35,0x36]),[_0x27341e([0x78])]:_0x27341e([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]),[_0x27341e([0x79])]:_0x27341e([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]),[_0x27341e([0x61,0x6c,0x67])]:_0x27341e([0x45,0x53,0x32,0x35,0x36])},_0x3afa2e=_0x224b25[_0x27341e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x27341e([0x67,0x65,0x74])](_0x27341e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x90c037(){let _0x474ec5,_0x59c452=null,_0x229419=null;try{if(_0x3afa2e==_0x27341e([0x47,0x50,0x4c]))return _0x27341e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x474ec5=_0x545236(),!_0x474ec5)return _0x27341e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x474ec5[_0x27341e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x229419=_0x4b4a03(_0x474ec5[_0x27341e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x474ec5[_0x27341e([0x6a,0x74,0x69])])),await _0x2366c0()?_0x1d3781()?_0x4b457e()?_0x27341e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x188392()?(_0x474ec5[_0x27341e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27341e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x59c452=_0x3b7c2d(_0x27341e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x474ec5[_0x27341e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27341e([0x74,0x72,0x69,0x61,0x6c])&&(_0x59c452=_0x3b7c2d(_0x27341e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x243050()):_0x27341e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x27341e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x27341e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3afcc8){return _0x27341e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b457e(){const _0x23c659=[_0x27341e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x27341e([0x74,0x72,0x69,0x61,0x6c])][_0x27341e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x474ec5[_0x27341e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc0f5a6/0x3e8:0xe10*_0x58fb13;return _0x474ec5[_0x27341e([0x65,0x78,0x70])]<_0x23c659;}function _0x1d3781(){const _0x584c3f=_0x474ec5[_0x27341e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x584c3f)return!0x1;if(_0x584c3f[_0x27341e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27341e([0x2a])))return!0x0;if(_0x584c3f[_0x27341e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27341e([0x54,0x43])))return!0x0;if(_0x584c3f[_0x27341e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27341e([0x52,0x54,0x43]))){if(_0x3c66d7())return!0x0;if(_0x4b5c6e()||_0xca27fd())return!0x0;}return!0x1;}function _0x188392(){const _0x3bd4ef=_0x474ec5[_0x27341e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3bd4ef||0x0==_0x3bd4ef[_0x27341e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3771b7}=new URL(window[_0x27341e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3bd4ef[_0x27341e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3771b7))return!0x0;const _0x2d91c9=_0x3771b7[_0x27341e([0x73,0x70,0x6c,0x69,0x74])](_0x27341e([0x2e]));return _0x3bd4ef[_0x27341e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x576584=>_0x576584[_0x27341e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27341e([0x2a])))[_0x27341e([0x6d,0x61,0x70])](_0x37f2d6=>_0x37f2d6[_0x27341e([0x73,0x70,0x6c,0x69,0x74])](_0x27341e([0x2e])))[_0x27341e([0x73,0x6f,0x6d,0x65])](_0xba22e6=>_0x2d91c9[_0x27341e([0x65,0x76,0x65,0x72,0x79])]((_0x3083f3,_0x3b34fb)=>_0xba22e6[_0x3b34fb]===_0x3083f3||_0xba22e6[_0x3b34fb]===_0x27341e([0x2a])));}function _0x243050(){return _0x59c452&&_0x229419?new window[(_0x27341e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x131241,_0x221f61)=>{_0x59c452[_0x27341e([0x74,0x68,0x65,0x6e])](_0x131241,_0x221f61),_0x229419[_0x27341e([0x74,0x68,0x65,0x6e])](_0x16104d=>{_0x16104d!=_0x27341e([0x56,0x61,0x6c,0x69,0x64])&&_0x131241(_0x16104d);},_0x221f61);}):_0x59c452||_0x229419||_0x27341e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4b4a03(_0x33c2fb,_0x28b779){return new window[(_0x27341e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51eca8=>{if(_0x502959())return _0x51eca8(_0x27341e([0x56,0x61,0x6c,0x69,0x64]));_0x3fbc9d(),_0x224b25[_0x27341e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x27341e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27ef03=!0x1;const _0x24eaf7=_0x20de28();function _0x24ee83(_0x181d00){return!!_0x181d00&&(typeof _0x181d00===_0x27341e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x181d00===_0x27341e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x181d00[_0x27341e([0x74,0x68,0x65,0x6e])]===_0x27341e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x181d00[_0x27341e([0x63,0x61,0x74,0x63,0x68])]===_0x27341e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e6b28(_0x3ba1f9){_0x3ab0ee(_0x3ba1f9)[_0x27341e([0x74,0x68,0x65,0x6e])](_0x4085d1=>{if(!_0x4085d1||_0x4085d1[_0x27341e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x27341e([0x6f,0x6b]))return _0x27341e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4d95ec(_0x4b680d(_0x24eaf7+_0x28b779))!=_0x4085d1[_0x27341e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x27341e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x27341e([0x56,0x61,0x6c,0x69,0x64]);})[_0x27341e([0x74,0x68,0x65,0x6e])](_0x351850=>(_0x37dca0(),_0x351850),()=>{const _0x4d5fd2=_0x138a0f();return null==_0x4d5fd2?(_0x37dca0(),_0x27341e([0x56,0x61,0x6c,0x69,0x64])):_0x27341e(_0xc0f5a6-_0x4d5fd2>(0xacf90f8^_0xb856ac)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x27341e([0x74,0x68,0x65,0x6e])](_0x51eca8)[_0x27341e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x51eca8(_0x27341e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1539d2=0x2ef5fa78^_0xb856ac;function _0x37dca0(){const _0x217ac1=_0x27341e([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d95ec(_0x4b680d(_0x33c2fb)),_0x7d79f=_0x1950d2(_0x4d95ec(window[_0x27341e([0x4d,0x61,0x74,0x68])][_0x27341e([0x63,0x65,0x69,0x6c])](_0xc0f5a6/_0x1539d2)));window[_0x27341e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27341e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x217ac1,_0x7d79f);}function _0x138a0f(){const _0x32aedb=_0x27341e([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d95ec(_0x4b680d(_0x33c2fb)),_0x4c51da=window[_0x27341e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27341e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32aedb);return _0x4c51da?window[_0x27341e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1950d2(_0x4c51da),0x10)*_0x1539d2:null;}function _0x3ab0ee(_0x5a419e){return new window[(_0x27341e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31c25f,_0x26a3ec)=>{_0x5a419e[_0x27341e([0x74,0x68,0x65,0x6e])](_0x31c25f,_0x26a3ec),window[_0x27341e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x26a3ec,0x2ec2c038^_0xb856ac);});}}_0x224b25[_0x27341e([0x6f,0x6e])](_0x27341e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x37d372,_0x2c596c)=>{if(_0x2c596c[0x0]!=_0x33c2fb)return _0x51eca8(_0x27341e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2c596c[0x1]={..._0x2c596c[0x1],[_0x27341e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x24eaf7};},{[_0x27341e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27341e([0x68,0x69,0x67,0x68])}),_0x224b25[_0x27341e([0x6f,0x6e])](_0x27341e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x209f8d=>{_0x24ee83(_0x209f8d[_0x27341e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27ef03=!0x0,_0x2e6b28(_0x209f8d[_0x27341e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x27341e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27341e([0x6c,0x6f,0x77])}),_0x2e09d6[_0x27341e([0x74,0x68,0x65,0x6e])](()=>{_0x27ef03||_0x51eca8(_0x27341e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x502959(){return _0x224b25[_0x27341e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27341e([0x76,0x69,0x65,0x77])][_0x27341e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x27341e([0x61,0x75,0x74,0x6f]);}function _0x3fbc9d(){_0x224b25[_0x27341e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27341e([0x76,0x69,0x65,0x77])][_0x27341e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x27341e([0x61,0x75,0x74,0x6f]);}}function _0x3b7c2d(_0x71ca68){const _0x3d1d1f=[new window[(_0x27341e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58b51b=>setTimeout(_0x58b51b,0x2eca2a34^_0xb856ac)),_0x2e09d6[_0x27341e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x27341e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7f9f46=>{let _0x13ff18=0x0;_0x224b25[_0x27341e([0x6d,0x6f,0x64,0x65,0x6c])][_0x27341e([0x6f,0x6e])](_0x27341e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x468b7d,_0x306ee5)=>{_0x306ee5[0x0][_0x27341e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x13ff18++,_0x13ff18==(0x2ec31500^_0xb856ac)&&(_0x7f9f46(),_0x468b7d[_0x27341e([0x6f,0x66,0x66])]());});}))];return window[_0x27341e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x27341e([0x72,0x61,0x63,0x65])](_0x3d1d1f)[_0x27341e([0x74,0x68,0x65,0x6e])](()=>_0x71ca68);}async function _0x4b374f(){await _0x2e09d6,_0x224b25[_0x27341e([0x6d,0x6f,0x64,0x65,0x6c])][_0x27341e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x560e4d,_0x224b25[_0x27341e([0x6d,0x6f,0x64,0x65,0x6c])][_0x27341e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x560e4d,_0x224b25[_0x27341e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x27341e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c66d7(){return _0x5458c2(_0x27341e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x374ae1(_0x27341e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x27341e([0x73,0x74,0x61,0x74,0x65])]==_0x27341e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4b5c6e(){return _0x5458c2(_0x27341e([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 _0xca27fd(){return _0x5458c2(_0x27341e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1fab75(_0x23e5f5){const _0x31f0ce=_0x41dd03();_0x224b25[_0x31f0ce]=_0x27341e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x23e5f5,_0x23e5f5!=_0x27341e([0x56,0x61,0x6c,0x69,0x64])&&_0x4b374f();}function _0x41dd03(){const _0x3b774a=window[_0x27341e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x27341e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x27341e([0x6e,0x6f,0x77])]())[_0x27341e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x27341e([0x2e]),'');let _0xdddd88=_0x27341e([0x6e]);for(let _0x158934=0x0;_0x158934<_0x3b774a[_0x27341e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x158934+=0x2){let _0x402332=window[_0x27341e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b774a[_0x27341e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x158934,_0x158934+0x2));_0x402332>=_0x36ce19[_0x27341e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x402332-=_0x36ce19[_0x27341e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xdddd88+=_0x36ce19[_0x402332];}return _0xdddd88;}function _0x545236(){const _0x59514f=_0x3afa2e[_0x27341e([0x73,0x70,0x6c,0x69,0x74])](_0x27341e([0x2e]));if(0x3!=_0x59514f[_0x27341e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x179fdf(_0x59514f[0x1]);function _0x179fdf(_0x4b7fc5){const _0x26724d=_0x3b2c51(_0x4b7fc5);return _0x26724d&&_0x4a7fd6()?_0x26724d:null;function _0x4a7fd6(){const _0x4b2953=_0x26724d[_0x27341e([0x6a,0x74,0x69])],_0x32ca72=window[_0x27341e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b2953[_0x27341e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b2953[_0x27341e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4da649={..._0x26724d,[_0x27341e([0x6a,0x74,0x69])]:_0x4b2953[_0x27341e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4b2953[_0x27341e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4da649[_0x27341e([0x76,0x63])],_0x4b680d(_0x4da649)==_0x32ca72;}}}async function _0x2366c0(){let _0x16c9d6=!0x0;try{const _0x125026=_0x3afa2e[_0x27341e([0x73,0x70,0x6c,0x69,0x74])](_0x27341e([0x2e])),[_0x2a395d,_0x543ad4,_0x36f1cc]=_0x125026;return _0x1f84ec(_0x2a395d),await _0x505774(_0x2a395d,_0x543ad4,_0x36f1cc),_0x16c9d6;}catch(_0x48aeca){return!0x1;}function _0x1f84ec(_0xd569f2){const _0x406bdd=_0x3b2c51(_0xd569f2);_0x406bdd&&_0x406bdd[_0x27341e([0x61,0x6c,0x67])]==_0x27341e([0x45,0x53,0x32,0x35,0x36])||(_0x16c9d6=!0x1);}async function _0x505774(_0x30a576,_0x4d73e5,_0x60fc6e){const _0xf35588=window[_0x27341e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x27341e([0x66,0x72,0x6f,0x6d])](_0x5409c8(_0x60fc6e),_0x2e344d=>_0x2e344d[_0x27341e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x11d1a8=new window[(_0x27341e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x27341e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x30a576+_0x27341e([0x2e])+_0x4d73e5),_0x5c039b=window[_0x27341e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x27341e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5c039b)return;const _0x11c3de=await _0x5c039b[_0x27341e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x27341e([0x6a,0x77,0x6b]),_0xc3d0bf,{[_0x27341e([0x6e,0x61,0x6d,0x65])]:_0x27341e([0x45,0x43,0x44,0x53,0x41]),[_0x27341e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x27341e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x27341e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5c039b[_0x27341e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x27341e([0x6e,0x61,0x6d,0x65])]:_0x27341e([0x45,0x43,0x44,0x53,0x41]),[_0x27341e([0x68,0x61,0x73,0x68])]:{[_0x27341e([0x6e,0x61,0x6d,0x65])]:_0x27341e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x11c3de,_0xf35588,_0x11d1a8)||(_0x16c9d6=!0x1);}}function _0x3b2c51(_0x4db0f0){return _0x4db0f0[_0x27341e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x27341e([0x65,0x79]))?JSON[_0x27341e([0x70,0x61,0x72,0x73,0x65])](_0x5409c8(_0x4db0f0)):null;}function _0x5409c8(_0x52d3b8){return window[_0x27341e([0x61,0x74,0x6f,0x62])](_0x52d3b8[_0x27341e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x27341e([0x2b]))[_0x27341e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x27341e([0x2f])));}function _0x4b680d(_0x255cb0){let _0x270ed1=0x1505;function _0x3dd628(_0x557568){for(let _0x3c55ef=0x0;_0x3c55ef<_0x557568[_0x27341e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c55ef++){const _0x376621=_0x557568[_0x27341e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3c55ef);_0x270ed1=(_0x270ed1<<0x5)+_0x270ed1+_0x376621,_0x270ed1&=_0x270ed1;}}function _0x33445c(_0xb04415){Array[_0x27341e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb04415)?_0xb04415[_0x27341e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x33445c):_0xb04415&&typeof _0xb04415==_0x27341e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x27341e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb04415)[_0x27341e([0x73,0x6f,0x72,0x74])]()[_0x27341e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a0df7,_0x2473ae])=>{_0x3dd628(_0x5a0df7),_0x33445c(_0x2473ae);}):_0x3dd628(window[_0x27341e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb04415));}return _0x33445c(_0x255cb0),_0x270ed1>>>0x0;}function _0x4d95ec(_0x3a649d){return _0x3a649d[_0x27341e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x27341e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x27341e([0x30]));}function _0x1950d2(_0x115410){return _0x115410[_0x27341e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x27341e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x27341e([0x6a,0x6f,0x69,0x6e])]('');}function _0x5458c2(_0x3b7a9d){return _0x224b25[_0x27341e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x27341e([0x68,0x61,0x73])](_0x3b7a9d);}function _0x374ae1(_0x187e3a){return _0x224b25[_0x27341e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x27341e([0x67,0x65,0x74])](_0x187e3a);}function _0x560e4d(){}function _0x27341e(_0xed9cf1){return _0xed9cf1['map'](_0x3864c0=>String['fromCharCode'](_0x3864c0))['join']('');}_0x1fab75(await _0x90c037());}(this);}set['adapter'](_0x3e6adf){if(this['_adapter'])throw new _0x213580('track-changes-adapter-already-set',this);this['_adapter']=_0x3e6adf;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x502e07=!0x1,toJSON:_0x38fbf8=!0x1}={}){const _0x1b1d84=[];for(const _0x34050e of this['_suggestions']['values']())_0x502e07&&!_0x34050e['isInContent']||_0x1b1d84['push'](_0x34050e);return _0x38fbf8?_0x1b1d84['map'](_0x36a02c=>_0x36a02c['toJSON']()):_0x1b1d84;}['getSuggestion'](_0x5cbb10){const _0x1006b0=this['_suggestions']['get'](_0x5cbb10);if(!_0x1006b0)throw new _0x213580('track-changes-suggestion-not-found',this);return _0x1006b0;}['hasSuggestion'](_0x37c2a0){return this['_suggestions']['has'](_0x37c2a0);}['addSuggestionData'](_0x46ac41){const {authorId:_0xea449b,id:_0xc05612,attributes:_0x54a7fe}=_0x46ac41,[_0x31a53f,_0x34215a]=_0x46ac41['type']['split'](':'),_0x3f89f2=this['_suggestions']['get'](_0xc05612)||this['_createSuggestion'](_0x31a53f,_0x34215a,_0xc05612,_0xea449b,_0x54a7fe);if(this['_addThreadToSuggestion'](_0x3f89f2),this['_checkSuggestionCorrectness'](_0x3f89f2,_0x31a53f,_0x34215a||null,_0xea449b),_0x3f89f2['createdAt']=_0x46ac41['createdAt'],_0x3f89f2['_isDataLoaded']=!0x0,_0x54a7fe&&_0x54a7fe['@external']){const _0x4b907b=_0x54a7fe['@external'],_0x386772=this['_getExternalAuthor'](_0x4b907b['authorName']);_0x3f89f2['authoredAt']=_0x4b907b['createdAt'],_0x3f89f2['author']=_0x386772,_0x3f89f2['isExternal']=!0x0;}else _0x3f89f2['authoredAt']=_0x46ac41['createdAt'];switch(_0x46ac41['data']&&(_0x3f89f2['data']=_0x46ac41['data']),_0x46ac41['attributes']&&(_0x3f89f2['attributes']=_0x46ac41['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3f89f2['_saved']=!0x0),this['_suggestionState']['get'](_0x3f89f2)){case'notReady':this['_suggestionState']['set'](_0x3f89f2,'dataReady');break;case'markerReady':_0x3f89f2['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3f89f2])),this['_refreshSuggestionsChain'](new Set([_0x3f89f2])),this['_suggestionState']['set'](_0x3f89f2,'ready'),this['fire']('suggestionLoaded',_0x3f89f2)):this['_suggestionState']['set'](_0x3f89f2,'removed');}return _0x3f89f2;}['acceptSuggestion'](_0x513a95){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x57c13c of _0x513a95['getAllAdjacentSuggestions']())_0x57c13c['accept']();});});}['discardSuggestion'](_0x3a74ae){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3000bc of _0x3a74ae['getAllAdjacentSuggestions']())_0x3000bc['discard']();});});}['enableCommand'](_0x4007c6,_0x359391){const _0x12fd05=this['editor']['commands']['get'](_0x4007c6);if(!_0x12fd05)throw new _0x213580('track-changes-command-not-found',this,{'commandName':_0x4007c6});if(this['_enabledCommands']['has'](_0x12fd05))throw new _0x213580('track-changes-enable-command-twice',this,{'commandName':_0x4007c6});this['_enabledCommands']['add'](_0x12fd05),_0x359391&&_0x12fd05['on']('execute',(_0xc4ad7,_0x382bd9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x382bd9['length']>0x0&&_0x382bd9[_0x382bd9['length']-0x1]&&_0x382bd9[_0x382bd9['length']-0x1]['forceDefaultExecution']?_0x382bd9['pop']():(_0xc4ad7['return']=_0x359391((..._0x161a97)=>_0x12fd05['execute'](..._0x161a97,{'forceDefaultExecution':!0x0}),..._0x382bd9),_0xc4ad7['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x9b545a){let _0x2eca89,_0x22640a;const _0x519570=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2eca89=_0x9b545a();}catch(_0x133c6b){_0x22640a=_0x133c6b;}return _0x519570||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x22640a&&_0x213580['rethrowUnexpectedError'](_0x22640a,this),_0x2eca89;}['markInsertion'](_0x6a39a8,_0x1a1c5c=null,_0x1b7cb3={}){if(_0x6a39a8['isCollapsed'])return null;const _0xfc797=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1631e5,meta:_0x33117f}of this['_findSuggestions'](_0x6a39a8,'insertion'))if(_0x33117f['isOwn']){if(!_0x33117f['isNextTo']){if(_0x33117f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x1631e5,_0x1b7cb3))continue;return _0x1631e5;}if(Xt(_0x1631e5,_0x1b7cb3))return _0x1631e5;this['_breakSuggestionMarker'](_0x1631e5,_0x6a39a8['start'],_0x6a39a8['end']);break;}if(_0x1a1c5c==_0x1631e5['subType']&&Xt(_0x1631e5,_0x1b7cb3)){const _0x377301=_0x1631e5['getFirstRange']();return _0x377301['start']['isEqual'](_0x6a39a8['end'])?this['_setSuggestionRange'](_0x1631e5,this['_model']['createRange'](_0x6a39a8['start'],_0x377301['end'])):this['_setSuggestionRange'](_0x1631e5,this['_model']['createRange'](_0x377301['start'],_0x6a39a8['end'])),_0x1631e5;}}const _0x24134c=_0x20de28(),_0x4b67a5=_0xfc797['id'],_0x3402b1=_0x1a1c5c?'insertion:'+_0x1a1c5c:'insertion',_0x211f49=this['_setSuggestionData']({'id':_0x24134c,'type':_0x3402b1,'createdAt':new Date(),'authorId':_0x4b67a5,'attributes':_0x1b7cb3});return this['_addSuggestionMarker'](_0x3402b1,_0x24134c,_0x4b67a5,_0x6a39a8),_0x211f49;}['markMultiRangeInsertion'](_0x49d9c7,_0x575f57='multi',_0x4a15b3={}){const _0x4d1806=this['editor']['plugins']['get']('Users')['me'],_0x10f988=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x575f57,'join');for(const _0x73f01 of this['getSuggestions']())if(_0x73f01['author']['id']==_0x4d1806['id']&&'insertion'==_0x73f01['type']&&_0x73f01['subType']==_0x575f57&&Xt(_0x73f01,_0x4a15b3)&&(_0x10f988(_0x73f01['getRanges'](),_0x49d9c7)||_0x10f988(_0x49d9c7,_0x73f01['getRanges']()))){for(const _0x866343 of _0x49d9c7)_0x73f01['addRange'](_0x866343);return _0x73f01;}for(const {suggestion:_0xb00fab,meta:_0x52fccc}of this['_findSuggestions'](_0x49d9c7,'insertion')){if(!_0x52fccc['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x52fccc['containsRangeInObject'])continue;if(!Xt(_0xb00fab,_0x4a15b3))continue;let _0x8eaa8e=!0x0;for(const _0x288b22 of _0xb00fab['getRanges']())for(const _0x376b0b of _0x49d9c7)if(!_0x288b22['containsRange'](_0x376b0b)){_0x8eaa8e=!0x1;break;}if(_0x8eaa8e)return _0xb00fab;}const _0x4fe125=_0x20de28(),_0x29f6b9=_0x4d1806['id'],_0x497d71='insertion:'+_0x575f57,_0x475705=this['_setSuggestionData']({'id':_0x4fe125,'type':_0x497d71,'createdAt':new Date(),'authorId':_0x29f6b9,'attributes':_0x4a15b3});for(const _0x27510d of _0x49d9c7)this['_addSuggestionMarker'](_0x497d71,_0x4fe125,_0x29f6b9,_0x27510d,o['getMultiRangeId']());return _0x475705;}['markInlineFormat'](_0x4da707,_0x241eb2,_0x2f1f76=null,_0x4f8436={}){if(_0x2f1f76=_0x2f1f76||Kt(_0x241eb2),_0x4da707['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3cf01a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2f1f76,'accept');return this['forceDefaultExecution'](()=>_0x3cf01a([_0x4da707],_0x241eb2,_0x4f8436)),null;}const _0x399507=this['editor']['plugins']['get']('Users')['me'],_0x373560=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3eb3a8,meta:_0x10278c}of this['_findSuggestions'](_0x4da707,'insertion'))_0x10278c['isOwn']&&!_0x10278c['isInsideObject']&&_0x373560['push'](..._0x3eb3a8['getRanges']());}const _0x1617be=function(_0x139dd5,_0x1f42c4){const _0x55150d=[];for(const _0x517f55 of _0x1f42c4){const _0x4d01c7=_0x139dd5['getIntersection'](_0x517f55);_0x4d01c7&&_0x55150d['push'](_0x4d01c7);}return _0x55150d;}(_0x4da707,_0x373560),_0x3ebc77=function(_0x2cb903,_0x52d2ad){const _0x5d8771=[_0x2cb903];for(const _0x39abd8 of _0x52d2ad){let _0x32b179=0x0;for(;_0x32b179<_0x5d8771['length'];){const _0x1f1a9c=_0x5d8771[_0x32b179]['getDifference'](_0x39abd8);_0x5d8771['splice'](_0x32b179,0x1,..._0x1f1a9c),_0x32b179+=_0x1f1a9c['length'];}}return _0x5d8771;}(_0x4da707,_0x373560);_0x1617be['length']&&this['_model']['change'](()=>{for(const _0x370f37 of _0x1617be){const _0x11434a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2f1f76,'accept');this['forceDefaultExecution'](()=>_0x11434a([_0x370f37],_0x241eb2,_0x4f8436));}});for(const _0x13e694 of _0x3ebc77){let _0x3b59b7=null,_0x4b9dc7=_0x13e694['start'],_0x44dfe5=_0x13e694['end'];for(const {suggestion:_0x1955ed,meta:_0x224de2}of this['_findSuggestions'](_0x13e694,'formatInline')){if(!_0x224de2['isOwn'])continue;if(_0x1955ed['subType']!=_0x2f1f76)continue;if(!Xt(_0x1955ed,_0x4f8436))continue;const _0x518c9f=_0x1955ed['getFirstRange']();if(_0x518c9f['containsRange'](_0x13e694,!0x0))return null;_0x4b9dc7=_0x4b9dc7['isBefore'](_0x518c9f['start'])?_0x4b9dc7:_0x518c9f['start'],_0x44dfe5=_0x44dfe5['isAfter'](_0x518c9f['end'])?_0x44dfe5:_0x518c9f['end'],_0x3b59b7?_0x518c9f['start']['isBefore'](_0x3b59b7['getFirstRange']()['start'])?(_0x3b59b7['removeMarkers'](),_0x3b59b7=_0x1955ed):_0x1955ed['removeMarkers']():_0x3b59b7=_0x1955ed;}const _0x485175=this['_model']['createRange'](_0x4b9dc7,_0x44dfe5);if(_0x3b59b7)this['_setSuggestionRange'](_0x3b59b7,_0x485175);else{const _0x3097a8=_0x20de28(),_0x55ce46=_0x399507['id'];this['_setSuggestionData']({'id':_0x3097a8,'type':'formatInline:'+_0x2f1f76,'data':_0x241eb2,'createdAt':new Date(),'authorId':_0x55ce46,'attributes':_0x4f8436}),this['_addSuggestionMarker']('formatInline:'+_0x2f1f76,_0x3097a8,_0x55ce46,_0x485175);}}return null;}['markBlockFormat'](_0x54b03d,_0x2fcfc6,_0x24d8b8=[],_0x192beb=null,_0x29869d={}){_0x2fcfc6['formatGroupId']||(_0x2fcfc6['formatGroupId']=_0x2fcfc6['commandName']),_0x2fcfc6['multipleBlocks']=_0x54b03d['is']('range'),_0x192beb=_0x192beb||Kt(_0x2fcfc6);const _0x594c0c=_0x24d8b8['map'](_0x50f473=>zt(_0x50f473,this['_model'])),_0x8c2700=_0x54b03d['is']('range')?_0x54b03d:zt(_0x54b03d,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4385e3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x192beb,'accept');return this['forceDefaultExecution'](()=>_0x4385e3([_0x8c2700],_0x2fcfc6,_0x29869d)),null;}_0x594c0c['push'](_0x8c2700);let _0x1c85d7=!0x0;for(const _0x580104 of _0x594c0c)if(!this['_rangeIsInLocalUserInsertion'](_0x580104)){_0x1c85d7=!0x1;break;}if(_0x1c85d7&&'always'!==this['_trackFormatChanges']){const _0x2c9f58=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x192beb,'accept');return this['forceDefaultExecution'](()=>_0x2c9f58([_0x8c2700],_0x2fcfc6,_0x29869d)),null;}let _0x1ed2f5=null,_0x2593e3=_0x8c2700['start'],_0x1bdf75=_0x8c2700['end'];for(const {suggestion:_0x27a633,meta:_0xa49b3}of this['_findSuggestions'](_0x8c2700,'formatBlock')){if(!_0xa49b3['isOwn'])continue;if(_0xa49b3['isNextTo']||_0xa49b3['containsRangeInObject']||_0xa49b3['isInsideObject'])continue;if(_0x27a633['data']['formatGroupId']!=_0x2fcfc6['formatGroupId'])continue;if(!Xt(_0x27a633,_0x29869d))continue;const _0x199176=_0x27a633['getFirstRange']();if(_0x27a633['subType']==_0x192beb){if(_0x199176['containsRange'](_0x8c2700,!0x0))return null;_0x2593e3=_0x2593e3['isBefore'](_0x199176['start'])?_0x2593e3:_0x199176['start'],_0x1bdf75=_0x1bdf75['isAfter'](_0x199176['end'])?_0x1bdf75:_0x199176['end'],_0x1ed2f5?_0x199176['start']['isBefore'](_0x1ed2f5['getFirstRange']()['start'])?(_0x1ed2f5['removeMarkers'](),_0x1ed2f5=_0x27a633):_0x27a633['removeMarkers']():_0x1ed2f5=_0x27a633;}else{const _0x231f43=_0x8c2700['getIntersection'](_0x199176);this['_cutOutSuggestionMarker'](_0x27a633,_0x231f43);}}const _0x5c1bc6=this['editor']['plugins']['get']('Users')['me'],_0x9e3601=_0x20de28(),_0x411af0=_0x5c1bc6['id'];if(_0x1ed2f5)return this['_setSuggestionRange'](_0x1ed2f5,this['_model']['createRange'](_0x2593e3,_0x1bdf75)),_0x1ed2f5;{const _0x376cf0=this['_setSuggestionData']({'id':_0x9e3601,'type':'formatBlock:'+_0x192beb,'data':_0x2fcfc6,'createdAt':new Date(),'authorId':_0x411af0,'attributes':_0x29869d});return this['_addSuggestionMarker']('formatBlock:'+_0x192beb,_0x9e3601,_0x411af0,this['_model']['createRange'](_0x2593e3,_0x1bdf75)),_0x376cf0;}}['markMultiRangeBlockFormat'](_0x548241,_0x1e0c22,_0x3929c1=[],_0x5712be=null,_0x4589b4={}){_0x1e0c22['formatGroupId']||(_0x1e0c22['formatGroupId']=_0x1e0c22['commandName']);const _0x5da48d=_0x548241[0x0];_0x1e0c22['multipleBlocks']=_0x5da48d['is']('range'),_0x5712be=_0x5712be||Kt(_0x1e0c22);const _0x4b4389=_0x3929c1['map'](_0x3aa5be=>zt(_0x3aa5be,this['_model'])),_0x5efc12=_0x5da48d['is']('range')?_0x548241:_0x548241['map'](_0x1472c1=>zt(_0x1472c1,this['_model']));if('never'===this['_trackFormatChanges']){const _0x11a098=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5712be,'accept');return this['forceDefaultExecution'](()=>_0x11a098(_0x5efc12,_0x1e0c22,_0x4589b4)),null;}_0x4b4389['push'](..._0x5efc12);let _0x3c1b8f=!0x0;for(const _0x3cb460 of _0x4b4389)if(!this['_rangeIsInLocalUserInsertion'](_0x3cb460)){_0x3c1b8f=!0x1;break;}if(_0x3c1b8f&&'always'!==this['_trackFormatChanges']){const _0x54b454=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5712be,'accept');return this['forceDefaultExecution'](()=>_0x54b454(_0x5efc12,_0x1e0c22,_0x4589b4)),null;}const _0x3a583b=this['editor']['plugins']['get']('Users')['me'];for(const _0x5da67f of this['getSuggestions']()){if(_0x5da67f['author']['id']!=_0x3a583b['id'])continue;if('formatBlock'!=_0x5da67f['type']||_0x5da67f['data']['formatGroupId']!=_0x1e0c22['formatGroupId'])continue;if(!Xt(_0x5da67f,_0x4589b4))continue;const _0x400a4a=_0x5da67f['subType']==_0x5712be;for(let _0x333f7b=0x0;_0x333f7b<_0x5efc12['length'];_0x333f7b++){const _0x2653cc=_0x5efc12[_0x333f7b];for(const _0x41b946 of _0x5da67f['getMarkers']()){const _0x537d0b=_0x41b946['getRange']();if(_0x2653cc['isEqual'](_0x537d0b)){_0x400a4a?(_0x5efc12['splice'](_0x333f7b,0x1),_0x333f7b--):_0x5da67f['removeMarker'](_0x41b946['name']);break;}}}}if(0x0==_0x5efc12['length'])return null;const _0xca6bf9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5712be,'join');for(const _0x10d6cd of this['getSuggestions']())if(_0x10d6cd['author']['id']==_0x3a583b['id']&&'formatBlock'==_0x10d6cd['type']&&_0x10d6cd['data']['formatGroupId']==_0x1e0c22['formatGroupId']&&_0x10d6cd['subType']==_0x5712be&&Xt(_0x10d6cd,_0x4589b4)&&(_0xca6bf9(_0x10d6cd['getRanges'](),_0x5efc12)||_0xca6bf9(_0x5efc12,_0x10d6cd['getRanges']()))){for(const _0x5118bd of _0x5efc12)_0x10d6cd['addRange'](_0x5118bd);return _0x10d6cd;}const _0x2f469a=_0x20de28(),_0x25a90b=_0x3a583b['id'],_0x353d8e='formatBlock:'+_0x5712be,_0x836fa0=this['_setSuggestionData']({'id':_0x2f469a,'type':_0x353d8e,'data':_0x1e0c22,'createdAt':new Date(),'authorId':_0x25a90b,'attributes':_0x4589b4});for(const _0x4fea0d of _0x5efc12)this['_addSuggestionMarker'](_0x353d8e,_0x2f469a,_0x25a90b,_0x4fea0d,o['getMultiRangeId']());return _0x836fa0;}['markDeletion'](_0x57b8e6,_0x19d923=null,_0x53b299={}){if(_0x57b8e6['isCollapsed'])return null;const _0x2f8aa8=this['editor']['plugins']['get']('Users')['me'],_0x375217=new _0x3bdca8(_0x57b8e6['start'],_0x57b8e6['end']);for(const {suggestion:_0x30b0b9,meta:_0x14ff77}of this['_findSuggestions'](_0x375217,'insertion'))if(_0x14ff77['isOwn']&&!_0x14ff77['isNextTo']){if(_0x30b0b9['isMultiRange']){const _0x3729a6=_0x30b0b9['getRanges']()['filter'](_0x1e1903=>'$graveyard'!=_0x1e1903['root']['rootName']);_0x3729a6['every'](_0x39cfa9=>_0x375217['containsRange'](_0x39cfa9,!0x0))&&_0x30b0b9['discard']();if(_0x3729a6['some'](_0x5ab856=>_0x5ab856['containsRange'](_0x375217,!0x0))){const _0x3c5217=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x19d923,'accept');return this['forceDefaultExecution'](()=>_0x3c5217([_0x375217],null,_0x53b299)),null;}}else{const _0x14a54a=_0x375217['getIntersection'](_0x30b0b9['getFirstRange']());null!==_0x14a54a&&_0x30b0b9['_onDiscard']([_0x14a54a],null,_0x53b299);}}if(_0x375217['detach'](),_0x375217['isCollapsed']||'$graveyard'==_0x375217['root']['rootName'])return null;let _0x168792=null,_0x1c847c=_0x375217['start'],_0x102009=_0x375217['end'];const _0x4aaad7=this['_findSuggestions'](_0x375217,'deletion');for(const {suggestion:_0x32d2a6,meta:_0x26c2a8}of _0x4aaad7){const _0xa8420b=this['_model']['createRange'](_0x1c847c,_0x102009);if(_0x26c2a8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x26c2a8['containsRangeInObject']&&!_0x26c2a8['isInsideObject'])){if(_0x32d2a6['isMultiRange']){if(!Xt(_0x32d2a6,_0x53b299))continue;let _0x4fdf7e=!0x0;for(const _0xa8c997 of _0x32d2a6['getRanges']()){if(_0xa8c997['containsRange'](_0xa8420b,!0x0))return _0x32d2a6;_0xa8420b['containsRange'](_0xa8c997)||(_0x4fdf7e=!0x1);}_0x4fdf7e&&_0x32d2a6['discard']();}else{const _0x5bebd9=_0x32d2a6['getFirstRange']();if(_0x5bebd9['containsRange'](_0xa8420b,!0x0))return _0x32d2a6;if(!Xt(_0x32d2a6,_0x53b299)){_0xa8420b['containsRange'](_0x5bebd9)?_0x32d2a6['removeMarkers']():_0x5bebd9['containsPosition'](_0x1c847c)?_0x1c847c=_0x5bebd9['end']:_0x5bebd9['containsPosition'](_0x102009)&&(_0x102009=_0x5bebd9['start']);continue;}_0x1c847c=_0x1c847c['isBefore'](_0x5bebd9['start'])?_0x1c847c:_0x5bebd9['start'],_0x102009=_0x102009['isAfter'](_0x5bebd9['end'])?_0x102009:_0x5bebd9['end'],_0x53b299=Object['assign']({},_0x32d2a6['attributes']),_0x168792?_0x5bebd9['start']['isBefore'](_0x168792['getFirstRange']()['start'])?(_0x168792['removeMarkers'](),_0x168792=_0x32d2a6):_0x32d2a6['removeMarkers']():_0x168792=_0x32d2a6;}}}if(_0x168792)return this['_setSuggestionRange'](_0x168792,this['_model']['createRange'](_0x1c847c,_0x102009)),_0x168792;{const _0x15b0fc=_0x20de28(),_0x164bfa=this['_model']['createRange'](_0x1c847c,_0x102009),_0x3a6c6=_0x2f8aa8['id'],_0x987306=_0x19d923?'deletion:'+_0x19d923:'deletion',_0x21dbd2=this['_setSuggestionData']({'id':_0x15b0fc,'type':_0x987306,'createdAt':new Date(),'authorId':_0x3a6c6,'attributes':_0x53b299});return this['_addSuggestionMarker'](_0x987306,_0x15b0fc,_0x3a6c6,_0x164bfa),_0x21dbd2;}}['markMultiRangeDeletion'](_0x429f77,_0x3585b8='multi',_0x3abc9f={}){const _0x3532b5=this['editor']['plugins']['get']('Users')['me'],_0x3d2e0c=_0x429f77['map'](_0x22a575=>new _0x3bdca8(_0x22a575['start'],_0x22a575['end'])),_0x1939e2=new Set();for(const {suggestion:_0x459385,meta:_0x190f41}of this['_findSuggestions'](_0x3d2e0c,'insertion'))_0x190f41['isOwn']&&!_0x190f41['isNextTo']&&_0x1939e2['add'](_0x459385);for(const _0x1671fc of _0x1939e2)if(_0x1671fc['isMultiRange']){const _0x44a8d8=_0x1671fc['getRanges']();(!_0x1671fc['attributes']||!_0x1671fc['attributes']['skipNestingCheck'])&&(_0x44a8d8['every'](_0x130403=>_0x3d2e0c['some'](_0xc46345=>_0xc46345['containsRange'](_0x130403,!0x0)))&&_0x1671fc['discard']());if(_0x3d2e0c['every'](_0x418c3f=>_0x44a8d8['some'](_0x5a3778=>_0x5a3778['containsRange'](_0x418c3f,!0x0)))){const _0x4c224d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3585b8,'accept');return this['forceDefaultExecution'](()=>_0x4c224d(_0x429f77,null,_0x3abc9f)),null;}}else{const _0x39c0e4=_0x1671fc['getFirstRange']();_0x3d2e0c['some'](_0x569eb2=>_0x569eb2['containsRange'](_0x39c0e4,!0x0))&&_0x1671fc['discard']();if(_0x3d2e0c['every'](_0x4d75cc=>_0x39c0e4['containsRange'](_0x4d75cc,!0x0))){const _0x5b509d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3585b8,'accept');return this['forceDefaultExecution'](()=>_0x5b509d(_0x3d2e0c,null,_0x3abc9f)),null;}}const _0x2d44f2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3585b8,'join');let _0x1abfbb=null;for(const _0x3ee0c6 of this['getSuggestions']())if(_0x3ee0c6['author']['id']==_0x3532b5['id']&&_0x3ee0c6['isInContent']&&'deletion'==_0x3ee0c6['type']&&_0x3ee0c6['subType']==_0x3585b8&&Xt(_0x3ee0c6,_0x3abc9f)&&(_0x2d44f2(_0x3ee0c6['getRanges'](),_0x3d2e0c)||_0x2d44f2(_0x3d2e0c,_0x3ee0c6['getRanges']()))){if(_0x1abfbb){if(_0x3ee0c6['commentThread']&&_0x3ee0c6['commentThread']['length'])continue;for(const _0x39e375 of _0x3ee0c6['getRanges']())_0x1abfbb['isIntersectingWithRange'](_0x39e375)||_0x1abfbb['addRange'](_0x39e375);_0x3ee0c6['removeMarkers']();}else{_0x1abfbb=_0x3ee0c6;for(const _0x1abce6 of _0x3d2e0c)_0x3ee0c6['isIntersectingWithRange'](_0x1abce6)||_0x3ee0c6['addRange'](_0x1abce6);}}if(_0x1abfbb)return _0x1abfbb;_0x1939e2['clear']();for(const {suggestion:_0xb47063,meta:_0x43d118}of this['_findSuggestions'](_0x3d2e0c,'deletion'))_0x43d118['isOwn']&&(this['_mergeNestedSuggestions']||!_0x43d118['containsRangeInObject']&&!_0x43d118['isInsideObject'])&&Xt(_0xb47063,_0x3abc9f)&&_0x1939e2['add'](_0xb47063);for(const _0x55f3c4 of _0x1939e2){const _0x521974=_0x55f3c4['getRanges']();if(!_0x3abc9f||!_0x3abc9f['skipNestingCheck']){if(_0x3d2e0c['every'](_0x250734=>_0x521974['some'](_0x4d4d18=>_0x4d4d18['containsRange'](_0x250734,!0x0))))return _0x55f3c4;}(!_0x55f3c4['attributes']||!_0x55f3c4['attributes']['skipNestingCheck'])&&(_0x521974['every'](_0x476592=>_0x3d2e0c['some'](_0x930056=>_0x930056['containsRange'](_0x476592,!0x0)))&&_0x55f3c4['discard']());}const _0x5a0762=_0x20de28(),_0x3cf469=_0x3532b5['id'],_0xee4931='deletion:'+_0x3585b8,_0x28b2e6=this['_setSuggestionData']({'id':_0x5a0762,'type':_0xee4931,'createdAt':new Date(),'authorId':_0x3cf469,'attributes':_0x3abc9f});for(const _0x1513ec of _0x3d2e0c)_0x1513ec['detach'](),_0x1513ec['isCollapsed']||'$graveyard'==_0x1513ec['root']['rootName']||this['_addSuggestionMarker'](_0xee4931,_0x5a0762,_0x3cf469,_0x1513ec,o['getMultiRangeId']());return _0x28b2e6;}['markAttributeChange'](_0x1b045c,_0x199964,_0x5acd06,_0x3bc182,_0x457c88){if(_0x1b045c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x35174e=this['editor']['plugins']['get']('Users')['me']['id'],_0x16409d=Array['from'](this['_suggestions']['values']())['filter'](_0x441cd5=>'attribute'==_0x441cd5['type']&&_0x441cd5['data']['key']==_0x199964&&_0x441cd5['isIntersectingWithRange'](_0x1b045c));if('default'===this['_trackFormatChanges']){const _0x368a49=this['_findSuggestions'](_0x1b045c,'insertion')['filter'](({meta:_0x1da9db})=>_0x1da9db['isOwn']&&!_0x1da9db['isInsideObject']&&!_0x1da9db['isNextTo'])['map'](({suggestion:_0x420506})=>_0x420506);_0x16409d['unshift'](..._0x368a49);}const _0x4f9619=new Map([[_0x1b045c,_0x5acd06]]);for(const _0x474bf7 of _0x16409d){const _0x2843f1='attribute'==_0x474bf7['type']?_0x474bf7['data']['oldValue']:void 0x0,_0x37c37b=_0x474bf7['getFirstRange'](),_0x5a92b1=Array['from'](_0x4f9619['keys']())['find'](_0x47a73c=>_0x47a73c['isIntersecting'](_0x37c37b));if(!_0x5a92b1)continue;const _0xb94cec=_0x5a92b1['getDifference'](_0x37c37b);this['_isBlockAttribute'](_0x199964)&&'insertion'==_0x474bf7['type']&&0x0!=_0xb94cec['length']||(_0x4f9619['delete'](_0x5a92b1),_0xb94cec['forEach'](_0x122a53=>{_0x4f9619['set'](_0x122a53,_0x5acd06);}),'insertion'!=_0x474bf7['type']&&_0x2843f1!=_0x3bc182&&_0x4f9619['set'](_0x5a92b1['getIntersection'](_0x37c37b),_0x2843f1));}const _0x331e80=[];for(const [_0x39fb41,_0x22e51a]of _0x4f9619){const _0x5a6936=_0x20de28(),_0x117430={'key':_0x199964,'oldValue':_0x22e51a,'newValue':_0x3bc182};_0x199964['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':_0x199964});const _0x393e69=('attribute:'+(_0x199964+'|'+Kt({'newValue':_0x3bc182})))['substring'](0x0,0x3c),_0x402abc=this['_setSuggestionData']({'id':_0x5a6936,'type':_0x393e69,'data':_0x117430,'createdAt':new Date(),'authorId':_0x35174e,'attributes':_0x457c88});_0x331e80['push'](_0x402abc),this['_addSuggestionMarker'](_0x393e69,_0x5a6936,_0x35174e,_0x39fb41);}return _0x331e80;}['enableDefaultAttributesIntegration'](_0x55ef2c){this['enableCommand'](_0x55ef2c,(_0x357097,..._0x473946)=>{this['_recordAttributeChanges'](()=>{_0x357097(..._0x473946);});});}['registerBlockAttribute'](_0x593487){this['_blockAttributeKeys']['add'](_0x593487);}['registerInlineAttribute'](_0x5c2550){this['_inlineAttributeKeys']['add'](_0x5c2550);}['_getAttributeKey'](_0x5ca6b8){return'attribute'==_0x5ca6b8['type']?_0x5ca6b8['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x48ec55,_0x36979f){const _0x43ec25=_0x48ec55['getFirstMarker']();this['_model']['change'](_0x5cbfad=>{_0x5cbfad['updateMarker'](_0x43ec25,{'range':_0x36979f});});}['_addThreadToSuggestion'](_0x2a73ee){const _0x4bbd39=_0x2a73ee['id'],_0x2525ef=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4bbd39)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2525ef,'threadId':_0x4bbd39,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2327f9=this['_commentsRepository']['getCommentThread'](_0x4bbd39);_0x2327f9['unbind']('isRemovable'),_0x2327f9['isRemovable']=!0x1,_0x2a73ee['commentThread']=_0x2327f9;}['_checkSuggestionCorrectness'](_0x53abff,_0x5a4153,_0x4e06f4,_0x286537){if(_0x53abff['type']!=_0x5a4153||_0x53abff['subType']!=_0x4e06f4||_0x53abff['creator']['id']!=_0x286537)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x213580('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x331295,_0x231ff1){const _0x593c83=_0x331295['getFirstRange']();if(_0x231ff1['isEqual'](_0x593c83))_0x331295['removeMarkers']();else{if(_0x593c83['containsRange'](_0x231ff1)){const _0x2d4e4c=this['_model']['createPositionAt'](_0x231ff1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x331295,this['_model']['createRange'](_0x593c83['start'],_0x2d4e4c));const _0x2b4e0c=_0x20de28(),_0x4e8592=_0x331295['creator']['id'],_0x59fe6b=_0x331295['type']+':'+_0x331295['subType'];this['_setSuggestionData']({'id':_0x2b4e0c,'type':_0x59fe6b,'createdAt':new Date(),'authorId':_0x4e8592,'data':_0x331295['data'],'attributes':_0x331295['attributes']});const _0x1f61db=this['_model']['createPositionAt'](_0x231ff1['end']['parent'],'after'),_0x28c9c6=this['_model']['createRange'](_0x1f61db,_0x593c83['end']);this['_addSuggestionMarker'](_0x59fe6b,_0x2b4e0c,_0x4e8592,_0x28c9c6);}else{if(_0x593c83['containsPosition'](_0x231ff1['start'])){const _0x173a14=this['_model']['createPositionAt'](_0x231ff1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x331295,this['_model']['createRange'](_0x593c83['start'],_0x173a14));}else{const _0x2e5385=this['_model']['createPositionAt'](_0x231ff1['end']['parent'],'after');this['_setSuggestionRange'](_0x331295,this['_model']['createRange'](_0x2e5385,_0x593c83['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1bd986){for(const {suggestion:_0x585e23,meta:_0x4331eb}of this['_findSuggestions'](_0x1bd986,'insertion')){if(!_0x4331eb['isOwn'])continue;const _0x427d12=_0x585e23['getRanges']();for(const _0x21f414 of _0x427d12)if(!_0x1bd986['getDifference'](_0x21f414)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xb4dc9f){const _0x33c72d=this['editor']['plugins']['get']('Users')['getUser'](_0xb4dc9f);if(!_0x33c72d)throw new _0x213580('track-changes-user-not-found',this);return _0x33c72d;}['_getExternalAuthor'](_0x13b18f){const _0x291809=this['editor']['plugins']['get']('Users'),_0x238542=_0x5f3945('external:'+_0x13b18f),_0x3c1deb=_0x291809['getUser'](_0x238542);return _0x3c1deb||_0x291809['addUser']({'id':_0x238542,'name':_0x13b18f});}['_createSuggestion'](_0x1fff9b,_0x1bd108,_0x2bc0da,_0x1c7474,_0x3e29fe){const _0x1d7014=this['_getAuthorFromId'](_0x1c7474),_0x37ea1d=this['_suggestionFactory']['buildSuggestion'](_0x1fff9b,_0x1bd108,_0x2bc0da,_0x1d7014,_0x3e29fe,_0x4c199f=>{this['_updateSuggestionData'](_0x2bc0da,{'attributes':_0x4c199f});const _0x44c0ca=this['getSuggestion'](_0x2bc0da);this['_joinWithAdjacentSuggestions'](new Set([_0x44c0ca])),this['_refreshSuggestionsChain'](new Set([_0x44c0ca]));});return this['listenTo'](_0x37ea1d,'accept',()=>{this['_updateSuggestionData'](_0x2bc0da,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x37ea1d,'discard',()=>{this['_updateSuggestionData'](_0x2bc0da,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2bc0da,_0x37ea1d),this['_suggestionState']['set'](_0x37ea1d,'notReady'),_0x37ea1d;}['_splitMarkerName'](_0x5093b9){const _0xa1f39c=_0x5093b9['split'](':');return{'group':_0xa1f39c[0x0],'type':_0xa1f39c[0x1],'subType':_0xa1f39c['length']>=0x5?_0xa1f39c[0x2]:null,'id':_0xa1f39c['length']<0x5?_0xa1f39c[0x2]:_0xa1f39c[0x3],'authorId':_0xa1f39c['length']<0x5?_0xa1f39c[0x3]:_0xa1f39c[0x4],'markerCount':0x6==_0xa1f39c['length']?_0xa1f39c[0x5]:null};}['_breakSuggestionMarker'](_0x156723,_0x1fba84,_0xf9799f){const _0x5de1f8=_0x156723['getFirstRange'](),_0x3fa4c7=_0x5de1f8['start'],_0x5b9fca=_0x5de1f8['end'];this['_setSuggestionRange'](_0x156723,this['_model']['createRange'](_0x3fa4c7,_0x1fba84));const _0x700158=_0x20de28(),_0x4f4e72=_0x156723['creator']['id'],_0x202d16=_0x156723['type']+(_0x156723['subType']?':'+_0x156723['subType']:'');this['_setSuggestionData']({'id':_0x700158,'type':_0x202d16,'createdAt':new Date(),'authorId':_0x4f4e72,'originalSuggestionId':_0x156723['id'],'attributes':_0x156723['attributes'],'data':_0x156723['data']});const _0x1a4f2c=this['_getAttributeKey'](_0x156723);('formatBlock'==_0x156723['type']||_0x1a4f2c&&this['_isBlockAttribute'](_0x1a4f2c))&&(_0xf9799f=this['_model']['createPositionBefore'](_0xf9799f['parent'])),this['_addSuggestionMarker'](_0x202d16,_0x700158,_0x4f4e72,this['_model']['createRange'](_0xf9799f,_0x5b9fca));}['_findSuggestions'](_0x41f9c2,_0x2a2208=null){const _0x461665=[],_0x3417e2=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x41f9c2)||(_0x41f9c2=[_0x41f9c2]);for(const _0x4ca7a2 of this['getSuggestions']()){if(!_0x4ca7a2['isInContent'])continue;if(_0x2a2208&&_0x4ca7a2['type']!=_0x2a2208)continue;let _0x2c0733=!0x1;for(const _0x5723f6 of _0x4ca7a2['getRanges']()){for(const _0x301f5b of _0x41f9c2){const _0x51a9f9=_0x301f5b['start']['isEqual'](_0x5723f6['end'])||_0x301f5b['end']['isEqual'](_0x5723f6['start']);if(_0x51a9f9||_0x301f5b['getIntersection'](_0x5723f6)){const _0x5346f3=_0x301f5b['containsRange'](_0x5723f6)&&Gt(this['_model']['schema'],_0x5723f6['start'],_0x301f5b),_0x1e049a=_0x5723f6['containsRange'](_0x301f5b)&&Gt(this['_model']['schema'],_0x301f5b['start'],_0x5723f6);_0x461665['push']({'suggestion':_0x4ca7a2,'meta':{'isOwn':_0x3417e2==_0x4ca7a2['author'],'isNextTo':_0x51a9f9,'isInsideObject':_0x5346f3,'containsRangeInObject':_0x1e049a}}),_0x2c0733=!0x0;break;}}if(_0x2c0733)break;}}return _0x461665;}['_addSuggestionMarker'](_0x594e91,_0x31fd66,_0x26bbde,_0x13d9fd,_0x1fe373){this['_model']['change'](_0x15a2f1=>{let _0x40a72b='suggestion:'+_0x594e91+':'+_0x31fd66+':'+_0x26bbde;_0x1fe373&&(_0x40a72b=_0x40a72b+':'+_0x1fe373),_0x15a2f1['addMarker'](_0x40a72b,{'range':_0x13d9fd,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x19f340){const _0x55424f=_0x19f340['previous'],_0x11cac3=_0x19f340['next'];_0x19f340['previous']=null,_0x19f340['next']=null,null!=_0x55424f&&_0x55424f['next']==_0x19f340&&(_0x55424f['next']=_0x11cac3),null!=_0x11cac3&&_0x11cac3['previous']==_0x19f340&&(_0x11cac3['previous']=_0x55424f),'ready'==this['_suggestionState']['get'](_0x19f340)&&(this['_suggestionState']['set'](_0x19f340,'removed'),this['fire']('suggestionUnloaded',_0x19f340,_0x55424f,_0x11cac3));}['_setSuggestionData'](_0x2a5d19){const _0x37c20e=_0x2a5d19['id'],_0x2369b3=this['addSuggestionData'](_0x2a5d19);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5945c7=this['editor']['plugins']['get']('PendingActions'),_0x111597=_0x2369b3['hasComments'],_0x8e0cdd=_0x2369b3['subType']?_0x2369b3['type']+':'+_0x2369b3['subType']:_0x2369b3['type'],_0x13951a=this['editor']['locale'],_0x4df536=_0x5945c7['add'](c(_0x13951a,'PENDING_ACTION_SUGGESTION')),_0x1a7d04={'id':_0x37c20e,'type':_0x8e0cdd,'hasComments':_0x111597,'data':_0x2a5d19['data']||null,'originalSuggestionId':_0x2a5d19['originalSuggestionId']||null,'attributes':_0x2369b3['attributes']};this['_adapter']['addSuggestion'](_0x1a7d04)['then'](_0x46422d=>{_0x2369b3['_saved']=!0x0,_0x5945c7['remove'](_0x4df536),_0x46422d&&_0x46422d['createdAt']&&(this['_suggestions']['get'](_0x37c20e)['createdAt']=_0x46422d['createdAt']);})['catch'](_0x4de2fa=>{throw _0x585e27('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2369b3['discard']();}),_0x2369b3['stopListening'](),this['_suggestions']['delete'](_0x2369b3['id']),this['_suggestionState']['delete'](_0x2369b3),_0x4de2fa;});}return _0x2369b3;}['_isBlockAttribute'](_0x4b0447){return this['_blockAttributeKeys']['has'](_0x4b0447);}['_updateSuggestionData'](_0x5f12e3,_0x1d8768){const _0x41ee5e=this['editor']['plugins']['get']('PendingActions'),_0x1d35be=this['getSuggestion'](_0x5f12e3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1d35be['_saved']){const _0x142755=_0x41ee5e['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5f12e3,_0x1d8768)['then'](()=>{_0x41ee5e['remove'](_0x142755);});}else _0x1d35be['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5f12e3,_0x1d8768);});}}['_getSuggestionData'](_0x55b650){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x213580('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x55b650);}['_handleNewSuggestionMarker'](_0xadea52){const {id:_0xf1f123,type:_0x3fbc88,subType:_0x90c5b2,authorId:_0xa18936}=this['_splitMarkerName'](_0xadea52),_0x1a374c=this['_suggestions']['get'](_0xf1f123)||this['_createSuggestion'](_0x3fbc88,_0x90c5b2,_0xf1f123,_0xa18936,{});switch(this['_checkSuggestionCorrectness'](_0x1a374c,_0x3fbc88,_0x90c5b2,_0xa18936),this['_suggestionState']['get'](_0x1a374c)){case'notReady':this['_getSuggestionData'](_0xf1f123)['then'](_0x32a3bb=>{let _0x3da9fd=Promise['resolve']();_0x32a3bb['hasComments']&&(_0x3da9fd=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xf1f123})),_0x3da9fd['then'](()=>{this['addSuggestionData'](_0x32a3bb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1a374c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xf1f123,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1a374c,'ready'),this['fire']('suggestionLoaded',_0x1a374c);break;case'ready':this['fire']('suggestionChanged',_0x1a374c);}return _0x1a374c['addMarkerName'](_0xadea52),_0x1a374c;}['_refreshSuggestionsChain'](_0x2fa57e){const _0x530a37=Array['from'](_0x2fa57e),_0x24a67b=_0x530a37['filter'](_0x212037=>'attribute'==_0x212037['type']);this['_refreshAttributeSuggestionsChain'](_0x24a67b);const _0x15e0bc=_0x530a37['filter'](_0x12c219=>!_0x12c219['isMultiRange']&&'attribute'!=_0x12c219['type']),_0x446c09=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4dcc91=>!_0x4dcc91['isMultiRange']&&'attribute'!=_0x4dcc91['type']),_0x327ae7=_0x446c09['filter'](_0x371a47=>!_0x2fa57e['has'](_0x371a47)),_0x505daf=new Map(_0x446c09['map'](_0x5eaac4=>[_0x5eaac4,this['_suggestionFactory']['getSuggestionCallback'](_0x5eaac4['type'],_0x5eaac4['subType'],'chain')])),_0x3110b3=new Map(_0x446c09['map'](_0x5a7632=>[_0x5a7632,_0x5a7632['getFirstRange']()])),_0x37cbe5=new Set(),_0x2010ee=new Set();for(let _0x4f5da0=0x0;_0x4f5da0<_0x15e0bc['length'];_0x4f5da0++)_0x5c86f9(_0x15e0bc[_0x4f5da0],_0x15e0bc,_0x4f5da0+0x1);for(let _0x4b7597=0x0;_0x4b7597<_0x15e0bc['length'];_0x4b7597++)_0x5c86f9(_0x15e0bc[_0x4b7597],_0x327ae7,0x0);const _0x4fcaea=new Set();for(let _0x46d651=0x0;_0x46d651<_0x15e0bc['length'];_0x46d651++){const _0x55f811=_0x15e0bc[_0x46d651];!_0x2010ee['has'](_0x55f811)&&_0x55f811['previous']&&(_0x4fcaea['add'](_0x55f811['previous']),_0x55f811['previous']['next']===_0x55f811&&(_0x55f811['previous']['next']=null),_0x55f811['previous']=null),!_0x37cbe5['has'](_0x55f811)&&_0x55f811['next']&&(_0x4fcaea['add'](_0x55f811['next']),_0x55f811['next']['previous']===_0x55f811&&(_0x55f811['next']['previous']=null),_0x55f811['next']=null);}function _0x5c86f9(_0xf83af0,_0x449170,_0x42a39d){for(let _0xb664f5=_0x42a39d;_0xb664f5<_0x449170['length'];_0xb664f5++){const _0x55fe45=_0x3125d7(_0xf83af0,_0x449170[_0xb664f5]);_0x55fe45&&(_0x55fe45[0x0]['next']=_0x55fe45[0x1],_0x55fe45[0x1]['previous']=_0x55fe45[0x0],_0x37cbe5['add'](_0x55fe45[0x0]),_0x2010ee['add'](_0x55fe45[0x1]));}}function _0x3125d7(_0x3a75e5,_0x4e47a6){if(_0x3a75e5['author']['id']!==_0x4e47a6['author']['id'])return null;const _0x229ea4=_0x505daf['get'](_0x3a75e5)(_0x3a75e5,_0x4e47a6,_0x3110b3['get'](_0x3a75e5),_0x3110b3['get'](_0x4e47a6));if(!_0x229ea4)return null;return _0x505daf['get'](_0x4e47a6)(_0x3a75e5,_0x4e47a6,_0x3110b3['get'](_0x3a75e5),_0x3110b3['get'](_0x4e47a6))?_0x229ea4[0x1]['commentThread']&&_0x229ea4[0x1]['commentThread']['length']?null:_0x229ea4:null;}_0x4fcaea['size']&&this['_refreshSuggestionsChain'](_0x4fcaea);}['_refreshAttributeSuggestionsChain'](_0x2937b7){if(0x0==_0x2937b7['length'])return;const _0x42c249=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x524747=>'attribute'==_0x524747['type']&&_0x524747['_isDataLoaded']),_0x582fa9=[],_0x2e5bb9=new Map();for(const _0x1c1111 of _0x42c249){const _0x27ae28=_0x5f3945(_0x1c1111['attributes']);_0x2e5bb9['has'](_0x27ae28)||(_0x2e5bb9['set'](_0x27ae28,_0x582fa9['length']),_0x582fa9['push']([]));const _0xca6970=_0x2e5bb9['get'](_0x27ae28);_0x582fa9[_0xca6970]['push'](_0x1c1111);}!(function(){_0x582fa9['sort']((_0x43bf2c,_0x146a38)=>{const _0xed96de=_0x43bf2c[0x0]['createdAt'],_0x26c20c=_0x146a38[0x0]['createdAt'];return _0xed96de==_0x26c20c?_0x43bf2c[0x0]['attributes']['groupId']<_0x146a38[0x0]['attributes']['groupId']?-0x1:0x1:_0xed96de<_0x26c20c?-0x1:0x1;});for(const _0x3c2cdf of _0x582fa9)_0x3c2cdf['sort']((_0x204706,_0x5c13dc)=>_0x204706['id']<_0x5c13dc['id']?-0x1:0x1);}());for(let _0x239b2e=0x0;_0x239b2e<_0x582fa9['length'];_0x239b2e++){if(0x0==_0x582fa9[_0x239b2e]['length'])continue;const _0x268900=[];for(let _0xb56e3c=_0x239b2e+0x1;_0xb56e3c<_0x582fa9['length'];_0xb56e3c++)0x0!=_0x582fa9[_0xb56e3c]['length']&&_0x78002(_0x582fa9[_0x239b2e],_0x582fa9[_0xb56e3c])&&_0x268900['push'](_0xb56e3c);for(const _0x4035d8 of _0x268900)_0x582fa9[_0x239b2e]=_0x582fa9[_0x239b2e]['concat'](_0x582fa9[_0x4035d8]),_0x582fa9[_0x4035d8]=[];}for(const _0x254f3a of _0x582fa9)for(let _0x1068b1=0x0;_0x1068b1<_0x254f3a['length'];_0x1068b1++){const _0x302a53=_0x254f3a[_0x1068b1+0x1]||null;_0x254f3a[_0x1068b1]['next']!==_0x302a53&&(_0x254f3a[_0x1068b1]['next']=_0x302a53);}for(const _0x4a117c of _0x582fa9)for(let _0x5cd096=0x0;_0x5cd096<_0x4a117c['length'];_0x5cd096++){const _0x49d78d=_0x4a117c[_0x5cd096-0x1]||null;_0x4a117c[_0x5cd096]['previous']!==_0x49d78d&&(_0x4a117c[_0x5cd096]['previous']=_0x49d78d);}function _0x78002(_0x503a1f,_0x204b90){if(_0x503a1f[0x0]['attributes']['groupId']!==_0x204b90[0x0]['attributes']['groupId']&&_0x503a1f[0x0]['author']!==_0x204b90[0x0]['author'])return!0x1;if(!function(_0x289da5,_0x7197b){if(!_0x289da5['hasComments']&&!_0x7197b['hasComments'])return!0x0;if(_0x289da5['hasComments']&&_0x7197b['hasComments'])return!0x1;if(_0x289da5['hasComments']&&_0x7197b['createdAt']<_0x289da5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x7197b['hasComments']&&_0x289da5['createdAt']<_0x7197b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x503a1f[0x0],_0x204b90[0x0]))return!0x1;const _0x335154=Ft(_0x503a1f[0x0]['attributes'],'groupId'),_0x371f95=Ft(_0x204b90[0x0]['attributes'],'groupId');if(!_0x1370a7(_0x335154,_0x371f95))return!0x1;return!!_0x503a1f['every'](_0xc262fa=>_0x204b90['some'](_0x1f6422=>_0xc262fa['getFirstRange']()['isEqual'](_0x1f6422['getFirstRange']())))&&_0x204b90['every'](_0x46dfb3=>_0x503a1f['some'](_0x1d23db=>_0x46dfb3['getFirstRange']()['isEqual'](_0x1d23db['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1779b1){const _0x176d53=Array['from'](_0x1779b1),_0x2812c3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x16508f=_0x2812c3['filter'](_0x31d1f5=>!_0x1779b1['has'](_0x31d1f5)),_0x2bb20f=new Map(_0x176d53['map'](_0x48bc0d=>[_0x48bc0d,this['_suggestionFactory']['getSuggestionCallback'](_0x48bc0d['type'],_0x48bc0d['subType'],'join')])),_0x3fe39b=new Map(_0x2812c3['map'](_0x1047d1=>[_0x1047d1,_0x1047d1['getRanges']()]));for(let _0x991fb5=0x0;_0x991fb5<_0x176d53['length'];_0x991fb5++){if(_0xee7042(this,_0x176d53[_0x991fb5],_0x176d53,_0x991fb5+0x1))return!0x0;}for(let _0x3f1bbf=0x0;_0x3f1bbf<_0x176d53['length'];_0x3f1bbf++){if(_0xee7042(this,_0x176d53[_0x3f1bbf],_0x16508f,0x0))return!0x0;}return!0x1;function _0xee7042(_0x113f4b,_0x57de18,_0x110bee,_0x23b5c3){for(let _0x5c3c51=_0x23b5c3;_0x5c3c51<_0x110bee['length'];_0x5c3c51++){const _0x627148=_0x110bee[_0x5c3c51];if(_0x627148['type']!==_0x57de18['type']||_0x627148['author']['id']!==_0x57de18['author']['id']||_0x627148['subType']!==_0x57de18['subType'])continue;if(!Qt(_0x57de18,_0x627148))continue;if('attribute'==_0x57de18['type']&&_0x57de18['data']['oldValue']!=_0x627148['data']['oldValue'])continue;if('attribute'==_0x57de18['type']&&_0x113f4b['_isBlockAttribute'](_0x57de18['data']['key']))continue;if('formatBlock'==_0x57de18['type']){const _0x24ea2a=_0x113f4b['editor']['model'],_0x33c8b2=_0x57de18['getContainedElement']();if(_0x33c8b2&&(_0x24ea2a['schema']['isObject'](_0x33c8b2)||_0x24ea2a['schema']['isLimit'](_0x33c8b2)))continue;}const _0x2511da=_0x2bb20f['get'](_0x57de18),_0x3c75a8=_0x3fe39b['get'](_0x57de18),_0x1257a1=_0x3fe39b['get'](_0x627148),_0x2fc1e0=_0x57de18['commentThread']&&_0x57de18['commentThread']['length'],_0xac0bd4=_0x627148['commentThread']&&_0x627148['commentThread']['length'];if(!_0x2fc1e0&&_0x2511da(_0x1257a1,_0x3c75a8))return _0x113f4b['_joinSuggestions'](_0x627148,_0x57de18),_0x3fe39b['delete'](_0x57de18),!0x0;if(!_0xac0bd4&&_0x2511da(_0x3c75a8,_0x1257a1))return _0x113f4b['_joinSuggestions'](_0x57de18,_0x627148),_0x3fe39b['delete'](_0x627148),!0x0;}return!0x1;}}['_joinSuggestions'](_0x10a829,_0x4462f2){if(_0x10a829['isMultiRange']){for(const _0x3f4c3f of _0x4462f2['getRanges']())_0x10a829['addRange'](_0x3f4c3f);}else{const _0x1228bb=_0x4462f2['getFirstRange']()['end'];this['_setSuggestionRange'](_0x10a829,this['_model']['createRange'](_0x10a829['getFirstRange']()['start'],_0x1228bb));}_0x4462f2['removeMarkers']();}['_getMarkerAnnouncementText'](_0xb695a7,_0x538ab0,_0x410406){const _0xb0bb3c=_0xb695a7['startsWith']('format')||_0xb695a7['startsWith']('attribute')?'FORMATTING':_0xb695a7['toUpperCase']();return c(this['editor']['locale'],_0x538ab0+'_'+_0xb0bb3c+'_SUGGESTION_ANNOUNCEMENT',_0x410406);}['_initAriaMarkerChangeAnnouncements'](){const _0x1e3006=this['editor'];if(!_0x1e3006['ui'])return;const {ariaLiveAnnouncer:_0x2fd2e0}=_0x1e3006['ui'];_0x527820(this['_model'],({left:_0x5f0c1d,entered:_0x2945fd})=>{for(const _0x55b4e9 of _0x5f0c1d){const {group:_0x5193a9,type:_0x1e4c23}=this['_splitMarkerName'](_0x55b4e9['name']);if('suggestion'===_0x5193a9){_0x2fd2e0['announce'](this['_getMarkerAnnouncementText'](_0x1e4c23,'LEAVE'));break;}}for(const _0x4283c3 of _0x2945fd){const {group:_0x5658d1,type:_0x3b6b3d}=this['_splitMarkerName'](_0x4283c3['name']);if('suggestion'===_0x5658d1){_0x2fd2e0['announce'](this['_getMarkerAnnouncementText'](_0x3b6b3d,'ENTER',_0x57d5f0(_0x5302ad)));break;}}});}['_processAttributeChanges'](_0x501e09){if(this['_recordAttributeSuggestions'])return!0x1;const _0x453eed=this['editor'],_0x3d2913=_0x453eed['model']['document']['differ']['getChanges']();if(0x0==_0x3d2913['length'])return!0x1;const _0x3b1646=[],_0x467ca8=_0x3d2913['filter'](_0x3d99c2=>'attribute'==_0x3d99c2['type']),_0x1c8b56=_0x3d2913['filter'](_0x17a877=>'insert'==_0x17a877['type']&&'$text'!=_0x17a877['name']),_0x34956c=_0x3d2913['filter'](_0x5ad92c=>'remove'==_0x5ad92c['type']&&'$text'!=_0x5ad92c['name']);for(const _0x56a0f7 of _0x467ca8)_0x3b1646['push']({'key':_0x56a0f7['attributeKey'],'newValue':_0x56a0f7['attributeNewValue'],'oldValue':_0x56a0f7['attributeOldValue'],'range':qt(_0x56a0f7['range'],_0x453eed['model'])});for(const _0xf04eab of _0x1c8b56){const _0x4c6c5c=_0x34956c['find'](_0x2e9917=>_0x2e9917['position']['isEqual'](_0xf04eab['position']));_0x4c6c5c&&_0x3b1646['push']({'key':u,'newValue':_0xf04eab['name'],'oldValue':_0x4c6c5c['name'],'range':_0x453eed['model']['createRangeOn'](_0xf04eab['position']['nodeAfter'])});}return 0x0!=_0x3b1646['length']&&this['_reduceExistingSuggestions'](_0x501e09,_0x3b1646);}['_processAttributeSuggestions'](_0x1052ce){let _0x4b4959=!0x1;const _0x5b2628=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1765bb=>_0x1765bb['data']['newRange']&&_0x1765bb['name']['startsWith']('suggestion:attribute:'));for(const _0x2ceceb of _0x5b2628){const {subType:_0x5830e5,id:_0x1339e8}=this['_splitMarkerName'](_0x2ceceb['name']),_0x550422=_0x5830e5['split']('|')[0x0];for(const _0x1b86c9 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1b86c9['id']!=_0x1339e8&&'attribute'==_0x1b86c9['type']&&_0x1b86c9['data']&&_0x1b86c9['data']['key']==_0x550422&&_0x1b86c9['getFirstRange']()['isIntersecting'](_0x2ceceb['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1b86c9,_0x2ceceb['data']['newRange'],_0x1052ce),_0x4b4959=!0x0);}return _0x4b4959;}['_recordAttributeChanges'](_0xc63504){this['_recordAttributeSuggestions']=!0x0,_0xc63504();}['_isRegisteredAttribute'](_0x265fdb){const _0x2f643b=this['_isBlockAttribute'](_0x265fdb),_0x55b62c=this['_inlineAttributeKeys']['has'](_0x265fdb);return _0x2f643b||_0x55b62c;}['_reduceExistingSuggestions'](_0x5d8809,_0x43b178){if(0x0==_0x43b178['length'])return!0x1;let _0x462cf0=!0x1;for(const _0x596a36 of _0x43b178){const _0x3d1427=this['_findSuggestions'](_0x596a36['range'],'attribute')['filter'](_0x482f93=>!_0x482f93['meta']['isNextTo'])['map'](_0x3e48a4=>_0x3e48a4['suggestion']),_0x3e53f6=_0x5f3945({'newValue':_0x596a36['newValue']});_0x3d1427['filter'](_0x2728d2=>{const [_0x20be3c,_0x5a4a0c]=_0x2728d2['subType']['split']('|');return _0x20be3c==_0x596a36['key']&&_0x5a4a0c!=_0x3e53f6;})['forEach'](_0x4b9ba8=>{this['_reduceSuggestionAttributeRange'](_0x4b9ba8,_0x596a36['range'],_0x5d8809),_0x462cf0=!0x0;});}return _0x462cf0;}['_reduceSuggestionAttributeRange'](_0x32448f,_0x3ad5d1,_0x507d71){const _0x5583d0=_0x32448f['getFirstRange']()['getDifference'](_0x3ad5d1);0x0!==_0x5583d0['length']?0x1!==_0x5583d0['length']?this['_breakSuggestionMarker'](_0x32448f,_0x3ad5d1['start'],_0x3ad5d1['end']):this['_setSuggestionRange'](_0x32448f,_0x5583d0[0x0]):_0x507d71['removeMarker'](_0x32448f['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3159ea){this['_editor']=_0x3159ea,this['_model']=_0x3159ea['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5062a2,_0x558eb5,_0x3fda67,_0x34c265,_0x5bdf7f,_0x497d33){return new o(this['_model'],{'type':_0x5062a2,'subType':_0x558eb5,'id':_0x3fda67,'author':_0x34c265,'creator':_0x34c265,'attributes':_0x5bdf7f,'onAttributesChange':_0x497d33,'onAccept':(..._0x1b8c30)=>this['getSuggestionCallback'](_0x5062a2,_0x558eb5,'accept')(..._0x1b8c30),'onDiscard':(..._0x24ed1e)=>this['getSuggestionCallback'](_0x5062a2,_0x558eb5,'discard')(..._0x24ed1e)});}['registerCustomCallback'](_0x59a6f8,_0x22e10e,_0x399e63,_0x1e79d0){const _0x1f1b37=_0x59a6f8+':'+_0x22e10e+':'+_0x399e63;this['_customCallbacks']['set'](_0x1f1b37,_0x1e79d0);}['getSuggestionCallback'](_0x4212f8,_0x491eda,_0xb52cf6){const _0x1d1e43=_0x4212f8+':'+_0x491eda+':'+_0xb52cf6;return this['_customCallbacks']['get'](_0x1d1e43)||this['_defaultCallbacks']['get'](_0x4212f8+':'+_0xb52cf6);}['_registerDefaultCallbacks'](){const _0xd0f2bd=()=>!0x1,_0x34353f=_0x3f1abe=>{_0x3f1abe['sort']((_0x32b3f9,_0x56556b)=>_0x32b3f9['start']['isBefore'](_0x56556b['start'])?0x1:-0x1),this['_model']['change'](_0x9c7bfb=>{for(const _0x5f55a1 of _0x3f1abe){let _0x4458aa;_0x4458aa=_0x5f55a1['end']['isAtEnd']&&_0x5f55a1['end']['parent']==_0x5f55a1['start']['nodeAfter']?_0x9c7bfb['createSelection'](_0x5f55a1['start']['nodeAfter'],'on'):_0x9c7bfb['createSelection'](_0x5f55a1),this['_model']['deleteContent'](_0x4458aa,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2c7fa6=(_0x5354c0,_0x54d5cd)=>{_0x54d5cd&&this['_model']['change'](_0x2db887=>{const {commandName:_0x52dd3a,commandParams:_0x44ccdf=[]}=_0x54d5cd,_0x415ced=_0x5354c0['map'](_0x2798f3=>(Lt(_0x2798f3)&&(_0x2798f3=this['_model']['createRange'](_0x2798f3['end'])),_0x2798f3))['filter'](_0x25bb6f=>'$graveyard'!==_0x25bb6f['root']['rootName']);if(_0x415ced['length']<0x1)return;const _0x1a827d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x42c775=>_0x3bdca8['fromRange'](_0x42c775));_0x2db887['setSelection'](_0x415ced);for(const _0x428b5f of this['_editor']['commands']['commands']())_0x428b5f['refresh']();_0x44ccdf['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x52dd3a,..._0x44ccdf);const _0x2720c5=_0x1a827d['filter'](_0x23cd66=>'$graveyard'!=_0x23cd66['root']['rootName']);_0x2720c5['length']>0x0&&_0x2db887['setSelection'](_0x2720c5);for(const _0x47995e of _0x1a827d)_0x47995e['detach']();});},_0x3f1b30=(_0x14c265,_0x41b9da)=>0x1==_0x14c265['length']&&0x1==_0x41b9da['length']&&_0x14c265[0x0]['end']['isEqual'](_0x41b9da[0x0]['start']),_0x5da821=(_0x25e0c2,_0xa56515,_0x59e41c,_0x312a0d)=>Wt(_0x25e0c2,_0xa56515,_0x59e41c,_0x312a0d)?[_0x25e0c2,_0xa56515]:Wt(_0xa56515,_0x25e0c2,_0x312a0d,_0x59e41c)?[_0xa56515,_0x25e0c2]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xd0f2bd),this['_defaultCallbacks']['set']('insertion:discard',_0x34353f),this['_defaultCallbacks']['set']('insertion:join',_0x3f1b30),this['_defaultCallbacks']['set']('insertion:chain',_0x5da821),this['_defaultCallbacks']['set']('deletion:accept',_0x34353f),this['_defaultCallbacks']['set']('deletion:discard',_0xd0f2bd),this['_defaultCallbacks']['set']('deletion:join',_0x3f1b30),this['_defaultCallbacks']['set']('deletion:chain',_0x5da821),this['_defaultCallbacks']['set']('formatInline:accept',_0x2c7fa6),this['_defaultCallbacks']['set']('formatInline:discard',_0xd0f2bd),this['_defaultCallbacks']['set']('formatInline:join',_0x3f1b30),this['_defaultCallbacks']['set']('formatInline:chain',_0xd0f2bd),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2c7fa6),this['_defaultCallbacks']['set']('formatBlock:discard',_0xd0f2bd),this['_defaultCallbacks']['set']('formatBlock:join',_0x3f1b30),this['_defaultCallbacks']['set']('formatBlock:chain',_0xd0f2bd),this['_defaultCallbacks']['set']('attribute:accept',_0xd0f2bd),this['_defaultCallbacks']['set']('attribute:discard',(_0x1975a9,_0x496f43)=>{if(!_0x496f43)return;const _0x1e2bb7=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4ccbbd=>{if(_0x496f43['key']==u)for(const _0x292af5 of _0x1975a9){const _0x3a8093=_0x292af5['start']['nodeAfter'],_0x2ee4d9=_0x496f43['oldValue'];_0x4ccbbd['rename'](_0x3a8093,_0x2ee4d9);}else{if(_0x1e2bb7['_isBlockAttribute'](_0x496f43['key'])){for(const _0x2a711f of _0x1975a9)void 0x0!==_0x496f43['oldValue']?_0x4ccbbd['setAttribute'](_0x496f43['key'],_0x496f43['oldValue'],_0x2a711f['start']['nodeAfter']):_0x4ccbbd['removeAttribute'](_0x496f43['key'],_0x2a711f['start']['nodeAfter']);}else{for(const _0xb0f10e of _0x1975a9)_0x496f43['oldValue']?_0x4ccbbd['setAttribute'](_0x496f43['key'],_0x496f43['oldValue'],_0xb0f10e):_0x4ccbbd['removeAttribute'](_0x496f43['key'],_0xb0f10e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3f1b30);}}function Gt(_0xf1ee63,_0x3f9b22,_0x3fa123){for(const _0x3bc3b3 of _0x3f9b22['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3bc3b3['root']==_0x3bc3b3)return!0x1;if(!_0x3fa123['containsItem'](_0x3bc3b3))return!0x1;if(_0xf1ee63['isObject'](_0x3bc3b3)||_0xf1ee63['isLimit'](_0x3bc3b3))return!0x0;}return!0x1;}function Lt(_0xd4c9c0){return _0xd4c9c0['end']['parent']==_0xd4c9c0['start']['nodeAfter']&&_0xd4c9c0['end']['isAtStart'];}function Jt(_0x562177,_0x5b04b9,_0x4385b4,_0x3839d1){const _0x523cd7=_0x1c981b=>!_0x1c981b['item']['is']('$textProxy')&&!_0x3839d1['isObject'](_0x1c981b['item']),_0x1902f2=_0x562177['start']['getLastMatchingPosition'](_0x523cd7),_0x259bd4=_0x562177['end']['getLastMatchingPosition'](_0x523cd7,{'direction':'backward'});return(!_0x562177['start']['isEqual'](_0x1902f2)||!_0x562177['end']['isEqual'](_0x259bd4))&&(_0x1902f2['isBefore'](_0x259bd4)?_0x4385b4['updateMarker'](_0x5b04b9,{'range':_0x4385b4['createRange'](_0x1902f2,_0x259bd4)}):_0x4385b4['removeMarker'](_0x5b04b9),!0x0);}function Kt(_0x531278){return _0x5f3945(_0x531278);}function Ht(_0x35613f){const _0x340911=_0x35613f['start']['nodeAfter'];return _0x340911&&_0x340911['is']('element');}function qt(_0xc346ac,_0x3e70db){return null==_0xc346ac['end']['nodeBefore']&&_0xc346ac['end']['parent']==_0xc346ac['start']['nodeAfter']?zt(_0xc346ac['start']['nodeAfter'],_0x3e70db):_0xc346ac;}function zt(_0x2b451d,_0xaae625){const _0x97d9fa=_0xaae625['schema']['isObject'](_0x2b451d)||_0xaae625['schema']['isSelectable'](_0x2b451d);return _0xaae625['createRange'](_0xaae625['createPositionAt'](_0x2b451d,'before'),_0x97d9fa?_0xaae625['createPositionAfter'](_0x2b451d):_0xaae625['createPositionAt'](_0x2b451d,'end'));}function Wt(_0x1ea2fc,_0x226c38,_0x36b5d5,_0xa908f0){return!!Qt(_0x1ea2fc,_0x226c38)&&_0x36b5d5['end']['isEqual'](_0xa908f0['start']);}function Qt(_0x3adf42,_0x30d1a3){if(!_0x3adf42['_isDataLoaded']||!_0x30d1a3['_isDataLoaded'])return!0x1;const _0x400975=new Set(Object['keys'](_0x3adf42['attributes'])),_0xa67619=new Set(Object['keys'](_0x30d1a3['attributes']));if(_0x400975['delete']('groupId'),_0xa67619['delete']('groupId'),0x0==_0x400975['size']&&0x0==_0xa67619['size'])return!0x0;if(_0x400975['size']!=_0xa67619['size'])return!0x1;const _0x19b1bc={..._0x3adf42['attributes']},_0x3041d7={..._0x30d1a3['attributes']};return delete _0x19b1bc['groupId'],delete _0x3041d7['groupId'],JSON['stringify'](_0x19b1bc)==JSON['stringify'](_0x3041d7);}function Xt(_0x2857a6,_0x2812de){const _0x2ebbfb=Yt(_0x2857a6['attributes']),_0x40eab7=Yt(_0x2812de);if(!_0x2857a6['_isDataLoaded'])return!0x1;for(const _0x4dd487 of Object['keys'](_0x40eab7))if(!_0x1370a7(_0x2ebbfb[_0x4dd487],_0x40eab7[_0x4dd487]))return!0x1;return!0x0;}function Yt(_0xacc0a5){const _0x3c6745=Object['assign']({},_0xacc0a5);return delete _0x3c6745['skipNestingCheck'],delete _0x3c6745['tablePasteChainId'],_0x3c6745;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x16ce4b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1e04a1,_0x2efcb0,_0x6bb5f0,_0x838585){super(),this['model']=_0x2efcb0,this['view']=_0x6bb5f0,this['commentThreadController']=_0x838585,this['_editor']=_0x1e04a1,this['_acceptCommand']=_0x1e04a1['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1e04a1['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x334a14,_0x27d814)=>_0x334a14||_0x27d814),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4d1ad7=>_0x4d1ad7&&this['_editor']['model']['canEditAt'](_0x2efcb0['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5d04d1=>_0x5d04d1&&this['_editor']['model']['canEditAt'](_0x2efcb0['getRanges']())),this['_pendingAction']=null,_0x6bb5f0['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x6bb5f0,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x6bb5f0,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x6bb5f0,'change:isDirty',()=>{_0x6bb5f0['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 _0x5aa525=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5aa525);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1b6ec0{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4a3494,_0x10fc5c,_0x3dd360,_0x2d3970){super(_0x4a3494),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x297bff(_0x4a3494,c(_0x4a3494,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x10fc5c['authoredAt']),this['bind']('authoredAt')['to'](_0x10fc5c),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',_0x10fc5c,'authoredAt',this,'descriptionParts',(_0x1be15f,_0x331c79,_0xfd4635)=>{const _0x168311=_0xfd4635['map'](_0x33d6a2=>ls(_0x33d6a2['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1be15f-0x1,_0x10fc5c['author']['name'],_0x331c79?_0x2d3970['formatDateTime'](_0x331c79):'',new DOMParser()['parseFromString'](_0x168311,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3157bd(),this['focusTracker']=new _0x1bb104(),this['keystrokes']=new _0x2a082f(),this['focusCycler']=new _0x2f68ed({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x59528f=>_0x59528f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x10fc5c,this['_localUser']=_0x3dd360,this['_config']=_0x2d3970,_0x2d3970['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1d5e35(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xc35f2a}=this['_config'];this['commentsListView']=new _0xc35f2a(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',_0x58b127=>_0x58b127+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1ebbc1,_0x2739d3)=>_0x1ebbc1||!!_0x2739d3);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x531736}=this['_config'],_0x2e338a=new _0x531736(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x558685=_0x2e338a['commentInputView'];return _0x2e338a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x558685,'value',(_0x798eb8,_0x5c5228,_0x3d5e73)=>!!_0x3d5e73||_0x798eb8&&!_0x5c5228),_0x558685['on']('submit',(_0x4f2cb8,_0x4ff04a)=>{this['fire']('addComment',_0x4ff04a),_0x558685['editor']['setData']('');}),_0x558685['on']('cancel',()=>this['focus']()),_0x558685['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2e338a;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x2077ba,_0x4936c4,_0x3df46d,_0xd6783b){super(_0x2077ba,_0x4936c4,_0x3df46d,_0xd6783b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5809ff=>_0x5809ff&&_0x5809ff[0x0]?_0x5809ff[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x17b4f3,_0x33cb78)=>{let _0x40bca8='';for(const _0x60850b of _0x17b4f3)_0x40bca8+='<p>'+ls(_0x60850b['content'],_0x60850b['color'])+'</p>';return _0x33cb78?_0x40bca8:ti(_0x40bca8,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xd6783b['SuggestionView'](_0x2077ba,_0x4936c4,{'formatDateTime':_0xd6783b['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 _0x330794=this['bindTemplate'],_0x53a413=[this['suggestionView']];return this['commentsListView']&&_0x53a413['push'](this['commentsListView']),this['commentThreadInputView']&&_0x53a413['push'](this['commentThreadInputView']),_0x53a413['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x330794['if']('isActive','ck-suggestion-wrapper--active'),_0x330794['to']('type',_0x4ff231=>'ck-suggestion-'+_0x4ff231),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':_0x330794['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x53a413};}['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 _0x1b6ec0{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xab111c,_0x26c975,_0x1e1fec){super(_0xab111c),this['_model']=_0x26c975,this['_config']=_0x1e1fec,this['set']('description',''),this['bind']('authoredAt')['to'](_0x26c975),this['acceptButton']=this['_createButton'](c(_0xab111c,'Accept\x20suggestion'),_0x4abeb0,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0xab111c,'Discard\x20suggestion'),_0x3ab9dd,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x316145(_0xab111c,_0x26c975['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3157bd([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1bb104(),this['keystrokes']=new _0x2a082f(),this['focusCycler']=new _0x2f68ed({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x166cd7=>_0x166cd7['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4bba77=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4bba77['innerHTML']=this['description'],this['on']('change:description',(_0x1805c9,_0x1a5b56,_0x2f9e59)=>{_0x4bba77['innerHTML']=_0x2f9e59;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x42f611=this['bindTemplate'],_0x96e67a=[{'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':_0x42f611['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x42f611['to']('authoredAt',_0x2240fa=>this['_config']['formatDateTime'](_0x2240fa))}]}]},{'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']&&_0x96e67a['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':_0x96e67a}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3ba808,_0x2f7cd3,_0x419ba5,_0x299e2a,_0x2f3dd4){const _0x2e3e12=new _0x138b31(this['locale']);return _0x2e3e12['set']({'label':_0x3ba808,'icon':_0x2f7cd3,'tooltip':!0x0,'tooltipPosition':_0x2f3dd4}),_0x2e3e12['extendTemplate']({'attributes':{'class':_0x419ba5}}),_0x2e3e12['on']('execute',()=>{this['fire'](_0x299e2a,this['_model']['id']);}),_0x2e3e12;}['_setupKeyboardNavigation'](){const _0x5b090f=this['element'];this['keystrokes']['listenTo'](_0x5b090f);for(const _0x46821d of this['focusables'])this['focusTracker']['add'](_0x46821d['element']),this['keystrokes']['listenTo'](_0x46821d['element']);this['keystrokes']['set']('enter',(_0x16873a,_0x207826)=>{_0x5b090f===_0x16873a['target']&&(this['focusCycler']['focusFirst'](),_0x207826());}),this['keystrokes']['set']('esc',(_0x3da7a6,_0x230760)=>{_0x5b090f!==_0x3da7a6['target']&&(this['focus'](),_0x230760());});}}class d extends _0x483067{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2624ff,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x145786){super(_0x145786),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x58b568=this['editor']['config'];_0x58b568['define']('trackChanges.SuggestionThreadView',fe),_0x58b568['define']('trackChanges.SuggestionView',we),_0x58b568['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x58b568['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2a375d,_0x5cf654){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1a9fbd,_0x4bccfa]of this['_handleControllerBuffer']){const _0x8ee601=this['_suggestionToController']['has'](_0x1a9fbd);_0x8ee601||_0x4bccfa?_0x8ee601&&_0x4bccfa&&this['_destroyController'](_0x1a9fbd):this['_initializeController'](_0x1a9fbd);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2a375d,_0x5cf654);}['init'](){const _0x2306a7=this['editor'],_0x5b6a6d=_0x2306a7['plugins']['get']('TrackChangesEditing'),_0x6e7962=_0x2306a7['plugins']['get']('Annotations'),_0x460d07=_0x2306a7['plugins']['get']('EditorAnnotations'),_0x2e1983=_0x2306a7['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x460d07['addSourceCollector'](()=>{const _0x5ba446=[];for(const [_0x2d6738,_0x1e0ea1]of Array['from'](this['_suggestionToController'])){const _0x102e73=_0x2d6738['getAllAdjacentSuggestions'](),_0xbff5d9=[];for(const _0x4d99d7 of _0x102e73){if(!_0x4d99d7['isInContent'])continue;if(_0x4d99d7['isMultiRange']){_0xbff5d9['push'](..._0x4d99d7['getRanges']());continue;}const _0x79f40b=_0x4d99d7['getFirstRange']();if(_0xbff5d9['length']>0x0){const _0x100233=_0xbff5d9[0x0]['getJoined'](_0x79f40b);if(_0x100233){_0xbff5d9[0x0]=_0x100233;continue;}}_0xbff5d9['push'](_0x79f40b);}_0x5ba446['push']([_0x1e0ea1['view'],_0xbff5d9]);}return _0x5ba446;}),this['listenTo'](_0x5b6a6d,'suggestionLoaded',(_0x2f3e28,_0x2589c6)=>{this['listenTo'](_0x2589c6,'change:previous',(_0x4ed521,_0x15319d,_0x3711c4,_0x7d9e6)=>{_0x2589c6['isInContent']&&(null==_0x3711c4?(this['_updateController'](_0x7d9e6['head']),this['_handleSuggestionControllerDelayed'](_0x2589c6,!0x1)):(this['_updateController'](_0x3711c4['head']),null==_0x7d9e6&&this['_handleSuggestionControllerDelayed'](_0x2589c6,!0x0)));}),null!==_0x2589c6['previous']?this['_updateController'](_0x2589c6['head']):this['_handleSuggestionControllerDelayed'](_0x2589c6,!0x1);}),this['listenTo'](_0x5b6a6d,'suggestionUnloaded',(_0x5d1db7,_0x48b586,_0x33affa)=>{this['stopListening'](_0x48b586,'change:previous'),this['_handleControllerBuffer']['delete'](_0x48b586),this['_suggestionToController']['has'](_0x48b586)&&this['_destroyController'](_0x48b586),_0x33affa&&this['_updateController'](_0x33affa['head']);}),this['listenTo'](_0x5b6a6d,'suggestionChanged',(_0x21e88d,_0x319022)=>{this['_updateController'](_0x319022);}),this['listenTo'](_0x6e7962,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2e1983,'addComment',(_0x322eed,{threadId:_0xbf8f99,isFromAdapter:_0x181a1e})=>{if(_0x181a1e||!_0x5b6a6d['hasSuggestion'](_0xbf8f99))return;const _0x30afd9=_0x5b6a6d['getSuggestion'](_0xbf8f99);this['_suggestionToController']['get'](_0x30afd9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x280653=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x12e49e;for(const _0x875919 in _0x280653){const _0x27a4ae=_0x875919,_0x37ad2b=_0x280653[_0x27a4ae];if('trackChangesLicenseKeyValid'==_0x37ad2b||'trackChangesLicenseKeyInvalid'==_0x37ad2b||'trackChangesLicenseKeyExpired'==_0x37ad2b||'trackChangesLicenseKeyDomainLimit'==_0x37ad2b||'trackChangesLicenseKeyNotAllowed'==_0x37ad2b||'trackChangesLicenseKeyEvaluationLimit'==_0x37ad2b||'trackChangesLicenseKeyTrialLimit'==_0x37ad2b||'trackChangesLicenseKeyUsageLimit'==_0x37ad2b){delete _0x280653[_0x27a4ae],_0x12e49e=_0x37ad2b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x12e49e&&_0x280653['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x12e49e&&_0x280653['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x12e49e&&_0x280653['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x12e49e&&_0x280653['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x12e49e&&_0x280653['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x12e49e&&_0x280653['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x12e49e&&_0x280653['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x18c01a=this['editor']['plugins']['get']('Annotations'),_0x9fdb12=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe3343e=Array['from'](_0x18c01a['activeAnnotations'],_0x35602f=>_0x35602f['innerView'])['filter'](_0x14c664=>this['_viewToController']['has'](_0x14c664)),_0xbfb28a=[];for(const _0x5a36d5 of _0xe3343e){const _0x30c9a8=this['_viewToController']['get'](_0x5a36d5)['model']['getAllAdjacentSuggestions']();_0xbfb28a['push'](..._0x30c9a8['reduce']((_0x104e44,_0x22a974)=>[..._0x104e44,..._0x22a974['getMarkerNames']()],[]));}_0x9fdb12['activeMarkers']=_0xbfb28a;}['_addUIComponentsToFactory'](){const _0xca345c=this['editor'],_0x41495b=_0xca345c['locale'],_0x236875=c(_0x41495b,'Track\x20changes'),_0x57c9b6=new _0x4cdcfa([{'type':'switchbutton','model':new _0x4c579a({'withText':!0x0,'isToggleable':!0x0,'label':_0x236875,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4c579a({'withText':!0x0,'label':c(_0x41495b,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4c579a({'withText':!0x0,'label':c(_0x41495b,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4c579a({'withText':!0x0,'label':c(_0x41495b,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4c579a({'withText':!0x0,'label':c(_0x41495b,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xca345c['plugins']['has']('TrackChangesPreview')&&_0x57c9b6['addMany']([{'type':'separator'},{'type':'button','model':new _0x4c579a({'withText':!0x0,'label':c(_0x41495b,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2de590 of _0x57c9b6)if(ke(_0x2de590)){const _0x53ff01=_0xca345c['commands']['get'](_0x2de590['model']['commandName']);_0x2de590['model']['bind']('isOn','isEnabled')['to'](_0x53ff01,'value','isEnabled');}_0xca345c['ui']['componentFactory']['add']('trackChanges',_0x11fb61=>this['_createToolbarButton'](_0x11fb61,_0x57c9b6,_0x236875)),_0xca345c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5cb983=>this['_createMenuBarMenu'](_0x5cb983,_0x57c9b6,_0x236875));}['_createToolbarButton'](_0x829609,_0x596493,_0x5a2787){const _0x172f57=_0x1f4905(_0x829609,_0x3543b6),_0x5beb9e=this['editor']['commands']['get']('trackChanges');_0x172f57['buttonView']['set']({'tooltip':_0x5a2787,'label':_0x5a2787,'icon':_0x3f3917}),_0x172f57['buttonView']['bind']('isOn')['to'](_0x5beb9e,'value'),_0x172f57['buttonView']['on']('execute',()=>{_0x5beb9e['execute'](),this['editor']['editing']['view']['focus']();}),_0x5f3c1f(_0x172f57,_0x596493,{'role':'menu'});const _0x2bb24c=[];for(const _0xf8060c of _0x596493)ke(_0xf8060c)&&_0x2bb24c['push'](this['editor']['commands']['get'](_0xf8060c['model']['commandName']));const _0x1d0f5e=_0x172f57['buttonView'];return _0x1d0f5e['actionView']['unbind']('isEnabled'),_0x1d0f5e['arrowView']['unbind']('isEnabled'),_0x1d0f5e['actionView']['bind']('isEnabled')['to'](_0x5beb9e,'isEnabled'),_0x1d0f5e['arrowView']['bind']('isEnabled')['toMany'](_0x2bb24c,'isEnabled',(..._0x3bc531)=>_0x3bc531['some'](_0x1f3049=>_0x1f3049)),_0x172f57['on']('execute',_0x487dd6=>{this['editor']['execute'](_0x487dd6['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x172f57;}['_createMenuBarMenu'](_0x33e47d,_0x1eda99,_0x40ba7c){const _0x8f3127=new _0x28ce3b(_0x33e47d),_0x24e644=this['editor']['commands']['get']('trackChanges');_0x8f3127['buttonView']['set']({'label':_0x40ba7c,'icon':_0x3f3917});const _0x11e99b=new _0xf507fe(_0x33e47d);for(const _0x499944 of _0x1eda99){if('separator'==_0x499944['type']){_0x11e99b['items']['add'](new _0x19802b(_0x33e47d));continue;}const _0x3b0c2b=new _0x2e0e52(_0x33e47d,_0x8f3127),_0x12ec18=new _0xfebad4(_0x33e47d),_0x5c5e59=_0x499944['model'];_0x12ec18['bind'](...Object['keys'](_0x5c5e59))['to'](_0x5c5e59),_0x12ec18['delegate']('execute')['to'](_0x8f3127),_0x12ec18['on']('execute',()=>{this['editor']['execute'](_0x5c5e59['commandName']),this['editor']['editing']['view']['focus']();}),_0x3b0c2b['children']['add'](_0x12ec18),_0x11e99b['items']['add'](_0x3b0c2b);}return _0x8f3127['bind']('isEnabled')['to'](_0x24e644,'isEnabled'),_0x8f3127['panelView']['children']['add'](_0x11e99b),_0x8f3127;}['_initializeController'](_0x13c3c4){const _0xb15ab9=this['editor'],_0x4643ac=_0xb15ab9['config'],_0x405d0f=_0xb15ab9['plugins']['get']('Annotations'),_0x48896e=_0xb15ab9['plugins']['get']('CommentsRepository'),_0x4b7406=_0xb15ab9['plugins']['get']('EditorAnnotations'),_0x109321=_0xb15ab9['plugins']['get'](_0x2624ff)['me'],_0x682e41=_0x4643ac['get']('trackChanges')['SuggestionThreadView'],_0x38e5c2=_0x4643ac['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5451d2,CommentThreadInputView:_0x3d0ade}=_0xb15ab9['plugins']['get']('CommentsUI');let _0xbae9,_0x529d46,_0x19695d;this['_annotationViews']['has'](_0x13c3c4['id'])?(_0x529d46=this['_annotationViews']['get'](_0x13c3c4['id']),_0xbae9=_0x529d46['mainView']):(_0xbae9=new _0x682e41(_0xb15ab9['locale'],_0x13c3c4,_0x109321,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4643ac['get']('comments.editorConfig'),'licenseKey':_0x4643ac['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4643ac['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4643ac['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4643ac['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x59bd06(_0x4643ac['get']('locale'),_0xb15ab9['locale']),'CommentView':_0x4643ac['get']('comments')['CommentView'],'CommentsListView':_0x5451d2,'CommentThreadInputView':_0x3d0ade,'SuggestionView':_0x38e5c2}),_0xbae9['suggestionView']['acceptButton']['on']('execute',()=>{_0xb15ab9['editing']['view']['focus']();}),_0xbae9['suggestionView']['discardButton']['on']('execute',()=>{_0xb15ab9['editing']['view']['focus']();}),_0x529d46=_0x405d0f['createAnnotationView'](this['editor']['locale'],_0xbae9),_0x529d46['bind']('isDirty')['to'](_0xbae9,'isDirty'),_0x529d46['bind']('length')['to'](_0xbae9),_0x529d46['bind']('type')['to'](_0xbae9,'type',_0x5702ec=>'suggestion-'+_0x5702ec),_0xbae9['on']('escape',()=>{_0x19695d['fire']('escape');}),this['_annotationViews']['set'](_0x13c3c4['id'],_0x529d46));const _0xb99649=_0x48896e['createCommentThreadController'](_0x13c3c4['commentThread'],_0xbae9),_0x2389d0=new pe(_0xb15ab9,_0x13c3c4,_0xbae9,_0xb99649),_0x1550d5=_0x13c3c4['getAllAdjacentSuggestions']()['filter'](_0x24ecf1=>_0x24ecf1['isInContent']);_0xbae9['descriptionParts']=_0xb15ab9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1550d5),this['_suggestionToController']['set'](_0x13c3c4,_0x2389d0),this['_viewToController']['set'](_0xbae9,_0x2389d0),_0x19695d=_0x405d0f['createAnnotation']({'view':_0x529d46,'target':()=>{const _0x1136b9=[],_0x42a1bd=_0x13c3c4['getAllAdjacentSuggestions']()['filter'](_0x33f395=>_0x33f395['isInContent']);for(const _0x356c26 of _0x42a1bd)_0x1136b9['push'](..._0x356c26['getMarkers']());return _0x342b89(_0xb15ab9['editing'],_0x1136b9);},'type':()=>'suggestion-'+_0x2389d0['view']['type']}),_0x48896e['_bindAnnotationToEditors'](_0xbae9,_0x19695d),_0x405d0f['add'](_0x19695d),_0x4b7406['registerAnnotation'](_0x19695d);}['_destroyController'](_0x23a18b){const _0x60f8e4=this['editor']['plugins']['get']('CommentsRepository'),_0x3c9cec=this['editor']['plugins']['get']('Annotations'),_0x437a42=this['_suggestionToController']['get'](_0x23a18b),_0xbab9c4=_0x437a42['view'],_0x59396c=_0x3c9cec['getByInnerView'](_0xbab9c4);_0x60f8e4['_unbindEditors'](_0xbab9c4),_0x59396c&&_0x3c9cec['remove'](_0x59396c),this['_suggestionToController']['delete'](_0x23a18b),this['_viewToController']['delete'](_0xbab9c4),_0x437a42['destroy']();}['_updateController'](_0x24fa67){if(!_0x24fa67['isInContent']||!this['_suggestionToController']['has'](_0x24fa67))return;const _0x63d314=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22cdff=this['_suggestionToController']['get'](_0x24fa67),_0x36d1b6=_0x24fa67['getAllAdjacentSuggestions']();_0x22cdff['view']['descriptionParts']=_0x63d314['descriptionFactory']['getDescriptions'](_0x36d1b6);}['destroy'](){for(const _0x54d2c9 of this['_suggestionToController']['keys']())this['_destroyController'](_0x54d2c9);for(const _0x752f1e of this['_annotationViews']['values']())_0x752f1e['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x523746){return'model'in _0x523746;}class k extends _0x483067{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xd61035){this['editor']['plugins']['get'](p)['adapter']=_0xd61035;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x11e491){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x11e491);}['getSuggestions']({skipNotAttached:_0x44b445=!0x1,toJSON:_0x2ef715=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x44b445,'toJSON':_0x2ef715});}['getSuggestion'](_0x440f4b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x440f4b);}}const w=['Pagination'];class T extends _0x483067{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x474d08=this['editor'];if(_0x474d08['config']['define']('trackChangesData.editorCreator',_0x27fa89=>{const _0xbbf8b7=_0x474d08['model']['document']['getRootNames']()['reduce']((_0x1a8dc0,_0x23e787)=>(_0x1a8dc0[_0x23e787]='',_0x1a8dc0),{});return _0x474d08['constructor']['create'](_0xbbf8b7,_0x27fa89);}),'function'!=typeof _0x474d08['config']['get']('trackChangesData')['editorCreator'])throw new _0x213580('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x410ebb){return N(this['editor'],!0x0,_0x410ebb);}['getDataWithDiscardedSuggestions'](_0x467a97){return N(this['editor'],!0x1,_0x467a97);}}class D extends _0x483067{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x16f42d){function _0x562c42(_0x5cbe69){return _0x5cbe69['map'](_0x3e677a=>String['fromCharCode'](_0x3e677a))['join']('');}super(_0x16f42d),this['result']='end',_0x16f42d[_0x562c42([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x562c42([0x76,0x69,0x65,0x77])][_0x562c42([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x562c42([0x61,0x75,0x74,0x6f]),_0x16f42d[_0x562c42([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x562c42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x562c42([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x562c42([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x562c42([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0x5e7761){return void 0x0!==_0x5e7761['getRootsAttributes'];}async function N(_0x23ca69,_0x23b351,_0x4fc9d0){const _0x58ab8=_0x516d15(_0x23ca69,w);_0x58ab8['plugins']['push'](p,D),_0x58ab8['rootsAttributes']=Ge(_0x23ca69)?_0x23ca69['getRootsAttributes']():void 0x0;const _0x4b2ef4=document['createDocumentFragment'](),_0x81914d=_0x23ca69['config']['get']('trackChangesData')['editorCreator'],_0x5c5991=await _0x81914d(_0x58ab8,()=>function(_0x25fb4c){const _0x59c5ad=document['createElement']('div');return _0x25fb4c['appendChild'](_0x59c5ad),_0x59c5ad;}(_0x4b2ef4));!function(_0x55b0d4,_0x534dbd){const _0x5d8956=_0x55b0d4['model']['document']['getRootNames']()['reduce']((_0x4807b8,_0x58ed0f)=>(_0x4807b8[_0x58ed0f]=_0x55b0d4['data']['get']({'rootName':_0x58ed0f}),_0x4807b8),{}),_0x48f5db=_0x55b0d4['plugins']['get']('Users')['users']['map'](_0x5909c7=>({'id':_0x5909c7['id'],'name':_0x5909c7['name']})),_0x3edc55=_0x55b0d4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4cc067=_0x55b0d4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x52c6ee=_0x534dbd['plugins']['get']('Users'),_0x45e2c7=_0x534dbd['plugins']['get']('TrackChangesEditing'),_0x1de5c9=_0x534dbd['plugins']['get']('CommentsRepository');for(const _0x550365 of _0x1de5c9['getCommentThreads']())_0x550365['remove']();for(const _0x13b042 of _0x48f5db)_0x52c6ee['getUser'](_0x13b042['id'])||_0x52c6ee['addUser'](_0x13b042);_0x52c6ee['me']||_0x52c6ee['useAnonymousUser']();for(const _0x52894c of _0x4cc067)_0x1de5c9['addCommentThread'](_0x52894c);for(const _0x51d586 of _0x3edc55)_0x45e2c7['addSuggestionData'](_0x51d586);_0x534dbd['data']['set'](_0x5d8956);}(_0x23ca69,_0x5c5991),_0x5c5991['execute'](_0x23b351?'acceptAllSuggestions':'discardAllSuggestions');const _0x57335a=Ge(_0x5c5991)?_0x5c5991['getFullData'](_0x4fc9d0):_0x5c5991['data']['get'](_0x4fc9d0);return await _0x5c5991['destroy'](),_0x57335a;}class Me extends _0x1b6ec0{['options'];constructor(_0x29a613,_0x336f7d){super(_0x29a613),this['options']=_0x336f7d,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'](_0x4af9b3,_0x20de47){if(!this['element'])return;const _0xaee916=[];for(const [_0x1e8b10,_0x4f1df3]of _0x4af9b3){const _0x4cc499=document['createElement']('div');_0x4cc499['setAttribute']('data-ck-root-name',_0x1e8b10),_0x4cc499['className']=_0x4f1df3['classes']+'\x20ck-track-changes-preview__root-container',_0x4cc499['innerHTML']=_0x4f1df3['content'],_0xaee916['push'](_0x4cc499);}_0x20de47(this['element'],_0xaee916),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x228e76{constructor(_0x17c54c){super(_0x17c54c),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x18d956=this['editor'],_0x247af8=_0x18d956['locale'],_0x526719=_0x18d956['plugins']['get']('Dialog');let _0x100e3a;const _0x49aee8=function(_0x4f4f06){const _0x34c4b7={};if('editables'in _0x4f4f06['ui']['view']){for(const [_0x5b4fc8,_0x5c1836]of Object['entries'](_0x4f4f06['ui']['view']['editables']))_0x34c4b7[_0x5b4fc8]=_0x5c1836['element'];}else _0x34c4b7[_0x4f4f06['model']['document']['getRootNames']()[0x0]]=_0x4f4f06['ui']['view']['editable']['element'];return _0x34c4b7;}(_0x18d956),_0x4f9545=function(_0x5ecbeb){let _0xdfab19=0x0;for(const _0x55c1db of Object['values'](_0x5ecbeb))_0xdfab19=Math['max'](_0xdfab19,_0x55c1db['getBoundingClientRect']()['width']);let _0x42cc54=0x0;for(const _0x475882 of Object['values'](_0x5ecbeb))_0x42cc54+=_0x475882['getBoundingClientRect']()['height'];const _0x345233=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x207d47=Math['min'](_0x42cc54,_0x345233);return{'width':_0xdfab19,'height':_0x207d47};}(_0x49aee8);_0x526719['show']({'id':'finalContentPreview','title':c(_0x247af8,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x247af8,{'dialogRects':_0x4f9545}),'onHide':()=>{_0x100e3a['detachFromDom']();},'onShow':()=>{_0x18d956['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2b22f8=>{const _0x4df5f7=this['_standarizeRootsData'](_0x2b22f8,_0x18d956,_0x49aee8);_0x526719['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4df5f7,_0x18d956['config']['get']('trackChanges.preview.renderFunction'));}),_0x100e3a=new _0x4227a4(_0x247af8,[_0x526719['view']]),_0x100e3a['attachToDom'](),_0x100e3a['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x18d956['once']('destroy',()=>{_0x100e3a['detachFromDom']();});const _0x82be32=_0x526719['view']['headerView']['class'];_0x526719['view']['headerView']['class']=_0x82be32?_0x82be32+'\x20ck-reset_all':'ck-reset_all',_0x526719['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x526719['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x70f441=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3780b9=_0x70f441['previewMode'],_0x1ab97b={};if('$labels'===_0x3780b9){for(const _0x582717 of _0x70f441['getMergeFieldsIds']())_0x1ab97b[_0x582717]=_0x70f441['getLabel'](_0x582717)||_0x582717;}else{const _0x42c7e2='$defaultValues'===_0x3780b9?_0x70f441['getDefaultValues']():_0x70f441['getDataSetValues'](_0x3780b9,!0x0);for(const _0x15fce3 of Object['entries'](_0x42c7e2)){const [_0xa62690,_0xc1971f]=_0x15fce3;_0x1ab97b[_0xa62690]=null!==_0xc1971f?_0xc1971f:_0x70f441['getLabel'](_0xa62690)||_0xa62690;}}return{'mergeFieldsData':_0x1ab97b};}['_standarizeRootsData'](_0xb171f5,_0x2f19ad,_0x4c8996){let _0x3b2d22;if('string'==typeof _0xb171f5){const _0x203d1e=_0x2f19ad['model']['document']['getRootNames']()[0x0];_0x3b2d22={[_0x203d1e]:_0xb171f5};}else _0x3b2d22=_0xb171f5;const _0x324b0a=this['_fixMediaEmbeds'](_0x3b2d22,_0x2f19ad),_0xf57723=function(_0x463080,_0x13cfbd){for(const [_0x22a087,_0x2f193c]of _0x463080)_0x2f193c['classes']=_0x13cfbd[_0x22a087]['classList']['value']['replace']('ck-focused','');return _0x463080;}(this['_sortRoots'](_0x2f19ad)['reduce']((_0x4777fc,_0x250f3a)=>(_0x4777fc['push']([_0x250f3a,{'content':_0x324b0a[_0x250f3a],'classes':''}]),_0x4777fc),[]),_0x4c8996);return _0xf57723;}['_fixMediaEmbeds'](_0x239da0,_0x311e47){if(!_0x311e47['plugins']['has']('MediaEmbedEditing'))return _0x239da0;const _0x4b9e78=_0x311e47['plugins']['get']('MediaEmbedEditing');for(const [_0x469f5f,_0x15924b]of Object['entries'](_0x239da0)){const _0x5416a6=document['createElement']('div');_0x5416a6['innerHTML']=_0x15924b,(_0x5416a6['querySelectorAll']('figure.media')['forEach'](_0x59afa1=>{const _0x2cebca=_0x59afa1['querySelector']('oembed');if(_0x2cebca){const _0x4bacf3=_0x2cebca['getAttribute']('url');if(_0x4bacf3){const _0x55c8f2=_0x4b9e78['registry']['getMediaViewElement'](new _0x3f4f1c(_0x311e47['editing']['view']['document']),_0x4bacf3,{'elementName':'','renderForEditingView':!0x0}),_0x58dcbd=document['createElement']('div');_0x58dcbd['classList']['add']('ck-media__wrapper'),_0x55c8f2['render'](_0x58dcbd,_0x311e47['editing']['view']['domConverter']),_0x2cebca['replaceWith'](_0x58dcbd);}}}),_0x239da0[_0x469f5f]=_0x5416a6['innerHTML']);}return _0x239da0;}['_sortRoots'](_0x5ec17a){if(!function(_0x13b3ad){return void 0x0!==_0x13b3ad['getRootsAttributes'];}(_0x5ec17a))return _0x5ec17a['model']['document']['getRootNames']();const _0x2c3477=[],_0x375b43=new Map();for(const _0x7e46ff of _0x5ec17a['model']['document']['getRootNames']()){const _0xb37233=_0x5ec17a['editing']['view']['getDomRoot'](_0x7e46ff)['getClientRects']()['item'](0x0);_0x2c3477['push'](_0x7e46ff),_0x375b43['set'](_0x7e46ff,_0xb37233);}return _0x2c3477['sort']((_0x1c702f,_0x3aaec6)=>{const _0x358c98=_0x375b43['get'](_0x1c702f),_0x566c0c=_0x375b43['get'](_0x3aaec6);return _0x358c98['y']-_0x566c0c['y']||_0x358c98['x']-_0x566c0c['x'];}),_0x2c3477;}}class te extends _0x483067{static get['requires'](){return[T,_0x2960d0];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x378833){super(_0x378833),_0x378833['commands']['add']('previewFinalContent',new re(this['editor'])),_0x378833['config']['define']('trackChanges.preview.renderFunction',(_0x1f4ca9,_0x569d4e)=>{for(const _0x4c758e of _0x569d4e)_0x1f4ca9['appendChild'](_0x4c758e);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as _0x4cdfae,Plugin as _0xbcf0e2,PendingActions as _0x3a3a87}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4c980e,ObservableMixin as _0x95b379,uid as _0x525dd0,priorities as _0x4a1678,insertToPriorityArray as _0x22fed0,toArray as _0x576b59,logWarning as _0xf2f0a4,getEnvKeystrokeText as _0x5948ab,FocusTracker as _0x2a92df,KeystrokeHandler as _0x353ea6,Collection as _0x3f5a9a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x1a4532,IconCancel as _0x10cf07,IconTrackChanges as _0x1f04dc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x2ef507,View as _0x2a7dd6,ViewCollection as _0x85baf3,FocusCycler as _0x1f8238,ViewModel as _0x17032b,createDropdown as _0x3da825,SplitButtonView as _0x3882e7,addListToDropdown as _0xd4c51c,MenuBarMenuView as _0x4832cb,MenuBarMenuListView as _0x2443b3,ListSeparatorView as _0xb29ec1,MenuBarMenuListItemView as _0x43c1d9,MenuBarMenuListItemButtonView as _0x1dc828,BodyCollection as _0x214e5f,Dialog as _0x43a326}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4e4a77,hashObject as _0x5c99bd,surroundingMarkersDetector as _0x4f325c,FOCUS_ANNOTATION_KEYSTROKE as _0x75bc84,AriaDescriptionView as _0x19b02b,setupThreadKeyboardNavigation as _0x211b98,trimHtml as ti,UserView as _0x18cce9,LateFocusButtonView as _0x50c6ef,getDateTimeFormatter as _0x53708d,getAllMarkersDomElementsSorted as _0x5129a0,sanitizeEditorConfig as _0x4d7c46}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x10219b,LiveRange as _0x65a6cb,LivePosition as _0xcd387e,DowncastWriter as _0x3fb753}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x565a9e,toWidget as _0xb355a2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x8aad8b,set as _0x18a903,isEqual as _0x43bc0c,unset as _0x1517fc,omit as Ft}from'es-toolkit/compat';import{Delete as _0xb1e472,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x15a556}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x4edd80}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x4cdfae{['_enabledCommands'];constructor(_0x14504c,_0x312773){super(_0x14504c),this['_enabledCommands']=_0x312773,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 _0x9feb8d of this['editor']['commands']['commands']())_0x9feb8d['affectsData']&&!this['_enabledCommands']['has'](_0x9feb8d)&&_0x9feb8d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xb47be3 of this['editor']['commands']['commands']())_0xb47be3['affectsData']&&!this['_enabledCommands']['has'](_0xb47be3)&&_0xb47be3['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x4cdfae{['_suggestions'];constructor(_0x10cdcd,_0x3bc614){super(_0x10cdcd),this['_suggestions']=_0x3bc614,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x520e93){const _0x1dbcd8=this['_suggestions']['get'](_0x520e93);if(!_0x1dbcd8)throw new _0x4c980e('track-changes-accept-suggestion-not-found',this);const _0x500732=_0x1dbcd8['getRanges']();this['editor']['model']['canEditAt'](_0x500732)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1dbcd8);}}class R extends _0x4cdfae{['_suggestions'];constructor(_0x857b42,_0xc6be13){super(_0x857b42),this['_suggestions']=_0xc6be13,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4dd31a){const _0x1194c4=this['_suggestions']['get'](_0x4dd31a);if(!_0x1194c4)throw new _0x4c980e('track-changes-discard-suggestion-not-found',this);const _0x4e8a96=_0x1194c4['getRanges']();this['editor']['model']['canEditAt'](_0x4e8a96)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1194c4);}}function ls(_0xd0b83a,_0x5cf980){let _0x54cdc0='';return _0x54cdc0+=_0xd0b83a['split']('*')['map']((_0x11ecfb,_0x480bef)=>_0x480bef%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x11ecfb)+'</span>':nn(_0x11ecfb))['join'](''),_0x5cf980&&(_0x54cdc0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5cf980['value']+'\x22\x20title=\x22'+_0x5cf980['title']+'\x22></span>'),_0x54cdc0;}function nn(_0x58ace7){const _0xb6fdc9=document['createElement']('span');return _0xb6fdc9['innerText']=_0x58ace7,_0xb6fdc9['innerHTML'];}function ts(_0x1a60e2){return _0x1a60e2['sort']((_0x210908,_0x5e736e)=>'deletion'==_0x210908['type']&&'deletion'!=_0x5e736e['type']?-0x1:'deletion'!=_0x210908['type']&&'deletion'==_0x5e736e['type']?0x1:0x0);}function to(_0x5a6d61,_0x419f87){let _0x3c77d1,_0x403623=0x0;const _0x31f7ef=[],_0x13bd95=_0x419f87['schema'];for(;_0x403623<_0x5a6d61['length'];){const _0x192f6c=_0x5a6d61[_0x403623],_0x1bfd06=_0x5a6d61[_0x403623+0x1];_0x3c77d1||(_0x3c77d1=_0x419f87['createPositionBefore'](_0x192f6c)),on(_0x419f87,_0x192f6c,_0x1bfd06)||(_0x31f7ef['push'](_0x419f87['createRange'](_0x3c77d1,_0x13bd95['isObject'](_0x192f6c)?_0x419f87['createPositionAfter'](_0x192f6c):_0x419f87['createPositionAt'](_0x192f6c,'end'))),_0x3c77d1=null),_0x403623++;}return _0x31f7ef;}function on(_0x5a15ac,_0x1c4966,_0x942d21){if(!_0x942d21)return!0x1;const _0x3f3000=_0x5a15ac['createPositionAfter'](_0x1c4966),_0x161fd7=_0x5a15ac['createPositionBefore'](_0x942d21);return _0x3f3000['isTouching'](_0x161fd7);}function rs(_0x3b9443,_0x2c931f,_0x19a2ef){for(;_0x19a2ef['length'];){const _0x34859d=_0x19a2ef['splice'](0x0,0x64);_0x3b9443['change'](()=>{for(const _0x58dc47 of _0x34859d)_0x58dc47['isInContent']&&_0x2c931f['execute'](_0x58dc47['id']);});}}class x extends _0x4cdfae{['_command'];['_suggestions'];constructor(_0x6a4ff4,_0x59afad,_0x294ed3){super(_0x6a4ff4),this['_command']=_0x59afad,this['_suggestions']=_0x294ed3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2b37aa=Array['from'](this['_suggestions']['values']())['some'](_0x47c2f6=>_0x47c2f6['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2b37aa;}['execute'](){const _0x44539c=ts(Array['from'](this['_suggestions']['values']()));for(const _0x271cfb of _0x44539c){const _0x28d5e7=_0x271cfb['getRanges']();if(!this['editor']['model']['canEditAt'](_0x28d5e7))return;}rs(this['editor']['model'],this['_command'],_0x44539c);}}class E extends _0x4cdfae{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x14fb67,_0x5d98ca,_0x4f726a){super(_0x14fb67),this['_command']=_0x5d98ca,this['_suggestions']=_0x4f726a,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5badeb=this['editor']['model']['document']['selection'],_0x526746=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x556451,_0x1f8e5a){const _0x498b42=Array['from'](_0x556451['getRanges']()),_0x40bfcc=new Set();for(const _0x25699f of _0x1f8e5a)if(_0x25699f['isInContent']){for(const _0x139832 of _0x498b42)for(const _0x30e333 of _0x25699f['getRanges']())(_0x139832['isIntersecting'](_0x30e333)||_0x556451['isCollapsed']&&!_0x25699f['isMultiRange']&&_0x25699f['next']&&_0x30e333['end']['isTouching'](_0x139832['start']))&&_0x40bfcc['add'](_0x25699f);}return _0x40bfcc;}(_0x5badeb,_0x526746),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5d7b99=ts(Array['from'](this['_selectedSuggestions']));for(const _0x22e6f0 of _0x5d7b99){const _0x205709=_0x22e6f0['getRanges']();if(!this['editor']['model']['canEditAt'](_0x205709))return;}rs(this['editor']['model'],this['_command'],_0x5d7b99);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x95b379(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xdaaa40,_0x1f259d){super(),this['id']=_0x1f259d['id'],this['type']=_0x1f259d['type'],this['subType']=_0x1f259d['subType']||null,this['author']=_0x1f259d['author'],this['creator']=_0x1f259d['creator']||_0x1f259d['author'],this['isExternal']=Boolean(_0x1f259d['attributes']&&_0x1f259d['attributes']['@external']),this['data']=null,this['_model']=_0xdaaa40,this['_onAccept']=_0x1f259d['onAccept'],this['_onDiscard']=_0x1f259d['onDiscard'],this['_onAttributesChange']=_0x1f259d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1f259d['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 _0x988841=this;for(;_0x988841['previous'];)_0x988841=_0x988841['previous'];return _0x988841;}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'](_0xee8a82){this['_markerNames']['add'](_0xee8a82);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5d675e=>this['_model']['markers']['get'](_0x5d675e))['filter'](_0x4f6d1d=>_0x4f6d1d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2010ed=>{for(const _0xf6d5c of this['getMarkers']())_0x2010ed['removeMarker'](_0xf6d5c);}),this['_markerNames']['clear']();}['removeMarker'](_0x3bc911){this['_model']['change'](_0x2e2e5f=>{_0x2e2e5f['removeMarker'](_0x3bc911);}),this['_markerNames']['delete'](_0x3bc911);}['addRange'](_0x179c98){const _0x18d5da='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x18d5da),this['_model']['change'](_0xf2cc30=>{_0xf2cc30['addMarker'](_0x18d5da,{'range':_0x179c98,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x875848){for(const _0x4d1c4e of this['getRanges']())if(_0x4d1c4e['isIntersecting'](_0x875848))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x59c42a=>_0x59c42a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2b1b19,_0x3b8fc1)=>[..._0x2b1b19,..._0x3b8fc1['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2e5fc1=this['getRanges']();if(0x1!=_0x2e5fc1['length'])return null;const _0xb238f2=_0x2e5fc1[0x0],_0x5b18f4=_0xb238f2['start']['nodeAfter'],_0x1682a0=_0xb238f2['end']['nodeBefore'];return _0x5b18f4 instanceof _0x10219b?_0x5b18f4!=_0x1682a0?null:_0x5b18f4: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 _0x54b137=[];let _0x543d04=this['head'];for(;_0x543d04;)_0x54b137['push'](_0x543d04),_0x543d04=_0x543d04['next'];return _0x54b137;}['setAttribute'](_0x4f14ed,_0x15411d){const _0x8873ed=_0x8aad8b(this['attributes']);_0x18a903(_0x8873ed,_0x4f14ed,_0x15411d),_0x43bc0c(_0x8873ed,this['attributes'])||(this['attributes']=_0x8873ed,this['_onAttributesChange'](_0x8873ed));}['removeAttribute'](_0x35708b){const _0x4b56b2=_0x8aad8b(this['attributes']);_0x1517fc(_0x4b56b2,_0x35708b),_0x43bc0c(_0x4b56b2,this['attributes'])||(this['attributes']=_0x4b56b2,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 _0x525dd0()['substr'](0x1,0x5);}}function c(_0xfee8cd,_0x50478c,_0xbc361e){const _0xc399be=_0xfee8cd['t'],t=_0xfee8cd['t'];switch(_0x50478c){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',_0xbc361e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xbc361e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xbc361e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xbc361e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xbc361e);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',_0xbc361e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xbc361e);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',_0xbc361e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xbc361e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xbc361e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xbc361e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xbc361e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xbc361e);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xbc361e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xbc361e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xbc361e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xbc361e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xbc361e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xbc361e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xbc361e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xbc361e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xbc361e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xbc361e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xbc361e);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0xbc361e);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'},_0xbc361e);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0xbc361e);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0xbc361e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xbc361e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xbc361e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xbc361e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xbc361e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xbc361e);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'},_0xbc361e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xbc361e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xbc361e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xbc361e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xbc361e);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'},_0xbc361e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xbc361e);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'},_0xbc361e);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0xbc361e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xbc361e);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'},_0xbc361e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xbc361e);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'},_0xbc361e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xbc361e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xbc361e);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'},_0xbc361e);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xbc361e);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 _0xc399be({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xbc361e);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xc399be({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xbc361e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xbc361e);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'},_0xbc361e);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'},_0xbc361e);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'},_0xbc361e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x50478c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x562c34,_0x560477){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x562c34,this['_locale']=_0x560477;}['getDescriptions'](_0x40c7a5){const _0x513700=[],_0x2aa750=new Set(),_0x59ba02=new Set();for(let _0x199f71=0x0;_0x199f71<_0x40c7a5['length'];_0x199f71++){const _0x306cae=_0x40c7a5[_0x199f71];if(!_0x306cae['isInContent'])continue;const _0xc49a1b=this['_handleCustomCallbackDescription'](_0x306cae);if(_0xc49a1b){if(null!=_0x306cae['subType']){if(_0x2aa750['has'](_0x306cae['subType']))continue;_0x2aa750['add'](_0x306cae['subType']);}_0x513700['push'](_0xc49a1b);}else{if('attribute'!=_0x306cae['type'])'insertion'!=_0x306cae['type']&&'deletion'!=_0x306cae['type']||this['_handleInsertRemoveSuggestionDescription'](_0x513700,_0x306cae,_0x40c7a5[_0x199f71+0x1]);else{const _0x344948=_0x306cae['data']['key'];if(_0x59ba02['has'](_0x344948))continue;_0x59ba02['add'](_0x306cae['data']['key']),_0x344948==u?this['_handleRenameSuggestionDescription'](_0x513700,_0x306cae):this['_handleAttributeSuggestionDescription'](_0x513700,_0x306cae);}}}return this['_resolveDescriptionItems'](_0x513700);}['registerDescriptionCallback'](_0x4485a9){this['_customCallbacks']['push'](_0x4485a9);}['registerElementLabel'](_0x513fb3,_0x552b40,_0x40a0e5=_0x4a1678['normal']){'function'==typeof _0x513fb3?_0x22fed0(this['_itemLabelsCallbacks'],{'matchingCallback':_0x513fb3,'label':_0x552b40,'priority':_0x40a0e5}):this['_itemLabels']['set'](_0x513fb3,_0x552b40);}['registerAttributeLabel'](_0x486bce,_0x90bc5){this['_attributeLabels']['set'](_0x486bce,_0x90bc5);}['getItemLabel'](_0xa015be,_0x375ebc=0x1){let _0x4bd4a0;for(const _0x4fabfa of this['_itemLabelsCallbacks'])if(_0x4fabfa['matchingCallback'](_0xa015be)){_0x4bd4a0=_0x4fabfa['label'];break;}return _0x4bd4a0||(_0x4bd4a0=this['_itemLabels']['get'](_0xa015be['name'])),_0x4bd4a0?_0x4bd4a0(_0x375ebc):0x1!==_0x375ebc?_0x375ebc+'\x20'+_0xa015be['name']+'s':''+_0xa015be['name'];}['_addDescriptionItems'](_0x11094d,_0x7d4b7d){const _0xd80f28=_0x7d4b7d['getFirstRange']()['getWalker'](),_0x1e18d3='insertion'==_0x7d4b7d['type']?'add':'remove';for(const _0x2127d7 of _0xd80f28){const _0x5b2c8b=_0x2127d7['item'],_0x379959=_0x11094d[_0x11094d['length']-0x1];if(_0x5b2c8b['is']('$textProxy'))_0x379959&&_0x379959['type']['indexOf']('Container')>-0x1&&_0x11094d['pop'](),_0x379959&&'text'==_0x379959['type']?_0x379959[_0x1e18d3]+=_0x5b2c8b['data']:_0x11094d['push']({'type':'text','add':'add'==_0x1e18d3?_0x5b2c8b['data']:'','remove':'remove'==_0x1e18d3?_0x5b2c8b['data']:''});else{if(this['_schema']['isObject'](_0x5b2c8b)){const _0x3f11b4=_0x5b2c8b;if(_0x379959&&_0x379959['type']['indexOf']('Container')>-0x1&&_0x11094d['pop'](),'elementEnd'==_0x2127d7['type'])continue;_0x379959&&_0x379959['type']==_0x1e18d3+'Object'&&_0x379959['element']['name']==_0x3f11b4['name']?_0x379959['quantity']++:_0x11094d['push']({'type':_0x1e18d3+'Object','element':_0x3f11b4,'quantity':0x1}),_0xd80f28['skip'](_0x51aa03=>!('elementEnd'==_0x51aa03['type']&&_0x51aa03['item']==_0x5b2c8b));}else{if(this['_schema']['checkChild'](_0x5b2c8b,'$text')||_0x5b2c8b['is']('element','softBreak')){const _0x5dadfb=_0x5b2c8b;if('add'==_0x1e18d3&&'elementStart'==_0x2127d7['type']||'remove'==_0x1e18d3&&'elementEnd'==_0x2127d7['type'])continue;if(_0x379959&&-0x1==_0x379959['type']['indexOf']('Container')){'text'==_0x379959['type']&&(_0x379959[_0x1e18d3]+='\x0a');continue;}let _0x491a67;if(_0x491a67='add'==_0x1e18d3?_0x5dadfb['nextSibling']&&!this['_schema']['isObject'](_0x5dadfb['nextSibling'])?_0x5dadfb['nextSibling']:null:_0x5dadfb['previousSibling']&&!this['_schema']['isObject'](_0x5dadfb['previousSibling'])?_0x5dadfb['previousSibling']:null,_0x5dadfb['isEmpty']||_0x491a67&&_0x491a67['isEmpty']){const _0x1d9bc3=_0x491a67&&_0x491a67['isEmpty']?_0x491a67:_0x5dadfb;_0x379959&&_0x379959['type']==_0x1e18d3+'EmptyContainer'&&_0x379959['element']['name']==_0x1d9bc3['name']?_0x379959['quantity']++:_0x11094d['push']({'type':_0x1e18d3+'EmptyContainer','element':_0x1d9bc3,'quantity':0x1});}else _0x11094d['push']({'type':_0x1e18d3+'Container','element':_0x5dadfb});}}}}}['_resolveDescriptionItems'](_0x1f536f){const _0x120074=this['_locale'],_0xb8c6a8=[],_0x876c3a=[],_0xcccd51=[];for(const _0x462a40 of _0x1f536f)switch(_0x462a40['type']){case'text':if(_0x462a40['add']=_0x462a40['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x462a40['remove']=_0x462a40['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x462a40['add']&&''!=_0x462a40['remove']){_0xb8c6a8['push']({'type':'replace','content':c(_0x120074,'REPLACE_TEXT',['\x22'+_0x462a40['remove']+'\x22','\x22'+_0x462a40['add']+'\x22'])});continue;}if(null!=_0x462a40['add']['match'](/^ +$/)){_0xb8c6a8['push']({'type':'insertion','content':c(_0x120074,'*Insert:*\x20%0',c(_0x120074,'ELEMENT_SPACE',_0x462a40['add']['length']))});continue;}if(null!=_0x462a40['remove']['match'](/^ +$/)){_0xb8c6a8['push']({'type':'deletion','content':c(_0x120074,'*Remove:*\x20%0',c(_0x120074,'ELEMENT_SPACE',_0x462a40['remove']['length']))});continue;}if(''!=_0x462a40['add']){_0xb8c6a8['push']({'type':'insertion','content':c(_0x120074,'*Insert:*\x20%0','\x22'+_0x462a40['add']+'\x22')});continue;}_0xb8c6a8['push']({'type':'deletion','content':c(_0x120074,'*Remove:*\x20%0','\x22'+_0x462a40['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xb8c6a8['push']({'type':'insertion','content':c(_0x120074,'*Insert:*\x20%0',this['getItemLabel'](_0x462a40['element'],_0x462a40['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xb8c6a8['push']({'type':'deletion','content':c(_0x120074,'*Remove:*\x20%0',this['getItemLabel'](_0x462a40['element'],_0x462a40['quantity']))});continue;case'addContainer':_0xb8c6a8['push']({'type':'insertion','content':c(_0x120074,'*Split:*\x20%0',this['getItemLabel'](_0x462a40['element'],_0x462a40['quantity']))});continue;case'removeContainer':_0xb8c6a8['push']({'type':'deletion','content':c(_0x120074,'*Merge:*\x20%0',this['getItemLabel'](_0x462a40['element'],_0x462a40['quantity']))});continue;case'addFormat':_0x876c3a['push'](_0x462a40['key']);continue;case'removeFormat':_0xcccd51['push'](_0x462a40['key']);continue;default:_0xb8c6a8['push'](_0x462a40);}if(_0x876c3a['length']){const _0x564241=_0x876c3a['map'](_0x31494f=>this['_attributeLabels']['has'](_0x31494f)?this['_attributeLabels']['get'](_0x31494f):_0x31494f)['join'](',\x20');_0xb8c6a8['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x564241)});}if(_0xcccd51['length']){const _0x13bb39=_0xcccd51['map'](_0x40e154=>this['_attributeLabels']['has'](_0x40e154)?this['_attributeLabels']['get'](_0x40e154):_0x40e154)['join'](',\x20');_0xb8c6a8['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x13bb39)});}return _0xb8c6a8;}['_handleCustomCallbackDescription'](_0x4290cc){for(const _0x5e18e0 of this['_customCallbacks']){const _0x53ae8a=_0x5e18e0(_0x4290cc);if(_0x53ae8a&&'type'in _0x53ae8a)return _0x53ae8a;}}['_handleAttributeSuggestionDescription'](_0x2bb89e,_0x3f905b){const _0x909802=_0x3f905b['data'],_0x51bbed=void 0x0===_0x909802['newValue']?'removeFormat':'addFormat';_0x2bb89e['push']({'type':_0x51bbed,'key':_0x909802['key']});}['_handleRenameSuggestionDescription'](_0x94c019,_0x1981b1){_0x94c019['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1981b1['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x168e1d,_0x2528ef,_0x28de52){if(this['_addDescriptionItems'](_0x168e1d,_0x2528ef),_0x28de52&&_0x28de52['getFirstRange']()&&!_0x2528ef['getFirstRange']()['end']['isEqual'](_0x28de52['getFirstRange']()['start'])){const _0x33702b=_0x168e1d[_0x168e1d['length']-0x1],_0x519242='insertion'==_0x2528ef['type']?'add':'remove';_0x33702b&&'text'==_0x33702b['type']&&(_0x33702b[_0x519242]+='\x0a');}}}class U extends _0xbcf0e2{['afterInit'](){const _0x467d40=this['editor'],_0x9b23e5=_0x467d40['plugins']['get']('TrackChangesEditing');_0x467d40['commands']['get']('showAIAssistant')&&_0x9b23e5['enableCommand']('showAIAssistant');}}class V extends _0xbcf0e2{['afterInit'](){const _0x21876c=this['editor'],_0x48f5a3=_0x21876c['locale'];if(!_0x21876c['plugins']['has']('AlignmentEditing'))return;const _0x36b708=_0x21876c['plugins']['get']('TrackChangesEditing');_0x36b708['enableDefaultAttributesIntegration']('alignment'),_0x36b708['registerBlockAttribute']('alignment'),_0x36b708['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x48f5a3,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f07ff=this['editor'],_0x401d2c=_0x1f07ff['locale'];_0x1f07ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27fc4c=>{if('formatBlock'!=_0x27fc4c['type'])return;const {data:_0x5a7681}=_0x27fc4c;if(_0x5a7681&&'alignment'==_0x5a7681['commandName']){const _0x5968f5=_0x5a7681['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x401d2c,'*Format:*\x20%0',function(_0x782603){switch(_0x782603){case'left':return c(_0x401d2c,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x401d2c,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x401d2c,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x401d2c,'FORMAT_JUSTIFY_TEXT');}}(_0x5968f5))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0xbcf0e2{['afterInit'](){const _0x4f0440=this['editor'],_0x38b8de=_0x4f0440['plugins']['get']('TrackChangesEditing'),_0x523c39=_0x4f0440['locale'];for(const _0x30b7dc of Zt){if(!_0x4f0440['plugins']['has'](_0x30b7dc))continue;const _0x586769=_0x30b7dc['slice'](0x0,-0x7)['toLowerCase'](),_0x1fa63e='FORMAT_'+_0x586769['toUpperCase']();_0x38b8de['enableDefaultAttributesIntegration'](_0x586769),_0x38b8de['registerInlineAttribute'](_0x586769),_0x38b8de['descriptionFactory']['registerAttributeLabel'](_0x586769,c(_0x523c39,_0x1fa63e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44ea4a=this['editor'],_0x588807=_0x44ea4a['locale'],_0x22ec6e=_0x44ea4a['plugins']['get']('TrackChangesEditing');function _0x3df6d1(_0x282388,_0x1f250c){_0x22ec6e['descriptionFactory']['registerDescriptionCallback'](_0x8e274f=>{if('formatInline'!=_0x8e274f['type'])return;const {data:_0x25ac83}=_0x8e274f;return _0x25ac83&&_0x25ac83['commandName']===_0x282388?_0x25ac83['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x588807,'*Format:*\x20%0',_0x1f250c)}:{'type':'format','content':c(_0x588807,'*Remove\x20format:*\x20%0',_0x1f250c)}:void 0x0;});}_0x3df6d1('bold',c(_0x588807,'FORMAT_BOLD')),_0x3df6d1('italic',c(_0x588807,'FORMAT_ITALIC')),_0x3df6d1('underline',c(_0x588807,'FORMAT_UNDERLINE')),_0x3df6d1('code',c(_0x588807,'FORMAT_CODE')),_0x3df6d1('strikethrough',c(_0x588807,'FORMAT_STRIKETHROUGH')),_0x3df6d1('subscript',c(_0x588807,'FORMAT_SUBSCRIPT')),_0x3df6d1('superscript',c(_0x588807,'FORMAT_SUPERSCRIPT'));}}class G extends _0xbcf0e2{['afterInit'](){const _0x5dbb9b=this['editor'],_0x4a042b=_0x5dbb9b['locale'];if(!_0x5dbb9b['plugins']['has']('BlockQuoteEditing'))return;const _0x23cb8a=_0x5dbb9b['plugins']['get']('TrackChangesEditing'),_0x3fe167=this['editor']['commands']['get']('blockQuote');_0x23cb8a['enableCommand']('blockQuote',(_0x34db96,_0x4ddc0c={})=>{const _0x1fa89e=this['editor']['model']['document']['selection'],_0xa4f13a=_0x4ddc0c&&void 0x0!==_0x4ddc0c['forceValue']?_0x4ddc0c['forceValue']:!_0x3fe167['value'];let _0x1e5d4f=[];if(_0xa4f13a){const _0x449a94=Array['from'](_0x1fa89e['getSelectedBlocks']())['filter'](_0x27e55f=>oo(_0x27e55f)||function(_0x43085c,_0x4f153c){const _0x50fe60=_0x4f153c['checkChild'](_0x43085c['parent'],'blockQuote'),_0x4fa316=_0x4f153c['checkChild'](['$root','blockQuote'],_0x43085c);return _0x50fe60&&_0x4fa316;}(_0x27e55f,this['editor']['model']['schema']));_0x1e5d4f=to(_0x449a94,_0x5dbb9b['model']);}else{const _0x179ce0=Array['from'](_0x1fa89e['getSelectedBlocks']())['filter'](_0x3dbaf0=>oo(_0x3dbaf0));_0x1e5d4f=to(_0x179ce0,_0x5dbb9b['model']);}_0x5dbb9b['model']['change'](()=>{for(const _0x242382 of _0x1e5d4f)_0x23cb8a['markBlockFormat'](_0x242382,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xa4f13a}]});});}),_0x23cb8a['descriptionFactory']['registerDescriptionCallback'](_0x323967=>{const {data:_0x34f105}=_0x323967;if(_0x34f105&&'blockQuote'==_0x34f105['commandName']){const _0x24defb=c(_0x4a042b,'ELEMENT_BLOCK_QUOTE');return _0x34f105['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4a042b,'*Set\x20format:*\x20%0',_0x24defb)}:{'type':'format','content':c(_0x4a042b,'*Remove\x20format:*\x20%0',_0x24defb)};}});}}function oo(_0x571fa2){return'blockQuote'==_0x571fa2['parent']['name'];}class L extends _0xbcf0e2{['afterInit'](){const _0x23d4e4=this['editor'],_0x57c07d=_0x23d4e4['locale'],_0x59d274=_0x23d4e4['plugins']['get']('TrackChangesEditing');_0x23d4e4['plugins']['has']('BookmarkEditing')&&(_0x59d274['enableCommand']('insertBookmark'),_0x59d274['enableDefaultAttributesIntegration']('updateBookmark'),_0x59d274['registerBlockAttribute']('bookmarkId'),_0x59d274['descriptionFactory']['registerDescriptionCallback'](_0x6710cd=>{if('insertion'!=_0x6710cd['type']&&'deletion'!=_0x6710cd['type']&&'attribute'!=_0x6710cd['type'])return;const _0xc6c5c4=_0x6710cd['getContainedElement']();if(null==_0xc6c5c4)return;if(!_0xc6c5c4['is']('element','bookmark'))return;const _0x5e9490=_0xc6c5c4['getAttribute']('bookmarkId');if('insertion'==_0x6710cd['type'])return{'type':'insertion','content':c(_0x57c07d,'*Insert:*\x20%0','\x22'+_0x5e9490+'\x22\x20'+c(_0x57c07d,'ELEMENT_BOOKMARK'))};if('deletion'==_0x6710cd['type'])return{'type':'deletion','content':c(_0x57c07d,'*Remove:*\x20%0','\x22'+_0x5e9490+'\x22\x20'+c(_0x57c07d,'ELEMENT_BOOKMARK'))};const {data:_0x2f2bba}=_0x6710cd;if(!_0x2f2bba||'bookmarkId'!=_0x2f2bba['key'])return;return{'type':'format','content':c(_0x57c07d,'*Set\x20bookmark:*\x20%0','\x22'+_0x2f2bba['newValue']+'\x22')};}));}}class J extends _0xbcf0e2{['afterInit'](){const _0x2acd1c=this['editor'];_0x2acd1c['plugins']['has']('CaseChange')&&(_0x2acd1c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2acd1c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2acd1c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0xbcf0e2{['afterInit'](){const _0x28b2a1=this['editor'];_0x28b2a1['commands']['get']('ckbox')&&_0x28b2a1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0xbcf0e2{['afterInit'](){const _0x41a4a7=this['editor'];if(!_0x41a4a7['plugins']['has']('CodeBlock'))return;const _0x204ef3=_0x41a4a7['plugins']['get']('TrackChangesEditing'),_0x19d2d4=_0x41a4a7['locale'],_0x5ea59c=_0x41a4a7['config']['get']('codeBlock')['languages'],_0x294479=_0x41a4a7['commands']['get']('codeBlock');_0x204ef3['enableCommand']('indentCodeBlock'),_0x204ef3['enableCommand']('outdentCodeBlock'),_0x204ef3['enableCommand']('codeBlock',(_0x19f670,_0x322337={})=>{const _0x3ac4c1=_0x41a4a7['model'],_0x5ce282=_0x41a4a7['model']['document']['selection'],_0x102842=_0x322337&&void 0x0!==_0x322337['forceValue']?_0x322337['forceValue']:!_0x294479['value'];let _0x3eb081;_0x322337['language']||(_0x322337['language']=_0x5ea59c[0x0]['language']),_0x3eb081=_0x102842?Array['from'](_0x5ce282['getSelectedBlocks']())['filter'](_0x25f2b7=>eo(_0x25f2b7)||function(_0x3844a5,_0x422008){if(_0x3844a5['is']('rootElement')||_0x422008['isLimit'](_0x3844a5))return!0x1;return _0x422008['checkChild'](_0x3844a5['parent'],'codeBlock');}(_0x25f2b7,_0x3ac4c1['schema'])):Array['from'](_0x5ce282['getSelectedBlocks']())['filter'](_0xa8a39b=>eo(_0xa8a39b));const _0x39796f=to(_0x3eb081,_0x3ac4c1);_0x3ac4c1['change'](()=>{for(const _0x3ebf7a of _0x39796f)_0x204ef3['markBlockFormat'](_0x3ebf7a,{'commandName':'codeBlock','commandParams':[{..._0x322337,'forceValue':_0x102842}],'formatGroupId':'blockName'});});}),(_0x204ef3['descriptionFactory']['registerElementLabel']('codeBlock',_0x4d32bb=>c(_0x19d2d4,'ELEMENT_CODE_BLOCK',_0x4d32bb)),_0x204ef3['descriptionFactory']['registerDescriptionCallback'](_0x599ce8=>{if('formatBlock'!=_0x599ce8['type'])return;const _0x3e3f07=_0x19d2d4['t'],{data:_0x4f7b2b}=_0x599ce8;if(!_0x4f7b2b||'codeBlock'!=_0x4f7b2b['commandName'])return;const _0x3eeaf8=_0x4f7b2b['commandParams'][0x0]['language'],_0x260e11=_0x3e3f07(_0x5ea59c['find'](_0x1bd8b4=>_0x1bd8b4['language']===_0x3eeaf8)['label'])['toLowerCase']();return _0x4f7b2b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x19d2d4,'*Set\x20format:*\x20%0',c(_0x19d2d4,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x260e11+')')}:{'type':'format','content':c(_0x19d2d4,'*Remove\x20format:*\x20%0',c(_0x19d2d4,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3f22b2){return'codeBlock'==_0x3f22b2['name'];}class q extends _0xbcf0e2{['afterInit'](){const _0x11142a=this['editor'];if(!_0x11142a['plugins']['has']('CommentsEditing'))return;_0x11142a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x623965,_0x3f9ede,_0x452b7e){const _0x2d070a=[];for(const _0x2b2159 of _0x3f9ede['getItems']())_0x2b2159['hasAttribute'](_0x623965)&&_0x2d070a['push'](_0x452b7e['createRangeOn'](_0x2b2159));return _0x2d070a;}function Fe(_0x3a20ff,_0x41c0ab,{showActiveMarker:_0x3df0e8=!0x0}={}){const _0x1bb028=_0x3a20ff['plugins']['get']('TrackChangesEditing');return(_0x2ff075,_0x4ac446,_0x229924)=>{if(!_0x229924['consumable']['test'](_0x4ac446['markerRange'],_0x2ff075['name']))return;const _0x20c1f6=_0x4ac446['markerRange']['getWalker'](),_0xcedd4e=_0x4ac446['markerRange']['start'],_0x23ae14=_0x3a20ff['model']['schema'];let _0x1e8c1a=null,_0x517986=null,_0x4a36e1=!0x1,_0x24af25=!0x1;for(const _0x1c7d84 of _0x20c1f6){const _0x3b5380=_0x1c7d84['item'];_0x4a36e1=_0x4a36e1||_0x23ae14['isContent'](_0x3b5380);const _0x49d32e=_0x229924['mapper']['toViewElement'](_0x3b5380);if(_0x49d32e&&_0x49d32e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1c7d84['type']&&(_0x23ae14['isBlock'](_0x3b5380)&&!_0x23ae14['isLimit'](_0x3b5380)&&(_0x3b5380['nextSibling']||_0xcedd4e['isAtEnd']?_0x1e8c1a&&_0x1e8c1a['parent']==_0x3b5380||(_0x1e8c1a=_0x3b5380,_0x558f91(_0x1c7d84['previousPosition']),_0x24af25=!0x0):_0x517986=_0x517986||_0x1c7d84['previousPosition']));}function _0x558f91(_0x583c24){const {id:_0x2140ad,authorId:_0x202445}=_0x1bb028['_splitMarkerName'](_0x4ac446['markerName']),_0x11c7c2=_0x229924['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x41c0ab,'data-suggestion':_0x2140ad,'data-author-id':_0x202445}),_0x187b01=_0x229924['mapper']['toViewPosition'](_0x583c24);_0x3df0e8&&_0x1bb028['activeMarkers']['includes'](_0x4ac446['markerName'])&&_0x229924['writer']['addClass']('ck-suggestion-marker--active',_0x11c7c2),_0x229924['writer']['insert'](_0x187b01,_0x11c7c2),_0x229924['mapper']['bindElementToMarker'](_0x11c7c2,_0x4ac446['markerName']);}_0x4a36e1||_0x24af25||!_0x517986||_0x558f91(_0x517986);};}class z extends _0xbcf0e2{static get['requires'](){return[_0xb1e472];}['init'](){const _0x422726=this['editor'],_0x3c5b86=_0x422726['plugins']['get']('TrackChangesEditing');_0x3c5b86['enableCommand']('delete');const _0x24f1dc=_0x422726['commands']['get']('deleteForward');_0x3c5b86['enableCommand']('deleteForward',(_0x459e89,_0x455790={})=>{const _0x2d68f9=_0x422726['model']['createSelection'](_0x422726['model']['document']['selection']);_0x2d68f9['isCollapsed']&&_0x422726['model']['modifySelection'](_0x2d68f9,{'direction':'forward','unit':_0x455790['unit']});const _0x2378db=_0x2d68f9['getFirstRange'](),_0x150cbc=_0x65a6cb['fromRange'](_0x2378db);let _0xdcd665;_0x459e89(_0x455790),_0xdcd665='$graveyard'==_0x150cbc['root']['rootName']?_0x422726['model']['createRange'](_0x2378db['start']):_0x422726['model']['createRange'](_0x150cbc['start'],_0x150cbc['end']),_0x150cbc['detach'](),_0x422726['model']['enqueueChange'](_0x24f1dc['buffer']['batch'],_0x17a6c2=>{_0x24f1dc['buffer']['lock'](),_0x17a6c2['setSelection'](_0x17a6c2['createRange'](_0xdcd665['end'])),_0x24f1dc['buffer']['unlock']();});}),_0x422726['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x422726,'merge'),{'priority':'high'}),_0x422726['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5e469e,_0x10d6dd,_0x378fef)=>{_0x378fef['options']['showSuggestionHighlights']&&Fe(_0x422726,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5e469e,_0x10d6dd,_0x378fef);},{'priority':'high'}),_0x422726['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x36e946,_0xbb1a1,_0x570272)=>{const _0x554ae0=_0x570272['mapper']['markerNameToElements'](_0xbb1a1['markerName']);if(_0x554ae0){for(const _0x1a53b8 of _0x554ae0)_0x1a53b8['is']('uiElement')&&(_0x570272['mapper']['unbindElementFromMarkerName'](_0x1a53b8,_0xbb1a1['markerName']),_0x570272['writer']['remove'](_0x1a53b8));}},{'priority':'high'});}}class W extends _0xbcf0e2{['afterInit'](){const _0xbb2c42=this['editor'];if(!_0xbb2c42['plugins']['has']('ListEditing'))return;const _0x5806d6=_0xbb2c42['locale'],_0x329f85=_0xbb2c42['plugins']['get']('TrackChangesEditing'),_0x327ab9=_0xbb2c42['plugins']['has']('TodoListEditing'),_0x241b28=!!_0xbb2c42['config']['get']('list.multiBlock');function _0x4bce20(_0x344d12){return{'type':'format','content':''+c(_0x5806d6,'*Set\x20format:*\x20%0',_0x344d12)};}function _0x5e59a4(_0x758f74){return{'type':'format','content':''+c(_0x5806d6,'*Remove\x20format:*\x20%0',_0x758f74)};}_0x329f85['enableDefaultAttributesIntegration']('numberedList'),_0x329f85['enableDefaultAttributesIntegration']('bulletedList'),_0x329f85['enableDefaultAttributesIntegration']('customNumberedList'),_0x329f85['enableDefaultAttributesIntegration']('customBulletedList'),_0x329f85['enableDefaultAttributesIntegration']('indentList'),_0x329f85['enableDefaultAttributesIntegration']('outdentList'),_0x329f85['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x329f85['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x329f85['registerBlockAttribute']('listItemId'),_0x329f85['registerBlockAttribute']('listType'),_0x329f85['registerBlockAttribute']('listIndent'),_0x241b28&&(_0x329f85['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x329f85['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x327ab9&&(_0x329f85['enableDefaultAttributesIntegration']('todoList'),_0x329f85['enableDefaultAttributesIntegration']('checkTodoList'),_0x329f85['registerBlockAttribute']('todoListChecked'),_0x329f85['descriptionFactory']['registerDescriptionCallback'](_0x379341=>{const {data:_0x5d4ac4}=_0x379341;if(_0x5d4ac4&&'todoListChecked'==_0x5d4ac4['key'])return{'type':'format','content':_0x5d4ac4['newValue']?c(_0x5806d6,'*Check\x20item*'):c(_0x5806d6,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2c0bf4=>{if(_0x2c0bf4['batch']['isUndo'])return!0x1;let _0x3b0ece=!0x1;const _0x3af6ea=_0x329f85['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12f1de=>'todoListChecked'===_0x329f85['_getAttributeKey'](_0x12f1de));for(const _0x113f35 of _0x3af6ea){'todo'!=_0x113f35['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x329f85['_findSuggestions'](_0x113f35['getFirstRange'](),'attribute')['find'](_0x4d43ef=>'listType'===_0x329f85['_getAttributeKey'](_0x4d43ef['suggestion']))||(_0x2c0bf4['removeMarker'](_0x113f35['getFirstMarker']()),_0x3b0ece=!0x0));}return _0x3b0ece;})),_0x329f85['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x5806d6,'FORMAT_INDENT'));const _0x48a88a={'type':'format','content':''};_0x329f85['descriptionFactory']['registerDescriptionCallback'](_0xb688e0=>{const {data:_0x354930}=_0xb688e0;if(!_0x354930||'listType'!=_0x354930['key'])return;let _0x3c236a=_0xb688e0['head'];for(;_0x3c236a;){if(_0x3c236a['data']&&(('listStyle'==_0x3c236a['data']['key']||'listMarkerStyle'==_0x3c236a['data']['key'])&&(_0x3c236a['data']['newValue']&&'default'!=_0x3c236a['data']['newValue']||'default'!=_0x3c236a['data']['oldValue']&&!_0x354930['newValue'])||!_0x241b28&&_0x3c236a['data']['key']==u))return _0x48a88a;_0x3c236a=_0x3c236a['next'];}if(null==_0x354930['newValue'])switch(_0x354930['oldValue']){case'bulleted':return _0x5e59a4(c(_0x5806d6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5e59a4(c(_0x5806d6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5e59a4(c(_0x5806d6,'ELEMENT_TODO_LIST'));}switch(_0x354930['newValue']){case'bulleted':return _0x4bce20(c(_0x5806d6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4bce20(c(_0x5806d6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4bce20(c(_0x5806d6,'ELEMENT_TODO_LIST'));}}),_0x329f85['descriptionFactory']['registerDescriptionCallback'](_0x2c9e3a=>{const {data:_0x53dac1}=_0x2c9e3a;if(_0x53dac1&&'listIndent'==_0x53dac1['key'])return null==_0x53dac1['newValue']||null==_0x53dac1['oldValue']&&0x0==_0x53dac1['newValue']?_0x48a88a:void 0x0;}),_0x329f85['descriptionFactory']['registerDescriptionCallback'](_0x436c58=>{if('attribute'!=_0x436c58['type'])return;const {data:_0x220c52}=_0x436c58;if(!_0x220c52||'listItemId'!=_0x220c52['key'])return;const _0x1f0cc0=Te(_0x436c58);return'newValue'==_0x1f0cc0?{'type':'format','content':c(_0x5806d6,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1f0cc0?{'type':'format','content':c(_0x5806d6,'*Split:*\x20list\x20item')}:_0x48a88a;}),_0xbb2c42['model']['document']['registerPostFixer'](_0x32117e=>this['listItemIdFixer'](_0x32117e)),_0xbb2c42['model']['document']['registerPostFixer'](_0xf0761b=>this['noTrackChangesFixer'](_0xf0761b)),_0xbb2c42['model']['document']['on']('change:data',(_0x4b93d3,_0x5008e0)=>{if(_0x5008e0['isUndo']||!_0x5008e0['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x541506){if(_0x541506['batch']['isUndo']||!_0x541506['batch']['isLocal'])return!0x1;let _0x3ef22c=!0x1;const _0x1d69d5=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x231790=>_0x231790['data']&&'listItemId'==_0x231790['data']['key'])['filter'](_0x487316=>_0x487316['data']['newValue']&&_0x487316['data']['oldValue']);for(const _0x1f9a1d of _0x1d69d5)Te(_0x1f9a1d)||(_0x541506['removeMarker'](_0x1f9a1d['getFirstMarker']()),_0x3ef22c=!0x0);return _0x3ef22c;}['noTrackChangesFixer'](_0x2cff75){if(_0x2cff75['batch']['isUndo']||!_0x2cff75['batch']['isLocal'])return!0x1;const _0x4612a4=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4612a4['trackChangesCommand']['value'])return!0x1;let _0x4f2d13=!0x1;const _0x313f15=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x18b765=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4f2e56=>'attribute'==_0x4f2e56['type'])['filter'](_0x48124f=>_0x313f15['includes'](_0x48124f['attributeKey']));if(0x0==_0x18b765['length'])return _0x4f2d13;for(const _0x45b299 of _0x18b765){const _0x35c58e=_0x4612a4['_findSuggestions'](_0x45b299['range'],'attribute')['filter'](_0x107a42=>!_0x107a42['meta']['isNextTo'])['map'](_0x53651b=>_0x53651b['suggestion'])['filter'](_0x17be74=>{const _0x5d40f1=_0x4612a4['_getAttributeKey'](_0x17be74);return _0x313f15['includes'](_0x5d40f1);});if(_0x35c58e['length']){for(const _0x3d7f6d of _0x35c58e)_0x2cff75['removeMarker'](_0x3d7f6d['getFirstMarker']());_0x4f2d13=!0x0;}}return _0x4f2d13;}['assureChains'](){const _0x8ff133=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11b839=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2f2c9a;const _0x2e4c88=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x18ceea=>{if(_0x18ceea['data']['oldRange']||!_0x18ceea['data']['newRange'])return null;if(!_0x18ceea['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x42cf6f}=_0x8ff133['_splitMarkerName'](_0x18ceea['name']);if(!_0x8ff133['hasSuggestion'](_0x42cf6f))return null;const _0xd7a74b=_0x8ff133['getSuggestion'](_0x42cf6f);return _0x11b839['includes'](_0xd7a74b['data']['key']);})['map'](_0x609f2c=>{const {id:_0x142617}=_0x8ff133['_splitMarkerName'](_0x609f2c['name']),_0x362819=_0x8ff133['getSuggestion'](_0x142617);return _0x2f2c9a=_0x362819['attributes']['groupId'],_0x362819['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2e4c88['size'])return;const _0x2daa89=_0x8ff133['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x327a3b=>'attribute'==_0x327a3b['type']&&_0x327a3b['data']&&_0x11b839['includes'](_0x327a3b['data']['key'])&&_0x327a3b['attributes']['groupId']!=_0x2f2c9a)['map'](_0x40dbda=>({'listItem':_0x40dbda['getFirstRange']()['start']['nodeAfter'],'groupId':_0x40dbda['attributes']['groupId']})),_0x9d649e=new Set();for(const {groupId:_0x1e66a3,listItem:_0x2b2a70}of _0x2daa89)_0x2e4c88['has'](_0x2b2a70)&&_0x9d649e['add'](_0x1e66a3);for(const _0x34af5d of _0x8ff133['getSuggestions']())_0x9d649e['has'](_0x34af5d['attributes']['groupId'])&&_0x34af5d['setAttribute']('groupId',_0x2f2c9a);}['_supportLegacySuggestions'](){const _0x5cc105=this['editor'],_0x407fa8=_0x5cc105['locale'],_0x3662ef=_0x5cc105['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3662ef['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1b5188,_0x2e49a4){const _0x454701=[];for(let _0x5cf4f8 of _0x1b5188)_0x5cf4f8['start']['nodeAfter']===_0x5cf4f8['end']['parent']&&(_0x5cf4f8=_0x5cc105['model']['createRange'](_0x5cc105['model']['createPositionAt'](_0x5cf4f8['start']['nodeAfter'],0x0))),_0x454701['push'](_0x5cf4f8);_0x5cc105['model']['change'](_0x13d01e=>{const _0x5d883c=_0x5cc105['model']['document']['selection'],_0x7cd4e0=Array['from'](_0x5d883c['getRanges']())['map'](_0xe2f680=>_0x65a6cb['fromRange'](_0xe2f680));_0x13d01e['setSelection'](_0x454701),_0x5cc105['commands']['get'](_0x2e49a4['commandName'])['refresh'](),_0x2e49a4['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5cc105['execute'](_0x2e49a4['commandName'],..._0x2e49a4['commandParams']),_0x13d01e['setSelection'](_0x7cd4e0);for(const _0x1c131f of _0x7cd4e0)_0x1c131f['detach']();});}),_0x3662ef['descriptionFactory']['registerElementLabel'](function(_0x4a5b74){const _0x53a87e=!_0x5cc105['model']['schema']['isObject'](_0x4a5b74),_0x3ddf7e=_0x4a5b74['previousSibling'],_0x14c97b=_0x4a5b74['nextSibling'],_0x74e00=_0x4a5b74['getAttribute']('listItemId'),_0x360265=!_0x3ddf7e||_0x3ddf7e['getAttribute']('listItemId')!==_0x74e00,_0x4257d7=!_0x14c97b||_0x14c97b['getAttribute']('listItemId')!==_0x74e00;return _0x53a87e&&Boolean(_0x74e00)&&_0x360265&&_0x4257d7;},_0x2f35d3=>c(_0x407fa8,'ELEMENT_LIST_ITEM',_0x2f35d3));}['_registerLegacyDescription'](){const _0x4bacc1=this['editor'],_0x55a4cb=_0x4bacc1['locale'];function _0x15ccb4(_0x1a2448){const _0x8e79d3=_0x4bacc1['commands']['get']('bulletedList')['value'],_0x1c4aab=_0x4bacc1['commands']['get']('numberedList')['value'];return'numberedList'===_0x1a2448?_0x8e79d3:_0x1c4aab;}_0x4bacc1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x53bf6){if('formatBlock'!=_0x53bf6['type'])return;const {data:_0xfa6a62}=_0x53bf6;if(!_0xfa6a62)return;let _0x64c63b,_0x76e916,_0x1ab843,_0x271a4d;switch(_0xfa6a62['commandName']){case'bulletedList':_0x1ab843=_0xfa6a62['commandParams'][0x0]['forceValue'],_0x271a4d=_0x15ccb4(_0xfa6a62['commandName']),_0x64c63b=_0x1ab843?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x271a4d&&_0x4bacc1['config']['get']('list.multiBlock')||(_0x64c63b='*Change\x20to:*\x20%0'),_0x76e916={'type':'format','content':c(_0x55a4cb,_0x64c63b,c(_0x55a4cb,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1ab843=_0xfa6a62['commandParams'][0x0]['forceValue'],_0x271a4d=_0x15ccb4(_0xfa6a62['commandName']),_0x64c63b=_0x1ab843?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x271a4d&&_0x4bacc1['config']['get']('list.multiBlock')||(_0x64c63b='*Change\x20to:*\x20%0'),_0x76e916={'type':'format','content':c(_0x55a4cb,_0x64c63b,c(_0x55a4cb,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x64c63b='*Indent:*\x20%0',_0x76e916={'type':'format','content':c(_0x55a4cb,_0x64c63b,c(_0x55a4cb,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x64c63b=function(_0x37c56d){const _0x1a0a41=_0x37c56d['getFirstRange']();let _0x2e1fce=_0x1a0a41['start']['nodeAfter'];for(;_0x2e1fce&&_0x1a0a41['containsItem'](_0x2e1fce);){if(_0x2e1fce['getAttribute']('listIndent')>0x0)return!0x1;_0x2e1fce=_0x2e1fce['nextSibling'];}return!0x0;}(_0x53bf6)?c(_0x55a4cb,'*Format:*\x20remove\x20from\x20%0',c(_0x55a4cb,function(_0x6466c4){return'ELEMENT_'+_0x6466c4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x53bf6))):c(_0x55a4cb,'*Outdent:*\x20%0',c(_0x55a4cb,'ELEMENT_LIST_ITEM')),_0x76e916={'type':'format','content':_0x64c63b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xfa6a62['multipleBlocks']&&(_0x64c63b='*Merge:*\x20%0',_0x76e916={'type':'deletion','content':c(_0x55a4cb,_0x64c63b,c(_0x55a4cb,'ELEMENT_LIST_ITEM'))});}return _0x76e916;});}}function Te(_0x4fed4a){let _0x2fdf24=_0x4fed4a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2fdf24;){const _0x4972c8=_0x2fdf24['getAttribute']('listItemId');if(!_0x4972c8)return!0x1;if(_0x4972c8==_0x4fed4a['data']['newValue'])return'newValue';if(_0x4972c8==_0x4fed4a['data']['oldValue'])return'oldValue';_0x2fdf24=_0x2fdf24['previousSibling'];}return!0x1;}class Se extends _0xbcf0e2{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4f4581=this['editor']['config']['get']('list.properties'),_0x29e79f=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f4581['styles']&&(_0x29e79f['enableDefaultAttributesIntegration']('listStyle'),_0x29e79f['registerBlockAttribute']('listStyle')),_0x4f4581['reversed']&&(_0x29e79f['enableDefaultAttributesIntegration']('listReversed'),_0x29e79f['registerBlockAttribute']('listReversed')),_0x4f4581['startIndex']&&(_0x29e79f['enableDefaultAttributesIntegration']('listStart'),_0x29e79f['registerBlockAttribute']('listStart'));const _0x117f98={'type':'format','content':''};_0x29e79f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x284bfa=this['editor']['locale'];_0x29e79f['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x284bfa,'FORMAT_LIST_REVERSED')),_0x29e79f['descriptionFactory']['registerDescriptionCallback'](_0x1e3232=>{const {data:_0x3c901b}=_0x1e3232;if(_0x3c901b&&'listReversed'==_0x3c901b['key'])return null==_0x3c901b['newValue']||0x0==_0x3c901b['newValue']&&null==_0x3c901b['oldValue']?_0x117f98:void 0x0;}),_0x29e79f['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x284bfa,'FORMAT_LIST_START')),_0x29e79f['descriptionFactory']['registerDescriptionCallback'](_0x14bd11=>{const {data:_0x42d1e8}=_0x14bd11;if(_0x42d1e8&&'listStart'==_0x42d1e8['key'])return null==_0x42d1e8['newValue']||0x1==_0x42d1e8['newValue']&&null==_0x42d1e8['oldValue']?_0x117f98:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x15105d=>{if(_0x15105d['batch']['isUndo'])return!0x1;let _0x47e1bc=!0x1;const _0x35e8b6=_0x29e79f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x417c8e=>{const _0xd51847=_0x29e79f['_getAttributeKey'](_0x417c8e);return'listStart'==_0xd51847||'listReversed'==_0xd51847;});for(const _0x2bbd64 of _0x35e8b6){const _0x4ea520=_0x2bbd64['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4ea520||'customNumbered'==_0x4ea520)continue;_0x29e79f['_findSuggestions'](_0x2bbd64['getFirstRange'](),'attribute')['find'](_0x3a17c6=>'listType'==_0x29e79f['_getAttributeKey'](_0x3a17c6['suggestion']))||(_0x15105d['removeMarker'](_0x2bbd64['getFirstMarker']()),_0x47e1bc=!0x0);}return _0x47e1bc;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2efe3a){const _0x39acdd=this['editor']['locale'],{data:_0x276cd2}=_0x2efe3a,_0x5bb09e={'type':'format','content':''};if(!_0x276cd2||'listStyle'!=_0x276cd2['key'])return;if(!_0x276cd2['oldValue'])return'default'==_0x276cd2['newValue']?_0x5bb09e:{'type':'format','content':''+c(_0x39acdd,'*Set\x20format:*\x20%0',c(_0x39acdd,this['_getTranslationKeyForListStyle'](_0x276cd2['newValue'])))};if(!_0x276cd2['newValue']){if('default'==_0x276cd2['oldValue'])return _0x5bb09e;let _0x32a25f=_0x2efe3a['head'];for(;_0x32a25f;){if(_0x32a25f['data']&&'listType'==_0x32a25f['data']['key']&&_0x32a25f['data']['newValue'])return _0x5bb09e;_0x32a25f=_0x32a25f['next'];}return{'type':'format','content':''+c(_0x39acdd,'*Remove\x20format:*\x20%0',c(_0x39acdd,this['_getTranslationKeyForListStyle'](_0x276cd2['oldValue'])))};}if('default'!=_0x276cd2['newValue'])return{'type':'format','content':''+c(_0x39acdd,'*Set\x20format:*\x20%0',c(_0x39acdd,this['_getTranslationKeyForListStyle'](_0x276cd2['newValue'])))};let _0x117d94=_0x2efe3a['head'];for(;_0x117d94;){if(_0x117d94['data']&&'listType'==_0x117d94['data']['key']&&_0x117d94['data']['newValue']&&_0x117d94['data']['oldValue'])return _0x5bb09e;_0x117d94=_0x117d94['next'];}return{'type':'format','content':c(_0x39acdd,'*Set\x20format:*\x20%0',c(_0x39acdd,'ELEMENT_'+_0x2efe3a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x232b79=this['editor'],_0xd49fda=_0x232b79['locale'];_0x232b79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b13ca=>{if('formatBlock'!=_0x2b13ca['type'])return;const {data:_0x223464}=_0x2b13ca;if(!_0x223464)return;let _0x69213f,_0x292983;switch(_0x223464['commandName']){case'listStyle':_0x69213f='*Change\x20to:*\x20%0',_0x292983={'type':'format','content':c(_0xd49fda,_0x69213f,c(_0xd49fda,this['_getTranslationKeyForListStyle'](_0x223464['commandParams'][0x0]['type'])))};break;case'listReversed':_0x69213f=_0x223464['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x292983={'type':'format','content':c(_0xd49fda,_0x69213f)};break;case'listStart':_0x69213f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x292983={'type':'format','content':c(_0xd49fda,_0x69213f,_0x223464['commandParams'][0x0]['startIndex'])};}return _0x292983;});}['_getTranslationKeyForListStyle'](_0x2241c9){return'ELEMENT_'+function(_0x3cbcd4){if(_e['includes'](_0x3cbcd4))return'bulleted';if(Re['includes'](_0x3cbcd4))return'numbered';return null;}(_0x2241c9)['toUpperCase']()+'_LIST_'+_0x2241c9['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0xbcf0e2{['afterInit'](){const _0x51a835=this['editor'];_0x51a835['commands']['get']('emoji')&&_0x51a835['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0xbcf0e2{static get['requires'](){return[_0x15a556];}['init'](){const _0x2edc43=this['editor'],_0x198346=_0x2edc43['plugins']['get']('TrackChangesEditing'),_0x40f0ca=_0x2edc43['commands']['get']('enter');_0x198346['enableCommand']('enter',()=>{_0x2edc43['model']['change'](_0x1519fd=>{const _0x66935a=_0x2edc43['model']['document']['selection'],_0x276845=_0x66935a['getFirstPosition'](),_0x202898=_0x65a6cb['fromRange'](_0x66935a['getFirstRange']());if(_0x40f0ca['enterBlock'](_0x1519fd)){const _0x5acc9f=_0x2edc43['model']['createPositionAt'](_0x276845['parent']['nextSibling'],0x0),_0x2d35f0=_0x1519fd['createRange'](_0x276845,_0x5acc9f);_0x198346['markInsertion'](_0x2d35f0);}else _0x1519fd['setSelection'](_0x1519fd['createRange'](_0x202898['end']));_0x202898['detach'](),_0x40f0ca['fire']('afterExecute',{'writer':_0x1519fd});});}),_0x2edc43['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x2edc43,'split'),{'priority':'high'}),_0x2edc43['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x20fbe0,_0xa175ee,_0x312c5c)=>{const _0xe768bb=_0x312c5c['mapper']['markerNameToElements'](_0xa175ee['markerName']);if(_0xe768bb){for(const _0x21b826 of _0xe768bb)_0x21b826['hasClass']('ck-suggestion-marker-split')&&(_0x312c5c['mapper']['unbindElementFromMarkerName'](_0x21b826,_0xa175ee['markerName']),_0x312c5c['writer']['remove'](_0x21b826));}},{'priority':'high'}),_0x2edc43['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x50d861,_0xe15ba1,_0x436ac7)=>{_0x436ac7['options']['showSuggestionHighlights']&&Fe(_0x2edc43,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x50d861,_0xe15ba1,_0x436ac7);},{'priority':'high'});}}class Z extends _0xbcf0e2{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x87e6b2=this['editor']['plugins']['get']('TrackChangesEditing');_0x87e6b2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x87e6b2['enableCommand']('findNext'),_0x87e6b2['enableCommand']('findPrevious'),_0x87e6b2['enableCommand']('replace'),_0x87e6b2['enableCommand']('replaceAll');}['handleFindCommand'](_0x380073,_0x4ef3e1,_0x4f1276={}){const _0x5aae2d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x380073(_0x175c29=>{let _0x20269c=('string'==typeof _0x4ef3e1?_0x5aae2d['findByTextCallback'](_0x4ef3e1,_0x4f1276):_0x4ef3e1)(_0x175c29);Array['isArray'](_0x20269c)&&(_0x20269c={'results':_0x20269c,'searchText':'string'==typeof _0x4ef3e1?_0x4ef3e1:''});const _0x3d5247=_0x20269c['results']['filter'](_0x35c67c=>!0x1===this['_isInDeletionRange'](_0x35c67c,_0x175c29['item']));return{..._0x20269c,'results':_0x3d5247};},_0x4f1276);}['_isInDeletionRange'](_0x4502a6,_0x36b18d){const _0xb5c376=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x36b18d,_0x4502a6['start']),this['editor']['model']['createPositionAt'](_0x36b18d,_0x4502a6['end']));for(const _0x49aa05 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xb5c376['getIntersection'](_0x49aa05['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0xbcf0e2{['afterInit'](){const _0x33f261=this['editor']['locale'],_0x59729a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x257e26,commandName:_0x21b1ce}of ro)this['editor']['plugins']['has'](_0x257e26)&&(_0x59729a['enableDefaultAttributesIntegration'](_0x21b1ce),_0x59729a['registerInlineAttribute'](_0x21b1ce));_0x59729a['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x33f261,'FORMAT_FONT_SIZE')),_0x59729a['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x33f261,'FORMAT_FONT_FAMILY')),_0x59729a['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x33f261,'FORMAT_FONT_COLOR')),_0x59729a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x33f261,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1142ae=this['editor'],_0x146e09=_0x1142ae['locale'];_0x1142ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57101e=>{const _0x267f08=_0x146e09['t'];if('formatInline'!=_0x57101e['type'])return;const {data:_0x1e9798}=_0x57101e;if(null!=_0x1e9798){if('fontSize'==_0x1e9798['commandName']){const _0x395bbe=_0x1e9798['commandParams'][0x0]['value'];if(_0x395bbe){const _0x49ce90=_0x267f08(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5ecd43=>_0x5ecd43['model']==_0x395bbe)['title'])['toLowerCase']();return{'type':'format','content':c(_0x146e09,'*Set\x20font\x20size:*\x20%0',_0x49ce90)};}return{'type':'format','content':c(_0x146e09,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1e9798['commandName']){const _0x2de5a0=_0x1e9798['commandParams'][0x0]['value'];return _0x2de5a0?{'type':'format','content':c(_0x146e09,'*Set\x20font\x20family:*\x20%0',_0x2de5a0)}:{'type':'format','content':c(_0x146e09,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1e9798['commandName']){const _0x358713=_0x1e9798['commandParams'][0x0]['value'];if(_0x358713){const _0x48f283=_0x2ef507(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2a266e=>_0x2a266e['model']==_0x358713);let _0xff8bf6=_0x358713,_0x4f08c3='';return _0x48f283&&(_0xff8bf6=_0x48f283['label'],_0x4f08c3=_0x267f08(_0xff8bf6)['toLowerCase']()),{'type':'format','content':c(_0x146e09,'*Set\x20font\x20color:*\x20%0',_0x4f08c3)['trim'](),'color':{'value':_0x358713,'title':_0x4f08c3||_0xff8bf6}};}return{'type':'format','content':c(_0x146e09,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1e9798['commandName']){const _0xa395df=_0x1e9798['commandParams'][0x0]['value'];if(_0xa395df){const _0x54ff13=_0x2ef507(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x6f2e11=>_0x6f2e11['model']==_0xa395df);let _0x4ed0da=_0xa395df,_0x27666c='';return _0x54ff13&&(_0x4ed0da=_0x54ff13['label'],_0x27666c=_0x267f08(_0x4ed0da)['toLowerCase']()),{'type':'format','content':c(_0x146e09,'*Set\x20font\x20background\x20color:*\x20%0',_0x27666c)['trim'](),'color':{'value':_0xa395df,'title':_0x27666c||_0x4ed0da}};}return{'type':'format','content':c(_0x146e09,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0xbcf0e2{['afterInit'](){const _0x2f48af=this['editor'],_0x50036b=_0x2f48af['plugins']['get']('TrackChangesEditing'),_0x54132f=_0x2f48af['commands']['get']('copyFormat'),_0x3c1eba=_0x2f48af['commands']['get']('pasteFormat');_0x54132f&&_0x3c1eba&&(_0x50036b['enableDefaultAttributesIntegration']('pasteFormat'),_0x50036b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3772df=this['editor'],_0x317385=_0x3772df['locale'];_0x3772df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e7f7f=>{if('formatBlock'!=_0x1e7f7f['type']&&'formatInline'!=_0x1e7f7f['type'])return;const {data:_0x495c85}=_0x1e7f7f;if(_0x495c85&&'pasteFormat'===_0x495c85['commandName']){const _0x264748=[],_0x14d73f=_0x495c85['commandParams'][0x0];for(const [_0x302e71,_0x1f4060]of Object['entries'](_0x14d73f))_0x264748['push'](so(_0x3772df,_0x302e71,_0x1f4060));return _0x264748['length']?{'type':'format','content':c(_0x317385,'*Set\x20format\x20to:*\x20%0',_0x264748['join'](',\x20'))}:{'type':'format','content':c(_0x317385,'*Remove\x20all\x20formatting*')};}});}}function so(_0x22baa3,_0x30615e,_0x2b8817){const _0x51c41d=_0x22baa3['locale']['t'],_0x2f7647=_0x30615e['split'](/(?=[A-Z])/)['join']('\x20'),_0x231a79=_0x51c41d(_0x2f7647['charAt'](0x0)['toUpperCase']()+_0x2f7647['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2b8817)return _0x231a79;if('fontColor'===_0x30615e||'fontBackgroundColor'===_0x30615e){const _0x3ba23f=_0x2ef507(_0x22baa3['config']['get']('fontColor.colors'))['find'](_0x59f7ec=>_0x59f7ec['model']==_0x2b8817);return _0x231a79+'\x20('+(_0x3ba23f?_0x51c41d(_0x3ba23f['label'])['toLowerCase']():_0x2b8817)+')';}if('fontSize'===_0x30615e&&isNaN(parseFloat(_0x2b8817))){const _0x383474=_0x22baa3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x22baa3['config']['get']('fontSize.options'))['find'](_0x2b7bd3=>_0x2b7bd3['model']==_0x2b8817);return _0x231a79+'\x20('+(_0x383474?_0x51c41d(_0x383474['title'])['toLowerCase']():_0x2b8817)+')';}return _0x231a79+'\x20('+_0x2b8817+')';}class it extends _0xbcf0e2{['_headingOptions'];['afterInit'](){const _0x2d350d=this['editor'];if(!_0x2d350d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2d350d['config']['get']('heading.options');const _0x40e8a5=_0x2d350d['locale'],_0x26d6de=_0x2d350d['plugins']['get']('TrackChangesEditing');_0x26d6de['enableDefaultAttributesIntegration']('heading');for(const _0x1a6357 of this['_headingOptions'])'paragraph'!=_0x1a6357['model']&&_0x26d6de['descriptionFactory']['registerElementLabel'](_0x1a6357['model'],_0x39e153=>{const _0xf49b7c=this['_getHeadingLevel'](_0x1a6357['model']);return null!==_0xf49b7c?_0x3abf82(_0x39e153,_0xf49b7c):_0x247bb1(_0x39e153,_0x1a6357['title']);});function _0x3abf82(_0x3ac48f,_0x2a9940){return c(_0x40e8a5,'ELEMENT_HEADING',[_0x3ac48f,_0x2a9940]);}function _0x247bb1(_0x55053b,_0x56329b){return c(_0x40e8a5,'ELEMENT_HEADING_CUSTOM',[_0x55053b,_0x56329b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcfb57f=this['editor'],_0x5ab55d=_0xcfb57f['locale'];function _0x27ce38(_0x2dfd90,_0x42b389){return c(_0x5ab55d,'ELEMENT_HEADING_CUSTOM',[_0x2dfd90,_0x42b389]);}_0xcfb57f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3285d2=>{if('formatBlock'!=_0x3285d2['type'])return;const {data:_0x379bd9}=_0x3285d2;if(_0x379bd9&&'heading'==_0x379bd9['commandName']){const _0x4be0cd=_0x379bd9['commandParams'][0x0]['value'],_0xfe4157=this['_getHeadingLevel'](_0x4be0cd);if(null!==_0xfe4157)return{'type':'format','content':c(_0x5ab55d,'*Change\x20to:*\x20%0',(_0x267d32=0x1,_0x3da9a5=_0xfe4157,c(_0x5ab55d,'ELEMENT_HEADING',[_0x267d32,_0x3da9a5])))};const _0x5d0cdd=this['_headingOptions']['find'](_0x28e8fc=>_0x28e8fc['model']===_0x4be0cd)['title'];return{'type':'format','content':c(_0x5ab55d,'*Change\x20to:*\x20%0',_0x27ce38(0x1,_0x5d0cdd))};}var _0x267d32,_0x3da9a5;});}['_getHeadingLevel'](_0x538f1d){const _0x5c4e61=_0x538f1d['match'](/^heading(\d+)/);if(_0x5c4e61)return _0x5c4e61[0x1];const _0x3b24f4=this['_headingOptions']?.['find'](_0x5a37da=>_0x5a37da['model']==_0x538f1d);if(_0x3b24f4&&_0x3b24f4['view']){const _0x5b4b71=_0x3b24f4['view'],_0x22fddd=(_0x5b4b71['name']??_0x5b4b71)['match'](/^h(\d+)/);if(_0x22fddd)return _0x22fddd[0x1];}return null;}}class nt extends _0xbcf0e2{['afterInit'](){const _0x36917b=this['editor'];if(!_0x36917b['plugins']['has']('HighlightEditing'))return;const _0x2260c3=_0x36917b['plugins']['get']('TrackChangesEditing'),_0x28deb8=_0x36917b['locale'];_0x2260c3['enableDefaultAttributesIntegration']('highlight'),_0x2260c3['registerInlineAttribute']('highlight'),_0x2260c3['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x28deb8,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x511f4b=this['editor'],_0x22e058=_0x511f4b['locale'];_0x511f4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x136daf=>{if('formatInline'!=_0x136daf['type'])return;const {data:_0x40fac3}=_0x136daf;if(_0x40fac3&&'highlight'==_0x40fac3['commandName']){const _0x493f42=_0x22e058['t'],_0x4223e6=_0x40fac3['commandParams'][0x0]['value'];if(_0x4223e6){const _0x4e4fc5=_0x511f4b['config']['get']('highlight.options')['find'](_0x177f20=>_0x177f20['model']==_0x4223e6),_0x307315=_0x493f42(_0x4e4fc5['title'])['toLowerCase']();return{'type':'format','content':c(_0x22e058,'*Set\x20highlight:*\x20%0',_0x307315),'color':{'value':_0x4e4fc5['color'],'title':_0x4e4fc5['title']}};}return{'type':'format','content':c(_0x22e058,'*Remove\x20highlight*',c(_0x22e058,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0xbcf0e2{['afterInit'](){const _0x3a87a3=this['editor'];if(!_0x3a87a3['plugins']['has']('HorizontalLineEditing'))return;_0x3a87a3['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2bc2a8=_0x3a87a3['plugins']['get']('TrackChangesEditing'),_0x20181b=_0x3a87a3['locale'];_0x2bc2a8['descriptionFactory']['registerElementLabel']('horizontalLine',_0x47ec6a=>c(_0x20181b,'ELEMENT_HORIZONTAL_LINE',_0x47ec6a)),_0x3a87a3['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1df259,{writer:_0x3b4bc3,options:_0x577eef})=>{if(!_0x577eef['showSuggestionHighlights'])return null;const _0x2fbaf5=_0x3b4bc3['createContainerElement']('div'),_0x35af4b=_0x3b4bc3['createEmptyElement']('hr');return _0x3b4bc3['addClass']('ck-horizontal-line',_0x2fbaf5),_0x3b4bc3['insert'](_0x3b4bc3['createPositionAt'](_0x2fbaf5,0x0),_0x35af4b),_0x2fbaf5;},'converterPriority':'high'});}}class ot extends _0xbcf0e2{['afterInit'](){const _0x577d67=this['editor'];if(!_0x577d67['plugins']['has']('HtmlEmbed'))return;const _0x1f6530=_0x577d67['plugins']['get']('TrackChangesEditing'),_0xd027d4=_0x577d67['locale'];_0x1f6530['descriptionFactory']['registerElementLabel']('rawHtml',_0x242456=>c(_0xd027d4,'ELEMENT_HTML_EMBED',_0x242456)),_0x1f6530['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1f6530['registerBlockAttribute']('value'),_0x1f6530['descriptionFactory']['registerDescriptionCallback'](_0x254111=>{if('attribute'!=_0x254111['type'])return;const {data:_0x5ae0ca}=_0x254111;if(_0x5ae0ca&&'value'==_0x5ae0ca['key']&&_0x254111['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x44bd4e=c(_0xd027d4,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0xd027d4,'*Change\x20%0\x20content*',_0x44bd4e)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4db844=this['editor'],_0x268542=_0x4db844['locale'];_0x4db844['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51197b=>{if('formatBlock'!=_0x51197b['type'])return;const {data:_0x428a46}=_0x51197b;if(_0x428a46&&'htmlEmbed'==_0x428a46['commandName']){const _0x2b7355=c(_0x268542,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x268542,'*Change\x20%0\x20content*',_0x2b7355)};}});}}class rt extends _0xbcf0e2{['afterInit'](){const _0x4e8ddc=this['editor'];if(!_0x4e8ddc['plugins']['has']('ImageEditing'))return;const _0x2497de=_0x4e8ddc['plugins']['get']('TrackChangesEditing'),_0x614e85=_0x4e8ddc['plugins']['get']('ImageUtils'),_0x48e1f6=_0x4e8ddc['locale'];_0x2497de['enableCommand']('insertImage'),_0x2497de['descriptionFactory']['registerElementLabel']('imageBlock',_0x42e7e7=>c(_0x48e1f6,'ELEMENT_IMAGE',_0x42e7e7)),_0x2497de['descriptionFactory']['registerElementLabel']('imageInline',_0x44853c=>c(_0x48e1f6,'ELEMENT_INLINE_IMAGE',_0x44853c)),_0x2497de['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x48e1f6,'ELEMENT_CAPTION')),_0x4e8ddc['plugins']['has']('ImageUploadEditing')&&_0x2497de['enableCommand']('uploadImage'),_0x4e8ddc['plugins']['has']('ImageBlockEditing')&&_0x4e8ddc['plugins']['has']('ImageInlineEditing')&&(_0x2497de['enableCommand']('imageTypeInline',(_0x4cafa3,_0x531227)=>{const _0x42f952=_0x614e85['getClosestSelectedImageElement'](_0x4e8ddc['model']['document']['selection']);_0x4e8ddc['model']['change'](()=>{_0x2497de['markBlockFormat'](_0x42f952,{'commandName':'imageTypeInline','commandParams':[_0x531227]},[],'convertBlockImageToInline');});}),_0x2497de['enableCommand']('imageTypeBlock',(_0x1d059a,_0xb1d7e1)=>{_0x4e8ddc['model']['change'](_0x1b060b=>{let _0x59db28=_0x614e85['getClosestSelectedImageElement'](_0x4e8ddc['model']['document']['selection']),_0x3e57f9=_0x1b060b['createRangeOn'](_0x59db28);const _0x52a84e=_0xcd387e['fromPosition'](_0x3e57f9['start'],'toPrevious'),_0x49d198=_0xcd387e['fromPosition'](_0x3e57f9['end'],'toNext');_0x2497de['forceDefaultExecution'](()=>_0x1d059a(_0xb1d7e1)),_0x59db28=_0x614e85['getClosestSelectedImageElement'](_0x4e8ddc['model']['document']['selection']),_0x3e57f9=_0x1b060b['createRangeOn'](_0x59db28);const _0x559681=_0x1b060b['createRange'](_0x52a84e,_0x49d198);_0x52a84e['detach'](),_0x49d198['detach'](),_0x2497de['markBlockFormat'](_0x59db28,{'commandName':'imageTypeInline','commandParams':[_0xb1d7e1]},[],'convertInlineImageToBlock'),_0x559681['start']['isBefore'](_0x3e57f9['start'])&&_0x2497de['markInsertion'](_0x1b060b['createRange'](_0x559681['start'],_0x3e57f9['start']),'convertInlineImageToBlock'),_0x3e57f9['end']['isBefore'](_0x559681['end'])&&_0x2497de['markInsertion'](_0x1b060b['createRange'](_0x3e57f9['end'],_0x559681['end']),'convertInlineImageToBlock');});}),_0x2497de['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2497de['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2497de['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2497de['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2497de['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2497de['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x24eea1])=>{const _0x38c7d6=_0x2497de['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3f0d54=_0x24eea1['start'],_0x312109=_0x24eea1['end'];const _0x2a9348=_0x4e8ddc['model']['schema']['getNearestSelectionRange'](_0x3f0d54,'backward'),_0x1dbbdf=_0x4e8ddc['model']['schema']['getNearestSelectionRange'](_0x312109,'forward');_0x2a9348['isCollapsed']&&(_0x3f0d54=_0x2a9348['start']),_0x1dbbdf['isCollapsed']&&(_0x312109=_0x1dbbdf['end']),_0x38c7d6([_0x4e8ddc['model']['createRange'](_0x3f0d54,_0x312109)]);}),_0x2497de['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x249d90),_0x2497de['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x249d90)),_0x4e8ddc['plugins']['has']('ImageCaptionEditing')&&(_0x2497de['enableCommand']('toggleImageCaption',(_0x49ee98,_0x5d8674)=>{const _0xa4e578=_0x4e8ddc['plugins']['get']('ImageCaptionUtils');let _0x3e3719=_0x614e85['getClosestSelectedImageElement'](_0x4e8ddc['model']['document']['selection']),_0xa7beeb=_0xa4e578['getCaptionFromImageModelElement'](_0x3e3719);_0x4e8ddc['model']['change'](()=>{if(_0xa7beeb)return void _0x2497de['markDeletion'](_0x4e8ddc['model']['createRangeOn'](_0xa7beeb));const _0x5142f6=_0x614e85['isBlockImage'](_0x3e3719);_0x49ee98(_0x5d8674),_0x3e3719=_0x614e85['getClosestSelectedImageElement'](_0x4e8ddc['model']['document']['selection']),_0xa7beeb=_0xa4e578['getCaptionFromImageModelElement'](_0x3e3719),_0x2497de['markInsertion'](_0x4e8ddc['model']['createRangeOn'](_0xa7beeb),_0x5142f6?null:'imageCaption');});}),_0x2497de['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x249d90));const _0x36547d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x43e6fe(_0x1e0be8,_0x16d2a7){const _0x52ee66=_0x36547d['findIndex'](({type:_0x33fdb9,subType:_0x7727b0})=>_0x1e0be8['type']==_0x33fdb9&&_0x1e0be8['subType']==_0x7727b0),_0x1c0de1=_0x36547d['findIndex'](({type:_0x1bc312,subType:_0x39b0c6})=>_0x16d2a7['type']==_0x1bc312&&_0x16d2a7['subType']==_0x39b0c6);if(_0x52ee66<0x0||_0x1c0de1<0x0)return!0x1;const _0x1df54e=_0x1e0be8['getFirstRange'](),_0x59f8b7=_0x16d2a7['getFirstRange']();if((0x0==_0x52ee66||0x1==_0x52ee66)&&0x2==_0x1c0de1&&_0x1df54e['isIntersecting'](_0x59f8b7))return!0x0;if(0x2==_0x52ee66&&0x3==_0x1c0de1){const _0x15d6dd=_0x2497de['_findSuggestions'](_0x1df54e,'insertion')['filter'](({suggestion:_0x27c21d,meta:_0x461ac5})=>_0x461ac5['isOwn']&&'convertInlineImageToBlock'==_0x27c21d['subType']);if(_0x15d6dd['length']>0x1&&_0x59f8b7['end']['isEqual'](_0x1df54e['start']))return!0x0;if(0x1==_0x15d6dd['length']&&(_0x1df54e['start']['isEqual'](_0x59f8b7['end'])||_0x1df54e['end']['isEqual'](_0x59f8b7['start'])))return!0x0;}if(0x3==_0x52ee66&&0x3==_0x1c0de1&&_0x1df54e['start']['isBefore'](_0x59f8b7['start'])){const _0x42ceee=_0x1df54e['end']['nodeAfter'],_0x425c50=_0x59f8b7['start']['nodeBefore'];return _0x614e85['isBlockImage'](_0x42ceee)&&_0x42ceee===_0x425c50;}return!0x1;}function _0x249d90(_0x5aef3a,_0x40f9d8){return _0x43e6fe(_0x5aef3a,_0x40f9d8)?[_0x5aef3a,_0x40f9d8]:_0x43e6fe(_0x40f9d8,_0x5aef3a)?[_0x40f9d8,_0x5aef3a]:null;}_0x4e8ddc['plugins']['has']('ImageResize')&&(_0x2497de['enableDefaultAttributesIntegration']('resizeImage'),_0x2497de['registerBlockAttribute']('resizedWidth'),_0x2497de['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x48e1f6,'FORMAT_IMAGE_SIZE'))),_0x4e8ddc['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2497de['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2497de['registerBlockAttribute']('alt')),_0x4e8ddc['plugins']['has']('PictureEditing')&&(_0x2497de['registerBlockAttribute']('sources'),_0x2497de['descriptionFactory']['registerDescriptionCallback'](_0x51407d=>{if('attribute'!=_0x51407d['type'])return;const {data:_0x2e3014}=_0x51407d;return _0x2e3014&&'sources'==_0x2e3014['key']?{'type':'format','content':''}:void 0x0;})),_0x4e8ddc['plugins']['has']('ImageSizeAttributes')&&(_0x2497de['registerBlockAttribute']('width'),_0x2497de['registerBlockAttribute']('height'),_0x2497de['descriptionFactory']['registerDescriptionCallback'](_0x33d76c=>{if('attribute'!=_0x33d76c['type'])return;const {data:_0x55c60a}=_0x33d76c;return!_0x55c60a||'width'!=_0x55c60a['key']&&'height'!=_0x55c60a['key']?void 0x0:{'type':'format','content':''};})),_0x2497de['descriptionFactory']['registerDescriptionCallback'](_0x5366a4=>{if(!!_0x36547d['find'](({type:_0x44de41,subType:_0x164981})=>_0x5366a4['type']==_0x44de41&&_0x5366a4['subType']==_0x164981))return _0x5366a4['previous']?{}:void 0x0;}),_0x2497de['descriptionFactory']['registerDescriptionCallback'](_0x51ac5c=>{if('insertion'==_0x51ac5c['type']||'deletion'==_0x51ac5c['type']){const _0x59ca72=_0x51ac5c['getContainedElement']();if(_0x59ca72&&_0x59ca72['is']('element','caption'))return{'type':'insertion'==_0x51ac5c['type']?'addObject':'removeObject','element':_0x59ca72,'quantity':0x1};}}),_0x2497de['descriptionFactory']['registerDescriptionCallback'](_0x320704=>'formatBlock'==_0x320704['type']&&'convertInlineImageToBlock'==_0x320704['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x320704['type']&&'convertBlockImageToInline'==_0x320704['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2497de['descriptionFactory']['registerDescriptionCallback'](_0x37e34f=>{if('attribute'!=_0x37e34f['type'])return;const {data:_0xa1af4e}=_0x37e34f;if(!_0xa1af4e||'alt'!=_0xa1af4e['key'])return;const _0x4a81a8=_0xa1af4e['newValue'];return _0x4a81a8?{'type':'format','content':c(_0x48e1f6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4a81a8+'\x22')}:{'type':'format','content':c(_0x48e1f6,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ea105=this['editor'],_0x40ced0=_0x1ea105['locale'];_0x1ea105['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x572630=>{if('formatBlock'!=_0x572630['type']&&'formatInline'!=_0x572630['type'])return;const {data:_0x40625a}=_0x572630;if(_0x40625a){if('imageTextAlternative'==_0x40625a['commandName']){const _0x71a69b=_0x40625a['commandParams'][0x0]['newValue'];return _0x71a69b?{'type':'format','content':c(_0x40ced0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x71a69b+'\x22')}:{'type':'format','content':c(_0x40ced0,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x40625a['commandName']){const _0x181ecd=_0x40625a['commandParams'][0x0]['width'];return _0x181ecd?{'type':'format','content':c(_0x40ced0,'*Set\x20image\x20width:*\x20%0',_0x181ecd)}:{'type':'format','content':c(_0x40ced0,'*Reset\x20image\x20width*')};}}});}}class at extends _0xbcf0e2{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x110b21=this['editor']['locale'],_0x3f84a3=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f84a3['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3f84a3['registerBlockAttribute']('src'),_0x3f84a3['descriptionFactory']['registerDescriptionCallback'](_0x8eae27=>{if('attribute'!=_0x8eae27['type'])return;const {data:_0x556285}=_0x8eae27;return _0x556285&&'src'==_0x556285['key']?_0x556285['newValue']&&_0x556285['oldValue']?{'type':'format','content':c(_0x110b21,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x286acf=this['editor']['plugins']['get']('TrackChangesEditing');_0x286acf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x286acf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x286acf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x286acf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x273e8f=this['editor'],_0x39081c=_0x273e8f['locale'];_0x273e8f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cc6a6=>{if('formatBlock'!=_0x2cc6a6['type']&&'formatInline'!=_0x2cc6a6['type'])return;const {data:_0x490376}=_0x2cc6a6;if(!_0x490376||'replaceImageSource'!=_0x490376['commandName'])return;return{'type':'format','content':c(_0x39081c,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0xbcf0e2{['afterInit'](){const _0x1f7007=this['editor'];if(!_0x1f7007['plugins']['has']('ImageStyleEditing'))return;const _0xa3a2fa=_0x1f7007['plugins']['get']('TrackChangesEditing'),_0x296348=_0x1f7007['plugins']['get']('ImageUtils'),_0x160fc3={};_0xa3a2fa['enableCommand']('imageStyle',(_0x56731a,_0x1b1880)=>{const _0x3d49b2=_0x1f7007['plugins']['get']('Users')['me'],_0x73ce30=_0x1f7007['commands']['get']('imageStyle');let _0x4472b0=_0x296348['getClosestSelectedImageElement'](_0x1f7007['model']['document']['selection']),_0x2af24f=_0x1f7007['model']['createRangeOn'](_0x4472b0),_0x44c7ba=_0x73ce30['value'];if(_0x44c7ba==_0x1b1880['value'])return;const _0x50d345={'commandName':'imageStyle','commandParams':[_0x1b1880],'formatGroupId':_0x525dd0()};_0x1f7007['model']['change'](()=>{if(_0xa3a2fa['getSuggestions']()['filter'](_0x467e31=>_0x467e31['isInContent']&&_0x3d49b2==_0x467e31['author']&&('formatBlock'==_0x467e31['type']||'formatInline'==_0x467e31['type'])&&('imageStylePreApply'==_0x467e31['subType']||'imageStylePostApply'==_0x467e31['subType'])&&_0x467e31['getFirstRange']()['isEqual'](_0x2af24f))['forEach'](_0x57d3c0=>_0xa3a2fa['discardSuggestion'](_0x57d3c0['head'])),_0x4472b0=_0x296348['getClosestSelectedImageElement'](_0x1f7007['model']['document']['selection']),_0x2af24f=_0x1f7007['model']['createRangeOn'](_0x4472b0),_0x73ce30['refresh'](),_0x1f7007['commands']['get']('imageTypeInline')['refresh'](),_0x1f7007['commands']['get']('imageTypeBlock')['refresh'](),_0x44c7ba=_0x73ce30['value'],_0x44c7ba!=_0x1b1880['value'])return _0x296348['isInlineImage'](_0x4472b0)&&_0x73ce30['shouldConvertImageType'](_0x1b1880['value'],_0x4472b0)?(_0x56731a({..._0x1b1880,'setImageSizes':!0x1}),_0x4472b0=_0x296348['getClosestSelectedImageElement'](_0x1f7007['model']['document']['selection']),void _0xa3a2fa['markBlockFormat'](_0x4472b0,{..._0x50d345,'commandReversedParams':[{'value':_0x44c7ba||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x296348['isBlockImage'](_0x4472b0)?_0xa3a2fa['markBlockFormat'](_0x4472b0,_0x50d345,[],'imageStylePostApply'):_0xa3a2fa['markInlineFormat'](_0x2af24f,_0x50d345,'imageStylePostApply'));});});for(const _0x1e7e13 of _0x1f7007['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x160fc3[_0x1e7e13['name']]=_0x1e7e13['title']['toLowerCase']();_0xa3a2fa['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xa3a2fa['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xa3a2fa['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xa3a2fa['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x493bd2])=>{_0x296348['setImageNaturalSizeAttributes'](_0x493bd2['getContainedElement']());}),_0xa3a2fa['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5b7ced,_0x1e7a30)=>{_0xa3a2fa['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5b7ced,{'commandName':_0x1e7a30['commandName'],'commandParams':_0x1e7a30['commandReversedParams']});}),_0xa3a2fa['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x51f645,_0x4a2537){if(_0x21e966(_0x51f645,_0x4a2537))return[_0x51f645,_0x4a2537];if(_0x21e966(_0x4a2537,_0x51f645))return[_0x4a2537,_0x51f645];return null;});const _0x4d7de2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x21e966(_0x2d50eb,_0x4a8bcf){const _0x4da26d=_0x4d7de2['findIndex'](({type:_0xeeccff,subType:_0x20302a})=>_0x2d50eb['type']==_0xeeccff&&_0x2d50eb['subType']==_0x20302a),_0x560f1a=_0x4d7de2['findIndex'](({type:_0x4b5652,subType:_0xf4c765})=>_0x4a8bcf['type']==_0x4b5652&&_0x4a8bcf['subType']==_0xf4c765);if(_0x4da26d<0x0||_0x560f1a<0x0)return!0x1;const _0x3fd2e8=_0x2d50eb['getFirstRange'](),_0x485198=_0x4a8bcf['getFirstRange']();if((0x0==_0x4da26d||0x1==_0x4da26d)&&0x2==_0x560f1a&&_0x3fd2e8['isIntersecting'](_0x485198))return!0x0;if(0x2==_0x4da26d&&0x3==_0x560f1a){const _0x384e3a=_0xa3a2fa['_findSuggestions'](_0x3fd2e8,'insertion')['filter'](({suggestion:_0xe8c433,meta:_0x33ca81})=>_0x33ca81['isOwn']&&'convertInlineImageToBlock'==_0xe8c433['subType']);if(_0x384e3a['length']>0x1&&_0x485198['end']['isEqual'](_0x3fd2e8['start']))return!0x0;if(0x1==_0x384e3a['length']&&(_0x3fd2e8['start']['isEqual'](_0x485198['end'])||_0x3fd2e8['end']['isEqual'](_0x485198['start'])))return!0x0;}if(0x3==_0x4da26d&&0x3==_0x560f1a&&_0x3fd2e8['start']['isBefore'](_0x485198['start'])){const _0x3ffadc=_0x3fd2e8['end']['nodeAfter'],_0x54f587=_0x485198['start']['nodeBefore'];return _0x296348['isBlockImage'](_0x3ffadc)&&_0x3ffadc===_0x54f587;}return!0x1;}_0x1f7007['model']['document']['registerPostFixer'](()=>{let _0x18710a=!0x1;const _0x2ba6b7=Array['from'](_0x1f7007['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3168bd,data:_0x20831f}of _0x2ba6b7){const {group:_0x21d73f,type:_0x4535f5,subType:_0x4bfab4,id:_0xf8c804}=_0xa3a2fa['_splitMarkerName'](_0x3168bd);if('suggestion'==_0x21d73f&&_0xa3a2fa['hasSuggestion'](_0xf8c804)){if('formatBlock'==_0x4535f5&&('imageStylePreApply'==_0x4bfab4||'imageStylePostApply'==_0x4bfab4)){const _0x2a7ac1=_0xa3a2fa['getSuggestion'](_0xf8c804);if(_0x20831f['newRange']){const _0x16acd0=_0x2a7ac1['getFirstRange']()['getContainedElement']();if(_0x296348['isBlockImage'](_0x16acd0))continue;_0xa3a2fa['discardSuggestion'](_0x2a7ac1),_0x18710a=!0x0;}}if('insertion'==_0x4535f5&&'imageCaption'==_0x4bfab4&&!_0x20831f['newRange']){const _0xeac9a2=_0xa3a2fa['getSuggestion'](_0xf8c804);_0xeac9a2['next']&&_0xeac9a2['next']['isInContent']&&(_0xa3a2fa['discardSuggestion'](_0xeac9a2['next']),_0x18710a=!0x0);}}}return _0x18710a;}),this['_registerLegacyDescription'](_0x160fc3);}['_registerLegacyDescription'](_0x3396ec){const _0x94110e=this['editor'],_0x4ba7a6=_0x94110e['locale'];_0x94110e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc56091=>{if('formatBlock'!=_0xc56091['type']&&'formatInline'!=_0xc56091['type'])return;const {data:_0x3a0cf4}=_0xc56091;if(!_0x3a0cf4||'imageStyle'!=_0x3a0cf4['commandName'])return;const _0x4dff00=_0x3a0cf4['commandParams'][0x0]['value'];return _0x3a0596('side'===_0x4dff00?c(_0x4ba7a6,'FORMAT_SIDE_IMAGE'):_0x3396ec[_0x4dff00]||_0x4dff00);function _0x3a0596(_0xc74348){return{'type':'format','content':c(_0x4ba7a6,'*Format:*\x20%0',_0xc74348)};}});}}class ut extends _0xbcf0e2{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x190ef8){super(_0x190ef8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3e71fe=this['editor'],_0x16588a=_0x3e71fe['commands']['get']('importWord'),_0x38b63b=_0x3e71fe['commands']['get']('trackChanges');_0x16588a&&(_0x16588a['on']('execute',(_0x2852ce,[,_0x506b47])=>{this['_trackChangesValueDuringImport']=_0x38b63b['value'],_0x506b47['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x16588a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x16588a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x38b63b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3e71fe['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4174e0,_0x4a52a9){const {suggestions:_0xb6e859}=_0x4a52a9,_0x21c8d1=this['editor']['commands']['get']('trackChanges'),_0x2af5d8=_0x21c8d1['value'];this['_trackChangesValueDuringImport']!==_0x2af5d8&&(_0x21c8d1['execute'](),this['_trackChangesExecuted']=!0x0),_0xb6e859&&_0xb6e859['forEach'](({id:_0x37608d,type:_0x37029a,author:_0xae3242,created_at:_0x3429fc})=>{const _0x237907={'id':_0x37608d,'type':_0x37029a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xae3242,'createdAt':_0x3429fc?new Date(_0x3429fc):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x237907);});}}class ft extends _0xbcf0e2{['afterInit'](){const _0xf393aa=this['editor'],_0x5ac9f7=_0xf393aa['plugins']['get']('TrackChangesEditing');if(_0xf393aa['plugins']['has']('IndentEditing')&&(_0x5ac9f7['enableCommand']('indent'),_0x5ac9f7['enableCommand']('outdent')),_0xf393aa['plugins']['has']('IndentBlock')){for(const _0x1d7029 of['indentBlock','outdentBlock'])_0x5ac9f7['enableDefaultAttributesIntegration'](_0x1d7029);}const _0x4698db=_0xf393aa['locale'];_0x5ac9f7['registerBlockAttribute']('blockIndent'),_0x5ac9f7['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x4698db,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4dc37a=this['editor'],_0xa30fb7=_0x4dc37a['locale'],_0x5376e4=_0x4dc37a['plugins']['get']('TrackChangesEditing');_0x5376e4['descriptionFactory']['registerDescriptionCallback'](_0x50fc95=>{if('formatBlock'!=_0x50fc95['type'])return;const {data:_0x4b4a3b}=_0x50fc95;if(!_0x4b4a3b)return;if('indentBlock'!=_0x4b4a3b['commandName']&&'outdentBlock'!=_0x4b4a3b['commandName'])return;const _0x5c817f=_0x50fc95['getItems']()[0x0],_0x3ed56e=_0x5376e4['descriptionFactory']['getItemLabel'](_0x5c817f);return'indentBlock'==_0x4b4a3b['commandName']?{'type':'format','content':c(_0xa30fb7,'*Indent:*\x20%0',_0x3ed56e)}:'outdentBlock'==_0x4b4a3b['commandName']?{'type':'format','content':c(_0xa30fb7,'*Outdent:*\x20%0',_0x3ed56e)}:void 0x0;});}}class ht extends _0xbcf0e2{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0xbcf0e2{['afterInit'](){const _0x29fdaf=this['editor'];if(!_0x29fdaf['plugins']['has']('LinkEditing'))return;const _0x519c16=_0x29fdaf['plugins']['get']('TrackChangesEditing'),_0x5509a1=_0x29fdaf['commands']['get']('link');_0x519c16['enableDefaultAttributesIntegration']('link'),_0x519c16['enableDefaultAttributesIntegration']('unlink'),_0x519c16['registerInlineAttribute']('linkHref');for(const _0x10b507 of _0x5509a1['manualDecorators'])_0x519c16['registerInlineAttribute'](_0x10b507['id']),_0x519c16['descriptionFactory']['registerAttributeLabel'](_0x10b507['id'],'link\x20('+_0x10b507['label']['toLowerCase']()+')');_0x519c16['descriptionFactory']['registerDescriptionCallback'](_0x4d6ea8=>{if('attribute'!=_0x4d6ea8['type'])return;const {data:_0x430695}=_0x4d6ea8;if(!_0x430695||'linkHref'!=_0x430695['key'])return;const _0x162e33=_0x430695['newValue'],_0x2b5a5f=_0x29fdaf['locale'];return{'type':'format','content':null==_0x162e33?c(_0x2b5a5f,'*Remove\x20link*'):c(_0x2b5a5f,'*Set\x20link:*\x20%0','\x22'+_0x162e33+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37cd7a=this['editor'],_0x3e31b6=_0x37cd7a['locale'];_0x37cd7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb27b42=>{if('formatInline'!=_0xb27b42['type'])return;const {data:_0x4dd8b1}=_0xb27b42;if(_0x4dd8b1){if('link'==_0x4dd8b1['commandName']){const _0x392a42=_0x4dd8b1['commandParams'][0x0];return{'type':'format','content':c(_0x3e31b6,'*Set\x20link:*\x20%0','\x22'+_0x392a42+'\x22')};}return'unlink'==_0x4dd8b1['commandName']?{'type':'format','content':c(_0x3e31b6,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0xbcf0e2{['afterInit'](){const _0xb4908f=this['editor'],_0x51edc2=_0xb4908f['locale'];if(!_0xb4908f['plugins']['has']('LegacyListEditing'))return;const _0xe561fd=_0xb4908f['plugins']['get']('TrackChangesEditing'),_0x2a7629=_0xb4908f['plugins']['has']('LegacyTodoListEditing');function _0x1a0252(_0x99c176){return()=>{const _0x229bda=_0xb4908f['model']['document']['selection'],_0x2cf0ec=_0xb4908f['commands']['get'](_0x99c176);if(_0x2cf0ec['value'])return void _0xb4908f['execute']('paragraph',{});const _0x28e84a=_0x99c176['slice'](0x0,-0x4),_0x144037=function(_0x3eee14,_0xd72437,_0x295ac1){let _0x50fe5e=Array['from'](_0x3eee14)['filter'](_0x4e5313=>function(_0x36d39c,_0x2ec9fb){return _0x2ec9fb['checkChild'](_0x36d39c['parent'],'listItem')&&!_0x2ec9fb['isObject'](_0x36d39c);}(_0x4e5313,_0x295ac1));_0x50fe5e=_0x50fe5e['filter'](_0x3e0a67=>!_0x3e0a67['is']('element','listItem')||_0x3e0a67['getAttribute']('listType')!=_0xd72437);const _0x572d69=new Set();for(const _0x259257 of _0x50fe5e)_0x259257['is']('element','listItem')?_0x572d69['add'](Le(_0x259257)):_0x572d69['add'](_0x259257);return Array['from'](_0x572d69);}(_0x229bda['getSelectedBlocks'](),_0x28e84a,_0xb4908f['model']['schema']);_0xb4908f['model']['change'](()=>{for(const _0x30de81 of _0x144037)_0xe561fd['markBlockFormat'](_0x30de81,{'commandName':_0x99c176,'commandParams':[{'forceValue':!_0x2cf0ec['value']}],'formatGroupId':'blockName'},Ee(_0x30de81));});};}function _0x35b8b2(_0x4fd885){return()=>{const _0x1af535=function(_0x15b4f9){let _0x42ccfd=Array['from'](_0x15b4f9);const _0x1e5a5f=_0x42ccfd['findIndex'](_0x341258=>'listItem'!=_0x341258['name']);return _0x1e5a5f>-0x1&&(_0x42ccfd=_0x42ccfd['slice'](0x0,_0x1e5a5f)),_0x42ccfd;}(_0xb4908f['model']['document']['selection']['getSelectedBlocks']()),_0x497cdb=_0xb4908f['model']['createRange'](_0xb4908f['model']['createPositionAt'](_0x1af535[0x0],'before'),_0xb4908f['model']['createPositionAt'](_0x1af535[_0x1af535['length']-0x1],'end'));_0xb4908f['model']['change'](()=>{_0xe561fd['markBlockFormat'](_0x497cdb,{'commandName':_0x4fd885,'commandParams':[],'formatGroupId':'listIndent'},function(_0x50cd5d){const _0x702e26=new Set();for(const _0x4fe3f1 of _0x50cd5d){let _0x30d6dd=_0x4fe3f1['nextSibling'];for(;_0x30d6dd&&_0x30d6dd['getAttribute']('listIndent')>_0x4fe3f1['getAttribute']('listIndent');)_0x702e26['add'](_0x30d6dd),_0x30d6dd=_0x30d6dd['nextSibling'];}return Array['from'](_0x702e26);}(_0x1af535));});};}_0xe561fd['enableCommand']('numberedList',_0x1a0252('numberedList')),_0xe561fd['enableCommand']('bulletedList',_0x1a0252('bulletedList')),_0x2a7629&&_0xe561fd['enableCommand']('todoList',_0x1a0252('todoList')),_0xe561fd['enableCommand']('indentList',_0x35b8b2('indentList')),_0xe561fd['enableCommand']('outdentList',_0x35b8b2('outdentList')),_0x2a7629&&_0xe561fd['enableCommand']('checkTodoList',()=>{const _0xdb3708=_0xb4908f['commands']['get']('checkTodoList'),_0x3f86c2=Array['from'](_0xdb3708['_selectedElements']);_0x3f86c2['filter'](_0x46c45e=>_0x46c45e['getAttribute']('todoListChecked')!=_0xdb3708['value']),_0xb4908f['model']['change'](()=>{for(const _0x191d04 of _0x3f86c2)_0xe561fd['markBlockFormat'](_0x191d04,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xdb3708['value']}]});});}),_0xe561fd['descriptionFactory']['registerElementLabel']('listItem',_0xafa1dc=>c(_0x51edc2,'ELEMENT_LIST_ITEM',_0xafa1dc)),_0xe561fd['descriptionFactory']['registerDescriptionCallback'](_0x94479=>{if('formatBlock'!=_0x94479['type']&&'formatInline'!=_0x94479['type'])return;const {data:_0x29f54d}=_0x94479;if(_0x29f54d){if('numberedList'==_0x29f54d['commandName']||'bulletedList'==_0x29f54d['commandName']||'todoList'==_0x29f54d['commandName'])switch(_0x29f54d['commandName']['replace']('List','')){case'bulleted':return _0x2bfd96(c(_0x51edc2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2bfd96(c(_0x51edc2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2bfd96(c(_0x51edc2,'ELEMENT_TODO_LIST'));}if('indentList'==_0x29f54d['commandName'])return{'type':'format','content':c(_0x51edc2,'*Indent:*\x20%0',c(_0x51edc2,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x29f54d['commandName'])return{'type':'format','content':c(_0x51edc2,'*Outdent:*\x20%0',c(_0x51edc2,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x29f54d['commandName'])return _0x29f54d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x51edc2,'*Check\x20item*')}:{'type':'format','content':c(_0x51edc2,'*Uncheck\x20item*')};}function _0x2bfd96(_0x204649){return{'type':'format','content':c(_0x51edc2,'*Change\x20to:*\x20%0',_0x204649)};}});}}function Le(_0x5756ce){const _0x1b8601=_0x5756ce['getAttribute']('listIndent');if(0x0==_0x1b8601)return _0x5756ce;let _0x3732f8=_0x5756ce;for(;_0x5756ce['previousSibling']&&_0x5756ce['previousSibling']['is']('element','listItem');){const _0x375d44=_0x5756ce['previousSibling']['getAttribute']('listIndent');if(_0x375d44==_0x1b8601)_0x3732f8=_0x5756ce['previousSibling'];else{if(_0x375d44<_0x1b8601)break;}_0x5756ce=_0x5756ce['previousSibling'];}return _0x3732f8;}function Ee(_0x4b0dba){const _0x1b7309=[];if(_0x4b0dba['is']('element','listItem')&&_0x4b0dba['getAttribute']('listIndent')>0x0){let _0x2773a7=_0x4b0dba['nextSibling'];for(;_0x2773a7&&'listItem'==_0x2773a7['name']&&_0x2773a7['getAttribute']('listIndent')==_0x4b0dba['getAttribute']('listIndent');)_0x1b7309['push'](_0x2773a7),_0x2773a7=_0x2773a7['nextSibling'];}return _0x1b7309;}class Q extends _0xbcf0e2{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x117dcf=this['editor']['config']['get']('list.properties'),_0xb94167=this['editor']['plugins']['get']('TrackChangesEditing');_0x117dcf['styles']&&_0xb94167['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x117dcf['reversed']&&_0xb94167['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x117dcf['startIndex']&&_0xb94167['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xb94167['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2c298c,_0x24fb74={}){const _0x30352d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3996dd=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x30352d['markMultiRangeBlockFormat'](_0x3996dd,{'commandName':'listStyle','commandParams':[{'type':_0x24fb74['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1aadd7,_0x1d9a07={}){const _0x4b9b70=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f49af=this['_getSuggestionBlocks'](_0x51b415=>_0x51b415['is']('element','listItem')&&'numbered'===_0x51b415['getAttribute']('listType'));if(_0x2f49af['length']<0x1)return;const _0xb24eb3=_0x2f49af['map'](_0x24c2eb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x24c2eb,'before'),this['editor']['model']['createPositionAt'](_0x24c2eb,0x0)));this['editor']['model']['change'](()=>{_0x4b9b70['markMultiRangeBlockFormat'](_0xb24eb3,{'commandName':'listReversed','commandParams':[{'reversed':_0x1d9a07['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3de57b,_0x553a71={}){const _0x1a9bdc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ad22a=this['_getSuggestionBlocks'](_0x255c2c=>_0x255c2c['is']('element','listItem')&&'numbered'===_0x255c2c['getAttribute']('listType'));if(_0x1ad22a['length']<0x1)return;const _0x53d5a2=_0x1ad22a['map'](_0x4c239d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4c239d,'before'),this['editor']['model']['createPositionAt'](_0x4c239d,0x0)));this['editor']['model']['change'](()=>{_0x1a9bdc['markMultiRangeBlockFormat'](_0x53d5a2,{'commandName':'listStart','commandParams':[{'startIndex':_0x553a71['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1614ff){if('formatBlock'!=_0x1614ff['type']&&'formatInline'!=_0x1614ff['type'])return;const _0x184fc5=this['editor']['locale'],{data:_0x3e3cb1}=_0x1614ff;if(!_0x3e3cb1)return;let _0x302ec4,_0x2e0180;switch(_0x3e3cb1['commandName']){case'listStyle':_0x302ec4='*Change\x20to:*\x20%0',_0x2e0180={'type':'format','content':c(_0x184fc5,_0x302ec4,c(_0x184fc5,this['_getTranslationKeyForListStyle'](_0x3e3cb1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x302ec4=_0x3e3cb1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2e0180={'type':'format','content':c(_0x184fc5,_0x302ec4)};break;case'listStart':_0x302ec4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2e0180={'type':'format','content':c(_0x184fc5,_0x302ec4,_0x3e3cb1['commandParams'][0x0]['startIndex'])};}return _0x2e0180;}['_getSuggestionBlocksForListStyle'](){const _0xcef8c5=this['editor']['plugins']['get']('LegacyListUtils');let _0x1f838a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1f838a[0x0]?.['is']('element','listItem')&&_0x1f838a['unshift'](..._0xcef8c5['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1f838a[_0x1f838a['length']-0x1]?.['is']('element','listItem')&&_0x1f838a['push'](..._0xcef8c5['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1f838a=[...new Set(_0x1f838a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1f838a=_0x1f838a['filter'](_0x1321a1=>_0x1321a1['is']('element','listItem'))),_0x1f838a;}['_getSuggestionBlocks'](_0x108f86){const _0x25e406=this['editor']['plugins']['get']('LegacyListUtils');let _0x25be7c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x108f86)['map'](_0x2a59ef=>{const _0x20de72=this['editor']['model']['createPositionAt'](_0x2a59ef,0x0);return[..._0x25e406['getSiblingNodes'](_0x20de72,'backward'),..._0x25e406['getSiblingNodes'](_0x20de72,'forward')];})['flat']();return _0x25be7c=[...new Set(_0x25be7c)],_0x25be7c;}['_getTranslationKeyForListStyle'](_0x3726f5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3726f5)||'default')['toUpperCase']()+'_LIST_'+_0x3726f5['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0xbcf0e2{['afterInit'](){const _0xa31f85=this['editor'];if(!_0xa31f85['plugins']['has']('MediaEmbedEditing'))return;const _0x77f7a2=_0xa31f85['plugins']['get']('TrackChangesEditing'),_0xab568=_0xa31f85['locale'];_0x77f7a2['enableCommand']('mediaEmbed'),_0x77f7a2['descriptionFactory']['registerElementLabel']('media',_0xa47deb=>c(_0xab568,'ELEMENT_MEDIA',_0xa47deb)),_0xa31f85['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xd49f91,{writer:_0xd38b0f,options:_0x2279ca})=>{if(_0x2279ca['showSuggestionHighlights'])return _0xd38b0f['createEmptyElement']('div');},'converterPriority':'high'}),_0xa31f85['data']['downcastDispatcher']['on']('attribute:url:media',(_0x54ff19,_0x548830,_0x47d162)=>{_0x47d162['options']['showSuggestionHighlights']&&_0x54ff19['stop']();},{'priority':'high'});}}class pt extends _0xbcf0e2{['afterInit'](){const _0x587469=this['editor'];_0x587469['plugins']['has']('MentionEditing')&&_0x587469['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0xbcf0e2{['afterInit'](){const _0x11c77b=this['editor'];if(!_0x11c77b['plugins']['has']('MergeFieldsEditing'))return;const _0x549add=_0x11c77b['plugins']['get']('TrackChangesEditing'),_0xfaab17=_0x11c77b['locale'];_0x549add['enableCommand']('insertMergeField'),_0x549add['enableCommand']('insertMergeFieldBlock'),_0x549add['enableCommand']('insertMergeFieldImage'),_0x549add['descriptionFactory']['registerElementLabel']('mergeField',_0x375e71=>c(_0xfaab17,'ELEMENT_MERGE_FIELD',_0x375e71)),_0x549add['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x21a512=>c(_0xfaab17,'ELEMENT_MERGE_FIELD',_0x21a512)),_0x549add['descriptionFactory']['registerDescriptionCallback'](_0x41fce9=>{if('insertion'!=_0x41fce9['type']&&'deletion'!=_0x41fce9['type'])return;const _0x311f5e=_0x41fce9['getContainedElement']();if(null==_0x311f5e)return;const _0xe47bd9=_0x11c77b['plugins']['get']('MergeFieldsEditing');let _0x25e55f;switch(_0xe47bd9['getMergeFieldType'](_0x311f5e)){case null:return;case'image':{const _0x53f76=_0xe47bd9['unwrapAffixes'](_0x311f5e['getAttribute']('src'));_0x25e55f=_0xe47bd9['getLabel'](_0x53f76)||_0x53f76;break;}default:{const _0x5e7470=_0x311f5e['getAttribute']('id');_0x25e55f=_0xe47bd9['getLabel'](_0x5e7470)||_0x5e7470;break;}}return'insertion'==_0x41fce9['type']?{'type':'insertion','content':c(_0xfaab17,'*Insert:*\x20%0','\x22'+_0x25e55f+'\x22\x20'+c(_0xfaab17,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0xfaab17,'*Remove:*\x20%0','\x22'+_0x25e55f+'\x22\x20'+c(_0xfaab17,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0xbcf0e2{['afterInit'](){const _0x348976=this['editor'],_0x188f18=_0x348976['plugins']['get']('TrackChangesEditing');_0x348976['plugins']['has']('MultiLevelList')&&(_0x188f18['enableDefaultAttributesIntegration']('multiLevelList'),_0x188f18['registerBlockAttribute']('listMarkerStyle'),_0x188f18['descriptionFactory']['registerDescriptionCallback'](_0x428392=>this['handleDescriptions'](_0x428392)));}['handleDescriptions'](_0x4dbbee){const _0x560f02=this['editor']['locale'],{data:_0x5c8c7c}=_0x4dbbee,_0x9e8797={'type':'format','content':''};if(_0x5c8c7c&&'listMarkerStyle'==_0x5c8c7c['key']){if(!_0x5c8c7c['oldValue'])return{'type':'format','content':c(_0x560f02,'*Set\x20format:*\x20%0',c(_0x560f02,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5c8c7c['newValue']+')'};if(!_0x5c8c7c['newValue']){let _0x62ae5a=_0x4dbbee['head'];for(;_0x62ae5a;){if(_0x62ae5a['data']&&'listType'==_0x62ae5a['data']['key']&&_0x62ae5a['data']['newValue'])return _0x9e8797;_0x62ae5a=_0x62ae5a['next'];}return{'type':'format','content':c(_0x560f02,'*Remove\x20format:*\x20%0',c(_0x560f02,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5c8c7c['oldValue']+')'};}}}}class bt extends _0xbcf0e2{['afterInit'](){const _0x528f1b=this['editor'];if(!_0x528f1b['plugins']['has']('PageBreakEditing'))return;_0x528f1b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x178059=_0x528f1b['plugins']['get']('TrackChangesEditing'),_0x399636=_0x528f1b['locale'];_0x178059['descriptionFactory']['registerElementLabel']('pageBreak',_0x5dc2d8=>c(_0x399636,'ELEMENT_PAGE_BREAK',_0x5dc2d8));}}class yt extends _0xbcf0e2{['afterInit'](){const _0xc3160c=this['editor'];if(!_0xc3160c['plugins']['has']('Paragraph'))return;const _0x292021=_0xc3160c['locale'],_0x362c18=_0xc3160c['plugins']['get']('TrackChangesEditing');_0x362c18['descriptionFactory']['registerElementLabel']('paragraph',_0x457fcb=>c(_0x292021,'ELEMENT_PARAGRAPH',_0x457fcb)),_0x362c18['enableDefaultAttributesIntegration']('paragraph'),_0x362c18['enableCommand']('insertParagraph'),_0xc3160c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xc3160c),{'priority':'highest'}),_0xc3160c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2b8f43,_0x4511f0,_0x2e7640)=>{_0x2e7640['options']['showSuggestionHighlights']&&nr(_0xc3160c,{'showActiveMarker':!0x1})(_0x2b8f43,_0x4511f0,_0x2e7640);},{'priority':'highest'});const _0x2848d7=_0x362c18['descriptionFactory'];_0x2848d7['registerDescriptionCallback'](_0x314306=>{if('insertion'!==_0x314306['type'])return;const {start:_0x454124,end:_0x83ccea}=_0x314306['getFirstRange']();if(!_0x454124['isTouching'](_0x83ccea)||!_0x454124['nodeAfter'])return;const _0x58478e=_0xc3160c['model']['schema'],_0x50b1a6=_0x454124['nodeAfter'];return _0x58478e['isBlock'](_0x50b1a6)&&!_0x58478e['isLimit'](_0x50b1a6)&&_0x58478e['checkChild'](_0x50b1a6,'$text')?{'type':'insertion','content':c(_0x292021,'*Insert:*\x20%0',_0x2848d7['getItemLabel'](_0x50b1a6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29ef70=this['editor'],_0x351337=_0x29ef70['locale'];_0x29ef70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16eff8=>{if('formatBlock'!=_0x16eff8['type'])return;const {data:_0x353d52}=_0x16eff8;return _0x353d52&&'paragraph'==_0x353d52['commandName']?{'type':'format','content':c(_0x351337,'*Change\x20to:*\x20%0',c(_0x351337,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x391403,{showActiveMarker:_0x35508f=!0x0}={}){return(_0x3224ff,_0x290ee4,_0x255f59)=>{const _0x5ee104=_0x391403['plugins']['get']('TrackChangesEditing'),_0x237305=_0x290ee4['markerRange']['start'],_0x217f5a=_0x290ee4['markerRange']['end'],_0x4a5922=_0x391403['model']['schema'];if(!_0x237305['isTouching'](_0x217f5a)||!_0x237305['nodeAfter'])return;const _0x189ed3=_0x237305['nodeAfter'];if(_0x4a5922['isBlock'](_0x189ed3)&&!_0x4a5922['isLimit'](_0x189ed3)&&_0x4a5922['checkChild'](_0x189ed3,'$text')){if(!_0x255f59['consumable']['consume'](_0x290ee4['markerRange'],_0x3224ff['name']))return;const {id:_0x20b48a,authorId:_0x15ffd6}=_0x5ee104['_splitMarkerName'](_0x290ee4['markerName']),_0x4d3dec=_0x255f59['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x20b48a,'data-author-id':_0x15ffd6}),_0x3837cd=_0x255f59['mapper']['toViewPosition'](_0x217f5a);_0x35508f&&_0x5ee104['activeMarkers']['includes'](_0x290ee4['markerName'])&&_0x255f59['writer']['addClass']('ck-suggestion-marker--active',_0x4d3dec),_0x255f59['writer']['insert'](_0x3837cd,_0x4d3dec),_0x255f59['mapper']['bindElementToMarker'](_0x4d3dec,_0x290ee4['markerName']);}};}class jt extends _0xbcf0e2{['afterInit'](){const _0x36257d=this['editor'];_0x36257d['commands']['get']('replaceSource')&&_0x36257d['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0xbcf0e2{['afterInit'](){const _0x259bf4=this['editor'];if(!_0x259bf4['plugins']['has']('RemoveFormatEditing'))return;_0x259bf4['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc8067=this['editor'];_0xc8067['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b18fc=>{if('formatBlock'!=_0x2b18fc['type']&&'formatInline'!=_0x2b18fc['type'])return;const {data:_0x482471}=_0x2b18fc;return _0x482471&&'removeFormat'==_0x482471['commandName']?{'type':'format','content':c(_0xc8067['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0xbcf0e2{['afterInit'](){const _0x2b68f6=this['editor'];if(!_0x2b68f6['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x49c1cc=_0x2b68f6['plugins']['get']('TrackChangesEditing');_0x49c1cc['enableCommand']('goToPreviousRestrictedEditingException'),_0x49c1cc['enableCommand']('goToNextRestrictedEditingException');const _0x1c8fdf=_0x2b68f6['plugins']['get']('RestrictedEditingModeEditing');_0x1c8fdf['enableCommand']('trackChanges'),_0x1c8fdf['enableCommand']('acceptSuggestion'),_0x1c8fdf['enableCommand']('discardSuggestion'),_0x1c8fdf['enableCommand']('acceptAllSuggestions'),_0x1c8fdf['enableCommand']('discardAllSuggestions'),_0x1c8fdf['enableCommand']('acceptSelectedSuggestions'),_0x1c8fdf['enableCommand']('discardSelectedSuggestions');}}class It extends _0xbcf0e2{['afterInit'](){const _0x3fd264=this['editor'];if(!_0x3fd264['plugins']['has']('ShiftEnter'))return;const _0x421ca1=_0x3fd264['plugins']['get']('TrackChangesEditing');_0x421ca1['enableCommand']('shiftEnter'),_0x3fd264['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x3fd264),{'priority':'high'}),_0x3fd264['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x3fd264),{'priority':'high'}),_0x3fd264['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xb1b7b0,_0xdefd6f,_0x12eab0)=>{_0x12eab0['options']['showSuggestionHighlights']&&je(_0x3fd264,{'showActiveMarker':!0x1})(_0xb1b7b0,_0xdefd6f,_0x12eab0);}),_0x421ca1['descriptionFactory']['registerElementLabel']('softBreak',_0x5c0a51=>c(_0x3fd264['locale'],'ELEMENT_LINE_BREAK',_0x5c0a51));}}function je(_0x4e46dc,{showActiveMarker:_0x2a1380=!0x0}={}){return(_0x29b8e9,_0x5572f7,_0x20fc92)=>{const _0x3183e3=_0x4e46dc['plugins']['get']('TrackChangesEditing');if(!_0x20fc92['consumable']['test'](_0x5572f7['markerRange'],_0x29b8e9['name']))return;const _0x11d80c=_0x4e46dc['model'];for(const _0x5a35c7 of _0x5572f7['markerRange']['getItems']()){if(!_0x5a35c7['is']('element','softBreak'))continue;const _0xbee195='deletion'==_0x5572f7['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x423b00,authorId:_0x3c5cff}=_0x3183e3['_splitMarkerName'](_0x5572f7['markerName']),_0x145fd9=_0x20fc92['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xbee195,'data-suggestion':_0x423b00,'data-author-id':_0x3c5cff}),_0x134c3a=_0x20fc92['mapper']['toViewPosition'](_0x11d80c['createPositionBefore'](_0x5a35c7));_0x2a1380&&_0x3183e3['activeMarkers']['includes'](_0x5572f7['markerName'])&&_0x20fc92['writer']['addClass']('ck-suggestion-marker--active',_0x145fd9),_0x20fc92['writer']['insert'](_0x134c3a,_0x145fd9),_0x20fc92['mapper']['bindElementToMarker'](_0x145fd9,_0x5572f7['markerName']);}};}class _t extends _0xbcf0e2{['afterInit'](){const _0xf50889=this['editor'],_0x4b247f=_0xf50889['model'],_0x32f207=_0xf50889['locale'];if(!_0xf50889['plugins']['has']('StandardEditingModeEditing'))return;const _0x594fc2=_0xf50889['plugins']['get']('TrackChangesEditing'),_0x3189ba='restrictedEditingException',_0x459a3a=_0xf50889['commands']['get'](_0x3189ba);_0x594fc2['enableCommand'](_0x3189ba,(_0x5596fe,_0x36e57={})=>{const _0x67c3af=_0x4b247f['document']['selection'];if(_0x67c3af['isCollapsed'])return void _0x5596fe(_0x36e57);const _0x30e55a=void 0x0!==_0x36e57['forceValue']?_0x36e57['forceValue']:!_0x459a3a['value'];_0x4b247f['change'](()=>{const _0x77550a=Array['from'](_0x67c3af['getRanges']());for(const _0x5cf2f5 of _0x77550a){const _0x5db5d4=_0x30e55a?[_0x5cf2f5]:io(_0x3189ba,_0x5cf2f5,_0x4b247f);for(const _0xccb624 of _0x5db5d4)_0x594fc2['markInlineFormat'](_0xccb624,{'commandName':_0x3189ba,'commandParams':[{'forceValue':_0x30e55a}]});}});}),_0x594fc2['descriptionFactory']['registerDescriptionCallback'](_0x251264=>{if('formatBlock'!=_0x251264['type']&&'formatInline'!=_0x251264['type'])return;const {data:_0x50716a}=_0x251264;return _0x50716a&&_0x50716a['commandName']==_0x3189ba?_0x50716a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x32f207,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x32f207,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0xbcf0e2{['afterInit'](){const _0x3fff8d=this['editor'];if(!_0x3fff8d['plugins']['has']('Style')||!_0x3fff8d['plugins']['has']('DataSchema'))return;const _0x2bf8d8=_0x3fff8d['plugins']['get']('TrackChangesEditing'),_0x13923e=_0x3fff8d['locale'],_0x214d57=_0x3fff8d['config']['get']('style')||{},_0x372b6c=_0x3fff8d['plugins']['get']('GeneralHtmlSupport'),_0x1b441e=_0x3fff8d['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3fff8d['plugins']['get']('DataSchema'),_0x214d57['definitions']);_0x2bf8d8['enableDefaultAttributesIntegration']('style');const _0x455117=new Set();for(const _0x19c25e of _0x1b441e['block']){const _0xa3fe0a=_0x372b6c['getGhsAttributeNameForElement'](_0x19c25e['element']);_0x455117['add'](_0xa3fe0a);}const _0x46a51c=new Set();for(const _0x20f361 of _0x1b441e['inline']){const _0x90d067=_0x372b6c['getGhsAttributeNameForElement'](_0x20f361['element']);_0x46a51c['add'](_0x90d067);for(const _0x37b3ef of _0x20f361['ghsAttributes'])_0x46a51c['add'](_0x37b3ef);}for(const _0x389bec of _0x455117)_0x2bf8d8['registerBlockAttribute'](_0x389bec),_0x2bf8d8['descriptionFactory']['registerAttributeLabel'](_0x389bec,c(_0x13923e,'FORMAT_STYLE'));for(const _0x5423bc of _0x46a51c)_0x2bf8d8['registerInlineAttribute'](_0x5423bc),_0x2bf8d8['descriptionFactory']['registerAttributeLabel'](_0x5423bc,c(_0x13923e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26610d=this['editor'],_0x4d8d80=_0x26610d['locale'];_0x26610d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x136e77=>{if('formatBlock'!=_0x136e77['type']&&'formatInline'!=_0x136e77['type'])return;const {data:_0x4fc211}=_0x136e77;return _0x4fc211&&'style'===_0x4fc211['commandName']?_0x4fc211['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4d8d80,'*Set\x20format:*\x20%0',_0x4fc211['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x4d8d80,'*Remove\x20format:*\x20%0',_0x4fc211['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0xbcf0e2{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4e036d){super(_0x4e036d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x514d92=this['editor'],_0x5709c1=_0x514d92['model']['document']['selection'];if(!_0x514d92['plugins']['has']('TableEditing'))return;const _0x101240=_0x514d92['locale'],_0x2b097e=_0x514d92['plugins']['get']('TrackChangesEditing'),_0x4082db=_0x514d92['plugins']['get']('TableUtils');_0x2b097e['descriptionFactory']['registerElementLabel']('table',_0x31e0b6=>c(_0x101240,'ELEMENT_TABLE',_0x31e0b6)),this['_setupColumnsRowsFixing'](),_0x2b097e['enableCommand']('insertTable'),_0x2b097e['enableCommand']('selectTableRow'),_0x2b097e['enableCommand']('selectTableColumn');for(const _0x597fb4 of['insertTableRowAbove','insertTableRowBelow']){const _0x3cc3c9=_0x514d92['commands']['get'](_0x597fb4);_0x2b097e['enableCommand'](_0x597fb4,_0x301983=>{_0x514d92['model']['change'](_0x140abc=>{_0x301983();const _0x32b15f='above'===_0x3cc3c9['order'],_0x167665=_0x4082db['getSelectionAffectedTableCells'](_0x5709c1),_0x183dd1=_0x4082db['getRowIndexes'](_0x167665),_0x12a96b=_0x32b15f?_0x183dd1['first']-0x1:_0x183dd1['last']+0x1,_0x58af81=_0x167665[0x0]['findAncestor']('table'),_0x5ccfc2=_0x4082db['createTableWalker'](_0x58af81,{'startRow':_0x12a96b,'endRow':_0x12a96b}),_0x4d27b1=Array['from'](_0x5ccfc2)['map'](_0x41fdee=>_0x140abc['createRangeOn'](_0x41fdee['cell']));_0x2b097e['markMultiRangeInsertion'](_0x4d27b1,'tableRow');});});}for(const _0x99f547 of['insertTableColumnLeft','insertTableColumnRight']){const _0x13fd0f=_0x514d92['commands']['get'](_0x99f547);_0x2b097e['enableCommand'](_0x99f547,_0x458c9e=>{_0x514d92['model']['change'](_0x411995=>{_0x458c9e();const _0x450c36='left'===_0x13fd0f['order'],_0x9a4f1e=_0x4082db['getSelectionAffectedTableCells'](_0x5709c1),_0x594400=_0x4082db['getColumnIndexes'](_0x9a4f1e),_0x251444=_0x450c36?_0x594400['first']-0x1:_0x594400['last']+0x1,_0x2dba97=_0x9a4f1e[0x0]['findAncestor']('table'),_0x2c8adf=_0x4082db['createTableWalker'](_0x2dba97,{'startRow':0x0,'column':_0x251444,'includeAllSlots':!0x1}),_0x42a716=Array['from'](_0x2c8adf)['map'](_0x29393b=>_0x411995['createRangeOn'](_0x29393b['cell']));_0x2b097e['markMultiRangeInsertion'](_0x42a716,'tableColumn');});});}for(const _0x4b5e17 of['removeTableRow','removeTableColumn']){const _0x197db1=_0x4b5e17['substr'](0xb),_0x5b5e3c=_0x197db1['toLowerCase'](),_0x5eb264=_0x5b5e3c['substr'](0x0,0x3)+'span',_0xd907da='table'+_0x197db1,_0x1b4de2='min'+_0x197db1,_0xdf0654='max'+_0x197db1;_0x2b097e['enableCommand'](_0x4b5e17,()=>{_0x514d92['model']['change'](_0x1b6afa=>{const _0x3feffb=_0x4082db['getSelectionAffectedTableCells'](_0x5709c1),_0x451717=_0x3feffb[0x0]['findAncestor']('table');let _0x39f8cd;if('removeTableRow'==_0x4b5e17){const _0x1f7be2=_0x4082db['getRowIndexes'](_0x3feffb);_0x39f8cd={'startRow':_0x1f7be2['first'],'endRow':_0x1f7be2['last'],'includeAllSlots':!0x0};}else{const _0x40f2b9=_0x4082db['getColumnIndexes'](_0x3feffb);_0x39f8cd={'startColumn':_0x40f2b9['first'],'endColumn':_0x40f2b9['last'],'includeAllSlots':!0x0};}const _0x595a56=_0x4082db['createTableWalker'](_0x451717,_0x39f8cd),_0x108544=Array['from'](_0x595a56)['map'](({cell:_0xccbf90})=>_0xccbf90),_0x1d652d=xe(_0x108544['filter'](_0x5792a1=>_0x5792a1['hasAttribute'](_0x5eb264))),_0x946261=xe(_0x108544['filter'](_0x1f0141=>!_0x1f0141['hasAttribute'](_0x5eb264)))['map'](_0x1f3ba9=>_0x1b6afa['createRangeOn'](_0x1f3ba9)),_0x1c4cab=_0x2b097e['markMultiRangeDeletion'](_0x946261,_0xd907da);if(_0x1c4cab&&('tableRow'==_0x1c4cab['subType']||'tableColumn'==_0x1c4cab['subType'])){const _0x1df1dc=this['_getSuggestionCoords'](_0x1c4cab);for(const _0x322ae3 of _0x1d652d){const _0x3d10c1=_0x1b6afa['createRangeOn'](_0x322ae3),_0x474daf=_0x4082db['getCellLocation'](_0x322ae3),_0x4ffde0=_0x322ae3['getAttribute'](_0x5eb264)-0x1,_0x13ca0b=_0x1df1dc[_0x1b4de2],_0xc8620e=_0x1df1dc[_0xdf0654];_0x13ca0b<=_0x474daf[_0x5b5e3c]&&_0x474daf[_0x5b5e3c]+_0x4ffde0<=_0xc8620e&&_0x1c4cab['addRange'](_0x3d10c1);}}});});}function _0x3faafd(_0xcd92bc){const _0x3fbce8=Array['from'](_0x5709c1['getRanges']())['map'](_0x4ee880=>_0x65a6cb['fromRange'](_0x4ee880));_0x514d92['model']['change'](_0x49b8f2=>{const _0x3a6e73=_0x49b8f2['batch'];_0xcd92bc=_0xcd92bc['filter'](_0x3671cb=>'$graveyard'!=_0x3671cb['root']['rootName']),_0x49b8f2['setSelection'](_0xcd92bc),_0x514d92['commands']['get']('removeTableRow')['refresh'](),_0x514d92['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x514d92['model']['enqueueChange'](()=>{_0x514d92['model']['enqueueChange'](_0x3a6e73,_0x3fc7ba=>{const _0x6d1c82=_0x3fbce8['filter'](_0x3f177e=>'$graveyard'!=_0x3f177e['root']['rootName']);_0x6d1c82['length']>0x0&&_0x3fc7ba['setSelection'](_0x6d1c82);for(const _0x4e19c1 of _0x3fbce8)_0x4e19c1['detach']();});});});}function _0x3b146c(_0x4fa65c){_0x514d92['model']['change'](_0x517101=>{const _0x1a57c2=Array['from'](_0x5709c1['getRanges']())['map'](_0x59d9e7=>_0x65a6cb['fromRange'](_0x59d9e7)),_0xc941f6=[];for(const _0x53b8e8 of _0x4fa65c)for(const _0x543e1d of _0x53b8e8['getItems']({'shallow':!0x0}))_0xc941f6['push'](_0x543e1d);for(const _0x2505e4 of _0xc941f6)'$graveyard'!=_0x2505e4['root']['rootName']&&(_0x517101['setSelection'](_0x517101['createPositionAt'](_0x2505e4,0x0)),_0x514d92['commands']['get']('removeTableColumn')['refresh'](),_0x514d92['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xb75c78=_0x1a57c2['filter'](_0x43e966=>'$graveyard'!=_0x43e966['root']['rootName']);_0xb75c78['length']>0x0&&_0x517101['setSelection'](_0xb75c78);for(const _0xbfc32d of _0x1a57c2)_0xbfc32d['detach']();});}function _0x462990(_0x470392,_0x4e3d24){return _0x4e3d24['every'](_0x442714=>_0x470392['some'](_0xbc3b73=>_0xbc3b73['end']['isEqual'](_0x442714['start'])||_0x442714['end']['isEqual'](_0xbc3b73['start'])));}function _0x5f2cc3(_0x1a7fe7,_0x5f22e1){return!_0x1a7fe7['some'](_0x1f2632=>_0x5f22e1['some'](_0x21c4cf=>_0x1f2632['isIntersecting'](_0x21c4cf)))&&_0x1a7fe7['some'](_0x597377=>_0x5f22e1['some'](_0x227beb=>_0x597377['end']['isTouching'](_0x227beb['start'])));}_0x514d92['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2e76ac,_0x43667c,_0x366ff)=>{if(!_0x366ff['options']['showSuggestionHighlights'])return;const _0x339b2d=_0x43667c['item'];if(!_0x339b2d||!_0x339b2d['is']('element','tableCell'))return;const _0x3f1fc5=_0x366ff['mapper']['toViewElement'](_0x339b2d);if(_0x3f1fc5){const {id:_0xef987e,authorId:_0x3ba13c}=_0x2b097e['_splitMarkerName'](_0x43667c['markerName']);_0x565a9e(_0x3f1fc5,_0x366ff['writer'],(_0x40e606,_0x4d5b7b,_0x5c2d06)=>{_0x5c2d06['addClass'](_0x576b59(_0x4d5b7b['classes']),_0x40e606),_0x5c2d06['setAttribute']('data-suggestion-id',_0xef987e,_0x40e606),_0x5c2d06['setAttribute']('data-author-id',_0x3ba13c,_0x40e606);},(_0x4af98b,_0x43ac49,_0x46dfe5)=>{_0x46dfe5['removeClass'](_0x576b59(_0x43ac49['classes']),_0x4af98b),_0x46dfe5['removeAttribute']('data-suggestion-id',_0x4af98b),_0x46dfe5['removeAttribute']('data-author-id',_0x4af98b);});}},{'priority':'highest'}),_0x2b097e['descriptionFactory']['registerDescriptionCallback'](_0x42a675=>{if('insertion'!=_0x42a675['type']&&'deletion'!=_0x42a675['type'])return;const _0x3c994=_0x42a675['getContainedElement']();if(null!=_0x3c994&&_0x3c994['is']('element','table')){if('insertion'==_0x42a675['type']){const _0xc488a1=_0x42a675['getItems']()['filter'](_0x32207a=>_0x32207a['is']('$textProxy'))['map'](_0x18fd39=>_0x18fd39['data']);if(_0xc488a1['length'])return{'type':'insertion','content':c(_0x101240,'*Insert:*\x20%0',c(_0x101240,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xc488a1['join']('\x20')+'\x22'))};}if('deletion'==_0x42a675['type']){const _0x3fb415=_0x42a675['getItems']()['filter'](_0x1ad09b=>_0x1ad09b['is']('$textProxy'))['map'](_0x4d39ba=>_0x4d39ba['data']);if(_0x3fb415['length'])return{'type':'deletion','content':c(_0x101240,'*Remove:*\x20%0',c(_0x101240,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3fb415['join']('\x20')+'\x22'))};}}}),_0x2b097e['descriptionFactory']['registerDescriptionCallback'](_0x1f550a=>{if('tableRow'==_0x1f550a['subType']){const _0x3508be=_0x1f550a['getItems']()['filter'](_0xc43c53=>_0xc43c53['is']('$textProxy'))['map'](_0x195966=>_0x195966['data']),_0x482fbb=this['_getSuggestionCoords'](_0x1f550a),_0x2fbde4=_0x482fbb['maxRow']-_0x482fbb['minRow']+0x1;if('insertion'==_0x1f550a['type'])return _0x3508be['length']?{'type':'insertion','content':c(_0x101240,'*Insert:*\x20%0',c(_0x101240,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2fbde4,'\x22'+_0x3508be['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x101240,'*Insert:*\x20%0',c(_0x101240,'ELEMENT_TABLE_ROW',_0x2fbde4))};if('deletion'==_0x1f550a['type'])return _0x3508be['length']?{'type':'deletion','content':c(_0x101240,'*Remove:*\x20%0',c(_0x101240,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2fbde4,'\x22'+_0x3508be['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x101240,'*Remove:*\x20%0',c(_0x101240,'ELEMENT_TABLE_ROW',_0x2fbde4))};}if('tableColumn'==_0x1f550a['subType']){const _0x3d4d9f=_0x1f550a['getItems']()['filter'](_0x50e2c5=>_0x50e2c5['is']('$textProxy'))['map'](_0x19f3d2=>_0x19f3d2['data']),_0x5e673d=this['_getSuggestionCoords'](_0x1f550a),_0xff11bf=_0x5e673d['maxColumn']-_0x5e673d['minColumn']+0x1;if('insertion'==_0x1f550a['type'])return _0x3d4d9f['length']?{'type':'insertion','content':c(_0x101240,'*Insert:*\x20%0',c(_0x101240,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xff11bf,'\x22'+_0x3d4d9f['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x101240,'*Insert:*\x20%0',c(_0x101240,'ELEMENT_TABLE_COLUMN',_0xff11bf))};if('deletion'==_0x1f550a['type'])return _0x3d4d9f['length']?{'type':'deletion','content':c(_0x101240,'*Remove:*\x20%0',c(_0x101240,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xff11bf,'\x22'+_0x3d4d9f['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x101240,'*Remove:*\x20%0',c(_0x101240,'ELEMENT_TABLE_COLUMN',_0xff11bf))};}}),_0x2b097e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3faafd),_0x2b097e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3faafd),_0x2b097e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3b146c),_0x2b097e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3b146c),_0x2b097e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x462990),_0x2b097e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x462990),_0x2b097e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5f2cc3),_0x2b097e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5f2cc3);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3b47df=this['editor'],_0x490289=_0x3b47df['model']['document']['selection'];return(_0x5e0675,_0x1b0cc2)=>{_0x3b47df['model']['change'](_0xddfb20=>{const {commandName:_0x21a915,commandParams:_0x3c78b6}=_0x1b0cc2;let _0x40704c=_0x5e0675[0x0]['end']['nodeBefore'];_0x3c78b6&&_0x3c78b6[0x0]&&!0x1===_0x3c78b6[0x0]['forceValue']&&(_0x40704c=_0x5e0675[0x0]['start']['nodeAfter']);const _0x326db6=_0xddfb20['createRangeIn'](_0x40704c);if('$graveyard'==_0x326db6['root']['rootName'])return;const _0x195db8=Array['from'](_0x490289['getRanges']())['map'](_0x480065=>_0x65a6cb['fromRange'](_0x480065));_0xddfb20['setSelection'](_0x326db6),_0x3b47df['commands']['get'](_0x21a915)['refresh'](),_0x3c78b6['push']({'forceDefaultExecution':!0x0}),_0x3b47df['execute'](_0x21a915,..._0x3c78b6);const _0x368303=_0x195db8['filter'](_0x17ef74=>'$graveyard'!=_0x17ef74['root']['rootName']);_0x368303['length']>0x0&&_0xddfb20['setSelection'](_0x368303);for(const _0x115aa0 of _0x195db8)_0x115aa0['detach']();});};}['_getCoordsForCells'](_0x5e2998){const _0x3c505e=this['editor']['plugins']['get']('TableUtils');let _0xe41624=Number['MAX_SAFE_INTEGER'],_0x1e655a=Number['MIN_SAFE_INTEGER'],_0x1423cc=Number['MAX_SAFE_INTEGER'],_0x21783d=Number['MIN_SAFE_INTEGER'];for(const _0x5cf2f8 of _0x5e2998){if('$graveyard'==_0x5cf2f8['root']['rootName'])continue;const {row:_0x72408a,column:_0x3bcc11}=_0x3c505e['getCellLocation'](_0x5cf2f8),_0x406cb4=_0x5cf2f8['hasAttribute']('rowspan')?_0x5cf2f8['getAttribute']('rowspan')-0x1:0x0,_0x1e0623=_0x5cf2f8['hasAttribute']('colspan')?_0x5cf2f8['getAttribute']('colspan')-0x1:0x0;_0xe41624=_0x72408a<_0xe41624?_0x72408a:_0xe41624,_0x1e655a=_0x72408a+_0x406cb4>_0x1e655a?_0x72408a+_0x406cb4:_0x1e655a,_0x1423cc=_0x3bcc11<_0x1423cc?_0x3bcc11:_0x1423cc,_0x21783d=_0x3bcc11+_0x1e0623>_0x21783d?_0x3bcc11+_0x1e0623:_0x21783d;}return{'minRow':_0xe41624,'maxRow':_0x1e655a,'minColumn':_0x1423cc,'maxColumn':_0x21783d};}['_setupColumnsRowsFixing'](){const _0x2ce067=this['editor'],_0x5d8651=_0x2ce067['plugins']['get']('TrackChangesEditing'),_0x3a94b7=_0x2ce067['plugins']['get']('TableUtils');_0x2ce067['model']['document']['on']('change:data',()=>{const _0x229999=Array['from'](_0x2ce067['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x17d8c1,data:_0x865b48}of _0x229999){const {group:_0x436eec,id:_0x5a1052,subType:_0x175ebf}=_0x5d8651['_splitMarkerName'](_0x17d8c1);if('suggestion'!=_0x436eec)continue;if(null!=_0x865b48['oldRange'])continue;const _0x21dbca=_0x5d8651['getSuggestion'](_0x5a1052);this['_tablePostFixingSubtypes']['includes'](_0x175ebf)&&this['_tableSuggestions']['add'](_0x21dbca);}},{'priority':'low'});const _0x502ca1=(_0x1e335c,_0x50f420)=>{let _0x277595=!0x1;const _0x155205=_0x50f420['createRangeOn'](_0x1e335c),_0x284e15=_0x1e335c['findAncestor']('table'),_0x2f2e86=_0x3a94b7['getCellLocation'](_0x1e335c);for(const _0x314656 of this['_tableSuggestions']){const _0x589ac7=_0x314656['subType'],_0x38196e=_0x589ac7['startsWith']('tablePaste'),_0x21db56=_0x589ac7['substr'](_0x38196e?0xa:0x5),_0x20b059=_0x21db56['toLowerCase'](),_0x330067=_0x20b059['substr'](0x0,0x3)+'span',_0x40d4f7='min'+_0x21db56,_0x4cd700='max'+_0x21db56;if(!_0x314656['isInContent'])continue;if(_0x284e15!=_0x314656['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x314656['isIntersectingWithRange'](_0x155205))continue;const _0x2e26d8=_0x1e335c['hasAttribute'](_0x330067)?_0x1e335c['getAttribute'](_0x330067)-0x1:0x0,_0x36d7c5=this['_getSuggestionCoords'](_0x314656),_0x5cd14d=_0x36d7c5[_0x40d4f7],_0x554a89=_0x36d7c5[_0x4cd700];_0x5cd14d<=_0x2f2e86[_0x20b059]&&_0x2f2e86[_0x20b059]+_0x2e26d8<=_0x554a89&&(_0x314656['addRange'](_0x155205),_0x277595=!0x0);}return _0x277595;};_0x2ce067['model']['document']['registerPostFixer'](_0xf64251=>{let _0x28de22=!0x1;for(const _0x24528f of _0x2ce067['model']['document']['differ']['getChanges']())if('insert'==_0x24528f['type']){if('tableRow'==_0x24528f['name']){for(const _0x5d68c2 of _0x24528f['position']['nodeAfter']['getChildren']())_0x28de22=_0x28de22||_0x502ca1(_0x5d68c2,_0xf64251);}else'tableCell'==_0x24528f['name']&&(_0x28de22=_0x28de22||_0x502ca1(_0x24528f['position']['nodeAfter'],_0xf64251));}return _0x28de22;});}['_getSuggestionCoords'](_0x1f67eb){return this['_getCoordsForCells'](_0x1f67eb['getRanges']()['map'](_0x520049=>_0x520049['start']['nodeAfter']));}}function xe(_0x2da498){return Array['from'](new Set(_0x2da498)['values']());}class Nt extends _0xbcf0e2{static get['requires'](){return[Ct];}['afterInit'](){const _0x20b1a5=this['editor'],_0x4e7b74=_0x20b1a5['model']['document']['selection'],_0x133214=_0x20b1a5['locale'];if(!_0x20b1a5['plugins']['has']('TableEditing'))return;const _0x4a7c1a=_0x20b1a5['plugins']['get']('TrackChangesEditing'),_0x3b9afa=_0x20b1a5['plugins']['get']('TableUtils'),_0x90445b=_0x20b1a5['plugins']['get'](Ct);_0x90445b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4a7c1a['enableCommand']('mergeTableCells',()=>{const _0x13207b=_0x3b9afa['getSelectionAffectedTableCells'](_0x20b1a5['model']['document']['selection']);_0x20b1a5['model']['change'](()=>{_0x4a7c1a['markMultiRangeBlockFormat'](_0x13207b,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x20b1a5['commands']['get']('mergeTableCells')['on']('execute',(_0x317ed5,_0xc8df3b)=>{_0x20b1a5['commands']['get']('trackChanges')['value']&&(_0xc8df3b['length']>0x0&&_0xc8df3b[_0xc8df3b['length']-0x1]&&_0xc8df3b[_0xc8df3b['length']-0x1]['forceDefaultExecution']||_0x4a7c1a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x317ed5['stop']());},{'priority':'highest'});for(const _0x5410e7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x45435a=_0x20b1a5['commands']['get'](_0x5410e7);_0x4a7c1a['enableCommand'](_0x5410e7,()=>{const _0x56e36a=_0x20b1a5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x123bc3=>_0x123bc3['is']('element','tableCell')),_0x3fa50e=_0x45435a['value'];_0x20b1a5['model']['change'](()=>{_0x4a7c1a['markMultiRangeBlockFormat']([_0x56e36a,_0x3fa50e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x342471 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4caf19=_0x20b1a5['commands']['get'](_0x342471);_0x4a7c1a['enableCommand'](_0x342471,()=>{const _0x54d2df=_0x3b9afa['getSelectionAffectedTableCells'](_0x20b1a5['model']['document']['selection'])[0x0],_0x2423db=_0x54d2df['findAncestor']('table'),{column:_0x25f298,row:_0xef732a}=_0x3b9afa['getCellLocation'](_0x54d2df);let _0x2ecfca=[];if('horizontally'==_0x4caf19['direction']){const _0x18694=_0x3b9afa['createTableWalker'](_0x2423db,{'startRow':_0xef732a,'endRow':_0xef732a,'includeAllSlots':!0x0});_0x2ecfca=Array['from'](_0x18694)['map'](_0x4a0d2a=>_0x4a0d2a['cell']);}else{const _0xafcfce=_0x3b9afa['createTableWalker'](_0x2423db,{'column':_0x25f298,'includeAllSlots':!0x0});_0x2ecfca=Array['from'](_0xafcfce)['map'](_0x20a317=>_0x20a317['cell']);}_0x20b1a5['model']['change'](_0x2353f1=>{_0x4a7c1a['markBlockFormat'](_0x2353f1['createRangeOn'](_0x54d2df),{'commandName':_0x342471,'commandParams':[]},_0x2ecfca,_0x342471);});});}_0x4a7c1a['descriptionFactory']['registerDescriptionCallback'](_0x27cbdf=>{if('formatBlock'!=_0x27cbdf['type']&&'formatInline'!=_0x27cbdf['type'])return;const {data:_0x1fd782}=_0x27cbdf;return _0x1fd782&&'mergeTableCells'==_0x1fd782['commandName']?{'type':'format','content':c(_0x133214,'*Merge\x20cells*')}:void 0x0;}),_0x4a7c1a['descriptionFactory']['registerDescriptionCallback'](_0x487950=>{if('formatBlock'!=_0x487950['type']&&'formatInline'!=_0x487950['type'])return;const {data:_0x1fa08a}=_0x487950;return _0x1fa08a?'splitTableCellVertically'==_0x1fa08a['commandName']?{'type':'format','content':c(_0x133214,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1fa08a['commandName']?{'type':'format','content':c(_0x133214,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5683d2=_0x90445b['_acceptFormatSuggestionCallbackFactory']();for(const _0x454231 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4a7c1a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x454231,'accept',_0x5683d2);for(const _0x38c066 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4a7c1a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x38c066,'accept',_0x5683d2);_0x4a7c1a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3165ad=>{_0x20b1a5['model']['change'](_0x143a79=>{const _0x46018e=Array['from'](_0x4e7b74['getRanges']())['map'](_0x203c6a=>_0x65a6cb['fromRange'](_0x203c6a));_0x143a79['setSelection'](_0x3165ad),_0x20b1a5['commands']['get']('mergeTableCells')['refresh'](),_0x20b1a5['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x304b4b=_0x46018e['filter'](_0x5431da=>'$graveyard'!=_0x5431da['root']['rootName']);_0x304b4b['length']>0x0&&_0x143a79['setSelection'](_0x304b4b);for(const _0x7e118d of _0x46018e)_0x7e118d['detach']();});});for(const _0x87d5d7 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xfb79e=_0x20b1a5['commands']['get'](_0x87d5d7);_0xfb79e['on']('set:isEnabled',(_0x2f14a4,_0x37c32f,_0x475d73)=>{if(_0x475d73){const _0x356fa5=_0x20b1a5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4dfe41=>_0x4dfe41['is']('element','tableCell'));this['_areMergableCells'](_0xfb79e['value'],_0x356fa5)||(_0x2f14a4['return']=!0x1,_0x2f14a4['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2c1021=this['editor']['commands']['get']('mergeTableCells'),_0x41a479=this['editor']['plugins']['get']('TableUtils');if(!_0x2c1021['isEnabled'])return!0x1;const _0x11d587=_0x41a479['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xd823d4 of _0x11d587)for(const _0x8a8c95 of _0x11d587)if(_0xd823d4!=_0x8a8c95&&!this['_areMergableCells'](_0xd823d4,_0x8a8c95))return!0x1;return!0x0;}['_areMergableCells'](_0xeb0011,_0x3ac6f1){const _0x17922f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24c14a=this['editor']['model']['createRangeOn'](_0xeb0011),_0x1b4e91=this['editor']['model']['createRangeOn'](_0x3ac6f1),_0x507032=new Set(),_0x3997e4=new Set();for(const _0x5bd36b of _0x17922f['getSuggestions']())if(('insertion'==_0x5bd36b['type']||'deletion'==_0x5bd36b['type']||'mergeTableCells'==_0x5bd36b['subType'])&&_0x5bd36b['isInContent']){for(const _0x19914d of _0x5bd36b['getRanges']())_0x19914d['containsRange'](_0x24c14a,!0x0)&&_0x507032['add'](_0x5bd36b['type']+':'+_0x5bd36b['author']['id']),_0x19914d['containsRange'](_0x1b4e91,!0x0)&&_0x3997e4['add'](_0x5bd36b['type']+':'+_0x5bd36b['author']['id']);}if(_0x507032['size']!=_0x3997e4['size'])return!0x1;for(const _0x127b3e of _0x507032)if(!_0x3997e4['has'](_0x127b3e))return!0x1;return!0x0;}}class Dt extends _0xbcf0e2{static get['requires'](){return[Ct];}['afterInit'](){const _0x3918cc=this['editor'];if(!_0x3918cc['plugins']['has']('TableEditing'))return;const _0x2d71d9=_0x3918cc['locale'],_0x4c3e52=_0x3918cc['plugins']['get']('TrackChangesEditing');_0x4c3e52['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4c3e52['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4c3e52['registerBlockAttribute']('headingRows'),_0x4c3e52['registerBlockAttribute']('headingColumns'),_0x4c3e52['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x2d71d9,'FORMAT_HEADER_ROW')),_0x4c3e52['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x2d71d9,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x188ab3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2122b1=this['editor']['plugins']['get']('TableUtils'),_0x276ad1=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x56162c({showActiveMarker:_0x110ff7=!0x0,setDataAttribute:_0x5c001a=!0x0}={}){return(_0x2bd575,_0x47312d,_0x4a1558)=>{const {type:_0x2b177e,id:_0x5a382e}=_0x188ab3['_splitMarkerName'](_0x47312d['markerName']),_0x297a0c=_0x188ab3['getSuggestion'](_0x5a382e),_0x537195=_0x297a0c['data'];if('formatBlock'!=_0x297a0c['type']||!_0x537195||'setTableColumnHeader'!=_0x537195['commandName'])return;if(_0x47312d['item'])return void _0x2bd575['stop']();if(!_0x4a1558['consumable']['consume'](_0x47312d['markerRange'],_0x2bd575['name']))return;const _0x12f468=_0x47312d['markerRange']['start']['nodeAfter'],_0x361f52=_0x47312d['markerRange']['end']['nodeBefore'],_0x3d32fa=_0x12f468['parent']['parent'],{column:_0x14b6da}=_0x2122b1['getCellLocation'](_0x12f468),{column:_0x2bef09}=_0x2122b1['getCellLocation'](_0x361f52);for(let _0xdd393a=_0x14b6da;_0xdd393a<=_0x2bef09;_0xdd393a++){const _0x4fa394=_0x2122b1['createTableWalker'](_0x3d32fa,{'column':_0xdd393a,'includeAllSlots':!0x1});for(const _0x5676a4 of _0x4fa394){const _0x567375=_0x5676a4['cell'],_0x3cb9b2=_0x4a1558['mapper']['toViewElement'](_0x567375);_0x4a1558['writer']['addClass']('ck-suggestion-marker-'+_0x2b177e,_0x3cb9b2),_0x5c001a&&_0x4a1558['writer']['setAttribute']('data-suggestion',_0x5a382e,_0x3cb9b2),_0x4a1558['mapper']['bindElementToMarker'](_0x3cb9b2,_0x47312d['markerName']),_0x110ff7&&(_0x188ab3['activeMarkers']['includes'](_0x47312d['markerName'])?_0x4a1558['writer']['addClass']('ck-suggestion-marker--active',_0x3cb9b2):_0x4a1558['writer']['removeClass']('ck-suggestion-marker--active',_0x3cb9b2));}}};}_0x188ab3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x276ad1),_0x188ab3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x276ad1),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x56162c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe6c871,_0x11a832,_0x1ce9e6)=>{_0x1ce9e6['options']['showSuggestionHighlights']&&_0x56162c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xe6c871,_0x11a832,_0x1ce9e6);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x141522,_0x1ecac8,_0x3fd8aa)=>{const {type:_0xd20acd,id:_0x34e955}=_0x188ab3['_splitMarkerName'](_0x1ecac8['markerName']),_0x3263eb=_0x188ab3['getSuggestion'](_0x34e955),_0x1c4d47=_0x3263eb['data'];if('formatBlock'!=_0x3263eb['type']||!_0x1c4d47||'setTableColumnHeader'!=_0x1c4d47['commandName'])return;const _0x3710a1=_0x3fd8aa['mapper']['markerNameToElements'](_0x1ecac8['markerName']);if(_0x3710a1){for(const _0x9a05dc of _0x3710a1)_0x3fd8aa['writer']['removeClass']('ck-suggestion-marker-'+_0xd20acd,_0x9a05dc),_0x3fd8aa['writer']['removeClass']('ck-suggestion-marker--active',_0x9a05dc),_0x3fd8aa['writer']['removeAttribute']('data-suggestion',_0x9a05dc),_0x3fd8aa['mapper']['unbindElementFromMarkerName'](_0x9a05dc,_0x1ecac8['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e5080=this['editor'],_0x3d57c3=_0x4e5080['locale'];function _0x382723(_0x5e4b07){return{'type':'format','content':c(_0x3d57c3,'*Format:*\x20%0',_0x5e4b07)};}_0x4e5080['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1887e2=>{if('formatBlock'!=_0x1887e2['type'])return;const {data:_0x2289c2}=_0x1887e2;if(_0x2289c2){if('setTableRowHeader'==_0x2289c2['commandName']){const _0x375d50=_0x2289c2['commandParams'][0x0]['forceValue'];return _0x382723(c(_0x3d57c3,_0x375d50?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2289c2['commandName']){const _0x127243=_0x2289c2['commandParams'][0x0]['forceValue'];return _0x382723(c(_0x3d57c3,_0x127243?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0xbcf0e2{['afterInit'](){const _0x50fabf=this['editor'],_0x5573af=_0x50fabf['locale'],_0x282875=_0x50fabf['plugins']['get']('TrackChangesEditing');function _0x49c238(_0x3d2322){return{'type':'format','content':''+c(_0x5573af,'*Set\x20table\x20type:*\x20%0',_0x3d2322)};}_0x50fabf['plugins']['has']('TableLayout')&&(_0x282875['enableCommand']('insertTableLayout'),_0x282875['enableDefaultAttributesIntegration']('tableType'),_0x282875['registerBlockAttribute']('tableType'),_0x282875['descriptionFactory']['registerElementLabel'](_0x4afe52=>_0x4afe52['is']('element','table')&&'layout'===_0x4afe52['getAttribute']('tableType'),_0x2727e8=>c(_0x5573af,'ELEMENT_LAYOUT_TABLE',_0x2727e8)),_0x282875['descriptionFactory']['registerDescriptionCallback'](_0x52bef9=>{const {data:_0x13b14d}=_0x52bef9;if(_0x13b14d&&'tableType'==_0x13b14d['key'])switch(_0x13b14d['newValue']){case'layout':return _0x49c238(c(_0x5573af,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x49c238(c(_0x5573af,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x1dcbf9=>[_0x1dcbf9,null]));class $t extends _0xbcf0e2{static get['requires'](){return[Ct];}['afterInit'](){const _0x167122=this['editor'];if(!_0x167122['plugins']['has']('TableClipboard'))return;const _0x42d76d=_0x167122['plugins']['get']('TrackChangesEditing'),_0x25fad1=_0x167122['plugins']['get']('TableUtils'),_0x1c84c7=_0x167122['plugins']['get'](Ct),_0x179ce5=_0x167122['plugins']['get']('TableClipboard'),_0xc607c1=_0x167122['plugins']['get']('TableSelection'),_0xd6943d=_0x167122['plugins']['get'](_0x4edd80);_0x1c84c7['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x167122['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x167122['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x39351c=null,_0x619e1e=!0x1;_0xd6943d['on']('contentInsertion',(_0x276436,_0x5ad187)=>{_0x619e1e='paste'===_0x5ad187['method'];}),_0x167122['model']['on']('insertContent',(_0x41f59c,_0x29d3e8)=>{if(!_0x619e1e&&null===_0xc607c1['getSelectedTableCells']())return;const [_0x34ef34,_0x8bc430]=_0x29d3e8,_0x1ca29f=_0x29d3e8[_0x29d3e8['length']-0x1];_0x1ca29f&&_0x1ca29f['forceDefaultExecution']||_0x42d76d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2543f3,_0x120e4c,_0x2cce69,_0x481523,_0x4f23fa){if(_0x120e4c&&!_0x120e4c['is']('documentSelection'))return!0x1;const _0x4a9bd2=_0x4f23fa['getTableIfOnlyTableInContent'](_0x2543f3,_0x2cce69);if(!_0x4a9bd2||!He(_0x4a9bd2,void 0x0,_0x481523))return!0x1;const _0x5aefba=_0x481523['getSelectionAffectedTableCells'](_0x2cce69['document']['selection']);if(!_0x5aefba['length'])return!0x1;const _0x2e8d28=_0x5aefba[0x0]['findAncestor']('table'),_0x4ae9be=_0x481523['getRowIndexes'](_0x5aefba),_0x2bfe9e=_0x481523['getColumnIndexes'](_0x5aefba),_0x125f52={'startRow':_0x4ae9be['first'],'endRow':_0x4ae9be['last'],'startColumn':_0x2bfe9e['first'],'endColumn':_0x2bfe9e['last']};return 0x1==_0x5aefba['length']&&(_0x125f52['endRow']+=_0x481523['getRows'](_0x4a9bd2)-0x1,_0x125f52['endColumn']+=_0x481523['getColumns'](_0x4a9bd2)-0x1),He(_0x2e8d28,_0x125f52,_0x481523);}(_0x34ef34,_0x8bc430,_0x167122['model'],_0x25fad1,_0x179ce5)&&(_0x41f59c['stop'](),_0x39351c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x167122['model']['change'](()=>{_0x167122['model']['insertContent'](_0x29d3e8[0x0],_0x29d3e8[0x1],_0x29d3e8[0x2],{'forceDefaultExecution':!0x0});const _0x2c14cf=_0x525dd0(),{rowInsertionRanges:_0x1167b1,columnInsertionRanges:_0x534b3f,insertionRanges:_0x5007b2,deletionRanges:_0x5806b2,cells:_0x3c1157}=_0x39351c;_0x1167b1['length']&&_0x42d76d['markMultiRangeInsertion'](_0x1167b1,'tablePasteRow',{'tablePasteChainId':_0x2c14cf}),_0x534b3f['length']&&_0x42d76d['markMultiRangeInsertion'](_0x534b3f,'tablePasteColumn',{'tablePasteChainId':_0x2c14cf}),_0x5007b2['length']&&(_0x42d76d['markMultiRangeInsertion'](_0x5007b2,'tablePaste',{'tablePasteChainId':_0x2c14cf,'skipNestingCheck':!0x0}),_0x5007b2['forEach'](_0x443e42=>_0x443e42['detach']?.())),_0x5806b2['length']&&(_0x42d76d['markMultiRangeDeletion'](_0x5806b2,'tablePaste',{'tablePasteChainId':_0x2c14cf,'skipNestingCheck':!0x0}),_0x5806b2['forEach'](_0x5cae73=>_0x5cae73['detach']?.()));const _0x6afe7d=_0x42d76d['markMultiRangeBlockFormat'](_0x3c1157['map'](({element:_0xd877c2})=>_0xd877c2),{'formatGroupId':_0x525dd0()},[],'tablePasteCell',{'tablePasteChainId':_0x2c14cf});if(_0x6afe7d){const _0x27364b=_0x6afe7d['getMarkers'](),_0x50a967=[];for(const {element:_0x517049,attributes:_0x5bdc80}of _0x3c1157){if(!_0x5bdc80)continue;const _0x5cbb36=_0x167122['model']['createRangeOn'](_0x517049),_0x2bf795=_0x27364b['find'](_0xdbbe68=>_0xdbbe68['getRange']()['isEqual'](_0x5cbb36));_0x2bf795&&_0x50a967['push']([_0x2bf795['name'],_0x5bdc80]);}_0x50a967['length']&&_0x6afe7d['setAttribute']('markerAttributes',Object['fromEntries'](_0x50a967));}_0x39351c=null;}));},{'priority':_0x4a1678['high']+0xa}),_0xd6943d['on']('contentInsertion',()=>{_0x619e1e=!0x1;},{'priority':'lowest'}),_0x167122['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x17fc72,_0x161116)=>{const [_0x99d2cc,_0x3396cd,,_0x101409]=_0x161116;if(!_0x39351c)return;_0x17fc72['stop']();const _0x4fa80d=_0x99d2cc['cell'],_0xe62903=_0x3396cd,_0x5dd85b=De(_0x4fa80d),_0x3d52ca=De(_0xe62903);_0x17fc72['return']=_0x4fa80d;let _0x3307fd=null,_0x73ab9c=null;if(_0x3d52ca||_0x5dd85b){if(_0x5dd85b&&!_0x3d52ca){_0x101409['remove'](_0x4fa80d['getChild'](0x0));for(const _0x396af8 of Array['from'](_0xe62903['getChildren']()))_0x101409['insert'](_0x396af8,_0x4fa80d,'end');const _0x1b9b0b=_0x39351c['rowInsertionIndexes']['includes'](_0x99d2cc['row']),_0xfe3481=_0x39351c['columnInsertionIndexes']['includes'](_0x99d2cc['column']);_0x1b9b0b||_0xfe3481||(_0x3307fd=_0x65a6cb['fromRange'](_0x101409['createRangeIn'](_0x4fa80d)));}else _0x3d52ca&&!_0x5dd85b&&(_0x73ab9c=_0x101409['createRangeIn'](_0x4fa80d));}else{const _0x4a1cb9=_0x101409['createElement']('tableCellSuggestion'),_0x5365ed=_0x101409['createElement']('tableCellSuggestion');_0x101409['wrap'](_0x101409['createRangeIn'](_0x4fa80d),_0x5365ed),_0x101409['insert'](_0x4a1cb9,_0x4fa80d,0x0);for(const _0x8a74f3 of Array['from'](_0xe62903['getChildren']()))_0x101409['insert'](_0x8a74f3,_0x4a1cb9,'end');_0x3307fd=_0x65a6cb['fromRange'](_0x101409['createRangeOn'](_0x4a1cb9)),_0x73ab9c=_0x65a6cb['fromRange'](_0x101409['createRangeOn'](_0x5365ed));}const _0x17bff5=Array['from'](_0xe62903['getAttributes']())['filter'](([_0x5c0b29])=>Oe['includes'](_0x5c0b29));_0x39351c['cells']['push']({'element':_0x4fa80d,'attributes':_0x17bff5['length']?Object['fromEntries'](_0x17bff5):null}),_0x3307fd&&_0x39351c['insertionRanges']['push'](_0x3307fd),_0x73ab9c&&_0x39351c['deletionRanges']['push'](_0x73ab9c);},{'priority':'high'}),_0x25fad1['on']('insertColumns',(_0x851293,_0x4420bf)=>{const [_0x5c7ee1,_0x570193={}]=_0x4420bf;if(!_0x39351c)return;const _0x940236=_0x570193['at']||0x0,_0x1f821f=_0x570193['columns']||0x1;_0x39351c['columnInsertionIndexes']=new Array(_0x1f821f)['fill'](_0x940236)['map']((_0xf12dab,_0x544358)=>_0xf12dab+_0x544358);for(const {cell:_0x150a7f}of _0x25fad1['createTableWalker'](_0x5c7ee1,{'startColumn':_0x940236,'endColumn':_0x940236+_0x1f821f-0x1}))_0x39351c['columnInsertionRanges']['push'](_0x167122['model']['createRangeOn'](_0x150a7f));},{'priority':'low'}),_0x25fad1['on']('insertRows',(_0x474594,_0x5ced36)=>{const [_0x282cfa,_0x45664b={}]=_0x5ced36;if(!_0x39351c)return;const _0x541bd3=_0x45664b['at']||0x0,_0x1b5c70=_0x45664b['rows']||0x1;_0x39351c['rowInsertionIndexes']=new Array(_0x1b5c70)['fill'](_0x541bd3)['map']((_0x3f3759,_0x2836f9)=>_0x3f3759+_0x2836f9);for(const {cell:_0x29bb2b}of _0x25fad1['createTableWalker'](_0x282cfa,{'startRow':_0x541bd3,'endRow':_0x541bd3+_0x1b5c70-0x1}))_0x39351c['rowInsertionRanges']['push'](_0x167122['model']['createRangeOn'](_0x29bb2b));},{'priority':'low'}),_0x42d76d['descriptionFactory']['registerDescriptionCallback'](_0x4fb2dd=>{if(_0x4fb2dd['subType']&&_0x4fb2dd['subType']['startsWith']('tablePaste'))return _0x4fb2dd['previous']?{}:{'type':'insertion','content':c(_0x167122['locale'],'*Replace\x20table\x20cells*')};});const _0x204ff3=()=>!0x1;for(const _0xe6094e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x42d76d['_suggestionFactory']['registerCustomCallback']('insertion',_0xe6094e,'join',_0x204ff3),_0x42d76d['_suggestionFactory']['registerCustomCallback']('deletion',_0xe6094e,'join',_0x204ff3),_0x42d76d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xe6094e,'join',_0x204ff3);_0x42d76d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x204ff3),_0x42d76d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x25ffcd,_0x51cc48,_0x4a897d)=>{const _0x4bde20=_0x25ffcd['map'](_0x3e02a5=>_0x3e02a5['getContainedElement']())['filter'](_0x2fda4a=>_0x2fda4a),_0x541c04=new Map(_0x4bde20['map'](_0x4e87ec=>[_0x4e87ec,null]));if(_0x39351c){for(const {element:_0x4f3019,attributes:_0x20b0db}of _0x39351c['cells'])_0x20b0db&&_0x541c04['set'](_0x4f3019,_0x20b0db);}else{if(_0x4a897d&&_0x4a897d['markerAttributes'])for(const [_0x4502ba,_0x2744d6]of Object['entries'](_0x4a897d['markerAttributes'])){const _0x4b953c=_0x167122['model']['markers']['get'](_0x4502ba),_0x49276d=_0x4b953c?_0x4b953c['getRange']()['getContainedElement']():null;_0x49276d&&_0x541c04['set'](_0x49276d,_0x2744d6);}}_0x167122['model']['change'](_0x326050=>{for(const [_0x1e154b,_0x3f2a1f]of _0x541c04)_0x326050['setAttributes']({...Ue,..._0x3f2a1f},_0x1e154b);});});const _0x5c520c=(_0x2372fa,_0x543346)=>{_0x42d76d['_suggestionFactory']['registerCustomCallback'](_0x2372fa,'tablePaste',_0x543346,(_0x18e3eb,_0x21d472,_0x20b0b8)=>{_0x167122['model']['change'](_0x2542f4=>{const _0x174472=[];for(const _0x47dc36 of _0x18e3eb){const _0x9b17ea=_0x47dc36['start']['nodeAfter'];_0x9b17ea['is']('element','tableCellSuggestion')&&_0x174472['push'](_0x9b17ea);}_0x42d76d['_suggestionFactory']['getSuggestionCallback'](_0x2372fa,null,_0x543346)(_0x18e3eb,_0x21d472,_0x20b0b8);for(const _0x1bbd87 of _0x174472)'$graveyard'!=_0x1bbd87['root']['rootName']&&_0x2542f4['unwrap'](_0x1bbd87);});});};_0x5c520c('insertion','accept'),_0x5c520c('insertion','discard'),_0x5c520c('deletion','accept'),_0x5c520c('deletion','discard'),_0x42d76d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1800f8=>{const _0x3bab6a=_0x1800f8['map'](_0x4f5d93=>_0x4f5d93['getContainedElement']()),_0x7267bd=_0x3bab6a[0x0]['findAncestor']('table'),{minRow:_0x3d074d,maxRow:_0x47b08a}=_0x1c84c7['_getCoordsForCells'](_0x3bab6a);_0x25fad1['removeRows'](_0x7267bd,{'at':_0x3d074d,'rows':_0x47b08a-_0x3d074d+0x1});}),_0x42d76d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3808b6=>{const _0x41e3bc=_0x3808b6['map'](_0x125ac8=>_0x125ac8['getContainedElement']()),_0xf388e3=_0x41e3bc[0x0]['findAncestor']('table'),{minColumn:_0x30fd4d,maxColumn:_0x4dd1b6}=_0x1c84c7['_getCoordsForCells'](_0x41e3bc);_0x25fad1['removeColumns'](_0xf388e3,{'at':_0x30fd4d,'columns':_0x4dd1b6-_0x30fd4d+0x1});});const _0x750b2=(_0x49c572,_0x516010)=>{if(!_0x516010['subType']||!_0x516010['subType']['startsWith']('tablePaste'))return;const _0x5ad769=_0x516010['attributes']['tablePasteChainId'],_0x21e3a8=_0x42d76d['getSuggestions']()['filter'](_0x1347d3=>_0x1347d3['isInContent']&&_0x1347d3['attributes']&&_0x1347d3['attributes']['tablePasteChainId']==_0x5ad769);_0x21e3a8['length']&&_0x516010['getAllAdjacentSuggestions']()['length']!=_0x21e3a8['length']&&_0x21e3a8['reduce']((_0x186a61,_0x3d8487)=>(_0x186a61['next']=_0x3d8487,_0x3d8487['previous']=_0x186a61,_0x3d8487));};function _0x22069d(_0x56ed06,_0x1ddab9=!0x0){const {id:_0x4405cc,authorId:_0xf01e6b}=_0x42d76d['_splitMarkerName'](_0x56ed06['markerName']),_0xd94bcb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3321b4=_0x42d76d['activeMarkers']['includes'](_0x56ed06['markerName']);return _0x3321b4&&_0xd94bcb['push']('ck-suggestion-marker--active'),{'classes':_0xd94bcb,'attributes':{'data-suggestion':_0x4405cc,'data-author-id':_0xf01e6b},'priority':_0x3321b4&&_0x1ddab9?0xbc2:0xbb8};}_0x42d76d['on']('suggestionLoaded',_0x750b2,{'priority':'high'}),_0x42d76d['on']('suggestionUnloaded',_0x750b2,{'priority':'high'}),_0x167122['model']['document']['registerPostFixer'](()=>{let _0x1f282b=!0x1;const _0xf3a6c3=Array['from'](_0x167122['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24f257,data:_0x69f171}of _0xf3a6c3){const {group:_0x379b1d,type:_0x5e9218,id:_0x573d9f}=_0x42d76d['_splitMarkerName'](_0x24f257);if('suggestion'!=_0x379b1d||'deletion'!=_0x5e9218||_0x69f171['oldRange'])continue;if(!_0x42d76d['hasSuggestion'](_0x573d9f))continue;const _0x4f4338=_0x42d76d['getSuggestion'](_0x573d9f)['getRanges'](),_0x4ef90e=_0x167122['plugins']['get']('Users')['me'];for(const _0x5c141c of _0x42d76d['getSuggestions']()){if(!_0x5c141c['isInContent']||_0x5c141c['author']!=_0x4ef90e)continue;if('formatBlock'!=_0x5c141c['type']||'tablePasteCell'!=_0x5c141c['subType'])continue;if(_0x5c141c['getRanges']()['every'](_0x294c54=>_0x4f4338['some'](_0x2b2edc=>_0x2b2edc['containsRange'](_0x294c54,!0x0)))){for(const _0x46cfd4 of _0x5c141c['getAllAdjacentSuggestions']())_0x46cfd4['isInContent']&&(_0x46cfd4['discard'](),_0x1f282b=!0x0);}}}return _0x1f282b;}),_0x167122['model']['document']['registerPostFixer'](_0xe59578=>{const _0x11a6bc=_0x167122['commands']['get']('redo');if(!_0x11a6bc||!_0x11a6bc['_createdBatches']['has'](_0xe59578['batch']))return!0x1;let _0x55b3b2=!0x1;const _0x1c2d15=_0x167122['plugins']['get']('Users')['me'],_0x5bb1f7=_0x167122['model']['document']['differ']['getChanges'](),_0x3fe129=Array['from'](_0x167122['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x510e6e,data:_0x487326})=>{const {group:_0x40e119,subType:_0x5737bf,authorId:_0x3ebe5e}=_0x42d76d['_splitMarkerName'](_0x510e6e);return'suggestion'==_0x40e119&&'tablePaste'==_0x5737bf&&_0x3ebe5e==_0x1c2d15['id']&&!_0x487326['oldRange'];});for(const _0x3b6449 of _0x5bb1f7){if('insert'!=_0x3b6449['type']||'tableCellSuggestion'!=_0x3b6449['name']||0x1!=_0x3b6449['length'])continue;const _0x18da8a=_0xe59578['createRange'](_0x3b6449['position'],_0x3b6449['position']['getShiftedBy'](0x1));if(!_0x3fe129['find'](({data:_0x1cef91})=>_0x1cef91['newRange']['isEqual'](_0x18da8a))){for(const {name:_0xd70ee5,data:_0x4b5f5f}of _0x3fe129)if(_0x18da8a['containsRange'](_0x4b5f5f['newRange'])){_0xe59578['updateMarker'](_0xd70ee5,{'range':_0x18da8a}),_0x55b3b2=!0x0;break;}}}return _0x55b3b2;}),_0x167122['model']['document']['registerPostFixer'](_0x16e1a1=>{let _0xb650c=!0x1;const _0xfaccdd=_0x167122['plugins']['get']('Users')['me'],_0x20add5=_0x42d76d['getSuggestions']()['filter'](_0x45f800=>_0x45f800['isInContent']&&_0x45f800['author']==_0xfaccdd),_0x4b682a=new Set(),_0x404e57=new Set();for(const _0x4e71ab of _0x20add5)if('tablePaste'==_0x4e71ab['subType'])for(const _0x542ff0 of _0x4e71ab['getMarkers']()){const _0x4cb976=_0x542ff0['getRange']()['getContainedElement']();if(_0x4cb976){if(_0x4cb976['is']('element','tableCellSuggestion')&&De(_0x4cb976)){_0x4e71ab['removeMarker'](_0x542ff0['name']),_0x4b682a['add'](_0x4cb976),_0xb650c=!0x0;const _0x2d0b91=_0x4cb976['nextSibling'],_0x1c8fc6=_0x4cb976['previousSibling'],_0x348d4e=_0x2d0b91&&_0x2d0b91['is']('element','tableCellSuggestion'),_0x2de066=_0x1c8fc6&&_0x1c8fc6['is']('element','tableCellSuggestion');_0x348d4e&&!_0x4b682a['has'](_0x2d0b91)&&_0x404e57['add'](_0x2d0b91),_0x2de066&&!_0x4b682a['has'](_0x1c8fc6)&&_0x404e57['add'](_0x1c8fc6);}else _0x4cb976['is']('element','paragraph')&&_0x4cb976['isEmpty']&&(_0x4e71ab['removeMarker'](_0x542ff0['name']),_0xb650c=!0x0);}}else{if('tablePasteCell'==_0x4e71ab['subType']){if(!_0x4e71ab['attributes']||!_0x4e71ab['attributes']['tablePasteChainId'])continue;const _0x17759a=_0x4e71ab['attributes']['markerAttributes'];if(_0x17759a&&Object['keys'](_0x17759a)['length'])continue;const _0x571c9=_0x4e71ab['attributes']['tablePasteChainId'];let _0x33ff9c=!0x0,_0x56945b=!0x0;for(const _0x1c2d3f of _0x20add5)if(_0x1c2d3f['subType']&&_0x1c2d3f['subType']['startsWith']('tablePaste')){if(!_0x1c2d3f['attributes']['tablePasteChainId']){_0x56945b=!0x1;break;}if(_0x1c2d3f['id']!=_0x4e71ab['id']&&_0x1c2d3f['attributes']['tablePasteChainId']==_0x571c9){_0x33ff9c=!0x1;break;}}_0x56945b&&_0x33ff9c&&(_0x4e71ab['removeMarkers'](),_0xb650c=!0x0);}}for(const _0x99ad70 of _0x4b682a)_0x16e1a1['remove'](_0x99ad70);for(const _0x19a208 of _0x404e57)_0x16e1a1['unwrap'](_0x19a208);return _0xb650c;}),_0x167122['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5d155c=>_0x22069d(_0x5d155c),'converterPriority':'high'}),_0x167122['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1607c7,_0x132f4d)=>_0x132f4d['options']['showSuggestionHighlights']?_0x22069d(_0x1607c7,!0x1):null,'converterPriority':'high'});const _0x3214c6=_0x167122['editing']['view'];this['listenTo'](_0x3214c6['document'],'clipboardOutput',(_0x49b89,_0xfe40ef)=>{const _0xe92135=[];for(const _0x981228 of _0x3214c6['createRangeIn'](_0xfe40ef['content'])['getItems']())_0x981228['is']('element','suggestion-td')&&_0xe92135['push'](_0x981228);_0x3214c6['change'](_0x2dec75=>{for(const _0x14c08c of _0xe92135)_0x2dec75['move'](_0x2dec75['createRangeIn'](_0x14c08c),_0x2dec75['createPositionBefore'](_0x14c08c)),_0x2dec75['remove'](_0x14c08c);});});}}function De(_0x42af76){if(_0x42af76['isEmpty'])return!0x0;const _0x17459d=_0x42af76['getChild'](0x0);return _0x17459d['is']('element','paragraph')&&_0x17459d['isEmpty'];}function He(_0x8d2c85,_0x159c34={},_0x9705c5){for(const {isAnchor:_0x28ec3d,cellHeight:_0x2efc18,cellWidth:_0x518553}of _0x9705c5['createTableWalker'](_0x8d2c85,{'includeAllSlots':!0x0,..._0x159c34}))if(!_0x28ec3d||0x1!=_0x2efc18||0x1!=_0x518553)return!0x1;return!0x0;}class Bt extends _0xbcf0e2{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5a851c=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a851c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5a851c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5a851c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5a851c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5a851c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5a851c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x39f638,_0x337670){const _0x3c7a7d=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc68775=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x577da0=_0x337670['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x56a6f4=_0xc68775['getColumnGroupElement'](_0x577da0);let _0x5dbc5e=_0x56a6f4?_0xc68775['getTableColumnsWidths'](_0x56a6f4):null,_0x39d21b=_0x577da0['getAttribute']('tableWidth')||null;const _0x49e47d=_0x337670['tableWidth']||_0x39d21b,_0x5b5ac1=_0x337670['columnWidths']||_0x5dbc5e,_0x414124=this['editor']['plugins']['get']('Users')['me'];for(const _0x5d4c1c of _0x3c7a7d['getSuggestions']()){const _0x39d29b=_0x5d4c1c['getContainedElement']();if('resizeTable'===_0x5d4c1c['subType']&&_0x39d29b===_0x577da0){_0x5d4c1c['author']!==_0x414124&&_0x5d4c1c['discard']();const _0x6ff121=_0x5d4c1c['data']['commandParams'];_0x39d21b=_0x6ff121[0x0]['tableWidth'],_0x5dbc5e=_0x6ff121[0x0]['columnWidths'];break;}}_0x39f638({'table':_0x577da0,'tableWidth':_0x49e47d,'columnWidths':_0x5b5ac1}),_0x3c7a7d['markBlockFormat'](_0x577da0,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x39d21b,'columnWidths':_0x5dbc5e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x72d7d4){if('formatBlock'!=_0x72d7d4['type']&&'formatInline'!=_0x72d7d4['type'])return;const {data:_0x252ed4}=_0x72d7d4;if(_0x252ed4&&'resizeTable'===_0x252ed4['formatGroupId']){const _0x2cf2e7='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x2cf2e7)};}}}class Ot extends _0xbcf0e2{['afterInit'](){const _0x3d4177=this['editor'];_0x3d4177['plugins']['has']('Template')&&_0x3d4177['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0xbcf0e2{['afterInit'](){const _0x22eb19=this['editor'];if(!_0x22eb19['commands']['get']('insertTableOfContents'))return;_0x22eb19['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x54b980=_0x22eb19['plugins']['get']('TrackChangesEditing'),_0x4d62f=_0x22eb19['locale'];_0x54b980['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4bb499=>c(_0x4d62f,'ELEMENT_TABLE_OF_CONTENTS',_0x4bb499));}}class xt extends _0xbcf0e2{['afterInit'](){const _0xb3f353=this['editor'];if(!_0xb3f353['plugins']['has']('Title'))return;const _0x1fb910=_0xb3f353['plugins']['get']('TrackChangesEditing');_0x1fb910['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0xb3f353['locale'],'ELEMENT_TITLE')),_0xb3f353['model']['document']['registerPostFixer'](_0x1c5653=>{let _0x470bbf=!0x1;const _0x51c6b2=Array['from'](_0xb3f353['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3777b7,data:_0x5194d1}of _0x51c6b2){const {group:_0x46cf78}=_0x1fb910['_splitMarkerName'](_0x3777b7);if('suggestion'!==_0x46cf78||!_0x5194d1['newRange'])continue;const _0x48a68e=_0x5194d1['newRange'],_0x21f8c8=_0x48a68e['end']['nodeBefore'];if(!_0x21f8c8||!_0x21f8c8['is']('element','title-content'))continue;if(!_0x48a68e['start']['isTouching'](_0x48a68e['end']))continue;const _0x3a321e=_0xb3f353['model']['schema']['getNearestSelectionRange'](_0x48a68e['end'],'forward');if(_0x3a321e&&_0x3a321e['isCollapsed']){const _0x31991a=_0x1c5653['createRange'](_0x48a68e['start'],_0x3a321e['start']);_0x31991a['isEqual'](_0x48a68e)||(_0x1c5653['updateMarker'](_0x3777b7,{'range':_0x31991a}),_0x470bbf=!0x0);}_0x470bbf||(_0x1c5653['removeMarker'](_0x3777b7),_0x470bbf=!0x0);}return _0x470bbf;});}}class Tt extends _0xbcf0e2{['afterInit'](){const _0x46d238=this['editor'],_0x32f91f=_0x46d238['plugins']['get']('TrackChangesEditing');_0x46d238['plugins']['has']('Uploadcare')&&(_0x32f91f['enableCommand']('uploadcare'),_0x46d238['plugins']['has']('UploadcareImageEdit')&&(_0x32f91f['enableCommand']('uploadcareImageEdit'),_0x32f91f['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x32f91f['registerBlockAttribute']('uploadcareImageId'),_0x32f91f['descriptionFactory']['registerDescriptionCallback'](_0x45697b=>{if('attribute'!=_0x45697b['type'])return;const {data:_0x3d603a}=_0x45697b;return _0x3d603a&&'uploadcareImageId'==_0x3d603a['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0xbcf0e2{['afterInit'](){const _0x3e8d94=this['editor'],_0x5aeb83=_0x3e8d94['plugins']['get']('TrackChangesEditing');_0x3e8d94['plugins']['has']('UndoEditing')&&(_0x5aeb83['enableCommand']('undo'),_0x5aeb83['enableCommand']('redo'));}}class Ut extends _0xbcf0e2{static get['requires'](){return[Ct];}['afterInit'](){const _0x4c0838=this['editor'];if(!_0x4c0838['plugins']['has']('TableCaptionEditing'))return;_0x4c0838['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0xbcf0e2{['tableProperties'];['tableCellProperties'];constructor(_0x73572){super(_0x73572),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 _0x1e5cc9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x546584 of this['tableProperties'])_0x1e5cc9['enableCommand'](_0x546584,(_0x2ccd0f,_0x57998c)=>{const _0x40b906=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x546584,[_0x40b906],this['tableProperties'],'tableProperties',_0x2ccd0f,_0x57998c);});_0x1e5cc9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1e5cc9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1e5cc9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x49b87c,_0x2cdadc)=>this['handleDiscardAction'](this['tableProperties'],_0x49b87c,_0x2cdadc)),_0x1e5cc9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2df36d of this['tableCellProperties'])_0x1e5cc9['enableCommand'](_0x2df36d,(_0xd5fb7b,_0xc12555)=>{const _0x238ac4=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2df36d,_0x238ac4,this['tableCellProperties'],'tableCellProperties',_0xd5fb7b,_0xc12555);});_0x1e5cc9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1e5cc9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1e5cc9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x30b541,_0x226796)=>this['handleDiscardAction'](this['tableCellProperties'],_0x30b541,_0x226796)),_0x1e5cc9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1e5cc9['descriptionFactory']['registerDescriptionCallback'](_0x390966=>this['handleSuggestionDescription'](_0x390966));}['_handlePropertyChange'](_0x479de2,_0x275f0f,_0x300f97,_0x4e9e22,_0x2191fb,_0x1ae40f){const _0x2c864f=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1ae40f['batch'],()=>{for(const _0x391468 of _0x275f0f){if(this['_getSuggestion'](_0x391468,_0x4e9e22))_0x2191fb(_0x1ae40f);else{const _0x255709={};for(const _0x44eddf of _0x300f97){const _0x5e498a=_0x391468['getAttribute'](_0x44eddf);void 0x0!==_0x5e498a&&(_0x255709[_0x44eddf]=_0x5e498a);}_0x2191fb(_0x1ae40f),_0x2c864f['markBlockFormat'](_0x391468,{'commandParams':[_0x255709]},[],_0x4e9e22);}}});}['handleDiscardAction'](_0x233750,_0x59a139,_0x35eacd){const _0x5355fc=_0x59a139[0x0]['start']['nodeAfter'],_0x36d577=_0x35eacd['commandParams'][0x0];this['editor']['model']['change'](_0x96086=>{for(const _0x12db76 of _0x233750)void 0x0!==_0x36d577[_0x12db76]?_0x96086['setAttribute'](_0x12db76,_0x36d577[_0x12db76],_0x5355fc):_0x96086['removeAttribute'](_0x12db76,_0x5355fc);});}['handleSuggestionDescription'](_0x566f46){if(_0x566f46['data'])switch(_0x566f46['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x45eaed,_0x15ca5b){const _0x42b42a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x33f538 of _0x42b42a['getSuggestions']({'skipNotAttached':!0x0})){const _0x3a3f68=_0x33f538['getContainedElement']();if(_0x33f538['subType']===_0x15ca5b&&_0x3a3f68===_0x45eaed)return _0x33f538;}return null;}}const u='$elementName';class p extends _0xbcf0e2{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4e4a77,_0x3a3a87,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,it,nt,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,mt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ff366){super(_0x3ff366),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x17211b,_0xdc7ca7,_0xcaef45,_0x4593e7)=>{this['_model']['change'](()=>{for(const _0x457858 of[..._0x4593e7,..._0xcaef45])this['_model']['markers']['has'](_0x457858)&&_0x3ff366['editing']['reconvertMarker'](_0x457858);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3ff366['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x3ff366['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3ff366['config']['get']('trackChanges.trackFormatChanges'),_0x3ff366['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3ff366['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3ff366,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x23944d=this['editor'],_0x1d5d8c=(_0x2326da,_0x4e1662)=>{if('attribute'!=_0x2326da)return'ck-suggestion-marker-'+_0x2326da;const _0x2a6d58=_0x4e1662['split']('|')[0x0];return this['_isBlockAttribute'](_0x2a6d58)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x23944d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x59f4ca=>{const {id:_0x1a6187,authorId:_0x216d62,type:_0x5e83b3,subType:_0xc41473}=this['_splitMarkerName'](_0x59f4ca['markerName']),_0x1b868c=['ck-suggestion-marker',_0x1d5d8c(_0x5e83b3,_0xc41473)];let _0x732533=0xbb8;return this['activeMarkers']['includes'](_0x59f4ca['markerName'])&&(_0x1b868c['push']('ck-suggestion-marker--active'),_0x732533=0xbc2),'deletion'==_0x5e83b3&&(_0x732533+=0x5),{'classes':_0x1b868c,'attributes':{'data-suggestion':_0x1a6187,'data-author-id':_0x216d62},'priority':_0x732533};}}),_0x23944d['conversion']['for']('dataDowncast')['add'](_0x352495=>{_0x352495['on']('addMarker:suggestion',(_0x126183,_0x1255e2,_0x54ad9c)=>{if(!_0x54ad9c['options']['showSuggestionHighlights'])return;const _0x14cf59=_0x1255e2['item'];if(!_0x14cf59)return;const _0x96b824=_0x54ad9c['mapper']['toViewElement'](_0x14cf59);_0x23944d['model']['schema']['isObject'](_0x14cf59)&&_0x96b824&&!_0x96b824['getCustomProperty']('widget')&&_0x96b824['is']('containerElement')&&_0xb355a2(_0x96b824,_0x54ad9c['writer']);},{'priority':'high'});}),_0x23944d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4ea256,_0x19caf8)=>{if(!_0x19caf8['options']['showSuggestionHighlights'])return null;const {id:_0x3d22c8,authorId:_0x59e3ae,type:_0x5a4962,subType:_0x3ed71b}=this['_splitMarkerName'](_0x4ea256['markerName']);return{'classes':['ck-suggestion-marker',_0x1d5d8c(_0x5a4962,_0x3ed71b)],'priority':0xbb8,'attributes':{'data-suggestion':_0x3d22c8,'data-author-id':_0x59e3ae}};}});const _0x4ff25d=({showActiveMarkers:_0x2e7a5f=!0x0,isAttributeSuggestion:_0x5b728d=!0x1}={})=>(_0x3b3ba1,_0x106dca,_0x4c10a4)=>{if(!_0x106dca['item'])return;const {id:_0x1b4aa0,authorId:_0x394001}=this['_splitMarkerName'](_0x106dca['markerName']);if(_0x5b728d){const _0x397abe=this['_suggestions']['get'](_0x1b4aa0),_0x5177b8=this['_getAttributeKey'](_0x397abe);if(!this['_isBlockAttribute'](_0x5177b8))return;}if(_0x106dca['item']['is']('selection'))return void _0x4c10a4['consumable']['consume'](_0x106dca['item'],_0x3b3ba1['name']);const _0x5bdd4c=_0x4c10a4['mapper']['toViewElement'](_0x106dca['item']);if(_0x106dca['item']['is']('element')&&_0x23944d['model']['schema']['isBlock'](_0x106dca['item'])&&!_0x5bdd4c['getCustomProperty']('addHighlight')){_0x4c10a4['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5bdd4c),_0x4c10a4['writer']['setAttribute']('data-suggestion',_0x1b4aa0,_0x5bdd4c),_0x4c10a4['writer']['setAttribute']('data-author-id',_0x394001,_0x5bdd4c),_0x4c10a4['mapper']['bindElementToMarker'](_0x5bdd4c,_0x106dca['markerName']),_0x2e7a5f&&(this['activeMarkers']['includes'](_0x106dca['markerName'])?_0x4c10a4['writer']['addClass']('ck-suggestion-marker--active',_0x5bdd4c):_0x4c10a4['writer']['removeClass']('ck-suggestion-marker--active',_0x5bdd4c));for(const _0x962327 of _0x23944d['model']['createRangeIn'](_0x106dca['item'])['getItems']())_0x4c10a4['consumable']['consume'](_0x962327,_0x3b3ba1['name']);_0x4c10a4['consumable']['consume'](_0x106dca['item'],_0x3b3ba1['name']);}};_0x23944d['conversion']['for']('dataDowncast')['add'](_0x14b682=>{_0x14b682['on']('addMarker:suggestion:formatBlock',(_0x2c8052,_0x4e7835,_0x2f30ad)=>{_0x2f30ad['options']['showSuggestionHighlights']&&_0x4ff25d({'showActiveMarkers':!0x1})(_0x2c8052,_0x4e7835,_0x2f30ad);},{'priority':'highest'});}),_0x23944d['conversion']['for']('dataDowncast')['add'](_0x325019=>{_0x325019['on']('addMarker:suggestion:attribute',(_0x2bf990,_0xf2a951,_0x2dac2d)=>{_0x2dac2d['options']['showSuggestionHighlights']&&_0x4ff25d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2bf990,_0xf2a951,_0x2dac2d);},{'priority':'highest'});}),_0x23944d['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2b8b0e,_0x5afe3a)=>{if(_0x5afe3a['options']['showSuggestionHighlights']){const {id:_0x3432f4,authorId:_0xfe8760}=this['_splitMarkerName'](_0x2b8b0e);return _0x2b8b0e['includes'](':split')||_0x2b8b0e['includes'](':merge')?{'group':'suggestion','name':_0x2b8b0e['substr'](0xb),'attributes':{'data-suggestion':_0x3432f4,'data-author-id':_0xfe8760}}:null;}return{'group':'suggestion','name':_0x2b8b0e['substr'](0xb)};}}),_0x23944d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x239a05,{writer:_0x5430b1})=>{let _0x2406d9='suggestion:'+_0x239a05['getAttribute']('suggestion-type')+':'+_0x239a05['getAttribute']('id');return _0x239a05['getAttribute']('marker-count')&&(_0x2406d9+=':'+_0x239a05['getAttribute']('marker-count')),_0x5430b1['createElement']('$marker',{'data-name':_0x2406d9});}}),_0x23944d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x23944d['conversion']['for']('editingDowncast')['add'](_0x2e6ad8=>{_0x2e6ad8['on']('addMarker:suggestion:formatBlock',_0x4ff25d(),{'priority':'high'});}),_0x23944d['conversion']['for']('editingDowncast')['add'](_0x564c5d=>{_0x564c5d['on']('addMarker:suggestion:attribute',_0x4ff25d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x23944d['conversion']['for']('editingDowncast')['add'](_0x5f0ded=>{_0x5f0ded['on']('removeMarker:suggestion:formatBlock',(_0x543285,_0x5795a0,_0x15537f)=>{const _0x25df21=_0x15537f['mapper']['markerNameToElements'](_0x5795a0['markerName']);if(_0x25df21){for(const _0x22889d of _0x25df21)_0x22889d['getCustomProperty']('addHighlight')||(_0x15537f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x22889d),_0x15537f['writer']['removeAttribute']('data-suggestion',_0x22889d),_0x15537f['writer']['removeAttribute']('data-author-id',_0x22889d),_0x15537f['mapper']['unbindElementFromMarkerName'](_0x22889d,_0x5795a0['markerName']));}},{'priority':'high'});}),_0x23944d['conversion']['for']('editingDowncast')['add'](_0x2f7190=>{_0x2f7190['on']('removeMarker:suggestion:attribute',(_0x3c1899,_0x4e1b8c,_0x233e43)=>{const _0x3ce76e=_0x233e43['mapper']['markerNameToElements'](_0x4e1b8c['markerName']);if(!_0x3ce76e)return;const {id:_0x1eebe5}=this['_splitMarkerName'](_0x4e1b8c['markerName']),_0x1c78d0=this['_suggestions']['get'](_0x1eebe5),_0xe0bf20=this['_getAttributeKey'](_0x1c78d0);if(this['_isBlockAttribute'](_0xe0bf20)){for(const _0x2c0c57 of _0x3ce76e)_0x2c0c57['getCustomProperty']('addHighlight')||(_0x233e43['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2c0c57),_0x233e43['writer']['removeAttribute']('data-suggestion',_0x2c0c57),_0x233e43['writer']['removeAttribute']('data-author-id',_0x2c0c57),_0x233e43['mapper']['unbindElementFromMarkerName'](_0x2c0c57,_0x4e1b8c['markerName']));}},{'priority':'high'});}),_0x23944d['model']['document']['registerPostFixer'](_0xf2df0d=>{let _0x1776c6=!0x1;const _0x4d7b98=Array['from'](_0x23944d['model']['document']['differ']['getChangedMarkers']()),_0x3f7237=new Set();for(const {name:_0x24da1f,data:_0x2d7d23}of _0x4d7b98){const {group:_0x4f4765,type:_0xef69d2,subType:_0x57ec82,id:_0xa56cc7}=this['_splitMarkerName'](_0x24da1f);if('suggestion'!==_0x4f4765)continue;const _0x71d4f9=this['_suggestions']['get'](_0xa56cc7);if(null!=_0x2d7d23['newRange']){'formatInline'==_0xef69d2&&(_0x1776c6=_0x1776c6||Jt(_0x2d7d23['newRange'],_0x24da1f,_0xf2df0d,_0x23944d['model']['schema']));const _0x2c173d='attribute'==_0xef69d2&&this['_isBlockAttribute'](_0x57ec82['split']('|')[0x0]);if(_0x2d7d23['newRange']['isCollapsed']||'$graveyard'==_0x2d7d23['newRange']['root']['rootName']||'formatBlock'==_0xef69d2&&!Ht(_0x2d7d23['newRange'])||_0x2c173d&&!Ht(_0x2d7d23['newRange'])||'deletion'==_0xef69d2&&!(!Lt(_0x5a6746=_0x2d7d23['newRange'])&&!function(_0x5a94f8){return _0x5a94f8['start']['parent']==_0x5a94f8['end']['nodeBefore']&&_0x5a94f8['start']['isAtEnd'];}(_0x5a6746)))_0xf2df0d['removeMarker'](_0x24da1f),_0x1776c6=!0x0;else{if(!_0x71d4f9||!_0x71d4f9['isInContent'])continue;if(_0x2d7d23['newRange']&&_0x2d7d23['oldRange']&&_0x2d7d23['newRange']['isEqual'](_0x2d7d23['oldRange']))continue;_0x3f7237['add'](_0x71d4f9);}}}var _0x5a6746;return _0x3f7237['size']>0x0&&(_0x1776c6=!!this['_joinWithAdjacentSuggestions'](_0x3f7237)||_0x1776c6),_0x1776c6;}),_0x23944d['model']['document']['registerPostFixer'](_0xd0c8db=>{let _0x19df14=!0x1;for(const _0x378f06 of _0x23944d['model']['document']['differ']['getChanges']())if('insert'==_0x378f06['type'])for(const _0x5302f1 of this['_suggestions']['values']()){if(_0x5302f1['isMultiRange']||!_0x5302f1['isInContent'])continue;const _0xb84c3d='formatBlock'==_0x5302f1['type'],_0x3f98c7=this['_getAttributeKey'](_0x5302f1),_0x2ee921=_0x3f98c7&&this['_isBlockAttribute'](_0x3f98c7);if(!_0xb84c3d&&!_0x2ee921)continue;const _0x5c41ce=_0x5302f1['getFirstRange']();if(_0x5c41ce['start']['parent']!=_0x5c41ce['end']['parent']&&!_0x5c41ce['end']['isAtEnd']){const _0x145574=_0x23944d['model']['createPositionAt'](_0x5c41ce['start']['nodeAfter'],'end'),_0x420b68=_0x23944d['model']['createRange'](_0x5c41ce['start'],_0x145574);_0xd0c8db['updateMarker'](_0x5302f1['getFirstMarker'](),{'range':_0x420b68}),_0x19df14=!0x0;}}return _0x19df14;}),_0x23944d['model']['document']['registerPostFixer'](_0x28d838=>this['_processAttributeChanges'](_0x28d838)),_0x23944d['model']['document']['registerPostFixer'](_0x35f0f5=>!_0x35f0f5['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x35f0f5)),_0x23944d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x23944d['model']['document']['on']('change:data',(_0x2f06bc,_0x53efd5)=>{if(!_0x53efd5['isLocal']||_0x53efd5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x274442=_0x23944d['model']['document']['differ']['getChanges']();if(0x0==_0x274442['length'])return;const _0x3fcf68=[],_0x3d5d75=_0x274442['filter'](_0x1eee01=>'attribute'==_0x1eee01['type']),_0x19ee0e=_0x274442['filter'](_0x1f9d20=>'insert'==_0x1f9d20['type']&&'$text'!=_0x1f9d20['name']);for(const _0xea02b9 of _0x3d5d75)this['_isRegisteredAttribute'](_0xea02b9['attributeKey'])&&_0x3fcf68['push']({'key':_0xea02b9['attributeKey'],'newValue':_0xea02b9['attributeNewValue'],'oldValue':_0xea02b9['attributeOldValue'],'range':qt(_0xea02b9['range'],_0x23944d['model'])});for(const _0xd2aceb of _0x19ee0e){if('rename'!=_0xd2aceb['action']&&'refresh'!=_0xd2aceb['action'])continue;const _0x4c0280=zt(_0xd2aceb['position']['nodeAfter'],_0x23944d['model']),_0x2c6a13=_0xd2aceb['before'];'rename'==_0xd2aceb['action']&&_0x3fcf68['push']({'key':u,'newValue':_0xd2aceb['name'],'oldValue':_0x2c6a13['name'],'range':_0x4c0280});for(const [_0x5c29af,_0x54e77c]of _0x2c6a13['attributes']){if(!this['_isRegisteredAttribute'](_0x5c29af))continue;const _0x10d3e7=_0xd2aceb['attributes']['get'](_0x5c29af);_0x54e77c!==_0x10d3e7&&_0x3fcf68['push']({'key':_0x5c29af,'newValue':_0x10d3e7,'oldValue':_0x54e77c,'range':_0x4c0280});}for(const [_0x141612,_0x113b11]of _0xd2aceb['attributes'])this['_isRegisteredAttribute'](_0x141612)&&(_0x2c6a13['attributes']['has'](_0x141612)||_0x3fcf68['push']({'key':_0x141612,'newValue':_0x113b11,'oldValue':null,'range':_0x4c0280}));}0x0!=_0x3fcf68['length']&&_0x23944d['model']['enqueueChange'](_0x53efd5,_0x55bcf1=>{const _0x49fd3d=_0x525dd0();for(const {range:_0x153183,key:_0x103e19,oldValue:_0x339bbd,newValue:_0x4f25d5}of _0x3fcf68)this['markAttributeChange'](_0x153183,_0x103e19,_0x339bbd,_0x4f25d5,{'groupId':_0x49fd3d});this['_reduceExistingSuggestions'](_0x55bcf1,_0x3fcf68);});},{'priority':'lowest'}),_0x23944d['model']['markers']['on']('update:suggestion',(_0x2a158f,_0x208eb8,_0x18909b)=>{if(null==_0x18909b){const {id:_0x4bf012}=this['_splitMarkerName'](_0x208eb8['name']),_0x2eb000=this['_suggestions']['get'](_0x4bf012);_0x2eb000&&_0x2eb000['addMarkerName'](_0x208eb8['name']);}}),_0x23944d['model']['document']['on']('change:data',()=>{const _0x553853=Array['from'](_0x23944d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4bb951=>'suggestion'===this['_splitMarkerName'](_0x4bb951['name'])['group']);if(0x0===_0x553853['length'])return;_0x553853['sort']((_0x4da2f5,_0x88cf0c)=>{const _0x183af9=_0x4da2f5['data']['oldRange'],_0x182361=_0x88cf0c['data']['oldRange'];return null===_0x183af9&&null===_0x182361?0x0:null===_0x183af9&&null!==_0x182361?-0x1:null!==_0x183af9&&null===_0x182361?0x1:_0x183af9['start']['isBefore'](_0x182361['start'])?-0x1:0x1;});const _0x2a3432=new Set(),_0x8de2b6=new Set();for(const {name:_0xdc0230,data:_0x433785}of _0x553853){const {id:_0x166a9e}=this['_splitMarkerName'](_0xdc0230);if(null===_0x433785['oldRange']){const _0x10ca14=this['_handleNewSuggestionMarker'](_0xdc0230);_0x8de2b6['add'](_0x10ca14);}else{const _0x39ee14=this['_suggestions']['get'](_0x166a9e);null!==_0x433785['newRange']||_0x39ee14['isInContent']?(_0x2a3432['add'](_0x39ee14['head']),_0x8de2b6['add'](_0x39ee14)):this['_removeSuggestion'](_0x39ee14);}}_0x8de2b6['size']>0x0&&this['_refreshSuggestionsChain'](_0x8de2b6);for(const _0x2503a3 of _0x2a3432)this['fire']('suggestionChanged',_0x2503a3);}),_0x23944d['model']['on']('applyOperation',(_0x4d7dfa,_0x230e7b)=>{const _0x2e7fd6=_0x230e7b[0x0];if(!this['_suggestions']['size'])return;if(!_0x2e7fd6['isDocumentOperation'])return;if(_0x2e7fd6['batch']['isUndo']||!_0x2e7fd6['batch']['isLocal'])return;let _0xd34bd4,_0x2509bf;switch(_0x2e7fd6['type']){case'insert':_0xd34bd4=_0x23944d['model']['createPositionAt'](_0x2e7fd6['position']),_0x2509bf=_0xd34bd4['getShiftedBy'](_0x2e7fd6['howMany']);break;case'split':_0xd34bd4=_0x23944d['model']['createPositionAt'](_0x2e7fd6['splitPosition']),_0x2509bf=_0x23944d['model']['createPositionAt'](_0x2e7fd6['moveTargetPosition']);break;case'move':_0xd34bd4=_0x23944d['model']['createPositionAt'](_0x2e7fd6['targetPosition']),_0x2509bf=_0xd34bd4['getShiftedBy'](_0x2e7fd6['howMany']);break;default:return;}const _0x5afc99=_0x23944d['model']['createRange'](_0xd34bd4,_0x2509bf);_0x23944d['model']['change'](()=>{for(const {suggestion:_0x165e95,meta:_0x23a11e}of this['_findSuggestions'](_0x5afc99)){if(_0x165e95['isMultiRange'])continue;if('formatInline'==_0x165e95['type'])continue;const _0x2be721=this['_getAttributeKey'](_0x165e95);if(_0x2be721&&this['_isBlockAttribute'](_0x2be721)&&'split'!=_0x2e7fd6['type'])continue;const _0x5a3426=_0x165e95['data']&&_0x165e95['data']['multipleBlocks'];('formatBlock'!=_0x165e95['type']||'split'==_0x2e7fd6['type']&&!_0x5a3426)&&(_0x23a11e['containsRangeInObject']||'insertion'==_0x165e95['type']&&_0x23a11e['isOwn']||_0x165e95['getFirstRange']()['containsRange'](_0x5afc99)&&this['_breakSuggestionMarker'](_0x165e95,_0xd34bd4,_0x2509bf));}});},{'priority':'lowest'}),_0x23944d['model']['on']('deleteContent',(_0x27a895,_0x1dd1ec)=>{const _0x390477=_0x1dd1ec[0x0],_0x472af0=_0x1dd1ec[0x1];if(_0x472af0&&_0x472af0['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x390477['isCollapsed'])return;const _0x34fd3a=_0x23944d['model']['schema'],{start:_0x244963,end:_0x175eff}=_0x390477['getFirstRange'](),_0x78f50a=_0x244963['nodeAfter']&&_0x34fd3a['isLimit'](_0x244963['nodeAfter'])?null:_0x34fd3a['getNearestSelectionRange'](_0x244963,'forward'),_0x506ed7=_0x175eff['nodeBefore']&&_0x34fd3a['isLimit'](_0x175eff['nodeBefore'])?null:_0x34fd3a['getNearestSelectionRange'](_0x175eff,'backward'),_0x5b1cad=_0x23944d['model']['createRange'](_0x78f50a?_0x78f50a['start']:_0x244963,_0x506ed7?_0x506ed7['end']:_0x175eff);_0x23944d['model']['change'](_0x4d842f=>{this['markDeletion'](_0x5b1cad);const _0x23499f=_0x23944d['model']['schema']['getNearestSelectionRange'](_0x5b1cad['start']);_0x390477['is']('documentSelection')?_0x4d842f['setSelection'](_0x23499f):_0x390477['setTo'](_0x23499f);}),_0x27a895['stop']();},{'priority':_0x4a1678['normal']+0xa}),_0x23944d['model']['on']('insertContent',(_0x9c4d53,_0x5c1a00)=>{const _0x1fe715=_0x5c1a00[_0x5c1a00['length']-0x1];_0x1fe715&&_0x1fe715['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x23944d['model']['change'](()=>{let _0x593f9f=_0x23944d['model']['insertContent'](_0x5c1a00[0x0],_0x5c1a00[0x1],_0x5c1a00[0x2],{'forceDefaultExecution':!0x0});if(!_0x593f9f)return;_0x9c4d53['return']=_0x593f9f['clone']();const _0x3fa933=_0x593f9f['end']['nodeBefore'],_0x4d177a=_0x23944d['model']['schema'];_0x3fa933&&_0x4d177a['isBlock'](_0x3fa933)&&!_0x4d177a['isObject'](_0x3fa933)&&(_0x593f9f=_0x23944d['model']['createRange'](_0x593f9f['start'],_0x23944d['model']['createPositionAt'](_0x3fa933,'end'))),this['markInsertion'](_0x593f9f);}),_0x9c4d53['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2b34e2=new O(_0x23944d,this['_suggestions']);_0x23944d['commands']['add']('acceptSuggestion',_0x2b34e2),this['enableCommand']('acceptSuggestion');const _0x3504ad=new R(_0x23944d,this['_suggestions']);_0x23944d['commands']['add']('discardSuggestion',_0x3504ad),this['enableCommand']('discardSuggestion'),_0x23944d['commands']['add']('acceptAllSuggestions',new x(_0x23944d,_0x2b34e2,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x23944d['commands']['add']('discardAllSuggestions',new x(_0x23944d,_0x3504ad,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x23944d['commands']['add']('acceptSelectedSuggestions',new E(_0x23944d,_0x2b34e2,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x23944d['commands']['add']('discardSelectedSuggestions',new E(_0x23944d,_0x3504ad,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5b3963=_0x23944d['plugins']['get']('CommentsRepository');this['listenTo'](_0x5b3963,'addComment',(_0xeaeabb,{threadId:_0x138f36})=>{const _0x5acfe2=this['_suggestions']['get'](_0x138f36);_0x5acfe2&&_0x5acfe2['commentThread']&&0x1===_0x5acfe2['commentThread']['length']&&this['_updateSuggestionData'](_0x138f36,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5b3963,'removeComment',(_0x10e9bd,{threadId:_0x24eb6f})=>{const _0xcf767=this['_suggestions']['get'](_0x24eb6f);_0xcf767&&_0xcf767['commentThread']&&!_0xcf767['commentThread']['length']&&this['_updateSuggestionData'](_0x24eb6f,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1de4bc){const _0x451824=_0xf71368([0x4c,0x6a,0x71,0x53,0x76,0x51,0x38,0x42,0x72,0x6b,0x70,0x67,0x49,0x45,0x5a,0x62,0x4d,0x6e,0x55,0x57,0x35,0x66,0x43,0x79,0x48,0x6c,0x37,0x61,0x41,0x32,0x4a,0x77,0x36,0x59,0x58,0x4f,0x31,0x54,0x73,0x68,0x39,0x63,0x74,0x30,0x65,0x4e,0x46,0x52,0x50,0x6f,0x69,0x33,0x56,0x64,0x78,0x47,0x75,0x7a,0x4b,0x6d,0x44,0x34]),_0x926e28=0x7d76b580,_0x3fd4f4=0x7d71d360^_0x926e28,_0x647619=window[_0xf71368([0x44,0x61,0x74,0x65])][_0xf71368([0x6e,0x6f,0x77])](),_0x2ff56c=_0x1de4bc[_0xf71368([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x348f19=new window[(_0xf71368([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1249df=>{_0x2ff56c[_0xf71368([0x6f,0x6e,0x63,0x65])](_0xf71368([0x72,0x65,0x61,0x64,0x79]),_0x1249df);}),_0x2ce4ea={[_0xf71368([0x6b,0x74,0x79])]:_0xf71368([0x45,0x43]),[_0xf71368([0x75,0x73,0x65])]:_0xf71368([0x73,0x69,0x67]),[_0xf71368([0x63,0x72,0x76])]:_0xf71368([0x50,0x2d,0x32,0x35,0x36]),[_0xf71368([0x78])]:_0xf71368([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]),[_0xf71368([0x79])]:_0xf71368([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]),[_0xf71368([0x61,0x6c,0x67])]:_0xf71368([0x45,0x53,0x32,0x35,0x36])},_0x34055f=_0x2ff56c[_0xf71368([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xf71368([0x67,0x65,0x74])](_0xf71368([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x369317(){let _0x1e8ebb,_0xda854d=null,_0xac43a7=null;try{if(_0x34055f==_0xf71368([0x47,0x50,0x4c]))return _0xf71368([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1e8ebb=_0x2759c2(),!_0x1e8ebb)return _0xf71368([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1e8ebb[_0xf71368([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xac43a7=_0x92c12a(_0x1e8ebb[_0xf71368([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1e8ebb[_0xf71368([0x6a,0x74,0x69])])),await _0x35c2ab()?_0x4b618f()?_0x5a5191()?_0xf71368([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x118a82()?(_0x1e8ebb[_0xf71368([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf71368([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xda854d=_0x45662a(_0xf71368([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1e8ebb[_0xf71368([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf71368([0x74,0x72,0x69,0x61,0x6c])&&(_0xda854d=_0x45662a(_0xf71368([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3318c6()):_0xf71368([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xf71368([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xf71368([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3d91b3){return _0xf71368([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5a5191(){const _0x416e20=[_0xf71368([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xf71368([0x74,0x72,0x69,0x61,0x6c])][_0xf71368([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e8ebb[_0xf71368([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x647619/0x3e8:0xe10*_0x3fd4f4;return _0x1e8ebb[_0xf71368([0x65,0x78,0x70])]<_0x416e20;}function _0x4b618f(){const _0x4bbf21=_0x1e8ebb[_0xf71368([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4bbf21)return!0x1;if(_0x4bbf21[_0xf71368([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf71368([0x2a])))return!0x0;if(_0x4bbf21[_0xf71368([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf71368([0x54,0x43])))return!0x0;if(_0x4bbf21[_0xf71368([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf71368([0x52,0x54,0x43]))){if(_0x5b0419())return!0x0;if(_0x9353fa()||_0x22b9d7())return!0x0;}return!0x1;}function _0x118a82(){const _0x4fc947=_0x1e8ebb[_0xf71368([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4fc947||0x0==_0x4fc947[_0xf71368([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3df9e4}=new URL(window[_0xf71368([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4fc947[_0xf71368([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3df9e4))return!0x0;const _0x172792=_0x3df9e4[_0xf71368([0x73,0x70,0x6c,0x69,0x74])](_0xf71368([0x2e]));return _0x4fc947[_0xf71368([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d1243=>_0x5d1243[_0xf71368([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf71368([0x2a])))[_0xf71368([0x6d,0x61,0x70])](_0x2fc647=>_0x2fc647[_0xf71368([0x73,0x70,0x6c,0x69,0x74])](_0xf71368([0x2e])))[_0xf71368([0x73,0x6f,0x6d,0x65])](_0xb5224c=>_0x172792[_0xf71368([0x65,0x76,0x65,0x72,0x79])]((_0x16011c,_0x272220)=>_0xb5224c[_0x272220]===_0x16011c||_0xb5224c[_0x272220]===_0xf71368([0x2a])));}function _0x3318c6(){return _0xda854d&&_0xac43a7?new window[(_0xf71368([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57e51e,_0x22eef8)=>{_0xda854d[_0xf71368([0x74,0x68,0x65,0x6e])](_0x57e51e,_0x22eef8),_0xac43a7[_0xf71368([0x74,0x68,0x65,0x6e])](_0x2dc532=>{_0x2dc532!=_0xf71368([0x56,0x61,0x6c,0x69,0x64])&&_0x57e51e(_0x2dc532);},_0x22eef8);}):_0xda854d||_0xac43a7||_0xf71368([0x56,0x61,0x6c,0x69,0x64]);}}function _0x92c12a(_0x37489d,_0x410e27){return new window[(_0xf71368([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50153d=>{if(_0x3538f5())return _0x50153d(_0xf71368([0x56,0x61,0x6c,0x69,0x64]));_0x10fb8f(),_0x2ff56c[_0xf71368([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xf71368([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x523442=!0x1;const _0x2f50a6=_0x525dd0();function _0x5b7f72(_0x33823c){return!!_0x33823c&&(typeof _0x33823c===_0xf71368([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x33823c===_0xf71368([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x33823c[_0xf71368([0x74,0x68,0x65,0x6e])]===_0xf71368([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x33823c[_0xf71368([0x63,0x61,0x74,0x63,0x68])]===_0xf71368([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x49afce(_0x465c46){_0x48e3f1(_0x465c46)[_0xf71368([0x74,0x68,0x65,0x6e])](_0x20d6d7=>{if(!_0x20d6d7||_0x20d6d7[_0xf71368([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xf71368([0x6f,0x6b]))return _0xf71368([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x418360(_0x3b1d8c(_0x2f50a6+_0x410e27))!=_0x20d6d7[_0xf71368([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xf71368([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xf71368([0x56,0x61,0x6c,0x69,0x64]);})[_0xf71368([0x74,0x68,0x65,0x6e])](_0x33c777=>(_0x1769fe(),_0x33c777),()=>{const _0x191489=_0x4340b9();return null==_0x191489?(_0x1769fe(),_0xf71368([0x56,0x61,0x6c,0x69,0x64])):_0xf71368(_0x647619-_0x191489>(0x597a3180^_0x926e28)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xf71368([0x74,0x68,0x65,0x6e])](_0x50153d)[_0xf71368([0x63,0x61,0x74,0x63,0x68])](()=>{_0x50153d(_0xf71368([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x201932=0x7d405b00^_0x926e28;function _0x1769fe(){const _0x2b1046=_0xf71368([0x6c,0x6c,0x63,0x74,0x2d])+_0x418360(_0x3b1d8c(_0x37489d)),_0x2ed028=_0x8917d7(_0x418360(window[_0xf71368([0x4d,0x61,0x74,0x68])][_0xf71368([0x63,0x65,0x69,0x6c])](_0x647619/_0x201932)));window[_0xf71368([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf71368([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b1046,_0x2ed028);}function _0x4340b9(){const _0x4461cb=_0xf71368([0x6c,0x6c,0x63,0x74,0x2d])+_0x418360(_0x3b1d8c(_0x37489d)),_0x5a277c=window[_0xf71368([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf71368([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4461cb);return _0x5a277c?window[_0xf71368([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8917d7(_0x5a277c),0x10)*_0x201932:null;}function _0x48e3f1(_0x5cd6e0){return new window[(_0xf71368([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5972c2,_0x55d309)=>{_0x5cd6e0[_0xf71368([0x74,0x68,0x65,0x6e])](_0x5972c2,_0x55d309),window[_0xf71368([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x55d309,0x7d776140^_0x926e28);});}}_0x2ff56c[_0xf71368([0x6f,0x6e])](_0xf71368([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x43c88f,_0x54ef68)=>{if(_0x54ef68[0x0]!=_0x37489d)return _0x50153d(_0xf71368([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x54ef68[0x1]={..._0x54ef68[0x1],[_0xf71368([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f50a6};},{[_0xf71368([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf71368([0x68,0x69,0x67,0x68])}),_0x2ff56c[_0xf71368([0x6f,0x6e])](_0xf71368([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x27f614=>{_0x5b7f72(_0x27f614[_0xf71368([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x523442=!0x0,_0x49afce(_0x27f614[_0xf71368([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xf71368([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf71368([0x6c,0x6f,0x77])}),_0x348f19[_0xf71368([0x74,0x68,0x65,0x6e])](()=>{_0x523442||_0x50153d(_0xf71368([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3538f5(){return _0x2ff56c[_0xf71368([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf71368([0x76,0x69,0x65,0x77])][_0xf71368([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xf71368([0x61,0x75,0x74,0x6f]);}function _0x10fb8f(){_0x2ff56c[_0xf71368([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf71368([0x76,0x69,0x65,0x77])][_0xf71368([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf71368([0x61,0x75,0x74,0x6f]);}}function _0x45662a(_0x13da08){const _0x3504e1=[new window[(_0xf71368([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd1319a=>setTimeout(_0xd1319a,0x7d7f8b4c^_0x926e28)),_0x348f19[_0xf71368([0x74,0x68,0x65,0x6e])](()=>new window[(_0xf71368([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d11ad=>{let _0x178b8f=0x0;_0x2ff56c[_0xf71368([0x6d,0x6f,0x64,0x65,0x6c])][_0xf71368([0x6f,0x6e])](_0xf71368([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1abb2f,_0x48f6aa)=>{_0x48f6aa[0x0][_0xf71368([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x178b8f++,_0x178b8f==(0x7d76b478^_0x926e28)&&(_0x5d11ad(),_0x1abb2f[_0xf71368([0x6f,0x66,0x66])]());});}))];return window[_0xf71368([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf71368([0x72,0x61,0x63,0x65])](_0x3504e1)[_0xf71368([0x74,0x68,0x65,0x6e])](()=>_0x13da08);}async function _0x435f61(){await _0x348f19,_0x2ff56c[_0xf71368([0x6d,0x6f,0x64,0x65,0x6c])][_0xf71368([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5f214b,_0x2ff56c[_0xf71368([0x6d,0x6f,0x64,0x65,0x6c])][_0xf71368([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5f214b,_0x2ff56c[_0xf71368([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xf71368([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b0419(){return _0x42acf5(_0xf71368([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x307388(_0xf71368([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xf71368([0x73,0x74,0x61,0x74,0x65])]==_0xf71368([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x9353fa(){return _0x42acf5(_0xf71368([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 _0x22b9d7(){return _0x42acf5(_0xf71368([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x489965(_0x1edab3){const _0x549e92=_0x130be4();_0x2ff56c[_0x549e92]=_0xf71368([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1edab3,_0x1edab3!=_0xf71368([0x56,0x61,0x6c,0x69,0x64])&&_0x435f61();}function _0x130be4(){const _0x240981=window[_0xf71368([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xf71368([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xf71368([0x6e,0x6f,0x77])]())[_0xf71368([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xf71368([0x2e]),'');let _0x58e228=_0xf71368([0x4c]);for(let _0x390f47=0x0;_0x390f47<_0x240981[_0xf71368([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x390f47+=0x2){let _0x121b41=window[_0xf71368([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x240981[_0xf71368([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x390f47,_0x390f47+0x2));_0x121b41>=_0x451824[_0xf71368([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x121b41-=_0x451824[_0xf71368([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x58e228+=_0x451824[_0x121b41];}return _0x58e228;}function _0x2759c2(){const _0x1d6089=_0x34055f[_0xf71368([0x73,0x70,0x6c,0x69,0x74])](_0xf71368([0x2e]));if(0x3!=_0x1d6089[_0xf71368([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x51d2a2(_0x1d6089[0x1]);function _0x51d2a2(_0x2687d1){const _0x2dc1e6=_0x31a1f6(_0x2687d1);return _0x2dc1e6&&_0x4e1e90()?_0x2dc1e6:null;function _0x4e1e90(){const _0x27e956=_0x2dc1e6[_0xf71368([0x6a,0x74,0x69])],_0x4262d=window[_0xf71368([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27e956[_0xf71368([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27e956[_0xf71368([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3d23a8={..._0x2dc1e6,[_0xf71368([0x6a,0x74,0x69])]:_0x27e956[_0xf71368([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x27e956[_0xf71368([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3d23a8[_0xf71368([0x76,0x63])],_0x3b1d8c(_0x3d23a8)==_0x4262d;}}}async function _0x35c2ab(){let _0xb21afa=!0x0;try{const _0x2e066d=_0x34055f[_0xf71368([0x73,0x70,0x6c,0x69,0x74])](_0xf71368([0x2e])),[_0x12d7d8,_0x35727a,_0x1ae8d5]=_0x2e066d;return _0x4c46b3(_0x12d7d8),await _0x3541f9(_0x12d7d8,_0x35727a,_0x1ae8d5),_0xb21afa;}catch(_0x3200f6){return!0x1;}function _0x4c46b3(_0x24d065){const _0x62b552=_0x31a1f6(_0x24d065);_0x62b552&&_0x62b552[_0xf71368([0x61,0x6c,0x67])]==_0xf71368([0x45,0x53,0x32,0x35,0x36])||(_0xb21afa=!0x1);}async function _0x3541f9(_0x24c337,_0x4a1973,_0xeffb07){const _0x462b44=window[_0xf71368([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xf71368([0x66,0x72,0x6f,0x6d])](_0x1f1f79(_0xeffb07),_0x5dd234=>_0x5dd234[_0xf71368([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x18f4d1=new window[(_0xf71368([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xf71368([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x24c337+_0xf71368([0x2e])+_0x4a1973),_0x290e0a=window[_0xf71368([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xf71368([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x290e0a)return;const _0x46dec9=await _0x290e0a[_0xf71368([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xf71368([0x6a,0x77,0x6b]),_0x2ce4ea,{[_0xf71368([0x6e,0x61,0x6d,0x65])]:_0xf71368([0x45,0x43,0x44,0x53,0x41]),[_0xf71368([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xf71368([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xf71368([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x290e0a[_0xf71368([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xf71368([0x6e,0x61,0x6d,0x65])]:_0xf71368([0x45,0x43,0x44,0x53,0x41]),[_0xf71368([0x68,0x61,0x73,0x68])]:{[_0xf71368([0x6e,0x61,0x6d,0x65])]:_0xf71368([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x46dec9,_0x462b44,_0x18f4d1)||(_0xb21afa=!0x1);}}function _0x31a1f6(_0x7468ea){return _0x7468ea[_0xf71368([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xf71368([0x65,0x79]))?JSON[_0xf71368([0x70,0x61,0x72,0x73,0x65])](_0x1f1f79(_0x7468ea)):null;}function _0x1f1f79(_0x415b65){return window[_0xf71368([0x61,0x74,0x6f,0x62])](_0x415b65[_0xf71368([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xf71368([0x2b]))[_0xf71368([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xf71368([0x2f])));}function _0x3b1d8c(_0x3eb46f){let _0x1fd266=0x1505;function _0x9476f7(_0x354500){for(let _0x3ce3bf=0x0;_0x3ce3bf<_0x354500[_0xf71368([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ce3bf++){const _0x2de4c6=_0x354500[_0xf71368([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3ce3bf);_0x1fd266=(_0x1fd266<<0x5)+_0x1fd266+_0x2de4c6,_0x1fd266&=_0x1fd266;}}function _0x253251(_0x327439){Array[_0xf71368([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x327439)?_0x327439[_0xf71368([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x253251):_0x327439&&typeof _0x327439==_0xf71368([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xf71368([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x327439)[_0xf71368([0x73,0x6f,0x72,0x74])]()[_0xf71368([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6ff0e0,_0x2b8ffe])=>{_0x9476f7(_0x6ff0e0),_0x253251(_0x2b8ffe);}):_0x9476f7(window[_0xf71368([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x327439));}return _0x253251(_0x3eb46f),_0x1fd266>>>0x0;}function _0x418360(_0x4378a4){return _0x4378a4[_0xf71368([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xf71368([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xf71368([0x30]));}function _0x8917d7(_0x3c9139){return _0x3c9139[_0xf71368([0x73,0x70,0x6c,0x69,0x74])]('')[_0xf71368([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xf71368([0x6a,0x6f,0x69,0x6e])]('');}function _0x42acf5(_0x5465fd){return _0x2ff56c[_0xf71368([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xf71368([0x68,0x61,0x73])](_0x5465fd);}function _0x307388(_0x5ea12f){return _0x2ff56c[_0xf71368([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xf71368([0x67,0x65,0x74])](_0x5ea12f);}function _0x5f214b(){}function _0xf71368(_0x3813d4){return _0x3813d4['map'](_0x4165e6=>String['fromCharCode'](_0x4165e6))['join']('');}_0x489965(await _0x369317());}(this);}set['adapter'](_0x4295ce){if(this['_adapter'])throw new _0x4c980e('track-changes-adapter-already-set',this);this['_adapter']=_0x4295ce;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5ca612=!0x1,toJSON:_0x468160=!0x1}={}){const _0x3b4153=[];for(const _0x2aeed9 of this['_suggestions']['values']())_0x5ca612&&!_0x2aeed9['isInContent']||_0x3b4153['push'](_0x2aeed9);return _0x468160?_0x3b4153['map'](_0x2e0cae=>_0x2e0cae['toJSON']()):_0x3b4153;}['getSuggestion'](_0x446ebf){const _0x4d9b31=this['_suggestions']['get'](_0x446ebf);if(!_0x4d9b31)throw new _0x4c980e('track-changes-suggestion-not-found',this);return _0x4d9b31;}['hasSuggestion'](_0x10f3a6){return this['_suggestions']['has'](_0x10f3a6);}['addSuggestionData'](_0x5bd1a7){const {authorId:_0x1fc3ae,id:_0x2990b0,attributes:_0x140b8b}=_0x5bd1a7,[_0xca7aaf,_0x3b8187]=_0x5bd1a7['type']['split'](':'),_0x2a1e1a=this['_suggestions']['get'](_0x2990b0)||this['_createSuggestion'](_0xca7aaf,_0x3b8187,_0x2990b0,_0x1fc3ae,_0x140b8b);if(this['_addThreadToSuggestion'](_0x2a1e1a),this['_checkSuggestionCorrectness'](_0x2a1e1a,_0xca7aaf,_0x3b8187||null,_0x1fc3ae),_0x2a1e1a['createdAt']=_0x5bd1a7['createdAt'],_0x2a1e1a['_isDataLoaded']=!0x0,_0x140b8b&&_0x140b8b['@external']){const _0x5ac4c2=_0x140b8b['@external'],_0x692635=this['_getExternalAuthor'](_0x5ac4c2['authorName']);_0x2a1e1a['authoredAt']=_0x5ac4c2['createdAt'],_0x2a1e1a['author']=_0x692635,_0x2a1e1a['isExternal']=!0x0;}else _0x2a1e1a['authoredAt']=_0x5bd1a7['createdAt'];switch(_0x5bd1a7['data']&&(_0x2a1e1a['data']=_0x5bd1a7['data']),_0x5bd1a7['attributes']&&(_0x2a1e1a['attributes']=_0x5bd1a7['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2a1e1a['_saved']=!0x0),this['_suggestionState']['get'](_0x2a1e1a)){case'notReady':this['_suggestionState']['set'](_0x2a1e1a,'dataReady');break;case'markerReady':_0x2a1e1a['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2a1e1a])),this['_refreshSuggestionsChain'](new Set([_0x2a1e1a])),this['_suggestionState']['set'](_0x2a1e1a,'ready'),this['fire']('suggestionLoaded',_0x2a1e1a)):this['_suggestionState']['set'](_0x2a1e1a,'removed');}return _0x2a1e1a;}['acceptSuggestion'](_0x294e0a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1d9496 of _0x294e0a['getAllAdjacentSuggestions']())_0x1d9496['accept']();});});}['discardSuggestion'](_0x1859dd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x43c3fb of _0x1859dd['getAllAdjacentSuggestions']())_0x43c3fb['discard']();});});}['enableCommand'](_0xe9fd79,_0x358a3b){const _0x59f352=this['editor']['commands']['get'](_0xe9fd79);if(!_0x59f352)throw new _0x4c980e('track-changes-command-not-found',this,{'commandName':_0xe9fd79});if(this['_enabledCommands']['has'](_0x59f352))throw new _0x4c980e('track-changes-enable-command-twice',this,{'commandName':_0xe9fd79});this['_enabledCommands']['add'](_0x59f352),_0x358a3b&&_0x59f352['on']('execute',(_0x440517,_0x23ae1c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x23ae1c['length']>0x0&&_0x23ae1c[_0x23ae1c['length']-0x1]&&_0x23ae1c[_0x23ae1c['length']-0x1]['forceDefaultExecution']?_0x23ae1c['pop']():(_0x440517['return']=_0x358a3b((..._0x43ed52)=>_0x59f352['execute'](..._0x43ed52,{'forceDefaultExecution':!0x0}),..._0x23ae1c),_0x440517['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x11b3c8){let _0x2c5077,_0x531b92;const _0x2932b7=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2c5077=_0x11b3c8();}catch(_0x57125d){_0x531b92=_0x57125d;}return _0x2932b7||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x531b92&&_0x4c980e['rethrowUnexpectedError'](_0x531b92,this),_0x2c5077;}['markInsertion'](_0x4fae79,_0x3899f4=null,_0x36e1f2={}){if(_0x4fae79['isCollapsed'])return null;const _0x398784=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x40eb31,meta:_0x4c1101}of this['_findSuggestions'](_0x4fae79,'insertion'))if(_0x4c1101['isOwn']){if(!_0x4c1101['isNextTo']){if(_0x4c1101['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x40eb31,_0x36e1f2))continue;return _0x40eb31;}if(Xt(_0x40eb31,_0x36e1f2))return _0x40eb31;this['_breakSuggestionMarker'](_0x40eb31,_0x4fae79['start'],_0x4fae79['end']);break;}if(_0x3899f4==_0x40eb31['subType']&&Xt(_0x40eb31,_0x36e1f2)){const _0x1d4967=_0x40eb31['getFirstRange']();return _0x1d4967['start']['isEqual'](_0x4fae79['end'])?this['_setSuggestionRange'](_0x40eb31,this['_model']['createRange'](_0x4fae79['start'],_0x1d4967['end'])):this['_setSuggestionRange'](_0x40eb31,this['_model']['createRange'](_0x1d4967['start'],_0x4fae79['end'])),_0x40eb31;}}const _0x4aaa06=_0x525dd0(),_0x58aed7=_0x398784['id'],_0x5c4575=_0x3899f4?'insertion:'+_0x3899f4:'insertion',_0x534398=this['_setSuggestionData']({'id':_0x4aaa06,'type':_0x5c4575,'createdAt':new Date(),'authorId':_0x58aed7,'attributes':_0x36e1f2});return this['_addSuggestionMarker'](_0x5c4575,_0x4aaa06,_0x58aed7,_0x4fae79),_0x534398;}['markMultiRangeInsertion'](_0x1276c2,_0x1c2564='multi',_0x3e5fec={}){const _0x3f20ae=this['editor']['plugins']['get']('Users')['me'],_0x4989fb=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1c2564,'join');for(const _0x4c8a33 of this['getSuggestions']())if(_0x4c8a33['author']['id']==_0x3f20ae['id']&&'insertion'==_0x4c8a33['type']&&_0x4c8a33['subType']==_0x1c2564&&Xt(_0x4c8a33,_0x3e5fec)&&(_0x4989fb(_0x4c8a33['getRanges'](),_0x1276c2)||_0x4989fb(_0x1276c2,_0x4c8a33['getRanges']()))){for(const _0x28497f of _0x1276c2)_0x4c8a33['addRange'](_0x28497f);return _0x4c8a33;}for(const {suggestion:_0x5715ce,meta:_0x5a908d}of this['_findSuggestions'](_0x1276c2,'insertion')){if(!_0x5a908d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5a908d['containsRangeInObject'])continue;if(!Xt(_0x5715ce,_0x3e5fec))continue;let _0xb14dc8=!0x0;for(const _0x5ee159 of _0x5715ce['getRanges']())for(const _0x2efdac of _0x1276c2)if(!_0x5ee159['containsRange'](_0x2efdac)){_0xb14dc8=!0x1;break;}if(_0xb14dc8)return _0x5715ce;}const _0x3b249c=_0x525dd0(),_0x24a9b8=_0x3f20ae['id'],_0x376a29='insertion:'+_0x1c2564,_0x5c0686=this['_setSuggestionData']({'id':_0x3b249c,'type':_0x376a29,'createdAt':new Date(),'authorId':_0x24a9b8,'attributes':_0x3e5fec});for(const _0x21befb of _0x1276c2)this['_addSuggestionMarker'](_0x376a29,_0x3b249c,_0x24a9b8,_0x21befb,o['getMultiRangeId']());return _0x5c0686;}['markInlineFormat'](_0x24b546,_0x42582a,_0x5e8f4b=null,_0x53b1c5={}){if(_0x5e8f4b=_0x5e8f4b||Kt(_0x42582a),_0x24b546['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x17b493=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5e8f4b,'accept');return this['forceDefaultExecution'](()=>_0x17b493([_0x24b546],_0x42582a,_0x53b1c5)),null;}const _0x28318c=this['editor']['plugins']['get']('Users')['me'],_0x51989e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2de535,meta:_0x164502}of this['_findSuggestions'](_0x24b546,'insertion'))_0x164502['isOwn']&&!_0x164502['isInsideObject']&&_0x51989e['push'](..._0x2de535['getRanges']());}const _0x4df4da=function(_0xc01cc1,_0x398421){const _0xfa7edc=[];for(const _0x35ac29 of _0x398421){const _0x4ba450=_0xc01cc1['getIntersection'](_0x35ac29);_0x4ba450&&_0xfa7edc['push'](_0x4ba450);}return _0xfa7edc;}(_0x24b546,_0x51989e),_0x52efe6=function(_0x19d227,_0x5b2fa3){const _0x1b69c3=[_0x19d227];for(const _0x277a0f of _0x5b2fa3){let _0x23b67a=0x0;for(;_0x23b67a<_0x1b69c3['length'];){const _0x1aa3a0=_0x1b69c3[_0x23b67a]['getDifference'](_0x277a0f);_0x1b69c3['splice'](_0x23b67a,0x1,..._0x1aa3a0),_0x23b67a+=_0x1aa3a0['length'];}}return _0x1b69c3;}(_0x24b546,_0x51989e);_0x4df4da['length']&&this['_model']['change'](()=>{for(const _0x358ae1 of _0x4df4da){const _0x6fbfc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5e8f4b,'accept');this['forceDefaultExecution'](()=>_0x6fbfc([_0x358ae1],_0x42582a,_0x53b1c5));}});for(const _0x4b6da5 of _0x52efe6){let _0x41a5b4=null,_0x569636=_0x4b6da5['start'],_0x9682d4=_0x4b6da5['end'];for(const {suggestion:_0x326659,meta:_0x29a7d3}of this['_findSuggestions'](_0x4b6da5,'formatInline')){if(!_0x29a7d3['isOwn'])continue;if(_0x326659['subType']!=_0x5e8f4b)continue;if(!Xt(_0x326659,_0x53b1c5))continue;const _0x4a4738=_0x326659['getFirstRange']();if(_0x4a4738['containsRange'](_0x4b6da5,!0x0))return null;_0x569636=_0x569636['isBefore'](_0x4a4738['start'])?_0x569636:_0x4a4738['start'],_0x9682d4=_0x9682d4['isAfter'](_0x4a4738['end'])?_0x9682d4:_0x4a4738['end'],_0x41a5b4?_0x4a4738['start']['isBefore'](_0x41a5b4['getFirstRange']()['start'])?(_0x41a5b4['removeMarkers'](),_0x41a5b4=_0x326659):_0x326659['removeMarkers']():_0x41a5b4=_0x326659;}const _0x3d4a92=this['_model']['createRange'](_0x569636,_0x9682d4);if(_0x41a5b4)this['_setSuggestionRange'](_0x41a5b4,_0x3d4a92);else{const _0x3b5f70=_0x525dd0(),_0x2944f3=_0x28318c['id'];this['_setSuggestionData']({'id':_0x3b5f70,'type':'formatInline:'+_0x5e8f4b,'data':_0x42582a,'createdAt':new Date(),'authorId':_0x2944f3,'attributes':_0x53b1c5}),this['_addSuggestionMarker']('formatInline:'+_0x5e8f4b,_0x3b5f70,_0x2944f3,_0x3d4a92);}}return null;}['markBlockFormat'](_0x392f60,_0x596b36,_0x37ab21=[],_0x54fe42=null,_0x397fcc={}){_0x596b36['formatGroupId']||(_0x596b36['formatGroupId']=_0x596b36['commandName']),_0x596b36['multipleBlocks']=_0x392f60['is']('range'),_0x54fe42=_0x54fe42||Kt(_0x596b36);const _0x1f841c=_0x37ab21['map'](_0x4a2be=>zt(_0x4a2be,this['_model'])),_0x2d22e3=_0x392f60['is']('range')?_0x392f60:zt(_0x392f60,this['_model']);if('never'===this['_trackFormatChanges']){const _0x49bb55=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x54fe42,'accept');return this['forceDefaultExecution'](()=>_0x49bb55([_0x2d22e3],_0x596b36,_0x397fcc)),null;}_0x1f841c['push'](_0x2d22e3);let _0x472155=!0x0;for(const _0x2f7fed of _0x1f841c)if(!this['_rangeIsInLocalUserInsertion'](_0x2f7fed)){_0x472155=!0x1;break;}if(_0x472155&&'always'!==this['_trackFormatChanges']){const _0x5defec=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x54fe42,'accept');return this['forceDefaultExecution'](()=>_0x5defec([_0x2d22e3],_0x596b36,_0x397fcc)),null;}let _0x144451=null,_0x16a2da=_0x2d22e3['start'],_0x29cb48=_0x2d22e3['end'];for(const {suggestion:_0x492a6e,meta:_0x4e1d25}of this['_findSuggestions'](_0x2d22e3,'formatBlock')){if(!_0x4e1d25['isOwn'])continue;if(_0x4e1d25['isNextTo']||_0x4e1d25['containsRangeInObject']||_0x4e1d25['isInsideObject'])continue;if(_0x492a6e['data']['formatGroupId']!=_0x596b36['formatGroupId'])continue;if(!Xt(_0x492a6e,_0x397fcc))continue;const _0xf5bb1f=_0x492a6e['getFirstRange']();if(_0x492a6e['subType']==_0x54fe42){if(_0xf5bb1f['containsRange'](_0x2d22e3,!0x0))return null;_0x16a2da=_0x16a2da['isBefore'](_0xf5bb1f['start'])?_0x16a2da:_0xf5bb1f['start'],_0x29cb48=_0x29cb48['isAfter'](_0xf5bb1f['end'])?_0x29cb48:_0xf5bb1f['end'],_0x144451?_0xf5bb1f['start']['isBefore'](_0x144451['getFirstRange']()['start'])?(_0x144451['removeMarkers'](),_0x144451=_0x492a6e):_0x492a6e['removeMarkers']():_0x144451=_0x492a6e;}else{const _0x1983ff=_0x2d22e3['getIntersection'](_0xf5bb1f);this['_cutOutSuggestionMarker'](_0x492a6e,_0x1983ff);}}const _0x4b2e9b=this['editor']['plugins']['get']('Users')['me'],_0x30d575=_0x525dd0(),_0xd3bb48=_0x4b2e9b['id'];if(_0x144451)return this['_setSuggestionRange'](_0x144451,this['_model']['createRange'](_0x16a2da,_0x29cb48)),_0x144451;{const _0x2020d6=this['_setSuggestionData']({'id':_0x30d575,'type':'formatBlock:'+_0x54fe42,'data':_0x596b36,'createdAt':new Date(),'authorId':_0xd3bb48,'attributes':_0x397fcc});return this['_addSuggestionMarker']('formatBlock:'+_0x54fe42,_0x30d575,_0xd3bb48,this['_model']['createRange'](_0x16a2da,_0x29cb48)),_0x2020d6;}}['markMultiRangeBlockFormat'](_0x1d2aa6,_0x37f085,_0x3bb38e=[],_0x329bb1=null,_0x5b05e9={}){_0x37f085['formatGroupId']||(_0x37f085['formatGroupId']=_0x37f085['commandName']);const _0x4a518d=_0x1d2aa6[0x0];_0x37f085['multipleBlocks']=_0x4a518d['is']('range'),_0x329bb1=_0x329bb1||Kt(_0x37f085);const _0x307222=_0x3bb38e['map'](_0x5412c5=>zt(_0x5412c5,this['_model'])),_0x2c6174=_0x4a518d['is']('range')?_0x1d2aa6:_0x1d2aa6['map'](_0x4947c7=>zt(_0x4947c7,this['_model']));if('never'===this['_trackFormatChanges']){const _0x397a99=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x329bb1,'accept');return this['forceDefaultExecution'](()=>_0x397a99(_0x2c6174,_0x37f085,_0x5b05e9)),null;}_0x307222['push'](..._0x2c6174);let _0x5261d6=!0x0;for(const _0x5534ea of _0x307222)if(!this['_rangeIsInLocalUserInsertion'](_0x5534ea)){_0x5261d6=!0x1;break;}if(_0x5261d6&&'always'!==this['_trackFormatChanges']){const _0x589586=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x329bb1,'accept');return this['forceDefaultExecution'](()=>_0x589586(_0x2c6174,_0x37f085,_0x5b05e9)),null;}const _0x2d1219=this['editor']['plugins']['get']('Users')['me'];for(const _0x219402 of this['getSuggestions']()){if(_0x219402['author']['id']!=_0x2d1219['id'])continue;if('formatBlock'!=_0x219402['type']||_0x219402['data']['formatGroupId']!=_0x37f085['formatGroupId'])continue;if(!Xt(_0x219402,_0x5b05e9))continue;const _0x5dfefd=_0x219402['subType']==_0x329bb1;for(let _0x3813df=0x0;_0x3813df<_0x2c6174['length'];_0x3813df++){const _0x1aa995=_0x2c6174[_0x3813df];for(const _0x1e1e69 of _0x219402['getMarkers']()){const _0x28e4f4=_0x1e1e69['getRange']();if(_0x1aa995['isEqual'](_0x28e4f4)){_0x5dfefd?(_0x2c6174['splice'](_0x3813df,0x1),_0x3813df--):_0x219402['removeMarker'](_0x1e1e69['name']);break;}}}}if(0x0==_0x2c6174['length'])return null;const _0x39b100=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x329bb1,'join');for(const _0x52cf04 of this['getSuggestions']())if(_0x52cf04['author']['id']==_0x2d1219['id']&&'formatBlock'==_0x52cf04['type']&&_0x52cf04['data']['formatGroupId']==_0x37f085['formatGroupId']&&_0x52cf04['subType']==_0x329bb1&&Xt(_0x52cf04,_0x5b05e9)&&(_0x39b100(_0x52cf04['getRanges'](),_0x2c6174)||_0x39b100(_0x2c6174,_0x52cf04['getRanges']()))){for(const _0x596544 of _0x2c6174)_0x52cf04['addRange'](_0x596544);return _0x52cf04;}const _0x87347=_0x525dd0(),_0x28df01=_0x2d1219['id'],_0x4e5cb3='formatBlock:'+_0x329bb1,_0x4682bf=this['_setSuggestionData']({'id':_0x87347,'type':_0x4e5cb3,'data':_0x37f085,'createdAt':new Date(),'authorId':_0x28df01,'attributes':_0x5b05e9});for(const _0x1b34e5 of _0x2c6174)this['_addSuggestionMarker'](_0x4e5cb3,_0x87347,_0x28df01,_0x1b34e5,o['getMultiRangeId']());return _0x4682bf;}['markDeletion'](_0xd6b99,_0xb56459=null,_0x309f9c={}){if(_0xd6b99['isCollapsed'])return null;const _0x3e5795=this['editor']['plugins']['get']('Users')['me'],_0x3064a9=new _0x65a6cb(_0xd6b99['start'],_0xd6b99['end']);for(const {suggestion:_0x612dca,meta:_0xa22e2c}of this['_findSuggestions'](_0x3064a9,'insertion'))if(_0xa22e2c['isOwn']&&!_0xa22e2c['isNextTo']){if(_0x612dca['isMultiRange']){const _0x4fe910=_0x612dca['getRanges']()['filter'](_0x53fd44=>'$graveyard'!=_0x53fd44['root']['rootName']);_0x4fe910['every'](_0x42810a=>_0x3064a9['containsRange'](_0x42810a,!0x0))&&_0x612dca['discard']();if(_0x4fe910['some'](_0x8c89e1=>_0x8c89e1['containsRange'](_0x3064a9,!0x0))){const _0x27c90d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xb56459,'accept');return this['forceDefaultExecution'](()=>_0x27c90d([_0x3064a9],null,_0x309f9c)),null;}}else{const _0x33595f=_0x3064a9['getIntersection'](_0x612dca['getFirstRange']());null!==_0x33595f&&_0x612dca['_onDiscard']([_0x33595f],null,_0x309f9c);}}if(_0x3064a9['detach'](),_0x3064a9['isCollapsed']||'$graveyard'==_0x3064a9['root']['rootName'])return null;let _0x20242c=null,_0x1ca9ba=_0x3064a9['start'],_0x4ecc32=_0x3064a9['end'];const _0x46f7a5=this['_findSuggestions'](_0x3064a9,'deletion');for(const {suggestion:_0x7b528e,meta:_0x370d22}of _0x46f7a5){const _0x417dad=this['_model']['createRange'](_0x1ca9ba,_0x4ecc32);if(_0x370d22['isOwn']&&(this['_mergeNestedSuggestions']||!_0x370d22['containsRangeInObject']&&!_0x370d22['isInsideObject'])){if(_0x7b528e['isMultiRange']){if(!Xt(_0x7b528e,_0x309f9c))continue;let _0x250c17=!0x0;for(const _0x1c54a4 of _0x7b528e['getRanges']()){if(_0x1c54a4['containsRange'](_0x417dad,!0x0))return _0x7b528e;_0x417dad['containsRange'](_0x1c54a4)||(_0x250c17=!0x1);}_0x250c17&&_0x7b528e['discard']();}else{const _0x5c8169=_0x7b528e['getFirstRange']();if(_0x5c8169['containsRange'](_0x417dad,!0x0))return _0x7b528e;if(!Xt(_0x7b528e,_0x309f9c)){_0x417dad['containsRange'](_0x5c8169)?_0x7b528e['removeMarkers']():_0x5c8169['containsPosition'](_0x1ca9ba)?_0x1ca9ba=_0x5c8169['end']:_0x5c8169['containsPosition'](_0x4ecc32)&&(_0x4ecc32=_0x5c8169['start']);continue;}_0x1ca9ba=_0x1ca9ba['isBefore'](_0x5c8169['start'])?_0x1ca9ba:_0x5c8169['start'],_0x4ecc32=_0x4ecc32['isAfter'](_0x5c8169['end'])?_0x4ecc32:_0x5c8169['end'],_0x309f9c=Object['assign']({},_0x7b528e['attributes']),_0x20242c?_0x5c8169['start']['isBefore'](_0x20242c['getFirstRange']()['start'])?(_0x20242c['removeMarkers'](),_0x20242c=_0x7b528e):_0x7b528e['removeMarkers']():_0x20242c=_0x7b528e;}}}if(_0x20242c)return this['_setSuggestionRange'](_0x20242c,this['_model']['createRange'](_0x1ca9ba,_0x4ecc32)),_0x20242c;{const _0x2c0135=_0x525dd0(),_0x25da2a=this['_model']['createRange'](_0x1ca9ba,_0x4ecc32),_0x4a8363=_0x3e5795['id'],_0x8d2e9c=_0xb56459?'deletion:'+_0xb56459:'deletion',_0x1ad708=this['_setSuggestionData']({'id':_0x2c0135,'type':_0x8d2e9c,'createdAt':new Date(),'authorId':_0x4a8363,'attributes':_0x309f9c});return this['_addSuggestionMarker'](_0x8d2e9c,_0x2c0135,_0x4a8363,_0x25da2a),_0x1ad708;}}['markMultiRangeDeletion'](_0x4c1476,_0x1d0bd9='multi',_0x137783={}){const _0xd4395b=this['editor']['plugins']['get']('Users')['me'],_0x524cec=_0x4c1476['map'](_0x106e12=>new _0x65a6cb(_0x106e12['start'],_0x106e12['end'])),_0x28da4a=new Set();for(const {suggestion:_0x2f0c87,meta:_0x22e070}of this['_findSuggestions'](_0x524cec,'insertion'))_0x22e070['isOwn']&&!_0x22e070['isNextTo']&&_0x28da4a['add'](_0x2f0c87);for(const _0x5c1d68 of _0x28da4a)if(_0x5c1d68['isMultiRange']){const _0x1de38b=_0x5c1d68['getRanges']();(!_0x5c1d68['attributes']||!_0x5c1d68['attributes']['skipNestingCheck'])&&(_0x1de38b['every'](_0x3dc067=>_0x524cec['some'](_0x253bb8=>_0x253bb8['containsRange'](_0x3dc067,!0x0)))&&_0x5c1d68['discard']());if(_0x524cec['every'](_0x589776=>_0x1de38b['some'](_0x5a184c=>_0x5a184c['containsRange'](_0x589776,!0x0)))){const _0x407a22=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1d0bd9,'accept');return this['forceDefaultExecution'](()=>_0x407a22(_0x4c1476,null,_0x137783)),null;}}else{const _0xe6c7ba=_0x5c1d68['getFirstRange']();_0x524cec['some'](_0x1fd505=>_0x1fd505['containsRange'](_0xe6c7ba,!0x0))&&_0x5c1d68['discard']();if(_0x524cec['every'](_0x3d5f84=>_0xe6c7ba['containsRange'](_0x3d5f84,!0x0))){const _0x371b04=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1d0bd9,'accept');return this['forceDefaultExecution'](()=>_0x371b04(_0x524cec,null,_0x137783)),null;}}const _0x36133d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1d0bd9,'join');let _0x10c76c=null;for(const _0x4d18d6 of this['getSuggestions']())if(_0x4d18d6['author']['id']==_0xd4395b['id']&&_0x4d18d6['isInContent']&&'deletion'==_0x4d18d6['type']&&_0x4d18d6['subType']==_0x1d0bd9&&Xt(_0x4d18d6,_0x137783)&&(_0x36133d(_0x4d18d6['getRanges'](),_0x524cec)||_0x36133d(_0x524cec,_0x4d18d6['getRanges']()))){if(_0x10c76c){if(_0x4d18d6['commentThread']&&_0x4d18d6['commentThread']['length'])continue;for(const _0x160207 of _0x4d18d6['getRanges']())_0x10c76c['isIntersectingWithRange'](_0x160207)||_0x10c76c['addRange'](_0x160207);_0x4d18d6['removeMarkers']();}else{_0x10c76c=_0x4d18d6;for(const _0x141d98 of _0x524cec)_0x4d18d6['isIntersectingWithRange'](_0x141d98)||_0x4d18d6['addRange'](_0x141d98);}}if(_0x10c76c)return _0x10c76c;_0x28da4a['clear']();for(const {suggestion:_0x22c030,meta:_0x413a20}of this['_findSuggestions'](_0x524cec,'deletion'))_0x413a20['isOwn']&&(this['_mergeNestedSuggestions']||!_0x413a20['containsRangeInObject']&&!_0x413a20['isInsideObject'])&&Xt(_0x22c030,_0x137783)&&_0x28da4a['add'](_0x22c030);for(const _0xe31c4a of _0x28da4a){const _0x5a672a=_0xe31c4a['getRanges']();if(!_0x137783||!_0x137783['skipNestingCheck']){if(_0x524cec['every'](_0x43c297=>_0x5a672a['some'](_0x483e5f=>_0x483e5f['containsRange'](_0x43c297,!0x0))))return _0xe31c4a;}(!_0xe31c4a['attributes']||!_0xe31c4a['attributes']['skipNestingCheck'])&&(_0x5a672a['every'](_0x24ac88=>_0x524cec['some'](_0xf8a466=>_0xf8a466['containsRange'](_0x24ac88,!0x0)))&&_0xe31c4a['discard']());}const _0x27b5a=_0x525dd0(),_0x5ea864=_0xd4395b['id'],_0x544613='deletion:'+_0x1d0bd9,_0x496c35=this['_setSuggestionData']({'id':_0x27b5a,'type':_0x544613,'createdAt':new Date(),'authorId':_0x5ea864,'attributes':_0x137783});for(const _0x2d0439 of _0x524cec)_0x2d0439['detach'](),_0x2d0439['isCollapsed']||'$graveyard'==_0x2d0439['root']['rootName']||this['_addSuggestionMarker'](_0x544613,_0x27b5a,_0x5ea864,_0x2d0439,o['getMultiRangeId']());return _0x496c35;}['markAttributeChange'](_0x3611ec,_0x48f10a,_0x9c8ef1,_0x34a2bd,_0x1e62be){if(_0x3611ec['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x417b19=this['editor']['plugins']['get']('Users')['me']['id'],_0x4eda41=Array['from'](this['_suggestions']['values']())['filter'](_0x179a09=>'attribute'==_0x179a09['type']&&_0x179a09['data']['key']==_0x48f10a&&_0x179a09['isIntersectingWithRange'](_0x3611ec));if('default'===this['_trackFormatChanges']){const _0x504a13=this['_findSuggestions'](_0x3611ec,'insertion')['filter'](({meta:_0x2bddbb})=>_0x2bddbb['isOwn']&&!_0x2bddbb['isInsideObject']&&!_0x2bddbb['isNextTo'])['map'](({suggestion:_0x42e7a1})=>_0x42e7a1);_0x4eda41['unshift'](..._0x504a13);}const _0x1500c2=new Map([[_0x3611ec,_0x9c8ef1]]);for(const _0x14a93a of _0x4eda41){const _0x23a753='attribute'==_0x14a93a['type']?_0x14a93a['data']['oldValue']:void 0x0,_0x4af2c3=_0x14a93a['getFirstRange'](),_0x48746d=Array['from'](_0x1500c2['keys']())['find'](_0x44ab48=>_0x44ab48['isIntersecting'](_0x4af2c3));if(!_0x48746d)continue;const _0x44e5f5=_0x48746d['getDifference'](_0x4af2c3);this['_isBlockAttribute'](_0x48f10a)&&'insertion'==_0x14a93a['type']&&0x0!=_0x44e5f5['length']||(_0x1500c2['delete'](_0x48746d),_0x44e5f5['forEach'](_0x105651=>{_0x1500c2['set'](_0x105651,_0x9c8ef1);}),'insertion'!=_0x14a93a['type']&&_0x23a753!=_0x34a2bd&&_0x1500c2['set'](_0x48746d['getIntersection'](_0x4af2c3),_0x23a753));}const _0xdb23e4=[];for(const [_0x426aaa,_0x2a4ac7]of _0x1500c2){const _0x377fbd=_0x525dd0(),_0x3dea8a={'key':_0x48f10a,'oldValue':_0x2a4ac7,'newValue':_0x34a2bd};_0x48f10a['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':_0x48f10a});const _0x547c09=('attribute:'+(_0x48f10a+'|'+Kt({'newValue':_0x34a2bd})))['substring'](0x0,0x3c),_0x57398a=this['_setSuggestionData']({'id':_0x377fbd,'type':_0x547c09,'data':_0x3dea8a,'createdAt':new Date(),'authorId':_0x417b19,'attributes':_0x1e62be});_0xdb23e4['push'](_0x57398a),this['_addSuggestionMarker'](_0x547c09,_0x377fbd,_0x417b19,_0x426aaa);}return _0xdb23e4;}['enableDefaultAttributesIntegration'](_0x1073fe){this['enableCommand'](_0x1073fe,(_0x471d71,..._0x411bbb)=>{this['_recordAttributeChanges'](()=>{_0x471d71(..._0x411bbb);});});}['registerBlockAttribute'](_0x281c77){this['_blockAttributeKeys']['add'](_0x281c77);}['registerInlineAttribute'](_0xf4efb8){this['_inlineAttributeKeys']['add'](_0xf4efb8);}['_getAttributeKey'](_0xc4d063){return'attribute'==_0xc4d063['type']?_0xc4d063['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1025a8,_0x2a51cf){const _0x19f5d6=_0x1025a8['getFirstMarker']();this['_model']['change'](_0x3b9532=>{_0x3b9532['updateMarker'](_0x19f5d6,{'range':_0x2a51cf});});}['_addThreadToSuggestion'](_0x1c4fae){const _0x3084dc=_0x1c4fae['id'],_0x26ed2a=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3084dc)||this['_commentsRepository']['addCommentThread']({'channelId':_0x26ed2a,'threadId':_0x3084dc,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x905e5f=this['_commentsRepository']['getCommentThread'](_0x3084dc);_0x905e5f['unbind']('isRemovable'),_0x905e5f['isRemovable']=!0x1,_0x1c4fae['commentThread']=_0x905e5f;}['_checkSuggestionCorrectness'](_0x4e6159,_0x376d2d,_0x59df45,_0x1541eb){if(_0x4e6159['type']!=_0x376d2d||_0x4e6159['subType']!=_0x59df45||_0x4e6159['creator']['id']!=_0x1541eb)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4c980e('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x446eb4,_0x516444){const _0x5ba50f=_0x446eb4['getFirstRange']();if(_0x516444['isEqual'](_0x5ba50f))_0x446eb4['removeMarkers']();else{if(_0x5ba50f['containsRange'](_0x516444)){const _0x5d5e0d=this['_model']['createPositionAt'](_0x516444['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x446eb4,this['_model']['createRange'](_0x5ba50f['start'],_0x5d5e0d));const _0x8c4e08=_0x525dd0(),_0x3b51da=_0x446eb4['creator']['id'],_0x506d7f=_0x446eb4['type']+':'+_0x446eb4['subType'];this['_setSuggestionData']({'id':_0x8c4e08,'type':_0x506d7f,'createdAt':new Date(),'authorId':_0x3b51da,'data':_0x446eb4['data'],'attributes':_0x446eb4['attributes']});const _0x1869f3=this['_model']['createPositionAt'](_0x516444['end']['parent'],'after'),_0x159174=this['_model']['createRange'](_0x1869f3,_0x5ba50f['end']);this['_addSuggestionMarker'](_0x506d7f,_0x8c4e08,_0x3b51da,_0x159174);}else{if(_0x5ba50f['containsPosition'](_0x516444['start'])){const _0x47c5ce=this['_model']['createPositionAt'](_0x516444['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x446eb4,this['_model']['createRange'](_0x5ba50f['start'],_0x47c5ce));}else{const _0x44db1b=this['_model']['createPositionAt'](_0x516444['end']['parent'],'after');this['_setSuggestionRange'](_0x446eb4,this['_model']['createRange'](_0x44db1b,_0x5ba50f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x481ee5){for(const {suggestion:_0x3ad730,meta:_0x3b67ea}of this['_findSuggestions'](_0x481ee5,'insertion')){if(!_0x3b67ea['isOwn'])continue;const _0x2cbbef=_0x3ad730['getRanges']();for(const _0x11483e of _0x2cbbef)if(!_0x481ee5['getDifference'](_0x11483e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5b985f){const _0x50f164=this['editor']['plugins']['get']('Users')['getUser'](_0x5b985f);if(!_0x50f164)throw new _0x4c980e('track-changes-user-not-found',this);return _0x50f164;}['_getExternalAuthor'](_0x44dd08){const _0x1233c1=this['editor']['plugins']['get']('Users'),_0x206b5b=_0x5c99bd('external:'+_0x44dd08),_0xfa6e19=_0x1233c1['getUser'](_0x206b5b);return _0xfa6e19||_0x1233c1['addUser']({'id':_0x206b5b,'name':_0x44dd08});}['_createSuggestion'](_0xb5519,_0x5e8804,_0x57a16b,_0x272ee4,_0x52f517){const _0x4dcdaa=this['_getAuthorFromId'](_0x272ee4),_0x26d8ef=this['_suggestionFactory']['buildSuggestion'](_0xb5519,_0x5e8804,_0x57a16b,_0x4dcdaa,_0x52f517,_0x467fe0=>{this['_updateSuggestionData'](_0x57a16b,{'attributes':_0x467fe0});const _0x318539=this['getSuggestion'](_0x57a16b);this['_joinWithAdjacentSuggestions'](new Set([_0x318539])),this['_refreshSuggestionsChain'](new Set([_0x318539]));});return this['listenTo'](_0x26d8ef,'accept',()=>{this['_updateSuggestionData'](_0x57a16b,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x26d8ef,'discard',()=>{this['_updateSuggestionData'](_0x57a16b,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x57a16b,_0x26d8ef),this['_suggestionState']['set'](_0x26d8ef,'notReady'),_0x26d8ef;}['_splitMarkerName'](_0x5e5c1f){const _0x51c3a0=_0x5e5c1f['split'](':');return{'group':_0x51c3a0[0x0],'type':_0x51c3a0[0x1],'subType':_0x51c3a0['length']>=0x5?_0x51c3a0[0x2]:null,'id':_0x51c3a0['length']<0x5?_0x51c3a0[0x2]:_0x51c3a0[0x3],'authorId':_0x51c3a0['length']<0x5?_0x51c3a0[0x3]:_0x51c3a0[0x4],'markerCount':0x6==_0x51c3a0['length']?_0x51c3a0[0x5]:null};}['_breakSuggestionMarker'](_0x4d5601,_0x2174d4,_0x47fc75){const _0x31986f=_0x4d5601['getFirstRange'](),_0x4835c5=_0x31986f['start'],_0x5d9216=_0x31986f['end'];this['_setSuggestionRange'](_0x4d5601,this['_model']['createRange'](_0x4835c5,_0x2174d4));const _0x5a39ee=_0x525dd0(),_0x583b00=_0x4d5601['creator']['id'],_0x4158fc=_0x4d5601['type']+(_0x4d5601['subType']?':'+_0x4d5601['subType']:'');this['_setSuggestionData']({'id':_0x5a39ee,'type':_0x4158fc,'createdAt':new Date(),'authorId':_0x583b00,'originalSuggestionId':_0x4d5601['id'],'attributes':_0x4d5601['attributes'],'data':_0x4d5601['data']});const _0x220e9f=this['_getAttributeKey'](_0x4d5601);('formatBlock'==_0x4d5601['type']||_0x220e9f&&this['_isBlockAttribute'](_0x220e9f))&&(_0x47fc75=this['_model']['createPositionBefore'](_0x47fc75['parent'])),this['_addSuggestionMarker'](_0x4158fc,_0x5a39ee,_0x583b00,this['_model']['createRange'](_0x47fc75,_0x5d9216));}['_findSuggestions'](_0x2fb90a,_0x553beb=null){const _0x2c9f96=[],_0x1f4f6c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2fb90a)||(_0x2fb90a=[_0x2fb90a]);for(const _0xd972fa of this['getSuggestions']()){if(!_0xd972fa['isInContent'])continue;if(_0x553beb&&_0xd972fa['type']!=_0x553beb)continue;let _0x1b93bc=!0x1;for(const _0x245ece of _0xd972fa['getRanges']()){for(const _0x38a0ab of _0x2fb90a){const _0x1fe719=_0x38a0ab['start']['isEqual'](_0x245ece['end'])||_0x38a0ab['end']['isEqual'](_0x245ece['start']);if(_0x1fe719||_0x38a0ab['getIntersection'](_0x245ece)){const _0x409357=_0x38a0ab['containsRange'](_0x245ece)&&Gt(this['_model']['schema'],_0x245ece['start'],_0x38a0ab),_0x4cf35d=_0x245ece['containsRange'](_0x38a0ab)&&Gt(this['_model']['schema'],_0x38a0ab['start'],_0x245ece);_0x2c9f96['push']({'suggestion':_0xd972fa,'meta':{'isOwn':_0x1f4f6c==_0xd972fa['author'],'isNextTo':_0x1fe719,'isInsideObject':_0x409357,'containsRangeInObject':_0x4cf35d}}),_0x1b93bc=!0x0;break;}}if(_0x1b93bc)break;}}return _0x2c9f96;}['_addSuggestionMarker'](_0x4ea873,_0x454433,_0x505510,_0x24d72e,_0x846ef5){this['_model']['change'](_0x439f65=>{let _0xf8fc0f='suggestion:'+_0x4ea873+':'+_0x454433+':'+_0x505510;_0x846ef5&&(_0xf8fc0f=_0xf8fc0f+':'+_0x846ef5),_0x439f65['addMarker'](_0xf8fc0f,{'range':_0x24d72e,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5646ff){const _0x511228=_0x5646ff['previous'],_0x4b5dc5=_0x5646ff['next'];_0x5646ff['previous']=null,_0x5646ff['next']=null,null!=_0x511228&&_0x511228['next']==_0x5646ff&&(_0x511228['next']=_0x4b5dc5),null!=_0x4b5dc5&&_0x4b5dc5['previous']==_0x5646ff&&(_0x4b5dc5['previous']=_0x511228),'ready'==this['_suggestionState']['get'](_0x5646ff)&&(this['_suggestionState']['set'](_0x5646ff,'removed'),this['fire']('suggestionUnloaded',_0x5646ff,_0x511228,_0x4b5dc5));}['_setSuggestionData'](_0x8411c1){const _0x3e3a05=_0x8411c1['id'],_0x4d5573=this['addSuggestionData'](_0x8411c1);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x51e8d8=this['editor']['plugins']['get']('PendingActions'),_0x16db03=_0x4d5573['hasComments'],_0x38832a=_0x4d5573['subType']?_0x4d5573['type']+':'+_0x4d5573['subType']:_0x4d5573['type'],_0x48a500=this['editor']['locale'],_0x18e503=_0x51e8d8['add'](c(_0x48a500,'PENDING_ACTION_SUGGESTION')),_0xbd76d7={'id':_0x3e3a05,'type':_0x38832a,'hasComments':_0x16db03,'data':_0x8411c1['data']||null,'originalSuggestionId':_0x8411c1['originalSuggestionId']||null,'attributes':_0x4d5573['attributes']};this['_adapter']['addSuggestion'](_0xbd76d7)['then'](_0x3d942b=>{_0x4d5573['_saved']=!0x0,_0x51e8d8['remove'](_0x18e503),_0x3d942b&&_0x3d942b['createdAt']&&(this['_suggestions']['get'](_0x3e3a05)['createdAt']=_0x3d942b['createdAt']);})['catch'](_0x2a41f0=>{throw _0xf2f0a4('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4d5573['discard']();}),_0x4d5573['stopListening'](),this['_suggestions']['delete'](_0x4d5573['id']),this['_suggestionState']['delete'](_0x4d5573),_0x2a41f0;});}return _0x4d5573;}['_isBlockAttribute'](_0x5c42ec){return this['_blockAttributeKeys']['has'](_0x5c42ec);}['_updateSuggestionData'](_0x102d3c,_0x331d59){const _0x2e7912=this['editor']['plugins']['get']('PendingActions'),_0x1d3cf4=this['getSuggestion'](_0x102d3c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1d3cf4['_saved']){const _0x45c810=_0x2e7912['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x102d3c,_0x331d59)['then'](()=>{_0x2e7912['remove'](_0x45c810);});}else _0x1d3cf4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x102d3c,_0x331d59);});}}['_getSuggestionData'](_0x222c59){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4c980e('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x222c59);}['_handleNewSuggestionMarker'](_0x3c8808){const {id:_0x511b86,type:_0x1d2b2c,subType:_0x30e26f,authorId:_0x17cb3c}=this['_splitMarkerName'](_0x3c8808),_0x2f2247=this['_suggestions']['get'](_0x511b86)||this['_createSuggestion'](_0x1d2b2c,_0x30e26f,_0x511b86,_0x17cb3c,{});switch(this['_checkSuggestionCorrectness'](_0x2f2247,_0x1d2b2c,_0x30e26f,_0x17cb3c),this['_suggestionState']['get'](_0x2f2247)){case'notReady':this['_getSuggestionData'](_0x511b86)['then'](_0x270dbb=>{let _0x160638=Promise['resolve']();_0x270dbb['hasComments']&&(_0x160638=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x511b86})),_0x160638['then'](()=>{this['addSuggestionData'](_0x270dbb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2f2247,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x511b86,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2f2247,'ready'),this['fire']('suggestionLoaded',_0x2f2247);break;case'ready':this['fire']('suggestionChanged',_0x2f2247);}return _0x2f2247['addMarkerName'](_0x3c8808),_0x2f2247;}['_refreshSuggestionsChain'](_0x3b5b8f){const _0x17ea90=Array['from'](_0x3b5b8f),_0x5e397c=_0x17ea90['filter'](_0x364158=>'attribute'==_0x364158['type']);this['_refreshAttributeSuggestionsChain'](_0x5e397c);const _0x463f28=_0x17ea90['filter'](_0x24520a=>!_0x24520a['isMultiRange']&&'attribute'!=_0x24520a['type']),_0x6ceefb=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9bab0b=>!_0x9bab0b['isMultiRange']&&'attribute'!=_0x9bab0b['type']),_0x409392=_0x6ceefb['filter'](_0x4de0d2=>!_0x3b5b8f['has'](_0x4de0d2)),_0x4aca0f=new Map(_0x6ceefb['map'](_0x422b23=>[_0x422b23,this['_suggestionFactory']['getSuggestionCallback'](_0x422b23['type'],_0x422b23['subType'],'chain')])),_0x46a498=new Map(_0x6ceefb['map'](_0x2e21a6=>[_0x2e21a6,_0x2e21a6['getFirstRange']()])),_0xfab83c=new Set(),_0x4c8527=new Set();for(let _0x5dd953=0x0;_0x5dd953<_0x463f28['length'];_0x5dd953++)_0x297160(_0x463f28[_0x5dd953],_0x463f28,_0x5dd953+0x1);for(let _0x1070d9=0x0;_0x1070d9<_0x463f28['length'];_0x1070d9++)_0x297160(_0x463f28[_0x1070d9],_0x409392,0x0);const _0x5f1911=new Set();for(let _0x99b300=0x0;_0x99b300<_0x463f28['length'];_0x99b300++){const _0x5dc28f=_0x463f28[_0x99b300];!_0x4c8527['has'](_0x5dc28f)&&_0x5dc28f['previous']&&(_0x5f1911['add'](_0x5dc28f['previous']),_0x5dc28f['previous']['next']===_0x5dc28f&&(_0x5dc28f['previous']['next']=null),_0x5dc28f['previous']=null),!_0xfab83c['has'](_0x5dc28f)&&_0x5dc28f['next']&&(_0x5f1911['add'](_0x5dc28f['next']),_0x5dc28f['next']['previous']===_0x5dc28f&&(_0x5dc28f['next']['previous']=null),_0x5dc28f['next']=null);}function _0x297160(_0x5fe12f,_0x915e90,_0x1cfbfc){for(let _0x5aa309=_0x1cfbfc;_0x5aa309<_0x915e90['length'];_0x5aa309++){const _0x998748=_0x5f5416(_0x5fe12f,_0x915e90[_0x5aa309]);_0x998748&&(_0x998748[0x0]['next']=_0x998748[0x1],_0x998748[0x1]['previous']=_0x998748[0x0],_0xfab83c['add'](_0x998748[0x0]),_0x4c8527['add'](_0x998748[0x1]));}}function _0x5f5416(_0xe9b459,_0xc2055e){if(_0xe9b459['author']['id']!==_0xc2055e['author']['id'])return null;const _0x5dd442=_0x4aca0f['get'](_0xe9b459)(_0xe9b459,_0xc2055e,_0x46a498['get'](_0xe9b459),_0x46a498['get'](_0xc2055e));if(!_0x5dd442)return null;return _0x4aca0f['get'](_0xc2055e)(_0xe9b459,_0xc2055e,_0x46a498['get'](_0xe9b459),_0x46a498['get'](_0xc2055e))?_0x5dd442[0x1]['commentThread']&&_0x5dd442[0x1]['commentThread']['length']?null:_0x5dd442:null;}_0x5f1911['size']&&this['_refreshSuggestionsChain'](_0x5f1911);}['_refreshAttributeSuggestionsChain'](_0x23f5ab){if(0x0==_0x23f5ab['length'])return;const _0x5e04d0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x25a3f6=>'attribute'==_0x25a3f6['type']&&_0x25a3f6['_isDataLoaded']),_0x9ba525=[],_0x2f0a0d=new Map();for(const _0x4a1f39 of _0x5e04d0){const _0x2eb500=_0x5c99bd(_0x4a1f39['attributes']);_0x2f0a0d['has'](_0x2eb500)||(_0x2f0a0d['set'](_0x2eb500,_0x9ba525['length']),_0x9ba525['push']([]));const _0x4ca528=_0x2f0a0d['get'](_0x2eb500);_0x9ba525[_0x4ca528]['push'](_0x4a1f39);}!(function(){_0x9ba525['sort']((_0x2fa204,_0x2d8849)=>{const _0x4e787a=_0x2fa204[0x0]['createdAt'],_0x1363aa=_0x2d8849[0x0]['createdAt'];return _0x4e787a==_0x1363aa?_0x2fa204[0x0]['attributes']['groupId']<_0x2d8849[0x0]['attributes']['groupId']?-0x1:0x1:_0x4e787a<_0x1363aa?-0x1:0x1;});for(const _0x43cec4 of _0x9ba525)_0x43cec4['sort']((_0x178635,_0x382a64)=>_0x178635['id']<_0x382a64['id']?-0x1:0x1);}());for(let _0x27b848=0x0;_0x27b848<_0x9ba525['length'];_0x27b848++){if(0x0==_0x9ba525[_0x27b848]['length'])continue;const _0x552da8=[];for(let _0x2451c7=_0x27b848+0x1;_0x2451c7<_0x9ba525['length'];_0x2451c7++)0x0!=_0x9ba525[_0x2451c7]['length']&&_0x518365(_0x9ba525[_0x27b848],_0x9ba525[_0x2451c7])&&_0x552da8['push'](_0x2451c7);for(const _0x361a4b of _0x552da8)_0x9ba525[_0x27b848]=_0x9ba525[_0x27b848]['concat'](_0x9ba525[_0x361a4b]),_0x9ba525[_0x361a4b]=[];}for(const _0x1b134d of _0x9ba525)for(let _0x3ec14c=0x0;_0x3ec14c<_0x1b134d['length'];_0x3ec14c++){const _0x28f5ab=_0x1b134d[_0x3ec14c+0x1]||null;_0x1b134d[_0x3ec14c]['next']!==_0x28f5ab&&(_0x1b134d[_0x3ec14c]['next']=_0x28f5ab);}for(const _0x4a05f1 of _0x9ba525)for(let _0x50b3fd=0x0;_0x50b3fd<_0x4a05f1['length'];_0x50b3fd++){const _0x3a2d0a=_0x4a05f1[_0x50b3fd-0x1]||null;_0x4a05f1[_0x50b3fd]['previous']!==_0x3a2d0a&&(_0x4a05f1[_0x50b3fd]['previous']=_0x3a2d0a);}function _0x518365(_0xf13338,_0x287e5c){if(_0xf13338[0x0]['attributes']['groupId']!==_0x287e5c[0x0]['attributes']['groupId']&&_0xf13338[0x0]['author']!==_0x287e5c[0x0]['author'])return!0x1;if(!function(_0x326d2b,_0x3e06bb){if(!_0x326d2b['hasComments']&&!_0x3e06bb['hasComments'])return!0x0;if(_0x326d2b['hasComments']&&_0x3e06bb['hasComments'])return!0x1;if(_0x326d2b['hasComments']&&_0x3e06bb['createdAt']<_0x326d2b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3e06bb['hasComments']&&_0x326d2b['createdAt']<_0x3e06bb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xf13338[0x0],_0x287e5c[0x0]))return!0x1;const _0x2321d4=Ft(_0xf13338[0x0]['attributes'],'groupId'),_0x53c372=Ft(_0x287e5c[0x0]['attributes'],'groupId');if(!_0x43bc0c(_0x2321d4,_0x53c372))return!0x1;return!!_0xf13338['every'](_0x4ca070=>_0x287e5c['some'](_0x49cdca=>_0x4ca070['getFirstRange']()['isEqual'](_0x49cdca['getFirstRange']())))&&_0x287e5c['every'](_0x19fe12=>_0xf13338['some'](_0x21105e=>_0x19fe12['getFirstRange']()['isEqual'](_0x21105e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5e2e1a){const _0x3549a4=Array['from'](_0x5e2e1a),_0x31485f=this['getSuggestions']({'skipNotAttached':!0x0}),_0x41b4c0=_0x31485f['filter'](_0x2f2279=>!_0x5e2e1a['has'](_0x2f2279)),_0x468a97=new Map(_0x3549a4['map'](_0x438973=>[_0x438973,this['_suggestionFactory']['getSuggestionCallback'](_0x438973['type'],_0x438973['subType'],'join')])),_0x465b59=new Map(_0x31485f['map'](_0x36b1ef=>[_0x36b1ef,_0x36b1ef['getRanges']()]));for(let _0x92e17=0x0;_0x92e17<_0x3549a4['length'];_0x92e17++){if(_0x564951(this,_0x3549a4[_0x92e17],_0x3549a4,_0x92e17+0x1))return!0x0;}for(let _0x3fd3f5=0x0;_0x3fd3f5<_0x3549a4['length'];_0x3fd3f5++){if(_0x564951(this,_0x3549a4[_0x3fd3f5],_0x41b4c0,0x0))return!0x0;}return!0x1;function _0x564951(_0x13e35f,_0x2b4db9,_0x20a894,_0x2ccf95){for(let _0x39e6b2=_0x2ccf95;_0x39e6b2<_0x20a894['length'];_0x39e6b2++){const _0x4feffa=_0x20a894[_0x39e6b2];if(_0x4feffa['type']!==_0x2b4db9['type']||_0x4feffa['author']['id']!==_0x2b4db9['author']['id']||_0x4feffa['subType']!==_0x2b4db9['subType'])continue;if(!Qt(_0x2b4db9,_0x4feffa))continue;if('attribute'==_0x2b4db9['type']&&_0x2b4db9['data']['oldValue']!=_0x4feffa['data']['oldValue'])continue;if('attribute'==_0x2b4db9['type']&&_0x13e35f['_isBlockAttribute'](_0x2b4db9['data']['key']))continue;if('formatBlock'==_0x2b4db9['type']){const _0x272903=_0x13e35f['editor']['model'],_0x5e73ec=_0x2b4db9['getContainedElement']();if(_0x5e73ec&&(_0x272903['schema']['isObject'](_0x5e73ec)||_0x272903['schema']['isLimit'](_0x5e73ec)))continue;}const _0x54f2e0=_0x468a97['get'](_0x2b4db9),_0x2f6d20=_0x465b59['get'](_0x2b4db9),_0x4266a0=_0x465b59['get'](_0x4feffa),_0x400b26=_0x2b4db9['commentThread']&&_0x2b4db9['commentThread']['length'],_0x7fed35=_0x4feffa['commentThread']&&_0x4feffa['commentThread']['length'];if(!_0x400b26&&_0x54f2e0(_0x4266a0,_0x2f6d20))return _0x13e35f['_joinSuggestions'](_0x4feffa,_0x2b4db9),_0x465b59['delete'](_0x2b4db9),!0x0;if(!_0x7fed35&&_0x54f2e0(_0x2f6d20,_0x4266a0))return _0x13e35f['_joinSuggestions'](_0x2b4db9,_0x4feffa),_0x465b59['delete'](_0x4feffa),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4d22af,_0xa7a226){if(_0x4d22af['isMultiRange']){for(const _0x15946c of _0xa7a226['getRanges']())_0x4d22af['addRange'](_0x15946c);}else{const _0x4efaa3=_0xa7a226['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4d22af,this['_model']['createRange'](_0x4d22af['getFirstRange']()['start'],_0x4efaa3));}_0xa7a226['removeMarkers']();}['_getMarkerAnnouncementText'](_0x14ed27,_0xa12c93,_0x269bf3){const _0x22e1c3=_0x14ed27['startsWith']('format')||_0x14ed27['startsWith']('attribute')?'FORMATTING':_0x14ed27['toUpperCase']();return c(this['editor']['locale'],_0xa12c93+'_'+_0x22e1c3+'_SUGGESTION_ANNOUNCEMENT',_0x269bf3);}['_initAriaMarkerChangeAnnouncements'](){const _0x41ce73=this['editor'];if(!_0x41ce73['ui'])return;const {ariaLiveAnnouncer:_0x43e4b9}=_0x41ce73['ui'];_0x4f325c(this['_model'],({left:_0x382ced,entered:_0x362242})=>{for(const _0x301ed6 of _0x382ced){const {group:_0x19b43c,type:_0x1758de}=this['_splitMarkerName'](_0x301ed6['name']);if('suggestion'===_0x19b43c){_0x43e4b9['announce'](this['_getMarkerAnnouncementText'](_0x1758de,'LEAVE'));break;}}for(const _0x557b23 of _0x362242){const {group:_0x254b07,type:_0x13279b}=this['_splitMarkerName'](_0x557b23['name']);if('suggestion'===_0x254b07){_0x43e4b9['announce'](this['_getMarkerAnnouncementText'](_0x13279b,'ENTER',_0x5948ab(_0x75bc84)));break;}}});}['_processAttributeChanges'](_0x4b5453){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1eb10f=this['editor'],_0x828092=_0x1eb10f['model']['document']['differ']['getChanges']();if(0x0==_0x828092['length'])return!0x1;const _0xc10b94=[],_0x5c080e=_0x828092['filter'](_0xbda9f3=>'attribute'==_0xbda9f3['type']),_0x5dd64d=_0x828092['filter'](_0x48a140=>'insert'==_0x48a140['type']&&'$text'!=_0x48a140['name']),_0x188262=_0x828092['filter'](_0x575113=>'remove'==_0x575113['type']&&'$text'!=_0x575113['name']);for(const _0x363af5 of _0x5c080e)_0xc10b94['push']({'key':_0x363af5['attributeKey'],'newValue':_0x363af5['attributeNewValue'],'oldValue':_0x363af5['attributeOldValue'],'range':qt(_0x363af5['range'],_0x1eb10f['model'])});for(const _0x2c5ff5 of _0x5dd64d){const _0xa4a202=_0x188262['find'](_0x2153bd=>_0x2153bd['position']['isEqual'](_0x2c5ff5['position']));_0xa4a202&&_0xc10b94['push']({'key':u,'newValue':_0x2c5ff5['name'],'oldValue':_0xa4a202['name'],'range':_0x1eb10f['model']['createRangeOn'](_0x2c5ff5['position']['nodeAfter'])});}return 0x0!=_0xc10b94['length']&&this['_reduceExistingSuggestions'](_0x4b5453,_0xc10b94);}['_processAttributeSuggestions'](_0x59e2c7){let _0x923ff9=!0x1;const _0x4744ed=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x28b75e=>_0x28b75e['data']['newRange']&&_0x28b75e['name']['startsWith']('suggestion:attribute:'));for(const _0x231ba5 of _0x4744ed){const {subType:_0x4b0f22,id:_0x12bc0c}=this['_splitMarkerName'](_0x231ba5['name']),_0x39cd12=_0x4b0f22['split']('|')[0x0];for(const _0x40644b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x40644b['id']!=_0x12bc0c&&'attribute'==_0x40644b['type']&&_0x40644b['data']&&_0x40644b['data']['key']==_0x39cd12&&_0x40644b['getFirstRange']()['isIntersecting'](_0x231ba5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x40644b,_0x231ba5['data']['newRange'],_0x59e2c7),_0x923ff9=!0x0);}return _0x923ff9;}['_recordAttributeChanges'](_0x1a1767){this['_recordAttributeSuggestions']=!0x0,_0x1a1767();}['_isRegisteredAttribute'](_0x209cd9){const _0x3716ba=this['_isBlockAttribute'](_0x209cd9),_0x595be2=this['_inlineAttributeKeys']['has'](_0x209cd9);return _0x3716ba||_0x595be2;}['_reduceExistingSuggestions'](_0x3a3960,_0x5aa01d){if(0x0==_0x5aa01d['length'])return!0x1;let _0x2c7fc8=!0x1;for(const _0x392645 of _0x5aa01d){const _0x22265a=this['_findSuggestions'](_0x392645['range'],'attribute')['filter'](_0x2293e6=>!_0x2293e6['meta']['isNextTo'])['map'](_0x4539bb=>_0x4539bb['suggestion']),_0x1e3679=_0x5c99bd({'newValue':_0x392645['newValue']});_0x22265a['filter'](_0x14042b=>{const [_0xa903a5,_0x3012f7]=_0x14042b['subType']['split']('|');return _0xa903a5==_0x392645['key']&&_0x3012f7!=_0x1e3679;})['forEach'](_0x3ab707=>{this['_reduceSuggestionAttributeRange'](_0x3ab707,_0x392645['range'],_0x3a3960),_0x2c7fc8=!0x0;});}return _0x2c7fc8;}['_reduceSuggestionAttributeRange'](_0x5d70bc,_0x4079ad,_0x5cc3a6){const _0x60bb7f=_0x5d70bc['getFirstRange']()['getDifference'](_0x4079ad);0x0!==_0x60bb7f['length']?0x1!==_0x60bb7f['length']?this['_breakSuggestionMarker'](_0x5d70bc,_0x4079ad['start'],_0x4079ad['end']):this['_setSuggestionRange'](_0x5d70bc,_0x60bb7f[0x0]):_0x5cc3a6['removeMarker'](_0x5d70bc['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3b9492){this['_editor']=_0x3b9492,this['_model']=_0x3b9492['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x128904,_0x195ab8,_0x28a3b8,_0x2086b7,_0x330765,_0xdfc38b){return new o(this['_model'],{'type':_0x128904,'subType':_0x195ab8,'id':_0x28a3b8,'author':_0x2086b7,'creator':_0x2086b7,'attributes':_0x330765,'onAttributesChange':_0xdfc38b,'onAccept':(..._0x3f0646)=>this['getSuggestionCallback'](_0x128904,_0x195ab8,'accept')(..._0x3f0646),'onDiscard':(..._0x52c1c9)=>this['getSuggestionCallback'](_0x128904,_0x195ab8,'discard')(..._0x52c1c9)});}['registerCustomCallback'](_0x17d383,_0x1cde61,_0x350eca,_0x415b15){const _0x5261f9=_0x17d383+':'+_0x1cde61+':'+_0x350eca;this['_customCallbacks']['set'](_0x5261f9,_0x415b15);}['getSuggestionCallback'](_0x47070f,_0x5c136c,_0x153e25){const _0x50a184=_0x47070f+':'+_0x5c136c+':'+_0x153e25;return this['_customCallbacks']['get'](_0x50a184)||this['_defaultCallbacks']['get'](_0x47070f+':'+_0x153e25);}['_registerDefaultCallbacks'](){const _0x3551c9=()=>!0x1,_0x414abf=_0x4c6e19=>{_0x4c6e19['sort']((_0x4b6b95,_0x3ea69b)=>_0x4b6b95['start']['isBefore'](_0x3ea69b['start'])?0x1:-0x1),this['_model']['change'](_0x3ca09c=>{for(const _0x1a33d8 of _0x4c6e19){let _0x328aae;_0x328aae=_0x1a33d8['end']['isAtEnd']&&_0x1a33d8['end']['parent']==_0x1a33d8['start']['nodeAfter']?_0x3ca09c['createSelection'](_0x1a33d8['start']['nodeAfter'],'on'):_0x3ca09c['createSelection'](_0x1a33d8),this['_model']['deleteContent'](_0x328aae,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x20e9a0=(_0x3d623a,_0x5bb165)=>{_0x5bb165&&this['_model']['change'](_0xe34549=>{const {commandName:_0x448b2c,commandParams:_0x5af7dd=[]}=_0x5bb165,_0x545f85=_0x3d623a['map'](_0x20d0cf=>(Lt(_0x20d0cf)&&(_0x20d0cf=this['_model']['createRange'](_0x20d0cf['end'])),_0x20d0cf))['filter'](_0x15d5c3=>'$graveyard'!==_0x15d5c3['root']['rootName']);if(_0x545f85['length']<0x1)return;const _0x2736cc=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5331d3=>_0x65a6cb['fromRange'](_0x5331d3));_0xe34549['setSelection'](_0x545f85);for(const _0x358845 of this['_editor']['commands']['commands']())_0x358845['refresh']();_0x5af7dd['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x448b2c,..._0x5af7dd);const _0x39d959=_0x2736cc['filter'](_0x517ff5=>'$graveyard'!=_0x517ff5['root']['rootName']);_0x39d959['length']>0x0&&_0xe34549['setSelection'](_0x39d959);for(const _0x2b1b3e of _0x2736cc)_0x2b1b3e['detach']();});},_0x5aaf56=(_0x5ee7b0,_0x56e53f)=>0x1==_0x5ee7b0['length']&&0x1==_0x56e53f['length']&&_0x5ee7b0[0x0]['end']['isEqual'](_0x56e53f[0x0]['start']),_0x52d25b=(_0x8ec587,_0x5d7e49,_0x39afba,_0x3adb1a)=>Wt(_0x8ec587,_0x5d7e49,_0x39afba,_0x3adb1a)?[_0x8ec587,_0x5d7e49]:Wt(_0x5d7e49,_0x8ec587,_0x3adb1a,_0x39afba)?[_0x5d7e49,_0x8ec587]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3551c9),this['_defaultCallbacks']['set']('insertion:discard',_0x414abf),this['_defaultCallbacks']['set']('insertion:join',_0x5aaf56),this['_defaultCallbacks']['set']('insertion:chain',_0x52d25b),this['_defaultCallbacks']['set']('deletion:accept',_0x414abf),this['_defaultCallbacks']['set']('deletion:discard',_0x3551c9),this['_defaultCallbacks']['set']('deletion:join',_0x5aaf56),this['_defaultCallbacks']['set']('deletion:chain',_0x52d25b),this['_defaultCallbacks']['set']('formatInline:accept',_0x20e9a0),this['_defaultCallbacks']['set']('formatInline:discard',_0x3551c9),this['_defaultCallbacks']['set']('formatInline:join',_0x5aaf56),this['_defaultCallbacks']['set']('formatInline:chain',_0x3551c9),this['_defaultCallbacks']['set']('formatBlock:accept',_0x20e9a0),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3551c9),this['_defaultCallbacks']['set']('formatBlock:join',_0x5aaf56),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3551c9),this['_defaultCallbacks']['set']('attribute:accept',_0x3551c9),this['_defaultCallbacks']['set']('attribute:discard',(_0x150497,_0x2ff82e)=>{if(!_0x2ff82e)return;const _0x5b00f4=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4936db=>{if(_0x2ff82e['key']==u)for(const _0x2a8679 of _0x150497){const _0x3b3485=_0x2a8679['start']['nodeAfter'],_0x53e865=_0x2ff82e['oldValue'];_0x4936db['rename'](_0x3b3485,_0x53e865);}else{if(_0x5b00f4['_isBlockAttribute'](_0x2ff82e['key'])){for(const _0xe28c8a of _0x150497)void 0x0!==_0x2ff82e['oldValue']?_0x4936db['setAttribute'](_0x2ff82e['key'],_0x2ff82e['oldValue'],_0xe28c8a['start']['nodeAfter']):_0x4936db['removeAttribute'](_0x2ff82e['key'],_0xe28c8a['start']['nodeAfter']);}else{for(const _0x5374c9 of _0x150497)_0x2ff82e['oldValue']?_0x4936db['setAttribute'](_0x2ff82e['key'],_0x2ff82e['oldValue'],_0x5374c9):_0x4936db['removeAttribute'](_0x2ff82e['key'],_0x5374c9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5aaf56);}}function Gt(_0x1e7649,_0x1811ee,_0xc5df12){for(const _0x569c63 of _0x1811ee['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x569c63['root']==_0x569c63)return!0x1;if(!_0xc5df12['containsItem'](_0x569c63))return!0x1;if(_0x1e7649['isObject'](_0x569c63)||_0x1e7649['isLimit'](_0x569c63))return!0x0;}return!0x1;}function Lt(_0x567997){return _0x567997['end']['parent']==_0x567997['start']['nodeAfter']&&_0x567997['end']['isAtStart'];}function Jt(_0x4c9592,_0x1d30aa,_0x3969eb,_0x4576dd){const _0x12a8b5=_0x14bd76=>!_0x14bd76['item']['is']('$textProxy')&&!_0x4576dd['isObject'](_0x14bd76['item']),_0x2a8906=_0x4c9592['start']['getLastMatchingPosition'](_0x12a8b5),_0x3a964f=_0x4c9592['end']['getLastMatchingPosition'](_0x12a8b5,{'direction':'backward'});return(!_0x4c9592['start']['isEqual'](_0x2a8906)||!_0x4c9592['end']['isEqual'](_0x3a964f))&&(_0x2a8906['isBefore'](_0x3a964f)?_0x3969eb['updateMarker'](_0x1d30aa,{'range':_0x3969eb['createRange'](_0x2a8906,_0x3a964f)}):_0x3969eb['removeMarker'](_0x1d30aa),!0x0);}function Kt(_0x2c7c07){return _0x5c99bd(_0x2c7c07);}function Ht(_0x4043ee){const _0x2ca3fc=_0x4043ee['start']['nodeAfter'];return _0x2ca3fc&&_0x2ca3fc['is']('element');}function qt(_0x245c3e,_0x5537d6){return null==_0x245c3e['end']['nodeBefore']&&_0x245c3e['end']['parent']==_0x245c3e['start']['nodeAfter']?zt(_0x245c3e['start']['nodeAfter'],_0x5537d6):_0x245c3e;}function zt(_0x38904f,_0x87aebd){const _0x512549=_0x87aebd['schema']['isObject'](_0x38904f)||_0x87aebd['schema']['isSelectable'](_0x38904f);return _0x87aebd['createRange'](_0x87aebd['createPositionAt'](_0x38904f,'before'),_0x512549?_0x87aebd['createPositionAfter'](_0x38904f):_0x87aebd['createPositionAt'](_0x38904f,'end'));}function Wt(_0x39cd20,_0x598454,_0xe53537,_0x119267){return!!Qt(_0x39cd20,_0x598454)&&_0xe53537['end']['isEqual'](_0x119267['start']);}function Qt(_0x33aeae,_0x45ef03){if(!_0x33aeae['_isDataLoaded']||!_0x45ef03['_isDataLoaded'])return!0x1;const _0x463d2e=new Set(Object['keys'](_0x33aeae['attributes'])),_0xa51867=new Set(Object['keys'](_0x45ef03['attributes']));if(_0x463d2e['delete']('groupId'),_0xa51867['delete']('groupId'),0x0==_0x463d2e['size']&&0x0==_0xa51867['size'])return!0x0;if(_0x463d2e['size']!=_0xa51867['size'])return!0x1;const _0x86c588={..._0x33aeae['attributes']},_0x1c0338={..._0x45ef03['attributes']};return delete _0x86c588['groupId'],delete _0x1c0338['groupId'],JSON['stringify'](_0x86c588)==JSON['stringify'](_0x1c0338);}function Xt(_0x5e598e,_0x5518bd){const _0x4774cb=Yt(_0x5e598e['attributes']),_0x244f97=Yt(_0x5518bd);if(!_0x5e598e['_isDataLoaded'])return!0x1;for(const _0x3f8749 of Object['keys'](_0x244f97))if(!_0x43bc0c(_0x4774cb[_0x3f8749],_0x244f97[_0x3f8749]))return!0x1;return!0x0;}function Yt(_0xe7b3cc){const _0x1fdda5=Object['assign']({},_0xe7b3cc);return delete _0x1fdda5['skipNestingCheck'],delete _0x1fdda5['tablePasteChainId'],_0x1fdda5;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x95b379(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x57c034,_0xe3b08f,_0x409b03,_0x3f8155){super(),this['model']=_0xe3b08f,this['view']=_0x409b03,this['commentThreadController']=_0x3f8155,this['_editor']=_0x57c034,this['_acceptCommand']=_0x57c034['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x57c034['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x135cd6,_0x5d35f5)=>_0x135cd6||_0x5d35f5),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1a9ca1=>_0x1a9ca1&&this['_editor']['model']['canEditAt'](_0xe3b08f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xdf2f23=>_0xdf2f23&&this['_editor']['model']['canEditAt'](_0xe3b08f['getRanges']())),this['_pendingAction']=null,_0x409b03['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x409b03,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x409b03,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x409b03,'change:isDirty',()=>{_0x409b03['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 _0x2db44d=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2db44d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2a7dd6{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3eea5b,_0x178a1f,_0x26c6bf,_0x18407b){super(_0x3eea5b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x19b02b(_0x3eea5b,c(_0x3eea5b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x178a1f['authoredAt']),this['bind']('authoredAt')['to'](_0x178a1f),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',_0x178a1f,'authoredAt',this,'descriptionParts',(_0x40fa3c,_0x4c1f8e,_0x10719c)=>{const _0x3544a7=_0x10719c['map'](_0x15eb15=>ls(_0x15eb15['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x40fa3c-0x1,_0x178a1f['author']['name'],_0x4c1f8e?_0x18407b['formatDateTime'](_0x4c1f8e):'',new DOMParser()['parseFromString'](_0x3544a7,'text/html')['body']['textContent']]);}),this['focusables']=new _0x85baf3(),this['focusTracker']=new _0x2a92df(),this['keystrokes']=new _0x353ea6(),this['focusCycler']=new _0x1f8238({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2a44b0=>_0x2a44b0['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x178a1f,this['_localUser']=_0x26c6bf,this['_config']=_0x18407b,_0x18407b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x211b98(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4aa965}=this['_config'];this['commentsListView']=new _0x4aa965(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',_0x388f67=>_0x388f67+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4fbfe4,_0x1190ad)=>_0x4fbfe4||!!_0x1190ad);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3deb29}=this['_config'],_0x22f532=new _0x3deb29(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x774026=_0x22f532['commentInputView'];return _0x22f532['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x774026,'value',(_0x410222,_0x1c5fed,_0x60591e)=>!!_0x60591e||_0x410222&&!_0x1c5fed),_0x774026['on']('submit',(_0x43b3f5,_0x3c7b6a)=>{this['fire']('addComment',_0x3c7b6a),_0x774026['editor']['setData']('');}),_0x774026['on']('cancel',()=>this['focus']()),_0x774026['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x22f532;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x383f29,_0x3c4268,_0x1b028b,_0x56c771){super(_0x383f29,_0x3c4268,_0x1b028b,_0x56c771),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x279a76=>_0x279a76&&_0x279a76[0x0]?_0x279a76[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x246fd9,_0x476c2a)=>{let _0x315c8b='';for(const _0x103ec5 of _0x246fd9)_0x315c8b+='<p>'+ls(_0x103ec5['content'],_0x103ec5['color'])+'</p>';return _0x476c2a?_0x315c8b:ti(_0x315c8b,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x56c771['SuggestionView'](_0x383f29,_0x3c4268,{'formatDateTime':_0x56c771['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 _0x26412c=this['bindTemplate'],_0x484ecc=[this['suggestionView']];return this['commentsListView']&&_0x484ecc['push'](this['commentsListView']),this['commentThreadInputView']&&_0x484ecc['push'](this['commentThreadInputView']),_0x484ecc['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x26412c['if']('isActive','ck-suggestion-wrapper--active'),_0x26412c['to']('type',_0x4470c2=>'ck-suggestion-'+_0x4470c2),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':_0x26412c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x484ecc};}['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 _0x2a7dd6{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x48cdb7,_0x1e3e43,_0x37945d){super(_0x48cdb7),this['_model']=_0x1e3e43,this['_config']=_0x37945d,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1e3e43),this['acceptButton']=this['_createButton'](c(_0x48cdb7,'Accept\x20suggestion'),_0x1a4532,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x48cdb7,'Discard\x20suggestion'),_0x10cf07,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x18cce9(_0x48cdb7,_0x1e3e43['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x85baf3([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2a92df(),this['keystrokes']=new _0x353ea6(),this['focusCycler']=new _0x1f8238({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x19cbe7=>_0x19cbe7['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x454d2b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x454d2b['innerHTML']=this['description'],this['on']('change:description',(_0x5d9e01,_0x245f21,_0x462317)=>{_0x454d2b['innerHTML']=_0x462317;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5b8de0=this['bindTemplate'],_0x80ea3f=[{'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':_0x5b8de0['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5b8de0['to']('authoredAt',_0xbfd11e=>this['_config']['formatDateTime'](_0xbfd11e))}]}]},{'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']&&_0x80ea3f['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':_0x80ea3f}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3cfcc4,_0x23896a,_0x4d4609,_0x4f5f3a,_0x25f736){const _0x150dcd=new _0x50c6ef(this['locale']);return _0x150dcd['set']({'label':_0x3cfcc4,'icon':_0x23896a,'tooltip':!0x0,'tooltipPosition':_0x25f736}),_0x150dcd['extendTemplate']({'attributes':{'class':_0x4d4609}}),_0x150dcd['on']('execute',()=>{this['fire'](_0x4f5f3a,this['_model']['id']);}),_0x150dcd;}['_setupKeyboardNavigation'](){const _0x18be30=this['element'];this['keystrokes']['listenTo'](_0x18be30);for(const _0x2522d3 of this['focusables'])this['focusTracker']['add'](_0x2522d3['element']),this['keystrokes']['listenTo'](_0x2522d3['element']);this['keystrokes']['set']('enter',(_0x120f6f,_0x24dfaf)=>{_0x18be30===_0x120f6f['target']&&(this['focusCycler']['focusFirst'](),_0x24dfaf());}),this['keystrokes']['set']('esc',(_0x466417,_0x246033)=>{_0x18be30!==_0x466417['target']&&(this['focus'](),_0x246033());});}}class d extends _0xbcf0e2{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4e4a77,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x16768c){super(_0x16768c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3d815a=this['editor']['config'];_0x3d815a['define']('trackChanges.SuggestionThreadView',fe),_0x3d815a['define']('trackChanges.SuggestionView',we),_0x3d815a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3d815a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4b8a48,_0x17d987){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1b039c,_0x39b00c]of this['_handleControllerBuffer']){const _0x31d1ff=this['_suggestionToController']['has'](_0x1b039c);_0x31d1ff||_0x39b00c?_0x31d1ff&&_0x39b00c&&this['_destroyController'](_0x1b039c):this['_initializeController'](_0x1b039c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4b8a48,_0x17d987);}['init'](){const _0x4cbd7b=this['editor'],_0x6c462a=_0x4cbd7b['plugins']['get']('TrackChangesEditing'),_0x102a31=_0x4cbd7b['plugins']['get']('Annotations'),_0xcfb6c3=_0x4cbd7b['plugins']['get']('EditorAnnotations'),_0x239350=_0x4cbd7b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xcfb6c3['addSourceCollector'](()=>{const _0x9deabe=[];for(const [_0x566213,_0x27026]of Array['from'](this['_suggestionToController'])){const _0x3dd173=_0x566213['getAllAdjacentSuggestions'](),_0x232ed8=[];for(const _0x2cea42 of _0x3dd173){if(!_0x2cea42['isInContent'])continue;if(_0x2cea42['isMultiRange']){_0x232ed8['push'](..._0x2cea42['getRanges']());continue;}const _0x3b7fa9=_0x2cea42['getFirstRange']();if(_0x232ed8['length']>0x0){const _0x1c51a2=_0x232ed8[0x0]['getJoined'](_0x3b7fa9);if(_0x1c51a2){_0x232ed8[0x0]=_0x1c51a2;continue;}}_0x232ed8['push'](_0x3b7fa9);}_0x9deabe['push']([_0x27026['view'],_0x232ed8]);}return _0x9deabe;}),this['listenTo'](_0x6c462a,'suggestionLoaded',(_0x12f5ae,_0x49ec12)=>{this['listenTo'](_0x49ec12,'change:previous',(_0x2349c6,_0x2d8e76,_0x22f1fa,_0x79b205)=>{_0x49ec12['isInContent']&&(null==_0x22f1fa?(this['_updateController'](_0x79b205['head']),this['_handleSuggestionControllerDelayed'](_0x49ec12,!0x1)):(this['_updateController'](_0x22f1fa['head']),null==_0x79b205&&this['_handleSuggestionControllerDelayed'](_0x49ec12,!0x0)));}),null!==_0x49ec12['previous']?this['_updateController'](_0x49ec12['head']):this['_handleSuggestionControllerDelayed'](_0x49ec12,!0x1);}),this['listenTo'](_0x6c462a,'suggestionUnloaded',(_0x2f4df4,_0x12f9ad,_0x56e300)=>{this['stopListening'](_0x12f9ad,'change:previous'),this['_handleControllerBuffer']['delete'](_0x12f9ad),this['_suggestionToController']['has'](_0x12f9ad)&&this['_destroyController'](_0x12f9ad),_0x56e300&&this['_updateController'](_0x56e300['head']);}),this['listenTo'](_0x6c462a,'suggestionChanged',(_0xd73f6c,_0x50dbfb)=>{this['_updateController'](_0x50dbfb);}),this['listenTo'](_0x102a31,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x239350,'addComment',(_0x304fcc,{threadId:_0x190089,isFromAdapter:_0x43b4f6})=>{if(_0x43b4f6||!_0x6c462a['hasSuggestion'](_0x190089))return;const _0x363a78=_0x6c462a['getSuggestion'](_0x190089);this['_suggestionToController']['get'](_0x363a78)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5d94d7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2500db;for(const _0x39926f in _0x5d94d7){const _0x2821b4=_0x39926f,_0x26a039=_0x5d94d7[_0x2821b4];if('trackChangesLicenseKeyValid'==_0x26a039||'trackChangesLicenseKeyInvalid'==_0x26a039||'trackChangesLicenseKeyExpired'==_0x26a039||'trackChangesLicenseKeyDomainLimit'==_0x26a039||'trackChangesLicenseKeyNotAllowed'==_0x26a039||'trackChangesLicenseKeyEvaluationLimit'==_0x26a039||'trackChangesLicenseKeyTrialLimit'==_0x26a039||'trackChangesLicenseKeyUsageLimit'==_0x26a039){delete _0x5d94d7[_0x2821b4],_0x2500db=_0x26a039,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2500db&&_0x5d94d7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2500db&&_0x5d94d7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2500db&&_0x5d94d7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2500db&&_0x5d94d7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2500db&&_0x5d94d7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2500db&&_0x5d94d7['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2500db&&_0x5d94d7['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x49cf4c=this['editor']['plugins']['get']('Annotations'),_0x2df530=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e9261=Array['from'](_0x49cf4c['activeAnnotations'],_0x52ba61=>_0x52ba61['innerView'])['filter'](_0x29fa27=>this['_viewToController']['has'](_0x29fa27)),_0x47baf2=[];for(const _0x3eca5c of _0x1e9261){const _0x39d523=this['_viewToController']['get'](_0x3eca5c)['model']['getAllAdjacentSuggestions']();_0x47baf2['push'](..._0x39d523['reduce']((_0x2ca2a7,_0x438e3f)=>[..._0x2ca2a7,..._0x438e3f['getMarkerNames']()],[]));}_0x2df530['activeMarkers']=_0x47baf2;}['_addUIComponentsToFactory'](){const _0x398ba5=this['editor'],_0x4dce73=_0x398ba5['locale'],_0x3bb5c7=c(_0x4dce73,'Track\x20changes'),_0x1bcbb3=new _0x3f5a9a([{'type':'switchbutton','model':new _0x17032b({'withText':!0x0,'isToggleable':!0x0,'label':_0x3bb5c7,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x17032b({'withText':!0x0,'label':c(_0x4dce73,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x17032b({'withText':!0x0,'label':c(_0x4dce73,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x17032b({'withText':!0x0,'label':c(_0x4dce73,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x17032b({'withText':!0x0,'label':c(_0x4dce73,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x398ba5['plugins']['has']('TrackChangesPreview')&&_0x1bcbb3['addMany']([{'type':'separator'},{'type':'button','model':new _0x17032b({'withText':!0x0,'label':c(_0x4dce73,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x362f7a of _0x1bcbb3)if(ke(_0x362f7a)){const _0x31c313=_0x398ba5['commands']['get'](_0x362f7a['model']['commandName']);_0x362f7a['model']['bind']('isOn','isEnabled')['to'](_0x31c313,'value','isEnabled');}_0x398ba5['ui']['componentFactory']['add']('trackChanges',_0x210dad=>this['_createToolbarButton'](_0x210dad,_0x1bcbb3,_0x3bb5c7)),_0x398ba5['ui']['componentFactory']['add']('menuBar:trackChanges',_0xd45de6=>this['_createMenuBarMenu'](_0xd45de6,_0x1bcbb3,_0x3bb5c7));}['_createToolbarButton'](_0x583531,_0x46f028,_0x192439){const _0x12166f=_0x3da825(_0x583531,_0x3882e7),_0x4625ad=this['editor']['commands']['get']('trackChanges');_0x12166f['buttonView']['set']({'tooltip':_0x192439,'label':_0x192439,'icon':_0x1f04dc}),_0x12166f['buttonView']['bind']('isOn')['to'](_0x4625ad,'value'),_0x12166f['buttonView']['on']('execute',()=>{_0x4625ad['execute'](),this['editor']['editing']['view']['focus']();}),_0xd4c51c(_0x12166f,_0x46f028,{'role':'menu'});const _0x4e2283=[];for(const _0x1aec9a of _0x46f028)ke(_0x1aec9a)&&_0x4e2283['push'](this['editor']['commands']['get'](_0x1aec9a['model']['commandName']));const _0x26eca3=_0x12166f['buttonView'];return _0x26eca3['actionView']['unbind']('isEnabled'),_0x26eca3['arrowView']['unbind']('isEnabled'),_0x26eca3['actionView']['bind']('isEnabled')['to'](_0x4625ad,'isEnabled'),_0x26eca3['arrowView']['bind']('isEnabled')['toMany'](_0x4e2283,'isEnabled',(..._0x79f604)=>_0x79f604['some'](_0x3bb7cd=>_0x3bb7cd)),_0x12166f['on']('execute',_0x104ad5=>{this['editor']['execute'](_0x104ad5['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x12166f;}['_createMenuBarMenu'](_0x449f7a,_0x501016,_0x1eccb1){const _0x242b1c=new _0x4832cb(_0x449f7a),_0x562214=this['editor']['commands']['get']('trackChanges');_0x242b1c['buttonView']['set']({'label':_0x1eccb1,'icon':_0x1f04dc});const _0x4d85ca=new _0x2443b3(_0x449f7a);for(const _0x11fb34 of _0x501016){if('separator'==_0x11fb34['type']){_0x4d85ca['items']['add'](new _0xb29ec1(_0x449f7a));continue;}const _0x848c53=new _0x43c1d9(_0x449f7a,_0x242b1c),_0x29747f=new _0x1dc828(_0x449f7a),_0x1ec78b=_0x11fb34['model'];_0x29747f['bind'](...Object['keys'](_0x1ec78b))['to'](_0x1ec78b),_0x29747f['delegate']('execute')['to'](_0x242b1c),_0x29747f['on']('execute',()=>{this['editor']['execute'](_0x1ec78b['commandName']),this['editor']['editing']['view']['focus']();}),_0x848c53['children']['add'](_0x29747f),_0x4d85ca['items']['add'](_0x848c53);}return _0x242b1c['bind']('isEnabled')['to'](_0x562214,'isEnabled'),_0x242b1c['panelView']['children']['add'](_0x4d85ca),_0x242b1c;}['_initializeController'](_0x14dbd0){const _0x23c11f=this['editor'],_0xd650fa=_0x23c11f['config'],_0x7dfbce=_0x23c11f['plugins']['get']('Annotations'),_0x428c8b=_0x23c11f['plugins']['get']('CommentsRepository'),_0x4054ed=_0x23c11f['plugins']['get']('EditorAnnotations'),_0x16b8a8=_0x23c11f['plugins']['get'](_0x4e4a77)['me'],_0x18061c=_0xd650fa['get']('trackChanges')['SuggestionThreadView'],_0x78b829=_0xd650fa['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3ebab3,CommentThreadInputView:_0x51a0d2}=_0x23c11f['plugins']['get']('CommentsUI');let _0x2d7cbb,_0x38eafb,_0x41d91e;this['_annotationViews']['has'](_0x14dbd0['id'])?(_0x38eafb=this['_annotationViews']['get'](_0x14dbd0['id']),_0x2d7cbb=_0x38eafb['mainView']):(_0x2d7cbb=new _0x18061c(_0x23c11f['locale'],_0x14dbd0,_0x16b8a8,{'disableComments':this['_disableComments'],'editorConfig':{..._0xd650fa['get']('comments.editorConfig'),'licenseKey':_0xd650fa['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xd650fa['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xd650fa['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xd650fa['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x53708d(_0xd650fa['get']('locale'),_0x23c11f['locale']),'CommentView':_0xd650fa['get']('comments')['CommentView'],'CommentsListView':_0x3ebab3,'CommentThreadInputView':_0x51a0d2,'SuggestionView':_0x78b829}),_0x2d7cbb['suggestionView']['acceptButton']['on']('execute',()=>{_0x23c11f['editing']['view']['focus']();}),_0x2d7cbb['suggestionView']['discardButton']['on']('execute',()=>{_0x23c11f['editing']['view']['focus']();}),_0x38eafb=_0x7dfbce['createAnnotationView'](this['editor']['locale'],_0x2d7cbb),_0x38eafb['bind']('isDirty')['to'](_0x2d7cbb,'isDirty'),_0x38eafb['bind']('length')['to'](_0x2d7cbb),_0x38eafb['bind']('type')['to'](_0x2d7cbb,'type',_0x218a74=>'suggestion-'+_0x218a74),_0x2d7cbb['on']('escape',()=>{_0x41d91e['fire']('escape');}),this['_annotationViews']['set'](_0x14dbd0['id'],_0x38eafb));const _0x26d616=_0x428c8b['createCommentThreadController'](_0x14dbd0['commentThread'],_0x2d7cbb),_0x48c04d=new pe(_0x23c11f,_0x14dbd0,_0x2d7cbb,_0x26d616),_0x422d3a=_0x14dbd0['getAllAdjacentSuggestions']()['filter'](_0x53c69b=>_0x53c69b['isInContent']);_0x2d7cbb['descriptionParts']=_0x23c11f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x422d3a),this['_suggestionToController']['set'](_0x14dbd0,_0x48c04d),this['_viewToController']['set'](_0x2d7cbb,_0x48c04d),_0x41d91e=_0x7dfbce['createAnnotation']({'view':_0x38eafb,'target':()=>{const _0x42ff27=[],_0x757e8f=_0x14dbd0['getAllAdjacentSuggestions']()['filter'](_0x188df0=>_0x188df0['isInContent']);for(const _0x24b33a of _0x757e8f)_0x42ff27['push'](..._0x24b33a['getMarkers']());return _0x5129a0(_0x23c11f['editing'],_0x42ff27);},'type':()=>'suggestion-'+_0x48c04d['view']['type']}),_0x428c8b['_bindAnnotationToEditors'](_0x2d7cbb,_0x41d91e),_0x7dfbce['add'](_0x41d91e),_0x4054ed['registerAnnotation'](_0x41d91e);}['_destroyController'](_0x5090d7){const _0xbb66b=this['editor']['plugins']['get']('CommentsRepository'),_0x178436=this['editor']['plugins']['get']('Annotations'),_0x279396=this['_suggestionToController']['get'](_0x5090d7),_0x16386d=_0x279396['view'],_0x3f9091=_0x178436['getByInnerView'](_0x16386d);_0xbb66b['_unbindEditors'](_0x16386d),_0x3f9091&&_0x178436['remove'](_0x3f9091),this['_suggestionToController']['delete'](_0x5090d7),this['_viewToController']['delete'](_0x16386d),_0x279396['destroy']();}['_updateController'](_0x453a0a){if(!_0x453a0a['isInContent']||!this['_suggestionToController']['has'](_0x453a0a))return;const _0x43e191=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ae3e8=this['_suggestionToController']['get'](_0x453a0a),_0x1cd854=_0x453a0a['getAllAdjacentSuggestions']();_0x4ae3e8['view']['descriptionParts']=_0x43e191['descriptionFactory']['getDescriptions'](_0x1cd854);}['destroy'](){for(const _0x4b75e4 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4b75e4);for(const _0xc91c60 of this['_annotationViews']['values']())_0xc91c60['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x42a87c){return'model'in _0x42a87c;}class k extends _0xbcf0e2{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x116244){this['editor']['plugins']['get'](p)['adapter']=_0x116244;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x38de75){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x38de75);}['getSuggestions']({skipNotAttached:_0x37708a=!0x1,toJSON:_0x585bc2=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x37708a,'toJSON':_0x585bc2});}['getSuggestion'](_0x1f2989){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1f2989);}}const w=['Pagination'];class T extends _0xbcf0e2{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4c7e3b=this['editor'];if(_0x4c7e3b['config']['define']('trackChangesData.editorCreator',_0x323266=>{const _0x1e17d8=_0x4c7e3b['model']['document']['getRootNames']()['reduce']((_0x1162ac,_0x5cc574)=>(_0x1162ac[_0x5cc574]='',_0x1162ac),{});return _0x4c7e3b['constructor']['create'](_0x1e17d8,_0x323266);}),'function'!=typeof _0x4c7e3b['config']['get']('trackChangesData')['editorCreator'])throw new _0x4c980e('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x586e4f){return N(this['editor'],!0x0,_0x586e4f);}['getDataWithDiscardedSuggestions'](_0x22f6fa){return N(this['editor'],!0x1,_0x22f6fa);}}class D extends _0xbcf0e2{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9f9034){function _0x31fad8(_0x5e8042){return _0x5e8042['map'](_0x2cbe4f=>String['fromCharCode'](_0x2cbe4f))['join']('');}super(_0x9f9034),this['result']='end',_0x9f9034[_0x31fad8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31fad8([0x76,0x69,0x65,0x77])][_0x31fad8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31fad8([0x61,0x75,0x74,0x6f]),_0x9f9034[_0x31fad8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x31fad8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31fad8([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x31fad8([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x31fad8([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0x206799){return void 0x0!==_0x206799['getRootsAttributes'];}async function N(_0x18bdcc,_0x47bad9,_0x365914){const _0x4c5898=_0x4d7c46(_0x18bdcc,w);_0x4c5898['plugins']['push'](p,D),_0x4c5898['rootsAttributes']=Ge(_0x18bdcc)?_0x18bdcc['getRootsAttributes']():void 0x0;const _0x1f036b=document['createDocumentFragment'](),_0x5cda73=_0x18bdcc['config']['get']('trackChangesData')['editorCreator'],_0x3dab54=await _0x5cda73(_0x4c5898,()=>function(_0x36d124){const _0x582351=document['createElement']('div');return _0x36d124['appendChild'](_0x582351),_0x582351;}(_0x1f036b));!function(_0x2473d9,_0x73fbb9){const _0x2854a6=_0x2473d9['model']['document']['getRootNames']()['reduce']((_0x42bccf,_0x32af31)=>(_0x42bccf[_0x32af31]=_0x2473d9['data']['get']({'rootName':_0x32af31}),_0x42bccf),{}),_0x2ae488=_0x2473d9['plugins']['get']('Users')['users']['map'](_0x37a3ac=>({'id':_0x37a3ac['id'],'name':_0x37a3ac['name']})),_0x5882f8=_0x2473d9['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1bd094=_0x2473d9['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2b25a1=_0x73fbb9['plugins']['get']('Users'),_0x33ff9e=_0x73fbb9['plugins']['get']('TrackChangesEditing'),_0x256841=_0x73fbb9['plugins']['get']('CommentsRepository');for(const _0x18ad5d of _0x256841['getCommentThreads']())_0x18ad5d['remove']();for(const _0xd06c34 of _0x2ae488)_0x2b25a1['getUser'](_0xd06c34['id'])||_0x2b25a1['addUser'](_0xd06c34);_0x2b25a1['me']||_0x2b25a1['useAnonymousUser']();for(const _0x1f4a44 of _0x1bd094)_0x256841['addCommentThread'](_0x1f4a44);for(const _0x13ef59 of _0x5882f8)_0x33ff9e['addSuggestionData'](_0x13ef59);_0x73fbb9['data']['set'](_0x2854a6);}(_0x18bdcc,_0x3dab54),_0x3dab54['execute'](_0x47bad9?'acceptAllSuggestions':'discardAllSuggestions');const _0x1e47dc=Ge(_0x3dab54)?_0x3dab54['getFullData'](_0x365914):_0x3dab54['data']['get'](_0x365914);return await _0x3dab54['destroy'](),_0x1e47dc;}class Me extends _0x2a7dd6{['options'];constructor(_0x20f147,_0x58c3c8){super(_0x20f147),this['options']=_0x58c3c8,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'](_0x28335e,_0x28868e){if(!this['element'])return;const _0x89bbb0=[];for(const [_0x5c97b3,_0x5ba7af]of _0x28335e){const _0x39cae9=document['createElement']('div');_0x39cae9['setAttribute']('data-ck-root-name',_0x5c97b3),_0x39cae9['className']=_0x5ba7af['classes']+'\x20ck-track-changes-preview__root-container',_0x39cae9['innerHTML']=_0x5ba7af['content'],_0x89bbb0['push'](_0x39cae9);}_0x28868e(this['element'],_0x89bbb0),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x4cdfae{constructor(_0x221451){super(_0x221451),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x304d22=this['editor'],_0x334057=_0x304d22['locale'],_0x4beb8e=_0x304d22['plugins']['get']('Dialog');let _0x1f7cb0;const _0x2ae071=function(_0x543dfb){const _0x302ff8={};if('editables'in _0x543dfb['ui']['view']){for(const [_0xe7ce09,_0x43b35a]of Object['entries'](_0x543dfb['ui']['view']['editables']))_0x302ff8[_0xe7ce09]=_0x43b35a['element'];}else _0x302ff8[_0x543dfb['model']['document']['getRootNames']()[0x0]]=_0x543dfb['ui']['view']['editable']['element'];return _0x302ff8;}(_0x304d22),_0x123d3b=function(_0x3a07b5){let _0x21b0a8=0x0;for(const _0x50492c of Object['values'](_0x3a07b5))_0x21b0a8=Math['max'](_0x21b0a8,_0x50492c['getBoundingClientRect']()['width']);let _0x281269=0x0;for(const _0x580a57 of Object['values'](_0x3a07b5))_0x281269+=_0x580a57['getBoundingClientRect']()['height'];const _0x3e9e11=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3ae067=Math['min'](_0x281269,_0x3e9e11);return{'width':_0x21b0a8,'height':_0x3ae067};}(_0x2ae071);_0x4beb8e['show']({'id':'finalContentPreview','title':c(_0x334057,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x334057,{'dialogRects':_0x123d3b}),'onHide':()=>{_0x1f7cb0['detachFromDom']();},'onShow':()=>{_0x304d22['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x588f05=>{const _0x1e7fc8=this['_standarizeRootsData'](_0x588f05,_0x304d22,_0x2ae071);_0x4beb8e['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1e7fc8,_0x304d22['config']['get']('trackChanges.preview.renderFunction'));}),_0x1f7cb0=new _0x214e5f(_0x334057,[_0x4beb8e['view']]),_0x1f7cb0['attachToDom'](),_0x1f7cb0['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x304d22['once']('destroy',()=>{_0x1f7cb0['detachFromDom']();});const _0x46455b=_0x4beb8e['view']['headerView']['class'];_0x4beb8e['view']['headerView']['class']=_0x46455b?_0x46455b+'\x20ck-reset_all':'ck-reset_all',_0x4beb8e['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4beb8e['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x359b96=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xffff44=_0x359b96['previewMode'],_0x81e823={};if('$labels'===_0xffff44){for(const _0x46622c of _0x359b96['getMergeFieldsIds']())_0x81e823[_0x46622c]=_0x359b96['getLabel'](_0x46622c)||_0x46622c;}else{const _0x33c8f0='$defaultValues'===_0xffff44?_0x359b96['getDefaultValues']():_0x359b96['getDataSetValues'](_0xffff44,!0x0);for(const _0x1ddf96 of Object['entries'](_0x33c8f0)){const [_0x173258,_0x23f118]=_0x1ddf96;_0x81e823[_0x173258]=null!==_0x23f118?_0x23f118:_0x359b96['getLabel'](_0x173258)||_0x173258;}}return{'mergeFieldsData':_0x81e823};}['_standarizeRootsData'](_0x2830c7,_0x3a57ac,_0x5adbbe){let _0x2a3344;if('string'==typeof _0x2830c7){const _0x839c2b=_0x3a57ac['model']['document']['getRootNames']()[0x0];_0x2a3344={[_0x839c2b]:_0x2830c7};}else _0x2a3344=_0x2830c7;const _0x5e72e4=this['_fixMediaEmbeds'](_0x2a3344,_0x3a57ac),_0x9fec2b=function(_0x45f176,_0x1b7bf7){for(const [_0x299a44,_0x456901]of _0x45f176)_0x456901['classes']=_0x1b7bf7[_0x299a44]['classList']['value']['replace']('ck-focused','');return _0x45f176;}(this['_sortRoots'](_0x3a57ac)['reduce']((_0x57422a,_0x224b57)=>(_0x57422a['push']([_0x224b57,{'content':_0x5e72e4[_0x224b57],'classes':''}]),_0x57422a),[]),_0x5adbbe);return _0x9fec2b;}['_fixMediaEmbeds'](_0x3f9987,_0x329b53){if(!_0x329b53['plugins']['has']('MediaEmbedEditing'))return _0x3f9987;const _0xdeac5f=_0x329b53['plugins']['get']('MediaEmbedEditing');for(const [_0x1ba4ad,_0x1026f4]of Object['entries'](_0x3f9987)){const _0x8339e7=document['createElement']('div');_0x8339e7['innerHTML']=_0x1026f4,(_0x8339e7['querySelectorAll']('figure.media')['forEach'](_0x3bda79=>{const _0x22d1e5=_0x3bda79['querySelector']('oembed');if(_0x22d1e5){const _0x269c79=_0x22d1e5['getAttribute']('url');if(_0x269c79){const _0x178434=_0xdeac5f['registry']['getMediaViewElement'](new _0x3fb753(_0x329b53['editing']['view']['document']),_0x269c79,{'elementName':'','renderForEditingView':!0x0}),_0xd00a7b=document['createElement']('div');_0xd00a7b['classList']['add']('ck-media__wrapper'),_0x178434['render'](_0xd00a7b,_0x329b53['editing']['view']['domConverter']),_0x22d1e5['replaceWith'](_0xd00a7b);}}}),_0x3f9987[_0x1ba4ad]=_0x8339e7['innerHTML']);}return _0x3f9987;}['_sortRoots'](_0x10dff4){if(!function(_0x43e157){return void 0x0!==_0x43e157['getRootsAttributes'];}(_0x10dff4))return _0x10dff4['model']['document']['getRootNames']();const _0x36ae77=[],_0x1c5c65=new Map();for(const _0x526c0f of _0x10dff4['model']['document']['getRootNames']()){const _0x5ba2e1=_0x10dff4['editing']['view']['getDomRoot'](_0x526c0f)['getClientRects']()['item'](0x0);_0x36ae77['push'](_0x526c0f),_0x1c5c65['set'](_0x526c0f,_0x5ba2e1);}return _0x36ae77['sort']((_0x26614a,_0x516d9c)=>{const _0x493f50=_0x1c5c65['get'](_0x26614a),_0x46d68c=_0x1c5c65['get'](_0x516d9c);return _0x493f50['y']-_0x46d68c['y']||_0x493f50['x']-_0x46d68c['x'];}),_0x36ae77;}}class te extends _0xbcf0e2{static get['requires'](){return[T,_0x43a326];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1fe941){super(_0x1fe941),_0x1fe941['commands']['add']('previewFinalContent',new re(this['editor'])),_0x1fe941['config']['define']('trackChanges.preview.renderFunction',(_0x565aa2,_0x180d3b)=>{for(const _0x5d8f1c of _0x180d3b)_0x565aa2['appendChild'](_0x5d8f1c);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|