@ckeditor/ckeditor5-track-changes 48.5.0-alpha.2 → 48.5.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/package.json +25 -25
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0xe77ac2();var St=class Suggestion extends Nt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x226800,_0x742c2f){super(),this['id']=_0x742c2f['id'],this['type']=_0x742c2f['type'],this['subType']=_0x742c2f['subType']||null,this['author']=_0x742c2f['author'],this['creator']=_0x742c2f['creator']||_0x742c2f['author'],this['data']=null,this['_originalSuggestionId']=_0x742c2f['originalSuggestionId']||null,this['_model']=_0x226800,this['_onAccept']=_0x742c2f['onAccept'],this['_onDiscard']=_0x742c2f['onDiscard'],this['_onAttributesChange']=_0x742c2f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x742c2f['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x137e66=this;for(;_0x137e66['previous'];)_0x137e66=_0x137e66['previous'];return _0x137e66;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x100c27){this['_markerNames']['add'](_0x100c27);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x1ae006=>this['_model']['markers']['get'](_0x1ae006))['filter'](_0x589ac6=>_0x589ac6);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x6aa052=>{for(const _0x5a697a of this['getMarkers']())_0x6aa052['removeMarker'](_0x5a697a);}),this['_markerNames']['clear']();}['removeMarker'](_0x3b4a36){this['_model']['change'](_0x58a7e6=>{_0x58a7e6['removeMarker'](_0x3b4a36);}),this['_markerNames']['delete'](_0x3b4a36);}['addRange'](_0x2935cb){const _0x363302='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x363302),this['_model']['change'](_0x1f7803=>{_0x1f7803['addMarker'](_0x363302,{'range':_0x2935cb,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x487b07){for(const _0x15ecd1 of this['getRanges']())if(_0x15ecd1['isIntersecting'](_0x487b07))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x3f67e8=>_0x3f67e8['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x561c07,_0x9c9084)=>[..._0x561c07,..._0x9c9084['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0xd8ac09=this['getRanges']();if(0x1!=_0xd8ac09['length'])return null;const _0x4b222f=_0xd8ac09[0x0],_0x1cd3e0=_0x4b222f['start']['nodeAfter'],_0x5b09ff=_0x4b222f['end']['nodeBefore'];return _0x1cd3e0 instanceof it?_0x1cd3e0!=_0x5b09ff?null:_0x1cd3e0: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 _0xf588ed=[];let _0x4feb40=this['head'];for(;_0x4feb40;)_0xf588ed['push'](_0x4feb40),_0x4feb40=_0x4feb40['next'];return _0xf588ed;}setAttribute(_0xf983b1,_0x2e7f34){const _0x22da3a=at(this['attributes']);ut(_0x22da3a,_0xf983b1,_0x2e7f34),ct(_0x22da3a,this['attributes'])||(this['attributes']=_0x22da3a,this['_onAttributesChange'](_0x22da3a));}removeAttribute(_0x8ceff0){const _0x5bbcc3=at(this['attributes']);dt(_0x5bbcc3,_0x8ceff0),ct(_0x5bbcc3,this['attributes'])||(this['attributes']=_0x5bbcc3,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 _0x3a663f()['substr'](0x1,0x5);}};function Mt(_0x32f4b0,_0x36b440,_0x1adc29){const _0x1fafd0=_0x32f4b0['t'],t=_0x32f4b0['t'];switch(_0x36b440){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',_0x1adc29);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1adc29);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1adc29);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1adc29);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1adc29);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',_0x1adc29);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1adc29);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',_0x1adc29);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1adc29);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1adc29);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1adc29);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1adc29);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1adc29);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1adc29);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1adc29);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1adc29);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1adc29);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1adc29);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1adc29);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1adc29);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1adc29);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1adc29);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1adc29);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1adc29);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1adc29);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'},_0x1adc29);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1adc29);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1adc29);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1adc29);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1adc29);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1adc29);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1adc29);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1adc29);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x1adc29);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});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'},_0x1adc29);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1adc29);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1adc29);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1adc29);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1adc29);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x1adc29);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1adc29);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'},_0x1adc29);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_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_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x1adc29);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1adc29);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'},_0x1adc29);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1adc29);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'},_0x1adc29);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1adc29);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x1adc29);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x1adc29);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x1adc29);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1adc29);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'},_0x1adc29);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1adc29);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'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x1fafd0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1adc29);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1fafd0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1adc29);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1adc29);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'},_0x1adc29);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'},_0x1adc29);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'},_0x1adc29);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x36b440;}}var Ot=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0xb21430,_0x17845d){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xb21430,this['_locale']=_0x17845d;}getDescriptions(_0x4239a9){const _0x6bccd7=[],_0x40c4c3=new Set(),_0x54456f=new Set();for(let _0x5a3307=0x0;_0x5a3307<_0x4239a9['length'];_0x5a3307++){const _0x397132=_0x4239a9[_0x5a3307];if(!_0x397132['isInContent'])continue;const _0x4e985a=this['_handleCustomCallbackDescription'](_0x397132);if(_0x4e985a){if(null!=_0x397132['subType']){if(_0x40c4c3['has'](_0x397132['subType']))continue;_0x40c4c3['add'](_0x397132['subType']);}_0x6bccd7['push'](_0x4e985a);}else{if('attribute'==_0x397132['type']){const _0x1fb306=_0x397132['data']['key'];if(_0x54456f['has'](_0x1fb306))continue;_0x54456f['add'](_0x397132['data']['key']),'$elementName'==_0x1fb306?this['_handleRenameSuggestionDescription'](_0x6bccd7,_0x397132):this['_handleAttributeSuggestionDescription'](_0x6bccd7,_0x397132);continue;}'insertion'!=_0x397132['type']&&'deletion'!=_0x397132['type']||this['_handleInsertRemoveSuggestionDescription'](_0x6bccd7,_0x397132,_0x4239a9[_0x5a3307+0x1]);}}return this['_resolveDescriptionItems'](_0x6bccd7);}registerDescriptionCallback(_0x2181a8){this['_customCallbacks']['push'](_0x2181a8);}registerElementLabel(_0x49bd14,_0x65694a,_0x2113ea=_0x224aaf['normal']){'function'==typeof _0x49bd14?_0x2cb8a3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x49bd14,'label':_0x65694a,'priority':_0x2113ea}):this['_itemLabels']['set'](_0x49bd14,_0x65694a);}registerAttributeLabel(_0x5e0f96,_0xdf0170){this['_attributeLabels']['set'](_0x5e0f96,_0xdf0170);}getItemLabel(_0x4e856c,_0x1a07dd=0x1){let _0x582e7a;for(const _0x39c9c6 of this['_itemLabelsCallbacks'])if(_0x39c9c6['matchingCallback'](_0x4e856c)){_0x582e7a=_0x39c9c6['label'];break;}return _0x582e7a||(_0x582e7a=this['_itemLabels']['get'](_0x4e856c['name'])),_0x582e7a?_0x582e7a(_0x1a07dd):0x1!==_0x1a07dd?_0x1a07dd+'\x20'+_0x4e856c['name']+'s':''+_0x4e856c['name'];}_addDescriptionItems(_0x32976a,_0x319da4){const _0x1b0cb4=_0x319da4['getFirstRange']()['getWalker'](),_0x47a5fe='insertion'==_0x319da4['type']?'add':'remove';for(const _0x426584 of _0x1b0cb4){const _0x20c42f=_0x426584['item'],_0x3c8354=_0x32976a[_0x32976a['length']-0x1];if(_0x20c42f['is']('$textProxy'))_0x3c8354&&_0x3c8354['type']['indexOf']('Container')>-0x1&&_0x32976a['pop'](),_0x3c8354&&'text'==_0x3c8354['type']?_0x3c8354[_0x47a5fe]+=_0x20c42f['data']:_0x32976a['push']({'type':'text','add':'add'==_0x47a5fe?_0x20c42f['data']:'','remove':'remove'==_0x47a5fe?_0x20c42f['data']:''});else{if(this['_schema']['isObject'](_0x20c42f)){const _0x2a1065=_0x20c42f;if(_0x3c8354&&_0x3c8354['type']['indexOf']('Container')>-0x1&&_0x32976a['pop'](),'elementEnd'==_0x426584['type'])continue;_0x3c8354&&_0x3c8354['type']==_0x47a5fe+'Object'&&_0x3c8354['element']['name']==_0x2a1065['name']?_0x3c8354['quantity']++:_0x32976a['push']({'type':_0x47a5fe+'Object','element':_0x2a1065,'quantity':0x1}),_0x1b0cb4['skip'](_0x19a0a4=>!('elementEnd'==_0x19a0a4['type']&&_0x19a0a4['item']==_0x20c42f));}else{if(this['_schema']['checkChild'](_0x20c42f,'$text')||_0x20c42f['is']('element','softBreak')){const _0x12d476=_0x20c42f;if('add'==_0x47a5fe&&'elementStart'==_0x426584['type']||'remove'==_0x47a5fe&&'elementEnd'==_0x426584['type'])continue;if(_0x3c8354&&-0x1==_0x3c8354['type']['indexOf']('Container')){'text'==_0x3c8354['type']&&(_0x3c8354[_0x47a5fe]+='\x0a');continue;}let _0x4b2be2;if(_0x4b2be2='add'==_0x47a5fe?_0x12d476['nextSibling']&&!this['_schema']['isObject'](_0x12d476['nextSibling'])?_0x12d476['nextSibling']:null:_0x12d476['previousSibling']&&!this['_schema']['isObject'](_0x12d476['previousSibling'])?_0x12d476['previousSibling']:null,_0x12d476['isEmpty']||_0x4b2be2&&_0x4b2be2['isEmpty']){const _0x3130c9=_0x4b2be2&&_0x4b2be2['isEmpty']?_0x4b2be2:_0x12d476;_0x3c8354&&_0x3c8354['type']==_0x47a5fe+'EmptyContainer'&&_0x3c8354['element']['name']==_0x3130c9['name']?_0x3c8354['quantity']++:_0x32976a['push']({'type':_0x47a5fe+'EmptyContainer','element':_0x3130c9,'quantity':0x1});}else _0x32976a['push']({'type':_0x47a5fe+'Container','element':_0x12d476});}}}}}_resolveDescriptionItems(_0xea60db){const _0x16b49f=this['_locale'],_0x2ac118=[],_0x5b2c84=[],_0x59db8f=[];for(const _0x60600d of _0xea60db)switch(_0x60600d['type']){case'text':if(_0x60600d['add']=_0x60600d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x60600d['remove']=_0x60600d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x60600d['add']&&''!=_0x60600d['remove']){_0x2ac118['push']({'type':'replace','content':Mt(_0x16b49f,'REPLACE_TEXT',['\x22'+_0x60600d['remove']+'\x22','\x22'+_0x60600d['add']+'\x22'])});continue;}if(null!=_0x60600d['add']['match'](/^ +$/)){_0x2ac118['push']({'type':'insertion','content':Mt(_0x16b49f,'*Insert:*\x20%0',Mt(_0x16b49f,'ELEMENT_SPACE',_0x60600d['add']['length']))});continue;}if(null!=_0x60600d['remove']['match'](/^ +$/)){_0x2ac118['push']({'type':'deletion','content':Mt(_0x16b49f,'*Remove:*\x20%0',Mt(_0x16b49f,'ELEMENT_SPACE',_0x60600d['remove']['length']))});continue;}if(''!=_0x60600d['add']){_0x2ac118['push']({'type':'insertion','content':Mt(_0x16b49f,'*Insert:*\x20%0','\x22'+_0x60600d['add']+'\x22')});continue;}_0x2ac118['push']({'type':'deletion','content':Mt(_0x16b49f,'*Remove:*\x20%0','\x22'+_0x60600d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2ac118['push']({'type':'insertion','content':Mt(_0x16b49f,'*Insert:*\x20%0',this['getItemLabel'](_0x60600d['element'],_0x60600d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2ac118['push']({'type':'deletion','content':Mt(_0x16b49f,'*Remove:*\x20%0',this['getItemLabel'](_0x60600d['element'],_0x60600d['quantity']))});continue;case'addContainer':_0x2ac118['push']({'type':'insertion','content':Mt(_0x16b49f,'*Split:*\x20%0',this['getItemLabel'](_0x60600d['element'],_0x60600d['quantity']))});continue;case'removeContainer':_0x2ac118['push']({'type':'deletion','content':Mt(_0x16b49f,'*Merge:*\x20%0',this['getItemLabel'](_0x60600d['element'],_0x60600d['quantity']))});continue;case'addFormat':_0x5b2c84['push'](_0x60600d['key']);continue;case'removeFormat':_0x59db8f['push'](_0x60600d['key']);continue;default:_0x2ac118['push'](_0x60600d);}if(_0x5b2c84['length']){const _0x16555e=_0x5b2c84['map'](_0x1b1a5d=>this['_attributeLabels']['has'](_0x1b1a5d)?this['_attributeLabels']['get'](_0x1b1a5d):_0x1b1a5d)['join'](',\x20');_0x2ac118['push']({'type':'format','content':Mt(this['_locale'],'*Set\x20format:*\x20%0',_0x16555e)});}if(_0x59db8f['length']){const _0x11904b=_0x59db8f['map'](_0x3f7222=>this['_attributeLabels']['has'](_0x3f7222)?this['_attributeLabels']['get'](_0x3f7222):_0x3f7222)['join'](',\x20');_0x2ac118['push']({'type':'format','content':Mt(this['_locale'],'*Remove\x20format:*\x20%0',_0x11904b)});}return _0x2ac118;}_handleCustomCallbackDescription(_0x2a139c){for(const _0x2e76ea of this['_customCallbacks']){const _0x364105=_0x2e76ea(_0x2a139c);if(_0x364105&&'type'in _0x364105)return _0x364105;}}_handleAttributeSuggestionDescription(_0x170383,_0x3a8bc5){const _0x2ab989=_0x3a8bc5['data'],_0x90a7fa=void 0x0===_0x2ab989['newValue']?'removeFormat':'addFormat';_0x170383['push']({'type':_0x90a7fa,'key':_0x2ab989['key']});}_handleRenameSuggestionDescription(_0x284ec8,_0x243cc7){_0x284ec8['push']({'type':'format','content':Mt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x243cc7['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0xa1866a,_0x13e3ad,_0x979714){if(this['_addDescriptionItems'](_0xa1866a,_0x13e3ad),_0x979714&&_0x979714['getFirstRange']()&&!_0x13e3ad['getFirstRange']()['end']['isEqual'](_0x979714['getFirstRange']()['start'])){const _0x43fc38=_0xa1866a[_0xa1866a['length']-0x1],_0x4b92f6='insertion'==_0x13e3ad['type']?'add':'remove';_0x43fc38&&'text'==_0x43fc38['type']&&(_0x43fc38[_0x4b92f6]+='\x0a');}}},wt=class extends _0x26ff96{afterInit(){const _0x102376=this['editor'],_0x1a3b41=_0x102376['plugins']['get']('TrackChangesEditing');_0x102376['commands']['get']('showAIAssistant')&&_0x1a3b41['enableCommand']('showAIAssistant');}},Ft=class extends _0x26ff96{afterInit(){const _0x11b605=this['editor'],_0x2b358c=_0x11b605['plugins']['get']('TrackChangesEditing');_0x11b605['commands']['get']('toggleAi')&&_0x2b358c['enableCommand']('toggleAi');}},Bt=class extends _0x26ff96{afterInit(){const _0x16235a=this['editor'],_0x4bfac9=_0x16235a['plugins']['get']('TrackChangesEditing');_0x16235a['commands']['get']('aiQuickAction')&&_0x4bfac9['enableCommand']('aiQuickAction');}},vt=class extends _0x26ff96{afterInit(){const _0x9b08e8=this['editor'],_0x2ba1c6=_0x9b08e8['locale'];if(!_0x9b08e8['plugins']['has']('AlignmentEditing'))return;const _0xc6f5a4=_0x9b08e8['plugins']['get']('TrackChangesEditing');_0xc6f5a4['enableDefaultAttributesIntegration']('alignment'),_0xc6f5a4['descriptionFactory']['registerAttributeLabel']('alignment',Mt(_0x2ba1c6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x418faf=this['editor'],_0x824b47=_0x418faf['locale'];_0x418faf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d1f0e=>{if('formatBlock'!=_0x5d1f0e['type'])return;const {data:_0x43c149}=_0x5d1f0e;if(_0x43c149&&'alignment'==_0x43c149['commandName']){const _0x508d15=_0x43c149['commandParams'][0x0]['value'];return{'type':'format','content':Mt(_0x824b47,'*Format:*\x20%0',function(_0x4c9061){switch(_0x4c9061){case'left':return Mt(_0x824b47,'FORMAT_ALIGN_TO_LEFT');case'right':return Mt(_0x824b47,'FORMAT_ALIGN_TO_RIGHT');case'center':return Mt(_0x824b47,'FORMAT_ALIGN_TO_CENTER');case'justify':return Mt(_0x824b47,'FORMAT_JUSTIFY_TEXT');}}(_0x508d15))};}});}};const Dt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Ut=class extends _0x26ff96{afterInit(){const _0x41fd4f=this['editor'],_0x1147ef=_0x41fd4f['plugins']['get']('TrackChangesEditing'),_0x44199c=_0x41fd4f['locale'];for(const _0x440cde of Dt){if(!_0x41fd4f['plugins']['has'](_0x440cde))continue;const _0x5d7992=_0x440cde['slice'](0x0,-0x7)['toLowerCase'](),_0x2e16ae='FORMAT_'+_0x5d7992['toUpperCase']();_0x1147ef['enableDefaultAttributesIntegration'](_0x5d7992),_0x1147ef['descriptionFactory']['registerAttributeLabel'](_0x5d7992,Mt(_0x44199c,_0x2e16ae));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x272864=this['editor'],_0x13c706=_0x272864['locale'],_0x17916e=_0x272864['plugins']['get']('TrackChangesEditing');function _0x2f9323(_0x4efd53,_0x2117ac){_0x17916e['descriptionFactory']['registerDescriptionCallback'](_0x306dcf=>{if('formatInline'!=_0x306dcf['type'])return;const {data:_0x368e57}=_0x306dcf;return _0x368e57&&_0x368e57['commandName']===_0x4efd53?_0x368e57['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x13c706,'*Format:*\x20%0',_0x2117ac)}:{'type':'format','content':Mt(_0x13c706,'*Remove\x20format:*\x20%0',_0x2117ac)}:void 0x0;});}_0x2f9323('bold',Mt(_0x13c706,'FORMAT_BOLD')),_0x2f9323('italic',Mt(_0x13c706,'FORMAT_ITALIC')),_0x2f9323('underline',Mt(_0x13c706,'FORMAT_UNDERLINE')),_0x2f9323('code',Mt(_0x13c706,'FORMAT_CODE')),_0x2f9323('strikethrough',Mt(_0x13c706,'FORMAT_STRIKETHROUGH')),_0x2f9323('subscript',Mt(_0x13c706,'FORMAT_SUBSCRIPT')),_0x2f9323('superscript',Mt(_0x13c706,'FORMAT_SUPERSCRIPT'));}},Pt=class extends _0x26ff96{afterInit(){const _0x138066=this['editor'],_0x58d20b=_0x138066['locale'];if(!_0x138066['plugins']['has']('BlockQuoteEditing'))return;const _0x23ad9f=_0x138066['plugins']['get']('TrackChangesEditing'),_0x56b2c8=this['editor']['commands']['get']('blockQuote');_0x23ad9f['enableCommand']('blockQuote',(_0x143c3b,_0x19898a={})=>{const _0x2c2866=this['editor']['model']['document']['selection'],_0x4b48ab=_0x19898a&&void 0x0!==_0x19898a['forceValue']?_0x19898a['forceValue']:!_0x56b2c8['value'];let _0x4bf2e0=[];if(_0x4b48ab){const _0x30d517=Array['from'](_0x2c2866['getSelectedBlocks']())['filter'](_0x182f44=>xt(_0x182f44)||function(_0x40ebe8,_0x57004e){const _0x3a11c7=_0x57004e['createContext'](_0x40ebe8['parent']);return!!_0x57004e['checkChild'](_0x3a11c7,'blockQuote')&&!!_0x57004e['checkChild'](_0x3a11c7['push']('blockQuote'),_0x40ebe8);}(_0x182f44,this['editor']['model']['schema']));_0x4bf2e0=bt(_0x30d517,_0x138066['model']);}else{const _0x426825=Array['from'](_0x2c2866['getSelectedBlocks']())['filter'](_0x5aecc5=>xt(_0x5aecc5));_0x4bf2e0=bt(_0x426825,_0x138066['model']);}_0x138066['model']['change'](()=>{for(const _0xbf1450 of _0x4bf2e0)_0x23ad9f['markBlockFormat'](_0xbf1450,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4b48ab}]});});}),_0x23ad9f['descriptionFactory']['registerDescriptionCallback'](_0x2c55d7=>{const {data:_0xf2460c}=_0x2c55d7;if(_0xf2460c&&'blockQuote'==_0xf2460c['commandName']){const _0x4087bf=Mt(_0x58d20b,'ELEMENT_BLOCK_QUOTE');return _0xf2460c['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x58d20b,'*Set\x20format:*\x20%0',_0x4087bf)}:{'type':'format','content':Mt(_0x58d20b,'*Remove\x20format:*\x20%0',_0x4087bf)};}});}};function xt(_0x3c9e7b){return'blockQuote'==_0x3c9e7b['parent']['name'];}var Gt=class extends _0x26ff96{afterInit(){const _0x5498c2=this['editor'],_0x24fff3=_0x5498c2['locale'],_0x8057bc=_0x5498c2['plugins']['get']('TrackChangesEditing');_0x5498c2['plugins']['has']('BookmarkEditing')&&(_0x8057bc['enableCommand']('insertBookmark'),_0x8057bc['enableDefaultAttributesIntegration']('updateBookmark'),_0x8057bc['descriptionFactory']['registerDescriptionCallback'](_0x4681d6=>{if('insertion'!=_0x4681d6['type']&&'deletion'!=_0x4681d6['type']&&'attribute'!=_0x4681d6['type'])return;const _0x46dd1c=_0x4681d6['getContainedElement']();if(null==_0x46dd1c)return;if(!_0x46dd1c['is']('element','bookmark'))return;const _0x1b07fb=_0x46dd1c['getAttribute']('bookmarkId');if('insertion'==_0x4681d6['type'])return{'type':'insertion','content':Mt(_0x24fff3,'*Insert:*\x20%0','\x22'+_0x1b07fb+'\x22\x20'+Mt(_0x24fff3,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4681d6['type'])return{'type':'deletion','content':Mt(_0x24fff3,'*Remove:*\x20%0','\x22'+_0x1b07fb+'\x22\x20'+Mt(_0x24fff3,'ELEMENT_BOOKMARK'))};const {data:_0x192a54}=_0x4681d6;return _0x192a54&&'bookmarkId'==_0x192a54['key']?{'type':'format','content':Mt(_0x24fff3,'*Set\x20bookmark:*\x20%0','\x22'+_0x192a54['newValue']+'\x22')}:void 0x0;}));}},Ht=class extends _0x26ff96{afterInit(){const _0x530856=this['editor'];_0x530856['plugins']['has']('CaseChange')&&(_0x530856['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x530856['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x530856['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},$t=class extends _0x26ff96{afterInit(){const _0x1786cf=this['editor'];_0x1786cf['commands']['get']('ckbox')&&_0x1786cf['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Wt=class extends _0x26ff96{static get requires(){return[ht,gt];}constructor(_0x5363e9){super(_0x5363e9),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0xedc469=this['editor'],_0x530a67=_0xedc469['plugins']['get']('ClipboardMarkersUtils'),_0x10391b=_0xedc469['plugins']['get'](gt);_0x530a67['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x10391b['on']('outputTransformation',(_0x5770ea,_0xa04785)=>{const _0x1c01e2=this['_getSuggestionEntries'](_0xa04785);for(const [_0x4cde9f,_0x19fda8]of _0xa04785['content']['markers']){const _0x2b4890=rt['_fromRangeInDocumentFragment'](_0x19fda8,_0xedc469['model']);function _0x15faee(){_0x2b4890['detach'](),_0xa04785['content']['markers']['delete'](_0x4cde9f);}_0x2b4890['on']('change:drop',_0x15faee),(_0x4cde9f['startsWith']('suggestion:')||_0x4cde9f['startsWith']('comment:'))&&_0x2b4890['on']('change:range',()=>{_0x2b4890['isCollapsed']&&_0x15faee();}),_0xa04785['content']['markers']['set'](_0x4cde9f,_0x2b4890);}const _0x1d01a0=_0x1c01e2['filter'](_0x2dfd72=>'deletion'===_0x2dfd72['meta']['type'])['map'](_0x440d4e=>_0x440d4e['modelRange']);if(this['_shouldSkipDeletions'](_0x1d01a0,_0xa04785['content']))return[..._0x1c01e2]['forEach'](_0x18990b=>{_0xa04785['content']['markers']['get'](_0x18990b['markerName'])['detach'](),_0xa04785['content']['markers']['delete'](_0x18990b['markerName']);}),void this['_restoreRegularRanges'](_0xa04785['content']['markers']);[..._0x1c01e2]['forEach'](_0x805a23=>{const _0x12ce33=_0xedc469['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x805a23['meta']['type'],_0x805a23['meta']['subType'],'accept'),{markerName:_0x600fab,meta:_0x472fa5}=_0x805a23;if(_0xa04785['content']['markers']['has'](_0x600fab)){switch(_0x472fa5['type']){case'deletion':if('tableRow'===_0x472fa5['subType']||'tableColumn'===_0x472fa5['subType']){if(!_0xedc469['plugins']['has']('TableUtils'))break;const _0x4c168b=_0xedc469['plugins']['get']('TableUtils'),_0x2ff568=_0x4c168b['getSelectionAffectedTableCells'](_0xedc469['model']['createSelection'](_0xa04785['content']['markers']['get'](_0x600fab))),_0x36c51f=_0x2ff568[0x0]['findAncestor']('table');if('tableRow'===_0x472fa5['subType']){const {first:_0x2b9fba,last:_0x5dbd7b}=_0x4c168b['getRowIndexes'](_0x2ff568);_0x4c168b['removeRows'](_0x36c51f,{'at':_0x2b9fba,'rows':_0x5dbd7b-_0x2b9fba+0x1});}else{const {first:_0x2dc5df,last:_0x293cec}=_0x4c168b['getColumnIndexes'](_0x2ff568);_0x4c168b['removeColumns'](_0x36c51f,{'at':_0x2dc5df,'columns':_0x293cec-_0x2dc5df+0x1});}break;}_0x12ce33([_0xa04785['content']['markers']['get'](_0x600fab)]);}_0xa04785['content']['markers']['has'](_0x600fab)&&(_0xa04785['content']['markers']['get'](_0x600fab)['detach'](),_0xa04785['content']['markers']['delete'](_0x600fab));}}),this['_restoreRegularRanges'](_0xa04785['content']['markers']);});}_getSuggestionEntries(_0x1bb9fc){const _0x479694=_0x1df0e0=>'dragstart'===_0x1bb9fc['method']?_0x1df0e0['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x1df0e0;return Array['from'](_0x1bb9fc['content']['markers'])['map'](([_0x3ce529,_0x386ada])=>({'markerName':_0x3ce529,'modelRange':_0x386ada,'meta':tt(_0x479694(_0x3ce529))}))['filter'](({meta:_0x531aa5})=>'suggestion'===_0x531aa5['group']);}_shouldSkipDeletions(_0x43a96c,_0x50652d){if(!_0x43a96c['length'])return!0x1;let _0x4c1b92=[this['editor']['model']['createRangeIn'](_0x50652d)];for(const _0x3ec3eb of _0x43a96c)_0x4c1b92=_0x4c1b92['flatMap'](_0x44efc0=>_0x44efc0['getDifference'](_0x3ec3eb));return!_0x4c1b92['some'](_0x5aa947=>this['editor']['model']['hasContent'](_0x5aa947,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0xef9839){[..._0xef9839['keys']()]['forEach'](_0x28baba=>{const _0xf5922f=_0xef9839['get'](_0x28baba);_0xf5922f['detach'](),_0xef9839['set'](_0x28baba,_0xf5922f['toRange']());});}},Vt=class extends _0x26ff96{afterInit(){const _0x297829=this['editor'];if(!_0x297829['plugins']['has']('CodeBlock'))return;const _0x330b7a=_0x297829['plugins']['get']('TrackChangesEditing'),_0x3023d9=_0x297829['locale'],_0x28fba8=_0x297829['config']['get']('codeBlock')['languages'],_0x9afd99=_0x297829['commands']['get']('codeBlock');_0x330b7a['enableCommand']('indentCodeBlock'),_0x330b7a['enableCommand']('outdentCodeBlock'),_0x330b7a['enableCommand']('codeBlock',(_0x4bfafc,_0x2227f1={})=>{const _0x5bc863=_0x297829['model'],_0x489a15=_0x297829['model']['document']['selection'],_0x2ba2c3=_0x2227f1&&void 0x0!==_0x2227f1['forceValue']?_0x2227f1['forceValue']:!_0x9afd99['value'];let _0x2db0e0;_0x2227f1['language']||(_0x2227f1['language']=_0x28fba8[0x0]['language']),_0x2db0e0=_0x2ba2c3?Array['from'](_0x489a15['getSelectedBlocks']())['filter'](_0x275e84=>{return jt(_0x275e84)||(_0x199652=_0x275e84,_0xfb86eb=_0x5bc863['schema'],!_0x199652['is']('rootElement')&&!_0xfb86eb['isLimit'](_0x199652)&&_0xfb86eb['checkChild'](_0x199652['parent'],'codeBlock'));var _0x199652,_0xfb86eb;}):Array['from'](_0x489a15['getSelectedBlocks']())['filter'](_0x5ec944=>jt(_0x5ec944));const _0x25def6=bt(_0x2db0e0,_0x5bc863);_0x5bc863['change'](()=>{for(const _0x1c5bb9 of _0x25def6)_0x330b7a['markBlockFormat'](_0x1c5bb9,{'commandName':'codeBlock','commandParams':[{..._0x2227f1,'forceValue':_0x2ba2c3}],'formatGroupId':'blockName'});});}),(_0x330b7a['descriptionFactory']['registerElementLabel']('codeBlock',_0x5d8086=>Mt(_0x3023d9,'ELEMENT_CODE_BLOCK',_0x5d8086)),_0x330b7a['descriptionFactory']['registerDescriptionCallback'](_0x1c9e2a=>{if('formatBlock'!=_0x1c9e2a['type'])return;const _0x545c93=_0x3023d9['t'],{data:_0x15a171}=_0x1c9e2a;if(!_0x15a171||'codeBlock'!=_0x15a171['commandName'])return;const _0x417358=_0x15a171['commandParams'][0x0]['language'],_0x38501c=_0x545c93(_0x28fba8['find'](_0x598772=>_0x598772['language']===_0x417358)['label'])['toLowerCase']();return _0x15a171['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x3023d9,'*Set\x20format:*\x20%0',Mt(_0x3023d9,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x38501c+')')}:{'type':'format','content':Mt(_0x3023d9,'*Remove\x20format:*\x20%0',Mt(_0x3023d9,'ELEMENT_CODE_BLOCK',0x1))};}));}};function jt(_0x108a0d){return'codeBlock'==_0x108a0d['name'];}var zt=class extends _0x26ff96{afterInit(){const _0xbf06a5=this['editor'];_0xbf06a5['plugins']['has']('CommentsEditing')&&_0xbf06a5['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Kt=class extends _0x26ff96{static get requires(){return[ft];}init(){const _0x4e89c6=this['editor'],_0x4c8531=_0x4e89c6['plugins']['get']('TrackChangesEditing');_0x4c8531['enableCommand']('delete');const _0x1874b4=_0x4e89c6['commands']['get']('deleteForward');_0x4c8531['enableCommand']('deleteForward',(_0x38286d,_0x264155={})=>{const _0x40fafb=_0x4e89c6['model']['createSelection'](_0x4e89c6['model']['document']['selection']);_0x40fafb['isCollapsed']&&_0x4e89c6['model']['modifySelection'](_0x40fafb,{'direction':'forward','unit':_0x264155['unit']});const _0x35b761=_0x40fafb['getFirstRange'](),_0x577c00=rt['fromRange'](_0x35b761);let _0xb00fb3;_0x38286d(_0x264155),_0xb00fb3='$graveyard'==_0x577c00['root']['rootName']?_0x4e89c6['model']['createRange'](_0x35b761['start']):_0x4e89c6['model']['createRange'](_0x577c00['start'],_0x577c00['end']),_0x577c00['detach'](),_0x4e89c6['model']['enqueueChange'](_0x1874b4['buffer']['batch'],_0x43cab4=>{_0x1874b4['buffer']['lock'](),_0x43cab4['setSelection'](_0x43cab4['createRange'](_0xb00fb3['end'])),_0x1874b4['buffer']['unlock']();});});}},Xt=class extends _0x26ff96{afterInit(){const _0x181296=this['editor'];if(!_0x181296['plugins']['has']('ListEditing'))return;const _0x116822=_0x181296['locale'],_0x4c72a2=_0x181296['plugins']['get']('TrackChangesEditing'),_0x317807=_0x181296['plugins']['has']('TodoListEditing'),_0x4f7429=!!_0x181296['config']['get']('list.multiBlock');function _0x31bf29(_0x14a00c){return{'type':'format','content':''+Mt(_0x116822,'*Set\x20format:*\x20%0',_0x14a00c)};}function _0x455da3(_0x243aa4){return{'type':'format','content':''+Mt(_0x116822,'*Remove\x20format:*\x20%0',_0x243aa4)};}_0x4c72a2['enableDefaultAttributesIntegration']('numberedList'),_0x4c72a2['enableDefaultAttributesIntegration']('bulletedList'),_0x4c72a2['enableDefaultAttributesIntegration']('customNumberedList'),_0x4c72a2['enableDefaultAttributesIntegration']('customBulletedList'),_0x4c72a2['enableDefaultAttributesIntegration']('indentList'),_0x4c72a2['enableDefaultAttributesIntegration']('outdentList'),_0x4c72a2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4c72a2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4f7429&&(_0x4c72a2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4c72a2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x317807&&(_0x4c72a2['enableDefaultAttributesIntegration']('todoList'),_0x4c72a2['enableDefaultAttributesIntegration']('checkTodoList'),_0x4c72a2['descriptionFactory']['registerDescriptionCallback'](_0x490f48=>{const {data:_0x2812e5}=_0x490f48;if(_0x2812e5&&'todoListChecked'==_0x2812e5['key'])return{'type':'format','content':_0x2812e5['newValue']?Mt(_0x116822,'*Check\x20item*'):Mt(_0x116822,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x880a38=>{if(_0x880a38['batch']['isUndo'])return!0x1;let _0x649bc8=!0x1;const _0x13d5db=_0x4c72a2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd87f4d=>'todoListChecked'===_0x4c72a2['_getAttributeKey'](_0xd87f4d));for(const _0x1fe468 of _0x13d5db)'todo'!=_0x1fe468['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4c72a2['_findSuggestions'](_0x1fe468['getFirstRange'](),'attribute')['find'](_0x76fdaa=>'listType'===_0x4c72a2['_getAttributeKey'](_0x76fdaa['suggestion']))||(_0x880a38['removeMarker'](_0x1fe468['getFirstMarker']()),_0x649bc8=!0x0));return _0x649bc8;})),_0x4c72a2['descriptionFactory']['registerAttributeLabel']('listIndent',Mt(_0x116822,'FORMAT_INDENT'));const _0x472d0c={'type':'format','content':''};_0x4c72a2['descriptionFactory']['registerDescriptionCallback'](_0x10e8eb=>{const {data:_0x13a250}=_0x10e8eb;if(!_0x13a250||'listType'!=_0x13a250['key'])return;let _0x1de6bb=_0x10e8eb['head'];for(;_0x1de6bb;){if(_0x1de6bb['data']&&(('listStyle'==_0x1de6bb['data']['key']||'listMarkerStyle'==_0x1de6bb['data']['key'])&&(_0x1de6bb['data']['newValue']&&'default'!=_0x1de6bb['data']['newValue']||'default'!=_0x1de6bb['data']['oldValue']&&!_0x13a250['newValue'])||!_0x4f7429&&'$elementName'==_0x1de6bb['data']['key']))return _0x472d0c;_0x1de6bb=_0x1de6bb['next'];}if(null==_0x13a250['newValue'])switch(_0x13a250['oldValue']){case'bulleted':return _0x455da3(Mt(_0x116822,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x455da3(Mt(_0x116822,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x455da3(Mt(_0x116822,'ELEMENT_TODO_LIST'));}switch(_0x13a250['newValue']){case'bulleted':return _0x31bf29(Mt(_0x116822,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x31bf29(Mt(_0x116822,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x31bf29(Mt(_0x116822,'ELEMENT_TODO_LIST'));}}),_0x4c72a2['descriptionFactory']['registerDescriptionCallback'](_0x31b69c=>{const {data:_0x448600}=_0x31b69c;if(_0x448600&&'listIndent'==_0x448600['key'])return null==_0x448600['newValue']||null==_0x448600['oldValue']&&0x0==_0x448600['newValue']?_0x472d0c:void 0x0;}),_0x4c72a2['descriptionFactory']['registerDescriptionCallback'](_0x370055=>{if('attribute'!=_0x370055['type'])return;const {data:_0x5024e0}=_0x370055;if(!_0x5024e0||'listItemId'!=_0x5024e0['key'])return;const _0x59e0f5=qt(_0x370055);return'newValue'==_0x59e0f5?{'type':'format','content':Mt(_0x116822,'*Merge:*\x20list\x20item')}:'oldValue'==_0x59e0f5?{'type':'format','content':Mt(_0x116822,'*Split:*\x20list\x20item')}:_0x472d0c;}),_0x181296['model']['document']['registerPostFixer'](_0x51bce6=>this['listItemIdFixer'](_0x51bce6)),_0x181296['model']['document']['registerPostFixer'](_0x43a912=>this['noTrackChangesFixer'](_0x43a912)),_0x181296['model']['document']['on']('change:data',(_0x501b09,_0x4bbdd1)=>{if(_0x4bbdd1['isUndo']||!_0x4bbdd1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x50ba24){if(_0x50ba24['batch']['isUndo']||!_0x50ba24['batch']['isLocal'])return!0x1;let _0x58c5c4=!0x1;const _0x7b8a69=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1da766=>_0x1da766['data']&&'listItemId'==_0x1da766['data']['key'])['filter'](_0x561687=>_0x561687['data']['newValue']&&_0x561687['data']['oldValue']);for(const _0x8d5302 of _0x7b8a69)qt(_0x8d5302)||(_0x50ba24['removeMarker'](_0x8d5302['getFirstMarker']()),_0x58c5c4=!0x0);return _0x58c5c4;}['noTrackChangesFixer'](_0x30eac1){if(_0x30eac1['batch']['isUndo']||!_0x30eac1['batch']['isLocal'])return!0x1;const _0x162361=this['editor']['model']['document']['differ'],_0xb6ce08=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xb6ce08['trackChangesCommand']['value'])return!0x1;let _0x269fb0=!0x1;const _0x13a183=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x38cd14=_0x162361['getChanges']()['filter'](_0x3cc1df=>'attribute'==_0x3cc1df['type'])['filter'](_0x5c54d4=>_0x13a183['has'](_0x5c54d4['attributeKey']));if(0x0==_0x38cd14['length'])return _0x269fb0;const _0x5f5ad0=new Set(_0x162361['getMarkersToAdd']()['filter'](_0xf801fa=>{if(!_0xf801fa['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x566559=tt(_0xf801fa['name'])['subType']['split']('|')[0x0];return _0x13a183['has'](_0x566559);})['map'](_0xa3ba36=>tt(_0xa3ba36['name'])['id']));for(const _0x154162 of _0x38cd14){const _0x4c4867=_0xb6ce08['_findSuggestions'](_0x154162['range'],'attribute')['filter'](_0x3080e8=>{if(_0x3080e8['meta']['isNextTo'])return!0x1;if(_0x5f5ad0['has'](_0x3080e8['suggestion']['id']))return!0x1;const _0x1f0849=_0xb6ce08['_getAttributeKey'](_0x3080e8['suggestion']);return _0x13a183['has'](_0x1f0849);})['map'](_0x120f51=>_0x120f51['suggestion']);if(_0x4c4867['length']){for(const _0xdcc8a6 of _0x4c4867)_0x30eac1['removeMarker'](_0xdcc8a6['getFirstMarker']());_0x269fb0=!0x0;}}return _0x269fb0;}['assureChains'](){const _0x1a613e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a7b36=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x43b9b8;const _0x5e4373=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x51f7a1=>{if(_0x51f7a1['data']['oldRange']||!_0x51f7a1['data']['newRange'])return null;if(!_0x51f7a1['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x211ccd}=tt(_0x51f7a1['name']);if(!_0x1a613e['hasSuggestion'](_0x211ccd))return null;const _0xe72a5c=_0x1a613e['getSuggestion'](_0x211ccd);return _0x4a7b36['includes'](_0xe72a5c['data']['key']);})['map'](_0x413ebb=>{const {id:_0x48c0db}=tt(_0x413ebb['name']),_0x101f30=_0x1a613e['getSuggestion'](_0x48c0db);return _0x43b9b8=_0x101f30['attributes']['groupId'],_0x101f30['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5e4373['size'])return;const _0x32276f=_0x1a613e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5783ab=>'attribute'==_0x5783ab['type']&&_0x5783ab['data']&&_0x4a7b36['includes'](_0x5783ab['data']['key'])&&_0x5783ab['attributes']['groupId']!=_0x43b9b8)['map'](_0x66d3a3=>({'listItem':_0x66d3a3['getFirstRange']()['start']['nodeAfter'],'groupId':_0x66d3a3['attributes']['groupId']})),_0x3e024b=new Set();for(const {groupId:_0x3e860c,listItem:_0x18b2fd}of _0x32276f)_0x5e4373['has'](_0x18b2fd)&&_0x3e024b['add'](_0x3e860c);for(const _0x438698 of _0x1a613e['getSuggestions']())_0x3e024b['has'](_0x438698['attributes']['groupId'])&&_0x438698['setAttribute']('groupId',_0x43b9b8);}_supportLegacySuggestions(){const _0x33030c=this['editor'],_0x137853=_0x33030c['locale'],_0x503a8d=_0x33030c['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x503a8d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x54b003,_0x573018){const _0x49c33f=[];for(let _0x2bebff of _0x54b003)_0x2bebff['start']['nodeAfter']===_0x2bebff['end']['parent']&&(_0x2bebff=_0x33030c['model']['createRange'](_0x33030c['model']['createPositionAt'](_0x2bebff['start']['nodeAfter'],0x0))),_0x49c33f['push'](_0x2bebff);_0x33030c['model']['change'](_0x5cd6a6=>{const _0x28e3b1=_0x33030c['model']['document']['selection'],_0x412cb7=Array['from'](_0x28e3b1['getRanges']())['map'](_0x48203c=>rt['fromRange'](_0x48203c));_0x5cd6a6['setSelection'](_0x49c33f),_0x33030c['commands']['get'](_0x573018['commandName'])['refresh'](),_0x573018['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x33030c['execute'](_0x573018['commandName'],..._0x573018['commandParams']),_0x5cd6a6['setSelection'](_0x412cb7);for(const _0x58ede9 of _0x412cb7)_0x58ede9['detach']();});}),_0x503a8d['descriptionFactory']['registerElementLabel'](function(_0x1b59fb){const _0x4fb0fe=!_0x33030c['model']['schema']['isObject'](_0x1b59fb),_0x36a190=_0x1b59fb['previousSibling'],_0x3b41fa=_0x1b59fb['nextSibling'],_0x13c124=_0x1b59fb['getAttribute']('listItemId'),_0x7c4f65=!_0x36a190||_0x36a190['getAttribute']('listItemId')!==_0x13c124,_0x859e00=!_0x3b41fa||_0x3b41fa['getAttribute']('listItemId')!==_0x13c124;return _0x4fb0fe&&Boolean(_0x13c124)&&_0x7c4f65&&_0x859e00;},_0x552687=>Mt(_0x137853,'ELEMENT_LIST_ITEM',_0x552687));}_registerLegacyDescription(){const _0x24bea9=this['editor'],_0x4afc1e=_0x24bea9['locale'];function _0x16c7f4(_0x1e7429){const _0x1231c4=_0x24bea9['commands']['get']('bulletedList')['value'],_0x4fe3b2=_0x24bea9['commands']['get']('numberedList')['value'];return'numberedList'===_0x1e7429?_0x1231c4:_0x4fe3b2;}_0x24bea9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x40aa96){if('formatBlock'!=_0x40aa96['type'])return;const {data:_0x749d05}=_0x40aa96;if(!_0x749d05)return;let _0x50150a,_0x30f0e0,_0x5ddc17,_0x4d6467;switch(_0x749d05['commandName']){case'bulletedList':_0x5ddc17=_0x749d05['commandParams'][0x0]['forceValue'],_0x4d6467=_0x16c7f4(_0x749d05['commandName']),_0x50150a=_0x5ddc17?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4d6467&&_0x24bea9['config']['get']('list.multiBlock')||(_0x50150a='*Change\x20to:*\x20%0'),_0x30f0e0={'type':'format','content':Mt(_0x4afc1e,_0x50150a,Mt(_0x4afc1e,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5ddc17=_0x749d05['commandParams'][0x0]['forceValue'],_0x4d6467=_0x16c7f4(_0x749d05['commandName']),_0x50150a=_0x5ddc17?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4d6467&&_0x24bea9['config']['get']('list.multiBlock')||(_0x50150a='*Change\x20to:*\x20%0'),_0x30f0e0={'type':'format','content':Mt(_0x4afc1e,_0x50150a,Mt(_0x4afc1e,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x50150a='*Indent:*\x20%0',_0x30f0e0={'type':'format','content':Mt(_0x4afc1e,_0x50150a,Mt(_0x4afc1e,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x50150a=function(_0x19d3e8){const _0x239205=_0x19d3e8['getFirstRange']();let _0x26ddcf=_0x239205['start']['nodeAfter'];for(;_0x26ddcf&&_0x239205['containsItem'](_0x26ddcf);){if(_0x26ddcf['getAttribute']('listIndent')>0x0)return!0x1;_0x26ddcf=_0x26ddcf['nextSibling'];}return!0x0;}(_0x40aa96)?Mt(_0x4afc1e,'*Format:*\x20remove\x20from\x20%0',Mt(_0x4afc1e,function(_0x421b56){return'ELEMENT_'+_0x421b56['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x40aa96))):Mt(_0x4afc1e,'*Outdent:*\x20%0',Mt(_0x4afc1e,'ELEMENT_LIST_ITEM')),_0x30f0e0={'type':'format','content':_0x50150a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x749d05['multipleBlocks']&&(_0x50150a='*Merge:*\x20%0',_0x30f0e0={'type':'deletion','content':Mt(_0x4afc1e,_0x50150a,Mt(_0x4afc1e,'ELEMENT_LIST_ITEM'))});}return _0x30f0e0;});}};function qt(_0xebb451){let _0x6adf78=_0xebb451['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x6adf78;){const _0x12b96f=_0x6adf78['getAttribute']('listItemId');if(!_0x12b96f)return!0x1;if(_0x12b96f==_0xebb451['data']['newValue'])return'newValue';if(_0x12b96f==_0xebb451['data']['oldValue'])return'oldValue';_0x6adf78=_0x6adf78['previousSibling'];}return!0x1;}var Yt=class extends _0x26ff96{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x49c01e=this['editor']['config']['get']('list.properties'),_0x27978c=this['editor']['plugins']['get']('TrackChangesEditing');_0x49c01e['styles']&&_0x27978c['enableDefaultAttributesIntegration']('listStyle'),_0x49c01e['reversed']&&_0x27978c['enableDefaultAttributesIntegration']('listReversed'),_0x49c01e['startIndex']&&_0x27978c['enableDefaultAttributesIntegration']('listStart');const _0x56732d={'type':'format','content':''};_0x27978c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3f2193=this['editor']['locale'];_0x27978c['descriptionFactory']['registerAttributeLabel']('listReversed',Mt(_0x3f2193,'FORMAT_LIST_REVERSED')),_0x27978c['descriptionFactory']['registerDescriptionCallback'](_0x41b801=>{const {data:_0x367950}=_0x41b801;if(_0x367950&&'listReversed'==_0x367950['key'])return null==_0x367950['newValue']||0x0==_0x367950['newValue']&&null==_0x367950['oldValue']?_0x56732d:void 0x0;}),_0x27978c['descriptionFactory']['registerAttributeLabel']('listStart',Mt(_0x3f2193,'FORMAT_LIST_START')),_0x27978c['descriptionFactory']['registerDescriptionCallback'](_0x3d039f=>{const {data:_0x386cac}=_0x3d039f;if(_0x386cac&&'listStart'==_0x386cac['key'])return null==_0x386cac['newValue']||0x1==_0x386cac['newValue']&&null==_0x386cac['oldValue']?_0x56732d:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x37d1d0=>{if(_0x37d1d0['batch']['isUndo'])return!0x1;let _0x562e44=!0x1;const _0x49dd57=_0x27978c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x73caa4=>{const _0x997366=_0x27978c['_getAttributeKey'](_0x73caa4);return'listStart'==_0x997366||'listReversed'==_0x997366;});for(const _0x37da56 of _0x49dd57){const _0x56cd0c=_0x37da56['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x56cd0c&&'customNumbered'!=_0x56cd0c&&(_0x27978c['_findSuggestions'](_0x37da56['getFirstRange'](),'attribute')['find'](_0x2c693d=>'listType'==_0x27978c['_getAttributeKey'](_0x2c693d['suggestion']))||(_0x37d1d0['removeMarker'](_0x37da56['getFirstMarker']()),_0x562e44=!0x0));}return _0x562e44;}),this['_registerLegacyDescription']();}handleDescriptions(_0x5a092f){const _0x321b80=this['editor']['locale'],{data:_0x5a8409}=_0x5a092f,_0x47bf24={'type':'format','content':''};if(!_0x5a8409||'listStyle'!=_0x5a8409['key'])return;if(!_0x5a8409['oldValue'])return'default'==_0x5a8409['newValue']?_0x47bf24:{'type':'format','content':''+Mt(_0x321b80,'*Set\x20format:*\x20%0',Mt(_0x321b80,this['_getTranslationKeyForListStyle'](_0x5a8409['newValue'])))};if(!_0x5a8409['newValue']){if('default'==_0x5a8409['oldValue'])return _0x47bf24;let _0x59384d=_0x5a092f['head'];for(;_0x59384d;){if(_0x59384d['data']&&'listType'==_0x59384d['data']['key']&&_0x59384d['data']['newValue'])return _0x47bf24;_0x59384d=_0x59384d['next'];}return{'type':'format','content':''+Mt(_0x321b80,'*Remove\x20format:*\x20%0',Mt(_0x321b80,this['_getTranslationKeyForListStyle'](_0x5a8409['oldValue'])))};}if('default'!=_0x5a8409['newValue'])return{'type':'format','content':''+Mt(_0x321b80,'*Set\x20format:*\x20%0',Mt(_0x321b80,this['_getTranslationKeyForListStyle'](_0x5a8409['newValue'])))};let _0x251a06=_0x5a092f['head'];for(;_0x251a06;){if(_0x251a06['data']&&'listType'==_0x251a06['data']['key']&&_0x251a06['data']['newValue']&&_0x251a06['data']['oldValue'])return _0x47bf24;_0x251a06=_0x251a06['next'];}return{'type':'format','content':Mt(_0x321b80,'*Set\x20format:*\x20%0',Mt(_0x321b80,'ELEMENT_'+_0x5a092f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x1a7e59=this['editor'],_0x5b0f20=_0x1a7e59['locale'];_0x1a7e59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f01e7=>{if('formatBlock'!=_0x2f01e7['type'])return;const {data:_0x539f88}=_0x2f01e7;if(!_0x539f88)return;let _0x3661f8,_0x3789c7;switch(_0x539f88['commandName']){case'listStyle':_0x3661f8='*Change\x20to:*\x20%0',_0x3789c7={'type':'format','content':Mt(_0x5b0f20,_0x3661f8,Mt(_0x5b0f20,this['_getTranslationKeyForListStyle'](_0x539f88['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3661f8=_0x539f88['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3789c7={'type':'format','content':Mt(_0x5b0f20,_0x3661f8)};break;case'listStart':_0x3661f8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3789c7={'type':'format','content':Mt(_0x5b0f20,_0x3661f8,_0x539f88['commandParams'][0x0]['startIndex'])};}return _0x3789c7;});}_getTranslationKeyForListStyle(_0x4e42a2){return'ELEMENT_'+(_0x45b1d0=_0x4e42a2,Qt['includes'](_0x45b1d0)?'bulleted':Zt['includes'](_0x45b1d0)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x4e42a2['toUpperCase']()['replace'](/-/g,'_');var _0x45b1d0;}};const Qt=['disc','circle','square'],Zt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Jt=class extends _0x26ff96{afterInit(){const _0x5e96b7=this['editor'];_0x5e96b7['commands']['get']('emoji')&&_0x5e96b7['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},te=class extends _0x26ff96{static get requires(){return[Et];}init(){const _0x524f93=this['editor'],_0xcf392a=_0x524f93['plugins']['get']('TrackChangesEditing'),_0x4f4a9b=_0x524f93['commands']['get']('enter');_0xcf392a['enableCommand']('enter',()=>{_0x524f93['model']['change'](_0x424339=>{const _0x1fd30f=_0x524f93['model']['document']['selection'],_0x3924de=_0x1fd30f['getFirstPosition'](),_0x1c3f80=rt['fromRange'](_0x1fd30f['getFirstRange']());if(_0x4f4a9b['enterBlock'](_0x424339)){const _0x7d410a=_0x524f93['model']['createPositionAt'](_0x3924de['parent']['nextSibling'],0x0),_0x462aa5=_0x424339['createRange'](_0x3924de,_0x7d410a);_0xcf392a['markInsertion'](_0x462aa5);}else _0x424339['setSelection'](_0x424339['createRange'](_0x1c3f80['end']));_0x1c3f80['detach'](),_0x4f4a9b['fire']('afterExecute',{'writer':_0x424339});});});}},ee=class extends _0x26ff96{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xab257b=this['editor']['plugins']['get']('TrackChangesEditing');_0xab257b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xab257b['enableCommand']('findNext'),_0xab257b['enableCommand']('findPrevious'),_0xab257b['enableCommand']('replace'),_0xab257b['enableCommand']('replaceAll');}['handleFindCommand'](_0x588318,_0x37b68c,_0x5927a0={}){const _0x319abb=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x588318(_0x58ba3f=>{let _0x349c8d=('string'==typeof _0x37b68c?_0x319abb['findByTextCallback'](_0x37b68c,_0x5927a0):_0x37b68c)(_0x58ba3f);Array['isArray'](_0x349c8d)&&(_0x349c8d={'results':_0x349c8d,'searchText':'string'==typeof _0x37b68c?_0x37b68c:''});const _0x51e174=_0x349c8d['results']['filter'](_0x11b1b6=>!0x1===this['_isInDeletionRange'](_0x11b1b6,_0x58ba3f['item']));return{..._0x349c8d,'results':_0x51e174};},_0x5927a0);}_isInDeletionRange(_0x2ef7b0,_0x276487){const _0xd57b80=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x276487,_0x2ef7b0['start']),this['editor']['model']['createPositionAt'](_0x276487,_0x2ef7b0['end']));for(const _0x2fb51f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xd57b80['getIntersection'](_0x2fb51f['getRange']()))return!0x0;return!0x1;}};const ne=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ie=class extends _0x26ff96{afterInit(){const _0x346bb8=this['editor']['locale'],_0x34e48f=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1b43c6,commandName:_0x101003}of ne)this['editor']['plugins']['has'](_0x1b43c6)&&_0x34e48f['enableDefaultAttributesIntegration'](_0x101003);_0x34e48f['descriptionFactory']['registerAttributeLabel']('fontSize',Mt(_0x346bb8,'FORMAT_FONT_SIZE')),_0x34e48f['descriptionFactory']['registerAttributeLabel']('fontFamily',Mt(_0x346bb8,'FORMAT_FONT_FAMILY')),_0x34e48f['descriptionFactory']['registerAttributeLabel']('fontColor',Mt(_0x346bb8,'FORMAT_FONT_COLOR')),_0x34e48f['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Mt(_0x346bb8,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1058c4=this['editor'],_0x4520d0=_0x1058c4['locale'];_0x1058c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27f608=>{const _0x454455=_0x4520d0['t'];if('formatInline'!=_0x27f608['type'])return;const {data:_0x5be450}=_0x27f608;if(null!=_0x5be450){if('fontSize'==_0x5be450['commandName']){const _0x5f49aa=_0x5be450['commandParams'][0x0]['value'];if(_0x5f49aa){const _0x51ee82=_0x454455(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x224080=>_0x224080['model']==_0x5f49aa)['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x4520d0,'*Set\x20font\x20size:*\x20%0',_0x51ee82)};}return{'type':'format','content':Mt(_0x4520d0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5be450['commandName']){const _0x2968bd=_0x5be450['commandParams'][0x0]['value'];return _0x2968bd?{'type':'format','content':Mt(_0x4520d0,'*Set\x20font\x20family:*\x20%0',_0x2968bd)}:{'type':'format','content':Mt(_0x4520d0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5be450['commandName']){const _0x1e86fd=_0x5be450['commandParams'][0x0]['value'];if(_0x1e86fd){const _0x97ca08=_0x782781(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5a720e=>_0x5a720e['model']==_0x1e86fd);let _0x50b3bc=_0x1e86fd,_0x204014='';return _0x97ca08&&(_0x50b3bc=_0x97ca08['label'],_0x204014=_0x454455(_0x50b3bc)['toLowerCase']()),{'type':'format','content':Mt(_0x4520d0,'*Set\x20font\x20color:*\x20%0',_0x204014)['trim'](),'color':{'value':_0x1e86fd,'title':_0x204014||_0x50b3bc}};}return{'type':'format','content':Mt(_0x4520d0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5be450['commandName']){const _0x8a0bb5=_0x5be450['commandParams'][0x0]['value'];if(_0x8a0bb5){const _0x30a95b=_0x782781(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x83734=>_0x83734['model']==_0x8a0bb5);let _0x4c431d=_0x8a0bb5,_0x1b0dec='';return _0x30a95b&&(_0x4c431d=_0x30a95b['label'],_0x1b0dec=_0x454455(_0x4c431d)['toLowerCase']()),{'type':'format','content':Mt(_0x4520d0,'*Set\x20font\x20background\x20color:*\x20%0',_0x1b0dec)['trim'](),'color':{'value':_0x8a0bb5,'title':_0x1b0dec||_0x4c431d}};}return{'type':'format','content':Mt(_0x4520d0,'*Reset\x20font\x20background\x20color*')};}}});}},se=class extends _0x26ff96{afterInit(){const {plugins:_0x57d769}=this['editor'];_0x57d769['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x57d769['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x55c5e7,plugins:_0x2e62da,commands:_0xe26e0c}=this['editor'],_0x3326c6=_0x2e62da['get']('TrackChangesEditing');_0xe26e0c['get']('footnotesStyle')&&_0x3326c6['enableDefaultAttributesIntegration']('footnotesStyle'),_0xe26e0c['get']('footnotesStart')&&_0x3326c6['enableDefaultAttributesIntegration']('footnotesStart'),_0x3326c6['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Mt(_0x55c5e7,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x3326c6['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Mt(_0x55c5e7,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x4458c5=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x18e864,commands:_0x1b0650}=this['editor'];_0x1b0650['get']('insertFootnote')&&_0x4458c5['enableCommand']('insertFootnote'),_0x4458c5['descriptionFactory']['registerElementLabel']('footnoteRef',_0x3e7bbe=>Mt(_0x18e864,'ELEMENT_FOOTNOTE_REF',_0x3e7bbe)),_0x4458c5['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x257914=>Mt(_0x18e864,'ELEMENT_FOOTNOTE_DEFINITION',_0x257914)),_0x4458c5['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0xee84f6=>Mt(_0x18e864,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0xee84f6));}},re=class extends _0x26ff96{afterInit(){const _0x2903b8=this['editor'],_0x3cb1f=_0x2903b8['plugins']['get']('TrackChangesEditing'),_0x3d961c=_0x2903b8['commands']['get']('copyFormat'),_0x13a627=_0x2903b8['commands']['get']('pasteFormat');_0x3d961c&&_0x13a627&&(_0x3cb1f['enableDefaultAttributesIntegration']('pasteFormat'),_0x3cb1f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x4d7ca7=this['editor'],_0x18af3a=_0x4d7ca7['locale'];_0x4d7ca7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25b503=>{if('formatBlock'!=_0x25b503['type']&&'formatInline'!=_0x25b503['type'])return;const {data:_0x3f56af}=_0x25b503;if(_0x3f56af&&'pasteFormat'===_0x3f56af['commandName']){const _0x2d52be=[],_0x58e85d=_0x3f56af['commandParams'][0x0];for(const [_0x32a99e,_0xb702e0]of Object['entries'](_0x58e85d))_0x2d52be['push'](oe(_0x4d7ca7,_0x32a99e,_0xb702e0));return _0x2d52be['length']?{'type':'format','content':Mt(_0x18af3a,'*Set\x20format\x20to:*\x20%0',_0x2d52be['join'](',\x20'))}:{'type':'format','content':Mt(_0x18af3a,'*Remove\x20all\x20formatting*')};}});}};function oe(_0x223447,_0x2a2501,_0x13180b){const _0x3c6a73=_0x223447['locale']['t'],_0x3bbda4=_0x2a2501['split'](/(?=[A-Z])/)['join']('\x20'),_0x20ec4b=_0x3c6a73(_0x3bbda4['charAt'](0x0)['toUpperCase']()+_0x3bbda4['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x13180b)return _0x20ec4b;if('fontColor'===_0x2a2501||'fontBackgroundColor'===_0x2a2501){const _0x5e496c=_0x782781(_0x223447['config']['get']('fontColor.colors'))['find'](_0x8f56c7=>_0x8f56c7['model']==_0x13180b);return _0x20ec4b+'\x20('+(_0x5e496c?_0x3c6a73(_0x5e496c['label'])['toLowerCase']():_0x13180b)+')';}if('fontSize'===_0x2a2501&&isNaN(parseFloat(_0x13180b))){const _0x4412e3=_0x223447['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x223447['config']['get']('fontSize.options'))['find'](_0x3d6475=>_0x3d6475['model']==_0x13180b);return _0x20ec4b+'\x20('+(_0x4412e3?_0x3c6a73(_0x4412e3['title'])['toLowerCase']():_0x13180b)+')';}return _0x20ec4b+'\x20('+_0x13180b+')';}var ae=class extends _0x26ff96{afterInit(){const _0x4486b0=this['editor'];if(!_0x4486b0['plugins']['has']('GeneralHtmlSupport')||!_0x4486b0['plugins']['has']('DataSchema'))return;const _0x296253=_0x4486b0['plugins']['get']('TrackChangesEditing'),_0x13a7d7=_0x4486b0['plugins']['get']('GeneralHtmlSupport'),_0x5b803a=_0x4486b0['plugins']['get']('DataSchema'),_0x5c7a7e=_0x4486b0['locale'],_0xac1023=new Set(['htmlContent']);for(const _0x26822a of _0x5b803a['getDefinitionsForView'](/.*/,!0x1)){const _0x594cc4=_0x26822a['view'],_0x11d8b4=_0x13a7d7['getGhsAttributeNameForElement'](_0x594cc4);_0xac1023['add'](_0x11d8b4),!_0x26822a['isInline']||_0x26822a['isObject']||'appliesToBlock'in _0x26822a&&_0x26822a['appliesToBlock']||_0x296253['descriptionFactory']['registerAttributeLabel'](_0x11d8b4,_0x594cc4),_0x26822a['model']['startsWith']('html')&&_0x296253['descriptionFactory']['registerElementLabel'](_0x26822a['model'],_0x1e549b=>Mt(_0x5c7a7e,'ELEMENT_HTML_TAG',[_0x1e549b,_0x594cc4]));}_0x296253['descriptionFactory']['registerAttributeLabel']('htmlContent',Mt(_0x5c7a7e,'FORMAT_RAW_HTML_CONTENT')),_0x296253['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Mt(_0x5c7a7e,'FORMAT_HTML_LIST_ITEM')),_0x296253['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Mt(_0x5c7a7e,'FORMAT_HTML_BULLETED_LIST')),_0x296253['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Mt(_0x5c7a7e,'FORMAT_HTML_NUMBERED_LIST')),_0x296253['descriptionFactory']['registerDescriptionCallback'](_0x48d265=>{if('attribute'!==_0x48d265['type'])return;const _0x344d82=_0x48d265['data'];if(!_0x344d82||!_0xac1023['has'](_0x344d82['key']))return;if('htmlContent'===_0x344d82['key'])return{'type':'format','content':Mt(_0x5c7a7e,'*Change\x20%0\x20content*',Mt(_0x5c7a7e,'ELEMENT_RAW_HTML'))};const {setItems:_0x15deae,removeItems:_0x4e8e26}=function(_0x1aaffb,_0x2d5224,_0x487e27){const _0x4c6141=[],_0x3bad9d=[],_0x1a2f78=_0x1aaffb['styles']??{},_0x573095=_0x2d5224['styles']??{};for(const _0x2c8b3c of new Set([...Object['keys'](_0x1a2f78),...Object['keys'](_0x573095)]))_0x1a2f78[_0x2c8b3c]!==_0x573095[_0x2c8b3c]&&(void 0x0===_0x573095[_0x2c8b3c]?_0x3bad9d['push'](_0x2c8b3c):_0x4c6141['push'](_0x2c8b3c+'\x20('+_0x573095[_0x2c8b3c]+')'));const _0x1db6ab=Mt(_0x487e27,'FORMAT_HTML_CLASS'),_0x5ecbfc=new Set(_0x1aaffb['classes']??[]),_0x1604c0=new Set(_0x2d5224['classes']??[]),_0x4fd7c4=[..._0x1604c0]['some'](_0x34aebe=>!_0x5ecbfc['has'](_0x34aebe)),_0x1e2cc0=[..._0x5ecbfc]['some'](_0x39e888=>!_0x1604c0['has'](_0x39e888));_0x4fd7c4&&_0x4c6141['push'](_0x1db6ab),_0x1e2cc0&&_0x3bad9d['push'](_0x1db6ab);const _0x53404=Mt(_0x487e27,'FORMAT_HTML_ATTRIBUTE'),_0x5e23ad=_0x1aaffb['attributes']??{},_0x1d81ec=_0x2d5224['attributes']??{};let _0x1fd7b1=!0x1,_0x8fa30a=!0x1;for(const _0x511e88 of new Set([...Object['keys'](_0x5e23ad),...Object['keys'](_0x1d81ec)]))_0x5e23ad[_0x511e88]!==_0x1d81ec[_0x511e88]&&(void 0x0===_0x1d81ec[_0x511e88]?_0x8fa30a=!0x0:_0x1fd7b1=!0x0);return _0x1fd7b1&&_0x4c6141['push'](_0x53404),_0x8fa30a&&_0x3bad9d['push'](_0x53404),{'setItems':_0x4c6141,'removeItems':_0x3bad9d};}(_0x344d82['oldValue']??{},_0x344d82['newValue']??{},_0x5c7a7e);if(!_0x15deae['length']&&!_0x4e8e26['length'])return;const _0x9fb9f5=[];return _0x15deae['length']&&_0x9fb9f5['push'](Mt(_0x5c7a7e,'*Set\x20format:*\x20%0',_0x15deae['join'](',\x20'))),_0x4e8e26['length']&&_0x9fb9f5['push'](Mt(_0x5c7a7e,'*Remove\x20format:*\x20%0',_0x4e8e26['join'](',\x20'))),{'type':'format','content':_0x9fb9f5['join']('\x0a')};});}},ce=class extends _0x26ff96{_headingOptions;afterInit(){const _0x527690=this['editor'];if(!_0x527690['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x527690['config']['get']('heading.options');const _0x6d539c=_0x527690['locale'],_0x56f55e=_0x527690['plugins']['get']('TrackChangesEditing');_0x56f55e['enableDefaultAttributesIntegration']('heading');for(const _0x247e09 of this['_headingOptions'])'paragraph'!=_0x247e09['model']&&_0x56f55e['descriptionFactory']['registerElementLabel'](_0x247e09['model'],_0x344219=>{const _0x1cfb38=this['_getHeadingLevel'](_0x247e09['model']);return null!==_0x1cfb38?_0x365191(_0x344219,_0x1cfb38):_0x2b8876(_0x344219,_0x247e09['title']);});function _0x365191(_0x48fbbf,_0x179215){return Mt(_0x6d539c,'ELEMENT_HEADING',[_0x48fbbf,_0x179215]);}function _0x2b8876(_0x47656a,_0x2f5d81){return Mt(_0x6d539c,'ELEMENT_HEADING_CUSTOM',[_0x47656a,_0x2f5d81]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x194e2b=this['editor'],_0x530702=_0x194e2b['locale'];function _0x28cbd0(_0x211fda,_0xca3cb3){return Mt(_0x530702,'ELEMENT_HEADING_CUSTOM',[_0x211fda,_0xca3cb3]);}_0x194e2b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x173a11=>{if('formatBlock'!=_0x173a11['type'])return;const {data:_0x1199bb}=_0x173a11;if(_0x1199bb&&'heading'==_0x1199bb['commandName']){const _0x55ee52=_0x1199bb['commandParams'][0x0]['value'],_0x12f671=this['_getHeadingLevel'](_0x55ee52);if(null!==_0x12f671)return{'type':'format','content':Mt(_0x530702,'*Change\x20to:*\x20%0',(_0x10525c=0x1,_0x497c0b=_0x12f671,Mt(_0x530702,'ELEMENT_HEADING',[_0x10525c,_0x497c0b])))};const _0x285892=this['_headingOptions']['find'](_0x102fe7=>_0x102fe7['model']===_0x55ee52)['title'];return{'type':'format','content':Mt(_0x530702,'*Change\x20to:*\x20%0',_0x28cbd0(0x1,_0x285892))};}var _0x10525c,_0x497c0b;});}_getHeadingLevel(_0x259705){const _0x366351=_0x259705['match'](/^heading(\d+)/);if(_0x366351)return _0x366351[0x1];const _0xfd1b1d=this['_headingOptions']?.['find'](_0x41a252=>_0x41a252['model']==_0x259705);if(_0xfd1b1d&&_0xfd1b1d['view']){const _0x2dc6dd=_0xfd1b1d['view'],_0x2a7833=(_0x2dc6dd['name']??_0x2dc6dd)['match'](/^h(\d+)/);if(_0x2a7833)return _0x2a7833[0x1];}return null;}},le=class extends _0x26ff96{afterInit(){const _0x5560d3=this['editor'];if(!_0x5560d3['plugins']['has']('HighlightEditing'))return;const _0x55928f=_0x5560d3['plugins']['get']('TrackChangesEditing'),_0x5b00ba=_0x5560d3['locale'];_0x55928f['enableDefaultAttributesIntegration']('highlight'),_0x55928f['descriptionFactory']['registerAttributeLabel']('highlight',Mt(_0x5b00ba,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x34cf8e=this['editor'],_0x4ed3b6=_0x34cf8e['locale'];_0x34cf8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x342e30=>{if('formatInline'!=_0x342e30['type'])return;const {data:_0x5ac7b4}=_0x342e30;if(_0x5ac7b4&&'highlight'==_0x5ac7b4['commandName']){const _0x346878=_0x4ed3b6['t'],_0x894821=_0x5ac7b4['commandParams'][0x0]['value'];if(_0x894821){const _0x5ae189=_0x34cf8e['config']['get']('highlight.options')['find'](_0xd63400=>_0xd63400['model']==_0x894821),_0x79f3bb=_0x346878(_0x5ae189['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x4ed3b6,'*Set\x20highlight:*\x20%0',_0x79f3bb),'color':{'value':_0x5ae189['color'],'title':_0x5ae189['title']}};}return{'type':'format','content':Mt(_0x4ed3b6,'*Remove\x20highlight*',Mt(_0x4ed3b6,'FORMAT_HIGHLIGHT'))};}});}},ue=class extends _0x26ff96{afterInit(){const _0x3e49ac=this['editor'];if(!_0x3e49ac['plugins']['has']('HorizontalLineEditing'))return;_0x3e49ac['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4b8c40=_0x3e49ac['plugins']['get']('TrackChangesEditing'),_0x20fcb0=_0x3e49ac['locale'];_0x4b8c40['descriptionFactory']['registerElementLabel']('horizontalLine',_0xd8e03e=>Mt(_0x20fcb0,'ELEMENT_HORIZONTAL_LINE',_0xd8e03e));}},de=class extends _0x26ff96{afterInit(){const _0x399325=this['editor'];if(!_0x399325['plugins']['has']('HtmlEmbed'))return;const _0x506cf3=_0x399325['plugins']['get']('TrackChangesEditing'),_0x355844=_0x399325['locale'];_0x506cf3['descriptionFactory']['registerElementLabel']('rawHtml',_0x220b80=>Mt(_0x355844,'ELEMENT_HTML_EMBED',_0x220b80)),_0x506cf3['enableDefaultAttributesIntegration']('htmlEmbed'),_0x506cf3['descriptionFactory']['registerDescriptionCallback'](_0x211be0=>{if('attribute'!=_0x211be0['type'])return;const {data:_0x503946}=_0x211be0;if(_0x503946&&'value'==_0x503946['key']&&_0x211be0['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1eb58d=Mt(_0x355844,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x355844,'*Change\x20%0\x20content*',_0x1eb58d)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1c72a6=this['editor'],_0x1053d0=_0x1c72a6['locale'];_0x1c72a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4eef1b=>{if('formatBlock'!=_0x4eef1b['type'])return;const {data:_0x28433b}=_0x4eef1b;if(_0x28433b&&'htmlEmbed'==_0x28433b['commandName']){const _0x989465=Mt(_0x1053d0,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x1053d0,'*Change\x20%0\x20content*',_0x989465)};}});}},he=class extends _0x26ff96{afterInit(){const _0x1261a9=this['editor'];if(!_0x1261a9['plugins']['has']('ImageEditing'))return;const _0x4d31ac=_0x1261a9['plugins']['get']('TrackChangesEditing'),_0x25e143=_0x1261a9['plugins']['get']('ImageUtils'),_0x8ba650=_0x1261a9['locale'];_0x4d31ac['enableCommand']('insertImage'),_0x4d31ac['descriptionFactory']['registerElementLabel']('imageBlock',_0xfd1ff8=>Mt(_0x8ba650,'ELEMENT_IMAGE',_0xfd1ff8)),_0x4d31ac['descriptionFactory']['registerElementLabel']('imageInline',_0x490d79=>Mt(_0x8ba650,'ELEMENT_INLINE_IMAGE',_0x490d79)),_0x4d31ac['descriptionFactory']['registerElementLabel']('caption',()=>Mt(_0x8ba650,'ELEMENT_CAPTION')),_0x1261a9['plugins']['has']('ImageUploadEditing')&&_0x4d31ac['enableCommand']('uploadImage'),_0x1261a9['plugins']['has']('ImageBlockEditing')&&_0x1261a9['plugins']['has']('ImageInlineEditing')&&(_0x4d31ac['enableCommand']('imageTypeInline',(_0x1d5df4,_0x5994bb)=>{const _0x79a2e9=_0x25e143['getClosestSelectedImageElement'](_0x1261a9['model']['document']['selection']);_0x1261a9['model']['change'](()=>{_0x4d31ac['markBlockFormat'](_0x79a2e9,{'commandName':'imageTypeInline','commandParams':[_0x5994bb]},[],'convertBlockImageToInline');});}),_0x4d31ac['enableCommand']('imageTypeBlock',(_0x869dad,_0x1f1a39)=>{_0x1261a9['model']['change'](_0x87ef9e=>{let _0x3985fa=_0x25e143['getClosestSelectedImageElement'](_0x1261a9['model']['document']['selection']),_0x5cab8c=_0x87ef9e['createRangeOn'](_0x3985fa);const _0x1b964c=st['fromPosition'](_0x5cab8c['start'],'toPrevious'),_0x40ca26=st['fromPosition'](_0x5cab8c['end'],'toNext');_0x4d31ac['forceDefaultExecution'](()=>_0x869dad(_0x1f1a39)),_0x3985fa=_0x25e143['getClosestSelectedImageElement'](_0x1261a9['model']['document']['selection']),_0x5cab8c=_0x87ef9e['createRangeOn'](_0x3985fa);const _0xb96110=_0x87ef9e['createRange'](_0x1b964c,_0x40ca26);_0x1b964c['detach'](),_0x40ca26['detach'](),_0x4d31ac['markBlockFormat'](_0x3985fa,{'commandName':'imageTypeInline','commandParams':[_0x1f1a39]},[],'convertInlineImageToBlock'),_0xb96110['start']['isBefore'](_0x5cab8c['start'])&&_0x4d31ac['markInsertion'](_0x87ef9e['createRange'](_0xb96110['start'],_0x5cab8c['start']),'convertInlineImageToBlock'),_0x5cab8c['end']['isBefore'](_0xb96110['end'])&&_0x4d31ac['markInsertion'](_0x87ef9e['createRange'](_0x5cab8c['end'],_0xb96110['end']),'convertInlineImageToBlock');});}),_0x4d31ac['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4d31ac['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4d31ac['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4d31ac['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4d31ac['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4d31ac['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x442f4f])=>{const _0x2071aa=_0x4d31ac['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x141cd8=_0x442f4f['start'],_0x210e62=_0x442f4f['end'];const _0x841205=_0x1261a9['model']['schema']['getNearestSelectionRange'](_0x141cd8,'backward'),_0x59f280=_0x1261a9['model']['schema']['getNearestSelectionRange'](_0x210e62,'forward');_0x841205['isCollapsed']&&(_0x141cd8=_0x841205['start']),_0x59f280['isCollapsed']&&(_0x210e62=_0x59f280['end']),_0x2071aa([_0x1261a9['model']['createRange'](_0x141cd8,_0x210e62)]);}),_0x4d31ac['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x35384a),_0x4d31ac['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x35384a)),_0x1261a9['plugins']['has']('ImageCaptionEditing')&&(_0x4d31ac['enableCommand']('toggleImageCaption',(_0x7d9600,_0x10f1d3)=>{const _0x210b16=_0x1261a9['plugins']['get']('ImageCaptionUtils');let _0x2717fd=_0x25e143['getClosestSelectedImageElement'](_0x1261a9['model']['document']['selection']),_0x126f9c=_0x210b16['getCaptionFromImageModelElement'](_0x2717fd);_0x1261a9['model']['change'](()=>{if(_0x126f9c)return void _0x4d31ac['markDeletion'](_0x1261a9['model']['createRangeOn'](_0x126f9c));const _0x46d603=_0x25e143['isBlockImage'](_0x2717fd);_0x7d9600(_0x10f1d3),_0x2717fd=_0x25e143['getClosestSelectedImageElement'](_0x1261a9['model']['document']['selection']),_0x126f9c=_0x210b16['getCaptionFromImageModelElement'](_0x2717fd),_0x4d31ac['markInsertion'](_0x1261a9['model']['createRangeOn'](_0x126f9c),_0x46d603?null:'imageCaption');});}),_0x4d31ac['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x35384a));const _0x5d4a5f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x46d0d4(_0x30d2dd,_0x824157){const _0x5615bd=_0x5d4a5f['findIndex'](({type:_0x5831ef,subType:_0x39dce9})=>_0x30d2dd['type']==_0x5831ef&&_0x30d2dd['subType']==_0x39dce9),_0x518282=_0x5d4a5f['findIndex'](({type:_0x163df7,subType:_0xee1c})=>_0x824157['type']==_0x163df7&&_0x824157['subType']==_0xee1c);if(_0x5615bd<0x0||_0x518282<0x0)return!0x1;const _0x2d3039=_0x30d2dd['getFirstRange'](),_0x139114=_0x824157['getFirstRange']();if((0x0==_0x5615bd||0x1==_0x5615bd)&&0x2==_0x518282&&_0x2d3039['isIntersecting'](_0x139114))return!0x0;if(0x2==_0x5615bd&&0x3==_0x518282){const _0x5a2b31=_0x4d31ac['_findSuggestions'](_0x2d3039,'insertion')['filter'](({suggestion:_0xc95f76,meta:_0x14a21b})=>_0x14a21b['isOwn']&&'convertInlineImageToBlock'==_0xc95f76['subType']);if(_0x5a2b31['length']>0x1&&_0x139114['end']['isEqual'](_0x2d3039['start']))return!0x0;if(0x1==_0x5a2b31['length']&&(_0x2d3039['start']['isEqual'](_0x139114['end'])||_0x2d3039['end']['isEqual'](_0x139114['start'])))return!0x0;}if(0x3==_0x5615bd&&0x3==_0x518282&&_0x2d3039['start']['isBefore'](_0x139114['start'])){const _0x3594d0=_0x2d3039['end']['nodeAfter'],_0xae46df=_0x139114['start']['nodeBefore'];return _0x25e143['isBlockImage'](_0x3594d0)&&_0x3594d0===_0xae46df;}return!0x1;}function _0x35384a(_0x852787,_0x1cc3fa){return _0x46d0d4(_0x852787,_0x1cc3fa)?[_0x852787,_0x1cc3fa]:_0x46d0d4(_0x1cc3fa,_0x852787)?[_0x1cc3fa,_0x852787]:null;}_0x1261a9['plugins']['has']('ImageResize')&&(_0x4d31ac['enableDefaultAttributesIntegration']('resizeImage'),_0x4d31ac['descriptionFactory']['registerAttributeLabel']('resizedWidth',Mt(_0x8ba650,'FORMAT_IMAGE_SIZE'))),_0x1261a9['plugins']['has']('ImageTextAlternativeEditing')&&_0x4d31ac['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1261a9['plugins']['has']('PictureEditing')&&_0x4d31ac['descriptionFactory']['registerDescriptionCallback'](_0x430de5=>{if('attribute'!=_0x430de5['type'])return;const {data:_0x5f0940}=_0x430de5;return _0x5f0940&&'sources'==_0x5f0940['key']?{'type':'format','content':''}:void 0x0;}),_0x1261a9['plugins']['has']('ImageSizeAttributes')&&_0x4d31ac['descriptionFactory']['registerDescriptionCallback'](_0x285f05=>{if('attribute'!=_0x285f05['type'])return;const {data:_0x2548a8}=_0x285f05;return!_0x2548a8||'width'!=_0x2548a8['key']&&'height'!=_0x2548a8['key']?void 0x0:{'type':'format','content':''};}),_0x4d31ac['descriptionFactory']['registerDescriptionCallback'](_0x1b0b9f=>{if(_0x5d4a5f['find'](({type:_0x3803cd,subType:_0x18c44f})=>_0x1b0b9f['type']==_0x3803cd&&_0x1b0b9f['subType']==_0x18c44f))return _0x1b0b9f['previous']?{}:void 0x0;}),_0x4d31ac['descriptionFactory']['registerDescriptionCallback'](_0x20e9d5=>{if('insertion'==_0x20e9d5['type']||'deletion'==_0x20e9d5['type']){const _0x5d1ca2=_0x20e9d5['getContainedElement']();if(_0x5d1ca2&&_0x5d1ca2['is']('element','caption'))return{'type':'insertion'==_0x20e9d5['type']?'addObject':'removeObject','element':_0x5d1ca2,'quantity':0x1};}}),_0x4d31ac['descriptionFactory']['registerDescriptionCallback'](_0x5b72ff=>'formatBlock'==_0x5b72ff['type']&&'convertInlineImageToBlock'==_0x5b72ff['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5b72ff['type']&&'convertBlockImageToInline'==_0x5b72ff['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4d31ac['descriptionFactory']['registerDescriptionCallback'](_0x43cf3f=>{if('attribute'!=_0x43cf3f['type'])return;const {data:_0x5b4119}=_0x43cf3f;if(!_0x5b4119||'alt'!=_0x5b4119['key'])return;const _0x4193d2=_0x5b4119['newValue'];return _0x4193d2?{'type':'format','content':Mt(_0x8ba650,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4193d2+'\x22')}:{'type':'format','content':Mt(_0x8ba650,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x54cf0c=this['editor'],_0x1faf0f=_0x54cf0c['locale'];_0x54cf0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x507352=>{if('formatBlock'!=_0x507352['type']&&'formatInline'!=_0x507352['type'])return;const {data:_0x583128}=_0x507352;if(_0x583128){if('imageTextAlternative'==_0x583128['commandName']){const _0xa51d23=_0x583128['commandParams'][0x0]['newValue'];return _0xa51d23?{'type':'format','content':Mt(_0x1faf0f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xa51d23+'\x22')}:{'type':'format','content':Mt(_0x1faf0f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x583128['commandName']){const _0x3c96f9=_0x583128['commandParams'][0x0]['width'];return _0x3c96f9?{'type':'format','content':Mt(_0x1faf0f,'*Set\x20image\x20width:*\x20%0',_0x3c96f9)}:{'type':'format','content':Mt(_0x1faf0f,'*Reset\x20image\x20width*')};}}});}},ge=class extends _0x26ff96{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x13428a=this['editor']['locale'],_0x2f526b=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f526b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2f526b['descriptionFactory']['registerDescriptionCallback'](_0x379246=>{if('attribute'!=_0x379246['type'])return;const {data:_0x5c813c}=_0x379246;return _0x5c813c&&'src'==_0x5c813c['key']?_0x5c813c['newValue']&&_0x5c813c['oldValue']?{'type':'format','content':Mt(_0x13428a,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x200baf=this['editor']['plugins']['get']('TrackChangesEditing');_0x200baf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x200baf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x200baf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x200baf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3708b9=this['editor'],_0x19a093=_0x3708b9['locale'];_0x3708b9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d5bcc=>{if('formatBlock'!=_0x5d5bcc['type']&&'formatInline'!=_0x5d5bcc['type'])return;const {data:_0x1573bf}=_0x5d5bcc;return _0x1573bf&&'replaceImageSource'==_0x1573bf['commandName']?{'type':'format','content':Mt(_0x19a093,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},fe=class extends _0x26ff96{afterInit(){const _0x10ed78=this['editor'];if(!_0x10ed78['plugins']['has']('ImageStyleEditing'))return;const _0x4c1fbf=_0x10ed78['plugins']['get']('TrackChangesEditing'),_0xd138db=_0x10ed78['plugins']['get']('ImageUtils'),_0x119b0b={};_0x4c1fbf['enableCommand']('imageStyle',(_0x37e145,_0x3a23ad)=>{const _0xa676c5=_0x10ed78['plugins']['get']('Users')['me'],_0xb10f54=_0x10ed78['commands']['get']('imageStyle');let _0x32c066=_0xd138db['getClosestSelectedImageElement'](_0x10ed78['model']['document']['selection']),_0x519ceb=_0x10ed78['model']['createRangeOn'](_0x32c066),_0x2743d6=_0xb10f54['value'];if(_0x2743d6==_0x3a23ad['value'])return;if(_0x3a23ad['value']&&_0xd138db['isInlineImage'](_0x32c066)&&!_0xb10f54['isStyleEnabled'](_0x3a23ad['value']))return;const _0x25cdfe={'commandName':'imageStyle','commandParams':[_0x3a23ad],'formatGroupId':_0x3a663f()};_0x10ed78['model']['change'](()=>{if(_0x4c1fbf['getSuggestions']()['filter'](_0x28a696=>_0x28a696['isInContent']&&_0xa676c5==_0x28a696['author']&&('formatBlock'==_0x28a696['type']||'formatInline'==_0x28a696['type'])&&('imageStylePreApply'==_0x28a696['subType']||'imageStylePostApply'==_0x28a696['subType'])&&_0x28a696['getFirstRange']()['isEqual'](_0x519ceb))['forEach'](_0x197b0a=>_0x4c1fbf['discardSuggestion'](_0x197b0a['head'])),_0x32c066=_0xd138db['getClosestSelectedImageElement'](_0x10ed78['model']['document']['selection']),_0x519ceb=_0x10ed78['model']['createRangeOn'](_0x32c066),_0xb10f54['refresh'](),_0x10ed78['commands']['get']('imageTypeInline')['refresh'](),_0x10ed78['commands']['get']('imageTypeBlock')['refresh'](),_0x2743d6=_0xb10f54['value'],_0x2743d6!=_0x3a23ad['value'])return _0xd138db['isInlineImage'](_0x32c066)&&_0xb10f54['shouldConvertImageType'](_0x3a23ad['value'],_0x32c066)?(_0x37e145({..._0x3a23ad,'setImageSizes':!0x1}),_0x32c066=_0xd138db['getClosestSelectedImageElement'](_0x10ed78['model']['document']['selection']),void _0x4c1fbf['markBlockFormat'](_0x32c066,{..._0x25cdfe,'commandReversedParams':[{'value':_0x2743d6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xd138db['isBlockImage'](_0x32c066)?_0x4c1fbf['markBlockFormat'](_0x32c066,_0x25cdfe,[],'imageStylePostApply'):_0x4c1fbf['markInlineFormat'](_0x519ceb,_0x25cdfe,'imageStylePostApply'));});});for(const _0x579069 of _0x10ed78['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x119b0b[_0x579069['name']]=_0x579069['title']['toLowerCase']();_0x4c1fbf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4c1fbf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4c1fbf['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4c1fbf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x563676])=>{_0xd138db['setImageNaturalSizeAttributes'](_0x563676['getContainedElement']());}),_0x4c1fbf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5a76da,_0x2e8c20)=>{_0x4c1fbf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5a76da,{'commandName':_0x2e8c20['commandName'],'commandParams':_0x2e8c20['commandReversedParams']});}),_0x4c1fbf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2bb55b,_0x2f8646){return _0x5e00a4(_0x2bb55b,_0x2f8646)?[_0x2bb55b,_0x2f8646]:_0x5e00a4(_0x2f8646,_0x2bb55b)?[_0x2f8646,_0x2bb55b]:null;});const _0x4d3ab7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5e00a4(_0x2e7285,_0x59fe01){const _0x2ab1e7=_0x4d3ab7['findIndex'](({type:_0x2267bd,subType:_0x3376b6})=>_0x2e7285['type']==_0x2267bd&&_0x2e7285['subType']==_0x3376b6),_0x3c19fd=_0x4d3ab7['findIndex'](({type:_0x2d6d81,subType:_0x4868af})=>_0x59fe01['type']==_0x2d6d81&&_0x59fe01['subType']==_0x4868af);if(_0x2ab1e7<0x0||_0x3c19fd<0x0)return!0x1;const _0x1018fb=_0x2e7285['getFirstRange'](),_0x5ce9e9=_0x59fe01['getFirstRange']();if((0x0==_0x2ab1e7||0x1==_0x2ab1e7)&&0x2==_0x3c19fd&&_0x1018fb['isIntersecting'](_0x5ce9e9))return!0x0;if(0x2==_0x2ab1e7&&0x3==_0x3c19fd){const _0x1383f7=_0x4c1fbf['_findSuggestions'](_0x1018fb,'insertion')['filter'](({suggestion:_0xbe656b,meta:_0x4342ea})=>_0x4342ea['isOwn']&&'convertInlineImageToBlock'==_0xbe656b['subType']);if(_0x1383f7['length']>0x1&&_0x5ce9e9['end']['isEqual'](_0x1018fb['start']))return!0x0;if(0x1==_0x1383f7['length']&&(_0x1018fb['start']['isEqual'](_0x5ce9e9['end'])||_0x1018fb['end']['isEqual'](_0x5ce9e9['start'])))return!0x0;}if(0x3==_0x2ab1e7&&0x3==_0x3c19fd&&_0x1018fb['start']['isBefore'](_0x5ce9e9['start'])){const _0x3af379=_0x1018fb['end']['nodeAfter'],_0x34e965=_0x5ce9e9['start']['nodeBefore'];return _0xd138db['isBlockImage'](_0x3af379)&&_0x3af379===_0x34e965;}return!0x1;}_0x10ed78['model']['document']['registerPostFixer'](()=>{let _0x31756b=!0x1;const _0x1de508=Array['from'](_0x10ed78['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5628a4,data:_0x1152f2}of _0x1de508){const {group:_0x3b4eb8,type:_0x209fd9,subType:_0x4c63a1,id:_0x3c3209}=tt(_0x5628a4);if('suggestion'==_0x3b4eb8&&_0x4c1fbf['hasSuggestion'](_0x3c3209)){if('formatBlock'==_0x209fd9&&('imageStylePreApply'==_0x4c63a1||'imageStylePostApply'==_0x4c63a1)){const _0x18c130=_0x4c1fbf['getSuggestion'](_0x3c3209);if(_0x1152f2['newRange']){const _0x4c593=_0x18c130['getFirstRange']()['getContainedElement']();if(_0xd138db['isBlockImage'](_0x4c593))continue;_0x4c1fbf['discardSuggestion'](_0x18c130),_0x31756b=!0x0;}}if('insertion'==_0x209fd9&&'imageCaption'==_0x4c63a1&&!_0x1152f2['newRange']){const _0xbb68a9=_0x4c1fbf['getSuggestion'](_0x3c3209);_0xbb68a9['next']&&_0xbb68a9['next']['isInContent']&&(_0x4c1fbf['discardSuggestion'](_0xbb68a9['next']),_0x31756b=!0x0);}}}return _0x31756b;}),this['_registerLegacyDescription'](_0x119b0b);}_registerLegacyDescription(_0x42c8d3){const _0x18f983=this['editor'],_0x2a6682=_0x18f983['locale'];_0x18f983['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ab2a9=>{if('formatBlock'!=_0x2ab2a9['type']&&'formatInline'!=_0x2ab2a9['type'])return;const {data:_0x2a699f}=_0x2ab2a9;if(!_0x2a699f||'imageStyle'!=_0x2a699f['commandName'])return;const _0x3ee5cc=_0x2a699f['commandParams'][0x0]['value'];return _0x35bf52('side'===_0x3ee5cc?Mt(_0x2a6682,'FORMAT_SIDE_IMAGE'):_0x42c8d3[_0x3ee5cc]||_0x3ee5cc);function _0x35bf52(_0x1a32c1){return{'type':'format','content':Mt(_0x2a6682,'*Format:*\x20%0',_0x1a32c1)};}});}},me=class extends _0x26ff96{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x2732d6){super(_0x2732d6),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x40301c=this['editor'],_0x3f4cba=_0x40301c['commands']['get']('importWord'),_0x240d70=_0x40301c['commands']['get']('trackChanges');_0x3f4cba&&(_0x3f4cba['on']('execute',(_0x57d834,[,_0x5b56af])=>{this['_trackChangesValueDuringImport']=_0x240d70['value'],_0x5b56af['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3f4cba,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3f4cba,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x240d70['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x40301c['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x3868a3,_0x939fcd){const {suggestions:_0x3a8d9c}=_0x939fcd,_0x63e45f=this['editor']['commands']['get']('trackChanges'),_0xd036a3=_0x63e45f['value'];this['_trackChangesValueDuringImport']!==_0xd036a3&&(_0x63e45f['execute'](),this['_trackChangesExecuted']=!0x0),_0x3a8d9c&&_0x3a8d9c['forEach'](({id:_0x2d65bb,type:_0x3f94a2,author:_0x798b26,created_at:_0xa9a1e6})=>{const _0x22e09={'id':_0x2d65bb,'type':_0x3f94a2,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x798b26,'createdAt':_0xa9a1e6?new Date(_0xa9a1e6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x22e09);});}},Ee=class extends _0x26ff96{afterInit(){const _0x2f9661=this['editor'],_0x5af94f=_0x2f9661['plugins']['get']('TrackChangesEditing');if(_0x2f9661['plugins']['has']('IndentEditing')&&(_0x5af94f['enableCommand']('indent'),_0x5af94f['enableCommand']('outdent')),_0x2f9661['plugins']['has']('IndentBlock')){for(const _0x5ee261 of['indentBlock','outdentBlock'])_0x5af94f['enableDefaultAttributesIntegration'](_0x5ee261);if(_0x2f9661['plugins']['has']('ListEditing')){for(const _0x10ef33 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x5af94f['enableDefaultAttributesIntegration'](_0x10ef33);}}const _0x3f714e=_0x2f9661['locale'];_0x5af94f['descriptionFactory']['registerAttributeLabel']('blockIndent',Mt(_0x3f714e,'FORMAT_INDENT')),_0x5af94f['descriptionFactory']['registerAttributeLabel']('blockIndentList',Mt(_0x3f714e,'FORMAT_INDENT')),_0x5af94f['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Mt(_0x3f714e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4ee7d9=this['editor'],_0x15cf9b=_0x4ee7d9['locale'],_0x5cd48e=_0x4ee7d9['plugins']['get']('TrackChangesEditing');_0x5cd48e['descriptionFactory']['registerDescriptionCallback'](_0x4948a0=>{if('formatBlock'!=_0x4948a0['type'])return;const {data:_0x58b58e}=_0x4948a0;if(!_0x58b58e)return;if('indentBlock'!=_0x58b58e['commandName']&&'outdentBlock'!=_0x58b58e['commandName'])return;const _0x234842=_0x4948a0['getItems']()[0x0],_0x4dd357=_0x5cd48e['descriptionFactory']['getItemLabel'](_0x234842);return'indentBlock'==_0x58b58e['commandName']?{'type':'format','content':Mt(_0x15cf9b,'*Indent:*\x20%0',_0x4dd357)}:'outdentBlock'==_0x58b58e['commandName']?{'type':'format','content':Mt(_0x15cf9b,'*Outdent:*\x20%0',_0x4dd357)}:void 0x0;});}},Te=class extends _0x26ff96{static get requires(){return[mt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},_e=class extends _0x26ff96{afterInit(){const _0x389190=this['editor'];if(!_0x389190['plugins']['has']('LinkEditing'))return;const _0x42bbfe=_0x389190['plugins']['get']('TrackChangesEditing'),_0x143753=_0x389190['commands']['get']('link');_0x42bbfe['enableDefaultAttributesIntegration']('link'),_0x42bbfe['enableDefaultAttributesIntegration']('unlink');for(const _0x170c64 of _0x143753['manualDecorators'])_0x42bbfe['descriptionFactory']['registerAttributeLabel'](_0x170c64['id'],'link\x20('+_0x170c64['label']['toLowerCase']()+')');_0x42bbfe['descriptionFactory']['registerDescriptionCallback'](_0x80ea79=>{if('attribute'!=_0x80ea79['type'])return;const {data:_0x217387}=_0x80ea79;if(!_0x217387||'linkHref'!=_0x217387['key'])return;const _0x4030d1=_0x217387['newValue'],_0xa245c4=_0x389190['locale'];return{'type':'format','content':null==_0x4030d1?Mt(_0xa245c4,'*Remove\x20link*'):Mt(_0xa245c4,'*Set\x20link:*\x20%0','\x22'+_0x4030d1+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x6159d0=this['editor'],_0x17f891=_0x6159d0['locale'];_0x6159d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a35de=>{if('formatInline'!=_0x4a35de['type'])return;const {data:_0x404cff}=_0x4a35de;if(_0x404cff){if('link'==_0x404cff['commandName']){const _0x590fc3=_0x404cff['commandParams'][0x0];return{'type':'format','content':Mt(_0x17f891,'*Set\x20link:*\x20%0','\x22'+_0x590fc3+'\x22')};}return'unlink'==_0x404cff['commandName']?{'type':'format','content':Mt(_0x17f891,'*Remove\x20link*')}:void 0x0;}});}},pe=class extends _0x26ff96{afterInit(){const _0x598a43=this['editor'],_0x4d3931=_0x598a43['locale'];if(!_0x598a43['plugins']['has']('LegacyListEditing'))return;const _0x17770c=_0x598a43['plugins']['get']('TrackChangesEditing'),_0x17d939=_0x598a43['plugins']['has']('LegacyTodoListEditing');function _0x5063ec(_0xeef08a){return()=>{const _0x10df45=_0x598a43['model']['document']['selection'],_0x30a1c6=_0x598a43['commands']['get'](_0xeef08a);if(_0x30a1c6['value'])return void _0x598a43['execute']('paragraph',{});const _0x39a4b7=_0xeef08a['slice'](0x0,-0x4),_0x44bbcf=function(_0x28a49a,_0x4e02a5,_0x83dba1){let _0x114ff9=Array['from'](_0x28a49a)['filter'](_0x3b524d=>function(_0x592fbf,_0x3c9697){return _0x3c9697['checkChild'](_0x592fbf['parent'],'listItem')&&!_0x3c9697['isObject'](_0x592fbf);}(_0x3b524d,_0x83dba1));_0x114ff9=_0x114ff9['filter'](_0x13e0ca=>!_0x13e0ca['is']('element','listItem')||_0x13e0ca['getAttribute']('listType')!=_0x4e02a5);const _0x46b75d=new Set();for(const _0x3922b1 of _0x114ff9)_0x3922b1['is']('element','listItem')?_0x46b75d['add'](Le(_0x3922b1)):_0x46b75d['add'](_0x3922b1);return Array['from'](_0x46b75d);}(_0x10df45['getSelectedBlocks'](),_0x39a4b7,_0x598a43['model']['schema']);_0x598a43['model']['change'](()=>{for(const _0x48152f of _0x44bbcf)_0x17770c['markBlockFormat'](_0x48152f,{'commandName':_0xeef08a,'commandParams':[{'forceValue':!_0x30a1c6['value']}],'formatGroupId':'blockName'},Ie(_0x48152f));});};}function _0x2fd665(_0x8e7cc1){return()=>{const _0x401cd0=function(_0x33c3a1){let _0x3c22f3=Array['from'](_0x33c3a1);const _0x2a344d=_0x3c22f3['findIndex'](_0x14b588=>'listItem'!=_0x14b588['name']);return _0x2a344d>-0x1&&(_0x3c22f3=_0x3c22f3['slice'](0x0,_0x2a344d)),_0x3c22f3;}(_0x598a43['model']['document']['selection']['getSelectedBlocks']()),_0x42e908=_0x598a43['model']['createRange'](_0x598a43['model']['createPositionAt'](_0x401cd0[0x0],'before'),_0x598a43['model']['createPositionAt'](_0x401cd0[_0x401cd0['length']-0x1],'end'));_0x598a43['model']['change'](()=>{_0x17770c['markBlockFormat'](_0x42e908,{'commandName':_0x8e7cc1,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4028ce){const _0x1d4ab3=new Set();for(const _0x339aeb of _0x4028ce){let _0x3a47ae=_0x339aeb['nextSibling'];for(;_0x3a47ae&&_0x3a47ae['getAttribute']('listIndent')>_0x339aeb['getAttribute']('listIndent');)_0x1d4ab3['add'](_0x3a47ae),_0x3a47ae=_0x3a47ae['nextSibling'];}return Array['from'](_0x1d4ab3);}(_0x401cd0));});};}_0x17770c['enableCommand']('numberedList',_0x5063ec('numberedList')),_0x17770c['enableCommand']('bulletedList',_0x5063ec('bulletedList')),_0x17d939&&_0x17770c['enableCommand']('todoList',_0x5063ec('todoList')),_0x17770c['enableCommand']('indentList',_0x2fd665('indentList')),_0x17770c['enableCommand']('outdentList',_0x2fd665('outdentList')),_0x17d939&&_0x17770c['enableCommand']('checkTodoList',()=>{const _0x49bda5=_0x598a43['commands']['get']('checkTodoList'),_0xbe2876=Array['from'](_0x49bda5['_selectedElements']);_0xbe2876['filter'](_0x4b6a26=>_0x4b6a26['getAttribute']('todoListChecked')!=_0x49bda5['value']),_0x598a43['model']['change'](()=>{for(const _0x25be23 of _0xbe2876)_0x17770c['markBlockFormat'](_0x25be23,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x49bda5['value']}]});});}),_0x17770c['descriptionFactory']['registerElementLabel']('listItem',_0x434bfb=>Mt(_0x4d3931,'ELEMENT_LIST_ITEM',_0x434bfb)),_0x17770c['descriptionFactory']['registerDescriptionCallback'](_0x459127=>{if('formatBlock'!=_0x459127['type']&&'formatInline'!=_0x459127['type'])return;const {data:_0x44807d}=_0x459127;if(_0x44807d){if('numberedList'==_0x44807d['commandName']||'bulletedList'==_0x44807d['commandName']||'todoList'==_0x44807d['commandName'])switch(_0x44807d['commandName']['replace']('List','')){case'bulleted':return _0x546150(Mt(_0x4d3931,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x546150(Mt(_0x4d3931,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x546150(Mt(_0x4d3931,'ELEMENT_TODO_LIST'));}if('indentList'==_0x44807d['commandName'])return{'type':'format','content':Mt(_0x4d3931,'*Indent:*\x20%0',Mt(_0x4d3931,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x44807d['commandName'])return{'type':'format','content':Mt(_0x4d3931,'*Outdent:*\x20%0',Mt(_0x4d3931,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x44807d['commandName'])return _0x44807d['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x4d3931,'*Check\x20item*')}:{'type':'format','content':Mt(_0x4d3931,'*Uncheck\x20item*')};}function _0x546150(_0x3d3fb6){return{'type':'format','content':Mt(_0x4d3931,'*Change\x20to:*\x20%0',_0x3d3fb6)};}});}};function Le(_0x3a9d93){const _0x36482f=_0x3a9d93['getAttribute']('listIndent');if(0x0==_0x36482f)return _0x3a9d93;let _0x2a908d=_0x3a9d93;for(;_0x3a9d93['previousSibling']&&_0x3a9d93['previousSibling']['is']('element','listItem');){const _0x37605d=_0x3a9d93['previousSibling']['getAttribute']('listIndent');if(_0x37605d==_0x36482f)_0x2a908d=_0x3a9d93['previousSibling'];else{if(_0x37605d<_0x36482f)break;}_0x3a9d93=_0x3a9d93['previousSibling'];}return _0x2a908d;}function Ie(_0x555144){const _0x4ed182=[];if(_0x555144['is']('element','listItem')&&_0x555144['getAttribute']('listIndent')>0x0){let _0x19da6d=_0x555144['nextSibling'];for(;_0x19da6d&&'listItem'==_0x19da6d['name']&&_0x19da6d['getAttribute']('listIndent')==_0x555144['getAttribute']('listIndent');)_0x4ed182['push'](_0x19da6d),_0x19da6d=_0x19da6d['nextSibling'];}return _0x4ed182;}var Ae=class extends _0x26ff96{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x259954=this['editor']['config']['get']('list.properties'),_0x326f55=this['editor']['plugins']['get']('TrackChangesEditing');_0x259954['styles']&&_0x326f55['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x259954['reversed']&&_0x326f55['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x259954['startIndex']&&_0x326f55['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x326f55['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x275147,_0x462ff4={}){const _0x291c65=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bdc17=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x291c65['markMultiRangeBlockFormat'](_0x5bdc17,{'commandName':'listStyle','commandParams':[{'type':_0x462ff4['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x59b88d,_0x5122b0={}){const _0x533c33=this['editor']['plugins']['get']('TrackChangesEditing'),_0x166307=this['_getSuggestionBlocks'](_0x6b7530=>_0x6b7530['is']('element','listItem')&&'numbered'===_0x6b7530['getAttribute']('listType'));if(_0x166307['length']<0x1)return;const _0x415c53=_0x166307['map'](_0x43c57d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x43c57d,'before'),this['editor']['model']['createPositionAt'](_0x43c57d,0x0)));this['editor']['model']['change'](()=>{_0x533c33['markMultiRangeBlockFormat'](_0x415c53,{'commandName':'listReversed','commandParams':[{'reversed':_0x5122b0['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x3afc9e,_0x54be03={}){const _0x35bf59=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e5a93=this['_getSuggestionBlocks'](_0x5098f6=>_0x5098f6['is']('element','listItem')&&'numbered'===_0x5098f6['getAttribute']('listType'));if(_0x2e5a93['length']<0x1)return;const _0x1a5e18=_0x2e5a93['map'](_0x1e5fc8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1e5fc8,'before'),this['editor']['model']['createPositionAt'](_0x1e5fc8,0x0)));this['editor']['model']['change'](()=>{_0x35bf59['markMultiRangeBlockFormat'](_0x1a5e18,{'commandName':'listStart','commandParams':[{'startIndex':_0x54be03['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0xa55583){if('formatBlock'!=_0xa55583['type']&&'formatInline'!=_0xa55583['type'])return;const _0x305fc9=this['editor']['locale'],{data:_0x26d45b}=_0xa55583;if(!_0x26d45b)return;let _0x81b6c3,_0x1f25ae;switch(_0x26d45b['commandName']){case'listStyle':_0x81b6c3='*Change\x20to:*\x20%0',_0x1f25ae={'type':'format','content':Mt(_0x305fc9,_0x81b6c3,Mt(_0x305fc9,this['_getTranslationKeyForListStyle'](_0x26d45b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x81b6c3=_0x26d45b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1f25ae={'type':'format','content':Mt(_0x305fc9,_0x81b6c3)};break;case'listStart':_0x81b6c3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1f25ae={'type':'format','content':Mt(_0x305fc9,_0x81b6c3,_0x26d45b['commandParams'][0x0]['startIndex'])};}return _0x1f25ae;}_getSuggestionBlocksForListStyle(){const _0x2b6312=this['editor']['plugins']['get']('LegacyListUtils');let _0x5e2ffa=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5e2ffa[0x0]?.['is']('element','listItem')&&_0x5e2ffa['unshift'](..._0x2b6312['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5e2ffa[_0x5e2ffa['length']-0x1]?.['is']('element','listItem')&&_0x5e2ffa['push'](..._0x2b6312['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5e2ffa=[...new Set(_0x5e2ffa)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5e2ffa=_0x5e2ffa['filter'](_0x22c2d3=>_0x22c2d3['is']('element','listItem'))),_0x5e2ffa;}_getSuggestionBlocks(_0x5afd13){const _0x793f11=this['editor']['plugins']['get']('LegacyListUtils');let _0x2c5d7a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5afd13)['map'](_0xa2b6bd=>{const _0x403b6b=this['editor']['model']['createPositionAt'](_0xa2b6bd,0x0);return[..._0x793f11['getSiblingNodes'](_0x403b6b,'backward'),..._0x793f11['getSiblingNodes'](_0x403b6b,'forward')];})['flat']();return _0x2c5d7a=[...new Set(_0x2c5d7a)],_0x2c5d7a;}_getTranslationKeyForListStyle(_0x43c399){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x43c399)||'default')['toUpperCase']()+'_LIST_'+_0x43c399['toUpperCase']()['replace'](/-/g,'_');}},be=class extends _0x26ff96{afterInit(){const _0x2aca69=this['editor'];if(!_0x2aca69['plugins']['has']('MediaEmbedEditing'))return;const _0x138792=_0x2aca69['plugins']['get']('TrackChangesEditing'),_0x53a1c7=_0x2aca69['locale'];_0x138792['enableCommand']('mediaEmbed'),_0x138792['descriptionFactory']['registerElementLabel']('media',_0x240809=>Mt(_0x53a1c7,'ELEMENT_MEDIA',_0x240809)),_0x2aca69['plugins']['has']('MediaEmbedResizeEditing')&&(_0x138792['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x138792['descriptionFactory']['registerDescriptionCallback'](_0x45ae06=>{if('attribute'!=_0x45ae06['type'])return;const {data:_0x39354c}=_0x45ae06;if(!_0x39354c||'resizedWidth'!=_0x39354c['key'])return;const _0x115cc6=_0x45ae06['getContainedElement']();if(!_0x115cc6||!_0x115cc6['is']('element','media'))return;const _0x109ccb=Mt(_0x53a1c7,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Mt(_0x53a1c7,'*Set\x20format:*\x20%0',_0x109ccb)};}));}},ke=class extends _0x26ff96{afterInit(){const _0xee027c=this['editor'];if(!_0xee027c['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x408da6=_0xee027c['plugins']['get']('TrackChangesEditing'),_0x209ab8=_0xee027c['locale'],_0x2702c8=_0xee027c['plugins']['get']('MediaEmbedStyleEditing'),_0x3893cd={};for(const _0x3af2f2 of _0x2702c8['normalizedStyles'])_0x3893cd[_0x3af2f2['name']]=_0x3af2f2['title']['toLowerCase']();const _0x52056c=_0x2702c8['normalizedStyles']['find'](_0x271a1f=>_0x271a1f['isDefault'])?.['name'];_0x408da6['enableCommand']('mediaStyle',(_0x37a6ad,_0x407b7b)=>{const _0x3a7112=_0xee027c['plugins']['get']('Users')['me'],_0x544835=_0xee027c['commands']['get']('mediaStyle'),_0x110788=function(_0x2e4c4c){const _0x425b32=_0x2e4c4c['model']['document']['selection']['getSelectedElement']();return _0x425b32&&_0x425b32['is']('element','media')?_0x425b32:null;}(_0xee027c);if(!_0x110788)return;const _0x237036=_0xee027c['model']['createRangeOn'](_0x110788);let _0x527455=_0x544835['value'];if(_0x527455==_0x407b7b['value'])return;const _0xe1e1a1={'commandName':'mediaStyle','commandParams':[_0x407b7b],'formatGroupId':_0x3a663f()};_0xee027c['model']['change'](()=>{_0x408da6['getSuggestions']()['filter'](_0x11779a=>_0x11779a['isInContent']&&_0x3a7112==_0x11779a['author']&&'formatBlock'==_0x11779a['type']&&'mediaStylePostApply'==_0x11779a['subType']&&_0x11779a['getFirstRange']()['isEqual'](_0x237036))['forEach'](_0x48cb0b=>_0x408da6['discardSuggestion'](_0x48cb0b['head'])),_0x544835['refresh'](),_0x527455=_0x544835['value'],_0x527455!=_0x407b7b['value']&&_0x408da6['markBlockFormat'](_0x110788,{..._0xe1e1a1,'commandReversedParams':[{'value':'string'==typeof _0x527455?_0x527455:null}]},[],'mediaStylePostApply');});}),_0x408da6['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x408da6['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x1f73a3,_0x5943a1)=>{_0x408da6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1f73a3,{'commandName':_0x5943a1['commandName'],'commandParams':_0x5943a1['commandReversedParams']});}),_0x408da6['descriptionFactory']['registerDescriptionCallback'](_0x5ec7da=>{if('formatBlock'!=_0x5ec7da['type'])return;const {data:_0x1e8569}=_0x5ec7da;if(!_0x1e8569||'mediaStyle'!=_0x1e8569['commandName'])return;const _0x44853f=_0x1e8569['commandParams'][0x0]['value']||_0x52056c;if(!_0x44853f)return;const _0x8278e8=_0x3893cd[_0x44853f]||_0x44853f;return{'type':'format','content':Mt(_0x209ab8,'*Format:*\x20%0',_0x8278e8)};});}},Ce=class extends _0x26ff96{afterInit(){const _0x27309e=this['editor'];_0x27309e['plugins']['has']('MentionEditing')&&_0x27309e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},Re=class extends _0x26ff96{afterInit(){const _0x4612c2=this['editor'];if(!_0x4612c2['plugins']['has']('MergeFieldsEditing'))return;const _0x4c5ff8=_0x4612c2['plugins']['get']('TrackChangesEditing'),_0x41b336=_0x4612c2['locale'];_0x4c5ff8['enableCommand']('insertMergeField'),_0x4c5ff8['enableCommand']('insertMergeFieldBlock'),_0x4c5ff8['enableCommand']('insertMergeFieldImage'),_0x4c5ff8['descriptionFactory']['registerElementLabel']('mergeField',_0xb78ea0=>Mt(_0x41b336,'ELEMENT_MERGE_FIELD',_0xb78ea0)),_0x4c5ff8['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5cf399=>Mt(_0x41b336,'ELEMENT_MERGE_FIELD',_0x5cf399)),_0x4c5ff8['descriptionFactory']['registerDescriptionCallback'](_0xee53dd=>{if('insertion'!=_0xee53dd['type']&&'deletion'!=_0xee53dd['type'])return;const _0x251a50=_0xee53dd['getContainedElement']();if(null==_0x251a50)return;const _0x102e2b=_0x4612c2['plugins']['get']('MergeFieldsEditing');let _0xaed41b;switch(_0x102e2b['getMergeFieldType'](_0x251a50)){case null:return;case'image':{const _0x10c422=_0x102e2b['unwrapAffixes'](_0x251a50['getAttribute']('src'));_0xaed41b=_0x102e2b['getLabel'](_0x10c422)||_0x10c422;break;}default:{const _0x53aadf=_0x251a50['getAttribute']('id');_0xaed41b=_0x102e2b['getLabel'](_0x53aadf)||_0x53aadf;break;}}return'insertion'==_0xee53dd['type']?{'type':'insertion','content':Mt(_0x41b336,'*Insert:*\x20%0','\x22'+_0xaed41b+'\x22\x20'+Mt(_0x41b336,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Mt(_0x41b336,'*Remove:*\x20%0','\x22'+_0xaed41b+'\x22\x20'+Mt(_0x41b336,'ELEMENT_MERGE_FIELD'))};});}},ye=class extends _0x26ff96{afterInit(){const _0x13bbc3=this['editor'],_0x3d32ed=_0x13bbc3['plugins']['get']('TrackChangesEditing');_0x13bbc3['plugins']['has']('MultiLevelList')&&(_0x3d32ed['enableDefaultAttributesIntegration']('multiLevelList'),_0x3d32ed['descriptionFactory']['registerDescriptionCallback'](_0x289593=>this['handleDescriptions'](_0x289593)));}handleDescriptions(_0x31b6c0){const _0x163e41=this['editor']['locale'],{data:_0x2e1a4d}=_0x31b6c0,_0x139d31={'type':'format','content':''};if(_0x2e1a4d&&'listMarkerStyle'==_0x2e1a4d['key']){if(!_0x2e1a4d['oldValue'])return{'type':'format','content':Mt(_0x163e41,'*Set\x20format:*\x20%0',Mt(_0x163e41,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2e1a4d['newValue']+')'};if(!_0x2e1a4d['newValue']){let _0x487fd1=_0x31b6c0['head'];for(;_0x487fd1;){if(_0x487fd1['data']&&'listType'==_0x487fd1['data']['key']&&_0x487fd1['data']['newValue'])return _0x139d31;_0x487fd1=_0x487fd1['next'];}return{'type':'format','content':Mt(_0x163e41,'*Remove\x20format:*\x20%0',Mt(_0x163e41,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2e1a4d['oldValue']+')'};}}}},Ne=class extends _0x26ff96{afterInit(){const _0x18b512=this['editor'];if(!_0x18b512['plugins']['has']('PageBreakEditing'))return;_0x18b512['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xc24868=_0x18b512['plugins']['get']('TrackChangesEditing'),_0x5ba527=_0x18b512['locale'];_0xc24868['descriptionFactory']['registerElementLabel']('pageBreak',_0x3c3c26=>Mt(_0x5ba527,'ELEMENT_PAGE_BREAK',_0x3c3c26));}},Se=class extends _0x26ff96{afterInit(){const _0x372ab3=this['editor'];if(!_0x372ab3['plugins']['has']('Paragraph'))return;const _0x50478c=_0x372ab3['locale'],_0x104f28=_0x372ab3['plugins']['get']('TrackChangesEditing');_0x104f28['descriptionFactory']['registerElementLabel']('paragraph',_0x4b3579=>Mt(_0x50478c,'ELEMENT_PARAGRAPH',_0x4b3579)),_0x104f28['enableDefaultAttributesIntegration']('paragraph'),_0x104f28['enableCommand']('insertParagraph');const _0x10db7b=_0x104f28['descriptionFactory'];_0x10db7b['registerDescriptionCallback'](_0x23198c=>{if('insertion'!==_0x23198c['type'])return;const {start:_0xc7ea34,end:_0x3f8964}=_0x23198c['getFirstRange']();if(!_0xc7ea34['isTouching'](_0x3f8964)||!_0xc7ea34['nodeAfter'])return;const _0x3cb357=_0x372ab3['model']['schema'],_0x237bae=_0xc7ea34['nodeAfter'];return _0x3cb357['isBlock'](_0x237bae)&&!_0x3cb357['isLimit'](_0x237bae)&&_0x3cb357['checkChild'](_0x237bae,'$text')?{'type':'insertion','content':Mt(_0x50478c,'*Insert:*\x20%0',_0x10db7b['getItemLabel'](_0x237bae,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x31ec6d=this['editor'],_0x48ad1a=_0x31ec6d['locale'];_0x31ec6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a1183=>{if('formatBlock'!=_0x2a1183['type'])return;const {data:_0x14727f}=_0x2a1183;return _0x14727f&&'paragraph'==_0x14727f['commandName']?{'type':'format','content':Mt(_0x48ad1a,'*Change\x20to:*\x20%0',Mt(_0x48ad1a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Me=class extends _0x26ff96{afterInit(){const _0x58ad41=this['editor'];_0x58ad41['commands']['get']('replaceSource')&&_0x58ad41['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Oe=class extends _0x26ff96{afterInit(){const _0x30c3c5=this['editor'];_0x30c3c5['plugins']['has']('RemoveFormatEditing')&&(_0x30c3c5['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x185dba=this['editor'];_0x185dba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x265b8f=>{if('formatBlock'!=_0x265b8f['type']&&'formatInline'!=_0x265b8f['type'])return;const {data:_0x137141}=_0x265b8f;return _0x137141&&'removeFormat'==_0x137141['commandName']?{'type':'format','content':Mt(_0x185dba['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},we=class extends _0x26ff96{afterInit(){const _0x37d077=this['editor'];if(!_0x37d077['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x36e411=_0x37d077['plugins']['get']('TrackChangesEditing');_0x36e411['enableCommand']('goToPreviousRestrictedEditingException'),_0x36e411['enableCommand']('goToNextRestrictedEditingException');const _0x4a49a2=_0x37d077['plugins']['get']('RestrictedEditingModeEditing');_0x4a49a2['enableCommand']('trackChanges'),_0x4a49a2['enableCommand']('acceptSuggestion'),_0x4a49a2['enableCommand']('discardSuggestion'),_0x4a49a2['enableCommand']('acceptAllSuggestions'),_0x4a49a2['enableCommand']('discardAllSuggestions'),_0x4a49a2['enableCommand']('acceptSelectedSuggestions'),_0x4a49a2['enableCommand']('discardSelectedSuggestions');}},Fe=class extends _0x26ff96{afterInit(){const _0x33f4ad=this['editor'];if(!_0x33f4ad['plugins']['has']('ShiftEnter'))return;const _0x44ed70=_0x33f4ad['plugins']['get']('TrackChangesEditing');_0x44ed70['enableCommand']('shiftEnter'),_0x44ed70['descriptionFactory']['registerElementLabel']('softBreak',_0x32e4fd=>Mt(_0x33f4ad['locale'],'ELEMENT_LINE_BREAK',_0x32e4fd));}};function Be(_0x38365e,_0x7d4739,_0x5c921a){const _0x3c568e=[];for(const _0x1a8a24 of _0x7d4739['getItems']())_0x1a8a24['hasAttribute'](_0x38365e)&&_0x3c568e['push'](_0x5c921a['createRangeOn'](_0x1a8a24));return _0x3c568e;}var ve=class extends _0x26ff96{afterInit(){const _0x5ad7a8=this['editor'],_0x3b63de=_0x5ad7a8['plugins']['get']('TrackChangesEditing');_0x5ad7a8['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x3b63de['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x7f5626=this['editor'],_0x3e2dd9=_0x7f5626['model'],_0x374fe8=_0x7f5626['locale'],_0x4d8f22=_0x7f5626['plugins']['get']('TrackChangesEditing'),_0x55a9b8='restrictedEditingException',_0xf01f43=_0x7f5626['commands']['get'](_0x55a9b8);_0x4d8f22['enableCommand'](_0x55a9b8,(_0x19e5eb,_0x582dd4={})=>{const _0x456569=_0x3e2dd9['document']['selection'];if(_0x456569['isCollapsed'])return void _0x19e5eb(_0x582dd4);const _0x2de0c2=void 0x0!==_0x582dd4['forceValue']?_0x582dd4['forceValue']:!_0xf01f43['value'];_0x3e2dd9['change'](()=>{const _0x5530d0=Array['from'](_0x456569['getRanges']());for(const _0x3f77ab of _0x5530d0){const _0x2f5f08=_0x2de0c2?[_0x3f77ab]:Be(_0x55a9b8,_0x3f77ab,_0x3e2dd9);for(const _0x5b924e of _0x2f5f08)_0x4d8f22['markInlineFormat'](_0x5b924e,{'commandName':_0x55a9b8,'commandParams':[{'forceValue':_0x2de0c2}]});}});}),_0x4d8f22['descriptionFactory']['registerDescriptionCallback'](_0x53afd6=>{if('formatBlock'!=_0x53afd6['type']&&'formatInline'!=_0x53afd6['type'])return;const {data:_0x15efd9}=_0x53afd6;return _0x15efd9&&_0x15efd9['commandName']==_0x55a9b8?_0x15efd9['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x374fe8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0x374fe8,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x409d5e=this['editor'],_0x33004f=_0x409d5e['locale'],_0x20325c=_0x409d5e['plugins']['get']('TrackChangesEditing'),_0x4c356f='restrictedEditingExceptionBlock',_0xb50dde=this['editor']['commands']['get'](_0x4c356f);_0x20325c['enableCommand'](_0x4c356f,(_0x52ac58,_0x3140b0={})=>{const _0x4d5dd1=this['editor']['model']['document']['selection'],_0x5453fd=_0x3140b0&&void 0x0!==_0x3140b0['forceValue']?_0x3140b0['forceValue']:!_0xb50dde['value'];let _0x474e24=[];if(_0x5453fd){const _0x5ab37f=Array['from'](_0x4d5dd1['getSelectedBlocks']())['filter'](_0x32e3dd=>function(_0x5a95fb){return!!_0x5a95fb['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x32e3dd)||function(_0x2c49f9,_0x465bb6){const _0x40c4e9=_0x465bb6['createContext'](_0x2c49f9['parent']);return!!_0x465bb6['checkChild'](_0x40c4e9,'restrictedEditingException')&&!!_0x465bb6['checkChild'](_0x40c4e9['push']('restrictedEditingException'),_0x2c49f9);}(_0x32e3dd,this['editor']['model']['schema']));_0x474e24=bt(_0x5ab37f,_0x409d5e['model']);}else{const _0x465257=Array['from'](_0x4d5dd1['getSelectedBlocks']())['map'](_0x82e010=>function(_0x262649){let _0x3e0eea=_0x262649;for(;_0x3e0eea['parent'];){if('restrictedEditingException'==_0x3e0eea['parent']['name'])return _0x3e0eea;_0x3e0eea=_0x3e0eea['parent'];}return null;}(_0x82e010))['filter'](_0x4fa393=>!!_0x4fa393);_0x474e24=bt(_0x465257,_0x409d5e['model']);}_0x409d5e['model']['change'](()=>{for(const _0x42ee29 of _0x474e24)_0x20325c['markBlockFormat'](_0x42ee29,{'commandName':_0x4c356f,'commandParams':[{'forceValue':_0x5453fd}]});});}),_0x20325c['descriptionFactory']['registerDescriptionCallback'](_0x3a5db9=>{const {data:_0x255095}=_0x3a5db9;if(_0x255095&&_0x255095['commandName']==_0x4c356f)return _0x255095['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x33004f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0x33004f,'FORMAT_RESTRICTED_DISABLED')};});}},De=class extends _0x26ff96{afterInit(){const _0x4c98a1=this['editor'];_0x4c98a1['plugins']['has']('Style')&&_0x4c98a1['plugins']['has']('DataSchema')&&(_0x4c98a1['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x74712a=this['editor'],_0x6ff658=_0x74712a['locale'];_0x74712a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x180bc9=>{if('formatBlock'!=_0x180bc9['type']&&'formatInline'!=_0x180bc9['type'])return;const {data:_0x171013}=_0x180bc9;return _0x171013&&'style'===_0x171013['commandName']?_0x171013['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x6ff658,'*Set\x20format:*\x20%0',_0x171013['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Mt(_0x6ff658,'*Remove\x20format:*\x20%0',_0x171013['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Ue=class extends _0x26ff96{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x3d7786){super(_0x3d7786),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x326785=this['editor'],_0x18b75e=_0x326785['model']['document']['selection'];if(!_0x326785['plugins']['has']('TableEditing'))return;const _0x17049d=_0x326785['locale'],_0x33fdaf=_0x326785['plugins']['get']('TrackChangesEditing'),_0x3b0798=_0x326785['plugins']['get']('TableUtils');_0x33fdaf['descriptionFactory']['registerElementLabel']('table',_0x43eda7=>Mt(_0x17049d,'ELEMENT_TABLE',_0x43eda7)),this['_setupColumnsRowsFixing'](),_0x33fdaf['enableCommand']('insertTable'),_0x33fdaf['enableCommand']('selectTableRow'),_0x33fdaf['enableCommand']('selectTableColumn');for(const _0x7ef7a7 of['insertTableRowAbove','insertTableRowBelow']){const _0x5e6b87=_0x326785['commands']['get'](_0x7ef7a7);_0x33fdaf['enableCommand'](_0x7ef7a7,_0x374d6d=>{_0x326785['model']['change'](_0x38d34f=>{_0x374d6d();const _0x24cbe1='above'===_0x5e6b87['order'],_0x70d345=_0x3b0798['getSelectionAffectedTableCells'](_0x18b75e),_0x1707a0=_0x3b0798['getRowIndexes'](_0x70d345),_0x1856b7=_0x24cbe1?_0x1707a0['first']-0x1:_0x1707a0['last']+0x1,_0xca6f3c=_0x70d345[0x0]['findAncestor']('table'),_0x52a059=_0x3b0798['createTableWalker'](_0xca6f3c,{'startRow':_0x1856b7,'endRow':_0x1856b7}),_0x4e1f58=Array['from'](_0x52a059)['map'](_0x283b1a=>_0x38d34f['createRangeOn'](_0x283b1a['cell']));_0x33fdaf['markMultiRangeInsertion'](_0x4e1f58,'tableRow');});});}for(const _0x4962f6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1c110e=_0x326785['commands']['get'](_0x4962f6);_0x33fdaf['enableCommand'](_0x4962f6,_0x54be7b=>{_0x326785['model']['change'](_0x2ea68d=>{_0x54be7b();const _0x1f33fe='left'===_0x1c110e['order'],_0x1e7fed=_0x3b0798['getSelectionAffectedTableCells'](_0x18b75e),_0x2be6ba=_0x3b0798['getColumnIndexes'](_0x1e7fed),_0x2d0f7c=_0x1f33fe?_0x2be6ba['first']-0x1:_0x2be6ba['last']+0x1,_0x36137e=_0x1e7fed[0x0]['findAncestor']('table'),_0x48e69a=_0x3b0798['createTableWalker'](_0x36137e,{'startRow':0x0,'column':_0x2d0f7c,'includeAllSlots':!0x1}),_0x445f04=Array['from'](_0x48e69a)['map'](_0x5c2bbf=>_0x2ea68d['createRangeOn'](_0x5c2bbf['cell']));_0x33fdaf['markMultiRangeInsertion'](_0x445f04,'tableColumn');});});}for(const _0x56b3ec of['removeTableRow','removeTableColumn']){const _0x3effbe=_0x56b3ec['substr'](0xb),_0x2a6c09=_0x3effbe['toLowerCase'](),_0x5efe43=_0x2a6c09['substr'](0x0,0x3)+'span',_0x980dee='table'+_0x3effbe,_0x39d76e='min'+_0x3effbe,_0x5c84dc='max'+_0x3effbe;_0x33fdaf['enableCommand'](_0x56b3ec,()=>{_0x326785['model']['change'](_0x7c8c5b=>{const _0x2956f9=_0x3b0798['getSelectionAffectedTableCells'](_0x18b75e),_0x3ca98a=_0x2956f9[0x0]['findAncestor']('table');let _0xfeac04;if('removeTableRow'==_0x56b3ec){const _0xb76530=_0x3b0798['getRowIndexes'](_0x2956f9);_0xfeac04={'startRow':_0xb76530['first'],'endRow':_0xb76530['last'],'includeAllSlots':!0x0};}else{const _0x1fa84b=_0x3b0798['getColumnIndexes'](_0x2956f9);_0xfeac04={'startColumn':_0x1fa84b['first'],'endColumn':_0x1fa84b['last'],'includeAllSlots':!0x0};}const _0x25c580=_0x3b0798['createTableWalker'](_0x3ca98a,_0xfeac04),_0x4af253=Array['from'](_0x25c580)['map'](({cell:_0x3527f3})=>_0x3527f3),_0x55447f=Pe(_0x4af253['filter'](_0x1ded5c=>_0x1ded5c['hasAttribute'](_0x5efe43))),_0x1f8d42=Pe(_0x4af253['filter'](_0x54e197=>!_0x54e197['hasAttribute'](_0x5efe43)))['map'](_0x2366f8=>_0x7c8c5b['createRangeOn'](_0x2366f8)),_0x5aa0ca=_0x33fdaf['markMultiRangeDeletion'](_0x1f8d42,_0x980dee);if(_0x5aa0ca&&('tableRow'==_0x5aa0ca['subType']||'tableColumn'==_0x5aa0ca['subType'])){const _0x43053e=this['_getSuggestionCoords'](_0x5aa0ca);for(const _0x35a2c1 of _0x55447f){const _0x2cd39e=_0x7c8c5b['createRangeOn'](_0x35a2c1),_0x4a3d5f=_0x3b0798['getCellLocation'](_0x35a2c1),_0x356e6d=_0x35a2c1['getAttribute'](_0x5efe43)-0x1,_0x3af5bd=_0x43053e[_0x39d76e],_0x4ca654=_0x43053e[_0x5c84dc];_0x3af5bd<=_0x4a3d5f[_0x2a6c09]&&_0x4a3d5f[_0x2a6c09]+_0x356e6d<=_0x4ca654&&_0x5aa0ca['addRange'](_0x2cd39e);}}});});}function _0x4a2378(_0x2e4db2){const _0x26a0e3=Array['from'](_0x18b75e['getRanges']())['map'](_0x39d1d5=>rt['fromRange'](_0x39d1d5));_0x326785['model']['change'](_0x2204ba=>{const _0x512441=_0x2204ba['batch'];_0x2e4db2=_0x2e4db2['filter'](_0x1b9f1c=>'$graveyard'!=_0x1b9f1c['root']['rootName']),_0x2204ba['setSelection'](_0x2e4db2),_0x326785['commands']['get']('removeTableRow')['refresh'](),_0x326785['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x326785['model']['enqueueChange'](()=>{_0x326785['model']['enqueueChange'](_0x512441,_0xa8a19f=>{const _0x51ecc6=_0x26a0e3['filter'](_0x249f72=>'$graveyard'!=_0x249f72['root']['rootName']);_0x51ecc6['length']>0x0&&_0xa8a19f['setSelection'](_0x51ecc6);for(const _0x1af247 of _0x26a0e3)_0x1af247['detach']();});});});}function _0x2837d0(_0x3c4f97){_0x326785['model']['change'](_0x2081c8=>{const _0x2dd357=Array['from'](_0x18b75e['getRanges']())['map'](_0x7703cf=>rt['fromRange'](_0x7703cf)),_0x585491=[];for(const _0x11b68b of _0x3c4f97)for(const _0x3b3f16 of _0x11b68b['getItems']({'shallow':!0x0}))_0x585491['push'](_0x3b3f16);for(const _0x3ec41c of _0x585491)'$graveyard'!=_0x3ec41c['root']['rootName']&&(_0x2081c8['setSelection'](_0x2081c8['createPositionAt'](_0x3ec41c,0x0)),_0x326785['commands']['get']('removeTableColumn')['refresh'](),_0x326785['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x335a68=_0x2dd357['filter'](_0x53157d=>'$graveyard'!=_0x53157d['root']['rootName']);_0x335a68['length']>0x0&&_0x2081c8['setSelection'](_0x335a68);for(const _0x8220a3 of _0x2dd357)_0x8220a3['detach']();});}function _0x15f44b(_0x5d833e,_0x5604fd){return _0x5604fd['every'](_0x4773ad=>_0x5d833e['some'](_0x10eee0=>_0x10eee0['end']['isEqual'](_0x4773ad['start'])||_0x4773ad['end']['isEqual'](_0x10eee0['start'])));}function _0x2743b5(_0xc40fac,_0x3bb2a8){return!_0xc40fac['some'](_0x246bb6=>_0x3bb2a8['some'](_0x1c8c4c=>_0x246bb6['isIntersecting'](_0x1c8c4c)))&&_0xc40fac['some'](_0x4bee29=>_0x3bb2a8['some'](_0x129a86=>_0x4bee29['end']['isTouching'](_0x129a86['start'])));}_0x33fdaf['descriptionFactory']['registerDescriptionCallback'](_0x3d5ee5=>{if('insertion'!=_0x3d5ee5['type']&&'deletion'!=_0x3d5ee5['type'])return;const _0x1346f8=_0x3d5ee5['getContainedElement']();if(null!=_0x1346f8&&_0x1346f8['is']('element','table')){if('insertion'==_0x3d5ee5['type']){const _0x3873dd=_0x3d5ee5['getItems']()['filter'](_0x311e7f=>_0x311e7f['is']('$textProxy'))['map'](_0x4a0b0c=>_0x4a0b0c['data']);if(_0x3873dd['length'])return{'type':'insertion','content':Mt(_0x17049d,'*Insert:*\x20%0',Mt(_0x17049d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3873dd['join']('\x20')+'\x22'))};}if('deletion'==_0x3d5ee5['type']){const _0x9d19e4=_0x3d5ee5['getItems']()['filter'](_0x467f12=>_0x467f12['is']('$textProxy'))['map'](_0x2adcbe=>_0x2adcbe['data']);if(_0x9d19e4['length'])return{'type':'deletion','content':Mt(_0x17049d,'*Remove:*\x20%0',Mt(_0x17049d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x9d19e4['join']('\x20')+'\x22'))};}}}),_0x33fdaf['descriptionFactory']['registerDescriptionCallback'](_0xf9d9ba=>{if('tableRow'==_0xf9d9ba['subType']){const _0x33d3ce=_0xf9d9ba['getItems']()['filter'](_0xd62755=>_0xd62755['is']('$textProxy'))['map'](_0xa0aa58=>_0xa0aa58['data']),_0x28ced6=this['_getSuggestionCoords'](_0xf9d9ba),_0x2be28c=_0x28ced6['maxRow']-_0x28ced6['minRow']+0x1;if('insertion'==_0xf9d9ba['type'])return _0x33d3ce['length']?{'type':'insertion','content':Mt(_0x17049d,'*Insert:*\x20%0',Mt(_0x17049d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2be28c,'\x22'+_0x33d3ce['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x17049d,'*Insert:*\x20%0',Mt(_0x17049d,'ELEMENT_TABLE_ROW',_0x2be28c))};if('deletion'==_0xf9d9ba['type'])return _0x33d3ce['length']?{'type':'deletion','content':Mt(_0x17049d,'*Remove:*\x20%0',Mt(_0x17049d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2be28c,'\x22'+_0x33d3ce['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x17049d,'*Remove:*\x20%0',Mt(_0x17049d,'ELEMENT_TABLE_ROW',_0x2be28c))};}if('tableColumn'==_0xf9d9ba['subType']){const _0x86be77=_0xf9d9ba['getItems']()['filter'](_0x14aaaf=>_0x14aaaf['is']('$textProxy'))['map'](_0x1ed9cf=>_0x1ed9cf['data']),_0x4119bd=this['_getSuggestionCoords'](_0xf9d9ba),_0x5eb287=_0x4119bd['maxColumn']-_0x4119bd['minColumn']+0x1;if('insertion'==_0xf9d9ba['type'])return _0x86be77['length']?{'type':'insertion','content':Mt(_0x17049d,'*Insert:*\x20%0',Mt(_0x17049d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5eb287,'\x22'+_0x86be77['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x17049d,'*Insert:*\x20%0',Mt(_0x17049d,'ELEMENT_TABLE_COLUMN',_0x5eb287))};if('deletion'==_0xf9d9ba['type'])return _0x86be77['length']?{'type':'deletion','content':Mt(_0x17049d,'*Remove:*\x20%0',Mt(_0x17049d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5eb287,'\x22'+_0x86be77['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x17049d,'*Remove:*\x20%0',Mt(_0x17049d,'ELEMENT_TABLE_COLUMN',_0x5eb287))};}}),_0x33fdaf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4a2378),_0x33fdaf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4a2378),_0x33fdaf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2837d0),_0x33fdaf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2837d0),_0x33fdaf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x15f44b),_0x33fdaf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x15f44b),_0x33fdaf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2743b5),_0x33fdaf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2743b5);}_acceptFormatSuggestionCallbackFactory(){const _0x5b7566=this['editor'],_0x1444d1=_0x5b7566['model']['document']['selection'];return(_0x560df3,_0x44ac70)=>{_0x5b7566['model']['change'](_0x5b51e6=>{const {commandName:_0x53284a,commandParams:_0x46d739}=_0x44ac70;let _0x298aaf=_0x560df3[0x0]['end']['nodeBefore'];_0x46d739&&_0x46d739[0x0]&&!0x1===_0x46d739[0x0]['forceValue']&&(_0x298aaf=_0x560df3[0x0]['start']['nodeAfter']);const _0x20dc02=_0x5b51e6['createRangeIn'](_0x298aaf);if('$graveyard'==_0x20dc02['root']['rootName'])return;const _0x4f3d55=Array['from'](_0x1444d1['getRanges']())['map'](_0x4c77b0=>rt['fromRange'](_0x4c77b0));_0x5b51e6['setSelection'](_0x20dc02),_0x5b7566['commands']['get'](_0x53284a)['refresh'](),_0x46d739['push']({'forceDefaultExecution':!0x0}),_0x5b7566['execute'](_0x53284a,..._0x46d739);const _0x43bd1f=_0x4f3d55['filter'](_0x449c32=>'$graveyard'!=_0x449c32['root']['rootName']);_0x43bd1f['length']>0x0&&_0x5b51e6['setSelection'](_0x43bd1f);for(const _0x5323a1 of _0x4f3d55)_0x5323a1['detach']();});};}_getCoordsForCells(_0x272256){const _0x53f945=this['editor']['plugins']['get']('TableUtils');let _0x33c920=Number['MAX_SAFE_INTEGER'],_0x4907f3=Number['MIN_SAFE_INTEGER'],_0x499290=Number['MAX_SAFE_INTEGER'],_0x18e657=Number['MIN_SAFE_INTEGER'];for(const _0x218928 of _0x272256){if('$graveyard'==_0x218928['root']['rootName'])continue;const {row:_0x3ea85b,column:_0x14591f}=_0x53f945['getCellLocation'](_0x218928),_0x2c9fcc=_0x218928['hasAttribute']('rowspan')?_0x218928['getAttribute']('rowspan')-0x1:0x0,_0x2fbe64=_0x218928['hasAttribute']('colspan')?_0x218928['getAttribute']('colspan')-0x1:0x0;_0x33c920=_0x3ea85b<_0x33c920?_0x3ea85b:_0x33c920,_0x4907f3=_0x3ea85b+_0x2c9fcc>_0x4907f3?_0x3ea85b+_0x2c9fcc:_0x4907f3,_0x499290=_0x14591f<_0x499290?_0x14591f:_0x499290,_0x18e657=_0x14591f+_0x2fbe64>_0x18e657?_0x14591f+_0x2fbe64:_0x18e657;}return{'minRow':_0x33c920,'maxRow':_0x4907f3,'minColumn':_0x499290,'maxColumn':_0x18e657};}_setupColumnsRowsFixing(){const _0x48a628=this['editor'],_0x2e991a=_0x48a628['plugins']['get']('TrackChangesEditing'),_0x22c1be=_0x48a628['plugins']['get']('TableUtils');_0x48a628['model']['document']['on']('change:data',()=>{const _0x241674=Array['from'](_0x48a628['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2125c1,data:_0x58324a}of _0x241674){const {group:_0x505ab5,id:_0x19f446,subType:_0x2c9564}=tt(_0x2125c1);if('suggestion'!=_0x505ab5)continue;if(null!=_0x58324a['oldRange'])continue;const _0x4dd612=_0x2e991a['getSuggestion'](_0x19f446);this['_tablePostFixingSubtypes']['includes'](_0x2c9564)&&this['_tableSuggestions']['add'](_0x4dd612);}},{'priority':'low'});const _0x2eccc3=(_0x2c7511,_0x51aea8)=>{let _0x4d4816=!0x1;const _0x354120=_0x51aea8['createRangeOn'](_0x2c7511),_0x33d8a1=_0x2c7511['findAncestor']('table'),_0x3a18ad=_0x22c1be['getCellLocation'](_0x2c7511);for(const _0x516b2a of this['_tableSuggestions']){const _0x497b6e=_0x516b2a['subType'],_0x6478c6=_0x497b6e['startsWith']('tablePaste'),_0x1c986d=_0x497b6e['substr'](_0x6478c6?0xa:0x5),_0x18ad53=_0x1c986d['toLowerCase'](),_0x2755e3=_0x18ad53['substr'](0x0,0x3)+'span',_0x4681ca='min'+_0x1c986d,_0x13ed78='max'+_0x1c986d;if(!_0x516b2a['isInContent'])continue;if(_0x33d8a1!=_0x516b2a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x516b2a['isIntersectingWithRange'](_0x354120))continue;const _0x22d7eb=_0x2c7511['hasAttribute'](_0x2755e3)?_0x2c7511['getAttribute'](_0x2755e3)-0x1:0x0,_0x2b3c69=this['_getSuggestionCoords'](_0x516b2a),_0xacc727=_0x2b3c69[_0x4681ca],_0xcbbd78=_0x2b3c69[_0x13ed78];_0xacc727<=_0x3a18ad[_0x18ad53]&&_0x3a18ad[_0x18ad53]+_0x22d7eb<=_0xcbbd78&&(_0x516b2a['addRange'](_0x354120),_0x4d4816=!0x0);}return _0x4d4816;};_0x48a628['model']['document']['registerPostFixer'](_0x176ae2=>{let _0x348b71=!0x1;for(const _0x28402f of _0x48a628['model']['document']['differ']['getChanges']())if('insert'==_0x28402f['type']){if('tableRow'==_0x28402f['name']){for(const _0x2433e8 of _0x28402f['position']['nodeAfter']['getChildren']())_0x348b71=_0x348b71||_0x2eccc3(_0x2433e8,_0x176ae2);}else'tableCell'==_0x28402f['name']&&(_0x348b71=_0x348b71||_0x2eccc3(_0x28402f['position']['nodeAfter'],_0x176ae2));}return _0x348b71;});}_getSuggestionCoords(_0x45718c){return this['_getCoordsForCells'](_0x45718c['getRanges']()['map'](_0x2b8503=>_0x2b8503['start']['nodeAfter']));}};function Pe(_0x1331d8){return Array['from'](new Set(_0x1331d8)['values']());}var xe=class extends _0x26ff96{static get requires(){return[Ue];}afterInit(){const _0x1aeb1d=this['editor'],_0x53d8bd=_0x1aeb1d['model']['document']['selection'],_0x12d83c=_0x1aeb1d['locale'];if(!_0x1aeb1d['plugins']['has']('TableEditing'))return;const _0x7f509d=_0x1aeb1d['plugins']['get']('TrackChangesEditing'),_0x4ac53d=_0x1aeb1d['plugins']['get']('TableUtils'),_0x8593e3=_0x1aeb1d['plugins']['get'](Ue);_0x8593e3['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x7f509d['enableCommand']('mergeTableCells',()=>{const _0x57268a=_0x4ac53d['getSelectionAffectedTableCells'](_0x1aeb1d['model']['document']['selection']);_0x1aeb1d['model']['change'](()=>{_0x7f509d['markMultiRangeBlockFormat'](_0x57268a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1aeb1d['commands']['get']('mergeTableCells')['on']('execute',(_0xb76f5e,_0x59181a)=>{_0x1aeb1d['commands']['get']('trackChanges')['value']&&(_0x59181a['length']>0x0&&_0x59181a[_0x59181a['length']-0x1]&&_0x59181a[_0x59181a['length']-0x1]['forceDefaultExecution']||_0x7f509d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xb76f5e['stop']());},{'priority':'highest'});for(const _0x41679a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5b027c=_0x1aeb1d['commands']['get'](_0x41679a);_0x7f509d['enableCommand'](_0x41679a,()=>{const _0x2dbc31=_0x1aeb1d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xde46e5=>_0xde46e5['is']('element','tableCell')),_0x31e0d6=_0x5b027c['value'];_0x1aeb1d['model']['change'](()=>{_0x7f509d['markMultiRangeBlockFormat']([_0x2dbc31,_0x31e0d6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x194c7f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4693b4=_0x1aeb1d['commands']['get'](_0x194c7f);_0x7f509d['enableCommand'](_0x194c7f,()=>{const _0xc6b671=_0x4ac53d['getSelectionAffectedTableCells'](_0x1aeb1d['model']['document']['selection']),_0x3cf4c8=_0xc6b671[0x0]['findAncestor']('table'),_0x4fb5a9=new Set();for(const _0x1c1d38 of _0xc6b671){const {column:_0x261d2c,row:_0x3b79ad}=_0x4ac53d['getCellLocation'](_0x1c1d38),_0x192552='horizontally'==_0x4693b4['direction']?_0x4ac53d['createTableWalker'](_0x3cf4c8,{'startRow':_0x3b79ad,'endRow':_0x3b79ad,'includeAllSlots':!0x0}):_0x4ac53d['createTableWalker'](_0x3cf4c8,{'column':_0x261d2c,'includeAllSlots':!0x0});for(const {cell:_0xe6bb4a}of _0x192552)_0x4fb5a9['add'](_0xe6bb4a);}_0x1aeb1d['model']['change'](()=>{_0x7f509d['markMultiRangeBlockFormat'](_0xc6b671,{'commandName':_0x194c7f,'commandParams':[]},Array['from'](_0x4fb5a9),_0x194c7f);});});}_0x7f509d['descriptionFactory']['registerDescriptionCallback'](_0x85a940=>{if('formatBlock'!=_0x85a940['type']&&'formatInline'!=_0x85a940['type'])return;const {data:_0x1b5b52}=_0x85a940;return _0x1b5b52&&'mergeTableCells'==_0x1b5b52['commandName']?{'type':'format','content':Mt(_0x12d83c,'*Merge\x20cells*')}:void 0x0;}),_0x7f509d['descriptionFactory']['registerDescriptionCallback'](_0x20e647=>{if('formatBlock'!=_0x20e647['type']&&'formatInline'!=_0x20e647['type'])return;const {data:_0x128c56}=_0x20e647;return _0x128c56?'splitTableCellVertically'==_0x128c56['commandName']?{'type':'format','content':Mt(_0x12d83c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x128c56['commandName']?{'type':'format','content':Mt(_0x12d83c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x56b7fe=_0x8593e3['_acceptFormatSuggestionCallbackFactory']();for(const _0x4ff1d1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x7f509d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4ff1d1,'accept',_0x56b7fe);for(const _0xb5c0d7 of['splitTableCellVertically','splitTableCellHorizontally'])_0x7f509d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xb5c0d7,'accept',_0x4b1f5e=>{_0x1aeb1d['model']['change'](_0x478cd9=>{const _0x57c170=Array['from'](_0x4b1f5e)['filter'](_0x348aa3=>'$graveyard'!=_0x348aa3['root']['rootName']&&!!_0x348aa3['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x57c170['length'])return;const _0x3fa84e=Array['from'](_0x53d8bd['getRanges']())['map'](_0x4685c9=>rt['fromRange'](_0x4685c9));_0x478cd9['setSelection'](_0x57c170),_0x1aeb1d['commands']['get'](_0xb5c0d7)['refresh'](),_0x1aeb1d['execute'](_0xb5c0d7,{'forceDefaultExecution':!0x0});const _0x24e37a=_0x3fa84e['filter'](_0x3f59d0=>'$graveyard'!=_0x3f59d0['root']['rootName']);_0x24e37a['length']>0x0&&_0x478cd9['setSelection'](_0x24e37a);for(const _0x4dae22 of _0x3fa84e)_0x4dae22['detach']();});});_0x7f509d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4e6f8c=>{_0x1aeb1d['model']['change'](_0x358f03=>{const _0xa2207f=Array['from'](_0x53d8bd['getRanges']())['map'](_0x2db46b=>rt['fromRange'](_0x2db46b));_0x358f03['setSelection'](_0x4e6f8c),_0x1aeb1d['commands']['get']('mergeTableCells')['refresh'](),_0x1aeb1d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xc383c1=_0xa2207f['filter'](_0x6d04bc=>'$graveyard'!=_0x6d04bc['root']['rootName']);_0xc383c1['length']>0x0&&_0x358f03['setSelection'](_0xc383c1);for(const _0x1610b0 of _0xa2207f)_0x1610b0['detach']();});});for(const _0x5345d4 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x43d431=_0x1aeb1d['commands']['get'](_0x5345d4);_0x43d431['on']('set:isEnabled',(_0x4ead89,_0x20b890,_0x5f0ece)=>{if(_0x5f0ece){const _0x19706d=_0x1aeb1d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x43c9b1=>_0x43c9b1['is']('element','tableCell'));this['_areMergableCells'](_0x43d431['value'],_0x19706d)||(_0x4ead89['return']=!0x1,_0x4ead89['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x52ffdf=this['editor']['commands']['get']('mergeTableCells'),_0x131baf=this['editor']['plugins']['get']('TableUtils');if(!_0x52ffdf['isEnabled'])return!0x1;const _0x2c3c3a=_0x131baf['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5a93fb of _0x2c3c3a)for(const _0x13fae6 of _0x2c3c3a)if(_0x5a93fb!=_0x13fae6&&!this['_areMergableCells'](_0x5a93fb,_0x13fae6))return!0x1;return!0x0;}['_areMergableCells'](_0x365295,_0x191474){const _0x2e0e67=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f825c=this['editor']['model']['createRangeOn'](_0x365295),_0x2b3159=this['editor']['model']['createRangeOn'](_0x191474),_0x33432c=new Set(),_0x4f03d9=new Set();for(const _0x2c9e62 of _0x2e0e67['getSuggestions']())if(('insertion'==_0x2c9e62['type']||'deletion'==_0x2c9e62['type']||'mergeTableCells'==_0x2c9e62['subType'])&&_0x2c9e62['isInContent']){for(const _0x1f2185 of _0x2c9e62['getRanges']())_0x1f2185['containsRange'](_0x4f825c,!0x0)&&_0x33432c['add'](_0x2c9e62['type']+':'+_0x2c9e62['author']['id']),_0x1f2185['containsRange'](_0x2b3159,!0x0)&&_0x4f03d9['add'](_0x2c9e62['type']+':'+_0x2c9e62['author']['id']);}if(_0x33432c['size']!=_0x4f03d9['size'])return!0x1;for(const _0x26b2e5 of _0x33432c)if(!_0x4f03d9['has'](_0x26b2e5))return!0x1;return!0x0;}},Ge=class extends _0x26ff96{static get requires(){return[Ue];}afterInit(){const _0x552227=this['editor'];if(!_0x552227['plugins']['has']('TableEditing'))return;const _0x5be1b7=_0x552227['locale'],_0x28928b=_0x552227['plugins']['get']('TrackChangesEditing');_0x28928b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x28928b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x28928b['descriptionFactory']['registerAttributeLabel']('headingRows',Mt(_0x5be1b7,'FORMAT_HEADER_ROW')),_0x28928b['descriptionFactory']['registerAttributeLabel']('headingColumns',Mt(_0x5be1b7,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x5afd7d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50ef1f=this['editor']['plugins']['get'](Ue)['_acceptFormatSuggestionCallbackFactory']();_0x5afd7d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x50ef1f),_0x5afd7d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x50ef1f),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x11adaf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40025e=this['editor']['plugins']['get']('TableUtils');function _0x46366a({showActiveMarker:_0x154992=!0x0,setDataAttribute:_0x8fd333=!0x0}={}){return(_0x211b96,_0x304c5c,_0x78ede5)=>{const {type:_0x15f191,id:_0x3bb0f3}=tt(_0x304c5c['markerName']);if(!_0x11adaf['hasSuggestion'](_0x3bb0f3))return;const _0x5274bd=_0x11adaf['getSuggestion'](_0x3bb0f3),_0x315789=_0x5274bd['data'];if('formatBlock'!=_0x5274bd['type']||!_0x315789||'setTableColumnHeader'!=_0x315789['commandName'])return;if(_0x304c5c['item'])return void _0x211b96['stop']();if(!_0x78ede5['consumable']['consume'](_0x304c5c['markerRange'],_0x211b96['name']))return;const _0x290aae=_0x304c5c['markerRange']['start']['nodeAfter'],_0x388b0a=_0x304c5c['markerRange']['end']['nodeBefore'],_0x713526=_0x290aae['parent']['parent'],{column:_0x4653eb}=_0x40025e['getCellLocation'](_0x290aae),{column:_0x24d7bf}=_0x40025e['getCellLocation'](_0x388b0a);for(let _0x1ea15e=_0x4653eb;_0x1ea15e<=_0x24d7bf;_0x1ea15e++){const _0x2e7526=_0x40025e['createTableWalker'](_0x713526,{'column':_0x1ea15e,'includeAllSlots':!0x1});for(const _0x44b825 of _0x2e7526){const _0x431861=_0x44b825['cell'],_0x56c340=_0x78ede5['mapper']['toViewElement'](_0x431861);_0x78ede5['writer']['addClass']('ck-suggestion-marker-'+_0x15f191,_0x56c340),_0x8fd333&&_0x78ede5['writer']['setAttribute']('data-suggestion',_0x3bb0f3,_0x56c340),_0x78ede5['mapper']['bindElementToMarker'](_0x56c340,_0x304c5c['markerName']),_0x154992&&(_0x11adaf['activeMarkers']['includes'](_0x304c5c['markerName'])?_0x78ede5['writer']['addClass']('ck-suggestion-marker--active',_0x56c340):_0x78ede5['writer']['removeClass']('ck-suggestion-marker--active',_0x56c340));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x46366a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x6b0de5,_0x148665,_0x5fae2d)=>{_0x5fae2d['options']['showSuggestionHighlights']&&_0x46366a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x6b0de5,_0x148665,_0x5fae2d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x13284b,_0x25faf6,_0x1d9762)=>{const {type:_0x5c7420,id:_0x5c4631}=tt(_0x25faf6['markerName']);if(!_0x11adaf['hasSuggestion'](_0x5c4631))return;const _0x22ec24=_0x11adaf['getSuggestion'](_0x5c4631),_0x32d785=_0x22ec24['data'];if('formatBlock'!=_0x22ec24['type']||!_0x32d785||'setTableColumnHeader'!=_0x32d785['commandName'])return;const _0x2af06d=_0x1d9762['mapper']['markerNameToElements'](_0x25faf6['markerName']);if(_0x2af06d){for(const _0x25dc93 of _0x2af06d)_0x1d9762['writer']['removeClass']('ck-suggestion-marker-'+_0x5c7420,_0x25dc93),_0x1d9762['writer']['removeClass']('ck-suggestion-marker--active',_0x25dc93),_0x1d9762['writer']['removeAttribute']('data-suggestion',_0x25dc93),_0x1d9762['mapper']['unbindElementFromMarkerName'](_0x25dc93,_0x25faf6['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x317a2c=this['editor'],_0x3f257d=_0x317a2c['locale'];function _0x35d714(_0x240adc){return{'type':'format','content':Mt(_0x3f257d,'*Format:*\x20%0',_0x240adc)};}_0x317a2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e774a=>{if('formatBlock'!=_0x2e774a['type'])return;const {data:_0x722bb}=_0x2e774a;return _0x722bb?'setTableRowHeader'==_0x722bb['commandName']?_0x722bb['commandParams'][0x0]['forceValue']?_0x35d714(Mt(_0x3f257d,'FORMAT_HEADER_ROW')):_0x35d714(Mt(_0x3f257d,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x722bb['commandName']?_0x722bb['commandParams'][0x0]['forceValue']?_0x35d714(Mt(_0x3f257d,'FORMAT_HEADER_COLUMN')):_0x35d714(Mt(_0x3f257d,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},He=class extends _0x26ff96{static get requires(){return[Ue];}afterInit(){const _0xb1ff97=this['editor'];if(!_0xb1ff97['plugins']['has']('TableEditing')||!_0xb1ff97['config']['get']('table.enableFooters'))return;const _0x509625=_0xb1ff97['locale'],_0x54d21a=_0xb1ff97['plugins']['get']('TrackChangesEditing');_0x54d21a['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x54d21a['descriptionFactory']['registerAttributeLabel']('footerRows',Mt(_0x509625,'FORMAT_FOOTER_ROW'));}},$e=class extends _0x26ff96{afterInit(){const _0x295f4a=this['editor'],_0x45d5bc=_0x295f4a['locale'],_0x5d824c=_0x295f4a['plugins']['get']('TrackChangesEditing');function _0x1ae339(_0x25336d){return{'type':'format','content':''+Mt(_0x45d5bc,'*Set\x20table\x20type:*\x20%0',_0x25336d)};}_0x295f4a['plugins']['has']('TableLayout')&&(_0x5d824c['enableCommand']('insertTableLayout'),_0x5d824c['enableDefaultAttributesIntegration']('tableType'),_0x5d824c['descriptionFactory']['registerElementLabel'](_0x275238=>_0x275238['is']('element','table')&&'layout'===_0x275238['getAttribute']('tableType'),_0x1e57d4=>Mt(_0x45d5bc,'ELEMENT_LAYOUT_TABLE',_0x1e57d4)),_0x5d824c['descriptionFactory']['registerDescriptionCallback'](_0x505879=>{const {data:_0x2378e8}=_0x505879;if(_0x2378e8&&'tableType'==_0x2378e8['key'])switch(_0x2378e8['newValue']){case'layout':return _0x1ae339(Mt(_0x45d5bc,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1ae339(Mt(_0x45d5bc,'ELEMENT_CONTENT_TABLE'));}}));}};const We=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ve=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](We['map'](_0x19ce30=>[_0x19ce30,null]));var je=class extends _0x26ff96{static get requires(){return[Ue];}afterInit(){const _0x2c0a71=this['editor'];if(!_0x2c0a71['plugins']['has']('TableClipboard'))return;const _0x3bdb33=_0x2c0a71['plugins']['get']('TrackChangesEditing'),_0x14a415=_0x2c0a71['plugins']['get']('TableUtils'),_0x4ec915=_0x2c0a71['plugins']['get'](Ue),_0x453cb4=_0x2c0a71['plugins']['get']('TableClipboard'),_0x3d3d67=_0x2c0a71['plugins']['get']('TableSelection'),_0x4ba2aa=_0x2c0a71['plugins']['get'](gt);_0x4ec915['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2c0a71['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2c0a71['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5f52af=null,_0x4d8fba=!0x1;_0x4ba2aa['on']('contentInsertion',(_0x20fc70,_0x5bfdaf)=>{_0x4d8fba='paste'===_0x5bfdaf['method'];}),_0x2c0a71['model']['on']('insertContent',(_0x81a269,_0x4646cf)=>{if(!_0x4d8fba&&null===_0x3d3d67['getSelectedTableCells']())return;const [_0x45384f,_0x13d665]=_0x4646cf,_0x321c68=_0x4646cf[_0x4646cf['length']-0x1];_0x321c68&&_0x321c68['forceDefaultExecution']||_0x3bdb33['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x37ae4c,_0x61c29a,_0x4e2d07,_0x39a312,_0x1521b0){if(_0x61c29a&&!_0x61c29a['is']('documentSelection'))return!0x1;const _0x382a39=_0x1521b0['getTableIfOnlyTableInContent'](_0x37ae4c,_0x4e2d07);if(!_0x382a39||!Ke(_0x382a39,void 0x0,_0x39a312))return!0x1;const _0x890a32=_0x39a312['getSelectionAffectedTableCells'](_0x4e2d07['document']['selection']);if(!_0x890a32['length'])return!0x1;const _0x449975=_0x890a32[0x0]['findAncestor']('table'),_0x388d86=_0x39a312['getRowIndexes'](_0x890a32),_0x5d6bf3=_0x39a312['getColumnIndexes'](_0x890a32),_0x567b97={'startRow':_0x388d86['first'],'endRow':_0x388d86['last'],'startColumn':_0x5d6bf3['first'],'endColumn':_0x5d6bf3['last']};return 0x1==_0x890a32['length']&&(_0x567b97['endRow']+=_0x39a312['getRows'](_0x382a39)-0x1,_0x567b97['endColumn']+=_0x39a312['getColumns'](_0x382a39)-0x1),Ke(_0x449975,_0x567b97,_0x39a312);}(_0x45384f,_0x13d665,_0x2c0a71['model'],_0x14a415,_0x453cb4)&&(_0x81a269['stop'](),_0x5f52af={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2c0a71['model']['change'](()=>{_0x2c0a71['model']['insertContent'](_0x4646cf[0x0],_0x4646cf[0x1],_0x4646cf[0x2],{'forceDefaultExecution':!0x0});const _0x1d99e4=_0x3a663f(),{rowInsertionRanges:_0x520be6,columnInsertionRanges:_0x4d087c,insertionRanges:_0x52e811,deletionRanges:_0x162401,cells:_0x237d3e}=_0x5f52af;_0x520be6['length']&&_0x3bdb33['markMultiRangeInsertion'](_0x520be6,'tablePasteRow',{'tablePasteChainId':_0x1d99e4}),_0x4d087c['length']&&_0x3bdb33['markMultiRangeInsertion'](_0x4d087c,'tablePasteColumn',{'tablePasteChainId':_0x1d99e4}),_0x52e811['length']&&(_0x3bdb33['markMultiRangeInsertion'](_0x52e811,'tablePaste',{'tablePasteChainId':_0x1d99e4,'skipNestingCheck':!0x0}),_0x52e811['forEach'](_0x32b7fb=>_0x32b7fb['detach']?.())),_0x162401['length']&&(_0x3bdb33['markMultiRangeDeletion'](_0x162401,'tablePaste',{'tablePasteChainId':_0x1d99e4,'skipNestingCheck':!0x0}),_0x162401['forEach'](_0x2d0a2e=>_0x2d0a2e['detach']?.()));const _0xd66c0b=_0x3bdb33['markMultiRangeBlockFormat'](_0x237d3e['map'](({element:_0x4f2e52})=>_0x4f2e52),{'formatGroupId':_0x3a663f()},[],'tablePasteCell',{'tablePasteChainId':_0x1d99e4});if(_0xd66c0b){const _0x416f8d=_0xd66c0b['getMarkers'](),_0xf7f7e8=[];for(const {element:_0x3a77ca,attributes:_0x2ffb58}of _0x237d3e){if(!_0x2ffb58)continue;const _0x1dcec7=_0x2c0a71['model']['createRangeOn'](_0x3a77ca),_0x47950c=_0x416f8d['find'](_0x5838e9=>_0x5838e9['getRange']()['isEqual'](_0x1dcec7));_0x47950c&&_0xf7f7e8['push']([_0x47950c['name'],_0x2ffb58]);}_0xf7f7e8['length']&&_0xd66c0b['setAttribute']('markerAttributes',Object['fromEntries'](_0xf7f7e8));}_0x5f52af=null;}));},{'priority':_0x224aaf['high']+0xa}),_0x4ba2aa['on']('contentInsertion',()=>{_0x4d8fba=!0x1;},{'priority':'lowest'}),_0x2c0a71['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2c594c,_0x49a0cb)=>{const [_0x488190,_0x3dd637,,_0x37a217]=_0x49a0cb;if(!_0x5f52af)return;_0x2c594c['stop']();const _0x29b2a0=_0x488190['cell'],_0x10a389=_0x3dd637,_0x15a10a=ze(_0x29b2a0),_0xaeccec=ze(_0x10a389);_0x2c594c['return']=_0x29b2a0;let _0x4320fb=null,_0x2d0b69=null;if(_0xaeccec||_0x15a10a){if(_0x15a10a&&!_0xaeccec){_0x37a217['remove'](_0x29b2a0['getChild'](0x0));for(const _0x2e1c83 of Array['from'](_0x10a389['getChildren']()))_0x37a217['insert'](_0x2e1c83,_0x29b2a0,'end');const _0x55b680=_0x5f52af['rowInsertionIndexes']['includes'](_0x488190['row']),_0x160b0e=_0x5f52af['columnInsertionIndexes']['includes'](_0x488190['column']);_0x55b680||_0x160b0e||(_0x4320fb=rt['fromRange'](_0x37a217['createRangeIn'](_0x29b2a0)));}else _0xaeccec&&!_0x15a10a&&(_0x2d0b69=_0x37a217['createRangeIn'](_0x29b2a0));}else{const _0x23c9ac=_0x37a217['createElement']('tableCellSuggestion'),_0xc3ff87=_0x37a217['createElement']('tableCellSuggestion');_0x37a217['wrap'](_0x37a217['createRangeIn'](_0x29b2a0),_0xc3ff87),_0x37a217['insert'](_0x23c9ac,_0x29b2a0,0x0);for(const _0x152415 of Array['from'](_0x10a389['getChildren']()))_0x37a217['insert'](_0x152415,_0x23c9ac,'end');_0x4320fb=rt['fromRange'](_0x37a217['createRangeOn'](_0x23c9ac)),_0x2d0b69=rt['fromRange'](_0x37a217['createRangeOn'](_0xc3ff87));}const _0x241148=Array['from'](_0x10a389['getAttributes']())['filter'](([_0x234b59])=>We['includes'](_0x234b59));_0x5f52af['cells']['push']({'element':_0x29b2a0,'attributes':_0x241148['length']?Object['fromEntries'](_0x241148):null}),_0x4320fb&&_0x5f52af['insertionRanges']['push'](_0x4320fb),_0x2d0b69&&_0x5f52af['deletionRanges']['push'](_0x2d0b69);},{'priority':'high'}),_0x14a415['on']('insertColumns',(_0xce8fcf,_0x2bd49e)=>{const [_0x4c1be4,_0x5a417d={}]=_0x2bd49e;if(!_0x5f52af)return;const _0x378791=_0x5a417d['at']||0x0,_0x59ba05=_0x5a417d['columns']||0x1;_0x5f52af['columnInsertionIndexes']=new Array(_0x59ba05)['fill'](_0x378791)['map']((_0x54dab3,_0x3f9b19)=>_0x54dab3+_0x3f9b19);for(const {cell:_0x4fe6c1}of _0x14a415['createTableWalker'](_0x4c1be4,{'startColumn':_0x378791,'endColumn':_0x378791+_0x59ba05-0x1}))_0x5f52af['columnInsertionRanges']['push'](_0x2c0a71['model']['createRangeOn'](_0x4fe6c1));},{'priority':'low'}),_0x14a415['on']('insertRows',(_0x961158,_0x277f51)=>{const [_0x3b988a,_0x108e7f={}]=_0x277f51;if(!_0x5f52af)return;const _0x4db5a1=_0x108e7f['at']||0x0,_0x59f266=_0x108e7f['rows']||0x1;_0x5f52af['rowInsertionIndexes']=new Array(_0x59f266)['fill'](_0x4db5a1)['map']((_0x1dd31c,_0x110342)=>_0x1dd31c+_0x110342);for(const {cell:_0x312fdb}of _0x14a415['createTableWalker'](_0x3b988a,{'startRow':_0x4db5a1,'endRow':_0x4db5a1+_0x59f266-0x1}))_0x5f52af['rowInsertionRanges']['push'](_0x2c0a71['model']['createRangeOn'](_0x312fdb));},{'priority':'low'}),_0x3bdb33['descriptionFactory']['registerDescriptionCallback'](_0x40fecb=>{if(_0x40fecb['subType']&&_0x40fecb['subType']['startsWith']('tablePaste'))return _0x40fecb['previous']?{}:{'type':'insertion','content':Mt(_0x2c0a71['locale'],'*Replace\x20table\x20cells*')};});const _0x27a11b=()=>!0x1;for(const _0x19fafa of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3bdb33['_suggestionFactory']['registerCustomCallback']('insertion',_0x19fafa,'join',_0x27a11b),_0x3bdb33['_suggestionFactory']['registerCustomCallback']('deletion',_0x19fafa,'join',_0x27a11b),_0x3bdb33['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x19fafa,'join',_0x27a11b);_0x3bdb33['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x27a11b),_0x3bdb33['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x28b3a9,_0x4d7aca,_0x519d43)=>{const _0x469af7=_0x28b3a9['map'](_0x179b51=>_0x179b51['getContainedElement']())['filter'](_0x560dc5=>_0x560dc5),_0x37673a=new Map(_0x469af7['map'](_0x303e7c=>[_0x303e7c,null]));if(_0x5f52af){for(const {element:_0x2ed090,attributes:_0x51a03a}of _0x5f52af['cells'])_0x51a03a&&_0x37673a['set'](_0x2ed090,_0x51a03a);}else{if(_0x519d43&&_0x519d43['markerAttributes'])for(const [_0x5afede,_0x2c56b6]of Object['entries'](_0x519d43['markerAttributes'])){const _0x53dd64=_0x2c0a71['model']['markers']['get'](_0x5afede),_0x393e8e=_0x53dd64?_0x53dd64['getRange']()['getContainedElement']():null;_0x393e8e&&_0x37673a['set'](_0x393e8e,_0x2c56b6);}}_0x2c0a71['model']['change'](_0x17f2ec=>{for(const [_0x5b505c,_0x35c4bc]of _0x37673a)_0x17f2ec['setAttributes']({...Ve,..._0x35c4bc},_0x5b505c);});});const _0x3b2be5=(_0x2b3aa8,_0x1a9d28)=>{_0x3bdb33['_suggestionFactory']['registerCustomCallback'](_0x2b3aa8,'tablePaste',_0x1a9d28,(_0x5e2db3,_0x578a34,_0x909f17)=>{_0x2c0a71['model']['change'](_0x48ca4a=>{const _0xfc5506=[];for(const _0x15f660 of _0x5e2db3){const _0x13a706=_0x15f660['start']['nodeAfter'];_0x13a706['is']('element','tableCellSuggestion')&&_0xfc5506['push'](_0x13a706);}_0x3bdb33['_suggestionFactory']['getSuggestionCallback'](_0x2b3aa8,null,_0x1a9d28)(_0x5e2db3,_0x578a34,_0x909f17);for(const _0x10a6d1 of _0xfc5506)'$graveyard'!=_0x10a6d1['root']['rootName']&&_0x48ca4a['unwrap'](_0x10a6d1);});});};_0x3b2be5('insertion','accept'),_0x3b2be5('insertion','discard'),_0x3b2be5('deletion','accept'),_0x3b2be5('deletion','discard'),_0x3bdb33['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1f7a58=>{const _0x21e8ff=_0x1f7a58['map'](_0x390308=>_0x390308['getContainedElement']()),_0xaaed4d=_0x21e8ff[0x0]['findAncestor']('table'),{minRow:_0x3bbc0f,maxRow:_0x14608a}=_0x4ec915['_getCoordsForCells'](_0x21e8ff);_0x14a415['removeRows'](_0xaaed4d,{'at':_0x3bbc0f,'rows':_0x14608a-_0x3bbc0f+0x1});}),_0x3bdb33['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4926a2=>{const _0x1c0aa4=_0x4926a2['map'](_0x3f365f=>_0x3f365f['getContainedElement']()),_0x5be72a=_0x1c0aa4[0x0]['findAncestor']('table'),{minColumn:_0x172e42,maxColumn:_0x3f76ba}=_0x4ec915['_getCoordsForCells'](_0x1c0aa4);_0x14a415['removeColumns'](_0x5be72a,{'at':_0x172e42,'columns':_0x3f76ba-_0x172e42+0x1});});const _0xe3de66=(_0x17cb9f,_0x53a711)=>{if(!_0x53a711['subType']||!_0x53a711['subType']['startsWith']('tablePaste'))return;const _0x339afc=_0x53a711['attributes']['tablePasteChainId'],_0x2c9a6a=_0x3bdb33['getSuggestions']()['filter'](_0x17169a=>_0x17169a['isInContent']&&_0x17169a['attributes']&&_0x17169a['attributes']['tablePasteChainId']==_0x339afc);_0x2c9a6a['length']&&_0x53a711['getAllAdjacentSuggestions']()['length']!=_0x2c9a6a['length']&&_0x2c9a6a['reduce']((_0x2d266c,_0x2192d8)=>(_0x2d266c['next']=_0x2192d8,_0x2192d8['previous']=_0x2d266c,_0x2192d8));};function _0x152a01(_0x488a56,_0x29fda8=!0x0){const {id:_0x4563d3,authorId:_0x109736}=tt(_0x488a56['markerName']),_0x3adafa=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1bc536=_0x3bdb33['activeMarkers']['includes'](_0x488a56['markerName']);return _0x1bc536&&_0x3adafa['push']('ck-suggestion-marker--active'),{'classes':_0x3adafa,'attributes':{'data-suggestion':_0x4563d3,'data-author-id':_0x109736},'priority':_0x1bc536&&_0x29fda8?0xbc2:0xbb8};}_0x3bdb33['on']('suggestionLoaded',_0xe3de66,{'priority':'high'}),_0x3bdb33['on']('suggestionUnloaded',_0xe3de66,{'priority':'high'}),_0x2c0a71['model']['document']['registerPostFixer'](()=>{let _0xe6b69=!0x1;const _0x3e80ac=Array['from'](_0x2c0a71['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2134c5,data:_0x223334}of _0x3e80ac){const {group:_0x45de61,type:_0x22ea38,id:_0x20124a}=tt(_0x2134c5);if('suggestion'!=_0x45de61||'deletion'!=_0x22ea38||_0x223334['oldRange'])continue;if(!_0x3bdb33['hasSuggestion'](_0x20124a))continue;const _0x3a3a2e=_0x3bdb33['getSuggestion'](_0x20124a)['getRanges'](),_0x296c83=_0x2c0a71['plugins']['get']('Users')['me'];for(const _0x16ec96 of _0x3bdb33['getSuggestions']())if(_0x16ec96['isInContent']&&_0x16ec96['author']==_0x296c83&&'formatBlock'==_0x16ec96['type']&&'tablePasteCell'==_0x16ec96['subType']&&_0x16ec96['getRanges']()['every'](_0x1111af=>_0x3a3a2e['some'](_0x3cbaaf=>_0x3cbaaf['containsRange'](_0x1111af,!0x0)))){for(const _0x466fff of _0x16ec96['getAllAdjacentSuggestions']())_0x466fff['isInContent']&&(_0x466fff['discard'](),_0xe6b69=!0x0);}}return _0xe6b69;}),_0x2c0a71['model']['document']['registerPostFixer'](_0x504bd6=>{const _0x49d78f=_0x2c0a71['commands']['get']('redo');if(!_0x49d78f||!_0x49d78f['_createdBatches']['has'](_0x504bd6['batch']))return!0x1;let _0xbbc1ed=!0x1;const _0x4cbc2c=_0x2c0a71['plugins']['get']('Users')['me'],_0x4e4860=_0x2c0a71['model']['document']['differ']['getChanges'](),_0x321a7d=Array['from'](_0x2c0a71['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4b2310,data:_0x2cb7e6})=>{const {group:_0x120e39,subType:_0x4937a1,authorId:_0x4769ac}=tt(_0x4b2310);return'suggestion'==_0x120e39&&'tablePaste'==_0x4937a1&&_0x4769ac==_0x4cbc2c['id']&&!_0x2cb7e6['oldRange'];});for(const _0x1c77e8 of _0x4e4860){if('insert'!=_0x1c77e8['type']||'tableCellSuggestion'!=_0x1c77e8['name']||0x1!=_0x1c77e8['length'])continue;const _0x25662e=_0x504bd6['createRange'](_0x1c77e8['position'],_0x1c77e8['position']['getShiftedBy'](0x1));if(!_0x321a7d['find'](({data:_0x245f6d})=>_0x245f6d['newRange']['isEqual'](_0x25662e))){for(const {name:_0xbeecda,data:_0x45fbf7}of _0x321a7d)if(_0x25662e['containsRange'](_0x45fbf7['newRange'])){_0x504bd6['updateMarker'](_0xbeecda,{'range':_0x25662e}),_0xbbc1ed=!0x0;break;}}}return _0xbbc1ed;}),_0x2c0a71['model']['document']['registerPostFixer'](_0x2b7162=>{let _0x1d5946=!0x1;const _0x18b4e2=_0x2c0a71['plugins']['get']('Users')['me'],_0x13cc54=_0x3bdb33['getSuggestions']()['filter'](_0x41cb0b=>_0x41cb0b['isInContent']&&_0x41cb0b['author']==_0x18b4e2),_0x1c8509=new Set(),_0x1f8282=new Set();for(const _0xcc67c5 of _0x13cc54)if('tablePaste'==_0xcc67c5['subType'])for(const _0x2c7df7 of _0xcc67c5['getMarkers']()){const _0x3f8fc7=_0x2c7df7['getRange']()['getContainedElement']();if(_0x3f8fc7){if(_0x3f8fc7['is']('element','tableCellSuggestion')&&ze(_0x3f8fc7)){_0xcc67c5['removeMarker'](_0x2c7df7['name']),_0x1c8509['add'](_0x3f8fc7),_0x1d5946=!0x0;const _0x4b3046=_0x3f8fc7['nextSibling'],_0x4e802a=_0x3f8fc7['previousSibling'],_0x20da10=_0x4b3046&&_0x4b3046['is']('element','tableCellSuggestion'),_0x47913b=_0x4e802a&&_0x4e802a['is']('element','tableCellSuggestion');_0x20da10&&!_0x1c8509['has'](_0x4b3046)&&_0x1f8282['add'](_0x4b3046),_0x47913b&&!_0x1c8509['has'](_0x4e802a)&&_0x1f8282['add'](_0x4e802a);}else _0x3f8fc7['is']('element','paragraph')&&_0x3f8fc7['isEmpty']&&(_0xcc67c5['removeMarker'](_0x2c7df7['name']),_0x1d5946=!0x0);}}else{if('tablePasteCell'==_0xcc67c5['subType']){if(!_0xcc67c5['attributes']||!_0xcc67c5['attributes']['tablePasteChainId'])continue;const _0x46ee97=_0xcc67c5['attributes']['markerAttributes'];if(_0x46ee97&&Object['keys'](_0x46ee97)['length'])continue;const _0x59f641=_0xcc67c5['attributes']['tablePasteChainId'];let _0x44cb18=!0x0,_0x1507fa=!0x0;for(const _0x1d0080 of _0x13cc54)if(_0x1d0080['subType']&&_0x1d0080['subType']['startsWith']('tablePaste')){if(!_0x1d0080['attributes']['tablePasteChainId']){_0x1507fa=!0x1;break;}if(_0x1d0080['id']!=_0xcc67c5['id']&&_0x1d0080['attributes']['tablePasteChainId']==_0x59f641){_0x44cb18=!0x1;break;}}_0x1507fa&&_0x44cb18&&(_0xcc67c5['removeMarkers'](),_0x1d5946=!0x0);}}for(const _0x35b245 of _0x1c8509)_0x2b7162['remove'](_0x35b245);for(const _0x465560 of _0x1f8282)_0x2b7162['unwrap'](_0x465560);return _0x1d5946;}),_0x2c0a71['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3b6529=>_0x152a01(_0x3b6529),'converterPriority':'high'}),_0x2c0a71['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3cef22,_0x44c11a)=>_0x44c11a['options']['showSuggestionHighlights']?_0x152a01(_0x3cef22,!0x1):null,'converterPriority':'high'});const _0x1e968f=_0x2c0a71['editing']['view'];this['listenTo'](_0x1e968f['document'],'clipboardOutput',(_0x130a0a,_0x23689f)=>{const _0x42d4de=[];for(const _0x114756 of _0x1e968f['createRangeIn'](_0x23689f['content'])['getItems']())_0x114756['is']('element','suggestion-td')&&_0x42d4de['push'](_0x114756);_0x1e968f['change'](_0x2406dd=>{for(const _0x25056c of _0x42d4de)_0x2406dd['move'](_0x2406dd['createRangeIn'](_0x25056c),_0x2406dd['createPositionBefore'](_0x25056c)),_0x2406dd['remove'](_0x25056c);});});}};function ze(_0x203cf2){if(_0x203cf2['isEmpty'])return!0x0;const _0x3af949=_0x203cf2['getChild'](0x0);return _0x3af949['is']('element','paragraph')&&_0x3af949['isEmpty'];}function Ke(_0x4d5eb7,_0x1f9e7a={},_0x41f116){for(const {isAnchor:_0x4bafd9,cellHeight:_0x3179c6,cellWidth:_0x16ece4}of _0x41f116['createTableWalker'](_0x4d5eb7,{'includeAllSlots':!0x0,..._0x1f9e7a}))if(!_0x4bafd9||0x1!=_0x3179c6||0x1!=_0x16ece4)return!0x1;return!0x0;}var Xe=class extends _0x26ff96{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x200c97=this['editor']['plugins']['get']('TrackChangesEditing');_0x200c97['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x200c97['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x200c97['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x200c97['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x4f7aef=_0x200c97['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x200c97['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0xfe3658,_0x4c5da1)=>{_0x4f7aef(_0xfe3658,_0x4c5da1),this['_restoreCellWidths'](_0xfe3658[0x0]['start']['nodeAfter'],_0x4c5da1['commandParams'][0x0]['cellWidths']);}),_0x200c97['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x36b38e,_0x4ea6c0){const _0x481837=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1252ff=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x319772=_0x4ea6c0['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x43ff03=_0x1252ff['getColumnGroupElement'](_0x319772);let _0x3bdaa5=_0x43ff03?_0x1252ff['getTableColumnsWidths'](_0x43ff03):null,_0x668b6a=_0x319772['getAttribute']('tableWidth')||null;const _0x43af13=_0x4ea6c0['tableWidth']||_0x668b6a,_0x23cdb0=_0x4ea6c0['columnWidths']||_0x3bdaa5;let _0x5e4ab6=this['_getCellWidths'](_0x319772);const _0x5d7fad=this['_foldResizeTableSuggestion'](_0x319772);_0x5d7fad&&(_0x668b6a=_0x5d7fad['tableWidth'],_0x3bdaa5=_0x5d7fad['columnWidths'],_0x5e4ab6=_0x5d7fad['cellWidths']||_0x5e4ab6),_0x36b38e({'table':_0x319772,'tableWidth':_0x43af13,'columnWidths':_0x23cdb0}),_0x481837['markBlockFormat'](_0x319772,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x668b6a,'columnWidths':_0x3bdaa5,'cellWidths':_0x5e4ab6}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0xe97bf9,_0x3c485a={}){if(void 0x0===_0x3c485a['value']||''===_0x3c485a['value'])return void _0xe97bf9(_0x3c485a);const _0x25a81f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e7d54=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x520819=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x3c485a['batch']||(_0x3c485a['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x3c485a['batch'],()=>{const _0x42a6a7=_0x2e7d54['getColumnGroupElement'](_0x520819);let _0x1cb919=_0x42a6a7?_0x2e7d54['getTableColumnsWidths'](_0x42a6a7):null,_0x1fad56=_0x520819['getAttribute']('tableWidth')||null,_0x25d928=this['_getCellWidths'](_0x520819);const _0x13711e=this['_foldResizeTableSuggestion'](_0x520819,!0x0);_0x13711e&&(_0x1fad56=_0x13711e['tableWidth'],_0x1cb919=_0x13711e['columnWidths'],_0x25d928=_0x13711e['cellWidths']||_0x25d928),_0xe97bf9(_0x3c485a),_0x25a81f['markBlockFormat'](_0x520819,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1fad56,'columnWidths':_0x1cb919,'cellWidths':_0x25d928}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x449721,_0x42b18a=!0x1){const _0x400e43=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3418b2=this['editor']['plugins']['get']('Users')['me'];for(const _0x48ee71 of _0x400e43['getSuggestions']({'skipNotAttached':!0x0})){const _0x373dbb=_0x48ee71['getContainedElement']();if('resizeTable'===_0x48ee71['subType']&&_0x373dbb===_0x449721){_0x48ee71['author']!==_0x3418b2&&(_0x42b18a?_0x48ee71['removeMarkers']():_0x48ee71['discard']());const _0x400f81=_0x48ee71['data']['commandParams'];return{'tableWidth':_0x400f81[0x0]['tableWidth'],'columnWidths':_0x400f81[0x0]['columnWidths'],'cellWidths':_0x400f81[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x5aa7b8){const _0x5edafa=[];for(const _0x5a5dbc of _0x5aa7b8['getChildren']())if(_0x5a5dbc['is']('element','tableRow')){for(const _0x385e2a of _0x5a5dbc['getChildren']())_0x5edafa['push'](_0x385e2a['getAttribute']('tableCellWidth')||null);}return _0x5edafa;}_restoreCellWidths(_0x293099,_0x13a769){_0x13a769&&this['editor']['model']['change'](_0x1c3ef2=>{let _0x364927=0x0;for(const _0x5e42db of _0x293099['getChildren']())if(_0x5e42db['is']('element','tableRow'))for(const _0x3438e9 of _0x5e42db['getChildren']()){const _0x28c20f=_0x13a769[_0x364927++];_0x28c20f&&_0x1c3ef2['setAttribute']('tableCellWidth',_0x28c20f,_0x3438e9);}});}handleSuggestionDescription(_0x50be3b){if('formatBlock'!=_0x50be3b['type']&&'formatInline'!=_0x50be3b['type'])return;const {data:_0x916f2e}=_0x50be3b;return _0x916f2e&&'resizeTable'===_0x916f2e['formatGroupId']?{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},qe=class extends _0x26ff96{afterInit(){const _0x36544a=this['editor'];_0x36544a['plugins']['has']('Template')&&_0x36544a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ye=class extends _0x26ff96{afterInit(){const _0x1b4897=this['editor'];if(!_0x1b4897['commands']['get']('insertTableOfContents'))return;_0x1b4897['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4e8b59=_0x1b4897['plugins']['get']('TrackChangesEditing'),_0x14d102=_0x1b4897['locale'];_0x4e8b59['descriptionFactory']['registerElementLabel']('tableOfContents',_0x399b26=>Mt(_0x14d102,'ELEMENT_TABLE_OF_CONTENTS',_0x399b26));}},Qe=class extends _0x26ff96{afterInit(){const _0x19d398=this['editor'];_0x19d398['plugins']['has']('Title')&&(_0x19d398['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Mt(_0x19d398['locale'],'ELEMENT_TITLE')),_0x19d398['model']['document']['registerPostFixer'](_0x303568=>{let _0x2bfa4c=!0x1;const _0x963468=Array['from'](_0x19d398['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x20f491,data:_0x28b8c6}of _0x963468){const {group:_0x1e9988}=tt(_0x20f491);if('suggestion'!==_0x1e9988||!_0x28b8c6['newRange'])continue;const _0x5ce804=_0x28b8c6['newRange'],_0x17b2dc=_0x5ce804['end']['nodeBefore'];if(!_0x17b2dc||!_0x17b2dc['is']('element','title-content'))continue;if(!_0x5ce804['start']['isTouching'](_0x5ce804['end']))continue;const _0x44f1f0=_0x19d398['model']['schema']['getNearestSelectionRange'](_0x5ce804['end'],'forward');if(_0x44f1f0&&_0x44f1f0['isCollapsed']){const _0x392400=_0x303568['createRange'](_0x5ce804['start'],_0x44f1f0['start']);_0x392400['isEqual'](_0x5ce804)||(_0x303568['updateMarker'](_0x20f491,{'range':_0x392400}),_0x2bfa4c=!0x0);}_0x2bfa4c||(_0x303568['removeMarker'](_0x20f491),_0x2bfa4c=!0x0);}return _0x2bfa4c;}));}},Ze=class extends _0x26ff96{afterInit(){const _0x310927=this['editor'],_0x2817ff=_0x310927['plugins']['get']('TrackChangesEditing');_0x310927['plugins']['has']('Uploadcare')&&(_0x2817ff['enableCommand']('uploadcare'),_0x310927['plugins']['has']('UploadcareImageEdit')&&(_0x2817ff['enableCommand']('uploadcareImageEdit'),_0x2817ff['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2817ff['descriptionFactory']['registerDescriptionCallback'](_0x1fbcbc=>{if('attribute'!=_0x1fbcbc['type'])return;const {data:_0x1027ad}=_0x1fbcbc;return _0x1027ad&&'uploadcareImageId'==_0x1027ad['key']?{'type':'format','content':''}:void 0x0;})));}},Je=class extends _0x26ff96{afterInit(){const _0x28d765=this['editor'],_0x20f64d=_0x28d765['plugins']['get']('TrackChangesEditing');_0x28d765['plugins']['has']('UndoEditing')&&(_0x20f64d['enableCommand']('undo'),_0x20f64d['enableCommand']('redo'));}},tn=class extends _0x26ff96{static get requires(){return[Ue];}afterInit(){const _0x873abc=this['editor'];_0x873abc['plugins']['has']('TableCaptionEditing')&&_0x873abc['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},en=class extends _0x26ff96{tableProperties;tableCellProperties;constructor(_0x2ef49f){super(_0x2ef49f),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x49e04a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xa3da2a of this['tableProperties'])_0x49e04a['enableCommand'](_0xa3da2a,(_0x58f942,_0x419176)=>{const _0x2d16a0=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xa3da2a,[_0x2d16a0],this['tableProperties'],'tableProperties',_0x58f942,_0x419176);});_0x49e04a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x49e04a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x49e04a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x42409d,_0x4f87e4)=>this['handleDiscardAction'](this['tableProperties'],_0x42409d,_0x4f87e4)),_0x49e04a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1c64af of this['tableCellProperties'])this['editor']['commands']['get'](_0x1c64af)&&_0x49e04a['enableCommand'](_0x1c64af,(_0xc6dbe9,_0x11ca13)=>{const _0x24f5cd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1c64af,_0x24f5cd,this['tableCellProperties'],'tableCellProperties',_0xc6dbe9,_0x11ca13);});_0x49e04a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x49e04a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x49e04a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x33036d,_0x543e68)=>this['handleDiscardAction'](this['tableCellProperties'],_0x33036d,_0x543e68)),_0x49e04a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x49e04a['descriptionFactory']['registerAttributeLabel']('tableCellType',Mt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x49e04a['descriptionFactory']['registerDescriptionCallback'](_0x20bb0f=>this['handleSuggestionDescription'](_0x20bb0f)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x2bba48,_0x18610a,_0x3a91ed,_0x2a9884,_0x3c7634,_0x54dad2){const _0x11cdd2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x54dad2['batch'],()=>{for(const _0x447eab of _0x18610a)if(this['_getSuggestion'](_0x447eab,_0x2a9884))_0x3c7634(_0x54dad2);else{const _0x13d904={};for(const _0x3a4ee2 of _0x3a91ed){const _0x179e69=_0x447eab['getAttribute'](_0x3a4ee2);void 0x0!==_0x179e69&&(_0x13d904[_0x3a4ee2]=_0x179e69);}const _0x4b11bf=this['_getResizedColumnWidths'](_0x447eab);_0x4b11bf&&(_0x13d904['columnWidths']=_0x4b11bf),_0x3c7634(_0x54dad2),_0x11cdd2['markBlockFormat'](_0x447eab,{'commandParams':[_0x13d904]},[],_0x2a9884);}});}handleDiscardAction(_0xacc91e,_0x17c56f,_0xd90d8e){const _0x120b9e=_0x17c56f[0x0]['start']['nodeAfter'],_0x34f165=_0xd90d8e['commandParams'][0x0];this['editor']['model']['change'](_0x437ced=>{for(const _0x270058 of _0xacc91e)void 0x0!==_0x34f165[_0x270058]?_0x437ced['setAttribute'](_0x270058,_0x34f165[_0x270058],_0x120b9e):_0x437ced['removeAttribute'](_0x270058,_0x120b9e);if(_0x34f165['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x1a69b3=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x10f33b=_0x1a69b3['getColumnGroupElement'](_0x120b9e);if(_0x10f33b){const _0x2003cf=_0x1a69b3['getTableColumnsWidths'](_0x10f33b),_0x192e91=_0x120b9e['getAttribute']('tableWidth');if(('string'==typeof _0x192e91&&_0x192e91['trim']()['endsWith']('px'))!==_0x2003cf['some'](_0x5c3c24=>'string'==typeof _0x5c3c24&&_0x5c3c24['endsWith']('px'))){const _0x1f14e8=_0x1a69b3['getTableColumnElements'](_0x10f33b);_0x34f165['columnWidths']['forEach']((_0x5b7699,_0x4af240)=>{_0x1f14e8[_0x4af240]&&_0x437ced['setAttribute']('columnWidth',_0x5b7699,_0x1f14e8[_0x4af240]);});}}}});}_getResizedColumnWidths(_0x59cd88){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x59cd88['is']('element','table'))return;const _0x3725ba=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x39e790=_0x3725ba['getColumnGroupElement'](_0x59cd88);return _0x39e790?_0x3725ba['getTableColumnsWidths'](_0x39e790):void 0x0;}handleSuggestionDescription(_0x43e270){if(_0x43e270['data'])switch(_0x43e270['subType']){case'tableProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0xc26141,_0x1e498d){const _0x1c1908=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xbb421e of _0x1c1908['getSuggestions']({'skipNotAttached':!0x0})){const _0x1c9fb6=_0xbb421e['getContainedElement']();if(_0xbb421e['subType']===_0x1e498d&&_0x1c9fb6===_0xc26141)return _0xbb421e;}return null;}_registerTablePropertiesAttributes(){const _0x45de3b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49f3de=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2e66e5 of _0x49f3de){const _0x3a959f=_0x2e66e5['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x45de3b['descriptionFactory']['registerAttributeLabel'](_0x2e66e5,Mt(this['editor']['locale'],'FORMAT_'+_0x3a959f));}}},nn=class extends _0x26ff96{afterInit(){const _0x34980e=this['editor'];if(!_0x34980e['plugins']['has']('LineHeight'))return;const _0x5819c3=_0x34980e['plugins']['get']('TrackChangesEditing'),_0x1b112f=_0x34980e['locale'];_0x5819c3['enableDefaultAttributesIntegration']('lineHeight'),_0x5819c3['descriptionFactory']['registerAttributeLabel']('lineHeight',Mt(_0x1b112f,'FORMAT_LINE_HEIGHT'));}};const sn='$elementName';function rn(_0x23df43){return'marker'==_0x23df43['type']&&_0x23df43['name']['startsWith']('$markedRemove');}var on=class extends _0x26ff96{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x5b43d8,_0x3338e0,_0x1d4274,_0x253707,wt,Ft,Bt,vt,Ut,Pt,Gt,$t,Ht,Wt,Vt,zt,Kt,Jt,te,ee,ie,se,re,ae,ce,le,ue,de,he,fe,ge,me,Ee,Te,pe,Ae,ye,_e,Xt,nn,Yt,be,ke,Ce,Re,Ne,Se,Me,Oe,we,Fe,ve,De,Ue,xe,Ge,He,$e,tn,je,Xe,Ye,en,qe,Qe,Ze,Je];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4bfbc4){super(_0x4bfbc4),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4d09b8,_0x23fed4,_0x577325,_0x94e88a)=>{this['_model']['change'](()=>{for(const _0x1f0605 of[..._0x94e88a,..._0x577325])this['_model']['markers']['has'](_0x1f0605)&&_0x4bfbc4['editing']['reconvertMarker'](_0x1f0605);});}),this['descriptionFactory']=new Ot(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new an(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4bfbc4['plugins']['get'](_0x5b43d8),this['_suggestionsConversion']=_0x4bfbc4['plugins']['get'](_0x3338e0),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4bfbc4['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4bfbc4['config']['get']('trackChanges.trackFormatChanges'),_0x4bfbc4['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4bfbc4['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Tt(_0x4bfbc4,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x49cfe8=this['editor'];_0x49cfe8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x345278,{writer:_0x1dc771})=>{let _0xad5400='suggestion:'+_0x345278['getAttribute']('suggestion-type')+':'+_0x345278['getAttribute']('id');return _0x345278['getAttribute']('marker-count')&&(_0xad5400+=':'+_0x345278['getAttribute']('marker-count')),_0x1dc771['createElement']('$marker',{'data-name':_0xad5400});}}),_0x49cfe8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x49cfe8['model']['document']['registerPostFixer'](_0x199386=>{let _0x36dd35=!0x1;const _0x20d2be=Array['from'](_0x49cfe8['model']['document']['differ']['getChangedMarkers']()),_0x15474a=new Set();for(const {name:_0x3904a1,data:_0x2b33d3}of _0x20d2be){const {group:_0x3f1876,type:_0x4b77d2,subType:_0x21ac9a,id:_0x52f381}=tt(_0x3904a1);if('suggestion'!==_0x3f1876)continue;const _0x416f61=_0x21ac9a?'suggestion:'+_0x4b77d2+':'+_0x21ac9a+':'+_0x52f381:'suggestion:'+_0x4b77d2+':'+_0x52f381,_0x606304=_0x49cfe8['model']['markers']['getMarkersGroup'](_0x416f61),_0x4d3d6d=_0x49cfe8['model']['markers']['get'](_0x3904a1),_0xfdeea2=this['_suggestions']['get'](_0x52f381);if(null!=_0x2b33d3['newRange']){'formatInline'==_0x4b77d2&&(_0x36dd35=_0x36dd35||un(_0x2b33d3['newRange'],_0x3904a1,_0x199386,_0x49cfe8['model']['schema']));const _0xc0fcd='attribute'==_0x4b77d2&&this['_suggestionsConversion']['isBlockAttribute'](In(_0x21ac9a)),_0x2756ec='attribute'==_0x4b77d2&&this['_suggestionsConversion']['isInlineAttribute'](In(_0x21ac9a));if(_0x2b33d3['newRange']['isCollapsed']||'$graveyard'==_0x2b33d3['newRange']['root']['rootName']||'formatBlock'==_0x4b77d2&&!hn(_0x2b33d3['newRange'])||_0xc0fcd&&!hn(_0x2b33d3['newRange'])||_0x2756ec&&gn(_0x2b33d3['newRange'])||'deletion'==_0x4b77d2&&gn(_0x2b33d3['newRange'])||_0x4d3d6d&&fn(_0x4d3d6d,_0x606304))_0x199386['removeMarker'](_0x3904a1),_0x36dd35=!0x0;else{if(!_0xfdeea2||!_0xfdeea2['isInContent'])continue;if(_0x2b33d3['newRange']&&_0x2b33d3['oldRange']&&_0x2b33d3['newRange']['isEqual'](_0x2b33d3['oldRange']))continue;_0x15474a['add'](_0xfdeea2);}}}return _0x15474a['size']>0x0&&(_0x36dd35=!!this['_joinWithAdjacentSuggestions'](_0x15474a)||_0x36dd35),_0x36dd35;}),_0x49cfe8['model']['document']['registerPostFixer'](_0x730cbf=>{let _0x59c331=!0x1;for(const _0x4c1558 of _0x49cfe8['model']['document']['differ']['getChanges']())if('insert'==_0x4c1558['type'])for(const _0x5f368f of this['_suggestions']['values']()){if(_0x5f368f['isMultiRange']||!_0x5f368f['isInContent'])continue;const _0x165736='formatBlock'==_0x5f368f['type'],_0x4b3d56=this['_getAttributeKey'](_0x5f368f),_0x36296f=_0x4b3d56&&this['_suggestionsConversion']['isBlockAttribute'](_0x4b3d56);if(!_0x165736&&!_0x36296f)continue;const _0x41eac5=_0x5f368f['getFirstRange']();if(_0x41eac5['start']['parent']!=_0x41eac5['end']['parent']&&!_0x41eac5['end']['isAtEnd']){const _0x2290c3=_0x49cfe8['model']['createPositionAt'](_0x41eac5['start']['nodeAfter'],'end'),_0x2c7577=_0x49cfe8['model']['createRange'](_0x41eac5['start'],_0x2290c3);_0x730cbf['updateMarker'](_0x5f368f['getFirstMarker'](),{'range':_0x2c7577}),_0x59c331=!0x0;}}return _0x59c331;}),_0x49cfe8['model']['document']['registerPostFixer'](_0x2338f8=>this['_processAttributeChanges'](_0x2338f8)),_0x49cfe8['model']['document']['registerPostFixer'](_0x823638=>!_0x823638['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x823638)),_0x49cfe8['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x49cfe8['model']['document']['on']('change:data',(_0x3015b4,_0x10aa40)=>{if(!_0x10aa40['isLocal']||_0x10aa40['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1422e5=_0x49cfe8['model']['document']['differ']['getChanges']();if(0x0==_0x1422e5['length'])return;const _0x2f2a65=[],_0x56fb73=_0x1422e5['filter'](_0x13182d=>'attribute'==_0x13182d['type']),_0x512107=_0x1422e5['filter'](_0x2b11be=>'insert'==_0x2b11be['type']&&'$text'!=_0x2b11be['name']);for(const _0x180a5c of _0x56fb73)this['_suggestionsConversion']['isRegisteredAttribute'](_0x180a5c['attributeKey'])&&_0x2f2a65['push']({'key':_0x180a5c['attributeKey'],'newValue':_0x180a5c['attributeNewValue'],'oldValue':_0x180a5c['attributeOldValue'],'range':mn(_0x180a5c['range'],_0x49cfe8['model'])});for(const _0x502df8 of _0x512107){if('rename'!=_0x502df8['action']&&'refresh'!=_0x502df8['action'])continue;const _0x167e83=En(_0x502df8['position']['nodeAfter'],_0x49cfe8['model']),_0x77d499=_0x502df8['before'];'rename'==_0x502df8['action']&&_0x2f2a65['push']({'key':sn,'newValue':_0x502df8['name'],'oldValue':_0x77d499['name'],'range':_0x167e83});for(const [_0x5564b0,_0x4cccd5]of _0x77d499['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x5564b0))continue;const _0x1fd53d=_0x502df8['attributes']['get'](_0x5564b0);_0x4cccd5!==_0x1fd53d&&_0x2f2a65['push']({'key':_0x5564b0,'newValue':_0x1fd53d,'oldValue':_0x4cccd5,'range':_0x167e83});}for(const [_0x34d3b4,_0x1203fe]of _0x502df8['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x34d3b4)&&(_0x77d499['attributes']['has'](_0x34d3b4)||_0x2f2a65['push']({'key':_0x34d3b4,'newValue':_0x1203fe,'oldValue':null,'range':_0x167e83}));}0x0!=_0x2f2a65['length']&&_0x49cfe8['model']['enqueueChange'](_0x10aa40,_0x372c73=>{const _0x1f4306=_0x3a663f();for(const {range:_0x15dd0e,key:_0x1db988,oldValue:_0x13e738,newValue:_0x87d134}of _0x2f2a65)this['markAttributeChange'](_0x15dd0e,_0x1db988,_0x13e738,_0x87d134,{'groupId':_0x1f4306});this['_reduceExistingSuggestions'](_0x372c73,_0x2f2a65);});},{'priority':'lowest'}),_0x49cfe8['model']['markers']['on']('update:suggestion',(_0x2431b3,_0x200786,_0xe0cab6)=>{if(null==_0xe0cab6){const {id:_0x296d53}=tt(_0x200786['name']),_0x3cc780=this['_suggestions']['get'](_0x296d53);_0x3cc780&&_0x3cc780['addMarkerName'](_0x200786['name']);}}),_0x49cfe8['model']['document']['on']('change:data',()=>{const _0x45b666=Array['from'](_0x49cfe8['model']['document']['differ']['getChangedMarkers']())['filter'](_0x38d0b0=>'suggestion'===tt(_0x38d0b0['name'])['group']);if(0x0===_0x45b666['length'])return;_0x45b666['sort']((_0x413742,_0x57a614)=>{const _0x4d04c7=_0x413742['data']['oldRange'],_0x127758=_0x57a614['data']['oldRange'];return null===_0x4d04c7&&null===_0x127758?0x0:null===_0x4d04c7&&null!==_0x127758?-0x1:null!==_0x4d04c7&&null===_0x127758?0x1:_0x4d04c7['start']['isBefore'](_0x127758['start'])?-0x1:0x1;});const _0x1aabae=new Set(),_0x4cc198=new Set();for(const {name:_0x5a49b1,data:_0xd91f5f}of _0x45b666){const {id:_0x563e91}=tt(_0x5a49b1);if(null===_0xd91f5f['oldRange']){const _0x34d02b=this['_handleNewSuggestionMarker'](_0x5a49b1);_0x4cc198['add'](_0x34d02b);}else{const _0x4d2dde=this['_suggestions']['get'](_0x563e91);null!==_0xd91f5f['newRange']||_0x4d2dde['isInContent']?(_0x1aabae['add'](_0x4d2dde['head']),_0x4cc198['add'](_0x4d2dde)):this['_removeSuggestion'](_0x4d2dde);}}_0x4cc198['size']>0x0&&this['_refreshSuggestionsChain'](_0x4cc198);for(const _0x4e8345 of _0x1aabae)this['fire']('suggestionChanged',_0x4e8345);}),_0x49cfe8['model']['on']('applyOperation',(_0x592c6a,_0x8bbc23)=>{const _0x20f88e=_0x8bbc23[0x0];if(!this['_suggestions']['size'])return;if(!_0x20f88e['isDocumentOperation'])return;if(_0x20f88e['batch']['isUndo']||!_0x20f88e['batch']['isLocal'])return;let _0x418f10,_0xe6388d;switch(_0x20f88e['type']){case'insert':_0x418f10=_0x49cfe8['model']['createPositionAt'](_0x20f88e['position']),_0xe6388d=_0x418f10['getShiftedBy'](_0x20f88e['howMany']);break;case'split':_0x418f10=_0x49cfe8['model']['createPositionAt'](_0x20f88e['splitPosition']),_0xe6388d=_0x49cfe8['model']['createPositionAt'](_0x20f88e['moveTargetPosition']);break;case'move':_0x418f10=_0x49cfe8['model']['createPositionAt'](_0x20f88e['targetPosition']),_0xe6388d=_0x418f10['getShiftedBy'](_0x20f88e['howMany']);break;default:return;}const _0x1bc1f5=_0x49cfe8['model']['createRange'](_0x418f10,_0xe6388d);_0x49cfe8['model']['change'](()=>{for(const {suggestion:_0x35e745,meta:_0x199cb9}of this['_findSuggestions'](_0x1bc1f5)){if(_0x35e745['isMultiRange'])continue;if('formatInline'==_0x35e745['type'])continue;const _0x158619=this['_getAttributeKey'](_0x35e745);if(_0x158619&&this['_suggestionsConversion']['isBlockAttribute'](_0x158619)&&'split'!=_0x20f88e['type'])continue;const _0x1be02b=_0x35e745['data']&&_0x35e745['data']['multipleBlocks'];('formatBlock'!=_0x35e745['type']||'split'==_0x20f88e['type']&&!_0x1be02b)&&(_0x199cb9['containsRangeInObject']||'insertion'==_0x35e745['type']&&_0x199cb9['isOwn']||_0x35e745['getFirstRange']()['containsRange'](_0x1bc1f5)&&this['_breakSuggestionMarker'](_0x35e745,_0x418f10,_0xe6388d));}});},{'priority':'lowest'}),_0x49cfe8['model']['on']('deleteContent',(_0x3d818b,_0x640cd3)=>{const _0x4d47b2=_0x640cd3[0x0],_0x2f8a0b=_0x640cd3[0x1];if(_0x2f8a0b&&_0x2f8a0b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4d47b2['isCollapsed'])return;const _0x58e6bf=_0x49cfe8['model']['schema'],{start:_0x5da35d,end:_0x208ee4}=_0x4d47b2['getFirstRange'](),_0x11cc0d=_0x5da35d['nodeAfter']&&_0x58e6bf['isLimit'](_0x5da35d['nodeAfter'])?null:_0x58e6bf['getNearestSelectionRange'](_0x5da35d,'forward'),_0x2e90a8=_0x208ee4['nodeBefore']&&_0x58e6bf['isLimit'](_0x208ee4['nodeBefore'])?null:_0x58e6bf['getNearestSelectionRange'](_0x208ee4,'backward'),_0x58dda7=_0x49cfe8['model']['createRange'](_0x11cc0d?_0x11cc0d['start']:_0x5da35d,_0x2e90a8?_0x2e90a8['end']:_0x208ee4);_0x49cfe8['model']['change'](_0x212602=>{this['markDeletion'](_0x58dda7);const _0x40070c=_0x49cfe8['model']['schema']['getNearestSelectionRange'](_0x58dda7['start']);_0x4d47b2['is']('documentSelection')?_0x212602['setSelection'](_0x40070c):_0x4d47b2['setTo'](_0x40070c);}),_0x3d818b['stop']();},{'priority':_0x224aaf['normal']+0xa}),_0x49cfe8['model']['on']('insertContent',(_0x589c82,_0x207157)=>{const _0x2270d5=_0x207157[_0x207157['length']-0x1];_0x2270d5&&_0x2270d5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x49cfe8['model']['change'](()=>{let _0x380246=_0x49cfe8['model']['insertContent'](_0x207157[0x0],_0x207157[0x1],_0x207157[0x2],{'forceDefaultExecution':!0x0});if(!_0x380246)return;_0x589c82['return']=_0x380246['clone']();const _0x545dd1=_0x380246['end']['nodeBefore'],_0x40075a=_0x49cfe8['model']['schema'];_0x545dd1&&_0x40075a['isBlock'](_0x545dd1)&&!_0x40075a['isObject'](_0x545dd1)&&(_0x380246=_0x49cfe8['model']['createRange'](_0x380246['start'],_0x49cfe8['model']['createPositionAt'](_0x545dd1,'end'))),this['markInsertion'](_0x380246);}),_0x589c82['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x123777=new _t(_0x49cfe8,this['_suggestions']);_0x49cfe8['commands']['add']('acceptSuggestion',_0x123777),this['enableCommand']('acceptSuggestion');const _0x222703=new pt(_0x49cfe8,this['_suggestions']);_0x49cfe8['commands']['add']('discardSuggestion',_0x222703),this['enableCommand']('discardSuggestion'),_0x49cfe8['commands']['add']('acceptAllSuggestions',new Rt(_0x49cfe8,_0x123777,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x49cfe8['commands']['add']('discardAllSuggestions',new Rt(_0x49cfe8,_0x222703,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x49cfe8['commands']['add']('acceptSelectedSuggestions',new yt(_0x49cfe8,_0x123777,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x49cfe8['commands']['add']('discardSelectedSuggestions',new yt(_0x49cfe8,_0x222703,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x136ea5=_0x49cfe8['plugins']['get'](_0x5b43d8);this['listenTo'](_0x136ea5,'addComment',(_0x13bf50,{threadId:_0x4412b8})=>{const _0x16d463=this['_suggestions']['get'](_0x4412b8);_0x16d463&&_0x16d463['commentThread']&&0x1===_0x16d463['commentThread']['length']&&this['_updateSuggestionData'](_0x4412b8,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x136ea5,'removeComment',(_0x5ca58b,{threadId:_0x23d03f})=>{const _0x3d210f=this['_suggestions']['get'](_0x23d03f);_0x3d210f&&_0x3d210f['commentThread']&&!_0x3d210f['commentThread']['length']&&this['_updateSuggestionData'](_0x23d03f,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x15b22b){const _0x5d1a9c='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x33fb61=0x793f8,_0x3ed640={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x3aa6d2(_0x27410b){const _0x251860=new window['Promise'](_0x511c1b=>{_0x27410b['once']('ready',_0x511c1b);}),_0x595da5=window['Date']['now'](),_0x3a32cb=_0x27410b['config']['get']('licenseKey');async function _0x5cccb9(){let _0x1ee1fc,_0x25b46f=null,_0x425e71=null;try{return'GPL'==_0x3a32cb?'NotAllowed':(_0x1ee1fc=_0x3604ea(),_0x1ee1fc?(_0x1ee1fc['usageEndpoint']&&(_0x425e71=_0x55feb1(_0x1ee1fc['usageEndpoint'],_0x1ee1fc['jti'])),await _0x2b7c40()?_0x321198()?_0x392fe3()?'Expired':_0x43504c()?('evaluation'==_0x1ee1fc['licenseType']&&(_0x25b46f=_0x1e5859('EvaluationLimit')),await _0x508b92()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x392fe3(){const _0x59aa32=['evaluation','trial']['includes'](_0x1ee1fc['licenseType'])?_0x595da5/0x3e8:0xe10*_0x33fb61;return _0x1ee1fc['exp']<_0x59aa32;}function _0x321198(){const _0x12e3b5=_0x1ee1fc['features'];if(!_0x12e3b5)return!0x1;if(_0x12e3b5['includes']('*'))return!0x0;if(_0x12e3b5['includes']('TC'))return!0x0;if(_0x12e3b5['includes']('RTC')){if(_0x37600e())return!0x0;if(_0x304583()||_0x2639c8())return!0x0;}return!0x1;}function _0x43504c(){const _0x4513a4=_0x1ee1fc['licensedHosts'];if(!_0x4513a4||0x0==_0x4513a4['length'])return!0x0;const {hostname:_0x6951b8}=new URL(window['location']['href']);if(_0x4513a4['includes'](_0x6951b8))return!0x0;const _0x9c137e=_0x6951b8['split']('.');return _0x4513a4['filter'](_0x322312=>_0x322312['includes']('*'))['map'](_0x1380db=>_0x1380db['split']('.'))['filter'](_0x1eed26=>_0x1eed26['length']<=_0x9c137e['length'])['map'](_0x469a6e=>Array(_0x9c137e['length']-_0x469a6e['length'])['fill']('*'===_0x469a6e[0x0]?'*':'')['concat'](_0x469a6e))['some'](_0x258440=>_0x9c137e['every']((_0x22cc6e,_0x36d0de)=>_0x258440[_0x36d0de]===_0x22cc6e||'*'===_0x258440[_0x36d0de]));}function _0x508b92(){return _0x25b46f&&_0x425e71?new window['Promise']((_0x273e49,_0x308b95)=>{_0x25b46f['then'](_0x273e49,_0x308b95),_0x425e71['then'](_0x95f65a=>{'Valid'!=_0x95f65a&&_0x273e49(_0x95f65a);},_0x308b95);}):_0x25b46f||_0x425e71||'Valid';}}function _0x55feb1(_0x4d2b30,_0x42970a){return new window['Promise'](_0x3b2ddb=>{if(_0x7772c8())return _0x3b2ddb('Valid');_0x368e84(),_0x27410b['decorate']('_sendUsageRequest');let _0x3c27fa=!0x1;const _0x2af5be=_0x3a663f();function _0x62a4a7(_0x2918ed){return!!_0x2918ed&&('object'==typeof _0x2918ed||'function'==typeof _0x2918ed)&&'function'==typeof _0x2918ed['then']&&'function'==typeof _0x2918ed['catch'];}function _0x2b9ba6(_0x1c6cf9){_0x42f90c(_0x1c6cf9)['then'](_0x4b2d49=>_0x4b2d49&&'ok'==_0x4b2d49['status']?_0x454b9f(_0x240d2e(_0x2af5be+_0x42970a))!=_0x4b2d49['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x8b746f=>(_0x522402(),_0x8b746f),()=>{const _0x49aab3=_0x15d76e();return null==_0x49aab3?(_0x522402(),'Valid'):_0x595da5-_0x49aab3>0x240c8400?'UsageLimit':'Valid';})['then'](_0x3b2ddb)['catch'](()=>{_0x3b2ddb('UsageLimit');});const _0x3af50d=0x36ee80;function _0x522402(){const _0x4aca9b='llct-'+_0x454b9f(_0x240d2e(_0x4d2b30)),_0x42f1e5=_0x283183(_0x454b9f(window['Math']['ceil'](_0x595da5/_0x3af50d)));window['localStorage']['setItem'](_0x4aca9b,_0x42f1e5);}function _0x15d76e(){const _0xc9dd07='llct-'+_0x454b9f(_0x240d2e(_0x4d2b30)),_0xde1115=window['localStorage']['getItem'](_0xc9dd07);return _0xde1115?window['parseInt'](_0x283183(_0xde1115),0x10)*_0x3af50d:null;}function _0x42f90c(_0x5d9cb9){return new window['Promise']((_0xf28455,_0x3138ee)=>{_0x5d9cb9['then'](_0xf28455,_0x3138ee),window['setTimeout'](_0x3138ee,0x1d4c0);});}}_0x27410b['on']('_sendUsageRequest',(_0x38cc93,_0x1ea6d9)=>{if(_0x1ea6d9[0x0]!=_0x4d2b30)return _0x3b2ddb('UsageLimit');_0x1ea6d9[0x1]={..._0x1ea6d9[0x1],'requestId':_0x2af5be};},{'priority':'high'}),_0x27410b['on']('_sendUsageRequest',_0xbfaba7=>{_0x62a4a7(_0xbfaba7['return'])&&(_0x3c27fa=!0x0,_0x2b9ba6(_0xbfaba7['return']));},{'priority':'low'}),_0x251860['then'](()=>{_0x3c27fa||_0x3b2ddb('UsageLimit');});});function _0x7772c8(){return'auto'==_0x27410b['editing']['view']['_overlayModeHint'];}function _0x368e84(){_0x27410b['editing']['view']['_overlayModeHint']='auto';}}function _0x1e5859(_0x2a613a){const _0x4189d7=[new window['Promise'](_0x49005c=>setTimeout(_0x49005c,0x93ecc)),_0x251860['then'](()=>new window['Promise'](_0x675b5e=>{let _0x1b5351=0x0;_0x27410b['model']['on']('applyOperation',(_0x45e167,_0x2cf779)=>{_0x2cf779[0x0]['isDocumentOperation']&&_0x1b5351++,0x5e8==_0x1b5351&&(_0x675b5e(),_0x45e167['off']());});}))];return window['Promise']['race'](_0x4189d7)['then'](()=>_0x2a613a);}async function _0x38f7f9(){await _0x251860,_0x27410b['model']['change']=_0x822299,_0x27410b['model']['enqueueChange']=_0x822299,_0x27410b['enableReadOnlyMode']('model');}function _0x37600e(){return _0x508543('WebSocketGateway')&&'connected'==_0x136829('WebSocketGateway')['state'];}function _0x304583(){return _0x508543('RevisionViewerIntegration');}function _0x2639c8(){return _0x508543('TrackChangesDataGetter');}function _0x4048f0(_0x487285){const _0xb7a98d=_0x2ed21f();_0x27410b[_0xb7a98d]='trackChangesLicenseKey'+_0x487285,'Valid'!=_0x487285&&_0x38f7f9();}function _0x2ed21f(){const _0x202352=window['String'](window['performance']['now']())['replace']('.','');let _0x506a22='U';for(let _0x41836b=0x0;_0x41836b<_0x202352['length'];_0x41836b+=0x2){let _0x437fba=window['parseInt'](_0x202352['substring'](_0x41836b,_0x41836b+0x2));_0x437fba>=0x3e&&(_0x437fba-=0x3e),_0x506a22+=_0x5d1a9c[_0x437fba];}return _0x506a22;}function _0x3604ea(){const _0x24849a=_0x3a32cb['split']('.');if(0x3!=_0x24849a['length'])return null;return _0x368e1e(_0x24849a[0x1]);function _0x368e1e(_0x42d2f1){const _0x46caff=_0xd73459(_0x42d2f1);return _0x46caff&&_0x36e974()?_0x46caff:null;function _0x36e974(){const _0x15065d=_0x46caff['jti'],_0x45fd78=window['parseInt'](_0x15065d['substring'](_0x15065d['length']-0x8),0x10),_0x31bfb2={..._0x46caff,'jti':_0x15065d['substring'](0x0,_0x15065d['length']-0x8)};return delete _0x31bfb2['vc'],_0x240d2e(_0x31bfb2)==_0x45fd78;}}}async function _0x2b7c40(){let _0xd2315d=!0x0;try{const [_0x22cb61,_0x442ef5,_0x29e138]=_0x3a32cb['split']('.');return _0x170d41(_0x22cb61),await _0x427520(_0x22cb61,_0x442ef5,_0x29e138),_0xd2315d;}catch{return!0x1;}function _0x170d41(_0x40999e){const _0xc1c4ff=_0xd73459(_0x40999e);_0xc1c4ff&&'ES256'==_0xc1c4ff['alg']||(_0xd2315d=!0x1);}async function _0x427520(_0x3b8ee9,_0x5199e2,_0x2c4f5d){const _0x5dec6d=window['Uint8Array']['from'](_0x33e825(_0x2c4f5d),_0x587d45=>_0x587d45['charCodeAt'](0x0)),_0xea5dfe=new window['TextEncoder']()['encode'](_0x3b8ee9+'.'+_0x5199e2),_0x212fab=window['crypto']['subtle'];if(!_0x212fab)return;const _0x159366=await _0x212fab['importKey']('jwk',_0x3ed640,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x212fab['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x159366,_0x5dec6d,_0xea5dfe)||(_0xd2315d=!0x1);}}function _0xd73459(_0x296157){return _0x296157['startsWith']('ey')?JSON['parse'](_0x33e825(_0x296157)):null;}function _0x33e825(_0x1241c5){return window['atob'](_0x1241c5['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x240d2e(_0xe27c7c){let _0x35affb=0x1505;function _0x64f78d(_0x2625ca){for(let _0x364914=0x0;_0x364914<_0x2625ca['length'];_0x364914++){const _0xc240ee=_0x2625ca['charCodeAt'](_0x364914);_0x35affb=(_0x35affb<<0x5)+_0x35affb+_0xc240ee,_0x35affb&=_0x35affb;}}function _0x51126c(_0x51c162){Array['isArray'](_0x51c162)?_0x51c162['forEach'](_0x51126c):_0x51c162&&'object'==typeof _0x51c162?Object['entries'](_0x51c162)['sort']()['forEach'](([_0xc45ece,_0x4321f1])=>{_0x64f78d(_0xc45ece),_0x51126c(_0x4321f1);}):_0x64f78d(window['String'](_0x51c162));}return _0x51126c(_0xe27c7c),_0x35affb>>>0x0;}function _0x454b9f(_0x433a22){return _0x433a22['toString'](0x10)['padStart'](0x8,'0');}function _0x283183(_0x5c229b){return _0x5c229b['split']('')['reverse']()['join']('');}function _0x508543(_0x52b0e1){return _0x27410b['plugins']['has'](_0x52b0e1);}function _0x136829(_0x3a93d9){return _0x27410b['plugins']['get'](_0x3a93d9);}function _0x822299(){}_0x4048f0(await _0x5cccb9());}_0x3aa6d2(_0x15b22b['editor']);}(this);}set adapter(_0x35c4b4){if(this['_adapter'])throw new _0x18ab5c('track-changes-adapter-already-set',this);this['_adapter']=_0x35c4b4;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x1a73f=!0x1,toJSON:_0x217956=!0x1}={}){const _0x2c5711=[];for(const _0x40aa89 of this['_suggestions']['values']())_0x1a73f&&!_0x40aa89['isInContent']||_0x2c5711['push'](_0x40aa89);return _0x217956?_0x2c5711['map'](_0xba1750=>_0xba1750['toJSON']()):_0x2c5711;}getSuggestion(_0x586b21){const _0x21d0f7=this['_suggestions']['get'](_0x586b21);if(!_0x21d0f7)throw new _0x18ab5c('track-changes-suggestion-not-found',this);return _0x21d0f7;}hasSuggestion(_0x130162){return this['_suggestions']['has'](_0x130162);}addSuggestionData(_0x1b5bd4){const {authorId:_0x3de152,id:_0x69ddb4,originalSuggestionId:_0x399e9a,attributes:_0x4503cf}=_0x1b5bd4,[_0x5de853,_0x442202]=_0x1b5bd4['type']['split'](':'),_0x117a6f=this['_suggestions']['get'](_0x69ddb4)||this['_createSuggestion'](_0x5de853,_0x442202,_0x69ddb4,_0x3de152,_0x4503cf,_0x399e9a);if(this['_addThreadToSuggestion'](_0x117a6f),this['_checkSuggestionCorrectness'](_0x117a6f,_0x5de853,_0x442202||null,_0x3de152),_0x117a6f['createdAt']=_0x1b5bd4['createdAt'],_0x117a6f['_isDataLoaded']=!0x0,_0x4503cf&&_0x4503cf['@external']){const _0x150ca5=_0x4503cf['@external'],_0x4cedbf=this['_getExternalAuthor'](_0x150ca5['authorName']);_0x117a6f['authoredAt']=_0x150ca5['createdAt'],_0x117a6f['author']=_0x4cedbf;}else _0x117a6f['authoredAt']=_0x1b5bd4['createdAt'];switch(_0x1b5bd4['data']&&(_0x117a6f['data']=_0x1b5bd4['data']),_0x1b5bd4['attributes']&&(_0x117a6f['attributes']=_0x1b5bd4['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x117a6f['_saved']=!0x0),this['_suggestionState']['get'](_0x117a6f)){case'notReady':this['_suggestionState']['set'](_0x117a6f,'dataReady');break;case'markerReady':_0x117a6f['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x117a6f])),this['_refreshSuggestionsChain'](new Set([_0x117a6f])),this['_suggestionState']['set'](_0x117a6f,'ready'),this['fire']('suggestionLoaded',_0x117a6f)):this['_suggestionState']['set'](_0x117a6f,'removed');}return _0x117a6f;}acceptSuggestion(_0xccabb9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x12a414 of _0xccabb9['getAllAdjacentSuggestions']())_0x12a414['accept']();});});}discardSuggestion(_0x474aaa){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1a4b00 of _0x474aaa['getAllAdjacentSuggestions']())_0x1a4b00['discard']();});});}['enableCommand'](_0x3b09b6,_0x204283){const _0x2be889=this['editor']['commands']['get'](_0x3b09b6);if(!_0x2be889)throw new _0x18ab5c('track-changes-command-not-found',this,{'commandName':_0x3b09b6});if(this['_enabledCommands']['has'](_0x2be889))throw new _0x18ab5c('track-changes-enable-command-twice',this,{'commandName':_0x3b09b6});this['_enabledCommands']['add'](_0x2be889),_0x204283&&_0x2be889['on']('execute',(_0x4fe690,_0x1bada3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1bada3['length']>0x0&&_0x1bada3[_0x1bada3['length']-0x1]&&_0x1bada3[_0x1bada3['length']-0x1]['forceDefaultExecution']?_0x1bada3['pop']():(_0x4fe690['return']=_0x204283((..._0x34a285)=>_0x2be889['execute'](..._0x34a285,{'forceDefaultExecution':!0x0}),..._0x1bada3),_0x4fe690['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x399e0e){let _0x1e7bc6,_0x740ce2;const _0x2f2d1c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1e7bc6=_0x399e0e();}catch(_0x130b93){_0x740ce2=_0x130b93;}return _0x2f2d1c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x740ce2&&_0x18ab5c['rethrowUnexpectedError'](_0x740ce2,this),_0x1e7bc6;}markInsertion(_0x494a64,_0x188c19=null,_0x33e79d={}){if(_0x494a64['isCollapsed'])return null;const _0x108d33=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x33e79d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3f22f5,meta:_0x297464}of this['_findSuggestions'](_0x494a64,'insertion'))if(_0x297464['isOwn']){if(!_0x297464['isNextTo']){if(_0x297464['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!pn(_0x3f22f5,_0x33e79d))continue;return _0x3f22f5;}if(pn(_0x3f22f5,_0x33e79d))return _0x3f22f5;this['_breakSuggestionMarker'](_0x3f22f5,_0x494a64['start'],_0x494a64['end']);break;}if(_0x188c19==_0x3f22f5['subType']&&pn(_0x3f22f5,_0x33e79d)){const _0x23c891=_0x3f22f5['getFirstRange']();return _0x23c891['start']['isEqual'](_0x494a64['end'])?this['_setSuggestionRange'](_0x3f22f5,this['_model']['createRange'](_0x494a64['start'],_0x23c891['end'])):this['_setSuggestionRange'](_0x3f22f5,this['_model']['createRange'](_0x23c891['start'],_0x494a64['end'])),_0x3f22f5;}}const _0x3b1ec0=_0x3a663f(),_0x644172=_0x108d33['id'],_0x2b3ffc=_0x188c19?'insertion:'+_0x188c19:'insertion',_0x56dfd9=this['_setSuggestionData']({'id':_0x3b1ec0,'type':_0x2b3ffc,'createdAt':new Date(),'authorId':_0x644172,'attributes':_0x33e79d});return this['_addSuggestionMarker'](_0x2b3ffc,_0x3b1ec0,_0x644172,_0x494a64),_0x56dfd9;}markMultiRangeInsertion(_0x3ba901,_0x31cb67='multi',_0x553634={}){const _0x2840e0=this['editor']['plugins']['get']('Users')['me'],_0x11e648=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x31cb67,'join');this['_trackingSessionId']&&(_0x553634['trackingSessionId']=this['_trackingSessionId']);for(const _0x5936f3 of this['getSuggestions']())if(_0x5936f3['author']['id']==_0x2840e0['id']&&'insertion'==_0x5936f3['type']&&_0x5936f3['subType']==_0x31cb67&&pn(_0x5936f3,_0x553634)&&(_0x11e648(_0x5936f3['getRanges'](),_0x3ba901)||_0x11e648(_0x3ba901,_0x5936f3['getRanges']()))){for(const _0x23d451 of _0x3ba901)_0x5936f3['addRange'](_0x23d451);return _0x5936f3;}for(const {suggestion:_0x236a86,meta:_0x292fb5}of this['_findSuggestions'](_0x3ba901,'insertion')){if(!_0x292fb5['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x292fb5['containsRangeInObject'])continue;if(!pn(_0x236a86,_0x553634))continue;let _0xd0eb99=!0x0;for(const _0x4a7567 of _0x236a86['getRanges']())for(const _0x5f004a of _0x3ba901)if(!_0x4a7567['containsRange'](_0x5f004a)){_0xd0eb99=!0x1;break;}if(_0xd0eb99)return _0x236a86;}const _0x28de34=_0x3a663f(),_0x24caef=_0x2840e0['id'],_0x4b84d1='insertion:'+_0x31cb67,_0x3d24c7=this['_setSuggestionData']({'id':_0x28de34,'type':_0x4b84d1,'createdAt':new Date(),'authorId':_0x24caef,'attributes':_0x553634});for(const _0x98084 of _0x3ba901)this['_addSuggestionMarker'](_0x4b84d1,_0x28de34,_0x24caef,_0x98084,St['getMultiRangeId']());return _0x3d24c7;}markInlineFormat(_0x555d4d,_0x294e4b,_0xa630b6=null,_0x2371ac={}){if(_0xa630b6=_0xa630b6||dn(_0x294e4b),_0x555d4d['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2371ac['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x335079=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xa630b6,'accept');return this['forceDefaultExecution'](()=>_0x335079([_0x555d4d],_0x294e4b,_0x2371ac)),null;}const _0x31e944=this['editor']['plugins']['get']('Users')['me'],_0xa4913f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x41f431,meta:_0x2ee02f}of this['_findSuggestions'](_0x555d4d,'insertion'))_0x2ee02f['isOwn']&&!_0x2ee02f['isInsideObject']&&_0xa4913f['push'](..._0x41f431['getRanges']());}const _0x243355=function(_0x260e77,_0x1a7e77){const _0x5f3357=[];for(const _0x245b27 of _0x1a7e77){const _0x62d1ea=_0x260e77['getIntersection'](_0x245b27);_0x62d1ea&&_0x5f3357['push'](_0x62d1ea);}return _0x5f3357;}(_0x555d4d,_0xa4913f),_0x1d9567=function(_0x4457ba,_0x27c4bf){const _0x56a8f3=[_0x4457ba];for(const _0x4baf8f of _0x27c4bf){let _0x311015=0x0;for(;_0x311015<_0x56a8f3['length'];){const _0x53aedf=_0x56a8f3[_0x311015]['getDifference'](_0x4baf8f);_0x56a8f3['splice'](_0x311015,0x1,..._0x53aedf),_0x311015+=_0x53aedf['length'];}}return _0x56a8f3;}(_0x555d4d,_0xa4913f);_0x243355['length']&&this['_model']['change'](()=>{for(const _0x424272 of _0x243355){const _0x47e9b1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xa630b6,'accept');this['forceDefaultExecution'](()=>_0x47e9b1([_0x424272],_0x294e4b,_0x2371ac));}});for(const _0x380930 of _0x1d9567){let _0x404217=null,_0x28174c=_0x380930['start'],_0x5811e7=_0x380930['end'];for(const {suggestion:_0x19291d,meta:_0x276245}of this['_findSuggestions'](_0x380930,'formatInline')){if(!_0x276245['isOwn'])continue;if(_0x19291d['subType']!=_0xa630b6)continue;if(!pn(_0x19291d,_0x2371ac))continue;const _0x16bca9=_0x19291d['getFirstRange']();if(_0x16bca9['containsRange'](_0x380930,!0x0))return null;_0x28174c=_0x28174c['isBefore'](_0x16bca9['start'])?_0x28174c:_0x16bca9['start'],_0x5811e7=_0x5811e7['isAfter'](_0x16bca9['end'])?_0x5811e7:_0x16bca9['end'],_0x404217?_0x16bca9['start']['isBefore'](_0x404217['getFirstRange']()['start'])?(_0x404217['removeMarkers'](),_0x404217=_0x19291d):_0x19291d['removeMarkers']():_0x404217=_0x19291d;}const _0x3e4e0d=this['_model']['createRange'](_0x28174c,_0x5811e7);if(_0x404217)this['_setSuggestionRange'](_0x404217,_0x3e4e0d);else{const _0x4694c1=_0x3a663f(),_0x3ae683=_0x31e944['id'];this['_setSuggestionData']({'id':_0x4694c1,'type':'formatInline:'+_0xa630b6,'data':_0x294e4b,'createdAt':new Date(),'authorId':_0x3ae683,'attributes':_0x2371ac}),this['_addSuggestionMarker']('formatInline:'+_0xa630b6,_0x4694c1,_0x3ae683,_0x3e4e0d);}}return null;}markBlockFormat(_0x556897,_0x117183,_0x47369b=[],_0x59131a=null,_0x4426f8={}){_0x117183['formatGroupId']||(_0x117183['formatGroupId']=_0x117183['commandName']),_0x117183['multipleBlocks']=_0x556897['is']('range'),_0x59131a=_0x59131a||dn(_0x117183);const _0x3c5ea1=_0x47369b['map'](_0x8b4045=>En(_0x8b4045,this['_model'])),_0x560d8f=_0x556897['is']('range')?_0x556897:En(_0x556897,this['_model']);if(this['_trackingSessionId']&&(_0x4426f8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xa248f4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x59131a,'accept');return this['forceDefaultExecution'](()=>_0xa248f4([_0x560d8f],_0x117183,_0x4426f8)),null;}_0x3c5ea1['push'](_0x560d8f);let _0x38de0d=!0x0;for(const _0x306e28 of _0x3c5ea1)if(!this['_rangeIsInLocalUserInsertion'](_0x306e28)){_0x38de0d=!0x1;break;}if(_0x38de0d&&'always'!==this['_trackFormatChanges']){const _0x47bdd2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x59131a,'accept');return this['forceDefaultExecution'](()=>_0x47bdd2([_0x560d8f],_0x117183,_0x4426f8)),null;}let _0x35ed60=null,_0x35762b=_0x560d8f['start'],_0x317098=_0x560d8f['end'];for(const {suggestion:_0x3ba2b3,meta:_0x1c832e}of this['_findSuggestions'](_0x560d8f,'formatBlock')){if(!_0x1c832e['isOwn'])continue;if(_0x1c832e['isNextTo']||_0x1c832e['containsRangeInObject']||_0x1c832e['isInsideObject'])continue;if(_0x3ba2b3['data']['formatGroupId']!=_0x117183['formatGroupId'])continue;if(!pn(_0x3ba2b3,_0x4426f8))continue;const _0xcc0ad1=_0x3ba2b3['getFirstRange']();if(_0x3ba2b3['subType']==_0x59131a){if(_0xcc0ad1['containsRange'](_0x560d8f,!0x0))return null;_0x35762b=_0x35762b['isBefore'](_0xcc0ad1['start'])?_0x35762b:_0xcc0ad1['start'],_0x317098=_0x317098['isAfter'](_0xcc0ad1['end'])?_0x317098:_0xcc0ad1['end'],_0x35ed60?_0xcc0ad1['start']['isBefore'](_0x35ed60['getFirstRange']()['start'])?(_0x35ed60['removeMarkers'](),_0x35ed60=_0x3ba2b3):_0x3ba2b3['removeMarkers']():_0x35ed60=_0x3ba2b3;}else{const _0x3c3f91=_0x560d8f['getIntersection'](_0xcc0ad1);this['_cutOutSuggestionMarker'](_0x3ba2b3,_0x3c3f91);}}const _0x557772=this['editor']['plugins']['get']('Users')['me'],_0x53eacf=_0x3a663f(),_0xab5a9=_0x557772['id'];if(_0x35ed60)return this['_setSuggestionRange'](_0x35ed60,this['_model']['createRange'](_0x35762b,_0x317098)),_0x35ed60;{const _0x2d9bc0=this['_setSuggestionData']({'id':_0x53eacf,'type':'formatBlock:'+_0x59131a,'data':_0x117183,'createdAt':new Date(),'authorId':_0xab5a9,'attributes':_0x4426f8});return this['_addSuggestionMarker']('formatBlock:'+_0x59131a,_0x53eacf,_0xab5a9,this['_model']['createRange'](_0x35762b,_0x317098)),_0x2d9bc0;}}markMultiRangeBlockFormat(_0x343cc0,_0x390930,_0x2f9251=[],_0xcd787b=null,_0x4eb7e3={}){_0x390930['formatGroupId']||(_0x390930['formatGroupId']=_0x390930['commandName']);const _0x48969e=_0x343cc0[0x0];_0x390930['multipleBlocks']=_0x48969e['is']('range'),_0xcd787b=_0xcd787b||dn(_0x390930);const _0x4f83f1=_0x2f9251['map'](_0x510916=>En(_0x510916,this['_model'])),_0x61213d=_0x48969e['is']('range')?_0x343cc0:_0x343cc0['map'](_0x24159b=>En(_0x24159b,this['_model']));if(this['_trackingSessionId']&&(_0x4eb7e3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xdb6f79=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xcd787b,'accept');return this['forceDefaultExecution'](()=>_0xdb6f79(_0x61213d,_0x390930,_0x4eb7e3)),null;}_0x4f83f1['push'](..._0x61213d);let _0x201a73=!0x0;for(const _0x3124bb of _0x4f83f1)if(!this['_rangeIsInLocalUserInsertion'](_0x3124bb)){_0x201a73=!0x1;break;}if(_0x201a73&&'always'!==this['_trackFormatChanges']){const _0x2ee881=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xcd787b,'accept');return this['forceDefaultExecution'](()=>_0x2ee881(_0x61213d,_0x390930,_0x4eb7e3)),null;}const _0x2ee025=this['editor']['plugins']['get']('Users')['me'];for(const _0x396bb0 of this['getSuggestions']()){const _0x539f53=_0x396bb0['data'];if(_0x396bb0['author']['id']!=_0x2ee025['id'])continue;if('formatBlock'!=_0x396bb0['type']||_0x539f53['formatGroupId']!=_0x390930['formatGroupId'])continue;if(!pn(_0x396bb0,_0x4eb7e3))continue;const _0xf612f3=_0x396bb0['subType']==_0xcd787b;for(let _0x15f1ba=0x0;_0x15f1ba<_0x61213d['length'];_0x15f1ba++){const _0x144397=_0x61213d[_0x15f1ba];for(const _0x39626f of _0x396bb0['getMarkers']()){const _0xba9099=_0x39626f['getRange']();if(_0x144397['isEqual'](_0xba9099)){_0xf612f3?(_0x61213d['splice'](_0x15f1ba,0x1),_0x15f1ba--):_0x396bb0['removeMarker'](_0x39626f['name']);break;}}}}if(0x0==_0x61213d['length'])return null;const _0x17e65a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xcd787b,'join');for(const _0x25f144 of this['getSuggestions']()){const _0x593466=_0x25f144['data'];if(_0x25f144['author']['id']==_0x2ee025['id']&&('formatBlock'==_0x25f144['type']&&_0x593466['formatGroupId']==_0x390930['formatGroupId']&&_0x25f144['subType']==_0xcd787b&&pn(_0x25f144,_0x4eb7e3)&&(_0x17e65a(_0x25f144['getRanges'](),_0x61213d)||_0x17e65a(_0x61213d,_0x25f144['getRanges']())))){for(const _0x17e541 of _0x61213d)_0x25f144['addRange'](_0x17e541);return _0x25f144;}}const _0x34e76e=_0x3a663f(),_0x1a5418=_0x2ee025['id'],_0x2b6d9f='formatBlock:'+_0xcd787b,_0x1f851a=this['_setSuggestionData']({'id':_0x34e76e,'type':_0x2b6d9f,'data':_0x390930,'createdAt':new Date(),'authorId':_0x1a5418,'attributes':_0x4eb7e3});for(const _0xab3f6e of _0x61213d)this['_addSuggestionMarker'](_0x2b6d9f,_0x34e76e,_0x1a5418,_0xab3f6e,St['getMultiRangeId']());return _0x1f851a;}markDeletion(_0x539948,_0x3cc40a=null,_0x2e29d0={}){if(_0x539948['isCollapsed'])return null;const _0x2a86de=this['editor']['plugins']['get']('Users')['me'],_0x1936c7=new rt(_0x539948['start'],_0x539948['end']);this['_trackingSessionId']&&(_0x2e29d0['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x29a2f5,meta:_0x2f7239}of this['_findSuggestions'](_0x1936c7,'insertion'))if(_0x2f7239['isOwn']&&!_0x2f7239['isNextTo']){if(_0x29a2f5['isMultiRange']){const _0x4831a8=_0x29a2f5['getRanges']()['filter'](_0x404b8b=>'$graveyard'!=_0x404b8b['root']['rootName']);if(_0x4831a8['every'](_0xa400b1=>_0x1936c7['containsRange'](_0xa400b1,!0x0))&&_0x29a2f5['discard'](),_0x4831a8['some'](_0x444f47=>_0x444f47['containsRange'](_0x1936c7,!0x0))){const _0x18d0c7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3cc40a,'accept');return this['forceDefaultExecution'](()=>_0x18d0c7([_0x1936c7],null,_0x2e29d0)),null;}}else{const _0x550c21=_0x1936c7['getIntersection'](_0x29a2f5['getFirstRange']());null!==_0x550c21&&_0x29a2f5['_onDiscard']([_0x550c21],null,_0x2e29d0);}}if(_0x1936c7['detach'](),_0x1936c7['isCollapsed']||'$graveyard'==_0x1936c7['root']['rootName'])return null;let _0x51b300=null,_0x195182=_0x1936c7['start'],_0x41a9b4=_0x1936c7['end'];const _0x5cdd6e=this['_findSuggestions'](_0x1936c7,'deletion');for(const {suggestion:_0x53081a,meta:_0x3b0b0e}of _0x5cdd6e){const _0x1f7272=this['_model']['createRange'](_0x195182,_0x41a9b4);if(_0x3b0b0e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3b0b0e['containsRangeInObject']&&!_0x3b0b0e['isInsideObject'])){if(_0x53081a['isMultiRange']){if(!pn(_0x53081a,_0x2e29d0))continue;let _0xaab382=!0x0;for(const _0x3012d3 of _0x53081a['getRanges']()){if(_0x3012d3['containsRange'](_0x1f7272,!0x0))return _0x53081a;_0x1f7272['containsRange'](_0x3012d3)||(_0xaab382=!0x1);}_0xaab382&&_0x53081a['discard']();}else{const _0x35582b=_0x53081a['getFirstRange']();if(_0x35582b['containsRange'](_0x1f7272,!0x0))return _0x53081a;if(!pn(_0x53081a,_0x2e29d0)){_0x1f7272['containsRange'](_0x35582b)?_0x53081a['removeMarkers']():_0x35582b['containsPosition'](_0x195182)?_0x195182=_0x35582b['end']:_0x35582b['containsPosition'](_0x41a9b4)&&(_0x41a9b4=_0x35582b['start']);continue;}_0x195182=_0x195182['isBefore'](_0x35582b['start'])?_0x195182:_0x35582b['start'],_0x41a9b4=_0x41a9b4['isAfter'](_0x35582b['end'])?_0x41a9b4:_0x35582b['end'],_0x2e29d0=Object['assign']({},_0x53081a['attributes']),_0x51b300?_0x35582b['start']['isBefore'](_0x51b300['getFirstRange']()['start'])?(_0x51b300['removeMarkers'](),_0x51b300=_0x53081a):_0x53081a['removeMarkers']():_0x51b300=_0x53081a;}}}if(_0x51b300)return this['_setSuggestionRange'](_0x51b300,this['_model']['createRange'](_0x195182,_0x41a9b4)),_0x51b300;{const _0x3b16eb=_0x3a663f(),_0x1bd1b1=this['_model']['createRange'](_0x195182,_0x41a9b4),_0x577e4c=_0x2a86de['id'],_0x44d344=_0x3cc40a?'deletion:'+_0x3cc40a:'deletion',_0xcd1213=this['_setSuggestionData']({'id':_0x3b16eb,'type':_0x44d344,'createdAt':new Date(),'authorId':_0x577e4c,'attributes':_0x2e29d0});return this['_addSuggestionMarker'](_0x44d344,_0x3b16eb,_0x577e4c,_0x1bd1b1),_0xcd1213;}}markMultiRangeDeletion(_0x23fcea,_0x2c3ecd='multi',_0x573b0b={}){const _0x4c47d9=this['editor']['plugins']['get']('Users')['me'],_0x3d6767=_0x23fcea['map'](_0x55d96a=>new rt(_0x55d96a['start'],_0x55d96a['end'])),_0x3eff75=new Set();this['_trackingSessionId']&&(_0x573b0b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1a7d19,meta:_0x393012}of this['_findSuggestions'](_0x3d6767,'insertion'))_0x393012['isOwn']&&!_0x393012['isNextTo']&&_0x3eff75['add'](_0x1a7d19);for(const _0x59b9d9 of _0x3eff75)if(_0x59b9d9['isMultiRange']){const _0x5a1ebb=_0x59b9d9['getRanges']();if(_0x59b9d9['attributes']&&_0x59b9d9['attributes']['skipNestingCheck']||_0x5a1ebb['every'](_0x32ccc7=>_0x3d6767['some'](_0x139b15=>_0x139b15['containsRange'](_0x32ccc7,!0x0)))&&_0x59b9d9['discard'](),_0x3d6767['every'](_0x2c0ad5=>_0x5a1ebb['some'](_0x5ed578=>_0x5ed578['containsRange'](_0x2c0ad5,!0x0)))){const _0x5deeb9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c3ecd,'accept');return this['forceDefaultExecution'](()=>_0x5deeb9(_0x23fcea,null,_0x573b0b)),null;}}else{const _0x316273=_0x59b9d9['getFirstRange']();if(_0x3d6767['some'](_0x185eba=>_0x185eba['containsRange'](_0x316273,!0x0))&&_0x59b9d9['discard'](),_0x3d6767['every'](_0x28eebb=>_0x316273['containsRange'](_0x28eebb,!0x0))){const _0x51beaf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c3ecd,'accept');return this['forceDefaultExecution'](()=>_0x51beaf(_0x3d6767,null,_0x573b0b)),null;}}const _0x51fa4b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c3ecd,'join');let _0x92d093=null;for(const _0x476d7f of this['getSuggestions']())if(_0x476d7f['author']['id']==_0x4c47d9['id']&&_0x476d7f['isInContent']&&'deletion'==_0x476d7f['type']&&_0x476d7f['subType']==_0x2c3ecd&&pn(_0x476d7f,_0x573b0b)&&(_0x51fa4b(_0x476d7f['getRanges'](),_0x3d6767)||_0x51fa4b(_0x3d6767,_0x476d7f['getRanges']()))){if(_0x92d093){if(_0x476d7f['commentThread']&&_0x476d7f['commentThread']['length'])continue;for(const _0x336126 of _0x476d7f['getRanges']())_0x92d093['isIntersectingWithRange'](_0x336126)||_0x92d093['addRange'](_0x336126);_0x476d7f['removeMarkers']();}else{_0x92d093=_0x476d7f;for(const _0x4f861f of _0x3d6767)_0x476d7f['isIntersectingWithRange'](_0x4f861f)||_0x476d7f['addRange'](_0x4f861f);}}if(_0x92d093)return _0x92d093;_0x3eff75['clear']();for(const {suggestion:_0x21707d,meta:_0x285058}of this['_findSuggestions'](_0x3d6767,'deletion'))_0x285058['isOwn']&&(this['_mergeNestedSuggestions']||!_0x285058['containsRangeInObject']&&!_0x285058['isInsideObject'])&&pn(_0x21707d,_0x573b0b)&&_0x3eff75['add'](_0x21707d);for(const _0x2fb532 of _0x3eff75){const _0x31cb69=_0x2fb532['getRanges']();if((!_0x573b0b||!_0x573b0b['skipNestingCheck'])&&_0x3d6767['every'](_0x4b26f5=>_0x31cb69['some'](_0x428dc2=>_0x428dc2['containsRange'](_0x4b26f5,!0x0))))return _0x2fb532;_0x2fb532['attributes']&&_0x2fb532['attributes']['skipNestingCheck']||_0x31cb69['every'](_0x31ff43=>_0x3d6767['some'](_0x1b336f=>_0x1b336f['containsRange'](_0x31ff43,!0x0)))&&_0x2fb532['discard']();}const _0x30fbee=_0x3a663f(),_0x16e071=_0x4c47d9['id'],_0x18767d='deletion:'+_0x2c3ecd,_0x2ae51a=this['_setSuggestionData']({'id':_0x30fbee,'type':_0x18767d,'createdAt':new Date(),'authorId':_0x16e071,'attributes':_0x573b0b});for(const _0x58e397 of _0x3d6767)_0x58e397['detach'](),_0x58e397['isCollapsed']||'$graveyard'==_0x58e397['root']['rootName']||this['_addSuggestionMarker'](_0x18767d,_0x30fbee,_0x16e071,_0x58e397,St['getMultiRangeId']());return _0x2ae51a;}markAttributeChange(_0x258bf2,_0x400c27,_0x18cd6e,_0x3ebead,_0x2ae53e){if(_0x258bf2['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3d2f83=this['editor']['plugins']['get']('Users')['me']['id'],_0x460e09=Array['from'](this['_suggestions']['values']())['filter'](_0x38549e=>'attribute'==_0x38549e['type']&&_0x38549e['data']['key']==_0x400c27&&_0x38549e['isIntersectingWithRange'](_0x258bf2));if(this['_trackingSessionId']&&(_0x2ae53e['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1912e6=this['_findSuggestions'](_0x258bf2,'insertion')['filter'](({meta:_0x444920})=>_0x444920['isOwn']&&!_0x444920['isInsideObject']&&!_0x444920['isNextTo'])['map'](({suggestion:_0x4058cc})=>_0x4058cc);_0x460e09['unshift'](..._0x1912e6);}const _0xd6fe4c=new Map([[_0x258bf2,_0x18cd6e]]);for(const _0x4e4dea of _0x460e09){const _0x1ed7c8='attribute'==_0x4e4dea['type']?_0x4e4dea['data']['oldValue']:void 0x0,_0xe4986=_0x4e4dea['getFirstRange'](),_0xe2ec25=Array['from'](_0xd6fe4c['keys']())['find'](_0x39be6c=>_0x39be6c['isIntersecting'](_0xe4986));if(!_0xe2ec25)continue;const _0x5d7324=_0xe2ec25['getDifference'](_0xe4986);this['_suggestionsConversion']['isBlockAttribute'](_0x400c27)&&'insertion'==_0x4e4dea['type']&&0x0!=_0x5d7324['length']||(_0xd6fe4c['delete'](_0xe2ec25),_0x5d7324['forEach'](_0x454048=>{_0xd6fe4c['set'](_0x454048,_0x18cd6e);}),'insertion'!=_0x4e4dea['type']&&_0x1ed7c8!=_0x3ebead&&_0xd6fe4c['set'](_0xe2ec25['getIntersection'](_0xe4986),_0x1ed7c8));}const _0x5d5f8a=[];for(const [_0x4a8fbd,_0x5b7967]of _0xd6fe4c){const _0x52a393=_0x3a663f(),_0x286064={'key':_0x400c27,'oldValue':_0x5b7967,'newValue':_0x3ebead};_0x400c27['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':_0x400c27});const _0x5389bf=('attribute:'+_0x400c27+'|'+dn({'newValue':_0x3ebead}))['substring'](0x0,0x3c),_0x2087df=this['_setSuggestionData']({'id':_0x52a393,'type':_0x5389bf,'data':_0x286064,'createdAt':new Date(),'authorId':_0x3d2f83,'attributes':_0x2ae53e});_0x5d5f8a['push'](_0x2087df),this['_addSuggestionMarker'](_0x5389bf,_0x52a393,_0x3d2f83,_0x4a8fbd);}return _0x5d5f8a;}enableDefaultAttributesIntegration(_0x172388){this['enableCommand'](_0x172388,(_0x3ce815,..._0x4ee3d4)=>{this['recordAttributeChanges'](()=>{_0x3ce815(..._0x4ee3d4);});});}startTrackingSession(_0x395943){return this['_trackingSessionId']=void 0x0!==_0x395943?_0x395943:_0x3a663f(),this['_trackingSessionId'];}_getAttributeKey(_0x3a073f){return'attribute'==_0x3a073f['type']?In(_0x3a073f['subType']):null;}_applyOperationsAsSuggestions(_0x445567){if(0x0==_0x445567['length'])return;const _0x1e6e33=this['editor'],_0x16416f=[],_0x329159=_0xe83fc2=>{const _0x3bafc2=_0xe83fc2['_aiSource'];return _0x3bafc2?{'@ai':{'type':_0x3bafc2}}:{};},_0x32957f=(_0x2aa88e,_0x1cd2f9,_0x3637e2)=>{for(let _0x4add18=_0x1cd2f9;_0x4add18<_0x2aa88e['operations']['length'];_0x4add18++)_0x2aa88e['operations'][_0x4add18]['_aiSource']=_0x3637e2;};_0x1e6e33['model']['change'](_0x229be7=>{for(let _0x26040d=0x0;_0x26040d<_0x445567['length'];_0x26040d++){const _0x581278=_0x445567[_0x26040d],_0x1a4be3=_0x581278['_aiSource'],_0x39443d=_0x229be7['batch']['operations']['length'];if(_0x581278['baseVersion']=_0x1e6e33['model']['document']['version'],_0x581278['isDocumentOperation']=!0x0,!_0x272ba7(_0x581278)){if(rn(_0x581278)){const _0x176a99=_0x49ec1a(_0x581278['newRange'],_0x1e6e33['model']);_0x16416f['unshift']({'range':rt['fromRange'](_0x176a99),'opAttributes':_0x329159(_0x581278),'aiSource':_0x1a4be3});}else{switch(_0x581278['type']){case'rename':{const _0x10b9b4=_0x581278['oldName'],_0x451572=_0x581278['newName'];if(_0x10b9b4==_0x451572)break;_0x229be7['batch']['addOperation'](_0x581278),_0x1e6e33['model']['applyOperation'](_0x581278);const _0x4ab08a='$elementName',_0x1ec746=_0x581278['position'],_0x13348d=_0x1e6e33['model']['createRange'](_0x1ec746,_0x1e6e33['model']['createPositionAt'](_0x1ec746['nodeAfter'],'end'));this['markAttributeChange'](_0x13348d,_0x4ab08a,_0x10b9b4,_0x451572,{..._0x329159(_0x581278),'groupId':_0x3a663f()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x103aeb=_0x581278['oldValue'],_0x31b366=_0x581278['newValue'];if(_0x103aeb==_0x31b366)break;_0x229be7['batch']['addOperation'](_0x581278),_0x1e6e33['model']['applyOperation'](_0x581278);const _0x367480=_0x581278['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x367480))break;const _0x348183=_0x49ec1a(_0x581278['range'],_0x1e6e33['model']);this['markAttributeChange'](_0x348183,_0x367480,_0x103aeb,_0x31b366,{..._0x329159(_0x581278),'groupId':_0x3a663f()});break;}case'insert':{if(_0x229be7['batch']['addOperation'](_0x581278),_0x1e6e33['model']['applyOperation'](_0x581278),_0x445567[_0x26040d+0x1]&&'move'==_0x445567[_0x26040d+0x1]['type'])break;const _0x14e2c9=_0x581278['position'],_0x1aa031=_0x581278['howMany'],_0x4e258f=_0x49ec1a(_0x1e6e33['model']['createRange'](_0x14e2c9,_0x14e2c9['getShiftedBy'](_0x1aa031)),_0x1e6e33['model']);this['markInsertion'](_0x4e258f,null,{..._0x329159(_0x581278)});break;}case'split':{_0x229be7['batch']['addOperation'](_0x581278),_0x1e6e33['model']['applyOperation'](_0x581278);const _0x37e2d8=_0x581278['splitPosition'],_0x5cf119=_0x581278['moveTargetPosition'],_0x50ceea=_0x1e6e33['model']['createRange'](_0x37e2d8,_0x5cf119);this['markInsertion'](_0x50ceea,null,{..._0x329159(_0x581278)});break;}case'move':case'remove':_0x229be7['batch']['addOperation'](_0x581278),_0x1e6e33['model']['applyOperation'](_0x581278);}_0x1a4be3&&_0x32957f(_0x229be7['batch'],_0x39443d,_0x1a4be3);}}}for(const {range:_0x3ce7b7,opAttributes:_0x536a65,aiSource:_0x52446e}of _0x16416f){const _0x139e32=_0x229be7['batch']['operations']['length'];_0x3ce7b7['detach'](),this['markDeletion'](_0x3ce7b7,null,{..._0x536a65}),_0x52446e&&_0x32957f(_0x229be7['batch'],_0x139e32,_0x52446e);}});}_setSuggestionRange(_0x167eb1,_0x11c6fb){const _0x45511b=_0x167eb1['getFirstMarker']();this['_model']['change'](_0x11f2db=>{_0x11f2db['updateMarker'](_0x45511b,{'range':_0x11c6fb});});}_addThreadToSuggestion(_0x353581){const _0x35b7aa=_0x353581['id'],_0x54b3c6=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x35b7aa)||this['_commentsRepository']['addCommentThread']({'channelId':_0x54b3c6,'threadId':_0x35b7aa,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x831a0a=this['_commentsRepository']['getCommentThread'](_0x35b7aa);_0x831a0a['unbind']('isRemovable'),_0x831a0a['isRemovable']=!0x1,_0x353581['commentThread']=_0x831a0a;}_checkSuggestionCorrectness(_0x20eb7d,_0x51216b,_0x5d352e,_0x40b8d5){if(_0x20eb7d['type']!=_0x51216b||_0x20eb7d['subType']!=_0x5d352e||_0x20eb7d['creator']['id']!=_0x40b8d5)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x18ab5c('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x1005ab,_0x3c373e){const _0xc41e18=_0x1005ab['getFirstRange']();if(_0x3c373e['isEqual'](_0xc41e18))_0x1005ab['removeMarkers']();else{if(_0xc41e18['containsRange'](_0x3c373e)){const _0x165cb0=this['_model']['createPositionAt'](_0x3c373e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1005ab,this['_model']['createRange'](_0xc41e18['start'],_0x165cb0));const _0x276270=_0x3a663f(),_0x5dfbfb=_0x1005ab['creator']['id'],_0x42f93a=_0x1005ab['type']+':'+_0x1005ab['subType'];this['_setSuggestionData']({'id':_0x276270,'type':_0x42f93a,'createdAt':new Date(),'authorId':_0x5dfbfb,'data':_0x1005ab['data'],'attributes':_0x1005ab['attributes']});const _0x189ee2=this['_model']['createPositionAt'](_0x3c373e['end']['parent'],'after'),_0x9967cd=this['_model']['createRange'](_0x189ee2,_0xc41e18['end']);this['_addSuggestionMarker'](_0x42f93a,_0x276270,_0x5dfbfb,_0x9967cd);}else{if(_0xc41e18['containsPosition'](_0x3c373e['start'])){const _0x58f8f3=this['_model']['createPositionAt'](_0x3c373e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1005ab,this['_model']['createRange'](_0xc41e18['start'],_0x58f8f3));}else{const _0x3e1357=this['_model']['createPositionAt'](_0x3c373e['end']['parent'],'after');this['_setSuggestionRange'](_0x1005ab,this['_model']['createRange'](_0x3e1357,_0xc41e18['end']));}}}}_rangeIsInLocalUserInsertion(_0x144423){for(const {suggestion:_0x586736,meta:_0x55a7b7}of this['_findSuggestions'](_0x144423,'insertion')){if(!_0x55a7b7['isOwn'])continue;const _0x2bedd0=_0x586736['getRanges']();for(const _0x133d1c of _0x2bedd0)if(!_0x144423['getDifference'](_0x133d1c)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x540fab){return this['editor']['plugins']['get']('Users')['getUser'](_0x540fab);}_getExternalAuthor(_0x1c9ac6){const _0x2fcbba=this['editor']['plugins']['get']('Users'),_0x38ede7=_0x1eefb7('external:'+_0x1c9ac6),_0x2aba66=_0x2fcbba['getUser'](_0x38ede7);return _0x2aba66||_0x2fcbba['addUser']({'id':_0x38ede7,'name':_0x1c9ac6});}_createSuggestion(_0x5403b2,_0x2799d1,_0x412923,_0x4c7ce3,_0x244dc8,_0x2b2653){const _0x20203d=this['_getAuthorFromId'](_0x4c7ce3);if(!_0x20203d)throw new _0x18ab5c('track-changes-user-not-found',this,{'authorId':_0x4c7ce3,'suggestionId':_0x412923});const _0x70c43c=this['_suggestionFactory']['buildSuggestion'](_0x5403b2,_0x2799d1,_0x412923,_0x20203d,_0x244dc8,_0x1b9b19=>{this['_updateSuggestionData'](_0x412923,{'attributes':_0x1b9b19});const _0x388939=this['getSuggestion'](_0x412923);this['_joinWithAdjacentSuggestions'](new Set([_0x388939])),this['_refreshSuggestionsChain'](new Set([_0x388939]));},_0x2b2653);return this['listenTo'](_0x70c43c,'accept',()=>{this['_updateSuggestionData'](_0x412923,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x70c43c,'discard',()=>{this['_updateSuggestionData'](_0x412923,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x412923,_0x70c43c),this['_suggestionState']['set'](_0x70c43c,'notReady'),_0x70c43c;}_breakSuggestionMarker(_0x446c76,_0x15356e,_0x53b87b){const _0x914113=_0x446c76['getFirstRange'](),_0x24f4f2=_0x914113['start'],_0x2b92e0=_0x914113['end'];this['_setSuggestionRange'](_0x446c76,this['_model']['createRange'](_0x24f4f2,_0x15356e));const _0x28b84e=_0x3a663f(),_0x453441=_0x446c76['creator']['id'],_0x740686=_0x446c76['type']+(_0x446c76['subType']?':'+_0x446c76['subType']:'');this['_setSuggestionData']({'id':_0x28b84e,'type':_0x740686,'createdAt':new Date(),'authorId':_0x453441,'originalSuggestionId':_0x446c76['_originalSuggestionId']||_0x446c76['id'],'attributes':_0x446c76['attributes'],'data':_0x446c76['data']});const _0x206245=this['_getAttributeKey'](_0x446c76);('formatBlock'==_0x446c76['type']||_0x206245&&this['_suggestionsConversion']['isBlockAttribute'](_0x206245))&&(_0x53b87b=this['_model']['createPositionBefore'](_0x53b87b['parent'])),this['_addSuggestionMarker'](_0x740686,_0x28b84e,_0x453441,this['_model']['createRange'](_0x53b87b,_0x2b92e0));}_findSuggestions(_0x289d77,_0x2edea=null){const _0x52aace=[],_0x5d0676=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x289d77)||(_0x289d77=[_0x289d77]);for(const _0x34619f of this['getSuggestions']()){if(!_0x34619f['isInContent'])continue;if(_0x2edea&&_0x34619f['type']!=_0x2edea)continue;let _0x5a1a14=!0x1;for(const _0x539ee5 of _0x34619f['getRanges']()){for(const _0x2d6ad0 of _0x289d77){const _0x3dd3f0=_0x2d6ad0['start']['isEqual'](_0x539ee5['end'])||_0x2d6ad0['end']['isEqual'](_0x539ee5['start']);if(_0x3dd3f0||_0x2d6ad0['getIntersection'](_0x539ee5)){const _0x26951c=_0x2d6ad0['containsRange'](_0x539ee5)&&cn(this['_model']['schema'],_0x539ee5['start'],_0x2d6ad0),_0x330a5c=_0x539ee5['containsRange'](_0x2d6ad0)&&cn(this['_model']['schema'],_0x2d6ad0['start'],_0x539ee5);_0x52aace['push']({'suggestion':_0x34619f,'meta':{'isOwn':_0x5d0676==_0x34619f['author'],'isNextTo':_0x3dd3f0,'isInsideObject':_0x26951c,'containsRangeInObject':_0x330a5c}}),_0x5a1a14=!0x0;break;}}if(_0x5a1a14)break;}}return _0x52aace;}_addSuggestionMarker(_0x50d134,_0x11b7b6,_0x496222,_0xd438ef,_0x5426b5){this['_model']['change'](_0xd919e6=>{let _0x572a95='suggestion:'+_0x50d134+':'+_0x11b7b6+':'+_0x496222;_0x5426b5&&(_0x572a95=_0x572a95+':'+_0x5426b5),_0xd919e6['addMarker'](_0x572a95,{'range':_0xd438ef,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x28d278){const _0x57d17c=_0x28d278['previous'],_0x3338e7=_0x28d278['next'];_0x28d278['previous']=null,_0x28d278['next']=null,null!=_0x57d17c&&_0x57d17c['next']==_0x28d278&&(_0x57d17c['next']=_0x3338e7),null!=_0x3338e7&&_0x3338e7['previous']==_0x28d278&&(_0x3338e7['previous']=_0x57d17c),'ready'==this['_suggestionState']['get'](_0x28d278)&&(this['_suggestionState']['set'](_0x28d278,'removed'),this['fire']('suggestionUnloaded',_0x28d278,_0x57d17c,_0x3338e7));}_setSuggestionData(_0x239113){const _0xe9d497=_0x239113['id'],_0x2fa704=this['addSuggestionData'](_0x239113);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1aebdc=this['editor']['plugins']['get']('PendingActions'),_0x87c2f0=_0x2fa704['hasComments'],_0x1e8cc6=_0x2fa704['subType']?_0x2fa704['type']+':'+_0x2fa704['subType']:_0x2fa704['type'],_0x3916f9=this['editor']['locale'],_0x1c9c84=_0x1aebdc['add'](Mt(_0x3916f9,'PENDING_ACTION_SUGGESTION')),_0x3c962e={'id':_0xe9d497,'type':_0x1e8cc6,'hasComments':_0x87c2f0,'data':_0x239113['data']||null,'originalSuggestionId':_0x239113['originalSuggestionId']||null,'attributes':_0x2fa704['attributes']};this['_adapter']['addSuggestion'](_0x3c962e)['then'](_0xfda961=>{_0x2fa704['_saved']=!0x0,_0x1aebdc['remove'](_0x1c9c84),_0xfda961&&_0xfda961['createdAt']&&(this['_suggestions']['get'](_0xe9d497)['createdAt']=_0xfda961['createdAt']);})['catch'](_0x327d61=>{throw _0x12c767('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2fa704['discard']();}),_0x2fa704['stopListening'](),this['_suggestions']['delete'](_0x2fa704['id']),this['_suggestionState']['delete'](_0x2fa704),_0x327d61;});}return _0x2fa704;}_updateSuggestionData(_0x49be50,_0x5b4186){const _0x194529=this['editor']['plugins']['get']('PendingActions'),_0x340eb3=this['getSuggestion'](_0x49be50);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x340eb3['_saved']){const _0x317992=_0x194529['add'](Mt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x49be50,_0x5b4186)['then'](()=>{_0x194529['remove'](_0x317992);});}else _0x340eb3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x49be50,_0x5b4186);});}}_getSuggestionData(_0x2dcac9){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x18ab5c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2dcac9);}_handleNewSuggestionMarker(_0x46c91c){const {id:_0xc9f104,type:_0x2262c4,subType:_0x1c32a3,authorId:_0x25b80b}=tt(_0x46c91c),_0x42d12f=this['_suggestions']['get'](_0xc9f104)||this['_createSuggestion'](_0x2262c4,_0x1c32a3,_0xc9f104,_0x25b80b,{});switch(this['_checkSuggestionCorrectness'](_0x42d12f,_0x2262c4,_0x1c32a3,_0x25b80b),this['_suggestionState']['get'](_0x42d12f)){case'notReady':this['_getSuggestionData'](_0xc9f104)['then'](_0x19cfa4=>{let _0x14d705=Promise['resolve']();_0x19cfa4['hasComments']&&(_0x14d705=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xc9f104})),_0x14d705['then'](()=>{this['addSuggestionData'](_0x19cfa4)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x42d12f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xc9f104,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x42d12f,'ready'),this['fire']('suggestionLoaded',_0x42d12f);break;case'ready':this['fire']('suggestionChanged',_0x42d12f);}return _0x42d12f['addMarkerName'](_0x46c91c),_0x42d12f;}_refreshSuggestionsChain(_0x28babb){const _0xbe1c=Array['from'](_0x28babb),_0x3196c9=_0xbe1c['filter'](_0x2f37ad=>'attribute'==_0x2f37ad['type']);this['_refreshAttributeSuggestionsChain'](_0x3196c9);const _0x2312b6=_0xbe1c['filter'](_0x41941f=>!_0x41941f['isMultiRange']&&'attribute'!=_0x41941f['type']),_0x1833c9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40acbf=>!_0x40acbf['isMultiRange']&&'attribute'!=_0x40acbf['type']),_0x1f8df0=_0x1833c9['filter'](_0x30bd22=>!_0x28babb['has'](_0x30bd22)),_0x4ba2c9=new Map(_0x1833c9['map'](_0x455236=>[_0x455236,this['_suggestionFactory']['getSuggestionCallback'](_0x455236['type'],_0x455236['subType'],'chain')])),_0x1c2c87=new Map(_0x1833c9['map'](_0x5682c9=>[_0x5682c9,_0x5682c9['getFirstRange']()])),_0x4cf3a0=new Set(),_0x3a7dda=new Set();for(let _0x136731=0x0;_0x136731<_0x2312b6['length'];_0x136731++)_0x135ac2(_0x2312b6[_0x136731],_0x2312b6,_0x136731+0x1);for(let _0x1507ad=0x0;_0x1507ad<_0x2312b6['length'];_0x1507ad++)_0x135ac2(_0x2312b6[_0x1507ad],_0x1f8df0,0x0);const _0x20cc44=new Set();for(let _0x1a9067=0x0;_0x1a9067<_0x2312b6['length'];_0x1a9067++){const _0x335c04=_0x2312b6[_0x1a9067];!_0x3a7dda['has'](_0x335c04)&&_0x335c04['previous']&&(_0x20cc44['add'](_0x335c04['previous']),_0x335c04['previous']['next']===_0x335c04&&(_0x335c04['previous']['next']=null),_0x335c04['previous']=null),!_0x4cf3a0['has'](_0x335c04)&&_0x335c04['next']&&(_0x20cc44['add'](_0x335c04['next']),_0x335c04['next']['previous']===_0x335c04&&(_0x335c04['next']['previous']=null),_0x335c04['next']=null);}function _0x135ac2(_0x60ff22,_0xfa78e1,_0x24abe5){for(let _0x1e82b9=_0x24abe5;_0x1e82b9<_0xfa78e1['length'];_0x1e82b9++){const _0x7877c1=_0xae71b6(_0x60ff22,_0xfa78e1[_0x1e82b9]);_0x7877c1&&(_0x7877c1[0x0]['next']=_0x7877c1[0x1],_0x7877c1[0x1]['previous']=_0x7877c1[0x0],_0x4cf3a0['add'](_0x7877c1[0x0]),_0x3a7dda['add'](_0x7877c1[0x1]));}}function _0xae71b6(_0x4f57c9,_0x51af4f){if(_0x4f57c9['author']['id']!==_0x51af4f['author']['id'])return null;const _0xeb1775=_0x4ba2c9['get'](_0x4f57c9)(_0x4f57c9,_0x51af4f,_0x1c2c87['get'](_0x4f57c9),_0x1c2c87['get'](_0x51af4f));return _0xeb1775&&_0x4ba2c9['get'](_0x51af4f)(_0x4f57c9,_0x51af4f,_0x1c2c87['get'](_0x4f57c9),_0x1c2c87['get'](_0x51af4f))?_0xeb1775[0x1]['commentThread']&&_0xeb1775[0x1]['commentThread']['length']?null:_0xeb1775:null;}_0x20cc44['size']&&this['_refreshSuggestionsChain'](_0x20cc44);}_refreshAttributeSuggestionsChain(_0x437d85){if(0x0==_0x437d85['length'])return;const _0x505955=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x845196=>'attribute'==_0x845196['type']&&_0x845196['_isDataLoaded']),_0x159cf3=[],_0x1ed3a8=new Map();for(const _0x18f8a6 of _0x505955){const _0x52bc44=_0x1eefb7(_0x18f8a6['attributes']);_0x1ed3a8['has'](_0x52bc44)||(_0x1ed3a8['set'](_0x52bc44,_0x159cf3['length']),_0x159cf3['push']([])),_0x159cf3[_0x1ed3a8['get'](_0x52bc44)]['push'](_0x18f8a6);}!(function(){_0x159cf3['sort']((_0x4ce831,_0x58367f)=>{const _0x58b0d6=_0x4ce831[0x0]['createdAt'],_0x55ff09=_0x58367f[0x0]['createdAt'];return _0x58b0d6==_0x55ff09?_0x4ce831[0x0]['attributes']['groupId']<_0x58367f[0x0]['attributes']['groupId']?-0x1:0x1:_0x58b0d6<_0x55ff09?-0x1:0x1;});for(const _0x2828a2 of _0x159cf3)_0x2828a2['sort']((_0xdefcdb,_0x3e5bbb)=>_0xdefcdb['id']<_0x3e5bbb['id']?-0x1:0x1);}());for(let _0x466e5f=0x0;_0x466e5f<_0x159cf3['length'];_0x466e5f++){if(0x0==_0x159cf3[_0x466e5f]['length'])continue;const _0x497af3=[];for(let _0x16c400=_0x466e5f+0x1;_0x16c400<_0x159cf3['length'];_0x16c400++)0x0!=_0x159cf3[_0x16c400]['length']&&_0x1f340f(_0x159cf3[_0x466e5f],_0x159cf3[_0x16c400])&&_0x497af3['push'](_0x16c400);for(const _0x366434 of _0x497af3)_0x159cf3[_0x466e5f]=_0x159cf3[_0x466e5f]['concat'](_0x159cf3[_0x366434]),_0x159cf3[_0x366434]=[];}for(const _0x1804d4 of _0x159cf3)for(let _0x384554=0x0;_0x384554<_0x1804d4['length'];_0x384554++){const _0x13d652=_0x1804d4[_0x384554+0x1]||null;_0x1804d4[_0x384554]['next']!==_0x13d652&&(_0x1804d4[_0x384554]['next']=_0x13d652);}for(const _0x1d62b2 of _0x159cf3)for(let _0x3af3aa=0x0;_0x3af3aa<_0x1d62b2['length'];_0x3af3aa++){const _0x429c28=_0x1d62b2[_0x3af3aa-0x1]||null;_0x1d62b2[_0x3af3aa]['previous']!==_0x429c28&&(_0x1d62b2[_0x3af3aa]['previous']=_0x429c28);}function _0x1f340f(_0x5cc24c,_0x2165cd){if(_0x5cc24c[0x0]['attributes']['groupId']!==_0x2165cd[0x0]['attributes']['groupId']&&_0x5cc24c[0x0]['author']!==_0x2165cd[0x0]['author'])return!0x1;if(!function(_0x5f3f42,_0x2fee7a){return!_0x5f3f42['hasComments']&&!_0x2fee7a['hasComments']||(!_0x5f3f42['hasComments']||!_0x2fee7a['hasComments'])&&(!!(_0x5f3f42['hasComments']&&_0x2fee7a['createdAt']<_0x5f3f42['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x2fee7a['hasComments']&&_0x5f3f42['createdAt']<_0x2fee7a['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x5cc24c[0x0],_0x2165cd[0x0]))return!0x1;const _0x49ab4a=lt(_0x5cc24c[0x0]['attributes'],['groupId','trackingSessionId']),_0x29805f=lt(_0x2165cd[0x0]['attributes'],['groupId','trackingSessionId']);return!!ct(_0x49ab4a,_0x29805f)&&(_0x5cc24c[0x0]['attributes']['groupId']==_0x2165cd[0x0]['attributes']['groupId']||_0x5cc24c[0x0]['attributes']['trackingSessionId']===_0x2165cd[0x0]['attributes']['trackingSessionId']&&(!!_0x5cc24c['every'](_0x9fc2f=>_0x2165cd['some'](_0x5574c1=>_0x9fc2f['getFirstRange']()['isEqual'](_0x5574c1['getFirstRange']())))&&_0x2165cd['every'](_0x2f66bc=>_0x5cc24c['some'](_0x3ba657=>_0x2f66bc['getFirstRange']()['isEqual'](_0x3ba657['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0xd640e7){const _0xa647a6=Array['from'](_0xd640e7),_0xab5240=this['getSuggestions']({'skipNotAttached':!0x0}),_0x307225=_0xab5240['filter'](_0x489fc7=>!_0xd640e7['has'](_0x489fc7)),_0x571c8a=new Map(_0xa647a6['map'](_0x5896db=>[_0x5896db,this['_suggestionFactory']['getSuggestionCallback'](_0x5896db['type'],_0x5896db['subType'],'join')])),_0x113c58=new Map(_0xab5240['map'](_0x2c1032=>[_0x2c1032,_0x2c1032['getRanges']()]));for(let _0x5a7ea6=0x0;_0x5a7ea6<_0xa647a6['length'];_0x5a7ea6++)if(_0x595862(this,_0xa647a6[_0x5a7ea6],_0xa647a6,_0x5a7ea6+0x1))return!0x0;for(let _0x4dc7f3=0x0;_0x4dc7f3<_0xa647a6['length'];_0x4dc7f3++)if(_0x595862(this,_0xa647a6[_0x4dc7f3],_0x307225,0x0))return!0x0;return!0x1;function _0x595862(_0x390adb,_0x59d507,_0x5bad9a,_0x4b7859){for(let _0xe3d5e4=_0x4b7859;_0xe3d5e4<_0x5bad9a['length'];_0xe3d5e4++){const _0xa3ffb2=_0x5bad9a[_0xe3d5e4];if(_0xa3ffb2['type']!==_0x59d507['type']||_0xa3ffb2['author']['id']!==_0x59d507['author']['id']||_0xa3ffb2['subType']!==_0x59d507['subType'])continue;if(!_n(_0x59d507,_0xa3ffb2))continue;if('attribute'==_0x59d507['type']&&_0x59d507['data']['oldValue']!=_0xa3ffb2['data']['oldValue'])continue;if('attribute'==_0x59d507['type']&&_0x390adb['_suggestionsConversion']['isBlockAttribute'](_0x59d507['data']['key']))continue;if('formatBlock'==_0x59d507['type']){const _0x491bca=_0x390adb['editor']['model'],_0x2ade4b=_0x59d507['getContainedElement']();if(_0x2ade4b&&(_0x491bca['schema']['isObject'](_0x2ade4b)||_0x491bca['schema']['isLimit'](_0x2ade4b)))continue;}const _0x25be1c=_0x571c8a['get'](_0x59d507),_0x30e972=_0x113c58['get'](_0x59d507),_0x44a250=_0x113c58['get'](_0xa3ffb2),_0x157913=_0x59d507['commentThread']&&_0x59d507['commentThread']['length'],_0x201b02=_0xa3ffb2['commentThread']&&_0xa3ffb2['commentThread']['length'];if(!_0x157913&&_0x25be1c(_0x44a250,_0x30e972))return _0x390adb['_joinSuggestions'](_0xa3ffb2,_0x59d507),_0x113c58['delete'](_0x59d507),!0x0;if(!_0x201b02&&_0x25be1c(_0x30e972,_0x44a250))return _0x390adb['_joinSuggestions'](_0x59d507,_0xa3ffb2),_0x113c58['delete'](_0xa3ffb2),!0x0;}return!0x1;}}_joinSuggestions(_0x534431,_0x45a08d){if(_0x534431['isMultiRange']){for(const _0xbf5f88 of _0x45a08d['getRanges']())_0x534431['addRange'](_0xbf5f88);}else{const _0x1cccf7=_0x45a08d['getFirstRange']()['end'];this['_setSuggestionRange'](_0x534431,this['_model']['createRange'](_0x534431['getFirstRange']()['start'],_0x1cccf7));}_0x45a08d['removeMarkers']();}_getMarkerAnnouncementText(_0x1c1736,_0x39df6d,_0x2be80f){const _0x370319=_0x1c1736['startsWith']('format')||_0x1c1736['startsWith']('attribute')?'FORMATTING':_0x1c1736['toUpperCase']();return Mt(this['editor']['locale'],_0x39df6d+'_'+_0x370319+'_SUGGESTION_ANNOUNCEMENT',_0x2be80f);}_initAriaMarkerChangeAnnouncements(){const _0x445ed1=this['editor'];if(!_0x445ed1['ui'])return;const {ariaLiveAnnouncer:_0x4d3a69}=_0x445ed1['ui'];et(this['_model'],({left:_0x58f2e5,entered:_0x5d6196})=>{for(const _0x5bf735 of _0x58f2e5){const {group:_0x17e175,type:_0x286eb3}=tt(_0x5bf735['name']);if('suggestion'===_0x17e175){_0x4d3a69['announce'](this['_getMarkerAnnouncementText'](_0x286eb3,'LEAVE'));break;}}for(const _0x37d85b of _0x5d6196){const {group:_0x32b4ab,type:_0x3a6e14}=tt(_0x37d85b['name']);if('suggestion'===_0x32b4ab){_0x4d3a69['announce'](this['_getMarkerAnnouncementText'](_0x3a6e14,'ENTER',_0xff45bc(_0x3b00e4)));break;}}});}_processAttributeChanges(_0x172c01){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2244d6=this['editor'],_0x37cb17=_0x2244d6['model']['document']['differ']['getChanges']();if(0x0==_0x37cb17['length'])return!0x1;const _0x47ca10=[],_0x509305=_0x37cb17['filter'](_0x405a1f=>'attribute'==_0x405a1f['type']),_0xc9accd=_0x37cb17['filter'](_0x5e3f81=>'insert'==_0x5e3f81['type']&&'$text'!=_0x5e3f81['name']),_0x4087d9=_0x37cb17['filter'](_0x678000=>'remove'==_0x678000['type']&&'$text'!=_0x678000['name']);for(const _0x21768e of _0x509305)_0x47ca10['push']({'key':_0x21768e['attributeKey'],'newValue':_0x21768e['attributeNewValue'],'oldValue':_0x21768e['attributeOldValue'],'range':mn(_0x21768e['range'],_0x2244d6['model'])});for(const _0x1553af of _0xc9accd){const _0x32d121=_0x4087d9['find'](_0x58bcac=>_0x58bcac['position']['isEqual'](_0x1553af['position']));_0x32d121&&_0x47ca10['push']({'key':sn,'newValue':_0x1553af['name'],'oldValue':_0x32d121['name'],'range':_0x2244d6['model']['createRangeOn'](_0x1553af['position']['nodeAfter'])});}return 0x0!=_0x47ca10['length']&&this['_reduceExistingSuggestions'](_0x172c01,_0x47ca10);}_processAttributeSuggestions(_0x5b3b53){let _0x752d8c=!0x1;const _0x47da60=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x25cb72=>_0x25cb72['data']['newRange']&&_0x25cb72['name']['startsWith']('suggestion:attribute:'));for(const _0x50a8c1 of _0x47da60){const {subType:_0xe478f3,id:_0x2021bb}=tt(_0x50a8c1['name']),_0x504d65=_0xe478f3['split']('|')[0x0];for(const _0x166370 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x166370['id']!=_0x2021bb&&'attribute'==_0x166370['type']&&_0x166370['data']&&_0x166370['data']['key']==_0x504d65&&_0x166370['getFirstRange']()['isIntersecting'](_0x50a8c1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x166370,_0x50a8c1['data']['newRange'],_0x5b3b53),_0x752d8c=!0x0);}return _0x752d8c;}recordAttributeChanges(_0x3f1ad7){this['_recordAttributeSuggestions']=!0x0,_0x3f1ad7();}_reduceExistingSuggestions(_0x561443,_0x166ec6){if(0x0==_0x166ec6['length'])return!0x1;let _0x24325d=!0x1;for(const _0x58afc9 of _0x166ec6){const _0x1cbd0d=this['_findSuggestions'](_0x58afc9['range'],'attribute')['filter'](_0x1ad7ae=>!_0x1ad7ae['meta']['isNextTo'])['map'](_0x585b53=>_0x585b53['suggestion']),_0x4038fe=_0x1eefb7({'newValue':_0x58afc9['newValue']});_0x1cbd0d['filter'](_0x147571=>{const [_0x48ca70,_0x1fbe89]=_0x147571['subType']['split']('|');return _0x48ca70==_0x58afc9['key']&&_0x1fbe89!=_0x4038fe;})['forEach'](_0x5e9200=>{this['_reduceSuggestionAttributeRange'](_0x5e9200,_0x58afc9['range'],_0x561443),_0x24325d=!0x0;});}return _0x24325d;}_reduceSuggestionAttributeRange(_0x2c465b,_0x43c30c,_0x904748){const _0x56e339=_0x2c465b['getFirstRange']()['getDifference'](_0x43c30c);0x0!==_0x56e339['length']?0x1!==_0x56e339['length']?this['_breakSuggestionMarker'](_0x2c465b,_0x43c30c['start'],_0x43c30c['end']):this['_setSuggestionRange'](_0x2c465b,_0x56e339[0x0]):_0x904748['removeMarker'](_0x2c465b['getFirstMarker']());}},an=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x4e7517){this['_editor']=_0x4e7517,this['_model']=_0x4e7517['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x26b853,_0x220e1d,_0x32f348,_0x317ff3,_0x3b1458,_0x3096e9,_0x2b7ef2){return new St(this['_model'],{'type':_0x26b853,'subType':_0x220e1d,'id':_0x32f348,'originalSuggestionId':_0x2b7ef2,'author':_0x317ff3,'creator':_0x317ff3,'attributes':_0x3b1458,'onAttributesChange':_0x3096e9,'onAccept':(..._0x23562b)=>this['getSuggestionCallback'](_0x26b853,_0x220e1d,'accept')(..._0x23562b),'onDiscard':(..._0x4282f3)=>this['getSuggestionCallback'](_0x26b853,_0x220e1d,'discard')(..._0x4282f3)});}registerCustomCallback(_0x17d75b,_0x5e390a,_0x13d464,_0x4e4d14){const _0x5af018=_0x17d75b+':'+_0x5e390a+':'+_0x13d464;this['_customCallbacks']['set'](_0x5af018,_0x4e4d14);}getSuggestionCallback(_0x1619d5,_0x56ca7f,_0x77a7dc){const _0xbb7c5c=_0x1619d5+':'+_0x56ca7f+':'+_0x77a7dc;return this['_customCallbacks']['get'](_0xbb7c5c)||this['_defaultCallbacks']['get'](_0x1619d5+':'+_0x77a7dc);}_registerDefaultCallbacks(){const _0x216ec7=()=>!0x1,_0x2b8d68=_0x17b575=>{_0x17b575['sort']((_0x2b09df,_0x16af8d)=>_0x2b09df['start']['isBefore'](_0x16af8d['start'])?0x1:-0x1),this['_model']['change'](_0x531f3f=>{for(const _0x159e42 of _0x17b575){let _0x5c224c;_0x5c224c=_0x159e42['end']['isAtEnd']&&_0x159e42['end']['parent']==_0x159e42['start']['nodeAfter']?_0x531f3f['createSelection'](_0x159e42['start']['nodeAfter'],'on'):_0x531f3f['createSelection'](_0x159e42),this['_model']['deleteContent'](_0x5c224c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5957aa=(_0x5463f6,_0x467f69)=>{_0x467f69&&this['_model']['change'](_0x2773c9=>{const {commandName:_0x36532f,commandParams:_0x564ad5=[]}=_0x467f69,_0x5a3b0c=_0x5463f6['map'](_0x3209db=>(ln(_0x3209db)&&(_0x3209db=this['_model']['createRange'](_0x3209db['end'])),_0x3209db))['filter'](_0x591c03=>'$graveyard'!==_0x591c03['root']['rootName']);if(_0x5a3b0c['length']<0x1)return;const _0x886e93=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x584f13=>rt['fromRange'](_0x584f13));_0x2773c9['setSelection'](_0x5a3b0c);for(const _0x932007 of this['_editor']['commands']['commands']())_0x932007['refresh']();_0x564ad5['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x36532f,..._0x564ad5);const _0x1ea387=_0x886e93['filter'](_0x325f38=>'$graveyard'!=_0x325f38['root']['rootName']);_0x1ea387['length']>0x0&&_0x2773c9['setSelection'](_0x1ea387);for(const _0x5e0f70 of _0x886e93)_0x5e0f70['detach']();});},_0x28592a=(_0x40790e,_0x3c59df)=>0x1==_0x40790e['length']&&0x1==_0x3c59df['length']&&_0x40790e[0x0]['end']['isEqual'](_0x3c59df[0x0]['start']),_0xf8a06b=(_0x1d8e35,_0x17c9fd,_0x528116,_0x165bad)=>Tn(_0x1d8e35,_0x17c9fd,_0x528116,_0x165bad)?[_0x1d8e35,_0x17c9fd]:Tn(_0x17c9fd,_0x1d8e35,_0x165bad,_0x528116)?[_0x17c9fd,_0x1d8e35]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x216ec7),this['_defaultCallbacks']['set']('insertion:discard',_0x2b8d68),this['_defaultCallbacks']['set']('insertion:join',_0x28592a),this['_defaultCallbacks']['set']('insertion:chain',_0xf8a06b),this['_defaultCallbacks']['set']('deletion:accept',(_0x3472cd,_0x338168,_0x4ce5b9)=>{const _0x34a38b=(_0x4ce5b9?.['@ai'])?.['type'];_0x34a38b?this['_model']['change'](_0x45dafb=>{const _0x452338=_0x45dafb['batch']['operations']['length'];_0x2b8d68(_0x3472cd);for(let _0x1a50d7=_0x452338;_0x1a50d7<_0x45dafb['batch']['operations']['length'];_0x1a50d7++)_0x45dafb['batch']['operations'][_0x1a50d7]['_aiSource']=_0x34a38b;}):_0x2b8d68(_0x3472cd);}),this['_defaultCallbacks']['set']('deletion:discard',_0x216ec7),this['_defaultCallbacks']['set']('deletion:join',_0x28592a),this['_defaultCallbacks']['set']('deletion:chain',_0xf8a06b),this['_defaultCallbacks']['set']('formatInline:accept',_0x5957aa),this['_defaultCallbacks']['set']('formatInline:discard',_0x216ec7),this['_defaultCallbacks']['set']('formatInline:join',_0x28592a),this['_defaultCallbacks']['set']('formatInline:chain',_0x216ec7),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5957aa),this['_defaultCallbacks']['set']('formatBlock:discard',_0x216ec7),this['_defaultCallbacks']['set']('formatBlock:join',_0x28592a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x216ec7),this['_defaultCallbacks']['set']('attribute:accept',_0x216ec7),this['_defaultCallbacks']['set']('attribute:discard',(_0x1cbb37,_0xea31ba)=>{if(!_0xea31ba)return;const _0x2fba08=this['_editor']['plugins']['get'](_0x3338e0);this['_model']['change'](_0x84b04=>{if('$elementName'==_0xea31ba['key'])for(const _0x3fb0e4 of _0x1cbb37){const _0x58b2c9=_0x3fb0e4['start']['nodeAfter'],_0x4c9fbc=_0xea31ba['oldValue'];_0x84b04['rename'](_0x58b2c9,_0x4c9fbc);}else{if(_0x2fba08['isBlockAttribute'](_0xea31ba['key'])){for(const _0x11b7fe of _0x1cbb37)void 0x0!==_0xea31ba['oldValue']?_0x84b04['setAttribute'](_0xea31ba['key'],_0xea31ba['oldValue'],_0x11b7fe['start']['nodeAfter']):_0x84b04['removeAttribute'](_0xea31ba['key'],_0x11b7fe['start']['nodeAfter']);}else{for(const _0x3686de of _0x1cbb37)_0xea31ba['oldValue']?_0x84b04['setAttribute'](_0xea31ba['key'],_0xea31ba['oldValue'],_0x3686de):_0x84b04['removeAttribute'](_0xea31ba['key'],_0x3686de);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x28592a);}};function cn(_0x1302d2,_0x452664,_0x5307ff){for(const _0x278ec9 of _0x452664['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x278ec9['root']==_0x278ec9)return!0x1;if(!_0x5307ff['containsItem'](_0x278ec9))return!0x1;if(_0x1302d2['isObject'](_0x278ec9)||_0x1302d2['isLimit'](_0x278ec9))return!0x0;}return!0x1;}function ln(_0x8f3917){return _0x8f3917['end']['parent']==_0x8f3917['start']['nodeAfter']&&_0x8f3917['end']['isAtStart'];}function un(_0x18de04,_0x1e771e,_0x487d9c,_0x597687){const _0xa0e884=_0x3bff2a=>!_0x3bff2a['item']['is']('$textProxy')&&!_0x597687['isObject'](_0x3bff2a['item']),_0x143e30=_0x18de04['start']['getLastMatchingPosition'](_0xa0e884),_0x599968=_0x18de04['end']['getLastMatchingPosition'](_0xa0e884,{'direction':'backward'});return(!_0x18de04['start']['isEqual'](_0x143e30)||!_0x18de04['end']['isEqual'](_0x599968))&&(_0x143e30['isBefore'](_0x599968)?_0x487d9c['updateMarker'](_0x1e771e,{'range':_0x487d9c['createRange'](_0x143e30,_0x599968)}):_0x487d9c['removeMarker'](_0x1e771e),!0x0);}function dn(_0x4b532c){return _0x1eefb7(_0x4b532c);}function hn(_0xbb287e){const _0x2d6d5b=_0xbb287e['start']['nodeAfter'];return _0x2d6d5b&&_0x2d6d5b['is']('element');}function gn(_0x1917b9){return ln(_0x1917b9)||function(_0x15a5c0){return _0x15a5c0['start']['parent']==_0x15a5c0['end']['nodeBefore']&&_0x15a5c0['start']['isAtEnd'];}(_0x1917b9);}function fn(_0xbbb551,_0x5aaf74){try{const _0x345db5=_0xbbb551['getRange']();for(const _0x232656 of _0x5aaf74)if(_0xbbb551!==_0x232656&&_0x345db5&&_0x345db5['isIntersecting'](_0x232656['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function mn(_0xfa155c,_0x5098df){return null==_0xfa155c['end']['nodeBefore']&&_0xfa155c['end']['parent']==_0xfa155c['start']['nodeAfter']?En(_0xfa155c['start']['nodeAfter'],_0x5098df):_0xfa155c;}function En(_0x4130f4,_0x483c26){const _0x45cb0a=_0x483c26['schema']['isObject'](_0x4130f4)||_0x483c26['schema']['isSelectable'](_0x4130f4);return _0x483c26['createRange'](_0x483c26['createPositionAt'](_0x4130f4,'before'),_0x45cb0a?_0x483c26['createPositionAfter'](_0x4130f4):_0x483c26['createPositionAt'](_0x4130f4,'end'));}function Tn(_0x3bde62,_0x1fcb47,_0x53cd16,_0x28cdb3){return!!_n(_0x3bde62,_0x1fcb47)&&_0x53cd16['end']['isEqual'](_0x28cdb3['start']);}function _n(_0x7f18a8,_0x39747e){if(!_0x7f18a8['_isDataLoaded']||!_0x39747e['_isDataLoaded'])return!0x1;const _0x14fe73=new Set(Object['keys'](_0x7f18a8['attributes'])),_0x54e7bc=new Set(Object['keys'](_0x39747e['attributes']));if(_0x14fe73['delete']('groupId'),_0x54e7bc['delete']('groupId'),0x0==_0x14fe73['size']&&0x0==_0x54e7bc['size'])return!0x0;if(_0x14fe73['size']!=_0x54e7bc['size'])return!0x1;const _0x3ec18b={..._0x7f18a8['attributes']},_0x536469={..._0x39747e['attributes']};return delete _0x3ec18b['groupId'],delete _0x536469['groupId'],JSON['stringify'](_0x3ec18b)==JSON['stringify'](_0x536469);}function pn(_0x5df057,_0x2c7cce){const _0x389399=Ln(_0x5df057['attributes']),_0x2f3ab3=Ln(_0x2c7cce);if(!_0x5df057['_isDataLoaded'])return!0x1;if(!ct(_0x389399['@ai'],_0x2f3ab3['@ai']))return!0x1;for(const _0x287db3 of Object['keys'](_0x2f3ab3))if(!ct(_0x389399[_0x287db3],_0x2f3ab3[_0x287db3]))return!0x1;return!0x0;}function Ln(_0x11e8a4){const _0x387b1d=Object['assign']({},_0x11e8a4);return delete _0x387b1d['skipNestingCheck'],delete _0x387b1d['tablePasteChainId'],_0x387b1d;}function In(_0x58754d){return _0x58754d['split']('|')[0x0];}const An=/* #__PURE__ -- @preserve */
|
|
26
|
-
_0xe77ac2();var bn=class extends An{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x5a1a77,_0x2f9428,_0x5a6fd5,_0x117b45){super(),this['model']=_0x2f9428,this['view']=_0x5a6fd5,this['commentThreadController']=_0x117b45,this['_editor']=_0x5a1a77,this['_acceptCommand']=_0x5a1a77['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5a1a77['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x14a412,_0x55a3f2)=>_0x14a412||_0x55a3f2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x362c50=>_0x362c50&&this['_editor']['model']['canEditAt'](_0x2f9428['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x57e610=>_0x57e610&&this['_editor']['model']['canEditAt'](_0x2f9428['getRanges']())),this['_pendingAction']=null,_0x5a6fd5['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5a6fd5,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5a6fd5,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5a6fd5,'change:isDirty',()=>{_0x5a6fd5['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 _0x215936=Mt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x215936);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},kn=class extends _0x394804{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xb7d2ff,_0x40f559,_0x1d5780,_0x260ab2){super(_0xb7d2ff),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x56c57f(_0xb7d2ff,Mt(_0xb7d2ff,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x40f559['authoredAt']),this['bind']('authoredAt')['to'](_0x40f559),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',_0x40f559,'authoredAt',this,'descriptionParts',(_0x575b92,_0x31b8d0,_0x3bfccf)=>{const _0x2ef8fa=_0x3bfccf['map'](_0x2f3733=>Lt(_0x2f3733['content']))['join']('.\x20')+'.',_0x19cb4f=_0x40f559['aiSource']&&'author'===_0x260ab2['showAISource']?_0x260ab2['aiAuthor']['name']:_0x40f559['author']['name'],_0x22255c=Mt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x575b92-0x1,_0x19cb4f,_0x31b8d0?_0x260ab2['formatDateTime'](_0x31b8d0):'',new DOMParser()['parseFromString'](_0x2ef8fa,'text/html')['body']['textContent']]);return _0x40f559['aiSource']&&'pill'===_0x260ab2['showAISource']?_0x22255c+'\x20'+Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x22255c;}),this['focusables']=new _0x305bf1(),this['focusTracker']=new _0x3fe02d(),this['keystrokes']=new _0x564f03(),this['focusCycler']=new _0x26183e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x56094a=>_0x56094a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x40f559,this['_localUser']=_0x1d5780,this['_config']=_0x260ab2,_0x260ab2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x6a2c0e(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x241ed3}=this['_config'];this['commentsListView']=new _0x241ed3(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',_0x23ef65=>_0x23ef65+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x56fb14,_0x372afc)=>_0x56fb14||!!_0x372afc);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x31118b}=this['_config'],_0x5bedf4=new _0x31118b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xc540d8=_0x5bedf4['commentInputView'];return _0x5bedf4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xc540d8,'value',(_0xca58ba,_0x44c77e,_0x113814)=>!!_0x113814||_0xca58ba&&!_0x44c77e),_0xc540d8['on']('submit',(_0x23c27a,_0x51f584)=>{this['fire']('addComment',_0x51f584),_0xc540d8['editor']['setData']('');}),_0xc540d8['on']('cancel',()=>this['focus']()),_0xc540d8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5bedf4;}},Cn=class extends kn{suggestionView;_descriptionElement;constructor(_0x3a3bc2,_0x5aef87,_0x356cae,_0x36b679){super(_0x3a3bc2,_0x5aef87,_0x356cae,_0x36b679),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x14e8ab=>_0x14e8ab&&_0x14e8ab[0x0]?_0x14e8ab[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4f49c0,_0x54826b)=>{let _0x5372ea='';for(const _0x2116be of _0x4f49c0)_0x5372ea+='<p>'+Lt(_0x2116be['content'],_0x2116be['color'])+'</p>';return _0x54826b?_0x5372ea:nt(_0x5372ea,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x36b679['SuggestionView'](_0x3a3bc2,_0x5aef87,{'formatDateTime':_0x36b679['formatDateTime'],'showAISource':_0x36b679['showAISource'],'aiAuthor':_0x36b679['aiAuthor']}),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 _0x4bcd6c=this['bindTemplate'],_0x43e0ee=[this['suggestionView']];return this['commentsListView']&&_0x43e0ee['push'](this['commentsListView']),this['commentThreadInputView']&&_0x43e0ee['push'](this['commentThreadInputView']),_0x43e0ee['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4bcd6c['if']('isActive','ck-suggestion-wrapper--active'),_0x4bcd6c['to']('type',_0x514c60=>'ck-suggestion-'+_0x514c60),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':_0x4bcd6c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x43e0ee};}['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));}},Rn=class extends _0x394804{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x43aa0a,_0x4851d0,_0x4fcf55){super(_0x43aa0a),this['_model']=_0x4851d0,this['_config']=_0x4fcf55,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4851d0),this['acceptButton']=this['_createButton'](Mt(_0x43aa0a,'Accept\x20suggestion'),_0x288bec,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Mt(_0x43aa0a,'Discard\x20suggestion'),_0x2e7ed3,'ck-suggestion--discard','discardSuggestion','sw');const _0x255f2a=!!_0x4851d0['aiSource']&&'author'===_0x4fcf55['showAISource'],_0x2bc81a=_0x255f2a?this['_createAIUser'](_0x4fcf55['aiAuthor']):_0x4851d0['author'],_0x4a5568=_0x255f2a&&!_0x4fcf55['aiAuthor']['avatar']?_0x4161ec:void 0x0;this['userView']=new _0x3b76d0(_0x43aa0a,_0x2bc81a,this['getUserViewNotificationText'](),_0x4a5568),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x305bf1([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3fe02d(),this['keystrokes']=new _0x564f03(),this['focusCycler']=new _0x26183e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x76751b=>_0x76751b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x7e7303=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x7e7303['innerHTML']=this['description'],this['on']('change:description',(_0x3ac31e,_0x40f373,_0x3412da)=>{_0x7e7303['innerHTML']=_0x3412da;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x2e58f7=this['bindTemplate'],_0x5b8c6b=[{'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':_0x2e58f7['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2e58f7['to']('authoredAt',_0x52d410=>this['_config']['formatDateTime'](_0x52d410))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x5b8c6b['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x3b9db7=new _0x505b21(this['locale']);_0x3b9db7['set']({'icon':_0x319f9d,'label':Mt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x5b8c6b['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x3b9db7]});}return{'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':_0x5b8c6b}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Mt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Mt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x1d6275){return new _0x559f2b({'id':'ck-ai-author','name':_0x1d6275['name'],'avatar':_0x1d6275['avatar'],'color':new _0x35e7cc(0x0)});}_createButton(_0x49f515,_0x52b1dd,_0x138056,_0x493c19,_0x13513f){const _0x27fab6=new _0x2436d1(this['locale']);return _0x27fab6['set']({'label':_0x49f515,'icon':_0x52b1dd,'tooltip':!0x0,'tooltipPosition':_0x13513f}),_0x27fab6['extendTemplate']({'attributes':{'class':_0x138056}}),_0x27fab6['on']('execute',()=>{this['fire'](_0x493c19,this['_model']['id']);}),_0x27fab6;}_setupKeyboardNavigation(){const _0x178d9c=this['element'];this['keystrokes']['listenTo'](_0x178d9c);for(const _0x588a53 of this['focusables'])this['focusTracker']['add'](_0x588a53['element']),this['keystrokes']['listenTo'](_0x588a53['element']);this['keystrokes']['set']('enter',(_0x28cd2a,_0x270026)=>{_0x178d9c===_0x28cd2a['target']&&(this['focusCycler']['focusFirst'](),_0x270026());}),this['keystrokes']['set']('esc',(_0x310304,_0x2a1eb9)=>{_0x178d9c!==_0x310304['target']&&(this['focus'](),_0x2a1eb9());});}},yn=class extends _0x26ff96{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[on,_0x1d4274,_0x5b43d8,_0x2ff334,_0x55f346];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x64a37e){super(_0x64a37e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x181c64=this['editor']['config'];_0x181c64['define']('trackChanges.SuggestionThreadView',Cn),_0x181c64['define']('trackChanges.SuggestionView',Rn),_0x181c64['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x181c64['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x686618,_0x436f72){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3fa6c6,_0x1e646c]of this['_handleControllerBuffer']){const _0x4d6be3=this['_suggestionToController']['has'](_0x3fa6c6);_0x4d6be3||_0x1e646c?_0x4d6be3&&_0x1e646c&&this['_destroyController'](_0x3fa6c6):this['_initializeController'](_0x3fa6c6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x55f346)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x686618,_0x436f72);}init(){const _0x34a4e9=this['editor'],_0x319ce9=_0x34a4e9['plugins']['get'](on),_0xa7e06a=_0x34a4e9['plugins']['get'](_0x2ff334),_0x393d28=_0x34a4e9['plugins']['get'](_0x55f346),_0x594aba=_0x34a4e9['plugins']['get'](_0x5b43d8);this['_addUIComponentsToFactory'](),_0x393d28['addSourceCollector'](()=>{const _0x1d476f=[];for(const [_0x2fbcf0,_0x2c66b7]of Array['from'](this['_suggestionToController'])){const _0x316426=_0x2fbcf0['getAllAdjacentSuggestions'](),_0x493bab=[];for(const _0x519832 of _0x316426){if(!_0x519832['isInContent'])continue;if(_0x519832['isMultiRange']){_0x493bab['push'](..._0x519832['getRanges']());continue;}const _0x18bd14=_0x519832['getFirstRange']();if(_0x493bab['length']>0x0){const _0x319732=_0x493bab[0x0]['getJoined'](_0x18bd14);if(_0x319732){_0x493bab[0x0]=_0x319732;continue;}}_0x493bab['push'](_0x18bd14);}_0x1d476f['push']([_0x2c66b7['view'],_0x493bab]);}return _0x1d476f;}),this['listenTo'](_0x319ce9,'suggestionLoaded',(_0xb5efc4,_0x2cb9f3)=>{this['listenTo'](_0x2cb9f3,'change:previous',(_0x12dab6,_0x51ad7d,_0x2fa3d3,_0xdedfc5)=>{_0x2cb9f3['isInContent']&&(null==_0x2fa3d3?(this['_updateController'](_0xdedfc5['head']),this['_handleSuggestionControllerDelayed'](_0x2cb9f3,!0x1)):(this['_updateController'](_0x2fa3d3['head']),null==_0xdedfc5&&this['_handleSuggestionControllerDelayed'](_0x2cb9f3,!0x0)));}),null!==_0x2cb9f3['previous']?this['_updateController'](_0x2cb9f3['head']):this['_handleSuggestionControllerDelayed'](_0x2cb9f3,!0x1);}),this['listenTo'](_0x319ce9,'suggestionUnloaded',(_0x1032b9,_0x2182c1,_0x4dc0fa)=>{this['stopListening'](_0x2182c1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2182c1),this['_suggestionToController']['has'](_0x2182c1)&&this['_destroyController'](_0x2182c1),_0x4dc0fa&&this['_updateController'](_0x4dc0fa['head']);}),this['listenTo'](_0x319ce9,'suggestionChanged',(_0x19887d,_0x1a0fab)=>{this['_updateController'](_0x1a0fab);}),this['listenTo'](_0xa7e06a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x594aba,'addComment',(_0xf0ed75,{threadId:_0x2b9b35,isFromAdapter:_0x3b2757})=>{if(_0x3b2757||!_0x319ce9['hasSuggestion'](_0x2b9b35))return;const _0x1ed94f=_0x319ce9['getSuggestion'](_0x2b9b35);this['_suggestionToController']['get'](_0x1ed94f)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x465460=[this['editor']];for(const _0x5e17da of _0x465460){let _0x5dc1d7;for(const _0x4eb8b6 in _0x5e17da){const _0x2bea96=_0x4eb8b6,_0x3fd4d9=_0x5e17da[_0x2bea96];if('trackChangesLicenseKeyValid'==_0x3fd4d9||'trackChangesLicenseKeyInvalid'==_0x3fd4d9||'trackChangesLicenseKeyExpired'==_0x3fd4d9||'trackChangesLicenseKeyDomainLimit'==_0x3fd4d9||'trackChangesLicenseKeyNotAllowed'==_0x3fd4d9||'trackChangesLicenseKeyEvaluationLimit'==_0x3fd4d9||'trackChangesLicenseKeyUsageLimit'==_0x3fd4d9){delete _0x5e17da[_0x2bea96],_0x5dc1d7=_0x3fd4d9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5dc1d7&&_0x5e17da['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5dc1d7&&_0x5e17da['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5dc1d7&&_0x5e17da['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5dc1d7&&_0x5e17da['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5dc1d7&&_0x5e17da['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5dc1d7&&_0x5e17da['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0xa1b7a1){const _0x52bdf5=this['_suggestionToController']['get'](_0xa1b7a1);return _0x52bdf5&&this['editor']['plugins']['get'](_0x2ff334)['getByInnerView'](_0x52bdf5['view'])||null;}getSuggestionForAnnotation(_0x4a06e7){const _0x1c3271=this['_viewToController']['get'](_0x4a06e7['innerView']);return _0x1c3271?_0x1c3271['model']:null;}_refreshActiveMarkers(){const _0x3809ce=this['editor']['plugins']['get'](_0x2ff334),_0x30660d=this['editor']['plugins']['get'](on),_0x2f6102=Array['from'](_0x3809ce['activeAnnotations'],_0x5cde7b=>_0x5cde7b['innerView'])['filter'](_0x2981da=>this['_viewToController']['has'](_0x2981da)),_0x38a495=[];for(const _0x136a6c of _0x2f6102){const _0x2666df=this['_viewToController']['get'](_0x136a6c)['model']['getAllAdjacentSuggestions']();_0x38a495['push'](..._0x2666df['reduce']((_0x5f27ad,_0x85431b)=>[..._0x5f27ad,..._0x85431b['getMarkerNames']()],[]));}_0x30660d['activeMarkers']=_0x38a495;}_addUIComponentsToFactory(){const _0x1b08b2=this['editor'],_0x5acce0=_0x1b08b2['locale'],_0x23b9f9=Mt(_0x5acce0,'Track\x20changes'),_0x44817f=new _0x30ba87([{'type':'switchbutton','model':new _0x4fa1ce({'withText':!0x0,'isToggleable':!0x0,'label':_0x23b9f9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4fa1ce({'withText':!0x0,'label':Mt(_0x5acce0,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4fa1ce({'withText':!0x0,'label':Mt(_0x5acce0,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4fa1ce({'withText':!0x0,'label':Mt(_0x5acce0,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4fa1ce({'withText':!0x0,'label':Mt(_0x5acce0,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1b08b2['plugins']['has']('TrackChangesPreview')&&_0x44817f['addMany']([{'type':'separator'},{'type':'button','model':new _0x4fa1ce({'withText':!0x0,'label':Mt(_0x5acce0,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x55f3cf of _0x44817f)if(Nn(_0x55f3cf)){const _0xe8a180=_0x1b08b2['commands']['get'](_0x55f3cf['model']['commandName']);_0x55f3cf['model']['bind']('isOn','isEnabled')['to'](_0xe8a180,'value','isEnabled');}_0x1b08b2['ui']['componentFactory']['add']('trackChanges',_0x3c5d06=>this['_createToolbarButton'](_0x3c5d06,_0x44817f,_0x23b9f9)),_0x1b08b2['ui']['componentFactory']['add']('menuBar:trackChanges',_0x33528b=>this['_createMenuBarMenu'](_0x33528b,_0x44817f,_0x23b9f9));}_createToolbarButton(_0x240ce8,_0x108916,_0x5422fb){const _0x2e0d99=_0x151f69(_0x240ce8,_0x171d98),_0x220560=this['editor']['commands']['get']('trackChanges');_0x2e0d99['buttonView']['set']({'tooltip':_0x5422fb,'label':_0x5422fb,'icon':_0x1af545}),_0x2e0d99['buttonView']['bind']('isOn')['to'](_0x220560,'value'),_0x2e0d99['buttonView']['on']('execute',()=>{_0x220560['execute'](),this['editor']['editing']['view']['focus']();}),_0x2ccfbe(_0x2e0d99,_0x108916,{'role':'menu'});const _0x5817bb=[];for(const _0x55749d of _0x108916)Nn(_0x55749d)&&_0x5817bb['push'](this['editor']['commands']['get'](_0x55749d['model']['commandName']));const _0x4d4590=_0x2e0d99['buttonView'];return _0x4d4590['actionView']['unbind']('isEnabled'),_0x4d4590['arrowView']['unbind']('isEnabled'),_0x4d4590['actionView']['bind']('isEnabled')['to'](_0x220560,'isEnabled'),_0x4d4590['arrowView']['bind']('isEnabled')['toMany'](_0x5817bb,'isEnabled',(..._0x4e3c2c)=>_0x4e3c2c['some'](_0x327b21=>_0x327b21)),_0x2e0d99['on']('execute',_0x5d5b7b=>{this['editor']['execute'](_0x5d5b7b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2e0d99;}_createMenuBarMenu(_0x3d436d,_0x2d5547,_0x2e7c87){const _0xca31ff=new _0x3f7048(_0x3d436d),_0x15db74=this['editor']['commands']['get']('trackChanges');_0xca31ff['buttonView']['set']({'label':_0x2e7c87,'icon':_0x1af545});const _0x121be7=new _0x310144(_0x3d436d);for(const _0x13538d of _0x2d5547){if('separator'==_0x13538d['type']){_0x121be7['items']['add'](new _0x5e489e(_0x3d436d));continue;}const _0x40520f=new _0x2f78b5(_0x3d436d,_0xca31ff),_0x42848f=new _0x388c35(_0x3d436d),_0x11f0da=_0x13538d['model'];_0x42848f['bind'](...Object['keys'](_0x11f0da))['to'](_0x11f0da),_0x42848f['delegate']('execute')['to'](_0xca31ff),_0x42848f['on']('execute',()=>{this['editor']['execute'](_0x11f0da['commandName']),this['editor']['editing']['view']['focus']();}),_0x40520f['children']['add'](_0x42848f),_0x121be7['items']['add'](_0x40520f);}return _0xca31ff['bind']('isEnabled')['to'](_0x15db74,'isEnabled'),_0xca31ff['panelView']['children']['add'](_0x121be7),_0xca31ff;}_initializeController(_0x3bdf52){const _0x34d5c4=this['editor'],_0x12920=_0x34d5c4['config'],_0x4ae1f2=_0x34d5c4['plugins']['get'](_0x2ff334),_0x3c9b1c=_0x34d5c4['plugins']['get'](_0x5b43d8),_0x44f818=_0x34d5c4['plugins']['get'](_0x55f346),_0x4f0ba8=_0x34d5c4['plugins']['get'](_0x1d4274)['me'],_0x1a3c31=_0x12920['get']('trackChanges')['SuggestionThreadView'],_0x3e37c3=_0x12920['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x270fea,CommentThreadInputView:_0x4cc4ab}=_0x34d5c4['plugins']['get']('CommentsUI');let _0x8e5c2e,_0x1fffad,_0x5ebf4b;this['_annotationViews']['has'](_0x3bdf52['id'])?(_0x1fffad=this['_annotationViews']['get'](_0x3bdf52['id']),_0x8e5c2e=_0x1fffad['mainView']):(_0x8e5c2e=new _0x1a3c31(_0x34d5c4['locale'],_0x3bdf52,_0x4f0ba8,{'disableComments':this['_disableComments'],'editorConfig':{..._0x12920['get']('comments.editorConfig'),'licenseKey':_0x12920['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x12920['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x12920['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x12920['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1e6b48(_0x12920['get']('locale'),_0x34d5c4['locale']),'CommentView':_0x12920['get']('comments')['CommentView'],'CommentsListView':_0x270fea,'CommentThreadInputView':_0x4cc4ab,'SuggestionView':_0x3e37c3,'showAISource':_0x12920['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x12920['get']('trackChanges.aiAuthor'),'name':_0x12920['get']('trackChanges.aiAuthor')?.['name']||Mt(_0x34d5c4['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x8e5c2e['suggestionView']['acceptButton']['on']('execute',()=>{_0x34d5c4['editing']['view']['focus']();}),_0x8e5c2e['suggestionView']['discardButton']['on']('execute',()=>{_0x34d5c4['editing']['view']['focus']();}),_0x1fffad=_0x4ae1f2['createAnnotationView'](this['editor']['locale'],_0x8e5c2e),_0x1fffad['bind']('isDirty')['to'](_0x8e5c2e,'isDirty'),_0x1fffad['bind']('length')['to'](_0x8e5c2e),_0x1fffad['bind']('type')['to'](_0x8e5c2e,'type',_0x4e4b63=>'suggestion-'+_0x4e4b63),_0x8e5c2e['on']('escape',()=>{_0x5ebf4b['fire']('escape');}),this['_annotationViews']['set'](_0x3bdf52['id'],_0x1fffad));const _0x499742=_0x3c9b1c['createCommentThreadController'](_0x3bdf52['commentThread'],_0x8e5c2e),_0x43c9a4=new bn(_0x34d5c4,_0x3bdf52,_0x8e5c2e,_0x499742),_0x1bef03=_0x3bdf52['getAllAdjacentSuggestions']()['filter'](_0x9615c8=>_0x9615c8['isInContent']);_0x8e5c2e['descriptionParts']=_0x34d5c4['plugins']['get'](on)['descriptionFactory']['getDescriptions'](_0x1bef03),this['_suggestionToController']['set'](_0x3bdf52,_0x43c9a4),this['_viewToController']['set'](_0x8e5c2e,_0x43c9a4);const _0x5618c8=()=>{const _0x61f53=[],_0x179de0=_0x3bdf52['getAllAdjacentSuggestions']()['filter'](_0x5db4d3=>_0x5db4d3['isInContent']);for(const _0x1d8f34 of _0x179de0)_0x61f53['push'](..._0x1d8f34['getMarkers']());return _0x3ad40c(_0x34d5c4['editing'],_0x61f53);};_0x5ebf4b=_0x4ae1f2['createAnnotation']({'view':_0x1fffad,'target':_0x5618c8,'type':()=>'suggestion-'+_0x43c9a4['view']['type'],'isVisible':!!_0x5618c8()}),_0x3c9b1c['_bindAnnotationToEditors'](_0x8e5c2e,_0x5ebf4b),_0x4ae1f2['add'](_0x5ebf4b),_0x44f818['registerAnnotation'](_0x5ebf4b);}_destroyController(_0xcc547b){const _0x1557b5=this['editor']['plugins']['get'](_0x5b43d8),_0x2e7cf5=this['editor']['plugins']['get'](_0x2ff334),_0x76be55=this['_suggestionToController']['get'](_0xcc547b),_0x526842=_0x76be55['view'],_0x4d98ab=_0x2e7cf5['getByInnerView'](_0x526842);_0x1557b5['_unbindEditors'](_0x526842),_0x4d98ab&&_0x2e7cf5['remove'](_0x4d98ab),this['_suggestionToController']['delete'](_0xcc547b),this['_viewToController']['delete'](_0x526842),_0x76be55['destroy']();}_updateController(_0x31b51a){if(!_0x31b51a['isInContent']||!this['_suggestionToController']['has'](_0x31b51a))return;const _0x38659b=this['editor']['plugins']['get'](on),_0x18f7cd=this['_suggestionToController']['get'](_0x31b51a),_0x12e4b3=_0x31b51a['getAllAdjacentSuggestions']();_0x18f7cd['view']['descriptionParts']=_0x38659b['descriptionFactory']['getDescriptions'](_0x12e4b3);}destroy(){for(const _0x361a42 of this['_suggestionToController']['keys']())this['_destroyController'](_0x361a42);for(const _0x40e470 of this['_annotationViews']['values']())_0x40e470['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Nn(_0x10713a){return'model'in _0x10713a;}var Sn=class extends _0x26ff96{static get requires(){return[on,yn,_0x57912a];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x106468){this['editor']['plugins']['get'](on)['adapter']=_0x106468;}get adapter(){return this['editor']['plugins']['get'](on)['adapter'];}addSuggestion(_0xfd3686){return this['editor']['plugins']['get'](on)['addSuggestionData'](_0xfd3686);}getSuggestions({skipNotAttached:_0x35995c=!0x1,toJSON:_0x1a31ac=!0x1}={}){return this['editor']['plugins']['get'](on)['getSuggestions']({'skipNotAttached':_0x35995c,'toJSON':_0x1a31ac});}getSuggestion(_0x390f05){return this['editor']['plugins']['get'](on)['getSuggestion'](_0x390f05);}};const Mn=['Pagination'];var On=class extends _0x26ff96{static get requires(){return[on];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x497448=this['editor'];if(_0x497448['config']['define']('trackChangesData.editorCreator',_0x325ff6=>{const _0x277d7c=_0x497448['model']['document']['getRootNames']()['reduce']((_0x1ccbd7,_0x629dbe)=>(_0x1ccbd7[_0x629dbe]='',_0x1ccbd7),{});return _0x497448['constructor']['create'](_0x277d7c,_0x325ff6);}),'function'!=typeof _0x497448['config']['get']('trackChangesData')['editorCreator'])throw new _0x18ab5c('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x392886){return Bn(this['editor'],!0x0,_0x392886);}getDataWithDiscardedSuggestions(_0x10fb27){return Bn(this['editor'],!0x1,_0x10fb27);}},wn=class extends _0x26ff96{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x40a748){super(_0x40a748),this['result']='end',_0x40a748['editing']['view']['_overlayModeHint']='auto',_0x40a748['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}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 Fn(_0x4eb649){return void 0x0!==_0x4eb649['getRootsAttributes'];}async function Bn(_0x3176f7,_0x4df270,_0x2a76bd){const _0x5e068d=_0x5539b0(_0x3176f7,Mn);if(_0x5e068d['plugins']['push'](on,wn),Fn(_0x3176f7)){_0x5e068d['roots']=Object['create'](null);for(const _0xb772b5 of _0x3176f7['model']['document']['getRootNames']())_0x5e068d['roots'][_0xb772b5]={'modelAttributes':_0x3176f7['getRootAttributes'](_0xb772b5)};}const _0x423fc9=document['createDocumentFragment'](),_0x5afe8b=_0x3176f7['config']['get']('trackChangesData')['editorCreator'],_0x5f5655=await _0x5afe8b(_0x5e068d,()=>function(_0x33a073){const _0x31f8c3=document['createElement']('div');return _0x33a073['appendChild'](_0x31f8c3),_0x31f8c3;}(_0x423fc9));!function(_0x31d7bf,_0x2702c2){const _0x10227f=_0x31d7bf['model']['document']['getRootNames']()['reduce']((_0x253135,_0x39edf5)=>(_0x253135[_0x39edf5]=_0x31d7bf['data']['get']({'rootName':_0x39edf5}),_0x253135),{}),_0x2bf4e7=_0x31d7bf['plugins']['get']('Users')['users']['map'](_0x54aaf6=>({'id':_0x54aaf6['id'],'name':_0x54aaf6['name']})),_0xcc4b22=_0x31d7bf['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1144d9=_0x31d7bf['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x25d40e=_0x2702c2['plugins']['get']('Users'),_0x1c79a9=_0x2702c2['plugins']['get']('TrackChangesEditing'),_0x39f98a=_0x2702c2['plugins']['get']('CommentsRepository');for(const _0x7462b6 of _0x39f98a['getCommentThreads']())_0x7462b6['remove']();for(const _0x304053 of _0x2bf4e7)_0x25d40e['getUser'](_0x304053['id'])||_0x25d40e['addUser'](_0x304053);_0x25d40e['me']||_0x25d40e['useAnonymousUser']();for(const _0x3df207 of _0x1144d9)_0x39f98a['addCommentThread'](_0x3df207);for(const _0x4f16b6 of _0xcc4b22)_0x1c79a9['addSuggestionData'](_0x4f16b6);_0x2702c2['data']['set'](_0x10227f);}(_0x3176f7,_0x5f5655),_0x5f5655['execute'](_0x4df270?'acceptAllSuggestions':'discardAllSuggestions');const _0xf1ac18=Fn(_0x5f5655)?_0x5f5655['getFullData'](_0x2a76bd):_0x5f5655['data']['get'](_0x2a76bd);return await _0x5f5655['destroy'](),_0xf1ac18;}var vn=class extends _0x394804{options;constructor(_0x1c717d,_0x24d8b9){super(_0x1c717d),this['options']=_0x24d8b9,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(_0x16b76a,_0x286c1e){if(!this['element'])return;const _0x416700=[];for(const [_0xff606e,_0x4caff9]of _0x16b76a){const _0x3ad2cc=document['createElement']('div');_0x3ad2cc['setAttribute']('data-ck-root-name',_0xff606e),_0x3ad2cc['className']=_0x4caff9['classes']+'\x20ck-track-changes-preview__root-container',_0x3ad2cc['innerHTML']=_0x4caff9['content'],_0x416700['push'](_0x3ad2cc);}_0x286c1e(this['element'],_0x416700),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Dn=class extends _0x319139{constructor(_0x56c8c0){super(_0x56c8c0),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x31459d=this['editor'],_0x53920d=_0x31459d['locale'],_0x1faf4f=_0x31459d['plugins']['get']('Dialog');let _0x3d593f;const _0x462e2f=function(_0x392f66){const _0x5ae551={};if('editables'in _0x392f66['ui']['view']){for(const [_0x2f662d,_0xb15027]of Object['entries'](_0x392f66['ui']['view']['editables']))_0x5ae551[_0x2f662d]=_0xb15027['element'];}else _0x5ae551[_0x392f66['model']['document']['getRootNames']()[0x0]]=_0x392f66['ui']['view']['editable']['element'];return _0x5ae551;}(_0x31459d),_0x5d113e=function(_0x351175){let _0x4b99a1=0x0;for(const _0x5d0550 of Object['values'](_0x351175))_0x4b99a1=Math['max'](_0x4b99a1,_0x5d0550['getBoundingClientRect']()['width']);let _0x2f117c=0x0;for(const _0x2a2885 of Object['values'](_0x351175))_0x2f117c+=_0x2a2885['getBoundingClientRect']()['height'];const _0x1b0ab8=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x4b99a1,'height':Math['min'](_0x2f117c,_0x1b0ab8)};}(_0x462e2f);_0x1faf4f['show']({'id':'finalContentPreview','title':Mt(_0x53920d,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new vn(_0x53920d,{'dialogRects':_0x5d113e}),'onHide':()=>{_0x3d593f['detachFromDom']();},'onShow':()=>{_0x31459d['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x335efc=>{const _0x54c794=this['_standarizeRootsData'](_0x335efc,_0x31459d,_0x462e2f);_0x1faf4f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x54c794,_0x31459d['config']['get']('trackChanges.preview.renderFunction'));}),_0x3d593f=new _0x3aee1a(_0x53920d,[_0x1faf4f['view']]),_0x3d593f['attachToDom'](),_0x3d593f['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x31459d['once']('destroy',()=>{_0x3d593f['detachFromDom']();});const _0x2ead5e=_0x1faf4f['view']['headerView']['class'];_0x1faf4f['view']['headerView']['class']=_0x2ead5e?_0x2ead5e+'\x20ck-reset_all':'ck-reset_all',_0x1faf4f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1faf4f['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2e5546=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x55a0b3=_0x2e5546['previewMode'],_0x2d74e1={};if('$labels'===_0x55a0b3){for(const _0x37d804 of _0x2e5546['getMergeFieldsIds']())_0x2d74e1[_0x37d804]=_0x2e5546['getLabel'](_0x37d804)||_0x37d804;}else{const _0x46c09f='$defaultValues'===_0x55a0b3?_0x2e5546['getDefaultValues']():_0x2e5546['getDataSetValues'](_0x55a0b3,!0x0);for(const _0x24303d of Object['entries'](_0x46c09f)){const [_0x86ebd,_0x49a836]=_0x24303d;_0x2d74e1[_0x86ebd]=null!==_0x49a836?_0x49a836:_0x2e5546['getLabel'](_0x86ebd)||_0x86ebd;}}return{'mergeFieldsData':_0x2d74e1};}_standarizeRootsData(_0x20d3ad,_0x3c5d3d,_0x3a3480){let _0x2cd1e9;_0x2cd1e9='string'==typeof _0x20d3ad?{[_0x3c5d3d['model']['document']['getRootNames']()[0x0]]:_0x20d3ad}:_0x20d3ad;const _0x1f976d=this['_fixMediaEmbeds'](_0x2cd1e9,_0x3c5d3d);return function(_0x3659d8,_0x54a97a){for(const [_0x1fbd98,_0x2afc72]of _0x3659d8)_0x2afc72['classes']=_0x54a97a[_0x1fbd98]['classList']['value']['replace']('ck-focused','');return _0x3659d8;}(this['_sortRoots'](_0x3c5d3d)['reduce']((_0x2092c1,_0x39135e)=>(_0x2092c1['push']([_0x39135e,{'content':_0x1f976d[_0x39135e],'classes':''}]),_0x2092c1),[]),_0x3a3480);}['_fixMediaEmbeds'](_0x30ddfd,_0xba59e7){if(!_0xba59e7['plugins']['has']('MediaEmbedEditing'))return _0x30ddfd;const _0x51f24e=_0xba59e7['plugins']['get']('MediaEmbedEditing');for(const [_0x37a9bf,_0x1b85d9]of Object['entries'](_0x30ddfd)){const _0x1c6505=document['createElement']('div');_0x1c6505['innerHTML']=_0x1b85d9,_0x1c6505['querySelectorAll']('figure.media')['forEach'](_0x363b9d=>{const _0x59cdbc=_0x363b9d['querySelector']('oembed');if(_0x59cdbc){const _0x31fec1=_0x59cdbc['getAttribute']('url');if(_0x31fec1){const _0x109a90=_0x51f24e['registry']['getMediaViewElement'](new ot(_0xba59e7['editing']['view']['document']),_0x31fec1,{'elementName':'','renderForEditingView':!0x0}),_0x48cf6c=document['createElement']('div');_0x48cf6c['classList']['add']('ck-media__wrapper'),_0x109a90['render'](_0x48cf6c,_0xba59e7['editing']['view']['domConverter']),_0x59cdbc['replaceWith'](_0x48cf6c);}}}),_0x30ddfd[_0x37a9bf]=_0x1c6505['innerHTML'];}return _0x30ddfd;}_sortRoots(_0x52d028){if(!function(_0x15450f){return void 0x0!==_0x15450f['getRootsAttributes'];}(_0x52d028))return _0x52d028['model']['document']['getRootNames']();const _0x24a2f6=[],_0x44ed67=new Map();for(const _0x71fdaa of _0x52d028['model']['document']['getRootNames']()){const _0x129d05=_0x52d028['editing']['view']['getDomRoot'](_0x71fdaa)['getClientRects']()['item'](0x0);_0x24a2f6['push'](_0x71fdaa),_0x44ed67['set'](_0x71fdaa,_0x129d05);}return _0x24a2f6['sort']((_0x6e60ed,_0x54243a)=>{const _0x2475c4=_0x44ed67['get'](_0x6e60ed),_0x165516=_0x44ed67['get'](_0x54243a);return _0x2475c4['y']-_0x165516['y']||_0x2475c4['x']-_0x165516['x'];}),_0x24a2f6;}},Un=class extends _0x26ff96{static get requires(){return[On,_0x5b9b2d];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xbf7498){super(_0xbf7498),_0xbf7498['commands']['add']('previewFinalContent',new Dn(this['editor'])),_0xbf7498['config']['define']('trackChanges.preview.renderFunction',(_0x5ce4bf,_0x162d63)=>{for(const _0xb1432a of _0x162d63)_0x5ce4bf['appendChild'](_0xb1432a);});}};export{_t as AcceptSuggestionCommand,kn as BaseSuggestionThreadView,pt as DiscardSuggestionCommand,Rt as ExecuteOnAllSuggestionsCommand,yt as ExecuteOnSelectedSuggestionsCommand,Dn as PreviewFinalContentCommand,St as Suggestion,Ot as SuggestionDescriptionFactory,Cn as SuggestionThreadView,Rn as SuggestionView,Sn as TrackChanges,Tt as TrackChangesCommand,On as TrackChangesData,wn as TrackChangesDataGetter,on as TrackChangesEditing,Un as TrackChangesPreview,yn as TrackChangesUI};
|
|
23
|
+
import{Command as _0x2990b6,PendingActions as _0x1e7c99,Plugin as _0x253c9e}from'@ckeditor/ckeditor5-core';import{Annotations as _0x1dd919,Comments as _0x25af71,CommentsRepository as _0xfa421f,EditorAnnotations as _0x41a898}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x2b818d,Collection as _0x333733,FocusTracker as _0x1f4976,KeystrokeHandler as _0x2f4c9c,ObservableMixin as _0x2df605,getEnvKeystrokeText as _0x37b6f2,insertToPriorityArray as _0x404d57,logWarning as _0x1e0b40,priorities as _0x176cca,uid as _0x29a7da}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x1c97b0,IconCancel as _0x36ffaa,IconCheck as _0x285a3c,IconSparkle as _0x1ad20c,IconTrackChanges as _0x1881e2}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x4f6a70,Dialog as _0x1c4596,FocusCycler as _0x1b91a1,ListSeparatorView as _0x4a5048,MenuBarMenuListItemButtonView as _0x226466,MenuBarMenuListItemView as _0x5b8dae,MenuBarMenuListView as _0x4ddc73,MenuBarMenuView as _0x2aab14,SplitButtonView as _0x4641c5,UIModel as _0x4b53ea,View as _0x4ec76b,ViewCollection as _0x5d8d07,addListToDropdown as _0x1119dc,createDropdown as _0x7d8bcf,normalizeColorOptions as _0x4d4864}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x43132d,CollaborationUserColor as _0x342033,FOCUS_ANNOTATION_KEYSTROKE as _0x25897d,LateFocusButtonView as _0x4218dd,PillView as _0xb4f7ce,SuggestionsConversion as _0x5f5768,User as _0x7d6983,UserView as _0x339069,Users as _0x23536b,fixElementSuggestionRange as _0x204718,getAllMarkersDomElementsSorted as _0x5c4ec8,getDateTimeFormatter as _0x1fc032,hashObject as _0x3c33b8,isInvalidAttributeOperation as _0x245e01,sanitizeEditorConfig as _0xe4ceac,setupThreadKeyboardNavigation as _0x5c3968,splitSuggestionMarkerName as tt,surroundingMarkersDetector as et,trimHtml as nt}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as it,ModelLivePosition as st,ModelLiveRange as rt,ViewDowncastWriter as ot}from'@ckeditor/ckeditor5-engine';import{cloneDeep as at,isEqual as ct,omit as lt,set as ut,unset as dt}from'es-toolkit/compat';import{ClipboardMarkersUtils as ht,ClipboardPipeline as gt}from'@ckeditor/ckeditor5-clipboard';import{Delete as ft,Input as mt}from'@ckeditor/ckeditor5-typing';import{Enter as Et}from'@ckeditor/ckeditor5-enter';var Tt=class extends _0x2990b6{['_enabledCommands'];constructor(_0x23b515,_0x1a7f6c){super(_0x23b515),this['_enabledCommands']=_0x1a7f6c,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 _0x2e5db0 of this['editor']['commands']['commands']())_0x2e5db0['affectsData']&&!this['_enabledCommands']['has'](_0x2e5db0)&&_0x2e5db0['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x580188 of this['editor']['commands']['commands']())_0x580188['affectsData']&&!this['_enabledCommands']['has'](_0x580188)&&_0x580188['clearForceDisabled']('TrackChangesCommand');}},_t=class extends _0x2990b6{_suggestions;constructor(_0x573f76,_0x283e01){super(_0x573f76),this['_suggestions']=_0x283e01,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x4e6ea2){const _0x3b1d50=this['_suggestions']['get'](_0x4e6ea2);if(!_0x3b1d50)throw new _0x2b818d('track-changes-accept-suggestion-not-found',this);const _0x3854d9=_0x3b1d50['getRanges']();this['editor']['model']['canEditAt'](_0x3854d9)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3b1d50);}},pt=class extends _0x2990b6{_suggestions;constructor(_0x594971,_0x22659c){super(_0x594971),this['_suggestions']=_0x22659c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x4bb684){const _0x5200d0=this['_suggestions']['get'](_0x4bb684);if(!_0x5200d0)throw new _0x2b818d('track-changes-discard-suggestion-not-found',this);const _0x28feec=_0x5200d0['getRanges']();this['editor']['model']['canEditAt'](_0x28feec)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5200d0);}};function Lt(_0x22d27d,_0x480248){let _0x3d8cbf='';return _0x3d8cbf+=_0x22d27d['split']('*')['map']((_0x3cd8a6,_0x3198b7)=>_0x3198b7%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+It(_0x3cd8a6)+'</span>':It(_0x3cd8a6))['join'](''),_0x480248&&(_0x3d8cbf+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x480248['value']+'\x22\x20title=\x22'+_0x480248['title']+'\x22></span>'),_0x3d8cbf;}function It(_0x3531ce){const _0x215976=document['createElement']('span');return _0x215976['innerText']=_0x3531ce,_0x215976['innerHTML'];}function At(_0x540e61){return _0x540e61['sort']((_0x46af5d,_0x555d34)=>'attribute'===_0x46af5d['type']&&'attribute'!==_0x555d34['type']?-0x1:'attribute'!==_0x46af5d['type']&&'attribute'===_0x555d34['type']?0x1:'deletion'==_0x46af5d['type']&&'deletion'!=_0x555d34['type']?-0x1:'deletion'!=_0x46af5d['type']&&'deletion'==_0x555d34['type']?0x1:0x0);}function bt(_0x513ae0,_0x160069){let _0x1d0b30,_0x303ad3=0x0;const _0x4daba2=[],_0x531303=_0x160069['schema'];for(;_0x303ad3<_0x513ae0['length'];){const _0x564e12=_0x513ae0[_0x303ad3],_0x56f48b=_0x513ae0[_0x303ad3+0x1];_0x1d0b30||(_0x1d0b30=_0x160069['createPositionBefore'](_0x564e12)),kt(_0x160069,_0x564e12,_0x56f48b)||(_0x4daba2['push'](_0x160069['createRange'](_0x1d0b30,_0x531303['isObject'](_0x564e12)?_0x160069['createPositionAfter'](_0x564e12):_0x160069['createPositionAt'](_0x564e12,'end'))),_0x1d0b30=null),_0x303ad3++;}return _0x4daba2;}function kt(_0x38e03d,_0x4be069,_0x2ff471){if(!_0x2ff471)return!0x1;const _0x3e43f7=_0x38e03d['createPositionAfter'](_0x4be069),_0x49907e=_0x38e03d['createPositionBefore'](_0x2ff471);return _0x3e43f7['isTouching'](_0x49907e);}function Ct(_0x270f34,_0x52145e,_0x171230){for(;_0x171230['length'];){const _0x1a4d23=_0x171230['splice'](0x0,0x64);_0x270f34['change'](()=>{for(const _0xf1f93f of _0x1a4d23)_0xf1f93f['isInContent']&&_0x52145e['execute'](_0xf1f93f['id']);});}}var Rt=class extends _0x2990b6{['_command'];_suggestions;constructor(_0x20e6ff,_0x4ace3d,_0x4b385b){super(_0x20e6ff),this['_command']=_0x4ace3d,this['_suggestions']=_0x4b385b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x132076=Array['from'](this['_suggestions']['values']())['some'](_0x3daa86=>_0x3daa86['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x132076;}execute(){const _0x3f51c2=At(Array['from'](this['_suggestions']['values']()));for(const _0x35412b of _0x3f51c2){const _0x2dafd1=_0x35412b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2dafd1))return;}Ct(this['editor']['model'],this['_command'],_0x3f51c2);}},yt=class extends _0x2990b6{['_command'];_suggestions;_selectedSuggestions;constructor(_0xb224f9,_0x219a81,_0x1c1475){super(_0xb224f9),this['_command']=_0x219a81,this['_suggestions']=_0x1c1475,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xbfecf=this['editor']['model']['document']['selection'],_0x6deb69=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x399c02,_0x584318){const _0x361901=Array['from'](_0x399c02['getRanges']()),_0x3ad0a4=new Set();for(const _0x1ba8e7 of _0x584318)if(_0x1ba8e7['isInContent']){for(const _0x1e32a0 of _0x361901)for(const _0x420d20 of _0x1ba8e7['getRanges']())(_0x1e32a0['isIntersecting'](_0x420d20)||_0x399c02['isCollapsed']&&!_0x1ba8e7['isMultiRange']&&_0x1ba8e7['next']&&_0x420d20['end']['isTouching'](_0x1e32a0['start']))&&_0x3ad0a4['add'](_0x1ba8e7);}return _0x3ad0a4;}(_0xbfecf,_0x6deb69),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x132eee=At(Array['from'](this['_selectedSuggestions']));for(const _0x540d1c of _0x132eee){const _0x53380e=_0x540d1c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x53380e))return;}Ct(this['editor']['model'],this['_command'],_0x132eee);}};const Nt=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2df605();var St=class Suggestion extends Nt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x45e9aa,_0x22eee5){super(),this['id']=_0x22eee5['id'],this['type']=_0x22eee5['type'],this['subType']=_0x22eee5['subType']||null,this['author']=_0x22eee5['author'],this['creator']=_0x22eee5['creator']||_0x22eee5['author'],this['data']=null,this['_originalSuggestionId']=_0x22eee5['originalSuggestionId']||null,this['_model']=_0x45e9aa,this['_onAccept']=_0x22eee5['onAccept'],this['_onDiscard']=_0x22eee5['onDiscard'],this['_onAttributesChange']=_0x22eee5['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x22eee5['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x30f2cf=this;for(;_0x30f2cf['previous'];)_0x30f2cf=_0x30f2cf['previous'];return _0x30f2cf;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0xd807dd){this['_markerNames']['add'](_0xd807dd);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x4f1556=>this['_model']['markers']['get'](_0x4f1556))['filter'](_0x12afae=>_0x12afae);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x765990=>{for(const _0x4fe3c5 of this['getMarkers']())_0x765990['removeMarker'](_0x4fe3c5);}),this['_markerNames']['clear']();}['removeMarker'](_0x8452ab){this['_model']['change'](_0xd925b0=>{_0xd925b0['removeMarker'](_0x8452ab);}),this['_markerNames']['delete'](_0x8452ab);}['addRange'](_0xa018c9){const _0x1572bd='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x1572bd),this['_model']['change'](_0x1fff47=>{_0x1fff47['addMarker'](_0x1572bd,{'range':_0xa018c9,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x493388){for(const _0x57e47e of this['getRanges']())if(_0x57e47e['isIntersecting'](_0x493388))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x5e0633=>_0x5e0633['getRange']());}getItems(){return this['getRanges']()['reduce']((_0xaf88a0,_0x33812b)=>[..._0xaf88a0,..._0x33812b['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0xcf061=this['getRanges']();if(0x1!=_0xcf061['length'])return null;const _0x25368a=_0xcf061[0x0],_0x11132c=_0x25368a['start']['nodeAfter'],_0x595421=_0x25368a['end']['nodeBefore'];return _0x11132c instanceof it?_0x11132c!=_0x595421?null:_0x11132c: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 _0x390291=[];let _0x42bba5=this['head'];for(;_0x42bba5;)_0x390291['push'](_0x42bba5),_0x42bba5=_0x42bba5['next'];return _0x390291;}setAttribute(_0x1e5624,_0xc2a0cf){const _0x1d3a42=at(this['attributes']);ut(_0x1d3a42,_0x1e5624,_0xc2a0cf),ct(_0x1d3a42,this['attributes'])||(this['attributes']=_0x1d3a42,this['_onAttributesChange'](_0x1d3a42));}removeAttribute(_0x1728ff){const _0x14cbe6=at(this['attributes']);dt(_0x14cbe6,_0x1728ff),ct(_0x14cbe6,this['attributes'])||(this['attributes']=_0x14cbe6,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 _0x29a7da()['substr'](0x1,0x5);}};function Mt(_0x1f5ecb,_0xd57305,_0x2ff9ed){const _0x73b7f=_0x1f5ecb['t'],t=_0x1f5ecb['t'];switch(_0xd57305){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',_0x2ff9ed);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2ff9ed);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2ff9ed);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2ff9ed);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2ff9ed);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',_0x2ff9ed);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2ff9ed);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',_0x2ff9ed);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2ff9ed);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2ff9ed);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2ff9ed);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2ff9ed);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2ff9ed);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2ff9ed);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2ff9ed);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2ff9ed);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2ff9ed);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2ff9ed);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2ff9ed);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2ff9ed);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2ff9ed);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2ff9ed);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2ff9ed);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2ff9ed);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2ff9ed);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'},_0x2ff9ed);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2ff9ed);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2ff9ed);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2ff9ed);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2ff9ed);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2ff9ed);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2ff9ed);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2ff9ed);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x2ff9ed);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});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'},_0x2ff9ed);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2ff9ed);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2ff9ed);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2ff9ed);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2ff9ed);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x2ff9ed);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2ff9ed);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'},_0x2ff9ed);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_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_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x2ff9ed);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2ff9ed);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'},_0x2ff9ed);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2ff9ed);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'},_0x2ff9ed);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2ff9ed);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x2ff9ed);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x2ff9ed);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x2ff9ed);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2ff9ed);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'},_0x2ff9ed);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2ff9ed);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'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x73b7f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2ff9ed);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x73b7f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2ff9ed);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2ff9ed);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'},_0x2ff9ed);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'},_0x2ff9ed);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'},_0x2ff9ed);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xd57305;}}var Ot=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x4426d8,_0x40e8f4){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4426d8,this['_locale']=_0x40e8f4;}getDescriptions(_0x21c4cf){const _0x1922e8=[],_0x1020ac=new Set(),_0x3fd7cb=new Set();for(let _0x5c2501=0x0;_0x5c2501<_0x21c4cf['length'];_0x5c2501++){const _0x525060=_0x21c4cf[_0x5c2501];if(!_0x525060['isInContent'])continue;const _0x402868=this['_handleCustomCallbackDescription'](_0x525060);if(_0x402868){if(null!=_0x525060['subType']){if(_0x1020ac['has'](_0x525060['subType']))continue;_0x1020ac['add'](_0x525060['subType']);}_0x1922e8['push'](_0x402868);}else{if('attribute'==_0x525060['type']){const _0x48b53f=_0x525060['data']['key'];if(_0x3fd7cb['has'](_0x48b53f))continue;_0x3fd7cb['add'](_0x525060['data']['key']),'$elementName'==_0x48b53f?this['_handleRenameSuggestionDescription'](_0x1922e8,_0x525060):this['_handleAttributeSuggestionDescription'](_0x1922e8,_0x525060);continue;}'insertion'!=_0x525060['type']&&'deletion'!=_0x525060['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1922e8,_0x525060,_0x21c4cf[_0x5c2501+0x1]);}}return this['_resolveDescriptionItems'](_0x1922e8);}registerDescriptionCallback(_0x332f48){this['_customCallbacks']['push'](_0x332f48);}registerElementLabel(_0x436e93,_0x279ca2,_0xcce5fe=_0x176cca['normal']){'function'==typeof _0x436e93?_0x404d57(this['_itemLabelsCallbacks'],{'matchingCallback':_0x436e93,'label':_0x279ca2,'priority':_0xcce5fe}):this['_itemLabels']['set'](_0x436e93,_0x279ca2);}registerAttributeLabel(_0xd2a402,_0x25442b){this['_attributeLabels']['set'](_0xd2a402,_0x25442b);}getItemLabel(_0x65cca6,_0x2e6402=0x1){let _0x123134;for(const _0x4b12be of this['_itemLabelsCallbacks'])if(_0x4b12be['matchingCallback'](_0x65cca6)){_0x123134=_0x4b12be['label'];break;}return _0x123134||(_0x123134=this['_itemLabels']['get'](_0x65cca6['name'])),_0x123134?_0x123134(_0x2e6402):0x1!==_0x2e6402?_0x2e6402+'\x20'+_0x65cca6['name']+'s':''+_0x65cca6['name'];}_addDescriptionItems(_0x514c17,_0x147208){const _0x4069bb=_0x147208['getFirstRange']()['getWalker'](),_0x1d3384='insertion'==_0x147208['type']?'add':'remove';for(const _0x1264fc of _0x4069bb){const _0x321346=_0x1264fc['item'],_0x3ac393=_0x514c17[_0x514c17['length']-0x1];if(_0x321346['is']('$textProxy'))_0x3ac393&&_0x3ac393['type']['indexOf']('Container')>-0x1&&_0x514c17['pop'](),_0x3ac393&&'text'==_0x3ac393['type']?_0x3ac393[_0x1d3384]+=_0x321346['data']:_0x514c17['push']({'type':'text','add':'add'==_0x1d3384?_0x321346['data']:'','remove':'remove'==_0x1d3384?_0x321346['data']:''});else{if(this['_schema']['isObject'](_0x321346)){const _0x51911e=_0x321346;if(_0x3ac393&&_0x3ac393['type']['indexOf']('Container')>-0x1&&_0x514c17['pop'](),'elementEnd'==_0x1264fc['type'])continue;_0x3ac393&&_0x3ac393['type']==_0x1d3384+'Object'&&_0x3ac393['element']['name']==_0x51911e['name']?_0x3ac393['quantity']++:_0x514c17['push']({'type':_0x1d3384+'Object','element':_0x51911e,'quantity':0x1}),_0x4069bb['skip'](_0x4d93d5=>!('elementEnd'==_0x4d93d5['type']&&_0x4d93d5['item']==_0x321346));}else{if(this['_schema']['checkChild'](_0x321346,'$text')||_0x321346['is']('element','softBreak')){const _0x41cdcc=_0x321346;if('add'==_0x1d3384&&'elementStart'==_0x1264fc['type']||'remove'==_0x1d3384&&'elementEnd'==_0x1264fc['type'])continue;if(_0x3ac393&&-0x1==_0x3ac393['type']['indexOf']('Container')){'text'==_0x3ac393['type']&&(_0x3ac393[_0x1d3384]+='\x0a');continue;}let _0x5b055e;if(_0x5b055e='add'==_0x1d3384?_0x41cdcc['nextSibling']&&!this['_schema']['isObject'](_0x41cdcc['nextSibling'])?_0x41cdcc['nextSibling']:null:_0x41cdcc['previousSibling']&&!this['_schema']['isObject'](_0x41cdcc['previousSibling'])?_0x41cdcc['previousSibling']:null,_0x41cdcc['isEmpty']||_0x5b055e&&_0x5b055e['isEmpty']){const _0x1a4d87=_0x5b055e&&_0x5b055e['isEmpty']?_0x5b055e:_0x41cdcc;_0x3ac393&&_0x3ac393['type']==_0x1d3384+'EmptyContainer'&&_0x3ac393['element']['name']==_0x1a4d87['name']?_0x3ac393['quantity']++:_0x514c17['push']({'type':_0x1d3384+'EmptyContainer','element':_0x1a4d87,'quantity':0x1});}else _0x514c17['push']({'type':_0x1d3384+'Container','element':_0x41cdcc});}}}}}_resolveDescriptionItems(_0x3e4c30){const _0x191d2e=this['_locale'],_0x1f8295=[],_0x5a60d3=[],_0x4d4435=[];for(const _0x27d385 of _0x3e4c30)switch(_0x27d385['type']){case'text':if(_0x27d385['add']=_0x27d385['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x27d385['remove']=_0x27d385['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x27d385['add']&&''!=_0x27d385['remove']){_0x1f8295['push']({'type':'replace','content':Mt(_0x191d2e,'REPLACE_TEXT',['\x22'+_0x27d385['remove']+'\x22','\x22'+_0x27d385['add']+'\x22'])});continue;}if(null!=_0x27d385['add']['match'](/^ +$/)){_0x1f8295['push']({'type':'insertion','content':Mt(_0x191d2e,'*Insert:*\x20%0',Mt(_0x191d2e,'ELEMENT_SPACE',_0x27d385['add']['length']))});continue;}if(null!=_0x27d385['remove']['match'](/^ +$/)){_0x1f8295['push']({'type':'deletion','content':Mt(_0x191d2e,'*Remove:*\x20%0',Mt(_0x191d2e,'ELEMENT_SPACE',_0x27d385['remove']['length']))});continue;}if(''!=_0x27d385['add']){_0x1f8295['push']({'type':'insertion','content':Mt(_0x191d2e,'*Insert:*\x20%0','\x22'+_0x27d385['add']+'\x22')});continue;}_0x1f8295['push']({'type':'deletion','content':Mt(_0x191d2e,'*Remove:*\x20%0','\x22'+_0x27d385['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1f8295['push']({'type':'insertion','content':Mt(_0x191d2e,'*Insert:*\x20%0',this['getItemLabel'](_0x27d385['element'],_0x27d385['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1f8295['push']({'type':'deletion','content':Mt(_0x191d2e,'*Remove:*\x20%0',this['getItemLabel'](_0x27d385['element'],_0x27d385['quantity']))});continue;case'addContainer':_0x1f8295['push']({'type':'insertion','content':Mt(_0x191d2e,'*Split:*\x20%0',this['getItemLabel'](_0x27d385['element'],_0x27d385['quantity']))});continue;case'removeContainer':_0x1f8295['push']({'type':'deletion','content':Mt(_0x191d2e,'*Merge:*\x20%0',this['getItemLabel'](_0x27d385['element'],_0x27d385['quantity']))});continue;case'addFormat':_0x5a60d3['push'](_0x27d385['key']);continue;case'removeFormat':_0x4d4435['push'](_0x27d385['key']);continue;default:_0x1f8295['push'](_0x27d385);}if(_0x5a60d3['length']){const _0x190be8=_0x5a60d3['map'](_0x5807ff=>this['_attributeLabels']['has'](_0x5807ff)?this['_attributeLabels']['get'](_0x5807ff):_0x5807ff)['join'](',\x20');_0x1f8295['push']({'type':'format','content':Mt(this['_locale'],'*Set\x20format:*\x20%0',_0x190be8)});}if(_0x4d4435['length']){const _0x224c94=_0x4d4435['map'](_0x2e5d3f=>this['_attributeLabels']['has'](_0x2e5d3f)?this['_attributeLabels']['get'](_0x2e5d3f):_0x2e5d3f)['join'](',\x20');_0x1f8295['push']({'type':'format','content':Mt(this['_locale'],'*Remove\x20format:*\x20%0',_0x224c94)});}return _0x1f8295;}_handleCustomCallbackDescription(_0x1618ab){for(const _0x4f6e82 of this['_customCallbacks']){const _0x5ed0ff=_0x4f6e82(_0x1618ab);if(_0x5ed0ff&&'type'in _0x5ed0ff)return _0x5ed0ff;}}_handleAttributeSuggestionDescription(_0x486389,_0x483450){const _0x29fcec=_0x483450['data'],_0x30bef1=void 0x0===_0x29fcec['newValue']?'removeFormat':'addFormat';_0x486389['push']({'type':_0x30bef1,'key':_0x29fcec['key']});}_handleRenameSuggestionDescription(_0x53a7be,_0x521d15){_0x53a7be['push']({'type':'format','content':Mt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x521d15['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x420c85,_0x3ee340,_0x37f8f0){if(this['_addDescriptionItems'](_0x420c85,_0x3ee340),_0x37f8f0&&_0x37f8f0['getFirstRange']()&&!_0x3ee340['getFirstRange']()['end']['isEqual'](_0x37f8f0['getFirstRange']()['start'])){const _0x528950=_0x420c85[_0x420c85['length']-0x1],_0x2d6782='insertion'==_0x3ee340['type']?'add':'remove';_0x528950&&'text'==_0x528950['type']&&(_0x528950[_0x2d6782]+='\x0a');}}},wt=class extends _0x253c9e{afterInit(){const _0x3828d7=this['editor'],_0x50f6e3=_0x3828d7['plugins']['get']('TrackChangesEditing');_0x3828d7['commands']['get']('showAIAssistant')&&_0x50f6e3['enableCommand']('showAIAssistant');}},Ft=class extends _0x253c9e{afterInit(){const _0x2db7ca=this['editor'],_0x1f90a4=_0x2db7ca['plugins']['get']('TrackChangesEditing');_0x2db7ca['commands']['get']('toggleAi')&&_0x1f90a4['enableCommand']('toggleAi');}},Bt=class extends _0x253c9e{afterInit(){const _0x5d1700=this['editor'],_0x6e7033=_0x5d1700['plugins']['get']('TrackChangesEditing');_0x5d1700['commands']['get']('aiQuickAction')&&_0x6e7033['enableCommand']('aiQuickAction');}},vt=class extends _0x253c9e{afterInit(){const _0x5b0b89=this['editor'],_0x3831eb=_0x5b0b89['locale'];if(!_0x5b0b89['plugins']['has']('AlignmentEditing'))return;const _0x5b7d51=_0x5b0b89['plugins']['get']('TrackChangesEditing');_0x5b7d51['enableDefaultAttributesIntegration']('alignment'),_0x5b7d51['descriptionFactory']['registerAttributeLabel']('alignment',Mt(_0x3831eb,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5d9e42=this['editor'],_0x40571f=_0x5d9e42['locale'];_0x5d9e42['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x146647=>{if('formatBlock'!=_0x146647['type'])return;const {data:_0x4f0677}=_0x146647;if(_0x4f0677&&'alignment'==_0x4f0677['commandName']){const _0x4160fa=_0x4f0677['commandParams'][0x0]['value'];return{'type':'format','content':Mt(_0x40571f,'*Format:*\x20%0',function(_0x108d11){switch(_0x108d11){case'left':return Mt(_0x40571f,'FORMAT_ALIGN_TO_LEFT');case'right':return Mt(_0x40571f,'FORMAT_ALIGN_TO_RIGHT');case'center':return Mt(_0x40571f,'FORMAT_ALIGN_TO_CENTER');case'justify':return Mt(_0x40571f,'FORMAT_JUSTIFY_TEXT');}}(_0x4160fa))};}});}};const Dt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Ut=class extends _0x253c9e{afterInit(){const _0x1f8c7c=this['editor'],_0x25b789=_0x1f8c7c['plugins']['get']('TrackChangesEditing'),_0x3fac9b=_0x1f8c7c['locale'];for(const _0x3dc9f6 of Dt){if(!_0x1f8c7c['plugins']['has'](_0x3dc9f6))continue;const _0x4a7d1=_0x3dc9f6['slice'](0x0,-0x7)['toLowerCase'](),_0x406ca5='FORMAT_'+_0x4a7d1['toUpperCase']();_0x25b789['enableDefaultAttributesIntegration'](_0x4a7d1),_0x25b789['descriptionFactory']['registerAttributeLabel'](_0x4a7d1,Mt(_0x3fac9b,_0x406ca5));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x77a806=this['editor'],_0x55817a=_0x77a806['locale'],_0x5e73ce=_0x77a806['plugins']['get']('TrackChangesEditing');function _0x4436f4(_0x3d922b,_0xd1fbb4){_0x5e73ce['descriptionFactory']['registerDescriptionCallback'](_0x44b2c0=>{if('formatInline'!=_0x44b2c0['type'])return;const {data:_0x24b053}=_0x44b2c0;return _0x24b053&&_0x24b053['commandName']===_0x3d922b?_0x24b053['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x55817a,'*Format:*\x20%0',_0xd1fbb4)}:{'type':'format','content':Mt(_0x55817a,'*Remove\x20format:*\x20%0',_0xd1fbb4)}:void 0x0;});}_0x4436f4('bold',Mt(_0x55817a,'FORMAT_BOLD')),_0x4436f4('italic',Mt(_0x55817a,'FORMAT_ITALIC')),_0x4436f4('underline',Mt(_0x55817a,'FORMAT_UNDERLINE')),_0x4436f4('code',Mt(_0x55817a,'FORMAT_CODE')),_0x4436f4('strikethrough',Mt(_0x55817a,'FORMAT_STRIKETHROUGH')),_0x4436f4('subscript',Mt(_0x55817a,'FORMAT_SUBSCRIPT')),_0x4436f4('superscript',Mt(_0x55817a,'FORMAT_SUPERSCRIPT'));}},Pt=class extends _0x253c9e{afterInit(){const _0x13b1db=this['editor'],_0x585549=_0x13b1db['locale'];if(!_0x13b1db['plugins']['has']('BlockQuoteEditing'))return;const _0x471052=_0x13b1db['plugins']['get']('TrackChangesEditing'),_0x199d95=this['editor']['commands']['get']('blockQuote');_0x471052['enableCommand']('blockQuote',(_0x3399b2,_0x8e15a={})=>{const _0x23ba73=this['editor']['model']['document']['selection'],_0x1f4171=_0x8e15a&&void 0x0!==_0x8e15a['forceValue']?_0x8e15a['forceValue']:!_0x199d95['value'];let _0x2e8068=[];if(_0x1f4171){const _0x148d22=Array['from'](_0x23ba73['getSelectedBlocks']())['filter'](_0x49b8a0=>xt(_0x49b8a0)||function(_0x330435,_0x41b8e5){const _0x3242cd=_0x41b8e5['createContext'](_0x330435['parent']);return!!_0x41b8e5['checkChild'](_0x3242cd,'blockQuote')&&!!_0x41b8e5['checkChild'](_0x3242cd['push']('blockQuote'),_0x330435);}(_0x49b8a0,this['editor']['model']['schema']));_0x2e8068=bt(_0x148d22,_0x13b1db['model']);}else{const _0x321ff1=Array['from'](_0x23ba73['getSelectedBlocks']())['filter'](_0x4be2f7=>xt(_0x4be2f7));_0x2e8068=bt(_0x321ff1,_0x13b1db['model']);}_0x13b1db['model']['change'](()=>{for(const _0x177554 of _0x2e8068)_0x471052['markBlockFormat'](_0x177554,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1f4171}]});});}),_0x471052['descriptionFactory']['registerDescriptionCallback'](_0x47cade=>{const {data:_0x3e82df}=_0x47cade;if(_0x3e82df&&'blockQuote'==_0x3e82df['commandName']){const _0x4a548e=Mt(_0x585549,'ELEMENT_BLOCK_QUOTE');return _0x3e82df['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x585549,'*Set\x20format:*\x20%0',_0x4a548e)}:{'type':'format','content':Mt(_0x585549,'*Remove\x20format:*\x20%0',_0x4a548e)};}});}};function xt(_0x1ef272){return'blockQuote'==_0x1ef272['parent']['name'];}var Gt=class extends _0x253c9e{afterInit(){const _0x30580a=this['editor'],_0xb00354=_0x30580a['locale'],_0x441997=_0x30580a['plugins']['get']('TrackChangesEditing');_0x30580a['plugins']['has']('BookmarkEditing')&&(_0x441997['enableCommand']('insertBookmark'),_0x441997['enableDefaultAttributesIntegration']('updateBookmark'),_0x441997['descriptionFactory']['registerDescriptionCallback'](_0x4d7cf1=>{if('insertion'!=_0x4d7cf1['type']&&'deletion'!=_0x4d7cf1['type']&&'attribute'!=_0x4d7cf1['type'])return;const _0x168a07=_0x4d7cf1['getContainedElement']();if(null==_0x168a07)return;if(!_0x168a07['is']('element','bookmark'))return;const _0x252bcb=_0x168a07['getAttribute']('bookmarkId');if('insertion'==_0x4d7cf1['type'])return{'type':'insertion','content':Mt(_0xb00354,'*Insert:*\x20%0','\x22'+_0x252bcb+'\x22\x20'+Mt(_0xb00354,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4d7cf1['type'])return{'type':'deletion','content':Mt(_0xb00354,'*Remove:*\x20%0','\x22'+_0x252bcb+'\x22\x20'+Mt(_0xb00354,'ELEMENT_BOOKMARK'))};const {data:_0x39ec22}=_0x4d7cf1;return _0x39ec22&&'bookmarkId'==_0x39ec22['key']?{'type':'format','content':Mt(_0xb00354,'*Set\x20bookmark:*\x20%0','\x22'+_0x39ec22['newValue']+'\x22')}:void 0x0;}));}},Ht=class extends _0x253c9e{afterInit(){const _0x11f98e=this['editor'];_0x11f98e['plugins']['has']('CaseChange')&&(_0x11f98e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x11f98e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x11f98e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},$t=class extends _0x253c9e{afterInit(){const _0x2a67c8=this['editor'];_0x2a67c8['commands']['get']('ckbox')&&_0x2a67c8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Wt=class extends _0x253c9e{static get requires(){return[ht,gt];}constructor(_0x3df227){super(_0x3df227),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x51e10d=this['editor'],_0x295d58=_0x51e10d['plugins']['get']('ClipboardMarkersUtils'),_0x3752d6=_0x51e10d['plugins']['get'](gt);_0x295d58['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x3752d6['on']('outputTransformation',(_0x1638e0,_0x87c05d)=>{const _0x532115=this['_getSuggestionEntries'](_0x87c05d);for(const [_0x3e07dd,_0x128f93]of _0x87c05d['content']['markers']){const _0x1780a=rt['_fromRangeInDocumentFragment'](_0x128f93,_0x51e10d['model']);function _0x795fce(){_0x1780a['detach'](),_0x87c05d['content']['markers']['delete'](_0x3e07dd);}_0x1780a['on']('change:drop',_0x795fce),(_0x3e07dd['startsWith']('suggestion:')||_0x3e07dd['startsWith']('comment:'))&&_0x1780a['on']('change:range',()=>{_0x1780a['isCollapsed']&&_0x795fce();}),_0x87c05d['content']['markers']['set'](_0x3e07dd,_0x1780a);}const _0x8605e2=_0x532115['filter'](_0x34c220=>'deletion'===_0x34c220['meta']['type'])['map'](_0x44fa69=>_0x44fa69['modelRange']);if(this['_shouldSkipDeletions'](_0x8605e2,_0x87c05d['content']))return[..._0x532115]['forEach'](_0x209063=>{_0x87c05d['content']['markers']['get'](_0x209063['markerName'])['detach'](),_0x87c05d['content']['markers']['delete'](_0x209063['markerName']);}),void this['_restoreRegularRanges'](_0x87c05d['content']['markers']);[..._0x532115]['forEach'](_0x57e304=>{const _0x4a38d4=_0x51e10d['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x57e304['meta']['type'],_0x57e304['meta']['subType'],'accept'),{markerName:_0x2d4e76,meta:_0x3fd905}=_0x57e304;if(_0x87c05d['content']['markers']['has'](_0x2d4e76)){switch(_0x3fd905['type']){case'deletion':if('tableRow'===_0x3fd905['subType']||'tableColumn'===_0x3fd905['subType']){if(!_0x51e10d['plugins']['has']('TableUtils'))break;const _0x1bbfbf=_0x51e10d['plugins']['get']('TableUtils'),_0x2dc945=_0x1bbfbf['getSelectionAffectedTableCells'](_0x51e10d['model']['createSelection'](_0x87c05d['content']['markers']['get'](_0x2d4e76))),_0x4a1e5d=_0x2dc945[0x0]['findAncestor']('table');if('tableRow'===_0x3fd905['subType']){const {first:_0x2efe56,last:_0x3ceea3}=_0x1bbfbf['getRowIndexes'](_0x2dc945);_0x1bbfbf['removeRows'](_0x4a1e5d,{'at':_0x2efe56,'rows':_0x3ceea3-_0x2efe56+0x1});}else{const {first:_0x15f6e7,last:_0x4ca724}=_0x1bbfbf['getColumnIndexes'](_0x2dc945);_0x1bbfbf['removeColumns'](_0x4a1e5d,{'at':_0x15f6e7,'columns':_0x4ca724-_0x15f6e7+0x1});}break;}_0x4a38d4([_0x87c05d['content']['markers']['get'](_0x2d4e76)]);}_0x87c05d['content']['markers']['has'](_0x2d4e76)&&(_0x87c05d['content']['markers']['get'](_0x2d4e76)['detach'](),_0x87c05d['content']['markers']['delete'](_0x2d4e76));}}),this['_restoreRegularRanges'](_0x87c05d['content']['markers']);});}_getSuggestionEntries(_0x29420f){const _0xceb428=_0x45d17b=>'dragstart'===_0x29420f['method']?_0x45d17b['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x45d17b;return Array['from'](_0x29420f['content']['markers'])['map'](([_0x163943,_0x22e5ec])=>({'markerName':_0x163943,'modelRange':_0x22e5ec,'meta':tt(_0xceb428(_0x163943))}))['filter'](({meta:_0x115942})=>'suggestion'===_0x115942['group']);}_shouldSkipDeletions(_0x2a7e32,_0x2671ef){if(!_0x2a7e32['length'])return!0x1;let _0x323494=[this['editor']['model']['createRangeIn'](_0x2671ef)];for(const _0x529f87 of _0x2a7e32)_0x323494=_0x323494['flatMap'](_0x370990=>_0x370990['getDifference'](_0x529f87));return!_0x323494['some'](_0x552a4f=>this['editor']['model']['hasContent'](_0x552a4f,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0xab823e){[..._0xab823e['keys']()]['forEach'](_0x4ba9bf=>{const _0x2d5761=_0xab823e['get'](_0x4ba9bf);_0x2d5761['detach'](),_0xab823e['set'](_0x4ba9bf,_0x2d5761['toRange']());});}},Vt=class extends _0x253c9e{afterInit(){const _0x1bc516=this['editor'];if(!_0x1bc516['plugins']['has']('CodeBlock'))return;const _0x26c8e3=_0x1bc516['plugins']['get']('TrackChangesEditing'),_0x3a586f=_0x1bc516['locale'],_0x2180d6=_0x1bc516['config']['get']('codeBlock')['languages'],_0x2e8dd2=_0x1bc516['commands']['get']('codeBlock');_0x26c8e3['enableCommand']('indentCodeBlock'),_0x26c8e3['enableCommand']('outdentCodeBlock'),_0x26c8e3['enableCommand']('codeBlock',(_0x23338e,_0x30ba24={})=>{const _0x5b3917=_0x1bc516['model'],_0x465c8b=_0x1bc516['model']['document']['selection'],_0x156444=_0x30ba24&&void 0x0!==_0x30ba24['forceValue']?_0x30ba24['forceValue']:!_0x2e8dd2['value'];let _0xe5ccfd;_0x30ba24['language']||(_0x30ba24['language']=_0x2180d6[0x0]['language']),_0xe5ccfd=_0x156444?Array['from'](_0x465c8b['getSelectedBlocks']())['filter'](_0x3bd2aa=>{return jt(_0x3bd2aa)||(_0x1adeb2=_0x3bd2aa,_0x5030b6=_0x5b3917['schema'],!_0x1adeb2['is']('rootElement')&&!_0x5030b6['isLimit'](_0x1adeb2)&&_0x5030b6['checkChild'](_0x1adeb2['parent'],'codeBlock'));var _0x1adeb2,_0x5030b6;}):Array['from'](_0x465c8b['getSelectedBlocks']())['filter'](_0x39cd33=>jt(_0x39cd33));const _0x102d7f=bt(_0xe5ccfd,_0x5b3917);_0x5b3917['change'](()=>{for(const _0x47d7e9 of _0x102d7f)_0x26c8e3['markBlockFormat'](_0x47d7e9,{'commandName':'codeBlock','commandParams':[{..._0x30ba24,'forceValue':_0x156444}],'formatGroupId':'blockName'});});}),(_0x26c8e3['descriptionFactory']['registerElementLabel']('codeBlock',_0x8b87f0=>Mt(_0x3a586f,'ELEMENT_CODE_BLOCK',_0x8b87f0)),_0x26c8e3['descriptionFactory']['registerDescriptionCallback'](_0x309e87=>{if('formatBlock'!=_0x309e87['type'])return;const _0x483286=_0x3a586f['t'],{data:_0x501b8a}=_0x309e87;if(!_0x501b8a||'codeBlock'!=_0x501b8a['commandName'])return;const _0x403c32=_0x501b8a['commandParams'][0x0]['language'],_0x258129=_0x483286(_0x2180d6['find'](_0x12596e=>_0x12596e['language']===_0x403c32)['label'])['toLowerCase']();return _0x501b8a['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x3a586f,'*Set\x20format:*\x20%0',Mt(_0x3a586f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x258129+')')}:{'type':'format','content':Mt(_0x3a586f,'*Remove\x20format:*\x20%0',Mt(_0x3a586f,'ELEMENT_CODE_BLOCK',0x1))};}));}};function jt(_0x57c2f9){return'codeBlock'==_0x57c2f9['name'];}var zt=class extends _0x253c9e{afterInit(){const _0x295617=this['editor'];_0x295617['plugins']['has']('CommentsEditing')&&_0x295617['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Kt=class extends _0x253c9e{static get requires(){return[ft];}init(){const _0x3d3c8c=this['editor'],_0x53b0ee=_0x3d3c8c['plugins']['get']('TrackChangesEditing');_0x53b0ee['enableCommand']('delete');const _0xf86924=_0x3d3c8c['commands']['get']('deleteForward');_0x53b0ee['enableCommand']('deleteForward',(_0x79c046,_0x3ee609={})=>{const _0xc53245=_0x3d3c8c['model']['createSelection'](_0x3d3c8c['model']['document']['selection']);_0xc53245['isCollapsed']&&_0x3d3c8c['model']['modifySelection'](_0xc53245,{'direction':'forward','unit':_0x3ee609['unit']});const _0x22055a=_0xc53245['getFirstRange'](),_0x37d53b=rt['fromRange'](_0x22055a);let _0x1efd23;_0x79c046(_0x3ee609),_0x1efd23='$graveyard'==_0x37d53b['root']['rootName']?_0x3d3c8c['model']['createRange'](_0x22055a['start']):_0x3d3c8c['model']['createRange'](_0x37d53b['start'],_0x37d53b['end']),_0x37d53b['detach'](),_0x3d3c8c['model']['enqueueChange'](_0xf86924['buffer']['batch'],_0x98e203=>{_0xf86924['buffer']['lock'](),_0x98e203['setSelection'](_0x98e203['createRange'](_0x1efd23['end'])),_0xf86924['buffer']['unlock']();});});}},Xt=class extends _0x253c9e{afterInit(){const _0x5b9555=this['editor'];if(!_0x5b9555['plugins']['has']('ListEditing'))return;const _0x2ce787=_0x5b9555['locale'],_0x5540f6=_0x5b9555['plugins']['get']('TrackChangesEditing'),_0x254af5=_0x5b9555['plugins']['has']('TodoListEditing'),_0x13f01a=!!_0x5b9555['config']['get']('list.multiBlock');function _0x5c4984(_0x360c12){return{'type':'format','content':''+Mt(_0x2ce787,'*Set\x20format:*\x20%0',_0x360c12)};}function _0x1c5eec(_0x2358b5){return{'type':'format','content':''+Mt(_0x2ce787,'*Remove\x20format:*\x20%0',_0x2358b5)};}_0x5540f6['enableDefaultAttributesIntegration']('numberedList'),_0x5540f6['enableDefaultAttributesIntegration']('bulletedList'),_0x5540f6['enableDefaultAttributesIntegration']('customNumberedList'),_0x5540f6['enableDefaultAttributesIntegration']('customBulletedList'),_0x5540f6['enableDefaultAttributesIntegration']('indentList'),_0x5540f6['enableDefaultAttributesIntegration']('outdentList'),_0x5540f6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5540f6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x13f01a&&(_0x5540f6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5540f6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x254af5&&(_0x5540f6['enableDefaultAttributesIntegration']('todoList'),_0x5540f6['enableDefaultAttributesIntegration']('checkTodoList'),_0x5540f6['descriptionFactory']['registerDescriptionCallback'](_0x30d0b1=>{const {data:_0x8f4169}=_0x30d0b1;if(_0x8f4169&&'todoListChecked'==_0x8f4169['key'])return{'type':'format','content':_0x8f4169['newValue']?Mt(_0x2ce787,'*Check\x20item*'):Mt(_0x2ce787,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x491957=>{if(_0x491957['batch']['isUndo'])return!0x1;let _0x115003=!0x1;const _0x26978d=_0x5540f6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x483b3d=>'todoListChecked'===_0x5540f6['_getAttributeKey'](_0x483b3d));for(const _0x2e88ee of _0x26978d)'todo'!=_0x2e88ee['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5540f6['_findSuggestions'](_0x2e88ee['getFirstRange'](),'attribute')['find'](_0x441898=>'listType'===_0x5540f6['_getAttributeKey'](_0x441898['suggestion']))||(_0x491957['removeMarker'](_0x2e88ee['getFirstMarker']()),_0x115003=!0x0));return _0x115003;})),_0x5540f6['descriptionFactory']['registerAttributeLabel']('listIndent',Mt(_0x2ce787,'FORMAT_INDENT'));const _0x27693e={'type':'format','content':''};_0x5540f6['descriptionFactory']['registerDescriptionCallback'](_0x3237f3=>{const {data:_0x1569f4}=_0x3237f3;if(!_0x1569f4||'listType'!=_0x1569f4['key'])return;let _0x71779e=_0x3237f3['head'];for(;_0x71779e;){if(_0x71779e['data']&&(('listStyle'==_0x71779e['data']['key']||'listMarkerStyle'==_0x71779e['data']['key'])&&(_0x71779e['data']['newValue']&&'default'!=_0x71779e['data']['newValue']||'default'!=_0x71779e['data']['oldValue']&&!_0x1569f4['newValue'])||!_0x13f01a&&'$elementName'==_0x71779e['data']['key']))return _0x27693e;_0x71779e=_0x71779e['next'];}if(null==_0x1569f4['newValue'])switch(_0x1569f4['oldValue']){case'bulleted':return _0x1c5eec(Mt(_0x2ce787,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1c5eec(Mt(_0x2ce787,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1c5eec(Mt(_0x2ce787,'ELEMENT_TODO_LIST'));}switch(_0x1569f4['newValue']){case'bulleted':return _0x5c4984(Mt(_0x2ce787,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5c4984(Mt(_0x2ce787,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5c4984(Mt(_0x2ce787,'ELEMENT_TODO_LIST'));}}),_0x5540f6['descriptionFactory']['registerDescriptionCallback'](_0x3cab78=>{const {data:_0x458dd0}=_0x3cab78;if(_0x458dd0&&'listIndent'==_0x458dd0['key'])return null==_0x458dd0['newValue']||null==_0x458dd0['oldValue']&&0x0==_0x458dd0['newValue']?_0x27693e:void 0x0;}),_0x5540f6['descriptionFactory']['registerDescriptionCallback'](_0x15330a=>{if('attribute'!=_0x15330a['type'])return;const {data:_0x4cca35}=_0x15330a;if(!_0x4cca35||'listItemId'!=_0x4cca35['key'])return;const _0x499078=qt(_0x15330a);return'newValue'==_0x499078?{'type':'format','content':Mt(_0x2ce787,'*Merge:*\x20list\x20item')}:'oldValue'==_0x499078?{'type':'format','content':Mt(_0x2ce787,'*Split:*\x20list\x20item')}:_0x27693e;}),_0x5b9555['model']['document']['registerPostFixer'](_0x177a64=>this['listItemIdFixer'](_0x177a64)),_0x5b9555['model']['document']['registerPostFixer'](_0x2773a6=>this['noTrackChangesFixer'](_0x2773a6)),_0x5b9555['model']['document']['on']('change:data',(_0x33de1d,_0x580ed7)=>{if(_0x580ed7['isUndo']||!_0x580ed7['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x1d2497){if(_0x1d2497['batch']['isUndo']||!_0x1d2497['batch']['isLocal'])return!0x1;let _0x51599e=!0x1;const _0x2da7a8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x686ad1=>_0x686ad1['data']&&'listItemId'==_0x686ad1['data']['key'])['filter'](_0x2994b9=>_0x2994b9['data']['newValue']&&_0x2994b9['data']['oldValue']);for(const _0xf0a569 of _0x2da7a8)qt(_0xf0a569)||(_0x1d2497['removeMarker'](_0xf0a569['getFirstMarker']()),_0x51599e=!0x0);return _0x51599e;}['noTrackChangesFixer'](_0x335d6f){if(_0x335d6f['batch']['isUndo']||!_0x335d6f['batch']['isLocal'])return!0x1;const _0x518dfa=this['editor']['model']['document']['differ'],_0x32d054=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x32d054['trackChangesCommand']['value'])return!0x1;let _0x515099=!0x1;const _0x5f4111=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0xb6ae0b=_0x518dfa['getChanges']()['filter'](_0x1bb2d5=>'attribute'==_0x1bb2d5['type'])['filter'](_0x34f239=>_0x5f4111['has'](_0x34f239['attributeKey']));if(0x0==_0xb6ae0b['length'])return _0x515099;const _0x45a673=new Set(_0x518dfa['getMarkersToAdd']()['filter'](_0x4979f2=>{if(!_0x4979f2['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0xc19e3e=tt(_0x4979f2['name'])['subType']['split']('|')[0x0];return _0x5f4111['has'](_0xc19e3e);})['map'](_0x1162e5=>tt(_0x1162e5['name'])['id']));for(const _0x58435c of _0xb6ae0b){const _0x2be6d2=_0x32d054['_findSuggestions'](_0x58435c['range'],'attribute')['filter'](_0xea3421=>{if(_0xea3421['meta']['isNextTo'])return!0x1;if(_0x45a673['has'](_0xea3421['suggestion']['id']))return!0x1;const _0x5ca7aa=_0x32d054['_getAttributeKey'](_0xea3421['suggestion']);return _0x5f4111['has'](_0x5ca7aa);})['map'](_0x55f9ff=>_0x55f9ff['suggestion']);if(_0x2be6d2['length']){for(const _0x1dc4c7 of _0x2be6d2)_0x335d6f['removeMarker'](_0x1dc4c7['getFirstMarker']());_0x515099=!0x0;}}return _0x515099;}['assureChains'](){const _0x955c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x85d3c5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x41129f;const _0x366370=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x29f50b=>{if(_0x29f50b['data']['oldRange']||!_0x29f50b['data']['newRange'])return null;if(!_0x29f50b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x6c161e}=tt(_0x29f50b['name']);if(!_0x955c0['hasSuggestion'](_0x6c161e))return null;const _0x2d153a=_0x955c0['getSuggestion'](_0x6c161e);return _0x85d3c5['includes'](_0x2d153a['data']['key']);})['map'](_0xcd3e7a=>{const {id:_0x40d53b}=tt(_0xcd3e7a['name']),_0x405ae5=_0x955c0['getSuggestion'](_0x40d53b);return _0x41129f=_0x405ae5['attributes']['groupId'],_0x405ae5['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x366370['size'])return;const _0x20bb99=_0x955c0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ec118=>'attribute'==_0x5ec118['type']&&_0x5ec118['data']&&_0x85d3c5['includes'](_0x5ec118['data']['key'])&&_0x5ec118['attributes']['groupId']!=_0x41129f)['map'](_0x4d3c21=>({'listItem':_0x4d3c21['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4d3c21['attributes']['groupId']})),_0x7d361f=new Set();for(const {groupId:_0xe35e2b,listItem:_0x1d9f76}of _0x20bb99)_0x366370['has'](_0x1d9f76)&&_0x7d361f['add'](_0xe35e2b);for(const _0x1f1223 of _0x955c0['getSuggestions']())_0x7d361f['has'](_0x1f1223['attributes']['groupId'])&&_0x1f1223['setAttribute']('groupId',_0x41129f);}_supportLegacySuggestions(){const _0x4a6c16=this['editor'],_0x15b782=_0x4a6c16['locale'],_0x4e74c3=_0x4a6c16['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4e74c3['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x39be0d,_0x1c9e8d){const _0x3ca8ac=[];for(let _0xde6359 of _0x39be0d)_0xde6359['start']['nodeAfter']===_0xde6359['end']['parent']&&(_0xde6359=_0x4a6c16['model']['createRange'](_0x4a6c16['model']['createPositionAt'](_0xde6359['start']['nodeAfter'],0x0))),_0x3ca8ac['push'](_0xde6359);_0x4a6c16['model']['change'](_0x276fa5=>{const _0xa006f6=_0x4a6c16['model']['document']['selection'],_0xdfaea9=Array['from'](_0xa006f6['getRanges']())['map'](_0x27e954=>rt['fromRange'](_0x27e954));_0x276fa5['setSelection'](_0x3ca8ac),_0x4a6c16['commands']['get'](_0x1c9e8d['commandName'])['refresh'](),_0x1c9e8d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4a6c16['execute'](_0x1c9e8d['commandName'],..._0x1c9e8d['commandParams']),_0x276fa5['setSelection'](_0xdfaea9);for(const _0x5e4139 of _0xdfaea9)_0x5e4139['detach']();});}),_0x4e74c3['descriptionFactory']['registerElementLabel'](function(_0x472f15){const _0x574130=!_0x4a6c16['model']['schema']['isObject'](_0x472f15),_0x1bfd5c=_0x472f15['previousSibling'],_0x10b73d=_0x472f15['nextSibling'],_0x1f60c7=_0x472f15['getAttribute']('listItemId'),_0x2b95d1=!_0x1bfd5c||_0x1bfd5c['getAttribute']('listItemId')!==_0x1f60c7,_0x4084a9=!_0x10b73d||_0x10b73d['getAttribute']('listItemId')!==_0x1f60c7;return _0x574130&&Boolean(_0x1f60c7)&&_0x2b95d1&&_0x4084a9;},_0x425816=>Mt(_0x15b782,'ELEMENT_LIST_ITEM',_0x425816));}_registerLegacyDescription(){const _0x1f546a=this['editor'],_0x14bb3f=_0x1f546a['locale'];function _0x3aac99(_0x4da161){const _0x540d2f=_0x1f546a['commands']['get']('bulletedList')['value'],_0x36ecbb=_0x1f546a['commands']['get']('numberedList')['value'];return'numberedList'===_0x4da161?_0x540d2f:_0x36ecbb;}_0x1f546a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4fa1d7){if('formatBlock'!=_0x4fa1d7['type'])return;const {data:_0x62602b}=_0x4fa1d7;if(!_0x62602b)return;let _0x53fa7e,_0x528754,_0x2f6512,_0x58a2da;switch(_0x62602b['commandName']){case'bulletedList':_0x2f6512=_0x62602b['commandParams'][0x0]['forceValue'],_0x58a2da=_0x3aac99(_0x62602b['commandName']),_0x53fa7e=_0x2f6512?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x58a2da&&_0x1f546a['config']['get']('list.multiBlock')||(_0x53fa7e='*Change\x20to:*\x20%0'),_0x528754={'type':'format','content':Mt(_0x14bb3f,_0x53fa7e,Mt(_0x14bb3f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2f6512=_0x62602b['commandParams'][0x0]['forceValue'],_0x58a2da=_0x3aac99(_0x62602b['commandName']),_0x53fa7e=_0x2f6512?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x58a2da&&_0x1f546a['config']['get']('list.multiBlock')||(_0x53fa7e='*Change\x20to:*\x20%0'),_0x528754={'type':'format','content':Mt(_0x14bb3f,_0x53fa7e,Mt(_0x14bb3f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x53fa7e='*Indent:*\x20%0',_0x528754={'type':'format','content':Mt(_0x14bb3f,_0x53fa7e,Mt(_0x14bb3f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x53fa7e=function(_0x25c636){const _0x54951f=_0x25c636['getFirstRange']();let _0x5e01d1=_0x54951f['start']['nodeAfter'];for(;_0x5e01d1&&_0x54951f['containsItem'](_0x5e01d1);){if(_0x5e01d1['getAttribute']('listIndent')>0x0)return!0x1;_0x5e01d1=_0x5e01d1['nextSibling'];}return!0x0;}(_0x4fa1d7)?Mt(_0x14bb3f,'*Format:*\x20remove\x20from\x20%0',Mt(_0x14bb3f,function(_0x53d7b4){return'ELEMENT_'+_0x53d7b4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4fa1d7))):Mt(_0x14bb3f,'*Outdent:*\x20%0',Mt(_0x14bb3f,'ELEMENT_LIST_ITEM')),_0x528754={'type':'format','content':_0x53fa7e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x62602b['multipleBlocks']&&(_0x53fa7e='*Merge:*\x20%0',_0x528754={'type':'deletion','content':Mt(_0x14bb3f,_0x53fa7e,Mt(_0x14bb3f,'ELEMENT_LIST_ITEM'))});}return _0x528754;});}};function qt(_0x4b0d90){let _0x3f171a=_0x4b0d90['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3f171a;){const _0x23c2ee=_0x3f171a['getAttribute']('listItemId');if(!_0x23c2ee)return!0x1;if(_0x23c2ee==_0x4b0d90['data']['newValue'])return'newValue';if(_0x23c2ee==_0x4b0d90['data']['oldValue'])return'oldValue';_0x3f171a=_0x3f171a['previousSibling'];}return!0x1;}var Yt=class extends _0x253c9e{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x26992b=this['editor']['config']['get']('list.properties'),_0x4fa5e4=this['editor']['plugins']['get']('TrackChangesEditing');_0x26992b['styles']&&_0x4fa5e4['enableDefaultAttributesIntegration']('listStyle'),_0x26992b['reversed']&&_0x4fa5e4['enableDefaultAttributesIntegration']('listReversed'),_0x26992b['startIndex']&&_0x4fa5e4['enableDefaultAttributesIntegration']('listStart');const _0x4e9855={'type':'format','content':''};_0x4fa5e4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3b5ad9=this['editor']['locale'];_0x4fa5e4['descriptionFactory']['registerAttributeLabel']('listReversed',Mt(_0x3b5ad9,'FORMAT_LIST_REVERSED')),_0x4fa5e4['descriptionFactory']['registerDescriptionCallback'](_0x194ecc=>{const {data:_0x20267f}=_0x194ecc;if(_0x20267f&&'listReversed'==_0x20267f['key'])return null==_0x20267f['newValue']||0x0==_0x20267f['newValue']&&null==_0x20267f['oldValue']?_0x4e9855:void 0x0;}),_0x4fa5e4['descriptionFactory']['registerAttributeLabel']('listStart',Mt(_0x3b5ad9,'FORMAT_LIST_START')),_0x4fa5e4['descriptionFactory']['registerDescriptionCallback'](_0x472cd0=>{const {data:_0x14abdc}=_0x472cd0;if(_0x14abdc&&'listStart'==_0x14abdc['key'])return null==_0x14abdc['newValue']||0x1==_0x14abdc['newValue']&&null==_0x14abdc['oldValue']?_0x4e9855:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x19b6c2=>{if(_0x19b6c2['batch']['isUndo'])return!0x1;let _0x28fc8b=!0x1;const _0x4e4922=_0x4fa5e4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x51f6a9=>{const _0x415ae3=_0x4fa5e4['_getAttributeKey'](_0x51f6a9);return'listStart'==_0x415ae3||'listReversed'==_0x415ae3;});for(const _0x52adde of _0x4e4922){const _0x20b32a=_0x52adde['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x20b32a&&'customNumbered'!=_0x20b32a&&(_0x4fa5e4['_findSuggestions'](_0x52adde['getFirstRange'](),'attribute')['find'](_0x13937a=>'listType'==_0x4fa5e4['_getAttributeKey'](_0x13937a['suggestion']))||(_0x19b6c2['removeMarker'](_0x52adde['getFirstMarker']()),_0x28fc8b=!0x0));}return _0x28fc8b;}),this['_registerLegacyDescription']();}handleDescriptions(_0x2f25ad){const _0x55847c=this['editor']['locale'],{data:_0x273e31}=_0x2f25ad,_0xdc9b28={'type':'format','content':''};if(!_0x273e31||'listStyle'!=_0x273e31['key'])return;if(!_0x273e31['oldValue'])return'default'==_0x273e31['newValue']?_0xdc9b28:{'type':'format','content':''+Mt(_0x55847c,'*Set\x20format:*\x20%0',Mt(_0x55847c,this['_getTranslationKeyForListStyle'](_0x273e31['newValue'])))};if(!_0x273e31['newValue']){if('default'==_0x273e31['oldValue'])return _0xdc9b28;let _0x2cd821=_0x2f25ad['head'];for(;_0x2cd821;){if(_0x2cd821['data']&&'listType'==_0x2cd821['data']['key']&&_0x2cd821['data']['newValue'])return _0xdc9b28;_0x2cd821=_0x2cd821['next'];}return{'type':'format','content':''+Mt(_0x55847c,'*Remove\x20format:*\x20%0',Mt(_0x55847c,this['_getTranslationKeyForListStyle'](_0x273e31['oldValue'])))};}if('default'!=_0x273e31['newValue'])return{'type':'format','content':''+Mt(_0x55847c,'*Set\x20format:*\x20%0',Mt(_0x55847c,this['_getTranslationKeyForListStyle'](_0x273e31['newValue'])))};let _0x2374d8=_0x2f25ad['head'];for(;_0x2374d8;){if(_0x2374d8['data']&&'listType'==_0x2374d8['data']['key']&&_0x2374d8['data']['newValue']&&_0x2374d8['data']['oldValue'])return _0xdc9b28;_0x2374d8=_0x2374d8['next'];}return{'type':'format','content':Mt(_0x55847c,'*Set\x20format:*\x20%0',Mt(_0x55847c,'ELEMENT_'+_0x2f25ad['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0xceea2c=this['editor'],_0x2528d4=_0xceea2c['locale'];_0xceea2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x428dc6=>{if('formatBlock'!=_0x428dc6['type'])return;const {data:_0x29e718}=_0x428dc6;if(!_0x29e718)return;let _0x2a58ed,_0x4964d2;switch(_0x29e718['commandName']){case'listStyle':_0x2a58ed='*Change\x20to:*\x20%0',_0x4964d2={'type':'format','content':Mt(_0x2528d4,_0x2a58ed,Mt(_0x2528d4,this['_getTranslationKeyForListStyle'](_0x29e718['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2a58ed=_0x29e718['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4964d2={'type':'format','content':Mt(_0x2528d4,_0x2a58ed)};break;case'listStart':_0x2a58ed='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4964d2={'type':'format','content':Mt(_0x2528d4,_0x2a58ed,_0x29e718['commandParams'][0x0]['startIndex'])};}return _0x4964d2;});}_getTranslationKeyForListStyle(_0x5ecc58){return'ELEMENT_'+(_0x1ebc63=_0x5ecc58,Qt['includes'](_0x1ebc63)?'bulleted':Zt['includes'](_0x1ebc63)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x5ecc58['toUpperCase']()['replace'](/-/g,'_');var _0x1ebc63;}};const Qt=['disc','circle','square'],Zt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Jt=class extends _0x253c9e{afterInit(){const _0x530721=this['editor'];_0x530721['commands']['get']('emoji')&&_0x530721['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},te=class extends _0x253c9e{static get requires(){return[Et];}init(){const _0x4f1b97=this['editor'],_0x4c5480=_0x4f1b97['plugins']['get']('TrackChangesEditing'),_0x3db335=_0x4f1b97['commands']['get']('enter');_0x4c5480['enableCommand']('enter',()=>{_0x4f1b97['model']['change'](_0x11e732=>{const _0x46906b=_0x4f1b97['model']['document']['selection'],_0x223e80=_0x46906b['getFirstPosition'](),_0x2f945f=rt['fromRange'](_0x46906b['getFirstRange']());if(_0x3db335['enterBlock'](_0x11e732)){const _0x45ff3d=_0x4f1b97['model']['createPositionAt'](_0x223e80['parent']['nextSibling'],0x0),_0x1a257b=_0x11e732['createRange'](_0x223e80,_0x45ff3d);_0x4c5480['markInsertion'](_0x1a257b);}else _0x11e732['setSelection'](_0x11e732['createRange'](_0x2f945f['end']));_0x2f945f['detach'](),_0x3db335['fire']('afterExecute',{'writer':_0x11e732});});});}},ee=class extends _0x253c9e{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1e8385=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e8385['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1e8385['enableCommand']('findNext'),_0x1e8385['enableCommand']('findPrevious'),_0x1e8385['enableCommand']('replace'),_0x1e8385['enableCommand']('replaceAll');}['handleFindCommand'](_0x509878,_0x1f80eb,_0x4359aa={}){const _0x167753=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x509878(_0x4e03c0=>{let _0x23dbcf=('string'==typeof _0x1f80eb?_0x167753['findByTextCallback'](_0x1f80eb,_0x4359aa):_0x1f80eb)(_0x4e03c0);Array['isArray'](_0x23dbcf)&&(_0x23dbcf={'results':_0x23dbcf,'searchText':'string'==typeof _0x1f80eb?_0x1f80eb:''});const _0x41ae91=_0x23dbcf['results']['filter'](_0x372455=>!0x1===this['_isInDeletionRange'](_0x372455,_0x4e03c0['item']));return{..._0x23dbcf,'results':_0x41ae91};},_0x4359aa);}_isInDeletionRange(_0x8f137f,_0x20bc49){const _0x25358e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x20bc49,_0x8f137f['start']),this['editor']['model']['createPositionAt'](_0x20bc49,_0x8f137f['end']));for(const _0x4e37d8 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x25358e['getIntersection'](_0x4e37d8['getRange']()))return!0x0;return!0x1;}};const ne=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ie=class extends _0x253c9e{afterInit(){const _0x52200f=this['editor']['locale'],_0x2eea36=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5753b7,commandName:_0x42f968}of ne)this['editor']['plugins']['has'](_0x5753b7)&&_0x2eea36['enableDefaultAttributesIntegration'](_0x42f968);_0x2eea36['descriptionFactory']['registerAttributeLabel']('fontSize',Mt(_0x52200f,'FORMAT_FONT_SIZE')),_0x2eea36['descriptionFactory']['registerAttributeLabel']('fontFamily',Mt(_0x52200f,'FORMAT_FONT_FAMILY')),_0x2eea36['descriptionFactory']['registerAttributeLabel']('fontColor',Mt(_0x52200f,'FORMAT_FONT_COLOR')),_0x2eea36['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Mt(_0x52200f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x33dcc0=this['editor'],_0x364438=_0x33dcc0['locale'];_0x33dcc0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x213f27=>{const _0x3be6ac=_0x364438['t'];if('formatInline'!=_0x213f27['type'])return;const {data:_0x2f9fcf}=_0x213f27;if(null!=_0x2f9fcf){if('fontSize'==_0x2f9fcf['commandName']){const _0x2d7731=_0x2f9fcf['commandParams'][0x0]['value'];if(_0x2d7731){const _0xaa3d7d=_0x3be6ac(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5d627f=>_0x5d627f['model']==_0x2d7731)['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x364438,'*Set\x20font\x20size:*\x20%0',_0xaa3d7d)};}return{'type':'format','content':Mt(_0x364438,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2f9fcf['commandName']){const _0x2b2460=_0x2f9fcf['commandParams'][0x0]['value'];return _0x2b2460?{'type':'format','content':Mt(_0x364438,'*Set\x20font\x20family:*\x20%0',_0x2b2460)}:{'type':'format','content':Mt(_0x364438,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2f9fcf['commandName']){const _0x2a9dbe=_0x2f9fcf['commandParams'][0x0]['value'];if(_0x2a9dbe){const _0x25ef3d=_0x4d4864(this['editor']['config']['get']('fontColor.colors'))['find'](_0x907dde=>_0x907dde['model']==_0x2a9dbe);let _0x289086=_0x2a9dbe,_0x46f5e6='';return _0x25ef3d&&(_0x289086=_0x25ef3d['label'],_0x46f5e6=_0x3be6ac(_0x289086)['toLowerCase']()),{'type':'format','content':Mt(_0x364438,'*Set\x20font\x20color:*\x20%0',_0x46f5e6)['trim'](),'color':{'value':_0x2a9dbe,'title':_0x46f5e6||_0x289086}};}return{'type':'format','content':Mt(_0x364438,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2f9fcf['commandName']){const _0x2d7260=_0x2f9fcf['commandParams'][0x0]['value'];if(_0x2d7260){const _0x53bd95=_0x4d4864(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x143234=>_0x143234['model']==_0x2d7260);let _0x54b5d7=_0x2d7260,_0x1f2886='';return _0x53bd95&&(_0x54b5d7=_0x53bd95['label'],_0x1f2886=_0x3be6ac(_0x54b5d7)['toLowerCase']()),{'type':'format','content':Mt(_0x364438,'*Set\x20font\x20background\x20color:*\x20%0',_0x1f2886)['trim'](),'color':{'value':_0x2d7260,'title':_0x1f2886||_0x54b5d7}};}return{'type':'format','content':Mt(_0x364438,'*Reset\x20font\x20background\x20color*')};}}});}},se=class extends _0x253c9e{afterInit(){const {plugins:_0x410e4b}=this['editor'];_0x410e4b['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x410e4b['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x43c56a,plugins:_0x16705c,commands:_0x43b268}=this['editor'],_0x45603e=_0x16705c['get']('TrackChangesEditing');_0x43b268['get']('footnotesStyle')&&_0x45603e['enableDefaultAttributesIntegration']('footnotesStyle'),_0x43b268['get']('footnotesStart')&&_0x45603e['enableDefaultAttributesIntegration']('footnotesStart'),_0x45603e['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Mt(_0x43c56a,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x45603e['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Mt(_0x43c56a,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x563231=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x4d3951,commands:_0x3a68fc}=this['editor'];_0x3a68fc['get']('insertFootnote')&&_0x563231['enableCommand']('insertFootnote'),_0x563231['descriptionFactory']['registerElementLabel']('footnoteRef',_0x272034=>Mt(_0x4d3951,'ELEMENT_FOOTNOTE_REF',_0x272034)),_0x563231['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x386de3=>Mt(_0x4d3951,'ELEMENT_FOOTNOTE_DEFINITION',_0x386de3)),_0x563231['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0xf6cf65=>Mt(_0x4d3951,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0xf6cf65));}},re=class extends _0x253c9e{afterInit(){const _0x37df27=this['editor'],_0x6b7cea=_0x37df27['plugins']['get']('TrackChangesEditing'),_0x20f242=_0x37df27['commands']['get']('copyFormat'),_0x6fe56=_0x37df27['commands']['get']('pasteFormat');_0x20f242&&_0x6fe56&&(_0x6b7cea['enableDefaultAttributesIntegration']('pasteFormat'),_0x6b7cea['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x5680e9=this['editor'],_0x32c934=_0x5680e9['locale'];_0x5680e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40918e=>{if('formatBlock'!=_0x40918e['type']&&'formatInline'!=_0x40918e['type'])return;const {data:_0x4e0e92}=_0x40918e;if(_0x4e0e92&&'pasteFormat'===_0x4e0e92['commandName']){const _0x3501f5=[],_0x540f2b=_0x4e0e92['commandParams'][0x0];for(const [_0x44fccb,_0x4e4135]of Object['entries'](_0x540f2b))_0x3501f5['push'](oe(_0x5680e9,_0x44fccb,_0x4e4135));return _0x3501f5['length']?{'type':'format','content':Mt(_0x32c934,'*Set\x20format\x20to:*\x20%0',_0x3501f5['join'](',\x20'))}:{'type':'format','content':Mt(_0x32c934,'*Remove\x20all\x20formatting*')};}});}};function oe(_0x2ba1bc,_0x2b3d46,_0x5fb1e6){const _0x216562=_0x2ba1bc['locale']['t'],_0x2a2772=_0x2b3d46['split'](/(?=[A-Z])/)['join']('\x20'),_0x15da0e=_0x216562(_0x2a2772['charAt'](0x0)['toUpperCase']()+_0x2a2772['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5fb1e6)return _0x15da0e;if('fontColor'===_0x2b3d46||'fontBackgroundColor'===_0x2b3d46){const _0x3e2fe2=_0x4d4864(_0x2ba1bc['config']['get']('fontColor.colors'))['find'](_0x3e06f1=>_0x3e06f1['model']==_0x5fb1e6);return _0x15da0e+'\x20('+(_0x3e2fe2?_0x216562(_0x3e2fe2['label'])['toLowerCase']():_0x5fb1e6)+')';}if('fontSize'===_0x2b3d46&&isNaN(parseFloat(_0x5fb1e6))){const _0x3623e6=_0x2ba1bc['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2ba1bc['config']['get']('fontSize.options'))['find'](_0x499289=>_0x499289['model']==_0x5fb1e6);return _0x15da0e+'\x20('+(_0x3623e6?_0x216562(_0x3623e6['title'])['toLowerCase']():_0x5fb1e6)+')';}return _0x15da0e+'\x20('+_0x5fb1e6+')';}var ae=class extends _0x253c9e{afterInit(){const _0xb02a05=this['editor'];if(!_0xb02a05['plugins']['has']('GeneralHtmlSupport')||!_0xb02a05['plugins']['has']('DataSchema'))return;const _0x19d93f=_0xb02a05['plugins']['get']('TrackChangesEditing'),_0x55c9f1=_0xb02a05['plugins']['get']('GeneralHtmlSupport'),_0x3f0752=_0xb02a05['plugins']['get']('DataSchema'),_0x111db8=_0xb02a05['locale'],_0x578c65=new Set(['htmlContent']);for(const _0x5ee097 of _0x3f0752['getDefinitionsForView'](/.*/,!0x1)){const _0x548977=_0x5ee097['view'],_0x4e647f=_0x55c9f1['getGhsAttributeNameForElement'](_0x548977);_0x578c65['add'](_0x4e647f),!_0x5ee097['isInline']||_0x5ee097['isObject']||'appliesToBlock'in _0x5ee097&&_0x5ee097['appliesToBlock']||_0x19d93f['descriptionFactory']['registerAttributeLabel'](_0x4e647f,_0x548977),_0x5ee097['model']['startsWith']('html')&&_0x19d93f['descriptionFactory']['registerElementLabel'](_0x5ee097['model'],_0x2a98d1=>Mt(_0x111db8,'ELEMENT_HTML_TAG',[_0x2a98d1,_0x548977]));}_0x19d93f['descriptionFactory']['registerAttributeLabel']('htmlContent',Mt(_0x111db8,'FORMAT_RAW_HTML_CONTENT')),_0x19d93f['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Mt(_0x111db8,'FORMAT_HTML_LIST_ITEM')),_0x19d93f['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Mt(_0x111db8,'FORMAT_HTML_BULLETED_LIST')),_0x19d93f['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Mt(_0x111db8,'FORMAT_HTML_NUMBERED_LIST')),_0x19d93f['descriptionFactory']['registerDescriptionCallback'](_0x119c12=>{if('attribute'!==_0x119c12['type'])return;const _0x25ce6b=_0x119c12['data'];if(!_0x25ce6b||!_0x578c65['has'](_0x25ce6b['key']))return;if('htmlContent'===_0x25ce6b['key'])return{'type':'format','content':Mt(_0x111db8,'*Change\x20%0\x20content*',Mt(_0x111db8,'ELEMENT_RAW_HTML'))};const {setItems:_0xe1b8a1,removeItems:_0x41765c}=function(_0x10a88f,_0x5b7180,_0x27879f){const _0x296974=[],_0x2614ed=[],_0x2bb8c6=_0x10a88f['styles']??{},_0x29a709=_0x5b7180['styles']??{};for(const _0x16319c of new Set([...Object['keys'](_0x2bb8c6),...Object['keys'](_0x29a709)]))_0x2bb8c6[_0x16319c]!==_0x29a709[_0x16319c]&&(void 0x0===_0x29a709[_0x16319c]?_0x2614ed['push'](_0x16319c):_0x296974['push'](_0x16319c+'\x20('+_0x29a709[_0x16319c]+')'));const _0x10abdd=Mt(_0x27879f,'FORMAT_HTML_CLASS'),_0x7ec1c2=new Set(_0x10a88f['classes']??[]),_0x53f10d=new Set(_0x5b7180['classes']??[]),_0x52ffbb=[..._0x53f10d]['some'](_0x5d52ba=>!_0x7ec1c2['has'](_0x5d52ba)),_0x1906c2=[..._0x7ec1c2]['some'](_0x252ae1=>!_0x53f10d['has'](_0x252ae1));_0x52ffbb&&_0x296974['push'](_0x10abdd),_0x1906c2&&_0x2614ed['push'](_0x10abdd);const _0x29a6a4=Mt(_0x27879f,'FORMAT_HTML_ATTRIBUTE'),_0x56e7f4=_0x10a88f['attributes']??{},_0x4ae4d1=_0x5b7180['attributes']??{};let _0x267e5d=!0x1,_0x101439=!0x1;for(const _0x2e3ccb of new Set([...Object['keys'](_0x56e7f4),...Object['keys'](_0x4ae4d1)]))_0x56e7f4[_0x2e3ccb]!==_0x4ae4d1[_0x2e3ccb]&&(void 0x0===_0x4ae4d1[_0x2e3ccb]?_0x101439=!0x0:_0x267e5d=!0x0);return _0x267e5d&&_0x296974['push'](_0x29a6a4),_0x101439&&_0x2614ed['push'](_0x29a6a4),{'setItems':_0x296974,'removeItems':_0x2614ed};}(_0x25ce6b['oldValue']??{},_0x25ce6b['newValue']??{},_0x111db8);if(!_0xe1b8a1['length']&&!_0x41765c['length'])return;const _0x8aad17=[];return _0xe1b8a1['length']&&_0x8aad17['push'](Mt(_0x111db8,'*Set\x20format:*\x20%0',_0xe1b8a1['join'](',\x20'))),_0x41765c['length']&&_0x8aad17['push'](Mt(_0x111db8,'*Remove\x20format:*\x20%0',_0x41765c['join'](',\x20'))),{'type':'format','content':_0x8aad17['join']('\x0a')};});}},ce=class extends _0x253c9e{_headingOptions;afterInit(){const _0x20135c=this['editor'];if(!_0x20135c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x20135c['config']['get']('heading.options');const _0x53dc8e=_0x20135c['locale'],_0x539e97=_0x20135c['plugins']['get']('TrackChangesEditing');_0x539e97['enableDefaultAttributesIntegration']('heading');for(const _0x47e088 of this['_headingOptions'])'paragraph'!=_0x47e088['model']&&_0x539e97['descriptionFactory']['registerElementLabel'](_0x47e088['model'],_0x508787=>{const _0x204899=this['_getHeadingLevel'](_0x47e088['model']);return null!==_0x204899?_0x8fc09d(_0x508787,_0x204899):_0x326362(_0x508787,_0x47e088['title']);});function _0x8fc09d(_0x1c1b65,_0xce0a20){return Mt(_0x53dc8e,'ELEMENT_HEADING',[_0x1c1b65,_0xce0a20]);}function _0x326362(_0x8a5b7,_0x346c30){return Mt(_0x53dc8e,'ELEMENT_HEADING_CUSTOM',[_0x8a5b7,_0x346c30]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x9ac077=this['editor'],_0x1f43e7=_0x9ac077['locale'];function _0x6f445c(_0x4441a2,_0x238bb4){return Mt(_0x1f43e7,'ELEMENT_HEADING_CUSTOM',[_0x4441a2,_0x238bb4]);}_0x9ac077['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b29cc=>{if('formatBlock'!=_0x5b29cc['type'])return;const {data:_0x5cd9e0}=_0x5b29cc;if(_0x5cd9e0&&'heading'==_0x5cd9e0['commandName']){const _0x3c4bff=_0x5cd9e0['commandParams'][0x0]['value'],_0x39eb1e=this['_getHeadingLevel'](_0x3c4bff);if(null!==_0x39eb1e)return{'type':'format','content':Mt(_0x1f43e7,'*Change\x20to:*\x20%0',(_0x1779dc=0x1,_0x1a2fec=_0x39eb1e,Mt(_0x1f43e7,'ELEMENT_HEADING',[_0x1779dc,_0x1a2fec])))};const _0x226d43=this['_headingOptions']['find'](_0xe03f66=>_0xe03f66['model']===_0x3c4bff)['title'];return{'type':'format','content':Mt(_0x1f43e7,'*Change\x20to:*\x20%0',_0x6f445c(0x1,_0x226d43))};}var _0x1779dc,_0x1a2fec;});}_getHeadingLevel(_0x5ce9b4){const _0x34236f=_0x5ce9b4['match'](/^heading(\d+)/);if(_0x34236f)return _0x34236f[0x1];const _0x3bf6dd=this['_headingOptions']?.['find'](_0x3413b3=>_0x3413b3['model']==_0x5ce9b4);if(_0x3bf6dd&&_0x3bf6dd['view']){const _0x3f4767=_0x3bf6dd['view'],_0x41444b=(_0x3f4767['name']??_0x3f4767)['match'](/^h(\d+)/);if(_0x41444b)return _0x41444b[0x1];}return null;}},le=class extends _0x253c9e{afterInit(){const _0x52d321=this['editor'];if(!_0x52d321['plugins']['has']('HighlightEditing'))return;const _0x3a93b3=_0x52d321['plugins']['get']('TrackChangesEditing'),_0x1f9a07=_0x52d321['locale'];_0x3a93b3['enableDefaultAttributesIntegration']('highlight'),_0x3a93b3['descriptionFactory']['registerAttributeLabel']('highlight',Mt(_0x1f9a07,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xd4027=this['editor'],_0x58d7ec=_0xd4027['locale'];_0xd4027['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21fe6d=>{if('formatInline'!=_0x21fe6d['type'])return;const {data:_0x50d523}=_0x21fe6d;if(_0x50d523&&'highlight'==_0x50d523['commandName']){const _0x5496be=_0x58d7ec['t'],_0x446f68=_0x50d523['commandParams'][0x0]['value'];if(_0x446f68){const _0x533e12=_0xd4027['config']['get']('highlight.options')['find'](_0x489b6c=>_0x489b6c['model']==_0x446f68),_0x51b077=_0x5496be(_0x533e12['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x58d7ec,'*Set\x20highlight:*\x20%0',_0x51b077),'color':{'value':_0x533e12['color'],'title':_0x533e12['title']}};}return{'type':'format','content':Mt(_0x58d7ec,'*Remove\x20highlight*',Mt(_0x58d7ec,'FORMAT_HIGHLIGHT'))};}});}},ue=class extends _0x253c9e{afterInit(){const _0x7c1d9a=this['editor'];if(!_0x7c1d9a['plugins']['has']('HorizontalLineEditing'))return;_0x7c1d9a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x75cdc0=_0x7c1d9a['plugins']['get']('TrackChangesEditing'),_0x5eee6c=_0x7c1d9a['locale'];_0x75cdc0['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5933b7=>Mt(_0x5eee6c,'ELEMENT_HORIZONTAL_LINE',_0x5933b7));}},de=class extends _0x253c9e{afterInit(){const _0xa04d9f=this['editor'];if(!_0xa04d9f['plugins']['has']('HtmlEmbed'))return;const _0xcc840e=_0xa04d9f['plugins']['get']('TrackChangesEditing'),_0x548ab6=_0xa04d9f['locale'];_0xcc840e['descriptionFactory']['registerElementLabel']('rawHtml',_0xa9ddc4=>Mt(_0x548ab6,'ELEMENT_HTML_EMBED',_0xa9ddc4)),_0xcc840e['enableDefaultAttributesIntegration']('htmlEmbed'),_0xcc840e['descriptionFactory']['registerDescriptionCallback'](_0x5c31d0=>{if('attribute'!=_0x5c31d0['type'])return;const {data:_0xf0325f}=_0x5c31d0;if(_0xf0325f&&'value'==_0xf0325f['key']&&_0x5c31d0['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3d2422=Mt(_0x548ab6,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x548ab6,'*Change\x20%0\x20content*',_0x3d2422)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x22baa9=this['editor'],_0x22def2=_0x22baa9['locale'];_0x22baa9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4231d8=>{if('formatBlock'!=_0x4231d8['type'])return;const {data:_0x5e62b2}=_0x4231d8;if(_0x5e62b2&&'htmlEmbed'==_0x5e62b2['commandName']){const _0xd43dee=Mt(_0x22def2,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x22def2,'*Change\x20%0\x20content*',_0xd43dee)};}});}},he=class extends _0x253c9e{afterInit(){const _0x1272de=this['editor'];if(!_0x1272de['plugins']['has']('ImageEditing'))return;const _0x101da7=_0x1272de['plugins']['get']('TrackChangesEditing'),_0x51d48c=_0x1272de['plugins']['get']('ImageUtils'),_0xf1bfcf=_0x1272de['locale'];_0x101da7['enableCommand']('insertImage'),_0x101da7['descriptionFactory']['registerElementLabel']('imageBlock',_0x394aef=>Mt(_0xf1bfcf,'ELEMENT_IMAGE',_0x394aef)),_0x101da7['descriptionFactory']['registerElementLabel']('imageInline',_0x3ae904=>Mt(_0xf1bfcf,'ELEMENT_INLINE_IMAGE',_0x3ae904)),_0x101da7['descriptionFactory']['registerElementLabel']('caption',()=>Mt(_0xf1bfcf,'ELEMENT_CAPTION')),_0x1272de['plugins']['has']('ImageUploadEditing')&&_0x101da7['enableCommand']('uploadImage'),_0x1272de['plugins']['has']('ImageBlockEditing')&&_0x1272de['plugins']['has']('ImageInlineEditing')&&(_0x101da7['enableCommand']('imageTypeInline',(_0x1a14d2,_0x7fc9a2)=>{const _0x154fe2=_0x51d48c['getClosestSelectedImageElement'](_0x1272de['model']['document']['selection']);_0x1272de['model']['change'](()=>{_0x101da7['markBlockFormat'](_0x154fe2,{'commandName':'imageTypeInline','commandParams':[_0x7fc9a2]},[],'convertBlockImageToInline');});}),_0x101da7['enableCommand']('imageTypeBlock',(_0x3fcf74,_0x17671f)=>{_0x1272de['model']['change'](_0x49ae67=>{let _0x50e39c=_0x51d48c['getClosestSelectedImageElement'](_0x1272de['model']['document']['selection']),_0x563a47=_0x49ae67['createRangeOn'](_0x50e39c);const _0x1811d5=st['fromPosition'](_0x563a47['start'],'toPrevious'),_0x42207a=st['fromPosition'](_0x563a47['end'],'toNext');_0x101da7['forceDefaultExecution'](()=>_0x3fcf74(_0x17671f)),_0x50e39c=_0x51d48c['getClosestSelectedImageElement'](_0x1272de['model']['document']['selection']),_0x563a47=_0x49ae67['createRangeOn'](_0x50e39c);const _0x2534d2=_0x49ae67['createRange'](_0x1811d5,_0x42207a);_0x1811d5['detach'](),_0x42207a['detach'](),_0x101da7['markBlockFormat'](_0x50e39c,{'commandName':'imageTypeInline','commandParams':[_0x17671f]},[],'convertInlineImageToBlock'),_0x2534d2['start']['isBefore'](_0x563a47['start'])&&_0x101da7['markInsertion'](_0x49ae67['createRange'](_0x2534d2['start'],_0x563a47['start']),'convertInlineImageToBlock'),_0x563a47['end']['isBefore'](_0x2534d2['end'])&&_0x101da7['markInsertion'](_0x49ae67['createRange'](_0x563a47['end'],_0x2534d2['end']),'convertInlineImageToBlock');});}),_0x101da7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x101da7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x101da7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x101da7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x101da7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x101da7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4081f6])=>{const _0x16df23=_0x101da7['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4fd61c=_0x4081f6['start'],_0x326712=_0x4081f6['end'];const _0x1c3a44=_0x1272de['model']['schema']['getNearestSelectionRange'](_0x4fd61c,'backward'),_0x3aa0d6=_0x1272de['model']['schema']['getNearestSelectionRange'](_0x326712,'forward');_0x1c3a44['isCollapsed']&&(_0x4fd61c=_0x1c3a44['start']),_0x3aa0d6['isCollapsed']&&(_0x326712=_0x3aa0d6['end']),_0x16df23([_0x1272de['model']['createRange'](_0x4fd61c,_0x326712)]);}),_0x101da7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2427c2),_0x101da7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2427c2)),_0x1272de['plugins']['has']('ImageCaptionEditing')&&(_0x101da7['enableCommand']('toggleImageCaption',(_0x38b2ef,_0x2c8597)=>{const _0x5b2cc3=_0x1272de['plugins']['get']('ImageCaptionUtils');let _0x103d98=_0x51d48c['getClosestSelectedImageElement'](_0x1272de['model']['document']['selection']),_0x5ca2b2=_0x5b2cc3['getCaptionFromImageModelElement'](_0x103d98);_0x1272de['model']['change'](()=>{if(_0x5ca2b2)return void _0x101da7['markDeletion'](_0x1272de['model']['createRangeOn'](_0x5ca2b2));const _0x3caaee=_0x51d48c['isBlockImage'](_0x103d98);_0x38b2ef(_0x2c8597),_0x103d98=_0x51d48c['getClosestSelectedImageElement'](_0x1272de['model']['document']['selection']),_0x5ca2b2=_0x5b2cc3['getCaptionFromImageModelElement'](_0x103d98),_0x101da7['markInsertion'](_0x1272de['model']['createRangeOn'](_0x5ca2b2),_0x3caaee?null:'imageCaption');});}),_0x101da7['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2427c2));const _0x1bb9c6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x325e7d(_0x29ac27,_0xe7e2b8){const _0x43d34b=_0x1bb9c6['findIndex'](({type:_0x598e9e,subType:_0x201df7})=>_0x29ac27['type']==_0x598e9e&&_0x29ac27['subType']==_0x201df7),_0x37dac9=_0x1bb9c6['findIndex'](({type:_0xa2774e,subType:_0x48313b})=>_0xe7e2b8['type']==_0xa2774e&&_0xe7e2b8['subType']==_0x48313b);if(_0x43d34b<0x0||_0x37dac9<0x0)return!0x1;const _0x242e5c=_0x29ac27['getFirstRange'](),_0x370736=_0xe7e2b8['getFirstRange']();if((0x0==_0x43d34b||0x1==_0x43d34b)&&0x2==_0x37dac9&&_0x242e5c['isIntersecting'](_0x370736))return!0x0;if(0x2==_0x43d34b&&0x3==_0x37dac9){const _0x3be28e=_0x101da7['_findSuggestions'](_0x242e5c,'insertion')['filter'](({suggestion:_0x40f681,meta:_0x7d6e6c})=>_0x7d6e6c['isOwn']&&'convertInlineImageToBlock'==_0x40f681['subType']);if(_0x3be28e['length']>0x1&&_0x370736['end']['isEqual'](_0x242e5c['start']))return!0x0;if(0x1==_0x3be28e['length']&&(_0x242e5c['start']['isEqual'](_0x370736['end'])||_0x242e5c['end']['isEqual'](_0x370736['start'])))return!0x0;}if(0x3==_0x43d34b&&0x3==_0x37dac9&&_0x242e5c['start']['isBefore'](_0x370736['start'])){const _0x5d34cb=_0x242e5c['end']['nodeAfter'],_0x31e02d=_0x370736['start']['nodeBefore'];return _0x51d48c['isBlockImage'](_0x5d34cb)&&_0x5d34cb===_0x31e02d;}return!0x1;}function _0x2427c2(_0xa36c36,_0x590f9b){return _0x325e7d(_0xa36c36,_0x590f9b)?[_0xa36c36,_0x590f9b]:_0x325e7d(_0x590f9b,_0xa36c36)?[_0x590f9b,_0xa36c36]:null;}_0x1272de['plugins']['has']('ImageResize')&&(_0x101da7['enableDefaultAttributesIntegration']('resizeImage'),_0x101da7['descriptionFactory']['registerAttributeLabel']('resizedWidth',Mt(_0xf1bfcf,'FORMAT_IMAGE_SIZE'))),_0x1272de['plugins']['has']('ImageTextAlternativeEditing')&&_0x101da7['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1272de['plugins']['has']('PictureEditing')&&_0x101da7['descriptionFactory']['registerDescriptionCallback'](_0x4c0b7a=>{if('attribute'!=_0x4c0b7a['type'])return;const {data:_0x49a1b7}=_0x4c0b7a;return _0x49a1b7&&'sources'==_0x49a1b7['key']?{'type':'format','content':''}:void 0x0;}),_0x1272de['plugins']['has']('ImageSizeAttributes')&&_0x101da7['descriptionFactory']['registerDescriptionCallback'](_0x25e9d0=>{if('attribute'!=_0x25e9d0['type'])return;const {data:_0x23d278}=_0x25e9d0;return!_0x23d278||'width'!=_0x23d278['key']&&'height'!=_0x23d278['key']?void 0x0:{'type':'format','content':''};}),_0x101da7['descriptionFactory']['registerDescriptionCallback'](_0xe5f04f=>{if(_0x1bb9c6['find'](({type:_0x20b622,subType:_0x2e2c58})=>_0xe5f04f['type']==_0x20b622&&_0xe5f04f['subType']==_0x2e2c58))return _0xe5f04f['previous']?{}:void 0x0;}),_0x101da7['descriptionFactory']['registerDescriptionCallback'](_0x5e36af=>{if('insertion'==_0x5e36af['type']||'deletion'==_0x5e36af['type']){const _0x5d77a2=_0x5e36af['getContainedElement']();if(_0x5d77a2&&_0x5d77a2['is']('element','caption'))return{'type':'insertion'==_0x5e36af['type']?'addObject':'removeObject','element':_0x5d77a2,'quantity':0x1};}}),_0x101da7['descriptionFactory']['registerDescriptionCallback'](_0x42b195=>'formatBlock'==_0x42b195['type']&&'convertInlineImageToBlock'==_0x42b195['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x42b195['type']&&'convertBlockImageToInline'==_0x42b195['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x101da7['descriptionFactory']['registerDescriptionCallback'](_0x3f7791=>{if('attribute'!=_0x3f7791['type'])return;const {data:_0x2925c3}=_0x3f7791;if(!_0x2925c3||'alt'!=_0x2925c3['key'])return;const _0x37751f=_0x2925c3['newValue'];return _0x37751f?{'type':'format','content':Mt(_0xf1bfcf,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x37751f+'\x22')}:{'type':'format','content':Mt(_0xf1bfcf,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x15d03b=this['editor'],_0x531871=_0x15d03b['locale'];_0x15d03b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4568cc=>{if('formatBlock'!=_0x4568cc['type']&&'formatInline'!=_0x4568cc['type'])return;const {data:_0x2cc7c9}=_0x4568cc;if(_0x2cc7c9){if('imageTextAlternative'==_0x2cc7c9['commandName']){const _0x3fab9c=_0x2cc7c9['commandParams'][0x0]['newValue'];return _0x3fab9c?{'type':'format','content':Mt(_0x531871,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3fab9c+'\x22')}:{'type':'format','content':Mt(_0x531871,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2cc7c9['commandName']){const _0xe448c7=_0x2cc7c9['commandParams'][0x0]['width'];return _0xe448c7?{'type':'format','content':Mt(_0x531871,'*Set\x20image\x20width:*\x20%0',_0xe448c7)}:{'type':'format','content':Mt(_0x531871,'*Reset\x20image\x20width*')};}}});}},ge=class extends _0x253c9e{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x491db1=this['editor']['locale'],_0x4f9c0f=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f9c0f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4f9c0f['descriptionFactory']['registerDescriptionCallback'](_0x1d55ec=>{if('attribute'!=_0x1d55ec['type'])return;const {data:_0x518edf}=_0x1d55ec;return _0x518edf&&'src'==_0x518edf['key']?_0x518edf['newValue']&&_0x518edf['oldValue']?{'type':'format','content':Mt(_0x491db1,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x3463b5=this['editor']['plugins']['get']('TrackChangesEditing');_0x3463b5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3463b5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3463b5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3463b5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x148541=this['editor'],_0xe50c71=_0x148541['locale'];_0x148541['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39484b=>{if('formatBlock'!=_0x39484b['type']&&'formatInline'!=_0x39484b['type'])return;const {data:_0x2fa81e}=_0x39484b;return _0x2fa81e&&'replaceImageSource'==_0x2fa81e['commandName']?{'type':'format','content':Mt(_0xe50c71,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},fe=class extends _0x253c9e{afterInit(){const _0x158454=this['editor'];if(!_0x158454['plugins']['has']('ImageStyleEditing'))return;const _0x48e818=_0x158454['plugins']['get']('TrackChangesEditing'),_0x3a65b3=_0x158454['plugins']['get']('ImageUtils'),_0x163ff8={};_0x48e818['enableCommand']('imageStyle',(_0x48f203,_0x2a5439)=>{const _0x53f168=_0x158454['plugins']['get']('Users')['me'],_0x505fcd=_0x158454['commands']['get']('imageStyle');let _0x419465=_0x3a65b3['getClosestSelectedImageElement'](_0x158454['model']['document']['selection']),_0x211b92=_0x158454['model']['createRangeOn'](_0x419465),_0x971060=_0x505fcd['value'];if(_0x971060==_0x2a5439['value'])return;if(_0x2a5439['value']&&_0x3a65b3['isInlineImage'](_0x419465)&&!_0x505fcd['isStyleEnabled'](_0x2a5439['value']))return;const _0x59f214={'commandName':'imageStyle','commandParams':[_0x2a5439],'formatGroupId':_0x29a7da()};_0x158454['model']['change'](()=>{if(_0x48e818['getSuggestions']()['filter'](_0x1a24a9=>_0x1a24a9['isInContent']&&_0x53f168==_0x1a24a9['author']&&('formatBlock'==_0x1a24a9['type']||'formatInline'==_0x1a24a9['type'])&&('imageStylePreApply'==_0x1a24a9['subType']||'imageStylePostApply'==_0x1a24a9['subType'])&&_0x1a24a9['getFirstRange']()['isEqual'](_0x211b92))['forEach'](_0x46f805=>_0x48e818['discardSuggestion'](_0x46f805['head'])),_0x419465=_0x3a65b3['getClosestSelectedImageElement'](_0x158454['model']['document']['selection']),_0x211b92=_0x158454['model']['createRangeOn'](_0x419465),_0x505fcd['refresh'](),_0x158454['commands']['get']('imageTypeInline')['refresh'](),_0x158454['commands']['get']('imageTypeBlock')['refresh'](),_0x971060=_0x505fcd['value'],_0x971060!=_0x2a5439['value'])return _0x3a65b3['isInlineImage'](_0x419465)&&_0x505fcd['shouldConvertImageType'](_0x2a5439['value'],_0x419465)?(_0x48f203({..._0x2a5439,'setImageSizes':!0x1}),_0x419465=_0x3a65b3['getClosestSelectedImageElement'](_0x158454['model']['document']['selection']),void _0x48e818['markBlockFormat'](_0x419465,{..._0x59f214,'commandReversedParams':[{'value':_0x971060||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3a65b3['isBlockImage'](_0x419465)?_0x48e818['markBlockFormat'](_0x419465,_0x59f214,[],'imageStylePostApply'):_0x48e818['markInlineFormat'](_0x211b92,_0x59f214,'imageStylePostApply'));});});for(const _0x5898fb of _0x158454['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x163ff8[_0x5898fb['name']]=_0x5898fb['title']['toLowerCase']();_0x48e818['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x48e818['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x48e818['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x48e818['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x104a3e])=>{_0x3a65b3['setImageNaturalSizeAttributes'](_0x104a3e['getContainedElement']());}),_0x48e818['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x534141,_0x5077c2)=>{_0x48e818['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x534141,{'commandName':_0x5077c2['commandName'],'commandParams':_0x5077c2['commandReversedParams']});}),_0x48e818['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x282dcf,_0x4e1cec){return _0x1d5ba8(_0x282dcf,_0x4e1cec)?[_0x282dcf,_0x4e1cec]:_0x1d5ba8(_0x4e1cec,_0x282dcf)?[_0x4e1cec,_0x282dcf]:null;});const _0x2c8952=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1d5ba8(_0x16905a,_0xefac1){const _0x2c49f2=_0x2c8952['findIndex'](({type:_0x27c456,subType:_0x3f4119})=>_0x16905a['type']==_0x27c456&&_0x16905a['subType']==_0x3f4119),_0x1dd892=_0x2c8952['findIndex'](({type:_0x28cb51,subType:_0x5eb935})=>_0xefac1['type']==_0x28cb51&&_0xefac1['subType']==_0x5eb935);if(_0x2c49f2<0x0||_0x1dd892<0x0)return!0x1;const _0x235f9d=_0x16905a['getFirstRange'](),_0x43fabe=_0xefac1['getFirstRange']();if((0x0==_0x2c49f2||0x1==_0x2c49f2)&&0x2==_0x1dd892&&_0x235f9d['isIntersecting'](_0x43fabe))return!0x0;if(0x2==_0x2c49f2&&0x3==_0x1dd892){const _0x5c5a8c=_0x48e818['_findSuggestions'](_0x235f9d,'insertion')['filter'](({suggestion:_0x172ea3,meta:_0x2eff46})=>_0x2eff46['isOwn']&&'convertInlineImageToBlock'==_0x172ea3['subType']);if(_0x5c5a8c['length']>0x1&&_0x43fabe['end']['isEqual'](_0x235f9d['start']))return!0x0;if(0x1==_0x5c5a8c['length']&&(_0x235f9d['start']['isEqual'](_0x43fabe['end'])||_0x235f9d['end']['isEqual'](_0x43fabe['start'])))return!0x0;}if(0x3==_0x2c49f2&&0x3==_0x1dd892&&_0x235f9d['start']['isBefore'](_0x43fabe['start'])){const _0x22c8ca=_0x235f9d['end']['nodeAfter'],_0x4b6a1a=_0x43fabe['start']['nodeBefore'];return _0x3a65b3['isBlockImage'](_0x22c8ca)&&_0x22c8ca===_0x4b6a1a;}return!0x1;}_0x158454['model']['document']['registerPostFixer'](()=>{let _0x471ec9=!0x1;const _0x57c9b4=Array['from'](_0x158454['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5bab09,data:_0x442a09}of _0x57c9b4){const {group:_0x2e139e,type:_0x41815a,subType:_0x5c1775,id:_0x482c0c}=tt(_0x5bab09);if('suggestion'==_0x2e139e&&_0x48e818['hasSuggestion'](_0x482c0c)){if('formatBlock'==_0x41815a&&('imageStylePreApply'==_0x5c1775||'imageStylePostApply'==_0x5c1775)){const _0x68ec2f=_0x48e818['getSuggestion'](_0x482c0c);if(_0x442a09['newRange']){const _0x408308=_0x68ec2f['getFirstRange']()['getContainedElement']();if(_0x3a65b3['isBlockImage'](_0x408308))continue;_0x48e818['discardSuggestion'](_0x68ec2f),_0x471ec9=!0x0;}}if('insertion'==_0x41815a&&'imageCaption'==_0x5c1775&&!_0x442a09['newRange']){const _0x111722=_0x48e818['getSuggestion'](_0x482c0c);_0x111722['next']&&_0x111722['next']['isInContent']&&(_0x48e818['discardSuggestion'](_0x111722['next']),_0x471ec9=!0x0);}}}return _0x471ec9;}),this['_registerLegacyDescription'](_0x163ff8);}_registerLegacyDescription(_0x18a822){const _0x331869=this['editor'],_0x1138d8=_0x331869['locale'];_0x331869['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cd427=>{if('formatBlock'!=_0x2cd427['type']&&'formatInline'!=_0x2cd427['type'])return;const {data:_0x2c0693}=_0x2cd427;if(!_0x2c0693||'imageStyle'!=_0x2c0693['commandName'])return;const _0x3bf51b=_0x2c0693['commandParams'][0x0]['value'];return _0x2f05c0('side'===_0x3bf51b?Mt(_0x1138d8,'FORMAT_SIDE_IMAGE'):_0x18a822[_0x3bf51b]||_0x3bf51b);function _0x2f05c0(_0x21e425){return{'type':'format','content':Mt(_0x1138d8,'*Format:*\x20%0',_0x21e425)};}});}},me=class extends _0x253c9e{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x170a22){super(_0x170a22),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x503152=this['editor'],_0x8123b3=_0x503152['commands']['get']('importWord'),_0x140cc5=_0x503152['commands']['get']('trackChanges');_0x8123b3&&(_0x8123b3['on']('execute',(_0x5e96e9,[,_0x4a7982])=>{this['_trackChangesValueDuringImport']=_0x140cc5['value'],_0x4a7982['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x8123b3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x8123b3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x140cc5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x503152['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x1083d8,_0x150f3f){const {suggestions:_0x4917cc}=_0x150f3f,_0x461bee=this['editor']['commands']['get']('trackChanges'),_0x3a873c=_0x461bee['value'];this['_trackChangesValueDuringImport']!==_0x3a873c&&(_0x461bee['execute'](),this['_trackChangesExecuted']=!0x0),_0x4917cc&&_0x4917cc['forEach'](({id:_0x76208a,type:_0x54dfda,author:_0x2a910d,created_at:_0xd777a7})=>{const _0x22d0b7={'id':_0x76208a,'type':_0x54dfda,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2a910d,'createdAt':_0xd777a7?new Date(_0xd777a7):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x22d0b7);});}},Ee=class extends _0x253c9e{afterInit(){const _0x34cf9e=this['editor'],_0x49b158=_0x34cf9e['plugins']['get']('TrackChangesEditing');if(_0x34cf9e['plugins']['has']('IndentEditing')&&(_0x49b158['enableCommand']('indent'),_0x49b158['enableCommand']('outdent')),_0x34cf9e['plugins']['has']('IndentBlock')){for(const _0x3fcbee of['indentBlock','outdentBlock'])_0x49b158['enableDefaultAttributesIntegration'](_0x3fcbee);if(_0x34cf9e['plugins']['has']('ListEditing')){for(const _0x4833cd of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x49b158['enableDefaultAttributesIntegration'](_0x4833cd);}}const _0x5a3577=_0x34cf9e['locale'];_0x49b158['descriptionFactory']['registerAttributeLabel']('blockIndent',Mt(_0x5a3577,'FORMAT_INDENT')),_0x49b158['descriptionFactory']['registerAttributeLabel']('blockIndentList',Mt(_0x5a3577,'FORMAT_INDENT')),_0x49b158['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Mt(_0x5a3577,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x28588e=this['editor'],_0x5f4b69=_0x28588e['locale'],_0x3d94af=_0x28588e['plugins']['get']('TrackChangesEditing');_0x3d94af['descriptionFactory']['registerDescriptionCallback'](_0x49690c=>{if('formatBlock'!=_0x49690c['type'])return;const {data:_0x1f1b9d}=_0x49690c;if(!_0x1f1b9d)return;if('indentBlock'!=_0x1f1b9d['commandName']&&'outdentBlock'!=_0x1f1b9d['commandName'])return;const _0x20de7f=_0x49690c['getItems']()[0x0],_0x2dab24=_0x3d94af['descriptionFactory']['getItemLabel'](_0x20de7f);return'indentBlock'==_0x1f1b9d['commandName']?{'type':'format','content':Mt(_0x5f4b69,'*Indent:*\x20%0',_0x2dab24)}:'outdentBlock'==_0x1f1b9d['commandName']?{'type':'format','content':Mt(_0x5f4b69,'*Outdent:*\x20%0',_0x2dab24)}:void 0x0;});}},Te=class extends _0x253c9e{static get requires(){return[mt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},_e=class extends _0x253c9e{afterInit(){const _0x3d979c=this['editor'];if(!_0x3d979c['plugins']['has']('LinkEditing'))return;const _0x18b21e=_0x3d979c['plugins']['get']('TrackChangesEditing'),_0x152f43=_0x3d979c['commands']['get']('link');_0x18b21e['enableDefaultAttributesIntegration']('link'),_0x18b21e['enableDefaultAttributesIntegration']('unlink');for(const _0x4cd322 of _0x152f43['manualDecorators'])_0x18b21e['descriptionFactory']['registerAttributeLabel'](_0x4cd322['id'],'link\x20('+_0x4cd322['label']['toLowerCase']()+')');_0x18b21e['descriptionFactory']['registerDescriptionCallback'](_0x13f900=>{if('attribute'!=_0x13f900['type'])return;const {data:_0x1748fe}=_0x13f900;if(!_0x1748fe||'linkHref'!=_0x1748fe['key'])return;const _0x260779=_0x1748fe['newValue'],_0x56b86b=_0x3d979c['locale'];return{'type':'format','content':null==_0x260779?Mt(_0x56b86b,'*Remove\x20link*'):Mt(_0x56b86b,'*Set\x20link:*\x20%0','\x22'+_0x260779+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3a41fe=this['editor'],_0x165604=_0x3a41fe['locale'];_0x3a41fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22a21e=>{if('formatInline'!=_0x22a21e['type'])return;const {data:_0x5d90ad}=_0x22a21e;if(_0x5d90ad){if('link'==_0x5d90ad['commandName']){const _0x44b9ad=_0x5d90ad['commandParams'][0x0];return{'type':'format','content':Mt(_0x165604,'*Set\x20link:*\x20%0','\x22'+_0x44b9ad+'\x22')};}return'unlink'==_0x5d90ad['commandName']?{'type':'format','content':Mt(_0x165604,'*Remove\x20link*')}:void 0x0;}});}},pe=class extends _0x253c9e{afterInit(){const _0x153906=this['editor'],_0x3835ad=_0x153906['locale'];if(!_0x153906['plugins']['has']('LegacyListEditing'))return;const _0x4fa86e=_0x153906['plugins']['get']('TrackChangesEditing'),_0xc6047e=_0x153906['plugins']['has']('LegacyTodoListEditing');function _0x5f0334(_0x45acf2){return()=>{const _0xd534e2=_0x153906['model']['document']['selection'],_0x27b972=_0x153906['commands']['get'](_0x45acf2);if(_0x27b972['value'])return void _0x153906['execute']('paragraph',{});const _0x10b6b6=_0x45acf2['slice'](0x0,-0x4),_0x4d20ed=function(_0x3009f3,_0x508988,_0x4956df){let _0x1e084b=Array['from'](_0x3009f3)['filter'](_0x47b94e=>function(_0x22873e,_0x2d822b){return _0x2d822b['checkChild'](_0x22873e['parent'],'listItem')&&!_0x2d822b['isObject'](_0x22873e);}(_0x47b94e,_0x4956df));_0x1e084b=_0x1e084b['filter'](_0xc1767a=>!_0xc1767a['is']('element','listItem')||_0xc1767a['getAttribute']('listType')!=_0x508988);const _0x1c97ac=new Set();for(const _0x4ca055 of _0x1e084b)_0x4ca055['is']('element','listItem')?_0x1c97ac['add'](Le(_0x4ca055)):_0x1c97ac['add'](_0x4ca055);return Array['from'](_0x1c97ac);}(_0xd534e2['getSelectedBlocks'](),_0x10b6b6,_0x153906['model']['schema']);_0x153906['model']['change'](()=>{for(const _0x1ccfff of _0x4d20ed)_0x4fa86e['markBlockFormat'](_0x1ccfff,{'commandName':_0x45acf2,'commandParams':[{'forceValue':!_0x27b972['value']}],'formatGroupId':'blockName'},Ie(_0x1ccfff));});};}function _0x248eee(_0x375c1f){return()=>{const _0x465c64=function(_0x41aaa9){let _0x25e4da=Array['from'](_0x41aaa9);const _0x54ab57=_0x25e4da['findIndex'](_0x449f8e=>'listItem'!=_0x449f8e['name']);return _0x54ab57>-0x1&&(_0x25e4da=_0x25e4da['slice'](0x0,_0x54ab57)),_0x25e4da;}(_0x153906['model']['document']['selection']['getSelectedBlocks']()),_0x120182=_0x153906['model']['createRange'](_0x153906['model']['createPositionAt'](_0x465c64[0x0],'before'),_0x153906['model']['createPositionAt'](_0x465c64[_0x465c64['length']-0x1],'end'));_0x153906['model']['change'](()=>{_0x4fa86e['markBlockFormat'](_0x120182,{'commandName':_0x375c1f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x20207a){const _0x2cd345=new Set();for(const _0x102359 of _0x20207a){let _0x513ced=_0x102359['nextSibling'];for(;_0x513ced&&_0x513ced['getAttribute']('listIndent')>_0x102359['getAttribute']('listIndent');)_0x2cd345['add'](_0x513ced),_0x513ced=_0x513ced['nextSibling'];}return Array['from'](_0x2cd345);}(_0x465c64));});};}_0x4fa86e['enableCommand']('numberedList',_0x5f0334('numberedList')),_0x4fa86e['enableCommand']('bulletedList',_0x5f0334('bulletedList')),_0xc6047e&&_0x4fa86e['enableCommand']('todoList',_0x5f0334('todoList')),_0x4fa86e['enableCommand']('indentList',_0x248eee('indentList')),_0x4fa86e['enableCommand']('outdentList',_0x248eee('outdentList')),_0xc6047e&&_0x4fa86e['enableCommand']('checkTodoList',()=>{const _0x1a5d7f=_0x153906['commands']['get']('checkTodoList'),_0x1b556e=Array['from'](_0x1a5d7f['_selectedElements']);_0x1b556e['filter'](_0x2da7f7=>_0x2da7f7['getAttribute']('todoListChecked')!=_0x1a5d7f['value']),_0x153906['model']['change'](()=>{for(const _0x1385ff of _0x1b556e)_0x4fa86e['markBlockFormat'](_0x1385ff,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1a5d7f['value']}]});});}),_0x4fa86e['descriptionFactory']['registerElementLabel']('listItem',_0x15c0ad=>Mt(_0x3835ad,'ELEMENT_LIST_ITEM',_0x15c0ad)),_0x4fa86e['descriptionFactory']['registerDescriptionCallback'](_0x1839cc=>{if('formatBlock'!=_0x1839cc['type']&&'formatInline'!=_0x1839cc['type'])return;const {data:_0x3b7c20}=_0x1839cc;if(_0x3b7c20){if('numberedList'==_0x3b7c20['commandName']||'bulletedList'==_0x3b7c20['commandName']||'todoList'==_0x3b7c20['commandName'])switch(_0x3b7c20['commandName']['replace']('List','')){case'bulleted':return _0x72ca85(Mt(_0x3835ad,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x72ca85(Mt(_0x3835ad,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x72ca85(Mt(_0x3835ad,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3b7c20['commandName'])return{'type':'format','content':Mt(_0x3835ad,'*Indent:*\x20%0',Mt(_0x3835ad,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3b7c20['commandName'])return{'type':'format','content':Mt(_0x3835ad,'*Outdent:*\x20%0',Mt(_0x3835ad,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3b7c20['commandName'])return _0x3b7c20['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x3835ad,'*Check\x20item*')}:{'type':'format','content':Mt(_0x3835ad,'*Uncheck\x20item*')};}function _0x72ca85(_0x179566){return{'type':'format','content':Mt(_0x3835ad,'*Change\x20to:*\x20%0',_0x179566)};}});}};function Le(_0x1edc7c){const _0x4ea47c=_0x1edc7c['getAttribute']('listIndent');if(0x0==_0x4ea47c)return _0x1edc7c;let _0x307f51=_0x1edc7c;for(;_0x1edc7c['previousSibling']&&_0x1edc7c['previousSibling']['is']('element','listItem');){const _0x375725=_0x1edc7c['previousSibling']['getAttribute']('listIndent');if(_0x375725==_0x4ea47c)_0x307f51=_0x1edc7c['previousSibling'];else{if(_0x375725<_0x4ea47c)break;}_0x1edc7c=_0x1edc7c['previousSibling'];}return _0x307f51;}function Ie(_0x223cd0){const _0x2cd0d2=[];if(_0x223cd0['is']('element','listItem')&&_0x223cd0['getAttribute']('listIndent')>0x0){let _0x1a56c9=_0x223cd0['nextSibling'];for(;_0x1a56c9&&'listItem'==_0x1a56c9['name']&&_0x1a56c9['getAttribute']('listIndent')==_0x223cd0['getAttribute']('listIndent');)_0x2cd0d2['push'](_0x1a56c9),_0x1a56c9=_0x1a56c9['nextSibling'];}return _0x2cd0d2;}var Ae=class extends _0x253c9e{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x23f363=this['editor']['config']['get']('list.properties'),_0x29060c=this['editor']['plugins']['get']('TrackChangesEditing');_0x23f363['styles']&&_0x29060c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x23f363['reversed']&&_0x29060c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x23f363['startIndex']&&_0x29060c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x29060c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x350598,_0x500abe={}){const _0xef0546=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33c22c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xef0546['markMultiRangeBlockFormat'](_0x33c22c,{'commandName':'listStyle','commandParams':[{'type':_0x500abe['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x493b74,_0x2d6e4e={}){const _0x11492e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x82151b=this['_getSuggestionBlocks'](_0x173064=>_0x173064['is']('element','listItem')&&'numbered'===_0x173064['getAttribute']('listType'));if(_0x82151b['length']<0x1)return;const _0x224864=_0x82151b['map'](_0x43a7c6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x43a7c6,'before'),this['editor']['model']['createPositionAt'](_0x43a7c6,0x0)));this['editor']['model']['change'](()=>{_0x11492e['markMultiRangeBlockFormat'](_0x224864,{'commandName':'listReversed','commandParams':[{'reversed':_0x2d6e4e['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x35b297,_0x14e6c6={}){const _0x59dff7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57d0d2=this['_getSuggestionBlocks'](_0x3ff389=>_0x3ff389['is']('element','listItem')&&'numbered'===_0x3ff389['getAttribute']('listType'));if(_0x57d0d2['length']<0x1)return;const _0x4edbf4=_0x57d0d2['map'](_0x4fee39=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4fee39,'before'),this['editor']['model']['createPositionAt'](_0x4fee39,0x0)));this['editor']['model']['change'](()=>{_0x59dff7['markMultiRangeBlockFormat'](_0x4edbf4,{'commandName':'listStart','commandParams':[{'startIndex':_0x14e6c6['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x42392f){if('formatBlock'!=_0x42392f['type']&&'formatInline'!=_0x42392f['type'])return;const _0x4b4465=this['editor']['locale'],{data:_0x30cdd0}=_0x42392f;if(!_0x30cdd0)return;let _0xa54072,_0x362932;switch(_0x30cdd0['commandName']){case'listStyle':_0xa54072='*Change\x20to:*\x20%0',_0x362932={'type':'format','content':Mt(_0x4b4465,_0xa54072,Mt(_0x4b4465,this['_getTranslationKeyForListStyle'](_0x30cdd0['commandParams'][0x0]['type'])))};break;case'listReversed':_0xa54072=_0x30cdd0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x362932={'type':'format','content':Mt(_0x4b4465,_0xa54072)};break;case'listStart':_0xa54072='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x362932={'type':'format','content':Mt(_0x4b4465,_0xa54072,_0x30cdd0['commandParams'][0x0]['startIndex'])};}return _0x362932;}_getSuggestionBlocksForListStyle(){const _0x5cbd77=this['editor']['plugins']['get']('LegacyListUtils');let _0x5709e9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5709e9[0x0]?.['is']('element','listItem')&&_0x5709e9['unshift'](..._0x5cbd77['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5709e9[_0x5709e9['length']-0x1]?.['is']('element','listItem')&&_0x5709e9['push'](..._0x5cbd77['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5709e9=[...new Set(_0x5709e9)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5709e9=_0x5709e9['filter'](_0x9568cf=>_0x9568cf['is']('element','listItem'))),_0x5709e9;}_getSuggestionBlocks(_0x185644){const _0xd1bf46=this['editor']['plugins']['get']('LegacyListUtils');let _0x70aca7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x185644)['map'](_0x1d00e6=>{const _0x53820d=this['editor']['model']['createPositionAt'](_0x1d00e6,0x0);return[..._0xd1bf46['getSiblingNodes'](_0x53820d,'backward'),..._0xd1bf46['getSiblingNodes'](_0x53820d,'forward')];})['flat']();return _0x70aca7=[...new Set(_0x70aca7)],_0x70aca7;}_getTranslationKeyForListStyle(_0xe32e88){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xe32e88)||'default')['toUpperCase']()+'_LIST_'+_0xe32e88['toUpperCase']()['replace'](/-/g,'_');}},be=class extends _0x253c9e{afterInit(){const _0x71e5e3=this['editor'];if(!_0x71e5e3['plugins']['has']('MediaEmbedEditing'))return;const _0x2b010=_0x71e5e3['plugins']['get']('TrackChangesEditing'),_0x11130b=_0x71e5e3['locale'];_0x2b010['enableCommand']('mediaEmbed'),_0x2b010['descriptionFactory']['registerElementLabel']('media',_0x37b046=>Mt(_0x11130b,'ELEMENT_MEDIA',_0x37b046)),_0x71e5e3['plugins']['has']('MediaEmbedResizeEditing')&&(_0x2b010['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x2b010['descriptionFactory']['registerDescriptionCallback'](_0x56d0fd=>{if('attribute'!=_0x56d0fd['type'])return;const {data:_0x2ea1ce}=_0x56d0fd;if(!_0x2ea1ce||'resizedWidth'!=_0x2ea1ce['key'])return;const _0x58ec2e=_0x56d0fd['getContainedElement']();if(!_0x58ec2e||!_0x58ec2e['is']('element','media'))return;const _0x251397=Mt(_0x11130b,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Mt(_0x11130b,'*Set\x20format:*\x20%0',_0x251397)};}));}},ke=class extends _0x253c9e{afterInit(){const _0x3912ee=this['editor'];if(!_0x3912ee['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x12528a=_0x3912ee['plugins']['get']('TrackChangesEditing'),_0x44b84b=_0x3912ee['locale'],_0x3fccdc=_0x3912ee['plugins']['get']('MediaEmbedStyleEditing'),_0x5543f3={};for(const _0x560ea0 of _0x3fccdc['normalizedStyles'])_0x5543f3[_0x560ea0['name']]=_0x560ea0['title']['toLowerCase']();const _0x5eb50a=_0x3fccdc['normalizedStyles']['find'](_0x4b4d62=>_0x4b4d62['isDefault'])?.['name'];_0x12528a['enableCommand']('mediaStyle',(_0x5ac25a,_0x19a00c)=>{const _0x486294=_0x3912ee['plugins']['get']('Users')['me'],_0xb706e6=_0x3912ee['commands']['get']('mediaStyle'),_0x2b2a21=function(_0x20c590){const _0x284166=_0x20c590['model']['document']['selection']['getSelectedElement']();return _0x284166&&_0x284166['is']('element','media')?_0x284166:null;}(_0x3912ee);if(!_0x2b2a21)return;const _0x4a3b3d=_0x3912ee['model']['createRangeOn'](_0x2b2a21);let _0x5278c8=_0xb706e6['value'];if(_0x5278c8==_0x19a00c['value'])return;const _0x5767da={'commandName':'mediaStyle','commandParams':[_0x19a00c],'formatGroupId':_0x29a7da()};_0x3912ee['model']['change'](()=>{_0x12528a['getSuggestions']()['filter'](_0x38874a=>_0x38874a['isInContent']&&_0x486294==_0x38874a['author']&&'formatBlock'==_0x38874a['type']&&'mediaStylePostApply'==_0x38874a['subType']&&_0x38874a['getFirstRange']()['isEqual'](_0x4a3b3d))['forEach'](_0xb66e7a=>_0x12528a['discardSuggestion'](_0xb66e7a['head'])),_0xb706e6['refresh'](),_0x5278c8=_0xb706e6['value'],_0x5278c8!=_0x19a00c['value']&&_0x12528a['markBlockFormat'](_0x2b2a21,{..._0x5767da,'commandReversedParams':[{'value':'string'==typeof _0x5278c8?_0x5278c8:null}]},[],'mediaStylePostApply');});}),_0x12528a['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x12528a['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x138ab9,_0xf421d0)=>{_0x12528a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x138ab9,{'commandName':_0xf421d0['commandName'],'commandParams':_0xf421d0['commandReversedParams']});}),_0x12528a['descriptionFactory']['registerDescriptionCallback'](_0x275170=>{if('formatBlock'!=_0x275170['type'])return;const {data:_0x44e261}=_0x275170;if(!_0x44e261||'mediaStyle'!=_0x44e261['commandName'])return;const _0x3a218d=_0x44e261['commandParams'][0x0]['value']||_0x5eb50a;if(!_0x3a218d)return;const _0x141870=_0x5543f3[_0x3a218d]||_0x3a218d;return{'type':'format','content':Mt(_0x44b84b,'*Format:*\x20%0',_0x141870)};});}},Ce=class extends _0x253c9e{afterInit(){const _0x577dd0=this['editor'];_0x577dd0['plugins']['has']('MentionEditing')&&_0x577dd0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},Re=class extends _0x253c9e{afterInit(){const _0x22710e=this['editor'];if(!_0x22710e['plugins']['has']('MergeFieldsEditing'))return;const _0x1c70d6=_0x22710e['plugins']['get']('TrackChangesEditing'),_0x31cf8b=_0x22710e['locale'];_0x1c70d6['enableCommand']('insertMergeField'),_0x1c70d6['enableCommand']('insertMergeFieldBlock'),_0x1c70d6['enableCommand']('insertMergeFieldImage'),_0x1c70d6['descriptionFactory']['registerElementLabel']('mergeField',_0x103506=>Mt(_0x31cf8b,'ELEMENT_MERGE_FIELD',_0x103506)),_0x1c70d6['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x48e580=>Mt(_0x31cf8b,'ELEMENT_MERGE_FIELD',_0x48e580)),_0x1c70d6['descriptionFactory']['registerDescriptionCallback'](_0x44856b=>{if('insertion'!=_0x44856b['type']&&'deletion'!=_0x44856b['type'])return;const _0x5b34b5=_0x44856b['getContainedElement']();if(null==_0x5b34b5)return;const _0x4bd78e=_0x22710e['plugins']['get']('MergeFieldsEditing');let _0x18779d;switch(_0x4bd78e['getMergeFieldType'](_0x5b34b5)){case null:return;case'image':{const _0x122686=_0x4bd78e['unwrapAffixes'](_0x5b34b5['getAttribute']('src'));_0x18779d=_0x4bd78e['getLabel'](_0x122686)||_0x122686;break;}default:{const _0x351050=_0x5b34b5['getAttribute']('id');_0x18779d=_0x4bd78e['getLabel'](_0x351050)||_0x351050;break;}}return'insertion'==_0x44856b['type']?{'type':'insertion','content':Mt(_0x31cf8b,'*Insert:*\x20%0','\x22'+_0x18779d+'\x22\x20'+Mt(_0x31cf8b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Mt(_0x31cf8b,'*Remove:*\x20%0','\x22'+_0x18779d+'\x22\x20'+Mt(_0x31cf8b,'ELEMENT_MERGE_FIELD'))};});}},ye=class extends _0x253c9e{afterInit(){const _0xfbb4ac=this['editor'],_0x34a984=_0xfbb4ac['plugins']['get']('TrackChangesEditing');_0xfbb4ac['plugins']['has']('MultiLevelList')&&(_0x34a984['enableDefaultAttributesIntegration']('multiLevelList'),_0x34a984['descriptionFactory']['registerDescriptionCallback'](_0x193e16=>this['handleDescriptions'](_0x193e16)));}handleDescriptions(_0x5a846f){const _0x4d2b03=this['editor']['locale'],{data:_0x2f3f6a}=_0x5a846f,_0x4cac00={'type':'format','content':''};if(_0x2f3f6a&&'listMarkerStyle'==_0x2f3f6a['key']){if(!_0x2f3f6a['oldValue'])return{'type':'format','content':Mt(_0x4d2b03,'*Set\x20format:*\x20%0',Mt(_0x4d2b03,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2f3f6a['newValue']+')'};if(!_0x2f3f6a['newValue']){let _0x2dc12f=_0x5a846f['head'];for(;_0x2dc12f;){if(_0x2dc12f['data']&&'listType'==_0x2dc12f['data']['key']&&_0x2dc12f['data']['newValue'])return _0x4cac00;_0x2dc12f=_0x2dc12f['next'];}return{'type':'format','content':Mt(_0x4d2b03,'*Remove\x20format:*\x20%0',Mt(_0x4d2b03,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2f3f6a['oldValue']+')'};}}}},Ne=class extends _0x253c9e{afterInit(){const _0x4c321d=this['editor'];if(!_0x4c321d['plugins']['has']('PageBreakEditing'))return;_0x4c321d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x378e70=_0x4c321d['plugins']['get']('TrackChangesEditing'),_0x5e470c=_0x4c321d['locale'];_0x378e70['descriptionFactory']['registerElementLabel']('pageBreak',_0x1dea52=>Mt(_0x5e470c,'ELEMENT_PAGE_BREAK',_0x1dea52));}},Se=class extends _0x253c9e{afterInit(){const _0x37749f=this['editor'];if(!_0x37749f['plugins']['has']('Paragraph'))return;const _0x3c2c9d=_0x37749f['locale'],_0x3b8f7d=_0x37749f['plugins']['get']('TrackChangesEditing');_0x3b8f7d['descriptionFactory']['registerElementLabel']('paragraph',_0x3a009b=>Mt(_0x3c2c9d,'ELEMENT_PARAGRAPH',_0x3a009b)),_0x3b8f7d['enableDefaultAttributesIntegration']('paragraph'),_0x3b8f7d['enableCommand']('insertParagraph');const _0x5457ca=_0x3b8f7d['descriptionFactory'];_0x5457ca['registerDescriptionCallback'](_0xd83ebb=>{if('insertion'!==_0xd83ebb['type'])return;const {start:_0x3852a3,end:_0xf5c1d8}=_0xd83ebb['getFirstRange']();if(!_0x3852a3['isTouching'](_0xf5c1d8)||!_0x3852a3['nodeAfter'])return;const _0x85c195=_0x37749f['model']['schema'],_0x4225b6=_0x3852a3['nodeAfter'];return _0x85c195['isBlock'](_0x4225b6)&&!_0x85c195['isLimit'](_0x4225b6)&&_0x85c195['checkChild'](_0x4225b6,'$text')?{'type':'insertion','content':Mt(_0x3c2c9d,'*Insert:*\x20%0',_0x5457ca['getItemLabel'](_0x4225b6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xf1ba53=this['editor'],_0x4f4a0e=_0xf1ba53['locale'];_0xf1ba53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cc0a2=>{if('formatBlock'!=_0x3cc0a2['type'])return;const {data:_0x478807}=_0x3cc0a2;return _0x478807&&'paragraph'==_0x478807['commandName']?{'type':'format','content':Mt(_0x4f4a0e,'*Change\x20to:*\x20%0',Mt(_0x4f4a0e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Me=class extends _0x253c9e{afterInit(){const _0x5f49fe=this['editor'];_0x5f49fe['commands']['get']('replaceSource')&&_0x5f49fe['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Oe=class extends _0x253c9e{afterInit(){const _0xb16cc7=this['editor'];_0xb16cc7['plugins']['has']('RemoveFormatEditing')&&(_0xb16cc7['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x57a029=this['editor'];_0x57a029['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ee6cb=>{if('formatBlock'!=_0x4ee6cb['type']&&'formatInline'!=_0x4ee6cb['type'])return;const {data:_0x1e3cbc}=_0x4ee6cb;return _0x1e3cbc&&'removeFormat'==_0x1e3cbc['commandName']?{'type':'format','content':Mt(_0x57a029['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},we=class extends _0x253c9e{afterInit(){const _0x97e666=this['editor'];if(!_0x97e666['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2245c5=_0x97e666['plugins']['get']('TrackChangesEditing');_0x2245c5['enableCommand']('goToPreviousRestrictedEditingException'),_0x2245c5['enableCommand']('goToNextRestrictedEditingException');const _0x3d7352=_0x97e666['plugins']['get']('RestrictedEditingModeEditing');_0x3d7352['enableCommand']('trackChanges'),_0x3d7352['enableCommand']('acceptSuggestion'),_0x3d7352['enableCommand']('discardSuggestion'),_0x3d7352['enableCommand']('acceptAllSuggestions'),_0x3d7352['enableCommand']('discardAllSuggestions'),_0x3d7352['enableCommand']('acceptSelectedSuggestions'),_0x3d7352['enableCommand']('discardSelectedSuggestions');}},Fe=class extends _0x253c9e{afterInit(){const _0x48d20e=this['editor'];if(!_0x48d20e['plugins']['has']('ShiftEnter'))return;const _0x298d6d=_0x48d20e['plugins']['get']('TrackChangesEditing');_0x298d6d['enableCommand']('shiftEnter'),_0x298d6d['descriptionFactory']['registerElementLabel']('softBreak',_0x4843ca=>Mt(_0x48d20e['locale'],'ELEMENT_LINE_BREAK',_0x4843ca));}};function Be(_0x28c5a7,_0x1ab4af,_0x3ae0d8){const _0x596e30=[];for(const _0x245b88 of _0x1ab4af['getItems']())_0x245b88['hasAttribute'](_0x28c5a7)&&_0x596e30['push'](_0x3ae0d8['createRangeOn'](_0x245b88));return _0x596e30;}var ve=class extends _0x253c9e{afterInit(){const _0x4a2582=this['editor'],_0x491e1c=_0x4a2582['plugins']['get']('TrackChangesEditing');_0x4a2582['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x491e1c['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x2f38dd=this['editor'],_0x395e90=_0x2f38dd['model'],_0x57545c=_0x2f38dd['locale'],_0x3ba15d=_0x2f38dd['plugins']['get']('TrackChangesEditing'),_0x2589f7='restrictedEditingException',_0x5f483f=_0x2f38dd['commands']['get'](_0x2589f7);_0x3ba15d['enableCommand'](_0x2589f7,(_0x3d331d,_0x4b6b9b={})=>{const _0x3afd2d=_0x395e90['document']['selection'];if(_0x3afd2d['isCollapsed'])return void _0x3d331d(_0x4b6b9b);const _0x5c7daa=void 0x0!==_0x4b6b9b['forceValue']?_0x4b6b9b['forceValue']:!_0x5f483f['value'];_0x395e90['change'](()=>{const _0x1cc937=Array['from'](_0x3afd2d['getRanges']());for(const _0x356d83 of _0x1cc937){const _0x3016c3=_0x5c7daa?[_0x356d83]:Be(_0x2589f7,_0x356d83,_0x395e90);for(const _0x4f9355 of _0x3016c3)_0x3ba15d['markInlineFormat'](_0x4f9355,{'commandName':_0x2589f7,'commandParams':[{'forceValue':_0x5c7daa}]});}});}),_0x3ba15d['descriptionFactory']['registerDescriptionCallback'](_0x53c2b5=>{if('formatBlock'!=_0x53c2b5['type']&&'formatInline'!=_0x53c2b5['type'])return;const {data:_0x1555c8}=_0x53c2b5;return _0x1555c8&&_0x1555c8['commandName']==_0x2589f7?_0x1555c8['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x57545c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0x57545c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x56a611=this['editor'],_0xe59ed8=_0x56a611['locale'],_0x5c7bab=_0x56a611['plugins']['get']('TrackChangesEditing'),_0x4461c4='restrictedEditingExceptionBlock',_0x4a2166=this['editor']['commands']['get'](_0x4461c4);_0x5c7bab['enableCommand'](_0x4461c4,(_0x39940a,_0x569cd9={})=>{const _0x18e559=this['editor']['model']['document']['selection'],_0x5565bf=_0x569cd9&&void 0x0!==_0x569cd9['forceValue']?_0x569cd9['forceValue']:!_0x4a2166['value'];let _0x3fe74e=[];if(_0x5565bf){const _0x8494c0=Array['from'](_0x18e559['getSelectedBlocks']())['filter'](_0x2d037d=>function(_0x48cba1){return!!_0x48cba1['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x2d037d)||function(_0xef4ae8,_0x43eeea){const _0x17ef5a=_0x43eeea['createContext'](_0xef4ae8['parent']);return!!_0x43eeea['checkChild'](_0x17ef5a,'restrictedEditingException')&&!!_0x43eeea['checkChild'](_0x17ef5a['push']('restrictedEditingException'),_0xef4ae8);}(_0x2d037d,this['editor']['model']['schema']));_0x3fe74e=bt(_0x8494c0,_0x56a611['model']);}else{const _0x84122=Array['from'](_0x18e559['getSelectedBlocks']())['map'](_0x30058e=>function(_0x23698d){let _0x23efd6=_0x23698d;for(;_0x23efd6['parent'];){if('restrictedEditingException'==_0x23efd6['parent']['name'])return _0x23efd6;_0x23efd6=_0x23efd6['parent'];}return null;}(_0x30058e))['filter'](_0xbeb886=>!!_0xbeb886);_0x3fe74e=bt(_0x84122,_0x56a611['model']);}_0x56a611['model']['change'](()=>{for(const _0x3c9e0a of _0x3fe74e)_0x5c7bab['markBlockFormat'](_0x3c9e0a,{'commandName':_0x4461c4,'commandParams':[{'forceValue':_0x5565bf}]});});}),_0x5c7bab['descriptionFactory']['registerDescriptionCallback'](_0x44c2fd=>{const {data:_0x5e6661}=_0x44c2fd;if(_0x5e6661&&_0x5e6661['commandName']==_0x4461c4)return _0x5e6661['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0xe59ed8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0xe59ed8,'FORMAT_RESTRICTED_DISABLED')};});}},De=class extends _0x253c9e{afterInit(){const _0x90b395=this['editor'];_0x90b395['plugins']['has']('Style')&&_0x90b395['plugins']['has']('DataSchema')&&(_0x90b395['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x39bd86=this['editor'],_0x4c8b6b=_0x39bd86['locale'];_0x39bd86['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a80f8=>{if('formatBlock'!=_0x2a80f8['type']&&'formatInline'!=_0x2a80f8['type'])return;const {data:_0xb293c5}=_0x2a80f8;return _0xb293c5&&'style'===_0xb293c5['commandName']?_0xb293c5['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x4c8b6b,'*Set\x20format:*\x20%0',_0xb293c5['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Mt(_0x4c8b6b,'*Remove\x20format:*\x20%0',_0xb293c5['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Ue=class extends _0x253c9e{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x336517){super(_0x336517),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x1b4fa5=this['editor'],_0x226e0f=_0x1b4fa5['model']['document']['selection'];if(!_0x1b4fa5['plugins']['has']('TableEditing'))return;const _0x1c17fa=_0x1b4fa5['locale'],_0xac9564=_0x1b4fa5['plugins']['get']('TrackChangesEditing'),_0x31d9ee=_0x1b4fa5['plugins']['get']('TableUtils');_0xac9564['descriptionFactory']['registerElementLabel']('table',_0x177713=>Mt(_0x1c17fa,'ELEMENT_TABLE',_0x177713)),this['_setupColumnsRowsFixing'](),_0xac9564['enableCommand']('insertTable'),_0xac9564['enableCommand']('selectTableRow'),_0xac9564['enableCommand']('selectTableColumn');for(const _0x524771 of['insertTableRowAbove','insertTableRowBelow']){const _0xdcb209=_0x1b4fa5['commands']['get'](_0x524771);_0xac9564['enableCommand'](_0x524771,_0x2c9fff=>{_0x1b4fa5['model']['change'](_0x5b703b=>{_0x2c9fff();const _0xd61ccc='above'===_0xdcb209['order'],_0x47dfef=_0x31d9ee['getSelectionAffectedTableCells'](_0x226e0f),_0x1201b6=_0x31d9ee['getRowIndexes'](_0x47dfef),_0x348b87=_0xd61ccc?_0x1201b6['first']-0x1:_0x1201b6['last']+0x1,_0x13134e=_0x47dfef[0x0]['findAncestor']('table'),_0x5e0d71=_0x31d9ee['createTableWalker'](_0x13134e,{'startRow':_0x348b87,'endRow':_0x348b87}),_0x563c07=Array['from'](_0x5e0d71)['map'](_0xb9b6ce=>_0x5b703b['createRangeOn'](_0xb9b6ce['cell']));_0xac9564['markMultiRangeInsertion'](_0x563c07,'tableRow');});});}for(const _0x58b262 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3e2b03=_0x1b4fa5['commands']['get'](_0x58b262);_0xac9564['enableCommand'](_0x58b262,_0x4d52a4=>{_0x1b4fa5['model']['change'](_0x5e01ba=>{_0x4d52a4();const _0xcbde59='left'===_0x3e2b03['order'],_0x3139db=_0x31d9ee['getSelectionAffectedTableCells'](_0x226e0f),_0x5a50c7=_0x31d9ee['getColumnIndexes'](_0x3139db),_0x552823=_0xcbde59?_0x5a50c7['first']-0x1:_0x5a50c7['last']+0x1,_0x4acd3b=_0x3139db[0x0]['findAncestor']('table'),_0x35f7b2=_0x31d9ee['createTableWalker'](_0x4acd3b,{'startRow':0x0,'column':_0x552823,'includeAllSlots':!0x1}),_0x5e1af0=Array['from'](_0x35f7b2)['map'](_0x8b0189=>_0x5e01ba['createRangeOn'](_0x8b0189['cell']));_0xac9564['markMultiRangeInsertion'](_0x5e1af0,'tableColumn');});});}for(const _0x2aea2d of['removeTableRow','removeTableColumn']){const _0x37ddf4=_0x2aea2d['substr'](0xb),_0x48f67b=_0x37ddf4['toLowerCase'](),_0x2387c8=_0x48f67b['substr'](0x0,0x3)+'span',_0x133398='table'+_0x37ddf4,_0x44fe58='min'+_0x37ddf4,_0x223c28='max'+_0x37ddf4;_0xac9564['enableCommand'](_0x2aea2d,()=>{_0x1b4fa5['model']['change'](_0x405a1c=>{const _0x214c62=_0x31d9ee['getSelectionAffectedTableCells'](_0x226e0f),_0x3ef421=_0x214c62[0x0]['findAncestor']('table');let _0x1de034;if('removeTableRow'==_0x2aea2d){const _0x1ab181=_0x31d9ee['getRowIndexes'](_0x214c62);_0x1de034={'startRow':_0x1ab181['first'],'endRow':_0x1ab181['last'],'includeAllSlots':!0x0};}else{const _0x4dc645=_0x31d9ee['getColumnIndexes'](_0x214c62);_0x1de034={'startColumn':_0x4dc645['first'],'endColumn':_0x4dc645['last'],'includeAllSlots':!0x0};}const _0x2cf39c=_0x31d9ee['createTableWalker'](_0x3ef421,_0x1de034),_0x2bd01b=Array['from'](_0x2cf39c)['map'](({cell:_0x4e82ce})=>_0x4e82ce),_0x43d6f6=Pe(_0x2bd01b['filter'](_0x2fe2ab=>_0x2fe2ab['hasAttribute'](_0x2387c8))),_0x4075ea=Pe(_0x2bd01b['filter'](_0x542cc4=>!_0x542cc4['hasAttribute'](_0x2387c8)))['map'](_0xd4fc9=>_0x405a1c['createRangeOn'](_0xd4fc9)),_0x560333=_0xac9564['markMultiRangeDeletion'](_0x4075ea,_0x133398);if(_0x560333&&('tableRow'==_0x560333['subType']||'tableColumn'==_0x560333['subType'])){const _0x2e64e1=this['_getSuggestionCoords'](_0x560333);for(const _0x39e8df of _0x43d6f6){const _0x500f0a=_0x405a1c['createRangeOn'](_0x39e8df),_0x28adb8=_0x31d9ee['getCellLocation'](_0x39e8df),_0x4ca881=_0x39e8df['getAttribute'](_0x2387c8)-0x1,_0x5d2a30=_0x2e64e1[_0x44fe58],_0x1885bf=_0x2e64e1[_0x223c28];_0x5d2a30<=_0x28adb8[_0x48f67b]&&_0x28adb8[_0x48f67b]+_0x4ca881<=_0x1885bf&&_0x560333['addRange'](_0x500f0a);}}});});}function _0x4d9828(_0x76a70e){const _0x25f9bd=Array['from'](_0x226e0f['getRanges']())['map'](_0x5ac15c=>rt['fromRange'](_0x5ac15c));_0x1b4fa5['model']['change'](_0x24a50e=>{const _0x46a0f6=_0x24a50e['batch'];_0x76a70e=_0x76a70e['filter'](_0x1b1c56=>'$graveyard'!=_0x1b1c56['root']['rootName']),_0x24a50e['setSelection'](_0x76a70e),_0x1b4fa5['commands']['get']('removeTableRow')['refresh'](),_0x1b4fa5['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1b4fa5['model']['enqueueChange'](()=>{_0x1b4fa5['model']['enqueueChange'](_0x46a0f6,_0x3bd137=>{const _0x281c99=_0x25f9bd['filter'](_0x4893b9=>'$graveyard'!=_0x4893b9['root']['rootName']);_0x281c99['length']>0x0&&_0x3bd137['setSelection'](_0x281c99);for(const _0x3b8c28 of _0x25f9bd)_0x3b8c28['detach']();});});});}function _0x506233(_0x5a5056){_0x1b4fa5['model']['change'](_0x3cedc4=>{const _0x4cfb54=Array['from'](_0x226e0f['getRanges']())['map'](_0x1eab35=>rt['fromRange'](_0x1eab35)),_0x143373=[];for(const _0x4326b7 of _0x5a5056)for(const _0x5ad6e7 of _0x4326b7['getItems']({'shallow':!0x0}))_0x143373['push'](_0x5ad6e7);for(const _0x37a775 of _0x143373)'$graveyard'!=_0x37a775['root']['rootName']&&(_0x3cedc4['setSelection'](_0x3cedc4['createPositionAt'](_0x37a775,0x0)),_0x1b4fa5['commands']['get']('removeTableColumn')['refresh'](),_0x1b4fa5['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x46b9e3=_0x4cfb54['filter'](_0x2575c3=>'$graveyard'!=_0x2575c3['root']['rootName']);_0x46b9e3['length']>0x0&&_0x3cedc4['setSelection'](_0x46b9e3);for(const _0x13d6f9 of _0x4cfb54)_0x13d6f9['detach']();});}function _0x1742e1(_0x238987,_0x4de0d1){return _0x4de0d1['every'](_0x430d4d=>_0x238987['some'](_0x477469=>_0x477469['end']['isEqual'](_0x430d4d['start'])||_0x430d4d['end']['isEqual'](_0x477469['start'])));}function _0x588be8(_0x1bb6ce,_0x1eb0c2){return!_0x1bb6ce['some'](_0x3d5671=>_0x1eb0c2['some'](_0x28d9b9=>_0x3d5671['isIntersecting'](_0x28d9b9)))&&_0x1bb6ce['some'](_0x584849=>_0x1eb0c2['some'](_0x1670df=>_0x584849['end']['isTouching'](_0x1670df['start'])));}_0xac9564['descriptionFactory']['registerDescriptionCallback'](_0x4c062b=>{if('insertion'!=_0x4c062b['type']&&'deletion'!=_0x4c062b['type'])return;const _0x26fd94=_0x4c062b['getContainedElement']();if(null!=_0x26fd94&&_0x26fd94['is']('element','table')){if('insertion'==_0x4c062b['type']){const _0x10119d=_0x4c062b['getItems']()['filter'](_0x14ee1e=>_0x14ee1e['is']('$textProxy'))['map'](_0x236184=>_0x236184['data']);if(_0x10119d['length'])return{'type':'insertion','content':Mt(_0x1c17fa,'*Insert:*\x20%0',Mt(_0x1c17fa,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x10119d['join']('\x20')+'\x22'))};}if('deletion'==_0x4c062b['type']){const _0x502388=_0x4c062b['getItems']()['filter'](_0x38f493=>_0x38f493['is']('$textProxy'))['map'](_0x40db87=>_0x40db87['data']);if(_0x502388['length'])return{'type':'deletion','content':Mt(_0x1c17fa,'*Remove:*\x20%0',Mt(_0x1c17fa,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x502388['join']('\x20')+'\x22'))};}}}),_0xac9564['descriptionFactory']['registerDescriptionCallback'](_0x1e3ff2=>{if('tableRow'==_0x1e3ff2['subType']){const _0x2c5f46=_0x1e3ff2['getItems']()['filter'](_0x40f02b=>_0x40f02b['is']('$textProxy'))['map'](_0x493e53=>_0x493e53['data']),_0x244131=this['_getSuggestionCoords'](_0x1e3ff2),_0x563c4a=_0x244131['maxRow']-_0x244131['minRow']+0x1;if('insertion'==_0x1e3ff2['type'])return _0x2c5f46['length']?{'type':'insertion','content':Mt(_0x1c17fa,'*Insert:*\x20%0',Mt(_0x1c17fa,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x563c4a,'\x22'+_0x2c5f46['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x1c17fa,'*Insert:*\x20%0',Mt(_0x1c17fa,'ELEMENT_TABLE_ROW',_0x563c4a))};if('deletion'==_0x1e3ff2['type'])return _0x2c5f46['length']?{'type':'deletion','content':Mt(_0x1c17fa,'*Remove:*\x20%0',Mt(_0x1c17fa,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x563c4a,'\x22'+_0x2c5f46['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x1c17fa,'*Remove:*\x20%0',Mt(_0x1c17fa,'ELEMENT_TABLE_ROW',_0x563c4a))};}if('tableColumn'==_0x1e3ff2['subType']){const _0x4fb1b8=_0x1e3ff2['getItems']()['filter'](_0x36403b=>_0x36403b['is']('$textProxy'))['map'](_0x216ea1=>_0x216ea1['data']),_0x1013b9=this['_getSuggestionCoords'](_0x1e3ff2),_0x28f55f=_0x1013b9['maxColumn']-_0x1013b9['minColumn']+0x1;if('insertion'==_0x1e3ff2['type'])return _0x4fb1b8['length']?{'type':'insertion','content':Mt(_0x1c17fa,'*Insert:*\x20%0',Mt(_0x1c17fa,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x28f55f,'\x22'+_0x4fb1b8['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x1c17fa,'*Insert:*\x20%0',Mt(_0x1c17fa,'ELEMENT_TABLE_COLUMN',_0x28f55f))};if('deletion'==_0x1e3ff2['type'])return _0x4fb1b8['length']?{'type':'deletion','content':Mt(_0x1c17fa,'*Remove:*\x20%0',Mt(_0x1c17fa,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x28f55f,'\x22'+_0x4fb1b8['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x1c17fa,'*Remove:*\x20%0',Mt(_0x1c17fa,'ELEMENT_TABLE_COLUMN',_0x28f55f))};}}),_0xac9564['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4d9828),_0xac9564['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4d9828),_0xac9564['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x506233),_0xac9564['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x506233),_0xac9564['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1742e1),_0xac9564['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1742e1),_0xac9564['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x588be8),_0xac9564['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x588be8);}_acceptFormatSuggestionCallbackFactory(){const _0x2d2f16=this['editor'],_0x1db087=_0x2d2f16['model']['document']['selection'];return(_0x43a343,_0x458d7c)=>{_0x2d2f16['model']['change'](_0x189469=>{const {commandName:_0x386f67,commandParams:_0x26fbc3}=_0x458d7c;let _0x43c0f5=_0x43a343[0x0]['end']['nodeBefore'];_0x26fbc3&&_0x26fbc3[0x0]&&!0x1===_0x26fbc3[0x0]['forceValue']&&(_0x43c0f5=_0x43a343[0x0]['start']['nodeAfter']);const _0x3f628e=_0x189469['createRangeIn'](_0x43c0f5);if('$graveyard'==_0x3f628e['root']['rootName'])return;const _0x3733da=Array['from'](_0x1db087['getRanges']())['map'](_0x4a2beb=>rt['fromRange'](_0x4a2beb));_0x189469['setSelection'](_0x3f628e),_0x2d2f16['commands']['get'](_0x386f67)['refresh'](),_0x26fbc3['push']({'forceDefaultExecution':!0x0}),_0x2d2f16['execute'](_0x386f67,..._0x26fbc3);const _0x8900cc=_0x3733da['filter'](_0x3d328d=>'$graveyard'!=_0x3d328d['root']['rootName']);_0x8900cc['length']>0x0&&_0x189469['setSelection'](_0x8900cc);for(const _0x155aa2 of _0x3733da)_0x155aa2['detach']();});};}_getCoordsForCells(_0x2439bc){const _0xe8531e=this['editor']['plugins']['get']('TableUtils');let _0x51c2c0=Number['MAX_SAFE_INTEGER'],_0x159b1f=Number['MIN_SAFE_INTEGER'],_0x305ad1=Number['MAX_SAFE_INTEGER'],_0xc5b597=Number['MIN_SAFE_INTEGER'];for(const _0x3d2f83 of _0x2439bc){if('$graveyard'==_0x3d2f83['root']['rootName'])continue;const {row:_0x82d1f3,column:_0x37014d}=_0xe8531e['getCellLocation'](_0x3d2f83),_0x39837c=_0x3d2f83['hasAttribute']('rowspan')?_0x3d2f83['getAttribute']('rowspan')-0x1:0x0,_0x4b86bc=_0x3d2f83['hasAttribute']('colspan')?_0x3d2f83['getAttribute']('colspan')-0x1:0x0;_0x51c2c0=_0x82d1f3<_0x51c2c0?_0x82d1f3:_0x51c2c0,_0x159b1f=_0x82d1f3+_0x39837c>_0x159b1f?_0x82d1f3+_0x39837c:_0x159b1f,_0x305ad1=_0x37014d<_0x305ad1?_0x37014d:_0x305ad1,_0xc5b597=_0x37014d+_0x4b86bc>_0xc5b597?_0x37014d+_0x4b86bc:_0xc5b597;}return{'minRow':_0x51c2c0,'maxRow':_0x159b1f,'minColumn':_0x305ad1,'maxColumn':_0xc5b597};}_setupColumnsRowsFixing(){const _0x17c98b=this['editor'],_0xf906b8=_0x17c98b['plugins']['get']('TrackChangesEditing'),_0x1d209e=_0x17c98b['plugins']['get']('TableUtils');_0x17c98b['model']['document']['on']('change:data',()=>{const _0x4406f7=Array['from'](_0x17c98b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x75baf8,data:_0x5aa5ce}of _0x4406f7){const {group:_0x12ca9e,id:_0x59fb95,subType:_0x169f70}=tt(_0x75baf8);if('suggestion'!=_0x12ca9e)continue;if(null!=_0x5aa5ce['oldRange'])continue;const _0x4867f6=_0xf906b8['getSuggestion'](_0x59fb95);this['_tablePostFixingSubtypes']['includes'](_0x169f70)&&this['_tableSuggestions']['add'](_0x4867f6);}},{'priority':'low'});const _0x47d5c0=(_0x422391,_0x46738b)=>{let _0x35315c=!0x1;const _0x5722dd=_0x46738b['createRangeOn'](_0x422391),_0x63dd7b=_0x422391['findAncestor']('table'),_0x51ce36=_0x1d209e['getCellLocation'](_0x422391);for(const _0x52c869 of this['_tableSuggestions']){const _0x2c381e=_0x52c869['subType'],_0x36fd8e=_0x2c381e['startsWith']('tablePaste'),_0x9fa20a=_0x2c381e['substr'](_0x36fd8e?0xa:0x5),_0x42ac42=_0x9fa20a['toLowerCase'](),_0x207e90=_0x42ac42['substr'](0x0,0x3)+'span',_0x28ea89='min'+_0x9fa20a,_0x5188b4='max'+_0x9fa20a;if(!_0x52c869['isInContent'])continue;if(_0x63dd7b!=_0x52c869['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x52c869['isIntersectingWithRange'](_0x5722dd))continue;const _0x3c3d93=_0x422391['hasAttribute'](_0x207e90)?_0x422391['getAttribute'](_0x207e90)-0x1:0x0,_0x3bda2b=this['_getSuggestionCoords'](_0x52c869),_0x5511e5=_0x3bda2b[_0x28ea89],_0x3e880b=_0x3bda2b[_0x5188b4];_0x5511e5<=_0x51ce36[_0x42ac42]&&_0x51ce36[_0x42ac42]+_0x3c3d93<=_0x3e880b&&(_0x52c869['addRange'](_0x5722dd),_0x35315c=!0x0);}return _0x35315c;};_0x17c98b['model']['document']['registerPostFixer'](_0xde8dbf=>{let _0x19b445=!0x1;for(const _0x4c3c7d of _0x17c98b['model']['document']['differ']['getChanges']())if('insert'==_0x4c3c7d['type']){if('tableRow'==_0x4c3c7d['name']){for(const _0x59f2f2 of _0x4c3c7d['position']['nodeAfter']['getChildren']())_0x19b445=_0x19b445||_0x47d5c0(_0x59f2f2,_0xde8dbf);}else'tableCell'==_0x4c3c7d['name']&&(_0x19b445=_0x19b445||_0x47d5c0(_0x4c3c7d['position']['nodeAfter'],_0xde8dbf));}return _0x19b445;});}_getSuggestionCoords(_0x5c0209){return this['_getCoordsForCells'](_0x5c0209['getRanges']()['map'](_0x133eb1=>_0x133eb1['start']['nodeAfter']));}};function Pe(_0x5e09ca){return Array['from'](new Set(_0x5e09ca)['values']());}var xe=class extends _0x253c9e{static get requires(){return[Ue];}afterInit(){const _0x31e03f=this['editor'],_0x59ea01=_0x31e03f['model']['document']['selection'],_0x5af690=_0x31e03f['locale'];if(!_0x31e03f['plugins']['has']('TableEditing'))return;const _0x38391c=_0x31e03f['plugins']['get']('TrackChangesEditing'),_0x53115a=_0x31e03f['plugins']['get']('TableUtils'),_0x3034cb=_0x31e03f['plugins']['get'](Ue);_0x3034cb['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x38391c['enableCommand']('mergeTableCells',()=>{const _0x181658=_0x53115a['getSelectionAffectedTableCells'](_0x31e03f['model']['document']['selection']);_0x31e03f['model']['change'](()=>{_0x38391c['markMultiRangeBlockFormat'](_0x181658,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x31e03f['commands']['get']('mergeTableCells')['on']('execute',(_0xcee73d,_0x3a3999)=>{_0x31e03f['commands']['get']('trackChanges')['value']&&(_0x3a3999['length']>0x0&&_0x3a3999[_0x3a3999['length']-0x1]&&_0x3a3999[_0x3a3999['length']-0x1]['forceDefaultExecution']||_0x38391c['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xcee73d['stop']());},{'priority':'highest'});for(const _0x411f1d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x45a4c1=_0x31e03f['commands']['get'](_0x411f1d);_0x38391c['enableCommand'](_0x411f1d,()=>{const _0x2ec691=_0x31e03f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2c6b9f=>_0x2c6b9f['is']('element','tableCell')),_0x672500=_0x45a4c1['value'];_0x31e03f['model']['change'](()=>{_0x38391c['markMultiRangeBlockFormat']([_0x2ec691,_0x672500],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x35fdce of['splitTableCellVertically','splitTableCellHorizontally']){const _0xd4c5c7=_0x31e03f['commands']['get'](_0x35fdce);_0x38391c['enableCommand'](_0x35fdce,()=>{const _0x333df8=_0x53115a['getSelectionAffectedTableCells'](_0x31e03f['model']['document']['selection']),_0x41dc33=_0x333df8[0x0]['findAncestor']('table'),_0x5ae872=new Set();for(const _0x96221 of _0x333df8){const {column:_0x562ba6,row:_0x26cfaf}=_0x53115a['getCellLocation'](_0x96221),_0x15505e='horizontally'==_0xd4c5c7['direction']?_0x53115a['createTableWalker'](_0x41dc33,{'startRow':_0x26cfaf,'endRow':_0x26cfaf,'includeAllSlots':!0x0}):_0x53115a['createTableWalker'](_0x41dc33,{'column':_0x562ba6,'includeAllSlots':!0x0});for(const {cell:_0x672baa}of _0x15505e)_0x5ae872['add'](_0x672baa);}_0x31e03f['model']['change'](()=>{_0x38391c['markMultiRangeBlockFormat'](_0x333df8,{'commandName':_0x35fdce,'commandParams':[]},Array['from'](_0x5ae872),_0x35fdce);});});}_0x38391c['descriptionFactory']['registerDescriptionCallback'](_0x19d2f6=>{if('formatBlock'!=_0x19d2f6['type']&&'formatInline'!=_0x19d2f6['type'])return;const {data:_0x583135}=_0x19d2f6;return _0x583135&&'mergeTableCells'==_0x583135['commandName']?{'type':'format','content':Mt(_0x5af690,'*Merge\x20cells*')}:void 0x0;}),_0x38391c['descriptionFactory']['registerDescriptionCallback'](_0x405832=>{if('formatBlock'!=_0x405832['type']&&'formatInline'!=_0x405832['type'])return;const {data:_0x128935}=_0x405832;return _0x128935?'splitTableCellVertically'==_0x128935['commandName']?{'type':'format','content':Mt(_0x5af690,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x128935['commandName']?{'type':'format','content':Mt(_0x5af690,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x31fe47=_0x3034cb['_acceptFormatSuggestionCallbackFactory']();for(const _0x41a448 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x38391c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x41a448,'accept',_0x31fe47);for(const _0x311a59 of['splitTableCellVertically','splitTableCellHorizontally'])_0x38391c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x311a59,'accept',_0xa2fc99=>{_0x31e03f['model']['change'](_0x5ccd5a=>{const _0x4d4cb6=Array['from'](_0xa2fc99)['filter'](_0x2c7795=>'$graveyard'!=_0x2c7795['root']['rootName']&&!!_0x2c7795['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x4d4cb6['length'])return;const _0x4e05e1=Array['from'](_0x59ea01['getRanges']())['map'](_0x22493e=>rt['fromRange'](_0x22493e));_0x5ccd5a['setSelection'](_0x4d4cb6),_0x31e03f['commands']['get'](_0x311a59)['refresh'](),_0x31e03f['execute'](_0x311a59,{'forceDefaultExecution':!0x0});const _0x451543=_0x4e05e1['filter'](_0x68f1dd=>'$graveyard'!=_0x68f1dd['root']['rootName']);_0x451543['length']>0x0&&_0x5ccd5a['setSelection'](_0x451543);for(const _0x5b241b of _0x4e05e1)_0x5b241b['detach']();});});_0x38391c['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4607ea=>{_0x31e03f['model']['change'](_0x230cf8=>{const _0x55dab2=Array['from'](_0x59ea01['getRanges']())['map'](_0x4bd8b1=>rt['fromRange'](_0x4bd8b1));_0x230cf8['setSelection'](_0x4607ea),_0x31e03f['commands']['get']('mergeTableCells')['refresh'](),_0x31e03f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x177929=_0x55dab2['filter'](_0x1f834d=>'$graveyard'!=_0x1f834d['root']['rootName']);_0x177929['length']>0x0&&_0x230cf8['setSelection'](_0x177929);for(const _0x54879f of _0x55dab2)_0x54879f['detach']();});});for(const _0x1d4a4d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x34b0f5=_0x31e03f['commands']['get'](_0x1d4a4d);_0x34b0f5['on']('set:isEnabled',(_0x4fdaff,_0x4f385d,_0x272d75)=>{if(_0x272d75){const _0x512749=_0x31e03f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x24784f=>_0x24784f['is']('element','tableCell'));this['_areMergableCells'](_0x34b0f5['value'],_0x512749)||(_0x4fdaff['return']=!0x1,_0x4fdaff['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x4f2981=this['editor']['commands']['get']('mergeTableCells'),_0x153067=this['editor']['plugins']['get']('TableUtils');if(!_0x4f2981['isEnabled'])return!0x1;const _0x59a043=_0x153067['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4d044c of _0x59a043)for(const _0x4875a5 of _0x59a043)if(_0x4d044c!=_0x4875a5&&!this['_areMergableCells'](_0x4d044c,_0x4875a5))return!0x1;return!0x0;}['_areMergableCells'](_0x246110,_0x64d536){const _0x3d897d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x554c1b=this['editor']['model']['createRangeOn'](_0x246110),_0x5d526e=this['editor']['model']['createRangeOn'](_0x64d536),_0x1b2553=new Set(),_0x2da59e=new Set();for(const _0x436af5 of _0x3d897d['getSuggestions']())if(('insertion'==_0x436af5['type']||'deletion'==_0x436af5['type']||'mergeTableCells'==_0x436af5['subType'])&&_0x436af5['isInContent']){for(const _0x2bb720 of _0x436af5['getRanges']())_0x2bb720['containsRange'](_0x554c1b,!0x0)&&_0x1b2553['add'](_0x436af5['type']+':'+_0x436af5['author']['id']),_0x2bb720['containsRange'](_0x5d526e,!0x0)&&_0x2da59e['add'](_0x436af5['type']+':'+_0x436af5['author']['id']);}if(_0x1b2553['size']!=_0x2da59e['size'])return!0x1;for(const _0x212273 of _0x1b2553)if(!_0x2da59e['has'](_0x212273))return!0x1;return!0x0;}},Ge=class extends _0x253c9e{static get requires(){return[Ue];}afterInit(){const _0x44372d=this['editor'];if(!_0x44372d['plugins']['has']('TableEditing'))return;const _0x53ef2f=_0x44372d['locale'],_0x223676=_0x44372d['plugins']['get']('TrackChangesEditing');_0x223676['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x223676['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x223676['descriptionFactory']['registerAttributeLabel']('headingRows',Mt(_0x53ef2f,'FORMAT_HEADER_ROW')),_0x223676['descriptionFactory']['registerAttributeLabel']('headingColumns',Mt(_0x53ef2f,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x490501=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fc0ab=this['editor']['plugins']['get'](Ue)['_acceptFormatSuggestionCallbackFactory']();_0x490501['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2fc0ab),_0x490501['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2fc0ab),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x1bf10f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55db1c=this['editor']['plugins']['get']('TableUtils');function _0x3f9c6c({showActiveMarker:_0x5a1734=!0x0,setDataAttribute:_0x2be326=!0x0}={}){return(_0xc36db7,_0x230ba5,_0x2f5399)=>{const {type:_0x664f75,id:_0x3f4130}=tt(_0x230ba5['markerName']);if(!_0x1bf10f['hasSuggestion'](_0x3f4130))return;const _0x3b58ce=_0x1bf10f['getSuggestion'](_0x3f4130),_0x5eb763=_0x3b58ce['data'];if('formatBlock'!=_0x3b58ce['type']||!_0x5eb763||'setTableColumnHeader'!=_0x5eb763['commandName'])return;if(_0x230ba5['item'])return void _0xc36db7['stop']();if(!_0x2f5399['consumable']['consume'](_0x230ba5['markerRange'],_0xc36db7['name']))return;const _0x10493e=_0x230ba5['markerRange']['start']['nodeAfter'],_0x4d679f=_0x230ba5['markerRange']['end']['nodeBefore'],_0xb47ee0=_0x10493e['parent']['parent'],{column:_0x2aab5a}=_0x55db1c['getCellLocation'](_0x10493e),{column:_0x1cb40b}=_0x55db1c['getCellLocation'](_0x4d679f);for(let _0x40c7ac=_0x2aab5a;_0x40c7ac<=_0x1cb40b;_0x40c7ac++){const _0x33ae09=_0x55db1c['createTableWalker'](_0xb47ee0,{'column':_0x40c7ac,'includeAllSlots':!0x1});for(const _0x1d9cc6 of _0x33ae09){const _0x34045a=_0x1d9cc6['cell'],_0x570571=_0x2f5399['mapper']['toViewElement'](_0x34045a);_0x2f5399['writer']['addClass']('ck-suggestion-marker-'+_0x664f75,_0x570571),_0x2be326&&_0x2f5399['writer']['setAttribute']('data-suggestion',_0x3f4130,_0x570571),_0x2f5399['mapper']['bindElementToMarker'](_0x570571,_0x230ba5['markerName']),_0x5a1734&&(_0x1bf10f['activeMarkers']['includes'](_0x230ba5['markerName'])?_0x2f5399['writer']['addClass']('ck-suggestion-marker--active',_0x570571):_0x2f5399['writer']['removeClass']('ck-suggestion-marker--active',_0x570571));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3f9c6c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x436518,_0x3d7327,_0x450622)=>{_0x450622['options']['showSuggestionHighlights']&&_0x3f9c6c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x436518,_0x3d7327,_0x450622);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xc14ea6,_0x255b37,_0x4ffd65)=>{const {type:_0x5afba2,id:_0x1f46e0}=tt(_0x255b37['markerName']);if(!_0x1bf10f['hasSuggestion'](_0x1f46e0))return;const _0x53b861=_0x1bf10f['getSuggestion'](_0x1f46e0),_0x5c74ec=_0x53b861['data'];if('formatBlock'!=_0x53b861['type']||!_0x5c74ec||'setTableColumnHeader'!=_0x5c74ec['commandName'])return;const _0x312480=_0x4ffd65['mapper']['markerNameToElements'](_0x255b37['markerName']);if(_0x312480){for(const _0xb60390 of _0x312480)_0x4ffd65['writer']['removeClass']('ck-suggestion-marker-'+_0x5afba2,_0xb60390),_0x4ffd65['writer']['removeClass']('ck-suggestion-marker--active',_0xb60390),_0x4ffd65['writer']['removeAttribute']('data-suggestion',_0xb60390),_0x4ffd65['mapper']['unbindElementFromMarkerName'](_0xb60390,_0x255b37['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x42fe44=this['editor'],_0x35ee7d=_0x42fe44['locale'];function _0x22d39c(_0xdf3aaf){return{'type':'format','content':Mt(_0x35ee7d,'*Format:*\x20%0',_0xdf3aaf)};}_0x42fe44['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x268762=>{if('formatBlock'!=_0x268762['type'])return;const {data:_0xe9ba05}=_0x268762;return _0xe9ba05?'setTableRowHeader'==_0xe9ba05['commandName']?_0xe9ba05['commandParams'][0x0]['forceValue']?_0x22d39c(Mt(_0x35ee7d,'FORMAT_HEADER_ROW')):_0x22d39c(Mt(_0x35ee7d,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0xe9ba05['commandName']?_0xe9ba05['commandParams'][0x0]['forceValue']?_0x22d39c(Mt(_0x35ee7d,'FORMAT_HEADER_COLUMN')):_0x22d39c(Mt(_0x35ee7d,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},He=class extends _0x253c9e{static get requires(){return[Ue];}afterInit(){const _0x414d71=this['editor'];if(!_0x414d71['plugins']['has']('TableEditing')||!_0x414d71['config']['get']('table.enableFooters'))return;const _0x4da785=_0x414d71['locale'],_0x5e634b=_0x414d71['plugins']['get']('TrackChangesEditing');_0x5e634b['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x5e634b['descriptionFactory']['registerAttributeLabel']('footerRows',Mt(_0x4da785,'FORMAT_FOOTER_ROW'));}},$e=class extends _0x253c9e{afterInit(){const _0x330533=this['editor'],_0x40a65e=_0x330533['locale'],_0x569bab=_0x330533['plugins']['get']('TrackChangesEditing');function _0x21b479(_0x43542e){return{'type':'format','content':''+Mt(_0x40a65e,'*Set\x20table\x20type:*\x20%0',_0x43542e)};}_0x330533['plugins']['has']('TableLayout')&&(_0x569bab['enableCommand']('insertTableLayout'),_0x569bab['enableDefaultAttributesIntegration']('tableType'),_0x569bab['descriptionFactory']['registerElementLabel'](_0x2517b3=>_0x2517b3['is']('element','table')&&'layout'===_0x2517b3['getAttribute']('tableType'),_0x172dcf=>Mt(_0x40a65e,'ELEMENT_LAYOUT_TABLE',_0x172dcf)),_0x569bab['descriptionFactory']['registerDescriptionCallback'](_0x41b2b9=>{const {data:_0x4d197f}=_0x41b2b9;if(_0x4d197f&&'tableType'==_0x4d197f['key'])switch(_0x4d197f['newValue']){case'layout':return _0x21b479(Mt(_0x40a65e,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x21b479(Mt(_0x40a65e,'ELEMENT_CONTENT_TABLE'));}}));}};const We=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ve=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](We['map'](_0x3841e0=>[_0x3841e0,null]));var je=class extends _0x253c9e{static get requires(){return[Ue];}afterInit(){const _0x726de8=this['editor'];if(!_0x726de8['plugins']['has']('TableClipboard'))return;const _0x56475a=_0x726de8['plugins']['get']('TrackChangesEditing'),_0x3bd413=_0x726de8['plugins']['get']('TableUtils'),_0x361529=_0x726de8['plugins']['get'](Ue),_0x28ac68=_0x726de8['plugins']['get']('TableClipboard'),_0x26d980=_0x726de8['plugins']['get']('TableSelection'),_0x2b08ab=_0x726de8['plugins']['get'](gt);_0x361529['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x726de8['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x726de8['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3ae891=null,_0x1f94d0=!0x1;_0x2b08ab['on']('contentInsertion',(_0x267b8c,_0xde7cc8)=>{_0x1f94d0='paste'===_0xde7cc8['method'];}),_0x726de8['model']['on']('insertContent',(_0x30638a,_0x344ed9)=>{if(!_0x1f94d0&&null===_0x26d980['getSelectedTableCells']())return;const [_0x5b964e,_0x14ca4a]=_0x344ed9,_0x5acae3=_0x344ed9[_0x344ed9['length']-0x1];_0x5acae3&&_0x5acae3['forceDefaultExecution']||_0x56475a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x32d0a4,_0x3b0327,_0x37d038,_0x41e39e,_0x5a07f1){if(_0x3b0327&&!_0x3b0327['is']('documentSelection'))return!0x1;const _0x2090ad=_0x5a07f1['getTableIfOnlyTableInContent'](_0x32d0a4,_0x37d038);if(!_0x2090ad||!Ke(_0x2090ad,void 0x0,_0x41e39e))return!0x1;const _0x516825=_0x41e39e['getSelectionAffectedTableCells'](_0x37d038['document']['selection']);if(!_0x516825['length'])return!0x1;const _0x485432=_0x516825[0x0]['findAncestor']('table'),_0x4ed9ab=_0x41e39e['getRowIndexes'](_0x516825),_0x415c74=_0x41e39e['getColumnIndexes'](_0x516825),_0x2788d7={'startRow':_0x4ed9ab['first'],'endRow':_0x4ed9ab['last'],'startColumn':_0x415c74['first'],'endColumn':_0x415c74['last']};return 0x1==_0x516825['length']&&(_0x2788d7['endRow']+=_0x41e39e['getRows'](_0x2090ad)-0x1,_0x2788d7['endColumn']+=_0x41e39e['getColumns'](_0x2090ad)-0x1),Ke(_0x485432,_0x2788d7,_0x41e39e);}(_0x5b964e,_0x14ca4a,_0x726de8['model'],_0x3bd413,_0x28ac68)&&(_0x30638a['stop'](),_0x3ae891={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x726de8['model']['change'](()=>{_0x726de8['model']['insertContent'](_0x344ed9[0x0],_0x344ed9[0x1],_0x344ed9[0x2],{'forceDefaultExecution':!0x0});const _0x3bccd2=_0x29a7da(),{rowInsertionRanges:_0x47beed,columnInsertionRanges:_0x26b24a,insertionRanges:_0x54fdc5,deletionRanges:_0x386689,cells:_0x428a24}=_0x3ae891;_0x47beed['length']&&_0x56475a['markMultiRangeInsertion'](_0x47beed,'tablePasteRow',{'tablePasteChainId':_0x3bccd2}),_0x26b24a['length']&&_0x56475a['markMultiRangeInsertion'](_0x26b24a,'tablePasteColumn',{'tablePasteChainId':_0x3bccd2}),_0x54fdc5['length']&&(_0x56475a['markMultiRangeInsertion'](_0x54fdc5,'tablePaste',{'tablePasteChainId':_0x3bccd2,'skipNestingCheck':!0x0}),_0x54fdc5['forEach'](_0x5e7be0=>_0x5e7be0['detach']?.())),_0x386689['length']&&(_0x56475a['markMultiRangeDeletion'](_0x386689,'tablePaste',{'tablePasteChainId':_0x3bccd2,'skipNestingCheck':!0x0}),_0x386689['forEach'](_0x29320f=>_0x29320f['detach']?.()));const _0x13e1b0=_0x56475a['markMultiRangeBlockFormat'](_0x428a24['map'](({element:_0x1a6105})=>_0x1a6105),{'formatGroupId':_0x29a7da()},[],'tablePasteCell',{'tablePasteChainId':_0x3bccd2});if(_0x13e1b0){const _0x578e08=_0x13e1b0['getMarkers'](),_0x4e4acb=[];for(const {element:_0x3a0366,attributes:_0x24c444}of _0x428a24){if(!_0x24c444)continue;const _0x2f5a6d=_0x726de8['model']['createRangeOn'](_0x3a0366),_0x39defb=_0x578e08['find'](_0x17fb8c=>_0x17fb8c['getRange']()['isEqual'](_0x2f5a6d));_0x39defb&&_0x4e4acb['push']([_0x39defb['name'],_0x24c444]);}_0x4e4acb['length']&&_0x13e1b0['setAttribute']('markerAttributes',Object['fromEntries'](_0x4e4acb));}_0x3ae891=null;}));},{'priority':_0x176cca['high']+0xa}),_0x2b08ab['on']('contentInsertion',()=>{_0x1f94d0=!0x1;},{'priority':'lowest'}),_0x726de8['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2b5e95,_0x43eddc)=>{const [_0x11f086,_0x42026b,,_0x2f1c2d]=_0x43eddc;if(!_0x3ae891)return;_0x2b5e95['stop']();const _0x5b2451=_0x11f086['cell'],_0x242540=_0x42026b,_0x12f687=ze(_0x5b2451),_0x19b72d=ze(_0x242540);_0x2b5e95['return']=_0x5b2451;let _0x2b62e4=null,_0x9bef17=null;if(_0x19b72d||_0x12f687){if(_0x12f687&&!_0x19b72d){_0x2f1c2d['remove'](_0x5b2451['getChild'](0x0));for(const _0x17aebe of Array['from'](_0x242540['getChildren']()))_0x2f1c2d['insert'](_0x17aebe,_0x5b2451,'end');const _0x4d1cc6=_0x3ae891['rowInsertionIndexes']['includes'](_0x11f086['row']),_0x1d2e00=_0x3ae891['columnInsertionIndexes']['includes'](_0x11f086['column']);_0x4d1cc6||_0x1d2e00||(_0x2b62e4=rt['fromRange'](_0x2f1c2d['createRangeIn'](_0x5b2451)));}else _0x19b72d&&!_0x12f687&&(_0x9bef17=_0x2f1c2d['createRangeIn'](_0x5b2451));}else{const _0x586559=_0x2f1c2d['createElement']('tableCellSuggestion'),_0x5a7a1b=_0x2f1c2d['createElement']('tableCellSuggestion');_0x2f1c2d['wrap'](_0x2f1c2d['createRangeIn'](_0x5b2451),_0x5a7a1b),_0x2f1c2d['insert'](_0x586559,_0x5b2451,0x0);for(const _0x445a46 of Array['from'](_0x242540['getChildren']()))_0x2f1c2d['insert'](_0x445a46,_0x586559,'end');_0x2b62e4=rt['fromRange'](_0x2f1c2d['createRangeOn'](_0x586559)),_0x9bef17=rt['fromRange'](_0x2f1c2d['createRangeOn'](_0x5a7a1b));}const _0x4f7058=Array['from'](_0x242540['getAttributes']())['filter'](([_0x461f77])=>We['includes'](_0x461f77));_0x3ae891['cells']['push']({'element':_0x5b2451,'attributes':_0x4f7058['length']?Object['fromEntries'](_0x4f7058):null}),_0x2b62e4&&_0x3ae891['insertionRanges']['push'](_0x2b62e4),_0x9bef17&&_0x3ae891['deletionRanges']['push'](_0x9bef17);},{'priority':'high'}),_0x3bd413['on']('insertColumns',(_0x4082f5,_0x1e2f8d)=>{const [_0x4eb715,_0x208990={}]=_0x1e2f8d;if(!_0x3ae891)return;const _0x39fcec=_0x208990['at']||0x0,_0x4217af=_0x208990['columns']||0x1;_0x3ae891['columnInsertionIndexes']=new Array(_0x4217af)['fill'](_0x39fcec)['map']((_0x5c42c1,_0x3694c0)=>_0x5c42c1+_0x3694c0);for(const {cell:_0x49d8fb}of _0x3bd413['createTableWalker'](_0x4eb715,{'startColumn':_0x39fcec,'endColumn':_0x39fcec+_0x4217af-0x1}))_0x3ae891['columnInsertionRanges']['push'](_0x726de8['model']['createRangeOn'](_0x49d8fb));},{'priority':'low'}),_0x3bd413['on']('insertRows',(_0x4085e2,_0x533e68)=>{const [_0x2cefd8,_0x4d5501={}]=_0x533e68;if(!_0x3ae891)return;const _0x1ffe27=_0x4d5501['at']||0x0,_0x3acdc9=_0x4d5501['rows']||0x1;_0x3ae891['rowInsertionIndexes']=new Array(_0x3acdc9)['fill'](_0x1ffe27)['map']((_0x347d09,_0x3cbd05)=>_0x347d09+_0x3cbd05);for(const {cell:_0x2ab62e}of _0x3bd413['createTableWalker'](_0x2cefd8,{'startRow':_0x1ffe27,'endRow':_0x1ffe27+_0x3acdc9-0x1}))_0x3ae891['rowInsertionRanges']['push'](_0x726de8['model']['createRangeOn'](_0x2ab62e));},{'priority':'low'}),_0x56475a['descriptionFactory']['registerDescriptionCallback'](_0x19d8f9=>{if(_0x19d8f9['subType']&&_0x19d8f9['subType']['startsWith']('tablePaste'))return _0x19d8f9['previous']?{}:{'type':'insertion','content':Mt(_0x726de8['locale'],'*Replace\x20table\x20cells*')};});const _0x1142d3=()=>!0x1;for(const _0x1498b7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x56475a['_suggestionFactory']['registerCustomCallback']('insertion',_0x1498b7,'join',_0x1142d3),_0x56475a['_suggestionFactory']['registerCustomCallback']('deletion',_0x1498b7,'join',_0x1142d3),_0x56475a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1498b7,'join',_0x1142d3);_0x56475a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1142d3),_0x56475a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3bcf16,_0x4f4be2,_0x5a39a5)=>{const _0x4c7d10=_0x3bcf16['map'](_0xf1bc75=>_0xf1bc75['getContainedElement']())['filter'](_0x3ca27b=>_0x3ca27b),_0x356743=new Map(_0x4c7d10['map'](_0x2c6a2f=>[_0x2c6a2f,null]));if(_0x3ae891){for(const {element:_0x405419,attributes:_0x422845}of _0x3ae891['cells'])_0x422845&&_0x356743['set'](_0x405419,_0x422845);}else{if(_0x5a39a5&&_0x5a39a5['markerAttributes'])for(const [_0x80a938,_0x3eb042]of Object['entries'](_0x5a39a5['markerAttributes'])){const _0x12622a=_0x726de8['model']['markers']['get'](_0x80a938),_0x42431a=_0x12622a?_0x12622a['getRange']()['getContainedElement']():null;_0x42431a&&_0x356743['set'](_0x42431a,_0x3eb042);}}_0x726de8['model']['change'](_0x4bad67=>{for(const [_0x163ec8,_0xb46615]of _0x356743)_0x4bad67['setAttributes']({...Ve,..._0xb46615},_0x163ec8);});});const _0x5d2875=(_0x1fb3c8,_0x516bba)=>{_0x56475a['_suggestionFactory']['registerCustomCallback'](_0x1fb3c8,'tablePaste',_0x516bba,(_0x57f243,_0x22491b,_0x3055db)=>{_0x726de8['model']['change'](_0x567a40=>{const _0x2f5ea8=[];for(const _0x222a3a of _0x57f243){const _0x4ae37a=_0x222a3a['start']['nodeAfter'];_0x4ae37a['is']('element','tableCellSuggestion')&&_0x2f5ea8['push'](_0x4ae37a);}_0x56475a['_suggestionFactory']['getSuggestionCallback'](_0x1fb3c8,null,_0x516bba)(_0x57f243,_0x22491b,_0x3055db);for(const _0x168b11 of _0x2f5ea8)'$graveyard'!=_0x168b11['root']['rootName']&&_0x567a40['unwrap'](_0x168b11);});});};_0x5d2875('insertion','accept'),_0x5d2875('insertion','discard'),_0x5d2875('deletion','accept'),_0x5d2875('deletion','discard'),_0x56475a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x58f4b8=>{const _0x431ae6=_0x58f4b8['map'](_0x17c082=>_0x17c082['getContainedElement']()),_0x8248f5=_0x431ae6[0x0]['findAncestor']('table'),{minRow:_0x46f246,maxRow:_0x36a547}=_0x361529['_getCoordsForCells'](_0x431ae6);_0x3bd413['removeRows'](_0x8248f5,{'at':_0x46f246,'rows':_0x36a547-_0x46f246+0x1});}),_0x56475a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x310465=>{const _0x111ed7=_0x310465['map'](_0xda3aba=>_0xda3aba['getContainedElement']()),_0x1dc48d=_0x111ed7[0x0]['findAncestor']('table'),{minColumn:_0x204da8,maxColumn:_0x3ec49e}=_0x361529['_getCoordsForCells'](_0x111ed7);_0x3bd413['removeColumns'](_0x1dc48d,{'at':_0x204da8,'columns':_0x3ec49e-_0x204da8+0x1});});const _0x490b7f=(_0x423092,_0x1f97f5)=>{if(!_0x1f97f5['subType']||!_0x1f97f5['subType']['startsWith']('tablePaste'))return;const _0x1f3317=_0x1f97f5['attributes']['tablePasteChainId'],_0xf18c7e=_0x56475a['getSuggestions']()['filter'](_0x5353b7=>_0x5353b7['isInContent']&&_0x5353b7['attributes']&&_0x5353b7['attributes']['tablePasteChainId']==_0x1f3317);_0xf18c7e['length']&&_0x1f97f5['getAllAdjacentSuggestions']()['length']!=_0xf18c7e['length']&&_0xf18c7e['reduce']((_0x2fc0cd,_0x425d6a)=>(_0x2fc0cd['next']=_0x425d6a,_0x425d6a['previous']=_0x2fc0cd,_0x425d6a));};function _0x1f2de9(_0x34b5ba,_0x24eee4=!0x0){const {id:_0x58ad44,authorId:_0x42703b}=tt(_0x34b5ba['markerName']),_0x5b94e9=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2c2ad1=_0x56475a['activeMarkers']['includes'](_0x34b5ba['markerName']);return _0x2c2ad1&&_0x5b94e9['push']('ck-suggestion-marker--active'),{'classes':_0x5b94e9,'attributes':{'data-suggestion':_0x58ad44,'data-author-id':_0x42703b},'priority':_0x2c2ad1&&_0x24eee4?0xbc2:0xbb8};}_0x56475a['on']('suggestionLoaded',_0x490b7f,{'priority':'high'}),_0x56475a['on']('suggestionUnloaded',_0x490b7f,{'priority':'high'}),_0x726de8['model']['document']['registerPostFixer'](()=>{let _0x23bb96=!0x1;const _0x42f210=Array['from'](_0x726de8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc2554d,data:_0xcaa79c}of _0x42f210){const {group:_0x490f16,type:_0x50c5bc,id:_0x50890a}=tt(_0xc2554d);if('suggestion'!=_0x490f16||'deletion'!=_0x50c5bc||_0xcaa79c['oldRange'])continue;if(!_0x56475a['hasSuggestion'](_0x50890a))continue;const _0x43a71f=_0x56475a['getSuggestion'](_0x50890a)['getRanges'](),_0x2c0777=_0x726de8['plugins']['get']('Users')['me'];for(const _0x16a453 of _0x56475a['getSuggestions']())if(_0x16a453['isInContent']&&_0x16a453['author']==_0x2c0777&&'formatBlock'==_0x16a453['type']&&'tablePasteCell'==_0x16a453['subType']&&_0x16a453['getRanges']()['every'](_0x40fc04=>_0x43a71f['some'](_0x1b0e0f=>_0x1b0e0f['containsRange'](_0x40fc04,!0x0)))){for(const _0x37da82 of _0x16a453['getAllAdjacentSuggestions']())_0x37da82['isInContent']&&(_0x37da82['discard'](),_0x23bb96=!0x0);}}return _0x23bb96;}),_0x726de8['model']['document']['registerPostFixer'](_0x12612d=>{const _0x2bec30=_0x726de8['commands']['get']('redo');if(!_0x2bec30||!_0x2bec30['_createdBatches']['has'](_0x12612d['batch']))return!0x1;let _0x3e4b8b=!0x1;const _0x4c81c6=_0x726de8['plugins']['get']('Users')['me'],_0x2e07db=_0x726de8['model']['document']['differ']['getChanges'](),_0x448566=Array['from'](_0x726de8['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xe61af3,data:_0xc13d72})=>{const {group:_0x2bc623,subType:_0x1e8709,authorId:_0x4c6bed}=tt(_0xe61af3);return'suggestion'==_0x2bc623&&'tablePaste'==_0x1e8709&&_0x4c6bed==_0x4c81c6['id']&&!_0xc13d72['oldRange'];});for(const _0x2459c3 of _0x2e07db){if('insert'!=_0x2459c3['type']||'tableCellSuggestion'!=_0x2459c3['name']||0x1!=_0x2459c3['length'])continue;const _0x7c6f9a=_0x12612d['createRange'](_0x2459c3['position'],_0x2459c3['position']['getShiftedBy'](0x1));if(!_0x448566['find'](({data:_0x189452})=>_0x189452['newRange']['isEqual'](_0x7c6f9a))){for(const {name:_0x3096ef,data:_0x1fa56b}of _0x448566)if(_0x7c6f9a['containsRange'](_0x1fa56b['newRange'])){_0x12612d['updateMarker'](_0x3096ef,{'range':_0x7c6f9a}),_0x3e4b8b=!0x0;break;}}}return _0x3e4b8b;}),_0x726de8['model']['document']['registerPostFixer'](_0x14af6e=>{let _0x25e27a=!0x1;const _0x5a4dcf=_0x726de8['plugins']['get']('Users')['me'],_0x423d20=_0x56475a['getSuggestions']()['filter'](_0x5daeb7=>_0x5daeb7['isInContent']&&_0x5daeb7['author']==_0x5a4dcf),_0x3283ab=new Set(),_0x598cad=new Set();for(const _0x4336b7 of _0x423d20)if('tablePaste'==_0x4336b7['subType'])for(const _0x54218c of _0x4336b7['getMarkers']()){const _0x114942=_0x54218c['getRange']()['getContainedElement']();if(_0x114942){if(_0x114942['is']('element','tableCellSuggestion')&&ze(_0x114942)){_0x4336b7['removeMarker'](_0x54218c['name']),_0x3283ab['add'](_0x114942),_0x25e27a=!0x0;const _0x5540a3=_0x114942['nextSibling'],_0x455f4b=_0x114942['previousSibling'],_0x2b2059=_0x5540a3&&_0x5540a3['is']('element','tableCellSuggestion'),_0xedc3cd=_0x455f4b&&_0x455f4b['is']('element','tableCellSuggestion');_0x2b2059&&!_0x3283ab['has'](_0x5540a3)&&_0x598cad['add'](_0x5540a3),_0xedc3cd&&!_0x3283ab['has'](_0x455f4b)&&_0x598cad['add'](_0x455f4b);}else _0x114942['is']('element','paragraph')&&_0x114942['isEmpty']&&(_0x4336b7['removeMarker'](_0x54218c['name']),_0x25e27a=!0x0);}}else{if('tablePasteCell'==_0x4336b7['subType']){if(!_0x4336b7['attributes']||!_0x4336b7['attributes']['tablePasteChainId'])continue;const _0x51d01c=_0x4336b7['attributes']['markerAttributes'];if(_0x51d01c&&Object['keys'](_0x51d01c)['length'])continue;const _0x4123a8=_0x4336b7['attributes']['tablePasteChainId'];let _0x446f62=!0x0,_0x5c587a=!0x0;for(const _0x23ff38 of _0x423d20)if(_0x23ff38['subType']&&_0x23ff38['subType']['startsWith']('tablePaste')){if(!_0x23ff38['attributes']['tablePasteChainId']){_0x5c587a=!0x1;break;}if(_0x23ff38['id']!=_0x4336b7['id']&&_0x23ff38['attributes']['tablePasteChainId']==_0x4123a8){_0x446f62=!0x1;break;}}_0x5c587a&&_0x446f62&&(_0x4336b7['removeMarkers'](),_0x25e27a=!0x0);}}for(const _0x1c065a of _0x3283ab)_0x14af6e['remove'](_0x1c065a);for(const _0x940d54 of _0x598cad)_0x14af6e['unwrap'](_0x940d54);return _0x25e27a;}),_0x726de8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2e6f2c=>_0x1f2de9(_0x2e6f2c),'converterPriority':'high'}),_0x726de8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x53429f,_0x2f140d)=>_0x2f140d['options']['showSuggestionHighlights']?_0x1f2de9(_0x53429f,!0x1):null,'converterPriority':'high'});const _0xa08588=_0x726de8['editing']['view'];this['listenTo'](_0xa08588['document'],'clipboardOutput',(_0x2be47c,_0x4be851)=>{const _0x894465=[];for(const _0x1965f5 of _0xa08588['createRangeIn'](_0x4be851['content'])['getItems']())_0x1965f5['is']('element','suggestion-td')&&_0x894465['push'](_0x1965f5);_0xa08588['change'](_0x532961=>{for(const _0x1a9da9 of _0x894465)_0x532961['move'](_0x532961['createRangeIn'](_0x1a9da9),_0x532961['createPositionBefore'](_0x1a9da9)),_0x532961['remove'](_0x1a9da9);});});}};function ze(_0x55c45f){if(_0x55c45f['isEmpty'])return!0x0;const _0x3510a2=_0x55c45f['getChild'](0x0);return _0x3510a2['is']('element','paragraph')&&_0x3510a2['isEmpty'];}function Ke(_0x15803e,_0x5f372a={},_0x574708){for(const {isAnchor:_0x59fc0c,cellHeight:_0x1bc3d2,cellWidth:_0x2fdb62}of _0x574708['createTableWalker'](_0x15803e,{'includeAllSlots':!0x0,..._0x5f372a}))if(!_0x59fc0c||0x1!=_0x1bc3d2||0x1!=_0x2fdb62)return!0x1;return!0x0;}var Xe=class extends _0x253c9e{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2bf4c5=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bf4c5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x2bf4c5['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x2bf4c5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2bf4c5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x5cb18=_0x2bf4c5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x2bf4c5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x511e35,_0x5eeb3c)=>{_0x5cb18(_0x511e35,_0x5eeb3c),this['_restoreCellWidths'](_0x511e35[0x0]['start']['nodeAfter'],_0x5eeb3c['commandParams'][0x0]['cellWidths']);}),_0x2bf4c5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0xbd77ad,_0x2f0403){const _0x2ba60e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x195e61=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x20ddb0=_0x2f0403['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x18616f=_0x195e61['getColumnGroupElement'](_0x20ddb0);let _0x52ea36=_0x18616f?_0x195e61['getTableColumnsWidths'](_0x18616f):null,_0x2d9bb1=_0x20ddb0['getAttribute']('tableWidth')||null;const _0x14ab56=_0x2f0403['tableWidth']||_0x2d9bb1,_0x16cedb=_0x2f0403['columnWidths']||_0x52ea36;let _0x59930e=this['_getCellWidths'](_0x20ddb0);const _0x2b7a84=this['_foldResizeTableSuggestion'](_0x20ddb0);_0x2b7a84&&(_0x2d9bb1=_0x2b7a84['tableWidth'],_0x52ea36=_0x2b7a84['columnWidths'],_0x59930e=_0x2b7a84['cellWidths']||_0x59930e),_0xbd77ad({'table':_0x20ddb0,'tableWidth':_0x14ab56,'columnWidths':_0x16cedb}),_0x2ba60e['markBlockFormat'](_0x20ddb0,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2d9bb1,'columnWidths':_0x52ea36,'cellWidths':_0x59930e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x530e54,_0x53e36a={}){if(void 0x0===_0x53e36a['value']||''===_0x53e36a['value'])return void _0x530e54(_0x53e36a);const _0xc56b4c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x484ad2=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xf88579=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x53e36a['batch']||(_0x53e36a['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x53e36a['batch'],()=>{const _0x13953c=_0x484ad2['getColumnGroupElement'](_0xf88579);let _0x46b9d5=_0x13953c?_0x484ad2['getTableColumnsWidths'](_0x13953c):null,_0x5aed59=_0xf88579['getAttribute']('tableWidth')||null,_0x41475=this['_getCellWidths'](_0xf88579);const _0x5cc45e=this['_foldResizeTableSuggestion'](_0xf88579,!0x0);_0x5cc45e&&(_0x5aed59=_0x5cc45e['tableWidth'],_0x46b9d5=_0x5cc45e['columnWidths'],_0x41475=_0x5cc45e['cellWidths']||_0x41475),_0x530e54(_0x53e36a),_0xc56b4c['markBlockFormat'](_0xf88579,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5aed59,'columnWidths':_0x46b9d5,'cellWidths':_0x41475}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x6a1692,_0x2996b0=!0x1){const _0x585f2e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1afb49=this['editor']['plugins']['get']('Users')['me'];for(const _0x24eb9c of _0x585f2e['getSuggestions']({'skipNotAttached':!0x0})){const _0x5be350=_0x24eb9c['getContainedElement']();if('resizeTable'===_0x24eb9c['subType']&&_0x5be350===_0x6a1692){_0x24eb9c['author']!==_0x1afb49&&(_0x2996b0?_0x24eb9c['removeMarkers']():_0x24eb9c['discard']());const _0x379f13=_0x24eb9c['data']['commandParams'];return{'tableWidth':_0x379f13[0x0]['tableWidth'],'columnWidths':_0x379f13[0x0]['columnWidths'],'cellWidths':_0x379f13[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x29d4ec){const _0x446854=[];for(const _0x1ea7a2 of _0x29d4ec['getChildren']())if(_0x1ea7a2['is']('element','tableRow')){for(const _0x15141a of _0x1ea7a2['getChildren']())_0x446854['push'](_0x15141a['getAttribute']('tableCellWidth')||null);}return _0x446854;}_restoreCellWidths(_0x265d27,_0x2b0379){_0x2b0379&&this['editor']['model']['change'](_0x4f996d=>{let _0x3fd640=0x0;for(const _0x2ae035 of _0x265d27['getChildren']())if(_0x2ae035['is']('element','tableRow'))for(const _0x364d63 of _0x2ae035['getChildren']()){const _0x4c6077=_0x2b0379[_0x3fd640++];_0x4c6077&&_0x4f996d['setAttribute']('tableCellWidth',_0x4c6077,_0x364d63);}});}handleSuggestionDescription(_0x436dcd){if('formatBlock'!=_0x436dcd['type']&&'formatInline'!=_0x436dcd['type'])return;const {data:_0x41d997}=_0x436dcd;return _0x41d997&&'resizeTable'===_0x41d997['formatGroupId']?{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},qe=class extends _0x253c9e{afterInit(){const _0xd367de=this['editor'];_0xd367de['plugins']['has']('Template')&&_0xd367de['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ye=class extends _0x253c9e{afterInit(){const _0x2e7dcb=this['editor'];if(!_0x2e7dcb['commands']['get']('insertTableOfContents'))return;_0x2e7dcb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2667ae=_0x2e7dcb['plugins']['get']('TrackChangesEditing'),_0x5a3153=_0x2e7dcb['locale'];_0x2667ae['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4c2711=>Mt(_0x5a3153,'ELEMENT_TABLE_OF_CONTENTS',_0x4c2711));}},Qe=class extends _0x253c9e{afterInit(){const _0x9a8aa9=this['editor'];_0x9a8aa9['plugins']['has']('Title')&&(_0x9a8aa9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Mt(_0x9a8aa9['locale'],'ELEMENT_TITLE')),_0x9a8aa9['model']['document']['registerPostFixer'](_0x6ff6fb=>{let _0x588227=!0x1;const _0xeabc09=Array['from'](_0x9a8aa9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f7600,data:_0x38ee50}of _0xeabc09){const {group:_0x5421b6}=tt(_0x2f7600);if('suggestion'!==_0x5421b6||!_0x38ee50['newRange'])continue;const _0x4a7086=_0x38ee50['newRange'],_0x4a4fac=_0x4a7086['end']['nodeBefore'];if(!_0x4a4fac||!_0x4a4fac['is']('element','title-content'))continue;if(!_0x4a7086['start']['isTouching'](_0x4a7086['end']))continue;const _0x535843=_0x9a8aa9['model']['schema']['getNearestSelectionRange'](_0x4a7086['end'],'forward');if(_0x535843&&_0x535843['isCollapsed']){const _0x25bbc7=_0x6ff6fb['createRange'](_0x4a7086['start'],_0x535843['start']);_0x25bbc7['isEqual'](_0x4a7086)||(_0x6ff6fb['updateMarker'](_0x2f7600,{'range':_0x25bbc7}),_0x588227=!0x0);}_0x588227||(_0x6ff6fb['removeMarker'](_0x2f7600),_0x588227=!0x0);}return _0x588227;}));}},Ze=class extends _0x253c9e{afterInit(){const _0x55a823=this['editor'],_0x179c0a=_0x55a823['plugins']['get']('TrackChangesEditing');_0x55a823['plugins']['has']('Uploadcare')&&(_0x179c0a['enableCommand']('uploadcare'),_0x55a823['plugins']['has']('UploadcareImageEdit')&&(_0x179c0a['enableCommand']('uploadcareImageEdit'),_0x179c0a['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x179c0a['descriptionFactory']['registerDescriptionCallback'](_0x499f55=>{if('attribute'!=_0x499f55['type'])return;const {data:_0x40a1a9}=_0x499f55;return _0x40a1a9&&'uploadcareImageId'==_0x40a1a9['key']?{'type':'format','content':''}:void 0x0;})));}},Je=class extends _0x253c9e{afterInit(){const _0x23b8d3=this['editor'],_0x59debc=_0x23b8d3['plugins']['get']('TrackChangesEditing');_0x23b8d3['plugins']['has']('UndoEditing')&&(_0x59debc['enableCommand']('undo'),_0x59debc['enableCommand']('redo'));}},tn=class extends _0x253c9e{static get requires(){return[Ue];}afterInit(){const _0x124811=this['editor'];_0x124811['plugins']['has']('TableCaptionEditing')&&_0x124811['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},en=class extends _0x253c9e{tableProperties;tableCellProperties;constructor(_0x287135){super(_0x287135),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x29256c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x79ffbd of this['tableProperties'])_0x29256c['enableCommand'](_0x79ffbd,(_0x3d0149,_0xaf9f74)=>{const _0x371240=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x79ffbd,[_0x371240],this['tableProperties'],'tableProperties',_0x3d0149,_0xaf9f74);});_0x29256c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x29256c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x29256c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2d3edb,_0x1be660)=>this['handleDiscardAction'](this['tableProperties'],_0x2d3edb,_0x1be660)),_0x29256c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5b0ff3 of this['tableCellProperties'])this['editor']['commands']['get'](_0x5b0ff3)&&_0x29256c['enableCommand'](_0x5b0ff3,(_0x1404c4,_0x58199a)=>{const _0x4381fb=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5b0ff3,_0x4381fb,this['tableCellProperties'],'tableCellProperties',_0x1404c4,_0x58199a);});_0x29256c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x29256c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x29256c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4eeb90,_0x316e81)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4eeb90,_0x316e81)),_0x29256c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x29256c['descriptionFactory']['registerAttributeLabel']('tableCellType',Mt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x29256c['descriptionFactory']['registerDescriptionCallback'](_0x592138=>this['handleSuggestionDescription'](_0x592138)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x27f2f9,_0x40a4f4,_0x197642,_0x545443,_0x22ff1c,_0x433df9){const _0x59cf6a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x433df9['batch'],()=>{for(const _0x366ee1 of _0x40a4f4)if(this['_getSuggestion'](_0x366ee1,_0x545443))_0x22ff1c(_0x433df9);else{const _0x3a8963={};for(const _0x1d3c95 of _0x197642){const _0x159639=_0x366ee1['getAttribute'](_0x1d3c95);void 0x0!==_0x159639&&(_0x3a8963[_0x1d3c95]=_0x159639);}const _0x4d0b57=this['_getResizedColumnWidths'](_0x366ee1);_0x4d0b57&&(_0x3a8963['columnWidths']=_0x4d0b57),_0x22ff1c(_0x433df9),_0x59cf6a['markBlockFormat'](_0x366ee1,{'commandParams':[_0x3a8963]},[],_0x545443);}});}handleDiscardAction(_0x409ca0,_0x1d8268,_0x3d301e){const _0x50569c=_0x1d8268[0x0]['start']['nodeAfter'],_0x4ea86a=_0x3d301e['commandParams'][0x0];this['editor']['model']['change'](_0x287c42=>{for(const _0x2e25bd of _0x409ca0)void 0x0!==_0x4ea86a[_0x2e25bd]?_0x287c42['setAttribute'](_0x2e25bd,_0x4ea86a[_0x2e25bd],_0x50569c):_0x287c42['removeAttribute'](_0x2e25bd,_0x50569c);if(_0x4ea86a['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x45bd4a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x350f15=_0x45bd4a['getColumnGroupElement'](_0x50569c);if(_0x350f15){const _0x2af6de=_0x45bd4a['getTableColumnsWidths'](_0x350f15),_0x16ee2b=_0x50569c['getAttribute']('tableWidth');if(('string'==typeof _0x16ee2b&&_0x16ee2b['trim']()['endsWith']('px'))!==_0x2af6de['some'](_0x4b8990=>'string'==typeof _0x4b8990&&_0x4b8990['endsWith']('px'))){const _0x121e1b=_0x45bd4a['getTableColumnElements'](_0x350f15);_0x4ea86a['columnWidths']['forEach']((_0x307c8c,_0x385a4f)=>{_0x121e1b[_0x385a4f]&&_0x287c42['setAttribute']('columnWidth',_0x307c8c,_0x121e1b[_0x385a4f]);});}}}});}_getResizedColumnWidths(_0x2429a9){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x2429a9['is']('element','table'))return;const _0x2e0bde=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x21c32d=_0x2e0bde['getColumnGroupElement'](_0x2429a9);return _0x21c32d?_0x2e0bde['getTableColumnsWidths'](_0x21c32d):void 0x0;}handleSuggestionDescription(_0xf2afd6){if(_0xf2afd6['data'])switch(_0xf2afd6['subType']){case'tableProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x3a7c8e,_0x15fd22){const _0x45caca=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3a6c34 of _0x45caca['getSuggestions']({'skipNotAttached':!0x0})){const _0x386a62=_0x3a6c34['getContainedElement']();if(_0x3a6c34['subType']===_0x15fd22&&_0x386a62===_0x3a7c8e)return _0x3a6c34;}return null;}_registerTablePropertiesAttributes(){const _0x40aeef=this['editor']['plugins']['get']('TrackChangesEditing'),_0xea9dde=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x23bb48 of _0xea9dde){const _0x33a44a=_0x23bb48['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x40aeef['descriptionFactory']['registerAttributeLabel'](_0x23bb48,Mt(this['editor']['locale'],'FORMAT_'+_0x33a44a));}}},nn=class extends _0x253c9e{afterInit(){const _0x225d00=this['editor'];if(!_0x225d00['plugins']['has']('LineHeight'))return;const _0x5ab31d=_0x225d00['plugins']['get']('TrackChangesEditing'),_0x3a114a=_0x225d00['locale'];_0x5ab31d['enableDefaultAttributesIntegration']('lineHeight'),_0x5ab31d['descriptionFactory']['registerAttributeLabel']('lineHeight',Mt(_0x3a114a,'FORMAT_LINE_HEIGHT'));}};const sn='$elementName';function rn(_0xf1b632){return'marker'==_0xf1b632['type']&&_0xf1b632['name']['startsWith']('$markedRemove');}var on=class extends _0x253c9e{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0xfa421f,_0x5f5768,_0x23536b,_0x1e7c99,wt,Ft,Bt,vt,Ut,Pt,Gt,$t,Ht,Wt,Vt,zt,Kt,Jt,te,ee,ie,se,re,ae,ce,le,ue,de,he,fe,ge,me,Ee,Te,pe,Ae,ye,_e,Xt,nn,Yt,be,ke,Ce,Re,Ne,Se,Me,Oe,we,Fe,ve,De,Ue,xe,Ge,He,$e,tn,je,Xe,Ye,en,qe,Qe,Ze,Je];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f4d5f){super(_0x3f4d5f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x51b68d,_0x757899,_0x431190,_0x2da593)=>{this['_model']['change'](()=>{for(const _0x55486e of[..._0x2da593,..._0x431190])this['_model']['markers']['has'](_0x55486e)&&_0x3f4d5f['editing']['reconvertMarker'](_0x55486e);});}),this['descriptionFactory']=new Ot(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new an(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3f4d5f['plugins']['get'](_0xfa421f),this['_suggestionsConversion']=_0x3f4d5f['plugins']['get'](_0x5f5768),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x3f4d5f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3f4d5f['config']['get']('trackChanges.trackFormatChanges'),_0x3f4d5f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3f4d5f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Tt(_0x3f4d5f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x339a52=this['editor'];_0x339a52['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x445920,{writer:_0x571365})=>{let _0x12941a='suggestion:'+_0x445920['getAttribute']('suggestion-type')+':'+_0x445920['getAttribute']('id');return _0x445920['getAttribute']('marker-count')&&(_0x12941a+=':'+_0x445920['getAttribute']('marker-count')),_0x571365['createElement']('$marker',{'data-name':_0x12941a});}}),_0x339a52['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x339a52['model']['document']['registerPostFixer'](_0x39c014=>{let _0x589878=!0x1;const _0x453a75=Array['from'](_0x339a52['model']['document']['differ']['getChangedMarkers']()),_0x30a19f=new Set();for(const {name:_0x390904,data:_0x2eab5e}of _0x453a75){const {group:_0x233c1d,type:_0x2c6d0e,subType:_0x2e4368,id:_0x14af64}=tt(_0x390904);if('suggestion'!==_0x233c1d)continue;const _0x5dd11b=_0x2e4368?'suggestion:'+_0x2c6d0e+':'+_0x2e4368+':'+_0x14af64:'suggestion:'+_0x2c6d0e+':'+_0x14af64,_0x5e2d79=_0x339a52['model']['markers']['getMarkersGroup'](_0x5dd11b),_0x342e94=_0x339a52['model']['markers']['get'](_0x390904),_0x1ea554=this['_suggestions']['get'](_0x14af64);if(null!=_0x2eab5e['newRange']){'formatInline'==_0x2c6d0e&&(_0x589878=_0x589878||un(_0x2eab5e['newRange'],_0x390904,_0x39c014,_0x339a52['model']['schema']));const _0x993f9c='attribute'==_0x2c6d0e&&this['_suggestionsConversion']['isBlockAttribute'](In(_0x2e4368)),_0xd93bac='attribute'==_0x2c6d0e&&this['_suggestionsConversion']['isInlineAttribute'](In(_0x2e4368));if(_0x2eab5e['newRange']['isCollapsed']||'$graveyard'==_0x2eab5e['newRange']['root']['rootName']||'formatBlock'==_0x2c6d0e&&!hn(_0x2eab5e['newRange'])||_0x993f9c&&!hn(_0x2eab5e['newRange'])||_0xd93bac&&gn(_0x2eab5e['newRange'])||'deletion'==_0x2c6d0e&&gn(_0x2eab5e['newRange'])||_0x342e94&&fn(_0x342e94,_0x5e2d79))_0x39c014['removeMarker'](_0x390904),_0x589878=!0x0;else{if(!_0x1ea554||!_0x1ea554['isInContent'])continue;if(_0x2eab5e['newRange']&&_0x2eab5e['oldRange']&&_0x2eab5e['newRange']['isEqual'](_0x2eab5e['oldRange']))continue;_0x30a19f['add'](_0x1ea554);}}}return _0x30a19f['size']>0x0&&(_0x589878=!!this['_joinWithAdjacentSuggestions'](_0x30a19f)||_0x589878),_0x589878;}),_0x339a52['model']['document']['registerPostFixer'](_0x3acba6=>{let _0x4dfcbc=!0x1;for(const _0x4a4e7a of _0x339a52['model']['document']['differ']['getChanges']())if('insert'==_0x4a4e7a['type'])for(const _0x2a9f96 of this['_suggestions']['values']()){if(_0x2a9f96['isMultiRange']||!_0x2a9f96['isInContent'])continue;const _0x48bdb4='formatBlock'==_0x2a9f96['type'],_0x5c807e=this['_getAttributeKey'](_0x2a9f96),_0x290b68=_0x5c807e&&this['_suggestionsConversion']['isBlockAttribute'](_0x5c807e);if(!_0x48bdb4&&!_0x290b68)continue;const _0x9ff565=_0x2a9f96['getFirstRange']();if(_0x9ff565['start']['parent']!=_0x9ff565['end']['parent']&&!_0x9ff565['end']['isAtEnd']){const _0x59f62b=_0x339a52['model']['createPositionAt'](_0x9ff565['start']['nodeAfter'],'end'),_0x206774=_0x339a52['model']['createRange'](_0x9ff565['start'],_0x59f62b);_0x3acba6['updateMarker'](_0x2a9f96['getFirstMarker'](),{'range':_0x206774}),_0x4dfcbc=!0x0;}}return _0x4dfcbc;}),_0x339a52['model']['document']['registerPostFixer'](_0x51236c=>this['_processAttributeChanges'](_0x51236c)),_0x339a52['model']['document']['registerPostFixer'](_0x12bf90=>!_0x12bf90['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x12bf90)),_0x339a52['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x339a52['model']['document']['on']('change:data',(_0x431435,_0x13eb03)=>{if(!_0x13eb03['isLocal']||_0x13eb03['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1222a6=_0x339a52['model']['document']['differ']['getChanges']();if(0x0==_0x1222a6['length'])return;const _0x53d58c=[],_0xe12cf8=_0x1222a6['filter'](_0x85940c=>'attribute'==_0x85940c['type']),_0x2a4606=_0x1222a6['filter'](_0x1878c2=>'insert'==_0x1878c2['type']&&'$text'!=_0x1878c2['name']);for(const _0x56222d of _0xe12cf8)this['_suggestionsConversion']['isRegisteredAttribute'](_0x56222d['attributeKey'])&&_0x53d58c['push']({'key':_0x56222d['attributeKey'],'newValue':_0x56222d['attributeNewValue'],'oldValue':_0x56222d['attributeOldValue'],'range':mn(_0x56222d['range'],_0x339a52['model'])});for(const _0x5c8770 of _0x2a4606){if('rename'!=_0x5c8770['action']&&'refresh'!=_0x5c8770['action'])continue;const _0x558455=En(_0x5c8770['position']['nodeAfter'],_0x339a52['model']),_0x2544a2=_0x5c8770['before'];'rename'==_0x5c8770['action']&&_0x53d58c['push']({'key':sn,'newValue':_0x5c8770['name'],'oldValue':_0x2544a2['name'],'range':_0x558455});for(const [_0x3713b5,_0x19b031]of _0x2544a2['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3713b5))continue;const _0x37cb67=_0x5c8770['attributes']['get'](_0x3713b5);_0x19b031!==_0x37cb67&&_0x53d58c['push']({'key':_0x3713b5,'newValue':_0x37cb67,'oldValue':_0x19b031,'range':_0x558455});}for(const [_0x2ac212,_0x5767a4]of _0x5c8770['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x2ac212)&&(_0x2544a2['attributes']['has'](_0x2ac212)||_0x53d58c['push']({'key':_0x2ac212,'newValue':_0x5767a4,'oldValue':null,'range':_0x558455}));}0x0!=_0x53d58c['length']&&_0x339a52['model']['enqueueChange'](_0x13eb03,_0x48e1e8=>{const _0x4db9fa=_0x29a7da();for(const {range:_0x31ea99,key:_0x2ccd26,oldValue:_0x3152bc,newValue:_0x107e99}of _0x53d58c)this['markAttributeChange'](_0x31ea99,_0x2ccd26,_0x3152bc,_0x107e99,{'groupId':_0x4db9fa});this['_reduceExistingSuggestions'](_0x48e1e8,_0x53d58c);});},{'priority':'lowest'}),_0x339a52['model']['markers']['on']('update:suggestion',(_0x30106b,_0x1b25f0,_0x122fdd)=>{if(null==_0x122fdd){const {id:_0x416530}=tt(_0x1b25f0['name']),_0x237d21=this['_suggestions']['get'](_0x416530);_0x237d21&&_0x237d21['addMarkerName'](_0x1b25f0['name']);}}),_0x339a52['model']['document']['on']('change:data',()=>{const _0x5bee28=Array['from'](_0x339a52['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1c9f88=>'suggestion'===tt(_0x1c9f88['name'])['group']);if(0x0===_0x5bee28['length'])return;_0x5bee28['sort']((_0x4b38a9,_0x186070)=>{const _0x383cd4=_0x4b38a9['data']['oldRange'],_0x997db2=_0x186070['data']['oldRange'];return null===_0x383cd4&&null===_0x997db2?0x0:null===_0x383cd4&&null!==_0x997db2?-0x1:null!==_0x383cd4&&null===_0x997db2?0x1:_0x383cd4['start']['isBefore'](_0x997db2['start'])?-0x1:0x1;});const _0x59f017=new Set(),_0x193ccd=new Set();for(const {name:_0x24840f,data:_0x4959ed}of _0x5bee28){const {id:_0x13072c}=tt(_0x24840f);if(null===_0x4959ed['oldRange']){const _0x63ae63=this['_handleNewSuggestionMarker'](_0x24840f);_0x193ccd['add'](_0x63ae63);}else{const _0x2712b4=this['_suggestions']['get'](_0x13072c);null!==_0x4959ed['newRange']||_0x2712b4['isInContent']?(_0x59f017['add'](_0x2712b4['head']),_0x193ccd['add'](_0x2712b4)):this['_removeSuggestion'](_0x2712b4);}}_0x193ccd['size']>0x0&&this['_refreshSuggestionsChain'](_0x193ccd);for(const _0x23c773 of _0x59f017)this['fire']('suggestionChanged',_0x23c773);}),_0x339a52['model']['on']('applyOperation',(_0x1a7f9c,_0x1d7c11)=>{const _0x340aa8=_0x1d7c11[0x0];if(!this['_suggestions']['size'])return;if(!_0x340aa8['isDocumentOperation'])return;if(_0x340aa8['batch']['isUndo']||!_0x340aa8['batch']['isLocal'])return;let _0x1be0b7,_0x1cb31f;switch(_0x340aa8['type']){case'insert':_0x1be0b7=_0x339a52['model']['createPositionAt'](_0x340aa8['position']),_0x1cb31f=_0x1be0b7['getShiftedBy'](_0x340aa8['howMany']);break;case'split':_0x1be0b7=_0x339a52['model']['createPositionAt'](_0x340aa8['splitPosition']),_0x1cb31f=_0x339a52['model']['createPositionAt'](_0x340aa8['moveTargetPosition']);break;case'move':_0x1be0b7=_0x339a52['model']['createPositionAt'](_0x340aa8['targetPosition']),_0x1cb31f=_0x1be0b7['getShiftedBy'](_0x340aa8['howMany']);break;default:return;}const _0x1f357a=_0x339a52['model']['createRange'](_0x1be0b7,_0x1cb31f);_0x339a52['model']['change'](()=>{for(const {suggestion:_0x54b48e,meta:_0x34390a}of this['_findSuggestions'](_0x1f357a)){if(_0x54b48e['isMultiRange'])continue;if('formatInline'==_0x54b48e['type'])continue;const _0x1337d2=this['_getAttributeKey'](_0x54b48e);if(_0x1337d2&&this['_suggestionsConversion']['isBlockAttribute'](_0x1337d2)&&'split'!=_0x340aa8['type'])continue;const _0x15238d=_0x54b48e['data']&&_0x54b48e['data']['multipleBlocks'];('formatBlock'!=_0x54b48e['type']||'split'==_0x340aa8['type']&&!_0x15238d)&&(_0x34390a['containsRangeInObject']||'insertion'==_0x54b48e['type']&&_0x34390a['isOwn']||_0x54b48e['getFirstRange']()['containsRange'](_0x1f357a)&&this['_breakSuggestionMarker'](_0x54b48e,_0x1be0b7,_0x1cb31f));}});},{'priority':'lowest'}),_0x339a52['model']['on']('deleteContent',(_0x3f0a82,_0x2e1cef)=>{const _0x3855b0=_0x2e1cef[0x0],_0x3220a6=_0x2e1cef[0x1];if(_0x3220a6&&_0x3220a6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3855b0['isCollapsed'])return;const _0x259ba0=_0x339a52['model']['schema'],{start:_0x775b46,end:_0x4e8bd8}=_0x3855b0['getFirstRange'](),_0x13d1ec=_0x775b46['nodeAfter']&&_0x259ba0['isLimit'](_0x775b46['nodeAfter'])?null:_0x259ba0['getNearestSelectionRange'](_0x775b46,'forward'),_0xe82e52=_0x4e8bd8['nodeBefore']&&_0x259ba0['isLimit'](_0x4e8bd8['nodeBefore'])?null:_0x259ba0['getNearestSelectionRange'](_0x4e8bd8,'backward'),_0x341964=_0x339a52['model']['createRange'](_0x13d1ec?_0x13d1ec['start']:_0x775b46,_0xe82e52?_0xe82e52['end']:_0x4e8bd8);_0x339a52['model']['change'](_0x591475=>{this['markDeletion'](_0x341964);const _0x3c6c8d=_0x339a52['model']['schema']['getNearestSelectionRange'](_0x341964['start']);_0x3855b0['is']('documentSelection')?_0x591475['setSelection'](_0x3c6c8d):_0x3855b0['setTo'](_0x3c6c8d);}),_0x3f0a82['stop']();},{'priority':_0x176cca['normal']+0xa}),_0x339a52['model']['on']('insertContent',(_0x155180,_0x2c1614)=>{const _0x362dfe=_0x2c1614[_0x2c1614['length']-0x1];_0x362dfe&&_0x362dfe['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x339a52['model']['change'](()=>{let _0x15ea34=_0x339a52['model']['insertContent'](_0x2c1614[0x0],_0x2c1614[0x1],_0x2c1614[0x2],{'forceDefaultExecution':!0x0});if(!_0x15ea34)return;_0x155180['return']=_0x15ea34['clone']();const _0x5d1036=_0x15ea34['end']['nodeBefore'],_0x4124df=_0x339a52['model']['schema'];_0x5d1036&&_0x4124df['isBlock'](_0x5d1036)&&!_0x4124df['isObject'](_0x5d1036)&&(_0x15ea34=_0x339a52['model']['createRange'](_0x15ea34['start'],_0x339a52['model']['createPositionAt'](_0x5d1036,'end'))),this['markInsertion'](_0x15ea34);}),_0x155180['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1c61c1=new _t(_0x339a52,this['_suggestions']);_0x339a52['commands']['add']('acceptSuggestion',_0x1c61c1),this['enableCommand']('acceptSuggestion');const _0x19da45=new pt(_0x339a52,this['_suggestions']);_0x339a52['commands']['add']('discardSuggestion',_0x19da45),this['enableCommand']('discardSuggestion'),_0x339a52['commands']['add']('acceptAllSuggestions',new Rt(_0x339a52,_0x1c61c1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x339a52['commands']['add']('discardAllSuggestions',new Rt(_0x339a52,_0x19da45,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x339a52['commands']['add']('acceptSelectedSuggestions',new yt(_0x339a52,_0x1c61c1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x339a52['commands']['add']('discardSelectedSuggestions',new yt(_0x339a52,_0x19da45,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x137ccc=_0x339a52['plugins']['get'](_0xfa421f);this['listenTo'](_0x137ccc,'addComment',(_0x1592cf,{threadId:_0xfbc33c})=>{const _0x3871bc=this['_suggestions']['get'](_0xfbc33c);_0x3871bc&&_0x3871bc['commentThread']&&0x1===_0x3871bc['commentThread']['length']&&this['_updateSuggestionData'](_0xfbc33c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x137ccc,'removeComment',(_0x430575,{threadId:_0x156032})=>{const _0x14933f=this['_suggestions']['get'](_0x156032);_0x14933f&&_0x14933f['commentThread']&&!_0x14933f['commentThread']['length']&&this['_updateSuggestionData'](_0x156032,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x20113a){const _0x4cfa41='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x587263=0x79428,_0x2b27a3={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x24cf72(_0x4f1acf){const _0x2d6382=new window['Promise'](_0x154536=>{_0x4f1acf['once']('ready',_0x154536);}),_0xa4ea76=window['Date']['now'](),_0x4ba4fc=_0x4f1acf['config']['get']('licenseKey');async function _0x4e1833(){let _0xc084cc,_0x2702c6=null,_0x544585=null;try{return'GPL'==_0x4ba4fc?'NotAllowed':(_0xc084cc=_0x53addc(),_0xc084cc?(_0xc084cc['usageEndpoint']&&(_0x544585=_0x17cd06(_0xc084cc['usageEndpoint'],_0xc084cc['jti'])),await _0x405358()?_0x325d47()?_0x5366fd()?'Expired':_0x13a100()?('evaluation'==_0xc084cc['licenseType']&&(_0x2702c6=_0x3b8862('EvaluationLimit')),await _0x5dbc58()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x5366fd(){const _0x5c7192=['evaluation','trial']['includes'](_0xc084cc['licenseType'])?_0xa4ea76/0x3e8:0xe10*_0x587263;return _0xc084cc['exp']<_0x5c7192;}function _0x325d47(){const _0x4c4fbb=_0xc084cc['features'];if(!_0x4c4fbb)return!0x1;if(_0x4c4fbb['includes']('*'))return!0x0;if(_0x4c4fbb['includes']('TC'))return!0x0;if(_0x4c4fbb['includes']('RTC')){if(_0x3fb8de())return!0x0;if(_0x16d187()||_0x14e2b9())return!0x0;}return!0x1;}function _0x13a100(){const _0x495dc7=_0xc084cc['licensedHosts'];if(!_0x495dc7||0x0==_0x495dc7['length'])return!0x0;const {hostname:_0x39b9a6}=new URL(window['location']['href']);if(_0x495dc7['includes'](_0x39b9a6))return!0x0;const _0x2e4af9=_0x39b9a6['split']('.');return _0x495dc7['filter'](_0x17adbc=>_0x17adbc['includes']('*'))['map'](_0x25335d=>_0x25335d['split']('.'))['filter'](_0x5248f2=>_0x5248f2['length']<=_0x2e4af9['length'])['map'](_0xd1c3ad=>Array(_0x2e4af9['length']-_0xd1c3ad['length'])['fill']('*'===_0xd1c3ad[0x0]?'*':'')['concat'](_0xd1c3ad))['some'](_0xbb8492=>_0x2e4af9['every']((_0x217c25,_0x1c065b)=>_0xbb8492[_0x1c065b]===_0x217c25||'*'===_0xbb8492[_0x1c065b]));}function _0x5dbc58(){return _0x2702c6&&_0x544585?new window['Promise']((_0x668703,_0x16f472)=>{_0x2702c6['then'](_0x668703,_0x16f472),_0x544585['then'](_0x304b66=>{'Valid'!=_0x304b66&&_0x668703(_0x304b66);},_0x16f472);}):_0x2702c6||_0x544585||'Valid';}}function _0x17cd06(_0x1de2b1,_0x650c55){return new window['Promise'](_0x50dac7=>{if(_0xe939c())return _0x50dac7('Valid');_0x1cb662(),_0x4f1acf['decorate']('_sendUsageRequest');let _0x435aa7=!0x1;const _0x43c04c=_0x29a7da();function _0x446f8c(_0x96cd68){return!!_0x96cd68&&('object'==typeof _0x96cd68||'function'==typeof _0x96cd68)&&'function'==typeof _0x96cd68['then']&&'function'==typeof _0x96cd68['catch'];}function _0x5b7b9e(_0x1ed9a6){_0x2d967d(_0x1ed9a6)['then'](_0x2c800f=>_0x2c800f&&'ok'==_0x2c800f['status']?_0xe9b688(_0x512771(_0x43c04c+_0x650c55))!=_0x2c800f['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x591e21=>(_0x1bd1b0(),_0x591e21),()=>{const _0x59042c=_0x3e8ad3();return null==_0x59042c?(_0x1bd1b0(),'Valid'):_0xa4ea76-_0x59042c>0x240c8400?'UsageLimit':'Valid';})['then'](_0x50dac7)['catch'](()=>{_0x50dac7('UsageLimit');});const _0x48a5d5=0x36ee80;function _0x1bd1b0(){const _0x52bc04='llct-'+_0xe9b688(_0x512771(_0x1de2b1)),_0x2ff79f=_0x444cb6(_0xe9b688(window['Math']['ceil'](_0xa4ea76/_0x48a5d5)));window['localStorage']['setItem'](_0x52bc04,_0x2ff79f);}function _0x3e8ad3(){const _0x292fd6='llct-'+_0xe9b688(_0x512771(_0x1de2b1)),_0x406851=window['localStorage']['getItem'](_0x292fd6);return _0x406851?window['parseInt'](_0x444cb6(_0x406851),0x10)*_0x48a5d5:null;}function _0x2d967d(_0x583f0d){return new window['Promise']((_0x16f16d,_0x56c536)=>{_0x583f0d['then'](_0x16f16d,_0x56c536),window['setTimeout'](_0x56c536,0x1d4c0);});}}_0x4f1acf['on']('_sendUsageRequest',(_0x91f98e,_0x26f428)=>{if(_0x26f428[0x0]!=_0x1de2b1)return _0x50dac7('UsageLimit');_0x26f428[0x1]={..._0x26f428[0x1],'requestId':_0x43c04c};},{'priority':'high'}),_0x4f1acf['on']('_sendUsageRequest',_0x2ee5a8=>{_0x446f8c(_0x2ee5a8['return'])&&(_0x435aa7=!0x0,_0x5b7b9e(_0x2ee5a8['return']));},{'priority':'low'}),_0x2d6382['then'](()=>{_0x435aa7||_0x50dac7('UsageLimit');});});function _0xe939c(){return'auto'==_0x4f1acf['editing']['view']['_overlayModeHint'];}function _0x1cb662(){_0x4f1acf['editing']['view']['_overlayModeHint']='auto';}}function _0x3b8862(_0x1ec500){const _0x40061a=[new window['Promise'](_0x288b4b=>setTimeout(_0x288b4b,0x93ecc)),_0x2d6382['then'](()=>new window['Promise'](_0x413628=>{let _0x47d26a=0x0;_0x4f1acf['model']['on']('applyOperation',(_0x5ab44c,_0x2395cc)=>{_0x2395cc[0x0]['isDocumentOperation']&&_0x47d26a++,0x5e8==_0x47d26a&&(_0x413628(),_0x5ab44c['off']());});}))];return window['Promise']['race'](_0x40061a)['then'](()=>_0x1ec500);}async function _0x5b1eaa(){await _0x2d6382,_0x4f1acf['model']['change']=_0x9baf92,_0x4f1acf['model']['enqueueChange']=_0x9baf92,_0x4f1acf['enableReadOnlyMode']('model');}function _0x3fb8de(){return _0x3a30ea('WebSocketGateway')&&'connected'==_0x3d8e88('WebSocketGateway')['state'];}function _0x16d187(){return _0x3a30ea('RevisionViewerIntegration');}function _0x14e2b9(){return _0x3a30ea('TrackChangesDataGetter');}function _0x2c1817(_0x5a5459){const _0xe890f2=_0x1dce30();_0x4f1acf[_0xe890f2]='trackChangesLicenseKey'+_0x5a5459,'Valid'!=_0x5a5459&&_0x5b1eaa();}function _0x1dce30(){const _0x47ce9a=window['String'](window['performance']['now']())['replace']('.','');let _0x25b950='U';for(let _0x4887a1=0x0;_0x4887a1<_0x47ce9a['length'];_0x4887a1+=0x2){let _0x500dab=window['parseInt'](_0x47ce9a['substring'](_0x4887a1,_0x4887a1+0x2));_0x500dab>=0x3e&&(_0x500dab-=0x3e),_0x25b950+=_0x4cfa41[_0x500dab];}return _0x25b950;}function _0x53addc(){const _0x30c0a4=_0x4ba4fc['split']('.');if(0x3!=_0x30c0a4['length'])return null;return _0x4369f9(_0x30c0a4[0x1]);function _0x4369f9(_0xb85fa6){const _0x224da7=_0x20e423(_0xb85fa6);return _0x224da7&&_0x1a859f()?_0x224da7:null;function _0x1a859f(){const _0x434bc9=_0x224da7['jti'],_0x3cadc7=window['parseInt'](_0x434bc9['substring'](_0x434bc9['length']-0x8),0x10),_0x22f0cd={..._0x224da7,'jti':_0x434bc9['substring'](0x0,_0x434bc9['length']-0x8)};return delete _0x22f0cd['vc'],_0x512771(_0x22f0cd)==_0x3cadc7;}}}async function _0x405358(){let _0x5e5339=!0x0;try{const [_0x382793,_0xf8c659,_0x4799d3]=_0x4ba4fc['split']('.');return _0x2e7bb4(_0x382793),await _0x282493(_0x382793,_0xf8c659,_0x4799d3),_0x5e5339;}catch{return!0x1;}function _0x2e7bb4(_0x299250){const _0x193cd1=_0x20e423(_0x299250);_0x193cd1&&'ES256'==_0x193cd1['alg']||(_0x5e5339=!0x1);}async function _0x282493(_0x18220f,_0x589748,_0x222d43){const _0x9ea480=window['Uint8Array']['from'](_0x367cad(_0x222d43),_0x2b043f=>_0x2b043f['charCodeAt'](0x0)),_0x5f596e=new window['TextEncoder']()['encode'](_0x18220f+'.'+_0x589748),_0x22e89e=window['crypto']['subtle'];if(!_0x22e89e)return;const _0x3ccddb=await _0x22e89e['importKey']('jwk',_0x2b27a3,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x22e89e['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3ccddb,_0x9ea480,_0x5f596e)||(_0x5e5339=!0x1);}}function _0x20e423(_0x29c607){return _0x29c607['startsWith']('ey')?JSON['parse'](_0x367cad(_0x29c607)):null;}function _0x367cad(_0x273a47){return window['atob'](_0x273a47['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x512771(_0x9f517f){let _0x22c2a4=0x1505;function _0x5254ce(_0x4cfb97){for(let _0x50ab32=0x0;_0x50ab32<_0x4cfb97['length'];_0x50ab32++){const _0x1af86b=_0x4cfb97['charCodeAt'](_0x50ab32);_0x22c2a4=(_0x22c2a4<<0x5)+_0x22c2a4+_0x1af86b,_0x22c2a4&=_0x22c2a4;}}function _0x3a0dc4(_0x38a47c){Array['isArray'](_0x38a47c)?_0x38a47c['forEach'](_0x3a0dc4):_0x38a47c&&'object'==typeof _0x38a47c?Object['entries'](_0x38a47c)['sort']()['forEach'](([_0x4dcfdd,_0x26abe9])=>{_0x5254ce(_0x4dcfdd),_0x3a0dc4(_0x26abe9);}):_0x5254ce(window['String'](_0x38a47c));}return _0x3a0dc4(_0x9f517f),_0x22c2a4>>>0x0;}function _0xe9b688(_0x49f118){return _0x49f118['toString'](0x10)['padStart'](0x8,'0');}function _0x444cb6(_0x43fb5a){return _0x43fb5a['split']('')['reverse']()['join']('');}function _0x3a30ea(_0xc47042){return _0x4f1acf['plugins']['has'](_0xc47042);}function _0x3d8e88(_0x40169e){return _0x4f1acf['plugins']['get'](_0x40169e);}function _0x9baf92(){}_0x2c1817(await _0x4e1833());}_0x24cf72(_0x20113a['editor']);}(this);}set adapter(_0x468665){if(this['_adapter'])throw new _0x2b818d('track-changes-adapter-already-set',this);this['_adapter']=_0x468665;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x154252=!0x1,toJSON:_0xbc67d5=!0x1}={}){const _0x329b48=[];for(const _0x1fadf1 of this['_suggestions']['values']())_0x154252&&!_0x1fadf1['isInContent']||_0x329b48['push'](_0x1fadf1);return _0xbc67d5?_0x329b48['map'](_0x47ffd2=>_0x47ffd2['toJSON']()):_0x329b48;}getSuggestion(_0x290838){const _0x177da3=this['_suggestions']['get'](_0x290838);if(!_0x177da3)throw new _0x2b818d('track-changes-suggestion-not-found',this);return _0x177da3;}hasSuggestion(_0x236f75){return this['_suggestions']['has'](_0x236f75);}addSuggestionData(_0x703711){const {authorId:_0x3d28a5,id:_0x105e05,originalSuggestionId:_0x2c9744,attributes:_0x38ec56}=_0x703711,[_0x4f36f8,_0x4aa214]=_0x703711['type']['split'](':'),_0x329839=this['_suggestions']['get'](_0x105e05)||this['_createSuggestion'](_0x4f36f8,_0x4aa214,_0x105e05,_0x3d28a5,_0x38ec56,_0x2c9744);if(this['_addThreadToSuggestion'](_0x329839),this['_checkSuggestionCorrectness'](_0x329839,_0x4f36f8,_0x4aa214||null,_0x3d28a5),_0x329839['createdAt']=_0x703711['createdAt'],_0x329839['_isDataLoaded']=!0x0,_0x38ec56&&_0x38ec56['@external']){const _0x34028b=_0x38ec56['@external'],_0x19cd11=this['_getExternalAuthor'](_0x34028b['authorName']);_0x329839['authoredAt']=_0x34028b['createdAt'],_0x329839['author']=_0x19cd11;}else _0x329839['authoredAt']=_0x703711['createdAt'];switch(_0x703711['data']&&(_0x329839['data']=_0x703711['data']),_0x703711['attributes']&&(_0x329839['attributes']=_0x703711['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x329839['_saved']=!0x0),this['_suggestionState']['get'](_0x329839)){case'notReady':this['_suggestionState']['set'](_0x329839,'dataReady');break;case'markerReady':_0x329839['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x329839])),this['_refreshSuggestionsChain'](new Set([_0x329839])),this['_suggestionState']['set'](_0x329839,'ready'),this['fire']('suggestionLoaded',_0x329839)):this['_suggestionState']['set'](_0x329839,'removed');}return _0x329839;}acceptSuggestion(_0x1fe67a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x30dac7 of _0x1fe67a['getAllAdjacentSuggestions']())_0x30dac7['accept']();});});}discardSuggestion(_0x26d6a1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x400af5 of _0x26d6a1['getAllAdjacentSuggestions']())_0x400af5['discard']();});});}['enableCommand'](_0x21d8a2,_0x4a1832){const _0x1fdc57=this['editor']['commands']['get'](_0x21d8a2);if(!_0x1fdc57)throw new _0x2b818d('track-changes-command-not-found',this,{'commandName':_0x21d8a2});if(this['_enabledCommands']['has'](_0x1fdc57))throw new _0x2b818d('track-changes-enable-command-twice',this,{'commandName':_0x21d8a2});this['_enabledCommands']['add'](_0x1fdc57),_0x4a1832&&_0x1fdc57['on']('execute',(_0x42200b,_0x29b1a2)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x29b1a2['length']>0x0&&_0x29b1a2[_0x29b1a2['length']-0x1]&&_0x29b1a2[_0x29b1a2['length']-0x1]['forceDefaultExecution']?_0x29b1a2['pop']():(_0x42200b['return']=_0x4a1832((..._0x5d7ae8)=>_0x1fdc57['execute'](..._0x5d7ae8,{'forceDefaultExecution':!0x0}),..._0x29b1a2),_0x42200b['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x2abfde){let _0x3d2b34,_0x48c19c;const _0xf4abec=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3d2b34=_0x2abfde();}catch(_0x48b3e5){_0x48c19c=_0x48b3e5;}return _0xf4abec||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x48c19c&&_0x2b818d['rethrowUnexpectedError'](_0x48c19c,this),_0x3d2b34;}markInsertion(_0x41c8f9,_0x527ff7=null,_0x1bf930={}){if(_0x41c8f9['isCollapsed'])return null;const _0x20b32b=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1bf930['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x424ad9,meta:_0x1ca7e5}of this['_findSuggestions'](_0x41c8f9,'insertion'))if(_0x1ca7e5['isOwn']){if(!_0x1ca7e5['isNextTo']){if(_0x1ca7e5['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!pn(_0x424ad9,_0x1bf930))continue;return _0x424ad9;}if(pn(_0x424ad9,_0x1bf930))return _0x424ad9;this['_breakSuggestionMarker'](_0x424ad9,_0x41c8f9['start'],_0x41c8f9['end']);break;}if(_0x527ff7==_0x424ad9['subType']&&pn(_0x424ad9,_0x1bf930)){const _0x447775=_0x424ad9['getFirstRange']();return _0x447775['start']['isEqual'](_0x41c8f9['end'])?this['_setSuggestionRange'](_0x424ad9,this['_model']['createRange'](_0x41c8f9['start'],_0x447775['end'])):this['_setSuggestionRange'](_0x424ad9,this['_model']['createRange'](_0x447775['start'],_0x41c8f9['end'])),_0x424ad9;}}const _0x45a5b1=_0x29a7da(),_0x40735d=_0x20b32b['id'],_0x48937c=_0x527ff7?'insertion:'+_0x527ff7:'insertion',_0xd96a18=this['_setSuggestionData']({'id':_0x45a5b1,'type':_0x48937c,'createdAt':new Date(),'authorId':_0x40735d,'attributes':_0x1bf930});return this['_addSuggestionMarker'](_0x48937c,_0x45a5b1,_0x40735d,_0x41c8f9),_0xd96a18;}markMultiRangeInsertion(_0x9327f7,_0x1b3e71='multi',_0x26e06c={}){const _0x3e76cb=this['editor']['plugins']['get']('Users')['me'],_0x3850fe=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1b3e71,'join');this['_trackingSessionId']&&(_0x26e06c['trackingSessionId']=this['_trackingSessionId']);for(const _0x581837 of this['getSuggestions']())if(_0x581837['author']['id']==_0x3e76cb['id']&&'insertion'==_0x581837['type']&&_0x581837['subType']==_0x1b3e71&&pn(_0x581837,_0x26e06c)&&(_0x3850fe(_0x581837['getRanges'](),_0x9327f7)||_0x3850fe(_0x9327f7,_0x581837['getRanges']()))){for(const _0x2c9b43 of _0x9327f7)_0x581837['addRange'](_0x2c9b43);return _0x581837;}for(const {suggestion:_0x3fc149,meta:_0x749eab}of this['_findSuggestions'](_0x9327f7,'insertion')){if(!_0x749eab['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x749eab['containsRangeInObject'])continue;if(!pn(_0x3fc149,_0x26e06c))continue;let _0x546f5f=!0x0;for(const _0x514706 of _0x3fc149['getRanges']())for(const _0x1956d3 of _0x9327f7)if(!_0x514706['containsRange'](_0x1956d3)){_0x546f5f=!0x1;break;}if(_0x546f5f)return _0x3fc149;}const _0x3899e8=_0x29a7da(),_0x59e262=_0x3e76cb['id'],_0x435a14='insertion:'+_0x1b3e71,_0x9aa6b2=this['_setSuggestionData']({'id':_0x3899e8,'type':_0x435a14,'createdAt':new Date(),'authorId':_0x59e262,'attributes':_0x26e06c});for(const _0x43c427 of _0x9327f7)this['_addSuggestionMarker'](_0x435a14,_0x3899e8,_0x59e262,_0x43c427,St['getMultiRangeId']());return _0x9aa6b2;}markInlineFormat(_0x5f00e7,_0x2a52da,_0x3adbce=null,_0x453892={}){if(_0x3adbce=_0x3adbce||dn(_0x2a52da),_0x5f00e7['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x453892['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x41a3a0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3adbce,'accept');return this['forceDefaultExecution'](()=>_0x41a3a0([_0x5f00e7],_0x2a52da,_0x453892)),null;}const _0x117337=this['editor']['plugins']['get']('Users')['me'],_0xad8060=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3acbd5,meta:_0x170704}of this['_findSuggestions'](_0x5f00e7,'insertion'))_0x170704['isOwn']&&!_0x170704['isInsideObject']&&_0xad8060['push'](..._0x3acbd5['getRanges']());}const _0x2f2f0c=function(_0x3612de,_0x359520){const _0x4b02b4=[];for(const _0x5bf051 of _0x359520){const _0x385820=_0x3612de['getIntersection'](_0x5bf051);_0x385820&&_0x4b02b4['push'](_0x385820);}return _0x4b02b4;}(_0x5f00e7,_0xad8060),_0x190878=function(_0x591a5b,_0x4212f4){const _0x2e426b=[_0x591a5b];for(const _0x1d4169 of _0x4212f4){let _0x36699d=0x0;for(;_0x36699d<_0x2e426b['length'];){const _0x38940d=_0x2e426b[_0x36699d]['getDifference'](_0x1d4169);_0x2e426b['splice'](_0x36699d,0x1,..._0x38940d),_0x36699d+=_0x38940d['length'];}}return _0x2e426b;}(_0x5f00e7,_0xad8060);_0x2f2f0c['length']&&this['_model']['change'](()=>{for(const _0x506915 of _0x2f2f0c){const _0x151d4a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3adbce,'accept');this['forceDefaultExecution'](()=>_0x151d4a([_0x506915],_0x2a52da,_0x453892));}});for(const _0x2f2ba3 of _0x190878){let _0x4de69f=null,_0x429868=_0x2f2ba3['start'],_0x428bff=_0x2f2ba3['end'];for(const {suggestion:_0x2bd8d5,meta:_0x59ef46}of this['_findSuggestions'](_0x2f2ba3,'formatInline')){if(!_0x59ef46['isOwn'])continue;if(_0x2bd8d5['subType']!=_0x3adbce)continue;if(!pn(_0x2bd8d5,_0x453892))continue;const _0x4e87bd=_0x2bd8d5['getFirstRange']();if(_0x4e87bd['containsRange'](_0x2f2ba3,!0x0))return null;_0x429868=_0x429868['isBefore'](_0x4e87bd['start'])?_0x429868:_0x4e87bd['start'],_0x428bff=_0x428bff['isAfter'](_0x4e87bd['end'])?_0x428bff:_0x4e87bd['end'],_0x4de69f?_0x4e87bd['start']['isBefore'](_0x4de69f['getFirstRange']()['start'])?(_0x4de69f['removeMarkers'](),_0x4de69f=_0x2bd8d5):_0x2bd8d5['removeMarkers']():_0x4de69f=_0x2bd8d5;}const _0x3c4b3a=this['_model']['createRange'](_0x429868,_0x428bff);if(_0x4de69f)this['_setSuggestionRange'](_0x4de69f,_0x3c4b3a);else{const _0x147cd4=_0x29a7da(),_0x121f41=_0x117337['id'];this['_setSuggestionData']({'id':_0x147cd4,'type':'formatInline:'+_0x3adbce,'data':_0x2a52da,'createdAt':new Date(),'authorId':_0x121f41,'attributes':_0x453892}),this['_addSuggestionMarker']('formatInline:'+_0x3adbce,_0x147cd4,_0x121f41,_0x3c4b3a);}}return null;}markBlockFormat(_0x188b27,_0x1d35c7,_0x153531=[],_0x26cf69=null,_0x526d72={}){_0x1d35c7['formatGroupId']||(_0x1d35c7['formatGroupId']=_0x1d35c7['commandName']),_0x1d35c7['multipleBlocks']=_0x188b27['is']('range'),_0x26cf69=_0x26cf69||dn(_0x1d35c7);const _0xbbd1f3=_0x153531['map'](_0x20560d=>En(_0x20560d,this['_model'])),_0x5afc63=_0x188b27['is']('range')?_0x188b27:En(_0x188b27,this['_model']);if(this['_trackingSessionId']&&(_0x526d72['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5208ce=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26cf69,'accept');return this['forceDefaultExecution'](()=>_0x5208ce([_0x5afc63],_0x1d35c7,_0x526d72)),null;}_0xbbd1f3['push'](_0x5afc63);let _0x209689=!0x0;for(const _0x1c2ddc of _0xbbd1f3)if(!this['_rangeIsInLocalUserInsertion'](_0x1c2ddc)){_0x209689=!0x1;break;}if(_0x209689&&'always'!==this['_trackFormatChanges']){const _0xa3133d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26cf69,'accept');return this['forceDefaultExecution'](()=>_0xa3133d([_0x5afc63],_0x1d35c7,_0x526d72)),null;}let _0xd830e6=null,_0x392b03=_0x5afc63['start'],_0xa47225=_0x5afc63['end'];for(const {suggestion:_0x28bdc8,meta:_0x4f7706}of this['_findSuggestions'](_0x5afc63,'formatBlock')){if(!_0x4f7706['isOwn'])continue;if(_0x4f7706['isNextTo']||_0x4f7706['containsRangeInObject']||_0x4f7706['isInsideObject'])continue;if(_0x28bdc8['data']['formatGroupId']!=_0x1d35c7['formatGroupId'])continue;if(!pn(_0x28bdc8,_0x526d72))continue;const _0x3f1ab1=_0x28bdc8['getFirstRange']();if(_0x28bdc8['subType']==_0x26cf69){if(_0x3f1ab1['containsRange'](_0x5afc63,!0x0))return null;_0x392b03=_0x392b03['isBefore'](_0x3f1ab1['start'])?_0x392b03:_0x3f1ab1['start'],_0xa47225=_0xa47225['isAfter'](_0x3f1ab1['end'])?_0xa47225:_0x3f1ab1['end'],_0xd830e6?_0x3f1ab1['start']['isBefore'](_0xd830e6['getFirstRange']()['start'])?(_0xd830e6['removeMarkers'](),_0xd830e6=_0x28bdc8):_0x28bdc8['removeMarkers']():_0xd830e6=_0x28bdc8;}else{const _0x3ff592=_0x5afc63['getIntersection'](_0x3f1ab1);this['_cutOutSuggestionMarker'](_0x28bdc8,_0x3ff592);}}const _0x15a5ae=this['editor']['plugins']['get']('Users')['me'],_0x24ca90=_0x29a7da(),_0x5d4c7d=_0x15a5ae['id'];if(_0xd830e6)return this['_setSuggestionRange'](_0xd830e6,this['_model']['createRange'](_0x392b03,_0xa47225)),_0xd830e6;{const _0x490762=this['_setSuggestionData']({'id':_0x24ca90,'type':'formatBlock:'+_0x26cf69,'data':_0x1d35c7,'createdAt':new Date(),'authorId':_0x5d4c7d,'attributes':_0x526d72});return this['_addSuggestionMarker']('formatBlock:'+_0x26cf69,_0x24ca90,_0x5d4c7d,this['_model']['createRange'](_0x392b03,_0xa47225)),_0x490762;}}markMultiRangeBlockFormat(_0x5cd0ab,_0x113e97,_0x379040=[],_0x42c032=null,_0x4a42ed={}){_0x113e97['formatGroupId']||(_0x113e97['formatGroupId']=_0x113e97['commandName']);const _0x4297a8=_0x5cd0ab[0x0];_0x113e97['multipleBlocks']=_0x4297a8['is']('range'),_0x42c032=_0x42c032||dn(_0x113e97);const _0x4ed2de=_0x379040['map'](_0x2926cf=>En(_0x2926cf,this['_model'])),_0x35a377=_0x4297a8['is']('range')?_0x5cd0ab:_0x5cd0ab['map'](_0x3528ff=>En(_0x3528ff,this['_model']));if(this['_trackingSessionId']&&(_0x4a42ed['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xc8fab5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x42c032,'accept');return this['forceDefaultExecution'](()=>_0xc8fab5(_0x35a377,_0x113e97,_0x4a42ed)),null;}_0x4ed2de['push'](..._0x35a377);let _0x578163=!0x0;for(const _0x159bda of _0x4ed2de)if(!this['_rangeIsInLocalUserInsertion'](_0x159bda)){_0x578163=!0x1;break;}if(_0x578163&&'always'!==this['_trackFormatChanges']){const _0x575e09=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x42c032,'accept');return this['forceDefaultExecution'](()=>_0x575e09(_0x35a377,_0x113e97,_0x4a42ed)),null;}const _0x55a6eb=this['editor']['plugins']['get']('Users')['me'];for(const _0x45b1c3 of this['getSuggestions']()){const _0x6a695b=_0x45b1c3['data'];if(_0x45b1c3['author']['id']!=_0x55a6eb['id'])continue;if('formatBlock'!=_0x45b1c3['type']||_0x6a695b['formatGroupId']!=_0x113e97['formatGroupId'])continue;if(!pn(_0x45b1c3,_0x4a42ed))continue;const _0x5576f1=_0x45b1c3['subType']==_0x42c032;for(let _0x338495=0x0;_0x338495<_0x35a377['length'];_0x338495++){const _0x19095c=_0x35a377[_0x338495];for(const _0x255b5c of _0x45b1c3['getMarkers']()){const _0x47ae2c=_0x255b5c['getRange']();if(_0x19095c['isEqual'](_0x47ae2c)){_0x5576f1?(_0x35a377['splice'](_0x338495,0x1),_0x338495--):_0x45b1c3['removeMarker'](_0x255b5c['name']);break;}}}}if(0x0==_0x35a377['length'])return null;const _0x3d04d1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x42c032,'join');for(const _0x2e2e87 of this['getSuggestions']()){const _0x193895=_0x2e2e87['data'];if(_0x2e2e87['author']['id']==_0x55a6eb['id']&&('formatBlock'==_0x2e2e87['type']&&_0x193895['formatGroupId']==_0x113e97['formatGroupId']&&_0x2e2e87['subType']==_0x42c032&&pn(_0x2e2e87,_0x4a42ed)&&(_0x3d04d1(_0x2e2e87['getRanges'](),_0x35a377)||_0x3d04d1(_0x35a377,_0x2e2e87['getRanges']())))){for(const _0xeb7123 of _0x35a377)_0x2e2e87['addRange'](_0xeb7123);return _0x2e2e87;}}const _0x65ed20=_0x29a7da(),_0x513245=_0x55a6eb['id'],_0x3eae50='formatBlock:'+_0x42c032,_0x2f4292=this['_setSuggestionData']({'id':_0x65ed20,'type':_0x3eae50,'data':_0x113e97,'createdAt':new Date(),'authorId':_0x513245,'attributes':_0x4a42ed});for(const _0x2c26c5 of _0x35a377)this['_addSuggestionMarker'](_0x3eae50,_0x65ed20,_0x513245,_0x2c26c5,St['getMultiRangeId']());return _0x2f4292;}markDeletion(_0x7e298a,_0x3b3df4=null,_0xaeb41d={}){if(_0x7e298a['isCollapsed'])return null;const _0x5e2b98=this['editor']['plugins']['get']('Users')['me'],_0x38a7b7=new rt(_0x7e298a['start'],_0x7e298a['end']);this['_trackingSessionId']&&(_0xaeb41d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xd4499c,meta:_0x2d6231}of this['_findSuggestions'](_0x38a7b7,'insertion'))if(_0x2d6231['isOwn']&&!_0x2d6231['isNextTo']){if(_0xd4499c['isMultiRange']){const _0x5e5ae5=_0xd4499c['getRanges']()['filter'](_0x16bd1a=>'$graveyard'!=_0x16bd1a['root']['rootName']);if(_0x5e5ae5['every'](_0x1db469=>_0x38a7b7['containsRange'](_0x1db469,!0x0))&&_0xd4499c['discard'](),_0x5e5ae5['some'](_0x244cb2=>_0x244cb2['containsRange'](_0x38a7b7,!0x0))){const _0x369581=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3b3df4,'accept');return this['forceDefaultExecution'](()=>_0x369581([_0x38a7b7],null,_0xaeb41d)),null;}}else{const _0xe0bcf9=_0x38a7b7['getIntersection'](_0xd4499c['getFirstRange']());null!==_0xe0bcf9&&_0xd4499c['_onDiscard']([_0xe0bcf9],null,_0xaeb41d);}}if(_0x38a7b7['detach'](),_0x38a7b7['isCollapsed']||'$graveyard'==_0x38a7b7['root']['rootName'])return null;let _0x48eb1c=null,_0x512b22=_0x38a7b7['start'],_0x53101c=_0x38a7b7['end'];const _0x3a7996=this['_findSuggestions'](_0x38a7b7,'deletion');for(const {suggestion:_0x49f26a,meta:_0x2afcc9}of _0x3a7996){const _0x55ced6=this['_model']['createRange'](_0x512b22,_0x53101c);if(_0x2afcc9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2afcc9['containsRangeInObject']&&!_0x2afcc9['isInsideObject'])){if(_0x49f26a['isMultiRange']){if(!pn(_0x49f26a,_0xaeb41d))continue;let _0x17ea0b=!0x0;for(const _0x2a5a73 of _0x49f26a['getRanges']()){if(_0x2a5a73['containsRange'](_0x55ced6,!0x0))return _0x49f26a;_0x55ced6['containsRange'](_0x2a5a73)||(_0x17ea0b=!0x1);}_0x17ea0b&&_0x49f26a['discard']();}else{const _0x1bf16e=_0x49f26a['getFirstRange']();if(_0x1bf16e['containsRange'](_0x55ced6,!0x0))return _0x49f26a;if(!pn(_0x49f26a,_0xaeb41d)){_0x55ced6['containsRange'](_0x1bf16e)?_0x49f26a['removeMarkers']():_0x1bf16e['containsPosition'](_0x512b22)?_0x512b22=_0x1bf16e['end']:_0x1bf16e['containsPosition'](_0x53101c)&&(_0x53101c=_0x1bf16e['start']);continue;}_0x512b22=_0x512b22['isBefore'](_0x1bf16e['start'])?_0x512b22:_0x1bf16e['start'],_0x53101c=_0x53101c['isAfter'](_0x1bf16e['end'])?_0x53101c:_0x1bf16e['end'],_0xaeb41d=Object['assign']({},_0x49f26a['attributes']),_0x48eb1c?_0x1bf16e['start']['isBefore'](_0x48eb1c['getFirstRange']()['start'])?(_0x48eb1c['removeMarkers'](),_0x48eb1c=_0x49f26a):_0x49f26a['removeMarkers']():_0x48eb1c=_0x49f26a;}}}if(_0x48eb1c)return this['_setSuggestionRange'](_0x48eb1c,this['_model']['createRange'](_0x512b22,_0x53101c)),_0x48eb1c;{const _0x3413f6=_0x29a7da(),_0x474816=this['_model']['createRange'](_0x512b22,_0x53101c),_0x427e0d=_0x5e2b98['id'],_0x257a2d=_0x3b3df4?'deletion:'+_0x3b3df4:'deletion',_0x2b2953=this['_setSuggestionData']({'id':_0x3413f6,'type':_0x257a2d,'createdAt':new Date(),'authorId':_0x427e0d,'attributes':_0xaeb41d});return this['_addSuggestionMarker'](_0x257a2d,_0x3413f6,_0x427e0d,_0x474816),_0x2b2953;}}markMultiRangeDeletion(_0x1c511d,_0x518d84='multi',_0x4982db={}){const _0x4173c7=this['editor']['plugins']['get']('Users')['me'],_0x4c2604=_0x1c511d['map'](_0x44e392=>new rt(_0x44e392['start'],_0x44e392['end'])),_0x3b7a5f=new Set();this['_trackingSessionId']&&(_0x4982db['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xde9113,meta:_0x3ad884}of this['_findSuggestions'](_0x4c2604,'insertion'))_0x3ad884['isOwn']&&!_0x3ad884['isNextTo']&&_0x3b7a5f['add'](_0xde9113);for(const _0x63d660 of _0x3b7a5f)if(_0x63d660['isMultiRange']){const _0x38c159=_0x63d660['getRanges']();if(_0x63d660['attributes']&&_0x63d660['attributes']['skipNestingCheck']||_0x38c159['every'](_0x1116f0=>_0x4c2604['some'](_0x4641d4=>_0x4641d4['containsRange'](_0x1116f0,!0x0)))&&_0x63d660['discard'](),_0x4c2604['every'](_0x50e5aa=>_0x38c159['some'](_0x17b91c=>_0x17b91c['containsRange'](_0x50e5aa,!0x0)))){const _0x118c39=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x518d84,'accept');return this['forceDefaultExecution'](()=>_0x118c39(_0x1c511d,null,_0x4982db)),null;}}else{const _0x3804d5=_0x63d660['getFirstRange']();if(_0x4c2604['some'](_0x479751=>_0x479751['containsRange'](_0x3804d5,!0x0))&&_0x63d660['discard'](),_0x4c2604['every'](_0x12bcf2=>_0x3804d5['containsRange'](_0x12bcf2,!0x0))){const _0x219a99=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x518d84,'accept');return this['forceDefaultExecution'](()=>_0x219a99(_0x4c2604,null,_0x4982db)),null;}}const _0x1d846b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x518d84,'join');let _0x3d0e30=null;for(const _0x4ab7f2 of this['getSuggestions']())if(_0x4ab7f2['author']['id']==_0x4173c7['id']&&_0x4ab7f2['isInContent']&&'deletion'==_0x4ab7f2['type']&&_0x4ab7f2['subType']==_0x518d84&&pn(_0x4ab7f2,_0x4982db)&&(_0x1d846b(_0x4ab7f2['getRanges'](),_0x4c2604)||_0x1d846b(_0x4c2604,_0x4ab7f2['getRanges']()))){if(_0x3d0e30){if(_0x4ab7f2['commentThread']&&_0x4ab7f2['commentThread']['length'])continue;for(const _0x35cffe of _0x4ab7f2['getRanges']())_0x3d0e30['isIntersectingWithRange'](_0x35cffe)||_0x3d0e30['addRange'](_0x35cffe);_0x4ab7f2['removeMarkers']();}else{_0x3d0e30=_0x4ab7f2;for(const _0x40723a of _0x4c2604)_0x4ab7f2['isIntersectingWithRange'](_0x40723a)||_0x4ab7f2['addRange'](_0x40723a);}}if(_0x3d0e30)return _0x3d0e30;_0x3b7a5f['clear']();for(const {suggestion:_0xca8d09,meta:_0x1b8c93}of this['_findSuggestions'](_0x4c2604,'deletion'))_0x1b8c93['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1b8c93['containsRangeInObject']&&!_0x1b8c93['isInsideObject'])&&pn(_0xca8d09,_0x4982db)&&_0x3b7a5f['add'](_0xca8d09);for(const _0xbdd385 of _0x3b7a5f){const _0x275238=_0xbdd385['getRanges']();if((!_0x4982db||!_0x4982db['skipNestingCheck'])&&_0x4c2604['every'](_0x3567c7=>_0x275238['some'](_0x36a5cd=>_0x36a5cd['containsRange'](_0x3567c7,!0x0))))return _0xbdd385;_0xbdd385['attributes']&&_0xbdd385['attributes']['skipNestingCheck']||_0x275238['every'](_0x57c414=>_0x4c2604['some'](_0x188f22=>_0x188f22['containsRange'](_0x57c414,!0x0)))&&_0xbdd385['discard']();}const _0x4f8c40=_0x29a7da(),_0x10a4c9=_0x4173c7['id'],_0x503628='deletion:'+_0x518d84,_0x3f9494=this['_setSuggestionData']({'id':_0x4f8c40,'type':_0x503628,'createdAt':new Date(),'authorId':_0x10a4c9,'attributes':_0x4982db});for(const _0x14d242 of _0x4c2604)_0x14d242['detach'](),_0x14d242['isCollapsed']||'$graveyard'==_0x14d242['root']['rootName']||this['_addSuggestionMarker'](_0x503628,_0x4f8c40,_0x10a4c9,_0x14d242,St['getMultiRangeId']());return _0x3f9494;}markAttributeChange(_0x144b71,_0x3c86d7,_0x332744,_0x478373,_0x5ecef0){if(_0x144b71['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x356f1b=this['editor']['plugins']['get']('Users')['me']['id'],_0xcd568a=Array['from'](this['_suggestions']['values']())['filter'](_0x18cb62=>'attribute'==_0x18cb62['type']&&_0x18cb62['data']['key']==_0x3c86d7&&_0x18cb62['isIntersectingWithRange'](_0x144b71));if(this['_trackingSessionId']&&(_0x5ecef0['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x39b9c2=this['_findSuggestions'](_0x144b71,'insertion')['filter'](({meta:_0x2cf361})=>_0x2cf361['isOwn']&&!_0x2cf361['isInsideObject']&&!_0x2cf361['isNextTo'])['map'](({suggestion:_0x22efba})=>_0x22efba);_0xcd568a['unshift'](..._0x39b9c2);}const _0x58bc48=new Map([[_0x144b71,_0x332744]]);for(const _0x27e272 of _0xcd568a){const _0x239bc6='attribute'==_0x27e272['type']?_0x27e272['data']['oldValue']:void 0x0,_0x5b9b3f=_0x27e272['getFirstRange'](),_0x360d4e=Array['from'](_0x58bc48['keys']())['find'](_0x1273b8=>_0x1273b8['isIntersecting'](_0x5b9b3f));if(!_0x360d4e)continue;const _0x399ef0=_0x360d4e['getDifference'](_0x5b9b3f);this['_suggestionsConversion']['isBlockAttribute'](_0x3c86d7)&&'insertion'==_0x27e272['type']&&0x0!=_0x399ef0['length']||(_0x58bc48['delete'](_0x360d4e),_0x399ef0['forEach'](_0x5489f7=>{_0x58bc48['set'](_0x5489f7,_0x332744);}),'insertion'!=_0x27e272['type']&&_0x239bc6!=_0x478373&&_0x58bc48['set'](_0x360d4e['getIntersection'](_0x5b9b3f),_0x239bc6));}const _0x181269=[];for(const [_0x1d5d55,_0x511696]of _0x58bc48){const _0x505e8d=_0x29a7da(),_0x5e53b1={'key':_0x3c86d7,'oldValue':_0x511696,'newValue':_0x478373};_0x3c86d7['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':_0x3c86d7});const _0x542794=('attribute:'+_0x3c86d7+'|'+dn({'newValue':_0x478373}))['substring'](0x0,0x3c),_0x1de353=this['_setSuggestionData']({'id':_0x505e8d,'type':_0x542794,'data':_0x5e53b1,'createdAt':new Date(),'authorId':_0x356f1b,'attributes':_0x5ecef0});_0x181269['push'](_0x1de353),this['_addSuggestionMarker'](_0x542794,_0x505e8d,_0x356f1b,_0x1d5d55);}return _0x181269;}enableDefaultAttributesIntegration(_0x4535a8){this['enableCommand'](_0x4535a8,(_0x43a27a,..._0x2d3ffe)=>{this['recordAttributeChanges'](()=>{_0x43a27a(..._0x2d3ffe);});});}startTrackingSession(_0x3a046b){return this['_trackingSessionId']=void 0x0!==_0x3a046b?_0x3a046b:_0x29a7da(),this['_trackingSessionId'];}_getAttributeKey(_0xa9ad7a){return'attribute'==_0xa9ad7a['type']?In(_0xa9ad7a['subType']):null;}_applyOperationsAsSuggestions(_0x5f366b){if(0x0==_0x5f366b['length'])return;const _0x4f57ac=this['editor'],_0x3aaaff=[],_0x556f57=_0x1f1c33=>{const _0x54126d=_0x1f1c33['_aiSource'];return _0x54126d?{'@ai':{'type':_0x54126d}}:{};},_0x16ca35=(_0x516407,_0x407065,_0x403a1a)=>{for(let _0x40ddff=_0x407065;_0x40ddff<_0x516407['operations']['length'];_0x40ddff++)_0x516407['operations'][_0x40ddff]['_aiSource']=_0x403a1a;};_0x4f57ac['model']['change'](_0x492ede=>{for(let _0x4664cd=0x0;_0x4664cd<_0x5f366b['length'];_0x4664cd++){const _0x54acd0=_0x5f366b[_0x4664cd],_0x9f5a65=_0x54acd0['_aiSource'],_0x28ecb4=_0x492ede['batch']['operations']['length'];if(_0x54acd0['baseVersion']=_0x4f57ac['model']['document']['version'],_0x54acd0['isDocumentOperation']=!0x0,!_0x245e01(_0x54acd0)){if(rn(_0x54acd0)){const _0x1866a3=_0x204718(_0x54acd0['newRange'],_0x4f57ac['model']);_0x3aaaff['unshift']({'range':rt['fromRange'](_0x1866a3),'opAttributes':_0x556f57(_0x54acd0),'aiSource':_0x9f5a65});}else{switch(_0x54acd0['type']){case'rename':{const _0x2c4cc5=_0x54acd0['oldName'],_0x2f68b6=_0x54acd0['newName'];if(_0x2c4cc5==_0x2f68b6)break;_0x492ede['batch']['addOperation'](_0x54acd0),_0x4f57ac['model']['applyOperation'](_0x54acd0);const _0x18eb95='$elementName',_0x4a487d=_0x54acd0['position'],_0x2076a2=_0x4f57ac['model']['createRange'](_0x4a487d,_0x4f57ac['model']['createPositionAt'](_0x4a487d['nodeAfter'],'end'));this['markAttributeChange'](_0x2076a2,_0x18eb95,_0x2c4cc5,_0x2f68b6,{..._0x556f57(_0x54acd0),'groupId':_0x29a7da()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x2dafe2=_0x54acd0['oldValue'],_0x3b9a0f=_0x54acd0['newValue'];if(_0x2dafe2==_0x3b9a0f)break;_0x492ede['batch']['addOperation'](_0x54acd0),_0x4f57ac['model']['applyOperation'](_0x54acd0);const _0x35c449=_0x54acd0['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x35c449))break;const _0x3625c4=_0x204718(_0x54acd0['range'],_0x4f57ac['model']);this['markAttributeChange'](_0x3625c4,_0x35c449,_0x2dafe2,_0x3b9a0f,{..._0x556f57(_0x54acd0),'groupId':_0x29a7da()});break;}case'insert':{if(_0x492ede['batch']['addOperation'](_0x54acd0),_0x4f57ac['model']['applyOperation'](_0x54acd0),_0x5f366b[_0x4664cd+0x1]&&'move'==_0x5f366b[_0x4664cd+0x1]['type'])break;const _0x988a67=_0x54acd0['position'],_0x2ca413=_0x54acd0['howMany'],_0x4ed5ea=_0x204718(_0x4f57ac['model']['createRange'](_0x988a67,_0x988a67['getShiftedBy'](_0x2ca413)),_0x4f57ac['model']);this['markInsertion'](_0x4ed5ea,null,{..._0x556f57(_0x54acd0)});break;}case'split':{_0x492ede['batch']['addOperation'](_0x54acd0),_0x4f57ac['model']['applyOperation'](_0x54acd0);const _0xe456d=_0x54acd0['splitPosition'],_0x348210=_0x54acd0['moveTargetPosition'],_0x3b7f96=_0x4f57ac['model']['createRange'](_0xe456d,_0x348210);this['markInsertion'](_0x3b7f96,null,{..._0x556f57(_0x54acd0)});break;}case'move':case'remove':_0x492ede['batch']['addOperation'](_0x54acd0),_0x4f57ac['model']['applyOperation'](_0x54acd0);}_0x9f5a65&&_0x16ca35(_0x492ede['batch'],_0x28ecb4,_0x9f5a65);}}}for(const {range:_0x2b2e49,opAttributes:_0x97257,aiSource:_0x5303b5}of _0x3aaaff){const _0x59fd57=_0x492ede['batch']['operations']['length'];_0x2b2e49['detach'](),this['markDeletion'](_0x2b2e49,null,{..._0x97257}),_0x5303b5&&_0x16ca35(_0x492ede['batch'],_0x59fd57,_0x5303b5);}});}_setSuggestionRange(_0x307bbb,_0x29856c){const _0x56fe3d=_0x307bbb['getFirstMarker']();this['_model']['change'](_0x53254a=>{_0x53254a['updateMarker'](_0x56fe3d,{'range':_0x29856c});});}_addThreadToSuggestion(_0x14b711){const _0xed2820=_0x14b711['id'],_0x2b9721=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xed2820)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2b9721,'threadId':_0xed2820,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x322542=this['_commentsRepository']['getCommentThread'](_0xed2820);_0x322542['unbind']('isRemovable'),_0x322542['isRemovable']=!0x1,_0x14b711['commentThread']=_0x322542;}_checkSuggestionCorrectness(_0x5f07a4,_0x331ca5,_0x3a0bc2,_0x5a80d3){if(_0x5f07a4['type']!=_0x331ca5||_0x5f07a4['subType']!=_0x3a0bc2||_0x5f07a4['creator']['id']!=_0x5a80d3)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2b818d('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x2de992,_0x2fef70){const _0x4f6581=_0x2de992['getFirstRange']();if(_0x2fef70['isEqual'](_0x4f6581))_0x2de992['removeMarkers']();else{if(_0x4f6581['containsRange'](_0x2fef70)){const _0x3a2b42=this['_model']['createPositionAt'](_0x2fef70['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2de992,this['_model']['createRange'](_0x4f6581['start'],_0x3a2b42));const _0x12a8f5=_0x29a7da(),_0x474679=_0x2de992['creator']['id'],_0x4aa342=_0x2de992['type']+':'+_0x2de992['subType'];this['_setSuggestionData']({'id':_0x12a8f5,'type':_0x4aa342,'createdAt':new Date(),'authorId':_0x474679,'data':_0x2de992['data'],'attributes':_0x2de992['attributes']});const _0x19f18e=this['_model']['createPositionAt'](_0x2fef70['end']['parent'],'after'),_0x25dbbc=this['_model']['createRange'](_0x19f18e,_0x4f6581['end']);this['_addSuggestionMarker'](_0x4aa342,_0x12a8f5,_0x474679,_0x25dbbc);}else{if(_0x4f6581['containsPosition'](_0x2fef70['start'])){const _0x57c80d=this['_model']['createPositionAt'](_0x2fef70['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2de992,this['_model']['createRange'](_0x4f6581['start'],_0x57c80d));}else{const _0x1dd3c4=this['_model']['createPositionAt'](_0x2fef70['end']['parent'],'after');this['_setSuggestionRange'](_0x2de992,this['_model']['createRange'](_0x1dd3c4,_0x4f6581['end']));}}}}_rangeIsInLocalUserInsertion(_0x25e402){for(const {suggestion:_0x5493c1,meta:_0x14ea9c}of this['_findSuggestions'](_0x25e402,'insertion')){if(!_0x14ea9c['isOwn'])continue;const _0x4fe76b=_0x5493c1['getRanges']();for(const _0x48239f of _0x4fe76b)if(!_0x25e402['getDifference'](_0x48239f)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x1146f9){return this['editor']['plugins']['get']('Users')['getUser'](_0x1146f9);}_getExternalAuthor(_0x4a9f29){const _0x1d73d9=this['editor']['plugins']['get']('Users'),_0x4a6c11=_0x3c33b8('external:'+_0x4a9f29),_0x2b68d6=_0x1d73d9['getUser'](_0x4a6c11);return _0x2b68d6||_0x1d73d9['addUser']({'id':_0x4a6c11,'name':_0x4a9f29});}_createSuggestion(_0x985e10,_0x1a6f07,_0x3dbb60,_0x174054,_0x133cab,_0x306c18){const _0x422f67=this['_getAuthorFromId'](_0x174054);if(!_0x422f67)throw new _0x2b818d('track-changes-user-not-found',this,{'authorId':_0x174054,'suggestionId':_0x3dbb60});const _0x10390d=this['_suggestionFactory']['buildSuggestion'](_0x985e10,_0x1a6f07,_0x3dbb60,_0x422f67,_0x133cab,_0x2007d8=>{this['_updateSuggestionData'](_0x3dbb60,{'attributes':_0x2007d8});const _0x5c0716=this['getSuggestion'](_0x3dbb60);this['_joinWithAdjacentSuggestions'](new Set([_0x5c0716])),this['_refreshSuggestionsChain'](new Set([_0x5c0716]));},_0x306c18);return this['listenTo'](_0x10390d,'accept',()=>{this['_updateSuggestionData'](_0x3dbb60,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x10390d,'discard',()=>{this['_updateSuggestionData'](_0x3dbb60,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3dbb60,_0x10390d),this['_suggestionState']['set'](_0x10390d,'notReady'),_0x10390d;}_breakSuggestionMarker(_0x3df6ae,_0x1860d4,_0x588cc4){const _0x514553=_0x3df6ae['getFirstRange'](),_0x3f19c9=_0x514553['start'],_0x5df468=_0x514553['end'];this['_setSuggestionRange'](_0x3df6ae,this['_model']['createRange'](_0x3f19c9,_0x1860d4));const _0x41187c=_0x29a7da(),_0x52a88c=_0x3df6ae['creator']['id'],_0x5b9771=_0x3df6ae['type']+(_0x3df6ae['subType']?':'+_0x3df6ae['subType']:'');this['_setSuggestionData']({'id':_0x41187c,'type':_0x5b9771,'createdAt':new Date(),'authorId':_0x52a88c,'originalSuggestionId':_0x3df6ae['_originalSuggestionId']||_0x3df6ae['id'],'attributes':_0x3df6ae['attributes'],'data':_0x3df6ae['data']});const _0x3d5c15=this['_getAttributeKey'](_0x3df6ae);('formatBlock'==_0x3df6ae['type']||_0x3d5c15&&this['_suggestionsConversion']['isBlockAttribute'](_0x3d5c15))&&(_0x588cc4=this['_model']['createPositionBefore'](_0x588cc4['parent'])),this['_addSuggestionMarker'](_0x5b9771,_0x41187c,_0x52a88c,this['_model']['createRange'](_0x588cc4,_0x5df468));}_findSuggestions(_0x8bdf9,_0x1f4188=null){const _0x2de04b=[],_0x3052f3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x8bdf9)||(_0x8bdf9=[_0x8bdf9]);for(const _0x48e4e7 of this['getSuggestions']()){if(!_0x48e4e7['isInContent'])continue;if(_0x1f4188&&_0x48e4e7['type']!=_0x1f4188)continue;let _0x5a5608=!0x1;for(const _0x3f1f6d of _0x48e4e7['getRanges']()){for(const _0x2359bf of _0x8bdf9){const _0x1ed53d=_0x2359bf['start']['isEqual'](_0x3f1f6d['end'])||_0x2359bf['end']['isEqual'](_0x3f1f6d['start']);if(_0x1ed53d||_0x2359bf['getIntersection'](_0x3f1f6d)){const _0x2d7475=_0x2359bf['containsRange'](_0x3f1f6d)&&cn(this['_model']['schema'],_0x3f1f6d['start'],_0x2359bf),_0x16a9bc=_0x3f1f6d['containsRange'](_0x2359bf)&&cn(this['_model']['schema'],_0x2359bf['start'],_0x3f1f6d);_0x2de04b['push']({'suggestion':_0x48e4e7,'meta':{'isOwn':_0x3052f3==_0x48e4e7['author'],'isNextTo':_0x1ed53d,'isInsideObject':_0x2d7475,'containsRangeInObject':_0x16a9bc}}),_0x5a5608=!0x0;break;}}if(_0x5a5608)break;}}return _0x2de04b;}_addSuggestionMarker(_0x22c23c,_0x458ab6,_0x22c6c0,_0x157e79,_0x5e989f){this['_model']['change'](_0x88c120=>{let _0x5b1018='suggestion:'+_0x22c23c+':'+_0x458ab6+':'+_0x22c6c0;_0x5e989f&&(_0x5b1018=_0x5b1018+':'+_0x5e989f),_0x88c120['addMarker'](_0x5b1018,{'range':_0x157e79,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0xfd70cf){const _0x270b36=_0xfd70cf['previous'],_0x89d17b=_0xfd70cf['next'];_0xfd70cf['previous']=null,_0xfd70cf['next']=null,null!=_0x270b36&&_0x270b36['next']==_0xfd70cf&&(_0x270b36['next']=_0x89d17b),null!=_0x89d17b&&_0x89d17b['previous']==_0xfd70cf&&(_0x89d17b['previous']=_0x270b36),'ready'==this['_suggestionState']['get'](_0xfd70cf)&&(this['_suggestionState']['set'](_0xfd70cf,'removed'),this['fire']('suggestionUnloaded',_0xfd70cf,_0x270b36,_0x89d17b));}_setSuggestionData(_0x567a87){const _0x5b1bf2=_0x567a87['id'],_0x311970=this['addSuggestionData'](_0x567a87);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x32bd0e=this['editor']['plugins']['get']('PendingActions'),_0x5d9200=_0x311970['hasComments'],_0x9c35c8=_0x311970['subType']?_0x311970['type']+':'+_0x311970['subType']:_0x311970['type'],_0x599fba=this['editor']['locale'],_0x144bbf=_0x32bd0e['add'](Mt(_0x599fba,'PENDING_ACTION_SUGGESTION')),_0x5208c6={'id':_0x5b1bf2,'type':_0x9c35c8,'hasComments':_0x5d9200,'data':_0x567a87['data']||null,'originalSuggestionId':_0x567a87['originalSuggestionId']||null,'attributes':_0x311970['attributes']};this['_adapter']['addSuggestion'](_0x5208c6)['then'](_0x1644be=>{_0x311970['_saved']=!0x0,_0x32bd0e['remove'](_0x144bbf),_0x1644be&&_0x1644be['createdAt']&&(this['_suggestions']['get'](_0x5b1bf2)['createdAt']=_0x1644be['createdAt']);})['catch'](_0x536787=>{throw _0x1e0b40('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x311970['discard']();}),_0x311970['stopListening'](),this['_suggestions']['delete'](_0x311970['id']),this['_suggestionState']['delete'](_0x311970),_0x536787;});}return _0x311970;}_updateSuggestionData(_0x2a217d,_0x1c1de8){const _0x3f42b1=this['editor']['plugins']['get']('PendingActions'),_0x3dc6b3=this['getSuggestion'](_0x2a217d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3dc6b3['_saved']){const _0x16c2f3=_0x3f42b1['add'](Mt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2a217d,_0x1c1de8)['then'](()=>{_0x3f42b1['remove'](_0x16c2f3);});}else _0x3dc6b3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2a217d,_0x1c1de8);});}}_getSuggestionData(_0x329313){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2b818d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x329313);}_handleNewSuggestionMarker(_0x4f6a){const {id:_0x26fb80,type:_0xb47506,subType:_0x2d2e5b,authorId:_0x332227}=tt(_0x4f6a),_0x10cd87=this['_suggestions']['get'](_0x26fb80)||this['_createSuggestion'](_0xb47506,_0x2d2e5b,_0x26fb80,_0x332227,{});switch(this['_checkSuggestionCorrectness'](_0x10cd87,_0xb47506,_0x2d2e5b,_0x332227),this['_suggestionState']['get'](_0x10cd87)){case'notReady':this['_getSuggestionData'](_0x26fb80)['then'](_0x3970ab=>{let _0x2e23df=Promise['resolve']();_0x3970ab['hasComments']&&(_0x2e23df=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x26fb80})),_0x2e23df['then'](()=>{this['addSuggestionData'](_0x3970ab)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x10cd87,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x26fb80,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x10cd87,'ready'),this['fire']('suggestionLoaded',_0x10cd87);break;case'ready':this['fire']('suggestionChanged',_0x10cd87);}return _0x10cd87['addMarkerName'](_0x4f6a),_0x10cd87;}_refreshSuggestionsChain(_0x5b0974){const _0x2734a1=Array['from'](_0x5b0974),_0x4789e0=_0x2734a1['filter'](_0x331cc5=>'attribute'==_0x331cc5['type']);this['_refreshAttributeSuggestionsChain'](_0x4789e0);const _0x2b5ad2=_0x2734a1['filter'](_0x56897d=>!_0x56897d['isMultiRange']&&'attribute'!=_0x56897d['type']),_0x4dd456=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x359b6c=>!_0x359b6c['isMultiRange']&&'attribute'!=_0x359b6c['type']),_0x2f7c36=_0x4dd456['filter'](_0x5a281d=>!_0x5b0974['has'](_0x5a281d)),_0x52d18d=new Map(_0x4dd456['map'](_0x5694fa=>[_0x5694fa,this['_suggestionFactory']['getSuggestionCallback'](_0x5694fa['type'],_0x5694fa['subType'],'chain')])),_0x4fe2b9=new Map(_0x4dd456['map'](_0x38ef71=>[_0x38ef71,_0x38ef71['getFirstRange']()])),_0x190781=new Set(),_0x26128d=new Set();for(let _0x49cf8c=0x0;_0x49cf8c<_0x2b5ad2['length'];_0x49cf8c++)_0x46fec6(_0x2b5ad2[_0x49cf8c],_0x2b5ad2,_0x49cf8c+0x1);for(let _0x3739dd=0x0;_0x3739dd<_0x2b5ad2['length'];_0x3739dd++)_0x46fec6(_0x2b5ad2[_0x3739dd],_0x2f7c36,0x0);const _0x271ca0=new Set();for(let _0x25f4fc=0x0;_0x25f4fc<_0x2b5ad2['length'];_0x25f4fc++){const _0x5c8db=_0x2b5ad2[_0x25f4fc];!_0x26128d['has'](_0x5c8db)&&_0x5c8db['previous']&&(_0x271ca0['add'](_0x5c8db['previous']),_0x5c8db['previous']['next']===_0x5c8db&&(_0x5c8db['previous']['next']=null),_0x5c8db['previous']=null),!_0x190781['has'](_0x5c8db)&&_0x5c8db['next']&&(_0x271ca0['add'](_0x5c8db['next']),_0x5c8db['next']['previous']===_0x5c8db&&(_0x5c8db['next']['previous']=null),_0x5c8db['next']=null);}function _0x46fec6(_0x1b18c1,_0x294c34,_0x1522db){for(let _0x1f5107=_0x1522db;_0x1f5107<_0x294c34['length'];_0x1f5107++){const _0x13173c=_0x339c68(_0x1b18c1,_0x294c34[_0x1f5107]);_0x13173c&&(_0x13173c[0x0]['next']=_0x13173c[0x1],_0x13173c[0x1]['previous']=_0x13173c[0x0],_0x190781['add'](_0x13173c[0x0]),_0x26128d['add'](_0x13173c[0x1]));}}function _0x339c68(_0xa519f1,_0x2e3620){if(_0xa519f1['author']['id']!==_0x2e3620['author']['id'])return null;const _0x49370c=_0x52d18d['get'](_0xa519f1)(_0xa519f1,_0x2e3620,_0x4fe2b9['get'](_0xa519f1),_0x4fe2b9['get'](_0x2e3620));return _0x49370c&&_0x52d18d['get'](_0x2e3620)(_0xa519f1,_0x2e3620,_0x4fe2b9['get'](_0xa519f1),_0x4fe2b9['get'](_0x2e3620))?_0x49370c[0x1]['commentThread']&&_0x49370c[0x1]['commentThread']['length']?null:_0x49370c:null;}_0x271ca0['size']&&this['_refreshSuggestionsChain'](_0x271ca0);}_refreshAttributeSuggestionsChain(_0x27f26e){if(0x0==_0x27f26e['length'])return;const _0x481416=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a993f=>'attribute'==_0x2a993f['type']&&_0x2a993f['_isDataLoaded']),_0x2e9d8a=[],_0x539a14=new Map();for(const _0x3abec8 of _0x481416){const _0x5a501b=_0x3c33b8(_0x3abec8['attributes']);_0x539a14['has'](_0x5a501b)||(_0x539a14['set'](_0x5a501b,_0x2e9d8a['length']),_0x2e9d8a['push']([])),_0x2e9d8a[_0x539a14['get'](_0x5a501b)]['push'](_0x3abec8);}!(function(){_0x2e9d8a['sort']((_0x275815,_0xe3ef98)=>{const _0x521c90=_0x275815[0x0]['createdAt'],_0x1febd8=_0xe3ef98[0x0]['createdAt'];return _0x521c90==_0x1febd8?_0x275815[0x0]['attributes']['groupId']<_0xe3ef98[0x0]['attributes']['groupId']?-0x1:0x1:_0x521c90<_0x1febd8?-0x1:0x1;});for(const _0xb7c3b5 of _0x2e9d8a)_0xb7c3b5['sort']((_0x379fea,_0x6ab4d2)=>_0x379fea['id']<_0x6ab4d2['id']?-0x1:0x1);}());for(let _0x971c17=0x0;_0x971c17<_0x2e9d8a['length'];_0x971c17++){if(0x0==_0x2e9d8a[_0x971c17]['length'])continue;const _0x156277=[];for(let _0xcfbc68=_0x971c17+0x1;_0xcfbc68<_0x2e9d8a['length'];_0xcfbc68++)0x0!=_0x2e9d8a[_0xcfbc68]['length']&&_0x3126ae(_0x2e9d8a[_0x971c17],_0x2e9d8a[_0xcfbc68])&&_0x156277['push'](_0xcfbc68);for(const _0x39695f of _0x156277)_0x2e9d8a[_0x971c17]=_0x2e9d8a[_0x971c17]['concat'](_0x2e9d8a[_0x39695f]),_0x2e9d8a[_0x39695f]=[];}for(const _0x2372be of _0x2e9d8a)for(let _0x2ce945=0x0;_0x2ce945<_0x2372be['length'];_0x2ce945++){const _0x46f7da=_0x2372be[_0x2ce945+0x1]||null;_0x2372be[_0x2ce945]['next']!==_0x46f7da&&(_0x2372be[_0x2ce945]['next']=_0x46f7da);}for(const _0x3348f8 of _0x2e9d8a)for(let _0x5a7292=0x0;_0x5a7292<_0x3348f8['length'];_0x5a7292++){const _0x879a0d=_0x3348f8[_0x5a7292-0x1]||null;_0x3348f8[_0x5a7292]['previous']!==_0x879a0d&&(_0x3348f8[_0x5a7292]['previous']=_0x879a0d);}function _0x3126ae(_0x4adf2d,_0x2abe72){if(_0x4adf2d[0x0]['attributes']['groupId']!==_0x2abe72[0x0]['attributes']['groupId']&&_0x4adf2d[0x0]['author']!==_0x2abe72[0x0]['author'])return!0x1;if(!function(_0x1bab48,_0x3cacc6){return!_0x1bab48['hasComments']&&!_0x3cacc6['hasComments']||(!_0x1bab48['hasComments']||!_0x3cacc6['hasComments'])&&(!!(_0x1bab48['hasComments']&&_0x3cacc6['createdAt']<_0x1bab48['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x3cacc6['hasComments']&&_0x1bab48['createdAt']<_0x3cacc6['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x4adf2d[0x0],_0x2abe72[0x0]))return!0x1;const _0x24d32b=lt(_0x4adf2d[0x0]['attributes'],['groupId','trackingSessionId']),_0x561e4c=lt(_0x2abe72[0x0]['attributes'],['groupId','trackingSessionId']);return!!ct(_0x24d32b,_0x561e4c)&&(_0x4adf2d[0x0]['attributes']['groupId']==_0x2abe72[0x0]['attributes']['groupId']||_0x4adf2d[0x0]['attributes']['trackingSessionId']===_0x2abe72[0x0]['attributes']['trackingSessionId']&&(!!_0x4adf2d['every'](_0x14707b=>_0x2abe72['some'](_0x2c9e06=>_0x14707b['getFirstRange']()['isEqual'](_0x2c9e06['getFirstRange']())))&&_0x2abe72['every'](_0x8bc7ce=>_0x4adf2d['some'](_0x356f12=>_0x8bc7ce['getFirstRange']()['isEqual'](_0x356f12['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x27a38){const _0x535809=Array['from'](_0x27a38),_0x5355a0=this['getSuggestions']({'skipNotAttached':!0x0}),_0x569ed7=_0x5355a0['filter'](_0x416557=>!_0x27a38['has'](_0x416557)),_0x46654b=new Map(_0x535809['map'](_0x9f9340=>[_0x9f9340,this['_suggestionFactory']['getSuggestionCallback'](_0x9f9340['type'],_0x9f9340['subType'],'join')])),_0x3aece7=new Map(_0x5355a0['map'](_0x3f2dc4=>[_0x3f2dc4,_0x3f2dc4['getRanges']()]));for(let _0xf4715=0x0;_0xf4715<_0x535809['length'];_0xf4715++)if(_0x3d4ce0(this,_0x535809[_0xf4715],_0x535809,_0xf4715+0x1))return!0x0;for(let _0x3f6673=0x0;_0x3f6673<_0x535809['length'];_0x3f6673++)if(_0x3d4ce0(this,_0x535809[_0x3f6673],_0x569ed7,0x0))return!0x0;return!0x1;function _0x3d4ce0(_0x135789,_0x26051e,_0x3c49a8,_0x2b8689){for(let _0xfb1679=_0x2b8689;_0xfb1679<_0x3c49a8['length'];_0xfb1679++){const _0x736d32=_0x3c49a8[_0xfb1679];if(_0x736d32['type']!==_0x26051e['type']||_0x736d32['author']['id']!==_0x26051e['author']['id']||_0x736d32['subType']!==_0x26051e['subType'])continue;if(!_n(_0x26051e,_0x736d32))continue;if('attribute'==_0x26051e['type']&&_0x26051e['data']['oldValue']!=_0x736d32['data']['oldValue'])continue;if('attribute'==_0x26051e['type']&&_0x135789['_suggestionsConversion']['isBlockAttribute'](_0x26051e['data']['key']))continue;if('formatBlock'==_0x26051e['type']){const _0x32da39=_0x135789['editor']['model'],_0x1afeb4=_0x26051e['getContainedElement']();if(_0x1afeb4&&(_0x32da39['schema']['isObject'](_0x1afeb4)||_0x32da39['schema']['isLimit'](_0x1afeb4)))continue;}const _0x16802f=_0x46654b['get'](_0x26051e),_0x2e1901=_0x3aece7['get'](_0x26051e),_0x2588d6=_0x3aece7['get'](_0x736d32),_0x13e0d8=_0x26051e['commentThread']&&_0x26051e['commentThread']['length'],_0x15d5f0=_0x736d32['commentThread']&&_0x736d32['commentThread']['length'];if(!_0x13e0d8&&_0x16802f(_0x2588d6,_0x2e1901))return _0x135789['_joinSuggestions'](_0x736d32,_0x26051e),_0x3aece7['delete'](_0x26051e),!0x0;if(!_0x15d5f0&&_0x16802f(_0x2e1901,_0x2588d6))return _0x135789['_joinSuggestions'](_0x26051e,_0x736d32),_0x3aece7['delete'](_0x736d32),!0x0;}return!0x1;}}_joinSuggestions(_0x2b9f38,_0x2bfe08){if(_0x2b9f38['isMultiRange']){for(const _0x45dae4 of _0x2bfe08['getRanges']())_0x2b9f38['addRange'](_0x45dae4);}else{const _0x3601cb=_0x2bfe08['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2b9f38,this['_model']['createRange'](_0x2b9f38['getFirstRange']()['start'],_0x3601cb));}_0x2bfe08['removeMarkers']();}_getMarkerAnnouncementText(_0x183c05,_0x354117,_0x36faa7){const _0x131bf5=_0x183c05['startsWith']('format')||_0x183c05['startsWith']('attribute')?'FORMATTING':_0x183c05['toUpperCase']();return Mt(this['editor']['locale'],_0x354117+'_'+_0x131bf5+'_SUGGESTION_ANNOUNCEMENT',_0x36faa7);}_initAriaMarkerChangeAnnouncements(){const _0x2ef715=this['editor'];if(!_0x2ef715['ui'])return;const {ariaLiveAnnouncer:_0x1a0493}=_0x2ef715['ui'];et(this['_model'],({left:_0x19aa31,entered:_0xae3139})=>{for(const _0x2f77a9 of _0x19aa31){const {group:_0x3dc04c,type:_0x101849}=tt(_0x2f77a9['name']);if('suggestion'===_0x3dc04c){_0x1a0493['announce'](this['_getMarkerAnnouncementText'](_0x101849,'LEAVE'));break;}}for(const _0x3fb825 of _0xae3139){const {group:_0x11de8a,type:_0x3344c6}=tt(_0x3fb825['name']);if('suggestion'===_0x11de8a){_0x1a0493['announce'](this['_getMarkerAnnouncementText'](_0x3344c6,'ENTER',_0x37b6f2(_0x25897d)));break;}}});}_processAttributeChanges(_0x46542d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5c169c=this['editor'],_0x117948=_0x5c169c['model']['document']['differ']['getChanges']();if(0x0==_0x117948['length'])return!0x1;const _0x3961e5=[],_0x4763bd=_0x117948['filter'](_0x387813=>'attribute'==_0x387813['type']),_0x251b54=_0x117948['filter'](_0x342c8b=>'insert'==_0x342c8b['type']&&'$text'!=_0x342c8b['name']),_0x59642c=_0x117948['filter'](_0x5e3309=>'remove'==_0x5e3309['type']&&'$text'!=_0x5e3309['name']);for(const _0x2e35ae of _0x4763bd)_0x3961e5['push']({'key':_0x2e35ae['attributeKey'],'newValue':_0x2e35ae['attributeNewValue'],'oldValue':_0x2e35ae['attributeOldValue'],'range':mn(_0x2e35ae['range'],_0x5c169c['model'])});for(const _0xafbba0 of _0x251b54){const _0x214e7b=_0x59642c['find'](_0x72d29e=>_0x72d29e['position']['isEqual'](_0xafbba0['position']));_0x214e7b&&_0x3961e5['push']({'key':sn,'newValue':_0xafbba0['name'],'oldValue':_0x214e7b['name'],'range':_0x5c169c['model']['createRangeOn'](_0xafbba0['position']['nodeAfter'])});}return 0x0!=_0x3961e5['length']&&this['_reduceExistingSuggestions'](_0x46542d,_0x3961e5);}_processAttributeSuggestions(_0x1e04ec){let _0x1a3f57=!0x1;const _0x35345e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3ef883=>_0x3ef883['data']['newRange']&&_0x3ef883['name']['startsWith']('suggestion:attribute:'));for(const _0x3db6f4 of _0x35345e){const {subType:_0x1d407c,id:_0x49c335}=tt(_0x3db6f4['name']),_0x51e915=_0x1d407c['split']('|')[0x0];for(const _0x255fb0 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x255fb0['id']!=_0x49c335&&'attribute'==_0x255fb0['type']&&_0x255fb0['data']&&_0x255fb0['data']['key']==_0x51e915&&_0x255fb0['getFirstRange']()['isIntersecting'](_0x3db6f4['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x255fb0,_0x3db6f4['data']['newRange'],_0x1e04ec),_0x1a3f57=!0x0);}return _0x1a3f57;}recordAttributeChanges(_0x17d600){this['_recordAttributeSuggestions']=!0x0,_0x17d600();}_reduceExistingSuggestions(_0x1740c9,_0x117af4){if(0x0==_0x117af4['length'])return!0x1;let _0x3fe4e5=!0x1;for(const _0xaf959d of _0x117af4){const _0x40bb36=this['_findSuggestions'](_0xaf959d['range'],'attribute')['filter'](_0x2e1620=>!_0x2e1620['meta']['isNextTo'])['map'](_0x390a85=>_0x390a85['suggestion']),_0x3e0723=_0x3c33b8({'newValue':_0xaf959d['newValue']});_0x40bb36['filter'](_0x3fa8d9=>{const [_0x31a6fe,_0x1a8053]=_0x3fa8d9['subType']['split']('|');return _0x31a6fe==_0xaf959d['key']&&_0x1a8053!=_0x3e0723;})['forEach'](_0x5101a8=>{this['_reduceSuggestionAttributeRange'](_0x5101a8,_0xaf959d['range'],_0x1740c9),_0x3fe4e5=!0x0;});}return _0x3fe4e5;}_reduceSuggestionAttributeRange(_0x1c06c6,_0x5a5996,_0x243b79){const _0x3d3ae3=_0x1c06c6['getFirstRange']()['getDifference'](_0x5a5996);0x0!==_0x3d3ae3['length']?0x1!==_0x3d3ae3['length']?this['_breakSuggestionMarker'](_0x1c06c6,_0x5a5996['start'],_0x5a5996['end']):this['_setSuggestionRange'](_0x1c06c6,_0x3d3ae3[0x0]):_0x243b79['removeMarker'](_0x1c06c6['getFirstMarker']());}},an=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x2a1dd3){this['_editor']=_0x2a1dd3,this['_model']=_0x2a1dd3['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x180b95,_0x582abf,_0x297c36,_0x228f1f,_0x204b16,_0x3f4263,_0xdd1ef7){return new St(this['_model'],{'type':_0x180b95,'subType':_0x582abf,'id':_0x297c36,'originalSuggestionId':_0xdd1ef7,'author':_0x228f1f,'creator':_0x228f1f,'attributes':_0x204b16,'onAttributesChange':_0x3f4263,'onAccept':(..._0xc85d7c)=>this['getSuggestionCallback'](_0x180b95,_0x582abf,'accept')(..._0xc85d7c),'onDiscard':(..._0x17693c)=>this['getSuggestionCallback'](_0x180b95,_0x582abf,'discard')(..._0x17693c)});}registerCustomCallback(_0x25bf59,_0x30640e,_0x2724d1,_0x994f84){const _0x37206a=_0x25bf59+':'+_0x30640e+':'+_0x2724d1;this['_customCallbacks']['set'](_0x37206a,_0x994f84);}getSuggestionCallback(_0x2a1f19,_0x5acc01,_0xa51f8e){const _0x17f111=_0x2a1f19+':'+_0x5acc01+':'+_0xa51f8e;return this['_customCallbacks']['get'](_0x17f111)||this['_defaultCallbacks']['get'](_0x2a1f19+':'+_0xa51f8e);}_registerDefaultCallbacks(){const _0x136b6b=()=>!0x1,_0x486c05=_0x208032=>{_0x208032['sort']((_0x14b3e7,_0x2223a6)=>_0x14b3e7['start']['isBefore'](_0x2223a6['start'])?0x1:-0x1),this['_model']['change'](_0x42da18=>{for(const _0x3c59fe of _0x208032){let _0x28625c;_0x28625c=_0x3c59fe['end']['isAtEnd']&&_0x3c59fe['end']['parent']==_0x3c59fe['start']['nodeAfter']?_0x42da18['createSelection'](_0x3c59fe['start']['nodeAfter'],'on'):_0x42da18['createSelection'](_0x3c59fe),this['_model']['deleteContent'](_0x28625c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x296f1d=(_0xd8e349,_0x2c114f)=>{_0x2c114f&&this['_model']['change'](_0x33f933=>{const {commandName:_0x48e4c5,commandParams:_0x1733a7=[]}=_0x2c114f,_0x4fa849=_0xd8e349['map'](_0x20894b=>(ln(_0x20894b)&&(_0x20894b=this['_model']['createRange'](_0x20894b['end'])),_0x20894b))['filter'](_0x28d1ee=>'$graveyard'!==_0x28d1ee['root']['rootName']);if(_0x4fa849['length']<0x1)return;const _0x230cec=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4790c8=>rt['fromRange'](_0x4790c8));_0x33f933['setSelection'](_0x4fa849);for(const _0x12dda2 of this['_editor']['commands']['commands']())_0x12dda2['refresh']();_0x1733a7['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x48e4c5,..._0x1733a7);const _0x537dc5=_0x230cec['filter'](_0x46bf1a=>'$graveyard'!=_0x46bf1a['root']['rootName']);_0x537dc5['length']>0x0&&_0x33f933['setSelection'](_0x537dc5);for(const _0xa3fa4 of _0x230cec)_0xa3fa4['detach']();});},_0x583768=(_0x19b05a,_0x1f4914)=>0x1==_0x19b05a['length']&&0x1==_0x1f4914['length']&&_0x19b05a[0x0]['end']['isEqual'](_0x1f4914[0x0]['start']),_0x1cd1c8=(_0x3217cb,_0x248cec,_0x24323a,_0x41233b)=>Tn(_0x3217cb,_0x248cec,_0x24323a,_0x41233b)?[_0x3217cb,_0x248cec]:Tn(_0x248cec,_0x3217cb,_0x41233b,_0x24323a)?[_0x248cec,_0x3217cb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x136b6b),this['_defaultCallbacks']['set']('insertion:discard',_0x486c05),this['_defaultCallbacks']['set']('insertion:join',_0x583768),this['_defaultCallbacks']['set']('insertion:chain',_0x1cd1c8),this['_defaultCallbacks']['set']('deletion:accept',(_0x3f98c2,_0x200d7e,_0x49b7b1)=>{const _0x5b3db1=(_0x49b7b1?.['@ai'])?.['type'];_0x5b3db1?this['_model']['change'](_0xca13d8=>{const _0x2045a4=_0xca13d8['batch']['operations']['length'];_0x486c05(_0x3f98c2);for(let _0x144631=_0x2045a4;_0x144631<_0xca13d8['batch']['operations']['length'];_0x144631++)_0xca13d8['batch']['operations'][_0x144631]['_aiSource']=_0x5b3db1;}):_0x486c05(_0x3f98c2);}),this['_defaultCallbacks']['set']('deletion:discard',_0x136b6b),this['_defaultCallbacks']['set']('deletion:join',_0x583768),this['_defaultCallbacks']['set']('deletion:chain',_0x1cd1c8),this['_defaultCallbacks']['set']('formatInline:accept',_0x296f1d),this['_defaultCallbacks']['set']('formatInline:discard',_0x136b6b),this['_defaultCallbacks']['set']('formatInline:join',_0x583768),this['_defaultCallbacks']['set']('formatInline:chain',_0x136b6b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x296f1d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x136b6b),this['_defaultCallbacks']['set']('formatBlock:join',_0x583768),this['_defaultCallbacks']['set']('formatBlock:chain',_0x136b6b),this['_defaultCallbacks']['set']('attribute:accept',_0x136b6b),this['_defaultCallbacks']['set']('attribute:discard',(_0x29b0db,_0x542ba5)=>{if(!_0x542ba5)return;const _0x8049a=this['_editor']['plugins']['get'](_0x5f5768);this['_model']['change'](_0x2ad289=>{if('$elementName'==_0x542ba5['key'])for(const _0x36a4ed of _0x29b0db){const _0x370c61=_0x36a4ed['start']['nodeAfter'],_0x3c4331=_0x542ba5['oldValue'];_0x2ad289['rename'](_0x370c61,_0x3c4331);}else{if(_0x8049a['isBlockAttribute'](_0x542ba5['key'])){for(const _0x430246 of _0x29b0db)void 0x0!==_0x542ba5['oldValue']?_0x2ad289['setAttribute'](_0x542ba5['key'],_0x542ba5['oldValue'],_0x430246['start']['nodeAfter']):_0x2ad289['removeAttribute'](_0x542ba5['key'],_0x430246['start']['nodeAfter']);}else{for(const _0x38897a of _0x29b0db)_0x542ba5['oldValue']?_0x2ad289['setAttribute'](_0x542ba5['key'],_0x542ba5['oldValue'],_0x38897a):_0x2ad289['removeAttribute'](_0x542ba5['key'],_0x38897a);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x583768);}};function cn(_0x373647,_0x52a19f,_0x35849e){for(const _0xff44c2 of _0x52a19f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xff44c2['root']==_0xff44c2)return!0x1;if(!_0x35849e['containsItem'](_0xff44c2))return!0x1;if(_0x373647['isObject'](_0xff44c2)||_0x373647['isLimit'](_0xff44c2))return!0x0;}return!0x1;}function ln(_0x4613bf){return _0x4613bf['end']['parent']==_0x4613bf['start']['nodeAfter']&&_0x4613bf['end']['isAtStart'];}function un(_0x5207ca,_0x26c06a,_0x3785c2,_0x604120){const _0x312c96=_0xab26d4=>!_0xab26d4['item']['is']('$textProxy')&&!_0x604120['isObject'](_0xab26d4['item']),_0x4eca27=_0x5207ca['start']['getLastMatchingPosition'](_0x312c96),_0x3eb1d0=_0x5207ca['end']['getLastMatchingPosition'](_0x312c96,{'direction':'backward'});return(!_0x5207ca['start']['isEqual'](_0x4eca27)||!_0x5207ca['end']['isEqual'](_0x3eb1d0))&&(_0x4eca27['isBefore'](_0x3eb1d0)?_0x3785c2['updateMarker'](_0x26c06a,{'range':_0x3785c2['createRange'](_0x4eca27,_0x3eb1d0)}):_0x3785c2['removeMarker'](_0x26c06a),!0x0);}function dn(_0x1f8d19){return _0x3c33b8(_0x1f8d19);}function hn(_0x3e4f06){const _0x2a213c=_0x3e4f06['start']['nodeAfter'];return _0x2a213c&&_0x2a213c['is']('element');}function gn(_0x253f0a){return ln(_0x253f0a)||function(_0x535994){return _0x535994['start']['parent']==_0x535994['end']['nodeBefore']&&_0x535994['start']['isAtEnd'];}(_0x253f0a);}function fn(_0x10d4d5,_0x18a666){try{const _0x1a1ac6=_0x10d4d5['getRange']();for(const _0x33a9e7 of _0x18a666)if(_0x10d4d5!==_0x33a9e7&&_0x1a1ac6&&_0x1a1ac6['isIntersecting'](_0x33a9e7['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function mn(_0x4851a3,_0x51912c){return null==_0x4851a3['end']['nodeBefore']&&_0x4851a3['end']['parent']==_0x4851a3['start']['nodeAfter']?En(_0x4851a3['start']['nodeAfter'],_0x51912c):_0x4851a3;}function En(_0x2b290c,_0x5a6c92){const _0x3eddc0=_0x5a6c92['schema']['isObject'](_0x2b290c)||_0x5a6c92['schema']['isSelectable'](_0x2b290c);return _0x5a6c92['createRange'](_0x5a6c92['createPositionAt'](_0x2b290c,'before'),_0x3eddc0?_0x5a6c92['createPositionAfter'](_0x2b290c):_0x5a6c92['createPositionAt'](_0x2b290c,'end'));}function Tn(_0x29b0c1,_0x21e3a3,_0x11e645,_0x5a0334){return!!_n(_0x29b0c1,_0x21e3a3)&&_0x11e645['end']['isEqual'](_0x5a0334['start']);}function _n(_0x236c2f,_0x562ba2){if(!_0x236c2f['_isDataLoaded']||!_0x562ba2['_isDataLoaded'])return!0x1;const _0x28b856=new Set(Object['keys'](_0x236c2f['attributes'])),_0x1847db=new Set(Object['keys'](_0x562ba2['attributes']));if(_0x28b856['delete']('groupId'),_0x1847db['delete']('groupId'),0x0==_0x28b856['size']&&0x0==_0x1847db['size'])return!0x0;if(_0x28b856['size']!=_0x1847db['size'])return!0x1;const _0x305709={..._0x236c2f['attributes']},_0x5b799c={..._0x562ba2['attributes']};return delete _0x305709['groupId'],delete _0x5b799c['groupId'],JSON['stringify'](_0x305709)==JSON['stringify'](_0x5b799c);}function pn(_0x32332d,_0x4780db){const _0x2fc5eb=Ln(_0x32332d['attributes']),_0x112097=Ln(_0x4780db);if(!_0x32332d['_isDataLoaded'])return!0x1;if(!ct(_0x2fc5eb['@ai'],_0x112097['@ai']))return!0x1;for(const _0x599274 of Object['keys'](_0x112097))if(!ct(_0x2fc5eb[_0x599274],_0x112097[_0x599274]))return!0x1;return!0x0;}function Ln(_0x3339ba){const _0x35a1f6=Object['assign']({},_0x3339ba);return delete _0x35a1f6['skipNestingCheck'],delete _0x35a1f6['tablePasteChainId'],_0x35a1f6;}function In(_0x779ca8){return _0x779ca8['split']('|')[0x0];}const An=/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x2df605();var bn=class extends An{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x225095,_0x2688a9,_0x44fe03,_0x4f7bb5){super(),this['model']=_0x2688a9,this['view']=_0x44fe03,this['commentThreadController']=_0x4f7bb5,this['_editor']=_0x225095,this['_acceptCommand']=_0x225095['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x225095['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4c33b3,_0x2787b4)=>_0x4c33b3||_0x2787b4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2e7661=>_0x2e7661&&this['_editor']['model']['canEditAt'](_0x2688a9['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x156285=>_0x156285&&this['_editor']['model']['canEditAt'](_0x2688a9['getRanges']())),this['_pendingAction']=null,_0x44fe03['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x44fe03,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x44fe03,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x44fe03,'change:isDirty',()=>{_0x44fe03['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 _0xb82885=Mt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xb82885);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},kn=class extends _0x4ec76b{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5ce511,_0x114829,_0x197c6f,_0xbbe0f7){super(_0x5ce511),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x43132d(_0x5ce511,Mt(_0x5ce511,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x114829['authoredAt']),this['bind']('authoredAt')['to'](_0x114829),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',_0x114829,'authoredAt',this,'descriptionParts',(_0x41a8d2,_0x30bfe5,_0x42641a)=>{const _0x440eca=_0x42641a['map'](_0x38ac69=>Lt(_0x38ac69['content']))['join']('.\x20')+'.',_0x30a8bb=_0x114829['aiSource']&&'author'===_0xbbe0f7['showAISource']?_0xbbe0f7['aiAuthor']['name']:_0x114829['author']['name'],_0x132630=Mt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x41a8d2-0x1,_0x30a8bb,_0x30bfe5?_0xbbe0f7['formatDateTime'](_0x30bfe5):'',new DOMParser()['parseFromString'](_0x440eca,'text/html')['body']['textContent']]);return _0x114829['aiSource']&&'pill'===_0xbbe0f7['showAISource']?_0x132630+'\x20'+Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x132630;}),this['focusables']=new _0x5d8d07(),this['focusTracker']=new _0x1f4976(),this['keystrokes']=new _0x2f4c9c(),this['focusCycler']=new _0x1b91a1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3b75d0=>_0x3b75d0['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x114829,this['_localUser']=_0x197c6f,this['_config']=_0xbbe0f7,_0xbbe0f7['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5c3968(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x177464}=this['_config'];this['commentsListView']=new _0x177464(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',_0x509aaa=>_0x509aaa+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x459c3e,_0x49da67)=>_0x459c3e||!!_0x49da67);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x2faf4e}=this['_config'],_0x3e8117=new _0x2faf4e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x46f778=_0x3e8117['commentInputView'];return _0x3e8117['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x46f778,'value',(_0x1f8d77,_0x195229,_0x43e2ae)=>!!_0x43e2ae||_0x1f8d77&&!_0x195229),_0x46f778['on']('submit',(_0x1cba91,_0xa2dd94)=>{this['fire']('addComment',_0xa2dd94),_0x46f778['editor']['setData']('');}),_0x46f778['on']('cancel',()=>this['focus']()),_0x46f778['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3e8117;}},Cn=class extends kn{suggestionView;_descriptionElement;constructor(_0xc4ff60,_0x2db53e,_0x1f2a6e,_0x1d58fb){super(_0xc4ff60,_0x2db53e,_0x1f2a6e,_0x1d58fb),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xb944ba=>_0xb944ba&&_0xb944ba[0x0]?_0xb944ba[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x374183,_0x27bd0f)=>{let _0x2233e0='';for(const _0x90ea40 of _0x374183)_0x2233e0+='<p>'+Lt(_0x90ea40['content'],_0x90ea40['color'])+'</p>';return _0x27bd0f?_0x2233e0:nt(_0x2233e0,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1d58fb['SuggestionView'](_0xc4ff60,_0x2db53e,{'formatDateTime':_0x1d58fb['formatDateTime'],'showAISource':_0x1d58fb['showAISource'],'aiAuthor':_0x1d58fb['aiAuthor']}),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 _0x3918e8=this['bindTemplate'],_0x77cb66=[this['suggestionView']];return this['commentsListView']&&_0x77cb66['push'](this['commentsListView']),this['commentThreadInputView']&&_0x77cb66['push'](this['commentThreadInputView']),_0x77cb66['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3918e8['if']('isActive','ck-suggestion-wrapper--active'),_0x3918e8['to']('type',_0x21a486=>'ck-suggestion-'+_0x21a486),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':_0x3918e8['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x77cb66};}['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));}},Rn=class extends _0x4ec76b{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x4f4be0,_0x1f7de1,_0x2433d7){super(_0x4f4be0),this['_model']=_0x1f7de1,this['_config']=_0x2433d7,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1f7de1),this['acceptButton']=this['_createButton'](Mt(_0x4f4be0,'Accept\x20suggestion'),_0x285a3c,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Mt(_0x4f4be0,'Discard\x20suggestion'),_0x36ffaa,'ck-suggestion--discard','discardSuggestion','sw');const _0xae2749=!!_0x1f7de1['aiSource']&&'author'===_0x2433d7['showAISource'],_0x16c397=_0xae2749?this['_createAIUser'](_0x2433d7['aiAuthor']):_0x1f7de1['author'],_0x3a58b6=_0xae2749&&!_0x2433d7['aiAuthor']['avatar']?_0x1c97b0:void 0x0;this['userView']=new _0x339069(_0x4f4be0,_0x16c397,this['getUserViewNotificationText'](),_0x3a58b6),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5d8d07([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1f4976(),this['keystrokes']=new _0x2f4c9c(),this['focusCycler']=new _0x1b91a1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x43e5d2=>_0x43e5d2['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3135e2=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3135e2['innerHTML']=this['description'],this['on']('change:description',(_0x26928d,_0x23d981,_0x484018)=>{_0x3135e2['innerHTML']=_0x484018;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x1948d8=this['bindTemplate'],_0x22f1e1=[{'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':_0x1948d8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1948d8['to']('authoredAt',_0x34c7fe=>this['_config']['formatDateTime'](_0x34c7fe))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x22f1e1['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x3f2bb5=new _0xb4f7ce(this['locale']);_0x3f2bb5['set']({'icon':_0x1ad20c,'label':Mt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x22f1e1['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x3f2bb5]});}return{'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':_0x22f1e1}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Mt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Mt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x4a618f){return new _0x7d6983({'id':'ck-ai-author','name':_0x4a618f['name'],'avatar':_0x4a618f['avatar'],'color':new _0x342033(0x0)});}_createButton(_0x2c88ea,_0x5daa82,_0x2f2041,_0x1b559c,_0x38e6c8){const _0x3a7833=new _0x4218dd(this['locale']);return _0x3a7833['set']({'label':_0x2c88ea,'icon':_0x5daa82,'tooltip':!0x0,'tooltipPosition':_0x38e6c8}),_0x3a7833['extendTemplate']({'attributes':{'class':_0x2f2041}}),_0x3a7833['on']('execute',()=>{this['fire'](_0x1b559c,this['_model']['id']);}),_0x3a7833;}_setupKeyboardNavigation(){const _0x1a9aea=this['element'];this['keystrokes']['listenTo'](_0x1a9aea);for(const _0x29ef27 of this['focusables'])this['focusTracker']['add'](_0x29ef27['element']),this['keystrokes']['listenTo'](_0x29ef27['element']);this['keystrokes']['set']('enter',(_0x26af78,_0xe44d41)=>{_0x1a9aea===_0x26af78['target']&&(this['focusCycler']['focusFirst'](),_0xe44d41());}),this['keystrokes']['set']('esc',(_0x4da6d3,_0x4e5141)=>{_0x1a9aea!==_0x4da6d3['target']&&(this['focus'](),_0x4e5141());});}},yn=class extends _0x253c9e{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[on,_0x23536b,_0xfa421f,_0x1dd919,_0x41a898];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52644b){super(_0x52644b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x40bc00=this['editor']['config'];_0x40bc00['define']('trackChanges.SuggestionThreadView',Cn),_0x40bc00['define']('trackChanges.SuggestionView',Rn),_0x40bc00['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x40bc00['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x12120c,_0x40a030){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3bdb42,_0x175f77]of this['_handleControllerBuffer']){const _0x590834=this['_suggestionToController']['has'](_0x3bdb42);_0x590834||_0x175f77?_0x590834&&_0x175f77&&this['_destroyController'](_0x3bdb42):this['_initializeController'](_0x3bdb42);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x41a898)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x12120c,_0x40a030);}init(){const _0x471948=this['editor'],_0x582663=_0x471948['plugins']['get'](on),_0x4ea635=_0x471948['plugins']['get'](_0x1dd919),_0x10e2b9=_0x471948['plugins']['get'](_0x41a898),_0xe6ae52=_0x471948['plugins']['get'](_0xfa421f);this['_addUIComponentsToFactory'](),_0x10e2b9['addSourceCollector'](()=>{const _0x3c103d=[];for(const [_0x429114,_0x216a49]of Array['from'](this['_suggestionToController'])){const _0x2dbfa0=_0x429114['getAllAdjacentSuggestions'](),_0x21a3e4=[];for(const _0x210328 of _0x2dbfa0){if(!_0x210328['isInContent'])continue;if(_0x210328['isMultiRange']){_0x21a3e4['push'](..._0x210328['getRanges']());continue;}const _0x1df053=_0x210328['getFirstRange']();if(_0x21a3e4['length']>0x0){const _0x25aa78=_0x21a3e4[0x0]['getJoined'](_0x1df053);if(_0x25aa78){_0x21a3e4[0x0]=_0x25aa78;continue;}}_0x21a3e4['push'](_0x1df053);}_0x3c103d['push']([_0x216a49['view'],_0x21a3e4]);}return _0x3c103d;}),this['listenTo'](_0x582663,'suggestionLoaded',(_0x232fdf,_0x278168)=>{this['listenTo'](_0x278168,'change:previous',(_0x40553d,_0x42bbfa,_0x373215,_0x28c964)=>{_0x278168['isInContent']&&(null==_0x373215?(this['_updateController'](_0x28c964['head']),this['_handleSuggestionControllerDelayed'](_0x278168,!0x1)):(this['_updateController'](_0x373215['head']),null==_0x28c964&&this['_handleSuggestionControllerDelayed'](_0x278168,!0x0)));}),null!==_0x278168['previous']?this['_updateController'](_0x278168['head']):this['_handleSuggestionControllerDelayed'](_0x278168,!0x1);}),this['listenTo'](_0x582663,'suggestionUnloaded',(_0x250ea8,_0x51055a,_0xce3883)=>{this['stopListening'](_0x51055a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x51055a),this['_suggestionToController']['has'](_0x51055a)&&this['_destroyController'](_0x51055a),_0xce3883&&this['_updateController'](_0xce3883['head']);}),this['listenTo'](_0x582663,'suggestionChanged',(_0x279d87,_0x919464)=>{this['_updateController'](_0x919464);}),this['listenTo'](_0x4ea635,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xe6ae52,'addComment',(_0x50649d,{threadId:_0x46e8bc,isFromAdapter:_0x246fa1})=>{if(_0x246fa1||!_0x582663['hasSuggestion'](_0x46e8bc))return;const _0x53f609=_0x582663['getSuggestion'](_0x46e8bc);this['_suggestionToController']['get'](_0x53f609)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x312ab8=[this['editor']];for(const _0x3adf72 of _0x312ab8){let _0x2ef6f6;for(const _0x4c4d09 in _0x3adf72){const _0x1d7234=_0x4c4d09,_0x5616d7=_0x3adf72[_0x1d7234];if('trackChangesLicenseKeyValid'==_0x5616d7||'trackChangesLicenseKeyInvalid'==_0x5616d7||'trackChangesLicenseKeyExpired'==_0x5616d7||'trackChangesLicenseKeyDomainLimit'==_0x5616d7||'trackChangesLicenseKeyNotAllowed'==_0x5616d7||'trackChangesLicenseKeyEvaluationLimit'==_0x5616d7||'trackChangesLicenseKeyUsageLimit'==_0x5616d7){delete _0x3adf72[_0x1d7234],_0x2ef6f6=_0x5616d7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2ef6f6&&_0x3adf72['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2ef6f6&&_0x3adf72['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2ef6f6&&_0x3adf72['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2ef6f6&&_0x3adf72['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2ef6f6&&_0x3adf72['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2ef6f6&&_0x3adf72['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0xebca45){const _0x20b09f=this['_suggestionToController']['get'](_0xebca45);return _0x20b09f&&this['editor']['plugins']['get'](_0x1dd919)['getByInnerView'](_0x20b09f['view'])||null;}getSuggestionForAnnotation(_0xb7df3a){const _0x4b746f=this['_viewToController']['get'](_0xb7df3a['innerView']);return _0x4b746f?_0x4b746f['model']:null;}_refreshActiveMarkers(){const _0x1a3beb=this['editor']['plugins']['get'](_0x1dd919),_0x37218a=this['editor']['plugins']['get'](on),_0x3d24a3=Array['from'](_0x1a3beb['activeAnnotations'],_0xb7debd=>_0xb7debd['innerView'])['filter'](_0x38e310=>this['_viewToController']['has'](_0x38e310)),_0x546d2d=[];for(const _0x187e2b of _0x3d24a3){const _0xe829e=this['_viewToController']['get'](_0x187e2b)['model']['getAllAdjacentSuggestions']();_0x546d2d['push'](..._0xe829e['reduce']((_0x52b0a0,_0xa1c37d)=>[..._0x52b0a0,..._0xa1c37d['getMarkerNames']()],[]));}_0x37218a['activeMarkers']=_0x546d2d;}_addUIComponentsToFactory(){const _0x4c5d6b=this['editor'],_0x1cc601=_0x4c5d6b['locale'],_0x566b6c=Mt(_0x1cc601,'Track\x20changes'),_0x22bec4=new _0x333733([{'type':'switchbutton','model':new _0x4b53ea({'withText':!0x0,'isToggleable':!0x0,'label':_0x566b6c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4b53ea({'withText':!0x0,'label':Mt(_0x1cc601,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4b53ea({'withText':!0x0,'label':Mt(_0x1cc601,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4b53ea({'withText':!0x0,'label':Mt(_0x1cc601,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4b53ea({'withText':!0x0,'label':Mt(_0x1cc601,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4c5d6b['plugins']['has']('TrackChangesPreview')&&_0x22bec4['addMany']([{'type':'separator'},{'type':'button','model':new _0x4b53ea({'withText':!0x0,'label':Mt(_0x1cc601,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x387f5a of _0x22bec4)if(Nn(_0x387f5a)){const _0x697540=_0x4c5d6b['commands']['get'](_0x387f5a['model']['commandName']);_0x387f5a['model']['bind']('isOn','isEnabled')['to'](_0x697540,'value','isEnabled');}_0x4c5d6b['ui']['componentFactory']['add']('trackChanges',_0x3a7798=>this['_createToolbarButton'](_0x3a7798,_0x22bec4,_0x566b6c)),_0x4c5d6b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x11b6e8=>this['_createMenuBarMenu'](_0x11b6e8,_0x22bec4,_0x566b6c));}_createToolbarButton(_0x1207a3,_0x513f04,_0x59e270){const _0x32cbb8=_0x7d8bcf(_0x1207a3,_0x4641c5),_0x241f6b=this['editor']['commands']['get']('trackChanges');_0x32cbb8['buttonView']['set']({'tooltip':_0x59e270,'label':_0x59e270,'icon':_0x1881e2}),_0x32cbb8['buttonView']['bind']('isOn')['to'](_0x241f6b,'value'),_0x32cbb8['buttonView']['on']('execute',()=>{_0x241f6b['execute'](),this['editor']['editing']['view']['focus']();}),_0x1119dc(_0x32cbb8,_0x513f04,{'role':'menu'});const _0x581bb5=[];for(const _0x471067 of _0x513f04)Nn(_0x471067)&&_0x581bb5['push'](this['editor']['commands']['get'](_0x471067['model']['commandName']));const _0x545b16=_0x32cbb8['buttonView'];return _0x545b16['actionView']['unbind']('isEnabled'),_0x545b16['arrowView']['unbind']('isEnabled'),_0x545b16['actionView']['bind']('isEnabled')['to'](_0x241f6b,'isEnabled'),_0x545b16['arrowView']['bind']('isEnabled')['toMany'](_0x581bb5,'isEnabled',(..._0x226ff7)=>_0x226ff7['some'](_0xc3a519=>_0xc3a519)),_0x32cbb8['on']('execute',_0x45aa90=>{this['editor']['execute'](_0x45aa90['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x32cbb8;}_createMenuBarMenu(_0x645b93,_0x14f0a9,_0x4c0765){const _0x474bca=new _0x2aab14(_0x645b93),_0x2e225f=this['editor']['commands']['get']('trackChanges');_0x474bca['buttonView']['set']({'label':_0x4c0765,'icon':_0x1881e2});const _0x8088e4=new _0x4ddc73(_0x645b93);for(const _0x4605ff of _0x14f0a9){if('separator'==_0x4605ff['type']){_0x8088e4['items']['add'](new _0x4a5048(_0x645b93));continue;}const _0x5191bc=new _0x5b8dae(_0x645b93,_0x474bca),_0x11b056=new _0x226466(_0x645b93),_0x479ba1=_0x4605ff['model'];_0x11b056['bind'](...Object['keys'](_0x479ba1))['to'](_0x479ba1),_0x11b056['delegate']('execute')['to'](_0x474bca),_0x11b056['on']('execute',()=>{this['editor']['execute'](_0x479ba1['commandName']),this['editor']['editing']['view']['focus']();}),_0x5191bc['children']['add'](_0x11b056),_0x8088e4['items']['add'](_0x5191bc);}return _0x474bca['bind']('isEnabled')['to'](_0x2e225f,'isEnabled'),_0x474bca['panelView']['children']['add'](_0x8088e4),_0x474bca;}_initializeController(_0x56863d){const _0x5f3608=this['editor'],_0x9cffd2=_0x5f3608['config'],_0x3f3d0d=_0x5f3608['plugins']['get'](_0x1dd919),_0xb4c697=_0x5f3608['plugins']['get'](_0xfa421f),_0x5181e2=_0x5f3608['plugins']['get'](_0x41a898),_0x5e8ad6=_0x5f3608['plugins']['get'](_0x23536b)['me'],_0x21fde6=_0x9cffd2['get']('trackChanges')['SuggestionThreadView'],_0x23ae66=_0x9cffd2['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4c04fa,CommentThreadInputView:_0x40227b}=_0x5f3608['plugins']['get']('CommentsUI');let _0x395d44,_0x596f14,_0x278e79;this['_annotationViews']['has'](_0x56863d['id'])?(_0x596f14=this['_annotationViews']['get'](_0x56863d['id']),_0x395d44=_0x596f14['mainView']):(_0x395d44=new _0x21fde6(_0x5f3608['locale'],_0x56863d,_0x5e8ad6,{'disableComments':this['_disableComments'],'editorConfig':{..._0x9cffd2['get']('comments.editorConfig'),'licenseKey':_0x9cffd2['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x9cffd2['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x9cffd2['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x9cffd2['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1fc032(_0x9cffd2['get']('locale'),_0x5f3608['locale']),'CommentView':_0x9cffd2['get']('comments')['CommentView'],'CommentsListView':_0x4c04fa,'CommentThreadInputView':_0x40227b,'SuggestionView':_0x23ae66,'showAISource':_0x9cffd2['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x9cffd2['get']('trackChanges.aiAuthor'),'name':_0x9cffd2['get']('trackChanges.aiAuthor')?.['name']||Mt(_0x5f3608['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x395d44['suggestionView']['acceptButton']['on']('execute',()=>{_0x5f3608['editing']['view']['focus']();}),_0x395d44['suggestionView']['discardButton']['on']('execute',()=>{_0x5f3608['editing']['view']['focus']();}),_0x596f14=_0x3f3d0d['createAnnotationView'](this['editor']['locale'],_0x395d44),_0x596f14['bind']('isDirty')['to'](_0x395d44,'isDirty'),_0x596f14['bind']('length')['to'](_0x395d44),_0x596f14['bind']('type')['to'](_0x395d44,'type',_0x174973=>'suggestion-'+_0x174973),_0x395d44['on']('escape',()=>{_0x278e79['fire']('escape');}),this['_annotationViews']['set'](_0x56863d['id'],_0x596f14));const _0x50787a=_0xb4c697['createCommentThreadController'](_0x56863d['commentThread'],_0x395d44),_0x2828f4=new bn(_0x5f3608,_0x56863d,_0x395d44,_0x50787a),_0x128dd5=_0x56863d['getAllAdjacentSuggestions']()['filter'](_0x5398c9=>_0x5398c9['isInContent']);_0x395d44['descriptionParts']=_0x5f3608['plugins']['get'](on)['descriptionFactory']['getDescriptions'](_0x128dd5),this['_suggestionToController']['set'](_0x56863d,_0x2828f4),this['_viewToController']['set'](_0x395d44,_0x2828f4);const _0x5f0e48=()=>{const _0x4170f8=[],_0x219ecf=_0x56863d['getAllAdjacentSuggestions']()['filter'](_0x9061fe=>_0x9061fe['isInContent']);for(const _0x1e36ea of _0x219ecf)_0x4170f8['push'](..._0x1e36ea['getMarkers']());return _0x5c4ec8(_0x5f3608['editing'],_0x4170f8);};_0x278e79=_0x3f3d0d['createAnnotation']({'view':_0x596f14,'target':_0x5f0e48,'type':()=>'suggestion-'+_0x2828f4['view']['type'],'isVisible':!!_0x5f0e48()}),_0xb4c697['_bindAnnotationToEditors'](_0x395d44,_0x278e79),_0x3f3d0d['add'](_0x278e79),_0x5181e2['registerAnnotation'](_0x278e79);}_destroyController(_0x4c4fdf){const _0x38cc6b=this['editor']['plugins']['get'](_0xfa421f),_0x18e934=this['editor']['plugins']['get'](_0x1dd919),_0x1f988d=this['_suggestionToController']['get'](_0x4c4fdf),_0xdb9f00=_0x1f988d['view'],_0x2df35e=_0x18e934['getByInnerView'](_0xdb9f00);_0x38cc6b['_unbindEditors'](_0xdb9f00),_0x2df35e&&_0x18e934['remove'](_0x2df35e),this['_suggestionToController']['delete'](_0x4c4fdf),this['_viewToController']['delete'](_0xdb9f00),_0x1f988d['destroy']();}_updateController(_0x260f62){if(!_0x260f62['isInContent']||!this['_suggestionToController']['has'](_0x260f62))return;const _0x1b8f03=this['editor']['plugins']['get'](on),_0x234ad3=this['_suggestionToController']['get'](_0x260f62),_0x4e371c=_0x260f62['getAllAdjacentSuggestions']();_0x234ad3['view']['descriptionParts']=_0x1b8f03['descriptionFactory']['getDescriptions'](_0x4e371c);}destroy(){for(const _0x4bb300 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4bb300);for(const _0x452525 of this['_annotationViews']['values']())_0x452525['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Nn(_0x198dee){return'model'in _0x198dee;}var Sn=class extends _0x253c9e{static get requires(){return[on,yn,_0x25af71];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x3ffb08){this['editor']['plugins']['get'](on)['adapter']=_0x3ffb08;}get adapter(){return this['editor']['plugins']['get'](on)['adapter'];}addSuggestion(_0x54b24d){return this['editor']['plugins']['get'](on)['addSuggestionData'](_0x54b24d);}getSuggestions({skipNotAttached:_0xaa4702=!0x1,toJSON:_0x40e9dc=!0x1}={}){return this['editor']['plugins']['get'](on)['getSuggestions']({'skipNotAttached':_0xaa4702,'toJSON':_0x40e9dc});}getSuggestion(_0x481f8b){return this['editor']['plugins']['get'](on)['getSuggestion'](_0x481f8b);}};const Mn=['Pagination'];var On=class extends _0x253c9e{static get requires(){return[on];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x16f7df=this['editor'];if(_0x16f7df['config']['define']('trackChangesData.editorCreator',_0x370c46=>{const _0xac3ed=_0x16f7df['model']['document']['getRootNames']()['reduce']((_0x32b09f,_0x6ccfe2)=>(_0x32b09f[_0x6ccfe2]='',_0x32b09f),{});return _0x16f7df['constructor']['create'](_0xac3ed,_0x370c46);}),'function'!=typeof _0x16f7df['config']['get']('trackChangesData')['editorCreator'])throw new _0x2b818d('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x41d614){return Bn(this['editor'],!0x0,_0x41d614);}getDataWithDiscardedSuggestions(_0x3141c0){return Bn(this['editor'],!0x1,_0x3141c0);}},wn=class extends _0x253c9e{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2cc746){super(_0x2cc746),this['result']='end',_0x2cc746['editing']['view']['_overlayModeHint']='auto',_0x2cc746['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}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 Fn(_0x5a34ba){return void 0x0!==_0x5a34ba['getRootsAttributes'];}async function Bn(_0x45ccc9,_0x433dc8,_0x546fcc){const _0x318e41=_0xe4ceac(_0x45ccc9,Mn);if(_0x318e41['plugins']['push'](on,wn),Fn(_0x45ccc9)){_0x318e41['roots']=Object['create'](null);for(const _0x3bc082 of _0x45ccc9['model']['document']['getRootNames']())_0x318e41['roots'][_0x3bc082]={'modelAttributes':_0x45ccc9['getRootAttributes'](_0x3bc082)};}const _0x124805=document['createDocumentFragment'](),_0x5a7b2a=_0x45ccc9['config']['get']('trackChangesData')['editorCreator'],_0x5ef64a=await _0x5a7b2a(_0x318e41,()=>function(_0x51bd47){const _0x1b2614=document['createElement']('div');return _0x51bd47['appendChild'](_0x1b2614),_0x1b2614;}(_0x124805));!function(_0x2937a3,_0xcfeca4){const _0x3f21af=_0x2937a3['model']['document']['getRootNames']()['reduce']((_0x162163,_0x1cd326)=>(_0x162163[_0x1cd326]=_0x2937a3['data']['get']({'rootName':_0x1cd326}),_0x162163),{}),_0x25226d=_0x2937a3['plugins']['get']('Users')['users']['map'](_0x521fb3=>({'id':_0x521fb3['id'],'name':_0x521fb3['name']})),_0x9e32aa=_0x2937a3['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x550d7b=_0x2937a3['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x490b63=_0xcfeca4['plugins']['get']('Users'),_0x204417=_0xcfeca4['plugins']['get']('TrackChangesEditing'),_0x4446a7=_0xcfeca4['plugins']['get']('CommentsRepository');for(const _0x2072b6 of _0x4446a7['getCommentThreads']())_0x2072b6['remove']();for(const _0x55a7ba of _0x25226d)_0x490b63['getUser'](_0x55a7ba['id'])||_0x490b63['addUser'](_0x55a7ba);_0x490b63['me']||_0x490b63['useAnonymousUser']();for(const _0x5b1634 of _0x550d7b)_0x4446a7['addCommentThread'](_0x5b1634);for(const _0x311328 of _0x9e32aa)_0x204417['addSuggestionData'](_0x311328);_0xcfeca4['data']['set'](_0x3f21af);}(_0x45ccc9,_0x5ef64a),_0x5ef64a['execute'](_0x433dc8?'acceptAllSuggestions':'discardAllSuggestions');const _0x31d47d=Fn(_0x5ef64a)?_0x5ef64a['getFullData'](_0x546fcc):_0x5ef64a['data']['get'](_0x546fcc);return await _0x5ef64a['destroy'](),_0x31d47d;}var vn=class extends _0x4ec76b{options;constructor(_0x342004,_0x1e67ee){super(_0x342004),this['options']=_0x1e67ee,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(_0x4a6dd3,_0x12b26c){if(!this['element'])return;const _0x25788d=[];for(const [_0x1388d0,_0x566165]of _0x4a6dd3){const _0x4fa35c=document['createElement']('div');_0x4fa35c['setAttribute']('data-ck-root-name',_0x1388d0),_0x4fa35c['className']=_0x566165['classes']+'\x20ck-track-changes-preview__root-container',_0x4fa35c['innerHTML']=_0x566165['content'],_0x25788d['push'](_0x4fa35c);}_0x12b26c(this['element'],_0x25788d),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Dn=class extends _0x2990b6{constructor(_0x7211ee){super(_0x7211ee),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x4c5453=this['editor'],_0x112db3=_0x4c5453['locale'],_0xf610a8=_0x4c5453['plugins']['get']('Dialog');let _0x1fd507;const _0x5ee0df=function(_0x4f4bf2){const _0x13f583={};if('editables'in _0x4f4bf2['ui']['view']){for(const [_0x3c73da,_0x24bc72]of Object['entries'](_0x4f4bf2['ui']['view']['editables']))_0x13f583[_0x3c73da]=_0x24bc72['element'];}else _0x13f583[_0x4f4bf2['model']['document']['getRootNames']()[0x0]]=_0x4f4bf2['ui']['view']['editable']['element'];return _0x13f583;}(_0x4c5453),_0x290ca0=function(_0x3f7ee0){let _0x29ea90=0x0;for(const _0x3136ea of Object['values'](_0x3f7ee0))_0x29ea90=Math['max'](_0x29ea90,_0x3136ea['getBoundingClientRect']()['width']);let _0xd80c4=0x0;for(const _0x49915e of Object['values'](_0x3f7ee0))_0xd80c4+=_0x49915e['getBoundingClientRect']()['height'];const _0x44b966=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x29ea90,'height':Math['min'](_0xd80c4,_0x44b966)};}(_0x5ee0df);_0xf610a8['show']({'id':'finalContentPreview','title':Mt(_0x112db3,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new vn(_0x112db3,{'dialogRects':_0x290ca0}),'onHide':()=>{_0x1fd507['detachFromDom']();},'onShow':()=>{_0x4c5453['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0xf27012=>{const _0x3b8fe7=this['_standarizeRootsData'](_0xf27012,_0x4c5453,_0x5ee0df);_0xf610a8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3b8fe7,_0x4c5453['config']['get']('trackChanges.preview.renderFunction'));}),_0x1fd507=new _0x4f6a70(_0x112db3,[_0xf610a8['view']]),_0x1fd507['attachToDom'](),_0x1fd507['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4c5453['once']('destroy',()=>{_0x1fd507['detachFromDom']();});const _0x5ac779=_0xf610a8['view']['headerView']['class'];_0xf610a8['view']['headerView']['class']=_0x5ac779?_0x5ac779+'\x20ck-reset_all':'ck-reset_all',_0xf610a8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xf610a8['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x410e11=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x25ea45=_0x410e11['previewMode'],_0x16330e={};if('$labels'===_0x25ea45){for(const _0x4682f3 of _0x410e11['getMergeFieldsIds']())_0x16330e[_0x4682f3]=_0x410e11['getLabel'](_0x4682f3)||_0x4682f3;}else{const _0x123360='$defaultValues'===_0x25ea45?_0x410e11['getDefaultValues']():_0x410e11['getDataSetValues'](_0x25ea45,!0x0);for(const _0x12c816 of Object['entries'](_0x123360)){const [_0x385821,_0x5168fc]=_0x12c816;_0x16330e[_0x385821]=null!==_0x5168fc?_0x5168fc:_0x410e11['getLabel'](_0x385821)||_0x385821;}}return{'mergeFieldsData':_0x16330e};}_standarizeRootsData(_0x2a052d,_0x163838,_0x1a41bc){let _0xfa68c3;_0xfa68c3='string'==typeof _0x2a052d?{[_0x163838['model']['document']['getRootNames']()[0x0]]:_0x2a052d}:_0x2a052d;const _0x4d4fe8=this['_fixMediaEmbeds'](_0xfa68c3,_0x163838);return function(_0x57d978,_0x2dcc81){for(const [_0x2cd41e,_0x3abc4f]of _0x57d978)_0x3abc4f['classes']=_0x2dcc81[_0x2cd41e]['classList']['value']['replace']('ck-focused','');return _0x57d978;}(this['_sortRoots'](_0x163838)['reduce']((_0x4c0614,_0x5c603d)=>(_0x4c0614['push']([_0x5c603d,{'content':_0x4d4fe8[_0x5c603d],'classes':''}]),_0x4c0614),[]),_0x1a41bc);}['_fixMediaEmbeds'](_0x121a49,_0x21beaa){if(!_0x21beaa['plugins']['has']('MediaEmbedEditing'))return _0x121a49;const _0x437e32=_0x21beaa['plugins']['get']('MediaEmbedEditing');for(const [_0x306a2a,_0x267aae]of Object['entries'](_0x121a49)){const _0x1e4800=document['createElement']('div');_0x1e4800['innerHTML']=_0x267aae,_0x1e4800['querySelectorAll']('figure.media')['forEach'](_0x3740b5=>{const _0xa4bad0=_0x3740b5['querySelector']('oembed');if(_0xa4bad0){const _0x3b32ea=_0xa4bad0['getAttribute']('url');if(_0x3b32ea){const _0x370b41=_0x437e32['registry']['getMediaViewElement'](new ot(_0x21beaa['editing']['view']['document']),_0x3b32ea,{'elementName':'','renderForEditingView':!0x0}),_0x29e9e6=document['createElement']('div');_0x29e9e6['classList']['add']('ck-media__wrapper'),_0x370b41['render'](_0x29e9e6,_0x21beaa['editing']['view']['domConverter']),_0xa4bad0['replaceWith'](_0x29e9e6);}}}),_0x121a49[_0x306a2a]=_0x1e4800['innerHTML'];}return _0x121a49;}_sortRoots(_0x32cdcf){if(!function(_0x51ffa9){return void 0x0!==_0x51ffa9['getRootsAttributes'];}(_0x32cdcf))return _0x32cdcf['model']['document']['getRootNames']();const _0x40c313=[],_0x34d5e5=new Map();for(const _0x1696ea of _0x32cdcf['model']['document']['getRootNames']()){const _0x4cb0de=_0x32cdcf['editing']['view']['getDomRoot'](_0x1696ea)['getClientRects']()['item'](0x0);_0x40c313['push'](_0x1696ea),_0x34d5e5['set'](_0x1696ea,_0x4cb0de);}return _0x40c313['sort']((_0x353b2e,_0x28773b)=>{const _0x8ac2a3=_0x34d5e5['get'](_0x353b2e),_0x4fe4bb=_0x34d5e5['get'](_0x28773b);return _0x8ac2a3['y']-_0x4fe4bb['y']||_0x8ac2a3['x']-_0x4fe4bb['x'];}),_0x40c313;}},Un=class extends _0x253c9e{static get requires(){return[On,_0x1c4596];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x547cb9){super(_0x547cb9),_0x547cb9['commands']['add']('previewFinalContent',new Dn(this['editor'])),_0x547cb9['config']['define']('trackChanges.preview.renderFunction',(_0x66fc4c,_0xdfec2e)=>{for(const _0x22013b of _0xdfec2e)_0x66fc4c['appendChild'](_0x22013b);});}};export{_t as AcceptSuggestionCommand,kn as BaseSuggestionThreadView,pt as DiscardSuggestionCommand,Rt as ExecuteOnAllSuggestionsCommand,yt as ExecuteOnSelectedSuggestionsCommand,Dn as PreviewFinalContentCommand,St as Suggestion,Ot as SuggestionDescriptionFactory,Cn as SuggestionThreadView,Rn as SuggestionView,Sn as TrackChanges,Tt as TrackChangesCommand,On as TrackChangesData,wn as TrackChangesDataGetter,on as TrackChangesEditing,Un as TrackChangesPreview,yn as TrackChangesUI};
|