@ckeditor/ckeditor5-track-changes 48.4.0-alpha.3 → 48.4.0-alpha.5
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
|
-
_0x49cc7c();var Mt=class Suggestion extends St{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x5dfa46,_0x338f2b){super(),this['id']=_0x338f2b['id'],this['type']=_0x338f2b['type'],this['subType']=_0x338f2b['subType']||null,this['author']=_0x338f2b['author'],this['creator']=_0x338f2b['creator']||_0x338f2b['author'],this['data']=null,this['_originalSuggestionId']=_0x338f2b['originalSuggestionId']||null,this['_model']=_0x5dfa46,this['_onAccept']=_0x338f2b['onAccept'],this['_onDiscard']=_0x338f2b['onDiscard'],this['_onAttributesChange']=_0x338f2b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x338f2b['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 _0x95374b=this;for(;_0x95374b['previous'];)_0x95374b=_0x95374b['previous'];return _0x95374b;}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'](_0xcee2e9){this['_markerNames']['add'](_0xcee2e9);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x4c9e09=>this['_model']['markers']['get'](_0x4c9e09))['filter'](_0x169100=>_0x169100);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xfb0255=>{for(const _0x22dc73 of this['getMarkers']())_0xfb0255['removeMarker'](_0x22dc73);}),this['_markerNames']['clear']();}['removeMarker'](_0x38f080){this['_model']['change'](_0x16c2ba=>{_0x16c2ba['removeMarker'](_0x38f080);}),this['_markerNames']['delete'](_0x38f080);}['addRange'](_0x4b1249){const _0x4c8204='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x4c8204),this['_model']['change'](_0x1484bc=>{_0x1484bc['addMarker'](_0x4c8204,{'range':_0x4b1249,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x23e889){for(const _0x50bcb8 of this['getRanges']())if(_0x50bcb8['isIntersecting'](_0x23e889))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0xdc24f1=>_0xdc24f1['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x47ca27,_0x4a0ae0)=>[..._0x47ca27,..._0x4a0ae0['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x3b2f46=this['getRanges']();if(0x1!=_0x3b2f46['length'])return null;const _0x5c1f50=_0x3b2f46[0x0],_0x684761=_0x5c1f50['start']['nodeAfter'],_0x3df5a0=_0x5c1f50['end']['nodeBefore'];return _0x684761 instanceof st?_0x684761!=_0x3df5a0?null:_0x684761: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 _0x300086=[];let _0x48a1a1=this['head'];for(;_0x48a1a1;)_0x300086['push'](_0x48a1a1),_0x48a1a1=_0x48a1a1['next'];return _0x300086;}setAttribute(_0x28d7a6,_0x1258ff){const _0x241d4a=ct(this['attributes']);dt(_0x241d4a,_0x28d7a6,_0x1258ff),lt(_0x241d4a,this['attributes'])||(this['attributes']=_0x241d4a,this['_onAttributesChange'](_0x241d4a));}removeAttribute(_0x95acb4){const _0x1d6025=ct(this['attributes']);ht(_0x1d6025,_0x95acb4),lt(_0x1d6025,this['attributes'])||(this['attributes']=_0x1d6025,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 _0x33218c()['substr'](0x1,0x5);}};function Ot(_0x253889,_0x2422a8,_0x3a8aa8){const _0x432e5c=_0x253889['t'],t=_0x253889['t'];switch(_0x2422a8){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',_0x3a8aa8);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3a8aa8);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3a8aa8);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3a8aa8);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3a8aa8);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',_0x3a8aa8);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3a8aa8);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',_0x3a8aa8);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3a8aa8);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3a8aa8);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3a8aa8);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3a8aa8);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3a8aa8);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3a8aa8);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3a8aa8);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3a8aa8);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3a8aa8);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3a8aa8);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3a8aa8);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3a8aa8);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3a8aa8);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3a8aa8);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3a8aa8);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3a8aa8);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3a8aa8);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'},_0x3a8aa8);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3a8aa8);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3a8aa8);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3a8aa8);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3a8aa8);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3a8aa8);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3a8aa8);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3a8aa8);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'},_0x3a8aa8);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'},_0x3a8aa8);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3a8aa8);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3a8aa8);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3a8aa8);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3a8aa8);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'},_0x3a8aa8);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3a8aa8);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'},_0x3a8aa8);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'},_0x3a8aa8);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3a8aa8);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'},_0x3a8aa8);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3a8aa8);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'},_0x3a8aa8);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3a8aa8);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x3a8aa8);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x3a8aa8);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x3a8aa8);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3a8aa8);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'},_0x3a8aa8);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3a8aa8);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 _0x432e5c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3a8aa8);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x432e5c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3a8aa8);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3a8aa8);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'},_0x3a8aa8);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'},_0x3a8aa8);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'},_0x3a8aa8);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2422a8;}}var wt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x208087,_0x59a7d7){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x208087,this['_locale']=_0x59a7d7;}getDescriptions(_0x4bd372){const _0x4a26a4=[],_0x47c685=new Set(),_0x45e6ea=new Set();for(let _0x1c30b5=0x0;_0x1c30b5<_0x4bd372['length'];_0x1c30b5++){const _0x5a84e4=_0x4bd372[_0x1c30b5];if(!_0x5a84e4['isInContent'])continue;const _0x151afa=this['_handleCustomCallbackDescription'](_0x5a84e4);if(_0x151afa){if(null!=_0x5a84e4['subType']){if(_0x47c685['has'](_0x5a84e4['subType']))continue;_0x47c685['add'](_0x5a84e4['subType']);}_0x4a26a4['push'](_0x151afa);}else{if('attribute'==_0x5a84e4['type']){const _0x3b3516=_0x5a84e4['data']['key'];if(_0x45e6ea['has'](_0x3b3516))continue;_0x45e6ea['add'](_0x5a84e4['data']['key']),'$elementName'==_0x3b3516?this['_handleRenameSuggestionDescription'](_0x4a26a4,_0x5a84e4):this['_handleAttributeSuggestionDescription'](_0x4a26a4,_0x5a84e4);continue;}'insertion'!=_0x5a84e4['type']&&'deletion'!=_0x5a84e4['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4a26a4,_0x5a84e4,_0x4bd372[_0x1c30b5+0x1]);}}return this['_resolveDescriptionItems'](_0x4a26a4);}registerDescriptionCallback(_0x591587){this['_customCallbacks']['push'](_0x591587);}registerElementLabel(_0xfe6351,_0x442c10,_0x1f60f9=_0x93e675['normal']){'function'==typeof _0xfe6351?_0x3d402c(this['_itemLabelsCallbacks'],{'matchingCallback':_0xfe6351,'label':_0x442c10,'priority':_0x1f60f9}):this['_itemLabels']['set'](_0xfe6351,_0x442c10);}registerAttributeLabel(_0x3d7b95,_0x5dfbfe){this['_attributeLabels']['set'](_0x3d7b95,_0x5dfbfe);}getItemLabel(_0x657ee5,_0x2d3d8d=0x1){let _0x5b2724;for(const _0xfb502d of this['_itemLabelsCallbacks'])if(_0xfb502d['matchingCallback'](_0x657ee5)){_0x5b2724=_0xfb502d['label'];break;}return _0x5b2724||(_0x5b2724=this['_itemLabels']['get'](_0x657ee5['name'])),_0x5b2724?_0x5b2724(_0x2d3d8d):0x1!==_0x2d3d8d?_0x2d3d8d+'\x20'+_0x657ee5['name']+'s':''+_0x657ee5['name'];}_addDescriptionItems(_0x11565e,_0x3e7213){const _0x3f0d29=_0x3e7213['getFirstRange']()['getWalker'](),_0x40c11a='insertion'==_0x3e7213['type']?'add':'remove';for(const _0x51cd5d of _0x3f0d29){const _0x42c6c6=_0x51cd5d['item'],_0x4df3b7=_0x11565e[_0x11565e['length']-0x1];if(_0x42c6c6['is']('$textProxy'))_0x4df3b7&&_0x4df3b7['type']['indexOf']('Container')>-0x1&&_0x11565e['pop'](),_0x4df3b7&&'text'==_0x4df3b7['type']?_0x4df3b7[_0x40c11a]+=_0x42c6c6['data']:_0x11565e['push']({'type':'text','add':'add'==_0x40c11a?_0x42c6c6['data']:'','remove':'remove'==_0x40c11a?_0x42c6c6['data']:''});else{if(this['_schema']['isObject'](_0x42c6c6)){const _0x705c16=_0x42c6c6;if(_0x4df3b7&&_0x4df3b7['type']['indexOf']('Container')>-0x1&&_0x11565e['pop'](),'elementEnd'==_0x51cd5d['type'])continue;_0x4df3b7&&_0x4df3b7['type']==_0x40c11a+'Object'&&_0x4df3b7['element']['name']==_0x705c16['name']?_0x4df3b7['quantity']++:_0x11565e['push']({'type':_0x40c11a+'Object','element':_0x705c16,'quantity':0x1}),_0x3f0d29['skip'](_0x1665df=>!('elementEnd'==_0x1665df['type']&&_0x1665df['item']==_0x42c6c6));}else{if(this['_schema']['checkChild'](_0x42c6c6,'$text')||_0x42c6c6['is']('element','softBreak')){const _0x3b0094=_0x42c6c6;if('add'==_0x40c11a&&'elementStart'==_0x51cd5d['type']||'remove'==_0x40c11a&&'elementEnd'==_0x51cd5d['type'])continue;if(_0x4df3b7&&-0x1==_0x4df3b7['type']['indexOf']('Container')){'text'==_0x4df3b7['type']&&(_0x4df3b7[_0x40c11a]+='\x0a');continue;}let _0x531208;if(_0x531208='add'==_0x40c11a?_0x3b0094['nextSibling']&&!this['_schema']['isObject'](_0x3b0094['nextSibling'])?_0x3b0094['nextSibling']:null:_0x3b0094['previousSibling']&&!this['_schema']['isObject'](_0x3b0094['previousSibling'])?_0x3b0094['previousSibling']:null,_0x3b0094['isEmpty']||_0x531208&&_0x531208['isEmpty']){const _0x1b8859=_0x531208&&_0x531208['isEmpty']?_0x531208:_0x3b0094;_0x4df3b7&&_0x4df3b7['type']==_0x40c11a+'EmptyContainer'&&_0x4df3b7['element']['name']==_0x1b8859['name']?_0x4df3b7['quantity']++:_0x11565e['push']({'type':_0x40c11a+'EmptyContainer','element':_0x1b8859,'quantity':0x1});}else _0x11565e['push']({'type':_0x40c11a+'Container','element':_0x3b0094});}}}}}_resolveDescriptionItems(_0x3dd720){const _0x1451a9=this['_locale'],_0x55243b=[],_0x54a48d=[],_0x42940c=[];for(const _0x20eb38 of _0x3dd720)switch(_0x20eb38['type']){case'text':if(_0x20eb38['add']=_0x20eb38['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x20eb38['remove']=_0x20eb38['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x20eb38['add']&&''!=_0x20eb38['remove']){_0x55243b['push']({'type':'replace','content':Ot(_0x1451a9,'REPLACE_TEXT',['\x22'+_0x20eb38['remove']+'\x22','\x22'+_0x20eb38['add']+'\x22'])});continue;}if(null!=_0x20eb38['add']['match'](/^ +$/)){_0x55243b['push']({'type':'insertion','content':Ot(_0x1451a9,'*Insert:*\x20%0',Ot(_0x1451a9,'ELEMENT_SPACE',_0x20eb38['add']['length']))});continue;}if(null!=_0x20eb38['remove']['match'](/^ +$/)){_0x55243b['push']({'type':'deletion','content':Ot(_0x1451a9,'*Remove:*\x20%0',Ot(_0x1451a9,'ELEMENT_SPACE',_0x20eb38['remove']['length']))});continue;}if(''!=_0x20eb38['add']){_0x55243b['push']({'type':'insertion','content':Ot(_0x1451a9,'*Insert:*\x20%0','\x22'+_0x20eb38['add']+'\x22')});continue;}_0x55243b['push']({'type':'deletion','content':Ot(_0x1451a9,'*Remove:*\x20%0','\x22'+_0x20eb38['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x55243b['push']({'type':'insertion','content':Ot(_0x1451a9,'*Insert:*\x20%0',this['getItemLabel'](_0x20eb38['element'],_0x20eb38['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x55243b['push']({'type':'deletion','content':Ot(_0x1451a9,'*Remove:*\x20%0',this['getItemLabel'](_0x20eb38['element'],_0x20eb38['quantity']))});continue;case'addContainer':_0x55243b['push']({'type':'insertion','content':Ot(_0x1451a9,'*Split:*\x20%0',this['getItemLabel'](_0x20eb38['element'],_0x20eb38['quantity']))});continue;case'removeContainer':_0x55243b['push']({'type':'deletion','content':Ot(_0x1451a9,'*Merge:*\x20%0',this['getItemLabel'](_0x20eb38['element'],_0x20eb38['quantity']))});continue;case'addFormat':_0x54a48d['push'](_0x20eb38['key']);continue;case'removeFormat':_0x42940c['push'](_0x20eb38['key']);continue;default:_0x55243b['push'](_0x20eb38);}if(_0x54a48d['length']){const _0x57b546=_0x54a48d['map'](_0x5b1c97=>this['_attributeLabels']['has'](_0x5b1c97)?this['_attributeLabels']['get'](_0x5b1c97):_0x5b1c97)['join'](',\x20');_0x55243b['push']({'type':'format','content':Ot(this['_locale'],'*Set\x20format:*\x20%0',_0x57b546)});}if(_0x42940c['length']){const _0x10b345=_0x42940c['map'](_0xafcd26=>this['_attributeLabels']['has'](_0xafcd26)?this['_attributeLabels']['get'](_0xafcd26):_0xafcd26)['join'](',\x20');_0x55243b['push']({'type':'format','content':Ot(this['_locale'],'*Remove\x20format:*\x20%0',_0x10b345)});}return _0x55243b;}_handleCustomCallbackDescription(_0x56edc2){for(const _0x2022e0 of this['_customCallbacks']){const _0x10c626=_0x2022e0(_0x56edc2);if(_0x10c626&&'type'in _0x10c626)return _0x10c626;}}_handleAttributeSuggestionDescription(_0x11760b,_0x4ec6dc){const _0x2bb993=_0x4ec6dc['data'],_0x3ad2ca=void 0x0===_0x2bb993['newValue']?'removeFormat':'addFormat';_0x11760b['push']({'type':_0x3ad2ca,'key':_0x2bb993['key']});}_handleRenameSuggestionDescription(_0x24105e,_0x3697d2){_0x24105e['push']({'type':'format','content':Ot(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3697d2['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x12edd6,_0x1a52fd,_0x2790bb){if(this['_addDescriptionItems'](_0x12edd6,_0x1a52fd),_0x2790bb&&_0x2790bb['getFirstRange']()&&!_0x1a52fd['getFirstRange']()['end']['isEqual'](_0x2790bb['getFirstRange']()['start'])){const _0x46cfdd=_0x12edd6[_0x12edd6['length']-0x1],_0x580e69='insertion'==_0x1a52fd['type']?'add':'remove';_0x46cfdd&&'text'==_0x46cfdd['type']&&(_0x46cfdd[_0x580e69]+='\x0a');}}},Ft=class extends _0x207f51{afterInit(){const _0x5b437e=this['editor'],_0x5c1b35=_0x5b437e['plugins']['get']('TrackChangesEditing');_0x5b437e['commands']['get']('showAIAssistant')&&_0x5c1b35['enableCommand']('showAIAssistant');}},Bt=class extends _0x207f51{afterInit(){const _0x24b815=this['editor'],_0x1872d8=_0x24b815['plugins']['get']('TrackChangesEditing');_0x24b815['commands']['get']('toggleAi')&&_0x1872d8['enableCommand']('toggleAi');}},vt=class extends _0x207f51{afterInit(){const _0xacafd6=this['editor'],_0x4c05cc=_0xacafd6['plugins']['get']('TrackChangesEditing');_0xacafd6['commands']['get']('aiQuickAction')&&_0x4c05cc['enableCommand']('aiQuickAction');}},Dt=class extends _0x207f51{afterInit(){const _0x59d76c=this['editor'],_0x2daf2d=_0x59d76c['locale'];if(!_0x59d76c['plugins']['has']('AlignmentEditing'))return;const _0x2eeb76=_0x59d76c['plugins']['get']('TrackChangesEditing');_0x2eeb76['enableDefaultAttributesIntegration']('alignment'),_0x2eeb76['descriptionFactory']['registerAttributeLabel']('alignment',Ot(_0x2daf2d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2b4188=this['editor'],_0x488841=_0x2b4188['locale'];_0x2b4188['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x102dad=>{if('formatBlock'!=_0x102dad['type'])return;const {data:_0x220a0e}=_0x102dad;if(_0x220a0e&&'alignment'==_0x220a0e['commandName']){const _0x29b140=_0x220a0e['commandParams'][0x0]['value'];return{'type':'format','content':Ot(_0x488841,'*Format:*\x20%0',function(_0x506bb7){switch(_0x506bb7){case'left':return Ot(_0x488841,'FORMAT_ALIGN_TO_LEFT');case'right':return Ot(_0x488841,'FORMAT_ALIGN_TO_RIGHT');case'center':return Ot(_0x488841,'FORMAT_ALIGN_TO_CENTER');case'justify':return Ot(_0x488841,'FORMAT_JUSTIFY_TEXT');}}(_0x29b140))};}});}};const Ut=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Pt=class extends _0x207f51{afterInit(){const _0x8f085f=this['editor'],_0x59a9a0=_0x8f085f['plugins']['get']('TrackChangesEditing'),_0x23795b=_0x8f085f['locale'];for(const _0x581af0 of Ut){if(!_0x8f085f['plugins']['has'](_0x581af0))continue;const _0x1e75d4=_0x581af0['slice'](0x0,-0x7)['toLowerCase'](),_0x2b94e1='FORMAT_'+_0x1e75d4['toUpperCase']();_0x59a9a0['enableDefaultAttributesIntegration'](_0x1e75d4),_0x59a9a0['descriptionFactory']['registerAttributeLabel'](_0x1e75d4,Ot(_0x23795b,_0x2b94e1));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x25816a=this['editor'],_0x6659e3=_0x25816a['locale'],_0x31caae=_0x25816a['plugins']['get']('TrackChangesEditing');function _0x990539(_0x4d478a,_0x3d82f9){_0x31caae['descriptionFactory']['registerDescriptionCallback'](_0x15906e=>{if('formatInline'!=_0x15906e['type'])return;const {data:_0x11f62f}=_0x15906e;return _0x11f62f&&_0x11f62f['commandName']===_0x4d478a?_0x11f62f['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x6659e3,'*Format:*\x20%0',_0x3d82f9)}:{'type':'format','content':Ot(_0x6659e3,'*Remove\x20format:*\x20%0',_0x3d82f9)}:void 0x0;});}_0x990539('bold',Ot(_0x6659e3,'FORMAT_BOLD')),_0x990539('italic',Ot(_0x6659e3,'FORMAT_ITALIC')),_0x990539('underline',Ot(_0x6659e3,'FORMAT_UNDERLINE')),_0x990539('code',Ot(_0x6659e3,'FORMAT_CODE')),_0x990539('strikethrough',Ot(_0x6659e3,'FORMAT_STRIKETHROUGH')),_0x990539('subscript',Ot(_0x6659e3,'FORMAT_SUBSCRIPT')),_0x990539('superscript',Ot(_0x6659e3,'FORMAT_SUPERSCRIPT'));}},xt=class extends _0x207f51{afterInit(){const _0x50d5f9=this['editor'],_0x299aaf=_0x50d5f9['locale'];if(!_0x50d5f9['plugins']['has']('BlockQuoteEditing'))return;const _0x3dc21b=_0x50d5f9['plugins']['get']('TrackChangesEditing'),_0x400b09=this['editor']['commands']['get']('blockQuote');_0x3dc21b['enableCommand']('blockQuote',(_0x13f651,_0x4166f4={})=>{const _0x81b17c=this['editor']['model']['document']['selection'],_0x10cd14=_0x4166f4&&void 0x0!==_0x4166f4['forceValue']?_0x4166f4['forceValue']:!_0x400b09['value'];let _0x1802d5=[];_0x1802d5=Ct(_0x10cd14?Array['from'](_0x81b17c['getSelectedBlocks']())['filter'](_0x5318b2=>Gt(_0x5318b2)||function(_0x2a0ea7,_0x45cd1a){const _0x539f10=_0x45cd1a['createContext'](_0x2a0ea7['parent']);return!!_0x45cd1a['checkChild'](_0x539f10,'blockQuote')&&!!_0x45cd1a['checkChild'](_0x539f10['push']('blockQuote'),_0x2a0ea7);}(_0x5318b2,this['editor']['model']['schema'])):Array['from'](_0x81b17c['getSelectedBlocks']())['filter'](_0x6f2924=>Gt(_0x6f2924)),_0x50d5f9['model']),_0x50d5f9['model']['change'](()=>{for(const _0x4dba7f of _0x1802d5)_0x3dc21b['markBlockFormat'](_0x4dba7f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x10cd14}]});});}),_0x3dc21b['descriptionFactory']['registerDescriptionCallback'](_0x212658=>{const {data:_0x1410be}=_0x212658;if(_0x1410be&&'blockQuote'==_0x1410be['commandName']){const _0x590e3b=Ot(_0x299aaf,'ELEMENT_BLOCK_QUOTE');return _0x1410be['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x299aaf,'*Set\x20format:*\x20%0',_0x590e3b)}:{'type':'format','content':Ot(_0x299aaf,'*Remove\x20format:*\x20%0',_0x590e3b)};}});}};function Gt(_0xa8a01b){return'blockQuote'==_0xa8a01b['parent']['name'];}var Ht=class extends _0x207f51{afterInit(){const _0x266430=this['editor'],_0x5c4892=_0x266430['locale'],_0x18b9cc=_0x266430['plugins']['get']('TrackChangesEditing');_0x266430['plugins']['has']('BookmarkEditing')&&(_0x18b9cc['enableCommand']('insertBookmark'),_0x18b9cc['enableDefaultAttributesIntegration']('updateBookmark'),_0x18b9cc['descriptionFactory']['registerDescriptionCallback'](_0x30696c=>{if('insertion'!=_0x30696c['type']&&'deletion'!=_0x30696c['type']&&'attribute'!=_0x30696c['type'])return;const _0x2e3a02=_0x30696c['getContainedElement']();if(null==_0x2e3a02)return;if(!_0x2e3a02['is']('element','bookmark'))return;const _0x16d949=_0x2e3a02['getAttribute']('bookmarkId');if('insertion'==_0x30696c['type'])return{'type':'insertion','content':Ot(_0x5c4892,'*Insert:*\x20%0','\x22'+_0x16d949+'\x22\x20'+Ot(_0x5c4892,'ELEMENT_BOOKMARK'))};if('deletion'==_0x30696c['type'])return{'type':'deletion','content':Ot(_0x5c4892,'*Remove:*\x20%0','\x22'+_0x16d949+'\x22\x20'+Ot(_0x5c4892,'ELEMENT_BOOKMARK'))};const {data:_0x1ffdea}=_0x30696c;return _0x1ffdea&&'bookmarkId'==_0x1ffdea['key']?{'type':'format','content':Ot(_0x5c4892,'*Set\x20bookmark:*\x20%0','\x22'+_0x1ffdea['newValue']+'\x22')}:void 0x0;}));}},$t=class extends _0x207f51{afterInit(){const _0x169a4d=this['editor'];_0x169a4d['plugins']['has']('CaseChange')&&(_0x169a4d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x169a4d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x169a4d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Wt=class extends _0x207f51{afterInit(){const _0x16c28e=this['editor'];_0x16c28e['commands']['get']('ckbox')&&_0x16c28e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Vt=class extends _0x207f51{static get requires(){return[gt,ft];}constructor(_0x3e8141){super(_0x3e8141),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x10c387=this['editor'],_0x2df53f=_0x10c387['plugins']['get']('ClipboardMarkersUtils'),_0x1555ea=_0x10c387['plugins']['get'](ft);_0x2df53f['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x1555ea['on']('outputTransformation',(_0x49e68a,_0x1fc8a4)=>{const _0x572b82=this['_getSuggestionEntries'](_0x1fc8a4);for(const [_0x5ad39b,_0x4bd8bf]of _0x1fc8a4['content']['markers']){const _0x4c0313=ot['_fromRangeInDocumentFragment'](_0x4bd8bf,_0x10c387['model']);function _0x5304e8(){_0x4c0313['detach'](),_0x1fc8a4['content']['markers']['delete'](_0x5ad39b);}_0x4c0313['on']('change:drop',_0x5304e8),(_0x5ad39b['startsWith']('suggestion:')||_0x5ad39b['startsWith']('comment:'))&&_0x4c0313['on']('change:range',()=>{_0x4c0313['isCollapsed']&&_0x5304e8();}),_0x1fc8a4['content']['markers']['set'](_0x5ad39b,_0x4c0313);}const _0x1b9094=_0x572b82['filter'](_0x20fb36=>'deletion'===_0x20fb36['meta']['type'])['map'](_0x6cf971=>_0x6cf971['modelRange']);if(this['_shouldSkipDeletions'](_0x1b9094,_0x1fc8a4['content']))return[..._0x572b82]['forEach'](_0x5dd08d=>{_0x1fc8a4['content']['markers']['get'](_0x5dd08d['markerName'])['detach'](),_0x1fc8a4['content']['markers']['delete'](_0x5dd08d['markerName']);}),void this['_restoreRegularRanges'](_0x1fc8a4['content']['markers']);[..._0x572b82]['forEach'](_0x120e24=>{const _0x5495f5=_0x10c387['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x120e24['meta']['type'],_0x120e24['meta']['subType'],'accept'),{markerName:_0x564b9d,meta:_0xffabb8}=_0x120e24;if(_0x1fc8a4['content']['markers']['has'](_0x564b9d)){switch(_0xffabb8['type']){case'deletion':if('tableRow'===_0xffabb8['subType']||'tableColumn'===_0xffabb8['subType']){if(!_0x10c387['plugins']['has']('TableUtils'))break;const _0x2e30f5=_0x10c387['plugins']['get']('TableUtils'),_0x3f8068=_0x2e30f5['getSelectionAffectedTableCells'](_0x10c387['model']['createSelection'](_0x1fc8a4['content']['markers']['get'](_0x564b9d))),_0x2f7b04=_0x3f8068[0x0]['findAncestor']('table');if('tableRow'===_0xffabb8['subType']){const {first:_0xab3bef,last:_0x921fdb}=_0x2e30f5['getRowIndexes'](_0x3f8068);_0x2e30f5['removeRows'](_0x2f7b04,{'at':_0xab3bef,'rows':_0x921fdb-_0xab3bef+0x1});}else{const {first:_0x7c04a0,last:_0x35bdd8}=_0x2e30f5['getColumnIndexes'](_0x3f8068);_0x2e30f5['removeColumns'](_0x2f7b04,{'at':_0x7c04a0,'columns':_0x35bdd8-_0x7c04a0+0x1});}break;}_0x5495f5([_0x1fc8a4['content']['markers']['get'](_0x564b9d)]);}_0x1fc8a4['content']['markers']['has'](_0x564b9d)&&(_0x1fc8a4['content']['markers']['get'](_0x564b9d)['detach'](),_0x1fc8a4['content']['markers']['delete'](_0x564b9d));}}),this['_restoreRegularRanges'](_0x1fc8a4['content']['markers']);});}_getSuggestionEntries(_0x4f614e){const _0x35c141=_0x49395c=>'dragstart'===_0x4f614e['method']?_0x49395c['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x49395c;return Array['from'](_0x4f614e['content']['markers'])['map'](([_0x157c5c,_0x186ef1])=>({'markerName':_0x157c5c,'modelRange':_0x186ef1,'meta':et(_0x35c141(_0x157c5c))}))['filter'](({meta:_0x473c23})=>'suggestion'===_0x473c23['group']);}_shouldSkipDeletions(_0x599b61,_0x5eda5e){if(!_0x599b61['length'])return!0x1;let _0x2dcc91=[this['editor']['model']['createRangeIn'](_0x5eda5e)];for(const _0x5a3f06 of _0x599b61)_0x2dcc91=_0x2dcc91['flatMap'](_0x191423=>_0x191423['getDifference'](_0x5a3f06));return!_0x2dcc91['some'](_0x2f89e8=>this['editor']['model']['hasContent'](_0x2f89e8,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x6b78f1){[..._0x6b78f1['keys']()]['forEach'](_0x24bd0d=>{const _0x77d5af=_0x6b78f1['get'](_0x24bd0d);_0x77d5af['detach'](),_0x6b78f1['set'](_0x24bd0d,_0x77d5af['toRange']());});}},jt=class extends _0x207f51{afterInit(){const _0x52adfd=this['editor'];if(!_0x52adfd['plugins']['has']('CodeBlock'))return;const _0x154d50=_0x52adfd['plugins']['get']('TrackChangesEditing'),_0x532ba9=_0x52adfd['locale'],_0x4cd49c=_0x52adfd['config']['get']('codeBlock')['languages'],_0x18160e=_0x52adfd['commands']['get']('codeBlock');_0x154d50['enableCommand']('indentCodeBlock'),_0x154d50['enableCommand']('outdentCodeBlock'),_0x154d50['enableCommand']('codeBlock',(_0x186fdb,_0x320dd2={})=>{const _0x3ed931=_0x52adfd['model'],_0xcc8860=_0x52adfd['model']['document']['selection'],_0x555548=_0x320dd2&&void 0x0!==_0x320dd2['forceValue']?_0x320dd2['forceValue']:!_0x18160e['value'];let _0x4a38b3;_0x320dd2['language']||(_0x320dd2['language']=_0x4cd49c[0x0]['language']),_0x4a38b3=_0x555548?Array['from'](_0xcc8860['getSelectedBlocks']())['filter'](_0x1739e7=>{return zt(_0x1739e7)||(_0x2cf8b9=_0x1739e7,_0x59a2f6=_0x3ed931['schema'],!_0x2cf8b9['is']('rootElement')&&!_0x59a2f6['isLimit'](_0x2cf8b9)&&_0x59a2f6['checkChild'](_0x2cf8b9['parent'],'codeBlock'));var _0x2cf8b9,_0x59a2f6;}):Array['from'](_0xcc8860['getSelectedBlocks']())['filter'](_0x1753a5=>zt(_0x1753a5));const _0x19664b=Ct(_0x4a38b3,_0x3ed931);_0x3ed931['change'](()=>{for(const _0x43fd15 of _0x19664b)_0x154d50['markBlockFormat'](_0x43fd15,{'commandName':'codeBlock','commandParams':[{..._0x320dd2,'forceValue':_0x555548}],'formatGroupId':'blockName'});});}),(_0x154d50['descriptionFactory']['registerElementLabel']('codeBlock',_0x56d22d=>Ot(_0x532ba9,'ELEMENT_CODE_BLOCK',_0x56d22d)),_0x154d50['descriptionFactory']['registerDescriptionCallback'](_0x995bb9=>{if('formatBlock'!=_0x995bb9['type'])return;const _0x25ebde=_0x532ba9['t'],{data:_0x471778}=_0x995bb9;if(!_0x471778||'codeBlock'!=_0x471778['commandName'])return;const _0x32c470=_0x471778['commandParams'][0x0]['language'],_0x574800=_0x25ebde(_0x4cd49c['find'](_0x132b17=>_0x132b17['language']===_0x32c470)['label'])['toLowerCase']();return _0x471778['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x532ba9,'*Set\x20format:*\x20%0',Ot(_0x532ba9,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x574800+')')}:{'type':'format','content':Ot(_0x532ba9,'*Remove\x20format:*\x20%0',Ot(_0x532ba9,'ELEMENT_CODE_BLOCK',0x1))};}));}};function zt(_0x488a0e){return'codeBlock'==_0x488a0e['name'];}var Kt=class extends _0x207f51{afterInit(){const _0x435553=this['editor'];_0x435553['plugins']['has']('CommentsEditing')&&_0x435553['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Xt=class extends _0x207f51{static get requires(){return[mt];}init(){const _0x19664a=this['editor'],_0x41065f=_0x19664a['plugins']['get']('TrackChangesEditing');_0x41065f['enableCommand']('delete');const _0x507be4=_0x19664a['commands']['get']('deleteForward');_0x41065f['enableCommand']('deleteForward',(_0x183455,_0x19403b={})=>{const _0x3ff0a3=_0x19664a['model']['createSelection'](_0x19664a['model']['document']['selection']);_0x3ff0a3['isCollapsed']&&_0x19664a['model']['modifySelection'](_0x3ff0a3,{'direction':'forward','unit':_0x19403b['unit']});const _0x194e9f=_0x3ff0a3['getFirstRange'](),_0x16febe=ot['fromRange'](_0x194e9f);let _0x28ce4d;_0x183455(_0x19403b),_0x28ce4d='$graveyard'==_0x16febe['root']['rootName']?_0x19664a['model']['createRange'](_0x194e9f['start']):_0x19664a['model']['createRange'](_0x16febe['start'],_0x16febe['end']),_0x16febe['detach'](),_0x19664a['model']['enqueueChange'](_0x507be4['buffer']['batch'],_0x5d7506=>{_0x507be4['buffer']['lock'](),_0x5d7506['setSelection'](_0x5d7506['createRange'](_0x28ce4d['end'])),_0x507be4['buffer']['unlock']();});});}},qt=class extends _0x207f51{afterInit(){const _0x41b5b8=this['editor'];if(!_0x41b5b8['plugins']['has']('ListEditing'))return;const _0x248428=_0x41b5b8['locale'],_0x394a2c=_0x41b5b8['plugins']['get']('TrackChangesEditing'),_0x56c59c=_0x41b5b8['plugins']['has']('TodoListEditing'),_0x5d61ed=!!_0x41b5b8['config']['get']('list.multiBlock');function _0x40f6f9(_0x3aab8e){return{'type':'format','content':''+Ot(_0x248428,'*Set\x20format:*\x20%0',_0x3aab8e)};}function _0x4bdb4b(_0x3a2149){return{'type':'format','content':''+Ot(_0x248428,'*Remove\x20format:*\x20%0',_0x3a2149)};}_0x394a2c['enableDefaultAttributesIntegration']('numberedList'),_0x394a2c['enableDefaultAttributesIntegration']('bulletedList'),_0x394a2c['enableDefaultAttributesIntegration']('customNumberedList'),_0x394a2c['enableDefaultAttributesIntegration']('customBulletedList'),_0x394a2c['enableDefaultAttributesIntegration']('indentList'),_0x394a2c['enableDefaultAttributesIntegration']('outdentList'),_0x394a2c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x394a2c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5d61ed&&(_0x394a2c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x394a2c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x56c59c&&(_0x394a2c['enableDefaultAttributesIntegration']('todoList'),_0x394a2c['enableDefaultAttributesIntegration']('checkTodoList'),_0x394a2c['descriptionFactory']['registerDescriptionCallback'](_0x339185=>{const {data:_0x4be4e5}=_0x339185;if(_0x4be4e5&&'todoListChecked'==_0x4be4e5['key'])return{'type':'format','content':_0x4be4e5['newValue']?Ot(_0x248428,'*Check\x20item*'):Ot(_0x248428,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xd5e394=>{if(_0xd5e394['batch']['isUndo'])return!0x1;let _0x5547b3=!0x1;const _0x2e6381=_0x394a2c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x76e9ee=>'todoListChecked'===_0x394a2c['_getAttributeKey'](_0x76e9ee));for(const _0x20870f of _0x2e6381)'todo'!=_0x20870f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x394a2c['_findSuggestions'](_0x20870f['getFirstRange'](),'attribute')['find'](_0x45da2e=>'listType'===_0x394a2c['_getAttributeKey'](_0x45da2e['suggestion']))||(_0xd5e394['removeMarker'](_0x20870f['getFirstMarker']()),_0x5547b3=!0x0));return _0x5547b3;})),_0x394a2c['descriptionFactory']['registerAttributeLabel']('listIndent',Ot(_0x248428,'FORMAT_INDENT'));const _0x68cbfd={'type':'format','content':''};_0x394a2c['descriptionFactory']['registerDescriptionCallback'](_0x1555cd=>{const {data:_0x4061b5}=_0x1555cd;if(!_0x4061b5||'listType'!=_0x4061b5['key'])return;let _0x2b6bea=_0x1555cd['head'];for(;_0x2b6bea;){if(_0x2b6bea['data']&&(('listStyle'==_0x2b6bea['data']['key']||'listMarkerStyle'==_0x2b6bea['data']['key'])&&(_0x2b6bea['data']['newValue']&&'default'!=_0x2b6bea['data']['newValue']||'default'!=_0x2b6bea['data']['oldValue']&&!_0x4061b5['newValue'])||!_0x5d61ed&&'$elementName'==_0x2b6bea['data']['key']))return _0x68cbfd;_0x2b6bea=_0x2b6bea['next'];}if(null==_0x4061b5['newValue'])switch(_0x4061b5['oldValue']){case'bulleted':return _0x4bdb4b(Ot(_0x248428,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4bdb4b(Ot(_0x248428,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4bdb4b(Ot(_0x248428,'ELEMENT_TODO_LIST'));}switch(_0x4061b5['newValue']){case'bulleted':return _0x40f6f9(Ot(_0x248428,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x40f6f9(Ot(_0x248428,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x40f6f9(Ot(_0x248428,'ELEMENT_TODO_LIST'));}}),_0x394a2c['descriptionFactory']['registerDescriptionCallback'](_0x49bda7=>{const {data:_0x599277}=_0x49bda7;if(_0x599277&&'listIndent'==_0x599277['key'])return null==_0x599277['newValue']||null==_0x599277['oldValue']&&0x0==_0x599277['newValue']?_0x68cbfd:void 0x0;}),_0x394a2c['descriptionFactory']['registerDescriptionCallback'](_0x14a11b=>{if('attribute'!=_0x14a11b['type'])return;const {data:_0x534bfa}=_0x14a11b;if(!_0x534bfa||'listItemId'!=_0x534bfa['key'])return;const _0x54c67f=Yt(_0x14a11b);return'newValue'==_0x54c67f?{'type':'format','content':Ot(_0x248428,'*Merge:*\x20list\x20item')}:'oldValue'==_0x54c67f?{'type':'format','content':Ot(_0x248428,'*Split:*\x20list\x20item')}:_0x68cbfd;}),_0x41b5b8['model']['document']['registerPostFixer'](_0x36e941=>this['listItemIdFixer'](_0x36e941)),_0x41b5b8['model']['document']['registerPostFixer'](_0x42921a=>this['noTrackChangesFixer'](_0x42921a)),_0x41b5b8['model']['document']['on']('change:data',(_0x1733af,_0x5a77ff)=>{if(_0x5a77ff['isUndo']||!_0x5a77ff['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x3606fb){if(_0x3606fb['batch']['isUndo']||!_0x3606fb['batch']['isLocal'])return!0x1;let _0x20bb42=!0x1;const _0x46bdcb=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42ca22=>_0x42ca22['data']&&'listItemId'==_0x42ca22['data']['key'])['filter'](_0x56144d=>_0x56144d['data']['newValue']&&_0x56144d['data']['oldValue']);for(const _0xf9a0b8 of _0x46bdcb)Yt(_0xf9a0b8)||(_0x3606fb['removeMarker'](_0xf9a0b8['getFirstMarker']()),_0x20bb42=!0x0);return _0x20bb42;}['noTrackChangesFixer'](_0x2223e8){if(_0x2223e8['batch']['isUndo']||!_0x2223e8['batch']['isLocal'])return!0x1;const _0x43e7c0=this['editor']['model']['document']['differ'],_0x5185c7=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5185c7['trackChangesCommand']['value'])return!0x1;let _0x29ff1f=!0x1;const _0x48c01a=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x3c822a=_0x43e7c0['getChanges']()['filter'](_0x2a4951=>'attribute'==_0x2a4951['type'])['filter'](_0x5aff38=>_0x48c01a['has'](_0x5aff38['attributeKey']));if(0x0==_0x3c822a['length'])return _0x29ff1f;const _0x92492d=new Set(_0x43e7c0['getMarkersToAdd']()['filter'](_0x5132bd=>{if(!_0x5132bd['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x16904f=et(_0x5132bd['name'])['subType']['split']('|')[0x0];return _0x48c01a['has'](_0x16904f);})['map'](_0xd26c6d=>et(_0xd26c6d['name'])['id']));for(const _0xd8f644 of _0x3c822a){const _0xae052f=_0x5185c7['_findSuggestions'](_0xd8f644['range'],'attribute')['filter'](_0x2d2082=>{if(_0x2d2082['meta']['isNextTo'])return!0x1;if(_0x92492d['has'](_0x2d2082['suggestion']['id']))return!0x1;const _0x411874=_0x5185c7['_getAttributeKey'](_0x2d2082['suggestion']);return _0x48c01a['has'](_0x411874);})['map'](_0x34abc9=>_0x34abc9['suggestion']);if(_0xae052f['length']){for(const _0x4a01c8 of _0xae052f)_0x2223e8['removeMarker'](_0x4a01c8['getFirstMarker']());_0x29ff1f=!0x0;}}return _0x29ff1f;}['assureChains'](){const _0x4d2286=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfd7a71=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x1703bf;const _0x4080fb=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xf15ea2=>{if(_0xf15ea2['data']['oldRange']||!_0xf15ea2['data']['newRange'])return null;if(!_0xf15ea2['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3a30cd}=et(_0xf15ea2['name']);if(!_0x4d2286['hasSuggestion'](_0x3a30cd))return null;const _0x26d16e=_0x4d2286['getSuggestion'](_0x3a30cd);return _0xfd7a71['includes'](_0x26d16e['data']['key']);})['map'](_0x1ab604=>{const {id:_0x2f4f13}=et(_0x1ab604['name']),_0x410232=_0x4d2286['getSuggestion'](_0x2f4f13);return _0x1703bf=_0x410232['attributes']['groupId'],_0x410232['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4080fb['size'])return;const _0xb02f34=_0x4d2286['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x234539=>'attribute'==_0x234539['type']&&_0x234539['data']&&_0xfd7a71['includes'](_0x234539['data']['key'])&&_0x234539['attributes']['groupId']!=_0x1703bf)['map'](_0x32e2d6=>({'listItem':_0x32e2d6['getFirstRange']()['start']['nodeAfter'],'groupId':_0x32e2d6['attributes']['groupId']})),_0x41b76b=new Set();for(const {groupId:_0x28c977,listItem:_0x475f29}of _0xb02f34)_0x4080fb['has'](_0x475f29)&&_0x41b76b['add'](_0x28c977);for(const _0x3dda50 of _0x4d2286['getSuggestions']())_0x41b76b['has'](_0x3dda50['attributes']['groupId'])&&_0x3dda50['setAttribute']('groupId',_0x1703bf);}_supportLegacySuggestions(){const _0x185121=this['editor'],_0xd0b344=_0x185121['locale'],_0x322b84=_0x185121['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x322b84['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xc325a1,_0x3aeb02){const _0x20f19a=[];for(let _0x5ab0ba of _0xc325a1)_0x5ab0ba['start']['nodeAfter']===_0x5ab0ba['end']['parent']&&(_0x5ab0ba=_0x185121['model']['createRange'](_0x185121['model']['createPositionAt'](_0x5ab0ba['start']['nodeAfter'],0x0))),_0x20f19a['push'](_0x5ab0ba);_0x185121['model']['change'](_0x263948=>{const _0x2f3d50=_0x185121['model']['document']['selection'],_0x26e55a=Array['from'](_0x2f3d50['getRanges']())['map'](_0xcd99c1=>ot['fromRange'](_0xcd99c1));_0x263948['setSelection'](_0x20f19a),_0x185121['commands']['get'](_0x3aeb02['commandName'])['refresh'](),_0x3aeb02['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x185121['execute'](_0x3aeb02['commandName'],..._0x3aeb02['commandParams']),_0x263948['setSelection'](_0x26e55a);for(const _0x321d7b of _0x26e55a)_0x321d7b['detach']();});}),_0x322b84['descriptionFactory']['registerElementLabel'](function(_0x27b8b7){const _0x23cce0=!_0x185121['model']['schema']['isObject'](_0x27b8b7),_0x1e14a2=_0x27b8b7['previousSibling'],_0x1e2b2d=_0x27b8b7['nextSibling'],_0x4f5fd8=_0x27b8b7['getAttribute']('listItemId'),_0x2952f9=!_0x1e14a2||_0x1e14a2['getAttribute']('listItemId')!==_0x4f5fd8,_0x151049=!_0x1e2b2d||_0x1e2b2d['getAttribute']('listItemId')!==_0x4f5fd8;return _0x23cce0&&Boolean(_0x4f5fd8)&&_0x2952f9&&_0x151049;},_0x58793f=>Ot(_0xd0b344,'ELEMENT_LIST_ITEM',_0x58793f));}_registerLegacyDescription(){const _0x462eb9=this['editor'],_0x3aaca4=_0x462eb9['locale'];function _0x2687e1(_0x2b9982){const _0x141be4=_0x462eb9['commands']['get']('bulletedList')['value'],_0x25583a=_0x462eb9['commands']['get']('numberedList')['value'];return'numberedList'===_0x2b9982?_0x141be4:_0x25583a;}_0x462eb9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3acf0e){if('formatBlock'!=_0x3acf0e['type'])return;const {data:_0x3fd053}=_0x3acf0e;if(!_0x3fd053)return;let _0x5ed620,_0x1d172b,_0x1ce10f,_0x2f7c00;switch(_0x3fd053['commandName']){case'bulletedList':_0x1ce10f=_0x3fd053['commandParams'][0x0]['forceValue'],_0x2f7c00=_0x2687e1(_0x3fd053['commandName']),_0x5ed620=_0x1ce10f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2f7c00&&_0x462eb9['config']['get']('list.multiBlock')||(_0x5ed620='*Change\x20to:*\x20%0'),_0x1d172b={'type':'format','content':Ot(_0x3aaca4,_0x5ed620,Ot(_0x3aaca4,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1ce10f=_0x3fd053['commandParams'][0x0]['forceValue'],_0x2f7c00=_0x2687e1(_0x3fd053['commandName']),_0x5ed620=_0x1ce10f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2f7c00&&_0x462eb9['config']['get']('list.multiBlock')||(_0x5ed620='*Change\x20to:*\x20%0'),_0x1d172b={'type':'format','content':Ot(_0x3aaca4,_0x5ed620,Ot(_0x3aaca4,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5ed620='*Indent:*\x20%0',_0x1d172b={'type':'format','content':Ot(_0x3aaca4,_0x5ed620,Ot(_0x3aaca4,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5ed620=function(_0xad29e4){const _0x4678af=_0xad29e4['getFirstRange']();let _0x4e9254=_0x4678af['start']['nodeAfter'];for(;_0x4e9254&&_0x4678af['containsItem'](_0x4e9254);){if(_0x4e9254['getAttribute']('listIndent')>0x0)return!0x1;_0x4e9254=_0x4e9254['nextSibling'];}return!0x0;}(_0x3acf0e)?Ot(_0x3aaca4,'*Format:*\x20remove\x20from\x20%0',Ot(_0x3aaca4,function(_0x59af6e){return'ELEMENT_'+_0x59af6e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3acf0e))):Ot(_0x3aaca4,'*Outdent:*\x20%0',Ot(_0x3aaca4,'ELEMENT_LIST_ITEM')),_0x1d172b={'type':'format','content':_0x5ed620};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3fd053['multipleBlocks']&&(_0x5ed620='*Merge:*\x20%0',_0x1d172b={'type':'deletion','content':Ot(_0x3aaca4,_0x5ed620,Ot(_0x3aaca4,'ELEMENT_LIST_ITEM'))});}return _0x1d172b;});}};function Yt(_0x2e4552){let _0x5e32d0=_0x2e4552['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5e32d0;){const _0x356989=_0x5e32d0['getAttribute']('listItemId');if(!_0x356989)return!0x1;if(_0x356989==_0x2e4552['data']['newValue'])return'newValue';if(_0x356989==_0x2e4552['data']['oldValue'])return'oldValue';_0x5e32d0=_0x5e32d0['previousSibling'];}return!0x1;}var Qt=class extends _0x207f51{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x342aea=this['editor']['config']['get']('list.properties'),_0x417db4=this['editor']['plugins']['get']('TrackChangesEditing');_0x342aea['styles']&&_0x417db4['enableDefaultAttributesIntegration']('listStyle'),_0x342aea['reversed']&&_0x417db4['enableDefaultAttributesIntegration']('listReversed'),_0x342aea['startIndex']&&_0x417db4['enableDefaultAttributesIntegration']('listStart');const _0x251fb3={'type':'format','content':''};_0x417db4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x51930b=this['editor']['locale'];_0x417db4['descriptionFactory']['registerAttributeLabel']('listReversed',Ot(_0x51930b,'FORMAT_LIST_REVERSED')),_0x417db4['descriptionFactory']['registerDescriptionCallback'](_0x8dd139=>{const {data:_0x5545a4}=_0x8dd139;if(_0x5545a4&&'listReversed'==_0x5545a4['key'])return null==_0x5545a4['newValue']||0x0==_0x5545a4['newValue']&&null==_0x5545a4['oldValue']?_0x251fb3:void 0x0;}),_0x417db4['descriptionFactory']['registerAttributeLabel']('listStart',Ot(_0x51930b,'FORMAT_LIST_START')),_0x417db4['descriptionFactory']['registerDescriptionCallback'](_0x2fde8a=>{const {data:_0x3a033d}=_0x2fde8a;if(_0x3a033d&&'listStart'==_0x3a033d['key'])return null==_0x3a033d['newValue']||0x1==_0x3a033d['newValue']&&null==_0x3a033d['oldValue']?_0x251fb3:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5b7ae5=>{if(_0x5b7ae5['batch']['isUndo'])return!0x1;let _0x2f372d=!0x1;const _0x185707=_0x417db4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xaaa114=>{const _0x5cb795=_0x417db4['_getAttributeKey'](_0xaaa114);return'listStart'==_0x5cb795||'listReversed'==_0x5cb795;});for(const _0x54b8ce of _0x185707){const _0x10b526=_0x54b8ce['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x10b526&&'customNumbered'!=_0x10b526&&(_0x417db4['_findSuggestions'](_0x54b8ce['getFirstRange'](),'attribute')['find'](_0x1e64ec=>'listType'==_0x417db4['_getAttributeKey'](_0x1e64ec['suggestion']))||(_0x5b7ae5['removeMarker'](_0x54b8ce['getFirstMarker']()),_0x2f372d=!0x0));}return _0x2f372d;}),this['_registerLegacyDescription']();}handleDescriptions(_0x4d8bb8){const _0xc07d8a=this['editor']['locale'],{data:_0x11a6bb}=_0x4d8bb8,_0x342b3d={'type':'format','content':''};if(!_0x11a6bb||'listStyle'!=_0x11a6bb['key'])return;if(!_0x11a6bb['oldValue'])return'default'==_0x11a6bb['newValue']?_0x342b3d:{'type':'format','content':''+Ot(_0xc07d8a,'*Set\x20format:*\x20%0',Ot(_0xc07d8a,this['_getTranslationKeyForListStyle'](_0x11a6bb['newValue'])))};if(!_0x11a6bb['newValue']){if('default'==_0x11a6bb['oldValue'])return _0x342b3d;let _0x219380=_0x4d8bb8['head'];for(;_0x219380;){if(_0x219380['data']&&'listType'==_0x219380['data']['key']&&_0x219380['data']['newValue'])return _0x342b3d;_0x219380=_0x219380['next'];}return{'type':'format','content':''+Ot(_0xc07d8a,'*Remove\x20format:*\x20%0',Ot(_0xc07d8a,this['_getTranslationKeyForListStyle'](_0x11a6bb['oldValue'])))};}if('default'!=_0x11a6bb['newValue'])return{'type':'format','content':''+Ot(_0xc07d8a,'*Set\x20format:*\x20%0',Ot(_0xc07d8a,this['_getTranslationKeyForListStyle'](_0x11a6bb['newValue'])))};let _0x11f81b=_0x4d8bb8['head'];for(;_0x11f81b;){if(_0x11f81b['data']&&'listType'==_0x11f81b['data']['key']&&_0x11f81b['data']['newValue']&&_0x11f81b['data']['oldValue'])return _0x342b3d;_0x11f81b=_0x11f81b['next'];}return{'type':'format','content':Ot(_0xc07d8a,'*Set\x20format:*\x20%0',Ot(_0xc07d8a,'ELEMENT_'+_0x4d8bb8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x4e532c=this['editor'],_0x336171=_0x4e532c['locale'];_0x4e532c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a41c4=>{if('formatBlock'!=_0x3a41c4['type'])return;const {data:_0x1dec51}=_0x3a41c4;if(!_0x1dec51)return;let _0x582424,_0x36c1ce;switch(_0x1dec51['commandName']){case'listStyle':_0x582424='*Change\x20to:*\x20%0',_0x36c1ce={'type':'format','content':Ot(_0x336171,_0x582424,Ot(_0x336171,this['_getTranslationKeyForListStyle'](_0x1dec51['commandParams'][0x0]['type'])))};break;case'listReversed':_0x582424=_0x1dec51['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x36c1ce={'type':'format','content':Ot(_0x336171,_0x582424)};break;case'listStart':_0x582424='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x36c1ce={'type':'format','content':Ot(_0x336171,_0x582424,_0x1dec51['commandParams'][0x0]['startIndex'])};}return _0x36c1ce;});}_getTranslationKeyForListStyle(_0x39015c){return'ELEMENT_'+(_0x55ad92=_0x39015c,Zt['includes'](_0x55ad92)?'bulleted':Jt['includes'](_0x55ad92)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x39015c['toUpperCase']()['replace'](/-/g,'_');var _0x55ad92;}};const Zt=['disc','circle','square'],Jt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var te=class extends _0x207f51{afterInit(){const _0x275d7a=this['editor'];_0x275d7a['commands']['get']('emoji')&&_0x275d7a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ee=class extends _0x207f51{static get requires(){return[Tt];}init(){const _0xf699c6=this['editor'],_0x1b023d=_0xf699c6['plugins']['get']('TrackChangesEditing'),_0x36c580=_0xf699c6['commands']['get']('enter');_0x1b023d['enableCommand']('enter',()=>{_0xf699c6['model']['change'](_0x2bf164=>{const _0xf1aca2=_0xf699c6['model']['document']['selection'],_0x1896fb=_0xf1aca2['getFirstPosition'](),_0x11f0fd=ot['fromRange'](_0xf1aca2['getFirstRange']());if(_0x36c580['enterBlock'](_0x2bf164)){const _0x2a1ec4=_0xf699c6['model']['createPositionAt'](_0x1896fb['parent']['nextSibling'],0x0),_0x142d42=_0x2bf164['createRange'](_0x1896fb,_0x2a1ec4);_0x1b023d['markInsertion'](_0x142d42);}else _0x2bf164['setSelection'](_0x2bf164['createRange'](_0x11f0fd['end']));_0x11f0fd['detach'](),_0x36c580['fire']('afterExecute',{'writer':_0x2bf164});});});}},ne=class extends _0x207f51{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x48842b=this['editor']['plugins']['get']('TrackChangesEditing');_0x48842b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x48842b['enableCommand']('findNext'),_0x48842b['enableCommand']('findPrevious'),_0x48842b['enableCommand']('replace'),_0x48842b['enableCommand']('replaceAll');}['handleFindCommand'](_0x86aa41,_0x3b9025,_0x505824={}){const _0x1d9a7f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x86aa41(_0x46e9b5=>{let _0x1f89db=('string'==typeof _0x3b9025?_0x1d9a7f['findByTextCallback'](_0x3b9025,_0x505824):_0x3b9025)(_0x46e9b5);Array['isArray'](_0x1f89db)&&(_0x1f89db={'results':_0x1f89db,'searchText':'string'==typeof _0x3b9025?_0x3b9025:''});const _0x294ae1=_0x1f89db['results']['filter'](_0x235b52=>!0x1===this['_isInDeletionRange'](_0x235b52,_0x46e9b5['item']));return{..._0x1f89db,'results':_0x294ae1};},_0x505824);}_isInDeletionRange(_0x16b3a6,_0x56b83c){const _0x238bf4=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x56b83c,_0x16b3a6['start']),this['editor']['model']['createPositionAt'](_0x56b83c,_0x16b3a6['end']));for(const _0x19df67 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x238bf4['getIntersection'](_0x19df67['getRange']()))return!0x0;return!0x1;}};const ie=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var se=class extends _0x207f51{afterInit(){const _0x5d6cf5=this['editor']['locale'],_0x4a4cc9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1f047f,commandName:_0x50e9f2}of ie)this['editor']['plugins']['has'](_0x1f047f)&&_0x4a4cc9['enableDefaultAttributesIntegration'](_0x50e9f2);_0x4a4cc9['descriptionFactory']['registerAttributeLabel']('fontSize',Ot(_0x5d6cf5,'FORMAT_FONT_SIZE')),_0x4a4cc9['descriptionFactory']['registerAttributeLabel']('fontFamily',Ot(_0x5d6cf5,'FORMAT_FONT_FAMILY')),_0x4a4cc9['descriptionFactory']['registerAttributeLabel']('fontColor',Ot(_0x5d6cf5,'FORMAT_FONT_COLOR')),_0x4a4cc9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Ot(_0x5d6cf5,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x41d23c=this['editor'],_0x26ef7c=_0x41d23c['locale'];_0x41d23c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x490127=>{const _0x5192f1=_0x26ef7c['t'];if('formatInline'!=_0x490127['type'])return;const {data:_0x14afa8}=_0x490127;if(null!=_0x14afa8){if('fontSize'==_0x14afa8['commandName']){const _0x8400ed=_0x14afa8['commandParams'][0x0]['value'];if(_0x8400ed){const _0x10d16c=_0x5192f1(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x119552=>_0x119552['model']==_0x8400ed)['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x26ef7c,'*Set\x20font\x20size:*\x20%0',_0x10d16c)};}return{'type':'format','content':Ot(_0x26ef7c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x14afa8['commandName']){const _0x223b86=_0x14afa8['commandParams'][0x0]['value'];return _0x223b86?{'type':'format','content':Ot(_0x26ef7c,'*Set\x20font\x20family:*\x20%0',_0x223b86)}:{'type':'format','content':Ot(_0x26ef7c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x14afa8['commandName']){const _0x208156=_0x14afa8['commandParams'][0x0]['value'];if(_0x208156){const _0x1db2e9=_0x538076(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5a0c0b=>_0x5a0c0b['model']==_0x208156);let _0x1fcac3=_0x208156,_0x217d25='';return _0x1db2e9&&(_0x1fcac3=_0x1db2e9['label'],_0x217d25=_0x5192f1(_0x1fcac3)['toLowerCase']()),{'type':'format','content':Ot(_0x26ef7c,'*Set\x20font\x20color:*\x20%0',_0x217d25)['trim'](),'color':{'value':_0x208156,'title':_0x217d25||_0x1fcac3}};}return{'type':'format','content':Ot(_0x26ef7c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x14afa8['commandName']){const _0x83ac7=_0x14afa8['commandParams'][0x0]['value'];if(_0x83ac7){const _0x53f78a=_0x538076(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x6bc56=>_0x6bc56['model']==_0x83ac7);let _0x340997=_0x83ac7,_0x553437='';return _0x53f78a&&(_0x340997=_0x53f78a['label'],_0x553437=_0x5192f1(_0x340997)['toLowerCase']()),{'type':'format','content':Ot(_0x26ef7c,'*Set\x20font\x20background\x20color:*\x20%0',_0x553437)['trim'](),'color':{'value':_0x83ac7,'title':_0x553437||_0x340997}};}return{'type':'format','content':Ot(_0x26ef7c,'*Reset\x20font\x20background\x20color*')};}}});}},re=class extends _0x207f51{afterInit(){const {plugins:_0x3f5dbc}=this['editor'];_0x3f5dbc['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x3f5dbc['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x385da8,plugins:_0x5656f4,commands:_0x44f5cb}=this['editor'],_0x305b20=_0x5656f4['get']('TrackChangesEditing');_0x44f5cb['get']('footnotesStyle')&&_0x305b20['enableDefaultAttributesIntegration']('footnotesStyle'),_0x44f5cb['get']('footnotesStart')&&_0x305b20['enableDefaultAttributesIntegration']('footnotesStart'),_0x305b20['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Ot(_0x385da8,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x305b20['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Ot(_0x385da8,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x4951a5=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x3866a3,commands:_0x466495}=this['editor'];_0x466495['get']('insertFootnote')&&_0x4951a5['enableCommand']('insertFootnote'),_0x4951a5['descriptionFactory']['registerElementLabel']('footnoteRef',_0x396cc2=>Ot(_0x3866a3,'ELEMENT_FOOTNOTE_REF',_0x396cc2)),_0x4951a5['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x5d8d46=>Ot(_0x3866a3,'ELEMENT_FOOTNOTE_DEFINITION',_0x5d8d46)),_0x4951a5['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x325060=>Ot(_0x3866a3,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x325060));}},oe=class extends _0x207f51{afterInit(){const _0x904bd3=this['editor'],_0x30cb6f=_0x904bd3['plugins']['get']('TrackChangesEditing'),_0xe2d0cb=_0x904bd3['commands']['get']('copyFormat'),_0x14010c=_0x904bd3['commands']['get']('pasteFormat');_0xe2d0cb&&_0x14010c&&(_0x30cb6f['enableDefaultAttributesIntegration']('pasteFormat'),_0x30cb6f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x53a69b=this['editor'],_0x2fdade=_0x53a69b['locale'];_0x53a69b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4312c4=>{if('formatBlock'!=_0x4312c4['type']&&'formatInline'!=_0x4312c4['type'])return;const {data:_0x25298f}=_0x4312c4;if(_0x25298f&&'pasteFormat'===_0x25298f['commandName']){const _0x101a1a=[],_0x4cbec4=_0x25298f['commandParams'][0x0];for(const [_0x3e0f89,_0x39c95c]of Object['entries'](_0x4cbec4))_0x101a1a['push'](ae(_0x53a69b,_0x3e0f89,_0x39c95c));return _0x101a1a['length']?{'type':'format','content':Ot(_0x2fdade,'*Set\x20format\x20to:*\x20%0',_0x101a1a['join'](',\x20'))}:{'type':'format','content':Ot(_0x2fdade,'*Remove\x20all\x20formatting*')};}});}};function ae(_0x200c41,_0x2a464a,_0x3c7f5c){const _0x415f44=_0x200c41['locale']['t'],_0x583dcf=_0x2a464a['split'](/(?=[A-Z])/)['join']('\x20'),_0x55f532=_0x415f44(_0x583dcf['charAt'](0x0)['toUpperCase']()+_0x583dcf['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3c7f5c)return _0x55f532;if('fontColor'===_0x2a464a||'fontBackgroundColor'===_0x2a464a){const _0xeb6617=_0x538076(_0x200c41['config']['get']('fontColor.colors'))['find'](_0x58a8fc=>_0x58a8fc['model']==_0x3c7f5c);return _0x55f532+'\x20('+(_0xeb6617?_0x415f44(_0xeb6617['label'])['toLowerCase']():_0x3c7f5c)+')';}if('fontSize'===_0x2a464a&&isNaN(parseFloat(_0x3c7f5c))){const _0x36273e=_0x200c41['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x200c41['config']['get']('fontSize.options'))['find'](_0x243388=>_0x243388['model']==_0x3c7f5c);return _0x55f532+'\x20('+(_0x36273e?_0x415f44(_0x36273e['title'])['toLowerCase']():_0x3c7f5c)+')';}return _0x55f532+'\x20('+_0x3c7f5c+')';}var ce=class extends _0x207f51{afterInit(){const _0x4aa160=this['editor'];if(!_0x4aa160['plugins']['has']('GeneralHtmlSupport')||!_0x4aa160['plugins']['has']('DataSchema'))return;const _0x424be2=_0x4aa160['plugins']['get']('TrackChangesEditing'),_0x2ad612=_0x4aa160['plugins']['get']('GeneralHtmlSupport'),_0x2960e8=_0x4aa160['plugins']['get']('DataSchema'),_0xd4f6ba=_0x4aa160['locale'],_0x546482=new Set(['htmlContent']);for(const _0x568164 of _0x2960e8['getDefinitionsForView'](/.*/,!0x1)){const _0xa7c7d9=_0x568164['view'],_0x424542=_0x2ad612['getGhsAttributeNameForElement'](_0xa7c7d9);_0x546482['add'](_0x424542),!_0x568164['isInline']||_0x568164['isObject']||'appliesToBlock'in _0x568164&&_0x568164['appliesToBlock']||_0x424be2['descriptionFactory']['registerAttributeLabel'](_0x424542,_0xa7c7d9),_0x568164['model']['startsWith']('html')&&_0x424be2['descriptionFactory']['registerElementLabel'](_0x568164['model'],_0x3d7ce9=>Ot(_0xd4f6ba,'ELEMENT_HTML_TAG',[_0x3d7ce9,_0xa7c7d9]));}_0x424be2['descriptionFactory']['registerAttributeLabel']('htmlContent',Ot(_0xd4f6ba,'FORMAT_RAW_HTML_CONTENT')),_0x424be2['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Ot(_0xd4f6ba,'FORMAT_HTML_LIST_ITEM')),_0x424be2['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Ot(_0xd4f6ba,'FORMAT_HTML_BULLETED_LIST')),_0x424be2['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Ot(_0xd4f6ba,'FORMAT_HTML_NUMBERED_LIST')),_0x424be2['descriptionFactory']['registerDescriptionCallback'](_0x52bce4=>{if('attribute'!==_0x52bce4['type'])return;const _0x391c2b=_0x52bce4['data'];if(!_0x391c2b||!_0x546482['has'](_0x391c2b['key']))return;if('htmlContent'===_0x391c2b['key'])return{'type':'format','content':Ot(_0xd4f6ba,'*Change\x20%0\x20content*',Ot(_0xd4f6ba,'ELEMENT_RAW_HTML'))};const {setItems:_0x403c8b,removeItems:_0x18745d}=function(_0xe32d2c,_0x4ad1d0,_0x4db7a4){const _0x831d0c=[],_0x5ed257=[],_0x51498b=_0xe32d2c['styles']??{},_0x571b82=_0x4ad1d0['styles']??{};for(const _0x4262e7 of new Set([...Object['keys'](_0x51498b),...Object['keys'](_0x571b82)]))_0x51498b[_0x4262e7]!==_0x571b82[_0x4262e7]&&(void 0x0===_0x571b82[_0x4262e7]?_0x5ed257['push'](_0x4262e7):_0x831d0c['push'](_0x4262e7+'\x20('+_0x571b82[_0x4262e7]+')'));const _0x246f64=Ot(_0x4db7a4,'FORMAT_HTML_CLASS'),_0x17a9c0=new Set(_0xe32d2c['classes']??[]),_0x48664f=new Set(_0x4ad1d0['classes']??[]),_0x48c323=[..._0x48664f]['some'](_0x317825=>!_0x17a9c0['has'](_0x317825)),_0x4aa467=[..._0x17a9c0]['some'](_0x21bd9a=>!_0x48664f['has'](_0x21bd9a));_0x48c323&&_0x831d0c['push'](_0x246f64),_0x4aa467&&_0x5ed257['push'](_0x246f64);const _0x1d70bf=Ot(_0x4db7a4,'FORMAT_HTML_ATTRIBUTE'),_0x1b785b=_0xe32d2c['attributes']??{},_0x1a3ff4=_0x4ad1d0['attributes']??{};let _0x12f350=!0x1,_0x3403ca=!0x1;for(const _0x248220 of new Set([...Object['keys'](_0x1b785b),...Object['keys'](_0x1a3ff4)]))_0x1b785b[_0x248220]!==_0x1a3ff4[_0x248220]&&(void 0x0===_0x1a3ff4[_0x248220]?_0x3403ca=!0x0:_0x12f350=!0x0);return _0x12f350&&_0x831d0c['push'](_0x1d70bf),_0x3403ca&&_0x5ed257['push'](_0x1d70bf),{'setItems':_0x831d0c,'removeItems':_0x5ed257};}(_0x391c2b['oldValue']??{},_0x391c2b['newValue']??{},_0xd4f6ba);if(!_0x403c8b['length']&&!_0x18745d['length'])return;const _0xf6254d=[];return _0x403c8b['length']&&_0xf6254d['push'](Ot(_0xd4f6ba,'*Set\x20format:*\x20%0',_0x403c8b['join'](',\x20'))),_0x18745d['length']&&_0xf6254d['push'](Ot(_0xd4f6ba,'*Remove\x20format:*\x20%0',_0x18745d['join'](',\x20'))),{'type':'format','content':_0xf6254d['join']('\x0a')};});}},le=class extends _0x207f51{_headingOptions;afterInit(){const _0x18d0ea=this['editor'];if(!_0x18d0ea['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x18d0ea['config']['get']('heading.options');const _0x327798=_0x18d0ea['locale'],_0x142fb8=_0x18d0ea['plugins']['get']('TrackChangesEditing');_0x142fb8['enableDefaultAttributesIntegration']('heading');for(const _0x2aa6e6 of this['_headingOptions'])'paragraph'!=_0x2aa6e6['model']&&_0x142fb8['descriptionFactory']['registerElementLabel'](_0x2aa6e6['model'],_0x20b29e=>{const _0x3ec35d=this['_getHeadingLevel'](_0x2aa6e6['model']);return null!==_0x3ec35d?_0x1dd3c3(_0x20b29e,_0x3ec35d):_0x3d2145(_0x20b29e,_0x2aa6e6['title']);});function _0x1dd3c3(_0x493cee,_0x38df2e){return Ot(_0x327798,'ELEMENT_HEADING',[_0x493cee,_0x38df2e]);}function _0x3d2145(_0x162fe9,_0x2cc25c){return Ot(_0x327798,'ELEMENT_HEADING_CUSTOM',[_0x162fe9,_0x2cc25c]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1c3be5=this['editor'],_0x251db0=_0x1c3be5['locale'];function _0x22b065(_0x314716,_0x3431dd){return Ot(_0x251db0,'ELEMENT_HEADING_CUSTOM',[_0x314716,_0x3431dd]);}_0x1c3be5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdcb226=>{if('formatBlock'!=_0xdcb226['type'])return;const {data:_0x39c741}=_0xdcb226;if(_0x39c741&&'heading'==_0x39c741['commandName']){const _0x4404e8=_0x39c741['commandParams'][0x0]['value'],_0x372549=this['_getHeadingLevel'](_0x4404e8);if(null!==_0x372549)return{'type':'format','content':Ot(_0x251db0,'*Change\x20to:*\x20%0',(_0x290202=0x1,_0x53ee99=_0x372549,Ot(_0x251db0,'ELEMENT_HEADING',[_0x290202,_0x53ee99])))};const _0x4f71c6=this['_headingOptions']['find'](_0x33453e=>_0x33453e['model']===_0x4404e8)['title'];return{'type':'format','content':Ot(_0x251db0,'*Change\x20to:*\x20%0',_0x22b065(0x1,_0x4f71c6))};}var _0x290202,_0x53ee99;});}_getHeadingLevel(_0x29e069){const _0x4b942f=_0x29e069['match'](/^heading(\d+)/);if(_0x4b942f)return _0x4b942f[0x1];const _0x21feee=this['_headingOptions']?.['find'](_0x733a3=>_0x733a3['model']==_0x29e069);if(_0x21feee&&_0x21feee['view']){const _0x2a63e2=_0x21feee['view'],_0x225366=(_0x2a63e2['name']??_0x2a63e2)['match'](/^h(\d+)/);if(_0x225366)return _0x225366[0x1];}return null;}},ue=class extends _0x207f51{afterInit(){const _0x2ee857=this['editor'];if(!_0x2ee857['plugins']['has']('HighlightEditing'))return;const _0xa900e8=_0x2ee857['plugins']['get']('TrackChangesEditing'),_0x610570=_0x2ee857['locale'];_0xa900e8['enableDefaultAttributesIntegration']('highlight'),_0xa900e8['descriptionFactory']['registerAttributeLabel']('highlight',Ot(_0x610570,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4e2a39=this['editor'],_0x3fe05d=_0x4e2a39['locale'];_0x4e2a39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4288e6=>{if('formatInline'!=_0x4288e6['type'])return;const {data:_0x46e86f}=_0x4288e6;if(_0x46e86f&&'highlight'==_0x46e86f['commandName']){const _0x3903a1=_0x3fe05d['t'],_0x5d993e=_0x46e86f['commandParams'][0x0]['value'];if(_0x5d993e){const _0xce96a0=_0x4e2a39['config']['get']('highlight.options')['find'](_0x429e3b=>_0x429e3b['model']==_0x5d993e),_0x19601c=_0x3903a1(_0xce96a0['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x3fe05d,'*Set\x20highlight:*\x20%0',_0x19601c),'color':{'value':_0xce96a0['color'],'title':_0xce96a0['title']}};}return{'type':'format','content':Ot(_0x3fe05d,'*Remove\x20highlight*',Ot(_0x3fe05d,'FORMAT_HIGHLIGHT'))};}});}},de=class extends _0x207f51{afterInit(){const _0x256993=this['editor'];if(!_0x256993['plugins']['has']('HorizontalLineEditing'))return;_0x256993['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3113d3=_0x256993['plugins']['get']('TrackChangesEditing'),_0x3c24c2=_0x256993['locale'];_0x3113d3['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2fb37a=>Ot(_0x3c24c2,'ELEMENT_HORIZONTAL_LINE',_0x2fb37a));}},he=class extends _0x207f51{afterInit(){const _0x1ea58a=this['editor'];if(!_0x1ea58a['plugins']['has']('HtmlEmbed'))return;const _0x8cfcff=_0x1ea58a['plugins']['get']('TrackChangesEditing'),_0x262f86=_0x1ea58a['locale'];_0x8cfcff['descriptionFactory']['registerElementLabel']('rawHtml',_0x38e573=>Ot(_0x262f86,'ELEMENT_HTML_EMBED',_0x38e573)),_0x8cfcff['enableDefaultAttributesIntegration']('htmlEmbed'),_0x8cfcff['descriptionFactory']['registerDescriptionCallback'](_0xffe8fe=>{if('attribute'!=_0xffe8fe['type'])return;const {data:_0x1779df}=_0xffe8fe;if(_0x1779df&&'value'==_0x1779df['key']&&_0xffe8fe['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x435e74=Ot(_0x262f86,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x262f86,'*Change\x20%0\x20content*',_0x435e74)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x49cc2a=this['editor'],_0x3e45b8=_0x49cc2a['locale'];_0x49cc2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14ce9f=>{if('formatBlock'!=_0x14ce9f['type'])return;const {data:_0x3c6e45}=_0x14ce9f;if(_0x3c6e45&&'htmlEmbed'==_0x3c6e45['commandName']){const _0x5e9870=Ot(_0x3e45b8,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x3e45b8,'*Change\x20%0\x20content*',_0x5e9870)};}});}},ge=class extends _0x207f51{afterInit(){const _0x42b2e4=this['editor'];if(!_0x42b2e4['plugins']['has']('ImageEditing'))return;const _0x1ef384=_0x42b2e4['plugins']['get']('TrackChangesEditing'),_0x4b877c=_0x42b2e4['plugins']['get']('ImageUtils'),_0x3157ae=_0x42b2e4['locale'];_0x1ef384['enableCommand']('insertImage'),_0x1ef384['descriptionFactory']['registerElementLabel']('imageBlock',_0x57182a=>Ot(_0x3157ae,'ELEMENT_IMAGE',_0x57182a)),_0x1ef384['descriptionFactory']['registerElementLabel']('imageInline',_0x297444=>Ot(_0x3157ae,'ELEMENT_INLINE_IMAGE',_0x297444)),_0x1ef384['descriptionFactory']['registerElementLabel']('caption',()=>Ot(_0x3157ae,'ELEMENT_CAPTION')),_0x42b2e4['plugins']['has']('ImageUploadEditing')&&_0x1ef384['enableCommand']('uploadImage'),_0x42b2e4['plugins']['has']('ImageBlockEditing')&&_0x42b2e4['plugins']['has']('ImageInlineEditing')&&(_0x1ef384['enableCommand']('imageTypeInline',(_0x4b93c6,_0xff68da)=>{const _0x5819b3=_0x4b877c['getClosestSelectedImageElement'](_0x42b2e4['model']['document']['selection']);_0x42b2e4['model']['change'](()=>{_0x1ef384['markBlockFormat'](_0x5819b3,{'commandName':'imageTypeInline','commandParams':[_0xff68da]},[],'convertBlockImageToInline');});}),_0x1ef384['enableCommand']('imageTypeBlock',(_0x6477cd,_0xea02ed)=>{_0x42b2e4['model']['change'](_0x56062f=>{let _0x27274b=_0x4b877c['getClosestSelectedImageElement'](_0x42b2e4['model']['document']['selection']),_0x342be3=_0x56062f['createRangeOn'](_0x27274b);const _0x867600=rt['fromPosition'](_0x342be3['start'],'toPrevious'),_0x177b75=rt['fromPosition'](_0x342be3['end'],'toNext');_0x1ef384['forceDefaultExecution'](()=>_0x6477cd(_0xea02ed)),_0x27274b=_0x4b877c['getClosestSelectedImageElement'](_0x42b2e4['model']['document']['selection']),_0x342be3=_0x56062f['createRangeOn'](_0x27274b);const _0x5b27ba=_0x56062f['createRange'](_0x867600,_0x177b75);_0x867600['detach'](),_0x177b75['detach'](),_0x1ef384['markBlockFormat'](_0x27274b,{'commandName':'imageTypeInline','commandParams':[_0xea02ed]},[],'convertInlineImageToBlock'),_0x5b27ba['start']['isBefore'](_0x342be3['start'])&&_0x1ef384['markInsertion'](_0x56062f['createRange'](_0x5b27ba['start'],_0x342be3['start']),'convertInlineImageToBlock'),_0x342be3['end']['isBefore'](_0x5b27ba['end'])&&_0x1ef384['markInsertion'](_0x56062f['createRange'](_0x342be3['end'],_0x5b27ba['end']),'convertInlineImageToBlock');});}),_0x1ef384['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1ef384['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1ef384['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1ef384['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1ef384['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1ef384['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5d30e3])=>{const _0x5042d4=_0x1ef384['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2a4ada=_0x5d30e3['start'],_0x59d013=_0x5d30e3['end'];const _0x21c076=_0x42b2e4['model']['schema']['getNearestSelectionRange'](_0x2a4ada,'backward'),_0x50734d=_0x42b2e4['model']['schema']['getNearestSelectionRange'](_0x59d013,'forward');_0x21c076['isCollapsed']&&(_0x2a4ada=_0x21c076['start']),_0x50734d['isCollapsed']&&(_0x59d013=_0x50734d['end']),_0x5042d4([_0x42b2e4['model']['createRange'](_0x2a4ada,_0x59d013)]);}),_0x1ef384['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x356a80),_0x1ef384['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x356a80)),_0x42b2e4['plugins']['has']('ImageCaptionEditing')&&(_0x1ef384['enableCommand']('toggleImageCaption',(_0x57ef3c,_0x362939)=>{const _0x3dd3ab=_0x42b2e4['plugins']['get']('ImageCaptionUtils');let _0x3fdaf5=_0x4b877c['getClosestSelectedImageElement'](_0x42b2e4['model']['document']['selection']),_0x4aa069=_0x3dd3ab['getCaptionFromImageModelElement'](_0x3fdaf5);_0x42b2e4['model']['change'](()=>{if(_0x4aa069)return void _0x1ef384['markDeletion'](_0x42b2e4['model']['createRangeOn'](_0x4aa069));const _0x4d229b=_0x4b877c['isBlockImage'](_0x3fdaf5);_0x57ef3c(_0x362939),_0x3fdaf5=_0x4b877c['getClosestSelectedImageElement'](_0x42b2e4['model']['document']['selection']),_0x4aa069=_0x3dd3ab['getCaptionFromImageModelElement'](_0x3fdaf5),_0x1ef384['markInsertion'](_0x42b2e4['model']['createRangeOn'](_0x4aa069),_0x4d229b?null:'imageCaption');});}),_0x1ef384['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x356a80));const _0x33938c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x12fa2d(_0x114f60,_0x33a9a6){const _0x53109a=_0x33938c['findIndex'](({type:_0x4dd075,subType:_0x129113})=>_0x114f60['type']==_0x4dd075&&_0x114f60['subType']==_0x129113),_0x41fa9e=_0x33938c['findIndex'](({type:_0xa26fd9,subType:_0x558b85})=>_0x33a9a6['type']==_0xa26fd9&&_0x33a9a6['subType']==_0x558b85);if(_0x53109a<0x0||_0x41fa9e<0x0)return!0x1;const _0x82d9dd=_0x114f60['getFirstRange'](),_0x4f75bf=_0x33a9a6['getFirstRange']();if((0x0==_0x53109a||0x1==_0x53109a)&&0x2==_0x41fa9e&&_0x82d9dd['isIntersecting'](_0x4f75bf))return!0x0;if(0x2==_0x53109a&&0x3==_0x41fa9e){const _0x2a8241=_0x1ef384['_findSuggestions'](_0x82d9dd,'insertion')['filter'](({suggestion:_0x27d3c7,meta:_0x1b4e2c})=>_0x1b4e2c['isOwn']&&'convertInlineImageToBlock'==_0x27d3c7['subType']);if(_0x2a8241['length']>0x1&&_0x4f75bf['end']['isEqual'](_0x82d9dd['start']))return!0x0;if(0x1==_0x2a8241['length']&&(_0x82d9dd['start']['isEqual'](_0x4f75bf['end'])||_0x82d9dd['end']['isEqual'](_0x4f75bf['start'])))return!0x0;}if(0x3==_0x53109a&&0x3==_0x41fa9e&&_0x82d9dd['start']['isBefore'](_0x4f75bf['start'])){const _0x474e2f=_0x82d9dd['end']['nodeAfter'],_0x27152c=_0x4f75bf['start']['nodeBefore'];return _0x4b877c['isBlockImage'](_0x474e2f)&&_0x474e2f===_0x27152c;}return!0x1;}function _0x356a80(_0x123904,_0x53dac4){return _0x12fa2d(_0x123904,_0x53dac4)?[_0x123904,_0x53dac4]:_0x12fa2d(_0x53dac4,_0x123904)?[_0x53dac4,_0x123904]:null;}_0x42b2e4['plugins']['has']('ImageResize')&&(_0x1ef384['enableDefaultAttributesIntegration']('resizeImage'),_0x1ef384['descriptionFactory']['registerAttributeLabel']('resizedWidth',Ot(_0x3157ae,'FORMAT_IMAGE_SIZE'))),_0x42b2e4['plugins']['has']('ImageTextAlternativeEditing')&&_0x1ef384['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x42b2e4['plugins']['has']('PictureEditing')&&_0x1ef384['descriptionFactory']['registerDescriptionCallback'](_0x2356f6=>{if('attribute'!=_0x2356f6['type'])return;const {data:_0x40af57}=_0x2356f6;return _0x40af57&&'sources'==_0x40af57['key']?{'type':'format','content':''}:void 0x0;}),_0x42b2e4['plugins']['has']('ImageSizeAttributes')&&_0x1ef384['descriptionFactory']['registerDescriptionCallback'](_0x22aafa=>{if('attribute'!=_0x22aafa['type'])return;const {data:_0x426265}=_0x22aafa;return!_0x426265||'width'!=_0x426265['key']&&'height'!=_0x426265['key']?void 0x0:{'type':'format','content':''};}),_0x1ef384['descriptionFactory']['registerDescriptionCallback'](_0x43ee2a=>{if(_0x33938c['find'](({type:_0x5a685b,subType:_0x101507})=>_0x43ee2a['type']==_0x5a685b&&_0x43ee2a['subType']==_0x101507))return _0x43ee2a['previous']?{}:void 0x0;}),_0x1ef384['descriptionFactory']['registerDescriptionCallback'](_0x3e4980=>{if('insertion'==_0x3e4980['type']||'deletion'==_0x3e4980['type']){const _0x3339d4=_0x3e4980['getContainedElement']();if(_0x3339d4&&_0x3339d4['is']('element','caption'))return{'type':'insertion'==_0x3e4980['type']?'addObject':'removeObject','element':_0x3339d4,'quantity':0x1};}}),_0x1ef384['descriptionFactory']['registerDescriptionCallback'](_0x2ea822=>'formatBlock'==_0x2ea822['type']&&'convertInlineImageToBlock'==_0x2ea822['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2ea822['type']&&'convertBlockImageToInline'==_0x2ea822['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1ef384['descriptionFactory']['registerDescriptionCallback'](_0x35f21e=>{if('attribute'!=_0x35f21e['type'])return;const {data:_0x48d131}=_0x35f21e;if(!_0x48d131||'alt'!=_0x48d131['key'])return;const _0x31721c=_0x48d131['newValue'];return _0x31721c?{'type':'format','content':Ot(_0x3157ae,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x31721c+'\x22')}:{'type':'format','content':Ot(_0x3157ae,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5eca76=this['editor'],_0x249fd4=_0x5eca76['locale'];_0x5eca76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1846e8=>{if('formatBlock'!=_0x1846e8['type']&&'formatInline'!=_0x1846e8['type'])return;const {data:_0x1cd4c8}=_0x1846e8;if(_0x1cd4c8){if('imageTextAlternative'==_0x1cd4c8['commandName']){const _0x368f5c=_0x1cd4c8['commandParams'][0x0]['newValue'];return _0x368f5c?{'type':'format','content':Ot(_0x249fd4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x368f5c+'\x22')}:{'type':'format','content':Ot(_0x249fd4,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1cd4c8['commandName']){const _0x3a8748=_0x1cd4c8['commandParams'][0x0]['width'];return _0x3a8748?{'type':'format','content':Ot(_0x249fd4,'*Set\x20image\x20width:*\x20%0',_0x3a8748)}:{'type':'format','content':Ot(_0x249fd4,'*Reset\x20image\x20width*')};}}});}},fe=class extends _0x207f51{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x36c54b=this['editor']['locale'],_0x101792=this['editor']['plugins']['get']('TrackChangesEditing');_0x101792['enableDefaultAttributesIntegration']('replaceImageSource'),_0x101792['descriptionFactory']['registerDescriptionCallback'](_0x5014de=>{if('attribute'!=_0x5014de['type'])return;const {data:_0x22c45e}=_0x5014de;return _0x22c45e&&'src'==_0x22c45e['key']?_0x22c45e['newValue']&&_0x22c45e['oldValue']?{'type':'format','content':Ot(_0x36c54b,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x4af681=this['editor']['plugins']['get']('TrackChangesEditing');_0x4af681['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4af681['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4af681['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4af681['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x173be7=this['editor'],_0x24b145=_0x173be7['locale'];_0x173be7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c2340=>{if('formatBlock'!=_0x1c2340['type']&&'formatInline'!=_0x1c2340['type'])return;const {data:_0x32a4c7}=_0x1c2340;return _0x32a4c7&&'replaceImageSource'==_0x32a4c7['commandName']?{'type':'format','content':Ot(_0x24b145,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},me=class extends _0x207f51{afterInit(){const _0x5498bb=this['editor'];if(!_0x5498bb['plugins']['has']('ImageStyleEditing'))return;const _0x3ee822=_0x5498bb['plugins']['get']('TrackChangesEditing'),_0x109fe4=_0x5498bb['plugins']['get']('ImageUtils'),_0x45c6c0={};_0x3ee822['enableCommand']('imageStyle',(_0xd880f2,_0x74fdb2)=>{const _0x3e289f=_0x5498bb['plugins']['get']('Users')['me'],_0x4b995c=_0x5498bb['commands']['get']('imageStyle');let _0x1d5ae6=_0x109fe4['getClosestSelectedImageElement'](_0x5498bb['model']['document']['selection']),_0x3b3d11=_0x5498bb['model']['createRangeOn'](_0x1d5ae6),_0x331d8=_0x4b995c['value'];if(_0x331d8==_0x74fdb2['value'])return;if(_0x74fdb2['value']&&_0x109fe4['isInlineImage'](_0x1d5ae6)&&!_0x4b995c['isStyleEnabled'](_0x74fdb2['value']))return;const _0x5ee1ab={'commandName':'imageStyle','commandParams':[_0x74fdb2],'formatGroupId':_0x33218c()};_0x5498bb['model']['change'](()=>{if(_0x3ee822['getSuggestions']()['filter'](_0x11efb5=>_0x11efb5['isInContent']&&_0x3e289f==_0x11efb5['author']&&('formatBlock'==_0x11efb5['type']||'formatInline'==_0x11efb5['type'])&&('imageStylePreApply'==_0x11efb5['subType']||'imageStylePostApply'==_0x11efb5['subType'])&&_0x11efb5['getFirstRange']()['isEqual'](_0x3b3d11))['forEach'](_0x25ff92=>_0x3ee822['discardSuggestion'](_0x25ff92['head'])),_0x1d5ae6=_0x109fe4['getClosestSelectedImageElement'](_0x5498bb['model']['document']['selection']),_0x3b3d11=_0x5498bb['model']['createRangeOn'](_0x1d5ae6),_0x4b995c['refresh'](),_0x5498bb['commands']['get']('imageTypeInline')['refresh'](),_0x5498bb['commands']['get']('imageTypeBlock')['refresh'](),_0x331d8=_0x4b995c['value'],_0x331d8!=_0x74fdb2['value'])return _0x109fe4['isInlineImage'](_0x1d5ae6)&&_0x4b995c['shouldConvertImageType'](_0x74fdb2['value'],_0x1d5ae6)?(_0xd880f2({..._0x74fdb2,'setImageSizes':!0x1}),_0x1d5ae6=_0x109fe4['getClosestSelectedImageElement'](_0x5498bb['model']['document']['selection']),void _0x3ee822['markBlockFormat'](_0x1d5ae6,{..._0x5ee1ab,'commandReversedParams':[{'value':_0x331d8||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x109fe4['isBlockImage'](_0x1d5ae6)?_0x3ee822['markBlockFormat'](_0x1d5ae6,_0x5ee1ab,[],'imageStylePostApply'):_0x3ee822['markInlineFormat'](_0x3b3d11,_0x5ee1ab,'imageStylePostApply'));});});for(const _0x31263a of _0x5498bb['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x45c6c0[_0x31263a['name']]=_0x31263a['title']['toLowerCase']();_0x3ee822['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3ee822['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3ee822['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3ee822['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1ff585])=>{_0x109fe4['setImageNaturalSizeAttributes'](_0x1ff585['getContainedElement']());}),_0x3ee822['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x130d0c,_0x48334e)=>{_0x3ee822['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x130d0c,{'commandName':_0x48334e['commandName'],'commandParams':_0x48334e['commandReversedParams']});}),_0x3ee822['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x37044e,_0x158241){return _0x42576e(_0x37044e,_0x158241)?[_0x37044e,_0x158241]:_0x42576e(_0x158241,_0x37044e)?[_0x158241,_0x37044e]:null;});const _0x58a2dc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x42576e(_0x168fc4,_0x17725e){const _0x4ad282=_0x58a2dc['findIndex'](({type:_0x5ed6ef,subType:_0x34b460})=>_0x168fc4['type']==_0x5ed6ef&&_0x168fc4['subType']==_0x34b460),_0x28f4ed=_0x58a2dc['findIndex'](({type:_0xabb2e3,subType:_0x2b656a})=>_0x17725e['type']==_0xabb2e3&&_0x17725e['subType']==_0x2b656a);if(_0x4ad282<0x0||_0x28f4ed<0x0)return!0x1;const _0xb752ee=_0x168fc4['getFirstRange'](),_0x5408ae=_0x17725e['getFirstRange']();if((0x0==_0x4ad282||0x1==_0x4ad282)&&0x2==_0x28f4ed&&_0xb752ee['isIntersecting'](_0x5408ae))return!0x0;if(0x2==_0x4ad282&&0x3==_0x28f4ed){const _0x4011ee=_0x3ee822['_findSuggestions'](_0xb752ee,'insertion')['filter'](({suggestion:_0x10dcd8,meta:_0x6f60b2})=>_0x6f60b2['isOwn']&&'convertInlineImageToBlock'==_0x10dcd8['subType']);if(_0x4011ee['length']>0x1&&_0x5408ae['end']['isEqual'](_0xb752ee['start']))return!0x0;if(0x1==_0x4011ee['length']&&(_0xb752ee['start']['isEqual'](_0x5408ae['end'])||_0xb752ee['end']['isEqual'](_0x5408ae['start'])))return!0x0;}if(0x3==_0x4ad282&&0x3==_0x28f4ed&&_0xb752ee['start']['isBefore'](_0x5408ae['start'])){const _0x520c43=_0xb752ee['end']['nodeAfter'],_0x56a32e=_0x5408ae['start']['nodeBefore'];return _0x109fe4['isBlockImage'](_0x520c43)&&_0x520c43===_0x56a32e;}return!0x1;}_0x5498bb['model']['document']['registerPostFixer'](()=>{let _0x5a160d=!0x1;const _0xe8c7f=Array['from'](_0x5498bb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x107d0e,data:_0x3b6396}of _0xe8c7f){const {group:_0x41ae19,type:_0xa3db4c,subType:_0x354698,id:_0x289c71}=et(_0x107d0e);if('suggestion'==_0x41ae19&&_0x3ee822['hasSuggestion'](_0x289c71)){if('formatBlock'==_0xa3db4c&&('imageStylePreApply'==_0x354698||'imageStylePostApply'==_0x354698)){const _0x25a0db=_0x3ee822['getSuggestion'](_0x289c71);if(_0x3b6396['newRange']){const _0x1f9111=_0x25a0db['getFirstRange']()['getContainedElement']();if(_0x109fe4['isBlockImage'](_0x1f9111))continue;_0x3ee822['discardSuggestion'](_0x25a0db),_0x5a160d=!0x0;}}if('insertion'==_0xa3db4c&&'imageCaption'==_0x354698&&!_0x3b6396['newRange']){const _0x85464b=_0x3ee822['getSuggestion'](_0x289c71);_0x85464b['next']&&_0x85464b['next']['isInContent']&&(_0x3ee822['discardSuggestion'](_0x85464b['next']),_0x5a160d=!0x0);}}}return _0x5a160d;}),this['_registerLegacyDescription'](_0x45c6c0);}_registerLegacyDescription(_0x91c480){const _0x14d2c1=this['editor'],_0x43725c=_0x14d2c1['locale'];_0x14d2c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cda65=>{if('formatBlock'!=_0x3cda65['type']&&'formatInline'!=_0x3cda65['type'])return;const {data:_0x2d5736}=_0x3cda65;if(!_0x2d5736||'imageStyle'!=_0x2d5736['commandName'])return;const _0x8edb10=_0x2d5736['commandParams'][0x0]['value'];return _0x818e97('side'===_0x8edb10?Ot(_0x43725c,'FORMAT_SIDE_IMAGE'):_0x91c480[_0x8edb10]||_0x8edb10);function _0x818e97(_0x470faf){return{'type':'format','content':Ot(_0x43725c,'*Format:*\x20%0',_0x470faf)};}});}},Ee=class extends _0x207f51{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x438002){super(_0x438002),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x20d437=this['editor'],_0x49716b=_0x20d437['commands']['get']('importWord'),_0x4d0da9=_0x20d437['commands']['get']('trackChanges');_0x49716b&&(_0x49716b['on']('execute',(_0x3b8926,[,_0x5c23fa])=>{this['_trackChangesValueDuringImport']=_0x4d0da9['value'],_0x5c23fa['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x49716b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x49716b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4d0da9['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x20d437['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x4d1060,_0x25234e){const {suggestions:_0x392fc6}=_0x25234e,_0x197188=this['editor']['commands']['get']('trackChanges'),_0x23b8d7=_0x197188['value'];this['_trackChangesValueDuringImport']!==_0x23b8d7&&(_0x197188['execute'](),this['_trackChangesExecuted']=!0x0),_0x392fc6&&_0x392fc6['forEach'](({id:_0x3c9057,type:_0x2bea48,author:_0x1083a5,created_at:_0x431ce7})=>{const _0x198e13={'id':_0x3c9057,'type':_0x2bea48,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1083a5,'createdAt':_0x431ce7?new Date(_0x431ce7):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x198e13);});}},Te=class extends _0x207f51{afterInit(){const _0x1e0c5b=this['editor'],_0xe89d5a=_0x1e0c5b['plugins']['get']('TrackChangesEditing');if(_0x1e0c5b['plugins']['has']('IndentEditing')&&(_0xe89d5a['enableCommand']('indent'),_0xe89d5a['enableCommand']('outdent')),_0x1e0c5b['plugins']['has']('IndentBlock')){for(const _0x5c2309 of['indentBlock','outdentBlock'])_0xe89d5a['enableDefaultAttributesIntegration'](_0x5c2309);if(_0x1e0c5b['plugins']['has']('ListEditing')){for(const _0x320ca8 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0xe89d5a['enableDefaultAttributesIntegration'](_0x320ca8);}}const _0x454500=_0x1e0c5b['locale'];_0xe89d5a['descriptionFactory']['registerAttributeLabel']('blockIndent',Ot(_0x454500,'FORMAT_INDENT')),_0xe89d5a['descriptionFactory']['registerAttributeLabel']('blockIndentList',Ot(_0x454500,'FORMAT_INDENT')),_0xe89d5a['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Ot(_0x454500,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xd0a4c5=this['editor'],_0x345d5a=_0xd0a4c5['locale'],_0x1b0826=_0xd0a4c5['plugins']['get']('TrackChangesEditing');_0x1b0826['descriptionFactory']['registerDescriptionCallback'](_0x223531=>{if('formatBlock'!=_0x223531['type'])return;const {data:_0x5ed84a}=_0x223531;if(!_0x5ed84a)return;if('indentBlock'!=_0x5ed84a['commandName']&&'outdentBlock'!=_0x5ed84a['commandName'])return;const _0x59fccf=_0x223531['getItems']()[0x0],_0x7dd79f=_0x1b0826['descriptionFactory']['getItemLabel'](_0x59fccf);return'indentBlock'==_0x5ed84a['commandName']?{'type':'format','content':Ot(_0x345d5a,'*Indent:*\x20%0',_0x7dd79f)}:'outdentBlock'==_0x5ed84a['commandName']?{'type':'format','content':Ot(_0x345d5a,'*Outdent:*\x20%0',_0x7dd79f)}:void 0x0;});}},_e=class extends _0x207f51{static get requires(){return[Et];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},pe=class extends _0x207f51{afterInit(){const _0x2dbf77=this['editor'];if(!_0x2dbf77['plugins']['has']('LinkEditing'))return;const _0x128f79=_0x2dbf77['plugins']['get']('TrackChangesEditing'),_0x542dc7=_0x2dbf77['commands']['get']('link');_0x128f79['enableDefaultAttributesIntegration']('link'),_0x128f79['enableDefaultAttributesIntegration']('unlink');for(const _0x4ce544 of _0x542dc7['manualDecorators'])_0x128f79['descriptionFactory']['registerAttributeLabel'](_0x4ce544['id'],'link\x20('+_0x4ce544['label']['toLowerCase']()+')');_0x128f79['descriptionFactory']['registerDescriptionCallback'](_0xb00293=>{if('attribute'!=_0xb00293['type'])return;const {data:_0x135999}=_0xb00293;if(!_0x135999||'linkHref'!=_0x135999['key'])return;const _0x31ca0e=_0x135999['newValue'],_0x128748=_0x2dbf77['locale'];return{'type':'format','content':null==_0x31ca0e?Ot(_0x128748,'*Remove\x20link*'):Ot(_0x128748,'*Set\x20link:*\x20%0','\x22'+_0x31ca0e+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x52e8d0=this['editor'],_0x33efad=_0x52e8d0['locale'];_0x52e8d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39fd19=>{if('formatInline'!=_0x39fd19['type'])return;const {data:_0xda89fc}=_0x39fd19;if(_0xda89fc){if('link'==_0xda89fc['commandName']){const _0x425de8=_0xda89fc['commandParams'][0x0];return{'type':'format','content':Ot(_0x33efad,'*Set\x20link:*\x20%0','\x22'+_0x425de8+'\x22')};}return'unlink'==_0xda89fc['commandName']?{'type':'format','content':Ot(_0x33efad,'*Remove\x20link*')}:void 0x0;}});}},Le=class extends _0x207f51{afterInit(){const _0x32e301=this['editor'],_0x55563c=_0x32e301['locale'];if(!_0x32e301['plugins']['has']('LegacyListEditing'))return;const _0x33db0d=_0x32e301['plugins']['get']('TrackChangesEditing'),_0x5c3d8e=_0x32e301['plugins']['has']('LegacyTodoListEditing');function _0x31fb44(_0x7d047a){return()=>{const _0x14a3dd=_0x32e301['model']['document']['selection'],_0x18d575=_0x32e301['commands']['get'](_0x7d047a);if(_0x18d575['value'])return void _0x32e301['execute']('paragraph',{});const _0x16afbf=_0x7d047a['slice'](0x0,-0x4),_0x222edf=function(_0x35c7c5,_0x3fb6b4,_0x2e00dc){let _0x5c68d6=Array['from'](_0x35c7c5)['filter'](_0x349f0c=>function(_0x273716,_0x307e42){return _0x307e42['checkChild'](_0x273716['parent'],'listItem')&&!_0x307e42['isObject'](_0x273716);}(_0x349f0c,_0x2e00dc));_0x5c68d6=_0x5c68d6['filter'](_0x38a543=>!_0x38a543['is']('element','listItem')||_0x38a543['getAttribute']('listType')!=_0x3fb6b4);const _0x2508bb=new Set();for(const _0xf30efe of _0x5c68d6)_0xf30efe['is']('element','listItem')?_0x2508bb['add'](Ie(_0xf30efe)):_0x2508bb['add'](_0xf30efe);return Array['from'](_0x2508bb);}(_0x14a3dd['getSelectedBlocks'](),_0x16afbf,_0x32e301['model']['schema']);_0x32e301['model']['change'](()=>{for(const _0x2c2e60 of _0x222edf)_0x33db0d['markBlockFormat'](_0x2c2e60,{'commandName':_0x7d047a,'commandParams':[{'forceValue':!_0x18d575['value']}],'formatGroupId':'blockName'},Ae(_0x2c2e60));});};}function _0x2f749e(_0x52995f){return()=>{const _0x184920=function(_0xbc025f){let _0x3aef0b=Array['from'](_0xbc025f);const _0x294e52=_0x3aef0b['findIndex'](_0xa9b9f=>'listItem'!=_0xa9b9f['name']);return _0x294e52>-0x1&&(_0x3aef0b=_0x3aef0b['slice'](0x0,_0x294e52)),_0x3aef0b;}(_0x32e301['model']['document']['selection']['getSelectedBlocks']()),_0x39b23c=_0x32e301['model']['createRange'](_0x32e301['model']['createPositionAt'](_0x184920[0x0],'before'),_0x32e301['model']['createPositionAt'](_0x184920[_0x184920['length']-0x1],'end'));_0x32e301['model']['change'](()=>{_0x33db0d['markBlockFormat'](_0x39b23c,{'commandName':_0x52995f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x13c5cb){const _0x85a24a=new Set();for(const _0x33473b of _0x13c5cb){let _0x469c5f=_0x33473b['nextSibling'];for(;_0x469c5f&&_0x469c5f['getAttribute']('listIndent')>_0x33473b['getAttribute']('listIndent');)_0x85a24a['add'](_0x469c5f),_0x469c5f=_0x469c5f['nextSibling'];}return Array['from'](_0x85a24a);}(_0x184920));});};}_0x33db0d['enableCommand']('numberedList',_0x31fb44('numberedList')),_0x33db0d['enableCommand']('bulletedList',_0x31fb44('bulletedList')),_0x5c3d8e&&_0x33db0d['enableCommand']('todoList',_0x31fb44('todoList')),_0x33db0d['enableCommand']('indentList',_0x2f749e('indentList')),_0x33db0d['enableCommand']('outdentList',_0x2f749e('outdentList')),_0x5c3d8e&&_0x33db0d['enableCommand']('checkTodoList',()=>{const _0x134f94=_0x32e301['commands']['get']('checkTodoList'),_0x5ea210=Array['from'](_0x134f94['_selectedElements']);_0x5ea210['filter'](_0xc6c423=>_0xc6c423['getAttribute']('todoListChecked')!=_0x134f94['value']),_0x32e301['model']['change'](()=>{for(const _0x4b35b2 of _0x5ea210)_0x33db0d['markBlockFormat'](_0x4b35b2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x134f94['value']}]});});}),_0x33db0d['descriptionFactory']['registerElementLabel']('listItem',_0x446c82=>Ot(_0x55563c,'ELEMENT_LIST_ITEM',_0x446c82)),_0x33db0d['descriptionFactory']['registerDescriptionCallback'](_0x2338b0=>{if('formatBlock'!=_0x2338b0['type']&&'formatInline'!=_0x2338b0['type'])return;const {data:_0x358cbc}=_0x2338b0;if(_0x358cbc){if('numberedList'==_0x358cbc['commandName']||'bulletedList'==_0x358cbc['commandName']||'todoList'==_0x358cbc['commandName'])switch(_0x358cbc['commandName']['replace']('List','')){case'bulleted':return _0x4de41d(Ot(_0x55563c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4de41d(Ot(_0x55563c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4de41d(Ot(_0x55563c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x358cbc['commandName'])return{'type':'format','content':Ot(_0x55563c,'*Indent:*\x20%0',Ot(_0x55563c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x358cbc['commandName'])return{'type':'format','content':Ot(_0x55563c,'*Outdent:*\x20%0',Ot(_0x55563c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x358cbc['commandName'])return _0x358cbc['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x55563c,'*Check\x20item*')}:{'type':'format','content':Ot(_0x55563c,'*Uncheck\x20item*')};}function _0x4de41d(_0x235aca){return{'type':'format','content':Ot(_0x55563c,'*Change\x20to:*\x20%0',_0x235aca)};}});}};function Ie(_0x1850be){const _0x21349e=_0x1850be['getAttribute']('listIndent');if(0x0==_0x21349e)return _0x1850be;let _0x406b09=_0x1850be;for(;_0x1850be['previousSibling']&&_0x1850be['previousSibling']['is']('element','listItem');){const _0x564d5a=_0x1850be['previousSibling']['getAttribute']('listIndent');if(_0x564d5a==_0x21349e)_0x406b09=_0x1850be['previousSibling'];else{if(_0x564d5a<_0x21349e)break;}_0x1850be=_0x1850be['previousSibling'];}return _0x406b09;}function Ae(_0x3dc088){const _0x87319=[];if(_0x3dc088['is']('element','listItem')&&_0x3dc088['getAttribute']('listIndent')>0x0){let _0x562445=_0x3dc088['nextSibling'];for(;_0x562445&&'listItem'==_0x562445['name']&&_0x562445['getAttribute']('listIndent')==_0x3dc088['getAttribute']('listIndent');)_0x87319['push'](_0x562445),_0x562445=_0x562445['nextSibling'];}return _0x87319;}var be=class extends _0x207f51{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x179923=this['editor']['config']['get']('list.properties'),_0x1c7c84=this['editor']['plugins']['get']('TrackChangesEditing');_0x179923['styles']&&_0x1c7c84['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x179923['reversed']&&_0x1c7c84['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x179923['startIndex']&&_0x1c7c84['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1c7c84['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x577855,_0x35a184={}){const _0x166f16=this['editor']['plugins']['get']('TrackChangesEditing'),_0x392f0a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x166f16['markMultiRangeBlockFormat'](_0x392f0a,{'commandName':'listStyle','commandParams':[{'type':_0x35a184['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x162294,_0x392a38={}){const _0xa72b6b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e9930=this['_getSuggestionBlocks'](_0x1c041d=>_0x1c041d['is']('element','listItem')&&'numbered'===_0x1c041d['getAttribute']('listType'));if(_0x3e9930['length']<0x1)return;const _0x2e0cf8=_0x3e9930['map'](_0x2c10f4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2c10f4,'before'),this['editor']['model']['createPositionAt'](_0x2c10f4,0x0)));this['editor']['model']['change'](()=>{_0xa72b6b['markMultiRangeBlockFormat'](_0x2e0cf8,{'commandName':'listReversed','commandParams':[{'reversed':_0x392a38['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x5f2257,_0xbeb13e={}){const _0x4ed0af=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ced8a=this['_getSuggestionBlocks'](_0x27a50b=>_0x27a50b['is']('element','listItem')&&'numbered'===_0x27a50b['getAttribute']('listType'));if(_0x2ced8a['length']<0x1)return;const _0x3ef762=_0x2ced8a['map'](_0x11d10d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x11d10d,'before'),this['editor']['model']['createPositionAt'](_0x11d10d,0x0)));this['editor']['model']['change'](()=>{_0x4ed0af['markMultiRangeBlockFormat'](_0x3ef762,{'commandName':'listStart','commandParams':[{'startIndex':_0xbeb13e['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x3db05b){if('formatBlock'!=_0x3db05b['type']&&'formatInline'!=_0x3db05b['type'])return;const _0x2e4d25=this['editor']['locale'],{data:_0x21dd7a}=_0x3db05b;if(!_0x21dd7a)return;let _0x475547,_0x1ec7a9;switch(_0x21dd7a['commandName']){case'listStyle':_0x475547='*Change\x20to:*\x20%0',_0x1ec7a9={'type':'format','content':Ot(_0x2e4d25,_0x475547,Ot(_0x2e4d25,this['_getTranslationKeyForListStyle'](_0x21dd7a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x475547=_0x21dd7a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1ec7a9={'type':'format','content':Ot(_0x2e4d25,_0x475547)};break;case'listStart':_0x475547='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1ec7a9={'type':'format','content':Ot(_0x2e4d25,_0x475547,_0x21dd7a['commandParams'][0x0]['startIndex'])};}return _0x1ec7a9;}_getSuggestionBlocksForListStyle(){const _0x103ff8=this['editor']['plugins']['get']('LegacyListUtils');let _0x227468=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x227468[0x0]?.['is']('element','listItem')&&_0x227468['unshift'](..._0x103ff8['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x227468[_0x227468['length']-0x1]?.['is']('element','listItem')&&_0x227468['push'](..._0x103ff8['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x227468=[...new Set(_0x227468)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x227468=_0x227468['filter'](_0x1687c7=>_0x1687c7['is']('element','listItem'))),_0x227468;}_getSuggestionBlocks(_0x163965){const _0x2a9b59=this['editor']['plugins']['get']('LegacyListUtils');let _0xc49463=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x163965)['map'](_0x5dc801=>{const _0x30be55=this['editor']['model']['createPositionAt'](_0x5dc801,0x0);return[..._0x2a9b59['getSiblingNodes'](_0x30be55,'backward'),..._0x2a9b59['getSiblingNodes'](_0x30be55,'forward')];})['flat']();return _0xc49463=[...new Set(_0xc49463)],_0xc49463;}_getTranslationKeyForListStyle(_0x2353bb){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2353bb)||'default')['toUpperCase']()+'_LIST_'+_0x2353bb['toUpperCase']()['replace'](/-/g,'_');}},Ce=class extends _0x207f51{afterInit(){const _0x57be3e=this['editor'];if(!_0x57be3e['plugins']['has']('MediaEmbedEditing'))return;const _0x1e3e3b=_0x57be3e['plugins']['get']('TrackChangesEditing'),_0x1d3c39=_0x57be3e['locale'];_0x1e3e3b['enableCommand']('mediaEmbed'),_0x1e3e3b['descriptionFactory']['registerElementLabel']('media',_0x357375=>Ot(_0x1d3c39,'ELEMENT_MEDIA',_0x357375)),_0x57be3e['plugins']['has']('MediaEmbedResizeEditing')&&(_0x1e3e3b['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x1e3e3b['descriptionFactory']['registerDescriptionCallback'](_0x2257aa=>{if('attribute'!=_0x2257aa['type'])return;const {data:_0x41589c}=_0x2257aa;if(!_0x41589c||'resizedWidth'!=_0x41589c['key'])return;const _0x12e6e6=_0x2257aa['getContainedElement']();if(!_0x12e6e6||!_0x12e6e6['is']('element','media'))return;const _0x5e87ac=Ot(_0x1d3c39,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Ot(_0x1d3c39,'*Set\x20format:*\x20%0',_0x5e87ac)};}));}},ke=class extends _0x207f51{afterInit(){const _0x11ba40=this['editor'];if(!_0x11ba40['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x4bde54=_0x11ba40['plugins']['get']('TrackChangesEditing'),_0x300e20=_0x11ba40['locale'],_0xcd1d51=_0x11ba40['plugins']['get']('MediaEmbedStyleEditing'),_0x75b692={};for(const _0x1943db of _0xcd1d51['normalizedStyles'])_0x75b692[_0x1943db['name']]=_0x1943db['title']['toLowerCase']();const _0x29e688=_0xcd1d51['normalizedStyles']['find'](_0x4c664f=>_0x4c664f['isDefault'])?.['name'];_0x4bde54['enableCommand']('mediaStyle',(_0x2c123a,_0x3a599c)=>{const _0x5db759=_0x11ba40['plugins']['get']('Users')['me'],_0x3c0f00=_0x11ba40['commands']['get']('mediaStyle'),_0xd46abd=function(_0x323ae7){const _0x5c76c6=_0x323ae7['model']['document']['selection']['getSelectedElement']();return _0x5c76c6&&_0x5c76c6['is']('element','media')?_0x5c76c6:null;}(_0x11ba40);if(!_0xd46abd)return;const _0x556ddf=_0x11ba40['model']['createRangeOn'](_0xd46abd);let _0x58e2d3=_0x3c0f00['value'];if(_0x58e2d3==_0x3a599c['value'])return;const _0x5eef8b={'commandName':'mediaStyle','commandParams':[_0x3a599c],'formatGroupId':_0x33218c()};_0x11ba40['model']['change'](()=>{_0x4bde54['getSuggestions']()['filter'](_0xc02af6=>_0xc02af6['isInContent']&&_0x5db759==_0xc02af6['author']&&'formatBlock'==_0xc02af6['type']&&'mediaStylePostApply'==_0xc02af6['subType']&&_0xc02af6['getFirstRange']()['isEqual'](_0x556ddf))['forEach'](_0x1e59e4=>_0x4bde54['discardSuggestion'](_0x1e59e4['head'])),_0x3c0f00['refresh'](),_0x58e2d3=_0x3c0f00['value'],_0x58e2d3!=_0x3a599c['value']&&_0x4bde54['markBlockFormat'](_0xd46abd,{..._0x5eef8b,'commandReversedParams':[{'value':'string'==typeof _0x58e2d3?_0x58e2d3:null}]},[],'mediaStylePostApply');});}),_0x4bde54['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x4bde54['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x25a476,_0x2c51f3)=>{_0x4bde54['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x25a476,{'commandName':_0x2c51f3['commandName'],'commandParams':_0x2c51f3['commandReversedParams']});}),_0x4bde54['descriptionFactory']['registerDescriptionCallback'](_0x196cbc=>{if('formatBlock'!=_0x196cbc['type'])return;const {data:_0x453f98}=_0x196cbc;if(!_0x453f98||'mediaStyle'!=_0x453f98['commandName'])return;const _0x230d25=_0x453f98['commandParams'][0x0]['value']||_0x29e688;if(!_0x230d25)return;const _0x4f88fb=_0x75b692[_0x230d25]||_0x230d25;return{'type':'format','content':Ot(_0x300e20,'*Format:*\x20%0',_0x4f88fb)};});}},Re=class extends _0x207f51{afterInit(){const _0x140f10=this['editor'];_0x140f10['plugins']['has']('MentionEditing')&&_0x140f10['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x207f51{afterInit(){const _0x161853=this['editor'];if(!_0x161853['plugins']['has']('MergeFieldsEditing'))return;const _0x4a20bf=_0x161853['plugins']['get']('TrackChangesEditing'),_0x5607e3=_0x161853['locale'];_0x4a20bf['enableCommand']('insertMergeField'),_0x4a20bf['enableCommand']('insertMergeFieldBlock'),_0x4a20bf['enableCommand']('insertMergeFieldImage'),_0x4a20bf['descriptionFactory']['registerElementLabel']('mergeField',_0x57f294=>Ot(_0x5607e3,'ELEMENT_MERGE_FIELD',_0x57f294)),_0x4a20bf['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x324731=>Ot(_0x5607e3,'ELEMENT_MERGE_FIELD',_0x324731)),_0x4a20bf['descriptionFactory']['registerDescriptionCallback'](_0x50c886=>{if('insertion'!=_0x50c886['type']&&'deletion'!=_0x50c886['type'])return;const _0x585060=_0x50c886['getContainedElement']();if(null==_0x585060)return;const _0x382c7a=_0x161853['plugins']['get']('MergeFieldsEditing');let _0x3e4292;switch(_0x382c7a['getMergeFieldType'](_0x585060)){case null:return;case'image':{const _0x4f8351=_0x382c7a['unwrapAffixes'](_0x585060['getAttribute']('src'));_0x3e4292=_0x382c7a['getLabel'](_0x4f8351)||_0x4f8351;break;}default:{const _0x314e5a=_0x585060['getAttribute']('id');_0x3e4292=_0x382c7a['getLabel'](_0x314e5a)||_0x314e5a;break;}}return'insertion'==_0x50c886['type']?{'type':'insertion','content':Ot(_0x5607e3,'*Insert:*\x20%0','\x22'+_0x3e4292+'\x22\x20'+Ot(_0x5607e3,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Ot(_0x5607e3,'*Remove:*\x20%0','\x22'+_0x3e4292+'\x22\x20'+Ot(_0x5607e3,'ELEMENT_MERGE_FIELD'))};});}},Ne=class extends _0x207f51{afterInit(){const _0x583eb3=this['editor'],_0x2a49ff=_0x583eb3['plugins']['get']('TrackChangesEditing');_0x583eb3['plugins']['has']('MultiLevelList')&&(_0x2a49ff['enableDefaultAttributesIntegration']('multiLevelList'),_0x2a49ff['descriptionFactory']['registerDescriptionCallback'](_0x15947d=>this['handleDescriptions'](_0x15947d)));}handleDescriptions(_0x306045){const _0x211f87=this['editor']['locale'],{data:_0x7c3cb2}=_0x306045,_0x5686c7={'type':'format','content':''};if(_0x7c3cb2&&'listMarkerStyle'==_0x7c3cb2['key']){if(!_0x7c3cb2['oldValue'])return{'type':'format','content':Ot(_0x211f87,'*Set\x20format:*\x20%0',Ot(_0x211f87,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x7c3cb2['newValue']+')'};if(!_0x7c3cb2['newValue']){let _0x1ec2ce=_0x306045['head'];for(;_0x1ec2ce;){if(_0x1ec2ce['data']&&'listType'==_0x1ec2ce['data']['key']&&_0x1ec2ce['data']['newValue'])return _0x5686c7;_0x1ec2ce=_0x1ec2ce['next'];}return{'type':'format','content':Ot(_0x211f87,'*Remove\x20format:*\x20%0',Ot(_0x211f87,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x7c3cb2['oldValue']+')'};}}}},Se=class extends _0x207f51{afterInit(){const _0x4b1d35=this['editor'];if(!_0x4b1d35['plugins']['has']('PageBreakEditing'))return;_0x4b1d35['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x63daaa=_0x4b1d35['plugins']['get']('TrackChangesEditing'),_0x4bb86e=_0x4b1d35['locale'];_0x63daaa['descriptionFactory']['registerElementLabel']('pageBreak',_0x43d296=>Ot(_0x4bb86e,'ELEMENT_PAGE_BREAK',_0x43d296));}},Me=class extends _0x207f51{afterInit(){const _0x559b0b=this['editor'];if(!_0x559b0b['plugins']['has']('Paragraph'))return;const _0x4c8e3b=_0x559b0b['locale'],_0x740e35=_0x559b0b['plugins']['get']('TrackChangesEditing');_0x740e35['descriptionFactory']['registerElementLabel']('paragraph',_0x4e6519=>Ot(_0x4c8e3b,'ELEMENT_PARAGRAPH',_0x4e6519)),_0x740e35['enableDefaultAttributesIntegration']('paragraph'),_0x740e35['enableCommand']('insertParagraph');const _0x152e2c=_0x740e35['descriptionFactory'];_0x152e2c['registerDescriptionCallback'](_0x2e4727=>{if('insertion'!==_0x2e4727['type'])return;const {start:_0x415082,end:_0x2e80e1}=_0x2e4727['getFirstRange']();if(!_0x415082['isTouching'](_0x2e80e1)||!_0x415082['nodeAfter'])return;const _0x227187=_0x559b0b['model']['schema'],_0x310709=_0x415082['nodeAfter'];return _0x227187['isBlock'](_0x310709)&&!_0x227187['isLimit'](_0x310709)&&_0x227187['checkChild'](_0x310709,'$text')?{'type':'insertion','content':Ot(_0x4c8e3b,'*Insert:*\x20%0',_0x152e2c['getItemLabel'](_0x310709,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3862d5=this['editor'],_0x5238e9=_0x3862d5['locale'];_0x3862d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4338c6=>{if('formatBlock'!=_0x4338c6['type'])return;const {data:_0x4f5ffb}=_0x4338c6;return _0x4f5ffb&&'paragraph'==_0x4f5ffb['commandName']?{'type':'format','content':Ot(_0x5238e9,'*Change\x20to:*\x20%0',Ot(_0x5238e9,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Oe=class extends _0x207f51{afterInit(){const _0x2c75d7=this['editor'];_0x2c75d7['commands']['get']('replaceSource')&&_0x2c75d7['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},we=class extends _0x207f51{afterInit(){const _0x328ae0=this['editor'];_0x328ae0['plugins']['has']('RemoveFormatEditing')&&(_0x328ae0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x3508c3=this['editor'];_0x3508c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52ccff=>{if('formatBlock'!=_0x52ccff['type']&&'formatInline'!=_0x52ccff['type'])return;const {data:_0x2a7876}=_0x52ccff;return _0x2a7876&&'removeFormat'==_0x2a7876['commandName']?{'type':'format','content':Ot(_0x3508c3['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x207f51{afterInit(){const _0x13b788=this['editor'];if(!_0x13b788['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3504f3=_0x13b788['plugins']['get']('TrackChangesEditing');_0x3504f3['enableCommand']('goToPreviousRestrictedEditingException'),_0x3504f3['enableCommand']('goToNextRestrictedEditingException');const _0x4edb57=_0x13b788['plugins']['get']('RestrictedEditingModeEditing');_0x4edb57['enableCommand']('trackChanges'),_0x4edb57['enableCommand']('acceptSuggestion'),_0x4edb57['enableCommand']('discardSuggestion'),_0x4edb57['enableCommand']('acceptAllSuggestions'),_0x4edb57['enableCommand']('discardAllSuggestions'),_0x4edb57['enableCommand']('acceptSelectedSuggestions'),_0x4edb57['enableCommand']('discardSelectedSuggestions');}},Be=class extends _0x207f51{afterInit(){const _0x2bbd85=this['editor'];if(!_0x2bbd85['plugins']['has']('ShiftEnter'))return;const _0x3817ff=_0x2bbd85['plugins']['get']('TrackChangesEditing');_0x3817ff['enableCommand']('shiftEnter'),_0x3817ff['descriptionFactory']['registerElementLabel']('softBreak',_0x2de804=>Ot(_0x2bbd85['locale'],'ELEMENT_LINE_BREAK',_0x2de804));}};function ve(_0x353801,_0x46fdff,_0x38a29d){const _0x5e104c=[];for(const _0x9bf89 of _0x46fdff['getItems']())_0x9bf89['hasAttribute'](_0x353801)&&_0x5e104c['push'](_0x38a29d['createRangeOn'](_0x9bf89));return _0x5e104c;}var De=class extends _0x207f51{afterInit(){const _0x478b9a=this['editor'],_0x393d27=_0x478b9a['plugins']['get']('TrackChangesEditing');_0x478b9a['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x393d27['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x2f9b49=this['editor'],_0x2af07c=_0x2f9b49['model'],_0x44e36b=_0x2f9b49['locale'],_0x285612=_0x2f9b49['plugins']['get']('TrackChangesEditing'),_0x2d5a8c='restrictedEditingException',_0x2032cf=_0x2f9b49['commands']['get'](_0x2d5a8c);_0x285612['enableCommand'](_0x2d5a8c,(_0xf742d7,_0x153e5a={})=>{const _0x3e79a8=_0x2af07c['document']['selection'];if(_0x3e79a8['isCollapsed'])return void _0xf742d7(_0x153e5a);const _0x3d1658=void 0x0!==_0x153e5a['forceValue']?_0x153e5a['forceValue']:!_0x2032cf['value'];_0x2af07c['change'](()=>{const _0x45e27f=Array['from'](_0x3e79a8['getRanges']());for(const _0x1e0c73 of _0x45e27f){const _0x501253=_0x3d1658?[_0x1e0c73]:ve(_0x2d5a8c,_0x1e0c73,_0x2af07c);for(const _0x405a1d of _0x501253)_0x285612['markInlineFormat'](_0x405a1d,{'commandName':_0x2d5a8c,'commandParams':[{'forceValue':_0x3d1658}]});}});}),_0x285612['descriptionFactory']['registerDescriptionCallback'](_0x2db53d=>{if('formatBlock'!=_0x2db53d['type']&&'formatInline'!=_0x2db53d['type'])return;const {data:_0x16183b}=_0x2db53d;return _0x16183b&&_0x16183b['commandName']==_0x2d5a8c?_0x16183b['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x44e36b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x44e36b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x476f4e=this['editor'],_0x12cc28=_0x476f4e['locale'],_0x1a4983=_0x476f4e['plugins']['get']('TrackChangesEditing'),_0x258965='restrictedEditingExceptionBlock',_0x3e9fa6=this['editor']['commands']['get'](_0x258965);_0x1a4983['enableCommand'](_0x258965,(_0x3a9bdd,_0xf59b5a={})=>{const _0x2ddf4a=this['editor']['model']['document']['selection'],_0xdd1204=_0xf59b5a&&void 0x0!==_0xf59b5a['forceValue']?_0xf59b5a['forceValue']:!_0x3e9fa6['value'];let _0x5eee8f=[];_0x5eee8f=Ct(_0xdd1204?Array['from'](_0x2ddf4a['getSelectedBlocks']())['filter'](_0x4a776a=>function(_0x18f1ac){return!!_0x18f1ac['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x4a776a)||function(_0x8214ee,_0x330ac5){const _0x227d85=_0x330ac5['createContext'](_0x8214ee['parent']);return!!_0x330ac5['checkChild'](_0x227d85,'restrictedEditingException')&&!!_0x330ac5['checkChild'](_0x227d85['push']('restrictedEditingException'),_0x8214ee);}(_0x4a776a,this['editor']['model']['schema'])):Array['from'](_0x2ddf4a['getSelectedBlocks']())['map'](_0x3d195e=>function(_0xceed32){let _0x5e8ce7=_0xceed32;for(;_0x5e8ce7['parent'];){if('restrictedEditingException'==_0x5e8ce7['parent']['name'])return _0x5e8ce7;_0x5e8ce7=_0x5e8ce7['parent'];}return null;}(_0x3d195e))['filter'](_0x5da2c1=>!!_0x5da2c1),_0x476f4e['model']),_0x476f4e['model']['change'](()=>{for(const _0x578f7c of _0x5eee8f)_0x1a4983['markBlockFormat'](_0x578f7c,{'commandName':_0x258965,'commandParams':[{'forceValue':_0xdd1204}]});});}),_0x1a4983['descriptionFactory']['registerDescriptionCallback'](_0xce20f7=>{const {data:_0x28696f}=_0xce20f7;if(_0x28696f&&_0x28696f['commandName']==_0x258965)return _0x28696f['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x12cc28,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x12cc28,'FORMAT_RESTRICTED_DISABLED')};});}},Ue=class extends _0x207f51{afterInit(){const _0x624c6c=this['editor'];_0x624c6c['plugins']['has']('Style')&&_0x624c6c['plugins']['has']('DataSchema')&&(_0x624c6c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x335543=this['editor'],_0x128629=_0x335543['locale'];_0x335543['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x113370=>{if('formatBlock'!=_0x113370['type']&&'formatInline'!=_0x113370['type'])return;const {data:_0x11edc1}=_0x113370;return _0x11edc1&&'style'===_0x11edc1['commandName']?_0x11edc1['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x128629,'*Set\x20format:*\x20%0',_0x11edc1['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Ot(_0x128629,'*Remove\x20format:*\x20%0',_0x11edc1['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Pe=class extends _0x207f51{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x46019f){super(_0x46019f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x33116d=this['editor'],_0x295213=_0x33116d['model']['document']['selection'];if(!_0x33116d['plugins']['has']('TableEditing'))return;const _0x46d02d=_0x33116d['locale'],_0x2bf978=_0x33116d['plugins']['get']('TrackChangesEditing'),_0x316010=_0x33116d['plugins']['get']('TableUtils');_0x2bf978['descriptionFactory']['registerElementLabel']('table',_0x2f3282=>Ot(_0x46d02d,'ELEMENT_TABLE',_0x2f3282)),this['_setupColumnsRowsFixing'](),_0x2bf978['enableCommand']('insertTable'),_0x2bf978['enableCommand']('selectTableRow'),_0x2bf978['enableCommand']('selectTableColumn');for(const _0x4fc2a2 of['insertTableRowAbove','insertTableRowBelow']){const _0x4bd900=_0x33116d['commands']['get'](_0x4fc2a2);_0x2bf978['enableCommand'](_0x4fc2a2,_0x1a3cf0=>{_0x33116d['model']['change'](_0xe371e2=>{_0x1a3cf0();const _0x32194c='above'===_0x4bd900['order'],_0x54af0e=_0x316010['getSelectionAffectedTableCells'](_0x295213),_0x39c053=_0x316010['getRowIndexes'](_0x54af0e),_0x4e6c07=_0x32194c?_0x39c053['first']-0x1:_0x39c053['last']+0x1,_0x17dab1=_0x54af0e[0x0]['findAncestor']('table'),_0x13a133=_0x316010['createTableWalker'](_0x17dab1,{'startRow':_0x4e6c07,'endRow':_0x4e6c07}),_0x2e1a89=Array['from'](_0x13a133)['map'](_0x4dcbc8=>_0xe371e2['createRangeOn'](_0x4dcbc8['cell']));_0x2bf978['markMultiRangeInsertion'](_0x2e1a89,'tableRow');});});}for(const _0x132c14 of['insertTableColumnLeft','insertTableColumnRight']){const _0x32ffb7=_0x33116d['commands']['get'](_0x132c14);_0x2bf978['enableCommand'](_0x132c14,_0x47b74f=>{_0x33116d['model']['change'](_0xd5be10=>{_0x47b74f();const _0x1c7c1c='left'===_0x32ffb7['order'],_0x5347dd=_0x316010['getSelectionAffectedTableCells'](_0x295213),_0x5dd64c=_0x316010['getColumnIndexes'](_0x5347dd),_0x287f47=_0x1c7c1c?_0x5dd64c['first']-0x1:_0x5dd64c['last']+0x1,_0x37d656=_0x5347dd[0x0]['findAncestor']('table'),_0xbe483a=_0x316010['createTableWalker'](_0x37d656,{'startRow':0x0,'column':_0x287f47,'includeAllSlots':!0x1}),_0x127996=Array['from'](_0xbe483a)['map'](_0x20a0ae=>_0xd5be10['createRangeOn'](_0x20a0ae['cell']));_0x2bf978['markMultiRangeInsertion'](_0x127996,'tableColumn');});});}for(const _0x53135e of['removeTableRow','removeTableColumn']){const _0x1b5e0f=_0x53135e['substr'](0xb),_0x176fb5=_0x1b5e0f['toLowerCase'](),_0x5841a5=_0x176fb5['substr'](0x0,0x3)+'span',_0x37ddd3='table'+_0x1b5e0f,_0x24274c='min'+_0x1b5e0f,_0x813cf2='max'+_0x1b5e0f;_0x2bf978['enableCommand'](_0x53135e,()=>{_0x33116d['model']['change'](_0x565a0e=>{const _0x12c631=_0x316010['getSelectionAffectedTableCells'](_0x295213),_0x184adb=_0x12c631[0x0]['findAncestor']('table');let _0x3c6023;if('removeTableRow'==_0x53135e){const _0x298f83=_0x316010['getRowIndexes'](_0x12c631);_0x3c6023={'startRow':_0x298f83['first'],'endRow':_0x298f83['last'],'includeAllSlots':!0x0};}else{const _0x2a10a6=_0x316010['getColumnIndexes'](_0x12c631);_0x3c6023={'startColumn':_0x2a10a6['first'],'endColumn':_0x2a10a6['last'],'includeAllSlots':!0x0};}const _0x1ed918=_0x316010['createTableWalker'](_0x184adb,_0x3c6023),_0x37a57f=Array['from'](_0x1ed918)['map'](({cell:_0x33f4e7})=>_0x33f4e7),_0x5bf534=xe(_0x37a57f['filter'](_0x595271=>_0x595271['hasAttribute'](_0x5841a5))),_0x221d4a=xe(_0x37a57f['filter'](_0x5f0d3a=>!_0x5f0d3a['hasAttribute'](_0x5841a5)))['map'](_0x22dc94=>_0x565a0e['createRangeOn'](_0x22dc94)),_0x42c117=_0x2bf978['markMultiRangeDeletion'](_0x221d4a,_0x37ddd3);if(_0x42c117&&('tableRow'==_0x42c117['subType']||'tableColumn'==_0x42c117['subType'])){const _0x5e8478=this['_getSuggestionCoords'](_0x42c117);for(const _0x1a49c3 of _0x5bf534){const _0x261531=_0x565a0e['createRangeOn'](_0x1a49c3),_0x31a10f=_0x316010['getCellLocation'](_0x1a49c3),_0x1cde1d=_0x1a49c3['getAttribute'](_0x5841a5)-0x1,_0x48b9de=_0x5e8478[_0x24274c],_0x541880=_0x5e8478[_0x813cf2];_0x48b9de<=_0x31a10f[_0x176fb5]&&_0x31a10f[_0x176fb5]+_0x1cde1d<=_0x541880&&_0x42c117['addRange'](_0x261531);}}});});}function _0x48c0c1(_0x4257f0){const _0x298473=Array['from'](_0x295213['getRanges']())['map'](_0x341ccd=>ot['fromRange'](_0x341ccd));_0x33116d['model']['change'](_0x1fc2cd=>{const _0x548f23=_0x1fc2cd['batch'];_0x4257f0=_0x4257f0['filter'](_0x444549=>'$graveyard'!=_0x444549['root']['rootName']),_0x1fc2cd['setSelection'](_0x4257f0),_0x33116d['commands']['get']('removeTableRow')['refresh'](),_0x33116d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x33116d['model']['enqueueChange'](()=>{_0x33116d['model']['enqueueChange'](_0x548f23,_0x56318e=>{const _0x152b23=_0x298473['filter'](_0x3b31ce=>'$graveyard'!=_0x3b31ce['root']['rootName']);_0x152b23['length']>0x0&&_0x56318e['setSelection'](_0x152b23);for(const _0x4042c8 of _0x298473)_0x4042c8['detach']();});});});}function _0x4121ce(_0x4cf719){_0x33116d['model']['change'](_0x137c99=>{const _0x1acab8=Array['from'](_0x295213['getRanges']())['map'](_0x46c101=>ot['fromRange'](_0x46c101)),_0x49e5d9=[];for(const _0x1850d8 of _0x4cf719)for(const _0x3b1a91 of _0x1850d8['getItems']({'shallow':!0x0}))_0x49e5d9['push'](_0x3b1a91);for(const _0x4a50cd of _0x49e5d9)'$graveyard'!=_0x4a50cd['root']['rootName']&&(_0x137c99['setSelection'](_0x137c99['createPositionAt'](_0x4a50cd,0x0)),_0x33116d['commands']['get']('removeTableColumn')['refresh'](),_0x33116d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2afc8f=_0x1acab8['filter'](_0x2c17fc=>'$graveyard'!=_0x2c17fc['root']['rootName']);_0x2afc8f['length']>0x0&&_0x137c99['setSelection'](_0x2afc8f);for(const _0x34b93a of _0x1acab8)_0x34b93a['detach']();});}function _0x7de1b4(_0x3a0678,_0x5dff58){return _0x5dff58['every'](_0x5475e0=>_0x3a0678['some'](_0x255596=>_0x255596['end']['isEqual'](_0x5475e0['start'])||_0x5475e0['end']['isEqual'](_0x255596['start'])));}function _0x15252e(_0x441892,_0x31841e){return!_0x441892['some'](_0x202d38=>_0x31841e['some'](_0x5976bb=>_0x202d38['isIntersecting'](_0x5976bb)))&&_0x441892['some'](_0x686af7=>_0x31841e['some'](_0x535f10=>_0x686af7['end']['isTouching'](_0x535f10['start'])));}_0x2bf978['descriptionFactory']['registerDescriptionCallback'](_0x51b107=>{if('insertion'!=_0x51b107['type']&&'deletion'!=_0x51b107['type'])return;const _0x5c6ace=_0x51b107['getContainedElement']();if(null!=_0x5c6ace&&_0x5c6ace['is']('element','table')){if('insertion'==_0x51b107['type']){const _0xbd47a1=_0x51b107['getItems']()['filter'](_0x218633=>_0x218633['is']('$textProxy'))['map'](_0x36de11=>_0x36de11['data']);if(_0xbd47a1['length'])return{'type':'insertion','content':Ot(_0x46d02d,'*Insert:*\x20%0',Ot(_0x46d02d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xbd47a1['join']('\x20')+'\x22'))};}if('deletion'==_0x51b107['type']){const _0x5096e1=_0x51b107['getItems']()['filter'](_0x30eed1=>_0x30eed1['is']('$textProxy'))['map'](_0x4dcad9=>_0x4dcad9['data']);if(_0x5096e1['length'])return{'type':'deletion','content':Ot(_0x46d02d,'*Remove:*\x20%0',Ot(_0x46d02d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5096e1['join']('\x20')+'\x22'))};}}}),_0x2bf978['descriptionFactory']['registerDescriptionCallback'](_0x4395f6=>{if('tableRow'==_0x4395f6['subType']){const _0x2b0851=_0x4395f6['getItems']()['filter'](_0x1b3916=>_0x1b3916['is']('$textProxy'))['map'](_0x7824a8=>_0x7824a8['data']),_0x9e01da=this['_getSuggestionCoords'](_0x4395f6),_0x2feef9=_0x9e01da['maxRow']-_0x9e01da['minRow']+0x1;if('insertion'==_0x4395f6['type'])return _0x2b0851['length']?{'type':'insertion','content':Ot(_0x46d02d,'*Insert:*\x20%0',Ot(_0x46d02d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2feef9,'\x22'+_0x2b0851['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0x46d02d,'*Insert:*\x20%0',Ot(_0x46d02d,'ELEMENT_TABLE_ROW',_0x2feef9))};if('deletion'==_0x4395f6['type'])return _0x2b0851['length']?{'type':'deletion','content':Ot(_0x46d02d,'*Remove:*\x20%0',Ot(_0x46d02d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2feef9,'\x22'+_0x2b0851['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0x46d02d,'*Remove:*\x20%0',Ot(_0x46d02d,'ELEMENT_TABLE_ROW',_0x2feef9))};}if('tableColumn'==_0x4395f6['subType']){const _0x10f4e4=_0x4395f6['getItems']()['filter'](_0x10224e=>_0x10224e['is']('$textProxy'))['map'](_0x14e9e5=>_0x14e9e5['data']),_0x22e10a=this['_getSuggestionCoords'](_0x4395f6),_0x520483=_0x22e10a['maxColumn']-_0x22e10a['minColumn']+0x1;if('insertion'==_0x4395f6['type'])return _0x10f4e4['length']?{'type':'insertion','content':Ot(_0x46d02d,'*Insert:*\x20%0',Ot(_0x46d02d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x520483,'\x22'+_0x10f4e4['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0x46d02d,'*Insert:*\x20%0',Ot(_0x46d02d,'ELEMENT_TABLE_COLUMN',_0x520483))};if('deletion'==_0x4395f6['type'])return _0x10f4e4['length']?{'type':'deletion','content':Ot(_0x46d02d,'*Remove:*\x20%0',Ot(_0x46d02d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x520483,'\x22'+_0x10f4e4['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0x46d02d,'*Remove:*\x20%0',Ot(_0x46d02d,'ELEMENT_TABLE_COLUMN',_0x520483))};}}),_0x2bf978['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x48c0c1),_0x2bf978['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x48c0c1),_0x2bf978['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4121ce),_0x2bf978['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4121ce),_0x2bf978['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x7de1b4),_0x2bf978['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x7de1b4),_0x2bf978['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x15252e),_0x2bf978['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x15252e);}_acceptFormatSuggestionCallbackFactory(){const _0x30a980=this['editor'],_0x22ca88=_0x30a980['model']['document']['selection'];return(_0x7592bc,_0x183cab)=>{_0x30a980['model']['change'](_0x279703=>{const {commandName:_0x1f9679,commandParams:_0x2717bc}=_0x183cab;let _0x301779=_0x7592bc[0x0]['end']['nodeBefore'];_0x2717bc&&_0x2717bc[0x0]&&!0x1===_0x2717bc[0x0]['forceValue']&&(_0x301779=_0x7592bc[0x0]['start']['nodeAfter']);const _0x4bb279=_0x279703['createRangeIn'](_0x301779);if('$graveyard'==_0x4bb279['root']['rootName'])return;const _0x30b8d7=Array['from'](_0x22ca88['getRanges']())['map'](_0x1aba5a=>ot['fromRange'](_0x1aba5a));_0x279703['setSelection'](_0x4bb279),_0x30a980['commands']['get'](_0x1f9679)['refresh'](),_0x2717bc['push']({'forceDefaultExecution':!0x0}),_0x30a980['execute'](_0x1f9679,..._0x2717bc);const _0x246ef8=_0x30b8d7['filter'](_0x5463d2=>'$graveyard'!=_0x5463d2['root']['rootName']);_0x246ef8['length']>0x0&&_0x279703['setSelection'](_0x246ef8);for(const _0x3b3140 of _0x30b8d7)_0x3b3140['detach']();});};}_getCoordsForCells(_0x3fe2d8){const _0x49c4d3=this['editor']['plugins']['get']('TableUtils');let _0x16b15f=Number['MAX_SAFE_INTEGER'],_0x3f7e3b=Number['MIN_SAFE_INTEGER'],_0x53c4bf=Number['MAX_SAFE_INTEGER'],_0x44e2d8=Number['MIN_SAFE_INTEGER'];for(const _0x2b4ae2 of _0x3fe2d8){if('$graveyard'==_0x2b4ae2['root']['rootName'])continue;const {row:_0x4f6800,column:_0x43aefd}=_0x49c4d3['getCellLocation'](_0x2b4ae2),_0x3a8080=_0x2b4ae2['hasAttribute']('rowspan')?_0x2b4ae2['getAttribute']('rowspan')-0x1:0x0,_0x496e96=_0x2b4ae2['hasAttribute']('colspan')?_0x2b4ae2['getAttribute']('colspan')-0x1:0x0;_0x16b15f=_0x4f6800<_0x16b15f?_0x4f6800:_0x16b15f,_0x3f7e3b=_0x4f6800+_0x3a8080>_0x3f7e3b?_0x4f6800+_0x3a8080:_0x3f7e3b,_0x53c4bf=_0x43aefd<_0x53c4bf?_0x43aefd:_0x53c4bf,_0x44e2d8=_0x43aefd+_0x496e96>_0x44e2d8?_0x43aefd+_0x496e96:_0x44e2d8;}return{'minRow':_0x16b15f,'maxRow':_0x3f7e3b,'minColumn':_0x53c4bf,'maxColumn':_0x44e2d8};}_setupColumnsRowsFixing(){const _0x4e42d8=this['editor'],_0x3193d3=_0x4e42d8['plugins']['get']('TrackChangesEditing'),_0x49589f=_0x4e42d8['plugins']['get']('TableUtils');_0x4e42d8['model']['document']['on']('change:data',()=>{const _0x39fe0a=Array['from'](_0x4e42d8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x96f4b1,data:_0xe8089}of _0x39fe0a){const {group:_0x3703e4,id:_0x1ccdb1,subType:_0x15f5ca}=et(_0x96f4b1);if('suggestion'!=_0x3703e4)continue;if(null!=_0xe8089['oldRange'])continue;const _0x27540f=_0x3193d3['getSuggestion'](_0x1ccdb1);this['_tablePostFixingSubtypes']['includes'](_0x15f5ca)&&this['_tableSuggestions']['add'](_0x27540f);}},{'priority':'low'});const _0x4ccd8e=(_0x37838e,_0x20d7a7)=>{let _0x48f57f=!0x1;const _0x19cf87=_0x20d7a7['createRangeOn'](_0x37838e),_0x2abbb0=_0x37838e['findAncestor']('table'),_0x4193f8=_0x49589f['getCellLocation'](_0x37838e);for(const _0x43771a of this['_tableSuggestions']){const _0x292794=_0x43771a['subType'],_0x22ea9b=_0x292794['startsWith']('tablePaste'),_0x583705=_0x292794['substr'](_0x22ea9b?0xa:0x5),_0x1befeb=_0x583705['toLowerCase'](),_0x335a88=_0x1befeb['substr'](0x0,0x3)+'span',_0x5af544='min'+_0x583705,_0x9cae61='max'+_0x583705;if(!_0x43771a['isInContent'])continue;if(_0x2abbb0!=_0x43771a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x43771a['isIntersectingWithRange'](_0x19cf87))continue;const _0x3ffee4=_0x37838e['hasAttribute'](_0x335a88)?_0x37838e['getAttribute'](_0x335a88)-0x1:0x0,_0x3545c9=this['_getSuggestionCoords'](_0x43771a),_0x58e208=_0x3545c9[_0x5af544],_0x3e987b=_0x3545c9[_0x9cae61];_0x58e208<=_0x4193f8[_0x1befeb]&&_0x4193f8[_0x1befeb]+_0x3ffee4<=_0x3e987b&&(_0x43771a['addRange'](_0x19cf87),_0x48f57f=!0x0);}return _0x48f57f;};_0x4e42d8['model']['document']['registerPostFixer'](_0x9198a0=>{let _0x2af78d=!0x1;for(const _0x882978 of _0x4e42d8['model']['document']['differ']['getChanges']())if('insert'==_0x882978['type']){if('tableRow'==_0x882978['name']){for(const _0xa3b0a2 of _0x882978['position']['nodeAfter']['getChildren']())_0x2af78d=_0x2af78d||_0x4ccd8e(_0xa3b0a2,_0x9198a0);}else'tableCell'==_0x882978['name']&&(_0x2af78d=_0x2af78d||_0x4ccd8e(_0x882978['position']['nodeAfter'],_0x9198a0));}return _0x2af78d;});}_getSuggestionCoords(_0x37db09){return this['_getCoordsForCells'](_0x37db09['getRanges']()['map'](_0x1371ba=>_0x1371ba['start']['nodeAfter']));}};function xe(_0x27a7ec){return Array['from'](new Set(_0x27a7ec)['values']());}var Ge=class extends _0x207f51{static get requires(){return[Pe];}afterInit(){const _0x675163=this['editor'],_0xc67a45=_0x675163['model']['document']['selection'],_0xaac09e=_0x675163['locale'];if(!_0x675163['plugins']['has']('TableEditing'))return;const _0x309317=_0x675163['plugins']['get']('TrackChangesEditing'),_0x2bed1b=_0x675163['plugins']['get']('TableUtils'),_0x2ab187=_0x675163['plugins']['get'](Pe);_0x2ab187['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x309317['enableCommand']('mergeTableCells',()=>{const _0x504b0a=_0x2bed1b['getSelectionAffectedTableCells'](_0x675163['model']['document']['selection']);_0x675163['model']['change'](()=>{_0x309317['markMultiRangeBlockFormat'](_0x504b0a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x675163['commands']['get']('mergeTableCells')['on']('execute',(_0x4bcafe,_0x514984)=>{_0x675163['commands']['get']('trackChanges')['value']&&(_0x514984['length']>0x0&&_0x514984[_0x514984['length']-0x1]&&_0x514984[_0x514984['length']-0x1]['forceDefaultExecution']||_0x309317['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4bcafe['stop']());},{'priority':'highest'});for(const _0xb0880 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x313b8a=_0x675163['commands']['get'](_0xb0880);_0x309317['enableCommand'](_0xb0880,()=>{const _0x4713a3=_0x675163['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x37bcdd=>_0x37bcdd['is']('element','tableCell')),_0x267b0c=_0x313b8a['value'];_0x675163['model']['change'](()=>{_0x309317['markMultiRangeBlockFormat']([_0x4713a3,_0x267b0c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x23d933 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2cb206=_0x675163['commands']['get'](_0x23d933);_0x309317['enableCommand'](_0x23d933,()=>{const _0x19a1b2=_0x2bed1b['getSelectionAffectedTableCells'](_0x675163['model']['document']['selection']),_0x334565=_0x19a1b2[0x0]['findAncestor']('table'),_0x522413=new Set();for(const _0x296a37 of _0x19a1b2){const {column:_0x2eb521,row:_0x1ccc5d}=_0x2bed1b['getCellLocation'](_0x296a37),_0x418df5='horizontally'==_0x2cb206['direction']?_0x2bed1b['createTableWalker'](_0x334565,{'startRow':_0x1ccc5d,'endRow':_0x1ccc5d,'includeAllSlots':!0x0}):_0x2bed1b['createTableWalker'](_0x334565,{'column':_0x2eb521,'includeAllSlots':!0x0});for(const {cell:_0x17c02f}of _0x418df5)_0x522413['add'](_0x17c02f);}_0x675163['model']['change'](()=>{_0x309317['markMultiRangeBlockFormat'](_0x19a1b2,{'commandName':_0x23d933,'commandParams':[]},Array['from'](_0x522413),_0x23d933);});});}_0x309317['descriptionFactory']['registerDescriptionCallback'](_0x36e55c=>{if('formatBlock'!=_0x36e55c['type']&&'formatInline'!=_0x36e55c['type'])return;const {data:_0x3665a4}=_0x36e55c;return _0x3665a4&&'mergeTableCells'==_0x3665a4['commandName']?{'type':'format','content':Ot(_0xaac09e,'*Merge\x20cells*')}:void 0x0;}),_0x309317['descriptionFactory']['registerDescriptionCallback'](_0x35c3f4=>{if('formatBlock'!=_0x35c3f4['type']&&'formatInline'!=_0x35c3f4['type'])return;const {data:_0x42df94}=_0x35c3f4;return _0x42df94?'splitTableCellVertically'==_0x42df94['commandName']?{'type':'format','content':Ot(_0xaac09e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x42df94['commandName']?{'type':'format','content':Ot(_0xaac09e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2305bb=_0x2ab187['_acceptFormatSuggestionCallbackFactory']();for(const _0x214173 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x309317['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x214173,'accept',_0x2305bb);for(const _0x4107c6 of['splitTableCellVertically','splitTableCellHorizontally'])_0x309317['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4107c6,'accept',_0x38ec89=>{_0x675163['model']['change'](_0x51f3d2=>{const _0x2fcd69=Array['from'](_0x38ec89)['filter'](_0x223d1c=>'$graveyard'!=_0x223d1c['root']['rootName']&&!!_0x223d1c['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x2fcd69['length'])return;const _0x545fed=Array['from'](_0xc67a45['getRanges']())['map'](_0x567b42=>ot['fromRange'](_0x567b42));_0x51f3d2['setSelection'](_0x2fcd69),_0x675163['commands']['get'](_0x4107c6)['refresh'](),_0x675163['execute'](_0x4107c6,{'forceDefaultExecution':!0x0});const _0x147022=_0x545fed['filter'](_0x1d40a6=>'$graveyard'!=_0x1d40a6['root']['rootName']);_0x147022['length']>0x0&&_0x51f3d2['setSelection'](_0x147022);for(const _0x5d0ae2 of _0x545fed)_0x5d0ae2['detach']();});});_0x309317['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x47cac3=>{_0x675163['model']['change'](_0x19fbe4=>{const _0x56d05c=Array['from'](_0xc67a45['getRanges']())['map'](_0x3835ca=>ot['fromRange'](_0x3835ca));_0x19fbe4['setSelection'](_0x47cac3),_0x675163['commands']['get']('mergeTableCells')['refresh'](),_0x675163['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x39f151=_0x56d05c['filter'](_0x129258=>'$graveyard'!=_0x129258['root']['rootName']);_0x39f151['length']>0x0&&_0x19fbe4['setSelection'](_0x39f151);for(const _0xe931fc of _0x56d05c)_0xe931fc['detach']();});});for(const _0x59dccf of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5b562d=_0x675163['commands']['get'](_0x59dccf);_0x5b562d['on']('set:isEnabled',(_0x51f620,_0x5bc656,_0x2ca6ca)=>{if(_0x2ca6ca){const _0x188867=_0x675163['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x143f6c=>_0x143f6c['is']('element','tableCell'));this['_areMergableCells'](_0x5b562d['value'],_0x188867)||(_0x51f620['return']=!0x1,_0x51f620['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x2b1b92=this['editor']['commands']['get']('mergeTableCells'),_0x4b860a=this['editor']['plugins']['get']('TableUtils');if(!_0x2b1b92['isEnabled'])return!0x1;const _0x8d053e=_0x4b860a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x461a15 of _0x8d053e)for(const _0xedcdab of _0x8d053e)if(_0x461a15!=_0xedcdab&&!this['_areMergableCells'](_0x461a15,_0xedcdab))return!0x1;return!0x0;}['_areMergableCells'](_0x5d7e94,_0x27e9c7){const _0xbcc48f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x295c1b=this['editor']['model']['createRangeOn'](_0x5d7e94),_0x10b786=this['editor']['model']['createRangeOn'](_0x27e9c7),_0x200bf5=new Set(),_0x59f698=new Set();for(const _0x273144 of _0xbcc48f['getSuggestions']())if(('insertion'==_0x273144['type']||'deletion'==_0x273144['type']||'mergeTableCells'==_0x273144['subType'])&&_0x273144['isInContent']){for(const _0x57e0d2 of _0x273144['getRanges']())_0x57e0d2['containsRange'](_0x295c1b,!0x0)&&_0x200bf5['add'](_0x273144['type']+':'+_0x273144['author']['id']),_0x57e0d2['containsRange'](_0x10b786,!0x0)&&_0x59f698['add'](_0x273144['type']+':'+_0x273144['author']['id']);}if(_0x200bf5['size']!=_0x59f698['size'])return!0x1;for(const _0x19ec82 of _0x200bf5)if(!_0x59f698['has'](_0x19ec82))return!0x1;return!0x0;}},He=class extends _0x207f51{static get requires(){return[Pe];}afterInit(){const _0x47fb18=this['editor'];if(!_0x47fb18['plugins']['has']('TableEditing'))return;const _0x232c61=_0x47fb18['locale'],_0x27c485=_0x47fb18['plugins']['get']('TrackChangesEditing');_0x27c485['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x27c485['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x27c485['descriptionFactory']['registerAttributeLabel']('headingRows',Ot(_0x232c61,'FORMAT_HEADER_ROW')),_0x27c485['descriptionFactory']['registerAttributeLabel']('headingColumns',Ot(_0x232c61,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x383fe5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26dade=this['editor']['plugins']['get'](Pe)['_acceptFormatSuggestionCallbackFactory']();_0x383fe5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x26dade),_0x383fe5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x26dade),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x3994b8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31e8e7=this['editor']['plugins']['get']('TableUtils');function _0xaecfb1({showActiveMarker:_0x59958e=!0x0,setDataAttribute:_0x50eea9=!0x0}={}){return(_0x309212,_0x12930d,_0x45ec73)=>{const {type:_0x307245,id:_0x15cd9a}=et(_0x12930d['markerName']);if(!_0x3994b8['hasSuggestion'](_0x15cd9a))return;const _0x51cce9=_0x3994b8['getSuggestion'](_0x15cd9a),_0x168bad=_0x51cce9['data'];if('formatBlock'!=_0x51cce9['type']||!_0x168bad||'setTableColumnHeader'!=_0x168bad['commandName'])return;if(_0x12930d['item'])return void _0x309212['stop']();if(!_0x45ec73['consumable']['consume'](_0x12930d['markerRange'],_0x309212['name']))return;const _0x3b2be3=_0x12930d['markerRange']['start']['nodeAfter'],_0x346d57=_0x12930d['markerRange']['end']['nodeBefore'],_0x35b2f6=_0x3b2be3['parent']['parent'],{column:_0x244901}=_0x31e8e7['getCellLocation'](_0x3b2be3),{column:_0x2e153f}=_0x31e8e7['getCellLocation'](_0x346d57);for(let _0x30c056=_0x244901;_0x30c056<=_0x2e153f;_0x30c056++){const _0x1d78b4=_0x31e8e7['createTableWalker'](_0x35b2f6,{'column':_0x30c056,'includeAllSlots':!0x1});for(const _0x84c870 of _0x1d78b4){const _0x538150=_0x84c870['cell'],_0x2a3ba5=_0x45ec73['mapper']['toViewElement'](_0x538150);_0x45ec73['writer']['addClass']('ck-suggestion-marker-'+_0x307245,_0x2a3ba5),_0x50eea9&&_0x45ec73['writer']['setAttribute']('data-suggestion',_0x15cd9a,_0x2a3ba5),_0x45ec73['mapper']['bindElementToMarker'](_0x2a3ba5,_0x12930d['markerName']),_0x59958e&&(_0x3994b8['activeMarkers']['includes'](_0x12930d['markerName'])?_0x45ec73['writer']['addClass']('ck-suggestion-marker--active',_0x2a3ba5):_0x45ec73['writer']['removeClass']('ck-suggestion-marker--active',_0x2a3ba5));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xaecfb1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2c2451,_0x302197,_0x21acc2)=>{_0x21acc2['options']['showSuggestionHighlights']&&_0xaecfb1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2c2451,_0x302197,_0x21acc2);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5f12d7,_0x3c69dc,_0x179f2c)=>{const {type:_0x395ca4,id:_0x31a6bc}=et(_0x3c69dc['markerName']);if(!_0x3994b8['hasSuggestion'](_0x31a6bc))return;const _0x2a19c5=_0x3994b8['getSuggestion'](_0x31a6bc),_0x27018b=_0x2a19c5['data'];if('formatBlock'!=_0x2a19c5['type']||!_0x27018b||'setTableColumnHeader'!=_0x27018b['commandName'])return;const _0x4bce16=_0x179f2c['mapper']['markerNameToElements'](_0x3c69dc['markerName']);if(_0x4bce16){for(const _0x16e758 of _0x4bce16)_0x179f2c['writer']['removeClass']('ck-suggestion-marker-'+_0x395ca4,_0x16e758),_0x179f2c['writer']['removeClass']('ck-suggestion-marker--active',_0x16e758),_0x179f2c['writer']['removeAttribute']('data-suggestion',_0x16e758),_0x179f2c['mapper']['unbindElementFromMarkerName'](_0x16e758,_0x3c69dc['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x30abe6=this['editor'],_0x24eea5=_0x30abe6['locale'];function _0x38af3f(_0xeef678){return{'type':'format','content':Ot(_0x24eea5,'*Format:*\x20%0',_0xeef678)};}_0x30abe6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e4bf1=>{if('formatBlock'!=_0x4e4bf1['type'])return;const {data:_0x10c842}=_0x4e4bf1;return _0x10c842?'setTableRowHeader'==_0x10c842['commandName']?_0x10c842['commandParams'][0x0]['forceValue']?_0x38af3f(Ot(_0x24eea5,'FORMAT_HEADER_ROW')):_0x38af3f(Ot(_0x24eea5,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x10c842['commandName']?_0x10c842['commandParams'][0x0]['forceValue']?_0x38af3f(Ot(_0x24eea5,'FORMAT_HEADER_COLUMN')):_0x38af3f(Ot(_0x24eea5,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},$e=class extends _0x207f51{static get requires(){return[Pe];}afterInit(){const _0x20e4f0=this['editor'];if(!_0x20e4f0['plugins']['has']('TableEditing')||!_0x20e4f0['config']['get']('table.enableFooters'))return;const _0x565127=_0x20e4f0['locale'],_0x87d67b=_0x20e4f0['plugins']['get']('TrackChangesEditing');_0x87d67b['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x87d67b['descriptionFactory']['registerAttributeLabel']('footerRows',Ot(_0x565127,'FORMAT_FOOTER_ROW'));}},We=class extends _0x207f51{afterInit(){const _0x1955b4=this['editor'],_0x4a0425=_0x1955b4['locale'],_0x4fc89e=_0x1955b4['plugins']['get']('TrackChangesEditing');function _0x3189e9(_0x362ab4){return{'type':'format','content':''+Ot(_0x4a0425,'*Set\x20table\x20type:*\x20%0',_0x362ab4)};}_0x1955b4['plugins']['has']('TableLayout')&&(_0x4fc89e['enableCommand']('insertTableLayout'),_0x4fc89e['enableDefaultAttributesIntegration']('tableType'),_0x4fc89e['descriptionFactory']['registerElementLabel'](_0xb7aa95=>_0xb7aa95['is']('element','table')&&'layout'===_0xb7aa95['getAttribute']('tableType'),_0x507c89=>Ot(_0x4a0425,'ELEMENT_LAYOUT_TABLE',_0x507c89)),_0x4fc89e['descriptionFactory']['registerDescriptionCallback'](_0x4a98ba=>{const {data:_0x426260}=_0x4a98ba;if(_0x426260&&'tableType'==_0x426260['key'])switch(_0x426260['newValue']){case'layout':return _0x3189e9(Ot(_0x4a0425,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3189e9(Ot(_0x4a0425,'ELEMENT_CONTENT_TABLE'));}}));}};const Ve=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Ve['map'](_0x1f5b06=>[_0x1f5b06,null]));var ze=class extends _0x207f51{static get requires(){return[Pe];}afterInit(){const _0x146494=this['editor'];if(!_0x146494['plugins']['has']('TableClipboard'))return;const _0x8c1ae5=_0x146494['plugins']['get']('TrackChangesEditing'),_0x2825ef=_0x146494['plugins']['get']('TableUtils'),_0x5222c2=_0x146494['plugins']['get'](Pe),_0x5b6652=_0x146494['plugins']['get']('TableClipboard'),_0x2e4e7d=_0x146494['plugins']['get']('TableSelection'),_0x331192=_0x146494['plugins']['get'](ft);_0x5222c2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x146494['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x146494['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2417a8=null,_0x92b8d5=!0x1;_0x331192['on']('contentInsertion',(_0x11b5c4,_0x4c37dd)=>{_0x92b8d5='paste'===_0x4c37dd['method'];}),_0x146494['model']['on']('insertContent',(_0x1705b2,_0x3cb11a)=>{if(!_0x92b8d5&&null===_0x2e4e7d['getSelectedTableCells']())return;const [_0x5dbc86,_0x89a842]=_0x3cb11a,_0x4fdbfa=_0x3cb11a[_0x3cb11a['length']-0x1];_0x4fdbfa&&_0x4fdbfa['forceDefaultExecution']||_0x8c1ae5['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x59c0ac,_0x23bc85,_0x59ecb5,_0x5d86a7,_0x1e88a8){if(_0x23bc85&&!_0x23bc85['is']('documentSelection'))return!0x1;const _0x5a5ad3=_0x1e88a8['getTableIfOnlyTableInContent'](_0x59c0ac,_0x59ecb5);if(!_0x5a5ad3||!Xe(_0x5a5ad3,void 0x0,_0x5d86a7))return!0x1;const _0x342775=_0x5d86a7['getSelectionAffectedTableCells'](_0x59ecb5['document']['selection']);if(!_0x342775['length'])return!0x1;const _0x2e2085=_0x342775[0x0]['findAncestor']('table'),_0xa3fb98=_0x5d86a7['getRowIndexes'](_0x342775),_0x4cfdda=_0x5d86a7['getColumnIndexes'](_0x342775),_0x5477bc={'startRow':_0xa3fb98['first'],'endRow':_0xa3fb98['last'],'startColumn':_0x4cfdda['first'],'endColumn':_0x4cfdda['last']};return 0x1==_0x342775['length']&&(_0x5477bc['endRow']+=_0x5d86a7['getRows'](_0x5a5ad3)-0x1,_0x5477bc['endColumn']+=_0x5d86a7['getColumns'](_0x5a5ad3)-0x1),Xe(_0x2e2085,_0x5477bc,_0x5d86a7);}(_0x5dbc86,_0x89a842,_0x146494['model'],_0x2825ef,_0x5b6652)&&(_0x1705b2['stop'](),_0x2417a8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x146494['model']['change'](()=>{_0x146494['model']['insertContent'](_0x3cb11a[0x0],_0x3cb11a[0x1],_0x3cb11a[0x2],{'forceDefaultExecution':!0x0});const _0x458248=_0x33218c(),{rowInsertionRanges:_0x45a6fa,columnInsertionRanges:_0x13a8e2,insertionRanges:_0x4bf366,deletionRanges:_0x4bc96b,cells:_0x147927}=_0x2417a8;_0x45a6fa['length']&&_0x8c1ae5['markMultiRangeInsertion'](_0x45a6fa,'tablePasteRow',{'tablePasteChainId':_0x458248}),_0x13a8e2['length']&&_0x8c1ae5['markMultiRangeInsertion'](_0x13a8e2,'tablePasteColumn',{'tablePasteChainId':_0x458248}),_0x4bf366['length']&&(_0x8c1ae5['markMultiRangeInsertion'](_0x4bf366,'tablePaste',{'tablePasteChainId':_0x458248,'skipNestingCheck':!0x0}),_0x4bf366['forEach'](_0xc8734f=>_0xc8734f['detach']?.())),_0x4bc96b['length']&&(_0x8c1ae5['markMultiRangeDeletion'](_0x4bc96b,'tablePaste',{'tablePasteChainId':_0x458248,'skipNestingCheck':!0x0}),_0x4bc96b['forEach'](_0x4127f5=>_0x4127f5['detach']?.()));const _0x54ae76=_0x8c1ae5['markMultiRangeBlockFormat'](_0x147927['map'](({element:_0x3da187})=>_0x3da187),{'formatGroupId':_0x33218c()},[],'tablePasteCell',{'tablePasteChainId':_0x458248});if(_0x54ae76){const _0x3fd9e8=_0x54ae76['getMarkers'](),_0x52ecaf=[];for(const {element:_0x49ac94,attributes:_0x238d97}of _0x147927){if(!_0x238d97)continue;const _0x3bfda6=_0x146494['model']['createRangeOn'](_0x49ac94),_0x53679c=_0x3fd9e8['find'](_0x34591b=>_0x34591b['getRange']()['isEqual'](_0x3bfda6));_0x53679c&&_0x52ecaf['push']([_0x53679c['name'],_0x238d97]);}_0x52ecaf['length']&&_0x54ae76['setAttribute']('markerAttributes',Object['fromEntries'](_0x52ecaf));}_0x2417a8=null;}));},{'priority':_0x93e675['high']+0xa}),_0x331192['on']('contentInsertion',()=>{_0x92b8d5=!0x1;},{'priority':'lowest'}),_0x146494['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x51617b,_0xfdcc03)=>{const [_0x3797aa,_0x262b59,,_0xda3b4e]=_0xfdcc03;if(!_0x2417a8)return;_0x51617b['stop']();const _0x160c95=_0x3797aa['cell'],_0x208fe7=_0x262b59,_0x46c49b=Ke(_0x160c95),_0x4b95a9=Ke(_0x208fe7);_0x51617b['return']=_0x160c95;let _0x4e23f7=null,_0x161110=null;if(_0x4b95a9||_0x46c49b){if(_0x46c49b&&!_0x4b95a9){_0xda3b4e['remove'](_0x160c95['getChild'](0x0));for(const _0x402ab7 of Array['from'](_0x208fe7['getChildren']()))_0xda3b4e['insert'](_0x402ab7,_0x160c95,'end');const _0x105b10=_0x2417a8['rowInsertionIndexes']['includes'](_0x3797aa['row']),_0x5d5195=_0x2417a8['columnInsertionIndexes']['includes'](_0x3797aa['column']);_0x105b10||_0x5d5195||(_0x4e23f7=ot['fromRange'](_0xda3b4e['createRangeIn'](_0x160c95)));}else _0x4b95a9&&!_0x46c49b&&(_0x161110=_0xda3b4e['createRangeIn'](_0x160c95));}else{const _0x293ef6=_0xda3b4e['createElement']('tableCellSuggestion'),_0x138725=_0xda3b4e['createElement']('tableCellSuggestion');_0xda3b4e['wrap'](_0xda3b4e['createRangeIn'](_0x160c95),_0x138725),_0xda3b4e['insert'](_0x293ef6,_0x160c95,0x0);for(const _0x1c2457 of Array['from'](_0x208fe7['getChildren']()))_0xda3b4e['insert'](_0x1c2457,_0x293ef6,'end');_0x4e23f7=ot['fromRange'](_0xda3b4e['createRangeOn'](_0x293ef6)),_0x161110=ot['fromRange'](_0xda3b4e['createRangeOn'](_0x138725));}const _0x4d3a9d=Array['from'](_0x208fe7['getAttributes']())['filter'](([_0x1695d2])=>Ve['includes'](_0x1695d2));_0x2417a8['cells']['push']({'element':_0x160c95,'attributes':_0x4d3a9d['length']?Object['fromEntries'](_0x4d3a9d):null}),_0x4e23f7&&_0x2417a8['insertionRanges']['push'](_0x4e23f7),_0x161110&&_0x2417a8['deletionRanges']['push'](_0x161110);},{'priority':'high'}),_0x2825ef['on']('insertColumns',(_0x514023,_0x52f83e)=>{const [_0x117edf,_0x42ef15={}]=_0x52f83e;if(!_0x2417a8)return;const _0x366cdf=_0x42ef15['at']||0x0,_0x520366=_0x42ef15['columns']||0x1;_0x2417a8['columnInsertionIndexes']=new Array(_0x520366)['fill'](_0x366cdf)['map']((_0x589322,_0x1f5d0a)=>_0x589322+_0x1f5d0a);for(const {cell:_0x406dd9}of _0x2825ef['createTableWalker'](_0x117edf,{'startColumn':_0x366cdf,'endColumn':_0x366cdf+_0x520366-0x1}))_0x2417a8['columnInsertionRanges']['push'](_0x146494['model']['createRangeOn'](_0x406dd9));},{'priority':'low'}),_0x2825ef['on']('insertRows',(_0x4731bf,_0x35ed2b)=>{const [_0x23b191,_0x38d8cb={}]=_0x35ed2b;if(!_0x2417a8)return;const _0x29c805=_0x38d8cb['at']||0x0,_0x1d70dc=_0x38d8cb['rows']||0x1;_0x2417a8['rowInsertionIndexes']=new Array(_0x1d70dc)['fill'](_0x29c805)['map']((_0x5692d6,_0x23a21b)=>_0x5692d6+_0x23a21b);for(const {cell:_0x34f58b}of _0x2825ef['createTableWalker'](_0x23b191,{'startRow':_0x29c805,'endRow':_0x29c805+_0x1d70dc-0x1}))_0x2417a8['rowInsertionRanges']['push'](_0x146494['model']['createRangeOn'](_0x34f58b));},{'priority':'low'}),_0x8c1ae5['descriptionFactory']['registerDescriptionCallback'](_0x489061=>{if(_0x489061['subType']&&_0x489061['subType']['startsWith']('tablePaste'))return _0x489061['previous']?{}:{'type':'insertion','content':Ot(_0x146494['locale'],'*Replace\x20table\x20cells*')};});const _0x8e8819=()=>!0x1;for(const _0x1a9526 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x8c1ae5['_suggestionFactory']['registerCustomCallback']('insertion',_0x1a9526,'join',_0x8e8819),_0x8c1ae5['_suggestionFactory']['registerCustomCallback']('deletion',_0x1a9526,'join',_0x8e8819),_0x8c1ae5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1a9526,'join',_0x8e8819);_0x8c1ae5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x8e8819),_0x8c1ae5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2b9d58,_0x398979,_0x516d25)=>{const _0x32234f=_0x2b9d58['map'](_0x30576d=>_0x30576d['getContainedElement']())['filter'](_0x4831fc=>_0x4831fc),_0x6631a4=new Map(_0x32234f['map'](_0x22375a=>[_0x22375a,null]));if(_0x2417a8){for(const {element:_0x1845a7,attributes:_0x5f29d3}of _0x2417a8['cells'])_0x5f29d3&&_0x6631a4['set'](_0x1845a7,_0x5f29d3);}else{if(_0x516d25&&_0x516d25['markerAttributes'])for(const [_0x966fe9,_0x5cc593]of Object['entries'](_0x516d25['markerAttributes'])){const _0x21f844=_0x146494['model']['markers']['get'](_0x966fe9),_0x3c29cd=_0x21f844?_0x21f844['getRange']()['getContainedElement']():null;_0x3c29cd&&_0x6631a4['set'](_0x3c29cd,_0x5cc593);}}_0x146494['model']['change'](_0x3aab18=>{for(const [_0x5b0260,_0x3de8c8]of _0x6631a4)_0x3aab18['setAttributes']({...je,..._0x3de8c8},_0x5b0260);});});const _0xbf5bce=(_0xa4e814,_0x715ec)=>{_0x8c1ae5['_suggestionFactory']['registerCustomCallback'](_0xa4e814,'tablePaste',_0x715ec,(_0xbc1454,_0x392d55,_0x101334)=>{_0x146494['model']['change'](_0x3b7555=>{const _0x4dd689=[];for(const _0x592bb4 of _0xbc1454){const _0x57e2df=_0x592bb4['start']['nodeAfter'];_0x57e2df['is']('element','tableCellSuggestion')&&_0x4dd689['push'](_0x57e2df);}_0x8c1ae5['_suggestionFactory']['getSuggestionCallback'](_0xa4e814,null,_0x715ec)(_0xbc1454,_0x392d55,_0x101334);for(const _0x2e30a3 of _0x4dd689)'$graveyard'!=_0x2e30a3['root']['rootName']&&_0x3b7555['unwrap'](_0x2e30a3);});});};_0xbf5bce('insertion','accept'),_0xbf5bce('insertion','discard'),_0xbf5bce('deletion','accept'),_0xbf5bce('deletion','discard'),_0x8c1ae5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x32fbbd=>{const _0x1e890d=_0x32fbbd['map'](_0x5c9a9c=>_0x5c9a9c['getContainedElement']()),_0x5bd615=_0x1e890d[0x0]['findAncestor']('table'),{minRow:_0x411c32,maxRow:_0x219768}=_0x5222c2['_getCoordsForCells'](_0x1e890d);_0x2825ef['removeRows'](_0x5bd615,{'at':_0x411c32,'rows':_0x219768-_0x411c32+0x1});}),_0x8c1ae5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xe93a7=>{const _0x4e214b=_0xe93a7['map'](_0x5ece3c=>_0x5ece3c['getContainedElement']()),_0x380fef=_0x4e214b[0x0]['findAncestor']('table'),{minColumn:_0x53415f,maxColumn:_0x36718f}=_0x5222c2['_getCoordsForCells'](_0x4e214b);_0x2825ef['removeColumns'](_0x380fef,{'at':_0x53415f,'columns':_0x36718f-_0x53415f+0x1});});const _0x24161f=(_0x28dda3,_0xd9ac8c)=>{if(!_0xd9ac8c['subType']||!_0xd9ac8c['subType']['startsWith']('tablePaste'))return;const _0x1dd0c3=_0xd9ac8c['attributes']['tablePasteChainId'],_0x2d4734=_0x8c1ae5['getSuggestions']()['filter'](_0x1f3ad6=>_0x1f3ad6['isInContent']&&_0x1f3ad6['attributes']&&_0x1f3ad6['attributes']['tablePasteChainId']==_0x1dd0c3);_0x2d4734['length']&&_0xd9ac8c['getAllAdjacentSuggestions']()['length']!=_0x2d4734['length']&&_0x2d4734['reduce']((_0x2556ba,_0x19e68f)=>(_0x2556ba['next']=_0x19e68f,_0x19e68f['previous']=_0x2556ba,_0x19e68f));};function _0x5c2a06(_0x41f9d7,_0xd3f677=!0x0){const {id:_0x15bc5b,authorId:_0x47c9b6}=et(_0x41f9d7['markerName']),_0x5d8a63=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x42af4d=_0x8c1ae5['activeMarkers']['includes'](_0x41f9d7['markerName']);return _0x42af4d&&_0x5d8a63['push']('ck-suggestion-marker--active'),{'classes':_0x5d8a63,'attributes':{'data-suggestion':_0x15bc5b,'data-author-id':_0x47c9b6},'priority':_0x42af4d&&_0xd3f677?0xbc2:0xbb8};}_0x8c1ae5['on']('suggestionLoaded',_0x24161f,{'priority':'high'}),_0x8c1ae5['on']('suggestionUnloaded',_0x24161f,{'priority':'high'}),_0x146494['model']['document']['registerPostFixer'](()=>{let _0x5cb6cd=!0x1;const _0x1a29ce=Array['from'](_0x146494['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xfc6ca1,data:_0x327d79}of _0x1a29ce){const {group:_0x33cb4d,type:_0x14fa43,id:_0x195f02}=et(_0xfc6ca1);if('suggestion'!=_0x33cb4d||'deletion'!=_0x14fa43||_0x327d79['oldRange'])continue;if(!_0x8c1ae5['hasSuggestion'](_0x195f02))continue;const _0x3edd93=_0x8c1ae5['getSuggestion'](_0x195f02)['getRanges'](),_0xb90c24=_0x146494['plugins']['get']('Users')['me'];for(const _0x103036 of _0x8c1ae5['getSuggestions']())if(_0x103036['isInContent']&&_0x103036['author']==_0xb90c24&&'formatBlock'==_0x103036['type']&&'tablePasteCell'==_0x103036['subType']&&_0x103036['getRanges']()['every'](_0x58ec1c=>_0x3edd93['some'](_0xc3793c=>_0xc3793c['containsRange'](_0x58ec1c,!0x0)))){for(const _0x311a79 of _0x103036['getAllAdjacentSuggestions']())_0x311a79['isInContent']&&(_0x311a79['discard'](),_0x5cb6cd=!0x0);}}return _0x5cb6cd;}),_0x146494['model']['document']['registerPostFixer'](_0x46ffc2=>{const _0x3416d9=_0x146494['commands']['get']('redo');if(!_0x3416d9||!_0x3416d9['_createdBatches']['has'](_0x46ffc2['batch']))return!0x1;let _0x223fa5=!0x1;const _0x203d35=_0x146494['plugins']['get']('Users')['me'],_0x2ab829=_0x146494['model']['document']['differ']['getChanges'](),_0x4c4964=Array['from'](_0x146494['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x49fc5e,data:_0x4a8428})=>{const {group:_0x33491f,subType:_0x95a4e6,authorId:_0x575998}=et(_0x49fc5e);return'suggestion'==_0x33491f&&'tablePaste'==_0x95a4e6&&_0x575998==_0x203d35['id']&&!_0x4a8428['oldRange'];});for(const _0x1b66a2 of _0x2ab829){if('insert'!=_0x1b66a2['type']||'tableCellSuggestion'!=_0x1b66a2['name']||0x1!=_0x1b66a2['length'])continue;const _0x53d0d2=_0x46ffc2['createRange'](_0x1b66a2['position'],_0x1b66a2['position']['getShiftedBy'](0x1));if(!_0x4c4964['find'](({data:_0x532227})=>_0x532227['newRange']['isEqual'](_0x53d0d2))){for(const {name:_0x2a8bc9,data:_0x58e688}of _0x4c4964)if(_0x53d0d2['containsRange'](_0x58e688['newRange'])){_0x46ffc2['updateMarker'](_0x2a8bc9,{'range':_0x53d0d2}),_0x223fa5=!0x0;break;}}}return _0x223fa5;}),_0x146494['model']['document']['registerPostFixer'](_0x4dea9b=>{let _0x19ff6c=!0x1;const _0x58d187=_0x146494['plugins']['get']('Users')['me'],_0x5c1db3=_0x8c1ae5['getSuggestions']()['filter'](_0x5ea484=>_0x5ea484['isInContent']&&_0x5ea484['author']==_0x58d187),_0x2a59d7=new Set(),_0x53dc6e=new Set();for(const _0x598bc0 of _0x5c1db3)if('tablePaste'==_0x598bc0['subType'])for(const _0x8ef7f8 of _0x598bc0['getMarkers']()){const _0x281fdc=_0x8ef7f8['getRange']()['getContainedElement']();if(_0x281fdc){if(_0x281fdc['is']('element','tableCellSuggestion')&&Ke(_0x281fdc)){_0x598bc0['removeMarker'](_0x8ef7f8['name']),_0x2a59d7['add'](_0x281fdc),_0x19ff6c=!0x0;const _0x13456b=_0x281fdc['nextSibling'],_0x52ef7b=_0x281fdc['previousSibling'],_0x5207f3=_0x13456b&&_0x13456b['is']('element','tableCellSuggestion'),_0x2aa547=_0x52ef7b&&_0x52ef7b['is']('element','tableCellSuggestion');_0x5207f3&&!_0x2a59d7['has'](_0x13456b)&&_0x53dc6e['add'](_0x13456b),_0x2aa547&&!_0x2a59d7['has'](_0x52ef7b)&&_0x53dc6e['add'](_0x52ef7b);}else _0x281fdc['is']('element','paragraph')&&_0x281fdc['isEmpty']&&(_0x598bc0['removeMarker'](_0x8ef7f8['name']),_0x19ff6c=!0x0);}}else{if('tablePasteCell'==_0x598bc0['subType']){if(!_0x598bc0['attributes']||!_0x598bc0['attributes']['tablePasteChainId'])continue;const _0x5ca223=_0x598bc0['attributes']['markerAttributes'];if(_0x5ca223&&Object['keys'](_0x5ca223)['length'])continue;const _0x45bfde=_0x598bc0['attributes']['tablePasteChainId'];let _0xeabf01=!0x0,_0x232b4a=!0x0;for(const _0x23ff7c of _0x5c1db3)if(_0x23ff7c['subType']&&_0x23ff7c['subType']['startsWith']('tablePaste')){if(!_0x23ff7c['attributes']['tablePasteChainId']){_0x232b4a=!0x1;break;}if(_0x23ff7c['id']!=_0x598bc0['id']&&_0x23ff7c['attributes']['tablePasteChainId']==_0x45bfde){_0xeabf01=!0x1;break;}}_0x232b4a&&_0xeabf01&&(_0x598bc0['removeMarkers'](),_0x19ff6c=!0x0);}}for(const _0x19c355 of _0x2a59d7)_0x4dea9b['remove'](_0x19c355);for(const _0x1a15a7 of _0x53dc6e)_0x4dea9b['unwrap'](_0x1a15a7);return _0x19ff6c;}),_0x146494['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x46c8a1=>_0x5c2a06(_0x46c8a1),'converterPriority':'high'}),_0x146494['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x71cc16,_0x5ac07a)=>_0x5ac07a['options']['showSuggestionHighlights']?_0x5c2a06(_0x71cc16,!0x1):null,'converterPriority':'high'});const _0x46507c=_0x146494['editing']['view'];this['listenTo'](_0x46507c['document'],'clipboardOutput',(_0xcdf02c,_0x2ea2bf)=>{const _0x1c2e74=[];for(const _0x382fe1 of _0x46507c['createRangeIn'](_0x2ea2bf['content'])['getItems']())_0x382fe1['is']('element','suggestion-td')&&_0x1c2e74['push'](_0x382fe1);_0x46507c['change'](_0x2ef2fb=>{for(const _0x4bf6ff of _0x1c2e74)_0x2ef2fb['move'](_0x2ef2fb['createRangeIn'](_0x4bf6ff),_0x2ef2fb['createPositionBefore'](_0x4bf6ff)),_0x2ef2fb['remove'](_0x4bf6ff);});});}};function Ke(_0x2cc34d){if(_0x2cc34d['isEmpty'])return!0x0;const _0x32fad2=_0x2cc34d['getChild'](0x0);return _0x32fad2['is']('element','paragraph')&&_0x32fad2['isEmpty'];}function Xe(_0x260bcf,_0x56aaa5={},_0x32d1de){for(const {isAnchor:_0x2882d4,cellHeight:_0x8c1e17,cellWidth:_0x360fc8}of _0x32d1de['createTableWalker'](_0x260bcf,{'includeAllSlots':!0x0,..._0x56aaa5}))if(!_0x2882d4||0x1!=_0x8c1e17||0x1!=_0x360fc8)return!0x1;return!0x0;}var qe=class extends _0x207f51{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xeb5c3=this['editor']['plugins']['get']('TrackChangesEditing');_0xeb5c3['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0xeb5c3['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0xeb5c3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xeb5c3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x4e3bb3=_0xeb5c3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0xeb5c3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x2be241,_0x3b0897)=>{_0x4e3bb3(_0x2be241,_0x3b0897),this['_restoreCellWidths'](_0x2be241[0x0]['start']['nodeAfter'],_0x3b0897['commandParams'][0x0]['cellWidths']);}),_0xeb5c3['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x26d1cc,_0x3295b7){const _0x2525eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47b683=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x468e49=_0x3295b7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5d4e01=_0x47b683['getColumnGroupElement'](_0x468e49);let _0x334600=_0x5d4e01?_0x47b683['getTableColumnsWidths'](_0x5d4e01):null,_0x13d976=_0x468e49['getAttribute']('tableWidth')||null;const _0x5c6d86=_0x3295b7['tableWidth']||_0x13d976,_0x49d03b=_0x3295b7['columnWidths']||_0x334600;let _0x518159=this['_getCellWidths'](_0x468e49);const _0x1c9ab5=this['_foldResizeTableSuggestion'](_0x468e49);_0x1c9ab5&&(_0x13d976=_0x1c9ab5['tableWidth'],_0x334600=_0x1c9ab5['columnWidths'],_0x518159=_0x1c9ab5['cellWidths']||_0x518159),_0x26d1cc({'table':_0x468e49,'tableWidth':_0x5c6d86,'columnWidths':_0x49d03b}),_0x2525eb['markBlockFormat'](_0x468e49,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x13d976,'columnWidths':_0x334600,'cellWidths':_0x518159}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x46743e,_0x549313={}){if(void 0x0===_0x549313['value']||''===_0x549313['value'])return void _0x46743e(_0x549313);const _0x415fc4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a6b8a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x55a863=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x549313['batch']||(_0x549313['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x549313['batch'],()=>{const _0x87ff52=_0x3a6b8a['getColumnGroupElement'](_0x55a863);let _0x588f9f=_0x87ff52?_0x3a6b8a['getTableColumnsWidths'](_0x87ff52):null,_0x1b1a1a=_0x55a863['getAttribute']('tableWidth')||null,_0x4efa68=this['_getCellWidths'](_0x55a863);const _0x5ba762=this['_foldResizeTableSuggestion'](_0x55a863,!0x0);_0x5ba762&&(_0x1b1a1a=_0x5ba762['tableWidth'],_0x588f9f=_0x5ba762['columnWidths'],_0x4efa68=_0x5ba762['cellWidths']||_0x4efa68),_0x46743e(_0x549313),_0x415fc4['markBlockFormat'](_0x55a863,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1b1a1a,'columnWidths':_0x588f9f,'cellWidths':_0x4efa68}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x5ccf99,_0x8a867e=!0x1){const _0x4ef80f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x113e14=this['editor']['plugins']['get']('Users')['me'];for(const _0x520a9e of _0x4ef80f['getSuggestions']({'skipNotAttached':!0x0})){const _0x253644=_0x520a9e['getContainedElement']();if('resizeTable'===_0x520a9e['subType']&&_0x253644===_0x5ccf99){_0x520a9e['author']!==_0x113e14&&(_0x8a867e?_0x520a9e['removeMarkers']():_0x520a9e['discard']());const _0x405b13=_0x520a9e['data']['commandParams'];return{'tableWidth':_0x405b13[0x0]['tableWidth'],'columnWidths':_0x405b13[0x0]['columnWidths'],'cellWidths':_0x405b13[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x48546d){const _0x18afd8=[];for(const _0x4f41e2 of _0x48546d['getChildren']())if(_0x4f41e2['is']('element','tableRow')){for(const _0x1b8ef9 of _0x4f41e2['getChildren']())_0x18afd8['push'](_0x1b8ef9['getAttribute']('tableCellWidth')||null);}return _0x18afd8;}_restoreCellWidths(_0x5d5722,_0x23776f){_0x23776f&&this['editor']['model']['change'](_0x12b661=>{let _0x32d12e=0x0;for(const _0xe46ee5 of _0x5d5722['getChildren']())if(_0xe46ee5['is']('element','tableRow'))for(const _0x5eca8b of _0xe46ee5['getChildren']()){const _0x5a5c90=_0x23776f[_0x32d12e++];_0x5a5c90&&_0x12b661['setAttribute']('tableCellWidth',_0x5a5c90,_0x5eca8b);}});}handleSuggestionDescription(_0x4396c8){if('formatBlock'!=_0x4396c8['type']&&'formatInline'!=_0x4396c8['type'])return;const {data:_0x4345af}=_0x4396c8;return _0x4345af&&'resizeTable'===_0x4345af['formatGroupId']?{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Ye=class extends _0x207f51{afterInit(){const _0x3bdad6=this['editor'];_0x3bdad6['plugins']['has']('Template')&&_0x3bdad6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Qe=class extends _0x207f51{afterInit(){const _0x49051d=this['editor'];if(!_0x49051d['commands']['get']('insertTableOfContents'))return;_0x49051d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x269c50=_0x49051d['plugins']['get']('TrackChangesEditing'),_0x55abcb=_0x49051d['locale'];_0x269c50['descriptionFactory']['registerElementLabel']('tableOfContents',_0x33492e=>Ot(_0x55abcb,'ELEMENT_TABLE_OF_CONTENTS',_0x33492e));}},Ze=class extends _0x207f51{afterInit(){const _0x2b79ee=this['editor'];_0x2b79ee['plugins']['has']('Title')&&(_0x2b79ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Ot(_0x2b79ee['locale'],'ELEMENT_TITLE')),_0x2b79ee['model']['document']['registerPostFixer'](_0x5ca984=>{let _0x3b1064=!0x1;const _0x12aecf=Array['from'](_0x2b79ee['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4ef9c0,data:_0x371a29}of _0x12aecf){const {group:_0x204dbf}=et(_0x4ef9c0);if('suggestion'!==_0x204dbf||!_0x371a29['newRange'])continue;const _0x4ce461=_0x371a29['newRange'],_0x5257eb=_0x4ce461['end']['nodeBefore'];if(!_0x5257eb||!_0x5257eb['is']('element','title-content'))continue;if(!_0x4ce461['start']['isTouching'](_0x4ce461['end']))continue;const _0x460e2b=_0x2b79ee['model']['schema']['getNearestSelectionRange'](_0x4ce461['end'],'forward');if(_0x460e2b&&_0x460e2b['isCollapsed']){const _0x4abb51=_0x5ca984['createRange'](_0x4ce461['start'],_0x460e2b['start']);_0x4abb51['isEqual'](_0x4ce461)||(_0x5ca984['updateMarker'](_0x4ef9c0,{'range':_0x4abb51}),_0x3b1064=!0x0);}_0x3b1064||(_0x5ca984['removeMarker'](_0x4ef9c0),_0x3b1064=!0x0);}return _0x3b1064;}));}},Je=class extends _0x207f51{afterInit(){const _0x2bf1c0=this['editor'],_0x3cafdf=_0x2bf1c0['plugins']['get']('TrackChangesEditing');_0x2bf1c0['plugins']['has']('Uploadcare')&&(_0x3cafdf['enableCommand']('uploadcare'),_0x2bf1c0['plugins']['has']('UploadcareImageEdit')&&(_0x3cafdf['enableCommand']('uploadcareImageEdit'),_0x3cafdf['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3cafdf['descriptionFactory']['registerDescriptionCallback'](_0x17ea32=>{if('attribute'!=_0x17ea32['type'])return;const {data:_0x5a4ff0}=_0x17ea32;return _0x5a4ff0&&'uploadcareImageId'==_0x5a4ff0['key']?{'type':'format','content':''}:void 0x0;})));}},tn=class extends _0x207f51{afterInit(){const _0x5d4c31=this['editor'],_0x12c057=_0x5d4c31['plugins']['get']('TrackChangesEditing');_0x5d4c31['plugins']['has']('UndoEditing')&&(_0x12c057['enableCommand']('undo'),_0x12c057['enableCommand']('redo'));}},en=class extends _0x207f51{static get requires(){return[Pe];}afterInit(){const _0x551323=this['editor'];_0x551323['plugins']['has']('TableCaptionEditing')&&_0x551323['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},nn=class extends _0x207f51{tableProperties;tableCellProperties;constructor(_0x36a5b8){super(_0x36a5b8),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 _0x29a29a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2019f6 of this['tableProperties'])_0x29a29a['enableCommand'](_0x2019f6,(_0x3080a4,_0x4776fb)=>{const _0x3c4106=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2019f6,[_0x3c4106],this['tableProperties'],'tableProperties',_0x3080a4,_0x4776fb);});_0x29a29a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x29a29a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x29a29a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x18fed8,_0x175f48)=>this['handleDiscardAction'](this['tableProperties'],_0x18fed8,_0x175f48)),_0x29a29a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5c908f of this['tableCellProperties'])this['editor']['commands']['get'](_0x5c908f)&&_0x29a29a['enableCommand'](_0x5c908f,(_0x6fe466,_0x31de02)=>{const _0x193cbf=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5c908f,_0x193cbf,this['tableCellProperties'],'tableCellProperties',_0x6fe466,_0x31de02);});_0x29a29a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x29a29a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x29a29a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1ffe98,_0x370136)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1ffe98,_0x370136)),_0x29a29a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x29a29a['descriptionFactory']['registerAttributeLabel']('tableCellType',Ot(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x29a29a['descriptionFactory']['registerDescriptionCallback'](_0x5a686b=>this['handleSuggestionDescription'](_0x5a686b)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x5d9147,_0x25698a,_0x4e807a,_0x582216,_0x598781,_0x45384d){const _0x8886a2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x45384d['batch'],()=>{for(const _0x3c074e of _0x25698a)if(this['_getSuggestion'](_0x3c074e,_0x582216))_0x598781(_0x45384d);else{const _0x1c20aa={};for(const _0x323c17 of _0x4e807a){const _0x3fae51=_0x3c074e['getAttribute'](_0x323c17);void 0x0!==_0x3fae51&&(_0x1c20aa[_0x323c17]=_0x3fae51);}const _0x5227a1=this['_getResizedColumnWidths'](_0x3c074e);_0x5227a1&&(_0x1c20aa['columnWidths']=_0x5227a1),_0x598781(_0x45384d),_0x8886a2['markBlockFormat'](_0x3c074e,{'commandParams':[_0x1c20aa]},[],_0x582216);}});}handleDiscardAction(_0x38f1ab,_0x12cfc3,_0xce6a30){const _0x5d87a7=_0x12cfc3[0x0]['start']['nodeAfter'],_0x4d56ed=_0xce6a30['commandParams'][0x0];this['editor']['model']['change'](_0x2cfd2e=>{for(const _0x2407e2 of _0x38f1ab)void 0x0!==_0x4d56ed[_0x2407e2]?_0x2cfd2e['setAttribute'](_0x2407e2,_0x4d56ed[_0x2407e2],_0x5d87a7):_0x2cfd2e['removeAttribute'](_0x2407e2,_0x5d87a7);if(_0x4d56ed['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x9f0893=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4fb4e4=_0x9f0893['getColumnGroupElement'](_0x5d87a7);if(_0x4fb4e4){const _0x464e0c=_0x9f0893['getTableColumnsWidths'](_0x4fb4e4),_0x4c9364=_0x5d87a7['getAttribute']('tableWidth');if(('string'==typeof _0x4c9364&&_0x4c9364['trim']()['endsWith']('px'))!==_0x464e0c['some'](_0x444b33=>'string'==typeof _0x444b33&&_0x444b33['endsWith']('px'))){const _0x280fb6=_0x9f0893['getTableColumnElements'](_0x4fb4e4);_0x4d56ed['columnWidths']['forEach']((_0xad0688,_0x5ac1e1)=>{_0x280fb6[_0x5ac1e1]&&_0x2cfd2e['setAttribute']('columnWidth',_0xad0688,_0x280fb6[_0x5ac1e1]);});}}}});}_getResizedColumnWidths(_0x3a3c20){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x3a3c20['is']('element','table'))return;const _0x513548=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xde431d=_0x513548['getColumnGroupElement'](_0x3a3c20);return _0xde431d?_0x513548['getTableColumnsWidths'](_0xde431d):void 0x0;}handleSuggestionDescription(_0x5e5813){if(_0x5e5813['data'])switch(_0x5e5813['subType']){case'tableProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x99ee42,_0x196364){const _0x2634f6=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2b92a9 of _0x2634f6['getSuggestions']({'skipNotAttached':!0x0})){const _0x494ce4=_0x2b92a9['getContainedElement']();if(_0x2b92a9['subType']===_0x196364&&_0x494ce4===_0x99ee42)return _0x2b92a9;}return null;}_registerTablePropertiesAttributes(){const _0x5cffa4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a8a95=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x40ecdd of _0x2a8a95){const _0x2a9d97=_0x40ecdd['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x5cffa4['descriptionFactory']['registerAttributeLabel'](_0x40ecdd,Ot(this['editor']['locale'],'FORMAT_'+_0x2a9d97));}}},sn=class extends _0x207f51{afterInit(){const _0x4729da=this['editor'];if(!_0x4729da['plugins']['has']('LineHeight'))return;const _0x1e4191=_0x4729da['plugins']['get']('TrackChangesEditing'),_0x371517=_0x4729da['locale'];_0x1e4191['enableDefaultAttributesIntegration']('lineHeight'),_0x1e4191['descriptionFactory']['registerAttributeLabel']('lineHeight',Ot(_0x371517,'FORMAT_LINE_HEIGHT'));}};const rn='$elementName';var on=class extends _0x207f51{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0xd9a087,_0x18f3c7,_0x4bea57,_0x484ea,_0x18a9ab,Ft,Bt,vt,Dt,Pt,xt,Ht,Wt,$t,Vt,jt,Kt,Xt,te,ee,ne,se,re,oe,ce,le,ue,de,he,ge,me,fe,Ee,Te,_e,Le,be,Ne,pe,qt,sn,Qt,Ce,ke,Re,ye,Se,Me,Oe,we,Fe,Be,De,Ue,Pe,Ge,He,$e,We,en,ze,qe,Qe,nn,Ye,Ze,Je,tn];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb541e3){super(_0xb541e3),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xca9ed2,_0x4c0ed1,_0x371fda,_0x5da078)=>{this['_model']['change'](()=>{for(const _0x11c829 of[..._0x5da078,..._0x371fda])this['_model']['markers']['has'](_0x11c829)&&_0xb541e3['editing']['reconvertMarker'](_0x11c829);});}),this['descriptionFactory']=new wt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new an(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xb541e3['plugins']['get'](_0xd9a087),this['_suggestionsConversion']=_0xb541e3['plugins']['get'](_0x18f3c7),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0xb541e3['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xb541e3['config']['get']('trackChanges.trackFormatChanges'),_0xb541e3['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xb541e3['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new _t(_0xb541e3,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x304a58=this['editor'];_0x304a58['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x397559,{writer:_0x1f6e2e})=>{let _0x3e2ca4='suggestion:'+_0x397559['getAttribute']('suggestion-type')+':'+_0x397559['getAttribute']('id');return _0x397559['getAttribute']('marker-count')&&(_0x3e2ca4+=':'+_0x397559['getAttribute']('marker-count')),_0x1f6e2e['createElement']('$marker',{'data-name':_0x3e2ca4});}}),_0x304a58['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x304a58['model']['document']['registerPostFixer'](_0xaba8ed=>{let _0x2dbfd3=!0x1;const _0x2d1cab=Array['from'](_0x304a58['model']['document']['differ']['getChangedMarkers']()),_0x3327a2=new Set();for(const {name:_0x388e1d,data:_0x324056}of _0x2d1cab){const {group:_0x516726,type:_0x47098c,subType:_0x8b083a,id:_0x510b0c}=et(_0x388e1d);if('suggestion'!==_0x516726)continue;const _0x156bc4=_0x8b083a?'suggestion:'+_0x47098c+':'+_0x8b083a+':'+_0x510b0c:'suggestion:'+_0x47098c+':'+_0x510b0c,_0x15cf4d=_0x304a58['model']['markers']['getMarkersGroup'](_0x156bc4),_0x161d37=_0x304a58['model']['markers']['get'](_0x388e1d),_0x58e800=this['_suggestions']['get'](_0x510b0c);if(null!=_0x324056['newRange']){'formatInline'==_0x47098c&&(_0x2dbfd3=_0x2dbfd3||un(_0x324056['newRange'],_0x388e1d,_0xaba8ed,_0x304a58['model']['schema']));const _0x41f264='attribute'==_0x47098c&&this['_suggestionsConversion']['isBlockAttribute'](In(_0x8b083a)),_0x556c26='attribute'==_0x47098c&&this['_suggestionsConversion']['isInlineAttribute'](In(_0x8b083a));if(_0x324056['newRange']['isCollapsed']||'$graveyard'==_0x324056['newRange']['root']['rootName']||'formatBlock'==_0x47098c&&!hn(_0x324056['newRange'])||_0x41f264&&!hn(_0x324056['newRange'])||_0x556c26&&gn(_0x324056['newRange'])||'deletion'==_0x47098c&&gn(_0x324056['newRange'])||_0x161d37&&fn(_0x161d37,_0x15cf4d))_0xaba8ed['removeMarker'](_0x388e1d),_0x2dbfd3=!0x0;else{if(!_0x58e800||!_0x58e800['isInContent'])continue;if(_0x324056['newRange']&&_0x324056['oldRange']&&_0x324056['newRange']['isEqual'](_0x324056['oldRange']))continue;_0x3327a2['add'](_0x58e800);}}}return _0x3327a2['size']>0x0&&(_0x2dbfd3=!!this['_joinWithAdjacentSuggestions'](_0x3327a2)||_0x2dbfd3),_0x2dbfd3;}),_0x304a58['model']['document']['registerPostFixer'](_0x2212db=>{let _0x41d3dc=!0x1;for(const _0x4bb826 of _0x304a58['model']['document']['differ']['getChanges']())if('insert'==_0x4bb826['type'])for(const _0x1df88b of this['_suggestions']['values']()){if(_0x1df88b['isMultiRange']||!_0x1df88b['isInContent'])continue;const _0x5c76dd='formatBlock'==_0x1df88b['type'],_0x2a8f37=this['_getAttributeKey'](_0x1df88b),_0x525d28=_0x2a8f37&&this['_suggestionsConversion']['isBlockAttribute'](_0x2a8f37);if(!_0x5c76dd&&!_0x525d28)continue;const _0x443007=_0x1df88b['getFirstRange']();if(_0x443007['start']['parent']!=_0x443007['end']['parent']&&!_0x443007['end']['isAtEnd']){const _0x5c7122=_0x304a58['model']['createPositionAt'](_0x443007['start']['nodeAfter'],'end'),_0x1c46c8=_0x304a58['model']['createRange'](_0x443007['start'],_0x5c7122);_0x2212db['updateMarker'](_0x1df88b['getFirstMarker'](),{'range':_0x1c46c8}),_0x41d3dc=!0x0;}}return _0x41d3dc;}),_0x304a58['model']['document']['registerPostFixer'](_0x2edc55=>this['_processAttributeChanges'](_0x2edc55)),_0x304a58['model']['document']['registerPostFixer'](_0x44e9f5=>!_0x44e9f5['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x44e9f5)),_0x304a58['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x304a58['model']['document']['on']('change:data',(_0x2af226,_0x23dcc3)=>{if(!_0x23dcc3['isLocal']||_0x23dcc3['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x14eab4=_0x304a58['model']['document']['differ']['getChanges']();if(0x0==_0x14eab4['length'])return;const _0x296465=[],_0x3aff23=_0x14eab4['filter'](_0x50ec93=>'attribute'==_0x50ec93['type']),_0x1d99ab=_0x14eab4['filter'](_0x328d12=>'insert'==_0x328d12['type']&&'$text'!=_0x328d12['name']);for(const _0x54111b of _0x3aff23)this['_suggestionsConversion']['isRegisteredAttribute'](_0x54111b['attributeKey'])&&_0x296465['push']({'key':_0x54111b['attributeKey'],'newValue':_0x54111b['attributeNewValue'],'oldValue':_0x54111b['attributeOldValue'],'range':mn(_0x54111b['range'],_0x304a58['model'])});for(const _0xe322 of _0x1d99ab){if('rename'!=_0xe322['action']&&'refresh'!=_0xe322['action'])continue;const _0x55f3c9=En(_0xe322['position']['nodeAfter'],_0x304a58['model']),_0x4e0e5c=_0xe322['before'];'rename'==_0xe322['action']&&_0x296465['push']({'key':rn,'newValue':_0xe322['name'],'oldValue':_0x4e0e5c['name'],'range':_0x55f3c9});for(const [_0x2d2b06,_0x37d6f1]of _0x4e0e5c['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2d2b06))continue;const _0x277be4=_0xe322['attributes']['get'](_0x2d2b06);_0x37d6f1!==_0x277be4&&_0x296465['push']({'key':_0x2d2b06,'newValue':_0x277be4,'oldValue':_0x37d6f1,'range':_0x55f3c9});}for(const [_0x36af8b,_0x3c6fd9]of _0xe322['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x36af8b)&&(_0x4e0e5c['attributes']['has'](_0x36af8b)||_0x296465['push']({'key':_0x36af8b,'newValue':_0x3c6fd9,'oldValue':null,'range':_0x55f3c9}));}0x0!=_0x296465['length']&&_0x304a58['model']['enqueueChange'](_0x23dcc3,_0x3734ae=>{const _0x23cbf0=_0x33218c();for(const {range:_0x3d6e43,key:_0x5bc6d0,oldValue:_0x4980c8,newValue:_0x7bef01}of _0x296465)this['markAttributeChange'](_0x3d6e43,_0x5bc6d0,_0x4980c8,_0x7bef01,{'groupId':_0x23cbf0});this['_reduceExistingSuggestions'](_0x3734ae,_0x296465);});},{'priority':'lowest'}),_0x304a58['model']['markers']['on']('update:suggestion',(_0x540e11,_0x329600,_0x5669eb)=>{if(null==_0x5669eb){const {id:_0x29b06b}=et(_0x329600['name']),_0xf14306=this['_suggestions']['get'](_0x29b06b);_0xf14306&&_0xf14306['addMarkerName'](_0x329600['name']);}}),_0x304a58['model']['document']['on']('change:data',()=>{const _0x2806ec=Array['from'](_0x304a58['model']['document']['differ']['getChangedMarkers']())['filter'](_0x23d40c=>'suggestion'===et(_0x23d40c['name'])['group']);if(0x0===_0x2806ec['length'])return;_0x2806ec['sort']((_0x5b4048,_0x5cb503)=>{const _0xc83c8c=_0x5b4048['data']['oldRange'],_0x4de813=_0x5cb503['data']['oldRange'];return null===_0xc83c8c&&null===_0x4de813?0x0:null===_0xc83c8c&&null!==_0x4de813?-0x1:null!==_0xc83c8c&&null===_0x4de813?0x1:_0xc83c8c['start']['isBefore'](_0x4de813['start'])?-0x1:0x1;});const _0x393b2b=new Set(),_0x13b08d=new Set();for(const {name:_0x162d1c,data:_0x696090}of _0x2806ec){const {id:_0x56e763}=et(_0x162d1c);if(null===_0x696090['oldRange']){const _0x166712=this['_handleNewSuggestionMarker'](_0x162d1c);_0x13b08d['add'](_0x166712);}else{const _0x5ddb8a=this['_suggestions']['get'](_0x56e763);null!==_0x696090['newRange']||_0x5ddb8a['isInContent']?(_0x393b2b['add'](_0x5ddb8a['head']),_0x13b08d['add'](_0x5ddb8a)):this['_removeSuggestion'](_0x5ddb8a);}}_0x13b08d['size']>0x0&&this['_refreshSuggestionsChain'](_0x13b08d);for(const _0x16634f of _0x393b2b)this['fire']('suggestionChanged',_0x16634f);}),_0x304a58['model']['on']('applyOperation',(_0x5ae0af,_0x16e86f)=>{const _0x63146a=_0x16e86f[0x0];if(!this['_suggestions']['size'])return;if(!_0x63146a['isDocumentOperation'])return;if(_0x63146a['batch']['isUndo']||!_0x63146a['batch']['isLocal'])return;let _0x56d581,_0x1e1998;switch(_0x63146a['type']){case'insert':_0x56d581=_0x304a58['model']['createPositionAt'](_0x63146a['position']),_0x1e1998=_0x56d581['getShiftedBy'](_0x63146a['howMany']);break;case'split':_0x56d581=_0x304a58['model']['createPositionAt'](_0x63146a['splitPosition']),_0x1e1998=_0x304a58['model']['createPositionAt'](_0x63146a['moveTargetPosition']);break;case'move':_0x56d581=_0x304a58['model']['createPositionAt'](_0x63146a['targetPosition']),_0x1e1998=_0x56d581['getShiftedBy'](_0x63146a['howMany']);break;default:return;}const _0x19223f=_0x304a58['model']['createRange'](_0x56d581,_0x1e1998);_0x304a58['model']['change'](()=>{for(const {suggestion:_0x103246,meta:_0x20fc73}of this['_findSuggestions'](_0x19223f)){if(_0x103246['isMultiRange'])continue;if('formatInline'==_0x103246['type'])continue;const _0x411b57=this['_getAttributeKey'](_0x103246);if(_0x411b57&&this['_suggestionsConversion']['isBlockAttribute'](_0x411b57)&&'split'!=_0x63146a['type'])continue;const _0x3995e4=_0x103246['data']&&_0x103246['data']['multipleBlocks'];('formatBlock'!=_0x103246['type']||'split'==_0x63146a['type']&&!_0x3995e4)&&(_0x20fc73['containsRangeInObject']||'insertion'==_0x103246['type']&&_0x20fc73['isOwn']||_0x103246['getFirstRange']()['containsRange'](_0x19223f)&&this['_breakSuggestionMarker'](_0x103246,_0x56d581,_0x1e1998));}});},{'priority':'lowest'}),_0x304a58['model']['on']('deleteContent',(_0xfefa1,_0x36e6d8)=>{const _0x35f202=_0x36e6d8[0x0],_0x348bcd=_0x36e6d8[0x1];if(_0x348bcd&&_0x348bcd['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x35f202['isCollapsed'])return;const _0x568f39=_0x304a58['model']['schema'],{start:_0x339112,end:_0x48ab0e}=_0x35f202['getFirstRange'](),_0x4aa6d8=_0x339112['nodeAfter']&&_0x568f39['isLimit'](_0x339112['nodeAfter'])?null:_0x568f39['getNearestSelectionRange'](_0x339112,'forward'),_0x591570=_0x48ab0e['nodeBefore']&&_0x568f39['isLimit'](_0x48ab0e['nodeBefore'])?null:_0x568f39['getNearestSelectionRange'](_0x48ab0e,'backward'),_0x1403e4=_0x304a58['model']['createRange'](_0x4aa6d8?_0x4aa6d8['start']:_0x339112,_0x591570?_0x591570['end']:_0x48ab0e);_0x304a58['model']['change'](_0xb4e1c5=>{this['markDeletion'](_0x1403e4);const _0x3adda9=_0x304a58['model']['schema']['getNearestSelectionRange'](_0x1403e4['start']);_0x35f202['is']('documentSelection')?_0xb4e1c5['setSelection'](_0x3adda9):_0x35f202['setTo'](_0x3adda9);}),_0xfefa1['stop']();},{'priority':_0x93e675['normal']+0xa}),_0x304a58['model']['on']('insertContent',(_0x4d74ba,_0xb16235)=>{const _0x2511b8=_0xb16235[_0xb16235['length']-0x1];_0x2511b8&&_0x2511b8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x304a58['model']['change'](()=>{let _0x209949=_0x304a58['model']['insertContent'](_0xb16235[0x0],_0xb16235[0x1],_0xb16235[0x2],{'forceDefaultExecution':!0x0});if(!_0x209949)return;_0x4d74ba['return']=_0x209949['clone']();const _0x1c7f10=_0x209949['end']['nodeBefore'],_0xb86bf6=_0x304a58['model']['schema'];_0x1c7f10&&_0xb86bf6['isBlock'](_0x1c7f10)&&!_0xb86bf6['isObject'](_0x1c7f10)&&(_0x209949=_0x304a58['model']['createRange'](_0x209949['start'],_0x304a58['model']['createPositionAt'](_0x1c7f10,'end'))),this['markInsertion'](_0x209949);}),_0x4d74ba['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xbe160d=new pt(_0x304a58,this['_suggestions']);_0x304a58['commands']['add']('acceptSuggestion',_0xbe160d),this['enableCommand']('acceptSuggestion');const _0x261fb8=new Lt(_0x304a58,this['_suggestions']);_0x304a58['commands']['add']('discardSuggestion',_0x261fb8),this['enableCommand']('discardSuggestion'),_0x304a58['commands']['add']('acceptAllSuggestions',new yt(_0x304a58,_0xbe160d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x304a58['commands']['add']('discardAllSuggestions',new yt(_0x304a58,_0x261fb8,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x304a58['commands']['add']('acceptSelectedSuggestions',new Nt(_0x304a58,_0xbe160d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x304a58['commands']['add']('discardSelectedSuggestions',new Nt(_0x304a58,_0x261fb8,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x59dec4=_0x304a58['plugins']['get'](_0xd9a087);this['listenTo'](_0x59dec4,'addComment',(_0x30e7a2,{threadId:_0x3b9e3c})=>{const _0x43c5b0=this['_suggestions']['get'](_0x3b9e3c);_0x43c5b0&&_0x43c5b0['commentThread']&&0x1===_0x43c5b0['commentThread']['length']&&this['_updateSuggestionData'](_0x3b9e3c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x59dec4,'removeComment',(_0x1ba470,{threadId:_0x463511})=>{const _0x59dbcd=this['_suggestions']['get'](_0x463511);_0x59dbcd&&_0x59dbcd['commentThread']&&!_0x59dbcd['commentThread']['length']&&this['_updateSuggestionData'](_0x463511,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x47a384){const _0x352424='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x5c8ee1=0x79170,_0x18fa1a=window['Date']['now'](),_0x1d2803=_0x47a384['editor'],_0x11a60b=new window['Promise'](_0x4e7679=>{_0x1d2803['once']('ready',_0x4e7679);}),_0x2958e9={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x424b60=_0x1d2803['config']['get']('licenseKey');async function _0x554f5f(){let _0x45acc9,_0x410807=null,_0x10e466=null;try{return'GPL'==_0x424b60?'NotAllowed':(_0x45acc9=_0x2a1aaa(),_0x45acc9?(_0x45acc9['usageEndpoint']&&(_0x10e466=_0x49cf12(_0x45acc9['usageEndpoint'],_0x45acc9['jti'])),await _0x3e3fbd()?_0x31acf8()?_0x1e76d9()?'Expired':_0x3471de()?('evaluation'==_0x45acc9['licenseType']&&(_0x410807=_0x40eb85('EvaluationLimit')),await _0x3e5d12()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x1e76d9(){const _0x8d39a4=['evaluation','trial']['includes'](_0x45acc9['licenseType'])?_0x18fa1a/0x3e8:0xe10*_0x5c8ee1;return _0x45acc9['exp']<_0x8d39a4;}function _0x31acf8(){const _0x5e3f62=_0x45acc9['features'];if(!_0x5e3f62)return!0x1;if(_0x5e3f62['includes']('*'))return!0x0;if(_0x5e3f62['includes']('TC'))return!0x0;if(_0x5e3f62['includes']('RTC')){if(_0x11de25())return!0x0;if(_0x4120d7()||_0x1c64b1())return!0x0;}return!0x1;}function _0x3471de(){const _0x16d34c=_0x45acc9['licensedHosts'];if(!_0x16d34c||0x0==_0x16d34c['length'])return!0x0;const {hostname:_0xbf85cd}=new URL(window['location']['href']);if(_0x16d34c['includes'](_0xbf85cd))return!0x0;const _0x295fa1=_0xbf85cd['split']('.');return _0x16d34c['filter'](_0x539843=>_0x539843['includes']('*'))['map'](_0x2dbeff=>_0x2dbeff['split']('.'))['filter'](_0x2220c6=>_0x2220c6['length']<=_0x295fa1['length'])['map'](_0x4b8599=>Array(_0x295fa1['length']-_0x4b8599['length'])['fill']('*'===_0x4b8599[0x0]?'*':'')['concat'](_0x4b8599))['some'](_0x44c1af=>_0x295fa1['every']((_0x4c1883,_0x22bbc3)=>_0x44c1af[_0x22bbc3]===_0x4c1883||'*'===_0x44c1af[_0x22bbc3]));}function _0x3e5d12(){return _0x410807&&_0x10e466?new window['Promise']((_0x304e51,_0x1939b4)=>{_0x410807['then'](_0x304e51,_0x1939b4),_0x10e466['then'](_0x3c9455=>{'Valid'!=_0x3c9455&&_0x304e51(_0x3c9455);},_0x1939b4);}):_0x410807||_0x10e466||'Valid';}}function _0x49cf12(_0x8e01c8,_0x430f30){return new window['Promise'](_0x5eb46c=>{if(_0x227bfd())return _0x5eb46c('Valid');_0x1fc995(),_0x1d2803['decorate']('_sendUsageRequest');let _0x477197=!0x1;const _0x3d4f8a=_0x33218c();function _0x152159(_0x283fcf){return!!_0x283fcf&&('object'==typeof _0x283fcf||'function'==typeof _0x283fcf)&&'function'==typeof _0x283fcf['then']&&'function'==typeof _0x283fcf['catch'];}function _0x458f13(_0x7febf3){_0x2d0e4a(_0x7febf3)['then'](_0xbd13ed=>_0xbd13ed&&'ok'==_0xbd13ed['status']?_0x316d85(_0x12fa19(_0x3d4f8a+_0x430f30))!=_0xbd13ed['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x35e4ab=>(_0x380521(),_0x35e4ab),()=>{const _0x2c640d=_0x3cb193();return null==_0x2c640d?(_0x380521(),'Valid'):_0x18fa1a-_0x2c640d>0x240c8400?'UsageLimit':'Valid';})['then'](_0x5eb46c)['catch'](()=>{_0x5eb46c('UsageLimit');});const _0x157454=0x36ee80;function _0x380521(){const _0x210159='llct-'+_0x316d85(_0x12fa19(_0x8e01c8)),_0x561e2a=_0x1176c5(_0x316d85(window['Math']['ceil'](_0x18fa1a/_0x157454)));window['localStorage']['setItem'](_0x210159,_0x561e2a);}function _0x3cb193(){const _0x3fe3cc='llct-'+_0x316d85(_0x12fa19(_0x8e01c8)),_0x5a940c=window['localStorage']['getItem'](_0x3fe3cc);return _0x5a940c?window['parseInt'](_0x1176c5(_0x5a940c),0x10)*_0x157454:null;}function _0x2d0e4a(_0xae0ac8){return new window['Promise']((_0x5b6a8a,_0x3e505a)=>{_0xae0ac8['then'](_0x5b6a8a,_0x3e505a),window['setTimeout'](_0x3e505a,0x1d4c0);});}}_0x1d2803['on']('_sendUsageRequest',(_0x3753c2,_0x213901)=>{if(_0x213901[0x0]!=_0x8e01c8)return _0x5eb46c('UsageLimit');_0x213901[0x1]={..._0x213901[0x1],'requestId':_0x3d4f8a};},{'priority':'high'}),_0x1d2803['on']('_sendUsageRequest',_0x2e3b99=>{_0x152159(_0x2e3b99['return'])&&(_0x477197=!0x0,_0x458f13(_0x2e3b99['return']));},{'priority':'low'}),_0x11a60b['then'](()=>{_0x477197||_0x5eb46c('UsageLimit');});});function _0x227bfd(){return'auto'==_0x1d2803['editing']['view']['_overlayModeHint'];}function _0x1fc995(){_0x1d2803['editing']['view']['_overlayModeHint']='auto';}}function _0x40eb85(_0x583742){const _0x3ab144=[new window['Promise'](_0x3132ae=>setTimeout(_0x3132ae,0x93ecc)),_0x11a60b['then'](()=>new window['Promise'](_0xc10bba=>{let _0x2a8b58=0x0;_0x1d2803['model']['on']('applyOperation',(_0x402f69,_0x23f32f)=>{_0x23f32f[0x0]['isDocumentOperation']&&_0x2a8b58++,0x5e8==_0x2a8b58&&(_0xc10bba(),_0x402f69['off']());});}))];return window['Promise']['race'](_0x3ab144)['then'](()=>_0x583742);}async function _0x565e21(){await _0x11a60b,_0x1d2803['model']['change']=_0x5125e8,_0x1d2803['model']['enqueueChange']=_0x5125e8,_0x1d2803['enableReadOnlyMode']('model');}function _0x11de25(){return _0x2fb94c('WebSocketGateway')&&'connected'==_0x15df2f('WebSocketGateway')['state'];}function _0x4120d7(){return _0x2fb94c('RevisionViewerIntegration');}function _0x1c64b1(){return _0x2fb94c('TrackChangesDataGetter');}function _0x117b77(_0x3982a4){const _0x3b0a2f=_0x35f8bc();_0x1d2803[_0x3b0a2f]='trackChangesLicenseKey'+_0x3982a4,'Valid'!=_0x3982a4&&_0x565e21();}function _0x35f8bc(){const _0x15c309=window['String'](window['performance']['now']())['replace']('.','');let _0x3b6f30='R';for(let _0x9ce9e0=0x0;_0x9ce9e0<_0x15c309['length'];_0x9ce9e0+=0x2){let _0x768031=window['parseInt'](_0x15c309['substring'](_0x9ce9e0,_0x9ce9e0+0x2));_0x768031>=0x3e&&(_0x768031-=0x3e),_0x3b6f30+=_0x352424[_0x768031];}return _0x3b6f30;}function _0x2a1aaa(){const _0x40f1a2=_0x424b60['split']('.');if(0x3!=_0x40f1a2['length'])return null;return _0x14b9c7(_0x40f1a2[0x1]);function _0x14b9c7(_0x52e4d5){const _0x58ef4f=_0x1c5d3e(_0x52e4d5);return _0x58ef4f&&_0xb946fc()?_0x58ef4f:null;function _0xb946fc(){const _0x53bfa4=_0x58ef4f['jti'],_0x1a0b1c=window['parseInt'](_0x53bfa4['substring'](_0x53bfa4['length']-0x8),0x10),_0x4bc510={..._0x58ef4f,'jti':_0x53bfa4['substring'](0x0,_0x53bfa4['length']-0x8)};return delete _0x4bc510['vc'],_0x12fa19(_0x4bc510)==_0x1a0b1c;}}}async function _0x3e3fbd(){let _0x127aa9=!0x0;try{const [_0x5b2684,_0x1d5c91,_0x88baee]=_0x424b60['split']('.');return _0x2f48fe(_0x5b2684),await _0x9d4d62(_0x5b2684,_0x1d5c91,_0x88baee),_0x127aa9;}catch{return!0x1;}function _0x2f48fe(_0x205454){const _0x573492=_0x1c5d3e(_0x205454);_0x573492&&'ES256'==_0x573492['alg']||(_0x127aa9=!0x1);}async function _0x9d4d62(_0x35f0c9,_0x449e6c,_0x13e871){const _0x354795=window['Uint8Array']['from'](_0x5cd711(_0x13e871),_0x5e0ef3=>_0x5e0ef3['charCodeAt'](0x0)),_0x1cb1ef=new window['TextEncoder']()['encode'](_0x35f0c9+'.'+_0x449e6c),_0x2ca8da=window['crypto']['subtle'];if(!_0x2ca8da)return;const _0x4b3df7=await _0x2ca8da['importKey']('jwk',_0x2958e9,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x2ca8da['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x4b3df7,_0x354795,_0x1cb1ef)||(_0x127aa9=!0x1);}}function _0x1c5d3e(_0x5c914a){return _0x5c914a['startsWith']('ey')?JSON['parse'](_0x5cd711(_0x5c914a)):null;}function _0x5cd711(_0x284a28){return window['atob'](_0x284a28['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x12fa19(_0x22fe1b){let _0x4cff94=0x1505;function _0xd31c73(_0x4a7445){for(let _0x17c6e0=0x0;_0x17c6e0<_0x4a7445['length'];_0x17c6e0++){const _0x4798f7=_0x4a7445['charCodeAt'](_0x17c6e0);_0x4cff94=(_0x4cff94<<0x5)+_0x4cff94+_0x4798f7,_0x4cff94&=_0x4cff94;}}function _0xc1726b(_0x54d9af){Array['isArray'](_0x54d9af)?_0x54d9af['forEach'](_0xc1726b):_0x54d9af&&'object'==typeof _0x54d9af?Object['entries'](_0x54d9af)['sort']()['forEach'](([_0x23b50c,_0x55908a])=>{_0xd31c73(_0x23b50c),_0xc1726b(_0x55908a);}):_0xd31c73(window['String'](_0x54d9af));}return _0xc1726b(_0x22fe1b),_0x4cff94>>>0x0;}function _0x316d85(_0x2ada5b){return _0x2ada5b['toString'](0x10)['padStart'](0x8,'0');}function _0x1176c5(_0x59da5c){return _0x59da5c['split']('')['reverse']()['join']('');}function _0x2fb94c(_0x9a9f61){return _0x1d2803['plugins']['has'](_0x9a9f61);}function _0x15df2f(_0x5c0760){return _0x1d2803['plugins']['get'](_0x5c0760);}function _0x5125e8(){}_0x117b77(await _0x554f5f());}(this);}set adapter(_0x4923eb){if(this['_adapter'])throw new _0x4625d4('track-changes-adapter-already-set',this);this['_adapter']=_0x4923eb;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x360d37=!0x1,toJSON:_0x345b64=!0x1}={}){const _0x45b4b3=[];for(const _0x5cf881 of this['_suggestions']['values']())_0x360d37&&!_0x5cf881['isInContent']||_0x45b4b3['push'](_0x5cf881);return _0x345b64?_0x45b4b3['map'](_0x272fe5=>_0x272fe5['toJSON']()):_0x45b4b3;}getSuggestion(_0x4f037d){const _0x4ed7df=this['_suggestions']['get'](_0x4f037d);if(!_0x4ed7df)throw new _0x4625d4('track-changes-suggestion-not-found',this);return _0x4ed7df;}hasSuggestion(_0x1eba7f){return this['_suggestions']['has'](_0x1eba7f);}addSuggestionData(_0x21fb05){const {authorId:_0x2bb178,id:_0x154b50,originalSuggestionId:_0x50771a,attributes:_0x16cbdc}=_0x21fb05,[_0x233cf9,_0x202224]=_0x21fb05['type']['split'](':'),_0x5800c3=this['_suggestions']['get'](_0x154b50)||this['_createSuggestion'](_0x233cf9,_0x202224,_0x154b50,_0x2bb178,_0x16cbdc,_0x50771a);if(this['_addThreadToSuggestion'](_0x5800c3),this['_checkSuggestionCorrectness'](_0x5800c3,_0x233cf9,_0x202224||null,_0x2bb178),_0x5800c3['createdAt']=_0x21fb05['createdAt'],_0x5800c3['_isDataLoaded']=!0x0,_0x16cbdc&&_0x16cbdc['@external']){const _0x228b20=_0x16cbdc['@external'],_0x39781c=this['_getExternalAuthor'](_0x228b20['authorName']);_0x5800c3['authoredAt']=_0x228b20['createdAt'],_0x5800c3['author']=_0x39781c;}else _0x5800c3['authoredAt']=_0x21fb05['createdAt'];switch(_0x21fb05['data']&&(_0x5800c3['data']=_0x21fb05['data']),_0x21fb05['attributes']&&(_0x5800c3['attributes']=_0x21fb05['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5800c3['_saved']=!0x0),this['_suggestionState']['get'](_0x5800c3)){case'notReady':this['_suggestionState']['set'](_0x5800c3,'dataReady');break;case'markerReady':_0x5800c3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5800c3])),this['_refreshSuggestionsChain'](new Set([_0x5800c3])),this['_suggestionState']['set'](_0x5800c3,'ready'),this['fire']('suggestionLoaded',_0x5800c3)):this['_suggestionState']['set'](_0x5800c3,'removed');}return _0x5800c3;}acceptSuggestion(_0x21b517){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x23bb9b of _0x21b517['getAllAdjacentSuggestions']())_0x23bb9b['accept']();});});}discardSuggestion(_0x40cee3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2fb46d of _0x40cee3['getAllAdjacentSuggestions']())_0x2fb46d['discard']();});});}['enableCommand'](_0x38941c,_0x3674d8){const _0x5e6716=this['editor']['commands']['get'](_0x38941c);if(!_0x5e6716)throw new _0x4625d4('track-changes-command-not-found',this,{'commandName':_0x38941c});if(this['_enabledCommands']['has'](_0x5e6716))throw new _0x4625d4('track-changes-enable-command-twice',this,{'commandName':_0x38941c});this['_enabledCommands']['add'](_0x5e6716),_0x3674d8&&_0x5e6716['on']('execute',(_0x4e6ee5,_0x5aaa1a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5aaa1a['length']>0x0&&_0x5aaa1a[_0x5aaa1a['length']-0x1]&&_0x5aaa1a[_0x5aaa1a['length']-0x1]['forceDefaultExecution']?_0x5aaa1a['pop']():(_0x4e6ee5['return']=_0x3674d8((..._0x37ff7c)=>_0x5e6716['execute'](..._0x37ff7c,{'forceDefaultExecution':!0x0}),..._0x5aaa1a),_0x4e6ee5['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x228072){let _0x3354c8,_0x5ba0d1;const _0x1cef74=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3354c8=_0x228072();}catch(_0x75a4bd){_0x5ba0d1=_0x75a4bd;}return _0x1cef74||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5ba0d1&&_0x4625d4['rethrowUnexpectedError'](_0x5ba0d1,this),_0x3354c8;}markInsertion(_0x2effcb,_0x1ec5b0=null,_0x5075a9={}){if(_0x2effcb['isCollapsed'])return null;const _0x21ac8b=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5075a9['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3657f1,meta:_0x1f7c86}of this['_findSuggestions'](_0x2effcb,'insertion'))if(_0x1f7c86['isOwn']){if(!_0x1f7c86['isNextTo']){if(_0x1f7c86['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!pn(_0x3657f1,_0x5075a9))continue;return _0x3657f1;}if(pn(_0x3657f1,_0x5075a9))return _0x3657f1;this['_breakSuggestionMarker'](_0x3657f1,_0x2effcb['start'],_0x2effcb['end']);break;}if(_0x1ec5b0==_0x3657f1['subType']&&pn(_0x3657f1,_0x5075a9)){const _0x47d687=_0x3657f1['getFirstRange']();return _0x47d687['start']['isEqual'](_0x2effcb['end'])?this['_setSuggestionRange'](_0x3657f1,this['_model']['createRange'](_0x2effcb['start'],_0x47d687['end'])):this['_setSuggestionRange'](_0x3657f1,this['_model']['createRange'](_0x47d687['start'],_0x2effcb['end'])),_0x3657f1;}}const _0x4727eb=_0x33218c(),_0x36e586=_0x21ac8b['id'],_0x4b4e95=_0x1ec5b0?'insertion:'+_0x1ec5b0:'insertion',_0x1e31af=this['_setSuggestionData']({'id':_0x4727eb,'type':_0x4b4e95,'createdAt':new Date(),'authorId':_0x36e586,'attributes':_0x5075a9});return this['_addSuggestionMarker'](_0x4b4e95,_0x4727eb,_0x36e586,_0x2effcb),_0x1e31af;}markMultiRangeInsertion(_0x28e9c6,_0x418902='multi',_0x15acf9={}){const _0x3f6f67=this['editor']['plugins']['get']('Users')['me'],_0x589279=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x418902,'join');this['_trackingSessionId']&&(_0x15acf9['trackingSessionId']=this['_trackingSessionId']);for(const _0x5e69ba of this['getSuggestions']())if(_0x5e69ba['author']['id']==_0x3f6f67['id']&&'insertion'==_0x5e69ba['type']&&_0x5e69ba['subType']==_0x418902&&pn(_0x5e69ba,_0x15acf9)&&(_0x589279(_0x5e69ba['getRanges'](),_0x28e9c6)||_0x589279(_0x28e9c6,_0x5e69ba['getRanges']()))){for(const _0x510fbd of _0x28e9c6)_0x5e69ba['addRange'](_0x510fbd);return _0x5e69ba;}for(const {suggestion:_0x3be6da,meta:_0x5084d}of this['_findSuggestions'](_0x28e9c6,'insertion')){if(!_0x5084d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5084d['containsRangeInObject'])continue;if(!pn(_0x3be6da,_0x15acf9))continue;let _0x2d38d=!0x0;for(const _0x4752ee of _0x3be6da['getRanges']())for(const _0x563bbd of _0x28e9c6)if(!_0x4752ee['containsRange'](_0x563bbd)){_0x2d38d=!0x1;break;}if(_0x2d38d)return _0x3be6da;}const _0x5e3fea=_0x33218c(),_0x2a6ccc=_0x3f6f67['id'],_0x2204c8='insertion:'+_0x418902,_0x3a2055=this['_setSuggestionData']({'id':_0x5e3fea,'type':_0x2204c8,'createdAt':new Date(),'authorId':_0x2a6ccc,'attributes':_0x15acf9});for(const _0x5b8cd7 of _0x28e9c6)this['_addSuggestionMarker'](_0x2204c8,_0x5e3fea,_0x2a6ccc,_0x5b8cd7,Mt['getMultiRangeId']());return _0x3a2055;}markInlineFormat(_0x19ba19,_0x3e8b8f,_0x5d98aa=null,_0x168fe3={}){if(_0x5d98aa=_0x5d98aa||dn(_0x3e8b8f),_0x19ba19['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x168fe3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x213fd7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5d98aa,'accept');return this['forceDefaultExecution'](()=>_0x213fd7([_0x19ba19],_0x3e8b8f,_0x168fe3)),null;}const _0x239c6d=this['editor']['plugins']['get']('Users')['me'],_0x434906=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x124d5d,meta:_0x34c6cb}of this['_findSuggestions'](_0x19ba19,'insertion'))_0x34c6cb['isOwn']&&!_0x34c6cb['isInsideObject']&&_0x434906['push'](..._0x124d5d['getRanges']());}const _0x515183=function(_0x3b973c,_0x1b4200){const _0x4dc3d6=[];for(const _0x43a38f of _0x1b4200){const _0x49fd3b=_0x3b973c['getIntersection'](_0x43a38f);_0x49fd3b&&_0x4dc3d6['push'](_0x49fd3b);}return _0x4dc3d6;}(_0x19ba19,_0x434906),_0x2267cb=function(_0x2c00e0,_0x3cf54e){const _0x20a3e6=[_0x2c00e0];for(const _0x2be5f3 of _0x3cf54e){let _0x8fb6ed=0x0;for(;_0x8fb6ed<_0x20a3e6['length'];){const _0x162b69=_0x20a3e6[_0x8fb6ed]['getDifference'](_0x2be5f3);_0x20a3e6['splice'](_0x8fb6ed,0x1,..._0x162b69),_0x8fb6ed+=_0x162b69['length'];}}return _0x20a3e6;}(_0x19ba19,_0x434906);_0x515183['length']&&this['_model']['change'](()=>{for(const _0x173095 of _0x515183){const _0x45cd48=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5d98aa,'accept');this['forceDefaultExecution'](()=>_0x45cd48([_0x173095],_0x3e8b8f,_0x168fe3));}});for(const _0x484da9 of _0x2267cb){let _0x24b9e4=null,_0x5efe8c=_0x484da9['start'],_0x4024f6=_0x484da9['end'];for(const {suggestion:_0x8b0ce0,meta:_0x4dac9e}of this['_findSuggestions'](_0x484da9,'formatInline')){if(!_0x4dac9e['isOwn'])continue;if(_0x8b0ce0['subType']!=_0x5d98aa)continue;if(!pn(_0x8b0ce0,_0x168fe3))continue;const _0x47033a=_0x8b0ce0['getFirstRange']();if(_0x47033a['containsRange'](_0x484da9,!0x0))return null;_0x5efe8c=_0x5efe8c['isBefore'](_0x47033a['start'])?_0x5efe8c:_0x47033a['start'],_0x4024f6=_0x4024f6['isAfter'](_0x47033a['end'])?_0x4024f6:_0x47033a['end'],_0x24b9e4?_0x47033a['start']['isBefore'](_0x24b9e4['getFirstRange']()['start'])?(_0x24b9e4['removeMarkers'](),_0x24b9e4=_0x8b0ce0):_0x8b0ce0['removeMarkers']():_0x24b9e4=_0x8b0ce0;}const _0x5e79c1=this['_model']['createRange'](_0x5efe8c,_0x4024f6);if(_0x24b9e4)this['_setSuggestionRange'](_0x24b9e4,_0x5e79c1);else{const _0x409e86=_0x33218c(),_0x1bbea1=_0x239c6d['id'];this['_setSuggestionData']({'id':_0x409e86,'type':'formatInline:'+_0x5d98aa,'data':_0x3e8b8f,'createdAt':new Date(),'authorId':_0x1bbea1,'attributes':_0x168fe3}),this['_addSuggestionMarker']('formatInline:'+_0x5d98aa,_0x409e86,_0x1bbea1,_0x5e79c1);}}return null;}markBlockFormat(_0x27a8e5,_0x41c2fa,_0x3617da=[],_0x5400d0=null,_0x3ce4de={}){_0x41c2fa['formatGroupId']||(_0x41c2fa['formatGroupId']=_0x41c2fa['commandName']),_0x41c2fa['multipleBlocks']=_0x27a8e5['is']('range'),_0x5400d0=_0x5400d0||dn(_0x41c2fa);const _0x1ca1bf=_0x3617da['map'](_0x5ebe83=>En(_0x5ebe83,this['_model'])),_0x2fa33c=_0x27a8e5['is']('range')?_0x27a8e5:En(_0x27a8e5,this['_model']);if(this['_trackingSessionId']&&(_0x3ce4de['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x19004c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5400d0,'accept');return this['forceDefaultExecution'](()=>_0x19004c([_0x2fa33c],_0x41c2fa,_0x3ce4de)),null;}_0x1ca1bf['push'](_0x2fa33c);let _0xee7d2c=!0x0;for(const _0x16474a of _0x1ca1bf)if(!this['_rangeIsInLocalUserInsertion'](_0x16474a)){_0xee7d2c=!0x1;break;}if(_0xee7d2c&&'always'!==this['_trackFormatChanges']){const _0x54cd82=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5400d0,'accept');return this['forceDefaultExecution'](()=>_0x54cd82([_0x2fa33c],_0x41c2fa,_0x3ce4de)),null;}let _0x239929=null,_0x310559=_0x2fa33c['start'],_0x29962d=_0x2fa33c['end'];for(const {suggestion:_0x5e6cd7,meta:_0x430b96}of this['_findSuggestions'](_0x2fa33c,'formatBlock')){if(!_0x430b96['isOwn'])continue;if(_0x430b96['isNextTo']||_0x430b96['containsRangeInObject']||_0x430b96['isInsideObject'])continue;if(_0x5e6cd7['data']['formatGroupId']!=_0x41c2fa['formatGroupId'])continue;if(!pn(_0x5e6cd7,_0x3ce4de))continue;const _0x24bab3=_0x5e6cd7['getFirstRange']();if(_0x5e6cd7['subType']==_0x5400d0){if(_0x24bab3['containsRange'](_0x2fa33c,!0x0))return null;_0x310559=_0x310559['isBefore'](_0x24bab3['start'])?_0x310559:_0x24bab3['start'],_0x29962d=_0x29962d['isAfter'](_0x24bab3['end'])?_0x29962d:_0x24bab3['end'],_0x239929?_0x24bab3['start']['isBefore'](_0x239929['getFirstRange']()['start'])?(_0x239929['removeMarkers'](),_0x239929=_0x5e6cd7):_0x5e6cd7['removeMarkers']():_0x239929=_0x5e6cd7;}else{const _0x40a2d3=_0x2fa33c['getIntersection'](_0x24bab3);this['_cutOutSuggestionMarker'](_0x5e6cd7,_0x40a2d3);}}const _0x2b2bf6=this['editor']['plugins']['get']('Users')['me'],_0x1af3eb=_0x33218c(),_0x434d00=_0x2b2bf6['id'];if(_0x239929)return this['_setSuggestionRange'](_0x239929,this['_model']['createRange'](_0x310559,_0x29962d)),_0x239929;{const _0x460136=this['_setSuggestionData']({'id':_0x1af3eb,'type':'formatBlock:'+_0x5400d0,'data':_0x41c2fa,'createdAt':new Date(),'authorId':_0x434d00,'attributes':_0x3ce4de});return this['_addSuggestionMarker']('formatBlock:'+_0x5400d0,_0x1af3eb,_0x434d00,this['_model']['createRange'](_0x310559,_0x29962d)),_0x460136;}}markMultiRangeBlockFormat(_0x5bfcd7,_0x2a9689,_0x4014bc=[],_0x37bc3b=null,_0xd60f77={}){_0x2a9689['formatGroupId']||(_0x2a9689['formatGroupId']=_0x2a9689['commandName']);const _0x106d8b=_0x5bfcd7[0x0];_0x2a9689['multipleBlocks']=_0x106d8b['is']('range'),_0x37bc3b=_0x37bc3b||dn(_0x2a9689);const _0x547efe=_0x4014bc['map'](_0x8b5b02=>En(_0x8b5b02,this['_model'])),_0x43dc4a=_0x106d8b['is']('range')?_0x5bfcd7:_0x5bfcd7['map'](_0x8b46c8=>En(_0x8b46c8,this['_model']));if(this['_trackingSessionId']&&(_0xd60f77['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5a4dba=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37bc3b,'accept');return this['forceDefaultExecution'](()=>_0x5a4dba(_0x43dc4a,_0x2a9689,_0xd60f77)),null;}_0x547efe['push'](..._0x43dc4a);let _0x5722fd=!0x0;for(const _0x3e47af of _0x547efe)if(!this['_rangeIsInLocalUserInsertion'](_0x3e47af)){_0x5722fd=!0x1;break;}if(_0x5722fd&&'always'!==this['_trackFormatChanges']){const _0x31a207=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37bc3b,'accept');return this['forceDefaultExecution'](()=>_0x31a207(_0x43dc4a,_0x2a9689,_0xd60f77)),null;}const _0x4110c6=this['editor']['plugins']['get']('Users')['me'];for(const _0x47ed0f of this['getSuggestions']()){const _0xc181e6=_0x47ed0f['data'];if(_0x47ed0f['author']['id']!=_0x4110c6['id'])continue;if('formatBlock'!=_0x47ed0f['type']||_0xc181e6['formatGroupId']!=_0x2a9689['formatGroupId'])continue;if(!pn(_0x47ed0f,_0xd60f77))continue;const _0x3bd4e4=_0x47ed0f['subType']==_0x37bc3b;for(let _0x14b080=0x0;_0x14b080<_0x43dc4a['length'];_0x14b080++){const _0x560e38=_0x43dc4a[_0x14b080];for(const _0x27246d of _0x47ed0f['getMarkers']()){const _0x630b25=_0x27246d['getRange']();if(_0x560e38['isEqual'](_0x630b25)){_0x3bd4e4?(_0x43dc4a['splice'](_0x14b080,0x1),_0x14b080--):_0x47ed0f['removeMarker'](_0x27246d['name']);break;}}}}if(0x0==_0x43dc4a['length'])return null;const _0x3acc0d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37bc3b,'join');for(const _0x3b208e of this['getSuggestions']()){const _0x5a5b8a=_0x3b208e['data'];if(_0x3b208e['author']['id']==_0x4110c6['id']&&('formatBlock'==_0x3b208e['type']&&_0x5a5b8a['formatGroupId']==_0x2a9689['formatGroupId']&&_0x3b208e['subType']==_0x37bc3b&&pn(_0x3b208e,_0xd60f77)&&(_0x3acc0d(_0x3b208e['getRanges'](),_0x43dc4a)||_0x3acc0d(_0x43dc4a,_0x3b208e['getRanges']())))){for(const _0x448b34 of _0x43dc4a)_0x3b208e['addRange'](_0x448b34);return _0x3b208e;}}const _0xfe465a=_0x33218c(),_0x1d3728=_0x4110c6['id'],_0x44938a='formatBlock:'+_0x37bc3b,_0x5103e5=this['_setSuggestionData']({'id':_0xfe465a,'type':_0x44938a,'data':_0x2a9689,'createdAt':new Date(),'authorId':_0x1d3728,'attributes':_0xd60f77});for(const _0x1d84ef of _0x43dc4a)this['_addSuggestionMarker'](_0x44938a,_0xfe465a,_0x1d3728,_0x1d84ef,Mt['getMultiRangeId']());return _0x5103e5;}markDeletion(_0x1463e3,_0x42b492=null,_0x85c31={}){if(_0x1463e3['isCollapsed'])return null;const _0x5bc38d=this['editor']['plugins']['get']('Users')['me'],_0x46b3ed=new ot(_0x1463e3['start'],_0x1463e3['end']);this['_trackingSessionId']&&(_0x85c31['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x49ffea,meta:_0x1ec1e5}of this['_findSuggestions'](_0x46b3ed,'insertion'))if(_0x1ec1e5['isOwn']&&!_0x1ec1e5['isNextTo']){if(_0x49ffea['isMultiRange']){const _0x33bad6=_0x49ffea['getRanges']()['filter'](_0x4acf27=>'$graveyard'!=_0x4acf27['root']['rootName']);if(_0x33bad6['every'](_0x535038=>_0x46b3ed['containsRange'](_0x535038,!0x0))&&_0x49ffea['discard'](),_0x33bad6['some'](_0x136f78=>_0x136f78['containsRange'](_0x46b3ed,!0x0))){const _0x1a3d39=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x42b492,'accept');return this['forceDefaultExecution'](()=>_0x1a3d39([_0x46b3ed],null,_0x85c31)),null;}}else{const _0x36b3fb=_0x46b3ed['getIntersection'](_0x49ffea['getFirstRange']());null!==_0x36b3fb&&_0x49ffea['_onDiscard']([_0x36b3fb],null,_0x85c31);}}if(_0x46b3ed['detach'](),_0x46b3ed['isCollapsed']||'$graveyard'==_0x46b3ed['root']['rootName'])return null;let _0x1809ab=null,_0x202bee=_0x46b3ed['start'],_0xce56ec=_0x46b3ed['end'];const _0x13b86f=this['_findSuggestions'](_0x46b3ed,'deletion');for(const {suggestion:_0x2faa40,meta:_0x423361}of _0x13b86f){const _0x27efc9=this['_model']['createRange'](_0x202bee,_0xce56ec);if(_0x423361['isOwn']&&(this['_mergeNestedSuggestions']||!_0x423361['containsRangeInObject']&&!_0x423361['isInsideObject'])){if(_0x2faa40['isMultiRange']){if(!pn(_0x2faa40,_0x85c31))continue;let _0x322b72=!0x0;for(const _0x479e5e of _0x2faa40['getRanges']()){if(_0x479e5e['containsRange'](_0x27efc9,!0x0))return _0x2faa40;_0x27efc9['containsRange'](_0x479e5e)||(_0x322b72=!0x1);}_0x322b72&&_0x2faa40['discard']();}else{const _0x249bce=_0x2faa40['getFirstRange']();if(_0x249bce['containsRange'](_0x27efc9,!0x0))return _0x2faa40;if(!pn(_0x2faa40,_0x85c31)){_0x27efc9['containsRange'](_0x249bce)?_0x2faa40['removeMarkers']():_0x249bce['containsPosition'](_0x202bee)?_0x202bee=_0x249bce['end']:_0x249bce['containsPosition'](_0xce56ec)&&(_0xce56ec=_0x249bce['start']);continue;}_0x202bee=_0x202bee['isBefore'](_0x249bce['start'])?_0x202bee:_0x249bce['start'],_0xce56ec=_0xce56ec['isAfter'](_0x249bce['end'])?_0xce56ec:_0x249bce['end'],_0x85c31=Object['assign']({},_0x2faa40['attributes']),_0x1809ab?_0x249bce['start']['isBefore'](_0x1809ab['getFirstRange']()['start'])?(_0x1809ab['removeMarkers'](),_0x1809ab=_0x2faa40):_0x2faa40['removeMarkers']():_0x1809ab=_0x2faa40;}}}if(_0x1809ab)return this['_setSuggestionRange'](_0x1809ab,this['_model']['createRange'](_0x202bee,_0xce56ec)),_0x1809ab;{const _0x766d1a=_0x33218c(),_0x318add=this['_model']['createRange'](_0x202bee,_0xce56ec),_0x9f3ed2=_0x5bc38d['id'],_0x1c031f=_0x42b492?'deletion:'+_0x42b492:'deletion',_0x1db25d=this['_setSuggestionData']({'id':_0x766d1a,'type':_0x1c031f,'createdAt':new Date(),'authorId':_0x9f3ed2,'attributes':_0x85c31});return this['_addSuggestionMarker'](_0x1c031f,_0x766d1a,_0x9f3ed2,_0x318add),_0x1db25d;}}markMultiRangeDeletion(_0x27ec04,_0xaed966='multi',_0xaf37bf={}){const _0x2d554c=this['editor']['plugins']['get']('Users')['me'],_0x39c7f9=_0x27ec04['map'](_0x35bd34=>new ot(_0x35bd34['start'],_0x35bd34['end'])),_0x279732=new Set();this['_trackingSessionId']&&(_0xaf37bf['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4d7544,meta:_0x57d928}of this['_findSuggestions'](_0x39c7f9,'insertion'))_0x57d928['isOwn']&&!_0x57d928['isNextTo']&&_0x279732['add'](_0x4d7544);for(const _0x132c66 of _0x279732)if(_0x132c66['isMultiRange']){const _0x577b94=_0x132c66['getRanges']();if(_0x132c66['attributes']&&_0x132c66['attributes']['skipNestingCheck']||_0x577b94['every'](_0x102b9c=>_0x39c7f9['some'](_0x5c0c2b=>_0x5c0c2b['containsRange'](_0x102b9c,!0x0)))&&_0x132c66['discard'](),_0x39c7f9['every'](_0x25c03f=>_0x577b94['some'](_0x554145=>_0x554145['containsRange'](_0x25c03f,!0x0)))){const _0x16751f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xaed966,'accept');return this['forceDefaultExecution'](()=>_0x16751f(_0x27ec04,null,_0xaf37bf)),null;}}else{const _0x485090=_0x132c66['getFirstRange']();if(_0x39c7f9['some'](_0x30ecba=>_0x30ecba['containsRange'](_0x485090,!0x0))&&_0x132c66['discard'](),_0x39c7f9['every'](_0x1e0353=>_0x485090['containsRange'](_0x1e0353,!0x0))){const _0x54b91f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xaed966,'accept');return this['forceDefaultExecution'](()=>_0x54b91f(_0x39c7f9,null,_0xaf37bf)),null;}}const _0x5f36bd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xaed966,'join');let _0x588a67=null;for(const _0x2d1065 of this['getSuggestions']())if(_0x2d1065['author']['id']==_0x2d554c['id']&&_0x2d1065['isInContent']&&'deletion'==_0x2d1065['type']&&_0x2d1065['subType']==_0xaed966&&pn(_0x2d1065,_0xaf37bf)&&(_0x5f36bd(_0x2d1065['getRanges'](),_0x39c7f9)||_0x5f36bd(_0x39c7f9,_0x2d1065['getRanges']()))){if(_0x588a67){if(_0x2d1065['commentThread']&&_0x2d1065['commentThread']['length'])continue;for(const _0x1a6744 of _0x2d1065['getRanges']())_0x588a67['isIntersectingWithRange'](_0x1a6744)||_0x588a67['addRange'](_0x1a6744);_0x2d1065['removeMarkers']();}else{_0x588a67=_0x2d1065;for(const _0x4d4b7c of _0x39c7f9)_0x2d1065['isIntersectingWithRange'](_0x4d4b7c)||_0x2d1065['addRange'](_0x4d4b7c);}}if(_0x588a67)return _0x588a67;_0x279732['clear']();for(const {suggestion:_0x3bc232,meta:_0x23db81}of this['_findSuggestions'](_0x39c7f9,'deletion'))_0x23db81['isOwn']&&(this['_mergeNestedSuggestions']||!_0x23db81['containsRangeInObject']&&!_0x23db81['isInsideObject'])&&pn(_0x3bc232,_0xaf37bf)&&_0x279732['add'](_0x3bc232);for(const _0x33ed67 of _0x279732){const _0x386402=_0x33ed67['getRanges']();if((!_0xaf37bf||!_0xaf37bf['skipNestingCheck'])&&_0x39c7f9['every'](_0x1c5307=>_0x386402['some'](_0x41a2a8=>_0x41a2a8['containsRange'](_0x1c5307,!0x0))))return _0x33ed67;_0x33ed67['attributes']&&_0x33ed67['attributes']['skipNestingCheck']||_0x386402['every'](_0x452abd=>_0x39c7f9['some'](_0x594d8f=>_0x594d8f['containsRange'](_0x452abd,!0x0)))&&_0x33ed67['discard']();}const _0x2defa2=_0x33218c(),_0x38412e=_0x2d554c['id'],_0x21d048='deletion:'+_0xaed966,_0x205f63=this['_setSuggestionData']({'id':_0x2defa2,'type':_0x21d048,'createdAt':new Date(),'authorId':_0x38412e,'attributes':_0xaf37bf});for(const _0x259a05 of _0x39c7f9)_0x259a05['detach'](),_0x259a05['isCollapsed']||'$graveyard'==_0x259a05['root']['rootName']||this['_addSuggestionMarker'](_0x21d048,_0x2defa2,_0x38412e,_0x259a05,Mt['getMultiRangeId']());return _0x205f63;}markAttributeChange(_0x4dd195,_0x2158f8,_0x197f35,_0x21837c,_0x1eb96d){if(_0x4dd195['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x441bd0=this['editor']['plugins']['get']('Users')['me']['id'],_0x373418=Array['from'](this['_suggestions']['values']())['filter'](_0x1ccef0=>'attribute'==_0x1ccef0['type']&&_0x1ccef0['data']['key']==_0x2158f8&&_0x1ccef0['isIntersectingWithRange'](_0x4dd195));if(this['_trackingSessionId']&&(_0x1eb96d['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0xe24659=this['_findSuggestions'](_0x4dd195,'insertion')['filter'](({meta:_0xa257b6})=>_0xa257b6['isOwn']&&!_0xa257b6['isInsideObject']&&!_0xa257b6['isNextTo'])['map'](({suggestion:_0xc99888})=>_0xc99888);_0x373418['unshift'](..._0xe24659);}const _0x2ceabd=new Map([[_0x4dd195,_0x197f35]]);for(const _0x3d40e2 of _0x373418){const _0x39c3f3='attribute'==_0x3d40e2['type']?_0x3d40e2['data']['oldValue']:void 0x0,_0xa2f73b=_0x3d40e2['getFirstRange'](),_0x457fa1=Array['from'](_0x2ceabd['keys']())['find'](_0x5eb05c=>_0x5eb05c['isIntersecting'](_0xa2f73b));if(!_0x457fa1)continue;const _0x3a0a2c=_0x457fa1['getDifference'](_0xa2f73b);this['_suggestionsConversion']['isBlockAttribute'](_0x2158f8)&&'insertion'==_0x3d40e2['type']&&0x0!=_0x3a0a2c['length']||(_0x2ceabd['delete'](_0x457fa1),_0x3a0a2c['forEach'](_0x4863ba=>{_0x2ceabd['set'](_0x4863ba,_0x197f35);}),'insertion'!=_0x3d40e2['type']&&_0x39c3f3!=_0x21837c&&_0x2ceabd['set'](_0x457fa1['getIntersection'](_0xa2f73b),_0x39c3f3));}const _0x116f5e=[];for(const [_0x409f01,_0x5dcc6d]of _0x2ceabd){const _0x38728b=_0x33218c(),_0x28dbe6={'key':_0x2158f8,'oldValue':_0x5dcc6d,'newValue':_0x21837c};_0x2158f8['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':_0x2158f8});const _0xd8c484=('attribute:'+_0x2158f8+'|'+dn({'newValue':_0x21837c}))['substring'](0x0,0x3c),_0x1229f9=this['_setSuggestionData']({'id':_0x38728b,'type':_0xd8c484,'data':_0x28dbe6,'createdAt':new Date(),'authorId':_0x441bd0,'attributes':_0x1eb96d});_0x116f5e['push'](_0x1229f9),this['_addSuggestionMarker'](_0xd8c484,_0x38728b,_0x441bd0,_0x409f01);}return _0x116f5e;}enableDefaultAttributesIntegration(_0x1abce2){this['enableCommand'](_0x1abce2,(_0x51519f,..._0x472584)=>{this['recordAttributeChanges'](()=>{_0x51519f(..._0x472584);});});}startTrackingSession(_0xd06960){return this['_trackingSessionId']=void 0x0!==_0xd06960?_0xd06960:_0x33218c(),this['_trackingSessionId'];}_getAttributeKey(_0x527193){return'attribute'==_0x527193['type']?In(_0x527193['subType']):null;}_applyOperationsAsSuggestions(_0xb7768d){if(0x0==_0xb7768d['length'])return;const _0x29a7e1=this['editor'],_0x1df420=_0x29a7e1['plugins']['get'](_0x18a9ab),_0x47256a=[],_0x5322b3=_0x351757=>{const _0x5bf566=_0x351757['_aiSource'];return _0x5bf566?{'@ai':{'type':_0x5bf566}}:{};},_0x719e98=(_0x244098,_0x48ceb4,_0x37873f)=>{for(let _0x37ffb3=_0x48ceb4;_0x37ffb3<_0x244098['operations']['length'];_0x37ffb3++){const _0x1c3a06=_0x244098['operations'][_0x37ffb3];'marker'===_0x1c3a06['type']&&(_0x1c3a06['_aiSource']=_0x37873f);}};_0x29a7e1['model']['change'](_0x501cad=>{for(let _0x427608=0x0;_0x427608<_0xb7768d['length'];_0x427608++){const _0x369d19=_0xb7768d[_0x427608],_0x39ca59=_0x369d19['_aiSource'],_0x1b177d=_0x501cad['batch']['operations']['length'];if(_0x369d19['baseVersion']=_0x29a7e1['model']['document']['version'],_0x369d19['isDocumentOperation']=!0x0,!_0x1e4907(_0x369d19)){if(_0x1df420['isMarkedRemoveOperation'](_0x369d19)){const _0x6f6eab=_0x552347(_0x369d19['newRange'],_0x29a7e1['model']);_0x47256a['unshift']({'range':ot['fromRange'](_0x6f6eab),'opAttributes':_0x5322b3(_0x369d19),'aiSource':_0x39ca59});}else{switch(_0x369d19['type']){case'rename':{const _0x4ea43f=_0x369d19['oldName'],_0x108190=_0x369d19['newName'];if(_0x4ea43f==_0x108190)break;_0x501cad['batch']['addOperation'](_0x369d19),_0x29a7e1['model']['applyOperation'](_0x369d19);const _0x1d2f2d='$elementName',_0x906ca=_0x369d19['position'],_0x4c5cf1=_0x29a7e1['model']['createRange'](_0x906ca,_0x29a7e1['model']['createPositionAt'](_0x906ca['nodeAfter'],'end'));this['markAttributeChange'](_0x4c5cf1,_0x1d2f2d,_0x4ea43f,_0x108190,{..._0x5322b3(_0x369d19),'groupId':_0x33218c()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x17ce2c=_0x369d19['oldValue'],_0x23f373=_0x369d19['newValue'];if(_0x17ce2c==_0x23f373)break;_0x501cad['batch']['addOperation'](_0x369d19),_0x29a7e1['model']['applyOperation'](_0x369d19);const _0x524b86=_0x369d19['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x524b86))break;const _0x50da08=_0x552347(_0x369d19['range'],_0x29a7e1['model']);this['markAttributeChange'](_0x50da08,_0x524b86,_0x17ce2c,_0x23f373,{..._0x5322b3(_0x369d19),'groupId':_0x33218c()});break;}case'insert':{if(_0x501cad['batch']['addOperation'](_0x369d19),_0x29a7e1['model']['applyOperation'](_0x369d19),_0xb7768d[_0x427608+0x1]&&'move'==_0xb7768d[_0x427608+0x1]['type'])break;const _0x153e35=_0x369d19['position'],_0x211340=_0x369d19['howMany'],_0x6ee0b1=_0x552347(_0x29a7e1['model']['createRange'](_0x153e35,_0x153e35['getShiftedBy'](_0x211340)),_0x29a7e1['model']);this['markInsertion'](_0x6ee0b1,null,{..._0x5322b3(_0x369d19)});break;}case'split':{_0x501cad['batch']['addOperation'](_0x369d19),_0x29a7e1['model']['applyOperation'](_0x369d19);const _0x379dee=_0x369d19['splitPosition'],_0x129cd4=_0x369d19['moveTargetPosition'],_0x24207c=_0x29a7e1['model']['createRange'](_0x379dee,_0x129cd4);this['markInsertion'](_0x24207c,null,{..._0x5322b3(_0x369d19)});break;}case'move':case'remove':_0x501cad['batch']['addOperation'](_0x369d19),_0x29a7e1['model']['applyOperation'](_0x369d19);}_0x39ca59&&_0x719e98(_0x501cad['batch'],_0x1b177d,_0x39ca59);}}}for(const {range:_0x5840c6,opAttributes:_0x356454,aiSource:_0x322244}of _0x47256a){const _0x7cd844=_0x501cad['batch']['operations']['length'];_0x5840c6['detach'](),this['markDeletion'](_0x5840c6,null,{..._0x356454}),_0x322244&&_0x719e98(_0x501cad['batch'],_0x7cd844,_0x322244);}});}_setSuggestionRange(_0x37e5dd,_0x16bd97){const _0x455f7b=_0x37e5dd['getFirstMarker']();this['_model']['change'](_0x50ca82=>{_0x50ca82['updateMarker'](_0x455f7b,{'range':_0x16bd97});});}_addThreadToSuggestion(_0x56efd2){const _0x200377=_0x56efd2['id'],_0x3a8f9e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x200377)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3a8f9e,'threadId':_0x200377,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xfab98f=this['_commentsRepository']['getCommentThread'](_0x200377);_0xfab98f['unbind']('isRemovable'),_0xfab98f['isRemovable']=!0x1,_0x56efd2['commentThread']=_0xfab98f;}_checkSuggestionCorrectness(_0x328ff3,_0x20c5cd,_0x159a47,_0xbb70a7){if(_0x328ff3['type']!=_0x20c5cd||_0x328ff3['subType']!=_0x159a47||_0x328ff3['creator']['id']!=_0xbb70a7)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4625d4('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x16e0af,_0x3ed6df){const _0x179be4=_0x16e0af['getFirstRange']();if(_0x3ed6df['isEqual'](_0x179be4))_0x16e0af['removeMarkers']();else{if(_0x179be4['containsRange'](_0x3ed6df)){const _0x280778=this['_model']['createPositionAt'](_0x3ed6df['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x16e0af,this['_model']['createRange'](_0x179be4['start'],_0x280778));const _0x5a441d=_0x33218c(),_0xd6ac3e=_0x16e0af['creator']['id'],_0x5a3c71=_0x16e0af['type']+':'+_0x16e0af['subType'];this['_setSuggestionData']({'id':_0x5a441d,'type':_0x5a3c71,'createdAt':new Date(),'authorId':_0xd6ac3e,'data':_0x16e0af['data'],'attributes':_0x16e0af['attributes']});const _0x1aff9f=this['_model']['createPositionAt'](_0x3ed6df['end']['parent'],'after'),_0x4a74ab=this['_model']['createRange'](_0x1aff9f,_0x179be4['end']);this['_addSuggestionMarker'](_0x5a3c71,_0x5a441d,_0xd6ac3e,_0x4a74ab);}else{if(_0x179be4['containsPosition'](_0x3ed6df['start'])){const _0x48a001=this['_model']['createPositionAt'](_0x3ed6df['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x16e0af,this['_model']['createRange'](_0x179be4['start'],_0x48a001));}else{const _0x417334=this['_model']['createPositionAt'](_0x3ed6df['end']['parent'],'after');this['_setSuggestionRange'](_0x16e0af,this['_model']['createRange'](_0x417334,_0x179be4['end']));}}}}_rangeIsInLocalUserInsertion(_0x38508b){for(const {suggestion:_0x5b74ed,meta:_0x13a97e}of this['_findSuggestions'](_0x38508b,'insertion')){if(!_0x13a97e['isOwn'])continue;const _0x3ba27b=_0x5b74ed['getRanges']();for(const _0x3133c5 of _0x3ba27b)if(!_0x38508b['getDifference'](_0x3133c5)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x3f857b){return this['editor']['plugins']['get']('Users')['getUser'](_0x3f857b);}_getExternalAuthor(_0x31d6c8){const _0x13a208=this['editor']['plugins']['get']('Users'),_0x4a139f=_0x28d0a9('external:'+_0x31d6c8),_0x2454d3=_0x13a208['getUser'](_0x4a139f);return _0x2454d3||_0x13a208['addUser']({'id':_0x4a139f,'name':_0x31d6c8});}_createSuggestion(_0x54459a,_0x14ee77,_0x274bfe,_0x572319,_0x531d4d,_0x579fbd){const _0xcdd3f2=this['_getAuthorFromId'](_0x572319);if(!_0xcdd3f2)throw new _0x4625d4('track-changes-user-not-found',this,{'authorId':_0x572319,'suggestionId':_0x274bfe});const _0x8258fb=this['_suggestionFactory']['buildSuggestion'](_0x54459a,_0x14ee77,_0x274bfe,_0xcdd3f2,_0x531d4d,_0x4586ba=>{this['_updateSuggestionData'](_0x274bfe,{'attributes':_0x4586ba});const _0x4c33b5=this['getSuggestion'](_0x274bfe);this['_joinWithAdjacentSuggestions'](new Set([_0x4c33b5])),this['_refreshSuggestionsChain'](new Set([_0x4c33b5]));},_0x579fbd);return this['listenTo'](_0x8258fb,'accept',()=>{this['_updateSuggestionData'](_0x274bfe,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x8258fb,'discard',()=>{this['_updateSuggestionData'](_0x274bfe,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x274bfe,_0x8258fb),this['_suggestionState']['set'](_0x8258fb,'notReady'),_0x8258fb;}_breakSuggestionMarker(_0xa156d3,_0x169328,_0x1b5a01){const _0x54639c=_0xa156d3['getFirstRange'](),_0x4dacd5=_0x54639c['start'],_0x345724=_0x54639c['end'];this['_setSuggestionRange'](_0xa156d3,this['_model']['createRange'](_0x4dacd5,_0x169328));const _0x3064c9=_0x33218c(),_0xb324ba=_0xa156d3['creator']['id'],_0x5f4f73=_0xa156d3['type']+(_0xa156d3['subType']?':'+_0xa156d3['subType']:'');this['_setSuggestionData']({'id':_0x3064c9,'type':_0x5f4f73,'createdAt':new Date(),'authorId':_0xb324ba,'originalSuggestionId':_0xa156d3['_originalSuggestionId']||_0xa156d3['id'],'attributes':_0xa156d3['attributes'],'data':_0xa156d3['data']});const _0x593e5d=this['_getAttributeKey'](_0xa156d3);('formatBlock'==_0xa156d3['type']||_0x593e5d&&this['_suggestionsConversion']['isBlockAttribute'](_0x593e5d))&&(_0x1b5a01=this['_model']['createPositionBefore'](_0x1b5a01['parent'])),this['_addSuggestionMarker'](_0x5f4f73,_0x3064c9,_0xb324ba,this['_model']['createRange'](_0x1b5a01,_0x345724));}_findSuggestions(_0x36f5d1,_0x38ec16=null){const _0x5ec81e=[],_0x1768cd=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x36f5d1)||(_0x36f5d1=[_0x36f5d1]);for(const _0x1e7483 of this['getSuggestions']()){if(!_0x1e7483['isInContent'])continue;if(_0x38ec16&&_0x1e7483['type']!=_0x38ec16)continue;let _0x22e334=!0x1;for(const _0x47f2e9 of _0x1e7483['getRanges']()){for(const _0x80a19c of _0x36f5d1){const _0x3d0341=_0x80a19c['start']['isEqual'](_0x47f2e9['end'])||_0x80a19c['end']['isEqual'](_0x47f2e9['start']);if(_0x3d0341||_0x80a19c['getIntersection'](_0x47f2e9)){const _0x1feeef=_0x80a19c['containsRange'](_0x47f2e9)&&cn(this['_model']['schema'],_0x47f2e9['start'],_0x80a19c),_0x5df373=_0x47f2e9['containsRange'](_0x80a19c)&&cn(this['_model']['schema'],_0x80a19c['start'],_0x47f2e9);_0x5ec81e['push']({'suggestion':_0x1e7483,'meta':{'isOwn':_0x1768cd==_0x1e7483['author'],'isNextTo':_0x3d0341,'isInsideObject':_0x1feeef,'containsRangeInObject':_0x5df373}}),_0x22e334=!0x0;break;}}if(_0x22e334)break;}}return _0x5ec81e;}_addSuggestionMarker(_0x1b1589,_0x514009,_0x1e8240,_0x556b2d,_0x16d41c){this['_model']['change'](_0x401628=>{let _0x51fe4c='suggestion:'+_0x1b1589+':'+_0x514009+':'+_0x1e8240;_0x16d41c&&(_0x51fe4c=_0x51fe4c+':'+_0x16d41c),_0x401628['addMarker'](_0x51fe4c,{'range':_0x556b2d,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x126309){const _0x14697e=_0x126309['previous'],_0x3ebd37=_0x126309['next'];_0x126309['previous']=null,_0x126309['next']=null,null!=_0x14697e&&_0x14697e['next']==_0x126309&&(_0x14697e['next']=_0x3ebd37),null!=_0x3ebd37&&_0x3ebd37['previous']==_0x126309&&(_0x3ebd37['previous']=_0x14697e),'ready'==this['_suggestionState']['get'](_0x126309)&&(this['_suggestionState']['set'](_0x126309,'removed'),this['fire']('suggestionUnloaded',_0x126309,_0x14697e,_0x3ebd37));}_setSuggestionData(_0x3a2381){const _0x37d9fd=_0x3a2381['id'],_0x2dc496=this['addSuggestionData'](_0x3a2381);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x346717=this['editor']['plugins']['get']('PendingActions'),_0x58da4f=_0x2dc496['hasComments'],_0x2e0231=_0x2dc496['subType']?_0x2dc496['type']+':'+_0x2dc496['subType']:_0x2dc496['type'],_0xf8802b=this['editor']['locale'],_0x8eb47e=_0x346717['add'](Ot(_0xf8802b,'PENDING_ACTION_SUGGESTION')),_0x14ba02={'id':_0x37d9fd,'type':_0x2e0231,'hasComments':_0x58da4f,'data':_0x3a2381['data']||null,'originalSuggestionId':_0x3a2381['originalSuggestionId']||null,'attributes':_0x2dc496['attributes']};this['_adapter']['addSuggestion'](_0x14ba02)['then'](_0x1746d3=>{_0x2dc496['_saved']=!0x0,_0x346717['remove'](_0x8eb47e),_0x1746d3&&_0x1746d3['createdAt']&&(this['_suggestions']['get'](_0x37d9fd)['createdAt']=_0x1746d3['createdAt']);})['catch'](_0xb88fa8=>{throw _0x2320f6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2dc496['discard']();}),_0x2dc496['stopListening'](),this['_suggestions']['delete'](_0x2dc496['id']),this['_suggestionState']['delete'](_0x2dc496),_0xb88fa8;});}return _0x2dc496;}_updateSuggestionData(_0x175b48,_0x270597){const _0x27a48c=this['editor']['plugins']['get']('PendingActions'),_0x628c9d=this['getSuggestion'](_0x175b48);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x628c9d['_saved']){const _0x2ac284=_0x27a48c['add'](Ot(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x175b48,_0x270597)['then'](()=>{_0x27a48c['remove'](_0x2ac284);});}else _0x628c9d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x175b48,_0x270597);});}}_getSuggestionData(_0x19f35c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4625d4('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x19f35c);}_handleNewSuggestionMarker(_0xc81c10){const {id:_0x258493,type:_0xdae617,subType:_0xdd30e0,authorId:_0x432270}=et(_0xc81c10),_0x5a1e77=this['_suggestions']['get'](_0x258493)||this['_createSuggestion'](_0xdae617,_0xdd30e0,_0x258493,_0x432270,{});switch(this['_checkSuggestionCorrectness'](_0x5a1e77,_0xdae617,_0xdd30e0,_0x432270),this['_suggestionState']['get'](_0x5a1e77)){case'notReady':this['_getSuggestionData'](_0x258493)['then'](_0x2ac357=>{let _0x44f7a6=Promise['resolve']();_0x2ac357['hasComments']&&(_0x44f7a6=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x258493})),_0x44f7a6['then'](()=>{this['addSuggestionData'](_0x2ac357)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5a1e77,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x258493,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5a1e77,'ready'),this['fire']('suggestionLoaded',_0x5a1e77);break;case'ready':this['fire']('suggestionChanged',_0x5a1e77);}return _0x5a1e77['addMarkerName'](_0xc81c10),_0x5a1e77;}_refreshSuggestionsChain(_0x2d6e0b){const _0xe9dd0f=Array['from'](_0x2d6e0b),_0x534d2a=_0xe9dd0f['filter'](_0x345fe9=>'attribute'==_0x345fe9['type']);this['_refreshAttributeSuggestionsChain'](_0x534d2a);const _0x28edf8=_0xe9dd0f['filter'](_0x3d1d0f=>!_0x3d1d0f['isMultiRange']&&'attribute'!=_0x3d1d0f['type']),_0x2ca36e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5aa53d=>!_0x5aa53d['isMultiRange']&&'attribute'!=_0x5aa53d['type']),_0x29e3c5=_0x2ca36e['filter'](_0x538a9e=>!_0x2d6e0b['has'](_0x538a9e)),_0x3b0d55=new Map(_0x2ca36e['map'](_0xe5ccb6=>[_0xe5ccb6,this['_suggestionFactory']['getSuggestionCallback'](_0xe5ccb6['type'],_0xe5ccb6['subType'],'chain')])),_0x1e2a1f=new Map(_0x2ca36e['map'](_0x1be6cd=>[_0x1be6cd,_0x1be6cd['getFirstRange']()])),_0x4818ed=new Set(),_0x5dc407=new Set();for(let _0x31ba3f=0x0;_0x31ba3f<_0x28edf8['length'];_0x31ba3f++)_0x2315b0(_0x28edf8[_0x31ba3f],_0x28edf8,_0x31ba3f+0x1);for(let _0x5e1731=0x0;_0x5e1731<_0x28edf8['length'];_0x5e1731++)_0x2315b0(_0x28edf8[_0x5e1731],_0x29e3c5,0x0);const _0x23d9cb=new Set();for(let _0x3bbae8=0x0;_0x3bbae8<_0x28edf8['length'];_0x3bbae8++){const _0x5c6e06=_0x28edf8[_0x3bbae8];!_0x5dc407['has'](_0x5c6e06)&&_0x5c6e06['previous']&&(_0x23d9cb['add'](_0x5c6e06['previous']),_0x5c6e06['previous']['next']===_0x5c6e06&&(_0x5c6e06['previous']['next']=null),_0x5c6e06['previous']=null),!_0x4818ed['has'](_0x5c6e06)&&_0x5c6e06['next']&&(_0x23d9cb['add'](_0x5c6e06['next']),_0x5c6e06['next']['previous']===_0x5c6e06&&(_0x5c6e06['next']['previous']=null),_0x5c6e06['next']=null);}function _0x2315b0(_0x5ea4d5,_0x189cbd,_0x43b262){for(let _0x469bb5=_0x43b262;_0x469bb5<_0x189cbd['length'];_0x469bb5++){const _0x32808d=_0xe73b3a(_0x5ea4d5,_0x189cbd[_0x469bb5]);_0x32808d&&(_0x32808d[0x0]['next']=_0x32808d[0x1],_0x32808d[0x1]['previous']=_0x32808d[0x0],_0x4818ed['add'](_0x32808d[0x0]),_0x5dc407['add'](_0x32808d[0x1]));}}function _0xe73b3a(_0x3e2fad,_0x1a3c8c){if(_0x3e2fad['author']['id']!==_0x1a3c8c['author']['id'])return null;const _0x401ed7=_0x3b0d55['get'](_0x3e2fad)(_0x3e2fad,_0x1a3c8c,_0x1e2a1f['get'](_0x3e2fad),_0x1e2a1f['get'](_0x1a3c8c));return _0x401ed7&&_0x3b0d55['get'](_0x1a3c8c)(_0x3e2fad,_0x1a3c8c,_0x1e2a1f['get'](_0x3e2fad),_0x1e2a1f['get'](_0x1a3c8c))?_0x401ed7[0x1]['commentThread']&&_0x401ed7[0x1]['commentThread']['length']?null:_0x401ed7:null;}_0x23d9cb['size']&&this['_refreshSuggestionsChain'](_0x23d9cb);}_refreshAttributeSuggestionsChain(_0xc5a8f1){if(0x0==_0xc5a8f1['length'])return;const _0x27bf37=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31d01f=>'attribute'==_0x31d01f['type']&&_0x31d01f['_isDataLoaded']),_0x2790=[],_0x266dc7=new Map();for(const _0x322794 of _0x27bf37){const _0x312005=_0x28d0a9(_0x322794['attributes']);_0x266dc7['has'](_0x312005)||(_0x266dc7['set'](_0x312005,_0x2790['length']),_0x2790['push']([])),_0x2790[_0x266dc7['get'](_0x312005)]['push'](_0x322794);}!(function(){_0x2790['sort']((_0x52d917,_0x6b42a1)=>{const _0xf0f138=_0x52d917[0x0]['createdAt'],_0x2efc21=_0x6b42a1[0x0]['createdAt'];return _0xf0f138==_0x2efc21?_0x52d917[0x0]['attributes']['groupId']<_0x6b42a1[0x0]['attributes']['groupId']?-0x1:0x1:_0xf0f138<_0x2efc21?-0x1:0x1;});for(const _0x494e69 of _0x2790)_0x494e69['sort']((_0x13ddfb,_0x399fb3)=>_0x13ddfb['id']<_0x399fb3['id']?-0x1:0x1);}());for(let _0x154e8f=0x0;_0x154e8f<_0x2790['length'];_0x154e8f++){if(0x0==_0x2790[_0x154e8f]['length'])continue;const _0x2abc54=[];for(let _0x3abefa=_0x154e8f+0x1;_0x3abefa<_0x2790['length'];_0x3abefa++)0x0!=_0x2790[_0x3abefa]['length']&&_0x1c1d34(_0x2790[_0x154e8f],_0x2790[_0x3abefa])&&_0x2abc54['push'](_0x3abefa);for(const _0x108ea9 of _0x2abc54)_0x2790[_0x154e8f]=_0x2790[_0x154e8f]['concat'](_0x2790[_0x108ea9]),_0x2790[_0x108ea9]=[];}for(const _0x13fe81 of _0x2790)for(let _0x257c6d=0x0;_0x257c6d<_0x13fe81['length'];_0x257c6d++){const _0x48439c=_0x13fe81[_0x257c6d+0x1]||null;_0x13fe81[_0x257c6d]['next']!==_0x48439c&&(_0x13fe81[_0x257c6d]['next']=_0x48439c);}for(const _0x31b1e8 of _0x2790)for(let _0x12509f=0x0;_0x12509f<_0x31b1e8['length'];_0x12509f++){const _0x379c34=_0x31b1e8[_0x12509f-0x1]||null;_0x31b1e8[_0x12509f]['previous']!==_0x379c34&&(_0x31b1e8[_0x12509f]['previous']=_0x379c34);}function _0x1c1d34(_0x419efe,_0x29f21f){return(_0x419efe[0x0]['attributes']['groupId']===_0x29f21f[0x0]['attributes']['groupId']||_0x419efe[0x0]['author']===_0x29f21f[0x0]['author'])&&(!!function(_0x346b02,_0x42a891){return!_0x346b02['hasComments']&&!_0x42a891['hasComments']||(!_0x346b02['hasComments']||!_0x42a891['hasComments'])&&(!!(_0x346b02['hasComments']&&_0x42a891['createdAt']<_0x346b02['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x42a891['hasComments']&&_0x346b02['createdAt']<_0x42a891['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x419efe[0x0],_0x29f21f[0x0])&&(!!lt(ut(_0x419efe[0x0]['attributes'],['groupId','trackingSessionId']),ut(_0x29f21f[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0x419efe[0x0]['attributes']['groupId']==_0x29f21f[0x0]['attributes']['groupId']||_0x419efe[0x0]['attributes']['trackingSessionId']===_0x29f21f[0x0]['attributes']['trackingSessionId']&&(!!_0x419efe['every'](_0x73f921=>_0x29f21f['some'](_0x82758=>_0x73f921['getFirstRange']()['isEqual'](_0x82758['getFirstRange']())))&&_0x29f21f['every'](_0x117433=>_0x419efe['some'](_0x40a65c=>_0x117433['getFirstRange']()['isEqual'](_0x40a65c['getFirstRange']())))))));}}_joinWithAdjacentSuggestions(_0x3b0610){const _0x5f5767=Array['from'](_0x3b0610),_0x469aa4=this['getSuggestions']({'skipNotAttached':!0x0}),_0x30e55e=_0x469aa4['filter'](_0x354c1d=>!_0x3b0610['has'](_0x354c1d)),_0x174161=new Map(_0x5f5767['map'](_0x3f0580=>[_0x3f0580,this['_suggestionFactory']['getSuggestionCallback'](_0x3f0580['type'],_0x3f0580['subType'],'join')])),_0x547529=new Map(_0x469aa4['map'](_0x2cb2d1=>[_0x2cb2d1,_0x2cb2d1['getRanges']()]));for(let _0x814dd5=0x0;_0x814dd5<_0x5f5767['length'];_0x814dd5++)if(_0x13fa58(this,_0x5f5767[_0x814dd5],_0x5f5767,_0x814dd5+0x1))return!0x0;for(let _0x27997c=0x0;_0x27997c<_0x5f5767['length'];_0x27997c++)if(_0x13fa58(this,_0x5f5767[_0x27997c],_0x30e55e,0x0))return!0x0;return!0x1;function _0x13fa58(_0x42d241,_0x33677c,_0x2e7cc6,_0x357e17){for(let _0x47da08=_0x357e17;_0x47da08<_0x2e7cc6['length'];_0x47da08++){const _0x4634ae=_0x2e7cc6[_0x47da08];if(_0x4634ae['type']!==_0x33677c['type']||_0x4634ae['author']['id']!==_0x33677c['author']['id']||_0x4634ae['subType']!==_0x33677c['subType'])continue;if(!_n(_0x33677c,_0x4634ae))continue;if('attribute'==_0x33677c['type']&&_0x33677c['data']['oldValue']!=_0x4634ae['data']['oldValue'])continue;if('attribute'==_0x33677c['type']&&_0x42d241['_suggestionsConversion']['isBlockAttribute'](_0x33677c['data']['key']))continue;if('formatBlock'==_0x33677c['type']){const _0x12d5a6=_0x42d241['editor']['model'],_0x51ef00=_0x33677c['getContainedElement']();if(_0x51ef00&&(_0x12d5a6['schema']['isObject'](_0x51ef00)||_0x12d5a6['schema']['isLimit'](_0x51ef00)))continue;}const _0x14079f=_0x174161['get'](_0x33677c),_0x14b81e=_0x547529['get'](_0x33677c),_0x28ec40=_0x547529['get'](_0x4634ae),_0x1dbbd0=_0x33677c['commentThread']&&_0x33677c['commentThread']['length'],_0x22c0c0=_0x4634ae['commentThread']&&_0x4634ae['commentThread']['length'];if(!_0x1dbbd0&&_0x14079f(_0x28ec40,_0x14b81e))return _0x42d241['_joinSuggestions'](_0x4634ae,_0x33677c),_0x547529['delete'](_0x33677c),!0x0;if(!_0x22c0c0&&_0x14079f(_0x14b81e,_0x28ec40))return _0x42d241['_joinSuggestions'](_0x33677c,_0x4634ae),_0x547529['delete'](_0x4634ae),!0x0;}return!0x1;}}_joinSuggestions(_0x1d297b,_0x371d32){if(_0x1d297b['isMultiRange']){for(const _0x2aa106 of _0x371d32['getRanges']())_0x1d297b['addRange'](_0x2aa106);}else{const _0x1031c9=_0x371d32['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1d297b,this['_model']['createRange'](_0x1d297b['getFirstRange']()['start'],_0x1031c9));}_0x371d32['removeMarkers']();}_getMarkerAnnouncementText(_0x54d42a,_0xe7281b,_0x335c3f){const _0xbebd74=_0x54d42a['startsWith']('format')||_0x54d42a['startsWith']('attribute')?'FORMATTING':_0x54d42a['toUpperCase']();return Ot(this['editor']['locale'],_0xe7281b+'_'+_0xbebd74+'_SUGGESTION_ANNOUNCEMENT',_0x335c3f);}_initAriaMarkerChangeAnnouncements(){const _0x508357=this['editor'];if(!_0x508357['ui'])return;const {ariaLiveAnnouncer:_0x558d2d}=_0x508357['ui'];nt(this['_model'],({left:_0x5e26f7,entered:_0x2a19a5})=>{for(const _0x36956d of _0x5e26f7){const {group:_0x3f41f7,type:_0x175c66}=et(_0x36956d['name']);if('suggestion'===_0x3f41f7){_0x558d2d['announce'](this['_getMarkerAnnouncementText'](_0x175c66,'LEAVE'));break;}}for(const _0x3a13ec of _0x2a19a5){const {group:_0x5a889f,type:_0x4142cb}=et(_0x3a13ec['name']);if('suggestion'===_0x5a889f){_0x558d2d['announce'](this['_getMarkerAnnouncementText'](_0x4142cb,'ENTER',_0x5d1579(_0x42acdd)));break;}}});}_processAttributeChanges(_0x588c29){if(this['_recordAttributeSuggestions'])return!0x1;const _0x57c65c=this['editor'],_0x3a9fe1=_0x57c65c['model']['document']['differ']['getChanges']();if(0x0==_0x3a9fe1['length'])return!0x1;const _0xc6a279=[],_0xd51d7b=_0x3a9fe1['filter'](_0x2d39a5=>'attribute'==_0x2d39a5['type']),_0x465680=_0x3a9fe1['filter'](_0x173f61=>'insert'==_0x173f61['type']&&'$text'!=_0x173f61['name']),_0x33b076=_0x3a9fe1['filter'](_0x501802=>'remove'==_0x501802['type']&&'$text'!=_0x501802['name']);for(const _0x2982e1 of _0xd51d7b)_0xc6a279['push']({'key':_0x2982e1['attributeKey'],'newValue':_0x2982e1['attributeNewValue'],'oldValue':_0x2982e1['attributeOldValue'],'range':mn(_0x2982e1['range'],_0x57c65c['model'])});for(const _0x7b390 of _0x465680){const _0x19901a=_0x33b076['find'](_0x245935=>_0x245935['position']['isEqual'](_0x7b390['position']));_0x19901a&&_0xc6a279['push']({'key':rn,'newValue':_0x7b390['name'],'oldValue':_0x19901a['name'],'range':_0x57c65c['model']['createRangeOn'](_0x7b390['position']['nodeAfter'])});}return 0x0!=_0xc6a279['length']&&this['_reduceExistingSuggestions'](_0x588c29,_0xc6a279);}_processAttributeSuggestions(_0x7896e){let _0x5f0e4b=!0x1;const _0x2a8c1f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3c4720=>_0x3c4720['data']['newRange']&&_0x3c4720['name']['startsWith']('suggestion:attribute:'));for(const _0x23438e of _0x2a8c1f){const {subType:_0x36eeb0,id:_0x2dfb84}=et(_0x23438e['name']),_0x457212=_0x36eeb0['split']('|')[0x0];for(const _0x248525 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x248525['id']!=_0x2dfb84&&'attribute'==_0x248525['type']&&_0x248525['data']&&_0x248525['data']['key']==_0x457212&&_0x248525['getFirstRange']()['isIntersecting'](_0x23438e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x248525,_0x23438e['data']['newRange'],_0x7896e),_0x5f0e4b=!0x0);}return _0x5f0e4b;}recordAttributeChanges(_0x4a40bb){this['_recordAttributeSuggestions']=!0x0,_0x4a40bb();}_reduceExistingSuggestions(_0x1d2bea,_0x2510a1){if(0x0==_0x2510a1['length'])return!0x1;let _0x14b218=!0x1;for(const _0x3d08cd of _0x2510a1){const _0x261797=this['_findSuggestions'](_0x3d08cd['range'],'attribute')['filter'](_0x8f55a6=>!_0x8f55a6['meta']['isNextTo'])['map'](_0x1d666d=>_0x1d666d['suggestion']),_0x365f8e=_0x28d0a9({'newValue':_0x3d08cd['newValue']});_0x261797['filter'](_0x3223a9=>{const [_0x1bb2bf,_0x343f27]=_0x3223a9['subType']['split']('|');return _0x1bb2bf==_0x3d08cd['key']&&_0x343f27!=_0x365f8e;})['forEach'](_0x418698=>{this['_reduceSuggestionAttributeRange'](_0x418698,_0x3d08cd['range'],_0x1d2bea),_0x14b218=!0x0;});}return _0x14b218;}_reduceSuggestionAttributeRange(_0x5d6da6,_0x3eb9f0,_0x1e75e2){const _0x5accb5=_0x5d6da6['getFirstRange']()['getDifference'](_0x3eb9f0);0x0!==_0x5accb5['length']?0x1!==_0x5accb5['length']?this['_breakSuggestionMarker'](_0x5d6da6,_0x3eb9f0['start'],_0x3eb9f0['end']):this['_setSuggestionRange'](_0x5d6da6,_0x5accb5[0x0]):_0x1e75e2['removeMarker'](_0x5d6da6['getFirstMarker']());}},an=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x4af99c){this['_editor']=_0x4af99c,this['_model']=_0x4af99c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x3f9180,_0x5d9d30,_0x2ebe59,_0x21bf02,_0x122370,_0x4902d3,_0x1accca){return new Mt(this['_model'],{'type':_0x3f9180,'subType':_0x5d9d30,'id':_0x2ebe59,'originalSuggestionId':_0x1accca,'author':_0x21bf02,'creator':_0x21bf02,'attributes':_0x122370,'onAttributesChange':_0x4902d3,'onAccept':(..._0x322bdc)=>this['getSuggestionCallback'](_0x3f9180,_0x5d9d30,'accept')(..._0x322bdc),'onDiscard':(..._0x5754d7)=>this['getSuggestionCallback'](_0x3f9180,_0x5d9d30,'discard')(..._0x5754d7)});}registerCustomCallback(_0x3a4995,_0x4169d4,_0x368f55,_0x2394a1){const _0x2bb1b9=_0x3a4995+':'+_0x4169d4+':'+_0x368f55;this['_customCallbacks']['set'](_0x2bb1b9,_0x2394a1);}getSuggestionCallback(_0x5c131a,_0x245fd5,_0x44f884){const _0x1f22e0=_0x5c131a+':'+_0x245fd5+':'+_0x44f884;return this['_customCallbacks']['get'](_0x1f22e0)||this['_defaultCallbacks']['get'](_0x5c131a+':'+_0x44f884);}_registerDefaultCallbacks(){const _0x304e3f=()=>!0x1,_0x5596e4=_0x4be283=>{_0x4be283['sort']((_0x2d4256,_0x50d19b)=>_0x2d4256['start']['isBefore'](_0x50d19b['start'])?0x1:-0x1),this['_model']['change'](_0x3c9c55=>{for(const _0x3e44c1 of _0x4be283){let _0x1156c7;_0x1156c7=_0x3e44c1['end']['isAtEnd']&&_0x3e44c1['end']['parent']==_0x3e44c1['start']['nodeAfter']?_0x3c9c55['createSelection'](_0x3e44c1['start']['nodeAfter'],'on'):_0x3c9c55['createSelection'](_0x3e44c1),this['_model']['deleteContent'](_0x1156c7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x216dcf=(_0x5d3cfc,_0x1e3120)=>{_0x1e3120&&this['_model']['change'](_0x1861ef=>{const {commandName:_0x2312f3,commandParams:_0x3b1976=[]}=_0x1e3120,_0x2dde7e=_0x5d3cfc['map'](_0x478a65=>(ln(_0x478a65)&&(_0x478a65=this['_model']['createRange'](_0x478a65['end'])),_0x478a65))['filter'](_0x31a949=>'$graveyard'!==_0x31a949['root']['rootName']);if(_0x2dde7e['length']<0x1)return;const _0x198b95=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4571e2=>ot['fromRange'](_0x4571e2));_0x1861ef['setSelection'](_0x2dde7e);for(const _0x9b670a of this['_editor']['commands']['commands']())_0x9b670a['refresh']();_0x3b1976['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2312f3,..._0x3b1976);const _0x232dfc=_0x198b95['filter'](_0x409aeb=>'$graveyard'!=_0x409aeb['root']['rootName']);_0x232dfc['length']>0x0&&_0x1861ef['setSelection'](_0x232dfc);for(const _0x1e6b86 of _0x198b95)_0x1e6b86['detach']();});},_0x35c51c=(_0x1e9add,_0x4a0a9a)=>0x1==_0x1e9add['length']&&0x1==_0x4a0a9a['length']&&_0x1e9add[0x0]['end']['isEqual'](_0x4a0a9a[0x0]['start']),_0xd43c6a=(_0x15d184,_0x3cc3f3,_0x41bc63,_0xe6208)=>Tn(_0x15d184,_0x3cc3f3,_0x41bc63,_0xe6208)?[_0x15d184,_0x3cc3f3]:Tn(_0x3cc3f3,_0x15d184,_0xe6208,_0x41bc63)?[_0x3cc3f3,_0x15d184]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x304e3f),this['_defaultCallbacks']['set']('insertion:discard',_0x5596e4),this['_defaultCallbacks']['set']('insertion:join',_0x35c51c),this['_defaultCallbacks']['set']('insertion:chain',_0xd43c6a),this['_defaultCallbacks']['set']('deletion:accept',_0x5596e4),this['_defaultCallbacks']['set']('deletion:discard',_0x304e3f),this['_defaultCallbacks']['set']('deletion:join',_0x35c51c),this['_defaultCallbacks']['set']('deletion:chain',_0xd43c6a),this['_defaultCallbacks']['set']('formatInline:accept',_0x216dcf),this['_defaultCallbacks']['set']('formatInline:discard',_0x304e3f),this['_defaultCallbacks']['set']('formatInline:join',_0x35c51c),this['_defaultCallbacks']['set']('formatInline:chain',_0x304e3f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x216dcf),this['_defaultCallbacks']['set']('formatBlock:discard',_0x304e3f),this['_defaultCallbacks']['set']('formatBlock:join',_0x35c51c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x304e3f),this['_defaultCallbacks']['set']('attribute:accept',_0x304e3f),this['_defaultCallbacks']['set']('attribute:discard',(_0x35c809,_0xd83806)=>{if(!_0xd83806)return;const _0x4e3776=this['_editor']['plugins']['get'](_0x18f3c7);this['_model']['change'](_0xea754=>{if('$elementName'==_0xd83806['key'])for(const _0x6526ab of _0x35c809){const _0x3b98a6=_0x6526ab['start']['nodeAfter'],_0x4ef506=_0xd83806['oldValue'];_0xea754['rename'](_0x3b98a6,_0x4ef506);}else{if(_0x4e3776['isBlockAttribute'](_0xd83806['key'])){for(const _0x26a573 of _0x35c809)void 0x0!==_0xd83806['oldValue']?_0xea754['setAttribute'](_0xd83806['key'],_0xd83806['oldValue'],_0x26a573['start']['nodeAfter']):_0xea754['removeAttribute'](_0xd83806['key'],_0x26a573['start']['nodeAfter']);}else{for(const _0x2b2e60 of _0x35c809)_0xd83806['oldValue']?_0xea754['setAttribute'](_0xd83806['key'],_0xd83806['oldValue'],_0x2b2e60):_0xea754['removeAttribute'](_0xd83806['key'],_0x2b2e60);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x35c51c);}};function cn(_0x3f753d,_0x4d03e6,_0x18a3ac){for(const _0x11462f of _0x4d03e6['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x11462f['root']==_0x11462f)return!0x1;if(!_0x18a3ac['containsItem'](_0x11462f))return!0x1;if(_0x3f753d['isObject'](_0x11462f)||_0x3f753d['isLimit'](_0x11462f))return!0x0;}return!0x1;}function ln(_0x59c19f){return _0x59c19f['end']['parent']==_0x59c19f['start']['nodeAfter']&&_0x59c19f['end']['isAtStart'];}function un(_0x25b94b,_0x40f925,_0x502114,_0x5c3fd2){const _0x329579=_0x252d38=>!_0x252d38['item']['is']('$textProxy')&&!_0x5c3fd2['isObject'](_0x252d38['item']),_0x3329e0=_0x25b94b['start']['getLastMatchingPosition'](_0x329579),_0xd65d44=_0x25b94b['end']['getLastMatchingPosition'](_0x329579,{'direction':'backward'});return(!_0x25b94b['start']['isEqual'](_0x3329e0)||!_0x25b94b['end']['isEqual'](_0xd65d44))&&(_0x3329e0['isBefore'](_0xd65d44)?_0x502114['updateMarker'](_0x40f925,{'range':_0x502114['createRange'](_0x3329e0,_0xd65d44)}):_0x502114['removeMarker'](_0x40f925),!0x0);}function dn(_0x435776){return _0x28d0a9(_0x435776);}function hn(_0x40eae6){const _0x1bb0e2=_0x40eae6['start']['nodeAfter'];return _0x1bb0e2&&_0x1bb0e2['is']('element');}function gn(_0x1a79dd){return ln(_0x1a79dd)||function(_0x5d57e3){return _0x5d57e3['start']['parent']==_0x5d57e3['end']['nodeBefore']&&_0x5d57e3['start']['isAtEnd'];}(_0x1a79dd);}function fn(_0x35d491,_0x165c15){try{const _0x52e5b8=_0x35d491['getRange']();for(const _0x4ec74c of _0x165c15)if(_0x35d491!==_0x4ec74c&&_0x52e5b8&&_0x52e5b8['isIntersecting'](_0x4ec74c['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function mn(_0x525dfe,_0x979257){return null==_0x525dfe['end']['nodeBefore']&&_0x525dfe['end']['parent']==_0x525dfe['start']['nodeAfter']?En(_0x525dfe['start']['nodeAfter'],_0x979257):_0x525dfe;}function En(_0x2d7df1,_0x473380){const _0x1ba315=_0x473380['schema']['isObject'](_0x2d7df1)||_0x473380['schema']['isSelectable'](_0x2d7df1);return _0x473380['createRange'](_0x473380['createPositionAt'](_0x2d7df1,'before'),_0x1ba315?_0x473380['createPositionAfter'](_0x2d7df1):_0x473380['createPositionAt'](_0x2d7df1,'end'));}function Tn(_0x4fc206,_0xc4e377,_0x478e06,_0x39acbc){return!!_n(_0x4fc206,_0xc4e377)&&_0x478e06['end']['isEqual'](_0x39acbc['start']);}function _n(_0x23f503,_0x48346c){if(!_0x23f503['_isDataLoaded']||!_0x48346c['_isDataLoaded'])return!0x1;const _0x311989=new Set(Object['keys'](_0x23f503['attributes'])),_0x2460ce=new Set(Object['keys'](_0x48346c['attributes']));if(_0x311989['delete']('groupId'),_0x2460ce['delete']('groupId'),0x0==_0x311989['size']&&0x0==_0x2460ce['size'])return!0x0;if(_0x311989['size']!=_0x2460ce['size'])return!0x1;const _0x3330ad={..._0x23f503['attributes']},_0x48f373={..._0x48346c['attributes']};return delete _0x3330ad['groupId'],delete _0x48f373['groupId'],JSON['stringify'](_0x3330ad)==JSON['stringify'](_0x48f373);}function pn(_0x59e268,_0x117d38){const _0x1e0abd=Ln(_0x59e268['attributes']),_0x312f74=Ln(_0x117d38);if(!_0x59e268['_isDataLoaded'])return!0x1;if(!lt(_0x1e0abd['@ai'],_0x312f74['@ai']))return!0x1;for(const _0x189fd2 of Object['keys'](_0x312f74))if(!lt(_0x1e0abd[_0x189fd2],_0x312f74[_0x189fd2]))return!0x1;return!0x0;}function Ln(_0x1122e7){const _0x4f00c2=Object['assign']({},_0x1122e7);return delete _0x4f00c2['skipNestingCheck'],delete _0x4f00c2['tablePasteChainId'],_0x4f00c2;}function In(_0x28d545){return _0x28d545['split']('|')[0x0];}const An=/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x49cc7c();var bn=class extends An{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x56614e,_0x445c13,_0x36753b,_0x1a75d2){super(),this['model']=_0x445c13,this['view']=_0x36753b,this['commentThreadController']=_0x1a75d2,this['_editor']=_0x56614e,this['_acceptCommand']=_0x56614e['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x56614e['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x184d74,_0x1cc65e)=>_0x184d74||_0x1cc65e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5ad2de=>_0x5ad2de&&this['_editor']['model']['canEditAt'](_0x445c13['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x175899=>_0x175899&&this['_editor']['model']['canEditAt'](_0x445c13['getRanges']())),this['_pendingAction']=null,_0x36753b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x36753b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x36753b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x36753b,'change:isDirty',()=>{_0x36753b['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 _0x2c74bd=Ot(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2c74bd);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Cn=class extends _0x55ceca{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4d44cf,_0x314aeb,_0x219eb9,_0x5b8d30){super(_0x4d44cf),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4fb23b(_0x4d44cf,Ot(_0x4d44cf,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x314aeb['authoredAt']),this['bind']('authoredAt')['to'](_0x314aeb),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',_0x314aeb,'authoredAt',this,'descriptionParts',(_0x34b4e7,_0x5e1a2e,_0x55e7ac)=>{const _0x57ac26=_0x55e7ac['map'](_0x15ad13=>It(_0x15ad13['content']))['join']('.\x20')+'.',_0x2fdb99=_0x314aeb['aiSource']&&'author'===_0x5b8d30['showAISource']?_0x5b8d30['aiAuthor']['name']:_0x314aeb['author']['name'],_0x168cda=Ot(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x34b4e7-0x1,_0x2fdb99,_0x5e1a2e?_0x5b8d30['formatDateTime'](_0x5e1a2e):'',new DOMParser()['parseFromString'](_0x57ac26,'text/html')['body']['textContent']]);return _0x314aeb['aiSource']&&'pill'===_0x5b8d30['showAISource']?_0x168cda+'\x20'+Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x168cda;}),this['focusables']=new _0x4aa696(),this['focusTracker']=new _0x48ab97(),this['keystrokes']=new _0x423b19(),this['focusCycler']=new _0xa2429c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2f182f=>_0x2f182f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x314aeb,this['_localUser']=_0x219eb9,this['_config']=_0x5b8d30,_0x5b8d30['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),tt(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x1bb5ec}=this['_config'];this['commentsListView']=new _0x1bb5ec(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',_0x38fd8a=>_0x38fd8a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x46b8b5,_0x3e3ef2)=>_0x46b8b5||!!_0x3e3ef2);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x134e36}=this['_config'],_0x33cc40=new _0x134e36(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5ec439=_0x33cc40['commentInputView'];return _0x33cc40['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5ec439,'value',(_0x5ddc4e,_0x383bcf,_0x537f3f)=>!!_0x537f3f||_0x5ddc4e&&!_0x383bcf),_0x5ec439['on']('submit',(_0x18c190,_0x97eb14)=>{this['fire']('addComment',_0x97eb14),_0x5ec439['editor']['setData']('');}),_0x5ec439['on']('cancel',()=>this['focus']()),_0x5ec439['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x33cc40;}},kn=class extends Cn{suggestionView;_descriptionElement;constructor(_0x140a41,_0xa2f3ef,_0x232b56,_0x1113f9){super(_0x140a41,_0xa2f3ef,_0x232b56,_0x1113f9),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3a6e62=>_0x3a6e62&&_0x3a6e62[0x0]?_0x3a6e62[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x220222,_0x4724c4)=>{let _0x11fe8c='';for(const _0x5b80b7 of _0x220222)_0x11fe8c+='<p>'+It(_0x5b80b7['content'],_0x5b80b7['color'])+'</p>';return _0x4724c4?_0x11fe8c:it(_0x11fe8c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1113f9['SuggestionView'](_0x140a41,_0xa2f3ef,{'formatDateTime':_0x1113f9['formatDateTime'],'showAISource':_0x1113f9['showAISource'],'aiAuthor':_0x1113f9['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 _0x161d12=this['bindTemplate'],_0xa20746=[this['suggestionView']];return this['commentsListView']&&_0xa20746['push'](this['commentsListView']),this['commentThreadInputView']&&_0xa20746['push'](this['commentThreadInputView']),_0xa20746['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x161d12['if']('isActive','ck-suggestion-wrapper--active'),_0x161d12['to']('type',_0x4f4896=>'ck-suggestion-'+_0x4f4896),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':_0x161d12['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xa20746};}['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 _0x55ceca{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x34d894,_0x1f339a,_0x416b10){super(_0x34d894),this['_model']=_0x1f339a,this['_config']=_0x416b10,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1f339a),this['acceptButton']=this['_createButton'](Ot(_0x34d894,'Accept\x20suggestion'),_0x4acbc3,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Ot(_0x34d894,'Discard\x20suggestion'),_0x5651fc,'ck-suggestion--discard','discardSuggestion','sw');const _0x1151de=!!_0x1f339a['aiSource']&&'author'===_0x416b10['showAISource'],_0x427749=_0x1151de?this['_createAIUser'](_0x416b10['aiAuthor']):_0x1f339a['author'],_0x14b1b7=_0x1151de&&!_0x416b10['aiAuthor']['avatar']?_0x18e16d:void 0x0;this['userView']=new _0x65354(_0x34d894,_0x427749,this['getUserViewNotificationText'](),_0x14b1b7),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4aa696([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x48ab97(),this['keystrokes']=new _0x423b19(),this['focusCycler']=new _0xa2429c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x484856=>_0x484856['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x158c07=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x158c07['innerHTML']=this['description'],this['on']('change:description',(_0x3958d0,_0x34c21f,_0x19b8df)=>{_0x158c07['innerHTML']=_0x19b8df;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x8c9722=this['bindTemplate'],_0x4ab0c3=[{'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':_0x8c9722['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x8c9722['to']('authoredAt',_0x141e8e=>this['_config']['formatDateTime'](_0x141e8e))}]}]},{'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']&&_0x4ab0c3['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x1a048e=new _0x4713de(this['locale']);_0x1a048e['set']({'icon':_0x33dc26,'label':Ot(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x4ab0c3['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x1a048e]});}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':_0x4ab0c3}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Ot(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Ot(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x332911){return new _0x2d2109({'id':'ck-ai-author','name':_0x332911['name'],'avatar':_0x332911['avatar'],'color':new _0x3f6ccc(0x0)});}_createButton(_0x45bba6,_0x56374a,_0x27848e,_0x2ac814,_0x365262){const _0x1815ba=new _0x175ace(this['locale']);return _0x1815ba['set']({'label':_0x45bba6,'icon':_0x56374a,'tooltip':!0x0,'tooltipPosition':_0x365262}),_0x1815ba['extendTemplate']({'attributes':{'class':_0x27848e}}),_0x1815ba['on']('execute',()=>{this['fire'](_0x2ac814,this['_model']['id']);}),_0x1815ba;}_setupKeyboardNavigation(){const _0xdf4134=this['element'];this['keystrokes']['listenTo'](_0xdf4134);for(const _0x162248 of this['focusables'])this['focusTracker']['add'](_0x162248['element']),this['keystrokes']['listenTo'](_0x162248['element']);this['keystrokes']['set']('enter',(_0x35e63e,_0x23492c)=>{_0xdf4134===_0x35e63e['target']&&(this['focusCycler']['focusFirst'](),_0x23492c());}),this['keystrokes']['set']('esc',(_0x3139c8,_0xeb5d88)=>{_0xdf4134!==_0x3139c8['target']&&(this['focus'](),_0xeb5d88());});}},yn=class extends _0x207f51{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[on,_0x4bea57,_0xd9a087,_0x37ac30,_0x111c98];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x39872e){super(_0x39872e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x28f219=this['editor']['config'];_0x28f219['define']('trackChanges.SuggestionThreadView',kn),_0x28f219['define']('trackChanges.SuggestionView',Rn),_0x28f219['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x28f219['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x3cbcb5,_0x2c875b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x22d1c6,_0x46f3d0]of this['_handleControllerBuffer']){const _0x2bec24=this['_suggestionToController']['has'](_0x22d1c6);_0x2bec24||_0x46f3d0?_0x2bec24&&_0x46f3d0&&this['_destroyController'](_0x22d1c6):this['_initializeController'](_0x22d1c6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x111c98)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3cbcb5,_0x2c875b);}init(){const _0x2eace3=this['editor'],_0x36134c=_0x2eace3['plugins']['get'](on),_0x3ff25a=_0x2eace3['plugins']['get'](_0x37ac30),_0x448427=_0x2eace3['plugins']['get'](_0x111c98),_0x21a5ff=_0x2eace3['plugins']['get'](_0xd9a087);this['_addUIComponentsToFactory'](),_0x448427['addSourceCollector'](()=>{const _0x22425a=[];for(const [_0x537acf,_0x1ae4ef]of Array['from'](this['_suggestionToController'])){const _0x28f0f0=_0x537acf['getAllAdjacentSuggestions'](),_0x158bb0=[];for(const _0x280ce7 of _0x28f0f0){if(!_0x280ce7['isInContent'])continue;if(_0x280ce7['isMultiRange']){_0x158bb0['push'](..._0x280ce7['getRanges']());continue;}const _0x166783=_0x280ce7['getFirstRange']();if(_0x158bb0['length']>0x0){const _0x1fdec4=_0x158bb0[0x0]['getJoined'](_0x166783);if(_0x1fdec4){_0x158bb0[0x0]=_0x1fdec4;continue;}}_0x158bb0['push'](_0x166783);}_0x22425a['push']([_0x1ae4ef['view'],_0x158bb0]);}return _0x22425a;}),this['listenTo'](_0x36134c,'suggestionLoaded',(_0x47a5ba,_0xfb2221)=>{this['listenTo'](_0xfb2221,'change:previous',(_0x485d73,_0x48b594,_0x1c9f21,_0x1eb4a0)=>{_0xfb2221['isInContent']&&(null==_0x1c9f21?(this['_updateController'](_0x1eb4a0['head']),this['_handleSuggestionControllerDelayed'](_0xfb2221,!0x1)):(this['_updateController'](_0x1c9f21['head']),null==_0x1eb4a0&&this['_handleSuggestionControllerDelayed'](_0xfb2221,!0x0)));}),null!==_0xfb2221['previous']?this['_updateController'](_0xfb2221['head']):this['_handleSuggestionControllerDelayed'](_0xfb2221,!0x1);}),this['listenTo'](_0x36134c,'suggestionUnloaded',(_0x2152a7,_0x1757ff,_0x5a7bc5)=>{this['stopListening'](_0x1757ff,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1757ff),this['_suggestionToController']['has'](_0x1757ff)&&this['_destroyController'](_0x1757ff),_0x5a7bc5&&this['_updateController'](_0x5a7bc5['head']);}),this['listenTo'](_0x36134c,'suggestionChanged',(_0x170aa3,_0x208ada)=>{this['_updateController'](_0x208ada);}),this['listenTo'](_0x3ff25a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x21a5ff,'addComment',(_0xdc34a,{threadId:_0x36f4ef,isFromAdapter:_0x4c95d0})=>{if(_0x4c95d0||!_0x36134c['hasSuggestion'](_0x36f4ef))return;const _0x38ef51=_0x36134c['getSuggestion'](_0x36f4ef);this['_suggestionToController']['get'](_0x38ef51)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3a5144=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xc9f4a4;for(const _0x4944c4 in _0x3a5144){const _0x24b559=_0x4944c4,_0x23ceac=_0x3a5144[_0x24b559];if('trackChangesLicenseKeyValid'==_0x23ceac||'trackChangesLicenseKeyInvalid'==_0x23ceac||'trackChangesLicenseKeyExpired'==_0x23ceac||'trackChangesLicenseKeyDomainLimit'==_0x23ceac||'trackChangesLicenseKeyNotAllowed'==_0x23ceac||'trackChangesLicenseKeyEvaluationLimit'==_0x23ceac||'trackChangesLicenseKeyUsageLimit'==_0x23ceac){delete _0x3a5144[_0x24b559],_0xc9f4a4=_0x23ceac,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xc9f4a4&&_0x3a5144['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xc9f4a4&&_0x3a5144['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xc9f4a4&&_0x3a5144['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xc9f4a4&&_0x3a5144['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xc9f4a4&&_0x3a5144['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0xc9f4a4&&_0x3a5144['_showLicenseError']('usageLimit');},0x3e8);}getAnnotationForSuggestion(_0x56dd51){const _0x3c096b=this['_suggestionToController']['get'](_0x56dd51);return _0x3c096b&&this['editor']['plugins']['get'](_0x37ac30)['getByInnerView'](_0x3c096b['view'])||null;}getSuggestionForAnnotation(_0x3ba4ea){const _0x1237f6=this['_viewToController']['get'](_0x3ba4ea['innerView']);return _0x1237f6?_0x1237f6['model']:null;}_refreshActiveMarkers(){const _0x2969c3=this['editor']['plugins']['get'](_0x37ac30),_0x4ad447=this['editor']['plugins']['get'](on),_0x38b54a=Array['from'](_0x2969c3['activeAnnotations'],_0x3a8b48=>_0x3a8b48['innerView'])['filter'](_0x2760fb=>this['_viewToController']['has'](_0x2760fb)),_0x574fae=[];for(const _0x5e5225 of _0x38b54a){const _0x4360d7=this['_viewToController']['get'](_0x5e5225)['model']['getAllAdjacentSuggestions']();_0x574fae['push'](..._0x4360d7['reduce']((_0xfd68ec,_0xf63bba)=>[..._0xfd68ec,..._0xf63bba['getMarkerNames']()],[]));}_0x4ad447['activeMarkers']=_0x574fae;}_addUIComponentsToFactory(){const _0x62f362=this['editor'],_0x3ae714=_0x62f362['locale'],_0x578c6c=Ot(_0x3ae714,'Track\x20changes'),_0xf6ff9b=new _0x4fb3f1([{'type':'switchbutton','model':new _0x4a1384({'withText':!0x0,'isToggleable':!0x0,'label':_0x578c6c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4a1384({'withText':!0x0,'label':Ot(_0x3ae714,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4a1384({'withText':!0x0,'label':Ot(_0x3ae714,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4a1384({'withText':!0x0,'label':Ot(_0x3ae714,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4a1384({'withText':!0x0,'label':Ot(_0x3ae714,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x62f362['plugins']['has']('TrackChangesPreview')&&_0xf6ff9b['addMany']([{'type':'separator'},{'type':'button','model':new _0x4a1384({'withText':!0x0,'label':Ot(_0x3ae714,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x30086a of _0xf6ff9b)if(Nn(_0x30086a)){const _0x5c493a=_0x62f362['commands']['get'](_0x30086a['model']['commandName']);_0x30086a['model']['bind']('isOn','isEnabled')['to'](_0x5c493a,'value','isEnabled');}_0x62f362['ui']['componentFactory']['add']('trackChanges',_0x11e3c3=>this['_createToolbarButton'](_0x11e3c3,_0xf6ff9b,_0x578c6c)),_0x62f362['ui']['componentFactory']['add']('menuBar:trackChanges',_0x35992c=>this['_createMenuBarMenu'](_0x35992c,_0xf6ff9b,_0x578c6c));}_createToolbarButton(_0x1d809f,_0x12ee1d,_0x5a163b){const _0x2a67f0=_0x3f85c5(_0x1d809f,_0x39fa1c),_0x387f07=this['editor']['commands']['get']('trackChanges');_0x2a67f0['buttonView']['set']({'tooltip':_0x5a163b,'label':_0x5a163b,'icon':_0x2729a7}),_0x2a67f0['buttonView']['bind']('isOn')['to'](_0x387f07,'value'),_0x2a67f0['buttonView']['on']('execute',()=>{_0x387f07['execute'](),this['editor']['editing']['view']['focus']();}),_0x32268b(_0x2a67f0,_0x12ee1d,{'role':'menu'});const _0xb090e5=[];for(const _0x3b61be of _0x12ee1d)Nn(_0x3b61be)&&_0xb090e5['push'](this['editor']['commands']['get'](_0x3b61be['model']['commandName']));const _0x30bdba=_0x2a67f0['buttonView'];return _0x30bdba['actionView']['unbind']('isEnabled'),_0x30bdba['arrowView']['unbind']('isEnabled'),_0x30bdba['actionView']['bind']('isEnabled')['to'](_0x387f07,'isEnabled'),_0x30bdba['arrowView']['bind']('isEnabled')['toMany'](_0xb090e5,'isEnabled',(..._0x4251a1)=>_0x4251a1['some'](_0x4da9b4=>_0x4da9b4)),_0x2a67f0['on']('execute',_0x50dffd=>{this['editor']['execute'](_0x50dffd['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2a67f0;}_createMenuBarMenu(_0x9ded15,_0x2f77e2,_0x2f79aa){const _0x441ec6=new _0x48c682(_0x9ded15),_0x440970=this['editor']['commands']['get']('trackChanges');_0x441ec6['buttonView']['set']({'label':_0x2f79aa,'icon':_0x2729a7});const _0x19f1d2=new _0x4ccdfc(_0x9ded15);for(const _0x4847b7 of _0x2f77e2){if('separator'==_0x4847b7['type']){_0x19f1d2['items']['add'](new _0xcacb92(_0x9ded15));continue;}const _0x4670f0=new _0x4e6ee6(_0x9ded15,_0x441ec6),_0x937e80=new _0x1ab247(_0x9ded15),_0x4188ce=_0x4847b7['model'];_0x937e80['bind'](...Object['keys'](_0x4188ce))['to'](_0x4188ce),_0x937e80['delegate']('execute')['to'](_0x441ec6),_0x937e80['on']('execute',()=>{this['editor']['execute'](_0x4188ce['commandName']),this['editor']['editing']['view']['focus']();}),_0x4670f0['children']['add'](_0x937e80),_0x19f1d2['items']['add'](_0x4670f0);}return _0x441ec6['bind']('isEnabled')['to'](_0x440970,'isEnabled'),_0x441ec6['panelView']['children']['add'](_0x19f1d2),_0x441ec6;}_initializeController(_0x40edcc){const _0x57c59c=this['editor'],_0x5ae96b=_0x57c59c['config'],_0x54d464=_0x57c59c['plugins']['get'](_0x37ac30),_0x3ae0a6=_0x57c59c['plugins']['get'](_0xd9a087),_0x275cc9=_0x57c59c['plugins']['get'](_0x111c98),_0x5333d7=_0x57c59c['plugins']['get'](_0x4bea57)['me'],_0x339c96=_0x5ae96b['get']('trackChanges')['SuggestionThreadView'],_0x193e52=_0x5ae96b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1ba548,CommentThreadInputView:_0x571ac3}=_0x57c59c['plugins']['get']('CommentsUI');let _0x31f3c9,_0x27d15b,_0x565695;this['_annotationViews']['has'](_0x40edcc['id'])?(_0x27d15b=this['_annotationViews']['get'](_0x40edcc['id']),_0x31f3c9=_0x27d15b['mainView']):(_0x31f3c9=new _0x339c96(_0x57c59c['locale'],_0x40edcc,_0x5333d7,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5ae96b['get']('comments.editorConfig'),'licenseKey':_0x5ae96b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5ae96b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5ae96b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5ae96b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xafd2e(_0x5ae96b['get']('locale'),_0x57c59c['locale']),'CommentView':_0x5ae96b['get']('comments')['CommentView'],'CommentsListView':_0x1ba548,'CommentThreadInputView':_0x571ac3,'SuggestionView':_0x193e52,'showAISource':_0x5ae96b['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x5ae96b['get']('trackChanges.aiAuthor'),'name':_0x5ae96b['get']('trackChanges.aiAuthor')?.['name']||Ot(_0x57c59c['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x31f3c9['suggestionView']['acceptButton']['on']('execute',()=>{_0x57c59c['editing']['view']['focus']();}),_0x31f3c9['suggestionView']['discardButton']['on']('execute',()=>{_0x57c59c['editing']['view']['focus']();}),_0x27d15b=_0x54d464['createAnnotationView'](this['editor']['locale'],_0x31f3c9),_0x27d15b['bind']('isDirty')['to'](_0x31f3c9,'isDirty'),_0x27d15b['bind']('length')['to'](_0x31f3c9),_0x27d15b['bind']('type')['to'](_0x31f3c9,'type',_0x5b7581=>'suggestion-'+_0x5b7581),_0x31f3c9['on']('escape',()=>{_0x565695['fire']('escape');}),this['_annotationViews']['set'](_0x40edcc['id'],_0x27d15b));const _0x1dac16=_0x3ae0a6['createCommentThreadController'](_0x40edcc['commentThread'],_0x31f3c9),_0x40c56a=new bn(_0x57c59c,_0x40edcc,_0x31f3c9,_0x1dac16),_0x18d19f=_0x40edcc['getAllAdjacentSuggestions']()['filter'](_0x3f18f8=>_0x3f18f8['isInContent']);_0x31f3c9['descriptionParts']=_0x57c59c['plugins']['get'](on)['descriptionFactory']['getDescriptions'](_0x18d19f),this['_suggestionToController']['set'](_0x40edcc,_0x40c56a),this['_viewToController']['set'](_0x31f3c9,_0x40c56a);const _0x556380=()=>{const _0x39e8e3=[],_0x1fb0dd=_0x40edcc['getAllAdjacentSuggestions']()['filter'](_0x4ce2f5=>_0x4ce2f5['isInContent']);for(const _0x4ad830 of _0x1fb0dd)_0x39e8e3['push'](..._0x4ad830['getMarkers']());return _0x1f7c4b(_0x57c59c['editing'],_0x39e8e3);};_0x565695=_0x54d464['createAnnotation']({'view':_0x27d15b,'target':_0x556380,'type':()=>'suggestion-'+_0x40c56a['view']['type'],'isVisible':!!_0x556380()}),_0x3ae0a6['_bindAnnotationToEditors'](_0x31f3c9,_0x565695),_0x54d464['add'](_0x565695),_0x275cc9['registerAnnotation'](_0x565695);}_destroyController(_0x3b2134){const _0x26d5df=this['editor']['plugins']['get'](_0xd9a087),_0x311fe4=this['editor']['plugins']['get'](_0x37ac30),_0x4b9cdf=this['_suggestionToController']['get'](_0x3b2134),_0x4bf5d6=_0x4b9cdf['view'],_0x48c68f=_0x311fe4['getByInnerView'](_0x4bf5d6);_0x26d5df['_unbindEditors'](_0x4bf5d6),_0x48c68f&&_0x311fe4['remove'](_0x48c68f),this['_suggestionToController']['delete'](_0x3b2134),this['_viewToController']['delete'](_0x4bf5d6),_0x4b9cdf['destroy']();}_updateController(_0x5e5d04){if(!_0x5e5d04['isInContent']||!this['_suggestionToController']['has'](_0x5e5d04))return;const _0x2c65ab=this['editor']['plugins']['get'](on),_0x2f5da3=this['_suggestionToController']['get'](_0x5e5d04),_0x11ed6b=_0x5e5d04['getAllAdjacentSuggestions']();_0x2f5da3['view']['descriptionParts']=_0x2c65ab['descriptionFactory']['getDescriptions'](_0x11ed6b);}destroy(){for(const _0x38cb24 of this['_suggestionToController']['keys']())this['_destroyController'](_0x38cb24);for(const _0x5a71fe of this['_annotationViews']['values']())_0x5a71fe['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Nn(_0x38cdfb){return'model'in _0x38cdfb;}var Sn=class extends _0x207f51{static get requires(){return[on,yn,_0x3db655];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x32a8b1){this['editor']['plugins']['get'](on)['adapter']=_0x32a8b1;}get adapter(){return this['editor']['plugins']['get'](on)['adapter'];}addSuggestion(_0x3ab5f3){return this['editor']['plugins']['get'](on)['addSuggestionData'](_0x3ab5f3);}getSuggestions({skipNotAttached:_0x4ce382=!0x1,toJSON:_0x1c2d38=!0x1}={}){return this['editor']['plugins']['get'](on)['getSuggestions']({'skipNotAttached':_0x4ce382,'toJSON':_0x1c2d38});}getSuggestion(_0x1c8741){return this['editor']['plugins']['get'](on)['getSuggestion'](_0x1c8741);}};const Mn=['Pagination'];var On=class extends _0x207f51{static get requires(){return[on];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x47e458=this['editor'];if(_0x47e458['config']['define']('trackChangesData.editorCreator',_0x28a0b2=>{const _0x1b6528=_0x47e458['model']['document']['getRootNames']()['reduce']((_0x4533de,_0x334d3c)=>(_0x4533de[_0x334d3c]='',_0x4533de),{});return _0x47e458['constructor']['create'](_0x1b6528,_0x28a0b2);}),'function'!=typeof _0x47e458['config']['get']('trackChangesData')['editorCreator'])throw new _0x4625d4('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x45a57c){return Bn(this['editor'],!0x0,_0x45a57c);}getDataWithDiscardedSuggestions(_0x26ab74){return Bn(this['editor'],!0x1,_0x26ab74);}},wn=class extends _0x207f51{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x8b7acb){super(_0x8b7acb),this['result']='end',_0x8b7acb['editing']['view']['_overlayModeHint']='auto',_0x8b7acb['_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(_0x4d231d){return void 0x0!==_0x4d231d['getRootsAttributes'];}async function Bn(_0x6173c5,_0x19de8f,_0x2dc14d){const _0x117ff8=_0x20ca9f(_0x6173c5,Mn);if(_0x117ff8['plugins']['push'](on,wn),Fn(_0x6173c5)){_0x117ff8['roots']=Object['create'](null);for(const _0x2b02d7 of _0x6173c5['model']['document']['getRootNames']())_0x117ff8['roots'][_0x2b02d7]={'modelAttributes':_0x6173c5['getRootAttributes'](_0x2b02d7)};}const _0x3834b1=document['createDocumentFragment'](),_0x46998a=_0x6173c5['config']['get']('trackChangesData')['editorCreator'],_0x47962b=await _0x46998a(_0x117ff8,()=>function(_0x6dc6ee){const _0x30422b=document['createElement']('div');return _0x6dc6ee['appendChild'](_0x30422b),_0x30422b;}(_0x3834b1));!function(_0x4bcf1b,_0x2e5d52){const _0x1565c2=_0x4bcf1b['model']['document']['getRootNames']()['reduce']((_0x9e3b3c,_0x1375c8)=>(_0x9e3b3c[_0x1375c8]=_0x4bcf1b['data']['get']({'rootName':_0x1375c8}),_0x9e3b3c),{}),_0x4426b2=_0x4bcf1b['plugins']['get']('Users')['users']['map'](_0x13b6a8=>({'id':_0x13b6a8['id'],'name':_0x13b6a8['name']})),_0x172ece=_0x4bcf1b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x35cec7=_0x4bcf1b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1a2a6a=_0x2e5d52['plugins']['get']('Users'),_0x15f497=_0x2e5d52['plugins']['get']('TrackChangesEditing'),_0x62e393=_0x2e5d52['plugins']['get']('CommentsRepository');for(const _0x5d5267 of _0x62e393['getCommentThreads']())_0x5d5267['remove']();for(const _0x311998 of _0x4426b2)_0x1a2a6a['getUser'](_0x311998['id'])||_0x1a2a6a['addUser'](_0x311998);_0x1a2a6a['me']||_0x1a2a6a['useAnonymousUser']();for(const _0x51ba34 of _0x35cec7)_0x62e393['addCommentThread'](_0x51ba34);for(const _0x2c1e39 of _0x172ece)_0x15f497['addSuggestionData'](_0x2c1e39);_0x2e5d52['data']['set'](_0x1565c2);}(_0x6173c5,_0x47962b),_0x47962b['execute'](_0x19de8f?'acceptAllSuggestions':'discardAllSuggestions');const _0x10e950=Fn(_0x47962b)?_0x47962b['getFullData'](_0x2dc14d):_0x47962b['data']['get'](_0x2dc14d);return await _0x47962b['destroy'](),_0x10e950;}var vn=class extends _0x55ceca{options;constructor(_0x259810,_0x5d8660){super(_0x259810),this['options']=_0x5d8660,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(_0xefd3f9,_0x1585b8){if(!this['element'])return;const _0x3e4f11=[];for(const [_0x296510,_0x1f2876]of _0xefd3f9){const _0x51a869=document['createElement']('div');_0x51a869['setAttribute']('data-ck-root-name',_0x296510),_0x51a869['className']=_0x1f2876['classes']+'\x20ck-track-changes-preview__root-container',_0x51a869['innerHTML']=_0x1f2876['content'],_0x3e4f11['push'](_0x51a869);}_0x1585b8(this['element'],_0x3e4f11),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Dn=class extends _0x3c3473{constructor(_0x4188f0){super(_0x4188f0),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x1ae854=this['editor'],_0xf6aabb=_0x1ae854['locale'],_0x22b1eb=_0x1ae854['plugins']['get']('Dialog');let _0xa5d917;const _0xb01354=function(_0x577731){const _0x31e8ee={};if('editables'in _0x577731['ui']['view']){for(const [_0x52d73a,_0x7d8ec7]of Object['entries'](_0x577731['ui']['view']['editables']))_0x31e8ee[_0x52d73a]=_0x7d8ec7['element'];}else _0x31e8ee[_0x577731['model']['document']['getRootNames']()[0x0]]=_0x577731['ui']['view']['editable']['element'];return _0x31e8ee;}(_0x1ae854),_0x1df184=function(_0x38e36c){let _0x265162=0x0;for(const _0x5b7041 of Object['values'](_0x38e36c))_0x265162=Math['max'](_0x265162,_0x5b7041['getBoundingClientRect']()['width']);let _0x3a58f6=0x0;for(const _0x495a0b of Object['values'](_0x38e36c))_0x3a58f6+=_0x495a0b['getBoundingClientRect']()['height'];const _0x5f59a8=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x265162,'height':Math['min'](_0x3a58f6,_0x5f59a8)};}(_0xb01354);_0x22b1eb['show']({'id':'finalContentPreview','title':Ot(_0xf6aabb,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new vn(_0xf6aabb,{'dialogRects':_0x1df184}),'onHide':()=>{_0xa5d917['detachFromDom']();},'onShow':()=>{_0x1ae854['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1b6bfb=>{const _0x447dd4=this['_standarizeRootsData'](_0x1b6bfb,_0x1ae854,_0xb01354);_0x22b1eb['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x447dd4,_0x1ae854['config']['get']('trackChanges.preview.renderFunction'));}),_0xa5d917=new _0x3b14f0(_0xf6aabb,[_0x22b1eb['view']]),_0xa5d917['attachToDom'](),_0xa5d917['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1ae854['once']('destroy',()=>{_0xa5d917['detachFromDom']();});const _0x2c4f58=_0x22b1eb['view']['headerView']['class'];_0x22b1eb['view']['headerView']['class']=_0x2c4f58?_0x2c4f58+'\x20ck-reset_all':'ck-reset_all',_0x22b1eb['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x22b1eb['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1df4e6=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x31f9a5=_0x1df4e6['previewMode'],_0x4e2dbe={};if('$labels'===_0x31f9a5){for(const _0x1f896a of _0x1df4e6['getMergeFieldsIds']())_0x4e2dbe[_0x1f896a]=_0x1df4e6['getLabel'](_0x1f896a)||_0x1f896a;}else{const _0x4fa6df='$defaultValues'===_0x31f9a5?_0x1df4e6['getDefaultValues']():_0x1df4e6['getDataSetValues'](_0x31f9a5,!0x0);for(const _0x5635bf of Object['entries'](_0x4fa6df)){const [_0x5e6fab,_0x11c52c]=_0x5635bf;_0x4e2dbe[_0x5e6fab]=null!==_0x11c52c?_0x11c52c:_0x1df4e6['getLabel'](_0x5e6fab)||_0x5e6fab;}}return{'mergeFieldsData':_0x4e2dbe};}_standarizeRootsData(_0x5279b1,_0x114e72,_0x5e3f9b){let _0x1ca966;_0x1ca966='string'==typeof _0x5279b1?{[_0x114e72['model']['document']['getRootNames']()[0x0]]:_0x5279b1}:_0x5279b1;const _0x1bf1bf=this['_fixMediaEmbeds'](_0x1ca966,_0x114e72);return function(_0x9ef71d,_0x5814eb){for(const [_0xbd88a7,_0x439e7f]of _0x9ef71d)_0x439e7f['classes']=_0x5814eb[_0xbd88a7]['classList']['value']['replace']('ck-focused','');return _0x9ef71d;}(this['_sortRoots'](_0x114e72)['reduce']((_0x18d82c,_0x2ad336)=>(_0x18d82c['push']([_0x2ad336,{'content':_0x1bf1bf[_0x2ad336],'classes':''}]),_0x18d82c),[]),_0x5e3f9b);}['_fixMediaEmbeds'](_0x426b6c,_0x9adf63){if(!_0x9adf63['plugins']['has']('MediaEmbedEditing'))return _0x426b6c;const _0xdcfe7c=_0x9adf63['plugins']['get']('MediaEmbedEditing');for(const [_0x2b396f,_0x3cb612]of Object['entries'](_0x426b6c)){const _0x280bf6=document['createElement']('div');_0x280bf6['innerHTML']=_0x3cb612,_0x280bf6['querySelectorAll']('figure.media')['forEach'](_0x17ed4e=>{const _0x21ae89=_0x17ed4e['querySelector']('oembed');if(_0x21ae89){const _0x2c6f7f=_0x21ae89['getAttribute']('url');if(_0x2c6f7f){const _0x4394d8=_0xdcfe7c['registry']['getMediaViewElement'](new at(_0x9adf63['editing']['view']['document']),_0x2c6f7f,{'elementName':'','renderForEditingView':!0x0}),_0x590971=document['createElement']('div');_0x590971['classList']['add']('ck-media__wrapper'),_0x4394d8['render'](_0x590971,_0x9adf63['editing']['view']['domConverter']),_0x21ae89['replaceWith'](_0x590971);}}}),_0x426b6c[_0x2b396f]=_0x280bf6['innerHTML'];}return _0x426b6c;}_sortRoots(_0x366cb0){if(!function(_0x1d2209){return void 0x0!==_0x1d2209['getRootsAttributes'];}(_0x366cb0))return _0x366cb0['model']['document']['getRootNames']();const _0x30db24=[],_0x327fb4=new Map();for(const _0x24b2ca of _0x366cb0['model']['document']['getRootNames']()){const _0x4947f5=_0x366cb0['editing']['view']['getDomRoot'](_0x24b2ca)['getClientRects']()['item'](0x0);_0x30db24['push'](_0x24b2ca),_0x327fb4['set'](_0x24b2ca,_0x4947f5);}return _0x30db24['sort']((_0x6fffc8,_0x500f75)=>{const _0x1a4014=_0x327fb4['get'](_0x6fffc8),_0x3480fe=_0x327fb4['get'](_0x500f75);return _0x1a4014['y']-_0x3480fe['y']||_0x1a4014['x']-_0x3480fe['x'];}),_0x30db24;}},Un=class extends _0x207f51{static get requires(){return[On,_0x46fe2c];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b3eeb){super(_0x3b3eeb),_0x3b3eeb['commands']['add']('previewFinalContent',new Dn(this['editor'])),_0x3b3eeb['config']['define']('trackChanges.preview.renderFunction',(_0x33a4f4,_0x45222e)=>{for(const _0x2779dd of _0x45222e)_0x33a4f4['appendChild'](_0x2779dd);});}};export{pt as AcceptSuggestionCommand,Cn as BaseSuggestionThreadView,Lt as DiscardSuggestionCommand,yt as ExecuteOnAllSuggestionsCommand,Nt as ExecuteOnSelectedSuggestionsCommand,Dn as PreviewFinalContentCommand,Mt as Suggestion,wt as SuggestionDescriptionFactory,kn as SuggestionThreadView,Rn as SuggestionView,Sn as TrackChanges,_t as TrackChangesCommand,On as TrackChangesData,wn as TrackChangesDataGetter,on as TrackChangesEditing,Un as TrackChangesPreview,yn as TrackChangesUI};
|
|
23
|
+
import{Command as _0xaf0ba9,PendingActions as _0x4f378f,Plugin as _0x4020fb}from'@ckeditor/ckeditor5-core';import{Annotations as _0x23acb0,Comments as _0x2dcefb,CommentsRepository as _0x589aca,EditorAnnotations as _0x5cb279}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x11ddd9,Collection as _0x2b57b2,FocusTracker as _0x450913,KeystrokeHandler as _0xa6d3ab,ObservableMixin as _0x4d58c0,getEnvKeystrokeText as _0x152bff,insertToPriorityArray as _0x4cfdd4,logWarning as _0xf977c6,priorities as _0x2601b1,uid as _0x3469da}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x3fb6a5,IconCancel as _0x519734,IconCheck as _0x182d28,IconSparkle as _0x884bc0,IconTrackChanges as _0x14985b}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x330d16,Dialog as _0x517031,FocusCycler as _0x32ceb0,ListSeparatorView as _0x2a107e,MenuBarMenuListItemButtonView as _0x31a96b,MenuBarMenuListItemView as _0x5e5dfa,MenuBarMenuListView as _0x32fb77,MenuBarMenuView as _0x4e0336,SplitButtonView as _0x324a82,UIModel as _0x4d678c,View as _0x383d36,ViewCollection as _0x15b132,addListToDropdown as _0x6a017e,createDropdown as _0x3a70db,normalizeColorOptions as _0xcf6ad4}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x3853bf,CollaborationUserColor as _0x2db1dd,DocumentCompare as _0x1410f4,FOCUS_ANNOTATION_KEYSTROKE as _0x512569,LateFocusButtonView as _0x152c47,PillView as _0x8950b4,SuggestionsConversion as _0x12a1f4,User as _0x101383,UserView as _0xe1f228,Users as _0x3c0b17,fixElementSuggestionRange as _0x96f029,getAllMarkersDomElementsSorted as _0x22d538,getDateTimeFormatter as _0x1148bd,hashObject as _0x550da2,isInvalidAttributeOperation as _0xc6b88a,sanitizeEditorConfig as _0x5ceafb,setupThreadKeyboardNavigation as tt,splitSuggestionMarkerName as et,surroundingMarkersDetector as nt,trimHtml as it}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as st,ModelLivePosition as rt,ModelLiveRange as ot,ViewDowncastWriter as at}from'@ckeditor/ckeditor5-engine';import{cloneDeep as ct,isEqual as lt,omit as ut,set as dt,unset as ht}from'es-toolkit/compat';import{ClipboardMarkersUtils as gt,ClipboardPipeline as ft}from'@ckeditor/ckeditor5-clipboard';import{Delete as mt,Input as Et}from'@ckeditor/ckeditor5-typing';import{Enter as Tt}from'@ckeditor/ckeditor5-enter';var _t=class extends _0xaf0ba9{['_enabledCommands'];constructor(_0x4ed91c,_0x521dbd){super(_0x4ed91c),this['_enabledCommands']=_0x521dbd,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 _0x2825bc of this['editor']['commands']['commands']())_0x2825bc['affectsData']&&!this['_enabledCommands']['has'](_0x2825bc)&&_0x2825bc['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x33ecc4 of this['editor']['commands']['commands']())_0x33ecc4['affectsData']&&!this['_enabledCommands']['has'](_0x33ecc4)&&_0x33ecc4['clearForceDisabled']('TrackChangesCommand');}},pt=class extends _0xaf0ba9{_suggestions;constructor(_0x505c76,_0xb8150e){super(_0x505c76),this['_suggestions']=_0xb8150e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x2edb94){const _0x462709=this['_suggestions']['get'](_0x2edb94);if(!_0x462709)throw new _0x11ddd9('track-changes-accept-suggestion-not-found',this);const _0x20e2af=_0x462709['getRanges']();this['editor']['model']['canEditAt'](_0x20e2af)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x462709);}},Lt=class extends _0xaf0ba9{_suggestions;constructor(_0x10ca0c,_0x1ecf99){super(_0x10ca0c),this['_suggestions']=_0x1ecf99,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x4a9d98){const _0x50221f=this['_suggestions']['get'](_0x4a9d98);if(!_0x50221f)throw new _0x11ddd9('track-changes-discard-suggestion-not-found',this);const _0x346545=_0x50221f['getRanges']();this['editor']['model']['canEditAt'](_0x346545)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x50221f);}};function It(_0x1b5799,_0x40394e){let _0x1b713d='';return _0x1b713d+=_0x1b5799['split']('*')['map']((_0x32658f,_0x1f7986)=>_0x1f7986%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+At(_0x32658f)+'</span>':At(_0x32658f))['join'](''),_0x40394e&&(_0x1b713d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x40394e['value']+'\x22\x20title=\x22'+_0x40394e['title']+'\x22></span>'),_0x1b713d;}function At(_0x74128a){const _0x403492=document['createElement']('span');return _0x403492['innerText']=_0x74128a,_0x403492['innerHTML'];}function bt(_0x360cf3){return _0x360cf3['sort']((_0x4c8859,_0x2cfc4a)=>'attribute'===_0x4c8859['type']&&'attribute'!==_0x2cfc4a['type']?-0x1:'attribute'!==_0x4c8859['type']&&'attribute'===_0x2cfc4a['type']?0x1:'deletion'==_0x4c8859['type']&&'deletion'!=_0x2cfc4a['type']?-0x1:'deletion'!=_0x4c8859['type']&&'deletion'==_0x2cfc4a['type']?0x1:0x0);}function Ct(_0x3add06,_0x120f61){let _0x27cc48,_0x4367ea=0x0;const _0x5a74b1=[],_0x37c434=_0x120f61['schema'];for(;_0x4367ea<_0x3add06['length'];){const _0x1cab0b=_0x3add06[_0x4367ea],_0x1ed9e4=_0x3add06[_0x4367ea+0x1];_0x27cc48||(_0x27cc48=_0x120f61['createPositionBefore'](_0x1cab0b)),kt(_0x120f61,_0x1cab0b,_0x1ed9e4)||(_0x5a74b1['push'](_0x120f61['createRange'](_0x27cc48,_0x37c434['isObject'](_0x1cab0b)?_0x120f61['createPositionAfter'](_0x1cab0b):_0x120f61['createPositionAt'](_0x1cab0b,'end'))),_0x27cc48=null),_0x4367ea++;}return _0x5a74b1;}function kt(_0x2df765,_0x3c936b,_0x140b3a){if(!_0x140b3a)return!0x1;const _0x5b21b2=_0x2df765['createPositionAfter'](_0x3c936b),_0x44b8e0=_0x2df765['createPositionBefore'](_0x140b3a);return _0x5b21b2['isTouching'](_0x44b8e0);}function Rt(_0x142a2a,_0x430d19,_0x2c51f9){for(;_0x2c51f9['length'];){const _0x219b68=_0x2c51f9['splice'](0x0,0x64);_0x142a2a['change'](()=>{for(const _0x3db697 of _0x219b68)_0x3db697['isInContent']&&_0x430d19['execute'](_0x3db697['id']);});}}var yt=class extends _0xaf0ba9{['_command'];_suggestions;constructor(_0x1c550a,_0x1b37e6,_0x13e442){super(_0x1c550a),this['_command']=_0x1b37e6,this['_suggestions']=_0x13e442,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x49ead9=Array['from'](this['_suggestions']['values']())['some'](_0x5964ff=>_0x5964ff['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x49ead9;}execute(){const _0x4f8112=bt(Array['from'](this['_suggestions']['values']()));for(const _0x393c38 of _0x4f8112){const _0x40a59b=_0x393c38['getRanges']();if(!this['editor']['model']['canEditAt'](_0x40a59b))return;}Rt(this['editor']['model'],this['_command'],_0x4f8112);}},Nt=class extends _0xaf0ba9{['_command'];_suggestions;_selectedSuggestions;constructor(_0x9b18a4,_0x5f2536,_0x526c59){super(_0x9b18a4),this['_command']=_0x5f2536,this['_suggestions']=_0x526c59,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x389bce=this['editor']['model']['document']['selection'],_0x4404b8=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x292bdc,_0x27bbb3){const _0x21b014=Array['from'](_0x292bdc['getRanges']()),_0x375633=new Set();for(const _0x57ca96 of _0x27bbb3)if(_0x57ca96['isInContent']){for(const _0x3271cb of _0x21b014)for(const _0x2f775b of _0x57ca96['getRanges']())(_0x3271cb['isIntersecting'](_0x2f775b)||_0x292bdc['isCollapsed']&&!_0x57ca96['isMultiRange']&&_0x57ca96['next']&&_0x2f775b['end']['isTouching'](_0x3271cb['start']))&&_0x375633['add'](_0x57ca96);}return _0x375633;}(_0x389bce,_0x4404b8),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x118c66=bt(Array['from'](this['_selectedSuggestions']));for(const _0x5bea16 of _0x118c66){const _0x2329f5=_0x5bea16['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2329f5))return;}Rt(this['editor']['model'],this['_command'],_0x118c66);}};const St=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4d58c0();var Mt=class Suggestion extends St{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x52c6cc,_0x2cbcb9){super(),this['id']=_0x2cbcb9['id'],this['type']=_0x2cbcb9['type'],this['subType']=_0x2cbcb9['subType']||null,this['author']=_0x2cbcb9['author'],this['creator']=_0x2cbcb9['creator']||_0x2cbcb9['author'],this['data']=null,this['_originalSuggestionId']=_0x2cbcb9['originalSuggestionId']||null,this['_model']=_0x52c6cc,this['_onAccept']=_0x2cbcb9['onAccept'],this['_onDiscard']=_0x2cbcb9['onDiscard'],this['_onAttributesChange']=_0x2cbcb9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2cbcb9['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 _0x3968ac=this;for(;_0x3968ac['previous'];)_0x3968ac=_0x3968ac['previous'];return _0x3968ac;}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'](_0x5a012d){this['_markerNames']['add'](_0x5a012d);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x20337c=>this['_model']['markers']['get'](_0x20337c))['filter'](_0x3d6273=>_0x3d6273);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4ee232=>{for(const _0x4639f2 of this['getMarkers']())_0x4ee232['removeMarker'](_0x4639f2);}),this['_markerNames']['clear']();}['removeMarker'](_0x59702){this['_model']['change'](_0x26702c=>{_0x26702c['removeMarker'](_0x59702);}),this['_markerNames']['delete'](_0x59702);}['addRange'](_0x220f34){const _0x3b1b2f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x3b1b2f),this['_model']['change'](_0x43e681=>{_0x43e681['addMarker'](_0x3b1b2f,{'range':_0x220f34,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x257f50){for(const _0x333351 of this['getRanges']())if(_0x333351['isIntersecting'](_0x257f50))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x1f2c20=>_0x1f2c20['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x51db0d,_0x1bfdba)=>[..._0x51db0d,..._0x1bfdba['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x327077=this['getRanges']();if(0x1!=_0x327077['length'])return null;const _0x30dbf2=_0x327077[0x0],_0x43a5d2=_0x30dbf2['start']['nodeAfter'],_0x51b038=_0x30dbf2['end']['nodeBefore'];return _0x43a5d2 instanceof st?_0x43a5d2!=_0x51b038?null:_0x43a5d2: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 _0x483803=[];let _0x167197=this['head'];for(;_0x167197;)_0x483803['push'](_0x167197),_0x167197=_0x167197['next'];return _0x483803;}setAttribute(_0x2e6a05,_0x106383){const _0x239967=ct(this['attributes']);dt(_0x239967,_0x2e6a05,_0x106383),lt(_0x239967,this['attributes'])||(this['attributes']=_0x239967,this['_onAttributesChange'](_0x239967));}removeAttribute(_0x214ff3){const _0xea90be=ct(this['attributes']);ht(_0xea90be,_0x214ff3),lt(_0xea90be,this['attributes'])||(this['attributes']=_0xea90be,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 _0x3469da()['substr'](0x1,0x5);}};function Ot(_0x3f9633,_0x182caf,_0x5cbc82){const _0x4dff5e=_0x3f9633['t'],t=_0x3f9633['t'];switch(_0x182caf){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',_0x5cbc82);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5cbc82);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5cbc82);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5cbc82);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5cbc82);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',_0x5cbc82);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5cbc82);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',_0x5cbc82);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5cbc82);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5cbc82);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5cbc82);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5cbc82);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5cbc82);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5cbc82);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5cbc82);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5cbc82);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5cbc82);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5cbc82);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5cbc82);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5cbc82);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5cbc82);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5cbc82);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5cbc82);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5cbc82);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5cbc82);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'},_0x5cbc82);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5cbc82);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5cbc82);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5cbc82);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5cbc82);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5cbc82);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5cbc82);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5cbc82);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'},_0x5cbc82);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'},_0x5cbc82);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5cbc82);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5cbc82);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5cbc82);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5cbc82);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'},_0x5cbc82);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5cbc82);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'},_0x5cbc82);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'},_0x5cbc82);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5cbc82);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'},_0x5cbc82);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5cbc82);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'},_0x5cbc82);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5cbc82);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5cbc82);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5cbc82);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5cbc82);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5cbc82);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'},_0x5cbc82);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5cbc82);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 _0x4dff5e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5cbc82);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4dff5e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5cbc82);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5cbc82);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'},_0x5cbc82);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'},_0x5cbc82);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'},_0x5cbc82);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x182caf;}}var wt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x28bbef,_0x306514){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x28bbef,this['_locale']=_0x306514;}getDescriptions(_0x27d7ce){const _0x2ee3e9=[],_0x45d537=new Set(),_0x1ad4ba=new Set();for(let _0x2ed572=0x0;_0x2ed572<_0x27d7ce['length'];_0x2ed572++){const _0x3fc371=_0x27d7ce[_0x2ed572];if(!_0x3fc371['isInContent'])continue;const _0x5e3439=this['_handleCustomCallbackDescription'](_0x3fc371);if(_0x5e3439){if(null!=_0x3fc371['subType']){if(_0x45d537['has'](_0x3fc371['subType']))continue;_0x45d537['add'](_0x3fc371['subType']);}_0x2ee3e9['push'](_0x5e3439);}else{if('attribute'==_0x3fc371['type']){const _0x31d4c6=_0x3fc371['data']['key'];if(_0x1ad4ba['has'](_0x31d4c6))continue;_0x1ad4ba['add'](_0x3fc371['data']['key']),'$elementName'==_0x31d4c6?this['_handleRenameSuggestionDescription'](_0x2ee3e9,_0x3fc371):this['_handleAttributeSuggestionDescription'](_0x2ee3e9,_0x3fc371);continue;}'insertion'!=_0x3fc371['type']&&'deletion'!=_0x3fc371['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2ee3e9,_0x3fc371,_0x27d7ce[_0x2ed572+0x1]);}}return this['_resolveDescriptionItems'](_0x2ee3e9);}registerDescriptionCallback(_0x12de00){this['_customCallbacks']['push'](_0x12de00);}registerElementLabel(_0x45ac5c,_0x36f76a,_0x39abe2=_0x2601b1['normal']){'function'==typeof _0x45ac5c?_0x4cfdd4(this['_itemLabelsCallbacks'],{'matchingCallback':_0x45ac5c,'label':_0x36f76a,'priority':_0x39abe2}):this['_itemLabels']['set'](_0x45ac5c,_0x36f76a);}registerAttributeLabel(_0x28879a,_0x3e95ff){this['_attributeLabels']['set'](_0x28879a,_0x3e95ff);}getItemLabel(_0x5ef1c1,_0x1f07c6=0x1){let _0x4ca8bc;for(const _0x53eff3 of this['_itemLabelsCallbacks'])if(_0x53eff3['matchingCallback'](_0x5ef1c1)){_0x4ca8bc=_0x53eff3['label'];break;}return _0x4ca8bc||(_0x4ca8bc=this['_itemLabels']['get'](_0x5ef1c1['name'])),_0x4ca8bc?_0x4ca8bc(_0x1f07c6):0x1!==_0x1f07c6?_0x1f07c6+'\x20'+_0x5ef1c1['name']+'s':''+_0x5ef1c1['name'];}_addDescriptionItems(_0x448319,_0x4812b5){const _0x3e530e=_0x4812b5['getFirstRange']()['getWalker'](),_0x410b07='insertion'==_0x4812b5['type']?'add':'remove';for(const _0x59e1ec of _0x3e530e){const _0x53d508=_0x59e1ec['item'],_0xf17387=_0x448319[_0x448319['length']-0x1];if(_0x53d508['is']('$textProxy'))_0xf17387&&_0xf17387['type']['indexOf']('Container')>-0x1&&_0x448319['pop'](),_0xf17387&&'text'==_0xf17387['type']?_0xf17387[_0x410b07]+=_0x53d508['data']:_0x448319['push']({'type':'text','add':'add'==_0x410b07?_0x53d508['data']:'','remove':'remove'==_0x410b07?_0x53d508['data']:''});else{if(this['_schema']['isObject'](_0x53d508)){const _0x1c98fd=_0x53d508;if(_0xf17387&&_0xf17387['type']['indexOf']('Container')>-0x1&&_0x448319['pop'](),'elementEnd'==_0x59e1ec['type'])continue;_0xf17387&&_0xf17387['type']==_0x410b07+'Object'&&_0xf17387['element']['name']==_0x1c98fd['name']?_0xf17387['quantity']++:_0x448319['push']({'type':_0x410b07+'Object','element':_0x1c98fd,'quantity':0x1}),_0x3e530e['skip'](_0x2319f0=>!('elementEnd'==_0x2319f0['type']&&_0x2319f0['item']==_0x53d508));}else{if(this['_schema']['checkChild'](_0x53d508,'$text')||_0x53d508['is']('element','softBreak')){const _0x45690d=_0x53d508;if('add'==_0x410b07&&'elementStart'==_0x59e1ec['type']||'remove'==_0x410b07&&'elementEnd'==_0x59e1ec['type'])continue;if(_0xf17387&&-0x1==_0xf17387['type']['indexOf']('Container')){'text'==_0xf17387['type']&&(_0xf17387[_0x410b07]+='\x0a');continue;}let _0x485d50;if(_0x485d50='add'==_0x410b07?_0x45690d['nextSibling']&&!this['_schema']['isObject'](_0x45690d['nextSibling'])?_0x45690d['nextSibling']:null:_0x45690d['previousSibling']&&!this['_schema']['isObject'](_0x45690d['previousSibling'])?_0x45690d['previousSibling']:null,_0x45690d['isEmpty']||_0x485d50&&_0x485d50['isEmpty']){const _0x157bde=_0x485d50&&_0x485d50['isEmpty']?_0x485d50:_0x45690d;_0xf17387&&_0xf17387['type']==_0x410b07+'EmptyContainer'&&_0xf17387['element']['name']==_0x157bde['name']?_0xf17387['quantity']++:_0x448319['push']({'type':_0x410b07+'EmptyContainer','element':_0x157bde,'quantity':0x1});}else _0x448319['push']({'type':_0x410b07+'Container','element':_0x45690d});}}}}}_resolveDescriptionItems(_0x4c66c5){const _0x4f8431=this['_locale'],_0x3faa5c=[],_0x182449=[],_0x5d602c=[];for(const _0x51c3ad of _0x4c66c5)switch(_0x51c3ad['type']){case'text':if(_0x51c3ad['add']=_0x51c3ad['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x51c3ad['remove']=_0x51c3ad['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x51c3ad['add']&&''!=_0x51c3ad['remove']){_0x3faa5c['push']({'type':'replace','content':Ot(_0x4f8431,'REPLACE_TEXT',['\x22'+_0x51c3ad['remove']+'\x22','\x22'+_0x51c3ad['add']+'\x22'])});continue;}if(null!=_0x51c3ad['add']['match'](/^ +$/)){_0x3faa5c['push']({'type':'insertion','content':Ot(_0x4f8431,'*Insert:*\x20%0',Ot(_0x4f8431,'ELEMENT_SPACE',_0x51c3ad['add']['length']))});continue;}if(null!=_0x51c3ad['remove']['match'](/^ +$/)){_0x3faa5c['push']({'type':'deletion','content':Ot(_0x4f8431,'*Remove:*\x20%0',Ot(_0x4f8431,'ELEMENT_SPACE',_0x51c3ad['remove']['length']))});continue;}if(''!=_0x51c3ad['add']){_0x3faa5c['push']({'type':'insertion','content':Ot(_0x4f8431,'*Insert:*\x20%0','\x22'+_0x51c3ad['add']+'\x22')});continue;}_0x3faa5c['push']({'type':'deletion','content':Ot(_0x4f8431,'*Remove:*\x20%0','\x22'+_0x51c3ad['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3faa5c['push']({'type':'insertion','content':Ot(_0x4f8431,'*Insert:*\x20%0',this['getItemLabel'](_0x51c3ad['element'],_0x51c3ad['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3faa5c['push']({'type':'deletion','content':Ot(_0x4f8431,'*Remove:*\x20%0',this['getItemLabel'](_0x51c3ad['element'],_0x51c3ad['quantity']))});continue;case'addContainer':_0x3faa5c['push']({'type':'insertion','content':Ot(_0x4f8431,'*Split:*\x20%0',this['getItemLabel'](_0x51c3ad['element'],_0x51c3ad['quantity']))});continue;case'removeContainer':_0x3faa5c['push']({'type':'deletion','content':Ot(_0x4f8431,'*Merge:*\x20%0',this['getItemLabel'](_0x51c3ad['element'],_0x51c3ad['quantity']))});continue;case'addFormat':_0x182449['push'](_0x51c3ad['key']);continue;case'removeFormat':_0x5d602c['push'](_0x51c3ad['key']);continue;default:_0x3faa5c['push'](_0x51c3ad);}if(_0x182449['length']){const _0x540f1c=_0x182449['map'](_0x2d1367=>this['_attributeLabels']['has'](_0x2d1367)?this['_attributeLabels']['get'](_0x2d1367):_0x2d1367)['join'](',\x20');_0x3faa5c['push']({'type':'format','content':Ot(this['_locale'],'*Set\x20format:*\x20%0',_0x540f1c)});}if(_0x5d602c['length']){const _0x6ea353=_0x5d602c['map'](_0x3af405=>this['_attributeLabels']['has'](_0x3af405)?this['_attributeLabels']['get'](_0x3af405):_0x3af405)['join'](',\x20');_0x3faa5c['push']({'type':'format','content':Ot(this['_locale'],'*Remove\x20format:*\x20%0',_0x6ea353)});}return _0x3faa5c;}_handleCustomCallbackDescription(_0x50cd87){for(const _0x51d8e1 of this['_customCallbacks']){const _0x5349b5=_0x51d8e1(_0x50cd87);if(_0x5349b5&&'type'in _0x5349b5)return _0x5349b5;}}_handleAttributeSuggestionDescription(_0x615d0e,_0x408868){const _0x3c16ca=_0x408868['data'],_0x582d5c=void 0x0===_0x3c16ca['newValue']?'removeFormat':'addFormat';_0x615d0e['push']({'type':_0x582d5c,'key':_0x3c16ca['key']});}_handleRenameSuggestionDescription(_0x3b4cf3,_0x1e4b2e){_0x3b4cf3['push']({'type':'format','content':Ot(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1e4b2e['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x59ed87,_0x18225b,_0x24668a){if(this['_addDescriptionItems'](_0x59ed87,_0x18225b),_0x24668a&&_0x24668a['getFirstRange']()&&!_0x18225b['getFirstRange']()['end']['isEqual'](_0x24668a['getFirstRange']()['start'])){const _0x2949c6=_0x59ed87[_0x59ed87['length']-0x1],_0x32ce69='insertion'==_0x18225b['type']?'add':'remove';_0x2949c6&&'text'==_0x2949c6['type']&&(_0x2949c6[_0x32ce69]+='\x0a');}}},Ft=class extends _0x4020fb{afterInit(){const _0x39dabb=this['editor'],_0x2a2f38=_0x39dabb['plugins']['get']('TrackChangesEditing');_0x39dabb['commands']['get']('showAIAssistant')&&_0x2a2f38['enableCommand']('showAIAssistant');}},Bt=class extends _0x4020fb{afterInit(){const _0x4216f3=this['editor'],_0x276f3a=_0x4216f3['plugins']['get']('TrackChangesEditing');_0x4216f3['commands']['get']('toggleAi')&&_0x276f3a['enableCommand']('toggleAi');}},vt=class extends _0x4020fb{afterInit(){const _0x32147e=this['editor'],_0x541873=_0x32147e['plugins']['get']('TrackChangesEditing');_0x32147e['commands']['get']('aiQuickAction')&&_0x541873['enableCommand']('aiQuickAction');}},Dt=class extends _0x4020fb{afterInit(){const _0xef756a=this['editor'],_0x1d6702=_0xef756a['locale'];if(!_0xef756a['plugins']['has']('AlignmentEditing'))return;const _0x1410a5=_0xef756a['plugins']['get']('TrackChangesEditing');_0x1410a5['enableDefaultAttributesIntegration']('alignment'),_0x1410a5['descriptionFactory']['registerAttributeLabel']('alignment',Ot(_0x1d6702,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x150089=this['editor'],_0x218ac8=_0x150089['locale'];_0x150089['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1facde=>{if('formatBlock'!=_0x1facde['type'])return;const {data:_0x4d05ef}=_0x1facde;if(_0x4d05ef&&'alignment'==_0x4d05ef['commandName']){const _0x521423=_0x4d05ef['commandParams'][0x0]['value'];return{'type':'format','content':Ot(_0x218ac8,'*Format:*\x20%0',function(_0xc15409){switch(_0xc15409){case'left':return Ot(_0x218ac8,'FORMAT_ALIGN_TO_LEFT');case'right':return Ot(_0x218ac8,'FORMAT_ALIGN_TO_RIGHT');case'center':return Ot(_0x218ac8,'FORMAT_ALIGN_TO_CENTER');case'justify':return Ot(_0x218ac8,'FORMAT_JUSTIFY_TEXT');}}(_0x521423))};}});}};const Ut=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Pt=class extends _0x4020fb{afterInit(){const _0x19ffc2=this['editor'],_0x49d112=_0x19ffc2['plugins']['get']('TrackChangesEditing'),_0x438930=_0x19ffc2['locale'];for(const _0x30445f of Ut){if(!_0x19ffc2['plugins']['has'](_0x30445f))continue;const _0x5c6839=_0x30445f['slice'](0x0,-0x7)['toLowerCase'](),_0x2371d2='FORMAT_'+_0x5c6839['toUpperCase']();_0x49d112['enableDefaultAttributesIntegration'](_0x5c6839),_0x49d112['descriptionFactory']['registerAttributeLabel'](_0x5c6839,Ot(_0x438930,_0x2371d2));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3c5691=this['editor'],_0x141074=_0x3c5691['locale'],_0x20ceea=_0x3c5691['plugins']['get']('TrackChangesEditing');function _0xddaa52(_0x2a0ba5,_0x2b06e4){_0x20ceea['descriptionFactory']['registerDescriptionCallback'](_0x37180d=>{if('formatInline'!=_0x37180d['type'])return;const {data:_0x7b0c76}=_0x37180d;return _0x7b0c76&&_0x7b0c76['commandName']===_0x2a0ba5?_0x7b0c76['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x141074,'*Format:*\x20%0',_0x2b06e4)}:{'type':'format','content':Ot(_0x141074,'*Remove\x20format:*\x20%0',_0x2b06e4)}:void 0x0;});}_0xddaa52('bold',Ot(_0x141074,'FORMAT_BOLD')),_0xddaa52('italic',Ot(_0x141074,'FORMAT_ITALIC')),_0xddaa52('underline',Ot(_0x141074,'FORMAT_UNDERLINE')),_0xddaa52('code',Ot(_0x141074,'FORMAT_CODE')),_0xddaa52('strikethrough',Ot(_0x141074,'FORMAT_STRIKETHROUGH')),_0xddaa52('subscript',Ot(_0x141074,'FORMAT_SUBSCRIPT')),_0xddaa52('superscript',Ot(_0x141074,'FORMAT_SUPERSCRIPT'));}},xt=class extends _0x4020fb{afterInit(){const _0x4d99dd=this['editor'],_0x30e49f=_0x4d99dd['locale'];if(!_0x4d99dd['plugins']['has']('BlockQuoteEditing'))return;const _0x16cbcc=_0x4d99dd['plugins']['get']('TrackChangesEditing'),_0x423e04=this['editor']['commands']['get']('blockQuote');_0x16cbcc['enableCommand']('blockQuote',(_0x2f31c1,_0x8a0254={})=>{const _0x100654=this['editor']['model']['document']['selection'],_0x2c6785=_0x8a0254&&void 0x0!==_0x8a0254['forceValue']?_0x8a0254['forceValue']:!_0x423e04['value'];let _0x3f9985=[];_0x3f9985=Ct(_0x2c6785?Array['from'](_0x100654['getSelectedBlocks']())['filter'](_0x2a947c=>Gt(_0x2a947c)||function(_0x1973a5,_0x224cb1){const _0x2e8f8d=_0x224cb1['createContext'](_0x1973a5['parent']);return!!_0x224cb1['checkChild'](_0x2e8f8d,'blockQuote')&&!!_0x224cb1['checkChild'](_0x2e8f8d['push']('blockQuote'),_0x1973a5);}(_0x2a947c,this['editor']['model']['schema'])):Array['from'](_0x100654['getSelectedBlocks']())['filter'](_0x1e4b72=>Gt(_0x1e4b72)),_0x4d99dd['model']),_0x4d99dd['model']['change'](()=>{for(const _0x43cb63 of _0x3f9985)_0x16cbcc['markBlockFormat'](_0x43cb63,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2c6785}]});});}),_0x16cbcc['descriptionFactory']['registerDescriptionCallback'](_0x4526f3=>{const {data:_0x3c6271}=_0x4526f3;if(_0x3c6271&&'blockQuote'==_0x3c6271['commandName']){const _0x45bc02=Ot(_0x30e49f,'ELEMENT_BLOCK_QUOTE');return _0x3c6271['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x30e49f,'*Set\x20format:*\x20%0',_0x45bc02)}:{'type':'format','content':Ot(_0x30e49f,'*Remove\x20format:*\x20%0',_0x45bc02)};}});}};function Gt(_0x5bf173){return'blockQuote'==_0x5bf173['parent']['name'];}var Ht=class extends _0x4020fb{afterInit(){const _0x5892ee=this['editor'],_0x47b888=_0x5892ee['locale'],_0x43bbd7=_0x5892ee['plugins']['get']('TrackChangesEditing');_0x5892ee['plugins']['has']('BookmarkEditing')&&(_0x43bbd7['enableCommand']('insertBookmark'),_0x43bbd7['enableDefaultAttributesIntegration']('updateBookmark'),_0x43bbd7['descriptionFactory']['registerDescriptionCallback'](_0x2ee6a7=>{if('insertion'!=_0x2ee6a7['type']&&'deletion'!=_0x2ee6a7['type']&&'attribute'!=_0x2ee6a7['type'])return;const _0x1ca9f5=_0x2ee6a7['getContainedElement']();if(null==_0x1ca9f5)return;if(!_0x1ca9f5['is']('element','bookmark'))return;const _0x4602d4=_0x1ca9f5['getAttribute']('bookmarkId');if('insertion'==_0x2ee6a7['type'])return{'type':'insertion','content':Ot(_0x47b888,'*Insert:*\x20%0','\x22'+_0x4602d4+'\x22\x20'+Ot(_0x47b888,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2ee6a7['type'])return{'type':'deletion','content':Ot(_0x47b888,'*Remove:*\x20%0','\x22'+_0x4602d4+'\x22\x20'+Ot(_0x47b888,'ELEMENT_BOOKMARK'))};const {data:_0x428259}=_0x2ee6a7;return _0x428259&&'bookmarkId'==_0x428259['key']?{'type':'format','content':Ot(_0x47b888,'*Set\x20bookmark:*\x20%0','\x22'+_0x428259['newValue']+'\x22')}:void 0x0;}));}},$t=class extends _0x4020fb{afterInit(){const _0x588580=this['editor'];_0x588580['plugins']['has']('CaseChange')&&(_0x588580['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x588580['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x588580['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Wt=class extends _0x4020fb{afterInit(){const _0x2a0df1=this['editor'];_0x2a0df1['commands']['get']('ckbox')&&_0x2a0df1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Vt=class extends _0x4020fb{static get requires(){return[gt,ft];}constructor(_0x3aaadc){super(_0x3aaadc),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x3c9bf2=this['editor'],_0x5bbb72=_0x3c9bf2['plugins']['get']('ClipboardMarkersUtils'),_0x21b97c=_0x3c9bf2['plugins']['get'](ft);_0x5bbb72['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x21b97c['on']('outputTransformation',(_0x197467,_0xc09aae)=>{const _0x28ece9=this['_getSuggestionEntries'](_0xc09aae);for(const [_0x3bcb1f,_0x2e814e]of _0xc09aae['content']['markers']){const _0x49d037=ot['_fromRangeInDocumentFragment'](_0x2e814e,_0x3c9bf2['model']);function _0x1775e9(){_0x49d037['detach'](),_0xc09aae['content']['markers']['delete'](_0x3bcb1f);}_0x49d037['on']('change:drop',_0x1775e9),(_0x3bcb1f['startsWith']('suggestion:')||_0x3bcb1f['startsWith']('comment:'))&&_0x49d037['on']('change:range',()=>{_0x49d037['isCollapsed']&&_0x1775e9();}),_0xc09aae['content']['markers']['set'](_0x3bcb1f,_0x49d037);}const _0x2981c0=_0x28ece9['filter'](_0x3ce636=>'deletion'===_0x3ce636['meta']['type'])['map'](_0x3d5d3a=>_0x3d5d3a['modelRange']);if(this['_shouldSkipDeletions'](_0x2981c0,_0xc09aae['content']))return[..._0x28ece9]['forEach'](_0x3ca2ad=>{_0xc09aae['content']['markers']['get'](_0x3ca2ad['markerName'])['detach'](),_0xc09aae['content']['markers']['delete'](_0x3ca2ad['markerName']);}),void this['_restoreRegularRanges'](_0xc09aae['content']['markers']);[..._0x28ece9]['forEach'](_0x165496=>{const _0xda5526=_0x3c9bf2['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x165496['meta']['type'],_0x165496['meta']['subType'],'accept'),{markerName:_0x4e568e,meta:_0x3c169d}=_0x165496;if(_0xc09aae['content']['markers']['has'](_0x4e568e)){switch(_0x3c169d['type']){case'deletion':if('tableRow'===_0x3c169d['subType']||'tableColumn'===_0x3c169d['subType']){if(!_0x3c9bf2['plugins']['has']('TableUtils'))break;const _0x1f47db=_0x3c9bf2['plugins']['get']('TableUtils'),_0x569199=_0x1f47db['getSelectionAffectedTableCells'](_0x3c9bf2['model']['createSelection'](_0xc09aae['content']['markers']['get'](_0x4e568e))),_0x21575d=_0x569199[0x0]['findAncestor']('table');if('tableRow'===_0x3c169d['subType']){const {first:_0x2eaa19,last:_0x628500}=_0x1f47db['getRowIndexes'](_0x569199);_0x1f47db['removeRows'](_0x21575d,{'at':_0x2eaa19,'rows':_0x628500-_0x2eaa19+0x1});}else{const {first:_0x20c879,last:_0x19e17c}=_0x1f47db['getColumnIndexes'](_0x569199);_0x1f47db['removeColumns'](_0x21575d,{'at':_0x20c879,'columns':_0x19e17c-_0x20c879+0x1});}break;}_0xda5526([_0xc09aae['content']['markers']['get'](_0x4e568e)]);}_0xc09aae['content']['markers']['has'](_0x4e568e)&&(_0xc09aae['content']['markers']['get'](_0x4e568e)['detach'](),_0xc09aae['content']['markers']['delete'](_0x4e568e));}}),this['_restoreRegularRanges'](_0xc09aae['content']['markers']);});}_getSuggestionEntries(_0x4bb8e4){const _0x2940c0=_0x2f1034=>'dragstart'===_0x4bb8e4['method']?_0x2f1034['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x2f1034;return Array['from'](_0x4bb8e4['content']['markers'])['map'](([_0x12310c,_0x3aeef4])=>({'markerName':_0x12310c,'modelRange':_0x3aeef4,'meta':et(_0x2940c0(_0x12310c))}))['filter'](({meta:_0x5f076b})=>'suggestion'===_0x5f076b['group']);}_shouldSkipDeletions(_0x279e6b,_0xae06c4){if(!_0x279e6b['length'])return!0x1;let _0x461fcd=[this['editor']['model']['createRangeIn'](_0xae06c4)];for(const _0x102957 of _0x279e6b)_0x461fcd=_0x461fcd['flatMap'](_0x8effea=>_0x8effea['getDifference'](_0x102957));return!_0x461fcd['some'](_0x110050=>this['editor']['model']['hasContent'](_0x110050,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x28c38b){[..._0x28c38b['keys']()]['forEach'](_0x502765=>{const _0x274b88=_0x28c38b['get'](_0x502765);_0x274b88['detach'](),_0x28c38b['set'](_0x502765,_0x274b88['toRange']());});}},jt=class extends _0x4020fb{afterInit(){const _0x5b536c=this['editor'];if(!_0x5b536c['plugins']['has']('CodeBlock'))return;const _0x3cdba1=_0x5b536c['plugins']['get']('TrackChangesEditing'),_0x149eda=_0x5b536c['locale'],_0x3d31c6=_0x5b536c['config']['get']('codeBlock')['languages'],_0xff4456=_0x5b536c['commands']['get']('codeBlock');_0x3cdba1['enableCommand']('indentCodeBlock'),_0x3cdba1['enableCommand']('outdentCodeBlock'),_0x3cdba1['enableCommand']('codeBlock',(_0x290744,_0x55d021={})=>{const _0x3b1a48=_0x5b536c['model'],_0xc066fb=_0x5b536c['model']['document']['selection'],_0x2df59c=_0x55d021&&void 0x0!==_0x55d021['forceValue']?_0x55d021['forceValue']:!_0xff4456['value'];let _0x1166cc;_0x55d021['language']||(_0x55d021['language']=_0x3d31c6[0x0]['language']),_0x1166cc=_0x2df59c?Array['from'](_0xc066fb['getSelectedBlocks']())['filter'](_0x60765a=>{return zt(_0x60765a)||(_0x2223ef=_0x60765a,_0x3477ea=_0x3b1a48['schema'],!_0x2223ef['is']('rootElement')&&!_0x3477ea['isLimit'](_0x2223ef)&&_0x3477ea['checkChild'](_0x2223ef['parent'],'codeBlock'));var _0x2223ef,_0x3477ea;}):Array['from'](_0xc066fb['getSelectedBlocks']())['filter'](_0x560b46=>zt(_0x560b46));const _0x50f4bd=Ct(_0x1166cc,_0x3b1a48);_0x3b1a48['change'](()=>{for(const _0x539691 of _0x50f4bd)_0x3cdba1['markBlockFormat'](_0x539691,{'commandName':'codeBlock','commandParams':[{..._0x55d021,'forceValue':_0x2df59c}],'formatGroupId':'blockName'});});}),(_0x3cdba1['descriptionFactory']['registerElementLabel']('codeBlock',_0x4fcb0a=>Ot(_0x149eda,'ELEMENT_CODE_BLOCK',_0x4fcb0a)),_0x3cdba1['descriptionFactory']['registerDescriptionCallback'](_0x413aaf=>{if('formatBlock'!=_0x413aaf['type'])return;const _0x2db667=_0x149eda['t'],{data:_0x4b532e}=_0x413aaf;if(!_0x4b532e||'codeBlock'!=_0x4b532e['commandName'])return;const _0x8bc3eb=_0x4b532e['commandParams'][0x0]['language'],_0x27cd0d=_0x2db667(_0x3d31c6['find'](_0x144df1=>_0x144df1['language']===_0x8bc3eb)['label'])['toLowerCase']();return _0x4b532e['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x149eda,'*Set\x20format:*\x20%0',Ot(_0x149eda,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x27cd0d+')')}:{'type':'format','content':Ot(_0x149eda,'*Remove\x20format:*\x20%0',Ot(_0x149eda,'ELEMENT_CODE_BLOCK',0x1))};}));}};function zt(_0x50950e){return'codeBlock'==_0x50950e['name'];}var Kt=class extends _0x4020fb{afterInit(){const _0x4dad88=this['editor'];_0x4dad88['plugins']['has']('CommentsEditing')&&_0x4dad88['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Xt=class extends _0x4020fb{static get requires(){return[mt];}init(){const _0xd6d75d=this['editor'],_0x37881d=_0xd6d75d['plugins']['get']('TrackChangesEditing');_0x37881d['enableCommand']('delete');const _0x2e6847=_0xd6d75d['commands']['get']('deleteForward');_0x37881d['enableCommand']('deleteForward',(_0x2e5d8e,_0x489712={})=>{const _0x473b17=_0xd6d75d['model']['createSelection'](_0xd6d75d['model']['document']['selection']);_0x473b17['isCollapsed']&&_0xd6d75d['model']['modifySelection'](_0x473b17,{'direction':'forward','unit':_0x489712['unit']});const _0x137f1a=_0x473b17['getFirstRange'](),_0xe44c83=ot['fromRange'](_0x137f1a);let _0x1f1f24;_0x2e5d8e(_0x489712),_0x1f1f24='$graveyard'==_0xe44c83['root']['rootName']?_0xd6d75d['model']['createRange'](_0x137f1a['start']):_0xd6d75d['model']['createRange'](_0xe44c83['start'],_0xe44c83['end']),_0xe44c83['detach'](),_0xd6d75d['model']['enqueueChange'](_0x2e6847['buffer']['batch'],_0x58fc81=>{_0x2e6847['buffer']['lock'](),_0x58fc81['setSelection'](_0x58fc81['createRange'](_0x1f1f24['end'])),_0x2e6847['buffer']['unlock']();});});}},qt=class extends _0x4020fb{afterInit(){const _0x1ad519=this['editor'];if(!_0x1ad519['plugins']['has']('ListEditing'))return;const _0x3f0d6d=_0x1ad519['locale'],_0x14bcd8=_0x1ad519['plugins']['get']('TrackChangesEditing'),_0x34ab6f=_0x1ad519['plugins']['has']('TodoListEditing'),_0x5fd8ca=!!_0x1ad519['config']['get']('list.multiBlock');function _0x48e931(_0x3d2f4d){return{'type':'format','content':''+Ot(_0x3f0d6d,'*Set\x20format:*\x20%0',_0x3d2f4d)};}function _0x41cadf(_0x3399e5){return{'type':'format','content':''+Ot(_0x3f0d6d,'*Remove\x20format:*\x20%0',_0x3399e5)};}_0x14bcd8['enableDefaultAttributesIntegration']('numberedList'),_0x14bcd8['enableDefaultAttributesIntegration']('bulletedList'),_0x14bcd8['enableDefaultAttributesIntegration']('customNumberedList'),_0x14bcd8['enableDefaultAttributesIntegration']('customBulletedList'),_0x14bcd8['enableDefaultAttributesIntegration']('indentList'),_0x14bcd8['enableDefaultAttributesIntegration']('outdentList'),_0x14bcd8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x14bcd8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5fd8ca&&(_0x14bcd8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x14bcd8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x34ab6f&&(_0x14bcd8['enableDefaultAttributesIntegration']('todoList'),_0x14bcd8['enableDefaultAttributesIntegration']('checkTodoList'),_0x14bcd8['descriptionFactory']['registerDescriptionCallback'](_0x5397c6=>{const {data:_0x40f95f}=_0x5397c6;if(_0x40f95f&&'todoListChecked'==_0x40f95f['key'])return{'type':'format','content':_0x40f95f['newValue']?Ot(_0x3f0d6d,'*Check\x20item*'):Ot(_0x3f0d6d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2bf9f7=>{if(_0x2bf9f7['batch']['isUndo'])return!0x1;let _0x567c79=!0x1;const _0x470615=_0x14bcd8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45c800=>'todoListChecked'===_0x14bcd8['_getAttributeKey'](_0x45c800));for(const _0x39845c of _0x470615)'todo'!=_0x39845c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x14bcd8['_findSuggestions'](_0x39845c['getFirstRange'](),'attribute')['find'](_0x55ea48=>'listType'===_0x14bcd8['_getAttributeKey'](_0x55ea48['suggestion']))||(_0x2bf9f7['removeMarker'](_0x39845c['getFirstMarker']()),_0x567c79=!0x0));return _0x567c79;})),_0x14bcd8['descriptionFactory']['registerAttributeLabel']('listIndent',Ot(_0x3f0d6d,'FORMAT_INDENT'));const _0x4ae7af={'type':'format','content':''};_0x14bcd8['descriptionFactory']['registerDescriptionCallback'](_0x3ae633=>{const {data:_0x52e801}=_0x3ae633;if(!_0x52e801||'listType'!=_0x52e801['key'])return;let _0x28d5cb=_0x3ae633['head'];for(;_0x28d5cb;){if(_0x28d5cb['data']&&(('listStyle'==_0x28d5cb['data']['key']||'listMarkerStyle'==_0x28d5cb['data']['key'])&&(_0x28d5cb['data']['newValue']&&'default'!=_0x28d5cb['data']['newValue']||'default'!=_0x28d5cb['data']['oldValue']&&!_0x52e801['newValue'])||!_0x5fd8ca&&'$elementName'==_0x28d5cb['data']['key']))return _0x4ae7af;_0x28d5cb=_0x28d5cb['next'];}if(null==_0x52e801['newValue'])switch(_0x52e801['oldValue']){case'bulleted':return _0x41cadf(Ot(_0x3f0d6d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x41cadf(Ot(_0x3f0d6d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x41cadf(Ot(_0x3f0d6d,'ELEMENT_TODO_LIST'));}switch(_0x52e801['newValue']){case'bulleted':return _0x48e931(Ot(_0x3f0d6d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x48e931(Ot(_0x3f0d6d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x48e931(Ot(_0x3f0d6d,'ELEMENT_TODO_LIST'));}}),_0x14bcd8['descriptionFactory']['registerDescriptionCallback'](_0x59ebce=>{const {data:_0x1c810a}=_0x59ebce;if(_0x1c810a&&'listIndent'==_0x1c810a['key'])return null==_0x1c810a['newValue']||null==_0x1c810a['oldValue']&&0x0==_0x1c810a['newValue']?_0x4ae7af:void 0x0;}),_0x14bcd8['descriptionFactory']['registerDescriptionCallback'](_0x9bb012=>{if('attribute'!=_0x9bb012['type'])return;const {data:_0x353075}=_0x9bb012;if(!_0x353075||'listItemId'!=_0x353075['key'])return;const _0x100daa=Yt(_0x9bb012);return'newValue'==_0x100daa?{'type':'format','content':Ot(_0x3f0d6d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x100daa?{'type':'format','content':Ot(_0x3f0d6d,'*Split:*\x20list\x20item')}:_0x4ae7af;}),_0x1ad519['model']['document']['registerPostFixer'](_0x4eb785=>this['listItemIdFixer'](_0x4eb785)),_0x1ad519['model']['document']['registerPostFixer'](_0x3c8c67=>this['noTrackChangesFixer'](_0x3c8c67)),_0x1ad519['model']['document']['on']('change:data',(_0x10f32f,_0x135c1e)=>{if(_0x135c1e['isUndo']||!_0x135c1e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x5da4e2){if(_0x5da4e2['batch']['isUndo']||!_0x5da4e2['batch']['isLocal'])return!0x1;let _0x460c2f=!0x1;const _0x418a44=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x372436=>_0x372436['data']&&'listItemId'==_0x372436['data']['key'])['filter'](_0x4cf15b=>_0x4cf15b['data']['newValue']&&_0x4cf15b['data']['oldValue']);for(const _0x62bb96 of _0x418a44)Yt(_0x62bb96)||(_0x5da4e2['removeMarker'](_0x62bb96['getFirstMarker']()),_0x460c2f=!0x0);return _0x460c2f;}['noTrackChangesFixer'](_0x34caee){if(_0x34caee['batch']['isUndo']||!_0x34caee['batch']['isLocal'])return!0x1;const _0x5c58a4=this['editor']['model']['document']['differ'],_0x3c2eae=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3c2eae['trackChangesCommand']['value'])return!0x1;let _0x1ef789=!0x1;const _0x16a64a=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x562849=_0x5c58a4['getChanges']()['filter'](_0x33fb62=>'attribute'==_0x33fb62['type'])['filter'](_0x454520=>_0x16a64a['has'](_0x454520['attributeKey']));if(0x0==_0x562849['length'])return _0x1ef789;const _0x71955f=new Set(_0x5c58a4['getMarkersToAdd']()['filter'](_0x33abbb=>{if(!_0x33abbb['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0xbf095d=et(_0x33abbb['name'])['subType']['split']('|')[0x0];return _0x16a64a['has'](_0xbf095d);})['map'](_0x3bbdc1=>et(_0x3bbdc1['name'])['id']));for(const _0x547fdc of _0x562849){const _0x17125f=_0x3c2eae['_findSuggestions'](_0x547fdc['range'],'attribute')['filter'](_0x5116ee=>{if(_0x5116ee['meta']['isNextTo'])return!0x1;if(_0x71955f['has'](_0x5116ee['suggestion']['id']))return!0x1;const _0x3f3bf0=_0x3c2eae['_getAttributeKey'](_0x5116ee['suggestion']);return _0x16a64a['has'](_0x3f3bf0);})['map'](_0x1d31d1=>_0x1d31d1['suggestion']);if(_0x17125f['length']){for(const _0x6606b7 of _0x17125f)_0x34caee['removeMarker'](_0x6606b7['getFirstMarker']());_0x1ef789=!0x0;}}return _0x1ef789;}['assureChains'](){const _0x574d3d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b958d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x1edecd;const _0xf20874=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2a9352=>{if(_0x2a9352['data']['oldRange']||!_0x2a9352['data']['newRange'])return null;if(!_0x2a9352['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xd2ce4}=et(_0x2a9352['name']);if(!_0x574d3d['hasSuggestion'](_0xd2ce4))return null;const _0x34a4cf=_0x574d3d['getSuggestion'](_0xd2ce4);return _0x4b958d['includes'](_0x34a4cf['data']['key']);})['map'](_0x51ce71=>{const {id:_0x7de402}=et(_0x51ce71['name']),_0x7b80d4=_0x574d3d['getSuggestion'](_0x7de402);return _0x1edecd=_0x7b80d4['attributes']['groupId'],_0x7b80d4['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0xf20874['size'])return;const _0x1b38bd=_0x574d3d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc1f4a1=>'attribute'==_0xc1f4a1['type']&&_0xc1f4a1['data']&&_0x4b958d['includes'](_0xc1f4a1['data']['key'])&&_0xc1f4a1['attributes']['groupId']!=_0x1edecd)['map'](_0x7a97ed=>({'listItem':_0x7a97ed['getFirstRange']()['start']['nodeAfter'],'groupId':_0x7a97ed['attributes']['groupId']})),_0x4d69a4=new Set();for(const {groupId:_0x46c24b,listItem:_0x30afd1}of _0x1b38bd)_0xf20874['has'](_0x30afd1)&&_0x4d69a4['add'](_0x46c24b);for(const _0x19b794 of _0x574d3d['getSuggestions']())_0x4d69a4['has'](_0x19b794['attributes']['groupId'])&&_0x19b794['setAttribute']('groupId',_0x1edecd);}_supportLegacySuggestions(){const _0x157d0a=this['editor'],_0x427559=_0x157d0a['locale'],_0x4e525a=_0x157d0a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4e525a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xd7a9b6,_0x138acd){const _0x32295b=[];for(let _0x2ea5e6 of _0xd7a9b6)_0x2ea5e6['start']['nodeAfter']===_0x2ea5e6['end']['parent']&&(_0x2ea5e6=_0x157d0a['model']['createRange'](_0x157d0a['model']['createPositionAt'](_0x2ea5e6['start']['nodeAfter'],0x0))),_0x32295b['push'](_0x2ea5e6);_0x157d0a['model']['change'](_0x45f603=>{const _0x28d7ff=_0x157d0a['model']['document']['selection'],_0x1d4a01=Array['from'](_0x28d7ff['getRanges']())['map'](_0xb5bba6=>ot['fromRange'](_0xb5bba6));_0x45f603['setSelection'](_0x32295b),_0x157d0a['commands']['get'](_0x138acd['commandName'])['refresh'](),_0x138acd['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x157d0a['execute'](_0x138acd['commandName'],..._0x138acd['commandParams']),_0x45f603['setSelection'](_0x1d4a01);for(const _0x5408c6 of _0x1d4a01)_0x5408c6['detach']();});}),_0x4e525a['descriptionFactory']['registerElementLabel'](function(_0x4c8044){const _0x5ceb95=!_0x157d0a['model']['schema']['isObject'](_0x4c8044),_0x4b7d92=_0x4c8044['previousSibling'],_0x2c519a=_0x4c8044['nextSibling'],_0x167b36=_0x4c8044['getAttribute']('listItemId'),_0x5b466a=!_0x4b7d92||_0x4b7d92['getAttribute']('listItemId')!==_0x167b36,_0x58f3cc=!_0x2c519a||_0x2c519a['getAttribute']('listItemId')!==_0x167b36;return _0x5ceb95&&Boolean(_0x167b36)&&_0x5b466a&&_0x58f3cc;},_0xcf78e9=>Ot(_0x427559,'ELEMENT_LIST_ITEM',_0xcf78e9));}_registerLegacyDescription(){const _0x5a9beb=this['editor'],_0x149105=_0x5a9beb['locale'];function _0x4a4215(_0x2327e0){const _0x398d8f=_0x5a9beb['commands']['get']('bulletedList')['value'],_0xa6dc8=_0x5a9beb['commands']['get']('numberedList')['value'];return'numberedList'===_0x2327e0?_0x398d8f:_0xa6dc8;}_0x5a9beb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x57dc5e){if('formatBlock'!=_0x57dc5e['type'])return;const {data:_0x31c019}=_0x57dc5e;if(!_0x31c019)return;let _0x302e75,_0x5c33ba,_0x1c1162,_0x129e73;switch(_0x31c019['commandName']){case'bulletedList':_0x1c1162=_0x31c019['commandParams'][0x0]['forceValue'],_0x129e73=_0x4a4215(_0x31c019['commandName']),_0x302e75=_0x1c1162?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x129e73&&_0x5a9beb['config']['get']('list.multiBlock')||(_0x302e75='*Change\x20to:*\x20%0'),_0x5c33ba={'type':'format','content':Ot(_0x149105,_0x302e75,Ot(_0x149105,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1c1162=_0x31c019['commandParams'][0x0]['forceValue'],_0x129e73=_0x4a4215(_0x31c019['commandName']),_0x302e75=_0x1c1162?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x129e73&&_0x5a9beb['config']['get']('list.multiBlock')||(_0x302e75='*Change\x20to:*\x20%0'),_0x5c33ba={'type':'format','content':Ot(_0x149105,_0x302e75,Ot(_0x149105,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x302e75='*Indent:*\x20%0',_0x5c33ba={'type':'format','content':Ot(_0x149105,_0x302e75,Ot(_0x149105,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x302e75=function(_0xd245cd){const _0x3914dc=_0xd245cd['getFirstRange']();let _0x35f69f=_0x3914dc['start']['nodeAfter'];for(;_0x35f69f&&_0x3914dc['containsItem'](_0x35f69f);){if(_0x35f69f['getAttribute']('listIndent')>0x0)return!0x1;_0x35f69f=_0x35f69f['nextSibling'];}return!0x0;}(_0x57dc5e)?Ot(_0x149105,'*Format:*\x20remove\x20from\x20%0',Ot(_0x149105,function(_0x1901cb){return'ELEMENT_'+_0x1901cb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x57dc5e))):Ot(_0x149105,'*Outdent:*\x20%0',Ot(_0x149105,'ELEMENT_LIST_ITEM')),_0x5c33ba={'type':'format','content':_0x302e75};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x31c019['multipleBlocks']&&(_0x302e75='*Merge:*\x20%0',_0x5c33ba={'type':'deletion','content':Ot(_0x149105,_0x302e75,Ot(_0x149105,'ELEMENT_LIST_ITEM'))});}return _0x5c33ba;});}};function Yt(_0x4f813b){let _0x53e231=_0x4f813b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x53e231;){const _0xec1ba6=_0x53e231['getAttribute']('listItemId');if(!_0xec1ba6)return!0x1;if(_0xec1ba6==_0x4f813b['data']['newValue'])return'newValue';if(_0xec1ba6==_0x4f813b['data']['oldValue'])return'oldValue';_0x53e231=_0x53e231['previousSibling'];}return!0x1;}var Qt=class extends _0x4020fb{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1fb791=this['editor']['config']['get']('list.properties'),_0x1e020e=this['editor']['plugins']['get']('TrackChangesEditing');_0x1fb791['styles']&&_0x1e020e['enableDefaultAttributesIntegration']('listStyle'),_0x1fb791['reversed']&&_0x1e020e['enableDefaultAttributesIntegration']('listReversed'),_0x1fb791['startIndex']&&_0x1e020e['enableDefaultAttributesIntegration']('listStart');const _0xfafb70={'type':'format','content':''};_0x1e020e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3af9b3=this['editor']['locale'];_0x1e020e['descriptionFactory']['registerAttributeLabel']('listReversed',Ot(_0x3af9b3,'FORMAT_LIST_REVERSED')),_0x1e020e['descriptionFactory']['registerDescriptionCallback'](_0x351550=>{const {data:_0x5643ad}=_0x351550;if(_0x5643ad&&'listReversed'==_0x5643ad['key'])return null==_0x5643ad['newValue']||0x0==_0x5643ad['newValue']&&null==_0x5643ad['oldValue']?_0xfafb70:void 0x0;}),_0x1e020e['descriptionFactory']['registerAttributeLabel']('listStart',Ot(_0x3af9b3,'FORMAT_LIST_START')),_0x1e020e['descriptionFactory']['registerDescriptionCallback'](_0x120a50=>{const {data:_0x31b811}=_0x120a50;if(_0x31b811&&'listStart'==_0x31b811['key'])return null==_0x31b811['newValue']||0x1==_0x31b811['newValue']&&null==_0x31b811['oldValue']?_0xfafb70:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4da7a1=>{if(_0x4da7a1['batch']['isUndo'])return!0x1;let _0x527a8e=!0x1;const _0x23a00=_0x1e020e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e51f0=>{const _0x2df126=_0x1e020e['_getAttributeKey'](_0x2e51f0);return'listStart'==_0x2df126||'listReversed'==_0x2df126;});for(const _0x52eed8 of _0x23a00){const _0x41f610=_0x52eed8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x41f610&&'customNumbered'!=_0x41f610&&(_0x1e020e['_findSuggestions'](_0x52eed8['getFirstRange'](),'attribute')['find'](_0x427c8b=>'listType'==_0x1e020e['_getAttributeKey'](_0x427c8b['suggestion']))||(_0x4da7a1['removeMarker'](_0x52eed8['getFirstMarker']()),_0x527a8e=!0x0));}return _0x527a8e;}),this['_registerLegacyDescription']();}handleDescriptions(_0x46a708){const _0x37f23e=this['editor']['locale'],{data:_0x261c81}=_0x46a708,_0x554a51={'type':'format','content':''};if(!_0x261c81||'listStyle'!=_0x261c81['key'])return;if(!_0x261c81['oldValue'])return'default'==_0x261c81['newValue']?_0x554a51:{'type':'format','content':''+Ot(_0x37f23e,'*Set\x20format:*\x20%0',Ot(_0x37f23e,this['_getTranslationKeyForListStyle'](_0x261c81['newValue'])))};if(!_0x261c81['newValue']){if('default'==_0x261c81['oldValue'])return _0x554a51;let _0x30ff3e=_0x46a708['head'];for(;_0x30ff3e;){if(_0x30ff3e['data']&&'listType'==_0x30ff3e['data']['key']&&_0x30ff3e['data']['newValue'])return _0x554a51;_0x30ff3e=_0x30ff3e['next'];}return{'type':'format','content':''+Ot(_0x37f23e,'*Remove\x20format:*\x20%0',Ot(_0x37f23e,this['_getTranslationKeyForListStyle'](_0x261c81['oldValue'])))};}if('default'!=_0x261c81['newValue'])return{'type':'format','content':''+Ot(_0x37f23e,'*Set\x20format:*\x20%0',Ot(_0x37f23e,this['_getTranslationKeyForListStyle'](_0x261c81['newValue'])))};let _0x188de6=_0x46a708['head'];for(;_0x188de6;){if(_0x188de6['data']&&'listType'==_0x188de6['data']['key']&&_0x188de6['data']['newValue']&&_0x188de6['data']['oldValue'])return _0x554a51;_0x188de6=_0x188de6['next'];}return{'type':'format','content':Ot(_0x37f23e,'*Set\x20format:*\x20%0',Ot(_0x37f23e,'ELEMENT_'+_0x46a708['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x243f8e=this['editor'],_0x20ae76=_0x243f8e['locale'];_0x243f8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bfe2e=>{if('formatBlock'!=_0x2bfe2e['type'])return;const {data:_0x2ac66c}=_0x2bfe2e;if(!_0x2ac66c)return;let _0x265530,_0x9f895;switch(_0x2ac66c['commandName']){case'listStyle':_0x265530='*Change\x20to:*\x20%0',_0x9f895={'type':'format','content':Ot(_0x20ae76,_0x265530,Ot(_0x20ae76,this['_getTranslationKeyForListStyle'](_0x2ac66c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x265530=_0x2ac66c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x9f895={'type':'format','content':Ot(_0x20ae76,_0x265530)};break;case'listStart':_0x265530='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x9f895={'type':'format','content':Ot(_0x20ae76,_0x265530,_0x2ac66c['commandParams'][0x0]['startIndex'])};}return _0x9f895;});}_getTranslationKeyForListStyle(_0x34945a){return'ELEMENT_'+(_0x32cc63=_0x34945a,Zt['includes'](_0x32cc63)?'bulleted':Jt['includes'](_0x32cc63)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x34945a['toUpperCase']()['replace'](/-/g,'_');var _0x32cc63;}};const Zt=['disc','circle','square'],Jt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var te=class extends _0x4020fb{afterInit(){const _0x373290=this['editor'];_0x373290['commands']['get']('emoji')&&_0x373290['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ee=class extends _0x4020fb{static get requires(){return[Tt];}init(){const _0x57d497=this['editor'],_0x2827e0=_0x57d497['plugins']['get']('TrackChangesEditing'),_0x27120a=_0x57d497['commands']['get']('enter');_0x2827e0['enableCommand']('enter',()=>{_0x57d497['model']['change'](_0x5b8ceb=>{const _0x4ef282=_0x57d497['model']['document']['selection'],_0x4528e9=_0x4ef282['getFirstPosition'](),_0x56cd20=ot['fromRange'](_0x4ef282['getFirstRange']());if(_0x27120a['enterBlock'](_0x5b8ceb)){const _0x3ba34e=_0x57d497['model']['createPositionAt'](_0x4528e9['parent']['nextSibling'],0x0),_0x1bcab7=_0x5b8ceb['createRange'](_0x4528e9,_0x3ba34e);_0x2827e0['markInsertion'](_0x1bcab7);}else _0x5b8ceb['setSelection'](_0x5b8ceb['createRange'](_0x56cd20['end']));_0x56cd20['detach'](),_0x27120a['fire']('afterExecute',{'writer':_0x5b8ceb});});});}},ne=class extends _0x4020fb{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2cbf5d=this['editor']['plugins']['get']('TrackChangesEditing');_0x2cbf5d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2cbf5d['enableCommand']('findNext'),_0x2cbf5d['enableCommand']('findPrevious'),_0x2cbf5d['enableCommand']('replace'),_0x2cbf5d['enableCommand']('replaceAll');}['handleFindCommand'](_0x36ab37,_0x4a6872,_0x248b71={}){const _0x4b251a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x36ab37(_0x1a4aa1=>{let _0x362f17=('string'==typeof _0x4a6872?_0x4b251a['findByTextCallback'](_0x4a6872,_0x248b71):_0x4a6872)(_0x1a4aa1);Array['isArray'](_0x362f17)&&(_0x362f17={'results':_0x362f17,'searchText':'string'==typeof _0x4a6872?_0x4a6872:''});const _0x1799d8=_0x362f17['results']['filter'](_0x4ee02a=>!0x1===this['_isInDeletionRange'](_0x4ee02a,_0x1a4aa1['item']));return{..._0x362f17,'results':_0x1799d8};},_0x248b71);}_isInDeletionRange(_0x272d56,_0x118db3){const _0x2be8e8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x118db3,_0x272d56['start']),this['editor']['model']['createPositionAt'](_0x118db3,_0x272d56['end']));for(const _0xf33dcd of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2be8e8['getIntersection'](_0xf33dcd['getRange']()))return!0x0;return!0x1;}};const ie=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var se=class extends _0x4020fb{afterInit(){const _0x26b1bf=this['editor']['locale'],_0x5edbd8=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x23eb7b,commandName:_0x129945}of ie)this['editor']['plugins']['has'](_0x23eb7b)&&_0x5edbd8['enableDefaultAttributesIntegration'](_0x129945);_0x5edbd8['descriptionFactory']['registerAttributeLabel']('fontSize',Ot(_0x26b1bf,'FORMAT_FONT_SIZE')),_0x5edbd8['descriptionFactory']['registerAttributeLabel']('fontFamily',Ot(_0x26b1bf,'FORMAT_FONT_FAMILY')),_0x5edbd8['descriptionFactory']['registerAttributeLabel']('fontColor',Ot(_0x26b1bf,'FORMAT_FONT_COLOR')),_0x5edbd8['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Ot(_0x26b1bf,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x340a6f=this['editor'],_0x4ddae9=_0x340a6f['locale'];_0x340a6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29022a=>{const _0x5ea3c8=_0x4ddae9['t'];if('formatInline'!=_0x29022a['type'])return;const {data:_0x583fb9}=_0x29022a;if(null!=_0x583fb9){if('fontSize'==_0x583fb9['commandName']){const _0x88200d=_0x583fb9['commandParams'][0x0]['value'];if(_0x88200d){const _0x4e3b45=_0x5ea3c8(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x53f643=>_0x53f643['model']==_0x88200d)['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x4ddae9,'*Set\x20font\x20size:*\x20%0',_0x4e3b45)};}return{'type':'format','content':Ot(_0x4ddae9,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x583fb9['commandName']){const _0x166f81=_0x583fb9['commandParams'][0x0]['value'];return _0x166f81?{'type':'format','content':Ot(_0x4ddae9,'*Set\x20font\x20family:*\x20%0',_0x166f81)}:{'type':'format','content':Ot(_0x4ddae9,'*Reset\x20font\x20family*')};}if('fontColor'==_0x583fb9['commandName']){const _0xedcd15=_0x583fb9['commandParams'][0x0]['value'];if(_0xedcd15){const _0x2e6eb7=_0xcf6ad4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x79e523=>_0x79e523['model']==_0xedcd15);let _0x16585d=_0xedcd15,_0x4ea38a='';return _0x2e6eb7&&(_0x16585d=_0x2e6eb7['label'],_0x4ea38a=_0x5ea3c8(_0x16585d)['toLowerCase']()),{'type':'format','content':Ot(_0x4ddae9,'*Set\x20font\x20color:*\x20%0',_0x4ea38a)['trim'](),'color':{'value':_0xedcd15,'title':_0x4ea38a||_0x16585d}};}return{'type':'format','content':Ot(_0x4ddae9,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x583fb9['commandName']){const _0x5bb768=_0x583fb9['commandParams'][0x0]['value'];if(_0x5bb768){const _0x12b598=_0xcf6ad4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xffbdbb=>_0xffbdbb['model']==_0x5bb768);let _0x3194a6=_0x5bb768,_0x419c22='';return _0x12b598&&(_0x3194a6=_0x12b598['label'],_0x419c22=_0x5ea3c8(_0x3194a6)['toLowerCase']()),{'type':'format','content':Ot(_0x4ddae9,'*Set\x20font\x20background\x20color:*\x20%0',_0x419c22)['trim'](),'color':{'value':_0x5bb768,'title':_0x419c22||_0x3194a6}};}return{'type':'format','content':Ot(_0x4ddae9,'*Reset\x20font\x20background\x20color*')};}}});}},re=class extends _0x4020fb{afterInit(){const {plugins:_0x52f491}=this['editor'];_0x52f491['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x52f491['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x3da0ac,plugins:_0x4906ef,commands:_0x1376d5}=this['editor'],_0x479344=_0x4906ef['get']('TrackChangesEditing');_0x1376d5['get']('footnotesStyle')&&_0x479344['enableDefaultAttributesIntegration']('footnotesStyle'),_0x1376d5['get']('footnotesStart')&&_0x479344['enableDefaultAttributesIntegration']('footnotesStart'),_0x479344['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Ot(_0x3da0ac,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x479344['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Ot(_0x3da0ac,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0xba655b=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x433be3,commands:_0x161797}=this['editor'];_0x161797['get']('insertFootnote')&&_0xba655b['enableCommand']('insertFootnote'),_0xba655b['descriptionFactory']['registerElementLabel']('footnoteRef',_0x1039c3=>Ot(_0x433be3,'ELEMENT_FOOTNOTE_REF',_0x1039c3)),_0xba655b['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x45831f=>Ot(_0x433be3,'ELEMENT_FOOTNOTE_DEFINITION',_0x45831f)),_0xba655b['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x16fa0a=>Ot(_0x433be3,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x16fa0a));}},oe=class extends _0x4020fb{afterInit(){const _0x33518d=this['editor'],_0x5942ab=_0x33518d['plugins']['get']('TrackChangesEditing'),_0xc82561=_0x33518d['commands']['get']('copyFormat'),_0x473f53=_0x33518d['commands']['get']('pasteFormat');_0xc82561&&_0x473f53&&(_0x5942ab['enableDefaultAttributesIntegration']('pasteFormat'),_0x5942ab['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x521842=this['editor'],_0x54d3f9=_0x521842['locale'];_0x521842['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x586c35=>{if('formatBlock'!=_0x586c35['type']&&'formatInline'!=_0x586c35['type'])return;const {data:_0x438690}=_0x586c35;if(_0x438690&&'pasteFormat'===_0x438690['commandName']){const _0x3c416c=[],_0x367564=_0x438690['commandParams'][0x0];for(const [_0x318600,_0x375b80]of Object['entries'](_0x367564))_0x3c416c['push'](ae(_0x521842,_0x318600,_0x375b80));return _0x3c416c['length']?{'type':'format','content':Ot(_0x54d3f9,'*Set\x20format\x20to:*\x20%0',_0x3c416c['join'](',\x20'))}:{'type':'format','content':Ot(_0x54d3f9,'*Remove\x20all\x20formatting*')};}});}};function ae(_0x13a344,_0x2995b6,_0x2ca890){const _0x5f57ae=_0x13a344['locale']['t'],_0x3b5e18=_0x2995b6['split'](/(?=[A-Z])/)['join']('\x20'),_0x1e6dee=_0x5f57ae(_0x3b5e18['charAt'](0x0)['toUpperCase']()+_0x3b5e18['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2ca890)return _0x1e6dee;if('fontColor'===_0x2995b6||'fontBackgroundColor'===_0x2995b6){const _0x586eb7=_0xcf6ad4(_0x13a344['config']['get']('fontColor.colors'))['find'](_0x4333ca=>_0x4333ca['model']==_0x2ca890);return _0x1e6dee+'\x20('+(_0x586eb7?_0x5f57ae(_0x586eb7['label'])['toLowerCase']():_0x2ca890)+')';}if('fontSize'===_0x2995b6&&isNaN(parseFloat(_0x2ca890))){const _0x157a0c=_0x13a344['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x13a344['config']['get']('fontSize.options'))['find'](_0x5a7a4f=>_0x5a7a4f['model']==_0x2ca890);return _0x1e6dee+'\x20('+(_0x157a0c?_0x5f57ae(_0x157a0c['title'])['toLowerCase']():_0x2ca890)+')';}return _0x1e6dee+'\x20('+_0x2ca890+')';}var ce=class extends _0x4020fb{afterInit(){const _0x35afc8=this['editor'];if(!_0x35afc8['plugins']['has']('GeneralHtmlSupport')||!_0x35afc8['plugins']['has']('DataSchema'))return;const _0x43df43=_0x35afc8['plugins']['get']('TrackChangesEditing'),_0x536e58=_0x35afc8['plugins']['get']('GeneralHtmlSupport'),_0x2dd7f4=_0x35afc8['plugins']['get']('DataSchema'),_0x248398=_0x35afc8['locale'],_0x10f09d=new Set(['htmlContent']);for(const _0x25ef27 of _0x2dd7f4['getDefinitionsForView'](/.*/,!0x1)){const _0xf62aad=_0x25ef27['view'],_0x1d9533=_0x536e58['getGhsAttributeNameForElement'](_0xf62aad);_0x10f09d['add'](_0x1d9533),!_0x25ef27['isInline']||_0x25ef27['isObject']||'appliesToBlock'in _0x25ef27&&_0x25ef27['appliesToBlock']||_0x43df43['descriptionFactory']['registerAttributeLabel'](_0x1d9533,_0xf62aad),_0x25ef27['model']['startsWith']('html')&&_0x43df43['descriptionFactory']['registerElementLabel'](_0x25ef27['model'],_0x12041b=>Ot(_0x248398,'ELEMENT_HTML_TAG',[_0x12041b,_0xf62aad]));}_0x43df43['descriptionFactory']['registerAttributeLabel']('htmlContent',Ot(_0x248398,'FORMAT_RAW_HTML_CONTENT')),_0x43df43['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Ot(_0x248398,'FORMAT_HTML_LIST_ITEM')),_0x43df43['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Ot(_0x248398,'FORMAT_HTML_BULLETED_LIST')),_0x43df43['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Ot(_0x248398,'FORMAT_HTML_NUMBERED_LIST')),_0x43df43['descriptionFactory']['registerDescriptionCallback'](_0xd7ceba=>{if('attribute'!==_0xd7ceba['type'])return;const _0x58594f=_0xd7ceba['data'];if(!_0x58594f||!_0x10f09d['has'](_0x58594f['key']))return;if('htmlContent'===_0x58594f['key'])return{'type':'format','content':Ot(_0x248398,'*Change\x20%0\x20content*',Ot(_0x248398,'ELEMENT_RAW_HTML'))};const {setItems:_0x326b0c,removeItems:_0x2a3a01}=function(_0x320a4a,_0x1438bd,_0x614c80){const _0x247ca0=[],_0x4d0bce=[],_0x455f8c=_0x320a4a['styles']??{},_0x4feb2d=_0x1438bd['styles']??{};for(const _0x4a5287 of new Set([...Object['keys'](_0x455f8c),...Object['keys'](_0x4feb2d)]))_0x455f8c[_0x4a5287]!==_0x4feb2d[_0x4a5287]&&(void 0x0===_0x4feb2d[_0x4a5287]?_0x4d0bce['push'](_0x4a5287):_0x247ca0['push'](_0x4a5287+'\x20('+_0x4feb2d[_0x4a5287]+')'));const _0x1e890c=Ot(_0x614c80,'FORMAT_HTML_CLASS'),_0xf55fa2=new Set(_0x320a4a['classes']??[]),_0x1d0c91=new Set(_0x1438bd['classes']??[]),_0x2216aa=[..._0x1d0c91]['some'](_0x577d0d=>!_0xf55fa2['has'](_0x577d0d)),_0x11b0e4=[..._0xf55fa2]['some'](_0x257072=>!_0x1d0c91['has'](_0x257072));_0x2216aa&&_0x247ca0['push'](_0x1e890c),_0x11b0e4&&_0x4d0bce['push'](_0x1e890c);const _0x586854=Ot(_0x614c80,'FORMAT_HTML_ATTRIBUTE'),_0x5a7d9c=_0x320a4a['attributes']??{},_0x1b8eea=_0x1438bd['attributes']??{};let _0x3e9890=!0x1,_0x5946bf=!0x1;for(const _0x1a5ee7 of new Set([...Object['keys'](_0x5a7d9c),...Object['keys'](_0x1b8eea)]))_0x5a7d9c[_0x1a5ee7]!==_0x1b8eea[_0x1a5ee7]&&(void 0x0===_0x1b8eea[_0x1a5ee7]?_0x5946bf=!0x0:_0x3e9890=!0x0);return _0x3e9890&&_0x247ca0['push'](_0x586854),_0x5946bf&&_0x4d0bce['push'](_0x586854),{'setItems':_0x247ca0,'removeItems':_0x4d0bce};}(_0x58594f['oldValue']??{},_0x58594f['newValue']??{},_0x248398);if(!_0x326b0c['length']&&!_0x2a3a01['length'])return;const _0x88a05f=[];return _0x326b0c['length']&&_0x88a05f['push'](Ot(_0x248398,'*Set\x20format:*\x20%0',_0x326b0c['join'](',\x20'))),_0x2a3a01['length']&&_0x88a05f['push'](Ot(_0x248398,'*Remove\x20format:*\x20%0',_0x2a3a01['join'](',\x20'))),{'type':'format','content':_0x88a05f['join']('\x0a')};});}},le=class extends _0x4020fb{_headingOptions;afterInit(){const _0x31aa7c=this['editor'];if(!_0x31aa7c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x31aa7c['config']['get']('heading.options');const _0x200060=_0x31aa7c['locale'],_0x267d9e=_0x31aa7c['plugins']['get']('TrackChangesEditing');_0x267d9e['enableDefaultAttributesIntegration']('heading');for(const _0x39b72e of this['_headingOptions'])'paragraph'!=_0x39b72e['model']&&_0x267d9e['descriptionFactory']['registerElementLabel'](_0x39b72e['model'],_0x4248c6=>{const _0x1c453b=this['_getHeadingLevel'](_0x39b72e['model']);return null!==_0x1c453b?_0x58b91b(_0x4248c6,_0x1c453b):_0x5b98d9(_0x4248c6,_0x39b72e['title']);});function _0x58b91b(_0x30996a,_0x16a39c){return Ot(_0x200060,'ELEMENT_HEADING',[_0x30996a,_0x16a39c]);}function _0x5b98d9(_0x61e18d,_0x1efbec){return Ot(_0x200060,'ELEMENT_HEADING_CUSTOM',[_0x61e18d,_0x1efbec]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1472b7=this['editor'],_0x3c7135=_0x1472b7['locale'];function _0x392eae(_0x3ebdcb,_0x3e993b){return Ot(_0x3c7135,'ELEMENT_HEADING_CUSTOM',[_0x3ebdcb,_0x3e993b]);}_0x1472b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1404a9=>{if('formatBlock'!=_0x1404a9['type'])return;const {data:_0x4117f6}=_0x1404a9;if(_0x4117f6&&'heading'==_0x4117f6['commandName']){const _0x513513=_0x4117f6['commandParams'][0x0]['value'],_0x29729c=this['_getHeadingLevel'](_0x513513);if(null!==_0x29729c)return{'type':'format','content':Ot(_0x3c7135,'*Change\x20to:*\x20%0',(_0x2d3a86=0x1,_0xd87cad=_0x29729c,Ot(_0x3c7135,'ELEMENT_HEADING',[_0x2d3a86,_0xd87cad])))};const _0x3bfca9=this['_headingOptions']['find'](_0x8a74b3=>_0x8a74b3['model']===_0x513513)['title'];return{'type':'format','content':Ot(_0x3c7135,'*Change\x20to:*\x20%0',_0x392eae(0x1,_0x3bfca9))};}var _0x2d3a86,_0xd87cad;});}_getHeadingLevel(_0x19db8b){const _0x4776a4=_0x19db8b['match'](/^heading(\d+)/);if(_0x4776a4)return _0x4776a4[0x1];const _0x4ce649=this['_headingOptions']?.['find'](_0x219060=>_0x219060['model']==_0x19db8b);if(_0x4ce649&&_0x4ce649['view']){const _0x437417=_0x4ce649['view'],_0x2065da=(_0x437417['name']??_0x437417)['match'](/^h(\d+)/);if(_0x2065da)return _0x2065da[0x1];}return null;}},ue=class extends _0x4020fb{afterInit(){const _0x46d03b=this['editor'];if(!_0x46d03b['plugins']['has']('HighlightEditing'))return;const _0x38f079=_0x46d03b['plugins']['get']('TrackChangesEditing'),_0x34d96c=_0x46d03b['locale'];_0x38f079['enableDefaultAttributesIntegration']('highlight'),_0x38f079['descriptionFactory']['registerAttributeLabel']('highlight',Ot(_0x34d96c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x7f6fa0=this['editor'],_0x26de8b=_0x7f6fa0['locale'];_0x7f6fa0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x178829=>{if('formatInline'!=_0x178829['type'])return;const {data:_0x5b8452}=_0x178829;if(_0x5b8452&&'highlight'==_0x5b8452['commandName']){const _0x210f5d=_0x26de8b['t'],_0x566b8c=_0x5b8452['commandParams'][0x0]['value'];if(_0x566b8c){const _0x3e7656=_0x7f6fa0['config']['get']('highlight.options')['find'](_0x3783b1=>_0x3783b1['model']==_0x566b8c),_0xfa34c3=_0x210f5d(_0x3e7656['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x26de8b,'*Set\x20highlight:*\x20%0',_0xfa34c3),'color':{'value':_0x3e7656['color'],'title':_0x3e7656['title']}};}return{'type':'format','content':Ot(_0x26de8b,'*Remove\x20highlight*',Ot(_0x26de8b,'FORMAT_HIGHLIGHT'))};}});}},de=class extends _0x4020fb{afterInit(){const _0x47096e=this['editor'];if(!_0x47096e['plugins']['has']('HorizontalLineEditing'))return;_0x47096e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3ea868=_0x47096e['plugins']['get']('TrackChangesEditing'),_0x4a31c8=_0x47096e['locale'];_0x3ea868['descriptionFactory']['registerElementLabel']('horizontalLine',_0x27cec3=>Ot(_0x4a31c8,'ELEMENT_HORIZONTAL_LINE',_0x27cec3));}},he=class extends _0x4020fb{afterInit(){const _0x5f3818=this['editor'];if(!_0x5f3818['plugins']['has']('HtmlEmbed'))return;const _0x5eeead=_0x5f3818['plugins']['get']('TrackChangesEditing'),_0x5d2371=_0x5f3818['locale'];_0x5eeead['descriptionFactory']['registerElementLabel']('rawHtml',_0xcf57a3=>Ot(_0x5d2371,'ELEMENT_HTML_EMBED',_0xcf57a3)),_0x5eeead['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5eeead['descriptionFactory']['registerDescriptionCallback'](_0x76af5e=>{if('attribute'!=_0x76af5e['type'])return;const {data:_0xa2b94b}=_0x76af5e;if(_0xa2b94b&&'value'==_0xa2b94b['key']&&_0x76af5e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5f519b=Ot(_0x5d2371,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x5d2371,'*Change\x20%0\x20content*',_0x5f519b)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x395108=this['editor'],_0x38d820=_0x395108['locale'];_0x395108['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1157a9=>{if('formatBlock'!=_0x1157a9['type'])return;const {data:_0x157561}=_0x1157a9;if(_0x157561&&'htmlEmbed'==_0x157561['commandName']){const _0x39361b=Ot(_0x38d820,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x38d820,'*Change\x20%0\x20content*',_0x39361b)};}});}},ge=class extends _0x4020fb{afterInit(){const _0x2507a0=this['editor'];if(!_0x2507a0['plugins']['has']('ImageEditing'))return;const _0x2d9124=_0x2507a0['plugins']['get']('TrackChangesEditing'),_0x1b92c0=_0x2507a0['plugins']['get']('ImageUtils'),_0x5def51=_0x2507a0['locale'];_0x2d9124['enableCommand']('insertImage'),_0x2d9124['descriptionFactory']['registerElementLabel']('imageBlock',_0x5f66cd=>Ot(_0x5def51,'ELEMENT_IMAGE',_0x5f66cd)),_0x2d9124['descriptionFactory']['registerElementLabel']('imageInline',_0x32f8fa=>Ot(_0x5def51,'ELEMENT_INLINE_IMAGE',_0x32f8fa)),_0x2d9124['descriptionFactory']['registerElementLabel']('caption',()=>Ot(_0x5def51,'ELEMENT_CAPTION')),_0x2507a0['plugins']['has']('ImageUploadEditing')&&_0x2d9124['enableCommand']('uploadImage'),_0x2507a0['plugins']['has']('ImageBlockEditing')&&_0x2507a0['plugins']['has']('ImageInlineEditing')&&(_0x2d9124['enableCommand']('imageTypeInline',(_0x58c50e,_0xc10b93)=>{const _0x4fd4e5=_0x1b92c0['getClosestSelectedImageElement'](_0x2507a0['model']['document']['selection']);_0x2507a0['model']['change'](()=>{_0x2d9124['markBlockFormat'](_0x4fd4e5,{'commandName':'imageTypeInline','commandParams':[_0xc10b93]},[],'convertBlockImageToInline');});}),_0x2d9124['enableCommand']('imageTypeBlock',(_0x20fd2e,_0x488d8c)=>{_0x2507a0['model']['change'](_0x2dfe94=>{let _0x35ae0c=_0x1b92c0['getClosestSelectedImageElement'](_0x2507a0['model']['document']['selection']),_0xef7b1a=_0x2dfe94['createRangeOn'](_0x35ae0c);const _0x365c94=rt['fromPosition'](_0xef7b1a['start'],'toPrevious'),_0x1f0d28=rt['fromPosition'](_0xef7b1a['end'],'toNext');_0x2d9124['forceDefaultExecution'](()=>_0x20fd2e(_0x488d8c)),_0x35ae0c=_0x1b92c0['getClosestSelectedImageElement'](_0x2507a0['model']['document']['selection']),_0xef7b1a=_0x2dfe94['createRangeOn'](_0x35ae0c);const _0x443333=_0x2dfe94['createRange'](_0x365c94,_0x1f0d28);_0x365c94['detach'](),_0x1f0d28['detach'](),_0x2d9124['markBlockFormat'](_0x35ae0c,{'commandName':'imageTypeInline','commandParams':[_0x488d8c]},[],'convertInlineImageToBlock'),_0x443333['start']['isBefore'](_0xef7b1a['start'])&&_0x2d9124['markInsertion'](_0x2dfe94['createRange'](_0x443333['start'],_0xef7b1a['start']),'convertInlineImageToBlock'),_0xef7b1a['end']['isBefore'](_0x443333['end'])&&_0x2d9124['markInsertion'](_0x2dfe94['createRange'](_0xef7b1a['end'],_0x443333['end']),'convertInlineImageToBlock');});}),_0x2d9124['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2d9124['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2d9124['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2d9124['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2d9124['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2d9124['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x515848])=>{const _0x46cc71=_0x2d9124['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x486536=_0x515848['start'],_0x218377=_0x515848['end'];const _0x58a4fc=_0x2507a0['model']['schema']['getNearestSelectionRange'](_0x486536,'backward'),_0x168add=_0x2507a0['model']['schema']['getNearestSelectionRange'](_0x218377,'forward');_0x58a4fc['isCollapsed']&&(_0x486536=_0x58a4fc['start']),_0x168add['isCollapsed']&&(_0x218377=_0x168add['end']),_0x46cc71([_0x2507a0['model']['createRange'](_0x486536,_0x218377)]);}),_0x2d9124['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x37e223),_0x2d9124['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x37e223)),_0x2507a0['plugins']['has']('ImageCaptionEditing')&&(_0x2d9124['enableCommand']('toggleImageCaption',(_0x3ede7e,_0x3f4deb)=>{const _0x14b2ca=_0x2507a0['plugins']['get']('ImageCaptionUtils');let _0x5c9d13=_0x1b92c0['getClosestSelectedImageElement'](_0x2507a0['model']['document']['selection']),_0x12ff84=_0x14b2ca['getCaptionFromImageModelElement'](_0x5c9d13);_0x2507a0['model']['change'](()=>{if(_0x12ff84)return void _0x2d9124['markDeletion'](_0x2507a0['model']['createRangeOn'](_0x12ff84));const _0x123a7d=_0x1b92c0['isBlockImage'](_0x5c9d13);_0x3ede7e(_0x3f4deb),_0x5c9d13=_0x1b92c0['getClosestSelectedImageElement'](_0x2507a0['model']['document']['selection']),_0x12ff84=_0x14b2ca['getCaptionFromImageModelElement'](_0x5c9d13),_0x2d9124['markInsertion'](_0x2507a0['model']['createRangeOn'](_0x12ff84),_0x123a7d?null:'imageCaption');});}),_0x2d9124['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x37e223));const _0x241641=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3c9375(_0xbfa32,_0xff19d){const _0x109c71=_0x241641['findIndex'](({type:_0x206384,subType:_0x1ff3e9})=>_0xbfa32['type']==_0x206384&&_0xbfa32['subType']==_0x1ff3e9),_0x491bfe=_0x241641['findIndex'](({type:_0x2df5b2,subType:_0x4c9eb7})=>_0xff19d['type']==_0x2df5b2&&_0xff19d['subType']==_0x4c9eb7);if(_0x109c71<0x0||_0x491bfe<0x0)return!0x1;const _0x267362=_0xbfa32['getFirstRange'](),_0x42054d=_0xff19d['getFirstRange']();if((0x0==_0x109c71||0x1==_0x109c71)&&0x2==_0x491bfe&&_0x267362['isIntersecting'](_0x42054d))return!0x0;if(0x2==_0x109c71&&0x3==_0x491bfe){const _0xdf0a6d=_0x2d9124['_findSuggestions'](_0x267362,'insertion')['filter'](({suggestion:_0x330d8b,meta:_0x2a0bfe})=>_0x2a0bfe['isOwn']&&'convertInlineImageToBlock'==_0x330d8b['subType']);if(_0xdf0a6d['length']>0x1&&_0x42054d['end']['isEqual'](_0x267362['start']))return!0x0;if(0x1==_0xdf0a6d['length']&&(_0x267362['start']['isEqual'](_0x42054d['end'])||_0x267362['end']['isEqual'](_0x42054d['start'])))return!0x0;}if(0x3==_0x109c71&&0x3==_0x491bfe&&_0x267362['start']['isBefore'](_0x42054d['start'])){const _0x5a1b6a=_0x267362['end']['nodeAfter'],_0x40a1c9=_0x42054d['start']['nodeBefore'];return _0x1b92c0['isBlockImage'](_0x5a1b6a)&&_0x5a1b6a===_0x40a1c9;}return!0x1;}function _0x37e223(_0x1f62d1,_0x7868ce){return _0x3c9375(_0x1f62d1,_0x7868ce)?[_0x1f62d1,_0x7868ce]:_0x3c9375(_0x7868ce,_0x1f62d1)?[_0x7868ce,_0x1f62d1]:null;}_0x2507a0['plugins']['has']('ImageResize')&&(_0x2d9124['enableDefaultAttributesIntegration']('resizeImage'),_0x2d9124['descriptionFactory']['registerAttributeLabel']('resizedWidth',Ot(_0x5def51,'FORMAT_IMAGE_SIZE'))),_0x2507a0['plugins']['has']('ImageTextAlternativeEditing')&&_0x2d9124['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2507a0['plugins']['has']('PictureEditing')&&_0x2d9124['descriptionFactory']['registerDescriptionCallback'](_0x4a0afc=>{if('attribute'!=_0x4a0afc['type'])return;const {data:_0x36208f}=_0x4a0afc;return _0x36208f&&'sources'==_0x36208f['key']?{'type':'format','content':''}:void 0x0;}),_0x2507a0['plugins']['has']('ImageSizeAttributes')&&_0x2d9124['descriptionFactory']['registerDescriptionCallback'](_0x4a70c4=>{if('attribute'!=_0x4a70c4['type'])return;const {data:_0x23faff}=_0x4a70c4;return!_0x23faff||'width'!=_0x23faff['key']&&'height'!=_0x23faff['key']?void 0x0:{'type':'format','content':''};}),_0x2d9124['descriptionFactory']['registerDescriptionCallback'](_0x42f5fc=>{if(_0x241641['find'](({type:_0x222859,subType:_0x193568})=>_0x42f5fc['type']==_0x222859&&_0x42f5fc['subType']==_0x193568))return _0x42f5fc['previous']?{}:void 0x0;}),_0x2d9124['descriptionFactory']['registerDescriptionCallback'](_0x30aa68=>{if('insertion'==_0x30aa68['type']||'deletion'==_0x30aa68['type']){const _0x55db59=_0x30aa68['getContainedElement']();if(_0x55db59&&_0x55db59['is']('element','caption'))return{'type':'insertion'==_0x30aa68['type']?'addObject':'removeObject','element':_0x55db59,'quantity':0x1};}}),_0x2d9124['descriptionFactory']['registerDescriptionCallback'](_0x5ac369=>'formatBlock'==_0x5ac369['type']&&'convertInlineImageToBlock'==_0x5ac369['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5ac369['type']&&'convertBlockImageToInline'==_0x5ac369['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2d9124['descriptionFactory']['registerDescriptionCallback'](_0x26571f=>{if('attribute'!=_0x26571f['type'])return;const {data:_0x51a38b}=_0x26571f;if(!_0x51a38b||'alt'!=_0x51a38b['key'])return;const _0x49efb7=_0x51a38b['newValue'];return _0x49efb7?{'type':'format','content':Ot(_0x5def51,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x49efb7+'\x22')}:{'type':'format','content':Ot(_0x5def51,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4e580b=this['editor'],_0x11e260=_0x4e580b['locale'];_0x4e580b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5162f5=>{if('formatBlock'!=_0x5162f5['type']&&'formatInline'!=_0x5162f5['type'])return;const {data:_0x12bee9}=_0x5162f5;if(_0x12bee9){if('imageTextAlternative'==_0x12bee9['commandName']){const _0x30e4e3=_0x12bee9['commandParams'][0x0]['newValue'];return _0x30e4e3?{'type':'format','content':Ot(_0x11e260,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x30e4e3+'\x22')}:{'type':'format','content':Ot(_0x11e260,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x12bee9['commandName']){const _0x270182=_0x12bee9['commandParams'][0x0]['width'];return _0x270182?{'type':'format','content':Ot(_0x11e260,'*Set\x20image\x20width:*\x20%0',_0x270182)}:{'type':'format','content':Ot(_0x11e260,'*Reset\x20image\x20width*')};}}});}},fe=class extends _0x4020fb{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2fa628=this['editor']['locale'],_0x26ba96=this['editor']['plugins']['get']('TrackChangesEditing');_0x26ba96['enableDefaultAttributesIntegration']('replaceImageSource'),_0x26ba96['descriptionFactory']['registerDescriptionCallback'](_0x266264=>{if('attribute'!=_0x266264['type'])return;const {data:_0x38e015}=_0x266264;return _0x38e015&&'src'==_0x38e015['key']?_0x38e015['newValue']&&_0x38e015['oldValue']?{'type':'format','content':Ot(_0x2fa628,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x113ee4=this['editor']['plugins']['get']('TrackChangesEditing');_0x113ee4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x113ee4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x113ee4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x113ee4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x245352=this['editor'],_0x27fa70=_0x245352['locale'];_0x245352['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x402c38=>{if('formatBlock'!=_0x402c38['type']&&'formatInline'!=_0x402c38['type'])return;const {data:_0x4a0ef2}=_0x402c38;return _0x4a0ef2&&'replaceImageSource'==_0x4a0ef2['commandName']?{'type':'format','content':Ot(_0x27fa70,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},me=class extends _0x4020fb{afterInit(){const _0x39d843=this['editor'];if(!_0x39d843['plugins']['has']('ImageStyleEditing'))return;const _0x6e8673=_0x39d843['plugins']['get']('TrackChangesEditing'),_0x48e742=_0x39d843['plugins']['get']('ImageUtils'),_0x326fd0={};_0x6e8673['enableCommand']('imageStyle',(_0x4b43a1,_0x591900)=>{const _0x26ba0d=_0x39d843['plugins']['get']('Users')['me'],_0x34ca69=_0x39d843['commands']['get']('imageStyle');let _0x576538=_0x48e742['getClosestSelectedImageElement'](_0x39d843['model']['document']['selection']),_0x20eb91=_0x39d843['model']['createRangeOn'](_0x576538),_0x5943b7=_0x34ca69['value'];if(_0x5943b7==_0x591900['value'])return;if(_0x591900['value']&&_0x48e742['isInlineImage'](_0x576538)&&!_0x34ca69['isStyleEnabled'](_0x591900['value']))return;const _0x44f827={'commandName':'imageStyle','commandParams':[_0x591900],'formatGroupId':_0x3469da()};_0x39d843['model']['change'](()=>{if(_0x6e8673['getSuggestions']()['filter'](_0x2b5d95=>_0x2b5d95['isInContent']&&_0x26ba0d==_0x2b5d95['author']&&('formatBlock'==_0x2b5d95['type']||'formatInline'==_0x2b5d95['type'])&&('imageStylePreApply'==_0x2b5d95['subType']||'imageStylePostApply'==_0x2b5d95['subType'])&&_0x2b5d95['getFirstRange']()['isEqual'](_0x20eb91))['forEach'](_0x6df090=>_0x6e8673['discardSuggestion'](_0x6df090['head'])),_0x576538=_0x48e742['getClosestSelectedImageElement'](_0x39d843['model']['document']['selection']),_0x20eb91=_0x39d843['model']['createRangeOn'](_0x576538),_0x34ca69['refresh'](),_0x39d843['commands']['get']('imageTypeInline')['refresh'](),_0x39d843['commands']['get']('imageTypeBlock')['refresh'](),_0x5943b7=_0x34ca69['value'],_0x5943b7!=_0x591900['value'])return _0x48e742['isInlineImage'](_0x576538)&&_0x34ca69['shouldConvertImageType'](_0x591900['value'],_0x576538)?(_0x4b43a1({..._0x591900,'setImageSizes':!0x1}),_0x576538=_0x48e742['getClosestSelectedImageElement'](_0x39d843['model']['document']['selection']),void _0x6e8673['markBlockFormat'](_0x576538,{..._0x44f827,'commandReversedParams':[{'value':_0x5943b7||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x48e742['isBlockImage'](_0x576538)?_0x6e8673['markBlockFormat'](_0x576538,_0x44f827,[],'imageStylePostApply'):_0x6e8673['markInlineFormat'](_0x20eb91,_0x44f827,'imageStylePostApply'));});});for(const _0x11b7de of _0x39d843['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x326fd0[_0x11b7de['name']]=_0x11b7de['title']['toLowerCase']();_0x6e8673['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x6e8673['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x6e8673['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x6e8673['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x570a61])=>{_0x48e742['setImageNaturalSizeAttributes'](_0x570a61['getContainedElement']());}),_0x6e8673['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2beda4,_0x13890f)=>{_0x6e8673['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2beda4,{'commandName':_0x13890f['commandName'],'commandParams':_0x13890f['commandReversedParams']});}),_0x6e8673['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2d3e00,_0x1ce20f){return _0x339f9a(_0x2d3e00,_0x1ce20f)?[_0x2d3e00,_0x1ce20f]:_0x339f9a(_0x1ce20f,_0x2d3e00)?[_0x1ce20f,_0x2d3e00]:null;});const _0x262277=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x339f9a(_0x210786,_0x1e2e53){const _0x8f8499=_0x262277['findIndex'](({type:_0x53d7c1,subType:_0x203202})=>_0x210786['type']==_0x53d7c1&&_0x210786['subType']==_0x203202),_0x41157c=_0x262277['findIndex'](({type:_0x4f7fce,subType:_0x83d04c})=>_0x1e2e53['type']==_0x4f7fce&&_0x1e2e53['subType']==_0x83d04c);if(_0x8f8499<0x0||_0x41157c<0x0)return!0x1;const _0x1bdb97=_0x210786['getFirstRange'](),_0x2f007f=_0x1e2e53['getFirstRange']();if((0x0==_0x8f8499||0x1==_0x8f8499)&&0x2==_0x41157c&&_0x1bdb97['isIntersecting'](_0x2f007f))return!0x0;if(0x2==_0x8f8499&&0x3==_0x41157c){const _0x2bb3c4=_0x6e8673['_findSuggestions'](_0x1bdb97,'insertion')['filter'](({suggestion:_0x28b010,meta:_0x1d094e})=>_0x1d094e['isOwn']&&'convertInlineImageToBlock'==_0x28b010['subType']);if(_0x2bb3c4['length']>0x1&&_0x2f007f['end']['isEqual'](_0x1bdb97['start']))return!0x0;if(0x1==_0x2bb3c4['length']&&(_0x1bdb97['start']['isEqual'](_0x2f007f['end'])||_0x1bdb97['end']['isEqual'](_0x2f007f['start'])))return!0x0;}if(0x3==_0x8f8499&&0x3==_0x41157c&&_0x1bdb97['start']['isBefore'](_0x2f007f['start'])){const _0x4945e9=_0x1bdb97['end']['nodeAfter'],_0x2e83ae=_0x2f007f['start']['nodeBefore'];return _0x48e742['isBlockImage'](_0x4945e9)&&_0x4945e9===_0x2e83ae;}return!0x1;}_0x39d843['model']['document']['registerPostFixer'](()=>{let _0x816a52=!0x1;const _0x4960f3=Array['from'](_0x39d843['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x36c946,data:_0x29a852}of _0x4960f3){const {group:_0x45ad05,type:_0x41a45f,subType:_0x596c1e,id:_0x6c7901}=et(_0x36c946);if('suggestion'==_0x45ad05&&_0x6e8673['hasSuggestion'](_0x6c7901)){if('formatBlock'==_0x41a45f&&('imageStylePreApply'==_0x596c1e||'imageStylePostApply'==_0x596c1e)){const _0x5c1af4=_0x6e8673['getSuggestion'](_0x6c7901);if(_0x29a852['newRange']){const _0x41cea0=_0x5c1af4['getFirstRange']()['getContainedElement']();if(_0x48e742['isBlockImage'](_0x41cea0))continue;_0x6e8673['discardSuggestion'](_0x5c1af4),_0x816a52=!0x0;}}if('insertion'==_0x41a45f&&'imageCaption'==_0x596c1e&&!_0x29a852['newRange']){const _0x59c5e7=_0x6e8673['getSuggestion'](_0x6c7901);_0x59c5e7['next']&&_0x59c5e7['next']['isInContent']&&(_0x6e8673['discardSuggestion'](_0x59c5e7['next']),_0x816a52=!0x0);}}}return _0x816a52;}),this['_registerLegacyDescription'](_0x326fd0);}_registerLegacyDescription(_0x56fd82){const _0x2fdd36=this['editor'],_0x133aee=_0x2fdd36['locale'];_0x2fdd36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x81741b=>{if('formatBlock'!=_0x81741b['type']&&'formatInline'!=_0x81741b['type'])return;const {data:_0x43a706}=_0x81741b;if(!_0x43a706||'imageStyle'!=_0x43a706['commandName'])return;const _0x323b41=_0x43a706['commandParams'][0x0]['value'];return _0x191f51('side'===_0x323b41?Ot(_0x133aee,'FORMAT_SIDE_IMAGE'):_0x56fd82[_0x323b41]||_0x323b41);function _0x191f51(_0x279047){return{'type':'format','content':Ot(_0x133aee,'*Format:*\x20%0',_0x279047)};}});}},Ee=class extends _0x4020fb{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x405fee){super(_0x405fee),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x381ace=this['editor'],_0x2590f8=_0x381ace['commands']['get']('importWord'),_0xb02e54=_0x381ace['commands']['get']('trackChanges');_0x2590f8&&(_0x2590f8['on']('execute',(_0x5c8d08,[,_0x3806d5])=>{this['_trackChangesValueDuringImport']=_0xb02e54['value'],_0x3806d5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2590f8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2590f8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xb02e54['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x381ace['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x152aa4,_0x132a0c){const {suggestions:_0x420af0}=_0x132a0c,_0x634211=this['editor']['commands']['get']('trackChanges'),_0x1b8efd=_0x634211['value'];this['_trackChangesValueDuringImport']!==_0x1b8efd&&(_0x634211['execute'](),this['_trackChangesExecuted']=!0x0),_0x420af0&&_0x420af0['forEach'](({id:_0x1ed23b,type:_0x5070b7,author:_0xc11d86,created_at:_0x28e511})=>{const _0x240b09={'id':_0x1ed23b,'type':_0x5070b7,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xc11d86,'createdAt':_0x28e511?new Date(_0x28e511):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x240b09);});}},Te=class extends _0x4020fb{afterInit(){const _0x59faad=this['editor'],_0x12f4a6=_0x59faad['plugins']['get']('TrackChangesEditing');if(_0x59faad['plugins']['has']('IndentEditing')&&(_0x12f4a6['enableCommand']('indent'),_0x12f4a6['enableCommand']('outdent')),_0x59faad['plugins']['has']('IndentBlock')){for(const _0x56e7d5 of['indentBlock','outdentBlock'])_0x12f4a6['enableDefaultAttributesIntegration'](_0x56e7d5);if(_0x59faad['plugins']['has']('ListEditing')){for(const _0x4e3d25 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x12f4a6['enableDefaultAttributesIntegration'](_0x4e3d25);}}const _0x39ddbb=_0x59faad['locale'];_0x12f4a6['descriptionFactory']['registerAttributeLabel']('blockIndent',Ot(_0x39ddbb,'FORMAT_INDENT')),_0x12f4a6['descriptionFactory']['registerAttributeLabel']('blockIndentList',Ot(_0x39ddbb,'FORMAT_INDENT')),_0x12f4a6['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Ot(_0x39ddbb,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x9a95e2=this['editor'],_0x4ec249=_0x9a95e2['locale'],_0x1f63d3=_0x9a95e2['plugins']['get']('TrackChangesEditing');_0x1f63d3['descriptionFactory']['registerDescriptionCallback'](_0x4aae46=>{if('formatBlock'!=_0x4aae46['type'])return;const {data:_0x422b2d}=_0x4aae46;if(!_0x422b2d)return;if('indentBlock'!=_0x422b2d['commandName']&&'outdentBlock'!=_0x422b2d['commandName'])return;const _0x2deccb=_0x4aae46['getItems']()[0x0],_0x299f35=_0x1f63d3['descriptionFactory']['getItemLabel'](_0x2deccb);return'indentBlock'==_0x422b2d['commandName']?{'type':'format','content':Ot(_0x4ec249,'*Indent:*\x20%0',_0x299f35)}:'outdentBlock'==_0x422b2d['commandName']?{'type':'format','content':Ot(_0x4ec249,'*Outdent:*\x20%0',_0x299f35)}:void 0x0;});}},_e=class extends _0x4020fb{static get requires(){return[Et];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},pe=class extends _0x4020fb{afterInit(){const _0x55169d=this['editor'];if(!_0x55169d['plugins']['has']('LinkEditing'))return;const _0x3f5679=_0x55169d['plugins']['get']('TrackChangesEditing'),_0x21a0a3=_0x55169d['commands']['get']('link');_0x3f5679['enableDefaultAttributesIntegration']('link'),_0x3f5679['enableDefaultAttributesIntegration']('unlink');for(const _0x5772e5 of _0x21a0a3['manualDecorators'])_0x3f5679['descriptionFactory']['registerAttributeLabel'](_0x5772e5['id'],'link\x20('+_0x5772e5['label']['toLowerCase']()+')');_0x3f5679['descriptionFactory']['registerDescriptionCallback'](_0x4e31e9=>{if('attribute'!=_0x4e31e9['type'])return;const {data:_0x2f2cac}=_0x4e31e9;if(!_0x2f2cac||'linkHref'!=_0x2f2cac['key'])return;const _0x1e1e2e=_0x2f2cac['newValue'],_0x550920=_0x55169d['locale'];return{'type':'format','content':null==_0x1e1e2e?Ot(_0x550920,'*Remove\x20link*'):Ot(_0x550920,'*Set\x20link:*\x20%0','\x22'+_0x1e1e2e+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x184b40=this['editor'],_0x4ea544=_0x184b40['locale'];_0x184b40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5183ef=>{if('formatInline'!=_0x5183ef['type'])return;const {data:_0x1fd3ad}=_0x5183ef;if(_0x1fd3ad){if('link'==_0x1fd3ad['commandName']){const _0x396c4a=_0x1fd3ad['commandParams'][0x0];return{'type':'format','content':Ot(_0x4ea544,'*Set\x20link:*\x20%0','\x22'+_0x396c4a+'\x22')};}return'unlink'==_0x1fd3ad['commandName']?{'type':'format','content':Ot(_0x4ea544,'*Remove\x20link*')}:void 0x0;}});}},Le=class extends _0x4020fb{afterInit(){const _0xb11f29=this['editor'],_0x202bd2=_0xb11f29['locale'];if(!_0xb11f29['plugins']['has']('LegacyListEditing'))return;const _0x359683=_0xb11f29['plugins']['get']('TrackChangesEditing'),_0x3775b2=_0xb11f29['plugins']['has']('LegacyTodoListEditing');function _0x2eb6ff(_0x129370){return()=>{const _0xaa9053=_0xb11f29['model']['document']['selection'],_0x5bd522=_0xb11f29['commands']['get'](_0x129370);if(_0x5bd522['value'])return void _0xb11f29['execute']('paragraph',{});const _0x576b0c=_0x129370['slice'](0x0,-0x4),_0x59836e=function(_0x929965,_0x3bb0b3,_0x5edee3){let _0x17c3d2=Array['from'](_0x929965)['filter'](_0x3c31ea=>function(_0xa33fca,_0x409465){return _0x409465['checkChild'](_0xa33fca['parent'],'listItem')&&!_0x409465['isObject'](_0xa33fca);}(_0x3c31ea,_0x5edee3));_0x17c3d2=_0x17c3d2['filter'](_0x1717d4=>!_0x1717d4['is']('element','listItem')||_0x1717d4['getAttribute']('listType')!=_0x3bb0b3);const _0x2ee72b=new Set();for(const _0x4dfc31 of _0x17c3d2)_0x4dfc31['is']('element','listItem')?_0x2ee72b['add'](Ie(_0x4dfc31)):_0x2ee72b['add'](_0x4dfc31);return Array['from'](_0x2ee72b);}(_0xaa9053['getSelectedBlocks'](),_0x576b0c,_0xb11f29['model']['schema']);_0xb11f29['model']['change'](()=>{for(const _0x5b1db3 of _0x59836e)_0x359683['markBlockFormat'](_0x5b1db3,{'commandName':_0x129370,'commandParams':[{'forceValue':!_0x5bd522['value']}],'formatGroupId':'blockName'},Ae(_0x5b1db3));});};}function _0x2e5340(_0x1caa6b){return()=>{const _0x2be37e=function(_0x565593){let _0x455326=Array['from'](_0x565593);const _0x17d859=_0x455326['findIndex'](_0x1f9b24=>'listItem'!=_0x1f9b24['name']);return _0x17d859>-0x1&&(_0x455326=_0x455326['slice'](0x0,_0x17d859)),_0x455326;}(_0xb11f29['model']['document']['selection']['getSelectedBlocks']()),_0x2ce2c2=_0xb11f29['model']['createRange'](_0xb11f29['model']['createPositionAt'](_0x2be37e[0x0],'before'),_0xb11f29['model']['createPositionAt'](_0x2be37e[_0x2be37e['length']-0x1],'end'));_0xb11f29['model']['change'](()=>{_0x359683['markBlockFormat'](_0x2ce2c2,{'commandName':_0x1caa6b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5eb107){const _0x53ce57=new Set();for(const _0x5e7197 of _0x5eb107){let _0x2c5614=_0x5e7197['nextSibling'];for(;_0x2c5614&&_0x2c5614['getAttribute']('listIndent')>_0x5e7197['getAttribute']('listIndent');)_0x53ce57['add'](_0x2c5614),_0x2c5614=_0x2c5614['nextSibling'];}return Array['from'](_0x53ce57);}(_0x2be37e));});};}_0x359683['enableCommand']('numberedList',_0x2eb6ff('numberedList')),_0x359683['enableCommand']('bulletedList',_0x2eb6ff('bulletedList')),_0x3775b2&&_0x359683['enableCommand']('todoList',_0x2eb6ff('todoList')),_0x359683['enableCommand']('indentList',_0x2e5340('indentList')),_0x359683['enableCommand']('outdentList',_0x2e5340('outdentList')),_0x3775b2&&_0x359683['enableCommand']('checkTodoList',()=>{const _0x3672a8=_0xb11f29['commands']['get']('checkTodoList'),_0x2b04e0=Array['from'](_0x3672a8['_selectedElements']);_0x2b04e0['filter'](_0x287211=>_0x287211['getAttribute']('todoListChecked')!=_0x3672a8['value']),_0xb11f29['model']['change'](()=>{for(const _0x1ebcd7 of _0x2b04e0)_0x359683['markBlockFormat'](_0x1ebcd7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3672a8['value']}]});});}),_0x359683['descriptionFactory']['registerElementLabel']('listItem',_0x3d42c3=>Ot(_0x202bd2,'ELEMENT_LIST_ITEM',_0x3d42c3)),_0x359683['descriptionFactory']['registerDescriptionCallback'](_0x2eb94e=>{if('formatBlock'!=_0x2eb94e['type']&&'formatInline'!=_0x2eb94e['type'])return;const {data:_0x580925}=_0x2eb94e;if(_0x580925){if('numberedList'==_0x580925['commandName']||'bulletedList'==_0x580925['commandName']||'todoList'==_0x580925['commandName'])switch(_0x580925['commandName']['replace']('List','')){case'bulleted':return _0x3e0590(Ot(_0x202bd2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3e0590(Ot(_0x202bd2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3e0590(Ot(_0x202bd2,'ELEMENT_TODO_LIST'));}if('indentList'==_0x580925['commandName'])return{'type':'format','content':Ot(_0x202bd2,'*Indent:*\x20%0',Ot(_0x202bd2,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x580925['commandName'])return{'type':'format','content':Ot(_0x202bd2,'*Outdent:*\x20%0',Ot(_0x202bd2,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x580925['commandName'])return _0x580925['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x202bd2,'*Check\x20item*')}:{'type':'format','content':Ot(_0x202bd2,'*Uncheck\x20item*')};}function _0x3e0590(_0xcc0f62){return{'type':'format','content':Ot(_0x202bd2,'*Change\x20to:*\x20%0',_0xcc0f62)};}});}};function Ie(_0x3a7adc){const _0x2ca06c=_0x3a7adc['getAttribute']('listIndent');if(0x0==_0x2ca06c)return _0x3a7adc;let _0x17b075=_0x3a7adc;for(;_0x3a7adc['previousSibling']&&_0x3a7adc['previousSibling']['is']('element','listItem');){const _0x13dc17=_0x3a7adc['previousSibling']['getAttribute']('listIndent');if(_0x13dc17==_0x2ca06c)_0x17b075=_0x3a7adc['previousSibling'];else{if(_0x13dc17<_0x2ca06c)break;}_0x3a7adc=_0x3a7adc['previousSibling'];}return _0x17b075;}function Ae(_0x301d9f){const _0x18c637=[];if(_0x301d9f['is']('element','listItem')&&_0x301d9f['getAttribute']('listIndent')>0x0){let _0x56a88e=_0x301d9f['nextSibling'];for(;_0x56a88e&&'listItem'==_0x56a88e['name']&&_0x56a88e['getAttribute']('listIndent')==_0x301d9f['getAttribute']('listIndent');)_0x18c637['push'](_0x56a88e),_0x56a88e=_0x56a88e['nextSibling'];}return _0x18c637;}var be=class extends _0x4020fb{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4fb211=this['editor']['config']['get']('list.properties'),_0x68dbe3=this['editor']['plugins']['get']('TrackChangesEditing');_0x4fb211['styles']&&_0x68dbe3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4fb211['reversed']&&_0x68dbe3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4fb211['startIndex']&&_0x68dbe3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x68dbe3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x4937c2,_0x22f038={}){const _0x58e34d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x560607=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x58e34d['markMultiRangeBlockFormat'](_0x560607,{'commandName':'listStyle','commandParams':[{'type':_0x22f038['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x54ddd5,_0x289976={}){const _0x1cdc4d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55421a=this['_getSuggestionBlocks'](_0x102e49=>_0x102e49['is']('element','listItem')&&'numbered'===_0x102e49['getAttribute']('listType'));if(_0x55421a['length']<0x1)return;const _0x3a78c4=_0x55421a['map'](_0x595abd=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x595abd,'before'),this['editor']['model']['createPositionAt'](_0x595abd,0x0)));this['editor']['model']['change'](()=>{_0x1cdc4d['markMultiRangeBlockFormat'](_0x3a78c4,{'commandName':'listReversed','commandParams':[{'reversed':_0x289976['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x23c0ef,_0x22266={}){const _0x106f01=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f60cc=this['_getSuggestionBlocks'](_0x18955a=>_0x18955a['is']('element','listItem')&&'numbered'===_0x18955a['getAttribute']('listType'));if(_0x4f60cc['length']<0x1)return;const _0x2e3f7d=_0x4f60cc['map'](_0x5ef02c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5ef02c,'before'),this['editor']['model']['createPositionAt'](_0x5ef02c,0x0)));this['editor']['model']['change'](()=>{_0x106f01['markMultiRangeBlockFormat'](_0x2e3f7d,{'commandName':'listStart','commandParams':[{'startIndex':_0x22266['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x24d2f2){if('formatBlock'!=_0x24d2f2['type']&&'formatInline'!=_0x24d2f2['type'])return;const _0x50b64e=this['editor']['locale'],{data:_0x237abd}=_0x24d2f2;if(!_0x237abd)return;let _0x490bb2,_0x4b5981;switch(_0x237abd['commandName']){case'listStyle':_0x490bb2='*Change\x20to:*\x20%0',_0x4b5981={'type':'format','content':Ot(_0x50b64e,_0x490bb2,Ot(_0x50b64e,this['_getTranslationKeyForListStyle'](_0x237abd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x490bb2=_0x237abd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4b5981={'type':'format','content':Ot(_0x50b64e,_0x490bb2)};break;case'listStart':_0x490bb2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4b5981={'type':'format','content':Ot(_0x50b64e,_0x490bb2,_0x237abd['commandParams'][0x0]['startIndex'])};}return _0x4b5981;}_getSuggestionBlocksForListStyle(){const _0x30ce0a=this['editor']['plugins']['get']('LegacyListUtils');let _0x127527=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x127527[0x0]?.['is']('element','listItem')&&_0x127527['unshift'](..._0x30ce0a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x127527[_0x127527['length']-0x1]?.['is']('element','listItem')&&_0x127527['push'](..._0x30ce0a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x127527=[...new Set(_0x127527)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x127527=_0x127527['filter'](_0x1eb7ed=>_0x1eb7ed['is']('element','listItem'))),_0x127527;}_getSuggestionBlocks(_0x498cb9){const _0x24f37b=this['editor']['plugins']['get']('LegacyListUtils');let _0x179b41=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x498cb9)['map'](_0x566fea=>{const _0x3f6665=this['editor']['model']['createPositionAt'](_0x566fea,0x0);return[..._0x24f37b['getSiblingNodes'](_0x3f6665,'backward'),..._0x24f37b['getSiblingNodes'](_0x3f6665,'forward')];})['flat']();return _0x179b41=[...new Set(_0x179b41)],_0x179b41;}_getTranslationKeyForListStyle(_0x508283){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x508283)||'default')['toUpperCase']()+'_LIST_'+_0x508283['toUpperCase']()['replace'](/-/g,'_');}},Ce=class extends _0x4020fb{afterInit(){const _0x45dc5d=this['editor'];if(!_0x45dc5d['plugins']['has']('MediaEmbedEditing'))return;const _0x59b0f1=_0x45dc5d['plugins']['get']('TrackChangesEditing'),_0x39c283=_0x45dc5d['locale'];_0x59b0f1['enableCommand']('mediaEmbed'),_0x59b0f1['descriptionFactory']['registerElementLabel']('media',_0x43972f=>Ot(_0x39c283,'ELEMENT_MEDIA',_0x43972f)),_0x45dc5d['plugins']['has']('MediaEmbedResizeEditing')&&(_0x59b0f1['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x59b0f1['descriptionFactory']['registerDescriptionCallback'](_0x22dbbe=>{if('attribute'!=_0x22dbbe['type'])return;const {data:_0x14d8d4}=_0x22dbbe;if(!_0x14d8d4||'resizedWidth'!=_0x14d8d4['key'])return;const _0x3ad7cf=_0x22dbbe['getContainedElement']();if(!_0x3ad7cf||!_0x3ad7cf['is']('element','media'))return;const _0x3ac6ac=Ot(_0x39c283,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Ot(_0x39c283,'*Set\x20format:*\x20%0',_0x3ac6ac)};}));}},ke=class extends _0x4020fb{afterInit(){const _0x2e25ef=this['editor'];if(!_0x2e25ef['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x3c8b35=_0x2e25ef['plugins']['get']('TrackChangesEditing'),_0x3c896d=_0x2e25ef['locale'],_0x4cd9d9=_0x2e25ef['plugins']['get']('MediaEmbedStyleEditing'),_0x990d18={};for(const _0xe8c4bc of _0x4cd9d9['normalizedStyles'])_0x990d18[_0xe8c4bc['name']]=_0xe8c4bc['title']['toLowerCase']();const _0x494889=_0x4cd9d9['normalizedStyles']['find'](_0x154610=>_0x154610['isDefault'])?.['name'];_0x3c8b35['enableCommand']('mediaStyle',(_0x263f9f,_0xaf7ac6)=>{const _0x59b156=_0x2e25ef['plugins']['get']('Users')['me'],_0x1054e8=_0x2e25ef['commands']['get']('mediaStyle'),_0x482f88=function(_0x3afbbf){const _0x3802ca=_0x3afbbf['model']['document']['selection']['getSelectedElement']();return _0x3802ca&&_0x3802ca['is']('element','media')?_0x3802ca:null;}(_0x2e25ef);if(!_0x482f88)return;const _0x35ab74=_0x2e25ef['model']['createRangeOn'](_0x482f88);let _0x369112=_0x1054e8['value'];if(_0x369112==_0xaf7ac6['value'])return;const _0x5bb26c={'commandName':'mediaStyle','commandParams':[_0xaf7ac6],'formatGroupId':_0x3469da()};_0x2e25ef['model']['change'](()=>{_0x3c8b35['getSuggestions']()['filter'](_0x522eea=>_0x522eea['isInContent']&&_0x59b156==_0x522eea['author']&&'formatBlock'==_0x522eea['type']&&'mediaStylePostApply'==_0x522eea['subType']&&_0x522eea['getFirstRange']()['isEqual'](_0x35ab74))['forEach'](_0xea1380=>_0x3c8b35['discardSuggestion'](_0xea1380['head'])),_0x1054e8['refresh'](),_0x369112=_0x1054e8['value'],_0x369112!=_0xaf7ac6['value']&&_0x3c8b35['markBlockFormat'](_0x482f88,{..._0x5bb26c,'commandReversedParams':[{'value':'string'==typeof _0x369112?_0x369112:null}]},[],'mediaStylePostApply');});}),_0x3c8b35['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x3c8b35['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x126c3d,_0x3bbdbf)=>{_0x3c8b35['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x126c3d,{'commandName':_0x3bbdbf['commandName'],'commandParams':_0x3bbdbf['commandReversedParams']});}),_0x3c8b35['descriptionFactory']['registerDescriptionCallback'](_0x27898b=>{if('formatBlock'!=_0x27898b['type'])return;const {data:_0x9b8860}=_0x27898b;if(!_0x9b8860||'mediaStyle'!=_0x9b8860['commandName'])return;const _0x134fdb=_0x9b8860['commandParams'][0x0]['value']||_0x494889;if(!_0x134fdb)return;const _0x4ebc6f=_0x990d18[_0x134fdb]||_0x134fdb;return{'type':'format','content':Ot(_0x3c896d,'*Format:*\x20%0',_0x4ebc6f)};});}},Re=class extends _0x4020fb{afterInit(){const _0x5502e5=this['editor'];_0x5502e5['plugins']['has']('MentionEditing')&&_0x5502e5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x4020fb{afterInit(){const _0x5535f0=this['editor'];if(!_0x5535f0['plugins']['has']('MergeFieldsEditing'))return;const _0x1cabb6=_0x5535f0['plugins']['get']('TrackChangesEditing'),_0x2f1d7e=_0x5535f0['locale'];_0x1cabb6['enableCommand']('insertMergeField'),_0x1cabb6['enableCommand']('insertMergeFieldBlock'),_0x1cabb6['enableCommand']('insertMergeFieldImage'),_0x1cabb6['descriptionFactory']['registerElementLabel']('mergeField',_0xe7cf76=>Ot(_0x2f1d7e,'ELEMENT_MERGE_FIELD',_0xe7cf76)),_0x1cabb6['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x174bc7=>Ot(_0x2f1d7e,'ELEMENT_MERGE_FIELD',_0x174bc7)),_0x1cabb6['descriptionFactory']['registerDescriptionCallback'](_0x5e1a99=>{if('insertion'!=_0x5e1a99['type']&&'deletion'!=_0x5e1a99['type'])return;const _0x4e7a04=_0x5e1a99['getContainedElement']();if(null==_0x4e7a04)return;const _0x2142fc=_0x5535f0['plugins']['get']('MergeFieldsEditing');let _0x23afbc;switch(_0x2142fc['getMergeFieldType'](_0x4e7a04)){case null:return;case'image':{const _0x367f81=_0x2142fc['unwrapAffixes'](_0x4e7a04['getAttribute']('src'));_0x23afbc=_0x2142fc['getLabel'](_0x367f81)||_0x367f81;break;}default:{const _0x4255a7=_0x4e7a04['getAttribute']('id');_0x23afbc=_0x2142fc['getLabel'](_0x4255a7)||_0x4255a7;break;}}return'insertion'==_0x5e1a99['type']?{'type':'insertion','content':Ot(_0x2f1d7e,'*Insert:*\x20%0','\x22'+_0x23afbc+'\x22\x20'+Ot(_0x2f1d7e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Ot(_0x2f1d7e,'*Remove:*\x20%0','\x22'+_0x23afbc+'\x22\x20'+Ot(_0x2f1d7e,'ELEMENT_MERGE_FIELD'))};});}},Ne=class extends _0x4020fb{afterInit(){const _0xd863a6=this['editor'],_0x7d36ce=_0xd863a6['plugins']['get']('TrackChangesEditing');_0xd863a6['plugins']['has']('MultiLevelList')&&(_0x7d36ce['enableDefaultAttributesIntegration']('multiLevelList'),_0x7d36ce['descriptionFactory']['registerDescriptionCallback'](_0x4220d2=>this['handleDescriptions'](_0x4220d2)));}handleDescriptions(_0x233a41){const _0x3a4efb=this['editor']['locale'],{data:_0x3d6e4f}=_0x233a41,_0x4a8933={'type':'format','content':''};if(_0x3d6e4f&&'listMarkerStyle'==_0x3d6e4f['key']){if(!_0x3d6e4f['oldValue'])return{'type':'format','content':Ot(_0x3a4efb,'*Set\x20format:*\x20%0',Ot(_0x3a4efb,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3d6e4f['newValue']+')'};if(!_0x3d6e4f['newValue']){let _0x5d76a5=_0x233a41['head'];for(;_0x5d76a5;){if(_0x5d76a5['data']&&'listType'==_0x5d76a5['data']['key']&&_0x5d76a5['data']['newValue'])return _0x4a8933;_0x5d76a5=_0x5d76a5['next'];}return{'type':'format','content':Ot(_0x3a4efb,'*Remove\x20format:*\x20%0',Ot(_0x3a4efb,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3d6e4f['oldValue']+')'};}}}},Se=class extends _0x4020fb{afterInit(){const _0x34ec0e=this['editor'];if(!_0x34ec0e['plugins']['has']('PageBreakEditing'))return;_0x34ec0e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xe2b732=_0x34ec0e['plugins']['get']('TrackChangesEditing'),_0x5d6524=_0x34ec0e['locale'];_0xe2b732['descriptionFactory']['registerElementLabel']('pageBreak',_0x101504=>Ot(_0x5d6524,'ELEMENT_PAGE_BREAK',_0x101504));}},Me=class extends _0x4020fb{afterInit(){const _0x42a0ac=this['editor'];if(!_0x42a0ac['plugins']['has']('Paragraph'))return;const _0x444308=_0x42a0ac['locale'],_0x239060=_0x42a0ac['plugins']['get']('TrackChangesEditing');_0x239060['descriptionFactory']['registerElementLabel']('paragraph',_0x39d3a1=>Ot(_0x444308,'ELEMENT_PARAGRAPH',_0x39d3a1)),_0x239060['enableDefaultAttributesIntegration']('paragraph'),_0x239060['enableCommand']('insertParagraph');const _0x19f451=_0x239060['descriptionFactory'];_0x19f451['registerDescriptionCallback'](_0x233164=>{if('insertion'!==_0x233164['type'])return;const {start:_0x12f28a,end:_0x1638b6}=_0x233164['getFirstRange']();if(!_0x12f28a['isTouching'](_0x1638b6)||!_0x12f28a['nodeAfter'])return;const _0x17e412=_0x42a0ac['model']['schema'],_0x2df0ee=_0x12f28a['nodeAfter'];return _0x17e412['isBlock'](_0x2df0ee)&&!_0x17e412['isLimit'](_0x2df0ee)&&_0x17e412['checkChild'](_0x2df0ee,'$text')?{'type':'insertion','content':Ot(_0x444308,'*Insert:*\x20%0',_0x19f451['getItemLabel'](_0x2df0ee,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4b90ae=this['editor'],_0x39ea65=_0x4b90ae['locale'];_0x4b90ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d3c59=>{if('formatBlock'!=_0x2d3c59['type'])return;const {data:_0x422d16}=_0x2d3c59;return _0x422d16&&'paragraph'==_0x422d16['commandName']?{'type':'format','content':Ot(_0x39ea65,'*Change\x20to:*\x20%0',Ot(_0x39ea65,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Oe=class extends _0x4020fb{afterInit(){const _0x21bfa8=this['editor'];_0x21bfa8['commands']['get']('replaceSource')&&_0x21bfa8['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},we=class extends _0x4020fb{afterInit(){const _0x144bf3=this['editor'];_0x144bf3['plugins']['has']('RemoveFormatEditing')&&(_0x144bf3['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x23dd88=this['editor'];_0x23dd88['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c2de8=>{if('formatBlock'!=_0x4c2de8['type']&&'formatInline'!=_0x4c2de8['type'])return;const {data:_0x3adc94}=_0x4c2de8;return _0x3adc94&&'removeFormat'==_0x3adc94['commandName']?{'type':'format','content':Ot(_0x23dd88['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x4020fb{afterInit(){const _0x2d2562=this['editor'];if(!_0x2d2562['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xda15ed=_0x2d2562['plugins']['get']('TrackChangesEditing');_0xda15ed['enableCommand']('goToPreviousRestrictedEditingException'),_0xda15ed['enableCommand']('goToNextRestrictedEditingException');const _0x31c30b=_0x2d2562['plugins']['get']('RestrictedEditingModeEditing');_0x31c30b['enableCommand']('trackChanges'),_0x31c30b['enableCommand']('acceptSuggestion'),_0x31c30b['enableCommand']('discardSuggestion'),_0x31c30b['enableCommand']('acceptAllSuggestions'),_0x31c30b['enableCommand']('discardAllSuggestions'),_0x31c30b['enableCommand']('acceptSelectedSuggestions'),_0x31c30b['enableCommand']('discardSelectedSuggestions');}},Be=class extends _0x4020fb{afterInit(){const _0x57b147=this['editor'];if(!_0x57b147['plugins']['has']('ShiftEnter'))return;const _0x1492f6=_0x57b147['plugins']['get']('TrackChangesEditing');_0x1492f6['enableCommand']('shiftEnter'),_0x1492f6['descriptionFactory']['registerElementLabel']('softBreak',_0x47ade9=>Ot(_0x57b147['locale'],'ELEMENT_LINE_BREAK',_0x47ade9));}};function ve(_0x94899a,_0x4b9483,_0x34da50){const _0x511319=[];for(const _0x3dfd35 of _0x4b9483['getItems']())_0x3dfd35['hasAttribute'](_0x94899a)&&_0x511319['push'](_0x34da50['createRangeOn'](_0x3dfd35));return _0x511319;}var De=class extends _0x4020fb{afterInit(){const _0x4a2934=this['editor'],_0x26fdf0=_0x4a2934['plugins']['get']('TrackChangesEditing');_0x4a2934['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x26fdf0['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x249842=this['editor'],_0x500033=_0x249842['model'],_0x27774b=_0x249842['locale'],_0xdef5aa=_0x249842['plugins']['get']('TrackChangesEditing'),_0x56fe1b='restrictedEditingException',_0x2cd6c5=_0x249842['commands']['get'](_0x56fe1b);_0xdef5aa['enableCommand'](_0x56fe1b,(_0x22e3fe,_0x58e278={})=>{const _0x261f2f=_0x500033['document']['selection'];if(_0x261f2f['isCollapsed'])return void _0x22e3fe(_0x58e278);const _0x1ada15=void 0x0!==_0x58e278['forceValue']?_0x58e278['forceValue']:!_0x2cd6c5['value'];_0x500033['change'](()=>{const _0x36bbce=Array['from'](_0x261f2f['getRanges']());for(const _0x84afa2 of _0x36bbce){const _0x20f2ce=_0x1ada15?[_0x84afa2]:ve(_0x56fe1b,_0x84afa2,_0x500033);for(const _0xe69ad of _0x20f2ce)_0xdef5aa['markInlineFormat'](_0xe69ad,{'commandName':_0x56fe1b,'commandParams':[{'forceValue':_0x1ada15}]});}});}),_0xdef5aa['descriptionFactory']['registerDescriptionCallback'](_0x529d7a=>{if('formatBlock'!=_0x529d7a['type']&&'formatInline'!=_0x529d7a['type'])return;const {data:_0x2e7be3}=_0x529d7a;return _0x2e7be3&&_0x2e7be3['commandName']==_0x56fe1b?_0x2e7be3['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x27774b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x27774b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x5b0eaf=this['editor'],_0x3ba903=_0x5b0eaf['locale'],_0x5e05e2=_0x5b0eaf['plugins']['get']('TrackChangesEditing'),_0x180588='restrictedEditingExceptionBlock',_0x1a1fda=this['editor']['commands']['get'](_0x180588);_0x5e05e2['enableCommand'](_0x180588,(_0x14219b,_0x1c8509={})=>{const _0x585081=this['editor']['model']['document']['selection'],_0x39ad2e=_0x1c8509&&void 0x0!==_0x1c8509['forceValue']?_0x1c8509['forceValue']:!_0x1a1fda['value'];let _0x42a315=[];_0x42a315=Ct(_0x39ad2e?Array['from'](_0x585081['getSelectedBlocks']())['filter'](_0x39fb2f=>function(_0x1bddc6){return!!_0x1bddc6['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x39fb2f)||function(_0x405512,_0x9e0835){const _0x1f8022=_0x9e0835['createContext'](_0x405512['parent']);return!!_0x9e0835['checkChild'](_0x1f8022,'restrictedEditingException')&&!!_0x9e0835['checkChild'](_0x1f8022['push']('restrictedEditingException'),_0x405512);}(_0x39fb2f,this['editor']['model']['schema'])):Array['from'](_0x585081['getSelectedBlocks']())['map'](_0x179794=>function(_0x519094){let _0x43cf20=_0x519094;for(;_0x43cf20['parent'];){if('restrictedEditingException'==_0x43cf20['parent']['name'])return _0x43cf20;_0x43cf20=_0x43cf20['parent'];}return null;}(_0x179794))['filter'](_0x25b539=>!!_0x25b539),_0x5b0eaf['model']),_0x5b0eaf['model']['change'](()=>{for(const _0x108fa9 of _0x42a315)_0x5e05e2['markBlockFormat'](_0x108fa9,{'commandName':_0x180588,'commandParams':[{'forceValue':_0x39ad2e}]});});}),_0x5e05e2['descriptionFactory']['registerDescriptionCallback'](_0x1b578d=>{const {data:_0x37d87b}=_0x1b578d;if(_0x37d87b&&_0x37d87b['commandName']==_0x180588)return _0x37d87b['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x3ba903,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x3ba903,'FORMAT_RESTRICTED_DISABLED')};});}},Ue=class extends _0x4020fb{afterInit(){const _0x48f9d7=this['editor'];_0x48f9d7['plugins']['has']('Style')&&_0x48f9d7['plugins']['has']('DataSchema')&&(_0x48f9d7['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x351457=this['editor'],_0x49d341=_0x351457['locale'];_0x351457['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6e0c76=>{if('formatBlock'!=_0x6e0c76['type']&&'formatInline'!=_0x6e0c76['type'])return;const {data:_0x1cb885}=_0x6e0c76;return _0x1cb885&&'style'===_0x1cb885['commandName']?_0x1cb885['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x49d341,'*Set\x20format:*\x20%0',_0x1cb885['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Ot(_0x49d341,'*Remove\x20format:*\x20%0',_0x1cb885['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Pe=class extends _0x4020fb{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0xcc889){super(_0xcc889),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x331e3c=this['editor'],_0x4e690e=_0x331e3c['model']['document']['selection'];if(!_0x331e3c['plugins']['has']('TableEditing'))return;const _0x232aa2=_0x331e3c['locale'],_0x5503b8=_0x331e3c['plugins']['get']('TrackChangesEditing'),_0x17137b=_0x331e3c['plugins']['get']('TableUtils');_0x5503b8['descriptionFactory']['registerElementLabel']('table',_0x464521=>Ot(_0x232aa2,'ELEMENT_TABLE',_0x464521)),this['_setupColumnsRowsFixing'](),_0x5503b8['enableCommand']('insertTable'),_0x5503b8['enableCommand']('selectTableRow'),_0x5503b8['enableCommand']('selectTableColumn');for(const _0x2e73ad of['insertTableRowAbove','insertTableRowBelow']){const _0x181ce5=_0x331e3c['commands']['get'](_0x2e73ad);_0x5503b8['enableCommand'](_0x2e73ad,_0x1ba615=>{_0x331e3c['model']['change'](_0x46f410=>{_0x1ba615();const _0x504c0c='above'===_0x181ce5['order'],_0x5510d4=_0x17137b['getSelectionAffectedTableCells'](_0x4e690e),_0xe4957=_0x17137b['getRowIndexes'](_0x5510d4),_0x249655=_0x504c0c?_0xe4957['first']-0x1:_0xe4957['last']+0x1,_0x1d3fea=_0x5510d4[0x0]['findAncestor']('table'),_0x2e9b33=_0x17137b['createTableWalker'](_0x1d3fea,{'startRow':_0x249655,'endRow':_0x249655}),_0x31e09f=Array['from'](_0x2e9b33)['map'](_0x39df6b=>_0x46f410['createRangeOn'](_0x39df6b['cell']));_0x5503b8['markMultiRangeInsertion'](_0x31e09f,'tableRow');});});}for(const _0x19106c of['insertTableColumnLeft','insertTableColumnRight']){const _0x6cfcac=_0x331e3c['commands']['get'](_0x19106c);_0x5503b8['enableCommand'](_0x19106c,_0x194ef8=>{_0x331e3c['model']['change'](_0x1b7b49=>{_0x194ef8();const _0x29047d='left'===_0x6cfcac['order'],_0xae23fd=_0x17137b['getSelectionAffectedTableCells'](_0x4e690e),_0x9d7579=_0x17137b['getColumnIndexes'](_0xae23fd),_0x19a12d=_0x29047d?_0x9d7579['first']-0x1:_0x9d7579['last']+0x1,_0x2af196=_0xae23fd[0x0]['findAncestor']('table'),_0x108514=_0x17137b['createTableWalker'](_0x2af196,{'startRow':0x0,'column':_0x19a12d,'includeAllSlots':!0x1}),_0xdf9a51=Array['from'](_0x108514)['map'](_0x52ff63=>_0x1b7b49['createRangeOn'](_0x52ff63['cell']));_0x5503b8['markMultiRangeInsertion'](_0xdf9a51,'tableColumn');});});}for(const _0x2eb362 of['removeTableRow','removeTableColumn']){const _0x101433=_0x2eb362['substr'](0xb),_0x3d6b8b=_0x101433['toLowerCase'](),_0x3701b8=_0x3d6b8b['substr'](0x0,0x3)+'span',_0x1bff37='table'+_0x101433,_0x126c3b='min'+_0x101433,_0x3c12f5='max'+_0x101433;_0x5503b8['enableCommand'](_0x2eb362,()=>{_0x331e3c['model']['change'](_0x213256=>{const _0x4f060a=_0x17137b['getSelectionAffectedTableCells'](_0x4e690e),_0x13d428=_0x4f060a[0x0]['findAncestor']('table');let _0x38569b;if('removeTableRow'==_0x2eb362){const _0x1714cd=_0x17137b['getRowIndexes'](_0x4f060a);_0x38569b={'startRow':_0x1714cd['first'],'endRow':_0x1714cd['last'],'includeAllSlots':!0x0};}else{const _0x2615e2=_0x17137b['getColumnIndexes'](_0x4f060a);_0x38569b={'startColumn':_0x2615e2['first'],'endColumn':_0x2615e2['last'],'includeAllSlots':!0x0};}const _0xf4c989=_0x17137b['createTableWalker'](_0x13d428,_0x38569b),_0x4db9b0=Array['from'](_0xf4c989)['map'](({cell:_0xc9c137})=>_0xc9c137),_0x1b6ead=xe(_0x4db9b0['filter'](_0x52c5a3=>_0x52c5a3['hasAttribute'](_0x3701b8))),_0x2ad36a=xe(_0x4db9b0['filter'](_0x127c1e=>!_0x127c1e['hasAttribute'](_0x3701b8)))['map'](_0x4ee01e=>_0x213256['createRangeOn'](_0x4ee01e)),_0x324d97=_0x5503b8['markMultiRangeDeletion'](_0x2ad36a,_0x1bff37);if(_0x324d97&&('tableRow'==_0x324d97['subType']||'tableColumn'==_0x324d97['subType'])){const _0x15cf69=this['_getSuggestionCoords'](_0x324d97);for(const _0x2da2f6 of _0x1b6ead){const _0x1f4e2f=_0x213256['createRangeOn'](_0x2da2f6),_0x3174ba=_0x17137b['getCellLocation'](_0x2da2f6),_0x12adbf=_0x2da2f6['getAttribute'](_0x3701b8)-0x1,_0x4b28dc=_0x15cf69[_0x126c3b],_0x5e79b7=_0x15cf69[_0x3c12f5];_0x4b28dc<=_0x3174ba[_0x3d6b8b]&&_0x3174ba[_0x3d6b8b]+_0x12adbf<=_0x5e79b7&&_0x324d97['addRange'](_0x1f4e2f);}}});});}function _0x11ec4a(_0x307462){const _0x2a5f15=Array['from'](_0x4e690e['getRanges']())['map'](_0x5c854d=>ot['fromRange'](_0x5c854d));_0x331e3c['model']['change'](_0x3f957f=>{const _0x4ed6a8=_0x3f957f['batch'];_0x307462=_0x307462['filter'](_0x4692ec=>'$graveyard'!=_0x4692ec['root']['rootName']),_0x3f957f['setSelection'](_0x307462),_0x331e3c['commands']['get']('removeTableRow')['refresh'](),_0x331e3c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x331e3c['model']['enqueueChange'](()=>{_0x331e3c['model']['enqueueChange'](_0x4ed6a8,_0x259fe4=>{const _0x3ae8b1=_0x2a5f15['filter'](_0x24e238=>'$graveyard'!=_0x24e238['root']['rootName']);_0x3ae8b1['length']>0x0&&_0x259fe4['setSelection'](_0x3ae8b1);for(const _0x1c1edb of _0x2a5f15)_0x1c1edb['detach']();});});});}function _0x470c4a(_0xef676f){_0x331e3c['model']['change'](_0x45316f=>{const _0x55a62f=Array['from'](_0x4e690e['getRanges']())['map'](_0x4140df=>ot['fromRange'](_0x4140df)),_0x305634=[];for(const _0x45b07f of _0xef676f)for(const _0x149c43 of _0x45b07f['getItems']({'shallow':!0x0}))_0x305634['push'](_0x149c43);for(const _0x47265c of _0x305634)'$graveyard'!=_0x47265c['root']['rootName']&&(_0x45316f['setSelection'](_0x45316f['createPositionAt'](_0x47265c,0x0)),_0x331e3c['commands']['get']('removeTableColumn')['refresh'](),_0x331e3c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1b6de2=_0x55a62f['filter'](_0x2582a7=>'$graveyard'!=_0x2582a7['root']['rootName']);_0x1b6de2['length']>0x0&&_0x45316f['setSelection'](_0x1b6de2);for(const _0x3d7bea of _0x55a62f)_0x3d7bea['detach']();});}function _0x42cbac(_0x4c5ccc,_0x370103){return _0x370103['every'](_0x549f6c=>_0x4c5ccc['some'](_0x4486f0=>_0x4486f0['end']['isEqual'](_0x549f6c['start'])||_0x549f6c['end']['isEqual'](_0x4486f0['start'])));}function _0x2f0fe7(_0x44fdc1,_0x247beb){return!_0x44fdc1['some'](_0x5be50a=>_0x247beb['some'](_0x5ec3ba=>_0x5be50a['isIntersecting'](_0x5ec3ba)))&&_0x44fdc1['some'](_0x567adc=>_0x247beb['some'](_0x43eee3=>_0x567adc['end']['isTouching'](_0x43eee3['start'])));}_0x5503b8['descriptionFactory']['registerDescriptionCallback'](_0x5c20b0=>{if('insertion'!=_0x5c20b0['type']&&'deletion'!=_0x5c20b0['type'])return;const _0x194970=_0x5c20b0['getContainedElement']();if(null!=_0x194970&&_0x194970['is']('element','table')){if('insertion'==_0x5c20b0['type']){const _0x810194=_0x5c20b0['getItems']()['filter'](_0x19aac5=>_0x19aac5['is']('$textProxy'))['map'](_0xe41172=>_0xe41172['data']);if(_0x810194['length'])return{'type':'insertion','content':Ot(_0x232aa2,'*Insert:*\x20%0',Ot(_0x232aa2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x810194['join']('\x20')+'\x22'))};}if('deletion'==_0x5c20b0['type']){const _0x3de28b=_0x5c20b0['getItems']()['filter'](_0x57cd14=>_0x57cd14['is']('$textProxy'))['map'](_0x512754=>_0x512754['data']);if(_0x3de28b['length'])return{'type':'deletion','content':Ot(_0x232aa2,'*Remove:*\x20%0',Ot(_0x232aa2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3de28b['join']('\x20')+'\x22'))};}}}),_0x5503b8['descriptionFactory']['registerDescriptionCallback'](_0x119d17=>{if('tableRow'==_0x119d17['subType']){const _0x15ef30=_0x119d17['getItems']()['filter'](_0x20e8a4=>_0x20e8a4['is']('$textProxy'))['map'](_0x2a5bfc=>_0x2a5bfc['data']),_0x479ed3=this['_getSuggestionCoords'](_0x119d17),_0x13c4b2=_0x479ed3['maxRow']-_0x479ed3['minRow']+0x1;if('insertion'==_0x119d17['type'])return _0x15ef30['length']?{'type':'insertion','content':Ot(_0x232aa2,'*Insert:*\x20%0',Ot(_0x232aa2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x13c4b2,'\x22'+_0x15ef30['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0x232aa2,'*Insert:*\x20%0',Ot(_0x232aa2,'ELEMENT_TABLE_ROW',_0x13c4b2))};if('deletion'==_0x119d17['type'])return _0x15ef30['length']?{'type':'deletion','content':Ot(_0x232aa2,'*Remove:*\x20%0',Ot(_0x232aa2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x13c4b2,'\x22'+_0x15ef30['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0x232aa2,'*Remove:*\x20%0',Ot(_0x232aa2,'ELEMENT_TABLE_ROW',_0x13c4b2))};}if('tableColumn'==_0x119d17['subType']){const _0x20655e=_0x119d17['getItems']()['filter'](_0x26e5da=>_0x26e5da['is']('$textProxy'))['map'](_0x1df66f=>_0x1df66f['data']),_0x3e219c=this['_getSuggestionCoords'](_0x119d17),_0x488f17=_0x3e219c['maxColumn']-_0x3e219c['minColumn']+0x1;if('insertion'==_0x119d17['type'])return _0x20655e['length']?{'type':'insertion','content':Ot(_0x232aa2,'*Insert:*\x20%0',Ot(_0x232aa2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x488f17,'\x22'+_0x20655e['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0x232aa2,'*Insert:*\x20%0',Ot(_0x232aa2,'ELEMENT_TABLE_COLUMN',_0x488f17))};if('deletion'==_0x119d17['type'])return _0x20655e['length']?{'type':'deletion','content':Ot(_0x232aa2,'*Remove:*\x20%0',Ot(_0x232aa2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x488f17,'\x22'+_0x20655e['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0x232aa2,'*Remove:*\x20%0',Ot(_0x232aa2,'ELEMENT_TABLE_COLUMN',_0x488f17))};}}),_0x5503b8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x11ec4a),_0x5503b8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x11ec4a),_0x5503b8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x470c4a),_0x5503b8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x470c4a),_0x5503b8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x42cbac),_0x5503b8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x42cbac),_0x5503b8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2f0fe7),_0x5503b8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2f0fe7);}_acceptFormatSuggestionCallbackFactory(){const _0x4ca9f3=this['editor'],_0x5dd589=_0x4ca9f3['model']['document']['selection'];return(_0xd43117,_0x417efb)=>{_0x4ca9f3['model']['change'](_0x5df123=>{const {commandName:_0x464539,commandParams:_0x424dd6}=_0x417efb;let _0x2451b2=_0xd43117[0x0]['end']['nodeBefore'];_0x424dd6&&_0x424dd6[0x0]&&!0x1===_0x424dd6[0x0]['forceValue']&&(_0x2451b2=_0xd43117[0x0]['start']['nodeAfter']);const _0x46c1e5=_0x5df123['createRangeIn'](_0x2451b2);if('$graveyard'==_0x46c1e5['root']['rootName'])return;const _0x21470d=Array['from'](_0x5dd589['getRanges']())['map'](_0x360b21=>ot['fromRange'](_0x360b21));_0x5df123['setSelection'](_0x46c1e5),_0x4ca9f3['commands']['get'](_0x464539)['refresh'](),_0x424dd6['push']({'forceDefaultExecution':!0x0}),_0x4ca9f3['execute'](_0x464539,..._0x424dd6);const _0xc9355e=_0x21470d['filter'](_0x11e0d7=>'$graveyard'!=_0x11e0d7['root']['rootName']);_0xc9355e['length']>0x0&&_0x5df123['setSelection'](_0xc9355e);for(const _0x4b7c88 of _0x21470d)_0x4b7c88['detach']();});};}_getCoordsForCells(_0x23f28d){const _0x2c19bb=this['editor']['plugins']['get']('TableUtils');let _0x7d37c1=Number['MAX_SAFE_INTEGER'],_0x394c97=Number['MIN_SAFE_INTEGER'],_0x2c633c=Number['MAX_SAFE_INTEGER'],_0x23e502=Number['MIN_SAFE_INTEGER'];for(const _0x3e78a1 of _0x23f28d){if('$graveyard'==_0x3e78a1['root']['rootName'])continue;const {row:_0x267d00,column:_0x52a09d}=_0x2c19bb['getCellLocation'](_0x3e78a1),_0x24099d=_0x3e78a1['hasAttribute']('rowspan')?_0x3e78a1['getAttribute']('rowspan')-0x1:0x0,_0x22efe5=_0x3e78a1['hasAttribute']('colspan')?_0x3e78a1['getAttribute']('colspan')-0x1:0x0;_0x7d37c1=_0x267d00<_0x7d37c1?_0x267d00:_0x7d37c1,_0x394c97=_0x267d00+_0x24099d>_0x394c97?_0x267d00+_0x24099d:_0x394c97,_0x2c633c=_0x52a09d<_0x2c633c?_0x52a09d:_0x2c633c,_0x23e502=_0x52a09d+_0x22efe5>_0x23e502?_0x52a09d+_0x22efe5:_0x23e502;}return{'minRow':_0x7d37c1,'maxRow':_0x394c97,'minColumn':_0x2c633c,'maxColumn':_0x23e502};}_setupColumnsRowsFixing(){const _0x4b5baa=this['editor'],_0x27fe1d=_0x4b5baa['plugins']['get']('TrackChangesEditing'),_0x2e0a2c=_0x4b5baa['plugins']['get']('TableUtils');_0x4b5baa['model']['document']['on']('change:data',()=>{const _0x4643bc=Array['from'](_0x4b5baa['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4b2194,data:_0x3fa92c}of _0x4643bc){const {group:_0x58b483,id:_0x1aeb2a,subType:_0x321b04}=et(_0x4b2194);if('suggestion'!=_0x58b483)continue;if(null!=_0x3fa92c['oldRange'])continue;const _0xb5238b=_0x27fe1d['getSuggestion'](_0x1aeb2a);this['_tablePostFixingSubtypes']['includes'](_0x321b04)&&this['_tableSuggestions']['add'](_0xb5238b);}},{'priority':'low'});const _0x57533e=(_0x38c6d5,_0x2ff793)=>{let _0x4250fc=!0x1;const _0x20b30d=_0x2ff793['createRangeOn'](_0x38c6d5),_0x1bd879=_0x38c6d5['findAncestor']('table'),_0x1ee8f5=_0x2e0a2c['getCellLocation'](_0x38c6d5);for(const _0x432a4e of this['_tableSuggestions']){const _0x13aebb=_0x432a4e['subType'],_0x36faa4=_0x13aebb['startsWith']('tablePaste'),_0x4dabf5=_0x13aebb['substr'](_0x36faa4?0xa:0x5),_0x4b3de1=_0x4dabf5['toLowerCase'](),_0xc8f070=_0x4b3de1['substr'](0x0,0x3)+'span',_0x1ecc52='min'+_0x4dabf5,_0x461195='max'+_0x4dabf5;if(!_0x432a4e['isInContent'])continue;if(_0x1bd879!=_0x432a4e['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x432a4e['isIntersectingWithRange'](_0x20b30d))continue;const _0x25f2f2=_0x38c6d5['hasAttribute'](_0xc8f070)?_0x38c6d5['getAttribute'](_0xc8f070)-0x1:0x0,_0x44a90b=this['_getSuggestionCoords'](_0x432a4e),_0x5dbd7c=_0x44a90b[_0x1ecc52],_0x49dba0=_0x44a90b[_0x461195];_0x5dbd7c<=_0x1ee8f5[_0x4b3de1]&&_0x1ee8f5[_0x4b3de1]+_0x25f2f2<=_0x49dba0&&(_0x432a4e['addRange'](_0x20b30d),_0x4250fc=!0x0);}return _0x4250fc;};_0x4b5baa['model']['document']['registerPostFixer'](_0x57eadb=>{let _0x52ac1d=!0x1;for(const _0x463478 of _0x4b5baa['model']['document']['differ']['getChanges']())if('insert'==_0x463478['type']){if('tableRow'==_0x463478['name']){for(const _0x4259be of _0x463478['position']['nodeAfter']['getChildren']())_0x52ac1d=_0x52ac1d||_0x57533e(_0x4259be,_0x57eadb);}else'tableCell'==_0x463478['name']&&(_0x52ac1d=_0x52ac1d||_0x57533e(_0x463478['position']['nodeAfter'],_0x57eadb));}return _0x52ac1d;});}_getSuggestionCoords(_0x511408){return this['_getCoordsForCells'](_0x511408['getRanges']()['map'](_0x41985c=>_0x41985c['start']['nodeAfter']));}};function xe(_0x11f090){return Array['from'](new Set(_0x11f090)['values']());}var Ge=class extends _0x4020fb{static get requires(){return[Pe];}afterInit(){const _0x27da5c=this['editor'],_0x6ac89a=_0x27da5c['model']['document']['selection'],_0x2eac93=_0x27da5c['locale'];if(!_0x27da5c['plugins']['has']('TableEditing'))return;const _0x3e2ec8=_0x27da5c['plugins']['get']('TrackChangesEditing'),_0x55bb31=_0x27da5c['plugins']['get']('TableUtils'),_0x51bf3c=_0x27da5c['plugins']['get'](Pe);_0x51bf3c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3e2ec8['enableCommand']('mergeTableCells',()=>{const _0x32be23=_0x55bb31['getSelectionAffectedTableCells'](_0x27da5c['model']['document']['selection']);_0x27da5c['model']['change'](()=>{_0x3e2ec8['markMultiRangeBlockFormat'](_0x32be23,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x27da5c['commands']['get']('mergeTableCells')['on']('execute',(_0x152853,_0x32716a)=>{_0x27da5c['commands']['get']('trackChanges')['value']&&(_0x32716a['length']>0x0&&_0x32716a[_0x32716a['length']-0x1]&&_0x32716a[_0x32716a['length']-0x1]['forceDefaultExecution']||_0x3e2ec8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x152853['stop']());},{'priority':'highest'});for(const _0x15ed96 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x31631b=_0x27da5c['commands']['get'](_0x15ed96);_0x3e2ec8['enableCommand'](_0x15ed96,()=>{const _0x528056=_0x27da5c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x46009e=>_0x46009e['is']('element','tableCell')),_0x47dd7c=_0x31631b['value'];_0x27da5c['model']['change'](()=>{_0x3e2ec8['markMultiRangeBlockFormat']([_0x528056,_0x47dd7c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4aaf13 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5c1064=_0x27da5c['commands']['get'](_0x4aaf13);_0x3e2ec8['enableCommand'](_0x4aaf13,()=>{const _0x476a93=_0x55bb31['getSelectionAffectedTableCells'](_0x27da5c['model']['document']['selection']),_0x1cc5bf=_0x476a93[0x0]['findAncestor']('table'),_0x10f815=new Set();for(const _0x153129 of _0x476a93){const {column:_0x93387c,row:_0x3487bf}=_0x55bb31['getCellLocation'](_0x153129),_0x2dfb9f='horizontally'==_0x5c1064['direction']?_0x55bb31['createTableWalker'](_0x1cc5bf,{'startRow':_0x3487bf,'endRow':_0x3487bf,'includeAllSlots':!0x0}):_0x55bb31['createTableWalker'](_0x1cc5bf,{'column':_0x93387c,'includeAllSlots':!0x0});for(const {cell:_0x42a3d8}of _0x2dfb9f)_0x10f815['add'](_0x42a3d8);}_0x27da5c['model']['change'](()=>{_0x3e2ec8['markMultiRangeBlockFormat'](_0x476a93,{'commandName':_0x4aaf13,'commandParams':[]},Array['from'](_0x10f815),_0x4aaf13);});});}_0x3e2ec8['descriptionFactory']['registerDescriptionCallback'](_0x32c89e=>{if('formatBlock'!=_0x32c89e['type']&&'formatInline'!=_0x32c89e['type'])return;const {data:_0x365a06}=_0x32c89e;return _0x365a06&&'mergeTableCells'==_0x365a06['commandName']?{'type':'format','content':Ot(_0x2eac93,'*Merge\x20cells*')}:void 0x0;}),_0x3e2ec8['descriptionFactory']['registerDescriptionCallback'](_0x459536=>{if('formatBlock'!=_0x459536['type']&&'formatInline'!=_0x459536['type'])return;const {data:_0x2c6c06}=_0x459536;return _0x2c6c06?'splitTableCellVertically'==_0x2c6c06['commandName']?{'type':'format','content':Ot(_0x2eac93,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2c6c06['commandName']?{'type':'format','content':Ot(_0x2eac93,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x7bfee6=_0x51bf3c['_acceptFormatSuggestionCallbackFactory']();for(const _0x112a19 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3e2ec8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x112a19,'accept',_0x7bfee6);for(const _0x16b481 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3e2ec8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x16b481,'accept',_0x2c39d8=>{_0x27da5c['model']['change'](_0x4c793b=>{const _0x33368e=Array['from'](_0x2c39d8)['filter'](_0x147188=>'$graveyard'!=_0x147188['root']['rootName']&&!!_0x147188['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x33368e['length'])return;const _0x375aa3=Array['from'](_0x6ac89a['getRanges']())['map'](_0x7c021b=>ot['fromRange'](_0x7c021b));_0x4c793b['setSelection'](_0x33368e),_0x27da5c['commands']['get'](_0x16b481)['refresh'](),_0x27da5c['execute'](_0x16b481,{'forceDefaultExecution':!0x0});const _0x27e6b1=_0x375aa3['filter'](_0x3fa2e9=>'$graveyard'!=_0x3fa2e9['root']['rootName']);_0x27e6b1['length']>0x0&&_0x4c793b['setSelection'](_0x27e6b1);for(const _0xb34d68 of _0x375aa3)_0xb34d68['detach']();});});_0x3e2ec8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4de64c=>{_0x27da5c['model']['change'](_0xecd676=>{const _0x154bd4=Array['from'](_0x6ac89a['getRanges']())['map'](_0x28b088=>ot['fromRange'](_0x28b088));_0xecd676['setSelection'](_0x4de64c),_0x27da5c['commands']['get']('mergeTableCells')['refresh'](),_0x27da5c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1b66a6=_0x154bd4['filter'](_0x1afcb3=>'$graveyard'!=_0x1afcb3['root']['rootName']);_0x1b66a6['length']>0x0&&_0xecd676['setSelection'](_0x1b66a6);for(const _0x30692b of _0x154bd4)_0x30692b['detach']();});});for(const _0x11ac1b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x50df41=_0x27da5c['commands']['get'](_0x11ac1b);_0x50df41['on']('set:isEnabled',(_0x16f3a6,_0x5e1ee4,_0x32c86d)=>{if(_0x32c86d){const _0x30077d=_0x27da5c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x27ac48=>_0x27ac48['is']('element','tableCell'));this['_areMergableCells'](_0x50df41['value'],_0x30077d)||(_0x16f3a6['return']=!0x1,_0x16f3a6['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x40ea51=this['editor']['commands']['get']('mergeTableCells'),_0x2ba663=this['editor']['plugins']['get']('TableUtils');if(!_0x40ea51['isEnabled'])return!0x1;const _0x13214d=_0x2ba663['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4d0ec4 of _0x13214d)for(const _0x527315 of _0x13214d)if(_0x4d0ec4!=_0x527315&&!this['_areMergableCells'](_0x4d0ec4,_0x527315))return!0x1;return!0x0;}['_areMergableCells'](_0x29b295,_0x341f28){const _0x197821=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4637cc=this['editor']['model']['createRangeOn'](_0x29b295),_0x2d9c67=this['editor']['model']['createRangeOn'](_0x341f28),_0x1c33f8=new Set(),_0x422430=new Set();for(const _0x3cae9c of _0x197821['getSuggestions']())if(('insertion'==_0x3cae9c['type']||'deletion'==_0x3cae9c['type']||'mergeTableCells'==_0x3cae9c['subType'])&&_0x3cae9c['isInContent']){for(const _0x574517 of _0x3cae9c['getRanges']())_0x574517['containsRange'](_0x4637cc,!0x0)&&_0x1c33f8['add'](_0x3cae9c['type']+':'+_0x3cae9c['author']['id']),_0x574517['containsRange'](_0x2d9c67,!0x0)&&_0x422430['add'](_0x3cae9c['type']+':'+_0x3cae9c['author']['id']);}if(_0x1c33f8['size']!=_0x422430['size'])return!0x1;for(const _0x490ac1 of _0x1c33f8)if(!_0x422430['has'](_0x490ac1))return!0x1;return!0x0;}},He=class extends _0x4020fb{static get requires(){return[Pe];}afterInit(){const _0x72f078=this['editor'];if(!_0x72f078['plugins']['has']('TableEditing'))return;const _0x44661e=_0x72f078['locale'],_0x10463f=_0x72f078['plugins']['get']('TrackChangesEditing');_0x10463f['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x10463f['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x10463f['descriptionFactory']['registerAttributeLabel']('headingRows',Ot(_0x44661e,'FORMAT_HEADER_ROW')),_0x10463f['descriptionFactory']['registerAttributeLabel']('headingColumns',Ot(_0x44661e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x6246ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28d3ef=this['editor']['plugins']['get'](Pe)['_acceptFormatSuggestionCallbackFactory']();_0x6246ac['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x28d3ef),_0x6246ac['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x28d3ef),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x5e0707=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41a2b0=this['editor']['plugins']['get']('TableUtils');function _0x3028d8({showActiveMarker:_0x23c534=!0x0,setDataAttribute:_0x2737d2=!0x0}={}){return(_0x656e81,_0x57e120,_0x30abb1)=>{const {type:_0x1298c2,id:_0x3b40c6}=et(_0x57e120['markerName']);if(!_0x5e0707['hasSuggestion'](_0x3b40c6))return;const _0x2af2c9=_0x5e0707['getSuggestion'](_0x3b40c6),_0x5e26b0=_0x2af2c9['data'];if('formatBlock'!=_0x2af2c9['type']||!_0x5e26b0||'setTableColumnHeader'!=_0x5e26b0['commandName'])return;if(_0x57e120['item'])return void _0x656e81['stop']();if(!_0x30abb1['consumable']['consume'](_0x57e120['markerRange'],_0x656e81['name']))return;const _0x5149a0=_0x57e120['markerRange']['start']['nodeAfter'],_0xdb0b72=_0x57e120['markerRange']['end']['nodeBefore'],_0x130a00=_0x5149a0['parent']['parent'],{column:_0x56265c}=_0x41a2b0['getCellLocation'](_0x5149a0),{column:_0xc82296}=_0x41a2b0['getCellLocation'](_0xdb0b72);for(let _0x2fc236=_0x56265c;_0x2fc236<=_0xc82296;_0x2fc236++){const _0x480473=_0x41a2b0['createTableWalker'](_0x130a00,{'column':_0x2fc236,'includeAllSlots':!0x1});for(const _0x4ef419 of _0x480473){const _0x373732=_0x4ef419['cell'],_0x5c925a=_0x30abb1['mapper']['toViewElement'](_0x373732);_0x30abb1['writer']['addClass']('ck-suggestion-marker-'+_0x1298c2,_0x5c925a),_0x2737d2&&_0x30abb1['writer']['setAttribute']('data-suggestion',_0x3b40c6,_0x5c925a),_0x30abb1['mapper']['bindElementToMarker'](_0x5c925a,_0x57e120['markerName']),_0x23c534&&(_0x5e0707['activeMarkers']['includes'](_0x57e120['markerName'])?_0x30abb1['writer']['addClass']('ck-suggestion-marker--active',_0x5c925a):_0x30abb1['writer']['removeClass']('ck-suggestion-marker--active',_0x5c925a));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3028d8(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x265723,_0x1b3734,_0x296e66)=>{_0x296e66['options']['showSuggestionHighlights']&&_0x3028d8({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x265723,_0x1b3734,_0x296e66);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1e1f03,_0x182548,_0x1996c7)=>{const {type:_0x35fc00,id:_0x5d20c6}=et(_0x182548['markerName']);if(!_0x5e0707['hasSuggestion'](_0x5d20c6))return;const _0x26b44d=_0x5e0707['getSuggestion'](_0x5d20c6),_0x191802=_0x26b44d['data'];if('formatBlock'!=_0x26b44d['type']||!_0x191802||'setTableColumnHeader'!=_0x191802['commandName'])return;const _0x5be6fe=_0x1996c7['mapper']['markerNameToElements'](_0x182548['markerName']);if(_0x5be6fe){for(const _0x3ae5e8 of _0x5be6fe)_0x1996c7['writer']['removeClass']('ck-suggestion-marker-'+_0x35fc00,_0x3ae5e8),_0x1996c7['writer']['removeClass']('ck-suggestion-marker--active',_0x3ae5e8),_0x1996c7['writer']['removeAttribute']('data-suggestion',_0x3ae5e8),_0x1996c7['mapper']['unbindElementFromMarkerName'](_0x3ae5e8,_0x182548['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x4e8481=this['editor'],_0xda9873=_0x4e8481['locale'];function _0x5b0edd(_0x569959){return{'type':'format','content':Ot(_0xda9873,'*Format:*\x20%0',_0x569959)};}_0x4e8481['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd6755b=>{if('formatBlock'!=_0xd6755b['type'])return;const {data:_0x2c1d65}=_0xd6755b;return _0x2c1d65?'setTableRowHeader'==_0x2c1d65['commandName']?_0x2c1d65['commandParams'][0x0]['forceValue']?_0x5b0edd(Ot(_0xda9873,'FORMAT_HEADER_ROW')):_0x5b0edd(Ot(_0xda9873,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x2c1d65['commandName']?_0x2c1d65['commandParams'][0x0]['forceValue']?_0x5b0edd(Ot(_0xda9873,'FORMAT_HEADER_COLUMN')):_0x5b0edd(Ot(_0xda9873,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},$e=class extends _0x4020fb{static get requires(){return[Pe];}afterInit(){const _0x6a65e3=this['editor'];if(!_0x6a65e3['plugins']['has']('TableEditing')||!_0x6a65e3['config']['get']('table.enableFooters'))return;const _0x553c53=_0x6a65e3['locale'],_0x77c060=_0x6a65e3['plugins']['get']('TrackChangesEditing');_0x77c060['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x77c060['descriptionFactory']['registerAttributeLabel']('footerRows',Ot(_0x553c53,'FORMAT_FOOTER_ROW'));}},We=class extends _0x4020fb{afterInit(){const _0xb8399f=this['editor'],_0x364fc8=_0xb8399f['locale'],_0x65f4a9=_0xb8399f['plugins']['get']('TrackChangesEditing');function _0xa023d1(_0x2bf5f3){return{'type':'format','content':''+Ot(_0x364fc8,'*Set\x20table\x20type:*\x20%0',_0x2bf5f3)};}_0xb8399f['plugins']['has']('TableLayout')&&(_0x65f4a9['enableCommand']('insertTableLayout'),_0x65f4a9['enableDefaultAttributesIntegration']('tableType'),_0x65f4a9['descriptionFactory']['registerElementLabel'](_0x1bd3e0=>_0x1bd3e0['is']('element','table')&&'layout'===_0x1bd3e0['getAttribute']('tableType'),_0x3dae6c=>Ot(_0x364fc8,'ELEMENT_LAYOUT_TABLE',_0x3dae6c)),_0x65f4a9['descriptionFactory']['registerDescriptionCallback'](_0x38c937=>{const {data:_0x5b183b}=_0x38c937;if(_0x5b183b&&'tableType'==_0x5b183b['key'])switch(_0x5b183b['newValue']){case'layout':return _0xa023d1(Ot(_0x364fc8,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xa023d1(Ot(_0x364fc8,'ELEMENT_CONTENT_TABLE'));}}));}};const Ve=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Ve['map'](_0x46a4ff=>[_0x46a4ff,null]));var ze=class extends _0x4020fb{static get requires(){return[Pe];}afterInit(){const _0x4ffc42=this['editor'];if(!_0x4ffc42['plugins']['has']('TableClipboard'))return;const _0xf6e3e3=_0x4ffc42['plugins']['get']('TrackChangesEditing'),_0x243eee=_0x4ffc42['plugins']['get']('TableUtils'),_0x14eeb6=_0x4ffc42['plugins']['get'](Pe),_0x41e727=_0x4ffc42['plugins']['get']('TableClipboard'),_0x2ad28a=_0x4ffc42['plugins']['get']('TableSelection'),_0x13e948=_0x4ffc42['plugins']['get'](ft);_0x14eeb6['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4ffc42['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4ffc42['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x45f7a2=null,_0x5e9755=!0x1;_0x13e948['on']('contentInsertion',(_0x2cb601,_0x4d7de7)=>{_0x5e9755='paste'===_0x4d7de7['method'];}),_0x4ffc42['model']['on']('insertContent',(_0x4c14af,_0x59813c)=>{if(!_0x5e9755&&null===_0x2ad28a['getSelectedTableCells']())return;const [_0x3d3645,_0x319dc9]=_0x59813c,_0x50e9c8=_0x59813c[_0x59813c['length']-0x1];_0x50e9c8&&_0x50e9c8['forceDefaultExecution']||_0xf6e3e3['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4d7a08,_0x5383a8,_0xae299,_0x26d1c1,_0x50aa1b){if(_0x5383a8&&!_0x5383a8['is']('documentSelection'))return!0x1;const _0x5e34ef=_0x50aa1b['getTableIfOnlyTableInContent'](_0x4d7a08,_0xae299);if(!_0x5e34ef||!Xe(_0x5e34ef,void 0x0,_0x26d1c1))return!0x1;const _0x4ed839=_0x26d1c1['getSelectionAffectedTableCells'](_0xae299['document']['selection']);if(!_0x4ed839['length'])return!0x1;const _0x109acd=_0x4ed839[0x0]['findAncestor']('table'),_0x3afd29=_0x26d1c1['getRowIndexes'](_0x4ed839),_0x52e85e=_0x26d1c1['getColumnIndexes'](_0x4ed839),_0x199040={'startRow':_0x3afd29['first'],'endRow':_0x3afd29['last'],'startColumn':_0x52e85e['first'],'endColumn':_0x52e85e['last']};return 0x1==_0x4ed839['length']&&(_0x199040['endRow']+=_0x26d1c1['getRows'](_0x5e34ef)-0x1,_0x199040['endColumn']+=_0x26d1c1['getColumns'](_0x5e34ef)-0x1),Xe(_0x109acd,_0x199040,_0x26d1c1);}(_0x3d3645,_0x319dc9,_0x4ffc42['model'],_0x243eee,_0x41e727)&&(_0x4c14af['stop'](),_0x45f7a2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4ffc42['model']['change'](()=>{_0x4ffc42['model']['insertContent'](_0x59813c[0x0],_0x59813c[0x1],_0x59813c[0x2],{'forceDefaultExecution':!0x0});const _0x4573cd=_0x3469da(),{rowInsertionRanges:_0x17ded5,columnInsertionRanges:_0xea3bae,insertionRanges:_0x354467,deletionRanges:_0x76c60c,cells:_0xce15e6}=_0x45f7a2;_0x17ded5['length']&&_0xf6e3e3['markMultiRangeInsertion'](_0x17ded5,'tablePasteRow',{'tablePasteChainId':_0x4573cd}),_0xea3bae['length']&&_0xf6e3e3['markMultiRangeInsertion'](_0xea3bae,'tablePasteColumn',{'tablePasteChainId':_0x4573cd}),_0x354467['length']&&(_0xf6e3e3['markMultiRangeInsertion'](_0x354467,'tablePaste',{'tablePasteChainId':_0x4573cd,'skipNestingCheck':!0x0}),_0x354467['forEach'](_0x28cf11=>_0x28cf11['detach']?.())),_0x76c60c['length']&&(_0xf6e3e3['markMultiRangeDeletion'](_0x76c60c,'tablePaste',{'tablePasteChainId':_0x4573cd,'skipNestingCheck':!0x0}),_0x76c60c['forEach'](_0x3054c2=>_0x3054c2['detach']?.()));const _0x4a9846=_0xf6e3e3['markMultiRangeBlockFormat'](_0xce15e6['map'](({element:_0x2f28d1})=>_0x2f28d1),{'formatGroupId':_0x3469da()},[],'tablePasteCell',{'tablePasteChainId':_0x4573cd});if(_0x4a9846){const _0xab2f92=_0x4a9846['getMarkers'](),_0x5eb6e3=[];for(const {element:_0x31da41,attributes:_0x3a20b3}of _0xce15e6){if(!_0x3a20b3)continue;const _0x33d5a1=_0x4ffc42['model']['createRangeOn'](_0x31da41),_0x4e7070=_0xab2f92['find'](_0x983c85=>_0x983c85['getRange']()['isEqual'](_0x33d5a1));_0x4e7070&&_0x5eb6e3['push']([_0x4e7070['name'],_0x3a20b3]);}_0x5eb6e3['length']&&_0x4a9846['setAttribute']('markerAttributes',Object['fromEntries'](_0x5eb6e3));}_0x45f7a2=null;}));},{'priority':_0x2601b1['high']+0xa}),_0x13e948['on']('contentInsertion',()=>{_0x5e9755=!0x1;},{'priority':'lowest'}),_0x4ffc42['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xf7978f,_0x184524)=>{const [_0x4f2357,_0x527a4b,,_0x4dad68]=_0x184524;if(!_0x45f7a2)return;_0xf7978f['stop']();const _0x652fc9=_0x4f2357['cell'],_0x3a7ae1=_0x527a4b,_0x204f9f=Ke(_0x652fc9),_0x42cb7e=Ke(_0x3a7ae1);_0xf7978f['return']=_0x652fc9;let _0x208dd3=null,_0x3c105=null;if(_0x42cb7e||_0x204f9f){if(_0x204f9f&&!_0x42cb7e){_0x4dad68['remove'](_0x652fc9['getChild'](0x0));for(const _0x1727fc of Array['from'](_0x3a7ae1['getChildren']()))_0x4dad68['insert'](_0x1727fc,_0x652fc9,'end');const _0x5b3b37=_0x45f7a2['rowInsertionIndexes']['includes'](_0x4f2357['row']),_0x4498f3=_0x45f7a2['columnInsertionIndexes']['includes'](_0x4f2357['column']);_0x5b3b37||_0x4498f3||(_0x208dd3=ot['fromRange'](_0x4dad68['createRangeIn'](_0x652fc9)));}else _0x42cb7e&&!_0x204f9f&&(_0x3c105=_0x4dad68['createRangeIn'](_0x652fc9));}else{const _0x401964=_0x4dad68['createElement']('tableCellSuggestion'),_0x45375f=_0x4dad68['createElement']('tableCellSuggestion');_0x4dad68['wrap'](_0x4dad68['createRangeIn'](_0x652fc9),_0x45375f),_0x4dad68['insert'](_0x401964,_0x652fc9,0x0);for(const _0x53085e of Array['from'](_0x3a7ae1['getChildren']()))_0x4dad68['insert'](_0x53085e,_0x401964,'end');_0x208dd3=ot['fromRange'](_0x4dad68['createRangeOn'](_0x401964)),_0x3c105=ot['fromRange'](_0x4dad68['createRangeOn'](_0x45375f));}const _0x493fd7=Array['from'](_0x3a7ae1['getAttributes']())['filter'](([_0x58d7ae])=>Ve['includes'](_0x58d7ae));_0x45f7a2['cells']['push']({'element':_0x652fc9,'attributes':_0x493fd7['length']?Object['fromEntries'](_0x493fd7):null}),_0x208dd3&&_0x45f7a2['insertionRanges']['push'](_0x208dd3),_0x3c105&&_0x45f7a2['deletionRanges']['push'](_0x3c105);},{'priority':'high'}),_0x243eee['on']('insertColumns',(_0x1a69e1,_0x225d07)=>{const [_0x56b3e6,_0x29c648={}]=_0x225d07;if(!_0x45f7a2)return;const _0x160ebd=_0x29c648['at']||0x0,_0x4a0c97=_0x29c648['columns']||0x1;_0x45f7a2['columnInsertionIndexes']=new Array(_0x4a0c97)['fill'](_0x160ebd)['map']((_0xd22b4b,_0x217456)=>_0xd22b4b+_0x217456);for(const {cell:_0x8b1b62}of _0x243eee['createTableWalker'](_0x56b3e6,{'startColumn':_0x160ebd,'endColumn':_0x160ebd+_0x4a0c97-0x1}))_0x45f7a2['columnInsertionRanges']['push'](_0x4ffc42['model']['createRangeOn'](_0x8b1b62));},{'priority':'low'}),_0x243eee['on']('insertRows',(_0x1c4a92,_0x34b5cb)=>{const [_0x1a698a,_0x3ef8ef={}]=_0x34b5cb;if(!_0x45f7a2)return;const _0x5a9272=_0x3ef8ef['at']||0x0,_0xf3c1d1=_0x3ef8ef['rows']||0x1;_0x45f7a2['rowInsertionIndexes']=new Array(_0xf3c1d1)['fill'](_0x5a9272)['map']((_0x28e9f3,_0x3715d1)=>_0x28e9f3+_0x3715d1);for(const {cell:_0x3fbe4e}of _0x243eee['createTableWalker'](_0x1a698a,{'startRow':_0x5a9272,'endRow':_0x5a9272+_0xf3c1d1-0x1}))_0x45f7a2['rowInsertionRanges']['push'](_0x4ffc42['model']['createRangeOn'](_0x3fbe4e));},{'priority':'low'}),_0xf6e3e3['descriptionFactory']['registerDescriptionCallback'](_0x37baf8=>{if(_0x37baf8['subType']&&_0x37baf8['subType']['startsWith']('tablePaste'))return _0x37baf8['previous']?{}:{'type':'insertion','content':Ot(_0x4ffc42['locale'],'*Replace\x20table\x20cells*')};});const _0x30778e=()=>!0x1;for(const _0x14f7af of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xf6e3e3['_suggestionFactory']['registerCustomCallback']('insertion',_0x14f7af,'join',_0x30778e),_0xf6e3e3['_suggestionFactory']['registerCustomCallback']('deletion',_0x14f7af,'join',_0x30778e),_0xf6e3e3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14f7af,'join',_0x30778e);_0xf6e3e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x30778e),_0xf6e3e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x26bfdf,_0x499184,_0x2b390f)=>{const _0x58149f=_0x26bfdf['map'](_0x4fee1e=>_0x4fee1e['getContainedElement']())['filter'](_0x4bc03b=>_0x4bc03b),_0x5d5e87=new Map(_0x58149f['map'](_0x2908a8=>[_0x2908a8,null]));if(_0x45f7a2){for(const {element:_0x33711e,attributes:_0x1720cb}of _0x45f7a2['cells'])_0x1720cb&&_0x5d5e87['set'](_0x33711e,_0x1720cb);}else{if(_0x2b390f&&_0x2b390f['markerAttributes'])for(const [_0x55560c,_0x501a8f]of Object['entries'](_0x2b390f['markerAttributes'])){const _0x35aad7=_0x4ffc42['model']['markers']['get'](_0x55560c),_0x49a7d3=_0x35aad7?_0x35aad7['getRange']()['getContainedElement']():null;_0x49a7d3&&_0x5d5e87['set'](_0x49a7d3,_0x501a8f);}}_0x4ffc42['model']['change'](_0x2fa23f=>{for(const [_0xb1f2ab,_0x55a3b8]of _0x5d5e87)_0x2fa23f['setAttributes']({...je,..._0x55a3b8},_0xb1f2ab);});});const _0x3e9f34=(_0x3bf675,_0x4099ac)=>{_0xf6e3e3['_suggestionFactory']['registerCustomCallback'](_0x3bf675,'tablePaste',_0x4099ac,(_0x32a141,_0x51c2bd,_0x1a13d9)=>{_0x4ffc42['model']['change'](_0x385624=>{const _0x8a01df=[];for(const _0xd5737b of _0x32a141){const _0x53fa0e=_0xd5737b['start']['nodeAfter'];_0x53fa0e['is']('element','tableCellSuggestion')&&_0x8a01df['push'](_0x53fa0e);}_0xf6e3e3['_suggestionFactory']['getSuggestionCallback'](_0x3bf675,null,_0x4099ac)(_0x32a141,_0x51c2bd,_0x1a13d9);for(const _0x1fc076 of _0x8a01df)'$graveyard'!=_0x1fc076['root']['rootName']&&_0x385624['unwrap'](_0x1fc076);});});};_0x3e9f34('insertion','accept'),_0x3e9f34('insertion','discard'),_0x3e9f34('deletion','accept'),_0x3e9f34('deletion','discard'),_0xf6e3e3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5cb772=>{const _0x34f17a=_0x5cb772['map'](_0xbcda8=>_0xbcda8['getContainedElement']()),_0x54c737=_0x34f17a[0x0]['findAncestor']('table'),{minRow:_0x36b2cc,maxRow:_0x27385b}=_0x14eeb6['_getCoordsForCells'](_0x34f17a);_0x243eee['removeRows'](_0x54c737,{'at':_0x36b2cc,'rows':_0x27385b-_0x36b2cc+0x1});}),_0xf6e3e3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x224c40=>{const _0xfc2ae7=_0x224c40['map'](_0x2dd877=>_0x2dd877['getContainedElement']()),_0x452bfb=_0xfc2ae7[0x0]['findAncestor']('table'),{minColumn:_0x132e99,maxColumn:_0x4973fa}=_0x14eeb6['_getCoordsForCells'](_0xfc2ae7);_0x243eee['removeColumns'](_0x452bfb,{'at':_0x132e99,'columns':_0x4973fa-_0x132e99+0x1});});const _0x233d2e=(_0x4a9fde,_0x3885cb)=>{if(!_0x3885cb['subType']||!_0x3885cb['subType']['startsWith']('tablePaste'))return;const _0x1c8048=_0x3885cb['attributes']['tablePasteChainId'],_0x1c564d=_0xf6e3e3['getSuggestions']()['filter'](_0x5a7b8d=>_0x5a7b8d['isInContent']&&_0x5a7b8d['attributes']&&_0x5a7b8d['attributes']['tablePasteChainId']==_0x1c8048);_0x1c564d['length']&&_0x3885cb['getAllAdjacentSuggestions']()['length']!=_0x1c564d['length']&&_0x1c564d['reduce']((_0x6b7919,_0x4b9a58)=>(_0x6b7919['next']=_0x4b9a58,_0x4b9a58['previous']=_0x6b7919,_0x4b9a58));};function _0x4a5eff(_0x487ffd,_0x4330b7=!0x0){const {id:_0x393a22,authorId:_0x217711}=et(_0x487ffd['markerName']),_0x5db4a4=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5806b2=_0xf6e3e3['activeMarkers']['includes'](_0x487ffd['markerName']);return _0x5806b2&&_0x5db4a4['push']('ck-suggestion-marker--active'),{'classes':_0x5db4a4,'attributes':{'data-suggestion':_0x393a22,'data-author-id':_0x217711},'priority':_0x5806b2&&_0x4330b7?0xbc2:0xbb8};}_0xf6e3e3['on']('suggestionLoaded',_0x233d2e,{'priority':'high'}),_0xf6e3e3['on']('suggestionUnloaded',_0x233d2e,{'priority':'high'}),_0x4ffc42['model']['document']['registerPostFixer'](()=>{let _0x22a2d5=!0x1;const _0x2d46d0=Array['from'](_0x4ffc42['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1d2dfe,data:_0x133e7d}of _0x2d46d0){const {group:_0x34ec45,type:_0x2ce725,id:_0x4e9adb}=et(_0x1d2dfe);if('suggestion'!=_0x34ec45||'deletion'!=_0x2ce725||_0x133e7d['oldRange'])continue;if(!_0xf6e3e3['hasSuggestion'](_0x4e9adb))continue;const _0x445fa3=_0xf6e3e3['getSuggestion'](_0x4e9adb)['getRanges'](),_0x3e20cd=_0x4ffc42['plugins']['get']('Users')['me'];for(const _0x3c0d42 of _0xf6e3e3['getSuggestions']())if(_0x3c0d42['isInContent']&&_0x3c0d42['author']==_0x3e20cd&&'formatBlock'==_0x3c0d42['type']&&'tablePasteCell'==_0x3c0d42['subType']&&_0x3c0d42['getRanges']()['every'](_0x4c1272=>_0x445fa3['some'](_0x33c003=>_0x33c003['containsRange'](_0x4c1272,!0x0)))){for(const _0x536fab of _0x3c0d42['getAllAdjacentSuggestions']())_0x536fab['isInContent']&&(_0x536fab['discard'](),_0x22a2d5=!0x0);}}return _0x22a2d5;}),_0x4ffc42['model']['document']['registerPostFixer'](_0x4527c2=>{const _0x441382=_0x4ffc42['commands']['get']('redo');if(!_0x441382||!_0x441382['_createdBatches']['has'](_0x4527c2['batch']))return!0x1;let _0x5f28d4=!0x1;const _0x382c9f=_0x4ffc42['plugins']['get']('Users')['me'],_0x58dbb5=_0x4ffc42['model']['document']['differ']['getChanges'](),_0x1c1942=Array['from'](_0x4ffc42['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3a0563,data:_0x1ef5f6})=>{const {group:_0x22cb1e,subType:_0x238622,authorId:_0x1eb2b9}=et(_0x3a0563);return'suggestion'==_0x22cb1e&&'tablePaste'==_0x238622&&_0x1eb2b9==_0x382c9f['id']&&!_0x1ef5f6['oldRange'];});for(const _0x1d5db2 of _0x58dbb5){if('insert'!=_0x1d5db2['type']||'tableCellSuggestion'!=_0x1d5db2['name']||0x1!=_0x1d5db2['length'])continue;const _0xcb7145=_0x4527c2['createRange'](_0x1d5db2['position'],_0x1d5db2['position']['getShiftedBy'](0x1));if(!_0x1c1942['find'](({data:_0xe43d89})=>_0xe43d89['newRange']['isEqual'](_0xcb7145))){for(const {name:_0xa1e6a8,data:_0x3c9952}of _0x1c1942)if(_0xcb7145['containsRange'](_0x3c9952['newRange'])){_0x4527c2['updateMarker'](_0xa1e6a8,{'range':_0xcb7145}),_0x5f28d4=!0x0;break;}}}return _0x5f28d4;}),_0x4ffc42['model']['document']['registerPostFixer'](_0x2da8a2=>{let _0x1cbcc3=!0x1;const _0x332557=_0x4ffc42['plugins']['get']('Users')['me'],_0x376ba3=_0xf6e3e3['getSuggestions']()['filter'](_0x5a58f7=>_0x5a58f7['isInContent']&&_0x5a58f7['author']==_0x332557),_0xe950c3=new Set(),_0x2c5277=new Set();for(const _0x238324 of _0x376ba3)if('tablePaste'==_0x238324['subType'])for(const _0x16afab of _0x238324['getMarkers']()){const _0xef3928=_0x16afab['getRange']()['getContainedElement']();if(_0xef3928){if(_0xef3928['is']('element','tableCellSuggestion')&&Ke(_0xef3928)){_0x238324['removeMarker'](_0x16afab['name']),_0xe950c3['add'](_0xef3928),_0x1cbcc3=!0x0;const _0x544d83=_0xef3928['nextSibling'],_0x3e365c=_0xef3928['previousSibling'],_0x2565a3=_0x544d83&&_0x544d83['is']('element','tableCellSuggestion'),_0x589236=_0x3e365c&&_0x3e365c['is']('element','tableCellSuggestion');_0x2565a3&&!_0xe950c3['has'](_0x544d83)&&_0x2c5277['add'](_0x544d83),_0x589236&&!_0xe950c3['has'](_0x3e365c)&&_0x2c5277['add'](_0x3e365c);}else _0xef3928['is']('element','paragraph')&&_0xef3928['isEmpty']&&(_0x238324['removeMarker'](_0x16afab['name']),_0x1cbcc3=!0x0);}}else{if('tablePasteCell'==_0x238324['subType']){if(!_0x238324['attributes']||!_0x238324['attributes']['tablePasteChainId'])continue;const _0x4daf75=_0x238324['attributes']['markerAttributes'];if(_0x4daf75&&Object['keys'](_0x4daf75)['length'])continue;const _0x5cce94=_0x238324['attributes']['tablePasteChainId'];let _0x4d0a24=!0x0,_0x161a46=!0x0;for(const _0x45d5de of _0x376ba3)if(_0x45d5de['subType']&&_0x45d5de['subType']['startsWith']('tablePaste')){if(!_0x45d5de['attributes']['tablePasteChainId']){_0x161a46=!0x1;break;}if(_0x45d5de['id']!=_0x238324['id']&&_0x45d5de['attributes']['tablePasteChainId']==_0x5cce94){_0x4d0a24=!0x1;break;}}_0x161a46&&_0x4d0a24&&(_0x238324['removeMarkers'](),_0x1cbcc3=!0x0);}}for(const _0x24a2e8 of _0xe950c3)_0x2da8a2['remove'](_0x24a2e8);for(const _0x2b464f of _0x2c5277)_0x2da8a2['unwrap'](_0x2b464f);return _0x1cbcc3;}),_0x4ffc42['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x83c0a3=>_0x4a5eff(_0x83c0a3),'converterPriority':'high'}),_0x4ffc42['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x240d45,_0x9e8b97)=>_0x9e8b97['options']['showSuggestionHighlights']?_0x4a5eff(_0x240d45,!0x1):null,'converterPriority':'high'});const _0xdc8b69=_0x4ffc42['editing']['view'];this['listenTo'](_0xdc8b69['document'],'clipboardOutput',(_0x3495bb,_0x3947fe)=>{const _0x4c0c3a=[];for(const _0x14001c of _0xdc8b69['createRangeIn'](_0x3947fe['content'])['getItems']())_0x14001c['is']('element','suggestion-td')&&_0x4c0c3a['push'](_0x14001c);_0xdc8b69['change'](_0x20ffcf=>{for(const _0x44f256 of _0x4c0c3a)_0x20ffcf['move'](_0x20ffcf['createRangeIn'](_0x44f256),_0x20ffcf['createPositionBefore'](_0x44f256)),_0x20ffcf['remove'](_0x44f256);});});}};function Ke(_0x264472){if(_0x264472['isEmpty'])return!0x0;const _0x1d87c6=_0x264472['getChild'](0x0);return _0x1d87c6['is']('element','paragraph')&&_0x1d87c6['isEmpty'];}function Xe(_0x1eaf72,_0x5d557b={},_0x4c617a){for(const {isAnchor:_0x233194,cellHeight:_0x3b0b3a,cellWidth:_0x3f8b90}of _0x4c617a['createTableWalker'](_0x1eaf72,{'includeAllSlots':!0x0,..._0x5d557b}))if(!_0x233194||0x1!=_0x3b0b3a||0x1!=_0x3f8b90)return!0x1;return!0x0;}var qe=class extends _0x4020fb{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x35f319=this['editor']['plugins']['get']('TrackChangesEditing');_0x35f319['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x35f319['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x35f319['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x35f319['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x9130fd=_0x35f319['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x35f319['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x30e674,_0x18c117)=>{_0x9130fd(_0x30e674,_0x18c117),this['_restoreCellWidths'](_0x30e674[0x0]['start']['nodeAfter'],_0x18c117['commandParams'][0x0]['cellWidths']);}),_0x35f319['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x376840,_0x380783){const _0x106397=this['editor']['plugins']['get']('TrackChangesEditing'),_0x274b0d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x9e78c5=_0x380783['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2726dc=_0x274b0d['getColumnGroupElement'](_0x9e78c5);let _0x2bcfe6=_0x2726dc?_0x274b0d['getTableColumnsWidths'](_0x2726dc):null,_0x314519=_0x9e78c5['getAttribute']('tableWidth')||null;const _0x332981=_0x380783['tableWidth']||_0x314519,_0x6813aa=_0x380783['columnWidths']||_0x2bcfe6;let _0x54ed71=this['_getCellWidths'](_0x9e78c5);const _0x5b0615=this['_foldResizeTableSuggestion'](_0x9e78c5);_0x5b0615&&(_0x314519=_0x5b0615['tableWidth'],_0x2bcfe6=_0x5b0615['columnWidths'],_0x54ed71=_0x5b0615['cellWidths']||_0x54ed71),_0x376840({'table':_0x9e78c5,'tableWidth':_0x332981,'columnWidths':_0x6813aa}),_0x106397['markBlockFormat'](_0x9e78c5,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x314519,'columnWidths':_0x2bcfe6,'cellWidths':_0x54ed71}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x5dcf68,_0x238ec5={}){if(void 0x0===_0x238ec5['value']||''===_0x238ec5['value'])return void _0x5dcf68(_0x238ec5);const _0x2c45e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x522f62=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x15bc66=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x238ec5['batch']||(_0x238ec5['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x238ec5['batch'],()=>{const _0x202f0b=_0x522f62['getColumnGroupElement'](_0x15bc66);let _0x5e3143=_0x202f0b?_0x522f62['getTableColumnsWidths'](_0x202f0b):null,_0x3f3c06=_0x15bc66['getAttribute']('tableWidth')||null,_0x13e9ee=this['_getCellWidths'](_0x15bc66);const _0x1f873b=this['_foldResizeTableSuggestion'](_0x15bc66,!0x0);_0x1f873b&&(_0x3f3c06=_0x1f873b['tableWidth'],_0x5e3143=_0x1f873b['columnWidths'],_0x13e9ee=_0x1f873b['cellWidths']||_0x13e9ee),_0x5dcf68(_0x238ec5),_0x2c45e4['markBlockFormat'](_0x15bc66,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3f3c06,'columnWidths':_0x5e3143,'cellWidths':_0x13e9ee}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x32b2ce,_0x424b6d=!0x1){const _0x4339ee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e65b5=this['editor']['plugins']['get']('Users')['me'];for(const _0x4e00c6 of _0x4339ee['getSuggestions']({'skipNotAttached':!0x0})){const _0x5ef2eb=_0x4e00c6['getContainedElement']();if('resizeTable'===_0x4e00c6['subType']&&_0x5ef2eb===_0x32b2ce){_0x4e00c6['author']!==_0x1e65b5&&(_0x424b6d?_0x4e00c6['removeMarkers']():_0x4e00c6['discard']());const _0x2ac1df=_0x4e00c6['data']['commandParams'];return{'tableWidth':_0x2ac1df[0x0]['tableWidth'],'columnWidths':_0x2ac1df[0x0]['columnWidths'],'cellWidths':_0x2ac1df[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x13adc8){const _0x25c246=[];for(const _0x1a3f27 of _0x13adc8['getChildren']())if(_0x1a3f27['is']('element','tableRow')){for(const _0x186239 of _0x1a3f27['getChildren']())_0x25c246['push'](_0x186239['getAttribute']('tableCellWidth')||null);}return _0x25c246;}_restoreCellWidths(_0x1d38e4,_0x182188){_0x182188&&this['editor']['model']['change'](_0x23cf7f=>{let _0x2715e4=0x0;for(const _0x1654d1 of _0x1d38e4['getChildren']())if(_0x1654d1['is']('element','tableRow'))for(const _0x357207 of _0x1654d1['getChildren']()){const _0x5e0a10=_0x182188[_0x2715e4++];_0x5e0a10&&_0x23cf7f['setAttribute']('tableCellWidth',_0x5e0a10,_0x357207);}});}handleSuggestionDescription(_0xc8ad96){if('formatBlock'!=_0xc8ad96['type']&&'formatInline'!=_0xc8ad96['type'])return;const {data:_0xa55abb}=_0xc8ad96;return _0xa55abb&&'resizeTable'===_0xa55abb['formatGroupId']?{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Ye=class extends _0x4020fb{afterInit(){const _0x1fba3b=this['editor'];_0x1fba3b['plugins']['has']('Template')&&_0x1fba3b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Qe=class extends _0x4020fb{afterInit(){const _0x5893b6=this['editor'];if(!_0x5893b6['commands']['get']('insertTableOfContents'))return;_0x5893b6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x42e99a=_0x5893b6['plugins']['get']('TrackChangesEditing'),_0x505ad1=_0x5893b6['locale'];_0x42e99a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x144bab=>Ot(_0x505ad1,'ELEMENT_TABLE_OF_CONTENTS',_0x144bab));}},Ze=class extends _0x4020fb{afterInit(){const _0x117468=this['editor'];_0x117468['plugins']['has']('Title')&&(_0x117468['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Ot(_0x117468['locale'],'ELEMENT_TITLE')),_0x117468['model']['document']['registerPostFixer'](_0x1ff15a=>{let _0x28f8f6=!0x1;const _0x5938fe=Array['from'](_0x117468['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42c7ca,data:_0x27e5e0}of _0x5938fe){const {group:_0x5ac8f7}=et(_0x42c7ca);if('suggestion'!==_0x5ac8f7||!_0x27e5e0['newRange'])continue;const _0x5026b0=_0x27e5e0['newRange'],_0x5eeed4=_0x5026b0['end']['nodeBefore'];if(!_0x5eeed4||!_0x5eeed4['is']('element','title-content'))continue;if(!_0x5026b0['start']['isTouching'](_0x5026b0['end']))continue;const _0x5766ad=_0x117468['model']['schema']['getNearestSelectionRange'](_0x5026b0['end'],'forward');if(_0x5766ad&&_0x5766ad['isCollapsed']){const _0x4718b3=_0x1ff15a['createRange'](_0x5026b0['start'],_0x5766ad['start']);_0x4718b3['isEqual'](_0x5026b0)||(_0x1ff15a['updateMarker'](_0x42c7ca,{'range':_0x4718b3}),_0x28f8f6=!0x0);}_0x28f8f6||(_0x1ff15a['removeMarker'](_0x42c7ca),_0x28f8f6=!0x0);}return _0x28f8f6;}));}},Je=class extends _0x4020fb{afterInit(){const _0x2399d4=this['editor'],_0x4334a9=_0x2399d4['plugins']['get']('TrackChangesEditing');_0x2399d4['plugins']['has']('Uploadcare')&&(_0x4334a9['enableCommand']('uploadcare'),_0x2399d4['plugins']['has']('UploadcareImageEdit')&&(_0x4334a9['enableCommand']('uploadcareImageEdit'),_0x4334a9['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4334a9['descriptionFactory']['registerDescriptionCallback'](_0x30cad1=>{if('attribute'!=_0x30cad1['type'])return;const {data:_0xb84e96}=_0x30cad1;return _0xb84e96&&'uploadcareImageId'==_0xb84e96['key']?{'type':'format','content':''}:void 0x0;})));}},tn=class extends _0x4020fb{afterInit(){const _0x20db9f=this['editor'],_0x496d39=_0x20db9f['plugins']['get']('TrackChangesEditing');_0x20db9f['plugins']['has']('UndoEditing')&&(_0x496d39['enableCommand']('undo'),_0x496d39['enableCommand']('redo'));}},en=class extends _0x4020fb{static get requires(){return[Pe];}afterInit(){const _0x500903=this['editor'];_0x500903['plugins']['has']('TableCaptionEditing')&&_0x500903['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},nn=class extends _0x4020fb{tableProperties;tableCellProperties;constructor(_0x1552fc){super(_0x1552fc),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 _0x163bcb=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4b6670 of this['tableProperties'])_0x163bcb['enableCommand'](_0x4b6670,(_0x2caa29,_0x2ecd3f)=>{const _0x37e8ff=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4b6670,[_0x37e8ff],this['tableProperties'],'tableProperties',_0x2caa29,_0x2ecd3f);});_0x163bcb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x163bcb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x163bcb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5ad8a8,_0x3fc3da)=>this['handleDiscardAction'](this['tableProperties'],_0x5ad8a8,_0x3fc3da)),_0x163bcb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4cf79b of this['tableCellProperties'])this['editor']['commands']['get'](_0x4cf79b)&&_0x163bcb['enableCommand'](_0x4cf79b,(_0x115db1,_0x576d73)=>{const _0x4cfeff=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4cf79b,_0x4cfeff,this['tableCellProperties'],'tableCellProperties',_0x115db1,_0x576d73);});_0x163bcb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x163bcb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x163bcb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xd9dd86,_0x4c0083)=>this['handleDiscardAction'](this['tableCellProperties'],_0xd9dd86,_0x4c0083)),_0x163bcb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x163bcb['descriptionFactory']['registerAttributeLabel']('tableCellType',Ot(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x163bcb['descriptionFactory']['registerDescriptionCallback'](_0x1cd31e=>this['handleSuggestionDescription'](_0x1cd31e)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x3c0f9d,_0x1fd480,_0x45c247,_0x3a8e2e,_0x2988a5,_0xce15bb){const _0x4da9bc=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xce15bb['batch'],()=>{for(const _0x29a017 of _0x1fd480)if(this['_getSuggestion'](_0x29a017,_0x3a8e2e))_0x2988a5(_0xce15bb);else{const _0x1d4088={};for(const _0x468719 of _0x45c247){const _0x11499f=_0x29a017['getAttribute'](_0x468719);void 0x0!==_0x11499f&&(_0x1d4088[_0x468719]=_0x11499f);}const _0x177d8b=this['_getResizedColumnWidths'](_0x29a017);_0x177d8b&&(_0x1d4088['columnWidths']=_0x177d8b),_0x2988a5(_0xce15bb),_0x4da9bc['markBlockFormat'](_0x29a017,{'commandParams':[_0x1d4088]},[],_0x3a8e2e);}});}handleDiscardAction(_0x145787,_0x10b6b7,_0x26b001){const _0x35e6ec=_0x10b6b7[0x0]['start']['nodeAfter'],_0xbdd551=_0x26b001['commandParams'][0x0];this['editor']['model']['change'](_0x4059cd=>{for(const _0x5cb77b of _0x145787)void 0x0!==_0xbdd551[_0x5cb77b]?_0x4059cd['setAttribute'](_0x5cb77b,_0xbdd551[_0x5cb77b],_0x35e6ec):_0x4059cd['removeAttribute'](_0x5cb77b,_0x35e6ec);if(_0xbdd551['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x26d4ef=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x45a511=_0x26d4ef['getColumnGroupElement'](_0x35e6ec);if(_0x45a511){const _0x4d5656=_0x26d4ef['getTableColumnsWidths'](_0x45a511),_0x5e2449=_0x35e6ec['getAttribute']('tableWidth');if(('string'==typeof _0x5e2449&&_0x5e2449['trim']()['endsWith']('px'))!==_0x4d5656['some'](_0xcc29d2=>'string'==typeof _0xcc29d2&&_0xcc29d2['endsWith']('px'))){const _0x1bfd09=_0x26d4ef['getTableColumnElements'](_0x45a511);_0xbdd551['columnWidths']['forEach']((_0x16da82,_0x4da295)=>{_0x1bfd09[_0x4da295]&&_0x4059cd['setAttribute']('columnWidth',_0x16da82,_0x1bfd09[_0x4da295]);});}}}});}_getResizedColumnWidths(_0x46f7fa){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x46f7fa['is']('element','table'))return;const _0x437f6a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5ac747=_0x437f6a['getColumnGroupElement'](_0x46f7fa);return _0x5ac747?_0x437f6a['getTableColumnsWidths'](_0x5ac747):void 0x0;}handleSuggestionDescription(_0x346559){if(_0x346559['data'])switch(_0x346559['subType']){case'tableProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x62aaa9,_0x6f44ef){const _0x8242e5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x325c58 of _0x8242e5['getSuggestions']({'skipNotAttached':!0x0})){const _0xc1c37c=_0x325c58['getContainedElement']();if(_0x325c58['subType']===_0x6f44ef&&_0xc1c37c===_0x62aaa9)return _0x325c58;}return null;}_registerTablePropertiesAttributes(){const _0x399444=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2aed0c=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x188f0a of _0x2aed0c){const _0x48c7e7=_0x188f0a['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x399444['descriptionFactory']['registerAttributeLabel'](_0x188f0a,Ot(this['editor']['locale'],'FORMAT_'+_0x48c7e7));}}},sn=class extends _0x4020fb{afterInit(){const _0x1f52ab=this['editor'];if(!_0x1f52ab['plugins']['has']('LineHeight'))return;const _0x16e24e=_0x1f52ab['plugins']['get']('TrackChangesEditing'),_0x46f5ec=_0x1f52ab['locale'];_0x16e24e['enableDefaultAttributesIntegration']('lineHeight'),_0x16e24e['descriptionFactory']['registerAttributeLabel']('lineHeight',Ot(_0x46f5ec,'FORMAT_LINE_HEIGHT'));}};const rn='$elementName';var on=class extends _0x4020fb{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x589aca,_0x12a1f4,_0x3c0b17,_0x4f378f,_0x1410f4,Ft,Bt,vt,Dt,Pt,xt,Ht,Wt,$t,Vt,jt,Kt,Xt,te,ee,ne,se,re,oe,ce,le,ue,de,he,ge,me,fe,Ee,Te,_e,Le,be,Ne,pe,qt,sn,Qt,Ce,ke,Re,ye,Se,Me,Oe,we,Fe,Be,De,Ue,Pe,Ge,He,$e,We,en,ze,qe,Qe,nn,Ye,Ze,Je,tn];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x243f4a){super(_0x243f4a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x135ceb,_0xb316f7,_0x5f1e29,_0x3be3cd)=>{this['_model']['change'](()=>{for(const _0x51decc of[..._0x3be3cd,..._0x5f1e29])this['_model']['markers']['has'](_0x51decc)&&_0x243f4a['editing']['reconvertMarker'](_0x51decc);});}),this['descriptionFactory']=new wt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new an(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x243f4a['plugins']['get'](_0x589aca),this['_suggestionsConversion']=_0x243f4a['plugins']['get'](_0x12a1f4),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x243f4a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x243f4a['config']['get']('trackChanges.trackFormatChanges'),_0x243f4a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x243f4a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new _t(_0x243f4a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x40c37b=this['editor'];_0x40c37b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x27ac44,{writer:_0x3be4c9})=>{let _0x139738='suggestion:'+_0x27ac44['getAttribute']('suggestion-type')+':'+_0x27ac44['getAttribute']('id');return _0x27ac44['getAttribute']('marker-count')&&(_0x139738+=':'+_0x27ac44['getAttribute']('marker-count')),_0x3be4c9['createElement']('$marker',{'data-name':_0x139738});}}),_0x40c37b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x40c37b['model']['document']['registerPostFixer'](_0x341f77=>{let _0x271d6c=!0x1;const _0xae35f1=Array['from'](_0x40c37b['model']['document']['differ']['getChangedMarkers']()),_0x282898=new Set();for(const {name:_0x2c8c12,data:_0x535d2a}of _0xae35f1){const {group:_0x4fd6d3,type:_0x180a69,subType:_0x228e7e,id:_0xd3a8c2}=et(_0x2c8c12);if('suggestion'!==_0x4fd6d3)continue;const _0x3299e5=_0x228e7e?'suggestion:'+_0x180a69+':'+_0x228e7e+':'+_0xd3a8c2:'suggestion:'+_0x180a69+':'+_0xd3a8c2,_0x554cf7=_0x40c37b['model']['markers']['getMarkersGroup'](_0x3299e5),_0x23205c=_0x40c37b['model']['markers']['get'](_0x2c8c12),_0x4f3d3d=this['_suggestions']['get'](_0xd3a8c2);if(null!=_0x535d2a['newRange']){'formatInline'==_0x180a69&&(_0x271d6c=_0x271d6c||un(_0x535d2a['newRange'],_0x2c8c12,_0x341f77,_0x40c37b['model']['schema']));const _0x3937e0='attribute'==_0x180a69&&this['_suggestionsConversion']['isBlockAttribute'](In(_0x228e7e)),_0x3461cf='attribute'==_0x180a69&&this['_suggestionsConversion']['isInlineAttribute'](In(_0x228e7e));if(_0x535d2a['newRange']['isCollapsed']||'$graveyard'==_0x535d2a['newRange']['root']['rootName']||'formatBlock'==_0x180a69&&!hn(_0x535d2a['newRange'])||_0x3937e0&&!hn(_0x535d2a['newRange'])||_0x3461cf&&gn(_0x535d2a['newRange'])||'deletion'==_0x180a69&&gn(_0x535d2a['newRange'])||_0x23205c&&fn(_0x23205c,_0x554cf7))_0x341f77['removeMarker'](_0x2c8c12),_0x271d6c=!0x0;else{if(!_0x4f3d3d||!_0x4f3d3d['isInContent'])continue;if(_0x535d2a['newRange']&&_0x535d2a['oldRange']&&_0x535d2a['newRange']['isEqual'](_0x535d2a['oldRange']))continue;_0x282898['add'](_0x4f3d3d);}}}return _0x282898['size']>0x0&&(_0x271d6c=!!this['_joinWithAdjacentSuggestions'](_0x282898)||_0x271d6c),_0x271d6c;}),_0x40c37b['model']['document']['registerPostFixer'](_0xfbdbd0=>{let _0x3d801c=!0x1;for(const _0x39ef92 of _0x40c37b['model']['document']['differ']['getChanges']())if('insert'==_0x39ef92['type'])for(const _0xbbec02 of this['_suggestions']['values']()){if(_0xbbec02['isMultiRange']||!_0xbbec02['isInContent'])continue;const _0x41f2f0='formatBlock'==_0xbbec02['type'],_0x54b512=this['_getAttributeKey'](_0xbbec02),_0x36ce54=_0x54b512&&this['_suggestionsConversion']['isBlockAttribute'](_0x54b512);if(!_0x41f2f0&&!_0x36ce54)continue;const _0x4ea44c=_0xbbec02['getFirstRange']();if(_0x4ea44c['start']['parent']!=_0x4ea44c['end']['parent']&&!_0x4ea44c['end']['isAtEnd']){const _0x3680d3=_0x40c37b['model']['createPositionAt'](_0x4ea44c['start']['nodeAfter'],'end'),_0x1e755f=_0x40c37b['model']['createRange'](_0x4ea44c['start'],_0x3680d3);_0xfbdbd0['updateMarker'](_0xbbec02['getFirstMarker'](),{'range':_0x1e755f}),_0x3d801c=!0x0;}}return _0x3d801c;}),_0x40c37b['model']['document']['registerPostFixer'](_0x49cd89=>this['_processAttributeChanges'](_0x49cd89)),_0x40c37b['model']['document']['registerPostFixer'](_0x52cb66=>!_0x52cb66['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x52cb66)),_0x40c37b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x40c37b['model']['document']['on']('change:data',(_0x2853f9,_0x17b564)=>{if(!_0x17b564['isLocal']||_0x17b564['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x54a56d=_0x40c37b['model']['document']['differ']['getChanges']();if(0x0==_0x54a56d['length'])return;const _0x5559fd=[],_0x388ec6=_0x54a56d['filter'](_0x5af020=>'attribute'==_0x5af020['type']),_0x32c4af=_0x54a56d['filter'](_0x38467c=>'insert'==_0x38467c['type']&&'$text'!=_0x38467c['name']);for(const _0x8082b5 of _0x388ec6)this['_suggestionsConversion']['isRegisteredAttribute'](_0x8082b5['attributeKey'])&&_0x5559fd['push']({'key':_0x8082b5['attributeKey'],'newValue':_0x8082b5['attributeNewValue'],'oldValue':_0x8082b5['attributeOldValue'],'range':mn(_0x8082b5['range'],_0x40c37b['model'])});for(const _0x574f2a of _0x32c4af){if('rename'!=_0x574f2a['action']&&'refresh'!=_0x574f2a['action'])continue;const _0x4e4568=En(_0x574f2a['position']['nodeAfter'],_0x40c37b['model']),_0x3ecb45=_0x574f2a['before'];'rename'==_0x574f2a['action']&&_0x5559fd['push']({'key':rn,'newValue':_0x574f2a['name'],'oldValue':_0x3ecb45['name'],'range':_0x4e4568});for(const [_0x4f22c3,_0x43e024]of _0x3ecb45['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x4f22c3))continue;const _0x3b988b=_0x574f2a['attributes']['get'](_0x4f22c3);_0x43e024!==_0x3b988b&&_0x5559fd['push']({'key':_0x4f22c3,'newValue':_0x3b988b,'oldValue':_0x43e024,'range':_0x4e4568});}for(const [_0x55fb86,_0x443a67]of _0x574f2a['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x55fb86)&&(_0x3ecb45['attributes']['has'](_0x55fb86)||_0x5559fd['push']({'key':_0x55fb86,'newValue':_0x443a67,'oldValue':null,'range':_0x4e4568}));}0x0!=_0x5559fd['length']&&_0x40c37b['model']['enqueueChange'](_0x17b564,_0x1065b7=>{const _0x2c734c=_0x3469da();for(const {range:_0x3cab96,key:_0x34f822,oldValue:_0x281e11,newValue:_0x457da4}of _0x5559fd)this['markAttributeChange'](_0x3cab96,_0x34f822,_0x281e11,_0x457da4,{'groupId':_0x2c734c});this['_reduceExistingSuggestions'](_0x1065b7,_0x5559fd);});},{'priority':'lowest'}),_0x40c37b['model']['markers']['on']('update:suggestion',(_0x397367,_0x1637d2,_0x293cb1)=>{if(null==_0x293cb1){const {id:_0x1d5636}=et(_0x1637d2['name']),_0x25484b=this['_suggestions']['get'](_0x1d5636);_0x25484b&&_0x25484b['addMarkerName'](_0x1637d2['name']);}}),_0x40c37b['model']['document']['on']('change:data',()=>{const _0x5b5813=Array['from'](_0x40c37b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x548cd5=>'suggestion'===et(_0x548cd5['name'])['group']);if(0x0===_0x5b5813['length'])return;_0x5b5813['sort']((_0x3db254,_0x195f4c)=>{const _0x56871f=_0x3db254['data']['oldRange'],_0x40864b=_0x195f4c['data']['oldRange'];return null===_0x56871f&&null===_0x40864b?0x0:null===_0x56871f&&null!==_0x40864b?-0x1:null!==_0x56871f&&null===_0x40864b?0x1:_0x56871f['start']['isBefore'](_0x40864b['start'])?-0x1:0x1;});const _0x20999a=new Set(),_0x4a7b99=new Set();for(const {name:_0x30076f,data:_0x4b562c}of _0x5b5813){const {id:_0x512ca8}=et(_0x30076f);if(null===_0x4b562c['oldRange']){const _0x1edaf3=this['_handleNewSuggestionMarker'](_0x30076f);_0x4a7b99['add'](_0x1edaf3);}else{const _0x458188=this['_suggestions']['get'](_0x512ca8);null!==_0x4b562c['newRange']||_0x458188['isInContent']?(_0x20999a['add'](_0x458188['head']),_0x4a7b99['add'](_0x458188)):this['_removeSuggestion'](_0x458188);}}_0x4a7b99['size']>0x0&&this['_refreshSuggestionsChain'](_0x4a7b99);for(const _0x4f61c4 of _0x20999a)this['fire']('suggestionChanged',_0x4f61c4);}),_0x40c37b['model']['on']('applyOperation',(_0x405511,_0x4d86fc)=>{const _0x4dc0fd=_0x4d86fc[0x0];if(!this['_suggestions']['size'])return;if(!_0x4dc0fd['isDocumentOperation'])return;if(_0x4dc0fd['batch']['isUndo']||!_0x4dc0fd['batch']['isLocal'])return;let _0x25ac94,_0xba61ee;switch(_0x4dc0fd['type']){case'insert':_0x25ac94=_0x40c37b['model']['createPositionAt'](_0x4dc0fd['position']),_0xba61ee=_0x25ac94['getShiftedBy'](_0x4dc0fd['howMany']);break;case'split':_0x25ac94=_0x40c37b['model']['createPositionAt'](_0x4dc0fd['splitPosition']),_0xba61ee=_0x40c37b['model']['createPositionAt'](_0x4dc0fd['moveTargetPosition']);break;case'move':_0x25ac94=_0x40c37b['model']['createPositionAt'](_0x4dc0fd['targetPosition']),_0xba61ee=_0x25ac94['getShiftedBy'](_0x4dc0fd['howMany']);break;default:return;}const _0x134d60=_0x40c37b['model']['createRange'](_0x25ac94,_0xba61ee);_0x40c37b['model']['change'](()=>{for(const {suggestion:_0x2006be,meta:_0x379106}of this['_findSuggestions'](_0x134d60)){if(_0x2006be['isMultiRange'])continue;if('formatInline'==_0x2006be['type'])continue;const _0x2ecce1=this['_getAttributeKey'](_0x2006be);if(_0x2ecce1&&this['_suggestionsConversion']['isBlockAttribute'](_0x2ecce1)&&'split'!=_0x4dc0fd['type'])continue;const _0x4b3d1d=_0x2006be['data']&&_0x2006be['data']['multipleBlocks'];('formatBlock'!=_0x2006be['type']||'split'==_0x4dc0fd['type']&&!_0x4b3d1d)&&(_0x379106['containsRangeInObject']||'insertion'==_0x2006be['type']&&_0x379106['isOwn']||_0x2006be['getFirstRange']()['containsRange'](_0x134d60)&&this['_breakSuggestionMarker'](_0x2006be,_0x25ac94,_0xba61ee));}});},{'priority':'lowest'}),_0x40c37b['model']['on']('deleteContent',(_0x22987a,_0x390d06)=>{const _0x57de42=_0x390d06[0x0],_0x1ecec3=_0x390d06[0x1];if(_0x1ecec3&&_0x1ecec3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x57de42['isCollapsed'])return;const _0x24dd23=_0x40c37b['model']['schema'],{start:_0x22ae96,end:_0x49c527}=_0x57de42['getFirstRange'](),_0x30a6af=_0x22ae96['nodeAfter']&&_0x24dd23['isLimit'](_0x22ae96['nodeAfter'])?null:_0x24dd23['getNearestSelectionRange'](_0x22ae96,'forward'),_0x57b6fd=_0x49c527['nodeBefore']&&_0x24dd23['isLimit'](_0x49c527['nodeBefore'])?null:_0x24dd23['getNearestSelectionRange'](_0x49c527,'backward'),_0x5515a1=_0x40c37b['model']['createRange'](_0x30a6af?_0x30a6af['start']:_0x22ae96,_0x57b6fd?_0x57b6fd['end']:_0x49c527);_0x40c37b['model']['change'](_0x1a7d55=>{this['markDeletion'](_0x5515a1);const _0x28f47b=_0x40c37b['model']['schema']['getNearestSelectionRange'](_0x5515a1['start']);_0x57de42['is']('documentSelection')?_0x1a7d55['setSelection'](_0x28f47b):_0x57de42['setTo'](_0x28f47b);}),_0x22987a['stop']();},{'priority':_0x2601b1['normal']+0xa}),_0x40c37b['model']['on']('insertContent',(_0x40570b,_0xac9f35)=>{const _0x49734c=_0xac9f35[_0xac9f35['length']-0x1];_0x49734c&&_0x49734c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x40c37b['model']['change'](()=>{let _0x3649d0=_0x40c37b['model']['insertContent'](_0xac9f35[0x0],_0xac9f35[0x1],_0xac9f35[0x2],{'forceDefaultExecution':!0x0});if(!_0x3649d0)return;_0x40570b['return']=_0x3649d0['clone']();const _0x48fa71=_0x3649d0['end']['nodeBefore'],_0x742677=_0x40c37b['model']['schema'];_0x48fa71&&_0x742677['isBlock'](_0x48fa71)&&!_0x742677['isObject'](_0x48fa71)&&(_0x3649d0=_0x40c37b['model']['createRange'](_0x3649d0['start'],_0x40c37b['model']['createPositionAt'](_0x48fa71,'end'))),this['markInsertion'](_0x3649d0);}),_0x40570b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x35895e=new pt(_0x40c37b,this['_suggestions']);_0x40c37b['commands']['add']('acceptSuggestion',_0x35895e),this['enableCommand']('acceptSuggestion');const _0xd8bd3=new Lt(_0x40c37b,this['_suggestions']);_0x40c37b['commands']['add']('discardSuggestion',_0xd8bd3),this['enableCommand']('discardSuggestion'),_0x40c37b['commands']['add']('acceptAllSuggestions',new yt(_0x40c37b,_0x35895e,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x40c37b['commands']['add']('discardAllSuggestions',new yt(_0x40c37b,_0xd8bd3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x40c37b['commands']['add']('acceptSelectedSuggestions',new Nt(_0x40c37b,_0x35895e,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x40c37b['commands']['add']('discardSelectedSuggestions',new Nt(_0x40c37b,_0xd8bd3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x225097=_0x40c37b['plugins']['get'](_0x589aca);this['listenTo'](_0x225097,'addComment',(_0x410caf,{threadId:_0x23205e})=>{const _0x1560eb=this['_suggestions']['get'](_0x23205e);_0x1560eb&&_0x1560eb['commentThread']&&0x1===_0x1560eb['commentThread']['length']&&this['_updateSuggestionData'](_0x23205e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x225097,'removeComment',(_0x58c032,{threadId:_0x2e5371})=>{const _0x4d8cdf=this['_suggestions']['get'](_0x2e5371);_0x4d8cdf&&_0x4d8cdf['commentThread']&&!_0x4d8cdf['commentThread']['length']&&this['_updateSuggestionData'](_0x2e5371,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x2442f7){const _0x2fd7c3='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x4d5bf2=0x791a0,_0x9c661d=window['Date']['now'](),_0x191466=_0x2442f7['editor'],_0xb9b8b2=new window['Promise'](_0x29f33c=>{_0x191466['once']('ready',_0x29f33c);}),_0x104262={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0xb697e0=_0x191466['config']['get']('licenseKey');async function _0x2da7f0(){let _0x27d480,_0x68404d=null,_0x617d70=null;try{return'GPL'==_0xb697e0?'NotAllowed':(_0x27d480=_0x2f57c3(),_0x27d480?(_0x27d480['usageEndpoint']&&(_0x617d70=_0x4e77b8(_0x27d480['usageEndpoint'],_0x27d480['jti'])),await _0x5e21b2()?_0x191351()?_0x42928a()?'Expired':_0x5a8986()?('evaluation'==_0x27d480['licenseType']&&(_0x68404d=_0x3b5114('EvaluationLimit')),await _0x2ef018()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x42928a(){const _0x17ffc5=['evaluation','trial']['includes'](_0x27d480['licenseType'])?_0x9c661d/0x3e8:0xe10*_0x4d5bf2;return _0x27d480['exp']<_0x17ffc5;}function _0x191351(){const _0x44af9f=_0x27d480['features'];if(!_0x44af9f)return!0x1;if(_0x44af9f['includes']('*'))return!0x0;if(_0x44af9f['includes']('TC'))return!0x0;if(_0x44af9f['includes']('RTC')){if(_0x1fc8d7())return!0x0;if(_0x3ea468()||_0x4a5156())return!0x0;}return!0x1;}function _0x5a8986(){const _0x4349bb=_0x27d480['licensedHosts'];if(!_0x4349bb||0x0==_0x4349bb['length'])return!0x0;const {hostname:_0x17f82d}=new URL(window['location']['href']);if(_0x4349bb['includes'](_0x17f82d))return!0x0;const _0x1b77ab=_0x17f82d['split']('.');return _0x4349bb['filter'](_0x47c106=>_0x47c106['includes']('*'))['map'](_0x29a80e=>_0x29a80e['split']('.'))['filter'](_0x3961ce=>_0x3961ce['length']<=_0x1b77ab['length'])['map'](_0x31ec4a=>Array(_0x1b77ab['length']-_0x31ec4a['length'])['fill']('*'===_0x31ec4a[0x0]?'*':'')['concat'](_0x31ec4a))['some'](_0x73a7fa=>_0x1b77ab['every']((_0x18a205,_0x24fab1)=>_0x73a7fa[_0x24fab1]===_0x18a205||'*'===_0x73a7fa[_0x24fab1]));}function _0x2ef018(){return _0x68404d&&_0x617d70?new window['Promise']((_0x1a4355,_0x3f2a68)=>{_0x68404d['then'](_0x1a4355,_0x3f2a68),_0x617d70['then'](_0x283802=>{'Valid'!=_0x283802&&_0x1a4355(_0x283802);},_0x3f2a68);}):_0x68404d||_0x617d70||'Valid';}}function _0x4e77b8(_0x56166e,_0x264618){return new window['Promise'](_0x20f4d9=>{if(_0x2743e0())return _0x20f4d9('Valid');_0x12c196(),_0x191466['decorate']('_sendUsageRequest');let _0xd45ecf=!0x1;const _0x4924c5=_0x3469da();function _0x34fb8c(_0x3d496a){return!!_0x3d496a&&('object'==typeof _0x3d496a||'function'==typeof _0x3d496a)&&'function'==typeof _0x3d496a['then']&&'function'==typeof _0x3d496a['catch'];}function _0x211df5(_0x229b96){_0x220423(_0x229b96)['then'](_0x2a2410=>_0x2a2410&&'ok'==_0x2a2410['status']?_0x14ff91(_0x21f172(_0x4924c5+_0x264618))!=_0x2a2410['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x19a397=>(_0x228225(),_0x19a397),()=>{const _0x513d9a=_0x1ca256();return null==_0x513d9a?(_0x228225(),'Valid'):_0x9c661d-_0x513d9a>0x240c8400?'UsageLimit':'Valid';})['then'](_0x20f4d9)['catch'](()=>{_0x20f4d9('UsageLimit');});const _0x4b6169=0x36ee80;function _0x228225(){const _0x491715='llct-'+_0x14ff91(_0x21f172(_0x56166e)),_0x4e81d0=_0x442c59(_0x14ff91(window['Math']['ceil'](_0x9c661d/_0x4b6169)));window['localStorage']['setItem'](_0x491715,_0x4e81d0);}function _0x1ca256(){const _0x5dea08='llct-'+_0x14ff91(_0x21f172(_0x56166e)),_0x4c2205=window['localStorage']['getItem'](_0x5dea08);return _0x4c2205?window['parseInt'](_0x442c59(_0x4c2205),0x10)*_0x4b6169:null;}function _0x220423(_0x36a4ae){return new window['Promise']((_0x42f256,_0x55e6a0)=>{_0x36a4ae['then'](_0x42f256,_0x55e6a0),window['setTimeout'](_0x55e6a0,0x1d4c0);});}}_0x191466['on']('_sendUsageRequest',(_0x367466,_0x408a6f)=>{if(_0x408a6f[0x0]!=_0x56166e)return _0x20f4d9('UsageLimit');_0x408a6f[0x1]={..._0x408a6f[0x1],'requestId':_0x4924c5};},{'priority':'high'}),_0x191466['on']('_sendUsageRequest',_0x3b34a8=>{_0x34fb8c(_0x3b34a8['return'])&&(_0xd45ecf=!0x0,_0x211df5(_0x3b34a8['return']));},{'priority':'low'}),_0xb9b8b2['then'](()=>{_0xd45ecf||_0x20f4d9('UsageLimit');});});function _0x2743e0(){return'auto'==_0x191466['editing']['view']['_overlayModeHint'];}function _0x12c196(){_0x191466['editing']['view']['_overlayModeHint']='auto';}}function _0x3b5114(_0x904891){const _0x1ac244=[new window['Promise'](_0x27130a=>setTimeout(_0x27130a,0x93ecc)),_0xb9b8b2['then'](()=>new window['Promise'](_0x2b07f6=>{let _0x456907=0x0;_0x191466['model']['on']('applyOperation',(_0x304fe8,_0x63c053)=>{_0x63c053[0x0]['isDocumentOperation']&&_0x456907++,0x5e8==_0x456907&&(_0x2b07f6(),_0x304fe8['off']());});}))];return window['Promise']['race'](_0x1ac244)['then'](()=>_0x904891);}async function _0x28ae8b(){await _0xb9b8b2,_0x191466['model']['change']=_0x58a431,_0x191466['model']['enqueueChange']=_0x58a431,_0x191466['enableReadOnlyMode']('model');}function _0x1fc8d7(){return _0x523c61('WebSocketGateway')&&'connected'==_0x57d635('WebSocketGateway')['state'];}function _0x3ea468(){return _0x523c61('RevisionViewerIntegration');}function _0x4a5156(){return _0x523c61('TrackChangesDataGetter');}function _0x334381(_0x5715f9){const _0x52b3ca=_0x37d891();_0x191466[_0x52b3ca]='trackChangesLicenseKey'+_0x5715f9,'Valid'!=_0x5715f9&&_0x28ae8b();}function _0x37d891(){const _0x1fba32=window['String'](window['performance']['now']())['replace']('.','');let _0x20089b='R';for(let _0x268dd5=0x0;_0x268dd5<_0x1fba32['length'];_0x268dd5+=0x2){let _0x1d0fee=window['parseInt'](_0x1fba32['substring'](_0x268dd5,_0x268dd5+0x2));_0x1d0fee>=0x3e&&(_0x1d0fee-=0x3e),_0x20089b+=_0x2fd7c3[_0x1d0fee];}return _0x20089b;}function _0x2f57c3(){const _0x57ade3=_0xb697e0['split']('.');if(0x3!=_0x57ade3['length'])return null;return _0x23416b(_0x57ade3[0x1]);function _0x23416b(_0x6ce38d){const _0x1bf447=_0x2904a5(_0x6ce38d);return _0x1bf447&&_0x33cdb5()?_0x1bf447:null;function _0x33cdb5(){const _0x1bbd17=_0x1bf447['jti'],_0x3458dd=window['parseInt'](_0x1bbd17['substring'](_0x1bbd17['length']-0x8),0x10),_0x15f409={..._0x1bf447,'jti':_0x1bbd17['substring'](0x0,_0x1bbd17['length']-0x8)};return delete _0x15f409['vc'],_0x21f172(_0x15f409)==_0x3458dd;}}}async function _0x5e21b2(){let _0x128abc=!0x0;try{const [_0x4aa478,_0x127da9,_0x23e3a3]=_0xb697e0['split']('.');return _0x372b36(_0x4aa478),await _0x246d08(_0x4aa478,_0x127da9,_0x23e3a3),_0x128abc;}catch{return!0x1;}function _0x372b36(_0x185090){const _0x2c51ae=_0x2904a5(_0x185090);_0x2c51ae&&'ES256'==_0x2c51ae['alg']||(_0x128abc=!0x1);}async function _0x246d08(_0x50f4e1,_0x4bcd83,_0x208194){const _0x21043a=window['Uint8Array']['from'](_0x5ebc23(_0x208194),_0x3bb594=>_0x3bb594['charCodeAt'](0x0)),_0x17e942=new window['TextEncoder']()['encode'](_0x50f4e1+'.'+_0x4bcd83),_0x36dd9c=window['crypto']['subtle'];if(!_0x36dd9c)return;const _0x4d8ce8=await _0x36dd9c['importKey']('jwk',_0x104262,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x36dd9c['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x4d8ce8,_0x21043a,_0x17e942)||(_0x128abc=!0x1);}}function _0x2904a5(_0x290e3c){return _0x290e3c['startsWith']('ey')?JSON['parse'](_0x5ebc23(_0x290e3c)):null;}function _0x5ebc23(_0x1f7d1d){return window['atob'](_0x1f7d1d['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x21f172(_0xa8f884){let _0x8c3a4=0x1505;function _0xb0b713(_0x5c7d65){for(let _0x24f1f6=0x0;_0x24f1f6<_0x5c7d65['length'];_0x24f1f6++){const _0x4b1ebe=_0x5c7d65['charCodeAt'](_0x24f1f6);_0x8c3a4=(_0x8c3a4<<0x5)+_0x8c3a4+_0x4b1ebe,_0x8c3a4&=_0x8c3a4;}}function _0x4135af(_0x427890){Array['isArray'](_0x427890)?_0x427890['forEach'](_0x4135af):_0x427890&&'object'==typeof _0x427890?Object['entries'](_0x427890)['sort']()['forEach'](([_0x506938,_0x264804])=>{_0xb0b713(_0x506938),_0x4135af(_0x264804);}):_0xb0b713(window['String'](_0x427890));}return _0x4135af(_0xa8f884),_0x8c3a4>>>0x0;}function _0x14ff91(_0x2b606c){return _0x2b606c['toString'](0x10)['padStart'](0x8,'0');}function _0x442c59(_0x8cc2d5){return _0x8cc2d5['split']('')['reverse']()['join']('');}function _0x523c61(_0x3bcc41){return _0x191466['plugins']['has'](_0x3bcc41);}function _0x57d635(_0x110511){return _0x191466['plugins']['get'](_0x110511);}function _0x58a431(){}_0x334381(await _0x2da7f0());}(this);}set adapter(_0x4d53b9){if(this['_adapter'])throw new _0x11ddd9('track-changes-adapter-already-set',this);this['_adapter']=_0x4d53b9;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x51c21e=!0x1,toJSON:_0x7ceef5=!0x1}={}){const _0x46ec6e=[];for(const _0x3c37e0 of this['_suggestions']['values']())_0x51c21e&&!_0x3c37e0['isInContent']||_0x46ec6e['push'](_0x3c37e0);return _0x7ceef5?_0x46ec6e['map'](_0x373e43=>_0x373e43['toJSON']()):_0x46ec6e;}getSuggestion(_0x199476){const _0x40756b=this['_suggestions']['get'](_0x199476);if(!_0x40756b)throw new _0x11ddd9('track-changes-suggestion-not-found',this);return _0x40756b;}hasSuggestion(_0x1e4d6f){return this['_suggestions']['has'](_0x1e4d6f);}addSuggestionData(_0x595223){const {authorId:_0x5f3c10,id:_0x2e99d4,originalSuggestionId:_0xb863bf,attributes:_0x175ae8}=_0x595223,[_0x2b5ccd,_0x573659]=_0x595223['type']['split'](':'),_0xbc6612=this['_suggestions']['get'](_0x2e99d4)||this['_createSuggestion'](_0x2b5ccd,_0x573659,_0x2e99d4,_0x5f3c10,_0x175ae8,_0xb863bf);if(this['_addThreadToSuggestion'](_0xbc6612),this['_checkSuggestionCorrectness'](_0xbc6612,_0x2b5ccd,_0x573659||null,_0x5f3c10),_0xbc6612['createdAt']=_0x595223['createdAt'],_0xbc6612['_isDataLoaded']=!0x0,_0x175ae8&&_0x175ae8['@external']){const _0x571d81=_0x175ae8['@external'],_0x1a3dd0=this['_getExternalAuthor'](_0x571d81['authorName']);_0xbc6612['authoredAt']=_0x571d81['createdAt'],_0xbc6612['author']=_0x1a3dd0;}else _0xbc6612['authoredAt']=_0x595223['createdAt'];switch(_0x595223['data']&&(_0xbc6612['data']=_0x595223['data']),_0x595223['attributes']&&(_0xbc6612['attributes']=_0x595223['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xbc6612['_saved']=!0x0),this['_suggestionState']['get'](_0xbc6612)){case'notReady':this['_suggestionState']['set'](_0xbc6612,'dataReady');break;case'markerReady':_0xbc6612['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xbc6612])),this['_refreshSuggestionsChain'](new Set([_0xbc6612])),this['_suggestionState']['set'](_0xbc6612,'ready'),this['fire']('suggestionLoaded',_0xbc6612)):this['_suggestionState']['set'](_0xbc6612,'removed');}return _0xbc6612;}acceptSuggestion(_0x544016){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3d7cf4 of _0x544016['getAllAdjacentSuggestions']())_0x3d7cf4['accept']();});});}discardSuggestion(_0x33fe32){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x595b60 of _0x33fe32['getAllAdjacentSuggestions']())_0x595b60['discard']();});});}['enableCommand'](_0x12b424,_0x5cc390){const _0x1d4b1d=this['editor']['commands']['get'](_0x12b424);if(!_0x1d4b1d)throw new _0x11ddd9('track-changes-command-not-found',this,{'commandName':_0x12b424});if(this['_enabledCommands']['has'](_0x1d4b1d))throw new _0x11ddd9('track-changes-enable-command-twice',this,{'commandName':_0x12b424});this['_enabledCommands']['add'](_0x1d4b1d),_0x5cc390&&_0x1d4b1d['on']('execute',(_0x3932dd,_0x56322c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x56322c['length']>0x0&&_0x56322c[_0x56322c['length']-0x1]&&_0x56322c[_0x56322c['length']-0x1]['forceDefaultExecution']?_0x56322c['pop']():(_0x3932dd['return']=_0x5cc390((..._0x3be4a1)=>_0x1d4b1d['execute'](..._0x3be4a1,{'forceDefaultExecution':!0x0}),..._0x56322c),_0x3932dd['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x334e39){let _0x35c2a8,_0x282817;const _0x3df8b7=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x35c2a8=_0x334e39();}catch(_0x1a682a){_0x282817=_0x1a682a;}return _0x3df8b7||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x282817&&_0x11ddd9['rethrowUnexpectedError'](_0x282817,this),_0x35c2a8;}markInsertion(_0x2c4b8a,_0x5052a3=null,_0x4f6c85={}){if(_0x2c4b8a['isCollapsed'])return null;const _0x1b2da8=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4f6c85['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3cdd4b,meta:_0x3e6fe8}of this['_findSuggestions'](_0x2c4b8a,'insertion'))if(_0x3e6fe8['isOwn']){if(!_0x3e6fe8['isNextTo']){if(_0x3e6fe8['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!pn(_0x3cdd4b,_0x4f6c85))continue;return _0x3cdd4b;}if(pn(_0x3cdd4b,_0x4f6c85))return _0x3cdd4b;this['_breakSuggestionMarker'](_0x3cdd4b,_0x2c4b8a['start'],_0x2c4b8a['end']);break;}if(_0x5052a3==_0x3cdd4b['subType']&&pn(_0x3cdd4b,_0x4f6c85)){const _0x41998f=_0x3cdd4b['getFirstRange']();return _0x41998f['start']['isEqual'](_0x2c4b8a['end'])?this['_setSuggestionRange'](_0x3cdd4b,this['_model']['createRange'](_0x2c4b8a['start'],_0x41998f['end'])):this['_setSuggestionRange'](_0x3cdd4b,this['_model']['createRange'](_0x41998f['start'],_0x2c4b8a['end'])),_0x3cdd4b;}}const _0x588e18=_0x3469da(),_0x1334f2=_0x1b2da8['id'],_0xa08933=_0x5052a3?'insertion:'+_0x5052a3:'insertion',_0x27929a=this['_setSuggestionData']({'id':_0x588e18,'type':_0xa08933,'createdAt':new Date(),'authorId':_0x1334f2,'attributes':_0x4f6c85});return this['_addSuggestionMarker'](_0xa08933,_0x588e18,_0x1334f2,_0x2c4b8a),_0x27929a;}markMultiRangeInsertion(_0x5eb67c,_0x3515d3='multi',_0x1b22c2={}){const _0x1316b8=this['editor']['plugins']['get']('Users')['me'],_0x4be0e3=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3515d3,'join');this['_trackingSessionId']&&(_0x1b22c2['trackingSessionId']=this['_trackingSessionId']);for(const _0x135812 of this['getSuggestions']())if(_0x135812['author']['id']==_0x1316b8['id']&&'insertion'==_0x135812['type']&&_0x135812['subType']==_0x3515d3&&pn(_0x135812,_0x1b22c2)&&(_0x4be0e3(_0x135812['getRanges'](),_0x5eb67c)||_0x4be0e3(_0x5eb67c,_0x135812['getRanges']()))){for(const _0x4ad19e of _0x5eb67c)_0x135812['addRange'](_0x4ad19e);return _0x135812;}for(const {suggestion:_0x222087,meta:_0x4856c6}of this['_findSuggestions'](_0x5eb67c,'insertion')){if(!_0x4856c6['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4856c6['containsRangeInObject'])continue;if(!pn(_0x222087,_0x1b22c2))continue;let _0x235c34=!0x0;for(const _0x363bf3 of _0x222087['getRanges']())for(const _0x4d84e3 of _0x5eb67c)if(!_0x363bf3['containsRange'](_0x4d84e3)){_0x235c34=!0x1;break;}if(_0x235c34)return _0x222087;}const _0x33ff1f=_0x3469da(),_0x34a817=_0x1316b8['id'],_0xc6d456='insertion:'+_0x3515d3,_0x14d482=this['_setSuggestionData']({'id':_0x33ff1f,'type':_0xc6d456,'createdAt':new Date(),'authorId':_0x34a817,'attributes':_0x1b22c2});for(const _0x2d55a1 of _0x5eb67c)this['_addSuggestionMarker'](_0xc6d456,_0x33ff1f,_0x34a817,_0x2d55a1,Mt['getMultiRangeId']());return _0x14d482;}markInlineFormat(_0x2f22ae,_0xb9d41f,_0x1935ff=null,_0xc8ae54={}){if(_0x1935ff=_0x1935ff||dn(_0xb9d41f),_0x2f22ae['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0xc8ae54['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x176469=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1935ff,'accept');return this['forceDefaultExecution'](()=>_0x176469([_0x2f22ae],_0xb9d41f,_0xc8ae54)),null;}const _0x34da7a=this['editor']['plugins']['get']('Users')['me'],_0x200e36=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5803b7,meta:_0x599e76}of this['_findSuggestions'](_0x2f22ae,'insertion'))_0x599e76['isOwn']&&!_0x599e76['isInsideObject']&&_0x200e36['push'](..._0x5803b7['getRanges']());}const _0xa5a9f6=function(_0x13ee84,_0xd93330){const _0x38a294=[];for(const _0x4c8880 of _0xd93330){const _0x171417=_0x13ee84['getIntersection'](_0x4c8880);_0x171417&&_0x38a294['push'](_0x171417);}return _0x38a294;}(_0x2f22ae,_0x200e36),_0x2db075=function(_0xb0ae52,_0x1c34dd){const _0x176afc=[_0xb0ae52];for(const _0x1e51c6 of _0x1c34dd){let _0x3a6b73=0x0;for(;_0x3a6b73<_0x176afc['length'];){const _0x4f5d61=_0x176afc[_0x3a6b73]['getDifference'](_0x1e51c6);_0x176afc['splice'](_0x3a6b73,0x1,..._0x4f5d61),_0x3a6b73+=_0x4f5d61['length'];}}return _0x176afc;}(_0x2f22ae,_0x200e36);_0xa5a9f6['length']&&this['_model']['change'](()=>{for(const _0x1adb18 of _0xa5a9f6){const _0x139108=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1935ff,'accept');this['forceDefaultExecution'](()=>_0x139108([_0x1adb18],_0xb9d41f,_0xc8ae54));}});for(const _0x3274ad of _0x2db075){let _0xf5f39a=null,_0x5addeb=_0x3274ad['start'],_0x3050bc=_0x3274ad['end'];for(const {suggestion:_0x2262df,meta:_0x5616a0}of this['_findSuggestions'](_0x3274ad,'formatInline')){if(!_0x5616a0['isOwn'])continue;if(_0x2262df['subType']!=_0x1935ff)continue;if(!pn(_0x2262df,_0xc8ae54))continue;const _0x1e71e2=_0x2262df['getFirstRange']();if(_0x1e71e2['containsRange'](_0x3274ad,!0x0))return null;_0x5addeb=_0x5addeb['isBefore'](_0x1e71e2['start'])?_0x5addeb:_0x1e71e2['start'],_0x3050bc=_0x3050bc['isAfter'](_0x1e71e2['end'])?_0x3050bc:_0x1e71e2['end'],_0xf5f39a?_0x1e71e2['start']['isBefore'](_0xf5f39a['getFirstRange']()['start'])?(_0xf5f39a['removeMarkers'](),_0xf5f39a=_0x2262df):_0x2262df['removeMarkers']():_0xf5f39a=_0x2262df;}const _0x49dc78=this['_model']['createRange'](_0x5addeb,_0x3050bc);if(_0xf5f39a)this['_setSuggestionRange'](_0xf5f39a,_0x49dc78);else{const _0x4b0889=_0x3469da(),_0x41980d=_0x34da7a['id'];this['_setSuggestionData']({'id':_0x4b0889,'type':'formatInline:'+_0x1935ff,'data':_0xb9d41f,'createdAt':new Date(),'authorId':_0x41980d,'attributes':_0xc8ae54}),this['_addSuggestionMarker']('formatInline:'+_0x1935ff,_0x4b0889,_0x41980d,_0x49dc78);}}return null;}markBlockFormat(_0x5e795c,_0x20ed53,_0x3606b0=[],_0x346361=null,_0x4359b6={}){_0x20ed53['formatGroupId']||(_0x20ed53['formatGroupId']=_0x20ed53['commandName']),_0x20ed53['multipleBlocks']=_0x5e795c['is']('range'),_0x346361=_0x346361||dn(_0x20ed53);const _0x3f8571=_0x3606b0['map'](_0x4a2083=>En(_0x4a2083,this['_model'])),_0xb2a754=_0x5e795c['is']('range')?_0x5e795c:En(_0x5e795c,this['_model']);if(this['_trackingSessionId']&&(_0x4359b6['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x380e91=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x346361,'accept');return this['forceDefaultExecution'](()=>_0x380e91([_0xb2a754],_0x20ed53,_0x4359b6)),null;}_0x3f8571['push'](_0xb2a754);let _0x5efd39=!0x0;for(const _0x2c8bc0 of _0x3f8571)if(!this['_rangeIsInLocalUserInsertion'](_0x2c8bc0)){_0x5efd39=!0x1;break;}if(_0x5efd39&&'always'!==this['_trackFormatChanges']){const _0x309729=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x346361,'accept');return this['forceDefaultExecution'](()=>_0x309729([_0xb2a754],_0x20ed53,_0x4359b6)),null;}let _0x4f33fa=null,_0x7eabaa=_0xb2a754['start'],_0x2841b9=_0xb2a754['end'];for(const {suggestion:_0x836b24,meta:_0x2f6060}of this['_findSuggestions'](_0xb2a754,'formatBlock')){if(!_0x2f6060['isOwn'])continue;if(_0x2f6060['isNextTo']||_0x2f6060['containsRangeInObject']||_0x2f6060['isInsideObject'])continue;if(_0x836b24['data']['formatGroupId']!=_0x20ed53['formatGroupId'])continue;if(!pn(_0x836b24,_0x4359b6))continue;const _0x3a8fe7=_0x836b24['getFirstRange']();if(_0x836b24['subType']==_0x346361){if(_0x3a8fe7['containsRange'](_0xb2a754,!0x0))return null;_0x7eabaa=_0x7eabaa['isBefore'](_0x3a8fe7['start'])?_0x7eabaa:_0x3a8fe7['start'],_0x2841b9=_0x2841b9['isAfter'](_0x3a8fe7['end'])?_0x2841b9:_0x3a8fe7['end'],_0x4f33fa?_0x3a8fe7['start']['isBefore'](_0x4f33fa['getFirstRange']()['start'])?(_0x4f33fa['removeMarkers'](),_0x4f33fa=_0x836b24):_0x836b24['removeMarkers']():_0x4f33fa=_0x836b24;}else{const _0x191f21=_0xb2a754['getIntersection'](_0x3a8fe7);this['_cutOutSuggestionMarker'](_0x836b24,_0x191f21);}}const _0x1acbf6=this['editor']['plugins']['get']('Users')['me'],_0x40b3cf=_0x3469da(),_0x78844=_0x1acbf6['id'];if(_0x4f33fa)return this['_setSuggestionRange'](_0x4f33fa,this['_model']['createRange'](_0x7eabaa,_0x2841b9)),_0x4f33fa;{const _0x56d366=this['_setSuggestionData']({'id':_0x40b3cf,'type':'formatBlock:'+_0x346361,'data':_0x20ed53,'createdAt':new Date(),'authorId':_0x78844,'attributes':_0x4359b6});return this['_addSuggestionMarker']('formatBlock:'+_0x346361,_0x40b3cf,_0x78844,this['_model']['createRange'](_0x7eabaa,_0x2841b9)),_0x56d366;}}markMultiRangeBlockFormat(_0x508ae3,_0x46203f,_0x56d9a4=[],_0x58377b=null,_0xceaf95={}){_0x46203f['formatGroupId']||(_0x46203f['formatGroupId']=_0x46203f['commandName']);const _0x35d55e=_0x508ae3[0x0];_0x46203f['multipleBlocks']=_0x35d55e['is']('range'),_0x58377b=_0x58377b||dn(_0x46203f);const _0x6d4253=_0x56d9a4['map'](_0x59ff18=>En(_0x59ff18,this['_model'])),_0xc192a2=_0x35d55e['is']('range')?_0x508ae3:_0x508ae3['map'](_0x4854d2=>En(_0x4854d2,this['_model']));if(this['_trackingSessionId']&&(_0xceaf95['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x35ddaf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x58377b,'accept');return this['forceDefaultExecution'](()=>_0x35ddaf(_0xc192a2,_0x46203f,_0xceaf95)),null;}_0x6d4253['push'](..._0xc192a2);let _0x2ee5c7=!0x0;for(const _0x5ddec6 of _0x6d4253)if(!this['_rangeIsInLocalUserInsertion'](_0x5ddec6)){_0x2ee5c7=!0x1;break;}if(_0x2ee5c7&&'always'!==this['_trackFormatChanges']){const _0x204401=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x58377b,'accept');return this['forceDefaultExecution'](()=>_0x204401(_0xc192a2,_0x46203f,_0xceaf95)),null;}const _0x376741=this['editor']['plugins']['get']('Users')['me'];for(const _0x308971 of this['getSuggestions']()){const _0xd7eb47=_0x308971['data'];if(_0x308971['author']['id']!=_0x376741['id'])continue;if('formatBlock'!=_0x308971['type']||_0xd7eb47['formatGroupId']!=_0x46203f['formatGroupId'])continue;if(!pn(_0x308971,_0xceaf95))continue;const _0x2d2485=_0x308971['subType']==_0x58377b;for(let _0x34b446=0x0;_0x34b446<_0xc192a2['length'];_0x34b446++){const _0x380550=_0xc192a2[_0x34b446];for(const _0x54185e of _0x308971['getMarkers']()){const _0xb53a84=_0x54185e['getRange']();if(_0x380550['isEqual'](_0xb53a84)){_0x2d2485?(_0xc192a2['splice'](_0x34b446,0x1),_0x34b446--):_0x308971['removeMarker'](_0x54185e['name']);break;}}}}if(0x0==_0xc192a2['length'])return null;const _0x2dd69a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x58377b,'join');for(const _0x2d68cc of this['getSuggestions']()){const _0x16755b=_0x2d68cc['data'];if(_0x2d68cc['author']['id']==_0x376741['id']&&('formatBlock'==_0x2d68cc['type']&&_0x16755b['formatGroupId']==_0x46203f['formatGroupId']&&_0x2d68cc['subType']==_0x58377b&&pn(_0x2d68cc,_0xceaf95)&&(_0x2dd69a(_0x2d68cc['getRanges'](),_0xc192a2)||_0x2dd69a(_0xc192a2,_0x2d68cc['getRanges']())))){for(const _0x2eb092 of _0xc192a2)_0x2d68cc['addRange'](_0x2eb092);return _0x2d68cc;}}const _0x354a9b=_0x3469da(),_0x3d3f75=_0x376741['id'],_0x2e5bab='formatBlock:'+_0x58377b,_0x49e7e7=this['_setSuggestionData']({'id':_0x354a9b,'type':_0x2e5bab,'data':_0x46203f,'createdAt':new Date(),'authorId':_0x3d3f75,'attributes':_0xceaf95});for(const _0x21062b of _0xc192a2)this['_addSuggestionMarker'](_0x2e5bab,_0x354a9b,_0x3d3f75,_0x21062b,Mt['getMultiRangeId']());return _0x49e7e7;}markDeletion(_0xf200af,_0xe4d42d=null,_0x265973={}){if(_0xf200af['isCollapsed'])return null;const _0x3e36ac=this['editor']['plugins']['get']('Users')['me'],_0x250aa3=new ot(_0xf200af['start'],_0xf200af['end']);this['_trackingSessionId']&&(_0x265973['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xa25230,meta:_0x4d2b6b}of this['_findSuggestions'](_0x250aa3,'insertion'))if(_0x4d2b6b['isOwn']&&!_0x4d2b6b['isNextTo']){if(_0xa25230['isMultiRange']){const _0x1ec835=_0xa25230['getRanges']()['filter'](_0x263907=>'$graveyard'!=_0x263907['root']['rootName']);if(_0x1ec835['every'](_0x1624c5=>_0x250aa3['containsRange'](_0x1624c5,!0x0))&&_0xa25230['discard'](),_0x1ec835['some'](_0xdc9ccc=>_0xdc9ccc['containsRange'](_0x250aa3,!0x0))){const _0x22bbde=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xe4d42d,'accept');return this['forceDefaultExecution'](()=>_0x22bbde([_0x250aa3],null,_0x265973)),null;}}else{const _0x53a0b5=_0x250aa3['getIntersection'](_0xa25230['getFirstRange']());null!==_0x53a0b5&&_0xa25230['_onDiscard']([_0x53a0b5],null,_0x265973);}}if(_0x250aa3['detach'](),_0x250aa3['isCollapsed']||'$graveyard'==_0x250aa3['root']['rootName'])return null;let _0x106d33=null,_0x3b3f16=_0x250aa3['start'],_0x343151=_0x250aa3['end'];const _0x1b9141=this['_findSuggestions'](_0x250aa3,'deletion');for(const {suggestion:_0x110f65,meta:_0x17d5f1}of _0x1b9141){const _0x38cbba=this['_model']['createRange'](_0x3b3f16,_0x343151);if(_0x17d5f1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x17d5f1['containsRangeInObject']&&!_0x17d5f1['isInsideObject'])){if(_0x110f65['isMultiRange']){if(!pn(_0x110f65,_0x265973))continue;let _0x18cefd=!0x0;for(const _0x3bd144 of _0x110f65['getRanges']()){if(_0x3bd144['containsRange'](_0x38cbba,!0x0))return _0x110f65;_0x38cbba['containsRange'](_0x3bd144)||(_0x18cefd=!0x1);}_0x18cefd&&_0x110f65['discard']();}else{const _0x29a2fd=_0x110f65['getFirstRange']();if(_0x29a2fd['containsRange'](_0x38cbba,!0x0))return _0x110f65;if(!pn(_0x110f65,_0x265973)){_0x38cbba['containsRange'](_0x29a2fd)?_0x110f65['removeMarkers']():_0x29a2fd['containsPosition'](_0x3b3f16)?_0x3b3f16=_0x29a2fd['end']:_0x29a2fd['containsPosition'](_0x343151)&&(_0x343151=_0x29a2fd['start']);continue;}_0x3b3f16=_0x3b3f16['isBefore'](_0x29a2fd['start'])?_0x3b3f16:_0x29a2fd['start'],_0x343151=_0x343151['isAfter'](_0x29a2fd['end'])?_0x343151:_0x29a2fd['end'],_0x265973=Object['assign']({},_0x110f65['attributes']),_0x106d33?_0x29a2fd['start']['isBefore'](_0x106d33['getFirstRange']()['start'])?(_0x106d33['removeMarkers'](),_0x106d33=_0x110f65):_0x110f65['removeMarkers']():_0x106d33=_0x110f65;}}}if(_0x106d33)return this['_setSuggestionRange'](_0x106d33,this['_model']['createRange'](_0x3b3f16,_0x343151)),_0x106d33;{const _0x29dbd4=_0x3469da(),_0x2e5071=this['_model']['createRange'](_0x3b3f16,_0x343151),_0x5ba9d6=_0x3e36ac['id'],_0x38bdd4=_0xe4d42d?'deletion:'+_0xe4d42d:'deletion',_0x18cd0a=this['_setSuggestionData']({'id':_0x29dbd4,'type':_0x38bdd4,'createdAt':new Date(),'authorId':_0x5ba9d6,'attributes':_0x265973});return this['_addSuggestionMarker'](_0x38bdd4,_0x29dbd4,_0x5ba9d6,_0x2e5071),_0x18cd0a;}}markMultiRangeDeletion(_0x586280,_0x24618e='multi',_0x165d7e={}){const _0x1c38eb=this['editor']['plugins']['get']('Users')['me'],_0x2c58ac=_0x586280['map'](_0x2f3c96=>new ot(_0x2f3c96['start'],_0x2f3c96['end'])),_0x24defd=new Set();this['_trackingSessionId']&&(_0x165d7e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x18cff5,meta:_0xadb6bb}of this['_findSuggestions'](_0x2c58ac,'insertion'))_0xadb6bb['isOwn']&&!_0xadb6bb['isNextTo']&&_0x24defd['add'](_0x18cff5);for(const _0xd5093b of _0x24defd)if(_0xd5093b['isMultiRange']){const _0x4172ec=_0xd5093b['getRanges']();if(_0xd5093b['attributes']&&_0xd5093b['attributes']['skipNestingCheck']||_0x4172ec['every'](_0x9721e2=>_0x2c58ac['some'](_0x57d5d4=>_0x57d5d4['containsRange'](_0x9721e2,!0x0)))&&_0xd5093b['discard'](),_0x2c58ac['every'](_0x4cb8c4=>_0x4172ec['some'](_0x486dcf=>_0x486dcf['containsRange'](_0x4cb8c4,!0x0)))){const _0xaa8755=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x24618e,'accept');return this['forceDefaultExecution'](()=>_0xaa8755(_0x586280,null,_0x165d7e)),null;}}else{const _0x432998=_0xd5093b['getFirstRange']();if(_0x2c58ac['some'](_0x47da4d=>_0x47da4d['containsRange'](_0x432998,!0x0))&&_0xd5093b['discard'](),_0x2c58ac['every'](_0x39be97=>_0x432998['containsRange'](_0x39be97,!0x0))){const _0x291ff1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x24618e,'accept');return this['forceDefaultExecution'](()=>_0x291ff1(_0x2c58ac,null,_0x165d7e)),null;}}const _0x5018c5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x24618e,'join');let _0x330f4e=null;for(const _0x2aacbf of this['getSuggestions']())if(_0x2aacbf['author']['id']==_0x1c38eb['id']&&_0x2aacbf['isInContent']&&'deletion'==_0x2aacbf['type']&&_0x2aacbf['subType']==_0x24618e&&pn(_0x2aacbf,_0x165d7e)&&(_0x5018c5(_0x2aacbf['getRanges'](),_0x2c58ac)||_0x5018c5(_0x2c58ac,_0x2aacbf['getRanges']()))){if(_0x330f4e){if(_0x2aacbf['commentThread']&&_0x2aacbf['commentThread']['length'])continue;for(const _0x3755c2 of _0x2aacbf['getRanges']())_0x330f4e['isIntersectingWithRange'](_0x3755c2)||_0x330f4e['addRange'](_0x3755c2);_0x2aacbf['removeMarkers']();}else{_0x330f4e=_0x2aacbf;for(const _0x5ae38a of _0x2c58ac)_0x2aacbf['isIntersectingWithRange'](_0x5ae38a)||_0x2aacbf['addRange'](_0x5ae38a);}}if(_0x330f4e)return _0x330f4e;_0x24defd['clear']();for(const {suggestion:_0x34769d,meta:_0x45dc1f}of this['_findSuggestions'](_0x2c58ac,'deletion'))_0x45dc1f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x45dc1f['containsRangeInObject']&&!_0x45dc1f['isInsideObject'])&&pn(_0x34769d,_0x165d7e)&&_0x24defd['add'](_0x34769d);for(const _0x37a061 of _0x24defd){const _0x3bd69d=_0x37a061['getRanges']();if((!_0x165d7e||!_0x165d7e['skipNestingCheck'])&&_0x2c58ac['every'](_0x3cfd5f=>_0x3bd69d['some'](_0xc3d1cb=>_0xc3d1cb['containsRange'](_0x3cfd5f,!0x0))))return _0x37a061;_0x37a061['attributes']&&_0x37a061['attributes']['skipNestingCheck']||_0x3bd69d['every'](_0x2736d0=>_0x2c58ac['some'](_0x32d96d=>_0x32d96d['containsRange'](_0x2736d0,!0x0)))&&_0x37a061['discard']();}const _0x382adf=_0x3469da(),_0x493e10=_0x1c38eb['id'],_0x1b8d51='deletion:'+_0x24618e,_0x2de4d5=this['_setSuggestionData']({'id':_0x382adf,'type':_0x1b8d51,'createdAt':new Date(),'authorId':_0x493e10,'attributes':_0x165d7e});for(const _0x4fe526 of _0x2c58ac)_0x4fe526['detach'](),_0x4fe526['isCollapsed']||'$graveyard'==_0x4fe526['root']['rootName']||this['_addSuggestionMarker'](_0x1b8d51,_0x382adf,_0x493e10,_0x4fe526,Mt['getMultiRangeId']());return _0x2de4d5;}markAttributeChange(_0xba2dc,_0x5b74f8,_0x480750,_0x159f68,_0x14e8cc){if(_0xba2dc['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xb193ad=this['editor']['plugins']['get']('Users')['me']['id'],_0x9d6071=Array['from'](this['_suggestions']['values']())['filter'](_0x193d61=>'attribute'==_0x193d61['type']&&_0x193d61['data']['key']==_0x5b74f8&&_0x193d61['isIntersectingWithRange'](_0xba2dc));if(this['_trackingSessionId']&&(_0x14e8cc['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x135566=this['_findSuggestions'](_0xba2dc,'insertion')['filter'](({meta:_0x287d93})=>_0x287d93['isOwn']&&!_0x287d93['isInsideObject']&&!_0x287d93['isNextTo'])['map'](({suggestion:_0x5b64c3})=>_0x5b64c3);_0x9d6071['unshift'](..._0x135566);}const _0x375afc=new Map([[_0xba2dc,_0x480750]]);for(const _0x1303cb of _0x9d6071){const _0x4532fc='attribute'==_0x1303cb['type']?_0x1303cb['data']['oldValue']:void 0x0,_0x4378de=_0x1303cb['getFirstRange'](),_0x3e30a1=Array['from'](_0x375afc['keys']())['find'](_0x366475=>_0x366475['isIntersecting'](_0x4378de));if(!_0x3e30a1)continue;const _0x3a30ff=_0x3e30a1['getDifference'](_0x4378de);this['_suggestionsConversion']['isBlockAttribute'](_0x5b74f8)&&'insertion'==_0x1303cb['type']&&0x0!=_0x3a30ff['length']||(_0x375afc['delete'](_0x3e30a1),_0x3a30ff['forEach'](_0x4610ab=>{_0x375afc['set'](_0x4610ab,_0x480750);}),'insertion'!=_0x1303cb['type']&&_0x4532fc!=_0x159f68&&_0x375afc['set'](_0x3e30a1['getIntersection'](_0x4378de),_0x4532fc));}const _0x2bd5df=[];for(const [_0x5aa9de,_0x503fdb]of _0x375afc){const _0x1629d5=_0x3469da(),_0x3a7622={'key':_0x5b74f8,'oldValue':_0x503fdb,'newValue':_0x159f68};_0x5b74f8['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':_0x5b74f8});const _0x2ae713=('attribute:'+_0x5b74f8+'|'+dn({'newValue':_0x159f68}))['substring'](0x0,0x3c),_0x20a422=this['_setSuggestionData']({'id':_0x1629d5,'type':_0x2ae713,'data':_0x3a7622,'createdAt':new Date(),'authorId':_0xb193ad,'attributes':_0x14e8cc});_0x2bd5df['push'](_0x20a422),this['_addSuggestionMarker'](_0x2ae713,_0x1629d5,_0xb193ad,_0x5aa9de);}return _0x2bd5df;}enableDefaultAttributesIntegration(_0x4ea494){this['enableCommand'](_0x4ea494,(_0x19914b,..._0x7dad0d)=>{this['recordAttributeChanges'](()=>{_0x19914b(..._0x7dad0d);});});}startTrackingSession(_0x51f3f1){return this['_trackingSessionId']=void 0x0!==_0x51f3f1?_0x51f3f1:_0x3469da(),this['_trackingSessionId'];}_getAttributeKey(_0x440ed3){return'attribute'==_0x440ed3['type']?In(_0x440ed3['subType']):null;}_applyOperationsAsSuggestions(_0x1d2c6c){if(0x0==_0x1d2c6c['length'])return;const _0x222fa1=this['editor'],_0xf0ee1c=_0x222fa1['plugins']['get'](_0x1410f4),_0x53e80d=[],_0x128b38=_0x5d1682=>{const _0x386284=_0x5d1682['_aiSource'];return _0x386284?{'@ai':{'type':_0x386284}}:{};},_0x5ee183=(_0x229ac3,_0x42e7e2,_0x500f22)=>{for(let _0x4b6477=_0x42e7e2;_0x4b6477<_0x229ac3['operations']['length'];_0x4b6477++){const _0x5e7c25=_0x229ac3['operations'][_0x4b6477];'marker'===_0x5e7c25['type']&&(_0x5e7c25['_aiSource']=_0x500f22);}};_0x222fa1['model']['change'](_0x17d6ca=>{for(let _0x7d2784=0x0;_0x7d2784<_0x1d2c6c['length'];_0x7d2784++){const _0xb55bbd=_0x1d2c6c[_0x7d2784],_0xdba436=_0xb55bbd['_aiSource'],_0x2a03af=_0x17d6ca['batch']['operations']['length'];if(_0xb55bbd['baseVersion']=_0x222fa1['model']['document']['version'],_0xb55bbd['isDocumentOperation']=!0x0,!_0xc6b88a(_0xb55bbd)){if(_0xf0ee1c['isMarkedRemoveOperation'](_0xb55bbd)){const _0x259a37=_0x96f029(_0xb55bbd['newRange'],_0x222fa1['model']);_0x53e80d['unshift']({'range':ot['fromRange'](_0x259a37),'opAttributes':_0x128b38(_0xb55bbd),'aiSource':_0xdba436});}else{switch(_0xb55bbd['type']){case'rename':{const _0x5f1283=_0xb55bbd['oldName'],_0x3b4eef=_0xb55bbd['newName'];if(_0x5f1283==_0x3b4eef)break;_0x17d6ca['batch']['addOperation'](_0xb55bbd),_0x222fa1['model']['applyOperation'](_0xb55bbd);const _0x5b5e26='$elementName',_0x49658f=_0xb55bbd['position'],_0x8ad953=_0x222fa1['model']['createRange'](_0x49658f,_0x222fa1['model']['createPositionAt'](_0x49658f['nodeAfter'],'end'));this['markAttributeChange'](_0x8ad953,_0x5b5e26,_0x5f1283,_0x3b4eef,{..._0x128b38(_0xb55bbd),'groupId':_0x3469da()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x52fa8d=_0xb55bbd['oldValue'],_0x56cee6=_0xb55bbd['newValue'];if(_0x52fa8d==_0x56cee6)break;_0x17d6ca['batch']['addOperation'](_0xb55bbd),_0x222fa1['model']['applyOperation'](_0xb55bbd);const _0x53b092=_0xb55bbd['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x53b092))break;const _0x54184e=_0x96f029(_0xb55bbd['range'],_0x222fa1['model']);this['markAttributeChange'](_0x54184e,_0x53b092,_0x52fa8d,_0x56cee6,{..._0x128b38(_0xb55bbd),'groupId':_0x3469da()});break;}case'insert':{if(_0x17d6ca['batch']['addOperation'](_0xb55bbd),_0x222fa1['model']['applyOperation'](_0xb55bbd),_0x1d2c6c[_0x7d2784+0x1]&&'move'==_0x1d2c6c[_0x7d2784+0x1]['type'])break;const _0x35293a=_0xb55bbd['position'],_0x54a37d=_0xb55bbd['howMany'],_0x5e5be6=_0x96f029(_0x222fa1['model']['createRange'](_0x35293a,_0x35293a['getShiftedBy'](_0x54a37d)),_0x222fa1['model']);this['markInsertion'](_0x5e5be6,null,{..._0x128b38(_0xb55bbd)});break;}case'split':{_0x17d6ca['batch']['addOperation'](_0xb55bbd),_0x222fa1['model']['applyOperation'](_0xb55bbd);const _0x4ed259=_0xb55bbd['splitPosition'],_0x44d7fd=_0xb55bbd['moveTargetPosition'],_0x2e7fce=_0x222fa1['model']['createRange'](_0x4ed259,_0x44d7fd);this['markInsertion'](_0x2e7fce,null,{..._0x128b38(_0xb55bbd)});break;}case'move':case'remove':_0x17d6ca['batch']['addOperation'](_0xb55bbd),_0x222fa1['model']['applyOperation'](_0xb55bbd);}_0xdba436&&_0x5ee183(_0x17d6ca['batch'],_0x2a03af,_0xdba436);}}}for(const {range:_0x43a5d5,opAttributes:_0x922c37,aiSource:_0x134039}of _0x53e80d){const _0x7b0165=_0x17d6ca['batch']['operations']['length'];_0x43a5d5['detach'](),this['markDeletion'](_0x43a5d5,null,{..._0x922c37}),_0x134039&&_0x5ee183(_0x17d6ca['batch'],_0x7b0165,_0x134039);}});}_setSuggestionRange(_0x14fd50,_0x15630b){const _0x328687=_0x14fd50['getFirstMarker']();this['_model']['change'](_0x4701f4=>{_0x4701f4['updateMarker'](_0x328687,{'range':_0x15630b});});}_addThreadToSuggestion(_0x524061){const _0x5a9a28=_0x524061['id'],_0xb576b2=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5a9a28)||this['_commentsRepository']['addCommentThread']({'channelId':_0xb576b2,'threadId':_0x5a9a28,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x397bbc=this['_commentsRepository']['getCommentThread'](_0x5a9a28);_0x397bbc['unbind']('isRemovable'),_0x397bbc['isRemovable']=!0x1,_0x524061['commentThread']=_0x397bbc;}_checkSuggestionCorrectness(_0x168179,_0x1076e8,_0x55b920,_0x55aa36){if(_0x168179['type']!=_0x1076e8||_0x168179['subType']!=_0x55b920||_0x168179['creator']['id']!=_0x55aa36)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x11ddd9('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x322152,_0x34db3a){const _0x523cf0=_0x322152['getFirstRange']();if(_0x34db3a['isEqual'](_0x523cf0))_0x322152['removeMarkers']();else{if(_0x523cf0['containsRange'](_0x34db3a)){const _0x43b8bd=this['_model']['createPositionAt'](_0x34db3a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x322152,this['_model']['createRange'](_0x523cf0['start'],_0x43b8bd));const _0x3b2cca=_0x3469da(),_0x45892e=_0x322152['creator']['id'],_0x8706b5=_0x322152['type']+':'+_0x322152['subType'];this['_setSuggestionData']({'id':_0x3b2cca,'type':_0x8706b5,'createdAt':new Date(),'authorId':_0x45892e,'data':_0x322152['data'],'attributes':_0x322152['attributes']});const _0x4c982c=this['_model']['createPositionAt'](_0x34db3a['end']['parent'],'after'),_0xe7422d=this['_model']['createRange'](_0x4c982c,_0x523cf0['end']);this['_addSuggestionMarker'](_0x8706b5,_0x3b2cca,_0x45892e,_0xe7422d);}else{if(_0x523cf0['containsPosition'](_0x34db3a['start'])){const _0x51785a=this['_model']['createPositionAt'](_0x34db3a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x322152,this['_model']['createRange'](_0x523cf0['start'],_0x51785a));}else{const _0x578502=this['_model']['createPositionAt'](_0x34db3a['end']['parent'],'after');this['_setSuggestionRange'](_0x322152,this['_model']['createRange'](_0x578502,_0x523cf0['end']));}}}}_rangeIsInLocalUserInsertion(_0x1a52d5){for(const {suggestion:_0x206501,meta:_0x3d7983}of this['_findSuggestions'](_0x1a52d5,'insertion')){if(!_0x3d7983['isOwn'])continue;const _0x42dffa=_0x206501['getRanges']();for(const _0xc2c7c7 of _0x42dffa)if(!_0x1a52d5['getDifference'](_0xc2c7c7)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x3a014d){return this['editor']['plugins']['get']('Users')['getUser'](_0x3a014d);}_getExternalAuthor(_0xfcfde8){const _0x5ab86e=this['editor']['plugins']['get']('Users'),_0xdbf284=_0x550da2('external:'+_0xfcfde8),_0x393683=_0x5ab86e['getUser'](_0xdbf284);return _0x393683||_0x5ab86e['addUser']({'id':_0xdbf284,'name':_0xfcfde8});}_createSuggestion(_0x3538ec,_0x2f8243,_0x5057b9,_0x3d2e1d,_0x3b7b2d,_0x516529){const _0x292d5b=this['_getAuthorFromId'](_0x3d2e1d);if(!_0x292d5b)throw new _0x11ddd9('track-changes-user-not-found',this,{'authorId':_0x3d2e1d,'suggestionId':_0x5057b9});const _0x4a8220=this['_suggestionFactory']['buildSuggestion'](_0x3538ec,_0x2f8243,_0x5057b9,_0x292d5b,_0x3b7b2d,_0x186fc5=>{this['_updateSuggestionData'](_0x5057b9,{'attributes':_0x186fc5});const _0x11c12f=this['getSuggestion'](_0x5057b9);this['_joinWithAdjacentSuggestions'](new Set([_0x11c12f])),this['_refreshSuggestionsChain'](new Set([_0x11c12f]));},_0x516529);return this['listenTo'](_0x4a8220,'accept',()=>{this['_updateSuggestionData'](_0x5057b9,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4a8220,'discard',()=>{this['_updateSuggestionData'](_0x5057b9,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5057b9,_0x4a8220),this['_suggestionState']['set'](_0x4a8220,'notReady'),_0x4a8220;}_breakSuggestionMarker(_0x5e04d9,_0x62cb2e,_0x2ce1c3){const _0x37f57b=_0x5e04d9['getFirstRange'](),_0x2626d0=_0x37f57b['start'],_0x3ad8d0=_0x37f57b['end'];this['_setSuggestionRange'](_0x5e04d9,this['_model']['createRange'](_0x2626d0,_0x62cb2e));const _0x120bb3=_0x3469da(),_0x1de419=_0x5e04d9['creator']['id'],_0x5bb4cd=_0x5e04d9['type']+(_0x5e04d9['subType']?':'+_0x5e04d9['subType']:'');this['_setSuggestionData']({'id':_0x120bb3,'type':_0x5bb4cd,'createdAt':new Date(),'authorId':_0x1de419,'originalSuggestionId':_0x5e04d9['_originalSuggestionId']||_0x5e04d9['id'],'attributes':_0x5e04d9['attributes'],'data':_0x5e04d9['data']});const _0x2de682=this['_getAttributeKey'](_0x5e04d9);('formatBlock'==_0x5e04d9['type']||_0x2de682&&this['_suggestionsConversion']['isBlockAttribute'](_0x2de682))&&(_0x2ce1c3=this['_model']['createPositionBefore'](_0x2ce1c3['parent'])),this['_addSuggestionMarker'](_0x5bb4cd,_0x120bb3,_0x1de419,this['_model']['createRange'](_0x2ce1c3,_0x3ad8d0));}_findSuggestions(_0x35db97,_0x324222=null){const _0x3247e9=[],_0x3360b6=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x35db97)||(_0x35db97=[_0x35db97]);for(const _0x44cd1b of this['getSuggestions']()){if(!_0x44cd1b['isInContent'])continue;if(_0x324222&&_0x44cd1b['type']!=_0x324222)continue;let _0x49cbb4=!0x1;for(const _0x8b261f of _0x44cd1b['getRanges']()){for(const _0x3d9def of _0x35db97){const _0x2b55ef=_0x3d9def['start']['isEqual'](_0x8b261f['end'])||_0x3d9def['end']['isEqual'](_0x8b261f['start']);if(_0x2b55ef||_0x3d9def['getIntersection'](_0x8b261f)){const _0x27f9a8=_0x3d9def['containsRange'](_0x8b261f)&&cn(this['_model']['schema'],_0x8b261f['start'],_0x3d9def),_0x4ba93c=_0x8b261f['containsRange'](_0x3d9def)&&cn(this['_model']['schema'],_0x3d9def['start'],_0x8b261f);_0x3247e9['push']({'suggestion':_0x44cd1b,'meta':{'isOwn':_0x3360b6==_0x44cd1b['author'],'isNextTo':_0x2b55ef,'isInsideObject':_0x27f9a8,'containsRangeInObject':_0x4ba93c}}),_0x49cbb4=!0x0;break;}}if(_0x49cbb4)break;}}return _0x3247e9;}_addSuggestionMarker(_0x23789c,_0x1341a5,_0xb34adc,_0x17f62d,_0x3aecbe){this['_model']['change'](_0x4dd38c=>{let _0x2e1a56='suggestion:'+_0x23789c+':'+_0x1341a5+':'+_0xb34adc;_0x3aecbe&&(_0x2e1a56=_0x2e1a56+':'+_0x3aecbe),_0x4dd38c['addMarker'](_0x2e1a56,{'range':_0x17f62d,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x388ddb){const _0x43c3bc=_0x388ddb['previous'],_0x4de0d3=_0x388ddb['next'];_0x388ddb['previous']=null,_0x388ddb['next']=null,null!=_0x43c3bc&&_0x43c3bc['next']==_0x388ddb&&(_0x43c3bc['next']=_0x4de0d3),null!=_0x4de0d3&&_0x4de0d3['previous']==_0x388ddb&&(_0x4de0d3['previous']=_0x43c3bc),'ready'==this['_suggestionState']['get'](_0x388ddb)&&(this['_suggestionState']['set'](_0x388ddb,'removed'),this['fire']('suggestionUnloaded',_0x388ddb,_0x43c3bc,_0x4de0d3));}_setSuggestionData(_0x2bd53f){const _0x48b027=_0x2bd53f['id'],_0x502280=this['addSuggestionData'](_0x2bd53f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3c52ec=this['editor']['plugins']['get']('PendingActions'),_0x5498e4=_0x502280['hasComments'],_0xddf87e=_0x502280['subType']?_0x502280['type']+':'+_0x502280['subType']:_0x502280['type'],_0x32e002=this['editor']['locale'],_0x437a5b=_0x3c52ec['add'](Ot(_0x32e002,'PENDING_ACTION_SUGGESTION')),_0x22ff5a={'id':_0x48b027,'type':_0xddf87e,'hasComments':_0x5498e4,'data':_0x2bd53f['data']||null,'originalSuggestionId':_0x2bd53f['originalSuggestionId']||null,'attributes':_0x502280['attributes']};this['_adapter']['addSuggestion'](_0x22ff5a)['then'](_0x5be13b=>{_0x502280['_saved']=!0x0,_0x3c52ec['remove'](_0x437a5b),_0x5be13b&&_0x5be13b['createdAt']&&(this['_suggestions']['get'](_0x48b027)['createdAt']=_0x5be13b['createdAt']);})['catch'](_0x380826=>{throw _0xf977c6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x502280['discard']();}),_0x502280['stopListening'](),this['_suggestions']['delete'](_0x502280['id']),this['_suggestionState']['delete'](_0x502280),_0x380826;});}return _0x502280;}_updateSuggestionData(_0x377997,_0x1e920d){const _0x5b686a=this['editor']['plugins']['get']('PendingActions'),_0x450e94=this['getSuggestion'](_0x377997);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x450e94['_saved']){const _0x33f947=_0x5b686a['add'](Ot(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x377997,_0x1e920d)['then'](()=>{_0x5b686a['remove'](_0x33f947);});}else _0x450e94['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x377997,_0x1e920d);});}}_getSuggestionData(_0x12aafd){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x11ddd9('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x12aafd);}_handleNewSuggestionMarker(_0x4c599){const {id:_0x14a656,type:_0x66fc5e,subType:_0x3c1a53,authorId:_0x2e5c0e}=et(_0x4c599),_0x5c2f84=this['_suggestions']['get'](_0x14a656)||this['_createSuggestion'](_0x66fc5e,_0x3c1a53,_0x14a656,_0x2e5c0e,{});switch(this['_checkSuggestionCorrectness'](_0x5c2f84,_0x66fc5e,_0x3c1a53,_0x2e5c0e),this['_suggestionState']['get'](_0x5c2f84)){case'notReady':this['_getSuggestionData'](_0x14a656)['then'](_0x52fac0=>{let _0x48749c=Promise['resolve']();_0x52fac0['hasComments']&&(_0x48749c=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x14a656})),_0x48749c['then'](()=>{this['addSuggestionData'](_0x52fac0)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5c2f84,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x14a656,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5c2f84,'ready'),this['fire']('suggestionLoaded',_0x5c2f84);break;case'ready':this['fire']('suggestionChanged',_0x5c2f84);}return _0x5c2f84['addMarkerName'](_0x4c599),_0x5c2f84;}_refreshSuggestionsChain(_0x1f7316){const _0xd6e517=Array['from'](_0x1f7316),_0x42deca=_0xd6e517['filter'](_0x3e965a=>'attribute'==_0x3e965a['type']);this['_refreshAttributeSuggestionsChain'](_0x42deca);const _0x3c29e3=_0xd6e517['filter'](_0x295ef0=>!_0x295ef0['isMultiRange']&&'attribute'!=_0x295ef0['type']),_0x5d6ac2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x371f7f=>!_0x371f7f['isMultiRange']&&'attribute'!=_0x371f7f['type']),_0x3fae25=_0x5d6ac2['filter'](_0x563acc=>!_0x1f7316['has'](_0x563acc)),_0x57f404=new Map(_0x5d6ac2['map'](_0x224ce2=>[_0x224ce2,this['_suggestionFactory']['getSuggestionCallback'](_0x224ce2['type'],_0x224ce2['subType'],'chain')])),_0x1cee9c=new Map(_0x5d6ac2['map'](_0x4c484d=>[_0x4c484d,_0x4c484d['getFirstRange']()])),_0x4afcd6=new Set(),_0x362909=new Set();for(let _0x41c0e1=0x0;_0x41c0e1<_0x3c29e3['length'];_0x41c0e1++)_0x107544(_0x3c29e3[_0x41c0e1],_0x3c29e3,_0x41c0e1+0x1);for(let _0x7dfb91=0x0;_0x7dfb91<_0x3c29e3['length'];_0x7dfb91++)_0x107544(_0x3c29e3[_0x7dfb91],_0x3fae25,0x0);const _0x1952b8=new Set();for(let _0x448542=0x0;_0x448542<_0x3c29e3['length'];_0x448542++){const _0x58b830=_0x3c29e3[_0x448542];!_0x362909['has'](_0x58b830)&&_0x58b830['previous']&&(_0x1952b8['add'](_0x58b830['previous']),_0x58b830['previous']['next']===_0x58b830&&(_0x58b830['previous']['next']=null),_0x58b830['previous']=null),!_0x4afcd6['has'](_0x58b830)&&_0x58b830['next']&&(_0x1952b8['add'](_0x58b830['next']),_0x58b830['next']['previous']===_0x58b830&&(_0x58b830['next']['previous']=null),_0x58b830['next']=null);}function _0x107544(_0x3707d4,_0xb460ae,_0x4665){for(let _0x3e5b56=_0x4665;_0x3e5b56<_0xb460ae['length'];_0x3e5b56++){const _0xd6109d=_0x2cb470(_0x3707d4,_0xb460ae[_0x3e5b56]);_0xd6109d&&(_0xd6109d[0x0]['next']=_0xd6109d[0x1],_0xd6109d[0x1]['previous']=_0xd6109d[0x0],_0x4afcd6['add'](_0xd6109d[0x0]),_0x362909['add'](_0xd6109d[0x1]));}}function _0x2cb470(_0x361d13,_0x2e895f){if(_0x361d13['author']['id']!==_0x2e895f['author']['id'])return null;const _0x150795=_0x57f404['get'](_0x361d13)(_0x361d13,_0x2e895f,_0x1cee9c['get'](_0x361d13),_0x1cee9c['get'](_0x2e895f));return _0x150795&&_0x57f404['get'](_0x2e895f)(_0x361d13,_0x2e895f,_0x1cee9c['get'](_0x361d13),_0x1cee9c['get'](_0x2e895f))?_0x150795[0x1]['commentThread']&&_0x150795[0x1]['commentThread']['length']?null:_0x150795:null;}_0x1952b8['size']&&this['_refreshSuggestionsChain'](_0x1952b8);}_refreshAttributeSuggestionsChain(_0x5a0c2d){if(0x0==_0x5a0c2d['length'])return;const _0x3b4cd0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x29d583=>'attribute'==_0x29d583['type']&&_0x29d583['_isDataLoaded']),_0x9895c5=[],_0x25d8ae=new Map();for(const _0x63cb4e of _0x3b4cd0){const _0x506d95=_0x550da2(_0x63cb4e['attributes']);_0x25d8ae['has'](_0x506d95)||(_0x25d8ae['set'](_0x506d95,_0x9895c5['length']),_0x9895c5['push']([])),_0x9895c5[_0x25d8ae['get'](_0x506d95)]['push'](_0x63cb4e);}!(function(){_0x9895c5['sort']((_0x1acab2,_0x51bd9e)=>{const _0x18b8e6=_0x1acab2[0x0]['createdAt'],_0x11262c=_0x51bd9e[0x0]['createdAt'];return _0x18b8e6==_0x11262c?_0x1acab2[0x0]['attributes']['groupId']<_0x51bd9e[0x0]['attributes']['groupId']?-0x1:0x1:_0x18b8e6<_0x11262c?-0x1:0x1;});for(const _0x5b4e3f of _0x9895c5)_0x5b4e3f['sort']((_0x369db8,_0x26b5d1)=>_0x369db8['id']<_0x26b5d1['id']?-0x1:0x1);}());for(let _0x3b6df2=0x0;_0x3b6df2<_0x9895c5['length'];_0x3b6df2++){if(0x0==_0x9895c5[_0x3b6df2]['length'])continue;const _0x742548=[];for(let _0x4f82a8=_0x3b6df2+0x1;_0x4f82a8<_0x9895c5['length'];_0x4f82a8++)0x0!=_0x9895c5[_0x4f82a8]['length']&&_0x1164fe(_0x9895c5[_0x3b6df2],_0x9895c5[_0x4f82a8])&&_0x742548['push'](_0x4f82a8);for(const _0x51b6a2 of _0x742548)_0x9895c5[_0x3b6df2]=_0x9895c5[_0x3b6df2]['concat'](_0x9895c5[_0x51b6a2]),_0x9895c5[_0x51b6a2]=[];}for(const _0x2006fd of _0x9895c5)for(let _0xb122ad=0x0;_0xb122ad<_0x2006fd['length'];_0xb122ad++){const _0x4a4604=_0x2006fd[_0xb122ad+0x1]||null;_0x2006fd[_0xb122ad]['next']!==_0x4a4604&&(_0x2006fd[_0xb122ad]['next']=_0x4a4604);}for(const _0x37d094 of _0x9895c5)for(let _0x530008=0x0;_0x530008<_0x37d094['length'];_0x530008++){const _0x22813b=_0x37d094[_0x530008-0x1]||null;_0x37d094[_0x530008]['previous']!==_0x22813b&&(_0x37d094[_0x530008]['previous']=_0x22813b);}function _0x1164fe(_0x352e47,_0x1de900){return(_0x352e47[0x0]['attributes']['groupId']===_0x1de900[0x0]['attributes']['groupId']||_0x352e47[0x0]['author']===_0x1de900[0x0]['author'])&&(!!function(_0x57364f,_0xe1ef8e){return!_0x57364f['hasComments']&&!_0xe1ef8e['hasComments']||(!_0x57364f['hasComments']||!_0xe1ef8e['hasComments'])&&(!!(_0x57364f['hasComments']&&_0xe1ef8e['createdAt']<_0x57364f['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0xe1ef8e['hasComments']&&_0x57364f['createdAt']<_0xe1ef8e['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x352e47[0x0],_0x1de900[0x0])&&(!!lt(ut(_0x352e47[0x0]['attributes'],['groupId','trackingSessionId']),ut(_0x1de900[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0x352e47[0x0]['attributes']['groupId']==_0x1de900[0x0]['attributes']['groupId']||_0x352e47[0x0]['attributes']['trackingSessionId']===_0x1de900[0x0]['attributes']['trackingSessionId']&&(!!_0x352e47['every'](_0x54c371=>_0x1de900['some'](_0x5e7108=>_0x54c371['getFirstRange']()['isEqual'](_0x5e7108['getFirstRange']())))&&_0x1de900['every'](_0x529989=>_0x352e47['some'](_0x56f878=>_0x529989['getFirstRange']()['isEqual'](_0x56f878['getFirstRange']())))))));}}_joinWithAdjacentSuggestions(_0x342a73){const _0x5de84b=Array['from'](_0x342a73),_0x4427e6=this['getSuggestions']({'skipNotAttached':!0x0}),_0x231d4a=_0x4427e6['filter'](_0x5b4c3c=>!_0x342a73['has'](_0x5b4c3c)),_0x5f1a26=new Map(_0x5de84b['map'](_0x5b967e=>[_0x5b967e,this['_suggestionFactory']['getSuggestionCallback'](_0x5b967e['type'],_0x5b967e['subType'],'join')])),_0x38756d=new Map(_0x4427e6['map'](_0x47d1fa=>[_0x47d1fa,_0x47d1fa['getRanges']()]));for(let _0x3770ba=0x0;_0x3770ba<_0x5de84b['length'];_0x3770ba++)if(_0x788257(this,_0x5de84b[_0x3770ba],_0x5de84b,_0x3770ba+0x1))return!0x0;for(let _0xdb7542=0x0;_0xdb7542<_0x5de84b['length'];_0xdb7542++)if(_0x788257(this,_0x5de84b[_0xdb7542],_0x231d4a,0x0))return!0x0;return!0x1;function _0x788257(_0x15bf5c,_0x1a7761,_0x15d5ab,_0x23ddff){for(let _0x2ee95b=_0x23ddff;_0x2ee95b<_0x15d5ab['length'];_0x2ee95b++){const _0x8b7638=_0x15d5ab[_0x2ee95b];if(_0x8b7638['type']!==_0x1a7761['type']||_0x8b7638['author']['id']!==_0x1a7761['author']['id']||_0x8b7638['subType']!==_0x1a7761['subType'])continue;if(!_n(_0x1a7761,_0x8b7638))continue;if('attribute'==_0x1a7761['type']&&_0x1a7761['data']['oldValue']!=_0x8b7638['data']['oldValue'])continue;if('attribute'==_0x1a7761['type']&&_0x15bf5c['_suggestionsConversion']['isBlockAttribute'](_0x1a7761['data']['key']))continue;if('formatBlock'==_0x1a7761['type']){const _0x404f71=_0x15bf5c['editor']['model'],_0x7d23e9=_0x1a7761['getContainedElement']();if(_0x7d23e9&&(_0x404f71['schema']['isObject'](_0x7d23e9)||_0x404f71['schema']['isLimit'](_0x7d23e9)))continue;}const _0x4ac441=_0x5f1a26['get'](_0x1a7761),_0x5421b5=_0x38756d['get'](_0x1a7761),_0x4f4d17=_0x38756d['get'](_0x8b7638),_0x2c7c43=_0x1a7761['commentThread']&&_0x1a7761['commentThread']['length'],_0x353d11=_0x8b7638['commentThread']&&_0x8b7638['commentThread']['length'];if(!_0x2c7c43&&_0x4ac441(_0x4f4d17,_0x5421b5))return _0x15bf5c['_joinSuggestions'](_0x8b7638,_0x1a7761),_0x38756d['delete'](_0x1a7761),!0x0;if(!_0x353d11&&_0x4ac441(_0x5421b5,_0x4f4d17))return _0x15bf5c['_joinSuggestions'](_0x1a7761,_0x8b7638),_0x38756d['delete'](_0x8b7638),!0x0;}return!0x1;}}_joinSuggestions(_0x2ce1b6,_0x1527be){if(_0x2ce1b6['isMultiRange']){for(const _0x581d89 of _0x1527be['getRanges']())_0x2ce1b6['addRange'](_0x581d89);}else{const _0x10e88e=_0x1527be['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2ce1b6,this['_model']['createRange'](_0x2ce1b6['getFirstRange']()['start'],_0x10e88e));}_0x1527be['removeMarkers']();}_getMarkerAnnouncementText(_0x241dc0,_0xf6671d,_0x452415){const _0x851546=_0x241dc0['startsWith']('format')||_0x241dc0['startsWith']('attribute')?'FORMATTING':_0x241dc0['toUpperCase']();return Ot(this['editor']['locale'],_0xf6671d+'_'+_0x851546+'_SUGGESTION_ANNOUNCEMENT',_0x452415);}_initAriaMarkerChangeAnnouncements(){const _0x95833f=this['editor'];if(!_0x95833f['ui'])return;const {ariaLiveAnnouncer:_0x5cb8d5}=_0x95833f['ui'];nt(this['_model'],({left:_0x2e6054,entered:_0x2620b7})=>{for(const _0x524d1e of _0x2e6054){const {group:_0x2dc673,type:_0x3b061f}=et(_0x524d1e['name']);if('suggestion'===_0x2dc673){_0x5cb8d5['announce'](this['_getMarkerAnnouncementText'](_0x3b061f,'LEAVE'));break;}}for(const _0x4a27dc of _0x2620b7){const {group:_0x5bf2d0,type:_0xfe954e}=et(_0x4a27dc['name']);if('suggestion'===_0x5bf2d0){_0x5cb8d5['announce'](this['_getMarkerAnnouncementText'](_0xfe954e,'ENTER',_0x152bff(_0x512569)));break;}}});}_processAttributeChanges(_0x3143ab){if(this['_recordAttributeSuggestions'])return!0x1;const _0x54722d=this['editor'],_0x56be52=_0x54722d['model']['document']['differ']['getChanges']();if(0x0==_0x56be52['length'])return!0x1;const _0x53f983=[],_0x1cbe21=_0x56be52['filter'](_0x9df6=>'attribute'==_0x9df6['type']),_0x1175f5=_0x56be52['filter'](_0x5b6640=>'insert'==_0x5b6640['type']&&'$text'!=_0x5b6640['name']),_0x1b6332=_0x56be52['filter'](_0xe2b6e3=>'remove'==_0xe2b6e3['type']&&'$text'!=_0xe2b6e3['name']);for(const _0x402a2d of _0x1cbe21)_0x53f983['push']({'key':_0x402a2d['attributeKey'],'newValue':_0x402a2d['attributeNewValue'],'oldValue':_0x402a2d['attributeOldValue'],'range':mn(_0x402a2d['range'],_0x54722d['model'])});for(const _0x3a7862 of _0x1175f5){const _0x1db1b5=_0x1b6332['find'](_0x1caed8=>_0x1caed8['position']['isEqual'](_0x3a7862['position']));_0x1db1b5&&_0x53f983['push']({'key':rn,'newValue':_0x3a7862['name'],'oldValue':_0x1db1b5['name'],'range':_0x54722d['model']['createRangeOn'](_0x3a7862['position']['nodeAfter'])});}return 0x0!=_0x53f983['length']&&this['_reduceExistingSuggestions'](_0x3143ab,_0x53f983);}_processAttributeSuggestions(_0x402338){let _0x52799b=!0x1;const _0x30d8dc=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x52c6f4=>_0x52c6f4['data']['newRange']&&_0x52c6f4['name']['startsWith']('suggestion:attribute:'));for(const _0x41c6b7 of _0x30d8dc){const {subType:_0x9a5868,id:_0xfdec82}=et(_0x41c6b7['name']),_0xd49f0=_0x9a5868['split']('|')[0x0];for(const _0x307a12 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x307a12['id']!=_0xfdec82&&'attribute'==_0x307a12['type']&&_0x307a12['data']&&_0x307a12['data']['key']==_0xd49f0&&_0x307a12['getFirstRange']()['isIntersecting'](_0x41c6b7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x307a12,_0x41c6b7['data']['newRange'],_0x402338),_0x52799b=!0x0);}return _0x52799b;}recordAttributeChanges(_0x2e589b){this['_recordAttributeSuggestions']=!0x0,_0x2e589b();}_reduceExistingSuggestions(_0x40e049,_0x5766f9){if(0x0==_0x5766f9['length'])return!0x1;let _0xce3e70=!0x1;for(const _0xfa761 of _0x5766f9){const _0x10229f=this['_findSuggestions'](_0xfa761['range'],'attribute')['filter'](_0xc7330e=>!_0xc7330e['meta']['isNextTo'])['map'](_0x219617=>_0x219617['suggestion']),_0xf0a8db=_0x550da2({'newValue':_0xfa761['newValue']});_0x10229f['filter'](_0x2fb42c=>{const [_0x2f4641,_0x4e4a0c]=_0x2fb42c['subType']['split']('|');return _0x2f4641==_0xfa761['key']&&_0x4e4a0c!=_0xf0a8db;})['forEach'](_0x5c9b7b=>{this['_reduceSuggestionAttributeRange'](_0x5c9b7b,_0xfa761['range'],_0x40e049),_0xce3e70=!0x0;});}return _0xce3e70;}_reduceSuggestionAttributeRange(_0x6d2a6f,_0x100803,_0x165c3c){const _0x1a6b7e=_0x6d2a6f['getFirstRange']()['getDifference'](_0x100803);0x0!==_0x1a6b7e['length']?0x1!==_0x1a6b7e['length']?this['_breakSuggestionMarker'](_0x6d2a6f,_0x100803['start'],_0x100803['end']):this['_setSuggestionRange'](_0x6d2a6f,_0x1a6b7e[0x0]):_0x165c3c['removeMarker'](_0x6d2a6f['getFirstMarker']());}},an=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x773039){this['_editor']=_0x773039,this['_model']=_0x773039['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x5195ed,_0x1e1316,_0x1d5e65,_0x2a6e74,_0x2beea8,_0x3eb52d,_0x26ede7){return new Mt(this['_model'],{'type':_0x5195ed,'subType':_0x1e1316,'id':_0x1d5e65,'originalSuggestionId':_0x26ede7,'author':_0x2a6e74,'creator':_0x2a6e74,'attributes':_0x2beea8,'onAttributesChange':_0x3eb52d,'onAccept':(..._0x567ca9)=>this['getSuggestionCallback'](_0x5195ed,_0x1e1316,'accept')(..._0x567ca9),'onDiscard':(..._0x1918d7)=>this['getSuggestionCallback'](_0x5195ed,_0x1e1316,'discard')(..._0x1918d7)});}registerCustomCallback(_0x2472f8,_0x3c002d,_0x19d176,_0x4aadb7){const _0x1fa2a9=_0x2472f8+':'+_0x3c002d+':'+_0x19d176;this['_customCallbacks']['set'](_0x1fa2a9,_0x4aadb7);}getSuggestionCallback(_0x409a93,_0x20aa3f,_0x4ebaf3){const _0x1d5cc3=_0x409a93+':'+_0x20aa3f+':'+_0x4ebaf3;return this['_customCallbacks']['get'](_0x1d5cc3)||this['_defaultCallbacks']['get'](_0x409a93+':'+_0x4ebaf3);}_registerDefaultCallbacks(){const _0x5e01a5=()=>!0x1,_0x38bccf=_0x182ada=>{_0x182ada['sort']((_0x5586d3,_0x43a4c9)=>_0x5586d3['start']['isBefore'](_0x43a4c9['start'])?0x1:-0x1),this['_model']['change'](_0x2ef5c1=>{for(const _0x35dc6b of _0x182ada){let _0x53904a;_0x53904a=_0x35dc6b['end']['isAtEnd']&&_0x35dc6b['end']['parent']==_0x35dc6b['start']['nodeAfter']?_0x2ef5c1['createSelection'](_0x35dc6b['start']['nodeAfter'],'on'):_0x2ef5c1['createSelection'](_0x35dc6b),this['_model']['deleteContent'](_0x53904a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x9f5987=(_0x13bba2,_0x3ce5ac)=>{_0x3ce5ac&&this['_model']['change'](_0x42a239=>{const {commandName:_0x4df7db,commandParams:_0x5b1693=[]}=_0x3ce5ac,_0x4029ca=_0x13bba2['map'](_0x1fa49e=>(ln(_0x1fa49e)&&(_0x1fa49e=this['_model']['createRange'](_0x1fa49e['end'])),_0x1fa49e))['filter'](_0x50b8d8=>'$graveyard'!==_0x50b8d8['root']['rootName']);if(_0x4029ca['length']<0x1)return;const _0x30822d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x177941=>ot['fromRange'](_0x177941));_0x42a239['setSelection'](_0x4029ca);for(const _0x4232c7 of this['_editor']['commands']['commands']())_0x4232c7['refresh']();_0x5b1693['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4df7db,..._0x5b1693);const _0x25495e=_0x30822d['filter'](_0x976d8b=>'$graveyard'!=_0x976d8b['root']['rootName']);_0x25495e['length']>0x0&&_0x42a239['setSelection'](_0x25495e);for(const _0x2f6832 of _0x30822d)_0x2f6832['detach']();});},_0x3825d4=(_0xcc84bc,_0x2a2315)=>0x1==_0xcc84bc['length']&&0x1==_0x2a2315['length']&&_0xcc84bc[0x0]['end']['isEqual'](_0x2a2315[0x0]['start']),_0x57c970=(_0x2a05e0,_0x12ae52,_0x421387,_0x33527f)=>Tn(_0x2a05e0,_0x12ae52,_0x421387,_0x33527f)?[_0x2a05e0,_0x12ae52]:Tn(_0x12ae52,_0x2a05e0,_0x33527f,_0x421387)?[_0x12ae52,_0x2a05e0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5e01a5),this['_defaultCallbacks']['set']('insertion:discard',_0x38bccf),this['_defaultCallbacks']['set']('insertion:join',_0x3825d4),this['_defaultCallbacks']['set']('insertion:chain',_0x57c970),this['_defaultCallbacks']['set']('deletion:accept',_0x38bccf),this['_defaultCallbacks']['set']('deletion:discard',_0x5e01a5),this['_defaultCallbacks']['set']('deletion:join',_0x3825d4),this['_defaultCallbacks']['set']('deletion:chain',_0x57c970),this['_defaultCallbacks']['set']('formatInline:accept',_0x9f5987),this['_defaultCallbacks']['set']('formatInline:discard',_0x5e01a5),this['_defaultCallbacks']['set']('formatInline:join',_0x3825d4),this['_defaultCallbacks']['set']('formatInline:chain',_0x5e01a5),this['_defaultCallbacks']['set']('formatBlock:accept',_0x9f5987),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5e01a5),this['_defaultCallbacks']['set']('formatBlock:join',_0x3825d4),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5e01a5),this['_defaultCallbacks']['set']('attribute:accept',_0x5e01a5),this['_defaultCallbacks']['set']('attribute:discard',(_0x20922d,_0x3780e8)=>{if(!_0x3780e8)return;const _0x4f576b=this['_editor']['plugins']['get'](_0x12a1f4);this['_model']['change'](_0x3c8145=>{if('$elementName'==_0x3780e8['key'])for(const _0x4aaf53 of _0x20922d){const _0x2d2a32=_0x4aaf53['start']['nodeAfter'],_0x1e8d98=_0x3780e8['oldValue'];_0x3c8145['rename'](_0x2d2a32,_0x1e8d98);}else{if(_0x4f576b['isBlockAttribute'](_0x3780e8['key'])){for(const _0x3c2a3a of _0x20922d)void 0x0!==_0x3780e8['oldValue']?_0x3c8145['setAttribute'](_0x3780e8['key'],_0x3780e8['oldValue'],_0x3c2a3a['start']['nodeAfter']):_0x3c8145['removeAttribute'](_0x3780e8['key'],_0x3c2a3a['start']['nodeAfter']);}else{for(const _0x4bd7c7 of _0x20922d)_0x3780e8['oldValue']?_0x3c8145['setAttribute'](_0x3780e8['key'],_0x3780e8['oldValue'],_0x4bd7c7):_0x3c8145['removeAttribute'](_0x3780e8['key'],_0x4bd7c7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3825d4);}};function cn(_0x9ee975,_0x5e0b0,_0x443433){for(const _0x28f199 of _0x5e0b0['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x28f199['root']==_0x28f199)return!0x1;if(!_0x443433['containsItem'](_0x28f199))return!0x1;if(_0x9ee975['isObject'](_0x28f199)||_0x9ee975['isLimit'](_0x28f199))return!0x0;}return!0x1;}function ln(_0x4e7182){return _0x4e7182['end']['parent']==_0x4e7182['start']['nodeAfter']&&_0x4e7182['end']['isAtStart'];}function un(_0x1b2d46,_0x520456,_0x179fc3,_0x3a64b3){const _0x901d1=_0x1f04b0=>!_0x1f04b0['item']['is']('$textProxy')&&!_0x3a64b3['isObject'](_0x1f04b0['item']),_0x449ed6=_0x1b2d46['start']['getLastMatchingPosition'](_0x901d1),_0x28c3df=_0x1b2d46['end']['getLastMatchingPosition'](_0x901d1,{'direction':'backward'});return(!_0x1b2d46['start']['isEqual'](_0x449ed6)||!_0x1b2d46['end']['isEqual'](_0x28c3df))&&(_0x449ed6['isBefore'](_0x28c3df)?_0x179fc3['updateMarker'](_0x520456,{'range':_0x179fc3['createRange'](_0x449ed6,_0x28c3df)}):_0x179fc3['removeMarker'](_0x520456),!0x0);}function dn(_0x4f9b2e){return _0x550da2(_0x4f9b2e);}function hn(_0x3524dd){const _0xd72731=_0x3524dd['start']['nodeAfter'];return _0xd72731&&_0xd72731['is']('element');}function gn(_0x3793ea){return ln(_0x3793ea)||function(_0x2413c6){return _0x2413c6['start']['parent']==_0x2413c6['end']['nodeBefore']&&_0x2413c6['start']['isAtEnd'];}(_0x3793ea);}function fn(_0x5ab244,_0x4585c7){try{const _0x5b8cff=_0x5ab244['getRange']();for(const _0x4bd179 of _0x4585c7)if(_0x5ab244!==_0x4bd179&&_0x5b8cff&&_0x5b8cff['isIntersecting'](_0x4bd179['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function mn(_0x32162a,_0x4ee729){return null==_0x32162a['end']['nodeBefore']&&_0x32162a['end']['parent']==_0x32162a['start']['nodeAfter']?En(_0x32162a['start']['nodeAfter'],_0x4ee729):_0x32162a;}function En(_0x574df1,_0x584e3a){const _0x41be4a=_0x584e3a['schema']['isObject'](_0x574df1)||_0x584e3a['schema']['isSelectable'](_0x574df1);return _0x584e3a['createRange'](_0x584e3a['createPositionAt'](_0x574df1,'before'),_0x41be4a?_0x584e3a['createPositionAfter'](_0x574df1):_0x584e3a['createPositionAt'](_0x574df1,'end'));}function Tn(_0x136157,_0x3b0762,_0x307887,_0x514fe2){return!!_n(_0x136157,_0x3b0762)&&_0x307887['end']['isEqual'](_0x514fe2['start']);}function _n(_0x46e78a,_0x19ecd7){if(!_0x46e78a['_isDataLoaded']||!_0x19ecd7['_isDataLoaded'])return!0x1;const _0x45f031=new Set(Object['keys'](_0x46e78a['attributes'])),_0x2e50e0=new Set(Object['keys'](_0x19ecd7['attributes']));if(_0x45f031['delete']('groupId'),_0x2e50e0['delete']('groupId'),0x0==_0x45f031['size']&&0x0==_0x2e50e0['size'])return!0x0;if(_0x45f031['size']!=_0x2e50e0['size'])return!0x1;const _0x54ded6={..._0x46e78a['attributes']},_0x5213f5={..._0x19ecd7['attributes']};return delete _0x54ded6['groupId'],delete _0x5213f5['groupId'],JSON['stringify'](_0x54ded6)==JSON['stringify'](_0x5213f5);}function pn(_0x3be79b,_0x165f7f){const _0x4e5feb=Ln(_0x3be79b['attributes']),_0x366eda=Ln(_0x165f7f);if(!_0x3be79b['_isDataLoaded'])return!0x1;if(!lt(_0x4e5feb['@ai'],_0x366eda['@ai']))return!0x1;for(const _0x3a892e of Object['keys'](_0x366eda))if(!lt(_0x4e5feb[_0x3a892e],_0x366eda[_0x3a892e]))return!0x1;return!0x0;}function Ln(_0x30c5a6){const _0x2bad22=Object['assign']({},_0x30c5a6);return delete _0x2bad22['skipNestingCheck'],delete _0x2bad22['tablePasteChainId'],_0x2bad22;}function In(_0x367aa1){return _0x367aa1['split']('|')[0x0];}const An=/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x4d58c0();var bn=class extends An{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x2c7425,_0xcc7f96,_0x3cce5f,_0xbe5127){super(),this['model']=_0xcc7f96,this['view']=_0x3cce5f,this['commentThreadController']=_0xbe5127,this['_editor']=_0x2c7425,this['_acceptCommand']=_0x2c7425['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2c7425['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x53880f,_0x455c4d)=>_0x53880f||_0x455c4d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3482a3=>_0x3482a3&&this['_editor']['model']['canEditAt'](_0xcc7f96['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x163765=>_0x163765&&this['_editor']['model']['canEditAt'](_0xcc7f96['getRanges']())),this['_pendingAction']=null,_0x3cce5f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3cce5f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3cce5f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3cce5f,'change:isDirty',()=>{_0x3cce5f['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 _0x3b8051=Ot(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3b8051);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Cn=class extends _0x383d36{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1aabd4,_0xcc2a9c,_0x55e69a,_0x17775a){super(_0x1aabd4),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3853bf(_0x1aabd4,Ot(_0x1aabd4,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xcc2a9c['authoredAt']),this['bind']('authoredAt')['to'](_0xcc2a9c),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',_0xcc2a9c,'authoredAt',this,'descriptionParts',(_0x7faf5e,_0x572123,_0x516461)=>{const _0x42e3ea=_0x516461['map'](_0x2a7248=>It(_0x2a7248['content']))['join']('.\x20')+'.',_0x203d32=_0xcc2a9c['aiSource']&&'author'===_0x17775a['showAISource']?_0x17775a['aiAuthor']['name']:_0xcc2a9c['author']['name'],_0x514db5=Ot(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x7faf5e-0x1,_0x203d32,_0x572123?_0x17775a['formatDateTime'](_0x572123):'',new DOMParser()['parseFromString'](_0x42e3ea,'text/html')['body']['textContent']]);return _0xcc2a9c['aiSource']&&'pill'===_0x17775a['showAISource']?_0x514db5+'\x20'+Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x514db5;}),this['focusables']=new _0x15b132(),this['focusTracker']=new _0x450913(),this['keystrokes']=new _0xa6d3ab(),this['focusCycler']=new _0x32ceb0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x579a03=>_0x579a03['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xcc2a9c,this['_localUser']=_0x55e69a,this['_config']=_0x17775a,_0x17775a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),tt(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x18fc3f}=this['_config'];this['commentsListView']=new _0x18fc3f(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',_0x1be6c1=>_0x1be6c1+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x33848a,_0x543f4a)=>_0x33848a||!!_0x543f4a);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x46e64a}=this['_config'],_0x20b32e=new _0x46e64a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4c0e8d=_0x20b32e['commentInputView'];return _0x20b32e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4c0e8d,'value',(_0x34c906,_0x32834f,_0xd6056e)=>!!_0xd6056e||_0x34c906&&!_0x32834f),_0x4c0e8d['on']('submit',(_0x253a9a,_0x493ffe)=>{this['fire']('addComment',_0x493ffe),_0x4c0e8d['editor']['setData']('');}),_0x4c0e8d['on']('cancel',()=>this['focus']()),_0x4c0e8d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x20b32e;}},kn=class extends Cn{suggestionView;_descriptionElement;constructor(_0x7950fe,_0x3eb90d,_0x2f8cd3,_0x3772a1){super(_0x7950fe,_0x3eb90d,_0x2f8cd3,_0x3772a1),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1e4671=>_0x1e4671&&_0x1e4671[0x0]?_0x1e4671[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x187f6f,_0x4943f8)=>{let _0x37aed5='';for(const _0x43cce5 of _0x187f6f)_0x37aed5+='<p>'+It(_0x43cce5['content'],_0x43cce5['color'])+'</p>';return _0x4943f8?_0x37aed5:it(_0x37aed5,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3772a1['SuggestionView'](_0x7950fe,_0x3eb90d,{'formatDateTime':_0x3772a1['formatDateTime'],'showAISource':_0x3772a1['showAISource'],'aiAuthor':_0x3772a1['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 _0x25d6d2=this['bindTemplate'],_0x4b8dfe=[this['suggestionView']];return this['commentsListView']&&_0x4b8dfe['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4b8dfe['push'](this['commentThreadInputView']),_0x4b8dfe['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x25d6d2['if']('isActive','ck-suggestion-wrapper--active'),_0x25d6d2['to']('type',_0x5450fd=>'ck-suggestion-'+_0x5450fd),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':_0x25d6d2['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4b8dfe};}['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 _0x383d36{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x403e32,_0x4c3937,_0x428142){super(_0x403e32),this['_model']=_0x4c3937,this['_config']=_0x428142,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4c3937),this['acceptButton']=this['_createButton'](Ot(_0x403e32,'Accept\x20suggestion'),_0x182d28,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Ot(_0x403e32,'Discard\x20suggestion'),_0x519734,'ck-suggestion--discard','discardSuggestion','sw');const _0x3520f4=!!_0x4c3937['aiSource']&&'author'===_0x428142['showAISource'],_0x1fba12=_0x3520f4?this['_createAIUser'](_0x428142['aiAuthor']):_0x4c3937['author'],_0x19b543=_0x3520f4&&!_0x428142['aiAuthor']['avatar']?_0x3fb6a5:void 0x0;this['userView']=new _0xe1f228(_0x403e32,_0x1fba12,this['getUserViewNotificationText'](),_0x19b543),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x15b132([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x450913(),this['keystrokes']=new _0xa6d3ab(),this['focusCycler']=new _0x32ceb0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3bf932=>_0x3bf932['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x12db5f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x12db5f['innerHTML']=this['description'],this['on']('change:description',(_0x34afbc,_0x38b6e9,_0x38b2fa)=>{_0x12db5f['innerHTML']=_0x38b2fa;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0xab27cf=this['bindTemplate'],_0x317ec8=[{'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':_0xab27cf['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xab27cf['to']('authoredAt',_0x502c74=>this['_config']['formatDateTime'](_0x502c74))}]}]},{'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']&&_0x317ec8['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x35d94d=new _0x8950b4(this['locale']);_0x35d94d['set']({'icon':_0x884bc0,'label':Ot(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x317ec8['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x35d94d]});}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':_0x317ec8}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Ot(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Ot(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x3c3ebe){return new _0x101383({'id':'ck-ai-author','name':_0x3c3ebe['name'],'avatar':_0x3c3ebe['avatar'],'color':new _0x2db1dd(0x0)});}_createButton(_0x2b5464,_0x2952a6,_0x940582,_0x5d681c,_0x2904ab){const _0x541c68=new _0x152c47(this['locale']);return _0x541c68['set']({'label':_0x2b5464,'icon':_0x2952a6,'tooltip':!0x0,'tooltipPosition':_0x2904ab}),_0x541c68['extendTemplate']({'attributes':{'class':_0x940582}}),_0x541c68['on']('execute',()=>{this['fire'](_0x5d681c,this['_model']['id']);}),_0x541c68;}_setupKeyboardNavigation(){const _0x2217ec=this['element'];this['keystrokes']['listenTo'](_0x2217ec);for(const _0x36e0aa of this['focusables'])this['focusTracker']['add'](_0x36e0aa['element']),this['keystrokes']['listenTo'](_0x36e0aa['element']);this['keystrokes']['set']('enter',(_0x50c27d,_0xa73888)=>{_0x2217ec===_0x50c27d['target']&&(this['focusCycler']['focusFirst'](),_0xa73888());}),this['keystrokes']['set']('esc',(_0x1e0c3f,_0x5a89ef)=>{_0x2217ec!==_0x1e0c3f['target']&&(this['focus'](),_0x5a89ef());});}},yn=class extends _0x4020fb{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[on,_0x3c0b17,_0x589aca,_0x23acb0,_0x5cb279];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x25e680){super(_0x25e680),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5befff=this['editor']['config'];_0x5befff['define']('trackChanges.SuggestionThreadView',kn),_0x5befff['define']('trackChanges.SuggestionView',Rn),_0x5befff['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5befff['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x5d8327,_0xe5dc64){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x491427,_0x29b683]of this['_handleControllerBuffer']){const _0x352c9a=this['_suggestionToController']['has'](_0x491427);_0x352c9a||_0x29b683?_0x352c9a&&_0x29b683&&this['_destroyController'](_0x491427):this['_initializeController'](_0x491427);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x5cb279)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5d8327,_0xe5dc64);}init(){const _0x554091=this['editor'],_0x3352ec=_0x554091['plugins']['get'](on),_0x192148=_0x554091['plugins']['get'](_0x23acb0),_0x10a881=_0x554091['plugins']['get'](_0x5cb279),_0x2733de=_0x554091['plugins']['get'](_0x589aca);this['_addUIComponentsToFactory'](),_0x10a881['addSourceCollector'](()=>{const _0x59253e=[];for(const [_0x4af671,_0x7e269]of Array['from'](this['_suggestionToController'])){const _0x3e6906=_0x4af671['getAllAdjacentSuggestions'](),_0x21c4e9=[];for(const _0x4a265d of _0x3e6906){if(!_0x4a265d['isInContent'])continue;if(_0x4a265d['isMultiRange']){_0x21c4e9['push'](..._0x4a265d['getRanges']());continue;}const _0x267782=_0x4a265d['getFirstRange']();if(_0x21c4e9['length']>0x0){const _0x479cba=_0x21c4e9[0x0]['getJoined'](_0x267782);if(_0x479cba){_0x21c4e9[0x0]=_0x479cba;continue;}}_0x21c4e9['push'](_0x267782);}_0x59253e['push']([_0x7e269['view'],_0x21c4e9]);}return _0x59253e;}),this['listenTo'](_0x3352ec,'suggestionLoaded',(_0x587b00,_0x1a6788)=>{this['listenTo'](_0x1a6788,'change:previous',(_0x4f7dfe,_0x25a05a,_0x24f8e3,_0x17d34c)=>{_0x1a6788['isInContent']&&(null==_0x24f8e3?(this['_updateController'](_0x17d34c['head']),this['_handleSuggestionControllerDelayed'](_0x1a6788,!0x1)):(this['_updateController'](_0x24f8e3['head']),null==_0x17d34c&&this['_handleSuggestionControllerDelayed'](_0x1a6788,!0x0)));}),null!==_0x1a6788['previous']?this['_updateController'](_0x1a6788['head']):this['_handleSuggestionControllerDelayed'](_0x1a6788,!0x1);}),this['listenTo'](_0x3352ec,'suggestionUnloaded',(_0x3644a1,_0xbfa78f,_0x4e710e)=>{this['stopListening'](_0xbfa78f,'change:previous'),this['_handleControllerBuffer']['delete'](_0xbfa78f),this['_suggestionToController']['has'](_0xbfa78f)&&this['_destroyController'](_0xbfa78f),_0x4e710e&&this['_updateController'](_0x4e710e['head']);}),this['listenTo'](_0x3352ec,'suggestionChanged',(_0x3ced26,_0x1f8028)=>{this['_updateController'](_0x1f8028);}),this['listenTo'](_0x192148,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2733de,'addComment',(_0x21de0e,{threadId:_0x2fc6a3,isFromAdapter:_0x195a28})=>{if(_0x195a28||!_0x3352ec['hasSuggestion'](_0x2fc6a3))return;const _0x44fc8b=_0x3352ec['getSuggestion'](_0x2fc6a3);this['_suggestionToController']['get'](_0x44fc8b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5ad283=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x404767;for(const _0x357e44 in _0x5ad283){const _0xe5b424=_0x357e44,_0x4de10d=_0x5ad283[_0xe5b424];if('trackChangesLicenseKeyValid'==_0x4de10d||'trackChangesLicenseKeyInvalid'==_0x4de10d||'trackChangesLicenseKeyExpired'==_0x4de10d||'trackChangesLicenseKeyDomainLimit'==_0x4de10d||'trackChangesLicenseKeyNotAllowed'==_0x4de10d||'trackChangesLicenseKeyEvaluationLimit'==_0x4de10d||'trackChangesLicenseKeyUsageLimit'==_0x4de10d){delete _0x5ad283[_0xe5b424],_0x404767=_0x4de10d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x404767&&_0x5ad283['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x404767&&_0x5ad283['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x404767&&_0x5ad283['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x404767&&_0x5ad283['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x404767&&_0x5ad283['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x404767&&_0x5ad283['_showLicenseError']('usageLimit');},0x3e8);}getAnnotationForSuggestion(_0x476705){const _0x24571e=this['_suggestionToController']['get'](_0x476705);return _0x24571e&&this['editor']['plugins']['get'](_0x23acb0)['getByInnerView'](_0x24571e['view'])||null;}getSuggestionForAnnotation(_0x1dd9fa){const _0x48ec47=this['_viewToController']['get'](_0x1dd9fa['innerView']);return _0x48ec47?_0x48ec47['model']:null;}_refreshActiveMarkers(){const _0x245286=this['editor']['plugins']['get'](_0x23acb0),_0x5a918e=this['editor']['plugins']['get'](on),_0x23062e=Array['from'](_0x245286['activeAnnotations'],_0x5d8c72=>_0x5d8c72['innerView'])['filter'](_0x4ddc8c=>this['_viewToController']['has'](_0x4ddc8c)),_0x17879f=[];for(const _0xe5343d of _0x23062e){const _0xd08cbf=this['_viewToController']['get'](_0xe5343d)['model']['getAllAdjacentSuggestions']();_0x17879f['push'](..._0xd08cbf['reduce']((_0xde6e3a,_0x4e487f)=>[..._0xde6e3a,..._0x4e487f['getMarkerNames']()],[]));}_0x5a918e['activeMarkers']=_0x17879f;}_addUIComponentsToFactory(){const _0x32a78e=this['editor'],_0x40ec5b=_0x32a78e['locale'],_0x5c9e03=Ot(_0x40ec5b,'Track\x20changes'),_0x321cf7=new _0x2b57b2([{'type':'switchbutton','model':new _0x4d678c({'withText':!0x0,'isToggleable':!0x0,'label':_0x5c9e03,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4d678c({'withText':!0x0,'label':Ot(_0x40ec5b,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d678c({'withText':!0x0,'label':Ot(_0x40ec5b,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d678c({'withText':!0x0,'label':Ot(_0x40ec5b,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d678c({'withText':!0x0,'label':Ot(_0x40ec5b,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x32a78e['plugins']['has']('TrackChangesPreview')&&_0x321cf7['addMany']([{'type':'separator'},{'type':'button','model':new _0x4d678c({'withText':!0x0,'label':Ot(_0x40ec5b,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5a7b9e of _0x321cf7)if(Nn(_0x5a7b9e)){const _0x2d9f79=_0x32a78e['commands']['get'](_0x5a7b9e['model']['commandName']);_0x5a7b9e['model']['bind']('isOn','isEnabled')['to'](_0x2d9f79,'value','isEnabled');}_0x32a78e['ui']['componentFactory']['add']('trackChanges',_0x4cb12c=>this['_createToolbarButton'](_0x4cb12c,_0x321cf7,_0x5c9e03)),_0x32a78e['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3ca913=>this['_createMenuBarMenu'](_0x3ca913,_0x321cf7,_0x5c9e03));}_createToolbarButton(_0x4b98f3,_0x4fe90a,_0x4baa9f){const _0x24bc76=_0x3a70db(_0x4b98f3,_0x324a82),_0x163613=this['editor']['commands']['get']('trackChanges');_0x24bc76['buttonView']['set']({'tooltip':_0x4baa9f,'label':_0x4baa9f,'icon':_0x14985b}),_0x24bc76['buttonView']['bind']('isOn')['to'](_0x163613,'value'),_0x24bc76['buttonView']['on']('execute',()=>{_0x163613['execute'](),this['editor']['editing']['view']['focus']();}),_0x6a017e(_0x24bc76,_0x4fe90a,{'role':'menu'});const _0x5623bd=[];for(const _0x825861 of _0x4fe90a)Nn(_0x825861)&&_0x5623bd['push'](this['editor']['commands']['get'](_0x825861['model']['commandName']));const _0x3e3008=_0x24bc76['buttonView'];return _0x3e3008['actionView']['unbind']('isEnabled'),_0x3e3008['arrowView']['unbind']('isEnabled'),_0x3e3008['actionView']['bind']('isEnabled')['to'](_0x163613,'isEnabled'),_0x3e3008['arrowView']['bind']('isEnabled')['toMany'](_0x5623bd,'isEnabled',(..._0x22a940)=>_0x22a940['some'](_0x223858=>_0x223858)),_0x24bc76['on']('execute',_0x5a642a=>{this['editor']['execute'](_0x5a642a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x24bc76;}_createMenuBarMenu(_0x3214c7,_0x2ba9bc,_0x159414){const _0x2289aa=new _0x4e0336(_0x3214c7),_0x399243=this['editor']['commands']['get']('trackChanges');_0x2289aa['buttonView']['set']({'label':_0x159414,'icon':_0x14985b});const _0x4fb3bb=new _0x32fb77(_0x3214c7);for(const _0x4f7133 of _0x2ba9bc){if('separator'==_0x4f7133['type']){_0x4fb3bb['items']['add'](new _0x2a107e(_0x3214c7));continue;}const _0x3e1a02=new _0x5e5dfa(_0x3214c7,_0x2289aa),_0x3c8650=new _0x31a96b(_0x3214c7),_0x1ccd36=_0x4f7133['model'];_0x3c8650['bind'](...Object['keys'](_0x1ccd36))['to'](_0x1ccd36),_0x3c8650['delegate']('execute')['to'](_0x2289aa),_0x3c8650['on']('execute',()=>{this['editor']['execute'](_0x1ccd36['commandName']),this['editor']['editing']['view']['focus']();}),_0x3e1a02['children']['add'](_0x3c8650),_0x4fb3bb['items']['add'](_0x3e1a02);}return _0x2289aa['bind']('isEnabled')['to'](_0x399243,'isEnabled'),_0x2289aa['panelView']['children']['add'](_0x4fb3bb),_0x2289aa;}_initializeController(_0x418040){const _0x327214=this['editor'],_0x5031e4=_0x327214['config'],_0x10141e=_0x327214['plugins']['get'](_0x23acb0),_0x1bb9b8=_0x327214['plugins']['get'](_0x589aca),_0x1077f6=_0x327214['plugins']['get'](_0x5cb279),_0x32fee2=_0x327214['plugins']['get'](_0x3c0b17)['me'],_0x3ae8ee=_0x5031e4['get']('trackChanges')['SuggestionThreadView'],_0x4a741d=_0x5031e4['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x82e91e,CommentThreadInputView:_0x2b2636}=_0x327214['plugins']['get']('CommentsUI');let _0x29b5cf,_0x45e856,_0x38cc4c;this['_annotationViews']['has'](_0x418040['id'])?(_0x45e856=this['_annotationViews']['get'](_0x418040['id']),_0x29b5cf=_0x45e856['mainView']):(_0x29b5cf=new _0x3ae8ee(_0x327214['locale'],_0x418040,_0x32fee2,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5031e4['get']('comments.editorConfig'),'licenseKey':_0x5031e4['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5031e4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5031e4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5031e4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1148bd(_0x5031e4['get']('locale'),_0x327214['locale']),'CommentView':_0x5031e4['get']('comments')['CommentView'],'CommentsListView':_0x82e91e,'CommentThreadInputView':_0x2b2636,'SuggestionView':_0x4a741d,'showAISource':_0x5031e4['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x5031e4['get']('trackChanges.aiAuthor'),'name':_0x5031e4['get']('trackChanges.aiAuthor')?.['name']||Ot(_0x327214['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x29b5cf['suggestionView']['acceptButton']['on']('execute',()=>{_0x327214['editing']['view']['focus']();}),_0x29b5cf['suggestionView']['discardButton']['on']('execute',()=>{_0x327214['editing']['view']['focus']();}),_0x45e856=_0x10141e['createAnnotationView'](this['editor']['locale'],_0x29b5cf),_0x45e856['bind']('isDirty')['to'](_0x29b5cf,'isDirty'),_0x45e856['bind']('length')['to'](_0x29b5cf),_0x45e856['bind']('type')['to'](_0x29b5cf,'type',_0x57790c=>'suggestion-'+_0x57790c),_0x29b5cf['on']('escape',()=>{_0x38cc4c['fire']('escape');}),this['_annotationViews']['set'](_0x418040['id'],_0x45e856));const _0x4a8004=_0x1bb9b8['createCommentThreadController'](_0x418040['commentThread'],_0x29b5cf),_0x35e25f=new bn(_0x327214,_0x418040,_0x29b5cf,_0x4a8004),_0x451bd7=_0x418040['getAllAdjacentSuggestions']()['filter'](_0x215ff5=>_0x215ff5['isInContent']);_0x29b5cf['descriptionParts']=_0x327214['plugins']['get'](on)['descriptionFactory']['getDescriptions'](_0x451bd7),this['_suggestionToController']['set'](_0x418040,_0x35e25f),this['_viewToController']['set'](_0x29b5cf,_0x35e25f);const _0x82da66=()=>{const _0x41e1fb=[],_0x41d5c2=_0x418040['getAllAdjacentSuggestions']()['filter'](_0x56b6c6=>_0x56b6c6['isInContent']);for(const _0x5144ac of _0x41d5c2)_0x41e1fb['push'](..._0x5144ac['getMarkers']());return _0x22d538(_0x327214['editing'],_0x41e1fb);};_0x38cc4c=_0x10141e['createAnnotation']({'view':_0x45e856,'target':_0x82da66,'type':()=>'suggestion-'+_0x35e25f['view']['type'],'isVisible':!!_0x82da66()}),_0x1bb9b8['_bindAnnotationToEditors'](_0x29b5cf,_0x38cc4c),_0x10141e['add'](_0x38cc4c),_0x1077f6['registerAnnotation'](_0x38cc4c);}_destroyController(_0xe627d3){const _0x3aa0bd=this['editor']['plugins']['get'](_0x589aca),_0x1c5a2b=this['editor']['plugins']['get'](_0x23acb0),_0x270ff6=this['_suggestionToController']['get'](_0xe627d3),_0x1196af=_0x270ff6['view'],_0x121444=_0x1c5a2b['getByInnerView'](_0x1196af);_0x3aa0bd['_unbindEditors'](_0x1196af),_0x121444&&_0x1c5a2b['remove'](_0x121444),this['_suggestionToController']['delete'](_0xe627d3),this['_viewToController']['delete'](_0x1196af),_0x270ff6['destroy']();}_updateController(_0x46051c){if(!_0x46051c['isInContent']||!this['_suggestionToController']['has'](_0x46051c))return;const _0x4ca15e=this['editor']['plugins']['get'](on),_0x1b2e22=this['_suggestionToController']['get'](_0x46051c),_0x1659de=_0x46051c['getAllAdjacentSuggestions']();_0x1b2e22['view']['descriptionParts']=_0x4ca15e['descriptionFactory']['getDescriptions'](_0x1659de);}destroy(){for(const _0x727c17 of this['_suggestionToController']['keys']())this['_destroyController'](_0x727c17);for(const _0x1c2fd0 of this['_annotationViews']['values']())_0x1c2fd0['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Nn(_0x3b8073){return'model'in _0x3b8073;}var Sn=class extends _0x4020fb{static get requires(){return[on,yn,_0x2dcefb];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x1f017b){this['editor']['plugins']['get'](on)['adapter']=_0x1f017b;}get adapter(){return this['editor']['plugins']['get'](on)['adapter'];}addSuggestion(_0x2fbcaa){return this['editor']['plugins']['get'](on)['addSuggestionData'](_0x2fbcaa);}getSuggestions({skipNotAttached:_0x59db62=!0x1,toJSON:_0x333943=!0x1}={}){return this['editor']['plugins']['get'](on)['getSuggestions']({'skipNotAttached':_0x59db62,'toJSON':_0x333943});}getSuggestion(_0x217d47){return this['editor']['plugins']['get'](on)['getSuggestion'](_0x217d47);}};const Mn=['Pagination'];var On=class extends _0x4020fb{static get requires(){return[on];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x4d00e7=this['editor'];if(_0x4d00e7['config']['define']('trackChangesData.editorCreator',_0x591632=>{const _0x4d234d=_0x4d00e7['model']['document']['getRootNames']()['reduce']((_0x22c283,_0x3ae762)=>(_0x22c283[_0x3ae762]='',_0x22c283),{});return _0x4d00e7['constructor']['create'](_0x4d234d,_0x591632);}),'function'!=typeof _0x4d00e7['config']['get']('trackChangesData')['editorCreator'])throw new _0x11ddd9('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x360281){return Bn(this['editor'],!0x0,_0x360281);}getDataWithDiscardedSuggestions(_0x2b8e53){return Bn(this['editor'],!0x1,_0x2b8e53);}},wn=class extends _0x4020fb{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2569f3){super(_0x2569f3),this['result']='end',_0x2569f3['editing']['view']['_overlayModeHint']='auto',_0x2569f3['_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(_0x283009){return void 0x0!==_0x283009['getRootsAttributes'];}async function Bn(_0x39c6c1,_0xe35fc4,_0x43bf8b){const _0x4acfa0=_0x5ceafb(_0x39c6c1,Mn);if(_0x4acfa0['plugins']['push'](on,wn),Fn(_0x39c6c1)){_0x4acfa0['roots']=Object['create'](null);for(const _0x54ce07 of _0x39c6c1['model']['document']['getRootNames']())_0x4acfa0['roots'][_0x54ce07]={'modelAttributes':_0x39c6c1['getRootAttributes'](_0x54ce07)};}const _0x3f78d1=document['createDocumentFragment'](),_0x50522b=_0x39c6c1['config']['get']('trackChangesData')['editorCreator'],_0x46056d=await _0x50522b(_0x4acfa0,()=>function(_0x24af28){const _0x4dd25f=document['createElement']('div');return _0x24af28['appendChild'](_0x4dd25f),_0x4dd25f;}(_0x3f78d1));!function(_0x5e4896,_0x31d097){const _0x3c385b=_0x5e4896['model']['document']['getRootNames']()['reduce']((_0x4d3f0b,_0x119587)=>(_0x4d3f0b[_0x119587]=_0x5e4896['data']['get']({'rootName':_0x119587}),_0x4d3f0b),{}),_0x5f3098=_0x5e4896['plugins']['get']('Users')['users']['map'](_0x3af2f9=>({'id':_0x3af2f9['id'],'name':_0x3af2f9['name']})),_0x2baa22=_0x5e4896['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x51c8a2=_0x5e4896['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x136562=_0x31d097['plugins']['get']('Users'),_0x36c758=_0x31d097['plugins']['get']('TrackChangesEditing'),_0x442caf=_0x31d097['plugins']['get']('CommentsRepository');for(const _0x39f71e of _0x442caf['getCommentThreads']())_0x39f71e['remove']();for(const _0x470ed4 of _0x5f3098)_0x136562['getUser'](_0x470ed4['id'])||_0x136562['addUser'](_0x470ed4);_0x136562['me']||_0x136562['useAnonymousUser']();for(const _0xdb8cf6 of _0x51c8a2)_0x442caf['addCommentThread'](_0xdb8cf6);for(const _0x4e2ea8 of _0x2baa22)_0x36c758['addSuggestionData'](_0x4e2ea8);_0x31d097['data']['set'](_0x3c385b);}(_0x39c6c1,_0x46056d),_0x46056d['execute'](_0xe35fc4?'acceptAllSuggestions':'discardAllSuggestions');const _0x1ec4f0=Fn(_0x46056d)?_0x46056d['getFullData'](_0x43bf8b):_0x46056d['data']['get'](_0x43bf8b);return await _0x46056d['destroy'](),_0x1ec4f0;}var vn=class extends _0x383d36{options;constructor(_0x5f0b7e,_0x436ee4){super(_0x5f0b7e),this['options']=_0x436ee4,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(_0x959625,_0x474f85){if(!this['element'])return;const _0x5407fe=[];for(const [_0x2a5a99,_0x5e4e14]of _0x959625){const _0x1dd3d9=document['createElement']('div');_0x1dd3d9['setAttribute']('data-ck-root-name',_0x2a5a99),_0x1dd3d9['className']=_0x5e4e14['classes']+'\x20ck-track-changes-preview__root-container',_0x1dd3d9['innerHTML']=_0x5e4e14['content'],_0x5407fe['push'](_0x1dd3d9);}_0x474f85(this['element'],_0x5407fe),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Dn=class extends _0xaf0ba9{constructor(_0x32b028){super(_0x32b028),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x33905e=this['editor'],_0x18bb2a=_0x33905e['locale'],_0x4cf5e2=_0x33905e['plugins']['get']('Dialog');let _0xf0a45c;const _0x235349=function(_0x38040d){const _0x255f7d={};if('editables'in _0x38040d['ui']['view']){for(const [_0x191d98,_0x26f23c]of Object['entries'](_0x38040d['ui']['view']['editables']))_0x255f7d[_0x191d98]=_0x26f23c['element'];}else _0x255f7d[_0x38040d['model']['document']['getRootNames']()[0x0]]=_0x38040d['ui']['view']['editable']['element'];return _0x255f7d;}(_0x33905e),_0x433fb9=function(_0x2b9dbe){let _0x213813=0x0;for(const _0x43a7bb of Object['values'](_0x2b9dbe))_0x213813=Math['max'](_0x213813,_0x43a7bb['getBoundingClientRect']()['width']);let _0x5e5a9b=0x0;for(const _0x533b2a of Object['values'](_0x2b9dbe))_0x5e5a9b+=_0x533b2a['getBoundingClientRect']()['height'];const _0x24c3d2=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x213813,'height':Math['min'](_0x5e5a9b,_0x24c3d2)};}(_0x235349);_0x4cf5e2['show']({'id':'finalContentPreview','title':Ot(_0x18bb2a,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new vn(_0x18bb2a,{'dialogRects':_0x433fb9}),'onHide':()=>{_0xf0a45c['detachFromDom']();},'onShow':()=>{_0x33905e['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x35d456=>{const _0x2f1456=this['_standarizeRootsData'](_0x35d456,_0x33905e,_0x235349);_0x4cf5e2['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2f1456,_0x33905e['config']['get']('trackChanges.preview.renderFunction'));}),_0xf0a45c=new _0x330d16(_0x18bb2a,[_0x4cf5e2['view']]),_0xf0a45c['attachToDom'](),_0xf0a45c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x33905e['once']('destroy',()=>{_0xf0a45c['detachFromDom']();});const _0x1c4902=_0x4cf5e2['view']['headerView']['class'];_0x4cf5e2['view']['headerView']['class']=_0x1c4902?_0x1c4902+'\x20ck-reset_all':'ck-reset_all',_0x4cf5e2['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4cf5e2['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x46eb06=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4a66df=_0x46eb06['previewMode'],_0xaa4c4={};if('$labels'===_0x4a66df){for(const _0x2388ed of _0x46eb06['getMergeFieldsIds']())_0xaa4c4[_0x2388ed]=_0x46eb06['getLabel'](_0x2388ed)||_0x2388ed;}else{const _0x2a31a3='$defaultValues'===_0x4a66df?_0x46eb06['getDefaultValues']():_0x46eb06['getDataSetValues'](_0x4a66df,!0x0);for(const _0xaa84fc of Object['entries'](_0x2a31a3)){const [_0x59c65e,_0x45e5ea]=_0xaa84fc;_0xaa4c4[_0x59c65e]=null!==_0x45e5ea?_0x45e5ea:_0x46eb06['getLabel'](_0x59c65e)||_0x59c65e;}}return{'mergeFieldsData':_0xaa4c4};}_standarizeRootsData(_0x26cbd8,_0x424a49,_0x294ddf){let _0x2ee69d;_0x2ee69d='string'==typeof _0x26cbd8?{[_0x424a49['model']['document']['getRootNames']()[0x0]]:_0x26cbd8}:_0x26cbd8;const _0x5e3cd4=this['_fixMediaEmbeds'](_0x2ee69d,_0x424a49);return function(_0x3805ec,_0x2eea9a){for(const [_0x1fdb61,_0x5e559d]of _0x3805ec)_0x5e559d['classes']=_0x2eea9a[_0x1fdb61]['classList']['value']['replace']('ck-focused','');return _0x3805ec;}(this['_sortRoots'](_0x424a49)['reduce']((_0x58df1b,_0x49f224)=>(_0x58df1b['push']([_0x49f224,{'content':_0x5e3cd4[_0x49f224],'classes':''}]),_0x58df1b),[]),_0x294ddf);}['_fixMediaEmbeds'](_0xf80f12,_0x39a6df){if(!_0x39a6df['plugins']['has']('MediaEmbedEditing'))return _0xf80f12;const _0x585ea5=_0x39a6df['plugins']['get']('MediaEmbedEditing');for(const [_0x1e1b70,_0x1c43d4]of Object['entries'](_0xf80f12)){const _0x1b6cef=document['createElement']('div');_0x1b6cef['innerHTML']=_0x1c43d4,_0x1b6cef['querySelectorAll']('figure.media')['forEach'](_0xd18a77=>{const _0x515724=_0xd18a77['querySelector']('oembed');if(_0x515724){const _0x3620a8=_0x515724['getAttribute']('url');if(_0x3620a8){const _0x14acc3=_0x585ea5['registry']['getMediaViewElement'](new at(_0x39a6df['editing']['view']['document']),_0x3620a8,{'elementName':'','renderForEditingView':!0x0}),_0x1a79c4=document['createElement']('div');_0x1a79c4['classList']['add']('ck-media__wrapper'),_0x14acc3['render'](_0x1a79c4,_0x39a6df['editing']['view']['domConverter']),_0x515724['replaceWith'](_0x1a79c4);}}}),_0xf80f12[_0x1e1b70]=_0x1b6cef['innerHTML'];}return _0xf80f12;}_sortRoots(_0x53d8ee){if(!function(_0x20d9a9){return void 0x0!==_0x20d9a9['getRootsAttributes'];}(_0x53d8ee))return _0x53d8ee['model']['document']['getRootNames']();const _0x22a771=[],_0x34dd70=new Map();for(const _0x39dc0b of _0x53d8ee['model']['document']['getRootNames']()){const _0x8b5900=_0x53d8ee['editing']['view']['getDomRoot'](_0x39dc0b)['getClientRects']()['item'](0x0);_0x22a771['push'](_0x39dc0b),_0x34dd70['set'](_0x39dc0b,_0x8b5900);}return _0x22a771['sort']((_0x20c189,_0x84e5c)=>{const _0x27ef80=_0x34dd70['get'](_0x20c189),_0x41f9b1=_0x34dd70['get'](_0x84e5c);return _0x27ef80['y']-_0x41f9b1['y']||_0x27ef80['x']-_0x41f9b1['x'];}),_0x22a771;}},Un=class extends _0x4020fb{static get requires(){return[On,_0x517031];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x6ac693){super(_0x6ac693),_0x6ac693['commands']['add']('previewFinalContent',new Dn(this['editor'])),_0x6ac693['config']['define']('trackChanges.preview.renderFunction',(_0xc646c6,_0x3e981c)=>{for(const _0x103a68 of _0x3e981c)_0xc646c6['appendChild'](_0x103a68);});}};export{pt as AcceptSuggestionCommand,Cn as BaseSuggestionThreadView,Lt as DiscardSuggestionCommand,yt as ExecuteOnAllSuggestionsCommand,Nt as ExecuteOnSelectedSuggestionsCommand,Dn as PreviewFinalContentCommand,Mt as Suggestion,wt as SuggestionDescriptionFactory,kn as SuggestionThreadView,Rn as SuggestionView,Sn as TrackChanges,_t as TrackChangesCommand,On as TrackChangesData,wn as TrackChangesDataGetter,on as TrackChangesEditing,Un as TrackChangesPreview,yn as TrackChangesUI};
|