@ckeditor/ckeditor5-track-changes 48.3.0-alpha.4 → 48.3.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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
|
-
_0x5dffd5();var yt=class Suggestion extends Nt{['id'];['type'];['subType'];['author'];['creator'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x353f54,_0x1266da){super(),this['id']=_0x1266da['id'],this['type']=_0x1266da['type'],this['subType']=_0x1266da['subType']||null,this['author']=_0x1266da['author'],this['creator']=_0x1266da['creator']||_0x1266da['author'],this['data']=null,this['_originalSuggestionId']=_0x1266da['originalSuggestionId']||null,this['_model']=_0x353f54,this['_onAccept']=_0x1266da['onAccept'],this['_onDiscard']=_0x1266da['onDiscard'],this['_onAttributesChange']=_0x1266da['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1266da['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 _0x2d0a0b=this;for(;_0x2d0a0b['previous'];)_0x2d0a0b=_0x2d0a0b['previous'];return _0x2d0a0b;}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'](_0xfea387){this['_markerNames']['add'](_0xfea387);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5a44cd=>this['_model']['markers']['get'](_0x5a44cd))['filter'](_0x2e2c93=>_0x2e2c93);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xca95f7=>{for(const _0x57dcfb of this['getMarkers']())_0xca95f7['removeMarker'](_0x57dcfb);}),this['_markerNames']['clear']();}['removeMarker'](_0x51060b){this['_model']['change'](_0x53aeb8=>{_0x53aeb8['removeMarker'](_0x51060b);}),this['_markerNames']['delete'](_0x51060b);}['addRange'](_0x55ca18){const _0x49a0f2='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x49a0f2),this['_model']['change'](_0x48df48=>{_0x48df48['addMarker'](_0x49a0f2,{'range':_0x55ca18,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x54dc23){for(const _0x167595 of this['getRanges']())if(_0x167595['isIntersecting'](_0x54dc23))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x47dc2f=>_0x47dc2f['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x20c546,_0x4d26e7)=>[..._0x20c546,..._0x4d26e7['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x35e2c1=this['getRanges']();if(0x1!=_0x35e2c1['length'])return null;const _0x3e39ca=_0x35e2c1[0x0],_0x834364=_0x3e39ca['start']['nodeAfter'],_0x3328ff=_0x3e39ca['end']['nodeBefore'];return _0x834364 instanceof it?_0x834364!=_0x3328ff?null:_0x834364: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 _0x2894c9=[];let _0x332797=this['head'];for(;_0x332797;)_0x2894c9['push'](_0x332797),_0x332797=_0x332797['next'];return _0x2894c9;}['setAttribute'](_0x5f1bc8,_0x288213){const _0x4a233b=at(this['attributes']);ut(_0x4a233b,_0x5f1bc8,_0x288213),ct(_0x4a233b,this['attributes'])||(this['attributes']=_0x4a233b,this['_onAttributesChange'](_0x4a233b));}['removeAttribute'](_0x32e35c){const _0x41b459=at(this['attributes']);dt(_0x41b459,_0x32e35c),ct(_0x41b459,this['attributes'])||(this['attributes']=_0x41b459,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 _0x1c6111()['substr'](0x1,0x5);}};function St(_0x16afa0,_0x1f4917,_0x2545ec){const _0x834be9=_0x16afa0['t'],t=_0x16afa0['t'];switch(_0x1f4917){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',_0x2545ec);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2545ec);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2545ec);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2545ec);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2545ec);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',_0x2545ec);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2545ec);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',_0x2545ec);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2545ec);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2545ec);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2545ec);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2545ec);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2545ec);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2545ec);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2545ec);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2545ec);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2545ec);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2545ec);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2545ec);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2545ec);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2545ec);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2545ec);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2545ec);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2545ec);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2545ec);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'},_0x2545ec);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2545ec);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2545ec);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2545ec);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2545ec);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2545ec);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2545ec);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2545ec);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'},_0x2545ec);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'},_0x2545ec);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2545ec);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2545ec);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2545ec);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2545ec);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'},_0x2545ec);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2545ec);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'},_0x2545ec);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'},_0x2545ec);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2545ec);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'},_0x2545ec);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2545ec);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'},_0x2545ec);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2545ec);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x2545ec);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x2545ec);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x2545ec);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2545ec);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'},_0x2545ec);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2545ec);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 _0x834be9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2545ec);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x834be9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2545ec);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2545ec);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'},_0x2545ec);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'},_0x2545ec);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'},_0x2545ec);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1f4917;}}var Mt=class{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x238a6b,_0x2d685f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x238a6b,this['_locale']=_0x2d685f;}['getDescriptions'](_0xb518ec){const _0x137dba=[],_0x3044d5=new Set(),_0x405466=new Set();for(let _0x2df161=0x0;_0x2df161<_0xb518ec['length'];_0x2df161++){const _0x4020c9=_0xb518ec[_0x2df161];if(!_0x4020c9['isInContent'])continue;const _0x4d49b3=this['_handleCustomCallbackDescription'](_0x4020c9);if(_0x4d49b3){if(null!=_0x4020c9['subType']){if(_0x3044d5['has'](_0x4020c9['subType']))continue;_0x3044d5['add'](_0x4020c9['subType']);}_0x137dba['push'](_0x4d49b3);}else{if('attribute'==_0x4020c9['type']){const _0x785b9=_0x4020c9['data']['key'];if(_0x405466['has'](_0x785b9))continue;_0x405466['add'](_0x4020c9['data']['key']),'$elementName'==_0x785b9?this['_handleRenameSuggestionDescription'](_0x137dba,_0x4020c9):this['_handleAttributeSuggestionDescription'](_0x137dba,_0x4020c9);continue;}'insertion'!=_0x4020c9['type']&&'deletion'!=_0x4020c9['type']||this['_handleInsertRemoveSuggestionDescription'](_0x137dba,_0x4020c9,_0xb518ec[_0x2df161+0x1]);}}return this['_resolveDescriptionItems'](_0x137dba);}['registerDescriptionCallback'](_0x47d50a){this['_customCallbacks']['push'](_0x47d50a);}['registerElementLabel'](_0x3ee061,_0x5becb5,_0x447a51=_0x11cdee['normal']){'function'==typeof _0x3ee061?_0x2d0471(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3ee061,'label':_0x5becb5,'priority':_0x447a51}):this['_itemLabels']['set'](_0x3ee061,_0x5becb5);}['registerAttributeLabel'](_0x384684,_0x43bfa3){this['_attributeLabels']['set'](_0x384684,_0x43bfa3);}['getItemLabel'](_0x3f8103,_0x4bb6d0=0x1){let _0x475bcf;for(const _0x10d7ac of this['_itemLabelsCallbacks'])if(_0x10d7ac['matchingCallback'](_0x3f8103)){_0x475bcf=_0x10d7ac['label'];break;}return _0x475bcf||(_0x475bcf=this['_itemLabels']['get'](_0x3f8103['name'])),_0x475bcf?_0x475bcf(_0x4bb6d0):0x1!==_0x4bb6d0?_0x4bb6d0+'\x20'+_0x3f8103['name']+'s':''+_0x3f8103['name'];}['_addDescriptionItems'](_0x5a50d6,_0x2ba897){const _0x482564=_0x2ba897['getFirstRange']()['getWalker'](),_0x2c0150='insertion'==_0x2ba897['type']?'add':'remove';for(const _0x57df69 of _0x482564){const _0x570451=_0x57df69['item'],_0x39c8ac=_0x5a50d6[_0x5a50d6['length']-0x1];if(_0x570451['is']('$textProxy'))_0x39c8ac&&_0x39c8ac['type']['indexOf']('Container')>-0x1&&_0x5a50d6['pop'](),_0x39c8ac&&'text'==_0x39c8ac['type']?_0x39c8ac[_0x2c0150]+=_0x570451['data']:_0x5a50d6['push']({'type':'text','add':'add'==_0x2c0150?_0x570451['data']:'','remove':'remove'==_0x2c0150?_0x570451['data']:''});else{if(this['_schema']['isObject'](_0x570451)){const _0x103bc8=_0x570451;if(_0x39c8ac&&_0x39c8ac['type']['indexOf']('Container')>-0x1&&_0x5a50d6['pop'](),'elementEnd'==_0x57df69['type'])continue;_0x39c8ac&&_0x39c8ac['type']==_0x2c0150+'Object'&&_0x39c8ac['element']['name']==_0x103bc8['name']?_0x39c8ac['quantity']++:_0x5a50d6['push']({'type':_0x2c0150+'Object','element':_0x103bc8,'quantity':0x1}),_0x482564['skip'](_0x402f2b=>!('elementEnd'==_0x402f2b['type']&&_0x402f2b['item']==_0x570451));}else{if(this['_schema']['checkChild'](_0x570451,'$text')||_0x570451['is']('element','softBreak')){const _0x23a218=_0x570451;if('add'==_0x2c0150&&'elementStart'==_0x57df69['type']||'remove'==_0x2c0150&&'elementEnd'==_0x57df69['type'])continue;if(_0x39c8ac&&-0x1==_0x39c8ac['type']['indexOf']('Container')){'text'==_0x39c8ac['type']&&(_0x39c8ac[_0x2c0150]+='\x0a');continue;}let _0x546cc6;if(_0x546cc6='add'==_0x2c0150?_0x23a218['nextSibling']&&!this['_schema']['isObject'](_0x23a218['nextSibling'])?_0x23a218['nextSibling']:null:_0x23a218['previousSibling']&&!this['_schema']['isObject'](_0x23a218['previousSibling'])?_0x23a218['previousSibling']:null,_0x23a218['isEmpty']||_0x546cc6&&_0x546cc6['isEmpty']){const _0x304015=_0x546cc6&&_0x546cc6['isEmpty']?_0x546cc6:_0x23a218;_0x39c8ac&&_0x39c8ac['type']==_0x2c0150+'EmptyContainer'&&_0x39c8ac['element']['name']==_0x304015['name']?_0x39c8ac['quantity']++:_0x5a50d6['push']({'type':_0x2c0150+'EmptyContainer','element':_0x304015,'quantity':0x1});}else _0x5a50d6['push']({'type':_0x2c0150+'Container','element':_0x23a218});}}}}}['_resolveDescriptionItems'](_0x134bf1){const _0x165ac0=this['_locale'],_0xe875d8=[],_0x1d1152=[],_0x117db8=[];for(const _0x3bb5db of _0x134bf1)switch(_0x3bb5db['type']){case'text':if(_0x3bb5db['add']=_0x3bb5db['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3bb5db['remove']=_0x3bb5db['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3bb5db['add']&&''!=_0x3bb5db['remove']){_0xe875d8['push']({'type':'replace','content':St(_0x165ac0,'REPLACE_TEXT',['\x22'+_0x3bb5db['remove']+'\x22','\x22'+_0x3bb5db['add']+'\x22'])});continue;}if(null!=_0x3bb5db['add']['match'](/^ +$/)){_0xe875d8['push']({'type':'insertion','content':St(_0x165ac0,'*Insert:*\x20%0',St(_0x165ac0,'ELEMENT_SPACE',_0x3bb5db['add']['length']))});continue;}if(null!=_0x3bb5db['remove']['match'](/^ +$/)){_0xe875d8['push']({'type':'deletion','content':St(_0x165ac0,'*Remove:*\x20%0',St(_0x165ac0,'ELEMENT_SPACE',_0x3bb5db['remove']['length']))});continue;}if(''!=_0x3bb5db['add']){_0xe875d8['push']({'type':'insertion','content':St(_0x165ac0,'*Insert:*\x20%0','\x22'+_0x3bb5db['add']+'\x22')});continue;}_0xe875d8['push']({'type':'deletion','content':St(_0x165ac0,'*Remove:*\x20%0','\x22'+_0x3bb5db['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xe875d8['push']({'type':'insertion','content':St(_0x165ac0,'*Insert:*\x20%0',this['getItemLabel'](_0x3bb5db['element'],_0x3bb5db['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xe875d8['push']({'type':'deletion','content':St(_0x165ac0,'*Remove:*\x20%0',this['getItemLabel'](_0x3bb5db['element'],_0x3bb5db['quantity']))});continue;case'addContainer':_0xe875d8['push']({'type':'insertion','content':St(_0x165ac0,'*Split:*\x20%0',this['getItemLabel'](_0x3bb5db['element'],_0x3bb5db['quantity']))});continue;case'removeContainer':_0xe875d8['push']({'type':'deletion','content':St(_0x165ac0,'*Merge:*\x20%0',this['getItemLabel'](_0x3bb5db['element'],_0x3bb5db['quantity']))});continue;case'addFormat':_0x1d1152['push'](_0x3bb5db['key']);continue;case'removeFormat':_0x117db8['push'](_0x3bb5db['key']);continue;default:_0xe875d8['push'](_0x3bb5db);}if(_0x1d1152['length']){const _0x7d7bf9=_0x1d1152['map'](_0x1f6fe4=>this['_attributeLabels']['has'](_0x1f6fe4)?this['_attributeLabels']['get'](_0x1f6fe4):_0x1f6fe4)['join'](',\x20');_0xe875d8['push']({'type':'format','content':St(this['_locale'],'*Set\x20format:*\x20%0',_0x7d7bf9)});}if(_0x117db8['length']){const _0x204867=_0x117db8['map'](_0xd229aa=>this['_attributeLabels']['has'](_0xd229aa)?this['_attributeLabels']['get'](_0xd229aa):_0xd229aa)['join'](',\x20');_0xe875d8['push']({'type':'format','content':St(this['_locale'],'*Remove\x20format:*\x20%0',_0x204867)});}return _0xe875d8;}['_handleCustomCallbackDescription'](_0x5611db){for(const _0x335608 of this['_customCallbacks']){const _0x14010c=_0x335608(_0x5611db);if(_0x14010c&&'type'in _0x14010c)return _0x14010c;}}['_handleAttributeSuggestionDescription'](_0x34dfdf,_0xcab15f){const _0x2eed36=_0xcab15f['data'],_0x6d0ff0=void 0x0===_0x2eed36['newValue']?'removeFormat':'addFormat';_0x34dfdf['push']({'type':_0x6d0ff0,'key':_0x2eed36['key']});}['_handleRenameSuggestionDescription'](_0x32e70a,_0x15c48c){_0x32e70a['push']({'type':'format','content':St(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x15c48c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2c1658,_0x18370b,_0x2bec01){if(this['_addDescriptionItems'](_0x2c1658,_0x18370b),_0x2bec01&&_0x2bec01['getFirstRange']()&&!_0x18370b['getFirstRange']()['end']['isEqual'](_0x2bec01['getFirstRange']()['start'])){const _0x50135a=_0x2c1658[_0x2c1658['length']-0x1],_0xe60690='insertion'==_0x18370b['type']?'add':'remove';_0x50135a&&'text'==_0x50135a['type']&&(_0x50135a[_0xe60690]+='\x0a');}}},Ot=class extends _0xe2ae1{['afterInit'](){const _0x129608=this['editor'],_0x233192=_0x129608['plugins']['get']('TrackChangesEditing');_0x129608['commands']['get']('showAIAssistant')&&_0x233192['enableCommand']('showAIAssistant');}},wt=class extends _0xe2ae1{['afterInit'](){const _0x383a48=this['editor'],_0x5717e8=_0x383a48['plugins']['get']('TrackChangesEditing');_0x383a48['commands']['get']('toggleAi')&&_0x5717e8['enableCommand']('toggleAi');}},Ft=class extends _0xe2ae1{['afterInit'](){const _0x43ba49=this['editor'],_0x5a9401=_0x43ba49['plugins']['get']('TrackChangesEditing');_0x43ba49['commands']['get']('aiQuickAction')&&_0x5a9401['enableCommand']('aiQuickAction');}},Bt=class extends _0xe2ae1{['afterInit'](){const _0x253b8c=this['editor'],_0x234524=_0x253b8c['locale'];if(!_0x253b8c['plugins']['has']('AlignmentEditing'))return;const _0x51a949=_0x253b8c['plugins']['get']('TrackChangesEditing');_0x51a949['enableDefaultAttributesIntegration']('alignment'),_0x51a949['descriptionFactory']['registerAttributeLabel']('alignment',St(_0x234524,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b7529=this['editor'],_0x2f66c2=_0x5b7529['locale'];_0x5b7529['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c2734=>{if('formatBlock'!=_0x3c2734['type'])return;const {data:_0x4e5474}=_0x3c2734;if(_0x4e5474&&'alignment'==_0x4e5474['commandName']){const _0x146ec5=_0x4e5474['commandParams'][0x0]['value'];return{'type':'format','content':St(_0x2f66c2,'*Format:*\x20%0',function(_0x64b143){switch(_0x64b143){case'left':return St(_0x2f66c2,'FORMAT_ALIGN_TO_LEFT');case'right':return St(_0x2f66c2,'FORMAT_ALIGN_TO_RIGHT');case'center':return St(_0x2f66c2,'FORMAT_ALIGN_TO_CENTER');case'justify':return St(_0x2f66c2,'FORMAT_JUSTIFY_TEXT');}}(_0x146ec5))};}});}};const vt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Dt=class extends _0xe2ae1{['afterInit'](){const _0x55b799=this['editor'],_0x5db01f=_0x55b799['plugins']['get']('TrackChangesEditing'),_0x3bd021=_0x55b799['locale'];for(const _0x268827 of vt){if(!_0x55b799['plugins']['has'](_0x268827))continue;const _0xd14751=_0x268827['slice'](0x0,-0x7)['toLowerCase'](),_0x2d5ec1='FORMAT_'+_0xd14751['toUpperCase']();_0x5db01f['enableDefaultAttributesIntegration'](_0xd14751),_0x5db01f['descriptionFactory']['registerAttributeLabel'](_0xd14751,St(_0x3bd021,_0x2d5ec1));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32c59a=this['editor'],_0x45cde6=_0x32c59a['locale'],_0xbc2b58=_0x32c59a['plugins']['get']('TrackChangesEditing');function _0x462f87(_0x382bc5,_0xe0c6bd){_0xbc2b58['descriptionFactory']['registerDescriptionCallback'](_0x265e92=>{if('formatInline'!=_0x265e92['type'])return;const {data:_0x34c091}=_0x265e92;return _0x34c091&&_0x34c091['commandName']===_0x382bc5?_0x34c091['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x45cde6,'*Format:*\x20%0',_0xe0c6bd)}:{'type':'format','content':St(_0x45cde6,'*Remove\x20format:*\x20%0',_0xe0c6bd)}:void 0x0;});}_0x462f87('bold',St(_0x45cde6,'FORMAT_BOLD')),_0x462f87('italic',St(_0x45cde6,'FORMAT_ITALIC')),_0x462f87('underline',St(_0x45cde6,'FORMAT_UNDERLINE')),_0x462f87('code',St(_0x45cde6,'FORMAT_CODE')),_0x462f87('strikethrough',St(_0x45cde6,'FORMAT_STRIKETHROUGH')),_0x462f87('subscript',St(_0x45cde6,'FORMAT_SUBSCRIPT')),_0x462f87('superscript',St(_0x45cde6,'FORMAT_SUPERSCRIPT'));}},Ut=class extends _0xe2ae1{['afterInit'](){const _0x2c9bd5=this['editor'],_0x2c226e=_0x2c9bd5['locale'];if(!_0x2c9bd5['plugins']['has']('BlockQuoteEditing'))return;const _0x26cb99=_0x2c9bd5['plugins']['get']('TrackChangesEditing'),_0x5c3d1b=this['editor']['commands']['get']('blockQuote');_0x26cb99['enableCommand']('blockQuote',(_0x54e6c2,_0x48194f={})=>{const _0x1a267c=this['editor']['model']['document']['selection'],_0x4a5b20=_0x48194f&&void 0x0!==_0x48194f['forceValue']?_0x48194f['forceValue']:!_0x5c3d1b['value'];let _0x39449b=[];_0x39449b=At(_0x4a5b20?Array['from'](_0x1a267c['getSelectedBlocks']())['filter'](_0x468a7b=>Pt(_0x468a7b)||function(_0x177c07,_0x25fbfe){const _0x3efb50=_0x25fbfe['createContext'](_0x177c07['parent']);return!!_0x25fbfe['checkChild'](_0x3efb50,'blockQuote')&&!!_0x25fbfe['checkChild'](_0x3efb50['push']('blockQuote'),_0x177c07);}(_0x468a7b,this['editor']['model']['schema'])):Array['from'](_0x1a267c['getSelectedBlocks']())['filter'](_0xe1d6b6=>Pt(_0xe1d6b6)),_0x2c9bd5['model']),_0x2c9bd5['model']['change'](()=>{for(const _0x5ca0c5 of _0x39449b)_0x26cb99['markBlockFormat'](_0x5ca0c5,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4a5b20}]});});}),_0x26cb99['descriptionFactory']['registerDescriptionCallback'](_0x3a15d5=>{const {data:_0x3a1214}=_0x3a15d5;if(_0x3a1214&&'blockQuote'==_0x3a1214['commandName']){const _0x46fcdc=St(_0x2c226e,'ELEMENT_BLOCK_QUOTE');return _0x3a1214['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x2c226e,'*Set\x20format:*\x20%0',_0x46fcdc)}:{'type':'format','content':St(_0x2c226e,'*Remove\x20format:*\x20%0',_0x46fcdc)};}});}};function Pt(_0x58e9a7){return'blockQuote'==_0x58e9a7['parent']['name'];}var xt=class extends _0xe2ae1{['afterInit'](){const _0x79578c=this['editor'],_0x1e3078=_0x79578c['locale'],_0x26eb7f=_0x79578c['plugins']['get']('TrackChangesEditing');_0x79578c['plugins']['has']('BookmarkEditing')&&(_0x26eb7f['enableCommand']('insertBookmark'),_0x26eb7f['enableDefaultAttributesIntegration']('updateBookmark'),_0x26eb7f['descriptionFactory']['registerDescriptionCallback'](_0xabfd6e=>{if('insertion'!=_0xabfd6e['type']&&'deletion'!=_0xabfd6e['type']&&'attribute'!=_0xabfd6e['type'])return;const _0xc6f7e2=_0xabfd6e['getContainedElement']();if(null==_0xc6f7e2)return;if(!_0xc6f7e2['is']('element','bookmark'))return;const _0x13e53f=_0xc6f7e2['getAttribute']('bookmarkId');if('insertion'==_0xabfd6e['type'])return{'type':'insertion','content':St(_0x1e3078,'*Insert:*\x20%0','\x22'+_0x13e53f+'\x22\x20'+St(_0x1e3078,'ELEMENT_BOOKMARK'))};if('deletion'==_0xabfd6e['type'])return{'type':'deletion','content':St(_0x1e3078,'*Remove:*\x20%0','\x22'+_0x13e53f+'\x22\x20'+St(_0x1e3078,'ELEMENT_BOOKMARK'))};const {data:_0x1c4712}=_0xabfd6e;return _0x1c4712&&'bookmarkId'==_0x1c4712['key']?{'type':'format','content':St(_0x1e3078,'*Set\x20bookmark:*\x20%0','\x22'+_0x1c4712['newValue']+'\x22')}:void 0x0;}));}},Gt=class extends _0xe2ae1{['afterInit'](){const _0x19a15d=this['editor'];_0x19a15d['plugins']['has']('CaseChange')&&(_0x19a15d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x19a15d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x19a15d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Ht=class extends _0xe2ae1{['afterInit'](){const _0x34aed5=this['editor'];_0x34aed5['commands']['get']('ckbox')&&_0x34aed5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},$t=class extends _0xe2ae1{['afterInit'](){const _0x1517ec=this['editor'];if(!_0x1517ec['plugins']['has']('CodeBlock'))return;const _0x5f1d62=_0x1517ec['plugins']['get']('TrackChangesEditing'),_0x4cbe65=_0x1517ec['locale'],_0x22a33d=_0x1517ec['config']['get']('codeBlock')['languages'],_0x3af92e=_0x1517ec['commands']['get']('codeBlock');_0x5f1d62['enableCommand']('indentCodeBlock'),_0x5f1d62['enableCommand']('outdentCodeBlock'),_0x5f1d62['enableCommand']('codeBlock',(_0x203fb0,_0x2e74e3={})=>{const _0x4a1980=_0x1517ec['model'],_0x5d1682=_0x1517ec['model']['document']['selection'],_0x86966=_0x2e74e3&&void 0x0!==_0x2e74e3['forceValue']?_0x2e74e3['forceValue']:!_0x3af92e['value'];let _0xfdb662;_0x2e74e3['language']||(_0x2e74e3['language']=_0x22a33d[0x0]['language']),_0xfdb662=_0x86966?Array['from'](_0x5d1682['getSelectedBlocks']())['filter'](_0x152983=>{return Vt(_0x152983)||(_0x2e3637=_0x152983,_0x2c85ce=_0x4a1980['schema'],!_0x2e3637['is']('rootElement')&&!_0x2c85ce['isLimit'](_0x2e3637)&&_0x2c85ce['checkChild'](_0x2e3637['parent'],'codeBlock'));var _0x2e3637,_0x2c85ce;}):Array['from'](_0x5d1682['getSelectedBlocks']())['filter'](_0x4d068e=>Vt(_0x4d068e));const _0x1594f1=At(_0xfdb662,_0x4a1980);_0x4a1980['change'](()=>{for(const _0x5145c4 of _0x1594f1)_0x5f1d62['markBlockFormat'](_0x5145c4,{'commandName':'codeBlock','commandParams':[{..._0x2e74e3,'forceValue':_0x86966}],'formatGroupId':'blockName'});});}),(_0x5f1d62['descriptionFactory']['registerElementLabel']('codeBlock',_0x31130e=>St(_0x4cbe65,'ELEMENT_CODE_BLOCK',_0x31130e)),_0x5f1d62['descriptionFactory']['registerDescriptionCallback'](_0x6bc1d1=>{if('formatBlock'!=_0x6bc1d1['type'])return;const _0x386e7f=_0x4cbe65['t'],{data:_0xffc987}=_0x6bc1d1;if(!_0xffc987||'codeBlock'!=_0xffc987['commandName'])return;const _0x177bd0=_0xffc987['commandParams'][0x0]['language'],_0x282eff=_0x386e7f(_0x22a33d['find'](_0x56812e=>_0x56812e['language']===_0x177bd0)['label'])['toLowerCase']();return _0xffc987['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x4cbe65,'*Set\x20format:*\x20%0',St(_0x4cbe65,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x282eff+')')}:{'type':'format','content':St(_0x4cbe65,'*Remove\x20format:*\x20%0',St(_0x4cbe65,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Vt(_0x350aa6){return'codeBlock'==_0x350aa6['name'];}var Wt=class extends _0xe2ae1{['afterInit'](){const _0x12ea4e=this['editor'];_0x12ea4e['plugins']['has']('CommentsEditing')&&_0x12ea4e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},jt=class extends _0xe2ae1{static get['requires'](){return[ht];}['init'](){const _0x5b053b=this['editor'],_0x4ec94c=_0x5b053b['plugins']['get']('TrackChangesEditing');_0x4ec94c['enableCommand']('delete');const _0x58b6aa=_0x5b053b['commands']['get']('deleteForward');_0x4ec94c['enableCommand']('deleteForward',(_0x4e87b8,_0x3604cb={})=>{const _0x488dd2=_0x5b053b['model']['createSelection'](_0x5b053b['model']['document']['selection']);_0x488dd2['isCollapsed']&&_0x5b053b['model']['modifySelection'](_0x488dd2,{'direction':'forward','unit':_0x3604cb['unit']});const _0x2519c3=_0x488dd2['getFirstRange'](),_0x2c3133=rt['fromRange'](_0x2519c3);let _0x54b38e;_0x4e87b8(_0x3604cb),_0x54b38e='$graveyard'==_0x2c3133['root']['rootName']?_0x5b053b['model']['createRange'](_0x2519c3['start']):_0x5b053b['model']['createRange'](_0x2c3133['start'],_0x2c3133['end']),_0x2c3133['detach'](),_0x5b053b['model']['enqueueChange'](_0x58b6aa['buffer']['batch'],_0x47c4de=>{_0x58b6aa['buffer']['lock'](),_0x47c4de['setSelection'](_0x47c4de['createRange'](_0x54b38e['end'])),_0x58b6aa['buffer']['unlock']();});});}},Kt=class extends _0xe2ae1{['afterInit'](){const _0x176bc5=this['editor'];if(!_0x176bc5['plugins']['has']('ListEditing'))return;const _0x4b9014=_0x176bc5['locale'],_0x4a7683=_0x176bc5['plugins']['get']('TrackChangesEditing'),_0x544242=_0x176bc5['plugins']['has']('TodoListEditing'),_0x1f5b8d=!!_0x176bc5['config']['get']('list.multiBlock');function _0xb46c90(_0x5d03d0){return{'type':'format','content':''+St(_0x4b9014,'*Set\x20format:*\x20%0',_0x5d03d0)};}function _0x42119e(_0x3467fc){return{'type':'format','content':''+St(_0x4b9014,'*Remove\x20format:*\x20%0',_0x3467fc)};}_0x4a7683['enableDefaultAttributesIntegration']('numberedList'),_0x4a7683['enableDefaultAttributesIntegration']('bulletedList'),_0x4a7683['enableDefaultAttributesIntegration']('customNumberedList'),_0x4a7683['enableDefaultAttributesIntegration']('customBulletedList'),_0x4a7683['enableDefaultAttributesIntegration']('indentList'),_0x4a7683['enableDefaultAttributesIntegration']('outdentList'),_0x4a7683['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4a7683['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1f5b8d&&(_0x4a7683['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4a7683['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x544242&&(_0x4a7683['enableDefaultAttributesIntegration']('todoList'),_0x4a7683['enableDefaultAttributesIntegration']('checkTodoList'),_0x4a7683['descriptionFactory']['registerDescriptionCallback'](_0x194bef=>{const {data:_0x4d8b0e}=_0x194bef;if(_0x4d8b0e&&'todoListChecked'==_0x4d8b0e['key'])return{'type':'format','content':_0x4d8b0e['newValue']?St(_0x4b9014,'*Check\x20item*'):St(_0x4b9014,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x398128=>{if(_0x398128['batch']['isUndo'])return!0x1;let _0x349f34=!0x1;const _0x5e569e=_0x4a7683['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4aa603=>'todoListChecked'===_0x4a7683['_getAttributeKey'](_0x4aa603));for(const _0x24084d of _0x5e569e)'todo'!=_0x24084d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4a7683['_findSuggestions'](_0x24084d['getFirstRange'](),'attribute')['find'](_0x39869b=>'listType'===_0x4a7683['_getAttributeKey'](_0x39869b['suggestion']))||(_0x398128['removeMarker'](_0x24084d['getFirstMarker']()),_0x349f34=!0x0));return _0x349f34;})),_0x4a7683['descriptionFactory']['registerAttributeLabel']('listIndent',St(_0x4b9014,'FORMAT_INDENT'));const _0x21068c={'type':'format','content':''};_0x4a7683['descriptionFactory']['registerDescriptionCallback'](_0x52971b=>{const {data:_0x41fbed}=_0x52971b;if(!_0x41fbed||'listType'!=_0x41fbed['key'])return;let _0x16acf7=_0x52971b['head'];for(;_0x16acf7;){if(_0x16acf7['data']&&(('listStyle'==_0x16acf7['data']['key']||'listMarkerStyle'==_0x16acf7['data']['key'])&&(_0x16acf7['data']['newValue']&&'default'!=_0x16acf7['data']['newValue']||'default'!=_0x16acf7['data']['oldValue']&&!_0x41fbed['newValue'])||!_0x1f5b8d&&'$elementName'==_0x16acf7['data']['key']))return _0x21068c;_0x16acf7=_0x16acf7['next'];}if(null==_0x41fbed['newValue'])switch(_0x41fbed['oldValue']){case'bulleted':return _0x42119e(St(_0x4b9014,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x42119e(St(_0x4b9014,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x42119e(St(_0x4b9014,'ELEMENT_TODO_LIST'));}switch(_0x41fbed['newValue']){case'bulleted':return _0xb46c90(St(_0x4b9014,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xb46c90(St(_0x4b9014,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xb46c90(St(_0x4b9014,'ELEMENT_TODO_LIST'));}}),_0x4a7683['descriptionFactory']['registerDescriptionCallback'](_0x4a18dc=>{const {data:_0x30d9e0}=_0x4a18dc;if(_0x30d9e0&&'listIndent'==_0x30d9e0['key'])return null==_0x30d9e0['newValue']||null==_0x30d9e0['oldValue']&&0x0==_0x30d9e0['newValue']?_0x21068c:void 0x0;}),_0x4a7683['descriptionFactory']['registerDescriptionCallback'](_0x4045e1=>{if('attribute'!=_0x4045e1['type'])return;const {data:_0x172822}=_0x4045e1;if(!_0x172822||'listItemId'!=_0x172822['key'])return;const _0x3d9dba=zt(_0x4045e1);return'newValue'==_0x3d9dba?{'type':'format','content':St(_0x4b9014,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3d9dba?{'type':'format','content':St(_0x4b9014,'*Split:*\x20list\x20item')}:_0x21068c;}),_0x176bc5['model']['document']['registerPostFixer'](_0x47cfd0=>this['listItemIdFixer'](_0x47cfd0)),_0x176bc5['model']['document']['registerPostFixer'](_0x5df854=>this['noTrackChangesFixer'](_0x5df854)),_0x176bc5['model']['document']['on']('change:data',(_0x18b287,_0x4c71f1)=>{if(_0x4c71f1['isUndo']||!_0x4c71f1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4e7030){if(_0x4e7030['batch']['isUndo']||!_0x4e7030['batch']['isLocal'])return!0x1;let _0x12277e=!0x1;const _0x5c9005=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19a8a3=>_0x19a8a3['data']&&'listItemId'==_0x19a8a3['data']['key'])['filter'](_0x42d099=>_0x42d099['data']['newValue']&&_0x42d099['data']['oldValue']);for(const _0x59c596 of _0x5c9005)zt(_0x59c596)||(_0x4e7030['removeMarker'](_0x59c596['getFirstMarker']()),_0x12277e=!0x0);return _0x12277e;}['noTrackChangesFixer'](_0x1e7c82){if(_0x1e7c82['batch']['isUndo']||!_0x1e7c82['batch']['isLocal'])return!0x1;const _0x106f26=this['editor']['model']['document']['differ'],_0x499875=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x499875['trackChangesCommand']['value'])return!0x1;let _0x4dcfde=!0x1;const _0x5dd09c=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x1afc9f=_0x106f26['getChanges']()['filter'](_0x3a89c3=>'attribute'==_0x3a89c3['type'])['filter'](_0x1c97c9=>_0x5dd09c['has'](_0x1c97c9['attributeKey']));if(0x0==_0x1afc9f['length'])return _0x4dcfde;const _0x4c31a4=new Set(_0x106f26['getMarkersToAdd']()['filter'](_0x3db77b=>{if(!_0x3db77b['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x4d8f7e=tt(_0x3db77b['name'])['subType']['split']('|')[0x0];return _0x5dd09c['has'](_0x4d8f7e);})['map'](_0xc11074=>tt(_0xc11074['name'])['id']));for(const _0x51a1d4 of _0x1afc9f){const _0x34151f=_0x499875['_findSuggestions'](_0x51a1d4['range'],'attribute')['filter'](_0x15e5b9=>{if(_0x15e5b9['meta']['isNextTo'])return!0x1;if(_0x4c31a4['has'](_0x15e5b9['suggestion']['id']))return!0x1;const _0x38de4d=_0x499875['_getAttributeKey'](_0x15e5b9['suggestion']);return _0x5dd09c['has'](_0x38de4d);})['map'](_0x38d69f=>_0x38d69f['suggestion']);if(_0x34151f['length']){for(const _0x450b75 of _0x34151f)_0x1e7c82['removeMarker'](_0x450b75['getFirstMarker']());_0x4dcfde=!0x0;}}return _0x4dcfde;}['assureChains'](){const _0x1c62a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0xaeaa01=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x8a142a;const _0x31d73e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x49003a=>{if(_0x49003a['data']['oldRange']||!_0x49003a['data']['newRange'])return null;if(!_0x49003a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4bd09e}=tt(_0x49003a['name']);if(!_0x1c62a5['hasSuggestion'](_0x4bd09e))return null;const _0x4f09d3=_0x1c62a5['getSuggestion'](_0x4bd09e);return _0xaeaa01['includes'](_0x4f09d3['data']['key']);})['map'](_0x2b2874=>{const {id:_0x261953}=tt(_0x2b2874['name']),_0xcd4cf0=_0x1c62a5['getSuggestion'](_0x261953);return _0x8a142a=_0xcd4cf0['attributes']['groupId'],_0xcd4cf0['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x31d73e['size'])return;const _0x3a1298=_0x1c62a5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c7fb4=>'attribute'==_0x5c7fb4['type']&&_0x5c7fb4['data']&&_0xaeaa01['includes'](_0x5c7fb4['data']['key'])&&_0x5c7fb4['attributes']['groupId']!=_0x8a142a)['map'](_0x635661=>({'listItem':_0x635661['getFirstRange']()['start']['nodeAfter'],'groupId':_0x635661['attributes']['groupId']})),_0x158b5e=new Set();for(const {groupId:_0x287da4,listItem:_0x410ba8}of _0x3a1298)_0x31d73e['has'](_0x410ba8)&&_0x158b5e['add'](_0x287da4);for(const _0x1692d5 of _0x1c62a5['getSuggestions']())_0x158b5e['has'](_0x1692d5['attributes']['groupId'])&&_0x1692d5['setAttribute']('groupId',_0x8a142a);}['_supportLegacySuggestions'](){const _0x2bb07a=this['editor'],_0x2d67f7=_0x2bb07a['locale'],_0x585529=_0x2bb07a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x585529['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x31e0b5,_0x4e2607){const _0x1bab0f=[];for(let _0x10cb35 of _0x31e0b5)_0x10cb35['start']['nodeAfter']===_0x10cb35['end']['parent']&&(_0x10cb35=_0x2bb07a['model']['createRange'](_0x2bb07a['model']['createPositionAt'](_0x10cb35['start']['nodeAfter'],0x0))),_0x1bab0f['push'](_0x10cb35);_0x2bb07a['model']['change'](_0x3b1c44=>{const _0x2e29a8=_0x2bb07a['model']['document']['selection'],_0xc246a=Array['from'](_0x2e29a8['getRanges']())['map'](_0x44e3ad=>rt['fromRange'](_0x44e3ad));_0x3b1c44['setSelection'](_0x1bab0f),_0x2bb07a['commands']['get'](_0x4e2607['commandName'])['refresh'](),_0x4e2607['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2bb07a['execute'](_0x4e2607['commandName'],..._0x4e2607['commandParams']),_0x3b1c44['setSelection'](_0xc246a);for(const _0x413aeb of _0xc246a)_0x413aeb['detach']();});}),_0x585529['descriptionFactory']['registerElementLabel'](function(_0x31f6f4){const _0x247024=!_0x2bb07a['model']['schema']['isObject'](_0x31f6f4),_0x153044=_0x31f6f4['previousSibling'],_0x357d34=_0x31f6f4['nextSibling'],_0x1ba409=_0x31f6f4['getAttribute']('listItemId'),_0x38836e=!_0x153044||_0x153044['getAttribute']('listItemId')!==_0x1ba409,_0x181b8a=!_0x357d34||_0x357d34['getAttribute']('listItemId')!==_0x1ba409;return _0x247024&&Boolean(_0x1ba409)&&_0x38836e&&_0x181b8a;},_0x525bbb=>St(_0x2d67f7,'ELEMENT_LIST_ITEM',_0x525bbb));}['_registerLegacyDescription'](){const _0x32a14f=this['editor'],_0x55bd1b=_0x32a14f['locale'];function _0x49dadd(_0x331695){const _0x21db73=_0x32a14f['commands']['get']('bulletedList')['value'],_0x5346af=_0x32a14f['commands']['get']('numberedList')['value'];return'numberedList'===_0x331695?_0x21db73:_0x5346af;}_0x32a14f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x68388){if('formatBlock'!=_0x68388['type'])return;const {data:_0x4a5a7f}=_0x68388;if(!_0x4a5a7f)return;let _0x339dbb,_0x3fdb72,_0x5d2acb,_0x4be8dc;switch(_0x4a5a7f['commandName']){case'bulletedList':_0x5d2acb=_0x4a5a7f['commandParams'][0x0]['forceValue'],_0x4be8dc=_0x49dadd(_0x4a5a7f['commandName']),_0x339dbb=_0x5d2acb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4be8dc&&_0x32a14f['config']['get']('list.multiBlock')||(_0x339dbb='*Change\x20to:*\x20%0'),_0x3fdb72={'type':'format','content':St(_0x55bd1b,_0x339dbb,St(_0x55bd1b,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5d2acb=_0x4a5a7f['commandParams'][0x0]['forceValue'],_0x4be8dc=_0x49dadd(_0x4a5a7f['commandName']),_0x339dbb=_0x5d2acb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4be8dc&&_0x32a14f['config']['get']('list.multiBlock')||(_0x339dbb='*Change\x20to:*\x20%0'),_0x3fdb72={'type':'format','content':St(_0x55bd1b,_0x339dbb,St(_0x55bd1b,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x339dbb='*Indent:*\x20%0',_0x3fdb72={'type':'format','content':St(_0x55bd1b,_0x339dbb,St(_0x55bd1b,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x339dbb=function(_0x5e98ab){const _0x50ae95=_0x5e98ab['getFirstRange']();let _0x4eb229=_0x50ae95['start']['nodeAfter'];for(;_0x4eb229&&_0x50ae95['containsItem'](_0x4eb229);){if(_0x4eb229['getAttribute']('listIndent')>0x0)return!0x1;_0x4eb229=_0x4eb229['nextSibling'];}return!0x0;}(_0x68388)?St(_0x55bd1b,'*Format:*\x20remove\x20from\x20%0',St(_0x55bd1b,function(_0xb5bcfd){return'ELEMENT_'+_0xb5bcfd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x68388))):St(_0x55bd1b,'*Outdent:*\x20%0',St(_0x55bd1b,'ELEMENT_LIST_ITEM')),_0x3fdb72={'type':'format','content':_0x339dbb};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4a5a7f['multipleBlocks']&&(_0x339dbb='*Merge:*\x20%0',_0x3fdb72={'type':'deletion','content':St(_0x55bd1b,_0x339dbb,St(_0x55bd1b,'ELEMENT_LIST_ITEM'))});}return _0x3fdb72;});}};function zt(_0x1adfab){let _0x8acfeb=_0x1adfab['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x8acfeb;){const _0xc38d1e=_0x8acfeb['getAttribute']('listItemId');if(!_0xc38d1e)return!0x1;if(_0xc38d1e==_0x1adfab['data']['newValue'])return'newValue';if(_0xc38d1e==_0x1adfab['data']['oldValue'])return'oldValue';_0x8acfeb=_0x8acfeb['previousSibling'];}return!0x1;}var Xt=class extends _0xe2ae1{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x495d8a=this['editor']['config']['get']('list.properties'),_0x499f5f=this['editor']['plugins']['get']('TrackChangesEditing');_0x495d8a['styles']&&_0x499f5f['enableDefaultAttributesIntegration']('listStyle'),_0x495d8a['reversed']&&_0x499f5f['enableDefaultAttributesIntegration']('listReversed'),_0x495d8a['startIndex']&&_0x499f5f['enableDefaultAttributesIntegration']('listStart');const _0x24ceaa={'type':'format','content':''};_0x499f5f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5afa11=this['editor']['locale'];_0x499f5f['descriptionFactory']['registerAttributeLabel']('listReversed',St(_0x5afa11,'FORMAT_LIST_REVERSED')),_0x499f5f['descriptionFactory']['registerDescriptionCallback'](_0x33edc6=>{const {data:_0x212751}=_0x33edc6;if(_0x212751&&'listReversed'==_0x212751['key'])return null==_0x212751['newValue']||0x0==_0x212751['newValue']&&null==_0x212751['oldValue']?_0x24ceaa:void 0x0;}),_0x499f5f['descriptionFactory']['registerAttributeLabel']('listStart',St(_0x5afa11,'FORMAT_LIST_START')),_0x499f5f['descriptionFactory']['registerDescriptionCallback'](_0x25780a=>{const {data:_0x4a5911}=_0x25780a;if(_0x4a5911&&'listStart'==_0x4a5911['key'])return null==_0x4a5911['newValue']||0x1==_0x4a5911['newValue']&&null==_0x4a5911['oldValue']?_0x24ceaa:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x45188e=>{if(_0x45188e['batch']['isUndo'])return!0x1;let _0xa0d3dd=!0x1;const _0x1a8ae7=_0x499f5f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1fad01=>{const _0x4e267b=_0x499f5f['_getAttributeKey'](_0x1fad01);return'listStart'==_0x4e267b||'listReversed'==_0x4e267b;});for(const _0x13adc3 of _0x1a8ae7){const _0x392d9a=_0x13adc3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x392d9a&&'customNumbered'!=_0x392d9a&&(_0x499f5f['_findSuggestions'](_0x13adc3['getFirstRange'](),'attribute')['find'](_0x4a51a2=>'listType'==_0x499f5f['_getAttributeKey'](_0x4a51a2['suggestion']))||(_0x45188e['removeMarker'](_0x13adc3['getFirstMarker']()),_0xa0d3dd=!0x0));}return _0xa0d3dd;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x179f4f){const _0x9e1b58=this['editor']['locale'],{data:_0x25521c}=_0x179f4f,_0x35512b={'type':'format','content':''};if(!_0x25521c||'listStyle'!=_0x25521c['key'])return;if(!_0x25521c['oldValue'])return'default'==_0x25521c['newValue']?_0x35512b:{'type':'format','content':''+St(_0x9e1b58,'*Set\x20format:*\x20%0',St(_0x9e1b58,this['_getTranslationKeyForListStyle'](_0x25521c['newValue'])))};if(!_0x25521c['newValue']){if('default'==_0x25521c['oldValue'])return _0x35512b;let _0x50eb5b=_0x179f4f['head'];for(;_0x50eb5b;){if(_0x50eb5b['data']&&'listType'==_0x50eb5b['data']['key']&&_0x50eb5b['data']['newValue'])return _0x35512b;_0x50eb5b=_0x50eb5b['next'];}return{'type':'format','content':''+St(_0x9e1b58,'*Remove\x20format:*\x20%0',St(_0x9e1b58,this['_getTranslationKeyForListStyle'](_0x25521c['oldValue'])))};}if('default'!=_0x25521c['newValue'])return{'type':'format','content':''+St(_0x9e1b58,'*Set\x20format:*\x20%0',St(_0x9e1b58,this['_getTranslationKeyForListStyle'](_0x25521c['newValue'])))};let _0x252397=_0x179f4f['head'];for(;_0x252397;){if(_0x252397['data']&&'listType'==_0x252397['data']['key']&&_0x252397['data']['newValue']&&_0x252397['data']['oldValue'])return _0x35512b;_0x252397=_0x252397['next'];}return{'type':'format','content':St(_0x9e1b58,'*Set\x20format:*\x20%0',St(_0x9e1b58,'ELEMENT_'+_0x179f4f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x39cadd=this['editor'],_0x585029=_0x39cadd['locale'];_0x39cadd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b9c8d=>{if('formatBlock'!=_0x3b9c8d['type'])return;const {data:_0x2275f0}=_0x3b9c8d;if(!_0x2275f0)return;let _0x210393,_0x39b817;switch(_0x2275f0['commandName']){case'listStyle':_0x210393='*Change\x20to:*\x20%0',_0x39b817={'type':'format','content':St(_0x585029,_0x210393,St(_0x585029,this['_getTranslationKeyForListStyle'](_0x2275f0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x210393=_0x2275f0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x39b817={'type':'format','content':St(_0x585029,_0x210393)};break;case'listStart':_0x210393='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x39b817={'type':'format','content':St(_0x585029,_0x210393,_0x2275f0['commandParams'][0x0]['startIndex'])};}return _0x39b817;});}['_getTranslationKeyForListStyle'](_0x3d3c67){return'ELEMENT_'+(_0x2b89f6=_0x3d3c67,qt['includes'](_0x2b89f6)?'bulleted':Yt['includes'](_0x2b89f6)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x3d3c67['toUpperCase']()['replace'](/-/g,'_');var _0x2b89f6;}};const qt=['disc','circle','square'],Yt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Qt=class extends _0xe2ae1{['afterInit'](){const _0x14a7f5=this['editor'];_0x14a7f5['commands']['get']('emoji')&&_0x14a7f5['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},Zt=class extends _0xe2ae1{static get['requires'](){return[ft];}['init'](){const _0x316efe=this['editor'],_0xe5a77c=_0x316efe['plugins']['get']('TrackChangesEditing'),_0x28d052=_0x316efe['commands']['get']('enter');_0xe5a77c['enableCommand']('enter',()=>{_0x316efe['model']['change'](_0x4a61ab=>{const _0x2dd541=_0x316efe['model']['document']['selection'],_0x10cd23=_0x2dd541['getFirstPosition'](),_0x500a64=rt['fromRange'](_0x2dd541['getFirstRange']());if(_0x28d052['enterBlock'](_0x4a61ab)){const _0x9011c0=_0x316efe['model']['createPositionAt'](_0x10cd23['parent']['nextSibling'],0x0),_0x5d15bb=_0x4a61ab['createRange'](_0x10cd23,_0x9011c0);_0xe5a77c['markInsertion'](_0x5d15bb);}else _0x4a61ab['setSelection'](_0x4a61ab['createRange'](_0x500a64['end']));_0x500a64['detach'](),_0x28d052['fire']('afterExecute',{'writer':_0x4a61ab});});});}},Jt=class extends _0xe2ae1{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1e7389=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e7389['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1e7389['enableCommand']('findNext'),_0x1e7389['enableCommand']('findPrevious'),_0x1e7389['enableCommand']('replace'),_0x1e7389['enableCommand']('replaceAll');}['handleFindCommand'](_0x4bda14,_0x235ef0,_0x5dd5be={}){const _0x351da7=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4bda14(_0x2ffd41=>{let _0x197da6=('string'==typeof _0x235ef0?_0x351da7['findByTextCallback'](_0x235ef0,_0x5dd5be):_0x235ef0)(_0x2ffd41);Array['isArray'](_0x197da6)&&(_0x197da6={'results':_0x197da6,'searchText':'string'==typeof _0x235ef0?_0x235ef0:''});const _0x388099=_0x197da6['results']['filter'](_0x5d9536=>!0x1===this['_isInDeletionRange'](_0x5d9536,_0x2ffd41['item']));return{..._0x197da6,'results':_0x388099};},_0x5dd5be);}['_isInDeletionRange'](_0x1538d9,_0x194e03){const _0x35066d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x194e03,_0x1538d9['start']),this['editor']['model']['createPositionAt'](_0x194e03,_0x1538d9['end']));for(const _0x642f26 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x35066d['getIntersection'](_0x642f26['getRange']()))return!0x0;return!0x1;}};const te=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ee=class extends _0xe2ae1{['afterInit'](){const _0x349473=this['editor']['locale'],_0x2d5321=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x22d1cf,commandName:_0x485e87}of te)this['editor']['plugins']['has'](_0x22d1cf)&&_0x2d5321['enableDefaultAttributesIntegration'](_0x485e87);_0x2d5321['descriptionFactory']['registerAttributeLabel']('fontSize',St(_0x349473,'FORMAT_FONT_SIZE')),_0x2d5321['descriptionFactory']['registerAttributeLabel']('fontFamily',St(_0x349473,'FORMAT_FONT_FAMILY')),_0x2d5321['descriptionFactory']['registerAttributeLabel']('fontColor',St(_0x349473,'FORMAT_FONT_COLOR')),_0x2d5321['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',St(_0x349473,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x278596=this['editor'],_0x309501=_0x278596['locale'];_0x278596['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b55d1=>{const _0x14745a=_0x309501['t'];if('formatInline'!=_0x5b55d1['type'])return;const {data:_0x5d6b26}=_0x5b55d1;if(null!=_0x5d6b26){if('fontSize'==_0x5d6b26['commandName']){const _0x2a42cd=_0x5d6b26['commandParams'][0x0]['value'];if(_0x2a42cd){const _0x2f4c90=this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x189e49=>_0x189e49['model']==_0x2a42cd)['title'];return{'type':'format','content':St(_0x309501,'*Set\x20font\x20size:*\x20%0',_0x14745a(_0x2f4c90)['toLowerCase']())};}return{'type':'format','content':St(_0x309501,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5d6b26['commandName']){const _0x3d1dfa=_0x5d6b26['commandParams'][0x0]['value'];return _0x3d1dfa?{'type':'format','content':St(_0x309501,'*Set\x20font\x20family:*\x20%0',_0x3d1dfa)}:{'type':'format','content':St(_0x309501,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5d6b26['commandName']){const _0xe025e8=_0x5d6b26['commandParams'][0x0]['value'];if(_0xe025e8){const _0x4f85ab=_0x32cafe(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3e6cd9=>_0x3e6cd9['model']==_0xe025e8);let _0x5bee0b=_0xe025e8,_0x3d7a37='';return _0x4f85ab&&(_0x5bee0b=_0x4f85ab['label'],_0x3d7a37=_0x14745a(_0x5bee0b)['toLowerCase']()),{'type':'format','content':St(_0x309501,'*Set\x20font\x20color:*\x20%0',_0x3d7a37)['trim'](),'color':{'value':_0xe025e8,'title':_0x3d7a37||_0x5bee0b}};}return{'type':'format','content':St(_0x309501,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5d6b26['commandName']){const _0x498255=_0x5d6b26['commandParams'][0x0]['value'];if(_0x498255){const _0x562ad7=_0x32cafe(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x21a419=>_0x21a419['model']==_0x498255);let _0x5e1aca=_0x498255,_0x25ba90='';return _0x562ad7&&(_0x5e1aca=_0x562ad7['label'],_0x25ba90=_0x14745a(_0x5e1aca)['toLowerCase']()),{'type':'format','content':St(_0x309501,'*Set\x20font\x20background\x20color:*\x20%0',_0x25ba90)['trim'](),'color':{'value':_0x498255,'title':_0x25ba90||_0x5e1aca}};}return{'type':'format','content':St(_0x309501,'*Reset\x20font\x20background\x20color*')};}}});}},ne=class extends _0xe2ae1{['afterInit'](){const {plugins:_0xaff21d}=this['editor'];_0xaff21d['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0xaff21d['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x12684b,plugins:_0x453f88,commands:_0x3931ea}=this['editor'],_0x229ac4=_0x453f88['get']('TrackChangesEditing');_0x3931ea['get']('footnotesStyle')&&_0x229ac4['enableDefaultAttributesIntegration']('footnotesStyle'),_0x3931ea['get']('footnotesStart')&&_0x229ac4['enableDefaultAttributesIntegration']('footnotesStart'),_0x229ac4['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',St(_0x12684b,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x229ac4['descriptionFactory']['registerAttributeLabel']('footnotesListStart',St(_0x12684b,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x55ca6d=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x1fd170,commands:_0x158fc5}=this['editor'];_0x158fc5['get']('insertFootnote')&&_0x55ca6d['enableCommand']('insertFootnote'),_0x55ca6d['descriptionFactory']['registerElementLabel']('footnoteRef',_0x42944c=>St(_0x1fd170,'ELEMENT_FOOTNOTE_REF',_0x42944c)),_0x55ca6d['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x1added=>St(_0x1fd170,'ELEMENT_FOOTNOTE_DEFINITION',_0x1added)),_0x55ca6d['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x278a43=>St(_0x1fd170,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x278a43));}},ie=class extends _0xe2ae1{['afterInit'](){const _0x4c815c=this['editor'],_0x227d93=_0x4c815c['plugins']['get']('TrackChangesEditing'),_0x35bb26=_0x4c815c['commands']['get']('copyFormat'),_0x54a4f4=_0x4c815c['commands']['get']('pasteFormat');_0x35bb26&&_0x54a4f4&&(_0x227d93['enableDefaultAttributesIntegration']('pasteFormat'),_0x227d93['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x40aef5=this['editor'],_0x527f84=_0x40aef5['locale'];_0x40aef5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x475080=>{if('formatBlock'!=_0x475080['type']&&'formatInline'!=_0x475080['type'])return;const {data:_0x7771c2}=_0x475080;if(_0x7771c2&&'pasteFormat'===_0x7771c2['commandName']){const _0x40e7be=[],_0x41f28c=_0x7771c2['commandParams'][0x0];for(const [_0xb17b95,_0xc43194]of Object['entries'](_0x41f28c))_0x40e7be['push'](se(_0x40aef5,_0xb17b95,_0xc43194));return _0x40e7be['length']?{'type':'format','content':St(_0x527f84,'*Set\x20format\x20to:*\x20%0',_0x40e7be['join'](',\x20'))}:{'type':'format','content':St(_0x527f84,'*Remove\x20all\x20formatting*')};}});}};function se(_0x537b09,_0xc7df0e,_0x207314){const _0x1bf0c0=_0x537b09['locale']['t'],_0x435c34=_0xc7df0e['split'](/(?=[A-Z])/)['join']('\x20'),_0x44b92e=_0x1bf0c0(_0x435c34['charAt'](0x0)['toUpperCase']()+_0x435c34['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x207314)return _0x44b92e;if('fontColor'===_0xc7df0e||'fontBackgroundColor'===_0xc7df0e){const _0x33e324=_0x32cafe(_0x537b09['config']['get']('fontColor.colors'))['find'](_0x3ffa59=>_0x3ffa59['model']==_0x207314);return _0x44b92e+'\x20('+(_0x33e324?_0x1bf0c0(_0x33e324['label'])['toLowerCase']():_0x207314)+')';}if('fontSize'===_0xc7df0e&&isNaN(parseFloat(_0x207314))){const _0x35ff87=_0x537b09['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x537b09['config']['get']('fontSize.options'))['find'](_0x4ad002=>_0x4ad002['model']==_0x207314);return _0x44b92e+'\x20('+(_0x35ff87?_0x1bf0c0(_0x35ff87['title'])['toLowerCase']():_0x207314)+')';}return _0x44b92e+'\x20('+_0x207314+')';}var re=class extends _0xe2ae1{['afterInit'](){const _0x3cd1b5=this['editor'];if(!_0x3cd1b5['plugins']['has']('GeneralHtmlSupport')||!_0x3cd1b5['plugins']['has']('DataSchema'))return;const _0x5d9414=_0x3cd1b5['plugins']['get']('TrackChangesEditing'),_0x567647=_0x3cd1b5['plugins']['get']('GeneralHtmlSupport'),_0x22fe88=_0x3cd1b5['plugins']['get']('DataSchema'),_0x2b2848=_0x3cd1b5['locale'],_0x4e2847=new Set(['htmlContent']);for(const _0xadd2f5 of _0x22fe88['getDefinitionsForView'](/.*/,!0x1)){const _0x5a4420=_0xadd2f5['view'],_0x32d4a0=_0x567647['getGhsAttributeNameForElement'](_0x5a4420);_0x4e2847['add'](_0x32d4a0),!_0xadd2f5['isInline']||_0xadd2f5['isObject']||'appliesToBlock'in _0xadd2f5&&_0xadd2f5['appliesToBlock']||_0x5d9414['descriptionFactory']['registerAttributeLabel'](_0x32d4a0,_0x5a4420),_0xadd2f5['model']['startsWith']('html')&&_0x5d9414['descriptionFactory']['registerElementLabel'](_0xadd2f5['model'],_0x10ebf6=>St(_0x2b2848,'ELEMENT_HTML_TAG',[_0x10ebf6,_0x5a4420]));}_0x5d9414['descriptionFactory']['registerAttributeLabel']('htmlContent',St(_0x2b2848,'FORMAT_RAW_HTML_CONTENT')),_0x5d9414['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',St(_0x2b2848,'FORMAT_HTML_LIST_ITEM')),_0x5d9414['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',St(_0x2b2848,'FORMAT_HTML_BULLETED_LIST')),_0x5d9414['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',St(_0x2b2848,'FORMAT_HTML_NUMBERED_LIST')),_0x5d9414['descriptionFactory']['registerDescriptionCallback'](_0x5cfac9=>{if('attribute'!==_0x5cfac9['type'])return;const _0x4ad40f=_0x5cfac9['data'];if(!_0x4ad40f||!_0x4e2847['has'](_0x4ad40f['key']))return;if('htmlContent'===_0x4ad40f['key'])return{'type':'format','content':St(_0x2b2848,'*Change\x20%0\x20content*',St(_0x2b2848,'ELEMENT_RAW_HTML'))};const {setItems:_0x26f3d2,removeItems:_0x49a2f9}=function(_0x190dfe,_0x35b2b8,_0x403dca){const _0x4b308d=[],_0x10b6ff=[],_0x352999=_0x190dfe['styles']??{},_0x16533a=_0x35b2b8['styles']??{};for(const _0x36cb2d of new Set([...Object['keys'](_0x352999),...Object['keys'](_0x16533a)]))_0x352999[_0x36cb2d]!==_0x16533a[_0x36cb2d]&&(void 0x0===_0x16533a[_0x36cb2d]?_0x10b6ff['push'](_0x36cb2d):_0x4b308d['push'](_0x36cb2d+'\x20('+_0x16533a[_0x36cb2d]+')'));const _0x276aef=St(_0x403dca,'FORMAT_HTML_CLASS'),_0x8ebda9=new Set(_0x190dfe['classes']??[]),_0x5433a3=new Set(_0x35b2b8['classes']??[]),_0x522922=[..._0x5433a3]['some'](_0x2e637e=>!_0x8ebda9['has'](_0x2e637e)),_0x4e92bd=[..._0x8ebda9]['some'](_0x5e346b=>!_0x5433a3['has'](_0x5e346b));_0x522922&&_0x4b308d['push'](_0x276aef),_0x4e92bd&&_0x10b6ff['push'](_0x276aef);const _0x50f53b=St(_0x403dca,'FORMAT_HTML_ATTRIBUTE'),_0x241b6f=_0x190dfe['attributes']??{},_0x2877f0=_0x35b2b8['attributes']??{};let _0x595966=!0x1,_0x2af7c4=!0x1;for(const _0x49f2f0 of new Set([...Object['keys'](_0x241b6f),...Object['keys'](_0x2877f0)]))_0x241b6f[_0x49f2f0]!==_0x2877f0[_0x49f2f0]&&(void 0x0===_0x2877f0[_0x49f2f0]?_0x2af7c4=!0x0:_0x595966=!0x0);return _0x595966&&_0x4b308d['push'](_0x50f53b),_0x2af7c4&&_0x10b6ff['push'](_0x50f53b),{'setItems':_0x4b308d,'removeItems':_0x10b6ff};}(_0x4ad40f['oldValue']??{},_0x4ad40f['newValue']??{},_0x2b2848);if(!_0x26f3d2['length']&&!_0x49a2f9['length'])return;const _0x3d81b7=[];return _0x26f3d2['length']&&_0x3d81b7['push'](St(_0x2b2848,'*Set\x20format:*\x20%0',_0x26f3d2['join'](',\x20'))),_0x49a2f9['length']&&_0x3d81b7['push'](St(_0x2b2848,'*Remove\x20format:*\x20%0',_0x49a2f9['join'](',\x20'))),{'type':'format','content':_0x3d81b7['join']('\x0a')};});}},oe=class extends _0xe2ae1{['_headingOptions'];['afterInit'](){const _0x4f8944=this['editor'];if(!_0x4f8944['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4f8944['config']['get']('heading.options');const _0x43bc08=_0x4f8944['locale'],_0x2682ab=_0x4f8944['plugins']['get']('TrackChangesEditing');_0x2682ab['enableDefaultAttributesIntegration']('heading');for(const _0x5b43b8 of this['_headingOptions'])'paragraph'!=_0x5b43b8['model']&&_0x2682ab['descriptionFactory']['registerElementLabel'](_0x5b43b8['model'],_0x47dc38=>{const _0x311248=this['_getHeadingLevel'](_0x5b43b8['model']);return null!==_0x311248?_0x3d1cae(_0x47dc38,_0x311248):_0x2126c5(_0x47dc38,_0x5b43b8['title']);});function _0x3d1cae(_0x591cfe,_0x3b45e0){return St(_0x43bc08,'ELEMENT_HEADING',[_0x591cfe,_0x3b45e0]);}function _0x2126c5(_0x1942c3,_0x25c8fd){return St(_0x43bc08,'ELEMENT_HEADING_CUSTOM',[_0x1942c3,_0x25c8fd]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46d418=this['editor'],_0x55b80e=_0x46d418['locale'];function _0x5124d8(_0x26755f,_0x184f61){return St(_0x55b80e,'ELEMENT_HEADING_CUSTOM',[_0x26755f,_0x184f61]);}_0x46d418['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33d4e3=>{if('formatBlock'!=_0x33d4e3['type'])return;const {data:_0x480568}=_0x33d4e3;if(_0x480568&&'heading'==_0x480568['commandName']){const _0x4aabf0=_0x480568['commandParams'][0x0]['value'],_0x3fb261=this['_getHeadingLevel'](_0x4aabf0);if(null!==_0x3fb261)return{'type':'format','content':St(_0x55b80e,'*Change\x20to:*\x20%0',(_0x2a24e8=0x1,_0xb35ff=_0x3fb261,St(_0x55b80e,'ELEMENT_HEADING',[_0x2a24e8,_0xb35ff])))};const _0x15d9e1=this['_headingOptions']['find'](_0x3c4f12=>_0x3c4f12['model']===_0x4aabf0)['title'];return{'type':'format','content':St(_0x55b80e,'*Change\x20to:*\x20%0',_0x5124d8(0x1,_0x15d9e1))};}var _0x2a24e8,_0xb35ff;});}['_getHeadingLevel'](_0x230ac9){const _0x2bdf8c=_0x230ac9['match'](/^heading(\d+)/);if(_0x2bdf8c)return _0x2bdf8c[0x1];const _0x504e4d=this['_headingOptions']?.['find'](_0x2698dc=>_0x2698dc['model']==_0x230ac9);if(_0x504e4d&&_0x504e4d['view']){const _0x2b1ed2=_0x504e4d['view'],_0x2b049b=(_0x2b1ed2['name']??_0x2b1ed2)['match'](/^h(\d+)/);if(_0x2b049b)return _0x2b049b[0x1];}return null;}},ae=class extends _0xe2ae1{['afterInit'](){const _0x7c16a0=this['editor'];if(!_0x7c16a0['plugins']['has']('HighlightEditing'))return;const _0x34c8d3=_0x7c16a0['plugins']['get']('TrackChangesEditing'),_0x182254=_0x7c16a0['locale'];_0x34c8d3['enableDefaultAttributesIntegration']('highlight'),_0x34c8d3['descriptionFactory']['registerAttributeLabel']('highlight',St(_0x182254,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30cb03=this['editor'],_0xcd9466=_0x30cb03['locale'];_0x30cb03['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf527bc=>{if('formatInline'!=_0xf527bc['type'])return;const {data:_0x5424b6}=_0xf527bc;if(_0x5424b6&&'highlight'==_0x5424b6['commandName']){const _0x4b0a5c=_0xcd9466['t'],_0x529602=_0x5424b6['commandParams'][0x0]['value'];if(_0x529602){const _0x15ef23=_0x30cb03['config']['get']('highlight.options')['find'](_0x465e75=>_0x465e75['model']==_0x529602);return{'type':'format','content':St(_0xcd9466,'*Set\x20highlight:*\x20%0',_0x4b0a5c(_0x15ef23['title'])['toLowerCase']()),'color':{'value':_0x15ef23['color'],'title':_0x15ef23['title']}};}return{'type':'format','content':St(_0xcd9466,'*Remove\x20highlight*',St(_0xcd9466,'FORMAT_HIGHLIGHT'))};}});}},ce=class extends _0xe2ae1{['afterInit'](){const _0x1c9826=this['editor'];if(!_0x1c9826['plugins']['has']('HorizontalLineEditing'))return;_0x1c9826['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x7a7477=_0x1c9826['plugins']['get']('TrackChangesEditing'),_0x585a80=_0x1c9826['locale'];_0x7a7477['descriptionFactory']['registerElementLabel']('horizontalLine',_0xdb2524=>St(_0x585a80,'ELEMENT_HORIZONTAL_LINE',_0xdb2524));}},le=class extends _0xe2ae1{['afterInit'](){const _0x47a595=this['editor'];if(!_0x47a595['plugins']['has']('HtmlEmbed'))return;const _0x13e809=_0x47a595['plugins']['get']('TrackChangesEditing'),_0x2a0156=_0x47a595['locale'];_0x13e809['descriptionFactory']['registerElementLabel']('rawHtml',_0xce18c7=>St(_0x2a0156,'ELEMENT_HTML_EMBED',_0xce18c7)),_0x13e809['enableDefaultAttributesIntegration']('htmlEmbed'),_0x13e809['descriptionFactory']['registerDescriptionCallback'](_0x23bcb5=>{if('attribute'!=_0x23bcb5['type'])return;const {data:_0x73a9c7}=_0x23bcb5;return _0x73a9c7&&'value'==_0x73a9c7['key']&&_0x23bcb5['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')?{'type':'format','content':St(_0x2a0156,'*Change\x20%0\x20content*',St(_0x2a0156,'ELEMENT_HTML_EMBED'))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b5a1c=this['editor'],_0x3883bc=_0x1b5a1c['locale'];_0x1b5a1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2155b1=>{if('formatBlock'!=_0x2155b1['type'])return;const {data:_0x4c17da}=_0x2155b1;return _0x4c17da&&'htmlEmbed'==_0x4c17da['commandName']?{'type':'format','content':St(_0x3883bc,'*Change\x20%0\x20content*',St(_0x3883bc,'ELEMENT_HTML_EMBED'))}:void 0x0;});}},ue=class extends _0xe2ae1{['afterInit'](){const _0x5b6025=this['editor'];if(!_0x5b6025['plugins']['has']('ImageEditing'))return;const _0x4fc34f=_0x5b6025['plugins']['get']('TrackChangesEditing'),_0x4b1ecb=_0x5b6025['plugins']['get']('ImageUtils'),_0x42bce8=_0x5b6025['locale'];_0x4fc34f['enableCommand']('insertImage'),_0x4fc34f['descriptionFactory']['registerElementLabel']('imageBlock',_0x3eabf2=>St(_0x42bce8,'ELEMENT_IMAGE',_0x3eabf2)),_0x4fc34f['descriptionFactory']['registerElementLabel']('imageInline',_0x48024b=>St(_0x42bce8,'ELEMENT_INLINE_IMAGE',_0x48024b)),_0x4fc34f['descriptionFactory']['registerElementLabel']('caption',()=>St(_0x42bce8,'ELEMENT_CAPTION')),_0x5b6025['plugins']['has']('ImageUploadEditing')&&_0x4fc34f['enableCommand']('uploadImage'),_0x5b6025['plugins']['has']('ImageBlockEditing')&&_0x5b6025['plugins']['has']('ImageInlineEditing')&&(_0x4fc34f['enableCommand']('imageTypeInline',(_0x7f9722,_0x21418b)=>{const _0x16c26b=_0x4b1ecb['getClosestSelectedImageElement'](_0x5b6025['model']['document']['selection']);_0x5b6025['model']['change'](()=>{_0x4fc34f['markBlockFormat'](_0x16c26b,{'commandName':'imageTypeInline','commandParams':[_0x21418b]},[],'convertBlockImageToInline');});}),_0x4fc34f['enableCommand']('imageTypeBlock',(_0xc8445a,_0x53ea76)=>{_0x5b6025['model']['change'](_0x5dc118=>{let _0x134b98=_0x4b1ecb['getClosestSelectedImageElement'](_0x5b6025['model']['document']['selection']),_0x1f4675=_0x5dc118['createRangeOn'](_0x134b98);const _0x4df844=st['fromPosition'](_0x1f4675['start'],'toPrevious'),_0x18b145=st['fromPosition'](_0x1f4675['end'],'toNext');_0x4fc34f['forceDefaultExecution'](()=>_0xc8445a(_0x53ea76)),_0x134b98=_0x4b1ecb['getClosestSelectedImageElement'](_0x5b6025['model']['document']['selection']),_0x1f4675=_0x5dc118['createRangeOn'](_0x134b98);const _0x194d89=_0x5dc118['createRange'](_0x4df844,_0x18b145);_0x4df844['detach'](),_0x18b145['detach'](),_0x4fc34f['markBlockFormat'](_0x134b98,{'commandName':'imageTypeInline','commandParams':[_0x53ea76]},[],'convertInlineImageToBlock'),_0x194d89['start']['isBefore'](_0x1f4675['start'])&&_0x4fc34f['markInsertion'](_0x5dc118['createRange'](_0x194d89['start'],_0x1f4675['start']),'convertInlineImageToBlock'),_0x1f4675['end']['isBefore'](_0x194d89['end'])&&_0x4fc34f['markInsertion'](_0x5dc118['createRange'](_0x1f4675['end'],_0x194d89['end']),'convertInlineImageToBlock');});}),_0x4fc34f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4fc34f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4fc34f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4fc34f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4fc34f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4fc34f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x522cfc])=>{const _0x4c9be6=_0x4fc34f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x19690f=_0x522cfc['start'],_0xb54595=_0x522cfc['end'];const _0x30e20a=_0x5b6025['model']['schema']['getNearestSelectionRange'](_0x19690f,'backward'),_0x941442=_0x5b6025['model']['schema']['getNearestSelectionRange'](_0xb54595,'forward');_0x30e20a['isCollapsed']&&(_0x19690f=_0x30e20a['start']),_0x941442['isCollapsed']&&(_0xb54595=_0x941442['end']),_0x4c9be6([_0x5b6025['model']['createRange'](_0x19690f,_0xb54595)]);}),_0x4fc34f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x17eb59),_0x4fc34f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x17eb59)),_0x5b6025['plugins']['has']('ImageCaptionEditing')&&(_0x4fc34f['enableCommand']('toggleImageCaption',(_0xaecbc3,_0x559a76)=>{const _0x411514=_0x5b6025['plugins']['get']('ImageCaptionUtils');let _0x121e20=_0x4b1ecb['getClosestSelectedImageElement'](_0x5b6025['model']['document']['selection']),_0x8dc4bf=_0x411514['getCaptionFromImageModelElement'](_0x121e20);_0x5b6025['model']['change'](()=>{if(_0x8dc4bf)return void _0x4fc34f['markDeletion'](_0x5b6025['model']['createRangeOn'](_0x8dc4bf));const _0x57d13d=_0x4b1ecb['isBlockImage'](_0x121e20);_0xaecbc3(_0x559a76),_0x121e20=_0x4b1ecb['getClosestSelectedImageElement'](_0x5b6025['model']['document']['selection']),_0x8dc4bf=_0x411514['getCaptionFromImageModelElement'](_0x121e20),_0x4fc34f['markInsertion'](_0x5b6025['model']['createRangeOn'](_0x8dc4bf),_0x57d13d?null:'imageCaption');});}),_0x4fc34f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x17eb59));const _0x21c258=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xa9b846(_0x3c170f,_0x4eb986){const _0x591da9=_0x21c258['findIndex'](({type:_0x4f151d,subType:_0x2dbbea})=>_0x3c170f['type']==_0x4f151d&&_0x3c170f['subType']==_0x2dbbea),_0x3ba2df=_0x21c258['findIndex'](({type:_0x4a2b6c,subType:_0x336b2b})=>_0x4eb986['type']==_0x4a2b6c&&_0x4eb986['subType']==_0x336b2b);if(_0x591da9<0x0||_0x3ba2df<0x0)return!0x1;const _0x4803e4=_0x3c170f['getFirstRange'](),_0x343b0b=_0x4eb986['getFirstRange']();if((0x0==_0x591da9||0x1==_0x591da9)&&0x2==_0x3ba2df&&_0x4803e4['isIntersecting'](_0x343b0b))return!0x0;if(0x2==_0x591da9&&0x3==_0x3ba2df){const _0x598c38=_0x4fc34f['_findSuggestions'](_0x4803e4,'insertion')['filter'](({suggestion:_0x1b2641,meta:_0x4d8c13})=>_0x4d8c13['isOwn']&&'convertInlineImageToBlock'==_0x1b2641['subType']);if(_0x598c38['length']>0x1&&_0x343b0b['end']['isEqual'](_0x4803e4['start']))return!0x0;if(0x1==_0x598c38['length']&&(_0x4803e4['start']['isEqual'](_0x343b0b['end'])||_0x4803e4['end']['isEqual'](_0x343b0b['start'])))return!0x0;}if(0x3==_0x591da9&&0x3==_0x3ba2df&&_0x4803e4['start']['isBefore'](_0x343b0b['start'])){const _0x1fab52=_0x4803e4['end']['nodeAfter'],_0x25c44a=_0x343b0b['start']['nodeBefore'];return _0x4b1ecb['isBlockImage'](_0x1fab52)&&_0x1fab52===_0x25c44a;}return!0x1;}function _0x17eb59(_0x40f1a9,_0x1f9139){return _0xa9b846(_0x40f1a9,_0x1f9139)?[_0x40f1a9,_0x1f9139]:_0xa9b846(_0x1f9139,_0x40f1a9)?[_0x1f9139,_0x40f1a9]:null;}_0x5b6025['plugins']['has']('ImageResize')&&(_0x4fc34f['enableDefaultAttributesIntegration']('resizeImage'),_0x4fc34f['descriptionFactory']['registerAttributeLabel']('resizedWidth',St(_0x42bce8,'FORMAT_IMAGE_SIZE'))),_0x5b6025['plugins']['has']('ImageTextAlternativeEditing')&&_0x4fc34f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5b6025['plugins']['has']('PictureEditing')&&_0x4fc34f['descriptionFactory']['registerDescriptionCallback'](_0x58a57e=>{if('attribute'!=_0x58a57e['type'])return;const {data:_0x2b775c}=_0x58a57e;return _0x2b775c&&'sources'==_0x2b775c['key']?{'type':'format','content':''}:void 0x0;}),_0x5b6025['plugins']['has']('ImageSizeAttributes')&&_0x4fc34f['descriptionFactory']['registerDescriptionCallback'](_0x6853e8=>{if('attribute'!=_0x6853e8['type'])return;const {data:_0x2123e6}=_0x6853e8;return!_0x2123e6||'width'!=_0x2123e6['key']&&'height'!=_0x2123e6['key']?void 0x0:{'type':'format','content':''};}),_0x4fc34f['descriptionFactory']['registerDescriptionCallback'](_0x146c3f=>{if(_0x21c258['find'](({type:_0x54e16d,subType:_0x317d6a})=>_0x146c3f['type']==_0x54e16d&&_0x146c3f['subType']==_0x317d6a))return _0x146c3f['previous']?{}:void 0x0;}),_0x4fc34f['descriptionFactory']['registerDescriptionCallback'](_0xf627a6=>{if('insertion'==_0xf627a6['type']||'deletion'==_0xf627a6['type']){const _0x299695=_0xf627a6['getContainedElement']();if(_0x299695&&_0x299695['is']('element','caption'))return{'type':'insertion'==_0xf627a6['type']?'addObject':'removeObject','element':_0x299695,'quantity':0x1};}}),_0x4fc34f['descriptionFactory']['registerDescriptionCallback'](_0x514e68=>'formatBlock'==_0x514e68['type']&&'convertInlineImageToBlock'==_0x514e68['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x514e68['type']&&'convertBlockImageToInline'==_0x514e68['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4fc34f['descriptionFactory']['registerDescriptionCallback'](_0xb17a70=>{if('attribute'!=_0xb17a70['type'])return;const {data:_0x4fa2cc}=_0xb17a70;if(!_0x4fa2cc||'alt'!=_0x4fa2cc['key'])return;const _0x5ee59a=_0x4fa2cc['newValue'];return _0x5ee59a?{'type':'format','content':St(_0x42bce8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5ee59a+'\x22')}:{'type':'format','content':St(_0x42bce8,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52395d=this['editor'],_0x3c0569=_0x52395d['locale'];_0x52395d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x200419=>{if('formatBlock'!=_0x200419['type']&&'formatInline'!=_0x200419['type'])return;const {data:_0x471085}=_0x200419;if(_0x471085){if('imageTextAlternative'==_0x471085['commandName']){const _0x3247b9=_0x471085['commandParams'][0x0]['newValue'];return _0x3247b9?{'type':'format','content':St(_0x3c0569,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3247b9+'\x22')}:{'type':'format','content':St(_0x3c0569,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x471085['commandName']){const _0x4a71b7=_0x471085['commandParams'][0x0]['width'];return _0x4a71b7?{'type':'format','content':St(_0x3c0569,'*Set\x20image\x20width:*\x20%0',_0x4a71b7)}:{'type':'format','content':St(_0x3c0569,'*Reset\x20image\x20width*')};}}});}},de=class extends _0xe2ae1{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x23dc9d=this['editor']['locale'],_0x308660=this['editor']['plugins']['get']('TrackChangesEditing');_0x308660['enableDefaultAttributesIntegration']('replaceImageSource'),_0x308660['descriptionFactory']['registerDescriptionCallback'](_0x5172a3=>{if('attribute'!=_0x5172a3['type'])return;const {data:_0x270ba7}=_0x5172a3;return _0x270ba7&&'src'==_0x270ba7['key']?_0x270ba7['newValue']&&_0x270ba7['oldValue']?{'type':'format','content':St(_0x23dc9d,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x37e8bd=this['editor']['plugins']['get']('TrackChangesEditing');_0x37e8bd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x37e8bd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x37e8bd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x37e8bd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x490855=this['editor'],_0x225d48=_0x490855['locale'];_0x490855['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe685fd=>{if('formatBlock'!=_0xe685fd['type']&&'formatInline'!=_0xe685fd['type'])return;const {data:_0x50f439}=_0xe685fd;return _0x50f439&&'replaceImageSource'==_0x50f439['commandName']?{'type':'format','content':St(_0x225d48,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},he=class extends _0xe2ae1{['afterInit'](){const _0x25ee22=this['editor'];if(!_0x25ee22['plugins']['has']('ImageStyleEditing'))return;const _0x271687=_0x25ee22['plugins']['get']('TrackChangesEditing'),_0x59280f=_0x25ee22['plugins']['get']('ImageUtils'),_0x3f69ec={};_0x271687['enableCommand']('imageStyle',(_0x4ebb1f,_0x4a8846)=>{const _0x31a7b3=_0x25ee22['plugins']['get']('Users')['me'],_0xa7dbc6=_0x25ee22['commands']['get']('imageStyle');let _0x5d76da=_0x59280f['getClosestSelectedImageElement'](_0x25ee22['model']['document']['selection']),_0x554f93=_0x25ee22['model']['createRangeOn'](_0x5d76da),_0x1d471e=_0xa7dbc6['value'];if(_0x1d471e==_0x4a8846['value'])return;if(_0x4a8846['value']&&_0x59280f['isInlineImage'](_0x5d76da)&&!_0xa7dbc6['isStyleEnabled'](_0x4a8846['value']))return;const _0x3f335a={'commandName':'imageStyle','commandParams':[_0x4a8846],'formatGroupId':_0x1c6111()};_0x25ee22['model']['change'](()=>{if(_0x271687['getSuggestions']()['filter'](_0x291d35=>_0x291d35['isInContent']&&_0x31a7b3==_0x291d35['author']&&('formatBlock'==_0x291d35['type']||'formatInline'==_0x291d35['type'])&&('imageStylePreApply'==_0x291d35['subType']||'imageStylePostApply'==_0x291d35['subType'])&&_0x291d35['getFirstRange']()['isEqual'](_0x554f93))['forEach'](_0x2f8a7e=>_0x271687['discardSuggestion'](_0x2f8a7e['head'])),_0x5d76da=_0x59280f['getClosestSelectedImageElement'](_0x25ee22['model']['document']['selection']),_0x554f93=_0x25ee22['model']['createRangeOn'](_0x5d76da),_0xa7dbc6['refresh'](),_0x25ee22['commands']['get']('imageTypeInline')['refresh'](),_0x25ee22['commands']['get']('imageTypeBlock')['refresh'](),_0x1d471e=_0xa7dbc6['value'],_0x1d471e!=_0x4a8846['value'])return _0x59280f['isInlineImage'](_0x5d76da)&&_0xa7dbc6['shouldConvertImageType'](_0x4a8846['value'],_0x5d76da)?(_0x4ebb1f({..._0x4a8846,'setImageSizes':!0x1}),_0x5d76da=_0x59280f['getClosestSelectedImageElement'](_0x25ee22['model']['document']['selection']),void _0x271687['markBlockFormat'](_0x5d76da,{..._0x3f335a,'commandReversedParams':[{'value':_0x1d471e||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x59280f['isBlockImage'](_0x5d76da)?_0x271687['markBlockFormat'](_0x5d76da,_0x3f335a,[],'imageStylePostApply'):_0x271687['markInlineFormat'](_0x554f93,_0x3f335a,'imageStylePostApply'));});});for(const _0x316645 of _0x25ee22['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3f69ec[_0x316645['name']]=_0x316645['title']['toLowerCase']();_0x271687['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x271687['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x271687['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x271687['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x7145e8])=>{_0x59280f['setImageNaturalSizeAttributes'](_0x7145e8['getContainedElement']());}),_0x271687['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x40e72e,_0x3333fc)=>{_0x271687['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x40e72e,{'commandName':_0x3333fc['commandName'],'commandParams':_0x3333fc['commandReversedParams']});}),_0x271687['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x33eaae,_0x3bdb3a){return _0x3b9964(_0x33eaae,_0x3bdb3a)?[_0x33eaae,_0x3bdb3a]:_0x3b9964(_0x3bdb3a,_0x33eaae)?[_0x3bdb3a,_0x33eaae]:null;});const _0x35424d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3b9964(_0x1904d5,_0x5dada8){const _0x1f49a0=_0x35424d['findIndex'](({type:_0x4b8fbd,subType:_0x34372a})=>_0x1904d5['type']==_0x4b8fbd&&_0x1904d5['subType']==_0x34372a),_0x148d6d=_0x35424d['findIndex'](({type:_0xedc597,subType:_0x32e7cc})=>_0x5dada8['type']==_0xedc597&&_0x5dada8['subType']==_0x32e7cc);if(_0x1f49a0<0x0||_0x148d6d<0x0)return!0x1;const _0x4a649d=_0x1904d5['getFirstRange'](),_0x15321b=_0x5dada8['getFirstRange']();if((0x0==_0x1f49a0||0x1==_0x1f49a0)&&0x2==_0x148d6d&&_0x4a649d['isIntersecting'](_0x15321b))return!0x0;if(0x2==_0x1f49a0&&0x3==_0x148d6d){const _0x39256b=_0x271687['_findSuggestions'](_0x4a649d,'insertion')['filter'](({suggestion:_0xe0f12,meta:_0x4a1540})=>_0x4a1540['isOwn']&&'convertInlineImageToBlock'==_0xe0f12['subType']);if(_0x39256b['length']>0x1&&_0x15321b['end']['isEqual'](_0x4a649d['start']))return!0x0;if(0x1==_0x39256b['length']&&(_0x4a649d['start']['isEqual'](_0x15321b['end'])||_0x4a649d['end']['isEqual'](_0x15321b['start'])))return!0x0;}if(0x3==_0x1f49a0&&0x3==_0x148d6d&&_0x4a649d['start']['isBefore'](_0x15321b['start'])){const _0x20ce68=_0x4a649d['end']['nodeAfter'],_0x57ddcc=_0x15321b['start']['nodeBefore'];return _0x59280f['isBlockImage'](_0x20ce68)&&_0x20ce68===_0x57ddcc;}return!0x1;}_0x25ee22['model']['document']['registerPostFixer'](()=>{let _0x556763=!0x1;const _0x56a53a=Array['from'](_0x25ee22['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4a9703,data:_0x5a6d5c}of _0x56a53a){const {group:_0x2531dd,type:_0x5c3dc5,subType:_0xa3db19,id:_0x5e5670}=tt(_0x4a9703);if('suggestion'==_0x2531dd&&_0x271687['hasSuggestion'](_0x5e5670)){if('formatBlock'==_0x5c3dc5&&('imageStylePreApply'==_0xa3db19||'imageStylePostApply'==_0xa3db19)){const _0x8e668c=_0x271687['getSuggestion'](_0x5e5670);if(_0x5a6d5c['newRange']){const _0x49e13e=_0x8e668c['getFirstRange']()['getContainedElement']();if(_0x59280f['isBlockImage'](_0x49e13e))continue;_0x271687['discardSuggestion'](_0x8e668c),_0x556763=!0x0;}}if('insertion'==_0x5c3dc5&&'imageCaption'==_0xa3db19&&!_0x5a6d5c['newRange']){const _0x2db40e=_0x271687['getSuggestion'](_0x5e5670);_0x2db40e['next']&&_0x2db40e['next']['isInContent']&&(_0x271687['discardSuggestion'](_0x2db40e['next']),_0x556763=!0x0);}}}return _0x556763;}),this['_registerLegacyDescription'](_0x3f69ec);}['_registerLegacyDescription'](_0x5a355f){const _0x25bb2c=this['editor'],_0x126a50=_0x25bb2c['locale'];_0x25bb2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bd46a=>{if('formatBlock'!=_0x4bd46a['type']&&'formatInline'!=_0x4bd46a['type'])return;const {data:_0x101d92}=_0x4bd46a;if(!_0x101d92||'imageStyle'!=_0x101d92['commandName'])return;const _0x1078a6=_0x101d92['commandParams'][0x0]['value'];return _0x197063('side'===_0x1078a6?St(_0x126a50,'FORMAT_SIDE_IMAGE'):_0x5a355f[_0x1078a6]||_0x1078a6);function _0x197063(_0x3b3912){return{'type':'format','content':St(_0x126a50,'*Format:*\x20%0',_0x3b3912)};}});}},ge=class extends _0xe2ae1{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x181099){super(_0x181099),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x521406=this['editor'],_0x31bea4=_0x521406['commands']['get']('importWord'),_0x1451d9=_0x521406['commands']['get']('trackChanges');_0x31bea4&&(_0x31bea4['on']('execute',(_0x278256,[,_0x303fa2])=>{this['_trackChangesValueDuringImport']=_0x1451d9['value'],_0x303fa2['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x31bea4,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x31bea4,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1451d9['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x521406['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2fa748,_0x46434c){const {suggestions:_0x2b5fd1}=_0x46434c,_0x4e1de6=this['editor']['commands']['get']('trackChanges'),_0x6ac6c1=_0x4e1de6['value'];this['_trackChangesValueDuringImport']!==_0x6ac6c1&&(_0x4e1de6['execute'](),this['_trackChangesExecuted']=!0x0),_0x2b5fd1&&_0x2b5fd1['forEach'](({id:_0x3d57af,type:_0x4299b4,author:_0x42471b,created_at:_0x528ba9})=>{const _0x19277d={'id':_0x3d57af,'type':_0x4299b4,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x42471b,'createdAt':_0x528ba9?new Date(_0x528ba9):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x19277d);});}},fe=class extends _0xe2ae1{['afterInit'](){const _0x16b89b=this['editor'],_0x3c3c16=_0x16b89b['plugins']['get']('TrackChangesEditing');if(_0x16b89b['plugins']['has']('IndentEditing')&&(_0x3c3c16['enableCommand']('indent'),_0x3c3c16['enableCommand']('outdent')),_0x16b89b['plugins']['has']('IndentBlock')){for(const _0x1b135a of['indentBlock','outdentBlock'])_0x3c3c16['enableDefaultAttributesIntegration'](_0x1b135a);if(_0x16b89b['plugins']['has']('ListEditing')){for(const _0x513112 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x3c3c16['enableDefaultAttributesIntegration'](_0x513112);}}const _0x3c2d3d=_0x16b89b['locale'];_0x3c3c16['descriptionFactory']['registerAttributeLabel']('blockIndent',St(_0x3c2d3d,'FORMAT_INDENT')),_0x3c3c16['descriptionFactory']['registerAttributeLabel']('blockIndentList',St(_0x3c2d3d,'FORMAT_INDENT')),_0x3c3c16['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',St(_0x3c2d3d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13b341=this['editor'],_0x1f6773=_0x13b341['locale'],_0x5e44db=_0x13b341['plugins']['get']('TrackChangesEditing');_0x5e44db['descriptionFactory']['registerDescriptionCallback'](_0x59ec87=>{if('formatBlock'!=_0x59ec87['type'])return;const {data:_0x18fa6c}=_0x59ec87;if(!_0x18fa6c)return;if('indentBlock'!=_0x18fa6c['commandName']&&'outdentBlock'!=_0x18fa6c['commandName'])return;const _0x2fcd5a=_0x59ec87['getItems']()[0x0],_0x4df3a5=_0x5e44db['descriptionFactory']['getItemLabel'](_0x2fcd5a);return'indentBlock'==_0x18fa6c['commandName']?{'type':'format','content':St(_0x1f6773,'*Indent:*\x20%0',_0x4df3a5)}:'outdentBlock'==_0x18fa6c['commandName']?{'type':'format','content':St(_0x1f6773,'*Outdent:*\x20%0',_0x4df3a5)}:void 0x0;});}},me=class extends _0xe2ae1{static get['requires'](){return[gt];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Ee=class extends _0xe2ae1{['afterInit'](){const _0x1e45d0=this['editor'];if(!_0x1e45d0['plugins']['has']('LinkEditing'))return;const _0x136093=_0x1e45d0['plugins']['get']('TrackChangesEditing'),_0x505a02=_0x1e45d0['commands']['get']('link');_0x136093['enableDefaultAttributesIntegration']('link'),_0x136093['enableDefaultAttributesIntegration']('unlink');for(const _0x46f8ad of _0x505a02['manualDecorators'])_0x136093['descriptionFactory']['registerAttributeLabel'](_0x46f8ad['id'],'link\x20('+_0x46f8ad['label']['toLowerCase']()+')');_0x136093['descriptionFactory']['registerDescriptionCallback'](_0x4b7447=>{if('attribute'!=_0x4b7447['type'])return;const {data:_0x510f09}=_0x4b7447;if(!_0x510f09||'linkHref'!=_0x510f09['key'])return;const _0x3dd24f=_0x510f09['newValue'],_0x472642=_0x1e45d0['locale'];return{'type':'format','content':null==_0x3dd24f?St(_0x472642,'*Remove\x20link*'):St(_0x472642,'*Set\x20link:*\x20%0','\x22'+_0x3dd24f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41cb99=this['editor'],_0x558e36=_0x41cb99['locale'];_0x41cb99['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x155ed2=>{if('formatInline'!=_0x155ed2['type'])return;const {data:_0x139beb}=_0x155ed2;if(_0x139beb){if('link'==_0x139beb['commandName']){const _0x5a9403=_0x139beb['commandParams'][0x0];return{'type':'format','content':St(_0x558e36,'*Set\x20link:*\x20%0','\x22'+_0x5a9403+'\x22')};}return'unlink'==_0x139beb['commandName']?{'type':'format','content':St(_0x558e36,'*Remove\x20link*')}:void 0x0;}});}},Te=class extends _0xe2ae1{['afterInit'](){const _0xbde930=this['editor'],_0x546e65=_0xbde930['locale'];if(!_0xbde930['plugins']['has']('LegacyListEditing'))return;const _0x272454=_0xbde930['plugins']['get']('TrackChangesEditing'),_0x1c9043=_0xbde930['plugins']['has']('LegacyTodoListEditing');function _0x16354d(_0x3d5563){return()=>{const _0x472283=_0xbde930['model']['document']['selection'],_0xf8a400=_0xbde930['commands']['get'](_0x3d5563);if(_0xf8a400['value'])return void _0xbde930['execute']('paragraph',{});const _0x5549a9=_0x3d5563['slice'](0x0,-0x4),_0x12d2d8=function(_0x523518,_0x2bed00,_0x2ab8ba){let _0x55a997=Array['from'](_0x523518)['filter'](_0x3815ad=>function(_0x2b0a11,_0x44d20f){return _0x44d20f['checkChild'](_0x2b0a11['parent'],'listItem')&&!_0x44d20f['isObject'](_0x2b0a11);}(_0x3815ad,_0x2ab8ba));_0x55a997=_0x55a997['filter'](_0xe9c867=>!_0xe9c867['is']('element','listItem')||_0xe9c867['getAttribute']('listType')!=_0x2bed00);const _0x36eed9=new Set();for(const _0x5ba97a of _0x55a997)_0x5ba97a['is']('element','listItem')?_0x36eed9['add'](_e(_0x5ba97a)):_0x36eed9['add'](_0x5ba97a);return Array['from'](_0x36eed9);}(_0x472283['getSelectedBlocks'](),_0x5549a9,_0xbde930['model']['schema']);_0xbde930['model']['change'](()=>{for(const _0xb801c0 of _0x12d2d8)_0x272454['markBlockFormat'](_0xb801c0,{'commandName':_0x3d5563,'commandParams':[{'forceValue':!_0xf8a400['value']}],'formatGroupId':'blockName'},pe(_0xb801c0));});};}function _0x12fe32(_0x443294){return()=>{const _0x466144=function(_0x388cbd){let _0x3886e3=Array['from'](_0x388cbd);const _0x5d048e=_0x3886e3['findIndex'](_0x12323a=>'listItem'!=_0x12323a['name']);return _0x5d048e>-0x1&&(_0x3886e3=_0x3886e3['slice'](0x0,_0x5d048e)),_0x3886e3;}(_0xbde930['model']['document']['selection']['getSelectedBlocks']()),_0x758e5c=_0xbde930['model']['createRange'](_0xbde930['model']['createPositionAt'](_0x466144[0x0],'before'),_0xbde930['model']['createPositionAt'](_0x466144[_0x466144['length']-0x1],'end'));_0xbde930['model']['change'](()=>{_0x272454['markBlockFormat'](_0x758e5c,{'commandName':_0x443294,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4e3140){const _0x5e4b7c=new Set();for(const _0x5875bc of _0x4e3140){let _0x514ea5=_0x5875bc['nextSibling'];for(;_0x514ea5&&_0x514ea5['getAttribute']('listIndent')>_0x5875bc['getAttribute']('listIndent');)_0x5e4b7c['add'](_0x514ea5),_0x514ea5=_0x514ea5['nextSibling'];}return Array['from'](_0x5e4b7c);}(_0x466144));});};}_0x272454['enableCommand']('numberedList',_0x16354d('numberedList')),_0x272454['enableCommand']('bulletedList',_0x16354d('bulletedList')),_0x1c9043&&_0x272454['enableCommand']('todoList',_0x16354d('todoList')),_0x272454['enableCommand']('indentList',_0x12fe32('indentList')),_0x272454['enableCommand']('outdentList',_0x12fe32('outdentList')),_0x1c9043&&_0x272454['enableCommand']('checkTodoList',()=>{const _0x4a9976=_0xbde930['commands']['get']('checkTodoList'),_0x451e7f=Array['from'](_0x4a9976['_selectedElements']);_0x451e7f['filter'](_0x3c4f35=>_0x3c4f35['getAttribute']('todoListChecked')!=_0x4a9976['value']),_0xbde930['model']['change'](()=>{for(const _0x4b3832 of _0x451e7f)_0x272454['markBlockFormat'](_0x4b3832,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4a9976['value']}]});});}),_0x272454['descriptionFactory']['registerElementLabel']('listItem',_0x2c0114=>St(_0x546e65,'ELEMENT_LIST_ITEM',_0x2c0114)),_0x272454['descriptionFactory']['registerDescriptionCallback'](_0x3bc54d=>{if('formatBlock'!=_0x3bc54d['type']&&'formatInline'!=_0x3bc54d['type'])return;const {data:_0x55312f}=_0x3bc54d;if(_0x55312f){if('numberedList'==_0x55312f['commandName']||'bulletedList'==_0x55312f['commandName']||'todoList'==_0x55312f['commandName'])switch(_0x55312f['commandName']['replace']('List','')){case'bulleted':return _0x37e340(St(_0x546e65,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x37e340(St(_0x546e65,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x37e340(St(_0x546e65,'ELEMENT_TODO_LIST'));}if('indentList'==_0x55312f['commandName'])return{'type':'format','content':St(_0x546e65,'*Indent:*\x20%0',St(_0x546e65,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x55312f['commandName'])return{'type':'format','content':St(_0x546e65,'*Outdent:*\x20%0',St(_0x546e65,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x55312f['commandName'])return _0x55312f['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x546e65,'*Check\x20item*')}:{'type':'format','content':St(_0x546e65,'*Uncheck\x20item*')};}function _0x37e340(_0xd82a38){return{'type':'format','content':St(_0x546e65,'*Change\x20to:*\x20%0',_0xd82a38)};}});}};function _e(_0x56aa5a){const _0x3997bc=_0x56aa5a['getAttribute']('listIndent');if(0x0==_0x3997bc)return _0x56aa5a;let _0x32dd96=_0x56aa5a;for(;_0x56aa5a['previousSibling']&&_0x56aa5a['previousSibling']['is']('element','listItem');){const _0x13972e=_0x56aa5a['previousSibling']['getAttribute']('listIndent');if(_0x13972e==_0x3997bc)_0x32dd96=_0x56aa5a['previousSibling'];else{if(_0x13972e<_0x3997bc)break;}_0x56aa5a=_0x56aa5a['previousSibling'];}return _0x32dd96;}function pe(_0x4f04b1){const _0x176954=[];if(_0x4f04b1['is']('element','listItem')&&_0x4f04b1['getAttribute']('listIndent')>0x0){let _0x37ec60=_0x4f04b1['nextSibling'];for(;_0x37ec60&&'listItem'==_0x37ec60['name']&&_0x37ec60['getAttribute']('listIndent')==_0x4f04b1['getAttribute']('listIndent');)_0x176954['push'](_0x37ec60),_0x37ec60=_0x37ec60['nextSibling'];}return _0x176954;}var Le=class extends _0xe2ae1{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x43e5aa=this['editor']['config']['get']('list.properties'),_0x1ec8d0=this['editor']['plugins']['get']('TrackChangesEditing');_0x43e5aa['styles']&&_0x1ec8d0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x43e5aa['reversed']&&_0x1ec8d0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x43e5aa['startIndex']&&_0x1ec8d0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1ec8d0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5c1fcc,_0x36ab74={}){const _0x5523d0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e6364=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5523d0['markMultiRangeBlockFormat'](_0x4e6364,{'commandName':'listStyle','commandParams':[{'type':_0x36ab74['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x148fed,_0x279d24={}){const _0x3750ce=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31bd8c=this['_getSuggestionBlocks'](_0x45e5f1=>_0x45e5f1['is']('element','listItem')&&'numbered'===_0x45e5f1['getAttribute']('listType'));if(_0x31bd8c['length']<0x1)return;const _0x90c909=_0x31bd8c['map'](_0x3a6f9b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3a6f9b,'before'),this['editor']['model']['createPositionAt'](_0x3a6f9b,0x0)));this['editor']['model']['change'](()=>{_0x3750ce['markMultiRangeBlockFormat'](_0x90c909,{'commandName':'listReversed','commandParams':[{'reversed':_0x279d24['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5530a0,_0xcb6502={}){const _0x1b8afd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e5e36=this['_getSuggestionBlocks'](_0x20d34d=>_0x20d34d['is']('element','listItem')&&'numbered'===_0x20d34d['getAttribute']('listType'));if(_0x5e5e36['length']<0x1)return;const _0x153edd=_0x5e5e36['map'](_0x1050e1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1050e1,'before'),this['editor']['model']['createPositionAt'](_0x1050e1,0x0)));this['editor']['model']['change'](()=>{_0x1b8afd['markMultiRangeBlockFormat'](_0x153edd,{'commandName':'listStart','commandParams':[{'startIndex':_0xcb6502['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x487d2d){if('formatBlock'!=_0x487d2d['type']&&'formatInline'!=_0x487d2d['type'])return;const _0x50ae4d=this['editor']['locale'],{data:_0x2ef216}=_0x487d2d;if(!_0x2ef216)return;let _0x51b808,_0x2f916a;switch(_0x2ef216['commandName']){case'listStyle':_0x51b808='*Change\x20to:*\x20%0',_0x2f916a={'type':'format','content':St(_0x50ae4d,_0x51b808,St(_0x50ae4d,this['_getTranslationKeyForListStyle'](_0x2ef216['commandParams'][0x0]['type'])))};break;case'listReversed':_0x51b808=_0x2ef216['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2f916a={'type':'format','content':St(_0x50ae4d,_0x51b808)};break;case'listStart':_0x51b808='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2f916a={'type':'format','content':St(_0x50ae4d,_0x51b808,_0x2ef216['commandParams'][0x0]['startIndex'])};}return _0x2f916a;}['_getSuggestionBlocksForListStyle'](){const _0x2c85c7=this['editor']['plugins']['get']('LegacyListUtils');let _0x5f1c05=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5f1c05[0x0]?.['is']('element','listItem')&&_0x5f1c05['unshift'](..._0x2c85c7['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5f1c05[_0x5f1c05['length']-0x1]?.['is']('element','listItem')&&_0x5f1c05['push'](..._0x2c85c7['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5f1c05=[...new Set(_0x5f1c05)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5f1c05=_0x5f1c05['filter'](_0x5b9f01=>_0x5b9f01['is']('element','listItem'))),_0x5f1c05;}['_getSuggestionBlocks'](_0x27e299){const _0x2cf419=this['editor']['plugins']['get']('LegacyListUtils');let _0x265722=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x27e299)['map'](_0x26dcfb=>{const _0x5b3f6b=this['editor']['model']['createPositionAt'](_0x26dcfb,0x0);return[..._0x2cf419['getSiblingNodes'](_0x5b3f6b,'backward'),..._0x2cf419['getSiblingNodes'](_0x5b3f6b,'forward')];})['flat']();return _0x265722=[...new Set(_0x265722)],_0x265722;}['_getTranslationKeyForListStyle'](_0xbfd516){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xbfd516)||'default')['toUpperCase']()+'_LIST_'+_0xbfd516['toUpperCase']()['replace'](/-/g,'_');}},Ie=class extends _0xe2ae1{['afterInit'](){const _0x52f5a7=this['editor'];if(!_0x52f5a7['plugins']['has']('MediaEmbedEditing'))return;const _0x30f448=_0x52f5a7['plugins']['get']('TrackChangesEditing'),_0x5f5007=_0x52f5a7['locale'];_0x30f448['enableCommand']('mediaEmbed'),_0x30f448['descriptionFactory']['registerElementLabel']('media',_0x3a79c7=>St(_0x5f5007,'ELEMENT_MEDIA',_0x3a79c7)),_0x52f5a7['plugins']['has']('MediaEmbedResizeEditing')&&(_0x30f448['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x30f448['descriptionFactory']['registerDescriptionCallback'](_0x26c03d=>{if('attribute'!=_0x26c03d['type'])return;const {data:_0x3eff30}=_0x26c03d;if(!_0x3eff30||'resizedWidth'!=_0x3eff30['key'])return;const _0x15ad75=_0x26c03d['getContainedElement']();return _0x15ad75&&_0x15ad75['is']('element','media')?{'type':'format','content':St(_0x5f5007,'*Set\x20format:*\x20%0',St(_0x5f5007,'FORMAT_MEDIA_SIZE'))}:void 0x0;}));}},Ae=class extends _0xe2ae1{['afterInit'](){const _0x461ad5=this['editor'];if(!_0x461ad5['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x56bab2=_0x461ad5['plugins']['get']('TrackChangesEditing'),_0x45d13b=_0x461ad5['locale'],_0x255186=_0x461ad5['plugins']['get']('MediaEmbedStyleEditing'),_0x9e42e8={};for(const _0x4fc2d4 of _0x255186['normalizedStyles'])_0x9e42e8[_0x4fc2d4['name']]=_0x4fc2d4['title']['toLowerCase']();const _0x1b115b=_0x255186['normalizedStyles']['find'](_0x3f9fbd=>_0x3f9fbd['isDefault'])?.['name'];_0x56bab2['enableCommand']('mediaStyle',(_0x16cf6d,_0x4ffd4f)=>{const _0x5b80b8=_0x461ad5['plugins']['get']('Users')['me'],_0x4b6f59=_0x461ad5['commands']['get']('mediaStyle'),_0x2b67bc=function(_0x234f3b){const _0x57c1db=_0x234f3b['model']['document']['selection']['getSelectedElement']();return _0x57c1db&&_0x57c1db['is']('element','media')?_0x57c1db:null;}(_0x461ad5);if(!_0x2b67bc)return;const _0x5c05ac=_0x461ad5['model']['createRangeOn'](_0x2b67bc);let _0x552567=_0x4b6f59['value'];if(_0x552567==_0x4ffd4f['value'])return;const _0x224d58={'commandName':'mediaStyle','commandParams':[_0x4ffd4f],'formatGroupId':_0x1c6111()};_0x461ad5['model']['change'](()=>{_0x56bab2['getSuggestions']()['filter'](_0x479925=>_0x479925['isInContent']&&_0x5b80b8==_0x479925['author']&&'formatBlock'==_0x479925['type']&&'mediaStylePostApply'==_0x479925['subType']&&_0x479925['getFirstRange']()['isEqual'](_0x5c05ac))['forEach'](_0x39d52d=>_0x56bab2['discardSuggestion'](_0x39d52d['head'])),_0x4b6f59['refresh'](),_0x552567=_0x4b6f59['value'],_0x552567!=_0x4ffd4f['value']&&_0x56bab2['markBlockFormat'](_0x2b67bc,{..._0x224d58,'commandReversedParams':[{'value':'string'==typeof _0x552567?_0x552567:null}]},[],'mediaStylePostApply');});}),_0x56bab2['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x56bab2['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x56d348,_0x2a3b37)=>{_0x56bab2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x56d348,{'commandName':_0x2a3b37['commandName'],'commandParams':_0x2a3b37['commandReversedParams']});}),_0x56bab2['descriptionFactory']['registerDescriptionCallback'](_0x252c29=>{if('formatBlock'!=_0x252c29['type'])return;const {data:_0x5224e7}=_0x252c29;if(!_0x5224e7||'mediaStyle'!=_0x5224e7['commandName'])return;const _0x46d575=_0x5224e7['commandParams'][0x0]['value']||_0x1b115b;return _0x46d575?{'type':'format','content':St(_0x45d13b,'*Format:*\x20%0',_0x9e42e8[_0x46d575]||_0x46d575)}:void 0x0;});}},be=class extends _0xe2ae1{['afterInit'](){const _0x9c8339=this['editor'];_0x9c8339['plugins']['has']('MentionEditing')&&_0x9c8339['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ke=class extends _0xe2ae1{['afterInit'](){const _0x45489c=this['editor'];if(!_0x45489c['plugins']['has']('MergeFieldsEditing'))return;const _0x15ef6a=_0x45489c['plugins']['get']('TrackChangesEditing'),_0x3a56ed=_0x45489c['locale'];_0x15ef6a['enableCommand']('insertMergeField'),_0x15ef6a['enableCommand']('insertMergeFieldBlock'),_0x15ef6a['enableCommand']('insertMergeFieldImage'),_0x15ef6a['descriptionFactory']['registerElementLabel']('mergeField',_0x3ac810=>St(_0x3a56ed,'ELEMENT_MERGE_FIELD',_0x3ac810)),_0x15ef6a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x57cb3d=>St(_0x3a56ed,'ELEMENT_MERGE_FIELD',_0x57cb3d)),_0x15ef6a['descriptionFactory']['registerDescriptionCallback'](_0xe93815=>{if('insertion'!=_0xe93815['type']&&'deletion'!=_0xe93815['type'])return;const _0x3c0808=_0xe93815['getContainedElement']();if(null==_0x3c0808)return;const _0x3c0e51=_0x45489c['plugins']['get']('MergeFieldsEditing');let _0x24c17a;switch(_0x3c0e51['getMergeFieldType'](_0x3c0808)){case null:return;case'image':{const _0x3a2db4=_0x3c0e51['unwrapAffixes'](_0x3c0808['getAttribute']('src'));_0x24c17a=_0x3c0e51['getLabel'](_0x3a2db4)||_0x3a2db4;break;}default:{const _0x1ca250=_0x3c0808['getAttribute']('id');_0x24c17a=_0x3c0e51['getLabel'](_0x1ca250)||_0x1ca250;break;}}return'insertion'==_0xe93815['type']?{'type':'insertion','content':St(_0x3a56ed,'*Insert:*\x20%0','\x22'+_0x24c17a+'\x22\x20'+St(_0x3a56ed,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':St(_0x3a56ed,'*Remove:*\x20%0','\x22'+_0x24c17a+'\x22\x20'+St(_0x3a56ed,'ELEMENT_MERGE_FIELD'))};});}},Ce=class extends _0xe2ae1{['afterInit'](){const _0x25cd31=this['editor'],_0x1f836d=_0x25cd31['plugins']['get']('TrackChangesEditing');_0x25cd31['plugins']['has']('MultiLevelList')&&(_0x1f836d['enableDefaultAttributesIntegration']('multiLevelList'),_0x1f836d['descriptionFactory']['registerDescriptionCallback'](_0x390383=>this['handleDescriptions'](_0x390383)));}['handleDescriptions'](_0x54fcfb){const _0x56e2b7=this['editor']['locale'],{data:_0x504d72}=_0x54fcfb,_0x273588={'type':'format','content':''};if(_0x504d72&&'listMarkerStyle'==_0x504d72['key']){if(!_0x504d72['oldValue'])return{'type':'format','content':St(_0x56e2b7,'*Set\x20format:*\x20%0',St(_0x56e2b7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x504d72['newValue']+')'};if(!_0x504d72['newValue']){let _0x1babea=_0x54fcfb['head'];for(;_0x1babea;){if(_0x1babea['data']&&'listType'==_0x1babea['data']['key']&&_0x1babea['data']['newValue'])return _0x273588;_0x1babea=_0x1babea['next'];}return{'type':'format','content':St(_0x56e2b7,'*Remove\x20format:*\x20%0',St(_0x56e2b7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x504d72['oldValue']+')'};}}}},Re=class extends _0xe2ae1{['afterInit'](){const _0x5ab6a4=this['editor'];if(!_0x5ab6a4['plugins']['has']('PageBreakEditing'))return;_0x5ab6a4['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x227931=_0x5ab6a4['plugins']['get']('TrackChangesEditing'),_0x52727d=_0x5ab6a4['locale'];_0x227931['descriptionFactory']['registerElementLabel']('pageBreak',_0x4ef9e2=>St(_0x52727d,'ELEMENT_PAGE_BREAK',_0x4ef9e2));}},Ne=class extends _0xe2ae1{['afterInit'](){const _0x6e0bb0=this['editor'];if(!_0x6e0bb0['plugins']['has']('Paragraph'))return;const _0x15a24e=_0x6e0bb0['locale'],_0x41831f=_0x6e0bb0['plugins']['get']('TrackChangesEditing');_0x41831f['descriptionFactory']['registerElementLabel']('paragraph',_0x35f5c2=>St(_0x15a24e,'ELEMENT_PARAGRAPH',_0x35f5c2)),_0x41831f['enableDefaultAttributesIntegration']('paragraph'),_0x41831f['enableCommand']('insertParagraph');const _0x5b7214=_0x41831f['descriptionFactory'];_0x5b7214['registerDescriptionCallback'](_0x2d8607=>{if('insertion'!==_0x2d8607['type'])return;const {start:_0x438061,end:_0x422a48}=_0x2d8607['getFirstRange']();if(!_0x438061['isTouching'](_0x422a48)||!_0x438061['nodeAfter'])return;const _0x1a4ade=_0x6e0bb0['model']['schema'],_0x55e1da=_0x438061['nodeAfter'];return _0x1a4ade['isBlock'](_0x55e1da)&&!_0x1a4ade['isLimit'](_0x55e1da)&&_0x1a4ade['checkChild'](_0x55e1da,'$text')?{'type':'insertion','content':St(_0x15a24e,'*Insert:*\x20%0',_0x5b7214['getItemLabel'](_0x55e1da,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a18a9=this['editor'],_0xe7c44c=_0x1a18a9['locale'];_0x1a18a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5de416=>{if('formatBlock'!=_0x5de416['type'])return;const {data:_0x2b7a01}=_0x5de416;return _0x2b7a01&&'paragraph'==_0x2b7a01['commandName']?{'type':'format','content':St(_0xe7c44c,'*Change\x20to:*\x20%0',St(_0xe7c44c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},ye=class extends _0xe2ae1{['afterInit'](){const _0x6b2b59=this['editor'];_0x6b2b59['commands']['get']('replaceSource')&&_0x6b2b59['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Se=class extends _0xe2ae1{['afterInit'](){const _0xd02980=this['editor'];_0xd02980['plugins']['has']('RemoveFormatEditing')&&(_0xd02980['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4eaf2d=this['editor'];_0x4eaf2d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf5f355=>{if('formatBlock'!=_0xf5f355['type']&&'formatInline'!=_0xf5f355['type'])return;const {data:_0x40a731}=_0xf5f355;return _0x40a731&&'removeFormat'==_0x40a731['commandName']?{'type':'format','content':St(_0x4eaf2d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Me=class extends _0xe2ae1{['afterInit'](){const _0x2c5de6=this['editor'];if(!_0x2c5de6['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x37efbc=_0x2c5de6['plugins']['get']('TrackChangesEditing');_0x37efbc['enableCommand']('goToPreviousRestrictedEditingException'),_0x37efbc['enableCommand']('goToNextRestrictedEditingException');const _0x446e89=_0x2c5de6['plugins']['get']('RestrictedEditingModeEditing');_0x446e89['enableCommand']('trackChanges'),_0x446e89['enableCommand']('acceptSuggestion'),_0x446e89['enableCommand']('discardSuggestion'),_0x446e89['enableCommand']('acceptAllSuggestions'),_0x446e89['enableCommand']('discardAllSuggestions'),_0x446e89['enableCommand']('acceptSelectedSuggestions'),_0x446e89['enableCommand']('discardSelectedSuggestions');}},Oe=class extends _0xe2ae1{['afterInit'](){const _0x2a606d=this['editor'];if(!_0x2a606d['plugins']['has']('ShiftEnter'))return;const _0x1fb400=_0x2a606d['plugins']['get']('TrackChangesEditing');_0x1fb400['enableCommand']('shiftEnter'),_0x1fb400['descriptionFactory']['registerElementLabel']('softBreak',_0x531f06=>St(_0x2a606d['locale'],'ELEMENT_LINE_BREAK',_0x531f06));}};function we(_0x26c6a3,_0xc6e36c,_0x35f60b){const _0x218757=[];for(const _0x26a859 of _0xc6e36c['getItems']())_0x26a859['hasAttribute'](_0x26c6a3)&&_0x218757['push'](_0x35f60b['createRangeOn'](_0x26a859));return _0x218757;}var Fe=class extends _0xe2ae1{['afterInit'](){const _0x5020e7=this['editor'],_0x33f306=_0x5020e7['plugins']['get']('TrackChangesEditing');_0x5020e7['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x33f306['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x5df797=this['editor'],_0x2edfc3=_0x5df797['model'],_0x57388e=_0x5df797['locale'],_0x464241=_0x5df797['plugins']['get']('TrackChangesEditing'),_0x416a1b='restrictedEditingException',_0x247500=_0x5df797['commands']['get'](_0x416a1b);_0x464241['enableCommand'](_0x416a1b,(_0x5185e8,_0x517fed={})=>{const _0x41ae13=_0x2edfc3['document']['selection'];if(_0x41ae13['isCollapsed'])return void _0x5185e8(_0x517fed);const _0x2042b0=void 0x0!==_0x517fed['forceValue']?_0x517fed['forceValue']:!_0x247500['value'];_0x2edfc3['change'](()=>{const _0x5154b0=Array['from'](_0x41ae13['getRanges']());for(const _0x1fac68 of _0x5154b0){const _0x42ccc5=_0x2042b0?[_0x1fac68]:we(_0x416a1b,_0x1fac68,_0x2edfc3);for(const _0x4dfb69 of _0x42ccc5)_0x464241['markInlineFormat'](_0x4dfb69,{'commandName':_0x416a1b,'commandParams':[{'forceValue':_0x2042b0}]});}});}),_0x464241['descriptionFactory']['registerDescriptionCallback'](_0x5470a2=>{if('formatBlock'!=_0x5470a2['type']&&'formatInline'!=_0x5470a2['type'])return;const {data:_0x1517c2}=_0x5470a2;return _0x1517c2&&_0x1517c2['commandName']==_0x416a1b?_0x1517c2['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x57388e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x57388e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x2dee65=this['editor'],_0x411a8c=_0x2dee65['locale'],_0x5e2e65=_0x2dee65['plugins']['get']('TrackChangesEditing'),_0x3ea971='restrictedEditingExceptionBlock',_0x2525c0=this['editor']['commands']['get'](_0x3ea971);_0x5e2e65['enableCommand'](_0x3ea971,(_0x142af7,_0x7c4fd3={})=>{const _0x25c183=this['editor']['model']['document']['selection'],_0x530d48=_0x7c4fd3&&void 0x0!==_0x7c4fd3['forceValue']?_0x7c4fd3['forceValue']:!_0x2525c0['value'];let _0x19e75a=[];_0x19e75a=At(_0x530d48?Array['from'](_0x25c183['getSelectedBlocks']())['filter'](_0x598f7a=>function(_0x843c43){return!!_0x843c43['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x598f7a)||function(_0x40a601,_0x2fbc75){const _0x4cebf5=_0x2fbc75['createContext'](_0x40a601['parent']);return!!_0x2fbc75['checkChild'](_0x4cebf5,'restrictedEditingException')&&!!_0x2fbc75['checkChild'](_0x4cebf5['push']('restrictedEditingException'),_0x40a601);}(_0x598f7a,this['editor']['model']['schema'])):Array['from'](_0x25c183['getSelectedBlocks']())['map'](_0x27b80a=>function(_0x344776){let _0xd7c240=_0x344776;for(;_0xd7c240['parent'];){if('restrictedEditingException'==_0xd7c240['parent']['name'])return _0xd7c240;_0xd7c240=_0xd7c240['parent'];}return null;}(_0x27b80a))['filter'](_0x50d90e=>!!_0x50d90e),_0x2dee65['model']),_0x2dee65['model']['change'](()=>{for(const _0xcd80d9 of _0x19e75a)_0x5e2e65['markBlockFormat'](_0xcd80d9,{'commandName':_0x3ea971,'commandParams':[{'forceValue':_0x530d48}]});});}),_0x5e2e65['descriptionFactory']['registerDescriptionCallback'](_0x301e2a=>{const {data:_0x550f02}=_0x301e2a;if(_0x550f02&&_0x550f02['commandName']==_0x3ea971)return _0x550f02['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x411a8c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x411a8c,'FORMAT_RESTRICTED_DISABLED')};});}},Be=class extends _0xe2ae1{['afterInit'](){const _0x5d44cb=this['editor'];_0x5d44cb['plugins']['has']('Style')&&_0x5d44cb['plugins']['has']('DataSchema')&&(_0x5d44cb['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x58a0c0=this['editor'],_0x400988=_0x58a0c0['locale'];_0x58a0c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30b57f=>{if('formatBlock'!=_0x30b57f['type']&&'formatInline'!=_0x30b57f['type'])return;const {data:_0x467c5e}=_0x30b57f;return _0x467c5e&&'style'===_0x467c5e['commandName']?_0x467c5e['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x400988,'*Set\x20format:*\x20%0',_0x467c5e['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':St(_0x400988,'*Remove\x20format:*\x20%0',_0x467c5e['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},ve=class extends _0xe2ae1{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x28d931){super(_0x28d931),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x506106=this['editor'],_0x372c50=_0x506106['model']['document']['selection'];if(!_0x506106['plugins']['has']('TableEditing'))return;const _0x4b947c=_0x506106['locale'],_0x44bf63=_0x506106['plugins']['get']('TrackChangesEditing'),_0x3fc396=_0x506106['plugins']['get']('TableUtils');_0x44bf63['descriptionFactory']['registerElementLabel']('table',_0x728042=>St(_0x4b947c,'ELEMENT_TABLE',_0x728042)),this['_setupColumnsRowsFixing'](),_0x44bf63['enableCommand']('insertTable'),_0x44bf63['enableCommand']('selectTableRow'),_0x44bf63['enableCommand']('selectTableColumn');for(const _0x54cf26 of['insertTableRowAbove','insertTableRowBelow']){const _0x2b518c=_0x506106['commands']['get'](_0x54cf26);_0x44bf63['enableCommand'](_0x54cf26,_0x553cdc=>{_0x506106['model']['change'](_0x40e94e=>{_0x553cdc();const _0x48d324='above'===_0x2b518c['order'],_0x694160=_0x3fc396['getSelectionAffectedTableCells'](_0x372c50),_0x1b02bd=_0x3fc396['getRowIndexes'](_0x694160),_0x2deddc=_0x48d324?_0x1b02bd['first']-0x1:_0x1b02bd['last']+0x1,_0x13d57c=_0x694160[0x0]['findAncestor']('table'),_0x2c790b=_0x3fc396['createTableWalker'](_0x13d57c,{'startRow':_0x2deddc,'endRow':_0x2deddc}),_0x485303=Array['from'](_0x2c790b)['map'](_0x125bf2=>_0x40e94e['createRangeOn'](_0x125bf2['cell']));_0x44bf63['markMultiRangeInsertion'](_0x485303,'tableRow');});});}for(const _0x3bbae0 of['insertTableColumnLeft','insertTableColumnRight']){const _0x53cfa4=_0x506106['commands']['get'](_0x3bbae0);_0x44bf63['enableCommand'](_0x3bbae0,_0x256753=>{_0x506106['model']['change'](_0x1edee7=>{_0x256753();const _0x577679='left'===_0x53cfa4['order'],_0x292644=_0x3fc396['getSelectionAffectedTableCells'](_0x372c50),_0x3e85fb=_0x3fc396['getColumnIndexes'](_0x292644),_0x65363b=_0x577679?_0x3e85fb['first']-0x1:_0x3e85fb['last']+0x1,_0x414a0f=_0x292644[0x0]['findAncestor']('table'),_0x44e08f=_0x3fc396['createTableWalker'](_0x414a0f,{'startRow':0x0,'column':_0x65363b,'includeAllSlots':!0x1}),_0x4652d4=Array['from'](_0x44e08f)['map'](_0x71158e=>_0x1edee7['createRangeOn'](_0x71158e['cell']));_0x44bf63['markMultiRangeInsertion'](_0x4652d4,'tableColumn');});});}for(const _0x45c08e of['removeTableRow','removeTableColumn']){const _0x57ad1b=_0x45c08e['substr'](0xb),_0x510366=_0x57ad1b['toLowerCase'](),_0x3c7ca5=_0x510366['substr'](0x0,0x3)+'span',_0x24af7f='table'+_0x57ad1b,_0x1413d1='min'+_0x57ad1b,_0x243eed='max'+_0x57ad1b;_0x44bf63['enableCommand'](_0x45c08e,()=>{_0x506106['model']['change'](_0x14b322=>{const _0x50e924=_0x3fc396['getSelectionAffectedTableCells'](_0x372c50),_0x505968=_0x50e924[0x0]['findAncestor']('table');let _0x5f03b7;if('removeTableRow'==_0x45c08e){const _0x34acb8=_0x3fc396['getRowIndexes'](_0x50e924);_0x5f03b7={'startRow':_0x34acb8['first'],'endRow':_0x34acb8['last'],'includeAllSlots':!0x0};}else{const _0x2b1f30=_0x3fc396['getColumnIndexes'](_0x50e924);_0x5f03b7={'startColumn':_0x2b1f30['first'],'endColumn':_0x2b1f30['last'],'includeAllSlots':!0x0};}const _0x38f069=_0x3fc396['createTableWalker'](_0x505968,_0x5f03b7),_0x1e7480=Array['from'](_0x38f069)['map'](({cell:_0x18e5f5})=>_0x18e5f5),_0x286604=De(_0x1e7480['filter'](_0x176227=>_0x176227['hasAttribute'](_0x3c7ca5))),_0x405711=De(_0x1e7480['filter'](_0x1c1f59=>!_0x1c1f59['hasAttribute'](_0x3c7ca5)))['map'](_0x58d9be=>_0x14b322['createRangeOn'](_0x58d9be)),_0x593cac=_0x44bf63['markMultiRangeDeletion'](_0x405711,_0x24af7f);if(_0x593cac&&('tableRow'==_0x593cac['subType']||'tableColumn'==_0x593cac['subType'])){const _0x463d64=this['_getSuggestionCoords'](_0x593cac);for(const _0xa6abea of _0x286604){const _0xa18904=_0x14b322['createRangeOn'](_0xa6abea),_0x156523=_0x3fc396['getCellLocation'](_0xa6abea),_0x166a80=_0xa6abea['getAttribute'](_0x3c7ca5)-0x1,_0x37d30d=_0x463d64[_0x1413d1],_0xbe555f=_0x463d64[_0x243eed];_0x37d30d<=_0x156523[_0x510366]&&_0x156523[_0x510366]+_0x166a80<=_0xbe555f&&_0x593cac['addRange'](_0xa18904);}}});});}function _0x3eb089(_0x19bde2){const _0xd993b9=Array['from'](_0x372c50['getRanges']())['map'](_0x2ba21b=>rt['fromRange'](_0x2ba21b));_0x506106['model']['change'](_0x43148d=>{const _0x464e98=_0x43148d['batch'];_0x19bde2=_0x19bde2['filter'](_0xbe18d6=>'$graveyard'!=_0xbe18d6['root']['rootName']),_0x43148d['setSelection'](_0x19bde2),_0x506106['commands']['get']('removeTableRow')['refresh'](),_0x506106['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x506106['model']['enqueueChange'](()=>{_0x506106['model']['enqueueChange'](_0x464e98,_0x3ca9fc=>{const _0x38e67b=_0xd993b9['filter'](_0x14426b=>'$graveyard'!=_0x14426b['root']['rootName']);_0x38e67b['length']>0x0&&_0x3ca9fc['setSelection'](_0x38e67b);for(const _0x51888d of _0xd993b9)_0x51888d['detach']();});});});}function _0x564bf0(_0x451f17){_0x506106['model']['change'](_0x2e50c0=>{const _0x74b433=Array['from'](_0x372c50['getRanges']())['map'](_0x3354ec=>rt['fromRange'](_0x3354ec)),_0x180e17=[];for(const _0xa046ef of _0x451f17)for(const _0x2924ed of _0xa046ef['getItems']({'shallow':!0x0}))_0x180e17['push'](_0x2924ed);for(const _0x1c7149 of _0x180e17)'$graveyard'!=_0x1c7149['root']['rootName']&&(_0x2e50c0['setSelection'](_0x2e50c0['createPositionAt'](_0x1c7149,0x0)),_0x506106['commands']['get']('removeTableColumn')['refresh'](),_0x506106['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2d89f3=_0x74b433['filter'](_0x419a18=>'$graveyard'!=_0x419a18['root']['rootName']);_0x2d89f3['length']>0x0&&_0x2e50c0['setSelection'](_0x2d89f3);for(const _0x46cd7a of _0x74b433)_0x46cd7a['detach']();});}function _0x2067e7(_0x1775a9,_0x385c2b){return _0x385c2b['every'](_0x363682=>_0x1775a9['some'](_0x45a464=>_0x45a464['end']['isEqual'](_0x363682['start'])||_0x363682['end']['isEqual'](_0x45a464['start'])));}function _0x36c38f(_0x1763a2,_0x784b47){return!_0x1763a2['some'](_0xe49f8e=>_0x784b47['some'](_0xe8676b=>_0xe49f8e['isIntersecting'](_0xe8676b)))&&_0x1763a2['some'](_0x4575c=>_0x784b47['some'](_0x2d1760=>_0x4575c['end']['isTouching'](_0x2d1760['start'])));}_0x44bf63['descriptionFactory']['registerDescriptionCallback'](_0x5c0dad=>{if('insertion'!=_0x5c0dad['type']&&'deletion'!=_0x5c0dad['type'])return;const _0x5a1d53=_0x5c0dad['getContainedElement']();if(null!=_0x5a1d53&&_0x5a1d53['is']('element','table')){if('insertion'==_0x5c0dad['type']){const _0xe37cd7=_0x5c0dad['getItems']()['filter'](_0x3ec515=>_0x3ec515['is']('$textProxy'))['map'](_0x254717=>_0x254717['data']);if(_0xe37cd7['length'])return{'type':'insertion','content':St(_0x4b947c,'*Insert:*\x20%0',St(_0x4b947c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xe37cd7['join']('\x20')+'\x22'))};}if('deletion'==_0x5c0dad['type']){const _0xf738cd=_0x5c0dad['getItems']()['filter'](_0x4cbe79=>_0x4cbe79['is']('$textProxy'))['map'](_0xf2a442=>_0xf2a442['data']);if(_0xf738cd['length'])return{'type':'deletion','content':St(_0x4b947c,'*Remove:*\x20%0',St(_0x4b947c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xf738cd['join']('\x20')+'\x22'))};}}}),_0x44bf63['descriptionFactory']['registerDescriptionCallback'](_0x54075e=>{if('tableRow'==_0x54075e['subType']){const _0x4673aa=_0x54075e['getItems']()['filter'](_0x43ed87=>_0x43ed87['is']('$textProxy'))['map'](_0x1a9fdd=>_0x1a9fdd['data']),_0x5388e1=this['_getSuggestionCoords'](_0x54075e),_0x575870=_0x5388e1['maxRow']-_0x5388e1['minRow']+0x1;if('insertion'==_0x54075e['type'])return _0x4673aa['length']?{'type':'insertion','content':St(_0x4b947c,'*Insert:*\x20%0',St(_0x4b947c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x575870,'\x22'+_0x4673aa['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0x4b947c,'*Insert:*\x20%0',St(_0x4b947c,'ELEMENT_TABLE_ROW',_0x575870))};if('deletion'==_0x54075e['type'])return _0x4673aa['length']?{'type':'deletion','content':St(_0x4b947c,'*Remove:*\x20%0',St(_0x4b947c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x575870,'\x22'+_0x4673aa['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0x4b947c,'*Remove:*\x20%0',St(_0x4b947c,'ELEMENT_TABLE_ROW',_0x575870))};}if('tableColumn'==_0x54075e['subType']){const _0x42bc67=_0x54075e['getItems']()['filter'](_0x7cf265=>_0x7cf265['is']('$textProxy'))['map'](_0x4fc84d=>_0x4fc84d['data']),_0x3786ba=this['_getSuggestionCoords'](_0x54075e),_0x39f507=_0x3786ba['maxColumn']-_0x3786ba['minColumn']+0x1;if('insertion'==_0x54075e['type'])return _0x42bc67['length']?{'type':'insertion','content':St(_0x4b947c,'*Insert:*\x20%0',St(_0x4b947c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x39f507,'\x22'+_0x42bc67['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0x4b947c,'*Insert:*\x20%0',St(_0x4b947c,'ELEMENT_TABLE_COLUMN',_0x39f507))};if('deletion'==_0x54075e['type'])return _0x42bc67['length']?{'type':'deletion','content':St(_0x4b947c,'*Remove:*\x20%0',St(_0x4b947c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x39f507,'\x22'+_0x42bc67['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0x4b947c,'*Remove:*\x20%0',St(_0x4b947c,'ELEMENT_TABLE_COLUMN',_0x39f507))};}}),_0x44bf63['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3eb089),_0x44bf63['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3eb089),_0x44bf63['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x564bf0),_0x44bf63['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x564bf0),_0x44bf63['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2067e7),_0x44bf63['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2067e7),_0x44bf63['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x36c38f),_0x44bf63['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x36c38f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5a7776=this['editor'],_0x128172=_0x5a7776['model']['document']['selection'];return(_0x55722d,_0x449ef5)=>{_0x5a7776['model']['change'](_0xa7366b=>{const {commandName:_0x529418,commandParams:_0x545b8e}=_0x449ef5;let _0x22bc43=_0x55722d[0x0]['end']['nodeBefore'];_0x545b8e&&_0x545b8e[0x0]&&!0x1===_0x545b8e[0x0]['forceValue']&&(_0x22bc43=_0x55722d[0x0]['start']['nodeAfter']);const _0x8d8837=_0xa7366b['createRangeIn'](_0x22bc43);if('$graveyard'==_0x8d8837['root']['rootName'])return;const _0x420612=Array['from'](_0x128172['getRanges']())['map'](_0x40e17f=>rt['fromRange'](_0x40e17f));_0xa7366b['setSelection'](_0x8d8837),_0x5a7776['commands']['get'](_0x529418)['refresh'](),_0x545b8e['push']({'forceDefaultExecution':!0x0}),_0x5a7776['execute'](_0x529418,..._0x545b8e);const _0x4e5f28=_0x420612['filter'](_0x4a9528=>'$graveyard'!=_0x4a9528['root']['rootName']);_0x4e5f28['length']>0x0&&_0xa7366b['setSelection'](_0x4e5f28);for(const _0xad222 of _0x420612)_0xad222['detach']();});};}['_getCoordsForCells'](_0x340ab9){const _0x5584df=this['editor']['plugins']['get']('TableUtils');let _0x49b179=Number['MAX_SAFE_INTEGER'],_0x160694=Number['MIN_SAFE_INTEGER'],_0x4f4396=Number['MAX_SAFE_INTEGER'],_0x317ad0=Number['MIN_SAFE_INTEGER'];for(const _0x489da3 of _0x340ab9){if('$graveyard'==_0x489da3['root']['rootName'])continue;const {row:_0x57fe9c,column:_0x27603f}=_0x5584df['getCellLocation'](_0x489da3),_0x32340b=_0x489da3['hasAttribute']('rowspan')?_0x489da3['getAttribute']('rowspan')-0x1:0x0,_0x21be02=_0x489da3['hasAttribute']('colspan')?_0x489da3['getAttribute']('colspan')-0x1:0x0;_0x49b179=_0x57fe9c<_0x49b179?_0x57fe9c:_0x49b179,_0x160694=_0x57fe9c+_0x32340b>_0x160694?_0x57fe9c+_0x32340b:_0x160694,_0x4f4396=_0x27603f<_0x4f4396?_0x27603f:_0x4f4396,_0x317ad0=_0x27603f+_0x21be02>_0x317ad0?_0x27603f+_0x21be02:_0x317ad0;}return{'minRow':_0x49b179,'maxRow':_0x160694,'minColumn':_0x4f4396,'maxColumn':_0x317ad0};}['_setupColumnsRowsFixing'](){const _0x4f1d1e=this['editor'],_0x3faf22=_0x4f1d1e['plugins']['get']('TrackChangesEditing'),_0x5a825f=_0x4f1d1e['plugins']['get']('TableUtils');_0x4f1d1e['model']['document']['on']('change:data',()=>{const _0x46d527=Array['from'](_0x4f1d1e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x51a1ba,data:_0x1cdc2b}of _0x46d527){const {group:_0xb7f553,id:_0x27731e,subType:_0x2dbab7}=tt(_0x51a1ba);if('suggestion'!=_0xb7f553)continue;if(null!=_0x1cdc2b['oldRange'])continue;const _0x17c4a1=_0x3faf22['getSuggestion'](_0x27731e);this['_tablePostFixingSubtypes']['includes'](_0x2dbab7)&&this['_tableSuggestions']['add'](_0x17c4a1);}},{'priority':'low'});const _0x24c9d6=(_0x29473b,_0xc746ce)=>{let _0x394002=!0x1;const _0xf9d42d=_0xc746ce['createRangeOn'](_0x29473b),_0x8e669b=_0x29473b['findAncestor']('table'),_0x332438=_0x5a825f['getCellLocation'](_0x29473b);for(const _0x1ae7ac of this['_tableSuggestions']){const _0x29051a=_0x1ae7ac['subType'],_0x533fbd=_0x29051a['startsWith']('tablePaste'),_0x446a5e=_0x29051a['substr'](_0x533fbd?0xa:0x5),_0x1e052f=_0x446a5e['toLowerCase'](),_0x88db4a=_0x1e052f['substr'](0x0,0x3)+'span',_0x3a18d8='min'+_0x446a5e,_0x5ce867='max'+_0x446a5e;if(!_0x1ae7ac['isInContent'])continue;if(_0x8e669b!=_0x1ae7ac['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1ae7ac['isIntersectingWithRange'](_0xf9d42d))continue;const _0x2e6468=_0x29473b['hasAttribute'](_0x88db4a)?_0x29473b['getAttribute'](_0x88db4a)-0x1:0x0,_0x5d2ba5=this['_getSuggestionCoords'](_0x1ae7ac),_0x5a077d=_0x5d2ba5[_0x3a18d8],_0x289aff=_0x5d2ba5[_0x5ce867];_0x5a077d<=_0x332438[_0x1e052f]&&_0x332438[_0x1e052f]+_0x2e6468<=_0x289aff&&(_0x1ae7ac['addRange'](_0xf9d42d),_0x394002=!0x0);}return _0x394002;};_0x4f1d1e['model']['document']['registerPostFixer'](_0x2c3125=>{let _0xa54672=!0x1;for(const _0x1a183a of _0x4f1d1e['model']['document']['differ']['getChanges']())if('insert'==_0x1a183a['type']){if('tableRow'==_0x1a183a['name']){for(const _0xef6f0d of _0x1a183a['position']['nodeAfter']['getChildren']())_0xa54672=_0xa54672||_0x24c9d6(_0xef6f0d,_0x2c3125);}else'tableCell'==_0x1a183a['name']&&(_0xa54672=_0xa54672||_0x24c9d6(_0x1a183a['position']['nodeAfter'],_0x2c3125));}return _0xa54672;});}['_getSuggestionCoords'](_0x42d2ad){return this['_getCoordsForCells'](_0x42d2ad['getRanges']()['map'](_0x280aa7=>_0x280aa7['start']['nodeAfter']));}};function De(_0x4bae42){return Array['from'](new Set(_0x4bae42)['values']());}var Ue=class extends _0xe2ae1{static get['requires'](){return[ve];}['afterInit'](){const _0x5501fb=this['editor'],_0x5053d5=_0x5501fb['model']['document']['selection'],_0x24d6a7=_0x5501fb['locale'];if(!_0x5501fb['plugins']['has']('TableEditing'))return;const _0x258cb3=_0x5501fb['plugins']['get']('TrackChangesEditing'),_0x512046=_0x5501fb['plugins']['get']('TableUtils'),_0x486dce=_0x5501fb['plugins']['get'](ve);_0x486dce['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x258cb3['enableCommand']('mergeTableCells',()=>{const _0x24eeeb=_0x512046['getSelectionAffectedTableCells'](_0x5501fb['model']['document']['selection']);_0x5501fb['model']['change'](()=>{_0x258cb3['markMultiRangeBlockFormat'](_0x24eeeb,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5501fb['commands']['get']('mergeTableCells')['on']('execute',(_0x41cf11,_0x23d9a0)=>{_0x5501fb['commands']['get']('trackChanges')['value']&&(_0x23d9a0['length']>0x0&&_0x23d9a0[_0x23d9a0['length']-0x1]&&_0x23d9a0[_0x23d9a0['length']-0x1]['forceDefaultExecution']||_0x258cb3['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x41cf11['stop']());},{'priority':'highest'});for(const _0x1e112c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x113f6b=_0x5501fb['commands']['get'](_0x1e112c);_0x258cb3['enableCommand'](_0x1e112c,()=>{const _0x26e517=_0x5501fb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x52a510=>_0x52a510['is']('element','tableCell')),_0x31a35d=_0x113f6b['value'];_0x5501fb['model']['change'](()=>{_0x258cb3['markMultiRangeBlockFormat']([_0x26e517,_0x31a35d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x80311b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2ee6d3=_0x5501fb['commands']['get'](_0x80311b);_0x258cb3['enableCommand'](_0x80311b,()=>{const _0x3b6599=_0x512046['getSelectionAffectedTableCells'](_0x5501fb['model']['document']['selection'])[0x0],_0x7274bc=_0x3b6599['findAncestor']('table'),{column:_0x34e212,row:_0x12c6b4}=_0x512046['getCellLocation'](_0x3b6599);let _0x5c13e0=[];if('horizontally'==_0x2ee6d3['direction']){const _0x361d66=_0x512046['createTableWalker'](_0x7274bc,{'startRow':_0x12c6b4,'endRow':_0x12c6b4,'includeAllSlots':!0x0});_0x5c13e0=Array['from'](_0x361d66)['map'](_0x229e6b=>_0x229e6b['cell']);}else{const _0x162054=_0x512046['createTableWalker'](_0x7274bc,{'column':_0x34e212,'includeAllSlots':!0x0});_0x5c13e0=Array['from'](_0x162054)['map'](_0xdc50ed=>_0xdc50ed['cell']);}_0x5501fb['model']['change'](_0x28c82e=>{_0x258cb3['markBlockFormat'](_0x28c82e['createRangeOn'](_0x3b6599),{'commandName':_0x80311b,'commandParams':[]},_0x5c13e0,_0x80311b);});});}_0x258cb3['descriptionFactory']['registerDescriptionCallback'](_0x3f944d=>{if('formatBlock'!=_0x3f944d['type']&&'formatInline'!=_0x3f944d['type'])return;const {data:_0x4077c0}=_0x3f944d;return _0x4077c0&&'mergeTableCells'==_0x4077c0['commandName']?{'type':'format','content':St(_0x24d6a7,'*Merge\x20cells*')}:void 0x0;}),_0x258cb3['descriptionFactory']['registerDescriptionCallback'](_0x1d5bf0=>{if('formatBlock'!=_0x1d5bf0['type']&&'formatInline'!=_0x1d5bf0['type'])return;const {data:_0x335a8d}=_0x1d5bf0;return _0x335a8d?'splitTableCellVertically'==_0x335a8d['commandName']?{'type':'format','content':St(_0x24d6a7,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x335a8d['commandName']?{'type':'format','content':St(_0x24d6a7,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x375225=_0x486dce['_acceptFormatSuggestionCallbackFactory']();for(const _0x5708d0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x258cb3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5708d0,'accept',_0x375225);for(const _0x31646a of['splitTableCellVertically','splitTableCellHorizontally'])_0x258cb3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x31646a,'accept',_0x375225);_0x258cb3['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x23de04=>{_0x5501fb['model']['change'](_0x37be4c=>{const _0x57eb14=Array['from'](_0x5053d5['getRanges']())['map'](_0x12cf90=>rt['fromRange'](_0x12cf90));_0x37be4c['setSelection'](_0x23de04),_0x5501fb['commands']['get']('mergeTableCells')['refresh'](),_0x5501fb['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x585dab=_0x57eb14['filter'](_0x418ed8=>'$graveyard'!=_0x418ed8['root']['rootName']);_0x585dab['length']>0x0&&_0x37be4c['setSelection'](_0x585dab);for(const _0x7c909e of _0x57eb14)_0x7c909e['detach']();});});for(const _0x510e61 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x280845=_0x5501fb['commands']['get'](_0x510e61);_0x280845['on']('set:isEnabled',(_0x1fa4b0,_0x48579b,_0x470eef)=>{if(_0x470eef){const _0x53f489=_0x5501fb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x57b542=>_0x57b542['is']('element','tableCell'));this['_areMergableCells'](_0x280845['value'],_0x53f489)||(_0x1fa4b0['return']=!0x1,_0x1fa4b0['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xb080ad=this['editor']['commands']['get']('mergeTableCells'),_0x596804=this['editor']['plugins']['get']('TableUtils');if(!_0xb080ad['isEnabled'])return!0x1;const _0x478550=_0x596804['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2268a7 of _0x478550)for(const _0x118de1 of _0x478550)if(_0x2268a7!=_0x118de1&&!this['_areMergableCells'](_0x2268a7,_0x118de1))return!0x1;return!0x0;}['_areMergableCells'](_0x25a92a,_0x4b9887){const _0x114210=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42758b=this['editor']['model']['createRangeOn'](_0x25a92a),_0x5bc20f=this['editor']['model']['createRangeOn'](_0x4b9887),_0x4e2f92=new Set(),_0x30af4e=new Set();for(const _0x13e236 of _0x114210['getSuggestions']())if(('insertion'==_0x13e236['type']||'deletion'==_0x13e236['type']||'mergeTableCells'==_0x13e236['subType'])&&_0x13e236['isInContent']){for(const _0x45b7fb of _0x13e236['getRanges']())_0x45b7fb['containsRange'](_0x42758b,!0x0)&&_0x4e2f92['add'](_0x13e236['type']+':'+_0x13e236['author']['id']),_0x45b7fb['containsRange'](_0x5bc20f,!0x0)&&_0x30af4e['add'](_0x13e236['type']+':'+_0x13e236['author']['id']);}if(_0x4e2f92['size']!=_0x30af4e['size'])return!0x1;for(const _0x2f47e7 of _0x4e2f92)if(!_0x30af4e['has'](_0x2f47e7))return!0x1;return!0x0;}},Pe=class extends _0xe2ae1{static get['requires'](){return[ve];}['afterInit'](){const _0x371c3a=this['editor'];if(!_0x371c3a['plugins']['has']('TableEditing'))return;const _0x3f2852=_0x371c3a['locale'],_0x5e19e5=_0x371c3a['plugins']['get']('TrackChangesEditing');_0x5e19e5['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5e19e5['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5e19e5['descriptionFactory']['registerAttributeLabel']('headingRows',St(_0x3f2852,'FORMAT_HEADER_ROW')),_0x5e19e5['descriptionFactory']['registerAttributeLabel']('headingColumns',St(_0x3f2852,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x399cb2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6a629d=this['editor']['plugins']['get'](ve)['_acceptFormatSuggestionCallbackFactory']();_0x399cb2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x6a629d),_0x399cb2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x6a629d),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x2b996c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x590591=this['editor']['plugins']['get']('TableUtils');function _0x4b6676({showActiveMarker:_0x23e03c=!0x0,setDataAttribute:_0x758e41=!0x0}={}){return(_0x1357dd,_0x501f92,_0x321b3d)=>{const {type:_0x1bf836,id:_0x2f3a54}=tt(_0x501f92['markerName']);if(!_0x2b996c['hasSuggestion'](_0x2f3a54))return;const _0x4d0b1f=_0x2b996c['getSuggestion'](_0x2f3a54),_0x57eb1b=_0x4d0b1f['data'];if('formatBlock'!=_0x4d0b1f['type']||!_0x57eb1b||'setTableColumnHeader'!=_0x57eb1b['commandName'])return;if(_0x501f92['item'])return void _0x1357dd['stop']();if(!_0x321b3d['consumable']['consume'](_0x501f92['markerRange'],_0x1357dd['name']))return;const _0x159cac=_0x501f92['markerRange']['start']['nodeAfter'],_0x30dce8=_0x501f92['markerRange']['end']['nodeBefore'],_0x52fe52=_0x159cac['parent']['parent'],{column:_0x2d787b}=_0x590591['getCellLocation'](_0x159cac),{column:_0x27a286}=_0x590591['getCellLocation'](_0x30dce8);for(let _0x45e34c=_0x2d787b;_0x45e34c<=_0x27a286;_0x45e34c++){const _0x3b340d=_0x590591['createTableWalker'](_0x52fe52,{'column':_0x45e34c,'includeAllSlots':!0x1});for(const _0x10d381 of _0x3b340d){const _0x4e37a0=_0x10d381['cell'],_0x1b13b2=_0x321b3d['mapper']['toViewElement'](_0x4e37a0);_0x321b3d['writer']['addClass']('ck-suggestion-marker-'+_0x1bf836,_0x1b13b2),_0x758e41&&_0x321b3d['writer']['setAttribute']('data-suggestion',_0x2f3a54,_0x1b13b2),_0x321b3d['mapper']['bindElementToMarker'](_0x1b13b2,_0x501f92['markerName']),_0x23e03c&&(_0x2b996c['activeMarkers']['includes'](_0x501f92['markerName'])?_0x321b3d['writer']['addClass']('ck-suggestion-marker--active',_0x1b13b2):_0x321b3d['writer']['removeClass']('ck-suggestion-marker--active',_0x1b13b2));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4b6676(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1cda27,_0x35f80c,_0x241d43)=>{_0x241d43['options']['showSuggestionHighlights']&&_0x4b6676({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1cda27,_0x35f80c,_0x241d43);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x117a48,_0x2797eb,_0x181635)=>{const {type:_0x1c371b,id:_0x48d0d3}=tt(_0x2797eb['markerName']);if(!_0x2b996c['hasSuggestion'](_0x48d0d3))return;const _0xfa0080=_0x2b996c['getSuggestion'](_0x48d0d3),_0x2e5368=_0xfa0080['data'];if('formatBlock'!=_0xfa0080['type']||!_0x2e5368||'setTableColumnHeader'!=_0x2e5368['commandName'])return;const _0x307aba=_0x181635['mapper']['markerNameToElements'](_0x2797eb['markerName']);if(_0x307aba){for(const _0x4bdee6 of _0x307aba)_0x181635['writer']['removeClass']('ck-suggestion-marker-'+_0x1c371b,_0x4bdee6),_0x181635['writer']['removeClass']('ck-suggestion-marker--active',_0x4bdee6),_0x181635['writer']['removeAttribute']('data-suggestion',_0x4bdee6),_0x181635['mapper']['unbindElementFromMarkerName'](_0x4bdee6,_0x2797eb['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x36f5a2=this['editor'],_0x49d18f=_0x36f5a2['locale'];function _0x59668f(_0x2dd500){return{'type':'format','content':St(_0x49d18f,'*Format:*\x20%0',_0x2dd500)};}_0x36f5a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ac0b5=>{if('formatBlock'!=_0x1ac0b5['type'])return;const {data:_0x2bcd0e}=_0x1ac0b5;return _0x2bcd0e?'setTableRowHeader'==_0x2bcd0e['commandName']?_0x2bcd0e['commandParams'][0x0]['forceValue']?_0x59668f(St(_0x49d18f,'FORMAT_HEADER_ROW')):_0x59668f(St(_0x49d18f,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x2bcd0e['commandName']?_0x2bcd0e['commandParams'][0x0]['forceValue']?_0x59668f(St(_0x49d18f,'FORMAT_HEADER_COLUMN')):_0x59668f(St(_0x49d18f,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},xe=class extends _0xe2ae1{static get['requires'](){return[ve];}['afterInit'](){const _0x5b8c4a=this['editor'];if(!_0x5b8c4a['plugins']['has']('TableEditing')||!_0x5b8c4a['config']['get']('table.enableFooters'))return;const _0x405b53=_0x5b8c4a['locale'],_0x1bed39=_0x5b8c4a['plugins']['get']('TrackChangesEditing');_0x1bed39['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x1bed39['descriptionFactory']['registerAttributeLabel']('footerRows',St(_0x405b53,'FORMAT_FOOTER_ROW'));}},Ge=class extends _0xe2ae1{['afterInit'](){const _0x4e3622=this['editor'],_0x521eaf=_0x4e3622['locale'],_0x3116a0=_0x4e3622['plugins']['get']('TrackChangesEditing');function _0x597fb1(_0x1f1123){return{'type':'format','content':''+St(_0x521eaf,'*Set\x20table\x20type:*\x20%0',_0x1f1123)};}_0x4e3622['plugins']['has']('TableLayout')&&(_0x3116a0['enableCommand']('insertTableLayout'),_0x3116a0['enableDefaultAttributesIntegration']('tableType'),_0x3116a0['descriptionFactory']['registerElementLabel'](_0x353f00=>_0x353f00['is']('element','table')&&'layout'===_0x353f00['getAttribute']('tableType'),_0x11bea6=>St(_0x521eaf,'ELEMENT_LAYOUT_TABLE',_0x11bea6)),_0x3116a0['descriptionFactory']['registerDescriptionCallback'](_0xa13a39=>{const {data:_0x6deac9}=_0xa13a39;if(_0x6deac9&&'tableType'==_0x6deac9['key'])switch(_0x6deac9['newValue']){case'layout':return _0x597fb1(St(_0x521eaf,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x597fb1(St(_0x521eaf,'ELEMENT_CONTENT_TABLE'));}}));}};const He=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],$e=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](He['map'](_0x515f6e=>[_0x515f6e,null]));var Ve=class extends _0xe2ae1{static get['requires'](){return[ve];}['afterInit'](){const _0x49b1ea=this['editor'];if(!_0x49b1ea['plugins']['has']('TableClipboard'))return;const _0x8e2196=_0x49b1ea['plugins']['get']('TrackChangesEditing'),_0x215481=_0x49b1ea['plugins']['get']('TableUtils'),_0x36da3b=_0x49b1ea['plugins']['get'](ve),_0x50f51c=_0x49b1ea['plugins']['get']('TableClipboard'),_0x1a295c=_0x49b1ea['plugins']['get']('TableSelection'),_0x48a051=_0x49b1ea['plugins']['get'](mt);_0x36da3b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x49b1ea['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x49b1ea['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x50af0b=null,_0x2fb08e=!0x1;_0x48a051['on']('contentInsertion',(_0x58173c,_0xaf51a5)=>{_0x2fb08e='paste'===_0xaf51a5['method'];}),_0x49b1ea['model']['on']('insertContent',(_0x1c2316,_0x174735)=>{if(!_0x2fb08e&&null===_0x1a295c['getSelectedTableCells']())return;const [_0x18599b,_0x541114]=_0x174735,_0x5a9dda=_0x174735[_0x174735['length']-0x1];_0x5a9dda&&_0x5a9dda['forceDefaultExecution']||_0x8e2196['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1ae4a9,_0x2caa45,_0x2fe52b,_0x24a48b,_0x3d2913){if(_0x2caa45&&!_0x2caa45['is']('documentSelection'))return!0x1;const _0x575ae1=_0x3d2913['getTableIfOnlyTableInContent'](_0x1ae4a9,_0x2fe52b);if(!_0x575ae1||!je(_0x575ae1,void 0x0,_0x24a48b))return!0x1;const _0x38cd66=_0x24a48b['getSelectionAffectedTableCells'](_0x2fe52b['document']['selection']);if(!_0x38cd66['length'])return!0x1;const _0x5db81e=_0x38cd66[0x0]['findAncestor']('table'),_0x21f7f8=_0x24a48b['getRowIndexes'](_0x38cd66),_0x5704ea=_0x24a48b['getColumnIndexes'](_0x38cd66),_0x2704fb={'startRow':_0x21f7f8['first'],'endRow':_0x21f7f8['last'],'startColumn':_0x5704ea['first'],'endColumn':_0x5704ea['last']};return 0x1==_0x38cd66['length']&&(_0x2704fb['endRow']+=_0x24a48b['getRows'](_0x575ae1)-0x1,_0x2704fb['endColumn']+=_0x24a48b['getColumns'](_0x575ae1)-0x1),je(_0x5db81e,_0x2704fb,_0x24a48b);}(_0x18599b,_0x541114,_0x49b1ea['model'],_0x215481,_0x50f51c)&&(_0x1c2316['stop'](),_0x50af0b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x49b1ea['model']['change'](()=>{_0x49b1ea['model']['insertContent'](_0x174735[0x0],_0x174735[0x1],_0x174735[0x2],{'forceDefaultExecution':!0x0});const _0x44334b=_0x1c6111(),{rowInsertionRanges:_0xd1dca7,columnInsertionRanges:_0x1dd143,insertionRanges:_0x4b4b30,deletionRanges:_0x3d7e13,cells:_0x3c5c0e}=_0x50af0b;_0xd1dca7['length']&&_0x8e2196['markMultiRangeInsertion'](_0xd1dca7,'tablePasteRow',{'tablePasteChainId':_0x44334b}),_0x1dd143['length']&&_0x8e2196['markMultiRangeInsertion'](_0x1dd143,'tablePasteColumn',{'tablePasteChainId':_0x44334b}),_0x4b4b30['length']&&(_0x8e2196['markMultiRangeInsertion'](_0x4b4b30,'tablePaste',{'tablePasteChainId':_0x44334b,'skipNestingCheck':!0x0}),_0x4b4b30['forEach'](_0x5a7106=>_0x5a7106['detach']?.())),_0x3d7e13['length']&&(_0x8e2196['markMultiRangeDeletion'](_0x3d7e13,'tablePaste',{'tablePasteChainId':_0x44334b,'skipNestingCheck':!0x0}),_0x3d7e13['forEach'](_0x2271ad=>_0x2271ad['detach']?.()));const _0x1000c4=_0x8e2196['markMultiRangeBlockFormat'](_0x3c5c0e['map'](({element:_0x1f0212})=>_0x1f0212),{'formatGroupId':_0x1c6111()},[],'tablePasteCell',{'tablePasteChainId':_0x44334b});if(_0x1000c4){const _0xb5264c=_0x1000c4['getMarkers'](),_0x293618=[];for(const {element:_0xe5e42c,attributes:_0xf9e5e8}of _0x3c5c0e){if(!_0xf9e5e8)continue;const _0x2a84f3=_0x49b1ea['model']['createRangeOn'](_0xe5e42c),_0x829691=_0xb5264c['find'](_0x511864=>_0x511864['getRange']()['isEqual'](_0x2a84f3));_0x829691&&_0x293618['push']([_0x829691['name'],_0xf9e5e8]);}_0x293618['length']&&_0x1000c4['setAttribute']('markerAttributes',Object['fromEntries'](_0x293618));}_0x50af0b=null;}));},{'priority':_0x11cdee['high']+0xa}),_0x48a051['on']('contentInsertion',()=>{_0x2fb08e=!0x1;},{'priority':'lowest'}),_0x49b1ea['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x291d45,_0x392412)=>{const [_0x45b189,_0x6da728,,_0x3a8dc9]=_0x392412;if(!_0x50af0b)return;_0x291d45['stop']();const _0x38c70e=_0x45b189['cell'],_0x19b0bb=_0x6da728,_0x5b16e1=We(_0x38c70e),_0x58492f=We(_0x19b0bb);_0x291d45['return']=_0x38c70e;let _0x545e56=null,_0xf7602=null;if(_0x58492f||_0x5b16e1){if(_0x5b16e1&&!_0x58492f){_0x3a8dc9['remove'](_0x38c70e['getChild'](0x0));for(const _0x23939f of Array['from'](_0x19b0bb['getChildren']()))_0x3a8dc9['insert'](_0x23939f,_0x38c70e,'end');const _0x4b6156=_0x50af0b['rowInsertionIndexes']['includes'](_0x45b189['row']),_0x69d8e2=_0x50af0b['columnInsertionIndexes']['includes'](_0x45b189['column']);_0x4b6156||_0x69d8e2||(_0x545e56=rt['fromRange'](_0x3a8dc9['createRangeIn'](_0x38c70e)));}else _0x58492f&&!_0x5b16e1&&(_0xf7602=_0x3a8dc9['createRangeIn'](_0x38c70e));}else{const _0x415b24=_0x3a8dc9['createElement']('tableCellSuggestion'),_0x34a6f4=_0x3a8dc9['createElement']('tableCellSuggestion');_0x3a8dc9['wrap'](_0x3a8dc9['createRangeIn'](_0x38c70e),_0x34a6f4),_0x3a8dc9['insert'](_0x415b24,_0x38c70e,0x0);for(const _0x246d4e of Array['from'](_0x19b0bb['getChildren']()))_0x3a8dc9['insert'](_0x246d4e,_0x415b24,'end');_0x545e56=rt['fromRange'](_0x3a8dc9['createRangeOn'](_0x415b24)),_0xf7602=rt['fromRange'](_0x3a8dc9['createRangeOn'](_0x34a6f4));}const _0x4bec1b=Array['from'](_0x19b0bb['getAttributes']())['filter'](([_0x15b185])=>He['includes'](_0x15b185));_0x50af0b['cells']['push']({'element':_0x38c70e,'attributes':_0x4bec1b['length']?Object['fromEntries'](_0x4bec1b):null}),_0x545e56&&_0x50af0b['insertionRanges']['push'](_0x545e56),_0xf7602&&_0x50af0b['deletionRanges']['push'](_0xf7602);},{'priority':'high'}),_0x215481['on']('insertColumns',(_0x1f3eeb,_0x4f6835)=>{const [_0x3b8fb2,_0x38e944={}]=_0x4f6835;if(!_0x50af0b)return;const _0x17746a=_0x38e944['at']||0x0,_0x13f164=_0x38e944['columns']||0x1;_0x50af0b['columnInsertionIndexes']=new Array(_0x13f164)['fill'](_0x17746a)['map']((_0x1ea821,_0x53ba06)=>_0x1ea821+_0x53ba06);for(const {cell:_0x599571}of _0x215481['createTableWalker'](_0x3b8fb2,{'startColumn':_0x17746a,'endColumn':_0x17746a+_0x13f164-0x1}))_0x50af0b['columnInsertionRanges']['push'](_0x49b1ea['model']['createRangeOn'](_0x599571));},{'priority':'low'}),_0x215481['on']('insertRows',(_0xf4a6c5,_0x4d3166)=>{const [_0x1e629f,_0x432114={}]=_0x4d3166;if(!_0x50af0b)return;const _0x53f3b5=_0x432114['at']||0x0,_0xdfa98a=_0x432114['rows']||0x1;_0x50af0b['rowInsertionIndexes']=new Array(_0xdfa98a)['fill'](_0x53f3b5)['map']((_0x3cc8aa,_0x2bf01b)=>_0x3cc8aa+_0x2bf01b);for(const {cell:_0x2de41f}of _0x215481['createTableWalker'](_0x1e629f,{'startRow':_0x53f3b5,'endRow':_0x53f3b5+_0xdfa98a-0x1}))_0x50af0b['rowInsertionRanges']['push'](_0x49b1ea['model']['createRangeOn'](_0x2de41f));},{'priority':'low'}),_0x8e2196['descriptionFactory']['registerDescriptionCallback'](_0x5bd954=>{if(_0x5bd954['subType']&&_0x5bd954['subType']['startsWith']('tablePaste'))return _0x5bd954['previous']?{}:{'type':'insertion','content':St(_0x49b1ea['locale'],'*Replace\x20table\x20cells*')};});const _0x521f99=()=>!0x1;for(const _0x179ecd of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x8e2196['_suggestionFactory']['registerCustomCallback']('insertion',_0x179ecd,'join',_0x521f99),_0x8e2196['_suggestionFactory']['registerCustomCallback']('deletion',_0x179ecd,'join',_0x521f99),_0x8e2196['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x179ecd,'join',_0x521f99);_0x8e2196['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x521f99),_0x8e2196['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xbbf998,_0x4d20ba,_0x1fdd98)=>{const _0x4f1967=_0xbbf998['map'](_0x5a2ade=>_0x5a2ade['getContainedElement']())['filter'](_0x430d84=>_0x430d84),_0x3edeb6=new Map(_0x4f1967['map'](_0x3094c7=>[_0x3094c7,null]));if(_0x50af0b){for(const {element:_0x42888d,attributes:_0x3b49bd}of _0x50af0b['cells'])_0x3b49bd&&_0x3edeb6['set'](_0x42888d,_0x3b49bd);}else{if(_0x1fdd98&&_0x1fdd98['markerAttributes'])for(const [_0x192609,_0x424fa1]of Object['entries'](_0x1fdd98['markerAttributes'])){const _0x3d5f2a=_0x49b1ea['model']['markers']['get'](_0x192609),_0x2c5121=_0x3d5f2a?_0x3d5f2a['getRange']()['getContainedElement']():null;_0x2c5121&&_0x3edeb6['set'](_0x2c5121,_0x424fa1);}}_0x49b1ea['model']['change'](_0x53d933=>{for(const [_0x2d98ee,_0x2fa772]of _0x3edeb6)_0x53d933['setAttributes']({...$e,..._0x2fa772},_0x2d98ee);});});const _0x2d1e19=(_0x18061a,_0x5ec150)=>{_0x8e2196['_suggestionFactory']['registerCustomCallback'](_0x18061a,'tablePaste',_0x5ec150,(_0x591965,_0x57e0bc,_0x3d1512)=>{_0x49b1ea['model']['change'](_0x55904f=>{const _0x5b0882=[];for(const _0x5ac3a7 of _0x591965){const _0x171997=_0x5ac3a7['start']['nodeAfter'];_0x171997['is']('element','tableCellSuggestion')&&_0x5b0882['push'](_0x171997);}_0x8e2196['_suggestionFactory']['getSuggestionCallback'](_0x18061a,null,_0x5ec150)(_0x591965,_0x57e0bc,_0x3d1512);for(const _0x167a23 of _0x5b0882)'$graveyard'!=_0x167a23['root']['rootName']&&_0x55904f['unwrap'](_0x167a23);});});};_0x2d1e19('insertion','accept'),_0x2d1e19('insertion','discard'),_0x2d1e19('deletion','accept'),_0x2d1e19('deletion','discard'),_0x8e2196['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x539ee6=>{const _0x1795f9=_0x539ee6['map'](_0x376c3e=>_0x376c3e['getContainedElement']()),_0x337c4b=_0x1795f9[0x0]['findAncestor']('table'),{minRow:_0x4bce90,maxRow:_0x9d936a}=_0x36da3b['_getCoordsForCells'](_0x1795f9);_0x215481['removeRows'](_0x337c4b,{'at':_0x4bce90,'rows':_0x9d936a-_0x4bce90+0x1});}),_0x8e2196['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x17d7c3=>{const _0x4d52da=_0x17d7c3['map'](_0xd382f2=>_0xd382f2['getContainedElement']()),_0x408b2f=_0x4d52da[0x0]['findAncestor']('table'),{minColumn:_0x287d19,maxColumn:_0x5f4bd9}=_0x36da3b['_getCoordsForCells'](_0x4d52da);_0x215481['removeColumns'](_0x408b2f,{'at':_0x287d19,'columns':_0x5f4bd9-_0x287d19+0x1});});const _0x23e143=(_0x397a01,_0x3782ab)=>{if(!_0x3782ab['subType']||!_0x3782ab['subType']['startsWith']('tablePaste'))return;const _0x3c92b7=_0x3782ab['attributes']['tablePasteChainId'],_0x544866=_0x8e2196['getSuggestions']()['filter'](_0x305207=>_0x305207['isInContent']&&_0x305207['attributes']&&_0x305207['attributes']['tablePasteChainId']==_0x3c92b7);_0x544866['length']&&_0x3782ab['getAllAdjacentSuggestions']()['length']!=_0x544866['length']&&_0x544866['reduce']((_0x7d0047,_0x571e06)=>(_0x7d0047['next']=_0x571e06,_0x571e06['previous']=_0x7d0047,_0x571e06));};function _0x255b87(_0x1c4e27,_0x4ace40=!0x0){const {id:_0x2e49cf,authorId:_0x440d22}=tt(_0x1c4e27['markerName']),_0x2835c8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x9bbf5b=_0x8e2196['activeMarkers']['includes'](_0x1c4e27['markerName']);return _0x9bbf5b&&_0x2835c8['push']('ck-suggestion-marker--active'),{'classes':_0x2835c8,'attributes':{'data-suggestion':_0x2e49cf,'data-author-id':_0x440d22},'priority':_0x9bbf5b&&_0x4ace40?0xbc2:0xbb8};}_0x8e2196['on']('suggestionLoaded',_0x23e143,{'priority':'high'}),_0x8e2196['on']('suggestionUnloaded',_0x23e143,{'priority':'high'}),_0x49b1ea['model']['document']['registerPostFixer'](()=>{let _0x730a11=!0x1;const _0x2a2afd=Array['from'](_0x49b1ea['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x46de97,data:_0x22b939}of _0x2a2afd){const {group:_0x422fae,type:_0x1c5f91,id:_0x22a196}=tt(_0x46de97);if('suggestion'!=_0x422fae||'deletion'!=_0x1c5f91||_0x22b939['oldRange'])continue;if(!_0x8e2196['hasSuggestion'](_0x22a196))continue;const _0x4a7c4a=_0x8e2196['getSuggestion'](_0x22a196)['getRanges'](),_0x13cf43=_0x49b1ea['plugins']['get']('Users')['me'];for(const _0x3587ca of _0x8e2196['getSuggestions']())if(_0x3587ca['isInContent']&&_0x3587ca['author']==_0x13cf43&&'formatBlock'==_0x3587ca['type']&&'tablePasteCell'==_0x3587ca['subType']&&_0x3587ca['getRanges']()['every'](_0x2a6526=>_0x4a7c4a['some'](_0x466280=>_0x466280['containsRange'](_0x2a6526,!0x0)))){for(const _0xacdb1c of _0x3587ca['getAllAdjacentSuggestions']())_0xacdb1c['isInContent']&&(_0xacdb1c['discard'](),_0x730a11=!0x0);}}return _0x730a11;}),_0x49b1ea['model']['document']['registerPostFixer'](_0x467103=>{const _0x19a966=_0x49b1ea['commands']['get']('redo');if(!_0x19a966||!_0x19a966['_createdBatches']['has'](_0x467103['batch']))return!0x1;let _0x2ae1e0=!0x1;const _0x586928=_0x49b1ea['plugins']['get']('Users')['me'],_0x412287=_0x49b1ea['model']['document']['differ']['getChanges'](),_0x1f3aaa=Array['from'](_0x49b1ea['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x46a1d0,data:_0x1fb05f})=>{const {group:_0x9af6a0,subType:_0x1fdbd4,authorId:_0x3f2c31}=tt(_0x46a1d0);return'suggestion'==_0x9af6a0&&'tablePaste'==_0x1fdbd4&&_0x3f2c31==_0x586928['id']&&!_0x1fb05f['oldRange'];});for(const _0xe2f26b of _0x412287){if('insert'!=_0xe2f26b['type']||'tableCellSuggestion'!=_0xe2f26b['name']||0x1!=_0xe2f26b['length'])continue;const _0x1c648c=_0x467103['createRange'](_0xe2f26b['position'],_0xe2f26b['position']['getShiftedBy'](0x1));if(!_0x1f3aaa['find'](({data:_0x142503})=>_0x142503['newRange']['isEqual'](_0x1c648c))){for(const {name:_0x6f150d,data:_0x2ca6a9}of _0x1f3aaa)if(_0x1c648c['containsRange'](_0x2ca6a9['newRange'])){_0x467103['updateMarker'](_0x6f150d,{'range':_0x1c648c}),_0x2ae1e0=!0x0;break;}}}return _0x2ae1e0;}),_0x49b1ea['model']['document']['registerPostFixer'](_0x3e4d55=>{let _0xecbb21=!0x1;const _0x2319a9=_0x49b1ea['plugins']['get']('Users')['me'],_0x13777a=_0x8e2196['getSuggestions']()['filter'](_0x489eef=>_0x489eef['isInContent']&&_0x489eef['author']==_0x2319a9),_0x2e3ae5=new Set(),_0x469597=new Set();for(const _0x43fcf9 of _0x13777a)if('tablePaste'==_0x43fcf9['subType'])for(const _0x435817 of _0x43fcf9['getMarkers']()){const _0x100e5d=_0x435817['getRange']()['getContainedElement']();if(_0x100e5d){if(_0x100e5d['is']('element','tableCellSuggestion')&&We(_0x100e5d)){_0x43fcf9['removeMarker'](_0x435817['name']),_0x2e3ae5['add'](_0x100e5d),_0xecbb21=!0x0;const _0x943ee=_0x100e5d['nextSibling'],_0x55aafb=_0x100e5d['previousSibling'],_0x29c500=_0x943ee&&_0x943ee['is']('element','tableCellSuggestion'),_0x464ab8=_0x55aafb&&_0x55aafb['is']('element','tableCellSuggestion');_0x29c500&&!_0x2e3ae5['has'](_0x943ee)&&_0x469597['add'](_0x943ee),_0x464ab8&&!_0x2e3ae5['has'](_0x55aafb)&&_0x469597['add'](_0x55aafb);}else _0x100e5d['is']('element','paragraph')&&_0x100e5d['isEmpty']&&(_0x43fcf9['removeMarker'](_0x435817['name']),_0xecbb21=!0x0);}}else{if('tablePasteCell'==_0x43fcf9['subType']){if(!_0x43fcf9['attributes']||!_0x43fcf9['attributes']['tablePasteChainId'])continue;const _0x2517d8=_0x43fcf9['attributes']['markerAttributes'];if(_0x2517d8&&Object['keys'](_0x2517d8)['length'])continue;const _0x452ebd=_0x43fcf9['attributes']['tablePasteChainId'];let _0x209f20=!0x0,_0x54b74c=!0x0;for(const _0x107a5d of _0x13777a)if(_0x107a5d['subType']&&_0x107a5d['subType']['startsWith']('tablePaste')){if(!_0x107a5d['attributes']['tablePasteChainId']){_0x54b74c=!0x1;break;}if(_0x107a5d['id']!=_0x43fcf9['id']&&_0x107a5d['attributes']['tablePasteChainId']==_0x452ebd){_0x209f20=!0x1;break;}}_0x54b74c&&_0x209f20&&(_0x43fcf9['removeMarkers'](),_0xecbb21=!0x0);}}for(const _0x59fe91 of _0x2e3ae5)_0x3e4d55['remove'](_0x59fe91);for(const _0xe5b609 of _0x469597)_0x3e4d55['unwrap'](_0xe5b609);return _0xecbb21;}),_0x49b1ea['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x51e866=>_0x255b87(_0x51e866),'converterPriority':'high'}),_0x49b1ea['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xbd5ab,_0x518d34)=>_0x518d34['options']['showSuggestionHighlights']?_0x255b87(_0xbd5ab,!0x1):null,'converterPriority':'high'});const _0x1791bb=_0x49b1ea['editing']['view'];this['listenTo'](_0x1791bb['document'],'clipboardOutput',(_0x300c82,_0x1b337a)=>{const _0x2fed1f=[];for(const _0x12e27f of _0x1791bb['createRangeIn'](_0x1b337a['content'])['getItems']())_0x12e27f['is']('element','suggestion-td')&&_0x2fed1f['push'](_0x12e27f);_0x1791bb['change'](_0x1ba6ff=>{for(const _0xab6fba of _0x2fed1f)_0x1ba6ff['move'](_0x1ba6ff['createRangeIn'](_0xab6fba),_0x1ba6ff['createPositionBefore'](_0xab6fba)),_0x1ba6ff['remove'](_0xab6fba);});});}};function We(_0x4ca12e){if(_0x4ca12e['isEmpty'])return!0x0;const _0x208bc5=_0x4ca12e['getChild'](0x0);return _0x208bc5['is']('element','paragraph')&&_0x208bc5['isEmpty'];}function je(_0x46ee20,_0x52a152={},_0x10cbf4){for(const {isAnchor:_0x5db20d,cellHeight:_0x21d492,cellWidth:_0x473199}of _0x10cbf4['createTableWalker'](_0x46ee20,{'includeAllSlots':!0x0,..._0x52a152}))if(!_0x5db20d||0x1!=_0x21d492||0x1!=_0x473199)return!0x1;return!0x0;}var Ke=class extends _0xe2ae1{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x575327=this['editor']['plugins']['get']('TrackChangesEditing');_0x575327['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x575327['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x575327['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x575327['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x575327['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x575327['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x40cce2,_0x5d64f2){const _0x26e0ed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b4642=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x276266=_0x5d64f2['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2e652a=_0x1b4642['getColumnGroupElement'](_0x276266);let _0x5b0c29=_0x2e652a?_0x1b4642['getTableColumnsWidths'](_0x2e652a):null,_0x1fe3b9=_0x276266['getAttribute']('tableWidth')||null;const _0xa8644c=_0x5d64f2['tableWidth']||_0x1fe3b9,_0x4d50dc=_0x5d64f2['columnWidths']||_0x5b0c29,_0x2c7106=this['editor']['plugins']['get']('Users')['me'];for(const _0x31b9a6 of _0x26e0ed['getSuggestions']()){const _0x18c3d9=_0x31b9a6['getContainedElement']();if('resizeTable'===_0x31b9a6['subType']&&_0x18c3d9===_0x276266){_0x31b9a6['author']!==_0x2c7106&&_0x31b9a6['discard']();const _0x48af8e=_0x31b9a6['data']['commandParams'];_0x1fe3b9=_0x48af8e[0x0]['tableWidth'],_0x5b0c29=_0x48af8e[0x0]['columnWidths'];break;}}_0x40cce2({'table':_0x276266,'tableWidth':_0xa8644c,'columnWidths':_0x4d50dc}),_0x26e0ed['markBlockFormat'](_0x276266,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1fe3b9,'columnWidths':_0x5b0c29}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x161b1c){if('formatBlock'!=_0x161b1c['type']&&'formatInline'!=_0x161b1c['type'])return;const {data:_0x14ea5e}=_0x161b1c;return _0x14ea5e&&'resizeTable'===_0x14ea5e['formatGroupId']?{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},ze=class extends _0xe2ae1{['afterInit'](){const _0xc52d65=this['editor'];_0xc52d65['plugins']['has']('Template')&&_0xc52d65['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Xe=class extends _0xe2ae1{['afterInit'](){const _0xb0e0de=this['editor'];if(!_0xb0e0de['commands']['get']('insertTableOfContents'))return;_0xb0e0de['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1f9220=_0xb0e0de['plugins']['get']('TrackChangesEditing'),_0x1d375c=_0xb0e0de['locale'];_0x1f9220['descriptionFactory']['registerElementLabel']('tableOfContents',_0x532166=>St(_0x1d375c,'ELEMENT_TABLE_OF_CONTENTS',_0x532166));}},qe=class extends _0xe2ae1{['afterInit'](){const _0x55e44f=this['editor'];_0x55e44f['plugins']['has']('Title')&&(_0x55e44f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>St(_0x55e44f['locale'],'ELEMENT_TITLE')),_0x55e44f['model']['document']['registerPostFixer'](_0x8ef6df=>{let _0x58d2d9=!0x1;const _0xf8c981=Array['from'](_0x55e44f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4da796,data:_0x1bc28c}of _0xf8c981){const {group:_0xff82de}=tt(_0x4da796);if('suggestion'!==_0xff82de||!_0x1bc28c['newRange'])continue;const _0x1b67c9=_0x1bc28c['newRange'],_0x2f04c3=_0x1b67c9['end']['nodeBefore'];if(!_0x2f04c3||!_0x2f04c3['is']('element','title-content'))continue;if(!_0x1b67c9['start']['isTouching'](_0x1b67c9['end']))continue;const _0x18ca75=_0x55e44f['model']['schema']['getNearestSelectionRange'](_0x1b67c9['end'],'forward');if(_0x18ca75&&_0x18ca75['isCollapsed']){const _0x34c3be=_0x8ef6df['createRange'](_0x1b67c9['start'],_0x18ca75['start']);_0x34c3be['isEqual'](_0x1b67c9)||(_0x8ef6df['updateMarker'](_0x4da796,{'range':_0x34c3be}),_0x58d2d9=!0x0);}_0x58d2d9||(_0x8ef6df['removeMarker'](_0x4da796),_0x58d2d9=!0x0);}return _0x58d2d9;}));}},Ye=class extends _0xe2ae1{['afterInit'](){const _0x116ce0=this['editor'],_0x5dbfc3=_0x116ce0['plugins']['get']('TrackChangesEditing');_0x116ce0['plugins']['has']('Uploadcare')&&(_0x5dbfc3['enableCommand']('uploadcare'),_0x116ce0['plugins']['has']('UploadcareImageEdit')&&(_0x5dbfc3['enableCommand']('uploadcareImageEdit'),_0x5dbfc3['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5dbfc3['descriptionFactory']['registerDescriptionCallback'](_0x50af32=>{if('attribute'!=_0x50af32['type'])return;const {data:_0x5bcef8}=_0x50af32;return _0x5bcef8&&'uploadcareImageId'==_0x5bcef8['key']?{'type':'format','content':''}:void 0x0;})));}},Qe=class extends _0xe2ae1{['afterInit'](){const _0x169a00=this['editor'],_0x200d94=_0x169a00['plugins']['get']('TrackChangesEditing');_0x169a00['plugins']['has']('UndoEditing')&&(_0x200d94['enableCommand']('undo'),_0x200d94['enableCommand']('redo'));}},Ze=class extends _0xe2ae1{static get['requires'](){return[ve];}['afterInit'](){const _0x4df543=this['editor'];_0x4df543['plugins']['has']('TableCaptionEditing')&&_0x4df543['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},Je=class extends _0xe2ae1{['tableProperties'];['tableCellProperties'];constructor(_0x5b087c){super(_0x5b087c),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 _0x5280f9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5a3be6 of this['tableProperties'])_0x5280f9['enableCommand'](_0x5a3be6,(_0x3595d7,_0x5533a7)=>{const _0x524fc3=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5a3be6,[_0x524fc3],this['tableProperties'],'tableProperties',_0x3595d7,_0x5533a7);});_0x5280f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5280f9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5280f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x445ae6,_0x58645b)=>this['handleDiscardAction'](this['tableProperties'],_0x445ae6,_0x58645b)),_0x5280f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x590c9a of this['tableCellProperties'])this['editor']['commands']['get'](_0x590c9a)&&_0x5280f9['enableCommand'](_0x590c9a,(_0x4f4f32,_0x376346)=>{const _0x1ce648=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x590c9a,_0x1ce648,this['tableCellProperties'],'tableCellProperties',_0x4f4f32,_0x376346);});_0x5280f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5280f9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5280f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1dcb97,_0x2efd0c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1dcb97,_0x2efd0c)),_0x5280f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x5280f9['descriptionFactory']['registerAttributeLabel']('tableCellType',St(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x5280f9['descriptionFactory']['registerDescriptionCallback'](_0x4504f4=>this['handleSuggestionDescription'](_0x4504f4)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x38ffa3,_0x197b79,_0x516c70,_0x43353a,_0x4c7dfc,_0x48bcdd){const _0xe6d20b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x48bcdd['batch'],()=>{for(const _0x24007a of _0x197b79)if(this['_getSuggestion'](_0x24007a,_0x43353a))_0x4c7dfc(_0x48bcdd);else{const _0x1b6332={};for(const _0x53edf7 of _0x516c70){const _0x316ade=_0x24007a['getAttribute'](_0x53edf7);void 0x0!==_0x316ade&&(_0x1b6332[_0x53edf7]=_0x316ade);}_0x4c7dfc(_0x48bcdd),_0xe6d20b['markBlockFormat'](_0x24007a,{'commandParams':[_0x1b6332]},[],_0x43353a);}});}['handleDiscardAction'](_0xc8f6b1,_0x474828,_0x1b79fe){const _0x255832=_0x474828[0x0]['start']['nodeAfter'],_0x50718b=_0x1b79fe['commandParams'][0x0];this['editor']['model']['change'](_0x3e1f0d=>{for(const _0x4fca54 of _0xc8f6b1)void 0x0!==_0x50718b[_0x4fca54]?_0x3e1f0d['setAttribute'](_0x4fca54,_0x50718b[_0x4fca54],_0x255832):_0x3e1f0d['removeAttribute'](_0x4fca54,_0x255832);});}['handleSuggestionDescription'](_0x26907b){if(_0x26907b['data'])switch(_0x26907b['subType']){case'tableProperties':return{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x5360ba,_0x481ed8){const _0x1e540e=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x24c1e9 of _0x1e540e['getSuggestions']({'skipNotAttached':!0x0})){const _0x294d62=_0x24c1e9['getContainedElement']();if(_0x24c1e9['subType']===_0x481ed8&&_0x294d62===_0x5360ba)return _0x24c1e9;}return null;}['_registerTablePropertiesAttributes'](){const _0x24a5f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f8dc9=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1551ca of _0x4f8dc9){const _0x3cdfbf=_0x1551ca['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x24a5f8['descriptionFactory']['registerAttributeLabel'](_0x1551ca,St(this['editor']['locale'],'FORMAT_'+_0x3cdfbf));}}},tn=class extends _0xe2ae1{['afterInit'](){const _0x19389d=this['editor'];if(!_0x19389d['plugins']['has']('LineHeight'))return;const _0x5bc8d7=_0x19389d['plugins']['get']('TrackChangesEditing'),_0x489fb3=_0x19389d['locale'];_0x5bc8d7['enableDefaultAttributesIntegration']('lineHeight'),_0x5bc8d7['descriptionFactory']['registerAttributeLabel']('lineHeight',St(_0x489fb3,'FORMAT_LINE_HEIGHT'));}};const en='$elementName';var nn=class extends _0xe2ae1{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x29bca6,_0x1fe567,_0x30397d,_0x270e2c,_0x1ece8a,Ot,wt,Ft,Bt,Dt,Ut,xt,Ht,Gt,$t,Wt,jt,Qt,Zt,Jt,ee,ne,ie,re,oe,ae,ce,le,ue,he,de,ge,fe,me,Te,Le,Ce,Ee,Kt,tn,Xt,Ie,Ae,be,ke,Re,Ne,ye,Se,Me,Oe,Fe,Be,ve,Ue,Pe,xe,Ge,Ze,Ve,Ke,Xe,Je,ze,qe,Ye,Qe];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45f83c){super(_0x45f83c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3b2c75,_0x4c9ba1,_0x5b9c54,_0x51cfc2)=>{this['_model']['change'](()=>{for(const _0x956a9f of[..._0x51cfc2,..._0x5b9c54])this['_model']['markers']['has'](_0x956a9f)&&_0x45f83c['editing']['reconvertMarker'](_0x956a9f);});}),this['descriptionFactory']=new Mt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new sn(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x45f83c['plugins']['get'](_0x29bca6),this['_suggestionsConversion']=_0x45f83c['plugins']['get'](_0x1fe567),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x45f83c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x45f83c['config']['get']('trackChanges.trackFormatChanges'),_0x45f83c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x45f83c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Et(_0x45f83c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2f3a64=this['editor'];_0x2f3a64['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2a7cfc,{writer:_0x5e898e})=>{let _0x5d39fb='suggestion:'+_0x2a7cfc['getAttribute']('suggestion-type')+':'+_0x2a7cfc['getAttribute']('id');return _0x2a7cfc['getAttribute']('marker-count')&&(_0x5d39fb+=':'+_0x2a7cfc['getAttribute']('marker-count')),_0x5e898e['createElement']('$marker',{'data-name':_0x5d39fb});}}),_0x2f3a64['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2f3a64['model']['document']['registerPostFixer'](_0x25602d=>{let _0x5af468=!0x1;const _0x32829e=Array['from'](_0x2f3a64['model']['document']['differ']['getChangedMarkers']()),_0x5d6c43=new Set();for(const {name:_0x5bee1a,data:_0x49e3e1}of _0x32829e){const {group:_0x487c3c,type:_0x23f342,subType:_0xf4afd1,id:_0x290cde}=tt(_0x5bee1a);if('suggestion'!==_0x487c3c)continue;const _0x50445a=_0xf4afd1?'suggestion:'+_0x23f342+':'+_0xf4afd1+':'+_0x290cde:'suggestion:'+_0x23f342+':'+_0x290cde,_0x1cbffb=_0x2f3a64['model']['markers']['getMarkersGroup'](_0x50445a),_0xccbc5e=_0x2f3a64['model']['markers']['get'](_0x5bee1a),_0x2526fc=this['_suggestions']['get'](_0x290cde);if(null!=_0x49e3e1['newRange']){'formatInline'==_0x23f342&&(_0x5af468=_0x5af468||an(_0x49e3e1['newRange'],_0x5bee1a,_0x25602d,_0x2f3a64['model']['schema']));const _0x2c9aef='attribute'==_0x23f342&&this['_suggestionsConversion']['isBlockAttribute'](_n(_0xf4afd1)),_0x28abdd='attribute'==_0x23f342&&this['_suggestionsConversion']['isInlineAttribute'](_n(_0xf4afd1));if(_0x49e3e1['newRange']['isCollapsed']||'$graveyard'==_0x49e3e1['newRange']['root']['rootName']||'formatBlock'==_0x23f342&&!ln(_0x49e3e1['newRange'])||_0x2c9aef&&!ln(_0x49e3e1['newRange'])||_0x28abdd&&un(_0x49e3e1['newRange'])||'deletion'==_0x23f342&&un(_0x49e3e1['newRange'])||_0xccbc5e&&dn(_0xccbc5e,_0x1cbffb))_0x25602d['removeMarker'](_0x5bee1a),_0x5af468=!0x0;else{if(!_0x2526fc||!_0x2526fc['isInContent'])continue;if(_0x49e3e1['newRange']&&_0x49e3e1['oldRange']&&_0x49e3e1['newRange']['isEqual'](_0x49e3e1['oldRange']))continue;_0x5d6c43['add'](_0x2526fc);}}}return _0x5d6c43['size']>0x0&&(_0x5af468=!!this['_joinWithAdjacentSuggestions'](_0x5d6c43)||_0x5af468),_0x5af468;}),_0x2f3a64['model']['document']['registerPostFixer'](_0x257736=>{let _0x10e67c=!0x1;for(const _0x2d4259 of _0x2f3a64['model']['document']['differ']['getChanges']())if('insert'==_0x2d4259['type'])for(const _0x14b6b7 of this['_suggestions']['values']()){if(_0x14b6b7['isMultiRange']||!_0x14b6b7['isInContent'])continue;const _0x5c4df9='formatBlock'==_0x14b6b7['type'],_0x56dd08=this['_getAttributeKey'](_0x14b6b7),_0x3b09ab=_0x56dd08&&this['_suggestionsConversion']['isBlockAttribute'](_0x56dd08);if(!_0x5c4df9&&!_0x3b09ab)continue;const _0x48639f=_0x14b6b7['getFirstRange']();if(_0x48639f['start']['parent']!=_0x48639f['end']['parent']&&!_0x48639f['end']['isAtEnd']){const _0x12fcda=_0x2f3a64['model']['createPositionAt'](_0x48639f['start']['nodeAfter'],'end'),_0x282fcd=_0x2f3a64['model']['createRange'](_0x48639f['start'],_0x12fcda);_0x257736['updateMarker'](_0x14b6b7['getFirstMarker'](),{'range':_0x282fcd}),_0x10e67c=!0x0;}}return _0x10e67c;}),_0x2f3a64['model']['document']['registerPostFixer'](_0x34100a=>this['_processAttributeChanges'](_0x34100a)),_0x2f3a64['model']['document']['registerPostFixer'](_0x27f0f3=>!_0x27f0f3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x27f0f3)),_0x2f3a64['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2f3a64['model']['document']['on']('change:data',(_0xc05ad1,_0x1128ad)=>{if(!_0x1128ad['isLocal']||_0x1128ad['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xbf1d35=_0x2f3a64['model']['document']['differ']['getChanges']();if(0x0==_0xbf1d35['length'])return;const _0x53ce22=[],_0x8e681f=_0xbf1d35['filter'](_0x53e533=>'attribute'==_0x53e533['type']),_0x812b16=_0xbf1d35['filter'](_0x561bd2=>'insert'==_0x561bd2['type']&&'$text'!=_0x561bd2['name']);for(const _0xb72b31 of _0x8e681f)this['_suggestionsConversion']['isRegisteredAttribute'](_0xb72b31['attributeKey'])&&_0x53ce22['push']({'key':_0xb72b31['attributeKey'],'newValue':_0xb72b31['attributeNewValue'],'oldValue':_0xb72b31['attributeOldValue'],'range':hn(_0xb72b31['range'],_0x2f3a64['model'])});for(const _0x55917b of _0x812b16){if('rename'!=_0x55917b['action']&&'refresh'!=_0x55917b['action'])continue;const _0x1fe0da=gn(_0x55917b['position']['nodeAfter'],_0x2f3a64['model']),_0x1e891d=_0x55917b['before'];'rename'==_0x55917b['action']&&_0x53ce22['push']({'key':en,'newValue':_0x55917b['name'],'oldValue':_0x1e891d['name'],'range':_0x1fe0da});for(const [_0x52f482,_0x561fab]of _0x1e891d['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x52f482))continue;const _0x4aa2df=_0x55917b['attributes']['get'](_0x52f482);_0x561fab!==_0x4aa2df&&_0x53ce22['push']({'key':_0x52f482,'newValue':_0x4aa2df,'oldValue':_0x561fab,'range':_0x1fe0da});}for(const [_0x562043,_0x259faf]of _0x55917b['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x562043)&&(_0x1e891d['attributes']['has'](_0x562043)||_0x53ce22['push']({'key':_0x562043,'newValue':_0x259faf,'oldValue':null,'range':_0x1fe0da}));}0x0!=_0x53ce22['length']&&_0x2f3a64['model']['enqueueChange'](_0x1128ad,_0x26d077=>{const _0x133d83=_0x1c6111();for(const {range:_0x5203b3,key:_0x309585,oldValue:_0xdaf610,newValue:_0x554f71}of _0x53ce22)this['markAttributeChange'](_0x5203b3,_0x309585,_0xdaf610,_0x554f71,{'groupId':_0x133d83});this['_reduceExistingSuggestions'](_0x26d077,_0x53ce22);});},{'priority':'lowest'}),_0x2f3a64['model']['markers']['on']('update:suggestion',(_0x43cd1f,_0x117d53,_0x295e75)=>{if(null==_0x295e75){const {id:_0x6b20d7}=tt(_0x117d53['name']),_0x3d0e54=this['_suggestions']['get'](_0x6b20d7);_0x3d0e54&&_0x3d0e54['addMarkerName'](_0x117d53['name']);}}),_0x2f3a64['model']['document']['on']('change:data',()=>{const _0x170747=Array['from'](_0x2f3a64['model']['document']['differ']['getChangedMarkers']())['filter'](_0x47e905=>'suggestion'===tt(_0x47e905['name'])['group']);if(0x0===_0x170747['length'])return;_0x170747['sort']((_0x931cca,_0x466436)=>{const _0x1f05e8=_0x931cca['data']['oldRange'],_0x59897c=_0x466436['data']['oldRange'];return null===_0x1f05e8&&null===_0x59897c?0x0:null===_0x1f05e8&&null!==_0x59897c?-0x1:null!==_0x1f05e8&&null===_0x59897c?0x1:_0x1f05e8['start']['isBefore'](_0x59897c['start'])?-0x1:0x1;});const _0x1f002c=new Set(),_0x4d90a3=new Set();for(const {name:_0x4e1355,data:_0x1ac571}of _0x170747){const {id:_0x2c86b0}=tt(_0x4e1355);if(null===_0x1ac571['oldRange']){const _0x518711=this['_handleNewSuggestionMarker'](_0x4e1355);_0x4d90a3['add'](_0x518711);}else{const _0x3572e8=this['_suggestions']['get'](_0x2c86b0);null!==_0x1ac571['newRange']||_0x3572e8['isInContent']?(_0x1f002c['add'](_0x3572e8['head']),_0x4d90a3['add'](_0x3572e8)):this['_removeSuggestion'](_0x3572e8);}}_0x4d90a3['size']>0x0&&this['_refreshSuggestionsChain'](_0x4d90a3);for(const _0x270b80 of _0x1f002c)this['fire']('suggestionChanged',_0x270b80);}),_0x2f3a64['model']['on']('applyOperation',(_0x17bb96,_0x414964)=>{const _0x3404d2=_0x414964[0x0];if(!this['_suggestions']['size'])return;if(!_0x3404d2['isDocumentOperation'])return;if(_0x3404d2['batch']['isUndo']||!_0x3404d2['batch']['isLocal'])return;let _0x278d55,_0x4f712a;switch(_0x3404d2['type']){case'insert':_0x278d55=_0x2f3a64['model']['createPositionAt'](_0x3404d2['position']),_0x4f712a=_0x278d55['getShiftedBy'](_0x3404d2['howMany']);break;case'split':_0x278d55=_0x2f3a64['model']['createPositionAt'](_0x3404d2['splitPosition']),_0x4f712a=_0x2f3a64['model']['createPositionAt'](_0x3404d2['moveTargetPosition']);break;case'move':_0x278d55=_0x2f3a64['model']['createPositionAt'](_0x3404d2['targetPosition']),_0x4f712a=_0x278d55['getShiftedBy'](_0x3404d2['howMany']);break;default:return;}const _0x9724ed=_0x2f3a64['model']['createRange'](_0x278d55,_0x4f712a);_0x2f3a64['model']['change'](()=>{for(const {suggestion:_0xcb5274,meta:_0x5f58cc}of this['_findSuggestions'](_0x9724ed)){if(_0xcb5274['isMultiRange'])continue;if('formatInline'==_0xcb5274['type'])continue;const _0x5dde42=this['_getAttributeKey'](_0xcb5274);if(_0x5dde42&&this['_suggestionsConversion']['isBlockAttribute'](_0x5dde42)&&'split'!=_0x3404d2['type'])continue;const _0x34372b=_0xcb5274['data']&&_0xcb5274['data']['multipleBlocks'];('formatBlock'!=_0xcb5274['type']||'split'==_0x3404d2['type']&&!_0x34372b)&&(_0x5f58cc['containsRangeInObject']||'insertion'==_0xcb5274['type']&&_0x5f58cc['isOwn']||_0xcb5274['getFirstRange']()['containsRange'](_0x9724ed)&&this['_breakSuggestionMarker'](_0xcb5274,_0x278d55,_0x4f712a));}});},{'priority':'lowest'}),_0x2f3a64['model']['on']('deleteContent',(_0x5f2a58,_0x4be0fb)=>{const _0x11a115=_0x4be0fb[0x0],_0x5188b4=_0x4be0fb[0x1];if(_0x5188b4&&_0x5188b4['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x11a115['isCollapsed'])return;const _0x379895=_0x2f3a64['model']['schema'],{start:_0xf3eeb,end:_0x4ad7c9}=_0x11a115['getFirstRange'](),_0xfd0186=_0xf3eeb['nodeAfter']&&_0x379895['isLimit'](_0xf3eeb['nodeAfter'])?null:_0x379895['getNearestSelectionRange'](_0xf3eeb,'forward'),_0x30d0d8=_0x4ad7c9['nodeBefore']&&_0x379895['isLimit'](_0x4ad7c9['nodeBefore'])?null:_0x379895['getNearestSelectionRange'](_0x4ad7c9,'backward'),_0x395ac7=_0x2f3a64['model']['createRange'](_0xfd0186?_0xfd0186['start']:_0xf3eeb,_0x30d0d8?_0x30d0d8['end']:_0x4ad7c9);_0x2f3a64['model']['change'](_0x18b17f=>{this['markDeletion'](_0x395ac7);const _0x1e16e7=_0x2f3a64['model']['schema']['getNearestSelectionRange'](_0x395ac7['start']);_0x11a115['is']('documentSelection')?_0x18b17f['setSelection'](_0x1e16e7):_0x11a115['setTo'](_0x1e16e7);}),_0x5f2a58['stop']();},{'priority':_0x11cdee['normal']+0xa}),_0x2f3a64['model']['on']('insertContent',(_0x2716a6,_0x788b4d)=>{const _0x162cd9=_0x788b4d[_0x788b4d['length']-0x1];_0x162cd9&&_0x162cd9['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2f3a64['model']['change'](()=>{let _0x5469c4=_0x2f3a64['model']['insertContent'](_0x788b4d[0x0],_0x788b4d[0x1],_0x788b4d[0x2],{'forceDefaultExecution':!0x0});if(!_0x5469c4)return;_0x2716a6['return']=_0x5469c4['clone']();const _0x14bc06=_0x5469c4['end']['nodeBefore'],_0x1a1f95=_0x2f3a64['model']['schema'];_0x14bc06&&_0x1a1f95['isBlock'](_0x14bc06)&&!_0x1a1f95['isObject'](_0x14bc06)&&(_0x5469c4=_0x2f3a64['model']['createRange'](_0x5469c4['start'],_0x2f3a64['model']['createPositionAt'](_0x14bc06,'end'))),this['markInsertion'](_0x5469c4);}),_0x2716a6['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x11a8cb=new Tt(_0x2f3a64,this['_suggestions']);_0x2f3a64['commands']['add']('acceptSuggestion',_0x11a8cb),this['enableCommand']('acceptSuggestion');const _0x3948c1=new _t(_0x2f3a64,this['_suggestions']);_0x2f3a64['commands']['add']('discardSuggestion',_0x3948c1),this['enableCommand']('discardSuggestion'),_0x2f3a64['commands']['add']('acceptAllSuggestions',new Ct(_0x2f3a64,_0x11a8cb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2f3a64['commands']['add']('discardAllSuggestions',new Ct(_0x2f3a64,_0x3948c1,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2f3a64['commands']['add']('acceptSelectedSuggestions',new Rt(_0x2f3a64,_0x11a8cb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2f3a64['commands']['add']('discardSelectedSuggestions',new Rt(_0x2f3a64,_0x3948c1,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x363249=_0x2f3a64['plugins']['get'](_0x29bca6);this['listenTo'](_0x363249,'addComment',(_0x3a1e45,{threadId:_0x3de8dc})=>{const _0x3b9da5=this['_suggestions']['get'](_0x3de8dc);_0x3b9da5&&_0x3b9da5['commentThread']&&0x1===_0x3b9da5['commentThread']['length']&&this['_updateSuggestionData'](_0x3de8dc,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x363249,'removeComment',(_0x43c038,{threadId:_0x571722})=>{const _0x1cce34=this['_suggestions']['get'](_0x571722);_0x1cce34&&_0x1cce34['commentThread']&&!_0x1cce34['commentThread']['length']&&this['_updateSuggestionData'](_0x571722,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5fe0ce){const _0xa49164='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x3faf40=0x78e28,_0x48b414=window['Date']['now'](),_0x3e144b=_0x5fe0ce['editor'],_0x2fe6ea=new window['Promise'](_0xf09382=>{_0x3e144b['once']('ready',_0xf09382);}),_0x3c6b0b={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x187bbe=_0x3e144b['config']['get']('licenseKey');async function _0x2f12d1(){let _0x17e38c,_0x406cef=null,_0x198b07=null;try{return'GPL'==_0x187bbe?'NotAllowed':(_0x17e38c=_0x4adffc(),_0x17e38c?(_0x17e38c['usageEndpoint']&&(_0x198b07=_0x2f97c9(_0x17e38c['usageEndpoint'],_0x17e38c['jti'])),await _0xaafd5a()?_0x4886fb()?_0x47a7c0()?'Expired':_0x183f95()?('evaluation'==_0x17e38c['licenseType']&&(_0x406cef=_0x5649a5('EvaluationLimit')),await _0x5e2883()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x47a7c0(){const _0xb8a80d=['evaluation','trial']['includes'](_0x17e38c['licenseType'])?_0x48b414/0x3e8:0xe10*_0x3faf40;return _0x17e38c['exp']<_0xb8a80d;}function _0x4886fb(){const _0x1d4dd8=_0x17e38c['features'];if(!_0x1d4dd8)return!0x1;if(_0x1d4dd8['includes']('*'))return!0x0;if(_0x1d4dd8['includes']('TC'))return!0x0;if(_0x1d4dd8['includes']('RTC')){if(_0x486ac1())return!0x0;if(_0x325ae6()||_0x39b97c())return!0x0;}return!0x1;}function _0x183f95(){const _0x47af3c=_0x17e38c['licensedHosts'];if(!_0x47af3c||0x0==_0x47af3c['length'])return!0x0;const {hostname:_0xfffa7b}=new URL(window['location']['href']);if(_0x47af3c['includes'](_0xfffa7b))return!0x0;const _0x24a62e=_0xfffa7b['split']('.');return _0x47af3c['filter'](_0x3808a6=>_0x3808a6['includes']('*'))['map'](_0x4c01e2=>_0x4c01e2['split']('.'))['filter'](_0x36a5b7=>_0x36a5b7['length']<=_0x24a62e['length'])['map'](_0x40920e=>Array(_0x24a62e['length']-_0x40920e['length'])['fill']('*'===_0x40920e[0x0]?'*':'')['concat'](_0x40920e))['some'](_0x90ef01=>_0x24a62e['every']((_0x47e915,_0x2ab6b5)=>_0x90ef01[_0x2ab6b5]===_0x47e915||'*'===_0x90ef01[_0x2ab6b5]));}function _0x5e2883(){return _0x406cef&&_0x198b07?new window['Promise']((_0xefec82,_0x6caa88)=>{_0x406cef['then'](_0xefec82,_0x6caa88),_0x198b07['then'](_0x98f6ef=>{'Valid'!=_0x98f6ef&&_0xefec82(_0x98f6ef);},_0x6caa88);}):_0x406cef||_0x198b07||'Valid';}}function _0x2f97c9(_0xe5f68b,_0x2d5cba){return new window['Promise'](_0x5b528a=>{if(_0x270be0())return _0x5b528a('Valid');_0x50b1dc(),_0x3e144b['decorate']('_sendUsageRequest');let _0x28f581=!0x1;const _0x3e6e35=_0x1c6111();function _0x9ec6ab(_0x5014bd){return!!_0x5014bd&&('object'==typeof _0x5014bd||'function'==typeof _0x5014bd)&&'function'==typeof _0x5014bd['then']&&'function'==typeof _0x5014bd['catch'];}function _0x258870(_0x5baae0){_0x2bd073(_0x5baae0)['then'](_0x4d7cb4=>_0x4d7cb4&&'ok'==_0x4d7cb4['status']?_0x563b65(_0xcb3881(_0x3e6e35+_0x2d5cba))!=_0x4d7cb4['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x21fc32=>(_0x373cb8(),_0x21fc32),()=>{const _0x599b2d=_0x5038a9();return null==_0x599b2d?(_0x373cb8(),'Valid'):_0x48b414-_0x599b2d>0x240c8400?'UsageLimit':'Valid';})['then'](_0x5b528a)['catch'](()=>{_0x5b528a('UsageLimit');});const _0x2b5b51=0x36ee80;function _0x373cb8(){const _0x31d804='llct-'+_0x563b65(_0xcb3881(_0xe5f68b)),_0x32d623=_0x12e88d(_0x563b65(window['Math']['ceil'](_0x48b414/_0x2b5b51)));window['localStorage']['setItem'](_0x31d804,_0x32d623);}function _0x5038a9(){const _0x1c3c1d='llct-'+_0x563b65(_0xcb3881(_0xe5f68b)),_0x57ba70=window['localStorage']['getItem'](_0x1c3c1d);return _0x57ba70?window['parseInt'](_0x12e88d(_0x57ba70),0x10)*_0x2b5b51:null;}function _0x2bd073(_0x44dd35){return new window['Promise']((_0x55ae9d,_0x25dd56)=>{_0x44dd35['then'](_0x55ae9d,_0x25dd56),window['setTimeout'](_0x25dd56,0x1d4c0);});}}_0x3e144b['on']('_sendUsageRequest',(_0x2e5927,_0x57b52a)=>{if(_0x57b52a[0x0]!=_0xe5f68b)return _0x5b528a('UsageLimit');_0x57b52a[0x1]={..._0x57b52a[0x1],'requestId':_0x3e6e35};},{'priority':'high'}),_0x3e144b['on']('_sendUsageRequest',_0x517cda=>{_0x9ec6ab(_0x517cda['return'])&&(_0x28f581=!0x0,_0x258870(_0x517cda['return']));},{'priority':'low'}),_0x2fe6ea['then'](()=>{_0x28f581||_0x5b528a('UsageLimit');});});function _0x270be0(){return'auto'==_0x3e144b['editing']['view']['_overlayModeHint'];}function _0x50b1dc(){_0x3e144b['editing']['view']['_overlayModeHint']='auto';}}function _0x5649a5(_0x18a06d){const _0x1dcdfe=[new window['Promise'](_0x3ad118=>setTimeout(_0x3ad118,0x93ecc)),_0x2fe6ea['then'](()=>new window['Promise'](_0xa6c482=>{let _0x2bf712=0x0;_0x3e144b['model']['on']('applyOperation',(_0x361404,_0x43c5e3)=>{_0x43c5e3[0x0]['isDocumentOperation']&&_0x2bf712++,0x5e8==_0x2bf712&&(_0xa6c482(),_0x361404['off']());});}))];return window['Promise']['race'](_0x1dcdfe)['then'](()=>_0x18a06d);}async function _0x55d728(){await _0x2fe6ea,_0x3e144b['model']['change']=_0xdb0515,_0x3e144b['model']['enqueueChange']=_0xdb0515,_0x3e144b['enableReadOnlyMode']('model');}function _0x486ac1(){return _0x3d42ed('WebSocketGateway')&&'connected'==_0x1c0397('WebSocketGateway')['state'];}function _0x325ae6(){return _0x3d42ed('RevisionViewerIntegration');}function _0x39b97c(){return _0x3d42ed('TrackChangesDataGetter');}function _0x585021(_0x11bacc){const _0x40a5a4=_0x20890d();_0x3e144b[_0x40a5a4]='trackChangesLicenseKey'+_0x11bacc,'Valid'!=_0x11bacc&&_0x55d728();}function _0x20890d(){const _0x22c668=window['String'](window['performance']['now']())['replace']('.','');let _0x59298d='R';for(let _0x24038f=0x0;_0x24038f<_0x22c668['length'];_0x24038f+=0x2){let _0x1d1aeb=window['parseInt'](_0x22c668['substring'](_0x24038f,_0x24038f+0x2));_0x1d1aeb>=0x3e&&(_0x1d1aeb-=0x3e),_0x59298d+=_0xa49164[_0x1d1aeb];}return _0x59298d;}function _0x4adffc(){const _0xdc3ef8=_0x187bbe['split']('.');if(0x3!=_0xdc3ef8['length'])return null;return _0x4f8eb6(_0xdc3ef8[0x1]);function _0x4f8eb6(_0x5b8e95){const _0x398a29=_0x3a4d1b(_0x5b8e95);return _0x398a29&&_0x7689f6()?_0x398a29:null;function _0x7689f6(){const _0x5abfd2=_0x398a29['jti'],_0x3e60f3=window['parseInt'](_0x5abfd2['substring'](_0x5abfd2['length']-0x8),0x10),_0x4baa4={..._0x398a29,'jti':_0x5abfd2['substring'](0x0,_0x5abfd2['length']-0x8)};return delete _0x4baa4['vc'],_0xcb3881(_0x4baa4)==_0x3e60f3;}}}async function _0xaafd5a(){let _0x334cfb=!0x0;try{const [_0x950674,_0x41f0c2,_0x4d90b8]=_0x187bbe['split']('.');return _0x3283ce(_0x950674),await _0x18d3d5(_0x950674,_0x41f0c2,_0x4d90b8),_0x334cfb;}catch{return!0x1;}function _0x3283ce(_0x4c7c7e){const _0x29ffb3=_0x3a4d1b(_0x4c7c7e);_0x29ffb3&&'ES256'==_0x29ffb3['alg']||(_0x334cfb=!0x1);}async function _0x18d3d5(_0xb5260d,_0x142cec,_0x2b7b56){const _0x417e32=window['Uint8Array']['from'](_0x592742(_0x2b7b56),_0x37185b=>_0x37185b['charCodeAt'](0x0)),_0x101dd=new window['TextEncoder']()['encode'](_0xb5260d+'.'+_0x142cec),_0x2c7b8d=window['crypto']['subtle'];if(!_0x2c7b8d)return;const _0x5489c4=await _0x2c7b8d['importKey']('jwk',_0x3c6b0b,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x2c7b8d['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x5489c4,_0x417e32,_0x101dd)||(_0x334cfb=!0x1);}}function _0x3a4d1b(_0x465da3){return _0x465da3['startsWith']('ey')?JSON['parse'](_0x592742(_0x465da3)):null;}function _0x592742(_0x3f27de){return window['atob'](_0x3f27de['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0xcb3881(_0x31fd85){let _0x70a8d5=0x1505;function _0x4e4c62(_0x422174){for(let _0x58a982=0x0;_0x58a982<_0x422174['length'];_0x58a982++){const _0x3b2884=_0x422174['charCodeAt'](_0x58a982);_0x70a8d5=(_0x70a8d5<<0x5)+_0x70a8d5+_0x3b2884,_0x70a8d5&=_0x70a8d5;}}function _0x33713e(_0x41e338){Array['isArray'](_0x41e338)?_0x41e338['forEach'](_0x33713e):_0x41e338&&'object'==typeof _0x41e338?Object['entries'](_0x41e338)['sort']()['forEach'](([_0x5e9307,_0x53682b])=>{_0x4e4c62(_0x5e9307),_0x33713e(_0x53682b);}):_0x4e4c62(window['String'](_0x41e338));}return _0x33713e(_0x31fd85),_0x70a8d5>>>0x0;}function _0x563b65(_0x247bd7){return _0x247bd7['toString'](0x10)['padStart'](0x8,'0');}function _0x12e88d(_0x558d3a){return _0x558d3a['split']('')['reverse']()['join']('');}function _0x3d42ed(_0x50b833){return _0x3e144b['plugins']['has'](_0x50b833);}function _0x1c0397(_0x4edc1d){return _0x3e144b['plugins']['get'](_0x4edc1d);}function _0xdb0515(){}_0x585021(await _0x2f12d1());}(this);}set['adapter'](_0x3e4183){if(this['_adapter'])throw new _0x29b816('track-changes-adapter-already-set',this);this['_adapter']=_0x3e4183;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5c452b=!0x1,toJSON:_0x423cd5=!0x1}={}){const _0x44b844=[];for(const _0x28e75c of this['_suggestions']['values']())_0x5c452b&&!_0x28e75c['isInContent']||_0x44b844['push'](_0x28e75c);return _0x423cd5?_0x44b844['map'](_0x41a603=>_0x41a603['toJSON']()):_0x44b844;}['getSuggestion'](_0x1cfd12){const _0x26e82f=this['_suggestions']['get'](_0x1cfd12);if(!_0x26e82f)throw new _0x29b816('track-changes-suggestion-not-found',this);return _0x26e82f;}['hasSuggestion'](_0x23b33f){return this['_suggestions']['has'](_0x23b33f);}['addSuggestionData'](_0x4a7f09){const {authorId:_0xb06635,id:_0x359655,originalSuggestionId:_0x5bfe9a,attributes:_0x23ee75}=_0x4a7f09,[_0xbff243,_0x53af07]=_0x4a7f09['type']['split'](':'),_0x5a1613=this['_suggestions']['get'](_0x359655)||this['_createSuggestion'](_0xbff243,_0x53af07,_0x359655,_0xb06635,_0x23ee75,_0x5bfe9a);if(this['_addThreadToSuggestion'](_0x5a1613),this['_checkSuggestionCorrectness'](_0x5a1613,_0xbff243,_0x53af07||null,_0xb06635),_0x5a1613['createdAt']=_0x4a7f09['createdAt'],_0x5a1613['_isDataLoaded']=!0x0,_0x23ee75&&_0x23ee75['@external']){const _0x2c3a42=_0x23ee75['@external'],_0x2c98c5=this['_getExternalAuthor'](_0x2c3a42['authorName']);_0x5a1613['authoredAt']=_0x2c3a42['createdAt'],_0x5a1613['author']=_0x2c98c5;}else _0x5a1613['authoredAt']=_0x4a7f09['createdAt'];switch(_0x4a7f09['data']&&(_0x5a1613['data']=_0x4a7f09['data']),_0x4a7f09['attributes']&&(_0x5a1613['attributes']=_0x4a7f09['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5a1613['_saved']=!0x0),this['_suggestionState']['get'](_0x5a1613)){case'notReady':this['_suggestionState']['set'](_0x5a1613,'dataReady');break;case'markerReady':_0x5a1613['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5a1613])),this['_refreshSuggestionsChain'](new Set([_0x5a1613])),this['_suggestionState']['set'](_0x5a1613,'ready'),this['fire']('suggestionLoaded',_0x5a1613)):this['_suggestionState']['set'](_0x5a1613,'removed');}return _0x5a1613;}['acceptSuggestion'](_0x85d0f5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3254a3 of _0x85d0f5['getAllAdjacentSuggestions']())_0x3254a3['accept']();});});}['discardSuggestion'](_0x4473fd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x38e5fc of _0x4473fd['getAllAdjacentSuggestions']())_0x38e5fc['discard']();});});}['enableCommand'](_0x244018,_0x5d6d24){const _0x12641f=this['editor']['commands']['get'](_0x244018);if(!_0x12641f)throw new _0x29b816('track-changes-command-not-found',this,{'commandName':_0x244018});if(this['_enabledCommands']['has'](_0x12641f))throw new _0x29b816('track-changes-enable-command-twice',this,{'commandName':_0x244018});this['_enabledCommands']['add'](_0x12641f),_0x5d6d24&&_0x12641f['on']('execute',(_0x432f71,_0x3ad26f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3ad26f['length']>0x0&&_0x3ad26f[_0x3ad26f['length']-0x1]&&_0x3ad26f[_0x3ad26f['length']-0x1]['forceDefaultExecution']?_0x3ad26f['pop']():(_0x432f71['return']=_0x5d6d24((..._0x69bfc9)=>_0x12641f['execute'](..._0x69bfc9,{'forceDefaultExecution':!0x0}),..._0x3ad26f),_0x432f71['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1c44ab){let _0x2ce0fe,_0x34be18;const _0x39592e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2ce0fe=_0x1c44ab();}catch(_0x2d6fe6){_0x34be18=_0x2d6fe6;}return _0x39592e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x34be18&&_0x29b816['rethrowUnexpectedError'](_0x34be18,this),_0x2ce0fe;}['markInsertion'](_0x239625,_0x51264c=null,_0x4bc792={}){if(_0x239625['isCollapsed'])return null;const _0x557841=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4bc792['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x254995,meta:_0x1f9b4c}of this['_findSuggestions'](_0x239625,'insertion'))if(_0x1f9b4c['isOwn']){if(!_0x1f9b4c['isNextTo']){if(_0x1f9b4c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!En(_0x254995,_0x4bc792))continue;return _0x254995;}if(En(_0x254995,_0x4bc792))return _0x254995;this['_breakSuggestionMarker'](_0x254995,_0x239625['start'],_0x239625['end']);break;}if(_0x51264c==_0x254995['subType']&&En(_0x254995,_0x4bc792)){const _0x5b208b=_0x254995['getFirstRange']();return _0x5b208b['start']['isEqual'](_0x239625['end'])?this['_setSuggestionRange'](_0x254995,this['_model']['createRange'](_0x239625['start'],_0x5b208b['end'])):this['_setSuggestionRange'](_0x254995,this['_model']['createRange'](_0x5b208b['start'],_0x239625['end'])),_0x254995;}}const _0x219494=_0x1c6111(),_0x59213b=_0x557841['id'],_0x21a4b1=_0x51264c?'insertion:'+_0x51264c:'insertion',_0x3443d0=this['_setSuggestionData']({'id':_0x219494,'type':_0x21a4b1,'createdAt':new Date(),'authorId':_0x59213b,'attributes':_0x4bc792});return this['_addSuggestionMarker'](_0x21a4b1,_0x219494,_0x59213b,_0x239625),_0x3443d0;}['markMultiRangeInsertion'](_0x4b1228,_0x11bddc='multi',_0x343ff4={}){const _0x155827=this['editor']['plugins']['get']('Users')['me'],_0x277606=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x11bddc,'join');this['_trackingSessionId']&&(_0x343ff4['trackingSessionId']=this['_trackingSessionId']);for(const _0x4ac41a of this['getSuggestions']())if(_0x4ac41a['author']['id']==_0x155827['id']&&'insertion'==_0x4ac41a['type']&&_0x4ac41a['subType']==_0x11bddc&&En(_0x4ac41a,_0x343ff4)&&(_0x277606(_0x4ac41a['getRanges'](),_0x4b1228)||_0x277606(_0x4b1228,_0x4ac41a['getRanges']()))){for(const _0x38a76e of _0x4b1228)_0x4ac41a['addRange'](_0x38a76e);return _0x4ac41a;}for(const {suggestion:_0x1e2019,meta:_0x496d61}of this['_findSuggestions'](_0x4b1228,'insertion')){if(!_0x496d61['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x496d61['containsRangeInObject'])continue;if(!En(_0x1e2019,_0x343ff4))continue;let _0x3c3110=!0x0;for(const _0xe8ae54 of _0x1e2019['getRanges']())for(const _0x2a0b7b of _0x4b1228)if(!_0xe8ae54['containsRange'](_0x2a0b7b)){_0x3c3110=!0x1;break;}if(_0x3c3110)return _0x1e2019;}const _0x8a6a86=_0x1c6111(),_0x2b8fe8=_0x155827['id'],_0x2aad54='insertion:'+_0x11bddc,_0xa06c72=this['_setSuggestionData']({'id':_0x8a6a86,'type':_0x2aad54,'createdAt':new Date(),'authorId':_0x2b8fe8,'attributes':_0x343ff4});for(const _0x28031e of _0x4b1228)this['_addSuggestionMarker'](_0x2aad54,_0x8a6a86,_0x2b8fe8,_0x28031e,yt['getMultiRangeId']());return _0xa06c72;}['markInlineFormat'](_0x13c90a,_0x48a5e6,_0xee06ec=null,_0x2961ff={}){if(_0xee06ec=_0xee06ec||cn(_0x48a5e6),_0x13c90a['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2961ff['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x127258=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xee06ec,'accept');return this['forceDefaultExecution'](()=>_0x127258([_0x13c90a],_0x48a5e6,_0x2961ff)),null;}const _0x3cb20c=this['editor']['plugins']['get']('Users')['me'],_0x176699=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3d2a98,meta:_0x1d8cd8}of this['_findSuggestions'](_0x13c90a,'insertion'))_0x1d8cd8['isOwn']&&!_0x1d8cd8['isInsideObject']&&_0x176699['push'](..._0x3d2a98['getRanges']());}const _0x3abf54=function(_0x2487e2,_0x3cf61d){const _0x737550=[];for(const _0x393078 of _0x3cf61d){const _0x23ab89=_0x2487e2['getIntersection'](_0x393078);_0x23ab89&&_0x737550['push'](_0x23ab89);}return _0x737550;}(_0x13c90a,_0x176699),_0x420270=function(_0x5198d2,_0x10379d){const _0x2c60f2=[_0x5198d2];for(const _0x1dd9e7 of _0x10379d){let _0x457b64=0x0;for(;_0x457b64<_0x2c60f2['length'];){const _0x52aad8=_0x2c60f2[_0x457b64]['getDifference'](_0x1dd9e7);_0x2c60f2['splice'](_0x457b64,0x1,..._0x52aad8),_0x457b64+=_0x52aad8['length'];}}return _0x2c60f2;}(_0x13c90a,_0x176699);_0x3abf54['length']&&this['_model']['change'](()=>{for(const _0x4eeed1 of _0x3abf54){const _0x9bc6d6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xee06ec,'accept');this['forceDefaultExecution'](()=>_0x9bc6d6([_0x4eeed1],_0x48a5e6,_0x2961ff));}});for(const _0x26a0c8 of _0x420270){let _0x3f66fe=null,_0x409559=_0x26a0c8['start'],_0x57603d=_0x26a0c8['end'];for(const {suggestion:_0xad93cd,meta:_0x194fe9}of this['_findSuggestions'](_0x26a0c8,'formatInline')){if(!_0x194fe9['isOwn'])continue;if(_0xad93cd['subType']!=_0xee06ec)continue;if(!En(_0xad93cd,_0x2961ff))continue;const _0x2bace9=_0xad93cd['getFirstRange']();if(_0x2bace9['containsRange'](_0x26a0c8,!0x0))return null;_0x409559=_0x409559['isBefore'](_0x2bace9['start'])?_0x409559:_0x2bace9['start'],_0x57603d=_0x57603d['isAfter'](_0x2bace9['end'])?_0x57603d:_0x2bace9['end'],_0x3f66fe?_0x2bace9['start']['isBefore'](_0x3f66fe['getFirstRange']()['start'])?(_0x3f66fe['removeMarkers'](),_0x3f66fe=_0xad93cd):_0xad93cd['removeMarkers']():_0x3f66fe=_0xad93cd;}const _0x226233=this['_model']['createRange'](_0x409559,_0x57603d);if(_0x3f66fe)this['_setSuggestionRange'](_0x3f66fe,_0x226233);else{const _0x11563a=_0x1c6111(),_0x2ac7f3=_0x3cb20c['id'];this['_setSuggestionData']({'id':_0x11563a,'type':'formatInline:'+_0xee06ec,'data':_0x48a5e6,'createdAt':new Date(),'authorId':_0x2ac7f3,'attributes':_0x2961ff}),this['_addSuggestionMarker']('formatInline:'+_0xee06ec,_0x11563a,_0x2ac7f3,_0x226233);}}return null;}['markBlockFormat'](_0x34daab,_0x2a971e,_0x27fe15=[],_0x2e1e76=null,_0x34461b={}){_0x2a971e['formatGroupId']||(_0x2a971e['formatGroupId']=_0x2a971e['commandName']),_0x2a971e['multipleBlocks']=_0x34daab['is']('range'),_0x2e1e76=_0x2e1e76||cn(_0x2a971e);const _0x382bb9=_0x27fe15['map'](_0x23e85c=>gn(_0x23e85c,this['_model'])),_0x5e92b9=_0x34daab['is']('range')?_0x34daab:gn(_0x34daab,this['_model']);if(this['_trackingSessionId']&&(_0x34461b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x270392=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e1e76,'accept');return this['forceDefaultExecution'](()=>_0x270392([_0x5e92b9],_0x2a971e,_0x34461b)),null;}_0x382bb9['push'](_0x5e92b9);let _0x3939d7=!0x0;for(const _0x526cae of _0x382bb9)if(!this['_rangeIsInLocalUserInsertion'](_0x526cae)){_0x3939d7=!0x1;break;}if(_0x3939d7&&'always'!==this['_trackFormatChanges']){const _0x54f323=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e1e76,'accept');return this['forceDefaultExecution'](()=>_0x54f323([_0x5e92b9],_0x2a971e,_0x34461b)),null;}let _0x5e703e=null,_0x38c859=_0x5e92b9['start'],_0xb4bf26=_0x5e92b9['end'];for(const {suggestion:_0x437405,meta:_0x243bb2}of this['_findSuggestions'](_0x5e92b9,'formatBlock')){if(!_0x243bb2['isOwn'])continue;if(_0x243bb2['isNextTo']||_0x243bb2['containsRangeInObject']||_0x243bb2['isInsideObject'])continue;if(_0x437405['data']['formatGroupId']!=_0x2a971e['formatGroupId'])continue;if(!En(_0x437405,_0x34461b))continue;const _0x182b2f=_0x437405['getFirstRange']();if(_0x437405['subType']==_0x2e1e76){if(_0x182b2f['containsRange'](_0x5e92b9,!0x0))return null;_0x38c859=_0x38c859['isBefore'](_0x182b2f['start'])?_0x38c859:_0x182b2f['start'],_0xb4bf26=_0xb4bf26['isAfter'](_0x182b2f['end'])?_0xb4bf26:_0x182b2f['end'],_0x5e703e?_0x182b2f['start']['isBefore'](_0x5e703e['getFirstRange']()['start'])?(_0x5e703e['removeMarkers'](),_0x5e703e=_0x437405):_0x437405['removeMarkers']():_0x5e703e=_0x437405;}else{const _0x33bf2d=_0x5e92b9['getIntersection'](_0x182b2f);this['_cutOutSuggestionMarker'](_0x437405,_0x33bf2d);}}const _0x5a1b2b=this['editor']['plugins']['get']('Users')['me'],_0x390673=_0x1c6111(),_0x1f2e1e=_0x5a1b2b['id'];if(_0x5e703e)return this['_setSuggestionRange'](_0x5e703e,this['_model']['createRange'](_0x38c859,_0xb4bf26)),_0x5e703e;{const _0x467af6=this['_setSuggestionData']({'id':_0x390673,'type':'formatBlock:'+_0x2e1e76,'data':_0x2a971e,'createdAt':new Date(),'authorId':_0x1f2e1e,'attributes':_0x34461b});return this['_addSuggestionMarker']('formatBlock:'+_0x2e1e76,_0x390673,_0x1f2e1e,this['_model']['createRange'](_0x38c859,_0xb4bf26)),_0x467af6;}}['markMultiRangeBlockFormat'](_0x114f74,_0x118bce,_0x42fac0=[],_0x2c53a3=null,_0x535540={}){_0x118bce['formatGroupId']||(_0x118bce['formatGroupId']=_0x118bce['commandName']);const _0x3dd43d=_0x114f74[0x0];_0x118bce['multipleBlocks']=_0x3dd43d['is']('range'),_0x2c53a3=_0x2c53a3||cn(_0x118bce);const _0x3b53ec=_0x42fac0['map'](_0x1a7aea=>gn(_0x1a7aea,this['_model'])),_0x16341e=_0x3dd43d['is']('range')?_0x114f74:_0x114f74['map'](_0x4d8500=>gn(_0x4d8500,this['_model']));if(this['_trackingSessionId']&&(_0x535540['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3faaae=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c53a3,'accept');return this['forceDefaultExecution'](()=>_0x3faaae(_0x16341e,_0x118bce,_0x535540)),null;}_0x3b53ec['push'](..._0x16341e);let _0xbdef73=!0x0;for(const _0x5f021b of _0x3b53ec)if(!this['_rangeIsInLocalUserInsertion'](_0x5f021b)){_0xbdef73=!0x1;break;}if(_0xbdef73&&'always'!==this['_trackFormatChanges']){const _0xd20a7f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c53a3,'accept');return this['forceDefaultExecution'](()=>_0xd20a7f(_0x16341e,_0x118bce,_0x535540)),null;}const _0x42931d=this['editor']['plugins']['get']('Users')['me'];for(const _0x2ed7dc of this['getSuggestions']()){const _0x2a02d7=_0x2ed7dc['data'];if(_0x2ed7dc['author']['id']!=_0x42931d['id'])continue;if('formatBlock'!=_0x2ed7dc['type']||_0x2a02d7['formatGroupId']!=_0x118bce['formatGroupId'])continue;if(!En(_0x2ed7dc,_0x535540))continue;const _0x21342c=_0x2ed7dc['subType']==_0x2c53a3;for(let _0x4ac5b5=0x0;_0x4ac5b5<_0x16341e['length'];_0x4ac5b5++){const _0x4e1b2a=_0x16341e[_0x4ac5b5];for(const _0x5cc408 of _0x2ed7dc['getMarkers']()){const _0x5a7c0e=_0x5cc408['getRange']();if(_0x4e1b2a['isEqual'](_0x5a7c0e)){_0x21342c?(_0x16341e['splice'](_0x4ac5b5,0x1),_0x4ac5b5--):_0x2ed7dc['removeMarker'](_0x5cc408['name']);break;}}}}if(0x0==_0x16341e['length'])return null;const _0x1c031d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c53a3,'join');for(const _0x37dbce of this['getSuggestions']()){const _0x26b095=_0x37dbce['data'];if(_0x37dbce['author']['id']==_0x42931d['id']&&('formatBlock'==_0x37dbce['type']&&_0x26b095['formatGroupId']==_0x118bce['formatGroupId']&&_0x37dbce['subType']==_0x2c53a3&&En(_0x37dbce,_0x535540)&&(_0x1c031d(_0x37dbce['getRanges'](),_0x16341e)||_0x1c031d(_0x16341e,_0x37dbce['getRanges']())))){for(const _0xf067be of _0x16341e)_0x37dbce['addRange'](_0xf067be);return _0x37dbce;}}const _0x22a762=_0x1c6111(),_0xca1c25=_0x42931d['id'],_0x28fe94='formatBlock:'+_0x2c53a3,_0xa7257c=this['_setSuggestionData']({'id':_0x22a762,'type':_0x28fe94,'data':_0x118bce,'createdAt':new Date(),'authorId':_0xca1c25,'attributes':_0x535540});for(const _0x2061eb of _0x16341e)this['_addSuggestionMarker'](_0x28fe94,_0x22a762,_0xca1c25,_0x2061eb,yt['getMultiRangeId']());return _0xa7257c;}['markDeletion'](_0xe9b772,_0x499be6=null,_0x2cbe51={}){if(_0xe9b772['isCollapsed'])return null;const _0x2724ef=this['editor']['plugins']['get']('Users')['me'],_0xc03adf=new rt(_0xe9b772['start'],_0xe9b772['end']);this['_trackingSessionId']&&(_0x2cbe51['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1bf6a7,meta:_0x1d4d58}of this['_findSuggestions'](_0xc03adf,'insertion'))if(_0x1d4d58['isOwn']&&!_0x1d4d58['isNextTo']){if(_0x1bf6a7['isMultiRange']){const _0xe53027=_0x1bf6a7['getRanges']()['filter'](_0x3f4699=>'$graveyard'!=_0x3f4699['root']['rootName']);if(_0xe53027['every'](_0x52a1b3=>_0xc03adf['containsRange'](_0x52a1b3,!0x0))&&_0x1bf6a7['discard'](),_0xe53027['some'](_0x1ec829=>_0x1ec829['containsRange'](_0xc03adf,!0x0))){const _0x594b7e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x499be6,'accept');return this['forceDefaultExecution'](()=>_0x594b7e([_0xc03adf],null,_0x2cbe51)),null;}}else{const _0x5c0412=_0xc03adf['getIntersection'](_0x1bf6a7['getFirstRange']());null!==_0x5c0412&&_0x1bf6a7['_onDiscard']([_0x5c0412],null,_0x2cbe51);}}if(_0xc03adf['detach'](),_0xc03adf['isCollapsed']||'$graveyard'==_0xc03adf['root']['rootName'])return null;let _0xebf045=null,_0x20c598=_0xc03adf['start'],_0x517fe1=_0xc03adf['end'];const _0x5e13a3=this['_findSuggestions'](_0xc03adf,'deletion');for(const {suggestion:_0xde5ab8,meta:_0x5739ac}of _0x5e13a3){const _0x45a7b6=this['_model']['createRange'](_0x20c598,_0x517fe1);if(_0x5739ac['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5739ac['containsRangeInObject']&&!_0x5739ac['isInsideObject'])){if(_0xde5ab8['isMultiRange']){if(!En(_0xde5ab8,_0x2cbe51))continue;let _0x36c7ec=!0x0;for(const _0xe87135 of _0xde5ab8['getRanges']()){if(_0xe87135['containsRange'](_0x45a7b6,!0x0))return _0xde5ab8;_0x45a7b6['containsRange'](_0xe87135)||(_0x36c7ec=!0x1);}_0x36c7ec&&_0xde5ab8['discard']();}else{const _0x1ac26e=_0xde5ab8['getFirstRange']();if(_0x1ac26e['containsRange'](_0x45a7b6,!0x0))return _0xde5ab8;if(!En(_0xde5ab8,_0x2cbe51)){_0x45a7b6['containsRange'](_0x1ac26e)?_0xde5ab8['removeMarkers']():_0x1ac26e['containsPosition'](_0x20c598)?_0x20c598=_0x1ac26e['end']:_0x1ac26e['containsPosition'](_0x517fe1)&&(_0x517fe1=_0x1ac26e['start']);continue;}_0x20c598=_0x20c598['isBefore'](_0x1ac26e['start'])?_0x20c598:_0x1ac26e['start'],_0x517fe1=_0x517fe1['isAfter'](_0x1ac26e['end'])?_0x517fe1:_0x1ac26e['end'],_0x2cbe51=Object['assign']({},_0xde5ab8['attributes']),_0xebf045?_0x1ac26e['start']['isBefore'](_0xebf045['getFirstRange']()['start'])?(_0xebf045['removeMarkers'](),_0xebf045=_0xde5ab8):_0xde5ab8['removeMarkers']():_0xebf045=_0xde5ab8;}}}if(_0xebf045)return this['_setSuggestionRange'](_0xebf045,this['_model']['createRange'](_0x20c598,_0x517fe1)),_0xebf045;{const _0x384a7d=_0x1c6111(),_0x38e863=this['_model']['createRange'](_0x20c598,_0x517fe1),_0x1b8f89=_0x2724ef['id'],_0x1b720b=_0x499be6?'deletion:'+_0x499be6:'deletion',_0x1d16eb=this['_setSuggestionData']({'id':_0x384a7d,'type':_0x1b720b,'createdAt':new Date(),'authorId':_0x1b8f89,'attributes':_0x2cbe51});return this['_addSuggestionMarker'](_0x1b720b,_0x384a7d,_0x1b8f89,_0x38e863),_0x1d16eb;}}['markMultiRangeDeletion'](_0x29cc6b,_0x53c92b='multi',_0x1ad77f={}){const _0x757e5d=this['editor']['plugins']['get']('Users')['me'],_0xf205d3=_0x29cc6b['map'](_0x236926=>new rt(_0x236926['start'],_0x236926['end'])),_0x561c8d=new Set();this['_trackingSessionId']&&(_0x1ad77f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4f8a2e,meta:_0x33e317}of this['_findSuggestions'](_0xf205d3,'insertion'))_0x33e317['isOwn']&&!_0x33e317['isNextTo']&&_0x561c8d['add'](_0x4f8a2e);for(const _0x44cc1d of _0x561c8d)if(_0x44cc1d['isMultiRange']){const _0x12164a=_0x44cc1d['getRanges']();if(_0x44cc1d['attributes']&&_0x44cc1d['attributes']['skipNestingCheck']||_0x12164a['every'](_0x244047=>_0xf205d3['some'](_0x4b60df=>_0x4b60df['containsRange'](_0x244047,!0x0)))&&_0x44cc1d['discard'](),_0xf205d3['every'](_0xccface=>_0x12164a['some'](_0x51c55e=>_0x51c55e['containsRange'](_0xccface,!0x0)))){const _0x5181d9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53c92b,'accept');return this['forceDefaultExecution'](()=>_0x5181d9(_0x29cc6b,null,_0x1ad77f)),null;}}else{const _0x9b3e8a=_0x44cc1d['getFirstRange']();if(_0xf205d3['some'](_0x5549a7=>_0x5549a7['containsRange'](_0x9b3e8a,!0x0))&&_0x44cc1d['discard'](),_0xf205d3['every'](_0x21def5=>_0x9b3e8a['containsRange'](_0x21def5,!0x0))){const _0x54d98=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53c92b,'accept');return this['forceDefaultExecution'](()=>_0x54d98(_0xf205d3,null,_0x1ad77f)),null;}}const _0x4db2da=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53c92b,'join');let _0x1e08ff=null;for(const _0xa7f1e of this['getSuggestions']())if(_0xa7f1e['author']['id']==_0x757e5d['id']&&_0xa7f1e['isInContent']&&'deletion'==_0xa7f1e['type']&&_0xa7f1e['subType']==_0x53c92b&&En(_0xa7f1e,_0x1ad77f)&&(_0x4db2da(_0xa7f1e['getRanges'](),_0xf205d3)||_0x4db2da(_0xf205d3,_0xa7f1e['getRanges']()))){if(_0x1e08ff){if(_0xa7f1e['commentThread']&&_0xa7f1e['commentThread']['length'])continue;for(const _0x1070df of _0xa7f1e['getRanges']())_0x1e08ff['isIntersectingWithRange'](_0x1070df)||_0x1e08ff['addRange'](_0x1070df);_0xa7f1e['removeMarkers']();}else{_0x1e08ff=_0xa7f1e;for(const _0x43d968 of _0xf205d3)_0xa7f1e['isIntersectingWithRange'](_0x43d968)||_0xa7f1e['addRange'](_0x43d968);}}if(_0x1e08ff)return _0x1e08ff;_0x561c8d['clear']();for(const {suggestion:_0x4035fc,meta:_0x415508}of this['_findSuggestions'](_0xf205d3,'deletion'))_0x415508['isOwn']&&(this['_mergeNestedSuggestions']||!_0x415508['containsRangeInObject']&&!_0x415508['isInsideObject'])&&En(_0x4035fc,_0x1ad77f)&&_0x561c8d['add'](_0x4035fc);for(const _0x3da816 of _0x561c8d){const _0x20d484=_0x3da816['getRanges']();if((!_0x1ad77f||!_0x1ad77f['skipNestingCheck'])&&_0xf205d3['every'](_0x308417=>_0x20d484['some'](_0x4807d5=>_0x4807d5['containsRange'](_0x308417,!0x0))))return _0x3da816;_0x3da816['attributes']&&_0x3da816['attributes']['skipNestingCheck']||_0x20d484['every'](_0xa47452=>_0xf205d3['some'](_0x2f4f75=>_0x2f4f75['containsRange'](_0xa47452,!0x0)))&&_0x3da816['discard']();}const _0x48b6f5=_0x1c6111(),_0x12cb5e=_0x757e5d['id'],_0x5372fa='deletion:'+_0x53c92b,_0x61dd8b=this['_setSuggestionData']({'id':_0x48b6f5,'type':_0x5372fa,'createdAt':new Date(),'authorId':_0x12cb5e,'attributes':_0x1ad77f});for(const _0x41a316 of _0xf205d3)_0x41a316['detach'](),_0x41a316['isCollapsed']||'$graveyard'==_0x41a316['root']['rootName']||this['_addSuggestionMarker'](_0x5372fa,_0x48b6f5,_0x12cb5e,_0x41a316,yt['getMultiRangeId']());return _0x61dd8b;}['markAttributeChange'](_0x4e3b5f,_0x5d6588,_0xde6dc9,_0x4c8b56,_0x3da974){if(_0x4e3b5f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x26a4cc=this['editor']['plugins']['get']('Users')['me']['id'],_0x22c13d=Array['from'](this['_suggestions']['values']())['filter'](_0x10d2df=>'attribute'==_0x10d2df['type']&&_0x10d2df['data']['key']==_0x5d6588&&_0x10d2df['isIntersectingWithRange'](_0x4e3b5f));if(this['_trackingSessionId']&&(_0x3da974['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x199fcf=this['_findSuggestions'](_0x4e3b5f,'insertion')['filter'](({meta:_0x28ec74})=>_0x28ec74['isOwn']&&!_0x28ec74['isInsideObject']&&!_0x28ec74['isNextTo'])['map'](({suggestion:_0x40d858})=>_0x40d858);_0x22c13d['unshift'](..._0x199fcf);}const _0x5499fe=new Map([[_0x4e3b5f,_0xde6dc9]]);for(const _0x55d05d of _0x22c13d){const _0x186ce5='attribute'==_0x55d05d['type']?_0x55d05d['data']['oldValue']:void 0x0,_0x4b67bd=_0x55d05d['getFirstRange'](),_0x446f80=Array['from'](_0x5499fe['keys']())['find'](_0x3c0b9e=>_0x3c0b9e['isIntersecting'](_0x4b67bd));if(!_0x446f80)continue;const _0x7fd316=_0x446f80['getDifference'](_0x4b67bd);this['_suggestionsConversion']['isBlockAttribute'](_0x5d6588)&&'insertion'==_0x55d05d['type']&&0x0!=_0x7fd316['length']||(_0x5499fe['delete'](_0x446f80),_0x7fd316['forEach'](_0x224a1d=>{_0x5499fe['set'](_0x224a1d,_0xde6dc9);}),'insertion'!=_0x55d05d['type']&&_0x186ce5!=_0x4c8b56&&_0x5499fe['set'](_0x446f80['getIntersection'](_0x4b67bd),_0x186ce5));}const _0x9bbd33=[];for(const [_0x449f83,_0x361f92]of _0x5499fe){const _0x49bbca=_0x1c6111(),_0x20307e={'key':_0x5d6588,'oldValue':_0x361f92,'newValue':_0x4c8b56};_0x5d6588['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':_0x5d6588});const _0x4377a4=('attribute:'+_0x5d6588+'|'+cn({'newValue':_0x4c8b56}))['substring'](0x0,0x3c),_0x6239ad=this['_setSuggestionData']({'id':_0x49bbca,'type':_0x4377a4,'data':_0x20307e,'createdAt':new Date(),'authorId':_0x26a4cc,'attributes':_0x3da974});_0x9bbd33['push'](_0x6239ad),this['_addSuggestionMarker'](_0x4377a4,_0x49bbca,_0x26a4cc,_0x449f83);}return _0x9bbd33;}['enableDefaultAttributesIntegration'](_0x3fec7b){this['enableCommand'](_0x3fec7b,(_0x5bd671,..._0x881ae4)=>{this['recordAttributeChanges'](()=>{_0x5bd671(..._0x881ae4);});});}['startTrackingSession'](_0x5da0fa){return this['_trackingSessionId']=void 0x0!==_0x5da0fa?_0x5da0fa:_0x1c6111(),this['_trackingSessionId'];}['_getAttributeKey'](_0x485c22){return'attribute'==_0x485c22['type']?_n(_0x485c22['subType']):null;}['_applyOperationsAsSuggestions'](_0x395e06){if(0x0==_0x395e06['length'])return;const _0x3963e8=this['editor'],_0x55c5e4=_0x3963e8['plugins']['get'](_0x1ece8a),_0xc28266=[],_0x40f429=_0x2c22ac=>{const _0x3a2965=_0x2c22ac['_aiSource'];return _0x3a2965?{'@ai':{'type':_0x3a2965}}:{};},_0x546708=(_0x45b5bb,_0x1ee70d,_0x3dc3ba)=>{for(let _0x4c13e2=_0x1ee70d;_0x4c13e2<_0x45b5bb['operations']['length'];_0x4c13e2++){const _0x35122e=_0x45b5bb['operations'][_0x4c13e2];'marker'===_0x35122e['type']&&(_0x35122e['_aiSource']=_0x3dc3ba);}};_0x3963e8['model']['change'](_0x201381=>{for(let _0x505af7=0x0;_0x505af7<_0x395e06['length'];_0x505af7++){const _0x283b0a=_0x395e06[_0x505af7],_0x16ee1c=_0x283b0a['_aiSource'],_0xcec2cd=_0x201381['batch']['operations']['length'];if(_0x283b0a['baseVersion']=_0x3963e8['model']['document']['version'],_0x283b0a['isDocumentOperation']=!0x0,_0x55c5e4['isMarkedRemoveOperation'](_0x283b0a)){const _0x5d8122=_0x2af816(_0x283b0a['newRange'],_0x3963e8['model']);_0xc28266['unshift']({'range':rt['fromRange'](_0x5d8122),'opAttributes':_0x40f429(_0x283b0a),'aiSource':_0x16ee1c});}else{switch(_0x283b0a['type']){case'rename':{const _0x17e11a=_0x283b0a['oldName'],_0x39870e=_0x283b0a['newName'];if(_0x17e11a==_0x39870e)break;_0x201381['batch']['addOperation'](_0x283b0a),_0x3963e8['model']['applyOperation'](_0x283b0a);const _0x58877e='$elementName',_0x2e03c2=_0x283b0a['position'],_0x56d418=_0x3963e8['model']['createRange'](_0x2e03c2,_0x3963e8['model']['createPositionAt'](_0x2e03c2['nodeAfter'],'end'));this['markAttributeChange'](_0x56d418,_0x58877e,_0x17e11a,_0x39870e,{..._0x40f429(_0x283b0a),'groupId':_0x1c6111()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x1f362d=_0x283b0a['oldValue'],_0x3ae8b8=_0x283b0a['newValue'];if(_0x1f362d==_0x3ae8b8)break;_0x201381['batch']['addOperation'](_0x283b0a),_0x3963e8['model']['applyOperation'](_0x283b0a);const _0x10e5ac=_0x283b0a['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x10e5ac))break;const _0x49d760=_0x2af816(_0x283b0a['range'],_0x3963e8['model']);this['markAttributeChange'](_0x49d760,_0x10e5ac,_0x1f362d,_0x3ae8b8,{..._0x40f429(_0x283b0a),'groupId':_0x1c6111()});break;}case'insert':{if(_0x201381['batch']['addOperation'](_0x283b0a),_0x3963e8['model']['applyOperation'](_0x283b0a),_0x395e06[_0x505af7+0x1]&&'move'==_0x395e06[_0x505af7+0x1]['type'])break;const _0x48cf32=_0x283b0a['position'],_0x4cf719=_0x283b0a['howMany'],_0x5aab89=_0x2af816(_0x3963e8['model']['createRange'](_0x48cf32,_0x48cf32['getShiftedBy'](_0x4cf719)),_0x3963e8['model']);this['markInsertion'](_0x5aab89,null,{..._0x40f429(_0x283b0a)});break;}case'split':{_0x201381['batch']['addOperation'](_0x283b0a),_0x3963e8['model']['applyOperation'](_0x283b0a);const _0x6f23d8=_0x283b0a['splitPosition'],_0x530950=_0x283b0a['moveTargetPosition'],_0x53af2a=_0x3963e8['model']['createRange'](_0x6f23d8,_0x530950);this['markInsertion'](_0x53af2a,null,{..._0x40f429(_0x283b0a)});break;}case'move':case'remove':_0x201381['batch']['addOperation'](_0x283b0a),_0x3963e8['model']['applyOperation'](_0x283b0a);}_0x16ee1c&&_0x546708(_0x201381['batch'],_0xcec2cd,_0x16ee1c);}}for(const {range:_0x2f1ad9,opAttributes:_0x5a3922,aiSource:_0x464c87}of _0xc28266){const _0x59f7a9=_0x201381['batch']['operations']['length'];_0x2f1ad9['detach'](),this['markDeletion'](_0x2f1ad9,null,{..._0x5a3922}),_0x464c87&&_0x546708(_0x201381['batch'],_0x59f7a9,_0x464c87);}});}['_setSuggestionRange'](_0xf78147,_0x2b78a6){const _0x4990e5=_0xf78147['getFirstMarker']();this['_model']['change'](_0xe5ac2=>{_0xe5ac2['updateMarker'](_0x4990e5,{'range':_0x2b78a6});});}['_addThreadToSuggestion'](_0x2ae0d1){const _0x41aacd=_0x2ae0d1['id'],_0x1a35ad=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x41aacd)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1a35ad,'threadId':_0x41aacd,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x14347a=this['_commentsRepository']['getCommentThread'](_0x41aacd);_0x14347a['unbind']('isRemovable'),_0x14347a['isRemovable']=!0x1,_0x2ae0d1['commentThread']=_0x14347a;}['_checkSuggestionCorrectness'](_0x3b9fc7,_0x5c301c,_0xb8816d,_0x5ac0a8){if(_0x3b9fc7['type']!=_0x5c301c||_0x3b9fc7['subType']!=_0xb8816d||_0x3b9fc7['creator']['id']!=_0x5ac0a8)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x29b816('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x289c71,_0xc5b762){const _0x83f35d=_0x289c71['getFirstRange']();if(_0xc5b762['isEqual'](_0x83f35d))_0x289c71['removeMarkers']();else{if(_0x83f35d['containsRange'](_0xc5b762)){const _0x1a4093=this['_model']['createPositionAt'](_0xc5b762['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x289c71,this['_model']['createRange'](_0x83f35d['start'],_0x1a4093));const _0x8a7653=_0x1c6111(),_0xd4895c=_0x289c71['creator']['id'],_0x570659=_0x289c71['type']+':'+_0x289c71['subType'];this['_setSuggestionData']({'id':_0x8a7653,'type':_0x570659,'createdAt':new Date(),'authorId':_0xd4895c,'data':_0x289c71['data'],'attributes':_0x289c71['attributes']});const _0x32cc24=this['_model']['createPositionAt'](_0xc5b762['end']['parent'],'after'),_0x39d921=this['_model']['createRange'](_0x32cc24,_0x83f35d['end']);this['_addSuggestionMarker'](_0x570659,_0x8a7653,_0xd4895c,_0x39d921);}else{if(_0x83f35d['containsPosition'](_0xc5b762['start'])){const _0x169227=this['_model']['createPositionAt'](_0xc5b762['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x289c71,this['_model']['createRange'](_0x83f35d['start'],_0x169227));}else{const _0x34bafb=this['_model']['createPositionAt'](_0xc5b762['end']['parent'],'after');this['_setSuggestionRange'](_0x289c71,this['_model']['createRange'](_0x34bafb,_0x83f35d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x226b64){for(const {suggestion:_0x501b0f,meta:_0x13970a}of this['_findSuggestions'](_0x226b64,'insertion')){if(!_0x13970a['isOwn'])continue;const _0x5197f2=_0x501b0f['getRanges']();for(const _0x11f0ff of _0x5197f2)if(!_0x226b64['getDifference'](_0x11f0ff)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2e99a5){return this['editor']['plugins']['get']('Users')['getUser'](_0x2e99a5);}['_getExternalAuthor'](_0x3135ec){const _0x271e63=this['editor']['plugins']['get']('Users'),_0x3e3c73=_0x5de096('external:'+_0x3135ec),_0x2a5cc6=_0x271e63['getUser'](_0x3e3c73);return _0x2a5cc6||_0x271e63['addUser']({'id':_0x3e3c73,'name':_0x3135ec});}['_createSuggestion'](_0x358594,_0x5c2286,_0x450360,_0x317f42,_0x226237,_0x536041){const _0x234a30=this['_getAuthorFromId'](_0x317f42);if(!_0x234a30)throw new _0x29b816('track-changes-user-not-found',this,{'authorId':_0x317f42,'suggestionId':_0x450360});const _0x58681f=this['_suggestionFactory']['buildSuggestion'](_0x358594,_0x5c2286,_0x450360,_0x234a30,_0x226237,_0x6da603=>{this['_updateSuggestionData'](_0x450360,{'attributes':_0x6da603});const _0x12f34e=this['getSuggestion'](_0x450360);this['_joinWithAdjacentSuggestions'](new Set([_0x12f34e])),this['_refreshSuggestionsChain'](new Set([_0x12f34e]));},_0x536041);return this['listenTo'](_0x58681f,'accept',()=>{this['_updateSuggestionData'](_0x450360,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x58681f,'discard',()=>{this['_updateSuggestionData'](_0x450360,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x450360,_0x58681f),this['_suggestionState']['set'](_0x58681f,'notReady'),_0x58681f;}['_breakSuggestionMarker'](_0x33c9ec,_0x153c57,_0x371fce){const _0x976fee=_0x33c9ec['getFirstRange'](),_0x1e0480=_0x976fee['start'],_0xd463c3=_0x976fee['end'];this['_setSuggestionRange'](_0x33c9ec,this['_model']['createRange'](_0x1e0480,_0x153c57));const _0x388ea2=_0x1c6111(),_0x23c0a9=_0x33c9ec['creator']['id'],_0x6e4f8a=_0x33c9ec['type']+(_0x33c9ec['subType']?':'+_0x33c9ec['subType']:'');this['_setSuggestionData']({'id':_0x388ea2,'type':_0x6e4f8a,'createdAt':new Date(),'authorId':_0x23c0a9,'originalSuggestionId':_0x33c9ec['_originalSuggestionId']||_0x33c9ec['id'],'attributes':_0x33c9ec['attributes'],'data':_0x33c9ec['data']});const _0x5662ea=this['_getAttributeKey'](_0x33c9ec);('formatBlock'==_0x33c9ec['type']||_0x5662ea&&this['_suggestionsConversion']['isBlockAttribute'](_0x5662ea))&&(_0x371fce=this['_model']['createPositionBefore'](_0x371fce['parent'])),this['_addSuggestionMarker'](_0x6e4f8a,_0x388ea2,_0x23c0a9,this['_model']['createRange'](_0x371fce,_0xd463c3));}['_findSuggestions'](_0x164077,_0x32f44b=null){const _0x48e986=[],_0x33c35f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x164077)||(_0x164077=[_0x164077]);for(const _0x59538f of this['getSuggestions']()){if(!_0x59538f['isInContent'])continue;if(_0x32f44b&&_0x59538f['type']!=_0x32f44b)continue;let _0xc36058=!0x1;for(const _0x1a5685 of _0x59538f['getRanges']()){for(const _0x2e582c of _0x164077){const _0x4bb6f4=_0x2e582c['start']['isEqual'](_0x1a5685['end'])||_0x2e582c['end']['isEqual'](_0x1a5685['start']);if(_0x4bb6f4||_0x2e582c['getIntersection'](_0x1a5685)){const _0x258312=_0x2e582c['containsRange'](_0x1a5685)&&rn(this['_model']['schema'],_0x1a5685['start'],_0x2e582c),_0x5c78c8=_0x1a5685['containsRange'](_0x2e582c)&&rn(this['_model']['schema'],_0x2e582c['start'],_0x1a5685);_0x48e986['push']({'suggestion':_0x59538f,'meta':{'isOwn':_0x33c35f==_0x59538f['author'],'isNextTo':_0x4bb6f4,'isInsideObject':_0x258312,'containsRangeInObject':_0x5c78c8}}),_0xc36058=!0x0;break;}}if(_0xc36058)break;}}return _0x48e986;}['_addSuggestionMarker'](_0xc6e53f,_0x2edaea,_0x13e0b2,_0x5daefe,_0x416510){this['_model']['change'](_0x11246a=>{let _0xa827b0='suggestion:'+_0xc6e53f+':'+_0x2edaea+':'+_0x13e0b2;_0x416510&&(_0xa827b0=_0xa827b0+':'+_0x416510),_0x11246a['addMarker'](_0xa827b0,{'range':_0x5daefe,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3264d1){const _0x3f3b65=_0x3264d1['previous'],_0x3aac10=_0x3264d1['next'];_0x3264d1['previous']=null,_0x3264d1['next']=null,null!=_0x3f3b65&&_0x3f3b65['next']==_0x3264d1&&(_0x3f3b65['next']=_0x3aac10),null!=_0x3aac10&&_0x3aac10['previous']==_0x3264d1&&(_0x3aac10['previous']=_0x3f3b65),'ready'==this['_suggestionState']['get'](_0x3264d1)&&(this['_suggestionState']['set'](_0x3264d1,'removed'),this['fire']('suggestionUnloaded',_0x3264d1,_0x3f3b65,_0x3aac10));}['_setSuggestionData'](_0x36c36b){const _0x693c40=_0x36c36b['id'],_0x3fe203=this['addSuggestionData'](_0x36c36b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x41e025=this['editor']['plugins']['get']('PendingActions'),_0x4d7ba1=_0x3fe203['hasComments'],_0x4aac4c=_0x3fe203['subType']?_0x3fe203['type']+':'+_0x3fe203['subType']:_0x3fe203['type'],_0xbe40c=this['editor']['locale'],_0x22ddf9=_0x41e025['add'](St(_0xbe40c,'PENDING_ACTION_SUGGESTION')),_0x4dc816={'id':_0x693c40,'type':_0x4aac4c,'hasComments':_0x4d7ba1,'data':_0x36c36b['data']||null,'originalSuggestionId':_0x36c36b['originalSuggestionId']||null,'attributes':_0x3fe203['attributes']};this['_adapter']['addSuggestion'](_0x4dc816)['then'](_0x388765=>{_0x3fe203['_saved']=!0x0,_0x41e025['remove'](_0x22ddf9),_0x388765&&_0x388765['createdAt']&&(this['_suggestions']['get'](_0x693c40)['createdAt']=_0x388765['createdAt']);})['catch'](_0x97b985=>{throw _0x3de477('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3fe203['discard']();}),_0x3fe203['stopListening'](),this['_suggestions']['delete'](_0x3fe203['id']),this['_suggestionState']['delete'](_0x3fe203),_0x97b985;});}return _0x3fe203;}['_updateSuggestionData'](_0xc57670,_0x41478f){const _0x450e0c=this['editor']['plugins']['get']('PendingActions'),_0x5c5bb9=this['getSuggestion'](_0xc57670);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5c5bb9['_saved']){const _0x50740a=_0x450e0c['add'](St(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xc57670,_0x41478f)['then'](()=>{_0x450e0c['remove'](_0x50740a);});}else _0x5c5bb9['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xc57670,_0x41478f);});}}['_getSuggestionData'](_0x2101dc){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x29b816('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2101dc);}['_handleNewSuggestionMarker'](_0xa4058d){const {id:_0x25234b,type:_0x2834a0,subType:_0x5ad1f9,authorId:_0x5aeab5}=tt(_0xa4058d),_0x2c89c1=this['_suggestions']['get'](_0x25234b)||this['_createSuggestion'](_0x2834a0,_0x5ad1f9,_0x25234b,_0x5aeab5,{});switch(this['_checkSuggestionCorrectness'](_0x2c89c1,_0x2834a0,_0x5ad1f9,_0x5aeab5),this['_suggestionState']['get'](_0x2c89c1)){case'notReady':this['_getSuggestionData'](_0x25234b)['then'](_0x3ff6db=>{let _0x545869=Promise['resolve']();_0x3ff6db['hasComments']&&(_0x545869=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x25234b})),_0x545869['then'](()=>{this['addSuggestionData'](_0x3ff6db)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2c89c1,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x25234b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2c89c1,'ready'),this['fire']('suggestionLoaded',_0x2c89c1);break;case'ready':this['fire']('suggestionChanged',_0x2c89c1);}return _0x2c89c1['addMarkerName'](_0xa4058d),_0x2c89c1;}['_refreshSuggestionsChain'](_0x25e4de){const _0x4520ed=Array['from'](_0x25e4de),_0x336975=_0x4520ed['filter'](_0x552f74=>'attribute'==_0x552f74['type']);this['_refreshAttributeSuggestionsChain'](_0x336975);const _0x5e328b=_0x4520ed['filter'](_0x4576a3=>!_0x4576a3['isMultiRange']&&'attribute'!=_0x4576a3['type']),_0x42d1ac=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x706116=>!_0x706116['isMultiRange']&&'attribute'!=_0x706116['type']),_0x336591=_0x42d1ac['filter'](_0x520557=>!_0x25e4de['has'](_0x520557)),_0x1b43a6=new Map(_0x42d1ac['map'](_0x3a7f58=>[_0x3a7f58,this['_suggestionFactory']['getSuggestionCallback'](_0x3a7f58['type'],_0x3a7f58['subType'],'chain')])),_0x3d265b=new Map(_0x42d1ac['map'](_0x23d472=>[_0x23d472,_0x23d472['getFirstRange']()])),_0x41793e=new Set(),_0x1f8c47=new Set();for(let _0x5a44dc=0x0;_0x5a44dc<_0x5e328b['length'];_0x5a44dc++)_0x2d2dc6(_0x5e328b[_0x5a44dc],_0x5e328b,_0x5a44dc+0x1);for(let _0x5a610a=0x0;_0x5a610a<_0x5e328b['length'];_0x5a610a++)_0x2d2dc6(_0x5e328b[_0x5a610a],_0x336591,0x0);const _0x908781=new Set();for(let _0x36838c=0x0;_0x36838c<_0x5e328b['length'];_0x36838c++){const _0x1e660f=_0x5e328b[_0x36838c];!_0x1f8c47['has'](_0x1e660f)&&_0x1e660f['previous']&&(_0x908781['add'](_0x1e660f['previous']),_0x1e660f['previous']['next']===_0x1e660f&&(_0x1e660f['previous']['next']=null),_0x1e660f['previous']=null),!_0x41793e['has'](_0x1e660f)&&_0x1e660f['next']&&(_0x908781['add'](_0x1e660f['next']),_0x1e660f['next']['previous']===_0x1e660f&&(_0x1e660f['next']['previous']=null),_0x1e660f['next']=null);}function _0x2d2dc6(_0x2e08bb,_0x4b5f50,_0x1ff1c4){for(let _0x48c59e=_0x1ff1c4;_0x48c59e<_0x4b5f50['length'];_0x48c59e++){const _0x340311=_0x3cbf60(_0x2e08bb,_0x4b5f50[_0x48c59e]);_0x340311&&(_0x340311[0x0]['next']=_0x340311[0x1],_0x340311[0x1]['previous']=_0x340311[0x0],_0x41793e['add'](_0x340311[0x0]),_0x1f8c47['add'](_0x340311[0x1]));}}function _0x3cbf60(_0x4e25c2,_0x4e3921){if(_0x4e25c2['author']['id']!==_0x4e3921['author']['id'])return null;const _0x2b64be=_0x1b43a6['get'](_0x4e25c2)(_0x4e25c2,_0x4e3921,_0x3d265b['get'](_0x4e25c2),_0x3d265b['get'](_0x4e3921));return _0x2b64be&&_0x1b43a6['get'](_0x4e3921)(_0x4e25c2,_0x4e3921,_0x3d265b['get'](_0x4e25c2),_0x3d265b['get'](_0x4e3921))?_0x2b64be[0x1]['commentThread']&&_0x2b64be[0x1]['commentThread']['length']?null:_0x2b64be:null;}_0x908781['size']&&this['_refreshSuggestionsChain'](_0x908781);}['_refreshAttributeSuggestionsChain'](_0x52416a){if(0x0==_0x52416a['length'])return;const _0x16ca9f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3984ae=>'attribute'==_0x3984ae['type']&&_0x3984ae['_isDataLoaded']),_0x12acd8=[],_0x454c38=new Map();for(const _0x1bac83 of _0x16ca9f){const _0x35ec0c=_0x5de096(_0x1bac83['attributes']);_0x454c38['has'](_0x35ec0c)||(_0x454c38['set'](_0x35ec0c,_0x12acd8['length']),_0x12acd8['push']([])),_0x12acd8[_0x454c38['get'](_0x35ec0c)]['push'](_0x1bac83);}!(function(){_0x12acd8['sort']((_0x5e3303,_0x4fd72c)=>{const _0x46aec3=_0x5e3303[0x0]['createdAt'],_0x3061f9=_0x4fd72c[0x0]['createdAt'];return _0x46aec3==_0x3061f9?_0x5e3303[0x0]['attributes']['groupId']<_0x4fd72c[0x0]['attributes']['groupId']?-0x1:0x1:_0x46aec3<_0x3061f9?-0x1:0x1;});for(const _0x320aa1 of _0x12acd8)_0x320aa1['sort']((_0x59a585,_0x43adcf)=>_0x59a585['id']<_0x43adcf['id']?-0x1:0x1);}());for(let _0x2cd199=0x0;_0x2cd199<_0x12acd8['length'];_0x2cd199++){if(0x0==_0x12acd8[_0x2cd199]['length'])continue;const _0x1e46bd=[];for(let _0xf4e22f=_0x2cd199+0x1;_0xf4e22f<_0x12acd8['length'];_0xf4e22f++)0x0!=_0x12acd8[_0xf4e22f]['length']&&_0x380edb(_0x12acd8[_0x2cd199],_0x12acd8[_0xf4e22f])&&_0x1e46bd['push'](_0xf4e22f);for(const _0xe7ecdd of _0x1e46bd)_0x12acd8[_0x2cd199]=_0x12acd8[_0x2cd199]['concat'](_0x12acd8[_0xe7ecdd]),_0x12acd8[_0xe7ecdd]=[];}for(const _0x12074f of _0x12acd8)for(let _0x44a861=0x0;_0x44a861<_0x12074f['length'];_0x44a861++){const _0x2f718c=_0x12074f[_0x44a861+0x1]||null;_0x12074f[_0x44a861]['next']!==_0x2f718c&&(_0x12074f[_0x44a861]['next']=_0x2f718c);}for(const _0x8a792e of _0x12acd8)for(let _0x169f29=0x0;_0x169f29<_0x8a792e['length'];_0x169f29++){const _0x20d46f=_0x8a792e[_0x169f29-0x1]||null;_0x8a792e[_0x169f29]['previous']!==_0x20d46f&&(_0x8a792e[_0x169f29]['previous']=_0x20d46f);}function _0x380edb(_0x156b55,_0xc84917){return(_0x156b55[0x0]['attributes']['groupId']===_0xc84917[0x0]['attributes']['groupId']||_0x156b55[0x0]['author']===_0xc84917[0x0]['author'])&&(!!function(_0x396ccc,_0x15d231){return!_0x396ccc['hasComments']&&!_0x15d231['hasComments']||(!_0x396ccc['hasComments']||!_0x15d231['hasComments'])&&(!!(_0x396ccc['hasComments']&&_0x15d231['createdAt']<_0x396ccc['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x15d231['hasComments']&&_0x396ccc['createdAt']<_0x15d231['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x156b55[0x0],_0xc84917[0x0])&&(!!ct(lt(_0x156b55[0x0]['attributes'],['groupId','trackingSessionId']),lt(_0xc84917[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0x156b55[0x0]['attributes']['groupId']==_0xc84917[0x0]['attributes']['groupId']||_0x156b55[0x0]['attributes']['trackingSessionId']===_0xc84917[0x0]['attributes']['trackingSessionId']&&(!!_0x156b55['every'](_0x186b81=>_0xc84917['some'](_0x20803b=>_0x186b81['getFirstRange']()['isEqual'](_0x20803b['getFirstRange']())))&&_0xc84917['every'](_0x1eaa3f=>_0x156b55['some'](_0x17e3f7=>_0x1eaa3f['getFirstRange']()['isEqual'](_0x17e3f7['getFirstRange']())))))));}}['_joinWithAdjacentSuggestions'](_0x169a04){const _0x1c7f09=Array['from'](_0x169a04),_0x132643=this['getSuggestions']({'skipNotAttached':!0x0}),_0x48e87d=_0x132643['filter'](_0x5dd692=>!_0x169a04['has'](_0x5dd692)),_0x45a7c1=new Map(_0x1c7f09['map'](_0x4298b2=>[_0x4298b2,this['_suggestionFactory']['getSuggestionCallback'](_0x4298b2['type'],_0x4298b2['subType'],'join')])),_0x165b07=new Map(_0x132643['map'](_0x166e29=>[_0x166e29,_0x166e29['getRanges']()]));for(let _0x1d3cbc=0x0;_0x1d3cbc<_0x1c7f09['length'];_0x1d3cbc++)if(_0x5235d6(this,_0x1c7f09[_0x1d3cbc],_0x1c7f09,_0x1d3cbc+0x1))return!0x0;for(let _0x779687=0x0;_0x779687<_0x1c7f09['length'];_0x779687++)if(_0x5235d6(this,_0x1c7f09[_0x779687],_0x48e87d,0x0))return!0x0;return!0x1;function _0x5235d6(_0x175c51,_0x119f91,_0x29c3c7,_0x2f9d63){for(let _0x26a679=_0x2f9d63;_0x26a679<_0x29c3c7['length'];_0x26a679++){const _0x5d4f65=_0x29c3c7[_0x26a679];if(_0x5d4f65['type']!==_0x119f91['type']||_0x5d4f65['author']['id']!==_0x119f91['author']['id']||_0x5d4f65['subType']!==_0x119f91['subType'])continue;if(!mn(_0x119f91,_0x5d4f65))continue;if('attribute'==_0x119f91['type']&&_0x119f91['data']['oldValue']!=_0x5d4f65['data']['oldValue'])continue;if('attribute'==_0x119f91['type']&&_0x175c51['_suggestionsConversion']['isBlockAttribute'](_0x119f91['data']['key']))continue;if('formatBlock'==_0x119f91['type']){const _0x1c5c82=_0x175c51['editor']['model'],_0x29c3b0=_0x119f91['getContainedElement']();if(_0x29c3b0&&(_0x1c5c82['schema']['isObject'](_0x29c3b0)||_0x1c5c82['schema']['isLimit'](_0x29c3b0)))continue;}const _0x5e3cfd=_0x45a7c1['get'](_0x119f91),_0x41374a=_0x165b07['get'](_0x119f91),_0xbc6972=_0x165b07['get'](_0x5d4f65),_0x70b63a=_0x119f91['commentThread']&&_0x119f91['commentThread']['length'],_0x3a880d=_0x5d4f65['commentThread']&&_0x5d4f65['commentThread']['length'];if(!_0x70b63a&&_0x5e3cfd(_0xbc6972,_0x41374a))return _0x175c51['_joinSuggestions'](_0x5d4f65,_0x119f91),_0x165b07['delete'](_0x119f91),!0x0;if(!_0x3a880d&&_0x5e3cfd(_0x41374a,_0xbc6972))return _0x175c51['_joinSuggestions'](_0x119f91,_0x5d4f65),_0x165b07['delete'](_0x5d4f65),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1c4329,_0x2e6f57){if(_0x1c4329['isMultiRange']){for(const _0x48003b of _0x2e6f57['getRanges']())_0x1c4329['addRange'](_0x48003b);}else{const _0x4d06a3=_0x2e6f57['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1c4329,this['_model']['createRange'](_0x1c4329['getFirstRange']()['start'],_0x4d06a3));}_0x2e6f57['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5316b0,_0x48da3b,_0x49b610){const _0x1c6eae=_0x5316b0['startsWith']('format')||_0x5316b0['startsWith']('attribute')?'FORMATTING':_0x5316b0['toUpperCase']();return St(this['editor']['locale'],_0x48da3b+'_'+_0x1c6eae+'_SUGGESTION_ANNOUNCEMENT',_0x49b610);}['_initAriaMarkerChangeAnnouncements'](){const _0x4e3384=this['editor'];if(!_0x4e3384['ui'])return;const {ariaLiveAnnouncer:_0x3757fc}=_0x4e3384['ui'];et(this['_model'],({left:_0x2e8109,entered:_0x26d178})=>{for(const _0x4a2a5d of _0x2e8109){const {group:_0x5b4237,type:_0x94ab0f}=tt(_0x4a2a5d['name']);if('suggestion'===_0x5b4237){_0x3757fc['announce'](this['_getMarkerAnnouncementText'](_0x94ab0f,'LEAVE'));break;}}for(const _0xdc41fa of _0x26d178){const {group:_0x1cab9b,type:_0x32e9a3}=tt(_0xdc41fa['name']);if('suggestion'===_0x1cab9b){_0x3757fc['announce'](this['_getMarkerAnnouncementText'](_0x32e9a3,'ENTER',_0x2f57db(_0x208916)));break;}}});}['_processAttributeChanges'](_0x448c41){if(this['_recordAttributeSuggestions'])return!0x1;const _0x32a55d=this['editor'],_0xf9ae02=_0x32a55d['model']['document']['differ']['getChanges']();if(0x0==_0xf9ae02['length'])return!0x1;const _0x43b7a2=[],_0x2e219a=_0xf9ae02['filter'](_0x5508e4=>'attribute'==_0x5508e4['type']),_0x442707=_0xf9ae02['filter'](_0x5a88df=>'insert'==_0x5a88df['type']&&'$text'!=_0x5a88df['name']),_0x3b2941=_0xf9ae02['filter'](_0x231bfa=>'remove'==_0x231bfa['type']&&'$text'!=_0x231bfa['name']);for(const _0x1d1c79 of _0x2e219a)_0x43b7a2['push']({'key':_0x1d1c79['attributeKey'],'newValue':_0x1d1c79['attributeNewValue'],'oldValue':_0x1d1c79['attributeOldValue'],'range':hn(_0x1d1c79['range'],_0x32a55d['model'])});for(const _0x164f94 of _0x442707){const _0x89c524=_0x3b2941['find'](_0x5c599e=>_0x5c599e['position']['isEqual'](_0x164f94['position']));_0x89c524&&_0x43b7a2['push']({'key':en,'newValue':_0x164f94['name'],'oldValue':_0x89c524['name'],'range':_0x32a55d['model']['createRangeOn'](_0x164f94['position']['nodeAfter'])});}return 0x0!=_0x43b7a2['length']&&this['_reduceExistingSuggestions'](_0x448c41,_0x43b7a2);}['_processAttributeSuggestions'](_0x17871e){let _0x4c8713=!0x1;const _0xed692f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x499017=>_0x499017['data']['newRange']&&_0x499017['name']['startsWith']('suggestion:attribute:'));for(const _0x524fa8 of _0xed692f){const {subType:_0x2bbf54,id:_0xf0610}=tt(_0x524fa8['name']),_0x203c5b=_0x2bbf54['split']('|')[0x0];for(const _0x626373 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x626373['id']!=_0xf0610&&'attribute'==_0x626373['type']&&_0x626373['data']&&_0x626373['data']['key']==_0x203c5b&&_0x626373['getFirstRange']()['isIntersecting'](_0x524fa8['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x626373,_0x524fa8['data']['newRange'],_0x17871e),_0x4c8713=!0x0);}return _0x4c8713;}['recordAttributeChanges'](_0x40501){this['_recordAttributeSuggestions']=!0x0,_0x40501();}['_reduceExistingSuggestions'](_0x573c40,_0x3614bf){if(0x0==_0x3614bf['length'])return!0x1;let _0x5790ee=!0x1;for(const _0x15e2ec of _0x3614bf){const _0x1a2824=this['_findSuggestions'](_0x15e2ec['range'],'attribute')['filter'](_0x23ce2e=>!_0x23ce2e['meta']['isNextTo'])['map'](_0x40daef=>_0x40daef['suggestion']),_0x35c6f1=_0x5de096({'newValue':_0x15e2ec['newValue']});_0x1a2824['filter'](_0x588607=>{const [_0x59122d,_0x56c6d4]=_0x588607['subType']['split']('|');return _0x59122d==_0x15e2ec['key']&&_0x56c6d4!=_0x35c6f1;})['forEach'](_0x5341d3=>{this['_reduceSuggestionAttributeRange'](_0x5341d3,_0x15e2ec['range'],_0x573c40),_0x5790ee=!0x0;});}return _0x5790ee;}['_reduceSuggestionAttributeRange'](_0x20c946,_0x1a182b,_0x406612){const _0x5efd3b=_0x20c946['getFirstRange']()['getDifference'](_0x1a182b);0x0!==_0x5efd3b['length']?0x1!==_0x5efd3b['length']?this['_breakSuggestionMarker'](_0x20c946,_0x1a182b['start'],_0x1a182b['end']):this['_setSuggestionRange'](_0x20c946,_0x5efd3b[0x0]):_0x406612['removeMarker'](_0x20c946['getFirstMarker']());}},sn=class{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x32c1fc){this['_editor']=_0x32c1fc,this['_model']=_0x32c1fc['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x155a32,_0x3b2af7,_0x3f6e54,_0x1e0fc2,_0x3078fa,_0x39ab13,_0x4d8be8){return new yt(this['_model'],{'type':_0x155a32,'subType':_0x3b2af7,'id':_0x3f6e54,'originalSuggestionId':_0x4d8be8,'author':_0x1e0fc2,'creator':_0x1e0fc2,'attributes':_0x3078fa,'onAttributesChange':_0x39ab13,'onAccept':(..._0x5f3180)=>this['getSuggestionCallback'](_0x155a32,_0x3b2af7,'accept')(..._0x5f3180),'onDiscard':(..._0x596951)=>this['getSuggestionCallback'](_0x155a32,_0x3b2af7,'discard')(..._0x596951)});}['registerCustomCallback'](_0x291a8b,_0x2734eb,_0x3cfde6,_0x3b329c){const _0x1b13b0=_0x291a8b+':'+_0x2734eb+':'+_0x3cfde6;this['_customCallbacks']['set'](_0x1b13b0,_0x3b329c);}['getSuggestionCallback'](_0x41ed24,_0x3a5a78,_0x464d13){const _0x2f7a13=_0x41ed24+':'+_0x3a5a78+':'+_0x464d13;return this['_customCallbacks']['get'](_0x2f7a13)||this['_defaultCallbacks']['get'](_0x41ed24+':'+_0x464d13);}['_registerDefaultCallbacks'](){const _0x41e157=()=>!0x1,_0x398dfa=_0x4b933d=>{_0x4b933d['sort']((_0x58a95b,_0x235f61)=>_0x58a95b['start']['isBefore'](_0x235f61['start'])?0x1:-0x1),this['_model']['change'](_0x32cc56=>{for(const _0x526b15 of _0x4b933d){let _0x5598ea;_0x5598ea=_0x526b15['end']['isAtEnd']&&_0x526b15['end']['parent']==_0x526b15['start']['nodeAfter']?_0x32cc56['createSelection'](_0x526b15['start']['nodeAfter'],'on'):_0x32cc56['createSelection'](_0x526b15),this['_model']['deleteContent'](_0x5598ea,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3c437=(_0x2e658d,_0x54a014)=>{_0x54a014&&this['_model']['change'](_0x133caf=>{const {commandName:_0x20d681,commandParams:_0x3575a1=[]}=_0x54a014,_0x1b33fc=_0x2e658d['map'](_0x44e8c0=>(on(_0x44e8c0)&&(_0x44e8c0=this['_model']['createRange'](_0x44e8c0['end'])),_0x44e8c0))['filter'](_0xaf070d=>'$graveyard'!==_0xaf070d['root']['rootName']);if(_0x1b33fc['length']<0x1)return;const _0x93ef2a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4e8071=>rt['fromRange'](_0x4e8071));_0x133caf['setSelection'](_0x1b33fc);for(const _0x1cda8e of this['_editor']['commands']['commands']())_0x1cda8e['refresh']();_0x3575a1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x20d681,..._0x3575a1);const _0x27c3f0=_0x93ef2a['filter'](_0x2de309=>'$graveyard'!=_0x2de309['root']['rootName']);_0x27c3f0['length']>0x0&&_0x133caf['setSelection'](_0x27c3f0);for(const _0x48d49a of _0x93ef2a)_0x48d49a['detach']();});},_0x419cd2=(_0x5ceb61,_0x1f5bca)=>0x1==_0x5ceb61['length']&&0x1==_0x1f5bca['length']&&_0x5ceb61[0x0]['end']['isEqual'](_0x1f5bca[0x0]['start']),_0x7952eb=(_0x4f0e53,_0x482e65,_0x5e7726,_0x2995ba)=>fn(_0x4f0e53,_0x482e65,_0x5e7726,_0x2995ba)?[_0x4f0e53,_0x482e65]:fn(_0x482e65,_0x4f0e53,_0x2995ba,_0x5e7726)?[_0x482e65,_0x4f0e53]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x41e157),this['_defaultCallbacks']['set']('insertion:discard',_0x398dfa),this['_defaultCallbacks']['set']('insertion:join',_0x419cd2),this['_defaultCallbacks']['set']('insertion:chain',_0x7952eb),this['_defaultCallbacks']['set']('deletion:accept',_0x398dfa),this['_defaultCallbacks']['set']('deletion:discard',_0x41e157),this['_defaultCallbacks']['set']('deletion:join',_0x419cd2),this['_defaultCallbacks']['set']('deletion:chain',_0x7952eb),this['_defaultCallbacks']['set']('formatInline:accept',_0x3c437),this['_defaultCallbacks']['set']('formatInline:discard',_0x41e157),this['_defaultCallbacks']['set']('formatInline:join',_0x419cd2),this['_defaultCallbacks']['set']('formatInline:chain',_0x41e157),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3c437),this['_defaultCallbacks']['set']('formatBlock:discard',_0x41e157),this['_defaultCallbacks']['set']('formatBlock:join',_0x419cd2),this['_defaultCallbacks']['set']('formatBlock:chain',_0x41e157),this['_defaultCallbacks']['set']('attribute:accept',_0x41e157),this['_defaultCallbacks']['set']('attribute:discard',(_0x43f8e9,_0xfde953)=>{if(!_0xfde953)return;const _0x5baa71=this['_editor']['plugins']['get'](_0x1fe567);this['_model']['change'](_0x28acae=>{if('$elementName'==_0xfde953['key'])for(const _0x4ed3c2 of _0x43f8e9){const _0x530c2b=_0x4ed3c2['start']['nodeAfter'],_0x1fdce2=_0xfde953['oldValue'];_0x28acae['rename'](_0x530c2b,_0x1fdce2);}else{if(_0x5baa71['isBlockAttribute'](_0xfde953['key'])){for(const _0x8c6797 of _0x43f8e9)void 0x0!==_0xfde953['oldValue']?_0x28acae['setAttribute'](_0xfde953['key'],_0xfde953['oldValue'],_0x8c6797['start']['nodeAfter']):_0x28acae['removeAttribute'](_0xfde953['key'],_0x8c6797['start']['nodeAfter']);}else{for(const _0x539e30 of _0x43f8e9)_0xfde953['oldValue']?_0x28acae['setAttribute'](_0xfde953['key'],_0xfde953['oldValue'],_0x539e30):_0x28acae['removeAttribute'](_0xfde953['key'],_0x539e30);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x419cd2);}};function rn(_0x222927,_0x2b677a,_0x16c71d){for(const _0x35c52c of _0x2b677a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x35c52c['root']==_0x35c52c)return!0x1;if(!_0x16c71d['containsItem'](_0x35c52c))return!0x1;if(_0x222927['isObject'](_0x35c52c)||_0x222927['isLimit'](_0x35c52c))return!0x0;}return!0x1;}function on(_0x41c0b1){return _0x41c0b1['end']['parent']==_0x41c0b1['start']['nodeAfter']&&_0x41c0b1['end']['isAtStart'];}function an(_0x20c219,_0xfdb712,_0x157ab0,_0xd95e06){const _0x13b914=_0x132420=>!_0x132420['item']['is']('$textProxy')&&!_0xd95e06['isObject'](_0x132420['item']),_0x3fbb25=_0x20c219['start']['getLastMatchingPosition'](_0x13b914),_0x4b5a4e=_0x20c219['end']['getLastMatchingPosition'](_0x13b914,{'direction':'backward'});return(!_0x20c219['start']['isEqual'](_0x3fbb25)||!_0x20c219['end']['isEqual'](_0x4b5a4e))&&(_0x3fbb25['isBefore'](_0x4b5a4e)?_0x157ab0['updateMarker'](_0xfdb712,{'range':_0x157ab0['createRange'](_0x3fbb25,_0x4b5a4e)}):_0x157ab0['removeMarker'](_0xfdb712),!0x0);}function cn(_0xd5641a){return _0x5de096(_0xd5641a);}function ln(_0x10d6f6){const _0x4228e5=_0x10d6f6['start']['nodeAfter'];return _0x4228e5&&_0x4228e5['is']('element');}function un(_0x3c92f9){return on(_0x3c92f9)||function(_0x27484b){return _0x27484b['start']['parent']==_0x27484b['end']['nodeBefore']&&_0x27484b['start']['isAtEnd'];}(_0x3c92f9);}function dn(_0x438c2a,_0x37f4af){try{const _0x3a6dbb=_0x438c2a['getRange']();for(const _0x342a99 of _0x37f4af)if(_0x438c2a!==_0x342a99&&_0x3a6dbb&&_0x3a6dbb['isIntersecting'](_0x342a99['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function hn(_0x1b5e3f,_0x12ecdb){return null==_0x1b5e3f['end']['nodeBefore']&&_0x1b5e3f['end']['parent']==_0x1b5e3f['start']['nodeAfter']?gn(_0x1b5e3f['start']['nodeAfter'],_0x12ecdb):_0x1b5e3f;}function gn(_0xf9e4aa,_0x352cd0){const _0x3143c2=_0x352cd0['schema']['isObject'](_0xf9e4aa)||_0x352cd0['schema']['isSelectable'](_0xf9e4aa);return _0x352cd0['createRange'](_0x352cd0['createPositionAt'](_0xf9e4aa,'before'),_0x3143c2?_0x352cd0['createPositionAfter'](_0xf9e4aa):_0x352cd0['createPositionAt'](_0xf9e4aa,'end'));}function fn(_0x27228c,_0x5b8381,_0x343daa,_0x58defc){return!!mn(_0x27228c,_0x5b8381)&&_0x343daa['end']['isEqual'](_0x58defc['start']);}function mn(_0x4f6f0a,_0x51d937){if(!_0x4f6f0a['_isDataLoaded']||!_0x51d937['_isDataLoaded'])return!0x1;const _0x10d5aa=new Set(Object['keys'](_0x4f6f0a['attributes'])),_0x10ac22=new Set(Object['keys'](_0x51d937['attributes']));if(_0x10d5aa['delete']('groupId'),_0x10ac22['delete']('groupId'),0x0==_0x10d5aa['size']&&0x0==_0x10ac22['size'])return!0x0;if(_0x10d5aa['size']!=_0x10ac22['size'])return!0x1;const _0x62dec2={..._0x4f6f0a['attributes']},_0x2dacd1={..._0x51d937['attributes']};return delete _0x62dec2['groupId'],delete _0x2dacd1['groupId'],JSON['stringify'](_0x62dec2)==JSON['stringify'](_0x2dacd1);}function En(_0x59fec2,_0xc55c14){const _0x856ad6=Tn(_0x59fec2['attributes']),_0x59f79c=Tn(_0xc55c14);if(!_0x59fec2['_isDataLoaded'])return!0x1;if(!ct(_0x856ad6['@ai'],_0x59f79c['@ai']))return!0x1;for(const _0x2c5026 of Object['keys'](_0x59f79c))if(!ct(_0x856ad6[_0x2c5026],_0x59f79c[_0x2c5026]))return!0x1;return!0x0;}function Tn(_0x63a73b){const _0x21aba4=Object['assign']({},_0x63a73b);return delete _0x21aba4['skipNestingCheck'],delete _0x21aba4['tablePasteChainId'],_0x21aba4;}function _n(_0x5192e6){return _0x5192e6['split']('|')[0x0];}const pn=/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x5dffd5();var Ln=class extends pn{['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x479ac8,_0x5073da,_0x14660b,_0x49b26c){super(),this['model']=_0x5073da,this['view']=_0x14660b,this['commentThreadController']=_0x49b26c,this['_editor']=_0x479ac8,this['_acceptCommand']=_0x479ac8['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x479ac8['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x543562,_0x46919d)=>_0x543562||_0x46919d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x236a30=>_0x236a30&&this['_editor']['model']['canEditAt'](_0x5073da['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x9d321a=>_0x9d321a&&this['_editor']['model']['canEditAt'](_0x5073da['getRanges']())),this['_pendingAction']=null,_0x14660b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x14660b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x14660b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x14660b,'change:isDirty',()=>{_0x14660b['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 _0x306733=St(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x306733);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},In=class extends _0x17538d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x59b44f,_0x31d01d,_0x5ddf37,_0x5b286f){super(_0x59b44f),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2f500b(_0x59b44f,St(_0x59b44f,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x31d01d['authoredAt']),this['bind']('authoredAt')['to'](_0x31d01d),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',_0x31d01d,'authoredAt',this,'descriptionParts',(_0x5e4e32,_0x29451c,_0x4f749f)=>{const _0x1155ae=_0x4f749f['map'](_0x3dbe7e=>pt(_0x3dbe7e['content']))['join']('.\x20')+'.',_0x24eced=_0x31d01d['aiSource']&&'author'===_0x5b286f['showAISource']?_0x5b286f['aiAuthor']['name']:_0x31d01d['author']['name'],_0x54cf7a=St(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5e4e32-0x1,_0x24eced,_0x29451c?_0x5b286f['formatDateTime'](_0x29451c):'',new DOMParser()['parseFromString'](_0x1155ae,'text/html')['body']['textContent']]);return _0x31d01d['aiSource']&&'pill'===_0x5b286f['showAISource']?_0x54cf7a+'\x20'+St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x54cf7a;}),this['focusables']=new _0x4df18e(),this['focusTracker']=new _0x126e7c(),this['keystrokes']=new _0x271b64(),this['focusCycler']=new _0xecde12({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x296ebc=>_0x296ebc['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x31d01d,this['_localUser']=_0x5ddf37,this['_config']=_0x5b286f,_0x5b286f['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x17b94c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x33262f}=this['_config'];this['commentsListView']=new _0x33262f(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',_0x23f902=>_0x23f902+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x59520d,_0x4c5284)=>_0x59520d||!!_0x4c5284);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4ca7c6}=this['_config'],_0x2146a4=new _0x4ca7c6(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1ae930=_0x2146a4['commentInputView'];return _0x2146a4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1ae930,'value',(_0x1983ac,_0x44514f,_0x3de0e2)=>!!_0x3de0e2||_0x1983ac&&!_0x44514f),_0x1ae930['on']('submit',(_0x31095e,_0x119431)=>{this['fire']('addComment',_0x119431),_0x1ae930['editor']['setData']('');}),_0x1ae930['on']('cancel',()=>this['focus']()),_0x1ae930['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2146a4;}},An=class extends In{['suggestionView'];['_descriptionElement'];constructor(_0xff11fc,_0x54d47a,_0x55428d,_0x29a454){super(_0xff11fc,_0x54d47a,_0x55428d,_0x29a454),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x327c06=>_0x327c06&&_0x327c06[0x0]?_0x327c06[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5b84c1,_0x5956e1)=>{let _0x1afcfb='';for(const _0x5a1419 of _0x5b84c1)_0x1afcfb+='<p>'+pt(_0x5a1419['content'],_0x5a1419['color'])+'</p>';return _0x5956e1?_0x1afcfb:nt(_0x1afcfb,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x29a454['SuggestionView'](_0xff11fc,_0x54d47a,{'formatDateTime':_0x29a454['formatDateTime'],'showAISource':_0x29a454['showAISource'],'aiAuthor':_0x29a454['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 _0x5d7080=this['bindTemplate'],_0x4893d6=[this['suggestionView']];return this['commentsListView']&&_0x4893d6['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4893d6['push'](this['commentThreadInputView']),_0x4893d6['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5d7080['if']('isActive','ck-suggestion-wrapper--active'),_0x5d7080['to']('type',_0x360f62=>'ck-suggestion-'+_0x360f62),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':_0x5d7080['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4893d6};}['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));}},bn=class extends _0x17538d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x149720,_0x2dde1c,_0xb50921){super(_0x149720),this['_model']=_0x2dde1c,this['_config']=_0xb50921,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2dde1c),this['acceptButton']=this['_createButton'](St(_0x149720,'Accept\x20suggestion'),_0x2566e6,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](St(_0x149720,'Discard\x20suggestion'),_0x2f22c0,'ck-suggestion--discard','discardSuggestion','sw');const _0x4ac83b=!!_0x2dde1c['aiSource']&&'author'===_0xb50921['showAISource'],_0x4485cb=_0x4ac83b?this['_createAIUser'](_0xb50921['aiAuthor']):_0x2dde1c['author'],_0x4e6703=_0x4ac83b&&!_0xb50921['aiAuthor']['avatar']?_0x46c05:void 0x0;this['userView']=new _0x6c8180(_0x149720,_0x4485cb,this['getUserViewNotificationText'](),_0x4e6703),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4df18e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x126e7c(),this['keystrokes']=new _0x271b64(),this['focusCycler']=new _0xecde12({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x58ac07=>_0x58ac07['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x785867=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x785867['innerHTML']=this['description'],this['on']('change:description',(_0x226f59,_0x2eb57e,_0x1c4c28)=>{_0x785867['innerHTML']=_0x1c4c28;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x16b703=this['bindTemplate'],_0x569429=[{'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':_0x16b703['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x16b703['to']('authoredAt',_0x1fd6e9=>this['_config']['formatDateTime'](_0x1fd6e9))}]}]},{'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']&&_0x569429['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x532084=new _0x233510(this['locale']);_0x532084['set']({'icon':_0x15629e,'label':St(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x569429['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x532084]});}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':_0x569429}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?St(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):St(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?St(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):St(this['locale'],'EXTERNAL_SUGGESTION');}['_createAIUser'](_0x4126b1){return new _0x1be06b({'id':'ck-ai-author','name':_0x4126b1['name'],'avatar':_0x4126b1['avatar'],'color':new _0x14a136(0x0)});}['_createButton'](_0x41b604,_0x51eff6,_0x256fe1,_0x3db029,_0x1634ad){const _0x1e07b0=new _0x1b28b1(this['locale']);return _0x1e07b0['set']({'label':_0x41b604,'icon':_0x51eff6,'tooltip':!0x0,'tooltipPosition':_0x1634ad}),_0x1e07b0['extendTemplate']({'attributes':{'class':_0x256fe1}}),_0x1e07b0['on']('execute',()=>{this['fire'](_0x3db029,this['_model']['id']);}),_0x1e07b0;}['_setupKeyboardNavigation'](){const _0x2e95fe=this['element'];this['keystrokes']['listenTo'](_0x2e95fe);for(const _0x3030f0 of this['focusables'])this['focusTracker']['add'](_0x3030f0['element']),this['keystrokes']['listenTo'](_0x3030f0['element']);this['keystrokes']['set']('enter',(_0x3a225a,_0x4e84d5)=>{_0x2e95fe===_0x3a225a['target']&&(this['focusCycler']['focusFirst'](),_0x4e84d5());}),this['keystrokes']['set']('esc',(_0x31704c,_0x107811)=>{_0x2e95fe!==_0x31704c['target']&&(this['focus'](),_0x107811());});}},kn=class extends _0xe2ae1{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[nn,_0x30397d,_0x29bca6,_0x282145,_0x18b87c];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x401545){super(_0x401545),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x9dfe22=this['editor']['config'];_0x9dfe22['define']('trackChanges.SuggestionThreadView',An),_0x9dfe22['define']('trackChanges.SuggestionView',bn),_0x9dfe22['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x9dfe22['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4fd392,_0x1560a5){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x20d2c5,_0x355d92]of this['_handleControllerBuffer']){const _0x26cbcc=this['_suggestionToController']['has'](_0x20d2c5);_0x26cbcc||_0x355d92?_0x26cbcc&&_0x355d92&&this['_destroyController'](_0x20d2c5):this['_initializeController'](_0x20d2c5);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x18b87c)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4fd392,_0x1560a5);}['init'](){const _0x249c08=this['editor'],_0x242ebf=_0x249c08['plugins']['get'](nn),_0x4658f8=_0x249c08['plugins']['get'](_0x282145),_0x8ab46d=_0x249c08['plugins']['get'](_0x18b87c),_0x519fcc=_0x249c08['plugins']['get'](_0x29bca6);this['_addUIComponentsToFactory'](),_0x8ab46d['addSourceCollector'](()=>{const _0x4dfe6c=[];for(const [_0x3c0822,_0x2f5125]of Array['from'](this['_suggestionToController'])){const _0x1113d6=_0x3c0822['getAllAdjacentSuggestions'](),_0x3c7112=[];for(const _0x5df756 of _0x1113d6){if(!_0x5df756['isInContent'])continue;if(_0x5df756['isMultiRange']){_0x3c7112['push'](..._0x5df756['getRanges']());continue;}const _0x3d5470=_0x5df756['getFirstRange']();if(_0x3c7112['length']>0x0){const _0xe711e4=_0x3c7112[0x0]['getJoined'](_0x3d5470);if(_0xe711e4){_0x3c7112[0x0]=_0xe711e4;continue;}}_0x3c7112['push'](_0x3d5470);}_0x4dfe6c['push']([_0x2f5125['view'],_0x3c7112]);}return _0x4dfe6c;}),this['listenTo'](_0x242ebf,'suggestionLoaded',(_0x1001c7,_0x245f09)=>{this['listenTo'](_0x245f09,'change:previous',(_0x26ff2d,_0x1e71d9,_0x14f5a2,_0x469f15)=>{_0x245f09['isInContent']&&(null==_0x14f5a2?(this['_updateController'](_0x469f15['head']),this['_handleSuggestionControllerDelayed'](_0x245f09,!0x1)):(this['_updateController'](_0x14f5a2['head']),null==_0x469f15&&this['_handleSuggestionControllerDelayed'](_0x245f09,!0x0)));}),null!==_0x245f09['previous']?this['_updateController'](_0x245f09['head']):this['_handleSuggestionControllerDelayed'](_0x245f09,!0x1);}),this['listenTo'](_0x242ebf,'suggestionUnloaded',(_0x232fd1,_0x5a2bb9,_0x4b4c3f)=>{this['stopListening'](_0x5a2bb9,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5a2bb9),this['_suggestionToController']['has'](_0x5a2bb9)&&this['_destroyController'](_0x5a2bb9),_0x4b4c3f&&this['_updateController'](_0x4b4c3f['head']);}),this['listenTo'](_0x242ebf,'suggestionChanged',(_0x13b04d,_0x2efda2)=>{this['_updateController'](_0x2efda2);}),this['listenTo'](_0x4658f8,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x519fcc,'addComment',(_0x38cf67,{threadId:_0x121f75,isFromAdapter:_0xa65650})=>{if(_0xa65650||!_0x242ebf['hasSuggestion'](_0x121f75))return;const _0x501af0=_0x242ebf['getSuggestion'](_0x121f75);this['_suggestionToController']['get'](_0x501af0)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2c24ce=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1cd820;for(const _0x5d9e62 in _0x2c24ce){const _0x5a85d4=_0x5d9e62,_0x1a0e33=_0x2c24ce[_0x5a85d4];if('trackChangesLicenseKeyValid'==_0x1a0e33||'trackChangesLicenseKeyInvalid'==_0x1a0e33||'trackChangesLicenseKeyExpired'==_0x1a0e33||'trackChangesLicenseKeyDomainLimit'==_0x1a0e33||'trackChangesLicenseKeyNotAllowed'==_0x1a0e33||'trackChangesLicenseKeyEvaluationLimit'==_0x1a0e33||'trackChangesLicenseKeyUsageLimit'==_0x1a0e33){delete _0x2c24ce[_0x5a85d4],_0x1cd820=_0x1a0e33,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1cd820&&_0x2c24ce['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1cd820&&_0x2c24ce['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1cd820&&_0x2c24ce['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1cd820&&_0x2c24ce['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1cd820&&_0x2c24ce['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1cd820&&_0x2c24ce['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x4f59f6){const _0x2701db=this['_suggestionToController']['get'](_0x4f59f6);return _0x2701db&&this['editor']['plugins']['get'](_0x282145)['getByInnerView'](_0x2701db['view'])||null;}['getSuggestionForAnnotation'](_0x3b8c00){const _0x5bb778=this['_viewToController']['get'](_0x3b8c00['innerView']);return _0x5bb778?_0x5bb778['model']:null;}['_refreshActiveMarkers'](){const _0x21efed=this['editor']['plugins']['get'](_0x282145),_0x15fef1=this['editor']['plugins']['get'](nn),_0x5346c1=Array['from'](_0x21efed['activeAnnotations'],_0x35ad9e=>_0x35ad9e['innerView'])['filter'](_0x34c12a=>this['_viewToController']['has'](_0x34c12a)),_0x1f0f33=[];for(const _0x3ae4ce of _0x5346c1){const _0x1d98aa=this['_viewToController']['get'](_0x3ae4ce)['model']['getAllAdjacentSuggestions']();_0x1f0f33['push'](..._0x1d98aa['reduce']((_0x3d36ec,_0x580c04)=>[..._0x3d36ec,..._0x580c04['getMarkerNames']()],[]));}_0x15fef1['activeMarkers']=_0x1f0f33;}['_addUIComponentsToFactory'](){const _0x3c8bcc=this['editor'],_0x3134ce=_0x3c8bcc['locale'],_0x15b9e7=St(_0x3134ce,'Track\x20changes'),_0x711de8=new _0x25b634([{'type':'switchbutton','model':new _0x38c0e8({'withText':!0x0,'isToggleable':!0x0,'label':_0x15b9e7,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x38c0e8({'withText':!0x0,'label':St(_0x3134ce,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x38c0e8({'withText':!0x0,'label':St(_0x3134ce,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x38c0e8({'withText':!0x0,'label':St(_0x3134ce,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x38c0e8({'withText':!0x0,'label':St(_0x3134ce,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3c8bcc['plugins']['has']('TrackChangesPreview')&&_0x711de8['addMany']([{'type':'separator'},{'type':'button','model':new _0x38c0e8({'withText':!0x0,'label':St(_0x3134ce,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1501f8 of _0x711de8)if(Cn(_0x1501f8)){const _0x2ed77f=_0x3c8bcc['commands']['get'](_0x1501f8['model']['commandName']);_0x1501f8['model']['bind']('isOn','isEnabled')['to'](_0x2ed77f,'value','isEnabled');}_0x3c8bcc['ui']['componentFactory']['add']('trackChanges',_0x4c6eb8=>this['_createToolbarButton'](_0x4c6eb8,_0x711de8,_0x15b9e7)),_0x3c8bcc['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5ea1bf=>this['_createMenuBarMenu'](_0x5ea1bf,_0x711de8,_0x15b9e7));}['_createToolbarButton'](_0x5e6d5c,_0x5c4147,_0x2e4668){const _0x252873=_0x1f48ac(_0x5e6d5c,_0x543bec),_0x6a11c8=this['editor']['commands']['get']('trackChanges');_0x252873['buttonView']['set']({'tooltip':_0x2e4668,'label':_0x2e4668,'icon':_0x2fb297}),_0x252873['buttonView']['bind']('isOn')['to'](_0x6a11c8,'value'),_0x252873['buttonView']['on']('execute',()=>{_0x6a11c8['execute'](),this['editor']['editing']['view']['focus']();}),_0xb3dd0a(_0x252873,_0x5c4147,{'role':'menu'});const _0x2d3a61=[];for(const _0x2af221 of _0x5c4147)Cn(_0x2af221)&&_0x2d3a61['push'](this['editor']['commands']['get'](_0x2af221['model']['commandName']));const _0x3af79c=_0x252873['buttonView'];return _0x3af79c['actionView']['unbind']('isEnabled'),_0x3af79c['arrowView']['unbind']('isEnabled'),_0x3af79c['actionView']['bind']('isEnabled')['to'](_0x6a11c8,'isEnabled'),_0x3af79c['arrowView']['bind']('isEnabled')['toMany'](_0x2d3a61,'isEnabled',(..._0xe05b94)=>_0xe05b94['some'](_0x404b57=>_0x404b57)),_0x252873['on']('execute',_0x472ea0=>{this['editor']['execute'](_0x472ea0['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x252873;}['_createMenuBarMenu'](_0x3288a4,_0x2fb544,_0x1c34a5){const _0x44641c=new _0x3e2047(_0x3288a4),_0x214be6=this['editor']['commands']['get']('trackChanges');_0x44641c['buttonView']['set']({'label':_0x1c34a5,'icon':_0x2fb297});const _0x2aafd4=new _0x26f681(_0x3288a4);for(const _0x5c1314 of _0x2fb544){if('separator'==_0x5c1314['type']){_0x2aafd4['items']['add'](new _0x3a4872(_0x3288a4));continue;}const _0x22f276=new _0x3b8ed0(_0x3288a4,_0x44641c),_0x522661=new _0x47ca1e(_0x3288a4),_0x24d088=_0x5c1314['model'];_0x522661['bind'](...Object['keys'](_0x24d088))['to'](_0x24d088),_0x522661['delegate']('execute')['to'](_0x44641c),_0x522661['on']('execute',()=>{this['editor']['execute'](_0x24d088['commandName']),this['editor']['editing']['view']['focus']();}),_0x22f276['children']['add'](_0x522661),_0x2aafd4['items']['add'](_0x22f276);}return _0x44641c['bind']('isEnabled')['to'](_0x214be6,'isEnabled'),_0x44641c['panelView']['children']['add'](_0x2aafd4),_0x44641c;}['_initializeController'](_0x1ce373){const _0x207cfc=this['editor'],_0x5b8818=_0x207cfc['config'],_0x20cf60=_0x207cfc['plugins']['get'](_0x282145),_0xa00b90=_0x207cfc['plugins']['get'](_0x29bca6),_0x2e1cb2=_0x207cfc['plugins']['get'](_0x18b87c),_0x28e5f8=_0x207cfc['plugins']['get'](_0x30397d)['me'],_0x2f6a3c=_0x5b8818['get']('trackChanges')['SuggestionThreadView'],_0x5000cb=_0x5b8818['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4b9172,CommentThreadInputView:_0x1504e2}=_0x207cfc['plugins']['get']('CommentsUI');let _0x7fe251,_0x25a002,_0x151772;this['_annotationViews']['has'](_0x1ce373['id'])?(_0x25a002=this['_annotationViews']['get'](_0x1ce373['id']),_0x7fe251=_0x25a002['mainView']):(_0x7fe251=new _0x2f6a3c(_0x207cfc['locale'],_0x1ce373,_0x28e5f8,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5b8818['get']('comments.editorConfig'),'licenseKey':_0x5b8818['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5b8818['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5b8818['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5b8818['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3e78df(_0x5b8818['get']('locale'),_0x207cfc['locale']),'CommentView':_0x5b8818['get']('comments')['CommentView'],'CommentsListView':_0x4b9172,'CommentThreadInputView':_0x1504e2,'SuggestionView':_0x5000cb,'showAISource':_0x5b8818['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x5b8818['get']('trackChanges.aiAuthor'),'name':_0x5b8818['get']('trackChanges.aiAuthor')?.['name']||St(_0x207cfc['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x7fe251['suggestionView']['acceptButton']['on']('execute',()=>{_0x207cfc['editing']['view']['focus']();}),_0x7fe251['suggestionView']['discardButton']['on']('execute',()=>{_0x207cfc['editing']['view']['focus']();}),_0x25a002=_0x20cf60['createAnnotationView'](this['editor']['locale'],_0x7fe251),_0x25a002['bind']('isDirty')['to'](_0x7fe251,'isDirty'),_0x25a002['bind']('length')['to'](_0x7fe251),_0x25a002['bind']('type')['to'](_0x7fe251,'type',_0x17297a=>'suggestion-'+_0x17297a),_0x7fe251['on']('escape',()=>{_0x151772['fire']('escape');}),this['_annotationViews']['set'](_0x1ce373['id'],_0x25a002));const _0x3eabaf=_0xa00b90['createCommentThreadController'](_0x1ce373['commentThread'],_0x7fe251),_0x34ec55=new Ln(_0x207cfc,_0x1ce373,_0x7fe251,_0x3eabaf),_0x1d22d6=_0x1ce373['getAllAdjacentSuggestions']()['filter'](_0x7b1763=>_0x7b1763['isInContent']);_0x7fe251['descriptionParts']=_0x207cfc['plugins']['get'](nn)['descriptionFactory']['getDescriptions'](_0x1d22d6),this['_suggestionToController']['set'](_0x1ce373,_0x34ec55),this['_viewToController']['set'](_0x7fe251,_0x34ec55);const _0x1f014c=()=>{const _0x29f1ab=[],_0x1fbfb5=_0x1ce373['getAllAdjacentSuggestions']()['filter'](_0x56c83c=>_0x56c83c['isInContent']);for(const _0x199a2b of _0x1fbfb5)_0x29f1ab['push'](..._0x199a2b['getMarkers']());return _0x15023c(_0x207cfc['editing'],_0x29f1ab);};_0x151772=_0x20cf60['createAnnotation']({'view':_0x25a002,'target':_0x1f014c,'type':()=>'suggestion-'+_0x34ec55['view']['type'],'isVisible':!!_0x1f014c()}),_0xa00b90['_bindAnnotationToEditors'](_0x7fe251,_0x151772),_0x20cf60['add'](_0x151772),_0x2e1cb2['registerAnnotation'](_0x151772);}['_destroyController'](_0x285a1e){const _0x115efe=this['editor']['plugins']['get'](_0x29bca6),_0x145899=this['editor']['plugins']['get'](_0x282145),_0x12f026=this['_suggestionToController']['get'](_0x285a1e),_0x38c3f2=_0x12f026['view'],_0x366aaf=_0x145899['getByInnerView'](_0x38c3f2);_0x115efe['_unbindEditors'](_0x38c3f2),_0x366aaf&&_0x145899['remove'](_0x366aaf),this['_suggestionToController']['delete'](_0x285a1e),this['_viewToController']['delete'](_0x38c3f2),_0x12f026['destroy']();}['_updateController'](_0x4fb767){if(!_0x4fb767['isInContent']||!this['_suggestionToController']['has'](_0x4fb767))return;const _0x4aaa1a=this['editor']['plugins']['get'](nn),_0xa7238a=this['_suggestionToController']['get'](_0x4fb767),_0x44503b=_0x4fb767['getAllAdjacentSuggestions']();_0xa7238a['view']['descriptionParts']=_0x4aaa1a['descriptionFactory']['getDescriptions'](_0x44503b);}['destroy'](){for(const _0x3a8654 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3a8654);for(const _0x40be32 of this['_annotationViews']['values']())_0x40be32['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Cn(_0x3b075b){return'model'in _0x3b075b;}var Rn=class extends _0xe2ae1{static get['requires'](){return[nn,kn,_0x38d5cc];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x19b8ad){this['editor']['plugins']['get'](nn)['adapter']=_0x19b8ad;}get['adapter'](){return this['editor']['plugins']['get'](nn)['adapter'];}['addSuggestion'](_0x2e832){return this['editor']['plugins']['get'](nn)['addSuggestionData'](_0x2e832);}['getSuggestions']({skipNotAttached:_0x26db89=!0x1,toJSON:_0xb0d600=!0x1}={}){return this['editor']['plugins']['get'](nn)['getSuggestions']({'skipNotAttached':_0x26db89,'toJSON':_0xb0d600});}['getSuggestion'](_0x14a034){return this['editor']['plugins']['get'](nn)['getSuggestion'](_0x14a034);}};const Nn=['Pagination'];var yn=class extends _0xe2ae1{static get['requires'](){return[nn];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x16f1ac=this['editor'];if(_0x16f1ac['config']['define']('trackChangesData.editorCreator',_0x47e40b=>{const _0x31b79d=_0x16f1ac['model']['document']['getRootNames']()['reduce']((_0xb7f11e,_0x4e9382)=>(_0xb7f11e[_0x4e9382]='',_0xb7f11e),{});return _0x16f1ac['constructor']['create'](_0x31b79d,_0x47e40b);}),'function'!=typeof _0x16f1ac['config']['get']('trackChangesData')['editorCreator'])throw new _0x29b816('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2f4f8d){return On(this['editor'],!0x0,_0x2f4f8d);}['getDataWithDiscardedSuggestions'](_0x1af0a1){return On(this['editor'],!0x1,_0x1af0a1);}},Sn=class extends _0xe2ae1{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e3d10){super(_0x1e3d10),this['result']='end',_0x1e3d10['editing']['view']['_overlayModeHint']='auto',_0x1e3d10['_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 Mn(_0x33e3c1){return void 0x0!==_0x33e3c1['getRootsAttributes'];}async function On(_0x479649,_0x30847d,_0x4f18b0){const _0x557800=_0x14a0e4(_0x479649,Nn);if(_0x557800['plugins']['push'](nn,Sn),Mn(_0x479649)){_0x557800['roots']=Object['create'](null);for(const _0x265d9b of _0x479649['model']['document']['getRootNames']())_0x557800['roots'][_0x265d9b]={'modelAttributes':_0x479649['getRootAttributes'](_0x265d9b)};}const _0x2d9023=document['createDocumentFragment'](),_0x22674a=_0x479649['config']['get']('trackChangesData')['editorCreator'],_0x35bec0=await _0x22674a(_0x557800,()=>function(_0x9691f9){const _0x13707a=document['createElement']('div');return _0x9691f9['appendChild'](_0x13707a),_0x13707a;}(_0x2d9023));!function(_0x2b9ac0,_0x3142ed){const _0x27e74b=_0x2b9ac0['model']['document']['getRootNames']()['reduce']((_0x4f067b,_0x1bae01)=>(_0x4f067b[_0x1bae01]=_0x2b9ac0['data']['get']({'rootName':_0x1bae01}),_0x4f067b),{}),_0x34a944=_0x2b9ac0['plugins']['get']('Users')['users']['map'](_0x183c6f=>({'id':_0x183c6f['id'],'name':_0x183c6f['name']})),_0x5c0318=_0x2b9ac0['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2f3574=_0x2b9ac0['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1587e8=_0x3142ed['plugins']['get']('Users'),_0x32a250=_0x3142ed['plugins']['get']('TrackChangesEditing'),_0x48ce9e=_0x3142ed['plugins']['get']('CommentsRepository');for(const _0x428e9e of _0x48ce9e['getCommentThreads']())_0x428e9e['remove']();for(const _0x1f1ea3 of _0x34a944)_0x1587e8['getUser'](_0x1f1ea3['id'])||_0x1587e8['addUser'](_0x1f1ea3);_0x1587e8['me']||_0x1587e8['useAnonymousUser']();for(const _0x4c5b3e of _0x2f3574)_0x48ce9e['addCommentThread'](_0x4c5b3e);for(const _0x41f2d3 of _0x5c0318)_0x32a250['addSuggestionData'](_0x41f2d3);_0x3142ed['data']['set'](_0x27e74b);}(_0x479649,_0x35bec0),_0x35bec0['execute'](_0x30847d?'acceptAllSuggestions':'discardAllSuggestions');const _0x23d5ad=Mn(_0x35bec0)?_0x35bec0['getFullData'](_0x4f18b0):_0x35bec0['data']['get'](_0x4f18b0);return await _0x35bec0['destroy'](),_0x23d5ad;}var wn=class extends _0x17538d{['options'];constructor(_0x21b4c5,_0x5abd08){super(_0x21b4c5),this['options']=_0x5abd08,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'](_0x156c76,_0xfc01b4){if(!this['element'])return;const _0xf72d08=[];for(const [_0x2f2aeb,_0x2c5746]of _0x156c76){const _0x495645=document['createElement']('div');_0x495645['setAttribute']('data-ck-root-name',_0x2f2aeb),_0x495645['className']=_0x2c5746['classes']+'\x20ck-track-changes-preview__root-container',_0x495645['innerHTML']=_0x2c5746['content'],_0xf72d08['push'](_0x495645);}_0xfc01b4(this['element'],_0xf72d08),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Fn=class extends _0x38c310{constructor(_0xe50078){super(_0xe50078),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x414453=this['editor'],_0x309295=_0x414453['locale'],_0xaf5845=_0x414453['plugins']['get']('Dialog');let _0x53e3d7;const _0x2f3ba9=function(_0x1c56d4){const _0x583a03={};if('editables'in _0x1c56d4['ui']['view']){for(const [_0x4cd8e8,_0x16ebd4]of Object['entries'](_0x1c56d4['ui']['view']['editables']))_0x583a03[_0x4cd8e8]=_0x16ebd4['element'];}else _0x583a03[_0x1c56d4['model']['document']['getRootNames']()[0x0]]=_0x1c56d4['ui']['view']['editable']['element'];return _0x583a03;}(_0x414453),_0x485862=function(_0x5849f7){let _0x3dc51e=0x0;for(const _0x1fef98 of Object['values'](_0x5849f7))_0x3dc51e=Math['max'](_0x3dc51e,_0x1fef98['getBoundingClientRect']()['width']);let _0x503f89=0x0;for(const _0xa8caa9 of Object['values'](_0x5849f7))_0x503f89+=_0xa8caa9['getBoundingClientRect']()['height'];const _0x3f1e06=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x3dc51e,'height':Math['min'](_0x503f89,_0x3f1e06)};}(_0x2f3ba9);_0xaf5845['show']({'id':'finalContentPreview','title':St(_0x309295,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new wn(_0x309295,{'dialogRects':_0x485862}),'onHide':()=>{_0x53e3d7['detachFromDom']();},'onShow':()=>{_0x414453['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x44cb02=>{const _0x341d86=this['_standarizeRootsData'](_0x44cb02,_0x414453,_0x2f3ba9);_0xaf5845['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x341d86,_0x414453['config']['get']('trackChanges.preview.renderFunction'));}),_0x53e3d7=new _0x4f4b0b(_0x309295,[_0xaf5845['view']]),_0x53e3d7['attachToDom'](),_0x53e3d7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x414453['once']('destroy',()=>{_0x53e3d7['detachFromDom']();});const _0x68f000=_0xaf5845['view']['headerView']['class'];_0xaf5845['view']['headerView']['class']=_0x68f000?_0x68f000+'\x20ck-reset_all':'ck-reset_all',_0xaf5845['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xaf5845['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1e4e6d=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3a6197=_0x1e4e6d['previewMode'],_0x1eea5f={};if('$labels'===_0x3a6197){for(const _0x1a2680 of _0x1e4e6d['getMergeFieldsIds']())_0x1eea5f[_0x1a2680]=_0x1e4e6d['getLabel'](_0x1a2680)||_0x1a2680;}else{const _0xa322e7='$defaultValues'===_0x3a6197?_0x1e4e6d['getDefaultValues']():_0x1e4e6d['getDataSetValues'](_0x3a6197,!0x0);for(const _0x5caf43 of Object['entries'](_0xa322e7)){const [_0x8addb0,_0x5ab874]=_0x5caf43;_0x1eea5f[_0x8addb0]=null!==_0x5ab874?_0x5ab874:_0x1e4e6d['getLabel'](_0x8addb0)||_0x8addb0;}}return{'mergeFieldsData':_0x1eea5f};}['_standarizeRootsData'](_0x1b67df,_0x389f67,_0x36e102){let _0x220643;_0x220643='string'==typeof _0x1b67df?{[_0x389f67['model']['document']['getRootNames']()[0x0]]:_0x1b67df}:_0x1b67df;const _0x244dab=this['_fixMediaEmbeds'](_0x220643,_0x389f67);return function(_0x65a77,_0x2e1b67){for(const [_0x39038c,_0x1427bb]of _0x65a77)_0x1427bb['classes']=_0x2e1b67[_0x39038c]['classList']['value']['replace']('ck-focused','');return _0x65a77;}(this['_sortRoots'](_0x389f67)['reduce']((_0x50fd7a,_0x4d5661)=>(_0x50fd7a['push']([_0x4d5661,{'content':_0x244dab[_0x4d5661],'classes':''}]),_0x50fd7a),[]),_0x36e102);}['_fixMediaEmbeds'](_0x1ed128,_0x5bbf7e){if(!_0x5bbf7e['plugins']['has']('MediaEmbedEditing'))return _0x1ed128;const _0x455560=_0x5bbf7e['plugins']['get']('MediaEmbedEditing');for(const [_0x5d0e5d,_0x419f3c]of Object['entries'](_0x1ed128)){const _0x2e939d=document['createElement']('div');_0x2e939d['innerHTML']=_0x419f3c,_0x2e939d['querySelectorAll']('figure.media')['forEach'](_0x51acff=>{const _0x32ea39=_0x51acff['querySelector']('oembed');if(_0x32ea39){const _0x2164e4=_0x32ea39['getAttribute']('url');if(_0x2164e4){const _0x25522d=_0x455560['registry']['getMediaViewElement'](new ot(_0x5bbf7e['editing']['view']['document']),_0x2164e4,{'elementName':'','renderForEditingView':!0x0}),_0x5350d5=document['createElement']('div');_0x5350d5['classList']['add']('ck-media__wrapper'),_0x25522d['render'](_0x5350d5,_0x5bbf7e['editing']['view']['domConverter']),_0x32ea39['replaceWith'](_0x5350d5);}}}),_0x1ed128[_0x5d0e5d]=_0x2e939d['innerHTML'];}return _0x1ed128;}['_sortRoots'](_0x2feaf7){if(!function(_0x2109fd){return void 0x0!==_0x2109fd['getRootsAttributes'];}(_0x2feaf7))return _0x2feaf7['model']['document']['getRootNames']();const _0x14e88d=[],_0x353235=new Map();for(const _0x4a9de6 of _0x2feaf7['model']['document']['getRootNames']()){const _0x1518f9=_0x2feaf7['editing']['view']['getDomRoot'](_0x4a9de6)['getClientRects']()['item'](0x0);_0x14e88d['push'](_0x4a9de6),_0x353235['set'](_0x4a9de6,_0x1518f9);}return _0x14e88d['sort']((_0x3f1cc9,_0xdef7de)=>{const _0xbbb348=_0x353235['get'](_0x3f1cc9),_0x62491c=_0x353235['get'](_0xdef7de);return _0xbbb348['y']-_0x62491c['y']||_0xbbb348['x']-_0x62491c['x'];}),_0x14e88d;}},Bn=class extends _0xe2ae1{static get['requires'](){return[yn,_0x30781f];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xdca597){super(_0xdca597),_0xdca597['commands']['add']('previewFinalContent',new Fn(this['editor'])),_0xdca597['config']['define']('trackChanges.preview.renderFunction',(_0xbd8769,_0xbd918d)=>{for(const _0x3946cb of _0xbd918d)_0xbd8769['appendChild'](_0x3946cb);});}};export{Tt as AcceptSuggestionCommand,In as BaseSuggestionThreadView,_t as DiscardSuggestionCommand,Ct as ExecuteOnAllSuggestionsCommand,Rt as ExecuteOnSelectedSuggestionsCommand,Fn as PreviewFinalContentCommand,yt as Suggestion,Mt as SuggestionDescriptionFactory,An as SuggestionThreadView,bn as SuggestionView,Rn as TrackChanges,Et as TrackChangesCommand,yn as TrackChangesData,Sn as TrackChangesDataGetter,nn as TrackChangesEditing,Bn as TrackChangesPreview,kn as TrackChangesUI};
|
|
23
|
+
import{Command as _0x421366,PendingActions as _0x8214c2,Plugin as _0x335f48}from'@ckeditor/ckeditor5-core';import{Annotations as _0x56449f,Comments as _0x3e43c6,CommentsRepository as _0x5ac837,EditorAnnotations as _0x1352a9}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x1ce43c,Collection as _0x5afb24,FocusTracker as _0x57e1ed,KeystrokeHandler as _0x528888,ObservableMixin as _0x30063f,getEnvKeystrokeText as _0x1260c9,insertToPriorityArray as _0x2c5f4f,logWarning as _0x19f2a6,priorities as _0x6acb2,uid as _0x37c418}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x26f6c5,IconCancel as _0x4628b8,IconCheck as _0x201b2e,IconSparkle as _0x107c43,IconTrackChanges as _0x2791ac}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x431a3e,Dialog as _0xa3654a,FocusCycler as _0x4f02bc,ListSeparatorView as _0x2f1b9c,MenuBarMenuListItemButtonView as _0x20a80b,MenuBarMenuListItemView as _0x1c120a,MenuBarMenuListView as _0x2ed845,MenuBarMenuView as _0x5b94cf,SplitButtonView as _0x276268,UIModel as _0xfb96df,View as _0x566046,ViewCollection as _0xfedbf2,addListToDropdown as _0x102ff0,createDropdown as _0x4cc7b5,normalizeColorOptions as _0x1831d4}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x46bf6c,CollaborationUserColor as _0x2b6a23,DocumentCompare as _0x3c1e26,FOCUS_ANNOTATION_KEYSTROKE as _0x3a2235,LateFocusButtonView as _0x19b657,PillView as _0x16d049,SuggestionsConversion as _0xafb44b,User as _0x555e85,UserView as _0x23fd9e,Users as _0x4099f0,fixElementSuggestionRange as _0x48fe62,getAllMarkersDomElementsSorted as _0x29ef8f,getDateTimeFormatter as _0x36788d,hashObject as _0x431d55,sanitizeEditorConfig as _0x7f840e,setupThreadKeyboardNavigation as _0x3a3da7,splitSuggestionMarkerName as tt,surroundingMarkersDetector as et,trimHtml as nt}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as it,ModelLivePosition as st,ModelLiveRange as rt,ViewDowncastWriter as ot}from'@ckeditor/ckeditor5-engine';import{cloneDeep as at,isEqual as ct,omit as lt,set as ut,unset as dt}from'es-toolkit/compat';import{Delete as ht,Input as gt}from'@ckeditor/ckeditor5-typing';import{Enter as ft}from'@ckeditor/ckeditor5-enter';import{ClipboardPipeline as mt}from'@ckeditor/ckeditor5-clipboard';var Et=class extends _0x421366{['_enabledCommands'];constructor(_0x121c68,_0x54d704){super(_0x121c68),this['_enabledCommands']=_0x54d704,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 _0x1e9507 of this['editor']['commands']['commands']())_0x1e9507['affectsData']&&!this['_enabledCommands']['has'](_0x1e9507)&&_0x1e9507['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1da4b0 of this['editor']['commands']['commands']())_0x1da4b0['affectsData']&&!this['_enabledCommands']['has'](_0x1da4b0)&&_0x1da4b0['clearForceDisabled']('TrackChangesCommand');}},Tt=class extends _0x421366{['_suggestions'];constructor(_0x57ba48,_0x3d3638){super(_0x57ba48),this['_suggestions']=_0x3d3638,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3d650b){const _0x87253a=this['_suggestions']['get'](_0x3d650b);if(!_0x87253a)throw new _0x1ce43c('track-changes-accept-suggestion-not-found',this);const _0x18e8e3=_0x87253a['getRanges']();this['editor']['model']['canEditAt'](_0x18e8e3)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x87253a);}},_t=class extends _0x421366{['_suggestions'];constructor(_0x367a45,_0xc7f2fa){super(_0x367a45),this['_suggestions']=_0xc7f2fa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3ac849){const _0x5a72e0=this['_suggestions']['get'](_0x3ac849);if(!_0x5a72e0)throw new _0x1ce43c('track-changes-discard-suggestion-not-found',this);const _0x53e064=_0x5a72e0['getRanges']();this['editor']['model']['canEditAt'](_0x53e064)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5a72e0);}};function pt(_0x307988,_0x1f506b){let _0xb63602='';return _0xb63602+=_0x307988['split']('*')['map']((_0x2f5159,_0x11b137)=>_0x11b137%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Lt(_0x2f5159)+'</span>':Lt(_0x2f5159))['join'](''),_0x1f506b&&(_0xb63602+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1f506b['value']+'\x22\x20title=\x22'+_0x1f506b['title']+'\x22></span>'),_0xb63602;}function Lt(_0x3de694){const _0x5f09a9=document['createElement']('span');return _0x5f09a9['innerText']=_0x3de694,_0x5f09a9['innerHTML'];}function It(_0x380456){return _0x380456['sort']((_0x405234,_0xd37a7c)=>'attribute'===_0x405234['type']&&'attribute'!==_0xd37a7c['type']?-0x1:'attribute'!==_0x405234['type']&&'attribute'===_0xd37a7c['type']?0x1:'deletion'==_0x405234['type']&&'deletion'!=_0xd37a7c['type']?-0x1:'deletion'!=_0x405234['type']&&'deletion'==_0xd37a7c['type']?0x1:0x0);}function At(_0x571ce1,_0x39c637){let _0x40f790,_0x7b5f5e=0x0;const _0x37ae68=[],_0xae27f0=_0x39c637['schema'];for(;_0x7b5f5e<_0x571ce1['length'];){const _0x19a07d=_0x571ce1[_0x7b5f5e],_0x179eb2=_0x571ce1[_0x7b5f5e+0x1];_0x40f790||(_0x40f790=_0x39c637['createPositionBefore'](_0x19a07d)),bt(_0x39c637,_0x19a07d,_0x179eb2)||(_0x37ae68['push'](_0x39c637['createRange'](_0x40f790,_0xae27f0['isObject'](_0x19a07d)?_0x39c637['createPositionAfter'](_0x19a07d):_0x39c637['createPositionAt'](_0x19a07d,'end'))),_0x40f790=null),_0x7b5f5e++;}return _0x37ae68;}function bt(_0x547749,_0xc0d627,_0x1df640){if(!_0x1df640)return!0x1;const _0x36ff90=_0x547749['createPositionAfter'](_0xc0d627),_0x3cc662=_0x547749['createPositionBefore'](_0x1df640);return _0x36ff90['isTouching'](_0x3cc662);}function kt(_0x468273,_0x43a598,_0x2082ac){for(;_0x2082ac['length'];){const _0x4090f2=_0x2082ac['splice'](0x0,0x64);_0x468273['change'](()=>{for(const _0x1c7519 of _0x4090f2)_0x1c7519['isInContent']&&_0x43a598['execute'](_0x1c7519['id']);});}}var Ct=class extends _0x421366{['_command'];['_suggestions'];constructor(_0x15d782,_0x2bd0ee,_0x54681b){super(_0x15d782),this['_command']=_0x2bd0ee,this['_suggestions']=_0x54681b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x19115a=Array['from'](this['_suggestions']['values']())['some'](_0x15dbc9=>_0x15dbc9['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x19115a;}['execute'](){const _0x37d940=It(Array['from'](this['_suggestions']['values']()));for(const _0xce987b of _0x37d940){const _0x219244=_0xce987b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x219244))return;}kt(this['editor']['model'],this['_command'],_0x37d940);}},Rt=class extends _0x421366{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x561203,_0x1f6200,_0x17ad8d){super(_0x561203),this['_command']=_0x1f6200,this['_suggestions']=_0x17ad8d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5a1452=this['editor']['model']['document']['selection'],_0x5a5aa9=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x532aca,_0x33336a){const _0x1bf507=Array['from'](_0x532aca['getRanges']()),_0x2a23c5=new Set();for(const _0x19e08d of _0x33336a)if(_0x19e08d['isInContent']){for(const _0x3da4d5 of _0x1bf507)for(const _0x3f7a2d of _0x19e08d['getRanges']())(_0x3da4d5['isIntersecting'](_0x3f7a2d)||_0x532aca['isCollapsed']&&!_0x19e08d['isMultiRange']&&_0x19e08d['next']&&_0x3f7a2d['end']['isTouching'](_0x3da4d5['start']))&&_0x2a23c5['add'](_0x19e08d);}return _0x2a23c5;}(_0x5a1452,_0x5a5aa9),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x53e93d=It(Array['from'](this['_selectedSuggestions']));for(const _0x5a6433 of _0x53e93d){const _0x4e2aa9=_0x5a6433['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4e2aa9))return;}kt(this['editor']['model'],this['_command'],_0x53e93d);}};const Nt=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x30063f();var yt=class Suggestion extends Nt{['id'];['type'];['subType'];['author'];['creator'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1bfeb6,_0x46606f){super(),this['id']=_0x46606f['id'],this['type']=_0x46606f['type'],this['subType']=_0x46606f['subType']||null,this['author']=_0x46606f['author'],this['creator']=_0x46606f['creator']||_0x46606f['author'],this['data']=null,this['_originalSuggestionId']=_0x46606f['originalSuggestionId']||null,this['_model']=_0x1bfeb6,this['_onAccept']=_0x46606f['onAccept'],this['_onDiscard']=_0x46606f['onDiscard'],this['_onAttributesChange']=_0x46606f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x46606f['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 _0x35899d=this;for(;_0x35899d['previous'];)_0x35899d=_0x35899d['previous'];return _0x35899d;}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'](_0x188245){this['_markerNames']['add'](_0x188245);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3923cf=>this['_model']['markers']['get'](_0x3923cf))['filter'](_0x207acd=>_0x207acd);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5c94cc=>{for(const _0x4825fe of this['getMarkers']())_0x5c94cc['removeMarker'](_0x4825fe);}),this['_markerNames']['clear']();}['removeMarker'](_0x1bb8b6){this['_model']['change'](_0x159ff9=>{_0x159ff9['removeMarker'](_0x1bb8b6);}),this['_markerNames']['delete'](_0x1bb8b6);}['addRange'](_0xfe2627){const _0x1336dd='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x1336dd),this['_model']['change'](_0x1b3070=>{_0x1b3070['addMarker'](_0x1336dd,{'range':_0xfe2627,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x22716c){for(const _0x387d9b of this['getRanges']())if(_0x387d9b['isIntersecting'](_0x22716c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2f13d3=>_0x2f13d3['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4f249f,_0x500ab4)=>[..._0x4f249f,..._0x500ab4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x42f07b=this['getRanges']();if(0x1!=_0x42f07b['length'])return null;const _0x44c6a5=_0x42f07b[0x0],_0x4d9d53=_0x44c6a5['start']['nodeAfter'],_0x3efb83=_0x44c6a5['end']['nodeBefore'];return _0x4d9d53 instanceof it?_0x4d9d53!=_0x3efb83?null:_0x4d9d53: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 _0xa57592=[];let _0x16c09b=this['head'];for(;_0x16c09b;)_0xa57592['push'](_0x16c09b),_0x16c09b=_0x16c09b['next'];return _0xa57592;}['setAttribute'](_0x3eeebe,_0xdfd68a){const _0x578cc8=at(this['attributes']);ut(_0x578cc8,_0x3eeebe,_0xdfd68a),ct(_0x578cc8,this['attributes'])||(this['attributes']=_0x578cc8,this['_onAttributesChange'](_0x578cc8));}['removeAttribute'](_0x14bf19){const _0xfd75bb=at(this['attributes']);dt(_0xfd75bb,_0x14bf19),ct(_0xfd75bb,this['attributes'])||(this['attributes']=_0xfd75bb,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 _0x37c418()['substr'](0x1,0x5);}};function St(_0x334e63,_0x2f4e7a,_0x2ab3a9){const _0x1b9e4f=_0x334e63['t'],t=_0x334e63['t'];switch(_0x2f4e7a){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',_0x2ab3a9);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2ab3a9);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2ab3a9);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2ab3a9);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2ab3a9);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',_0x2ab3a9);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2ab3a9);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',_0x2ab3a9);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2ab3a9);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2ab3a9);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2ab3a9);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2ab3a9);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2ab3a9);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2ab3a9);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2ab3a9);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2ab3a9);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2ab3a9);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2ab3a9);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2ab3a9);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2ab3a9);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2ab3a9);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2ab3a9);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2ab3a9);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2ab3a9);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2ab3a9);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'},_0x2ab3a9);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2ab3a9);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2ab3a9);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2ab3a9);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2ab3a9);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2ab3a9);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2ab3a9);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2ab3a9);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'},_0x2ab3a9);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'},_0x2ab3a9);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2ab3a9);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2ab3a9);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2ab3a9);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2ab3a9);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'},_0x2ab3a9);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2ab3a9);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'},_0x2ab3a9);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'},_0x2ab3a9);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2ab3a9);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'},_0x2ab3a9);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2ab3a9);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'},_0x2ab3a9);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2ab3a9);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x2ab3a9);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x2ab3a9);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x2ab3a9);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2ab3a9);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'},_0x2ab3a9);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2ab3a9);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 _0x1b9e4f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2ab3a9);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1b9e4f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2ab3a9);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2ab3a9);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'},_0x2ab3a9);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'},_0x2ab3a9);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'},_0x2ab3a9);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2f4e7a;}}var Mt=class{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x417ad8,_0x44eefe){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x417ad8,this['_locale']=_0x44eefe;}['getDescriptions'](_0x103980){const _0x1f854e=[],_0xdfe63e=new Set(),_0x5bff8a=new Set();for(let _0x37e94d=0x0;_0x37e94d<_0x103980['length'];_0x37e94d++){const _0x56bb5f=_0x103980[_0x37e94d];if(!_0x56bb5f['isInContent'])continue;const _0x22fb68=this['_handleCustomCallbackDescription'](_0x56bb5f);if(_0x22fb68){if(null!=_0x56bb5f['subType']){if(_0xdfe63e['has'](_0x56bb5f['subType']))continue;_0xdfe63e['add'](_0x56bb5f['subType']);}_0x1f854e['push'](_0x22fb68);}else{if('attribute'==_0x56bb5f['type']){const _0x321158=_0x56bb5f['data']['key'];if(_0x5bff8a['has'](_0x321158))continue;_0x5bff8a['add'](_0x56bb5f['data']['key']),'$elementName'==_0x321158?this['_handleRenameSuggestionDescription'](_0x1f854e,_0x56bb5f):this['_handleAttributeSuggestionDescription'](_0x1f854e,_0x56bb5f);continue;}'insertion'!=_0x56bb5f['type']&&'deletion'!=_0x56bb5f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1f854e,_0x56bb5f,_0x103980[_0x37e94d+0x1]);}}return this['_resolveDescriptionItems'](_0x1f854e);}['registerDescriptionCallback'](_0x1e5da5){this['_customCallbacks']['push'](_0x1e5da5);}['registerElementLabel'](_0x1bf4f1,_0x46432b,_0x302959=_0x6acb2['normal']){'function'==typeof _0x1bf4f1?_0x2c5f4f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1bf4f1,'label':_0x46432b,'priority':_0x302959}):this['_itemLabels']['set'](_0x1bf4f1,_0x46432b);}['registerAttributeLabel'](_0x1e8279,_0x6f6fa8){this['_attributeLabels']['set'](_0x1e8279,_0x6f6fa8);}['getItemLabel'](_0x37a3f9,_0x5ae4b9=0x1){let _0x35743d;for(const _0x2f6e64 of this['_itemLabelsCallbacks'])if(_0x2f6e64['matchingCallback'](_0x37a3f9)){_0x35743d=_0x2f6e64['label'];break;}return _0x35743d||(_0x35743d=this['_itemLabels']['get'](_0x37a3f9['name'])),_0x35743d?_0x35743d(_0x5ae4b9):0x1!==_0x5ae4b9?_0x5ae4b9+'\x20'+_0x37a3f9['name']+'s':''+_0x37a3f9['name'];}['_addDescriptionItems'](_0x429674,_0x2320e0){const _0x51bc42=_0x2320e0['getFirstRange']()['getWalker'](),_0x158613='insertion'==_0x2320e0['type']?'add':'remove';for(const _0x2769f5 of _0x51bc42){const _0xc61f32=_0x2769f5['item'],_0x8167af=_0x429674[_0x429674['length']-0x1];if(_0xc61f32['is']('$textProxy'))_0x8167af&&_0x8167af['type']['indexOf']('Container')>-0x1&&_0x429674['pop'](),_0x8167af&&'text'==_0x8167af['type']?_0x8167af[_0x158613]+=_0xc61f32['data']:_0x429674['push']({'type':'text','add':'add'==_0x158613?_0xc61f32['data']:'','remove':'remove'==_0x158613?_0xc61f32['data']:''});else{if(this['_schema']['isObject'](_0xc61f32)){const _0x302243=_0xc61f32;if(_0x8167af&&_0x8167af['type']['indexOf']('Container')>-0x1&&_0x429674['pop'](),'elementEnd'==_0x2769f5['type'])continue;_0x8167af&&_0x8167af['type']==_0x158613+'Object'&&_0x8167af['element']['name']==_0x302243['name']?_0x8167af['quantity']++:_0x429674['push']({'type':_0x158613+'Object','element':_0x302243,'quantity':0x1}),_0x51bc42['skip'](_0x426416=>!('elementEnd'==_0x426416['type']&&_0x426416['item']==_0xc61f32));}else{if(this['_schema']['checkChild'](_0xc61f32,'$text')||_0xc61f32['is']('element','softBreak')){const _0x5cf39f=_0xc61f32;if('add'==_0x158613&&'elementStart'==_0x2769f5['type']||'remove'==_0x158613&&'elementEnd'==_0x2769f5['type'])continue;if(_0x8167af&&-0x1==_0x8167af['type']['indexOf']('Container')){'text'==_0x8167af['type']&&(_0x8167af[_0x158613]+='\x0a');continue;}let _0x30bf7c;if(_0x30bf7c='add'==_0x158613?_0x5cf39f['nextSibling']&&!this['_schema']['isObject'](_0x5cf39f['nextSibling'])?_0x5cf39f['nextSibling']:null:_0x5cf39f['previousSibling']&&!this['_schema']['isObject'](_0x5cf39f['previousSibling'])?_0x5cf39f['previousSibling']:null,_0x5cf39f['isEmpty']||_0x30bf7c&&_0x30bf7c['isEmpty']){const _0x118520=_0x30bf7c&&_0x30bf7c['isEmpty']?_0x30bf7c:_0x5cf39f;_0x8167af&&_0x8167af['type']==_0x158613+'EmptyContainer'&&_0x8167af['element']['name']==_0x118520['name']?_0x8167af['quantity']++:_0x429674['push']({'type':_0x158613+'EmptyContainer','element':_0x118520,'quantity':0x1});}else _0x429674['push']({'type':_0x158613+'Container','element':_0x5cf39f});}}}}}['_resolveDescriptionItems'](_0x5d5c2a){const _0x50b663=this['_locale'],_0x4c8b13=[],_0x3e40b6=[],_0x525a08=[];for(const _0x3dd721 of _0x5d5c2a)switch(_0x3dd721['type']){case'text':if(_0x3dd721['add']=_0x3dd721['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3dd721['remove']=_0x3dd721['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3dd721['add']&&''!=_0x3dd721['remove']){_0x4c8b13['push']({'type':'replace','content':St(_0x50b663,'REPLACE_TEXT',['\x22'+_0x3dd721['remove']+'\x22','\x22'+_0x3dd721['add']+'\x22'])});continue;}if(null!=_0x3dd721['add']['match'](/^ +$/)){_0x4c8b13['push']({'type':'insertion','content':St(_0x50b663,'*Insert:*\x20%0',St(_0x50b663,'ELEMENT_SPACE',_0x3dd721['add']['length']))});continue;}if(null!=_0x3dd721['remove']['match'](/^ +$/)){_0x4c8b13['push']({'type':'deletion','content':St(_0x50b663,'*Remove:*\x20%0',St(_0x50b663,'ELEMENT_SPACE',_0x3dd721['remove']['length']))});continue;}if(''!=_0x3dd721['add']){_0x4c8b13['push']({'type':'insertion','content':St(_0x50b663,'*Insert:*\x20%0','\x22'+_0x3dd721['add']+'\x22')});continue;}_0x4c8b13['push']({'type':'deletion','content':St(_0x50b663,'*Remove:*\x20%0','\x22'+_0x3dd721['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4c8b13['push']({'type':'insertion','content':St(_0x50b663,'*Insert:*\x20%0',this['getItemLabel'](_0x3dd721['element'],_0x3dd721['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4c8b13['push']({'type':'deletion','content':St(_0x50b663,'*Remove:*\x20%0',this['getItemLabel'](_0x3dd721['element'],_0x3dd721['quantity']))});continue;case'addContainer':_0x4c8b13['push']({'type':'insertion','content':St(_0x50b663,'*Split:*\x20%0',this['getItemLabel'](_0x3dd721['element'],_0x3dd721['quantity']))});continue;case'removeContainer':_0x4c8b13['push']({'type':'deletion','content':St(_0x50b663,'*Merge:*\x20%0',this['getItemLabel'](_0x3dd721['element'],_0x3dd721['quantity']))});continue;case'addFormat':_0x3e40b6['push'](_0x3dd721['key']);continue;case'removeFormat':_0x525a08['push'](_0x3dd721['key']);continue;default:_0x4c8b13['push'](_0x3dd721);}if(_0x3e40b6['length']){const _0x34f4fa=_0x3e40b6['map'](_0x32c44d=>this['_attributeLabels']['has'](_0x32c44d)?this['_attributeLabels']['get'](_0x32c44d):_0x32c44d)['join'](',\x20');_0x4c8b13['push']({'type':'format','content':St(this['_locale'],'*Set\x20format:*\x20%0',_0x34f4fa)});}if(_0x525a08['length']){const _0x2efe28=_0x525a08['map'](_0x26f838=>this['_attributeLabels']['has'](_0x26f838)?this['_attributeLabels']['get'](_0x26f838):_0x26f838)['join'](',\x20');_0x4c8b13['push']({'type':'format','content':St(this['_locale'],'*Remove\x20format:*\x20%0',_0x2efe28)});}return _0x4c8b13;}['_handleCustomCallbackDescription'](_0x54683d){for(const _0xf35f96 of this['_customCallbacks']){const _0x13f698=_0xf35f96(_0x54683d);if(_0x13f698&&'type'in _0x13f698)return _0x13f698;}}['_handleAttributeSuggestionDescription'](_0x32957c,_0x1e00df){const _0x432122=_0x1e00df['data'],_0x31da34=void 0x0===_0x432122['newValue']?'removeFormat':'addFormat';_0x32957c['push']({'type':_0x31da34,'key':_0x432122['key']});}['_handleRenameSuggestionDescription'](_0x44ef34,_0x14ed36){_0x44ef34['push']({'type':'format','content':St(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x14ed36['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xd308dc,_0x1ae146,_0x1aea0a){if(this['_addDescriptionItems'](_0xd308dc,_0x1ae146),_0x1aea0a&&_0x1aea0a['getFirstRange']()&&!_0x1ae146['getFirstRange']()['end']['isEqual'](_0x1aea0a['getFirstRange']()['start'])){const _0x54820e=_0xd308dc[_0xd308dc['length']-0x1],_0x396d4b='insertion'==_0x1ae146['type']?'add':'remove';_0x54820e&&'text'==_0x54820e['type']&&(_0x54820e[_0x396d4b]+='\x0a');}}},Ot=class extends _0x335f48{['afterInit'](){const _0x1c16e4=this['editor'],_0x2d7ad0=_0x1c16e4['plugins']['get']('TrackChangesEditing');_0x1c16e4['commands']['get']('showAIAssistant')&&_0x2d7ad0['enableCommand']('showAIAssistant');}},wt=class extends _0x335f48{['afterInit'](){const _0x31cd4c=this['editor'],_0x59b67d=_0x31cd4c['plugins']['get']('TrackChangesEditing');_0x31cd4c['commands']['get']('toggleAi')&&_0x59b67d['enableCommand']('toggleAi');}},Ft=class extends _0x335f48{['afterInit'](){const _0x17b4be=this['editor'],_0xc66e60=_0x17b4be['plugins']['get']('TrackChangesEditing');_0x17b4be['commands']['get']('aiQuickAction')&&_0xc66e60['enableCommand']('aiQuickAction');}},Bt=class extends _0x335f48{['afterInit'](){const _0x216f4e=this['editor'],_0x290c24=_0x216f4e['locale'];if(!_0x216f4e['plugins']['has']('AlignmentEditing'))return;const _0x39bc65=_0x216f4e['plugins']['get']('TrackChangesEditing');_0x39bc65['enableDefaultAttributesIntegration']('alignment'),_0x39bc65['descriptionFactory']['registerAttributeLabel']('alignment',St(_0x290c24,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36409f=this['editor'],_0x218976=_0x36409f['locale'];_0x36409f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe6c820=>{if('formatBlock'!=_0xe6c820['type'])return;const {data:_0x136dbe}=_0xe6c820;if(_0x136dbe&&'alignment'==_0x136dbe['commandName']){const _0x476ceb=_0x136dbe['commandParams'][0x0]['value'];return{'type':'format','content':St(_0x218976,'*Format:*\x20%0',function(_0x5bcbe7){switch(_0x5bcbe7){case'left':return St(_0x218976,'FORMAT_ALIGN_TO_LEFT');case'right':return St(_0x218976,'FORMAT_ALIGN_TO_RIGHT');case'center':return St(_0x218976,'FORMAT_ALIGN_TO_CENTER');case'justify':return St(_0x218976,'FORMAT_JUSTIFY_TEXT');}}(_0x476ceb))};}});}};const vt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Dt=class extends _0x335f48{['afterInit'](){const _0x108afd=this['editor'],_0x21a58f=_0x108afd['plugins']['get']('TrackChangesEditing'),_0x2da5aa=_0x108afd['locale'];for(const _0x538e1b of vt){if(!_0x108afd['plugins']['has'](_0x538e1b))continue;const _0x590e31=_0x538e1b['slice'](0x0,-0x7)['toLowerCase'](),_0x20fe91='FORMAT_'+_0x590e31['toUpperCase']();_0x21a58f['enableDefaultAttributesIntegration'](_0x590e31),_0x21a58f['descriptionFactory']['registerAttributeLabel'](_0x590e31,St(_0x2da5aa,_0x20fe91));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d6fa3=this['editor'],_0x32ec65=_0x1d6fa3['locale'],_0x5d3eb9=_0x1d6fa3['plugins']['get']('TrackChangesEditing');function _0x1fdf1f(_0x5482d8,_0x24ec7b){_0x5d3eb9['descriptionFactory']['registerDescriptionCallback'](_0x135df9=>{if('formatInline'!=_0x135df9['type'])return;const {data:_0x1b0fcd}=_0x135df9;return _0x1b0fcd&&_0x1b0fcd['commandName']===_0x5482d8?_0x1b0fcd['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x32ec65,'*Format:*\x20%0',_0x24ec7b)}:{'type':'format','content':St(_0x32ec65,'*Remove\x20format:*\x20%0',_0x24ec7b)}:void 0x0;});}_0x1fdf1f('bold',St(_0x32ec65,'FORMAT_BOLD')),_0x1fdf1f('italic',St(_0x32ec65,'FORMAT_ITALIC')),_0x1fdf1f('underline',St(_0x32ec65,'FORMAT_UNDERLINE')),_0x1fdf1f('code',St(_0x32ec65,'FORMAT_CODE')),_0x1fdf1f('strikethrough',St(_0x32ec65,'FORMAT_STRIKETHROUGH')),_0x1fdf1f('subscript',St(_0x32ec65,'FORMAT_SUBSCRIPT')),_0x1fdf1f('superscript',St(_0x32ec65,'FORMAT_SUPERSCRIPT'));}},Ut=class extends _0x335f48{['afterInit'](){const _0x3f4f4c=this['editor'],_0x128fee=_0x3f4f4c['locale'];if(!_0x3f4f4c['plugins']['has']('BlockQuoteEditing'))return;const _0x45c5ec=_0x3f4f4c['plugins']['get']('TrackChangesEditing'),_0x54c2f8=this['editor']['commands']['get']('blockQuote');_0x45c5ec['enableCommand']('blockQuote',(_0x9bfb68,_0x4ba4d3={})=>{const _0x4408b4=this['editor']['model']['document']['selection'],_0x4f2f5f=_0x4ba4d3&&void 0x0!==_0x4ba4d3['forceValue']?_0x4ba4d3['forceValue']:!_0x54c2f8['value'];let _0x24bce7=[];_0x24bce7=At(_0x4f2f5f?Array['from'](_0x4408b4['getSelectedBlocks']())['filter'](_0x19c317=>Pt(_0x19c317)||function(_0x57da54,_0xaa2f6){const _0x37ffb4=_0xaa2f6['createContext'](_0x57da54['parent']);return!!_0xaa2f6['checkChild'](_0x37ffb4,'blockQuote')&&!!_0xaa2f6['checkChild'](_0x37ffb4['push']('blockQuote'),_0x57da54);}(_0x19c317,this['editor']['model']['schema'])):Array['from'](_0x4408b4['getSelectedBlocks']())['filter'](_0x1db9c5=>Pt(_0x1db9c5)),_0x3f4f4c['model']),_0x3f4f4c['model']['change'](()=>{for(const _0x21de3a of _0x24bce7)_0x45c5ec['markBlockFormat'](_0x21de3a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4f2f5f}]});});}),_0x45c5ec['descriptionFactory']['registerDescriptionCallback'](_0x24ac78=>{const {data:_0x725990}=_0x24ac78;if(_0x725990&&'blockQuote'==_0x725990['commandName']){const _0x48753d=St(_0x128fee,'ELEMENT_BLOCK_QUOTE');return _0x725990['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x128fee,'*Set\x20format:*\x20%0',_0x48753d)}:{'type':'format','content':St(_0x128fee,'*Remove\x20format:*\x20%0',_0x48753d)};}});}};function Pt(_0x29f458){return'blockQuote'==_0x29f458['parent']['name'];}var xt=class extends _0x335f48{['afterInit'](){const _0x287ca8=this['editor'],_0x5db483=_0x287ca8['locale'],_0x346e14=_0x287ca8['plugins']['get']('TrackChangesEditing');_0x287ca8['plugins']['has']('BookmarkEditing')&&(_0x346e14['enableCommand']('insertBookmark'),_0x346e14['enableDefaultAttributesIntegration']('updateBookmark'),_0x346e14['descriptionFactory']['registerDescriptionCallback'](_0x3f4f0b=>{if('insertion'!=_0x3f4f0b['type']&&'deletion'!=_0x3f4f0b['type']&&'attribute'!=_0x3f4f0b['type'])return;const _0x2cc5d6=_0x3f4f0b['getContainedElement']();if(null==_0x2cc5d6)return;if(!_0x2cc5d6['is']('element','bookmark'))return;const _0x3797d5=_0x2cc5d6['getAttribute']('bookmarkId');if('insertion'==_0x3f4f0b['type'])return{'type':'insertion','content':St(_0x5db483,'*Insert:*\x20%0','\x22'+_0x3797d5+'\x22\x20'+St(_0x5db483,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3f4f0b['type'])return{'type':'deletion','content':St(_0x5db483,'*Remove:*\x20%0','\x22'+_0x3797d5+'\x22\x20'+St(_0x5db483,'ELEMENT_BOOKMARK'))};const {data:_0x27d5ca}=_0x3f4f0b;return _0x27d5ca&&'bookmarkId'==_0x27d5ca['key']?{'type':'format','content':St(_0x5db483,'*Set\x20bookmark:*\x20%0','\x22'+_0x27d5ca['newValue']+'\x22')}:void 0x0;}));}},Gt=class extends _0x335f48{['afterInit'](){const _0x520fb8=this['editor'];_0x520fb8['plugins']['has']('CaseChange')&&(_0x520fb8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x520fb8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x520fb8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Ht=class extends _0x335f48{['afterInit'](){const _0x32a99a=this['editor'];_0x32a99a['commands']['get']('ckbox')&&_0x32a99a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},$t=class extends _0x335f48{['afterInit'](){const _0x277b9e=this['editor'];if(!_0x277b9e['plugins']['has']('CodeBlock'))return;const _0x28471e=_0x277b9e['plugins']['get']('TrackChangesEditing'),_0x3ec213=_0x277b9e['locale'],_0x51602e=_0x277b9e['config']['get']('codeBlock')['languages'],_0x29a3ef=_0x277b9e['commands']['get']('codeBlock');_0x28471e['enableCommand']('indentCodeBlock'),_0x28471e['enableCommand']('outdentCodeBlock'),_0x28471e['enableCommand']('codeBlock',(_0x1e4866,_0x59fc9d={})=>{const _0x166bea=_0x277b9e['model'],_0x48f5d6=_0x277b9e['model']['document']['selection'],_0x109b12=_0x59fc9d&&void 0x0!==_0x59fc9d['forceValue']?_0x59fc9d['forceValue']:!_0x29a3ef['value'];let _0x226e97;_0x59fc9d['language']||(_0x59fc9d['language']=_0x51602e[0x0]['language']),_0x226e97=_0x109b12?Array['from'](_0x48f5d6['getSelectedBlocks']())['filter'](_0x4ffd68=>{return Vt(_0x4ffd68)||(_0x5c733c=_0x4ffd68,_0x404c13=_0x166bea['schema'],!_0x5c733c['is']('rootElement')&&!_0x404c13['isLimit'](_0x5c733c)&&_0x404c13['checkChild'](_0x5c733c['parent'],'codeBlock'));var _0x5c733c,_0x404c13;}):Array['from'](_0x48f5d6['getSelectedBlocks']())['filter'](_0x32a554=>Vt(_0x32a554));const _0xa32fa7=At(_0x226e97,_0x166bea);_0x166bea['change'](()=>{for(const _0x3892a9 of _0xa32fa7)_0x28471e['markBlockFormat'](_0x3892a9,{'commandName':'codeBlock','commandParams':[{..._0x59fc9d,'forceValue':_0x109b12}],'formatGroupId':'blockName'});});}),(_0x28471e['descriptionFactory']['registerElementLabel']('codeBlock',_0x4b5097=>St(_0x3ec213,'ELEMENT_CODE_BLOCK',_0x4b5097)),_0x28471e['descriptionFactory']['registerDescriptionCallback'](_0x549a3c=>{if('formatBlock'!=_0x549a3c['type'])return;const _0x1fd4ae=_0x3ec213['t'],{data:_0x499ad7}=_0x549a3c;if(!_0x499ad7||'codeBlock'!=_0x499ad7['commandName'])return;const _0x33dfc8=_0x499ad7['commandParams'][0x0]['language'],_0x2f2b0c=_0x1fd4ae(_0x51602e['find'](_0x46ae2a=>_0x46ae2a['language']===_0x33dfc8)['label'])['toLowerCase']();return _0x499ad7['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x3ec213,'*Set\x20format:*\x20%0',St(_0x3ec213,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2f2b0c+')')}:{'type':'format','content':St(_0x3ec213,'*Remove\x20format:*\x20%0',St(_0x3ec213,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Vt(_0x270b66){return'codeBlock'==_0x270b66['name'];}var Wt=class extends _0x335f48{['afterInit'](){const _0x2164f6=this['editor'];_0x2164f6['plugins']['has']('CommentsEditing')&&_0x2164f6['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},jt=class extends _0x335f48{static get['requires'](){return[ht];}['init'](){const _0x4cddd4=this['editor'],_0x103d63=_0x4cddd4['plugins']['get']('TrackChangesEditing');_0x103d63['enableCommand']('delete');const _0x396862=_0x4cddd4['commands']['get']('deleteForward');_0x103d63['enableCommand']('deleteForward',(_0x3655a3,_0x47520f={})=>{const _0x418367=_0x4cddd4['model']['createSelection'](_0x4cddd4['model']['document']['selection']);_0x418367['isCollapsed']&&_0x4cddd4['model']['modifySelection'](_0x418367,{'direction':'forward','unit':_0x47520f['unit']});const _0x5a41ea=_0x418367['getFirstRange'](),_0x206d1c=rt['fromRange'](_0x5a41ea);let _0x1470b0;_0x3655a3(_0x47520f),_0x1470b0='$graveyard'==_0x206d1c['root']['rootName']?_0x4cddd4['model']['createRange'](_0x5a41ea['start']):_0x4cddd4['model']['createRange'](_0x206d1c['start'],_0x206d1c['end']),_0x206d1c['detach'](),_0x4cddd4['model']['enqueueChange'](_0x396862['buffer']['batch'],_0x4530b3=>{_0x396862['buffer']['lock'](),_0x4530b3['setSelection'](_0x4530b3['createRange'](_0x1470b0['end'])),_0x396862['buffer']['unlock']();});});}},Kt=class extends _0x335f48{['afterInit'](){const _0xc9334f=this['editor'];if(!_0xc9334f['plugins']['has']('ListEditing'))return;const _0x31d0ae=_0xc9334f['locale'],_0x308da2=_0xc9334f['plugins']['get']('TrackChangesEditing'),_0x5916b0=_0xc9334f['plugins']['has']('TodoListEditing'),_0x5d2fd5=!!_0xc9334f['config']['get']('list.multiBlock');function _0xa429b0(_0x5aab4a){return{'type':'format','content':''+St(_0x31d0ae,'*Set\x20format:*\x20%0',_0x5aab4a)};}function _0xb0c794(_0x34b033){return{'type':'format','content':''+St(_0x31d0ae,'*Remove\x20format:*\x20%0',_0x34b033)};}_0x308da2['enableDefaultAttributesIntegration']('numberedList'),_0x308da2['enableDefaultAttributesIntegration']('bulletedList'),_0x308da2['enableDefaultAttributesIntegration']('customNumberedList'),_0x308da2['enableDefaultAttributesIntegration']('customBulletedList'),_0x308da2['enableDefaultAttributesIntegration']('indentList'),_0x308da2['enableDefaultAttributesIntegration']('outdentList'),_0x308da2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x308da2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5d2fd5&&(_0x308da2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x308da2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5916b0&&(_0x308da2['enableDefaultAttributesIntegration']('todoList'),_0x308da2['enableDefaultAttributesIntegration']('checkTodoList'),_0x308da2['descriptionFactory']['registerDescriptionCallback'](_0x4c39db=>{const {data:_0x236a29}=_0x4c39db;if(_0x236a29&&'todoListChecked'==_0x236a29['key'])return{'type':'format','content':_0x236a29['newValue']?St(_0x31d0ae,'*Check\x20item*'):St(_0x31d0ae,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3f70aa=>{if(_0x3f70aa['batch']['isUndo'])return!0x1;let _0x4a9ad4=!0x1;const _0x3260c7=_0x308da2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8a488e=>'todoListChecked'===_0x308da2['_getAttributeKey'](_0x8a488e));for(const _0x4e81b7 of _0x3260c7)'todo'!=_0x4e81b7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x308da2['_findSuggestions'](_0x4e81b7['getFirstRange'](),'attribute')['find'](_0x1584c4=>'listType'===_0x308da2['_getAttributeKey'](_0x1584c4['suggestion']))||(_0x3f70aa['removeMarker'](_0x4e81b7['getFirstMarker']()),_0x4a9ad4=!0x0));return _0x4a9ad4;})),_0x308da2['descriptionFactory']['registerAttributeLabel']('listIndent',St(_0x31d0ae,'FORMAT_INDENT'));const _0x19236c={'type':'format','content':''};_0x308da2['descriptionFactory']['registerDescriptionCallback'](_0x46641f=>{const {data:_0x1077ff}=_0x46641f;if(!_0x1077ff||'listType'!=_0x1077ff['key'])return;let _0x4c1266=_0x46641f['head'];for(;_0x4c1266;){if(_0x4c1266['data']&&(('listStyle'==_0x4c1266['data']['key']||'listMarkerStyle'==_0x4c1266['data']['key'])&&(_0x4c1266['data']['newValue']&&'default'!=_0x4c1266['data']['newValue']||'default'!=_0x4c1266['data']['oldValue']&&!_0x1077ff['newValue'])||!_0x5d2fd5&&'$elementName'==_0x4c1266['data']['key']))return _0x19236c;_0x4c1266=_0x4c1266['next'];}if(null==_0x1077ff['newValue'])switch(_0x1077ff['oldValue']){case'bulleted':return _0xb0c794(St(_0x31d0ae,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xb0c794(St(_0x31d0ae,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xb0c794(St(_0x31d0ae,'ELEMENT_TODO_LIST'));}switch(_0x1077ff['newValue']){case'bulleted':return _0xa429b0(St(_0x31d0ae,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa429b0(St(_0x31d0ae,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa429b0(St(_0x31d0ae,'ELEMENT_TODO_LIST'));}}),_0x308da2['descriptionFactory']['registerDescriptionCallback'](_0x5b5de5=>{const {data:_0x1d4950}=_0x5b5de5;if(_0x1d4950&&'listIndent'==_0x1d4950['key'])return null==_0x1d4950['newValue']||null==_0x1d4950['oldValue']&&0x0==_0x1d4950['newValue']?_0x19236c:void 0x0;}),_0x308da2['descriptionFactory']['registerDescriptionCallback'](_0x21a348=>{if('attribute'!=_0x21a348['type'])return;const {data:_0x5aedf6}=_0x21a348;if(!_0x5aedf6||'listItemId'!=_0x5aedf6['key'])return;const _0x494cdb=zt(_0x21a348);return'newValue'==_0x494cdb?{'type':'format','content':St(_0x31d0ae,'*Merge:*\x20list\x20item')}:'oldValue'==_0x494cdb?{'type':'format','content':St(_0x31d0ae,'*Split:*\x20list\x20item')}:_0x19236c;}),_0xc9334f['model']['document']['registerPostFixer'](_0x227e7e=>this['listItemIdFixer'](_0x227e7e)),_0xc9334f['model']['document']['registerPostFixer'](_0x53a2a6=>this['noTrackChangesFixer'](_0x53a2a6)),_0xc9334f['model']['document']['on']('change:data',(_0x2519fc,_0x275167)=>{if(_0x275167['isUndo']||!_0x275167['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x34ceaa){if(_0x34ceaa['batch']['isUndo']||!_0x34ceaa['batch']['isLocal'])return!0x1;let _0x22a054=!0x1;const _0x1d89bc=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2da8de=>_0x2da8de['data']&&'listItemId'==_0x2da8de['data']['key'])['filter'](_0x630000=>_0x630000['data']['newValue']&&_0x630000['data']['oldValue']);for(const _0x1399de of _0x1d89bc)zt(_0x1399de)||(_0x34ceaa['removeMarker'](_0x1399de['getFirstMarker']()),_0x22a054=!0x0);return _0x22a054;}['noTrackChangesFixer'](_0x3806f6){if(_0x3806f6['batch']['isUndo']||!_0x3806f6['batch']['isLocal'])return!0x1;const _0x1c384e=this['editor']['model']['document']['differ'],_0x5790c7=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5790c7['trackChangesCommand']['value'])return!0x1;let _0x508017=!0x1;const _0x48ee89=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x2859fa=_0x1c384e['getChanges']()['filter'](_0x3c95eb=>'attribute'==_0x3c95eb['type'])['filter'](_0x12129b=>_0x48ee89['has'](_0x12129b['attributeKey']));if(0x0==_0x2859fa['length'])return _0x508017;const _0x711a88=new Set(_0x1c384e['getMarkersToAdd']()['filter'](_0x40f03f=>{if(!_0x40f03f['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x2c8115=tt(_0x40f03f['name'])['subType']['split']('|')[0x0];return _0x48ee89['has'](_0x2c8115);})['map'](_0x1afe77=>tt(_0x1afe77['name'])['id']));for(const _0x2c3500 of _0x2859fa){const _0x50f8c8=_0x5790c7['_findSuggestions'](_0x2c3500['range'],'attribute')['filter'](_0x11e5cf=>{if(_0x11e5cf['meta']['isNextTo'])return!0x1;if(_0x711a88['has'](_0x11e5cf['suggestion']['id']))return!0x1;const _0x21348b=_0x5790c7['_getAttributeKey'](_0x11e5cf['suggestion']);return _0x48ee89['has'](_0x21348b);})['map'](_0x3a85e5=>_0x3a85e5['suggestion']);if(_0x50f8c8['length']){for(const _0x566d83 of _0x50f8c8)_0x3806f6['removeMarker'](_0x566d83['getFirstMarker']());_0x508017=!0x0;}}return _0x508017;}['assureChains'](){const _0x41c7b8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x574fcd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0xf1f1aa;const _0x4b2a32=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x545aaf=>{if(_0x545aaf['data']['oldRange']||!_0x545aaf['data']['newRange'])return null;if(!_0x545aaf['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1713c0}=tt(_0x545aaf['name']);if(!_0x41c7b8['hasSuggestion'](_0x1713c0))return null;const _0x541a65=_0x41c7b8['getSuggestion'](_0x1713c0);return _0x574fcd['includes'](_0x541a65['data']['key']);})['map'](_0x55150b=>{const {id:_0x7f5139}=tt(_0x55150b['name']),_0x464686=_0x41c7b8['getSuggestion'](_0x7f5139);return _0xf1f1aa=_0x464686['attributes']['groupId'],_0x464686['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4b2a32['size'])return;const _0x51d0cc=_0x41c7b8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e285f=>'attribute'==_0x3e285f['type']&&_0x3e285f['data']&&_0x574fcd['includes'](_0x3e285f['data']['key'])&&_0x3e285f['attributes']['groupId']!=_0xf1f1aa)['map'](_0x1837a0=>({'listItem':_0x1837a0['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1837a0['attributes']['groupId']})),_0x4b0a68=new Set();for(const {groupId:_0x5f1083,listItem:_0x4a3fde}of _0x51d0cc)_0x4b2a32['has'](_0x4a3fde)&&_0x4b0a68['add'](_0x5f1083);for(const _0x18151b of _0x41c7b8['getSuggestions']())_0x4b0a68['has'](_0x18151b['attributes']['groupId'])&&_0x18151b['setAttribute']('groupId',_0xf1f1aa);}['_supportLegacySuggestions'](){const _0x5a5b76=this['editor'],_0xb1173a=_0x5a5b76['locale'],_0x335e1b=_0x5a5b76['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x335e1b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3e9eb2,_0x3dc8d0){const _0x3241e3=[];for(let _0x3ac731 of _0x3e9eb2)_0x3ac731['start']['nodeAfter']===_0x3ac731['end']['parent']&&(_0x3ac731=_0x5a5b76['model']['createRange'](_0x5a5b76['model']['createPositionAt'](_0x3ac731['start']['nodeAfter'],0x0))),_0x3241e3['push'](_0x3ac731);_0x5a5b76['model']['change'](_0x199b1f=>{const _0xb77a77=_0x5a5b76['model']['document']['selection'],_0x5aa1a5=Array['from'](_0xb77a77['getRanges']())['map'](_0x826804=>rt['fromRange'](_0x826804));_0x199b1f['setSelection'](_0x3241e3),_0x5a5b76['commands']['get'](_0x3dc8d0['commandName'])['refresh'](),_0x3dc8d0['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5a5b76['execute'](_0x3dc8d0['commandName'],..._0x3dc8d0['commandParams']),_0x199b1f['setSelection'](_0x5aa1a5);for(const _0x42ad0e of _0x5aa1a5)_0x42ad0e['detach']();});}),_0x335e1b['descriptionFactory']['registerElementLabel'](function(_0x4dd608){const _0x459043=!_0x5a5b76['model']['schema']['isObject'](_0x4dd608),_0x1a879d=_0x4dd608['previousSibling'],_0x54fe7a=_0x4dd608['nextSibling'],_0x5310e9=_0x4dd608['getAttribute']('listItemId'),_0x3e6832=!_0x1a879d||_0x1a879d['getAttribute']('listItemId')!==_0x5310e9,_0x5418ae=!_0x54fe7a||_0x54fe7a['getAttribute']('listItemId')!==_0x5310e9;return _0x459043&&Boolean(_0x5310e9)&&_0x3e6832&&_0x5418ae;},_0x4419a2=>St(_0xb1173a,'ELEMENT_LIST_ITEM',_0x4419a2));}['_registerLegacyDescription'](){const _0x1e1141=this['editor'],_0x227771=_0x1e1141['locale'];function _0xce9cd6(_0x3a916f){const _0x20db96=_0x1e1141['commands']['get']('bulletedList')['value'],_0x20bd0c=_0x1e1141['commands']['get']('numberedList')['value'];return'numberedList'===_0x3a916f?_0x20db96:_0x20bd0c;}_0x1e1141['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xf24e95){if('formatBlock'!=_0xf24e95['type'])return;const {data:_0x45d463}=_0xf24e95;if(!_0x45d463)return;let _0x684e2c,_0x58f11f,_0x25869e,_0x36618c;switch(_0x45d463['commandName']){case'bulletedList':_0x25869e=_0x45d463['commandParams'][0x0]['forceValue'],_0x36618c=_0xce9cd6(_0x45d463['commandName']),_0x684e2c=_0x25869e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x36618c&&_0x1e1141['config']['get']('list.multiBlock')||(_0x684e2c='*Change\x20to:*\x20%0'),_0x58f11f={'type':'format','content':St(_0x227771,_0x684e2c,St(_0x227771,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x25869e=_0x45d463['commandParams'][0x0]['forceValue'],_0x36618c=_0xce9cd6(_0x45d463['commandName']),_0x684e2c=_0x25869e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x36618c&&_0x1e1141['config']['get']('list.multiBlock')||(_0x684e2c='*Change\x20to:*\x20%0'),_0x58f11f={'type':'format','content':St(_0x227771,_0x684e2c,St(_0x227771,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x684e2c='*Indent:*\x20%0',_0x58f11f={'type':'format','content':St(_0x227771,_0x684e2c,St(_0x227771,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x684e2c=function(_0x3930b9){const _0x47a716=_0x3930b9['getFirstRange']();let _0x3384f8=_0x47a716['start']['nodeAfter'];for(;_0x3384f8&&_0x47a716['containsItem'](_0x3384f8);){if(_0x3384f8['getAttribute']('listIndent')>0x0)return!0x1;_0x3384f8=_0x3384f8['nextSibling'];}return!0x0;}(_0xf24e95)?St(_0x227771,'*Format:*\x20remove\x20from\x20%0',St(_0x227771,function(_0x1bc15d){return'ELEMENT_'+_0x1bc15d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xf24e95))):St(_0x227771,'*Outdent:*\x20%0',St(_0x227771,'ELEMENT_LIST_ITEM')),_0x58f11f={'type':'format','content':_0x684e2c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x45d463['multipleBlocks']&&(_0x684e2c='*Merge:*\x20%0',_0x58f11f={'type':'deletion','content':St(_0x227771,_0x684e2c,St(_0x227771,'ELEMENT_LIST_ITEM'))});}return _0x58f11f;});}};function zt(_0x2e4b4a){let _0x480206=_0x2e4b4a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x480206;){const _0x40b5f9=_0x480206['getAttribute']('listItemId');if(!_0x40b5f9)return!0x1;if(_0x40b5f9==_0x2e4b4a['data']['newValue'])return'newValue';if(_0x40b5f9==_0x2e4b4a['data']['oldValue'])return'oldValue';_0x480206=_0x480206['previousSibling'];}return!0x1;}var Xt=class extends _0x335f48{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x338477=this['editor']['config']['get']('list.properties'),_0x2548cd=this['editor']['plugins']['get']('TrackChangesEditing');_0x338477['styles']&&_0x2548cd['enableDefaultAttributesIntegration']('listStyle'),_0x338477['reversed']&&_0x2548cd['enableDefaultAttributesIntegration']('listReversed'),_0x338477['startIndex']&&_0x2548cd['enableDefaultAttributesIntegration']('listStart');const _0x1e9fb7={'type':'format','content':''};_0x2548cd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x26d1d1=this['editor']['locale'];_0x2548cd['descriptionFactory']['registerAttributeLabel']('listReversed',St(_0x26d1d1,'FORMAT_LIST_REVERSED')),_0x2548cd['descriptionFactory']['registerDescriptionCallback'](_0x21e351=>{const {data:_0x3e523c}=_0x21e351;if(_0x3e523c&&'listReversed'==_0x3e523c['key'])return null==_0x3e523c['newValue']||0x0==_0x3e523c['newValue']&&null==_0x3e523c['oldValue']?_0x1e9fb7:void 0x0;}),_0x2548cd['descriptionFactory']['registerAttributeLabel']('listStart',St(_0x26d1d1,'FORMAT_LIST_START')),_0x2548cd['descriptionFactory']['registerDescriptionCallback'](_0x5e83e1=>{const {data:_0x29ccd1}=_0x5e83e1;if(_0x29ccd1&&'listStart'==_0x29ccd1['key'])return null==_0x29ccd1['newValue']||0x1==_0x29ccd1['newValue']&&null==_0x29ccd1['oldValue']?_0x1e9fb7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x198647=>{if(_0x198647['batch']['isUndo'])return!0x1;let _0x4ac921=!0x1;const _0x42c4e9=_0x2548cd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ec43e=>{const _0x91dd09=_0x2548cd['_getAttributeKey'](_0x4ec43e);return'listStart'==_0x91dd09||'listReversed'==_0x91dd09;});for(const _0x4b8626 of _0x42c4e9){const _0x1a9fee=_0x4b8626['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x1a9fee&&'customNumbered'!=_0x1a9fee&&(_0x2548cd['_findSuggestions'](_0x4b8626['getFirstRange'](),'attribute')['find'](_0x3aa7de=>'listType'==_0x2548cd['_getAttributeKey'](_0x3aa7de['suggestion']))||(_0x198647['removeMarker'](_0x4b8626['getFirstMarker']()),_0x4ac921=!0x0));}return _0x4ac921;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xa0c5ee){const _0x47d1d4=this['editor']['locale'],{data:_0x1875b0}=_0xa0c5ee,_0x415e0f={'type':'format','content':''};if(!_0x1875b0||'listStyle'!=_0x1875b0['key'])return;if(!_0x1875b0['oldValue'])return'default'==_0x1875b0['newValue']?_0x415e0f:{'type':'format','content':''+St(_0x47d1d4,'*Set\x20format:*\x20%0',St(_0x47d1d4,this['_getTranslationKeyForListStyle'](_0x1875b0['newValue'])))};if(!_0x1875b0['newValue']){if('default'==_0x1875b0['oldValue'])return _0x415e0f;let _0x51d91d=_0xa0c5ee['head'];for(;_0x51d91d;){if(_0x51d91d['data']&&'listType'==_0x51d91d['data']['key']&&_0x51d91d['data']['newValue'])return _0x415e0f;_0x51d91d=_0x51d91d['next'];}return{'type':'format','content':''+St(_0x47d1d4,'*Remove\x20format:*\x20%0',St(_0x47d1d4,this['_getTranslationKeyForListStyle'](_0x1875b0['oldValue'])))};}if('default'!=_0x1875b0['newValue'])return{'type':'format','content':''+St(_0x47d1d4,'*Set\x20format:*\x20%0',St(_0x47d1d4,this['_getTranslationKeyForListStyle'](_0x1875b0['newValue'])))};let _0x52988=_0xa0c5ee['head'];for(;_0x52988;){if(_0x52988['data']&&'listType'==_0x52988['data']['key']&&_0x52988['data']['newValue']&&_0x52988['data']['oldValue'])return _0x415e0f;_0x52988=_0x52988['next'];}return{'type':'format','content':St(_0x47d1d4,'*Set\x20format:*\x20%0',St(_0x47d1d4,'ELEMENT_'+_0xa0c5ee['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x39536d=this['editor'],_0x16b291=_0x39536d['locale'];_0x39536d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54d445=>{if('formatBlock'!=_0x54d445['type'])return;const {data:_0x46bf67}=_0x54d445;if(!_0x46bf67)return;let _0x3d7949,_0x2df186;switch(_0x46bf67['commandName']){case'listStyle':_0x3d7949='*Change\x20to:*\x20%0',_0x2df186={'type':'format','content':St(_0x16b291,_0x3d7949,St(_0x16b291,this['_getTranslationKeyForListStyle'](_0x46bf67['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3d7949=_0x46bf67['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2df186={'type':'format','content':St(_0x16b291,_0x3d7949)};break;case'listStart':_0x3d7949='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2df186={'type':'format','content':St(_0x16b291,_0x3d7949,_0x46bf67['commandParams'][0x0]['startIndex'])};}return _0x2df186;});}['_getTranslationKeyForListStyle'](_0x5bbdae){return'ELEMENT_'+(_0x5b8ff7=_0x5bbdae,qt['includes'](_0x5b8ff7)?'bulleted':Yt['includes'](_0x5b8ff7)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x5bbdae['toUpperCase']()['replace'](/-/g,'_');var _0x5b8ff7;}};const qt=['disc','circle','square'],Yt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Qt=class extends _0x335f48{['afterInit'](){const _0x41df9a=this['editor'];_0x41df9a['commands']['get']('emoji')&&_0x41df9a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},Zt=class extends _0x335f48{static get['requires'](){return[ft];}['init'](){const _0x57d8ac=this['editor'],_0x31cd0c=_0x57d8ac['plugins']['get']('TrackChangesEditing'),_0x383c30=_0x57d8ac['commands']['get']('enter');_0x31cd0c['enableCommand']('enter',()=>{_0x57d8ac['model']['change'](_0x4d508e=>{const _0x58bffe=_0x57d8ac['model']['document']['selection'],_0x389991=_0x58bffe['getFirstPosition'](),_0x13b06b=rt['fromRange'](_0x58bffe['getFirstRange']());if(_0x383c30['enterBlock'](_0x4d508e)){const _0x12b06e=_0x57d8ac['model']['createPositionAt'](_0x389991['parent']['nextSibling'],0x0),_0x802baa=_0x4d508e['createRange'](_0x389991,_0x12b06e);_0x31cd0c['markInsertion'](_0x802baa);}else _0x4d508e['setSelection'](_0x4d508e['createRange'](_0x13b06b['end']));_0x13b06b['detach'](),_0x383c30['fire']('afterExecute',{'writer':_0x4d508e});});});}},Jt=class extends _0x335f48{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5a6a8b=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a6a8b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5a6a8b['enableCommand']('findNext'),_0x5a6a8b['enableCommand']('findPrevious'),_0x5a6a8b['enableCommand']('replace'),_0x5a6a8b['enableCommand']('replaceAll');}['handleFindCommand'](_0x2a8122,_0x4587a9,_0x3a2550={}){const _0x4300f8=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2a8122(_0xc3dedb=>{let _0x3e2e30=('string'==typeof _0x4587a9?_0x4300f8['findByTextCallback'](_0x4587a9,_0x3a2550):_0x4587a9)(_0xc3dedb);Array['isArray'](_0x3e2e30)&&(_0x3e2e30={'results':_0x3e2e30,'searchText':'string'==typeof _0x4587a9?_0x4587a9:''});const _0x3d449d=_0x3e2e30['results']['filter'](_0x2abb29=>!0x1===this['_isInDeletionRange'](_0x2abb29,_0xc3dedb['item']));return{..._0x3e2e30,'results':_0x3d449d};},_0x3a2550);}['_isInDeletionRange'](_0x24f11d,_0x54b71b){const _0x3da58a=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x54b71b,_0x24f11d['start']),this['editor']['model']['createPositionAt'](_0x54b71b,_0x24f11d['end']));for(const _0x66bcc1 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3da58a['getIntersection'](_0x66bcc1['getRange']()))return!0x0;return!0x1;}};const te=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ee=class extends _0x335f48{['afterInit'](){const _0x26f613=this['editor']['locale'],_0x1c03fe=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x56ff17,commandName:_0x5f2acd}of te)this['editor']['plugins']['has'](_0x56ff17)&&_0x1c03fe['enableDefaultAttributesIntegration'](_0x5f2acd);_0x1c03fe['descriptionFactory']['registerAttributeLabel']('fontSize',St(_0x26f613,'FORMAT_FONT_SIZE')),_0x1c03fe['descriptionFactory']['registerAttributeLabel']('fontFamily',St(_0x26f613,'FORMAT_FONT_FAMILY')),_0x1c03fe['descriptionFactory']['registerAttributeLabel']('fontColor',St(_0x26f613,'FORMAT_FONT_COLOR')),_0x1c03fe['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',St(_0x26f613,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22db7f=this['editor'],_0x128136=_0x22db7f['locale'];_0x22db7f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x439e60=>{const _0x5dc3d1=_0x128136['t'];if('formatInline'!=_0x439e60['type'])return;const {data:_0x531745}=_0x439e60;if(null!=_0x531745){if('fontSize'==_0x531745['commandName']){const _0xc182f0=_0x531745['commandParams'][0x0]['value'];if(_0xc182f0){const _0xc37c1=this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5dce34=>_0x5dce34['model']==_0xc182f0)['title'];return{'type':'format','content':St(_0x128136,'*Set\x20font\x20size:*\x20%0',_0x5dc3d1(_0xc37c1)['toLowerCase']())};}return{'type':'format','content':St(_0x128136,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x531745['commandName']){const _0x54e17f=_0x531745['commandParams'][0x0]['value'];return _0x54e17f?{'type':'format','content':St(_0x128136,'*Set\x20font\x20family:*\x20%0',_0x54e17f)}:{'type':'format','content':St(_0x128136,'*Reset\x20font\x20family*')};}if('fontColor'==_0x531745['commandName']){const _0x2fab29=_0x531745['commandParams'][0x0]['value'];if(_0x2fab29){const _0xe5928e=_0x1831d4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x34e7f9=>_0x34e7f9['model']==_0x2fab29);let _0xab9462=_0x2fab29,_0x481655='';return _0xe5928e&&(_0xab9462=_0xe5928e['label'],_0x481655=_0x5dc3d1(_0xab9462)['toLowerCase']()),{'type':'format','content':St(_0x128136,'*Set\x20font\x20color:*\x20%0',_0x481655)['trim'](),'color':{'value':_0x2fab29,'title':_0x481655||_0xab9462}};}return{'type':'format','content':St(_0x128136,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x531745['commandName']){const _0x7c3789=_0x531745['commandParams'][0x0]['value'];if(_0x7c3789){const _0x5e1b67=_0x1831d4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2c902e=>_0x2c902e['model']==_0x7c3789);let _0x4768d4=_0x7c3789,_0x277d5a='';return _0x5e1b67&&(_0x4768d4=_0x5e1b67['label'],_0x277d5a=_0x5dc3d1(_0x4768d4)['toLowerCase']()),{'type':'format','content':St(_0x128136,'*Set\x20font\x20background\x20color:*\x20%0',_0x277d5a)['trim'](),'color':{'value':_0x7c3789,'title':_0x277d5a||_0x4768d4}};}return{'type':'format','content':St(_0x128136,'*Reset\x20font\x20background\x20color*')};}}});}},ne=class extends _0x335f48{['afterInit'](){const {plugins:_0x5a4dd0}=this['editor'];_0x5a4dd0['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x5a4dd0['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x4b8051,plugins:_0x50cbc7,commands:_0x47dca0}=this['editor'],_0x1f95b2=_0x50cbc7['get']('TrackChangesEditing');_0x47dca0['get']('footnotesStyle')&&_0x1f95b2['enableDefaultAttributesIntegration']('footnotesStyle'),_0x47dca0['get']('footnotesStart')&&_0x1f95b2['enableDefaultAttributesIntegration']('footnotesStart'),_0x1f95b2['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',St(_0x4b8051,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x1f95b2['descriptionFactory']['registerAttributeLabel']('footnotesListStart',St(_0x4b8051,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x3ae907=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x694ecc,commands:_0x102b82}=this['editor'];_0x102b82['get']('insertFootnote')&&_0x3ae907['enableCommand']('insertFootnote'),_0x3ae907['descriptionFactory']['registerElementLabel']('footnoteRef',_0x524612=>St(_0x694ecc,'ELEMENT_FOOTNOTE_REF',_0x524612)),_0x3ae907['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x587c2a=>St(_0x694ecc,'ELEMENT_FOOTNOTE_DEFINITION',_0x587c2a)),_0x3ae907['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x2e11cd=>St(_0x694ecc,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x2e11cd));}},ie=class extends _0x335f48{['afterInit'](){const _0x136381=this['editor'],_0x5a40af=_0x136381['plugins']['get']('TrackChangesEditing'),_0x595b3a=_0x136381['commands']['get']('copyFormat'),_0x56e4ea=_0x136381['commands']['get']('pasteFormat');_0x595b3a&&_0x56e4ea&&(_0x5a40af['enableDefaultAttributesIntegration']('pasteFormat'),_0x5a40af['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x8b91bb=this['editor'],_0x1e9f3c=_0x8b91bb['locale'];_0x8b91bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d9a52=>{if('formatBlock'!=_0x1d9a52['type']&&'formatInline'!=_0x1d9a52['type'])return;const {data:_0x5d4715}=_0x1d9a52;if(_0x5d4715&&'pasteFormat'===_0x5d4715['commandName']){const _0x2c18bd=[],_0x12cb83=_0x5d4715['commandParams'][0x0];for(const [_0x23557f,_0x185c0e]of Object['entries'](_0x12cb83))_0x2c18bd['push'](se(_0x8b91bb,_0x23557f,_0x185c0e));return _0x2c18bd['length']?{'type':'format','content':St(_0x1e9f3c,'*Set\x20format\x20to:*\x20%0',_0x2c18bd['join'](',\x20'))}:{'type':'format','content':St(_0x1e9f3c,'*Remove\x20all\x20formatting*')};}});}};function se(_0x25849f,_0x7c6501,_0x4c8420){const _0x3fcbc1=_0x25849f['locale']['t'],_0x37e3a9=_0x7c6501['split'](/(?=[A-Z])/)['join']('\x20'),_0x50d7d8=_0x3fcbc1(_0x37e3a9['charAt'](0x0)['toUpperCase']()+_0x37e3a9['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4c8420)return _0x50d7d8;if('fontColor'===_0x7c6501||'fontBackgroundColor'===_0x7c6501){const _0x1cdb2c=_0x1831d4(_0x25849f['config']['get']('fontColor.colors'))['find'](_0x46fbce=>_0x46fbce['model']==_0x4c8420);return _0x50d7d8+'\x20('+(_0x1cdb2c?_0x3fcbc1(_0x1cdb2c['label'])['toLowerCase']():_0x4c8420)+')';}if('fontSize'===_0x7c6501&&isNaN(parseFloat(_0x4c8420))){const _0x23dbe9=_0x25849f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x25849f['config']['get']('fontSize.options'))['find'](_0xcae972=>_0xcae972['model']==_0x4c8420);return _0x50d7d8+'\x20('+(_0x23dbe9?_0x3fcbc1(_0x23dbe9['title'])['toLowerCase']():_0x4c8420)+')';}return _0x50d7d8+'\x20('+_0x4c8420+')';}var re=class extends _0x335f48{['afterInit'](){const _0x3d777e=this['editor'];if(!_0x3d777e['plugins']['has']('GeneralHtmlSupport')||!_0x3d777e['plugins']['has']('DataSchema'))return;const _0x7e937e=_0x3d777e['plugins']['get']('TrackChangesEditing'),_0xf9e6bf=_0x3d777e['plugins']['get']('GeneralHtmlSupport'),_0x1428d7=_0x3d777e['plugins']['get']('DataSchema'),_0x59e457=_0x3d777e['locale'],_0x4bc69a=new Set(['htmlContent']);for(const _0x4760e8 of _0x1428d7['getDefinitionsForView'](/.*/,!0x1)){const _0x5b73e2=_0x4760e8['view'],_0x5f4c6e=_0xf9e6bf['getGhsAttributeNameForElement'](_0x5b73e2);_0x4bc69a['add'](_0x5f4c6e),!_0x4760e8['isInline']||_0x4760e8['isObject']||'appliesToBlock'in _0x4760e8&&_0x4760e8['appliesToBlock']||_0x7e937e['descriptionFactory']['registerAttributeLabel'](_0x5f4c6e,_0x5b73e2),_0x4760e8['model']['startsWith']('html')&&_0x7e937e['descriptionFactory']['registerElementLabel'](_0x4760e8['model'],_0x2c7295=>St(_0x59e457,'ELEMENT_HTML_TAG',[_0x2c7295,_0x5b73e2]));}_0x7e937e['descriptionFactory']['registerAttributeLabel']('htmlContent',St(_0x59e457,'FORMAT_RAW_HTML_CONTENT')),_0x7e937e['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',St(_0x59e457,'FORMAT_HTML_LIST_ITEM')),_0x7e937e['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',St(_0x59e457,'FORMAT_HTML_BULLETED_LIST')),_0x7e937e['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',St(_0x59e457,'FORMAT_HTML_NUMBERED_LIST')),_0x7e937e['descriptionFactory']['registerDescriptionCallback'](_0x5a9477=>{if('attribute'!==_0x5a9477['type'])return;const _0x315ef7=_0x5a9477['data'];if(!_0x315ef7||!_0x4bc69a['has'](_0x315ef7['key']))return;if('htmlContent'===_0x315ef7['key'])return{'type':'format','content':St(_0x59e457,'*Change\x20%0\x20content*',St(_0x59e457,'ELEMENT_RAW_HTML'))};const {setItems:_0x53e5ad,removeItems:_0x44b5b3}=function(_0x314dd3,_0x4a9024,_0x257b20){const _0x5dbd61=[],_0x42e300=[],_0x29125f=_0x314dd3['styles']??{},_0x1630d0=_0x4a9024['styles']??{};for(const _0x46ba97 of new Set([...Object['keys'](_0x29125f),...Object['keys'](_0x1630d0)]))_0x29125f[_0x46ba97]!==_0x1630d0[_0x46ba97]&&(void 0x0===_0x1630d0[_0x46ba97]?_0x42e300['push'](_0x46ba97):_0x5dbd61['push'](_0x46ba97+'\x20('+_0x1630d0[_0x46ba97]+')'));const _0x3b3b86=St(_0x257b20,'FORMAT_HTML_CLASS'),_0x4d808b=new Set(_0x314dd3['classes']??[]),_0x58bb98=new Set(_0x4a9024['classes']??[]),_0x1e5b2b=[..._0x58bb98]['some'](_0x31a854=>!_0x4d808b['has'](_0x31a854)),_0x3a8de2=[..._0x4d808b]['some'](_0x1ce743=>!_0x58bb98['has'](_0x1ce743));_0x1e5b2b&&_0x5dbd61['push'](_0x3b3b86),_0x3a8de2&&_0x42e300['push'](_0x3b3b86);const _0x3f358c=St(_0x257b20,'FORMAT_HTML_ATTRIBUTE'),_0x24c868=_0x314dd3['attributes']??{},_0x19308f=_0x4a9024['attributes']??{};let _0x156018=!0x1,_0x288f9e=!0x1;for(const _0xfbde7c of new Set([...Object['keys'](_0x24c868),...Object['keys'](_0x19308f)]))_0x24c868[_0xfbde7c]!==_0x19308f[_0xfbde7c]&&(void 0x0===_0x19308f[_0xfbde7c]?_0x288f9e=!0x0:_0x156018=!0x0);return _0x156018&&_0x5dbd61['push'](_0x3f358c),_0x288f9e&&_0x42e300['push'](_0x3f358c),{'setItems':_0x5dbd61,'removeItems':_0x42e300};}(_0x315ef7['oldValue']??{},_0x315ef7['newValue']??{},_0x59e457);if(!_0x53e5ad['length']&&!_0x44b5b3['length'])return;const _0x2b7768=[];return _0x53e5ad['length']&&_0x2b7768['push'](St(_0x59e457,'*Set\x20format:*\x20%0',_0x53e5ad['join'](',\x20'))),_0x44b5b3['length']&&_0x2b7768['push'](St(_0x59e457,'*Remove\x20format:*\x20%0',_0x44b5b3['join'](',\x20'))),{'type':'format','content':_0x2b7768['join']('\x0a')};});}},oe=class extends _0x335f48{['_headingOptions'];['afterInit'](){const _0x2e417e=this['editor'];if(!_0x2e417e['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2e417e['config']['get']('heading.options');const _0x6417aa=_0x2e417e['locale'],_0x1fe7b5=_0x2e417e['plugins']['get']('TrackChangesEditing');_0x1fe7b5['enableDefaultAttributesIntegration']('heading');for(const _0x8a9bf8 of this['_headingOptions'])'paragraph'!=_0x8a9bf8['model']&&_0x1fe7b5['descriptionFactory']['registerElementLabel'](_0x8a9bf8['model'],_0x121976=>{const _0x13e78e=this['_getHeadingLevel'](_0x8a9bf8['model']);return null!==_0x13e78e?_0x1ab5bf(_0x121976,_0x13e78e):_0x391a24(_0x121976,_0x8a9bf8['title']);});function _0x1ab5bf(_0x34f9b6,_0x40c4c6){return St(_0x6417aa,'ELEMENT_HEADING',[_0x34f9b6,_0x40c4c6]);}function _0x391a24(_0x3cd56a,_0x1be539){return St(_0x6417aa,'ELEMENT_HEADING_CUSTOM',[_0x3cd56a,_0x1be539]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19cb4a=this['editor'],_0x45effc=_0x19cb4a['locale'];function _0x542492(_0x1ed4ea,_0x407606){return St(_0x45effc,'ELEMENT_HEADING_CUSTOM',[_0x1ed4ea,_0x407606]);}_0x19cb4a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x875f83=>{if('formatBlock'!=_0x875f83['type'])return;const {data:_0x2eb2c9}=_0x875f83;if(_0x2eb2c9&&'heading'==_0x2eb2c9['commandName']){const _0x1dd3d0=_0x2eb2c9['commandParams'][0x0]['value'],_0x1a14b7=this['_getHeadingLevel'](_0x1dd3d0);if(null!==_0x1a14b7)return{'type':'format','content':St(_0x45effc,'*Change\x20to:*\x20%0',(_0x1511a2=0x1,_0x4102d7=_0x1a14b7,St(_0x45effc,'ELEMENT_HEADING',[_0x1511a2,_0x4102d7])))};const _0x272896=this['_headingOptions']['find'](_0x3f6d8a=>_0x3f6d8a['model']===_0x1dd3d0)['title'];return{'type':'format','content':St(_0x45effc,'*Change\x20to:*\x20%0',_0x542492(0x1,_0x272896))};}var _0x1511a2,_0x4102d7;});}['_getHeadingLevel'](_0x14daed){const _0x5de436=_0x14daed['match'](/^heading(\d+)/);if(_0x5de436)return _0x5de436[0x1];const _0x153638=this['_headingOptions']?.['find'](_0x12cc1c=>_0x12cc1c['model']==_0x14daed);if(_0x153638&&_0x153638['view']){const _0x1fe4f7=_0x153638['view'],_0x538527=(_0x1fe4f7['name']??_0x1fe4f7)['match'](/^h(\d+)/);if(_0x538527)return _0x538527[0x1];}return null;}},ae=class extends _0x335f48{['afterInit'](){const _0x24b5b4=this['editor'];if(!_0x24b5b4['plugins']['has']('HighlightEditing'))return;const _0x1e47f2=_0x24b5b4['plugins']['get']('TrackChangesEditing'),_0xc3ce16=_0x24b5b4['locale'];_0x1e47f2['enableDefaultAttributesIntegration']('highlight'),_0x1e47f2['descriptionFactory']['registerAttributeLabel']('highlight',St(_0xc3ce16,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x454627=this['editor'],_0x4709d6=_0x454627['locale'];_0x454627['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46dd32=>{if('formatInline'!=_0x46dd32['type'])return;const {data:_0x2628a5}=_0x46dd32;if(_0x2628a5&&'highlight'==_0x2628a5['commandName']){const _0x3cbcca=_0x4709d6['t'],_0x8b8195=_0x2628a5['commandParams'][0x0]['value'];if(_0x8b8195){const _0x369ff0=_0x454627['config']['get']('highlight.options')['find'](_0x530044=>_0x530044['model']==_0x8b8195);return{'type':'format','content':St(_0x4709d6,'*Set\x20highlight:*\x20%0',_0x3cbcca(_0x369ff0['title'])['toLowerCase']()),'color':{'value':_0x369ff0['color'],'title':_0x369ff0['title']}};}return{'type':'format','content':St(_0x4709d6,'*Remove\x20highlight*',St(_0x4709d6,'FORMAT_HIGHLIGHT'))};}});}},ce=class extends _0x335f48{['afterInit'](){const _0x4c51a0=this['editor'];if(!_0x4c51a0['plugins']['has']('HorizontalLineEditing'))return;_0x4c51a0['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5987c6=_0x4c51a0['plugins']['get']('TrackChangesEditing'),_0x1e0aab=_0x4c51a0['locale'];_0x5987c6['descriptionFactory']['registerElementLabel']('horizontalLine',_0x36d27b=>St(_0x1e0aab,'ELEMENT_HORIZONTAL_LINE',_0x36d27b));}},le=class extends _0x335f48{['afterInit'](){const _0x4d463f=this['editor'];if(!_0x4d463f['plugins']['has']('HtmlEmbed'))return;const _0x428d7b=_0x4d463f['plugins']['get']('TrackChangesEditing'),_0x5645a7=_0x4d463f['locale'];_0x428d7b['descriptionFactory']['registerElementLabel']('rawHtml',_0x34c557=>St(_0x5645a7,'ELEMENT_HTML_EMBED',_0x34c557)),_0x428d7b['enableDefaultAttributesIntegration']('htmlEmbed'),_0x428d7b['descriptionFactory']['registerDescriptionCallback'](_0x192a21=>{if('attribute'!=_0x192a21['type'])return;const {data:_0x140ccf}=_0x192a21;return _0x140ccf&&'value'==_0x140ccf['key']&&_0x192a21['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')?{'type':'format','content':St(_0x5645a7,'*Change\x20%0\x20content*',St(_0x5645a7,'ELEMENT_HTML_EMBED'))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49bbde=this['editor'],_0x39c782=_0x49bbde['locale'];_0x49bbde['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54cbb5=>{if('formatBlock'!=_0x54cbb5['type'])return;const {data:_0x4ea280}=_0x54cbb5;return _0x4ea280&&'htmlEmbed'==_0x4ea280['commandName']?{'type':'format','content':St(_0x39c782,'*Change\x20%0\x20content*',St(_0x39c782,'ELEMENT_HTML_EMBED'))}:void 0x0;});}},ue=class extends _0x335f48{['afterInit'](){const _0x459f0a=this['editor'];if(!_0x459f0a['plugins']['has']('ImageEditing'))return;const _0x433b56=_0x459f0a['plugins']['get']('TrackChangesEditing'),_0x422b0b=_0x459f0a['plugins']['get']('ImageUtils'),_0x427b16=_0x459f0a['locale'];_0x433b56['enableCommand']('insertImage'),_0x433b56['descriptionFactory']['registerElementLabel']('imageBlock',_0x55ce7f=>St(_0x427b16,'ELEMENT_IMAGE',_0x55ce7f)),_0x433b56['descriptionFactory']['registerElementLabel']('imageInline',_0x3fc752=>St(_0x427b16,'ELEMENT_INLINE_IMAGE',_0x3fc752)),_0x433b56['descriptionFactory']['registerElementLabel']('caption',()=>St(_0x427b16,'ELEMENT_CAPTION')),_0x459f0a['plugins']['has']('ImageUploadEditing')&&_0x433b56['enableCommand']('uploadImage'),_0x459f0a['plugins']['has']('ImageBlockEditing')&&_0x459f0a['plugins']['has']('ImageInlineEditing')&&(_0x433b56['enableCommand']('imageTypeInline',(_0xf40653,_0x4fe04a)=>{const _0x5e5447=_0x422b0b['getClosestSelectedImageElement'](_0x459f0a['model']['document']['selection']);_0x459f0a['model']['change'](()=>{_0x433b56['markBlockFormat'](_0x5e5447,{'commandName':'imageTypeInline','commandParams':[_0x4fe04a]},[],'convertBlockImageToInline');});}),_0x433b56['enableCommand']('imageTypeBlock',(_0x5a0227,_0x1a5d4b)=>{_0x459f0a['model']['change'](_0x397b96=>{let _0x9b93=_0x422b0b['getClosestSelectedImageElement'](_0x459f0a['model']['document']['selection']),_0x501e1e=_0x397b96['createRangeOn'](_0x9b93);const _0x3fe0d2=st['fromPosition'](_0x501e1e['start'],'toPrevious'),_0x2c83ff=st['fromPosition'](_0x501e1e['end'],'toNext');_0x433b56['forceDefaultExecution'](()=>_0x5a0227(_0x1a5d4b)),_0x9b93=_0x422b0b['getClosestSelectedImageElement'](_0x459f0a['model']['document']['selection']),_0x501e1e=_0x397b96['createRangeOn'](_0x9b93);const _0x4a8a33=_0x397b96['createRange'](_0x3fe0d2,_0x2c83ff);_0x3fe0d2['detach'](),_0x2c83ff['detach'](),_0x433b56['markBlockFormat'](_0x9b93,{'commandName':'imageTypeInline','commandParams':[_0x1a5d4b]},[],'convertInlineImageToBlock'),_0x4a8a33['start']['isBefore'](_0x501e1e['start'])&&_0x433b56['markInsertion'](_0x397b96['createRange'](_0x4a8a33['start'],_0x501e1e['start']),'convertInlineImageToBlock'),_0x501e1e['end']['isBefore'](_0x4a8a33['end'])&&_0x433b56['markInsertion'](_0x397b96['createRange'](_0x501e1e['end'],_0x4a8a33['end']),'convertInlineImageToBlock');});}),_0x433b56['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x433b56['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x433b56['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x433b56['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x433b56['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x433b56['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1e1f5b])=>{const _0x27b3e4=_0x433b56['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1ea134=_0x1e1f5b['start'],_0x40504c=_0x1e1f5b['end'];const _0x2b836e=_0x459f0a['model']['schema']['getNearestSelectionRange'](_0x1ea134,'backward'),_0x2664b3=_0x459f0a['model']['schema']['getNearestSelectionRange'](_0x40504c,'forward');_0x2b836e['isCollapsed']&&(_0x1ea134=_0x2b836e['start']),_0x2664b3['isCollapsed']&&(_0x40504c=_0x2664b3['end']),_0x27b3e4([_0x459f0a['model']['createRange'](_0x1ea134,_0x40504c)]);}),_0x433b56['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5143d4),_0x433b56['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5143d4)),_0x459f0a['plugins']['has']('ImageCaptionEditing')&&(_0x433b56['enableCommand']('toggleImageCaption',(_0x882f8d,_0x204e9c)=>{const _0x3baeab=_0x459f0a['plugins']['get']('ImageCaptionUtils');let _0x14dad7=_0x422b0b['getClosestSelectedImageElement'](_0x459f0a['model']['document']['selection']),_0x33dfd2=_0x3baeab['getCaptionFromImageModelElement'](_0x14dad7);_0x459f0a['model']['change'](()=>{if(_0x33dfd2)return void _0x433b56['markDeletion'](_0x459f0a['model']['createRangeOn'](_0x33dfd2));const _0x1c04ac=_0x422b0b['isBlockImage'](_0x14dad7);_0x882f8d(_0x204e9c),_0x14dad7=_0x422b0b['getClosestSelectedImageElement'](_0x459f0a['model']['document']['selection']),_0x33dfd2=_0x3baeab['getCaptionFromImageModelElement'](_0x14dad7),_0x433b56['markInsertion'](_0x459f0a['model']['createRangeOn'](_0x33dfd2),_0x1c04ac?null:'imageCaption');});}),_0x433b56['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5143d4));const _0x1965a8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xbf24d9(_0x1b35ac,_0x4f8749){const _0x35d20c=_0x1965a8['findIndex'](({type:_0x4e90f5,subType:_0x51704a})=>_0x1b35ac['type']==_0x4e90f5&&_0x1b35ac['subType']==_0x51704a),_0x209e5d=_0x1965a8['findIndex'](({type:_0x214199,subType:_0x3a9478})=>_0x4f8749['type']==_0x214199&&_0x4f8749['subType']==_0x3a9478);if(_0x35d20c<0x0||_0x209e5d<0x0)return!0x1;const _0x22b512=_0x1b35ac['getFirstRange'](),_0x235a71=_0x4f8749['getFirstRange']();if((0x0==_0x35d20c||0x1==_0x35d20c)&&0x2==_0x209e5d&&_0x22b512['isIntersecting'](_0x235a71))return!0x0;if(0x2==_0x35d20c&&0x3==_0x209e5d){const _0x4a1652=_0x433b56['_findSuggestions'](_0x22b512,'insertion')['filter'](({suggestion:_0x7be618,meta:_0x151eb0})=>_0x151eb0['isOwn']&&'convertInlineImageToBlock'==_0x7be618['subType']);if(_0x4a1652['length']>0x1&&_0x235a71['end']['isEqual'](_0x22b512['start']))return!0x0;if(0x1==_0x4a1652['length']&&(_0x22b512['start']['isEqual'](_0x235a71['end'])||_0x22b512['end']['isEqual'](_0x235a71['start'])))return!0x0;}if(0x3==_0x35d20c&&0x3==_0x209e5d&&_0x22b512['start']['isBefore'](_0x235a71['start'])){const _0x596d50=_0x22b512['end']['nodeAfter'],_0x244dce=_0x235a71['start']['nodeBefore'];return _0x422b0b['isBlockImage'](_0x596d50)&&_0x596d50===_0x244dce;}return!0x1;}function _0x5143d4(_0x154838,_0x18ef12){return _0xbf24d9(_0x154838,_0x18ef12)?[_0x154838,_0x18ef12]:_0xbf24d9(_0x18ef12,_0x154838)?[_0x18ef12,_0x154838]:null;}_0x459f0a['plugins']['has']('ImageResize')&&(_0x433b56['enableDefaultAttributesIntegration']('resizeImage'),_0x433b56['descriptionFactory']['registerAttributeLabel']('resizedWidth',St(_0x427b16,'FORMAT_IMAGE_SIZE'))),_0x459f0a['plugins']['has']('ImageTextAlternativeEditing')&&_0x433b56['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x459f0a['plugins']['has']('PictureEditing')&&_0x433b56['descriptionFactory']['registerDescriptionCallback'](_0x3310b3=>{if('attribute'!=_0x3310b3['type'])return;const {data:_0x47ab4b}=_0x3310b3;return _0x47ab4b&&'sources'==_0x47ab4b['key']?{'type':'format','content':''}:void 0x0;}),_0x459f0a['plugins']['has']('ImageSizeAttributes')&&_0x433b56['descriptionFactory']['registerDescriptionCallback'](_0x47c8b2=>{if('attribute'!=_0x47c8b2['type'])return;const {data:_0x903ac6}=_0x47c8b2;return!_0x903ac6||'width'!=_0x903ac6['key']&&'height'!=_0x903ac6['key']?void 0x0:{'type':'format','content':''};}),_0x433b56['descriptionFactory']['registerDescriptionCallback'](_0x442383=>{if(_0x1965a8['find'](({type:_0x4bb815,subType:_0x330b89})=>_0x442383['type']==_0x4bb815&&_0x442383['subType']==_0x330b89))return _0x442383['previous']?{}:void 0x0;}),_0x433b56['descriptionFactory']['registerDescriptionCallback'](_0x39697b=>{if('insertion'==_0x39697b['type']||'deletion'==_0x39697b['type']){const _0x561fce=_0x39697b['getContainedElement']();if(_0x561fce&&_0x561fce['is']('element','caption'))return{'type':'insertion'==_0x39697b['type']?'addObject':'removeObject','element':_0x561fce,'quantity':0x1};}}),_0x433b56['descriptionFactory']['registerDescriptionCallback'](_0x1d1868=>'formatBlock'==_0x1d1868['type']&&'convertInlineImageToBlock'==_0x1d1868['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1d1868['type']&&'convertBlockImageToInline'==_0x1d1868['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x433b56['descriptionFactory']['registerDescriptionCallback'](_0x52cb2e=>{if('attribute'!=_0x52cb2e['type'])return;const {data:_0x29b94b}=_0x52cb2e;if(!_0x29b94b||'alt'!=_0x29b94b['key'])return;const _0x7ad3f0=_0x29b94b['newValue'];return _0x7ad3f0?{'type':'format','content':St(_0x427b16,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x7ad3f0+'\x22')}:{'type':'format','content':St(_0x427b16,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18caf1=this['editor'],_0x8a8c56=_0x18caf1['locale'];_0x18caf1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x401104=>{if('formatBlock'!=_0x401104['type']&&'formatInline'!=_0x401104['type'])return;const {data:_0x3ab5a9}=_0x401104;if(_0x3ab5a9){if('imageTextAlternative'==_0x3ab5a9['commandName']){const _0x596ce4=_0x3ab5a9['commandParams'][0x0]['newValue'];return _0x596ce4?{'type':'format','content':St(_0x8a8c56,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x596ce4+'\x22')}:{'type':'format','content':St(_0x8a8c56,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3ab5a9['commandName']){const _0x3a8589=_0x3ab5a9['commandParams'][0x0]['width'];return _0x3a8589?{'type':'format','content':St(_0x8a8c56,'*Set\x20image\x20width:*\x20%0',_0x3a8589)}:{'type':'format','content':St(_0x8a8c56,'*Reset\x20image\x20width*')};}}});}},de=class extends _0x335f48{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1c3c01=this['editor']['locale'],_0x5b0c49=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b0c49['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5b0c49['descriptionFactory']['registerDescriptionCallback'](_0x2c4436=>{if('attribute'!=_0x2c4436['type'])return;const {data:_0x31c658}=_0x2c4436;return _0x31c658&&'src'==_0x31c658['key']?_0x31c658['newValue']&&_0x31c658['oldValue']?{'type':'format','content':St(_0x1c3c01,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2a68f5=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a68f5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2a68f5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a68f5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2a68f5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc80504=this['editor'],_0x345c10=_0xc80504['locale'];_0xc80504['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17f1b9=>{if('formatBlock'!=_0x17f1b9['type']&&'formatInline'!=_0x17f1b9['type'])return;const {data:_0x3861dd}=_0x17f1b9;return _0x3861dd&&'replaceImageSource'==_0x3861dd['commandName']?{'type':'format','content':St(_0x345c10,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},he=class extends _0x335f48{['afterInit'](){const _0x4a0d09=this['editor'];if(!_0x4a0d09['plugins']['has']('ImageStyleEditing'))return;const _0x1189dd=_0x4a0d09['plugins']['get']('TrackChangesEditing'),_0x58ef5e=_0x4a0d09['plugins']['get']('ImageUtils'),_0x2a85c0={};_0x1189dd['enableCommand']('imageStyle',(_0xfd5310,_0x1892e9)=>{const _0x2ba2ae=_0x4a0d09['plugins']['get']('Users')['me'],_0x55efe8=_0x4a0d09['commands']['get']('imageStyle');let _0x339ba4=_0x58ef5e['getClosestSelectedImageElement'](_0x4a0d09['model']['document']['selection']),_0x34e7f4=_0x4a0d09['model']['createRangeOn'](_0x339ba4),_0x56225f=_0x55efe8['value'];if(_0x56225f==_0x1892e9['value'])return;if(_0x1892e9['value']&&_0x58ef5e['isInlineImage'](_0x339ba4)&&!_0x55efe8['isStyleEnabled'](_0x1892e9['value']))return;const _0x23195a={'commandName':'imageStyle','commandParams':[_0x1892e9],'formatGroupId':_0x37c418()};_0x4a0d09['model']['change'](()=>{if(_0x1189dd['getSuggestions']()['filter'](_0x3116af=>_0x3116af['isInContent']&&_0x2ba2ae==_0x3116af['author']&&('formatBlock'==_0x3116af['type']||'formatInline'==_0x3116af['type'])&&('imageStylePreApply'==_0x3116af['subType']||'imageStylePostApply'==_0x3116af['subType'])&&_0x3116af['getFirstRange']()['isEqual'](_0x34e7f4))['forEach'](_0x3be6ff=>_0x1189dd['discardSuggestion'](_0x3be6ff['head'])),_0x339ba4=_0x58ef5e['getClosestSelectedImageElement'](_0x4a0d09['model']['document']['selection']),_0x34e7f4=_0x4a0d09['model']['createRangeOn'](_0x339ba4),_0x55efe8['refresh'](),_0x4a0d09['commands']['get']('imageTypeInline')['refresh'](),_0x4a0d09['commands']['get']('imageTypeBlock')['refresh'](),_0x56225f=_0x55efe8['value'],_0x56225f!=_0x1892e9['value'])return _0x58ef5e['isInlineImage'](_0x339ba4)&&_0x55efe8['shouldConvertImageType'](_0x1892e9['value'],_0x339ba4)?(_0xfd5310({..._0x1892e9,'setImageSizes':!0x1}),_0x339ba4=_0x58ef5e['getClosestSelectedImageElement'](_0x4a0d09['model']['document']['selection']),void _0x1189dd['markBlockFormat'](_0x339ba4,{..._0x23195a,'commandReversedParams':[{'value':_0x56225f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x58ef5e['isBlockImage'](_0x339ba4)?_0x1189dd['markBlockFormat'](_0x339ba4,_0x23195a,[],'imageStylePostApply'):_0x1189dd['markInlineFormat'](_0x34e7f4,_0x23195a,'imageStylePostApply'));});});for(const _0x172a09 of _0x4a0d09['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2a85c0[_0x172a09['name']]=_0x172a09['title']['toLowerCase']();_0x1189dd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1189dd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1189dd['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1189dd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x51ccb5])=>{_0x58ef5e['setImageNaturalSizeAttributes'](_0x51ccb5['getContainedElement']());}),_0x1189dd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x84cb2c,_0x5da170)=>{_0x1189dd['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x84cb2c,{'commandName':_0x5da170['commandName'],'commandParams':_0x5da170['commandReversedParams']});}),_0x1189dd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x12b3c1,_0x59bf98){return _0x5d1558(_0x12b3c1,_0x59bf98)?[_0x12b3c1,_0x59bf98]:_0x5d1558(_0x59bf98,_0x12b3c1)?[_0x59bf98,_0x12b3c1]:null;});const _0x440530=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5d1558(_0xd4523f,_0x3bd8a5){const _0x74d055=_0x440530['findIndex'](({type:_0x23507e,subType:_0xf20119})=>_0xd4523f['type']==_0x23507e&&_0xd4523f['subType']==_0xf20119),_0x11cec1=_0x440530['findIndex'](({type:_0x3d20af,subType:_0x1a81b1})=>_0x3bd8a5['type']==_0x3d20af&&_0x3bd8a5['subType']==_0x1a81b1);if(_0x74d055<0x0||_0x11cec1<0x0)return!0x1;const _0xe2863=_0xd4523f['getFirstRange'](),_0x2e2a5a=_0x3bd8a5['getFirstRange']();if((0x0==_0x74d055||0x1==_0x74d055)&&0x2==_0x11cec1&&_0xe2863['isIntersecting'](_0x2e2a5a))return!0x0;if(0x2==_0x74d055&&0x3==_0x11cec1){const _0x3b47a8=_0x1189dd['_findSuggestions'](_0xe2863,'insertion')['filter'](({suggestion:_0x41ab8c,meta:_0x5040b5})=>_0x5040b5['isOwn']&&'convertInlineImageToBlock'==_0x41ab8c['subType']);if(_0x3b47a8['length']>0x1&&_0x2e2a5a['end']['isEqual'](_0xe2863['start']))return!0x0;if(0x1==_0x3b47a8['length']&&(_0xe2863['start']['isEqual'](_0x2e2a5a['end'])||_0xe2863['end']['isEqual'](_0x2e2a5a['start'])))return!0x0;}if(0x3==_0x74d055&&0x3==_0x11cec1&&_0xe2863['start']['isBefore'](_0x2e2a5a['start'])){const _0x3be2c5=_0xe2863['end']['nodeAfter'],_0x158c2c=_0x2e2a5a['start']['nodeBefore'];return _0x58ef5e['isBlockImage'](_0x3be2c5)&&_0x3be2c5===_0x158c2c;}return!0x1;}_0x4a0d09['model']['document']['registerPostFixer'](()=>{let _0x5d88e4=!0x1;const _0xb8f729=Array['from'](_0x4a0d09['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x27a882,data:_0x127b76}of _0xb8f729){const {group:_0x5ba9ae,type:_0x2eca84,subType:_0x569026,id:_0x530277}=tt(_0x27a882);if('suggestion'==_0x5ba9ae&&_0x1189dd['hasSuggestion'](_0x530277)){if('formatBlock'==_0x2eca84&&('imageStylePreApply'==_0x569026||'imageStylePostApply'==_0x569026)){const _0x12d78f=_0x1189dd['getSuggestion'](_0x530277);if(_0x127b76['newRange']){const _0x363cdb=_0x12d78f['getFirstRange']()['getContainedElement']();if(_0x58ef5e['isBlockImage'](_0x363cdb))continue;_0x1189dd['discardSuggestion'](_0x12d78f),_0x5d88e4=!0x0;}}if('insertion'==_0x2eca84&&'imageCaption'==_0x569026&&!_0x127b76['newRange']){const _0x3db12f=_0x1189dd['getSuggestion'](_0x530277);_0x3db12f['next']&&_0x3db12f['next']['isInContent']&&(_0x1189dd['discardSuggestion'](_0x3db12f['next']),_0x5d88e4=!0x0);}}}return _0x5d88e4;}),this['_registerLegacyDescription'](_0x2a85c0);}['_registerLegacyDescription'](_0x24d2b1){const _0x363393=this['editor'],_0x4d2d47=_0x363393['locale'];_0x363393['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ebeb6=>{if('formatBlock'!=_0x5ebeb6['type']&&'formatInline'!=_0x5ebeb6['type'])return;const {data:_0x5a526e}=_0x5ebeb6;if(!_0x5a526e||'imageStyle'!=_0x5a526e['commandName'])return;const _0x501519=_0x5a526e['commandParams'][0x0]['value'];return _0x2ca003('side'===_0x501519?St(_0x4d2d47,'FORMAT_SIDE_IMAGE'):_0x24d2b1[_0x501519]||_0x501519);function _0x2ca003(_0xded39b){return{'type':'format','content':St(_0x4d2d47,'*Format:*\x20%0',_0xded39b)};}});}},ge=class extends _0x335f48{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x28aaa4){super(_0x28aaa4),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x487b45=this['editor'],_0x41fb54=_0x487b45['commands']['get']('importWord'),_0x2a32c1=_0x487b45['commands']['get']('trackChanges');_0x41fb54&&(_0x41fb54['on']('execute',(_0x63ed23,[,_0x4c9422])=>{this['_trackChangesValueDuringImport']=_0x2a32c1['value'],_0x4c9422['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x41fb54,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x41fb54,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2a32c1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x487b45['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2a4399,_0x1a2c25){const {suggestions:_0x5450de}=_0x1a2c25,_0x52d91f=this['editor']['commands']['get']('trackChanges'),_0x5f3b8c=_0x52d91f['value'];this['_trackChangesValueDuringImport']!==_0x5f3b8c&&(_0x52d91f['execute'](),this['_trackChangesExecuted']=!0x0),_0x5450de&&_0x5450de['forEach'](({id:_0x530fff,type:_0x43cc43,author:_0x457283,created_at:_0x4bd5e2})=>{const _0x51499c={'id':_0x530fff,'type':_0x43cc43,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x457283,'createdAt':_0x4bd5e2?new Date(_0x4bd5e2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x51499c);});}},fe=class extends _0x335f48{['afterInit'](){const _0x5cfe3a=this['editor'],_0x46280e=_0x5cfe3a['plugins']['get']('TrackChangesEditing');if(_0x5cfe3a['plugins']['has']('IndentEditing')&&(_0x46280e['enableCommand']('indent'),_0x46280e['enableCommand']('outdent')),_0x5cfe3a['plugins']['has']('IndentBlock')){for(const _0x4c0cb3 of['indentBlock','outdentBlock'])_0x46280e['enableDefaultAttributesIntegration'](_0x4c0cb3);if(_0x5cfe3a['plugins']['has']('ListEditing')){for(const _0x50cb31 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x46280e['enableDefaultAttributesIntegration'](_0x50cb31);}}const _0x32a536=_0x5cfe3a['locale'];_0x46280e['descriptionFactory']['registerAttributeLabel']('blockIndent',St(_0x32a536,'FORMAT_INDENT')),_0x46280e['descriptionFactory']['registerAttributeLabel']('blockIndentList',St(_0x32a536,'FORMAT_INDENT')),_0x46280e['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',St(_0x32a536,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59f38a=this['editor'],_0x4f1d70=_0x59f38a['locale'],_0xbee5b6=_0x59f38a['plugins']['get']('TrackChangesEditing');_0xbee5b6['descriptionFactory']['registerDescriptionCallback'](_0x8bc184=>{if('formatBlock'!=_0x8bc184['type'])return;const {data:_0x274795}=_0x8bc184;if(!_0x274795)return;if('indentBlock'!=_0x274795['commandName']&&'outdentBlock'!=_0x274795['commandName'])return;const _0xa4704d=_0x8bc184['getItems']()[0x0],_0x2b2224=_0xbee5b6['descriptionFactory']['getItemLabel'](_0xa4704d);return'indentBlock'==_0x274795['commandName']?{'type':'format','content':St(_0x4f1d70,'*Indent:*\x20%0',_0x2b2224)}:'outdentBlock'==_0x274795['commandName']?{'type':'format','content':St(_0x4f1d70,'*Outdent:*\x20%0',_0x2b2224)}:void 0x0;});}},me=class extends _0x335f48{static get['requires'](){return[gt];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Ee=class extends _0x335f48{['afterInit'](){const _0x3a136e=this['editor'];if(!_0x3a136e['plugins']['has']('LinkEditing'))return;const _0x220b27=_0x3a136e['plugins']['get']('TrackChangesEditing'),_0x3aa8be=_0x3a136e['commands']['get']('link');_0x220b27['enableDefaultAttributesIntegration']('link'),_0x220b27['enableDefaultAttributesIntegration']('unlink');for(const _0x4a0040 of _0x3aa8be['manualDecorators'])_0x220b27['descriptionFactory']['registerAttributeLabel'](_0x4a0040['id'],'link\x20('+_0x4a0040['label']['toLowerCase']()+')');_0x220b27['descriptionFactory']['registerDescriptionCallback'](_0x2a1e26=>{if('attribute'!=_0x2a1e26['type'])return;const {data:_0x3e581b}=_0x2a1e26;if(!_0x3e581b||'linkHref'!=_0x3e581b['key'])return;const _0x7d2ad2=_0x3e581b['newValue'],_0x1068ed=_0x3a136e['locale'];return{'type':'format','content':null==_0x7d2ad2?St(_0x1068ed,'*Remove\x20link*'):St(_0x1068ed,'*Set\x20link:*\x20%0','\x22'+_0x7d2ad2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3316d1=this['editor'],_0x43a464=_0x3316d1['locale'];_0x3316d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a76a3=>{if('formatInline'!=_0x2a76a3['type'])return;const {data:_0xd974f0}=_0x2a76a3;if(_0xd974f0){if('link'==_0xd974f0['commandName']){const _0x256f6c=_0xd974f0['commandParams'][0x0];return{'type':'format','content':St(_0x43a464,'*Set\x20link:*\x20%0','\x22'+_0x256f6c+'\x22')};}return'unlink'==_0xd974f0['commandName']?{'type':'format','content':St(_0x43a464,'*Remove\x20link*')}:void 0x0;}});}},Te=class extends _0x335f48{['afterInit'](){const _0x43ee05=this['editor'],_0x22c609=_0x43ee05['locale'];if(!_0x43ee05['plugins']['has']('LegacyListEditing'))return;const _0x3d543e=_0x43ee05['plugins']['get']('TrackChangesEditing'),_0x1b9aeb=_0x43ee05['plugins']['has']('LegacyTodoListEditing');function _0x55cee1(_0x214779){return()=>{const _0x3dc5df=_0x43ee05['model']['document']['selection'],_0x338153=_0x43ee05['commands']['get'](_0x214779);if(_0x338153['value'])return void _0x43ee05['execute']('paragraph',{});const _0xe237ec=_0x214779['slice'](0x0,-0x4),_0x22b4ee=function(_0x2d32cb,_0x418040,_0xbdedec){let _0x1090c5=Array['from'](_0x2d32cb)['filter'](_0x1e80c7=>function(_0x485824,_0x47216e){return _0x47216e['checkChild'](_0x485824['parent'],'listItem')&&!_0x47216e['isObject'](_0x485824);}(_0x1e80c7,_0xbdedec));_0x1090c5=_0x1090c5['filter'](_0x3ace03=>!_0x3ace03['is']('element','listItem')||_0x3ace03['getAttribute']('listType')!=_0x418040);const _0x2b416c=new Set();for(const _0x5b930d of _0x1090c5)_0x5b930d['is']('element','listItem')?_0x2b416c['add'](_e(_0x5b930d)):_0x2b416c['add'](_0x5b930d);return Array['from'](_0x2b416c);}(_0x3dc5df['getSelectedBlocks'](),_0xe237ec,_0x43ee05['model']['schema']);_0x43ee05['model']['change'](()=>{for(const _0x26fdcf of _0x22b4ee)_0x3d543e['markBlockFormat'](_0x26fdcf,{'commandName':_0x214779,'commandParams':[{'forceValue':!_0x338153['value']}],'formatGroupId':'blockName'},pe(_0x26fdcf));});};}function _0x29b330(_0x1c4457){return()=>{const _0x4a3591=function(_0x5d7cd9){let _0x14d2f8=Array['from'](_0x5d7cd9);const _0x1dee49=_0x14d2f8['findIndex'](_0x567afa=>'listItem'!=_0x567afa['name']);return _0x1dee49>-0x1&&(_0x14d2f8=_0x14d2f8['slice'](0x0,_0x1dee49)),_0x14d2f8;}(_0x43ee05['model']['document']['selection']['getSelectedBlocks']()),_0x25e48d=_0x43ee05['model']['createRange'](_0x43ee05['model']['createPositionAt'](_0x4a3591[0x0],'before'),_0x43ee05['model']['createPositionAt'](_0x4a3591[_0x4a3591['length']-0x1],'end'));_0x43ee05['model']['change'](()=>{_0x3d543e['markBlockFormat'](_0x25e48d,{'commandName':_0x1c4457,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4f31f5){const _0xf148f6=new Set();for(const _0x4b5aec of _0x4f31f5){let _0x194f44=_0x4b5aec['nextSibling'];for(;_0x194f44&&_0x194f44['getAttribute']('listIndent')>_0x4b5aec['getAttribute']('listIndent');)_0xf148f6['add'](_0x194f44),_0x194f44=_0x194f44['nextSibling'];}return Array['from'](_0xf148f6);}(_0x4a3591));});};}_0x3d543e['enableCommand']('numberedList',_0x55cee1('numberedList')),_0x3d543e['enableCommand']('bulletedList',_0x55cee1('bulletedList')),_0x1b9aeb&&_0x3d543e['enableCommand']('todoList',_0x55cee1('todoList')),_0x3d543e['enableCommand']('indentList',_0x29b330('indentList')),_0x3d543e['enableCommand']('outdentList',_0x29b330('outdentList')),_0x1b9aeb&&_0x3d543e['enableCommand']('checkTodoList',()=>{const _0x19ca98=_0x43ee05['commands']['get']('checkTodoList'),_0x1d52b5=Array['from'](_0x19ca98['_selectedElements']);_0x1d52b5['filter'](_0x40a67b=>_0x40a67b['getAttribute']('todoListChecked')!=_0x19ca98['value']),_0x43ee05['model']['change'](()=>{for(const _0x27ceb8 of _0x1d52b5)_0x3d543e['markBlockFormat'](_0x27ceb8,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x19ca98['value']}]});});}),_0x3d543e['descriptionFactory']['registerElementLabel']('listItem',_0xdaf727=>St(_0x22c609,'ELEMENT_LIST_ITEM',_0xdaf727)),_0x3d543e['descriptionFactory']['registerDescriptionCallback'](_0x251824=>{if('formatBlock'!=_0x251824['type']&&'formatInline'!=_0x251824['type'])return;const {data:_0x195aac}=_0x251824;if(_0x195aac){if('numberedList'==_0x195aac['commandName']||'bulletedList'==_0x195aac['commandName']||'todoList'==_0x195aac['commandName'])switch(_0x195aac['commandName']['replace']('List','')){case'bulleted':return _0x239c0d(St(_0x22c609,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x239c0d(St(_0x22c609,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x239c0d(St(_0x22c609,'ELEMENT_TODO_LIST'));}if('indentList'==_0x195aac['commandName'])return{'type':'format','content':St(_0x22c609,'*Indent:*\x20%0',St(_0x22c609,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x195aac['commandName'])return{'type':'format','content':St(_0x22c609,'*Outdent:*\x20%0',St(_0x22c609,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x195aac['commandName'])return _0x195aac['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x22c609,'*Check\x20item*')}:{'type':'format','content':St(_0x22c609,'*Uncheck\x20item*')};}function _0x239c0d(_0x4ffb64){return{'type':'format','content':St(_0x22c609,'*Change\x20to:*\x20%0',_0x4ffb64)};}});}};function _e(_0x3ab07d){const _0x3afb38=_0x3ab07d['getAttribute']('listIndent');if(0x0==_0x3afb38)return _0x3ab07d;let _0x5adf5b=_0x3ab07d;for(;_0x3ab07d['previousSibling']&&_0x3ab07d['previousSibling']['is']('element','listItem');){const _0x2f82aa=_0x3ab07d['previousSibling']['getAttribute']('listIndent');if(_0x2f82aa==_0x3afb38)_0x5adf5b=_0x3ab07d['previousSibling'];else{if(_0x2f82aa<_0x3afb38)break;}_0x3ab07d=_0x3ab07d['previousSibling'];}return _0x5adf5b;}function pe(_0x2af2f2){const _0x335ba2=[];if(_0x2af2f2['is']('element','listItem')&&_0x2af2f2['getAttribute']('listIndent')>0x0){let _0x10a151=_0x2af2f2['nextSibling'];for(;_0x10a151&&'listItem'==_0x10a151['name']&&_0x10a151['getAttribute']('listIndent')==_0x2af2f2['getAttribute']('listIndent');)_0x335ba2['push'](_0x10a151),_0x10a151=_0x10a151['nextSibling'];}return _0x335ba2;}var Le=class extends _0x335f48{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x43c68f=this['editor']['config']['get']('list.properties'),_0x156111=this['editor']['plugins']['get']('TrackChangesEditing');_0x43c68f['styles']&&_0x156111['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x43c68f['reversed']&&_0x156111['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x43c68f['startIndex']&&_0x156111['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x156111['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5d178a,_0x5e5eef={}){const _0x325f7c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f3689=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x325f7c['markMultiRangeBlockFormat'](_0x1f3689,{'commandName':'listStyle','commandParams':[{'type':_0x5e5eef['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x39b71,_0x1bc781={}){const _0x22e422=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42f1ad=this['_getSuggestionBlocks'](_0x238afe=>_0x238afe['is']('element','listItem')&&'numbered'===_0x238afe['getAttribute']('listType'));if(_0x42f1ad['length']<0x1)return;const _0x3294c2=_0x42f1ad['map'](_0x17a986=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x17a986,'before'),this['editor']['model']['createPositionAt'](_0x17a986,0x0)));this['editor']['model']['change'](()=>{_0x22e422['markMultiRangeBlockFormat'](_0x3294c2,{'commandName':'listReversed','commandParams':[{'reversed':_0x1bc781['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2dc7be,_0x34be11={}){const _0x35a738=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8d5be4=this['_getSuggestionBlocks'](_0x5bfd00=>_0x5bfd00['is']('element','listItem')&&'numbered'===_0x5bfd00['getAttribute']('listType'));if(_0x8d5be4['length']<0x1)return;const _0x1f5a11=_0x8d5be4['map'](_0x30e8e6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x30e8e6,'before'),this['editor']['model']['createPositionAt'](_0x30e8e6,0x0)));this['editor']['model']['change'](()=>{_0x35a738['markMultiRangeBlockFormat'](_0x1f5a11,{'commandName':'listStart','commandParams':[{'startIndex':_0x34be11['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x57eeb4){if('formatBlock'!=_0x57eeb4['type']&&'formatInline'!=_0x57eeb4['type'])return;const _0x46b711=this['editor']['locale'],{data:_0x406cfb}=_0x57eeb4;if(!_0x406cfb)return;let _0x459d50,_0x5a7bda;switch(_0x406cfb['commandName']){case'listStyle':_0x459d50='*Change\x20to:*\x20%0',_0x5a7bda={'type':'format','content':St(_0x46b711,_0x459d50,St(_0x46b711,this['_getTranslationKeyForListStyle'](_0x406cfb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x459d50=_0x406cfb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5a7bda={'type':'format','content':St(_0x46b711,_0x459d50)};break;case'listStart':_0x459d50='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5a7bda={'type':'format','content':St(_0x46b711,_0x459d50,_0x406cfb['commandParams'][0x0]['startIndex'])};}return _0x5a7bda;}['_getSuggestionBlocksForListStyle'](){const _0x4c2318=this['editor']['plugins']['get']('LegacyListUtils');let _0x3c55d3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3c55d3[0x0]?.['is']('element','listItem')&&_0x3c55d3['unshift'](..._0x4c2318['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3c55d3[_0x3c55d3['length']-0x1]?.['is']('element','listItem')&&_0x3c55d3['push'](..._0x4c2318['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3c55d3=[...new Set(_0x3c55d3)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3c55d3=_0x3c55d3['filter'](_0x236be2=>_0x236be2['is']('element','listItem'))),_0x3c55d3;}['_getSuggestionBlocks'](_0x4c8e3c){const _0x335b87=this['editor']['plugins']['get']('LegacyListUtils');let _0x5e79b3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4c8e3c)['map'](_0x3de352=>{const _0x48a7f0=this['editor']['model']['createPositionAt'](_0x3de352,0x0);return[..._0x335b87['getSiblingNodes'](_0x48a7f0,'backward'),..._0x335b87['getSiblingNodes'](_0x48a7f0,'forward')];})['flat']();return _0x5e79b3=[...new Set(_0x5e79b3)],_0x5e79b3;}['_getTranslationKeyForListStyle'](_0x4a0617){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4a0617)||'default')['toUpperCase']()+'_LIST_'+_0x4a0617['toUpperCase']()['replace'](/-/g,'_');}},Ie=class extends _0x335f48{['afterInit'](){const _0x364825=this['editor'];if(!_0x364825['plugins']['has']('MediaEmbedEditing'))return;const _0x29a8b8=_0x364825['plugins']['get']('TrackChangesEditing'),_0x157d49=_0x364825['locale'];_0x29a8b8['enableCommand']('mediaEmbed'),_0x29a8b8['descriptionFactory']['registerElementLabel']('media',_0x4035e7=>St(_0x157d49,'ELEMENT_MEDIA',_0x4035e7)),_0x364825['plugins']['has']('MediaEmbedResizeEditing')&&(_0x29a8b8['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x29a8b8['descriptionFactory']['registerDescriptionCallback'](_0x27c64c=>{if('attribute'!=_0x27c64c['type'])return;const {data:_0x230111}=_0x27c64c;if(!_0x230111||'resizedWidth'!=_0x230111['key'])return;const _0x32df85=_0x27c64c['getContainedElement']();return _0x32df85&&_0x32df85['is']('element','media')?{'type':'format','content':St(_0x157d49,'*Set\x20format:*\x20%0',St(_0x157d49,'FORMAT_MEDIA_SIZE'))}:void 0x0;}));}},Ae=class extends _0x335f48{['afterInit'](){const _0x119f48=this['editor'];if(!_0x119f48['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x266b4f=_0x119f48['plugins']['get']('TrackChangesEditing'),_0xaab205=_0x119f48['locale'],_0x237560=_0x119f48['plugins']['get']('MediaEmbedStyleEditing'),_0x42d299={};for(const _0x208357 of _0x237560['normalizedStyles'])_0x42d299[_0x208357['name']]=_0x208357['title']['toLowerCase']();const _0xbb7b43=_0x237560['normalizedStyles']['find'](_0x18f729=>_0x18f729['isDefault'])?.['name'];_0x266b4f['enableCommand']('mediaStyle',(_0x1e0e7d,_0x51c673)=>{const _0x51f8b0=_0x119f48['plugins']['get']('Users')['me'],_0x468ba5=_0x119f48['commands']['get']('mediaStyle'),_0x28acfb=function(_0x4044e4){const _0x1128b0=_0x4044e4['model']['document']['selection']['getSelectedElement']();return _0x1128b0&&_0x1128b0['is']('element','media')?_0x1128b0:null;}(_0x119f48);if(!_0x28acfb)return;const _0x138174=_0x119f48['model']['createRangeOn'](_0x28acfb);let _0x29ac4c=_0x468ba5['value'];if(_0x29ac4c==_0x51c673['value'])return;const _0x2048b7={'commandName':'mediaStyle','commandParams':[_0x51c673],'formatGroupId':_0x37c418()};_0x119f48['model']['change'](()=>{_0x266b4f['getSuggestions']()['filter'](_0x3598f5=>_0x3598f5['isInContent']&&_0x51f8b0==_0x3598f5['author']&&'formatBlock'==_0x3598f5['type']&&'mediaStylePostApply'==_0x3598f5['subType']&&_0x3598f5['getFirstRange']()['isEqual'](_0x138174))['forEach'](_0x2b7723=>_0x266b4f['discardSuggestion'](_0x2b7723['head'])),_0x468ba5['refresh'](),_0x29ac4c=_0x468ba5['value'],_0x29ac4c!=_0x51c673['value']&&_0x266b4f['markBlockFormat'](_0x28acfb,{..._0x2048b7,'commandReversedParams':[{'value':'string'==typeof _0x29ac4c?_0x29ac4c:null}]},[],'mediaStylePostApply');});}),_0x266b4f['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x266b4f['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x3ee348,_0x365746)=>{_0x266b4f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3ee348,{'commandName':_0x365746['commandName'],'commandParams':_0x365746['commandReversedParams']});}),_0x266b4f['descriptionFactory']['registerDescriptionCallback'](_0x3c4dfb=>{if('formatBlock'!=_0x3c4dfb['type'])return;const {data:_0x452673}=_0x3c4dfb;if(!_0x452673||'mediaStyle'!=_0x452673['commandName'])return;const _0x301bbd=_0x452673['commandParams'][0x0]['value']||_0xbb7b43;return _0x301bbd?{'type':'format','content':St(_0xaab205,'*Format:*\x20%0',_0x42d299[_0x301bbd]||_0x301bbd)}:void 0x0;});}},be=class extends _0x335f48{['afterInit'](){const _0x228b88=this['editor'];_0x228b88['plugins']['has']('MentionEditing')&&_0x228b88['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ke=class extends _0x335f48{['afterInit'](){const _0x2a3c2f=this['editor'];if(!_0x2a3c2f['plugins']['has']('MergeFieldsEditing'))return;const _0x1ea447=_0x2a3c2f['plugins']['get']('TrackChangesEditing'),_0x54b69c=_0x2a3c2f['locale'];_0x1ea447['enableCommand']('insertMergeField'),_0x1ea447['enableCommand']('insertMergeFieldBlock'),_0x1ea447['enableCommand']('insertMergeFieldImage'),_0x1ea447['descriptionFactory']['registerElementLabel']('mergeField',_0x58407c=>St(_0x54b69c,'ELEMENT_MERGE_FIELD',_0x58407c)),_0x1ea447['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x14c7b9=>St(_0x54b69c,'ELEMENT_MERGE_FIELD',_0x14c7b9)),_0x1ea447['descriptionFactory']['registerDescriptionCallback'](_0x541e26=>{if('insertion'!=_0x541e26['type']&&'deletion'!=_0x541e26['type'])return;const _0x2d1852=_0x541e26['getContainedElement']();if(null==_0x2d1852)return;const _0xce886c=_0x2a3c2f['plugins']['get']('MergeFieldsEditing');let _0x14d18b;switch(_0xce886c['getMergeFieldType'](_0x2d1852)){case null:return;case'image':{const _0x4ce4c6=_0xce886c['unwrapAffixes'](_0x2d1852['getAttribute']('src'));_0x14d18b=_0xce886c['getLabel'](_0x4ce4c6)||_0x4ce4c6;break;}default:{const _0x2f1cbc=_0x2d1852['getAttribute']('id');_0x14d18b=_0xce886c['getLabel'](_0x2f1cbc)||_0x2f1cbc;break;}}return'insertion'==_0x541e26['type']?{'type':'insertion','content':St(_0x54b69c,'*Insert:*\x20%0','\x22'+_0x14d18b+'\x22\x20'+St(_0x54b69c,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':St(_0x54b69c,'*Remove:*\x20%0','\x22'+_0x14d18b+'\x22\x20'+St(_0x54b69c,'ELEMENT_MERGE_FIELD'))};});}},Ce=class extends _0x335f48{['afterInit'](){const _0x1bb480=this['editor'],_0x729104=_0x1bb480['plugins']['get']('TrackChangesEditing');_0x1bb480['plugins']['has']('MultiLevelList')&&(_0x729104['enableDefaultAttributesIntegration']('multiLevelList'),_0x729104['descriptionFactory']['registerDescriptionCallback'](_0x20528a=>this['handleDescriptions'](_0x20528a)));}['handleDescriptions'](_0x5eb878){const _0x8b6e6f=this['editor']['locale'],{data:_0x23652a}=_0x5eb878,_0x2e03f2={'type':'format','content':''};if(_0x23652a&&'listMarkerStyle'==_0x23652a['key']){if(!_0x23652a['oldValue'])return{'type':'format','content':St(_0x8b6e6f,'*Set\x20format:*\x20%0',St(_0x8b6e6f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x23652a['newValue']+')'};if(!_0x23652a['newValue']){let _0x1c7343=_0x5eb878['head'];for(;_0x1c7343;){if(_0x1c7343['data']&&'listType'==_0x1c7343['data']['key']&&_0x1c7343['data']['newValue'])return _0x2e03f2;_0x1c7343=_0x1c7343['next'];}return{'type':'format','content':St(_0x8b6e6f,'*Remove\x20format:*\x20%0',St(_0x8b6e6f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x23652a['oldValue']+')'};}}}},Re=class extends _0x335f48{['afterInit'](){const _0x40b7a1=this['editor'];if(!_0x40b7a1['plugins']['has']('PageBreakEditing'))return;_0x40b7a1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1a2e8f=_0x40b7a1['plugins']['get']('TrackChangesEditing'),_0xcfeb3c=_0x40b7a1['locale'];_0x1a2e8f['descriptionFactory']['registerElementLabel']('pageBreak',_0x373790=>St(_0xcfeb3c,'ELEMENT_PAGE_BREAK',_0x373790));}},Ne=class extends _0x335f48{['afterInit'](){const _0x27c0f1=this['editor'];if(!_0x27c0f1['plugins']['has']('Paragraph'))return;const _0x2fb16d=_0x27c0f1['locale'],_0x93b9e0=_0x27c0f1['plugins']['get']('TrackChangesEditing');_0x93b9e0['descriptionFactory']['registerElementLabel']('paragraph',_0x1bf32b=>St(_0x2fb16d,'ELEMENT_PARAGRAPH',_0x1bf32b)),_0x93b9e0['enableDefaultAttributesIntegration']('paragraph'),_0x93b9e0['enableCommand']('insertParagraph');const _0x1b0141=_0x93b9e0['descriptionFactory'];_0x1b0141['registerDescriptionCallback'](_0x672fad=>{if('insertion'!==_0x672fad['type'])return;const {start:_0x76cb6c,end:_0x57a2e7}=_0x672fad['getFirstRange']();if(!_0x76cb6c['isTouching'](_0x57a2e7)||!_0x76cb6c['nodeAfter'])return;const _0x733da3=_0x27c0f1['model']['schema'],_0x23f56c=_0x76cb6c['nodeAfter'];return _0x733da3['isBlock'](_0x23f56c)&&!_0x733da3['isLimit'](_0x23f56c)&&_0x733da3['checkChild'](_0x23f56c,'$text')?{'type':'insertion','content':St(_0x2fb16d,'*Insert:*\x20%0',_0x1b0141['getItemLabel'](_0x23f56c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x486edc=this['editor'],_0x20ff87=_0x486edc['locale'];_0x486edc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b8697=>{if('formatBlock'!=_0x3b8697['type'])return;const {data:_0xcd4a3c}=_0x3b8697;return _0xcd4a3c&&'paragraph'==_0xcd4a3c['commandName']?{'type':'format','content':St(_0x20ff87,'*Change\x20to:*\x20%0',St(_0x20ff87,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},ye=class extends _0x335f48{['afterInit'](){const _0x29aff9=this['editor'];_0x29aff9['commands']['get']('replaceSource')&&_0x29aff9['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Se=class extends _0x335f48{['afterInit'](){const _0x28e052=this['editor'];_0x28e052['plugins']['has']('RemoveFormatEditing')&&(_0x28e052['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1c5375=this['editor'];_0x1c5375['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bfdc8=>{if('formatBlock'!=_0x2bfdc8['type']&&'formatInline'!=_0x2bfdc8['type'])return;const {data:_0x466bec}=_0x2bfdc8;return _0x466bec&&'removeFormat'==_0x466bec['commandName']?{'type':'format','content':St(_0x1c5375['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Me=class extends _0x335f48{['afterInit'](){const _0x200929=this['editor'];if(!_0x200929['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5e0446=_0x200929['plugins']['get']('TrackChangesEditing');_0x5e0446['enableCommand']('goToPreviousRestrictedEditingException'),_0x5e0446['enableCommand']('goToNextRestrictedEditingException');const _0x4b4606=_0x200929['plugins']['get']('RestrictedEditingModeEditing');_0x4b4606['enableCommand']('trackChanges'),_0x4b4606['enableCommand']('acceptSuggestion'),_0x4b4606['enableCommand']('discardSuggestion'),_0x4b4606['enableCommand']('acceptAllSuggestions'),_0x4b4606['enableCommand']('discardAllSuggestions'),_0x4b4606['enableCommand']('acceptSelectedSuggestions'),_0x4b4606['enableCommand']('discardSelectedSuggestions');}},Oe=class extends _0x335f48{['afterInit'](){const _0x57c353=this['editor'];if(!_0x57c353['plugins']['has']('ShiftEnter'))return;const _0xba81a5=_0x57c353['plugins']['get']('TrackChangesEditing');_0xba81a5['enableCommand']('shiftEnter'),_0xba81a5['descriptionFactory']['registerElementLabel']('softBreak',_0xeade89=>St(_0x57c353['locale'],'ELEMENT_LINE_BREAK',_0xeade89));}};function we(_0x1052ba,_0x2bafb1,_0x491c13){const _0x2b9287=[];for(const _0x3bd382 of _0x2bafb1['getItems']())_0x3bd382['hasAttribute'](_0x1052ba)&&_0x2b9287['push'](_0x491c13['createRangeOn'](_0x3bd382));return _0x2b9287;}var Fe=class extends _0x335f48{['afterInit'](){const _0x316ea8=this['editor'],_0x1fc90b=_0x316ea8['plugins']['get']('TrackChangesEditing');_0x316ea8['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x1fc90b['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x35ed04=this['editor'],_0x549664=_0x35ed04['model'],_0x431d8b=_0x35ed04['locale'],_0x3de83b=_0x35ed04['plugins']['get']('TrackChangesEditing'),_0x276119='restrictedEditingException',_0xb38711=_0x35ed04['commands']['get'](_0x276119);_0x3de83b['enableCommand'](_0x276119,(_0x3220cd,_0x578d3b={})=>{const _0x4ebe=_0x549664['document']['selection'];if(_0x4ebe['isCollapsed'])return void _0x3220cd(_0x578d3b);const _0x5ba615=void 0x0!==_0x578d3b['forceValue']?_0x578d3b['forceValue']:!_0xb38711['value'];_0x549664['change'](()=>{const _0x10e4fe=Array['from'](_0x4ebe['getRanges']());for(const _0x37f1fb of _0x10e4fe){const _0xc4a122=_0x5ba615?[_0x37f1fb]:we(_0x276119,_0x37f1fb,_0x549664);for(const _0x50a288 of _0xc4a122)_0x3de83b['markInlineFormat'](_0x50a288,{'commandName':_0x276119,'commandParams':[{'forceValue':_0x5ba615}]});}});}),_0x3de83b['descriptionFactory']['registerDescriptionCallback'](_0x5ef5c0=>{if('formatBlock'!=_0x5ef5c0['type']&&'formatInline'!=_0x5ef5c0['type'])return;const {data:_0x16f259}=_0x5ef5c0;return _0x16f259&&_0x16f259['commandName']==_0x276119?_0x16f259['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x431d8b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x431d8b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x1ec6c8=this['editor'],_0x49a843=_0x1ec6c8['locale'],_0x1bc55d=_0x1ec6c8['plugins']['get']('TrackChangesEditing'),_0x4566b0='restrictedEditingExceptionBlock',_0x23664c=this['editor']['commands']['get'](_0x4566b0);_0x1bc55d['enableCommand'](_0x4566b0,(_0x182eee,_0x248714={})=>{const _0x499d21=this['editor']['model']['document']['selection'],_0x574e1c=_0x248714&&void 0x0!==_0x248714['forceValue']?_0x248714['forceValue']:!_0x23664c['value'];let _0x51d015=[];_0x51d015=At(_0x574e1c?Array['from'](_0x499d21['getSelectedBlocks']())['filter'](_0x26ef4b=>function(_0x4bb367){return!!_0x4bb367['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x26ef4b)||function(_0x32be92,_0x22a8ca){const _0x265222=_0x22a8ca['createContext'](_0x32be92['parent']);return!!_0x22a8ca['checkChild'](_0x265222,'restrictedEditingException')&&!!_0x22a8ca['checkChild'](_0x265222['push']('restrictedEditingException'),_0x32be92);}(_0x26ef4b,this['editor']['model']['schema'])):Array['from'](_0x499d21['getSelectedBlocks']())['map'](_0x8d3d68=>function(_0x231bf5){let _0x23a117=_0x231bf5;for(;_0x23a117['parent'];){if('restrictedEditingException'==_0x23a117['parent']['name'])return _0x23a117;_0x23a117=_0x23a117['parent'];}return null;}(_0x8d3d68))['filter'](_0x499a49=>!!_0x499a49),_0x1ec6c8['model']),_0x1ec6c8['model']['change'](()=>{for(const _0x4b24a5 of _0x51d015)_0x1bc55d['markBlockFormat'](_0x4b24a5,{'commandName':_0x4566b0,'commandParams':[{'forceValue':_0x574e1c}]});});}),_0x1bc55d['descriptionFactory']['registerDescriptionCallback'](_0xa50d39=>{const {data:_0x504fb4}=_0xa50d39;if(_0x504fb4&&_0x504fb4['commandName']==_0x4566b0)return _0x504fb4['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x49a843,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x49a843,'FORMAT_RESTRICTED_DISABLED')};});}},Be=class extends _0x335f48{['afterInit'](){const _0xaa7320=this['editor'];_0xaa7320['plugins']['has']('Style')&&_0xaa7320['plugins']['has']('DataSchema')&&(_0xaa7320['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xd7369=this['editor'],_0x1415e5=_0xd7369['locale'];_0xd7369['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58939a=>{if('formatBlock'!=_0x58939a['type']&&'formatInline'!=_0x58939a['type'])return;const {data:_0x54cdf8}=_0x58939a;return _0x54cdf8&&'style'===_0x54cdf8['commandName']?_0x54cdf8['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x1415e5,'*Set\x20format:*\x20%0',_0x54cdf8['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':St(_0x1415e5,'*Remove\x20format:*\x20%0',_0x54cdf8['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},ve=class extends _0x335f48{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4a189d){super(_0x4a189d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1e82f7=this['editor'],_0x18d785=_0x1e82f7['model']['document']['selection'];if(!_0x1e82f7['plugins']['has']('TableEditing'))return;const _0x8fa062=_0x1e82f7['locale'],_0x2e7851=_0x1e82f7['plugins']['get']('TrackChangesEditing'),_0x5b6005=_0x1e82f7['plugins']['get']('TableUtils');_0x2e7851['descriptionFactory']['registerElementLabel']('table',_0x128172=>St(_0x8fa062,'ELEMENT_TABLE',_0x128172)),this['_setupColumnsRowsFixing'](),_0x2e7851['enableCommand']('insertTable'),_0x2e7851['enableCommand']('selectTableRow'),_0x2e7851['enableCommand']('selectTableColumn');for(const _0x356205 of['insertTableRowAbove','insertTableRowBelow']){const _0xe8fd8=_0x1e82f7['commands']['get'](_0x356205);_0x2e7851['enableCommand'](_0x356205,_0x3a785f=>{_0x1e82f7['model']['change'](_0x1ff6f0=>{_0x3a785f();const _0x2d66c9='above'===_0xe8fd8['order'],_0xd2d160=_0x5b6005['getSelectionAffectedTableCells'](_0x18d785),_0x54123f=_0x5b6005['getRowIndexes'](_0xd2d160),_0x16bbf9=_0x2d66c9?_0x54123f['first']-0x1:_0x54123f['last']+0x1,_0x40626d=_0xd2d160[0x0]['findAncestor']('table'),_0x413fa9=_0x5b6005['createTableWalker'](_0x40626d,{'startRow':_0x16bbf9,'endRow':_0x16bbf9}),_0x316353=Array['from'](_0x413fa9)['map'](_0x4756bc=>_0x1ff6f0['createRangeOn'](_0x4756bc['cell']));_0x2e7851['markMultiRangeInsertion'](_0x316353,'tableRow');});});}for(const _0x8d7d54 of['insertTableColumnLeft','insertTableColumnRight']){const _0x56b85a=_0x1e82f7['commands']['get'](_0x8d7d54);_0x2e7851['enableCommand'](_0x8d7d54,_0x291b75=>{_0x1e82f7['model']['change'](_0x36a121=>{_0x291b75();const _0x4172d9='left'===_0x56b85a['order'],_0x27898d=_0x5b6005['getSelectionAffectedTableCells'](_0x18d785),_0x32644d=_0x5b6005['getColumnIndexes'](_0x27898d),_0x139524=_0x4172d9?_0x32644d['first']-0x1:_0x32644d['last']+0x1,_0x1359b3=_0x27898d[0x0]['findAncestor']('table'),_0x17b691=_0x5b6005['createTableWalker'](_0x1359b3,{'startRow':0x0,'column':_0x139524,'includeAllSlots':!0x1}),_0x2a3a38=Array['from'](_0x17b691)['map'](_0x53cec7=>_0x36a121['createRangeOn'](_0x53cec7['cell']));_0x2e7851['markMultiRangeInsertion'](_0x2a3a38,'tableColumn');});});}for(const _0x4246a7 of['removeTableRow','removeTableColumn']){const _0x2b8edf=_0x4246a7['substr'](0xb),_0x4679f5=_0x2b8edf['toLowerCase'](),_0x4dc59=_0x4679f5['substr'](0x0,0x3)+'span',_0xc0c3c7='table'+_0x2b8edf,_0x15b616='min'+_0x2b8edf,_0x21fc1c='max'+_0x2b8edf;_0x2e7851['enableCommand'](_0x4246a7,()=>{_0x1e82f7['model']['change'](_0x3566ef=>{const _0x1b16da=_0x5b6005['getSelectionAffectedTableCells'](_0x18d785),_0x1c6464=_0x1b16da[0x0]['findAncestor']('table');let _0x47a39c;if('removeTableRow'==_0x4246a7){const _0x275cfd=_0x5b6005['getRowIndexes'](_0x1b16da);_0x47a39c={'startRow':_0x275cfd['first'],'endRow':_0x275cfd['last'],'includeAllSlots':!0x0};}else{const _0x3c4d0f=_0x5b6005['getColumnIndexes'](_0x1b16da);_0x47a39c={'startColumn':_0x3c4d0f['first'],'endColumn':_0x3c4d0f['last'],'includeAllSlots':!0x0};}const _0x2b0eea=_0x5b6005['createTableWalker'](_0x1c6464,_0x47a39c),_0x494446=Array['from'](_0x2b0eea)['map'](({cell:_0xfce5d8})=>_0xfce5d8),_0x1fdee2=De(_0x494446['filter'](_0x272a83=>_0x272a83['hasAttribute'](_0x4dc59))),_0x246c47=De(_0x494446['filter'](_0x435128=>!_0x435128['hasAttribute'](_0x4dc59)))['map'](_0xf3cf9f=>_0x3566ef['createRangeOn'](_0xf3cf9f)),_0x1e7e64=_0x2e7851['markMultiRangeDeletion'](_0x246c47,_0xc0c3c7);if(_0x1e7e64&&('tableRow'==_0x1e7e64['subType']||'tableColumn'==_0x1e7e64['subType'])){const _0x141b8b=this['_getSuggestionCoords'](_0x1e7e64);for(const _0x589689 of _0x1fdee2){const _0x2922e8=_0x3566ef['createRangeOn'](_0x589689),_0x22b73e=_0x5b6005['getCellLocation'](_0x589689),_0x166fe8=_0x589689['getAttribute'](_0x4dc59)-0x1,_0x529f27=_0x141b8b[_0x15b616],_0x2cad0f=_0x141b8b[_0x21fc1c];_0x529f27<=_0x22b73e[_0x4679f5]&&_0x22b73e[_0x4679f5]+_0x166fe8<=_0x2cad0f&&_0x1e7e64['addRange'](_0x2922e8);}}});});}function _0x32bcf8(_0x182d59){const _0x2cc19e=Array['from'](_0x18d785['getRanges']())['map'](_0x51fe87=>rt['fromRange'](_0x51fe87));_0x1e82f7['model']['change'](_0xec9582=>{const _0x5a786d=_0xec9582['batch'];_0x182d59=_0x182d59['filter'](_0x12d67c=>'$graveyard'!=_0x12d67c['root']['rootName']),_0xec9582['setSelection'](_0x182d59),_0x1e82f7['commands']['get']('removeTableRow')['refresh'](),_0x1e82f7['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1e82f7['model']['enqueueChange'](()=>{_0x1e82f7['model']['enqueueChange'](_0x5a786d,_0x16bd08=>{const _0x3a9415=_0x2cc19e['filter'](_0x2155fd=>'$graveyard'!=_0x2155fd['root']['rootName']);_0x3a9415['length']>0x0&&_0x16bd08['setSelection'](_0x3a9415);for(const _0x265d1e of _0x2cc19e)_0x265d1e['detach']();});});});}function _0x2bc52f(_0x288e3e){_0x1e82f7['model']['change'](_0x11dd63=>{const _0x5a8a50=Array['from'](_0x18d785['getRanges']())['map'](_0xe4589e=>rt['fromRange'](_0xe4589e)),_0x5d1447=[];for(const _0x2d71dd of _0x288e3e)for(const _0x5760cf of _0x2d71dd['getItems']({'shallow':!0x0}))_0x5d1447['push'](_0x5760cf);for(const _0x503593 of _0x5d1447)'$graveyard'!=_0x503593['root']['rootName']&&(_0x11dd63['setSelection'](_0x11dd63['createPositionAt'](_0x503593,0x0)),_0x1e82f7['commands']['get']('removeTableColumn')['refresh'](),_0x1e82f7['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x576439=_0x5a8a50['filter'](_0x2e4292=>'$graveyard'!=_0x2e4292['root']['rootName']);_0x576439['length']>0x0&&_0x11dd63['setSelection'](_0x576439);for(const _0xc159b1 of _0x5a8a50)_0xc159b1['detach']();});}function _0x3d7a8d(_0x216a29,_0x11479f){return _0x11479f['every'](_0xe06e92=>_0x216a29['some'](_0x26a6ae=>_0x26a6ae['end']['isEqual'](_0xe06e92['start'])||_0xe06e92['end']['isEqual'](_0x26a6ae['start'])));}function _0x2adbd9(_0x5b08d3,_0x278ab3){return!_0x5b08d3['some'](_0x5754f9=>_0x278ab3['some'](_0x4f54d5=>_0x5754f9['isIntersecting'](_0x4f54d5)))&&_0x5b08d3['some'](_0x28ed72=>_0x278ab3['some'](_0x49d252=>_0x28ed72['end']['isTouching'](_0x49d252['start'])));}_0x2e7851['descriptionFactory']['registerDescriptionCallback'](_0x488d9b=>{if('insertion'!=_0x488d9b['type']&&'deletion'!=_0x488d9b['type'])return;const _0x654050=_0x488d9b['getContainedElement']();if(null!=_0x654050&&_0x654050['is']('element','table')){if('insertion'==_0x488d9b['type']){const _0x1a8cce=_0x488d9b['getItems']()['filter'](_0x4a3944=>_0x4a3944['is']('$textProxy'))['map'](_0x1b95e5=>_0x1b95e5['data']);if(_0x1a8cce['length'])return{'type':'insertion','content':St(_0x8fa062,'*Insert:*\x20%0',St(_0x8fa062,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1a8cce['join']('\x20')+'\x22'))};}if('deletion'==_0x488d9b['type']){const _0x561015=_0x488d9b['getItems']()['filter'](_0x4dadb5=>_0x4dadb5['is']('$textProxy'))['map'](_0x18e5bd=>_0x18e5bd['data']);if(_0x561015['length'])return{'type':'deletion','content':St(_0x8fa062,'*Remove:*\x20%0',St(_0x8fa062,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x561015['join']('\x20')+'\x22'))};}}}),_0x2e7851['descriptionFactory']['registerDescriptionCallback'](_0x2cc81e=>{if('tableRow'==_0x2cc81e['subType']){const _0xaf7b9d=_0x2cc81e['getItems']()['filter'](_0x50f787=>_0x50f787['is']('$textProxy'))['map'](_0x1debaf=>_0x1debaf['data']),_0x35cfe1=this['_getSuggestionCoords'](_0x2cc81e),_0x206079=_0x35cfe1['maxRow']-_0x35cfe1['minRow']+0x1;if('insertion'==_0x2cc81e['type'])return _0xaf7b9d['length']?{'type':'insertion','content':St(_0x8fa062,'*Insert:*\x20%0',St(_0x8fa062,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x206079,'\x22'+_0xaf7b9d['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0x8fa062,'*Insert:*\x20%0',St(_0x8fa062,'ELEMENT_TABLE_ROW',_0x206079))};if('deletion'==_0x2cc81e['type'])return _0xaf7b9d['length']?{'type':'deletion','content':St(_0x8fa062,'*Remove:*\x20%0',St(_0x8fa062,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x206079,'\x22'+_0xaf7b9d['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0x8fa062,'*Remove:*\x20%0',St(_0x8fa062,'ELEMENT_TABLE_ROW',_0x206079))};}if('tableColumn'==_0x2cc81e['subType']){const _0x56fd00=_0x2cc81e['getItems']()['filter'](_0x430de1=>_0x430de1['is']('$textProxy'))['map'](_0x553694=>_0x553694['data']),_0x5750fb=this['_getSuggestionCoords'](_0x2cc81e),_0x4cf59b=_0x5750fb['maxColumn']-_0x5750fb['minColumn']+0x1;if('insertion'==_0x2cc81e['type'])return _0x56fd00['length']?{'type':'insertion','content':St(_0x8fa062,'*Insert:*\x20%0',St(_0x8fa062,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4cf59b,'\x22'+_0x56fd00['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0x8fa062,'*Insert:*\x20%0',St(_0x8fa062,'ELEMENT_TABLE_COLUMN',_0x4cf59b))};if('deletion'==_0x2cc81e['type'])return _0x56fd00['length']?{'type':'deletion','content':St(_0x8fa062,'*Remove:*\x20%0',St(_0x8fa062,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4cf59b,'\x22'+_0x56fd00['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0x8fa062,'*Remove:*\x20%0',St(_0x8fa062,'ELEMENT_TABLE_COLUMN',_0x4cf59b))};}}),_0x2e7851['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x32bcf8),_0x2e7851['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x32bcf8),_0x2e7851['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2bc52f),_0x2e7851['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2bc52f),_0x2e7851['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3d7a8d),_0x2e7851['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3d7a8d),_0x2e7851['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2adbd9),_0x2e7851['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2adbd9);}['_acceptFormatSuggestionCallbackFactory'](){const _0x23b2b2=this['editor'],_0x587014=_0x23b2b2['model']['document']['selection'];return(_0x284558,_0x56fd37)=>{_0x23b2b2['model']['change'](_0x5197d2=>{const {commandName:_0x1a63b9,commandParams:_0x5f488d}=_0x56fd37;let _0x3027f9=_0x284558[0x0]['end']['nodeBefore'];_0x5f488d&&_0x5f488d[0x0]&&!0x1===_0x5f488d[0x0]['forceValue']&&(_0x3027f9=_0x284558[0x0]['start']['nodeAfter']);const _0x50a260=_0x5197d2['createRangeIn'](_0x3027f9);if('$graveyard'==_0x50a260['root']['rootName'])return;const _0x452c3b=Array['from'](_0x587014['getRanges']())['map'](_0x551b26=>rt['fromRange'](_0x551b26));_0x5197d2['setSelection'](_0x50a260),_0x23b2b2['commands']['get'](_0x1a63b9)['refresh'](),_0x5f488d['push']({'forceDefaultExecution':!0x0}),_0x23b2b2['execute'](_0x1a63b9,..._0x5f488d);const _0x5501c0=_0x452c3b['filter'](_0x3a04f6=>'$graveyard'!=_0x3a04f6['root']['rootName']);_0x5501c0['length']>0x0&&_0x5197d2['setSelection'](_0x5501c0);for(const _0x5d16fd of _0x452c3b)_0x5d16fd['detach']();});};}['_getCoordsForCells'](_0x274692){const _0x5b9229=this['editor']['plugins']['get']('TableUtils');let _0x2d5979=Number['MAX_SAFE_INTEGER'],_0x135b59=Number['MIN_SAFE_INTEGER'],_0x25626d=Number['MAX_SAFE_INTEGER'],_0x47a900=Number['MIN_SAFE_INTEGER'];for(const _0x39e5bb of _0x274692){if('$graveyard'==_0x39e5bb['root']['rootName'])continue;const {row:_0x1e8090,column:_0x48ee5a}=_0x5b9229['getCellLocation'](_0x39e5bb),_0x396e51=_0x39e5bb['hasAttribute']('rowspan')?_0x39e5bb['getAttribute']('rowspan')-0x1:0x0,_0x73f7bb=_0x39e5bb['hasAttribute']('colspan')?_0x39e5bb['getAttribute']('colspan')-0x1:0x0;_0x2d5979=_0x1e8090<_0x2d5979?_0x1e8090:_0x2d5979,_0x135b59=_0x1e8090+_0x396e51>_0x135b59?_0x1e8090+_0x396e51:_0x135b59,_0x25626d=_0x48ee5a<_0x25626d?_0x48ee5a:_0x25626d,_0x47a900=_0x48ee5a+_0x73f7bb>_0x47a900?_0x48ee5a+_0x73f7bb:_0x47a900;}return{'minRow':_0x2d5979,'maxRow':_0x135b59,'minColumn':_0x25626d,'maxColumn':_0x47a900};}['_setupColumnsRowsFixing'](){const _0x212db4=this['editor'],_0x2f1474=_0x212db4['plugins']['get']('TrackChangesEditing'),_0x21d4f0=_0x212db4['plugins']['get']('TableUtils');_0x212db4['model']['document']['on']('change:data',()=>{const _0x3c2cc7=Array['from'](_0x212db4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c6b42,data:_0x2ad296}of _0x3c2cc7){const {group:_0x4b679e,id:_0x1adba4,subType:_0x56a1d9}=tt(_0x2c6b42);if('suggestion'!=_0x4b679e)continue;if(null!=_0x2ad296['oldRange'])continue;const _0x2d0c60=_0x2f1474['getSuggestion'](_0x1adba4);this['_tablePostFixingSubtypes']['includes'](_0x56a1d9)&&this['_tableSuggestions']['add'](_0x2d0c60);}},{'priority':'low'});const _0x7371d4=(_0x5bd0c6,_0x117ca4)=>{let _0x28b131=!0x1;const _0x53e631=_0x117ca4['createRangeOn'](_0x5bd0c6),_0x1614d8=_0x5bd0c6['findAncestor']('table'),_0xee010=_0x21d4f0['getCellLocation'](_0x5bd0c6);for(const _0x4b3530 of this['_tableSuggestions']){const _0x39ed48=_0x4b3530['subType'],_0x26eaf8=_0x39ed48['startsWith']('tablePaste'),_0xfd0d23=_0x39ed48['substr'](_0x26eaf8?0xa:0x5),_0x10d541=_0xfd0d23['toLowerCase'](),_0x564d0c=_0x10d541['substr'](0x0,0x3)+'span',_0x177f87='min'+_0xfd0d23,_0x4fa2aa='max'+_0xfd0d23;if(!_0x4b3530['isInContent'])continue;if(_0x1614d8!=_0x4b3530['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4b3530['isIntersectingWithRange'](_0x53e631))continue;const _0x13227f=_0x5bd0c6['hasAttribute'](_0x564d0c)?_0x5bd0c6['getAttribute'](_0x564d0c)-0x1:0x0,_0x1a6267=this['_getSuggestionCoords'](_0x4b3530),_0x393836=_0x1a6267[_0x177f87],_0x3d0d5a=_0x1a6267[_0x4fa2aa];_0x393836<=_0xee010[_0x10d541]&&_0xee010[_0x10d541]+_0x13227f<=_0x3d0d5a&&(_0x4b3530['addRange'](_0x53e631),_0x28b131=!0x0);}return _0x28b131;};_0x212db4['model']['document']['registerPostFixer'](_0x377dc6=>{let _0x463070=!0x1;for(const _0x37aa81 of _0x212db4['model']['document']['differ']['getChanges']())if('insert'==_0x37aa81['type']){if('tableRow'==_0x37aa81['name']){for(const _0x2c431c of _0x37aa81['position']['nodeAfter']['getChildren']())_0x463070=_0x463070||_0x7371d4(_0x2c431c,_0x377dc6);}else'tableCell'==_0x37aa81['name']&&(_0x463070=_0x463070||_0x7371d4(_0x37aa81['position']['nodeAfter'],_0x377dc6));}return _0x463070;});}['_getSuggestionCoords'](_0x11ccac){return this['_getCoordsForCells'](_0x11ccac['getRanges']()['map'](_0x3e7345=>_0x3e7345['start']['nodeAfter']));}};function De(_0x2d16d7){return Array['from'](new Set(_0x2d16d7)['values']());}var Ue=class extends _0x335f48{static get['requires'](){return[ve];}['afterInit'](){const _0x291aed=this['editor'],_0x4c96cc=_0x291aed['model']['document']['selection'],_0x59e777=_0x291aed['locale'];if(!_0x291aed['plugins']['has']('TableEditing'))return;const _0x548e70=_0x291aed['plugins']['get']('TrackChangesEditing'),_0x5f0f85=_0x291aed['plugins']['get']('TableUtils'),_0x442be9=_0x291aed['plugins']['get'](ve);_0x442be9['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x548e70['enableCommand']('mergeTableCells',()=>{const _0x795211=_0x5f0f85['getSelectionAffectedTableCells'](_0x291aed['model']['document']['selection']);_0x291aed['model']['change'](()=>{_0x548e70['markMultiRangeBlockFormat'](_0x795211,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x291aed['commands']['get']('mergeTableCells')['on']('execute',(_0x262e81,_0xe92fee)=>{_0x291aed['commands']['get']('trackChanges')['value']&&(_0xe92fee['length']>0x0&&_0xe92fee[_0xe92fee['length']-0x1]&&_0xe92fee[_0xe92fee['length']-0x1]['forceDefaultExecution']||_0x548e70['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x262e81['stop']());},{'priority':'highest'});for(const _0x449dd1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4bdfa5=_0x291aed['commands']['get'](_0x449dd1);_0x548e70['enableCommand'](_0x449dd1,()=>{const _0x1258a0=_0x291aed['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1a726b=>_0x1a726b['is']('element','tableCell')),_0x4c08ba=_0x4bdfa5['value'];_0x291aed['model']['change'](()=>{_0x548e70['markMultiRangeBlockFormat']([_0x1258a0,_0x4c08ba],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x30a7c5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x552b1c=_0x291aed['commands']['get'](_0x30a7c5);_0x548e70['enableCommand'](_0x30a7c5,()=>{const _0x5193c3=_0x5f0f85['getSelectionAffectedTableCells'](_0x291aed['model']['document']['selection'])[0x0],_0x3c3111=_0x5193c3['findAncestor']('table'),{column:_0xf3b951,row:_0x229da4}=_0x5f0f85['getCellLocation'](_0x5193c3);let _0x12e994=[];if('horizontally'==_0x552b1c['direction']){const _0xfc2522=_0x5f0f85['createTableWalker'](_0x3c3111,{'startRow':_0x229da4,'endRow':_0x229da4,'includeAllSlots':!0x0});_0x12e994=Array['from'](_0xfc2522)['map'](_0x1299dd=>_0x1299dd['cell']);}else{const _0xb0d5ca=_0x5f0f85['createTableWalker'](_0x3c3111,{'column':_0xf3b951,'includeAllSlots':!0x0});_0x12e994=Array['from'](_0xb0d5ca)['map'](_0x538001=>_0x538001['cell']);}_0x291aed['model']['change'](_0xe1833b=>{_0x548e70['markBlockFormat'](_0xe1833b['createRangeOn'](_0x5193c3),{'commandName':_0x30a7c5,'commandParams':[]},_0x12e994,_0x30a7c5);});});}_0x548e70['descriptionFactory']['registerDescriptionCallback'](_0xb1bedf=>{if('formatBlock'!=_0xb1bedf['type']&&'formatInline'!=_0xb1bedf['type'])return;const {data:_0x5dac1a}=_0xb1bedf;return _0x5dac1a&&'mergeTableCells'==_0x5dac1a['commandName']?{'type':'format','content':St(_0x59e777,'*Merge\x20cells*')}:void 0x0;}),_0x548e70['descriptionFactory']['registerDescriptionCallback'](_0x498b8b=>{if('formatBlock'!=_0x498b8b['type']&&'formatInline'!=_0x498b8b['type'])return;const {data:_0x139d04}=_0x498b8b;return _0x139d04?'splitTableCellVertically'==_0x139d04['commandName']?{'type':'format','content':St(_0x59e777,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x139d04['commandName']?{'type':'format','content':St(_0x59e777,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x20d85b=_0x442be9['_acceptFormatSuggestionCallbackFactory']();for(const _0x3ab99a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x548e70['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3ab99a,'accept',_0x20d85b);for(const _0x3c1739 of['splitTableCellVertically','splitTableCellHorizontally'])_0x548e70['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3c1739,'accept',_0x20d85b);_0x548e70['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2b7de4=>{_0x291aed['model']['change'](_0x21944d=>{const _0x9060de=Array['from'](_0x4c96cc['getRanges']())['map'](_0x1f8f5=>rt['fromRange'](_0x1f8f5));_0x21944d['setSelection'](_0x2b7de4),_0x291aed['commands']['get']('mergeTableCells')['refresh'](),_0x291aed['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x102f3b=_0x9060de['filter'](_0x1f16d2=>'$graveyard'!=_0x1f16d2['root']['rootName']);_0x102f3b['length']>0x0&&_0x21944d['setSelection'](_0x102f3b);for(const _0x282229 of _0x9060de)_0x282229['detach']();});});for(const _0x47875d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4c490c=_0x291aed['commands']['get'](_0x47875d);_0x4c490c['on']('set:isEnabled',(_0x1e2a3a,_0x126d96,_0x5463eb)=>{if(_0x5463eb){const _0x96c404=_0x291aed['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5accb9=>_0x5accb9['is']('element','tableCell'));this['_areMergableCells'](_0x4c490c['value'],_0x96c404)||(_0x1e2a3a['return']=!0x1,_0x1e2a3a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x51217f=this['editor']['commands']['get']('mergeTableCells'),_0x39b9db=this['editor']['plugins']['get']('TableUtils');if(!_0x51217f['isEnabled'])return!0x1;const _0x31ed9b=_0x39b9db['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x46c60b of _0x31ed9b)for(const _0x141251 of _0x31ed9b)if(_0x46c60b!=_0x141251&&!this['_areMergableCells'](_0x46c60b,_0x141251))return!0x1;return!0x0;}['_areMergableCells'](_0x4896c2,_0x333d15){const _0x4eeeff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a9262=this['editor']['model']['createRangeOn'](_0x4896c2),_0x1fb8b7=this['editor']['model']['createRangeOn'](_0x333d15),_0x4967a3=new Set(),_0x71bab9=new Set();for(const _0xd480c7 of _0x4eeeff['getSuggestions']())if(('insertion'==_0xd480c7['type']||'deletion'==_0xd480c7['type']||'mergeTableCells'==_0xd480c7['subType'])&&_0xd480c7['isInContent']){for(const _0x988970 of _0xd480c7['getRanges']())_0x988970['containsRange'](_0x4a9262,!0x0)&&_0x4967a3['add'](_0xd480c7['type']+':'+_0xd480c7['author']['id']),_0x988970['containsRange'](_0x1fb8b7,!0x0)&&_0x71bab9['add'](_0xd480c7['type']+':'+_0xd480c7['author']['id']);}if(_0x4967a3['size']!=_0x71bab9['size'])return!0x1;for(const _0x5ed3f4 of _0x4967a3)if(!_0x71bab9['has'](_0x5ed3f4))return!0x1;return!0x0;}},Pe=class extends _0x335f48{static get['requires'](){return[ve];}['afterInit'](){const _0x595f71=this['editor'];if(!_0x595f71['plugins']['has']('TableEditing'))return;const _0x531aa2=_0x595f71['locale'],_0x2b5cb8=_0x595f71['plugins']['get']('TrackChangesEditing');_0x2b5cb8['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2b5cb8['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2b5cb8['descriptionFactory']['registerAttributeLabel']('headingRows',St(_0x531aa2,'FORMAT_HEADER_ROW')),_0x2b5cb8['descriptionFactory']['registerAttributeLabel']('headingColumns',St(_0x531aa2,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x54cb16=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f90e3=this['editor']['plugins']['get'](ve)['_acceptFormatSuggestionCallbackFactory']();_0x54cb16['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2f90e3),_0x54cb16['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2f90e3),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x26b184=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c94d6=this['editor']['plugins']['get']('TableUtils');function _0x3c0b25({showActiveMarker:_0x478d12=!0x0,setDataAttribute:_0x38c2c7=!0x0}={}){return(_0x403da0,_0x54c4a9,_0x4c8138)=>{const {type:_0x13b5f5,id:_0x29f42f}=tt(_0x54c4a9['markerName']);if(!_0x26b184['hasSuggestion'](_0x29f42f))return;const _0x1896b8=_0x26b184['getSuggestion'](_0x29f42f),_0x33d93a=_0x1896b8['data'];if('formatBlock'!=_0x1896b8['type']||!_0x33d93a||'setTableColumnHeader'!=_0x33d93a['commandName'])return;if(_0x54c4a9['item'])return void _0x403da0['stop']();if(!_0x4c8138['consumable']['consume'](_0x54c4a9['markerRange'],_0x403da0['name']))return;const _0x4539f9=_0x54c4a9['markerRange']['start']['nodeAfter'],_0x1b1ad9=_0x54c4a9['markerRange']['end']['nodeBefore'],_0x12bc45=_0x4539f9['parent']['parent'],{column:_0x4e8de7}=_0x4c94d6['getCellLocation'](_0x4539f9),{column:_0x550fbb}=_0x4c94d6['getCellLocation'](_0x1b1ad9);for(let _0x16dfaa=_0x4e8de7;_0x16dfaa<=_0x550fbb;_0x16dfaa++){const _0x4e02a4=_0x4c94d6['createTableWalker'](_0x12bc45,{'column':_0x16dfaa,'includeAllSlots':!0x1});for(const _0x485b61 of _0x4e02a4){const _0x1c1f7b=_0x485b61['cell'],_0xaecaaa=_0x4c8138['mapper']['toViewElement'](_0x1c1f7b);_0x4c8138['writer']['addClass']('ck-suggestion-marker-'+_0x13b5f5,_0xaecaaa),_0x38c2c7&&_0x4c8138['writer']['setAttribute']('data-suggestion',_0x29f42f,_0xaecaaa),_0x4c8138['mapper']['bindElementToMarker'](_0xaecaaa,_0x54c4a9['markerName']),_0x478d12&&(_0x26b184['activeMarkers']['includes'](_0x54c4a9['markerName'])?_0x4c8138['writer']['addClass']('ck-suggestion-marker--active',_0xaecaaa):_0x4c8138['writer']['removeClass']('ck-suggestion-marker--active',_0xaecaaa));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3c0b25(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x18094a,_0x4a8233,_0x2522d1)=>{_0x2522d1['options']['showSuggestionHighlights']&&_0x3c0b25({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x18094a,_0x4a8233,_0x2522d1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x19885b,_0x55fa2d,_0x49c0da)=>{const {type:_0xbdd318,id:_0x1d1076}=tt(_0x55fa2d['markerName']);if(!_0x26b184['hasSuggestion'](_0x1d1076))return;const _0x2174f7=_0x26b184['getSuggestion'](_0x1d1076),_0x5b7d61=_0x2174f7['data'];if('formatBlock'!=_0x2174f7['type']||!_0x5b7d61||'setTableColumnHeader'!=_0x5b7d61['commandName'])return;const _0x567fd7=_0x49c0da['mapper']['markerNameToElements'](_0x55fa2d['markerName']);if(_0x567fd7){for(const _0x3237e5 of _0x567fd7)_0x49c0da['writer']['removeClass']('ck-suggestion-marker-'+_0xbdd318,_0x3237e5),_0x49c0da['writer']['removeClass']('ck-suggestion-marker--active',_0x3237e5),_0x49c0da['writer']['removeAttribute']('data-suggestion',_0x3237e5),_0x49c0da['mapper']['unbindElementFromMarkerName'](_0x3237e5,_0x55fa2d['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x2e7022=this['editor'],_0x16fe0a=_0x2e7022['locale'];function _0x1c0f87(_0xd22eb4){return{'type':'format','content':St(_0x16fe0a,'*Format:*\x20%0',_0xd22eb4)};}_0x2e7022['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c5027=>{if('formatBlock'!=_0x2c5027['type'])return;const {data:_0x46d874}=_0x2c5027;return _0x46d874?'setTableRowHeader'==_0x46d874['commandName']?_0x46d874['commandParams'][0x0]['forceValue']?_0x1c0f87(St(_0x16fe0a,'FORMAT_HEADER_ROW')):_0x1c0f87(St(_0x16fe0a,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x46d874['commandName']?_0x46d874['commandParams'][0x0]['forceValue']?_0x1c0f87(St(_0x16fe0a,'FORMAT_HEADER_COLUMN')):_0x1c0f87(St(_0x16fe0a,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},xe=class extends _0x335f48{static get['requires'](){return[ve];}['afterInit'](){const _0x1c5253=this['editor'];if(!_0x1c5253['plugins']['has']('TableEditing')||!_0x1c5253['config']['get']('table.enableFooters'))return;const _0xe95e54=_0x1c5253['locale'],_0x24bd62=_0x1c5253['plugins']['get']('TrackChangesEditing');_0x24bd62['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x24bd62['descriptionFactory']['registerAttributeLabel']('footerRows',St(_0xe95e54,'FORMAT_FOOTER_ROW'));}},Ge=class extends _0x335f48{['afterInit'](){const _0x101bed=this['editor'],_0x4656fd=_0x101bed['locale'],_0x256aa2=_0x101bed['plugins']['get']('TrackChangesEditing');function _0xe50268(_0x22ef92){return{'type':'format','content':''+St(_0x4656fd,'*Set\x20table\x20type:*\x20%0',_0x22ef92)};}_0x101bed['plugins']['has']('TableLayout')&&(_0x256aa2['enableCommand']('insertTableLayout'),_0x256aa2['enableDefaultAttributesIntegration']('tableType'),_0x256aa2['descriptionFactory']['registerElementLabel'](_0x337fcf=>_0x337fcf['is']('element','table')&&'layout'===_0x337fcf['getAttribute']('tableType'),_0x48fe61=>St(_0x4656fd,'ELEMENT_LAYOUT_TABLE',_0x48fe61)),_0x256aa2['descriptionFactory']['registerDescriptionCallback'](_0x8491d4=>{const {data:_0x370e34}=_0x8491d4;if(_0x370e34&&'tableType'==_0x370e34['key'])switch(_0x370e34['newValue']){case'layout':return _0xe50268(St(_0x4656fd,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xe50268(St(_0x4656fd,'ELEMENT_CONTENT_TABLE'));}}));}};const He=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],$e=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](He['map'](_0x534564=>[_0x534564,null]));var Ve=class extends _0x335f48{static get['requires'](){return[ve];}['afterInit'](){const _0x41e882=this['editor'];if(!_0x41e882['plugins']['has']('TableClipboard'))return;const _0x495672=_0x41e882['plugins']['get']('TrackChangesEditing'),_0x1db34b=_0x41e882['plugins']['get']('TableUtils'),_0x260559=_0x41e882['plugins']['get'](ve),_0x1e0ef5=_0x41e882['plugins']['get']('TableClipboard'),_0x155f4b=_0x41e882['plugins']['get']('TableSelection'),_0x7a3f34=_0x41e882['plugins']['get'](mt);_0x260559['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x41e882['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x41e882['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xe79200=null,_0x20e049=!0x1;_0x7a3f34['on']('contentInsertion',(_0x3579c8,_0x4b8a37)=>{_0x20e049='paste'===_0x4b8a37['method'];}),_0x41e882['model']['on']('insertContent',(_0x2ad620,_0x235ba0)=>{if(!_0x20e049&&null===_0x155f4b['getSelectedTableCells']())return;const [_0x5a9184,_0x157668]=_0x235ba0,_0x3676ca=_0x235ba0[_0x235ba0['length']-0x1];_0x3676ca&&_0x3676ca['forceDefaultExecution']||_0x495672['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x120e1,_0x7f2cda,_0x232f5e,_0x3a4527,_0x4ddd34){if(_0x7f2cda&&!_0x7f2cda['is']('documentSelection'))return!0x1;const _0xec2711=_0x4ddd34['getTableIfOnlyTableInContent'](_0x120e1,_0x232f5e);if(!_0xec2711||!je(_0xec2711,void 0x0,_0x3a4527))return!0x1;const _0xfafed0=_0x3a4527['getSelectionAffectedTableCells'](_0x232f5e['document']['selection']);if(!_0xfafed0['length'])return!0x1;const _0x5877ee=_0xfafed0[0x0]['findAncestor']('table'),_0x131889=_0x3a4527['getRowIndexes'](_0xfafed0),_0x4df1a9=_0x3a4527['getColumnIndexes'](_0xfafed0),_0x3b904c={'startRow':_0x131889['first'],'endRow':_0x131889['last'],'startColumn':_0x4df1a9['first'],'endColumn':_0x4df1a9['last']};return 0x1==_0xfafed0['length']&&(_0x3b904c['endRow']+=_0x3a4527['getRows'](_0xec2711)-0x1,_0x3b904c['endColumn']+=_0x3a4527['getColumns'](_0xec2711)-0x1),je(_0x5877ee,_0x3b904c,_0x3a4527);}(_0x5a9184,_0x157668,_0x41e882['model'],_0x1db34b,_0x1e0ef5)&&(_0x2ad620['stop'](),_0xe79200={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x41e882['model']['change'](()=>{_0x41e882['model']['insertContent'](_0x235ba0[0x0],_0x235ba0[0x1],_0x235ba0[0x2],{'forceDefaultExecution':!0x0});const _0x26013b=_0x37c418(),{rowInsertionRanges:_0x1ff8ca,columnInsertionRanges:_0x1352e7,insertionRanges:_0x5f08c0,deletionRanges:_0x4f6a32,cells:_0x21164d}=_0xe79200;_0x1ff8ca['length']&&_0x495672['markMultiRangeInsertion'](_0x1ff8ca,'tablePasteRow',{'tablePasteChainId':_0x26013b}),_0x1352e7['length']&&_0x495672['markMultiRangeInsertion'](_0x1352e7,'tablePasteColumn',{'tablePasteChainId':_0x26013b}),_0x5f08c0['length']&&(_0x495672['markMultiRangeInsertion'](_0x5f08c0,'tablePaste',{'tablePasteChainId':_0x26013b,'skipNestingCheck':!0x0}),_0x5f08c0['forEach'](_0xbc3a4a=>_0xbc3a4a['detach']?.())),_0x4f6a32['length']&&(_0x495672['markMultiRangeDeletion'](_0x4f6a32,'tablePaste',{'tablePasteChainId':_0x26013b,'skipNestingCheck':!0x0}),_0x4f6a32['forEach'](_0x7ec543=>_0x7ec543['detach']?.()));const _0x4e5952=_0x495672['markMultiRangeBlockFormat'](_0x21164d['map'](({element:_0x30c1e7})=>_0x30c1e7),{'formatGroupId':_0x37c418()},[],'tablePasteCell',{'tablePasteChainId':_0x26013b});if(_0x4e5952){const _0x24b443=_0x4e5952['getMarkers'](),_0x5a5bbb=[];for(const {element:_0xe4c219,attributes:_0x45a4ed}of _0x21164d){if(!_0x45a4ed)continue;const _0x392e51=_0x41e882['model']['createRangeOn'](_0xe4c219),_0x37545a=_0x24b443['find'](_0x251876=>_0x251876['getRange']()['isEqual'](_0x392e51));_0x37545a&&_0x5a5bbb['push']([_0x37545a['name'],_0x45a4ed]);}_0x5a5bbb['length']&&_0x4e5952['setAttribute']('markerAttributes',Object['fromEntries'](_0x5a5bbb));}_0xe79200=null;}));},{'priority':_0x6acb2['high']+0xa}),_0x7a3f34['on']('contentInsertion',()=>{_0x20e049=!0x1;},{'priority':'lowest'}),_0x41e882['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xab88b9,_0x51eca9)=>{const [_0x1a7794,_0x352864,,_0x27999a]=_0x51eca9;if(!_0xe79200)return;_0xab88b9['stop']();const _0x4af6cd=_0x1a7794['cell'],_0x239f94=_0x352864,_0x5cf766=We(_0x4af6cd),_0x4eb804=We(_0x239f94);_0xab88b9['return']=_0x4af6cd;let _0x14f2b9=null,_0x354520=null;if(_0x4eb804||_0x5cf766){if(_0x5cf766&&!_0x4eb804){_0x27999a['remove'](_0x4af6cd['getChild'](0x0));for(const _0x58ad06 of Array['from'](_0x239f94['getChildren']()))_0x27999a['insert'](_0x58ad06,_0x4af6cd,'end');const _0x554040=_0xe79200['rowInsertionIndexes']['includes'](_0x1a7794['row']),_0x1e2ca0=_0xe79200['columnInsertionIndexes']['includes'](_0x1a7794['column']);_0x554040||_0x1e2ca0||(_0x14f2b9=rt['fromRange'](_0x27999a['createRangeIn'](_0x4af6cd)));}else _0x4eb804&&!_0x5cf766&&(_0x354520=_0x27999a['createRangeIn'](_0x4af6cd));}else{const _0x925ba7=_0x27999a['createElement']('tableCellSuggestion'),_0x66ef4e=_0x27999a['createElement']('tableCellSuggestion');_0x27999a['wrap'](_0x27999a['createRangeIn'](_0x4af6cd),_0x66ef4e),_0x27999a['insert'](_0x925ba7,_0x4af6cd,0x0);for(const _0x44e273 of Array['from'](_0x239f94['getChildren']()))_0x27999a['insert'](_0x44e273,_0x925ba7,'end');_0x14f2b9=rt['fromRange'](_0x27999a['createRangeOn'](_0x925ba7)),_0x354520=rt['fromRange'](_0x27999a['createRangeOn'](_0x66ef4e));}const _0x2a4395=Array['from'](_0x239f94['getAttributes']())['filter'](([_0x4ef155])=>He['includes'](_0x4ef155));_0xe79200['cells']['push']({'element':_0x4af6cd,'attributes':_0x2a4395['length']?Object['fromEntries'](_0x2a4395):null}),_0x14f2b9&&_0xe79200['insertionRanges']['push'](_0x14f2b9),_0x354520&&_0xe79200['deletionRanges']['push'](_0x354520);},{'priority':'high'}),_0x1db34b['on']('insertColumns',(_0x32c8cf,_0x47362f)=>{const [_0x25b88a,_0x140732={}]=_0x47362f;if(!_0xe79200)return;const _0x2ac528=_0x140732['at']||0x0,_0x421388=_0x140732['columns']||0x1;_0xe79200['columnInsertionIndexes']=new Array(_0x421388)['fill'](_0x2ac528)['map']((_0x2bf163,_0x2fd0aa)=>_0x2bf163+_0x2fd0aa);for(const {cell:_0x2b5255}of _0x1db34b['createTableWalker'](_0x25b88a,{'startColumn':_0x2ac528,'endColumn':_0x2ac528+_0x421388-0x1}))_0xe79200['columnInsertionRanges']['push'](_0x41e882['model']['createRangeOn'](_0x2b5255));},{'priority':'low'}),_0x1db34b['on']('insertRows',(_0xc4dda3,_0x1c845a)=>{const [_0x51749f,_0x515343={}]=_0x1c845a;if(!_0xe79200)return;const _0x4e9a88=_0x515343['at']||0x0,_0x4d68d1=_0x515343['rows']||0x1;_0xe79200['rowInsertionIndexes']=new Array(_0x4d68d1)['fill'](_0x4e9a88)['map']((_0xa81721,_0x48d4ed)=>_0xa81721+_0x48d4ed);for(const {cell:_0x521a4a}of _0x1db34b['createTableWalker'](_0x51749f,{'startRow':_0x4e9a88,'endRow':_0x4e9a88+_0x4d68d1-0x1}))_0xe79200['rowInsertionRanges']['push'](_0x41e882['model']['createRangeOn'](_0x521a4a));},{'priority':'low'}),_0x495672['descriptionFactory']['registerDescriptionCallback'](_0x4ce35c=>{if(_0x4ce35c['subType']&&_0x4ce35c['subType']['startsWith']('tablePaste'))return _0x4ce35c['previous']?{}:{'type':'insertion','content':St(_0x41e882['locale'],'*Replace\x20table\x20cells*')};});const _0x492d29=()=>!0x1;for(const _0x5d1e4c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x495672['_suggestionFactory']['registerCustomCallback']('insertion',_0x5d1e4c,'join',_0x492d29),_0x495672['_suggestionFactory']['registerCustomCallback']('deletion',_0x5d1e4c,'join',_0x492d29),_0x495672['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5d1e4c,'join',_0x492d29);_0x495672['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x492d29),_0x495672['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4a3de2,_0x138f90,_0x115e6e)=>{const _0x42c437=_0x4a3de2['map'](_0x17292b=>_0x17292b['getContainedElement']())['filter'](_0xf0b575=>_0xf0b575),_0x521684=new Map(_0x42c437['map'](_0x32cb58=>[_0x32cb58,null]));if(_0xe79200){for(const {element:_0x21dbe3,attributes:_0x1c7985}of _0xe79200['cells'])_0x1c7985&&_0x521684['set'](_0x21dbe3,_0x1c7985);}else{if(_0x115e6e&&_0x115e6e['markerAttributes'])for(const [_0x57e45e,_0x419087]of Object['entries'](_0x115e6e['markerAttributes'])){const _0x45fab7=_0x41e882['model']['markers']['get'](_0x57e45e),_0x305148=_0x45fab7?_0x45fab7['getRange']()['getContainedElement']():null;_0x305148&&_0x521684['set'](_0x305148,_0x419087);}}_0x41e882['model']['change'](_0x37699a=>{for(const [_0xff9601,_0x14f7c4]of _0x521684)_0x37699a['setAttributes']({...$e,..._0x14f7c4},_0xff9601);});});const _0x5b5149=(_0x50ffb7,_0x580c25)=>{_0x495672['_suggestionFactory']['registerCustomCallback'](_0x50ffb7,'tablePaste',_0x580c25,(_0x30ebd2,_0x1ad7db,_0x232df6)=>{_0x41e882['model']['change'](_0x278bf7=>{const _0xe4b601=[];for(const _0xf6d886 of _0x30ebd2){const _0x100b50=_0xf6d886['start']['nodeAfter'];_0x100b50['is']('element','tableCellSuggestion')&&_0xe4b601['push'](_0x100b50);}_0x495672['_suggestionFactory']['getSuggestionCallback'](_0x50ffb7,null,_0x580c25)(_0x30ebd2,_0x1ad7db,_0x232df6);for(const _0x1809c8 of _0xe4b601)'$graveyard'!=_0x1809c8['root']['rootName']&&_0x278bf7['unwrap'](_0x1809c8);});});};_0x5b5149('insertion','accept'),_0x5b5149('insertion','discard'),_0x5b5149('deletion','accept'),_0x5b5149('deletion','discard'),_0x495672['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1aba44=>{const _0x20aeb1=_0x1aba44['map'](_0x3d8881=>_0x3d8881['getContainedElement']()),_0x4551af=_0x20aeb1[0x0]['findAncestor']('table'),{minRow:_0x1af728,maxRow:_0x2a5a10}=_0x260559['_getCoordsForCells'](_0x20aeb1);_0x1db34b['removeRows'](_0x4551af,{'at':_0x1af728,'rows':_0x2a5a10-_0x1af728+0x1});}),_0x495672['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x42236b=>{const _0x367457=_0x42236b['map'](_0x2e8a61=>_0x2e8a61['getContainedElement']()),_0x5a8919=_0x367457[0x0]['findAncestor']('table'),{minColumn:_0x35e619,maxColumn:_0xc520d2}=_0x260559['_getCoordsForCells'](_0x367457);_0x1db34b['removeColumns'](_0x5a8919,{'at':_0x35e619,'columns':_0xc520d2-_0x35e619+0x1});});const _0x1fcdae=(_0x527898,_0x28830c)=>{if(!_0x28830c['subType']||!_0x28830c['subType']['startsWith']('tablePaste'))return;const _0x57ce08=_0x28830c['attributes']['tablePasteChainId'],_0x14b828=_0x495672['getSuggestions']()['filter'](_0x5cc70a=>_0x5cc70a['isInContent']&&_0x5cc70a['attributes']&&_0x5cc70a['attributes']['tablePasteChainId']==_0x57ce08);_0x14b828['length']&&_0x28830c['getAllAdjacentSuggestions']()['length']!=_0x14b828['length']&&_0x14b828['reduce']((_0x14fe91,_0x15a10d)=>(_0x14fe91['next']=_0x15a10d,_0x15a10d['previous']=_0x14fe91,_0x15a10d));};function _0x2e0c17(_0x5a0fb1,_0x45826b=!0x0){const {id:_0x7b7f11,authorId:_0x235ce0}=tt(_0x5a0fb1['markerName']),_0x4961e9=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x258fd8=_0x495672['activeMarkers']['includes'](_0x5a0fb1['markerName']);return _0x258fd8&&_0x4961e9['push']('ck-suggestion-marker--active'),{'classes':_0x4961e9,'attributes':{'data-suggestion':_0x7b7f11,'data-author-id':_0x235ce0},'priority':_0x258fd8&&_0x45826b?0xbc2:0xbb8};}_0x495672['on']('suggestionLoaded',_0x1fcdae,{'priority':'high'}),_0x495672['on']('suggestionUnloaded',_0x1fcdae,{'priority':'high'}),_0x41e882['model']['document']['registerPostFixer'](()=>{let _0x4c4ce8=!0x1;const _0x3c963f=Array['from'](_0x41e882['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3bb754,data:_0x203acf}of _0x3c963f){const {group:_0x5d6d8a,type:_0x2f2899,id:_0x3cb19f}=tt(_0x3bb754);if('suggestion'!=_0x5d6d8a||'deletion'!=_0x2f2899||_0x203acf['oldRange'])continue;if(!_0x495672['hasSuggestion'](_0x3cb19f))continue;const _0x4ff153=_0x495672['getSuggestion'](_0x3cb19f)['getRanges'](),_0x52a46f=_0x41e882['plugins']['get']('Users')['me'];for(const _0xed9c8e of _0x495672['getSuggestions']())if(_0xed9c8e['isInContent']&&_0xed9c8e['author']==_0x52a46f&&'formatBlock'==_0xed9c8e['type']&&'tablePasteCell'==_0xed9c8e['subType']&&_0xed9c8e['getRanges']()['every'](_0x525c08=>_0x4ff153['some'](_0x45b625=>_0x45b625['containsRange'](_0x525c08,!0x0)))){for(const _0x3ef42d of _0xed9c8e['getAllAdjacentSuggestions']())_0x3ef42d['isInContent']&&(_0x3ef42d['discard'](),_0x4c4ce8=!0x0);}}return _0x4c4ce8;}),_0x41e882['model']['document']['registerPostFixer'](_0xd77794=>{const _0x424f54=_0x41e882['commands']['get']('redo');if(!_0x424f54||!_0x424f54['_createdBatches']['has'](_0xd77794['batch']))return!0x1;let _0x10be76=!0x1;const _0x5dd33a=_0x41e882['plugins']['get']('Users')['me'],_0x43ce6d=_0x41e882['model']['document']['differ']['getChanges'](),_0x1a8365=Array['from'](_0x41e882['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4ca4da,data:_0x4d3990})=>{const {group:_0x17db04,subType:_0x1742a8,authorId:_0x3a50f9}=tt(_0x4ca4da);return'suggestion'==_0x17db04&&'tablePaste'==_0x1742a8&&_0x3a50f9==_0x5dd33a['id']&&!_0x4d3990['oldRange'];});for(const _0x55a535 of _0x43ce6d){if('insert'!=_0x55a535['type']||'tableCellSuggestion'!=_0x55a535['name']||0x1!=_0x55a535['length'])continue;const _0x3039cd=_0xd77794['createRange'](_0x55a535['position'],_0x55a535['position']['getShiftedBy'](0x1));if(!_0x1a8365['find'](({data:_0x487b77})=>_0x487b77['newRange']['isEqual'](_0x3039cd))){for(const {name:_0x1c1d79,data:_0x3ec2d5}of _0x1a8365)if(_0x3039cd['containsRange'](_0x3ec2d5['newRange'])){_0xd77794['updateMarker'](_0x1c1d79,{'range':_0x3039cd}),_0x10be76=!0x0;break;}}}return _0x10be76;}),_0x41e882['model']['document']['registerPostFixer'](_0x2df4ce=>{let _0x4b6f57=!0x1;const _0x364972=_0x41e882['plugins']['get']('Users')['me'],_0x5b9599=_0x495672['getSuggestions']()['filter'](_0x56463e=>_0x56463e['isInContent']&&_0x56463e['author']==_0x364972),_0x26b136=new Set(),_0x32aea7=new Set();for(const _0x3b5864 of _0x5b9599)if('tablePaste'==_0x3b5864['subType'])for(const _0x290342 of _0x3b5864['getMarkers']()){const _0x179672=_0x290342['getRange']()['getContainedElement']();if(_0x179672){if(_0x179672['is']('element','tableCellSuggestion')&&We(_0x179672)){_0x3b5864['removeMarker'](_0x290342['name']),_0x26b136['add'](_0x179672),_0x4b6f57=!0x0;const _0x4812bc=_0x179672['nextSibling'],_0x5d92ae=_0x179672['previousSibling'],_0x364db7=_0x4812bc&&_0x4812bc['is']('element','tableCellSuggestion'),_0xae36d5=_0x5d92ae&&_0x5d92ae['is']('element','tableCellSuggestion');_0x364db7&&!_0x26b136['has'](_0x4812bc)&&_0x32aea7['add'](_0x4812bc),_0xae36d5&&!_0x26b136['has'](_0x5d92ae)&&_0x32aea7['add'](_0x5d92ae);}else _0x179672['is']('element','paragraph')&&_0x179672['isEmpty']&&(_0x3b5864['removeMarker'](_0x290342['name']),_0x4b6f57=!0x0);}}else{if('tablePasteCell'==_0x3b5864['subType']){if(!_0x3b5864['attributes']||!_0x3b5864['attributes']['tablePasteChainId'])continue;const _0x17419f=_0x3b5864['attributes']['markerAttributes'];if(_0x17419f&&Object['keys'](_0x17419f)['length'])continue;const _0x2a45c2=_0x3b5864['attributes']['tablePasteChainId'];let _0x470538=!0x0,_0x42b12e=!0x0;for(const _0x2542b9 of _0x5b9599)if(_0x2542b9['subType']&&_0x2542b9['subType']['startsWith']('tablePaste')){if(!_0x2542b9['attributes']['tablePasteChainId']){_0x42b12e=!0x1;break;}if(_0x2542b9['id']!=_0x3b5864['id']&&_0x2542b9['attributes']['tablePasteChainId']==_0x2a45c2){_0x470538=!0x1;break;}}_0x42b12e&&_0x470538&&(_0x3b5864['removeMarkers'](),_0x4b6f57=!0x0);}}for(const _0x517586 of _0x26b136)_0x2df4ce['remove'](_0x517586);for(const _0x1398b4 of _0x32aea7)_0x2df4ce['unwrap'](_0x1398b4);return _0x4b6f57;}),_0x41e882['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5df22=>_0x2e0c17(_0x5df22),'converterPriority':'high'}),_0x41e882['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5823dd,_0x56e5d7)=>_0x56e5d7['options']['showSuggestionHighlights']?_0x2e0c17(_0x5823dd,!0x1):null,'converterPriority':'high'});const _0x1d7911=_0x41e882['editing']['view'];this['listenTo'](_0x1d7911['document'],'clipboardOutput',(_0x238df1,_0x57b303)=>{const _0x46eb5b=[];for(const _0x4c4e6e of _0x1d7911['createRangeIn'](_0x57b303['content'])['getItems']())_0x4c4e6e['is']('element','suggestion-td')&&_0x46eb5b['push'](_0x4c4e6e);_0x1d7911['change'](_0x569a0d=>{for(const _0x2c4203 of _0x46eb5b)_0x569a0d['move'](_0x569a0d['createRangeIn'](_0x2c4203),_0x569a0d['createPositionBefore'](_0x2c4203)),_0x569a0d['remove'](_0x2c4203);});});}};function We(_0x2f1094){if(_0x2f1094['isEmpty'])return!0x0;const _0x1f4466=_0x2f1094['getChild'](0x0);return _0x1f4466['is']('element','paragraph')&&_0x1f4466['isEmpty'];}function je(_0x35f148,_0x11fdfd={},_0x17b8eb){for(const {isAnchor:_0x4b881e,cellHeight:_0x4e7f8c,cellWidth:_0x63309e}of _0x17b8eb['createTableWalker'](_0x35f148,{'includeAllSlots':!0x0,..._0x11fdfd}))if(!_0x4b881e||0x1!=_0x4e7f8c||0x1!=_0x63309e)return!0x1;return!0x0;}var Ke=class extends _0x335f48{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2320ef=this['editor']['plugins']['get']('TrackChangesEditing');_0x2320ef['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2320ef['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2320ef['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2320ef['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2320ef['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2320ef['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3d5250,_0x2c1404){const _0x44cf05=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ae865=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x8b35ef=_0x2c1404['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x57214c=_0x3ae865['getColumnGroupElement'](_0x8b35ef);let _0x272c28=_0x57214c?_0x3ae865['getTableColumnsWidths'](_0x57214c):null,_0x16012e=_0x8b35ef['getAttribute']('tableWidth')||null;const _0x54947b=_0x2c1404['tableWidth']||_0x16012e,_0x443668=_0x2c1404['columnWidths']||_0x272c28,_0x3267f6=this['editor']['plugins']['get']('Users')['me'];for(const _0xcd934b of _0x44cf05['getSuggestions']()){const _0x1740fe=_0xcd934b['getContainedElement']();if('resizeTable'===_0xcd934b['subType']&&_0x1740fe===_0x8b35ef){_0xcd934b['author']!==_0x3267f6&&_0xcd934b['discard']();const _0x39cf2b=_0xcd934b['data']['commandParams'];_0x16012e=_0x39cf2b[0x0]['tableWidth'],_0x272c28=_0x39cf2b[0x0]['columnWidths'];break;}}_0x3d5250({'table':_0x8b35ef,'tableWidth':_0x54947b,'columnWidths':_0x443668}),_0x44cf05['markBlockFormat'](_0x8b35ef,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x16012e,'columnWidths':_0x272c28}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4010f2){if('formatBlock'!=_0x4010f2['type']&&'formatInline'!=_0x4010f2['type'])return;const {data:_0x121a43}=_0x4010f2;return _0x121a43&&'resizeTable'===_0x121a43['formatGroupId']?{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},ze=class extends _0x335f48{['afterInit'](){const _0x28cded=this['editor'];_0x28cded['plugins']['has']('Template')&&_0x28cded['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Xe=class extends _0x335f48{['afterInit'](){const _0x358d01=this['editor'];if(!_0x358d01['commands']['get']('insertTableOfContents'))return;_0x358d01['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x209a53=_0x358d01['plugins']['get']('TrackChangesEditing'),_0x26ae68=_0x358d01['locale'];_0x209a53['descriptionFactory']['registerElementLabel']('tableOfContents',_0x55ec23=>St(_0x26ae68,'ELEMENT_TABLE_OF_CONTENTS',_0x55ec23));}},qe=class extends _0x335f48{['afterInit'](){const _0x4ddf51=this['editor'];_0x4ddf51['plugins']['has']('Title')&&(_0x4ddf51['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>St(_0x4ddf51['locale'],'ELEMENT_TITLE')),_0x4ddf51['model']['document']['registerPostFixer'](_0x3ff2ba=>{let _0x382047=!0x1;const _0x6186e0=Array['from'](_0x4ddf51['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x16a146,data:_0x2ca036}of _0x6186e0){const {group:_0x11991b}=tt(_0x16a146);if('suggestion'!==_0x11991b||!_0x2ca036['newRange'])continue;const _0xd49125=_0x2ca036['newRange'],_0x4389b9=_0xd49125['end']['nodeBefore'];if(!_0x4389b9||!_0x4389b9['is']('element','title-content'))continue;if(!_0xd49125['start']['isTouching'](_0xd49125['end']))continue;const _0x220c6e=_0x4ddf51['model']['schema']['getNearestSelectionRange'](_0xd49125['end'],'forward');if(_0x220c6e&&_0x220c6e['isCollapsed']){const _0x3e594f=_0x3ff2ba['createRange'](_0xd49125['start'],_0x220c6e['start']);_0x3e594f['isEqual'](_0xd49125)||(_0x3ff2ba['updateMarker'](_0x16a146,{'range':_0x3e594f}),_0x382047=!0x0);}_0x382047||(_0x3ff2ba['removeMarker'](_0x16a146),_0x382047=!0x0);}return _0x382047;}));}},Ye=class extends _0x335f48{['afterInit'](){const _0x549309=this['editor'],_0x45e2ef=_0x549309['plugins']['get']('TrackChangesEditing');_0x549309['plugins']['has']('Uploadcare')&&(_0x45e2ef['enableCommand']('uploadcare'),_0x549309['plugins']['has']('UploadcareImageEdit')&&(_0x45e2ef['enableCommand']('uploadcareImageEdit'),_0x45e2ef['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x45e2ef['descriptionFactory']['registerDescriptionCallback'](_0x36348b=>{if('attribute'!=_0x36348b['type'])return;const {data:_0x456790}=_0x36348b;return _0x456790&&'uploadcareImageId'==_0x456790['key']?{'type':'format','content':''}:void 0x0;})));}},Qe=class extends _0x335f48{['afterInit'](){const _0x11f825=this['editor'],_0x24e6ca=_0x11f825['plugins']['get']('TrackChangesEditing');_0x11f825['plugins']['has']('UndoEditing')&&(_0x24e6ca['enableCommand']('undo'),_0x24e6ca['enableCommand']('redo'));}},Ze=class extends _0x335f48{static get['requires'](){return[ve];}['afterInit'](){const _0x1d0768=this['editor'];_0x1d0768['plugins']['has']('TableCaptionEditing')&&_0x1d0768['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},Je=class extends _0x335f48{['tableProperties'];['tableCellProperties'];constructor(_0x44f1d3){super(_0x44f1d3),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 _0x4e198f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x54081a of this['tableProperties'])_0x4e198f['enableCommand'](_0x54081a,(_0x32b50b,_0x396b03)=>{const _0x4c3f6d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x54081a,[_0x4c3f6d],this['tableProperties'],'tableProperties',_0x32b50b,_0x396b03);});_0x4e198f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4e198f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4e198f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5c8e18,_0x266677)=>this['handleDiscardAction'](this['tableProperties'],_0x5c8e18,_0x266677)),_0x4e198f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x267c6a of this['tableCellProperties'])this['editor']['commands']['get'](_0x267c6a)&&_0x4e198f['enableCommand'](_0x267c6a,(_0x30cbf9,_0x96f5f5)=>{const _0x14074a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x267c6a,_0x14074a,this['tableCellProperties'],'tableCellProperties',_0x30cbf9,_0x96f5f5);});_0x4e198f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4e198f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4e198f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x48ecf9,_0x39342d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x48ecf9,_0x39342d)),_0x4e198f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x4e198f['descriptionFactory']['registerAttributeLabel']('tableCellType',St(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x4e198f['descriptionFactory']['registerDescriptionCallback'](_0xb91fed=>this['handleSuggestionDescription'](_0xb91fed)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x574a1f,_0x4b4d73,_0x432b79,_0x42e385,_0x5a89e3,_0x9c4603){const _0x253d46=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x9c4603['batch'],()=>{for(const _0x57c652 of _0x4b4d73)if(this['_getSuggestion'](_0x57c652,_0x42e385))_0x5a89e3(_0x9c4603);else{const _0x59fd68={};for(const _0x285fde of _0x432b79){const _0x22648=_0x57c652['getAttribute'](_0x285fde);void 0x0!==_0x22648&&(_0x59fd68[_0x285fde]=_0x22648);}_0x5a89e3(_0x9c4603),_0x253d46['markBlockFormat'](_0x57c652,{'commandParams':[_0x59fd68]},[],_0x42e385);}});}['handleDiscardAction'](_0x15390c,_0x31155a,_0x4217af){const _0x10a826=_0x31155a[0x0]['start']['nodeAfter'],_0x39ffd2=_0x4217af['commandParams'][0x0];this['editor']['model']['change'](_0x14260d=>{for(const _0x507e28 of _0x15390c)void 0x0!==_0x39ffd2[_0x507e28]?_0x14260d['setAttribute'](_0x507e28,_0x39ffd2[_0x507e28],_0x10a826):_0x14260d['removeAttribute'](_0x507e28,_0x10a826);});}['handleSuggestionDescription'](_0xff2512){if(_0xff2512['data'])switch(_0xff2512['subType']){case'tableProperties':return{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x238213,_0x5dc005){const _0x2fa418=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4149f3 of _0x2fa418['getSuggestions']({'skipNotAttached':!0x0})){const _0x353e35=_0x4149f3['getContainedElement']();if(_0x4149f3['subType']===_0x5dc005&&_0x353e35===_0x238213)return _0x4149f3;}return null;}['_registerTablePropertiesAttributes'](){const _0x354e47=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd539fc=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x58bc7f of _0xd539fc){const _0x549142=_0x58bc7f['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x354e47['descriptionFactory']['registerAttributeLabel'](_0x58bc7f,St(this['editor']['locale'],'FORMAT_'+_0x549142));}}},tn=class extends _0x335f48{['afterInit'](){const _0x42f8d1=this['editor'];if(!_0x42f8d1['plugins']['has']('LineHeight'))return;const _0x22fd6a=_0x42f8d1['plugins']['get']('TrackChangesEditing'),_0xf1ae72=_0x42f8d1['locale'];_0x22fd6a['enableDefaultAttributesIntegration']('lineHeight'),_0x22fd6a['descriptionFactory']['registerAttributeLabel']('lineHeight',St(_0xf1ae72,'FORMAT_LINE_HEIGHT'));}};const en='$elementName';var nn=class extends _0x335f48{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x5ac837,_0xafb44b,_0x4099f0,_0x8214c2,_0x3c1e26,Ot,wt,Ft,Bt,Dt,Ut,xt,Ht,Gt,$t,Wt,jt,Qt,Zt,Jt,ee,ne,ie,re,oe,ae,ce,le,ue,he,de,ge,fe,me,Te,Le,Ce,Ee,Kt,tn,Xt,Ie,Ae,be,ke,Re,Ne,ye,Se,Me,Oe,Fe,Be,ve,Ue,Pe,xe,Ge,Ze,Ve,Ke,Xe,Je,ze,qe,Ye,Qe];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x23c22d){super(_0x23c22d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1ee7d3,_0x4b8b79,_0xfade99,_0x32a5a1)=>{this['_model']['change'](()=>{for(const _0x5281bd of[..._0x32a5a1,..._0xfade99])this['_model']['markers']['has'](_0x5281bd)&&_0x23c22d['editing']['reconvertMarker'](_0x5281bd);});}),this['descriptionFactory']=new Mt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new sn(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x23c22d['plugins']['get'](_0x5ac837),this['_suggestionsConversion']=_0x23c22d['plugins']['get'](_0xafb44b),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x23c22d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x23c22d['config']['get']('trackChanges.trackFormatChanges'),_0x23c22d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x23c22d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Et(_0x23c22d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x49c8eb=this['editor'];_0x49c8eb['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4e8359,{writer:_0x317768})=>{let _0x1571ac='suggestion:'+_0x4e8359['getAttribute']('suggestion-type')+':'+_0x4e8359['getAttribute']('id');return _0x4e8359['getAttribute']('marker-count')&&(_0x1571ac+=':'+_0x4e8359['getAttribute']('marker-count')),_0x317768['createElement']('$marker',{'data-name':_0x1571ac});}}),_0x49c8eb['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x49c8eb['model']['document']['registerPostFixer'](_0x4f4085=>{let _0x56611a=!0x1;const _0x50dfc9=Array['from'](_0x49c8eb['model']['document']['differ']['getChangedMarkers']()),_0x4a5b75=new Set();for(const {name:_0x229111,data:_0x651476}of _0x50dfc9){const {group:_0x2b698b,type:_0x18a9da,subType:_0x4e3130,id:_0x911c9a}=tt(_0x229111);if('suggestion'!==_0x2b698b)continue;const _0xf512fb=_0x4e3130?'suggestion:'+_0x18a9da+':'+_0x4e3130+':'+_0x911c9a:'suggestion:'+_0x18a9da+':'+_0x911c9a,_0x4c2999=_0x49c8eb['model']['markers']['getMarkersGroup'](_0xf512fb),_0x2b4feb=_0x49c8eb['model']['markers']['get'](_0x229111),_0x5c94f4=this['_suggestions']['get'](_0x911c9a);if(null!=_0x651476['newRange']){'formatInline'==_0x18a9da&&(_0x56611a=_0x56611a||an(_0x651476['newRange'],_0x229111,_0x4f4085,_0x49c8eb['model']['schema']));const _0x121157='attribute'==_0x18a9da&&this['_suggestionsConversion']['isBlockAttribute'](_n(_0x4e3130)),_0x176639='attribute'==_0x18a9da&&this['_suggestionsConversion']['isInlineAttribute'](_n(_0x4e3130));if(_0x651476['newRange']['isCollapsed']||'$graveyard'==_0x651476['newRange']['root']['rootName']||'formatBlock'==_0x18a9da&&!ln(_0x651476['newRange'])||_0x121157&&!ln(_0x651476['newRange'])||_0x176639&&un(_0x651476['newRange'])||'deletion'==_0x18a9da&&un(_0x651476['newRange'])||_0x2b4feb&&dn(_0x2b4feb,_0x4c2999))_0x4f4085['removeMarker'](_0x229111),_0x56611a=!0x0;else{if(!_0x5c94f4||!_0x5c94f4['isInContent'])continue;if(_0x651476['newRange']&&_0x651476['oldRange']&&_0x651476['newRange']['isEqual'](_0x651476['oldRange']))continue;_0x4a5b75['add'](_0x5c94f4);}}}return _0x4a5b75['size']>0x0&&(_0x56611a=!!this['_joinWithAdjacentSuggestions'](_0x4a5b75)||_0x56611a),_0x56611a;}),_0x49c8eb['model']['document']['registerPostFixer'](_0x57abbd=>{let _0x6f2b87=!0x1;for(const _0x235663 of _0x49c8eb['model']['document']['differ']['getChanges']())if('insert'==_0x235663['type'])for(const _0x370099 of this['_suggestions']['values']()){if(_0x370099['isMultiRange']||!_0x370099['isInContent'])continue;const _0x32a481='formatBlock'==_0x370099['type'],_0xa6f19d=this['_getAttributeKey'](_0x370099),_0x29d16b=_0xa6f19d&&this['_suggestionsConversion']['isBlockAttribute'](_0xa6f19d);if(!_0x32a481&&!_0x29d16b)continue;const _0x4f98cf=_0x370099['getFirstRange']();if(_0x4f98cf['start']['parent']!=_0x4f98cf['end']['parent']&&!_0x4f98cf['end']['isAtEnd']){const _0x3c0734=_0x49c8eb['model']['createPositionAt'](_0x4f98cf['start']['nodeAfter'],'end'),_0x26bb0d=_0x49c8eb['model']['createRange'](_0x4f98cf['start'],_0x3c0734);_0x57abbd['updateMarker'](_0x370099['getFirstMarker'](),{'range':_0x26bb0d}),_0x6f2b87=!0x0;}}return _0x6f2b87;}),_0x49c8eb['model']['document']['registerPostFixer'](_0x5e219d=>this['_processAttributeChanges'](_0x5e219d)),_0x49c8eb['model']['document']['registerPostFixer'](_0xa88742=>!_0xa88742['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xa88742)),_0x49c8eb['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x49c8eb['model']['document']['on']('change:data',(_0x24180e,_0x2f932f)=>{if(!_0x2f932f['isLocal']||_0x2f932f['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xf71d97=_0x49c8eb['model']['document']['differ']['getChanges']();if(0x0==_0xf71d97['length'])return;const _0x1d8882=[],_0x17b4e9=_0xf71d97['filter'](_0x148269=>'attribute'==_0x148269['type']),_0xc1ae2a=_0xf71d97['filter'](_0x33a50d=>'insert'==_0x33a50d['type']&&'$text'!=_0x33a50d['name']);for(const _0x101173 of _0x17b4e9)this['_suggestionsConversion']['isRegisteredAttribute'](_0x101173['attributeKey'])&&_0x1d8882['push']({'key':_0x101173['attributeKey'],'newValue':_0x101173['attributeNewValue'],'oldValue':_0x101173['attributeOldValue'],'range':hn(_0x101173['range'],_0x49c8eb['model'])});for(const _0x272fc8 of _0xc1ae2a){if('rename'!=_0x272fc8['action']&&'refresh'!=_0x272fc8['action'])continue;const _0xc1d4a6=gn(_0x272fc8['position']['nodeAfter'],_0x49c8eb['model']),_0x281406=_0x272fc8['before'];'rename'==_0x272fc8['action']&&_0x1d8882['push']({'key':en,'newValue':_0x272fc8['name'],'oldValue':_0x281406['name'],'range':_0xc1d4a6});for(const [_0x44efa6,_0x3b6816]of _0x281406['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x44efa6))continue;const _0x3a394d=_0x272fc8['attributes']['get'](_0x44efa6);_0x3b6816!==_0x3a394d&&_0x1d8882['push']({'key':_0x44efa6,'newValue':_0x3a394d,'oldValue':_0x3b6816,'range':_0xc1d4a6});}for(const [_0x19cf2c,_0x1d337d]of _0x272fc8['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x19cf2c)&&(_0x281406['attributes']['has'](_0x19cf2c)||_0x1d8882['push']({'key':_0x19cf2c,'newValue':_0x1d337d,'oldValue':null,'range':_0xc1d4a6}));}0x0!=_0x1d8882['length']&&_0x49c8eb['model']['enqueueChange'](_0x2f932f,_0x1603e0=>{const _0x53f97e=_0x37c418();for(const {range:_0x2ccace,key:_0x5da5d1,oldValue:_0x41375c,newValue:_0x465037}of _0x1d8882)this['markAttributeChange'](_0x2ccace,_0x5da5d1,_0x41375c,_0x465037,{'groupId':_0x53f97e});this['_reduceExistingSuggestions'](_0x1603e0,_0x1d8882);});},{'priority':'lowest'}),_0x49c8eb['model']['markers']['on']('update:suggestion',(_0xbec193,_0x6fa25d,_0x38581d)=>{if(null==_0x38581d){const {id:_0x11a994}=tt(_0x6fa25d['name']),_0x10f3b9=this['_suggestions']['get'](_0x11a994);_0x10f3b9&&_0x10f3b9['addMarkerName'](_0x6fa25d['name']);}}),_0x49c8eb['model']['document']['on']('change:data',()=>{const _0x356a9=Array['from'](_0x49c8eb['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5de6be=>'suggestion'===tt(_0x5de6be['name'])['group']);if(0x0===_0x356a9['length'])return;_0x356a9['sort']((_0x5e31c2,_0x4a5de0)=>{const _0x1314fd=_0x5e31c2['data']['oldRange'],_0x38bced=_0x4a5de0['data']['oldRange'];return null===_0x1314fd&&null===_0x38bced?0x0:null===_0x1314fd&&null!==_0x38bced?-0x1:null!==_0x1314fd&&null===_0x38bced?0x1:_0x1314fd['start']['isBefore'](_0x38bced['start'])?-0x1:0x1;});const _0x411b10=new Set(),_0x2428c7=new Set();for(const {name:_0x59da48,data:_0x2cf960}of _0x356a9){const {id:_0x39f0f0}=tt(_0x59da48);if(null===_0x2cf960['oldRange']){const _0x658de6=this['_handleNewSuggestionMarker'](_0x59da48);_0x2428c7['add'](_0x658de6);}else{const _0x47523d=this['_suggestions']['get'](_0x39f0f0);null!==_0x2cf960['newRange']||_0x47523d['isInContent']?(_0x411b10['add'](_0x47523d['head']),_0x2428c7['add'](_0x47523d)):this['_removeSuggestion'](_0x47523d);}}_0x2428c7['size']>0x0&&this['_refreshSuggestionsChain'](_0x2428c7);for(const _0x276c65 of _0x411b10)this['fire']('suggestionChanged',_0x276c65);}),_0x49c8eb['model']['on']('applyOperation',(_0xde8ca3,_0x5db49a)=>{const _0x455f52=_0x5db49a[0x0];if(!this['_suggestions']['size'])return;if(!_0x455f52['isDocumentOperation'])return;if(_0x455f52['batch']['isUndo']||!_0x455f52['batch']['isLocal'])return;let _0x18bc90,_0x2359d7;switch(_0x455f52['type']){case'insert':_0x18bc90=_0x49c8eb['model']['createPositionAt'](_0x455f52['position']),_0x2359d7=_0x18bc90['getShiftedBy'](_0x455f52['howMany']);break;case'split':_0x18bc90=_0x49c8eb['model']['createPositionAt'](_0x455f52['splitPosition']),_0x2359d7=_0x49c8eb['model']['createPositionAt'](_0x455f52['moveTargetPosition']);break;case'move':_0x18bc90=_0x49c8eb['model']['createPositionAt'](_0x455f52['targetPosition']),_0x2359d7=_0x18bc90['getShiftedBy'](_0x455f52['howMany']);break;default:return;}const _0x260f98=_0x49c8eb['model']['createRange'](_0x18bc90,_0x2359d7);_0x49c8eb['model']['change'](()=>{for(const {suggestion:_0x11d5c9,meta:_0x51db00}of this['_findSuggestions'](_0x260f98)){if(_0x11d5c9['isMultiRange'])continue;if('formatInline'==_0x11d5c9['type'])continue;const _0x4f59e5=this['_getAttributeKey'](_0x11d5c9);if(_0x4f59e5&&this['_suggestionsConversion']['isBlockAttribute'](_0x4f59e5)&&'split'!=_0x455f52['type'])continue;const _0x44538e=_0x11d5c9['data']&&_0x11d5c9['data']['multipleBlocks'];('formatBlock'!=_0x11d5c9['type']||'split'==_0x455f52['type']&&!_0x44538e)&&(_0x51db00['containsRangeInObject']||'insertion'==_0x11d5c9['type']&&_0x51db00['isOwn']||_0x11d5c9['getFirstRange']()['containsRange'](_0x260f98)&&this['_breakSuggestionMarker'](_0x11d5c9,_0x18bc90,_0x2359d7));}});},{'priority':'lowest'}),_0x49c8eb['model']['on']('deleteContent',(_0x1a3013,_0x5ddae8)=>{const _0x527a5e=_0x5ddae8[0x0],_0xfae0ce=_0x5ddae8[0x1];if(_0xfae0ce&&_0xfae0ce['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x527a5e['isCollapsed'])return;const _0x376257=_0x49c8eb['model']['schema'],{start:_0x2aa5c0,end:_0xdc7614}=_0x527a5e['getFirstRange'](),_0x5b1d86=_0x2aa5c0['nodeAfter']&&_0x376257['isLimit'](_0x2aa5c0['nodeAfter'])?null:_0x376257['getNearestSelectionRange'](_0x2aa5c0,'forward'),_0x30a2f3=_0xdc7614['nodeBefore']&&_0x376257['isLimit'](_0xdc7614['nodeBefore'])?null:_0x376257['getNearestSelectionRange'](_0xdc7614,'backward'),_0x2849d0=_0x49c8eb['model']['createRange'](_0x5b1d86?_0x5b1d86['start']:_0x2aa5c0,_0x30a2f3?_0x30a2f3['end']:_0xdc7614);_0x49c8eb['model']['change'](_0x2cc5e5=>{this['markDeletion'](_0x2849d0);const _0x394910=_0x49c8eb['model']['schema']['getNearestSelectionRange'](_0x2849d0['start']);_0x527a5e['is']('documentSelection')?_0x2cc5e5['setSelection'](_0x394910):_0x527a5e['setTo'](_0x394910);}),_0x1a3013['stop']();},{'priority':_0x6acb2['normal']+0xa}),_0x49c8eb['model']['on']('insertContent',(_0x5c78b7,_0x5e1af1)=>{const _0x4e3a73=_0x5e1af1[_0x5e1af1['length']-0x1];_0x4e3a73&&_0x4e3a73['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x49c8eb['model']['change'](()=>{let _0x46be51=_0x49c8eb['model']['insertContent'](_0x5e1af1[0x0],_0x5e1af1[0x1],_0x5e1af1[0x2],{'forceDefaultExecution':!0x0});if(!_0x46be51)return;_0x5c78b7['return']=_0x46be51['clone']();const _0x29ce85=_0x46be51['end']['nodeBefore'],_0x5601cc=_0x49c8eb['model']['schema'];_0x29ce85&&_0x5601cc['isBlock'](_0x29ce85)&&!_0x5601cc['isObject'](_0x29ce85)&&(_0x46be51=_0x49c8eb['model']['createRange'](_0x46be51['start'],_0x49c8eb['model']['createPositionAt'](_0x29ce85,'end'))),this['markInsertion'](_0x46be51);}),_0x5c78b7['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x784d11=new Tt(_0x49c8eb,this['_suggestions']);_0x49c8eb['commands']['add']('acceptSuggestion',_0x784d11),this['enableCommand']('acceptSuggestion');const _0x388632=new _t(_0x49c8eb,this['_suggestions']);_0x49c8eb['commands']['add']('discardSuggestion',_0x388632),this['enableCommand']('discardSuggestion'),_0x49c8eb['commands']['add']('acceptAllSuggestions',new Ct(_0x49c8eb,_0x784d11,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x49c8eb['commands']['add']('discardAllSuggestions',new Ct(_0x49c8eb,_0x388632,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x49c8eb['commands']['add']('acceptSelectedSuggestions',new Rt(_0x49c8eb,_0x784d11,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x49c8eb['commands']['add']('discardSelectedSuggestions',new Rt(_0x49c8eb,_0x388632,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2ee2ed=_0x49c8eb['plugins']['get'](_0x5ac837);this['listenTo'](_0x2ee2ed,'addComment',(_0x50e4e9,{threadId:_0x57bb17})=>{const _0x2aa29d=this['_suggestions']['get'](_0x57bb17);_0x2aa29d&&_0x2aa29d['commentThread']&&0x1===_0x2aa29d['commentThread']['length']&&this['_updateSuggestionData'](_0x57bb17,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2ee2ed,'removeComment',(_0x557998,{threadId:_0x48c88e})=>{const _0x19995e=this['_suggestions']['get'](_0x48c88e);_0x19995e&&_0x19995e['commentThread']&&!_0x19995e['commentThread']['length']&&this['_updateSuggestionData'](_0x48c88e,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x511e43){const _0x15e086='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x2c1eb0=0x78e58,_0xbb0ab5=window['Date']['now'](),_0x188464=_0x511e43['editor'],_0x5046cc=new window['Promise'](_0x17a402=>{_0x188464['once']('ready',_0x17a402);}),_0x1608a7={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x41fdb9=_0x188464['config']['get']('licenseKey');async function _0x14b770(){let _0x1414ea,_0x2f45a7=null,_0x166681=null;try{return'GPL'==_0x41fdb9?'NotAllowed':(_0x1414ea=_0x23135d(),_0x1414ea?(_0x1414ea['usageEndpoint']&&(_0x166681=_0x5c78c4(_0x1414ea['usageEndpoint'],_0x1414ea['jti'])),await _0x30e3da()?_0x36af56()?_0x33fd24()?'Expired':_0x13c66b()?('evaluation'==_0x1414ea['licenseType']&&(_0x2f45a7=_0x3e0794('EvaluationLimit')),await _0x276d42()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x33fd24(){const _0x5bd749=['evaluation','trial']['includes'](_0x1414ea['licenseType'])?_0xbb0ab5/0x3e8:0xe10*_0x2c1eb0;return _0x1414ea['exp']<_0x5bd749;}function _0x36af56(){const _0x271281=_0x1414ea['features'];if(!_0x271281)return!0x1;if(_0x271281['includes']('*'))return!0x0;if(_0x271281['includes']('TC'))return!0x0;if(_0x271281['includes']('RTC')){if(_0x393827())return!0x0;if(_0x15c1d6()||_0x5f5a45())return!0x0;}return!0x1;}function _0x13c66b(){const _0x59d108=_0x1414ea['licensedHosts'];if(!_0x59d108||0x0==_0x59d108['length'])return!0x0;const {hostname:_0x4ac598}=new URL(window['location']['href']);if(_0x59d108['includes'](_0x4ac598))return!0x0;const _0x3d5b0e=_0x4ac598['split']('.');return _0x59d108['filter'](_0x4c9eed=>_0x4c9eed['includes']('*'))['map'](_0x41b966=>_0x41b966['split']('.'))['filter'](_0x51fa8a=>_0x51fa8a['length']<=_0x3d5b0e['length'])['map'](_0x25c89c=>Array(_0x3d5b0e['length']-_0x25c89c['length'])['fill']('*'===_0x25c89c[0x0]?'*':'')['concat'](_0x25c89c))['some'](_0x160ea9=>_0x3d5b0e['every']((_0x102e48,_0x32ab89)=>_0x160ea9[_0x32ab89]===_0x102e48||'*'===_0x160ea9[_0x32ab89]));}function _0x276d42(){return _0x2f45a7&&_0x166681?new window['Promise']((_0x4c33ed,_0x1274f3)=>{_0x2f45a7['then'](_0x4c33ed,_0x1274f3),_0x166681['then'](_0x2de4e3=>{'Valid'!=_0x2de4e3&&_0x4c33ed(_0x2de4e3);},_0x1274f3);}):_0x2f45a7||_0x166681||'Valid';}}function _0x5c78c4(_0x273930,_0x28c693){return new window['Promise'](_0x4674a7=>{if(_0x51ab14())return _0x4674a7('Valid');_0x10c4a0(),_0x188464['decorate']('_sendUsageRequest');let _0x30cc2d=!0x1;const _0x11bb2d=_0x37c418();function _0x5c9100(_0x380baa){return!!_0x380baa&&('object'==typeof _0x380baa||'function'==typeof _0x380baa)&&'function'==typeof _0x380baa['then']&&'function'==typeof _0x380baa['catch'];}function _0x18ed62(_0x3cecad){_0x468f06(_0x3cecad)['then'](_0xc53528=>_0xc53528&&'ok'==_0xc53528['status']?_0x53e44e(_0x485a45(_0x11bb2d+_0x28c693))!=_0xc53528['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x559f9e=>(_0x111ed9(),_0x559f9e),()=>{const _0x2fb34b=_0x2a4825();return null==_0x2fb34b?(_0x111ed9(),'Valid'):_0xbb0ab5-_0x2fb34b>0x240c8400?'UsageLimit':'Valid';})['then'](_0x4674a7)['catch'](()=>{_0x4674a7('UsageLimit');});const _0x1415fb=0x36ee80;function _0x111ed9(){const _0x42b4c4='llct-'+_0x53e44e(_0x485a45(_0x273930)),_0x192c3a=_0x50d18a(_0x53e44e(window['Math']['ceil'](_0xbb0ab5/_0x1415fb)));window['localStorage']['setItem'](_0x42b4c4,_0x192c3a);}function _0x2a4825(){const _0x12aed3='llct-'+_0x53e44e(_0x485a45(_0x273930)),_0x331b21=window['localStorage']['getItem'](_0x12aed3);return _0x331b21?window['parseInt'](_0x50d18a(_0x331b21),0x10)*_0x1415fb:null;}function _0x468f06(_0xfee1f){return new window['Promise']((_0x1fc8f9,_0x369a44)=>{_0xfee1f['then'](_0x1fc8f9,_0x369a44),window['setTimeout'](_0x369a44,0x1d4c0);});}}_0x188464['on']('_sendUsageRequest',(_0x2dba70,_0x7b4d4e)=>{if(_0x7b4d4e[0x0]!=_0x273930)return _0x4674a7('UsageLimit');_0x7b4d4e[0x1]={..._0x7b4d4e[0x1],'requestId':_0x11bb2d};},{'priority':'high'}),_0x188464['on']('_sendUsageRequest',_0x118b80=>{_0x5c9100(_0x118b80['return'])&&(_0x30cc2d=!0x0,_0x18ed62(_0x118b80['return']));},{'priority':'low'}),_0x5046cc['then'](()=>{_0x30cc2d||_0x4674a7('UsageLimit');});});function _0x51ab14(){return'auto'==_0x188464['editing']['view']['_overlayModeHint'];}function _0x10c4a0(){_0x188464['editing']['view']['_overlayModeHint']='auto';}}function _0x3e0794(_0x5831e8){const _0x5e647b=[new window['Promise'](_0x1dc55f=>setTimeout(_0x1dc55f,0x93ecc)),_0x5046cc['then'](()=>new window['Promise'](_0x4b0c39=>{let _0xabd594=0x0;_0x188464['model']['on']('applyOperation',(_0x4a1f72,_0x1052c4)=>{_0x1052c4[0x0]['isDocumentOperation']&&_0xabd594++,0x5e8==_0xabd594&&(_0x4b0c39(),_0x4a1f72['off']());});}))];return window['Promise']['race'](_0x5e647b)['then'](()=>_0x5831e8);}async function _0x133018(){await _0x5046cc,_0x188464['model']['change']=_0x4654a9,_0x188464['model']['enqueueChange']=_0x4654a9,_0x188464['enableReadOnlyMode']('model');}function _0x393827(){return _0x1f46d2('WebSocketGateway')&&'connected'==_0x431bd4('WebSocketGateway')['state'];}function _0x15c1d6(){return _0x1f46d2('RevisionViewerIntegration');}function _0x5f5a45(){return _0x1f46d2('TrackChangesDataGetter');}function _0x3313e4(_0x1e22a2){const _0x70dcc8=_0x282020();_0x188464[_0x70dcc8]='trackChangesLicenseKey'+_0x1e22a2,'Valid'!=_0x1e22a2&&_0x133018();}function _0x282020(){const _0x1a09fe=window['String'](window['performance']['now']())['replace']('.','');let _0x3e210e='R';for(let _0x552a12=0x0;_0x552a12<_0x1a09fe['length'];_0x552a12+=0x2){let _0x420e0e=window['parseInt'](_0x1a09fe['substring'](_0x552a12,_0x552a12+0x2));_0x420e0e>=0x3e&&(_0x420e0e-=0x3e),_0x3e210e+=_0x15e086[_0x420e0e];}return _0x3e210e;}function _0x23135d(){const _0x5e7170=_0x41fdb9['split']('.');if(0x3!=_0x5e7170['length'])return null;return _0x10d675(_0x5e7170[0x1]);function _0x10d675(_0x5033e6){const _0x749b7c=_0x10c5c7(_0x5033e6);return _0x749b7c&&_0x4bfabf()?_0x749b7c:null;function _0x4bfabf(){const _0x49a1cb=_0x749b7c['jti'],_0xdf349f=window['parseInt'](_0x49a1cb['substring'](_0x49a1cb['length']-0x8),0x10),_0x3bccc1={..._0x749b7c,'jti':_0x49a1cb['substring'](0x0,_0x49a1cb['length']-0x8)};return delete _0x3bccc1['vc'],_0x485a45(_0x3bccc1)==_0xdf349f;}}}async function _0x30e3da(){let _0x5d0932=!0x0;try{const [_0x7237f0,_0x9fa726,_0x10ba85]=_0x41fdb9['split']('.');return _0x3963a2(_0x7237f0),await _0x2ef8e5(_0x7237f0,_0x9fa726,_0x10ba85),_0x5d0932;}catch{return!0x1;}function _0x3963a2(_0x9642d6){const _0xa9f531=_0x10c5c7(_0x9642d6);_0xa9f531&&'ES256'==_0xa9f531['alg']||(_0x5d0932=!0x1);}async function _0x2ef8e5(_0xdfb248,_0x1e052a,_0x4fa753){const _0x2d7f90=window['Uint8Array']['from'](_0xeedb98(_0x4fa753),_0x4ab773=>_0x4ab773['charCodeAt'](0x0)),_0x593e41=new window['TextEncoder']()['encode'](_0xdfb248+'.'+_0x1e052a),_0x5e891a=window['crypto']['subtle'];if(!_0x5e891a)return;const _0x25a45d=await _0x5e891a['importKey']('jwk',_0x1608a7,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5e891a['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x25a45d,_0x2d7f90,_0x593e41)||(_0x5d0932=!0x1);}}function _0x10c5c7(_0x44af54){return _0x44af54['startsWith']('ey')?JSON['parse'](_0xeedb98(_0x44af54)):null;}function _0xeedb98(_0x4c4a37){return window['atob'](_0x4c4a37['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x485a45(_0x587903){let _0x39b4f9=0x1505;function _0x22c144(_0x193c9f){for(let _0x88113=0x0;_0x88113<_0x193c9f['length'];_0x88113++){const _0x1e6b08=_0x193c9f['charCodeAt'](_0x88113);_0x39b4f9=(_0x39b4f9<<0x5)+_0x39b4f9+_0x1e6b08,_0x39b4f9&=_0x39b4f9;}}function _0x34169a(_0xba8e2){Array['isArray'](_0xba8e2)?_0xba8e2['forEach'](_0x34169a):_0xba8e2&&'object'==typeof _0xba8e2?Object['entries'](_0xba8e2)['sort']()['forEach'](([_0x5d235e,_0x40d76c])=>{_0x22c144(_0x5d235e),_0x34169a(_0x40d76c);}):_0x22c144(window['String'](_0xba8e2));}return _0x34169a(_0x587903),_0x39b4f9>>>0x0;}function _0x53e44e(_0x47e00a){return _0x47e00a['toString'](0x10)['padStart'](0x8,'0');}function _0x50d18a(_0xcf13e2){return _0xcf13e2['split']('')['reverse']()['join']('');}function _0x1f46d2(_0x2d6c03){return _0x188464['plugins']['has'](_0x2d6c03);}function _0x431bd4(_0x261bd2){return _0x188464['plugins']['get'](_0x261bd2);}function _0x4654a9(){}_0x3313e4(await _0x14b770());}(this);}set['adapter'](_0x4f62b1){if(this['_adapter'])throw new _0x1ce43c('track-changes-adapter-already-set',this);this['_adapter']=_0x4f62b1;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xcfc408=!0x1,toJSON:_0x6d45db=!0x1}={}){const _0x3b19d9=[];for(const _0x59ee2a of this['_suggestions']['values']())_0xcfc408&&!_0x59ee2a['isInContent']||_0x3b19d9['push'](_0x59ee2a);return _0x6d45db?_0x3b19d9['map'](_0x13bde4=>_0x13bde4['toJSON']()):_0x3b19d9;}['getSuggestion'](_0x25bf98){const _0x451829=this['_suggestions']['get'](_0x25bf98);if(!_0x451829)throw new _0x1ce43c('track-changes-suggestion-not-found',this);return _0x451829;}['hasSuggestion'](_0xe81b19){return this['_suggestions']['has'](_0xe81b19);}['addSuggestionData'](_0x281cdd){const {authorId:_0xded48d,id:_0x2fa44a,originalSuggestionId:_0x1bc162,attributes:_0x4c3de3}=_0x281cdd,[_0x3ab2a8,_0x34cfb3]=_0x281cdd['type']['split'](':'),_0x1dc114=this['_suggestions']['get'](_0x2fa44a)||this['_createSuggestion'](_0x3ab2a8,_0x34cfb3,_0x2fa44a,_0xded48d,_0x4c3de3,_0x1bc162);if(this['_addThreadToSuggestion'](_0x1dc114),this['_checkSuggestionCorrectness'](_0x1dc114,_0x3ab2a8,_0x34cfb3||null,_0xded48d),_0x1dc114['createdAt']=_0x281cdd['createdAt'],_0x1dc114['_isDataLoaded']=!0x0,_0x4c3de3&&_0x4c3de3['@external']){const _0x4a0f3a=_0x4c3de3['@external'],_0x561938=this['_getExternalAuthor'](_0x4a0f3a['authorName']);_0x1dc114['authoredAt']=_0x4a0f3a['createdAt'],_0x1dc114['author']=_0x561938;}else _0x1dc114['authoredAt']=_0x281cdd['createdAt'];switch(_0x281cdd['data']&&(_0x1dc114['data']=_0x281cdd['data']),_0x281cdd['attributes']&&(_0x1dc114['attributes']=_0x281cdd['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1dc114['_saved']=!0x0),this['_suggestionState']['get'](_0x1dc114)){case'notReady':this['_suggestionState']['set'](_0x1dc114,'dataReady');break;case'markerReady':_0x1dc114['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1dc114])),this['_refreshSuggestionsChain'](new Set([_0x1dc114])),this['_suggestionState']['set'](_0x1dc114,'ready'),this['fire']('suggestionLoaded',_0x1dc114)):this['_suggestionState']['set'](_0x1dc114,'removed');}return _0x1dc114;}['acceptSuggestion'](_0x5aad92){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1e201f of _0x5aad92['getAllAdjacentSuggestions']())_0x1e201f['accept']();});});}['discardSuggestion'](_0x37508e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x22c5b2 of _0x37508e['getAllAdjacentSuggestions']())_0x22c5b2['discard']();});});}['enableCommand'](_0x47d192,_0x85b7ea){const _0x596a4f=this['editor']['commands']['get'](_0x47d192);if(!_0x596a4f)throw new _0x1ce43c('track-changes-command-not-found',this,{'commandName':_0x47d192});if(this['_enabledCommands']['has'](_0x596a4f))throw new _0x1ce43c('track-changes-enable-command-twice',this,{'commandName':_0x47d192});this['_enabledCommands']['add'](_0x596a4f),_0x85b7ea&&_0x596a4f['on']('execute',(_0x8469ef,_0x226289)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x226289['length']>0x0&&_0x226289[_0x226289['length']-0x1]&&_0x226289[_0x226289['length']-0x1]['forceDefaultExecution']?_0x226289['pop']():(_0x8469ef['return']=_0x85b7ea((..._0x378bce)=>_0x596a4f['execute'](..._0x378bce,{'forceDefaultExecution':!0x0}),..._0x226289),_0x8469ef['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x50ac71){let _0x26fd0e,_0x302ce6;const _0x48edf4=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x26fd0e=_0x50ac71();}catch(_0x5a6e16){_0x302ce6=_0x5a6e16;}return _0x48edf4||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x302ce6&&_0x1ce43c['rethrowUnexpectedError'](_0x302ce6,this),_0x26fd0e;}['markInsertion'](_0x51f931,_0x44fe28=null,_0x3a5755={}){if(_0x51f931['isCollapsed'])return null;const _0x5c508f=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3a5755['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x138683,meta:_0x453fa3}of this['_findSuggestions'](_0x51f931,'insertion'))if(_0x453fa3['isOwn']){if(!_0x453fa3['isNextTo']){if(_0x453fa3['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!En(_0x138683,_0x3a5755))continue;return _0x138683;}if(En(_0x138683,_0x3a5755))return _0x138683;this['_breakSuggestionMarker'](_0x138683,_0x51f931['start'],_0x51f931['end']);break;}if(_0x44fe28==_0x138683['subType']&&En(_0x138683,_0x3a5755)){const _0x35c842=_0x138683['getFirstRange']();return _0x35c842['start']['isEqual'](_0x51f931['end'])?this['_setSuggestionRange'](_0x138683,this['_model']['createRange'](_0x51f931['start'],_0x35c842['end'])):this['_setSuggestionRange'](_0x138683,this['_model']['createRange'](_0x35c842['start'],_0x51f931['end'])),_0x138683;}}const _0x5f04e2=_0x37c418(),_0x23c678=_0x5c508f['id'],_0x2538f9=_0x44fe28?'insertion:'+_0x44fe28:'insertion',_0x21550a=this['_setSuggestionData']({'id':_0x5f04e2,'type':_0x2538f9,'createdAt':new Date(),'authorId':_0x23c678,'attributes':_0x3a5755});return this['_addSuggestionMarker'](_0x2538f9,_0x5f04e2,_0x23c678,_0x51f931),_0x21550a;}['markMultiRangeInsertion'](_0x251c8f,_0x471877='multi',_0x1aa089={}){const _0x1a51fb=this['editor']['plugins']['get']('Users')['me'],_0x53571=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x471877,'join');this['_trackingSessionId']&&(_0x1aa089['trackingSessionId']=this['_trackingSessionId']);for(const _0x74695f of this['getSuggestions']())if(_0x74695f['author']['id']==_0x1a51fb['id']&&'insertion'==_0x74695f['type']&&_0x74695f['subType']==_0x471877&&En(_0x74695f,_0x1aa089)&&(_0x53571(_0x74695f['getRanges'](),_0x251c8f)||_0x53571(_0x251c8f,_0x74695f['getRanges']()))){for(const _0x128bbb of _0x251c8f)_0x74695f['addRange'](_0x128bbb);return _0x74695f;}for(const {suggestion:_0x53e75c,meta:_0x545dd8}of this['_findSuggestions'](_0x251c8f,'insertion')){if(!_0x545dd8['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x545dd8['containsRangeInObject'])continue;if(!En(_0x53e75c,_0x1aa089))continue;let _0x8ea2c9=!0x0;for(const _0x54e1f3 of _0x53e75c['getRanges']())for(const _0x3abf24 of _0x251c8f)if(!_0x54e1f3['containsRange'](_0x3abf24)){_0x8ea2c9=!0x1;break;}if(_0x8ea2c9)return _0x53e75c;}const _0x279b28=_0x37c418(),_0x1b3016=_0x1a51fb['id'],_0x54c747='insertion:'+_0x471877,_0x9b2969=this['_setSuggestionData']({'id':_0x279b28,'type':_0x54c747,'createdAt':new Date(),'authorId':_0x1b3016,'attributes':_0x1aa089});for(const _0x8fa513 of _0x251c8f)this['_addSuggestionMarker'](_0x54c747,_0x279b28,_0x1b3016,_0x8fa513,yt['getMultiRangeId']());return _0x9b2969;}['markInlineFormat'](_0x19bc3c,_0x172e7b,_0x24d966=null,_0x1a006b={}){if(_0x24d966=_0x24d966||cn(_0x172e7b),_0x19bc3c['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x1a006b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2d034c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x24d966,'accept');return this['forceDefaultExecution'](()=>_0x2d034c([_0x19bc3c],_0x172e7b,_0x1a006b)),null;}const _0x54b2b9=this['editor']['plugins']['get']('Users')['me'],_0x12c8ca=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x464f25,meta:_0xd9e221}of this['_findSuggestions'](_0x19bc3c,'insertion'))_0xd9e221['isOwn']&&!_0xd9e221['isInsideObject']&&_0x12c8ca['push'](..._0x464f25['getRanges']());}const _0x2d1efe=function(_0x438568,_0x57d207){const _0x3782f0=[];for(const _0x1f90d7 of _0x57d207){const _0x8a0cb=_0x438568['getIntersection'](_0x1f90d7);_0x8a0cb&&_0x3782f0['push'](_0x8a0cb);}return _0x3782f0;}(_0x19bc3c,_0x12c8ca),_0x17e810=function(_0x34adfc,_0x4c8dc7){const _0x46c47e=[_0x34adfc];for(const _0x27c080 of _0x4c8dc7){let _0x16d895=0x0;for(;_0x16d895<_0x46c47e['length'];){const _0x12a4bb=_0x46c47e[_0x16d895]['getDifference'](_0x27c080);_0x46c47e['splice'](_0x16d895,0x1,..._0x12a4bb),_0x16d895+=_0x12a4bb['length'];}}return _0x46c47e;}(_0x19bc3c,_0x12c8ca);_0x2d1efe['length']&&this['_model']['change'](()=>{for(const _0x40ed6f of _0x2d1efe){const _0x48a478=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x24d966,'accept');this['forceDefaultExecution'](()=>_0x48a478([_0x40ed6f],_0x172e7b,_0x1a006b));}});for(const _0x6bb751 of _0x17e810){let _0x3b32ff=null,_0x450e2f=_0x6bb751['start'],_0x5cb76b=_0x6bb751['end'];for(const {suggestion:_0x119a80,meta:_0x191e11}of this['_findSuggestions'](_0x6bb751,'formatInline')){if(!_0x191e11['isOwn'])continue;if(_0x119a80['subType']!=_0x24d966)continue;if(!En(_0x119a80,_0x1a006b))continue;const _0x5ca9ca=_0x119a80['getFirstRange']();if(_0x5ca9ca['containsRange'](_0x6bb751,!0x0))return null;_0x450e2f=_0x450e2f['isBefore'](_0x5ca9ca['start'])?_0x450e2f:_0x5ca9ca['start'],_0x5cb76b=_0x5cb76b['isAfter'](_0x5ca9ca['end'])?_0x5cb76b:_0x5ca9ca['end'],_0x3b32ff?_0x5ca9ca['start']['isBefore'](_0x3b32ff['getFirstRange']()['start'])?(_0x3b32ff['removeMarkers'](),_0x3b32ff=_0x119a80):_0x119a80['removeMarkers']():_0x3b32ff=_0x119a80;}const _0x10e784=this['_model']['createRange'](_0x450e2f,_0x5cb76b);if(_0x3b32ff)this['_setSuggestionRange'](_0x3b32ff,_0x10e784);else{const _0x28b9ad=_0x37c418(),_0x32bbe1=_0x54b2b9['id'];this['_setSuggestionData']({'id':_0x28b9ad,'type':'formatInline:'+_0x24d966,'data':_0x172e7b,'createdAt':new Date(),'authorId':_0x32bbe1,'attributes':_0x1a006b}),this['_addSuggestionMarker']('formatInline:'+_0x24d966,_0x28b9ad,_0x32bbe1,_0x10e784);}}return null;}['markBlockFormat'](_0x148a42,_0x18a018,_0x438463=[],_0x174773=null,_0xd1dd89={}){_0x18a018['formatGroupId']||(_0x18a018['formatGroupId']=_0x18a018['commandName']),_0x18a018['multipleBlocks']=_0x148a42['is']('range'),_0x174773=_0x174773||cn(_0x18a018);const _0x186d30=_0x438463['map'](_0x5818db=>gn(_0x5818db,this['_model'])),_0x163f6e=_0x148a42['is']('range')?_0x148a42:gn(_0x148a42,this['_model']);if(this['_trackingSessionId']&&(_0xd1dd89['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1737b6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x174773,'accept');return this['forceDefaultExecution'](()=>_0x1737b6([_0x163f6e],_0x18a018,_0xd1dd89)),null;}_0x186d30['push'](_0x163f6e);let _0x1a1263=!0x0;for(const _0x5d570d of _0x186d30)if(!this['_rangeIsInLocalUserInsertion'](_0x5d570d)){_0x1a1263=!0x1;break;}if(_0x1a1263&&'always'!==this['_trackFormatChanges']){const _0x9ea0fa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x174773,'accept');return this['forceDefaultExecution'](()=>_0x9ea0fa([_0x163f6e],_0x18a018,_0xd1dd89)),null;}let _0x349814=null,_0x544053=_0x163f6e['start'],_0x46033e=_0x163f6e['end'];for(const {suggestion:_0x547357,meta:_0x5562ac}of this['_findSuggestions'](_0x163f6e,'formatBlock')){if(!_0x5562ac['isOwn'])continue;if(_0x5562ac['isNextTo']||_0x5562ac['containsRangeInObject']||_0x5562ac['isInsideObject'])continue;if(_0x547357['data']['formatGroupId']!=_0x18a018['formatGroupId'])continue;if(!En(_0x547357,_0xd1dd89))continue;const _0x478000=_0x547357['getFirstRange']();if(_0x547357['subType']==_0x174773){if(_0x478000['containsRange'](_0x163f6e,!0x0))return null;_0x544053=_0x544053['isBefore'](_0x478000['start'])?_0x544053:_0x478000['start'],_0x46033e=_0x46033e['isAfter'](_0x478000['end'])?_0x46033e:_0x478000['end'],_0x349814?_0x478000['start']['isBefore'](_0x349814['getFirstRange']()['start'])?(_0x349814['removeMarkers'](),_0x349814=_0x547357):_0x547357['removeMarkers']():_0x349814=_0x547357;}else{const _0x18fd54=_0x163f6e['getIntersection'](_0x478000);this['_cutOutSuggestionMarker'](_0x547357,_0x18fd54);}}const _0x1719f8=this['editor']['plugins']['get']('Users')['me'],_0x225681=_0x37c418(),_0x9ad393=_0x1719f8['id'];if(_0x349814)return this['_setSuggestionRange'](_0x349814,this['_model']['createRange'](_0x544053,_0x46033e)),_0x349814;{const _0x19e74e=this['_setSuggestionData']({'id':_0x225681,'type':'formatBlock:'+_0x174773,'data':_0x18a018,'createdAt':new Date(),'authorId':_0x9ad393,'attributes':_0xd1dd89});return this['_addSuggestionMarker']('formatBlock:'+_0x174773,_0x225681,_0x9ad393,this['_model']['createRange'](_0x544053,_0x46033e)),_0x19e74e;}}['markMultiRangeBlockFormat'](_0x4267fe,_0x1d2b37,_0x4f7352=[],_0x49ad5c=null,_0x16373a={}){_0x1d2b37['formatGroupId']||(_0x1d2b37['formatGroupId']=_0x1d2b37['commandName']);const _0x2db749=_0x4267fe[0x0];_0x1d2b37['multipleBlocks']=_0x2db749['is']('range'),_0x49ad5c=_0x49ad5c||cn(_0x1d2b37);const _0x3c912f=_0x4f7352['map'](_0x139f9a=>gn(_0x139f9a,this['_model'])),_0x239f2a=_0x2db749['is']('range')?_0x4267fe:_0x4267fe['map'](_0x54a73d=>gn(_0x54a73d,this['_model']));if(this['_trackingSessionId']&&(_0x16373a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x28816b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49ad5c,'accept');return this['forceDefaultExecution'](()=>_0x28816b(_0x239f2a,_0x1d2b37,_0x16373a)),null;}_0x3c912f['push'](..._0x239f2a);let _0x333a71=!0x0;for(const _0x402562 of _0x3c912f)if(!this['_rangeIsInLocalUserInsertion'](_0x402562)){_0x333a71=!0x1;break;}if(_0x333a71&&'always'!==this['_trackFormatChanges']){const _0x47f94b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49ad5c,'accept');return this['forceDefaultExecution'](()=>_0x47f94b(_0x239f2a,_0x1d2b37,_0x16373a)),null;}const _0x5d350c=this['editor']['plugins']['get']('Users')['me'];for(const _0x3826cf of this['getSuggestions']()){const _0x2b2db7=_0x3826cf['data'];if(_0x3826cf['author']['id']!=_0x5d350c['id'])continue;if('formatBlock'!=_0x3826cf['type']||_0x2b2db7['formatGroupId']!=_0x1d2b37['formatGroupId'])continue;if(!En(_0x3826cf,_0x16373a))continue;const _0x348cac=_0x3826cf['subType']==_0x49ad5c;for(let _0x16d7ef=0x0;_0x16d7ef<_0x239f2a['length'];_0x16d7ef++){const _0x5bceb3=_0x239f2a[_0x16d7ef];for(const _0x775440 of _0x3826cf['getMarkers']()){const _0x4d9f69=_0x775440['getRange']();if(_0x5bceb3['isEqual'](_0x4d9f69)){_0x348cac?(_0x239f2a['splice'](_0x16d7ef,0x1),_0x16d7ef--):_0x3826cf['removeMarker'](_0x775440['name']);break;}}}}if(0x0==_0x239f2a['length'])return null;const _0x481b60=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49ad5c,'join');for(const _0x4459c0 of this['getSuggestions']()){const _0x3ca9b9=_0x4459c0['data'];if(_0x4459c0['author']['id']==_0x5d350c['id']&&('formatBlock'==_0x4459c0['type']&&_0x3ca9b9['formatGroupId']==_0x1d2b37['formatGroupId']&&_0x4459c0['subType']==_0x49ad5c&&En(_0x4459c0,_0x16373a)&&(_0x481b60(_0x4459c0['getRanges'](),_0x239f2a)||_0x481b60(_0x239f2a,_0x4459c0['getRanges']())))){for(const _0x328138 of _0x239f2a)_0x4459c0['addRange'](_0x328138);return _0x4459c0;}}const _0x3a2b79=_0x37c418(),_0x4ee543=_0x5d350c['id'],_0x5ea3e9='formatBlock:'+_0x49ad5c,_0x5dcd5f=this['_setSuggestionData']({'id':_0x3a2b79,'type':_0x5ea3e9,'data':_0x1d2b37,'createdAt':new Date(),'authorId':_0x4ee543,'attributes':_0x16373a});for(const _0x42e2f7 of _0x239f2a)this['_addSuggestionMarker'](_0x5ea3e9,_0x3a2b79,_0x4ee543,_0x42e2f7,yt['getMultiRangeId']());return _0x5dcd5f;}['markDeletion'](_0x44138c,_0x4822aa=null,_0x11253c={}){if(_0x44138c['isCollapsed'])return null;const _0x27ee6b=this['editor']['plugins']['get']('Users')['me'],_0x4a9d76=new rt(_0x44138c['start'],_0x44138c['end']);this['_trackingSessionId']&&(_0x11253c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x303e9b,meta:_0x209387}of this['_findSuggestions'](_0x4a9d76,'insertion'))if(_0x209387['isOwn']&&!_0x209387['isNextTo']){if(_0x303e9b['isMultiRange']){const _0x132a01=_0x303e9b['getRanges']()['filter'](_0xc6d534=>'$graveyard'!=_0xc6d534['root']['rootName']);if(_0x132a01['every'](_0x5e2423=>_0x4a9d76['containsRange'](_0x5e2423,!0x0))&&_0x303e9b['discard'](),_0x132a01['some'](_0x169dca=>_0x169dca['containsRange'](_0x4a9d76,!0x0))){const _0x4fdfab=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4822aa,'accept');return this['forceDefaultExecution'](()=>_0x4fdfab([_0x4a9d76],null,_0x11253c)),null;}}else{const _0x337daa=_0x4a9d76['getIntersection'](_0x303e9b['getFirstRange']());null!==_0x337daa&&_0x303e9b['_onDiscard']([_0x337daa],null,_0x11253c);}}if(_0x4a9d76['detach'](),_0x4a9d76['isCollapsed']||'$graveyard'==_0x4a9d76['root']['rootName'])return null;let _0x21e451=null,_0x1ce0fe=_0x4a9d76['start'],_0x1026e0=_0x4a9d76['end'];const _0x232d90=this['_findSuggestions'](_0x4a9d76,'deletion');for(const {suggestion:_0x2d69d7,meta:_0x5ef7f0}of _0x232d90){const _0x1aabea=this['_model']['createRange'](_0x1ce0fe,_0x1026e0);if(_0x5ef7f0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5ef7f0['containsRangeInObject']&&!_0x5ef7f0['isInsideObject'])){if(_0x2d69d7['isMultiRange']){if(!En(_0x2d69d7,_0x11253c))continue;let _0x1fb294=!0x0;for(const _0x4fa42a of _0x2d69d7['getRanges']()){if(_0x4fa42a['containsRange'](_0x1aabea,!0x0))return _0x2d69d7;_0x1aabea['containsRange'](_0x4fa42a)||(_0x1fb294=!0x1);}_0x1fb294&&_0x2d69d7['discard']();}else{const _0x132f05=_0x2d69d7['getFirstRange']();if(_0x132f05['containsRange'](_0x1aabea,!0x0))return _0x2d69d7;if(!En(_0x2d69d7,_0x11253c)){_0x1aabea['containsRange'](_0x132f05)?_0x2d69d7['removeMarkers']():_0x132f05['containsPosition'](_0x1ce0fe)?_0x1ce0fe=_0x132f05['end']:_0x132f05['containsPosition'](_0x1026e0)&&(_0x1026e0=_0x132f05['start']);continue;}_0x1ce0fe=_0x1ce0fe['isBefore'](_0x132f05['start'])?_0x1ce0fe:_0x132f05['start'],_0x1026e0=_0x1026e0['isAfter'](_0x132f05['end'])?_0x1026e0:_0x132f05['end'],_0x11253c=Object['assign']({},_0x2d69d7['attributes']),_0x21e451?_0x132f05['start']['isBefore'](_0x21e451['getFirstRange']()['start'])?(_0x21e451['removeMarkers'](),_0x21e451=_0x2d69d7):_0x2d69d7['removeMarkers']():_0x21e451=_0x2d69d7;}}}if(_0x21e451)return this['_setSuggestionRange'](_0x21e451,this['_model']['createRange'](_0x1ce0fe,_0x1026e0)),_0x21e451;{const _0x52dae9=_0x37c418(),_0x108fe3=this['_model']['createRange'](_0x1ce0fe,_0x1026e0),_0x1cb8af=_0x27ee6b['id'],_0x206006=_0x4822aa?'deletion:'+_0x4822aa:'deletion',_0x5a415b=this['_setSuggestionData']({'id':_0x52dae9,'type':_0x206006,'createdAt':new Date(),'authorId':_0x1cb8af,'attributes':_0x11253c});return this['_addSuggestionMarker'](_0x206006,_0x52dae9,_0x1cb8af,_0x108fe3),_0x5a415b;}}['markMultiRangeDeletion'](_0x2351b6,_0x5d2dce='multi',_0x3531b2={}){const _0x2fd1a7=this['editor']['plugins']['get']('Users')['me'],_0x2ef26f=_0x2351b6['map'](_0x4e28cb=>new rt(_0x4e28cb['start'],_0x4e28cb['end'])),_0xd72370=new Set();this['_trackingSessionId']&&(_0x3531b2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x54e1a5,meta:_0x463c71}of this['_findSuggestions'](_0x2ef26f,'insertion'))_0x463c71['isOwn']&&!_0x463c71['isNextTo']&&_0xd72370['add'](_0x54e1a5);for(const _0x1ecc2b of _0xd72370)if(_0x1ecc2b['isMultiRange']){const _0x599cee=_0x1ecc2b['getRanges']();if(_0x1ecc2b['attributes']&&_0x1ecc2b['attributes']['skipNestingCheck']||_0x599cee['every'](_0x570479=>_0x2ef26f['some'](_0x34227c=>_0x34227c['containsRange'](_0x570479,!0x0)))&&_0x1ecc2b['discard'](),_0x2ef26f['every'](_0x457bd7=>_0x599cee['some'](_0x104b8b=>_0x104b8b['containsRange'](_0x457bd7,!0x0)))){const _0x51fcbc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5d2dce,'accept');return this['forceDefaultExecution'](()=>_0x51fcbc(_0x2351b6,null,_0x3531b2)),null;}}else{const _0x4734ff=_0x1ecc2b['getFirstRange']();if(_0x2ef26f['some'](_0x3fdc4e=>_0x3fdc4e['containsRange'](_0x4734ff,!0x0))&&_0x1ecc2b['discard'](),_0x2ef26f['every'](_0x5934de=>_0x4734ff['containsRange'](_0x5934de,!0x0))){const _0x60f46c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5d2dce,'accept');return this['forceDefaultExecution'](()=>_0x60f46c(_0x2ef26f,null,_0x3531b2)),null;}}const _0x546fc6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5d2dce,'join');let _0x210702=null;for(const _0x322fce of this['getSuggestions']())if(_0x322fce['author']['id']==_0x2fd1a7['id']&&_0x322fce['isInContent']&&'deletion'==_0x322fce['type']&&_0x322fce['subType']==_0x5d2dce&&En(_0x322fce,_0x3531b2)&&(_0x546fc6(_0x322fce['getRanges'](),_0x2ef26f)||_0x546fc6(_0x2ef26f,_0x322fce['getRanges']()))){if(_0x210702){if(_0x322fce['commentThread']&&_0x322fce['commentThread']['length'])continue;for(const _0x2551fd of _0x322fce['getRanges']())_0x210702['isIntersectingWithRange'](_0x2551fd)||_0x210702['addRange'](_0x2551fd);_0x322fce['removeMarkers']();}else{_0x210702=_0x322fce;for(const _0x4a57f1 of _0x2ef26f)_0x322fce['isIntersectingWithRange'](_0x4a57f1)||_0x322fce['addRange'](_0x4a57f1);}}if(_0x210702)return _0x210702;_0xd72370['clear']();for(const {suggestion:_0x48d70b,meta:_0x429b69}of this['_findSuggestions'](_0x2ef26f,'deletion'))_0x429b69['isOwn']&&(this['_mergeNestedSuggestions']||!_0x429b69['containsRangeInObject']&&!_0x429b69['isInsideObject'])&&En(_0x48d70b,_0x3531b2)&&_0xd72370['add'](_0x48d70b);for(const _0x43d1a0 of _0xd72370){const _0xdf1507=_0x43d1a0['getRanges']();if((!_0x3531b2||!_0x3531b2['skipNestingCheck'])&&_0x2ef26f['every'](_0x4fb346=>_0xdf1507['some'](_0x5adcc2=>_0x5adcc2['containsRange'](_0x4fb346,!0x0))))return _0x43d1a0;_0x43d1a0['attributes']&&_0x43d1a0['attributes']['skipNestingCheck']||_0xdf1507['every'](_0x3afdd6=>_0x2ef26f['some'](_0x2a95ff=>_0x2a95ff['containsRange'](_0x3afdd6,!0x0)))&&_0x43d1a0['discard']();}const _0x57a34f=_0x37c418(),_0x420af0=_0x2fd1a7['id'],_0x1374a6='deletion:'+_0x5d2dce,_0x10fbd3=this['_setSuggestionData']({'id':_0x57a34f,'type':_0x1374a6,'createdAt':new Date(),'authorId':_0x420af0,'attributes':_0x3531b2});for(const _0x3d23d6 of _0x2ef26f)_0x3d23d6['detach'](),_0x3d23d6['isCollapsed']||'$graveyard'==_0x3d23d6['root']['rootName']||this['_addSuggestionMarker'](_0x1374a6,_0x57a34f,_0x420af0,_0x3d23d6,yt['getMultiRangeId']());return _0x10fbd3;}['markAttributeChange'](_0x38512b,_0x7f56ed,_0x319548,_0x587b29,_0x5c5427){if(_0x38512b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1c3d4b=this['editor']['plugins']['get']('Users')['me']['id'],_0x4485ac=Array['from'](this['_suggestions']['values']())['filter'](_0x1752a6=>'attribute'==_0x1752a6['type']&&_0x1752a6['data']['key']==_0x7f56ed&&_0x1752a6['isIntersectingWithRange'](_0x38512b));if(this['_trackingSessionId']&&(_0x5c5427['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1d074b=this['_findSuggestions'](_0x38512b,'insertion')['filter'](({meta:_0x339689})=>_0x339689['isOwn']&&!_0x339689['isInsideObject']&&!_0x339689['isNextTo'])['map'](({suggestion:_0x351608})=>_0x351608);_0x4485ac['unshift'](..._0x1d074b);}const _0x3056ae=new Map([[_0x38512b,_0x319548]]);for(const _0x269c86 of _0x4485ac){const _0x28af4c='attribute'==_0x269c86['type']?_0x269c86['data']['oldValue']:void 0x0,_0x3a75f4=_0x269c86['getFirstRange'](),_0x3608f5=Array['from'](_0x3056ae['keys']())['find'](_0x596b71=>_0x596b71['isIntersecting'](_0x3a75f4));if(!_0x3608f5)continue;const _0x34ab01=_0x3608f5['getDifference'](_0x3a75f4);this['_suggestionsConversion']['isBlockAttribute'](_0x7f56ed)&&'insertion'==_0x269c86['type']&&0x0!=_0x34ab01['length']||(_0x3056ae['delete'](_0x3608f5),_0x34ab01['forEach'](_0x33c8f9=>{_0x3056ae['set'](_0x33c8f9,_0x319548);}),'insertion'!=_0x269c86['type']&&_0x28af4c!=_0x587b29&&_0x3056ae['set'](_0x3608f5['getIntersection'](_0x3a75f4),_0x28af4c));}const _0x8ff069=[];for(const [_0x5d1198,_0x44258b]of _0x3056ae){const _0x346f19=_0x37c418(),_0x2ac58c={'key':_0x7f56ed,'oldValue':_0x44258b,'newValue':_0x587b29};_0x7f56ed['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':_0x7f56ed});const _0x3605bf=('attribute:'+_0x7f56ed+'|'+cn({'newValue':_0x587b29}))['substring'](0x0,0x3c),_0x1363c3=this['_setSuggestionData']({'id':_0x346f19,'type':_0x3605bf,'data':_0x2ac58c,'createdAt':new Date(),'authorId':_0x1c3d4b,'attributes':_0x5c5427});_0x8ff069['push'](_0x1363c3),this['_addSuggestionMarker'](_0x3605bf,_0x346f19,_0x1c3d4b,_0x5d1198);}return _0x8ff069;}['enableDefaultAttributesIntegration'](_0xc44b39){this['enableCommand'](_0xc44b39,(_0x2dea1b,..._0x48fb2e)=>{this['recordAttributeChanges'](()=>{_0x2dea1b(..._0x48fb2e);});});}['startTrackingSession'](_0x2aa101){return this['_trackingSessionId']=void 0x0!==_0x2aa101?_0x2aa101:_0x37c418(),this['_trackingSessionId'];}['_getAttributeKey'](_0x46f30f){return'attribute'==_0x46f30f['type']?_n(_0x46f30f['subType']):null;}['_applyOperationsAsSuggestions'](_0x1913c3){if(0x0==_0x1913c3['length'])return;const _0x4001ab=this['editor'],_0x550000=_0x4001ab['plugins']['get'](_0x3c1e26),_0x586f20=[],_0x5a2100=_0x2c7b56=>{const _0x2149ca=_0x2c7b56['_aiSource'];return _0x2149ca?{'@ai':{'type':_0x2149ca}}:{};},_0x317c74=(_0x1d60b0,_0x2cf256,_0x1a0bff)=>{for(let _0x2bdcd3=_0x2cf256;_0x2bdcd3<_0x1d60b0['operations']['length'];_0x2bdcd3++){const _0x1271bf=_0x1d60b0['operations'][_0x2bdcd3];'marker'===_0x1271bf['type']&&(_0x1271bf['_aiSource']=_0x1a0bff);}};_0x4001ab['model']['change'](_0x3fa8d=>{for(let _0x418b20=0x0;_0x418b20<_0x1913c3['length'];_0x418b20++){const _0x364cfe=_0x1913c3[_0x418b20],_0xdf5da0=_0x364cfe['_aiSource'],_0x198ba4=_0x3fa8d['batch']['operations']['length'];if(_0x364cfe['baseVersion']=_0x4001ab['model']['document']['version'],_0x364cfe['isDocumentOperation']=!0x0,_0x550000['isMarkedRemoveOperation'](_0x364cfe)){const _0xed7c84=_0x48fe62(_0x364cfe['newRange'],_0x4001ab['model']);_0x586f20['unshift']({'range':rt['fromRange'](_0xed7c84),'opAttributes':_0x5a2100(_0x364cfe),'aiSource':_0xdf5da0});}else{switch(_0x364cfe['type']){case'rename':{const _0x577345=_0x364cfe['oldName'],_0x533fbc=_0x364cfe['newName'];if(_0x577345==_0x533fbc)break;_0x3fa8d['batch']['addOperation'](_0x364cfe),_0x4001ab['model']['applyOperation'](_0x364cfe);const _0x19c7e7='$elementName',_0x3d3243=_0x364cfe['position'],_0x23e222=_0x4001ab['model']['createRange'](_0x3d3243,_0x4001ab['model']['createPositionAt'](_0x3d3243['nodeAfter'],'end'));this['markAttributeChange'](_0x23e222,_0x19c7e7,_0x577345,_0x533fbc,{..._0x5a2100(_0x364cfe),'groupId':_0x37c418()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xb38ba0=_0x364cfe['oldValue'],_0x132cbb=_0x364cfe['newValue'];if(_0xb38ba0==_0x132cbb)break;_0x3fa8d['batch']['addOperation'](_0x364cfe),_0x4001ab['model']['applyOperation'](_0x364cfe);const _0x1b57bf=_0x364cfe['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x1b57bf))break;const _0x28a37b=_0x48fe62(_0x364cfe['range'],_0x4001ab['model']);this['markAttributeChange'](_0x28a37b,_0x1b57bf,_0xb38ba0,_0x132cbb,{..._0x5a2100(_0x364cfe),'groupId':_0x37c418()});break;}case'insert':{if(_0x3fa8d['batch']['addOperation'](_0x364cfe),_0x4001ab['model']['applyOperation'](_0x364cfe),_0x1913c3[_0x418b20+0x1]&&'move'==_0x1913c3[_0x418b20+0x1]['type'])break;const _0x301849=_0x364cfe['position'],_0x15398d=_0x364cfe['howMany'],_0x2d2aff=_0x48fe62(_0x4001ab['model']['createRange'](_0x301849,_0x301849['getShiftedBy'](_0x15398d)),_0x4001ab['model']);this['markInsertion'](_0x2d2aff,null,{..._0x5a2100(_0x364cfe)});break;}case'split':{_0x3fa8d['batch']['addOperation'](_0x364cfe),_0x4001ab['model']['applyOperation'](_0x364cfe);const _0x19948b=_0x364cfe['splitPosition'],_0x277ae5=_0x364cfe['moveTargetPosition'],_0x386c91=_0x4001ab['model']['createRange'](_0x19948b,_0x277ae5);this['markInsertion'](_0x386c91,null,{..._0x5a2100(_0x364cfe)});break;}case'move':case'remove':_0x3fa8d['batch']['addOperation'](_0x364cfe),_0x4001ab['model']['applyOperation'](_0x364cfe);}_0xdf5da0&&_0x317c74(_0x3fa8d['batch'],_0x198ba4,_0xdf5da0);}}for(const {range:_0x1af3ca,opAttributes:_0x3a70c3,aiSource:_0x43f793}of _0x586f20){const _0x115b48=_0x3fa8d['batch']['operations']['length'];_0x1af3ca['detach'](),this['markDeletion'](_0x1af3ca,null,{..._0x3a70c3}),_0x43f793&&_0x317c74(_0x3fa8d['batch'],_0x115b48,_0x43f793);}});}['_setSuggestionRange'](_0x3c93aa,_0x3e45c9){const _0xc9f5a4=_0x3c93aa['getFirstMarker']();this['_model']['change'](_0x3f9250=>{_0x3f9250['updateMarker'](_0xc9f5a4,{'range':_0x3e45c9});});}['_addThreadToSuggestion'](_0x59459f){const _0x5cd729=_0x59459f['id'],_0x5c3440=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5cd729)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5c3440,'threadId':_0x5cd729,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x32f655=this['_commentsRepository']['getCommentThread'](_0x5cd729);_0x32f655['unbind']('isRemovable'),_0x32f655['isRemovable']=!0x1,_0x59459f['commentThread']=_0x32f655;}['_checkSuggestionCorrectness'](_0x482a19,_0x11fbd5,_0xa86103,_0x39c9df){if(_0x482a19['type']!=_0x11fbd5||_0x482a19['subType']!=_0xa86103||_0x482a19['creator']['id']!=_0x39c9df)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1ce43c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x165e86,_0x17044e){const _0x1f23f8=_0x165e86['getFirstRange']();if(_0x17044e['isEqual'](_0x1f23f8))_0x165e86['removeMarkers']();else{if(_0x1f23f8['containsRange'](_0x17044e)){const _0x4dc40c=this['_model']['createPositionAt'](_0x17044e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x165e86,this['_model']['createRange'](_0x1f23f8['start'],_0x4dc40c));const _0x201702=_0x37c418(),_0x32bd97=_0x165e86['creator']['id'],_0x821f3b=_0x165e86['type']+':'+_0x165e86['subType'];this['_setSuggestionData']({'id':_0x201702,'type':_0x821f3b,'createdAt':new Date(),'authorId':_0x32bd97,'data':_0x165e86['data'],'attributes':_0x165e86['attributes']});const _0x504e89=this['_model']['createPositionAt'](_0x17044e['end']['parent'],'after'),_0x2140b6=this['_model']['createRange'](_0x504e89,_0x1f23f8['end']);this['_addSuggestionMarker'](_0x821f3b,_0x201702,_0x32bd97,_0x2140b6);}else{if(_0x1f23f8['containsPosition'](_0x17044e['start'])){const _0xbea990=this['_model']['createPositionAt'](_0x17044e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x165e86,this['_model']['createRange'](_0x1f23f8['start'],_0xbea990));}else{const _0x239ce3=this['_model']['createPositionAt'](_0x17044e['end']['parent'],'after');this['_setSuggestionRange'](_0x165e86,this['_model']['createRange'](_0x239ce3,_0x1f23f8['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x193ef1){for(const {suggestion:_0x475692,meta:_0x3fb946}of this['_findSuggestions'](_0x193ef1,'insertion')){if(!_0x3fb946['isOwn'])continue;const _0x2e6006=_0x475692['getRanges']();for(const _0x397058 of _0x2e6006)if(!_0x193ef1['getDifference'](_0x397058)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x23e6a6){return this['editor']['plugins']['get']('Users')['getUser'](_0x23e6a6);}['_getExternalAuthor'](_0x4e5475){const _0x1c6580=this['editor']['plugins']['get']('Users'),_0x1ff8db=_0x431d55('external:'+_0x4e5475),_0x5462ad=_0x1c6580['getUser'](_0x1ff8db);return _0x5462ad||_0x1c6580['addUser']({'id':_0x1ff8db,'name':_0x4e5475});}['_createSuggestion'](_0xf1a2f2,_0x257869,_0x176153,_0x3c6461,_0x373fd6,_0x269da2){const _0x49cf91=this['_getAuthorFromId'](_0x3c6461);if(!_0x49cf91)throw new _0x1ce43c('track-changes-user-not-found',this,{'authorId':_0x3c6461,'suggestionId':_0x176153});const _0x446252=this['_suggestionFactory']['buildSuggestion'](_0xf1a2f2,_0x257869,_0x176153,_0x49cf91,_0x373fd6,_0x2f1a51=>{this['_updateSuggestionData'](_0x176153,{'attributes':_0x2f1a51});const _0x46eb0d=this['getSuggestion'](_0x176153);this['_joinWithAdjacentSuggestions'](new Set([_0x46eb0d])),this['_refreshSuggestionsChain'](new Set([_0x46eb0d]));},_0x269da2);return this['listenTo'](_0x446252,'accept',()=>{this['_updateSuggestionData'](_0x176153,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x446252,'discard',()=>{this['_updateSuggestionData'](_0x176153,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x176153,_0x446252),this['_suggestionState']['set'](_0x446252,'notReady'),_0x446252;}['_breakSuggestionMarker'](_0x1c18a0,_0xd28fc9,_0x40f31e){const _0x1372bc=_0x1c18a0['getFirstRange'](),_0x5d65cd=_0x1372bc['start'],_0x42655b=_0x1372bc['end'];this['_setSuggestionRange'](_0x1c18a0,this['_model']['createRange'](_0x5d65cd,_0xd28fc9));const _0x5447f3=_0x37c418(),_0x27e218=_0x1c18a0['creator']['id'],_0x1f5ae2=_0x1c18a0['type']+(_0x1c18a0['subType']?':'+_0x1c18a0['subType']:'');this['_setSuggestionData']({'id':_0x5447f3,'type':_0x1f5ae2,'createdAt':new Date(),'authorId':_0x27e218,'originalSuggestionId':_0x1c18a0['_originalSuggestionId']||_0x1c18a0['id'],'attributes':_0x1c18a0['attributes'],'data':_0x1c18a0['data']});const _0x42b320=this['_getAttributeKey'](_0x1c18a0);('formatBlock'==_0x1c18a0['type']||_0x42b320&&this['_suggestionsConversion']['isBlockAttribute'](_0x42b320))&&(_0x40f31e=this['_model']['createPositionBefore'](_0x40f31e['parent'])),this['_addSuggestionMarker'](_0x1f5ae2,_0x5447f3,_0x27e218,this['_model']['createRange'](_0x40f31e,_0x42655b));}['_findSuggestions'](_0x1e6180,_0x36e599=null){const _0xe6bb28=[],_0x1a729a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1e6180)||(_0x1e6180=[_0x1e6180]);for(const _0x310dec of this['getSuggestions']()){if(!_0x310dec['isInContent'])continue;if(_0x36e599&&_0x310dec['type']!=_0x36e599)continue;let _0x1b66cc=!0x1;for(const _0x37f382 of _0x310dec['getRanges']()){for(const _0x19f928 of _0x1e6180){const _0x55516e=_0x19f928['start']['isEqual'](_0x37f382['end'])||_0x19f928['end']['isEqual'](_0x37f382['start']);if(_0x55516e||_0x19f928['getIntersection'](_0x37f382)){const _0x1841a3=_0x19f928['containsRange'](_0x37f382)&&rn(this['_model']['schema'],_0x37f382['start'],_0x19f928),_0x4068a9=_0x37f382['containsRange'](_0x19f928)&&rn(this['_model']['schema'],_0x19f928['start'],_0x37f382);_0xe6bb28['push']({'suggestion':_0x310dec,'meta':{'isOwn':_0x1a729a==_0x310dec['author'],'isNextTo':_0x55516e,'isInsideObject':_0x1841a3,'containsRangeInObject':_0x4068a9}}),_0x1b66cc=!0x0;break;}}if(_0x1b66cc)break;}}return _0xe6bb28;}['_addSuggestionMarker'](_0x455ed9,_0x39f487,_0x37853b,_0xe634,_0x374e86){this['_model']['change'](_0x58ce1b=>{let _0x40693e='suggestion:'+_0x455ed9+':'+_0x39f487+':'+_0x37853b;_0x374e86&&(_0x40693e=_0x40693e+':'+_0x374e86),_0x58ce1b['addMarker'](_0x40693e,{'range':_0xe634,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3b01ed){const _0x4931f1=_0x3b01ed['previous'],_0xa3e8b7=_0x3b01ed['next'];_0x3b01ed['previous']=null,_0x3b01ed['next']=null,null!=_0x4931f1&&_0x4931f1['next']==_0x3b01ed&&(_0x4931f1['next']=_0xa3e8b7),null!=_0xa3e8b7&&_0xa3e8b7['previous']==_0x3b01ed&&(_0xa3e8b7['previous']=_0x4931f1),'ready'==this['_suggestionState']['get'](_0x3b01ed)&&(this['_suggestionState']['set'](_0x3b01ed,'removed'),this['fire']('suggestionUnloaded',_0x3b01ed,_0x4931f1,_0xa3e8b7));}['_setSuggestionData'](_0x516ad7){const _0xd1cf24=_0x516ad7['id'],_0xef6bd9=this['addSuggestionData'](_0x516ad7);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x548e98=this['editor']['plugins']['get']('PendingActions'),_0x1e4706=_0xef6bd9['hasComments'],_0x5dac37=_0xef6bd9['subType']?_0xef6bd9['type']+':'+_0xef6bd9['subType']:_0xef6bd9['type'],_0x26161e=this['editor']['locale'],_0x7b3bc3=_0x548e98['add'](St(_0x26161e,'PENDING_ACTION_SUGGESTION')),_0x55a693={'id':_0xd1cf24,'type':_0x5dac37,'hasComments':_0x1e4706,'data':_0x516ad7['data']||null,'originalSuggestionId':_0x516ad7['originalSuggestionId']||null,'attributes':_0xef6bd9['attributes']};this['_adapter']['addSuggestion'](_0x55a693)['then'](_0x3c5469=>{_0xef6bd9['_saved']=!0x0,_0x548e98['remove'](_0x7b3bc3),_0x3c5469&&_0x3c5469['createdAt']&&(this['_suggestions']['get'](_0xd1cf24)['createdAt']=_0x3c5469['createdAt']);})['catch'](_0x20313e=>{throw _0x19f2a6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xef6bd9['discard']();}),_0xef6bd9['stopListening'](),this['_suggestions']['delete'](_0xef6bd9['id']),this['_suggestionState']['delete'](_0xef6bd9),_0x20313e;});}return _0xef6bd9;}['_updateSuggestionData'](_0x37d812,_0x43bf2d){const _0x43657d=this['editor']['plugins']['get']('PendingActions'),_0x23bb1e=this['getSuggestion'](_0x37d812);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x23bb1e['_saved']){const _0x54d2a6=_0x43657d['add'](St(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x37d812,_0x43bf2d)['then'](()=>{_0x43657d['remove'](_0x54d2a6);});}else _0x23bb1e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x37d812,_0x43bf2d);});}}['_getSuggestionData'](_0x50c848){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1ce43c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x50c848);}['_handleNewSuggestionMarker'](_0xb4899f){const {id:_0x1188e0,type:_0x25268d,subType:_0x553211,authorId:_0x422eaa}=tt(_0xb4899f),_0xfced78=this['_suggestions']['get'](_0x1188e0)||this['_createSuggestion'](_0x25268d,_0x553211,_0x1188e0,_0x422eaa,{});switch(this['_checkSuggestionCorrectness'](_0xfced78,_0x25268d,_0x553211,_0x422eaa),this['_suggestionState']['get'](_0xfced78)){case'notReady':this['_getSuggestionData'](_0x1188e0)['then'](_0x5776c0=>{let _0x258f5d=Promise['resolve']();_0x5776c0['hasComments']&&(_0x258f5d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1188e0})),_0x258f5d['then'](()=>{this['addSuggestionData'](_0x5776c0)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xfced78,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1188e0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xfced78,'ready'),this['fire']('suggestionLoaded',_0xfced78);break;case'ready':this['fire']('suggestionChanged',_0xfced78);}return _0xfced78['addMarkerName'](_0xb4899f),_0xfced78;}['_refreshSuggestionsChain'](_0x1b0f3e){const _0x4aef60=Array['from'](_0x1b0f3e),_0x59e25f=_0x4aef60['filter'](_0x4ce3c1=>'attribute'==_0x4ce3c1['type']);this['_refreshAttributeSuggestionsChain'](_0x59e25f);const _0x377d1e=_0x4aef60['filter'](_0xf95a19=>!_0xf95a19['isMultiRange']&&'attribute'!=_0xf95a19['type']),_0x334b68=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x590766=>!_0x590766['isMultiRange']&&'attribute'!=_0x590766['type']),_0x3ca429=_0x334b68['filter'](_0xa4ba1e=>!_0x1b0f3e['has'](_0xa4ba1e)),_0x26402c=new Map(_0x334b68['map'](_0x4c2a5e=>[_0x4c2a5e,this['_suggestionFactory']['getSuggestionCallback'](_0x4c2a5e['type'],_0x4c2a5e['subType'],'chain')])),_0x3fed4e=new Map(_0x334b68['map'](_0x318bd=>[_0x318bd,_0x318bd['getFirstRange']()])),_0x39aec4=new Set(),_0x2f1993=new Set();for(let _0x349541=0x0;_0x349541<_0x377d1e['length'];_0x349541++)_0xd4b47b(_0x377d1e[_0x349541],_0x377d1e,_0x349541+0x1);for(let _0x322157=0x0;_0x322157<_0x377d1e['length'];_0x322157++)_0xd4b47b(_0x377d1e[_0x322157],_0x3ca429,0x0);const _0x157d4e=new Set();for(let _0x5be6d6=0x0;_0x5be6d6<_0x377d1e['length'];_0x5be6d6++){const _0x34718e=_0x377d1e[_0x5be6d6];!_0x2f1993['has'](_0x34718e)&&_0x34718e['previous']&&(_0x157d4e['add'](_0x34718e['previous']),_0x34718e['previous']['next']===_0x34718e&&(_0x34718e['previous']['next']=null),_0x34718e['previous']=null),!_0x39aec4['has'](_0x34718e)&&_0x34718e['next']&&(_0x157d4e['add'](_0x34718e['next']),_0x34718e['next']['previous']===_0x34718e&&(_0x34718e['next']['previous']=null),_0x34718e['next']=null);}function _0xd4b47b(_0x17dba4,_0x3f4208,_0x397af0){for(let _0x2ba440=_0x397af0;_0x2ba440<_0x3f4208['length'];_0x2ba440++){const _0x33e771=_0x373354(_0x17dba4,_0x3f4208[_0x2ba440]);_0x33e771&&(_0x33e771[0x0]['next']=_0x33e771[0x1],_0x33e771[0x1]['previous']=_0x33e771[0x0],_0x39aec4['add'](_0x33e771[0x0]),_0x2f1993['add'](_0x33e771[0x1]));}}function _0x373354(_0x48c576,_0x220b0a){if(_0x48c576['author']['id']!==_0x220b0a['author']['id'])return null;const _0xfa5bc9=_0x26402c['get'](_0x48c576)(_0x48c576,_0x220b0a,_0x3fed4e['get'](_0x48c576),_0x3fed4e['get'](_0x220b0a));return _0xfa5bc9&&_0x26402c['get'](_0x220b0a)(_0x48c576,_0x220b0a,_0x3fed4e['get'](_0x48c576),_0x3fed4e['get'](_0x220b0a))?_0xfa5bc9[0x1]['commentThread']&&_0xfa5bc9[0x1]['commentThread']['length']?null:_0xfa5bc9:null;}_0x157d4e['size']&&this['_refreshSuggestionsChain'](_0x157d4e);}['_refreshAttributeSuggestionsChain'](_0x531747){if(0x0==_0x531747['length'])return;const _0x52453b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x627187=>'attribute'==_0x627187['type']&&_0x627187['_isDataLoaded']),_0x421b5d=[],_0xd981f0=new Map();for(const _0x169d9a of _0x52453b){const _0x15460e=_0x431d55(_0x169d9a['attributes']);_0xd981f0['has'](_0x15460e)||(_0xd981f0['set'](_0x15460e,_0x421b5d['length']),_0x421b5d['push']([])),_0x421b5d[_0xd981f0['get'](_0x15460e)]['push'](_0x169d9a);}!(function(){_0x421b5d['sort']((_0x4af6c8,_0x4befa3)=>{const _0x55103f=_0x4af6c8[0x0]['createdAt'],_0x27b4f4=_0x4befa3[0x0]['createdAt'];return _0x55103f==_0x27b4f4?_0x4af6c8[0x0]['attributes']['groupId']<_0x4befa3[0x0]['attributes']['groupId']?-0x1:0x1:_0x55103f<_0x27b4f4?-0x1:0x1;});for(const _0xf1cb5 of _0x421b5d)_0xf1cb5['sort']((_0x16d3f5,_0x254d1b)=>_0x16d3f5['id']<_0x254d1b['id']?-0x1:0x1);}());for(let _0x39fad7=0x0;_0x39fad7<_0x421b5d['length'];_0x39fad7++){if(0x0==_0x421b5d[_0x39fad7]['length'])continue;const _0x5a2236=[];for(let _0x2b30e2=_0x39fad7+0x1;_0x2b30e2<_0x421b5d['length'];_0x2b30e2++)0x0!=_0x421b5d[_0x2b30e2]['length']&&_0x9aa0a3(_0x421b5d[_0x39fad7],_0x421b5d[_0x2b30e2])&&_0x5a2236['push'](_0x2b30e2);for(const _0x8fa4ac of _0x5a2236)_0x421b5d[_0x39fad7]=_0x421b5d[_0x39fad7]['concat'](_0x421b5d[_0x8fa4ac]),_0x421b5d[_0x8fa4ac]=[];}for(const _0x48e124 of _0x421b5d)for(let _0x324207=0x0;_0x324207<_0x48e124['length'];_0x324207++){const _0x363580=_0x48e124[_0x324207+0x1]||null;_0x48e124[_0x324207]['next']!==_0x363580&&(_0x48e124[_0x324207]['next']=_0x363580);}for(const _0x157803 of _0x421b5d)for(let _0x2b7dce=0x0;_0x2b7dce<_0x157803['length'];_0x2b7dce++){const _0xd451fd=_0x157803[_0x2b7dce-0x1]||null;_0x157803[_0x2b7dce]['previous']!==_0xd451fd&&(_0x157803[_0x2b7dce]['previous']=_0xd451fd);}function _0x9aa0a3(_0x4bb935,_0x2a297e){return(_0x4bb935[0x0]['attributes']['groupId']===_0x2a297e[0x0]['attributes']['groupId']||_0x4bb935[0x0]['author']===_0x2a297e[0x0]['author'])&&(!!function(_0x588e44,_0x2e19e3){return!_0x588e44['hasComments']&&!_0x2e19e3['hasComments']||(!_0x588e44['hasComments']||!_0x2e19e3['hasComments'])&&(!!(_0x588e44['hasComments']&&_0x2e19e3['createdAt']<_0x588e44['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x2e19e3['hasComments']&&_0x588e44['createdAt']<_0x2e19e3['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x4bb935[0x0],_0x2a297e[0x0])&&(!!ct(lt(_0x4bb935[0x0]['attributes'],['groupId','trackingSessionId']),lt(_0x2a297e[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0x4bb935[0x0]['attributes']['groupId']==_0x2a297e[0x0]['attributes']['groupId']||_0x4bb935[0x0]['attributes']['trackingSessionId']===_0x2a297e[0x0]['attributes']['trackingSessionId']&&(!!_0x4bb935['every'](_0x3a63e8=>_0x2a297e['some'](_0x3cfe19=>_0x3a63e8['getFirstRange']()['isEqual'](_0x3cfe19['getFirstRange']())))&&_0x2a297e['every'](_0x455c2d=>_0x4bb935['some'](_0xf88183=>_0x455c2d['getFirstRange']()['isEqual'](_0xf88183['getFirstRange']())))))));}}['_joinWithAdjacentSuggestions'](_0xbb3263){const _0x3cf7c6=Array['from'](_0xbb3263),_0x2abba5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x21b89b=_0x2abba5['filter'](_0x11885d=>!_0xbb3263['has'](_0x11885d)),_0x4d1f97=new Map(_0x3cf7c6['map'](_0x1b34af=>[_0x1b34af,this['_suggestionFactory']['getSuggestionCallback'](_0x1b34af['type'],_0x1b34af['subType'],'join')])),_0x13031f=new Map(_0x2abba5['map'](_0xb91ab2=>[_0xb91ab2,_0xb91ab2['getRanges']()]));for(let _0x5e3e7a=0x0;_0x5e3e7a<_0x3cf7c6['length'];_0x5e3e7a++)if(_0x4e2db9(this,_0x3cf7c6[_0x5e3e7a],_0x3cf7c6,_0x5e3e7a+0x1))return!0x0;for(let _0x1eb165=0x0;_0x1eb165<_0x3cf7c6['length'];_0x1eb165++)if(_0x4e2db9(this,_0x3cf7c6[_0x1eb165],_0x21b89b,0x0))return!0x0;return!0x1;function _0x4e2db9(_0x5cdcd8,_0x3f5914,_0x1491f0,_0x5b2240){for(let _0x3e72f3=_0x5b2240;_0x3e72f3<_0x1491f0['length'];_0x3e72f3++){const _0x3c3d0b=_0x1491f0[_0x3e72f3];if(_0x3c3d0b['type']!==_0x3f5914['type']||_0x3c3d0b['author']['id']!==_0x3f5914['author']['id']||_0x3c3d0b['subType']!==_0x3f5914['subType'])continue;if(!mn(_0x3f5914,_0x3c3d0b))continue;if('attribute'==_0x3f5914['type']&&_0x3f5914['data']['oldValue']!=_0x3c3d0b['data']['oldValue'])continue;if('attribute'==_0x3f5914['type']&&_0x5cdcd8['_suggestionsConversion']['isBlockAttribute'](_0x3f5914['data']['key']))continue;if('formatBlock'==_0x3f5914['type']){const _0x45d1ce=_0x5cdcd8['editor']['model'],_0x2b8981=_0x3f5914['getContainedElement']();if(_0x2b8981&&(_0x45d1ce['schema']['isObject'](_0x2b8981)||_0x45d1ce['schema']['isLimit'](_0x2b8981)))continue;}const _0x599495=_0x4d1f97['get'](_0x3f5914),_0x4f8021=_0x13031f['get'](_0x3f5914),_0x545cfd=_0x13031f['get'](_0x3c3d0b),_0x40ae06=_0x3f5914['commentThread']&&_0x3f5914['commentThread']['length'],_0x478ebb=_0x3c3d0b['commentThread']&&_0x3c3d0b['commentThread']['length'];if(!_0x40ae06&&_0x599495(_0x545cfd,_0x4f8021))return _0x5cdcd8['_joinSuggestions'](_0x3c3d0b,_0x3f5914),_0x13031f['delete'](_0x3f5914),!0x0;if(!_0x478ebb&&_0x599495(_0x4f8021,_0x545cfd))return _0x5cdcd8['_joinSuggestions'](_0x3f5914,_0x3c3d0b),_0x13031f['delete'](_0x3c3d0b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x37d867,_0xea9942){if(_0x37d867['isMultiRange']){for(const _0x32bc1e of _0xea9942['getRanges']())_0x37d867['addRange'](_0x32bc1e);}else{const _0x45caa0=_0xea9942['getFirstRange']()['end'];this['_setSuggestionRange'](_0x37d867,this['_model']['createRange'](_0x37d867['getFirstRange']()['start'],_0x45caa0));}_0xea9942['removeMarkers']();}['_getMarkerAnnouncementText'](_0x53148c,_0x59add8,_0x60dd4b){const _0x4cf8cc=_0x53148c['startsWith']('format')||_0x53148c['startsWith']('attribute')?'FORMATTING':_0x53148c['toUpperCase']();return St(this['editor']['locale'],_0x59add8+'_'+_0x4cf8cc+'_SUGGESTION_ANNOUNCEMENT',_0x60dd4b);}['_initAriaMarkerChangeAnnouncements'](){const _0x42b76c=this['editor'];if(!_0x42b76c['ui'])return;const {ariaLiveAnnouncer:_0x60dff3}=_0x42b76c['ui'];et(this['_model'],({left:_0x240df0,entered:_0x58c8d6})=>{for(const _0x5f4f81 of _0x240df0){const {group:_0x1b1c84,type:_0x216419}=tt(_0x5f4f81['name']);if('suggestion'===_0x1b1c84){_0x60dff3['announce'](this['_getMarkerAnnouncementText'](_0x216419,'LEAVE'));break;}}for(const _0x2da1e8 of _0x58c8d6){const {group:_0x4c6c9a,type:_0x545b5d}=tt(_0x2da1e8['name']);if('suggestion'===_0x4c6c9a){_0x60dff3['announce'](this['_getMarkerAnnouncementText'](_0x545b5d,'ENTER',_0x1260c9(_0x3a2235)));break;}}});}['_processAttributeChanges'](_0x7e69f){if(this['_recordAttributeSuggestions'])return!0x1;const _0x172281=this['editor'],_0x4b94d3=_0x172281['model']['document']['differ']['getChanges']();if(0x0==_0x4b94d3['length'])return!0x1;const _0x4a1adf=[],_0xa6248d=_0x4b94d3['filter'](_0x5f4c85=>'attribute'==_0x5f4c85['type']),_0x265bd7=_0x4b94d3['filter'](_0x1a32c0=>'insert'==_0x1a32c0['type']&&'$text'!=_0x1a32c0['name']),_0x5b7c3b=_0x4b94d3['filter'](_0x3fba84=>'remove'==_0x3fba84['type']&&'$text'!=_0x3fba84['name']);for(const _0x492bc7 of _0xa6248d)_0x4a1adf['push']({'key':_0x492bc7['attributeKey'],'newValue':_0x492bc7['attributeNewValue'],'oldValue':_0x492bc7['attributeOldValue'],'range':hn(_0x492bc7['range'],_0x172281['model'])});for(const _0x36a5ce of _0x265bd7){const _0x36ecc9=_0x5b7c3b['find'](_0x139c48=>_0x139c48['position']['isEqual'](_0x36a5ce['position']));_0x36ecc9&&_0x4a1adf['push']({'key':en,'newValue':_0x36a5ce['name'],'oldValue':_0x36ecc9['name'],'range':_0x172281['model']['createRangeOn'](_0x36a5ce['position']['nodeAfter'])});}return 0x0!=_0x4a1adf['length']&&this['_reduceExistingSuggestions'](_0x7e69f,_0x4a1adf);}['_processAttributeSuggestions'](_0x38b287){let _0x72d799=!0x1;const _0x37b8d4=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1a0d61=>_0x1a0d61['data']['newRange']&&_0x1a0d61['name']['startsWith']('suggestion:attribute:'));for(const _0x4d2667 of _0x37b8d4){const {subType:_0x190ee8,id:_0x46b220}=tt(_0x4d2667['name']),_0x52f599=_0x190ee8['split']('|')[0x0];for(const _0x50bf5e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x50bf5e['id']!=_0x46b220&&'attribute'==_0x50bf5e['type']&&_0x50bf5e['data']&&_0x50bf5e['data']['key']==_0x52f599&&_0x50bf5e['getFirstRange']()['isIntersecting'](_0x4d2667['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x50bf5e,_0x4d2667['data']['newRange'],_0x38b287),_0x72d799=!0x0);}return _0x72d799;}['recordAttributeChanges'](_0x2f2e43){this['_recordAttributeSuggestions']=!0x0,_0x2f2e43();}['_reduceExistingSuggestions'](_0x134bd8,_0x4f3596){if(0x0==_0x4f3596['length'])return!0x1;let _0xc7094=!0x1;for(const _0x175c57 of _0x4f3596){const _0x912dd=this['_findSuggestions'](_0x175c57['range'],'attribute')['filter'](_0x87d70c=>!_0x87d70c['meta']['isNextTo'])['map'](_0x5b684c=>_0x5b684c['suggestion']),_0x6d138d=_0x431d55({'newValue':_0x175c57['newValue']});_0x912dd['filter'](_0x4fcef8=>{const [_0x2a4d2f,_0x306dd4]=_0x4fcef8['subType']['split']('|');return _0x2a4d2f==_0x175c57['key']&&_0x306dd4!=_0x6d138d;})['forEach'](_0x409751=>{this['_reduceSuggestionAttributeRange'](_0x409751,_0x175c57['range'],_0x134bd8),_0xc7094=!0x0;});}return _0xc7094;}['_reduceSuggestionAttributeRange'](_0x99896f,_0xc8e46e,_0x30580d){const _0x15fa61=_0x99896f['getFirstRange']()['getDifference'](_0xc8e46e);0x0!==_0x15fa61['length']?0x1!==_0x15fa61['length']?this['_breakSuggestionMarker'](_0x99896f,_0xc8e46e['start'],_0xc8e46e['end']):this['_setSuggestionRange'](_0x99896f,_0x15fa61[0x0]):_0x30580d['removeMarker'](_0x99896f['getFirstMarker']());}},sn=class{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x577a32){this['_editor']=_0x577a32,this['_model']=_0x577a32['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x459f2b,_0x22101e,_0x5f285a,_0xb92539,_0xa056ca,_0x467d9b,_0xbbbcfb){return new yt(this['_model'],{'type':_0x459f2b,'subType':_0x22101e,'id':_0x5f285a,'originalSuggestionId':_0xbbbcfb,'author':_0xb92539,'creator':_0xb92539,'attributes':_0xa056ca,'onAttributesChange':_0x467d9b,'onAccept':(..._0x2dae8c)=>this['getSuggestionCallback'](_0x459f2b,_0x22101e,'accept')(..._0x2dae8c),'onDiscard':(..._0x244e9a)=>this['getSuggestionCallback'](_0x459f2b,_0x22101e,'discard')(..._0x244e9a)});}['registerCustomCallback'](_0x4dace1,_0x17d1d2,_0x6488d9,_0x45faf3){const _0x573f29=_0x4dace1+':'+_0x17d1d2+':'+_0x6488d9;this['_customCallbacks']['set'](_0x573f29,_0x45faf3);}['getSuggestionCallback'](_0x520a1d,_0x141a51,_0x9e2172){const _0x5d762a=_0x520a1d+':'+_0x141a51+':'+_0x9e2172;return this['_customCallbacks']['get'](_0x5d762a)||this['_defaultCallbacks']['get'](_0x520a1d+':'+_0x9e2172);}['_registerDefaultCallbacks'](){const _0x473e1d=()=>!0x1,_0x34d210=_0x793c60=>{_0x793c60['sort']((_0x11a71c,_0xb4888f)=>_0x11a71c['start']['isBefore'](_0xb4888f['start'])?0x1:-0x1),this['_model']['change'](_0x2ba677=>{for(const _0xa1284a of _0x793c60){let _0x5a7b67;_0x5a7b67=_0xa1284a['end']['isAtEnd']&&_0xa1284a['end']['parent']==_0xa1284a['start']['nodeAfter']?_0x2ba677['createSelection'](_0xa1284a['start']['nodeAfter'],'on'):_0x2ba677['createSelection'](_0xa1284a),this['_model']['deleteContent'](_0x5a7b67,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x430eb4=(_0x463238,_0x34e60b)=>{_0x34e60b&&this['_model']['change'](_0x4407f1=>{const {commandName:_0xc9225c,commandParams:_0x23ccd1=[]}=_0x34e60b,_0x4b5de7=_0x463238['map'](_0x5eb491=>(on(_0x5eb491)&&(_0x5eb491=this['_model']['createRange'](_0x5eb491['end'])),_0x5eb491))['filter'](_0x211777=>'$graveyard'!==_0x211777['root']['rootName']);if(_0x4b5de7['length']<0x1)return;const _0x4df85f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3c04b1=>rt['fromRange'](_0x3c04b1));_0x4407f1['setSelection'](_0x4b5de7);for(const _0x3a2158 of this['_editor']['commands']['commands']())_0x3a2158['refresh']();_0x23ccd1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xc9225c,..._0x23ccd1);const _0x38eebf=_0x4df85f['filter'](_0x19aff1=>'$graveyard'!=_0x19aff1['root']['rootName']);_0x38eebf['length']>0x0&&_0x4407f1['setSelection'](_0x38eebf);for(const _0x3009a3 of _0x4df85f)_0x3009a3['detach']();});},_0x21098e=(_0x362a93,_0x450a03)=>0x1==_0x362a93['length']&&0x1==_0x450a03['length']&&_0x362a93[0x0]['end']['isEqual'](_0x450a03[0x0]['start']),_0x3e0f9d=(_0x194a56,_0x166eb9,_0x4a3bc3,_0x209ff1)=>fn(_0x194a56,_0x166eb9,_0x4a3bc3,_0x209ff1)?[_0x194a56,_0x166eb9]:fn(_0x166eb9,_0x194a56,_0x209ff1,_0x4a3bc3)?[_0x166eb9,_0x194a56]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x473e1d),this['_defaultCallbacks']['set']('insertion:discard',_0x34d210),this['_defaultCallbacks']['set']('insertion:join',_0x21098e),this['_defaultCallbacks']['set']('insertion:chain',_0x3e0f9d),this['_defaultCallbacks']['set']('deletion:accept',_0x34d210),this['_defaultCallbacks']['set']('deletion:discard',_0x473e1d),this['_defaultCallbacks']['set']('deletion:join',_0x21098e),this['_defaultCallbacks']['set']('deletion:chain',_0x3e0f9d),this['_defaultCallbacks']['set']('formatInline:accept',_0x430eb4),this['_defaultCallbacks']['set']('formatInline:discard',_0x473e1d),this['_defaultCallbacks']['set']('formatInline:join',_0x21098e),this['_defaultCallbacks']['set']('formatInline:chain',_0x473e1d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x430eb4),this['_defaultCallbacks']['set']('formatBlock:discard',_0x473e1d),this['_defaultCallbacks']['set']('formatBlock:join',_0x21098e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x473e1d),this['_defaultCallbacks']['set']('attribute:accept',_0x473e1d),this['_defaultCallbacks']['set']('attribute:discard',(_0x3f8e61,_0x2ce9d0)=>{if(!_0x2ce9d0)return;const _0x4b97f3=this['_editor']['plugins']['get'](_0xafb44b);this['_model']['change'](_0x1877ce=>{if('$elementName'==_0x2ce9d0['key'])for(const _0xb32de1 of _0x3f8e61){const _0x16a8a3=_0xb32de1['start']['nodeAfter'],_0x504162=_0x2ce9d0['oldValue'];_0x1877ce['rename'](_0x16a8a3,_0x504162);}else{if(_0x4b97f3['isBlockAttribute'](_0x2ce9d0['key'])){for(const _0x58f508 of _0x3f8e61)void 0x0!==_0x2ce9d0['oldValue']?_0x1877ce['setAttribute'](_0x2ce9d0['key'],_0x2ce9d0['oldValue'],_0x58f508['start']['nodeAfter']):_0x1877ce['removeAttribute'](_0x2ce9d0['key'],_0x58f508['start']['nodeAfter']);}else{for(const _0x53b2c8 of _0x3f8e61)_0x2ce9d0['oldValue']?_0x1877ce['setAttribute'](_0x2ce9d0['key'],_0x2ce9d0['oldValue'],_0x53b2c8):_0x1877ce['removeAttribute'](_0x2ce9d0['key'],_0x53b2c8);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x21098e);}};function rn(_0x1b4eed,_0x25fe3e,_0x23b04f){for(const _0x2c12fc of _0x25fe3e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2c12fc['root']==_0x2c12fc)return!0x1;if(!_0x23b04f['containsItem'](_0x2c12fc))return!0x1;if(_0x1b4eed['isObject'](_0x2c12fc)||_0x1b4eed['isLimit'](_0x2c12fc))return!0x0;}return!0x1;}function on(_0x21a560){return _0x21a560['end']['parent']==_0x21a560['start']['nodeAfter']&&_0x21a560['end']['isAtStart'];}function an(_0x26849f,_0x454c1f,_0x20280f,_0x12cfd6){const _0x4511b3=_0x29a126=>!_0x29a126['item']['is']('$textProxy')&&!_0x12cfd6['isObject'](_0x29a126['item']),_0x31f69a=_0x26849f['start']['getLastMatchingPosition'](_0x4511b3),_0x51bff4=_0x26849f['end']['getLastMatchingPosition'](_0x4511b3,{'direction':'backward'});return(!_0x26849f['start']['isEqual'](_0x31f69a)||!_0x26849f['end']['isEqual'](_0x51bff4))&&(_0x31f69a['isBefore'](_0x51bff4)?_0x20280f['updateMarker'](_0x454c1f,{'range':_0x20280f['createRange'](_0x31f69a,_0x51bff4)}):_0x20280f['removeMarker'](_0x454c1f),!0x0);}function cn(_0x49e4a4){return _0x431d55(_0x49e4a4);}function ln(_0x434cb2){const _0x16343d=_0x434cb2['start']['nodeAfter'];return _0x16343d&&_0x16343d['is']('element');}function un(_0x12d219){return on(_0x12d219)||function(_0x5e5f57){return _0x5e5f57['start']['parent']==_0x5e5f57['end']['nodeBefore']&&_0x5e5f57['start']['isAtEnd'];}(_0x12d219);}function dn(_0x1bb282,_0x32cc3f){try{const _0x382c8e=_0x1bb282['getRange']();for(const _0x5afb8a of _0x32cc3f)if(_0x1bb282!==_0x5afb8a&&_0x382c8e&&_0x382c8e['isIntersecting'](_0x5afb8a['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function hn(_0x46cdaa,_0x463f64){return null==_0x46cdaa['end']['nodeBefore']&&_0x46cdaa['end']['parent']==_0x46cdaa['start']['nodeAfter']?gn(_0x46cdaa['start']['nodeAfter'],_0x463f64):_0x46cdaa;}function gn(_0x495898,_0x3d6c3d){const _0x2acb1b=_0x3d6c3d['schema']['isObject'](_0x495898)||_0x3d6c3d['schema']['isSelectable'](_0x495898);return _0x3d6c3d['createRange'](_0x3d6c3d['createPositionAt'](_0x495898,'before'),_0x2acb1b?_0x3d6c3d['createPositionAfter'](_0x495898):_0x3d6c3d['createPositionAt'](_0x495898,'end'));}function fn(_0x5b76e9,_0x3556de,_0x1fb7f9,_0x475b53){return!!mn(_0x5b76e9,_0x3556de)&&_0x1fb7f9['end']['isEqual'](_0x475b53['start']);}function mn(_0x3f2f0f,_0x1c8746){if(!_0x3f2f0f['_isDataLoaded']||!_0x1c8746['_isDataLoaded'])return!0x1;const _0x5e57d8=new Set(Object['keys'](_0x3f2f0f['attributes'])),_0x4f2a37=new Set(Object['keys'](_0x1c8746['attributes']));if(_0x5e57d8['delete']('groupId'),_0x4f2a37['delete']('groupId'),0x0==_0x5e57d8['size']&&0x0==_0x4f2a37['size'])return!0x0;if(_0x5e57d8['size']!=_0x4f2a37['size'])return!0x1;const _0xcb2776={..._0x3f2f0f['attributes']},_0x720dbc={..._0x1c8746['attributes']};return delete _0xcb2776['groupId'],delete _0x720dbc['groupId'],JSON['stringify'](_0xcb2776)==JSON['stringify'](_0x720dbc);}function En(_0x50e806,_0x327c0a){const _0x57cc72=Tn(_0x50e806['attributes']),_0x2d3719=Tn(_0x327c0a);if(!_0x50e806['_isDataLoaded'])return!0x1;if(!ct(_0x57cc72['@ai'],_0x2d3719['@ai']))return!0x1;for(const _0x93e4f5 of Object['keys'](_0x2d3719))if(!ct(_0x57cc72[_0x93e4f5],_0x2d3719[_0x93e4f5]))return!0x1;return!0x0;}function Tn(_0x25bac){const _0x46e82b=Object['assign']({},_0x25bac);return delete _0x46e82b['skipNestingCheck'],delete _0x46e82b['tablePasteChainId'],_0x46e82b;}function _n(_0x55e661){return _0x55e661['split']('|')[0x0];}const pn=/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x30063f();var Ln=class extends pn{['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4585a0,_0x546125,_0x2f6b9b,_0x46dd86){super(),this['model']=_0x546125,this['view']=_0x2f6b9b,this['commentThreadController']=_0x46dd86,this['_editor']=_0x4585a0,this['_acceptCommand']=_0x4585a0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4585a0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4aa920,_0x50b03d)=>_0x4aa920||_0x50b03d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4d196f=>_0x4d196f&&this['_editor']['model']['canEditAt'](_0x546125['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2fea68=>_0x2fea68&&this['_editor']['model']['canEditAt'](_0x546125['getRanges']())),this['_pendingAction']=null,_0x2f6b9b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2f6b9b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2f6b9b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2f6b9b,'change:isDirty',()=>{_0x2f6b9b['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 _0x557664=St(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x557664);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},In=class extends _0x566046{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3e78e7,_0x51304e,_0x386778,_0x100924){super(_0x3e78e7),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x46bf6c(_0x3e78e7,St(_0x3e78e7,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x51304e['authoredAt']),this['bind']('authoredAt')['to'](_0x51304e),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',_0x51304e,'authoredAt',this,'descriptionParts',(_0x3bcf56,_0x58f421,_0x4af391)=>{const _0x1f0a04=_0x4af391['map'](_0x334fea=>pt(_0x334fea['content']))['join']('.\x20')+'.',_0xec398f=_0x51304e['aiSource']&&'author'===_0x100924['showAISource']?_0x100924['aiAuthor']['name']:_0x51304e['author']['name'],_0x36d4e9=St(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3bcf56-0x1,_0xec398f,_0x58f421?_0x100924['formatDateTime'](_0x58f421):'',new DOMParser()['parseFromString'](_0x1f0a04,'text/html')['body']['textContent']]);return _0x51304e['aiSource']&&'pill'===_0x100924['showAISource']?_0x36d4e9+'\x20'+St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x36d4e9;}),this['focusables']=new _0xfedbf2(),this['focusTracker']=new _0x57e1ed(),this['keystrokes']=new _0x528888(),this['focusCycler']=new _0x4f02bc({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x50cf51=>_0x50cf51['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x51304e,this['_localUser']=_0x386778,this['_config']=_0x100924,_0x100924['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3a3da7(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x219f14}=this['_config'];this['commentsListView']=new _0x219f14(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',_0x43fda1=>_0x43fda1+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3cd7ea,_0x1781d9)=>_0x3cd7ea||!!_0x1781d9);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5ec7ae}=this['_config'],_0x49fde3=new _0x5ec7ae(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1531e8=_0x49fde3['commentInputView'];return _0x49fde3['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1531e8,'value',(_0x517b90,_0x533aee,_0x4cef37)=>!!_0x4cef37||_0x517b90&&!_0x533aee),_0x1531e8['on']('submit',(_0x1171d8,_0x20b744)=>{this['fire']('addComment',_0x20b744),_0x1531e8['editor']['setData']('');}),_0x1531e8['on']('cancel',()=>this['focus']()),_0x1531e8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x49fde3;}},An=class extends In{['suggestionView'];['_descriptionElement'];constructor(_0x3601a6,_0x235b67,_0x3e20fe,_0xe7c164){super(_0x3601a6,_0x235b67,_0x3e20fe,_0xe7c164),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x386d71=>_0x386d71&&_0x386d71[0x0]?_0x386d71[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x223d61,_0x380fd3)=>{let _0x131584='';for(const _0x3d37c8 of _0x223d61)_0x131584+='<p>'+pt(_0x3d37c8['content'],_0x3d37c8['color'])+'</p>';return _0x380fd3?_0x131584:nt(_0x131584,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xe7c164['SuggestionView'](_0x3601a6,_0x235b67,{'formatDateTime':_0xe7c164['formatDateTime'],'showAISource':_0xe7c164['showAISource'],'aiAuthor':_0xe7c164['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 _0x2647ce=this['bindTemplate'],_0x3c7143=[this['suggestionView']];return this['commentsListView']&&_0x3c7143['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3c7143['push'](this['commentThreadInputView']),_0x3c7143['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2647ce['if']('isActive','ck-suggestion-wrapper--active'),_0x2647ce['to']('type',_0x255108=>'ck-suggestion-'+_0x255108),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':_0x2647ce['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3c7143};}['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));}},bn=class extends _0x566046{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5a510d,_0x258b05,_0x1b9de7){super(_0x5a510d),this['_model']=_0x258b05,this['_config']=_0x1b9de7,this['set']('description',''),this['bind']('authoredAt')['to'](_0x258b05),this['acceptButton']=this['_createButton'](St(_0x5a510d,'Accept\x20suggestion'),_0x201b2e,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](St(_0x5a510d,'Discard\x20suggestion'),_0x4628b8,'ck-suggestion--discard','discardSuggestion','sw');const _0x2eb7b4=!!_0x258b05['aiSource']&&'author'===_0x1b9de7['showAISource'],_0xda2018=_0x2eb7b4?this['_createAIUser'](_0x1b9de7['aiAuthor']):_0x258b05['author'],_0x1149a5=_0x2eb7b4&&!_0x1b9de7['aiAuthor']['avatar']?_0x26f6c5:void 0x0;this['userView']=new _0x23fd9e(_0x5a510d,_0xda2018,this['getUserViewNotificationText'](),_0x1149a5),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xfedbf2([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x57e1ed(),this['keystrokes']=new _0x528888(),this['focusCycler']=new _0x4f02bc({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x378bbd=>_0x378bbd['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x54f96b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x54f96b['innerHTML']=this['description'],this['on']('change:description',(_0x3b9630,_0x51bc93,_0x3a3ad5)=>{_0x54f96b['innerHTML']=_0x3a3ad5;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5f5097=this['bindTemplate'],_0x3e184d=[{'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':_0x5f5097['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5f5097['to']('authoredAt',_0x3f4284=>this['_config']['formatDateTime'](_0x3f4284))}]}]},{'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']&&_0x3e184d['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x5adf88=new _0x16d049(this['locale']);_0x5adf88['set']({'icon':_0x107c43,'label':St(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x3e184d['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x5adf88]});}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':_0x3e184d}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?St(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):St(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?St(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):St(this['locale'],'EXTERNAL_SUGGESTION');}['_createAIUser'](_0x59ad16){return new _0x555e85({'id':'ck-ai-author','name':_0x59ad16['name'],'avatar':_0x59ad16['avatar'],'color':new _0x2b6a23(0x0)});}['_createButton'](_0x3b63a1,_0x39a972,_0x62e0dc,_0x3b8b41,_0xba117a){const _0x1eda5c=new _0x19b657(this['locale']);return _0x1eda5c['set']({'label':_0x3b63a1,'icon':_0x39a972,'tooltip':!0x0,'tooltipPosition':_0xba117a}),_0x1eda5c['extendTemplate']({'attributes':{'class':_0x62e0dc}}),_0x1eda5c['on']('execute',()=>{this['fire'](_0x3b8b41,this['_model']['id']);}),_0x1eda5c;}['_setupKeyboardNavigation'](){const _0x2c0272=this['element'];this['keystrokes']['listenTo'](_0x2c0272);for(const _0x4c7fe9 of this['focusables'])this['focusTracker']['add'](_0x4c7fe9['element']),this['keystrokes']['listenTo'](_0x4c7fe9['element']);this['keystrokes']['set']('enter',(_0x347450,_0x4872fe)=>{_0x2c0272===_0x347450['target']&&(this['focusCycler']['focusFirst'](),_0x4872fe());}),this['keystrokes']['set']('esc',(_0x5196c7,_0x1e5117)=>{_0x2c0272!==_0x5196c7['target']&&(this['focus'](),_0x1e5117());});}},kn=class extends _0x335f48{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[nn,_0x4099f0,_0x5ac837,_0x56449f,_0x1352a9];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa4fb50){super(_0xa4fb50),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1e8307=this['editor']['config'];_0x1e8307['define']('trackChanges.SuggestionThreadView',An),_0x1e8307['define']('trackChanges.SuggestionView',bn),_0x1e8307['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1e8307['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x28f7f8,_0x579f5c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5f7874,_0x277621]of this['_handleControllerBuffer']){const _0x45251c=this['_suggestionToController']['has'](_0x5f7874);_0x45251c||_0x277621?_0x45251c&&_0x277621&&this['_destroyController'](_0x5f7874):this['_initializeController'](_0x5f7874);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x1352a9)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x28f7f8,_0x579f5c);}['init'](){const _0x552e37=this['editor'],_0x24b691=_0x552e37['plugins']['get'](nn),_0xf6324=_0x552e37['plugins']['get'](_0x56449f),_0x3b7424=_0x552e37['plugins']['get'](_0x1352a9),_0x5c45b4=_0x552e37['plugins']['get'](_0x5ac837);this['_addUIComponentsToFactory'](),_0x3b7424['addSourceCollector'](()=>{const _0x32f2fe=[];for(const [_0x4adc80,_0x4dc13e]of Array['from'](this['_suggestionToController'])){const _0x224c72=_0x4adc80['getAllAdjacentSuggestions'](),_0x123005=[];for(const _0x5b875b of _0x224c72){if(!_0x5b875b['isInContent'])continue;if(_0x5b875b['isMultiRange']){_0x123005['push'](..._0x5b875b['getRanges']());continue;}const _0x89d133=_0x5b875b['getFirstRange']();if(_0x123005['length']>0x0){const _0x5e9e6c=_0x123005[0x0]['getJoined'](_0x89d133);if(_0x5e9e6c){_0x123005[0x0]=_0x5e9e6c;continue;}}_0x123005['push'](_0x89d133);}_0x32f2fe['push']([_0x4dc13e['view'],_0x123005]);}return _0x32f2fe;}),this['listenTo'](_0x24b691,'suggestionLoaded',(_0x27a7e5,_0x2b3c19)=>{this['listenTo'](_0x2b3c19,'change:previous',(_0x3f7b18,_0xc1a67b,_0x3ec8d1,_0xafb0a6)=>{_0x2b3c19['isInContent']&&(null==_0x3ec8d1?(this['_updateController'](_0xafb0a6['head']),this['_handleSuggestionControllerDelayed'](_0x2b3c19,!0x1)):(this['_updateController'](_0x3ec8d1['head']),null==_0xafb0a6&&this['_handleSuggestionControllerDelayed'](_0x2b3c19,!0x0)));}),null!==_0x2b3c19['previous']?this['_updateController'](_0x2b3c19['head']):this['_handleSuggestionControllerDelayed'](_0x2b3c19,!0x1);}),this['listenTo'](_0x24b691,'suggestionUnloaded',(_0x17bdc1,_0x49f85d,_0x2d3e92)=>{this['stopListening'](_0x49f85d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x49f85d),this['_suggestionToController']['has'](_0x49f85d)&&this['_destroyController'](_0x49f85d),_0x2d3e92&&this['_updateController'](_0x2d3e92['head']);}),this['listenTo'](_0x24b691,'suggestionChanged',(_0x40dcdc,_0x497526)=>{this['_updateController'](_0x497526);}),this['listenTo'](_0xf6324,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5c45b4,'addComment',(_0xbc36db,{threadId:_0x50c1b4,isFromAdapter:_0x33efdf})=>{if(_0x33efdf||!_0x24b691['hasSuggestion'](_0x50c1b4))return;const _0x199d4a=_0x24b691['getSuggestion'](_0x50c1b4);this['_suggestionToController']['get'](_0x199d4a)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x436609=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x58d3c8;for(const _0xd04f98 in _0x436609){const _0x1be943=_0xd04f98,_0x29f870=_0x436609[_0x1be943];if('trackChangesLicenseKeyValid'==_0x29f870||'trackChangesLicenseKeyInvalid'==_0x29f870||'trackChangesLicenseKeyExpired'==_0x29f870||'trackChangesLicenseKeyDomainLimit'==_0x29f870||'trackChangesLicenseKeyNotAllowed'==_0x29f870||'trackChangesLicenseKeyEvaluationLimit'==_0x29f870||'trackChangesLicenseKeyUsageLimit'==_0x29f870){delete _0x436609[_0x1be943],_0x58d3c8=_0x29f870,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x58d3c8&&_0x436609['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x58d3c8&&_0x436609['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x58d3c8&&_0x436609['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x58d3c8&&_0x436609['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x58d3c8&&_0x436609['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x58d3c8&&_0x436609['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x1896ae){const _0xb9f9f6=this['_suggestionToController']['get'](_0x1896ae);return _0xb9f9f6&&this['editor']['plugins']['get'](_0x56449f)['getByInnerView'](_0xb9f9f6['view'])||null;}['getSuggestionForAnnotation'](_0x39187a){const _0x28d1b2=this['_viewToController']['get'](_0x39187a['innerView']);return _0x28d1b2?_0x28d1b2['model']:null;}['_refreshActiveMarkers'](){const _0x24f999=this['editor']['plugins']['get'](_0x56449f),_0x5521ab=this['editor']['plugins']['get'](nn),_0x428875=Array['from'](_0x24f999['activeAnnotations'],_0xe66bbb=>_0xe66bbb['innerView'])['filter'](_0x2f7375=>this['_viewToController']['has'](_0x2f7375)),_0x20f0bb=[];for(const _0x504ba2 of _0x428875){const _0x5377d5=this['_viewToController']['get'](_0x504ba2)['model']['getAllAdjacentSuggestions']();_0x20f0bb['push'](..._0x5377d5['reduce']((_0xb8dca0,_0x9054e)=>[..._0xb8dca0,..._0x9054e['getMarkerNames']()],[]));}_0x5521ab['activeMarkers']=_0x20f0bb;}['_addUIComponentsToFactory'](){const _0x31f08c=this['editor'],_0x5bd35a=_0x31f08c['locale'],_0x13bbba=St(_0x5bd35a,'Track\x20changes'),_0x2d0021=new _0x5afb24([{'type':'switchbutton','model':new _0xfb96df({'withText':!0x0,'isToggleable':!0x0,'label':_0x13bbba,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xfb96df({'withText':!0x0,'label':St(_0x5bd35a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xfb96df({'withText':!0x0,'label':St(_0x5bd35a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xfb96df({'withText':!0x0,'label':St(_0x5bd35a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xfb96df({'withText':!0x0,'label':St(_0x5bd35a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x31f08c['plugins']['has']('TrackChangesPreview')&&_0x2d0021['addMany']([{'type':'separator'},{'type':'button','model':new _0xfb96df({'withText':!0x0,'label':St(_0x5bd35a,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2e61a3 of _0x2d0021)if(Cn(_0x2e61a3)){const _0x15fe90=_0x31f08c['commands']['get'](_0x2e61a3['model']['commandName']);_0x2e61a3['model']['bind']('isOn','isEnabled')['to'](_0x15fe90,'value','isEnabled');}_0x31f08c['ui']['componentFactory']['add']('trackChanges',_0x3d6c79=>this['_createToolbarButton'](_0x3d6c79,_0x2d0021,_0x13bbba)),_0x31f08c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x145524=>this['_createMenuBarMenu'](_0x145524,_0x2d0021,_0x13bbba));}['_createToolbarButton'](_0x385adc,_0x57be2f,_0x1cf05e){const _0x5bb8ad=_0x4cc7b5(_0x385adc,_0x276268),_0x5613bd=this['editor']['commands']['get']('trackChanges');_0x5bb8ad['buttonView']['set']({'tooltip':_0x1cf05e,'label':_0x1cf05e,'icon':_0x2791ac}),_0x5bb8ad['buttonView']['bind']('isOn')['to'](_0x5613bd,'value'),_0x5bb8ad['buttonView']['on']('execute',()=>{_0x5613bd['execute'](),this['editor']['editing']['view']['focus']();}),_0x102ff0(_0x5bb8ad,_0x57be2f,{'role':'menu'});const _0x596a4e=[];for(const _0x3788d0 of _0x57be2f)Cn(_0x3788d0)&&_0x596a4e['push'](this['editor']['commands']['get'](_0x3788d0['model']['commandName']));const _0x3fc0fa=_0x5bb8ad['buttonView'];return _0x3fc0fa['actionView']['unbind']('isEnabled'),_0x3fc0fa['arrowView']['unbind']('isEnabled'),_0x3fc0fa['actionView']['bind']('isEnabled')['to'](_0x5613bd,'isEnabled'),_0x3fc0fa['arrowView']['bind']('isEnabled')['toMany'](_0x596a4e,'isEnabled',(..._0x4074ea)=>_0x4074ea['some'](_0x64682a=>_0x64682a)),_0x5bb8ad['on']('execute',_0x3bdb0d=>{this['editor']['execute'](_0x3bdb0d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5bb8ad;}['_createMenuBarMenu'](_0x55414a,_0x1eca84,_0x244a0c){const _0x5010b2=new _0x5b94cf(_0x55414a),_0x23004b=this['editor']['commands']['get']('trackChanges');_0x5010b2['buttonView']['set']({'label':_0x244a0c,'icon':_0x2791ac});const _0x4f1e60=new _0x2ed845(_0x55414a);for(const _0x451481 of _0x1eca84){if('separator'==_0x451481['type']){_0x4f1e60['items']['add'](new _0x2f1b9c(_0x55414a));continue;}const _0x2fba41=new _0x1c120a(_0x55414a,_0x5010b2),_0x554b0e=new _0x20a80b(_0x55414a),_0x178048=_0x451481['model'];_0x554b0e['bind'](...Object['keys'](_0x178048))['to'](_0x178048),_0x554b0e['delegate']('execute')['to'](_0x5010b2),_0x554b0e['on']('execute',()=>{this['editor']['execute'](_0x178048['commandName']),this['editor']['editing']['view']['focus']();}),_0x2fba41['children']['add'](_0x554b0e),_0x4f1e60['items']['add'](_0x2fba41);}return _0x5010b2['bind']('isEnabled')['to'](_0x23004b,'isEnabled'),_0x5010b2['panelView']['children']['add'](_0x4f1e60),_0x5010b2;}['_initializeController'](_0x10798e){const _0x5228f3=this['editor'],_0x7055fe=_0x5228f3['config'],_0x56be98=_0x5228f3['plugins']['get'](_0x56449f),_0x27abb1=_0x5228f3['plugins']['get'](_0x5ac837),_0x4b1db9=_0x5228f3['plugins']['get'](_0x1352a9),_0x250441=_0x5228f3['plugins']['get'](_0x4099f0)['me'],_0x138f5e=_0x7055fe['get']('trackChanges')['SuggestionThreadView'],_0x1d868d=_0x7055fe['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1d3a40,CommentThreadInputView:_0xa688b5}=_0x5228f3['plugins']['get']('CommentsUI');let _0x2ac72e,_0x22bd4e,_0x331359;this['_annotationViews']['has'](_0x10798e['id'])?(_0x22bd4e=this['_annotationViews']['get'](_0x10798e['id']),_0x2ac72e=_0x22bd4e['mainView']):(_0x2ac72e=new _0x138f5e(_0x5228f3['locale'],_0x10798e,_0x250441,{'disableComments':this['_disableComments'],'editorConfig':{..._0x7055fe['get']('comments.editorConfig'),'licenseKey':_0x7055fe['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x7055fe['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x7055fe['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x7055fe['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x36788d(_0x7055fe['get']('locale'),_0x5228f3['locale']),'CommentView':_0x7055fe['get']('comments')['CommentView'],'CommentsListView':_0x1d3a40,'CommentThreadInputView':_0xa688b5,'SuggestionView':_0x1d868d,'showAISource':_0x7055fe['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x7055fe['get']('trackChanges.aiAuthor'),'name':_0x7055fe['get']('trackChanges.aiAuthor')?.['name']||St(_0x5228f3['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x2ac72e['suggestionView']['acceptButton']['on']('execute',()=>{_0x5228f3['editing']['view']['focus']();}),_0x2ac72e['suggestionView']['discardButton']['on']('execute',()=>{_0x5228f3['editing']['view']['focus']();}),_0x22bd4e=_0x56be98['createAnnotationView'](this['editor']['locale'],_0x2ac72e),_0x22bd4e['bind']('isDirty')['to'](_0x2ac72e,'isDirty'),_0x22bd4e['bind']('length')['to'](_0x2ac72e),_0x22bd4e['bind']('type')['to'](_0x2ac72e,'type',_0xce06c0=>'suggestion-'+_0xce06c0),_0x2ac72e['on']('escape',()=>{_0x331359['fire']('escape');}),this['_annotationViews']['set'](_0x10798e['id'],_0x22bd4e));const _0x2d529e=_0x27abb1['createCommentThreadController'](_0x10798e['commentThread'],_0x2ac72e),_0x3ce919=new Ln(_0x5228f3,_0x10798e,_0x2ac72e,_0x2d529e),_0x1bc618=_0x10798e['getAllAdjacentSuggestions']()['filter'](_0x2d5317=>_0x2d5317['isInContent']);_0x2ac72e['descriptionParts']=_0x5228f3['plugins']['get'](nn)['descriptionFactory']['getDescriptions'](_0x1bc618),this['_suggestionToController']['set'](_0x10798e,_0x3ce919),this['_viewToController']['set'](_0x2ac72e,_0x3ce919);const _0xb1e223=()=>{const _0x40596a=[],_0x552eb9=_0x10798e['getAllAdjacentSuggestions']()['filter'](_0x492333=>_0x492333['isInContent']);for(const _0x1eed40 of _0x552eb9)_0x40596a['push'](..._0x1eed40['getMarkers']());return _0x29ef8f(_0x5228f3['editing'],_0x40596a);};_0x331359=_0x56be98['createAnnotation']({'view':_0x22bd4e,'target':_0xb1e223,'type':()=>'suggestion-'+_0x3ce919['view']['type'],'isVisible':!!_0xb1e223()}),_0x27abb1['_bindAnnotationToEditors'](_0x2ac72e,_0x331359),_0x56be98['add'](_0x331359),_0x4b1db9['registerAnnotation'](_0x331359);}['_destroyController'](_0x21b988){const _0x1caf3e=this['editor']['plugins']['get'](_0x5ac837),_0x1f52af=this['editor']['plugins']['get'](_0x56449f),_0x372e3a=this['_suggestionToController']['get'](_0x21b988),_0x3da4cd=_0x372e3a['view'],_0x147664=_0x1f52af['getByInnerView'](_0x3da4cd);_0x1caf3e['_unbindEditors'](_0x3da4cd),_0x147664&&_0x1f52af['remove'](_0x147664),this['_suggestionToController']['delete'](_0x21b988),this['_viewToController']['delete'](_0x3da4cd),_0x372e3a['destroy']();}['_updateController'](_0x35f325){if(!_0x35f325['isInContent']||!this['_suggestionToController']['has'](_0x35f325))return;const _0x2336d4=this['editor']['plugins']['get'](nn),_0x319e95=this['_suggestionToController']['get'](_0x35f325),_0x1f0cf6=_0x35f325['getAllAdjacentSuggestions']();_0x319e95['view']['descriptionParts']=_0x2336d4['descriptionFactory']['getDescriptions'](_0x1f0cf6);}['destroy'](){for(const _0x358e21 of this['_suggestionToController']['keys']())this['_destroyController'](_0x358e21);for(const _0x15410b of this['_annotationViews']['values']())_0x15410b['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Cn(_0x57251f){return'model'in _0x57251f;}var Rn=class extends _0x335f48{static get['requires'](){return[nn,kn,_0x3e43c6];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x971a4f){this['editor']['plugins']['get'](nn)['adapter']=_0x971a4f;}get['adapter'](){return this['editor']['plugins']['get'](nn)['adapter'];}['addSuggestion'](_0x3876e7){return this['editor']['plugins']['get'](nn)['addSuggestionData'](_0x3876e7);}['getSuggestions']({skipNotAttached:_0x668ed0=!0x1,toJSON:_0x54fef5=!0x1}={}){return this['editor']['plugins']['get'](nn)['getSuggestions']({'skipNotAttached':_0x668ed0,'toJSON':_0x54fef5});}['getSuggestion'](_0x584ab6){return this['editor']['plugins']['get'](nn)['getSuggestion'](_0x584ab6);}};const Nn=['Pagination'];var yn=class extends _0x335f48{static get['requires'](){return[nn];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x38b505=this['editor'];if(_0x38b505['config']['define']('trackChangesData.editorCreator',_0x2f0c9c=>{const _0x971d1a=_0x38b505['model']['document']['getRootNames']()['reduce']((_0x1c71fa,_0x1d35cd)=>(_0x1c71fa[_0x1d35cd]='',_0x1c71fa),{});return _0x38b505['constructor']['create'](_0x971d1a,_0x2f0c9c);}),'function'!=typeof _0x38b505['config']['get']('trackChangesData')['editorCreator'])throw new _0x1ce43c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2fd42a){return On(this['editor'],!0x0,_0x2fd42a);}['getDataWithDiscardedSuggestions'](_0x30a2ab){return On(this['editor'],!0x1,_0x30a2ab);}},Sn=class extends _0x335f48{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x380e3f){super(_0x380e3f),this['result']='end',_0x380e3f['editing']['view']['_overlayModeHint']='auto',_0x380e3f['_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 Mn(_0x46c948){return void 0x0!==_0x46c948['getRootsAttributes'];}async function On(_0x69cb30,_0x2fed59,_0x156ef7){const _0x722614=_0x7f840e(_0x69cb30,Nn);if(_0x722614['plugins']['push'](nn,Sn),Mn(_0x69cb30)){_0x722614['roots']=Object['create'](null);for(const _0x390c9c of _0x69cb30['model']['document']['getRootNames']())_0x722614['roots'][_0x390c9c]={'modelAttributes':_0x69cb30['getRootAttributes'](_0x390c9c)};}const _0x2423d5=document['createDocumentFragment'](),_0x1a901d=_0x69cb30['config']['get']('trackChangesData')['editorCreator'],_0x53b46b=await _0x1a901d(_0x722614,()=>function(_0x2a6e1b){const _0x214944=document['createElement']('div');return _0x2a6e1b['appendChild'](_0x214944),_0x214944;}(_0x2423d5));!function(_0x3162f4,_0x3d154c){const _0x467456=_0x3162f4['model']['document']['getRootNames']()['reduce']((_0x22a1f5,_0x5226d9)=>(_0x22a1f5[_0x5226d9]=_0x3162f4['data']['get']({'rootName':_0x5226d9}),_0x22a1f5),{}),_0x494174=_0x3162f4['plugins']['get']('Users')['users']['map'](_0x100dcc=>({'id':_0x100dcc['id'],'name':_0x100dcc['name']})),_0x56fabe=_0x3162f4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x461b8e=_0x3162f4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2a88f6=_0x3d154c['plugins']['get']('Users'),_0x5bc853=_0x3d154c['plugins']['get']('TrackChangesEditing'),_0x80393c=_0x3d154c['plugins']['get']('CommentsRepository');for(const _0x33f313 of _0x80393c['getCommentThreads']())_0x33f313['remove']();for(const _0x2944b2 of _0x494174)_0x2a88f6['getUser'](_0x2944b2['id'])||_0x2a88f6['addUser'](_0x2944b2);_0x2a88f6['me']||_0x2a88f6['useAnonymousUser']();for(const _0x287dd3 of _0x461b8e)_0x80393c['addCommentThread'](_0x287dd3);for(const _0x4a892c of _0x56fabe)_0x5bc853['addSuggestionData'](_0x4a892c);_0x3d154c['data']['set'](_0x467456);}(_0x69cb30,_0x53b46b),_0x53b46b['execute'](_0x2fed59?'acceptAllSuggestions':'discardAllSuggestions');const _0xe25475=Mn(_0x53b46b)?_0x53b46b['getFullData'](_0x156ef7):_0x53b46b['data']['get'](_0x156ef7);return await _0x53b46b['destroy'](),_0xe25475;}var wn=class extends _0x566046{['options'];constructor(_0xcad22e,_0xa3fab9){super(_0xcad22e),this['options']=_0xa3fab9,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'](_0x2437bb,_0x46e168){if(!this['element'])return;const _0x4efb57=[];for(const [_0x77a04c,_0x38ab6a]of _0x2437bb){const _0x2cbb85=document['createElement']('div');_0x2cbb85['setAttribute']('data-ck-root-name',_0x77a04c),_0x2cbb85['className']=_0x38ab6a['classes']+'\x20ck-track-changes-preview__root-container',_0x2cbb85['innerHTML']=_0x38ab6a['content'],_0x4efb57['push'](_0x2cbb85);}_0x46e168(this['element'],_0x4efb57),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Fn=class extends _0x421366{constructor(_0x39092c){super(_0x39092c),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x114cbc=this['editor'],_0x2f39cf=_0x114cbc['locale'],_0x2d686c=_0x114cbc['plugins']['get']('Dialog');let _0x5c4dad;const _0x1587ad=function(_0x2abcec){const _0x43344b={};if('editables'in _0x2abcec['ui']['view']){for(const [_0x5dc44a,_0x5ab6a3]of Object['entries'](_0x2abcec['ui']['view']['editables']))_0x43344b[_0x5dc44a]=_0x5ab6a3['element'];}else _0x43344b[_0x2abcec['model']['document']['getRootNames']()[0x0]]=_0x2abcec['ui']['view']['editable']['element'];return _0x43344b;}(_0x114cbc),_0x84c3ee=function(_0x243b75){let _0x2e4032=0x0;for(const _0x35432c of Object['values'](_0x243b75))_0x2e4032=Math['max'](_0x2e4032,_0x35432c['getBoundingClientRect']()['width']);let _0x355768=0x0;for(const _0x1def71 of Object['values'](_0x243b75))_0x355768+=_0x1def71['getBoundingClientRect']()['height'];const _0x170cad=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x2e4032,'height':Math['min'](_0x355768,_0x170cad)};}(_0x1587ad);_0x2d686c['show']({'id':'finalContentPreview','title':St(_0x2f39cf,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new wn(_0x2f39cf,{'dialogRects':_0x84c3ee}),'onHide':()=>{_0x5c4dad['detachFromDom']();},'onShow':()=>{_0x114cbc['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2d6f78=>{const _0x3af889=this['_standarizeRootsData'](_0x2d6f78,_0x114cbc,_0x1587ad);_0x2d686c['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3af889,_0x114cbc['config']['get']('trackChanges.preview.renderFunction'));}),_0x5c4dad=new _0x431a3e(_0x2f39cf,[_0x2d686c['view']]),_0x5c4dad['attachToDom'](),_0x5c4dad['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x114cbc['once']('destroy',()=>{_0x5c4dad['detachFromDom']();});const _0x1fb1aa=_0x2d686c['view']['headerView']['class'];_0x2d686c['view']['headerView']['class']=_0x1fb1aa?_0x1fb1aa+'\x20ck-reset_all':'ck-reset_all',_0x2d686c['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2d686c['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x12d995=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4d25be=_0x12d995['previewMode'],_0x3e3a50={};if('$labels'===_0x4d25be){for(const _0x24e535 of _0x12d995['getMergeFieldsIds']())_0x3e3a50[_0x24e535]=_0x12d995['getLabel'](_0x24e535)||_0x24e535;}else{const _0x3cb965='$defaultValues'===_0x4d25be?_0x12d995['getDefaultValues']():_0x12d995['getDataSetValues'](_0x4d25be,!0x0);for(const _0x43f639 of Object['entries'](_0x3cb965)){const [_0x5e973e,_0x1fc225]=_0x43f639;_0x3e3a50[_0x5e973e]=null!==_0x1fc225?_0x1fc225:_0x12d995['getLabel'](_0x5e973e)||_0x5e973e;}}return{'mergeFieldsData':_0x3e3a50};}['_standarizeRootsData'](_0x23f149,_0xffdace,_0x4b7651){let _0x559958;_0x559958='string'==typeof _0x23f149?{[_0xffdace['model']['document']['getRootNames']()[0x0]]:_0x23f149}:_0x23f149;const _0x18d310=this['_fixMediaEmbeds'](_0x559958,_0xffdace);return function(_0x4fdf61,_0x4f02a4){for(const [_0x5a4f27,_0x5ef3f4]of _0x4fdf61)_0x5ef3f4['classes']=_0x4f02a4[_0x5a4f27]['classList']['value']['replace']('ck-focused','');return _0x4fdf61;}(this['_sortRoots'](_0xffdace)['reduce']((_0x123563,_0x44ac22)=>(_0x123563['push']([_0x44ac22,{'content':_0x18d310[_0x44ac22],'classes':''}]),_0x123563),[]),_0x4b7651);}['_fixMediaEmbeds'](_0x32afb7,_0x376cff){if(!_0x376cff['plugins']['has']('MediaEmbedEditing'))return _0x32afb7;const _0x5e8962=_0x376cff['plugins']['get']('MediaEmbedEditing');for(const [_0x1794df,_0x2db709]of Object['entries'](_0x32afb7)){const _0x3fe4ae=document['createElement']('div');_0x3fe4ae['innerHTML']=_0x2db709,_0x3fe4ae['querySelectorAll']('figure.media')['forEach'](_0x4e91b4=>{const _0x659c9d=_0x4e91b4['querySelector']('oembed');if(_0x659c9d){const _0x3b6374=_0x659c9d['getAttribute']('url');if(_0x3b6374){const _0x34fb54=_0x5e8962['registry']['getMediaViewElement'](new ot(_0x376cff['editing']['view']['document']),_0x3b6374,{'elementName':'','renderForEditingView':!0x0}),_0x9a95dc=document['createElement']('div');_0x9a95dc['classList']['add']('ck-media__wrapper'),_0x34fb54['render'](_0x9a95dc,_0x376cff['editing']['view']['domConverter']),_0x659c9d['replaceWith'](_0x9a95dc);}}}),_0x32afb7[_0x1794df]=_0x3fe4ae['innerHTML'];}return _0x32afb7;}['_sortRoots'](_0x144e52){if(!function(_0x51b781){return void 0x0!==_0x51b781['getRootsAttributes'];}(_0x144e52))return _0x144e52['model']['document']['getRootNames']();const _0x35a33e=[],_0x5a23f3=new Map();for(const _0x488aa9 of _0x144e52['model']['document']['getRootNames']()){const _0x439e85=_0x144e52['editing']['view']['getDomRoot'](_0x488aa9)['getClientRects']()['item'](0x0);_0x35a33e['push'](_0x488aa9),_0x5a23f3['set'](_0x488aa9,_0x439e85);}return _0x35a33e['sort']((_0x2a2a62,_0xf45b25)=>{const _0x165700=_0x5a23f3['get'](_0x2a2a62),_0xd7f2d=_0x5a23f3['get'](_0xf45b25);return _0x165700['y']-_0xd7f2d['y']||_0x165700['x']-_0xd7f2d['x'];}),_0x35a33e;}},Bn=class extends _0x335f48{static get['requires'](){return[yn,_0xa3654a];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4c80fc){super(_0x4c80fc),_0x4c80fc['commands']['add']('previewFinalContent',new Fn(this['editor'])),_0x4c80fc['config']['define']('trackChanges.preview.renderFunction',(_0x17e345,_0x45ab61)=>{for(const _0x10c569 of _0x45ab61)_0x17e345['appendChild'](_0x10c569);});}};export{Tt as AcceptSuggestionCommand,In as BaseSuggestionThreadView,_t as DiscardSuggestionCommand,Ct as ExecuteOnAllSuggestionsCommand,Rt as ExecuteOnSelectedSuggestionsCommand,Fn as PreviewFinalContentCommand,yt as Suggestion,Mt as SuggestionDescriptionFactory,An as SuggestionThreadView,bn as SuggestionView,Rn as TrackChanges,Et as TrackChangesCommand,yn as TrackChangesData,Sn as TrackChangesDataGetter,nn as TrackChangesEditing,Bn as TrackChangesPreview,kn as TrackChangesUI};
|