@ckeditor/ckeditor5-track-changes 47.7.0-alpha.2 → 47.7.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +26 -26
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x175894(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x25464e,_0x275c5d){super(),this['id']=_0x275c5d['id'],this['type']=_0x275c5d['type'],this['subType']=_0x275c5d['subType']||null,this['author']=_0x275c5d['author'],this['creator']=_0x275c5d['creator']||_0x275c5d['author'],this['isExternal']=Boolean(_0x275c5d['attributes']&&_0x275c5d['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x275c5d['originalSuggestionId']||null,this['_model']=_0x25464e,this['_onAccept']=_0x275c5d['onAccept'],this['_onDiscard']=_0x275c5d['onDiscard'],this['_onAttributesChange']=_0x275c5d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x275c5d['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x4d6717=this;for(;_0x4d6717['previous'];)_0x4d6717=_0x4d6717['previous'];return _0x4d6717;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x142cf9){this['_markerNames']['add'](_0x142cf9);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x250370=>this['_model']['markers']['get'](_0x250370))['filter'](_0x47126f=>_0x47126f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x448135=>{for(const _0x5adc74 of this['getMarkers']())_0x448135['removeMarker'](_0x5adc74);}),this['_markerNames']['clear']();}['removeMarker'](_0x41caf1){this['_model']['change'](_0x20fa1d=>{_0x20fa1d['removeMarker'](_0x41caf1);}),this['_markerNames']['delete'](_0x41caf1);}['addRange'](_0x39921c){const _0x2449a7='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x2449a7),this['_model']['change'](_0x52a943=>{_0x52a943['addMarker'](_0x2449a7,{'range':_0x39921c,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xd369de){for(const _0x5d3b7d of this['getRanges']())if(_0x5d3b7d['isIntersecting'](_0xd369de))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x21c590=>_0x21c590['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x123713,_0x18e89d)=>[..._0x123713,..._0x18e89d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x301da4=this['getRanges']();if(0x1!=_0x301da4['length'])return null;const _0x2ffb59=_0x301da4[0x0],_0x425b34=_0x2ffb59['start']['nodeAfter'],_0x1d17ba=_0x2ffb59['end']['nodeBefore'];return _0x425b34 instanceof _0x5c6653?_0x425b34!=_0x1d17ba?null:_0x425b34: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 _0x2a3a26=[];let _0x3176ad=this['head'];for(;_0x3176ad;)_0x2a3a26['push'](_0x3176ad),_0x3176ad=_0x3176ad['next'];return _0x2a3a26;}['setAttribute'](_0xfe732d,_0x400620){const _0x2f182=_0x49566e(this['attributes']);_0x1da1d0(_0x2f182,_0xfe732d,_0x400620),_0x594055(_0x2f182,this['attributes'])||(this['attributes']=_0x2f182,this['_onAttributesChange'](_0x2f182));}['removeAttribute'](_0x508ff4){const _0x226b88=_0x49566e(this['attributes']);_0x4c2932(_0x226b88,_0x508ff4),_0x594055(_0x226b88,this['attributes'])||(this['attributes']=_0x226b88,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 _0x516af4()['substr'](0x1,0x5);}}function o(_0x203ae7,_0x2ccc49,_0x1807ee){const _0x2fd65c=_0x203ae7['t'],t=_0x203ae7['t'];switch(_0x2ccc49){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',_0x1807ee);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1807ee);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1807ee);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1807ee);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1807ee);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',_0x1807ee);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1807ee);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',_0x1807ee);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1807ee);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1807ee);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1807ee);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1807ee);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1807ee);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1807ee);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1807ee);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1807ee);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1807ee);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1807ee);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1807ee);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1807ee);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1807ee);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1807ee);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1807ee);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1807ee);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1807ee);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'},_0x1807ee);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1807ee);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1807ee);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1807ee);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1807ee);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1807ee);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1807ee);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1807ee);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x1807ee);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1807ee);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1807ee);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1807ee);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1807ee);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'},_0x1807ee);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1807ee);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'},_0x1807ee);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'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'},_0x1807ee);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1807ee);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'},_0x1807ee);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1807ee);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'},_0x1807ee);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1807ee);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x1807ee);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x1807ee);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x1807ee);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1807ee);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'},_0x1807ee);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1807ee);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x2fd65c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1807ee);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2fd65c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1807ee);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1807ee);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'},_0x1807ee);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'},_0x1807ee);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'},_0x1807ee);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2ccc49;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2fcf87,_0x39cd24){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2fcf87,this['_locale']=_0x39cd24;}['getDescriptions'](_0x9a804d){const _0x1db65c=[],_0x3510a0=new Set(),_0x52c4b2=new Set();for(let _0xeae60f=0x0;_0xeae60f<_0x9a804d['length'];_0xeae60f++){const _0x37ccdf=_0x9a804d[_0xeae60f];if(!_0x37ccdf['isInContent'])continue;const _0x134f35=this['_handleCustomCallbackDescription'](_0x37ccdf);if(_0x134f35){if(null!=_0x37ccdf['subType']){if(_0x3510a0['has'](_0x37ccdf['subType']))continue;_0x3510a0['add'](_0x37ccdf['subType']);}_0x1db65c['push'](_0x134f35);}else{if('attribute'==_0x37ccdf['type']){const _0x5b5cd0=_0x37ccdf['data']['key'];if(_0x52c4b2['has'](_0x5b5cd0))continue;_0x52c4b2['add'](_0x37ccdf['data']['key']),_0x5b5cd0==m?this['_handleRenameSuggestionDescription'](_0x1db65c,_0x37ccdf):this['_handleAttributeSuggestionDescription'](_0x1db65c,_0x37ccdf);continue;}'insertion'!=_0x37ccdf['type']&&'deletion'!=_0x37ccdf['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1db65c,_0x37ccdf,_0x9a804d[_0xeae60f+0x1]);}}return this['_resolveDescriptionItems'](_0x1db65c);}['registerDescriptionCallback'](_0x3c5b82){this['_customCallbacks']['push'](_0x3c5b82);}['registerElementLabel'](_0x28fd3b,_0x57c1c1,_0x44ac8b=_0x134268['normal']){'function'==typeof _0x28fd3b?_0x2ab5ff(this['_itemLabelsCallbacks'],{'matchingCallback':_0x28fd3b,'label':_0x57c1c1,'priority':_0x44ac8b}):this['_itemLabels']['set'](_0x28fd3b,_0x57c1c1);}['registerAttributeLabel'](_0x2eb757,_0x420d19){this['_attributeLabels']['set'](_0x2eb757,_0x420d19);}['getItemLabel'](_0x5ff1c,_0x5c3581=0x1){let _0x3238c7;for(const _0xe8257f of this['_itemLabelsCallbacks'])if(_0xe8257f['matchingCallback'](_0x5ff1c)){_0x3238c7=_0xe8257f['label'];break;}return _0x3238c7||(_0x3238c7=this['_itemLabels']['get'](_0x5ff1c['name'])),_0x3238c7?_0x3238c7(_0x5c3581):0x1!==_0x5c3581?_0x5c3581+'\x20'+_0x5ff1c['name']+'s':''+_0x5ff1c['name'];}['_addDescriptionItems'](_0x31f405,_0x5732e6){const _0x1220ab=_0x5732e6['getFirstRange']()['getWalker'](),_0x11f5b5='insertion'==_0x5732e6['type']?'add':'remove';for(const _0x57a39f of _0x1220ab){const _0x60e675=_0x57a39f['item'],_0x28336c=_0x31f405[_0x31f405['length']-0x1];if(_0x60e675['is']('$textProxy'))_0x28336c&&_0x28336c['type']['indexOf']('Container')>-0x1&&_0x31f405['pop'](),_0x28336c&&'text'==_0x28336c['type']?_0x28336c[_0x11f5b5]+=_0x60e675['data']:_0x31f405['push']({'type':'text','add':'add'==_0x11f5b5?_0x60e675['data']:'','remove':'remove'==_0x11f5b5?_0x60e675['data']:''});else{if(this['_schema']['isObject'](_0x60e675)){const _0x3f217c=_0x60e675;if(_0x28336c&&_0x28336c['type']['indexOf']('Container')>-0x1&&_0x31f405['pop'](),'elementEnd'==_0x57a39f['type'])continue;_0x28336c&&_0x28336c['type']==_0x11f5b5+'Object'&&_0x28336c['element']['name']==_0x3f217c['name']?_0x28336c['quantity']++:_0x31f405['push']({'type':_0x11f5b5+'Object','element':_0x3f217c,'quantity':0x1}),_0x1220ab['skip'](_0x2702a6=>!('elementEnd'==_0x2702a6['type']&&_0x2702a6['item']==_0x60e675));}else{if(this['_schema']['checkChild'](_0x60e675,'$text')||_0x60e675['is']('element','softBreak')){const _0x55d9d9=_0x60e675;if('add'==_0x11f5b5&&'elementStart'==_0x57a39f['type']||'remove'==_0x11f5b5&&'elementEnd'==_0x57a39f['type'])continue;if(_0x28336c&&-0x1==_0x28336c['type']['indexOf']('Container')){'text'==_0x28336c['type']&&(_0x28336c[_0x11f5b5]+='\x0a');continue;}let _0x25aa44;if(_0x25aa44='add'==_0x11f5b5?_0x55d9d9['nextSibling']&&!this['_schema']['isObject'](_0x55d9d9['nextSibling'])?_0x55d9d9['nextSibling']:null:_0x55d9d9['previousSibling']&&!this['_schema']['isObject'](_0x55d9d9['previousSibling'])?_0x55d9d9['previousSibling']:null,_0x55d9d9['isEmpty']||_0x25aa44&&_0x25aa44['isEmpty']){const _0xbf5db1=_0x25aa44&&_0x25aa44['isEmpty']?_0x25aa44:_0x55d9d9;_0x28336c&&_0x28336c['type']==_0x11f5b5+'EmptyContainer'&&_0x28336c['element']['name']==_0xbf5db1['name']?_0x28336c['quantity']++:_0x31f405['push']({'type':_0x11f5b5+'EmptyContainer','element':_0xbf5db1,'quantity':0x1});}else _0x31f405['push']({'type':_0x11f5b5+'Container','element':_0x55d9d9});}}}}}['_resolveDescriptionItems'](_0x35fb45){const _0x38b2de=this['_locale'],_0x14b7fc=[],_0x5adf80=[],_0x5c9779=[];for(const _0x414d21 of _0x35fb45)switch(_0x414d21['type']){case'text':if(_0x414d21['add']=_0x414d21['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x414d21['remove']=_0x414d21['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x414d21['add']&&''!=_0x414d21['remove']){_0x14b7fc['push']({'type':'replace','content':o(_0x38b2de,'REPLACE_TEXT',['\x22'+_0x414d21['remove']+'\x22','\x22'+_0x414d21['add']+'\x22'])});continue;}if(null!=_0x414d21['add']['match'](/^ +$/)){_0x14b7fc['push']({'type':'insertion','content':o(_0x38b2de,'*Insert:*\x20%0',o(_0x38b2de,'ELEMENT_SPACE',_0x414d21['add']['length']))});continue;}if(null!=_0x414d21['remove']['match'](/^ +$/)){_0x14b7fc['push']({'type':'deletion','content':o(_0x38b2de,'*Remove:*\x20%0',o(_0x38b2de,'ELEMENT_SPACE',_0x414d21['remove']['length']))});continue;}if(''!=_0x414d21['add']){_0x14b7fc['push']({'type':'insertion','content':o(_0x38b2de,'*Insert:*\x20%0','\x22'+_0x414d21['add']+'\x22')});continue;}_0x14b7fc['push']({'type':'deletion','content':o(_0x38b2de,'*Remove:*\x20%0','\x22'+_0x414d21['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x14b7fc['push']({'type':'insertion','content':o(_0x38b2de,'*Insert:*\x20%0',this['getItemLabel'](_0x414d21['element'],_0x414d21['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x14b7fc['push']({'type':'deletion','content':o(_0x38b2de,'*Remove:*\x20%0',this['getItemLabel'](_0x414d21['element'],_0x414d21['quantity']))});continue;case'addContainer':_0x14b7fc['push']({'type':'insertion','content':o(_0x38b2de,'*Split:*\x20%0',this['getItemLabel'](_0x414d21['element'],_0x414d21['quantity']))});continue;case'removeContainer':_0x14b7fc['push']({'type':'deletion','content':o(_0x38b2de,'*Merge:*\x20%0',this['getItemLabel'](_0x414d21['element'],_0x414d21['quantity']))});continue;case'addFormat':_0x5adf80['push'](_0x414d21['key']);continue;case'removeFormat':_0x5c9779['push'](_0x414d21['key']);continue;default:_0x14b7fc['push'](_0x414d21);}if(_0x5adf80['length']){const _0x2ef7bd=_0x5adf80['map'](_0x4fda5f=>this['_attributeLabels']['has'](_0x4fda5f)?this['_attributeLabels']['get'](_0x4fda5f):_0x4fda5f)['join'](',\x20');_0x14b7fc['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2ef7bd)});}if(_0x5c9779['length']){const _0x274601=_0x5c9779['map'](_0x2e7f91=>this['_attributeLabels']['has'](_0x2e7f91)?this['_attributeLabels']['get'](_0x2e7f91):_0x2e7f91)['join'](',\x20');_0x14b7fc['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x274601)});}return _0x14b7fc;}['_handleCustomCallbackDescription'](_0x5e496b){for(const _0x22c897 of this['_customCallbacks']){const _0x20f71d=_0x22c897(_0x5e496b);if(_0x20f71d&&'type'in _0x20f71d)return _0x20f71d;}}['_handleAttributeSuggestionDescription'](_0x2796f5,_0x52f302){const _0xc33862=_0x52f302['data'],_0x130132=void 0x0===_0xc33862['newValue']?'removeFormat':'addFormat';_0x2796f5['push']({'type':_0x130132,'key':_0xc33862['key']});}['_handleRenameSuggestionDescription'](_0x21dbd1,_0x46b9bd){_0x21dbd1['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x46b9bd['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1fe46c,_0x848d51,_0x193f5a){if(this['_addDescriptionItems'](_0x1fe46c,_0x848d51),_0x193f5a&&_0x193f5a['getFirstRange']()&&!_0x848d51['getFirstRange']()['end']['isEqual'](_0x193f5a['getFirstRange']()['start'])){const _0x266c0c=_0x1fe46c[_0x1fe46c['length']-0x1],_0x590c6c='insertion'==_0x848d51['type']?'add':'remove';_0x266c0c&&'text'==_0x266c0c['type']&&(_0x266c0c[_0x590c6c]+='\x0a');}}}class U extends _0x52da3d{['afterInit'](){const _0x2b1b50=this['editor'],_0x447633=_0x2b1b50['plugins']['get']('TrackChangesEditing');_0x2b1b50['commands']['get']('showAIAssistant')&&_0x447633['enableCommand']('showAIAssistant');}}class V extends _0x52da3d{['afterInit'](){const _0x1fe18e=this['editor'],_0x1276ac=_0x1fe18e['plugins']['get']('TrackChangesEditing');_0x1fe18e['commands']['get']('toggleAi')&&_0x1276ac['enableCommand']('toggleAi');}}class F extends _0x52da3d{['afterInit'](){const _0x46fac2=this['editor'],_0x2c2a83=_0x46fac2['plugins']['get']('TrackChangesEditing');_0x46fac2['commands']['get']('aiQuickAction')&&_0x2c2a83['enableCommand']('aiQuickAction');}}class G extends _0x52da3d{['afterInit'](){const _0x5b0fa5=this['editor'],_0x2608ef=_0x5b0fa5['locale'];if(!_0x5b0fa5['plugins']['has']('AlignmentEditing'))return;const _0x57c9cf=_0x5b0fa5['plugins']['get']('TrackChangesEditing');_0x57c9cf['enableDefaultAttributesIntegration']('alignment'),_0x57c9cf['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2608ef,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28e1f3=this['editor'],_0x415045=_0x28e1f3['locale'];_0x28e1f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d24bb=>{if('formatBlock'!=_0x1d24bb['type'])return;const {data:_0x4b60c8}=_0x1d24bb;if(_0x4b60c8&&'alignment'==_0x4b60c8['commandName']){const _0x40d39b=_0x4b60c8['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x415045,'*Format:*\x20%0',function(_0x346379){switch(_0x346379){case'left':return o(_0x415045,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x415045,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x415045,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x415045,'FORMAT_JUSTIFY_TEXT');}}(_0x40d39b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x52da3d{['afterInit'](){const _0x94cf44=this['editor'],_0x12d5b5=_0x94cf44['plugins']['get']('TrackChangesEditing'),_0xccfaac=_0x94cf44['locale'];for(const _0x15d544 of ti){if(!_0x94cf44['plugins']['has'](_0x15d544))continue;const _0x3de1bc=_0x15d544['slice'](0x0,-0x7)['toLowerCase'](),_0x441c86='FORMAT_'+_0x3de1bc['toUpperCase']();_0x12d5b5['enableDefaultAttributesIntegration'](_0x3de1bc),_0x12d5b5['descriptionFactory']['registerAttributeLabel'](_0x3de1bc,o(_0xccfaac,_0x441c86));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x334026=this['editor'],_0x5b3853=_0x334026['locale'],_0x4d5ccd=_0x334026['plugins']['get']('TrackChangesEditing');function _0x1b8fdc(_0x579a68,_0x3d07bd){_0x4d5ccd['descriptionFactory']['registerDescriptionCallback'](_0x43b618=>{if('formatInline'!=_0x43b618['type'])return;const {data:_0x318def}=_0x43b618;return _0x318def&&_0x318def['commandName']===_0x579a68?_0x318def['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5b3853,'*Format:*\x20%0',_0x3d07bd)}:{'type':'format','content':o(_0x5b3853,'*Remove\x20format:*\x20%0',_0x3d07bd)}:void 0x0;});}_0x1b8fdc('bold',o(_0x5b3853,'FORMAT_BOLD')),_0x1b8fdc('italic',o(_0x5b3853,'FORMAT_ITALIC')),_0x1b8fdc('underline',o(_0x5b3853,'FORMAT_UNDERLINE')),_0x1b8fdc('code',o(_0x5b3853,'FORMAT_CODE')),_0x1b8fdc('strikethrough',o(_0x5b3853,'FORMAT_STRIKETHROUGH')),_0x1b8fdc('subscript',o(_0x5b3853,'FORMAT_SUBSCRIPT')),_0x1b8fdc('superscript',o(_0x5b3853,'FORMAT_SUPERSCRIPT'));}}class J extends _0x52da3d{['afterInit'](){const _0x4e90f8=this['editor'],_0x239a0=_0x4e90f8['locale'];if(!_0x4e90f8['plugins']['has']('BlockQuoteEditing'))return;const _0x4af243=_0x4e90f8['plugins']['get']('TrackChangesEditing'),_0x1d60e8=this['editor']['commands']['get']('blockQuote');_0x4af243['enableCommand']('blockQuote',(_0x2e42e2,_0xff8018={})=>{const _0x38a3db=this['editor']['model']['document']['selection'],_0x52f515=_0xff8018&&void 0x0!==_0xff8018['forceValue']?_0xff8018['forceValue']:!_0x1d60e8['value'];let _0xd52298=[];if(_0x52f515){const _0x3576c2=Array['from'](_0x38a3db['getSelectedBlocks']())['filter'](_0x26dcf8=>oo(_0x26dcf8)||function(_0x219979,_0x11b6d1){const _0xfc3d7d=_0x11b6d1['checkChild'](_0x219979['parent'],'blockQuote'),_0x1f27f8=_0x11b6d1['checkChild'](['$root','blockQuote'],_0x219979);return _0xfc3d7d&&_0x1f27f8;}(_0x26dcf8,this['editor']['model']['schema']));_0xd52298=to(_0x3576c2,_0x4e90f8['model']);}else{const _0x23f910=Array['from'](_0x38a3db['getSelectedBlocks']())['filter'](_0x36ac30=>oo(_0x36ac30));_0xd52298=to(_0x23f910,_0x4e90f8['model']);}_0x4e90f8['model']['change'](()=>{for(const _0x5cff9c of _0xd52298)_0x4af243['markBlockFormat'](_0x5cff9c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x52f515}]});});}),_0x4af243['descriptionFactory']['registerDescriptionCallback'](_0x40370e=>{const {data:_0x222fcf}=_0x40370e;if(_0x222fcf&&'blockQuote'==_0x222fcf['commandName']){const _0x324ecf=o(_0x239a0,'ELEMENT_BLOCK_QUOTE');return _0x222fcf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x239a0,'*Set\x20format:*\x20%0',_0x324ecf)}:{'type':'format','content':o(_0x239a0,'*Remove\x20format:*\x20%0',_0x324ecf)};}});}}function oo(_0x26339d){return'blockQuote'==_0x26339d['parent']['name'];}class q extends _0x52da3d{['afterInit'](){const _0x3eab78=this['editor'],_0x57e737=_0x3eab78['locale'],_0x554f65=_0x3eab78['plugins']['get']('TrackChangesEditing');_0x3eab78['plugins']['has']('BookmarkEditing')&&(_0x554f65['enableCommand']('insertBookmark'),_0x554f65['enableDefaultAttributesIntegration']('updateBookmark'),_0x554f65['descriptionFactory']['registerDescriptionCallback'](_0x168819=>{if('insertion'!=_0x168819['type']&&'deletion'!=_0x168819['type']&&'attribute'!=_0x168819['type'])return;const _0x28a401=_0x168819['getContainedElement']();if(null==_0x28a401)return;if(!_0x28a401['is']('element','bookmark'))return;const _0x2e9bc3=_0x28a401['getAttribute']('bookmarkId');if('insertion'==_0x168819['type'])return{'type':'insertion','content':o(_0x57e737,'*Insert:*\x20%0','\x22'+_0x2e9bc3+'\x22\x20'+o(_0x57e737,'ELEMENT_BOOKMARK'))};if('deletion'==_0x168819['type'])return{'type':'deletion','content':o(_0x57e737,'*Remove:*\x20%0','\x22'+_0x2e9bc3+'\x22\x20'+o(_0x57e737,'ELEMENT_BOOKMARK'))};const {data:_0x451da1}=_0x168819;if(!_0x451da1||'bookmarkId'!=_0x451da1['key'])return;return{'type':'format','content':o(_0x57e737,'*Set\x20bookmark:*\x20%0','\x22'+_0x451da1['newValue']+'\x22')};}));}}class z extends _0x52da3d{['afterInit'](){const _0x2d208=this['editor'];_0x2d208['plugins']['has']('CaseChange')&&(_0x2d208['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2d208['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2d208['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x52da3d{['afterInit'](){const _0x158906=this['editor'];_0x158906['commands']['get']('ckbox')&&_0x158906['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x52da3d{['afterInit'](){const _0x546af2=this['editor'];if(!_0x546af2['plugins']['has']('CodeBlock'))return;const _0x3b7a17=_0x546af2['plugins']['get']('TrackChangesEditing'),_0x1bf1e1=_0x546af2['locale'],_0x3ab5b6=_0x546af2['config']['get']('codeBlock')['languages'],_0x50456f=_0x546af2['commands']['get']('codeBlock');_0x3b7a17['enableCommand']('indentCodeBlock'),_0x3b7a17['enableCommand']('outdentCodeBlock'),_0x3b7a17['enableCommand']('codeBlock',(_0x14dfab,_0xe0ae36={})=>{const _0x92a37b=_0x546af2['model'],_0x3061f0=_0x546af2['model']['document']['selection'],_0x4d2bb4=_0xe0ae36&&void 0x0!==_0xe0ae36['forceValue']?_0xe0ae36['forceValue']:!_0x50456f['value'];let _0x704012;_0xe0ae36['language']||(_0xe0ae36['language']=_0x3ab5b6[0x0]['language']),_0x704012=_0x4d2bb4?Array['from'](_0x3061f0['getSelectedBlocks']())['filter'](_0xc6d63c=>co(_0xc6d63c)||function(_0x4cc5be,_0x59b916){if(_0x4cc5be['is']('rootElement')||_0x59b916['isLimit'](_0x4cc5be))return!0x1;return _0x59b916['checkChild'](_0x4cc5be['parent'],'codeBlock');}(_0xc6d63c,_0x92a37b['schema'])):Array['from'](_0x3061f0['getSelectedBlocks']())['filter'](_0x5b59bf=>co(_0x5b59bf));const _0x550a1d=to(_0x704012,_0x92a37b);_0x92a37b['change'](()=>{for(const _0x3c793f of _0x550a1d)_0x3b7a17['markBlockFormat'](_0x3c793f,{'commandName':'codeBlock','commandParams':[{..._0xe0ae36,'forceValue':_0x4d2bb4}],'formatGroupId':'blockName'});});}),(_0x3b7a17['descriptionFactory']['registerElementLabel']('codeBlock',_0x36ab51=>o(_0x1bf1e1,'ELEMENT_CODE_BLOCK',_0x36ab51)),_0x3b7a17['descriptionFactory']['registerDescriptionCallback'](_0x2f9404=>{if('formatBlock'!=_0x2f9404['type'])return;const _0x46318d=_0x1bf1e1['t'],{data:_0x1d27f4}=_0x2f9404;if(!_0x1d27f4||'codeBlock'!=_0x1d27f4['commandName'])return;const _0x54a9c=_0x1d27f4['commandParams'][0x0]['language'],_0x308a28=_0x46318d(_0x3ab5b6['find'](_0x58d560=>_0x58d560['language']===_0x54a9c)['label'])['toLowerCase']();return _0x1d27f4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1bf1e1,'*Set\x20format:*\x20%0',o(_0x1bf1e1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x308a28+')')}:{'type':'format','content':o(_0x1bf1e1,'*Remove\x20format:*\x20%0',o(_0x1bf1e1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x55dfab){return'codeBlock'==_0x55dfab['name'];}class H extends _0x52da3d{['afterInit'](){const _0x4e043f=this['editor'];if(!_0x4e043f['plugins']['has']('CommentsEditing'))return;_0x4e043f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x52da3d{static get['requires'](){return[_0xb3239a];}['init'](){const _0x4dc249=this['editor'],_0x3ca32d=_0x4dc249['plugins']['get']('TrackChangesEditing');_0x3ca32d['enableCommand']('delete');const _0x177746=_0x4dc249['commands']['get']('deleteForward');_0x3ca32d['enableCommand']('deleteForward',(_0x384262,_0x231b93={})=>{const _0x364518=_0x4dc249['model']['createSelection'](_0x4dc249['model']['document']['selection']);_0x364518['isCollapsed']&&_0x4dc249['model']['modifySelection'](_0x364518,{'direction':'forward','unit':_0x231b93['unit']});const _0x47d0bf=_0x364518['getFirstRange'](),_0x24be3d=_0x41726e['fromRange'](_0x47d0bf);let _0xa1e923;_0x384262(_0x231b93),_0xa1e923='$graveyard'==_0x24be3d['root']['rootName']?_0x4dc249['model']['createRange'](_0x47d0bf['start']):_0x4dc249['model']['createRange'](_0x24be3d['start'],_0x24be3d['end']),_0x24be3d['detach'](),_0x4dc249['model']['enqueueChange'](_0x177746['buffer']['batch'],_0x2547a1=>{_0x177746['buffer']['lock'](),_0x2547a1['setSelection'](_0x2547a1['createRange'](_0xa1e923['end'])),_0x177746['buffer']['unlock']();});});}}class X extends _0x52da3d{['afterInit'](){const _0x6ad239=this['editor'];if(!_0x6ad239['plugins']['has']('ListEditing'))return;const _0x1699fe=_0x6ad239['locale'],_0x2e7ef5=_0x6ad239['plugins']['get']('TrackChangesEditing'),_0x4ced39=_0x6ad239['plugins']['has']('TodoListEditing'),_0x28216b=!!_0x6ad239['config']['get']('list.multiBlock');function _0x3b22ea(_0x22160f){return{'type':'format','content':''+o(_0x1699fe,'*Set\x20format:*\x20%0',_0x22160f)};}function _0x10fb7a(_0x4ebdab){return{'type':'format','content':''+o(_0x1699fe,'*Remove\x20format:*\x20%0',_0x4ebdab)};}_0x2e7ef5['enableDefaultAttributesIntegration']('numberedList'),_0x2e7ef5['enableDefaultAttributesIntegration']('bulletedList'),_0x2e7ef5['enableDefaultAttributesIntegration']('customNumberedList'),_0x2e7ef5['enableDefaultAttributesIntegration']('customBulletedList'),_0x2e7ef5['enableDefaultAttributesIntegration']('indentList'),_0x2e7ef5['enableDefaultAttributesIntegration']('outdentList'),_0x2e7ef5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2e7ef5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x28216b&&(_0x2e7ef5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2e7ef5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4ced39&&(_0x2e7ef5['enableDefaultAttributesIntegration']('todoList'),_0x2e7ef5['enableDefaultAttributesIntegration']('checkTodoList'),_0x2e7ef5['descriptionFactory']['registerDescriptionCallback'](_0x2a6ce1=>{const {data:_0x2789f5}=_0x2a6ce1;if(_0x2789f5&&'todoListChecked'==_0x2789f5['key'])return{'type':'format','content':_0x2789f5['newValue']?o(_0x1699fe,'*Check\x20item*'):o(_0x1699fe,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x217c48=>{if(_0x217c48['batch']['isUndo'])return!0x1;let _0x254a0d=!0x1;const _0x2001d4=_0x2e7ef5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e8c7c=>'todoListChecked'===_0x2e7ef5['_getAttributeKey'](_0x4e8c7c));for(const _0x127563 of _0x2001d4){'todo'!=_0x127563['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2e7ef5['_findSuggestions'](_0x127563['getFirstRange'](),'attribute')['find'](_0x7b0076=>'listType'===_0x2e7ef5['_getAttributeKey'](_0x7b0076['suggestion']))||(_0x217c48['removeMarker'](_0x127563['getFirstMarker']()),_0x254a0d=!0x0));}return _0x254a0d;})),_0x2e7ef5['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1699fe,'FORMAT_INDENT'));const _0x3d8347={'type':'format','content':''};_0x2e7ef5['descriptionFactory']['registerDescriptionCallback'](_0x35b137=>{const {data:_0x775393}=_0x35b137;if(!_0x775393||'listType'!=_0x775393['key'])return;let _0x58f40b=_0x35b137['head'];for(;_0x58f40b;){if(_0x58f40b['data']&&(('listStyle'==_0x58f40b['data']['key']||'listMarkerStyle'==_0x58f40b['data']['key'])&&(_0x58f40b['data']['newValue']&&'default'!=_0x58f40b['data']['newValue']||'default'!=_0x58f40b['data']['oldValue']&&!_0x775393['newValue'])||!_0x28216b&&_0x58f40b['data']['key']==m))return _0x3d8347;_0x58f40b=_0x58f40b['next'];}if(null==_0x775393['newValue'])switch(_0x775393['oldValue']){case'bulleted':return _0x10fb7a(o(_0x1699fe,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x10fb7a(o(_0x1699fe,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x10fb7a(o(_0x1699fe,'ELEMENT_TODO_LIST'));}switch(_0x775393['newValue']){case'bulleted':return _0x3b22ea(o(_0x1699fe,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3b22ea(o(_0x1699fe,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3b22ea(o(_0x1699fe,'ELEMENT_TODO_LIST'));}}),_0x2e7ef5['descriptionFactory']['registerDescriptionCallback'](_0xf6343f=>{const {data:_0x57eb2e}=_0xf6343f;if(_0x57eb2e&&'listIndent'==_0x57eb2e['key'])return null==_0x57eb2e['newValue']||null==_0x57eb2e['oldValue']&&0x0==_0x57eb2e['newValue']?_0x3d8347:void 0x0;}),_0x2e7ef5['descriptionFactory']['registerDescriptionCallback'](_0x394c3a=>{if('attribute'!=_0x394c3a['type'])return;const {data:_0x47b58c}=_0x394c3a;if(!_0x47b58c||'listItemId'!=_0x47b58c['key'])return;const _0x7449cc=Te(_0x394c3a);return'newValue'==_0x7449cc?{'type':'format','content':o(_0x1699fe,'*Merge:*\x20list\x20item')}:'oldValue'==_0x7449cc?{'type':'format','content':o(_0x1699fe,'*Split:*\x20list\x20item')}:_0x3d8347;}),_0x6ad239['model']['document']['registerPostFixer'](_0x25eb98=>this['listItemIdFixer'](_0x25eb98)),_0x6ad239['model']['document']['registerPostFixer'](_0x30919b=>this['noTrackChangesFixer'](_0x30919b)),_0x6ad239['model']['document']['on']('change:data',(_0x20d215,_0x4c26d0)=>{if(_0x4c26d0['isUndo']||!_0x4c26d0['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x45a789){if(_0x45a789['batch']['isUndo']||!_0x45a789['batch']['isLocal'])return!0x1;let _0x475503=!0x1;const _0x507efb=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a0fad=>_0x5a0fad['data']&&'listItemId'==_0x5a0fad['data']['key'])['filter'](_0x51679f=>_0x51679f['data']['newValue']&&_0x51679f['data']['oldValue']);for(const _0x1323cc of _0x507efb)Te(_0x1323cc)||(_0x45a789['removeMarker'](_0x1323cc['getFirstMarker']()),_0x475503=!0x0);return _0x475503;}['noTrackChangesFixer'](_0x44f074){if(_0x44f074['batch']['isUndo']||!_0x44f074['batch']['isLocal'])return!0x1;const _0x4d045b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4d045b['trackChangesCommand']['value'])return!0x1;let _0xdfecd3=!0x1;const _0x303f7d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x39cc54=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2cea15=>'attribute'==_0x2cea15['type'])['filter'](_0x186f55=>_0x303f7d['includes'](_0x186f55['attributeKey']));if(0x0==_0x39cc54['length'])return _0xdfecd3;for(const _0x1d0cd6 of _0x39cc54){const _0x17ed0e=_0x4d045b['_findSuggestions'](_0x1d0cd6['range'],'attribute')['filter'](_0x329998=>!_0x329998['meta']['isNextTo'])['map'](_0x140d8a=>_0x140d8a['suggestion'])['filter'](_0x1f997e=>{const _0x87d94e=_0x4d045b['_getAttributeKey'](_0x1f997e);return _0x303f7d['includes'](_0x87d94e);});if(_0x17ed0e['length']){for(const _0x1b563f of _0x17ed0e)_0x44f074['removeMarker'](_0x1b563f['getFirstMarker']());_0xdfecd3=!0x0;}}return _0xdfecd3;}['assureChains'](){const _0x66177a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b2b7d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x36bdbb;const _0x38e174=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5aceb6=>{if(_0x5aceb6['data']['oldRange']||!_0x5aceb6['data']['newRange'])return null;if(!_0x5aceb6['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3f27fc}=_0x66177a['_splitMarkerName'](_0x5aceb6['name']);if(!_0x66177a['hasSuggestion'](_0x3f27fc))return null;const _0x88b60d=_0x66177a['getSuggestion'](_0x3f27fc);return _0x4b2b7d['includes'](_0x88b60d['data']['key']);})['map'](_0x4d12cd=>{const {id:_0x4267a6}=_0x66177a['_splitMarkerName'](_0x4d12cd['name']),_0xe4ed68=_0x66177a['getSuggestion'](_0x4267a6);return _0x36bdbb=_0xe4ed68['attributes']['groupId'],_0xe4ed68['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x38e174['size'])return;const _0x20ebcc=_0x66177a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x56c31d=>'attribute'==_0x56c31d['type']&&_0x56c31d['data']&&_0x4b2b7d['includes'](_0x56c31d['data']['key'])&&_0x56c31d['attributes']['groupId']!=_0x36bdbb)['map'](_0x9791d0=>({'listItem':_0x9791d0['getFirstRange']()['start']['nodeAfter'],'groupId':_0x9791d0['attributes']['groupId']})),_0x2e453c=new Set();for(const {groupId:_0x304ee5,listItem:_0x463023}of _0x20ebcc)_0x38e174['has'](_0x463023)&&_0x2e453c['add'](_0x304ee5);for(const _0x59833a of _0x66177a['getSuggestions']())_0x2e453c['has'](_0x59833a['attributes']['groupId'])&&_0x59833a['setAttribute']('groupId',_0x36bdbb);}['_supportLegacySuggestions'](){const _0x2e376a=this['editor'],_0x35fcb2=_0x2e376a['locale'],_0x1fb565=_0x2e376a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1fb565['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3c3b18,_0xb15c3f){const _0x198b88=[];for(let _0x1afb90 of _0x3c3b18)_0x1afb90['start']['nodeAfter']===_0x1afb90['end']['parent']&&(_0x1afb90=_0x2e376a['model']['createRange'](_0x2e376a['model']['createPositionAt'](_0x1afb90['start']['nodeAfter'],0x0))),_0x198b88['push'](_0x1afb90);_0x2e376a['model']['change'](_0x17c339=>{const _0x2f2050=_0x2e376a['model']['document']['selection'],_0x14feaa=Array['from'](_0x2f2050['getRanges']())['map'](_0x3c4b62=>_0x41726e['fromRange'](_0x3c4b62));_0x17c339['setSelection'](_0x198b88),_0x2e376a['commands']['get'](_0xb15c3f['commandName'])['refresh'](),_0xb15c3f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2e376a['execute'](_0xb15c3f['commandName'],..._0xb15c3f['commandParams']),_0x17c339['setSelection'](_0x14feaa);for(const _0x4ee60c of _0x14feaa)_0x4ee60c['detach']();});}),_0x1fb565['descriptionFactory']['registerElementLabel'](function(_0x2b8121){const _0x3d1efc=!_0x2e376a['model']['schema']['isObject'](_0x2b8121),_0x13b2c9=_0x2b8121['previousSibling'],_0x3086db=_0x2b8121['nextSibling'],_0x231b84=_0x2b8121['getAttribute']('listItemId'),_0x2ec89f=!_0x13b2c9||_0x13b2c9['getAttribute']('listItemId')!==_0x231b84,_0x37a805=!_0x3086db||_0x3086db['getAttribute']('listItemId')!==_0x231b84;return _0x3d1efc&&Boolean(_0x231b84)&&_0x2ec89f&&_0x37a805;},_0x1ef2f6=>o(_0x35fcb2,'ELEMENT_LIST_ITEM',_0x1ef2f6));}['_registerLegacyDescription'](){const _0x18b3a7=this['editor'],_0x25a9e1=_0x18b3a7['locale'];function _0x9685ea(_0x254249){const _0x57820f=_0x18b3a7['commands']['get']('bulletedList')['value'],_0x188a7f=_0x18b3a7['commands']['get']('numberedList')['value'];return'numberedList'===_0x254249?_0x57820f:_0x188a7f;}_0x18b3a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4bf4d2){if('formatBlock'!=_0x4bf4d2['type'])return;const {data:_0x23e431}=_0x4bf4d2;if(!_0x23e431)return;let _0x3bd233,_0x2434b2,_0x5ac38e,_0x21b725;switch(_0x23e431['commandName']){case'bulletedList':_0x5ac38e=_0x23e431['commandParams'][0x0]['forceValue'],_0x21b725=_0x9685ea(_0x23e431['commandName']),_0x3bd233=_0x5ac38e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x21b725&&_0x18b3a7['config']['get']('list.multiBlock')||(_0x3bd233='*Change\x20to:*\x20%0'),_0x2434b2={'type':'format','content':o(_0x25a9e1,_0x3bd233,o(_0x25a9e1,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5ac38e=_0x23e431['commandParams'][0x0]['forceValue'],_0x21b725=_0x9685ea(_0x23e431['commandName']),_0x3bd233=_0x5ac38e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x21b725&&_0x18b3a7['config']['get']('list.multiBlock')||(_0x3bd233='*Change\x20to:*\x20%0'),_0x2434b2={'type':'format','content':o(_0x25a9e1,_0x3bd233,o(_0x25a9e1,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3bd233='*Indent:*\x20%0',_0x2434b2={'type':'format','content':o(_0x25a9e1,_0x3bd233,o(_0x25a9e1,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3bd233=function(_0xd10a31){const _0x1f01fa=_0xd10a31['getFirstRange']();let _0x448208=_0x1f01fa['start']['nodeAfter'];for(;_0x448208&&_0x1f01fa['containsItem'](_0x448208);){if(_0x448208['getAttribute']('listIndent')>0x0)return!0x1;_0x448208=_0x448208['nextSibling'];}return!0x0;}(_0x4bf4d2)?o(_0x25a9e1,'*Format:*\x20remove\x20from\x20%0',o(_0x25a9e1,function(_0x34aa71){return'ELEMENT_'+_0x34aa71['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4bf4d2))):o(_0x25a9e1,'*Outdent:*\x20%0',o(_0x25a9e1,'ELEMENT_LIST_ITEM')),_0x2434b2={'type':'format','content':_0x3bd233};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x23e431['multipleBlocks']&&(_0x3bd233='*Merge:*\x20%0',_0x2434b2={'type':'deletion','content':o(_0x25a9e1,_0x3bd233,o(_0x25a9e1,'ELEMENT_LIST_ITEM'))});}return _0x2434b2;});}}function Te(_0x165c33){let _0x4ef781=_0x165c33['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4ef781;){const _0xd8e490=_0x4ef781['getAttribute']('listItemId');if(!_0xd8e490)return!0x1;if(_0xd8e490==_0x165c33['data']['newValue'])return'newValue';if(_0xd8e490==_0x165c33['data']['oldValue'])return'oldValue';_0x4ef781=_0x4ef781['previousSibling'];}return!0x1;}class Y extends _0x52da3d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xda7937=this['editor']['config']['get']('list.properties'),_0x11bb49=this['editor']['plugins']['get']('TrackChangesEditing');_0xda7937['styles']&&_0x11bb49['enableDefaultAttributesIntegration']('listStyle'),_0xda7937['reversed']&&_0x11bb49['enableDefaultAttributesIntegration']('listReversed'),_0xda7937['startIndex']&&_0x11bb49['enableDefaultAttributesIntegration']('listStart');const _0x1168ed={'type':'format','content':''};_0x11bb49['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x36d767=this['editor']['locale'];_0x11bb49['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x36d767,'FORMAT_LIST_REVERSED')),_0x11bb49['descriptionFactory']['registerDescriptionCallback'](_0x33c6c5=>{const {data:_0x4c4673}=_0x33c6c5;if(_0x4c4673&&'listReversed'==_0x4c4673['key'])return null==_0x4c4673['newValue']||0x0==_0x4c4673['newValue']&&null==_0x4c4673['oldValue']?_0x1168ed:void 0x0;}),_0x11bb49['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x36d767,'FORMAT_LIST_START')),_0x11bb49['descriptionFactory']['registerDescriptionCallback'](_0x363490=>{const {data:_0x5cc7aa}=_0x363490;if(_0x5cc7aa&&'listStart'==_0x5cc7aa['key'])return null==_0x5cc7aa['newValue']||0x1==_0x5cc7aa['newValue']&&null==_0x5cc7aa['oldValue']?_0x1168ed:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1307d7=>{if(_0x1307d7['batch']['isUndo'])return!0x1;let _0x3f72bb=!0x1;const _0x488aba=_0x11bb49['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21a9df=>{const _0xebc60=_0x11bb49['_getAttributeKey'](_0x21a9df);return'listStart'==_0xebc60||'listReversed'==_0xebc60;});for(const _0x3138e7 of _0x488aba){const _0x38ac50=_0x3138e7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x38ac50||'customNumbered'==_0x38ac50)continue;_0x11bb49['_findSuggestions'](_0x3138e7['getFirstRange'](),'attribute')['find'](_0x1cf630=>'listType'==_0x11bb49['_getAttributeKey'](_0x1cf630['suggestion']))||(_0x1307d7['removeMarker'](_0x3138e7['getFirstMarker']()),_0x3f72bb=!0x0);}return _0x3f72bb;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x455bc2){const _0x3cef36=this['editor']['locale'],{data:_0x420ad7}=_0x455bc2,_0x4afcc6={'type':'format','content':''};if(!_0x420ad7||'listStyle'!=_0x420ad7['key'])return;if(!_0x420ad7['oldValue'])return'default'==_0x420ad7['newValue']?_0x4afcc6:{'type':'format','content':''+o(_0x3cef36,'*Set\x20format:*\x20%0',o(_0x3cef36,this['_getTranslationKeyForListStyle'](_0x420ad7['newValue'])))};if(!_0x420ad7['newValue']){if('default'==_0x420ad7['oldValue'])return _0x4afcc6;let _0x2d8517=_0x455bc2['head'];for(;_0x2d8517;){if(_0x2d8517['data']&&'listType'==_0x2d8517['data']['key']&&_0x2d8517['data']['newValue'])return _0x4afcc6;_0x2d8517=_0x2d8517['next'];}return{'type':'format','content':''+o(_0x3cef36,'*Remove\x20format:*\x20%0',o(_0x3cef36,this['_getTranslationKeyForListStyle'](_0x420ad7['oldValue'])))};}if('default'!=_0x420ad7['newValue'])return{'type':'format','content':''+o(_0x3cef36,'*Set\x20format:*\x20%0',o(_0x3cef36,this['_getTranslationKeyForListStyle'](_0x420ad7['newValue'])))};let _0xd45a47=_0x455bc2['head'];for(;_0xd45a47;){if(_0xd45a47['data']&&'listType'==_0xd45a47['data']['key']&&_0xd45a47['data']['newValue']&&_0xd45a47['data']['oldValue'])return _0x4afcc6;_0xd45a47=_0xd45a47['next'];}return{'type':'format','content':o(_0x3cef36,'*Set\x20format:*\x20%0',o(_0x3cef36,'ELEMENT_'+_0x455bc2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x564fdf=this['editor'],_0x3ca9cf=_0x564fdf['locale'];_0x564fdf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13eddc=>{if('formatBlock'!=_0x13eddc['type'])return;const {data:_0x14448d}=_0x13eddc;if(!_0x14448d)return;let _0xc4dd68,_0x176a9d;switch(_0x14448d['commandName']){case'listStyle':_0xc4dd68='*Change\x20to:*\x20%0',_0x176a9d={'type':'format','content':o(_0x3ca9cf,_0xc4dd68,o(_0x3ca9cf,this['_getTranslationKeyForListStyle'](_0x14448d['commandParams'][0x0]['type'])))};break;case'listReversed':_0xc4dd68=_0x14448d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x176a9d={'type':'format','content':o(_0x3ca9cf,_0xc4dd68)};break;case'listStart':_0xc4dd68='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x176a9d={'type':'format','content':o(_0x3ca9cf,_0xc4dd68,_0x14448d['commandParams'][0x0]['startIndex'])};}return _0x176a9d;});}['_getTranslationKeyForListStyle'](_0x2a48ae){return'ELEMENT_'+function(_0x43a6bd){if(ye['includes'](_0x43a6bd))return'bulleted';if(Se['includes'](_0x43a6bd))return'numbered';return null;}(_0x2a48ae)['toUpperCase']()+'_LIST_'+_0x2a48ae['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0x52da3d{['afterInit'](){const _0x589198=this['editor'];_0x589198['commands']['get']('emoji')&&_0x589198['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x52da3d{static get['requires'](){return[_0x3a5c64];}['init'](){const _0x38ee02=this['editor'],_0x4942bb=_0x38ee02['plugins']['get']('TrackChangesEditing'),_0x5b800d=_0x38ee02['commands']['get']('enter');_0x4942bb['enableCommand']('enter',()=>{_0x38ee02['model']['change'](_0x592c22=>{const _0xe7269c=_0x38ee02['model']['document']['selection'],_0x511860=_0xe7269c['getFirstPosition'](),_0x10dc62=_0x41726e['fromRange'](_0xe7269c['getFirstRange']());if(_0x5b800d['enterBlock'](_0x592c22)){const _0x32ae3d=_0x38ee02['model']['createPositionAt'](_0x511860['parent']['nextSibling'],0x0),_0x50aa80=_0x592c22['createRange'](_0x511860,_0x32ae3d);_0x4942bb['markInsertion'](_0x50aa80);}else _0x592c22['setSelection'](_0x592c22['createRange'](_0x10dc62['end']));_0x10dc62['detach'](),_0x5b800d['fire']('afterExecute',{'writer':_0x592c22});});});}}class nt extends _0x52da3d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2923f1=this['editor']['plugins']['get']('TrackChangesEditing');_0x2923f1['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2923f1['enableCommand']('findNext'),_0x2923f1['enableCommand']('findPrevious'),_0x2923f1['enableCommand']('replace'),_0x2923f1['enableCommand']('replaceAll');}['handleFindCommand'](_0xe61f51,_0x5825df,_0x4e657a={}){const _0x8b0473=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xe61f51(_0x5adaa0=>{let _0x181e50=('string'==typeof _0x5825df?_0x8b0473['findByTextCallback'](_0x5825df,_0x4e657a):_0x5825df)(_0x5adaa0);Array['isArray'](_0x181e50)&&(_0x181e50={'results':_0x181e50,'searchText':'string'==typeof _0x5825df?_0x5825df:''});const _0x2e0639=_0x181e50['results']['filter'](_0x281e1e=>!0x1===this['_isInDeletionRange'](_0x281e1e,_0x5adaa0['item']));return{..._0x181e50,'results':_0x2e0639};},_0x4e657a);}['_isInDeletionRange'](_0x457550,_0x225a32){const _0x43a4fa=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x225a32,_0x457550['start']),this['editor']['model']['createPositionAt'](_0x225a32,_0x457550['end']));for(const _0x4e2fc3 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x43a4fa['getIntersection'](_0x4e2fc3['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x52da3d{['afterInit'](){const _0x45a31f=this['editor']['locale'],_0x523b35=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x53e0a2,commandName:_0x3706ea}of eo)this['editor']['plugins']['has'](_0x53e0a2)&&_0x523b35['enableDefaultAttributesIntegration'](_0x3706ea);_0x523b35['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x45a31f,'FORMAT_FONT_SIZE')),_0x523b35['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x45a31f,'FORMAT_FONT_FAMILY')),_0x523b35['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x45a31f,'FORMAT_FONT_COLOR')),_0x523b35['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x45a31f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11dfa5=this['editor'],_0x5584d4=_0x11dfa5['locale'];_0x11dfa5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3854cc=>{const _0x3b50c2=_0x5584d4['t'];if('formatInline'!=_0x3854cc['type'])return;const {data:_0x306a74}=_0x3854cc;if(null!=_0x306a74){if('fontSize'==_0x306a74['commandName']){const _0x4a65a8=_0x306a74['commandParams'][0x0]['value'];if(_0x4a65a8){const _0x4e335a=_0x3b50c2(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x447f1b=>_0x447f1b['model']==_0x4a65a8)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5584d4,'*Set\x20font\x20size:*\x20%0',_0x4e335a)};}return{'type':'format','content':o(_0x5584d4,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x306a74['commandName']){const _0x113628=_0x306a74['commandParams'][0x0]['value'];return _0x113628?{'type':'format','content':o(_0x5584d4,'*Set\x20font\x20family:*\x20%0',_0x113628)}:{'type':'format','content':o(_0x5584d4,'*Reset\x20font\x20family*')};}if('fontColor'==_0x306a74['commandName']){const _0xf3d3b5=_0x306a74['commandParams'][0x0]['value'];if(_0xf3d3b5){const _0x80ec2d=_0x1bd929(this['editor']['config']['get']('fontColor.colors'))['find'](_0x446a5d=>_0x446a5d['model']==_0xf3d3b5);let _0x2684f2=_0xf3d3b5,_0x38894d='';return _0x80ec2d&&(_0x2684f2=_0x80ec2d['label'],_0x38894d=_0x3b50c2(_0x2684f2)['toLowerCase']()),{'type':'format','content':o(_0x5584d4,'*Set\x20font\x20color:*\x20%0',_0x38894d)['trim'](),'color':{'value':_0xf3d3b5,'title':_0x38894d||_0x2684f2}};}return{'type':'format','content':o(_0x5584d4,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x306a74['commandName']){const _0x15b0e9=_0x306a74['commandParams'][0x0]['value'];if(_0x15b0e9){const _0x455d33=_0x1bd929(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1479a6=>_0x1479a6['model']==_0x15b0e9);let _0x5c1200=_0x15b0e9,_0x5b42ab='';return _0x455d33&&(_0x5c1200=_0x455d33['label'],_0x5b42ab=_0x3b50c2(_0x5c1200)['toLowerCase']()),{'type':'format','content':o(_0x5584d4,'*Set\x20font\x20background\x20color:*\x20%0',_0x5b42ab)['trim'](),'color':{'value':_0x15b0e9,'title':_0x5b42ab||_0x5c1200}};}return{'type':'format','content':o(_0x5584d4,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x52da3d{['afterInit'](){const {plugins:_0x42d946}=this['editor'];_0x42d946['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x42d946['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x410115,plugins:_0x2e337b,commands:_0x10e127}=this['editor'],_0x45f645=_0x2e337b['get']('TrackChangesEditing');_0x10e127['get']('footnotesStyle')&&_0x45f645['enableDefaultAttributesIntegration']('footnotesStyle'),_0x10e127['get']('footnotesStart')&&_0x45f645['enableDefaultAttributesIntegration']('footnotesStart'),_0x45f645['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x410115,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x45f645['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x410115,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x35773a=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x221cac,commands:_0x57999a}=this['editor'];_0x57999a['get']('insertFootnote')&&_0x35773a['enableCommand']('insertFootnote'),_0x35773a['descriptionFactory']['registerElementLabel']('footnoteRef',_0xce3b88=>o(_0x221cac,'ELEMENT_FOOTNOTE_REF',_0xce3b88)),_0x35773a['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x27bd06=>o(_0x221cac,'ELEMENT_FOOTNOTE_DEFINITION',_0x27bd06)),_0x35773a['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x3a3ed4=>o(_0x221cac,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x3a3ed4));}}class st extends _0x52da3d{['afterInit'](){const _0x5e84e6=this['editor'],_0x127138=_0x5e84e6['plugins']['get']('TrackChangesEditing'),_0x4621f4=_0x5e84e6['commands']['get']('copyFormat'),_0x136d4c=_0x5e84e6['commands']['get']('pasteFormat');_0x4621f4&&_0x136d4c&&(_0x127138['enableDefaultAttributesIntegration']('pasteFormat'),_0x127138['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x13c09b=this['editor'],_0x3e498d=_0x13c09b['locale'];_0x13c09b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b94e0=>{if('formatBlock'!=_0x5b94e0['type']&&'formatInline'!=_0x5b94e0['type'])return;const {data:_0x5a6282}=_0x5b94e0;if(_0x5a6282&&'pasteFormat'===_0x5a6282['commandName']){const _0x5a1499=[],_0x37eec5=_0x5a6282['commandParams'][0x0];for(const [_0x462182,_0x3abfbc]of Object['entries'](_0x37eec5))_0x5a1499['push'](ro(_0x13c09b,_0x462182,_0x3abfbc));return _0x5a1499['length']?{'type':'format','content':o(_0x3e498d,'*Set\x20format\x20to:*\x20%0',_0x5a1499['join'](',\x20'))}:{'type':'format','content':o(_0x3e498d,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x52dd91,_0x2b3f65,_0x2cfdc2){const _0x5f460e=_0x52dd91['locale']['t'],_0x199683=_0x2b3f65['split'](/(?=[A-Z])/)['join']('\x20'),_0x871455=_0x5f460e(_0x199683['charAt'](0x0)['toUpperCase']()+_0x199683['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2cfdc2)return _0x871455;if('fontColor'===_0x2b3f65||'fontBackgroundColor'===_0x2b3f65){const _0x4b4f63=_0x1bd929(_0x52dd91['config']['get']('fontColor.colors'))['find'](_0x3a7719=>_0x3a7719['model']==_0x2cfdc2);return _0x871455+'\x20('+(_0x4b4f63?_0x5f460e(_0x4b4f63['label'])['toLowerCase']():_0x2cfdc2)+')';}if('fontSize'===_0x2b3f65&&isNaN(parseFloat(_0x2cfdc2))){const _0x4da374=_0x52dd91['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x52dd91['config']['get']('fontSize.options'))['find'](_0x206364=>_0x206364['model']==_0x2cfdc2);return _0x871455+'\x20('+(_0x4da374?_0x5f460e(_0x4da374['title'])['toLowerCase']():_0x2cfdc2)+')';}return _0x871455+'\x20('+_0x2cfdc2+')';}class ot extends _0x52da3d{['_headingOptions'];['afterInit'](){const _0x117227=this['editor'];if(!_0x117227['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x117227['config']['get']('heading.options');const _0x223b5c=_0x117227['locale'],_0x48c7c1=_0x117227['plugins']['get']('TrackChangesEditing');_0x48c7c1['enableDefaultAttributesIntegration']('heading');for(const _0x322d6b of this['_headingOptions'])'paragraph'!=_0x322d6b['model']&&_0x48c7c1['descriptionFactory']['registerElementLabel'](_0x322d6b['model'],_0x5dbd8e=>{const _0x5060df=this['_getHeadingLevel'](_0x322d6b['model']);return null!==_0x5060df?_0x25f2f2(_0x5dbd8e,_0x5060df):_0x56061b(_0x5dbd8e,_0x322d6b['title']);});function _0x25f2f2(_0x46c9a0,_0x40e0d2){return o(_0x223b5c,'ELEMENT_HEADING',[_0x46c9a0,_0x40e0d2]);}function _0x56061b(_0x4fa99a,_0x499e2e){return o(_0x223b5c,'ELEMENT_HEADING_CUSTOM',[_0x4fa99a,_0x499e2e]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fb474=this['editor'],_0x346717=_0x3fb474['locale'];function _0x5f45c4(_0xad102f,_0x50d8a5){return o(_0x346717,'ELEMENT_HEADING_CUSTOM',[_0xad102f,_0x50d8a5]);}_0x3fb474['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cb62f=>{if('formatBlock'!=_0x1cb62f['type'])return;const {data:_0x39d083}=_0x1cb62f;if(_0x39d083&&'heading'==_0x39d083['commandName']){const _0x450061=_0x39d083['commandParams'][0x0]['value'],_0x1662b3=this['_getHeadingLevel'](_0x450061);if(null!==_0x1662b3)return{'type':'format','content':o(_0x346717,'*Change\x20to:*\x20%0',(_0x79a778=0x1,_0x10fcdd=_0x1662b3,o(_0x346717,'ELEMENT_HEADING',[_0x79a778,_0x10fcdd])))};const _0x3716ca=this['_headingOptions']['find'](_0x690607=>_0x690607['model']===_0x450061)['title'];return{'type':'format','content':o(_0x346717,'*Change\x20to:*\x20%0',_0x5f45c4(0x1,_0x3716ca))};}var _0x79a778,_0x10fcdd;});}['_getHeadingLevel'](_0x13cb32){const _0x7bb8a3=_0x13cb32['match'](/^heading(\d+)/);if(_0x7bb8a3)return _0x7bb8a3[0x1];const _0x38c943=this['_headingOptions']?.['find'](_0xcbdda5=>_0xcbdda5['model']==_0x13cb32);if(_0x38c943&&_0x38c943['view']){const _0x36d953=_0x38c943['view'],_0x5061c1=(_0x36d953['name']??_0x36d953)['match'](/^h(\d+)/);if(_0x5061c1)return _0x5061c1[0x1];}return null;}}class rt extends _0x52da3d{['afterInit'](){const _0x54ea1b=this['editor'];if(!_0x54ea1b['plugins']['has']('HighlightEditing'))return;const _0x2bfcc7=_0x54ea1b['plugins']['get']('TrackChangesEditing'),_0x418e7e=_0x54ea1b['locale'];_0x2bfcc7['enableDefaultAttributesIntegration']('highlight'),_0x2bfcc7['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x418e7e,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25d5ac=this['editor'],_0x536f01=_0x25d5ac['locale'];_0x25d5ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a4ef8=>{if('formatInline'!=_0x4a4ef8['type'])return;const {data:_0x41260f}=_0x4a4ef8;if(_0x41260f&&'highlight'==_0x41260f['commandName']){const _0x5ef96a=_0x536f01['t'],_0x5e2bee=_0x41260f['commandParams'][0x0]['value'];if(_0x5e2bee){const _0xb266f2=_0x25d5ac['config']['get']('highlight.options')['find'](_0x5b599e=>_0x5b599e['model']==_0x5e2bee),_0x5f2f4e=_0x5ef96a(_0xb266f2['title'])['toLowerCase']();return{'type':'format','content':o(_0x536f01,'*Set\x20highlight:*\x20%0',_0x5f2f4e),'color':{'value':_0xb266f2['color'],'title':_0xb266f2['title']}};}return{'type':'format','content':o(_0x536f01,'*Remove\x20highlight*',o(_0x536f01,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x52da3d{['afterInit'](){const _0x51dc7b=this['editor'];if(!_0x51dc7b['plugins']['has']('HorizontalLineEditing'))return;_0x51dc7b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x110626=_0x51dc7b['plugins']['get']('TrackChangesEditing'),_0x22151d=_0x51dc7b['locale'];_0x110626['descriptionFactory']['registerElementLabel']('horizontalLine',_0x358ed7=>o(_0x22151d,'ELEMENT_HORIZONTAL_LINE',_0x358ed7));}}class ct extends _0x52da3d{['afterInit'](){const _0x2b3058=this['editor'];if(!_0x2b3058['plugins']['has']('HtmlEmbed'))return;const _0x2eb944=_0x2b3058['plugins']['get']('TrackChangesEditing'),_0x44e03e=_0x2b3058['locale'];_0x2eb944['descriptionFactory']['registerElementLabel']('rawHtml',_0x384250=>o(_0x44e03e,'ELEMENT_HTML_EMBED',_0x384250)),_0x2eb944['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2eb944['descriptionFactory']['registerDescriptionCallback'](_0x5181a7=>{if('attribute'!=_0x5181a7['type'])return;const {data:_0x2cab48}=_0x5181a7;if(_0x2cab48&&'value'==_0x2cab48['key']&&_0x5181a7['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3bfe3b=o(_0x44e03e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x44e03e,'*Change\x20%0\x20content*',_0x3bfe3b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ded22=this['editor'],_0x466496=_0x5ded22['locale'];_0x5ded22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29a999=>{if('formatBlock'!=_0x29a999['type'])return;const {data:_0x49d14e}=_0x29a999;if(_0x49d14e&&'htmlEmbed'==_0x49d14e['commandName']){const _0x5ae1d6=o(_0x466496,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x466496,'*Change\x20%0\x20content*',_0x5ae1d6)};}});}}class ut extends _0x52da3d{['afterInit'](){const _0x11825c=this['editor'];if(!_0x11825c['plugins']['has']('ImageEditing'))return;const _0x5af1b6=_0x11825c['plugins']['get']('TrackChangesEditing'),_0x27cc97=_0x11825c['plugins']['get']('ImageUtils'),_0x17585c=_0x11825c['locale'];_0x5af1b6['enableCommand']('insertImage'),_0x5af1b6['descriptionFactory']['registerElementLabel']('imageBlock',_0x4ee86e=>o(_0x17585c,'ELEMENT_IMAGE',_0x4ee86e)),_0x5af1b6['descriptionFactory']['registerElementLabel']('imageInline',_0x59a9be=>o(_0x17585c,'ELEMENT_INLINE_IMAGE',_0x59a9be)),_0x5af1b6['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x17585c,'ELEMENT_CAPTION')),_0x11825c['plugins']['has']('ImageUploadEditing')&&_0x5af1b6['enableCommand']('uploadImage'),_0x11825c['plugins']['has']('ImageBlockEditing')&&_0x11825c['plugins']['has']('ImageInlineEditing')&&(_0x5af1b6['enableCommand']('imageTypeInline',(_0x4916f1,_0x55d5ba)=>{const _0x5c1b0a=_0x27cc97['getClosestSelectedImageElement'](_0x11825c['model']['document']['selection']);_0x11825c['model']['change'](()=>{_0x5af1b6['markBlockFormat'](_0x5c1b0a,{'commandName':'imageTypeInline','commandParams':[_0x55d5ba]},[],'convertBlockImageToInline');});}),_0x5af1b6['enableCommand']('imageTypeBlock',(_0x237335,_0x423491)=>{_0x11825c['model']['change'](_0x4cdf2a=>{let _0x1c3c8a=_0x27cc97['getClosestSelectedImageElement'](_0x11825c['model']['document']['selection']),_0x593675=_0x4cdf2a['createRangeOn'](_0x1c3c8a);const _0x1acc65=_0x3efac0['fromPosition'](_0x593675['start'],'toPrevious'),_0x5f375b=_0x3efac0['fromPosition'](_0x593675['end'],'toNext');_0x5af1b6['forceDefaultExecution'](()=>_0x237335(_0x423491)),_0x1c3c8a=_0x27cc97['getClosestSelectedImageElement'](_0x11825c['model']['document']['selection']),_0x593675=_0x4cdf2a['createRangeOn'](_0x1c3c8a);const _0x1ac5e8=_0x4cdf2a['createRange'](_0x1acc65,_0x5f375b);_0x1acc65['detach'](),_0x5f375b['detach'](),_0x5af1b6['markBlockFormat'](_0x1c3c8a,{'commandName':'imageTypeInline','commandParams':[_0x423491]},[],'convertInlineImageToBlock'),_0x1ac5e8['start']['isBefore'](_0x593675['start'])&&_0x5af1b6['markInsertion'](_0x4cdf2a['createRange'](_0x1ac5e8['start'],_0x593675['start']),'convertInlineImageToBlock'),_0x593675['end']['isBefore'](_0x1ac5e8['end'])&&_0x5af1b6['markInsertion'](_0x4cdf2a['createRange'](_0x593675['end'],_0x1ac5e8['end']),'convertInlineImageToBlock');});}),_0x5af1b6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5af1b6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5af1b6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5af1b6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5af1b6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5af1b6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x445878])=>{const _0x250e41=_0x5af1b6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x37b4d5=_0x445878['start'],_0x1ae980=_0x445878['end'];const _0x5dacc7=_0x11825c['model']['schema']['getNearestSelectionRange'](_0x37b4d5,'backward'),_0x4f82f3=_0x11825c['model']['schema']['getNearestSelectionRange'](_0x1ae980,'forward');_0x5dacc7['isCollapsed']&&(_0x37b4d5=_0x5dacc7['start']),_0x4f82f3['isCollapsed']&&(_0x1ae980=_0x4f82f3['end']),_0x250e41([_0x11825c['model']['createRange'](_0x37b4d5,_0x1ae980)]);}),_0x5af1b6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1cea23),_0x5af1b6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1cea23)),_0x11825c['plugins']['has']('ImageCaptionEditing')&&(_0x5af1b6['enableCommand']('toggleImageCaption',(_0x3e2d34,_0x368161)=>{const _0x5a82c2=_0x11825c['plugins']['get']('ImageCaptionUtils');let _0x2e649a=_0x27cc97['getClosestSelectedImageElement'](_0x11825c['model']['document']['selection']),_0x246404=_0x5a82c2['getCaptionFromImageModelElement'](_0x2e649a);_0x11825c['model']['change'](()=>{if(_0x246404)return void _0x5af1b6['markDeletion'](_0x11825c['model']['createRangeOn'](_0x246404));const _0x42833d=_0x27cc97['isBlockImage'](_0x2e649a);_0x3e2d34(_0x368161),_0x2e649a=_0x27cc97['getClosestSelectedImageElement'](_0x11825c['model']['document']['selection']),_0x246404=_0x5a82c2['getCaptionFromImageModelElement'](_0x2e649a),_0x5af1b6['markInsertion'](_0x11825c['model']['createRangeOn'](_0x246404),_0x42833d?null:'imageCaption');});}),_0x5af1b6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1cea23));const _0x4fee1c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x336197(_0x2de4a1,_0x5c430a){const _0x1fc64f=_0x4fee1c['findIndex'](({type:_0x2053c9,subType:_0x40e99a})=>_0x2de4a1['type']==_0x2053c9&&_0x2de4a1['subType']==_0x40e99a),_0x231dca=_0x4fee1c['findIndex'](({type:_0x4b54ca,subType:_0x2c589f})=>_0x5c430a['type']==_0x4b54ca&&_0x5c430a['subType']==_0x2c589f);if(_0x1fc64f<0x0||_0x231dca<0x0)return!0x1;const _0x6b6992=_0x2de4a1['getFirstRange'](),_0x491173=_0x5c430a['getFirstRange']();if((0x0==_0x1fc64f||0x1==_0x1fc64f)&&0x2==_0x231dca&&_0x6b6992['isIntersecting'](_0x491173))return!0x0;if(0x2==_0x1fc64f&&0x3==_0x231dca){const _0x5491e9=_0x5af1b6['_findSuggestions'](_0x6b6992,'insertion')['filter'](({suggestion:_0x362c6a,meta:_0x59549f})=>_0x59549f['isOwn']&&'convertInlineImageToBlock'==_0x362c6a['subType']);if(_0x5491e9['length']>0x1&&_0x491173['end']['isEqual'](_0x6b6992['start']))return!0x0;if(0x1==_0x5491e9['length']&&(_0x6b6992['start']['isEqual'](_0x491173['end'])||_0x6b6992['end']['isEqual'](_0x491173['start'])))return!0x0;}if(0x3==_0x1fc64f&&0x3==_0x231dca&&_0x6b6992['start']['isBefore'](_0x491173['start'])){const _0x11a632=_0x6b6992['end']['nodeAfter'],_0x208a18=_0x491173['start']['nodeBefore'];return _0x27cc97['isBlockImage'](_0x11a632)&&_0x11a632===_0x208a18;}return!0x1;}function _0x1cea23(_0x310ebb,_0x35278f){return _0x336197(_0x310ebb,_0x35278f)?[_0x310ebb,_0x35278f]:_0x336197(_0x35278f,_0x310ebb)?[_0x35278f,_0x310ebb]:null;}_0x11825c['plugins']['has']('ImageResize')&&(_0x5af1b6['enableDefaultAttributesIntegration']('resizeImage'),_0x5af1b6['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x17585c,'FORMAT_IMAGE_SIZE'))),_0x11825c['plugins']['has']('ImageTextAlternativeEditing')&&_0x5af1b6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x11825c['plugins']['has']('PictureEditing')&&_0x5af1b6['descriptionFactory']['registerDescriptionCallback'](_0x192b21=>{if('attribute'!=_0x192b21['type'])return;const {data:_0xd7619f}=_0x192b21;return _0xd7619f&&'sources'==_0xd7619f['key']?{'type':'format','content':''}:void 0x0;}),_0x11825c['plugins']['has']('ImageSizeAttributes')&&_0x5af1b6['descriptionFactory']['registerDescriptionCallback'](_0x2437e4=>{if('attribute'!=_0x2437e4['type'])return;const {data:_0x50b877}=_0x2437e4;return!_0x50b877||'width'!=_0x50b877['key']&&'height'!=_0x50b877['key']?void 0x0:{'type':'format','content':''};}),_0x5af1b6['descriptionFactory']['registerDescriptionCallback'](_0x36f732=>{if(!!_0x4fee1c['find'](({type:_0x337181,subType:_0xd05534})=>_0x36f732['type']==_0x337181&&_0x36f732['subType']==_0xd05534))return _0x36f732['previous']?{}:void 0x0;}),_0x5af1b6['descriptionFactory']['registerDescriptionCallback'](_0x2d2104=>{if('insertion'==_0x2d2104['type']||'deletion'==_0x2d2104['type']){const _0x186150=_0x2d2104['getContainedElement']();if(_0x186150&&_0x186150['is']('element','caption'))return{'type':'insertion'==_0x2d2104['type']?'addObject':'removeObject','element':_0x186150,'quantity':0x1};}}),_0x5af1b6['descriptionFactory']['registerDescriptionCallback'](_0x3b77b4=>'formatBlock'==_0x3b77b4['type']&&'convertInlineImageToBlock'==_0x3b77b4['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3b77b4['type']&&'convertBlockImageToInline'==_0x3b77b4['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5af1b6['descriptionFactory']['registerDescriptionCallback'](_0x3a4f62=>{if('attribute'!=_0x3a4f62['type'])return;const {data:_0x5b84b5}=_0x3a4f62;if(!_0x5b84b5||'alt'!=_0x5b84b5['key'])return;const _0x50d22a=_0x5b84b5['newValue'];return _0x50d22a?{'type':'format','content':o(_0x17585c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x50d22a+'\x22')}:{'type':'format','content':o(_0x17585c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cbd04=this['editor'],_0x5c6c46=_0x2cbd04['locale'];_0x2cbd04['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fe3f=>{if('formatBlock'!=_0x4fe3f['type']&&'formatInline'!=_0x4fe3f['type'])return;const {data:_0x3ecd16}=_0x4fe3f;if(_0x3ecd16){if('imageTextAlternative'==_0x3ecd16['commandName']){const _0x1299cc=_0x3ecd16['commandParams'][0x0]['newValue'];return _0x1299cc?{'type':'format','content':o(_0x5c6c46,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1299cc+'\x22')}:{'type':'format','content':o(_0x5c6c46,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3ecd16['commandName']){const _0x4c0275=_0x3ecd16['commandParams'][0x0]['width'];return _0x4c0275?{'type':'format','content':o(_0x5c6c46,'*Set\x20image\x20width:*\x20%0',_0x4c0275)}:{'type':'format','content':o(_0x5c6c46,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x52da3d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x335bf3=this['editor']['locale'],_0x564469=this['editor']['plugins']['get']('TrackChangesEditing');_0x564469['enableDefaultAttributesIntegration']('replaceImageSource'),_0x564469['descriptionFactory']['registerDescriptionCallback'](_0x28e5eb=>{if('attribute'!=_0x28e5eb['type'])return;const {data:_0x385c17}=_0x28e5eb;return _0x385c17&&'src'==_0x385c17['key']?_0x385c17['newValue']&&_0x385c17['oldValue']?{'type':'format','content':o(_0x335bf3,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xe597d2=this['editor']['plugins']['get']('TrackChangesEditing');_0xe597d2['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xe597d2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xe597d2['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xe597d2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35a5bf=this['editor'],_0x5b2b79=_0x35a5bf['locale'];_0x35a5bf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe23a9e=>{if('formatBlock'!=_0xe23a9e['type']&&'formatInline'!=_0xe23a9e['type'])return;const {data:_0x521ef8}=_0xe23a9e;if(!_0x521ef8||'replaceImageSource'!=_0x521ef8['commandName'])return;return{'type':'format','content':o(_0x5b2b79,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x52da3d{['afterInit'](){const _0xb919e3=this['editor'];if(!_0xb919e3['plugins']['has']('ImageStyleEditing'))return;const _0x515bcb=_0xb919e3['plugins']['get']('TrackChangesEditing'),_0x2f2edf=_0xb919e3['plugins']['get']('ImageUtils'),_0x567928={};_0x515bcb['enableCommand']('imageStyle',(_0x1d4ad2,_0x43fe9d)=>{const _0x255fbe=_0xb919e3['plugins']['get']('Users')['me'],_0x42928d=_0xb919e3['commands']['get']('imageStyle');let _0xab15ff=_0x2f2edf['getClosestSelectedImageElement'](_0xb919e3['model']['document']['selection']),_0xa9527a=_0xb919e3['model']['createRangeOn'](_0xab15ff),_0x4bdf6f=_0x42928d['value'];if(_0x4bdf6f==_0x43fe9d['value'])return;const _0x3b520d={'commandName':'imageStyle','commandParams':[_0x43fe9d],'formatGroupId':_0x516af4()};_0xb919e3['model']['change'](()=>{if(_0x515bcb['getSuggestions']()['filter'](_0x4bb986=>_0x4bb986['isInContent']&&_0x255fbe==_0x4bb986['author']&&('formatBlock'==_0x4bb986['type']||'formatInline'==_0x4bb986['type'])&&('imageStylePreApply'==_0x4bb986['subType']||'imageStylePostApply'==_0x4bb986['subType'])&&_0x4bb986['getFirstRange']()['isEqual'](_0xa9527a))['forEach'](_0x5d097d=>_0x515bcb['discardSuggestion'](_0x5d097d['head'])),_0xab15ff=_0x2f2edf['getClosestSelectedImageElement'](_0xb919e3['model']['document']['selection']),_0xa9527a=_0xb919e3['model']['createRangeOn'](_0xab15ff),_0x42928d['refresh'](),_0xb919e3['commands']['get']('imageTypeInline')['refresh'](),_0xb919e3['commands']['get']('imageTypeBlock')['refresh'](),_0x4bdf6f=_0x42928d['value'],_0x4bdf6f!=_0x43fe9d['value'])return _0x2f2edf['isInlineImage'](_0xab15ff)&&_0x42928d['shouldConvertImageType'](_0x43fe9d['value'],_0xab15ff)?(_0x1d4ad2({..._0x43fe9d,'setImageSizes':!0x1}),_0xab15ff=_0x2f2edf['getClosestSelectedImageElement'](_0xb919e3['model']['document']['selection']),void _0x515bcb['markBlockFormat'](_0xab15ff,{..._0x3b520d,'commandReversedParams':[{'value':_0x4bdf6f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2f2edf['isBlockImage'](_0xab15ff)?_0x515bcb['markBlockFormat'](_0xab15ff,_0x3b520d,[],'imageStylePostApply'):_0x515bcb['markInlineFormat'](_0xa9527a,_0x3b520d,'imageStylePostApply'));});});for(const _0x47267e of _0xb919e3['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x567928[_0x47267e['name']]=_0x47267e['title']['toLowerCase']();_0x515bcb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x515bcb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x515bcb['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x515bcb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2a0ecc])=>{_0x2f2edf['setImageNaturalSizeAttributes'](_0x2a0ecc['getContainedElement']());}),_0x515bcb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xff9f76,_0x2275db)=>{_0x515bcb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xff9f76,{'commandName':_0x2275db['commandName'],'commandParams':_0x2275db['commandReversedParams']});}),_0x515bcb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4a1072,_0x362ad8){if(_0x42f90c(_0x4a1072,_0x362ad8))return[_0x4a1072,_0x362ad8];if(_0x42f90c(_0x362ad8,_0x4a1072))return[_0x362ad8,_0x4a1072];return null;});const _0x4282e3=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x42f90c(_0x29cc50,_0x2648e9){const _0x550ff9=_0x4282e3['findIndex'](({type:_0x1417b9,subType:_0x15e1e0})=>_0x29cc50['type']==_0x1417b9&&_0x29cc50['subType']==_0x15e1e0),_0x5bd6b8=_0x4282e3['findIndex'](({type:_0x2d089d,subType:_0x2e7261})=>_0x2648e9['type']==_0x2d089d&&_0x2648e9['subType']==_0x2e7261);if(_0x550ff9<0x0||_0x5bd6b8<0x0)return!0x1;const _0x5e414f=_0x29cc50['getFirstRange'](),_0x478b50=_0x2648e9['getFirstRange']();if((0x0==_0x550ff9||0x1==_0x550ff9)&&0x2==_0x5bd6b8&&_0x5e414f['isIntersecting'](_0x478b50))return!0x0;if(0x2==_0x550ff9&&0x3==_0x5bd6b8){const _0x40a319=_0x515bcb['_findSuggestions'](_0x5e414f,'insertion')['filter'](({suggestion:_0x626f6f,meta:_0x22e932})=>_0x22e932['isOwn']&&'convertInlineImageToBlock'==_0x626f6f['subType']);if(_0x40a319['length']>0x1&&_0x478b50['end']['isEqual'](_0x5e414f['start']))return!0x0;if(0x1==_0x40a319['length']&&(_0x5e414f['start']['isEqual'](_0x478b50['end'])||_0x5e414f['end']['isEqual'](_0x478b50['start'])))return!0x0;}if(0x3==_0x550ff9&&0x3==_0x5bd6b8&&_0x5e414f['start']['isBefore'](_0x478b50['start'])){const _0x582efa=_0x5e414f['end']['nodeAfter'],_0x599b9f=_0x478b50['start']['nodeBefore'];return _0x2f2edf['isBlockImage'](_0x582efa)&&_0x582efa===_0x599b9f;}return!0x1;}_0xb919e3['model']['document']['registerPostFixer'](()=>{let _0x10c43f=!0x1;const _0x3a505e=Array['from'](_0xb919e3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x48247c,data:_0x113d5f}of _0x3a505e){const {group:_0x499e45,type:_0x55854a,subType:_0x12a468,id:_0x370756}=_0x515bcb['_splitMarkerName'](_0x48247c);if('suggestion'==_0x499e45&&_0x515bcb['hasSuggestion'](_0x370756)){if('formatBlock'==_0x55854a&&('imageStylePreApply'==_0x12a468||'imageStylePostApply'==_0x12a468)){const _0x1f5ba5=_0x515bcb['getSuggestion'](_0x370756);if(_0x113d5f['newRange']){const _0x13c305=_0x1f5ba5['getFirstRange']()['getContainedElement']();if(_0x2f2edf['isBlockImage'](_0x13c305))continue;_0x515bcb['discardSuggestion'](_0x1f5ba5),_0x10c43f=!0x0;}}if('insertion'==_0x55854a&&'imageCaption'==_0x12a468&&!_0x113d5f['newRange']){const _0x4edb94=_0x515bcb['getSuggestion'](_0x370756);_0x4edb94['next']&&_0x4edb94['next']['isInContent']&&(_0x515bcb['discardSuggestion'](_0x4edb94['next']),_0x10c43f=!0x0);}}}return _0x10c43f;}),this['_registerLegacyDescription'](_0x567928);}['_registerLegacyDescription'](_0x5453e6){const _0x858336=this['editor'],_0x3842c7=_0x858336['locale'];_0x858336['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33fd84=>{if('formatBlock'!=_0x33fd84['type']&&'formatInline'!=_0x33fd84['type'])return;const {data:_0x471d40}=_0x33fd84;if(!_0x471d40||'imageStyle'!=_0x471d40['commandName'])return;const _0x3fe09e=_0x471d40['commandParams'][0x0]['value'];return _0x1f7c56('side'===_0x3fe09e?o(_0x3842c7,'FORMAT_SIDE_IMAGE'):_0x5453e6[_0x3fe09e]||_0x3fe09e);function _0x1f7c56(_0xd1d97a){return{'type':'format','content':o(_0x3842c7,'*Format:*\x20%0',_0xd1d97a)};}});}}class lt extends _0x52da3d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xada941){super(_0xada941),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1e05f3=this['editor'],_0x42ec27=_0x1e05f3['commands']['get']('importWord'),_0x3c73a4=_0x1e05f3['commands']['get']('trackChanges');_0x42ec27&&(_0x42ec27['on']('execute',(_0x3a9f07,[,_0x1c1606])=>{this['_trackChangesValueDuringImport']=_0x3c73a4['value'],_0x1c1606['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x42ec27,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x42ec27,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3c73a4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1e05f3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5f7c3d,_0x7cc49f){const {suggestions:_0xb88bc9}=_0x7cc49f,_0x1ab7a=this['editor']['commands']['get']('trackChanges'),_0x2a5967=_0x1ab7a['value'];this['_trackChangesValueDuringImport']!==_0x2a5967&&(_0x1ab7a['execute'](),this['_trackChangesExecuted']=!0x0),_0xb88bc9&&_0xb88bc9['forEach'](({id:_0x4bb304,type:_0x2a2fbb,author:_0x165b91,created_at:_0x2b89c4})=>{const _0x762691={'id':_0x4bb304,'type':_0x2a2fbb,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x165b91,'createdAt':_0x2b89c4?new Date(_0x2b89c4):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x762691);});}}class gt extends _0x52da3d{['afterInit'](){const _0x274123=this['editor'],_0x2f48aa=_0x274123['plugins']['get']('TrackChangesEditing');if(_0x274123['plugins']['has']('IndentEditing')&&(_0x2f48aa['enableCommand']('indent'),_0x2f48aa['enableCommand']('outdent')),_0x274123['plugins']['has']('IndentBlock')){for(const _0x14b359 of['indentBlock','outdentBlock'])_0x2f48aa['enableDefaultAttributesIntegration'](_0x14b359);if(_0x274123['plugins']['has']('ListEditing')){for(const _0xe92981 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x2f48aa['enableDefaultAttributesIntegration'](_0xe92981);}}const _0x135de2=_0x274123['locale'];_0x2f48aa['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x135de2,'FORMAT_INDENT')),_0x2f48aa['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x135de2,'FORMAT_INDENT')),_0x2f48aa['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x135de2,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5038ee=this['editor'],_0x71366e=_0x5038ee['locale'],_0x3efdf5=_0x5038ee['plugins']['get']('TrackChangesEditing');_0x3efdf5['descriptionFactory']['registerDescriptionCallback'](_0x5936b8=>{if('formatBlock'!=_0x5936b8['type'])return;const {data:_0x553eb7}=_0x5936b8;if(!_0x553eb7)return;if('indentBlock'!=_0x553eb7['commandName']&&'outdentBlock'!=_0x553eb7['commandName'])return;const _0x434e46=_0x5936b8['getItems']()[0x0],_0x40a315=_0x3efdf5['descriptionFactory']['getItemLabel'](_0x434e46);return'indentBlock'==_0x553eb7['commandName']?{'type':'format','content':o(_0x71366e,'*Indent:*\x20%0',_0x40a315)}:'outdentBlock'==_0x553eb7['commandName']?{'type':'format','content':o(_0x71366e,'*Outdent:*\x20%0',_0x40a315)}:void 0x0;});}}class mt extends _0x52da3d{static get['requires'](){return[_0x383ca3];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x52da3d{['afterInit'](){const _0x5eb360=this['editor'];if(!_0x5eb360['plugins']['has']('LinkEditing'))return;const _0x283bde=_0x5eb360['plugins']['get']('TrackChangesEditing'),_0x5e0a92=_0x5eb360['commands']['get']('link');_0x283bde['enableDefaultAttributesIntegration']('link'),_0x283bde['enableDefaultAttributesIntegration']('unlink');for(const _0x8af8d0 of _0x5e0a92['manualDecorators'])_0x283bde['descriptionFactory']['registerAttributeLabel'](_0x8af8d0['id'],'link\x20('+_0x8af8d0['label']['toLowerCase']()+')');_0x283bde['descriptionFactory']['registerDescriptionCallback'](_0x374f24=>{if('attribute'!=_0x374f24['type'])return;const {data:_0x369a69}=_0x374f24;if(!_0x369a69||'linkHref'!=_0x369a69['key'])return;const _0x508c42=_0x369a69['newValue'],_0x51f796=_0x5eb360['locale'];return{'type':'format','content':null==_0x508c42?o(_0x51f796,'*Remove\x20link*'):o(_0x51f796,'*Set\x20link:*\x20%0','\x22'+_0x508c42+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ad8e4=this['editor'],_0x58f85b=_0x3ad8e4['locale'];_0x3ad8e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xea425e=>{if('formatInline'!=_0xea425e['type'])return;const {data:_0x4ab418}=_0xea425e;if(_0x4ab418){if('link'==_0x4ab418['commandName']){const _0x591b15=_0x4ab418['commandParams'][0x0];return{'type':'format','content':o(_0x58f85b,'*Set\x20link:*\x20%0','\x22'+_0x591b15+'\x22')};}return'unlink'==_0x4ab418['commandName']?{'type':'format','content':o(_0x58f85b,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x52da3d{['afterInit'](){const _0x61d1ff=this['editor'],_0x454174=_0x61d1ff['locale'];if(!_0x61d1ff['plugins']['has']('LegacyListEditing'))return;const _0x1e0648=_0x61d1ff['plugins']['get']('TrackChangesEditing'),_0x128860=_0x61d1ff['plugins']['has']('LegacyTodoListEditing');function _0x239a31(_0x1fccd1){return()=>{const _0x17ced4=_0x61d1ff['model']['document']['selection'],_0x3bd4e2=_0x61d1ff['commands']['get'](_0x1fccd1);if(_0x3bd4e2['value'])return void _0x61d1ff['execute']('paragraph',{});const _0xd87df6=_0x1fccd1['slice'](0x0,-0x4),_0x429585=function(_0x4ab466,_0x238f3c,_0x2967c4){let _0x3d457c=Array['from'](_0x4ab466)['filter'](_0x122c0d=>function(_0x2ff060,_0x320ba8){return _0x320ba8['checkChild'](_0x2ff060['parent'],'listItem')&&!_0x320ba8['isObject'](_0x2ff060);}(_0x122c0d,_0x2967c4));_0x3d457c=_0x3d457c['filter'](_0x4de460=>!_0x4de460['is']('element','listItem')||_0x4de460['getAttribute']('listType')!=_0x238f3c);const _0xe00111=new Set();for(const _0x5efc39 of _0x3d457c)_0x5efc39['is']('element','listItem')?_0xe00111['add'](Le(_0x5efc39)):_0xe00111['add'](_0x5efc39);return Array['from'](_0xe00111);}(_0x17ced4['getSelectedBlocks'](),_0xd87df6,_0x61d1ff['model']['schema']);_0x61d1ff['model']['change'](()=>{for(const _0x2bc296 of _0x429585)_0x1e0648['markBlockFormat'](_0x2bc296,{'commandName':_0x1fccd1,'commandParams':[{'forceValue':!_0x3bd4e2['value']}],'formatGroupId':'blockName'},Ee(_0x2bc296));});};}function _0x76c0bd(_0x2ccf5f){return()=>{const _0x474961=function(_0x3c7f99){let _0x1d9d2c=Array['from'](_0x3c7f99);const _0x41f0fd=_0x1d9d2c['findIndex'](_0x30983a=>'listItem'!=_0x30983a['name']);return _0x41f0fd>-0x1&&(_0x1d9d2c=_0x1d9d2c['slice'](0x0,_0x41f0fd)),_0x1d9d2c;}(_0x61d1ff['model']['document']['selection']['getSelectedBlocks']()),_0xd6b2dd=_0x61d1ff['model']['createRange'](_0x61d1ff['model']['createPositionAt'](_0x474961[0x0],'before'),_0x61d1ff['model']['createPositionAt'](_0x474961[_0x474961['length']-0x1],'end'));_0x61d1ff['model']['change'](()=>{_0x1e0648['markBlockFormat'](_0xd6b2dd,{'commandName':_0x2ccf5f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x25f29d){const _0x50e0b1=new Set();for(const _0x411da2 of _0x25f29d){let _0x51f86b=_0x411da2['nextSibling'];for(;_0x51f86b&&_0x51f86b['getAttribute']('listIndent')>_0x411da2['getAttribute']('listIndent');)_0x50e0b1['add'](_0x51f86b),_0x51f86b=_0x51f86b['nextSibling'];}return Array['from'](_0x50e0b1);}(_0x474961));});};}_0x1e0648['enableCommand']('numberedList',_0x239a31('numberedList')),_0x1e0648['enableCommand']('bulletedList',_0x239a31('bulletedList')),_0x128860&&_0x1e0648['enableCommand']('todoList',_0x239a31('todoList')),_0x1e0648['enableCommand']('indentList',_0x76c0bd('indentList')),_0x1e0648['enableCommand']('outdentList',_0x76c0bd('outdentList')),_0x128860&&_0x1e0648['enableCommand']('checkTodoList',()=>{const _0x245b7e=_0x61d1ff['commands']['get']('checkTodoList'),_0x23e9c6=Array['from'](_0x245b7e['_selectedElements']);_0x23e9c6['filter'](_0x395d63=>_0x395d63['getAttribute']('todoListChecked')!=_0x245b7e['value']),_0x61d1ff['model']['change'](()=>{for(const _0x3f026a of _0x23e9c6)_0x1e0648['markBlockFormat'](_0x3f026a,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x245b7e['value']}]});});}),_0x1e0648['descriptionFactory']['registerElementLabel']('listItem',_0x545cd3=>o(_0x454174,'ELEMENT_LIST_ITEM',_0x545cd3)),_0x1e0648['descriptionFactory']['registerDescriptionCallback'](_0x31ca05=>{if('formatBlock'!=_0x31ca05['type']&&'formatInline'!=_0x31ca05['type'])return;const {data:_0x57d9b4}=_0x31ca05;if(_0x57d9b4){if('numberedList'==_0x57d9b4['commandName']||'bulletedList'==_0x57d9b4['commandName']||'todoList'==_0x57d9b4['commandName'])switch(_0x57d9b4['commandName']['replace']('List','')){case'bulleted':return _0x6c62dc(o(_0x454174,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x6c62dc(o(_0x454174,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x6c62dc(o(_0x454174,'ELEMENT_TODO_LIST'));}if('indentList'==_0x57d9b4['commandName'])return{'type':'format','content':o(_0x454174,'*Indent:*\x20%0',o(_0x454174,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x57d9b4['commandName'])return{'type':'format','content':o(_0x454174,'*Outdent:*\x20%0',o(_0x454174,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x57d9b4['commandName'])return _0x57d9b4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x454174,'*Check\x20item*')}:{'type':'format','content':o(_0x454174,'*Uncheck\x20item*')};}function _0x6c62dc(_0x2a1398){return{'type':'format','content':o(_0x454174,'*Change\x20to:*\x20%0',_0x2a1398)};}});}}function Le(_0x27078c){const _0x57d1cf=_0x27078c['getAttribute']('listIndent');if(0x0==_0x57d1cf)return _0x27078c;let _0x216b66=_0x27078c;for(;_0x27078c['previousSibling']&&_0x27078c['previousSibling']['is']('element','listItem');){const _0x312b52=_0x27078c['previousSibling']['getAttribute']('listIndent');if(_0x312b52==_0x57d1cf)_0x216b66=_0x27078c['previousSibling'];else{if(_0x312b52<_0x57d1cf)break;}_0x27078c=_0x27078c['previousSibling'];}return _0x216b66;}function Ee(_0x360581){const _0x440c22=[];if(_0x360581['is']('element','listItem')&&_0x360581['getAttribute']('listIndent')>0x0){let _0x3009aa=_0x360581['nextSibling'];for(;_0x3009aa&&'listItem'==_0x3009aa['name']&&_0x3009aa['getAttribute']('listIndent')==_0x360581['getAttribute']('listIndent');)_0x440c22['push'](_0x3009aa),_0x3009aa=_0x3009aa['nextSibling'];}return _0x440c22;}class wt extends _0x52da3d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x32ec70=this['editor']['config']['get']('list.properties'),_0x317d14=this['editor']['plugins']['get']('TrackChangesEditing');_0x32ec70['styles']&&_0x317d14['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x32ec70['reversed']&&_0x317d14['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x32ec70['startIndex']&&_0x317d14['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x317d14['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xf882bc,_0x560dec={}){const _0xd6c560=this['editor']['plugins']['get']('TrackChangesEditing'),_0x543723=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xd6c560['markMultiRangeBlockFormat'](_0x543723,{'commandName':'listStyle','commandParams':[{'type':_0x560dec['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x257b70,_0x138900={}){const _0x4fb5cb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59bca6=this['_getSuggestionBlocks'](_0x1ce4d4=>_0x1ce4d4['is']('element','listItem')&&'numbered'===_0x1ce4d4['getAttribute']('listType'));if(_0x59bca6['length']<0x1)return;const _0x3a19cf=_0x59bca6['map'](_0x5018ec=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5018ec,'before'),this['editor']['model']['createPositionAt'](_0x5018ec,0x0)));this['editor']['model']['change'](()=>{_0x4fb5cb['markMultiRangeBlockFormat'](_0x3a19cf,{'commandName':'listReversed','commandParams':[{'reversed':_0x138900['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x46ee52,_0xbf0923={}){const _0x5410ff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b0bd2=this['_getSuggestionBlocks'](_0x2f73eb=>_0x2f73eb['is']('element','listItem')&&'numbered'===_0x2f73eb['getAttribute']('listType'));if(_0x1b0bd2['length']<0x1)return;const _0x50e25f=_0x1b0bd2['map'](_0x51a179=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x51a179,'before'),this['editor']['model']['createPositionAt'](_0x51a179,0x0)));this['editor']['model']['change'](()=>{_0x5410ff['markMultiRangeBlockFormat'](_0x50e25f,{'commandName':'listStart','commandParams':[{'startIndex':_0xbf0923['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x18e914){if('formatBlock'!=_0x18e914['type']&&'formatInline'!=_0x18e914['type'])return;const _0x2aac1a=this['editor']['locale'],{data:_0xb98a04}=_0x18e914;if(!_0xb98a04)return;let _0x20d0c1,_0x2282bc;switch(_0xb98a04['commandName']){case'listStyle':_0x20d0c1='*Change\x20to:*\x20%0',_0x2282bc={'type':'format','content':o(_0x2aac1a,_0x20d0c1,o(_0x2aac1a,this['_getTranslationKeyForListStyle'](_0xb98a04['commandParams'][0x0]['type'])))};break;case'listReversed':_0x20d0c1=_0xb98a04['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2282bc={'type':'format','content':o(_0x2aac1a,_0x20d0c1)};break;case'listStart':_0x20d0c1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2282bc={'type':'format','content':o(_0x2aac1a,_0x20d0c1,_0xb98a04['commandParams'][0x0]['startIndex'])};}return _0x2282bc;}['_getSuggestionBlocksForListStyle'](){const _0x43f02b=this['editor']['plugins']['get']('LegacyListUtils');let _0x46cb95=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x46cb95[0x0]?.['is']('element','listItem')&&_0x46cb95['unshift'](..._0x43f02b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x46cb95[_0x46cb95['length']-0x1]?.['is']('element','listItem')&&_0x46cb95['push'](..._0x43f02b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x46cb95=[...new Set(_0x46cb95)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x46cb95=_0x46cb95['filter'](_0x38f13c=>_0x38f13c['is']('element','listItem'))),_0x46cb95;}['_getSuggestionBlocks'](_0x3af947){const _0x59b022=this['editor']['plugins']['get']('LegacyListUtils');let _0x1bcbc1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3af947)['map'](_0x128c13=>{const _0x3b537d=this['editor']['model']['createPositionAt'](_0x128c13,0x0);return[..._0x59b022['getSiblingNodes'](_0x3b537d,'backward'),..._0x59b022['getSiblingNodes'](_0x3b537d,'forward')];})['flat']();return _0x1bcbc1=[...new Set(_0x1bcbc1)],_0x1bcbc1;}['_getTranslationKeyForListStyle'](_0x5ee61d){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5ee61d)||'default')['toUpperCase']()+'_LIST_'+_0x5ee61d['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x52da3d{['afterInit'](){const _0x13b1af=this['editor'];if(!_0x13b1af['plugins']['has']('MediaEmbedEditing'))return;const _0x21999f=_0x13b1af['plugins']['get']('TrackChangesEditing'),_0x1749b3=_0x13b1af['locale'];_0x21999f['enableCommand']('mediaEmbed'),_0x21999f['descriptionFactory']['registerElementLabel']('media',_0x59ca36=>o(_0x1749b3,'ELEMENT_MEDIA',_0x59ca36));}}class bt extends _0x52da3d{['afterInit'](){const _0x533c8c=this['editor'];_0x533c8c['plugins']['has']('MentionEditing')&&_0x533c8c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x52da3d{['afterInit'](){const _0x286008=this['editor'];if(!_0x286008['plugins']['has']('MergeFieldsEditing'))return;const _0x4a714e=_0x286008['plugins']['get']('TrackChangesEditing'),_0x4258e3=_0x286008['locale'];_0x4a714e['enableCommand']('insertMergeField'),_0x4a714e['enableCommand']('insertMergeFieldBlock'),_0x4a714e['enableCommand']('insertMergeFieldImage'),_0x4a714e['descriptionFactory']['registerElementLabel']('mergeField',_0x7077d7=>o(_0x4258e3,'ELEMENT_MERGE_FIELD',_0x7077d7)),_0x4a714e['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x413bb0=>o(_0x4258e3,'ELEMENT_MERGE_FIELD',_0x413bb0)),_0x4a714e['descriptionFactory']['registerDescriptionCallback'](_0x35e183=>{if('insertion'!=_0x35e183['type']&&'deletion'!=_0x35e183['type'])return;const _0x3fa9c2=_0x35e183['getContainedElement']();if(null==_0x3fa9c2)return;const _0xda103c=_0x286008['plugins']['get']('MergeFieldsEditing');let _0x1d8dfc;switch(_0xda103c['getMergeFieldType'](_0x3fa9c2)){case null:return;case'image':{const _0x5d4c85=_0xda103c['unwrapAffixes'](_0x3fa9c2['getAttribute']('src'));_0x1d8dfc=_0xda103c['getLabel'](_0x5d4c85)||_0x5d4c85;break;}default:{const _0x30bf1b=_0x3fa9c2['getAttribute']('id');_0x1d8dfc=_0xda103c['getLabel'](_0x30bf1b)||_0x30bf1b;break;}}return'insertion'==_0x35e183['type']?{'type':'insertion','content':o(_0x4258e3,'*Insert:*\x20%0','\x22'+_0x1d8dfc+'\x22\x20'+o(_0x4258e3,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4258e3,'*Remove:*\x20%0','\x22'+_0x1d8dfc+'\x22\x20'+o(_0x4258e3,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x52da3d{['afterInit'](){const _0x53bfb7=this['editor'],_0x48562a=_0x53bfb7['plugins']['get']('TrackChangesEditing');_0x53bfb7['plugins']['has']('MultiLevelList')&&(_0x48562a['enableDefaultAttributesIntegration']('multiLevelList'),_0x48562a['descriptionFactory']['registerDescriptionCallback'](_0x156304=>this['handleDescriptions'](_0x156304)));}['handleDescriptions'](_0x59b020){const _0x1ca5a6=this['editor']['locale'],{data:_0x1d5bd6}=_0x59b020,_0x5b6c64={'type':'format','content':''};if(_0x1d5bd6&&'listMarkerStyle'==_0x1d5bd6['key']){if(!_0x1d5bd6['oldValue'])return{'type':'format','content':o(_0x1ca5a6,'*Set\x20format:*\x20%0',o(_0x1ca5a6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1d5bd6['newValue']+')'};if(!_0x1d5bd6['newValue']){let _0x352ae1=_0x59b020['head'];for(;_0x352ae1;){if(_0x352ae1['data']&&'listType'==_0x352ae1['data']['key']&&_0x352ae1['data']['newValue'])return _0x5b6c64;_0x352ae1=_0x352ae1['next'];}return{'type':'format','content':o(_0x1ca5a6,'*Remove\x20format:*\x20%0',o(_0x1ca5a6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1d5bd6['oldValue']+')'};}}}}class St extends _0x52da3d{['afterInit'](){const _0x2c4b05=this['editor'];if(!_0x2c4b05['plugins']['has']('PageBreakEditing'))return;_0x2c4b05['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x266047=_0x2c4b05['plugins']['get']('TrackChangesEditing'),_0x271a88=_0x2c4b05['locale'];_0x266047['descriptionFactory']['registerElementLabel']('pageBreak',_0x45aacc=>o(_0x271a88,'ELEMENT_PAGE_BREAK',_0x45aacc));}}class It extends _0x52da3d{['afterInit'](){const _0x7a0418=this['editor'];if(!_0x7a0418['plugins']['has']('Paragraph'))return;const _0x322e99=_0x7a0418['locale'],_0x4883b2=_0x7a0418['plugins']['get']('TrackChangesEditing');_0x4883b2['descriptionFactory']['registerElementLabel']('paragraph',_0x34f317=>o(_0x322e99,'ELEMENT_PARAGRAPH',_0x34f317)),_0x4883b2['enableDefaultAttributesIntegration']('paragraph'),_0x4883b2['enableCommand']('insertParagraph');const _0x59e0d2=_0x4883b2['descriptionFactory'];_0x59e0d2['registerDescriptionCallback'](_0x105beb=>{if('insertion'!==_0x105beb['type'])return;const {start:_0x5a50dc,end:_0x2df752}=_0x105beb['getFirstRange']();if(!_0x5a50dc['isTouching'](_0x2df752)||!_0x5a50dc['nodeAfter'])return;const _0x352e68=_0x7a0418['model']['schema'],_0x2a8c87=_0x5a50dc['nodeAfter'];return _0x352e68['isBlock'](_0x2a8c87)&&!_0x352e68['isLimit'](_0x2a8c87)&&_0x352e68['checkChild'](_0x2a8c87,'$text')?{'type':'insertion','content':o(_0x322e99,'*Insert:*\x20%0',_0x59e0d2['getItemLabel'](_0x2a8c87,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57cc46=this['editor'],_0x3750d8=_0x57cc46['locale'];_0x57cc46['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x290aa5=>{if('formatBlock'!=_0x290aa5['type'])return;const {data:_0x57ef2a}=_0x290aa5;return _0x57ef2a&&'paragraph'==_0x57ef2a['commandName']?{'type':'format','content':o(_0x3750d8,'*Change\x20to:*\x20%0',o(_0x3750d8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x52da3d{['afterInit'](){const _0x3c5e60=this['editor'];_0x3c5e60['commands']['get']('replaceSource')&&_0x3c5e60['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x52da3d{['afterInit'](){const _0x316d5f=this['editor'];if(!_0x316d5f['plugins']['has']('RemoveFormatEditing'))return;_0x316d5f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33d36a=this['editor'];_0x33d36a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48ce6e=>{if('formatBlock'!=_0x48ce6e['type']&&'formatInline'!=_0x48ce6e['type'])return;const {data:_0x2d2b6a}=_0x48ce6e;return _0x2d2b6a&&'removeFormat'==_0x2d2b6a['commandName']?{'type':'format','content':o(_0x33d36a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x52da3d{['afterInit'](){const _0x35d2da=this['editor'];if(!_0x35d2da['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x25c623=_0x35d2da['plugins']['get']('TrackChangesEditing');_0x25c623['enableCommand']('goToPreviousRestrictedEditingException'),_0x25c623['enableCommand']('goToNextRestrictedEditingException');const _0x48deb1=_0x35d2da['plugins']['get']('RestrictedEditingModeEditing');_0x48deb1['enableCommand']('trackChanges'),_0x48deb1['enableCommand']('acceptSuggestion'),_0x48deb1['enableCommand']('discardSuggestion'),_0x48deb1['enableCommand']('acceptAllSuggestions'),_0x48deb1['enableCommand']('discardAllSuggestions'),_0x48deb1['enableCommand']('acceptSelectedSuggestions'),_0x48deb1['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x52da3d{['afterInit'](){const _0x875fc2=this['editor'];if(!_0x875fc2['plugins']['has']('ShiftEnter'))return;const _0x384d99=_0x875fc2['plugins']['get']('TrackChangesEditing');_0x384d99['enableCommand']('shiftEnter'),_0x384d99['descriptionFactory']['registerElementLabel']('softBreak',_0x5b6047=>o(_0x875fc2['locale'],'ELEMENT_LINE_BREAK',_0x5b6047));}}function an(_0x29cc73,_0x40dde1,_0x46335e){const _0x584c46=[];for(const _0x29cba5 of _0x40dde1['getItems']())_0x29cba5['hasAttribute'](_0x29cc73)&&_0x584c46['push'](_0x46335e['createRangeOn'](_0x29cba5));return _0x584c46;}class $t extends _0x52da3d{['afterInit'](){const _0x3e3266=this['editor'],_0x3a8092=_0x3e3266['plugins']['get']('TrackChangesEditing');_0x3e3266['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x3a8092['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x54f6b3=this['editor'],_0x24fbd4=_0x54f6b3['model'],_0xd8c42e=_0x54f6b3['locale'],_0x194a7c=_0x54f6b3['plugins']['get']('TrackChangesEditing'),_0x5d4ed9='restrictedEditingException',_0x51f5e3=_0x54f6b3['commands']['get'](_0x5d4ed9);_0x194a7c['enableCommand'](_0x5d4ed9,(_0x38fc42,_0x5f4803={})=>{const _0x1f3b5f=_0x24fbd4['document']['selection'];if(_0x1f3b5f['isCollapsed'])return void _0x38fc42(_0x5f4803);const _0x18ceea=void 0x0!==_0x5f4803['forceValue']?_0x5f4803['forceValue']:!_0x51f5e3['value'];_0x24fbd4['change'](()=>{const _0x314880=Array['from'](_0x1f3b5f['getRanges']());for(const _0x3b0a72 of _0x314880){const _0xae67d5=_0x18ceea?[_0x3b0a72]:an(_0x5d4ed9,_0x3b0a72,_0x24fbd4);for(const _0x461866 of _0xae67d5)_0x194a7c['markInlineFormat'](_0x461866,{'commandName':_0x5d4ed9,'commandParams':[{'forceValue':_0x18ceea}]});}});}),_0x194a7c['descriptionFactory']['registerDescriptionCallback'](_0x368c26=>{if('formatBlock'!=_0x368c26['type']&&'formatInline'!=_0x368c26['type'])return;const {data:_0x55429c}=_0x368c26;return _0x55429c&&_0x55429c['commandName']==_0x5d4ed9?_0x55429c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd8c42e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xd8c42e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x58d096=this['editor'],_0x224f1a=_0x58d096['locale'],_0x427228=_0x58d096['plugins']['get']('TrackChangesEditing'),_0x1f40ea='restrictedEditingExceptionBlock',_0x5579c4=this['editor']['commands']['get'](_0x1f40ea);_0x427228['enableCommand'](_0x1f40ea,(_0x4a1c8c,_0x1eba05={})=>{const _0x179bee=this['editor']['model']['document']['selection'],_0x11a46b=_0x1eba05&&void 0x0!==_0x1eba05['forceValue']?_0x1eba05['forceValue']:!_0x5579c4['value'];let _0x16af5d=[];if(_0x11a46b){const _0x24b09b=Array['from'](_0x179bee['getSelectedBlocks']())['filter'](_0x783e1e=>function(_0x3efd5b){return!!_0x3efd5b['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x783e1e)||function(_0x1bcaec,_0x4ac987){const _0x550c31=_0x4ac987['createContext'](_0x1bcaec['parent']);if(!_0x4ac987['checkChild'](_0x550c31,'restrictedEditingException'))return!0x1;if(!_0x4ac987['checkChild'](_0x550c31['push']('restrictedEditingException'),_0x1bcaec))return!0x1;return!0x0;}(_0x783e1e,this['editor']['model']['schema']));_0x16af5d=to(_0x24b09b,_0x58d096['model']);}else{const _0x3e8c14=Array['from'](_0x179bee['getSelectedBlocks']())['map'](_0x1d8e85=>function(_0x2def02){let _0x4dc8cf=_0x2def02;for(;_0x4dc8cf['parent'];){if('restrictedEditingException'==_0x4dc8cf['parent']['name'])return _0x4dc8cf;_0x4dc8cf=_0x4dc8cf['parent'];}return null;}(_0x1d8e85))['filter'](_0x19a318=>!!_0x19a318);_0x16af5d=to(_0x3e8c14,_0x58d096['model']);}_0x58d096['model']['change'](()=>{for(const _0xb87b33 of _0x16af5d)_0x427228['markBlockFormat'](_0xb87b33,{'commandName':_0x1f40ea,'commandParams':[{'forceValue':_0x11a46b}]});});}),_0x427228['descriptionFactory']['registerDescriptionCallback'](_0x241849=>{const {data:_0x5d9eb0}=_0x241849;if(_0x5d9eb0&&_0x5d9eb0['commandName']==_0x1f40ea)return _0x5d9eb0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x224f1a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x224f1a,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x52da3d{['afterInit'](){const _0x1becda=this['editor'];if(!_0x1becda['plugins']['has']('Style')||!_0x1becda['plugins']['has']('DataSchema'))return;const _0x2ba150=_0x1becda['plugins']['get']('TrackChangesEditing'),_0x8dc8ca=_0x1becda['locale'],_0x487154=_0x1becda['config']['get']('style')||{},_0x273b8a=_0x1becda['plugins']['get']('GeneralHtmlSupport'),_0x43bf80=_0x1becda['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1becda['plugins']['get']('DataSchema'),_0x487154['definitions']);_0x2ba150['enableDefaultAttributesIntegration']('style');const _0x31ec84=new Set();for(const _0x577278 of _0x43bf80['block']){const _0xd4e9ab=_0x273b8a['getGhsAttributeNameForElement'](_0x577278['element']);_0x31ec84['add'](_0xd4e9ab);}const _0xbe4e58=new Set();for(const _0x181bbd of _0x43bf80['inline']){const _0x4bb467=_0x273b8a['getGhsAttributeNameForElement'](_0x181bbd['element']);_0xbe4e58['add'](_0x4bb467);for(const _0x11f17e of _0x181bbd['ghsAttributes'])_0xbe4e58['add'](_0x11f17e);}for(const _0x5bff29 of _0x31ec84)_0x2ba150['descriptionFactory']['registerAttributeLabel'](_0x5bff29,o(_0x8dc8ca,'FORMAT_STYLE'));for(const _0x5d8823 of _0xbe4e58)_0x2ba150['descriptionFactory']['registerAttributeLabel'](_0x5d8823,o(_0x8dc8ca,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4354b7=this['editor'],_0x49c697=_0x4354b7['locale'];_0x4354b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42e893=>{if('formatBlock'!=_0x42e893['type']&&'formatInline'!=_0x42e893['type'])return;const {data:_0x12f277}=_0x42e893;return _0x12f277&&'style'===_0x12f277['commandName']?_0x12f277['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x49c697,'*Set\x20format:*\x20%0',_0x12f277['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x49c697,'*Remove\x20format:*\x20%0',_0x12f277['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x52da3d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x359a1e){super(_0x359a1e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x75d71a=this['editor'],_0x98237f=_0x75d71a['model']['document']['selection'];if(!_0x75d71a['plugins']['has']('TableEditing'))return;const _0x180976=_0x75d71a['locale'],_0xacc362=_0x75d71a['plugins']['get']('TrackChangesEditing'),_0x3e6356=_0x75d71a['plugins']['get']('TableUtils');_0xacc362['descriptionFactory']['registerElementLabel']('table',_0x2bae60=>o(_0x180976,'ELEMENT_TABLE',_0x2bae60)),this['_setupColumnsRowsFixing'](),_0xacc362['enableCommand']('insertTable'),_0xacc362['enableCommand']('selectTableRow'),_0xacc362['enableCommand']('selectTableColumn');for(const _0x377596 of['insertTableRowAbove','insertTableRowBelow']){const _0x195b6b=_0x75d71a['commands']['get'](_0x377596);_0xacc362['enableCommand'](_0x377596,_0x71bcc4=>{_0x75d71a['model']['change'](_0x1e7d3d=>{_0x71bcc4();const _0x29d121='above'===_0x195b6b['order'],_0x1dcf91=_0x3e6356['getSelectionAffectedTableCells'](_0x98237f),_0x509df4=_0x3e6356['getRowIndexes'](_0x1dcf91),_0x2759f4=_0x29d121?_0x509df4['first']-0x1:_0x509df4['last']+0x1,_0x431da1=_0x1dcf91[0x0]['findAncestor']('table'),_0x1f4139=_0x3e6356['createTableWalker'](_0x431da1,{'startRow':_0x2759f4,'endRow':_0x2759f4}),_0x50e8f7=Array['from'](_0x1f4139)['map'](_0x990b93=>_0x1e7d3d['createRangeOn'](_0x990b93['cell']));_0xacc362['markMultiRangeInsertion'](_0x50e8f7,'tableRow');});});}for(const _0x506116 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4dc1b3=_0x75d71a['commands']['get'](_0x506116);_0xacc362['enableCommand'](_0x506116,_0x28194f=>{_0x75d71a['model']['change'](_0x408f05=>{_0x28194f();const _0x2ad52c='left'===_0x4dc1b3['order'],_0x330a34=_0x3e6356['getSelectionAffectedTableCells'](_0x98237f),_0x56f81e=_0x3e6356['getColumnIndexes'](_0x330a34),_0x4b7b36=_0x2ad52c?_0x56f81e['first']-0x1:_0x56f81e['last']+0x1,_0x3a2ffc=_0x330a34[0x0]['findAncestor']('table'),_0x1507e4=_0x3e6356['createTableWalker'](_0x3a2ffc,{'startRow':0x0,'column':_0x4b7b36,'includeAllSlots':!0x1}),_0x405c21=Array['from'](_0x1507e4)['map'](_0x39edf0=>_0x408f05['createRangeOn'](_0x39edf0['cell']));_0xacc362['markMultiRangeInsertion'](_0x405c21,'tableColumn');});});}for(const _0x475c2e of['removeTableRow','removeTableColumn']){const _0x1a4fd9=_0x475c2e['substr'](0xb),_0x3714c1=_0x1a4fd9['toLowerCase'](),_0x298c1f=_0x3714c1['substr'](0x0,0x3)+'span',_0x4f9051='table'+_0x1a4fd9,_0x492ba6='min'+_0x1a4fd9,_0x524125='max'+_0x1a4fd9;_0xacc362['enableCommand'](_0x475c2e,()=>{_0x75d71a['model']['change'](_0x14cfb5=>{const _0x38b8c3=_0x3e6356['getSelectionAffectedTableCells'](_0x98237f),_0x32265c=_0x38b8c3[0x0]['findAncestor']('table');let _0x1b8799;if('removeTableRow'==_0x475c2e){const _0x126b6a=_0x3e6356['getRowIndexes'](_0x38b8c3);_0x1b8799={'startRow':_0x126b6a['first'],'endRow':_0x126b6a['last'],'includeAllSlots':!0x0};}else{const _0x11d4cf=_0x3e6356['getColumnIndexes'](_0x38b8c3);_0x1b8799={'startColumn':_0x11d4cf['first'],'endColumn':_0x11d4cf['last'],'includeAllSlots':!0x0};}const _0x433167=_0x3e6356['createTableWalker'](_0x32265c,_0x1b8799),_0x15513a=Array['from'](_0x433167)['map'](({cell:_0x585153})=>_0x585153),_0x151d24=_e(_0x15513a['filter'](_0x1f994b=>_0x1f994b['hasAttribute'](_0x298c1f))),_0x5d9d08=_e(_0x15513a['filter'](_0x1a0045=>!_0x1a0045['hasAttribute'](_0x298c1f)))['map'](_0x281a54=>_0x14cfb5['createRangeOn'](_0x281a54)),_0xe3b425=_0xacc362['markMultiRangeDeletion'](_0x5d9d08,_0x4f9051);if(_0xe3b425&&('tableRow'==_0xe3b425['subType']||'tableColumn'==_0xe3b425['subType'])){const _0x2350c4=this['_getSuggestionCoords'](_0xe3b425);for(const _0xa1c83f of _0x151d24){const _0x579587=_0x14cfb5['createRangeOn'](_0xa1c83f),_0x20fe65=_0x3e6356['getCellLocation'](_0xa1c83f),_0x403ce4=_0xa1c83f['getAttribute'](_0x298c1f)-0x1,_0x4328a9=_0x2350c4[_0x492ba6],_0x1b6e68=_0x2350c4[_0x524125];_0x4328a9<=_0x20fe65[_0x3714c1]&&_0x20fe65[_0x3714c1]+_0x403ce4<=_0x1b6e68&&_0xe3b425['addRange'](_0x579587);}}});});}function _0x36a5ec(_0x3c5e15){const _0x3d4386=Array['from'](_0x98237f['getRanges']())['map'](_0x4e2c38=>_0x41726e['fromRange'](_0x4e2c38));_0x75d71a['model']['change'](_0x45b58f=>{const _0x4df7c0=_0x45b58f['batch'];_0x3c5e15=_0x3c5e15['filter'](_0x2b4c8b=>'$graveyard'!=_0x2b4c8b['root']['rootName']),_0x45b58f['setSelection'](_0x3c5e15),_0x75d71a['commands']['get']('removeTableRow')['refresh'](),_0x75d71a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x75d71a['model']['enqueueChange'](()=>{_0x75d71a['model']['enqueueChange'](_0x4df7c0,_0x1759e1=>{const _0x2e15a0=_0x3d4386['filter'](_0x54e687=>'$graveyard'!=_0x54e687['root']['rootName']);_0x2e15a0['length']>0x0&&_0x1759e1['setSelection'](_0x2e15a0);for(const _0x2ce946 of _0x3d4386)_0x2ce946['detach']();});});});}function _0x523979(_0x12483c){_0x75d71a['model']['change'](_0x1c0126=>{const _0x593abf=Array['from'](_0x98237f['getRanges']())['map'](_0x5a6edf=>_0x41726e['fromRange'](_0x5a6edf)),_0x3bef5f=[];for(const _0x28137a of _0x12483c)for(const _0x48bc93 of _0x28137a['getItems']({'shallow':!0x0}))_0x3bef5f['push'](_0x48bc93);for(const _0x31bba2 of _0x3bef5f)'$graveyard'!=_0x31bba2['root']['rootName']&&(_0x1c0126['setSelection'](_0x1c0126['createPositionAt'](_0x31bba2,0x0)),_0x75d71a['commands']['get']('removeTableColumn')['refresh'](),_0x75d71a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xc201ea=_0x593abf['filter'](_0x5f4913=>'$graveyard'!=_0x5f4913['root']['rootName']);_0xc201ea['length']>0x0&&_0x1c0126['setSelection'](_0xc201ea);for(const _0x15825a of _0x593abf)_0x15825a['detach']();});}function _0x21c49b(_0x501a8a,_0x23e7d8){return _0x23e7d8['every'](_0xb4ff61=>_0x501a8a['some'](_0x2bc534=>_0x2bc534['end']['isEqual'](_0xb4ff61['start'])||_0xb4ff61['end']['isEqual'](_0x2bc534['start'])));}function _0x311c65(_0x649da8,_0x410959){return!_0x649da8['some'](_0x18bf03=>_0x410959['some'](_0xabc3e7=>_0x18bf03['isIntersecting'](_0xabc3e7)))&&_0x649da8['some'](_0x15f42b=>_0x410959['some'](_0x1cd0be=>_0x15f42b['end']['isTouching'](_0x1cd0be['start'])));}_0xacc362['descriptionFactory']['registerDescriptionCallback'](_0x133fdd=>{if('insertion'!=_0x133fdd['type']&&'deletion'!=_0x133fdd['type'])return;const _0x1406f7=_0x133fdd['getContainedElement']();if(null!=_0x1406f7&&_0x1406f7['is']('element','table')){if('insertion'==_0x133fdd['type']){const _0xc385a6=_0x133fdd['getItems']()['filter'](_0x2355e7=>_0x2355e7['is']('$textProxy'))['map'](_0x392f6e=>_0x392f6e['data']);if(_0xc385a6['length'])return{'type':'insertion','content':o(_0x180976,'*Insert:*\x20%0',o(_0x180976,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xc385a6['join']('\x20')+'\x22'))};}if('deletion'==_0x133fdd['type']){const _0x56afb7=_0x133fdd['getItems']()['filter'](_0x6146ef=>_0x6146ef['is']('$textProxy'))['map'](_0x4e0f38=>_0x4e0f38['data']);if(_0x56afb7['length'])return{'type':'deletion','content':o(_0x180976,'*Remove:*\x20%0',o(_0x180976,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x56afb7['join']('\x20')+'\x22'))};}}}),_0xacc362['descriptionFactory']['registerDescriptionCallback'](_0x29963d=>{if('tableRow'==_0x29963d['subType']){const _0x34798c=_0x29963d['getItems']()['filter'](_0x5ed00e=>_0x5ed00e['is']('$textProxy'))['map'](_0xaa7363=>_0xaa7363['data']),_0x2ba149=this['_getSuggestionCoords'](_0x29963d),_0x1a4737=_0x2ba149['maxRow']-_0x2ba149['minRow']+0x1;if('insertion'==_0x29963d['type'])return _0x34798c['length']?{'type':'insertion','content':o(_0x180976,'*Insert:*\x20%0',o(_0x180976,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1a4737,'\x22'+_0x34798c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x180976,'*Insert:*\x20%0',o(_0x180976,'ELEMENT_TABLE_ROW',_0x1a4737))};if('deletion'==_0x29963d['type'])return _0x34798c['length']?{'type':'deletion','content':o(_0x180976,'*Remove:*\x20%0',o(_0x180976,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1a4737,'\x22'+_0x34798c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x180976,'*Remove:*\x20%0',o(_0x180976,'ELEMENT_TABLE_ROW',_0x1a4737))};}if('tableColumn'==_0x29963d['subType']){const _0xabdc1b=_0x29963d['getItems']()['filter'](_0x552631=>_0x552631['is']('$textProxy'))['map'](_0x5aba41=>_0x5aba41['data']),_0x1f6bdb=this['_getSuggestionCoords'](_0x29963d),_0x2b0893=_0x1f6bdb['maxColumn']-_0x1f6bdb['minColumn']+0x1;if('insertion'==_0x29963d['type'])return _0xabdc1b['length']?{'type':'insertion','content':o(_0x180976,'*Insert:*\x20%0',o(_0x180976,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2b0893,'\x22'+_0xabdc1b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x180976,'*Insert:*\x20%0',o(_0x180976,'ELEMENT_TABLE_COLUMN',_0x2b0893))};if('deletion'==_0x29963d['type'])return _0xabdc1b['length']?{'type':'deletion','content':o(_0x180976,'*Remove:*\x20%0',o(_0x180976,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2b0893,'\x22'+_0xabdc1b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x180976,'*Remove:*\x20%0',o(_0x180976,'ELEMENT_TABLE_COLUMN',_0x2b0893))};}}),_0xacc362['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x36a5ec),_0xacc362['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x36a5ec),_0xacc362['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x523979),_0xacc362['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x523979),_0xacc362['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x21c49b),_0xacc362['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x21c49b),_0xacc362['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x311c65),_0xacc362['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x311c65);}['_acceptFormatSuggestionCallbackFactory'](){const _0x37bb9a=this['editor'],_0x57635e=_0x37bb9a['model']['document']['selection'];return(_0x1198f9,_0x2d2d40)=>{_0x37bb9a['model']['change'](_0x284c81=>{const {commandName:_0x4508db,commandParams:_0x256e43}=_0x2d2d40;let _0x4f3b8b=_0x1198f9[0x0]['end']['nodeBefore'];_0x256e43&&_0x256e43[0x0]&&!0x1===_0x256e43[0x0]['forceValue']&&(_0x4f3b8b=_0x1198f9[0x0]['start']['nodeAfter']);const _0x205246=_0x284c81['createRangeIn'](_0x4f3b8b);if('$graveyard'==_0x205246['root']['rootName'])return;const _0x3f92fb=Array['from'](_0x57635e['getRanges']())['map'](_0x22ea7c=>_0x41726e['fromRange'](_0x22ea7c));_0x284c81['setSelection'](_0x205246),_0x37bb9a['commands']['get'](_0x4508db)['refresh'](),_0x256e43['push']({'forceDefaultExecution':!0x0}),_0x37bb9a['execute'](_0x4508db,..._0x256e43);const _0x422985=_0x3f92fb['filter'](_0x1b6f22=>'$graveyard'!=_0x1b6f22['root']['rootName']);_0x422985['length']>0x0&&_0x284c81['setSelection'](_0x422985);for(const _0x7a85cb of _0x3f92fb)_0x7a85cb['detach']();});};}['_getCoordsForCells'](_0x546193){const _0x203ea3=this['editor']['plugins']['get']('TableUtils');let _0x3aa0dc=Number['MAX_SAFE_INTEGER'],_0xae925a=Number['MIN_SAFE_INTEGER'],_0xf5861b=Number['MAX_SAFE_INTEGER'],_0x22d6bf=Number['MIN_SAFE_INTEGER'];for(const _0x4fa7af of _0x546193){if('$graveyard'==_0x4fa7af['root']['rootName'])continue;const {row:_0x18b613,column:_0x1da806}=_0x203ea3['getCellLocation'](_0x4fa7af),_0x4c63a2=_0x4fa7af['hasAttribute']('rowspan')?_0x4fa7af['getAttribute']('rowspan')-0x1:0x0,_0x86f317=_0x4fa7af['hasAttribute']('colspan')?_0x4fa7af['getAttribute']('colspan')-0x1:0x0;_0x3aa0dc=_0x18b613<_0x3aa0dc?_0x18b613:_0x3aa0dc,_0xae925a=_0x18b613+_0x4c63a2>_0xae925a?_0x18b613+_0x4c63a2:_0xae925a,_0xf5861b=_0x1da806<_0xf5861b?_0x1da806:_0xf5861b,_0x22d6bf=_0x1da806+_0x86f317>_0x22d6bf?_0x1da806+_0x86f317:_0x22d6bf;}return{'minRow':_0x3aa0dc,'maxRow':_0xae925a,'minColumn':_0xf5861b,'maxColumn':_0x22d6bf};}['_setupColumnsRowsFixing'](){const _0x1812ac=this['editor'],_0x44c126=_0x1812ac['plugins']['get']('TrackChangesEditing'),_0x112006=_0x1812ac['plugins']['get']('TableUtils');_0x1812ac['model']['document']['on']('change:data',()=>{const _0x2850b0=Array['from'](_0x1812ac['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42ee72,data:_0x4fde60}of _0x2850b0){const {group:_0x42d9e8,id:_0x20fa6f,subType:_0xe0c7f7}=_0x44c126['_splitMarkerName'](_0x42ee72);if('suggestion'!=_0x42d9e8)continue;if(null!=_0x4fde60['oldRange'])continue;const _0x42bfc2=_0x44c126['getSuggestion'](_0x20fa6f);this['_tablePostFixingSubtypes']['includes'](_0xe0c7f7)&&this['_tableSuggestions']['add'](_0x42bfc2);}},{'priority':'low'});const _0x11b159=(_0x21242f,_0x5a82ab)=>{let _0x415f9d=!0x1;const _0xa6601d=_0x5a82ab['createRangeOn'](_0x21242f),_0x3ff14a=_0x21242f['findAncestor']('table'),_0x420042=_0x112006['getCellLocation'](_0x21242f);for(const _0x1cdf5d of this['_tableSuggestions']){const _0x1adf62=_0x1cdf5d['subType'],_0x38adde=_0x1adf62['startsWith']('tablePaste'),_0x19f094=_0x1adf62['substr'](_0x38adde?0xa:0x5),_0x2ba1da=_0x19f094['toLowerCase'](),_0x4e710f=_0x2ba1da['substr'](0x0,0x3)+'span',_0x1d1ce7='min'+_0x19f094,_0x27a657='max'+_0x19f094;if(!_0x1cdf5d['isInContent'])continue;if(_0x3ff14a!=_0x1cdf5d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1cdf5d['isIntersectingWithRange'](_0xa6601d))continue;const _0x36ca8a=_0x21242f['hasAttribute'](_0x4e710f)?_0x21242f['getAttribute'](_0x4e710f)-0x1:0x0,_0x422450=this['_getSuggestionCoords'](_0x1cdf5d),_0x369ebe=_0x422450[_0x1d1ce7],_0x2ad696=_0x422450[_0x27a657];_0x369ebe<=_0x420042[_0x2ba1da]&&_0x420042[_0x2ba1da]+_0x36ca8a<=_0x2ad696&&(_0x1cdf5d['addRange'](_0xa6601d),_0x415f9d=!0x0);}return _0x415f9d;};_0x1812ac['model']['document']['registerPostFixer'](_0x4e00e7=>{let _0x38fb94=!0x1;for(const _0x5357ea of _0x1812ac['model']['document']['differ']['getChanges']())if('insert'==_0x5357ea['type']){if('tableRow'==_0x5357ea['name']){for(const _0x41e67f of _0x5357ea['position']['nodeAfter']['getChildren']())_0x38fb94=_0x38fb94||_0x11b159(_0x41e67f,_0x4e00e7);}else'tableCell'==_0x5357ea['name']&&(_0x38fb94=_0x38fb94||_0x11b159(_0x5357ea['position']['nodeAfter'],_0x4e00e7));}return _0x38fb94;});}['_getSuggestionCoords'](_0x5a735a){return this['_getCoordsForCells'](_0x5a735a['getRanges']()['map'](_0x4cc59b=>_0x4cc59b['start']['nodeAfter']));}}function _e(_0x1c267b){return Array['from'](new Set(_0x1c267b)['values']());}class Bt extends _0x52da3d{static get['requires'](){return[Dt];}['afterInit'](){const _0x2ba791=this['editor'],_0x2846a6=_0x2ba791['model']['document']['selection'],_0x11df1d=_0x2ba791['locale'];if(!_0x2ba791['plugins']['has']('TableEditing'))return;const _0x59ad51=_0x2ba791['plugins']['get']('TrackChangesEditing'),_0x9e55c9=_0x2ba791['plugins']['get']('TableUtils'),_0x46d3b8=_0x2ba791['plugins']['get'](Dt);_0x46d3b8['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x59ad51['enableCommand']('mergeTableCells',()=>{const _0x3d61df=_0x9e55c9['getSelectionAffectedTableCells'](_0x2ba791['model']['document']['selection']);_0x2ba791['model']['change'](()=>{_0x59ad51['markMultiRangeBlockFormat'](_0x3d61df,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2ba791['commands']['get']('mergeTableCells')['on']('execute',(_0x2e1202,_0x23edbd)=>{_0x2ba791['commands']['get']('trackChanges')['value']&&(_0x23edbd['length']>0x0&&_0x23edbd[_0x23edbd['length']-0x1]&&_0x23edbd[_0x23edbd['length']-0x1]['forceDefaultExecution']||_0x59ad51['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2e1202['stop']());},{'priority':'highest'});for(const _0x22c1b6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x27b286=_0x2ba791['commands']['get'](_0x22c1b6);_0x59ad51['enableCommand'](_0x22c1b6,()=>{const _0x4771d4=_0x2ba791['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x53d782=>_0x53d782['is']('element','tableCell')),_0x158a4b=_0x27b286['value'];_0x2ba791['model']['change'](()=>{_0x59ad51['markMultiRangeBlockFormat']([_0x4771d4,_0x158a4b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x7af468 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x37075f=_0x2ba791['commands']['get'](_0x7af468);_0x59ad51['enableCommand'](_0x7af468,()=>{const _0x3f86a2=_0x9e55c9['getSelectionAffectedTableCells'](_0x2ba791['model']['document']['selection'])[0x0],_0x2d2fbf=_0x3f86a2['findAncestor']('table'),{column:_0x173409,row:_0x4b6e47}=_0x9e55c9['getCellLocation'](_0x3f86a2);let _0x64b451=[];if('horizontally'==_0x37075f['direction']){const _0x318929=_0x9e55c9['createTableWalker'](_0x2d2fbf,{'startRow':_0x4b6e47,'endRow':_0x4b6e47,'includeAllSlots':!0x0});_0x64b451=Array['from'](_0x318929)['map'](_0x157cad=>_0x157cad['cell']);}else{const _0x4c20fa=_0x9e55c9['createTableWalker'](_0x2d2fbf,{'column':_0x173409,'includeAllSlots':!0x0});_0x64b451=Array['from'](_0x4c20fa)['map'](_0x4614ea=>_0x4614ea['cell']);}_0x2ba791['model']['change'](_0x4c6217=>{_0x59ad51['markBlockFormat'](_0x4c6217['createRangeOn'](_0x3f86a2),{'commandName':_0x7af468,'commandParams':[]},_0x64b451,_0x7af468);});});}_0x59ad51['descriptionFactory']['registerDescriptionCallback'](_0x254020=>{if('formatBlock'!=_0x254020['type']&&'formatInline'!=_0x254020['type'])return;const {data:_0x570ab5}=_0x254020;return _0x570ab5&&'mergeTableCells'==_0x570ab5['commandName']?{'type':'format','content':o(_0x11df1d,'*Merge\x20cells*')}:void 0x0;}),_0x59ad51['descriptionFactory']['registerDescriptionCallback'](_0x131389=>{if('formatBlock'!=_0x131389['type']&&'formatInline'!=_0x131389['type'])return;const {data:_0x47c71b}=_0x131389;return _0x47c71b?'splitTableCellVertically'==_0x47c71b['commandName']?{'type':'format','content':o(_0x11df1d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x47c71b['commandName']?{'type':'format','content':o(_0x11df1d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x451739=_0x46d3b8['_acceptFormatSuggestionCallbackFactory']();for(const _0x4b8828 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x59ad51['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4b8828,'accept',_0x451739);for(const _0x572550 of['splitTableCellVertically','splitTableCellHorizontally'])_0x59ad51['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x572550,'accept',_0x451739);_0x59ad51['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2e7458=>{_0x2ba791['model']['change'](_0x43510d=>{const _0x342009=Array['from'](_0x2846a6['getRanges']())['map'](_0x279c48=>_0x41726e['fromRange'](_0x279c48));_0x43510d['setSelection'](_0x2e7458),_0x2ba791['commands']['get']('mergeTableCells')['refresh'](),_0x2ba791['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x22b159=_0x342009['filter'](_0x37593d=>'$graveyard'!=_0x37593d['root']['rootName']);_0x22b159['length']>0x0&&_0x43510d['setSelection'](_0x22b159);for(const _0x1da40d of _0x342009)_0x1da40d['detach']();});});for(const _0x21feeb of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x292803=_0x2ba791['commands']['get'](_0x21feeb);_0x292803['on']('set:isEnabled',(_0x16c332,_0x4fb58f,_0x10f6f9)=>{if(_0x10f6f9){const _0x6e9e4c=_0x2ba791['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1bbd7b=>_0x1bbd7b['is']('element','tableCell'));this['_areMergableCells'](_0x292803['value'],_0x6e9e4c)||(_0x16c332['return']=!0x1,_0x16c332['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4ff14e=this['editor']['commands']['get']('mergeTableCells'),_0x3362f1=this['editor']['plugins']['get']('TableUtils');if(!_0x4ff14e['isEnabled'])return!0x1;const _0x4a8a84=_0x3362f1['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x316246 of _0x4a8a84)for(const _0x1d1c6c of _0x4a8a84)if(_0x316246!=_0x1d1c6c&&!this['_areMergableCells'](_0x316246,_0x1d1c6c))return!0x1;return!0x0;}['_areMergableCells'](_0x36519a,_0x1487b8){const _0x5e319c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2cf02e=this['editor']['model']['createRangeOn'](_0x36519a),_0x2e6a96=this['editor']['model']['createRangeOn'](_0x1487b8),_0x392871=new Set(),_0x1dd1ca=new Set();for(const _0x38318d of _0x5e319c['getSuggestions']())if(('insertion'==_0x38318d['type']||'deletion'==_0x38318d['type']||'mergeTableCells'==_0x38318d['subType'])&&_0x38318d['isInContent']){for(const _0x1260f8 of _0x38318d['getRanges']())_0x1260f8['containsRange'](_0x2cf02e,!0x0)&&_0x392871['add'](_0x38318d['type']+':'+_0x38318d['author']['id']),_0x1260f8['containsRange'](_0x2e6a96,!0x0)&&_0x1dd1ca['add'](_0x38318d['type']+':'+_0x38318d['author']['id']);}if(_0x392871['size']!=_0x1dd1ca['size'])return!0x1;for(const _0x586037 of _0x392871)if(!_0x1dd1ca['has'](_0x586037))return!0x1;return!0x0;}}class Ot extends _0x52da3d{static get['requires'](){return[Dt];}['afterInit'](){const _0x2840d8=this['editor'];if(!_0x2840d8['plugins']['has']('TableEditing'))return;const _0x53d692=_0x2840d8['locale'],_0x54d41c=_0x2840d8['plugins']['get']('TrackChangesEditing');_0x54d41c['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x54d41c['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x54d41c['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x53d692,'FORMAT_HEADER_ROW')),_0x54d41c['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x53d692,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x464e78=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43c3f2=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x464e78['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x43c3f2),_0x464e78['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x43c3f2),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x285c07=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38c814=this['editor']['plugins']['get']('TableUtils');function _0x2ec1cc({showActiveMarker:_0xcbb65c=!0x0,setDataAttribute:_0x5cdf97=!0x0}={}){return(_0x4ed82f,_0x153e93,_0x238ad4)=>{const {type:_0x3d3c89,id:_0x89f8fe}=_0x285c07['_splitMarkerName'](_0x153e93['markerName']);if(!_0x285c07['hasSuggestion'](_0x89f8fe))return;const _0x5cf576=_0x285c07['getSuggestion'](_0x89f8fe),_0x37ae7a=_0x5cf576['data'];if('formatBlock'!=_0x5cf576['type']||!_0x37ae7a||'setTableColumnHeader'!=_0x37ae7a['commandName'])return;if(_0x153e93['item'])return void _0x4ed82f['stop']();if(!_0x238ad4['consumable']['consume'](_0x153e93['markerRange'],_0x4ed82f['name']))return;const _0x5bea59=_0x153e93['markerRange']['start']['nodeAfter'],_0x10cdc8=_0x153e93['markerRange']['end']['nodeBefore'],_0x4a4288=_0x5bea59['parent']['parent'],{column:_0x2e54c1}=_0x38c814['getCellLocation'](_0x5bea59),{column:_0x1e7b55}=_0x38c814['getCellLocation'](_0x10cdc8);for(let _0x4d7e4f=_0x2e54c1;_0x4d7e4f<=_0x1e7b55;_0x4d7e4f++){const _0x4487c0=_0x38c814['createTableWalker'](_0x4a4288,{'column':_0x4d7e4f,'includeAllSlots':!0x1});for(const _0x3b1d51 of _0x4487c0){const _0x1dd5fb=_0x3b1d51['cell'],_0x116a49=_0x238ad4['mapper']['toViewElement'](_0x1dd5fb);_0x238ad4['writer']['addClass']('ck-suggestion-marker-'+_0x3d3c89,_0x116a49),_0x5cdf97&&_0x238ad4['writer']['setAttribute']('data-suggestion',_0x89f8fe,_0x116a49),_0x238ad4['mapper']['bindElementToMarker'](_0x116a49,_0x153e93['markerName']),_0xcbb65c&&(_0x285c07['activeMarkers']['includes'](_0x153e93['markerName'])?_0x238ad4['writer']['addClass']('ck-suggestion-marker--active',_0x116a49):_0x238ad4['writer']['removeClass']('ck-suggestion-marker--active',_0x116a49));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2ec1cc(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f609d,_0x3b7b46,_0xd08928)=>{_0xd08928['options']['showSuggestionHighlights']&&_0x2ec1cc({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4f609d,_0x3b7b46,_0xd08928);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x23cf75,_0x1a2267,_0x4ef5ef)=>{const {type:_0x3abde0,id:_0x1d7edd}=_0x285c07['_splitMarkerName'](_0x1a2267['markerName']);if(!_0x285c07['hasSuggestion'](_0x1d7edd))return;const _0x1fd5a7=_0x285c07['getSuggestion'](_0x1d7edd),_0x38d30e=_0x1fd5a7['data'];if('formatBlock'!=_0x1fd5a7['type']||!_0x38d30e||'setTableColumnHeader'!=_0x38d30e['commandName'])return;const _0x5a737e=_0x4ef5ef['mapper']['markerNameToElements'](_0x1a2267['markerName']);if(_0x5a737e){for(const _0x1a8b43 of _0x5a737e)_0x4ef5ef['writer']['removeClass']('ck-suggestion-marker-'+_0x3abde0,_0x1a8b43),_0x4ef5ef['writer']['removeClass']('ck-suggestion-marker--active',_0x1a8b43),_0x4ef5ef['writer']['removeAttribute']('data-suggestion',_0x1a8b43),_0x4ef5ef['mapper']['unbindElementFromMarkerName'](_0x1a8b43,_0x1a2267['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x42586b=this['editor'],_0x9992f5=_0x42586b['locale'];function _0x53be69(_0x488a76){return{'type':'format','content':o(_0x9992f5,'*Format:*\x20%0',_0x488a76)};}_0x42586b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dda15=>{if('formatBlock'!=_0x5dda15['type'])return;const {data:_0x3052ff}=_0x5dda15;if(_0x3052ff){if('setTableRowHeader'==_0x3052ff['commandName']){const _0x4f00e8=_0x3052ff['commandParams'][0x0]['forceValue'];return _0x53be69(o(_0x9992f5,_0x4f00e8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3052ff['commandName']){const _0x3050b2=_0x3052ff['commandParams'][0x0]['forceValue'];return _0x53be69(o(_0x9992f5,_0x3050b2?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x52da3d{['afterInit'](){const _0xbbdb4=this['editor'],_0x9d19be=_0xbbdb4['locale'],_0x527aec=_0xbbdb4['plugins']['get']('TrackChangesEditing');function _0x46ecd1(_0x50acb2){return{'type':'format','content':''+o(_0x9d19be,'*Set\x20table\x20type:*\x20%0',_0x50acb2)};}_0xbbdb4['plugins']['has']('TableLayout')&&(_0x527aec['enableCommand']('insertTableLayout'),_0x527aec['enableDefaultAttributesIntegration']('tableType'),_0x527aec['descriptionFactory']['registerElementLabel'](_0x200aa7=>_0x200aa7['is']('element','table')&&'layout'===_0x200aa7['getAttribute']('tableType'),_0x5904fc=>o(_0x9d19be,'ELEMENT_LAYOUT_TABLE',_0x5904fc)),_0x527aec['descriptionFactory']['registerDescriptionCallback'](_0x56db05=>{const {data:_0x2f7393}=_0x56db05;if(_0x2f7393&&'tableType'==_0x2f7393['key'])switch(_0x2f7393['newValue']){case'layout':return _0x46ecd1(o(_0x9d19be,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x46ecd1(o(_0x9d19be,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Re['map'](_0x11dfe6=>[_0x11dfe6,null]));class Mt extends _0x52da3d{static get['requires'](){return[Dt];}['afterInit'](){const _0x580cbf=this['editor'];if(!_0x580cbf['plugins']['has']('TableClipboard'))return;const _0xd49f42=_0x580cbf['plugins']['get']('TrackChangesEditing'),_0x1bf618=_0x580cbf['plugins']['get']('TableUtils'),_0x1fee8d=_0x580cbf['plugins']['get'](Dt),_0x3b44e6=_0x580cbf['plugins']['get']('TableClipboard'),_0x23a3ea=_0x580cbf['plugins']['get']('TableSelection'),_0x2b45a6=_0x580cbf['plugins']['get'](_0x16c0bd);_0x1fee8d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x580cbf['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x580cbf['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x40d193=null,_0x2a3705=!0x1;_0x2b45a6['on']('contentInsertion',(_0x71a62e,_0x471d95)=>{_0x2a3705='paste'===_0x471d95['method'];}),_0x580cbf['model']['on']('insertContent',(_0x473d2c,_0x53aab3)=>{if(!_0x2a3705&&null===_0x23a3ea['getSelectedTableCells']())return;const [_0x10ce2a,_0x560d15]=_0x53aab3,_0x482088=_0x53aab3[_0x53aab3['length']-0x1];_0x482088&&_0x482088['forceDefaultExecution']||_0xd49f42['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x31b728,_0x14be67,_0x48b30c,_0x44044f,_0x58d038){if(_0x14be67&&!_0x14be67['is']('documentSelection'))return!0x1;const _0xbc82d9=_0x58d038['getTableIfOnlyTableInContent'](_0x31b728,_0x48b30c);if(!_0xbc82d9||!Oe(_0xbc82d9,void 0x0,_0x44044f))return!0x1;const _0x4aa4c2=_0x44044f['getSelectionAffectedTableCells'](_0x48b30c['document']['selection']);if(!_0x4aa4c2['length'])return!0x1;const _0x55084c=_0x4aa4c2[0x0]['findAncestor']('table'),_0x2711a4=_0x44044f['getRowIndexes'](_0x4aa4c2),_0x30e610=_0x44044f['getColumnIndexes'](_0x4aa4c2),_0x43ba00={'startRow':_0x2711a4['first'],'endRow':_0x2711a4['last'],'startColumn':_0x30e610['first'],'endColumn':_0x30e610['last']};return 0x1==_0x4aa4c2['length']&&(_0x43ba00['endRow']+=_0x44044f['getRows'](_0xbc82d9)-0x1,_0x43ba00['endColumn']+=_0x44044f['getColumns'](_0xbc82d9)-0x1),Oe(_0x55084c,_0x43ba00,_0x44044f);}(_0x10ce2a,_0x560d15,_0x580cbf['model'],_0x1bf618,_0x3b44e6)&&(_0x473d2c['stop'](),_0x40d193={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x580cbf['model']['change'](()=>{_0x580cbf['model']['insertContent'](_0x53aab3[0x0],_0x53aab3[0x1],_0x53aab3[0x2],{'forceDefaultExecution':!0x0});const _0x13278e=_0x516af4(),{rowInsertionRanges:_0x3e3485,columnInsertionRanges:_0x4300c2,insertionRanges:_0x5c7f2b,deletionRanges:_0x35e241,cells:_0x4052b8}=_0x40d193;_0x3e3485['length']&&_0xd49f42['markMultiRangeInsertion'](_0x3e3485,'tablePasteRow',{'tablePasteChainId':_0x13278e}),_0x4300c2['length']&&_0xd49f42['markMultiRangeInsertion'](_0x4300c2,'tablePasteColumn',{'tablePasteChainId':_0x13278e}),_0x5c7f2b['length']&&(_0xd49f42['markMultiRangeInsertion'](_0x5c7f2b,'tablePaste',{'tablePasteChainId':_0x13278e,'skipNestingCheck':!0x0}),_0x5c7f2b['forEach'](_0x567790=>_0x567790['detach']?.())),_0x35e241['length']&&(_0xd49f42['markMultiRangeDeletion'](_0x35e241,'tablePaste',{'tablePasteChainId':_0x13278e,'skipNestingCheck':!0x0}),_0x35e241['forEach'](_0x77f9=>_0x77f9['detach']?.()));const _0xfd9133=_0xd49f42['markMultiRangeBlockFormat'](_0x4052b8['map'](({element:_0x356865})=>_0x356865),{'formatGroupId':_0x516af4()},[],'tablePasteCell',{'tablePasteChainId':_0x13278e});if(_0xfd9133){const _0x5782d5=_0xfd9133['getMarkers'](),_0x429eab=[];for(const {element:_0x4ea9d3,attributes:_0x53880b}of _0x4052b8){if(!_0x53880b)continue;const _0x242e72=_0x580cbf['model']['createRangeOn'](_0x4ea9d3),_0x3751f0=_0x5782d5['find'](_0x30bf33=>_0x30bf33['getRange']()['isEqual'](_0x242e72));_0x3751f0&&_0x429eab['push']([_0x3751f0['name'],_0x53880b]);}_0x429eab['length']&&_0xfd9133['setAttribute']('markerAttributes',Object['fromEntries'](_0x429eab));}_0x40d193=null;}));},{'priority':_0x134268['high']+0xa}),_0x2b45a6['on']('contentInsertion',()=>{_0x2a3705=!0x1;},{'priority':'lowest'}),_0x580cbf['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3105a2,_0x306808)=>{const [_0x25ee56,_0x5c61b0,,_0x46f74f]=_0x306808;if(!_0x40d193)return;_0x3105a2['stop']();const _0x2cc0b8=_0x25ee56['cell'],_0x4c347e=_0x5c61b0,_0x431bbb=Be(_0x2cc0b8),_0x1248c1=Be(_0x4c347e);_0x3105a2['return']=_0x2cc0b8;let _0x7cae23=null,_0x124899=null;if(_0x1248c1||_0x431bbb){if(_0x431bbb&&!_0x1248c1){_0x46f74f['remove'](_0x2cc0b8['getChild'](0x0));for(const _0x5afc8e of Array['from'](_0x4c347e['getChildren']()))_0x46f74f['insert'](_0x5afc8e,_0x2cc0b8,'end');const _0x242791=_0x40d193['rowInsertionIndexes']['includes'](_0x25ee56['row']),_0x477472=_0x40d193['columnInsertionIndexes']['includes'](_0x25ee56['column']);_0x242791||_0x477472||(_0x7cae23=_0x41726e['fromRange'](_0x46f74f['createRangeIn'](_0x2cc0b8)));}else _0x1248c1&&!_0x431bbb&&(_0x124899=_0x46f74f['createRangeIn'](_0x2cc0b8));}else{const _0x1ca821=_0x46f74f['createElement']('tableCellSuggestion'),_0x3e0322=_0x46f74f['createElement']('tableCellSuggestion');_0x46f74f['wrap'](_0x46f74f['createRangeIn'](_0x2cc0b8),_0x3e0322),_0x46f74f['insert'](_0x1ca821,_0x2cc0b8,0x0);for(const _0x57320a of Array['from'](_0x4c347e['getChildren']()))_0x46f74f['insert'](_0x57320a,_0x1ca821,'end');_0x7cae23=_0x41726e['fromRange'](_0x46f74f['createRangeOn'](_0x1ca821)),_0x124899=_0x41726e['fromRange'](_0x46f74f['createRangeOn'](_0x3e0322));}const _0x4de215=Array['from'](_0x4c347e['getAttributes']())['filter'](([_0xaa3210])=>Re['includes'](_0xaa3210));_0x40d193['cells']['push']({'element':_0x2cc0b8,'attributes':_0x4de215['length']?Object['fromEntries'](_0x4de215):null}),_0x7cae23&&_0x40d193['insertionRanges']['push'](_0x7cae23),_0x124899&&_0x40d193['deletionRanges']['push'](_0x124899);},{'priority':'high'}),_0x1bf618['on']('insertColumns',(_0x496b06,_0x2091a1)=>{const [_0xd01e80,_0xa4609={}]=_0x2091a1;if(!_0x40d193)return;const _0x4c0916=_0xa4609['at']||0x0,_0x1d6061=_0xa4609['columns']||0x1;_0x40d193['columnInsertionIndexes']=new Array(_0x1d6061)['fill'](_0x4c0916)['map']((_0x39291c,_0x1d2407)=>_0x39291c+_0x1d2407);for(const {cell:_0x10a49c}of _0x1bf618['createTableWalker'](_0xd01e80,{'startColumn':_0x4c0916,'endColumn':_0x4c0916+_0x1d6061-0x1}))_0x40d193['columnInsertionRanges']['push'](_0x580cbf['model']['createRangeOn'](_0x10a49c));},{'priority':'low'}),_0x1bf618['on']('insertRows',(_0x26ce30,_0x24bd1d)=>{const [_0x26f08d,_0x2e9305={}]=_0x24bd1d;if(!_0x40d193)return;const _0x49b895=_0x2e9305['at']||0x0,_0x29a872=_0x2e9305['rows']||0x1;_0x40d193['rowInsertionIndexes']=new Array(_0x29a872)['fill'](_0x49b895)['map']((_0x326b02,_0x2dc765)=>_0x326b02+_0x2dc765);for(const {cell:_0x55bc13}of _0x1bf618['createTableWalker'](_0x26f08d,{'startRow':_0x49b895,'endRow':_0x49b895+_0x29a872-0x1}))_0x40d193['rowInsertionRanges']['push'](_0x580cbf['model']['createRangeOn'](_0x55bc13));},{'priority':'low'}),_0xd49f42['descriptionFactory']['registerDescriptionCallback'](_0x4df1bf=>{if(_0x4df1bf['subType']&&_0x4df1bf['subType']['startsWith']('tablePaste'))return _0x4df1bf['previous']?{}:{'type':'insertion','content':o(_0x580cbf['locale'],'*Replace\x20table\x20cells*')};});const _0x5be61c=()=>!0x1;for(const _0x152daf of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xd49f42['_suggestionFactory']['registerCustomCallback']('insertion',_0x152daf,'join',_0x5be61c),_0xd49f42['_suggestionFactory']['registerCustomCallback']('deletion',_0x152daf,'join',_0x5be61c),_0xd49f42['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x152daf,'join',_0x5be61c);_0xd49f42['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5be61c),_0xd49f42['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1760c2,_0xd519a4,_0x9a3ade)=>{const _0x330c81=_0x1760c2['map'](_0x38e6a1=>_0x38e6a1['getContainedElement']())['filter'](_0x39da83=>_0x39da83),_0x36029f=new Map(_0x330c81['map'](_0x501131=>[_0x501131,null]));if(_0x40d193){for(const {element:_0x399f1f,attributes:_0x3c0b23}of _0x40d193['cells'])_0x3c0b23&&_0x36029f['set'](_0x399f1f,_0x3c0b23);}else{if(_0x9a3ade&&_0x9a3ade['markerAttributes'])for(const [_0x3cdcc0,_0x4ed3c5]of Object['entries'](_0x9a3ade['markerAttributes'])){const _0x16a3a4=_0x580cbf['model']['markers']['get'](_0x3cdcc0),_0x35a141=_0x16a3a4?_0x16a3a4['getRange']()['getContainedElement']():null;_0x35a141&&_0x36029f['set'](_0x35a141,_0x4ed3c5);}}_0x580cbf['model']['change'](_0x4e91ba=>{for(const [_0x13298d,_0xe5f1bd]of _0x36029f)_0x4e91ba['setAttributes']({...Ae,..._0xe5f1bd},_0x13298d);});});const _0x16b496=(_0x141e33,_0x499af4)=>{_0xd49f42['_suggestionFactory']['registerCustomCallback'](_0x141e33,'tablePaste',_0x499af4,(_0x4aa3ac,_0x35973e,_0x191c92)=>{_0x580cbf['model']['change'](_0x4080e9=>{const _0x5b687e=[];for(const _0x245852 of _0x4aa3ac){const _0x18809e=_0x245852['start']['nodeAfter'];_0x18809e['is']('element','tableCellSuggestion')&&_0x5b687e['push'](_0x18809e);}_0xd49f42['_suggestionFactory']['getSuggestionCallback'](_0x141e33,null,_0x499af4)(_0x4aa3ac,_0x35973e,_0x191c92);for(const _0x47f2dd of _0x5b687e)'$graveyard'!=_0x47f2dd['root']['rootName']&&_0x4080e9['unwrap'](_0x47f2dd);});});};_0x16b496('insertion','accept'),_0x16b496('insertion','discard'),_0x16b496('deletion','accept'),_0x16b496('deletion','discard'),_0xd49f42['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x483019=>{const _0x409c11=_0x483019['map'](_0x1991e1=>_0x1991e1['getContainedElement']()),_0x1aa6e3=_0x409c11[0x0]['findAncestor']('table'),{minRow:_0x2fb7a0,maxRow:_0x3f7e0c}=_0x1fee8d['_getCoordsForCells'](_0x409c11);_0x1bf618['removeRows'](_0x1aa6e3,{'at':_0x2fb7a0,'rows':_0x3f7e0c-_0x2fb7a0+0x1});}),_0xd49f42['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x43bca6=>{const _0x468264=_0x43bca6['map'](_0x12729a=>_0x12729a['getContainedElement']()),_0x436366=_0x468264[0x0]['findAncestor']('table'),{minColumn:_0x4dce3b,maxColumn:_0x5e5b3e}=_0x1fee8d['_getCoordsForCells'](_0x468264);_0x1bf618['removeColumns'](_0x436366,{'at':_0x4dce3b,'columns':_0x5e5b3e-_0x4dce3b+0x1});});const _0x47ea17=(_0x1bd351,_0x4c8312)=>{if(!_0x4c8312['subType']||!_0x4c8312['subType']['startsWith']('tablePaste'))return;const _0x55500c=_0x4c8312['attributes']['tablePasteChainId'],_0x59ff8f=_0xd49f42['getSuggestions']()['filter'](_0xdbbaba=>_0xdbbaba['isInContent']&&_0xdbbaba['attributes']&&_0xdbbaba['attributes']['tablePasteChainId']==_0x55500c);_0x59ff8f['length']&&_0x4c8312['getAllAdjacentSuggestions']()['length']!=_0x59ff8f['length']&&_0x59ff8f['reduce']((_0x345311,_0x1ae29d)=>(_0x345311['next']=_0x1ae29d,_0x1ae29d['previous']=_0x345311,_0x1ae29d));};function _0x43147c(_0x209282,_0x456ff9=!0x0){const {id:_0x840d67,authorId:_0x1a0b14}=_0xd49f42['_splitMarkerName'](_0x209282['markerName']),_0x54eb73=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1b7dbc=_0xd49f42['activeMarkers']['includes'](_0x209282['markerName']);return _0x1b7dbc&&_0x54eb73['push']('ck-suggestion-marker--active'),{'classes':_0x54eb73,'attributes':{'data-suggestion':_0x840d67,'data-author-id':_0x1a0b14},'priority':_0x1b7dbc&&_0x456ff9?0xbc2:0xbb8};}_0xd49f42['on']('suggestionLoaded',_0x47ea17,{'priority':'high'}),_0xd49f42['on']('suggestionUnloaded',_0x47ea17,{'priority':'high'}),_0x580cbf['model']['document']['registerPostFixer'](()=>{let _0x12b7ff=!0x1;const _0x30e0f9=Array['from'](_0x580cbf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x26eeda,data:_0x36ae85}of _0x30e0f9){const {group:_0x4d0a2d,type:_0x3add29,id:_0x573905}=_0xd49f42['_splitMarkerName'](_0x26eeda);if('suggestion'!=_0x4d0a2d||'deletion'!=_0x3add29||_0x36ae85['oldRange'])continue;if(!_0xd49f42['hasSuggestion'](_0x573905))continue;const _0x3b7d46=_0xd49f42['getSuggestion'](_0x573905)['getRanges'](),_0x3445f6=_0x580cbf['plugins']['get']('Users')['me'];for(const _0x14462c of _0xd49f42['getSuggestions']()){if(!_0x14462c['isInContent']||_0x14462c['author']!=_0x3445f6)continue;if('formatBlock'!=_0x14462c['type']||'tablePasteCell'!=_0x14462c['subType'])continue;if(_0x14462c['getRanges']()['every'](_0x37b220=>_0x3b7d46['some'](_0xda288f=>_0xda288f['containsRange'](_0x37b220,!0x0)))){for(const _0x73536 of _0x14462c['getAllAdjacentSuggestions']())_0x73536['isInContent']&&(_0x73536['discard'](),_0x12b7ff=!0x0);}}}return _0x12b7ff;}),_0x580cbf['model']['document']['registerPostFixer'](_0x2c7117=>{const _0x18b68f=_0x580cbf['commands']['get']('redo');if(!_0x18b68f||!_0x18b68f['_createdBatches']['has'](_0x2c7117['batch']))return!0x1;let _0x5967a8=!0x1;const _0x2fbfed=_0x580cbf['plugins']['get']('Users')['me'],_0x30af35=_0x580cbf['model']['document']['differ']['getChanges'](),_0x489ec2=Array['from'](_0x580cbf['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1eb38d,data:_0x1fb082})=>{const {group:_0x11468b,subType:_0x140a4b,authorId:_0xb5a2d6}=_0xd49f42['_splitMarkerName'](_0x1eb38d);return'suggestion'==_0x11468b&&'tablePaste'==_0x140a4b&&_0xb5a2d6==_0x2fbfed['id']&&!_0x1fb082['oldRange'];});for(const _0x43c0ad of _0x30af35){if('insert'!=_0x43c0ad['type']||'tableCellSuggestion'!=_0x43c0ad['name']||0x1!=_0x43c0ad['length'])continue;const _0x57c6da=_0x2c7117['createRange'](_0x43c0ad['position'],_0x43c0ad['position']['getShiftedBy'](0x1));if(!_0x489ec2['find'](({data:_0x30d318})=>_0x30d318['newRange']['isEqual'](_0x57c6da))){for(const {name:_0x42fe07,data:_0x423395}of _0x489ec2)if(_0x57c6da['containsRange'](_0x423395['newRange'])){_0x2c7117['updateMarker'](_0x42fe07,{'range':_0x57c6da}),_0x5967a8=!0x0;break;}}}return _0x5967a8;}),_0x580cbf['model']['document']['registerPostFixer'](_0x22f91d=>{let _0x4b891d=!0x1;const _0x1de0b8=_0x580cbf['plugins']['get']('Users')['me'],_0x52266c=_0xd49f42['getSuggestions']()['filter'](_0x533a25=>_0x533a25['isInContent']&&_0x533a25['author']==_0x1de0b8),_0x26cf22=new Set(),_0x1dd477=new Set();for(const _0x191aef of _0x52266c)if('tablePaste'==_0x191aef['subType'])for(const _0x5065bf of _0x191aef['getMarkers']()){const _0x5b37ab=_0x5065bf['getRange']()['getContainedElement']();if(_0x5b37ab){if(_0x5b37ab['is']('element','tableCellSuggestion')&&Be(_0x5b37ab)){_0x191aef['removeMarker'](_0x5065bf['name']),_0x26cf22['add'](_0x5b37ab),_0x4b891d=!0x0;const _0x149442=_0x5b37ab['nextSibling'],_0x1c4a50=_0x5b37ab['previousSibling'],_0x5db0be=_0x149442&&_0x149442['is']('element','tableCellSuggestion'),_0x80e1b8=_0x1c4a50&&_0x1c4a50['is']('element','tableCellSuggestion');_0x5db0be&&!_0x26cf22['has'](_0x149442)&&_0x1dd477['add'](_0x149442),_0x80e1b8&&!_0x26cf22['has'](_0x1c4a50)&&_0x1dd477['add'](_0x1c4a50);}else _0x5b37ab['is']('element','paragraph')&&_0x5b37ab['isEmpty']&&(_0x191aef['removeMarker'](_0x5065bf['name']),_0x4b891d=!0x0);}}else{if('tablePasteCell'==_0x191aef['subType']){if(!_0x191aef['attributes']||!_0x191aef['attributes']['tablePasteChainId'])continue;const _0x3a702f=_0x191aef['attributes']['markerAttributes'];if(_0x3a702f&&Object['keys'](_0x3a702f)['length'])continue;const _0x12145d=_0x191aef['attributes']['tablePasteChainId'];let _0x546ca9=!0x0,_0x531df7=!0x0;for(const _0x2a567e of _0x52266c)if(_0x2a567e['subType']&&_0x2a567e['subType']['startsWith']('tablePaste')){if(!_0x2a567e['attributes']['tablePasteChainId']){_0x531df7=!0x1;break;}if(_0x2a567e['id']!=_0x191aef['id']&&_0x2a567e['attributes']['tablePasteChainId']==_0x12145d){_0x546ca9=!0x1;break;}}_0x531df7&&_0x546ca9&&(_0x191aef['removeMarkers'](),_0x4b891d=!0x0);}}for(const _0x3c329f of _0x26cf22)_0x22f91d['remove'](_0x3c329f);for(const _0x32092d of _0x1dd477)_0x22f91d['unwrap'](_0x32092d);return _0x4b891d;}),_0x580cbf['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3d2da6=>_0x43147c(_0x3d2da6),'converterPriority':'high'}),_0x580cbf['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xedf974,_0x5cf030)=>_0x5cf030['options']['showSuggestionHighlights']?_0x43147c(_0xedf974,!0x1):null,'converterPriority':'high'});const _0x355a3c=_0x580cbf['editing']['view'];this['listenTo'](_0x355a3c['document'],'clipboardOutput',(_0x4db90d,_0x1e763f)=>{const _0xc21f20=[];for(const _0x21086b of _0x355a3c['createRangeIn'](_0x1e763f['content'])['getItems']())_0x21086b['is']('element','suggestion-td')&&_0xc21f20['push'](_0x21086b);_0x355a3c['change'](_0x55de6e=>{for(const _0x3e2147 of _0xc21f20)_0x55de6e['move'](_0x55de6e['createRangeIn'](_0x3e2147),_0x55de6e['createPositionBefore'](_0x3e2147)),_0x55de6e['remove'](_0x3e2147);});});}}function Be(_0x232b44){if(_0x232b44['isEmpty'])return!0x0;const _0x28a020=_0x232b44['getChild'](0x0);return _0x28a020['is']('element','paragraph')&&_0x28a020['isEmpty'];}function Oe(_0x51a500,_0xbcb2e={},_0x45bbd8){for(const {isAnchor:_0x3f109d,cellHeight:_0x226b27,cellWidth:_0x5aa02b}of _0x45bbd8['createTableWalker'](_0x51a500,{'includeAllSlots':!0x0,..._0xbcb2e}))if(!_0x3f109d||0x1!=_0x226b27||0x1!=_0x5aa02b)return!0x1;return!0x0;}class Rt extends _0x52da3d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x42632f=this['editor']['plugins']['get']('TrackChangesEditing');_0x42632f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x42632f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x42632f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x42632f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x42632f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x42632f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x45c7ed,_0xf2ff02){const _0x19e4f6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b10dd=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x235b3f=_0xf2ff02['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xa5961a=_0x5b10dd['getColumnGroupElement'](_0x235b3f);let _0x48a2e9=_0xa5961a?_0x5b10dd['getTableColumnsWidths'](_0xa5961a):null,_0x1654ac=_0x235b3f['getAttribute']('tableWidth')||null;const _0xc65a3c=_0xf2ff02['tableWidth']||_0x1654ac,_0x4bb402=_0xf2ff02['columnWidths']||_0x48a2e9,_0x346b43=this['editor']['plugins']['get']('Users')['me'];for(const _0x2d4803 of _0x19e4f6['getSuggestions']()){const _0x193701=_0x2d4803['getContainedElement']();if('resizeTable'===_0x2d4803['subType']&&_0x193701===_0x235b3f){_0x2d4803['author']!==_0x346b43&&_0x2d4803['discard']();const _0x3dd277=_0x2d4803['data']['commandParams'];_0x1654ac=_0x3dd277[0x0]['tableWidth'],_0x48a2e9=_0x3dd277[0x0]['columnWidths'];break;}}_0x45c7ed({'table':_0x235b3f,'tableWidth':_0xc65a3c,'columnWidths':_0x4bb402}),_0x19e4f6['markBlockFormat'](_0x235b3f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1654ac,'columnWidths':_0x48a2e9}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5f3348){if('formatBlock'!=_0x5f3348['type']&&'formatInline'!=_0x5f3348['type'])return;const {data:_0x2fcfd7}=_0x5f3348;if(_0x2fcfd7&&'resizeTable'===_0x2fcfd7['formatGroupId']){const _0x4115d7='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4115d7)};}}}class Tt extends _0x52da3d{['afterInit'](){const _0x2eb014=this['editor'];_0x2eb014['plugins']['has']('Template')&&_0x2eb014['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x52da3d{['afterInit'](){const _0x2cc7ea=this['editor'];if(!_0x2cc7ea['commands']['get']('insertTableOfContents'))return;_0x2cc7ea['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3484f9=_0x2cc7ea['plugins']['get']('TrackChangesEditing'),_0x43d877=_0x2cc7ea['locale'];_0x3484f9['descriptionFactory']['registerElementLabel']('tableOfContents',_0x259c5e=>o(_0x43d877,'ELEMENT_TABLE_OF_CONTENTS',_0x259c5e));}}class Ut extends _0x52da3d{['afterInit'](){const _0x2929f2=this['editor'];if(!_0x2929f2['plugins']['has']('Title'))return;const _0x5aa580=_0x2929f2['plugins']['get']('TrackChangesEditing');_0x5aa580['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2929f2['locale'],'ELEMENT_TITLE')),_0x2929f2['model']['document']['registerPostFixer'](_0x4ff3de=>{let _0x197e0d=!0x1;const _0x230219=Array['from'](_0x2929f2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x31dcac,data:_0x545bff}of _0x230219){const {group:_0x775a77}=_0x5aa580['_splitMarkerName'](_0x31dcac);if('suggestion'!==_0x775a77||!_0x545bff['newRange'])continue;const _0x2ca0b8=_0x545bff['newRange'],_0x5ee93b=_0x2ca0b8['end']['nodeBefore'];if(!_0x5ee93b||!_0x5ee93b['is']('element','title-content'))continue;if(!_0x2ca0b8['start']['isTouching'](_0x2ca0b8['end']))continue;const _0x4685eb=_0x2929f2['model']['schema']['getNearestSelectionRange'](_0x2ca0b8['end'],'forward');if(_0x4685eb&&_0x4685eb['isCollapsed']){const _0x2c1980=_0x4ff3de['createRange'](_0x2ca0b8['start'],_0x4685eb['start']);_0x2c1980['isEqual'](_0x2ca0b8)||(_0x4ff3de['updateMarker'](_0x31dcac,{'range':_0x2c1980}),_0x197e0d=!0x0);}_0x197e0d||(_0x4ff3de['removeMarker'](_0x31dcac),_0x197e0d=!0x0);}return _0x197e0d;});}}class Vt extends _0x52da3d{['afterInit'](){const _0x5b153e=this['editor'],_0x1f2980=_0x5b153e['plugins']['get']('TrackChangesEditing');_0x5b153e['plugins']['has']('Uploadcare')&&(_0x1f2980['enableCommand']('uploadcare'),_0x5b153e['plugins']['has']('UploadcareImageEdit')&&(_0x1f2980['enableCommand']('uploadcareImageEdit'),_0x1f2980['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1f2980['descriptionFactory']['registerDescriptionCallback'](_0x1eedf7=>{if('attribute'!=_0x1eedf7['type'])return;const {data:_0x440fa7}=_0x1eedf7;return _0x440fa7&&'uploadcareImageId'==_0x440fa7['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x52da3d{['afterInit'](){const _0x9b4adc=this['editor'],_0x3bd0d5=_0x9b4adc['plugins']['get']('TrackChangesEditing');_0x9b4adc['plugins']['has']('UndoEditing')&&(_0x3bd0d5['enableCommand']('undo'),_0x3bd0d5['enableCommand']('redo'));}}class Pt extends _0x52da3d{static get['requires'](){return[Dt];}['afterInit'](){const _0x1aa4cb=this['editor'];if(!_0x1aa4cb['plugins']['has']('TableCaptionEditing'))return;_0x1aa4cb['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x52da3d{['tableProperties'];['tableCellProperties'];constructor(_0x4bc903){super(_0x4bc903),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x4bc903['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x378ce8=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x34f3a0 of this['tableProperties'])_0x378ce8['enableCommand'](_0x34f3a0,(_0x3e832a,_0x561d9b)=>{const _0x1847eb=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x34f3a0,[_0x1847eb],this['tableProperties'],'tableProperties',_0x3e832a,_0x561d9b);});_0x378ce8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x378ce8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x378ce8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x22c62d,_0x43766c)=>this['handleDiscardAction'](this['tableProperties'],_0x22c62d,_0x43766c)),_0x378ce8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x480605 of this['tableCellProperties'])this['editor']['commands']['get'](_0x480605)&&_0x378ce8['enableCommand'](_0x480605,(_0x2b1ea4,_0x37377e)=>{const _0x24aa5a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x480605,_0x24aa5a,this['tableCellProperties'],'tableCellProperties',_0x2b1ea4,_0x37377e);});_0x378ce8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x378ce8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x378ce8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x39b7da,_0x198c89)=>this['handleDiscardAction'](this['tableCellProperties'],_0x39b7da,_0x198c89)),_0x378ce8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x378ce8['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x378ce8['descriptionFactory']['registerDescriptionCallback'](_0x2619b2=>this['handleSuggestionDescription'](_0x2619b2)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x52ba1f,_0x5e15e2,_0x3802ff,_0x1f5f56,_0x4802e2,_0x2c229d){const _0x4706bb=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2c229d['batch'],()=>{for(const _0x2e4fa3 of _0x5e15e2){if(this['_getSuggestion'](_0x2e4fa3,_0x1f5f56))_0x4802e2(_0x2c229d);else{const _0x59334c={};for(const _0x4980ac of _0x3802ff){const _0x2293e7=_0x2e4fa3['getAttribute'](_0x4980ac);void 0x0!==_0x2293e7&&(_0x59334c[_0x4980ac]=_0x2293e7);}_0x4802e2(_0x2c229d),_0x4706bb['markBlockFormat'](_0x2e4fa3,{'commandParams':[_0x59334c]},[],_0x1f5f56);}}});}['handleDiscardAction'](_0x4c5193,_0x46f5f9,_0x1a5348){const _0x23c29e=_0x46f5f9[0x0]['start']['nodeAfter'],_0x5e1056=_0x1a5348['commandParams'][0x0];this['editor']['model']['change'](_0x10c229=>{for(const _0x168eba of _0x4c5193)void 0x0!==_0x5e1056[_0x168eba]?_0x10c229['setAttribute'](_0x168eba,_0x5e1056[_0x168eba],_0x23c29e):_0x10c229['removeAttribute'](_0x168eba,_0x23c29e);});}['handleSuggestionDescription'](_0x2cefd8){if(_0x2cefd8['data'])switch(_0x2cefd8['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x5be9ca,_0x35bdda){const _0x206752=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2ade3b of _0x206752['getSuggestions']({'skipNotAttached':!0x0})){const _0x5da2b7=_0x2ade3b['getContainedElement']();if(_0x2ade3b['subType']===_0x35bdda&&_0x5da2b7===_0x5be9ca)return _0x2ade3b;}return null;}['_registerTablePropertiesAttributes'](){const _0x3fdc94=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17028e=[...this['tableProperties'],...this['tableCellProperties']];for(const _0xb2fce of _0x17028e){const _0xb1766e=_0xb2fce['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x3fdc94['descriptionFactory']['registerAttributeLabel'](_0xb2fce,o(this['editor']['locale'],'FORMAT_'+_0xb1766e));}}}class Lt extends _0x52da3d{['afterInit'](){const _0xfa9978=this['editor'];if(!_0xfa9978['plugins']['has']('LineHeight'))return;const _0x2454da=_0xfa9978['plugins']['get']('TrackChangesEditing'),_0x28f900=_0xfa9978['locale'];_0x2454da['enableDefaultAttributesIntegration']('lineHeight'),_0x2454da['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x28f900,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x52da3d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x4c75b8,_0x4747e2,_0x3534bd,_0x56ed2f,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x458b11){super(_0x458b11),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1478b4,_0x55965a,_0x231592,_0x369742)=>{this['_model']['change'](()=>{for(const _0x309b3f of[..._0x369742,..._0x231592])this['_model']['markers']['has'](_0x309b3f)&&_0x458b11['editing']['reconvertMarker'](_0x309b3f);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x458b11['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x458b11['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x458b11['config']['get']('trackChanges.trackFormatChanges'),_0x458b11['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x458b11['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x458b11,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2106cc=this['editor'];_0x2106cc['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x155208,{writer:_0x180c68})=>{let _0x22353d='suggestion:'+_0x155208['getAttribute']('suggestion-type')+':'+_0x155208['getAttribute']('id');return _0x155208['getAttribute']('marker-count')&&(_0x22353d+=':'+_0x155208['getAttribute']('marker-count')),_0x180c68['createElement']('$marker',{'data-name':_0x22353d});}}),_0x2106cc['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2106cc['model']['document']['registerPostFixer'](_0x21e229=>{let _0x404fb8=!0x1;const _0x2f13f3=Array['from'](_0x2106cc['model']['document']['differ']['getChangedMarkers']()),_0xc866e0=new Set();for(const {name:_0xc58d19,data:_0x6513e6}of _0x2f13f3){const {group:_0xd46ddb,type:_0x5bb709,subType:_0x59e41b,id:_0x22596a}=this['_splitMarkerName'](_0xc58d19);if('suggestion'!==_0xd46ddb)continue;const _0x308994=_0x59e41b?'suggestion:'+_0x5bb709+':'+_0x59e41b+':'+_0x22596a:'suggestion:'+_0x5bb709+':'+_0x22596a,_0x3b0f3d=_0x2106cc['model']['markers']['getMarkersGroup'](_0x308994),_0x291d11=_0x2106cc['model']['markers']['get'](_0xc58d19),_0x34876c=this['_suggestions']['get'](_0x22596a);if(null!=_0x6513e6['newRange']){'formatInline'==_0x5bb709&&(_0x404fb8=_0x404fb8||Wt(_0x6513e6['newRange'],_0xc58d19,_0x21e229,_0x2106cc['model']['schema']));const _0x21cd3a='attribute'==_0x5bb709&&this['_isBlockAttribute'](_0x59e41b['split']('|')[0x0]),_0x4b3b6e='attribute'==_0x5bb709&&this['_isInlineAttribute'](_0x59e41b['split']('|')[0x0]);if(_0x6513e6['newRange']['isCollapsed']||'$graveyard'==_0x6513e6['newRange']['root']['rootName']||'formatBlock'==_0x5bb709&&!Qt(_0x6513e6['newRange'])||_0x21cd3a&&!Qt(_0x6513e6['newRange'])||_0x4b3b6e&&Xt(_0x6513e6['newRange'])||'deletion'==_0x5bb709&&Xt(_0x6513e6['newRange'])||_0x291d11&&Yt(_0x291d11,_0x3b0f3d))_0x21e229['removeMarker'](_0xc58d19),_0x404fb8=!0x0;else{if(!_0x34876c||!_0x34876c['isInContent'])continue;if(_0x6513e6['newRange']&&_0x6513e6['oldRange']&&_0x6513e6['newRange']['isEqual'](_0x6513e6['oldRange']))continue;_0xc866e0['add'](_0x34876c);}}}return _0xc866e0['size']>0x0&&(_0x404fb8=!!this['_joinWithAdjacentSuggestions'](_0xc866e0)||_0x404fb8),_0x404fb8;}),_0x2106cc['model']['document']['registerPostFixer'](_0x48b95a=>{let _0x18a9e6=!0x1;for(const _0x5f26ae of _0x2106cc['model']['document']['differ']['getChanges']())if('insert'==_0x5f26ae['type'])for(const _0x2246c3 of this['_suggestions']['values']()){if(_0x2246c3['isMultiRange']||!_0x2246c3['isInContent'])continue;const _0x4713b4='formatBlock'==_0x2246c3['type'],_0x27e5aa=this['_getAttributeKey'](_0x2246c3),_0x3487a5=_0x27e5aa&&this['_isBlockAttribute'](_0x27e5aa);if(!_0x4713b4&&!_0x3487a5)continue;const _0x49060c=_0x2246c3['getFirstRange']();if(_0x49060c['start']['parent']!=_0x49060c['end']['parent']&&!_0x49060c['end']['isAtEnd']){const _0x1b5fdb=_0x2106cc['model']['createPositionAt'](_0x49060c['start']['nodeAfter'],'end'),_0x24733f=_0x2106cc['model']['createRange'](_0x49060c['start'],_0x1b5fdb);_0x48b95a['updateMarker'](_0x2246c3['getFirstMarker'](),{'range':_0x24733f}),_0x18a9e6=!0x0;}}return _0x18a9e6;}),_0x2106cc['model']['document']['registerPostFixer'](_0xee6699=>this['_processAttributeChanges'](_0xee6699)),_0x2106cc['model']['document']['registerPostFixer'](_0x30759b=>!_0x30759b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x30759b)),_0x2106cc['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2106cc['model']['document']['on']('change:data',(_0x46cf07,_0x151ca1)=>{if(!_0x151ca1['isLocal']||_0x151ca1['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xd56289=_0x2106cc['model']['document']['differ']['getChanges']();if(0x0==_0xd56289['length'])return;const _0x53f3d9=[],_0x29aefc=_0xd56289['filter'](_0x219b70=>'attribute'==_0x219b70['type']),_0x2ebe97=_0xd56289['filter'](_0x35963e=>'insert'==_0x35963e['type']&&'$text'!=_0x35963e['name']);for(const _0x4c967d of _0x29aefc)this['_isRegisteredAttribute'](_0x4c967d['attributeKey'])&&_0x53f3d9['push']({'key':_0x4c967d['attributeKey'],'newValue':_0x4c967d['attributeNewValue'],'oldValue':_0x4c967d['attributeOldValue'],'range':Zt(_0x4c967d['range'],_0x2106cc['model'])});for(const _0x2e948b of _0x2ebe97){if('rename'!=_0x2e948b['action']&&'refresh'!=_0x2e948b['action'])continue;const _0x28aa2d=tn(_0x2e948b['position']['nodeAfter'],_0x2106cc['model']),_0x3eb169=_0x2e948b['before'];'rename'==_0x2e948b['action']&&_0x53f3d9['push']({'key':m,'newValue':_0x2e948b['name'],'oldValue':_0x3eb169['name'],'range':_0x28aa2d});for(const [_0x2ef169,_0x5c6d91]of _0x3eb169['attributes']){if(!this['_isRegisteredAttribute'](_0x2ef169))continue;const _0x1154c3=_0x2e948b['attributes']['get'](_0x2ef169);_0x5c6d91!==_0x1154c3&&_0x53f3d9['push']({'key':_0x2ef169,'newValue':_0x1154c3,'oldValue':_0x5c6d91,'range':_0x28aa2d});}for(const [_0x1d5be6,_0x56aaf7]of _0x2e948b['attributes'])this['_isRegisteredAttribute'](_0x1d5be6)&&(_0x3eb169['attributes']['has'](_0x1d5be6)||_0x53f3d9['push']({'key':_0x1d5be6,'newValue':_0x56aaf7,'oldValue':null,'range':_0x28aa2d}));}0x0!=_0x53f3d9['length']&&_0x2106cc['model']['enqueueChange'](_0x151ca1,_0xe4be8b=>{const _0x147cf9=_0x516af4();for(const {range:_0x45a49a,key:_0x556eb1,oldValue:_0x296339,newValue:_0x5e1cc9}of _0x53f3d9)this['markAttributeChange'](_0x45a49a,_0x556eb1,_0x296339,_0x5e1cc9,{'groupId':_0x147cf9});this['_reduceExistingSuggestions'](_0xe4be8b,_0x53f3d9);});},{'priority':'lowest'}),_0x2106cc['model']['markers']['on']('update:suggestion',(_0x39bc22,_0x565b47,_0x173f49)=>{if(null==_0x173f49){const {id:_0xe44093}=this['_splitMarkerName'](_0x565b47['name']),_0x27849e=this['_suggestions']['get'](_0xe44093);_0x27849e&&_0x27849e['addMarkerName'](_0x565b47['name']);}}),_0x2106cc['model']['document']['on']('change:data',()=>{const _0x224ce0=Array['from'](_0x2106cc['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2a0531=>'suggestion'===this['_splitMarkerName'](_0x2a0531['name'])['group']);if(0x0===_0x224ce0['length'])return;_0x224ce0['sort']((_0x38ceac,_0x4b0fec)=>{const _0x1b664b=_0x38ceac['data']['oldRange'],_0x593191=_0x4b0fec['data']['oldRange'];return null===_0x1b664b&&null===_0x593191?0x0:null===_0x1b664b&&null!==_0x593191?-0x1:null!==_0x1b664b&&null===_0x593191?0x1:_0x1b664b['start']['isBefore'](_0x593191['start'])?-0x1:0x1;});const _0x5520ab=new Set(),_0x3f9484=new Set();for(const {name:_0x12613a,data:_0x5c2746}of _0x224ce0){const {id:_0x13084d}=this['_splitMarkerName'](_0x12613a);if(null===_0x5c2746['oldRange']){const _0x582dbf=this['_handleNewSuggestionMarker'](_0x12613a);_0x3f9484['add'](_0x582dbf);}else{const _0x3654d4=this['_suggestions']['get'](_0x13084d);null!==_0x5c2746['newRange']||_0x3654d4['isInContent']?(_0x5520ab['add'](_0x3654d4['head']),_0x3f9484['add'](_0x3654d4)):this['_removeSuggestion'](_0x3654d4);}}_0x3f9484['size']>0x0&&this['_refreshSuggestionsChain'](_0x3f9484);for(const _0x1fb35d of _0x5520ab)this['fire']('suggestionChanged',_0x1fb35d);}),_0x2106cc['model']['on']('applyOperation',(_0x5507ba,_0x1d4780)=>{const _0x434476=_0x1d4780[0x0];if(!this['_suggestions']['size'])return;if(!_0x434476['isDocumentOperation'])return;if(_0x434476['batch']['isUndo']||!_0x434476['batch']['isLocal'])return;let _0xc89756,_0x33a47c;switch(_0x434476['type']){case'insert':_0xc89756=_0x2106cc['model']['createPositionAt'](_0x434476['position']),_0x33a47c=_0xc89756['getShiftedBy'](_0x434476['howMany']);break;case'split':_0xc89756=_0x2106cc['model']['createPositionAt'](_0x434476['splitPosition']),_0x33a47c=_0x2106cc['model']['createPositionAt'](_0x434476['moveTargetPosition']);break;case'move':_0xc89756=_0x2106cc['model']['createPositionAt'](_0x434476['targetPosition']),_0x33a47c=_0xc89756['getShiftedBy'](_0x434476['howMany']);break;default:return;}const _0x1db3c0=_0x2106cc['model']['createRange'](_0xc89756,_0x33a47c);_0x2106cc['model']['change'](()=>{for(const {suggestion:_0x21616d,meta:_0x27a0d3}of this['_findSuggestions'](_0x1db3c0)){if(_0x21616d['isMultiRange'])continue;if('formatInline'==_0x21616d['type'])continue;const _0x58d41f=this['_getAttributeKey'](_0x21616d);if(_0x58d41f&&this['_isBlockAttribute'](_0x58d41f)&&'split'!=_0x434476['type'])continue;const _0x1fadff=_0x21616d['data']&&_0x21616d['data']['multipleBlocks'];('formatBlock'!=_0x21616d['type']||'split'==_0x434476['type']&&!_0x1fadff)&&(_0x27a0d3['containsRangeInObject']||'insertion'==_0x21616d['type']&&_0x27a0d3['isOwn']||_0x21616d['getFirstRange']()['containsRange'](_0x1db3c0)&&this['_breakSuggestionMarker'](_0x21616d,_0xc89756,_0x33a47c));}});},{'priority':'lowest'}),_0x2106cc['model']['on']('deleteContent',(_0x2cb948,_0x457930)=>{const _0x4b0858=_0x457930[0x0],_0x374ae6=_0x457930[0x1];if(_0x374ae6&&_0x374ae6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4b0858['isCollapsed'])return;const _0x24fe51=_0x2106cc['model']['schema'],{start:_0x309379,end:_0x34ba54}=_0x4b0858['getFirstRange'](),_0x2e1f8d=_0x309379['nodeAfter']&&_0x24fe51['isLimit'](_0x309379['nodeAfter'])?null:_0x24fe51['getNearestSelectionRange'](_0x309379,'forward'),_0x2bffe6=_0x34ba54['nodeBefore']&&_0x24fe51['isLimit'](_0x34ba54['nodeBefore'])?null:_0x24fe51['getNearestSelectionRange'](_0x34ba54,'backward'),_0x29792b=_0x2106cc['model']['createRange'](_0x2e1f8d?_0x2e1f8d['start']:_0x309379,_0x2bffe6?_0x2bffe6['end']:_0x34ba54);_0x2106cc['model']['change'](_0x311cc0=>{this['markDeletion'](_0x29792b);const _0x57e990=_0x2106cc['model']['schema']['getNearestSelectionRange'](_0x29792b['start']);_0x4b0858['is']('documentSelection')?_0x311cc0['setSelection'](_0x57e990):_0x4b0858['setTo'](_0x57e990);}),_0x2cb948['stop']();},{'priority':_0x134268['normal']+0xa}),_0x2106cc['model']['on']('insertContent',(_0x2affe6,_0x1157ec)=>{const _0x21aa98=_0x1157ec[_0x1157ec['length']-0x1];_0x21aa98&&_0x21aa98['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2106cc['model']['change'](()=>{let _0x9b035d=_0x2106cc['model']['insertContent'](_0x1157ec[0x0],_0x1157ec[0x1],_0x1157ec[0x2],{'forceDefaultExecution':!0x0});if(!_0x9b035d)return;_0x2affe6['return']=_0x9b035d['clone']();const _0x5d4eef=_0x9b035d['end']['nodeBefore'],_0x24957f=_0x2106cc['model']['schema'];_0x5d4eef&&_0x24957f['isBlock'](_0x5d4eef)&&!_0x24957f['isObject'](_0x5d4eef)&&(_0x9b035d=_0x2106cc['model']['createRange'](_0x9b035d['start'],_0x2106cc['model']['createPositionAt'](_0x5d4eef,'end'))),this['markInsertion'](_0x9b035d);}),_0x2affe6['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2ac238=new O(_0x2106cc,this['_suggestions']);_0x2106cc['commands']['add']('acceptSuggestion',_0x2ac238),this['enableCommand']('acceptSuggestion');const _0x1e2e0a=new x(_0x2106cc,this['_suggestions']);_0x2106cc['commands']['add']('discardSuggestion',_0x1e2e0a),this['enableCommand']('discardSuggestion'),_0x2106cc['commands']['add']('acceptAllSuggestions',new M(_0x2106cc,_0x2ac238,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2106cc['commands']['add']('discardAllSuggestions',new M(_0x2106cc,_0x1e2e0a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2106cc['commands']['add']('acceptSelectedSuggestions',new R(_0x2106cc,_0x2ac238,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2106cc['commands']['add']('discardSelectedSuggestions',new R(_0x2106cc,_0x1e2e0a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x454b11=_0x2106cc['plugins']['get']('CommentsRepository');this['listenTo'](_0x454b11,'addComment',(_0x480609,{threadId:_0x139ace})=>{const _0x24b01e=this['_suggestions']['get'](_0x139ace);_0x24b01e&&_0x24b01e['commentThread']&&0x1===_0x24b01e['commentThread']['length']&&this['_updateSuggestionData'](_0x139ace,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x454b11,'removeComment',(_0x5efd8c,{threadId:_0x39660c})=>{const _0x2eeb86=this['_suggestions']['get'](_0x39660c);_0x2eeb86&&_0x2eeb86['commentThread']&&!_0x2eeb86['commentThread']['length']&&this['_updateSuggestionData'](_0x39660c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2144eb){const _0xe9392e=_0x36f183([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x48291a=0x3d8d0df,_0x54191d=0x3df57ff^_0x48291a,_0x5e0f46=window[_0x36f183([0x44,0x61,0x74,0x65])][_0x36f183([0x6e,0x6f,0x77])](),_0x412715=_0x2144eb[_0x36f183([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x522286=new window[(_0x36f183([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bd5d0=>{_0x412715[_0x36f183([0x6f,0x6e,0x63,0x65])](_0x36f183([0x72,0x65,0x61,0x64,0x79]),_0x5bd5d0);}),_0x5f5980={[_0x36f183([0x6b,0x74,0x79])]:_0x36f183([0x45,0x43]),[_0x36f183([0x75,0x73,0x65])]:_0x36f183([0x73,0x69,0x67]),[_0x36f183([0x63,0x72,0x76])]:_0x36f183([0x50,0x2d,0x32,0x35,0x36]),[_0x36f183([0x78])]:_0x36f183([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x36f183([0x79])]:_0x36f183([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x36f183([0x61,0x6c,0x67])]:_0x36f183([0x45,0x53,0x32,0x35,0x36])},_0x5117a9=_0x412715[_0x36f183([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x36f183([0x67,0x65,0x74])](_0x36f183([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1b505a(){let _0x5c5cea,_0x2dfd01=null,_0x2291b9=null;try{if(_0x5117a9==_0x36f183([0x47,0x50,0x4c]))return _0x36f183([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5c5cea=_0x19da41(),!_0x5c5cea)return _0x36f183([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5c5cea[_0x36f183([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2291b9=_0x14c1db(_0x5c5cea[_0x36f183([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5c5cea[_0x36f183([0x6a,0x74,0x69])])),await _0x31b67c()?_0x52d9a7()?_0x414abc()?_0x36f183([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x51510d()?(_0x5c5cea[_0x36f183([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x36f183([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2dfd01=_0x191501(_0x36f183([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xd11467()):_0x36f183([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x36f183([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x36f183([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x36f183([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x414abc(){const _0x453ea6=[_0x36f183([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x36f183([0x74,0x72,0x69,0x61,0x6c])][_0x36f183([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c5cea[_0x36f183([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5e0f46/0x3e8:0xe10*_0x54191d;return _0x5c5cea[_0x36f183([0x65,0x78,0x70])]<_0x453ea6;}function _0x52d9a7(){const _0xdf760f=_0x5c5cea[_0x36f183([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xdf760f)return!0x1;if(_0xdf760f[_0x36f183([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36f183([0x2a])))return!0x0;if(_0xdf760f[_0x36f183([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36f183([0x54,0x43])))return!0x0;if(_0xdf760f[_0x36f183([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36f183([0x52,0x54,0x43]))){if(_0x1e7967())return!0x0;if(_0x5281e2()||_0x4e16a7())return!0x0;}return!0x1;}function _0x51510d(){const _0x4ccddb=_0x5c5cea[_0x36f183([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ccddb||0x0==_0x4ccddb[_0x36f183([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x334283}=new URL(window[_0x36f183([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4ccddb[_0x36f183([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x334283))return!0x0;const _0x53f97f=_0x334283[_0x36f183([0x73,0x70,0x6c,0x69,0x74])](_0x36f183([0x2e]));return _0x4ccddb[_0x36f183([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x436505=>_0x436505[_0x36f183([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36f183([0x2a])))[_0x36f183([0x6d,0x61,0x70])](_0x54238f=>_0x54238f[_0x36f183([0x73,0x70,0x6c,0x69,0x74])](_0x36f183([0x2e])))[_0x36f183([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1473e5=>_0x1473e5[_0x36f183([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x53f97f[_0x36f183([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x36f183([0x6d,0x61,0x70])](_0xbd634b=>Array(_0x53f97f[_0x36f183([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xbd634b[_0x36f183([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x36f183([0x66,0x69,0x6c,0x6c])](_0xbd634b[0x0]===_0x36f183([0x2a])?_0x36f183([0x2a]):'')[_0x36f183([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xbd634b))[_0x36f183([0x73,0x6f,0x6d,0x65])](_0x19f65c=>_0x53f97f[_0x36f183([0x65,0x76,0x65,0x72,0x79])]((_0x327f5f,_0x274e9d)=>_0x19f65c[_0x274e9d]===_0x327f5f||_0x19f65c[_0x274e9d]===_0x36f183([0x2a])));}function _0xd11467(){return _0x2dfd01&&_0x2291b9?new window[(_0x36f183([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2308bc,_0x2e490f)=>{_0x2dfd01[_0x36f183([0x74,0x68,0x65,0x6e])](_0x2308bc,_0x2e490f),_0x2291b9[_0x36f183([0x74,0x68,0x65,0x6e])](_0x24ce7f=>{_0x24ce7f!=_0x36f183([0x56,0x61,0x6c,0x69,0x64])&&_0x2308bc(_0x24ce7f);},_0x2e490f);}):_0x2dfd01||_0x2291b9||_0x36f183([0x56,0x61,0x6c,0x69,0x64]);}}function _0x14c1db(_0x2d3e93,_0x68d9f0){return new window[(_0x36f183([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b3c11=>{if(_0x2bdd4e())return _0x5b3c11(_0x36f183([0x56,0x61,0x6c,0x69,0x64]));_0x2602cc(),_0x412715[_0x36f183([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x36f183([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x596fa8=!0x1;const _0x4fa5c2=_0x516af4();function _0x3f04f4(_0x148417){return!!_0x148417&&(typeof _0x148417===_0x36f183([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x148417===_0x36f183([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x148417[_0x36f183([0x74,0x68,0x65,0x6e])]===_0x36f183([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x148417[_0x36f183([0x63,0x61,0x74,0x63,0x68])]===_0x36f183([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2dccda(_0x9440fd){_0x3fe2c8(_0x9440fd)[_0x36f183([0x74,0x68,0x65,0x6e])](_0xe724a=>{if(!_0xe724a||_0xe724a[_0x36f183([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x36f183([0x6f,0x6b]))return _0x36f183([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x59b4ca(_0x3e4979(_0x4fa5c2+_0x68d9f0))!=_0xe724a[_0x36f183([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x36f183([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x36f183([0x56,0x61,0x6c,0x69,0x64]);})[_0x36f183([0x74,0x68,0x65,0x6e])](_0x9d8f46=>(_0x5e1514(),_0x9d8f46),()=>{const _0x391a97=_0x23387d();return null==_0x391a97?(_0x5e1514(),_0x36f183([0x56,0x61,0x6c,0x69,0x64])):_0x36f183(_0x5e0f46-_0x391a97>(0x27d454df^_0x48291a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x36f183([0x74,0x68,0x65,0x6e])](_0x5b3c11)[_0x36f183([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5b3c11(_0x36f183([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xaafc33=0x3ee3e5f^_0x48291a;function _0x5e1514(){const _0x2bdddb=_0x36f183([0x6c,0x6c,0x63,0x74,0x2d])+_0x59b4ca(_0x3e4979(_0x2d3e93)),_0x524108=_0x5c9d26(_0x59b4ca(window[_0x36f183([0x4d,0x61,0x74,0x68])][_0x36f183([0x63,0x65,0x69,0x6c])](_0x5e0f46/_0xaafc33)));window[_0x36f183([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x36f183([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2bdddb,_0x524108);}function _0x23387d(){const _0x3f30d6=_0x36f183([0x6c,0x6c,0x63,0x74,0x2d])+_0x59b4ca(_0x3e4979(_0x2d3e93)),_0x442cea=window[_0x36f183([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x36f183([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f30d6);return _0x442cea?window[_0x36f183([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c9d26(_0x442cea),0x10)*_0xaafc33:null;}function _0x3fe2c8(_0x5ab034){return new window[(_0x36f183([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1672e4,_0x4c95f9)=>{_0x5ab034[_0x36f183([0x74,0x68,0x65,0x6e])](_0x1672e4,_0x4c95f9),window[_0x36f183([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4c95f9,0x3d9041f^_0x48291a);});}}_0x412715[_0x36f183([0x6f,0x6e])](_0x36f183([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3c1955,_0x5d34a9)=>{if(_0x5d34a9[0x0]!=_0x2d3e93)return _0x5b3c11(_0x36f183([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5d34a9[0x1]={..._0x5d34a9[0x1],[_0x36f183([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4fa5c2};},{[_0x36f183([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x36f183([0x68,0x69,0x67,0x68])}),_0x412715[_0x36f183([0x6f,0x6e])](_0x36f183([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x56ed77=>{_0x3f04f4(_0x56ed77[_0x36f183([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x596fa8=!0x0,_0x2dccda(_0x56ed77[_0x36f183([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x36f183([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x36f183([0x6c,0x6f,0x77])}),_0x522286[_0x36f183([0x74,0x68,0x65,0x6e])](()=>{_0x596fa8||_0x5b3c11(_0x36f183([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2bdd4e(){return _0x412715[_0x36f183([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36f183([0x76,0x69,0x65,0x77])][_0x36f183([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x36f183([0x61,0x75,0x74,0x6f]);}function _0x2602cc(){_0x412715[_0x36f183([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36f183([0x76,0x69,0x65,0x77])][_0x36f183([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x36f183([0x61,0x75,0x74,0x6f]);}}function _0x191501(_0x1d3dee){const _0x49d6b2=[new window[(_0x36f183([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x286c28=>setTimeout(_0x286c28,0x3d1ee13^_0x48291a)),_0x522286[_0x36f183([0x74,0x68,0x65,0x6e])](()=>new window[(_0x36f183([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39c16f=>{let _0x2e5660=0x0;_0x412715[_0x36f183([0x6d,0x6f,0x64,0x65,0x6c])][_0x36f183([0x6f,0x6e])](_0x36f183([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x26b3e4,_0x77eb2f)=>{_0x77eb2f[0x0][_0x36f183([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2e5660++,_0x2e5660==(0x3d8d537^_0x48291a)&&(_0x39c16f(),_0x26b3e4[_0x36f183([0x6f,0x66,0x66])]());});}))];return window[_0x36f183([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x36f183([0x72,0x61,0x63,0x65])](_0x49d6b2)[_0x36f183([0x74,0x68,0x65,0x6e])](()=>_0x1d3dee);}async function _0x13f385(){await _0x522286,_0x412715[_0x36f183([0x6d,0x6f,0x64,0x65,0x6c])][_0x36f183([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x44ecd1,_0x412715[_0x36f183([0x6d,0x6f,0x64,0x65,0x6c])][_0x36f183([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x44ecd1,_0x412715[_0x36f183([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x36f183([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e7967(){return _0x3773d1(_0x36f183([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x52039a(_0x36f183([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x36f183([0x73,0x74,0x61,0x74,0x65])]==_0x36f183([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5281e2(){return _0x3773d1(_0x36f183([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x4e16a7(){return _0x3773d1(_0x36f183([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4512b8(_0x335835){const _0x522ce0=_0xa3f489();_0x412715[_0x522ce0]=_0x36f183([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x335835,_0x335835!=_0x36f183([0x56,0x61,0x6c,0x69,0x64])&&_0x13f385();}function _0xa3f489(){const _0xd9ca05=window[_0x36f183([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x36f183([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x36f183([0x6e,0x6f,0x77])]())[_0x36f183([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x36f183([0x2e]),'');let _0x475f4d=_0x36f183([0x52]);for(let _0x2875cf=0x0;_0x2875cf<_0xd9ca05[_0x36f183([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2875cf+=0x2){let _0x4964a4=window[_0x36f183([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd9ca05[_0x36f183([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2875cf,_0x2875cf+0x2));_0x4964a4>=_0xe9392e[_0x36f183([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4964a4-=_0xe9392e[_0x36f183([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x475f4d+=_0xe9392e[_0x4964a4];}return _0x475f4d;}function _0x19da41(){const _0x4821f7=_0x5117a9[_0x36f183([0x73,0x70,0x6c,0x69,0x74])](_0x36f183([0x2e]));if(0x3!=_0x4821f7[_0x36f183([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4eb2a8(_0x4821f7[0x1]);function _0x4eb2a8(_0x3cd523){const _0x469e9b=_0x3aef3d(_0x3cd523);return _0x469e9b&&_0x313df3()?_0x469e9b:null;function _0x313df3(){const _0x58dc3e=_0x469e9b[_0x36f183([0x6a,0x74,0x69])],_0x4522bc=window[_0x36f183([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58dc3e[_0x36f183([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58dc3e[_0x36f183([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x51c4e5={..._0x469e9b,[_0x36f183([0x6a,0x74,0x69])]:_0x58dc3e[_0x36f183([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x58dc3e[_0x36f183([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x51c4e5[_0x36f183([0x76,0x63])],_0x3e4979(_0x51c4e5)==_0x4522bc;}}}async function _0x31b67c(){let _0x5e31e8=!0x0;try{const _0x55fba9=_0x5117a9[_0x36f183([0x73,0x70,0x6c,0x69,0x74])](_0x36f183([0x2e])),[_0x48b50c,_0x3f1e1e,_0x29c637]=_0x55fba9;return _0x1c675d(_0x48b50c),await _0x3a889b(_0x48b50c,_0x3f1e1e,_0x29c637),_0x5e31e8;}catch{return!0x1;}function _0x1c675d(_0x54a109){const _0x307409=_0x3aef3d(_0x54a109);_0x307409&&_0x307409[_0x36f183([0x61,0x6c,0x67])]==_0x36f183([0x45,0x53,0x32,0x35,0x36])||(_0x5e31e8=!0x1);}async function _0x3a889b(_0x178b50,_0x4929f9,_0x11f346){const _0x473b61=window[_0x36f183([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x36f183([0x66,0x72,0x6f,0x6d])](_0x13c04f(_0x11f346),_0x38c6b0=>_0x38c6b0[_0x36f183([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x28c18f=new window[(_0x36f183([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x36f183([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x178b50+_0x36f183([0x2e])+_0x4929f9),_0x2f40df=window[_0x36f183([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x36f183([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2f40df)return;const _0x1295a3=await _0x2f40df[_0x36f183([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x36f183([0x6a,0x77,0x6b]),_0x5f5980,{[_0x36f183([0x6e,0x61,0x6d,0x65])]:_0x36f183([0x45,0x43,0x44,0x53,0x41]),[_0x36f183([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x36f183([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x36f183([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2f40df[_0x36f183([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x36f183([0x6e,0x61,0x6d,0x65])]:_0x36f183([0x45,0x43,0x44,0x53,0x41]),[_0x36f183([0x68,0x61,0x73,0x68])]:{[_0x36f183([0x6e,0x61,0x6d,0x65])]:_0x36f183([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1295a3,_0x473b61,_0x28c18f)||(_0x5e31e8=!0x1);}}function _0x3aef3d(_0x3261a8){return _0x3261a8[_0x36f183([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x36f183([0x65,0x79]))?JSON[_0x36f183([0x70,0x61,0x72,0x73,0x65])](_0x13c04f(_0x3261a8)):null;}function _0x13c04f(_0x2f4d84){return window[_0x36f183([0x61,0x74,0x6f,0x62])](_0x2f4d84[_0x36f183([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x36f183([0x2b]))[_0x36f183([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x36f183([0x2f])));}function _0x3e4979(_0x2e3359){let _0x14559e=0x1505;function _0x494683(_0x171c11){for(let _0x213134=0x0;_0x213134<_0x171c11[_0x36f183([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x213134++){const _0x4e991c=_0x171c11[_0x36f183([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x213134);_0x14559e=(_0x14559e<<0x5)+_0x14559e+_0x4e991c,_0x14559e&=_0x14559e;}}function _0x38846f(_0x4c6ef0){Array[_0x36f183([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4c6ef0)?_0x4c6ef0[_0x36f183([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x38846f):_0x4c6ef0&&typeof _0x4c6ef0==_0x36f183([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x36f183([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4c6ef0)[_0x36f183([0x73,0x6f,0x72,0x74])]()[_0x36f183([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x583c3a,_0x24cf47])=>{_0x494683(_0x583c3a),_0x38846f(_0x24cf47);}):_0x494683(window[_0x36f183([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4c6ef0));}return _0x38846f(_0x2e3359),_0x14559e>>>0x0;}function _0x59b4ca(_0x38021b){return _0x38021b[_0x36f183([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x36f183([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x36f183([0x30]));}function _0x5c9d26(_0x4a930e){return _0x4a930e[_0x36f183([0x73,0x70,0x6c,0x69,0x74])]('')[_0x36f183([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x36f183([0x6a,0x6f,0x69,0x6e])]('');}function _0x3773d1(_0xcc4944){return _0x412715[_0x36f183([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x36f183([0x68,0x61,0x73])](_0xcc4944);}function _0x52039a(_0x2efd4a){return _0x412715[_0x36f183([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x36f183([0x67,0x65,0x74])](_0x2efd4a);}function _0x44ecd1(){}function _0x36f183(_0x21a335){return _0x21a335['map'](_0x315480=>String['fromCharCode'](_0x315480))['join']('');}_0x4512b8(await _0x1b505a());}(this);}set['adapter'](_0x3e470c){if(this['_adapter'])throw new _0x1f082c('track-changes-adapter-already-set',this);this['_adapter']=_0x3e470c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4b5294=!0x1,toJSON:_0x36a3b5=!0x1}={}){const _0x2409f8=[];for(const _0x452a63 of this['_suggestions']['values']())_0x4b5294&&!_0x452a63['isInContent']||_0x2409f8['push'](_0x452a63);return _0x36a3b5?_0x2409f8['map'](_0x274377=>_0x274377['toJSON']()):_0x2409f8;}['getSuggestion'](_0xafa473){const _0x5290f5=this['_suggestions']['get'](_0xafa473);if(!_0x5290f5)throw new _0x1f082c('track-changes-suggestion-not-found',this);return _0x5290f5;}['hasSuggestion'](_0x12a024){return this['_suggestions']['has'](_0x12a024);}['addSuggestionData'](_0x53e145){const {authorId:_0x272fac,id:_0x59746e,originalSuggestionId:_0x44cd27,attributes:_0x1c625e}=_0x53e145,[_0x3b8de6,_0x2794bd]=_0x53e145['type']['split'](':'),_0x55449c=this['_suggestions']['get'](_0x59746e)||this['_createSuggestion'](_0x3b8de6,_0x2794bd,_0x59746e,_0x272fac,_0x1c625e,_0x44cd27);if(this['_addThreadToSuggestion'](_0x55449c),this['_checkSuggestionCorrectness'](_0x55449c,_0x3b8de6,_0x2794bd||null,_0x272fac),_0x55449c['createdAt']=_0x53e145['createdAt'],_0x55449c['_isDataLoaded']=!0x0,_0x1c625e&&_0x1c625e['@external']){const _0x3d9560=_0x1c625e['@external'],_0xbc06fe=this['_getExternalAuthor'](_0x3d9560['authorName']);_0x55449c['authoredAt']=_0x3d9560['createdAt'],_0x55449c['author']=_0xbc06fe,_0x55449c['isExternal']=!0x0;}else _0x55449c['authoredAt']=_0x53e145['createdAt'];switch(_0x53e145['data']&&(_0x55449c['data']=_0x53e145['data']),_0x53e145['attributes']&&(_0x55449c['attributes']=_0x53e145['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x55449c['_saved']=!0x0),this['_suggestionState']['get'](_0x55449c)){case'notReady':this['_suggestionState']['set'](_0x55449c,'dataReady');break;case'markerReady':_0x55449c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x55449c])),this['_refreshSuggestionsChain'](new Set([_0x55449c])),this['_suggestionState']['set'](_0x55449c,'ready'),this['fire']('suggestionLoaded',_0x55449c)):this['_suggestionState']['set'](_0x55449c,'removed');}return _0x55449c;}['acceptSuggestion'](_0x39a33d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x921a56 of _0x39a33d['getAllAdjacentSuggestions']())_0x921a56['accept']();});});}['discardSuggestion'](_0x33bf65){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4df74b of _0x33bf65['getAllAdjacentSuggestions']())_0x4df74b['discard']();});});}['enableCommand'](_0x2d2cf0,_0x2be678){const _0x18521e=this['editor']['commands']['get'](_0x2d2cf0);if(!_0x18521e)throw new _0x1f082c('track-changes-command-not-found',this,{'commandName':_0x2d2cf0});if(this['_enabledCommands']['has'](_0x18521e))throw new _0x1f082c('track-changes-enable-command-twice',this,{'commandName':_0x2d2cf0});this['_enabledCommands']['add'](_0x18521e),_0x2be678&&_0x18521e['on']('execute',(_0x14fbae,_0x1b405c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1b405c['length']>0x0&&_0x1b405c[_0x1b405c['length']-0x1]&&_0x1b405c[_0x1b405c['length']-0x1]['forceDefaultExecution']?_0x1b405c['pop']():(_0x14fbae['return']=_0x2be678((..._0x5a651a)=>_0x18521e['execute'](..._0x5a651a,{'forceDefaultExecution':!0x0}),..._0x1b405c),_0x14fbae['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x47b2b3){let _0x5d67b3,_0x165a95;const _0x373809=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5d67b3=_0x47b2b3();}catch(_0x60ccb8){_0x165a95=_0x60ccb8;}return _0x373809||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x165a95&&_0x1f082c['rethrowUnexpectedError'](_0x165a95,this),_0x5d67b3;}['markInsertion'](_0x1fa9fd,_0x1c5aab=null,_0x39de26={}){if(_0x1fa9fd['isCollapsed'])return null;const _0x51d58a=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x39de26['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2fe36b,meta:_0x2ae130}of this['_findSuggestions'](_0x1fa9fd,'insertion'))if(_0x2ae130['isOwn']){if(!_0x2ae130['isNextTo']){if(_0x2ae130['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x2fe36b,_0x39de26))continue;return _0x2fe36b;}if(sn(_0x2fe36b,_0x39de26))return _0x2fe36b;this['_breakSuggestionMarker'](_0x2fe36b,_0x1fa9fd['start'],_0x1fa9fd['end']);break;}if(_0x1c5aab==_0x2fe36b['subType']&&sn(_0x2fe36b,_0x39de26)){const _0x4fa86b=_0x2fe36b['getFirstRange']();return _0x4fa86b['start']['isEqual'](_0x1fa9fd['end'])?this['_setSuggestionRange'](_0x2fe36b,this['_model']['createRange'](_0x1fa9fd['start'],_0x4fa86b['end'])):this['_setSuggestionRange'](_0x2fe36b,this['_model']['createRange'](_0x4fa86b['start'],_0x1fa9fd['end'])),_0x2fe36b;}}const _0x216a70=_0x516af4(),_0x2fb134=_0x51d58a['id'],_0x23aae9=_0x1c5aab?'insertion:'+_0x1c5aab:'insertion',_0x175eaa=this['_setSuggestionData']({'id':_0x216a70,'type':_0x23aae9,'createdAt':new Date(),'authorId':_0x2fb134,'attributes':_0x39de26});return this['_addSuggestionMarker'](_0x23aae9,_0x216a70,_0x2fb134,_0x1fa9fd),_0x175eaa;}['markMultiRangeInsertion'](_0x292541,_0x166783='multi',_0x19b5dd={}){const _0x5f4521=this['editor']['plugins']['get']('Users')['me'],_0x58ce44=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x166783,'join');this['_trackingSessionId']&&(_0x19b5dd['trackingSessionId']=this['_trackingSessionId']);for(const _0x415ffb of this['getSuggestions']())if(_0x415ffb['author']['id']==_0x5f4521['id']&&'insertion'==_0x415ffb['type']&&_0x415ffb['subType']==_0x166783&&sn(_0x415ffb,_0x19b5dd)&&(_0x58ce44(_0x415ffb['getRanges'](),_0x292541)||_0x58ce44(_0x292541,_0x415ffb['getRanges']()))){for(const _0x34038a of _0x292541)_0x415ffb['addRange'](_0x34038a);return _0x415ffb;}for(const {suggestion:_0x2f43e7,meta:_0x3de676}of this['_findSuggestions'](_0x292541,'insertion')){if(!_0x3de676['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3de676['containsRangeInObject'])continue;if(!sn(_0x2f43e7,_0x19b5dd))continue;let _0x18c437=!0x0;for(const _0xf78e8f of _0x2f43e7['getRanges']())for(const _0x591150 of _0x292541)if(!_0xf78e8f['containsRange'](_0x591150)){_0x18c437=!0x1;break;}if(_0x18c437)return _0x2f43e7;}const _0x166106=_0x516af4(),_0x51f99c=_0x5f4521['id'],_0x33375d='insertion:'+_0x166783,_0x504ead=this['_setSuggestionData']({'id':_0x166106,'type':_0x33375d,'createdAt':new Date(),'authorId':_0x51f99c,'attributes':_0x19b5dd});for(const _0x165dbf of _0x292541)this['_addSuggestionMarker'](_0x33375d,_0x166106,_0x51f99c,_0x165dbf,T['getMultiRangeId']());return _0x504ead;}['markInlineFormat'](_0x4ef255,_0x45eccc,_0xe2cafd=null,_0x312fa0={}){if(_0xe2cafd=_0xe2cafd||Ht(_0x45eccc),_0x4ef255['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x312fa0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x82a3d3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe2cafd,'accept');return this['forceDefaultExecution'](()=>_0x82a3d3([_0x4ef255],_0x45eccc,_0x312fa0)),null;}const _0x596e22=this['editor']['plugins']['get']('Users')['me'],_0xc82e97=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x55477f,meta:_0x41a4d0}of this['_findSuggestions'](_0x4ef255,'insertion'))_0x41a4d0['isOwn']&&!_0x41a4d0['isInsideObject']&&_0xc82e97['push'](..._0x55477f['getRanges']());}const _0x3af48f=function(_0x45838f,_0x36fda6){const _0x5f43fb=[];for(const _0x8c9c8d of _0x36fda6){const _0x55205e=_0x45838f['getIntersection'](_0x8c9c8d);_0x55205e&&_0x5f43fb['push'](_0x55205e);}return _0x5f43fb;}(_0x4ef255,_0xc82e97),_0x3d1841=function(_0x4398c3,_0x2d27b3){const _0x4e2433=[_0x4398c3];for(const _0x2d3dd5 of _0x2d27b3){let _0x96eefc=0x0;for(;_0x96eefc<_0x4e2433['length'];){const _0x8f7132=_0x4e2433[_0x96eefc]['getDifference'](_0x2d3dd5);_0x4e2433['splice'](_0x96eefc,0x1,..._0x8f7132),_0x96eefc+=_0x8f7132['length'];}}return _0x4e2433;}(_0x4ef255,_0xc82e97);_0x3af48f['length']&&this['_model']['change'](()=>{for(const _0x5db095 of _0x3af48f){const _0x314ef8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe2cafd,'accept');this['forceDefaultExecution'](()=>_0x314ef8([_0x5db095],_0x45eccc,_0x312fa0));}});for(const _0x590aaa of _0x3d1841){let _0x303852=null,_0x1538aa=_0x590aaa['start'],_0x110079=_0x590aaa['end'];for(const {suggestion:_0x4ac42a,meta:_0x59d3c3}of this['_findSuggestions'](_0x590aaa,'formatInline')){if(!_0x59d3c3['isOwn'])continue;if(_0x4ac42a['subType']!=_0xe2cafd)continue;if(!sn(_0x4ac42a,_0x312fa0))continue;const _0x28a901=_0x4ac42a['getFirstRange']();if(_0x28a901['containsRange'](_0x590aaa,!0x0))return null;_0x1538aa=_0x1538aa['isBefore'](_0x28a901['start'])?_0x1538aa:_0x28a901['start'],_0x110079=_0x110079['isAfter'](_0x28a901['end'])?_0x110079:_0x28a901['end'],_0x303852?_0x28a901['start']['isBefore'](_0x303852['getFirstRange']()['start'])?(_0x303852['removeMarkers'](),_0x303852=_0x4ac42a):_0x4ac42a['removeMarkers']():_0x303852=_0x4ac42a;}const _0x24d6cf=this['_model']['createRange'](_0x1538aa,_0x110079);if(_0x303852)this['_setSuggestionRange'](_0x303852,_0x24d6cf);else{const _0x531d56=_0x516af4(),_0x4d8def=_0x596e22['id'];this['_setSuggestionData']({'id':_0x531d56,'type':'formatInline:'+_0xe2cafd,'data':_0x45eccc,'createdAt':new Date(),'authorId':_0x4d8def,'attributes':_0x312fa0}),this['_addSuggestionMarker']('formatInline:'+_0xe2cafd,_0x531d56,_0x4d8def,_0x24d6cf);}}return null;}['markBlockFormat'](_0xeb661c,_0x7023d2,_0x25b581=[],_0x2f0bc6=null,_0x30bd25={}){_0x7023d2['formatGroupId']||(_0x7023d2['formatGroupId']=_0x7023d2['commandName']),_0x7023d2['multipleBlocks']=_0xeb661c['is']('range'),_0x2f0bc6=_0x2f0bc6||Ht(_0x7023d2);const _0x8413ed=_0x25b581['map'](_0x3c2496=>tn(_0x3c2496,this['_model'])),_0x200ece=_0xeb661c['is']('range')?_0xeb661c:tn(_0xeb661c,this['_model']);if(this['_trackingSessionId']&&(_0x30bd25['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x20a301=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2f0bc6,'accept');return this['forceDefaultExecution'](()=>_0x20a301([_0x200ece],_0x7023d2,_0x30bd25)),null;}_0x8413ed['push'](_0x200ece);let _0x53352c=!0x0;for(const _0x47ca50 of _0x8413ed)if(!this['_rangeIsInLocalUserInsertion'](_0x47ca50)){_0x53352c=!0x1;break;}if(_0x53352c&&'always'!==this['_trackFormatChanges']){const _0x39ecac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2f0bc6,'accept');return this['forceDefaultExecution'](()=>_0x39ecac([_0x200ece],_0x7023d2,_0x30bd25)),null;}let _0x4e19c3=null,_0x1811e2=_0x200ece['start'],_0x459532=_0x200ece['end'];for(const {suggestion:_0x291c8c,meta:_0x5935aa}of this['_findSuggestions'](_0x200ece,'formatBlock')){if(!_0x5935aa['isOwn'])continue;if(_0x5935aa['isNextTo']||_0x5935aa['containsRangeInObject']||_0x5935aa['isInsideObject'])continue;if(_0x291c8c['data']['formatGroupId']!=_0x7023d2['formatGroupId'])continue;if(!sn(_0x291c8c,_0x30bd25))continue;const _0x3d45a4=_0x291c8c['getFirstRange']();if(_0x291c8c['subType']==_0x2f0bc6){if(_0x3d45a4['containsRange'](_0x200ece,!0x0))return null;_0x1811e2=_0x1811e2['isBefore'](_0x3d45a4['start'])?_0x1811e2:_0x3d45a4['start'],_0x459532=_0x459532['isAfter'](_0x3d45a4['end'])?_0x459532:_0x3d45a4['end'],_0x4e19c3?_0x3d45a4['start']['isBefore'](_0x4e19c3['getFirstRange']()['start'])?(_0x4e19c3['removeMarkers'](),_0x4e19c3=_0x291c8c):_0x291c8c['removeMarkers']():_0x4e19c3=_0x291c8c;}else{const _0x15e94d=_0x200ece['getIntersection'](_0x3d45a4);this['_cutOutSuggestionMarker'](_0x291c8c,_0x15e94d);}}const _0x32f925=this['editor']['plugins']['get']('Users')['me'],_0x3dc209=_0x516af4(),_0x16efcd=_0x32f925['id'];if(_0x4e19c3)return this['_setSuggestionRange'](_0x4e19c3,this['_model']['createRange'](_0x1811e2,_0x459532)),_0x4e19c3;{const _0x5f01fa=this['_setSuggestionData']({'id':_0x3dc209,'type':'formatBlock:'+_0x2f0bc6,'data':_0x7023d2,'createdAt':new Date(),'authorId':_0x16efcd,'attributes':_0x30bd25});return this['_addSuggestionMarker']('formatBlock:'+_0x2f0bc6,_0x3dc209,_0x16efcd,this['_model']['createRange'](_0x1811e2,_0x459532)),_0x5f01fa;}}['markMultiRangeBlockFormat'](_0x52fff4,_0x966ef8,_0x1c2cc3=[],_0x3382fe=null,_0xb79803={}){_0x966ef8['formatGroupId']||(_0x966ef8['formatGroupId']=_0x966ef8['commandName']);const _0x489c17=_0x52fff4[0x0];_0x966ef8['multipleBlocks']=_0x489c17['is']('range'),_0x3382fe=_0x3382fe||Ht(_0x966ef8);const _0x121bc3=_0x1c2cc3['map'](_0x1e5f29=>tn(_0x1e5f29,this['_model'])),_0x1e453a=_0x489c17['is']('range')?_0x52fff4:_0x52fff4['map'](_0x50b060=>tn(_0x50b060,this['_model']));if(this['_trackingSessionId']&&(_0xb79803['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x402f7a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3382fe,'accept');return this['forceDefaultExecution'](()=>_0x402f7a(_0x1e453a,_0x966ef8,_0xb79803)),null;}_0x121bc3['push'](..._0x1e453a);let _0xe987f7=!0x0;for(const _0x28bde3 of _0x121bc3)if(!this['_rangeIsInLocalUserInsertion'](_0x28bde3)){_0xe987f7=!0x1;break;}if(_0xe987f7&&'always'!==this['_trackFormatChanges']){const _0x4e2e53=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3382fe,'accept');return this['forceDefaultExecution'](()=>_0x4e2e53(_0x1e453a,_0x966ef8,_0xb79803)),null;}const _0x525454=this['editor']['plugins']['get']('Users')['me'];for(const _0x10f0a5 of this['getSuggestions']()){const _0x72a6c6=_0x10f0a5['data'];if(_0x10f0a5['author']['id']!=_0x525454['id'])continue;if('formatBlock'!=_0x10f0a5['type']||_0x72a6c6['formatGroupId']!=_0x966ef8['formatGroupId'])continue;if(!sn(_0x10f0a5,_0xb79803))continue;const _0x2149f3=_0x10f0a5['subType']==_0x3382fe;for(let _0x26311d=0x0;_0x26311d<_0x1e453a['length'];_0x26311d++){const _0x40cde5=_0x1e453a[_0x26311d];for(const _0xc3aea4 of _0x10f0a5['getMarkers']()){const _0xde8274=_0xc3aea4['getRange']();if(_0x40cde5['isEqual'](_0xde8274)){_0x2149f3?(_0x1e453a['splice'](_0x26311d,0x1),_0x26311d--):_0x10f0a5['removeMarker'](_0xc3aea4['name']);break;}}}}if(0x0==_0x1e453a['length'])return null;const _0x3db5d3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3382fe,'join');for(const _0x1d420b of this['getSuggestions']()){const _0x65a807=_0x1d420b['data'];if(_0x1d420b['author']['id']==_0x525454['id']&&('formatBlock'==_0x1d420b['type']&&_0x65a807['formatGroupId']==_0x966ef8['formatGroupId']&&_0x1d420b['subType']==_0x3382fe&&sn(_0x1d420b,_0xb79803)&&(_0x3db5d3(_0x1d420b['getRanges'](),_0x1e453a)||_0x3db5d3(_0x1e453a,_0x1d420b['getRanges']())))){for(const _0x21273e of _0x1e453a)_0x1d420b['addRange'](_0x21273e);return _0x1d420b;}}const _0x38a72d=_0x516af4(),_0x5dcc72=_0x525454['id'],_0x5e3d83='formatBlock:'+_0x3382fe,_0x5b066a=this['_setSuggestionData']({'id':_0x38a72d,'type':_0x5e3d83,'data':_0x966ef8,'createdAt':new Date(),'authorId':_0x5dcc72,'attributes':_0xb79803});for(const _0x490fcc of _0x1e453a)this['_addSuggestionMarker'](_0x5e3d83,_0x38a72d,_0x5dcc72,_0x490fcc,T['getMultiRangeId']());return _0x5b066a;}['markDeletion'](_0x7b5e7a,_0x1e6195=null,_0x517f5f={}){if(_0x7b5e7a['isCollapsed'])return null;const _0x17202d=this['editor']['plugins']['get']('Users')['me'],_0x537374=new _0x41726e(_0x7b5e7a['start'],_0x7b5e7a['end']);this['_trackingSessionId']&&(_0x517f5f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x15e19f,meta:_0x4fc1f7}of this['_findSuggestions'](_0x537374,'insertion'))if(_0x4fc1f7['isOwn']&&!_0x4fc1f7['isNextTo']){if(_0x15e19f['isMultiRange']){const _0x45b34c=_0x15e19f['getRanges']()['filter'](_0x455871=>'$graveyard'!=_0x455871['root']['rootName']);_0x45b34c['every'](_0x4f4f09=>_0x537374['containsRange'](_0x4f4f09,!0x0))&&_0x15e19f['discard']();if(_0x45b34c['some'](_0x142ce5=>_0x142ce5['containsRange'](_0x537374,!0x0))){const _0x8ca0d9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1e6195,'accept');return this['forceDefaultExecution'](()=>_0x8ca0d9([_0x537374],null,_0x517f5f)),null;}}else{const _0x14483d=_0x537374['getIntersection'](_0x15e19f['getFirstRange']());null!==_0x14483d&&_0x15e19f['_onDiscard']([_0x14483d],null,_0x517f5f);}}if(_0x537374['detach'](),_0x537374['isCollapsed']||'$graveyard'==_0x537374['root']['rootName'])return null;let _0x3f9353=null,_0x1706d8=_0x537374['start'],_0x46273a=_0x537374['end'];const _0x110e7c=this['_findSuggestions'](_0x537374,'deletion');for(const {suggestion:_0x2ac89e,meta:_0x3fbf40}of _0x110e7c){const _0x2e4291=this['_model']['createRange'](_0x1706d8,_0x46273a);if(_0x3fbf40['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3fbf40['containsRangeInObject']&&!_0x3fbf40['isInsideObject'])){if(_0x2ac89e['isMultiRange']){if(!sn(_0x2ac89e,_0x517f5f))continue;let _0x3a6112=!0x0;for(const _0x30dee7 of _0x2ac89e['getRanges']()){if(_0x30dee7['containsRange'](_0x2e4291,!0x0))return _0x2ac89e;_0x2e4291['containsRange'](_0x30dee7)||(_0x3a6112=!0x1);}_0x3a6112&&_0x2ac89e['discard']();}else{const _0x3e99dd=_0x2ac89e['getFirstRange']();if(_0x3e99dd['containsRange'](_0x2e4291,!0x0))return _0x2ac89e;if(!sn(_0x2ac89e,_0x517f5f)){_0x2e4291['containsRange'](_0x3e99dd)?_0x2ac89e['removeMarkers']():_0x3e99dd['containsPosition'](_0x1706d8)?_0x1706d8=_0x3e99dd['end']:_0x3e99dd['containsPosition'](_0x46273a)&&(_0x46273a=_0x3e99dd['start']);continue;}_0x1706d8=_0x1706d8['isBefore'](_0x3e99dd['start'])?_0x1706d8:_0x3e99dd['start'],_0x46273a=_0x46273a['isAfter'](_0x3e99dd['end'])?_0x46273a:_0x3e99dd['end'],_0x517f5f=Object['assign']({},_0x2ac89e['attributes']),_0x3f9353?_0x3e99dd['start']['isBefore'](_0x3f9353['getFirstRange']()['start'])?(_0x3f9353['removeMarkers'](),_0x3f9353=_0x2ac89e):_0x2ac89e['removeMarkers']():_0x3f9353=_0x2ac89e;}}}if(_0x3f9353)return this['_setSuggestionRange'](_0x3f9353,this['_model']['createRange'](_0x1706d8,_0x46273a)),_0x3f9353;{const _0x1aa59c=_0x516af4(),_0x46e537=this['_model']['createRange'](_0x1706d8,_0x46273a),_0x2a96b3=_0x17202d['id'],_0x1fb5ee=_0x1e6195?'deletion:'+_0x1e6195:'deletion',_0x12d55c=this['_setSuggestionData']({'id':_0x1aa59c,'type':_0x1fb5ee,'createdAt':new Date(),'authorId':_0x2a96b3,'attributes':_0x517f5f});return this['_addSuggestionMarker'](_0x1fb5ee,_0x1aa59c,_0x2a96b3,_0x46e537),_0x12d55c;}}['markMultiRangeDeletion'](_0x519cba,_0x4590d4='multi',_0x5b963d={}){const _0x5d266e=this['editor']['plugins']['get']('Users')['me'],_0x2ab80b=_0x519cba['map'](_0x551eee=>new _0x41726e(_0x551eee['start'],_0x551eee['end'])),_0x3e8c58=new Set();this['_trackingSessionId']&&(_0x5b963d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x20864f,meta:_0x48b39f}of this['_findSuggestions'](_0x2ab80b,'insertion'))_0x48b39f['isOwn']&&!_0x48b39f['isNextTo']&&_0x3e8c58['add'](_0x20864f);for(const _0x20df9c of _0x3e8c58)if(_0x20df9c['isMultiRange']){const _0xdbceae=_0x20df9c['getRanges']();(!_0x20df9c['attributes']||!_0x20df9c['attributes']['skipNestingCheck'])&&(_0xdbceae['every'](_0x50e214=>_0x2ab80b['some'](_0x5a46ef=>_0x5a46ef['containsRange'](_0x50e214,!0x0)))&&_0x20df9c['discard']());if(_0x2ab80b['every'](_0x30ef37=>_0xdbceae['some'](_0x5f08f6=>_0x5f08f6['containsRange'](_0x30ef37,!0x0)))){const _0xb274b8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4590d4,'accept');return this['forceDefaultExecution'](()=>_0xb274b8(_0x519cba,null,_0x5b963d)),null;}}else{const _0xb4586f=_0x20df9c['getFirstRange']();_0x2ab80b['some'](_0x32e332=>_0x32e332['containsRange'](_0xb4586f,!0x0))&&_0x20df9c['discard']();if(_0x2ab80b['every'](_0x1bf1c2=>_0xb4586f['containsRange'](_0x1bf1c2,!0x0))){const _0x242683=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4590d4,'accept');return this['forceDefaultExecution'](()=>_0x242683(_0x2ab80b,null,_0x5b963d)),null;}}const _0x50e462=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4590d4,'join');let _0x1e2504=null;for(const _0x147db1 of this['getSuggestions']())if(_0x147db1['author']['id']==_0x5d266e['id']&&_0x147db1['isInContent']&&'deletion'==_0x147db1['type']&&_0x147db1['subType']==_0x4590d4&&sn(_0x147db1,_0x5b963d)&&(_0x50e462(_0x147db1['getRanges'](),_0x2ab80b)||_0x50e462(_0x2ab80b,_0x147db1['getRanges']()))){if(_0x1e2504){if(_0x147db1['commentThread']&&_0x147db1['commentThread']['length'])continue;for(const _0x59e7fd of _0x147db1['getRanges']())_0x1e2504['isIntersectingWithRange'](_0x59e7fd)||_0x1e2504['addRange'](_0x59e7fd);_0x147db1['removeMarkers']();}else{_0x1e2504=_0x147db1;for(const _0x4f77f5 of _0x2ab80b)_0x147db1['isIntersectingWithRange'](_0x4f77f5)||_0x147db1['addRange'](_0x4f77f5);}}if(_0x1e2504)return _0x1e2504;_0x3e8c58['clear']();for(const {suggestion:_0xc3c45f,meta:_0x2413f5}of this['_findSuggestions'](_0x2ab80b,'deletion'))_0x2413f5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2413f5['containsRangeInObject']&&!_0x2413f5['isInsideObject'])&&sn(_0xc3c45f,_0x5b963d)&&_0x3e8c58['add'](_0xc3c45f);for(const _0x4bcf7e of _0x3e8c58){const _0x3f4832=_0x4bcf7e['getRanges']();if(!_0x5b963d||!_0x5b963d['skipNestingCheck']){if(_0x2ab80b['every'](_0x31929f=>_0x3f4832['some'](_0x2acc21=>_0x2acc21['containsRange'](_0x31929f,!0x0))))return _0x4bcf7e;}(!_0x4bcf7e['attributes']||!_0x4bcf7e['attributes']['skipNestingCheck'])&&(_0x3f4832['every'](_0x3322d5=>_0x2ab80b['some'](_0x212f8b=>_0x212f8b['containsRange'](_0x3322d5,!0x0)))&&_0x4bcf7e['discard']());}const _0x435180=_0x516af4(),_0x2f0420=_0x5d266e['id'],_0x57eed1='deletion:'+_0x4590d4,_0x568c10=this['_setSuggestionData']({'id':_0x435180,'type':_0x57eed1,'createdAt':new Date(),'authorId':_0x2f0420,'attributes':_0x5b963d});for(const _0x54fd38 of _0x2ab80b)_0x54fd38['detach'](),_0x54fd38['isCollapsed']||'$graveyard'==_0x54fd38['root']['rootName']||this['_addSuggestionMarker'](_0x57eed1,_0x435180,_0x2f0420,_0x54fd38,T['getMultiRangeId']());return _0x568c10;}['markAttributeChange'](_0x38b5e,_0x440278,_0x2aaee7,_0x125b43,_0xcb5817){if(_0x38b5e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4cd90f=this['editor']['plugins']['get']('Users')['me']['id'],_0x18934e=Array['from'](this['_suggestions']['values']())['filter'](_0x4f4ea3=>'attribute'==_0x4f4ea3['type']&&_0x4f4ea3['data']['key']==_0x440278&&_0x4f4ea3['isIntersectingWithRange'](_0x38b5e));if(this['_trackingSessionId']&&(_0xcb5817['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4f6d6a=this['_findSuggestions'](_0x38b5e,'insertion')['filter'](({meta:_0x17567d})=>_0x17567d['isOwn']&&!_0x17567d['isInsideObject']&&!_0x17567d['isNextTo'])['map'](({suggestion:_0x133372})=>_0x133372);_0x18934e['unshift'](..._0x4f6d6a);}const _0x1872f9=new Map([[_0x38b5e,_0x2aaee7]]);for(const _0x25ce6a of _0x18934e){const _0x25f081='attribute'==_0x25ce6a['type']?_0x25ce6a['data']['oldValue']:void 0x0,_0x6ac52=_0x25ce6a['getFirstRange'](),_0x27bd74=Array['from'](_0x1872f9['keys']())['find'](_0x482b67=>_0x482b67['isIntersecting'](_0x6ac52));if(!_0x27bd74)continue;const _0x3369d1=_0x27bd74['getDifference'](_0x6ac52);this['_isBlockAttribute'](_0x440278)&&'insertion'==_0x25ce6a['type']&&0x0!=_0x3369d1['length']||(_0x1872f9['delete'](_0x27bd74),_0x3369d1['forEach'](_0x4c1222=>{_0x1872f9['set'](_0x4c1222,_0x2aaee7);}),'insertion'!=_0x25ce6a['type']&&_0x25f081!=_0x125b43&&_0x1872f9['set'](_0x27bd74['getIntersection'](_0x6ac52),_0x25f081));}const _0xc404ca=[];for(const [_0x104402,_0x487a34]of _0x1872f9){const _0x35fa8c=_0x516af4(),_0x55cc4b={'key':_0x440278,'oldValue':_0x487a34,'newValue':_0x125b43};_0x440278['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':_0x440278});const _0x1a34ce=('attribute:'+(_0x440278+'|'+Ht({'newValue':_0x125b43})))['substring'](0x0,0x3c),_0x1c2052=this['_setSuggestionData']({'id':_0x35fa8c,'type':_0x1a34ce,'data':_0x55cc4b,'createdAt':new Date(),'authorId':_0x4cd90f,'attributes':_0xcb5817});_0xc404ca['push'](_0x1c2052),this['_addSuggestionMarker'](_0x1a34ce,_0x35fa8c,_0x4cd90f,_0x104402);}return _0xc404ca;}['enableDefaultAttributesIntegration'](_0x27a126){this['enableCommand'](_0x27a126,(_0x4c81fa,..._0x1c5e86)=>{this['recordAttributeChanges'](()=>{_0x4c81fa(..._0x1c5e86);});});}['registerBlockAttribute'](_0x431fe9){this['editor']['plugins']['get'](_0x4c75b8)['registerBlockAttribute'](_0x431fe9);}['registerInlineAttribute'](_0x8f0bdc){this['editor']['plugins']['get'](_0x4c75b8)['registerInlineAttribute'](_0x8f0bdc);}['startTrackingSession'](_0x21d66d){return this['_trackingSessionId']=void 0x0!==_0x21d66d?_0x21d66d:_0x516af4(),this['_trackingSessionId'];}['_getAttributeKey'](_0x219ffc){return'attribute'==_0x219ffc['type']?_0x219ffc['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x366a62){if(0x0==_0x366a62['length'])return;const _0x16d884=this['editor'],_0x1ef635=_0x16d884['plugins']['get'](_0x56ed2f),_0x4c32f2=[];_0x16d884['model']['change'](_0x3462eb=>{for(let _0xd76150=0x0;_0xd76150<_0x366a62['length'];_0xd76150++){const _0x55b4e1=_0x366a62[_0xd76150];if(_0x55b4e1['baseVersion']=_0x16d884['model']['document']['version'],_0x55b4e1['isDocumentOperation']=!0x0,_0x1ef635['isMarkedRemoveOperation'](_0x55b4e1)){const _0x78b6c5=_0x5bcc2c(_0x55b4e1['newRange'],_0x16d884['model']);_0x4c32f2['unshift'](_0x41726e['fromRange'](_0x78b6c5));}else switch(_0x55b4e1['type']){case'rename':{const _0x27f46d=_0x55b4e1['oldName'],_0x407b68=_0x55b4e1['newName'];if(_0x27f46d==_0x407b68)break;_0x3462eb['batch']['addOperation'](_0x55b4e1),_0x16d884['model']['applyOperation'](_0x55b4e1);const _0x3383be='$elementName',_0x556109=_0x55b4e1['position'],_0x87cc28=_0x16d884['model']['createRange'](_0x556109,_0x16d884['model']['createPositionAt'](_0x556109['nodeAfter'],'end'));this['markAttributeChange'](_0x87cc28,_0x3383be,_0x27f46d,_0x407b68,{'groupId':_0x516af4()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x500b93=_0x55b4e1['oldValue'],_0x3615a4=_0x55b4e1['newValue'];if(_0x500b93==_0x3615a4)break;_0x3462eb['batch']['addOperation'](_0x55b4e1),_0x16d884['model']['applyOperation'](_0x55b4e1);const _0x4e0c1d=_0x55b4e1['key'];if(!this['_isRegisteredAttribute'](_0x4e0c1d))break;const _0x417d2a=_0x5bcc2c(_0x55b4e1['range'],_0x16d884['model']);this['markAttributeChange'](_0x417d2a,_0x4e0c1d,_0x500b93,_0x3615a4,{'groupId':_0x516af4()});break;}case'insert':{_0x3462eb['batch']['addOperation'](_0x55b4e1),_0x16d884['model']['applyOperation'](_0x55b4e1);if(_0x366a62[_0xd76150+0x1]&&'move'==_0x366a62[_0xd76150+0x1]['type'])break;const _0x108241=_0x55b4e1['position'],_0x2d1a85=_0x55b4e1['howMany'],_0x1965eb=_0x5bcc2c(_0x16d884['model']['createRange'](_0x108241,_0x108241['getShiftedBy'](_0x2d1a85)),_0x16d884['model']);this['markInsertion'](_0x1965eb);break;}case'split':{_0x3462eb['batch']['addOperation'](_0x55b4e1),_0x16d884['model']['applyOperation'](_0x55b4e1);const _0x4f87ab=_0x55b4e1['splitPosition'],_0x43e172=_0x55b4e1['moveTargetPosition'];this['markInsertion'](_0x16d884['model']['createRange'](_0x4f87ab,_0x43e172));break;}case'move':case'remove':_0x3462eb['batch']['addOperation'](_0x55b4e1),_0x16d884['model']['applyOperation'](_0x55b4e1);}}for(const _0x5d72d0 of _0x4c32f2)_0x5d72d0['detach'](),this['markDeletion'](_0x5d72d0);});}['_setSuggestionRange'](_0x3ee8de,_0x10e750){const _0x42ee17=_0x3ee8de['getFirstMarker']();this['_model']['change'](_0x201059=>{_0x201059['updateMarker'](_0x42ee17,{'range':_0x10e750});});}['_addThreadToSuggestion'](_0x2424d4){const _0x25a1ae=_0x2424d4['id'],_0x3f4aa4=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x25a1ae)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3f4aa4,'threadId':_0x25a1ae,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5ea3f3=this['_commentsRepository']['getCommentThread'](_0x25a1ae);_0x5ea3f3['unbind']('isRemovable'),_0x5ea3f3['isRemovable']=!0x1,_0x2424d4['commentThread']=_0x5ea3f3;}['_checkSuggestionCorrectness'](_0x10d11d,_0x2287fc,_0x2551a2,_0x5c1a3b){if(_0x10d11d['type']!=_0x2287fc||_0x10d11d['subType']!=_0x2551a2||_0x10d11d['creator']['id']!=_0x5c1a3b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1f082c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x347298,_0x1808dc){const _0x3f0077=_0x347298['getFirstRange']();if(_0x1808dc['isEqual'](_0x3f0077))_0x347298['removeMarkers']();else{if(_0x3f0077['containsRange'](_0x1808dc)){const _0x3deb5a=this['_model']['createPositionAt'](_0x1808dc['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x347298,this['_model']['createRange'](_0x3f0077['start'],_0x3deb5a));const _0x96cb9c=_0x516af4(),_0x3060d4=_0x347298['creator']['id'],_0x59511c=_0x347298['type']+':'+_0x347298['subType'];this['_setSuggestionData']({'id':_0x96cb9c,'type':_0x59511c,'createdAt':new Date(),'authorId':_0x3060d4,'data':_0x347298['data'],'attributes':_0x347298['attributes']});const _0x6d0c28=this['_model']['createPositionAt'](_0x1808dc['end']['parent'],'after'),_0x17c282=this['_model']['createRange'](_0x6d0c28,_0x3f0077['end']);this['_addSuggestionMarker'](_0x59511c,_0x96cb9c,_0x3060d4,_0x17c282);}else{if(_0x3f0077['containsPosition'](_0x1808dc['start'])){const _0x2a4382=this['_model']['createPositionAt'](_0x1808dc['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x347298,this['_model']['createRange'](_0x3f0077['start'],_0x2a4382));}else{const _0x69f888=this['_model']['createPositionAt'](_0x1808dc['end']['parent'],'after');this['_setSuggestionRange'](_0x347298,this['_model']['createRange'](_0x69f888,_0x3f0077['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x596ceb){for(const {suggestion:_0x16a2ff,meta:_0x3883ff}of this['_findSuggestions'](_0x596ceb,'insertion')){if(!_0x3883ff['isOwn'])continue;const _0x15cb74=_0x16a2ff['getRanges']();for(const _0x5eae71 of _0x15cb74)if(!_0x596ceb['getDifference'](_0x5eae71)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x44e258){return this['editor']['plugins']['get']('Users')['getUser'](_0x44e258);}['_getExternalAuthor'](_0x5befe1){const _0x5c460e=this['editor']['plugins']['get']('Users'),_0x9029d=_0x183bae('external:'+_0x5befe1),_0x4600af=_0x5c460e['getUser'](_0x9029d);return _0x4600af||_0x5c460e['addUser']({'id':_0x9029d,'name':_0x5befe1});}['_createSuggestion'](_0x481aed,_0xa23df0,_0x5306c8,_0x485690,_0xb31c5d,_0x849613){const _0x49f615=this['_getAuthorFromId'](_0x485690);if(!_0x49f615)throw new _0x1f082c('track-changes-user-not-found',this,{'authorId':_0x485690,'suggestionId':_0x5306c8});const _0x299f29=this['_suggestionFactory']['buildSuggestion'](_0x481aed,_0xa23df0,_0x5306c8,_0x49f615,_0xb31c5d,_0x5dd60c=>{this['_updateSuggestionData'](_0x5306c8,{'attributes':_0x5dd60c});const _0x312705=this['getSuggestion'](_0x5306c8);this['_joinWithAdjacentSuggestions'](new Set([_0x312705])),this['_refreshSuggestionsChain'](new Set([_0x312705]));},_0x849613);return this['listenTo'](_0x299f29,'accept',()=>{this['_updateSuggestionData'](_0x5306c8,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x299f29,'discard',()=>{this['_updateSuggestionData'](_0x5306c8,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5306c8,_0x299f29),this['_suggestionState']['set'](_0x299f29,'notReady'),_0x299f29;}['_splitMarkerName'](_0x27c599){return _0x322d37(_0x27c599);}['_breakSuggestionMarker'](_0xeb4a29,_0x301954,_0x1b5182){const _0x3866e2=_0xeb4a29['getFirstRange'](),_0x38c2dc=_0x3866e2['start'],_0x1338b2=_0x3866e2['end'];this['_setSuggestionRange'](_0xeb4a29,this['_model']['createRange'](_0x38c2dc,_0x301954));const _0x4f60c4=_0x516af4(),_0x2df3a4=_0xeb4a29['creator']['id'],_0x48cb89=_0xeb4a29['type']+(_0xeb4a29['subType']?':'+_0xeb4a29['subType']:'');this['_setSuggestionData']({'id':_0x4f60c4,'type':_0x48cb89,'createdAt':new Date(),'authorId':_0x2df3a4,'originalSuggestionId':_0xeb4a29['_originalSuggestionId']||_0xeb4a29['id'],'attributes':_0xeb4a29['attributes'],'data':_0xeb4a29['data']});const _0x4140f0=this['_getAttributeKey'](_0xeb4a29);('formatBlock'==_0xeb4a29['type']||_0x4140f0&&this['_isBlockAttribute'](_0x4140f0))&&(_0x1b5182=this['_model']['createPositionBefore'](_0x1b5182['parent'])),this['_addSuggestionMarker'](_0x48cb89,_0x4f60c4,_0x2df3a4,this['_model']['createRange'](_0x1b5182,_0x1338b2));}['_findSuggestions'](_0x37d37e,_0x48c401=null){const _0x268daa=[],_0x47a9c8=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x37d37e)||(_0x37d37e=[_0x37d37e]);for(const _0x2ce7ac of this['getSuggestions']()){if(!_0x2ce7ac['isInContent'])continue;if(_0x48c401&&_0x2ce7ac['type']!=_0x48c401)continue;let _0x258574=!0x1;for(const _0x12e091 of _0x2ce7ac['getRanges']()){for(const _0x4be2fa of _0x37d37e){const _0x3a7373=_0x4be2fa['start']['isEqual'](_0x12e091['end'])||_0x4be2fa['end']['isEqual'](_0x12e091['start']);if(_0x3a7373||_0x4be2fa['getIntersection'](_0x12e091)){const _0x289f96=_0x4be2fa['containsRange'](_0x12e091)&&zt(this['_model']['schema'],_0x12e091['start'],_0x4be2fa),_0x41c179=_0x12e091['containsRange'](_0x4be2fa)&&zt(this['_model']['schema'],_0x4be2fa['start'],_0x12e091);_0x268daa['push']({'suggestion':_0x2ce7ac,'meta':{'isOwn':_0x47a9c8==_0x2ce7ac['author'],'isNextTo':_0x3a7373,'isInsideObject':_0x289f96,'containsRangeInObject':_0x41c179}}),_0x258574=!0x0;break;}}if(_0x258574)break;}}return _0x268daa;}['_addSuggestionMarker'](_0x3dd28a,_0x1b80a6,_0x12921f,_0x30d475,_0x306bb2){this['_model']['change'](_0x5db5fa=>{let _0x862e05='suggestion:'+_0x3dd28a+':'+_0x1b80a6+':'+_0x12921f;_0x306bb2&&(_0x862e05=_0x862e05+':'+_0x306bb2),_0x5db5fa['addMarker'](_0x862e05,{'range':_0x30d475,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x366b07){const _0x55fd15=_0x366b07['previous'],_0x560fa1=_0x366b07['next'];_0x366b07['previous']=null,_0x366b07['next']=null,null!=_0x55fd15&&_0x55fd15['next']==_0x366b07&&(_0x55fd15['next']=_0x560fa1),null!=_0x560fa1&&_0x560fa1['previous']==_0x366b07&&(_0x560fa1['previous']=_0x55fd15),'ready'==this['_suggestionState']['get'](_0x366b07)&&(this['_suggestionState']['set'](_0x366b07,'removed'),this['fire']('suggestionUnloaded',_0x366b07,_0x55fd15,_0x560fa1));}['_setSuggestionData'](_0x3e1014){const _0x1fbd03=_0x3e1014['id'],_0x4ab96e=this['addSuggestionData'](_0x3e1014);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xc88bf9=this['editor']['plugins']['get']('PendingActions'),_0xf3e417=_0x4ab96e['hasComments'],_0x3350a9=_0x4ab96e['subType']?_0x4ab96e['type']+':'+_0x4ab96e['subType']:_0x4ab96e['type'],_0x1257e1=this['editor']['locale'],_0x98d548=_0xc88bf9['add'](o(_0x1257e1,'PENDING_ACTION_SUGGESTION')),_0x13b199={'id':_0x1fbd03,'type':_0x3350a9,'hasComments':_0xf3e417,'data':_0x3e1014['data']||null,'originalSuggestionId':_0x3e1014['originalSuggestionId']||null,'attributes':_0x4ab96e['attributes']};this['_adapter']['addSuggestion'](_0x13b199)['then'](_0xdc9755=>{_0x4ab96e['_saved']=!0x0,_0xc88bf9['remove'](_0x98d548),_0xdc9755&&_0xdc9755['createdAt']&&(this['_suggestions']['get'](_0x1fbd03)['createdAt']=_0xdc9755['createdAt']);})['catch'](_0x1edbc4=>{throw _0x4d122f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4ab96e['discard']();}),_0x4ab96e['stopListening'](),this['_suggestions']['delete'](_0x4ab96e['id']),this['_suggestionState']['delete'](_0x4ab96e),_0x1edbc4;});}return _0x4ab96e;}['_isBlockAttribute'](_0x5473b6){return this['editor']['plugins']['get'](_0x4c75b8)['isBlockAttribute'](_0x5473b6);}['_isInlineAttribute'](_0x4ed87e){return this['editor']['plugins']['get'](_0x4c75b8)['isInlineAttribute'](_0x4ed87e);}['_updateSuggestionData'](_0x32e7fc,_0x33364c){const _0x9dc148=this['editor']['plugins']['get']('PendingActions'),_0x4a6bcd=this['getSuggestion'](_0x32e7fc);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4a6bcd['_saved']){const _0x29b839=_0x9dc148['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x32e7fc,_0x33364c)['then'](()=>{_0x9dc148['remove'](_0x29b839);});}else _0x4a6bcd['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x32e7fc,_0x33364c);});}}['_getSuggestionData'](_0x8f249b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1f082c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x8f249b);}['_handleNewSuggestionMarker'](_0x2ee168){const {id:_0x226c8b,type:_0x177c16,subType:_0x275c50,authorId:_0x41bf99}=this['_splitMarkerName'](_0x2ee168),_0x70aee=this['_suggestions']['get'](_0x226c8b)||this['_createSuggestion'](_0x177c16,_0x275c50,_0x226c8b,_0x41bf99,{});switch(this['_checkSuggestionCorrectness'](_0x70aee,_0x177c16,_0x275c50,_0x41bf99),this['_suggestionState']['get'](_0x70aee)){case'notReady':this['_getSuggestionData'](_0x226c8b)['then'](_0x5146e2=>{let _0xa67d45=Promise['resolve']();_0x5146e2['hasComments']&&(_0xa67d45=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x226c8b})),_0xa67d45['then'](()=>{this['addSuggestionData'](_0x5146e2)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x70aee,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x226c8b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x70aee,'ready'),this['fire']('suggestionLoaded',_0x70aee);break;case'ready':this['fire']('suggestionChanged',_0x70aee);}return _0x70aee['addMarkerName'](_0x2ee168),_0x70aee;}['_refreshSuggestionsChain'](_0x46068d){const _0x97b0a4=Array['from'](_0x46068d),_0x47d8e4=_0x97b0a4['filter'](_0x2666ac=>'attribute'==_0x2666ac['type']);this['_refreshAttributeSuggestionsChain'](_0x47d8e4);const _0x25d3cc=_0x97b0a4['filter'](_0x9bc3=>!_0x9bc3['isMultiRange']&&'attribute'!=_0x9bc3['type']),_0x4ef67f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x555d90=>!_0x555d90['isMultiRange']&&'attribute'!=_0x555d90['type']),_0x34b08d=_0x4ef67f['filter'](_0x30b2c2=>!_0x46068d['has'](_0x30b2c2)),_0x3cae57=new Map(_0x4ef67f['map'](_0x58d051=>[_0x58d051,this['_suggestionFactory']['getSuggestionCallback'](_0x58d051['type'],_0x58d051['subType'],'chain')])),_0x2f243c=new Map(_0x4ef67f['map'](_0x2fc4bf=>[_0x2fc4bf,_0x2fc4bf['getFirstRange']()])),_0x4b067f=new Set(),_0x55f807=new Set();for(let _0x26bda5=0x0;_0x26bda5<_0x25d3cc['length'];_0x26bda5++)_0x394748(_0x25d3cc[_0x26bda5],_0x25d3cc,_0x26bda5+0x1);for(let _0xac88ef=0x0;_0xac88ef<_0x25d3cc['length'];_0xac88ef++)_0x394748(_0x25d3cc[_0xac88ef],_0x34b08d,0x0);const _0x2bb9fe=new Set();for(let _0x359fbe=0x0;_0x359fbe<_0x25d3cc['length'];_0x359fbe++){const _0x3c16dc=_0x25d3cc[_0x359fbe];!_0x55f807['has'](_0x3c16dc)&&_0x3c16dc['previous']&&(_0x2bb9fe['add'](_0x3c16dc['previous']),_0x3c16dc['previous']['next']===_0x3c16dc&&(_0x3c16dc['previous']['next']=null),_0x3c16dc['previous']=null),!_0x4b067f['has'](_0x3c16dc)&&_0x3c16dc['next']&&(_0x2bb9fe['add'](_0x3c16dc['next']),_0x3c16dc['next']['previous']===_0x3c16dc&&(_0x3c16dc['next']['previous']=null),_0x3c16dc['next']=null);}function _0x394748(_0x3bc6dd,_0x69122,_0x2f689b){for(let _0x93d7be=_0x2f689b;_0x93d7be<_0x69122['length'];_0x93d7be++){const _0x465e23=_0x1f2130(_0x3bc6dd,_0x69122[_0x93d7be]);_0x465e23&&(_0x465e23[0x0]['next']=_0x465e23[0x1],_0x465e23[0x1]['previous']=_0x465e23[0x0],_0x4b067f['add'](_0x465e23[0x0]),_0x55f807['add'](_0x465e23[0x1]));}}function _0x1f2130(_0x595ef2,_0x103be8){if(_0x595ef2['author']['id']!==_0x103be8['author']['id'])return null;const _0xe1bc80=_0x3cae57['get'](_0x595ef2)(_0x595ef2,_0x103be8,_0x2f243c['get'](_0x595ef2),_0x2f243c['get'](_0x103be8));if(!_0xe1bc80)return null;return _0x3cae57['get'](_0x103be8)(_0x595ef2,_0x103be8,_0x2f243c['get'](_0x595ef2),_0x2f243c['get'](_0x103be8))?_0xe1bc80[0x1]['commentThread']&&_0xe1bc80[0x1]['commentThread']['length']?null:_0xe1bc80:null;}_0x2bb9fe['size']&&this['_refreshSuggestionsChain'](_0x2bb9fe);}['_refreshAttributeSuggestionsChain'](_0x25e1c5){if(0x0==_0x25e1c5['length'])return;const _0x28bd60=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11454e=>'attribute'==_0x11454e['type']&&_0x11454e['_isDataLoaded']),_0x25811a=[],_0x11a4a4=new Map();for(const _0x20fa5b of _0x28bd60){const _0x4ee006=_0x183bae(_0x20fa5b['attributes']);_0x11a4a4['has'](_0x4ee006)||(_0x11a4a4['set'](_0x4ee006,_0x25811a['length']),_0x25811a['push']([]));const _0x2c9e1b=_0x11a4a4['get'](_0x4ee006);_0x25811a[_0x2c9e1b]['push'](_0x20fa5b);}!(function(){_0x25811a['sort']((_0x1e81f3,_0x346a23)=>{const _0xe01324=_0x1e81f3[0x0]['createdAt'],_0x3aa7f3=_0x346a23[0x0]['createdAt'];return _0xe01324==_0x3aa7f3?_0x1e81f3[0x0]['attributes']['groupId']<_0x346a23[0x0]['attributes']['groupId']?-0x1:0x1:_0xe01324<_0x3aa7f3?-0x1:0x1;});for(const _0x4f6972 of _0x25811a)_0x4f6972['sort']((_0x579aab,_0x562905)=>_0x579aab['id']<_0x562905['id']?-0x1:0x1);}());for(let _0x3f1fab=0x0;_0x3f1fab<_0x25811a['length'];_0x3f1fab++){if(0x0==_0x25811a[_0x3f1fab]['length'])continue;const _0x203f49=[];for(let _0x1f91c1=_0x3f1fab+0x1;_0x1f91c1<_0x25811a['length'];_0x1f91c1++)0x0!=_0x25811a[_0x1f91c1]['length']&&_0x7ea8fd(_0x25811a[_0x3f1fab],_0x25811a[_0x1f91c1])&&_0x203f49['push'](_0x1f91c1);for(const _0x363d87 of _0x203f49)_0x25811a[_0x3f1fab]=_0x25811a[_0x3f1fab]['concat'](_0x25811a[_0x363d87]),_0x25811a[_0x363d87]=[];}for(const _0x5e5d49 of _0x25811a)for(let _0x477258=0x0;_0x477258<_0x5e5d49['length'];_0x477258++){const _0x4febcf=_0x5e5d49[_0x477258+0x1]||null;_0x5e5d49[_0x477258]['next']!==_0x4febcf&&(_0x5e5d49[_0x477258]['next']=_0x4febcf);}for(const _0x563d46 of _0x25811a)for(let _0x38d6ef=0x0;_0x38d6ef<_0x563d46['length'];_0x38d6ef++){const _0xd61d=_0x563d46[_0x38d6ef-0x1]||null;_0x563d46[_0x38d6ef]['previous']!==_0xd61d&&(_0x563d46[_0x38d6ef]['previous']=_0xd61d);}function _0x7ea8fd(_0x4e965f,_0x4c5719){if(_0x4e965f[0x0]['attributes']['groupId']!==_0x4c5719[0x0]['attributes']['groupId']&&_0x4e965f[0x0]['author']!==_0x4c5719[0x0]['author'])return!0x1;if(!function(_0x3b18c1,_0x368908){if(!_0x3b18c1['hasComments']&&!_0x368908['hasComments'])return!0x0;if(_0x3b18c1['hasComments']&&_0x368908['hasComments'])return!0x1;if(_0x3b18c1['hasComments']&&_0x368908['createdAt']<_0x3b18c1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x368908['hasComments']&&_0x3b18c1['createdAt']<_0x368908['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4e965f[0x0],_0x4c5719[0x0]))return!0x1;const _0x2bdb46=Jt(_0x4e965f[0x0]['attributes'],['groupId','trackingSessionId']),_0x4c1a45=Jt(_0x4c5719[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x594055(_0x2bdb46,_0x4c1a45))return!0x1;if(_0x4e965f[0x0]['attributes']['groupId']==_0x4c5719[0x0]['attributes']['groupId'])return!0x0;if(_0x4e965f[0x0]['attributes']['trackingSessionId']!==_0x4c5719[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4e965f['every'](_0x626a71=>_0x4c5719['some'](_0x23a54e=>_0x626a71['getFirstRange']()['isEqual'](_0x23a54e['getFirstRange']())))&&_0x4c5719['every'](_0x23c0da=>_0x4e965f['some'](_0x351a12=>_0x23c0da['getFirstRange']()['isEqual'](_0x351a12['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x431ea6){const _0x395c8e=Array['from'](_0x431ea6),_0x2aac36=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3bc6e8=_0x2aac36['filter'](_0xb8f3ac=>!_0x431ea6['has'](_0xb8f3ac)),_0x345cf0=new Map(_0x395c8e['map'](_0xc631ee=>[_0xc631ee,this['_suggestionFactory']['getSuggestionCallback'](_0xc631ee['type'],_0xc631ee['subType'],'join')])),_0x589105=new Map(_0x2aac36['map'](_0x5261cc=>[_0x5261cc,_0x5261cc['getRanges']()]));for(let _0x114bde=0x0;_0x114bde<_0x395c8e['length'];_0x114bde++){if(_0x4b6285(this,_0x395c8e[_0x114bde],_0x395c8e,_0x114bde+0x1))return!0x0;}for(let _0x5c12ea=0x0;_0x5c12ea<_0x395c8e['length'];_0x5c12ea++){if(_0x4b6285(this,_0x395c8e[_0x5c12ea],_0x3bc6e8,0x0))return!0x0;}return!0x1;function _0x4b6285(_0x306c7c,_0x327934,_0x181652,_0x43fc34){for(let _0xf8f029=_0x43fc34;_0xf8f029<_0x181652['length'];_0xf8f029++){const _0x4aa9c7=_0x181652[_0xf8f029];if(_0x4aa9c7['type']!==_0x327934['type']||_0x4aa9c7['author']['id']!==_0x327934['author']['id']||_0x4aa9c7['subType']!==_0x327934['subType'])continue;if(!en(_0x327934,_0x4aa9c7))continue;if('attribute'==_0x327934['type']&&_0x327934['data']['oldValue']!=_0x4aa9c7['data']['oldValue'])continue;if('attribute'==_0x327934['type']&&_0x306c7c['_isBlockAttribute'](_0x327934['data']['key']))continue;if('formatBlock'==_0x327934['type']){const _0x245303=_0x306c7c['editor']['model'],_0x18b7fa=_0x327934['getContainedElement']();if(_0x18b7fa&&(_0x245303['schema']['isObject'](_0x18b7fa)||_0x245303['schema']['isLimit'](_0x18b7fa)))continue;}const _0x41052d=_0x345cf0['get'](_0x327934),_0x133c76=_0x589105['get'](_0x327934),_0x31128e=_0x589105['get'](_0x4aa9c7),_0x3f078d=_0x327934['commentThread']&&_0x327934['commentThread']['length'],_0x3fa1fd=_0x4aa9c7['commentThread']&&_0x4aa9c7['commentThread']['length'];if(!_0x3f078d&&_0x41052d(_0x31128e,_0x133c76))return _0x306c7c['_joinSuggestions'](_0x4aa9c7,_0x327934),_0x589105['delete'](_0x327934),!0x0;if(!_0x3fa1fd&&_0x41052d(_0x133c76,_0x31128e))return _0x306c7c['_joinSuggestions'](_0x327934,_0x4aa9c7),_0x589105['delete'](_0x4aa9c7),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4386b8,_0x5150f4){if(_0x4386b8['isMultiRange']){for(const _0xd6af34 of _0x5150f4['getRanges']())_0x4386b8['addRange'](_0xd6af34);}else{const _0x5a8326=_0x5150f4['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4386b8,this['_model']['createRange'](_0x4386b8['getFirstRange']()['start'],_0x5a8326));}_0x5150f4['removeMarkers']();}['_getMarkerAnnouncementText'](_0x30f435,_0x4cb777,_0x5a8547){const _0x1205bd=_0x30f435['startsWith']('format')||_0x30f435['startsWith']('attribute')?'FORMATTING':_0x30f435['toUpperCase']();return o(this['editor']['locale'],_0x4cb777+'_'+_0x1205bd+'_SUGGESTION_ANNOUNCEMENT',_0x5a8547);}['_initAriaMarkerChangeAnnouncements'](){const _0x2bb21f=this['editor'];if(!_0x2bb21f['ui'])return;const {ariaLiveAnnouncer:_0x2fe055}=_0x2bb21f['ui'];_0x5593fc(this['_model'],({left:_0x10a5d3,entered:_0xdab648})=>{for(const _0xdfea1b of _0x10a5d3){const {group:_0x4d4ea4,type:_0x135672}=this['_splitMarkerName'](_0xdfea1b['name']);if('suggestion'===_0x4d4ea4){_0x2fe055['announce'](this['_getMarkerAnnouncementText'](_0x135672,'LEAVE'));break;}}for(const _0x2b4708 of _0xdab648){const {group:_0x259d6a,type:_0x27ac00}=this['_splitMarkerName'](_0x2b4708['name']);if('suggestion'===_0x259d6a){_0x2fe055['announce'](this['_getMarkerAnnouncementText'](_0x27ac00,'ENTER',_0x2d9d88(_0x20efe5)));break;}}});}['_processAttributeChanges'](_0x68e5da){if(this['_recordAttributeSuggestions'])return!0x1;const _0xfe2246=this['editor'],_0x1e3534=_0xfe2246['model']['document']['differ']['getChanges']();if(0x0==_0x1e3534['length'])return!0x1;const _0x429139=[],_0x4803b7=_0x1e3534['filter'](_0x39055a=>'attribute'==_0x39055a['type']),_0x3427b4=_0x1e3534['filter'](_0x2e4671=>'insert'==_0x2e4671['type']&&'$text'!=_0x2e4671['name']),_0x28e8c6=_0x1e3534['filter'](_0x3a6393=>'remove'==_0x3a6393['type']&&'$text'!=_0x3a6393['name']);for(const _0xb7c5ad of _0x4803b7)_0x429139['push']({'key':_0xb7c5ad['attributeKey'],'newValue':_0xb7c5ad['attributeNewValue'],'oldValue':_0xb7c5ad['attributeOldValue'],'range':Zt(_0xb7c5ad['range'],_0xfe2246['model'])});for(const _0xb3aaa7 of _0x3427b4){const _0x4475df=_0x28e8c6['find'](_0x3ae871=>_0x3ae871['position']['isEqual'](_0xb3aaa7['position']));_0x4475df&&_0x429139['push']({'key':m,'newValue':_0xb3aaa7['name'],'oldValue':_0x4475df['name'],'range':_0xfe2246['model']['createRangeOn'](_0xb3aaa7['position']['nodeAfter'])});}return 0x0!=_0x429139['length']&&this['_reduceExistingSuggestions'](_0x68e5da,_0x429139);}['_processAttributeSuggestions'](_0x20cc2c){let _0x3f2cf6=!0x1;const _0x54efcb=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4b6b81=>_0x4b6b81['data']['newRange']&&_0x4b6b81['name']['startsWith']('suggestion:attribute:'));for(const _0x2f9f5b of _0x54efcb){const {subType:_0x451fa7,id:_0xa99a4d}=this['_splitMarkerName'](_0x2f9f5b['name']),_0x3bd327=_0x451fa7['split']('|')[0x0];for(const _0x4cbcc0 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4cbcc0['id']!=_0xa99a4d&&'attribute'==_0x4cbcc0['type']&&_0x4cbcc0['data']&&_0x4cbcc0['data']['key']==_0x3bd327&&_0x4cbcc0['getFirstRange']()['isIntersecting'](_0x2f9f5b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4cbcc0,_0x2f9f5b['data']['newRange'],_0x20cc2c),_0x3f2cf6=!0x0);}return _0x3f2cf6;}['recordAttributeChanges'](_0x5ab91a){this['_recordAttributeSuggestions']=!0x0,_0x5ab91a();}['_isRegisteredAttribute'](_0x2a0775){return this['editor']['plugins']['get'](_0x4c75b8)['isRegisteredAttribute'](_0x2a0775);}['_reduceExistingSuggestions'](_0x1714ab,_0xdf2dd6){if(0x0==_0xdf2dd6['length'])return!0x1;let _0xe71105=!0x1;for(const _0x5d0f4f of _0xdf2dd6){const _0x4a1d2a=this['_findSuggestions'](_0x5d0f4f['range'],'attribute')['filter'](_0x40d3b8=>!_0x40d3b8['meta']['isNextTo'])['map'](_0x579bc6=>_0x579bc6['suggestion']),_0x244186=_0x183bae({'newValue':_0x5d0f4f['newValue']});_0x4a1d2a['filter'](_0x502d15=>{const [_0x57b753,_0x46fbbc]=_0x502d15['subType']['split']('|');return _0x57b753==_0x5d0f4f['key']&&_0x46fbbc!=_0x244186;})['forEach'](_0x4c925b=>{this['_reduceSuggestionAttributeRange'](_0x4c925b,_0x5d0f4f['range'],_0x1714ab),_0xe71105=!0x0;});}return _0xe71105;}['_reduceSuggestionAttributeRange'](_0x7cdbdb,_0x2d0a2e,_0x3427b1){const _0x40d499=_0x7cdbdb['getFirstRange']()['getDifference'](_0x2d0a2e);0x0!==_0x40d499['length']?0x1!==_0x40d499['length']?this['_breakSuggestionMarker'](_0x7cdbdb,_0x2d0a2e['start'],_0x2d0a2e['end']):this['_setSuggestionRange'](_0x7cdbdb,_0x40d499[0x0]):_0x3427b1['removeMarker'](_0x7cdbdb['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xe3a6cd){this['_editor']=_0xe3a6cd,this['_model']=_0xe3a6cd['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xa675e9,_0x26a659,_0x48527f,_0x2ae86d,_0x1dc8d1,_0x434e2d,_0x307ffe){return new T(this['_model'],{'type':_0xa675e9,'subType':_0x26a659,'id':_0x48527f,'originalSuggestionId':_0x307ffe,'author':_0x2ae86d,'creator':_0x2ae86d,'attributes':_0x1dc8d1,'onAttributesChange':_0x434e2d,'onAccept':(..._0x43591d)=>this['getSuggestionCallback'](_0xa675e9,_0x26a659,'accept')(..._0x43591d),'onDiscard':(..._0xf38be8)=>this['getSuggestionCallback'](_0xa675e9,_0x26a659,'discard')(..._0xf38be8)});}['registerCustomCallback'](_0x11069e,_0x142cc0,_0x653df4,_0xdb6872){const _0x20e738=_0x11069e+':'+_0x142cc0+':'+_0x653df4;this['_customCallbacks']['set'](_0x20e738,_0xdb6872);}['getSuggestionCallback'](_0x5b1c5e,_0x3a3fe0,_0x257661){const _0x52c64c=_0x5b1c5e+':'+_0x3a3fe0+':'+_0x257661;return this['_customCallbacks']['get'](_0x52c64c)||this['_defaultCallbacks']['get'](_0x5b1c5e+':'+_0x257661);}['_registerDefaultCallbacks'](){const _0x3ee6f9=()=>!0x1,_0x2563ac=_0x15cc07=>{_0x15cc07['sort']((_0x1319cc,_0xa847e9)=>_0x1319cc['start']['isBefore'](_0xa847e9['start'])?0x1:-0x1),this['_model']['change'](_0xaf2084=>{for(const _0x192a76 of _0x15cc07){let _0x37adc1;_0x37adc1=_0x192a76['end']['isAtEnd']&&_0x192a76['end']['parent']==_0x192a76['start']['nodeAfter']?_0xaf2084['createSelection'](_0x192a76['start']['nodeAfter'],'on'):_0xaf2084['createSelection'](_0x192a76),this['_model']['deleteContent'](_0x37adc1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x11ac59=(_0x2f0268,_0x408b97)=>{_0x408b97&&this['_model']['change'](_0xafc569=>{const {commandName:_0x3466c5,commandParams:_0x1f88f6=[]}=_0x408b97,_0x121299=_0x2f0268['map'](_0x616b64=>(Kt(_0x616b64)&&(_0x616b64=this['_model']['createRange'](_0x616b64['end'])),_0x616b64))['filter'](_0x48ca37=>'$graveyard'!==_0x48ca37['root']['rootName']);if(_0x121299['length']<0x1)return;const _0x5ee5c2=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x750034=>_0x41726e['fromRange'](_0x750034));_0xafc569['setSelection'](_0x121299);for(const _0x51807b of this['_editor']['commands']['commands']())_0x51807b['refresh']();_0x1f88f6['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3466c5,..._0x1f88f6);const _0x77a872=_0x5ee5c2['filter'](_0x767877=>'$graveyard'!=_0x767877['root']['rootName']);_0x77a872['length']>0x0&&_0xafc569['setSelection'](_0x77a872);for(const _0x2a28a9 of _0x5ee5c2)_0x2a28a9['detach']();});},_0x5d12cf=(_0x24b0f9,_0x3b100c)=>0x1==_0x24b0f9['length']&&0x1==_0x3b100c['length']&&_0x24b0f9[0x0]['end']['isEqual'](_0x3b100c[0x0]['start']),_0x1cf876=(_0x1f97c1,_0x3be2b5,_0x56d98a,_0x37854e)=>nn(_0x1f97c1,_0x3be2b5,_0x56d98a,_0x37854e)?[_0x1f97c1,_0x3be2b5]:nn(_0x3be2b5,_0x1f97c1,_0x37854e,_0x56d98a)?[_0x3be2b5,_0x1f97c1]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3ee6f9),this['_defaultCallbacks']['set']('insertion:discard',_0x2563ac),this['_defaultCallbacks']['set']('insertion:join',_0x5d12cf),this['_defaultCallbacks']['set']('insertion:chain',_0x1cf876),this['_defaultCallbacks']['set']('deletion:accept',_0x2563ac),this['_defaultCallbacks']['set']('deletion:discard',_0x3ee6f9),this['_defaultCallbacks']['set']('deletion:join',_0x5d12cf),this['_defaultCallbacks']['set']('deletion:chain',_0x1cf876),this['_defaultCallbacks']['set']('formatInline:accept',_0x11ac59),this['_defaultCallbacks']['set']('formatInline:discard',_0x3ee6f9),this['_defaultCallbacks']['set']('formatInline:join',_0x5d12cf),this['_defaultCallbacks']['set']('formatInline:chain',_0x3ee6f9),this['_defaultCallbacks']['set']('formatBlock:accept',_0x11ac59),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3ee6f9),this['_defaultCallbacks']['set']('formatBlock:join',_0x5d12cf),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3ee6f9),this['_defaultCallbacks']['set']('attribute:accept',_0x3ee6f9),this['_defaultCallbacks']['set']('attribute:discard',(_0x3aba63,_0x2fa725)=>{if(!_0x2fa725)return;const _0x157b8f=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x564e24=>{if(_0x2fa725['key']==m)for(const _0x975b0a of _0x3aba63){const _0x1473fb=_0x975b0a['start']['nodeAfter'],_0x25cbd7=_0x2fa725['oldValue'];_0x564e24['rename'](_0x1473fb,_0x25cbd7);}else{if(_0x157b8f['_isBlockAttribute'](_0x2fa725['key'])){for(const _0x327b3f of _0x3aba63)void 0x0!==_0x2fa725['oldValue']?_0x564e24['setAttribute'](_0x2fa725['key'],_0x2fa725['oldValue'],_0x327b3f['start']['nodeAfter']):_0x564e24['removeAttribute'](_0x2fa725['key'],_0x327b3f['start']['nodeAfter']);}else{for(const _0x53edd6 of _0x3aba63)_0x2fa725['oldValue']?_0x564e24['setAttribute'](_0x2fa725['key'],_0x2fa725['oldValue'],_0x53edd6):_0x564e24['removeAttribute'](_0x2fa725['key'],_0x53edd6);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5d12cf);}}function zt(_0x248c14,_0x1af36a,_0x100740){for(const _0x50a524 of _0x1af36a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x50a524['root']==_0x50a524)return!0x1;if(!_0x100740['containsItem'](_0x50a524))return!0x1;if(_0x248c14['isObject'](_0x50a524)||_0x248c14['isLimit'](_0x50a524))return!0x0;}return!0x1;}function Kt(_0x59e706){return _0x59e706['end']['parent']==_0x59e706['start']['nodeAfter']&&_0x59e706['end']['isAtStart'];}function Wt(_0xef15ff,_0x38c038,_0x294369,_0x49ddb0){const _0x5b4012=_0x37a309=>!_0x37a309['item']['is']('$textProxy')&&!_0x49ddb0['isObject'](_0x37a309['item']),_0x570248=_0xef15ff['start']['getLastMatchingPosition'](_0x5b4012),_0x2d2c4c=_0xef15ff['end']['getLastMatchingPosition'](_0x5b4012,{'direction':'backward'});return(!_0xef15ff['start']['isEqual'](_0x570248)||!_0xef15ff['end']['isEqual'](_0x2d2c4c))&&(_0x570248['isBefore'](_0x2d2c4c)?_0x294369['updateMarker'](_0x38c038,{'range':_0x294369['createRange'](_0x570248,_0x2d2c4c)}):_0x294369['removeMarker'](_0x38c038),!0x0);}function Ht(_0xd2f3b3){return _0x183bae(_0xd2f3b3);}function Qt(_0x3c881f){const _0x25fabb=_0x3c881f['start']['nodeAfter'];return _0x25fabb&&_0x25fabb['is']('element');}function Xt(_0xb9c2dd){return Kt(_0xb9c2dd)||function(_0x4af64c){return _0x4af64c['start']['parent']==_0x4af64c['end']['nodeBefore']&&_0x4af64c['start']['isAtEnd'];}(_0xb9c2dd);}function Yt(_0x5d01db,_0x535a09){try{const _0x47eccc=_0x5d01db['getRange']();for(const _0x1a25e7 of _0x535a09)if(_0x5d01db!==_0x1a25e7&&_0x47eccc&&_0x47eccc['isIntersecting'](_0x1a25e7['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x271479,_0x10cfaa){return null==_0x271479['end']['nodeBefore']&&_0x271479['end']['parent']==_0x271479['start']['nodeAfter']?tn(_0x271479['start']['nodeAfter'],_0x10cfaa):_0x271479;}function tn(_0x3c04b8,_0x48f639){const _0x393217=_0x48f639['schema']['isObject'](_0x3c04b8)||_0x48f639['schema']['isSelectable'](_0x3c04b8);return _0x48f639['createRange'](_0x48f639['createPositionAt'](_0x3c04b8,'before'),_0x393217?_0x48f639['createPositionAfter'](_0x3c04b8):_0x48f639['createPositionAt'](_0x3c04b8,'end'));}function nn(_0x3899f9,_0x422541,_0x540895,_0x1c79af){return!!en(_0x3899f9,_0x422541)&&_0x540895['end']['isEqual'](_0x1c79af['start']);}function en(_0x3dcf50,_0x5ee5dd){if(!_0x3dcf50['_isDataLoaded']||!_0x5ee5dd['_isDataLoaded'])return!0x1;const _0xd038c7=new Set(Object['keys'](_0x3dcf50['attributes'])),_0x1f7c67=new Set(Object['keys'](_0x5ee5dd['attributes']));if(_0xd038c7['delete']('groupId'),_0x1f7c67['delete']('groupId'),0x0==_0xd038c7['size']&&0x0==_0x1f7c67['size'])return!0x0;if(_0xd038c7['size']!=_0x1f7c67['size'])return!0x1;const _0x50738c={..._0x3dcf50['attributes']},_0x3260c7={..._0x5ee5dd['attributes']};return delete _0x50738c['groupId'],delete _0x3260c7['groupId'],JSON['stringify'](_0x50738c)==JSON['stringify'](_0x3260c7);}function sn(_0x5ddf04,_0x22d921){const _0x374bd7=on(_0x5ddf04['attributes']),_0xa00b85=on(_0x22d921);if(!_0x5ddf04['_isDataLoaded'])return!0x1;for(const _0x407c68 of Object['keys'](_0xa00b85))if(!_0x594055(_0x374bd7[_0x407c68],_0xa00b85[_0x407c68]))return!0x1;return!0x0;}function on(_0x2a0adf){const _0x4a3429=Object['assign']({},_0x2a0adf);return delete _0x4a3429['skipNestingCheck'],delete _0x4a3429['tablePasteChainId'],_0x4a3429;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x175894(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x71414e,_0x1437a4,_0x29c527,_0x4bff62){super(),this['model']=_0x1437a4,this['view']=_0x29c527,this['commentThreadController']=_0x4bff62,this['_editor']=_0x71414e,this['_acceptCommand']=_0x71414e['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x71414e['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3d11c3,_0x5ac9a0)=>_0x3d11c3||_0x5ac9a0),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x130e1c=>_0x130e1c&&this['_editor']['model']['canEditAt'](_0x1437a4['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x533a7e=>_0x533a7e&&this['_editor']['model']['canEditAt'](_0x1437a4['getRanges']())),this['_pendingAction']=null,_0x29c527['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x29c527,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x29c527,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x29c527,'change:isDirty',()=>{_0x29c527['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 _0x2fb16f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2fb16f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x155e7a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1fe145,_0xeb3414,_0x389c12,_0x4121b8){super(_0x1fe145),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5d7dfe(_0x1fe145,o(_0x1fe145,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xeb3414['authoredAt']),this['bind']('authoredAt')['to'](_0xeb3414),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',_0xeb3414,'authoredAt',this,'descriptionParts',(_0x2480f9,_0x47d42f,_0x366bd4)=>{const _0x413bb2=_0x366bd4['map'](_0x20991c=>ls(_0x20991c['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2480f9-0x1,_0xeb3414['author']['name'],_0x47d42f?_0x4121b8['formatDateTime'](_0x47d42f):'',new DOMParser()['parseFromString'](_0x413bb2,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1e90d3(),this['focusTracker']=new _0x5057d9(),this['keystrokes']=new _0x1f5b82(),this['focusCycler']=new _0x204ca9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3c4e60=>_0x3c4e60['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xeb3414,this['_localUser']=_0x389c12,this['_config']=_0x4121b8,_0x4121b8['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2849d3(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x436e89}=this['_config'];this['commentsListView']=new _0x436e89(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',_0x1c9817=>_0x1c9817+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xcbf7aa,_0x1df7ae)=>_0xcbf7aa||!!_0x1df7ae);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xdb8df4}=this['_config'],_0x5b08ac=new _0xdb8df4(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x20649e=_0x5b08ac['commentInputView'];return _0x5b08ac['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x20649e,'value',(_0xd574f,_0x4ddf8f,_0x18ba33)=>!!_0x18ba33||_0xd574f&&!_0x4ddf8f),_0x20649e['on']('submit',(_0x167cea,_0x26d12b)=>{this['fire']('addComment',_0x26d12b),_0x20649e['editor']['setData']('');}),_0x20649e['on']('cancel',()=>this['focus']()),_0x20649e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5b08ac;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x51ed6a,_0x278a55,_0x2b97c8,_0x285459){super(_0x51ed6a,_0x278a55,_0x2b97c8,_0x285459),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5ce28b=>_0x5ce28b&&_0x5ce28b[0x0]?_0x5ce28b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4e5a31,_0x5e1561)=>{let _0x440625='';for(const _0x579205 of _0x4e5a31)_0x440625+='<p>'+ls(_0x579205['content'],_0x579205['color'])+'</p>';return _0x5e1561?_0x440625:_0x5e1794(_0x440625,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x285459['SuggestionView'](_0x51ed6a,_0x278a55,{'formatDateTime':_0x285459['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x76f995=this['bindTemplate'],_0x65a4ef=[this['suggestionView']];return this['commentsListView']&&_0x65a4ef['push'](this['commentsListView']),this['commentThreadInputView']&&_0x65a4ef['push'](this['commentThreadInputView']),_0x65a4ef['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x76f995['if']('isActive','ck-suggestion-wrapper--active'),_0x76f995['to']('type',_0x213f61=>'ck-suggestion-'+_0x213f61),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':_0x76f995['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x65a4ef};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x155e7a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1a0783,_0x584d15,_0x300726){super(_0x1a0783),this['_model']=_0x584d15,this['_config']=_0x300726,this['set']('description',''),this['bind']('authoredAt')['to'](_0x584d15),this['acceptButton']=this['_createButton'](o(_0x1a0783,'Accept\x20suggestion'),_0x5ce04c,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1a0783,'Discard\x20suggestion'),_0x2d3e05,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x32385c(_0x1a0783,_0x584d15['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1e90d3([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5057d9(),this['keystrokes']=new _0x1f5b82(),this['focusCycler']=new _0x204ca9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x577907=>_0x577907['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3d82ef=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3d82ef['innerHTML']=this['description'],this['on']('change:description',(_0x34387f,_0x4bb1ad,_0x30dd9b)=>{_0x3d82ef['innerHTML']=_0x30dd9b;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5e3ef2=this['bindTemplate'],_0x3d7975=[{'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':_0x5e3ef2['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5e3ef2['to']('authoredAt',_0xf920c2=>this['_config']['formatDateTime'](_0xf920c2))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x3d7975['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x3d7975}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3ce6da,_0x7ea35a,_0x2fd520,_0x3aee59,_0x4fbff1){const _0x11caa7=new _0x1fd04b(this['locale']);return _0x11caa7['set']({'label':_0x3ce6da,'icon':_0x7ea35a,'tooltip':!0x0,'tooltipPosition':_0x4fbff1}),_0x11caa7['extendTemplate']({'attributes':{'class':_0x2fd520}}),_0x11caa7['on']('execute',()=>{this['fire'](_0x3aee59,this['_model']['id']);}),_0x11caa7;}['_setupKeyboardNavigation'](){const _0xc84c5=this['element'];this['keystrokes']['listenTo'](_0xc84c5);for(const _0xa3e3c8 of this['focusables'])this['focusTracker']['add'](_0xa3e3c8['element']),this['keystrokes']['listenTo'](_0xa3e3c8['element']);this['keystrokes']['set']('enter',(_0x38f803,_0x3bd708)=>{_0xc84c5===_0x38f803['target']&&(this['focusCycler']['focusFirst'](),_0x3bd708());}),this['keystrokes']['set']('esc',(_0x1d9902,_0x45e271)=>{_0xc84c5!==_0x1d9902['target']&&(this['focus'](),_0x45e271());});}}class u extends _0x52da3d{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x4747e2,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x996363){super(_0x996363),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x58baea=this['editor']['config'];_0x58baea['define']('trackChanges.SuggestionThreadView',fe),_0x58baea['define']('trackChanges.SuggestionView',we),_0x58baea['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x58baea['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xefba51,_0x13e45f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x641a1e,_0x4a8fd7]of this['_handleControllerBuffer']){const _0x3d7553=this['_suggestionToController']['has'](_0x641a1e);_0x3d7553||_0x4a8fd7?_0x3d7553&&_0x4a8fd7&&this['_destroyController'](_0x641a1e):this['_initializeController'](_0x641a1e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xefba51,_0x13e45f);}['init'](){const _0x283ab1=this['editor'],_0x3a8fc5=_0x283ab1['plugins']['get']('TrackChangesEditing'),_0x1480a3=_0x283ab1['plugins']['get']('Annotations'),_0x4226a2=_0x283ab1['plugins']['get']('EditorAnnotations'),_0x15dfc7=_0x283ab1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4226a2['addSourceCollector'](()=>{const _0x5a756e=[];for(const [_0x3def46,_0x2fe8e7]of Array['from'](this['_suggestionToController'])){const _0x34c2ff=_0x3def46['getAllAdjacentSuggestions'](),_0x215720=[];for(const _0x209f6f of _0x34c2ff){if(!_0x209f6f['isInContent'])continue;if(_0x209f6f['isMultiRange']){_0x215720['push'](..._0x209f6f['getRanges']());continue;}const _0x49b802=_0x209f6f['getFirstRange']();if(_0x215720['length']>0x0){const _0x3c031b=_0x215720[0x0]['getJoined'](_0x49b802);if(_0x3c031b){_0x215720[0x0]=_0x3c031b;continue;}}_0x215720['push'](_0x49b802);}_0x5a756e['push']([_0x2fe8e7['view'],_0x215720]);}return _0x5a756e;}),this['listenTo'](_0x3a8fc5,'suggestionLoaded',(_0x4c731d,_0x5331cf)=>{this['listenTo'](_0x5331cf,'change:previous',(_0x44cadf,_0x4f1669,_0x2c0a99,_0x258ad9)=>{_0x5331cf['isInContent']&&(null==_0x2c0a99?(this['_updateController'](_0x258ad9['head']),this['_handleSuggestionControllerDelayed'](_0x5331cf,!0x1)):(this['_updateController'](_0x2c0a99['head']),null==_0x258ad9&&this['_handleSuggestionControllerDelayed'](_0x5331cf,!0x0)));}),null!==_0x5331cf['previous']?this['_updateController'](_0x5331cf['head']):this['_handleSuggestionControllerDelayed'](_0x5331cf,!0x1);}),this['listenTo'](_0x3a8fc5,'suggestionUnloaded',(_0x4ceeaf,_0x23893b,_0x26b66d)=>{this['stopListening'](_0x23893b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x23893b),this['_suggestionToController']['has'](_0x23893b)&&this['_destroyController'](_0x23893b),_0x26b66d&&this['_updateController'](_0x26b66d['head']);}),this['listenTo'](_0x3a8fc5,'suggestionChanged',(_0x2f2f9a,_0x550ad0)=>{this['_updateController'](_0x550ad0);}),this['listenTo'](_0x1480a3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x15dfc7,'addComment',(_0x223f48,{threadId:_0x2ed770,isFromAdapter:_0x364ee1})=>{if(_0x364ee1||!_0x3a8fc5['hasSuggestion'](_0x2ed770))return;const _0x23139d=_0x3a8fc5['getSuggestion'](_0x2ed770);this['_suggestionToController']['get'](_0x23139d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5e6258=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2c5ffa;for(const _0x575f07 in _0x5e6258){const _0x5577cb=_0x575f07,_0x665614=_0x5e6258[_0x5577cb];if('trackChangesLicenseKeyValid'==_0x665614||'trackChangesLicenseKeyInvalid'==_0x665614||'trackChangesLicenseKeyExpired'==_0x665614||'trackChangesLicenseKeyDomainLimit'==_0x665614||'trackChangesLicenseKeyNotAllowed'==_0x665614||'trackChangesLicenseKeyEvaluationLimit'==_0x665614||'trackChangesLicenseKeyUsageLimit'==_0x665614){delete _0x5e6258[_0x5577cb],_0x2c5ffa=_0x665614,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2c5ffa&&_0x5e6258['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2c5ffa&&_0x5e6258['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2c5ffa&&_0x5e6258['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2c5ffa&&_0x5e6258['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2c5ffa&&_0x5e6258['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2c5ffa&&_0x5e6258['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x27183e){const _0xd49c6=this['_suggestionToController']['get'](_0x27183e);if(!_0xd49c6)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0xd49c6['view'])||null;}['getSuggestionForAnnotation'](_0x58f2e2){const _0x21cf81=this['_viewToController']['get'](_0x58f2e2['innerView']);return _0x21cf81?_0x21cf81['model']:null;}['_refreshActiveMarkers'](){const _0x4e9648=this['editor']['plugins']['get']('Annotations'),_0x77c430=this['editor']['plugins']['get']('TrackChangesEditing'),_0x488cb3=Array['from'](_0x4e9648['activeAnnotations'],_0x5c660a=>_0x5c660a['innerView'])['filter'](_0x196869=>this['_viewToController']['has'](_0x196869)),_0x58caf5=[];for(const _0xa0f1b1 of _0x488cb3){const _0x4bcee5=this['_viewToController']['get'](_0xa0f1b1)['model']['getAllAdjacentSuggestions']();_0x58caf5['push'](..._0x4bcee5['reduce']((_0x5ab571,_0x236222)=>[..._0x5ab571,..._0x236222['getMarkerNames']()],[]));}_0x77c430['activeMarkers']=_0x58caf5;}['_addUIComponentsToFactory'](){const _0x3e2e5b=this['editor'],_0x17fc0a=_0x3e2e5b['locale'],_0x4ca730=o(_0x17fc0a,'Track\x20changes'),_0x5f2b8e=new _0x94190a([{'type':'switchbutton','model':new _0xf81959({'withText':!0x0,'isToggleable':!0x0,'label':_0x4ca730,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xf81959({'withText':!0x0,'label':o(_0x17fc0a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xf81959({'withText':!0x0,'label':o(_0x17fc0a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xf81959({'withText':!0x0,'label':o(_0x17fc0a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xf81959({'withText':!0x0,'label':o(_0x17fc0a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3e2e5b['plugins']['has']('TrackChangesPreview')&&_0x5f2b8e['addMany']([{'type':'separator'},{'type':'button','model':new _0xf81959({'withText':!0x0,'label':o(_0x17fc0a,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4ed3de of _0x5f2b8e)if(ke(_0x4ed3de)){const _0x5e20e5=_0x3e2e5b['commands']['get'](_0x4ed3de['model']['commandName']);_0x4ed3de['model']['bind']('isOn','isEnabled')['to'](_0x5e20e5,'value','isEnabled');}_0x3e2e5b['ui']['componentFactory']['add']('trackChanges',_0x4e6bd3=>this['_createToolbarButton'](_0x4e6bd3,_0x5f2b8e,_0x4ca730)),_0x3e2e5b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5c5e49=>this['_createMenuBarMenu'](_0x5c5e49,_0x5f2b8e,_0x4ca730));}['_createToolbarButton'](_0x5de2aa,_0x150a0b,_0x4cf94e){const _0x488c3f=_0x1fe6d3(_0x5de2aa,_0x1c0ba8),_0x23cb6a=this['editor']['commands']['get']('trackChanges');_0x488c3f['buttonView']['set']({'tooltip':_0x4cf94e,'label':_0x4cf94e,'icon':_0x16be2f}),_0x488c3f['buttonView']['bind']('isOn')['to'](_0x23cb6a,'value'),_0x488c3f['buttonView']['on']('execute',()=>{_0x23cb6a['execute'](),this['editor']['editing']['view']['focus']();}),_0x494d83(_0x488c3f,_0x150a0b,{'role':'menu'});const _0x417a12=[];for(const _0xd283f3 of _0x150a0b)ke(_0xd283f3)&&_0x417a12['push'](this['editor']['commands']['get'](_0xd283f3['model']['commandName']));const _0x104a6d=_0x488c3f['buttonView'];return _0x104a6d['actionView']['unbind']('isEnabled'),_0x104a6d['arrowView']['unbind']('isEnabled'),_0x104a6d['actionView']['bind']('isEnabled')['to'](_0x23cb6a,'isEnabled'),_0x104a6d['arrowView']['bind']('isEnabled')['toMany'](_0x417a12,'isEnabled',(..._0x2487c3)=>_0x2487c3['some'](_0x29f9ef=>_0x29f9ef)),_0x488c3f['on']('execute',_0x38b4a2=>{this['editor']['execute'](_0x38b4a2['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x488c3f;}['_createMenuBarMenu'](_0x3a436c,_0x2dc0f0,_0x3af3c6){const _0x20bbd9=new _0x12aca0(_0x3a436c),_0x5a860a=this['editor']['commands']['get']('trackChanges');_0x20bbd9['buttonView']['set']({'label':_0x3af3c6,'icon':_0x16be2f});const _0x45d7ac=new _0x577de1(_0x3a436c);for(const _0x41912b of _0x2dc0f0){if('separator'==_0x41912b['type']){_0x45d7ac['items']['add'](new _0x44b272(_0x3a436c));continue;}const _0x4ac23d=new _0x768159(_0x3a436c,_0x20bbd9),_0x2b7b43=new _0x5aefee(_0x3a436c),_0x392e11=_0x41912b['model'];_0x2b7b43['bind'](...Object['keys'](_0x392e11))['to'](_0x392e11),_0x2b7b43['delegate']('execute')['to'](_0x20bbd9),_0x2b7b43['on']('execute',()=>{this['editor']['execute'](_0x392e11['commandName']),this['editor']['editing']['view']['focus']();}),_0x4ac23d['children']['add'](_0x2b7b43),_0x45d7ac['items']['add'](_0x4ac23d);}return _0x20bbd9['bind']('isEnabled')['to'](_0x5a860a,'isEnabled'),_0x20bbd9['panelView']['children']['add'](_0x45d7ac),_0x20bbd9;}['_initializeController'](_0x451dda){const _0x9b22b1=this['editor'],_0x299c1c=_0x9b22b1['config'],_0x175782=_0x9b22b1['plugins']['get']('Annotations'),_0x1e3735=_0x9b22b1['plugins']['get']('CommentsRepository'),_0x38953d=_0x9b22b1['plugins']['get']('EditorAnnotations'),_0x58b65c=_0x9b22b1['plugins']['get'](_0x4747e2)['me'],_0x4f124a=_0x299c1c['get']('trackChanges')['SuggestionThreadView'],_0x50524c=_0x299c1c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x42d9ec,CommentThreadInputView:_0x2edf7a}=_0x9b22b1['plugins']['get']('CommentsUI');let _0xbe983,_0x64c50e,_0x4fa2e4;this['_annotationViews']['has'](_0x451dda['id'])?(_0x64c50e=this['_annotationViews']['get'](_0x451dda['id']),_0xbe983=_0x64c50e['mainView']):(_0xbe983=new _0x4f124a(_0x9b22b1['locale'],_0x451dda,_0x58b65c,{'disableComments':this['_disableComments'],'editorConfig':{..._0x299c1c['get']('comments.editorConfig'),'licenseKey':_0x299c1c['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x299c1c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x299c1c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x299c1c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x244384(_0x299c1c['get']('locale'),_0x9b22b1['locale']),'CommentView':_0x299c1c['get']('comments')['CommentView'],'CommentsListView':_0x42d9ec,'CommentThreadInputView':_0x2edf7a,'SuggestionView':_0x50524c}),_0xbe983['suggestionView']['acceptButton']['on']('execute',()=>{_0x9b22b1['editing']['view']['focus']();}),_0xbe983['suggestionView']['discardButton']['on']('execute',()=>{_0x9b22b1['editing']['view']['focus']();}),_0x64c50e=_0x175782['createAnnotationView'](this['editor']['locale'],_0xbe983),_0x64c50e['bind']('isDirty')['to'](_0xbe983,'isDirty'),_0x64c50e['bind']('length')['to'](_0xbe983),_0x64c50e['bind']('type')['to'](_0xbe983,'type',_0x3fc917=>'suggestion-'+_0x3fc917),_0xbe983['on']('escape',()=>{_0x4fa2e4['fire']('escape');}),this['_annotationViews']['set'](_0x451dda['id'],_0x64c50e));const _0x2a9a7d=_0x1e3735['createCommentThreadController'](_0x451dda['commentThread'],_0xbe983),_0x780eaa=new pe(_0x9b22b1,_0x451dda,_0xbe983,_0x2a9a7d),_0x27d514=_0x451dda['getAllAdjacentSuggestions']()['filter'](_0x59e3a6=>_0x59e3a6['isInContent']);_0xbe983['descriptionParts']=_0x9b22b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x27d514),this['_suggestionToController']['set'](_0x451dda,_0x780eaa),this['_viewToController']['set'](_0xbe983,_0x780eaa);const _0x213740=()=>{const _0x311fcc=[],_0x1e3dbb=_0x451dda['getAllAdjacentSuggestions']()['filter'](_0x162465=>_0x162465['isInContent']);for(const _0x510e6e of _0x1e3dbb)_0x311fcc['push'](..._0x510e6e['getMarkers']());return _0x1307b7(_0x9b22b1['editing'],_0x311fcc);};_0x4fa2e4=_0x175782['createAnnotation']({'view':_0x64c50e,'target':_0x213740,'type':()=>'suggestion-'+_0x780eaa['view']['type'],'isVisible':!!_0x213740()}),_0x1e3735['_bindAnnotationToEditors'](_0xbe983,_0x4fa2e4),_0x175782['add'](_0x4fa2e4),_0x38953d['registerAnnotation'](_0x4fa2e4);}['_destroyController'](_0x46af5a){const _0x240a2f=this['editor']['plugins']['get']('CommentsRepository'),_0x576953=this['editor']['plugins']['get']('Annotations'),_0x3ae957=this['_suggestionToController']['get'](_0x46af5a),_0x2a6b69=_0x3ae957['view'],_0x219b50=_0x576953['getByInnerView'](_0x2a6b69);_0x240a2f['_unbindEditors'](_0x2a6b69),_0x219b50&&_0x576953['remove'](_0x219b50),this['_suggestionToController']['delete'](_0x46af5a),this['_viewToController']['delete'](_0x2a6b69),_0x3ae957['destroy']();}['_updateController'](_0x138ad6){if(!_0x138ad6['isInContent']||!this['_suggestionToController']['has'](_0x138ad6))return;const _0x1b086c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x586f70=this['_suggestionToController']['get'](_0x138ad6),_0x108ca7=_0x138ad6['getAllAdjacentSuggestions']();_0x586f70['view']['descriptionParts']=_0x1b086c['descriptionFactory']['getDescriptions'](_0x108ca7);}['destroy'](){for(const _0xff0cb5 of this['_suggestionToController']['keys']())this['_destroyController'](_0xff0cb5);for(const _0x565188 of this['_annotationViews']['values']())_0x565188['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xc59c24){return'model'in _0xc59c24;}class Ne extends _0x52da3d{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4786f7){this['editor']['plugins']['get'](d)['adapter']=_0x4786f7;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2bcbb1){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2bcbb1);}['getSuggestions']({skipNotAttached:_0x1dea1c=!0x1,toJSON:_0x3a71f1=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x1dea1c,'toJSON':_0x3a71f1});}['getSuggestion'](_0x5e8203){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x5e8203);}}const p=['Pagination'];class re extends _0x52da3d{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2b6212=this['editor'];if(_0x2b6212['config']['define']('trackChangesData.editorCreator',_0x583563=>{const _0x143c3d=_0x2b6212['model']['document']['getRootNames']()['reduce']((_0xa99e62,_0x5781d)=>(_0xa99e62[_0x5781d]='',_0xa99e62),{});return _0x2b6212['constructor']['create'](_0x143c3d,_0x583563);}),'function'!=typeof _0x2b6212['config']['get']('trackChangesData')['editorCreator'])throw new _0x1f082c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x57d23d){return P(this['editor'],!0x0,_0x57d23d);}['getDataWithDiscardedSuggestions'](_0x331ebd){return P(this['editor'],!0x1,_0x331ebd);}}class Fe extends _0x52da3d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f1a63){function _0x6354fa(_0x495305){return _0x495305['map'](_0x103e26=>String['fromCharCode'](_0x103e26))['join']('');}super(_0x2f1a63),this['result']='end',_0x2f1a63[_0x6354fa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6354fa([0x76,0x69,0x65,0x77])][_0x6354fa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x6354fa([0x61,0x75,0x74,0x6f]),_0x2f1a63[_0x6354fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x6354fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x6354fa([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x6354fa([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x6354fa([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function De(_0x62fdbc){return void 0x0!==_0x62fdbc['getRootsAttributes'];}async function P(_0x216bbd,_0x2c525a,_0x19ffd9){const _0x2bd366=_0x2ff460(_0x216bbd,p);_0x2bd366['plugins']['push'](d,Fe),_0x2bd366['rootsAttributes']=De(_0x216bbd)?_0x216bbd['getRootsAttributes']():void 0x0;const _0x15b34e=document['createDocumentFragment'](),_0x40dc2b=_0x216bbd['config']['get']('trackChangesData')['editorCreator'],_0x191e14=await _0x40dc2b(_0x2bd366,()=>function(_0x377b70){const _0x100c5d=document['createElement']('div');return _0x377b70['appendChild'](_0x100c5d),_0x100c5d;}(_0x15b34e));!function(_0x4d3b4e,_0x275c7f){const _0x232917=_0x4d3b4e['model']['document']['getRootNames']()['reduce']((_0x35b47d,_0x12e1aa)=>(_0x35b47d[_0x12e1aa]=_0x4d3b4e['data']['get']({'rootName':_0x12e1aa}),_0x35b47d),{}),_0x5d14f1=_0x4d3b4e['plugins']['get']('Users')['users']['map'](_0x5dd639=>({'id':_0x5dd639['id'],'name':_0x5dd639['name']})),_0x2c8e4d=_0x4d3b4e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x361077=_0x4d3b4e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x435673=_0x275c7f['plugins']['get']('Users'),_0x46837d=_0x275c7f['plugins']['get']('TrackChangesEditing'),_0x4bd6dd=_0x275c7f['plugins']['get']('CommentsRepository');for(const _0x2bf602 of _0x4bd6dd['getCommentThreads']())_0x2bf602['remove']();for(const _0x221064 of _0x5d14f1)_0x435673['getUser'](_0x221064['id'])||_0x435673['addUser'](_0x221064);_0x435673['me']||_0x435673['useAnonymousUser']();for(const _0x33905a of _0x361077)_0x4bd6dd['addCommentThread'](_0x33905a);for(const _0x14b90d of _0x2c8e4d)_0x46837d['addSuggestionData'](_0x14b90d);_0x275c7f['data']['set'](_0x232917);}(_0x216bbd,_0x191e14),_0x191e14['execute'](_0x2c525a?'acceptAllSuggestions':'discardAllSuggestions');const _0x152da8=De(_0x191e14)?_0x191e14['getFullData'](_0x19ffd9):_0x191e14['data']['get'](_0x19ffd9);return await _0x191e14['destroy'](),_0x152da8;}class Me extends _0x155e7a{['options'];constructor(_0x1fe1d7,_0x378ca4){super(_0x1fe1d7),this['options']=_0x378ca4,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'](_0x5a5490,_0x248fb1){if(!this['element'])return;const _0x1c4273=[];for(const [_0x5f57aa,_0x51897d]of _0x5a5490){const _0x51b667=document['createElement']('div');_0x51b667['setAttribute']('data-ck-root-name',_0x5f57aa),_0x51b667['className']=_0x51897d['classes']+'\x20ck-track-changes-preview__root-container',_0x51b667['innerHTML']=_0x51897d['content'],_0x1c4273['push'](_0x51b667);}_0x248fb1(this['element'],_0x1c4273),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x5f02cd{constructor(_0x1c6671){super(_0x1c6671),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2fb27b=this['editor'],_0x7920e5=_0x2fb27b['locale'],_0x25ee50=_0x2fb27b['plugins']['get']('Dialog');let _0x18d805;const _0x417e04=function(_0x47fead){const _0x55dc54={};if('editables'in _0x47fead['ui']['view']){for(const [_0x3a0432,_0x596c84]of Object['entries'](_0x47fead['ui']['view']['editables']))_0x55dc54[_0x3a0432]=_0x596c84['element'];}else _0x55dc54[_0x47fead['model']['document']['getRootNames']()[0x0]]=_0x47fead['ui']['view']['editable']['element'];return _0x55dc54;}(_0x2fb27b),_0x11255f=function(_0xd72019){let _0x125cb5=0x0;for(const _0x285f1f of Object['values'](_0xd72019))_0x125cb5=Math['max'](_0x125cb5,_0x285f1f['getBoundingClientRect']()['width']);let _0x18ac08=0x0;for(const _0x51e86b of Object['values'](_0xd72019))_0x18ac08+=_0x51e86b['getBoundingClientRect']()['height'];const _0x5f02ef=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x16ba73=Math['min'](_0x18ac08,_0x5f02ef);return{'width':_0x125cb5,'height':_0x16ba73};}(_0x417e04);_0x25ee50['show']({'id':'finalContentPreview','title':o(_0x7920e5,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x7920e5,{'dialogRects':_0x11255f}),'onHide':()=>{_0x18d805['detachFromDom']();},'onShow':()=>{_0x2fb27b['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x39b409=>{const _0x566192=this['_standarizeRootsData'](_0x39b409,_0x2fb27b,_0x417e04);_0x25ee50['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x566192,_0x2fb27b['config']['get']('trackChanges.preview.renderFunction'));}),_0x18d805=new _0x4a105e(_0x7920e5,[_0x25ee50['view']]),_0x18d805['attachToDom'](),_0x18d805['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2fb27b['once']('destroy',()=>{_0x18d805['detachFromDom']();});const _0x5499ab=_0x25ee50['view']['headerView']['class'];_0x25ee50['view']['headerView']['class']=_0x5499ab?_0x5499ab+'\x20ck-reset_all':'ck-reset_all',_0x25ee50['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x25ee50['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x37715f=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5270c1=_0x37715f['previewMode'],_0x2b3b9d={};if('$labels'===_0x5270c1){for(const _0x272690 of _0x37715f['getMergeFieldsIds']())_0x2b3b9d[_0x272690]=_0x37715f['getLabel'](_0x272690)||_0x272690;}else{const _0x27a75d='$defaultValues'===_0x5270c1?_0x37715f['getDefaultValues']():_0x37715f['getDataSetValues'](_0x5270c1,!0x0);for(const _0x4b7cee of Object['entries'](_0x27a75d)){const [_0x17cfcc,_0x489fb9]=_0x4b7cee;_0x2b3b9d[_0x17cfcc]=null!==_0x489fb9?_0x489fb9:_0x37715f['getLabel'](_0x17cfcc)||_0x17cfcc;}}return{'mergeFieldsData':_0x2b3b9d};}['_standarizeRootsData'](_0xb345a5,_0x5b1414,_0xbcb12f){let _0x3483e7;if('string'==typeof _0xb345a5){const _0x43429c=_0x5b1414['model']['document']['getRootNames']()[0x0];_0x3483e7={[_0x43429c]:_0xb345a5};}else _0x3483e7=_0xb345a5;const _0x11e7cc=this['_fixMediaEmbeds'](_0x3483e7,_0x5b1414),_0x361785=function(_0x364cb0,_0x2c2a0b){for(const [_0x16cbc0,_0x2875c8]of _0x364cb0)_0x2875c8['classes']=_0x2c2a0b[_0x16cbc0]['classList']['value']['replace']('ck-focused','');return _0x364cb0;}(this['_sortRoots'](_0x5b1414)['reduce']((_0x30daf6,_0x218c60)=>(_0x30daf6['push']([_0x218c60,{'content':_0x11e7cc[_0x218c60],'classes':''}]),_0x30daf6),[]),_0xbcb12f);return _0x361785;}['_fixMediaEmbeds'](_0x5d2c79,_0x44867d){if(!_0x44867d['plugins']['has']('MediaEmbedEditing'))return _0x5d2c79;const _0x582751=_0x44867d['plugins']['get']('MediaEmbedEditing');for(const [_0x37af1b,_0x4190d9]of Object['entries'](_0x5d2c79)){const _0x2973b8=document['createElement']('div');_0x2973b8['innerHTML']=_0x4190d9,(_0x2973b8['querySelectorAll']('figure.media')['forEach'](_0x3e7be2=>{const _0x5d9f6d=_0x3e7be2['querySelector']('oembed');if(_0x5d9f6d){const _0x1ad515=_0x5d9f6d['getAttribute']('url');if(_0x1ad515){const _0xdaee53=_0x582751['registry']['getMediaViewElement'](new _0x11d383(_0x44867d['editing']['view']['document']),_0x1ad515,{'elementName':'','renderForEditingView':!0x0}),_0x4eb59d=document['createElement']('div');_0x4eb59d['classList']['add']('ck-media__wrapper'),_0xdaee53['render'](_0x4eb59d,_0x44867d['editing']['view']['domConverter']),_0x5d9f6d['replaceWith'](_0x4eb59d);}}}),_0x5d2c79[_0x37af1b]=_0x2973b8['innerHTML']);}return _0x5d2c79;}['_sortRoots'](_0x14e274){if(!function(_0x4242de){return void 0x0!==_0x4242de['getRootsAttributes'];}(_0x14e274))return _0x14e274['model']['document']['getRootNames']();const _0x282f38=[],_0x1995b=new Map();for(const _0x1faafd of _0x14e274['model']['document']['getRootNames']()){const _0x2690ca=_0x14e274['editing']['view']['getDomRoot'](_0x1faafd)['getClientRects']()['item'](0x0);_0x282f38['push'](_0x1faafd),_0x1995b['set'](_0x1faafd,_0x2690ca);}return _0x282f38['sort']((_0x4504b4,_0x30ed6f)=>{const _0x211eb7=_0x1995b['get'](_0x4504b4),_0x155397=_0x1995b['get'](_0x30ed6f);return _0x211eb7['y']-_0x155397['y']||_0x211eb7['x']-_0x155397['x'];}),_0x282f38;}}class Ue extends _0x52da3d{static get['requires'](){return[re,_0x56b2d6];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4c810c){super(_0x4c810c),_0x4c810c['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4c810c['config']['define']('trackChanges.preview.renderFunction',(_0xd98c27,_0x48f691)=>{for(const _0x58aff5 of _0x48f691)_0xd98c27['appendChild'](_0x58aff5);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,B as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x20920f,Plugin as _0x23bd0e,PendingActions as _0x208479}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2a6ed8,ObservableMixin as _0x1f772b,uid as _0x37bdeb,priorities as _0xa26190,insertToPriorityArray as _0x23e8f7,logWarning as _0x13ebd0,getEnvKeystrokeText as _0x4ee942,FocusTracker as _0x74d71a,KeystrokeHandler as _0x36c793,Collection as _0x295d83}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x32d0c2,IconCancel as _0x15edd7,IconTrackChanges as _0x1b9096}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x396f07,View as _0x13410a,ViewCollection as _0x489b9b,FocusCycler as _0x438c59,UIModel as _0x672fbb,createDropdown as _0x1f36b8,SplitButtonView as _0x5d2312,addListToDropdown as _0x30a25f,MenuBarMenuView as _0x10e036,MenuBarMenuListView as _0x2275e4,ListSeparatorView as _0x3f09d9,MenuBarMenuListItemView as _0x32c228,MenuBarMenuListItemButtonView as _0xb46be7,BodyCollection as _0x265088,Dialog as _0x37357b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{SuggestionsConversion as _0x2194c1,Users as _0x186080,DocumentCompare as _0xfbb8b7,fixElementSuggestionRange as _0x486d5d,hashObject as _0x53ee05,splitSuggestionMarkerName as _0x272200,surroundingMarkersDetector as _0x362b3e,FOCUS_ANNOTATION_KEYSTROKE as _0x16c8ec,AriaDescriptionView as _0x2ea729,setupThreadKeyboardNavigation as _0x31bd0e,trimHtml as _0x36c3ff,UserView as _0x58d3ad,LateFocusButtonView as _0x1ad25a,getDateTimeFormatter as _0xb8a51f,getAllMarkersDomElementsSorted as _0x4d22bb,sanitizeEditorConfig as _0x2c43c7}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x283062,ModelLiveRange as _0x32b072,ModelLivePosition as _0xe5bdf6,ViewDowncastWriter as _0x52c638}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x1f55e7,set as _0x49fcd3,isEqual as _0x51d376,unset as _0x5e0c44,omit as Jt}from'es-toolkit/compat';import{Delete as _0x18bd52,Input as _0x43b60c}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x236abd}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x5bb1c3}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x20920f{['_enabledCommands'];constructor(_0x1bc343,_0x334af7){super(_0x1bc343),this['_enabledCommands']=_0x334af7,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 _0x4aa64f of this['editor']['commands']['commands']())_0x4aa64f['affectsData']&&!this['_enabledCommands']['has'](_0x4aa64f)&&_0x4aa64f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4668bb of this['editor']['commands']['commands']())_0x4668bb['affectsData']&&!this['_enabledCommands']['has'](_0x4668bb)&&_0x4668bb['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x20920f{['_suggestions'];constructor(_0x4799ae,_0x48b1b6){super(_0x4799ae),this['_suggestions']=_0x48b1b6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x58df3a){const _0x9243f0=this['_suggestions']['get'](_0x58df3a);if(!_0x9243f0)throw new _0x2a6ed8('track-changes-accept-suggestion-not-found',this);const _0x46463e=_0x9243f0['getRanges']();this['editor']['model']['canEditAt'](_0x46463e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x9243f0);}}class x extends _0x20920f{['_suggestions'];constructor(_0x543d90,_0x2e8bc4){super(_0x543d90),this['_suggestions']=_0x2e8bc4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4c45d0){const _0x2ff0b3=this['_suggestions']['get'](_0x4c45d0);if(!_0x2ff0b3)throw new _0x2a6ed8('track-changes-discard-suggestion-not-found',this);const _0x2d4ade=_0x2ff0b3['getRanges']();this['editor']['model']['canEditAt'](_0x2d4ade)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2ff0b3);}}function ls(_0x10c66c,_0x1f8b95){let _0x73aaf9='';return _0x73aaf9+=_0x10c66c['split']('*')['map']((_0x371821,_0x20d26d)=>_0x20d26d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x371821)+'</span>':rn(_0x371821))['join'](''),_0x1f8b95&&(_0x73aaf9+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1f8b95['value']+'\x22\x20title=\x22'+_0x1f8b95['title']+'\x22></span>'),_0x73aaf9;}function rn(_0x440d5c){const _0x104c06=document['createElement']('span');return _0x104c06['innerText']=_0x440d5c,_0x104c06['innerHTML'];}function ts(_0x2bd668){return _0x2bd668['sort']((_0x48c685,_0x3e1d2e)=>'attribute'===_0x48c685['type']&&'attribute'!==_0x3e1d2e['type']?-0x1:'attribute'!==_0x48c685['type']&&'attribute'===_0x3e1d2e['type']?0x1:'deletion'==_0x48c685['type']&&'deletion'!=_0x3e1d2e['type']?-0x1:'deletion'!=_0x48c685['type']&&'deletion'==_0x3e1d2e['type']?0x1:0x0);}function to(_0x105064,_0x358d3f){let _0x40d3d3,_0xcc17cf=0x0;const _0x559171=[],_0x33e0ce=_0x358d3f['schema'];for(;_0xcc17cf<_0x105064['length'];){const _0x284ca1=_0x105064[_0xcc17cf],_0x2b3813=_0x105064[_0xcc17cf+0x1];_0x40d3d3||(_0x40d3d3=_0x358d3f['createPositionBefore'](_0x284ca1)),cn(_0x358d3f,_0x284ca1,_0x2b3813)||(_0x559171['push'](_0x358d3f['createRange'](_0x40d3d3,_0x33e0ce['isObject'](_0x284ca1)?_0x358d3f['createPositionAfter'](_0x284ca1):_0x358d3f['createPositionAt'](_0x284ca1,'end'))),_0x40d3d3=null),_0xcc17cf++;}return _0x559171;}function cn(_0x5d6b37,_0x30bef6,_0x5f5a16){if(!_0x5f5a16)return!0x1;const _0x7fc4e6=_0x5d6b37['createPositionAfter'](_0x30bef6),_0x210172=_0x5d6b37['createPositionBefore'](_0x5f5a16);return _0x7fc4e6['isTouching'](_0x210172);}function rs(_0x22ec90,_0x4772a0,_0x200387){for(;_0x200387['length'];){const _0x33248e=_0x200387['splice'](0x0,0x64);_0x22ec90['change'](()=>{for(const _0x9eb934 of _0x33248e)_0x9eb934['isInContent']&&_0x4772a0['execute'](_0x9eb934['id']);});}}class M extends _0x20920f{['_command'];['_suggestions'];constructor(_0x1f0051,_0x4fe0e7,_0x44b539){super(_0x1f0051),this['_command']=_0x4fe0e7,this['_suggestions']=_0x44b539,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5ee30e=Array['from'](this['_suggestions']['values']())['some'](_0x577b83=>_0x577b83['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5ee30e;}['execute'](){const _0x2b4447=ts(Array['from'](this['_suggestions']['values']()));for(const _0x514e6c of _0x2b4447){const _0x4f92b7=_0x514e6c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4f92b7))return;}rs(this['editor']['model'],this['_command'],_0x2b4447);}}class R extends _0x20920f{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1893ae,_0x18f680,_0x3d099d){super(_0x1893ae),this['_command']=_0x18f680,this['_suggestions']=_0x3d099d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1c2854=this['editor']['model']['document']['selection'],_0x1b60b7=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2eb74f,_0x2bf935){const _0x4c14b6=Array['from'](_0x2eb74f['getRanges']()),_0x42064e=new Set();for(const _0x1afd52 of _0x2bf935)if(_0x1afd52['isInContent']){for(const _0x2d662c of _0x4c14b6)for(const _0x4e43f9 of _0x1afd52['getRanges']())(_0x2d662c['isIntersecting'](_0x4e43f9)||_0x2eb74f['isCollapsed']&&!_0x1afd52['isMultiRange']&&_0x1afd52['next']&&_0x4e43f9['end']['isTouching'](_0x2d662c['start']))&&_0x42064e['add'](_0x1afd52);}return _0x42064e;}(_0x1c2854,_0x1b60b7),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4f5684=ts(Array['from'](this['_selectedSuggestions']));for(const _0x870a3d of _0x4f5684){const _0x2ff92b=_0x870a3d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2ff92b))return;}rs(this['editor']['model'],this['_command'],_0x4f5684);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1f772b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4aa233,_0x3f8b06){super(),this['id']=_0x3f8b06['id'],this['type']=_0x3f8b06['type'],this['subType']=_0x3f8b06['subType']||null,this['author']=_0x3f8b06['author'],this['creator']=_0x3f8b06['creator']||_0x3f8b06['author'],this['isExternal']=Boolean(_0x3f8b06['attributes']&&_0x3f8b06['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x3f8b06['originalSuggestionId']||null,this['_model']=_0x4aa233,this['_onAccept']=_0x3f8b06['onAccept'],this['_onDiscard']=_0x3f8b06['onDiscard'],this['_onAttributesChange']=_0x3f8b06['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3f8b06['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x2f3380=this;for(;_0x2f3380['previous'];)_0x2f3380=_0x2f3380['previous'];return _0x2f3380;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x1fdc5e){this['_markerNames']['add'](_0x1fdc5e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x13aab5=>this['_model']['markers']['get'](_0x13aab5))['filter'](_0x54f0fd=>_0x54f0fd);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2b0ee5=>{for(const _0x1c92b3 of this['getMarkers']())_0x2b0ee5['removeMarker'](_0x1c92b3);}),this['_markerNames']['clear']();}['removeMarker'](_0x54603a){this['_model']['change'](_0x3bec43=>{_0x3bec43['removeMarker'](_0x54603a);}),this['_markerNames']['delete'](_0x54603a);}['addRange'](_0x36f7b7){const _0xd211d4='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0xd211d4),this['_model']['change'](_0x1913e5=>{_0x1913e5['addMarker'](_0xd211d4,{'range':_0x36f7b7,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4b2365){for(const _0x4d40a8 of this['getRanges']())if(_0x4d40a8['isIntersecting'](_0x4b2365))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x48a60c=>_0x48a60c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x26e0a5,_0x2635bb)=>[..._0x26e0a5,..._0x2635bb['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1d4fe1=this['getRanges']();if(0x1!=_0x1d4fe1['length'])return null;const _0x2ece62=_0x1d4fe1[0x0],_0x3518a3=_0x2ece62['start']['nodeAfter'],_0x346d4e=_0x2ece62['end']['nodeBefore'];return _0x3518a3 instanceof _0x283062?_0x3518a3!=_0x346d4e?null:_0x3518a3: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 _0xf59679=[];let _0x274cdd=this['head'];for(;_0x274cdd;)_0xf59679['push'](_0x274cdd),_0x274cdd=_0x274cdd['next'];return _0xf59679;}['setAttribute'](_0x937b80,_0x1e2863){const _0x267759=_0x1f55e7(this['attributes']);_0x49fcd3(_0x267759,_0x937b80,_0x1e2863),_0x51d376(_0x267759,this['attributes'])||(this['attributes']=_0x267759,this['_onAttributesChange'](_0x267759));}['removeAttribute'](_0x168e8c){const _0x143c60=_0x1f55e7(this['attributes']);_0x5e0c44(_0x143c60,_0x168e8c),_0x51d376(_0x143c60,this['attributes'])||(this['attributes']=_0x143c60,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 _0x37bdeb()['substr'](0x1,0x5);}}function o(_0x59574d,_0x2575ee,_0x27c3c3){const _0x132ab6=_0x59574d['t'],t=_0x59574d['t'];switch(_0x2575ee){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',_0x27c3c3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x27c3c3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x27c3c3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x27c3c3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x27c3c3);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',_0x27c3c3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x27c3c3);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',_0x27c3c3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x27c3c3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x27c3c3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x27c3c3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x27c3c3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x27c3c3);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x27c3c3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x27c3c3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x27c3c3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x27c3c3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x27c3c3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x27c3c3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x27c3c3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x27c3c3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x27c3c3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x27c3c3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x27c3c3);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x27c3c3);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'},_0x27c3c3);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x27c3c3);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x27c3c3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x27c3c3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x27c3c3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x27c3c3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x27c3c3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x27c3c3);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x27c3c3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x27c3c3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x27c3c3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x27c3c3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x27c3c3);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'},_0x27c3c3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x27c3c3);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'},_0x27c3c3);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'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'},_0x27c3c3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x27c3c3);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'},_0x27c3c3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x27c3c3);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'},_0x27c3c3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x27c3c3);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x27c3c3);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x27c3c3);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x27c3c3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x27c3c3);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'},_0x27c3c3);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x27c3c3);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x132ab6({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x27c3c3);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x132ab6({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x27c3c3);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x27c3c3);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'},_0x27c3c3);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'},_0x27c3c3);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'},_0x27c3c3);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2575ee;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x35914c,_0x229ed2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x35914c,this['_locale']=_0x229ed2;}['getDescriptions'](_0x2d260d){const _0x301257=[],_0x10c533=new Set(),_0x2a9329=new Set();for(let _0x4da111=0x0;_0x4da111<_0x2d260d['length'];_0x4da111++){const _0xbc6a68=_0x2d260d[_0x4da111];if(!_0xbc6a68['isInContent'])continue;const _0x1e90d8=this['_handleCustomCallbackDescription'](_0xbc6a68);if(_0x1e90d8){if(null!=_0xbc6a68['subType']){if(_0x10c533['has'](_0xbc6a68['subType']))continue;_0x10c533['add'](_0xbc6a68['subType']);}_0x301257['push'](_0x1e90d8);}else{if('attribute'==_0xbc6a68['type']){const _0xf69d4e=_0xbc6a68['data']['key'];if(_0x2a9329['has'](_0xf69d4e))continue;_0x2a9329['add'](_0xbc6a68['data']['key']),_0xf69d4e==m?this['_handleRenameSuggestionDescription'](_0x301257,_0xbc6a68):this['_handleAttributeSuggestionDescription'](_0x301257,_0xbc6a68);continue;}'insertion'!=_0xbc6a68['type']&&'deletion'!=_0xbc6a68['type']||this['_handleInsertRemoveSuggestionDescription'](_0x301257,_0xbc6a68,_0x2d260d[_0x4da111+0x1]);}}return this['_resolveDescriptionItems'](_0x301257);}['registerDescriptionCallback'](_0x1e225b){this['_customCallbacks']['push'](_0x1e225b);}['registerElementLabel'](_0x5af55c,_0x2f64a1,_0x499eec=_0xa26190['normal']){'function'==typeof _0x5af55c?_0x23e8f7(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5af55c,'label':_0x2f64a1,'priority':_0x499eec}):this['_itemLabels']['set'](_0x5af55c,_0x2f64a1);}['registerAttributeLabel'](_0x1db830,_0x228e85){this['_attributeLabels']['set'](_0x1db830,_0x228e85);}['getItemLabel'](_0x28dc77,_0x3379e0=0x1){let _0x412db5;for(const _0x4f5452 of this['_itemLabelsCallbacks'])if(_0x4f5452['matchingCallback'](_0x28dc77)){_0x412db5=_0x4f5452['label'];break;}return _0x412db5||(_0x412db5=this['_itemLabels']['get'](_0x28dc77['name'])),_0x412db5?_0x412db5(_0x3379e0):0x1!==_0x3379e0?_0x3379e0+'\x20'+_0x28dc77['name']+'s':''+_0x28dc77['name'];}['_addDescriptionItems'](_0x19c49c,_0x291517){const _0x41a91e=_0x291517['getFirstRange']()['getWalker'](),_0x7f1b97='insertion'==_0x291517['type']?'add':'remove';for(const _0x27bdcb of _0x41a91e){const _0x1d85bb=_0x27bdcb['item'],_0x5d1c00=_0x19c49c[_0x19c49c['length']-0x1];if(_0x1d85bb['is']('$textProxy'))_0x5d1c00&&_0x5d1c00['type']['indexOf']('Container')>-0x1&&_0x19c49c['pop'](),_0x5d1c00&&'text'==_0x5d1c00['type']?_0x5d1c00[_0x7f1b97]+=_0x1d85bb['data']:_0x19c49c['push']({'type':'text','add':'add'==_0x7f1b97?_0x1d85bb['data']:'','remove':'remove'==_0x7f1b97?_0x1d85bb['data']:''});else{if(this['_schema']['isObject'](_0x1d85bb)){const _0x18a319=_0x1d85bb;if(_0x5d1c00&&_0x5d1c00['type']['indexOf']('Container')>-0x1&&_0x19c49c['pop'](),'elementEnd'==_0x27bdcb['type'])continue;_0x5d1c00&&_0x5d1c00['type']==_0x7f1b97+'Object'&&_0x5d1c00['element']['name']==_0x18a319['name']?_0x5d1c00['quantity']++:_0x19c49c['push']({'type':_0x7f1b97+'Object','element':_0x18a319,'quantity':0x1}),_0x41a91e['skip'](_0x43f5fc=>!('elementEnd'==_0x43f5fc['type']&&_0x43f5fc['item']==_0x1d85bb));}else{if(this['_schema']['checkChild'](_0x1d85bb,'$text')||_0x1d85bb['is']('element','softBreak')){const _0x23007d=_0x1d85bb;if('add'==_0x7f1b97&&'elementStart'==_0x27bdcb['type']||'remove'==_0x7f1b97&&'elementEnd'==_0x27bdcb['type'])continue;if(_0x5d1c00&&-0x1==_0x5d1c00['type']['indexOf']('Container')){'text'==_0x5d1c00['type']&&(_0x5d1c00[_0x7f1b97]+='\x0a');continue;}let _0x5c677c;if(_0x5c677c='add'==_0x7f1b97?_0x23007d['nextSibling']&&!this['_schema']['isObject'](_0x23007d['nextSibling'])?_0x23007d['nextSibling']:null:_0x23007d['previousSibling']&&!this['_schema']['isObject'](_0x23007d['previousSibling'])?_0x23007d['previousSibling']:null,_0x23007d['isEmpty']||_0x5c677c&&_0x5c677c['isEmpty']){const _0x598aec=_0x5c677c&&_0x5c677c['isEmpty']?_0x5c677c:_0x23007d;_0x5d1c00&&_0x5d1c00['type']==_0x7f1b97+'EmptyContainer'&&_0x5d1c00['element']['name']==_0x598aec['name']?_0x5d1c00['quantity']++:_0x19c49c['push']({'type':_0x7f1b97+'EmptyContainer','element':_0x598aec,'quantity':0x1});}else _0x19c49c['push']({'type':_0x7f1b97+'Container','element':_0x23007d});}}}}}['_resolveDescriptionItems'](_0x21fc7f){const _0x20e104=this['_locale'],_0x177c9b=[],_0x51646c=[],_0x5e3b56=[];for(const _0x22515c of _0x21fc7f)switch(_0x22515c['type']){case'text':if(_0x22515c['add']=_0x22515c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x22515c['remove']=_0x22515c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x22515c['add']&&''!=_0x22515c['remove']){_0x177c9b['push']({'type':'replace','content':o(_0x20e104,'REPLACE_TEXT',['\x22'+_0x22515c['remove']+'\x22','\x22'+_0x22515c['add']+'\x22'])});continue;}if(null!=_0x22515c['add']['match'](/^ +$/)){_0x177c9b['push']({'type':'insertion','content':o(_0x20e104,'*Insert:*\x20%0',o(_0x20e104,'ELEMENT_SPACE',_0x22515c['add']['length']))});continue;}if(null!=_0x22515c['remove']['match'](/^ +$/)){_0x177c9b['push']({'type':'deletion','content':o(_0x20e104,'*Remove:*\x20%0',o(_0x20e104,'ELEMENT_SPACE',_0x22515c['remove']['length']))});continue;}if(''!=_0x22515c['add']){_0x177c9b['push']({'type':'insertion','content':o(_0x20e104,'*Insert:*\x20%0','\x22'+_0x22515c['add']+'\x22')});continue;}_0x177c9b['push']({'type':'deletion','content':o(_0x20e104,'*Remove:*\x20%0','\x22'+_0x22515c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x177c9b['push']({'type':'insertion','content':o(_0x20e104,'*Insert:*\x20%0',this['getItemLabel'](_0x22515c['element'],_0x22515c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x177c9b['push']({'type':'deletion','content':o(_0x20e104,'*Remove:*\x20%0',this['getItemLabel'](_0x22515c['element'],_0x22515c['quantity']))});continue;case'addContainer':_0x177c9b['push']({'type':'insertion','content':o(_0x20e104,'*Split:*\x20%0',this['getItemLabel'](_0x22515c['element'],_0x22515c['quantity']))});continue;case'removeContainer':_0x177c9b['push']({'type':'deletion','content':o(_0x20e104,'*Merge:*\x20%0',this['getItemLabel'](_0x22515c['element'],_0x22515c['quantity']))});continue;case'addFormat':_0x51646c['push'](_0x22515c['key']);continue;case'removeFormat':_0x5e3b56['push'](_0x22515c['key']);continue;default:_0x177c9b['push'](_0x22515c);}if(_0x51646c['length']){const _0x2ec2dd=_0x51646c['map'](_0x57943a=>this['_attributeLabels']['has'](_0x57943a)?this['_attributeLabels']['get'](_0x57943a):_0x57943a)['join'](',\x20');_0x177c9b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2ec2dd)});}if(_0x5e3b56['length']){const _0x3a0bf2=_0x5e3b56['map'](_0x54b776=>this['_attributeLabels']['has'](_0x54b776)?this['_attributeLabels']['get'](_0x54b776):_0x54b776)['join'](',\x20');_0x177c9b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3a0bf2)});}return _0x177c9b;}['_handleCustomCallbackDescription'](_0x25c0b8){for(const _0x3f0d5d of this['_customCallbacks']){const _0x4e7304=_0x3f0d5d(_0x25c0b8);if(_0x4e7304&&'type'in _0x4e7304)return _0x4e7304;}}['_handleAttributeSuggestionDescription'](_0x58b5eb,_0xf5e244){const _0x5877ac=_0xf5e244['data'],_0x274889=void 0x0===_0x5877ac['newValue']?'removeFormat':'addFormat';_0x58b5eb['push']({'type':_0x274889,'key':_0x5877ac['key']});}['_handleRenameSuggestionDescription'](_0x1a88bb,_0x57ab09){_0x1a88bb['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x57ab09['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2d2804,_0x101e0b,_0x25c235){if(this['_addDescriptionItems'](_0x2d2804,_0x101e0b),_0x25c235&&_0x25c235['getFirstRange']()&&!_0x101e0b['getFirstRange']()['end']['isEqual'](_0x25c235['getFirstRange']()['start'])){const _0x192b79=_0x2d2804[_0x2d2804['length']-0x1],_0x99c3a9='insertion'==_0x101e0b['type']?'add':'remove';_0x192b79&&'text'==_0x192b79['type']&&(_0x192b79[_0x99c3a9]+='\x0a');}}}class U extends _0x23bd0e{['afterInit'](){const _0x20fef3=this['editor'],_0x371e51=_0x20fef3['plugins']['get']('TrackChangesEditing');_0x20fef3['commands']['get']('showAIAssistant')&&_0x371e51['enableCommand']('showAIAssistant');}}class V extends _0x23bd0e{['afterInit'](){const _0x14832c=this['editor'],_0x4a9ac8=_0x14832c['plugins']['get']('TrackChangesEditing');_0x14832c['commands']['get']('toggleAi')&&_0x4a9ac8['enableCommand']('toggleAi');}}class F extends _0x23bd0e{['afterInit'](){const _0x48b24a=this['editor'],_0x1e10e7=_0x48b24a['plugins']['get']('TrackChangesEditing');_0x48b24a['commands']['get']('aiQuickAction')&&_0x1e10e7['enableCommand']('aiQuickAction');}}class G extends _0x23bd0e{['afterInit'](){const _0x3eed9e=this['editor'],_0x200d60=_0x3eed9e['locale'];if(!_0x3eed9e['plugins']['has']('AlignmentEditing'))return;const _0x5db725=_0x3eed9e['plugins']['get']('TrackChangesEditing');_0x5db725['enableDefaultAttributesIntegration']('alignment'),_0x5db725['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x200d60,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe03cd6=this['editor'],_0xc7649=_0xe03cd6['locale'];_0xe03cd6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x380ef8=>{if('formatBlock'!=_0x380ef8['type'])return;const {data:_0x2904de}=_0x380ef8;if(_0x2904de&&'alignment'==_0x2904de['commandName']){const _0x1130f8=_0x2904de['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xc7649,'*Format:*\x20%0',function(_0x3ca054){switch(_0x3ca054){case'left':return o(_0xc7649,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xc7649,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xc7649,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xc7649,'FORMAT_JUSTIFY_TEXT');}}(_0x1130f8))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x23bd0e{['afterInit'](){const _0x5278df=this['editor'],_0x183ee6=_0x5278df['plugins']['get']('TrackChangesEditing'),_0x13198d=_0x5278df['locale'];for(const _0x4ea5b7 of ti){if(!_0x5278df['plugins']['has'](_0x4ea5b7))continue;const _0x550c97=_0x4ea5b7['slice'](0x0,-0x7)['toLowerCase'](),_0x14dc40='FORMAT_'+_0x550c97['toUpperCase']();_0x183ee6['enableDefaultAttributesIntegration'](_0x550c97),_0x183ee6['descriptionFactory']['registerAttributeLabel'](_0x550c97,o(_0x13198d,_0x14dc40));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x509eeb=this['editor'],_0x344e95=_0x509eeb['locale'],_0x4a1303=_0x509eeb['plugins']['get']('TrackChangesEditing');function _0x278280(_0x53bf33,_0x1d1b43){_0x4a1303['descriptionFactory']['registerDescriptionCallback'](_0x520ba5=>{if('formatInline'!=_0x520ba5['type'])return;const {data:_0x58d20e}=_0x520ba5;return _0x58d20e&&_0x58d20e['commandName']===_0x53bf33?_0x58d20e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x344e95,'*Format:*\x20%0',_0x1d1b43)}:{'type':'format','content':o(_0x344e95,'*Remove\x20format:*\x20%0',_0x1d1b43)}:void 0x0;});}_0x278280('bold',o(_0x344e95,'FORMAT_BOLD')),_0x278280('italic',o(_0x344e95,'FORMAT_ITALIC')),_0x278280('underline',o(_0x344e95,'FORMAT_UNDERLINE')),_0x278280('code',o(_0x344e95,'FORMAT_CODE')),_0x278280('strikethrough',o(_0x344e95,'FORMAT_STRIKETHROUGH')),_0x278280('subscript',o(_0x344e95,'FORMAT_SUBSCRIPT')),_0x278280('superscript',o(_0x344e95,'FORMAT_SUPERSCRIPT'));}}class J extends _0x23bd0e{['afterInit'](){const _0x14891b=this['editor'],_0x419371=_0x14891b['locale'];if(!_0x14891b['plugins']['has']('BlockQuoteEditing'))return;const _0x59d299=_0x14891b['plugins']['get']('TrackChangesEditing'),_0x6dde98=this['editor']['commands']['get']('blockQuote');_0x59d299['enableCommand']('blockQuote',(_0x183f55,_0x299e4e={})=>{const _0x4d1d0b=this['editor']['model']['document']['selection'],_0x1b5000=_0x299e4e&&void 0x0!==_0x299e4e['forceValue']?_0x299e4e['forceValue']:!_0x6dde98['value'];let _0x5329e1=[];if(_0x1b5000){const _0x3e7f53=Array['from'](_0x4d1d0b['getSelectedBlocks']())['filter'](_0x178989=>oo(_0x178989)||function(_0x4c9aec,_0x19e317){const _0xd5eafd=_0x19e317['checkChild'](_0x4c9aec['parent'],'blockQuote'),_0xd78784=_0x19e317['checkChild'](['$root','blockQuote'],_0x4c9aec);return _0xd5eafd&&_0xd78784;}(_0x178989,this['editor']['model']['schema']));_0x5329e1=to(_0x3e7f53,_0x14891b['model']);}else{const _0x3ca72d=Array['from'](_0x4d1d0b['getSelectedBlocks']())['filter'](_0x42134b=>oo(_0x42134b));_0x5329e1=to(_0x3ca72d,_0x14891b['model']);}_0x14891b['model']['change'](()=>{for(const _0x529729 of _0x5329e1)_0x59d299['markBlockFormat'](_0x529729,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1b5000}]});});}),_0x59d299['descriptionFactory']['registerDescriptionCallback'](_0x10dd11=>{const {data:_0xb61380}=_0x10dd11;if(_0xb61380&&'blockQuote'==_0xb61380['commandName']){const _0x267ce6=o(_0x419371,'ELEMENT_BLOCK_QUOTE');return _0xb61380['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x419371,'*Set\x20format:*\x20%0',_0x267ce6)}:{'type':'format','content':o(_0x419371,'*Remove\x20format:*\x20%0',_0x267ce6)};}});}}function oo(_0x35c517){return'blockQuote'==_0x35c517['parent']['name'];}class q extends _0x23bd0e{['afterInit'](){const _0x43682a=this['editor'],_0x4043d3=_0x43682a['locale'],_0x14e7e8=_0x43682a['plugins']['get']('TrackChangesEditing');_0x43682a['plugins']['has']('BookmarkEditing')&&(_0x14e7e8['enableCommand']('insertBookmark'),_0x14e7e8['enableDefaultAttributesIntegration']('updateBookmark'),_0x14e7e8['descriptionFactory']['registerDescriptionCallback'](_0x364ab8=>{if('insertion'!=_0x364ab8['type']&&'deletion'!=_0x364ab8['type']&&'attribute'!=_0x364ab8['type'])return;const _0x475c5b=_0x364ab8['getContainedElement']();if(null==_0x475c5b)return;if(!_0x475c5b['is']('element','bookmark'))return;const _0xb4bdef=_0x475c5b['getAttribute']('bookmarkId');if('insertion'==_0x364ab8['type'])return{'type':'insertion','content':o(_0x4043d3,'*Insert:*\x20%0','\x22'+_0xb4bdef+'\x22\x20'+o(_0x4043d3,'ELEMENT_BOOKMARK'))};if('deletion'==_0x364ab8['type'])return{'type':'deletion','content':o(_0x4043d3,'*Remove:*\x20%0','\x22'+_0xb4bdef+'\x22\x20'+o(_0x4043d3,'ELEMENT_BOOKMARK'))};const {data:_0x3520de}=_0x364ab8;if(!_0x3520de||'bookmarkId'!=_0x3520de['key'])return;return{'type':'format','content':o(_0x4043d3,'*Set\x20bookmark:*\x20%0','\x22'+_0x3520de['newValue']+'\x22')};}));}}class z extends _0x23bd0e{['afterInit'](){const _0x17bfb0=this['editor'];_0x17bfb0['plugins']['has']('CaseChange')&&(_0x17bfb0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x17bfb0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x17bfb0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x23bd0e{['afterInit'](){const _0x51c554=this['editor'];_0x51c554['commands']['get']('ckbox')&&_0x51c554['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x23bd0e{['afterInit'](){const _0x5e2ac1=this['editor'];if(!_0x5e2ac1['plugins']['has']('CodeBlock'))return;const _0x490be9=_0x5e2ac1['plugins']['get']('TrackChangesEditing'),_0x49cf6f=_0x5e2ac1['locale'],_0x1add14=_0x5e2ac1['config']['get']('codeBlock')['languages'],_0x1e8137=_0x5e2ac1['commands']['get']('codeBlock');_0x490be9['enableCommand']('indentCodeBlock'),_0x490be9['enableCommand']('outdentCodeBlock'),_0x490be9['enableCommand']('codeBlock',(_0x1cc5e9,_0x531dbe={})=>{const _0x3aaab7=_0x5e2ac1['model'],_0x8ffc1e=_0x5e2ac1['model']['document']['selection'],_0x23e02f=_0x531dbe&&void 0x0!==_0x531dbe['forceValue']?_0x531dbe['forceValue']:!_0x1e8137['value'];let _0x4aa767;_0x531dbe['language']||(_0x531dbe['language']=_0x1add14[0x0]['language']),_0x4aa767=_0x23e02f?Array['from'](_0x8ffc1e['getSelectedBlocks']())['filter'](_0x869383=>co(_0x869383)||function(_0x2e1e2c,_0xaeaced){if(_0x2e1e2c['is']('rootElement')||_0xaeaced['isLimit'](_0x2e1e2c))return!0x1;return _0xaeaced['checkChild'](_0x2e1e2c['parent'],'codeBlock');}(_0x869383,_0x3aaab7['schema'])):Array['from'](_0x8ffc1e['getSelectedBlocks']())['filter'](_0x28e4fa=>co(_0x28e4fa));const _0x56964c=to(_0x4aa767,_0x3aaab7);_0x3aaab7['change'](()=>{for(const _0x29ba53 of _0x56964c)_0x490be9['markBlockFormat'](_0x29ba53,{'commandName':'codeBlock','commandParams':[{..._0x531dbe,'forceValue':_0x23e02f}],'formatGroupId':'blockName'});});}),(_0x490be9['descriptionFactory']['registerElementLabel']('codeBlock',_0x4181be=>o(_0x49cf6f,'ELEMENT_CODE_BLOCK',_0x4181be)),_0x490be9['descriptionFactory']['registerDescriptionCallback'](_0x1421f3=>{if('formatBlock'!=_0x1421f3['type'])return;const _0x113463=_0x49cf6f['t'],{data:_0x55ff3f}=_0x1421f3;if(!_0x55ff3f||'codeBlock'!=_0x55ff3f['commandName'])return;const _0x33da38=_0x55ff3f['commandParams'][0x0]['language'],_0x11b018=_0x113463(_0x1add14['find'](_0x2493ef=>_0x2493ef['language']===_0x33da38)['label'])['toLowerCase']();return _0x55ff3f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x49cf6f,'*Set\x20format:*\x20%0',o(_0x49cf6f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x11b018+')')}:{'type':'format','content':o(_0x49cf6f,'*Remove\x20format:*\x20%0',o(_0x49cf6f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x464d17){return'codeBlock'==_0x464d17['name'];}class H extends _0x23bd0e{['afterInit'](){const _0x170390=this['editor'];if(!_0x170390['plugins']['has']('CommentsEditing'))return;_0x170390['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x23bd0e{static get['requires'](){return[_0x18bd52];}['init'](){const _0x59bb0a=this['editor'],_0x4cf073=_0x59bb0a['plugins']['get']('TrackChangesEditing');_0x4cf073['enableCommand']('delete');const _0xa94664=_0x59bb0a['commands']['get']('deleteForward');_0x4cf073['enableCommand']('deleteForward',(_0x22fa35,_0x30bcf4={})=>{const _0x3aa202=_0x59bb0a['model']['createSelection'](_0x59bb0a['model']['document']['selection']);_0x3aa202['isCollapsed']&&_0x59bb0a['model']['modifySelection'](_0x3aa202,{'direction':'forward','unit':_0x30bcf4['unit']});const _0x13bf03=_0x3aa202['getFirstRange'](),_0x4c9754=_0x32b072['fromRange'](_0x13bf03);let _0x4d11cb;_0x22fa35(_0x30bcf4),_0x4d11cb='$graveyard'==_0x4c9754['root']['rootName']?_0x59bb0a['model']['createRange'](_0x13bf03['start']):_0x59bb0a['model']['createRange'](_0x4c9754['start'],_0x4c9754['end']),_0x4c9754['detach'](),_0x59bb0a['model']['enqueueChange'](_0xa94664['buffer']['batch'],_0x442a0b=>{_0xa94664['buffer']['lock'](),_0x442a0b['setSelection'](_0x442a0b['createRange'](_0x4d11cb['end'])),_0xa94664['buffer']['unlock']();});});}}class X extends _0x23bd0e{['afterInit'](){const _0x3aaeac=this['editor'];if(!_0x3aaeac['plugins']['has']('ListEditing'))return;const _0x4af2f0=_0x3aaeac['locale'],_0x562774=_0x3aaeac['plugins']['get']('TrackChangesEditing'),_0x48106a=_0x3aaeac['plugins']['has']('TodoListEditing'),_0x1e7c99=!!_0x3aaeac['config']['get']('list.multiBlock');function _0x2b5276(_0x400c04){return{'type':'format','content':''+o(_0x4af2f0,'*Set\x20format:*\x20%0',_0x400c04)};}function _0x5b40bc(_0x1c2e96){return{'type':'format','content':''+o(_0x4af2f0,'*Remove\x20format:*\x20%0',_0x1c2e96)};}_0x562774['enableDefaultAttributesIntegration']('numberedList'),_0x562774['enableDefaultAttributesIntegration']('bulletedList'),_0x562774['enableDefaultAttributesIntegration']('customNumberedList'),_0x562774['enableDefaultAttributesIntegration']('customBulletedList'),_0x562774['enableDefaultAttributesIntegration']('indentList'),_0x562774['enableDefaultAttributesIntegration']('outdentList'),_0x562774['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x562774['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1e7c99&&(_0x562774['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x562774['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x48106a&&(_0x562774['enableDefaultAttributesIntegration']('todoList'),_0x562774['enableDefaultAttributesIntegration']('checkTodoList'),_0x562774['descriptionFactory']['registerDescriptionCallback'](_0xf60e0c=>{const {data:_0x1eb288}=_0xf60e0c;if(_0x1eb288&&'todoListChecked'==_0x1eb288['key'])return{'type':'format','content':_0x1eb288['newValue']?o(_0x4af2f0,'*Check\x20item*'):o(_0x4af2f0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x553a0d=>{if(_0x553a0d['batch']['isUndo'])return!0x1;let _0x28aa51=!0x1;const _0x15e457=_0x562774['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23022a=>'todoListChecked'===_0x562774['_getAttributeKey'](_0x23022a));for(const _0x1ae97b of _0x15e457){'todo'!=_0x1ae97b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x562774['_findSuggestions'](_0x1ae97b['getFirstRange'](),'attribute')['find'](_0x548db2=>'listType'===_0x562774['_getAttributeKey'](_0x548db2['suggestion']))||(_0x553a0d['removeMarker'](_0x1ae97b['getFirstMarker']()),_0x28aa51=!0x0));}return _0x28aa51;})),_0x562774['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4af2f0,'FORMAT_INDENT'));const _0x419ac0={'type':'format','content':''};_0x562774['descriptionFactory']['registerDescriptionCallback'](_0x57fb4a=>{const {data:_0x2903c2}=_0x57fb4a;if(!_0x2903c2||'listType'!=_0x2903c2['key'])return;let _0x36c818=_0x57fb4a['head'];for(;_0x36c818;){if(_0x36c818['data']&&(('listStyle'==_0x36c818['data']['key']||'listMarkerStyle'==_0x36c818['data']['key'])&&(_0x36c818['data']['newValue']&&'default'!=_0x36c818['data']['newValue']||'default'!=_0x36c818['data']['oldValue']&&!_0x2903c2['newValue'])||!_0x1e7c99&&_0x36c818['data']['key']==m))return _0x419ac0;_0x36c818=_0x36c818['next'];}if(null==_0x2903c2['newValue'])switch(_0x2903c2['oldValue']){case'bulleted':return _0x5b40bc(o(_0x4af2f0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5b40bc(o(_0x4af2f0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5b40bc(o(_0x4af2f0,'ELEMENT_TODO_LIST'));}switch(_0x2903c2['newValue']){case'bulleted':return _0x2b5276(o(_0x4af2f0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b5276(o(_0x4af2f0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b5276(o(_0x4af2f0,'ELEMENT_TODO_LIST'));}}),_0x562774['descriptionFactory']['registerDescriptionCallback'](_0x31859d=>{const {data:_0x5e28f9}=_0x31859d;if(_0x5e28f9&&'listIndent'==_0x5e28f9['key'])return null==_0x5e28f9['newValue']||null==_0x5e28f9['oldValue']&&0x0==_0x5e28f9['newValue']?_0x419ac0:void 0x0;}),_0x562774['descriptionFactory']['registerDescriptionCallback'](_0x1a4cb6=>{if('attribute'!=_0x1a4cb6['type'])return;const {data:_0x190c90}=_0x1a4cb6;if(!_0x190c90||'listItemId'!=_0x190c90['key'])return;const _0x2a2604=Te(_0x1a4cb6);return'newValue'==_0x2a2604?{'type':'format','content':o(_0x4af2f0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2a2604?{'type':'format','content':o(_0x4af2f0,'*Split:*\x20list\x20item')}:_0x419ac0;}),_0x3aaeac['model']['document']['registerPostFixer'](_0x363186=>this['listItemIdFixer'](_0x363186)),_0x3aaeac['model']['document']['registerPostFixer'](_0x515605=>this['noTrackChangesFixer'](_0x515605)),_0x3aaeac['model']['document']['on']('change:data',(_0x4e225d,_0x5346c5)=>{if(_0x5346c5['isUndo']||!_0x5346c5['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x256d57){if(_0x256d57['batch']['isUndo']||!_0x256d57['batch']['isLocal'])return!0x1;let _0x820612=!0x1;const _0x27d80d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20ae2c=>_0x20ae2c['data']&&'listItemId'==_0x20ae2c['data']['key'])['filter'](_0x12308d=>_0x12308d['data']['newValue']&&_0x12308d['data']['oldValue']);for(const _0x2ad7dc of _0x27d80d)Te(_0x2ad7dc)||(_0x256d57['removeMarker'](_0x2ad7dc['getFirstMarker']()),_0x820612=!0x0);return _0x820612;}['noTrackChangesFixer'](_0x38977e){if(_0x38977e['batch']['isUndo']||!_0x38977e['batch']['isLocal'])return!0x1;const _0x1625cc=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1625cc['trackChangesCommand']['value'])return!0x1;let _0x2fc7d8=!0x1;const _0x279161=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xd9f7ef=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x34a99d=>'attribute'==_0x34a99d['type'])['filter'](_0x30b35f=>_0x279161['includes'](_0x30b35f['attributeKey']));if(0x0==_0xd9f7ef['length'])return _0x2fc7d8;for(const _0xaf4e84 of _0xd9f7ef){const _0x8e0821=_0x1625cc['_findSuggestions'](_0xaf4e84['range'],'attribute')['filter'](_0x13607b=>!_0x13607b['meta']['isNextTo'])['map'](_0x2d5456=>_0x2d5456['suggestion'])['filter'](_0x5145e0=>{const _0x331e22=_0x1625cc['_getAttributeKey'](_0x5145e0);return _0x279161['includes'](_0x331e22);});if(_0x8e0821['length']){for(const _0x2e54b6 of _0x8e0821)_0x38977e['removeMarker'](_0x2e54b6['getFirstMarker']());_0x2fc7d8=!0x0;}}return _0x2fc7d8;}['assureChains'](){const _0x47fafa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15e49c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4ecd9c;const _0x384c75=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x59e354=>{if(_0x59e354['data']['oldRange']||!_0x59e354['data']['newRange'])return null;if(!_0x59e354['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x405ad6}=_0x47fafa['_splitMarkerName'](_0x59e354['name']);if(!_0x47fafa['hasSuggestion'](_0x405ad6))return null;const _0xe97f4b=_0x47fafa['getSuggestion'](_0x405ad6);return _0x15e49c['includes'](_0xe97f4b['data']['key']);})['map'](_0x31ccb6=>{const {id:_0x50a3b2}=_0x47fafa['_splitMarkerName'](_0x31ccb6['name']),_0x5893c9=_0x47fafa['getSuggestion'](_0x50a3b2);return _0x4ecd9c=_0x5893c9['attributes']['groupId'],_0x5893c9['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x384c75['size'])return;const _0x42b73c=_0x47fafa['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x115daa=>'attribute'==_0x115daa['type']&&_0x115daa['data']&&_0x15e49c['includes'](_0x115daa['data']['key'])&&_0x115daa['attributes']['groupId']!=_0x4ecd9c)['map'](_0x2b574d=>({'listItem':_0x2b574d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2b574d['attributes']['groupId']})),_0x28da28=new Set();for(const {groupId:_0x14014a,listItem:_0x572406}of _0x42b73c)_0x384c75['has'](_0x572406)&&_0x28da28['add'](_0x14014a);for(const _0x467db9 of _0x47fafa['getSuggestions']())_0x28da28['has'](_0x467db9['attributes']['groupId'])&&_0x467db9['setAttribute']('groupId',_0x4ecd9c);}['_supportLegacySuggestions'](){const _0x3594f2=this['editor'],_0x4745c4=_0x3594f2['locale'],_0x15a8ec=_0x3594f2['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x15a8ec['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x239e19,_0x4db7ab){const _0x3c94bd=[];for(let _0x1abf2e of _0x239e19)_0x1abf2e['start']['nodeAfter']===_0x1abf2e['end']['parent']&&(_0x1abf2e=_0x3594f2['model']['createRange'](_0x3594f2['model']['createPositionAt'](_0x1abf2e['start']['nodeAfter'],0x0))),_0x3c94bd['push'](_0x1abf2e);_0x3594f2['model']['change'](_0x54de94=>{const _0xcb1a59=_0x3594f2['model']['document']['selection'],_0x57788e=Array['from'](_0xcb1a59['getRanges']())['map'](_0x1e042b=>_0x32b072['fromRange'](_0x1e042b));_0x54de94['setSelection'](_0x3c94bd),_0x3594f2['commands']['get'](_0x4db7ab['commandName'])['refresh'](),_0x4db7ab['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3594f2['execute'](_0x4db7ab['commandName'],..._0x4db7ab['commandParams']),_0x54de94['setSelection'](_0x57788e);for(const _0x3efed5 of _0x57788e)_0x3efed5['detach']();});}),_0x15a8ec['descriptionFactory']['registerElementLabel'](function(_0x3b22e5){const _0x2c607d=!_0x3594f2['model']['schema']['isObject'](_0x3b22e5),_0x42e90b=_0x3b22e5['previousSibling'],_0xd916a0=_0x3b22e5['nextSibling'],_0x1640a2=_0x3b22e5['getAttribute']('listItemId'),_0x2f987e=!_0x42e90b||_0x42e90b['getAttribute']('listItemId')!==_0x1640a2,_0x4b79d5=!_0xd916a0||_0xd916a0['getAttribute']('listItemId')!==_0x1640a2;return _0x2c607d&&Boolean(_0x1640a2)&&_0x2f987e&&_0x4b79d5;},_0x4387d5=>o(_0x4745c4,'ELEMENT_LIST_ITEM',_0x4387d5));}['_registerLegacyDescription'](){const _0x4e7ec5=this['editor'],_0x3c4354=_0x4e7ec5['locale'];function _0x73029(_0x351628){const _0x356f0c=_0x4e7ec5['commands']['get']('bulletedList')['value'],_0x17dd50=_0x4e7ec5['commands']['get']('numberedList')['value'];return'numberedList'===_0x351628?_0x356f0c:_0x17dd50;}_0x4e7ec5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x283c04){if('formatBlock'!=_0x283c04['type'])return;const {data:_0xcfc22d}=_0x283c04;if(!_0xcfc22d)return;let _0x3f1aef,_0x1ac218,_0x3082b3,_0x369ce7;switch(_0xcfc22d['commandName']){case'bulletedList':_0x3082b3=_0xcfc22d['commandParams'][0x0]['forceValue'],_0x369ce7=_0x73029(_0xcfc22d['commandName']),_0x3f1aef=_0x3082b3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x369ce7&&_0x4e7ec5['config']['get']('list.multiBlock')||(_0x3f1aef='*Change\x20to:*\x20%0'),_0x1ac218={'type':'format','content':o(_0x3c4354,_0x3f1aef,o(_0x3c4354,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3082b3=_0xcfc22d['commandParams'][0x0]['forceValue'],_0x369ce7=_0x73029(_0xcfc22d['commandName']),_0x3f1aef=_0x3082b3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x369ce7&&_0x4e7ec5['config']['get']('list.multiBlock')||(_0x3f1aef='*Change\x20to:*\x20%0'),_0x1ac218={'type':'format','content':o(_0x3c4354,_0x3f1aef,o(_0x3c4354,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3f1aef='*Indent:*\x20%0',_0x1ac218={'type':'format','content':o(_0x3c4354,_0x3f1aef,o(_0x3c4354,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3f1aef=function(_0x1081e9){const _0x3bd4a7=_0x1081e9['getFirstRange']();let _0x5550a9=_0x3bd4a7['start']['nodeAfter'];for(;_0x5550a9&&_0x3bd4a7['containsItem'](_0x5550a9);){if(_0x5550a9['getAttribute']('listIndent')>0x0)return!0x1;_0x5550a9=_0x5550a9['nextSibling'];}return!0x0;}(_0x283c04)?o(_0x3c4354,'*Format:*\x20remove\x20from\x20%0',o(_0x3c4354,function(_0x5e795f){return'ELEMENT_'+_0x5e795f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x283c04))):o(_0x3c4354,'*Outdent:*\x20%0',o(_0x3c4354,'ELEMENT_LIST_ITEM')),_0x1ac218={'type':'format','content':_0x3f1aef};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xcfc22d['multipleBlocks']&&(_0x3f1aef='*Merge:*\x20%0',_0x1ac218={'type':'deletion','content':o(_0x3c4354,_0x3f1aef,o(_0x3c4354,'ELEMENT_LIST_ITEM'))});}return _0x1ac218;});}}function Te(_0x7d9190){let _0x23874d=_0x7d9190['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x23874d;){const _0x144052=_0x23874d['getAttribute']('listItemId');if(!_0x144052)return!0x1;if(_0x144052==_0x7d9190['data']['newValue'])return'newValue';if(_0x144052==_0x7d9190['data']['oldValue'])return'oldValue';_0x23874d=_0x23874d['previousSibling'];}return!0x1;}class Y extends _0x23bd0e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2a9654=this['editor']['config']['get']('list.properties'),_0x524c69=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a9654['styles']&&_0x524c69['enableDefaultAttributesIntegration']('listStyle'),_0x2a9654['reversed']&&_0x524c69['enableDefaultAttributesIntegration']('listReversed'),_0x2a9654['startIndex']&&_0x524c69['enableDefaultAttributesIntegration']('listStart');const _0x43c1fe={'type':'format','content':''};_0x524c69['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1eee75=this['editor']['locale'];_0x524c69['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1eee75,'FORMAT_LIST_REVERSED')),_0x524c69['descriptionFactory']['registerDescriptionCallback'](_0x52749a=>{const {data:_0x1038f8}=_0x52749a;if(_0x1038f8&&'listReversed'==_0x1038f8['key'])return null==_0x1038f8['newValue']||0x0==_0x1038f8['newValue']&&null==_0x1038f8['oldValue']?_0x43c1fe:void 0x0;}),_0x524c69['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1eee75,'FORMAT_LIST_START')),_0x524c69['descriptionFactory']['registerDescriptionCallback'](_0x390cbb=>{const {data:_0x6128ed}=_0x390cbb;if(_0x6128ed&&'listStart'==_0x6128ed['key'])return null==_0x6128ed['newValue']||0x1==_0x6128ed['newValue']&&null==_0x6128ed['oldValue']?_0x43c1fe:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5a3d3d=>{if(_0x5a3d3d['batch']['isUndo'])return!0x1;let _0x181f31=!0x1;const _0x5322dc=_0x524c69['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e7d5d=>{const _0x123f57=_0x524c69['_getAttributeKey'](_0x1e7d5d);return'listStart'==_0x123f57||'listReversed'==_0x123f57;});for(const _0x31088f of _0x5322dc){const _0x1e3f2e=_0x31088f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1e3f2e||'customNumbered'==_0x1e3f2e)continue;_0x524c69['_findSuggestions'](_0x31088f['getFirstRange'](),'attribute')['find'](_0x36203a=>'listType'==_0x524c69['_getAttributeKey'](_0x36203a['suggestion']))||(_0x5a3d3d['removeMarker'](_0x31088f['getFirstMarker']()),_0x181f31=!0x0);}return _0x181f31;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x32162){const _0x24d843=this['editor']['locale'],{data:_0x22f128}=_0x32162,_0x541a72={'type':'format','content':''};if(!_0x22f128||'listStyle'!=_0x22f128['key'])return;if(!_0x22f128['oldValue'])return'default'==_0x22f128['newValue']?_0x541a72:{'type':'format','content':''+o(_0x24d843,'*Set\x20format:*\x20%0',o(_0x24d843,this['_getTranslationKeyForListStyle'](_0x22f128['newValue'])))};if(!_0x22f128['newValue']){if('default'==_0x22f128['oldValue'])return _0x541a72;let _0x825cda=_0x32162['head'];for(;_0x825cda;){if(_0x825cda['data']&&'listType'==_0x825cda['data']['key']&&_0x825cda['data']['newValue'])return _0x541a72;_0x825cda=_0x825cda['next'];}return{'type':'format','content':''+o(_0x24d843,'*Remove\x20format:*\x20%0',o(_0x24d843,this['_getTranslationKeyForListStyle'](_0x22f128['oldValue'])))};}if('default'!=_0x22f128['newValue'])return{'type':'format','content':''+o(_0x24d843,'*Set\x20format:*\x20%0',o(_0x24d843,this['_getTranslationKeyForListStyle'](_0x22f128['newValue'])))};let _0x5a3ab4=_0x32162['head'];for(;_0x5a3ab4;){if(_0x5a3ab4['data']&&'listType'==_0x5a3ab4['data']['key']&&_0x5a3ab4['data']['newValue']&&_0x5a3ab4['data']['oldValue'])return _0x541a72;_0x5a3ab4=_0x5a3ab4['next'];}return{'type':'format','content':o(_0x24d843,'*Set\x20format:*\x20%0',o(_0x24d843,'ELEMENT_'+_0x32162['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3ccd36=this['editor'],_0x1a6b44=_0x3ccd36['locale'];_0x3ccd36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50da88=>{if('formatBlock'!=_0x50da88['type'])return;const {data:_0x5a8465}=_0x50da88;if(!_0x5a8465)return;let _0x3f934a,_0x76775e;switch(_0x5a8465['commandName']){case'listStyle':_0x3f934a='*Change\x20to:*\x20%0',_0x76775e={'type':'format','content':o(_0x1a6b44,_0x3f934a,o(_0x1a6b44,this['_getTranslationKeyForListStyle'](_0x5a8465['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3f934a=_0x5a8465['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x76775e={'type':'format','content':o(_0x1a6b44,_0x3f934a)};break;case'listStart':_0x3f934a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x76775e={'type':'format','content':o(_0x1a6b44,_0x3f934a,_0x5a8465['commandParams'][0x0]['startIndex'])};}return _0x76775e;});}['_getTranslationKeyForListStyle'](_0x38b0bb){return'ELEMENT_'+function(_0xc769cb){if(ye['includes'](_0xc769cb))return'bulleted';if(Se['includes'](_0xc769cb))return'numbered';return null;}(_0x38b0bb)['toUpperCase']()+'_LIST_'+_0x38b0bb['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0x23bd0e{['afterInit'](){const _0x401af7=this['editor'];_0x401af7['commands']['get']('emoji')&&_0x401af7['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x23bd0e{static get['requires'](){return[_0x236abd];}['init'](){const _0x5a7106=this['editor'],_0x4195f8=_0x5a7106['plugins']['get']('TrackChangesEditing'),_0x1c5938=_0x5a7106['commands']['get']('enter');_0x4195f8['enableCommand']('enter',()=>{_0x5a7106['model']['change'](_0x51e856=>{const _0x792ad6=_0x5a7106['model']['document']['selection'],_0x311081=_0x792ad6['getFirstPosition'](),_0x5167b3=_0x32b072['fromRange'](_0x792ad6['getFirstRange']());if(_0x1c5938['enterBlock'](_0x51e856)){const _0x2e21d9=_0x5a7106['model']['createPositionAt'](_0x311081['parent']['nextSibling'],0x0),_0x43417c=_0x51e856['createRange'](_0x311081,_0x2e21d9);_0x4195f8['markInsertion'](_0x43417c);}else _0x51e856['setSelection'](_0x51e856['createRange'](_0x5167b3['end']));_0x5167b3['detach'](),_0x1c5938['fire']('afterExecute',{'writer':_0x51e856});});});}}class nt extends _0x23bd0e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2b684e=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b684e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2b684e['enableCommand']('findNext'),_0x2b684e['enableCommand']('findPrevious'),_0x2b684e['enableCommand']('replace'),_0x2b684e['enableCommand']('replaceAll');}['handleFindCommand'](_0x4cc64a,_0x3bf831,_0x6e1466={}){const _0x569571=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4cc64a(_0x55be23=>{let _0x536c1e=('string'==typeof _0x3bf831?_0x569571['findByTextCallback'](_0x3bf831,_0x6e1466):_0x3bf831)(_0x55be23);Array['isArray'](_0x536c1e)&&(_0x536c1e={'results':_0x536c1e,'searchText':'string'==typeof _0x3bf831?_0x3bf831:''});const _0x4cea17=_0x536c1e['results']['filter'](_0x3f64f1=>!0x1===this['_isInDeletionRange'](_0x3f64f1,_0x55be23['item']));return{..._0x536c1e,'results':_0x4cea17};},_0x6e1466);}['_isInDeletionRange'](_0x227a5a,_0x1298d5){const _0x12579=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1298d5,_0x227a5a['start']),this['editor']['model']['createPositionAt'](_0x1298d5,_0x227a5a['end']));for(const _0x43ca52 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x12579['getIntersection'](_0x43ca52['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x23bd0e{['afterInit'](){const _0x1cf1cf=this['editor']['locale'],_0x1bc0a8=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1ddd94,commandName:_0x1f697e}of eo)this['editor']['plugins']['has'](_0x1ddd94)&&_0x1bc0a8['enableDefaultAttributesIntegration'](_0x1f697e);_0x1bc0a8['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1cf1cf,'FORMAT_FONT_SIZE')),_0x1bc0a8['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1cf1cf,'FORMAT_FONT_FAMILY')),_0x1bc0a8['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1cf1cf,'FORMAT_FONT_COLOR')),_0x1bc0a8['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1cf1cf,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3598cc=this['editor'],_0x19383c=_0x3598cc['locale'];_0x3598cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x515e56=>{const _0x45a347=_0x19383c['t'];if('formatInline'!=_0x515e56['type'])return;const {data:_0x1a3dcf}=_0x515e56;if(null!=_0x1a3dcf){if('fontSize'==_0x1a3dcf['commandName']){const _0x51baaa=_0x1a3dcf['commandParams'][0x0]['value'];if(_0x51baaa){const _0x32a90a=_0x45a347(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xfc9478=>_0xfc9478['model']==_0x51baaa)['title'])['toLowerCase']();return{'type':'format','content':o(_0x19383c,'*Set\x20font\x20size:*\x20%0',_0x32a90a)};}return{'type':'format','content':o(_0x19383c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1a3dcf['commandName']){const _0x436a0=_0x1a3dcf['commandParams'][0x0]['value'];return _0x436a0?{'type':'format','content':o(_0x19383c,'*Set\x20font\x20family:*\x20%0',_0x436a0)}:{'type':'format','content':o(_0x19383c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1a3dcf['commandName']){const _0xde31da=_0x1a3dcf['commandParams'][0x0]['value'];if(_0xde31da){const _0x3da0c7=_0x396f07(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3ea27f=>_0x3ea27f['model']==_0xde31da);let _0x591164=_0xde31da,_0x1b0591='';return _0x3da0c7&&(_0x591164=_0x3da0c7['label'],_0x1b0591=_0x45a347(_0x591164)['toLowerCase']()),{'type':'format','content':o(_0x19383c,'*Set\x20font\x20color:*\x20%0',_0x1b0591)['trim'](),'color':{'value':_0xde31da,'title':_0x1b0591||_0x591164}};}return{'type':'format','content':o(_0x19383c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1a3dcf['commandName']){const _0x50f275=_0x1a3dcf['commandParams'][0x0]['value'];if(_0x50f275){const _0x5978b0=_0x396f07(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4702d6=>_0x4702d6['model']==_0x50f275);let _0x274002=_0x50f275,_0x46561d='';return _0x5978b0&&(_0x274002=_0x5978b0['label'],_0x46561d=_0x45a347(_0x274002)['toLowerCase']()),{'type':'format','content':o(_0x19383c,'*Set\x20font\x20background\x20color:*\x20%0',_0x46561d)['trim'](),'color':{'value':_0x50f275,'title':_0x46561d||_0x274002}};}return{'type':'format','content':o(_0x19383c,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x23bd0e{['afterInit'](){const {plugins:_0x4459de}=this['editor'];_0x4459de['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x4459de['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x19a708,plugins:_0x350add,commands:_0x46efd1}=this['editor'],_0x482397=_0x350add['get']('TrackChangesEditing');_0x46efd1['get']('footnotesStyle')&&_0x482397['enableDefaultAttributesIntegration']('footnotesStyle'),_0x46efd1['get']('footnotesStart')&&_0x482397['enableDefaultAttributesIntegration']('footnotesStart'),_0x482397['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x19a708,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x482397['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x19a708,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x347ed8=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0xc9bab3,commands:_0x4aae1d}=this['editor'];_0x4aae1d['get']('insertFootnote')&&_0x347ed8['enableCommand']('insertFootnote'),_0x347ed8['descriptionFactory']['registerElementLabel']('footnoteRef',_0x113f15=>o(_0xc9bab3,'ELEMENT_FOOTNOTE_REF',_0x113f15)),_0x347ed8['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x505ad0=>o(_0xc9bab3,'ELEMENT_FOOTNOTE_DEFINITION',_0x505ad0)),_0x347ed8['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x161aae=>o(_0xc9bab3,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x161aae));}}class st extends _0x23bd0e{['afterInit'](){const _0x14f13b=this['editor'],_0x5e5311=_0x14f13b['plugins']['get']('TrackChangesEditing'),_0x5b8bf6=_0x14f13b['commands']['get']('copyFormat'),_0x2051c6=_0x14f13b['commands']['get']('pasteFormat');_0x5b8bf6&&_0x2051c6&&(_0x5e5311['enableDefaultAttributesIntegration']('pasteFormat'),_0x5e5311['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x57bc5e=this['editor'],_0x7b5b41=_0x57bc5e['locale'];_0x57bc5e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a6949=>{if('formatBlock'!=_0x5a6949['type']&&'formatInline'!=_0x5a6949['type'])return;const {data:_0x1aa590}=_0x5a6949;if(_0x1aa590&&'pasteFormat'===_0x1aa590['commandName']){const _0x4a5142=[],_0x1e75cf=_0x1aa590['commandParams'][0x0];for(const [_0x493670,_0xd05950]of Object['entries'](_0x1e75cf))_0x4a5142['push'](ro(_0x57bc5e,_0x493670,_0xd05950));return _0x4a5142['length']?{'type':'format','content':o(_0x7b5b41,'*Set\x20format\x20to:*\x20%0',_0x4a5142['join'](',\x20'))}:{'type':'format','content':o(_0x7b5b41,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3effe1,_0x58d28d,_0x2781b9){const _0x11cc03=_0x3effe1['locale']['t'],_0x5ee034=_0x58d28d['split'](/(?=[A-Z])/)['join']('\x20'),_0x2019ad=_0x11cc03(_0x5ee034['charAt'](0x0)['toUpperCase']()+_0x5ee034['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2781b9)return _0x2019ad;if('fontColor'===_0x58d28d||'fontBackgroundColor'===_0x58d28d){const _0x203f9f=_0x396f07(_0x3effe1['config']['get']('fontColor.colors'))['find'](_0x3bad84=>_0x3bad84['model']==_0x2781b9);return _0x2019ad+'\x20('+(_0x203f9f?_0x11cc03(_0x203f9f['label'])['toLowerCase']():_0x2781b9)+')';}if('fontSize'===_0x58d28d&&isNaN(parseFloat(_0x2781b9))){const _0x15e197=_0x3effe1['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3effe1['config']['get']('fontSize.options'))['find'](_0x5d23b6=>_0x5d23b6['model']==_0x2781b9);return _0x2019ad+'\x20('+(_0x15e197?_0x11cc03(_0x15e197['title'])['toLowerCase']():_0x2781b9)+')';}return _0x2019ad+'\x20('+_0x2781b9+')';}class ot extends _0x23bd0e{['_headingOptions'];['afterInit'](){const _0x28d13f=this['editor'];if(!_0x28d13f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x28d13f['config']['get']('heading.options');const _0x495ee2=_0x28d13f['locale'],_0x49b317=_0x28d13f['plugins']['get']('TrackChangesEditing');_0x49b317['enableDefaultAttributesIntegration']('heading');for(const _0x3cc008 of this['_headingOptions'])'paragraph'!=_0x3cc008['model']&&_0x49b317['descriptionFactory']['registerElementLabel'](_0x3cc008['model'],_0x243a5b=>{const _0x558135=this['_getHeadingLevel'](_0x3cc008['model']);return null!==_0x558135?_0x188581(_0x243a5b,_0x558135):_0x3911c2(_0x243a5b,_0x3cc008['title']);});function _0x188581(_0x229e17,_0xd56857){return o(_0x495ee2,'ELEMENT_HEADING',[_0x229e17,_0xd56857]);}function _0x3911c2(_0x9054f6,_0x192169){return o(_0x495ee2,'ELEMENT_HEADING_CUSTOM',[_0x9054f6,_0x192169]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35c9b8=this['editor'],_0x22a3cf=_0x35c9b8['locale'];function _0x5f1b50(_0x5b8cc6,_0x512811){return o(_0x22a3cf,'ELEMENT_HEADING_CUSTOM',[_0x5b8cc6,_0x512811]);}_0x35c9b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51c92f=>{if('formatBlock'!=_0x51c92f['type'])return;const {data:_0x1cded0}=_0x51c92f;if(_0x1cded0&&'heading'==_0x1cded0['commandName']){const _0x4bd342=_0x1cded0['commandParams'][0x0]['value'],_0x2c461a=this['_getHeadingLevel'](_0x4bd342);if(null!==_0x2c461a)return{'type':'format','content':o(_0x22a3cf,'*Change\x20to:*\x20%0',(_0x41c36f=0x1,_0x4cc3c3=_0x2c461a,o(_0x22a3cf,'ELEMENT_HEADING',[_0x41c36f,_0x4cc3c3])))};const _0x4f9f42=this['_headingOptions']['find'](_0x3e1906=>_0x3e1906['model']===_0x4bd342)['title'];return{'type':'format','content':o(_0x22a3cf,'*Change\x20to:*\x20%0',_0x5f1b50(0x1,_0x4f9f42))};}var _0x41c36f,_0x4cc3c3;});}['_getHeadingLevel'](_0x51257b){const _0x43780b=_0x51257b['match'](/^heading(\d+)/);if(_0x43780b)return _0x43780b[0x1];const _0x349cd0=this['_headingOptions']?.['find'](_0x4ad962=>_0x4ad962['model']==_0x51257b);if(_0x349cd0&&_0x349cd0['view']){const _0x3fad74=_0x349cd0['view'],_0x2dbef1=(_0x3fad74['name']??_0x3fad74)['match'](/^h(\d+)/);if(_0x2dbef1)return _0x2dbef1[0x1];}return null;}}class rt extends _0x23bd0e{['afterInit'](){const _0x2c632b=this['editor'];if(!_0x2c632b['plugins']['has']('HighlightEditing'))return;const _0x5311e4=_0x2c632b['plugins']['get']('TrackChangesEditing'),_0x3675eb=_0x2c632b['locale'];_0x5311e4['enableDefaultAttributesIntegration']('highlight'),_0x5311e4['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3675eb,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e2035=this['editor'],_0x422b76=_0x1e2035['locale'];_0x1e2035['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5da364=>{if('formatInline'!=_0x5da364['type'])return;const {data:_0x291c09}=_0x5da364;if(_0x291c09&&'highlight'==_0x291c09['commandName']){const _0x1ec33d=_0x422b76['t'],_0x202618=_0x291c09['commandParams'][0x0]['value'];if(_0x202618){const _0x233ccc=_0x1e2035['config']['get']('highlight.options')['find'](_0x169fbc=>_0x169fbc['model']==_0x202618),_0x147c02=_0x1ec33d(_0x233ccc['title'])['toLowerCase']();return{'type':'format','content':o(_0x422b76,'*Set\x20highlight:*\x20%0',_0x147c02),'color':{'value':_0x233ccc['color'],'title':_0x233ccc['title']}};}return{'type':'format','content':o(_0x422b76,'*Remove\x20highlight*',o(_0x422b76,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x23bd0e{['afterInit'](){const _0x3460cc=this['editor'];if(!_0x3460cc['plugins']['has']('HorizontalLineEditing'))return;_0x3460cc['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x16633d=_0x3460cc['plugins']['get']('TrackChangesEditing'),_0x540e64=_0x3460cc['locale'];_0x16633d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x253a1f=>o(_0x540e64,'ELEMENT_HORIZONTAL_LINE',_0x253a1f));}}class ct extends _0x23bd0e{['afterInit'](){const _0x2c3e08=this['editor'];if(!_0x2c3e08['plugins']['has']('HtmlEmbed'))return;const _0x39912f=_0x2c3e08['plugins']['get']('TrackChangesEditing'),_0x18374c=_0x2c3e08['locale'];_0x39912f['descriptionFactory']['registerElementLabel']('rawHtml',_0x8c6fbf=>o(_0x18374c,'ELEMENT_HTML_EMBED',_0x8c6fbf)),_0x39912f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x39912f['descriptionFactory']['registerDescriptionCallback'](_0x5f5014=>{if('attribute'!=_0x5f5014['type'])return;const {data:_0xc701a3}=_0x5f5014;if(_0xc701a3&&'value'==_0xc701a3['key']&&_0x5f5014['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x528594=o(_0x18374c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x18374c,'*Change\x20%0\x20content*',_0x528594)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23f0ad=this['editor'],_0x1e7780=_0x23f0ad['locale'];_0x23f0ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x374628=>{if('formatBlock'!=_0x374628['type'])return;const {data:_0x226650}=_0x374628;if(_0x226650&&'htmlEmbed'==_0x226650['commandName']){const _0x33df63=o(_0x1e7780,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1e7780,'*Change\x20%0\x20content*',_0x33df63)};}});}}class ut extends _0x23bd0e{['afterInit'](){const _0x15580e=this['editor'];if(!_0x15580e['plugins']['has']('ImageEditing'))return;const _0x1a51e8=_0x15580e['plugins']['get']('TrackChangesEditing'),_0x342775=_0x15580e['plugins']['get']('ImageUtils'),_0x28b283=_0x15580e['locale'];_0x1a51e8['enableCommand']('insertImage'),_0x1a51e8['descriptionFactory']['registerElementLabel']('imageBlock',_0x218af2=>o(_0x28b283,'ELEMENT_IMAGE',_0x218af2)),_0x1a51e8['descriptionFactory']['registerElementLabel']('imageInline',_0x490af4=>o(_0x28b283,'ELEMENT_INLINE_IMAGE',_0x490af4)),_0x1a51e8['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x28b283,'ELEMENT_CAPTION')),_0x15580e['plugins']['has']('ImageUploadEditing')&&_0x1a51e8['enableCommand']('uploadImage'),_0x15580e['plugins']['has']('ImageBlockEditing')&&_0x15580e['plugins']['has']('ImageInlineEditing')&&(_0x1a51e8['enableCommand']('imageTypeInline',(_0x21fe01,_0x548e91)=>{const _0x4ed274=_0x342775['getClosestSelectedImageElement'](_0x15580e['model']['document']['selection']);_0x15580e['model']['change'](()=>{_0x1a51e8['markBlockFormat'](_0x4ed274,{'commandName':'imageTypeInline','commandParams':[_0x548e91]},[],'convertBlockImageToInline');});}),_0x1a51e8['enableCommand']('imageTypeBlock',(_0x1d9e01,_0xccd174)=>{_0x15580e['model']['change'](_0x2693fe=>{let _0x1b8388=_0x342775['getClosestSelectedImageElement'](_0x15580e['model']['document']['selection']),_0x3338b8=_0x2693fe['createRangeOn'](_0x1b8388);const _0xfabaf3=_0xe5bdf6['fromPosition'](_0x3338b8['start'],'toPrevious'),_0x557083=_0xe5bdf6['fromPosition'](_0x3338b8['end'],'toNext');_0x1a51e8['forceDefaultExecution'](()=>_0x1d9e01(_0xccd174)),_0x1b8388=_0x342775['getClosestSelectedImageElement'](_0x15580e['model']['document']['selection']),_0x3338b8=_0x2693fe['createRangeOn'](_0x1b8388);const _0x2fc3b4=_0x2693fe['createRange'](_0xfabaf3,_0x557083);_0xfabaf3['detach'](),_0x557083['detach'](),_0x1a51e8['markBlockFormat'](_0x1b8388,{'commandName':'imageTypeInline','commandParams':[_0xccd174]},[],'convertInlineImageToBlock'),_0x2fc3b4['start']['isBefore'](_0x3338b8['start'])&&_0x1a51e8['markInsertion'](_0x2693fe['createRange'](_0x2fc3b4['start'],_0x3338b8['start']),'convertInlineImageToBlock'),_0x3338b8['end']['isBefore'](_0x2fc3b4['end'])&&_0x1a51e8['markInsertion'](_0x2693fe['createRange'](_0x3338b8['end'],_0x2fc3b4['end']),'convertInlineImageToBlock');});}),_0x1a51e8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1a51e8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1a51e8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1a51e8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1a51e8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1a51e8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xc910a9])=>{const _0x2dd493=_0x1a51e8['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x69aab7=_0xc910a9['start'],_0x2ff9cc=_0xc910a9['end'];const _0x5217b0=_0x15580e['model']['schema']['getNearestSelectionRange'](_0x69aab7,'backward'),_0x530f84=_0x15580e['model']['schema']['getNearestSelectionRange'](_0x2ff9cc,'forward');_0x5217b0['isCollapsed']&&(_0x69aab7=_0x5217b0['start']),_0x530f84['isCollapsed']&&(_0x2ff9cc=_0x530f84['end']),_0x2dd493([_0x15580e['model']['createRange'](_0x69aab7,_0x2ff9cc)]);}),_0x1a51e8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4b86c4),_0x1a51e8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4b86c4)),_0x15580e['plugins']['has']('ImageCaptionEditing')&&(_0x1a51e8['enableCommand']('toggleImageCaption',(_0x23aab6,_0x1b3038)=>{const _0x1af206=_0x15580e['plugins']['get']('ImageCaptionUtils');let _0x418cac=_0x342775['getClosestSelectedImageElement'](_0x15580e['model']['document']['selection']),_0x56eaa7=_0x1af206['getCaptionFromImageModelElement'](_0x418cac);_0x15580e['model']['change'](()=>{if(_0x56eaa7)return void _0x1a51e8['markDeletion'](_0x15580e['model']['createRangeOn'](_0x56eaa7));const _0x4f7bc4=_0x342775['isBlockImage'](_0x418cac);_0x23aab6(_0x1b3038),_0x418cac=_0x342775['getClosestSelectedImageElement'](_0x15580e['model']['document']['selection']),_0x56eaa7=_0x1af206['getCaptionFromImageModelElement'](_0x418cac),_0x1a51e8['markInsertion'](_0x15580e['model']['createRangeOn'](_0x56eaa7),_0x4f7bc4?null:'imageCaption');});}),_0x1a51e8['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4b86c4));const _0x29062a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1b32db(_0x40f4fb,_0x8bcabc){const _0x2e435b=_0x29062a['findIndex'](({type:_0x408c4f,subType:_0x12b4c2})=>_0x40f4fb['type']==_0x408c4f&&_0x40f4fb['subType']==_0x12b4c2),_0x3f9f10=_0x29062a['findIndex'](({type:_0x43a8bf,subType:_0x13fd12})=>_0x8bcabc['type']==_0x43a8bf&&_0x8bcabc['subType']==_0x13fd12);if(_0x2e435b<0x0||_0x3f9f10<0x0)return!0x1;const _0x3e612a=_0x40f4fb['getFirstRange'](),_0x3b10ca=_0x8bcabc['getFirstRange']();if((0x0==_0x2e435b||0x1==_0x2e435b)&&0x2==_0x3f9f10&&_0x3e612a['isIntersecting'](_0x3b10ca))return!0x0;if(0x2==_0x2e435b&&0x3==_0x3f9f10){const _0x222d20=_0x1a51e8['_findSuggestions'](_0x3e612a,'insertion')['filter'](({suggestion:_0x26e799,meta:_0x2f9507})=>_0x2f9507['isOwn']&&'convertInlineImageToBlock'==_0x26e799['subType']);if(_0x222d20['length']>0x1&&_0x3b10ca['end']['isEqual'](_0x3e612a['start']))return!0x0;if(0x1==_0x222d20['length']&&(_0x3e612a['start']['isEqual'](_0x3b10ca['end'])||_0x3e612a['end']['isEqual'](_0x3b10ca['start'])))return!0x0;}if(0x3==_0x2e435b&&0x3==_0x3f9f10&&_0x3e612a['start']['isBefore'](_0x3b10ca['start'])){const _0x2da8a2=_0x3e612a['end']['nodeAfter'],_0x5767fb=_0x3b10ca['start']['nodeBefore'];return _0x342775['isBlockImage'](_0x2da8a2)&&_0x2da8a2===_0x5767fb;}return!0x1;}function _0x4b86c4(_0x1c39e3,_0x566d19){return _0x1b32db(_0x1c39e3,_0x566d19)?[_0x1c39e3,_0x566d19]:_0x1b32db(_0x566d19,_0x1c39e3)?[_0x566d19,_0x1c39e3]:null;}_0x15580e['plugins']['has']('ImageResize')&&(_0x1a51e8['enableDefaultAttributesIntegration']('resizeImage'),_0x1a51e8['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x28b283,'FORMAT_IMAGE_SIZE'))),_0x15580e['plugins']['has']('ImageTextAlternativeEditing')&&_0x1a51e8['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x15580e['plugins']['has']('PictureEditing')&&_0x1a51e8['descriptionFactory']['registerDescriptionCallback'](_0x291278=>{if('attribute'!=_0x291278['type'])return;const {data:_0x4b60b4}=_0x291278;return _0x4b60b4&&'sources'==_0x4b60b4['key']?{'type':'format','content':''}:void 0x0;}),_0x15580e['plugins']['has']('ImageSizeAttributes')&&_0x1a51e8['descriptionFactory']['registerDescriptionCallback'](_0xf29076=>{if('attribute'!=_0xf29076['type'])return;const {data:_0x545404}=_0xf29076;return!_0x545404||'width'!=_0x545404['key']&&'height'!=_0x545404['key']?void 0x0:{'type':'format','content':''};}),_0x1a51e8['descriptionFactory']['registerDescriptionCallback'](_0x3cf1c1=>{if(!!_0x29062a['find'](({type:_0x43f3b8,subType:_0x4710c9})=>_0x3cf1c1['type']==_0x43f3b8&&_0x3cf1c1['subType']==_0x4710c9))return _0x3cf1c1['previous']?{}:void 0x0;}),_0x1a51e8['descriptionFactory']['registerDescriptionCallback'](_0x43cab7=>{if('insertion'==_0x43cab7['type']||'deletion'==_0x43cab7['type']){const _0x31236d=_0x43cab7['getContainedElement']();if(_0x31236d&&_0x31236d['is']('element','caption'))return{'type':'insertion'==_0x43cab7['type']?'addObject':'removeObject','element':_0x31236d,'quantity':0x1};}}),_0x1a51e8['descriptionFactory']['registerDescriptionCallback'](_0x5c50f9=>'formatBlock'==_0x5c50f9['type']&&'convertInlineImageToBlock'==_0x5c50f9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5c50f9['type']&&'convertBlockImageToInline'==_0x5c50f9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1a51e8['descriptionFactory']['registerDescriptionCallback'](_0x5e3ea2=>{if('attribute'!=_0x5e3ea2['type'])return;const {data:_0x4ea375}=_0x5e3ea2;if(!_0x4ea375||'alt'!=_0x4ea375['key'])return;const _0x6bf296=_0x4ea375['newValue'];return _0x6bf296?{'type':'format','content':o(_0x28b283,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x6bf296+'\x22')}:{'type':'format','content':o(_0x28b283,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50b73b=this['editor'],_0x363d9b=_0x50b73b['locale'];_0x50b73b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44f070=>{if('formatBlock'!=_0x44f070['type']&&'formatInline'!=_0x44f070['type'])return;const {data:_0x1d781c}=_0x44f070;if(_0x1d781c){if('imageTextAlternative'==_0x1d781c['commandName']){const _0x36f557=_0x1d781c['commandParams'][0x0]['newValue'];return _0x36f557?{'type':'format','content':o(_0x363d9b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x36f557+'\x22')}:{'type':'format','content':o(_0x363d9b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1d781c['commandName']){const _0x23fc67=_0x1d781c['commandParams'][0x0]['width'];return _0x23fc67?{'type':'format','content':o(_0x363d9b,'*Set\x20image\x20width:*\x20%0',_0x23fc67)}:{'type':'format','content':o(_0x363d9b,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x23bd0e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x207ce7=this['editor']['locale'],_0x5e04d2=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e04d2['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5e04d2['descriptionFactory']['registerDescriptionCallback'](_0x2675d4=>{if('attribute'!=_0x2675d4['type'])return;const {data:_0x48f8b3}=_0x2675d4;return _0x48f8b3&&'src'==_0x48f8b3['key']?_0x48f8b3['newValue']&&_0x48f8b3['oldValue']?{'type':'format','content':o(_0x207ce7,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1e52cf=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e52cf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1e52cf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1e52cf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1e52cf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb97ef6=this['editor'],_0x128df0=_0xb97ef6['locale'];_0xb97ef6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f365c=>{if('formatBlock'!=_0x2f365c['type']&&'formatInline'!=_0x2f365c['type'])return;const {data:_0x4eb180}=_0x2f365c;if(!_0x4eb180||'replaceImageSource'!=_0x4eb180['commandName'])return;return{'type':'format','content':o(_0x128df0,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x23bd0e{['afterInit'](){const _0x464f50=this['editor'];if(!_0x464f50['plugins']['has']('ImageStyleEditing'))return;const _0x1ff54f=_0x464f50['plugins']['get']('TrackChangesEditing'),_0x3552b9=_0x464f50['plugins']['get']('ImageUtils'),_0x53f91f={};_0x1ff54f['enableCommand']('imageStyle',(_0x442d87,_0x18ef78)=>{const _0x1eef98=_0x464f50['plugins']['get']('Users')['me'],_0x3cdabc=_0x464f50['commands']['get']('imageStyle');let _0x453bd9=_0x3552b9['getClosestSelectedImageElement'](_0x464f50['model']['document']['selection']),_0x4a35a3=_0x464f50['model']['createRangeOn'](_0x453bd9),_0x2cc109=_0x3cdabc['value'];if(_0x2cc109==_0x18ef78['value'])return;const _0x57e5d0={'commandName':'imageStyle','commandParams':[_0x18ef78],'formatGroupId':_0x37bdeb()};_0x464f50['model']['change'](()=>{if(_0x1ff54f['getSuggestions']()['filter'](_0x544444=>_0x544444['isInContent']&&_0x1eef98==_0x544444['author']&&('formatBlock'==_0x544444['type']||'formatInline'==_0x544444['type'])&&('imageStylePreApply'==_0x544444['subType']||'imageStylePostApply'==_0x544444['subType'])&&_0x544444['getFirstRange']()['isEqual'](_0x4a35a3))['forEach'](_0x1b1a84=>_0x1ff54f['discardSuggestion'](_0x1b1a84['head'])),_0x453bd9=_0x3552b9['getClosestSelectedImageElement'](_0x464f50['model']['document']['selection']),_0x4a35a3=_0x464f50['model']['createRangeOn'](_0x453bd9),_0x3cdabc['refresh'](),_0x464f50['commands']['get']('imageTypeInline')['refresh'](),_0x464f50['commands']['get']('imageTypeBlock')['refresh'](),_0x2cc109=_0x3cdabc['value'],_0x2cc109!=_0x18ef78['value'])return _0x3552b9['isInlineImage'](_0x453bd9)&&_0x3cdabc['shouldConvertImageType'](_0x18ef78['value'],_0x453bd9)?(_0x442d87({..._0x18ef78,'setImageSizes':!0x1}),_0x453bd9=_0x3552b9['getClosestSelectedImageElement'](_0x464f50['model']['document']['selection']),void _0x1ff54f['markBlockFormat'](_0x453bd9,{..._0x57e5d0,'commandReversedParams':[{'value':_0x2cc109||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3552b9['isBlockImage'](_0x453bd9)?_0x1ff54f['markBlockFormat'](_0x453bd9,_0x57e5d0,[],'imageStylePostApply'):_0x1ff54f['markInlineFormat'](_0x4a35a3,_0x57e5d0,'imageStylePostApply'));});});for(const _0x25de81 of _0x464f50['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x53f91f[_0x25de81['name']]=_0x25de81['title']['toLowerCase']();_0x1ff54f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1ff54f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1ff54f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1ff54f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x84a364])=>{_0x3552b9['setImageNaturalSizeAttributes'](_0x84a364['getContainedElement']());}),_0x1ff54f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xe6635b,_0x3c54b3)=>{_0x1ff54f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xe6635b,{'commandName':_0x3c54b3['commandName'],'commandParams':_0x3c54b3['commandReversedParams']});}),_0x1ff54f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x700c22,_0x4b4e2c){if(_0x3268f4(_0x700c22,_0x4b4e2c))return[_0x700c22,_0x4b4e2c];if(_0x3268f4(_0x4b4e2c,_0x700c22))return[_0x4b4e2c,_0x700c22];return null;});const _0x2b65e1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3268f4(_0x46bb20,_0x84e51a){const _0x130185=_0x2b65e1['findIndex'](({type:_0xf74e84,subType:_0x5cdc7d})=>_0x46bb20['type']==_0xf74e84&&_0x46bb20['subType']==_0x5cdc7d),_0x40b5ab=_0x2b65e1['findIndex'](({type:_0x17f893,subType:_0x2625e6})=>_0x84e51a['type']==_0x17f893&&_0x84e51a['subType']==_0x2625e6);if(_0x130185<0x0||_0x40b5ab<0x0)return!0x1;const _0x1f141d=_0x46bb20['getFirstRange'](),_0x507e89=_0x84e51a['getFirstRange']();if((0x0==_0x130185||0x1==_0x130185)&&0x2==_0x40b5ab&&_0x1f141d['isIntersecting'](_0x507e89))return!0x0;if(0x2==_0x130185&&0x3==_0x40b5ab){const _0x1583d1=_0x1ff54f['_findSuggestions'](_0x1f141d,'insertion')['filter'](({suggestion:_0x32713f,meta:_0x96b5e8})=>_0x96b5e8['isOwn']&&'convertInlineImageToBlock'==_0x32713f['subType']);if(_0x1583d1['length']>0x1&&_0x507e89['end']['isEqual'](_0x1f141d['start']))return!0x0;if(0x1==_0x1583d1['length']&&(_0x1f141d['start']['isEqual'](_0x507e89['end'])||_0x1f141d['end']['isEqual'](_0x507e89['start'])))return!0x0;}if(0x3==_0x130185&&0x3==_0x40b5ab&&_0x1f141d['start']['isBefore'](_0x507e89['start'])){const _0x2e9a19=_0x1f141d['end']['nodeAfter'],_0xbc42af=_0x507e89['start']['nodeBefore'];return _0x3552b9['isBlockImage'](_0x2e9a19)&&_0x2e9a19===_0xbc42af;}return!0x1;}_0x464f50['model']['document']['registerPostFixer'](()=>{let _0x109d3d=!0x1;const _0x22f5b7=Array['from'](_0x464f50['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42e4a3,data:_0x1616c3}of _0x22f5b7){const {group:_0x5eda82,type:_0x31a02e,subType:_0x233eae,id:_0xef49b9}=_0x1ff54f['_splitMarkerName'](_0x42e4a3);if('suggestion'==_0x5eda82&&_0x1ff54f['hasSuggestion'](_0xef49b9)){if('formatBlock'==_0x31a02e&&('imageStylePreApply'==_0x233eae||'imageStylePostApply'==_0x233eae)){const _0x475368=_0x1ff54f['getSuggestion'](_0xef49b9);if(_0x1616c3['newRange']){const _0x149e67=_0x475368['getFirstRange']()['getContainedElement']();if(_0x3552b9['isBlockImage'](_0x149e67))continue;_0x1ff54f['discardSuggestion'](_0x475368),_0x109d3d=!0x0;}}if('insertion'==_0x31a02e&&'imageCaption'==_0x233eae&&!_0x1616c3['newRange']){const _0x28ba2e=_0x1ff54f['getSuggestion'](_0xef49b9);_0x28ba2e['next']&&_0x28ba2e['next']['isInContent']&&(_0x1ff54f['discardSuggestion'](_0x28ba2e['next']),_0x109d3d=!0x0);}}}return _0x109d3d;}),this['_registerLegacyDescription'](_0x53f91f);}['_registerLegacyDescription'](_0x2156c3){const _0xbfa09=this['editor'],_0x22078e=_0xbfa09['locale'];_0xbfa09['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3832a2=>{if('formatBlock'!=_0x3832a2['type']&&'formatInline'!=_0x3832a2['type'])return;const {data:_0x3f4249}=_0x3832a2;if(!_0x3f4249||'imageStyle'!=_0x3f4249['commandName'])return;const _0x4043fa=_0x3f4249['commandParams'][0x0]['value'];return _0x31b2e7('side'===_0x4043fa?o(_0x22078e,'FORMAT_SIDE_IMAGE'):_0x2156c3[_0x4043fa]||_0x4043fa);function _0x31b2e7(_0x4d9ab5){return{'type':'format','content':o(_0x22078e,'*Format:*\x20%0',_0x4d9ab5)};}});}}class lt extends _0x23bd0e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x382ceb){super(_0x382ceb),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3d2282=this['editor'],_0x526a36=_0x3d2282['commands']['get']('importWord'),_0x5546c0=_0x3d2282['commands']['get']('trackChanges');_0x526a36&&(_0x526a36['on']('execute',(_0x565807,[,_0x2cad1f])=>{this['_trackChangesValueDuringImport']=_0x5546c0['value'],_0x2cad1f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x526a36,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x526a36,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5546c0['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3d2282['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x26c9bd,_0x3fe175){const {suggestions:_0x4cfeb2}=_0x3fe175,_0x495b9f=this['editor']['commands']['get']('trackChanges'),_0x54b53b=_0x495b9f['value'];this['_trackChangesValueDuringImport']!==_0x54b53b&&(_0x495b9f['execute'](),this['_trackChangesExecuted']=!0x0),_0x4cfeb2&&_0x4cfeb2['forEach'](({id:_0x8c5f12,type:_0xd70231,author:_0x4d9c78,created_at:_0x1a2b84})=>{const _0x3634e4={'id':_0x8c5f12,'type':_0xd70231,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4d9c78,'createdAt':_0x1a2b84?new Date(_0x1a2b84):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3634e4);});}}class gt extends _0x23bd0e{['afterInit'](){const _0x27767e=this['editor'],_0x420735=_0x27767e['plugins']['get']('TrackChangesEditing');if(_0x27767e['plugins']['has']('IndentEditing')&&(_0x420735['enableCommand']('indent'),_0x420735['enableCommand']('outdent')),_0x27767e['plugins']['has']('IndentBlock')){for(const _0x295457 of['indentBlock','outdentBlock'])_0x420735['enableDefaultAttributesIntegration'](_0x295457);if(_0x27767e['plugins']['has']('ListEditing')){for(const _0x5769a3 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x420735['enableDefaultAttributesIntegration'](_0x5769a3);}}const _0x3ae0eb=_0x27767e['locale'];_0x420735['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3ae0eb,'FORMAT_INDENT')),_0x420735['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x3ae0eb,'FORMAT_INDENT')),_0x420735['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x3ae0eb,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35ac91=this['editor'],_0x5c7bb7=_0x35ac91['locale'],_0x119a2b=_0x35ac91['plugins']['get']('TrackChangesEditing');_0x119a2b['descriptionFactory']['registerDescriptionCallback'](_0x38d7e6=>{if('formatBlock'!=_0x38d7e6['type'])return;const {data:_0x3630fa}=_0x38d7e6;if(!_0x3630fa)return;if('indentBlock'!=_0x3630fa['commandName']&&'outdentBlock'!=_0x3630fa['commandName'])return;const _0x48b8ce=_0x38d7e6['getItems']()[0x0],_0x594821=_0x119a2b['descriptionFactory']['getItemLabel'](_0x48b8ce);return'indentBlock'==_0x3630fa['commandName']?{'type':'format','content':o(_0x5c7bb7,'*Indent:*\x20%0',_0x594821)}:'outdentBlock'==_0x3630fa['commandName']?{'type':'format','content':o(_0x5c7bb7,'*Outdent:*\x20%0',_0x594821)}:void 0x0;});}}class mt extends _0x23bd0e{static get['requires'](){return[_0x43b60c];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x23bd0e{['afterInit'](){const _0x2a58ba=this['editor'];if(!_0x2a58ba['plugins']['has']('LinkEditing'))return;const _0x1964a2=_0x2a58ba['plugins']['get']('TrackChangesEditing'),_0x46c0c2=_0x2a58ba['commands']['get']('link');_0x1964a2['enableDefaultAttributesIntegration']('link'),_0x1964a2['enableDefaultAttributesIntegration']('unlink');for(const _0x4a84ee of _0x46c0c2['manualDecorators'])_0x1964a2['descriptionFactory']['registerAttributeLabel'](_0x4a84ee['id'],'link\x20('+_0x4a84ee['label']['toLowerCase']()+')');_0x1964a2['descriptionFactory']['registerDescriptionCallback'](_0x4eabd0=>{if('attribute'!=_0x4eabd0['type'])return;const {data:_0x840dd1}=_0x4eabd0;if(!_0x840dd1||'linkHref'!=_0x840dd1['key'])return;const _0x1ad98b=_0x840dd1['newValue'],_0x482175=_0x2a58ba['locale'];return{'type':'format','content':null==_0x1ad98b?o(_0x482175,'*Remove\x20link*'):o(_0x482175,'*Set\x20link:*\x20%0','\x22'+_0x1ad98b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33ff1d=this['editor'],_0x11178c=_0x33ff1d['locale'];_0x33ff1d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x72f80=>{if('formatInline'!=_0x72f80['type'])return;const {data:_0x5095d2}=_0x72f80;if(_0x5095d2){if('link'==_0x5095d2['commandName']){const _0x443d4c=_0x5095d2['commandParams'][0x0];return{'type':'format','content':o(_0x11178c,'*Set\x20link:*\x20%0','\x22'+_0x443d4c+'\x22')};}return'unlink'==_0x5095d2['commandName']?{'type':'format','content':o(_0x11178c,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x23bd0e{['afterInit'](){const _0x4be626=this['editor'],_0x19a3b1=_0x4be626['locale'];if(!_0x4be626['plugins']['has']('LegacyListEditing'))return;const _0x18c19a=_0x4be626['plugins']['get']('TrackChangesEditing'),_0x4dc5ed=_0x4be626['plugins']['has']('LegacyTodoListEditing');function _0x40072e(_0x90f4f1){return()=>{const _0x344d73=_0x4be626['model']['document']['selection'],_0x2e93d4=_0x4be626['commands']['get'](_0x90f4f1);if(_0x2e93d4['value'])return void _0x4be626['execute']('paragraph',{});const _0x39dc96=_0x90f4f1['slice'](0x0,-0x4),_0x103026=function(_0x18a580,_0x470e1e,_0x2eb2c4){let _0x4244ea=Array['from'](_0x18a580)['filter'](_0x33c653=>function(_0x4c5194,_0x3bc50e){return _0x3bc50e['checkChild'](_0x4c5194['parent'],'listItem')&&!_0x3bc50e['isObject'](_0x4c5194);}(_0x33c653,_0x2eb2c4));_0x4244ea=_0x4244ea['filter'](_0x15710e=>!_0x15710e['is']('element','listItem')||_0x15710e['getAttribute']('listType')!=_0x470e1e);const _0x1842be=new Set();for(const _0x370243 of _0x4244ea)_0x370243['is']('element','listItem')?_0x1842be['add'](Le(_0x370243)):_0x1842be['add'](_0x370243);return Array['from'](_0x1842be);}(_0x344d73['getSelectedBlocks'](),_0x39dc96,_0x4be626['model']['schema']);_0x4be626['model']['change'](()=>{for(const _0xe8e84f of _0x103026)_0x18c19a['markBlockFormat'](_0xe8e84f,{'commandName':_0x90f4f1,'commandParams':[{'forceValue':!_0x2e93d4['value']}],'formatGroupId':'blockName'},Ee(_0xe8e84f));});};}function _0x3b7ed5(_0x134aa8){return()=>{const _0x158eb6=function(_0x5d4f69){let _0x207825=Array['from'](_0x5d4f69);const _0x252b8=_0x207825['findIndex'](_0x23b00d=>'listItem'!=_0x23b00d['name']);return _0x252b8>-0x1&&(_0x207825=_0x207825['slice'](0x0,_0x252b8)),_0x207825;}(_0x4be626['model']['document']['selection']['getSelectedBlocks']()),_0x776ede=_0x4be626['model']['createRange'](_0x4be626['model']['createPositionAt'](_0x158eb6[0x0],'before'),_0x4be626['model']['createPositionAt'](_0x158eb6[_0x158eb6['length']-0x1],'end'));_0x4be626['model']['change'](()=>{_0x18c19a['markBlockFormat'](_0x776ede,{'commandName':_0x134aa8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3cda80){const _0x1f403e=new Set();for(const _0x5f5c5e of _0x3cda80){let _0xe2b15f=_0x5f5c5e['nextSibling'];for(;_0xe2b15f&&_0xe2b15f['getAttribute']('listIndent')>_0x5f5c5e['getAttribute']('listIndent');)_0x1f403e['add'](_0xe2b15f),_0xe2b15f=_0xe2b15f['nextSibling'];}return Array['from'](_0x1f403e);}(_0x158eb6));});};}_0x18c19a['enableCommand']('numberedList',_0x40072e('numberedList')),_0x18c19a['enableCommand']('bulletedList',_0x40072e('bulletedList')),_0x4dc5ed&&_0x18c19a['enableCommand']('todoList',_0x40072e('todoList')),_0x18c19a['enableCommand']('indentList',_0x3b7ed5('indentList')),_0x18c19a['enableCommand']('outdentList',_0x3b7ed5('outdentList')),_0x4dc5ed&&_0x18c19a['enableCommand']('checkTodoList',()=>{const _0x574870=_0x4be626['commands']['get']('checkTodoList'),_0x5b2b7c=Array['from'](_0x574870['_selectedElements']);_0x5b2b7c['filter'](_0xa0f07e=>_0xa0f07e['getAttribute']('todoListChecked')!=_0x574870['value']),_0x4be626['model']['change'](()=>{for(const _0x57a7d4 of _0x5b2b7c)_0x18c19a['markBlockFormat'](_0x57a7d4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x574870['value']}]});});}),_0x18c19a['descriptionFactory']['registerElementLabel']('listItem',_0x1cf673=>o(_0x19a3b1,'ELEMENT_LIST_ITEM',_0x1cf673)),_0x18c19a['descriptionFactory']['registerDescriptionCallback'](_0xb3c6fb=>{if('formatBlock'!=_0xb3c6fb['type']&&'formatInline'!=_0xb3c6fb['type'])return;const {data:_0x275010}=_0xb3c6fb;if(_0x275010){if('numberedList'==_0x275010['commandName']||'bulletedList'==_0x275010['commandName']||'todoList'==_0x275010['commandName'])switch(_0x275010['commandName']['replace']('List','')){case'bulleted':return _0x3756c0(o(_0x19a3b1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3756c0(o(_0x19a3b1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3756c0(o(_0x19a3b1,'ELEMENT_TODO_LIST'));}if('indentList'==_0x275010['commandName'])return{'type':'format','content':o(_0x19a3b1,'*Indent:*\x20%0',o(_0x19a3b1,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x275010['commandName'])return{'type':'format','content':o(_0x19a3b1,'*Outdent:*\x20%0',o(_0x19a3b1,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x275010['commandName'])return _0x275010['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x19a3b1,'*Check\x20item*')}:{'type':'format','content':o(_0x19a3b1,'*Uncheck\x20item*')};}function _0x3756c0(_0x287594){return{'type':'format','content':o(_0x19a3b1,'*Change\x20to:*\x20%0',_0x287594)};}});}}function Le(_0x1ae145){const _0x342f1d=_0x1ae145['getAttribute']('listIndent');if(0x0==_0x342f1d)return _0x1ae145;let _0x495c10=_0x1ae145;for(;_0x1ae145['previousSibling']&&_0x1ae145['previousSibling']['is']('element','listItem');){const _0x26e3a0=_0x1ae145['previousSibling']['getAttribute']('listIndent');if(_0x26e3a0==_0x342f1d)_0x495c10=_0x1ae145['previousSibling'];else{if(_0x26e3a0<_0x342f1d)break;}_0x1ae145=_0x1ae145['previousSibling'];}return _0x495c10;}function Ee(_0x42d022){const _0x5013d2=[];if(_0x42d022['is']('element','listItem')&&_0x42d022['getAttribute']('listIndent')>0x0){let _0x57ff6c=_0x42d022['nextSibling'];for(;_0x57ff6c&&'listItem'==_0x57ff6c['name']&&_0x57ff6c['getAttribute']('listIndent')==_0x42d022['getAttribute']('listIndent');)_0x5013d2['push'](_0x57ff6c),_0x57ff6c=_0x57ff6c['nextSibling'];}return _0x5013d2;}class wt extends _0x23bd0e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3dd698=this['editor']['config']['get']('list.properties'),_0x1adb9f=this['editor']['plugins']['get']('TrackChangesEditing');_0x3dd698['styles']&&_0x1adb9f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3dd698['reversed']&&_0x1adb9f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3dd698['startIndex']&&_0x1adb9f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1adb9f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x570205,_0x364015={}){const _0x57876c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2af657=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x57876c['markMultiRangeBlockFormat'](_0x2af657,{'commandName':'listStyle','commandParams':[{'type':_0x364015['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x7a73b6,_0x212d5a={}){const _0xc9c370=this['editor']['plugins']['get']('TrackChangesEditing'),_0x488377=this['_getSuggestionBlocks'](_0x385395=>_0x385395['is']('element','listItem')&&'numbered'===_0x385395['getAttribute']('listType'));if(_0x488377['length']<0x1)return;const _0x910b0e=_0x488377['map'](_0xbf39a0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xbf39a0,'before'),this['editor']['model']['createPositionAt'](_0xbf39a0,0x0)));this['editor']['model']['change'](()=>{_0xc9c370['markMultiRangeBlockFormat'](_0x910b0e,{'commandName':'listReversed','commandParams':[{'reversed':_0x212d5a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x10a768,_0x7601d3={}){const _0x326ba0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f46b6=this['_getSuggestionBlocks'](_0x55c487=>_0x55c487['is']('element','listItem')&&'numbered'===_0x55c487['getAttribute']('listType'));if(_0x1f46b6['length']<0x1)return;const _0x3c0d7a=_0x1f46b6['map'](_0x2fa1bd=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2fa1bd,'before'),this['editor']['model']['createPositionAt'](_0x2fa1bd,0x0)));this['editor']['model']['change'](()=>{_0x326ba0['markMultiRangeBlockFormat'](_0x3c0d7a,{'commandName':'listStart','commandParams':[{'startIndex':_0x7601d3['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x56544c){if('formatBlock'!=_0x56544c['type']&&'formatInline'!=_0x56544c['type'])return;const _0x57961d=this['editor']['locale'],{data:_0xafcacb}=_0x56544c;if(!_0xafcacb)return;let _0x399ff8,_0xa06bd2;switch(_0xafcacb['commandName']){case'listStyle':_0x399ff8='*Change\x20to:*\x20%0',_0xa06bd2={'type':'format','content':o(_0x57961d,_0x399ff8,o(_0x57961d,this['_getTranslationKeyForListStyle'](_0xafcacb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x399ff8=_0xafcacb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xa06bd2={'type':'format','content':o(_0x57961d,_0x399ff8)};break;case'listStart':_0x399ff8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xa06bd2={'type':'format','content':o(_0x57961d,_0x399ff8,_0xafcacb['commandParams'][0x0]['startIndex'])};}return _0xa06bd2;}['_getSuggestionBlocksForListStyle'](){const _0x997283=this['editor']['plugins']['get']('LegacyListUtils');let _0x35f992=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x35f992[0x0]?.['is']('element','listItem')&&_0x35f992['unshift'](..._0x997283['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x35f992[_0x35f992['length']-0x1]?.['is']('element','listItem')&&_0x35f992['push'](..._0x997283['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x35f992=[...new Set(_0x35f992)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x35f992=_0x35f992['filter'](_0xc1f486=>_0xc1f486['is']('element','listItem'))),_0x35f992;}['_getSuggestionBlocks'](_0x42521a){const _0x4bb74c=this['editor']['plugins']['get']('LegacyListUtils');let _0x18226d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x42521a)['map'](_0x12cb2a=>{const _0x3f85f3=this['editor']['model']['createPositionAt'](_0x12cb2a,0x0);return[..._0x4bb74c['getSiblingNodes'](_0x3f85f3,'backward'),..._0x4bb74c['getSiblingNodes'](_0x3f85f3,'forward')];})['flat']();return _0x18226d=[...new Set(_0x18226d)],_0x18226d;}['_getTranslationKeyForListStyle'](_0x3d9548){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3d9548)||'default')['toUpperCase']()+'_LIST_'+_0x3d9548['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x23bd0e{['afterInit'](){const _0x2ccd2e=this['editor'];if(!_0x2ccd2e['plugins']['has']('MediaEmbedEditing'))return;const _0x5d866b=_0x2ccd2e['plugins']['get']('TrackChangesEditing'),_0x4ee681=_0x2ccd2e['locale'];_0x5d866b['enableCommand']('mediaEmbed'),_0x5d866b['descriptionFactory']['registerElementLabel']('media',_0x45babf=>o(_0x4ee681,'ELEMENT_MEDIA',_0x45babf));}}class bt extends _0x23bd0e{['afterInit'](){const _0xfdaa6f=this['editor'];_0xfdaa6f['plugins']['has']('MentionEditing')&&_0xfdaa6f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x23bd0e{['afterInit'](){const _0x1b10a7=this['editor'];if(!_0x1b10a7['plugins']['has']('MergeFieldsEditing'))return;const _0x336ace=_0x1b10a7['plugins']['get']('TrackChangesEditing'),_0x31c373=_0x1b10a7['locale'];_0x336ace['enableCommand']('insertMergeField'),_0x336ace['enableCommand']('insertMergeFieldBlock'),_0x336ace['enableCommand']('insertMergeFieldImage'),_0x336ace['descriptionFactory']['registerElementLabel']('mergeField',_0x253725=>o(_0x31c373,'ELEMENT_MERGE_FIELD',_0x253725)),_0x336ace['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2bbef0=>o(_0x31c373,'ELEMENT_MERGE_FIELD',_0x2bbef0)),_0x336ace['descriptionFactory']['registerDescriptionCallback'](_0x325842=>{if('insertion'!=_0x325842['type']&&'deletion'!=_0x325842['type'])return;const _0x1e91d9=_0x325842['getContainedElement']();if(null==_0x1e91d9)return;const _0x3a247f=_0x1b10a7['plugins']['get']('MergeFieldsEditing');let _0x1f33f1;switch(_0x3a247f['getMergeFieldType'](_0x1e91d9)){case null:return;case'image':{const _0x4729b2=_0x3a247f['unwrapAffixes'](_0x1e91d9['getAttribute']('src'));_0x1f33f1=_0x3a247f['getLabel'](_0x4729b2)||_0x4729b2;break;}default:{const _0x2c88b7=_0x1e91d9['getAttribute']('id');_0x1f33f1=_0x3a247f['getLabel'](_0x2c88b7)||_0x2c88b7;break;}}return'insertion'==_0x325842['type']?{'type':'insertion','content':o(_0x31c373,'*Insert:*\x20%0','\x22'+_0x1f33f1+'\x22\x20'+o(_0x31c373,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x31c373,'*Remove:*\x20%0','\x22'+_0x1f33f1+'\x22\x20'+o(_0x31c373,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x23bd0e{['afterInit'](){const _0x3a8c56=this['editor'],_0x132a43=_0x3a8c56['plugins']['get']('TrackChangesEditing');_0x3a8c56['plugins']['has']('MultiLevelList')&&(_0x132a43['enableDefaultAttributesIntegration']('multiLevelList'),_0x132a43['descriptionFactory']['registerDescriptionCallback'](_0x10ed76=>this['handleDescriptions'](_0x10ed76)));}['handleDescriptions'](_0x21214f){const _0x442d8b=this['editor']['locale'],{data:_0x2e85f8}=_0x21214f,_0x5e5944={'type':'format','content':''};if(_0x2e85f8&&'listMarkerStyle'==_0x2e85f8['key']){if(!_0x2e85f8['oldValue'])return{'type':'format','content':o(_0x442d8b,'*Set\x20format:*\x20%0',o(_0x442d8b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2e85f8['newValue']+')'};if(!_0x2e85f8['newValue']){let _0x2e6f8c=_0x21214f['head'];for(;_0x2e6f8c;){if(_0x2e6f8c['data']&&'listType'==_0x2e6f8c['data']['key']&&_0x2e6f8c['data']['newValue'])return _0x5e5944;_0x2e6f8c=_0x2e6f8c['next'];}return{'type':'format','content':o(_0x442d8b,'*Remove\x20format:*\x20%0',o(_0x442d8b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2e85f8['oldValue']+')'};}}}}class St extends _0x23bd0e{['afterInit'](){const _0x62da21=this['editor'];if(!_0x62da21['plugins']['has']('PageBreakEditing'))return;_0x62da21['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x57648e=_0x62da21['plugins']['get']('TrackChangesEditing'),_0x1dc24a=_0x62da21['locale'];_0x57648e['descriptionFactory']['registerElementLabel']('pageBreak',_0x228a52=>o(_0x1dc24a,'ELEMENT_PAGE_BREAK',_0x228a52));}}class It extends _0x23bd0e{['afterInit'](){const _0x135372=this['editor'];if(!_0x135372['plugins']['has']('Paragraph'))return;const _0x3112f0=_0x135372['locale'],_0x39dc0e=_0x135372['plugins']['get']('TrackChangesEditing');_0x39dc0e['descriptionFactory']['registerElementLabel']('paragraph',_0x2004c8=>o(_0x3112f0,'ELEMENT_PARAGRAPH',_0x2004c8)),_0x39dc0e['enableDefaultAttributesIntegration']('paragraph'),_0x39dc0e['enableCommand']('insertParagraph');const _0x40ea79=_0x39dc0e['descriptionFactory'];_0x40ea79['registerDescriptionCallback'](_0x50a6be=>{if('insertion'!==_0x50a6be['type'])return;const {start:_0x768493,end:_0x48243d}=_0x50a6be['getFirstRange']();if(!_0x768493['isTouching'](_0x48243d)||!_0x768493['nodeAfter'])return;const _0x599d56=_0x135372['model']['schema'],_0x5c1489=_0x768493['nodeAfter'];return _0x599d56['isBlock'](_0x5c1489)&&!_0x599d56['isLimit'](_0x5c1489)&&_0x599d56['checkChild'](_0x5c1489,'$text')?{'type':'insertion','content':o(_0x3112f0,'*Insert:*\x20%0',_0x40ea79['getItemLabel'](_0x5c1489,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b19dc=this['editor'],_0x1097a0=_0x4b19dc['locale'];_0x4b19dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x245b95=>{if('formatBlock'!=_0x245b95['type'])return;const {data:_0x5e435e}=_0x245b95;return _0x5e435e&&'paragraph'==_0x5e435e['commandName']?{'type':'format','content':o(_0x1097a0,'*Change\x20to:*\x20%0',o(_0x1097a0,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x23bd0e{['afterInit'](){const _0x41c8b4=this['editor'];_0x41c8b4['commands']['get']('replaceSource')&&_0x41c8b4['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x23bd0e{['afterInit'](){const _0x7c6dd7=this['editor'];if(!_0x7c6dd7['plugins']['has']('RemoveFormatEditing'))return;_0x7c6dd7['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19b501=this['editor'];_0x19b501['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x448148=>{if('formatBlock'!=_0x448148['type']&&'formatInline'!=_0x448148['type'])return;const {data:_0x3a8c1b}=_0x448148;return _0x3a8c1b&&'removeFormat'==_0x3a8c1b['commandName']?{'type':'format','content':o(_0x19b501['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x23bd0e{['afterInit'](){const _0x3dd753=this['editor'];if(!_0x3dd753['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2d61a9=_0x3dd753['plugins']['get']('TrackChangesEditing');_0x2d61a9['enableCommand']('goToPreviousRestrictedEditingException'),_0x2d61a9['enableCommand']('goToNextRestrictedEditingException');const _0x1c8884=_0x3dd753['plugins']['get']('RestrictedEditingModeEditing');_0x1c8884['enableCommand']('trackChanges'),_0x1c8884['enableCommand']('acceptSuggestion'),_0x1c8884['enableCommand']('discardSuggestion'),_0x1c8884['enableCommand']('acceptAllSuggestions'),_0x1c8884['enableCommand']('discardAllSuggestions'),_0x1c8884['enableCommand']('acceptSelectedSuggestions'),_0x1c8884['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x23bd0e{['afterInit'](){const _0x4f0b3a=this['editor'];if(!_0x4f0b3a['plugins']['has']('ShiftEnter'))return;const _0x28444f=_0x4f0b3a['plugins']['get']('TrackChangesEditing');_0x28444f['enableCommand']('shiftEnter'),_0x28444f['descriptionFactory']['registerElementLabel']('softBreak',_0x448a4d=>o(_0x4f0b3a['locale'],'ELEMENT_LINE_BREAK',_0x448a4d));}}function an(_0x1a995e,_0x4f2540,_0x170d8c){const _0x15eee6=[];for(const _0x298360 of _0x4f2540['getItems']())_0x298360['hasAttribute'](_0x1a995e)&&_0x15eee6['push'](_0x170d8c['createRangeOn'](_0x298360));return _0x15eee6;}class $t extends _0x23bd0e{['afterInit'](){const _0x5a96b0=this['editor'],_0x3b115a=_0x5a96b0['plugins']['get']('TrackChangesEditing');_0x5a96b0['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x3b115a['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x49c9a2=this['editor'],_0x17f2cf=_0x49c9a2['model'],_0x179682=_0x49c9a2['locale'],_0x9cfab8=_0x49c9a2['plugins']['get']('TrackChangesEditing'),_0x23d7cf='restrictedEditingException',_0x30d077=_0x49c9a2['commands']['get'](_0x23d7cf);_0x9cfab8['enableCommand'](_0x23d7cf,(_0x109f29,_0xc20a8={})=>{const _0x3b28a3=_0x17f2cf['document']['selection'];if(_0x3b28a3['isCollapsed'])return void _0x109f29(_0xc20a8);const _0x4e9545=void 0x0!==_0xc20a8['forceValue']?_0xc20a8['forceValue']:!_0x30d077['value'];_0x17f2cf['change'](()=>{const _0x11e8e8=Array['from'](_0x3b28a3['getRanges']());for(const _0x46702f of _0x11e8e8){const _0x3fee74=_0x4e9545?[_0x46702f]:an(_0x23d7cf,_0x46702f,_0x17f2cf);for(const _0x484307 of _0x3fee74)_0x9cfab8['markInlineFormat'](_0x484307,{'commandName':_0x23d7cf,'commandParams':[{'forceValue':_0x4e9545}]});}});}),_0x9cfab8['descriptionFactory']['registerDescriptionCallback'](_0x2c87fc=>{if('formatBlock'!=_0x2c87fc['type']&&'formatInline'!=_0x2c87fc['type'])return;const {data:_0x3a00a2}=_0x2c87fc;return _0x3a00a2&&_0x3a00a2['commandName']==_0x23d7cf?_0x3a00a2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x179682,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x179682,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x494f99=this['editor'],_0x539421=_0x494f99['locale'],_0x4557ce=_0x494f99['plugins']['get']('TrackChangesEditing'),_0x2d05b6='restrictedEditingExceptionBlock',_0x5b3230=this['editor']['commands']['get'](_0x2d05b6);_0x4557ce['enableCommand'](_0x2d05b6,(_0x1913bf,_0x8a58e={})=>{const _0x145eb9=this['editor']['model']['document']['selection'],_0x4b9ab3=_0x8a58e&&void 0x0!==_0x8a58e['forceValue']?_0x8a58e['forceValue']:!_0x5b3230['value'];let _0x33542b=[];if(_0x4b9ab3){const _0x1095b9=Array['from'](_0x145eb9['getSelectedBlocks']())['filter'](_0x583a24=>function(_0x368e87){return!!_0x368e87['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x583a24)||function(_0x31f1e7,_0x1041e0){const _0x52bcaf=_0x1041e0['createContext'](_0x31f1e7['parent']);if(!_0x1041e0['checkChild'](_0x52bcaf,'restrictedEditingException'))return!0x1;if(!_0x1041e0['checkChild'](_0x52bcaf['push']('restrictedEditingException'),_0x31f1e7))return!0x1;return!0x0;}(_0x583a24,this['editor']['model']['schema']));_0x33542b=to(_0x1095b9,_0x494f99['model']);}else{const _0x5a788d=Array['from'](_0x145eb9['getSelectedBlocks']())['map'](_0x3a203f=>function(_0x30c4f8){let _0x3f53cd=_0x30c4f8;for(;_0x3f53cd['parent'];){if('restrictedEditingException'==_0x3f53cd['parent']['name'])return _0x3f53cd;_0x3f53cd=_0x3f53cd['parent'];}return null;}(_0x3a203f))['filter'](_0xd3ca72=>!!_0xd3ca72);_0x33542b=to(_0x5a788d,_0x494f99['model']);}_0x494f99['model']['change'](()=>{for(const _0x429218 of _0x33542b)_0x4557ce['markBlockFormat'](_0x429218,{'commandName':_0x2d05b6,'commandParams':[{'forceValue':_0x4b9ab3}]});});}),_0x4557ce['descriptionFactory']['registerDescriptionCallback'](_0x52544d=>{const {data:_0x37c208}=_0x52544d;if(_0x37c208&&_0x37c208['commandName']==_0x2d05b6)return _0x37c208['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x539421,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x539421,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x23bd0e{['afterInit'](){const _0xc19216=this['editor'];if(!_0xc19216['plugins']['has']('Style')||!_0xc19216['plugins']['has']('DataSchema'))return;const _0x2f3c31=_0xc19216['plugins']['get']('TrackChangesEditing'),_0x1e98aa=_0xc19216['locale'],_0x588113=_0xc19216['config']['get']('style')||{},_0x3c6f19=_0xc19216['plugins']['get']('GeneralHtmlSupport'),_0x6435b7=_0xc19216['plugins']['get']('StyleUtils')['normalizeConfig'](_0xc19216['plugins']['get']('DataSchema'),_0x588113['definitions']);_0x2f3c31['enableDefaultAttributesIntegration']('style');const _0x2a245d=new Set();for(const _0xef95b0 of _0x6435b7['block']){const _0x484720=_0x3c6f19['getGhsAttributeNameForElement'](_0xef95b0['element']);_0x2a245d['add'](_0x484720);}const _0x48ca6b=new Set();for(const _0x42114e of _0x6435b7['inline']){const _0x58ff31=_0x3c6f19['getGhsAttributeNameForElement'](_0x42114e['element']);_0x48ca6b['add'](_0x58ff31);for(const _0x537600 of _0x42114e['ghsAttributes'])_0x48ca6b['add'](_0x537600);}for(const _0x1f5299 of _0x2a245d)_0x2f3c31['descriptionFactory']['registerAttributeLabel'](_0x1f5299,o(_0x1e98aa,'FORMAT_STYLE'));for(const _0x1fbf16 of _0x48ca6b)_0x2f3c31['descriptionFactory']['registerAttributeLabel'](_0x1fbf16,o(_0x1e98aa,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49ce76=this['editor'],_0x2a8ee6=_0x49ce76['locale'];_0x49ce76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3937b7=>{if('formatBlock'!=_0x3937b7['type']&&'formatInline'!=_0x3937b7['type'])return;const {data:_0x1e75b1}=_0x3937b7;return _0x1e75b1&&'style'===_0x1e75b1['commandName']?_0x1e75b1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2a8ee6,'*Set\x20format:*\x20%0',_0x1e75b1['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2a8ee6,'*Remove\x20format:*\x20%0',_0x1e75b1['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x23bd0e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x545891){super(_0x545891),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x827b7b=this['editor'],_0x40ee21=_0x827b7b['model']['document']['selection'];if(!_0x827b7b['plugins']['has']('TableEditing'))return;const _0x123c86=_0x827b7b['locale'],_0x262f45=_0x827b7b['plugins']['get']('TrackChangesEditing'),_0xa56667=_0x827b7b['plugins']['get']('TableUtils');_0x262f45['descriptionFactory']['registerElementLabel']('table',_0x276ced=>o(_0x123c86,'ELEMENT_TABLE',_0x276ced)),this['_setupColumnsRowsFixing'](),_0x262f45['enableCommand']('insertTable'),_0x262f45['enableCommand']('selectTableRow'),_0x262f45['enableCommand']('selectTableColumn');for(const _0x51666b of['insertTableRowAbove','insertTableRowBelow']){const _0x159382=_0x827b7b['commands']['get'](_0x51666b);_0x262f45['enableCommand'](_0x51666b,_0x52404a=>{_0x827b7b['model']['change'](_0x435f73=>{_0x52404a();const _0x32cce4='above'===_0x159382['order'],_0x1b7399=_0xa56667['getSelectionAffectedTableCells'](_0x40ee21),_0x9aa55c=_0xa56667['getRowIndexes'](_0x1b7399),_0x559987=_0x32cce4?_0x9aa55c['first']-0x1:_0x9aa55c['last']+0x1,_0x51535d=_0x1b7399[0x0]['findAncestor']('table'),_0x421b8a=_0xa56667['createTableWalker'](_0x51535d,{'startRow':_0x559987,'endRow':_0x559987}),_0x36d35d=Array['from'](_0x421b8a)['map'](_0x59c9de=>_0x435f73['createRangeOn'](_0x59c9de['cell']));_0x262f45['markMultiRangeInsertion'](_0x36d35d,'tableRow');});});}for(const _0x9b4eb0 of['insertTableColumnLeft','insertTableColumnRight']){const _0x21033d=_0x827b7b['commands']['get'](_0x9b4eb0);_0x262f45['enableCommand'](_0x9b4eb0,_0x5557c4=>{_0x827b7b['model']['change'](_0x8f555e=>{_0x5557c4();const _0x4dd2ed='left'===_0x21033d['order'],_0x57fc01=_0xa56667['getSelectionAffectedTableCells'](_0x40ee21),_0x420751=_0xa56667['getColumnIndexes'](_0x57fc01),_0x2247d8=_0x4dd2ed?_0x420751['first']-0x1:_0x420751['last']+0x1,_0x32a3fa=_0x57fc01[0x0]['findAncestor']('table'),_0x83f462=_0xa56667['createTableWalker'](_0x32a3fa,{'startRow':0x0,'column':_0x2247d8,'includeAllSlots':!0x1}),_0x193b6e=Array['from'](_0x83f462)['map'](_0x646489=>_0x8f555e['createRangeOn'](_0x646489['cell']));_0x262f45['markMultiRangeInsertion'](_0x193b6e,'tableColumn');});});}for(const _0x197f9f of['removeTableRow','removeTableColumn']){const _0x450fd5=_0x197f9f['substr'](0xb),_0x3b023a=_0x450fd5['toLowerCase'](),_0x1621db=_0x3b023a['substr'](0x0,0x3)+'span',_0x444511='table'+_0x450fd5,_0x40a2e2='min'+_0x450fd5,_0x381fe6='max'+_0x450fd5;_0x262f45['enableCommand'](_0x197f9f,()=>{_0x827b7b['model']['change'](_0x271d7c=>{const _0x35a1f1=_0xa56667['getSelectionAffectedTableCells'](_0x40ee21),_0x45782d=_0x35a1f1[0x0]['findAncestor']('table');let _0x2207ff;if('removeTableRow'==_0x197f9f){const _0x46ae18=_0xa56667['getRowIndexes'](_0x35a1f1);_0x2207ff={'startRow':_0x46ae18['first'],'endRow':_0x46ae18['last'],'includeAllSlots':!0x0};}else{const _0xa4c474=_0xa56667['getColumnIndexes'](_0x35a1f1);_0x2207ff={'startColumn':_0xa4c474['first'],'endColumn':_0xa4c474['last'],'includeAllSlots':!0x0};}const _0x1298e1=_0xa56667['createTableWalker'](_0x45782d,_0x2207ff),_0x16b8b1=Array['from'](_0x1298e1)['map'](({cell:_0x2ebc11})=>_0x2ebc11),_0x488628=_e(_0x16b8b1['filter'](_0x917c04=>_0x917c04['hasAttribute'](_0x1621db))),_0xf27f62=_e(_0x16b8b1['filter'](_0x14e5bb=>!_0x14e5bb['hasAttribute'](_0x1621db)))['map'](_0x53c9dd=>_0x271d7c['createRangeOn'](_0x53c9dd)),_0x2b8048=_0x262f45['markMultiRangeDeletion'](_0xf27f62,_0x444511);if(_0x2b8048&&('tableRow'==_0x2b8048['subType']||'tableColumn'==_0x2b8048['subType'])){const _0x357908=this['_getSuggestionCoords'](_0x2b8048);for(const _0x1edebd of _0x488628){const _0x18a826=_0x271d7c['createRangeOn'](_0x1edebd),_0x2fba20=_0xa56667['getCellLocation'](_0x1edebd),_0x88bce=_0x1edebd['getAttribute'](_0x1621db)-0x1,_0x18d5ab=_0x357908[_0x40a2e2],_0x597d47=_0x357908[_0x381fe6];_0x18d5ab<=_0x2fba20[_0x3b023a]&&_0x2fba20[_0x3b023a]+_0x88bce<=_0x597d47&&_0x2b8048['addRange'](_0x18a826);}}});});}function _0x1eae20(_0x4064fe){const _0x318ed9=Array['from'](_0x40ee21['getRanges']())['map'](_0x5c00ce=>_0x32b072['fromRange'](_0x5c00ce));_0x827b7b['model']['change'](_0x5bbe26=>{const _0x3c5def=_0x5bbe26['batch'];_0x4064fe=_0x4064fe['filter'](_0x20c8e1=>'$graveyard'!=_0x20c8e1['root']['rootName']),_0x5bbe26['setSelection'](_0x4064fe),_0x827b7b['commands']['get']('removeTableRow')['refresh'](),_0x827b7b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x827b7b['model']['enqueueChange'](()=>{_0x827b7b['model']['enqueueChange'](_0x3c5def,_0x46ce6f=>{const _0x4599e9=_0x318ed9['filter'](_0x368f64=>'$graveyard'!=_0x368f64['root']['rootName']);_0x4599e9['length']>0x0&&_0x46ce6f['setSelection'](_0x4599e9);for(const _0x34cc53 of _0x318ed9)_0x34cc53['detach']();});});});}function _0x45365a(_0x23cb7b){_0x827b7b['model']['change'](_0x458e33=>{const _0x1a8b14=Array['from'](_0x40ee21['getRanges']())['map'](_0x51d7b1=>_0x32b072['fromRange'](_0x51d7b1)),_0x2ea130=[];for(const _0x348e9a of _0x23cb7b)for(const _0x3f7eba of _0x348e9a['getItems']({'shallow':!0x0}))_0x2ea130['push'](_0x3f7eba);for(const _0xd74902 of _0x2ea130)'$graveyard'!=_0xd74902['root']['rootName']&&(_0x458e33['setSelection'](_0x458e33['createPositionAt'](_0xd74902,0x0)),_0x827b7b['commands']['get']('removeTableColumn')['refresh'](),_0x827b7b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1eb3d0=_0x1a8b14['filter'](_0x1231f9=>'$graveyard'!=_0x1231f9['root']['rootName']);_0x1eb3d0['length']>0x0&&_0x458e33['setSelection'](_0x1eb3d0);for(const _0x3c8b4d of _0x1a8b14)_0x3c8b4d['detach']();});}function _0x320537(_0x293ad1,_0x4c364d){return _0x4c364d['every'](_0x2f5482=>_0x293ad1['some'](_0x1cb982=>_0x1cb982['end']['isEqual'](_0x2f5482['start'])||_0x2f5482['end']['isEqual'](_0x1cb982['start'])));}function _0x381abe(_0x25b963,_0x3c8c99){return!_0x25b963['some'](_0x292631=>_0x3c8c99['some'](_0x2db333=>_0x292631['isIntersecting'](_0x2db333)))&&_0x25b963['some'](_0x816219=>_0x3c8c99['some'](_0x5599e2=>_0x816219['end']['isTouching'](_0x5599e2['start'])));}_0x262f45['descriptionFactory']['registerDescriptionCallback'](_0x15fba4=>{if('insertion'!=_0x15fba4['type']&&'deletion'!=_0x15fba4['type'])return;const _0x3ebabf=_0x15fba4['getContainedElement']();if(null!=_0x3ebabf&&_0x3ebabf['is']('element','table')){if('insertion'==_0x15fba4['type']){const _0xbe4b3f=_0x15fba4['getItems']()['filter'](_0x2886cc=>_0x2886cc['is']('$textProxy'))['map'](_0x28da3a=>_0x28da3a['data']);if(_0xbe4b3f['length'])return{'type':'insertion','content':o(_0x123c86,'*Insert:*\x20%0',o(_0x123c86,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xbe4b3f['join']('\x20')+'\x22'))};}if('deletion'==_0x15fba4['type']){const _0x5af60a=_0x15fba4['getItems']()['filter'](_0x3a3ea5=>_0x3a3ea5['is']('$textProxy'))['map'](_0x3d2adf=>_0x3d2adf['data']);if(_0x5af60a['length'])return{'type':'deletion','content':o(_0x123c86,'*Remove:*\x20%0',o(_0x123c86,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5af60a['join']('\x20')+'\x22'))};}}}),_0x262f45['descriptionFactory']['registerDescriptionCallback'](_0x51486c=>{if('tableRow'==_0x51486c['subType']){const _0x2ec5f0=_0x51486c['getItems']()['filter'](_0x52d977=>_0x52d977['is']('$textProxy'))['map'](_0x3e1014=>_0x3e1014['data']),_0x33c3c9=this['_getSuggestionCoords'](_0x51486c),_0x345b90=_0x33c3c9['maxRow']-_0x33c3c9['minRow']+0x1;if('insertion'==_0x51486c['type'])return _0x2ec5f0['length']?{'type':'insertion','content':o(_0x123c86,'*Insert:*\x20%0',o(_0x123c86,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x345b90,'\x22'+_0x2ec5f0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x123c86,'*Insert:*\x20%0',o(_0x123c86,'ELEMENT_TABLE_ROW',_0x345b90))};if('deletion'==_0x51486c['type'])return _0x2ec5f0['length']?{'type':'deletion','content':o(_0x123c86,'*Remove:*\x20%0',o(_0x123c86,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x345b90,'\x22'+_0x2ec5f0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x123c86,'*Remove:*\x20%0',o(_0x123c86,'ELEMENT_TABLE_ROW',_0x345b90))};}if('tableColumn'==_0x51486c['subType']){const _0x247ffb=_0x51486c['getItems']()['filter'](_0x520f73=>_0x520f73['is']('$textProxy'))['map'](_0x209978=>_0x209978['data']),_0x26ce17=this['_getSuggestionCoords'](_0x51486c),_0x1d62b7=_0x26ce17['maxColumn']-_0x26ce17['minColumn']+0x1;if('insertion'==_0x51486c['type'])return _0x247ffb['length']?{'type':'insertion','content':o(_0x123c86,'*Insert:*\x20%0',o(_0x123c86,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1d62b7,'\x22'+_0x247ffb['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x123c86,'*Insert:*\x20%0',o(_0x123c86,'ELEMENT_TABLE_COLUMN',_0x1d62b7))};if('deletion'==_0x51486c['type'])return _0x247ffb['length']?{'type':'deletion','content':o(_0x123c86,'*Remove:*\x20%0',o(_0x123c86,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1d62b7,'\x22'+_0x247ffb['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x123c86,'*Remove:*\x20%0',o(_0x123c86,'ELEMENT_TABLE_COLUMN',_0x1d62b7))};}}),_0x262f45['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1eae20),_0x262f45['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1eae20),_0x262f45['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x45365a),_0x262f45['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x45365a),_0x262f45['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x320537),_0x262f45['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x320537),_0x262f45['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x381abe),_0x262f45['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x381abe);}['_acceptFormatSuggestionCallbackFactory'](){const _0x472589=this['editor'],_0x308491=_0x472589['model']['document']['selection'];return(_0x5df282,_0x37b73f)=>{_0x472589['model']['change'](_0x380039=>{const {commandName:_0x41a8f2,commandParams:_0x129f54}=_0x37b73f;let _0x547a1a=_0x5df282[0x0]['end']['nodeBefore'];_0x129f54&&_0x129f54[0x0]&&!0x1===_0x129f54[0x0]['forceValue']&&(_0x547a1a=_0x5df282[0x0]['start']['nodeAfter']);const _0x3e9bd0=_0x380039['createRangeIn'](_0x547a1a);if('$graveyard'==_0x3e9bd0['root']['rootName'])return;const _0x497910=Array['from'](_0x308491['getRanges']())['map'](_0x2f0f46=>_0x32b072['fromRange'](_0x2f0f46));_0x380039['setSelection'](_0x3e9bd0),_0x472589['commands']['get'](_0x41a8f2)['refresh'](),_0x129f54['push']({'forceDefaultExecution':!0x0}),_0x472589['execute'](_0x41a8f2,..._0x129f54);const _0x1cc9d5=_0x497910['filter'](_0x2a1fad=>'$graveyard'!=_0x2a1fad['root']['rootName']);_0x1cc9d5['length']>0x0&&_0x380039['setSelection'](_0x1cc9d5);for(const _0x3bc982 of _0x497910)_0x3bc982['detach']();});};}['_getCoordsForCells'](_0x5880b8){const _0x451e57=this['editor']['plugins']['get']('TableUtils');let _0x1db7ec=Number['MAX_SAFE_INTEGER'],_0x43f3c4=Number['MIN_SAFE_INTEGER'],_0x41483a=Number['MAX_SAFE_INTEGER'],_0x231452=Number['MIN_SAFE_INTEGER'];for(const _0x5907fb of _0x5880b8){if('$graveyard'==_0x5907fb['root']['rootName'])continue;const {row:_0x3f4ba6,column:_0x41bd49}=_0x451e57['getCellLocation'](_0x5907fb),_0x1e3f28=_0x5907fb['hasAttribute']('rowspan')?_0x5907fb['getAttribute']('rowspan')-0x1:0x0,_0xc5588d=_0x5907fb['hasAttribute']('colspan')?_0x5907fb['getAttribute']('colspan')-0x1:0x0;_0x1db7ec=_0x3f4ba6<_0x1db7ec?_0x3f4ba6:_0x1db7ec,_0x43f3c4=_0x3f4ba6+_0x1e3f28>_0x43f3c4?_0x3f4ba6+_0x1e3f28:_0x43f3c4,_0x41483a=_0x41bd49<_0x41483a?_0x41bd49:_0x41483a,_0x231452=_0x41bd49+_0xc5588d>_0x231452?_0x41bd49+_0xc5588d:_0x231452;}return{'minRow':_0x1db7ec,'maxRow':_0x43f3c4,'minColumn':_0x41483a,'maxColumn':_0x231452};}['_setupColumnsRowsFixing'](){const _0x89fefa=this['editor'],_0x48d27b=_0x89fefa['plugins']['get']('TrackChangesEditing'),_0x2ea617=_0x89fefa['plugins']['get']('TableUtils');_0x89fefa['model']['document']['on']('change:data',()=>{const _0x49c080=Array['from'](_0x89fefa['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f3f56,data:_0x3681b5}of _0x49c080){const {group:_0x1b074c,id:_0x3adabd,subType:_0xecd80a}=_0x48d27b['_splitMarkerName'](_0x2f3f56);if('suggestion'!=_0x1b074c)continue;if(null!=_0x3681b5['oldRange'])continue;const _0x1b2b5c=_0x48d27b['getSuggestion'](_0x3adabd);this['_tablePostFixingSubtypes']['includes'](_0xecd80a)&&this['_tableSuggestions']['add'](_0x1b2b5c);}},{'priority':'low'});const _0x3ae3ae=(_0x52dbb3,_0x384f7f)=>{let _0x47afbc=!0x1;const _0x2a07ac=_0x384f7f['createRangeOn'](_0x52dbb3),_0x56f67e=_0x52dbb3['findAncestor']('table'),_0x84e436=_0x2ea617['getCellLocation'](_0x52dbb3);for(const _0x3aa1ad of this['_tableSuggestions']){const _0x13383e=_0x3aa1ad['subType'],_0x5652c8=_0x13383e['startsWith']('tablePaste'),_0x21d7ae=_0x13383e['substr'](_0x5652c8?0xa:0x5),_0x2861b3=_0x21d7ae['toLowerCase'](),_0x1ee5a9=_0x2861b3['substr'](0x0,0x3)+'span',_0x134c5c='min'+_0x21d7ae,_0x45404e='max'+_0x21d7ae;if(!_0x3aa1ad['isInContent'])continue;if(_0x56f67e!=_0x3aa1ad['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3aa1ad['isIntersectingWithRange'](_0x2a07ac))continue;const _0x17effc=_0x52dbb3['hasAttribute'](_0x1ee5a9)?_0x52dbb3['getAttribute'](_0x1ee5a9)-0x1:0x0,_0x1efbc4=this['_getSuggestionCoords'](_0x3aa1ad),_0x3ee625=_0x1efbc4[_0x134c5c],_0x3a7827=_0x1efbc4[_0x45404e];_0x3ee625<=_0x84e436[_0x2861b3]&&_0x84e436[_0x2861b3]+_0x17effc<=_0x3a7827&&(_0x3aa1ad['addRange'](_0x2a07ac),_0x47afbc=!0x0);}return _0x47afbc;};_0x89fefa['model']['document']['registerPostFixer'](_0x14fa55=>{let _0x5b5045=!0x1;for(const _0x20957d of _0x89fefa['model']['document']['differ']['getChanges']())if('insert'==_0x20957d['type']){if('tableRow'==_0x20957d['name']){for(const _0xd22c72 of _0x20957d['position']['nodeAfter']['getChildren']())_0x5b5045=_0x5b5045||_0x3ae3ae(_0xd22c72,_0x14fa55);}else'tableCell'==_0x20957d['name']&&(_0x5b5045=_0x5b5045||_0x3ae3ae(_0x20957d['position']['nodeAfter'],_0x14fa55));}return _0x5b5045;});}['_getSuggestionCoords'](_0xd01387){return this['_getCoordsForCells'](_0xd01387['getRanges']()['map'](_0x98bede=>_0x98bede['start']['nodeAfter']));}}function _e(_0x4da243){return Array['from'](new Set(_0x4da243)['values']());}class Bt extends _0x23bd0e{static get['requires'](){return[Dt];}['afterInit'](){const _0x5c42de=this['editor'],_0x4dac39=_0x5c42de['model']['document']['selection'],_0x20f0e4=_0x5c42de['locale'];if(!_0x5c42de['plugins']['has']('TableEditing'))return;const _0x27c7b4=_0x5c42de['plugins']['get']('TrackChangesEditing'),_0x4924fc=_0x5c42de['plugins']['get']('TableUtils'),_0x46c204=_0x5c42de['plugins']['get'](Dt);_0x46c204['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x27c7b4['enableCommand']('mergeTableCells',()=>{const _0x47ec88=_0x4924fc['getSelectionAffectedTableCells'](_0x5c42de['model']['document']['selection']);_0x5c42de['model']['change'](()=>{_0x27c7b4['markMultiRangeBlockFormat'](_0x47ec88,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5c42de['commands']['get']('mergeTableCells')['on']('execute',(_0x4ae4e3,_0x1f3fa4)=>{_0x5c42de['commands']['get']('trackChanges')['value']&&(_0x1f3fa4['length']>0x0&&_0x1f3fa4[_0x1f3fa4['length']-0x1]&&_0x1f3fa4[_0x1f3fa4['length']-0x1]['forceDefaultExecution']||_0x27c7b4['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4ae4e3['stop']());},{'priority':'highest'});for(const _0x2a0510 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5aca06=_0x5c42de['commands']['get'](_0x2a0510);_0x27c7b4['enableCommand'](_0x2a0510,()=>{const _0x286854=_0x5c42de['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x170a9d=>_0x170a9d['is']('element','tableCell')),_0x5be310=_0x5aca06['value'];_0x5c42de['model']['change'](()=>{_0x27c7b4['markMultiRangeBlockFormat']([_0x286854,_0x5be310],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xd828f4 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4cf2b=_0x5c42de['commands']['get'](_0xd828f4);_0x27c7b4['enableCommand'](_0xd828f4,()=>{const _0x39e349=_0x4924fc['getSelectionAffectedTableCells'](_0x5c42de['model']['document']['selection'])[0x0],_0x5da3e3=_0x39e349['findAncestor']('table'),{column:_0x4efcb9,row:_0x3eef45}=_0x4924fc['getCellLocation'](_0x39e349);let _0x2079a9=[];if('horizontally'==_0x4cf2b['direction']){const _0x5747d1=_0x4924fc['createTableWalker'](_0x5da3e3,{'startRow':_0x3eef45,'endRow':_0x3eef45,'includeAllSlots':!0x0});_0x2079a9=Array['from'](_0x5747d1)['map'](_0x1478cb=>_0x1478cb['cell']);}else{const _0x4e32dc=_0x4924fc['createTableWalker'](_0x5da3e3,{'column':_0x4efcb9,'includeAllSlots':!0x0});_0x2079a9=Array['from'](_0x4e32dc)['map'](_0x1fbbdc=>_0x1fbbdc['cell']);}_0x5c42de['model']['change'](_0xe77d13=>{_0x27c7b4['markBlockFormat'](_0xe77d13['createRangeOn'](_0x39e349),{'commandName':_0xd828f4,'commandParams':[]},_0x2079a9,_0xd828f4);});});}_0x27c7b4['descriptionFactory']['registerDescriptionCallback'](_0x4c6286=>{if('formatBlock'!=_0x4c6286['type']&&'formatInline'!=_0x4c6286['type'])return;const {data:_0x20ec40}=_0x4c6286;return _0x20ec40&&'mergeTableCells'==_0x20ec40['commandName']?{'type':'format','content':o(_0x20f0e4,'*Merge\x20cells*')}:void 0x0;}),_0x27c7b4['descriptionFactory']['registerDescriptionCallback'](_0x58b4cd=>{if('formatBlock'!=_0x58b4cd['type']&&'formatInline'!=_0x58b4cd['type'])return;const {data:_0x246569}=_0x58b4cd;return _0x246569?'splitTableCellVertically'==_0x246569['commandName']?{'type':'format','content':o(_0x20f0e4,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x246569['commandName']?{'type':'format','content':o(_0x20f0e4,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x36beb7=_0x46c204['_acceptFormatSuggestionCallbackFactory']();for(const _0x3f2095 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x27c7b4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f2095,'accept',_0x36beb7);for(const _0x2dac11 of['splitTableCellVertically','splitTableCellHorizontally'])_0x27c7b4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2dac11,'accept',_0x36beb7);_0x27c7b4['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4d98bf=>{_0x5c42de['model']['change'](_0x328bfc=>{const _0x3f6ff7=Array['from'](_0x4dac39['getRanges']())['map'](_0x5c7e8b=>_0x32b072['fromRange'](_0x5c7e8b));_0x328bfc['setSelection'](_0x4d98bf),_0x5c42de['commands']['get']('mergeTableCells')['refresh'](),_0x5c42de['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x159ce0=_0x3f6ff7['filter'](_0x1948e1=>'$graveyard'!=_0x1948e1['root']['rootName']);_0x159ce0['length']>0x0&&_0x328bfc['setSelection'](_0x159ce0);for(const _0x196cf0 of _0x3f6ff7)_0x196cf0['detach']();});});for(const _0x4e6a54 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5da8bc=_0x5c42de['commands']['get'](_0x4e6a54);_0x5da8bc['on']('set:isEnabled',(_0x72d64c,_0x3137c7,_0x3c9ce0)=>{if(_0x3c9ce0){const _0x29820a=_0x5c42de['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xf8c7a0=>_0xf8c7a0['is']('element','tableCell'));this['_areMergableCells'](_0x5da8bc['value'],_0x29820a)||(_0x72d64c['return']=!0x1,_0x72d64c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3b7f9b=this['editor']['commands']['get']('mergeTableCells'),_0x5de692=this['editor']['plugins']['get']('TableUtils');if(!_0x3b7f9b['isEnabled'])return!0x1;const _0x5841b6=_0x5de692['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x44c690 of _0x5841b6)for(const _0x5b8a2b of _0x5841b6)if(_0x44c690!=_0x5b8a2b&&!this['_areMergableCells'](_0x44c690,_0x5b8a2b))return!0x1;return!0x0;}['_areMergableCells'](_0x5ae23f,_0x1759eb){const _0x14d8b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x319b8f=this['editor']['model']['createRangeOn'](_0x5ae23f),_0x3103c8=this['editor']['model']['createRangeOn'](_0x1759eb),_0x45244c=new Set(),_0x42fdde=new Set();for(const _0x2a2038 of _0x14d8b0['getSuggestions']())if(('insertion'==_0x2a2038['type']||'deletion'==_0x2a2038['type']||'mergeTableCells'==_0x2a2038['subType'])&&_0x2a2038['isInContent']){for(const _0x17ff39 of _0x2a2038['getRanges']())_0x17ff39['containsRange'](_0x319b8f,!0x0)&&_0x45244c['add'](_0x2a2038['type']+':'+_0x2a2038['author']['id']),_0x17ff39['containsRange'](_0x3103c8,!0x0)&&_0x42fdde['add'](_0x2a2038['type']+':'+_0x2a2038['author']['id']);}if(_0x45244c['size']!=_0x42fdde['size'])return!0x1;for(const _0xc65477 of _0x45244c)if(!_0x42fdde['has'](_0xc65477))return!0x1;return!0x0;}}class Ot extends _0x23bd0e{static get['requires'](){return[Dt];}['afterInit'](){const _0x55b23b=this['editor'];if(!_0x55b23b['plugins']['has']('TableEditing'))return;const _0x598abf=_0x55b23b['locale'],_0x17ee5b=_0x55b23b['plugins']['get']('TrackChangesEditing');_0x17ee5b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x17ee5b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x17ee5b['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x598abf,'FORMAT_HEADER_ROW')),_0x17ee5b['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x598abf,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4838d4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x365b9e=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x4838d4['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x365b9e),_0x4838d4['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x365b9e),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x4e9b60=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4648d1=this['editor']['plugins']['get']('TableUtils');function _0x3ffaf5({showActiveMarker:_0x17b02e=!0x0,setDataAttribute:_0x2d4511=!0x0}={}){return(_0x51a618,_0x321552,_0x18b1a7)=>{const {type:_0x2549af,id:_0x52385c}=_0x4e9b60['_splitMarkerName'](_0x321552['markerName']);if(!_0x4e9b60['hasSuggestion'](_0x52385c))return;const _0x2d5ad4=_0x4e9b60['getSuggestion'](_0x52385c),_0x2a749c=_0x2d5ad4['data'];if('formatBlock'!=_0x2d5ad4['type']||!_0x2a749c||'setTableColumnHeader'!=_0x2a749c['commandName'])return;if(_0x321552['item'])return void _0x51a618['stop']();if(!_0x18b1a7['consumable']['consume'](_0x321552['markerRange'],_0x51a618['name']))return;const _0x2e165e=_0x321552['markerRange']['start']['nodeAfter'],_0x28b21d=_0x321552['markerRange']['end']['nodeBefore'],_0x156a10=_0x2e165e['parent']['parent'],{column:_0x469e7b}=_0x4648d1['getCellLocation'](_0x2e165e),{column:_0xfcff8a}=_0x4648d1['getCellLocation'](_0x28b21d);for(let _0x2f4ab8=_0x469e7b;_0x2f4ab8<=_0xfcff8a;_0x2f4ab8++){const _0x19f9d3=_0x4648d1['createTableWalker'](_0x156a10,{'column':_0x2f4ab8,'includeAllSlots':!0x1});for(const _0x18a9f2 of _0x19f9d3){const _0x39f2bd=_0x18a9f2['cell'],_0x4e4771=_0x18b1a7['mapper']['toViewElement'](_0x39f2bd);_0x18b1a7['writer']['addClass']('ck-suggestion-marker-'+_0x2549af,_0x4e4771),_0x2d4511&&_0x18b1a7['writer']['setAttribute']('data-suggestion',_0x52385c,_0x4e4771),_0x18b1a7['mapper']['bindElementToMarker'](_0x4e4771,_0x321552['markerName']),_0x17b02e&&(_0x4e9b60['activeMarkers']['includes'](_0x321552['markerName'])?_0x18b1a7['writer']['addClass']('ck-suggestion-marker--active',_0x4e4771):_0x18b1a7['writer']['removeClass']('ck-suggestion-marker--active',_0x4e4771));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3ffaf5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x44f242,_0x13fbaa,_0x22a072)=>{_0x22a072['options']['showSuggestionHighlights']&&_0x3ffaf5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x44f242,_0x13fbaa,_0x22a072);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x188b0c,_0x35dd74,_0x5e9330)=>{const {type:_0x3c0eef,id:_0x6e7a9}=_0x4e9b60['_splitMarkerName'](_0x35dd74['markerName']);if(!_0x4e9b60['hasSuggestion'](_0x6e7a9))return;const _0x4cf4dc=_0x4e9b60['getSuggestion'](_0x6e7a9),_0x9bef76=_0x4cf4dc['data'];if('formatBlock'!=_0x4cf4dc['type']||!_0x9bef76||'setTableColumnHeader'!=_0x9bef76['commandName'])return;const _0x386f1f=_0x5e9330['mapper']['markerNameToElements'](_0x35dd74['markerName']);if(_0x386f1f){for(const _0x136d5b of _0x386f1f)_0x5e9330['writer']['removeClass']('ck-suggestion-marker-'+_0x3c0eef,_0x136d5b),_0x5e9330['writer']['removeClass']('ck-suggestion-marker--active',_0x136d5b),_0x5e9330['writer']['removeAttribute']('data-suggestion',_0x136d5b),_0x5e9330['mapper']['unbindElementFromMarkerName'](_0x136d5b,_0x35dd74['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x4edb8e=this['editor'],_0x57233b=_0x4edb8e['locale'];function _0x10a730(_0x518780){return{'type':'format','content':o(_0x57233b,'*Format:*\x20%0',_0x518780)};}_0x4edb8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1166d2=>{if('formatBlock'!=_0x1166d2['type'])return;const {data:_0x473f80}=_0x1166d2;if(_0x473f80){if('setTableRowHeader'==_0x473f80['commandName']){const _0x3e8764=_0x473f80['commandParams'][0x0]['forceValue'];return _0x10a730(o(_0x57233b,_0x3e8764?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x473f80['commandName']){const _0x5e9c49=_0x473f80['commandParams'][0x0]['forceValue'];return _0x10a730(o(_0x57233b,_0x5e9c49?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x23bd0e{['afterInit'](){const _0x3d1a78=this['editor'],_0x4893d0=_0x3d1a78['locale'],_0x32f9c7=_0x3d1a78['plugins']['get']('TrackChangesEditing');function _0x114893(_0x281d74){return{'type':'format','content':''+o(_0x4893d0,'*Set\x20table\x20type:*\x20%0',_0x281d74)};}_0x3d1a78['plugins']['has']('TableLayout')&&(_0x32f9c7['enableCommand']('insertTableLayout'),_0x32f9c7['enableDefaultAttributesIntegration']('tableType'),_0x32f9c7['descriptionFactory']['registerElementLabel'](_0x42010e=>_0x42010e['is']('element','table')&&'layout'===_0x42010e['getAttribute']('tableType'),_0x43aea0=>o(_0x4893d0,'ELEMENT_LAYOUT_TABLE',_0x43aea0)),_0x32f9c7['descriptionFactory']['registerDescriptionCallback'](_0x49ce58=>{const {data:_0x2f5b6f}=_0x49ce58;if(_0x2f5b6f&&'tableType'==_0x2f5b6f['key'])switch(_0x2f5b6f['newValue']){case'layout':return _0x114893(o(_0x4893d0,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x114893(o(_0x4893d0,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Re['map'](_0x224e1e=>[_0x224e1e,null]));class Mt extends _0x23bd0e{static get['requires'](){return[Dt];}['afterInit'](){const _0x3a263d=this['editor'];if(!_0x3a263d['plugins']['has']('TableClipboard'))return;const _0x495761=_0x3a263d['plugins']['get']('TrackChangesEditing'),_0x550ca8=_0x3a263d['plugins']['get']('TableUtils'),_0x3b11e0=_0x3a263d['plugins']['get'](Dt),_0x3b0d5c=_0x3a263d['plugins']['get']('TableClipboard'),_0x20eb91=_0x3a263d['plugins']['get']('TableSelection'),_0x1bfcc8=_0x3a263d['plugins']['get'](_0x5bb1c3);_0x3b11e0['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3a263d['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3a263d['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3403e8=null,_0x1035e4=!0x1;_0x1bfcc8['on']('contentInsertion',(_0x36b653,_0x549110)=>{_0x1035e4='paste'===_0x549110['method'];}),_0x3a263d['model']['on']('insertContent',(_0x1b528a,_0x45f180)=>{if(!_0x1035e4&&null===_0x20eb91['getSelectedTableCells']())return;const [_0x10ebac,_0x322aa7]=_0x45f180,_0x502a8c=_0x45f180[_0x45f180['length']-0x1];_0x502a8c&&_0x502a8c['forceDefaultExecution']||_0x495761['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x14d665,_0x1d2f01,_0x3ecb53,_0x6ccf5e,_0x3d4745){if(_0x1d2f01&&!_0x1d2f01['is']('documentSelection'))return!0x1;const _0x26467e=_0x3d4745['getTableIfOnlyTableInContent'](_0x14d665,_0x3ecb53);if(!_0x26467e||!Oe(_0x26467e,void 0x0,_0x6ccf5e))return!0x1;const _0x36bebc=_0x6ccf5e['getSelectionAffectedTableCells'](_0x3ecb53['document']['selection']);if(!_0x36bebc['length'])return!0x1;const _0x2139d3=_0x36bebc[0x0]['findAncestor']('table'),_0x14c707=_0x6ccf5e['getRowIndexes'](_0x36bebc),_0x43b135=_0x6ccf5e['getColumnIndexes'](_0x36bebc),_0x2ac0ca={'startRow':_0x14c707['first'],'endRow':_0x14c707['last'],'startColumn':_0x43b135['first'],'endColumn':_0x43b135['last']};return 0x1==_0x36bebc['length']&&(_0x2ac0ca['endRow']+=_0x6ccf5e['getRows'](_0x26467e)-0x1,_0x2ac0ca['endColumn']+=_0x6ccf5e['getColumns'](_0x26467e)-0x1),Oe(_0x2139d3,_0x2ac0ca,_0x6ccf5e);}(_0x10ebac,_0x322aa7,_0x3a263d['model'],_0x550ca8,_0x3b0d5c)&&(_0x1b528a['stop'](),_0x3403e8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3a263d['model']['change'](()=>{_0x3a263d['model']['insertContent'](_0x45f180[0x0],_0x45f180[0x1],_0x45f180[0x2],{'forceDefaultExecution':!0x0});const _0x4daa91=_0x37bdeb(),{rowInsertionRanges:_0x49a4c5,columnInsertionRanges:_0xd867a5,insertionRanges:_0xf84c7b,deletionRanges:_0x509956,cells:_0x217aea}=_0x3403e8;_0x49a4c5['length']&&_0x495761['markMultiRangeInsertion'](_0x49a4c5,'tablePasteRow',{'tablePasteChainId':_0x4daa91}),_0xd867a5['length']&&_0x495761['markMultiRangeInsertion'](_0xd867a5,'tablePasteColumn',{'tablePasteChainId':_0x4daa91}),_0xf84c7b['length']&&(_0x495761['markMultiRangeInsertion'](_0xf84c7b,'tablePaste',{'tablePasteChainId':_0x4daa91,'skipNestingCheck':!0x0}),_0xf84c7b['forEach'](_0x199349=>_0x199349['detach']?.())),_0x509956['length']&&(_0x495761['markMultiRangeDeletion'](_0x509956,'tablePaste',{'tablePasteChainId':_0x4daa91,'skipNestingCheck':!0x0}),_0x509956['forEach'](_0x2d5fcd=>_0x2d5fcd['detach']?.()));const _0x5f1d09=_0x495761['markMultiRangeBlockFormat'](_0x217aea['map'](({element:_0x173d02})=>_0x173d02),{'formatGroupId':_0x37bdeb()},[],'tablePasteCell',{'tablePasteChainId':_0x4daa91});if(_0x5f1d09){const _0x2383ff=_0x5f1d09['getMarkers'](),_0x3c4551=[];for(const {element:_0x35ebe6,attributes:_0x4a365f}of _0x217aea){if(!_0x4a365f)continue;const _0x3b47de=_0x3a263d['model']['createRangeOn'](_0x35ebe6),_0x434067=_0x2383ff['find'](_0x7e034d=>_0x7e034d['getRange']()['isEqual'](_0x3b47de));_0x434067&&_0x3c4551['push']([_0x434067['name'],_0x4a365f]);}_0x3c4551['length']&&_0x5f1d09['setAttribute']('markerAttributes',Object['fromEntries'](_0x3c4551));}_0x3403e8=null;}));},{'priority':_0xa26190['high']+0xa}),_0x1bfcc8['on']('contentInsertion',()=>{_0x1035e4=!0x1;},{'priority':'lowest'}),_0x3a263d['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x14040e,_0x30aab1)=>{const [_0x1bdeeb,_0x1a9c3e,,_0x2470e6]=_0x30aab1;if(!_0x3403e8)return;_0x14040e['stop']();const _0x226cf6=_0x1bdeeb['cell'],_0x48d655=_0x1a9c3e,_0x191b3d=Be(_0x226cf6),_0x443824=Be(_0x48d655);_0x14040e['return']=_0x226cf6;let _0x39841c=null,_0x3d162c=null;if(_0x443824||_0x191b3d){if(_0x191b3d&&!_0x443824){_0x2470e6['remove'](_0x226cf6['getChild'](0x0));for(const _0x2943d4 of Array['from'](_0x48d655['getChildren']()))_0x2470e6['insert'](_0x2943d4,_0x226cf6,'end');const _0x5e182f=_0x3403e8['rowInsertionIndexes']['includes'](_0x1bdeeb['row']),_0x593d7a=_0x3403e8['columnInsertionIndexes']['includes'](_0x1bdeeb['column']);_0x5e182f||_0x593d7a||(_0x39841c=_0x32b072['fromRange'](_0x2470e6['createRangeIn'](_0x226cf6)));}else _0x443824&&!_0x191b3d&&(_0x3d162c=_0x2470e6['createRangeIn'](_0x226cf6));}else{const _0x53ad8e=_0x2470e6['createElement']('tableCellSuggestion'),_0x2a0acd=_0x2470e6['createElement']('tableCellSuggestion');_0x2470e6['wrap'](_0x2470e6['createRangeIn'](_0x226cf6),_0x2a0acd),_0x2470e6['insert'](_0x53ad8e,_0x226cf6,0x0);for(const _0x3689de of Array['from'](_0x48d655['getChildren']()))_0x2470e6['insert'](_0x3689de,_0x53ad8e,'end');_0x39841c=_0x32b072['fromRange'](_0x2470e6['createRangeOn'](_0x53ad8e)),_0x3d162c=_0x32b072['fromRange'](_0x2470e6['createRangeOn'](_0x2a0acd));}const _0x4174e3=Array['from'](_0x48d655['getAttributes']())['filter'](([_0x6e8f73])=>Re['includes'](_0x6e8f73));_0x3403e8['cells']['push']({'element':_0x226cf6,'attributes':_0x4174e3['length']?Object['fromEntries'](_0x4174e3):null}),_0x39841c&&_0x3403e8['insertionRanges']['push'](_0x39841c),_0x3d162c&&_0x3403e8['deletionRanges']['push'](_0x3d162c);},{'priority':'high'}),_0x550ca8['on']('insertColumns',(_0x195801,_0xf9ccc4)=>{const [_0x3a8c78,_0x2318a2={}]=_0xf9ccc4;if(!_0x3403e8)return;const _0x52b46a=_0x2318a2['at']||0x0,_0x51e044=_0x2318a2['columns']||0x1;_0x3403e8['columnInsertionIndexes']=new Array(_0x51e044)['fill'](_0x52b46a)['map']((_0x4aa535,_0x546588)=>_0x4aa535+_0x546588);for(const {cell:_0x1191c7}of _0x550ca8['createTableWalker'](_0x3a8c78,{'startColumn':_0x52b46a,'endColumn':_0x52b46a+_0x51e044-0x1}))_0x3403e8['columnInsertionRanges']['push'](_0x3a263d['model']['createRangeOn'](_0x1191c7));},{'priority':'low'}),_0x550ca8['on']('insertRows',(_0xb74d89,_0x3473d6)=>{const [_0x563906,_0x5c1e7d={}]=_0x3473d6;if(!_0x3403e8)return;const _0x2df8d2=_0x5c1e7d['at']||0x0,_0x12ecac=_0x5c1e7d['rows']||0x1;_0x3403e8['rowInsertionIndexes']=new Array(_0x12ecac)['fill'](_0x2df8d2)['map']((_0x97597e,_0x54e66a)=>_0x97597e+_0x54e66a);for(const {cell:_0x7d43f0}of _0x550ca8['createTableWalker'](_0x563906,{'startRow':_0x2df8d2,'endRow':_0x2df8d2+_0x12ecac-0x1}))_0x3403e8['rowInsertionRanges']['push'](_0x3a263d['model']['createRangeOn'](_0x7d43f0));},{'priority':'low'}),_0x495761['descriptionFactory']['registerDescriptionCallback'](_0x3d7f91=>{if(_0x3d7f91['subType']&&_0x3d7f91['subType']['startsWith']('tablePaste'))return _0x3d7f91['previous']?{}:{'type':'insertion','content':o(_0x3a263d['locale'],'*Replace\x20table\x20cells*')};});const _0x17e022=()=>!0x1;for(const _0x5ed140 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x495761['_suggestionFactory']['registerCustomCallback']('insertion',_0x5ed140,'join',_0x17e022),_0x495761['_suggestionFactory']['registerCustomCallback']('deletion',_0x5ed140,'join',_0x17e022),_0x495761['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ed140,'join',_0x17e022);_0x495761['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x17e022),_0x495761['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x905a9,_0x35c418,_0x4f306f)=>{const _0x376f19=_0x905a9['map'](_0x1cb3cb=>_0x1cb3cb['getContainedElement']())['filter'](_0x18e3af=>_0x18e3af),_0x5c9016=new Map(_0x376f19['map'](_0x27ef6a=>[_0x27ef6a,null]));if(_0x3403e8){for(const {element:_0x2aaee2,attributes:_0x28624f}of _0x3403e8['cells'])_0x28624f&&_0x5c9016['set'](_0x2aaee2,_0x28624f);}else{if(_0x4f306f&&_0x4f306f['markerAttributes'])for(const [_0x4d1ca7,_0x954c13]of Object['entries'](_0x4f306f['markerAttributes'])){const _0x4e749b=_0x3a263d['model']['markers']['get'](_0x4d1ca7),_0xbf49a8=_0x4e749b?_0x4e749b['getRange']()['getContainedElement']():null;_0xbf49a8&&_0x5c9016['set'](_0xbf49a8,_0x954c13);}}_0x3a263d['model']['change'](_0x1b905c=>{for(const [_0x502dcf,_0x506d05]of _0x5c9016)_0x1b905c['setAttributes']({...Ae,..._0x506d05},_0x502dcf);});});const _0x1c4c72=(_0x477111,_0x82ac55)=>{_0x495761['_suggestionFactory']['registerCustomCallback'](_0x477111,'tablePaste',_0x82ac55,(_0x4c5fae,_0x29f301,_0x4080cf)=>{_0x3a263d['model']['change'](_0x289943=>{const _0x176e0f=[];for(const _0x1ea327 of _0x4c5fae){const _0xa00eb7=_0x1ea327['start']['nodeAfter'];_0xa00eb7['is']('element','tableCellSuggestion')&&_0x176e0f['push'](_0xa00eb7);}_0x495761['_suggestionFactory']['getSuggestionCallback'](_0x477111,null,_0x82ac55)(_0x4c5fae,_0x29f301,_0x4080cf);for(const _0x5a750c of _0x176e0f)'$graveyard'!=_0x5a750c['root']['rootName']&&_0x289943['unwrap'](_0x5a750c);});});};_0x1c4c72('insertion','accept'),_0x1c4c72('insertion','discard'),_0x1c4c72('deletion','accept'),_0x1c4c72('deletion','discard'),_0x495761['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1d3d93=>{const _0xdeef4=_0x1d3d93['map'](_0x4320af=>_0x4320af['getContainedElement']()),_0x191aad=_0xdeef4[0x0]['findAncestor']('table'),{minRow:_0x5a5c4d,maxRow:_0x27d3c1}=_0x3b11e0['_getCoordsForCells'](_0xdeef4);_0x550ca8['removeRows'](_0x191aad,{'at':_0x5a5c4d,'rows':_0x27d3c1-_0x5a5c4d+0x1});}),_0x495761['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x31a4bc=>{const _0x58d07a=_0x31a4bc['map'](_0x52c644=>_0x52c644['getContainedElement']()),_0x54a45a=_0x58d07a[0x0]['findAncestor']('table'),{minColumn:_0x338065,maxColumn:_0x1d2032}=_0x3b11e0['_getCoordsForCells'](_0x58d07a);_0x550ca8['removeColumns'](_0x54a45a,{'at':_0x338065,'columns':_0x1d2032-_0x338065+0x1});});const _0x53c741=(_0x1749ea,_0x3f877a)=>{if(!_0x3f877a['subType']||!_0x3f877a['subType']['startsWith']('tablePaste'))return;const _0x285974=_0x3f877a['attributes']['tablePasteChainId'],_0x8db749=_0x495761['getSuggestions']()['filter'](_0x249e46=>_0x249e46['isInContent']&&_0x249e46['attributes']&&_0x249e46['attributes']['tablePasteChainId']==_0x285974);_0x8db749['length']&&_0x3f877a['getAllAdjacentSuggestions']()['length']!=_0x8db749['length']&&_0x8db749['reduce']((_0x3fb497,_0x2ddf61)=>(_0x3fb497['next']=_0x2ddf61,_0x2ddf61['previous']=_0x3fb497,_0x2ddf61));};function _0x1c8726(_0x4ade46,_0x22a33f=!0x0){const {id:_0x543104,authorId:_0x55698c}=_0x495761['_splitMarkerName'](_0x4ade46['markerName']),_0xd2b337=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3a993f=_0x495761['activeMarkers']['includes'](_0x4ade46['markerName']);return _0x3a993f&&_0xd2b337['push']('ck-suggestion-marker--active'),{'classes':_0xd2b337,'attributes':{'data-suggestion':_0x543104,'data-author-id':_0x55698c},'priority':_0x3a993f&&_0x22a33f?0xbc2:0xbb8};}_0x495761['on']('suggestionLoaded',_0x53c741,{'priority':'high'}),_0x495761['on']('suggestionUnloaded',_0x53c741,{'priority':'high'}),_0x3a263d['model']['document']['registerPostFixer'](()=>{let _0x13b05e=!0x1;const _0x5219d6=Array['from'](_0x3a263d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x20807c,data:_0xf5b4da}of _0x5219d6){const {group:_0x40beb1,type:_0x22a3ef,id:_0x97864a}=_0x495761['_splitMarkerName'](_0x20807c);if('suggestion'!=_0x40beb1||'deletion'!=_0x22a3ef||_0xf5b4da['oldRange'])continue;if(!_0x495761['hasSuggestion'](_0x97864a))continue;const _0x20645b=_0x495761['getSuggestion'](_0x97864a)['getRanges'](),_0x36cedf=_0x3a263d['plugins']['get']('Users')['me'];for(const _0x5943b5 of _0x495761['getSuggestions']()){if(!_0x5943b5['isInContent']||_0x5943b5['author']!=_0x36cedf)continue;if('formatBlock'!=_0x5943b5['type']||'tablePasteCell'!=_0x5943b5['subType'])continue;if(_0x5943b5['getRanges']()['every'](_0x5c11bb=>_0x20645b['some'](_0x4f6bb9=>_0x4f6bb9['containsRange'](_0x5c11bb,!0x0)))){for(const _0xde5873 of _0x5943b5['getAllAdjacentSuggestions']())_0xde5873['isInContent']&&(_0xde5873['discard'](),_0x13b05e=!0x0);}}}return _0x13b05e;}),_0x3a263d['model']['document']['registerPostFixer'](_0xfd6aef=>{const _0x5f2b9f=_0x3a263d['commands']['get']('redo');if(!_0x5f2b9f||!_0x5f2b9f['_createdBatches']['has'](_0xfd6aef['batch']))return!0x1;let _0x5b3e10=!0x1;const _0x26c48a=_0x3a263d['plugins']['get']('Users')['me'],_0x18358f=_0x3a263d['model']['document']['differ']['getChanges'](),_0xa4c515=Array['from'](_0x3a263d['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x97056,data:_0x2023fd})=>{const {group:_0x2ed4b0,subType:_0x2f120d,authorId:_0x1a0a47}=_0x495761['_splitMarkerName'](_0x97056);return'suggestion'==_0x2ed4b0&&'tablePaste'==_0x2f120d&&_0x1a0a47==_0x26c48a['id']&&!_0x2023fd['oldRange'];});for(const _0x474bf9 of _0x18358f){if('insert'!=_0x474bf9['type']||'tableCellSuggestion'!=_0x474bf9['name']||0x1!=_0x474bf9['length'])continue;const _0x328a08=_0xfd6aef['createRange'](_0x474bf9['position'],_0x474bf9['position']['getShiftedBy'](0x1));if(!_0xa4c515['find'](({data:_0x521ee6})=>_0x521ee6['newRange']['isEqual'](_0x328a08))){for(const {name:_0x3ea449,data:_0x745c7f}of _0xa4c515)if(_0x328a08['containsRange'](_0x745c7f['newRange'])){_0xfd6aef['updateMarker'](_0x3ea449,{'range':_0x328a08}),_0x5b3e10=!0x0;break;}}}return _0x5b3e10;}),_0x3a263d['model']['document']['registerPostFixer'](_0x19c6d=>{let _0x376047=!0x1;const _0x4238d9=_0x3a263d['plugins']['get']('Users')['me'],_0x14fe28=_0x495761['getSuggestions']()['filter'](_0x4fb9ef=>_0x4fb9ef['isInContent']&&_0x4fb9ef['author']==_0x4238d9),_0x57fa2c=new Set(),_0x135f8a=new Set();for(const _0x22f54d of _0x14fe28)if('tablePaste'==_0x22f54d['subType'])for(const _0xb25bab of _0x22f54d['getMarkers']()){const _0xef9841=_0xb25bab['getRange']()['getContainedElement']();if(_0xef9841){if(_0xef9841['is']('element','tableCellSuggestion')&&Be(_0xef9841)){_0x22f54d['removeMarker'](_0xb25bab['name']),_0x57fa2c['add'](_0xef9841),_0x376047=!0x0;const _0x174df9=_0xef9841['nextSibling'],_0x339429=_0xef9841['previousSibling'],_0x4b3883=_0x174df9&&_0x174df9['is']('element','tableCellSuggestion'),_0x2dfd50=_0x339429&&_0x339429['is']('element','tableCellSuggestion');_0x4b3883&&!_0x57fa2c['has'](_0x174df9)&&_0x135f8a['add'](_0x174df9),_0x2dfd50&&!_0x57fa2c['has'](_0x339429)&&_0x135f8a['add'](_0x339429);}else _0xef9841['is']('element','paragraph')&&_0xef9841['isEmpty']&&(_0x22f54d['removeMarker'](_0xb25bab['name']),_0x376047=!0x0);}}else{if('tablePasteCell'==_0x22f54d['subType']){if(!_0x22f54d['attributes']||!_0x22f54d['attributes']['tablePasteChainId'])continue;const _0x220bec=_0x22f54d['attributes']['markerAttributes'];if(_0x220bec&&Object['keys'](_0x220bec)['length'])continue;const _0x495e8d=_0x22f54d['attributes']['tablePasteChainId'];let _0x3d6801=!0x0,_0x8295e4=!0x0;for(const _0x1025d6 of _0x14fe28)if(_0x1025d6['subType']&&_0x1025d6['subType']['startsWith']('tablePaste')){if(!_0x1025d6['attributes']['tablePasteChainId']){_0x8295e4=!0x1;break;}if(_0x1025d6['id']!=_0x22f54d['id']&&_0x1025d6['attributes']['tablePasteChainId']==_0x495e8d){_0x3d6801=!0x1;break;}}_0x8295e4&&_0x3d6801&&(_0x22f54d['removeMarkers'](),_0x376047=!0x0);}}for(const _0x4599d2 of _0x57fa2c)_0x19c6d['remove'](_0x4599d2);for(const _0xac229f of _0x135f8a)_0x19c6d['unwrap'](_0xac229f);return _0x376047;}),_0x3a263d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3fa045=>_0x1c8726(_0x3fa045),'converterPriority':'high'}),_0x3a263d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5775ac,_0x27d0eb)=>_0x27d0eb['options']['showSuggestionHighlights']?_0x1c8726(_0x5775ac,!0x1):null,'converterPriority':'high'});const _0x519097=_0x3a263d['editing']['view'];this['listenTo'](_0x519097['document'],'clipboardOutput',(_0x53f69a,_0x229020)=>{const _0x2fbc19=[];for(const _0x1bd810 of _0x519097['createRangeIn'](_0x229020['content'])['getItems']())_0x1bd810['is']('element','suggestion-td')&&_0x2fbc19['push'](_0x1bd810);_0x519097['change'](_0x1a0a95=>{for(const _0x1adbcd of _0x2fbc19)_0x1a0a95['move'](_0x1a0a95['createRangeIn'](_0x1adbcd),_0x1a0a95['createPositionBefore'](_0x1adbcd)),_0x1a0a95['remove'](_0x1adbcd);});});}}function Be(_0x576596){if(_0x576596['isEmpty'])return!0x0;const _0x5d1aa4=_0x576596['getChild'](0x0);return _0x5d1aa4['is']('element','paragraph')&&_0x5d1aa4['isEmpty'];}function Oe(_0x7c37a0,_0x3143dd={},_0x2885fc){for(const {isAnchor:_0x192097,cellHeight:_0x26b4d5,cellWidth:_0x45bf65}of _0x2885fc['createTableWalker'](_0x7c37a0,{'includeAllSlots':!0x0,..._0x3143dd}))if(!_0x192097||0x1!=_0x26b4d5||0x1!=_0x45bf65)return!0x1;return!0x0;}class Rt extends _0x23bd0e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x25bcce=this['editor']['plugins']['get']('TrackChangesEditing');_0x25bcce['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x25bcce['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x25bcce['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x25bcce['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x25bcce['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x25bcce['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3682bf,_0x156d96){const _0x56296c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e39e0=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3247df=_0x156d96['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4541a9=_0x3e39e0['getColumnGroupElement'](_0x3247df);let _0x11e023=_0x4541a9?_0x3e39e0['getTableColumnsWidths'](_0x4541a9):null,_0x20077b=_0x3247df['getAttribute']('tableWidth')||null;const _0xcf6699=_0x156d96['tableWidth']||_0x20077b,_0x56e8ff=_0x156d96['columnWidths']||_0x11e023,_0xa9fb7e=this['editor']['plugins']['get']('Users')['me'];for(const _0x448951 of _0x56296c['getSuggestions']()){const _0x257e98=_0x448951['getContainedElement']();if('resizeTable'===_0x448951['subType']&&_0x257e98===_0x3247df){_0x448951['author']!==_0xa9fb7e&&_0x448951['discard']();const _0x5cce1c=_0x448951['data']['commandParams'];_0x20077b=_0x5cce1c[0x0]['tableWidth'],_0x11e023=_0x5cce1c[0x0]['columnWidths'];break;}}_0x3682bf({'table':_0x3247df,'tableWidth':_0xcf6699,'columnWidths':_0x56e8ff}),_0x56296c['markBlockFormat'](_0x3247df,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x20077b,'columnWidths':_0x11e023}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1dd2ff){if('formatBlock'!=_0x1dd2ff['type']&&'formatInline'!=_0x1dd2ff['type'])return;const {data:_0x37c26b}=_0x1dd2ff;if(_0x37c26b&&'resizeTable'===_0x37c26b['formatGroupId']){const _0x4284cd='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4284cd)};}}}class Tt extends _0x23bd0e{['afterInit'](){const _0x1d38e7=this['editor'];_0x1d38e7['plugins']['has']('Template')&&_0x1d38e7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x23bd0e{['afterInit'](){const _0x2f1adc=this['editor'];if(!_0x2f1adc['commands']['get']('insertTableOfContents'))return;_0x2f1adc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x128266=_0x2f1adc['plugins']['get']('TrackChangesEditing'),_0x47038c=_0x2f1adc['locale'];_0x128266['descriptionFactory']['registerElementLabel']('tableOfContents',_0x359f25=>o(_0x47038c,'ELEMENT_TABLE_OF_CONTENTS',_0x359f25));}}class Ut extends _0x23bd0e{['afterInit'](){const _0x2006f2=this['editor'];if(!_0x2006f2['plugins']['has']('Title'))return;const _0x2c6922=_0x2006f2['plugins']['get']('TrackChangesEditing');_0x2c6922['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2006f2['locale'],'ELEMENT_TITLE')),_0x2006f2['model']['document']['registerPostFixer'](_0x742814=>{let _0x322cc2=!0x1;const _0x3d6320=Array['from'](_0x2006f2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c18bb,data:_0x1cb081}of _0x3d6320){const {group:_0xcbdd4}=_0x2c6922['_splitMarkerName'](_0x5c18bb);if('suggestion'!==_0xcbdd4||!_0x1cb081['newRange'])continue;const _0x269fd0=_0x1cb081['newRange'],_0x471677=_0x269fd0['end']['nodeBefore'];if(!_0x471677||!_0x471677['is']('element','title-content'))continue;if(!_0x269fd0['start']['isTouching'](_0x269fd0['end']))continue;const _0x47335f=_0x2006f2['model']['schema']['getNearestSelectionRange'](_0x269fd0['end'],'forward');if(_0x47335f&&_0x47335f['isCollapsed']){const _0x4db66a=_0x742814['createRange'](_0x269fd0['start'],_0x47335f['start']);_0x4db66a['isEqual'](_0x269fd0)||(_0x742814['updateMarker'](_0x5c18bb,{'range':_0x4db66a}),_0x322cc2=!0x0);}_0x322cc2||(_0x742814['removeMarker'](_0x5c18bb),_0x322cc2=!0x0);}return _0x322cc2;});}}class Vt extends _0x23bd0e{['afterInit'](){const _0x4038f3=this['editor'],_0x530a10=_0x4038f3['plugins']['get']('TrackChangesEditing');_0x4038f3['plugins']['has']('Uploadcare')&&(_0x530a10['enableCommand']('uploadcare'),_0x4038f3['plugins']['has']('UploadcareImageEdit')&&(_0x530a10['enableCommand']('uploadcareImageEdit'),_0x530a10['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x530a10['descriptionFactory']['registerDescriptionCallback'](_0x389d27=>{if('attribute'!=_0x389d27['type'])return;const {data:_0x1ce2af}=_0x389d27;return _0x1ce2af&&'uploadcareImageId'==_0x1ce2af['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x23bd0e{['afterInit'](){const _0x2fa29d=this['editor'],_0x2842ae=_0x2fa29d['plugins']['get']('TrackChangesEditing');_0x2fa29d['plugins']['has']('UndoEditing')&&(_0x2842ae['enableCommand']('undo'),_0x2842ae['enableCommand']('redo'));}}class Pt extends _0x23bd0e{static get['requires'](){return[Dt];}['afterInit'](){const _0x105d92=this['editor'];if(!_0x105d92['plugins']['has']('TableCaptionEditing'))return;_0x105d92['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x23bd0e{['tableProperties'];['tableCellProperties'];constructor(_0x17cb8b){super(_0x17cb8b),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x17cb8b['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x2c51f4=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x23aeb4 of this['tableProperties'])_0x2c51f4['enableCommand'](_0x23aeb4,(_0x552755,_0x2ae229)=>{const _0xc82d77=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x23aeb4,[_0xc82d77],this['tableProperties'],'tableProperties',_0x552755,_0x2ae229);});_0x2c51f4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2c51f4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2c51f4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xa722,_0x14fb7e)=>this['handleDiscardAction'](this['tableProperties'],_0xa722,_0x14fb7e)),_0x2c51f4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x41e750 of this['tableCellProperties'])this['editor']['commands']['get'](_0x41e750)&&_0x2c51f4['enableCommand'](_0x41e750,(_0x330f24,_0x55c853)=>{const _0x581807=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x41e750,_0x581807,this['tableCellProperties'],'tableCellProperties',_0x330f24,_0x55c853);});_0x2c51f4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2c51f4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2c51f4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xb2f806,_0x1b75d2)=>this['handleDiscardAction'](this['tableCellProperties'],_0xb2f806,_0x1b75d2)),_0x2c51f4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x2c51f4['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x2c51f4['descriptionFactory']['registerDescriptionCallback'](_0x2fd762=>this['handleSuggestionDescription'](_0x2fd762)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x10cafa,_0x71c227,_0x5e90b3,_0x3357b5,_0x43900a,_0x20a32a){const _0x34cfcc=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x20a32a['batch'],()=>{for(const _0xe8de68 of _0x71c227){if(this['_getSuggestion'](_0xe8de68,_0x3357b5))_0x43900a(_0x20a32a);else{const _0x476da1={};for(const _0x5be3d8 of _0x5e90b3){const _0x227dc2=_0xe8de68['getAttribute'](_0x5be3d8);void 0x0!==_0x227dc2&&(_0x476da1[_0x5be3d8]=_0x227dc2);}_0x43900a(_0x20a32a),_0x34cfcc['markBlockFormat'](_0xe8de68,{'commandParams':[_0x476da1]},[],_0x3357b5);}}});}['handleDiscardAction'](_0x3b9dfb,_0x381bc4,_0x584c8a){const _0x59dcd6=_0x381bc4[0x0]['start']['nodeAfter'],_0x176b2c=_0x584c8a['commandParams'][0x0];this['editor']['model']['change'](_0x386497=>{for(const _0x49fdb6 of _0x3b9dfb)void 0x0!==_0x176b2c[_0x49fdb6]?_0x386497['setAttribute'](_0x49fdb6,_0x176b2c[_0x49fdb6],_0x59dcd6):_0x386497['removeAttribute'](_0x49fdb6,_0x59dcd6);});}['handleSuggestionDescription'](_0xc23226){if(_0xc23226['data'])switch(_0xc23226['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x256997,_0x5125ef){const _0x32ceb8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x50e0d8 of _0x32ceb8['getSuggestions']({'skipNotAttached':!0x0})){const _0x25b578=_0x50e0d8['getContainedElement']();if(_0x50e0d8['subType']===_0x5125ef&&_0x25b578===_0x256997)return _0x50e0d8;}return null;}['_registerTablePropertiesAttributes'](){const _0x4c3cbe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cfb40=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2cf07c of _0x3cfb40){const _0x1d919d=_0x2cf07c['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4c3cbe['descriptionFactory']['registerAttributeLabel'](_0x2cf07c,o(this['editor']['locale'],'FORMAT_'+_0x1d919d));}}}class Lt extends _0x23bd0e{['afterInit'](){const _0xcff0f8=this['editor'];if(!_0xcff0f8['plugins']['has']('LineHeight'))return;const _0x38a5d3=_0xcff0f8['plugins']['get']('TrackChangesEditing'),_0x3620a6=_0xcff0f8['locale'];_0x38a5d3['enableDefaultAttributesIntegration']('lineHeight'),_0x38a5d3['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x3620a6,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x23bd0e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x2194c1,_0x186080,_0x208479,_0xfbb8b7,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28d511){super(_0x28d511),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x9f2ad5,_0x338cd3,_0x532cee,_0x2c8634)=>{this['_model']['change'](()=>{for(const _0x189e13 of[..._0x2c8634,..._0x532cee])this['_model']['markers']['has'](_0x189e13)&&_0x28d511['editing']['reconvertMarker'](_0x189e13);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x28d511['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x28d511['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x28d511['config']['get']('trackChanges.trackFormatChanges'),_0x28d511['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x28d511['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x28d511,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x110580=this['editor'];_0x110580['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x236da9,{writer:_0x410679})=>{let _0x5c3a1d='suggestion:'+_0x236da9['getAttribute']('suggestion-type')+':'+_0x236da9['getAttribute']('id');return _0x236da9['getAttribute']('marker-count')&&(_0x5c3a1d+=':'+_0x236da9['getAttribute']('marker-count')),_0x410679['createElement']('$marker',{'data-name':_0x5c3a1d});}}),_0x110580['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x110580['model']['document']['registerPostFixer'](_0x2a415f=>{let _0x2ea869=!0x1;const _0x183d33=Array['from'](_0x110580['model']['document']['differ']['getChangedMarkers']()),_0x3d5780=new Set();for(const {name:_0x2a76da,data:_0x42459b}of _0x183d33){const {group:_0x37d8cf,type:_0x282775,subType:_0x464a29,id:_0x221b05}=this['_splitMarkerName'](_0x2a76da);if('suggestion'!==_0x37d8cf)continue;const _0x386c45=_0x464a29?'suggestion:'+_0x282775+':'+_0x464a29+':'+_0x221b05:'suggestion:'+_0x282775+':'+_0x221b05,_0x24a200=_0x110580['model']['markers']['getMarkersGroup'](_0x386c45),_0x193460=_0x110580['model']['markers']['get'](_0x2a76da),_0x5e0941=this['_suggestions']['get'](_0x221b05);if(null!=_0x42459b['newRange']){'formatInline'==_0x282775&&(_0x2ea869=_0x2ea869||Wt(_0x42459b['newRange'],_0x2a76da,_0x2a415f,_0x110580['model']['schema']));const _0xcecb46='attribute'==_0x282775&&this['_isBlockAttribute'](_0x464a29['split']('|')[0x0]),_0x4fef0d='attribute'==_0x282775&&this['_isInlineAttribute'](_0x464a29['split']('|')[0x0]);if(_0x42459b['newRange']['isCollapsed']||'$graveyard'==_0x42459b['newRange']['root']['rootName']||'formatBlock'==_0x282775&&!Qt(_0x42459b['newRange'])||_0xcecb46&&!Qt(_0x42459b['newRange'])||_0x4fef0d&&Xt(_0x42459b['newRange'])||'deletion'==_0x282775&&Xt(_0x42459b['newRange'])||_0x193460&&Yt(_0x193460,_0x24a200))_0x2a415f['removeMarker'](_0x2a76da),_0x2ea869=!0x0;else{if(!_0x5e0941||!_0x5e0941['isInContent'])continue;if(_0x42459b['newRange']&&_0x42459b['oldRange']&&_0x42459b['newRange']['isEqual'](_0x42459b['oldRange']))continue;_0x3d5780['add'](_0x5e0941);}}}return _0x3d5780['size']>0x0&&(_0x2ea869=!!this['_joinWithAdjacentSuggestions'](_0x3d5780)||_0x2ea869),_0x2ea869;}),_0x110580['model']['document']['registerPostFixer'](_0x85b146=>{let _0x4862d1=!0x1;for(const _0x5522ce of _0x110580['model']['document']['differ']['getChanges']())if('insert'==_0x5522ce['type'])for(const _0x15fd3e of this['_suggestions']['values']()){if(_0x15fd3e['isMultiRange']||!_0x15fd3e['isInContent'])continue;const _0x1b0574='formatBlock'==_0x15fd3e['type'],_0x2eb6c2=this['_getAttributeKey'](_0x15fd3e),_0x260742=_0x2eb6c2&&this['_isBlockAttribute'](_0x2eb6c2);if(!_0x1b0574&&!_0x260742)continue;const _0x540d08=_0x15fd3e['getFirstRange']();if(_0x540d08['start']['parent']!=_0x540d08['end']['parent']&&!_0x540d08['end']['isAtEnd']){const _0x45eaf5=_0x110580['model']['createPositionAt'](_0x540d08['start']['nodeAfter'],'end'),_0x52afd0=_0x110580['model']['createRange'](_0x540d08['start'],_0x45eaf5);_0x85b146['updateMarker'](_0x15fd3e['getFirstMarker'](),{'range':_0x52afd0}),_0x4862d1=!0x0;}}return _0x4862d1;}),_0x110580['model']['document']['registerPostFixer'](_0x567c55=>this['_processAttributeChanges'](_0x567c55)),_0x110580['model']['document']['registerPostFixer'](_0x476d28=>!_0x476d28['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x476d28)),_0x110580['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x110580['model']['document']['on']('change:data',(_0x4539a4,_0x3d3b72)=>{if(!_0x3d3b72['isLocal']||_0x3d3b72['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xc62eff=_0x110580['model']['document']['differ']['getChanges']();if(0x0==_0xc62eff['length'])return;const _0x2d9df6=[],_0x56acb6=_0xc62eff['filter'](_0x517b54=>'attribute'==_0x517b54['type']),_0x1e3b67=_0xc62eff['filter'](_0x45dbfa=>'insert'==_0x45dbfa['type']&&'$text'!=_0x45dbfa['name']);for(const _0x32dceb of _0x56acb6)this['_isRegisteredAttribute'](_0x32dceb['attributeKey'])&&_0x2d9df6['push']({'key':_0x32dceb['attributeKey'],'newValue':_0x32dceb['attributeNewValue'],'oldValue':_0x32dceb['attributeOldValue'],'range':Zt(_0x32dceb['range'],_0x110580['model'])});for(const _0x2da3bf of _0x1e3b67){if('rename'!=_0x2da3bf['action']&&'refresh'!=_0x2da3bf['action'])continue;const _0x4e4609=tn(_0x2da3bf['position']['nodeAfter'],_0x110580['model']),_0x518aa3=_0x2da3bf['before'];'rename'==_0x2da3bf['action']&&_0x2d9df6['push']({'key':m,'newValue':_0x2da3bf['name'],'oldValue':_0x518aa3['name'],'range':_0x4e4609});for(const [_0x178962,_0x2031b5]of _0x518aa3['attributes']){if(!this['_isRegisteredAttribute'](_0x178962))continue;const _0x3d8336=_0x2da3bf['attributes']['get'](_0x178962);_0x2031b5!==_0x3d8336&&_0x2d9df6['push']({'key':_0x178962,'newValue':_0x3d8336,'oldValue':_0x2031b5,'range':_0x4e4609});}for(const [_0x3e1217,_0xa40eee]of _0x2da3bf['attributes'])this['_isRegisteredAttribute'](_0x3e1217)&&(_0x518aa3['attributes']['has'](_0x3e1217)||_0x2d9df6['push']({'key':_0x3e1217,'newValue':_0xa40eee,'oldValue':null,'range':_0x4e4609}));}0x0!=_0x2d9df6['length']&&_0x110580['model']['enqueueChange'](_0x3d3b72,_0x545c5b=>{const _0x114416=_0x37bdeb();for(const {range:_0x407883,key:_0x222833,oldValue:_0x7ee8fc,newValue:_0x4686ab}of _0x2d9df6)this['markAttributeChange'](_0x407883,_0x222833,_0x7ee8fc,_0x4686ab,{'groupId':_0x114416});this['_reduceExistingSuggestions'](_0x545c5b,_0x2d9df6);});},{'priority':'lowest'}),_0x110580['model']['markers']['on']('update:suggestion',(_0x25daa2,_0x5db2a7,_0x24f519)=>{if(null==_0x24f519){const {id:_0x168389}=this['_splitMarkerName'](_0x5db2a7['name']),_0x42a973=this['_suggestions']['get'](_0x168389);_0x42a973&&_0x42a973['addMarkerName'](_0x5db2a7['name']);}}),_0x110580['model']['document']['on']('change:data',()=>{const _0x1660a8=Array['from'](_0x110580['model']['document']['differ']['getChangedMarkers']())['filter'](_0x56cd22=>'suggestion'===this['_splitMarkerName'](_0x56cd22['name'])['group']);if(0x0===_0x1660a8['length'])return;_0x1660a8['sort']((_0x217375,_0x41769c)=>{const _0x34bbdf=_0x217375['data']['oldRange'],_0x2ee6e7=_0x41769c['data']['oldRange'];return null===_0x34bbdf&&null===_0x2ee6e7?0x0:null===_0x34bbdf&&null!==_0x2ee6e7?-0x1:null!==_0x34bbdf&&null===_0x2ee6e7?0x1:_0x34bbdf['start']['isBefore'](_0x2ee6e7['start'])?-0x1:0x1;});const _0x1625e2=new Set(),_0x1db09d=new Set();for(const {name:_0x900d6e,data:_0x353edf}of _0x1660a8){const {id:_0x47e6e2}=this['_splitMarkerName'](_0x900d6e);if(null===_0x353edf['oldRange']){const _0x565da4=this['_handleNewSuggestionMarker'](_0x900d6e);_0x1db09d['add'](_0x565da4);}else{const _0x15c5a9=this['_suggestions']['get'](_0x47e6e2);null!==_0x353edf['newRange']||_0x15c5a9['isInContent']?(_0x1625e2['add'](_0x15c5a9['head']),_0x1db09d['add'](_0x15c5a9)):this['_removeSuggestion'](_0x15c5a9);}}_0x1db09d['size']>0x0&&this['_refreshSuggestionsChain'](_0x1db09d);for(const _0xbe99f3 of _0x1625e2)this['fire']('suggestionChanged',_0xbe99f3);}),_0x110580['model']['on']('applyOperation',(_0x42e361,_0x252915)=>{const _0x241b44=_0x252915[0x0];if(!this['_suggestions']['size'])return;if(!_0x241b44['isDocumentOperation'])return;if(_0x241b44['batch']['isUndo']||!_0x241b44['batch']['isLocal'])return;let _0x2f7af3,_0x3f4a0e;switch(_0x241b44['type']){case'insert':_0x2f7af3=_0x110580['model']['createPositionAt'](_0x241b44['position']),_0x3f4a0e=_0x2f7af3['getShiftedBy'](_0x241b44['howMany']);break;case'split':_0x2f7af3=_0x110580['model']['createPositionAt'](_0x241b44['splitPosition']),_0x3f4a0e=_0x110580['model']['createPositionAt'](_0x241b44['moveTargetPosition']);break;case'move':_0x2f7af3=_0x110580['model']['createPositionAt'](_0x241b44['targetPosition']),_0x3f4a0e=_0x2f7af3['getShiftedBy'](_0x241b44['howMany']);break;default:return;}const _0x490a14=_0x110580['model']['createRange'](_0x2f7af3,_0x3f4a0e);_0x110580['model']['change'](()=>{for(const {suggestion:_0x40c5d2,meta:_0xcf0319}of this['_findSuggestions'](_0x490a14)){if(_0x40c5d2['isMultiRange'])continue;if('formatInline'==_0x40c5d2['type'])continue;const _0x1e6431=this['_getAttributeKey'](_0x40c5d2);if(_0x1e6431&&this['_isBlockAttribute'](_0x1e6431)&&'split'!=_0x241b44['type'])continue;const _0x2d44aa=_0x40c5d2['data']&&_0x40c5d2['data']['multipleBlocks'];('formatBlock'!=_0x40c5d2['type']||'split'==_0x241b44['type']&&!_0x2d44aa)&&(_0xcf0319['containsRangeInObject']||'insertion'==_0x40c5d2['type']&&_0xcf0319['isOwn']||_0x40c5d2['getFirstRange']()['containsRange'](_0x490a14)&&this['_breakSuggestionMarker'](_0x40c5d2,_0x2f7af3,_0x3f4a0e));}});},{'priority':'lowest'}),_0x110580['model']['on']('deleteContent',(_0x53ef2f,_0x251034)=>{const _0x31d1a7=_0x251034[0x0],_0x4a53e0=_0x251034[0x1];if(_0x4a53e0&&_0x4a53e0['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x31d1a7['isCollapsed'])return;const _0x41805e=_0x110580['model']['schema'],{start:_0x16ee78,end:_0x4b3990}=_0x31d1a7['getFirstRange'](),_0x475c0a=_0x16ee78['nodeAfter']&&_0x41805e['isLimit'](_0x16ee78['nodeAfter'])?null:_0x41805e['getNearestSelectionRange'](_0x16ee78,'forward'),_0x3ca1bf=_0x4b3990['nodeBefore']&&_0x41805e['isLimit'](_0x4b3990['nodeBefore'])?null:_0x41805e['getNearestSelectionRange'](_0x4b3990,'backward'),_0x20e488=_0x110580['model']['createRange'](_0x475c0a?_0x475c0a['start']:_0x16ee78,_0x3ca1bf?_0x3ca1bf['end']:_0x4b3990);_0x110580['model']['change'](_0x1211a9=>{this['markDeletion'](_0x20e488);const _0x3f02b3=_0x110580['model']['schema']['getNearestSelectionRange'](_0x20e488['start']);_0x31d1a7['is']('documentSelection')?_0x1211a9['setSelection'](_0x3f02b3):_0x31d1a7['setTo'](_0x3f02b3);}),_0x53ef2f['stop']();},{'priority':_0xa26190['normal']+0xa}),_0x110580['model']['on']('insertContent',(_0x1fa8b0,_0x3c0f69)=>{const _0x112778=_0x3c0f69[_0x3c0f69['length']-0x1];_0x112778&&_0x112778['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x110580['model']['change'](()=>{let _0x3ea9d0=_0x110580['model']['insertContent'](_0x3c0f69[0x0],_0x3c0f69[0x1],_0x3c0f69[0x2],{'forceDefaultExecution':!0x0});if(!_0x3ea9d0)return;_0x1fa8b0['return']=_0x3ea9d0['clone']();const _0x23fb8a=_0x3ea9d0['end']['nodeBefore'],_0x440086=_0x110580['model']['schema'];_0x23fb8a&&_0x440086['isBlock'](_0x23fb8a)&&!_0x440086['isObject'](_0x23fb8a)&&(_0x3ea9d0=_0x110580['model']['createRange'](_0x3ea9d0['start'],_0x110580['model']['createPositionAt'](_0x23fb8a,'end'))),this['markInsertion'](_0x3ea9d0);}),_0x1fa8b0['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x533cff=new O(_0x110580,this['_suggestions']);_0x110580['commands']['add']('acceptSuggestion',_0x533cff),this['enableCommand']('acceptSuggestion');const _0x35ce38=new x(_0x110580,this['_suggestions']);_0x110580['commands']['add']('discardSuggestion',_0x35ce38),this['enableCommand']('discardSuggestion'),_0x110580['commands']['add']('acceptAllSuggestions',new M(_0x110580,_0x533cff,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x110580['commands']['add']('discardAllSuggestions',new M(_0x110580,_0x35ce38,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x110580['commands']['add']('acceptSelectedSuggestions',new R(_0x110580,_0x533cff,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x110580['commands']['add']('discardSelectedSuggestions',new R(_0x110580,_0x35ce38,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x101ead=_0x110580['plugins']['get']('CommentsRepository');this['listenTo'](_0x101ead,'addComment',(_0x582040,{threadId:_0x51a7c9})=>{const _0x1ed3f7=this['_suggestions']['get'](_0x51a7c9);_0x1ed3f7&&_0x1ed3f7['commentThread']&&0x1===_0x1ed3f7['commentThread']['length']&&this['_updateSuggestionData'](_0x51a7c9,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x101ead,'removeComment',(_0x3dac4c,{threadId:_0x6b9a2f})=>{const _0x2b7899=this['_suggestions']['get'](_0x6b9a2f);_0x2b7899&&_0x2b7899['commentThread']&&!_0x2b7899['commentThread']['length']&&this['_updateSuggestionData'](_0x6b9a2f,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x19c24a){const _0x1ec9ff=_0x2b40ae([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x1f3163=0x3d8d0df,_0x23ca26=0x3df57e7^_0x1f3163,_0x52ac41=window[_0x2b40ae([0x44,0x61,0x74,0x65])][_0x2b40ae([0x6e,0x6f,0x77])](),_0x1ae116=_0x19c24a[_0x2b40ae([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x543891=new window[(_0x2b40ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e9b84=>{_0x1ae116[_0x2b40ae([0x6f,0x6e,0x63,0x65])](_0x2b40ae([0x72,0x65,0x61,0x64,0x79]),_0x5e9b84);}),_0x3f33e8={[_0x2b40ae([0x6b,0x74,0x79])]:_0x2b40ae([0x45,0x43]),[_0x2b40ae([0x75,0x73,0x65])]:_0x2b40ae([0x73,0x69,0x67]),[_0x2b40ae([0x63,0x72,0x76])]:_0x2b40ae([0x50,0x2d,0x32,0x35,0x36]),[_0x2b40ae([0x78])]:_0x2b40ae([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x2b40ae([0x79])]:_0x2b40ae([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x2b40ae([0x61,0x6c,0x67])]:_0x2b40ae([0x45,0x53,0x32,0x35,0x36])},_0x5914d0=_0x1ae116[_0x2b40ae([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b40ae([0x67,0x65,0x74])](_0x2b40ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1e6922(){let _0x1dc552,_0x534b57=null,_0x92e172=null;try{if(_0x5914d0==_0x2b40ae([0x47,0x50,0x4c]))return _0x2b40ae([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1dc552=_0xa63225(),!_0x1dc552)return _0x2b40ae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1dc552[_0x2b40ae([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x92e172=_0x43a69b(_0x1dc552[_0x2b40ae([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1dc552[_0x2b40ae([0x6a,0x74,0x69])])),await _0x3e238d()?_0x22b6c8()?_0x1e7bcf()?_0x2b40ae([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x14b54b()?(_0x1dc552[_0x2b40ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b40ae([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x534b57=_0x280d99(_0x2b40ae([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x34b338()):_0x2b40ae([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b40ae([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b40ae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b40ae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e7bcf(){const _0x45fc2a=[_0x2b40ae([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b40ae([0x74,0x72,0x69,0x61,0x6c])][_0x2b40ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dc552[_0x2b40ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x52ac41/0x3e8:0xe10*_0x23ca26;return _0x1dc552[_0x2b40ae([0x65,0x78,0x70])]<_0x45fc2a;}function _0x22b6c8(){const _0x1abbd7=_0x1dc552[_0x2b40ae([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1abbd7)return!0x1;if(_0x1abbd7[_0x2b40ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b40ae([0x2a])))return!0x0;if(_0x1abbd7[_0x2b40ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b40ae([0x54,0x43])))return!0x0;if(_0x1abbd7[_0x2b40ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b40ae([0x52,0x54,0x43]))){if(_0x2bb1a9())return!0x0;if(_0x375bd8()||_0x133573())return!0x0;}return!0x1;}function _0x14b54b(){const _0x43a961=_0x1dc552[_0x2b40ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x43a961||0x0==_0x43a961[_0x2b40ae([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a6c34}=new URL(window[_0x2b40ae([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x43a961[_0x2b40ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a6c34))return!0x0;const _0x391d15=_0x5a6c34[_0x2b40ae([0x73,0x70,0x6c,0x69,0x74])](_0x2b40ae([0x2e]));return _0x43a961[_0x2b40ae([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x23106b=>_0x23106b[_0x2b40ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b40ae([0x2a])))[_0x2b40ae([0x6d,0x61,0x70])](_0x1f9a7a=>_0x1f9a7a[_0x2b40ae([0x73,0x70,0x6c,0x69,0x74])](_0x2b40ae([0x2e])))[_0x2b40ae([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe24ea6=>_0xe24ea6[_0x2b40ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x391d15[_0x2b40ae([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b40ae([0x6d,0x61,0x70])](_0x39acf7=>Array(_0x391d15[_0x2b40ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x39acf7[_0x2b40ae([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b40ae([0x66,0x69,0x6c,0x6c])](_0x39acf7[0x0]===_0x2b40ae([0x2a])?_0x2b40ae([0x2a]):'')[_0x2b40ae([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x39acf7))[_0x2b40ae([0x73,0x6f,0x6d,0x65])](_0x3cf57d=>_0x391d15[_0x2b40ae([0x65,0x76,0x65,0x72,0x79])]((_0x4faeb2,_0x11f73d)=>_0x3cf57d[_0x11f73d]===_0x4faeb2||_0x3cf57d[_0x11f73d]===_0x2b40ae([0x2a])));}function _0x34b338(){return _0x534b57&&_0x92e172?new window[(_0x2b40ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e24f7,_0x2791be)=>{_0x534b57[_0x2b40ae([0x74,0x68,0x65,0x6e])](_0x3e24f7,_0x2791be),_0x92e172[_0x2b40ae([0x74,0x68,0x65,0x6e])](_0x1e0892=>{_0x1e0892!=_0x2b40ae([0x56,0x61,0x6c,0x69,0x64])&&_0x3e24f7(_0x1e0892);},_0x2791be);}):_0x534b57||_0x92e172||_0x2b40ae([0x56,0x61,0x6c,0x69,0x64]);}}function _0x43a69b(_0x31cc07,_0x25f9aa){return new window[(_0x2b40ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fe5bc=>{if(_0x12c289())return _0x2fe5bc(_0x2b40ae([0x56,0x61,0x6c,0x69,0x64]));_0xb20359(),_0x1ae116[_0x2b40ae([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b40ae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x383a9b=!0x1;const _0x170a5f=_0x37bdeb();function _0xe5c29e(_0x853d50){return!!_0x853d50&&(typeof _0x853d50===_0x2b40ae([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x853d50===_0x2b40ae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x853d50[_0x2b40ae([0x74,0x68,0x65,0x6e])]===_0x2b40ae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x853d50[_0x2b40ae([0x63,0x61,0x74,0x63,0x68])]===_0x2b40ae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3e0acb(_0x373471){_0x375449(_0x373471)[_0x2b40ae([0x74,0x68,0x65,0x6e])](_0xbf6438=>{if(!_0xbf6438||_0xbf6438[_0x2b40ae([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b40ae([0x6f,0x6b]))return _0x2b40ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1355e4(_0x5c0783(_0x170a5f+_0x25f9aa))!=_0xbf6438[_0x2b40ae([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b40ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b40ae([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b40ae([0x74,0x68,0x65,0x6e])](_0x39b96a=>(_0x44a83d(),_0x39b96a),()=>{const _0x5e46cf=_0xfad658();return null==_0x5e46cf?(_0x44a83d(),_0x2b40ae([0x56,0x61,0x6c,0x69,0x64])):_0x2b40ae(_0x52ac41-_0x5e46cf>(0x27d454df^_0x1f3163)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b40ae([0x74,0x68,0x65,0x6e])](_0x2fe5bc)[_0x2b40ae([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2fe5bc(_0x2b40ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4b80f6=0x3ee3e5f^_0x1f3163;function _0x44a83d(){const _0x3b10aa=_0x2b40ae([0x6c,0x6c,0x63,0x74,0x2d])+_0x1355e4(_0x5c0783(_0x31cc07)),_0x1107c6=_0xd8604f(_0x1355e4(window[_0x2b40ae([0x4d,0x61,0x74,0x68])][_0x2b40ae([0x63,0x65,0x69,0x6c])](_0x52ac41/_0x4b80f6)));window[_0x2b40ae([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b40ae([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b10aa,_0x1107c6);}function _0xfad658(){const _0x319046=_0x2b40ae([0x6c,0x6c,0x63,0x74,0x2d])+_0x1355e4(_0x5c0783(_0x31cc07)),_0x5e00bb=window[_0x2b40ae([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b40ae([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x319046);return _0x5e00bb?window[_0x2b40ae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd8604f(_0x5e00bb),0x10)*_0x4b80f6:null;}function _0x375449(_0x3932fc){return new window[(_0x2b40ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c264c,_0x2c72a3)=>{_0x3932fc[_0x2b40ae([0x74,0x68,0x65,0x6e])](_0x2c264c,_0x2c72a3),window[_0x2b40ae([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2c72a3,0x3d9041f^_0x1f3163);});}}_0x1ae116[_0x2b40ae([0x6f,0x6e])](_0x2b40ae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x49d7fc,_0x535f20)=>{if(_0x535f20[0x0]!=_0x31cc07)return _0x2fe5bc(_0x2b40ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x535f20[0x1]={..._0x535f20[0x1],[_0x2b40ae([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x170a5f};},{[_0x2b40ae([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b40ae([0x68,0x69,0x67,0x68])}),_0x1ae116[_0x2b40ae([0x6f,0x6e])](_0x2b40ae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45b47b=>{_0xe5c29e(_0x45b47b[_0x2b40ae([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x383a9b=!0x0,_0x3e0acb(_0x45b47b[_0x2b40ae([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b40ae([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b40ae([0x6c,0x6f,0x77])}),_0x543891[_0x2b40ae([0x74,0x68,0x65,0x6e])](()=>{_0x383a9b||_0x2fe5bc(_0x2b40ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x12c289(){return _0x1ae116[_0x2b40ae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b40ae([0x76,0x69,0x65,0x77])][_0x2b40ae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b40ae([0x61,0x75,0x74,0x6f]);}function _0xb20359(){_0x1ae116[_0x2b40ae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b40ae([0x76,0x69,0x65,0x77])][_0x2b40ae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b40ae([0x61,0x75,0x74,0x6f]);}}function _0x280d99(_0x40a5e7){const _0x2d7c93=[new window[(_0x2b40ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26ec0d=>setTimeout(_0x26ec0d,0x3d1ee13^_0x1f3163)),_0x543891[_0x2b40ae([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b40ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c4bc6=>{let _0x49b671=0x0;_0x1ae116[_0x2b40ae([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b40ae([0x6f,0x6e])](_0x2b40ae([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2a5eb2,_0x5a52b9)=>{_0x5a52b9[0x0][_0x2b40ae([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x49b671++,_0x49b671==(0x3d8d537^_0x1f3163)&&(_0x3c4bc6(),_0x2a5eb2[_0x2b40ae([0x6f,0x66,0x66])]());});}))];return window[_0x2b40ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b40ae([0x72,0x61,0x63,0x65])](_0x2d7c93)[_0x2b40ae([0x74,0x68,0x65,0x6e])](()=>_0x40a5e7);}async function _0x5b0c53(){await _0x543891,_0x1ae116[_0x2b40ae([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b40ae([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x46bfa7,_0x1ae116[_0x2b40ae([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b40ae([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x46bfa7,_0x1ae116[_0x2b40ae([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b40ae([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2bb1a9(){return _0x3c73a1(_0x2b40ae([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4d7797(_0x2b40ae([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2b40ae([0x73,0x74,0x61,0x74,0x65])]==_0x2b40ae([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x375bd8(){return _0x3c73a1(_0x2b40ae([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x133573(){return _0x3c73a1(_0x2b40ae([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4096a9(_0x52c6de){const _0x255424=_0x25f8e7();_0x1ae116[_0x255424]=_0x2b40ae([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x52c6de,_0x52c6de!=_0x2b40ae([0x56,0x61,0x6c,0x69,0x64])&&_0x5b0c53();}function _0x25f8e7(){const _0x2cc610=window[_0x2b40ae([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b40ae([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b40ae([0x6e,0x6f,0x77])]())[_0x2b40ae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b40ae([0x2e]),'');let _0xf78c06=_0x2b40ae([0x52]);for(let _0x41b125=0x0;_0x41b125<_0x2cc610[_0x2b40ae([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x41b125+=0x2){let _0x49a44b=window[_0x2b40ae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cc610[_0x2b40ae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x41b125,_0x41b125+0x2));_0x49a44b>=_0x1ec9ff[_0x2b40ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x49a44b-=_0x1ec9ff[_0x2b40ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf78c06+=_0x1ec9ff[_0x49a44b];}return _0xf78c06;}function _0xa63225(){const _0x39b37d=_0x5914d0[_0x2b40ae([0x73,0x70,0x6c,0x69,0x74])](_0x2b40ae([0x2e]));if(0x3!=_0x39b37d[_0x2b40ae([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x459676(_0x39b37d[0x1]);function _0x459676(_0x31341c){const _0x1e1686=_0x465b24(_0x31341c);return _0x1e1686&&_0x5dc9cd()?_0x1e1686:null;function _0x5dc9cd(){const _0x435e89=_0x1e1686[_0x2b40ae([0x6a,0x74,0x69])],_0xe3aafa=window[_0x2b40ae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x435e89[_0x2b40ae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x435e89[_0x2b40ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x422ae9={..._0x1e1686,[_0x2b40ae([0x6a,0x74,0x69])]:_0x435e89[_0x2b40ae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x435e89[_0x2b40ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x422ae9[_0x2b40ae([0x76,0x63])],_0x5c0783(_0x422ae9)==_0xe3aafa;}}}async function _0x3e238d(){let _0x3390b8=!0x0;try{const _0x51f39c=_0x5914d0[_0x2b40ae([0x73,0x70,0x6c,0x69,0x74])](_0x2b40ae([0x2e])),[_0x33f703,_0x26bf36,_0x48e766]=_0x51f39c;return _0x5183d9(_0x33f703),await _0x1365a3(_0x33f703,_0x26bf36,_0x48e766),_0x3390b8;}catch{return!0x1;}function _0x5183d9(_0x161dc5){const _0x3da191=_0x465b24(_0x161dc5);_0x3da191&&_0x3da191[_0x2b40ae([0x61,0x6c,0x67])]==_0x2b40ae([0x45,0x53,0x32,0x35,0x36])||(_0x3390b8=!0x1);}async function _0x1365a3(_0x26162c,_0xa914ee,_0x2effc2){const _0x4b547f=window[_0x2b40ae([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b40ae([0x66,0x72,0x6f,0x6d])](_0x5de781(_0x2effc2),_0x40734c=>_0x40734c[_0x2b40ae([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x465838=new window[(_0x2b40ae([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b40ae([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x26162c+_0x2b40ae([0x2e])+_0xa914ee),_0x34c596=window[_0x2b40ae([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b40ae([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x34c596)return;const _0xbb8965=await _0x34c596[_0x2b40ae([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b40ae([0x6a,0x77,0x6b]),_0x3f33e8,{[_0x2b40ae([0x6e,0x61,0x6d,0x65])]:_0x2b40ae([0x45,0x43,0x44,0x53,0x41]),[_0x2b40ae([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b40ae([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b40ae([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x34c596[_0x2b40ae([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b40ae([0x6e,0x61,0x6d,0x65])]:_0x2b40ae([0x45,0x43,0x44,0x53,0x41]),[_0x2b40ae([0x68,0x61,0x73,0x68])]:{[_0x2b40ae([0x6e,0x61,0x6d,0x65])]:_0x2b40ae([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xbb8965,_0x4b547f,_0x465838)||(_0x3390b8=!0x1);}}function _0x465b24(_0x4564fb){return _0x4564fb[_0x2b40ae([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b40ae([0x65,0x79]))?JSON[_0x2b40ae([0x70,0x61,0x72,0x73,0x65])](_0x5de781(_0x4564fb)):null;}function _0x5de781(_0x2f50f9){return window[_0x2b40ae([0x61,0x74,0x6f,0x62])](_0x2f50f9[_0x2b40ae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b40ae([0x2b]))[_0x2b40ae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b40ae([0x2f])));}function _0x5c0783(_0x4edaa5){let _0x26e36e=0x1505;function _0x2b186a(_0x314fa5){for(let _0x59f0b7=0x0;_0x59f0b7<_0x314fa5[_0x2b40ae([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59f0b7++){const _0x526796=_0x314fa5[_0x2b40ae([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x59f0b7);_0x26e36e=(_0x26e36e<<0x5)+_0x26e36e+_0x526796,_0x26e36e&=_0x26e36e;}}function _0x48a034(_0x5dad00){Array[_0x2b40ae([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5dad00)?_0x5dad00[_0x2b40ae([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x48a034):_0x5dad00&&typeof _0x5dad00==_0x2b40ae([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b40ae([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5dad00)[_0x2b40ae([0x73,0x6f,0x72,0x74])]()[_0x2b40ae([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3dfa51,_0x4a3228])=>{_0x2b186a(_0x3dfa51),_0x48a034(_0x4a3228);}):_0x2b186a(window[_0x2b40ae([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5dad00));}return _0x48a034(_0x4edaa5),_0x26e36e>>>0x0;}function _0x1355e4(_0x3631ac){return _0x3631ac[_0x2b40ae([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b40ae([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b40ae([0x30]));}function _0xd8604f(_0x1598fe){return _0x1598fe[_0x2b40ae([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b40ae([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b40ae([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c73a1(_0x49b70a){return _0x1ae116[_0x2b40ae([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2b40ae([0x68,0x61,0x73])](_0x49b70a);}function _0x4d7797(_0x39d356){return _0x1ae116[_0x2b40ae([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2b40ae([0x67,0x65,0x74])](_0x39d356);}function _0x46bfa7(){}function _0x2b40ae(_0x4c00d8){return _0x4c00d8['map'](_0x23a863=>String['fromCharCode'](_0x23a863))['join']('');}_0x4096a9(await _0x1e6922());}(this);}set['adapter'](_0x3500d3){if(this['_adapter'])throw new _0x2a6ed8('track-changes-adapter-already-set',this);this['_adapter']=_0x3500d3;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x372044=!0x1,toJSON:_0x29d255=!0x1}={}){const _0x55cea5=[];for(const _0x330b6a of this['_suggestions']['values']())_0x372044&&!_0x330b6a['isInContent']||_0x55cea5['push'](_0x330b6a);return _0x29d255?_0x55cea5['map'](_0x484b92=>_0x484b92['toJSON']()):_0x55cea5;}['getSuggestion'](_0x551acd){const _0x3bfb2c=this['_suggestions']['get'](_0x551acd);if(!_0x3bfb2c)throw new _0x2a6ed8('track-changes-suggestion-not-found',this);return _0x3bfb2c;}['hasSuggestion'](_0xcae7b9){return this['_suggestions']['has'](_0xcae7b9);}['addSuggestionData'](_0x2af66b){const {authorId:_0x3e1bad,id:_0x288f13,originalSuggestionId:_0x2f8962,attributes:_0x4bf242}=_0x2af66b,[_0x5adb5b,_0x3b612a]=_0x2af66b['type']['split'](':'),_0x2c5d50=this['_suggestions']['get'](_0x288f13)||this['_createSuggestion'](_0x5adb5b,_0x3b612a,_0x288f13,_0x3e1bad,_0x4bf242,_0x2f8962);if(this['_addThreadToSuggestion'](_0x2c5d50),this['_checkSuggestionCorrectness'](_0x2c5d50,_0x5adb5b,_0x3b612a||null,_0x3e1bad),_0x2c5d50['createdAt']=_0x2af66b['createdAt'],_0x2c5d50['_isDataLoaded']=!0x0,_0x4bf242&&_0x4bf242['@external']){const _0x51bb60=_0x4bf242['@external'],_0x17e1e4=this['_getExternalAuthor'](_0x51bb60['authorName']);_0x2c5d50['authoredAt']=_0x51bb60['createdAt'],_0x2c5d50['author']=_0x17e1e4,_0x2c5d50['isExternal']=!0x0;}else _0x2c5d50['authoredAt']=_0x2af66b['createdAt'];switch(_0x2af66b['data']&&(_0x2c5d50['data']=_0x2af66b['data']),_0x2af66b['attributes']&&(_0x2c5d50['attributes']=_0x2af66b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2c5d50['_saved']=!0x0),this['_suggestionState']['get'](_0x2c5d50)){case'notReady':this['_suggestionState']['set'](_0x2c5d50,'dataReady');break;case'markerReady':_0x2c5d50['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2c5d50])),this['_refreshSuggestionsChain'](new Set([_0x2c5d50])),this['_suggestionState']['set'](_0x2c5d50,'ready'),this['fire']('suggestionLoaded',_0x2c5d50)):this['_suggestionState']['set'](_0x2c5d50,'removed');}return _0x2c5d50;}['acceptSuggestion'](_0x467eb0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2a6dd3 of _0x467eb0['getAllAdjacentSuggestions']())_0x2a6dd3['accept']();});});}['discardSuggestion'](_0x5e2bec){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x35bf61 of _0x5e2bec['getAllAdjacentSuggestions']())_0x35bf61['discard']();});});}['enableCommand'](_0x3eecd2,_0x24daf7){const _0x59a3f3=this['editor']['commands']['get'](_0x3eecd2);if(!_0x59a3f3)throw new _0x2a6ed8('track-changes-command-not-found',this,{'commandName':_0x3eecd2});if(this['_enabledCommands']['has'](_0x59a3f3))throw new _0x2a6ed8('track-changes-enable-command-twice',this,{'commandName':_0x3eecd2});this['_enabledCommands']['add'](_0x59a3f3),_0x24daf7&&_0x59a3f3['on']('execute',(_0x52caba,_0x22fedb)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x22fedb['length']>0x0&&_0x22fedb[_0x22fedb['length']-0x1]&&_0x22fedb[_0x22fedb['length']-0x1]['forceDefaultExecution']?_0x22fedb['pop']():(_0x52caba['return']=_0x24daf7((..._0x588f06)=>_0x59a3f3['execute'](..._0x588f06,{'forceDefaultExecution':!0x0}),..._0x22fedb),_0x52caba['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x26a63a){let _0x5552ad,_0x1b85ec;const _0x5720c8=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5552ad=_0x26a63a();}catch(_0x16e9fc){_0x1b85ec=_0x16e9fc;}return _0x5720c8||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1b85ec&&_0x2a6ed8['rethrowUnexpectedError'](_0x1b85ec,this),_0x5552ad;}['markInsertion'](_0x203a96,_0x1c19c2=null,_0x1bfd15={}){if(_0x203a96['isCollapsed'])return null;const _0x564345=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1bfd15['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2eecef,meta:_0x13641a}of this['_findSuggestions'](_0x203a96,'insertion'))if(_0x13641a['isOwn']){if(!_0x13641a['isNextTo']){if(_0x13641a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x2eecef,_0x1bfd15))continue;return _0x2eecef;}if(sn(_0x2eecef,_0x1bfd15))return _0x2eecef;this['_breakSuggestionMarker'](_0x2eecef,_0x203a96['start'],_0x203a96['end']);break;}if(_0x1c19c2==_0x2eecef['subType']&&sn(_0x2eecef,_0x1bfd15)){const _0x296941=_0x2eecef['getFirstRange']();return _0x296941['start']['isEqual'](_0x203a96['end'])?this['_setSuggestionRange'](_0x2eecef,this['_model']['createRange'](_0x203a96['start'],_0x296941['end'])):this['_setSuggestionRange'](_0x2eecef,this['_model']['createRange'](_0x296941['start'],_0x203a96['end'])),_0x2eecef;}}const _0x5d39c3=_0x37bdeb(),_0x49bd35=_0x564345['id'],_0x4d8da3=_0x1c19c2?'insertion:'+_0x1c19c2:'insertion',_0x52262d=this['_setSuggestionData']({'id':_0x5d39c3,'type':_0x4d8da3,'createdAt':new Date(),'authorId':_0x49bd35,'attributes':_0x1bfd15});return this['_addSuggestionMarker'](_0x4d8da3,_0x5d39c3,_0x49bd35,_0x203a96),_0x52262d;}['markMultiRangeInsertion'](_0x612938,_0x3f83a7='multi',_0x4b16c9={}){const _0x4eb647=this['editor']['plugins']['get']('Users')['me'],_0x1ef4be=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3f83a7,'join');this['_trackingSessionId']&&(_0x4b16c9['trackingSessionId']=this['_trackingSessionId']);for(const _0x115829 of this['getSuggestions']())if(_0x115829['author']['id']==_0x4eb647['id']&&'insertion'==_0x115829['type']&&_0x115829['subType']==_0x3f83a7&&sn(_0x115829,_0x4b16c9)&&(_0x1ef4be(_0x115829['getRanges'](),_0x612938)||_0x1ef4be(_0x612938,_0x115829['getRanges']()))){for(const _0x1e46db of _0x612938)_0x115829['addRange'](_0x1e46db);return _0x115829;}for(const {suggestion:_0x43f3dc,meta:_0x394dd1}of this['_findSuggestions'](_0x612938,'insertion')){if(!_0x394dd1['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x394dd1['containsRangeInObject'])continue;if(!sn(_0x43f3dc,_0x4b16c9))continue;let _0x2a18b3=!0x0;for(const _0x43869d of _0x43f3dc['getRanges']())for(const _0x53ab91 of _0x612938)if(!_0x43869d['containsRange'](_0x53ab91)){_0x2a18b3=!0x1;break;}if(_0x2a18b3)return _0x43f3dc;}const _0x52316e=_0x37bdeb(),_0x4fd271=_0x4eb647['id'],_0x1dae57='insertion:'+_0x3f83a7,_0x33a144=this['_setSuggestionData']({'id':_0x52316e,'type':_0x1dae57,'createdAt':new Date(),'authorId':_0x4fd271,'attributes':_0x4b16c9});for(const _0x517de7 of _0x612938)this['_addSuggestionMarker'](_0x1dae57,_0x52316e,_0x4fd271,_0x517de7,T['getMultiRangeId']());return _0x33a144;}['markInlineFormat'](_0x5c4e98,_0xab8fe,_0x50d791=null,_0x55bd39={}){if(_0x50d791=_0x50d791||Ht(_0xab8fe),_0x5c4e98['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x55bd39['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4a35ce=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x50d791,'accept');return this['forceDefaultExecution'](()=>_0x4a35ce([_0x5c4e98],_0xab8fe,_0x55bd39)),null;}const _0x45db4c=this['editor']['plugins']['get']('Users')['me'],_0x1da40e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xb960da,meta:_0x38a0eb}of this['_findSuggestions'](_0x5c4e98,'insertion'))_0x38a0eb['isOwn']&&!_0x38a0eb['isInsideObject']&&_0x1da40e['push'](..._0xb960da['getRanges']());}const _0x3b9336=function(_0x170171,_0xcdeba5){const _0x1795b0=[];for(const _0x579be4 of _0xcdeba5){const _0xa71ec2=_0x170171['getIntersection'](_0x579be4);_0xa71ec2&&_0x1795b0['push'](_0xa71ec2);}return _0x1795b0;}(_0x5c4e98,_0x1da40e),_0x19821a=function(_0xd3d243,_0x16416f){const _0x6505a8=[_0xd3d243];for(const _0x290a5e of _0x16416f){let _0x3da347=0x0;for(;_0x3da347<_0x6505a8['length'];){const _0x3ca23b=_0x6505a8[_0x3da347]['getDifference'](_0x290a5e);_0x6505a8['splice'](_0x3da347,0x1,..._0x3ca23b),_0x3da347+=_0x3ca23b['length'];}}return _0x6505a8;}(_0x5c4e98,_0x1da40e);_0x3b9336['length']&&this['_model']['change'](()=>{for(const _0x4b77f5 of _0x3b9336){const _0x3d6a21=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x50d791,'accept');this['forceDefaultExecution'](()=>_0x3d6a21([_0x4b77f5],_0xab8fe,_0x55bd39));}});for(const _0x1eb9d6 of _0x19821a){let _0x5239e1=null,_0xf96fa1=_0x1eb9d6['start'],_0x5390cb=_0x1eb9d6['end'];for(const {suggestion:_0x487435,meta:_0x55ac5c}of this['_findSuggestions'](_0x1eb9d6,'formatInline')){if(!_0x55ac5c['isOwn'])continue;if(_0x487435['subType']!=_0x50d791)continue;if(!sn(_0x487435,_0x55bd39))continue;const _0x11477e=_0x487435['getFirstRange']();if(_0x11477e['containsRange'](_0x1eb9d6,!0x0))return null;_0xf96fa1=_0xf96fa1['isBefore'](_0x11477e['start'])?_0xf96fa1:_0x11477e['start'],_0x5390cb=_0x5390cb['isAfter'](_0x11477e['end'])?_0x5390cb:_0x11477e['end'],_0x5239e1?_0x11477e['start']['isBefore'](_0x5239e1['getFirstRange']()['start'])?(_0x5239e1['removeMarkers'](),_0x5239e1=_0x487435):_0x487435['removeMarkers']():_0x5239e1=_0x487435;}const _0xd23992=this['_model']['createRange'](_0xf96fa1,_0x5390cb);if(_0x5239e1)this['_setSuggestionRange'](_0x5239e1,_0xd23992);else{const _0x48c9c4=_0x37bdeb(),_0x59fb00=_0x45db4c['id'];this['_setSuggestionData']({'id':_0x48c9c4,'type':'formatInline:'+_0x50d791,'data':_0xab8fe,'createdAt':new Date(),'authorId':_0x59fb00,'attributes':_0x55bd39}),this['_addSuggestionMarker']('formatInline:'+_0x50d791,_0x48c9c4,_0x59fb00,_0xd23992);}}return null;}['markBlockFormat'](_0x2b7ca9,_0x167109,_0x5bf2e6=[],_0x1d7650=null,_0x5ed174={}){_0x167109['formatGroupId']||(_0x167109['formatGroupId']=_0x167109['commandName']),_0x167109['multipleBlocks']=_0x2b7ca9['is']('range'),_0x1d7650=_0x1d7650||Ht(_0x167109);const _0xca04bb=_0x5bf2e6['map'](_0x5ad33d=>tn(_0x5ad33d,this['_model'])),_0x23e29f=_0x2b7ca9['is']('range')?_0x2b7ca9:tn(_0x2b7ca9,this['_model']);if(this['_trackingSessionId']&&(_0x5ed174['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3e875b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d7650,'accept');return this['forceDefaultExecution'](()=>_0x3e875b([_0x23e29f],_0x167109,_0x5ed174)),null;}_0xca04bb['push'](_0x23e29f);let _0x39eedd=!0x0;for(const _0x1ca35e of _0xca04bb)if(!this['_rangeIsInLocalUserInsertion'](_0x1ca35e)){_0x39eedd=!0x1;break;}if(_0x39eedd&&'always'!==this['_trackFormatChanges']){const _0x439df1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d7650,'accept');return this['forceDefaultExecution'](()=>_0x439df1([_0x23e29f],_0x167109,_0x5ed174)),null;}let _0x87cf4a=null,_0x4de6e9=_0x23e29f['start'],_0x10d29e=_0x23e29f['end'];for(const {suggestion:_0x19e902,meta:_0x4e7aa5}of this['_findSuggestions'](_0x23e29f,'formatBlock')){if(!_0x4e7aa5['isOwn'])continue;if(_0x4e7aa5['isNextTo']||_0x4e7aa5['containsRangeInObject']||_0x4e7aa5['isInsideObject'])continue;if(_0x19e902['data']['formatGroupId']!=_0x167109['formatGroupId'])continue;if(!sn(_0x19e902,_0x5ed174))continue;const _0x2c0743=_0x19e902['getFirstRange']();if(_0x19e902['subType']==_0x1d7650){if(_0x2c0743['containsRange'](_0x23e29f,!0x0))return null;_0x4de6e9=_0x4de6e9['isBefore'](_0x2c0743['start'])?_0x4de6e9:_0x2c0743['start'],_0x10d29e=_0x10d29e['isAfter'](_0x2c0743['end'])?_0x10d29e:_0x2c0743['end'],_0x87cf4a?_0x2c0743['start']['isBefore'](_0x87cf4a['getFirstRange']()['start'])?(_0x87cf4a['removeMarkers'](),_0x87cf4a=_0x19e902):_0x19e902['removeMarkers']():_0x87cf4a=_0x19e902;}else{const _0x5c193a=_0x23e29f['getIntersection'](_0x2c0743);this['_cutOutSuggestionMarker'](_0x19e902,_0x5c193a);}}const _0xd076bf=this['editor']['plugins']['get']('Users')['me'],_0x31ed13=_0x37bdeb(),_0x48cc48=_0xd076bf['id'];if(_0x87cf4a)return this['_setSuggestionRange'](_0x87cf4a,this['_model']['createRange'](_0x4de6e9,_0x10d29e)),_0x87cf4a;{const _0x5459a9=this['_setSuggestionData']({'id':_0x31ed13,'type':'formatBlock:'+_0x1d7650,'data':_0x167109,'createdAt':new Date(),'authorId':_0x48cc48,'attributes':_0x5ed174});return this['_addSuggestionMarker']('formatBlock:'+_0x1d7650,_0x31ed13,_0x48cc48,this['_model']['createRange'](_0x4de6e9,_0x10d29e)),_0x5459a9;}}['markMultiRangeBlockFormat'](_0x17ef20,_0x203122,_0x301160=[],_0x18827c=null,_0x39f7cc={}){_0x203122['formatGroupId']||(_0x203122['formatGroupId']=_0x203122['commandName']);const _0xb30929=_0x17ef20[0x0];_0x203122['multipleBlocks']=_0xb30929['is']('range'),_0x18827c=_0x18827c||Ht(_0x203122);const _0x15b94c=_0x301160['map'](_0x30172b=>tn(_0x30172b,this['_model'])),_0x38720d=_0xb30929['is']('range')?_0x17ef20:_0x17ef20['map'](_0x45aa8f=>tn(_0x45aa8f,this['_model']));if(this['_trackingSessionId']&&(_0x39f7cc['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x55b317=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x18827c,'accept');return this['forceDefaultExecution'](()=>_0x55b317(_0x38720d,_0x203122,_0x39f7cc)),null;}_0x15b94c['push'](..._0x38720d);let _0x21d206=!0x0;for(const _0x38671c of _0x15b94c)if(!this['_rangeIsInLocalUserInsertion'](_0x38671c)){_0x21d206=!0x1;break;}if(_0x21d206&&'always'!==this['_trackFormatChanges']){const _0x339d10=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x18827c,'accept');return this['forceDefaultExecution'](()=>_0x339d10(_0x38720d,_0x203122,_0x39f7cc)),null;}const _0x3b9836=this['editor']['plugins']['get']('Users')['me'];for(const _0x58a631 of this['getSuggestions']()){const _0x15d15a=_0x58a631['data'];if(_0x58a631['author']['id']!=_0x3b9836['id'])continue;if('formatBlock'!=_0x58a631['type']||_0x15d15a['formatGroupId']!=_0x203122['formatGroupId'])continue;if(!sn(_0x58a631,_0x39f7cc))continue;const _0x24c816=_0x58a631['subType']==_0x18827c;for(let _0x221bb9=0x0;_0x221bb9<_0x38720d['length'];_0x221bb9++){const _0x1cb3f8=_0x38720d[_0x221bb9];for(const _0x408e4f of _0x58a631['getMarkers']()){const _0x796ab5=_0x408e4f['getRange']();if(_0x1cb3f8['isEqual'](_0x796ab5)){_0x24c816?(_0x38720d['splice'](_0x221bb9,0x1),_0x221bb9--):_0x58a631['removeMarker'](_0x408e4f['name']);break;}}}}if(0x0==_0x38720d['length'])return null;const _0x14107e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x18827c,'join');for(const _0x33038c of this['getSuggestions']()){const _0x3c4068=_0x33038c['data'];if(_0x33038c['author']['id']==_0x3b9836['id']&&('formatBlock'==_0x33038c['type']&&_0x3c4068['formatGroupId']==_0x203122['formatGroupId']&&_0x33038c['subType']==_0x18827c&&sn(_0x33038c,_0x39f7cc)&&(_0x14107e(_0x33038c['getRanges'](),_0x38720d)||_0x14107e(_0x38720d,_0x33038c['getRanges']())))){for(const _0x1eacf1 of _0x38720d)_0x33038c['addRange'](_0x1eacf1);return _0x33038c;}}const _0x28fe0a=_0x37bdeb(),_0x2d47f5=_0x3b9836['id'],_0x48422d='formatBlock:'+_0x18827c,_0x80ee37=this['_setSuggestionData']({'id':_0x28fe0a,'type':_0x48422d,'data':_0x203122,'createdAt':new Date(),'authorId':_0x2d47f5,'attributes':_0x39f7cc});for(const _0x3e75a8 of _0x38720d)this['_addSuggestionMarker'](_0x48422d,_0x28fe0a,_0x2d47f5,_0x3e75a8,T['getMultiRangeId']());return _0x80ee37;}['markDeletion'](_0x4f7e34,_0x7c11b=null,_0x4e0819={}){if(_0x4f7e34['isCollapsed'])return null;const _0x55c1ea=this['editor']['plugins']['get']('Users')['me'],_0x43d87e=new _0x32b072(_0x4f7e34['start'],_0x4f7e34['end']);this['_trackingSessionId']&&(_0x4e0819['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x490ae7,meta:_0x28e178}of this['_findSuggestions'](_0x43d87e,'insertion'))if(_0x28e178['isOwn']&&!_0x28e178['isNextTo']){if(_0x490ae7['isMultiRange']){const _0x48d3f8=_0x490ae7['getRanges']()['filter'](_0x41e737=>'$graveyard'!=_0x41e737['root']['rootName']);_0x48d3f8['every'](_0x55f7fb=>_0x43d87e['containsRange'](_0x55f7fb,!0x0))&&_0x490ae7['discard']();if(_0x48d3f8['some'](_0x31bf97=>_0x31bf97['containsRange'](_0x43d87e,!0x0))){const _0x5bc95e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x7c11b,'accept');return this['forceDefaultExecution'](()=>_0x5bc95e([_0x43d87e],null,_0x4e0819)),null;}}else{const _0x5ef408=_0x43d87e['getIntersection'](_0x490ae7['getFirstRange']());null!==_0x5ef408&&_0x490ae7['_onDiscard']([_0x5ef408],null,_0x4e0819);}}if(_0x43d87e['detach'](),_0x43d87e['isCollapsed']||'$graveyard'==_0x43d87e['root']['rootName'])return null;let _0x5d29fb=null,_0x598754=_0x43d87e['start'],_0x2b18c1=_0x43d87e['end'];const _0x4dbe01=this['_findSuggestions'](_0x43d87e,'deletion');for(const {suggestion:_0x574220,meta:_0x5ac1f6}of _0x4dbe01){const _0x2f149f=this['_model']['createRange'](_0x598754,_0x2b18c1);if(_0x5ac1f6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5ac1f6['containsRangeInObject']&&!_0x5ac1f6['isInsideObject'])){if(_0x574220['isMultiRange']){if(!sn(_0x574220,_0x4e0819))continue;let _0x524904=!0x0;for(const _0x59678a of _0x574220['getRanges']()){if(_0x59678a['containsRange'](_0x2f149f,!0x0))return _0x574220;_0x2f149f['containsRange'](_0x59678a)||(_0x524904=!0x1);}_0x524904&&_0x574220['discard']();}else{const _0x732df3=_0x574220['getFirstRange']();if(_0x732df3['containsRange'](_0x2f149f,!0x0))return _0x574220;if(!sn(_0x574220,_0x4e0819)){_0x2f149f['containsRange'](_0x732df3)?_0x574220['removeMarkers']():_0x732df3['containsPosition'](_0x598754)?_0x598754=_0x732df3['end']:_0x732df3['containsPosition'](_0x2b18c1)&&(_0x2b18c1=_0x732df3['start']);continue;}_0x598754=_0x598754['isBefore'](_0x732df3['start'])?_0x598754:_0x732df3['start'],_0x2b18c1=_0x2b18c1['isAfter'](_0x732df3['end'])?_0x2b18c1:_0x732df3['end'],_0x4e0819=Object['assign']({},_0x574220['attributes']),_0x5d29fb?_0x732df3['start']['isBefore'](_0x5d29fb['getFirstRange']()['start'])?(_0x5d29fb['removeMarkers'](),_0x5d29fb=_0x574220):_0x574220['removeMarkers']():_0x5d29fb=_0x574220;}}}if(_0x5d29fb)return this['_setSuggestionRange'](_0x5d29fb,this['_model']['createRange'](_0x598754,_0x2b18c1)),_0x5d29fb;{const _0x74901d=_0x37bdeb(),_0x5b7b63=this['_model']['createRange'](_0x598754,_0x2b18c1),_0x3f2704=_0x55c1ea['id'],_0x30a476=_0x7c11b?'deletion:'+_0x7c11b:'deletion',_0x10e9dc=this['_setSuggestionData']({'id':_0x74901d,'type':_0x30a476,'createdAt':new Date(),'authorId':_0x3f2704,'attributes':_0x4e0819});return this['_addSuggestionMarker'](_0x30a476,_0x74901d,_0x3f2704,_0x5b7b63),_0x10e9dc;}}['markMultiRangeDeletion'](_0x1161a6,_0x182aee='multi',_0x4c86cc={}){const _0x4f92a0=this['editor']['plugins']['get']('Users')['me'],_0x1dae70=_0x1161a6['map'](_0xb65df7=>new _0x32b072(_0xb65df7['start'],_0xb65df7['end'])),_0x287841=new Set();this['_trackingSessionId']&&(_0x4c86cc['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2ae2a6,meta:_0x68b332}of this['_findSuggestions'](_0x1dae70,'insertion'))_0x68b332['isOwn']&&!_0x68b332['isNextTo']&&_0x287841['add'](_0x2ae2a6);for(const _0x5782ad of _0x287841)if(_0x5782ad['isMultiRange']){const _0x471c98=_0x5782ad['getRanges']();(!_0x5782ad['attributes']||!_0x5782ad['attributes']['skipNestingCheck'])&&(_0x471c98['every'](_0x4b0caa=>_0x1dae70['some'](_0x293ef0=>_0x293ef0['containsRange'](_0x4b0caa,!0x0)))&&_0x5782ad['discard']());if(_0x1dae70['every'](_0x295753=>_0x471c98['some'](_0x4117c7=>_0x4117c7['containsRange'](_0x295753,!0x0)))){const _0x15e9d7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x182aee,'accept');return this['forceDefaultExecution'](()=>_0x15e9d7(_0x1161a6,null,_0x4c86cc)),null;}}else{const _0x3f09a8=_0x5782ad['getFirstRange']();_0x1dae70['some'](_0xbf73f7=>_0xbf73f7['containsRange'](_0x3f09a8,!0x0))&&_0x5782ad['discard']();if(_0x1dae70['every'](_0xed8632=>_0x3f09a8['containsRange'](_0xed8632,!0x0))){const _0x128d3e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x182aee,'accept');return this['forceDefaultExecution'](()=>_0x128d3e(_0x1dae70,null,_0x4c86cc)),null;}}const _0x1da605=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x182aee,'join');let _0x73515=null;for(const _0x1fd73f of this['getSuggestions']())if(_0x1fd73f['author']['id']==_0x4f92a0['id']&&_0x1fd73f['isInContent']&&'deletion'==_0x1fd73f['type']&&_0x1fd73f['subType']==_0x182aee&&sn(_0x1fd73f,_0x4c86cc)&&(_0x1da605(_0x1fd73f['getRanges'](),_0x1dae70)||_0x1da605(_0x1dae70,_0x1fd73f['getRanges']()))){if(_0x73515){if(_0x1fd73f['commentThread']&&_0x1fd73f['commentThread']['length'])continue;for(const _0x310eda of _0x1fd73f['getRanges']())_0x73515['isIntersectingWithRange'](_0x310eda)||_0x73515['addRange'](_0x310eda);_0x1fd73f['removeMarkers']();}else{_0x73515=_0x1fd73f;for(const _0x3fd5f6 of _0x1dae70)_0x1fd73f['isIntersectingWithRange'](_0x3fd5f6)||_0x1fd73f['addRange'](_0x3fd5f6);}}if(_0x73515)return _0x73515;_0x287841['clear']();for(const {suggestion:_0x5709ac,meta:_0x5ac3a8}of this['_findSuggestions'](_0x1dae70,'deletion'))_0x5ac3a8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5ac3a8['containsRangeInObject']&&!_0x5ac3a8['isInsideObject'])&&sn(_0x5709ac,_0x4c86cc)&&_0x287841['add'](_0x5709ac);for(const _0x3d07af of _0x287841){const _0x50837d=_0x3d07af['getRanges']();if(!_0x4c86cc||!_0x4c86cc['skipNestingCheck']){if(_0x1dae70['every'](_0x203afd=>_0x50837d['some'](_0x18d7a8=>_0x18d7a8['containsRange'](_0x203afd,!0x0))))return _0x3d07af;}(!_0x3d07af['attributes']||!_0x3d07af['attributes']['skipNestingCheck'])&&(_0x50837d['every'](_0x33a863=>_0x1dae70['some'](_0x27c9f0=>_0x27c9f0['containsRange'](_0x33a863,!0x0)))&&_0x3d07af['discard']());}const _0x31eac4=_0x37bdeb(),_0x25b8cd=_0x4f92a0['id'],_0x5779a2='deletion:'+_0x182aee,_0x3ef926=this['_setSuggestionData']({'id':_0x31eac4,'type':_0x5779a2,'createdAt':new Date(),'authorId':_0x25b8cd,'attributes':_0x4c86cc});for(const _0x5b4377 of _0x1dae70)_0x5b4377['detach'](),_0x5b4377['isCollapsed']||'$graveyard'==_0x5b4377['root']['rootName']||this['_addSuggestionMarker'](_0x5779a2,_0x31eac4,_0x25b8cd,_0x5b4377,T['getMultiRangeId']());return _0x3ef926;}['markAttributeChange'](_0x2e1b81,_0xfc62df,_0x2ca688,_0x5649bd,_0x219528){if(_0x2e1b81['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x510f93=this['editor']['plugins']['get']('Users')['me']['id'],_0x192184=Array['from'](this['_suggestions']['values']())['filter'](_0x3da214=>'attribute'==_0x3da214['type']&&_0x3da214['data']['key']==_0xfc62df&&_0x3da214['isIntersectingWithRange'](_0x2e1b81));if(this['_trackingSessionId']&&(_0x219528['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x462b82=this['_findSuggestions'](_0x2e1b81,'insertion')['filter'](({meta:_0x1207eb})=>_0x1207eb['isOwn']&&!_0x1207eb['isInsideObject']&&!_0x1207eb['isNextTo'])['map'](({suggestion:_0x1c713f})=>_0x1c713f);_0x192184['unshift'](..._0x462b82);}const _0x73b561=new Map([[_0x2e1b81,_0x2ca688]]);for(const _0x39b7f6 of _0x192184){const _0x5d421d='attribute'==_0x39b7f6['type']?_0x39b7f6['data']['oldValue']:void 0x0,_0x122571=_0x39b7f6['getFirstRange'](),_0x3a7140=Array['from'](_0x73b561['keys']())['find'](_0x1d6a24=>_0x1d6a24['isIntersecting'](_0x122571));if(!_0x3a7140)continue;const _0x44485e=_0x3a7140['getDifference'](_0x122571);this['_isBlockAttribute'](_0xfc62df)&&'insertion'==_0x39b7f6['type']&&0x0!=_0x44485e['length']||(_0x73b561['delete'](_0x3a7140),_0x44485e['forEach'](_0x203955=>{_0x73b561['set'](_0x203955,_0x2ca688);}),'insertion'!=_0x39b7f6['type']&&_0x5d421d!=_0x5649bd&&_0x73b561['set'](_0x3a7140['getIntersection'](_0x122571),_0x5d421d));}const _0x574384=[];for(const [_0x50125d,_0x3ce8a4]of _0x73b561){const _0xec8ce8=_0x37bdeb(),_0x516e47={'key':_0xfc62df,'oldValue':_0x3ce8a4,'newValue':_0x5649bd};_0xfc62df['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':_0xfc62df});const _0x5d769b=('attribute:'+(_0xfc62df+'|'+Ht({'newValue':_0x5649bd})))['substring'](0x0,0x3c),_0x3fdb50=this['_setSuggestionData']({'id':_0xec8ce8,'type':_0x5d769b,'data':_0x516e47,'createdAt':new Date(),'authorId':_0x510f93,'attributes':_0x219528});_0x574384['push'](_0x3fdb50),this['_addSuggestionMarker'](_0x5d769b,_0xec8ce8,_0x510f93,_0x50125d);}return _0x574384;}['enableDefaultAttributesIntegration'](_0x166775){this['enableCommand'](_0x166775,(_0x1dcd67,..._0x58ad64)=>{this['recordAttributeChanges'](()=>{_0x1dcd67(..._0x58ad64);});});}['registerBlockAttribute'](_0x59ef6f){this['editor']['plugins']['get'](_0x2194c1)['registerBlockAttribute'](_0x59ef6f);}['registerInlineAttribute'](_0x3b937e){this['editor']['plugins']['get'](_0x2194c1)['registerInlineAttribute'](_0x3b937e);}['startTrackingSession'](_0x457417){return this['_trackingSessionId']=void 0x0!==_0x457417?_0x457417:_0x37bdeb(),this['_trackingSessionId'];}['_getAttributeKey'](_0xbe75ad){return'attribute'==_0xbe75ad['type']?_0xbe75ad['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x3547ab){if(0x0==_0x3547ab['length'])return;const _0x6a029a=this['editor'],_0x33c142=_0x6a029a['plugins']['get'](_0xfbb8b7),_0x33a6a0=[];_0x6a029a['model']['change'](_0x3b3b15=>{for(let _0x3983a1=0x0;_0x3983a1<_0x3547ab['length'];_0x3983a1++){const _0x12ced7=_0x3547ab[_0x3983a1];if(_0x12ced7['baseVersion']=_0x6a029a['model']['document']['version'],_0x12ced7['isDocumentOperation']=!0x0,_0x33c142['isMarkedRemoveOperation'](_0x12ced7)){const _0x238652=_0x486d5d(_0x12ced7['newRange'],_0x6a029a['model']);_0x33a6a0['unshift'](_0x32b072['fromRange'](_0x238652));}else switch(_0x12ced7['type']){case'rename':{const _0x43521b=_0x12ced7['oldName'],_0x4a7081=_0x12ced7['newName'];if(_0x43521b==_0x4a7081)break;_0x3b3b15['batch']['addOperation'](_0x12ced7),_0x6a029a['model']['applyOperation'](_0x12ced7);const _0xdefaa4='$elementName',_0x4e3e98=_0x12ced7['position'],_0x1c9a91=_0x6a029a['model']['createRange'](_0x4e3e98,_0x6a029a['model']['createPositionAt'](_0x4e3e98['nodeAfter'],'end'));this['markAttributeChange'](_0x1c9a91,_0xdefaa4,_0x43521b,_0x4a7081,{'groupId':_0x37bdeb()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x3a99af=_0x12ced7['oldValue'],_0x1f8f43=_0x12ced7['newValue'];if(_0x3a99af==_0x1f8f43)break;_0x3b3b15['batch']['addOperation'](_0x12ced7),_0x6a029a['model']['applyOperation'](_0x12ced7);const _0xf991=_0x12ced7['key'];if(!this['_isRegisteredAttribute'](_0xf991))break;const _0x350e52=_0x486d5d(_0x12ced7['range'],_0x6a029a['model']);this['markAttributeChange'](_0x350e52,_0xf991,_0x3a99af,_0x1f8f43,{'groupId':_0x37bdeb()});break;}case'insert':{_0x3b3b15['batch']['addOperation'](_0x12ced7),_0x6a029a['model']['applyOperation'](_0x12ced7);if(_0x3547ab[_0x3983a1+0x1]&&'move'==_0x3547ab[_0x3983a1+0x1]['type'])break;const _0x2a8b53=_0x12ced7['position'],_0x445c43=_0x12ced7['howMany'],_0x5e6e9e=_0x486d5d(_0x6a029a['model']['createRange'](_0x2a8b53,_0x2a8b53['getShiftedBy'](_0x445c43)),_0x6a029a['model']);this['markInsertion'](_0x5e6e9e);break;}case'split':{_0x3b3b15['batch']['addOperation'](_0x12ced7),_0x6a029a['model']['applyOperation'](_0x12ced7);const _0x4d8517=_0x12ced7['splitPosition'],_0x3c5349=_0x12ced7['moveTargetPosition'];this['markInsertion'](_0x6a029a['model']['createRange'](_0x4d8517,_0x3c5349));break;}case'move':case'remove':_0x3b3b15['batch']['addOperation'](_0x12ced7),_0x6a029a['model']['applyOperation'](_0x12ced7);}}for(const _0x2c04fa of _0x33a6a0)_0x2c04fa['detach'](),this['markDeletion'](_0x2c04fa);});}['_setSuggestionRange'](_0x552eaa,_0x154df2){const _0x416688=_0x552eaa['getFirstMarker']();this['_model']['change'](_0x1629ea=>{_0x1629ea['updateMarker'](_0x416688,{'range':_0x154df2});});}['_addThreadToSuggestion'](_0x1fa438){const _0x5d75a5=_0x1fa438['id'],_0x19bb0f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5d75a5)||this['_commentsRepository']['addCommentThread']({'channelId':_0x19bb0f,'threadId':_0x5d75a5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xaeef77=this['_commentsRepository']['getCommentThread'](_0x5d75a5);_0xaeef77['unbind']('isRemovable'),_0xaeef77['isRemovable']=!0x1,_0x1fa438['commentThread']=_0xaeef77;}['_checkSuggestionCorrectness'](_0xdd329,_0xd4d9bc,_0x58f36b,_0x5919f5){if(_0xdd329['type']!=_0xd4d9bc||_0xdd329['subType']!=_0x58f36b||_0xdd329['creator']['id']!=_0x5919f5)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2a6ed8('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4286b8,_0x25e240){const _0x45d232=_0x4286b8['getFirstRange']();if(_0x25e240['isEqual'](_0x45d232))_0x4286b8['removeMarkers']();else{if(_0x45d232['containsRange'](_0x25e240)){const _0x5325dd=this['_model']['createPositionAt'](_0x25e240['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4286b8,this['_model']['createRange'](_0x45d232['start'],_0x5325dd));const _0x50bea9=_0x37bdeb(),_0x2be9ec=_0x4286b8['creator']['id'],_0x33c45c=_0x4286b8['type']+':'+_0x4286b8['subType'];this['_setSuggestionData']({'id':_0x50bea9,'type':_0x33c45c,'createdAt':new Date(),'authorId':_0x2be9ec,'data':_0x4286b8['data'],'attributes':_0x4286b8['attributes']});const _0x2f4875=this['_model']['createPositionAt'](_0x25e240['end']['parent'],'after'),_0x309e55=this['_model']['createRange'](_0x2f4875,_0x45d232['end']);this['_addSuggestionMarker'](_0x33c45c,_0x50bea9,_0x2be9ec,_0x309e55);}else{if(_0x45d232['containsPosition'](_0x25e240['start'])){const _0x487934=this['_model']['createPositionAt'](_0x25e240['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4286b8,this['_model']['createRange'](_0x45d232['start'],_0x487934));}else{const _0x5b68d9=this['_model']['createPositionAt'](_0x25e240['end']['parent'],'after');this['_setSuggestionRange'](_0x4286b8,this['_model']['createRange'](_0x5b68d9,_0x45d232['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x444c48){for(const {suggestion:_0x27e10b,meta:_0xe7d1f}of this['_findSuggestions'](_0x444c48,'insertion')){if(!_0xe7d1f['isOwn'])continue;const _0x594287=_0x27e10b['getRanges']();for(const _0x41b4c1 of _0x594287)if(!_0x444c48['getDifference'](_0x41b4c1)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x154540){return this['editor']['plugins']['get']('Users')['getUser'](_0x154540);}['_getExternalAuthor'](_0x39dca2){const _0x4b7935=this['editor']['plugins']['get']('Users'),_0x260695=_0x53ee05('external:'+_0x39dca2),_0x153f4d=_0x4b7935['getUser'](_0x260695);return _0x153f4d||_0x4b7935['addUser']({'id':_0x260695,'name':_0x39dca2});}['_createSuggestion'](_0x455106,_0x4cedc2,_0xa6d779,_0x3946cd,_0x3a0eec,_0x505774){const _0x5c58aa=this['_getAuthorFromId'](_0x3946cd);if(!_0x5c58aa)throw new _0x2a6ed8('track-changes-user-not-found',this,{'authorId':_0x3946cd,'suggestionId':_0xa6d779});const _0x2878c3=this['_suggestionFactory']['buildSuggestion'](_0x455106,_0x4cedc2,_0xa6d779,_0x5c58aa,_0x3a0eec,_0x3bdfc5=>{this['_updateSuggestionData'](_0xa6d779,{'attributes':_0x3bdfc5});const _0x47b33b=this['getSuggestion'](_0xa6d779);this['_joinWithAdjacentSuggestions'](new Set([_0x47b33b])),this['_refreshSuggestionsChain'](new Set([_0x47b33b]));},_0x505774);return this['listenTo'](_0x2878c3,'accept',()=>{this['_updateSuggestionData'](_0xa6d779,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2878c3,'discard',()=>{this['_updateSuggestionData'](_0xa6d779,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xa6d779,_0x2878c3),this['_suggestionState']['set'](_0x2878c3,'notReady'),_0x2878c3;}['_splitMarkerName'](_0x67c030){return _0x272200(_0x67c030);}['_breakSuggestionMarker'](_0x583e80,_0x35fe1b,_0x896b4e){const _0x55a4e3=_0x583e80['getFirstRange'](),_0x1d1283=_0x55a4e3['start'],_0x256e00=_0x55a4e3['end'];this['_setSuggestionRange'](_0x583e80,this['_model']['createRange'](_0x1d1283,_0x35fe1b));const _0x5d4d97=_0x37bdeb(),_0x5d3d20=_0x583e80['creator']['id'],_0x55810a=_0x583e80['type']+(_0x583e80['subType']?':'+_0x583e80['subType']:'');this['_setSuggestionData']({'id':_0x5d4d97,'type':_0x55810a,'createdAt':new Date(),'authorId':_0x5d3d20,'originalSuggestionId':_0x583e80['_originalSuggestionId']||_0x583e80['id'],'attributes':_0x583e80['attributes'],'data':_0x583e80['data']});const _0xf776b8=this['_getAttributeKey'](_0x583e80);('formatBlock'==_0x583e80['type']||_0xf776b8&&this['_isBlockAttribute'](_0xf776b8))&&(_0x896b4e=this['_model']['createPositionBefore'](_0x896b4e['parent'])),this['_addSuggestionMarker'](_0x55810a,_0x5d4d97,_0x5d3d20,this['_model']['createRange'](_0x896b4e,_0x256e00));}['_findSuggestions'](_0x566d95,_0x43f5f5=null){const _0x5b748d=[],_0x228655=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x566d95)||(_0x566d95=[_0x566d95]);for(const _0x238141 of this['getSuggestions']()){if(!_0x238141['isInContent'])continue;if(_0x43f5f5&&_0x238141['type']!=_0x43f5f5)continue;let _0xefda04=!0x1;for(const _0x35cdf3 of _0x238141['getRanges']()){for(const _0x20c82a of _0x566d95){const _0x414fff=_0x20c82a['start']['isEqual'](_0x35cdf3['end'])||_0x20c82a['end']['isEqual'](_0x35cdf3['start']);if(_0x414fff||_0x20c82a['getIntersection'](_0x35cdf3)){const _0x15a767=_0x20c82a['containsRange'](_0x35cdf3)&&zt(this['_model']['schema'],_0x35cdf3['start'],_0x20c82a),_0x108b07=_0x35cdf3['containsRange'](_0x20c82a)&&zt(this['_model']['schema'],_0x20c82a['start'],_0x35cdf3);_0x5b748d['push']({'suggestion':_0x238141,'meta':{'isOwn':_0x228655==_0x238141['author'],'isNextTo':_0x414fff,'isInsideObject':_0x15a767,'containsRangeInObject':_0x108b07}}),_0xefda04=!0x0;break;}}if(_0xefda04)break;}}return _0x5b748d;}['_addSuggestionMarker'](_0x1383b1,_0x18a548,_0x4dd47e,_0x5bf78c,_0x1cf057){this['_model']['change'](_0x1ab832=>{let _0x26f4b6='suggestion:'+_0x1383b1+':'+_0x18a548+':'+_0x4dd47e;_0x1cf057&&(_0x26f4b6=_0x26f4b6+':'+_0x1cf057),_0x1ab832['addMarker'](_0x26f4b6,{'range':_0x5bf78c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x27849f){const _0x2b0396=_0x27849f['previous'],_0x4682fe=_0x27849f['next'];_0x27849f['previous']=null,_0x27849f['next']=null,null!=_0x2b0396&&_0x2b0396['next']==_0x27849f&&(_0x2b0396['next']=_0x4682fe),null!=_0x4682fe&&_0x4682fe['previous']==_0x27849f&&(_0x4682fe['previous']=_0x2b0396),'ready'==this['_suggestionState']['get'](_0x27849f)&&(this['_suggestionState']['set'](_0x27849f,'removed'),this['fire']('suggestionUnloaded',_0x27849f,_0x2b0396,_0x4682fe));}['_setSuggestionData'](_0x1dc875){const _0x9c04b7=_0x1dc875['id'],_0x117894=this['addSuggestionData'](_0x1dc875);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1769c3=this['editor']['plugins']['get']('PendingActions'),_0x462ba1=_0x117894['hasComments'],_0x9e5730=_0x117894['subType']?_0x117894['type']+':'+_0x117894['subType']:_0x117894['type'],_0x24c78b=this['editor']['locale'],_0x4bdae6=_0x1769c3['add'](o(_0x24c78b,'PENDING_ACTION_SUGGESTION')),_0x265b0c={'id':_0x9c04b7,'type':_0x9e5730,'hasComments':_0x462ba1,'data':_0x1dc875['data']||null,'originalSuggestionId':_0x1dc875['originalSuggestionId']||null,'attributes':_0x117894['attributes']};this['_adapter']['addSuggestion'](_0x265b0c)['then'](_0xf09a5c=>{_0x117894['_saved']=!0x0,_0x1769c3['remove'](_0x4bdae6),_0xf09a5c&&_0xf09a5c['createdAt']&&(this['_suggestions']['get'](_0x9c04b7)['createdAt']=_0xf09a5c['createdAt']);})['catch'](_0x265fc2=>{throw _0x13ebd0('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x117894['discard']();}),_0x117894['stopListening'](),this['_suggestions']['delete'](_0x117894['id']),this['_suggestionState']['delete'](_0x117894),_0x265fc2;});}return _0x117894;}['_isBlockAttribute'](_0x475c47){return this['editor']['plugins']['get'](_0x2194c1)['isBlockAttribute'](_0x475c47);}['_isInlineAttribute'](_0x3c20d0){return this['editor']['plugins']['get'](_0x2194c1)['isInlineAttribute'](_0x3c20d0);}['_updateSuggestionData'](_0x502946,_0x205d01){const _0x3adc7f=this['editor']['plugins']['get']('PendingActions'),_0x4ea0d8=this['getSuggestion'](_0x502946);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4ea0d8['_saved']){const _0x247567=_0x3adc7f['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x502946,_0x205d01)['then'](()=>{_0x3adc7f['remove'](_0x247567);});}else _0x4ea0d8['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x502946,_0x205d01);});}}['_getSuggestionData'](_0x428b7a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2a6ed8('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x428b7a);}['_handleNewSuggestionMarker'](_0x46d673){const {id:_0x1e6100,type:_0x39fb8a,subType:_0x34dc09,authorId:_0x2f0f5f}=this['_splitMarkerName'](_0x46d673),_0x27bcb9=this['_suggestions']['get'](_0x1e6100)||this['_createSuggestion'](_0x39fb8a,_0x34dc09,_0x1e6100,_0x2f0f5f,{});switch(this['_checkSuggestionCorrectness'](_0x27bcb9,_0x39fb8a,_0x34dc09,_0x2f0f5f),this['_suggestionState']['get'](_0x27bcb9)){case'notReady':this['_getSuggestionData'](_0x1e6100)['then'](_0x238759=>{let _0x5baa26=Promise['resolve']();_0x238759['hasComments']&&(_0x5baa26=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1e6100})),_0x5baa26['then'](()=>{this['addSuggestionData'](_0x238759)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x27bcb9,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1e6100,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x27bcb9,'ready'),this['fire']('suggestionLoaded',_0x27bcb9);break;case'ready':this['fire']('suggestionChanged',_0x27bcb9);}return _0x27bcb9['addMarkerName'](_0x46d673),_0x27bcb9;}['_refreshSuggestionsChain'](_0x402990){const _0x55ff47=Array['from'](_0x402990),_0x4a61a7=_0x55ff47['filter'](_0x1e824c=>'attribute'==_0x1e824c['type']);this['_refreshAttributeSuggestionsChain'](_0x4a61a7);const _0x791276=_0x55ff47['filter'](_0xc5eb5d=>!_0xc5eb5d['isMultiRange']&&'attribute'!=_0xc5eb5d['type']),_0x2cecc4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1b580d=>!_0x1b580d['isMultiRange']&&'attribute'!=_0x1b580d['type']),_0x260a0d=_0x2cecc4['filter'](_0x3d3f84=>!_0x402990['has'](_0x3d3f84)),_0x4fd8dd=new Map(_0x2cecc4['map'](_0xfab3b3=>[_0xfab3b3,this['_suggestionFactory']['getSuggestionCallback'](_0xfab3b3['type'],_0xfab3b3['subType'],'chain')])),_0x26f915=new Map(_0x2cecc4['map'](_0x25a89e=>[_0x25a89e,_0x25a89e['getFirstRange']()])),_0x20b7d8=new Set(),_0x4d5e91=new Set();for(let _0x549d8e=0x0;_0x549d8e<_0x791276['length'];_0x549d8e++)_0x340472(_0x791276[_0x549d8e],_0x791276,_0x549d8e+0x1);for(let _0x296379=0x0;_0x296379<_0x791276['length'];_0x296379++)_0x340472(_0x791276[_0x296379],_0x260a0d,0x0);const _0xd5949e=new Set();for(let _0x125fa7=0x0;_0x125fa7<_0x791276['length'];_0x125fa7++){const _0x50bcaf=_0x791276[_0x125fa7];!_0x4d5e91['has'](_0x50bcaf)&&_0x50bcaf['previous']&&(_0xd5949e['add'](_0x50bcaf['previous']),_0x50bcaf['previous']['next']===_0x50bcaf&&(_0x50bcaf['previous']['next']=null),_0x50bcaf['previous']=null),!_0x20b7d8['has'](_0x50bcaf)&&_0x50bcaf['next']&&(_0xd5949e['add'](_0x50bcaf['next']),_0x50bcaf['next']['previous']===_0x50bcaf&&(_0x50bcaf['next']['previous']=null),_0x50bcaf['next']=null);}function _0x340472(_0x38ece3,_0xecb648,_0x13ffc1){for(let _0x575653=_0x13ffc1;_0x575653<_0xecb648['length'];_0x575653++){const _0x302ba3=_0x5386a0(_0x38ece3,_0xecb648[_0x575653]);_0x302ba3&&(_0x302ba3[0x0]['next']=_0x302ba3[0x1],_0x302ba3[0x1]['previous']=_0x302ba3[0x0],_0x20b7d8['add'](_0x302ba3[0x0]),_0x4d5e91['add'](_0x302ba3[0x1]));}}function _0x5386a0(_0xa52981,_0x454173){if(_0xa52981['author']['id']!==_0x454173['author']['id'])return null;const _0x221e54=_0x4fd8dd['get'](_0xa52981)(_0xa52981,_0x454173,_0x26f915['get'](_0xa52981),_0x26f915['get'](_0x454173));if(!_0x221e54)return null;return _0x4fd8dd['get'](_0x454173)(_0xa52981,_0x454173,_0x26f915['get'](_0xa52981),_0x26f915['get'](_0x454173))?_0x221e54[0x1]['commentThread']&&_0x221e54[0x1]['commentThread']['length']?null:_0x221e54:null;}_0xd5949e['size']&&this['_refreshSuggestionsChain'](_0xd5949e);}['_refreshAttributeSuggestionsChain'](_0x29f980){if(0x0==_0x29f980['length'])return;const _0x5b996a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x38f007=>'attribute'==_0x38f007['type']&&_0x38f007['_isDataLoaded']),_0x5f4e9b=[],_0x2c3955=new Map();for(const _0x435b7b of _0x5b996a){const _0x691136=_0x53ee05(_0x435b7b['attributes']);_0x2c3955['has'](_0x691136)||(_0x2c3955['set'](_0x691136,_0x5f4e9b['length']),_0x5f4e9b['push']([]));const _0x24d1a9=_0x2c3955['get'](_0x691136);_0x5f4e9b[_0x24d1a9]['push'](_0x435b7b);}!(function(){_0x5f4e9b['sort']((_0x3e6e3a,_0x42678a)=>{const _0x61f9d8=_0x3e6e3a[0x0]['createdAt'],_0x26e1f8=_0x42678a[0x0]['createdAt'];return _0x61f9d8==_0x26e1f8?_0x3e6e3a[0x0]['attributes']['groupId']<_0x42678a[0x0]['attributes']['groupId']?-0x1:0x1:_0x61f9d8<_0x26e1f8?-0x1:0x1;});for(const _0x4f5eb3 of _0x5f4e9b)_0x4f5eb3['sort']((_0x536850,_0x1119c4)=>_0x536850['id']<_0x1119c4['id']?-0x1:0x1);}());for(let _0x123b58=0x0;_0x123b58<_0x5f4e9b['length'];_0x123b58++){if(0x0==_0x5f4e9b[_0x123b58]['length'])continue;const _0x562583=[];for(let _0x49aba6=_0x123b58+0x1;_0x49aba6<_0x5f4e9b['length'];_0x49aba6++)0x0!=_0x5f4e9b[_0x49aba6]['length']&&_0x36b60a(_0x5f4e9b[_0x123b58],_0x5f4e9b[_0x49aba6])&&_0x562583['push'](_0x49aba6);for(const _0xd858b2 of _0x562583)_0x5f4e9b[_0x123b58]=_0x5f4e9b[_0x123b58]['concat'](_0x5f4e9b[_0xd858b2]),_0x5f4e9b[_0xd858b2]=[];}for(const _0x3d39ff of _0x5f4e9b)for(let _0x502ab3=0x0;_0x502ab3<_0x3d39ff['length'];_0x502ab3++){const _0x3096e7=_0x3d39ff[_0x502ab3+0x1]||null;_0x3d39ff[_0x502ab3]['next']!==_0x3096e7&&(_0x3d39ff[_0x502ab3]['next']=_0x3096e7);}for(const _0x2d2e84 of _0x5f4e9b)for(let _0x300d05=0x0;_0x300d05<_0x2d2e84['length'];_0x300d05++){const _0x548cfb=_0x2d2e84[_0x300d05-0x1]||null;_0x2d2e84[_0x300d05]['previous']!==_0x548cfb&&(_0x2d2e84[_0x300d05]['previous']=_0x548cfb);}function _0x36b60a(_0x233f7c,_0x3b8848){if(_0x233f7c[0x0]['attributes']['groupId']!==_0x3b8848[0x0]['attributes']['groupId']&&_0x233f7c[0x0]['author']!==_0x3b8848[0x0]['author'])return!0x1;if(!function(_0xb7f796,_0x328455){if(!_0xb7f796['hasComments']&&!_0x328455['hasComments'])return!0x0;if(_0xb7f796['hasComments']&&_0x328455['hasComments'])return!0x1;if(_0xb7f796['hasComments']&&_0x328455['createdAt']<_0xb7f796['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x328455['hasComments']&&_0xb7f796['createdAt']<_0x328455['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x233f7c[0x0],_0x3b8848[0x0]))return!0x1;const _0xf43cd5=Jt(_0x233f7c[0x0]['attributes'],['groupId','trackingSessionId']),_0x401344=Jt(_0x3b8848[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x51d376(_0xf43cd5,_0x401344))return!0x1;if(_0x233f7c[0x0]['attributes']['groupId']==_0x3b8848[0x0]['attributes']['groupId'])return!0x0;if(_0x233f7c[0x0]['attributes']['trackingSessionId']!==_0x3b8848[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x233f7c['every'](_0x1d66b8=>_0x3b8848['some'](_0x2520c6=>_0x1d66b8['getFirstRange']()['isEqual'](_0x2520c6['getFirstRange']())))&&_0x3b8848['every'](_0x33c08a=>_0x233f7c['some'](_0x2d761a=>_0x33c08a['getFirstRange']()['isEqual'](_0x2d761a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2f6922){const _0x4bdb7d=Array['from'](_0x2f6922),_0x3b4e82=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5beba6=_0x3b4e82['filter'](_0x1b6c76=>!_0x2f6922['has'](_0x1b6c76)),_0x2fb0a3=new Map(_0x4bdb7d['map'](_0x10c4ea=>[_0x10c4ea,this['_suggestionFactory']['getSuggestionCallback'](_0x10c4ea['type'],_0x10c4ea['subType'],'join')])),_0x482617=new Map(_0x3b4e82['map'](_0x24562a=>[_0x24562a,_0x24562a['getRanges']()]));for(let _0x45ff66=0x0;_0x45ff66<_0x4bdb7d['length'];_0x45ff66++){if(_0x40b893(this,_0x4bdb7d[_0x45ff66],_0x4bdb7d,_0x45ff66+0x1))return!0x0;}for(let _0x45ff95=0x0;_0x45ff95<_0x4bdb7d['length'];_0x45ff95++){if(_0x40b893(this,_0x4bdb7d[_0x45ff95],_0x5beba6,0x0))return!0x0;}return!0x1;function _0x40b893(_0x4f1845,_0xdb6f72,_0x2b782d,_0x33fda3){for(let _0x13014=_0x33fda3;_0x13014<_0x2b782d['length'];_0x13014++){const _0x4c82eb=_0x2b782d[_0x13014];if(_0x4c82eb['type']!==_0xdb6f72['type']||_0x4c82eb['author']['id']!==_0xdb6f72['author']['id']||_0x4c82eb['subType']!==_0xdb6f72['subType'])continue;if(!en(_0xdb6f72,_0x4c82eb))continue;if('attribute'==_0xdb6f72['type']&&_0xdb6f72['data']['oldValue']!=_0x4c82eb['data']['oldValue'])continue;if('attribute'==_0xdb6f72['type']&&_0x4f1845['_isBlockAttribute'](_0xdb6f72['data']['key']))continue;if('formatBlock'==_0xdb6f72['type']){const _0x2efe1d=_0x4f1845['editor']['model'],_0xbb1b2e=_0xdb6f72['getContainedElement']();if(_0xbb1b2e&&(_0x2efe1d['schema']['isObject'](_0xbb1b2e)||_0x2efe1d['schema']['isLimit'](_0xbb1b2e)))continue;}const _0x4abef6=_0x2fb0a3['get'](_0xdb6f72),_0x1e30d8=_0x482617['get'](_0xdb6f72),_0x2cfde1=_0x482617['get'](_0x4c82eb),_0x3783a7=_0xdb6f72['commentThread']&&_0xdb6f72['commentThread']['length'],_0x25f19d=_0x4c82eb['commentThread']&&_0x4c82eb['commentThread']['length'];if(!_0x3783a7&&_0x4abef6(_0x2cfde1,_0x1e30d8))return _0x4f1845['_joinSuggestions'](_0x4c82eb,_0xdb6f72),_0x482617['delete'](_0xdb6f72),!0x0;if(!_0x25f19d&&_0x4abef6(_0x1e30d8,_0x2cfde1))return _0x4f1845['_joinSuggestions'](_0xdb6f72,_0x4c82eb),_0x482617['delete'](_0x4c82eb),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4a0d6e,_0x5109c9){if(_0x4a0d6e['isMultiRange']){for(const _0x2ec3e4 of _0x5109c9['getRanges']())_0x4a0d6e['addRange'](_0x2ec3e4);}else{const _0xeec994=_0x5109c9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4a0d6e,this['_model']['createRange'](_0x4a0d6e['getFirstRange']()['start'],_0xeec994));}_0x5109c9['removeMarkers']();}['_getMarkerAnnouncementText'](_0x40660b,_0x5cb865,_0x432047){const _0x365256=_0x40660b['startsWith']('format')||_0x40660b['startsWith']('attribute')?'FORMATTING':_0x40660b['toUpperCase']();return o(this['editor']['locale'],_0x5cb865+'_'+_0x365256+'_SUGGESTION_ANNOUNCEMENT',_0x432047);}['_initAriaMarkerChangeAnnouncements'](){const _0x364d71=this['editor'];if(!_0x364d71['ui'])return;const {ariaLiveAnnouncer:_0x5ac518}=_0x364d71['ui'];_0x362b3e(this['_model'],({left:_0x42250d,entered:_0x1d142e})=>{for(const _0x18d2e7 of _0x42250d){const {group:_0x1dacaa,type:_0x5102dd}=this['_splitMarkerName'](_0x18d2e7['name']);if('suggestion'===_0x1dacaa){_0x5ac518['announce'](this['_getMarkerAnnouncementText'](_0x5102dd,'LEAVE'));break;}}for(const _0xe2f2d5 of _0x1d142e){const {group:_0x3b5d11,type:_0x2d8324}=this['_splitMarkerName'](_0xe2f2d5['name']);if('suggestion'===_0x3b5d11){_0x5ac518['announce'](this['_getMarkerAnnouncementText'](_0x2d8324,'ENTER',_0x4ee942(_0x16c8ec)));break;}}});}['_processAttributeChanges'](_0x1a6b4b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x17b5c8=this['editor'],_0x4125e0=_0x17b5c8['model']['document']['differ']['getChanges']();if(0x0==_0x4125e0['length'])return!0x1;const _0x3167d1=[],_0x219c61=_0x4125e0['filter'](_0x28b7f8=>'attribute'==_0x28b7f8['type']),_0x36f2fd=_0x4125e0['filter'](_0x362701=>'insert'==_0x362701['type']&&'$text'!=_0x362701['name']),_0x31e360=_0x4125e0['filter'](_0x320179=>'remove'==_0x320179['type']&&'$text'!=_0x320179['name']);for(const _0x28561c of _0x219c61)_0x3167d1['push']({'key':_0x28561c['attributeKey'],'newValue':_0x28561c['attributeNewValue'],'oldValue':_0x28561c['attributeOldValue'],'range':Zt(_0x28561c['range'],_0x17b5c8['model'])});for(const _0x46e6de of _0x36f2fd){const _0x96d48b=_0x31e360['find'](_0x46599c=>_0x46599c['position']['isEqual'](_0x46e6de['position']));_0x96d48b&&_0x3167d1['push']({'key':m,'newValue':_0x46e6de['name'],'oldValue':_0x96d48b['name'],'range':_0x17b5c8['model']['createRangeOn'](_0x46e6de['position']['nodeAfter'])});}return 0x0!=_0x3167d1['length']&&this['_reduceExistingSuggestions'](_0x1a6b4b,_0x3167d1);}['_processAttributeSuggestions'](_0x343e14){let _0x5b2b7a=!0x1;const _0x4f2904=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x46d6f2=>_0x46d6f2['data']['newRange']&&_0x46d6f2['name']['startsWith']('suggestion:attribute:'));for(const _0xa6b0f0 of _0x4f2904){const {subType:_0x19b777,id:_0x38c288}=this['_splitMarkerName'](_0xa6b0f0['name']),_0x3cfa26=_0x19b777['split']('|')[0x0];for(const _0x5d9cca of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5d9cca['id']!=_0x38c288&&'attribute'==_0x5d9cca['type']&&_0x5d9cca['data']&&_0x5d9cca['data']['key']==_0x3cfa26&&_0x5d9cca['getFirstRange']()['isIntersecting'](_0xa6b0f0['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5d9cca,_0xa6b0f0['data']['newRange'],_0x343e14),_0x5b2b7a=!0x0);}return _0x5b2b7a;}['recordAttributeChanges'](_0x249202){this['_recordAttributeSuggestions']=!0x0,_0x249202();}['_isRegisteredAttribute'](_0x515860){return this['editor']['plugins']['get'](_0x2194c1)['isRegisteredAttribute'](_0x515860);}['_reduceExistingSuggestions'](_0x2eb572,_0x79b214){if(0x0==_0x79b214['length'])return!0x1;let _0x8d0a05=!0x1;for(const _0x50f666 of _0x79b214){const _0x21c455=this['_findSuggestions'](_0x50f666['range'],'attribute')['filter'](_0x42153e=>!_0x42153e['meta']['isNextTo'])['map'](_0x48cc0a=>_0x48cc0a['suggestion']),_0x4eb823=_0x53ee05({'newValue':_0x50f666['newValue']});_0x21c455['filter'](_0x4f5eb4=>{const [_0x5c1011,_0x18bf17]=_0x4f5eb4['subType']['split']('|');return _0x5c1011==_0x50f666['key']&&_0x18bf17!=_0x4eb823;})['forEach'](_0x416a46=>{this['_reduceSuggestionAttributeRange'](_0x416a46,_0x50f666['range'],_0x2eb572),_0x8d0a05=!0x0;});}return _0x8d0a05;}['_reduceSuggestionAttributeRange'](_0x207231,_0x582a11,_0x310d84){const _0x472e9e=_0x207231['getFirstRange']()['getDifference'](_0x582a11);0x0!==_0x472e9e['length']?0x1!==_0x472e9e['length']?this['_breakSuggestionMarker'](_0x207231,_0x582a11['start'],_0x582a11['end']):this['_setSuggestionRange'](_0x207231,_0x472e9e[0x0]):_0x310d84['removeMarker'](_0x207231['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x10a6e6){this['_editor']=_0x10a6e6,this['_model']=_0x10a6e6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x52a701,_0x580047,_0x4994c8,_0x4e1bc8,_0x59cd38,_0x41bb24,_0x26c4fa){return new T(this['_model'],{'type':_0x52a701,'subType':_0x580047,'id':_0x4994c8,'originalSuggestionId':_0x26c4fa,'author':_0x4e1bc8,'creator':_0x4e1bc8,'attributes':_0x59cd38,'onAttributesChange':_0x41bb24,'onAccept':(..._0x17e3f4)=>this['getSuggestionCallback'](_0x52a701,_0x580047,'accept')(..._0x17e3f4),'onDiscard':(..._0x19e98f)=>this['getSuggestionCallback'](_0x52a701,_0x580047,'discard')(..._0x19e98f)});}['registerCustomCallback'](_0x2e4f22,_0x1cd30f,_0x4e1c09,_0x45e8ad){const _0x26d103=_0x2e4f22+':'+_0x1cd30f+':'+_0x4e1c09;this['_customCallbacks']['set'](_0x26d103,_0x45e8ad);}['getSuggestionCallback'](_0x5f1f6d,_0x312e00,_0x5ccfb1){const _0x58041c=_0x5f1f6d+':'+_0x312e00+':'+_0x5ccfb1;return this['_customCallbacks']['get'](_0x58041c)||this['_defaultCallbacks']['get'](_0x5f1f6d+':'+_0x5ccfb1);}['_registerDefaultCallbacks'](){const _0x5b959d=()=>!0x1,_0x3cd37a=_0x293425=>{_0x293425['sort']((_0x4e50dd,_0x4dba6d)=>_0x4e50dd['start']['isBefore'](_0x4dba6d['start'])?0x1:-0x1),this['_model']['change'](_0x28b301=>{for(const _0x55740d of _0x293425){let _0x196c38;_0x196c38=_0x55740d['end']['isAtEnd']&&_0x55740d['end']['parent']==_0x55740d['start']['nodeAfter']?_0x28b301['createSelection'](_0x55740d['start']['nodeAfter'],'on'):_0x28b301['createSelection'](_0x55740d),this['_model']['deleteContent'](_0x196c38,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x21dd9f=(_0x233866,_0x3ea60a)=>{_0x3ea60a&&this['_model']['change'](_0x5e9d01=>{const {commandName:_0x49fd9a,commandParams:_0x1e68ab=[]}=_0x3ea60a,_0x347295=_0x233866['map'](_0x3e2124=>(Kt(_0x3e2124)&&(_0x3e2124=this['_model']['createRange'](_0x3e2124['end'])),_0x3e2124))['filter'](_0x512d31=>'$graveyard'!==_0x512d31['root']['rootName']);if(_0x347295['length']<0x1)return;const _0x22bbcb=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xe885c4=>_0x32b072['fromRange'](_0xe885c4));_0x5e9d01['setSelection'](_0x347295);for(const _0x1de631 of this['_editor']['commands']['commands']())_0x1de631['refresh']();_0x1e68ab['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x49fd9a,..._0x1e68ab);const _0x1cfa9e=_0x22bbcb['filter'](_0x1c46fa=>'$graveyard'!=_0x1c46fa['root']['rootName']);_0x1cfa9e['length']>0x0&&_0x5e9d01['setSelection'](_0x1cfa9e);for(const _0x1cbc40 of _0x22bbcb)_0x1cbc40['detach']();});},_0x30f375=(_0x55b07a,_0x26479d)=>0x1==_0x55b07a['length']&&0x1==_0x26479d['length']&&_0x55b07a[0x0]['end']['isEqual'](_0x26479d[0x0]['start']),_0x48b04f=(_0x22574f,_0x16beef,_0x136e39,_0x17ff62)=>nn(_0x22574f,_0x16beef,_0x136e39,_0x17ff62)?[_0x22574f,_0x16beef]:nn(_0x16beef,_0x22574f,_0x17ff62,_0x136e39)?[_0x16beef,_0x22574f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5b959d),this['_defaultCallbacks']['set']('insertion:discard',_0x3cd37a),this['_defaultCallbacks']['set']('insertion:join',_0x30f375),this['_defaultCallbacks']['set']('insertion:chain',_0x48b04f),this['_defaultCallbacks']['set']('deletion:accept',_0x3cd37a),this['_defaultCallbacks']['set']('deletion:discard',_0x5b959d),this['_defaultCallbacks']['set']('deletion:join',_0x30f375),this['_defaultCallbacks']['set']('deletion:chain',_0x48b04f),this['_defaultCallbacks']['set']('formatInline:accept',_0x21dd9f),this['_defaultCallbacks']['set']('formatInline:discard',_0x5b959d),this['_defaultCallbacks']['set']('formatInline:join',_0x30f375),this['_defaultCallbacks']['set']('formatInline:chain',_0x5b959d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x21dd9f),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5b959d),this['_defaultCallbacks']['set']('formatBlock:join',_0x30f375),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5b959d),this['_defaultCallbacks']['set']('attribute:accept',_0x5b959d),this['_defaultCallbacks']['set']('attribute:discard',(_0x57d470,_0x3bc815)=>{if(!_0x3bc815)return;const _0x55a882=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x49832f=>{if(_0x3bc815['key']==m)for(const _0xd712fc of _0x57d470){const _0x55176b=_0xd712fc['start']['nodeAfter'],_0xc90772=_0x3bc815['oldValue'];_0x49832f['rename'](_0x55176b,_0xc90772);}else{if(_0x55a882['_isBlockAttribute'](_0x3bc815['key'])){for(const _0x44cb05 of _0x57d470)void 0x0!==_0x3bc815['oldValue']?_0x49832f['setAttribute'](_0x3bc815['key'],_0x3bc815['oldValue'],_0x44cb05['start']['nodeAfter']):_0x49832f['removeAttribute'](_0x3bc815['key'],_0x44cb05['start']['nodeAfter']);}else{for(const _0x63b859 of _0x57d470)_0x3bc815['oldValue']?_0x49832f['setAttribute'](_0x3bc815['key'],_0x3bc815['oldValue'],_0x63b859):_0x49832f['removeAttribute'](_0x3bc815['key'],_0x63b859);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x30f375);}}function zt(_0x4cbd06,_0x4199dd,_0xc1b6c7){for(const _0x14edf6 of _0x4199dd['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x14edf6['root']==_0x14edf6)return!0x1;if(!_0xc1b6c7['containsItem'](_0x14edf6))return!0x1;if(_0x4cbd06['isObject'](_0x14edf6)||_0x4cbd06['isLimit'](_0x14edf6))return!0x0;}return!0x1;}function Kt(_0x1fa7a4){return _0x1fa7a4['end']['parent']==_0x1fa7a4['start']['nodeAfter']&&_0x1fa7a4['end']['isAtStart'];}function Wt(_0x2dab31,_0x38bcb6,_0x1e8b22,_0x2211c9){const _0x738794=_0x342ae9=>!_0x342ae9['item']['is']('$textProxy')&&!_0x2211c9['isObject'](_0x342ae9['item']),_0x966995=_0x2dab31['start']['getLastMatchingPosition'](_0x738794),_0xe3d0d6=_0x2dab31['end']['getLastMatchingPosition'](_0x738794,{'direction':'backward'});return(!_0x2dab31['start']['isEqual'](_0x966995)||!_0x2dab31['end']['isEqual'](_0xe3d0d6))&&(_0x966995['isBefore'](_0xe3d0d6)?_0x1e8b22['updateMarker'](_0x38bcb6,{'range':_0x1e8b22['createRange'](_0x966995,_0xe3d0d6)}):_0x1e8b22['removeMarker'](_0x38bcb6),!0x0);}function Ht(_0x104c4d){return _0x53ee05(_0x104c4d);}function Qt(_0x238d8a){const _0x563fb5=_0x238d8a['start']['nodeAfter'];return _0x563fb5&&_0x563fb5['is']('element');}function Xt(_0x5778b2){return Kt(_0x5778b2)||function(_0x47a168){return _0x47a168['start']['parent']==_0x47a168['end']['nodeBefore']&&_0x47a168['start']['isAtEnd'];}(_0x5778b2);}function Yt(_0x3a83c9,_0x2efaef){try{const _0x5a7f7e=_0x3a83c9['getRange']();for(const _0x4ae66f of _0x2efaef)if(_0x3a83c9!==_0x4ae66f&&_0x5a7f7e&&_0x5a7f7e['isIntersecting'](_0x4ae66f['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x3dbbf6,_0x9b70fe){return null==_0x3dbbf6['end']['nodeBefore']&&_0x3dbbf6['end']['parent']==_0x3dbbf6['start']['nodeAfter']?tn(_0x3dbbf6['start']['nodeAfter'],_0x9b70fe):_0x3dbbf6;}function tn(_0x2fea4c,_0x3632d7){const _0x552f16=_0x3632d7['schema']['isObject'](_0x2fea4c)||_0x3632d7['schema']['isSelectable'](_0x2fea4c);return _0x3632d7['createRange'](_0x3632d7['createPositionAt'](_0x2fea4c,'before'),_0x552f16?_0x3632d7['createPositionAfter'](_0x2fea4c):_0x3632d7['createPositionAt'](_0x2fea4c,'end'));}function nn(_0x2d4571,_0x379386,_0x5f1896,_0x233b1f){return!!en(_0x2d4571,_0x379386)&&_0x5f1896['end']['isEqual'](_0x233b1f['start']);}function en(_0x3cdee9,_0x3f663e){if(!_0x3cdee9['_isDataLoaded']||!_0x3f663e['_isDataLoaded'])return!0x1;const _0x222e8a=new Set(Object['keys'](_0x3cdee9['attributes'])),_0xf7e9b7=new Set(Object['keys'](_0x3f663e['attributes']));if(_0x222e8a['delete']('groupId'),_0xf7e9b7['delete']('groupId'),0x0==_0x222e8a['size']&&0x0==_0xf7e9b7['size'])return!0x0;if(_0x222e8a['size']!=_0xf7e9b7['size'])return!0x1;const _0x51720b={..._0x3cdee9['attributes']},_0x31fb92={..._0x3f663e['attributes']};return delete _0x51720b['groupId'],delete _0x31fb92['groupId'],JSON['stringify'](_0x51720b)==JSON['stringify'](_0x31fb92);}function sn(_0x48c0de,_0x39cf04){const _0x2f79c2=on(_0x48c0de['attributes']),_0x383996=on(_0x39cf04);if(!_0x48c0de['_isDataLoaded'])return!0x1;for(const _0x3ca12b of Object['keys'](_0x383996))if(!_0x51d376(_0x2f79c2[_0x3ca12b],_0x383996[_0x3ca12b]))return!0x1;return!0x0;}function on(_0x5284ea){const _0x4cd89d=Object['assign']({},_0x5284ea);return delete _0x4cd89d['skipNestingCheck'],delete _0x4cd89d['tablePasteChainId'],_0x4cd89d;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x1f772b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x6429b4,_0x153c6f,_0x5a8a35,_0x1a3f21){super(),this['model']=_0x153c6f,this['view']=_0x5a8a35,this['commentThreadController']=_0x1a3f21,this['_editor']=_0x6429b4,this['_acceptCommand']=_0x6429b4['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x6429b4['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x343f44,_0x48b1f2)=>_0x343f44||_0x48b1f2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x321988=>_0x321988&&this['_editor']['model']['canEditAt'](_0x153c6f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x471ef5=>_0x471ef5&&this['_editor']['model']['canEditAt'](_0x153c6f['getRanges']())),this['_pendingAction']=null,_0x5a8a35['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5a8a35,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5a8a35,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5a8a35,'change:isDirty',()=>{_0x5a8a35['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 _0x4d8bea=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4d8bea);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x13410a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4eca9b,_0x565185,_0x521f1f,_0x5dba10){super(_0x4eca9b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2ea729(_0x4eca9b,o(_0x4eca9b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x565185['authoredAt']),this['bind']('authoredAt')['to'](_0x565185),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',_0x565185,'authoredAt',this,'descriptionParts',(_0x599c2e,_0x1c08dc,_0x1f6e38)=>{const _0x2d43a3=_0x1f6e38['map'](_0xde0f16=>ls(_0xde0f16['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x599c2e-0x1,_0x565185['author']['name'],_0x1c08dc?_0x5dba10['formatDateTime'](_0x1c08dc):'',new DOMParser()['parseFromString'](_0x2d43a3,'text/html')['body']['textContent']]);}),this['focusables']=new _0x489b9b(),this['focusTracker']=new _0x74d71a(),this['keystrokes']=new _0x36c793(),this['focusCycler']=new _0x438c59({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3e8b28=>_0x3e8b28['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x565185,this['_localUser']=_0x521f1f,this['_config']=_0x5dba10,_0x5dba10['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x31bd0e(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x482690}=this['_config'];this['commentsListView']=new _0x482690(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',_0x449ea4=>_0x449ea4+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x11c00e,_0x48b7a4)=>_0x11c00e||!!_0x48b7a4);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x14be8e}=this['_config'],_0x1e7b50=new _0x14be8e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x111980=_0x1e7b50['commentInputView'];return _0x1e7b50['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x111980,'value',(_0x512491,_0x5f30fc,_0x3a8432)=>!!_0x3a8432||_0x512491&&!_0x5f30fc),_0x111980['on']('submit',(_0x4bcfdc,_0x36e0a3)=>{this['fire']('addComment',_0x36e0a3),_0x111980['editor']['setData']('');}),_0x111980['on']('cancel',()=>this['focus']()),_0x111980['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1e7b50;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x57d7fa,_0x57a471,_0x158408,_0x323b62){super(_0x57d7fa,_0x57a471,_0x158408,_0x323b62),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x264cc2=>_0x264cc2&&_0x264cc2[0x0]?_0x264cc2[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3b0a32,_0x3ffb41)=>{let _0x3e8e66='';for(const _0x53fe68 of _0x3b0a32)_0x3e8e66+='<p>'+ls(_0x53fe68['content'],_0x53fe68['color'])+'</p>';return _0x3ffb41?_0x3e8e66:_0x36c3ff(_0x3e8e66,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x323b62['SuggestionView'](_0x57d7fa,_0x57a471,{'formatDateTime':_0x323b62['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x12b075=this['bindTemplate'],_0x24f441=[this['suggestionView']];return this['commentsListView']&&_0x24f441['push'](this['commentsListView']),this['commentThreadInputView']&&_0x24f441['push'](this['commentThreadInputView']),_0x24f441['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x12b075['if']('isActive','ck-suggestion-wrapper--active'),_0x12b075['to']('type',_0x3e649a=>'ck-suggestion-'+_0x3e649a),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':_0x12b075['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x24f441};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x13410a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x198a42,_0x8633e0,_0x34223e){super(_0x198a42),this['_model']=_0x8633e0,this['_config']=_0x34223e,this['set']('description',''),this['bind']('authoredAt')['to'](_0x8633e0),this['acceptButton']=this['_createButton'](o(_0x198a42,'Accept\x20suggestion'),_0x32d0c2,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x198a42,'Discard\x20suggestion'),_0x15edd7,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x58d3ad(_0x198a42,_0x8633e0['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x489b9b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x74d71a(),this['keystrokes']=new _0x36c793(),this['focusCycler']=new _0x438c59({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x48484d=>_0x48484d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xd0c99c=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xd0c99c['innerHTML']=this['description'],this['on']('change:description',(_0x1dc532,_0x3be8b6,_0x28d775)=>{_0xd0c99c['innerHTML']=_0x28d775;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3ebaf7=this['bindTemplate'],_0x52c29c=[{'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':_0x3ebaf7['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3ebaf7['to']('authoredAt',_0xee9581=>this['_config']['formatDateTime'](_0xee9581))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x52c29c['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x52c29c}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x2cc49d,_0x2be9d7,_0x5b3554,_0x22158c,_0x3e575f){const _0x242c7f=new _0x1ad25a(this['locale']);return _0x242c7f['set']({'label':_0x2cc49d,'icon':_0x2be9d7,'tooltip':!0x0,'tooltipPosition':_0x3e575f}),_0x242c7f['extendTemplate']({'attributes':{'class':_0x5b3554}}),_0x242c7f['on']('execute',()=>{this['fire'](_0x22158c,this['_model']['id']);}),_0x242c7f;}['_setupKeyboardNavigation'](){const _0xe8681d=this['element'];this['keystrokes']['listenTo'](_0xe8681d);for(const _0x3167f8 of this['focusables'])this['focusTracker']['add'](_0x3167f8['element']),this['keystrokes']['listenTo'](_0x3167f8['element']);this['keystrokes']['set']('enter',(_0x35012a,_0xd33c6f)=>{_0xe8681d===_0x35012a['target']&&(this['focusCycler']['focusFirst'](),_0xd33c6f());}),this['keystrokes']['set']('esc',(_0x5ad5a9,_0x346714)=>{_0xe8681d!==_0x5ad5a9['target']&&(this['focus'](),_0x346714());});}}class u extends _0x23bd0e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x186080,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3fc711){super(_0x3fc711),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x118730=this['editor']['config'];_0x118730['define']('trackChanges.SuggestionThreadView',fe),_0x118730['define']('trackChanges.SuggestionView',we),_0x118730['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x118730['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5b0556,_0xa015fe){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x32d19c,_0x40bf34]of this['_handleControllerBuffer']){const _0x5c589d=this['_suggestionToController']['has'](_0x32d19c);_0x5c589d||_0x40bf34?_0x5c589d&&_0x40bf34&&this['_destroyController'](_0x32d19c):this['_initializeController'](_0x32d19c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5b0556,_0xa015fe);}['init'](){const _0x2b05f3=this['editor'],_0x236769=_0x2b05f3['plugins']['get']('TrackChangesEditing'),_0x493bd0=_0x2b05f3['plugins']['get']('Annotations'),_0x6dc249=_0x2b05f3['plugins']['get']('EditorAnnotations'),_0x1b88bd=_0x2b05f3['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x6dc249['addSourceCollector'](()=>{const _0x5635b1=[];for(const [_0x361975,_0x1a025f]of Array['from'](this['_suggestionToController'])){const _0x1a4278=_0x361975['getAllAdjacentSuggestions'](),_0x22779f=[];for(const _0x2a44a5 of _0x1a4278){if(!_0x2a44a5['isInContent'])continue;if(_0x2a44a5['isMultiRange']){_0x22779f['push'](..._0x2a44a5['getRanges']());continue;}const _0x1cc050=_0x2a44a5['getFirstRange']();if(_0x22779f['length']>0x0){const _0x2ca1b6=_0x22779f[0x0]['getJoined'](_0x1cc050);if(_0x2ca1b6){_0x22779f[0x0]=_0x2ca1b6;continue;}}_0x22779f['push'](_0x1cc050);}_0x5635b1['push']([_0x1a025f['view'],_0x22779f]);}return _0x5635b1;}),this['listenTo'](_0x236769,'suggestionLoaded',(_0x2d1853,_0x1a8060)=>{this['listenTo'](_0x1a8060,'change:previous',(_0x10087e,_0x76d1af,_0x2c3655,_0x12668f)=>{_0x1a8060['isInContent']&&(null==_0x2c3655?(this['_updateController'](_0x12668f['head']),this['_handleSuggestionControllerDelayed'](_0x1a8060,!0x1)):(this['_updateController'](_0x2c3655['head']),null==_0x12668f&&this['_handleSuggestionControllerDelayed'](_0x1a8060,!0x0)));}),null!==_0x1a8060['previous']?this['_updateController'](_0x1a8060['head']):this['_handleSuggestionControllerDelayed'](_0x1a8060,!0x1);}),this['listenTo'](_0x236769,'suggestionUnloaded',(_0x3e5c5c,_0x51f13e,_0xabe538)=>{this['stopListening'](_0x51f13e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x51f13e),this['_suggestionToController']['has'](_0x51f13e)&&this['_destroyController'](_0x51f13e),_0xabe538&&this['_updateController'](_0xabe538['head']);}),this['listenTo'](_0x236769,'suggestionChanged',(_0x1cc08f,_0x405794)=>{this['_updateController'](_0x405794);}),this['listenTo'](_0x493bd0,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1b88bd,'addComment',(_0x18ed76,{threadId:_0xef6f17,isFromAdapter:_0x746816})=>{if(_0x746816||!_0x236769['hasSuggestion'](_0xef6f17))return;const _0x23758f=_0x236769['getSuggestion'](_0xef6f17);this['_suggestionToController']['get'](_0x23758f)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x26841a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x44c797;for(const _0x5c80eb in _0x26841a){const _0x106884=_0x5c80eb,_0x551bcf=_0x26841a[_0x106884];if('trackChangesLicenseKeyValid'==_0x551bcf||'trackChangesLicenseKeyInvalid'==_0x551bcf||'trackChangesLicenseKeyExpired'==_0x551bcf||'trackChangesLicenseKeyDomainLimit'==_0x551bcf||'trackChangesLicenseKeyNotAllowed'==_0x551bcf||'trackChangesLicenseKeyEvaluationLimit'==_0x551bcf||'trackChangesLicenseKeyUsageLimit'==_0x551bcf){delete _0x26841a[_0x106884],_0x44c797=_0x551bcf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x44c797&&_0x26841a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x44c797&&_0x26841a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x44c797&&_0x26841a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x44c797&&_0x26841a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x44c797&&_0x26841a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x44c797&&_0x26841a['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x97c7ec){const _0x30a275=this['_suggestionToController']['get'](_0x97c7ec);if(!_0x30a275)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x30a275['view'])||null;}['getSuggestionForAnnotation'](_0x9734df){const _0x1068de=this['_viewToController']['get'](_0x9734df['innerView']);return _0x1068de?_0x1068de['model']:null;}['_refreshActiveMarkers'](){const _0x8818cd=this['editor']['plugins']['get']('Annotations'),_0x235e93=this['editor']['plugins']['get']('TrackChangesEditing'),_0x172b3a=Array['from'](_0x8818cd['activeAnnotations'],_0x51885b=>_0x51885b['innerView'])['filter'](_0x9b5583=>this['_viewToController']['has'](_0x9b5583)),_0x384159=[];for(const _0x513554 of _0x172b3a){const _0x5280d5=this['_viewToController']['get'](_0x513554)['model']['getAllAdjacentSuggestions']();_0x384159['push'](..._0x5280d5['reduce']((_0x2f9024,_0x27b07f)=>[..._0x2f9024,..._0x27b07f['getMarkerNames']()],[]));}_0x235e93['activeMarkers']=_0x384159;}['_addUIComponentsToFactory'](){const _0x48c6ea=this['editor'],_0x5b27fa=_0x48c6ea['locale'],_0x3d9793=o(_0x5b27fa,'Track\x20changes'),_0xab9cb8=new _0x295d83([{'type':'switchbutton','model':new _0x672fbb({'withText':!0x0,'isToggleable':!0x0,'label':_0x3d9793,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x672fbb({'withText':!0x0,'label':o(_0x5b27fa,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x672fbb({'withText':!0x0,'label':o(_0x5b27fa,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x672fbb({'withText':!0x0,'label':o(_0x5b27fa,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x672fbb({'withText':!0x0,'label':o(_0x5b27fa,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x48c6ea['plugins']['has']('TrackChangesPreview')&&_0xab9cb8['addMany']([{'type':'separator'},{'type':'button','model':new _0x672fbb({'withText':!0x0,'label':o(_0x5b27fa,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x6b8c6e of _0xab9cb8)if(ke(_0x6b8c6e)){const _0x4c2834=_0x48c6ea['commands']['get'](_0x6b8c6e['model']['commandName']);_0x6b8c6e['model']['bind']('isOn','isEnabled')['to'](_0x4c2834,'value','isEnabled');}_0x48c6ea['ui']['componentFactory']['add']('trackChanges',_0x542599=>this['_createToolbarButton'](_0x542599,_0xab9cb8,_0x3d9793)),_0x48c6ea['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2af2ef=>this['_createMenuBarMenu'](_0x2af2ef,_0xab9cb8,_0x3d9793));}['_createToolbarButton'](_0x5bd668,_0x151b91,_0x4dbdcb){const _0x345319=_0x1f36b8(_0x5bd668,_0x5d2312),_0xed839b=this['editor']['commands']['get']('trackChanges');_0x345319['buttonView']['set']({'tooltip':_0x4dbdcb,'label':_0x4dbdcb,'icon':_0x1b9096}),_0x345319['buttonView']['bind']('isOn')['to'](_0xed839b,'value'),_0x345319['buttonView']['on']('execute',()=>{_0xed839b['execute'](),this['editor']['editing']['view']['focus']();}),_0x30a25f(_0x345319,_0x151b91,{'role':'menu'});const _0x38776d=[];for(const _0x4c6bfc of _0x151b91)ke(_0x4c6bfc)&&_0x38776d['push'](this['editor']['commands']['get'](_0x4c6bfc['model']['commandName']));const _0x3ca0a5=_0x345319['buttonView'];return _0x3ca0a5['actionView']['unbind']('isEnabled'),_0x3ca0a5['arrowView']['unbind']('isEnabled'),_0x3ca0a5['actionView']['bind']('isEnabled')['to'](_0xed839b,'isEnabled'),_0x3ca0a5['arrowView']['bind']('isEnabled')['toMany'](_0x38776d,'isEnabled',(..._0x4bc29f)=>_0x4bc29f['some'](_0x3acc80=>_0x3acc80)),_0x345319['on']('execute',_0x52f4a8=>{this['editor']['execute'](_0x52f4a8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x345319;}['_createMenuBarMenu'](_0x528152,_0x410f3a,_0x315743){const _0x6bf5d8=new _0x10e036(_0x528152),_0x3cbe83=this['editor']['commands']['get']('trackChanges');_0x6bf5d8['buttonView']['set']({'label':_0x315743,'icon':_0x1b9096});const _0x4f1e2e=new _0x2275e4(_0x528152);for(const _0x29a796 of _0x410f3a){if('separator'==_0x29a796['type']){_0x4f1e2e['items']['add'](new _0x3f09d9(_0x528152));continue;}const _0x5903d2=new _0x32c228(_0x528152,_0x6bf5d8),_0xf28eef=new _0xb46be7(_0x528152),_0x34e5c7=_0x29a796['model'];_0xf28eef['bind'](...Object['keys'](_0x34e5c7))['to'](_0x34e5c7),_0xf28eef['delegate']('execute')['to'](_0x6bf5d8),_0xf28eef['on']('execute',()=>{this['editor']['execute'](_0x34e5c7['commandName']),this['editor']['editing']['view']['focus']();}),_0x5903d2['children']['add'](_0xf28eef),_0x4f1e2e['items']['add'](_0x5903d2);}return _0x6bf5d8['bind']('isEnabled')['to'](_0x3cbe83,'isEnabled'),_0x6bf5d8['panelView']['children']['add'](_0x4f1e2e),_0x6bf5d8;}['_initializeController'](_0x3124c9){const _0x595673=this['editor'],_0x142793=_0x595673['config'],_0xbec88e=_0x595673['plugins']['get']('Annotations'),_0x98a835=_0x595673['plugins']['get']('CommentsRepository'),_0x418f4e=_0x595673['plugins']['get']('EditorAnnotations'),_0x93d8b4=_0x595673['plugins']['get'](_0x186080)['me'],_0x282fa1=_0x142793['get']('trackChanges')['SuggestionThreadView'],_0x3382a4=_0x142793['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xb64d82,CommentThreadInputView:_0x407947}=_0x595673['plugins']['get']('CommentsUI');let _0x23ec0d,_0x1bf8cc,_0x577e48;this['_annotationViews']['has'](_0x3124c9['id'])?(_0x1bf8cc=this['_annotationViews']['get'](_0x3124c9['id']),_0x23ec0d=_0x1bf8cc['mainView']):(_0x23ec0d=new _0x282fa1(_0x595673['locale'],_0x3124c9,_0x93d8b4,{'disableComments':this['_disableComments'],'editorConfig':{..._0x142793['get']('comments.editorConfig'),'licenseKey':_0x142793['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x142793['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x142793['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x142793['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xb8a51f(_0x142793['get']('locale'),_0x595673['locale']),'CommentView':_0x142793['get']('comments')['CommentView'],'CommentsListView':_0xb64d82,'CommentThreadInputView':_0x407947,'SuggestionView':_0x3382a4}),_0x23ec0d['suggestionView']['acceptButton']['on']('execute',()=>{_0x595673['editing']['view']['focus']();}),_0x23ec0d['suggestionView']['discardButton']['on']('execute',()=>{_0x595673['editing']['view']['focus']();}),_0x1bf8cc=_0xbec88e['createAnnotationView'](this['editor']['locale'],_0x23ec0d),_0x1bf8cc['bind']('isDirty')['to'](_0x23ec0d,'isDirty'),_0x1bf8cc['bind']('length')['to'](_0x23ec0d),_0x1bf8cc['bind']('type')['to'](_0x23ec0d,'type',_0x2dab49=>'suggestion-'+_0x2dab49),_0x23ec0d['on']('escape',()=>{_0x577e48['fire']('escape');}),this['_annotationViews']['set'](_0x3124c9['id'],_0x1bf8cc));const _0x5cd377=_0x98a835['createCommentThreadController'](_0x3124c9['commentThread'],_0x23ec0d),_0x38cf11=new pe(_0x595673,_0x3124c9,_0x23ec0d,_0x5cd377),_0x504e32=_0x3124c9['getAllAdjacentSuggestions']()['filter'](_0x548b3b=>_0x548b3b['isInContent']);_0x23ec0d['descriptionParts']=_0x595673['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x504e32),this['_suggestionToController']['set'](_0x3124c9,_0x38cf11),this['_viewToController']['set'](_0x23ec0d,_0x38cf11);const _0x518653=()=>{const _0x136779=[],_0x26f776=_0x3124c9['getAllAdjacentSuggestions']()['filter'](_0x447508=>_0x447508['isInContent']);for(const _0x190c54 of _0x26f776)_0x136779['push'](..._0x190c54['getMarkers']());return _0x4d22bb(_0x595673['editing'],_0x136779);};_0x577e48=_0xbec88e['createAnnotation']({'view':_0x1bf8cc,'target':_0x518653,'type':()=>'suggestion-'+_0x38cf11['view']['type'],'isVisible':!!_0x518653()}),_0x98a835['_bindAnnotationToEditors'](_0x23ec0d,_0x577e48),_0xbec88e['add'](_0x577e48),_0x418f4e['registerAnnotation'](_0x577e48);}['_destroyController'](_0x47438a){const _0x1abb70=this['editor']['plugins']['get']('CommentsRepository'),_0x407329=this['editor']['plugins']['get']('Annotations'),_0x2ddbbd=this['_suggestionToController']['get'](_0x47438a),_0x3678e9=_0x2ddbbd['view'],_0x41c689=_0x407329['getByInnerView'](_0x3678e9);_0x1abb70['_unbindEditors'](_0x3678e9),_0x41c689&&_0x407329['remove'](_0x41c689),this['_suggestionToController']['delete'](_0x47438a),this['_viewToController']['delete'](_0x3678e9),_0x2ddbbd['destroy']();}['_updateController'](_0x67d1cc){if(!_0x67d1cc['isInContent']||!this['_suggestionToController']['has'](_0x67d1cc))return;const _0x57a688=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5905e7=this['_suggestionToController']['get'](_0x67d1cc),_0x5c41a5=_0x67d1cc['getAllAdjacentSuggestions']();_0x5905e7['view']['descriptionParts']=_0x57a688['descriptionFactory']['getDescriptions'](_0x5c41a5);}['destroy'](){for(const _0x4f92f8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4f92f8);for(const _0x4131b2 of this['_annotationViews']['values']())_0x4131b2['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2b6653){return'model'in _0x2b6653;}class Ne extends _0x23bd0e{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x357d30){this['editor']['plugins']['get'](d)['adapter']=_0x357d30;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x918d4a){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x918d4a);}['getSuggestions']({skipNotAttached:_0x4166d2=!0x1,toJSON:_0x5165d0=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x4166d2,'toJSON':_0x5165d0});}['getSuggestion'](_0x400ff0){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x400ff0);}}const p=['Pagination'];class re extends _0x23bd0e{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x28ce31=this['editor'];if(_0x28ce31['config']['define']('trackChangesData.editorCreator',_0x373df8=>{const _0x563154=_0x28ce31['model']['document']['getRootNames']()['reduce']((_0x34c50c,_0x46b0c8)=>(_0x34c50c[_0x46b0c8]='',_0x34c50c),{});return _0x28ce31['constructor']['create'](_0x563154,_0x373df8);}),'function'!=typeof _0x28ce31['config']['get']('trackChangesData')['editorCreator'])throw new _0x2a6ed8('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x40ab47){return P(this['editor'],!0x0,_0x40ab47);}['getDataWithDiscardedSuggestions'](_0x27e7ee){return P(this['editor'],!0x1,_0x27e7ee);}}class Fe extends _0x23bd0e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1289a0){function _0x38f855(_0x429007){return _0x429007['map'](_0x1fcfdc=>String['fromCharCode'](_0x1fcfdc))['join']('');}super(_0x1289a0),this['result']='end',_0x1289a0[_0x38f855([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38f855([0x76,0x69,0x65,0x77])][_0x38f855([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x38f855([0x61,0x75,0x74,0x6f]),_0x1289a0[_0x38f855([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x38f855([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x38f855([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x38f855([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x38f855([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function De(_0x583477){return void 0x0!==_0x583477['getRootsAttributes'];}async function P(_0x3a0b42,_0x4ded3d,_0x214f54){const _0x23a84f=_0x2c43c7(_0x3a0b42,p);_0x23a84f['plugins']['push'](d,Fe),_0x23a84f['rootsAttributes']=De(_0x3a0b42)?_0x3a0b42['getRootsAttributes']():void 0x0;const _0xbd94bf=document['createDocumentFragment'](),_0x35ad35=_0x3a0b42['config']['get']('trackChangesData')['editorCreator'],_0x1741e4=await _0x35ad35(_0x23a84f,()=>function(_0xc75724){const _0x2cc566=document['createElement']('div');return _0xc75724['appendChild'](_0x2cc566),_0x2cc566;}(_0xbd94bf));!function(_0x26246f,_0x167679){const _0xbdb88=_0x26246f['model']['document']['getRootNames']()['reduce']((_0x1570c3,_0x236ee5)=>(_0x1570c3[_0x236ee5]=_0x26246f['data']['get']({'rootName':_0x236ee5}),_0x1570c3),{}),_0x4943dd=_0x26246f['plugins']['get']('Users')['users']['map'](_0xed6a2d=>({'id':_0xed6a2d['id'],'name':_0xed6a2d['name']})),_0x2be944=_0x26246f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4d436d=_0x26246f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xaf454d=_0x167679['plugins']['get']('Users'),_0x4f847e=_0x167679['plugins']['get']('TrackChangesEditing'),_0x4f17a8=_0x167679['plugins']['get']('CommentsRepository');for(const _0x3f1114 of _0x4f17a8['getCommentThreads']())_0x3f1114['remove']();for(const _0x56e51f of _0x4943dd)_0xaf454d['getUser'](_0x56e51f['id'])||_0xaf454d['addUser'](_0x56e51f);_0xaf454d['me']||_0xaf454d['useAnonymousUser']();for(const _0x2a5adc of _0x4d436d)_0x4f17a8['addCommentThread'](_0x2a5adc);for(const _0x313916 of _0x2be944)_0x4f847e['addSuggestionData'](_0x313916);_0x167679['data']['set'](_0xbdb88);}(_0x3a0b42,_0x1741e4),_0x1741e4['execute'](_0x4ded3d?'acceptAllSuggestions':'discardAllSuggestions');const _0x3ee146=De(_0x1741e4)?_0x1741e4['getFullData'](_0x214f54):_0x1741e4['data']['get'](_0x214f54);return await _0x1741e4['destroy'](),_0x3ee146;}class Me extends _0x13410a{['options'];constructor(_0x1e9576,_0x2bcb8a){super(_0x1e9576),this['options']=_0x2bcb8a,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'](_0x5c9747,_0xcc2ad3){if(!this['element'])return;const _0x7e43ec=[];for(const [_0x567bc6,_0x53a213]of _0x5c9747){const _0x2736ab=document['createElement']('div');_0x2736ab['setAttribute']('data-ck-root-name',_0x567bc6),_0x2736ab['className']=_0x53a213['classes']+'\x20ck-track-changes-preview__root-container',_0x2736ab['innerHTML']=_0x53a213['content'],_0x7e43ec['push'](_0x2736ab);}_0xcc2ad3(this['element'],_0x7e43ec),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x20920f{constructor(_0x533c8a){super(_0x533c8a),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3caa75=this['editor'],_0x3c556d=_0x3caa75['locale'],_0x39d008=_0x3caa75['plugins']['get']('Dialog');let _0x19583f;const _0x4c6468=function(_0xf91271){const _0x1f180e={};if('editables'in _0xf91271['ui']['view']){for(const [_0x34eb96,_0x1415b5]of Object['entries'](_0xf91271['ui']['view']['editables']))_0x1f180e[_0x34eb96]=_0x1415b5['element'];}else _0x1f180e[_0xf91271['model']['document']['getRootNames']()[0x0]]=_0xf91271['ui']['view']['editable']['element'];return _0x1f180e;}(_0x3caa75),_0x5cdfee=function(_0x2f4cb5){let _0x4acd75=0x0;for(const _0x35967b of Object['values'](_0x2f4cb5))_0x4acd75=Math['max'](_0x4acd75,_0x35967b['getBoundingClientRect']()['width']);let _0x3505ac=0x0;for(const _0x30caaf of Object['values'](_0x2f4cb5))_0x3505ac+=_0x30caaf['getBoundingClientRect']()['height'];const _0x1cccfc=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2ac422=Math['min'](_0x3505ac,_0x1cccfc);return{'width':_0x4acd75,'height':_0x2ac422};}(_0x4c6468);_0x39d008['show']({'id':'finalContentPreview','title':o(_0x3c556d,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3c556d,{'dialogRects':_0x5cdfee}),'onHide':()=>{_0x19583f['detachFromDom']();},'onShow':()=>{_0x3caa75['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x283ee7=>{const _0x60b8d1=this['_standarizeRootsData'](_0x283ee7,_0x3caa75,_0x4c6468);_0x39d008['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x60b8d1,_0x3caa75['config']['get']('trackChanges.preview.renderFunction'));}),_0x19583f=new _0x265088(_0x3c556d,[_0x39d008['view']]),_0x19583f['attachToDom'](),_0x19583f['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3caa75['once']('destroy',()=>{_0x19583f['detachFromDom']();});const _0x1192b0=_0x39d008['view']['headerView']['class'];_0x39d008['view']['headerView']['class']=_0x1192b0?_0x1192b0+'\x20ck-reset_all':'ck-reset_all',_0x39d008['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x39d008['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x12d284=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x19b6bf=_0x12d284['previewMode'],_0x2a9bc4={};if('$labels'===_0x19b6bf){for(const _0x3b3db2 of _0x12d284['getMergeFieldsIds']())_0x2a9bc4[_0x3b3db2]=_0x12d284['getLabel'](_0x3b3db2)||_0x3b3db2;}else{const _0x429b0a='$defaultValues'===_0x19b6bf?_0x12d284['getDefaultValues']():_0x12d284['getDataSetValues'](_0x19b6bf,!0x0);for(const _0x57d30a of Object['entries'](_0x429b0a)){const [_0x44843b,_0x3a3b39]=_0x57d30a;_0x2a9bc4[_0x44843b]=null!==_0x3a3b39?_0x3a3b39:_0x12d284['getLabel'](_0x44843b)||_0x44843b;}}return{'mergeFieldsData':_0x2a9bc4};}['_standarizeRootsData'](_0x58a171,_0x31a291,_0x1bec9e){let _0x3f8ff6;if('string'==typeof _0x58a171){const _0x51f359=_0x31a291['model']['document']['getRootNames']()[0x0];_0x3f8ff6={[_0x51f359]:_0x58a171};}else _0x3f8ff6=_0x58a171;const _0x3dc540=this['_fixMediaEmbeds'](_0x3f8ff6,_0x31a291),_0x338cb1=function(_0x3af6c0,_0x6f6065){for(const [_0x463229,_0x597126]of _0x3af6c0)_0x597126['classes']=_0x6f6065[_0x463229]['classList']['value']['replace']('ck-focused','');return _0x3af6c0;}(this['_sortRoots'](_0x31a291)['reduce']((_0x5c8637,_0x45b927)=>(_0x5c8637['push']([_0x45b927,{'content':_0x3dc540[_0x45b927],'classes':''}]),_0x5c8637),[]),_0x1bec9e);return _0x338cb1;}['_fixMediaEmbeds'](_0x41c1d7,_0x24d224){if(!_0x24d224['plugins']['has']('MediaEmbedEditing'))return _0x41c1d7;const _0x2a2075=_0x24d224['plugins']['get']('MediaEmbedEditing');for(const [_0x12fcaa,_0x2e0b22]of Object['entries'](_0x41c1d7)){const _0x134a38=document['createElement']('div');_0x134a38['innerHTML']=_0x2e0b22,(_0x134a38['querySelectorAll']('figure.media')['forEach'](_0x4550be=>{const _0x4d21e8=_0x4550be['querySelector']('oembed');if(_0x4d21e8){const _0x244887=_0x4d21e8['getAttribute']('url');if(_0x244887){const _0x3f0c47=_0x2a2075['registry']['getMediaViewElement'](new _0x52c638(_0x24d224['editing']['view']['document']),_0x244887,{'elementName':'','renderForEditingView':!0x0}),_0x27fe47=document['createElement']('div');_0x27fe47['classList']['add']('ck-media__wrapper'),_0x3f0c47['render'](_0x27fe47,_0x24d224['editing']['view']['domConverter']),_0x4d21e8['replaceWith'](_0x27fe47);}}}),_0x41c1d7[_0x12fcaa]=_0x134a38['innerHTML']);}return _0x41c1d7;}['_sortRoots'](_0x46ea81){if(!function(_0x58f472){return void 0x0!==_0x58f472['getRootsAttributes'];}(_0x46ea81))return _0x46ea81['model']['document']['getRootNames']();const _0x2a2fd3=[],_0x377720=new Map();for(const _0x29a296 of _0x46ea81['model']['document']['getRootNames']()){const _0x13eb4e=_0x46ea81['editing']['view']['getDomRoot'](_0x29a296)['getClientRects']()['item'](0x0);_0x2a2fd3['push'](_0x29a296),_0x377720['set'](_0x29a296,_0x13eb4e);}return _0x2a2fd3['sort']((_0x336f4e,_0x5d7fa7)=>{const _0x1ce2d3=_0x377720['get'](_0x336f4e),_0x5328b6=_0x377720['get'](_0x5d7fa7);return _0x1ce2d3['y']-_0x5328b6['y']||_0x1ce2d3['x']-_0x5328b6['x'];}),_0x2a2fd3;}}class Ue extends _0x23bd0e{static get['requires'](){return[re,_0x37357b];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3da8b2){super(_0x3da8b2),_0x3da8b2['commands']['add']('previewFinalContent',new te(this['editor'])),_0x3da8b2['config']['define']('trackChanges.preview.renderFunction',(_0x24e8e9,_0x4f5e98)=>{for(const _0x3a4e3c of _0x4f5e98)_0x24e8e9['appendChild'](_0x3a4e3c);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,B as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|