@ckeditor/ckeditor5-track-changes 47.4.0-alpha.2 → 47.4.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +27 -27
- 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
|
-
_0x415f8e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3cf003,_0x1c3bf2){super(),this['id']=_0x1c3bf2['id'],this['type']=_0x1c3bf2['type'],this['subType']=_0x1c3bf2['subType']||null,this['author']=_0x1c3bf2['author'],this['creator']=_0x1c3bf2['creator']||_0x1c3bf2['author'],this['isExternal']=Boolean(_0x1c3bf2['attributes']&&_0x1c3bf2['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1c3bf2['originalSuggestionId']||null,this['_model']=_0x3cf003,this['_onAccept']=_0x1c3bf2['onAccept'],this['_onDiscard']=_0x1c3bf2['onDiscard'],this['_onAttributesChange']=_0x1c3bf2['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1c3bf2['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 _0x3c2cbf=this;for(;_0x3c2cbf['previous'];)_0x3c2cbf=_0x3c2cbf['previous'];return _0x3c2cbf;}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'](_0x5f26ca){this['_markerNames']['add'](_0x5f26ca);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x310e95=>this['_model']['markers']['get'](_0x310e95))['filter'](_0x1f28a8=>_0x1f28a8);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x562795=>{for(const _0x45df1d of this['getMarkers']())_0x562795['removeMarker'](_0x45df1d);}),this['_markerNames']['clear']();}['removeMarker'](_0x1d23f2){this['_model']['change'](_0x53b840=>{_0x53b840['removeMarker'](_0x1d23f2);}),this['_markerNames']['delete'](_0x1d23f2);}['addRange'](_0x2aafd9){const _0x334b71='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x334b71),this['_model']['change'](_0x59a568=>{_0x59a568['addMarker'](_0x334b71,{'range':_0x2aafd9,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x288cac){for(const _0x3a4772 of this['getRanges']())if(_0x3a4772['isIntersecting'](_0x288cac))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x228aa3=>_0x228aa3['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x115ef5,_0x2de39b)=>[..._0x115ef5,..._0x2de39b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3b4fb7=this['getRanges']();if(0x1!=_0x3b4fb7['length'])return null;const _0x2d9ee0=_0x3b4fb7[0x0],_0x4cf5f9=_0x2d9ee0['start']['nodeAfter'],_0x4e2104=_0x2d9ee0['end']['nodeBefore'];return _0x4cf5f9 instanceof _0x3078e5?_0x4cf5f9!=_0x4e2104?null:_0x4cf5f9: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 _0x4e8fb1=[];let _0x1c2c9e=this['head'];for(;_0x1c2c9e;)_0x4e8fb1['push'](_0x1c2c9e),_0x1c2c9e=_0x1c2c9e['next'];return _0x4e8fb1;}['setAttribute'](_0x1133c0,_0x3f7a4e){const _0x380957=_0xc85fec(this['attributes']);_0x414125(_0x380957,_0x1133c0,_0x3f7a4e),_0x4f47b1(_0x380957,this['attributes'])||(this['attributes']=_0x380957,this['_onAttributesChange'](_0x380957));}['removeAttribute'](_0x556c34){const _0x39c68e=_0xc85fec(this['attributes']);_0x42b22f(_0x39c68e,_0x556c34),_0x4f47b1(_0x39c68e,this['attributes'])||(this['attributes']=_0x39c68e,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 _0x367f2e()['substr'](0x1,0x5);}}function o(_0x579f9d,_0x44a13d,_0x4c7eaf){const _0x4531d2=_0x579f9d['t'],t=_0x579f9d['t'];switch(_0x44a13d){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',_0x4c7eaf);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4c7eaf);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4c7eaf);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4c7eaf);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4c7eaf);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',_0x4c7eaf);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4c7eaf);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',_0x4c7eaf);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4c7eaf);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4c7eaf);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4c7eaf);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4c7eaf);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4c7eaf);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4c7eaf);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4c7eaf);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4c7eaf);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4c7eaf);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4c7eaf);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4c7eaf);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4c7eaf);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4c7eaf);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4c7eaf);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4c7eaf);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4c7eaf);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4c7eaf);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'},_0x4c7eaf);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4c7eaf);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4c7eaf);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4c7eaf);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4c7eaf);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4c7eaf);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4c7eaf);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4c7eaf);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'},_0x4c7eaf);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4c7eaf);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4c7eaf);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4c7eaf);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4c7eaf);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x4c7eaf);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4c7eaf);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'},_0x4c7eaf);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'},_0x4c7eaf);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4c7eaf);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'},_0x4c7eaf);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4c7eaf);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'},_0x4c7eaf);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4c7eaf);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x4c7eaf);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x4c7eaf);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x4c7eaf);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4c7eaf);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'},_0x4c7eaf);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4c7eaf);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 _0x4531d2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4c7eaf);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4531d2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4c7eaf);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4c7eaf);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'},_0x4c7eaf);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'},_0x4c7eaf);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'},_0x4c7eaf);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x44a13d;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xf387bf,_0x2fec10){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xf387bf,this['_locale']=_0x2fec10;}['getDescriptions'](_0x58d393){const _0x35e836=[],_0x44b22f=new Set(),_0x33b939=new Set();for(let _0x4e59db=0x0;_0x4e59db<_0x58d393['length'];_0x4e59db++){const _0xe828bf=_0x58d393[_0x4e59db];if(!_0xe828bf['isInContent'])continue;const _0x1a78b1=this['_handleCustomCallbackDescription'](_0xe828bf);if(_0x1a78b1){if(null!=_0xe828bf['subType']){if(_0x44b22f['has'](_0xe828bf['subType']))continue;_0x44b22f['add'](_0xe828bf['subType']);}_0x35e836['push'](_0x1a78b1);}else{if('attribute'==_0xe828bf['type']){const _0x3a1446=_0xe828bf['data']['key'];if(_0x33b939['has'](_0x3a1446))continue;_0x33b939['add'](_0xe828bf['data']['key']),_0x3a1446==m?this['_handleRenameSuggestionDescription'](_0x35e836,_0xe828bf):this['_handleAttributeSuggestionDescription'](_0x35e836,_0xe828bf);continue;}'insertion'!=_0xe828bf['type']&&'deletion'!=_0xe828bf['type']||this['_handleInsertRemoveSuggestionDescription'](_0x35e836,_0xe828bf,_0x58d393[_0x4e59db+0x1]);}}return this['_resolveDescriptionItems'](_0x35e836);}['registerDescriptionCallback'](_0x22d5d1){this['_customCallbacks']['push'](_0x22d5d1);}['registerElementLabel'](_0x44cf2e,_0x2b7c86,_0x595483=_0x15ca84['normal']){'function'==typeof _0x44cf2e?_0x5b0d44(this['_itemLabelsCallbacks'],{'matchingCallback':_0x44cf2e,'label':_0x2b7c86,'priority':_0x595483}):this['_itemLabels']['set'](_0x44cf2e,_0x2b7c86);}['registerAttributeLabel'](_0x1e269a,_0x4cc6d6){this['_attributeLabels']['set'](_0x1e269a,_0x4cc6d6);}['getItemLabel'](_0x2ae29d,_0x1fc83f=0x1){let _0x295bfb;for(const _0x52b252 of this['_itemLabelsCallbacks'])if(_0x52b252['matchingCallback'](_0x2ae29d)){_0x295bfb=_0x52b252['label'];break;}return _0x295bfb||(_0x295bfb=this['_itemLabels']['get'](_0x2ae29d['name'])),_0x295bfb?_0x295bfb(_0x1fc83f):0x1!==_0x1fc83f?_0x1fc83f+'\x20'+_0x2ae29d['name']+'s':''+_0x2ae29d['name'];}['_addDescriptionItems'](_0x400a46,_0x20c27c){const _0x315f5f=_0x20c27c['getFirstRange']()['getWalker'](),_0x3036c5='insertion'==_0x20c27c['type']?'add':'remove';for(const _0x587221 of _0x315f5f){const _0x569ca7=_0x587221['item'],_0x1fa1e7=_0x400a46[_0x400a46['length']-0x1];if(_0x569ca7['is']('$textProxy'))_0x1fa1e7&&_0x1fa1e7['type']['indexOf']('Container')>-0x1&&_0x400a46['pop'](),_0x1fa1e7&&'text'==_0x1fa1e7['type']?_0x1fa1e7[_0x3036c5]+=_0x569ca7['data']:_0x400a46['push']({'type':'text','add':'add'==_0x3036c5?_0x569ca7['data']:'','remove':'remove'==_0x3036c5?_0x569ca7['data']:''});else{if(this['_schema']['isObject'](_0x569ca7)){const _0x2d0190=_0x569ca7;if(_0x1fa1e7&&_0x1fa1e7['type']['indexOf']('Container')>-0x1&&_0x400a46['pop'](),'elementEnd'==_0x587221['type'])continue;_0x1fa1e7&&_0x1fa1e7['type']==_0x3036c5+'Object'&&_0x1fa1e7['element']['name']==_0x2d0190['name']?_0x1fa1e7['quantity']++:_0x400a46['push']({'type':_0x3036c5+'Object','element':_0x2d0190,'quantity':0x1}),_0x315f5f['skip'](_0x537ff0=>!('elementEnd'==_0x537ff0['type']&&_0x537ff0['item']==_0x569ca7));}else{if(this['_schema']['checkChild'](_0x569ca7,'$text')||_0x569ca7['is']('element','softBreak')){const _0x314249=_0x569ca7;if('add'==_0x3036c5&&'elementStart'==_0x587221['type']||'remove'==_0x3036c5&&'elementEnd'==_0x587221['type'])continue;if(_0x1fa1e7&&-0x1==_0x1fa1e7['type']['indexOf']('Container')){'text'==_0x1fa1e7['type']&&(_0x1fa1e7[_0x3036c5]+='\x0a');continue;}let _0x192412;if(_0x192412='add'==_0x3036c5?_0x314249['nextSibling']&&!this['_schema']['isObject'](_0x314249['nextSibling'])?_0x314249['nextSibling']:null:_0x314249['previousSibling']&&!this['_schema']['isObject'](_0x314249['previousSibling'])?_0x314249['previousSibling']:null,_0x314249['isEmpty']||_0x192412&&_0x192412['isEmpty']){const _0x2e4d43=_0x192412&&_0x192412['isEmpty']?_0x192412:_0x314249;_0x1fa1e7&&_0x1fa1e7['type']==_0x3036c5+'EmptyContainer'&&_0x1fa1e7['element']['name']==_0x2e4d43['name']?_0x1fa1e7['quantity']++:_0x400a46['push']({'type':_0x3036c5+'EmptyContainer','element':_0x2e4d43,'quantity':0x1});}else _0x400a46['push']({'type':_0x3036c5+'Container','element':_0x314249});}}}}}['_resolveDescriptionItems'](_0x410818){const _0x314fd9=this['_locale'],_0x4b7491=[],_0x39043b=[],_0x3b3813=[];for(const _0x5bfcff of _0x410818)switch(_0x5bfcff['type']){case'text':if(_0x5bfcff['add']=_0x5bfcff['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5bfcff['remove']=_0x5bfcff['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5bfcff['add']&&''!=_0x5bfcff['remove']){_0x4b7491['push']({'type':'replace','content':o(_0x314fd9,'REPLACE_TEXT',['\x22'+_0x5bfcff['remove']+'\x22','\x22'+_0x5bfcff['add']+'\x22'])});continue;}if(null!=_0x5bfcff['add']['match'](/^ +$/)){_0x4b7491['push']({'type':'insertion','content':o(_0x314fd9,'*Insert:*\x20%0',o(_0x314fd9,'ELEMENT_SPACE',_0x5bfcff['add']['length']))});continue;}if(null!=_0x5bfcff['remove']['match'](/^ +$/)){_0x4b7491['push']({'type':'deletion','content':o(_0x314fd9,'*Remove:*\x20%0',o(_0x314fd9,'ELEMENT_SPACE',_0x5bfcff['remove']['length']))});continue;}if(''!=_0x5bfcff['add']){_0x4b7491['push']({'type':'insertion','content':o(_0x314fd9,'*Insert:*\x20%0','\x22'+_0x5bfcff['add']+'\x22')});continue;}_0x4b7491['push']({'type':'deletion','content':o(_0x314fd9,'*Remove:*\x20%0','\x22'+_0x5bfcff['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4b7491['push']({'type':'insertion','content':o(_0x314fd9,'*Insert:*\x20%0',this['getItemLabel'](_0x5bfcff['element'],_0x5bfcff['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4b7491['push']({'type':'deletion','content':o(_0x314fd9,'*Remove:*\x20%0',this['getItemLabel'](_0x5bfcff['element'],_0x5bfcff['quantity']))});continue;case'addContainer':_0x4b7491['push']({'type':'insertion','content':o(_0x314fd9,'*Split:*\x20%0',this['getItemLabel'](_0x5bfcff['element'],_0x5bfcff['quantity']))});continue;case'removeContainer':_0x4b7491['push']({'type':'deletion','content':o(_0x314fd9,'*Merge:*\x20%0',this['getItemLabel'](_0x5bfcff['element'],_0x5bfcff['quantity']))});continue;case'addFormat':_0x39043b['push'](_0x5bfcff['key']);continue;case'removeFormat':_0x3b3813['push'](_0x5bfcff['key']);continue;default:_0x4b7491['push'](_0x5bfcff);}if(_0x39043b['length']){const _0x4cbbe3=_0x39043b['map'](_0x2aa4c9=>this['_attributeLabels']['has'](_0x2aa4c9)?this['_attributeLabels']['get'](_0x2aa4c9):_0x2aa4c9)['join'](',\x20');_0x4b7491['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4cbbe3)});}if(_0x3b3813['length']){const _0x2d1f98=_0x3b3813['map'](_0x44d016=>this['_attributeLabels']['has'](_0x44d016)?this['_attributeLabels']['get'](_0x44d016):_0x44d016)['join'](',\x20');_0x4b7491['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2d1f98)});}return _0x4b7491;}['_handleCustomCallbackDescription'](_0x1b216b){for(const _0x3e4b98 of this['_customCallbacks']){const _0x4639ca=_0x3e4b98(_0x1b216b);if(_0x4639ca&&'type'in _0x4639ca)return _0x4639ca;}}['_handleAttributeSuggestionDescription'](_0x5d41f2,_0x3974cf){const _0x898c2e=_0x3974cf['data'],_0xededf=void 0x0===_0x898c2e['newValue']?'removeFormat':'addFormat';_0x5d41f2['push']({'type':_0xededf,'key':_0x898c2e['key']});}['_handleRenameSuggestionDescription'](_0x40ec00,_0x304039){_0x40ec00['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x304039['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1a7b8d,_0x4c5673,_0x2f2205){if(this['_addDescriptionItems'](_0x1a7b8d,_0x4c5673),_0x2f2205&&_0x2f2205['getFirstRange']()&&!_0x4c5673['getFirstRange']()['end']['isEqual'](_0x2f2205['getFirstRange']()['start'])){const _0x12ed09=_0x1a7b8d[_0x1a7b8d['length']-0x1],_0x192583='insertion'==_0x4c5673['type']?'add':'remove';_0x12ed09&&'text'==_0x12ed09['type']&&(_0x12ed09[_0x192583]+='\x0a');}}}class R extends _0x2e8ec7{['afterInit'](){const _0x3d3bec=this['editor'],_0x2b59b9=_0x3d3bec['plugins']['get']('TrackChangesEditing');_0x3d3bec['commands']['get']('showAIAssistant')&&_0x2b59b9['enableCommand']('showAIAssistant');}}class T extends _0x2e8ec7{['afterInit'](){const _0x5d1b44=this['editor'],_0x6e43c=_0x5d1b44['plugins']['get']('TrackChangesEditing');_0x5d1b44['commands']['get']('toggleAi')&&_0x6e43c['enableCommand']('toggleAi');}}class E extends _0x2e8ec7{['afterInit'](){const _0x1fc944=this['editor'],_0x4af13f=_0x1fc944['plugins']['get']('TrackChangesEditing');_0x1fc944['commands']['get']('aiQuickAction')&&_0x4af13f['enableCommand']('aiQuickAction');}}class U extends _0x2e8ec7{['afterInit'](){const _0x9f68b9=this['editor'],_0x1bb723=_0x9f68b9['locale'];if(!_0x9f68b9['plugins']['has']('AlignmentEditing'))return;const _0x1edf62=_0x9f68b9['plugins']['get']('TrackChangesEditing');_0x1edf62['enableDefaultAttributesIntegration']('alignment'),_0x1edf62['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1bb723,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x277004=this['editor'],_0x5ade54=_0x277004['locale'];_0x277004['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49da5d=>{if('formatBlock'!=_0x49da5d['type'])return;const {data:_0x2020b9}=_0x49da5d;if(_0x2020b9&&'alignment'==_0x2020b9['commandName']){const _0x46e8e4=_0x2020b9['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5ade54,'*Format:*\x20%0',function(_0x19cabe){switch(_0x19cabe){case'left':return o(_0x5ade54,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5ade54,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5ade54,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5ade54,'FORMAT_JUSTIFY_TEXT');}}(_0x46e8e4))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x2e8ec7{['afterInit'](){const _0x2c3815=this['editor'],_0x11663b=_0x2c3815['plugins']['get']('TrackChangesEditing'),_0x3edced=_0x2c3815['locale'];for(const _0x5ce67c of ti){if(!_0x2c3815['plugins']['has'](_0x5ce67c))continue;const _0x24719d=_0x5ce67c['slice'](0x0,-0x7)['toLowerCase'](),_0x17f2b7='FORMAT_'+_0x24719d['toUpperCase']();_0x11663b['enableDefaultAttributesIntegration'](_0x24719d),_0x11663b['descriptionFactory']['registerAttributeLabel'](_0x24719d,o(_0x3edced,_0x17f2b7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b4ac3=this['editor'],_0x391fca=_0x5b4ac3['locale'],_0x4fb177=_0x5b4ac3['plugins']['get']('TrackChangesEditing');function _0x4c7f0e(_0xc93dbd,_0x27ba8f){_0x4fb177['descriptionFactory']['registerDescriptionCallback'](_0x32cfd2=>{if('formatInline'!=_0x32cfd2['type'])return;const {data:_0x26452a}=_0x32cfd2;return _0x26452a&&_0x26452a['commandName']===_0xc93dbd?_0x26452a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x391fca,'*Format:*\x20%0',_0x27ba8f)}:{'type':'format','content':o(_0x391fca,'*Remove\x20format:*\x20%0',_0x27ba8f)}:void 0x0;});}_0x4c7f0e('bold',o(_0x391fca,'FORMAT_BOLD')),_0x4c7f0e('italic',o(_0x391fca,'FORMAT_ITALIC')),_0x4c7f0e('underline',o(_0x391fca,'FORMAT_UNDERLINE')),_0x4c7f0e('code',o(_0x391fca,'FORMAT_CODE')),_0x4c7f0e('strikethrough',o(_0x391fca,'FORMAT_STRIKETHROUGH')),_0x4c7f0e('subscript',o(_0x391fca,'FORMAT_SUBSCRIPT')),_0x4c7f0e('superscript',o(_0x391fca,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2e8ec7{['afterInit'](){const _0x1efafa=this['editor'],_0x1daf95=_0x1efafa['locale'];if(!_0x1efafa['plugins']['has']('BlockQuoteEditing'))return;const _0x417a26=_0x1efafa['plugins']['get']('TrackChangesEditing'),_0x55883f=this['editor']['commands']['get']('blockQuote');_0x417a26['enableCommand']('blockQuote',(_0x439829,_0x5ed30a={})=>{const _0x316576=this['editor']['model']['document']['selection'],_0x15ab2b=_0x5ed30a&&void 0x0!==_0x5ed30a['forceValue']?_0x5ed30a['forceValue']:!_0x55883f['value'];let _0x4a5910=[];if(_0x15ab2b){const _0x1292ab=Array['from'](_0x316576['getSelectedBlocks']())['filter'](_0x4431a0=>oo(_0x4431a0)||function(_0x4e2e33,_0x12aba7){const _0x340dc2=_0x12aba7['checkChild'](_0x4e2e33['parent'],'blockQuote'),_0x430aa6=_0x12aba7['checkChild'](['$root','blockQuote'],_0x4e2e33);return _0x340dc2&&_0x430aa6;}(_0x4431a0,this['editor']['model']['schema']));_0x4a5910=to(_0x1292ab,_0x1efafa['model']);}else{const _0x35d251=Array['from'](_0x316576['getSelectedBlocks']())['filter'](_0x111fe1=>oo(_0x111fe1));_0x4a5910=to(_0x35d251,_0x1efafa['model']);}_0x1efafa['model']['change'](()=>{for(const _0x2b71e7 of _0x4a5910)_0x417a26['markBlockFormat'](_0x2b71e7,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x15ab2b}]});});}),_0x417a26['descriptionFactory']['registerDescriptionCallback'](_0x58e91e=>{const {data:_0x1ddfd8}=_0x58e91e;if(_0x1ddfd8&&'blockQuote'==_0x1ddfd8['commandName']){const _0xcb3348=o(_0x1daf95,'ELEMENT_BLOCK_QUOTE');return _0x1ddfd8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1daf95,'*Set\x20format:*\x20%0',_0xcb3348)}:{'type':'format','content':o(_0x1daf95,'*Remove\x20format:*\x20%0',_0xcb3348)};}});}}function oo(_0x74184){return'blockQuote'==_0x74184['parent']['name'];}class G extends _0x2e8ec7{['afterInit'](){const _0x193f30=this['editor'],_0x38c460=_0x193f30['locale'],_0x544015=_0x193f30['plugins']['get']('TrackChangesEditing');_0x193f30['plugins']['has']('BookmarkEditing')&&(_0x544015['enableCommand']('insertBookmark'),_0x544015['enableDefaultAttributesIntegration']('updateBookmark'),_0x544015['descriptionFactory']['registerDescriptionCallback'](_0xaceaa2=>{if('insertion'!=_0xaceaa2['type']&&'deletion'!=_0xaceaa2['type']&&'attribute'!=_0xaceaa2['type'])return;const _0x452db6=_0xaceaa2['getContainedElement']();if(null==_0x452db6)return;if(!_0x452db6['is']('element','bookmark'))return;const _0x28e9cf=_0x452db6['getAttribute']('bookmarkId');if('insertion'==_0xaceaa2['type'])return{'type':'insertion','content':o(_0x38c460,'*Insert:*\x20%0','\x22'+_0x28e9cf+'\x22\x20'+o(_0x38c460,'ELEMENT_BOOKMARK'))};if('deletion'==_0xaceaa2['type'])return{'type':'deletion','content':o(_0x38c460,'*Remove:*\x20%0','\x22'+_0x28e9cf+'\x22\x20'+o(_0x38c460,'ELEMENT_BOOKMARK'))};const {data:_0xd68943}=_0xaceaa2;if(!_0xd68943||'bookmarkId'!=_0xd68943['key'])return;return{'type':'format','content':o(_0x38c460,'*Set\x20bookmark:*\x20%0','\x22'+_0xd68943['newValue']+'\x22')};}));}}class L extends _0x2e8ec7{['afterInit'](){const _0x397ea2=this['editor'];_0x397ea2['plugins']['has']('CaseChange')&&(_0x397ea2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x397ea2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x397ea2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x2e8ec7{['afterInit'](){const _0xf6407f=this['editor'];_0xf6407f['commands']['get']('ckbox')&&_0xf6407f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x2e8ec7{['afterInit'](){const _0x35fa34=this['editor'];if(!_0x35fa34['plugins']['has']('CodeBlock'))return;const _0x116596=_0x35fa34['plugins']['get']('TrackChangesEditing'),_0x1dd015=_0x35fa34['locale'],_0x29f0c7=_0x35fa34['config']['get']('codeBlock')['languages'],_0x2a9db7=_0x35fa34['commands']['get']('codeBlock');_0x116596['enableCommand']('indentCodeBlock'),_0x116596['enableCommand']('outdentCodeBlock'),_0x116596['enableCommand']('codeBlock',(_0x5a222e,_0x17b529={})=>{const _0x215cd5=_0x35fa34['model'],_0x3ab267=_0x35fa34['model']['document']['selection'],_0x1b9ae7=_0x17b529&&void 0x0!==_0x17b529['forceValue']?_0x17b529['forceValue']:!_0x2a9db7['value'];let _0x420861;_0x17b529['language']||(_0x17b529['language']=_0x29f0c7[0x0]['language']),_0x420861=_0x1b9ae7?Array['from'](_0x3ab267['getSelectedBlocks']())['filter'](_0x160189=>co(_0x160189)||function(_0x13d86b,_0x2ecd9a){if(_0x13d86b['is']('rootElement')||_0x2ecd9a['isLimit'](_0x13d86b))return!0x1;return _0x2ecd9a['checkChild'](_0x13d86b['parent'],'codeBlock');}(_0x160189,_0x215cd5['schema'])):Array['from'](_0x3ab267['getSelectedBlocks']())['filter'](_0x1f21c5=>co(_0x1f21c5));const _0x13973=to(_0x420861,_0x215cd5);_0x215cd5['change'](()=>{for(const _0x5c6c7e of _0x13973)_0x116596['markBlockFormat'](_0x5c6c7e,{'commandName':'codeBlock','commandParams':[{..._0x17b529,'forceValue':_0x1b9ae7}],'formatGroupId':'blockName'});});}),(_0x116596['descriptionFactory']['registerElementLabel']('codeBlock',_0xd10f8=>o(_0x1dd015,'ELEMENT_CODE_BLOCK',_0xd10f8)),_0x116596['descriptionFactory']['registerDescriptionCallback'](_0x44cd1e=>{if('formatBlock'!=_0x44cd1e['type'])return;const _0x2a608d=_0x1dd015['t'],{data:_0x18196e}=_0x44cd1e;if(!_0x18196e||'codeBlock'!=_0x18196e['commandName'])return;const _0x9b98d2=_0x18196e['commandParams'][0x0]['language'],_0x28ba15=_0x2a608d(_0x29f0c7['find'](_0x3657d8=>_0x3657d8['language']===_0x9b98d2)['label'])['toLowerCase']();return _0x18196e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1dd015,'*Set\x20format:*\x20%0',o(_0x1dd015,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x28ba15+')')}:{'type':'format','content':o(_0x1dd015,'*Remove\x20format:*\x20%0',o(_0x1dd015,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x3a1ba9){return'codeBlock'==_0x3a1ba9['name'];}class z extends _0x2e8ec7{['afterInit'](){const _0x51ba8e=this['editor'];if(!_0x51ba8e['plugins']['has']('CommentsEditing'))return;_0x51ba8e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x2e8ec7{static get['requires'](){return[_0x1a602b];}['init'](){const _0x565959=this['editor'],_0x4df21b=_0x565959['plugins']['get']('TrackChangesEditing');_0x4df21b['enableCommand']('delete');const _0x308eae=_0x565959['commands']['get']('deleteForward');_0x4df21b['enableCommand']('deleteForward',(_0x58011d,_0x2ca349={})=>{const _0x54c876=_0x565959['model']['createSelection'](_0x565959['model']['document']['selection']);_0x54c876['isCollapsed']&&_0x565959['model']['modifySelection'](_0x54c876,{'direction':'forward','unit':_0x2ca349['unit']});const _0x5ef818=_0x54c876['getFirstRange'](),_0x1c3163=_0x95b134['fromRange'](_0x5ef818);let _0x614c1;_0x58011d(_0x2ca349),_0x614c1='$graveyard'==_0x1c3163['root']['rootName']?_0x565959['model']['createRange'](_0x5ef818['start']):_0x565959['model']['createRange'](_0x1c3163['start'],_0x1c3163['end']),_0x1c3163['detach'](),_0x565959['model']['enqueueChange'](_0x308eae['buffer']['batch'],_0x289072=>{_0x308eae['buffer']['lock'](),_0x289072['setSelection'](_0x289072['createRange'](_0x614c1['end'])),_0x308eae['buffer']['unlock']();});});}}class W extends _0x2e8ec7{['afterInit'](){const _0xda8e1=this['editor'];if(!_0xda8e1['plugins']['has']('ListEditing'))return;const _0x19693d=_0xda8e1['locale'],_0x461e85=_0xda8e1['plugins']['get']('TrackChangesEditing'),_0x532a13=_0xda8e1['plugins']['has']('TodoListEditing'),_0x23825f=!!_0xda8e1['config']['get']('list.multiBlock');function _0x3a808e(_0x1eb071){return{'type':'format','content':''+o(_0x19693d,'*Set\x20format:*\x20%0',_0x1eb071)};}function _0x1b9351(_0x1b3b45){return{'type':'format','content':''+o(_0x19693d,'*Remove\x20format:*\x20%0',_0x1b3b45)};}_0x461e85['enableDefaultAttributesIntegration']('numberedList'),_0x461e85['enableDefaultAttributesIntegration']('bulletedList'),_0x461e85['enableDefaultAttributesIntegration']('customNumberedList'),_0x461e85['enableDefaultAttributesIntegration']('customBulletedList'),_0x461e85['enableDefaultAttributesIntegration']('indentList'),_0x461e85['enableDefaultAttributesIntegration']('outdentList'),_0x461e85['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x461e85['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x23825f&&(_0x461e85['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x461e85['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x532a13&&(_0x461e85['enableDefaultAttributesIntegration']('todoList'),_0x461e85['enableDefaultAttributesIntegration']('checkTodoList'),_0x461e85['descriptionFactory']['registerDescriptionCallback'](_0x26afdb=>{const {data:_0x1cad77}=_0x26afdb;if(_0x1cad77&&'todoListChecked'==_0x1cad77['key'])return{'type':'format','content':_0x1cad77['newValue']?o(_0x19693d,'*Check\x20item*'):o(_0x19693d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x24e52e=>{if(_0x24e52e['batch']['isUndo'])return!0x1;let _0x438ad6=!0x1;const _0xd62f6d=_0x461e85['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x301aa9=>'todoListChecked'===_0x461e85['_getAttributeKey'](_0x301aa9));for(const _0x469fcf of _0xd62f6d){'todo'!=_0x469fcf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x461e85['_findSuggestions'](_0x469fcf['getFirstRange'](),'attribute')['find'](_0x4c9366=>'listType'===_0x461e85['_getAttributeKey'](_0x4c9366['suggestion']))||(_0x24e52e['removeMarker'](_0x469fcf['getFirstMarker']()),_0x438ad6=!0x0));}return _0x438ad6;})),_0x461e85['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x19693d,'FORMAT_INDENT'));const _0x304fa9={'type':'format','content':''};_0x461e85['descriptionFactory']['registerDescriptionCallback'](_0x200a3f=>{const {data:_0x30463d}=_0x200a3f;if(!_0x30463d||'listType'!=_0x30463d['key'])return;let _0x17ae82=_0x200a3f['head'];for(;_0x17ae82;){if(_0x17ae82['data']&&(('listStyle'==_0x17ae82['data']['key']||'listMarkerStyle'==_0x17ae82['data']['key'])&&(_0x17ae82['data']['newValue']&&'default'!=_0x17ae82['data']['newValue']||'default'!=_0x17ae82['data']['oldValue']&&!_0x30463d['newValue'])||!_0x23825f&&_0x17ae82['data']['key']==m))return _0x304fa9;_0x17ae82=_0x17ae82['next'];}if(null==_0x30463d['newValue'])switch(_0x30463d['oldValue']){case'bulleted':return _0x1b9351(o(_0x19693d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1b9351(o(_0x19693d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1b9351(o(_0x19693d,'ELEMENT_TODO_LIST'));}switch(_0x30463d['newValue']){case'bulleted':return _0x3a808e(o(_0x19693d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a808e(o(_0x19693d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a808e(o(_0x19693d,'ELEMENT_TODO_LIST'));}}),_0x461e85['descriptionFactory']['registerDescriptionCallback'](_0x55c623=>{const {data:_0x19645b}=_0x55c623;if(_0x19645b&&'listIndent'==_0x19645b['key'])return null==_0x19645b['newValue']||null==_0x19645b['oldValue']&&0x0==_0x19645b['newValue']?_0x304fa9:void 0x0;}),_0x461e85['descriptionFactory']['registerDescriptionCallback'](_0x22becb=>{if('attribute'!=_0x22becb['type'])return;const {data:_0xc48d41}=_0x22becb;if(!_0xc48d41||'listItemId'!=_0xc48d41['key'])return;const _0x2a764e=Te(_0x22becb);return'newValue'==_0x2a764e?{'type':'format','content':o(_0x19693d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2a764e?{'type':'format','content':o(_0x19693d,'*Split:*\x20list\x20item')}:_0x304fa9;}),_0xda8e1['model']['document']['registerPostFixer'](_0x35e5fd=>this['listItemIdFixer'](_0x35e5fd)),_0xda8e1['model']['document']['registerPostFixer'](_0x4d50b7=>this['noTrackChangesFixer'](_0x4d50b7)),_0xda8e1['model']['document']['on']('change:data',(_0x354062,_0x20a84e)=>{if(_0x20a84e['isUndo']||!_0x20a84e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x57ab64){if(_0x57ab64['batch']['isUndo']||!_0x57ab64['batch']['isLocal'])return!0x1;let _0x21b63b=!0x1;const _0x555c00=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x390f57=>_0x390f57['data']&&'listItemId'==_0x390f57['data']['key'])['filter'](_0x511edb=>_0x511edb['data']['newValue']&&_0x511edb['data']['oldValue']);for(const _0x33cfbc of _0x555c00)Te(_0x33cfbc)||(_0x57ab64['removeMarker'](_0x33cfbc['getFirstMarker']()),_0x21b63b=!0x0);return _0x21b63b;}['noTrackChangesFixer'](_0x2e6b7e){if(_0x2e6b7e['batch']['isUndo']||!_0x2e6b7e['batch']['isLocal'])return!0x1;const _0x3c2036=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3c2036['trackChangesCommand']['value'])return!0x1;let _0x34ac28=!0x1;const _0x5510e6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1a50c7=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x58479c=>'attribute'==_0x58479c['type'])['filter'](_0x39c83b=>_0x5510e6['includes'](_0x39c83b['attributeKey']));if(0x0==_0x1a50c7['length'])return _0x34ac28;for(const _0x1f9697 of _0x1a50c7){const _0x43017d=_0x3c2036['_findSuggestions'](_0x1f9697['range'],'attribute')['filter'](_0xb42bfc=>!_0xb42bfc['meta']['isNextTo'])['map'](_0xa45cca=>_0xa45cca['suggestion'])['filter'](_0x3b43d1=>{const _0x4fd223=_0x3c2036['_getAttributeKey'](_0x3b43d1);return _0x5510e6['includes'](_0x4fd223);});if(_0x43017d['length']){for(const _0x5566a3 of _0x43017d)_0x2e6b7e['removeMarker'](_0x5566a3['getFirstMarker']());_0x34ac28=!0x0;}}return _0x34ac28;}['assureChains'](){const _0x17a66b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x403ced=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4039f2;const _0x1a1d72=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x10eba3=>{if(_0x10eba3['data']['oldRange']||!_0x10eba3['data']['newRange'])return null;if(!_0x10eba3['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x141b38}=_0x17a66b['_splitMarkerName'](_0x10eba3['name']);if(!_0x17a66b['hasSuggestion'](_0x141b38))return null;const _0x2f34ba=_0x17a66b['getSuggestion'](_0x141b38);return _0x403ced['includes'](_0x2f34ba['data']['key']);})['map'](_0x4e76b4=>{const {id:_0x2659fe}=_0x17a66b['_splitMarkerName'](_0x4e76b4['name']),_0x53410e=_0x17a66b['getSuggestion'](_0x2659fe);return _0x4039f2=_0x53410e['attributes']['groupId'],_0x53410e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1a1d72['size'])return;const _0x4d6450=_0x17a66b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48052b=>'attribute'==_0x48052b['type']&&_0x48052b['data']&&_0x403ced['includes'](_0x48052b['data']['key'])&&_0x48052b['attributes']['groupId']!=_0x4039f2)['map'](_0x142c7b=>({'listItem':_0x142c7b['getFirstRange']()['start']['nodeAfter'],'groupId':_0x142c7b['attributes']['groupId']})),_0x99a73f=new Set();for(const {groupId:_0x45cd90,listItem:_0x28527a}of _0x4d6450)_0x1a1d72['has'](_0x28527a)&&_0x99a73f['add'](_0x45cd90);for(const _0x33f733 of _0x17a66b['getSuggestions']())_0x99a73f['has'](_0x33f733['attributes']['groupId'])&&_0x33f733['setAttribute']('groupId',_0x4039f2);}['_supportLegacySuggestions'](){const _0x58471d=this['editor'],_0x4f0724=_0x58471d['locale'],_0x4e32dd=_0x58471d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4e32dd['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x16d727,_0x203aa8){const _0x363849=[];for(let _0x439f0b of _0x16d727)_0x439f0b['start']['nodeAfter']===_0x439f0b['end']['parent']&&(_0x439f0b=_0x58471d['model']['createRange'](_0x58471d['model']['createPositionAt'](_0x439f0b['start']['nodeAfter'],0x0))),_0x363849['push'](_0x439f0b);_0x58471d['model']['change'](_0x34b452=>{const _0x359bd9=_0x58471d['model']['document']['selection'],_0x41c430=Array['from'](_0x359bd9['getRanges']())['map'](_0x54e510=>_0x95b134['fromRange'](_0x54e510));_0x34b452['setSelection'](_0x363849),_0x58471d['commands']['get'](_0x203aa8['commandName'])['refresh'](),_0x203aa8['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x58471d['execute'](_0x203aa8['commandName'],..._0x203aa8['commandParams']),_0x34b452['setSelection'](_0x41c430);for(const _0x3397db of _0x41c430)_0x3397db['detach']();});}),_0x4e32dd['descriptionFactory']['registerElementLabel'](function(_0x172fcf){const _0x3826c0=!_0x58471d['model']['schema']['isObject'](_0x172fcf),_0x553f46=_0x172fcf['previousSibling'],_0x781f70=_0x172fcf['nextSibling'],_0x41b886=_0x172fcf['getAttribute']('listItemId'),_0x370551=!_0x553f46||_0x553f46['getAttribute']('listItemId')!==_0x41b886,_0x584b29=!_0x781f70||_0x781f70['getAttribute']('listItemId')!==_0x41b886;return _0x3826c0&&Boolean(_0x41b886)&&_0x370551&&_0x584b29;},_0x29b723=>o(_0x4f0724,'ELEMENT_LIST_ITEM',_0x29b723));}['_registerLegacyDescription'](){const _0x5f2143=this['editor'],_0xee144f=_0x5f2143['locale'];function _0x39de82(_0x3a1f33){const _0x4845b0=_0x5f2143['commands']['get']('bulletedList')['value'],_0x525f05=_0x5f2143['commands']['get']('numberedList')['value'];return'numberedList'===_0x3a1f33?_0x4845b0:_0x525f05;}_0x5f2143['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2c2764){if('formatBlock'!=_0x2c2764['type'])return;const {data:_0x190adc}=_0x2c2764;if(!_0x190adc)return;let _0x4cc398,_0x52d735,_0x565196,_0x25f08c;switch(_0x190adc['commandName']){case'bulletedList':_0x565196=_0x190adc['commandParams'][0x0]['forceValue'],_0x25f08c=_0x39de82(_0x190adc['commandName']),_0x4cc398=_0x565196?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x25f08c&&_0x5f2143['config']['get']('list.multiBlock')||(_0x4cc398='*Change\x20to:*\x20%0'),_0x52d735={'type':'format','content':o(_0xee144f,_0x4cc398,o(_0xee144f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x565196=_0x190adc['commandParams'][0x0]['forceValue'],_0x25f08c=_0x39de82(_0x190adc['commandName']),_0x4cc398=_0x565196?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x25f08c&&_0x5f2143['config']['get']('list.multiBlock')||(_0x4cc398='*Change\x20to:*\x20%0'),_0x52d735={'type':'format','content':o(_0xee144f,_0x4cc398,o(_0xee144f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4cc398='*Indent:*\x20%0',_0x52d735={'type':'format','content':o(_0xee144f,_0x4cc398,o(_0xee144f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4cc398=function(_0x2b3db1){const _0x1fceb2=_0x2b3db1['getFirstRange']();let _0x4e53b1=_0x1fceb2['start']['nodeAfter'];for(;_0x4e53b1&&_0x1fceb2['containsItem'](_0x4e53b1);){if(_0x4e53b1['getAttribute']('listIndent')>0x0)return!0x1;_0x4e53b1=_0x4e53b1['nextSibling'];}return!0x0;}(_0x2c2764)?o(_0xee144f,'*Format:*\x20remove\x20from\x20%0',o(_0xee144f,function(_0x3c6501){return'ELEMENT_'+_0x3c6501['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2c2764))):o(_0xee144f,'*Outdent:*\x20%0',o(_0xee144f,'ELEMENT_LIST_ITEM')),_0x52d735={'type':'format','content':_0x4cc398};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x190adc['multipleBlocks']&&(_0x4cc398='*Merge:*\x20%0',_0x52d735={'type':'deletion','content':o(_0xee144f,_0x4cc398,o(_0xee144f,'ELEMENT_LIST_ITEM'))});}return _0x52d735;});}}function Te(_0x439afd){let _0x301b2f=_0x439afd['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x301b2f;){const _0x30abe8=_0x301b2f['getAttribute']('listItemId');if(!_0x30abe8)return!0x1;if(_0x30abe8==_0x439afd['data']['newValue'])return'newValue';if(_0x30abe8==_0x439afd['data']['oldValue'])return'oldValue';_0x301b2f=_0x301b2f['previousSibling'];}return!0x1;}class H extends _0x2e8ec7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x498a65=this['editor']['config']['get']('list.properties'),_0x112481=this['editor']['plugins']['get']('TrackChangesEditing');_0x498a65['styles']&&_0x112481['enableDefaultAttributesIntegration']('listStyle'),_0x498a65['reversed']&&_0x112481['enableDefaultAttributesIntegration']('listReversed'),_0x498a65['startIndex']&&_0x112481['enableDefaultAttributesIntegration']('listStart');const _0x169bab={'type':'format','content':''};_0x112481['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5236da=this['editor']['locale'];_0x112481['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5236da,'FORMAT_LIST_REVERSED')),_0x112481['descriptionFactory']['registerDescriptionCallback'](_0x26d532=>{const {data:_0x458055}=_0x26d532;if(_0x458055&&'listReversed'==_0x458055['key'])return null==_0x458055['newValue']||0x0==_0x458055['newValue']&&null==_0x458055['oldValue']?_0x169bab:void 0x0;}),_0x112481['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5236da,'FORMAT_LIST_START')),_0x112481['descriptionFactory']['registerDescriptionCallback'](_0x245584=>{const {data:_0x4149c1}=_0x245584;if(_0x4149c1&&'listStart'==_0x4149c1['key'])return null==_0x4149c1['newValue']||0x1==_0x4149c1['newValue']&&null==_0x4149c1['oldValue']?_0x169bab:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5d8d88=>{if(_0x5d8d88['batch']['isUndo'])return!0x1;let _0x4bdba6=!0x1;const _0x5bce0=_0x112481['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x53137b=>{const _0x584bab=_0x112481['_getAttributeKey'](_0x53137b);return'listStart'==_0x584bab||'listReversed'==_0x584bab;});for(const _0x597262 of _0x5bce0){const _0x37925c=_0x597262['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x37925c||'customNumbered'==_0x37925c)continue;_0x112481['_findSuggestions'](_0x597262['getFirstRange'](),'attribute')['find'](_0x6b955c=>'listType'==_0x112481['_getAttributeKey'](_0x6b955c['suggestion']))||(_0x5d8d88['removeMarker'](_0x597262['getFirstMarker']()),_0x4bdba6=!0x0);}return _0x4bdba6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x9be813){const _0x2e70fd=this['editor']['locale'],{data:_0x57704b}=_0x9be813,_0x1884e8={'type':'format','content':''};if(!_0x57704b||'listStyle'!=_0x57704b['key'])return;if(!_0x57704b['oldValue'])return'default'==_0x57704b['newValue']?_0x1884e8:{'type':'format','content':''+o(_0x2e70fd,'*Set\x20format:*\x20%0',o(_0x2e70fd,this['_getTranslationKeyForListStyle'](_0x57704b['newValue'])))};if(!_0x57704b['newValue']){if('default'==_0x57704b['oldValue'])return _0x1884e8;let _0xee3b67=_0x9be813['head'];for(;_0xee3b67;){if(_0xee3b67['data']&&'listType'==_0xee3b67['data']['key']&&_0xee3b67['data']['newValue'])return _0x1884e8;_0xee3b67=_0xee3b67['next'];}return{'type':'format','content':''+o(_0x2e70fd,'*Remove\x20format:*\x20%0',o(_0x2e70fd,this['_getTranslationKeyForListStyle'](_0x57704b['oldValue'])))};}if('default'!=_0x57704b['newValue'])return{'type':'format','content':''+o(_0x2e70fd,'*Set\x20format:*\x20%0',o(_0x2e70fd,this['_getTranslationKeyForListStyle'](_0x57704b['newValue'])))};let _0x15a150=_0x9be813['head'];for(;_0x15a150;){if(_0x15a150['data']&&'listType'==_0x15a150['data']['key']&&_0x15a150['data']['newValue']&&_0x15a150['data']['oldValue'])return _0x1884e8;_0x15a150=_0x15a150['next'];}return{'type':'format','content':o(_0x2e70fd,'*Set\x20format:*\x20%0',o(_0x2e70fd,'ELEMENT_'+_0x9be813['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3f9606=this['editor'],_0x185153=_0x3f9606['locale'];_0x3f9606['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d0665=>{if('formatBlock'!=_0x4d0665['type'])return;const {data:_0x59ac40}=_0x4d0665;if(!_0x59ac40)return;let _0x9e3505,_0x28bf82;switch(_0x59ac40['commandName']){case'listStyle':_0x9e3505='*Change\x20to:*\x20%0',_0x28bf82={'type':'format','content':o(_0x185153,_0x9e3505,o(_0x185153,this['_getTranslationKeyForListStyle'](_0x59ac40['commandParams'][0x0]['type'])))};break;case'listReversed':_0x9e3505=_0x59ac40['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x28bf82={'type':'format','content':o(_0x185153,_0x9e3505)};break;case'listStart':_0x9e3505='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x28bf82={'type':'format','content':o(_0x185153,_0x9e3505,_0x59ac40['commandParams'][0x0]['startIndex'])};}return _0x28bf82;});}['_getTranslationKeyForListStyle'](_0x66e48d){return'ELEMENT_'+function(_0x25f64f){if(ye['includes'](_0x25f64f))return'bulleted';if(Se['includes'](_0x25f64f))return'numbered';return null;}(_0x66e48d)['toUpperCase']()+'_LIST_'+_0x66e48d['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x2e8ec7{['afterInit'](){const _0x4f4b3f=this['editor'];_0x4f4b3f['commands']['get']('emoji')&&_0x4f4b3f['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x2e8ec7{static get['requires'](){return[_0x2e9ff3];}['init'](){const _0x50d646=this['editor'],_0xfad4ae=_0x50d646['plugins']['get']('TrackChangesEditing'),_0x406dbe=_0x50d646['commands']['get']('enter');_0xfad4ae['enableCommand']('enter',()=>{_0x50d646['model']['change'](_0x1f2634=>{const _0x5e302c=_0x50d646['model']['document']['selection'],_0x37a438=_0x5e302c['getFirstPosition'](),_0x14557e=_0x95b134['fromRange'](_0x5e302c['getFirstRange']());if(_0x406dbe['enterBlock'](_0x1f2634)){const _0x4a4bcc=_0x50d646['model']['createPositionAt'](_0x37a438['parent']['nextSibling'],0x0),_0x54f488=_0x1f2634['createRange'](_0x37a438,_0x4a4bcc);_0xfad4ae['markInsertion'](_0x54f488);}else _0x1f2634['setSelection'](_0x1f2634['createRange'](_0x14557e['end']));_0x14557e['detach'](),_0x406dbe['fire']('afterExecute',{'writer':_0x1f2634});});});}}class Y extends _0x2e8ec7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x538b20=this['editor']['plugins']['get']('TrackChangesEditing');_0x538b20['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x538b20['enableCommand']('findNext'),_0x538b20['enableCommand']('findPrevious'),_0x538b20['enableCommand']('replace'),_0x538b20['enableCommand']('replaceAll');}['handleFindCommand'](_0x5097a2,_0x7e2da8,_0x124a21={}){const _0x4af772=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5097a2(_0x2efd92=>{let _0x3ed36e=('string'==typeof _0x7e2da8?_0x4af772['findByTextCallback'](_0x7e2da8,_0x124a21):_0x7e2da8)(_0x2efd92);Array['isArray'](_0x3ed36e)&&(_0x3ed36e={'results':_0x3ed36e,'searchText':'string'==typeof _0x7e2da8?_0x7e2da8:''});const _0x3d1466=_0x3ed36e['results']['filter'](_0x249d89=>!0x1===this['_isInDeletionRange'](_0x249d89,_0x2efd92['item']));return{..._0x3ed36e,'results':_0x3d1466};},_0x124a21);}['_isInDeletionRange'](_0x43d759,_0x113ebf){const _0x8e4b50=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x113ebf,_0x43d759['start']),this['editor']['model']['createPositionAt'](_0x113ebf,_0x43d759['end']));for(const _0x416391 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x8e4b50['getIntersection'](_0x416391['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x2e8ec7{['afterInit'](){const _0x518233=this['editor']['locale'],_0x47371c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5ad684,commandName:_0x42cd89}of eo)this['editor']['plugins']['has'](_0x5ad684)&&_0x47371c['enableDefaultAttributesIntegration'](_0x42cd89);_0x47371c['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x518233,'FORMAT_FONT_SIZE')),_0x47371c['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x518233,'FORMAT_FONT_FAMILY')),_0x47371c['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x518233,'FORMAT_FONT_COLOR')),_0x47371c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x518233,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56dd65=this['editor'],_0x344b80=_0x56dd65['locale'];_0x56dd65['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4580c0=>{const _0x8bb164=_0x344b80['t'];if('formatInline'!=_0x4580c0['type'])return;const {data:_0x4c254a}=_0x4580c0;if(null!=_0x4c254a){if('fontSize'==_0x4c254a['commandName']){const _0xce1cdc=_0x4c254a['commandParams'][0x0]['value'];if(_0xce1cdc){const _0x32d767=_0x8bb164(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x87af0d=>_0x87af0d['model']==_0xce1cdc)['title'])['toLowerCase']();return{'type':'format','content':o(_0x344b80,'*Set\x20font\x20size:*\x20%0',_0x32d767)};}return{'type':'format','content':o(_0x344b80,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4c254a['commandName']){const _0x783549=_0x4c254a['commandParams'][0x0]['value'];return _0x783549?{'type':'format','content':o(_0x344b80,'*Set\x20font\x20family:*\x20%0',_0x783549)}:{'type':'format','content':o(_0x344b80,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4c254a['commandName']){const _0x1685d7=_0x4c254a['commandParams'][0x0]['value'];if(_0x1685d7){const _0x2203fb=_0x3a4426(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3510cc=>_0x3510cc['model']==_0x1685d7);let _0x43ed43=_0x1685d7,_0x1d5874='';return _0x2203fb&&(_0x43ed43=_0x2203fb['label'],_0x1d5874=_0x8bb164(_0x43ed43)['toLowerCase']()),{'type':'format','content':o(_0x344b80,'*Set\x20font\x20color:*\x20%0',_0x1d5874)['trim'](),'color':{'value':_0x1685d7,'title':_0x1d5874||_0x43ed43}};}return{'type':'format','content':o(_0x344b80,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4c254a['commandName']){const _0x58226e=_0x4c254a['commandParams'][0x0]['value'];if(_0x58226e){const _0x47538c=_0x3a4426(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x188da4=>_0x188da4['model']==_0x58226e);let _0x444d60=_0x58226e,_0x462ef6='';return _0x47538c&&(_0x444d60=_0x47538c['label'],_0x462ef6=_0x8bb164(_0x444d60)['toLowerCase']()),{'type':'format','content':o(_0x344b80,'*Set\x20font\x20background\x20color:*\x20%0',_0x462ef6)['trim'](),'color':{'value':_0x58226e,'title':_0x462ef6||_0x444d60}};}return{'type':'format','content':o(_0x344b80,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x2e8ec7{['afterInit'](){const {plugins:_0x4dbc14}=this['editor'];_0x4dbc14['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x4dbc14['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x20b216,plugins:_0x1754d6,commands:_0x11f753}=this['editor'],_0x27dd77=_0x1754d6['get']('TrackChangesEditing');_0x11f753['get']('footnotesStyle')&&_0x27dd77['enableDefaultAttributesIntegration']('footnotesStyle'),_0x11f753['get']('footnotesStart')&&_0x27dd77['enableDefaultAttributesIntegration']('footnotesStart'),_0x27dd77['registerBlockAttribute']('footnotesListStyle'),_0x27dd77['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x20b216,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x27dd77['registerBlockAttribute']('footnotesListStart'),_0x27dd77['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x20b216,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x1af693=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x5a78bb,commands:_0x3d50f1}=this['editor'];_0x3d50f1['get']('insertFootnote')&&_0x1af693['enableCommand']('insertFootnote'),_0x1af693['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4263a8=>o(_0x5a78bb,'ELEMENT_FOOTNOTE_REF',_0x4263a8)),_0x1af693['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x207794=>o(_0x5a78bb,'ELEMENT_FOOTNOTE_DEFINITION',_0x207794)),_0x1af693['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x135b2a=>o(_0x5a78bb,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x135b2a));}}class nt extends _0x2e8ec7{['afterInit'](){const _0x55e279=this['editor'],_0x4c0453=_0x55e279['plugins']['get']('TrackChangesEditing'),_0x30ee15=_0x55e279['commands']['get']('copyFormat'),_0x23abb8=_0x55e279['commands']['get']('pasteFormat');_0x30ee15&&_0x23abb8&&(_0x4c0453['enableDefaultAttributesIntegration']('pasteFormat'),_0x4c0453['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x58a513=this['editor'],_0x31e3f4=_0x58a513['locale'];_0x58a513['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d38f0=>{if('formatBlock'!=_0x1d38f0['type']&&'formatInline'!=_0x1d38f0['type'])return;const {data:_0x351df3}=_0x1d38f0;if(_0x351df3&&'pasteFormat'===_0x351df3['commandName']){const _0x20a85e=[],_0x3400d2=_0x351df3['commandParams'][0x0];for(const [_0x271252,_0x687d86]of Object['entries'](_0x3400d2))_0x20a85e['push'](ro(_0x58a513,_0x271252,_0x687d86));return _0x20a85e['length']?{'type':'format','content':o(_0x31e3f4,'*Set\x20format\x20to:*\x20%0',_0x20a85e['join'](',\x20'))}:{'type':'format','content':o(_0x31e3f4,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x35d55b,_0x514ae2,_0x74ce8d){const _0x218512=_0x35d55b['locale']['t'],_0x2d369e=_0x514ae2['split'](/(?=[A-Z])/)['join']('\x20'),_0x2fb2b3=_0x218512(_0x2d369e['charAt'](0x0)['toUpperCase']()+_0x2d369e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x74ce8d)return _0x2fb2b3;if('fontColor'===_0x514ae2||'fontBackgroundColor'===_0x514ae2){const _0x410908=_0x3a4426(_0x35d55b['config']['get']('fontColor.colors'))['find'](_0x3485fd=>_0x3485fd['model']==_0x74ce8d);return _0x2fb2b3+'\x20('+(_0x410908?_0x218512(_0x410908['label'])['toLowerCase']():_0x74ce8d)+')';}if('fontSize'===_0x514ae2&&isNaN(parseFloat(_0x74ce8d))){const _0x5bf1f3=_0x35d55b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x35d55b['config']['get']('fontSize.options'))['find'](_0x415f42=>_0x415f42['model']==_0x74ce8d);return _0x2fb2b3+'\x20('+(_0x5bf1f3?_0x218512(_0x5bf1f3['title'])['toLowerCase']():_0x74ce8d)+')';}return _0x2fb2b3+'\x20('+_0x74ce8d+')';}class it extends _0x2e8ec7{['_headingOptions'];['afterInit'](){const _0x27ffef=this['editor'];if(!_0x27ffef['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x27ffef['config']['get']('heading.options');const _0x119e39=_0x27ffef['locale'],_0x535999=_0x27ffef['plugins']['get']('TrackChangesEditing');_0x535999['enableDefaultAttributesIntegration']('heading');for(const _0x546c0a of this['_headingOptions'])'paragraph'!=_0x546c0a['model']&&_0x535999['descriptionFactory']['registerElementLabel'](_0x546c0a['model'],_0x19caac=>{const _0x27fced=this['_getHeadingLevel'](_0x546c0a['model']);return null!==_0x27fced?_0x21c619(_0x19caac,_0x27fced):_0x26a13c(_0x19caac,_0x546c0a['title']);});function _0x21c619(_0x22fbf5,_0x49a42a){return o(_0x119e39,'ELEMENT_HEADING',[_0x22fbf5,_0x49a42a]);}function _0x26a13c(_0x1cf151,_0x211ff0){return o(_0x119e39,'ELEMENT_HEADING_CUSTOM',[_0x1cf151,_0x211ff0]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x427487=this['editor'],_0x573f13=_0x427487['locale'];function _0x2950f1(_0x296484,_0x5d567a){return o(_0x573f13,'ELEMENT_HEADING_CUSTOM',[_0x296484,_0x5d567a]);}_0x427487['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f8214=>{if('formatBlock'!=_0x3f8214['type'])return;const {data:_0x4b06ad}=_0x3f8214;if(_0x4b06ad&&'heading'==_0x4b06ad['commandName']){const _0x28d8af=_0x4b06ad['commandParams'][0x0]['value'],_0x1e378a=this['_getHeadingLevel'](_0x28d8af);if(null!==_0x1e378a)return{'type':'format','content':o(_0x573f13,'*Change\x20to:*\x20%0',(_0x5bdcc6=0x1,_0x52edf2=_0x1e378a,o(_0x573f13,'ELEMENT_HEADING',[_0x5bdcc6,_0x52edf2])))};const _0x443f25=this['_headingOptions']['find'](_0x21703f=>_0x21703f['model']===_0x28d8af)['title'];return{'type':'format','content':o(_0x573f13,'*Change\x20to:*\x20%0',_0x2950f1(0x1,_0x443f25))};}var _0x5bdcc6,_0x52edf2;});}['_getHeadingLevel'](_0x1cf857){const _0x4b24a6=_0x1cf857['match'](/^heading(\d+)/);if(_0x4b24a6)return _0x4b24a6[0x1];const _0x53c8e9=this['_headingOptions']?.['find'](_0x5f2723=>_0x5f2723['model']==_0x1cf857);if(_0x53c8e9&&_0x53c8e9['view']){const _0x171718=_0x53c8e9['view'],_0x28be3c=(_0x171718['name']??_0x171718)['match'](/^h(\d+)/);if(_0x28be3c)return _0x28be3c[0x1];}return null;}}class et extends _0x2e8ec7{['afterInit'](){const _0x1fbd06=this['editor'];if(!_0x1fbd06['plugins']['has']('HighlightEditing'))return;const _0x169e59=_0x1fbd06['plugins']['get']('TrackChangesEditing'),_0x347a7d=_0x1fbd06['locale'];_0x169e59['enableDefaultAttributesIntegration']('highlight'),_0x169e59['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x347a7d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e1c47=this['editor'],_0x2e7263=_0x5e1c47['locale'];_0x5e1c47['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3307e0=>{if('formatInline'!=_0x3307e0['type'])return;const {data:_0x118aaa}=_0x3307e0;if(_0x118aaa&&'highlight'==_0x118aaa['commandName']){const _0x4c9bd5=_0x2e7263['t'],_0x5350f9=_0x118aaa['commandParams'][0x0]['value'];if(_0x5350f9){const _0x12ecef=_0x5e1c47['config']['get']('highlight.options')['find'](_0x3076f4=>_0x3076f4['model']==_0x5350f9),_0x1ade2e=_0x4c9bd5(_0x12ecef['title'])['toLowerCase']();return{'type':'format','content':o(_0x2e7263,'*Set\x20highlight:*\x20%0',_0x1ade2e),'color':{'value':_0x12ecef['color'],'title':_0x12ecef['title']}};}return{'type':'format','content':o(_0x2e7263,'*Remove\x20highlight*',o(_0x2e7263,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2e8ec7{['afterInit'](){const _0x28cbc7=this['editor'];if(!_0x28cbc7['plugins']['has']('HorizontalLineEditing'))return;_0x28cbc7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1fdbe2=_0x28cbc7['plugins']['get']('TrackChangesEditing'),_0x521764=_0x28cbc7['locale'];_0x1fdbe2['descriptionFactory']['registerElementLabel']('horizontalLine',_0x58e013=>o(_0x521764,'ELEMENT_HORIZONTAL_LINE',_0x58e013));}}class ot extends _0x2e8ec7{['afterInit'](){const _0x5083cc=this['editor'];if(!_0x5083cc['plugins']['has']('HtmlEmbed'))return;const _0x53b51d=_0x5083cc['plugins']['get']('TrackChangesEditing'),_0x2d8f41=_0x5083cc['locale'];_0x53b51d['descriptionFactory']['registerElementLabel']('rawHtml',_0x153849=>o(_0x2d8f41,'ELEMENT_HTML_EMBED',_0x153849)),_0x53b51d['enableDefaultAttributesIntegration']('htmlEmbed'),_0x53b51d['descriptionFactory']['registerDescriptionCallback'](_0x4b4077=>{if('attribute'!=_0x4b4077['type'])return;const {data:_0x26b03c}=_0x4b4077;if(_0x26b03c&&'value'==_0x26b03c['key']&&_0x4b4077['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x584236=o(_0x2d8f41,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2d8f41,'*Change\x20%0\x20content*',_0x584236)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12c5b1=this['editor'],_0x3a5c7b=_0x12c5b1['locale'];_0x12c5b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ea64c=>{if('formatBlock'!=_0x4ea64c['type'])return;const {data:_0x392ec9}=_0x4ea64c;if(_0x392ec9&&'htmlEmbed'==_0x392ec9['commandName']){const _0x15d289=o(_0x3a5c7b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3a5c7b,'*Change\x20%0\x20content*',_0x15d289)};}});}}class rt extends _0x2e8ec7{['afterInit'](){const _0x29616a=this['editor'];if(!_0x29616a['plugins']['has']('ImageEditing'))return;const _0x15ded1=_0x29616a['plugins']['get']('TrackChangesEditing'),_0x1df05f=_0x29616a['plugins']['get']('ImageUtils'),_0x3581f8=_0x29616a['locale'];_0x15ded1['enableCommand']('insertImage'),_0x15ded1['descriptionFactory']['registerElementLabel']('imageBlock',_0x4fc934=>o(_0x3581f8,'ELEMENT_IMAGE',_0x4fc934)),_0x15ded1['descriptionFactory']['registerElementLabel']('imageInline',_0x522ab2=>o(_0x3581f8,'ELEMENT_INLINE_IMAGE',_0x522ab2)),_0x15ded1['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3581f8,'ELEMENT_CAPTION')),_0x29616a['plugins']['has']('ImageUploadEditing')&&_0x15ded1['enableCommand']('uploadImage'),_0x29616a['plugins']['has']('ImageBlockEditing')&&_0x29616a['plugins']['has']('ImageInlineEditing')&&(_0x15ded1['enableCommand']('imageTypeInline',(_0x9748ed,_0x54d243)=>{const _0x573492=_0x1df05f['getClosestSelectedImageElement'](_0x29616a['model']['document']['selection']);_0x29616a['model']['change'](()=>{_0x15ded1['markBlockFormat'](_0x573492,{'commandName':'imageTypeInline','commandParams':[_0x54d243]},[],'convertBlockImageToInline');});}),_0x15ded1['enableCommand']('imageTypeBlock',(_0x173d57,_0x607538)=>{_0x29616a['model']['change'](_0x4276a1=>{let _0xb1af39=_0x1df05f['getClosestSelectedImageElement'](_0x29616a['model']['document']['selection']),_0x485396=_0x4276a1['createRangeOn'](_0xb1af39);const _0x2ffa79=_0x436e23['fromPosition'](_0x485396['start'],'toPrevious'),_0x4c4cdf=_0x436e23['fromPosition'](_0x485396['end'],'toNext');_0x15ded1['forceDefaultExecution'](()=>_0x173d57(_0x607538)),_0xb1af39=_0x1df05f['getClosestSelectedImageElement'](_0x29616a['model']['document']['selection']),_0x485396=_0x4276a1['createRangeOn'](_0xb1af39);const _0x1a52d3=_0x4276a1['createRange'](_0x2ffa79,_0x4c4cdf);_0x2ffa79['detach'](),_0x4c4cdf['detach'](),_0x15ded1['markBlockFormat'](_0xb1af39,{'commandName':'imageTypeInline','commandParams':[_0x607538]},[],'convertInlineImageToBlock'),_0x1a52d3['start']['isBefore'](_0x485396['start'])&&_0x15ded1['markInsertion'](_0x4276a1['createRange'](_0x1a52d3['start'],_0x485396['start']),'convertInlineImageToBlock'),_0x485396['end']['isBefore'](_0x1a52d3['end'])&&_0x15ded1['markInsertion'](_0x4276a1['createRange'](_0x485396['end'],_0x1a52d3['end']),'convertInlineImageToBlock');});}),_0x15ded1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x15ded1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x15ded1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x15ded1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x15ded1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x15ded1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3b32b1])=>{const _0x189add=_0x15ded1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1a958b=_0x3b32b1['start'],_0x1bfec0=_0x3b32b1['end'];const _0x5bfda2=_0x29616a['model']['schema']['getNearestSelectionRange'](_0x1a958b,'backward'),_0x25c243=_0x29616a['model']['schema']['getNearestSelectionRange'](_0x1bfec0,'forward');_0x5bfda2['isCollapsed']&&(_0x1a958b=_0x5bfda2['start']),_0x25c243['isCollapsed']&&(_0x1bfec0=_0x25c243['end']),_0x189add([_0x29616a['model']['createRange'](_0x1a958b,_0x1bfec0)]);}),_0x15ded1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3a494a),_0x15ded1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3a494a)),_0x29616a['plugins']['has']('ImageCaptionEditing')&&(_0x15ded1['enableCommand']('toggleImageCaption',(_0x1b42b2,_0x248bd3)=>{const _0x2995c8=_0x29616a['plugins']['get']('ImageCaptionUtils');let _0x56594d=_0x1df05f['getClosestSelectedImageElement'](_0x29616a['model']['document']['selection']),_0x273329=_0x2995c8['getCaptionFromImageModelElement'](_0x56594d);_0x29616a['model']['change'](()=>{if(_0x273329)return void _0x15ded1['markDeletion'](_0x29616a['model']['createRangeOn'](_0x273329));const _0x14235f=_0x1df05f['isBlockImage'](_0x56594d);_0x1b42b2(_0x248bd3),_0x56594d=_0x1df05f['getClosestSelectedImageElement'](_0x29616a['model']['document']['selection']),_0x273329=_0x2995c8['getCaptionFromImageModelElement'](_0x56594d),_0x15ded1['markInsertion'](_0x29616a['model']['createRangeOn'](_0x273329),_0x14235f?null:'imageCaption');});}),_0x15ded1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3a494a));const _0x4da630=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x9c528(_0x11ff02,_0x201d9b){const _0x1f4ba8=_0x4da630['findIndex'](({type:_0x57b28f,subType:_0x2bb314})=>_0x11ff02['type']==_0x57b28f&&_0x11ff02['subType']==_0x2bb314),_0x48d346=_0x4da630['findIndex'](({type:_0x36a199,subType:_0x40e284})=>_0x201d9b['type']==_0x36a199&&_0x201d9b['subType']==_0x40e284);if(_0x1f4ba8<0x0||_0x48d346<0x0)return!0x1;const _0x11ff4e=_0x11ff02['getFirstRange'](),_0x225044=_0x201d9b['getFirstRange']();if((0x0==_0x1f4ba8||0x1==_0x1f4ba8)&&0x2==_0x48d346&&_0x11ff4e['isIntersecting'](_0x225044))return!0x0;if(0x2==_0x1f4ba8&&0x3==_0x48d346){const _0x5d1de8=_0x15ded1['_findSuggestions'](_0x11ff4e,'insertion')['filter'](({suggestion:_0xb7d8f7,meta:_0x4a4474})=>_0x4a4474['isOwn']&&'convertInlineImageToBlock'==_0xb7d8f7['subType']);if(_0x5d1de8['length']>0x1&&_0x225044['end']['isEqual'](_0x11ff4e['start']))return!0x0;if(0x1==_0x5d1de8['length']&&(_0x11ff4e['start']['isEqual'](_0x225044['end'])||_0x11ff4e['end']['isEqual'](_0x225044['start'])))return!0x0;}if(0x3==_0x1f4ba8&&0x3==_0x48d346&&_0x11ff4e['start']['isBefore'](_0x225044['start'])){const _0x192f10=_0x11ff4e['end']['nodeAfter'],_0x4048bf=_0x225044['start']['nodeBefore'];return _0x1df05f['isBlockImage'](_0x192f10)&&_0x192f10===_0x4048bf;}return!0x1;}function _0x3a494a(_0x50ea86,_0x5e40b5){return _0x9c528(_0x50ea86,_0x5e40b5)?[_0x50ea86,_0x5e40b5]:_0x9c528(_0x5e40b5,_0x50ea86)?[_0x5e40b5,_0x50ea86]:null;}_0x29616a['plugins']['has']('ImageResize')&&(_0x15ded1['enableDefaultAttributesIntegration']('resizeImage'),_0x15ded1['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3581f8,'FORMAT_IMAGE_SIZE'))),_0x29616a['plugins']['has']('ImageTextAlternativeEditing')&&_0x15ded1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x29616a['plugins']['has']('PictureEditing')&&_0x15ded1['descriptionFactory']['registerDescriptionCallback'](_0x39c5ad=>{if('attribute'!=_0x39c5ad['type'])return;const {data:_0x288010}=_0x39c5ad;return _0x288010&&'sources'==_0x288010['key']?{'type':'format','content':''}:void 0x0;}),_0x29616a['plugins']['has']('ImageSizeAttributes')&&_0x15ded1['descriptionFactory']['registerDescriptionCallback'](_0x1f7d91=>{if('attribute'!=_0x1f7d91['type'])return;const {data:_0x3bf4f6}=_0x1f7d91;return!_0x3bf4f6||'width'!=_0x3bf4f6['key']&&'height'!=_0x3bf4f6['key']?void 0x0:{'type':'format','content':''};}),_0x15ded1['descriptionFactory']['registerDescriptionCallback'](_0x116f55=>{if(!!_0x4da630['find'](({type:_0x33f2fd,subType:_0xa979ed})=>_0x116f55['type']==_0x33f2fd&&_0x116f55['subType']==_0xa979ed))return _0x116f55['previous']?{}:void 0x0;}),_0x15ded1['descriptionFactory']['registerDescriptionCallback'](_0x152ed8=>{if('insertion'==_0x152ed8['type']||'deletion'==_0x152ed8['type']){const _0x3b7e54=_0x152ed8['getContainedElement']();if(_0x3b7e54&&_0x3b7e54['is']('element','caption'))return{'type':'insertion'==_0x152ed8['type']?'addObject':'removeObject','element':_0x3b7e54,'quantity':0x1};}}),_0x15ded1['descriptionFactory']['registerDescriptionCallback'](_0x3fbd9b=>'formatBlock'==_0x3fbd9b['type']&&'convertInlineImageToBlock'==_0x3fbd9b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3fbd9b['type']&&'convertBlockImageToInline'==_0x3fbd9b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x15ded1['descriptionFactory']['registerDescriptionCallback'](_0xece050=>{if('attribute'!=_0xece050['type'])return;const {data:_0x321ba7}=_0xece050;if(!_0x321ba7||'alt'!=_0x321ba7['key'])return;const _0x47aa2e=_0x321ba7['newValue'];return _0x47aa2e?{'type':'format','content':o(_0x3581f8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x47aa2e+'\x22')}:{'type':'format','content':o(_0x3581f8,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b0a25=this['editor'],_0x1f7c55=_0x1b0a25['locale'];_0x1b0a25['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x608710=>{if('formatBlock'!=_0x608710['type']&&'formatInline'!=_0x608710['type'])return;const {data:_0x18587d}=_0x608710;if(_0x18587d){if('imageTextAlternative'==_0x18587d['commandName']){const _0x2ebe6a=_0x18587d['commandParams'][0x0]['newValue'];return _0x2ebe6a?{'type':'format','content':o(_0x1f7c55,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2ebe6a+'\x22')}:{'type':'format','content':o(_0x1f7c55,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x18587d['commandName']){const _0x1f4543=_0x18587d['commandParams'][0x0]['width'];return _0x1f4543?{'type':'format','content':o(_0x1f7c55,'*Set\x20image\x20width:*\x20%0',_0x1f4543)}:{'type':'format','content':o(_0x1f7c55,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2e8ec7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x267f1d=this['editor']['locale'],_0x22c136=this['editor']['plugins']['get']('TrackChangesEditing');_0x22c136['enableDefaultAttributesIntegration']('replaceImageSource'),_0x22c136['descriptionFactory']['registerDescriptionCallback'](_0x43ae87=>{if('attribute'!=_0x43ae87['type'])return;const {data:_0x1efea9}=_0x43ae87;return _0x1efea9&&'src'==_0x1efea9['key']?_0x1efea9['newValue']&&_0x1efea9['oldValue']?{'type':'format','content':o(_0x267f1d,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xb1f7c5=this['editor']['plugins']['get']('TrackChangesEditing');_0xb1f7c5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xb1f7c5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb1f7c5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xb1f7c5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a2933=this['editor'],_0x36e27a=_0x2a2933['locale'];_0x2a2933['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x461181=>{if('formatBlock'!=_0x461181['type']&&'formatInline'!=_0x461181['type'])return;const {data:_0x143b7c}=_0x461181;if(!_0x143b7c||'replaceImageSource'!=_0x143b7c['commandName'])return;return{'type':'format','content':o(_0x36e27a,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2e8ec7{['afterInit'](){const _0x4d5258=this['editor'];if(!_0x4d5258['plugins']['has']('ImageStyleEditing'))return;const _0x4fa751=_0x4d5258['plugins']['get']('TrackChangesEditing'),_0x3a0d50=_0x4d5258['plugins']['get']('ImageUtils'),_0x4482e6={};_0x4fa751['enableCommand']('imageStyle',(_0x403d1b,_0x1fe845)=>{const _0x533185=_0x4d5258['plugins']['get']('Users')['me'],_0x1dd6a4=_0x4d5258['commands']['get']('imageStyle');let _0x55cd7f=_0x3a0d50['getClosestSelectedImageElement'](_0x4d5258['model']['document']['selection']),_0x5c25da=_0x4d5258['model']['createRangeOn'](_0x55cd7f),_0x31e4eb=_0x1dd6a4['value'];if(_0x31e4eb==_0x1fe845['value'])return;const _0x53a4bb={'commandName':'imageStyle','commandParams':[_0x1fe845],'formatGroupId':_0x367f2e()};_0x4d5258['model']['change'](()=>{if(_0x4fa751['getSuggestions']()['filter'](_0x28ac28=>_0x28ac28['isInContent']&&_0x533185==_0x28ac28['author']&&('formatBlock'==_0x28ac28['type']||'formatInline'==_0x28ac28['type'])&&('imageStylePreApply'==_0x28ac28['subType']||'imageStylePostApply'==_0x28ac28['subType'])&&_0x28ac28['getFirstRange']()['isEqual'](_0x5c25da))['forEach'](_0x5c68c8=>_0x4fa751['discardSuggestion'](_0x5c68c8['head'])),_0x55cd7f=_0x3a0d50['getClosestSelectedImageElement'](_0x4d5258['model']['document']['selection']),_0x5c25da=_0x4d5258['model']['createRangeOn'](_0x55cd7f),_0x1dd6a4['refresh'](),_0x4d5258['commands']['get']('imageTypeInline')['refresh'](),_0x4d5258['commands']['get']('imageTypeBlock')['refresh'](),_0x31e4eb=_0x1dd6a4['value'],_0x31e4eb!=_0x1fe845['value'])return _0x3a0d50['isInlineImage'](_0x55cd7f)&&_0x1dd6a4['shouldConvertImageType'](_0x1fe845['value'],_0x55cd7f)?(_0x403d1b({..._0x1fe845,'setImageSizes':!0x1}),_0x55cd7f=_0x3a0d50['getClosestSelectedImageElement'](_0x4d5258['model']['document']['selection']),void _0x4fa751['markBlockFormat'](_0x55cd7f,{..._0x53a4bb,'commandReversedParams':[{'value':_0x31e4eb||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3a0d50['isBlockImage'](_0x55cd7f)?_0x4fa751['markBlockFormat'](_0x55cd7f,_0x53a4bb,[],'imageStylePostApply'):_0x4fa751['markInlineFormat'](_0x5c25da,_0x53a4bb,'imageStylePostApply'));});});for(const _0x59a35d of _0x4d5258['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4482e6[_0x59a35d['name']]=_0x59a35d['title']['toLowerCase']();_0x4fa751['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4fa751['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4fa751['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4fa751['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x272bf2])=>{_0x3a0d50['setImageNaturalSizeAttributes'](_0x272bf2['getContainedElement']());}),_0x4fa751['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5e2cb6,_0x16d52a)=>{_0x4fa751['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5e2cb6,{'commandName':_0x16d52a['commandName'],'commandParams':_0x16d52a['commandReversedParams']});}),_0x4fa751['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x109a6a,_0x32bced){if(_0x5d0f49(_0x109a6a,_0x32bced))return[_0x109a6a,_0x32bced];if(_0x5d0f49(_0x32bced,_0x109a6a))return[_0x32bced,_0x109a6a];return null;});const _0xd0ede6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5d0f49(_0x2a496c,_0x3b101a){const _0x1688c8=_0xd0ede6['findIndex'](({type:_0x63e632,subType:_0x311e7e})=>_0x2a496c['type']==_0x63e632&&_0x2a496c['subType']==_0x311e7e),_0x2d46a5=_0xd0ede6['findIndex'](({type:_0x1f2603,subType:_0x307734})=>_0x3b101a['type']==_0x1f2603&&_0x3b101a['subType']==_0x307734);if(_0x1688c8<0x0||_0x2d46a5<0x0)return!0x1;const _0x56ac0c=_0x2a496c['getFirstRange'](),_0x16f75a=_0x3b101a['getFirstRange']();if((0x0==_0x1688c8||0x1==_0x1688c8)&&0x2==_0x2d46a5&&_0x56ac0c['isIntersecting'](_0x16f75a))return!0x0;if(0x2==_0x1688c8&&0x3==_0x2d46a5){const _0x13ef7a=_0x4fa751['_findSuggestions'](_0x56ac0c,'insertion')['filter'](({suggestion:_0x2a9c55,meta:_0x155362})=>_0x155362['isOwn']&&'convertInlineImageToBlock'==_0x2a9c55['subType']);if(_0x13ef7a['length']>0x1&&_0x16f75a['end']['isEqual'](_0x56ac0c['start']))return!0x0;if(0x1==_0x13ef7a['length']&&(_0x56ac0c['start']['isEqual'](_0x16f75a['end'])||_0x56ac0c['end']['isEqual'](_0x16f75a['start'])))return!0x0;}if(0x3==_0x1688c8&&0x3==_0x2d46a5&&_0x56ac0c['start']['isBefore'](_0x16f75a['start'])){const _0x5db90f=_0x56ac0c['end']['nodeAfter'],_0x596ae8=_0x16f75a['start']['nodeBefore'];return _0x3a0d50['isBlockImage'](_0x5db90f)&&_0x5db90f===_0x596ae8;}return!0x1;}_0x4d5258['model']['document']['registerPostFixer'](()=>{let _0x3bf4c9=!0x1;const _0x42470a=Array['from'](_0x4d5258['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25482e,data:_0x11efca}of _0x42470a){const {group:_0x403ae0,type:_0x3c248d,subType:_0x76a95b,id:_0x5d8f4e}=_0x4fa751['_splitMarkerName'](_0x25482e);if('suggestion'==_0x403ae0&&_0x4fa751['hasSuggestion'](_0x5d8f4e)){if('formatBlock'==_0x3c248d&&('imageStylePreApply'==_0x76a95b||'imageStylePostApply'==_0x76a95b)){const _0x56fc90=_0x4fa751['getSuggestion'](_0x5d8f4e);if(_0x11efca['newRange']){const _0x1feab2=_0x56fc90['getFirstRange']()['getContainedElement']();if(_0x3a0d50['isBlockImage'](_0x1feab2))continue;_0x4fa751['discardSuggestion'](_0x56fc90),_0x3bf4c9=!0x0;}}if('insertion'==_0x3c248d&&'imageCaption'==_0x76a95b&&!_0x11efca['newRange']){const _0x2fd15e=_0x4fa751['getSuggestion'](_0x5d8f4e);_0x2fd15e['next']&&_0x2fd15e['next']['isInContent']&&(_0x4fa751['discardSuggestion'](_0x2fd15e['next']),_0x3bf4c9=!0x0);}}}return _0x3bf4c9;}),this['_registerLegacyDescription'](_0x4482e6);}['_registerLegacyDescription'](_0x478d8c){const _0x5ebde6=this['editor'],_0x3446da=_0x5ebde6['locale'];_0x5ebde6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d6f5f=>{if('formatBlock'!=_0x1d6f5f['type']&&'formatInline'!=_0x1d6f5f['type'])return;const {data:_0x4af6e6}=_0x1d6f5f;if(!_0x4af6e6||'imageStyle'!=_0x4af6e6['commandName'])return;const _0x5205c3=_0x4af6e6['commandParams'][0x0]['value'];return _0x23c882('side'===_0x5205c3?o(_0x3446da,'FORMAT_SIDE_IMAGE'):_0x478d8c[_0x5205c3]||_0x5205c3);function _0x23c882(_0x1668cc){return{'type':'format','content':o(_0x3446da,'*Format:*\x20%0',_0x1668cc)};}});}}class ut extends _0x2e8ec7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x49505c){super(_0x49505c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4a1823=this['editor'],_0x980f53=_0x4a1823['commands']['get']('importWord'),_0x4f5d77=_0x4a1823['commands']['get']('trackChanges');_0x980f53&&(_0x980f53['on']('execute',(_0x4b051d,[,_0x47a8fc])=>{this['_trackChangesValueDuringImport']=_0x4f5d77['value'],_0x47a8fc['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x980f53,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x980f53,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4f5d77['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4a1823['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3a72fd,_0x3e8433){const {suggestions:_0x1be469}=_0x3e8433,_0x2258a5=this['editor']['commands']['get']('trackChanges'),_0x1dfd1a=_0x2258a5['value'];this['_trackChangesValueDuringImport']!==_0x1dfd1a&&(_0x2258a5['execute'](),this['_trackChangesExecuted']=!0x0),_0x1be469&&_0x1be469['forEach'](({id:_0x2ddcfc,type:_0x54466e,author:_0x2263ba,created_at:_0xcc08cb})=>{const _0x189ed8={'id':_0x2ddcfc,'type':_0x54466e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2263ba,'createdAt':_0xcc08cb?new Date(_0xcc08cb):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x189ed8);});}}class ft extends _0x2e8ec7{['afterInit'](){const _0x18a827=this['editor'],_0xaa2c55=_0x18a827['plugins']['get']('TrackChangesEditing');if(_0x18a827['plugins']['has']('IndentEditing')&&(_0xaa2c55['enableCommand']('indent'),_0xaa2c55['enableCommand']('outdent')),_0x18a827['plugins']['has']('IndentBlock')){for(const _0x3b4bbc of['indentBlock','outdentBlock'])_0xaa2c55['enableDefaultAttributesIntegration'](_0x3b4bbc);}const _0x904bae=_0x18a827['locale'];_0xaa2c55['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x904bae,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x789920=this['editor'],_0x115c63=_0x789920['locale'],_0x10bb24=_0x789920['plugins']['get']('TrackChangesEditing');_0x10bb24['descriptionFactory']['registerDescriptionCallback'](_0x1e65b5=>{if('formatBlock'!=_0x1e65b5['type'])return;const {data:_0x4c0df6}=_0x1e65b5;if(!_0x4c0df6)return;if('indentBlock'!=_0x4c0df6['commandName']&&'outdentBlock'!=_0x4c0df6['commandName'])return;const _0x465553=_0x1e65b5['getItems']()[0x0],_0x2e1348=_0x10bb24['descriptionFactory']['getItemLabel'](_0x465553);return'indentBlock'==_0x4c0df6['commandName']?{'type':'format','content':o(_0x115c63,'*Indent:*\x20%0',_0x2e1348)}:'outdentBlock'==_0x4c0df6['commandName']?{'type':'format','content':o(_0x115c63,'*Outdent:*\x20%0',_0x2e1348)}:void 0x0;});}}class ht extends _0x2e8ec7{static get['requires'](){return[_0x25940f];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x2e8ec7{['afterInit'](){const _0x4658b0=this['editor'];if(!_0x4658b0['plugins']['has']('LinkEditing'))return;const _0x1b2776=_0x4658b0['plugins']['get']('TrackChangesEditing'),_0x5eca3b=_0x4658b0['commands']['get']('link');_0x1b2776['enableDefaultAttributesIntegration']('link'),_0x1b2776['enableDefaultAttributesIntegration']('unlink');for(const _0x56dbf9 of _0x5eca3b['manualDecorators'])_0x1b2776['descriptionFactory']['registerAttributeLabel'](_0x56dbf9['id'],'link\x20('+_0x56dbf9['label']['toLowerCase']()+')');_0x1b2776['descriptionFactory']['registerDescriptionCallback'](_0x225e3e=>{if('attribute'!=_0x225e3e['type'])return;const {data:_0x293560}=_0x225e3e;if(!_0x293560||'linkHref'!=_0x293560['key'])return;const _0x5752b6=_0x293560['newValue'],_0x3a6058=_0x4658b0['locale'];return{'type':'format','content':null==_0x5752b6?o(_0x3a6058,'*Remove\x20link*'):o(_0x3a6058,'*Set\x20link:*\x20%0','\x22'+_0x5752b6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdcdcd=this['editor'],_0x3ab863=_0xdcdcd['locale'];_0xdcdcd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x530ef7=>{if('formatInline'!=_0x530ef7['type'])return;const {data:_0x16a53a}=_0x530ef7;if(_0x16a53a){if('link'==_0x16a53a['commandName']){const _0x58f4f5=_0x16a53a['commandParams'][0x0];return{'type':'format','content':o(_0x3ab863,'*Set\x20link:*\x20%0','\x22'+_0x58f4f5+'\x22')};}return'unlink'==_0x16a53a['commandName']?{'type':'format','content':o(_0x3ab863,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x2e8ec7{['afterInit'](){const _0x432aaf=this['editor'],_0xbf482f=_0x432aaf['locale'];if(!_0x432aaf['plugins']['has']('LegacyListEditing'))return;const _0x5778a0=_0x432aaf['plugins']['get']('TrackChangesEditing'),_0x39813f=_0x432aaf['plugins']['has']('LegacyTodoListEditing');function _0x3d9b43(_0x6839bc){return()=>{const _0x5a3525=_0x432aaf['model']['document']['selection'],_0x17d007=_0x432aaf['commands']['get'](_0x6839bc);if(_0x17d007['value'])return void _0x432aaf['execute']('paragraph',{});const _0x2b1d34=_0x6839bc['slice'](0x0,-0x4),_0x38a0c7=function(_0x1f79bb,_0x3daa22,_0x3729a4){let _0x5829b0=Array['from'](_0x1f79bb)['filter'](_0x35e361=>function(_0x15867a,_0x3b7810){return _0x3b7810['checkChild'](_0x15867a['parent'],'listItem')&&!_0x3b7810['isObject'](_0x15867a);}(_0x35e361,_0x3729a4));_0x5829b0=_0x5829b0['filter'](_0x59aa5d=>!_0x59aa5d['is']('element','listItem')||_0x59aa5d['getAttribute']('listType')!=_0x3daa22);const _0x28aa4e=new Set();for(const _0x16402c of _0x5829b0)_0x16402c['is']('element','listItem')?_0x28aa4e['add'](Le(_0x16402c)):_0x28aa4e['add'](_0x16402c);return Array['from'](_0x28aa4e);}(_0x5a3525['getSelectedBlocks'](),_0x2b1d34,_0x432aaf['model']['schema']);_0x432aaf['model']['change'](()=>{for(const _0x41daec of _0x38a0c7)_0x5778a0['markBlockFormat'](_0x41daec,{'commandName':_0x6839bc,'commandParams':[{'forceValue':!_0x17d007['value']}],'formatGroupId':'blockName'},Ee(_0x41daec));});};}function _0x15d3f9(_0x1859aa){return()=>{const _0x491f0e=function(_0xe732c2){let _0x2bc189=Array['from'](_0xe732c2);const _0x234d96=_0x2bc189['findIndex'](_0x4dfe03=>'listItem'!=_0x4dfe03['name']);return _0x234d96>-0x1&&(_0x2bc189=_0x2bc189['slice'](0x0,_0x234d96)),_0x2bc189;}(_0x432aaf['model']['document']['selection']['getSelectedBlocks']()),_0x50190f=_0x432aaf['model']['createRange'](_0x432aaf['model']['createPositionAt'](_0x491f0e[0x0],'before'),_0x432aaf['model']['createPositionAt'](_0x491f0e[_0x491f0e['length']-0x1],'end'));_0x432aaf['model']['change'](()=>{_0x5778a0['markBlockFormat'](_0x50190f,{'commandName':_0x1859aa,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4b93b9){const _0x2343a2=new Set();for(const _0x4f259e of _0x4b93b9){let _0x468abc=_0x4f259e['nextSibling'];for(;_0x468abc&&_0x468abc['getAttribute']('listIndent')>_0x4f259e['getAttribute']('listIndent');)_0x2343a2['add'](_0x468abc),_0x468abc=_0x468abc['nextSibling'];}return Array['from'](_0x2343a2);}(_0x491f0e));});};}_0x5778a0['enableCommand']('numberedList',_0x3d9b43('numberedList')),_0x5778a0['enableCommand']('bulletedList',_0x3d9b43('bulletedList')),_0x39813f&&_0x5778a0['enableCommand']('todoList',_0x3d9b43('todoList')),_0x5778a0['enableCommand']('indentList',_0x15d3f9('indentList')),_0x5778a0['enableCommand']('outdentList',_0x15d3f9('outdentList')),_0x39813f&&_0x5778a0['enableCommand']('checkTodoList',()=>{const _0x4a951e=_0x432aaf['commands']['get']('checkTodoList'),_0x5491e1=Array['from'](_0x4a951e['_selectedElements']);_0x5491e1['filter'](_0x402257=>_0x402257['getAttribute']('todoListChecked')!=_0x4a951e['value']),_0x432aaf['model']['change'](()=>{for(const _0xdbca7e of _0x5491e1)_0x5778a0['markBlockFormat'](_0xdbca7e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4a951e['value']}]});});}),_0x5778a0['descriptionFactory']['registerElementLabel']('listItem',_0x3dcb6a=>o(_0xbf482f,'ELEMENT_LIST_ITEM',_0x3dcb6a)),_0x5778a0['descriptionFactory']['registerDescriptionCallback'](_0x41144a=>{if('formatBlock'!=_0x41144a['type']&&'formatInline'!=_0x41144a['type'])return;const {data:_0x599355}=_0x41144a;if(_0x599355){if('numberedList'==_0x599355['commandName']||'bulletedList'==_0x599355['commandName']||'todoList'==_0x599355['commandName'])switch(_0x599355['commandName']['replace']('List','')){case'bulleted':return _0x44b7bc(o(_0xbf482f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x44b7bc(o(_0xbf482f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x44b7bc(o(_0xbf482f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x599355['commandName'])return{'type':'format','content':o(_0xbf482f,'*Indent:*\x20%0',o(_0xbf482f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x599355['commandName'])return{'type':'format','content':o(_0xbf482f,'*Outdent:*\x20%0',o(_0xbf482f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x599355['commandName'])return _0x599355['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xbf482f,'*Check\x20item*')}:{'type':'format','content':o(_0xbf482f,'*Uncheck\x20item*')};}function _0x44b7bc(_0x54924b){return{'type':'format','content':o(_0xbf482f,'*Change\x20to:*\x20%0',_0x54924b)};}});}}function Le(_0x155636){const _0x4be0c2=_0x155636['getAttribute']('listIndent');if(0x0==_0x4be0c2)return _0x155636;let _0xac87fc=_0x155636;for(;_0x155636['previousSibling']&&_0x155636['previousSibling']['is']('element','listItem');){const _0x3aefa0=_0x155636['previousSibling']['getAttribute']('listIndent');if(_0x3aefa0==_0x4be0c2)_0xac87fc=_0x155636['previousSibling'];else{if(_0x3aefa0<_0x4be0c2)break;}_0x155636=_0x155636['previousSibling'];}return _0xac87fc;}function Ee(_0x64f3fa){const _0x2b1171=[];if(_0x64f3fa['is']('element','listItem')&&_0x64f3fa['getAttribute']('listIndent')>0x0){let _0x46880a=_0x64f3fa['nextSibling'];for(;_0x46880a&&'listItem'==_0x46880a['name']&&_0x46880a['getAttribute']('listIndent')==_0x64f3fa['getAttribute']('listIndent');)_0x2b1171['push'](_0x46880a),_0x46880a=_0x46880a['nextSibling'];}return _0x2b1171;}class mt extends _0x2e8ec7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2959fa=this['editor']['config']['get']('list.properties'),_0xf51d65=this['editor']['plugins']['get']('TrackChangesEditing');_0x2959fa['styles']&&_0xf51d65['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2959fa['reversed']&&_0xf51d65['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2959fa['startIndex']&&_0xf51d65['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xf51d65['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3683cb,_0x5b3579={}){const _0xd02ba0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17b0ae=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xd02ba0['markMultiRangeBlockFormat'](_0x17b0ae,{'commandName':'listStyle','commandParams':[{'type':_0x5b3579['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x41fc58,_0x3295a3={}){const _0x3ced54=this['editor']['plugins']['get']('TrackChangesEditing'),_0x252e98=this['_getSuggestionBlocks'](_0x4e1ce2=>_0x4e1ce2['is']('element','listItem')&&'numbered'===_0x4e1ce2['getAttribute']('listType'));if(_0x252e98['length']<0x1)return;const _0x43f199=_0x252e98['map'](_0x2b671e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2b671e,'before'),this['editor']['model']['createPositionAt'](_0x2b671e,0x0)));this['editor']['model']['change'](()=>{_0x3ced54['markMultiRangeBlockFormat'](_0x43f199,{'commandName':'listReversed','commandParams':[{'reversed':_0x3295a3['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x218194,_0x18178e={}){const _0x15d0c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x367890=this['_getSuggestionBlocks'](_0x2c1b1f=>_0x2c1b1f['is']('element','listItem')&&'numbered'===_0x2c1b1f['getAttribute']('listType'));if(_0x367890['length']<0x1)return;const _0x1f32af=_0x367890['map'](_0x161a58=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x161a58,'before'),this['editor']['model']['createPositionAt'](_0x161a58,0x0)));this['editor']['model']['change'](()=>{_0x15d0c8['markMultiRangeBlockFormat'](_0x1f32af,{'commandName':'listStart','commandParams':[{'startIndex':_0x18178e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x11557a){if('formatBlock'!=_0x11557a['type']&&'formatInline'!=_0x11557a['type'])return;const _0x4efb92=this['editor']['locale'],{data:_0x3afda3}=_0x11557a;if(!_0x3afda3)return;let _0x1db8a9,_0x533f63;switch(_0x3afda3['commandName']){case'listStyle':_0x1db8a9='*Change\x20to:*\x20%0',_0x533f63={'type':'format','content':o(_0x4efb92,_0x1db8a9,o(_0x4efb92,this['_getTranslationKeyForListStyle'](_0x3afda3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1db8a9=_0x3afda3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x533f63={'type':'format','content':o(_0x4efb92,_0x1db8a9)};break;case'listStart':_0x1db8a9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x533f63={'type':'format','content':o(_0x4efb92,_0x1db8a9,_0x3afda3['commandParams'][0x0]['startIndex'])};}return _0x533f63;}['_getSuggestionBlocksForListStyle'](){const _0x4b3a23=this['editor']['plugins']['get']('LegacyListUtils');let _0x4fad2b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4fad2b[0x0]?.['is']('element','listItem')&&_0x4fad2b['unshift'](..._0x4b3a23['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4fad2b[_0x4fad2b['length']-0x1]?.['is']('element','listItem')&&_0x4fad2b['push'](..._0x4b3a23['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4fad2b=[...new Set(_0x4fad2b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4fad2b=_0x4fad2b['filter'](_0x5eb91e=>_0x5eb91e['is']('element','listItem'))),_0x4fad2b;}['_getSuggestionBlocks'](_0x6bb2cd){const _0x288eb1=this['editor']['plugins']['get']('LegacyListUtils');let _0x1ac0c7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x6bb2cd)['map'](_0x2a7fb6=>{const _0x545c7a=this['editor']['model']['createPositionAt'](_0x2a7fb6,0x0);return[..._0x288eb1['getSiblingNodes'](_0x545c7a,'backward'),..._0x288eb1['getSiblingNodes'](_0x545c7a,'forward')];})['flat']();return _0x1ac0c7=[...new Set(_0x1ac0c7)],_0x1ac0c7;}['_getTranslationKeyForListStyle'](_0x10519e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x10519e)||'default')['toUpperCase']()+'_LIST_'+_0x10519e['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2e8ec7{['afterInit'](){const _0x5ddba9=this['editor'];if(!_0x5ddba9['plugins']['has']('MediaEmbedEditing'))return;const _0x1d02ea=_0x5ddba9['plugins']['get']('TrackChangesEditing'),_0x359ea9=_0x5ddba9['locale'];_0x1d02ea['enableCommand']('mediaEmbed'),_0x1d02ea['descriptionFactory']['registerElementLabel']('media',_0x181c16=>o(_0x359ea9,'ELEMENT_MEDIA',_0x181c16));}}class pt extends _0x2e8ec7{['afterInit'](){const _0x23ca51=this['editor'];_0x23ca51['plugins']['has']('MentionEditing')&&_0x23ca51['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x2e8ec7{['afterInit'](){const _0xe27462=this['editor'];if(!_0xe27462['plugins']['has']('MergeFieldsEditing'))return;const _0x304d39=_0xe27462['plugins']['get']('TrackChangesEditing'),_0x718c4d=_0xe27462['locale'];_0x304d39['enableCommand']('insertMergeField'),_0x304d39['enableCommand']('insertMergeFieldBlock'),_0x304d39['enableCommand']('insertMergeFieldImage'),_0x304d39['descriptionFactory']['registerElementLabel']('mergeField',_0x4aa880=>o(_0x718c4d,'ELEMENT_MERGE_FIELD',_0x4aa880)),_0x304d39['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x14e8fd=>o(_0x718c4d,'ELEMENT_MERGE_FIELD',_0x14e8fd)),_0x304d39['descriptionFactory']['registerDescriptionCallback'](_0x7964b1=>{if('insertion'!=_0x7964b1['type']&&'deletion'!=_0x7964b1['type'])return;const _0x22dafd=_0x7964b1['getContainedElement']();if(null==_0x22dafd)return;const _0x5006c9=_0xe27462['plugins']['get']('MergeFieldsEditing');let _0x41c360;switch(_0x5006c9['getMergeFieldType'](_0x22dafd)){case null:return;case'image':{const _0x122025=_0x5006c9['unwrapAffixes'](_0x22dafd['getAttribute']('src'));_0x41c360=_0x5006c9['getLabel'](_0x122025)||_0x122025;break;}default:{const _0x180743=_0x22dafd['getAttribute']('id');_0x41c360=_0x5006c9['getLabel'](_0x180743)||_0x180743;break;}}return'insertion'==_0x7964b1['type']?{'type':'insertion','content':o(_0x718c4d,'*Insert:*\x20%0','\x22'+_0x41c360+'\x22\x20'+o(_0x718c4d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x718c4d,'*Remove:*\x20%0','\x22'+_0x41c360+'\x22\x20'+o(_0x718c4d,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x2e8ec7{['afterInit'](){const _0x3d7ac1=this['editor'],_0x95153=_0x3d7ac1['plugins']['get']('TrackChangesEditing');_0x3d7ac1['plugins']['has']('MultiLevelList')&&(_0x95153['enableDefaultAttributesIntegration']('multiLevelList'),_0x95153['descriptionFactory']['registerDescriptionCallback'](_0x4964d0=>this['handleDescriptions'](_0x4964d0)));}['handleDescriptions'](_0x2f3d5e){const _0x576e44=this['editor']['locale'],{data:_0x11b7a8}=_0x2f3d5e,_0x48dc5a={'type':'format','content':''};if(_0x11b7a8&&'listMarkerStyle'==_0x11b7a8['key']){if(!_0x11b7a8['oldValue'])return{'type':'format','content':o(_0x576e44,'*Set\x20format:*\x20%0',o(_0x576e44,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x11b7a8['newValue']+')'};if(!_0x11b7a8['newValue']){let _0x53739f=_0x2f3d5e['head'];for(;_0x53739f;){if(_0x53739f['data']&&'listType'==_0x53739f['data']['key']&&_0x53739f['data']['newValue'])return _0x48dc5a;_0x53739f=_0x53739f['next'];}return{'type':'format','content':o(_0x576e44,'*Remove\x20format:*\x20%0',o(_0x576e44,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x11b7a8['oldValue']+')'};}}}}class bt extends _0x2e8ec7{['afterInit'](){const _0x2fc573=this['editor'];if(!_0x2fc573['plugins']['has']('PageBreakEditing'))return;_0x2fc573['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1c87ff=_0x2fc573['plugins']['get']('TrackChangesEditing'),_0x35c6e5=_0x2fc573['locale'];_0x1c87ff['descriptionFactory']['registerElementLabel']('pageBreak',_0x371fbc=>o(_0x35c6e5,'ELEMENT_PAGE_BREAK',_0x371fbc));}}class yt extends _0x2e8ec7{['afterInit'](){const _0x11c968=this['editor'];if(!_0x11c968['plugins']['has']('Paragraph'))return;const _0x2b1eb4=_0x11c968['locale'],_0x2d7f03=_0x11c968['plugins']['get']('TrackChangesEditing');_0x2d7f03['descriptionFactory']['registerElementLabel']('paragraph',_0xe71a2e=>o(_0x2b1eb4,'ELEMENT_PARAGRAPH',_0xe71a2e)),_0x2d7f03['enableDefaultAttributesIntegration']('paragraph'),_0x2d7f03['enableCommand']('insertParagraph');const _0x217e21=_0x2d7f03['descriptionFactory'];_0x217e21['registerDescriptionCallback'](_0x5ca6c0=>{if('insertion'!==_0x5ca6c0['type'])return;const {start:_0x514be8,end:_0xe92933}=_0x5ca6c0['getFirstRange']();if(!_0x514be8['isTouching'](_0xe92933)||!_0x514be8['nodeAfter'])return;const _0x3fde56=_0x11c968['model']['schema'],_0x1a5ed1=_0x514be8['nodeAfter'];return _0x3fde56['isBlock'](_0x1a5ed1)&&!_0x3fde56['isLimit'](_0x1a5ed1)&&_0x3fde56['checkChild'](_0x1a5ed1,'$text')?{'type':'insertion','content':o(_0x2b1eb4,'*Insert:*\x20%0',_0x217e21['getItemLabel'](_0x1a5ed1,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3de124=this['editor'],_0x23a695=_0x3de124['locale'];_0x3de124['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31731b=>{if('formatBlock'!=_0x31731b['type'])return;const {data:_0x3c78aa}=_0x31731b;return _0x3c78aa&&'paragraph'==_0x3c78aa['commandName']?{'type':'format','content':o(_0x23a695,'*Change\x20to:*\x20%0',o(_0x23a695,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x2e8ec7{['afterInit'](){const _0x3249d3=this['editor'];_0x3249d3['commands']['get']('replaceSource')&&_0x3249d3['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x2e8ec7{['afterInit'](){const _0x54d8d4=this['editor'];if(!_0x54d8d4['plugins']['has']('RemoveFormatEditing'))return;_0x54d8d4['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x222ab1=this['editor'];_0x222ab1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b6695=>{if('formatBlock'!=_0x1b6695['type']&&'formatInline'!=_0x1b6695['type'])return;const {data:_0x579cb8}=_0x1b6695;return _0x579cb8&&'removeFormat'==_0x579cb8['commandName']?{'type':'format','content':o(_0x222ab1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x2e8ec7{['afterInit'](){const _0x5da75d=this['editor'];if(!_0x5da75d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x480668=_0x5da75d['plugins']['get']('TrackChangesEditing');_0x480668['enableCommand']('goToPreviousRestrictedEditingException'),_0x480668['enableCommand']('goToNextRestrictedEditingException');const _0xe0657=_0x5da75d['plugins']['get']('RestrictedEditingModeEditing');_0xe0657['enableCommand']('trackChanges'),_0xe0657['enableCommand']('acceptSuggestion'),_0xe0657['enableCommand']('discardSuggestion'),_0xe0657['enableCommand']('acceptAllSuggestions'),_0xe0657['enableCommand']('discardAllSuggestions'),_0xe0657['enableCommand']('acceptSelectedSuggestions'),_0xe0657['enableCommand']('discardSelectedSuggestions');}}class At extends _0x2e8ec7{['afterInit'](){const _0x12e945=this['editor'];if(!_0x12e945['plugins']['has']('ShiftEnter'))return;const _0x11bc04=_0x12e945['plugins']['get']('TrackChangesEditing');_0x11bc04['enableCommand']('shiftEnter'),_0x11bc04['descriptionFactory']['registerElementLabel']('softBreak',_0x19a213=>o(_0x12e945['locale'],'ELEMENT_LINE_BREAK',_0x19a213));}}function an(_0x1e7d15,_0x43bbb2,_0xd365c8){const _0x16cc8b=[];for(const _0x42f839 of _0x43bbb2['getItems']())_0x42f839['hasAttribute'](_0x1e7d15)&&_0x16cc8b['push'](_0xd365c8['createRangeOn'](_0x42f839));return _0x16cc8b;}class _t extends _0x2e8ec7{['afterInit'](){const _0xd77009=this['editor'],_0x58f852=_0xd77009['plugins']['get']('TrackChangesEditing');_0xd77009['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x58f852['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x12151c=this['editor'],_0x2fbb03=_0x12151c['model'],_0x4a088e=_0x12151c['locale'],_0x195ef7=_0x12151c['plugins']['get']('TrackChangesEditing'),_0x206811='restrictedEditingException',_0x17d440=_0x12151c['commands']['get'](_0x206811);_0x195ef7['enableCommand'](_0x206811,(_0x347538,_0x27acf5={})=>{const _0x35db89=_0x2fbb03['document']['selection'];if(_0x35db89['isCollapsed'])return void _0x347538(_0x27acf5);const _0xb1f425=void 0x0!==_0x27acf5['forceValue']?_0x27acf5['forceValue']:!_0x17d440['value'];_0x2fbb03['change'](()=>{const _0xc76a83=Array['from'](_0x35db89['getRanges']());for(const _0x3e76e5 of _0xc76a83){const _0x1878b1=_0xb1f425?[_0x3e76e5]:an(_0x206811,_0x3e76e5,_0x2fbb03);for(const _0x42cad6 of _0x1878b1)_0x195ef7['markInlineFormat'](_0x42cad6,{'commandName':_0x206811,'commandParams':[{'forceValue':_0xb1f425}]});}});}),_0x195ef7['descriptionFactory']['registerDescriptionCallback'](_0x422af0=>{if('formatBlock'!=_0x422af0['type']&&'formatInline'!=_0x422af0['type'])return;const {data:_0x2caf60}=_0x422af0;return _0x2caf60&&_0x2caf60['commandName']==_0x206811?_0x2caf60['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4a088e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4a088e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x32a0e8=this['editor'],_0x53578e=_0x32a0e8['locale'],_0x4e01ff=_0x32a0e8['plugins']['get']('TrackChangesEditing'),_0x5ed0fe='restrictedEditingExceptionBlock',_0x4e6b97=this['editor']['commands']['get'](_0x5ed0fe);_0x4e01ff['enableCommand'](_0x5ed0fe,(_0x13b1ff,_0x180918={})=>{const _0xdd5a28=this['editor']['model']['document']['selection'],_0x4d1aef=_0x180918&&void 0x0!==_0x180918['forceValue']?_0x180918['forceValue']:!_0x4e6b97['value'];let _0x5e23be=[];if(_0x4d1aef){const _0x330475=Array['from'](_0xdd5a28['getSelectedBlocks']())['filter'](_0x25e7da=>function(_0x5cebc6){return!!_0x5cebc6['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x25e7da)||function(_0x584fb4,_0x245389){const _0x10d1f9=_0x245389['createContext'](_0x584fb4['parent']);if(!_0x245389['checkChild'](_0x10d1f9,'restrictedEditingException'))return!0x1;if(!_0x245389['checkChild'](_0x10d1f9['push']('restrictedEditingException'),_0x584fb4))return!0x1;return!0x0;}(_0x25e7da,this['editor']['model']['schema']));_0x5e23be=to(_0x330475,_0x32a0e8['model']);}else{const _0x4aa262=Array['from'](_0xdd5a28['getSelectedBlocks']())['map'](_0x390b81=>function(_0x49e6c3){let _0x546e90=_0x49e6c3;for(;_0x546e90['parent'];){if('restrictedEditingException'==_0x546e90['parent']['name'])return _0x546e90;_0x546e90=_0x546e90['parent'];}return null;}(_0x390b81))['filter'](_0xdceddf=>!!_0xdceddf);_0x5e23be=to(_0x4aa262,_0x32a0e8['model']);}_0x32a0e8['model']['change'](()=>{for(const _0x38aa51 of _0x5e23be)_0x4e01ff['markBlockFormat'](_0x38aa51,{'commandName':_0x5ed0fe,'commandParams':[{'forceValue':_0x4d1aef}]});});}),_0x4e01ff['descriptionFactory']['registerDescriptionCallback'](_0x1e6531=>{const {data:_0x58c543}=_0x1e6531;if(_0x58c543&&_0x58c543['commandName']==_0x5ed0fe)return _0x58c543['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x53578e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x53578e,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x2e8ec7{['afterInit'](){const _0x47bfa1=this['editor'];if(!_0x47bfa1['plugins']['has']('Style')||!_0x47bfa1['plugins']['has']('DataSchema'))return;const _0x485dcf=_0x47bfa1['plugins']['get']('TrackChangesEditing'),_0x4175da=_0x47bfa1['locale'],_0x1944a4=_0x47bfa1['config']['get']('style')||{},_0x4a4689=_0x47bfa1['plugins']['get']('GeneralHtmlSupport'),_0xecd27=_0x47bfa1['plugins']['get']('StyleUtils')['normalizeConfig'](_0x47bfa1['plugins']['get']('DataSchema'),_0x1944a4['definitions']);_0x485dcf['enableDefaultAttributesIntegration']('style');const _0xbb3ba2=new Set();for(const _0x56d209 of _0xecd27['block']){const _0x4cf139=_0x4a4689['getGhsAttributeNameForElement'](_0x56d209['element']);_0xbb3ba2['add'](_0x4cf139);}const _0xa94b3b=new Set();for(const _0x3543b3 of _0xecd27['inline']){const _0x54e413=_0x4a4689['getGhsAttributeNameForElement'](_0x3543b3['element']);_0xa94b3b['add'](_0x54e413);for(const _0x283f70 of _0x3543b3['ghsAttributes'])_0xa94b3b['add'](_0x283f70);}for(const _0x2c21d5 of _0xbb3ba2)_0x485dcf['descriptionFactory']['registerAttributeLabel'](_0x2c21d5,o(_0x4175da,'FORMAT_STYLE'));for(const _0x58c607 of _0xa94b3b)_0x485dcf['descriptionFactory']['registerAttributeLabel'](_0x58c607,o(_0x4175da,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56a051=this['editor'],_0x466f15=_0x56a051['locale'];_0x56a051['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bfd75=>{if('formatBlock'!=_0x3bfd75['type']&&'formatInline'!=_0x3bfd75['type'])return;const {data:_0x472ea7}=_0x3bfd75;return _0x472ea7&&'style'===_0x472ea7['commandName']?_0x472ea7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x466f15,'*Set\x20format:*\x20%0',_0x472ea7['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x466f15,'*Remove\x20format:*\x20%0',_0x472ea7['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x2e8ec7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x34bc55){super(_0x34bc55),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x417b50=this['editor'],_0x2e7a6b=_0x417b50['model']['document']['selection'];if(!_0x417b50['plugins']['has']('TableEditing'))return;const _0x45ff4b=_0x417b50['locale'],_0x2c825e=_0x417b50['plugins']['get']('TrackChangesEditing'),_0x46bae2=_0x417b50['plugins']['get']('TableUtils');_0x2c825e['descriptionFactory']['registerElementLabel']('table',_0x2cd459=>o(_0x45ff4b,'ELEMENT_TABLE',_0x2cd459)),this['_setupColumnsRowsFixing'](),_0x2c825e['enableCommand']('insertTable'),_0x2c825e['enableCommand']('selectTableRow'),_0x2c825e['enableCommand']('selectTableColumn');for(const _0x2e1012 of['insertTableRowAbove','insertTableRowBelow']){const _0x55b187=_0x417b50['commands']['get'](_0x2e1012);_0x2c825e['enableCommand'](_0x2e1012,_0x533fad=>{_0x417b50['model']['change'](_0x1cfb5c=>{_0x533fad();const _0x25f6ef='above'===_0x55b187['order'],_0x2f500d=_0x46bae2['getSelectionAffectedTableCells'](_0x2e7a6b),_0x15ca15=_0x46bae2['getRowIndexes'](_0x2f500d),_0x343d49=_0x25f6ef?_0x15ca15['first']-0x1:_0x15ca15['last']+0x1,_0x4df0fc=_0x2f500d[0x0]['findAncestor']('table'),_0xc90e50=_0x46bae2['createTableWalker'](_0x4df0fc,{'startRow':_0x343d49,'endRow':_0x343d49}),_0x212cec=Array['from'](_0xc90e50)['map'](_0x33b234=>_0x1cfb5c['createRangeOn'](_0x33b234['cell']));_0x2c825e['markMultiRangeInsertion'](_0x212cec,'tableRow');});});}for(const _0x56153a of['insertTableColumnLeft','insertTableColumnRight']){const _0x3a2320=_0x417b50['commands']['get'](_0x56153a);_0x2c825e['enableCommand'](_0x56153a,_0x4cd6cb=>{_0x417b50['model']['change'](_0x6167c9=>{_0x4cd6cb();const _0x3147cc='left'===_0x3a2320['order'],_0x2f728f=_0x46bae2['getSelectionAffectedTableCells'](_0x2e7a6b),_0x33aef7=_0x46bae2['getColumnIndexes'](_0x2f728f),_0x597eec=_0x3147cc?_0x33aef7['first']-0x1:_0x33aef7['last']+0x1,_0x5dd64b=_0x2f728f[0x0]['findAncestor']('table'),_0x17fa74=_0x46bae2['createTableWalker'](_0x5dd64b,{'startRow':0x0,'column':_0x597eec,'includeAllSlots':!0x1}),_0xc9fbd3=Array['from'](_0x17fa74)['map'](_0x77430c=>_0x6167c9['createRangeOn'](_0x77430c['cell']));_0x2c825e['markMultiRangeInsertion'](_0xc9fbd3,'tableColumn');});});}for(const _0x23aa42 of['removeTableRow','removeTableColumn']){const _0x56dca3=_0x23aa42['substr'](0xb),_0x51ee53=_0x56dca3['toLowerCase'](),_0x35c526=_0x51ee53['substr'](0x0,0x3)+'span',_0x43f7ca='table'+_0x56dca3,_0x54cea0='min'+_0x56dca3,_0x29606b='max'+_0x56dca3;_0x2c825e['enableCommand'](_0x23aa42,()=>{_0x417b50['model']['change'](_0x5c2a57=>{const _0x38fc0f=_0x46bae2['getSelectionAffectedTableCells'](_0x2e7a6b),_0x1e2013=_0x38fc0f[0x0]['findAncestor']('table');let _0x19f196;if('removeTableRow'==_0x23aa42){const _0x927d35=_0x46bae2['getRowIndexes'](_0x38fc0f);_0x19f196={'startRow':_0x927d35['first'],'endRow':_0x927d35['last'],'includeAllSlots':!0x0};}else{const _0x4d6a84=_0x46bae2['getColumnIndexes'](_0x38fc0f);_0x19f196={'startColumn':_0x4d6a84['first'],'endColumn':_0x4d6a84['last'],'includeAllSlots':!0x0};}const _0x35e36d=_0x46bae2['createTableWalker'](_0x1e2013,_0x19f196),_0x56315d=Array['from'](_0x35e36d)['map'](({cell:_0x3d1635})=>_0x3d1635),_0xf58519=_e(_0x56315d['filter'](_0x273515=>_0x273515['hasAttribute'](_0x35c526))),_0x1081e7=_e(_0x56315d['filter'](_0x349827=>!_0x349827['hasAttribute'](_0x35c526)))['map'](_0x154d03=>_0x5c2a57['createRangeOn'](_0x154d03)),_0x1cc1a1=_0x2c825e['markMultiRangeDeletion'](_0x1081e7,_0x43f7ca);if(_0x1cc1a1&&('tableRow'==_0x1cc1a1['subType']||'tableColumn'==_0x1cc1a1['subType'])){const _0x36d679=this['_getSuggestionCoords'](_0x1cc1a1);for(const _0x52b5b0 of _0xf58519){const _0x37fc4b=_0x5c2a57['createRangeOn'](_0x52b5b0),_0x160eaf=_0x46bae2['getCellLocation'](_0x52b5b0),_0x9b2f29=_0x52b5b0['getAttribute'](_0x35c526)-0x1,_0x47a5e4=_0x36d679[_0x54cea0],_0x40709d=_0x36d679[_0x29606b];_0x47a5e4<=_0x160eaf[_0x51ee53]&&_0x160eaf[_0x51ee53]+_0x9b2f29<=_0x40709d&&_0x1cc1a1['addRange'](_0x37fc4b);}}});});}function _0x1c7b0d(_0x4778ce){const _0x593381=Array['from'](_0x2e7a6b['getRanges']())['map'](_0x1c3e13=>_0x95b134['fromRange'](_0x1c3e13));_0x417b50['model']['change'](_0x50224b=>{const _0x5ba18c=_0x50224b['batch'];_0x4778ce=_0x4778ce['filter'](_0x226369=>'$graveyard'!=_0x226369['root']['rootName']),_0x50224b['setSelection'](_0x4778ce),_0x417b50['commands']['get']('removeTableRow')['refresh'](),_0x417b50['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x417b50['model']['enqueueChange'](()=>{_0x417b50['model']['enqueueChange'](_0x5ba18c,_0x1d805a=>{const _0x1e6dfb=_0x593381['filter'](_0x115c12=>'$graveyard'!=_0x115c12['root']['rootName']);_0x1e6dfb['length']>0x0&&_0x1d805a['setSelection'](_0x1e6dfb);for(const _0x1d7734 of _0x593381)_0x1d7734['detach']();});});});}function _0x21c67(_0x44b43f){_0x417b50['model']['change'](_0x27ab7b=>{const _0x44e6c7=Array['from'](_0x2e7a6b['getRanges']())['map'](_0x21b461=>_0x95b134['fromRange'](_0x21b461)),_0x2c432f=[];for(const _0x5a1bac of _0x44b43f)for(const _0x102cad of _0x5a1bac['getItems']({'shallow':!0x0}))_0x2c432f['push'](_0x102cad);for(const _0x32110e of _0x2c432f)'$graveyard'!=_0x32110e['root']['rootName']&&(_0x27ab7b['setSelection'](_0x27ab7b['createPositionAt'](_0x32110e,0x0)),_0x417b50['commands']['get']('removeTableColumn')['refresh'](),_0x417b50['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x16f00b=_0x44e6c7['filter'](_0x5395d6=>'$graveyard'!=_0x5395d6['root']['rootName']);_0x16f00b['length']>0x0&&_0x27ab7b['setSelection'](_0x16f00b);for(const _0x403826 of _0x44e6c7)_0x403826['detach']();});}function _0x3bf014(_0x182834,_0x15f321){return _0x15f321['every'](_0x5ac86b=>_0x182834['some'](_0x8a3bcd=>_0x8a3bcd['end']['isEqual'](_0x5ac86b['start'])||_0x5ac86b['end']['isEqual'](_0x8a3bcd['start'])));}function _0x35e0df(_0x8a6b99,_0x3da66d){return!_0x8a6b99['some'](_0x5399b5=>_0x3da66d['some'](_0x2bd9d3=>_0x5399b5['isIntersecting'](_0x2bd9d3)))&&_0x8a6b99['some'](_0x31bba3=>_0x3da66d['some'](_0x4a2c48=>_0x31bba3['end']['isTouching'](_0x4a2c48['start'])));}_0x2c825e['descriptionFactory']['registerDescriptionCallback'](_0x1e8244=>{if('insertion'!=_0x1e8244['type']&&'deletion'!=_0x1e8244['type'])return;const _0x297020=_0x1e8244['getContainedElement']();if(null!=_0x297020&&_0x297020['is']('element','table')){if('insertion'==_0x1e8244['type']){const _0x587fea=_0x1e8244['getItems']()['filter'](_0xcc98de=>_0xcc98de['is']('$textProxy'))['map'](_0x1e07af=>_0x1e07af['data']);if(_0x587fea['length'])return{'type':'insertion','content':o(_0x45ff4b,'*Insert:*\x20%0',o(_0x45ff4b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x587fea['join']('\x20')+'\x22'))};}if('deletion'==_0x1e8244['type']){const _0x2d6c0f=_0x1e8244['getItems']()['filter'](_0x180950=>_0x180950['is']('$textProxy'))['map'](_0x124f52=>_0x124f52['data']);if(_0x2d6c0f['length'])return{'type':'deletion','content':o(_0x45ff4b,'*Remove:*\x20%0',o(_0x45ff4b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2d6c0f['join']('\x20')+'\x22'))};}}}),_0x2c825e['descriptionFactory']['registerDescriptionCallback'](_0x52d5a0=>{if('tableRow'==_0x52d5a0['subType']){const _0x197451=_0x52d5a0['getItems']()['filter'](_0x331bd2=>_0x331bd2['is']('$textProxy'))['map'](_0xfec373=>_0xfec373['data']),_0x33aa65=this['_getSuggestionCoords'](_0x52d5a0),_0x5caab5=_0x33aa65['maxRow']-_0x33aa65['minRow']+0x1;if('insertion'==_0x52d5a0['type'])return _0x197451['length']?{'type':'insertion','content':o(_0x45ff4b,'*Insert:*\x20%0',o(_0x45ff4b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5caab5,'\x22'+_0x197451['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x45ff4b,'*Insert:*\x20%0',o(_0x45ff4b,'ELEMENT_TABLE_ROW',_0x5caab5))};if('deletion'==_0x52d5a0['type'])return _0x197451['length']?{'type':'deletion','content':o(_0x45ff4b,'*Remove:*\x20%0',o(_0x45ff4b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5caab5,'\x22'+_0x197451['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x45ff4b,'*Remove:*\x20%0',o(_0x45ff4b,'ELEMENT_TABLE_ROW',_0x5caab5))};}if('tableColumn'==_0x52d5a0['subType']){const _0x3a4184=_0x52d5a0['getItems']()['filter'](_0x26e764=>_0x26e764['is']('$textProxy'))['map'](_0x3820fa=>_0x3820fa['data']),_0x3681d3=this['_getSuggestionCoords'](_0x52d5a0),_0x3b0ce2=_0x3681d3['maxColumn']-_0x3681d3['minColumn']+0x1;if('insertion'==_0x52d5a0['type'])return _0x3a4184['length']?{'type':'insertion','content':o(_0x45ff4b,'*Insert:*\x20%0',o(_0x45ff4b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b0ce2,'\x22'+_0x3a4184['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x45ff4b,'*Insert:*\x20%0',o(_0x45ff4b,'ELEMENT_TABLE_COLUMN',_0x3b0ce2))};if('deletion'==_0x52d5a0['type'])return _0x3a4184['length']?{'type':'deletion','content':o(_0x45ff4b,'*Remove:*\x20%0',o(_0x45ff4b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b0ce2,'\x22'+_0x3a4184['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x45ff4b,'*Remove:*\x20%0',o(_0x45ff4b,'ELEMENT_TABLE_COLUMN',_0x3b0ce2))};}}),_0x2c825e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1c7b0d),_0x2c825e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1c7b0d),_0x2c825e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x21c67),_0x2c825e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x21c67),_0x2c825e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3bf014),_0x2c825e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3bf014),_0x2c825e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x35e0df),_0x2c825e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x35e0df);}['_acceptFormatSuggestionCallbackFactory'](){const _0x77fe9d=this['editor'],_0x2c773d=_0x77fe9d['model']['document']['selection'];return(_0x17483c,_0x3f00be)=>{_0x77fe9d['model']['change'](_0x1b2f7b=>{const {commandName:_0x575e40,commandParams:_0x15f1ec}=_0x3f00be;let _0x3a5ccb=_0x17483c[0x0]['end']['nodeBefore'];_0x15f1ec&&_0x15f1ec[0x0]&&!0x1===_0x15f1ec[0x0]['forceValue']&&(_0x3a5ccb=_0x17483c[0x0]['start']['nodeAfter']);const _0x37ec5f=_0x1b2f7b['createRangeIn'](_0x3a5ccb);if('$graveyard'==_0x37ec5f['root']['rootName'])return;const _0x336c00=Array['from'](_0x2c773d['getRanges']())['map'](_0x450ca7=>_0x95b134['fromRange'](_0x450ca7));_0x1b2f7b['setSelection'](_0x37ec5f),_0x77fe9d['commands']['get'](_0x575e40)['refresh'](),_0x15f1ec['push']({'forceDefaultExecution':!0x0}),_0x77fe9d['execute'](_0x575e40,..._0x15f1ec);const _0x11efdb=_0x336c00['filter'](_0x2347fc=>'$graveyard'!=_0x2347fc['root']['rootName']);_0x11efdb['length']>0x0&&_0x1b2f7b['setSelection'](_0x11efdb);for(const _0x271cd2 of _0x336c00)_0x271cd2['detach']();});};}['_getCoordsForCells'](_0x71e1f2){const _0x4f6d41=this['editor']['plugins']['get']('TableUtils');let _0x422d23=Number['MAX_SAFE_INTEGER'],_0x2f8114=Number['MIN_SAFE_INTEGER'],_0x4a9506=Number['MAX_SAFE_INTEGER'],_0x491af2=Number['MIN_SAFE_INTEGER'];for(const _0x244913 of _0x71e1f2){if('$graveyard'==_0x244913['root']['rootName'])continue;const {row:_0x3ef0f6,column:_0x404b7a}=_0x4f6d41['getCellLocation'](_0x244913),_0x471816=_0x244913['hasAttribute']('rowspan')?_0x244913['getAttribute']('rowspan')-0x1:0x0,_0x4e3d68=_0x244913['hasAttribute']('colspan')?_0x244913['getAttribute']('colspan')-0x1:0x0;_0x422d23=_0x3ef0f6<_0x422d23?_0x3ef0f6:_0x422d23,_0x2f8114=_0x3ef0f6+_0x471816>_0x2f8114?_0x3ef0f6+_0x471816:_0x2f8114,_0x4a9506=_0x404b7a<_0x4a9506?_0x404b7a:_0x4a9506,_0x491af2=_0x404b7a+_0x4e3d68>_0x491af2?_0x404b7a+_0x4e3d68:_0x491af2;}return{'minRow':_0x422d23,'maxRow':_0x2f8114,'minColumn':_0x4a9506,'maxColumn':_0x491af2};}['_setupColumnsRowsFixing'](){const _0x1f246e=this['editor'],_0x35d5ab=_0x1f246e['plugins']['get']('TrackChangesEditing'),_0x1da149=_0x1f246e['plugins']['get']('TableUtils');_0x1f246e['model']['document']['on']('change:data',()=>{const _0x28e9e4=Array['from'](_0x1f246e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x463e84,data:_0x21f046}of _0x28e9e4){const {group:_0x133cf7,id:_0x40489f,subType:_0x31b6e6}=_0x35d5ab['_splitMarkerName'](_0x463e84);if('suggestion'!=_0x133cf7)continue;if(null!=_0x21f046['oldRange'])continue;const _0x48dfd1=_0x35d5ab['getSuggestion'](_0x40489f);this['_tablePostFixingSubtypes']['includes'](_0x31b6e6)&&this['_tableSuggestions']['add'](_0x48dfd1);}},{'priority':'low'});const _0x2de3ec=(_0x3e342c,_0x2998e4)=>{let _0x11f817=!0x1;const _0x53adff=_0x2998e4['createRangeOn'](_0x3e342c),_0x440dfa=_0x3e342c['findAncestor']('table'),_0x13e97=_0x1da149['getCellLocation'](_0x3e342c);for(const _0x56f778 of this['_tableSuggestions']){const _0x1e0278=_0x56f778['subType'],_0x4caa90=_0x1e0278['startsWith']('tablePaste'),_0x5e67a0=_0x1e0278['substr'](_0x4caa90?0xa:0x5),_0x20925a=_0x5e67a0['toLowerCase'](),_0x374549=_0x20925a['substr'](0x0,0x3)+'span',_0x1a4d63='min'+_0x5e67a0,_0x38ef5f='max'+_0x5e67a0;if(!_0x56f778['isInContent'])continue;if(_0x440dfa!=_0x56f778['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x56f778['isIntersectingWithRange'](_0x53adff))continue;const _0x4c419b=_0x3e342c['hasAttribute'](_0x374549)?_0x3e342c['getAttribute'](_0x374549)-0x1:0x0,_0x52c321=this['_getSuggestionCoords'](_0x56f778),_0x5d8e3c=_0x52c321[_0x1a4d63],_0x2578ee=_0x52c321[_0x38ef5f];_0x5d8e3c<=_0x13e97[_0x20925a]&&_0x13e97[_0x20925a]+_0x4c419b<=_0x2578ee&&(_0x56f778['addRange'](_0x53adff),_0x11f817=!0x0);}return _0x11f817;};_0x1f246e['model']['document']['registerPostFixer'](_0x54e7e4=>{let _0x566d2d=!0x1;for(const _0x2503ec of _0x1f246e['model']['document']['differ']['getChanges']())if('insert'==_0x2503ec['type']){if('tableRow'==_0x2503ec['name']){for(const _0x47bcc8 of _0x2503ec['position']['nodeAfter']['getChildren']())_0x566d2d=_0x566d2d||_0x2de3ec(_0x47bcc8,_0x54e7e4);}else'tableCell'==_0x2503ec['name']&&(_0x566d2d=_0x566d2d||_0x2de3ec(_0x2503ec['position']['nodeAfter'],_0x54e7e4));}return _0x566d2d;});}['_getSuggestionCoords'](_0x2262dd){return this['_getCoordsForCells'](_0x2262dd['getRanges']()['map'](_0x5b47ae=>_0x5b47ae['start']['nodeAfter']));}}function _e(_0x2741f4){return Array['from'](new Set(_0x2741f4)['values']());}class $t extends _0x2e8ec7{static get['requires'](){return[Nt];}['afterInit'](){const _0x1db2bd=this['editor'],_0x5664cb=_0x1db2bd['model']['document']['selection'],_0x1ae81e=_0x1db2bd['locale'];if(!_0x1db2bd['plugins']['has']('TableEditing'))return;const _0x22c9cf=_0x1db2bd['plugins']['get']('TrackChangesEditing'),_0x54b967=_0x1db2bd['plugins']['get']('TableUtils'),_0x2dc8ae=_0x1db2bd['plugins']['get'](Nt);_0x2dc8ae['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x22c9cf['enableCommand']('mergeTableCells',()=>{const _0x325ae6=_0x54b967['getSelectionAffectedTableCells'](_0x1db2bd['model']['document']['selection']);_0x1db2bd['model']['change'](()=>{_0x22c9cf['markMultiRangeBlockFormat'](_0x325ae6,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1db2bd['commands']['get']('mergeTableCells')['on']('execute',(_0x4e1da1,_0x130f00)=>{_0x1db2bd['commands']['get']('trackChanges')['value']&&(_0x130f00['length']>0x0&&_0x130f00[_0x130f00['length']-0x1]&&_0x130f00[_0x130f00['length']-0x1]['forceDefaultExecution']||_0x22c9cf['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4e1da1['stop']());},{'priority':'highest'});for(const _0x349325 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2ee855=_0x1db2bd['commands']['get'](_0x349325);_0x22c9cf['enableCommand'](_0x349325,()=>{const _0xbc3775=_0x1db2bd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x25905d=>_0x25905d['is']('element','tableCell')),_0x2ae37d=_0x2ee855['value'];_0x1db2bd['model']['change'](()=>{_0x22c9cf['markMultiRangeBlockFormat']([_0xbc3775,_0x2ae37d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x435710 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x179231=_0x1db2bd['commands']['get'](_0x435710);_0x22c9cf['enableCommand'](_0x435710,()=>{const _0x158f88=_0x54b967['getSelectionAffectedTableCells'](_0x1db2bd['model']['document']['selection'])[0x0],_0xfcdd44=_0x158f88['findAncestor']('table'),{column:_0x3d7ea8,row:_0x1df77f}=_0x54b967['getCellLocation'](_0x158f88);let _0x4693f5=[];if('horizontally'==_0x179231['direction']){const _0x43c831=_0x54b967['createTableWalker'](_0xfcdd44,{'startRow':_0x1df77f,'endRow':_0x1df77f,'includeAllSlots':!0x0});_0x4693f5=Array['from'](_0x43c831)['map'](_0x53360e=>_0x53360e['cell']);}else{const _0x1966a7=_0x54b967['createTableWalker'](_0xfcdd44,{'column':_0x3d7ea8,'includeAllSlots':!0x0});_0x4693f5=Array['from'](_0x1966a7)['map'](_0x38bce2=>_0x38bce2['cell']);}_0x1db2bd['model']['change'](_0x2569aa=>{_0x22c9cf['markBlockFormat'](_0x2569aa['createRangeOn'](_0x158f88),{'commandName':_0x435710,'commandParams':[]},_0x4693f5,_0x435710);});});}_0x22c9cf['descriptionFactory']['registerDescriptionCallback'](_0x40a305=>{if('formatBlock'!=_0x40a305['type']&&'formatInline'!=_0x40a305['type'])return;const {data:_0x55b392}=_0x40a305;return _0x55b392&&'mergeTableCells'==_0x55b392['commandName']?{'type':'format','content':o(_0x1ae81e,'*Merge\x20cells*')}:void 0x0;}),_0x22c9cf['descriptionFactory']['registerDescriptionCallback'](_0x1a538=>{if('formatBlock'!=_0x1a538['type']&&'formatInline'!=_0x1a538['type'])return;const {data:_0x158bdb}=_0x1a538;return _0x158bdb?'splitTableCellVertically'==_0x158bdb['commandName']?{'type':'format','content':o(_0x1ae81e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x158bdb['commandName']?{'type':'format','content':o(_0x1ae81e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xa33850=_0x2dc8ae['_acceptFormatSuggestionCallbackFactory']();for(const _0x4ca541 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x22c9cf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4ca541,'accept',_0xa33850);for(const _0x3483b4 of['splitTableCellVertically','splitTableCellHorizontally'])_0x22c9cf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3483b4,'accept',_0xa33850);_0x22c9cf['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x52d64b=>{_0x1db2bd['model']['change'](_0x76b23a=>{const _0x159a89=Array['from'](_0x5664cb['getRanges']())['map'](_0x2a9c2f=>_0x95b134['fromRange'](_0x2a9c2f));_0x76b23a['setSelection'](_0x52d64b),_0x1db2bd['commands']['get']('mergeTableCells')['refresh'](),_0x1db2bd['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2d42e3=_0x159a89['filter'](_0x3cf7e1=>'$graveyard'!=_0x3cf7e1['root']['rootName']);_0x2d42e3['length']>0x0&&_0x76b23a['setSelection'](_0x2d42e3);for(const _0x3f370e of _0x159a89)_0x3f370e['detach']();});});for(const _0x3ac898 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x443751=_0x1db2bd['commands']['get'](_0x3ac898);_0x443751['on']('set:isEnabled',(_0x189141,_0x2ff0d5,_0x1c07e4)=>{if(_0x1c07e4){const _0x26a7b4=_0x1db2bd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x188b9c=>_0x188b9c['is']('element','tableCell'));this['_areMergableCells'](_0x443751['value'],_0x26a7b4)||(_0x189141['return']=!0x1,_0x189141['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x249577=this['editor']['commands']['get']('mergeTableCells'),_0x781d23=this['editor']['plugins']['get']('TableUtils');if(!_0x249577['isEnabled'])return!0x1;const _0x46f6d3=_0x781d23['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x845b35 of _0x46f6d3)for(const _0x3d88ae of _0x46f6d3)if(_0x845b35!=_0x3d88ae&&!this['_areMergableCells'](_0x845b35,_0x3d88ae))return!0x1;return!0x0;}['_areMergableCells'](_0x5e5d42,_0x1b00b4){const _0x3974bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x272e73=this['editor']['model']['createRangeOn'](_0x5e5d42),_0x5146c6=this['editor']['model']['createRangeOn'](_0x1b00b4),_0x3789ae=new Set(),_0x1d50e1=new Set();for(const _0x567989 of _0x3974bb['getSuggestions']())if(('insertion'==_0x567989['type']||'deletion'==_0x567989['type']||'mergeTableCells'==_0x567989['subType'])&&_0x567989['isInContent']){for(const _0x36b4c7 of _0x567989['getRanges']())_0x36b4c7['containsRange'](_0x272e73,!0x0)&&_0x3789ae['add'](_0x567989['type']+':'+_0x567989['author']['id']),_0x36b4c7['containsRange'](_0x5146c6,!0x0)&&_0x1d50e1['add'](_0x567989['type']+':'+_0x567989['author']['id']);}if(_0x3789ae['size']!=_0x1d50e1['size'])return!0x1;for(const _0x513c01 of _0x3789ae)if(!_0x1d50e1['has'](_0x513c01))return!0x1;return!0x0;}}class vt extends _0x2e8ec7{static get['requires'](){return[Nt];}['afterInit'](){const _0x4d224e=this['editor'];if(!_0x4d224e['plugins']['has']('TableEditing'))return;const _0x181fb3=_0x4d224e['locale'],_0x2f357f=_0x4d224e['plugins']['get']('TrackChangesEditing');_0x2f357f['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2f357f['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2f357f['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x181fb3,'FORMAT_HEADER_ROW')),_0x2f357f['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x181fb3,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1dd134=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20cbcf=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x1dd134['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x20cbcf),_0x1dd134['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x20cbcf),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0xb24f9a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x69c134=this['editor']['plugins']['get']('TableUtils');function _0x38a128({showActiveMarker:_0xa21daa=!0x0,setDataAttribute:_0x43cc3a=!0x0}={}){return(_0x542bf3,_0x19eba7,_0x199b21)=>{const {type:_0x258116,id:_0x592cbb}=_0xb24f9a['_splitMarkerName'](_0x19eba7['markerName']);if(!_0xb24f9a['hasSuggestion'](_0x592cbb))return;const _0x2db62e=_0xb24f9a['getSuggestion'](_0x592cbb),_0x188c73=_0x2db62e['data'];if('formatBlock'!=_0x2db62e['type']||!_0x188c73||'setTableColumnHeader'!=_0x188c73['commandName'])return;if(_0x19eba7['item'])return void _0x542bf3['stop']();if(!_0x199b21['consumable']['consume'](_0x19eba7['markerRange'],_0x542bf3['name']))return;const _0x497c92=_0x19eba7['markerRange']['start']['nodeAfter'],_0x33f66=_0x19eba7['markerRange']['end']['nodeBefore'],_0x1bea58=_0x497c92['parent']['parent'],{column:_0x1c65c4}=_0x69c134['getCellLocation'](_0x497c92),{column:_0x16a1ca}=_0x69c134['getCellLocation'](_0x33f66);for(let _0x5f1bce=_0x1c65c4;_0x5f1bce<=_0x16a1ca;_0x5f1bce++){const _0x58dd85=_0x69c134['createTableWalker'](_0x1bea58,{'column':_0x5f1bce,'includeAllSlots':!0x1});for(const _0x4fca84 of _0x58dd85){const _0x5555bb=_0x4fca84['cell'],_0x143d91=_0x199b21['mapper']['toViewElement'](_0x5555bb);_0x199b21['writer']['addClass']('ck-suggestion-marker-'+_0x258116,_0x143d91),_0x43cc3a&&_0x199b21['writer']['setAttribute']('data-suggestion',_0x592cbb,_0x143d91),_0x199b21['mapper']['bindElementToMarker'](_0x143d91,_0x19eba7['markerName']),_0xa21daa&&(_0xb24f9a['activeMarkers']['includes'](_0x19eba7['markerName'])?_0x199b21['writer']['addClass']('ck-suggestion-marker--active',_0x143d91):_0x199b21['writer']['removeClass']('ck-suggestion-marker--active',_0x143d91));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x38a128(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1e31d9,_0x46d44a,_0x5f339e)=>{_0x5f339e['options']['showSuggestionHighlights']&&_0x38a128({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1e31d9,_0x46d44a,_0x5f339e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x14272b,_0x11b467,_0x215935)=>{const {type:_0x832924,id:_0x20f1a8}=_0xb24f9a['_splitMarkerName'](_0x11b467['markerName']);if(!_0xb24f9a['hasSuggestion'](_0x20f1a8))return;const _0x34f16b=_0xb24f9a['getSuggestion'](_0x20f1a8),_0x7726b4=_0x34f16b['data'];if('formatBlock'!=_0x34f16b['type']||!_0x7726b4||'setTableColumnHeader'!=_0x7726b4['commandName'])return;const _0x49ac1d=_0x215935['mapper']['markerNameToElements'](_0x11b467['markerName']);if(_0x49ac1d){for(const _0x201e39 of _0x49ac1d)_0x215935['writer']['removeClass']('ck-suggestion-marker-'+_0x832924,_0x201e39),_0x215935['writer']['removeClass']('ck-suggestion-marker--active',_0x201e39),_0x215935['writer']['removeAttribute']('data-suggestion',_0x201e39),_0x215935['mapper']['unbindElementFromMarkerName'](_0x201e39,_0x11b467['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x148647=this['editor'],_0x53a2a8=_0x148647['locale'];function _0x36dcbe(_0x2c96de){return{'type':'format','content':o(_0x53a2a8,'*Format:*\x20%0',_0x2c96de)};}_0x148647['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fe44f=>{if('formatBlock'!=_0x1fe44f['type'])return;const {data:_0x209195}=_0x1fe44f;if(_0x209195){if('setTableRowHeader'==_0x209195['commandName']){const _0x5a833b=_0x209195['commandParams'][0x0]['forceValue'];return _0x36dcbe(o(_0x53a2a8,_0x5a833b?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x209195['commandName']){const _0x282ce9=_0x209195['commandParams'][0x0]['forceValue'];return _0x36dcbe(o(_0x53a2a8,_0x282ce9?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x2e8ec7{['afterInit'](){const _0x10b1e1=this['editor'],_0x2e232e=_0x10b1e1['locale'],_0x357e59=_0x10b1e1['plugins']['get']('TrackChangesEditing');function _0x584096(_0x38a9ed){return{'type':'format','content':''+o(_0x2e232e,'*Set\x20table\x20type:*\x20%0',_0x38a9ed)};}_0x10b1e1['plugins']['has']('TableLayout')&&(_0x357e59['enableCommand']('insertTableLayout'),_0x357e59['enableDefaultAttributesIntegration']('tableType'),_0x357e59['descriptionFactory']['registerElementLabel'](_0x3a28b6=>_0x3a28b6['is']('element','table')&&'layout'===_0x3a28b6['getAttribute']('tableType'),_0x1db4d0=>o(_0x2e232e,'ELEMENT_LAYOUT_TABLE',_0x1db4d0)),_0x357e59['descriptionFactory']['registerDescriptionCallback'](_0x4ee433=>{const {data:_0x789134}=_0x4ee433;if(_0x789134&&'tableType'==_0x789134['key'])switch(_0x789134['newValue']){case'layout':return _0x584096(o(_0x2e232e,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x584096(o(_0x2e232e,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Re['map'](_0x1d5ea9=>[_0x1d5ea9,null]));class Bt extends _0x2e8ec7{static get['requires'](){return[Nt];}['afterInit'](){const _0x383cfa=this['editor'];if(!_0x383cfa['plugins']['has']('TableClipboard'))return;const _0x26b41d=_0x383cfa['plugins']['get']('TrackChangesEditing'),_0x3cceb7=_0x383cfa['plugins']['get']('TableUtils'),_0x575ccb=_0x383cfa['plugins']['get'](Nt),_0x3f3e2f=_0x383cfa['plugins']['get']('TableClipboard'),_0x38827c=_0x383cfa['plugins']['get']('TableSelection'),_0x3ee1ae=_0x383cfa['plugins']['get'](_0x2d2859);_0x575ccb['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x383cfa['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x383cfa['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1ea4a7=null,_0x33be89=!0x1;_0x3ee1ae['on']('contentInsertion',(_0x424b87,_0x4a661b)=>{_0x33be89='paste'===_0x4a661b['method'];}),_0x383cfa['model']['on']('insertContent',(_0x3f7828,_0x4f35c2)=>{if(!_0x33be89&&null===_0x38827c['getSelectedTableCells']())return;const [_0x42b2d3,_0x169beb]=_0x4f35c2,_0x4f8f6c=_0x4f35c2[_0x4f35c2['length']-0x1];_0x4f8f6c&&_0x4f8f6c['forceDefaultExecution']||_0x26b41d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5cf96f,_0x46dd6b,_0x47d6ac,_0x28da2b,_0x30f309){if(_0x46dd6b&&!_0x46dd6b['is']('documentSelection'))return!0x1;const _0x1bbc3b=_0x30f309['getTableIfOnlyTableInContent'](_0x5cf96f,_0x47d6ac);if(!_0x1bbc3b||!Oe(_0x1bbc3b,void 0x0,_0x28da2b))return!0x1;const _0x3c145e=_0x28da2b['getSelectionAffectedTableCells'](_0x47d6ac['document']['selection']);if(!_0x3c145e['length'])return!0x1;const _0x3dfff7=_0x3c145e[0x0]['findAncestor']('table'),_0x4a4516=_0x28da2b['getRowIndexes'](_0x3c145e),_0x5cf933=_0x28da2b['getColumnIndexes'](_0x3c145e),_0x4f1f33={'startRow':_0x4a4516['first'],'endRow':_0x4a4516['last'],'startColumn':_0x5cf933['first'],'endColumn':_0x5cf933['last']};return 0x1==_0x3c145e['length']&&(_0x4f1f33['endRow']+=_0x28da2b['getRows'](_0x1bbc3b)-0x1,_0x4f1f33['endColumn']+=_0x28da2b['getColumns'](_0x1bbc3b)-0x1),Oe(_0x3dfff7,_0x4f1f33,_0x28da2b);}(_0x42b2d3,_0x169beb,_0x383cfa['model'],_0x3cceb7,_0x3f3e2f)&&(_0x3f7828['stop'](),_0x1ea4a7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x383cfa['model']['change'](()=>{_0x383cfa['model']['insertContent'](_0x4f35c2[0x0],_0x4f35c2[0x1],_0x4f35c2[0x2],{'forceDefaultExecution':!0x0});const _0x270632=_0x367f2e(),{rowInsertionRanges:_0x4a8acc,columnInsertionRanges:_0x279be8,insertionRanges:_0x595869,deletionRanges:_0x3277f7,cells:_0x5aae4e}=_0x1ea4a7;_0x4a8acc['length']&&_0x26b41d['markMultiRangeInsertion'](_0x4a8acc,'tablePasteRow',{'tablePasteChainId':_0x270632}),_0x279be8['length']&&_0x26b41d['markMultiRangeInsertion'](_0x279be8,'tablePasteColumn',{'tablePasteChainId':_0x270632}),_0x595869['length']&&(_0x26b41d['markMultiRangeInsertion'](_0x595869,'tablePaste',{'tablePasteChainId':_0x270632,'skipNestingCheck':!0x0}),_0x595869['forEach'](_0x9c415=>_0x9c415['detach']?.())),_0x3277f7['length']&&(_0x26b41d['markMultiRangeDeletion'](_0x3277f7,'tablePaste',{'tablePasteChainId':_0x270632,'skipNestingCheck':!0x0}),_0x3277f7['forEach'](_0x2f051f=>_0x2f051f['detach']?.()));const _0x1ab134=_0x26b41d['markMultiRangeBlockFormat'](_0x5aae4e['map'](({element:_0x3f2d70})=>_0x3f2d70),{'formatGroupId':_0x367f2e()},[],'tablePasteCell',{'tablePasteChainId':_0x270632});if(_0x1ab134){const _0x579e94=_0x1ab134['getMarkers'](),_0x2c66d0=[];for(const {element:_0x16d731,attributes:_0xcf1437}of _0x5aae4e){if(!_0xcf1437)continue;const _0x464fed=_0x383cfa['model']['createRangeOn'](_0x16d731),_0x12c864=_0x579e94['find'](_0x3c71f8=>_0x3c71f8['getRange']()['isEqual'](_0x464fed));_0x12c864&&_0x2c66d0['push']([_0x12c864['name'],_0xcf1437]);}_0x2c66d0['length']&&_0x1ab134['setAttribute']('markerAttributes',Object['fromEntries'](_0x2c66d0));}_0x1ea4a7=null;}));},{'priority':_0x15ca84['high']+0xa}),_0x3ee1ae['on']('contentInsertion',()=>{_0x33be89=!0x1;},{'priority':'lowest'}),_0x383cfa['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5cf6e5,_0x557a0a)=>{const [_0x54051f,_0xdcb4c3,,_0x400680]=_0x557a0a;if(!_0x1ea4a7)return;_0x5cf6e5['stop']();const _0x472f15=_0x54051f['cell'],_0x2e2e25=_0xdcb4c3,_0x2f0164=Be(_0x472f15),_0x5c2c6b=Be(_0x2e2e25);_0x5cf6e5['return']=_0x472f15;let _0x52eb94=null,_0x19d155=null;if(_0x5c2c6b||_0x2f0164){if(_0x2f0164&&!_0x5c2c6b){_0x400680['remove'](_0x472f15['getChild'](0x0));for(const _0x15a772 of Array['from'](_0x2e2e25['getChildren']()))_0x400680['insert'](_0x15a772,_0x472f15,'end');const _0x5bd327=_0x1ea4a7['rowInsertionIndexes']['includes'](_0x54051f['row']),_0x38e6b4=_0x1ea4a7['columnInsertionIndexes']['includes'](_0x54051f['column']);_0x5bd327||_0x38e6b4||(_0x52eb94=_0x95b134['fromRange'](_0x400680['createRangeIn'](_0x472f15)));}else _0x5c2c6b&&!_0x2f0164&&(_0x19d155=_0x400680['createRangeIn'](_0x472f15));}else{const _0x3bb874=_0x400680['createElement']('tableCellSuggestion'),_0x48560d=_0x400680['createElement']('tableCellSuggestion');_0x400680['wrap'](_0x400680['createRangeIn'](_0x472f15),_0x48560d),_0x400680['insert'](_0x3bb874,_0x472f15,0x0);for(const _0x292662 of Array['from'](_0x2e2e25['getChildren']()))_0x400680['insert'](_0x292662,_0x3bb874,'end');_0x52eb94=_0x95b134['fromRange'](_0x400680['createRangeOn'](_0x3bb874)),_0x19d155=_0x95b134['fromRange'](_0x400680['createRangeOn'](_0x48560d));}const _0x510f58=Array['from'](_0x2e2e25['getAttributes']())['filter'](([_0xf68c4])=>Re['includes'](_0xf68c4));_0x1ea4a7['cells']['push']({'element':_0x472f15,'attributes':_0x510f58['length']?Object['fromEntries'](_0x510f58):null}),_0x52eb94&&_0x1ea4a7['insertionRanges']['push'](_0x52eb94),_0x19d155&&_0x1ea4a7['deletionRanges']['push'](_0x19d155);},{'priority':'high'}),_0x3cceb7['on']('insertColumns',(_0x254b9a,_0x487169)=>{const [_0x2d80dd,_0x1c89ea={}]=_0x487169;if(!_0x1ea4a7)return;const _0x2e1255=_0x1c89ea['at']||0x0,_0x194e6d=_0x1c89ea['columns']||0x1;_0x1ea4a7['columnInsertionIndexes']=new Array(_0x194e6d)['fill'](_0x2e1255)['map']((_0x8c89f4,_0x29acfd)=>_0x8c89f4+_0x29acfd);for(const {cell:_0x3a3a33}of _0x3cceb7['createTableWalker'](_0x2d80dd,{'startColumn':_0x2e1255,'endColumn':_0x2e1255+_0x194e6d-0x1}))_0x1ea4a7['columnInsertionRanges']['push'](_0x383cfa['model']['createRangeOn'](_0x3a3a33));},{'priority':'low'}),_0x3cceb7['on']('insertRows',(_0x51c59d,_0x3ce445)=>{const [_0x1c8dde,_0x4ca6ac={}]=_0x3ce445;if(!_0x1ea4a7)return;const _0x469132=_0x4ca6ac['at']||0x0,_0x5965d8=_0x4ca6ac['rows']||0x1;_0x1ea4a7['rowInsertionIndexes']=new Array(_0x5965d8)['fill'](_0x469132)['map']((_0x3626f0,_0x4c862c)=>_0x3626f0+_0x4c862c);for(const {cell:_0x50e193}of _0x3cceb7['createTableWalker'](_0x1c8dde,{'startRow':_0x469132,'endRow':_0x469132+_0x5965d8-0x1}))_0x1ea4a7['rowInsertionRanges']['push'](_0x383cfa['model']['createRangeOn'](_0x50e193));},{'priority':'low'}),_0x26b41d['descriptionFactory']['registerDescriptionCallback'](_0x5eff9d=>{if(_0x5eff9d['subType']&&_0x5eff9d['subType']['startsWith']('tablePaste'))return _0x5eff9d['previous']?{}:{'type':'insertion','content':o(_0x383cfa['locale'],'*Replace\x20table\x20cells*')};});const _0x197d66=()=>!0x1;for(const _0x3b81a1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x26b41d['_suggestionFactory']['registerCustomCallback']('insertion',_0x3b81a1,'join',_0x197d66),_0x26b41d['_suggestionFactory']['registerCustomCallback']('deletion',_0x3b81a1,'join',_0x197d66),_0x26b41d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3b81a1,'join',_0x197d66);_0x26b41d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x197d66),_0x26b41d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xdea8ad,_0x248ab7,_0x3e33d9)=>{const _0x4527d1=_0xdea8ad['map'](_0x50a16c=>_0x50a16c['getContainedElement']())['filter'](_0x507524=>_0x507524),_0x28e82c=new Map(_0x4527d1['map'](_0x424014=>[_0x424014,null]));if(_0x1ea4a7){for(const {element:_0x41ab23,attributes:_0x29cc86}of _0x1ea4a7['cells'])_0x29cc86&&_0x28e82c['set'](_0x41ab23,_0x29cc86);}else{if(_0x3e33d9&&_0x3e33d9['markerAttributes'])for(const [_0x16beb4,_0x12b9c4]of Object['entries'](_0x3e33d9['markerAttributes'])){const _0x3a5a2a=_0x383cfa['model']['markers']['get'](_0x16beb4),_0x225b91=_0x3a5a2a?_0x3a5a2a['getRange']()['getContainedElement']():null;_0x225b91&&_0x28e82c['set'](_0x225b91,_0x12b9c4);}}_0x383cfa['model']['change'](_0x17d6bc=>{for(const [_0xb1057a,_0x127bd2]of _0x28e82c)_0x17d6bc['setAttributes']({...Ae,..._0x127bd2},_0xb1057a);});});const _0x2453ae=(_0x282c0d,_0x2433c5)=>{_0x26b41d['_suggestionFactory']['registerCustomCallback'](_0x282c0d,'tablePaste',_0x2433c5,(_0x415d4c,_0x1b6d31,_0xe60403)=>{_0x383cfa['model']['change'](_0x6139ac=>{const _0x112a46=[];for(const _0x124c30 of _0x415d4c){const _0x2f5ac2=_0x124c30['start']['nodeAfter'];_0x2f5ac2['is']('element','tableCellSuggestion')&&_0x112a46['push'](_0x2f5ac2);}_0x26b41d['_suggestionFactory']['getSuggestionCallback'](_0x282c0d,null,_0x2433c5)(_0x415d4c,_0x1b6d31,_0xe60403);for(const _0x57b7a5 of _0x112a46)'$graveyard'!=_0x57b7a5['root']['rootName']&&_0x6139ac['unwrap'](_0x57b7a5);});});};_0x2453ae('insertion','accept'),_0x2453ae('insertion','discard'),_0x2453ae('deletion','accept'),_0x2453ae('deletion','discard'),_0x26b41d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1ae825=>{const _0x422638=_0x1ae825['map'](_0x5dc80b=>_0x5dc80b['getContainedElement']()),_0x4ef9dc=_0x422638[0x0]['findAncestor']('table'),{minRow:_0x5152bb,maxRow:_0x2ae741}=_0x575ccb['_getCoordsForCells'](_0x422638);_0x3cceb7['removeRows'](_0x4ef9dc,{'at':_0x5152bb,'rows':_0x2ae741-_0x5152bb+0x1});}),_0x26b41d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x27febe=>{const _0x3e876a=_0x27febe['map'](_0x32b36d=>_0x32b36d['getContainedElement']()),_0x3a9488=_0x3e876a[0x0]['findAncestor']('table'),{minColumn:_0x3de7fd,maxColumn:_0x23673a}=_0x575ccb['_getCoordsForCells'](_0x3e876a);_0x3cceb7['removeColumns'](_0x3a9488,{'at':_0x3de7fd,'columns':_0x23673a-_0x3de7fd+0x1});});const _0x425919=(_0x574018,_0x3728ca)=>{if(!_0x3728ca['subType']||!_0x3728ca['subType']['startsWith']('tablePaste'))return;const _0x481f96=_0x3728ca['attributes']['tablePasteChainId'],_0x2dbaea=_0x26b41d['getSuggestions']()['filter'](_0x5743cf=>_0x5743cf['isInContent']&&_0x5743cf['attributes']&&_0x5743cf['attributes']['tablePasteChainId']==_0x481f96);_0x2dbaea['length']&&_0x3728ca['getAllAdjacentSuggestions']()['length']!=_0x2dbaea['length']&&_0x2dbaea['reduce']((_0x2f0d17,_0x423880)=>(_0x2f0d17['next']=_0x423880,_0x423880['previous']=_0x2f0d17,_0x423880));};function _0x5ee807(_0x5b578a,_0x24888d=!0x0){const {id:_0x271abd,authorId:_0x4b3dd9}=_0x26b41d['_splitMarkerName'](_0x5b578a['markerName']),_0x461488=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1ef357=_0x26b41d['activeMarkers']['includes'](_0x5b578a['markerName']);return _0x1ef357&&_0x461488['push']('ck-suggestion-marker--active'),{'classes':_0x461488,'attributes':{'data-suggestion':_0x271abd,'data-author-id':_0x4b3dd9},'priority':_0x1ef357&&_0x24888d?0xbc2:0xbb8};}_0x26b41d['on']('suggestionLoaded',_0x425919,{'priority':'high'}),_0x26b41d['on']('suggestionUnloaded',_0x425919,{'priority':'high'}),_0x383cfa['model']['document']['registerPostFixer'](()=>{let _0x363133=!0x1;const _0x1d4293=Array['from'](_0x383cfa['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x547da0,data:_0xc17a7f}of _0x1d4293){const {group:_0x98bc6f,type:_0x1871ee,id:_0x74be6b}=_0x26b41d['_splitMarkerName'](_0x547da0);if('suggestion'!=_0x98bc6f||'deletion'!=_0x1871ee||_0xc17a7f['oldRange'])continue;if(!_0x26b41d['hasSuggestion'](_0x74be6b))continue;const _0x1aa65e=_0x26b41d['getSuggestion'](_0x74be6b)['getRanges'](),_0x497dd3=_0x383cfa['plugins']['get']('Users')['me'];for(const _0x3497a8 of _0x26b41d['getSuggestions']()){if(!_0x3497a8['isInContent']||_0x3497a8['author']!=_0x497dd3)continue;if('formatBlock'!=_0x3497a8['type']||'tablePasteCell'!=_0x3497a8['subType'])continue;if(_0x3497a8['getRanges']()['every'](_0x34a5ee=>_0x1aa65e['some'](_0x33d632=>_0x33d632['containsRange'](_0x34a5ee,!0x0)))){for(const _0x530970 of _0x3497a8['getAllAdjacentSuggestions']())_0x530970['isInContent']&&(_0x530970['discard'](),_0x363133=!0x0);}}}return _0x363133;}),_0x383cfa['model']['document']['registerPostFixer'](_0x143882=>{const _0x4ed60c=_0x383cfa['commands']['get']('redo');if(!_0x4ed60c||!_0x4ed60c['_createdBatches']['has'](_0x143882['batch']))return!0x1;let _0x32ed00=!0x1;const _0x1f3d25=_0x383cfa['plugins']['get']('Users')['me'],_0x4b9cef=_0x383cfa['model']['document']['differ']['getChanges'](),_0x4d9f74=Array['from'](_0x383cfa['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3a04d8,data:_0xa2aad1})=>{const {group:_0x3de23a,subType:_0x29aacb,authorId:_0x43a6a0}=_0x26b41d['_splitMarkerName'](_0x3a04d8);return'suggestion'==_0x3de23a&&'tablePaste'==_0x29aacb&&_0x43a6a0==_0x1f3d25['id']&&!_0xa2aad1['oldRange'];});for(const _0x223b25 of _0x4b9cef){if('insert'!=_0x223b25['type']||'tableCellSuggestion'!=_0x223b25['name']||0x1!=_0x223b25['length'])continue;const _0x68bb11=_0x143882['createRange'](_0x223b25['position'],_0x223b25['position']['getShiftedBy'](0x1));if(!_0x4d9f74['find'](({data:_0x662aa4})=>_0x662aa4['newRange']['isEqual'](_0x68bb11))){for(const {name:_0x373d9a,data:_0x531b8d}of _0x4d9f74)if(_0x68bb11['containsRange'](_0x531b8d['newRange'])){_0x143882['updateMarker'](_0x373d9a,{'range':_0x68bb11}),_0x32ed00=!0x0;break;}}}return _0x32ed00;}),_0x383cfa['model']['document']['registerPostFixer'](_0x5612ca=>{let _0x362c05=!0x1;const _0x5156ad=_0x383cfa['plugins']['get']('Users')['me'],_0x5df780=_0x26b41d['getSuggestions']()['filter'](_0x20959c=>_0x20959c['isInContent']&&_0x20959c['author']==_0x5156ad),_0x59343a=new Set(),_0x5e516f=new Set();for(const _0x2edf06 of _0x5df780)if('tablePaste'==_0x2edf06['subType'])for(const _0x49ffd0 of _0x2edf06['getMarkers']()){const _0x1dfdf9=_0x49ffd0['getRange']()['getContainedElement']();if(_0x1dfdf9){if(_0x1dfdf9['is']('element','tableCellSuggestion')&&Be(_0x1dfdf9)){_0x2edf06['removeMarker'](_0x49ffd0['name']),_0x59343a['add'](_0x1dfdf9),_0x362c05=!0x0;const _0x22e1d5=_0x1dfdf9['nextSibling'],_0x3b10be=_0x1dfdf9['previousSibling'],_0x1b50b9=_0x22e1d5&&_0x22e1d5['is']('element','tableCellSuggestion'),_0x13a0fa=_0x3b10be&&_0x3b10be['is']('element','tableCellSuggestion');_0x1b50b9&&!_0x59343a['has'](_0x22e1d5)&&_0x5e516f['add'](_0x22e1d5),_0x13a0fa&&!_0x59343a['has'](_0x3b10be)&&_0x5e516f['add'](_0x3b10be);}else _0x1dfdf9['is']('element','paragraph')&&_0x1dfdf9['isEmpty']&&(_0x2edf06['removeMarker'](_0x49ffd0['name']),_0x362c05=!0x0);}}else{if('tablePasteCell'==_0x2edf06['subType']){if(!_0x2edf06['attributes']||!_0x2edf06['attributes']['tablePasteChainId'])continue;const _0xc97406=_0x2edf06['attributes']['markerAttributes'];if(_0xc97406&&Object['keys'](_0xc97406)['length'])continue;const _0x24f09=_0x2edf06['attributes']['tablePasteChainId'];let _0x1813d2=!0x0,_0x2ac99e=!0x0;for(const _0x3e2de2 of _0x5df780)if(_0x3e2de2['subType']&&_0x3e2de2['subType']['startsWith']('tablePaste')){if(!_0x3e2de2['attributes']['tablePasteChainId']){_0x2ac99e=!0x1;break;}if(_0x3e2de2['id']!=_0x2edf06['id']&&_0x3e2de2['attributes']['tablePasteChainId']==_0x24f09){_0x1813d2=!0x1;break;}}_0x2ac99e&&_0x1813d2&&(_0x2edf06['removeMarkers'](),_0x362c05=!0x0);}}for(const _0x4cc29b of _0x59343a)_0x5612ca['remove'](_0x4cc29b);for(const _0x4e0557 of _0x5e516f)_0x5612ca['unwrap'](_0x4e0557);return _0x362c05;}),_0x383cfa['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x242972=>_0x5ee807(_0x242972),'converterPriority':'high'}),_0x383cfa['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1ddf6e,_0x3f60af)=>_0x3f60af['options']['showSuggestionHighlights']?_0x5ee807(_0x1ddf6e,!0x1):null,'converterPriority':'high'});const _0x1fcd0a=_0x383cfa['editing']['view'];this['listenTo'](_0x1fcd0a['document'],'clipboardOutput',(_0x3577fe,_0x1b8ea6)=>{const _0x6fcef6=[];for(const _0x4fb3c5 of _0x1fcd0a['createRangeIn'](_0x1b8ea6['content'])['getItems']())_0x4fb3c5['is']('element','suggestion-td')&&_0x6fcef6['push'](_0x4fb3c5);_0x1fcd0a['change'](_0x1309f3=>{for(const _0x32b80f of _0x6fcef6)_0x1309f3['move'](_0x1309f3['createRangeIn'](_0x32b80f),_0x1309f3['createPositionBefore'](_0x32b80f)),_0x1309f3['remove'](_0x32b80f);});});}}function Be(_0x40cabc){if(_0x40cabc['isEmpty'])return!0x0;const _0x29f034=_0x40cabc['getChild'](0x0);return _0x29f034['is']('element','paragraph')&&_0x29f034['isEmpty'];}function Oe(_0x4690df,_0x5f59ab={},_0x5c8fff){for(const {isAnchor:_0x5ad327,cellHeight:_0x51d634,cellWidth:_0x41241e}of _0x5c8fff['createTableWalker'](_0x4690df,{'includeAllSlots':!0x0,..._0x5f59ab}))if(!_0x5ad327||0x1!=_0x51d634||0x1!=_0x41241e)return!0x1;return!0x0;}class Ot extends _0x2e8ec7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x49d158=this['editor']['plugins']['get']('TrackChangesEditing');_0x49d158['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x49d158['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x49d158['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x49d158['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x49d158['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x49d158['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x18b470,_0x11b250){const _0x211f83=this['editor']['plugins']['get']('TrackChangesEditing'),_0x148a1f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x22c270=_0x11b250['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1a4259=_0x148a1f['getColumnGroupElement'](_0x22c270);let _0x2ac595=_0x1a4259?_0x148a1f['getTableColumnsWidths'](_0x1a4259):null,_0x51be93=_0x22c270['getAttribute']('tableWidth')||null;const _0x246e2b=_0x11b250['tableWidth']||_0x51be93,_0x2bb44b=_0x11b250['columnWidths']||_0x2ac595,_0x5bda4d=this['editor']['plugins']['get']('Users')['me'];for(const _0x4958a5 of _0x211f83['getSuggestions']()){const _0x56f562=_0x4958a5['getContainedElement']();if('resizeTable'===_0x4958a5['subType']&&_0x56f562===_0x22c270){_0x4958a5['author']!==_0x5bda4d&&_0x4958a5['discard']();const _0x372a50=_0x4958a5['data']['commandParams'];_0x51be93=_0x372a50[0x0]['tableWidth'],_0x2ac595=_0x372a50[0x0]['columnWidths'];break;}}_0x18b470({'table':_0x22c270,'tableWidth':_0x246e2b,'columnWidths':_0x2bb44b}),_0x211f83['markBlockFormat'](_0x22c270,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x51be93,'columnWidths':_0x2ac595}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x524640){if('formatBlock'!=_0x524640['type']&&'formatInline'!=_0x524640['type'])return;const {data:_0x27bcb4}=_0x524640;if(_0x27bcb4&&'resizeTable'===_0x27bcb4['formatGroupId']){const _0x3a394f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3a394f)};}}}class xt extends _0x2e8ec7{['afterInit'](){const _0x4537ff=this['editor'];_0x4537ff['plugins']['has']('Template')&&_0x4537ff['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x2e8ec7{['afterInit'](){const _0x376c21=this['editor'];if(!_0x376c21['commands']['get']('insertTableOfContents'))return;_0x376c21['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5de0bc=_0x376c21['plugins']['get']('TrackChangesEditing'),_0x55c4c4=_0x376c21['locale'];_0x5de0bc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x254cbf=>o(_0x55c4c4,'ELEMENT_TABLE_OF_CONTENTS',_0x254cbf));}}class Rt extends _0x2e8ec7{['afterInit'](){const _0x1fef90=this['editor'];if(!_0x1fef90['plugins']['has']('Title'))return;const _0x5ebd2a=_0x1fef90['plugins']['get']('TrackChangesEditing');_0x5ebd2a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1fef90['locale'],'ELEMENT_TITLE')),_0x1fef90['model']['document']['registerPostFixer'](_0x48f7da=>{let _0x353beb=!0x1;const _0x16315f=Array['from'](_0x1fef90['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb01a70,data:_0xb5c710}of _0x16315f){const {group:_0x226a5f}=_0x5ebd2a['_splitMarkerName'](_0xb01a70);if('suggestion'!==_0x226a5f||!_0xb5c710['newRange'])continue;const _0x2be23a=_0xb5c710['newRange'],_0x5947e9=_0x2be23a['end']['nodeBefore'];if(!_0x5947e9||!_0x5947e9['is']('element','title-content'))continue;if(!_0x2be23a['start']['isTouching'](_0x2be23a['end']))continue;const _0x3fddd1=_0x1fef90['model']['schema']['getNearestSelectionRange'](_0x2be23a['end'],'forward');if(_0x3fddd1&&_0x3fddd1['isCollapsed']){const _0x480c20=_0x48f7da['createRange'](_0x2be23a['start'],_0x3fddd1['start']);_0x480c20['isEqual'](_0x2be23a)||(_0x48f7da['updateMarker'](_0xb01a70,{'range':_0x480c20}),_0x353beb=!0x0);}_0x353beb||(_0x48f7da['removeMarker'](_0xb01a70),_0x353beb=!0x0);}return _0x353beb;});}}class Tt extends _0x2e8ec7{['afterInit'](){const _0x406438=this['editor'],_0x27e7e9=_0x406438['plugins']['get']('TrackChangesEditing');_0x406438['plugins']['has']('Uploadcare')&&(_0x27e7e9['enableCommand']('uploadcare'),_0x406438['plugins']['has']('UploadcareImageEdit')&&(_0x27e7e9['enableCommand']('uploadcareImageEdit'),_0x27e7e9['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x27e7e9['descriptionFactory']['registerDescriptionCallback'](_0xb258ba=>{if('attribute'!=_0xb258ba['type'])return;const {data:_0x2958b0}=_0xb258ba;return _0x2958b0&&'uploadcareImageId'==_0x2958b0['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x2e8ec7{['afterInit'](){const _0x92c274=this['editor'],_0x2cdd25=_0x92c274['plugins']['get']('TrackChangesEditing');_0x92c274['plugins']['has']('UndoEditing')&&(_0x2cdd25['enableCommand']('undo'),_0x2cdd25['enableCommand']('redo'));}}class Ut extends _0x2e8ec7{static get['requires'](){return[Nt];}['afterInit'](){const _0x33d5c6=this['editor'];if(!_0x33d5c6['plugins']['has']('TableCaptionEditing'))return;_0x33d5c6['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x2e8ec7{['tableProperties'];['tableCellProperties'];constructor(_0xbbd70){super(_0xbbd70),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0xbbd70['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 _0x577c84=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2b9785 of this['tableProperties'])_0x577c84['enableCommand'](_0x2b9785,(_0x5dbcaf,_0x44e891)=>{const _0x3f3c2f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2b9785,[_0x3f3c2f],this['tableProperties'],'tableProperties',_0x5dbcaf,_0x44e891);});_0x577c84['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x577c84['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x577c84['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x219e03,_0x57bbec)=>this['handleDiscardAction'](this['tableProperties'],_0x219e03,_0x57bbec)),_0x577c84['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xf469b6 of this['tableCellProperties'])this['editor']['commands']['get'](_0xf469b6)&&_0x577c84['enableCommand'](_0xf469b6,(_0xd25cc5,_0x1c1904)=>{const _0x5d638e=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xf469b6,_0x5d638e,this['tableCellProperties'],'tableCellProperties',_0xd25cc5,_0x1c1904);});_0x577c84['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x577c84['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x577c84['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2fd957,_0x50ab70)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2fd957,_0x50ab70)),_0x577c84['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&(_0x577c84['registerBlockAttribute']('tableCellType'),_0x577c84['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE')));}_0x577c84['descriptionFactory']['registerDescriptionCallback'](_0x4b1466=>this['handleSuggestionDescription'](_0x4b1466)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x476ea3,_0x495ff1,_0x43d86a,_0x56919d,_0x589e1b,_0x5164b8){const _0x126508=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5164b8['batch'],()=>{for(const _0x4b52f3 of _0x495ff1){if(this['_getSuggestion'](_0x4b52f3,_0x56919d))_0x589e1b(_0x5164b8);else{const _0x7c2e9b={};for(const _0x3200e8 of _0x43d86a){const _0x3d308c=_0x4b52f3['getAttribute'](_0x3200e8);void 0x0!==_0x3d308c&&(_0x7c2e9b[_0x3200e8]=_0x3d308c);}_0x589e1b(_0x5164b8),_0x126508['markBlockFormat'](_0x4b52f3,{'commandParams':[_0x7c2e9b]},[],_0x56919d);}}});}['handleDiscardAction'](_0x2d919d,_0x278a42,_0x1f7874){const _0x209e73=_0x278a42[0x0]['start']['nodeAfter'],_0x503fd6=_0x1f7874['commandParams'][0x0];this['editor']['model']['change'](_0x52693e=>{for(const _0x219eda of _0x2d919d)void 0x0!==_0x503fd6[_0x219eda]?_0x52693e['setAttribute'](_0x219eda,_0x503fd6[_0x219eda],_0x209e73):_0x52693e['removeAttribute'](_0x219eda,_0x209e73);});}['handleSuggestionDescription'](_0x34bac2){if(_0x34bac2['data'])switch(_0x34bac2['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'](_0x1137c0,_0x67bb68){const _0x333155=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5c533d of _0x333155['getSuggestions']({'skipNotAttached':!0x0})){const _0x14192b=_0x5c533d['getContainedElement']();if(_0x5c533d['subType']===_0x67bb68&&_0x14192b===_0x1137c0)return _0x5c533d;}return null;}['_registerTablePropertiesAttributes'](){const _0x34703b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39bcf4=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4a6f2f of _0x39bcf4){const _0x36db73=_0x4a6f2f['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x34703b['descriptionFactory']['registerAttributeLabel'](_0x4a6f2f,o(this['editor']['locale'],'FORMAT_'+_0x36db73));}}}class Ft extends _0x2e8ec7{['afterInit'](){const _0x459220=this['editor'];if(!_0x459220['plugins']['has']('LineHeight'))return;const _0x5303d9=_0x459220['plugins']['get']('TrackChangesEditing'),_0x56fac4=_0x459220['locale'];_0x5303d9['enableDefaultAttributesIntegration']('lineHeight'),_0x5303d9['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x56fac4,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x2e8ec7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x9f1e39,_0x4f0225,_0x287d9f,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a5594){super(_0x4a5594),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x282157,_0xa0a7ce,_0x536bf6,_0x24911c)=>{this['_model']['change'](()=>{for(const _0x10f0a6 of[..._0x24911c,..._0x536bf6])this['_model']['markers']['has'](_0x10f0a6)&&_0x4a5594['editing']['reconvertMarker'](_0x10f0a6);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4a5594['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4a5594['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4a5594['config']['get']('trackChanges.trackFormatChanges'),_0x4a5594['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4a5594['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x4a5594,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x33b2e1=this['editor'];_0x33b2e1['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x50ed21,{writer:_0xb252c7})=>{let _0x582753='suggestion:'+_0x50ed21['getAttribute']('suggestion-type')+':'+_0x50ed21['getAttribute']('id');return _0x50ed21['getAttribute']('marker-count')&&(_0x582753+=':'+_0x50ed21['getAttribute']('marker-count')),_0xb252c7['createElement']('$marker',{'data-name':_0x582753});}}),_0x33b2e1['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x33b2e1['model']['document']['registerPostFixer'](_0x1b96aa=>{let _0x12cce3=!0x1;const _0x488294=Array['from'](_0x33b2e1['model']['document']['differ']['getChangedMarkers']()),_0x4c5893=new Set();for(const {name:_0x51ae94,data:_0x5b1696}of _0x488294){const {group:_0xf72ef5,type:_0x1706c9,subType:_0x4e50bf,id:_0x42b9e8}=this['_splitMarkerName'](_0x51ae94);if('suggestion'!==_0xf72ef5)continue;const _0x12a913=_0x4e50bf?'suggestion:'+_0x1706c9+':'+_0x4e50bf+':'+_0x42b9e8:'suggestion:'+_0x1706c9+':'+_0x42b9e8,_0x6d05fa=_0x33b2e1['model']['markers']['getMarkersGroup'](_0x12a913),_0x356644=_0x33b2e1['model']['markers']['get'](_0x51ae94),_0x427d66=this['_suggestions']['get'](_0x42b9e8);if(null!=_0x5b1696['newRange']){'formatInline'==_0x1706c9&&(_0x12cce3=_0x12cce3||Wt(_0x5b1696['newRange'],_0x51ae94,_0x1b96aa,_0x33b2e1['model']['schema']));const _0xf930cf='attribute'==_0x1706c9&&this['_isBlockAttribute'](_0x4e50bf['split']('|')[0x0]),_0x4807ed='attribute'==_0x1706c9&&this['_isInlineAttribute'](_0x4e50bf['split']('|')[0x0]);if(_0x5b1696['newRange']['isCollapsed']||'$graveyard'==_0x5b1696['newRange']['root']['rootName']||'formatBlock'==_0x1706c9&&!Qt(_0x5b1696['newRange'])||_0xf930cf&&!Qt(_0x5b1696['newRange'])||_0x4807ed&&Xt(_0x5b1696['newRange'])||'deletion'==_0x1706c9&&Xt(_0x5b1696['newRange'])||_0x356644&&Yt(_0x356644,_0x6d05fa))_0x1b96aa['removeMarker'](_0x51ae94),_0x12cce3=!0x0;else{if(!_0x427d66||!_0x427d66['isInContent'])continue;if(_0x5b1696['newRange']&&_0x5b1696['oldRange']&&_0x5b1696['newRange']['isEqual'](_0x5b1696['oldRange']))continue;_0x4c5893['add'](_0x427d66);}}}return _0x4c5893['size']>0x0&&(_0x12cce3=!!this['_joinWithAdjacentSuggestions'](_0x4c5893)||_0x12cce3),_0x12cce3;}),_0x33b2e1['model']['document']['registerPostFixer'](_0xf9e00e=>{let _0x563b5e=!0x1;for(const _0xdf5f3 of _0x33b2e1['model']['document']['differ']['getChanges']())if('insert'==_0xdf5f3['type'])for(const _0x3f8c4b of this['_suggestions']['values']()){if(_0x3f8c4b['isMultiRange']||!_0x3f8c4b['isInContent'])continue;const _0x3dd477='formatBlock'==_0x3f8c4b['type'],_0x105ed2=this['_getAttributeKey'](_0x3f8c4b),_0x2c4945=_0x105ed2&&this['_isBlockAttribute'](_0x105ed2);if(!_0x3dd477&&!_0x2c4945)continue;const _0x55395d=_0x3f8c4b['getFirstRange']();if(_0x55395d['start']['parent']!=_0x55395d['end']['parent']&&!_0x55395d['end']['isAtEnd']){const _0x7a13e4=_0x33b2e1['model']['createPositionAt'](_0x55395d['start']['nodeAfter'],'end'),_0x1ef05d=_0x33b2e1['model']['createRange'](_0x55395d['start'],_0x7a13e4);_0xf9e00e['updateMarker'](_0x3f8c4b['getFirstMarker'](),{'range':_0x1ef05d}),_0x563b5e=!0x0;}}return _0x563b5e;}),_0x33b2e1['model']['document']['registerPostFixer'](_0x362242=>this['_processAttributeChanges'](_0x362242)),_0x33b2e1['model']['document']['registerPostFixer'](_0x5e138d=>!_0x5e138d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5e138d)),_0x33b2e1['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x33b2e1['model']['document']['on']('change:data',(_0x3ae5b1,_0x4d3d58)=>{if(!_0x4d3d58['isLocal']||_0x4d3d58['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xb12279=_0x33b2e1['model']['document']['differ']['getChanges']();if(0x0==_0xb12279['length'])return;const _0x1d7ca1=[],_0x294ac0=_0xb12279['filter'](_0x4ba45e=>'attribute'==_0x4ba45e['type']),_0x16ceb7=_0xb12279['filter'](_0x38aaf7=>'insert'==_0x38aaf7['type']&&'$text'!=_0x38aaf7['name']);for(const _0x18c4c7 of _0x294ac0)this['_isRegisteredAttribute'](_0x18c4c7['attributeKey'])&&_0x1d7ca1['push']({'key':_0x18c4c7['attributeKey'],'newValue':_0x18c4c7['attributeNewValue'],'oldValue':_0x18c4c7['attributeOldValue'],'range':Zt(_0x18c4c7['range'],_0x33b2e1['model'])});for(const _0x3e21e0 of _0x16ceb7){if('rename'!=_0x3e21e0['action']&&'refresh'!=_0x3e21e0['action'])continue;const _0x30c96e=tn(_0x3e21e0['position']['nodeAfter'],_0x33b2e1['model']),_0x5d4424=_0x3e21e0['before'];'rename'==_0x3e21e0['action']&&_0x1d7ca1['push']({'key':m,'newValue':_0x3e21e0['name'],'oldValue':_0x5d4424['name'],'range':_0x30c96e});for(const [_0x39c450,_0x4b9871]of _0x5d4424['attributes']){if(!this['_isRegisteredAttribute'](_0x39c450))continue;const _0x1391c0=_0x3e21e0['attributes']['get'](_0x39c450);_0x4b9871!==_0x1391c0&&_0x1d7ca1['push']({'key':_0x39c450,'newValue':_0x1391c0,'oldValue':_0x4b9871,'range':_0x30c96e});}for(const [_0xfbdc89,_0x3a439c]of _0x3e21e0['attributes'])this['_isRegisteredAttribute'](_0xfbdc89)&&(_0x5d4424['attributes']['has'](_0xfbdc89)||_0x1d7ca1['push']({'key':_0xfbdc89,'newValue':_0x3a439c,'oldValue':null,'range':_0x30c96e}));}0x0!=_0x1d7ca1['length']&&_0x33b2e1['model']['enqueueChange'](_0x4d3d58,_0x2e5ea9=>{const _0x3ab489=_0x367f2e();for(const {range:_0x52f910,key:_0x5ed7df,oldValue:_0x10382b,newValue:_0x31f5a2}of _0x1d7ca1)this['markAttributeChange'](_0x52f910,_0x5ed7df,_0x10382b,_0x31f5a2,{'groupId':_0x3ab489});this['_reduceExistingSuggestions'](_0x2e5ea9,_0x1d7ca1);});},{'priority':'lowest'}),_0x33b2e1['model']['markers']['on']('update:suggestion',(_0x4a8fa9,_0x1f034c,_0x17e3ca)=>{if(null==_0x17e3ca){const {id:_0x2db91a}=this['_splitMarkerName'](_0x1f034c['name']),_0x25dc13=this['_suggestions']['get'](_0x2db91a);_0x25dc13&&_0x25dc13['addMarkerName'](_0x1f034c['name']);}}),_0x33b2e1['model']['document']['on']('change:data',()=>{const _0x9ad3ef=Array['from'](_0x33b2e1['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5f4d6d=>'suggestion'===this['_splitMarkerName'](_0x5f4d6d['name'])['group']);if(0x0===_0x9ad3ef['length'])return;_0x9ad3ef['sort']((_0x271b16,_0x494d37)=>{const _0x183657=_0x271b16['data']['oldRange'],_0x45c1c8=_0x494d37['data']['oldRange'];return null===_0x183657&&null===_0x45c1c8?0x0:null===_0x183657&&null!==_0x45c1c8?-0x1:null!==_0x183657&&null===_0x45c1c8?0x1:_0x183657['start']['isBefore'](_0x45c1c8['start'])?-0x1:0x1;});const _0x4209e1=new Set(),_0x581b0e=new Set();for(const {name:_0x1bc40f,data:_0x44505e}of _0x9ad3ef){const {id:_0x2a5041}=this['_splitMarkerName'](_0x1bc40f);if(null===_0x44505e['oldRange']){const _0x15264b=this['_handleNewSuggestionMarker'](_0x1bc40f);_0x581b0e['add'](_0x15264b);}else{const _0x22de80=this['_suggestions']['get'](_0x2a5041);null!==_0x44505e['newRange']||_0x22de80['isInContent']?(_0x4209e1['add'](_0x22de80['head']),_0x581b0e['add'](_0x22de80)):this['_removeSuggestion'](_0x22de80);}}_0x581b0e['size']>0x0&&this['_refreshSuggestionsChain'](_0x581b0e);for(const _0x29b6a9 of _0x4209e1)this['fire']('suggestionChanged',_0x29b6a9);}),_0x33b2e1['model']['on']('applyOperation',(_0x1db19f,_0x17ee0d)=>{const _0x35091d=_0x17ee0d[0x0];if(!this['_suggestions']['size'])return;if(!_0x35091d['isDocumentOperation'])return;if(_0x35091d['batch']['isUndo']||!_0x35091d['batch']['isLocal'])return;let _0x17598c,_0x54f168;switch(_0x35091d['type']){case'insert':_0x17598c=_0x33b2e1['model']['createPositionAt'](_0x35091d['position']),_0x54f168=_0x17598c['getShiftedBy'](_0x35091d['howMany']);break;case'split':_0x17598c=_0x33b2e1['model']['createPositionAt'](_0x35091d['splitPosition']),_0x54f168=_0x33b2e1['model']['createPositionAt'](_0x35091d['moveTargetPosition']);break;case'move':_0x17598c=_0x33b2e1['model']['createPositionAt'](_0x35091d['targetPosition']),_0x54f168=_0x17598c['getShiftedBy'](_0x35091d['howMany']);break;default:return;}const _0x2a4033=_0x33b2e1['model']['createRange'](_0x17598c,_0x54f168);_0x33b2e1['model']['change'](()=>{for(const {suggestion:_0x1af9be,meta:_0x18d8c5}of this['_findSuggestions'](_0x2a4033)){if(_0x1af9be['isMultiRange'])continue;if('formatInline'==_0x1af9be['type'])continue;const _0x3800b4=this['_getAttributeKey'](_0x1af9be);if(_0x3800b4&&this['_isBlockAttribute'](_0x3800b4)&&'split'!=_0x35091d['type'])continue;const _0x305d7b=_0x1af9be['data']&&_0x1af9be['data']['multipleBlocks'];('formatBlock'!=_0x1af9be['type']||'split'==_0x35091d['type']&&!_0x305d7b)&&(_0x18d8c5['containsRangeInObject']||'insertion'==_0x1af9be['type']&&_0x18d8c5['isOwn']||_0x1af9be['getFirstRange']()['containsRange'](_0x2a4033)&&this['_breakSuggestionMarker'](_0x1af9be,_0x17598c,_0x54f168));}});},{'priority':'lowest'}),_0x33b2e1['model']['on']('deleteContent',(_0x6e1fbe,_0x3b0115)=>{const _0x5c452c=_0x3b0115[0x0],_0xc664f4=_0x3b0115[0x1];if(_0xc664f4&&_0xc664f4['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5c452c['isCollapsed'])return;const _0x1a33a5=_0x33b2e1['model']['schema'],{start:_0x541801,end:_0x152954}=_0x5c452c['getFirstRange'](),_0x158648=_0x541801['nodeAfter']&&_0x1a33a5['isLimit'](_0x541801['nodeAfter'])?null:_0x1a33a5['getNearestSelectionRange'](_0x541801,'forward'),_0x53f94c=_0x152954['nodeBefore']&&_0x1a33a5['isLimit'](_0x152954['nodeBefore'])?null:_0x1a33a5['getNearestSelectionRange'](_0x152954,'backward'),_0x6f01d9=_0x33b2e1['model']['createRange'](_0x158648?_0x158648['start']:_0x541801,_0x53f94c?_0x53f94c['end']:_0x152954);_0x33b2e1['model']['change'](_0x521de8=>{this['markDeletion'](_0x6f01d9);const _0x3efcfc=_0x33b2e1['model']['schema']['getNearestSelectionRange'](_0x6f01d9['start']);_0x5c452c['is']('documentSelection')?_0x521de8['setSelection'](_0x3efcfc):_0x5c452c['setTo'](_0x3efcfc);}),_0x6e1fbe['stop']();},{'priority':_0x15ca84['normal']+0xa}),_0x33b2e1['model']['on']('insertContent',(_0x3051d4,_0x492d61)=>{const _0x4efc57=_0x492d61[_0x492d61['length']-0x1];_0x4efc57&&_0x4efc57['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x33b2e1['model']['change'](()=>{let _0x3375f1=_0x33b2e1['model']['insertContent'](_0x492d61[0x0],_0x492d61[0x1],_0x492d61[0x2],{'forceDefaultExecution':!0x0});if(!_0x3375f1)return;_0x3051d4['return']=_0x3375f1['clone']();const _0x712585=_0x3375f1['end']['nodeBefore'],_0x5ec75a=_0x33b2e1['model']['schema'];_0x712585&&_0x5ec75a['isBlock'](_0x712585)&&!_0x5ec75a['isObject'](_0x712585)&&(_0x3375f1=_0x33b2e1['model']['createRange'](_0x3375f1['start'],_0x33b2e1['model']['createPositionAt'](_0x712585,'end'))),this['markInsertion'](_0x3375f1);}),_0x3051d4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1d1015=new v(_0x33b2e1,this['_suggestions']);_0x33b2e1['commands']['add']('acceptSuggestion',_0x1d1015),this['enableCommand']('acceptSuggestion');const _0x2e6292=new D(_0x33b2e1,this['_suggestions']);_0x33b2e1['commands']['add']('discardSuggestion',_0x2e6292),this['enableCommand']('discardSuggestion'),_0x33b2e1['commands']['add']('acceptAllSuggestions',new B(_0x33b2e1,_0x1d1015,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x33b2e1['commands']['add']('discardAllSuggestions',new B(_0x33b2e1,_0x2e6292,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x33b2e1['commands']['add']('acceptSelectedSuggestions',new O(_0x33b2e1,_0x1d1015,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x33b2e1['commands']['add']('discardSelectedSuggestions',new O(_0x33b2e1,_0x2e6292,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x29098e=_0x33b2e1['plugins']['get']('CommentsRepository');this['listenTo'](_0x29098e,'addComment',(_0x3ff811,{threadId:_0xfdcb66})=>{const _0x4ce825=this['_suggestions']['get'](_0xfdcb66);_0x4ce825&&_0x4ce825['commentThread']&&0x1===_0x4ce825['commentThread']['length']&&this['_updateSuggestionData'](_0xfdcb66,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x29098e,'removeComment',(_0x521beb,{threadId:_0x1f0f8d})=>{const _0x2f8aff=this['_suggestions']['get'](_0x1f0f8d);_0x2f8aff&&_0x2f8aff['commentThread']&&!_0x2f8aff['commentThread']['length']&&this['_updateSuggestionData'](_0x1f0f8d,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x398cf1){const _0x2b7a69=_0x29e649([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]),_0x54afb4=0x3d8d0df,_0x19a82d=0x3dfaeb7^_0x54afb4,_0x5c8ebe=window[_0x29e649([0x44,0x61,0x74,0x65])][_0x29e649([0x6e,0x6f,0x77])](),_0x31af40=_0x398cf1[_0x29e649([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x22bc78=new window[(_0x29e649([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ead47=>{_0x31af40[_0x29e649([0x6f,0x6e,0x63,0x65])](_0x29e649([0x72,0x65,0x61,0x64,0x79]),_0x2ead47);}),_0x386e54={[_0x29e649([0x6b,0x74,0x79])]:_0x29e649([0x45,0x43]),[_0x29e649([0x75,0x73,0x65])]:_0x29e649([0x73,0x69,0x67]),[_0x29e649([0x63,0x72,0x76])]:_0x29e649([0x50,0x2d,0x32,0x35,0x36]),[_0x29e649([0x78])]:_0x29e649([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]),[_0x29e649([0x79])]:_0x29e649([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]),[_0x29e649([0x61,0x6c,0x67])]:_0x29e649([0x45,0x53,0x32,0x35,0x36])},_0x3b4d1f=_0x31af40[_0x29e649([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x29e649([0x67,0x65,0x74])](_0x29e649([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e9ac6(){let _0x3e5d57,_0x5a03a0=null,_0xf6262=null;try{if(_0x3b4d1f==_0x29e649([0x47,0x50,0x4c]))return _0x29e649([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e5d57=_0x2a423d(),!_0x3e5d57)return _0x29e649([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3e5d57[_0x29e649([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf6262=_0x537655(_0x3e5d57[_0x29e649([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e5d57[_0x29e649([0x6a,0x74,0x69])])),await _0xd26fbe()?_0x295298()?_0x2ffa9b()?_0x29e649([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4f04d8()?(_0x3e5d57[_0x29e649([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29e649([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5a03a0=_0x4565b0(_0x29e649([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x23cb28()):_0x29e649([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x29e649([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x29e649([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x29e649([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2ffa9b(){const _0x1e2d26=[_0x29e649([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x29e649([0x74,0x72,0x69,0x61,0x6c])][_0x29e649([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e5d57[_0x29e649([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5c8ebe/0x3e8:0xe10*_0x19a82d;return _0x3e5d57[_0x29e649([0x65,0x78,0x70])]<_0x1e2d26;}function _0x295298(){const _0x4182ed=_0x3e5d57[_0x29e649([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4182ed)return!0x1;if(_0x4182ed[_0x29e649([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29e649([0x2a])))return!0x0;if(_0x4182ed[_0x29e649([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29e649([0x54,0x43])))return!0x0;if(_0x4182ed[_0x29e649([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29e649([0x52,0x54,0x43]))){if(_0x5f2d0e())return!0x0;if(_0x32445b()||_0xb5b364())return!0x0;}return!0x1;}function _0x4f04d8(){const _0x29d828=_0x3e5d57[_0x29e649([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x29d828||0x0==_0x29d828[_0x29e649([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1b5207}=new URL(window[_0x29e649([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x29d828[_0x29e649([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b5207))return!0x0;const _0x1a4aef=_0x1b5207[_0x29e649([0x73,0x70,0x6c,0x69,0x74])](_0x29e649([0x2e]));return _0x29d828[_0x29e649([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe18c5=>_0xe18c5[_0x29e649([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29e649([0x2a])))[_0x29e649([0x6d,0x61,0x70])](_0x1d93a4=>_0x1d93a4[_0x29e649([0x73,0x70,0x6c,0x69,0x74])](_0x29e649([0x2e])))[_0x29e649([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x104884=>_0x104884[_0x29e649([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1a4aef[_0x29e649([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x29e649([0x6d,0x61,0x70])](_0x51c043=>Array(_0x1a4aef[_0x29e649([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x51c043[_0x29e649([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x29e649([0x66,0x69,0x6c,0x6c])](_0x51c043[0x0]===_0x29e649([0x2a])?_0x29e649([0x2a]):'')[_0x29e649([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x51c043))[_0x29e649([0x73,0x6f,0x6d,0x65])](_0x2f6d6d=>_0x1a4aef[_0x29e649([0x65,0x76,0x65,0x72,0x79])]((_0x199c62,_0x2651f2)=>_0x2f6d6d[_0x2651f2]===_0x199c62||_0x2f6d6d[_0x2651f2]===_0x29e649([0x2a])));}function _0x23cb28(){return _0x5a03a0&&_0xf6262?new window[(_0x29e649([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x236e84,_0x7af2ef)=>{_0x5a03a0[_0x29e649([0x74,0x68,0x65,0x6e])](_0x236e84,_0x7af2ef),_0xf6262[_0x29e649([0x74,0x68,0x65,0x6e])](_0x26b761=>{_0x26b761!=_0x29e649([0x56,0x61,0x6c,0x69,0x64])&&_0x236e84(_0x26b761);},_0x7af2ef);}):_0x5a03a0||_0xf6262||_0x29e649([0x56,0x61,0x6c,0x69,0x64]);}}function _0x537655(_0x352aed,_0x12e164){return new window[(_0x29e649([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f62ca=>{if(_0x1b602f())return _0x4f62ca(_0x29e649([0x56,0x61,0x6c,0x69,0x64]));_0x22a9ae(),_0x31af40[_0x29e649([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x29e649([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17cf64=!0x1;const _0x179a72=_0x367f2e();function _0x137ca0(_0x5af822){return!!_0x5af822&&(typeof _0x5af822===_0x29e649([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5af822===_0x29e649([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5af822[_0x29e649([0x74,0x68,0x65,0x6e])]===_0x29e649([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5af822[_0x29e649([0x63,0x61,0x74,0x63,0x68])]===_0x29e649([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4aab75(_0xaa0eb2){_0x2ed143(_0xaa0eb2)[_0x29e649([0x74,0x68,0x65,0x6e])](_0x263df7=>{if(!_0x263df7||_0x263df7[_0x29e649([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x29e649([0x6f,0x6b]))return _0x29e649([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3584b9(_0x226d6c(_0x179a72+_0x12e164))!=_0x263df7[_0x29e649([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x29e649([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x29e649([0x56,0x61,0x6c,0x69,0x64]);})[_0x29e649([0x74,0x68,0x65,0x6e])](_0x3d4703=>(_0x51cbdf(),_0x3d4703),()=>{const _0x22f261=_0x51f01d();return null==_0x22f261?(_0x51cbdf(),_0x29e649([0x56,0x61,0x6c,0x69,0x64])):_0x29e649(_0x5c8ebe-_0x22f261>(0x27d454df^_0x54afb4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x29e649([0x74,0x68,0x65,0x6e])](_0x4f62ca)[_0x29e649([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4f62ca(_0x29e649([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x217177=0x3ee3e5f^_0x54afb4;function _0x51cbdf(){const _0x2eaddc=_0x29e649([0x6c,0x6c,0x63,0x74,0x2d])+_0x3584b9(_0x226d6c(_0x352aed)),_0x27dafe=_0x37a9b8(_0x3584b9(window[_0x29e649([0x4d,0x61,0x74,0x68])][_0x29e649([0x63,0x65,0x69,0x6c])](_0x5c8ebe/_0x217177)));window[_0x29e649([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29e649([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2eaddc,_0x27dafe);}function _0x51f01d(){const _0x274d68=_0x29e649([0x6c,0x6c,0x63,0x74,0x2d])+_0x3584b9(_0x226d6c(_0x352aed)),_0x397313=window[_0x29e649([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29e649([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x274d68);return _0x397313?window[_0x29e649([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37a9b8(_0x397313),0x10)*_0x217177:null;}function _0x2ed143(_0x4e53ee){return new window[(_0x29e649([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x334bdc,_0x45b604)=>{_0x4e53ee[_0x29e649([0x74,0x68,0x65,0x6e])](_0x334bdc,_0x45b604),window[_0x29e649([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x45b604,0x3d9041f^_0x54afb4);});}}_0x31af40[_0x29e649([0x6f,0x6e])](_0x29e649([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x15c39c,_0x3e974f)=>{if(_0x3e974f[0x0]!=_0x352aed)return _0x4f62ca(_0x29e649([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e974f[0x1]={..._0x3e974f[0x1],[_0x29e649([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x179a72};},{[_0x29e649([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29e649([0x68,0x69,0x67,0x68])}),_0x31af40[_0x29e649([0x6f,0x6e])](_0x29e649([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10b063=>{_0x137ca0(_0x10b063[_0x29e649([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17cf64=!0x0,_0x4aab75(_0x10b063[_0x29e649([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x29e649([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29e649([0x6c,0x6f,0x77])}),_0x22bc78[_0x29e649([0x74,0x68,0x65,0x6e])](()=>{_0x17cf64||_0x4f62ca(_0x29e649([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b602f(){return _0x31af40[_0x29e649([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29e649([0x76,0x69,0x65,0x77])][_0x29e649([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x29e649([0x61,0x75,0x74,0x6f]);}function _0x22a9ae(){_0x31af40[_0x29e649([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29e649([0x76,0x69,0x65,0x77])][_0x29e649([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29e649([0x61,0x75,0x74,0x6f]);}}function _0x4565b0(_0x4fd739){const _0x3fb38a=[new window[(_0x29e649([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x579e92=>setTimeout(_0x579e92,0x3d1ee13^_0x54afb4)),_0x22bc78[_0x29e649([0x74,0x68,0x65,0x6e])](()=>new window[(_0x29e649([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40e115=>{let _0x221015=0x0;_0x31af40[_0x29e649([0x6d,0x6f,0x64,0x65,0x6c])][_0x29e649([0x6f,0x6e])](_0x29e649([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x546e4e,_0xb1bb19)=>{_0xb1bb19[0x0][_0x29e649([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x221015++,_0x221015==(0x3d8d537^_0x54afb4)&&(_0x40e115(),_0x546e4e[_0x29e649([0x6f,0x66,0x66])]());});}))];return window[_0x29e649([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29e649([0x72,0x61,0x63,0x65])](_0x3fb38a)[_0x29e649([0x74,0x68,0x65,0x6e])](()=>_0x4fd739);}async function _0x39f888(){await _0x22bc78,_0x31af40[_0x29e649([0x6d,0x6f,0x64,0x65,0x6c])][_0x29e649([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x39377d,_0x31af40[_0x29e649([0x6d,0x6f,0x64,0x65,0x6c])][_0x29e649([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x39377d,_0x31af40[_0x29e649([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x29e649([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5f2d0e(){return _0x28c8d0(_0x29e649([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x19e286(_0x29e649([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x29e649([0x73,0x74,0x61,0x74,0x65])]==_0x29e649([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x32445b(){return _0x28c8d0(_0x29e649([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 _0xb5b364(){return _0x28c8d0(_0x29e649([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x45502d(_0x1e94c5){const _0xf613e6=_0x2876f9();_0x31af40[_0xf613e6]=_0x29e649([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1e94c5,_0x1e94c5!=_0x29e649([0x56,0x61,0x6c,0x69,0x64])&&_0x39f888();}function _0x2876f9(){const _0x1ba59d=window[_0x29e649([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x29e649([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x29e649([0x6e,0x6f,0x77])]())[_0x29e649([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x29e649([0x2e]),'');let _0x5db2ab=_0x29e649([0x52]);for(let _0x3ba43d=0x0;_0x3ba43d<_0x1ba59d[_0x29e649([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ba43d+=0x2){let _0x3d011c=window[_0x29e649([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ba59d[_0x29e649([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ba43d,_0x3ba43d+0x2));_0x3d011c>=_0x2b7a69[_0x29e649([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3d011c-=_0x2b7a69[_0x29e649([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5db2ab+=_0x2b7a69[_0x3d011c];}return _0x5db2ab;}function _0x2a423d(){const _0x4650b2=_0x3b4d1f[_0x29e649([0x73,0x70,0x6c,0x69,0x74])](_0x29e649([0x2e]));if(0x3!=_0x4650b2[_0x29e649([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5e216e(_0x4650b2[0x1]);function _0x5e216e(_0x1e52e0){const _0x3ad83e=_0x41c54e(_0x1e52e0);return _0x3ad83e&&_0x191e4b()?_0x3ad83e:null;function _0x191e4b(){const _0x19cac8=_0x3ad83e[_0x29e649([0x6a,0x74,0x69])],_0x290318=window[_0x29e649([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19cac8[_0x29e649([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19cac8[_0x29e649([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2d89af={..._0x3ad83e,[_0x29e649([0x6a,0x74,0x69])]:_0x19cac8[_0x29e649([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x19cac8[_0x29e649([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2d89af[_0x29e649([0x76,0x63])],_0x226d6c(_0x2d89af)==_0x290318;}}}async function _0xd26fbe(){let _0x6c51a5=!0x0;try{const _0x139e20=_0x3b4d1f[_0x29e649([0x73,0x70,0x6c,0x69,0x74])](_0x29e649([0x2e])),[_0x5e4415,_0x1da3d9,_0x8ba568]=_0x139e20;return _0x317d6a(_0x5e4415),await _0x20c549(_0x5e4415,_0x1da3d9,_0x8ba568),_0x6c51a5;}catch{return!0x1;}function _0x317d6a(_0xb956bd){const _0x1d24b8=_0x41c54e(_0xb956bd);_0x1d24b8&&_0x1d24b8[_0x29e649([0x61,0x6c,0x67])]==_0x29e649([0x45,0x53,0x32,0x35,0x36])||(_0x6c51a5=!0x1);}async function _0x20c549(_0x5838c2,_0x58002b,_0x158575){const _0x2ec76d=window[_0x29e649([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x29e649([0x66,0x72,0x6f,0x6d])](_0x51c8f0(_0x158575),_0x1e040f=>_0x1e040f[_0x29e649([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x467741=new window[(_0x29e649([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x29e649([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5838c2+_0x29e649([0x2e])+_0x58002b),_0x5306c7=window[_0x29e649([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x29e649([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5306c7)return;const _0x48b6cf=await _0x5306c7[_0x29e649([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x29e649([0x6a,0x77,0x6b]),_0x386e54,{[_0x29e649([0x6e,0x61,0x6d,0x65])]:_0x29e649([0x45,0x43,0x44,0x53,0x41]),[_0x29e649([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x29e649([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x29e649([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5306c7[_0x29e649([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x29e649([0x6e,0x61,0x6d,0x65])]:_0x29e649([0x45,0x43,0x44,0x53,0x41]),[_0x29e649([0x68,0x61,0x73,0x68])]:{[_0x29e649([0x6e,0x61,0x6d,0x65])]:_0x29e649([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x48b6cf,_0x2ec76d,_0x467741)||(_0x6c51a5=!0x1);}}function _0x41c54e(_0x24d31c){return _0x24d31c[_0x29e649([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x29e649([0x65,0x79]))?JSON[_0x29e649([0x70,0x61,0x72,0x73,0x65])](_0x51c8f0(_0x24d31c)):null;}function _0x51c8f0(_0x3ab699){return window[_0x29e649([0x61,0x74,0x6f,0x62])](_0x3ab699[_0x29e649([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x29e649([0x2b]))[_0x29e649([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x29e649([0x2f])));}function _0x226d6c(_0x522077){let _0x23f858=0x1505;function _0x1ca2f4(_0x48fa44){for(let _0x577391=0x0;_0x577391<_0x48fa44[_0x29e649([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x577391++){const _0x348d7f=_0x48fa44[_0x29e649([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x577391);_0x23f858=(_0x23f858<<0x5)+_0x23f858+_0x348d7f,_0x23f858&=_0x23f858;}}function _0x1493b6(_0x1e70c6){Array[_0x29e649([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1e70c6)?_0x1e70c6[_0x29e649([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1493b6):_0x1e70c6&&typeof _0x1e70c6==_0x29e649([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x29e649([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1e70c6)[_0x29e649([0x73,0x6f,0x72,0x74])]()[_0x29e649([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5046d5,_0x5db49f])=>{_0x1ca2f4(_0x5046d5),_0x1493b6(_0x5db49f);}):_0x1ca2f4(window[_0x29e649([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1e70c6));}return _0x1493b6(_0x522077),_0x23f858>>>0x0;}function _0x3584b9(_0x19b54a){return _0x19b54a[_0x29e649([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x29e649([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x29e649([0x30]));}function _0x37a9b8(_0x20650a){return _0x20650a[_0x29e649([0x73,0x70,0x6c,0x69,0x74])]('')[_0x29e649([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x29e649([0x6a,0x6f,0x69,0x6e])]('');}function _0x28c8d0(_0x12a09b){return _0x31af40[_0x29e649([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29e649([0x68,0x61,0x73])](_0x12a09b);}function _0x19e286(_0x6e86d2){return _0x31af40[_0x29e649([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29e649([0x67,0x65,0x74])](_0x6e86d2);}function _0x39377d(){}function _0x29e649(_0x5e273c){return _0x5e273c['map'](_0x2cd758=>String['fromCharCode'](_0x2cd758))['join']('');}_0x45502d(await _0x3e9ac6());}(this);}set['adapter'](_0x2b6093){if(this['_adapter'])throw new _0x69a1a8('track-changes-adapter-already-set',this);this['_adapter']=_0x2b6093;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2cb245=!0x1,toJSON:_0x3f659c=!0x1}={}){const _0x3b79a6=[];for(const _0x35e53d of this['_suggestions']['values']())_0x2cb245&&!_0x35e53d['isInContent']||_0x3b79a6['push'](_0x35e53d);return _0x3f659c?_0x3b79a6['map'](_0x42c052=>_0x42c052['toJSON']()):_0x3b79a6;}['getSuggestion'](_0x1fb332){const _0x35f2a8=this['_suggestions']['get'](_0x1fb332);if(!_0x35f2a8)throw new _0x69a1a8('track-changes-suggestion-not-found',this);return _0x35f2a8;}['hasSuggestion'](_0x5af787){return this['_suggestions']['has'](_0x5af787);}['addSuggestionData'](_0x3527f6){const {authorId:_0x2d7eef,id:_0x38ac86,originalSuggestionId:_0x46a411,attributes:_0x563032}=_0x3527f6,[_0x19a2b3,_0x4aef2a]=_0x3527f6['type']['split'](':'),_0x21c55b=this['_suggestions']['get'](_0x38ac86)||this['_createSuggestion'](_0x19a2b3,_0x4aef2a,_0x38ac86,_0x2d7eef,_0x563032,_0x46a411);if(this['_addThreadToSuggestion'](_0x21c55b),this['_checkSuggestionCorrectness'](_0x21c55b,_0x19a2b3,_0x4aef2a||null,_0x2d7eef),_0x21c55b['createdAt']=_0x3527f6['createdAt'],_0x21c55b['_isDataLoaded']=!0x0,_0x563032&&_0x563032['@external']){const _0x5c729a=_0x563032['@external'],_0x58497e=this['_getExternalAuthor'](_0x5c729a['authorName']);_0x21c55b['authoredAt']=_0x5c729a['createdAt'],_0x21c55b['author']=_0x58497e,_0x21c55b['isExternal']=!0x0;}else _0x21c55b['authoredAt']=_0x3527f6['createdAt'];switch(_0x3527f6['data']&&(_0x21c55b['data']=_0x3527f6['data']),_0x3527f6['attributes']&&(_0x21c55b['attributes']=_0x3527f6['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x21c55b['_saved']=!0x0),this['_suggestionState']['get'](_0x21c55b)){case'notReady':this['_suggestionState']['set'](_0x21c55b,'dataReady');break;case'markerReady':_0x21c55b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x21c55b])),this['_refreshSuggestionsChain'](new Set([_0x21c55b])),this['_suggestionState']['set'](_0x21c55b,'ready'),this['fire']('suggestionLoaded',_0x21c55b)):this['_suggestionState']['set'](_0x21c55b,'removed');}return _0x21c55b;}['acceptSuggestion'](_0x153df5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3556e0 of _0x153df5['getAllAdjacentSuggestions']())_0x3556e0['accept']();});});}['discardSuggestion'](_0x1dbdae){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2e5080 of _0x1dbdae['getAllAdjacentSuggestions']())_0x2e5080['discard']();});});}['enableCommand'](_0x42b36d,_0x582c79){const _0x106d08=this['editor']['commands']['get'](_0x42b36d);if(!_0x106d08)throw new _0x69a1a8('track-changes-command-not-found',this,{'commandName':_0x42b36d});if(this['_enabledCommands']['has'](_0x106d08))throw new _0x69a1a8('track-changes-enable-command-twice',this,{'commandName':_0x42b36d});this['_enabledCommands']['add'](_0x106d08),_0x582c79&&_0x106d08['on']('execute',(_0x50af31,_0x39ad32)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x39ad32['length']>0x0&&_0x39ad32[_0x39ad32['length']-0x1]&&_0x39ad32[_0x39ad32['length']-0x1]['forceDefaultExecution']?_0x39ad32['pop']():(_0x50af31['return']=_0x582c79((..._0x40c1f4)=>_0x106d08['execute'](..._0x40c1f4,{'forceDefaultExecution':!0x0}),..._0x39ad32),_0x50af31['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x444ccf){let _0x3354b4,_0x30324e;const _0x403e78=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3354b4=_0x444ccf();}catch(_0x4e0541){_0x30324e=_0x4e0541;}return _0x403e78||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x30324e&&_0x69a1a8['rethrowUnexpectedError'](_0x30324e,this),_0x3354b4;}['markInsertion'](_0x1da9bc,_0x5b59b1=null,_0x454dbc={}){if(_0x1da9bc['isCollapsed'])return null;const _0x4b62bd=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x454dbc['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x17a95f,meta:_0x22e82f}of this['_findSuggestions'](_0x1da9bc,'insertion'))if(_0x22e82f['isOwn']){if(!_0x22e82f['isNextTo']){if(_0x22e82f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x17a95f,_0x454dbc))continue;return _0x17a95f;}if(sn(_0x17a95f,_0x454dbc))return _0x17a95f;this['_breakSuggestionMarker'](_0x17a95f,_0x1da9bc['start'],_0x1da9bc['end']);break;}if(_0x5b59b1==_0x17a95f['subType']&&sn(_0x17a95f,_0x454dbc)){const _0x2a0613=_0x17a95f['getFirstRange']();return _0x2a0613['start']['isEqual'](_0x1da9bc['end'])?this['_setSuggestionRange'](_0x17a95f,this['_model']['createRange'](_0x1da9bc['start'],_0x2a0613['end'])):this['_setSuggestionRange'](_0x17a95f,this['_model']['createRange'](_0x2a0613['start'],_0x1da9bc['end'])),_0x17a95f;}}const _0x584c8d=_0x367f2e(),_0x2351da=_0x4b62bd['id'],_0x3d2a4a=_0x5b59b1?'insertion:'+_0x5b59b1:'insertion',_0x503819=this['_setSuggestionData']({'id':_0x584c8d,'type':_0x3d2a4a,'createdAt':new Date(),'authorId':_0x2351da,'attributes':_0x454dbc});return this['_addSuggestionMarker'](_0x3d2a4a,_0x584c8d,_0x2351da,_0x1da9bc),_0x503819;}['markMultiRangeInsertion'](_0x6c9d06,_0x17fb39='multi',_0x54cbf1={}){const _0x26f71a=this['editor']['plugins']['get']('Users')['me'],_0x1456d6=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x17fb39,'join');this['_trackingSessionId']&&(_0x54cbf1['trackingSessionId']=this['_trackingSessionId']);for(const _0x36842d of this['getSuggestions']())if(_0x36842d['author']['id']==_0x26f71a['id']&&'insertion'==_0x36842d['type']&&_0x36842d['subType']==_0x17fb39&&sn(_0x36842d,_0x54cbf1)&&(_0x1456d6(_0x36842d['getRanges'](),_0x6c9d06)||_0x1456d6(_0x6c9d06,_0x36842d['getRanges']()))){for(const _0x542087 of _0x6c9d06)_0x36842d['addRange'](_0x542087);return _0x36842d;}for(const {suggestion:_0x214134,meta:_0xebeaec}of this['_findSuggestions'](_0x6c9d06,'insertion')){if(!_0xebeaec['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xebeaec['containsRangeInObject'])continue;if(!sn(_0x214134,_0x54cbf1))continue;let _0x2cfd02=!0x0;for(const _0x593166 of _0x214134['getRanges']())for(const _0x183b1d of _0x6c9d06)if(!_0x593166['containsRange'](_0x183b1d)){_0x2cfd02=!0x1;break;}if(_0x2cfd02)return _0x214134;}const _0x295e66=_0x367f2e(),_0x25ac37=_0x26f71a['id'],_0x3cf4b2='insertion:'+_0x17fb39,_0x2f00b4=this['_setSuggestionData']({'id':_0x295e66,'type':_0x3cf4b2,'createdAt':new Date(),'authorId':_0x25ac37,'attributes':_0x54cbf1});for(const _0x551c08 of _0x6c9d06)this['_addSuggestionMarker'](_0x3cf4b2,_0x295e66,_0x25ac37,_0x551c08,x['getMultiRangeId']());return _0x2f00b4;}['markInlineFormat'](_0x495ee7,_0x116bc5,_0x4fc003=null,_0x13683e={}){if(_0x4fc003=_0x4fc003||Ht(_0x116bc5),_0x495ee7['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x13683e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x518368=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4fc003,'accept');return this['forceDefaultExecution'](()=>_0x518368([_0x495ee7],_0x116bc5,_0x13683e)),null;}const _0x427cbb=this['editor']['plugins']['get']('Users')['me'],_0x468d0a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3ef9ed,meta:_0x5dca7a}of this['_findSuggestions'](_0x495ee7,'insertion'))_0x5dca7a['isOwn']&&!_0x5dca7a['isInsideObject']&&_0x468d0a['push'](..._0x3ef9ed['getRanges']());}const _0x1de4ba=function(_0x519f8d,_0x561a12){const _0x22ef04=[];for(const _0x47e6ba of _0x561a12){const _0x478036=_0x519f8d['getIntersection'](_0x47e6ba);_0x478036&&_0x22ef04['push'](_0x478036);}return _0x22ef04;}(_0x495ee7,_0x468d0a),_0x5066a2=function(_0x379c3e,_0x18daf7){const _0x201d31=[_0x379c3e];for(const _0x3e6b7c of _0x18daf7){let _0xca4472=0x0;for(;_0xca4472<_0x201d31['length'];){const _0x288c5a=_0x201d31[_0xca4472]['getDifference'](_0x3e6b7c);_0x201d31['splice'](_0xca4472,0x1,..._0x288c5a),_0xca4472+=_0x288c5a['length'];}}return _0x201d31;}(_0x495ee7,_0x468d0a);_0x1de4ba['length']&&this['_model']['change'](()=>{for(const _0x570a97 of _0x1de4ba){const _0x4d1e70=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4fc003,'accept');this['forceDefaultExecution'](()=>_0x4d1e70([_0x570a97],_0x116bc5,_0x13683e));}});for(const _0x7abce9 of _0x5066a2){let _0x22edfc=null,_0x12fd6f=_0x7abce9['start'],_0x2f96ae=_0x7abce9['end'];for(const {suggestion:_0xf05f06,meta:_0x377dfd}of this['_findSuggestions'](_0x7abce9,'formatInline')){if(!_0x377dfd['isOwn'])continue;if(_0xf05f06['subType']!=_0x4fc003)continue;if(!sn(_0xf05f06,_0x13683e))continue;const _0x716b0a=_0xf05f06['getFirstRange']();if(_0x716b0a['containsRange'](_0x7abce9,!0x0))return null;_0x12fd6f=_0x12fd6f['isBefore'](_0x716b0a['start'])?_0x12fd6f:_0x716b0a['start'],_0x2f96ae=_0x2f96ae['isAfter'](_0x716b0a['end'])?_0x2f96ae:_0x716b0a['end'],_0x22edfc?_0x716b0a['start']['isBefore'](_0x22edfc['getFirstRange']()['start'])?(_0x22edfc['removeMarkers'](),_0x22edfc=_0xf05f06):_0xf05f06['removeMarkers']():_0x22edfc=_0xf05f06;}const _0x2e6f63=this['_model']['createRange'](_0x12fd6f,_0x2f96ae);if(_0x22edfc)this['_setSuggestionRange'](_0x22edfc,_0x2e6f63);else{const _0x16bfc8=_0x367f2e(),_0xd72dd8=_0x427cbb['id'];this['_setSuggestionData']({'id':_0x16bfc8,'type':'formatInline:'+_0x4fc003,'data':_0x116bc5,'createdAt':new Date(),'authorId':_0xd72dd8,'attributes':_0x13683e}),this['_addSuggestionMarker']('formatInline:'+_0x4fc003,_0x16bfc8,_0xd72dd8,_0x2e6f63);}}return null;}['markBlockFormat'](_0x33c5bb,_0x1b74b0,_0x3154a1=[],_0x1e0c5e=null,_0x1c8ccf={}){_0x1b74b0['formatGroupId']||(_0x1b74b0['formatGroupId']=_0x1b74b0['commandName']),_0x1b74b0['multipleBlocks']=_0x33c5bb['is']('range'),_0x1e0c5e=_0x1e0c5e||Ht(_0x1b74b0);const _0x199883=_0x3154a1['map'](_0x17ec91=>tn(_0x17ec91,this['_model'])),_0x2ff31d=_0x33c5bb['is']('range')?_0x33c5bb:tn(_0x33c5bb,this['_model']);if(this['_trackingSessionId']&&(_0x1c8ccf['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2c7888=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e0c5e,'accept');return this['forceDefaultExecution'](()=>_0x2c7888([_0x2ff31d],_0x1b74b0,_0x1c8ccf)),null;}_0x199883['push'](_0x2ff31d);let _0x2d3118=!0x0;for(const _0x5dc1eb of _0x199883)if(!this['_rangeIsInLocalUserInsertion'](_0x5dc1eb)){_0x2d3118=!0x1;break;}if(_0x2d3118&&'always'!==this['_trackFormatChanges']){const _0x405630=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e0c5e,'accept');return this['forceDefaultExecution'](()=>_0x405630([_0x2ff31d],_0x1b74b0,_0x1c8ccf)),null;}let _0x312e09=null,_0x4bfda1=_0x2ff31d['start'],_0x41994b=_0x2ff31d['end'];for(const {suggestion:_0x2bedcd,meta:_0x312464}of this['_findSuggestions'](_0x2ff31d,'formatBlock')){if(!_0x312464['isOwn'])continue;if(_0x312464['isNextTo']||_0x312464['containsRangeInObject']||_0x312464['isInsideObject'])continue;if(_0x2bedcd['data']['formatGroupId']!=_0x1b74b0['formatGroupId'])continue;if(!sn(_0x2bedcd,_0x1c8ccf))continue;const _0x141fcb=_0x2bedcd['getFirstRange']();if(_0x2bedcd['subType']==_0x1e0c5e){if(_0x141fcb['containsRange'](_0x2ff31d,!0x0))return null;_0x4bfda1=_0x4bfda1['isBefore'](_0x141fcb['start'])?_0x4bfda1:_0x141fcb['start'],_0x41994b=_0x41994b['isAfter'](_0x141fcb['end'])?_0x41994b:_0x141fcb['end'],_0x312e09?_0x141fcb['start']['isBefore'](_0x312e09['getFirstRange']()['start'])?(_0x312e09['removeMarkers'](),_0x312e09=_0x2bedcd):_0x2bedcd['removeMarkers']():_0x312e09=_0x2bedcd;}else{const _0x3bd7c3=_0x2ff31d['getIntersection'](_0x141fcb);this['_cutOutSuggestionMarker'](_0x2bedcd,_0x3bd7c3);}}const _0x38a32d=this['editor']['plugins']['get']('Users')['me'],_0x44eb16=_0x367f2e(),_0x3c89c8=_0x38a32d['id'];if(_0x312e09)return this['_setSuggestionRange'](_0x312e09,this['_model']['createRange'](_0x4bfda1,_0x41994b)),_0x312e09;{const _0x461b99=this['_setSuggestionData']({'id':_0x44eb16,'type':'formatBlock:'+_0x1e0c5e,'data':_0x1b74b0,'createdAt':new Date(),'authorId':_0x3c89c8,'attributes':_0x1c8ccf});return this['_addSuggestionMarker']('formatBlock:'+_0x1e0c5e,_0x44eb16,_0x3c89c8,this['_model']['createRange'](_0x4bfda1,_0x41994b)),_0x461b99;}}['markMultiRangeBlockFormat'](_0x1eab50,_0x4c0bf2,_0x333675=[],_0x349942=null,_0x2a01bf={}){_0x4c0bf2['formatGroupId']||(_0x4c0bf2['formatGroupId']=_0x4c0bf2['commandName']);const _0x4242a6=_0x1eab50[0x0];_0x4c0bf2['multipleBlocks']=_0x4242a6['is']('range'),_0x349942=_0x349942||Ht(_0x4c0bf2);const _0x41e27d=_0x333675['map'](_0x423f00=>tn(_0x423f00,this['_model'])),_0x3fb192=_0x4242a6['is']('range')?_0x1eab50:_0x1eab50['map'](_0x5b71c0=>tn(_0x5b71c0,this['_model']));if(this['_trackingSessionId']&&(_0x2a01bf['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x976f71=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x349942,'accept');return this['forceDefaultExecution'](()=>_0x976f71(_0x3fb192,_0x4c0bf2,_0x2a01bf)),null;}_0x41e27d['push'](..._0x3fb192);let _0x5754f2=!0x0;for(const _0x5aeae4 of _0x41e27d)if(!this['_rangeIsInLocalUserInsertion'](_0x5aeae4)){_0x5754f2=!0x1;break;}if(_0x5754f2&&'always'!==this['_trackFormatChanges']){const _0x379c7f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x349942,'accept');return this['forceDefaultExecution'](()=>_0x379c7f(_0x3fb192,_0x4c0bf2,_0x2a01bf)),null;}const _0x393299=this['editor']['plugins']['get']('Users')['me'];for(const _0x47a3e2 of this['getSuggestions']()){const _0x539854=_0x47a3e2['data'];if(_0x47a3e2['author']['id']!=_0x393299['id'])continue;if('formatBlock'!=_0x47a3e2['type']||_0x539854['formatGroupId']!=_0x4c0bf2['formatGroupId'])continue;if(!sn(_0x47a3e2,_0x2a01bf))continue;const _0x289406=_0x47a3e2['subType']==_0x349942;for(let _0x333032=0x0;_0x333032<_0x3fb192['length'];_0x333032++){const _0x1ef5af=_0x3fb192[_0x333032];for(const _0x30e0c5 of _0x47a3e2['getMarkers']()){const _0x5bc919=_0x30e0c5['getRange']();if(_0x1ef5af['isEqual'](_0x5bc919)){_0x289406?(_0x3fb192['splice'](_0x333032,0x1),_0x333032--):_0x47a3e2['removeMarker'](_0x30e0c5['name']);break;}}}}if(0x0==_0x3fb192['length'])return null;const _0x4f61ea=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x349942,'join');for(const _0x13cedd of this['getSuggestions']()){const _0x3789d7=_0x13cedd['data'];if(_0x13cedd['author']['id']==_0x393299['id']&&('formatBlock'==_0x13cedd['type']&&_0x3789d7['formatGroupId']==_0x4c0bf2['formatGroupId']&&_0x13cedd['subType']==_0x349942&&sn(_0x13cedd,_0x2a01bf)&&(_0x4f61ea(_0x13cedd['getRanges'](),_0x3fb192)||_0x4f61ea(_0x3fb192,_0x13cedd['getRanges']())))){for(const _0x3f1b79 of _0x3fb192)_0x13cedd['addRange'](_0x3f1b79);return _0x13cedd;}}const _0x265c08=_0x367f2e(),_0x56bbe9=_0x393299['id'],_0x54bc49='formatBlock:'+_0x349942,_0x32bf42=this['_setSuggestionData']({'id':_0x265c08,'type':_0x54bc49,'data':_0x4c0bf2,'createdAt':new Date(),'authorId':_0x56bbe9,'attributes':_0x2a01bf});for(const _0x164095 of _0x3fb192)this['_addSuggestionMarker'](_0x54bc49,_0x265c08,_0x56bbe9,_0x164095,x['getMultiRangeId']());return _0x32bf42;}['markDeletion'](_0x46662f,_0x2cee6e=null,_0x9c4508={}){if(_0x46662f['isCollapsed'])return null;const _0x47d516=this['editor']['plugins']['get']('Users')['me'],_0x419853=new _0x95b134(_0x46662f['start'],_0x46662f['end']);this['_trackingSessionId']&&(_0x9c4508['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1ef16a,meta:_0x23fb07}of this['_findSuggestions'](_0x419853,'insertion'))if(_0x23fb07['isOwn']&&!_0x23fb07['isNextTo']){if(_0x1ef16a['isMultiRange']){const _0x40bc38=_0x1ef16a['getRanges']()['filter'](_0x2f0f21=>'$graveyard'!=_0x2f0f21['root']['rootName']);_0x40bc38['every'](_0x3f3c20=>_0x419853['containsRange'](_0x3f3c20,!0x0))&&_0x1ef16a['discard']();if(_0x40bc38['some'](_0x15f800=>_0x15f800['containsRange'](_0x419853,!0x0))){const _0x1eeb5e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2cee6e,'accept');return this['forceDefaultExecution'](()=>_0x1eeb5e([_0x419853],null,_0x9c4508)),null;}}else{const _0x3dc154=_0x419853['getIntersection'](_0x1ef16a['getFirstRange']());null!==_0x3dc154&&_0x1ef16a['_onDiscard']([_0x3dc154],null,_0x9c4508);}}if(_0x419853['detach'](),_0x419853['isCollapsed']||'$graveyard'==_0x419853['root']['rootName'])return null;let _0x8d168a=null,_0x2ddce8=_0x419853['start'],_0x369965=_0x419853['end'];const _0x51ac3e=this['_findSuggestions'](_0x419853,'deletion');for(const {suggestion:_0x3f2efa,meta:_0x53c0ad}of _0x51ac3e){const _0x5b829a=this['_model']['createRange'](_0x2ddce8,_0x369965);if(_0x53c0ad['isOwn']&&(this['_mergeNestedSuggestions']||!_0x53c0ad['containsRangeInObject']&&!_0x53c0ad['isInsideObject'])){if(_0x3f2efa['isMultiRange']){if(!sn(_0x3f2efa,_0x9c4508))continue;let _0x4a1045=!0x0;for(const _0x45f204 of _0x3f2efa['getRanges']()){if(_0x45f204['containsRange'](_0x5b829a,!0x0))return _0x3f2efa;_0x5b829a['containsRange'](_0x45f204)||(_0x4a1045=!0x1);}_0x4a1045&&_0x3f2efa['discard']();}else{const _0x16e430=_0x3f2efa['getFirstRange']();if(_0x16e430['containsRange'](_0x5b829a,!0x0))return _0x3f2efa;if(!sn(_0x3f2efa,_0x9c4508)){_0x5b829a['containsRange'](_0x16e430)?_0x3f2efa['removeMarkers']():_0x16e430['containsPosition'](_0x2ddce8)?_0x2ddce8=_0x16e430['end']:_0x16e430['containsPosition'](_0x369965)&&(_0x369965=_0x16e430['start']);continue;}_0x2ddce8=_0x2ddce8['isBefore'](_0x16e430['start'])?_0x2ddce8:_0x16e430['start'],_0x369965=_0x369965['isAfter'](_0x16e430['end'])?_0x369965:_0x16e430['end'],_0x9c4508=Object['assign']({},_0x3f2efa['attributes']),_0x8d168a?_0x16e430['start']['isBefore'](_0x8d168a['getFirstRange']()['start'])?(_0x8d168a['removeMarkers'](),_0x8d168a=_0x3f2efa):_0x3f2efa['removeMarkers']():_0x8d168a=_0x3f2efa;}}}if(_0x8d168a)return this['_setSuggestionRange'](_0x8d168a,this['_model']['createRange'](_0x2ddce8,_0x369965)),_0x8d168a;{const _0x2d8fba=_0x367f2e(),_0x5335fc=this['_model']['createRange'](_0x2ddce8,_0x369965),_0x3b0a6c=_0x47d516['id'],_0x3ca399=_0x2cee6e?'deletion:'+_0x2cee6e:'deletion',_0x2d66bb=this['_setSuggestionData']({'id':_0x2d8fba,'type':_0x3ca399,'createdAt':new Date(),'authorId':_0x3b0a6c,'attributes':_0x9c4508});return this['_addSuggestionMarker'](_0x3ca399,_0x2d8fba,_0x3b0a6c,_0x5335fc),_0x2d66bb;}}['markMultiRangeDeletion'](_0x5a3769,_0x581db8='multi',_0x11ace7={}){const _0x2254e9=this['editor']['plugins']['get']('Users')['me'],_0x2d4428=_0x5a3769['map'](_0x1ef1c1=>new _0x95b134(_0x1ef1c1['start'],_0x1ef1c1['end'])),_0x44f32f=new Set();this['_trackingSessionId']&&(_0x11ace7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2904ec,meta:_0x37cddd}of this['_findSuggestions'](_0x2d4428,'insertion'))_0x37cddd['isOwn']&&!_0x37cddd['isNextTo']&&_0x44f32f['add'](_0x2904ec);for(const _0x3fd997 of _0x44f32f)if(_0x3fd997['isMultiRange']){const _0x4ca3ee=_0x3fd997['getRanges']();(!_0x3fd997['attributes']||!_0x3fd997['attributes']['skipNestingCheck'])&&(_0x4ca3ee['every'](_0x38eaf2=>_0x2d4428['some'](_0x3eff06=>_0x3eff06['containsRange'](_0x38eaf2,!0x0)))&&_0x3fd997['discard']());if(_0x2d4428['every'](_0x3262c9=>_0x4ca3ee['some'](_0x57ab6e=>_0x57ab6e['containsRange'](_0x3262c9,!0x0)))){const _0x433665=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x581db8,'accept');return this['forceDefaultExecution'](()=>_0x433665(_0x5a3769,null,_0x11ace7)),null;}}else{const _0x13d2cc=_0x3fd997['getFirstRange']();_0x2d4428['some'](_0x4bad46=>_0x4bad46['containsRange'](_0x13d2cc,!0x0))&&_0x3fd997['discard']();if(_0x2d4428['every'](_0x5a1f01=>_0x13d2cc['containsRange'](_0x5a1f01,!0x0))){const _0x9ffd2f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x581db8,'accept');return this['forceDefaultExecution'](()=>_0x9ffd2f(_0x2d4428,null,_0x11ace7)),null;}}const _0xd96da0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x581db8,'join');let _0xcec512=null;for(const _0x12fad8 of this['getSuggestions']())if(_0x12fad8['author']['id']==_0x2254e9['id']&&_0x12fad8['isInContent']&&'deletion'==_0x12fad8['type']&&_0x12fad8['subType']==_0x581db8&&sn(_0x12fad8,_0x11ace7)&&(_0xd96da0(_0x12fad8['getRanges'](),_0x2d4428)||_0xd96da0(_0x2d4428,_0x12fad8['getRanges']()))){if(_0xcec512){if(_0x12fad8['commentThread']&&_0x12fad8['commentThread']['length'])continue;for(const _0x3484f7 of _0x12fad8['getRanges']())_0xcec512['isIntersectingWithRange'](_0x3484f7)||_0xcec512['addRange'](_0x3484f7);_0x12fad8['removeMarkers']();}else{_0xcec512=_0x12fad8;for(const _0x2c9d14 of _0x2d4428)_0x12fad8['isIntersectingWithRange'](_0x2c9d14)||_0x12fad8['addRange'](_0x2c9d14);}}if(_0xcec512)return _0xcec512;_0x44f32f['clear']();for(const {suggestion:_0x3bd94d,meta:_0x125de4}of this['_findSuggestions'](_0x2d4428,'deletion'))_0x125de4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x125de4['containsRangeInObject']&&!_0x125de4['isInsideObject'])&&sn(_0x3bd94d,_0x11ace7)&&_0x44f32f['add'](_0x3bd94d);for(const _0x32b2a4 of _0x44f32f){const _0x1efbfb=_0x32b2a4['getRanges']();if(!_0x11ace7||!_0x11ace7['skipNestingCheck']){if(_0x2d4428['every'](_0x23de9c=>_0x1efbfb['some'](_0x5a0e59=>_0x5a0e59['containsRange'](_0x23de9c,!0x0))))return _0x32b2a4;}(!_0x32b2a4['attributes']||!_0x32b2a4['attributes']['skipNestingCheck'])&&(_0x1efbfb['every'](_0xa1d23c=>_0x2d4428['some'](_0xd9ce87=>_0xd9ce87['containsRange'](_0xa1d23c,!0x0)))&&_0x32b2a4['discard']());}const _0x452fa7=_0x367f2e(),_0x31ae91=_0x2254e9['id'],_0x113bc6='deletion:'+_0x581db8,_0x5648e3=this['_setSuggestionData']({'id':_0x452fa7,'type':_0x113bc6,'createdAt':new Date(),'authorId':_0x31ae91,'attributes':_0x11ace7});for(const _0x7cf02f of _0x2d4428)_0x7cf02f['detach'](),_0x7cf02f['isCollapsed']||'$graveyard'==_0x7cf02f['root']['rootName']||this['_addSuggestionMarker'](_0x113bc6,_0x452fa7,_0x31ae91,_0x7cf02f,x['getMultiRangeId']());return _0x5648e3;}['markAttributeChange'](_0x2fbdf5,_0x58fac5,_0x3e9176,_0x121ea0,_0x5b55fe){if(_0x2fbdf5['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x53bc17=this['editor']['plugins']['get']('Users')['me']['id'],_0x5eedee=Array['from'](this['_suggestions']['values']())['filter'](_0x472ed1=>'attribute'==_0x472ed1['type']&&_0x472ed1['data']['key']==_0x58fac5&&_0x472ed1['isIntersectingWithRange'](_0x2fbdf5));if(this['_trackingSessionId']&&(_0x5b55fe['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x208281=this['_findSuggestions'](_0x2fbdf5,'insertion')['filter'](({meta:_0x3d4db4})=>_0x3d4db4['isOwn']&&!_0x3d4db4['isInsideObject']&&!_0x3d4db4['isNextTo'])['map'](({suggestion:_0x43ec02})=>_0x43ec02);_0x5eedee['unshift'](..._0x208281);}const _0xc1f7b2=new Map([[_0x2fbdf5,_0x3e9176]]);for(const _0x5ce703 of _0x5eedee){const _0x343850='attribute'==_0x5ce703['type']?_0x5ce703['data']['oldValue']:void 0x0,_0x5f0ada=_0x5ce703['getFirstRange'](),_0x27df3a=Array['from'](_0xc1f7b2['keys']())['find'](_0x2ada1b=>_0x2ada1b['isIntersecting'](_0x5f0ada));if(!_0x27df3a)continue;const _0x19c4dc=_0x27df3a['getDifference'](_0x5f0ada);this['_isBlockAttribute'](_0x58fac5)&&'insertion'==_0x5ce703['type']&&0x0!=_0x19c4dc['length']||(_0xc1f7b2['delete'](_0x27df3a),_0x19c4dc['forEach'](_0x43c077=>{_0xc1f7b2['set'](_0x43c077,_0x3e9176);}),'insertion'!=_0x5ce703['type']&&_0x343850!=_0x121ea0&&_0xc1f7b2['set'](_0x27df3a['getIntersection'](_0x5f0ada),_0x343850));}const _0x5647a7=[];for(const [_0x22ba9c,_0xfb77ec]of _0xc1f7b2){const _0x3e815c=_0x367f2e(),_0x3691ef={'key':_0x58fac5,'oldValue':_0xfb77ec,'newValue':_0x121ea0};_0x58fac5['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':_0x58fac5});const _0x21811d=('attribute:'+(_0x58fac5+'|'+Ht({'newValue':_0x121ea0})))['substring'](0x0,0x3c),_0x3ae76a=this['_setSuggestionData']({'id':_0x3e815c,'type':_0x21811d,'data':_0x3691ef,'createdAt':new Date(),'authorId':_0x53bc17,'attributes':_0x5b55fe});_0x5647a7['push'](_0x3ae76a),this['_addSuggestionMarker'](_0x21811d,_0x3e815c,_0x53bc17,_0x22ba9c);}return _0x5647a7;}['enableDefaultAttributesIntegration'](_0x4af089){this['enableCommand'](_0x4af089,(_0xd6786f,..._0x56f2d1)=>{this['recordAttributeChanges'](()=>{_0xd6786f(..._0x56f2d1);});});}['registerBlockAttribute'](_0xcb563f){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0xcb563f);}['registerInlineAttribute'](_0x5d7d33){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x5d7d33);}['startTrackingSession'](_0x38faea){return this['_trackingSessionId']=void 0x0!==_0x38faea?_0x38faea:_0x367f2e(),this['_trackingSessionId'];}['_getAttributeKey'](_0x539d91){return'attribute'==_0x539d91['type']?_0x539d91['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x5c1b24){if(0x0==_0x5c1b24['length'])return;const _0x1ca54=this['editor'],_0x3dd442=_0x1ca54['plugins']['get'](_0x287d9f),_0x4ca2b3=[];_0x1ca54['model']['change'](_0x1b15dc=>{for(let _0x47b6f7=0x0;_0x47b6f7<_0x5c1b24['length'];_0x47b6f7++){const _0x478859=_0x5c1b24[_0x47b6f7];if(_0x478859['baseVersion']=_0x1ca54['model']['document']['version'],_0x478859['isDocumentOperation']=!0x0,_0x3dd442['isMarkedRemoveOperation'](_0x478859)){const _0x31d1ab=Lt(_0x478859['newRange'],_0x1ca54['model']);_0x4ca2b3['unshift'](_0x95b134['fromRange'](_0x31d1ab));}else switch(_0x478859['type']){case'rename':{const _0x5b10eb=_0x478859['oldName'],_0x52e448=_0x478859['newName'];if(_0x5b10eb==_0x52e448)break;_0x1b15dc['batch']['addOperation'](_0x478859),_0x1ca54['model']['applyOperation'](_0x478859);const _0x37ada5='$elementName',_0x5e7002=_0x478859['position'],_0x5406bb=_0x1ca54['model']['createRange'](_0x5e7002,_0x1ca54['model']['createPositionAt'](_0x5e7002['nodeAfter'],'end'));this['markAttributeChange'](_0x5406bb,_0x37ada5,_0x5b10eb,_0x52e448,{'groupId':_0x367f2e()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x1d3153=_0x478859['oldValue'],_0x5223b4=_0x478859['newValue'];if(_0x1d3153==_0x5223b4)break;_0x1b15dc['batch']['addOperation'](_0x478859),_0x1ca54['model']['applyOperation'](_0x478859);const _0x2f48d0=_0x478859['key'];if(!this['_isRegisteredAttribute'](_0x2f48d0))break;const _0x4dc32e=Lt(_0x478859['range'],_0x1ca54['model']);this['markAttributeChange'](_0x4dc32e,_0x2f48d0,_0x1d3153,_0x5223b4,{'groupId':_0x367f2e()});break;}case'insert':{_0x1b15dc['batch']['addOperation'](_0x478859),_0x1ca54['model']['applyOperation'](_0x478859);if(_0x5c1b24[_0x47b6f7+0x1]&&'move'==_0x5c1b24[_0x47b6f7+0x1]['type'])break;const _0x43531b=_0x478859['position'],_0xa7f354=_0x478859['howMany'],_0x264e5e=Lt(_0x1ca54['model']['createRange'](_0x43531b,_0x43531b['getShiftedBy'](_0xa7f354)),_0x1ca54['model']);this['markInsertion'](_0x264e5e);break;}case'split':{_0x1b15dc['batch']['addOperation'](_0x478859),_0x1ca54['model']['applyOperation'](_0x478859);const _0x439c39=_0x478859['splitPosition'],_0x5d1bea=_0x478859['moveTargetPosition'];this['markInsertion'](_0x1ca54['model']['createRange'](_0x439c39,_0x5d1bea));break;}case'move':case'remove':_0x1b15dc['batch']['addOperation'](_0x478859),_0x1ca54['model']['applyOperation'](_0x478859);}}for(const _0x433038 of _0x4ca2b3)_0x433038['detach'](),this['markDeletion'](_0x433038);});}['_setSuggestionRange'](_0x42ada8,_0x59430c){const _0x1dd4e2=_0x42ada8['getFirstMarker']();this['_model']['change'](_0x29b99d=>{_0x29b99d['updateMarker'](_0x1dd4e2,{'range':_0x59430c});});}['_addThreadToSuggestion'](_0x37dfd1){const _0x1f3f48=_0x37dfd1['id'],_0x3b6a60=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1f3f48)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3b6a60,'threadId':_0x1f3f48,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3f0eda=this['_commentsRepository']['getCommentThread'](_0x1f3f48);_0x3f0eda['unbind']('isRemovable'),_0x3f0eda['isRemovable']=!0x1,_0x37dfd1['commentThread']=_0x3f0eda;}['_checkSuggestionCorrectness'](_0x5bc975,_0x1b4dca,_0x1d1160,_0x15d9bb){if(_0x5bc975['type']!=_0x1b4dca||_0x5bc975['subType']!=_0x1d1160||_0x5bc975['creator']['id']!=_0x15d9bb)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x69a1a8('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5d8874,_0x213191){const _0x34ab7e=_0x5d8874['getFirstRange']();if(_0x213191['isEqual'](_0x34ab7e))_0x5d8874['removeMarkers']();else{if(_0x34ab7e['containsRange'](_0x213191)){const _0x298155=this['_model']['createPositionAt'](_0x213191['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5d8874,this['_model']['createRange'](_0x34ab7e['start'],_0x298155));const _0x45d73a=_0x367f2e(),_0x3e6288=_0x5d8874['creator']['id'],_0x5d3818=_0x5d8874['type']+':'+_0x5d8874['subType'];this['_setSuggestionData']({'id':_0x45d73a,'type':_0x5d3818,'createdAt':new Date(),'authorId':_0x3e6288,'data':_0x5d8874['data'],'attributes':_0x5d8874['attributes']});const _0x16b759=this['_model']['createPositionAt'](_0x213191['end']['parent'],'after'),_0x3c3405=this['_model']['createRange'](_0x16b759,_0x34ab7e['end']);this['_addSuggestionMarker'](_0x5d3818,_0x45d73a,_0x3e6288,_0x3c3405);}else{if(_0x34ab7e['containsPosition'](_0x213191['start'])){const _0x495159=this['_model']['createPositionAt'](_0x213191['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5d8874,this['_model']['createRange'](_0x34ab7e['start'],_0x495159));}else{const _0xf169f3=this['_model']['createPositionAt'](_0x213191['end']['parent'],'after');this['_setSuggestionRange'](_0x5d8874,this['_model']['createRange'](_0xf169f3,_0x34ab7e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x535c49){for(const {suggestion:_0x2a40a4,meta:_0x16063c}of this['_findSuggestions'](_0x535c49,'insertion')){if(!_0x16063c['isOwn'])continue;const _0xa33a17=_0x2a40a4['getRanges']();for(const _0xa7c106 of _0xa33a17)if(!_0x535c49['getDifference'](_0xa7c106)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5e95b3){return this['editor']['plugins']['get']('Users')['getUser'](_0x5e95b3);}['_getExternalAuthor'](_0x2b81f4){const _0x4b61d8=this['editor']['plugins']['get']('Users'),_0x3910e5=_0x3e6d3d('external:'+_0x2b81f4),_0x5bcd59=_0x4b61d8['getUser'](_0x3910e5);return _0x5bcd59||_0x4b61d8['addUser']({'id':_0x3910e5,'name':_0x2b81f4});}['_createSuggestion'](_0x107f85,_0x4a3098,_0x43eb15,_0x2014c5,_0xd14a80,_0x402ff4){const _0x5e3781=this['_getAuthorFromId'](_0x2014c5);if(!_0x5e3781)throw new _0x69a1a8('track-changes-user-not-found',this,{'authorId':_0x2014c5,'suggestionId':_0x43eb15});const _0x2215cc=this['_suggestionFactory']['buildSuggestion'](_0x107f85,_0x4a3098,_0x43eb15,_0x5e3781,_0xd14a80,_0x2856e0=>{this['_updateSuggestionData'](_0x43eb15,{'attributes':_0x2856e0});const _0x1b5948=this['getSuggestion'](_0x43eb15);this['_joinWithAdjacentSuggestions'](new Set([_0x1b5948])),this['_refreshSuggestionsChain'](new Set([_0x1b5948]));},_0x402ff4);return this['listenTo'](_0x2215cc,'accept',()=>{this['_updateSuggestionData'](_0x43eb15,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2215cc,'discard',()=>{this['_updateSuggestionData'](_0x43eb15,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x43eb15,_0x2215cc),this['_suggestionState']['set'](_0x2215cc,'notReady'),_0x2215cc;}['_splitMarkerName'](_0x582377){return Gt(_0x582377);}['_breakSuggestionMarker'](_0x544ff9,_0xb61cf7,_0x22ef82){const _0x3da7c9=_0x544ff9['getFirstRange'](),_0x2e2da1=_0x3da7c9['start'],_0x3636a1=_0x3da7c9['end'];this['_setSuggestionRange'](_0x544ff9,this['_model']['createRange'](_0x2e2da1,_0xb61cf7));const _0x50f7cd=_0x367f2e(),_0xdeff48=_0x544ff9['creator']['id'],_0x10d017=_0x544ff9['type']+(_0x544ff9['subType']?':'+_0x544ff9['subType']:'');this['_setSuggestionData']({'id':_0x50f7cd,'type':_0x10d017,'createdAt':new Date(),'authorId':_0xdeff48,'originalSuggestionId':_0x544ff9['_originalSuggestionId']||_0x544ff9['id'],'attributes':_0x544ff9['attributes'],'data':_0x544ff9['data']});const _0x3b6598=this['_getAttributeKey'](_0x544ff9);('formatBlock'==_0x544ff9['type']||_0x3b6598&&this['_isBlockAttribute'](_0x3b6598))&&(_0x22ef82=this['_model']['createPositionBefore'](_0x22ef82['parent'])),this['_addSuggestionMarker'](_0x10d017,_0x50f7cd,_0xdeff48,this['_model']['createRange'](_0x22ef82,_0x3636a1));}['_findSuggestions'](_0x2c3f1d,_0xa2c3dc=null){const _0xc86683=[],_0x4c8459=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2c3f1d)||(_0x2c3f1d=[_0x2c3f1d]);for(const _0x117ff6 of this['getSuggestions']()){if(!_0x117ff6['isInContent'])continue;if(_0xa2c3dc&&_0x117ff6['type']!=_0xa2c3dc)continue;let _0xe24894=!0x1;for(const _0xc10616 of _0x117ff6['getRanges']()){for(const _0x331211 of _0x2c3f1d){const _0xfd8b30=_0x331211['start']['isEqual'](_0xc10616['end'])||_0x331211['end']['isEqual'](_0xc10616['start']);if(_0xfd8b30||_0x331211['getIntersection'](_0xc10616)){const _0x2b0ae4=_0x331211['containsRange'](_0xc10616)&&zt(this['_model']['schema'],_0xc10616['start'],_0x331211),_0x24d52c=_0xc10616['containsRange'](_0x331211)&&zt(this['_model']['schema'],_0x331211['start'],_0xc10616);_0xc86683['push']({'suggestion':_0x117ff6,'meta':{'isOwn':_0x4c8459==_0x117ff6['author'],'isNextTo':_0xfd8b30,'isInsideObject':_0x2b0ae4,'containsRangeInObject':_0x24d52c}}),_0xe24894=!0x0;break;}}if(_0xe24894)break;}}return _0xc86683;}['_addSuggestionMarker'](_0x367232,_0x238f50,_0x3217fd,_0xe130e3,_0x2e0b32){this['_model']['change'](_0x4e954d=>{let _0x52be1='suggestion:'+_0x367232+':'+_0x238f50+':'+_0x3217fd;_0x2e0b32&&(_0x52be1=_0x52be1+':'+_0x2e0b32),_0x4e954d['addMarker'](_0x52be1,{'range':_0xe130e3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x310e09){const _0x1165ac=_0x310e09['previous'],_0x110da4=_0x310e09['next'];_0x310e09['previous']=null,_0x310e09['next']=null,null!=_0x1165ac&&_0x1165ac['next']==_0x310e09&&(_0x1165ac['next']=_0x110da4),null!=_0x110da4&&_0x110da4['previous']==_0x310e09&&(_0x110da4['previous']=_0x1165ac),'ready'==this['_suggestionState']['get'](_0x310e09)&&(this['_suggestionState']['set'](_0x310e09,'removed'),this['fire']('suggestionUnloaded',_0x310e09,_0x1165ac,_0x110da4));}['_setSuggestionData'](_0x4102c5){const _0x2100e1=_0x4102c5['id'],_0xd3c369=this['addSuggestionData'](_0x4102c5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2c5e28=this['editor']['plugins']['get']('PendingActions'),_0x9eb86b=_0xd3c369['hasComments'],_0x401fc6=_0xd3c369['subType']?_0xd3c369['type']+':'+_0xd3c369['subType']:_0xd3c369['type'],_0x5e7fc0=this['editor']['locale'],_0x97a9ff=_0x2c5e28['add'](o(_0x5e7fc0,'PENDING_ACTION_SUGGESTION')),_0x6382a3={'id':_0x2100e1,'type':_0x401fc6,'hasComments':_0x9eb86b,'data':_0x4102c5['data']||null,'originalSuggestionId':_0x4102c5['originalSuggestionId']||null,'attributes':_0xd3c369['attributes']};this['_adapter']['addSuggestion'](_0x6382a3)['then'](_0x2ae443=>{_0xd3c369['_saved']=!0x0,_0x2c5e28['remove'](_0x97a9ff),_0x2ae443&&_0x2ae443['createdAt']&&(this['_suggestions']['get'](_0x2100e1)['createdAt']=_0x2ae443['createdAt']);})['catch'](_0x305799=>{throw _0xc84ee6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xd3c369['discard']();}),_0xd3c369['stopListening'](),this['_suggestions']['delete'](_0xd3c369['id']),this['_suggestionState']['delete'](_0xd3c369),_0x305799;});}return _0xd3c369;}['_isBlockAttribute'](_0x2b4bfb){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x2b4bfb);}['_isInlineAttribute'](_0x31f395){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x31f395);}['_updateSuggestionData'](_0x4987f9,_0x8a7858){const _0xd043da=this['editor']['plugins']['get']('PendingActions'),_0x55610a=this['getSuggestion'](_0x4987f9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x55610a['_saved']){const _0x3c2653=_0xd043da['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4987f9,_0x8a7858)['then'](()=>{_0xd043da['remove'](_0x3c2653);});}else _0x55610a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4987f9,_0x8a7858);});}}['_getSuggestionData'](_0x1ce6a2){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x69a1a8('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1ce6a2);}['_handleNewSuggestionMarker'](_0x199434){const {id:_0x1fa54b,type:_0x972ed6,subType:_0x45fe4b,authorId:_0x8b1fb0}=this['_splitMarkerName'](_0x199434),_0x5635b9=this['_suggestions']['get'](_0x1fa54b)||this['_createSuggestion'](_0x972ed6,_0x45fe4b,_0x1fa54b,_0x8b1fb0,{});switch(this['_checkSuggestionCorrectness'](_0x5635b9,_0x972ed6,_0x45fe4b,_0x8b1fb0),this['_suggestionState']['get'](_0x5635b9)){case'notReady':this['_getSuggestionData'](_0x1fa54b)['then'](_0xc27681=>{let _0x5df85d=Promise['resolve']();_0xc27681['hasComments']&&(_0x5df85d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1fa54b})),_0x5df85d['then'](()=>{this['addSuggestionData'](_0xc27681)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5635b9,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1fa54b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5635b9,'ready'),this['fire']('suggestionLoaded',_0x5635b9);break;case'ready':this['fire']('suggestionChanged',_0x5635b9);}return _0x5635b9['addMarkerName'](_0x199434),_0x5635b9;}['_refreshSuggestionsChain'](_0x4a80e6){const _0x3f8b89=Array['from'](_0x4a80e6),_0x23d722=_0x3f8b89['filter'](_0x331606=>'attribute'==_0x331606['type']);this['_refreshAttributeSuggestionsChain'](_0x23d722);const _0x48003f=_0x3f8b89['filter'](_0x5cb8dd=>!_0x5cb8dd['isMultiRange']&&'attribute'!=_0x5cb8dd['type']),_0x50c060=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2383dc=>!_0x2383dc['isMultiRange']&&'attribute'!=_0x2383dc['type']),_0xd52cab=_0x50c060['filter'](_0x537577=>!_0x4a80e6['has'](_0x537577)),_0x2cac1b=new Map(_0x50c060['map'](_0x452ea5=>[_0x452ea5,this['_suggestionFactory']['getSuggestionCallback'](_0x452ea5['type'],_0x452ea5['subType'],'chain')])),_0x1d5567=new Map(_0x50c060['map'](_0x1e9cd9=>[_0x1e9cd9,_0x1e9cd9['getFirstRange']()])),_0x1a4554=new Set(),_0x43929e=new Set();for(let _0x8700d1=0x0;_0x8700d1<_0x48003f['length'];_0x8700d1++)_0x41399f(_0x48003f[_0x8700d1],_0x48003f,_0x8700d1+0x1);for(let _0x12ed41=0x0;_0x12ed41<_0x48003f['length'];_0x12ed41++)_0x41399f(_0x48003f[_0x12ed41],_0xd52cab,0x0);const _0x8df946=new Set();for(let _0x31f3af=0x0;_0x31f3af<_0x48003f['length'];_0x31f3af++){const _0x359468=_0x48003f[_0x31f3af];!_0x43929e['has'](_0x359468)&&_0x359468['previous']&&(_0x8df946['add'](_0x359468['previous']),_0x359468['previous']['next']===_0x359468&&(_0x359468['previous']['next']=null),_0x359468['previous']=null),!_0x1a4554['has'](_0x359468)&&_0x359468['next']&&(_0x8df946['add'](_0x359468['next']),_0x359468['next']['previous']===_0x359468&&(_0x359468['next']['previous']=null),_0x359468['next']=null);}function _0x41399f(_0x4c1574,_0x26c647,_0x43bf71){for(let _0x24c925=_0x43bf71;_0x24c925<_0x26c647['length'];_0x24c925++){const _0x4cf5b6=_0x5b63d9(_0x4c1574,_0x26c647[_0x24c925]);_0x4cf5b6&&(_0x4cf5b6[0x0]['next']=_0x4cf5b6[0x1],_0x4cf5b6[0x1]['previous']=_0x4cf5b6[0x0],_0x1a4554['add'](_0x4cf5b6[0x0]),_0x43929e['add'](_0x4cf5b6[0x1]));}}function _0x5b63d9(_0x595878,_0x6a63e6){if(_0x595878['author']['id']!==_0x6a63e6['author']['id'])return null;const _0x55f092=_0x2cac1b['get'](_0x595878)(_0x595878,_0x6a63e6,_0x1d5567['get'](_0x595878),_0x1d5567['get'](_0x6a63e6));if(!_0x55f092)return null;return _0x2cac1b['get'](_0x6a63e6)(_0x595878,_0x6a63e6,_0x1d5567['get'](_0x595878),_0x1d5567['get'](_0x6a63e6))?_0x55f092[0x1]['commentThread']&&_0x55f092[0x1]['commentThread']['length']?null:_0x55f092:null;}_0x8df946['size']&&this['_refreshSuggestionsChain'](_0x8df946);}['_refreshAttributeSuggestionsChain'](_0x159135){if(0x0==_0x159135['length'])return;const _0x2ca215=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21e8f0=>'attribute'==_0x21e8f0['type']&&_0x21e8f0['_isDataLoaded']),_0x5e2650=[],_0x1d14cb=new Map();for(const _0x21f0d0 of _0x2ca215){const _0x10cff5=_0x3e6d3d(_0x21f0d0['attributes']);_0x1d14cb['has'](_0x10cff5)||(_0x1d14cb['set'](_0x10cff5,_0x5e2650['length']),_0x5e2650['push']([]));const _0x186168=_0x1d14cb['get'](_0x10cff5);_0x5e2650[_0x186168]['push'](_0x21f0d0);}!(function(){_0x5e2650['sort']((_0x1ac535,_0x200a59)=>{const _0x93a3fd=_0x1ac535[0x0]['createdAt'],_0xcc7570=_0x200a59[0x0]['createdAt'];return _0x93a3fd==_0xcc7570?_0x1ac535[0x0]['attributes']['groupId']<_0x200a59[0x0]['attributes']['groupId']?-0x1:0x1:_0x93a3fd<_0xcc7570?-0x1:0x1;});for(const _0x4f539a of _0x5e2650)_0x4f539a['sort']((_0x35f484,_0x55824c)=>_0x35f484['id']<_0x55824c['id']?-0x1:0x1);}());for(let _0x39366f=0x0;_0x39366f<_0x5e2650['length'];_0x39366f++){if(0x0==_0x5e2650[_0x39366f]['length'])continue;const _0x2f41d5=[];for(let _0x2ad53e=_0x39366f+0x1;_0x2ad53e<_0x5e2650['length'];_0x2ad53e++)0x0!=_0x5e2650[_0x2ad53e]['length']&&_0x18d75a(_0x5e2650[_0x39366f],_0x5e2650[_0x2ad53e])&&_0x2f41d5['push'](_0x2ad53e);for(const _0x5516bc of _0x2f41d5)_0x5e2650[_0x39366f]=_0x5e2650[_0x39366f]['concat'](_0x5e2650[_0x5516bc]),_0x5e2650[_0x5516bc]=[];}for(const _0x4d6e8c of _0x5e2650)for(let _0x44fe64=0x0;_0x44fe64<_0x4d6e8c['length'];_0x44fe64++){const _0x40cc54=_0x4d6e8c[_0x44fe64+0x1]||null;_0x4d6e8c[_0x44fe64]['next']!==_0x40cc54&&(_0x4d6e8c[_0x44fe64]['next']=_0x40cc54);}for(const _0x4ab7c8 of _0x5e2650)for(let _0x40599a=0x0;_0x40599a<_0x4ab7c8['length'];_0x40599a++){const _0x467648=_0x4ab7c8[_0x40599a-0x1]||null;_0x4ab7c8[_0x40599a]['previous']!==_0x467648&&(_0x4ab7c8[_0x40599a]['previous']=_0x467648);}function _0x18d75a(_0x46a5a5,_0x50f7e7){if(_0x46a5a5[0x0]['attributes']['groupId']!==_0x50f7e7[0x0]['attributes']['groupId']&&_0x46a5a5[0x0]['author']!==_0x50f7e7[0x0]['author'])return!0x1;if(!function(_0x370712,_0x2da694){if(!_0x370712['hasComments']&&!_0x2da694['hasComments'])return!0x0;if(_0x370712['hasComments']&&_0x2da694['hasComments'])return!0x1;if(_0x370712['hasComments']&&_0x2da694['createdAt']<_0x370712['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2da694['hasComments']&&_0x370712['createdAt']<_0x2da694['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x46a5a5[0x0],_0x50f7e7[0x0]))return!0x1;const _0x3f69ef=Pt(_0x46a5a5[0x0]['attributes'],['groupId','trackingSessionId']),_0x1f4757=Pt(_0x50f7e7[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x4f47b1(_0x3f69ef,_0x1f4757))return!0x1;if(_0x46a5a5[0x0]['attributes']['groupId']==_0x50f7e7[0x0]['attributes']['groupId'])return!0x0;if(_0x46a5a5[0x0]['attributes']['trackingSessionId']!==_0x50f7e7[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x46a5a5['every'](_0x4f7d1e=>_0x50f7e7['some'](_0x274095=>_0x4f7d1e['getFirstRange']()['isEqual'](_0x274095['getFirstRange']())))&&_0x50f7e7['every'](_0x508269=>_0x46a5a5['some'](_0x5df140=>_0x508269['getFirstRange']()['isEqual'](_0x5df140['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x263e93){const _0x39b9aa=Array['from'](_0x263e93),_0x487685=this['getSuggestions']({'skipNotAttached':!0x0}),_0x259a47=_0x487685['filter'](_0x43e407=>!_0x263e93['has'](_0x43e407)),_0x19c4b0=new Map(_0x39b9aa['map'](_0x505336=>[_0x505336,this['_suggestionFactory']['getSuggestionCallback'](_0x505336['type'],_0x505336['subType'],'join')])),_0x1f440f=new Map(_0x487685['map'](_0x38b116=>[_0x38b116,_0x38b116['getRanges']()]));for(let _0x31b1c3=0x0;_0x31b1c3<_0x39b9aa['length'];_0x31b1c3++){if(_0xf56019(this,_0x39b9aa[_0x31b1c3],_0x39b9aa,_0x31b1c3+0x1))return!0x0;}for(let _0x508449=0x0;_0x508449<_0x39b9aa['length'];_0x508449++){if(_0xf56019(this,_0x39b9aa[_0x508449],_0x259a47,0x0))return!0x0;}return!0x1;function _0xf56019(_0x4c183c,_0x27b471,_0x36828a,_0x391bc0){for(let _0x30ae92=_0x391bc0;_0x30ae92<_0x36828a['length'];_0x30ae92++){const _0x42b7e2=_0x36828a[_0x30ae92];if(_0x42b7e2['type']!==_0x27b471['type']||_0x42b7e2['author']['id']!==_0x27b471['author']['id']||_0x42b7e2['subType']!==_0x27b471['subType'])continue;if(!en(_0x27b471,_0x42b7e2))continue;if('attribute'==_0x27b471['type']&&_0x27b471['data']['oldValue']!=_0x42b7e2['data']['oldValue'])continue;if('attribute'==_0x27b471['type']&&_0x4c183c['_isBlockAttribute'](_0x27b471['data']['key']))continue;if('formatBlock'==_0x27b471['type']){const _0x37062d=_0x4c183c['editor']['model'],_0x228e64=_0x27b471['getContainedElement']();if(_0x228e64&&(_0x37062d['schema']['isObject'](_0x228e64)||_0x37062d['schema']['isLimit'](_0x228e64)))continue;}const _0x2160c1=_0x19c4b0['get'](_0x27b471),_0x1b994b=_0x1f440f['get'](_0x27b471),_0x44fb24=_0x1f440f['get'](_0x42b7e2),_0x46ea79=_0x27b471['commentThread']&&_0x27b471['commentThread']['length'],_0x5c5382=_0x42b7e2['commentThread']&&_0x42b7e2['commentThread']['length'];if(!_0x46ea79&&_0x2160c1(_0x44fb24,_0x1b994b))return _0x4c183c['_joinSuggestions'](_0x42b7e2,_0x27b471),_0x1f440f['delete'](_0x27b471),!0x0;if(!_0x5c5382&&_0x2160c1(_0x1b994b,_0x44fb24))return _0x4c183c['_joinSuggestions'](_0x27b471,_0x42b7e2),_0x1f440f['delete'](_0x42b7e2),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4fea5c,_0x500df2){if(_0x4fea5c['isMultiRange']){for(const _0xd99fd8 of _0x500df2['getRanges']())_0x4fea5c['addRange'](_0xd99fd8);}else{const _0x247d41=_0x500df2['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4fea5c,this['_model']['createRange'](_0x4fea5c['getFirstRange']()['start'],_0x247d41));}_0x500df2['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4fe857,_0x1279db,_0x31a195){const _0x3add6c=_0x4fe857['startsWith']('format')||_0x4fe857['startsWith']('attribute')?'FORMATTING':_0x4fe857['toUpperCase']();return o(this['editor']['locale'],_0x1279db+'_'+_0x3add6c+'_SUGGESTION_ANNOUNCEMENT',_0x31a195);}['_initAriaMarkerChangeAnnouncements'](){const _0x86ccb6=this['editor'];if(!_0x86ccb6['ui'])return;const {ariaLiveAnnouncer:_0x156983}=_0x86ccb6['ui'];_0x202c5c(this['_model'],({left:_0x4168a8,entered:_0x20025e})=>{for(const _0x15db76 of _0x4168a8){const {group:_0x4565fd,type:_0x310704}=this['_splitMarkerName'](_0x15db76['name']);if('suggestion'===_0x4565fd){_0x156983['announce'](this['_getMarkerAnnouncementText'](_0x310704,'LEAVE'));break;}}for(const _0xb32d55 of _0x20025e){const {group:_0x4d91bc,type:_0xdb8fd4}=this['_splitMarkerName'](_0xb32d55['name']);if('suggestion'===_0x4d91bc){_0x156983['announce'](this['_getMarkerAnnouncementText'](_0xdb8fd4,'ENTER',_0x11ecdd(_0x3d9514)));break;}}});}['_processAttributeChanges'](_0x45fad8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x14cddb=this['editor'],_0x49f364=_0x14cddb['model']['document']['differ']['getChanges']();if(0x0==_0x49f364['length'])return!0x1;const _0x354b6b=[],_0x3b2bee=_0x49f364['filter'](_0x2ec446=>'attribute'==_0x2ec446['type']),_0x36b334=_0x49f364['filter'](_0x20cc13=>'insert'==_0x20cc13['type']&&'$text'!=_0x20cc13['name']),_0x4b357d=_0x49f364['filter'](_0x54eaf5=>'remove'==_0x54eaf5['type']&&'$text'!=_0x54eaf5['name']);for(const _0x36ee2f of _0x3b2bee)_0x354b6b['push']({'key':_0x36ee2f['attributeKey'],'newValue':_0x36ee2f['attributeNewValue'],'oldValue':_0x36ee2f['attributeOldValue'],'range':Zt(_0x36ee2f['range'],_0x14cddb['model'])});for(const _0x53b3d2 of _0x36b334){const _0x1c3da0=_0x4b357d['find'](_0x1a5cb7=>_0x1a5cb7['position']['isEqual'](_0x53b3d2['position']));_0x1c3da0&&_0x354b6b['push']({'key':m,'newValue':_0x53b3d2['name'],'oldValue':_0x1c3da0['name'],'range':_0x14cddb['model']['createRangeOn'](_0x53b3d2['position']['nodeAfter'])});}return 0x0!=_0x354b6b['length']&&this['_reduceExistingSuggestions'](_0x45fad8,_0x354b6b);}['_processAttributeSuggestions'](_0x59f034){let _0x111af5=!0x1;const _0x32d730=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x88ca5=>_0x88ca5['data']['newRange']&&_0x88ca5['name']['startsWith']('suggestion:attribute:'));for(const _0x602392 of _0x32d730){const {subType:_0x306c66,id:_0x36030d}=this['_splitMarkerName'](_0x602392['name']),_0x2871e4=_0x306c66['split']('|')[0x0];for(const _0x1fa21a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1fa21a['id']!=_0x36030d&&'attribute'==_0x1fa21a['type']&&_0x1fa21a['data']&&_0x1fa21a['data']['key']==_0x2871e4&&_0x1fa21a['getFirstRange']()['isIntersecting'](_0x602392['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1fa21a,_0x602392['data']['newRange'],_0x59f034),_0x111af5=!0x0);}return _0x111af5;}['recordAttributeChanges'](_0x35700c){this['_recordAttributeSuggestions']=!0x0,_0x35700c();}['_isRegisteredAttribute'](_0x2abcf2){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x2abcf2);}['_reduceExistingSuggestions'](_0x2a7f9d,_0x1f751b){if(0x0==_0x1f751b['length'])return!0x1;let _0x26d3ab=!0x1;for(const _0x3e547e of _0x1f751b){const _0x3a08a2=this['_findSuggestions'](_0x3e547e['range'],'attribute')['filter'](_0xb3c81f=>!_0xb3c81f['meta']['isNextTo'])['map'](_0x551474=>_0x551474['suggestion']),_0x3c2ef0=_0x3e6d3d({'newValue':_0x3e547e['newValue']});_0x3a08a2['filter'](_0x5a4b65=>{const [_0x33d5de,_0x2b76aa]=_0x5a4b65['subType']['split']('|');return _0x33d5de==_0x3e547e['key']&&_0x2b76aa!=_0x3c2ef0;})['forEach'](_0x3d7d32=>{this['_reduceSuggestionAttributeRange'](_0x3d7d32,_0x3e547e['range'],_0x2a7f9d),_0x26d3ab=!0x0;});}return _0x26d3ab;}['_reduceSuggestionAttributeRange'](_0x79d9f2,_0x485b0a,_0x4ee745){const _0xd0faff=_0x79d9f2['getFirstRange']()['getDifference'](_0x485b0a);0x0!==_0xd0faff['length']?0x1!==_0xd0faff['length']?this['_breakSuggestionMarker'](_0x79d9f2,_0x485b0a['start'],_0x485b0a['end']):this['_setSuggestionRange'](_0x79d9f2,_0xd0faff[0x0]):_0x4ee745['removeMarker'](_0x79d9f2['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x9d14b){this['_editor']=_0x9d14b,this['_model']=_0x9d14b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x9e4fec,_0x23df1e,_0x26fd70,_0x1cc4cb,_0x2e5edf,_0x2a6f75,_0x38fce5){return new x(this['_model'],{'type':_0x9e4fec,'subType':_0x23df1e,'id':_0x26fd70,'originalSuggestionId':_0x38fce5,'author':_0x1cc4cb,'creator':_0x1cc4cb,'attributes':_0x2e5edf,'onAttributesChange':_0x2a6f75,'onAccept':(..._0x1edc32)=>this['getSuggestionCallback'](_0x9e4fec,_0x23df1e,'accept')(..._0x1edc32),'onDiscard':(..._0x46a045)=>this['getSuggestionCallback'](_0x9e4fec,_0x23df1e,'discard')(..._0x46a045)});}['registerCustomCallback'](_0x1d5b99,_0x1d1bdb,_0x1fbafe,_0x237b66){const _0x1a83d2=_0x1d5b99+':'+_0x1d1bdb+':'+_0x1fbafe;this['_customCallbacks']['set'](_0x1a83d2,_0x237b66);}['getSuggestionCallback'](_0x251fac,_0x2534e4,_0x382946){const _0x11a304=_0x251fac+':'+_0x2534e4+':'+_0x382946;return this['_customCallbacks']['get'](_0x11a304)||this['_defaultCallbacks']['get'](_0x251fac+':'+_0x382946);}['_registerDefaultCallbacks'](){const _0x9b2a08=()=>!0x1,_0x3f643f=_0x4420df=>{_0x4420df['sort']((_0x570d2d,_0x25ade9)=>_0x570d2d['start']['isBefore'](_0x25ade9['start'])?0x1:-0x1),this['_model']['change'](_0x137986=>{for(const _0x7d8fda of _0x4420df){let _0x2a8152;_0x2a8152=_0x7d8fda['end']['isAtEnd']&&_0x7d8fda['end']['parent']==_0x7d8fda['start']['nodeAfter']?_0x137986['createSelection'](_0x7d8fda['start']['nodeAfter'],'on'):_0x137986['createSelection'](_0x7d8fda),this['_model']['deleteContent'](_0x2a8152,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3a6194=(_0x3e0e5c,_0x483021)=>{_0x483021&&this['_model']['change'](_0x1d1118=>{const {commandName:_0x347cd2,commandParams:_0x56df2d=[]}=_0x483021,_0x3ae72b=_0x3e0e5c['map'](_0x3f80ec=>(Kt(_0x3f80ec)&&(_0x3f80ec=this['_model']['createRange'](_0x3f80ec['end'])),_0x3f80ec))['filter'](_0x13d807=>'$graveyard'!==_0x13d807['root']['rootName']);if(_0x3ae72b['length']<0x1)return;const _0x449980=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2ecf0c=>_0x95b134['fromRange'](_0x2ecf0c));_0x1d1118['setSelection'](_0x3ae72b);for(const _0x23fdc7 of this['_editor']['commands']['commands']())_0x23fdc7['refresh']();_0x56df2d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x347cd2,..._0x56df2d);const _0x3c21f8=_0x449980['filter'](_0x570849=>'$graveyard'!=_0x570849['root']['rootName']);_0x3c21f8['length']>0x0&&_0x1d1118['setSelection'](_0x3c21f8);for(const _0x46e67a of _0x449980)_0x46e67a['detach']();});},_0x1bad95=(_0x2d6371,_0x5b5cc8)=>0x1==_0x2d6371['length']&&0x1==_0x5b5cc8['length']&&_0x2d6371[0x0]['end']['isEqual'](_0x5b5cc8[0x0]['start']),_0x2c633b=(_0x4aaa48,_0x2c7563,_0x2b65b5,_0x52bf37)=>nn(_0x4aaa48,_0x2c7563,_0x2b65b5,_0x52bf37)?[_0x4aaa48,_0x2c7563]:nn(_0x2c7563,_0x4aaa48,_0x52bf37,_0x2b65b5)?[_0x2c7563,_0x4aaa48]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x9b2a08),this['_defaultCallbacks']['set']('insertion:discard',_0x3f643f),this['_defaultCallbacks']['set']('insertion:join',_0x1bad95),this['_defaultCallbacks']['set']('insertion:chain',_0x2c633b),this['_defaultCallbacks']['set']('deletion:accept',_0x3f643f),this['_defaultCallbacks']['set']('deletion:discard',_0x9b2a08),this['_defaultCallbacks']['set']('deletion:join',_0x1bad95),this['_defaultCallbacks']['set']('deletion:chain',_0x2c633b),this['_defaultCallbacks']['set']('formatInline:accept',_0x3a6194),this['_defaultCallbacks']['set']('formatInline:discard',_0x9b2a08),this['_defaultCallbacks']['set']('formatInline:join',_0x1bad95),this['_defaultCallbacks']['set']('formatInline:chain',_0x9b2a08),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3a6194),this['_defaultCallbacks']['set']('formatBlock:discard',_0x9b2a08),this['_defaultCallbacks']['set']('formatBlock:join',_0x1bad95),this['_defaultCallbacks']['set']('formatBlock:chain',_0x9b2a08),this['_defaultCallbacks']['set']('attribute:accept',_0x9b2a08),this['_defaultCallbacks']['set']('attribute:discard',(_0x5c2913,_0x38d0f8)=>{if(!_0x38d0f8)return;const _0x418f89=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x572c30=>{if(_0x38d0f8['key']==m)for(const _0xe9390f of _0x5c2913){const _0x5120be=_0xe9390f['start']['nodeAfter'],_0x1fccdb=_0x38d0f8['oldValue'];_0x572c30['rename'](_0x5120be,_0x1fccdb);}else{if(_0x418f89['_isBlockAttribute'](_0x38d0f8['key'])){for(const _0x3df424 of _0x5c2913)void 0x0!==_0x38d0f8['oldValue']?_0x572c30['setAttribute'](_0x38d0f8['key'],_0x38d0f8['oldValue'],_0x3df424['start']['nodeAfter']):_0x572c30['removeAttribute'](_0x38d0f8['key'],_0x3df424['start']['nodeAfter']);}else{for(const _0x4d07bc of _0x5c2913)_0x38d0f8['oldValue']?_0x572c30['setAttribute'](_0x38d0f8['key'],_0x38d0f8['oldValue'],_0x4d07bc):_0x572c30['removeAttribute'](_0x38d0f8['key'],_0x4d07bc);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1bad95);}}function zt(_0x2c4c96,_0x148694,_0x808955){for(const _0x52934f of _0x148694['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x52934f['root']==_0x52934f)return!0x1;if(!_0x808955['containsItem'](_0x52934f))return!0x1;if(_0x2c4c96['isObject'](_0x52934f)||_0x2c4c96['isLimit'](_0x52934f))return!0x0;}return!0x1;}function Kt(_0x39111c){return _0x39111c['end']['parent']==_0x39111c['start']['nodeAfter']&&_0x39111c['end']['isAtStart'];}function Wt(_0x41dc0f,_0x366934,_0x681c4c,_0x494b23){const _0x45aefa=_0x51c508=>!_0x51c508['item']['is']('$textProxy')&&!_0x494b23['isObject'](_0x51c508['item']),_0x4cc8c6=_0x41dc0f['start']['getLastMatchingPosition'](_0x45aefa),_0x49ac67=_0x41dc0f['end']['getLastMatchingPosition'](_0x45aefa,{'direction':'backward'});return(!_0x41dc0f['start']['isEqual'](_0x4cc8c6)||!_0x41dc0f['end']['isEqual'](_0x49ac67))&&(_0x4cc8c6['isBefore'](_0x49ac67)?_0x681c4c['updateMarker'](_0x366934,{'range':_0x681c4c['createRange'](_0x4cc8c6,_0x49ac67)}):_0x681c4c['removeMarker'](_0x366934),!0x0);}function Ht(_0x53ed6d){return _0x3e6d3d(_0x53ed6d);}function Qt(_0x4e62c4){const _0x315b79=_0x4e62c4['start']['nodeAfter'];return _0x315b79&&_0x315b79['is']('element');}function Xt(_0x25a66a){return Kt(_0x25a66a)||function(_0xfef073){return _0xfef073['start']['parent']==_0xfef073['end']['nodeBefore']&&_0xfef073['start']['isAtEnd'];}(_0x25a66a);}function Yt(_0x1e4745,_0x157916){try{const _0x737cdd=_0x1e4745['getRange']();for(const _0x3413e4 of _0x157916)if(_0x1e4745!==_0x3413e4&&_0x737cdd&&_0x737cdd['isIntersecting'](_0x3413e4['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x2c32c9,_0x5ae312){return null==_0x2c32c9['end']['nodeBefore']&&_0x2c32c9['end']['parent']==_0x2c32c9['start']['nodeAfter']?tn(_0x2c32c9['start']['nodeAfter'],_0x5ae312):_0x2c32c9;}function tn(_0x2ed310,_0x5a3751){const _0x53aec1=_0x5a3751['schema']['isObject'](_0x2ed310)||_0x5a3751['schema']['isSelectable'](_0x2ed310);return _0x5a3751['createRange'](_0x5a3751['createPositionAt'](_0x2ed310,'before'),_0x53aec1?_0x5a3751['createPositionAfter'](_0x2ed310):_0x5a3751['createPositionAt'](_0x2ed310,'end'));}function nn(_0x23bf0e,_0x50f9fc,_0xfa2e32,_0x3c251e){return!!en(_0x23bf0e,_0x50f9fc)&&_0xfa2e32['end']['isEqual'](_0x3c251e['start']);}function en(_0x1d7980,_0x7bbffd){if(!_0x1d7980['_isDataLoaded']||!_0x7bbffd['_isDataLoaded'])return!0x1;const _0x42d25c=new Set(Object['keys'](_0x1d7980['attributes'])),_0x4e4f47=new Set(Object['keys'](_0x7bbffd['attributes']));if(_0x42d25c['delete']('groupId'),_0x4e4f47['delete']('groupId'),0x0==_0x42d25c['size']&&0x0==_0x4e4f47['size'])return!0x0;if(_0x42d25c['size']!=_0x4e4f47['size'])return!0x1;const _0xf313f2={..._0x1d7980['attributes']},_0x92d1dc={..._0x7bbffd['attributes']};return delete _0xf313f2['groupId'],delete _0x92d1dc['groupId'],JSON['stringify'](_0xf313f2)==JSON['stringify'](_0x92d1dc);}function sn(_0x2315ba,_0x1029d1){const _0x56da28=on(_0x2315ba['attributes']),_0x33ba27=on(_0x1029d1);if(!_0x2315ba['_isDataLoaded'])return!0x1;for(const _0x3d0e53 of Object['keys'](_0x33ba27))if(!_0x4f47b1(_0x56da28[_0x3d0e53],_0x33ba27[_0x3d0e53]))return!0x1;return!0x0;}function on(_0x26ba74){const _0x7146f4=Object['assign']({},_0x26ba74);return delete _0x7146f4['skipNestingCheck'],delete _0x7146f4['tablePasteChainId'],_0x7146f4;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x415f8e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x568da3,_0x5de3f9,_0x5f53d5,_0x5524a6){super(),this['model']=_0x5de3f9,this['view']=_0x5f53d5,this['commentThreadController']=_0x5524a6,this['_editor']=_0x568da3,this['_acceptCommand']=_0x568da3['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x568da3['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3105b2,_0x228d7d)=>_0x3105b2||_0x228d7d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4286f0=>_0x4286f0&&this['_editor']['model']['canEditAt'](_0x5de3f9['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4eced5=>_0x4eced5&&this['_editor']['model']['canEditAt'](_0x5de3f9['getRanges']())),this['_pendingAction']=null,_0x5f53d5['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5f53d5,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5f53d5,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5f53d5,'change:isDirty',()=>{_0x5f53d5['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 _0x4d81f7=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4d81f7);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x26eb50{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4860ad,_0x5d21e8,_0x2060ef,_0x1baeb1){super(_0x4860ad),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x228b82(_0x4860ad,o(_0x4860ad,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5d21e8['authoredAt']),this['bind']('authoredAt')['to'](_0x5d21e8),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',_0x5d21e8,'authoredAt',this,'descriptionParts',(_0x1061d9,_0x31e47d,_0xbc4bbc)=>{const _0x16cd4e=_0xbc4bbc['map'](_0x4c06f5=>ls(_0x4c06f5['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1061d9-0x1,_0x5d21e8['author']['name'],_0x31e47d?_0x1baeb1['formatDateTime'](_0x31e47d):'',new DOMParser()['parseFromString'](_0x16cd4e,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5cb37c(),this['focusTracker']=new _0x2df900(),this['keystrokes']=new _0x154f7e(),this['focusCycler']=new _0x181476({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4717c1=>_0x4717c1['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5d21e8,this['_localUser']=_0x2060ef,this['_config']=_0x1baeb1,_0x1baeb1['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3a7830(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xd92bc8}=this['_config'];this['commentsListView']=new _0xd92bc8(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',_0x43f92b=>_0x43f92b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x584030,_0x208e59)=>_0x584030||!!_0x208e59);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x10c383}=this['_config'],_0x5efcff=new _0x10c383(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2d7233=_0x5efcff['commentInputView'];return _0x5efcff['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2d7233,'value',(_0x54fe96,_0x28fc36,_0x4d25e9)=>!!_0x4d25e9||_0x54fe96&&!_0x28fc36),_0x2d7233['on']('submit',(_0x37b343,_0x1fd124)=>{this['fire']('addComment',_0x1fd124),_0x2d7233['editor']['setData']('');}),_0x2d7233['on']('cancel',()=>this['focus']()),_0x2d7233['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5efcff;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x3ebca4,_0x36d04a,_0x5c7e83,_0x2561bb){super(_0x3ebca4,_0x36d04a,_0x5c7e83,_0x2561bb),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x482744=>_0x482744&&_0x482744[0x0]?_0x482744[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5b3db6,_0x1dce8c)=>{let _0x5ecd9e='';for(const _0x1ab390 of _0x5b3db6)_0x5ecd9e+='<p>'+ls(_0x1ab390['content'],_0x1ab390['color'])+'</p>';return _0x1dce8c?_0x5ecd9e:_0x1e8c88(_0x5ecd9e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2561bb['SuggestionView'](_0x3ebca4,_0x36d04a,{'formatDateTime':_0x2561bb['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 _0x400560=this['bindTemplate'],_0x427b8d=[this['suggestionView']];return this['commentsListView']&&_0x427b8d['push'](this['commentsListView']),this['commentThreadInputView']&&_0x427b8d['push'](this['commentThreadInputView']),_0x427b8d['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x400560['if']('isActive','ck-suggestion-wrapper--active'),_0x400560['to']('type',_0x2cd31e=>'ck-suggestion-'+_0x2cd31e),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':_0x400560['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x427b8d};}['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 _0x26eb50{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1f5060,_0x1e34e2,_0x2604a0){super(_0x1f5060),this['_model']=_0x1e34e2,this['_config']=_0x2604a0,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1e34e2),this['acceptButton']=this['_createButton'](o(_0x1f5060,'Accept\x20suggestion'),_0x361933,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1f5060,'Discard\x20suggestion'),_0xd627c5,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x126f1a(_0x1f5060,_0x1e34e2['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5cb37c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2df900(),this['keystrokes']=new _0x154f7e(),this['focusCycler']=new _0x181476({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2f9320=>_0x2f9320['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4e83dc=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4e83dc['innerHTML']=this['description'],this['on']('change:description',(_0x333604,_0x12798b,_0x51f107)=>{_0x4e83dc['innerHTML']=_0x51f107;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x220165=this['bindTemplate'],_0x4c85c2=[{'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':_0x220165['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x220165['to']('authoredAt',_0x201827=>this['_config']['formatDateTime'](_0x201827))}]}]},{'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']&&_0x4c85c2['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':_0x4c85c2}]};}['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'](_0x428582,_0x40d493,_0x54b141,_0xc7f8aa,_0x10a2b3){const _0x10e9e2=new _0x51c3ab(this['locale']);return _0x10e9e2['set']({'label':_0x428582,'icon':_0x40d493,'tooltip':!0x0,'tooltipPosition':_0x10a2b3}),_0x10e9e2['extendTemplate']({'attributes':{'class':_0x54b141}}),_0x10e9e2['on']('execute',()=>{this['fire'](_0xc7f8aa,this['_model']['id']);}),_0x10e9e2;}['_setupKeyboardNavigation'](){const _0x49419b=this['element'];this['keystrokes']['listenTo'](_0x49419b);for(const _0xfe2bd9 of this['focusables'])this['focusTracker']['add'](_0xfe2bd9['element']),this['keystrokes']['listenTo'](_0xfe2bd9['element']);this['keystrokes']['set']('enter',(_0x541158,_0x24331c)=>{_0x49419b===_0x541158['target']&&(this['focusCycler']['focusFirst'](),_0x24331c());}),this['keystrokes']['set']('esc',(_0x1f2672,_0x1c031b)=>{_0x49419b!==_0x1f2672['target']&&(this['focus'](),_0x1c031b());});}}class u extends _0x2e8ec7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x9f1e39,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35ee45){super(_0x35ee45),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3f5897=this['editor']['config'];_0x3f5897['define']('trackChanges.SuggestionThreadView',fe),_0x3f5897['define']('trackChanges.SuggestionView',we),_0x3f5897['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3f5897['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x515f0e,_0x46fd5f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1548a2,_0x1a365a]of this['_handleControllerBuffer']){const _0x1a97be=this['_suggestionToController']['has'](_0x1548a2);_0x1a97be||_0x1a365a?_0x1a97be&&_0x1a365a&&this['_destroyController'](_0x1548a2):this['_initializeController'](_0x1548a2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x515f0e,_0x46fd5f);}['init'](){const _0x4ac921=this['editor'],_0x3d603f=_0x4ac921['plugins']['get']('TrackChangesEditing'),_0x3291f9=_0x4ac921['plugins']['get']('Annotations'),_0xc7c0a=_0x4ac921['plugins']['get']('EditorAnnotations'),_0x4ee2af=_0x4ac921['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xc7c0a['addSourceCollector'](()=>{const _0x199c18=[];for(const [_0x3bc9b0,_0x31a923]of Array['from'](this['_suggestionToController'])){const _0x469a63=_0x3bc9b0['getAllAdjacentSuggestions'](),_0x1c39c1=[];for(const _0x17f794 of _0x469a63){if(!_0x17f794['isInContent'])continue;if(_0x17f794['isMultiRange']){_0x1c39c1['push'](..._0x17f794['getRanges']());continue;}const _0x105788=_0x17f794['getFirstRange']();if(_0x1c39c1['length']>0x0){const _0x4005f3=_0x1c39c1[0x0]['getJoined'](_0x105788);if(_0x4005f3){_0x1c39c1[0x0]=_0x4005f3;continue;}}_0x1c39c1['push'](_0x105788);}_0x199c18['push']([_0x31a923['view'],_0x1c39c1]);}return _0x199c18;}),this['listenTo'](_0x3d603f,'suggestionLoaded',(_0x46ae3c,_0x57a4b7)=>{this['listenTo'](_0x57a4b7,'change:previous',(_0x33da8f,_0x3fec7e,_0x1b7584,_0x4b73be)=>{_0x57a4b7['isInContent']&&(null==_0x1b7584?(this['_updateController'](_0x4b73be['head']),this['_handleSuggestionControllerDelayed'](_0x57a4b7,!0x1)):(this['_updateController'](_0x1b7584['head']),null==_0x4b73be&&this['_handleSuggestionControllerDelayed'](_0x57a4b7,!0x0)));}),null!==_0x57a4b7['previous']?this['_updateController'](_0x57a4b7['head']):this['_handleSuggestionControllerDelayed'](_0x57a4b7,!0x1);}),this['listenTo'](_0x3d603f,'suggestionUnloaded',(_0xbab2c0,_0x5687f9,_0x523557)=>{this['stopListening'](_0x5687f9,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5687f9),this['_suggestionToController']['has'](_0x5687f9)&&this['_destroyController'](_0x5687f9),_0x523557&&this['_updateController'](_0x523557['head']);}),this['listenTo'](_0x3d603f,'suggestionChanged',(_0x4ae9f1,_0x336911)=>{this['_updateController'](_0x336911);}),this['listenTo'](_0x3291f9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4ee2af,'addComment',(_0x1f0c05,{threadId:_0x378c8f,isFromAdapter:_0x5c9bb1})=>{if(_0x5c9bb1||!_0x3d603f['hasSuggestion'](_0x378c8f))return;const _0x26415f=_0x3d603f['getSuggestion'](_0x378c8f);this['_suggestionToController']['get'](_0x26415f)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1d24bf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5672e3;for(const _0x3bad9c in _0x1d24bf){const _0x55faff=_0x3bad9c,_0x5c8f86=_0x1d24bf[_0x55faff];if('trackChangesLicenseKeyValid'==_0x5c8f86||'trackChangesLicenseKeyInvalid'==_0x5c8f86||'trackChangesLicenseKeyExpired'==_0x5c8f86||'trackChangesLicenseKeyDomainLimit'==_0x5c8f86||'trackChangesLicenseKeyNotAllowed'==_0x5c8f86||'trackChangesLicenseKeyEvaluationLimit'==_0x5c8f86||'trackChangesLicenseKeyUsageLimit'==_0x5c8f86){delete _0x1d24bf[_0x55faff],_0x5672e3=_0x5c8f86,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5672e3&&_0x1d24bf['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5672e3&&_0x1d24bf['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5672e3&&_0x1d24bf['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5672e3&&_0x1d24bf['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5672e3&&_0x1d24bf['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5672e3&&_0x1d24bf['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x252050){const _0x23db25=this['_suggestionToController']['get'](_0x252050);if(!_0x23db25)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x23db25['view'])||null;}['getSuggestionForAnnotation'](_0x59971c){const _0x2e283a=this['_viewToController']['get'](_0x59971c['innerView']);return _0x2e283a?_0x2e283a['model']:null;}['_refreshActiveMarkers'](){const _0xe63d7d=this['editor']['plugins']['get']('Annotations'),_0x5505d6=this['editor']['plugins']['get']('TrackChangesEditing'),_0xac1bd=Array['from'](_0xe63d7d['activeAnnotations'],_0x258127=>_0x258127['innerView'])['filter'](_0x32e6d6=>this['_viewToController']['has'](_0x32e6d6)),_0x4d234e=[];for(const _0x201aa9 of _0xac1bd){const _0x488e4c=this['_viewToController']['get'](_0x201aa9)['model']['getAllAdjacentSuggestions']();_0x4d234e['push'](..._0x488e4c['reduce']((_0x37868b,_0x823fd4)=>[..._0x37868b,..._0x823fd4['getMarkerNames']()],[]));}_0x5505d6['activeMarkers']=_0x4d234e;}['_addUIComponentsToFactory'](){const _0x9d20dd=this['editor'],_0x22aa3f=_0x9d20dd['locale'],_0x4c3020=o(_0x22aa3f,'Track\x20changes'),_0x439064=new _0x5d7174([{'type':'switchbutton','model':new _0x41c3ed({'withText':!0x0,'isToggleable':!0x0,'label':_0x4c3020,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x41c3ed({'withText':!0x0,'label':o(_0x22aa3f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41c3ed({'withText':!0x0,'label':o(_0x22aa3f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41c3ed({'withText':!0x0,'label':o(_0x22aa3f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41c3ed({'withText':!0x0,'label':o(_0x22aa3f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x9d20dd['plugins']['has']('TrackChangesPreview')&&_0x439064['addMany']([{'type':'separator'},{'type':'button','model':new _0x41c3ed({'withText':!0x0,'label':o(_0x22aa3f,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x217559 of _0x439064)if(ke(_0x217559)){const _0x25b31e=_0x9d20dd['commands']['get'](_0x217559['model']['commandName']);_0x217559['model']['bind']('isOn','isEnabled')['to'](_0x25b31e,'value','isEnabled');}_0x9d20dd['ui']['componentFactory']['add']('trackChanges',_0x50aac5=>this['_createToolbarButton'](_0x50aac5,_0x439064,_0x4c3020)),_0x9d20dd['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2091e8=>this['_createMenuBarMenu'](_0x2091e8,_0x439064,_0x4c3020));}['_createToolbarButton'](_0x53daec,_0x401344,_0x2c98e3){const _0x16ffaf=_0x58c904(_0x53daec,_0x78ba63),_0x548580=this['editor']['commands']['get']('trackChanges');_0x16ffaf['buttonView']['set']({'tooltip':_0x2c98e3,'label':_0x2c98e3,'icon':_0x2a95b3}),_0x16ffaf['buttonView']['bind']('isOn')['to'](_0x548580,'value'),_0x16ffaf['buttonView']['on']('execute',()=>{_0x548580['execute'](),this['editor']['editing']['view']['focus']();}),_0x49bcc1(_0x16ffaf,_0x401344,{'role':'menu'});const _0x2fe4cf=[];for(const _0x2a7314 of _0x401344)ke(_0x2a7314)&&_0x2fe4cf['push'](this['editor']['commands']['get'](_0x2a7314['model']['commandName']));const _0x2a44da=_0x16ffaf['buttonView'];return _0x2a44da['actionView']['unbind']('isEnabled'),_0x2a44da['arrowView']['unbind']('isEnabled'),_0x2a44da['actionView']['bind']('isEnabled')['to'](_0x548580,'isEnabled'),_0x2a44da['arrowView']['bind']('isEnabled')['toMany'](_0x2fe4cf,'isEnabled',(..._0x5c7021)=>_0x5c7021['some'](_0x4aed57=>_0x4aed57)),_0x16ffaf['on']('execute',_0x36b3b9=>{this['editor']['execute'](_0x36b3b9['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x16ffaf;}['_createMenuBarMenu'](_0x24c025,_0x356a4e,_0x4d259e){const _0x42f135=new _0x1e17a9(_0x24c025),_0x43c9c8=this['editor']['commands']['get']('trackChanges');_0x42f135['buttonView']['set']({'label':_0x4d259e,'icon':_0x2a95b3});const _0x2ec9aa=new _0x3c4cb6(_0x24c025);for(const _0x44ae97 of _0x356a4e){if('separator'==_0x44ae97['type']){_0x2ec9aa['items']['add'](new _0xa1db36(_0x24c025));continue;}const _0x22d12c=new _0x1ea383(_0x24c025,_0x42f135),_0x4f40aa=new _0x175cb2(_0x24c025),_0x1ba8c5=_0x44ae97['model'];_0x4f40aa['bind'](...Object['keys'](_0x1ba8c5))['to'](_0x1ba8c5),_0x4f40aa['delegate']('execute')['to'](_0x42f135),_0x4f40aa['on']('execute',()=>{this['editor']['execute'](_0x1ba8c5['commandName']),this['editor']['editing']['view']['focus']();}),_0x22d12c['children']['add'](_0x4f40aa),_0x2ec9aa['items']['add'](_0x22d12c);}return _0x42f135['bind']('isEnabled')['to'](_0x43c9c8,'isEnabled'),_0x42f135['panelView']['children']['add'](_0x2ec9aa),_0x42f135;}['_initializeController'](_0x228838){const _0x2e0140=this['editor'],_0x21594e=_0x2e0140['config'],_0x156334=_0x2e0140['plugins']['get']('Annotations'),_0x3b421e=_0x2e0140['plugins']['get']('CommentsRepository'),_0x20526d=_0x2e0140['plugins']['get']('EditorAnnotations'),_0x43c13a=_0x2e0140['plugins']['get'](_0x9f1e39)['me'],_0x1ac05e=_0x21594e['get']('trackChanges')['SuggestionThreadView'],_0x42bf5c=_0x21594e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1ee7c0,CommentThreadInputView:_0x23abca}=_0x2e0140['plugins']['get']('CommentsUI');let _0x26c066,_0x10d83a,_0x46dc7e;this['_annotationViews']['has'](_0x228838['id'])?(_0x10d83a=this['_annotationViews']['get'](_0x228838['id']),_0x26c066=_0x10d83a['mainView']):(_0x26c066=new _0x1ac05e(_0x2e0140['locale'],_0x228838,_0x43c13a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x21594e['get']('comments.editorConfig'),'licenseKey':_0x21594e['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x21594e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x21594e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x21594e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5ec19a(_0x21594e['get']('locale'),_0x2e0140['locale']),'CommentView':_0x21594e['get']('comments')['CommentView'],'CommentsListView':_0x1ee7c0,'CommentThreadInputView':_0x23abca,'SuggestionView':_0x42bf5c}),_0x26c066['suggestionView']['acceptButton']['on']('execute',()=>{_0x2e0140['editing']['view']['focus']();}),_0x26c066['suggestionView']['discardButton']['on']('execute',()=>{_0x2e0140['editing']['view']['focus']();}),_0x10d83a=_0x156334['createAnnotationView'](this['editor']['locale'],_0x26c066),_0x10d83a['bind']('isDirty')['to'](_0x26c066,'isDirty'),_0x10d83a['bind']('length')['to'](_0x26c066),_0x10d83a['bind']('type')['to'](_0x26c066,'type',_0x550d1c=>'suggestion-'+_0x550d1c),_0x26c066['on']('escape',()=>{_0x46dc7e['fire']('escape');}),this['_annotationViews']['set'](_0x228838['id'],_0x10d83a));const _0x455485=_0x3b421e['createCommentThreadController'](_0x228838['commentThread'],_0x26c066),_0x5514e9=new pe(_0x2e0140,_0x228838,_0x26c066,_0x455485),_0x5d5976=_0x228838['getAllAdjacentSuggestions']()['filter'](_0x3b7ead=>_0x3b7ead['isInContent']);_0x26c066['descriptionParts']=_0x2e0140['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5d5976),this['_suggestionToController']['set'](_0x228838,_0x5514e9),this['_viewToController']['set'](_0x26c066,_0x5514e9);const _0x19cc56=()=>{const _0x12a6a2=[],_0x4fd915=_0x228838['getAllAdjacentSuggestions']()['filter'](_0x5bec34=>_0x5bec34['isInContent']);for(const _0x35ea17 of _0x4fd915)_0x12a6a2['push'](..._0x35ea17['getMarkers']());return _0x4c79a3(_0x2e0140['editing'],_0x12a6a2);};_0x46dc7e=_0x156334['createAnnotation']({'view':_0x10d83a,'target':_0x19cc56,'type':()=>'suggestion-'+_0x5514e9['view']['type'],'isVisible':!!_0x19cc56()}),_0x3b421e['_bindAnnotationToEditors'](_0x26c066,_0x46dc7e),_0x156334['add'](_0x46dc7e),_0x20526d['registerAnnotation'](_0x46dc7e);}['_destroyController'](_0x4ba314){const _0x27bbef=this['editor']['plugins']['get']('CommentsRepository'),_0x1a722b=this['editor']['plugins']['get']('Annotations'),_0x590954=this['_suggestionToController']['get'](_0x4ba314),_0xb06f44=_0x590954['view'],_0x3f6789=_0x1a722b['getByInnerView'](_0xb06f44);_0x27bbef['_unbindEditors'](_0xb06f44),_0x3f6789&&_0x1a722b['remove'](_0x3f6789),this['_suggestionToController']['delete'](_0x4ba314),this['_viewToController']['delete'](_0xb06f44),_0x590954['destroy']();}['_updateController'](_0x25f177){if(!_0x25f177['isInContent']||!this['_suggestionToController']['has'](_0x25f177))return;const _0x4d3864=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ea268=this['_suggestionToController']['get'](_0x25f177),_0xe79264=_0x25f177['getAllAdjacentSuggestions']();_0x3ea268['view']['descriptionParts']=_0x4d3864['descriptionFactory']['getDescriptions'](_0xe79264);}['destroy'](){for(const _0x3f8389 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3f8389);for(const _0x2bf130 of this['_annotationViews']['values']())_0x2bf130['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x41bcb5){return'model'in _0x41bcb5;}class Ne extends _0x2e8ec7{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x497b44){this['editor']['plugins']['get'](d)['adapter']=_0x497b44;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x53985d){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x53985d);}['getSuggestions']({skipNotAttached:_0x21e013=!0x1,toJSON:_0x48038d=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x21e013,'toJSON':_0x48038d});}['getSuggestion'](_0x12f8c6){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x12f8c6);}}const p=['Pagination'];class re extends _0x2e8ec7{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xe57d79=this['editor'];if(_0xe57d79['config']['define']('trackChangesData.editorCreator',_0x462099=>{const _0x217329=_0xe57d79['model']['document']['getRootNames']()['reduce']((_0x2f7a58,_0x424f4d)=>(_0x2f7a58[_0x424f4d]='',_0x2f7a58),{});return _0xe57d79['constructor']['create'](_0x217329,_0x462099);}),'function'!=typeof _0xe57d79['config']['get']('trackChangesData')['editorCreator'])throw new _0x69a1a8('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x473521){return P(this['editor'],!0x0,_0x473521);}['getDataWithDiscardedSuggestions'](_0x5307cd){return P(this['editor'],!0x1,_0x5307cd);}}class Fe extends _0x2e8ec7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10fdb7){function _0x2563bb(_0x2bdcfc){return _0x2bdcfc['map'](_0x43d235=>String['fromCharCode'](_0x43d235))['join']('');}super(_0x10fdb7),this['result']='end',_0x10fdb7[_0x2563bb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2563bb([0x76,0x69,0x65,0x77])][_0x2563bb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2563bb([0x61,0x75,0x74,0x6f]),_0x10fdb7[_0x2563bb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2563bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2563bb([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2563bb([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2563bb([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(_0x4b7658){return void 0x0!==_0x4b7658['getRootsAttributes'];}async function P(_0x491796,_0x43c5e9,_0x4bd136){const _0xfd545=_0x2ccf16(_0x491796,p);_0xfd545['plugins']['push'](d,Fe),_0xfd545['rootsAttributes']=De(_0x491796)?_0x491796['getRootsAttributes']():void 0x0;const _0x284d72=document['createDocumentFragment'](),_0x2b1a08=_0x491796['config']['get']('trackChangesData')['editorCreator'],_0xa82f4d=await _0x2b1a08(_0xfd545,()=>function(_0x35a277){const _0x334a1a=document['createElement']('div');return _0x35a277['appendChild'](_0x334a1a),_0x334a1a;}(_0x284d72));!function(_0x160892,_0x95af8e){const _0x3be4e2=_0x160892['model']['document']['getRootNames']()['reduce']((_0x2d2cd3,_0x453922)=>(_0x2d2cd3[_0x453922]=_0x160892['data']['get']({'rootName':_0x453922}),_0x2d2cd3),{}),_0x49f88e=_0x160892['plugins']['get']('Users')['users']['map'](_0x347d88=>({'id':_0x347d88['id'],'name':_0x347d88['name']})),_0x1150f0=_0x160892['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x519bd4=_0x160892['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x44ae5e=_0x95af8e['plugins']['get']('Users'),_0x4c0eca=_0x95af8e['plugins']['get']('TrackChangesEditing'),_0x1a3e1d=_0x95af8e['plugins']['get']('CommentsRepository');for(const _0xa50688 of _0x1a3e1d['getCommentThreads']())_0xa50688['remove']();for(const _0x270f3 of _0x49f88e)_0x44ae5e['getUser'](_0x270f3['id'])||_0x44ae5e['addUser'](_0x270f3);_0x44ae5e['me']||_0x44ae5e['useAnonymousUser']();for(const _0x9b0b0c of _0x519bd4)_0x1a3e1d['addCommentThread'](_0x9b0b0c);for(const _0x489ceb of _0x1150f0)_0x4c0eca['addSuggestionData'](_0x489ceb);_0x95af8e['data']['set'](_0x3be4e2);}(_0x491796,_0xa82f4d),_0xa82f4d['execute'](_0x43c5e9?'acceptAllSuggestions':'discardAllSuggestions');const _0x41e87b=De(_0xa82f4d)?_0xa82f4d['getFullData'](_0x4bd136):_0xa82f4d['data']['get'](_0x4bd136);return await _0xa82f4d['destroy'](),_0x41e87b;}class Me extends _0x26eb50{['options'];constructor(_0x1ba1b8,_0x5c264c){super(_0x1ba1b8),this['options']=_0x5c264c,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'](_0x364bfc,_0x2be7f2){if(!this['element'])return;const _0x10973e=[];for(const [_0x4010dc,_0x594560]of _0x364bfc){const _0x1d921f=document['createElement']('div');_0x1d921f['setAttribute']('data-ck-root-name',_0x4010dc),_0x1d921f['className']=_0x594560['classes']+'\x20ck-track-changes-preview__root-container',_0x1d921f['innerHTML']=_0x594560['content'],_0x10973e['push'](_0x1d921f);}_0x2be7f2(this['element'],_0x10973e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x172e70{constructor(_0x2690fa){super(_0x2690fa),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x493f78=this['editor'],_0x3ccbe5=_0x493f78['locale'],_0x5de343=_0x493f78['plugins']['get']('Dialog');let _0x3d5d6c;const _0x5a8f59=function(_0x3aee66){const _0x2dc185={};if('editables'in _0x3aee66['ui']['view']){for(const [_0x667e21,_0x583e43]of Object['entries'](_0x3aee66['ui']['view']['editables']))_0x2dc185[_0x667e21]=_0x583e43['element'];}else _0x2dc185[_0x3aee66['model']['document']['getRootNames']()[0x0]]=_0x3aee66['ui']['view']['editable']['element'];return _0x2dc185;}(_0x493f78),_0x350160=function(_0x5d5e84){let _0x315250=0x0;for(const _0x395d7c of Object['values'](_0x5d5e84))_0x315250=Math['max'](_0x315250,_0x395d7c['getBoundingClientRect']()['width']);let _0x220b03=0x0;for(const _0x33743d of Object['values'](_0x5d5e84))_0x220b03+=_0x33743d['getBoundingClientRect']()['height'];const _0x46c983=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1a4ac5=Math['min'](_0x220b03,_0x46c983);return{'width':_0x315250,'height':_0x1a4ac5};}(_0x5a8f59);_0x5de343['show']({'id':'finalContentPreview','title':o(_0x3ccbe5,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3ccbe5,{'dialogRects':_0x350160}),'onHide':()=>{_0x3d5d6c['detachFromDom']();},'onShow':()=>{_0x493f78['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x298534=>{const _0x2a04f0=this['_standarizeRootsData'](_0x298534,_0x493f78,_0x5a8f59);_0x5de343['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2a04f0,_0x493f78['config']['get']('trackChanges.preview.renderFunction'));}),_0x3d5d6c=new _0x3bd803(_0x3ccbe5,[_0x5de343['view']]),_0x3d5d6c['attachToDom'](),_0x3d5d6c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x493f78['once']('destroy',()=>{_0x3d5d6c['detachFromDom']();});const _0x2f3818=_0x5de343['view']['headerView']['class'];_0x5de343['view']['headerView']['class']=_0x2f3818?_0x2f3818+'\x20ck-reset_all':'ck-reset_all',_0x5de343['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5de343['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x57922e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x204939=_0x57922e['previewMode'],_0x3902d9={};if('$labels'===_0x204939){for(const _0x13e780 of _0x57922e['getMergeFieldsIds']())_0x3902d9[_0x13e780]=_0x57922e['getLabel'](_0x13e780)||_0x13e780;}else{const _0x9492aa='$defaultValues'===_0x204939?_0x57922e['getDefaultValues']():_0x57922e['getDataSetValues'](_0x204939,!0x0);for(const _0x1bcc8f of Object['entries'](_0x9492aa)){const [_0x1607ac,_0x2f0125]=_0x1bcc8f;_0x3902d9[_0x1607ac]=null!==_0x2f0125?_0x2f0125:_0x57922e['getLabel'](_0x1607ac)||_0x1607ac;}}return{'mergeFieldsData':_0x3902d9};}['_standarizeRootsData'](_0x285534,_0x1d46b8,_0x4595ef){let _0x32e6bc;if('string'==typeof _0x285534){const _0x54b601=_0x1d46b8['model']['document']['getRootNames']()[0x0];_0x32e6bc={[_0x54b601]:_0x285534};}else _0x32e6bc=_0x285534;const _0x29785f=this['_fixMediaEmbeds'](_0x32e6bc,_0x1d46b8),_0x36abf2=function(_0xb5e49f,_0x4ccf56){for(const [_0x1adb22,_0x257f4b]of _0xb5e49f)_0x257f4b['classes']=_0x4ccf56[_0x1adb22]['classList']['value']['replace']('ck-focused','');return _0xb5e49f;}(this['_sortRoots'](_0x1d46b8)['reduce']((_0x4206ba,_0x10d91a)=>(_0x4206ba['push']([_0x10d91a,{'content':_0x29785f[_0x10d91a],'classes':''}]),_0x4206ba),[]),_0x4595ef);return _0x36abf2;}['_fixMediaEmbeds'](_0x210e35,_0x5bc1f0){if(!_0x5bc1f0['plugins']['has']('MediaEmbedEditing'))return _0x210e35;const _0x982ef4=_0x5bc1f0['plugins']['get']('MediaEmbedEditing');for(const [_0x3daab8,_0x57e502]of Object['entries'](_0x210e35)){const _0xbc9291=document['createElement']('div');_0xbc9291['innerHTML']=_0x57e502,(_0xbc9291['querySelectorAll']('figure.media')['forEach'](_0x50e4ec=>{const _0x3f0a30=_0x50e4ec['querySelector']('oembed');if(_0x3f0a30){const _0x5cd286=_0x3f0a30['getAttribute']('url');if(_0x5cd286){const _0x4707cb=_0x982ef4['registry']['getMediaViewElement'](new _0x3975fc(_0x5bc1f0['editing']['view']['document']),_0x5cd286,{'elementName':'','renderForEditingView':!0x0}),_0x34dade=document['createElement']('div');_0x34dade['classList']['add']('ck-media__wrapper'),_0x4707cb['render'](_0x34dade,_0x5bc1f0['editing']['view']['domConverter']),_0x3f0a30['replaceWith'](_0x34dade);}}}),_0x210e35[_0x3daab8]=_0xbc9291['innerHTML']);}return _0x210e35;}['_sortRoots'](_0x30442f){if(!function(_0x9b3e2b){return void 0x0!==_0x9b3e2b['getRootsAttributes'];}(_0x30442f))return _0x30442f['model']['document']['getRootNames']();const _0x25bb72=[],_0x50742d=new Map();for(const _0xa4eb24 of _0x30442f['model']['document']['getRootNames']()){const _0x4b69ce=_0x30442f['editing']['view']['getDomRoot'](_0xa4eb24)['getClientRects']()['item'](0x0);_0x25bb72['push'](_0xa4eb24),_0x50742d['set'](_0xa4eb24,_0x4b69ce);}return _0x25bb72['sort']((_0x2b4595,_0x32ef3c)=>{const _0x1997fa=_0x50742d['get'](_0x2b4595),_0x3d082c=_0x50742d['get'](_0x32ef3c);return _0x1997fa['y']-_0x3d082c['y']||_0x1997fa['x']-_0x3d082c['x'];}),_0x25bb72;}}class Ue extends _0x2e8ec7{static get['requires'](){return[re,_0x5b99f4];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45f70d){super(_0x45f70d),_0x45f70d['commands']['add']('previewFinalContent',new te(this['editor'])),_0x45f70d['config']['define']('trackChanges.preview.renderFunction',(_0x4e546c,_0x397324)=>{for(const _0x4b9d04 of _0x397324)_0x4e546c['appendChild'](_0x4b9d04);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0xa8ba53,Plugin as _0x1a5913,PendingActions as _0x2acaad}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x39abb4,ObservableMixin as _0x2735f7,uid as _0x569ccd,priorities as _0x5b0e58,insertToPriorityArray as _0x2ed1d3,logWarning as _0x573ce7,getEnvKeystrokeText as _0x59d1d7,FocusTracker as _0x4c4288,KeystrokeHandler as _0x17a1db,Collection as _0x5bf6cf}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x461e67,IconCancel as _0x5c46ad,IconTrackChanges as _0x18a70b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x555620,View as _0xebe621,ViewCollection as _0x5d6f67,FocusCycler as _0x1cef4d,UIModel as _0xd08fef,createDropdown as _0x2d6ddd,SplitButtonView as _0x559023,addListToDropdown as _0x24268b,MenuBarMenuView as _0x186d43,MenuBarMenuListView as _0x5ab945,ListSeparatorView as _0x2993de,MenuBarMenuListItemView as _0x4d059e,MenuBarMenuListItemButtonView as _0x3eb356,BodyCollection as _0x26feba,Dialog as _0x4602a7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2fa677,DocumentCompare as _0x2ceb56,hashObject as _0x5f4035,surroundingMarkersDetector as _0x3b94b7,FOCUS_ANNOTATION_KEYSTROKE as _0x327b45,AriaDescriptionView as _0x802302,setupThreadKeyboardNavigation as _0x3f9d14,trimHtml as _0x4df02e,UserView as _0x39b497,LateFocusButtonView as _0x3236f3,getDateTimeFormatter as _0x5a3585,getAllMarkersDomElementsSorted as _0x214b7a,sanitizeEditorConfig as _0x37d4ac}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x15f88a,ModelLiveRange as _0x4edbf7,ModelLivePosition as _0x1cbc9b,ViewDowncastWriter as _0x38dac4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x236c8b,set as _0x3837a2,isEqual as _0x3bf56f,unset as _0x407364,omit as Pt}from'es-toolkit/compat';import{Delete as _0x57e0e1,Input as _0xfc2f14}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x508c6d}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1aec0d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0xa8ba53{['_enabledCommands'];constructor(_0x3b585d,_0x139845){super(_0x3b585d),this['_enabledCommands']=_0x139845,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 _0x331af0 of this['editor']['commands']['commands']())_0x331af0['affectsData']&&!this['_enabledCommands']['has'](_0x331af0)&&_0x331af0['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3ad14e of this['editor']['commands']['commands']())_0x3ad14e['affectsData']&&!this['_enabledCommands']['has'](_0x3ad14e)&&_0x3ad14e['clearForceDisabled']('TrackChangesCommand');}}class v extends _0xa8ba53{['_suggestions'];constructor(_0x5dc1d3,_0x18c301){super(_0x5dc1d3),this['_suggestions']=_0x18c301,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4f6ac4){const _0x1cd9ef=this['_suggestions']['get'](_0x4f6ac4);if(!_0x1cd9ef)throw new _0x39abb4('track-changes-accept-suggestion-not-found',this);const _0x412295=_0x1cd9ef['getRanges']();this['editor']['model']['canEditAt'](_0x412295)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1cd9ef);}}class D extends _0xa8ba53{['_suggestions'];constructor(_0x6dc683,_0x533548){super(_0x6dc683),this['_suggestions']=_0x533548,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2daa89){const _0x19c353=this['_suggestions']['get'](_0x2daa89);if(!_0x19c353)throw new _0x39abb4('track-changes-discard-suggestion-not-found',this);const _0xa29190=_0x19c353['getRanges']();this['editor']['model']['canEditAt'](_0xa29190)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x19c353);}}function ls(_0x471e10,_0x127aa6){let _0x44896d='';return _0x44896d+=_0x471e10['split']('*')['map']((_0x57421b,_0x57b588)=>_0x57b588%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x57421b)+'</span>':rn(_0x57421b))['join'](''),_0x127aa6&&(_0x44896d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x127aa6['value']+'\x22\x20title=\x22'+_0x127aa6['title']+'\x22></span>'),_0x44896d;}function rn(_0x3083e4){const _0x56978f=document['createElement']('span');return _0x56978f['innerText']=_0x3083e4,_0x56978f['innerHTML'];}function ts(_0x3b966b){return _0x3b966b['sort']((_0x235abf,_0x35ed3f)=>'attribute'===_0x235abf['type']&&'attribute'!==_0x35ed3f['type']?-0x1:'attribute'!==_0x235abf['type']&&'attribute'===_0x35ed3f['type']?0x1:'deletion'==_0x235abf['type']&&'deletion'!=_0x35ed3f['type']?-0x1:'deletion'!=_0x235abf['type']&&'deletion'==_0x35ed3f['type']?0x1:0x0);}function to(_0x48393d,_0x2050d4){let _0x384e41,_0x3d5b1b=0x0;const _0x2a44bd=[],_0x2f2dc0=_0x2050d4['schema'];for(;_0x3d5b1b<_0x48393d['length'];){const _0x170fdb=_0x48393d[_0x3d5b1b],_0x43f189=_0x48393d[_0x3d5b1b+0x1];_0x384e41||(_0x384e41=_0x2050d4['createPositionBefore'](_0x170fdb)),cn(_0x2050d4,_0x170fdb,_0x43f189)||(_0x2a44bd['push'](_0x2050d4['createRange'](_0x384e41,_0x2f2dc0['isObject'](_0x170fdb)?_0x2050d4['createPositionAfter'](_0x170fdb):_0x2050d4['createPositionAt'](_0x170fdb,'end'))),_0x384e41=null),_0x3d5b1b++;}return _0x2a44bd;}function cn(_0x124fd3,_0xb9e86c,_0x356f66){if(!_0x356f66)return!0x1;const _0x93e7f=_0x124fd3['createPositionAfter'](_0xb9e86c),_0x144ef1=_0x124fd3['createPositionBefore'](_0x356f66);return _0x93e7f['isTouching'](_0x144ef1);}function rs(_0x4a2bf0,_0x3c9323,_0x46f6fe){for(;_0x46f6fe['length'];){const _0x3eaa0b=_0x46f6fe['splice'](0x0,0x64);_0x4a2bf0['change'](()=>{for(const _0x574dac of _0x3eaa0b)_0x574dac['isInContent']&&_0x3c9323['execute'](_0x574dac['id']);});}}class B extends _0xa8ba53{['_command'];['_suggestions'];constructor(_0x388138,_0x137c0c,_0x53724c){super(_0x388138),this['_command']=_0x137c0c,this['_suggestions']=_0x53724c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4b9b4a=Array['from'](this['_suggestions']['values']())['some'](_0x532c30=>_0x532c30['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4b9b4a;}['execute'](){const _0x554cc8=ts(Array['from'](this['_suggestions']['values']()));for(const _0x278227 of _0x554cc8){const _0x5b87e5=_0x278227['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5b87e5))return;}rs(this['editor']['model'],this['_command'],_0x554cc8);}}class O extends _0xa8ba53{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x40ef82,_0x16d270,_0x328a41){super(_0x40ef82),this['_command']=_0x16d270,this['_suggestions']=_0x328a41,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x25ac5b=this['editor']['model']['document']['selection'],_0x8c07d1=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x25ec5b,_0x445f8d){const _0x4227e8=Array['from'](_0x25ec5b['getRanges']()),_0x2653f5=new Set();for(const _0x16081b of _0x445f8d)if(_0x16081b['isInContent']){for(const _0xf3980e of _0x4227e8)for(const _0x2aeb78 of _0x16081b['getRanges']())(_0xf3980e['isIntersecting'](_0x2aeb78)||_0x25ec5b['isCollapsed']&&!_0x16081b['isMultiRange']&&_0x16081b['next']&&_0x2aeb78['end']['isTouching'](_0xf3980e['start']))&&_0x2653f5['add'](_0x16081b);}return _0x2653f5;}(_0x25ac5b,_0x8c07d1),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2d604c=ts(Array['from'](this['_selectedSuggestions']));for(const _0x34e12d of _0x2d604c){const _0x5d7d9e=_0x34e12d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5d7d9e))return;}rs(this['editor']['model'],this['_command'],_0x2d604c);}}class x extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2735f7(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4ae19d,_0x1548e1){super(),this['id']=_0x1548e1['id'],this['type']=_0x1548e1['type'],this['subType']=_0x1548e1['subType']||null,this['author']=_0x1548e1['author'],this['creator']=_0x1548e1['creator']||_0x1548e1['author'],this['isExternal']=Boolean(_0x1548e1['attributes']&&_0x1548e1['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1548e1['originalSuggestionId']||null,this['_model']=_0x4ae19d,this['_onAccept']=_0x1548e1['onAccept'],this['_onDiscard']=_0x1548e1['onDiscard'],this['_onAttributesChange']=_0x1548e1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1548e1['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 _0x45b443=this;for(;_0x45b443['previous'];)_0x45b443=_0x45b443['previous'];return _0x45b443;}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'](_0x423e19){this['_markerNames']['add'](_0x423e19);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3bf958=>this['_model']['markers']['get'](_0x3bf958))['filter'](_0xf42035=>_0xf42035);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x753392=>{for(const _0x53feae of this['getMarkers']())_0x753392['removeMarker'](_0x53feae);}),this['_markerNames']['clear']();}['removeMarker'](_0x4cd923){this['_model']['change'](_0x766509=>{_0x766509['removeMarker'](_0x4cd923);}),this['_markerNames']['delete'](_0x4cd923);}['addRange'](_0x189f6c){const _0x28cf96='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x28cf96),this['_model']['change'](_0x3d3e01=>{_0x3d3e01['addMarker'](_0x28cf96,{'range':_0x189f6c,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5c023d){for(const _0x21a85a of this['getRanges']())if(_0x21a85a['isIntersecting'](_0x5c023d))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x54df5b=>_0x54df5b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x20b643,_0x1c63bc)=>[..._0x20b643,..._0x1c63bc['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4cb997=this['getRanges']();if(0x1!=_0x4cb997['length'])return null;const _0x2d8726=_0x4cb997[0x0],_0x248f70=_0x2d8726['start']['nodeAfter'],_0x2b1c9f=_0x2d8726['end']['nodeBefore'];return _0x248f70 instanceof _0x15f88a?_0x248f70!=_0x2b1c9f?null:_0x248f70: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 _0x5d43b1=[];let _0x2858d7=this['head'];for(;_0x2858d7;)_0x5d43b1['push'](_0x2858d7),_0x2858d7=_0x2858d7['next'];return _0x5d43b1;}['setAttribute'](_0xe228a1,_0x330511){const _0x1a83ff=_0x236c8b(this['attributes']);_0x3837a2(_0x1a83ff,_0xe228a1,_0x330511),_0x3bf56f(_0x1a83ff,this['attributes'])||(this['attributes']=_0x1a83ff,this['_onAttributesChange'](_0x1a83ff));}['removeAttribute'](_0x703beb){const _0x3a7cc7=_0x236c8b(this['attributes']);_0x407364(_0x3a7cc7,_0x703beb),_0x3bf56f(_0x3a7cc7,this['attributes'])||(this['attributes']=_0x3a7cc7,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 _0x569ccd()['substr'](0x1,0x5);}}function o(_0x307e9d,_0x5158c4,_0x232931){const _0x34f317=_0x307e9d['t'],t=_0x307e9d['t'];switch(_0x5158c4){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',_0x232931);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x232931);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x232931);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x232931);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x232931);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',_0x232931);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x232931);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',_0x232931);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x232931);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x232931);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x232931);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x232931);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x232931);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x232931);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x232931);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x232931);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x232931);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x232931);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x232931);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x232931);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x232931);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x232931);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x232931);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x232931);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x232931);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'},_0x232931);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x232931);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x232931);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x232931);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x232931);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x232931);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x232931);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x232931);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'},_0x232931);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x232931);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x232931);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x232931);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x232931);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x232931);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x232931);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'},_0x232931);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'},_0x232931);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x232931);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'},_0x232931);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x232931);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'},_0x232931);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x232931);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x232931);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x232931);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x232931);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x232931);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'},_0x232931);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x232931);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 _0x34f317({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x232931);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x34f317({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x232931);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x232931);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'},_0x232931);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'},_0x232931);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'},_0x232931);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5158c4;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x199e49,_0x1a6443){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x199e49,this['_locale']=_0x1a6443;}['getDescriptions'](_0x40ce86){const _0x7d975d=[],_0xdd61b5=new Set(),_0x204ff8=new Set();for(let _0x274611=0x0;_0x274611<_0x40ce86['length'];_0x274611++){const _0x45f7cd=_0x40ce86[_0x274611];if(!_0x45f7cd['isInContent'])continue;const _0x5b6080=this['_handleCustomCallbackDescription'](_0x45f7cd);if(_0x5b6080){if(null!=_0x45f7cd['subType']){if(_0xdd61b5['has'](_0x45f7cd['subType']))continue;_0xdd61b5['add'](_0x45f7cd['subType']);}_0x7d975d['push'](_0x5b6080);}else{if('attribute'==_0x45f7cd['type']){const _0x59b7cb=_0x45f7cd['data']['key'];if(_0x204ff8['has'](_0x59b7cb))continue;_0x204ff8['add'](_0x45f7cd['data']['key']),_0x59b7cb==m?this['_handleRenameSuggestionDescription'](_0x7d975d,_0x45f7cd):this['_handleAttributeSuggestionDescription'](_0x7d975d,_0x45f7cd);continue;}'insertion'!=_0x45f7cd['type']&&'deletion'!=_0x45f7cd['type']||this['_handleInsertRemoveSuggestionDescription'](_0x7d975d,_0x45f7cd,_0x40ce86[_0x274611+0x1]);}}return this['_resolveDescriptionItems'](_0x7d975d);}['registerDescriptionCallback'](_0x428052){this['_customCallbacks']['push'](_0x428052);}['registerElementLabel'](_0x1a4ad8,_0x297b1e,_0x482c01=_0x5b0e58['normal']){'function'==typeof _0x1a4ad8?_0x2ed1d3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1a4ad8,'label':_0x297b1e,'priority':_0x482c01}):this['_itemLabels']['set'](_0x1a4ad8,_0x297b1e);}['registerAttributeLabel'](_0x242772,_0x2e096d){this['_attributeLabels']['set'](_0x242772,_0x2e096d);}['getItemLabel'](_0x1bb61a,_0x13b5ce=0x1){let _0x397020;for(const _0x6b1e24 of this['_itemLabelsCallbacks'])if(_0x6b1e24['matchingCallback'](_0x1bb61a)){_0x397020=_0x6b1e24['label'];break;}return _0x397020||(_0x397020=this['_itemLabels']['get'](_0x1bb61a['name'])),_0x397020?_0x397020(_0x13b5ce):0x1!==_0x13b5ce?_0x13b5ce+'\x20'+_0x1bb61a['name']+'s':''+_0x1bb61a['name'];}['_addDescriptionItems'](_0xf9db81,_0x430796){const _0x3c217b=_0x430796['getFirstRange']()['getWalker'](),_0x670fb9='insertion'==_0x430796['type']?'add':'remove';for(const _0x4ef8d2 of _0x3c217b){const _0x2dbc6f=_0x4ef8d2['item'],_0x419dd8=_0xf9db81[_0xf9db81['length']-0x1];if(_0x2dbc6f['is']('$textProxy'))_0x419dd8&&_0x419dd8['type']['indexOf']('Container')>-0x1&&_0xf9db81['pop'](),_0x419dd8&&'text'==_0x419dd8['type']?_0x419dd8[_0x670fb9]+=_0x2dbc6f['data']:_0xf9db81['push']({'type':'text','add':'add'==_0x670fb9?_0x2dbc6f['data']:'','remove':'remove'==_0x670fb9?_0x2dbc6f['data']:''});else{if(this['_schema']['isObject'](_0x2dbc6f)){const _0x2a8df7=_0x2dbc6f;if(_0x419dd8&&_0x419dd8['type']['indexOf']('Container')>-0x1&&_0xf9db81['pop'](),'elementEnd'==_0x4ef8d2['type'])continue;_0x419dd8&&_0x419dd8['type']==_0x670fb9+'Object'&&_0x419dd8['element']['name']==_0x2a8df7['name']?_0x419dd8['quantity']++:_0xf9db81['push']({'type':_0x670fb9+'Object','element':_0x2a8df7,'quantity':0x1}),_0x3c217b['skip'](_0x26141b=>!('elementEnd'==_0x26141b['type']&&_0x26141b['item']==_0x2dbc6f));}else{if(this['_schema']['checkChild'](_0x2dbc6f,'$text')||_0x2dbc6f['is']('element','softBreak')){const _0x449b69=_0x2dbc6f;if('add'==_0x670fb9&&'elementStart'==_0x4ef8d2['type']||'remove'==_0x670fb9&&'elementEnd'==_0x4ef8d2['type'])continue;if(_0x419dd8&&-0x1==_0x419dd8['type']['indexOf']('Container')){'text'==_0x419dd8['type']&&(_0x419dd8[_0x670fb9]+='\x0a');continue;}let _0x3ca17f;if(_0x3ca17f='add'==_0x670fb9?_0x449b69['nextSibling']&&!this['_schema']['isObject'](_0x449b69['nextSibling'])?_0x449b69['nextSibling']:null:_0x449b69['previousSibling']&&!this['_schema']['isObject'](_0x449b69['previousSibling'])?_0x449b69['previousSibling']:null,_0x449b69['isEmpty']||_0x3ca17f&&_0x3ca17f['isEmpty']){const _0x1175a8=_0x3ca17f&&_0x3ca17f['isEmpty']?_0x3ca17f:_0x449b69;_0x419dd8&&_0x419dd8['type']==_0x670fb9+'EmptyContainer'&&_0x419dd8['element']['name']==_0x1175a8['name']?_0x419dd8['quantity']++:_0xf9db81['push']({'type':_0x670fb9+'EmptyContainer','element':_0x1175a8,'quantity':0x1});}else _0xf9db81['push']({'type':_0x670fb9+'Container','element':_0x449b69});}}}}}['_resolveDescriptionItems'](_0x3c18d9){const _0x19c907=this['_locale'],_0x1e0d3c=[],_0x137c27=[],_0x2041c0=[];for(const _0x1799a2 of _0x3c18d9)switch(_0x1799a2['type']){case'text':if(_0x1799a2['add']=_0x1799a2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1799a2['remove']=_0x1799a2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1799a2['add']&&''!=_0x1799a2['remove']){_0x1e0d3c['push']({'type':'replace','content':o(_0x19c907,'REPLACE_TEXT',['\x22'+_0x1799a2['remove']+'\x22','\x22'+_0x1799a2['add']+'\x22'])});continue;}if(null!=_0x1799a2['add']['match'](/^ +$/)){_0x1e0d3c['push']({'type':'insertion','content':o(_0x19c907,'*Insert:*\x20%0',o(_0x19c907,'ELEMENT_SPACE',_0x1799a2['add']['length']))});continue;}if(null!=_0x1799a2['remove']['match'](/^ +$/)){_0x1e0d3c['push']({'type':'deletion','content':o(_0x19c907,'*Remove:*\x20%0',o(_0x19c907,'ELEMENT_SPACE',_0x1799a2['remove']['length']))});continue;}if(''!=_0x1799a2['add']){_0x1e0d3c['push']({'type':'insertion','content':o(_0x19c907,'*Insert:*\x20%0','\x22'+_0x1799a2['add']+'\x22')});continue;}_0x1e0d3c['push']({'type':'deletion','content':o(_0x19c907,'*Remove:*\x20%0','\x22'+_0x1799a2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1e0d3c['push']({'type':'insertion','content':o(_0x19c907,'*Insert:*\x20%0',this['getItemLabel'](_0x1799a2['element'],_0x1799a2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1e0d3c['push']({'type':'deletion','content':o(_0x19c907,'*Remove:*\x20%0',this['getItemLabel'](_0x1799a2['element'],_0x1799a2['quantity']))});continue;case'addContainer':_0x1e0d3c['push']({'type':'insertion','content':o(_0x19c907,'*Split:*\x20%0',this['getItemLabel'](_0x1799a2['element'],_0x1799a2['quantity']))});continue;case'removeContainer':_0x1e0d3c['push']({'type':'deletion','content':o(_0x19c907,'*Merge:*\x20%0',this['getItemLabel'](_0x1799a2['element'],_0x1799a2['quantity']))});continue;case'addFormat':_0x137c27['push'](_0x1799a2['key']);continue;case'removeFormat':_0x2041c0['push'](_0x1799a2['key']);continue;default:_0x1e0d3c['push'](_0x1799a2);}if(_0x137c27['length']){const _0x2ae859=_0x137c27['map'](_0x3b9ca8=>this['_attributeLabels']['has'](_0x3b9ca8)?this['_attributeLabels']['get'](_0x3b9ca8):_0x3b9ca8)['join'](',\x20');_0x1e0d3c['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2ae859)});}if(_0x2041c0['length']){const _0x1c0b1d=_0x2041c0['map'](_0x237657=>this['_attributeLabels']['has'](_0x237657)?this['_attributeLabels']['get'](_0x237657):_0x237657)['join'](',\x20');_0x1e0d3c['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1c0b1d)});}return _0x1e0d3c;}['_handleCustomCallbackDescription'](_0x530e39){for(const _0x534feb of this['_customCallbacks']){const _0x46c483=_0x534feb(_0x530e39);if(_0x46c483&&'type'in _0x46c483)return _0x46c483;}}['_handleAttributeSuggestionDescription'](_0xe61be6,_0x107135){const _0x21933a=_0x107135['data'],_0xf58228=void 0x0===_0x21933a['newValue']?'removeFormat':'addFormat';_0xe61be6['push']({'type':_0xf58228,'key':_0x21933a['key']});}['_handleRenameSuggestionDescription'](_0x1c60d1,_0x2cce86){_0x1c60d1['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2cce86['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x10517d,_0x4b27e0,_0x1adee7){if(this['_addDescriptionItems'](_0x10517d,_0x4b27e0),_0x1adee7&&_0x1adee7['getFirstRange']()&&!_0x4b27e0['getFirstRange']()['end']['isEqual'](_0x1adee7['getFirstRange']()['start'])){const _0x371f89=_0x10517d[_0x10517d['length']-0x1],_0x205e8b='insertion'==_0x4b27e0['type']?'add':'remove';_0x371f89&&'text'==_0x371f89['type']&&(_0x371f89[_0x205e8b]+='\x0a');}}}class R extends _0x1a5913{['afterInit'](){const _0x24641f=this['editor'],_0x4c9e38=_0x24641f['plugins']['get']('TrackChangesEditing');_0x24641f['commands']['get']('showAIAssistant')&&_0x4c9e38['enableCommand']('showAIAssistant');}}class T extends _0x1a5913{['afterInit'](){const _0x1111de=this['editor'],_0x3a3593=_0x1111de['plugins']['get']('TrackChangesEditing');_0x1111de['commands']['get']('toggleAi')&&_0x3a3593['enableCommand']('toggleAi');}}class E extends _0x1a5913{['afterInit'](){const _0x3666be=this['editor'],_0x187b3a=_0x3666be['plugins']['get']('TrackChangesEditing');_0x3666be['commands']['get']('aiQuickAction')&&_0x187b3a['enableCommand']('aiQuickAction');}}class U extends _0x1a5913{['afterInit'](){const _0x2469a4=this['editor'],_0x54d144=_0x2469a4['locale'];if(!_0x2469a4['plugins']['has']('AlignmentEditing'))return;const _0x46f508=_0x2469a4['plugins']['get']('TrackChangesEditing');_0x46f508['enableDefaultAttributesIntegration']('alignment'),_0x46f508['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x54d144,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c51f9=this['editor'],_0x4bd82f=_0x5c51f9['locale'];_0x5c51f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28675d=>{if('formatBlock'!=_0x28675d['type'])return;const {data:_0x3bd8b6}=_0x28675d;if(_0x3bd8b6&&'alignment'==_0x3bd8b6['commandName']){const _0x559bce=_0x3bd8b6['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4bd82f,'*Format:*\x20%0',function(_0x54392b){switch(_0x54392b){case'left':return o(_0x4bd82f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4bd82f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4bd82f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4bd82f,'FORMAT_JUSTIFY_TEXT');}}(_0x559bce))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x1a5913{['afterInit'](){const _0x291543=this['editor'],_0x2920b0=_0x291543['plugins']['get']('TrackChangesEditing'),_0x31ca95=_0x291543['locale'];for(const _0x38f4c8 of ti){if(!_0x291543['plugins']['has'](_0x38f4c8))continue;const _0x7f920b=_0x38f4c8['slice'](0x0,-0x7)['toLowerCase'](),_0x320ee7='FORMAT_'+_0x7f920b['toUpperCase']();_0x2920b0['enableDefaultAttributesIntegration'](_0x7f920b),_0x2920b0['descriptionFactory']['registerAttributeLabel'](_0x7f920b,o(_0x31ca95,_0x320ee7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x78121f=this['editor'],_0x2264db=_0x78121f['locale'],_0x52eab3=_0x78121f['plugins']['get']('TrackChangesEditing');function _0x5e47b6(_0x18e66c,_0x1fa3ab){_0x52eab3['descriptionFactory']['registerDescriptionCallback'](_0x360a73=>{if('formatInline'!=_0x360a73['type'])return;const {data:_0x3d6083}=_0x360a73;return _0x3d6083&&_0x3d6083['commandName']===_0x18e66c?_0x3d6083['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2264db,'*Format:*\x20%0',_0x1fa3ab)}:{'type':'format','content':o(_0x2264db,'*Remove\x20format:*\x20%0',_0x1fa3ab)}:void 0x0;});}_0x5e47b6('bold',o(_0x2264db,'FORMAT_BOLD')),_0x5e47b6('italic',o(_0x2264db,'FORMAT_ITALIC')),_0x5e47b6('underline',o(_0x2264db,'FORMAT_UNDERLINE')),_0x5e47b6('code',o(_0x2264db,'FORMAT_CODE')),_0x5e47b6('strikethrough',o(_0x2264db,'FORMAT_STRIKETHROUGH')),_0x5e47b6('subscript',o(_0x2264db,'FORMAT_SUBSCRIPT')),_0x5e47b6('superscript',o(_0x2264db,'FORMAT_SUPERSCRIPT'));}}class F extends _0x1a5913{['afterInit'](){const _0x1174c6=this['editor'],_0x3eecc2=_0x1174c6['locale'];if(!_0x1174c6['plugins']['has']('BlockQuoteEditing'))return;const _0x672d4d=_0x1174c6['plugins']['get']('TrackChangesEditing'),_0x546cf6=this['editor']['commands']['get']('blockQuote');_0x672d4d['enableCommand']('blockQuote',(_0x49b47b,_0x1b5d45={})=>{const _0x3725b2=this['editor']['model']['document']['selection'],_0x2144fc=_0x1b5d45&&void 0x0!==_0x1b5d45['forceValue']?_0x1b5d45['forceValue']:!_0x546cf6['value'];let _0x4da036=[];if(_0x2144fc){const _0xd88d07=Array['from'](_0x3725b2['getSelectedBlocks']())['filter'](_0x3fd5c4=>oo(_0x3fd5c4)||function(_0x166316,_0x3cec84){const _0xfbd7b9=_0x3cec84['checkChild'](_0x166316['parent'],'blockQuote'),_0x5394f0=_0x3cec84['checkChild'](['$root','blockQuote'],_0x166316);return _0xfbd7b9&&_0x5394f0;}(_0x3fd5c4,this['editor']['model']['schema']));_0x4da036=to(_0xd88d07,_0x1174c6['model']);}else{const _0x14895a=Array['from'](_0x3725b2['getSelectedBlocks']())['filter'](_0x467ccc=>oo(_0x467ccc));_0x4da036=to(_0x14895a,_0x1174c6['model']);}_0x1174c6['model']['change'](()=>{for(const _0x51b3c4 of _0x4da036)_0x672d4d['markBlockFormat'](_0x51b3c4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2144fc}]});});}),_0x672d4d['descriptionFactory']['registerDescriptionCallback'](_0x3a7b77=>{const {data:_0x478e57}=_0x3a7b77;if(_0x478e57&&'blockQuote'==_0x478e57['commandName']){const _0x3c63b7=o(_0x3eecc2,'ELEMENT_BLOCK_QUOTE');return _0x478e57['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3eecc2,'*Set\x20format:*\x20%0',_0x3c63b7)}:{'type':'format','content':o(_0x3eecc2,'*Remove\x20format:*\x20%0',_0x3c63b7)};}});}}function oo(_0x426a3c){return'blockQuote'==_0x426a3c['parent']['name'];}class G extends _0x1a5913{['afterInit'](){const _0x3b4947=this['editor'],_0x377cbe=_0x3b4947['locale'],_0x43a8a6=_0x3b4947['plugins']['get']('TrackChangesEditing');_0x3b4947['plugins']['has']('BookmarkEditing')&&(_0x43a8a6['enableCommand']('insertBookmark'),_0x43a8a6['enableDefaultAttributesIntegration']('updateBookmark'),_0x43a8a6['descriptionFactory']['registerDescriptionCallback'](_0x41ffd5=>{if('insertion'!=_0x41ffd5['type']&&'deletion'!=_0x41ffd5['type']&&'attribute'!=_0x41ffd5['type'])return;const _0x5ce96e=_0x41ffd5['getContainedElement']();if(null==_0x5ce96e)return;if(!_0x5ce96e['is']('element','bookmark'))return;const _0x414416=_0x5ce96e['getAttribute']('bookmarkId');if('insertion'==_0x41ffd5['type'])return{'type':'insertion','content':o(_0x377cbe,'*Insert:*\x20%0','\x22'+_0x414416+'\x22\x20'+o(_0x377cbe,'ELEMENT_BOOKMARK'))};if('deletion'==_0x41ffd5['type'])return{'type':'deletion','content':o(_0x377cbe,'*Remove:*\x20%0','\x22'+_0x414416+'\x22\x20'+o(_0x377cbe,'ELEMENT_BOOKMARK'))};const {data:_0x2dc793}=_0x41ffd5;if(!_0x2dc793||'bookmarkId'!=_0x2dc793['key'])return;return{'type':'format','content':o(_0x377cbe,'*Set\x20bookmark:*\x20%0','\x22'+_0x2dc793['newValue']+'\x22')};}));}}class L extends _0x1a5913{['afterInit'](){const _0x232e33=this['editor'];_0x232e33['plugins']['has']('CaseChange')&&(_0x232e33['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x232e33['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x232e33['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x1a5913{['afterInit'](){const _0x18da39=this['editor'];_0x18da39['commands']['get']('ckbox')&&_0x18da39['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x1a5913{['afterInit'](){const _0x1c1c1d=this['editor'];if(!_0x1c1c1d['plugins']['has']('CodeBlock'))return;const _0x10d6b0=_0x1c1c1d['plugins']['get']('TrackChangesEditing'),_0x59a7e4=_0x1c1c1d['locale'],_0x138837=_0x1c1c1d['config']['get']('codeBlock')['languages'],_0x38bc47=_0x1c1c1d['commands']['get']('codeBlock');_0x10d6b0['enableCommand']('indentCodeBlock'),_0x10d6b0['enableCommand']('outdentCodeBlock'),_0x10d6b0['enableCommand']('codeBlock',(_0x38adfb,_0x384886={})=>{const _0x4d9228=_0x1c1c1d['model'],_0x199dd2=_0x1c1c1d['model']['document']['selection'],_0x269076=_0x384886&&void 0x0!==_0x384886['forceValue']?_0x384886['forceValue']:!_0x38bc47['value'];let _0x2b7634;_0x384886['language']||(_0x384886['language']=_0x138837[0x0]['language']),_0x2b7634=_0x269076?Array['from'](_0x199dd2['getSelectedBlocks']())['filter'](_0x18277a=>co(_0x18277a)||function(_0x332069,_0x33c018){if(_0x332069['is']('rootElement')||_0x33c018['isLimit'](_0x332069))return!0x1;return _0x33c018['checkChild'](_0x332069['parent'],'codeBlock');}(_0x18277a,_0x4d9228['schema'])):Array['from'](_0x199dd2['getSelectedBlocks']())['filter'](_0x35383c=>co(_0x35383c));const _0x37bd8b=to(_0x2b7634,_0x4d9228);_0x4d9228['change'](()=>{for(const _0x56ae96 of _0x37bd8b)_0x10d6b0['markBlockFormat'](_0x56ae96,{'commandName':'codeBlock','commandParams':[{..._0x384886,'forceValue':_0x269076}],'formatGroupId':'blockName'});});}),(_0x10d6b0['descriptionFactory']['registerElementLabel']('codeBlock',_0x24a253=>o(_0x59a7e4,'ELEMENT_CODE_BLOCK',_0x24a253)),_0x10d6b0['descriptionFactory']['registerDescriptionCallback'](_0x217b37=>{if('formatBlock'!=_0x217b37['type'])return;const _0x29fc6b=_0x59a7e4['t'],{data:_0x286479}=_0x217b37;if(!_0x286479||'codeBlock'!=_0x286479['commandName'])return;const _0x1e1dad=_0x286479['commandParams'][0x0]['language'],_0x592531=_0x29fc6b(_0x138837['find'](_0x5cdfa8=>_0x5cdfa8['language']===_0x1e1dad)['label'])['toLowerCase']();return _0x286479['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x59a7e4,'*Set\x20format:*\x20%0',o(_0x59a7e4,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x592531+')')}:{'type':'format','content':o(_0x59a7e4,'*Remove\x20format:*\x20%0',o(_0x59a7e4,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x541abc){return'codeBlock'==_0x541abc['name'];}class z extends _0x1a5913{['afterInit'](){const _0x54a55f=this['editor'];if(!_0x54a55f['plugins']['has']('CommentsEditing'))return;_0x54a55f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x1a5913{static get['requires'](){return[_0x57e0e1];}['init'](){const _0x5183f2=this['editor'],_0x2bfe53=_0x5183f2['plugins']['get']('TrackChangesEditing');_0x2bfe53['enableCommand']('delete');const _0x81c2cc=_0x5183f2['commands']['get']('deleteForward');_0x2bfe53['enableCommand']('deleteForward',(_0x548682,_0x29a683={})=>{const _0x3cb822=_0x5183f2['model']['createSelection'](_0x5183f2['model']['document']['selection']);_0x3cb822['isCollapsed']&&_0x5183f2['model']['modifySelection'](_0x3cb822,{'direction':'forward','unit':_0x29a683['unit']});const _0xe8327f=_0x3cb822['getFirstRange'](),_0x4ff26b=_0x4edbf7['fromRange'](_0xe8327f);let _0x1cce24;_0x548682(_0x29a683),_0x1cce24='$graveyard'==_0x4ff26b['root']['rootName']?_0x5183f2['model']['createRange'](_0xe8327f['start']):_0x5183f2['model']['createRange'](_0x4ff26b['start'],_0x4ff26b['end']),_0x4ff26b['detach'](),_0x5183f2['model']['enqueueChange'](_0x81c2cc['buffer']['batch'],_0x1b52a5=>{_0x81c2cc['buffer']['lock'](),_0x1b52a5['setSelection'](_0x1b52a5['createRange'](_0x1cce24['end'])),_0x81c2cc['buffer']['unlock']();});});}}class W extends _0x1a5913{['afterInit'](){const _0x449181=this['editor'];if(!_0x449181['plugins']['has']('ListEditing'))return;const _0xd759b9=_0x449181['locale'],_0x59b71f=_0x449181['plugins']['get']('TrackChangesEditing'),_0x3be8d4=_0x449181['plugins']['has']('TodoListEditing'),_0x4070d8=!!_0x449181['config']['get']('list.multiBlock');function _0x218039(_0x11413c){return{'type':'format','content':''+o(_0xd759b9,'*Set\x20format:*\x20%0',_0x11413c)};}function _0x11f0d6(_0x2bda59){return{'type':'format','content':''+o(_0xd759b9,'*Remove\x20format:*\x20%0',_0x2bda59)};}_0x59b71f['enableDefaultAttributesIntegration']('numberedList'),_0x59b71f['enableDefaultAttributesIntegration']('bulletedList'),_0x59b71f['enableDefaultAttributesIntegration']('customNumberedList'),_0x59b71f['enableDefaultAttributesIntegration']('customBulletedList'),_0x59b71f['enableDefaultAttributesIntegration']('indentList'),_0x59b71f['enableDefaultAttributesIntegration']('outdentList'),_0x59b71f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x59b71f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4070d8&&(_0x59b71f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x59b71f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3be8d4&&(_0x59b71f['enableDefaultAttributesIntegration']('todoList'),_0x59b71f['enableDefaultAttributesIntegration']('checkTodoList'),_0x59b71f['descriptionFactory']['registerDescriptionCallback'](_0x37b021=>{const {data:_0x260074}=_0x37b021;if(_0x260074&&'todoListChecked'==_0x260074['key'])return{'type':'format','content':_0x260074['newValue']?o(_0xd759b9,'*Check\x20item*'):o(_0xd759b9,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4980bc=>{if(_0x4980bc['batch']['isUndo'])return!0x1;let _0x471111=!0x1;const _0x445fb8=_0x59b71f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4354f4=>'todoListChecked'===_0x59b71f['_getAttributeKey'](_0x4354f4));for(const _0x58479f of _0x445fb8){'todo'!=_0x58479f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x59b71f['_findSuggestions'](_0x58479f['getFirstRange'](),'attribute')['find'](_0x6163b5=>'listType'===_0x59b71f['_getAttributeKey'](_0x6163b5['suggestion']))||(_0x4980bc['removeMarker'](_0x58479f['getFirstMarker']()),_0x471111=!0x0));}return _0x471111;})),_0x59b71f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xd759b9,'FORMAT_INDENT'));const _0x2ad5c9={'type':'format','content':''};_0x59b71f['descriptionFactory']['registerDescriptionCallback'](_0x52d04c=>{const {data:_0x36c78b}=_0x52d04c;if(!_0x36c78b||'listType'!=_0x36c78b['key'])return;let _0x17ccd1=_0x52d04c['head'];for(;_0x17ccd1;){if(_0x17ccd1['data']&&(('listStyle'==_0x17ccd1['data']['key']||'listMarkerStyle'==_0x17ccd1['data']['key'])&&(_0x17ccd1['data']['newValue']&&'default'!=_0x17ccd1['data']['newValue']||'default'!=_0x17ccd1['data']['oldValue']&&!_0x36c78b['newValue'])||!_0x4070d8&&_0x17ccd1['data']['key']==m))return _0x2ad5c9;_0x17ccd1=_0x17ccd1['next'];}if(null==_0x36c78b['newValue'])switch(_0x36c78b['oldValue']){case'bulleted':return _0x11f0d6(o(_0xd759b9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x11f0d6(o(_0xd759b9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x11f0d6(o(_0xd759b9,'ELEMENT_TODO_LIST'));}switch(_0x36c78b['newValue']){case'bulleted':return _0x218039(o(_0xd759b9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x218039(o(_0xd759b9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x218039(o(_0xd759b9,'ELEMENT_TODO_LIST'));}}),_0x59b71f['descriptionFactory']['registerDescriptionCallback'](_0xc28699=>{const {data:_0x3ac2c0}=_0xc28699;if(_0x3ac2c0&&'listIndent'==_0x3ac2c0['key'])return null==_0x3ac2c0['newValue']||null==_0x3ac2c0['oldValue']&&0x0==_0x3ac2c0['newValue']?_0x2ad5c9:void 0x0;}),_0x59b71f['descriptionFactory']['registerDescriptionCallback'](_0x117a6f=>{if('attribute'!=_0x117a6f['type'])return;const {data:_0x1b8521}=_0x117a6f;if(!_0x1b8521||'listItemId'!=_0x1b8521['key'])return;const _0x35fd47=Te(_0x117a6f);return'newValue'==_0x35fd47?{'type':'format','content':o(_0xd759b9,'*Merge:*\x20list\x20item')}:'oldValue'==_0x35fd47?{'type':'format','content':o(_0xd759b9,'*Split:*\x20list\x20item')}:_0x2ad5c9;}),_0x449181['model']['document']['registerPostFixer'](_0x4db526=>this['listItemIdFixer'](_0x4db526)),_0x449181['model']['document']['registerPostFixer'](_0x5a2158=>this['noTrackChangesFixer'](_0x5a2158)),_0x449181['model']['document']['on']('change:data',(_0x2be8a3,_0x288f0b)=>{if(_0x288f0b['isUndo']||!_0x288f0b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x117df6){if(_0x117df6['batch']['isUndo']||!_0x117df6['batch']['isLocal'])return!0x1;let _0x5c83a5=!0x1;const _0x45ecc0=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f94ca=>_0x4f94ca['data']&&'listItemId'==_0x4f94ca['data']['key'])['filter'](_0x551f19=>_0x551f19['data']['newValue']&&_0x551f19['data']['oldValue']);for(const _0x5e79a2 of _0x45ecc0)Te(_0x5e79a2)||(_0x117df6['removeMarker'](_0x5e79a2['getFirstMarker']()),_0x5c83a5=!0x0);return _0x5c83a5;}['noTrackChangesFixer'](_0x344231){if(_0x344231['batch']['isUndo']||!_0x344231['batch']['isLocal'])return!0x1;const _0x5a0b4=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5a0b4['trackChangesCommand']['value'])return!0x1;let _0xd56af0=!0x1;const _0x71c1f5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1715e8=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x18d25b=>'attribute'==_0x18d25b['type'])['filter'](_0x31b62e=>_0x71c1f5['includes'](_0x31b62e['attributeKey']));if(0x0==_0x1715e8['length'])return _0xd56af0;for(const _0x43c2f0 of _0x1715e8){const _0x34e3f8=_0x5a0b4['_findSuggestions'](_0x43c2f0['range'],'attribute')['filter'](_0x31c838=>!_0x31c838['meta']['isNextTo'])['map'](_0x3b4fbe=>_0x3b4fbe['suggestion'])['filter'](_0x10700e=>{const _0x545585=_0x5a0b4['_getAttributeKey'](_0x10700e);return _0x71c1f5['includes'](_0x545585);});if(_0x34e3f8['length']){for(const _0x9defa2 of _0x34e3f8)_0x344231['removeMarker'](_0x9defa2['getFirstMarker']());_0xd56af0=!0x0;}}return _0xd56af0;}['assureChains'](){const _0x306ae5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1bfd6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x56e43d;const _0x483c17=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xb44687=>{if(_0xb44687['data']['oldRange']||!_0xb44687['data']['newRange'])return null;if(!_0xb44687['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x35068e}=_0x306ae5['_splitMarkerName'](_0xb44687['name']);if(!_0x306ae5['hasSuggestion'](_0x35068e))return null;const _0x24d320=_0x306ae5['getSuggestion'](_0x35068e);return _0x1bfd6['includes'](_0x24d320['data']['key']);})['map'](_0x34ad0c=>{const {id:_0x516bf4}=_0x306ae5['_splitMarkerName'](_0x34ad0c['name']),_0x147c45=_0x306ae5['getSuggestion'](_0x516bf4);return _0x56e43d=_0x147c45['attributes']['groupId'],_0x147c45['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x483c17['size'])return;const _0xec9819=_0x306ae5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x541714=>'attribute'==_0x541714['type']&&_0x541714['data']&&_0x1bfd6['includes'](_0x541714['data']['key'])&&_0x541714['attributes']['groupId']!=_0x56e43d)['map'](_0x37605c=>({'listItem':_0x37605c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x37605c['attributes']['groupId']})),_0x4beec0=new Set();for(const {groupId:_0x4c47a1,listItem:_0x51df6d}of _0xec9819)_0x483c17['has'](_0x51df6d)&&_0x4beec0['add'](_0x4c47a1);for(const _0x517ec2 of _0x306ae5['getSuggestions']())_0x4beec0['has'](_0x517ec2['attributes']['groupId'])&&_0x517ec2['setAttribute']('groupId',_0x56e43d);}['_supportLegacySuggestions'](){const _0x21a496=this['editor'],_0x55df22=_0x21a496['locale'],_0x2d9b1b=_0x21a496['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2d9b1b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1e90c6,_0x3d5d9a){const _0x240275=[];for(let _0x309291 of _0x1e90c6)_0x309291['start']['nodeAfter']===_0x309291['end']['parent']&&(_0x309291=_0x21a496['model']['createRange'](_0x21a496['model']['createPositionAt'](_0x309291['start']['nodeAfter'],0x0))),_0x240275['push'](_0x309291);_0x21a496['model']['change'](_0xe55eae=>{const _0xb920a5=_0x21a496['model']['document']['selection'],_0x4e58d8=Array['from'](_0xb920a5['getRanges']())['map'](_0x3823a5=>_0x4edbf7['fromRange'](_0x3823a5));_0xe55eae['setSelection'](_0x240275),_0x21a496['commands']['get'](_0x3d5d9a['commandName'])['refresh'](),_0x3d5d9a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x21a496['execute'](_0x3d5d9a['commandName'],..._0x3d5d9a['commandParams']),_0xe55eae['setSelection'](_0x4e58d8);for(const _0x4e4296 of _0x4e58d8)_0x4e4296['detach']();});}),_0x2d9b1b['descriptionFactory']['registerElementLabel'](function(_0x2220fc){const _0x35079a=!_0x21a496['model']['schema']['isObject'](_0x2220fc),_0x282cb7=_0x2220fc['previousSibling'],_0x42a3f2=_0x2220fc['nextSibling'],_0x431a70=_0x2220fc['getAttribute']('listItemId'),_0x211e35=!_0x282cb7||_0x282cb7['getAttribute']('listItemId')!==_0x431a70,_0x1adcdd=!_0x42a3f2||_0x42a3f2['getAttribute']('listItemId')!==_0x431a70;return _0x35079a&&Boolean(_0x431a70)&&_0x211e35&&_0x1adcdd;},_0x2ccc17=>o(_0x55df22,'ELEMENT_LIST_ITEM',_0x2ccc17));}['_registerLegacyDescription'](){const _0x13c53a=this['editor'],_0x341c82=_0x13c53a['locale'];function _0x20c980(_0x5d7402){const _0x530c9a=_0x13c53a['commands']['get']('bulletedList')['value'],_0x449236=_0x13c53a['commands']['get']('numberedList')['value'];return'numberedList'===_0x5d7402?_0x530c9a:_0x449236;}_0x13c53a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x38151e){if('formatBlock'!=_0x38151e['type'])return;const {data:_0x4e9b56}=_0x38151e;if(!_0x4e9b56)return;let _0x45d1cd,_0x1111ab,_0x18a1e7,_0x31d45f;switch(_0x4e9b56['commandName']){case'bulletedList':_0x18a1e7=_0x4e9b56['commandParams'][0x0]['forceValue'],_0x31d45f=_0x20c980(_0x4e9b56['commandName']),_0x45d1cd=_0x18a1e7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x31d45f&&_0x13c53a['config']['get']('list.multiBlock')||(_0x45d1cd='*Change\x20to:*\x20%0'),_0x1111ab={'type':'format','content':o(_0x341c82,_0x45d1cd,o(_0x341c82,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x18a1e7=_0x4e9b56['commandParams'][0x0]['forceValue'],_0x31d45f=_0x20c980(_0x4e9b56['commandName']),_0x45d1cd=_0x18a1e7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x31d45f&&_0x13c53a['config']['get']('list.multiBlock')||(_0x45d1cd='*Change\x20to:*\x20%0'),_0x1111ab={'type':'format','content':o(_0x341c82,_0x45d1cd,o(_0x341c82,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x45d1cd='*Indent:*\x20%0',_0x1111ab={'type':'format','content':o(_0x341c82,_0x45d1cd,o(_0x341c82,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x45d1cd=function(_0x1d8763){const _0x2b7ae3=_0x1d8763['getFirstRange']();let _0x1607c4=_0x2b7ae3['start']['nodeAfter'];for(;_0x1607c4&&_0x2b7ae3['containsItem'](_0x1607c4);){if(_0x1607c4['getAttribute']('listIndent')>0x0)return!0x1;_0x1607c4=_0x1607c4['nextSibling'];}return!0x0;}(_0x38151e)?o(_0x341c82,'*Format:*\x20remove\x20from\x20%0',o(_0x341c82,function(_0x4048c0){return'ELEMENT_'+_0x4048c0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x38151e))):o(_0x341c82,'*Outdent:*\x20%0',o(_0x341c82,'ELEMENT_LIST_ITEM')),_0x1111ab={'type':'format','content':_0x45d1cd};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4e9b56['multipleBlocks']&&(_0x45d1cd='*Merge:*\x20%0',_0x1111ab={'type':'deletion','content':o(_0x341c82,_0x45d1cd,o(_0x341c82,'ELEMENT_LIST_ITEM'))});}return _0x1111ab;});}}function Te(_0x11d362){let _0x43553a=_0x11d362['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x43553a;){const _0x4e1a0b=_0x43553a['getAttribute']('listItemId');if(!_0x4e1a0b)return!0x1;if(_0x4e1a0b==_0x11d362['data']['newValue'])return'newValue';if(_0x4e1a0b==_0x11d362['data']['oldValue'])return'oldValue';_0x43553a=_0x43553a['previousSibling'];}return!0x1;}class H extends _0x1a5913{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x331cb4=this['editor']['config']['get']('list.properties'),_0x2639c1=this['editor']['plugins']['get']('TrackChangesEditing');_0x331cb4['styles']&&_0x2639c1['enableDefaultAttributesIntegration']('listStyle'),_0x331cb4['reversed']&&_0x2639c1['enableDefaultAttributesIntegration']('listReversed'),_0x331cb4['startIndex']&&_0x2639c1['enableDefaultAttributesIntegration']('listStart');const _0x1ee807={'type':'format','content':''};_0x2639c1['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xbe14e1=this['editor']['locale'];_0x2639c1['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xbe14e1,'FORMAT_LIST_REVERSED')),_0x2639c1['descriptionFactory']['registerDescriptionCallback'](_0x232e20=>{const {data:_0x5084f9}=_0x232e20;if(_0x5084f9&&'listReversed'==_0x5084f9['key'])return null==_0x5084f9['newValue']||0x0==_0x5084f9['newValue']&&null==_0x5084f9['oldValue']?_0x1ee807:void 0x0;}),_0x2639c1['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xbe14e1,'FORMAT_LIST_START')),_0x2639c1['descriptionFactory']['registerDescriptionCallback'](_0x3b3ee1=>{const {data:_0xd79155}=_0x3b3ee1;if(_0xd79155&&'listStart'==_0xd79155['key'])return null==_0xd79155['newValue']||0x1==_0xd79155['newValue']&&null==_0xd79155['oldValue']?_0x1ee807:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1eeb4c=>{if(_0x1eeb4c['batch']['isUndo'])return!0x1;let _0x393a0f=!0x1;const _0x362033=_0x2639c1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2148d8=>{const _0x9baef4=_0x2639c1['_getAttributeKey'](_0x2148d8);return'listStart'==_0x9baef4||'listReversed'==_0x9baef4;});for(const _0x5a211d of _0x362033){const _0x5c4144=_0x5a211d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5c4144||'customNumbered'==_0x5c4144)continue;_0x2639c1['_findSuggestions'](_0x5a211d['getFirstRange'](),'attribute')['find'](_0x1af3ea=>'listType'==_0x2639c1['_getAttributeKey'](_0x1af3ea['suggestion']))||(_0x1eeb4c['removeMarker'](_0x5a211d['getFirstMarker']()),_0x393a0f=!0x0);}return _0x393a0f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xdccbd1){const _0x348312=this['editor']['locale'],{data:_0x5b15a6}=_0xdccbd1,_0x1db3f9={'type':'format','content':''};if(!_0x5b15a6||'listStyle'!=_0x5b15a6['key'])return;if(!_0x5b15a6['oldValue'])return'default'==_0x5b15a6['newValue']?_0x1db3f9:{'type':'format','content':''+o(_0x348312,'*Set\x20format:*\x20%0',o(_0x348312,this['_getTranslationKeyForListStyle'](_0x5b15a6['newValue'])))};if(!_0x5b15a6['newValue']){if('default'==_0x5b15a6['oldValue'])return _0x1db3f9;let _0x40d13c=_0xdccbd1['head'];for(;_0x40d13c;){if(_0x40d13c['data']&&'listType'==_0x40d13c['data']['key']&&_0x40d13c['data']['newValue'])return _0x1db3f9;_0x40d13c=_0x40d13c['next'];}return{'type':'format','content':''+o(_0x348312,'*Remove\x20format:*\x20%0',o(_0x348312,this['_getTranslationKeyForListStyle'](_0x5b15a6['oldValue'])))};}if('default'!=_0x5b15a6['newValue'])return{'type':'format','content':''+o(_0x348312,'*Set\x20format:*\x20%0',o(_0x348312,this['_getTranslationKeyForListStyle'](_0x5b15a6['newValue'])))};let _0x30788f=_0xdccbd1['head'];for(;_0x30788f;){if(_0x30788f['data']&&'listType'==_0x30788f['data']['key']&&_0x30788f['data']['newValue']&&_0x30788f['data']['oldValue'])return _0x1db3f9;_0x30788f=_0x30788f['next'];}return{'type':'format','content':o(_0x348312,'*Set\x20format:*\x20%0',o(_0x348312,'ELEMENT_'+_0xdccbd1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x91c3e9=this['editor'],_0x5ad68b=_0x91c3e9['locale'];_0x91c3e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e9fb3=>{if('formatBlock'!=_0x1e9fb3['type'])return;const {data:_0x2600de}=_0x1e9fb3;if(!_0x2600de)return;let _0x244f68,_0xb4777;switch(_0x2600de['commandName']){case'listStyle':_0x244f68='*Change\x20to:*\x20%0',_0xb4777={'type':'format','content':o(_0x5ad68b,_0x244f68,o(_0x5ad68b,this['_getTranslationKeyForListStyle'](_0x2600de['commandParams'][0x0]['type'])))};break;case'listReversed':_0x244f68=_0x2600de['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xb4777={'type':'format','content':o(_0x5ad68b,_0x244f68)};break;case'listStart':_0x244f68='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xb4777={'type':'format','content':o(_0x5ad68b,_0x244f68,_0x2600de['commandParams'][0x0]['startIndex'])};}return _0xb4777;});}['_getTranslationKeyForListStyle'](_0x1ec55c){return'ELEMENT_'+function(_0x509dd3){if(ye['includes'](_0x509dd3))return'bulleted';if(Se['includes'](_0x509dd3))return'numbered';return null;}(_0x1ec55c)['toUpperCase']()+'_LIST_'+_0x1ec55c['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x1a5913{['afterInit'](){const _0x384c90=this['editor'];_0x384c90['commands']['get']('emoji')&&_0x384c90['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x1a5913{static get['requires'](){return[_0x508c6d];}['init'](){const _0x53aaa9=this['editor'],_0x1b5e1d=_0x53aaa9['plugins']['get']('TrackChangesEditing'),_0x404947=_0x53aaa9['commands']['get']('enter');_0x1b5e1d['enableCommand']('enter',()=>{_0x53aaa9['model']['change'](_0x27715d=>{const _0x5132f1=_0x53aaa9['model']['document']['selection'],_0x5ade8b=_0x5132f1['getFirstPosition'](),_0x594f76=_0x4edbf7['fromRange'](_0x5132f1['getFirstRange']());if(_0x404947['enterBlock'](_0x27715d)){const _0x7a2902=_0x53aaa9['model']['createPositionAt'](_0x5ade8b['parent']['nextSibling'],0x0),_0x5f1ad5=_0x27715d['createRange'](_0x5ade8b,_0x7a2902);_0x1b5e1d['markInsertion'](_0x5f1ad5);}else _0x27715d['setSelection'](_0x27715d['createRange'](_0x594f76['end']));_0x594f76['detach'](),_0x404947['fire']('afterExecute',{'writer':_0x27715d});});});}}class Y extends _0x1a5913{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x21aa35=this['editor']['plugins']['get']('TrackChangesEditing');_0x21aa35['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x21aa35['enableCommand']('findNext'),_0x21aa35['enableCommand']('findPrevious'),_0x21aa35['enableCommand']('replace'),_0x21aa35['enableCommand']('replaceAll');}['handleFindCommand'](_0x8ecbcd,_0x53b07d,_0x1f2c94={}){const _0x34a573=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x8ecbcd(_0x413f5d=>{let _0x3b6bee=('string'==typeof _0x53b07d?_0x34a573['findByTextCallback'](_0x53b07d,_0x1f2c94):_0x53b07d)(_0x413f5d);Array['isArray'](_0x3b6bee)&&(_0x3b6bee={'results':_0x3b6bee,'searchText':'string'==typeof _0x53b07d?_0x53b07d:''});const _0x515ce6=_0x3b6bee['results']['filter'](_0x4bdbf5=>!0x1===this['_isInDeletionRange'](_0x4bdbf5,_0x413f5d['item']));return{..._0x3b6bee,'results':_0x515ce6};},_0x1f2c94);}['_isInDeletionRange'](_0x3a3263,_0x6c0029){const _0xa75090=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x6c0029,_0x3a3263['start']),this['editor']['model']['createPositionAt'](_0x6c0029,_0x3a3263['end']));for(const _0x3a7984 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xa75090['getIntersection'](_0x3a7984['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x1a5913{['afterInit'](){const _0x2d1a60=this['editor']['locale'],_0x43a420=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2ad6ba,commandName:_0x374b44}of eo)this['editor']['plugins']['has'](_0x2ad6ba)&&_0x43a420['enableDefaultAttributesIntegration'](_0x374b44);_0x43a420['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2d1a60,'FORMAT_FONT_SIZE')),_0x43a420['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2d1a60,'FORMAT_FONT_FAMILY')),_0x43a420['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2d1a60,'FORMAT_FONT_COLOR')),_0x43a420['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2d1a60,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x251d3a=this['editor'],_0x5e59ec=_0x251d3a['locale'];_0x251d3a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50f9f2=>{const _0x412e6e=_0x5e59ec['t'];if('formatInline'!=_0x50f9f2['type'])return;const {data:_0x132f03}=_0x50f9f2;if(null!=_0x132f03){if('fontSize'==_0x132f03['commandName']){const _0x2910ec=_0x132f03['commandParams'][0x0]['value'];if(_0x2910ec){const _0x25e4fe=_0x412e6e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5008be=>_0x5008be['model']==_0x2910ec)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5e59ec,'*Set\x20font\x20size:*\x20%0',_0x25e4fe)};}return{'type':'format','content':o(_0x5e59ec,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x132f03['commandName']){const _0x2f49db=_0x132f03['commandParams'][0x0]['value'];return _0x2f49db?{'type':'format','content':o(_0x5e59ec,'*Set\x20font\x20family:*\x20%0',_0x2f49db)}:{'type':'format','content':o(_0x5e59ec,'*Reset\x20font\x20family*')};}if('fontColor'==_0x132f03['commandName']){const _0x3c3352=_0x132f03['commandParams'][0x0]['value'];if(_0x3c3352){const _0x1d0330=_0x555620(this['editor']['config']['get']('fontColor.colors'))['find'](_0x14111f=>_0x14111f['model']==_0x3c3352);let _0x118302=_0x3c3352,_0x2d2387='';return _0x1d0330&&(_0x118302=_0x1d0330['label'],_0x2d2387=_0x412e6e(_0x118302)['toLowerCase']()),{'type':'format','content':o(_0x5e59ec,'*Set\x20font\x20color:*\x20%0',_0x2d2387)['trim'](),'color':{'value':_0x3c3352,'title':_0x2d2387||_0x118302}};}return{'type':'format','content':o(_0x5e59ec,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x132f03['commandName']){const _0x47e3dd=_0x132f03['commandParams'][0x0]['value'];if(_0x47e3dd){const _0x6adfc9=_0x555620(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2d3e35=>_0x2d3e35['model']==_0x47e3dd);let _0xfc37dd=_0x47e3dd,_0x5473fb='';return _0x6adfc9&&(_0xfc37dd=_0x6adfc9['label'],_0x5473fb=_0x412e6e(_0xfc37dd)['toLowerCase']()),{'type':'format','content':o(_0x5e59ec,'*Set\x20font\x20background\x20color:*\x20%0',_0x5473fb)['trim'](),'color':{'value':_0x47e3dd,'title':_0x5473fb||_0xfc37dd}};}return{'type':'format','content':o(_0x5e59ec,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x1a5913{['afterInit'](){const {plugins:_0xdab9dd}=this['editor'];_0xdab9dd['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0xdab9dd['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x529271,plugins:_0x18c918,commands:_0x179ebd}=this['editor'],_0x2e2170=_0x18c918['get']('TrackChangesEditing');_0x179ebd['get']('footnotesStyle')&&_0x2e2170['enableDefaultAttributesIntegration']('footnotesStyle'),_0x179ebd['get']('footnotesStart')&&_0x2e2170['enableDefaultAttributesIntegration']('footnotesStart'),_0x2e2170['registerBlockAttribute']('footnotesListStyle'),_0x2e2170['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x529271,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x2e2170['registerBlockAttribute']('footnotesListStart'),_0x2e2170['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x529271,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x6ade0e=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x5130fe,commands:_0x436578}=this['editor'];_0x436578['get']('insertFootnote')&&_0x6ade0e['enableCommand']('insertFootnote'),_0x6ade0e['descriptionFactory']['registerElementLabel']('footnoteRef',_0x250fb1=>o(_0x5130fe,'ELEMENT_FOOTNOTE_REF',_0x250fb1)),_0x6ade0e['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x413ce6=>o(_0x5130fe,'ELEMENT_FOOTNOTE_DEFINITION',_0x413ce6)),_0x6ade0e['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x3f2911=>o(_0x5130fe,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x3f2911));}}class nt extends _0x1a5913{['afterInit'](){const _0x4dc271=this['editor'],_0x2abe39=_0x4dc271['plugins']['get']('TrackChangesEditing'),_0x342897=_0x4dc271['commands']['get']('copyFormat'),_0x3e8f75=_0x4dc271['commands']['get']('pasteFormat');_0x342897&&_0x3e8f75&&(_0x2abe39['enableDefaultAttributesIntegration']('pasteFormat'),_0x2abe39['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x19dd55=this['editor'],_0x33f50f=_0x19dd55['locale'];_0x19dd55['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a6ad9=>{if('formatBlock'!=_0x3a6ad9['type']&&'formatInline'!=_0x3a6ad9['type'])return;const {data:_0x2e394d}=_0x3a6ad9;if(_0x2e394d&&'pasteFormat'===_0x2e394d['commandName']){const _0x509d12=[],_0x2bbbea=_0x2e394d['commandParams'][0x0];for(const [_0x49a4f3,_0x470780]of Object['entries'](_0x2bbbea))_0x509d12['push'](ro(_0x19dd55,_0x49a4f3,_0x470780));return _0x509d12['length']?{'type':'format','content':o(_0x33f50f,'*Set\x20format\x20to:*\x20%0',_0x509d12['join'](',\x20'))}:{'type':'format','content':o(_0x33f50f,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x4823eb,_0x1cf35e,_0x106759){const _0x25396=_0x4823eb['locale']['t'],_0x2ce68a=_0x1cf35e['split'](/(?=[A-Z])/)['join']('\x20'),_0x28ff1b=_0x25396(_0x2ce68a['charAt'](0x0)['toUpperCase']()+_0x2ce68a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x106759)return _0x28ff1b;if('fontColor'===_0x1cf35e||'fontBackgroundColor'===_0x1cf35e){const _0x3da0e6=_0x555620(_0x4823eb['config']['get']('fontColor.colors'))['find'](_0x149222=>_0x149222['model']==_0x106759);return _0x28ff1b+'\x20('+(_0x3da0e6?_0x25396(_0x3da0e6['label'])['toLowerCase']():_0x106759)+')';}if('fontSize'===_0x1cf35e&&isNaN(parseFloat(_0x106759))){const _0x5d6bd0=_0x4823eb['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4823eb['config']['get']('fontSize.options'))['find'](_0x25256b=>_0x25256b['model']==_0x106759);return _0x28ff1b+'\x20('+(_0x5d6bd0?_0x25396(_0x5d6bd0['title'])['toLowerCase']():_0x106759)+')';}return _0x28ff1b+'\x20('+_0x106759+')';}class it extends _0x1a5913{['_headingOptions'];['afterInit'](){const _0x2701db=this['editor'];if(!_0x2701db['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2701db['config']['get']('heading.options');const _0x4b4e43=_0x2701db['locale'],_0x41d9a7=_0x2701db['plugins']['get']('TrackChangesEditing');_0x41d9a7['enableDefaultAttributesIntegration']('heading');for(const _0x38eb01 of this['_headingOptions'])'paragraph'!=_0x38eb01['model']&&_0x41d9a7['descriptionFactory']['registerElementLabel'](_0x38eb01['model'],_0x280b4e=>{const _0x377a80=this['_getHeadingLevel'](_0x38eb01['model']);return null!==_0x377a80?_0x2bbcba(_0x280b4e,_0x377a80):_0x3dcacd(_0x280b4e,_0x38eb01['title']);});function _0x2bbcba(_0x59f0fc,_0x3d91db){return o(_0x4b4e43,'ELEMENT_HEADING',[_0x59f0fc,_0x3d91db]);}function _0x3dcacd(_0x1fb182,_0x1a78f7){return o(_0x4b4e43,'ELEMENT_HEADING_CUSTOM',[_0x1fb182,_0x1a78f7]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45c677=this['editor'],_0x317366=_0x45c677['locale'];function _0x23892b(_0x1d11be,_0x24b7c7){return o(_0x317366,'ELEMENT_HEADING_CUSTOM',[_0x1d11be,_0x24b7c7]);}_0x45c677['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3525c3=>{if('formatBlock'!=_0x3525c3['type'])return;const {data:_0x22e121}=_0x3525c3;if(_0x22e121&&'heading'==_0x22e121['commandName']){const _0x437262=_0x22e121['commandParams'][0x0]['value'],_0x1da4bd=this['_getHeadingLevel'](_0x437262);if(null!==_0x1da4bd)return{'type':'format','content':o(_0x317366,'*Change\x20to:*\x20%0',(_0x504211=0x1,_0x3cf14e=_0x1da4bd,o(_0x317366,'ELEMENT_HEADING',[_0x504211,_0x3cf14e])))};const _0x2ac0b0=this['_headingOptions']['find'](_0x133801=>_0x133801['model']===_0x437262)['title'];return{'type':'format','content':o(_0x317366,'*Change\x20to:*\x20%0',_0x23892b(0x1,_0x2ac0b0))};}var _0x504211,_0x3cf14e;});}['_getHeadingLevel'](_0x31073c){const _0x23c3e9=_0x31073c['match'](/^heading(\d+)/);if(_0x23c3e9)return _0x23c3e9[0x1];const _0x5dcc27=this['_headingOptions']?.['find'](_0xab572d=>_0xab572d['model']==_0x31073c);if(_0x5dcc27&&_0x5dcc27['view']){const _0x3e5a91=_0x5dcc27['view'],_0x5bbb60=(_0x3e5a91['name']??_0x3e5a91)['match'](/^h(\d+)/);if(_0x5bbb60)return _0x5bbb60[0x1];}return null;}}class et extends _0x1a5913{['afterInit'](){const _0x560303=this['editor'];if(!_0x560303['plugins']['has']('HighlightEditing'))return;const _0x437f20=_0x560303['plugins']['get']('TrackChangesEditing'),_0xf4c274=_0x560303['locale'];_0x437f20['enableDefaultAttributesIntegration']('highlight'),_0x437f20['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xf4c274,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58eb93=this['editor'],_0xac0b2=_0x58eb93['locale'];_0x58eb93['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x269605=>{if('formatInline'!=_0x269605['type'])return;const {data:_0x230d29}=_0x269605;if(_0x230d29&&'highlight'==_0x230d29['commandName']){const _0x45e77b=_0xac0b2['t'],_0x2484c0=_0x230d29['commandParams'][0x0]['value'];if(_0x2484c0){const _0x117603=_0x58eb93['config']['get']('highlight.options')['find'](_0x2137dd=>_0x2137dd['model']==_0x2484c0),_0x5ceb73=_0x45e77b(_0x117603['title'])['toLowerCase']();return{'type':'format','content':o(_0xac0b2,'*Set\x20highlight:*\x20%0',_0x5ceb73),'color':{'value':_0x117603['color'],'title':_0x117603['title']}};}return{'type':'format','content':o(_0xac0b2,'*Remove\x20highlight*',o(_0xac0b2,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x1a5913{['afterInit'](){const _0x26e412=this['editor'];if(!_0x26e412['plugins']['has']('HorizontalLineEditing'))return;_0x26e412['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x46384f=_0x26e412['plugins']['get']('TrackChangesEditing'),_0x4a61e0=_0x26e412['locale'];_0x46384f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2f09f0=>o(_0x4a61e0,'ELEMENT_HORIZONTAL_LINE',_0x2f09f0));}}class ot extends _0x1a5913{['afterInit'](){const _0x3d0bf6=this['editor'];if(!_0x3d0bf6['plugins']['has']('HtmlEmbed'))return;const _0x547da3=_0x3d0bf6['plugins']['get']('TrackChangesEditing'),_0x511e74=_0x3d0bf6['locale'];_0x547da3['descriptionFactory']['registerElementLabel']('rawHtml',_0x30dfed=>o(_0x511e74,'ELEMENT_HTML_EMBED',_0x30dfed)),_0x547da3['enableDefaultAttributesIntegration']('htmlEmbed'),_0x547da3['descriptionFactory']['registerDescriptionCallback'](_0x46f037=>{if('attribute'!=_0x46f037['type'])return;const {data:_0x26e322}=_0x46f037;if(_0x26e322&&'value'==_0x26e322['key']&&_0x46f037['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x55791f=o(_0x511e74,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x511e74,'*Change\x20%0\x20content*',_0x55791f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41c072=this['editor'],_0x122d2e=_0x41c072['locale'];_0x41c072['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47de86=>{if('formatBlock'!=_0x47de86['type'])return;const {data:_0x286519}=_0x47de86;if(_0x286519&&'htmlEmbed'==_0x286519['commandName']){const _0x2978ee=o(_0x122d2e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x122d2e,'*Change\x20%0\x20content*',_0x2978ee)};}});}}class rt extends _0x1a5913{['afterInit'](){const _0x23de3f=this['editor'];if(!_0x23de3f['plugins']['has']('ImageEditing'))return;const _0x384d94=_0x23de3f['plugins']['get']('TrackChangesEditing'),_0x5eb422=_0x23de3f['plugins']['get']('ImageUtils'),_0xbbd959=_0x23de3f['locale'];_0x384d94['enableCommand']('insertImage'),_0x384d94['descriptionFactory']['registerElementLabel']('imageBlock',_0x3fecc1=>o(_0xbbd959,'ELEMENT_IMAGE',_0x3fecc1)),_0x384d94['descriptionFactory']['registerElementLabel']('imageInline',_0x459882=>o(_0xbbd959,'ELEMENT_INLINE_IMAGE',_0x459882)),_0x384d94['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xbbd959,'ELEMENT_CAPTION')),_0x23de3f['plugins']['has']('ImageUploadEditing')&&_0x384d94['enableCommand']('uploadImage'),_0x23de3f['plugins']['has']('ImageBlockEditing')&&_0x23de3f['plugins']['has']('ImageInlineEditing')&&(_0x384d94['enableCommand']('imageTypeInline',(_0x3251d1,_0x15200b)=>{const _0x366803=_0x5eb422['getClosestSelectedImageElement'](_0x23de3f['model']['document']['selection']);_0x23de3f['model']['change'](()=>{_0x384d94['markBlockFormat'](_0x366803,{'commandName':'imageTypeInline','commandParams':[_0x15200b]},[],'convertBlockImageToInline');});}),_0x384d94['enableCommand']('imageTypeBlock',(_0x3d88d8,_0x2bec4f)=>{_0x23de3f['model']['change'](_0x357256=>{let _0x5ec770=_0x5eb422['getClosestSelectedImageElement'](_0x23de3f['model']['document']['selection']),_0x503b4c=_0x357256['createRangeOn'](_0x5ec770);const _0x21aa9c=_0x1cbc9b['fromPosition'](_0x503b4c['start'],'toPrevious'),_0x580f39=_0x1cbc9b['fromPosition'](_0x503b4c['end'],'toNext');_0x384d94['forceDefaultExecution'](()=>_0x3d88d8(_0x2bec4f)),_0x5ec770=_0x5eb422['getClosestSelectedImageElement'](_0x23de3f['model']['document']['selection']),_0x503b4c=_0x357256['createRangeOn'](_0x5ec770);const _0x19ea2f=_0x357256['createRange'](_0x21aa9c,_0x580f39);_0x21aa9c['detach'](),_0x580f39['detach'](),_0x384d94['markBlockFormat'](_0x5ec770,{'commandName':'imageTypeInline','commandParams':[_0x2bec4f]},[],'convertInlineImageToBlock'),_0x19ea2f['start']['isBefore'](_0x503b4c['start'])&&_0x384d94['markInsertion'](_0x357256['createRange'](_0x19ea2f['start'],_0x503b4c['start']),'convertInlineImageToBlock'),_0x503b4c['end']['isBefore'](_0x19ea2f['end'])&&_0x384d94['markInsertion'](_0x357256['createRange'](_0x503b4c['end'],_0x19ea2f['end']),'convertInlineImageToBlock');});}),_0x384d94['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x384d94['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x384d94['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x384d94['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x384d94['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x384d94['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x458b78])=>{const _0x1c41f8=_0x384d94['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x103d4d=_0x458b78['start'],_0x4205aa=_0x458b78['end'];const _0x1397a8=_0x23de3f['model']['schema']['getNearestSelectionRange'](_0x103d4d,'backward'),_0x2f86a3=_0x23de3f['model']['schema']['getNearestSelectionRange'](_0x4205aa,'forward');_0x1397a8['isCollapsed']&&(_0x103d4d=_0x1397a8['start']),_0x2f86a3['isCollapsed']&&(_0x4205aa=_0x2f86a3['end']),_0x1c41f8([_0x23de3f['model']['createRange'](_0x103d4d,_0x4205aa)]);}),_0x384d94['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1ee94d),_0x384d94['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1ee94d)),_0x23de3f['plugins']['has']('ImageCaptionEditing')&&(_0x384d94['enableCommand']('toggleImageCaption',(_0x2b92da,_0x517516)=>{const _0x4ed711=_0x23de3f['plugins']['get']('ImageCaptionUtils');let _0x3574f8=_0x5eb422['getClosestSelectedImageElement'](_0x23de3f['model']['document']['selection']),_0xad0642=_0x4ed711['getCaptionFromImageModelElement'](_0x3574f8);_0x23de3f['model']['change'](()=>{if(_0xad0642)return void _0x384d94['markDeletion'](_0x23de3f['model']['createRangeOn'](_0xad0642));const _0x22e603=_0x5eb422['isBlockImage'](_0x3574f8);_0x2b92da(_0x517516),_0x3574f8=_0x5eb422['getClosestSelectedImageElement'](_0x23de3f['model']['document']['selection']),_0xad0642=_0x4ed711['getCaptionFromImageModelElement'](_0x3574f8),_0x384d94['markInsertion'](_0x23de3f['model']['createRangeOn'](_0xad0642),_0x22e603?null:'imageCaption');});}),_0x384d94['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1ee94d));const _0x128784=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x197341(_0x1997ac,_0xd113de){const _0x5342a4=_0x128784['findIndex'](({type:_0x2b1256,subType:_0x326c5e})=>_0x1997ac['type']==_0x2b1256&&_0x1997ac['subType']==_0x326c5e),_0x2db794=_0x128784['findIndex'](({type:_0x275905,subType:_0x44d6d9})=>_0xd113de['type']==_0x275905&&_0xd113de['subType']==_0x44d6d9);if(_0x5342a4<0x0||_0x2db794<0x0)return!0x1;const _0xb322aa=_0x1997ac['getFirstRange'](),_0x3e6ca0=_0xd113de['getFirstRange']();if((0x0==_0x5342a4||0x1==_0x5342a4)&&0x2==_0x2db794&&_0xb322aa['isIntersecting'](_0x3e6ca0))return!0x0;if(0x2==_0x5342a4&&0x3==_0x2db794){const _0xbcf77c=_0x384d94['_findSuggestions'](_0xb322aa,'insertion')['filter'](({suggestion:_0x2316c9,meta:_0x442081})=>_0x442081['isOwn']&&'convertInlineImageToBlock'==_0x2316c9['subType']);if(_0xbcf77c['length']>0x1&&_0x3e6ca0['end']['isEqual'](_0xb322aa['start']))return!0x0;if(0x1==_0xbcf77c['length']&&(_0xb322aa['start']['isEqual'](_0x3e6ca0['end'])||_0xb322aa['end']['isEqual'](_0x3e6ca0['start'])))return!0x0;}if(0x3==_0x5342a4&&0x3==_0x2db794&&_0xb322aa['start']['isBefore'](_0x3e6ca0['start'])){const _0x526972=_0xb322aa['end']['nodeAfter'],_0x403ee3=_0x3e6ca0['start']['nodeBefore'];return _0x5eb422['isBlockImage'](_0x526972)&&_0x526972===_0x403ee3;}return!0x1;}function _0x1ee94d(_0x4d8f31,_0x220f23){return _0x197341(_0x4d8f31,_0x220f23)?[_0x4d8f31,_0x220f23]:_0x197341(_0x220f23,_0x4d8f31)?[_0x220f23,_0x4d8f31]:null;}_0x23de3f['plugins']['has']('ImageResize')&&(_0x384d94['enableDefaultAttributesIntegration']('resizeImage'),_0x384d94['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xbbd959,'FORMAT_IMAGE_SIZE'))),_0x23de3f['plugins']['has']('ImageTextAlternativeEditing')&&_0x384d94['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x23de3f['plugins']['has']('PictureEditing')&&_0x384d94['descriptionFactory']['registerDescriptionCallback'](_0x457c4a=>{if('attribute'!=_0x457c4a['type'])return;const {data:_0x210d50}=_0x457c4a;return _0x210d50&&'sources'==_0x210d50['key']?{'type':'format','content':''}:void 0x0;}),_0x23de3f['plugins']['has']('ImageSizeAttributes')&&_0x384d94['descriptionFactory']['registerDescriptionCallback'](_0x36ab38=>{if('attribute'!=_0x36ab38['type'])return;const {data:_0x22d1b1}=_0x36ab38;return!_0x22d1b1||'width'!=_0x22d1b1['key']&&'height'!=_0x22d1b1['key']?void 0x0:{'type':'format','content':''};}),_0x384d94['descriptionFactory']['registerDescriptionCallback'](_0x408433=>{if(!!_0x128784['find'](({type:_0xaa92e3,subType:_0x2b720a})=>_0x408433['type']==_0xaa92e3&&_0x408433['subType']==_0x2b720a))return _0x408433['previous']?{}:void 0x0;}),_0x384d94['descriptionFactory']['registerDescriptionCallback'](_0x4ad11d=>{if('insertion'==_0x4ad11d['type']||'deletion'==_0x4ad11d['type']){const _0x476e35=_0x4ad11d['getContainedElement']();if(_0x476e35&&_0x476e35['is']('element','caption'))return{'type':'insertion'==_0x4ad11d['type']?'addObject':'removeObject','element':_0x476e35,'quantity':0x1};}}),_0x384d94['descriptionFactory']['registerDescriptionCallback'](_0x505a91=>'formatBlock'==_0x505a91['type']&&'convertInlineImageToBlock'==_0x505a91['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x505a91['type']&&'convertBlockImageToInline'==_0x505a91['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x384d94['descriptionFactory']['registerDescriptionCallback'](_0x19d5a4=>{if('attribute'!=_0x19d5a4['type'])return;const {data:_0x15746a}=_0x19d5a4;if(!_0x15746a||'alt'!=_0x15746a['key'])return;const _0x21b539=_0x15746a['newValue'];return _0x21b539?{'type':'format','content':o(_0xbbd959,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x21b539+'\x22')}:{'type':'format','content':o(_0xbbd959,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ced94=this['editor'],_0x53c602=_0x4ced94['locale'];_0x4ced94['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6ad917=>{if('formatBlock'!=_0x6ad917['type']&&'formatInline'!=_0x6ad917['type'])return;const {data:_0x30364c}=_0x6ad917;if(_0x30364c){if('imageTextAlternative'==_0x30364c['commandName']){const _0x37c944=_0x30364c['commandParams'][0x0]['newValue'];return _0x37c944?{'type':'format','content':o(_0x53c602,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x37c944+'\x22')}:{'type':'format','content':o(_0x53c602,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x30364c['commandName']){const _0x3f4c68=_0x30364c['commandParams'][0x0]['width'];return _0x3f4c68?{'type':'format','content':o(_0x53c602,'*Set\x20image\x20width:*\x20%0',_0x3f4c68)}:{'type':'format','content':o(_0x53c602,'*Reset\x20image\x20width*')};}}});}}class at extends _0x1a5913{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x22c9ec=this['editor']['locale'],_0xbe5146=this['editor']['plugins']['get']('TrackChangesEditing');_0xbe5146['enableDefaultAttributesIntegration']('replaceImageSource'),_0xbe5146['descriptionFactory']['registerDescriptionCallback'](_0x8e54b1=>{if('attribute'!=_0x8e54b1['type'])return;const {data:_0x42bfb1}=_0x8e54b1;return _0x42bfb1&&'src'==_0x42bfb1['key']?_0x42bfb1['newValue']&&_0x42bfb1['oldValue']?{'type':'format','content':o(_0x22c9ec,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x31b7e4=this['editor']['plugins']['get']('TrackChangesEditing');_0x31b7e4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x31b7e4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x31b7e4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x31b7e4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48d3e0=this['editor'],_0x14f188=_0x48d3e0['locale'];_0x48d3e0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44b372=>{if('formatBlock'!=_0x44b372['type']&&'formatInline'!=_0x44b372['type'])return;const {data:_0x29a8f0}=_0x44b372;if(!_0x29a8f0||'replaceImageSource'!=_0x29a8f0['commandName'])return;return{'type':'format','content':o(_0x14f188,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x1a5913{['afterInit'](){const _0x35988c=this['editor'];if(!_0x35988c['plugins']['has']('ImageStyleEditing'))return;const _0x29d5e1=_0x35988c['plugins']['get']('TrackChangesEditing'),_0x2f7ae1=_0x35988c['plugins']['get']('ImageUtils'),_0x1ef05e={};_0x29d5e1['enableCommand']('imageStyle',(_0xc2b2e,_0x3aaa8e)=>{const _0x3511b0=_0x35988c['plugins']['get']('Users')['me'],_0x573f8e=_0x35988c['commands']['get']('imageStyle');let _0x19315c=_0x2f7ae1['getClosestSelectedImageElement'](_0x35988c['model']['document']['selection']),_0x1ef79c=_0x35988c['model']['createRangeOn'](_0x19315c),_0x4c6446=_0x573f8e['value'];if(_0x4c6446==_0x3aaa8e['value'])return;const _0x14cca1={'commandName':'imageStyle','commandParams':[_0x3aaa8e],'formatGroupId':_0x569ccd()};_0x35988c['model']['change'](()=>{if(_0x29d5e1['getSuggestions']()['filter'](_0x1f22ea=>_0x1f22ea['isInContent']&&_0x3511b0==_0x1f22ea['author']&&('formatBlock'==_0x1f22ea['type']||'formatInline'==_0x1f22ea['type'])&&('imageStylePreApply'==_0x1f22ea['subType']||'imageStylePostApply'==_0x1f22ea['subType'])&&_0x1f22ea['getFirstRange']()['isEqual'](_0x1ef79c))['forEach'](_0x2f7885=>_0x29d5e1['discardSuggestion'](_0x2f7885['head'])),_0x19315c=_0x2f7ae1['getClosestSelectedImageElement'](_0x35988c['model']['document']['selection']),_0x1ef79c=_0x35988c['model']['createRangeOn'](_0x19315c),_0x573f8e['refresh'](),_0x35988c['commands']['get']('imageTypeInline')['refresh'](),_0x35988c['commands']['get']('imageTypeBlock')['refresh'](),_0x4c6446=_0x573f8e['value'],_0x4c6446!=_0x3aaa8e['value'])return _0x2f7ae1['isInlineImage'](_0x19315c)&&_0x573f8e['shouldConvertImageType'](_0x3aaa8e['value'],_0x19315c)?(_0xc2b2e({..._0x3aaa8e,'setImageSizes':!0x1}),_0x19315c=_0x2f7ae1['getClosestSelectedImageElement'](_0x35988c['model']['document']['selection']),void _0x29d5e1['markBlockFormat'](_0x19315c,{..._0x14cca1,'commandReversedParams':[{'value':_0x4c6446||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2f7ae1['isBlockImage'](_0x19315c)?_0x29d5e1['markBlockFormat'](_0x19315c,_0x14cca1,[],'imageStylePostApply'):_0x29d5e1['markInlineFormat'](_0x1ef79c,_0x14cca1,'imageStylePostApply'));});});for(const _0x3a2fe8 of _0x35988c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1ef05e[_0x3a2fe8['name']]=_0x3a2fe8['title']['toLowerCase']();_0x29d5e1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x29d5e1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x29d5e1['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x29d5e1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x165265])=>{_0x2f7ae1['setImageNaturalSizeAttributes'](_0x165265['getContainedElement']());}),_0x29d5e1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2b42ee,_0x1efccf)=>{_0x29d5e1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2b42ee,{'commandName':_0x1efccf['commandName'],'commandParams':_0x1efccf['commandReversedParams']});}),_0x29d5e1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xc8e377,_0x525073){if(_0x5f2c2a(_0xc8e377,_0x525073))return[_0xc8e377,_0x525073];if(_0x5f2c2a(_0x525073,_0xc8e377))return[_0x525073,_0xc8e377];return null;});const _0x256411=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5f2c2a(_0x462844,_0x44fa1c){const _0x296e94=_0x256411['findIndex'](({type:_0x536d11,subType:_0x192f53})=>_0x462844['type']==_0x536d11&&_0x462844['subType']==_0x192f53),_0x3ab981=_0x256411['findIndex'](({type:_0x260de5,subType:_0x41e739})=>_0x44fa1c['type']==_0x260de5&&_0x44fa1c['subType']==_0x41e739);if(_0x296e94<0x0||_0x3ab981<0x0)return!0x1;const _0x483af2=_0x462844['getFirstRange'](),_0x3ec658=_0x44fa1c['getFirstRange']();if((0x0==_0x296e94||0x1==_0x296e94)&&0x2==_0x3ab981&&_0x483af2['isIntersecting'](_0x3ec658))return!0x0;if(0x2==_0x296e94&&0x3==_0x3ab981){const _0x2a3e73=_0x29d5e1['_findSuggestions'](_0x483af2,'insertion')['filter'](({suggestion:_0x5c73a5,meta:_0x2dfae7})=>_0x2dfae7['isOwn']&&'convertInlineImageToBlock'==_0x5c73a5['subType']);if(_0x2a3e73['length']>0x1&&_0x3ec658['end']['isEqual'](_0x483af2['start']))return!0x0;if(0x1==_0x2a3e73['length']&&(_0x483af2['start']['isEqual'](_0x3ec658['end'])||_0x483af2['end']['isEqual'](_0x3ec658['start'])))return!0x0;}if(0x3==_0x296e94&&0x3==_0x3ab981&&_0x483af2['start']['isBefore'](_0x3ec658['start'])){const _0x28c77a=_0x483af2['end']['nodeAfter'],_0x16b4b5=_0x3ec658['start']['nodeBefore'];return _0x2f7ae1['isBlockImage'](_0x28c77a)&&_0x28c77a===_0x16b4b5;}return!0x1;}_0x35988c['model']['document']['registerPostFixer'](()=>{let _0x3a6dd9=!0x1;const _0x4a519e=Array['from'](_0x35988c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x182998,data:_0xf641be}of _0x4a519e){const {group:_0x236dd3,type:_0x262157,subType:_0xa64fa6,id:_0x39bd1e}=_0x29d5e1['_splitMarkerName'](_0x182998);if('suggestion'==_0x236dd3&&_0x29d5e1['hasSuggestion'](_0x39bd1e)){if('formatBlock'==_0x262157&&('imageStylePreApply'==_0xa64fa6||'imageStylePostApply'==_0xa64fa6)){const _0x138ba6=_0x29d5e1['getSuggestion'](_0x39bd1e);if(_0xf641be['newRange']){const _0x4f4742=_0x138ba6['getFirstRange']()['getContainedElement']();if(_0x2f7ae1['isBlockImage'](_0x4f4742))continue;_0x29d5e1['discardSuggestion'](_0x138ba6),_0x3a6dd9=!0x0;}}if('insertion'==_0x262157&&'imageCaption'==_0xa64fa6&&!_0xf641be['newRange']){const _0xef3f9f=_0x29d5e1['getSuggestion'](_0x39bd1e);_0xef3f9f['next']&&_0xef3f9f['next']['isInContent']&&(_0x29d5e1['discardSuggestion'](_0xef3f9f['next']),_0x3a6dd9=!0x0);}}}return _0x3a6dd9;}),this['_registerLegacyDescription'](_0x1ef05e);}['_registerLegacyDescription'](_0x10427a){const _0x2270c0=this['editor'],_0x135e2d=_0x2270c0['locale'];_0x2270c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x488ac2=>{if('formatBlock'!=_0x488ac2['type']&&'formatInline'!=_0x488ac2['type'])return;const {data:_0x14842f}=_0x488ac2;if(!_0x14842f||'imageStyle'!=_0x14842f['commandName'])return;const _0x1d0563=_0x14842f['commandParams'][0x0]['value'];return _0x368dc1('side'===_0x1d0563?o(_0x135e2d,'FORMAT_SIDE_IMAGE'):_0x10427a[_0x1d0563]||_0x1d0563);function _0x368dc1(_0x43809c){return{'type':'format','content':o(_0x135e2d,'*Format:*\x20%0',_0x43809c)};}});}}class ut extends _0x1a5913{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x42dd6f){super(_0x42dd6f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x517375=this['editor'],_0x3133b=_0x517375['commands']['get']('importWord'),_0x21a032=_0x517375['commands']['get']('trackChanges');_0x3133b&&(_0x3133b['on']('execute',(_0xd1a9e4,[,_0x1fa6ae])=>{this['_trackChangesValueDuringImport']=_0x21a032['value'],_0x1fa6ae['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3133b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3133b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x21a032['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x517375['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xb099d3,_0x20cf47){const {suggestions:_0x3d676f}=_0x20cf47,_0x45c4e0=this['editor']['commands']['get']('trackChanges'),_0x49d469=_0x45c4e0['value'];this['_trackChangesValueDuringImport']!==_0x49d469&&(_0x45c4e0['execute'](),this['_trackChangesExecuted']=!0x0),_0x3d676f&&_0x3d676f['forEach'](({id:_0x3b9734,type:_0x489245,author:_0x4fe14a,created_at:_0x4f1358})=>{const _0x1ebd0d={'id':_0x3b9734,'type':_0x489245,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4fe14a,'createdAt':_0x4f1358?new Date(_0x4f1358):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1ebd0d);});}}class ft extends _0x1a5913{['afterInit'](){const _0x28fc85=this['editor'],_0x132592=_0x28fc85['plugins']['get']('TrackChangesEditing');if(_0x28fc85['plugins']['has']('IndentEditing')&&(_0x132592['enableCommand']('indent'),_0x132592['enableCommand']('outdent')),_0x28fc85['plugins']['has']('IndentBlock')){for(const _0x43a5d1 of['indentBlock','outdentBlock'])_0x132592['enableDefaultAttributesIntegration'](_0x43a5d1);}const _0x40c182=_0x28fc85['locale'];_0x132592['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x40c182,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41abdd=this['editor'],_0x4ea364=_0x41abdd['locale'],_0x2cf408=_0x41abdd['plugins']['get']('TrackChangesEditing');_0x2cf408['descriptionFactory']['registerDescriptionCallback'](_0x1bcde3=>{if('formatBlock'!=_0x1bcde3['type'])return;const {data:_0x53a717}=_0x1bcde3;if(!_0x53a717)return;if('indentBlock'!=_0x53a717['commandName']&&'outdentBlock'!=_0x53a717['commandName'])return;const _0x287325=_0x1bcde3['getItems']()[0x0],_0x563f5b=_0x2cf408['descriptionFactory']['getItemLabel'](_0x287325);return'indentBlock'==_0x53a717['commandName']?{'type':'format','content':o(_0x4ea364,'*Indent:*\x20%0',_0x563f5b)}:'outdentBlock'==_0x53a717['commandName']?{'type':'format','content':o(_0x4ea364,'*Outdent:*\x20%0',_0x563f5b)}:void 0x0;});}}class ht extends _0x1a5913{static get['requires'](){return[_0xfc2f14];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x1a5913{['afterInit'](){const _0x41a966=this['editor'];if(!_0x41a966['plugins']['has']('LinkEditing'))return;const _0x35554c=_0x41a966['plugins']['get']('TrackChangesEditing'),_0x24bd4d=_0x41a966['commands']['get']('link');_0x35554c['enableDefaultAttributesIntegration']('link'),_0x35554c['enableDefaultAttributesIntegration']('unlink');for(const _0x5961d3 of _0x24bd4d['manualDecorators'])_0x35554c['descriptionFactory']['registerAttributeLabel'](_0x5961d3['id'],'link\x20('+_0x5961d3['label']['toLowerCase']()+')');_0x35554c['descriptionFactory']['registerDescriptionCallback'](_0x2b7883=>{if('attribute'!=_0x2b7883['type'])return;const {data:_0x249105}=_0x2b7883;if(!_0x249105||'linkHref'!=_0x249105['key'])return;const _0x26b21a=_0x249105['newValue'],_0x49c621=_0x41a966['locale'];return{'type':'format','content':null==_0x26b21a?o(_0x49c621,'*Remove\x20link*'):o(_0x49c621,'*Set\x20link:*\x20%0','\x22'+_0x26b21a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x563a7d=this['editor'],_0x1d73f4=_0x563a7d['locale'];_0x563a7d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15f9f8=>{if('formatInline'!=_0x15f9f8['type'])return;const {data:_0xc4454f}=_0x15f9f8;if(_0xc4454f){if('link'==_0xc4454f['commandName']){const _0x2037b0=_0xc4454f['commandParams'][0x0];return{'type':'format','content':o(_0x1d73f4,'*Set\x20link:*\x20%0','\x22'+_0x2037b0+'\x22')};}return'unlink'==_0xc4454f['commandName']?{'type':'format','content':o(_0x1d73f4,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x1a5913{['afterInit'](){const _0x7e24e9=this['editor'],_0x5889e8=_0x7e24e9['locale'];if(!_0x7e24e9['plugins']['has']('LegacyListEditing'))return;const _0x47a145=_0x7e24e9['plugins']['get']('TrackChangesEditing'),_0x5df707=_0x7e24e9['plugins']['has']('LegacyTodoListEditing');function _0x38888c(_0x1d2b47){return()=>{const _0x148611=_0x7e24e9['model']['document']['selection'],_0x4021b8=_0x7e24e9['commands']['get'](_0x1d2b47);if(_0x4021b8['value'])return void _0x7e24e9['execute']('paragraph',{});const _0x4520cf=_0x1d2b47['slice'](0x0,-0x4),_0x1213ae=function(_0x500166,_0x4dcaad,_0x4ddc87){let _0x3845fe=Array['from'](_0x500166)['filter'](_0x5181dc=>function(_0x3ad3a6,_0x8e9030){return _0x8e9030['checkChild'](_0x3ad3a6['parent'],'listItem')&&!_0x8e9030['isObject'](_0x3ad3a6);}(_0x5181dc,_0x4ddc87));_0x3845fe=_0x3845fe['filter'](_0x996b76=>!_0x996b76['is']('element','listItem')||_0x996b76['getAttribute']('listType')!=_0x4dcaad);const _0x39a8c1=new Set();for(const _0x320666 of _0x3845fe)_0x320666['is']('element','listItem')?_0x39a8c1['add'](Le(_0x320666)):_0x39a8c1['add'](_0x320666);return Array['from'](_0x39a8c1);}(_0x148611['getSelectedBlocks'](),_0x4520cf,_0x7e24e9['model']['schema']);_0x7e24e9['model']['change'](()=>{for(const _0x22b82e of _0x1213ae)_0x47a145['markBlockFormat'](_0x22b82e,{'commandName':_0x1d2b47,'commandParams':[{'forceValue':!_0x4021b8['value']}],'formatGroupId':'blockName'},Ee(_0x22b82e));});};}function _0x561dfa(_0x1267a6){return()=>{const _0x4dc7e3=function(_0x5a4564){let _0x3ae9ad=Array['from'](_0x5a4564);const _0x1362e9=_0x3ae9ad['findIndex'](_0x13ba0d=>'listItem'!=_0x13ba0d['name']);return _0x1362e9>-0x1&&(_0x3ae9ad=_0x3ae9ad['slice'](0x0,_0x1362e9)),_0x3ae9ad;}(_0x7e24e9['model']['document']['selection']['getSelectedBlocks']()),_0x4ab933=_0x7e24e9['model']['createRange'](_0x7e24e9['model']['createPositionAt'](_0x4dc7e3[0x0],'before'),_0x7e24e9['model']['createPositionAt'](_0x4dc7e3[_0x4dc7e3['length']-0x1],'end'));_0x7e24e9['model']['change'](()=>{_0x47a145['markBlockFormat'](_0x4ab933,{'commandName':_0x1267a6,'commandParams':[],'formatGroupId':'listIndent'},function(_0x442fc8){const _0x1dcf3a=new Set();for(const _0x41a310 of _0x442fc8){let _0x2da119=_0x41a310['nextSibling'];for(;_0x2da119&&_0x2da119['getAttribute']('listIndent')>_0x41a310['getAttribute']('listIndent');)_0x1dcf3a['add'](_0x2da119),_0x2da119=_0x2da119['nextSibling'];}return Array['from'](_0x1dcf3a);}(_0x4dc7e3));});};}_0x47a145['enableCommand']('numberedList',_0x38888c('numberedList')),_0x47a145['enableCommand']('bulletedList',_0x38888c('bulletedList')),_0x5df707&&_0x47a145['enableCommand']('todoList',_0x38888c('todoList')),_0x47a145['enableCommand']('indentList',_0x561dfa('indentList')),_0x47a145['enableCommand']('outdentList',_0x561dfa('outdentList')),_0x5df707&&_0x47a145['enableCommand']('checkTodoList',()=>{const _0x5bad27=_0x7e24e9['commands']['get']('checkTodoList'),_0x47e89f=Array['from'](_0x5bad27['_selectedElements']);_0x47e89f['filter'](_0x41da5c=>_0x41da5c['getAttribute']('todoListChecked')!=_0x5bad27['value']),_0x7e24e9['model']['change'](()=>{for(const _0x53f42f of _0x47e89f)_0x47a145['markBlockFormat'](_0x53f42f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5bad27['value']}]});});}),_0x47a145['descriptionFactory']['registerElementLabel']('listItem',_0x589343=>o(_0x5889e8,'ELEMENT_LIST_ITEM',_0x589343)),_0x47a145['descriptionFactory']['registerDescriptionCallback'](_0x3100eb=>{if('formatBlock'!=_0x3100eb['type']&&'formatInline'!=_0x3100eb['type'])return;const {data:_0x37f934}=_0x3100eb;if(_0x37f934){if('numberedList'==_0x37f934['commandName']||'bulletedList'==_0x37f934['commandName']||'todoList'==_0x37f934['commandName'])switch(_0x37f934['commandName']['replace']('List','')){case'bulleted':return _0x2dabfb(o(_0x5889e8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2dabfb(o(_0x5889e8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2dabfb(o(_0x5889e8,'ELEMENT_TODO_LIST'));}if('indentList'==_0x37f934['commandName'])return{'type':'format','content':o(_0x5889e8,'*Indent:*\x20%0',o(_0x5889e8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x37f934['commandName'])return{'type':'format','content':o(_0x5889e8,'*Outdent:*\x20%0',o(_0x5889e8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x37f934['commandName'])return _0x37f934['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5889e8,'*Check\x20item*')}:{'type':'format','content':o(_0x5889e8,'*Uncheck\x20item*')};}function _0x2dabfb(_0x16a394){return{'type':'format','content':o(_0x5889e8,'*Change\x20to:*\x20%0',_0x16a394)};}});}}function Le(_0x7c244d){const _0x1c460d=_0x7c244d['getAttribute']('listIndent');if(0x0==_0x1c460d)return _0x7c244d;let _0x6d885b=_0x7c244d;for(;_0x7c244d['previousSibling']&&_0x7c244d['previousSibling']['is']('element','listItem');){const _0xeddfc5=_0x7c244d['previousSibling']['getAttribute']('listIndent');if(_0xeddfc5==_0x1c460d)_0x6d885b=_0x7c244d['previousSibling'];else{if(_0xeddfc5<_0x1c460d)break;}_0x7c244d=_0x7c244d['previousSibling'];}return _0x6d885b;}function Ee(_0x5e9cbb){const _0x28a6b4=[];if(_0x5e9cbb['is']('element','listItem')&&_0x5e9cbb['getAttribute']('listIndent')>0x0){let _0x5c6efe=_0x5e9cbb['nextSibling'];for(;_0x5c6efe&&'listItem'==_0x5c6efe['name']&&_0x5c6efe['getAttribute']('listIndent')==_0x5e9cbb['getAttribute']('listIndent');)_0x28a6b4['push'](_0x5c6efe),_0x5c6efe=_0x5c6efe['nextSibling'];}return _0x28a6b4;}class mt extends _0x1a5913{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3bf36c=this['editor']['config']['get']('list.properties'),_0x138c5f=this['editor']['plugins']['get']('TrackChangesEditing');_0x3bf36c['styles']&&_0x138c5f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3bf36c['reversed']&&_0x138c5f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3bf36c['startIndex']&&_0x138c5f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x138c5f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x41e823,_0x398c0d={}){const _0x5ed824=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3bbbed=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5ed824['markMultiRangeBlockFormat'](_0x3bbbed,{'commandName':'listStyle','commandParams':[{'type':_0x398c0d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1f2b3a,_0x27ab20={}){const _0x583b41=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34253c=this['_getSuggestionBlocks'](_0x43efac=>_0x43efac['is']('element','listItem')&&'numbered'===_0x43efac['getAttribute']('listType'));if(_0x34253c['length']<0x1)return;const _0xbd232f=_0x34253c['map'](_0x45e802=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x45e802,'before'),this['editor']['model']['createPositionAt'](_0x45e802,0x0)));this['editor']['model']['change'](()=>{_0x583b41['markMultiRangeBlockFormat'](_0xbd232f,{'commandName':'listReversed','commandParams':[{'reversed':_0x27ab20['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x14abc8,_0x3022dc={}){const _0x459dc0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x762c5=this['_getSuggestionBlocks'](_0x45a52f=>_0x45a52f['is']('element','listItem')&&'numbered'===_0x45a52f['getAttribute']('listType'));if(_0x762c5['length']<0x1)return;const _0x3c0bfd=_0x762c5['map'](_0x3252f9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3252f9,'before'),this['editor']['model']['createPositionAt'](_0x3252f9,0x0)));this['editor']['model']['change'](()=>{_0x459dc0['markMultiRangeBlockFormat'](_0x3c0bfd,{'commandName':'listStart','commandParams':[{'startIndex':_0x3022dc['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x20325b){if('formatBlock'!=_0x20325b['type']&&'formatInline'!=_0x20325b['type'])return;const _0x35c263=this['editor']['locale'],{data:_0x560502}=_0x20325b;if(!_0x560502)return;let _0x5a6f2c,_0x13c260;switch(_0x560502['commandName']){case'listStyle':_0x5a6f2c='*Change\x20to:*\x20%0',_0x13c260={'type':'format','content':o(_0x35c263,_0x5a6f2c,o(_0x35c263,this['_getTranslationKeyForListStyle'](_0x560502['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5a6f2c=_0x560502['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x13c260={'type':'format','content':o(_0x35c263,_0x5a6f2c)};break;case'listStart':_0x5a6f2c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x13c260={'type':'format','content':o(_0x35c263,_0x5a6f2c,_0x560502['commandParams'][0x0]['startIndex'])};}return _0x13c260;}['_getSuggestionBlocksForListStyle'](){const _0x2ec5b0=this['editor']['plugins']['get']('LegacyListUtils');let _0x47a9ba=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x47a9ba[0x0]?.['is']('element','listItem')&&_0x47a9ba['unshift'](..._0x2ec5b0['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x47a9ba[_0x47a9ba['length']-0x1]?.['is']('element','listItem')&&_0x47a9ba['push'](..._0x2ec5b0['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x47a9ba=[...new Set(_0x47a9ba)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x47a9ba=_0x47a9ba['filter'](_0x5c8335=>_0x5c8335['is']('element','listItem'))),_0x47a9ba;}['_getSuggestionBlocks'](_0x2d57fc){const _0x7e49cb=this['editor']['plugins']['get']('LegacyListUtils');let _0x3b038f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2d57fc)['map'](_0x333c5c=>{const _0x2e92d0=this['editor']['model']['createPositionAt'](_0x333c5c,0x0);return[..._0x7e49cb['getSiblingNodes'](_0x2e92d0,'backward'),..._0x7e49cb['getSiblingNodes'](_0x2e92d0,'forward')];})['flat']();return _0x3b038f=[...new Set(_0x3b038f)],_0x3b038f;}['_getTranslationKeyForListStyle'](_0x448a69){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x448a69)||'default')['toUpperCase']()+'_LIST_'+_0x448a69['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x1a5913{['afterInit'](){const _0x19e130=this['editor'];if(!_0x19e130['plugins']['has']('MediaEmbedEditing'))return;const _0x1b8ab4=_0x19e130['plugins']['get']('TrackChangesEditing'),_0x189b98=_0x19e130['locale'];_0x1b8ab4['enableCommand']('mediaEmbed'),_0x1b8ab4['descriptionFactory']['registerElementLabel']('media',_0x37f29d=>o(_0x189b98,'ELEMENT_MEDIA',_0x37f29d));}}class pt extends _0x1a5913{['afterInit'](){const _0x20eb17=this['editor'];_0x20eb17['plugins']['has']('MentionEditing')&&_0x20eb17['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x1a5913{['afterInit'](){const _0x4447c2=this['editor'];if(!_0x4447c2['plugins']['has']('MergeFieldsEditing'))return;const _0x125c29=_0x4447c2['plugins']['get']('TrackChangesEditing'),_0x2ede88=_0x4447c2['locale'];_0x125c29['enableCommand']('insertMergeField'),_0x125c29['enableCommand']('insertMergeFieldBlock'),_0x125c29['enableCommand']('insertMergeFieldImage'),_0x125c29['descriptionFactory']['registerElementLabel']('mergeField',_0x302495=>o(_0x2ede88,'ELEMENT_MERGE_FIELD',_0x302495)),_0x125c29['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x461ca4=>o(_0x2ede88,'ELEMENT_MERGE_FIELD',_0x461ca4)),_0x125c29['descriptionFactory']['registerDescriptionCallback'](_0x552c71=>{if('insertion'!=_0x552c71['type']&&'deletion'!=_0x552c71['type'])return;const _0x2dc51c=_0x552c71['getContainedElement']();if(null==_0x2dc51c)return;const _0x72af29=_0x4447c2['plugins']['get']('MergeFieldsEditing');let _0x4d8499;switch(_0x72af29['getMergeFieldType'](_0x2dc51c)){case null:return;case'image':{const _0x187406=_0x72af29['unwrapAffixes'](_0x2dc51c['getAttribute']('src'));_0x4d8499=_0x72af29['getLabel'](_0x187406)||_0x187406;break;}default:{const _0x4f7a6a=_0x2dc51c['getAttribute']('id');_0x4d8499=_0x72af29['getLabel'](_0x4f7a6a)||_0x4f7a6a;break;}}return'insertion'==_0x552c71['type']?{'type':'insertion','content':o(_0x2ede88,'*Insert:*\x20%0','\x22'+_0x4d8499+'\x22\x20'+o(_0x2ede88,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2ede88,'*Remove:*\x20%0','\x22'+_0x4d8499+'\x22\x20'+o(_0x2ede88,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x1a5913{['afterInit'](){const _0x5f3bc8=this['editor'],_0x27bce7=_0x5f3bc8['plugins']['get']('TrackChangesEditing');_0x5f3bc8['plugins']['has']('MultiLevelList')&&(_0x27bce7['enableDefaultAttributesIntegration']('multiLevelList'),_0x27bce7['descriptionFactory']['registerDescriptionCallback'](_0x430590=>this['handleDescriptions'](_0x430590)));}['handleDescriptions'](_0x263c49){const _0x49517c=this['editor']['locale'],{data:_0x590672}=_0x263c49,_0x871aa2={'type':'format','content':''};if(_0x590672&&'listMarkerStyle'==_0x590672['key']){if(!_0x590672['oldValue'])return{'type':'format','content':o(_0x49517c,'*Set\x20format:*\x20%0',o(_0x49517c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x590672['newValue']+')'};if(!_0x590672['newValue']){let _0x27f167=_0x263c49['head'];for(;_0x27f167;){if(_0x27f167['data']&&'listType'==_0x27f167['data']['key']&&_0x27f167['data']['newValue'])return _0x871aa2;_0x27f167=_0x27f167['next'];}return{'type':'format','content':o(_0x49517c,'*Remove\x20format:*\x20%0',o(_0x49517c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x590672['oldValue']+')'};}}}}class bt extends _0x1a5913{['afterInit'](){const _0x3e9355=this['editor'];if(!_0x3e9355['plugins']['has']('PageBreakEditing'))return;_0x3e9355['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x74e535=_0x3e9355['plugins']['get']('TrackChangesEditing'),_0x968a0=_0x3e9355['locale'];_0x74e535['descriptionFactory']['registerElementLabel']('pageBreak',_0x2ff48a=>o(_0x968a0,'ELEMENT_PAGE_BREAK',_0x2ff48a));}}class yt extends _0x1a5913{['afterInit'](){const _0x438a64=this['editor'];if(!_0x438a64['plugins']['has']('Paragraph'))return;const _0x4b6fee=_0x438a64['locale'],_0x240cf7=_0x438a64['plugins']['get']('TrackChangesEditing');_0x240cf7['descriptionFactory']['registerElementLabel']('paragraph',_0x94e894=>o(_0x4b6fee,'ELEMENT_PARAGRAPH',_0x94e894)),_0x240cf7['enableDefaultAttributesIntegration']('paragraph'),_0x240cf7['enableCommand']('insertParagraph');const _0x749664=_0x240cf7['descriptionFactory'];_0x749664['registerDescriptionCallback'](_0x24e02f=>{if('insertion'!==_0x24e02f['type'])return;const {start:_0x4be037,end:_0x1b869e}=_0x24e02f['getFirstRange']();if(!_0x4be037['isTouching'](_0x1b869e)||!_0x4be037['nodeAfter'])return;const _0x2a6fe4=_0x438a64['model']['schema'],_0x8276a0=_0x4be037['nodeAfter'];return _0x2a6fe4['isBlock'](_0x8276a0)&&!_0x2a6fe4['isLimit'](_0x8276a0)&&_0x2a6fe4['checkChild'](_0x8276a0,'$text')?{'type':'insertion','content':o(_0x4b6fee,'*Insert:*\x20%0',_0x749664['getItemLabel'](_0x8276a0,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8ccfb2=this['editor'],_0x4d585c=_0x8ccfb2['locale'];_0x8ccfb2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x164af5=>{if('formatBlock'!=_0x164af5['type'])return;const {data:_0x6e4627}=_0x164af5;return _0x6e4627&&'paragraph'==_0x6e4627['commandName']?{'type':'format','content':o(_0x4d585c,'*Change\x20to:*\x20%0',o(_0x4d585c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x1a5913{['afterInit'](){const _0x3d1210=this['editor'];_0x3d1210['commands']['get']('replaceSource')&&_0x3d1210['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x1a5913{['afterInit'](){const _0x20e1b0=this['editor'];if(!_0x20e1b0['plugins']['has']('RemoveFormatEditing'))return;_0x20e1b0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b72e9=this['editor'];_0x5b72e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x433126=>{if('formatBlock'!=_0x433126['type']&&'formatInline'!=_0x433126['type'])return;const {data:_0x531f70}=_0x433126;return _0x531f70&&'removeFormat'==_0x531f70['commandName']?{'type':'format','content':o(_0x5b72e9['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x1a5913{['afterInit'](){const _0x2c4ead=this['editor'];if(!_0x2c4ead['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5c9dfd=_0x2c4ead['plugins']['get']('TrackChangesEditing');_0x5c9dfd['enableCommand']('goToPreviousRestrictedEditingException'),_0x5c9dfd['enableCommand']('goToNextRestrictedEditingException');const _0x4adc78=_0x2c4ead['plugins']['get']('RestrictedEditingModeEditing');_0x4adc78['enableCommand']('trackChanges'),_0x4adc78['enableCommand']('acceptSuggestion'),_0x4adc78['enableCommand']('discardSuggestion'),_0x4adc78['enableCommand']('acceptAllSuggestions'),_0x4adc78['enableCommand']('discardAllSuggestions'),_0x4adc78['enableCommand']('acceptSelectedSuggestions'),_0x4adc78['enableCommand']('discardSelectedSuggestions');}}class At extends _0x1a5913{['afterInit'](){const _0x232b66=this['editor'];if(!_0x232b66['plugins']['has']('ShiftEnter'))return;const _0x4d3d40=_0x232b66['plugins']['get']('TrackChangesEditing');_0x4d3d40['enableCommand']('shiftEnter'),_0x4d3d40['descriptionFactory']['registerElementLabel']('softBreak',_0x21dea4=>o(_0x232b66['locale'],'ELEMENT_LINE_BREAK',_0x21dea4));}}function an(_0x2dfbd6,_0x2deb54,_0x3aa895){const _0x322eae=[];for(const _0x4d9ef1 of _0x2deb54['getItems']())_0x4d9ef1['hasAttribute'](_0x2dfbd6)&&_0x322eae['push'](_0x3aa895['createRangeOn'](_0x4d9ef1));return _0x322eae;}class _t extends _0x1a5913{['afterInit'](){const _0x2d9df6=this['editor'],_0x1fc902=_0x2d9df6['plugins']['get']('TrackChangesEditing');_0x2d9df6['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x1fc902['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x39f812=this['editor'],_0x26c798=_0x39f812['model'],_0x507488=_0x39f812['locale'],_0x4be4f1=_0x39f812['plugins']['get']('TrackChangesEditing'),_0x143373='restrictedEditingException',_0x2a3413=_0x39f812['commands']['get'](_0x143373);_0x4be4f1['enableCommand'](_0x143373,(_0x44fd34,_0x2456fa={})=>{const _0x11106b=_0x26c798['document']['selection'];if(_0x11106b['isCollapsed'])return void _0x44fd34(_0x2456fa);const _0x18994c=void 0x0!==_0x2456fa['forceValue']?_0x2456fa['forceValue']:!_0x2a3413['value'];_0x26c798['change'](()=>{const _0x2eb50f=Array['from'](_0x11106b['getRanges']());for(const _0x463af7 of _0x2eb50f){const _0x3dde16=_0x18994c?[_0x463af7]:an(_0x143373,_0x463af7,_0x26c798);for(const _0x1a226c of _0x3dde16)_0x4be4f1['markInlineFormat'](_0x1a226c,{'commandName':_0x143373,'commandParams':[{'forceValue':_0x18994c}]});}});}),_0x4be4f1['descriptionFactory']['registerDescriptionCallback'](_0x2a933a=>{if('formatBlock'!=_0x2a933a['type']&&'formatInline'!=_0x2a933a['type'])return;const {data:_0x738f10}=_0x2a933a;return _0x738f10&&_0x738f10['commandName']==_0x143373?_0x738f10['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x507488,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x507488,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x2aa048=this['editor'],_0x581737=_0x2aa048['locale'],_0x32cb24=_0x2aa048['plugins']['get']('TrackChangesEditing'),_0x22e99f='restrictedEditingExceptionBlock',_0x2c5750=this['editor']['commands']['get'](_0x22e99f);_0x32cb24['enableCommand'](_0x22e99f,(_0x3afb5f,_0x5497e2={})=>{const _0x292407=this['editor']['model']['document']['selection'],_0x90ed45=_0x5497e2&&void 0x0!==_0x5497e2['forceValue']?_0x5497e2['forceValue']:!_0x2c5750['value'];let _0x51e120=[];if(_0x90ed45){const _0x1ed238=Array['from'](_0x292407['getSelectedBlocks']())['filter'](_0x8f7625=>function(_0x87afe3){return!!_0x87afe3['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x8f7625)||function(_0x1203f4,_0x47be33){const _0x98e23b=_0x47be33['createContext'](_0x1203f4['parent']);if(!_0x47be33['checkChild'](_0x98e23b,'restrictedEditingException'))return!0x1;if(!_0x47be33['checkChild'](_0x98e23b['push']('restrictedEditingException'),_0x1203f4))return!0x1;return!0x0;}(_0x8f7625,this['editor']['model']['schema']));_0x51e120=to(_0x1ed238,_0x2aa048['model']);}else{const _0x4da309=Array['from'](_0x292407['getSelectedBlocks']())['map'](_0x4047db=>function(_0x32f47c){let _0x497829=_0x32f47c;for(;_0x497829['parent'];){if('restrictedEditingException'==_0x497829['parent']['name'])return _0x497829;_0x497829=_0x497829['parent'];}return null;}(_0x4047db))['filter'](_0x39954e=>!!_0x39954e);_0x51e120=to(_0x4da309,_0x2aa048['model']);}_0x2aa048['model']['change'](()=>{for(const _0x4b6831 of _0x51e120)_0x32cb24['markBlockFormat'](_0x4b6831,{'commandName':_0x22e99f,'commandParams':[{'forceValue':_0x90ed45}]});});}),_0x32cb24['descriptionFactory']['registerDescriptionCallback'](_0x39bc73=>{const {data:_0x3a870e}=_0x39bc73;if(_0x3a870e&&_0x3a870e['commandName']==_0x22e99f)return _0x3a870e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x581737,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x581737,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x1a5913{['afterInit'](){const _0x4ddd36=this['editor'];if(!_0x4ddd36['plugins']['has']('Style')||!_0x4ddd36['plugins']['has']('DataSchema'))return;const _0x45b31d=_0x4ddd36['plugins']['get']('TrackChangesEditing'),_0x58774d=_0x4ddd36['locale'],_0x2cb53a=_0x4ddd36['config']['get']('style')||{},_0x51c116=_0x4ddd36['plugins']['get']('GeneralHtmlSupport'),_0x52b2fb=_0x4ddd36['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4ddd36['plugins']['get']('DataSchema'),_0x2cb53a['definitions']);_0x45b31d['enableDefaultAttributesIntegration']('style');const _0xec11d4=new Set();for(const _0x5eb10 of _0x52b2fb['block']){const _0x3df05d=_0x51c116['getGhsAttributeNameForElement'](_0x5eb10['element']);_0xec11d4['add'](_0x3df05d);}const _0x1b47df=new Set();for(const _0x2b8c8e of _0x52b2fb['inline']){const _0x1215e1=_0x51c116['getGhsAttributeNameForElement'](_0x2b8c8e['element']);_0x1b47df['add'](_0x1215e1);for(const _0x3ceafe of _0x2b8c8e['ghsAttributes'])_0x1b47df['add'](_0x3ceafe);}for(const _0xe52a4b of _0xec11d4)_0x45b31d['descriptionFactory']['registerAttributeLabel'](_0xe52a4b,o(_0x58774d,'FORMAT_STYLE'));for(const _0x22db3b of _0x1b47df)_0x45b31d['descriptionFactory']['registerAttributeLabel'](_0x22db3b,o(_0x58774d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bd2f3=this['editor'],_0x556030=_0x4bd2f3['locale'];_0x4bd2f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54b3e0=>{if('formatBlock'!=_0x54b3e0['type']&&'formatInline'!=_0x54b3e0['type'])return;const {data:_0x1b7ca8}=_0x54b3e0;return _0x1b7ca8&&'style'===_0x1b7ca8['commandName']?_0x1b7ca8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x556030,'*Set\x20format:*\x20%0',_0x1b7ca8['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x556030,'*Remove\x20format:*\x20%0',_0x1b7ca8['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x1a5913{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x167894){super(_0x167894),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xae614=this['editor'],_0x412c64=_0xae614['model']['document']['selection'];if(!_0xae614['plugins']['has']('TableEditing'))return;const _0x41e278=_0xae614['locale'],_0x700a69=_0xae614['plugins']['get']('TrackChangesEditing'),_0x31a05f=_0xae614['plugins']['get']('TableUtils');_0x700a69['descriptionFactory']['registerElementLabel']('table',_0x19de32=>o(_0x41e278,'ELEMENT_TABLE',_0x19de32)),this['_setupColumnsRowsFixing'](),_0x700a69['enableCommand']('insertTable'),_0x700a69['enableCommand']('selectTableRow'),_0x700a69['enableCommand']('selectTableColumn');for(const _0x31e6ed of['insertTableRowAbove','insertTableRowBelow']){const _0x3e0719=_0xae614['commands']['get'](_0x31e6ed);_0x700a69['enableCommand'](_0x31e6ed,_0x29be8d=>{_0xae614['model']['change'](_0x4ad4ab=>{_0x29be8d();const _0xc72fcd='above'===_0x3e0719['order'],_0x51010a=_0x31a05f['getSelectionAffectedTableCells'](_0x412c64),_0x3cc9b3=_0x31a05f['getRowIndexes'](_0x51010a),_0x154177=_0xc72fcd?_0x3cc9b3['first']-0x1:_0x3cc9b3['last']+0x1,_0x46fcaa=_0x51010a[0x0]['findAncestor']('table'),_0x3dcdd8=_0x31a05f['createTableWalker'](_0x46fcaa,{'startRow':_0x154177,'endRow':_0x154177}),_0x274a26=Array['from'](_0x3dcdd8)['map'](_0x36f1f2=>_0x4ad4ab['createRangeOn'](_0x36f1f2['cell']));_0x700a69['markMultiRangeInsertion'](_0x274a26,'tableRow');});});}for(const _0x52ac01 of['insertTableColumnLeft','insertTableColumnRight']){const _0xcfc2eb=_0xae614['commands']['get'](_0x52ac01);_0x700a69['enableCommand'](_0x52ac01,_0x288fe9=>{_0xae614['model']['change'](_0x4f7966=>{_0x288fe9();const _0xc91608='left'===_0xcfc2eb['order'],_0xc05fa3=_0x31a05f['getSelectionAffectedTableCells'](_0x412c64),_0x36ab1d=_0x31a05f['getColumnIndexes'](_0xc05fa3),_0x4f7988=_0xc91608?_0x36ab1d['first']-0x1:_0x36ab1d['last']+0x1,_0x1f2673=_0xc05fa3[0x0]['findAncestor']('table'),_0x3e432f=_0x31a05f['createTableWalker'](_0x1f2673,{'startRow':0x0,'column':_0x4f7988,'includeAllSlots':!0x1}),_0x2f8b91=Array['from'](_0x3e432f)['map'](_0x152e04=>_0x4f7966['createRangeOn'](_0x152e04['cell']));_0x700a69['markMultiRangeInsertion'](_0x2f8b91,'tableColumn');});});}for(const _0x447896 of['removeTableRow','removeTableColumn']){const _0x2db90b=_0x447896['substr'](0xb),_0x19baab=_0x2db90b['toLowerCase'](),_0x2bd854=_0x19baab['substr'](0x0,0x3)+'span',_0x50112b='table'+_0x2db90b,_0x115cde='min'+_0x2db90b,_0x4d54bb='max'+_0x2db90b;_0x700a69['enableCommand'](_0x447896,()=>{_0xae614['model']['change'](_0x1fb8df=>{const _0x2414a6=_0x31a05f['getSelectionAffectedTableCells'](_0x412c64),_0x472315=_0x2414a6[0x0]['findAncestor']('table');let _0x1066ed;if('removeTableRow'==_0x447896){const _0x56f635=_0x31a05f['getRowIndexes'](_0x2414a6);_0x1066ed={'startRow':_0x56f635['first'],'endRow':_0x56f635['last'],'includeAllSlots':!0x0};}else{const _0x214071=_0x31a05f['getColumnIndexes'](_0x2414a6);_0x1066ed={'startColumn':_0x214071['first'],'endColumn':_0x214071['last'],'includeAllSlots':!0x0};}const _0x2fd312=_0x31a05f['createTableWalker'](_0x472315,_0x1066ed),_0x545283=Array['from'](_0x2fd312)['map'](({cell:_0x270f43})=>_0x270f43),_0x54c75f=_e(_0x545283['filter'](_0x41c5e9=>_0x41c5e9['hasAttribute'](_0x2bd854))),_0x4fb258=_e(_0x545283['filter'](_0x10b95c=>!_0x10b95c['hasAttribute'](_0x2bd854)))['map'](_0x310627=>_0x1fb8df['createRangeOn'](_0x310627)),_0x1ccb22=_0x700a69['markMultiRangeDeletion'](_0x4fb258,_0x50112b);if(_0x1ccb22&&('tableRow'==_0x1ccb22['subType']||'tableColumn'==_0x1ccb22['subType'])){const _0x2d2336=this['_getSuggestionCoords'](_0x1ccb22);for(const _0x133170 of _0x54c75f){const _0x497f05=_0x1fb8df['createRangeOn'](_0x133170),_0x216408=_0x31a05f['getCellLocation'](_0x133170),_0x426693=_0x133170['getAttribute'](_0x2bd854)-0x1,_0x40d348=_0x2d2336[_0x115cde],_0x24ae64=_0x2d2336[_0x4d54bb];_0x40d348<=_0x216408[_0x19baab]&&_0x216408[_0x19baab]+_0x426693<=_0x24ae64&&_0x1ccb22['addRange'](_0x497f05);}}});});}function _0x44df87(_0x152740){const _0x5ac9ae=Array['from'](_0x412c64['getRanges']())['map'](_0x1acc21=>_0x4edbf7['fromRange'](_0x1acc21));_0xae614['model']['change'](_0x3b2b11=>{const _0x75626f=_0x3b2b11['batch'];_0x152740=_0x152740['filter'](_0x3eca51=>'$graveyard'!=_0x3eca51['root']['rootName']),_0x3b2b11['setSelection'](_0x152740),_0xae614['commands']['get']('removeTableRow')['refresh'](),_0xae614['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xae614['model']['enqueueChange'](()=>{_0xae614['model']['enqueueChange'](_0x75626f,_0x42af98=>{const _0x3af22c=_0x5ac9ae['filter'](_0x24e591=>'$graveyard'!=_0x24e591['root']['rootName']);_0x3af22c['length']>0x0&&_0x42af98['setSelection'](_0x3af22c);for(const _0x4bc219 of _0x5ac9ae)_0x4bc219['detach']();});});});}function _0x9f0f67(_0x14e702){_0xae614['model']['change'](_0x44e0cf=>{const _0x3210e0=Array['from'](_0x412c64['getRanges']())['map'](_0x8379ee=>_0x4edbf7['fromRange'](_0x8379ee)),_0x3982bd=[];for(const _0x168516 of _0x14e702)for(const _0x25740c of _0x168516['getItems']({'shallow':!0x0}))_0x3982bd['push'](_0x25740c);for(const _0x55f846 of _0x3982bd)'$graveyard'!=_0x55f846['root']['rootName']&&(_0x44e0cf['setSelection'](_0x44e0cf['createPositionAt'](_0x55f846,0x0)),_0xae614['commands']['get']('removeTableColumn')['refresh'](),_0xae614['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1dbe5f=_0x3210e0['filter'](_0x52d8a1=>'$graveyard'!=_0x52d8a1['root']['rootName']);_0x1dbe5f['length']>0x0&&_0x44e0cf['setSelection'](_0x1dbe5f);for(const _0x450cab of _0x3210e0)_0x450cab['detach']();});}function _0x49bd9c(_0x587322,_0x1b456e){return _0x1b456e['every'](_0x160737=>_0x587322['some'](_0x53d833=>_0x53d833['end']['isEqual'](_0x160737['start'])||_0x160737['end']['isEqual'](_0x53d833['start'])));}function _0x5cf52e(_0x319c1a,_0x1d9176){return!_0x319c1a['some'](_0x1f2cdb=>_0x1d9176['some'](_0x18f8c8=>_0x1f2cdb['isIntersecting'](_0x18f8c8)))&&_0x319c1a['some'](_0x5b5228=>_0x1d9176['some'](_0x36da42=>_0x5b5228['end']['isTouching'](_0x36da42['start'])));}_0x700a69['descriptionFactory']['registerDescriptionCallback'](_0x41cfca=>{if('insertion'!=_0x41cfca['type']&&'deletion'!=_0x41cfca['type'])return;const _0x595840=_0x41cfca['getContainedElement']();if(null!=_0x595840&&_0x595840['is']('element','table')){if('insertion'==_0x41cfca['type']){const _0x15a214=_0x41cfca['getItems']()['filter'](_0xca57ae=>_0xca57ae['is']('$textProxy'))['map'](_0x1473d3=>_0x1473d3['data']);if(_0x15a214['length'])return{'type':'insertion','content':o(_0x41e278,'*Insert:*\x20%0',o(_0x41e278,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x15a214['join']('\x20')+'\x22'))};}if('deletion'==_0x41cfca['type']){const _0x3f0e4e=_0x41cfca['getItems']()['filter'](_0x3b3934=>_0x3b3934['is']('$textProxy'))['map'](_0x173c7c=>_0x173c7c['data']);if(_0x3f0e4e['length'])return{'type':'deletion','content':o(_0x41e278,'*Remove:*\x20%0',o(_0x41e278,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3f0e4e['join']('\x20')+'\x22'))};}}}),_0x700a69['descriptionFactory']['registerDescriptionCallback'](_0x54e024=>{if('tableRow'==_0x54e024['subType']){const _0x4c096e=_0x54e024['getItems']()['filter'](_0x49a33b=>_0x49a33b['is']('$textProxy'))['map'](_0x5f1f90=>_0x5f1f90['data']),_0x478f42=this['_getSuggestionCoords'](_0x54e024),_0x407fbe=_0x478f42['maxRow']-_0x478f42['minRow']+0x1;if('insertion'==_0x54e024['type'])return _0x4c096e['length']?{'type':'insertion','content':o(_0x41e278,'*Insert:*\x20%0',o(_0x41e278,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x407fbe,'\x22'+_0x4c096e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x41e278,'*Insert:*\x20%0',o(_0x41e278,'ELEMENT_TABLE_ROW',_0x407fbe))};if('deletion'==_0x54e024['type'])return _0x4c096e['length']?{'type':'deletion','content':o(_0x41e278,'*Remove:*\x20%0',o(_0x41e278,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x407fbe,'\x22'+_0x4c096e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x41e278,'*Remove:*\x20%0',o(_0x41e278,'ELEMENT_TABLE_ROW',_0x407fbe))};}if('tableColumn'==_0x54e024['subType']){const _0x447144=_0x54e024['getItems']()['filter'](_0x519832=>_0x519832['is']('$textProxy'))['map'](_0x31008a=>_0x31008a['data']),_0x48a45c=this['_getSuggestionCoords'](_0x54e024),_0x5eff22=_0x48a45c['maxColumn']-_0x48a45c['minColumn']+0x1;if('insertion'==_0x54e024['type'])return _0x447144['length']?{'type':'insertion','content':o(_0x41e278,'*Insert:*\x20%0',o(_0x41e278,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5eff22,'\x22'+_0x447144['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x41e278,'*Insert:*\x20%0',o(_0x41e278,'ELEMENT_TABLE_COLUMN',_0x5eff22))};if('deletion'==_0x54e024['type'])return _0x447144['length']?{'type':'deletion','content':o(_0x41e278,'*Remove:*\x20%0',o(_0x41e278,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5eff22,'\x22'+_0x447144['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x41e278,'*Remove:*\x20%0',o(_0x41e278,'ELEMENT_TABLE_COLUMN',_0x5eff22))};}}),_0x700a69['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x44df87),_0x700a69['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x44df87),_0x700a69['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x9f0f67),_0x700a69['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x9f0f67),_0x700a69['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x49bd9c),_0x700a69['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x49bd9c),_0x700a69['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5cf52e),_0x700a69['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5cf52e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4c9656=this['editor'],_0x5d1b1e=_0x4c9656['model']['document']['selection'];return(_0x3d9afe,_0x20fe3f)=>{_0x4c9656['model']['change'](_0x4938bf=>{const {commandName:_0x11f896,commandParams:_0x5694a4}=_0x20fe3f;let _0x10d1f4=_0x3d9afe[0x0]['end']['nodeBefore'];_0x5694a4&&_0x5694a4[0x0]&&!0x1===_0x5694a4[0x0]['forceValue']&&(_0x10d1f4=_0x3d9afe[0x0]['start']['nodeAfter']);const _0x9399ed=_0x4938bf['createRangeIn'](_0x10d1f4);if('$graveyard'==_0x9399ed['root']['rootName'])return;const _0x4b903a=Array['from'](_0x5d1b1e['getRanges']())['map'](_0x150bc9=>_0x4edbf7['fromRange'](_0x150bc9));_0x4938bf['setSelection'](_0x9399ed),_0x4c9656['commands']['get'](_0x11f896)['refresh'](),_0x5694a4['push']({'forceDefaultExecution':!0x0}),_0x4c9656['execute'](_0x11f896,..._0x5694a4);const _0x5eb05e=_0x4b903a['filter'](_0x54ee19=>'$graveyard'!=_0x54ee19['root']['rootName']);_0x5eb05e['length']>0x0&&_0x4938bf['setSelection'](_0x5eb05e);for(const _0x2bd118 of _0x4b903a)_0x2bd118['detach']();});};}['_getCoordsForCells'](_0x54a661){const _0x4651f8=this['editor']['plugins']['get']('TableUtils');let _0x1bec94=Number['MAX_SAFE_INTEGER'],_0x4b450d=Number['MIN_SAFE_INTEGER'],_0x3be6e3=Number['MAX_SAFE_INTEGER'],_0x4d6d02=Number['MIN_SAFE_INTEGER'];for(const _0x530119 of _0x54a661){if('$graveyard'==_0x530119['root']['rootName'])continue;const {row:_0x13f1c7,column:_0x13c449}=_0x4651f8['getCellLocation'](_0x530119),_0x27a49a=_0x530119['hasAttribute']('rowspan')?_0x530119['getAttribute']('rowspan')-0x1:0x0,_0x19d99e=_0x530119['hasAttribute']('colspan')?_0x530119['getAttribute']('colspan')-0x1:0x0;_0x1bec94=_0x13f1c7<_0x1bec94?_0x13f1c7:_0x1bec94,_0x4b450d=_0x13f1c7+_0x27a49a>_0x4b450d?_0x13f1c7+_0x27a49a:_0x4b450d,_0x3be6e3=_0x13c449<_0x3be6e3?_0x13c449:_0x3be6e3,_0x4d6d02=_0x13c449+_0x19d99e>_0x4d6d02?_0x13c449+_0x19d99e:_0x4d6d02;}return{'minRow':_0x1bec94,'maxRow':_0x4b450d,'minColumn':_0x3be6e3,'maxColumn':_0x4d6d02};}['_setupColumnsRowsFixing'](){const _0x1dc58c=this['editor'],_0x5ba07f=_0x1dc58c['plugins']['get']('TrackChangesEditing'),_0x5a8e43=_0x1dc58c['plugins']['get']('TableUtils');_0x1dc58c['model']['document']['on']('change:data',()=>{const _0x1b5a4c=Array['from'](_0x1dc58c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x101c6d,data:_0x63e13b}of _0x1b5a4c){const {group:_0x436916,id:_0x296b74,subType:_0x278071}=_0x5ba07f['_splitMarkerName'](_0x101c6d);if('suggestion'!=_0x436916)continue;if(null!=_0x63e13b['oldRange'])continue;const _0x2a2d29=_0x5ba07f['getSuggestion'](_0x296b74);this['_tablePostFixingSubtypes']['includes'](_0x278071)&&this['_tableSuggestions']['add'](_0x2a2d29);}},{'priority':'low'});const _0xccf35=(_0x47bf9a,_0x5d222f)=>{let _0x38e6f2=!0x1;const _0x57bed3=_0x5d222f['createRangeOn'](_0x47bf9a),_0x68fa03=_0x47bf9a['findAncestor']('table'),_0x4b6f67=_0x5a8e43['getCellLocation'](_0x47bf9a);for(const _0x1e770a of this['_tableSuggestions']){const _0x3406e1=_0x1e770a['subType'],_0x570a36=_0x3406e1['startsWith']('tablePaste'),_0x2c8447=_0x3406e1['substr'](_0x570a36?0xa:0x5),_0x246a20=_0x2c8447['toLowerCase'](),_0x9c80e8=_0x246a20['substr'](0x0,0x3)+'span',_0x1cac9b='min'+_0x2c8447,_0x1e7744='max'+_0x2c8447;if(!_0x1e770a['isInContent'])continue;if(_0x68fa03!=_0x1e770a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1e770a['isIntersectingWithRange'](_0x57bed3))continue;const _0x32f8a8=_0x47bf9a['hasAttribute'](_0x9c80e8)?_0x47bf9a['getAttribute'](_0x9c80e8)-0x1:0x0,_0x3a12f8=this['_getSuggestionCoords'](_0x1e770a),_0xd9bbcd=_0x3a12f8[_0x1cac9b],_0x3fcdb7=_0x3a12f8[_0x1e7744];_0xd9bbcd<=_0x4b6f67[_0x246a20]&&_0x4b6f67[_0x246a20]+_0x32f8a8<=_0x3fcdb7&&(_0x1e770a['addRange'](_0x57bed3),_0x38e6f2=!0x0);}return _0x38e6f2;};_0x1dc58c['model']['document']['registerPostFixer'](_0x1584f6=>{let _0x2a4e57=!0x1;for(const _0x2c4d0c of _0x1dc58c['model']['document']['differ']['getChanges']())if('insert'==_0x2c4d0c['type']){if('tableRow'==_0x2c4d0c['name']){for(const _0x1fafa3 of _0x2c4d0c['position']['nodeAfter']['getChildren']())_0x2a4e57=_0x2a4e57||_0xccf35(_0x1fafa3,_0x1584f6);}else'tableCell'==_0x2c4d0c['name']&&(_0x2a4e57=_0x2a4e57||_0xccf35(_0x2c4d0c['position']['nodeAfter'],_0x1584f6));}return _0x2a4e57;});}['_getSuggestionCoords'](_0x5c456b){return this['_getCoordsForCells'](_0x5c456b['getRanges']()['map'](_0x2358e9=>_0x2358e9['start']['nodeAfter']));}}function _e(_0xb1996e){return Array['from'](new Set(_0xb1996e)['values']());}class $t extends _0x1a5913{static get['requires'](){return[Nt];}['afterInit'](){const _0x151592=this['editor'],_0x14f99e=_0x151592['model']['document']['selection'],_0x2e75be=_0x151592['locale'];if(!_0x151592['plugins']['has']('TableEditing'))return;const _0x524fa5=_0x151592['plugins']['get']('TrackChangesEditing'),_0xa1791b=_0x151592['plugins']['get']('TableUtils'),_0x163986=_0x151592['plugins']['get'](Nt);_0x163986['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x524fa5['enableCommand']('mergeTableCells',()=>{const _0x21af0e=_0xa1791b['getSelectionAffectedTableCells'](_0x151592['model']['document']['selection']);_0x151592['model']['change'](()=>{_0x524fa5['markMultiRangeBlockFormat'](_0x21af0e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x151592['commands']['get']('mergeTableCells')['on']('execute',(_0x556467,_0x5aef04)=>{_0x151592['commands']['get']('trackChanges')['value']&&(_0x5aef04['length']>0x0&&_0x5aef04[_0x5aef04['length']-0x1]&&_0x5aef04[_0x5aef04['length']-0x1]['forceDefaultExecution']||_0x524fa5['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x556467['stop']());},{'priority':'highest'});for(const _0x4fa46a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2001df=_0x151592['commands']['get'](_0x4fa46a);_0x524fa5['enableCommand'](_0x4fa46a,()=>{const _0x17f546=_0x151592['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x144365=>_0x144365['is']('element','tableCell')),_0x512ff5=_0x2001df['value'];_0x151592['model']['change'](()=>{_0x524fa5['markMultiRangeBlockFormat']([_0x17f546,_0x512ff5],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x353a43 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4f33ff=_0x151592['commands']['get'](_0x353a43);_0x524fa5['enableCommand'](_0x353a43,()=>{const _0x2d8371=_0xa1791b['getSelectionAffectedTableCells'](_0x151592['model']['document']['selection'])[0x0],_0x227b7d=_0x2d8371['findAncestor']('table'),{column:_0x1e04e7,row:_0x436493}=_0xa1791b['getCellLocation'](_0x2d8371);let _0x3f8eb9=[];if('horizontally'==_0x4f33ff['direction']){const _0x32c333=_0xa1791b['createTableWalker'](_0x227b7d,{'startRow':_0x436493,'endRow':_0x436493,'includeAllSlots':!0x0});_0x3f8eb9=Array['from'](_0x32c333)['map'](_0x1ac2cc=>_0x1ac2cc['cell']);}else{const _0x546bcc=_0xa1791b['createTableWalker'](_0x227b7d,{'column':_0x1e04e7,'includeAllSlots':!0x0});_0x3f8eb9=Array['from'](_0x546bcc)['map'](_0xc1025d=>_0xc1025d['cell']);}_0x151592['model']['change'](_0x2d20be=>{_0x524fa5['markBlockFormat'](_0x2d20be['createRangeOn'](_0x2d8371),{'commandName':_0x353a43,'commandParams':[]},_0x3f8eb9,_0x353a43);});});}_0x524fa5['descriptionFactory']['registerDescriptionCallback'](_0x2a61fb=>{if('formatBlock'!=_0x2a61fb['type']&&'formatInline'!=_0x2a61fb['type'])return;const {data:_0x5e1f39}=_0x2a61fb;return _0x5e1f39&&'mergeTableCells'==_0x5e1f39['commandName']?{'type':'format','content':o(_0x2e75be,'*Merge\x20cells*')}:void 0x0;}),_0x524fa5['descriptionFactory']['registerDescriptionCallback'](_0x181f1d=>{if('formatBlock'!=_0x181f1d['type']&&'formatInline'!=_0x181f1d['type'])return;const {data:_0x3cd18b}=_0x181f1d;return _0x3cd18b?'splitTableCellVertically'==_0x3cd18b['commandName']?{'type':'format','content':o(_0x2e75be,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3cd18b['commandName']?{'type':'format','content':o(_0x2e75be,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x59a64b=_0x163986['_acceptFormatSuggestionCallbackFactory']();for(const _0x468d30 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x524fa5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x468d30,'accept',_0x59a64b);for(const _0x1e1cb9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x524fa5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1e1cb9,'accept',_0x59a64b);_0x524fa5['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x115e8c=>{_0x151592['model']['change'](_0x32b71d=>{const _0x37b108=Array['from'](_0x14f99e['getRanges']())['map'](_0x10000b=>_0x4edbf7['fromRange'](_0x10000b));_0x32b71d['setSelection'](_0x115e8c),_0x151592['commands']['get']('mergeTableCells')['refresh'](),_0x151592['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1e6981=_0x37b108['filter'](_0x4cf062=>'$graveyard'!=_0x4cf062['root']['rootName']);_0x1e6981['length']>0x0&&_0x32b71d['setSelection'](_0x1e6981);for(const _0x843da0 of _0x37b108)_0x843da0['detach']();});});for(const _0xb491ec of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x54f7dd=_0x151592['commands']['get'](_0xb491ec);_0x54f7dd['on']('set:isEnabled',(_0x43fa67,_0x35b7ad,_0x85eb8f)=>{if(_0x85eb8f){const _0x639f74=_0x151592['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1adb15=>_0x1adb15['is']('element','tableCell'));this['_areMergableCells'](_0x54f7dd['value'],_0x639f74)||(_0x43fa67['return']=!0x1,_0x43fa67['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2fc0b7=this['editor']['commands']['get']('mergeTableCells'),_0x46556e=this['editor']['plugins']['get']('TableUtils');if(!_0x2fc0b7['isEnabled'])return!0x1;const _0x1f9a5e=_0x46556e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x369775 of _0x1f9a5e)for(const _0x1db05c of _0x1f9a5e)if(_0x369775!=_0x1db05c&&!this['_areMergableCells'](_0x369775,_0x1db05c))return!0x1;return!0x0;}['_areMergableCells'](_0x2746af,_0x319152){const _0x117bdb=this['editor']['plugins']['get']('TrackChangesEditing'),_0xffff87=this['editor']['model']['createRangeOn'](_0x2746af),_0x3f4c2c=this['editor']['model']['createRangeOn'](_0x319152),_0x38a92b=new Set(),_0x50cf2f=new Set();for(const _0x2f1341 of _0x117bdb['getSuggestions']())if(('insertion'==_0x2f1341['type']||'deletion'==_0x2f1341['type']||'mergeTableCells'==_0x2f1341['subType'])&&_0x2f1341['isInContent']){for(const _0x26c8f4 of _0x2f1341['getRanges']())_0x26c8f4['containsRange'](_0xffff87,!0x0)&&_0x38a92b['add'](_0x2f1341['type']+':'+_0x2f1341['author']['id']),_0x26c8f4['containsRange'](_0x3f4c2c,!0x0)&&_0x50cf2f['add'](_0x2f1341['type']+':'+_0x2f1341['author']['id']);}if(_0x38a92b['size']!=_0x50cf2f['size'])return!0x1;for(const _0x403a44 of _0x38a92b)if(!_0x50cf2f['has'](_0x403a44))return!0x1;return!0x0;}}class vt extends _0x1a5913{static get['requires'](){return[Nt];}['afterInit'](){const _0xa60164=this['editor'];if(!_0xa60164['plugins']['has']('TableEditing'))return;const _0x1fcd8a=_0xa60164['locale'],_0x3ffa95=_0xa60164['plugins']['get']('TrackChangesEditing');_0x3ffa95['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3ffa95['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3ffa95['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1fcd8a,'FORMAT_HEADER_ROW')),_0x3ffa95['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1fcd8a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x45ff81=this['editor']['plugins']['get']('TrackChangesEditing'),_0x191bfe=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x45ff81['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x191bfe),_0x45ff81['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x191bfe),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x2147cb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x455d61=this['editor']['plugins']['get']('TableUtils');function _0x4b2ce1({showActiveMarker:_0x2015c6=!0x0,setDataAttribute:_0x2bef57=!0x0}={}){return(_0x2fdcb7,_0x378855,_0x3d56be)=>{const {type:_0x317817,id:_0xa636a7}=_0x2147cb['_splitMarkerName'](_0x378855['markerName']);if(!_0x2147cb['hasSuggestion'](_0xa636a7))return;const _0x291d56=_0x2147cb['getSuggestion'](_0xa636a7),_0x145728=_0x291d56['data'];if('formatBlock'!=_0x291d56['type']||!_0x145728||'setTableColumnHeader'!=_0x145728['commandName'])return;if(_0x378855['item'])return void _0x2fdcb7['stop']();if(!_0x3d56be['consumable']['consume'](_0x378855['markerRange'],_0x2fdcb7['name']))return;const _0x199ee4=_0x378855['markerRange']['start']['nodeAfter'],_0xa9be29=_0x378855['markerRange']['end']['nodeBefore'],_0x2edbb2=_0x199ee4['parent']['parent'],{column:_0x5f8fc2}=_0x455d61['getCellLocation'](_0x199ee4),{column:_0xaf2322}=_0x455d61['getCellLocation'](_0xa9be29);for(let _0x5f041a=_0x5f8fc2;_0x5f041a<=_0xaf2322;_0x5f041a++){const _0x50dc27=_0x455d61['createTableWalker'](_0x2edbb2,{'column':_0x5f041a,'includeAllSlots':!0x1});for(const _0x55ad72 of _0x50dc27){const _0x1ad547=_0x55ad72['cell'],_0x297070=_0x3d56be['mapper']['toViewElement'](_0x1ad547);_0x3d56be['writer']['addClass']('ck-suggestion-marker-'+_0x317817,_0x297070),_0x2bef57&&_0x3d56be['writer']['setAttribute']('data-suggestion',_0xa636a7,_0x297070),_0x3d56be['mapper']['bindElementToMarker'](_0x297070,_0x378855['markerName']),_0x2015c6&&(_0x2147cb['activeMarkers']['includes'](_0x378855['markerName'])?_0x3d56be['writer']['addClass']('ck-suggestion-marker--active',_0x297070):_0x3d56be['writer']['removeClass']('ck-suggestion-marker--active',_0x297070));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4b2ce1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x37f618,_0x4073e4,_0x3c1043)=>{_0x3c1043['options']['showSuggestionHighlights']&&_0x4b2ce1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x37f618,_0x4073e4,_0x3c1043);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2998d2,_0x1b8970,_0x2e5262)=>{const {type:_0x4e8e60,id:_0x4b506c}=_0x2147cb['_splitMarkerName'](_0x1b8970['markerName']);if(!_0x2147cb['hasSuggestion'](_0x4b506c))return;const _0x244ba5=_0x2147cb['getSuggestion'](_0x4b506c),_0x3cf1cd=_0x244ba5['data'];if('formatBlock'!=_0x244ba5['type']||!_0x3cf1cd||'setTableColumnHeader'!=_0x3cf1cd['commandName'])return;const _0x210a95=_0x2e5262['mapper']['markerNameToElements'](_0x1b8970['markerName']);if(_0x210a95){for(const _0x21f05f of _0x210a95)_0x2e5262['writer']['removeClass']('ck-suggestion-marker-'+_0x4e8e60,_0x21f05f),_0x2e5262['writer']['removeClass']('ck-suggestion-marker--active',_0x21f05f),_0x2e5262['writer']['removeAttribute']('data-suggestion',_0x21f05f),_0x2e5262['mapper']['unbindElementFromMarkerName'](_0x21f05f,_0x1b8970['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x4f99e1=this['editor'],_0x5c4318=_0x4f99e1['locale'];function _0x487d45(_0x53e5cf){return{'type':'format','content':o(_0x5c4318,'*Format:*\x20%0',_0x53e5cf)};}_0x4f99e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa01e6c=>{if('formatBlock'!=_0xa01e6c['type'])return;const {data:_0xa7385f}=_0xa01e6c;if(_0xa7385f){if('setTableRowHeader'==_0xa7385f['commandName']){const _0x47412c=_0xa7385f['commandParams'][0x0]['forceValue'];return _0x487d45(o(_0x5c4318,_0x47412c?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xa7385f['commandName']){const _0x1bd66c=_0xa7385f['commandParams'][0x0]['forceValue'];return _0x487d45(o(_0x5c4318,_0x1bd66c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x1a5913{['afterInit'](){const _0x5d3361=this['editor'],_0x2f64b3=_0x5d3361['locale'],_0x3f2586=_0x5d3361['plugins']['get']('TrackChangesEditing');function _0x5266c9(_0x2fb624){return{'type':'format','content':''+o(_0x2f64b3,'*Set\x20table\x20type:*\x20%0',_0x2fb624)};}_0x5d3361['plugins']['has']('TableLayout')&&(_0x3f2586['enableCommand']('insertTableLayout'),_0x3f2586['enableDefaultAttributesIntegration']('tableType'),_0x3f2586['descriptionFactory']['registerElementLabel'](_0x4c6c23=>_0x4c6c23['is']('element','table')&&'layout'===_0x4c6c23['getAttribute']('tableType'),_0x3d209c=>o(_0x2f64b3,'ELEMENT_LAYOUT_TABLE',_0x3d209c)),_0x3f2586['descriptionFactory']['registerDescriptionCallback'](_0x516987=>{const {data:_0x4d248f}=_0x516987;if(_0x4d248f&&'tableType'==_0x4d248f['key'])switch(_0x4d248f['newValue']){case'layout':return _0x5266c9(o(_0x2f64b3,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5266c9(o(_0x2f64b3,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Re['map'](_0x48d5f1=>[_0x48d5f1,null]));class Bt extends _0x1a5913{static get['requires'](){return[Nt];}['afterInit'](){const _0x2a49dd=this['editor'];if(!_0x2a49dd['plugins']['has']('TableClipboard'))return;const _0x24d0ae=_0x2a49dd['plugins']['get']('TrackChangesEditing'),_0x3fc9d6=_0x2a49dd['plugins']['get']('TableUtils'),_0x1324c1=_0x2a49dd['plugins']['get'](Nt),_0x485871=_0x2a49dd['plugins']['get']('TableClipboard'),_0x172ba3=_0x2a49dd['plugins']['get']('TableSelection'),_0x202c90=_0x2a49dd['plugins']['get'](_0x1aec0d);_0x1324c1['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2a49dd['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2a49dd['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1a6f00=null,_0x1611e8=!0x1;_0x202c90['on']('contentInsertion',(_0x2bffc4,_0x31c55e)=>{_0x1611e8='paste'===_0x31c55e['method'];}),_0x2a49dd['model']['on']('insertContent',(_0x3147b1,_0x395599)=>{if(!_0x1611e8&&null===_0x172ba3['getSelectedTableCells']())return;const [_0xcd0b4f,_0x150750]=_0x395599,_0x17d906=_0x395599[_0x395599['length']-0x1];_0x17d906&&_0x17d906['forceDefaultExecution']||_0x24d0ae['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4b8068,_0x539086,_0x1c4bc5,_0x4c4ea1,_0x149127){if(_0x539086&&!_0x539086['is']('documentSelection'))return!0x1;const _0x524811=_0x149127['getTableIfOnlyTableInContent'](_0x4b8068,_0x1c4bc5);if(!_0x524811||!Oe(_0x524811,void 0x0,_0x4c4ea1))return!0x1;const _0x50f3c7=_0x4c4ea1['getSelectionAffectedTableCells'](_0x1c4bc5['document']['selection']);if(!_0x50f3c7['length'])return!0x1;const _0x1fc030=_0x50f3c7[0x0]['findAncestor']('table'),_0x4a5cd7=_0x4c4ea1['getRowIndexes'](_0x50f3c7),_0x5832d8=_0x4c4ea1['getColumnIndexes'](_0x50f3c7),_0x2bbc72={'startRow':_0x4a5cd7['first'],'endRow':_0x4a5cd7['last'],'startColumn':_0x5832d8['first'],'endColumn':_0x5832d8['last']};return 0x1==_0x50f3c7['length']&&(_0x2bbc72['endRow']+=_0x4c4ea1['getRows'](_0x524811)-0x1,_0x2bbc72['endColumn']+=_0x4c4ea1['getColumns'](_0x524811)-0x1),Oe(_0x1fc030,_0x2bbc72,_0x4c4ea1);}(_0xcd0b4f,_0x150750,_0x2a49dd['model'],_0x3fc9d6,_0x485871)&&(_0x3147b1['stop'](),_0x1a6f00={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2a49dd['model']['change'](()=>{_0x2a49dd['model']['insertContent'](_0x395599[0x0],_0x395599[0x1],_0x395599[0x2],{'forceDefaultExecution':!0x0});const _0x1df196=_0x569ccd(),{rowInsertionRanges:_0x120522,columnInsertionRanges:_0x132572,insertionRanges:_0x4d957c,deletionRanges:_0x1cafa5,cells:_0xea8ed5}=_0x1a6f00;_0x120522['length']&&_0x24d0ae['markMultiRangeInsertion'](_0x120522,'tablePasteRow',{'tablePasteChainId':_0x1df196}),_0x132572['length']&&_0x24d0ae['markMultiRangeInsertion'](_0x132572,'tablePasteColumn',{'tablePasteChainId':_0x1df196}),_0x4d957c['length']&&(_0x24d0ae['markMultiRangeInsertion'](_0x4d957c,'tablePaste',{'tablePasteChainId':_0x1df196,'skipNestingCheck':!0x0}),_0x4d957c['forEach'](_0x69b728=>_0x69b728['detach']?.())),_0x1cafa5['length']&&(_0x24d0ae['markMultiRangeDeletion'](_0x1cafa5,'tablePaste',{'tablePasteChainId':_0x1df196,'skipNestingCheck':!0x0}),_0x1cafa5['forEach'](_0x58ae7f=>_0x58ae7f['detach']?.()));const _0x881aa4=_0x24d0ae['markMultiRangeBlockFormat'](_0xea8ed5['map'](({element:_0x1a6909})=>_0x1a6909),{'formatGroupId':_0x569ccd()},[],'tablePasteCell',{'tablePasteChainId':_0x1df196});if(_0x881aa4){const _0x37f426=_0x881aa4['getMarkers'](),_0x5707b6=[];for(const {element:_0xcd2039,attributes:_0x153bbd}of _0xea8ed5){if(!_0x153bbd)continue;const _0x2690a3=_0x2a49dd['model']['createRangeOn'](_0xcd2039),_0x246893=_0x37f426['find'](_0x107d70=>_0x107d70['getRange']()['isEqual'](_0x2690a3));_0x246893&&_0x5707b6['push']([_0x246893['name'],_0x153bbd]);}_0x5707b6['length']&&_0x881aa4['setAttribute']('markerAttributes',Object['fromEntries'](_0x5707b6));}_0x1a6f00=null;}));},{'priority':_0x5b0e58['high']+0xa}),_0x202c90['on']('contentInsertion',()=>{_0x1611e8=!0x1;},{'priority':'lowest'}),_0x2a49dd['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1cba5c,_0x4b94f7)=>{const [_0x192212,_0x1e7a34,,_0x5f0e58]=_0x4b94f7;if(!_0x1a6f00)return;_0x1cba5c['stop']();const _0x3fd464=_0x192212['cell'],_0x2cd18e=_0x1e7a34,_0x576bb8=Be(_0x3fd464),_0x155e15=Be(_0x2cd18e);_0x1cba5c['return']=_0x3fd464;let _0x259d83=null,_0x29fa12=null;if(_0x155e15||_0x576bb8){if(_0x576bb8&&!_0x155e15){_0x5f0e58['remove'](_0x3fd464['getChild'](0x0));for(const _0x137ea6 of Array['from'](_0x2cd18e['getChildren']()))_0x5f0e58['insert'](_0x137ea6,_0x3fd464,'end');const _0x3f3d87=_0x1a6f00['rowInsertionIndexes']['includes'](_0x192212['row']),_0x83672e=_0x1a6f00['columnInsertionIndexes']['includes'](_0x192212['column']);_0x3f3d87||_0x83672e||(_0x259d83=_0x4edbf7['fromRange'](_0x5f0e58['createRangeIn'](_0x3fd464)));}else _0x155e15&&!_0x576bb8&&(_0x29fa12=_0x5f0e58['createRangeIn'](_0x3fd464));}else{const _0x13d253=_0x5f0e58['createElement']('tableCellSuggestion'),_0x2b53a8=_0x5f0e58['createElement']('tableCellSuggestion');_0x5f0e58['wrap'](_0x5f0e58['createRangeIn'](_0x3fd464),_0x2b53a8),_0x5f0e58['insert'](_0x13d253,_0x3fd464,0x0);for(const _0x288a08 of Array['from'](_0x2cd18e['getChildren']()))_0x5f0e58['insert'](_0x288a08,_0x13d253,'end');_0x259d83=_0x4edbf7['fromRange'](_0x5f0e58['createRangeOn'](_0x13d253)),_0x29fa12=_0x4edbf7['fromRange'](_0x5f0e58['createRangeOn'](_0x2b53a8));}const _0x385fef=Array['from'](_0x2cd18e['getAttributes']())['filter'](([_0x660a42])=>Re['includes'](_0x660a42));_0x1a6f00['cells']['push']({'element':_0x3fd464,'attributes':_0x385fef['length']?Object['fromEntries'](_0x385fef):null}),_0x259d83&&_0x1a6f00['insertionRanges']['push'](_0x259d83),_0x29fa12&&_0x1a6f00['deletionRanges']['push'](_0x29fa12);},{'priority':'high'}),_0x3fc9d6['on']('insertColumns',(_0x10fc74,_0x402475)=>{const [_0x46c354,_0x3d8b02={}]=_0x402475;if(!_0x1a6f00)return;const _0x137cd9=_0x3d8b02['at']||0x0,_0x1e47c7=_0x3d8b02['columns']||0x1;_0x1a6f00['columnInsertionIndexes']=new Array(_0x1e47c7)['fill'](_0x137cd9)['map']((_0x3b71e8,_0x403ab5)=>_0x3b71e8+_0x403ab5);for(const {cell:_0x51e634}of _0x3fc9d6['createTableWalker'](_0x46c354,{'startColumn':_0x137cd9,'endColumn':_0x137cd9+_0x1e47c7-0x1}))_0x1a6f00['columnInsertionRanges']['push'](_0x2a49dd['model']['createRangeOn'](_0x51e634));},{'priority':'low'}),_0x3fc9d6['on']('insertRows',(_0xe4f776,_0x1ef4df)=>{const [_0x3c3216,_0x40dce0={}]=_0x1ef4df;if(!_0x1a6f00)return;const _0x77fd46=_0x40dce0['at']||0x0,_0x116692=_0x40dce0['rows']||0x1;_0x1a6f00['rowInsertionIndexes']=new Array(_0x116692)['fill'](_0x77fd46)['map']((_0x3f4e0f,_0x595fc7)=>_0x3f4e0f+_0x595fc7);for(const {cell:_0x1fc0ea}of _0x3fc9d6['createTableWalker'](_0x3c3216,{'startRow':_0x77fd46,'endRow':_0x77fd46+_0x116692-0x1}))_0x1a6f00['rowInsertionRanges']['push'](_0x2a49dd['model']['createRangeOn'](_0x1fc0ea));},{'priority':'low'}),_0x24d0ae['descriptionFactory']['registerDescriptionCallback'](_0x50aa66=>{if(_0x50aa66['subType']&&_0x50aa66['subType']['startsWith']('tablePaste'))return _0x50aa66['previous']?{}:{'type':'insertion','content':o(_0x2a49dd['locale'],'*Replace\x20table\x20cells*')};});const _0x29b0cd=()=>!0x1;for(const _0x469e25 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x24d0ae['_suggestionFactory']['registerCustomCallback']('insertion',_0x469e25,'join',_0x29b0cd),_0x24d0ae['_suggestionFactory']['registerCustomCallback']('deletion',_0x469e25,'join',_0x29b0cd),_0x24d0ae['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x469e25,'join',_0x29b0cd);_0x24d0ae['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x29b0cd),_0x24d0ae['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x237b36,_0x3bcaa3,_0x288ca8)=>{const _0x271992=_0x237b36['map'](_0x2e818d=>_0x2e818d['getContainedElement']())['filter'](_0xecf058=>_0xecf058),_0x53fe9d=new Map(_0x271992['map'](_0x3dbdc5=>[_0x3dbdc5,null]));if(_0x1a6f00){for(const {element:_0x4291d0,attributes:_0x5cfe86}of _0x1a6f00['cells'])_0x5cfe86&&_0x53fe9d['set'](_0x4291d0,_0x5cfe86);}else{if(_0x288ca8&&_0x288ca8['markerAttributes'])for(const [_0x3e07a1,_0x63868f]of Object['entries'](_0x288ca8['markerAttributes'])){const _0x5686e3=_0x2a49dd['model']['markers']['get'](_0x3e07a1),_0x566fc1=_0x5686e3?_0x5686e3['getRange']()['getContainedElement']():null;_0x566fc1&&_0x53fe9d['set'](_0x566fc1,_0x63868f);}}_0x2a49dd['model']['change'](_0x1af09c=>{for(const [_0x52ec38,_0x33104a]of _0x53fe9d)_0x1af09c['setAttributes']({...Ae,..._0x33104a},_0x52ec38);});});const _0x8cbc87=(_0x12c378,_0x3cf266)=>{_0x24d0ae['_suggestionFactory']['registerCustomCallback'](_0x12c378,'tablePaste',_0x3cf266,(_0x1f63c7,_0x23279d,_0x2e694b)=>{_0x2a49dd['model']['change'](_0x5bc831=>{const _0x3de140=[];for(const _0x483e79 of _0x1f63c7){const _0x23c6b8=_0x483e79['start']['nodeAfter'];_0x23c6b8['is']('element','tableCellSuggestion')&&_0x3de140['push'](_0x23c6b8);}_0x24d0ae['_suggestionFactory']['getSuggestionCallback'](_0x12c378,null,_0x3cf266)(_0x1f63c7,_0x23279d,_0x2e694b);for(const _0x30fdc8 of _0x3de140)'$graveyard'!=_0x30fdc8['root']['rootName']&&_0x5bc831['unwrap'](_0x30fdc8);});});};_0x8cbc87('insertion','accept'),_0x8cbc87('insertion','discard'),_0x8cbc87('deletion','accept'),_0x8cbc87('deletion','discard'),_0x24d0ae['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x564735=>{const _0x3900b9=_0x564735['map'](_0x34cb44=>_0x34cb44['getContainedElement']()),_0x159401=_0x3900b9[0x0]['findAncestor']('table'),{minRow:_0x146875,maxRow:_0x383dfb}=_0x1324c1['_getCoordsForCells'](_0x3900b9);_0x3fc9d6['removeRows'](_0x159401,{'at':_0x146875,'rows':_0x383dfb-_0x146875+0x1});}),_0x24d0ae['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x17b880=>{const _0x3784ce=_0x17b880['map'](_0x6917b6=>_0x6917b6['getContainedElement']()),_0x3b47cb=_0x3784ce[0x0]['findAncestor']('table'),{minColumn:_0x35e8d6,maxColumn:_0x440bfb}=_0x1324c1['_getCoordsForCells'](_0x3784ce);_0x3fc9d6['removeColumns'](_0x3b47cb,{'at':_0x35e8d6,'columns':_0x440bfb-_0x35e8d6+0x1});});const _0x27cc09=(_0x202882,_0x44bea3)=>{if(!_0x44bea3['subType']||!_0x44bea3['subType']['startsWith']('tablePaste'))return;const _0x163588=_0x44bea3['attributes']['tablePasteChainId'],_0x125f86=_0x24d0ae['getSuggestions']()['filter'](_0x257269=>_0x257269['isInContent']&&_0x257269['attributes']&&_0x257269['attributes']['tablePasteChainId']==_0x163588);_0x125f86['length']&&_0x44bea3['getAllAdjacentSuggestions']()['length']!=_0x125f86['length']&&_0x125f86['reduce']((_0x25912f,_0x18ce2f)=>(_0x25912f['next']=_0x18ce2f,_0x18ce2f['previous']=_0x25912f,_0x18ce2f));};function _0x2dcb54(_0xd8a4f,_0x4d86f9=!0x0){const {id:_0x440f4d,authorId:_0x38de3b}=_0x24d0ae['_splitMarkerName'](_0xd8a4f['markerName']),_0x2b2db8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2bc224=_0x24d0ae['activeMarkers']['includes'](_0xd8a4f['markerName']);return _0x2bc224&&_0x2b2db8['push']('ck-suggestion-marker--active'),{'classes':_0x2b2db8,'attributes':{'data-suggestion':_0x440f4d,'data-author-id':_0x38de3b},'priority':_0x2bc224&&_0x4d86f9?0xbc2:0xbb8};}_0x24d0ae['on']('suggestionLoaded',_0x27cc09,{'priority':'high'}),_0x24d0ae['on']('suggestionUnloaded',_0x27cc09,{'priority':'high'}),_0x2a49dd['model']['document']['registerPostFixer'](()=>{let _0x36d29b=!0x1;const _0x2d3996=Array['from'](_0x2a49dd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1e4192,data:_0x18f99a}of _0x2d3996){const {group:_0x387d08,type:_0x3eaa04,id:_0x49db2c}=_0x24d0ae['_splitMarkerName'](_0x1e4192);if('suggestion'!=_0x387d08||'deletion'!=_0x3eaa04||_0x18f99a['oldRange'])continue;if(!_0x24d0ae['hasSuggestion'](_0x49db2c))continue;const _0x250588=_0x24d0ae['getSuggestion'](_0x49db2c)['getRanges'](),_0x4d3117=_0x2a49dd['plugins']['get']('Users')['me'];for(const _0x204495 of _0x24d0ae['getSuggestions']()){if(!_0x204495['isInContent']||_0x204495['author']!=_0x4d3117)continue;if('formatBlock'!=_0x204495['type']||'tablePasteCell'!=_0x204495['subType'])continue;if(_0x204495['getRanges']()['every'](_0xcd32ed=>_0x250588['some'](_0x591be2=>_0x591be2['containsRange'](_0xcd32ed,!0x0)))){for(const _0x4fc8b8 of _0x204495['getAllAdjacentSuggestions']())_0x4fc8b8['isInContent']&&(_0x4fc8b8['discard'](),_0x36d29b=!0x0);}}}return _0x36d29b;}),_0x2a49dd['model']['document']['registerPostFixer'](_0x344270=>{const _0x1a81b9=_0x2a49dd['commands']['get']('redo');if(!_0x1a81b9||!_0x1a81b9['_createdBatches']['has'](_0x344270['batch']))return!0x1;let _0xbba0b2=!0x1;const _0x307680=_0x2a49dd['plugins']['get']('Users')['me'],_0x10faea=_0x2a49dd['model']['document']['differ']['getChanges'](),_0x16dcaa=Array['from'](_0x2a49dd['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xf5fbcb,data:_0x257f36})=>{const {group:_0x12cd92,subType:_0x5b2e78,authorId:_0xf0f01}=_0x24d0ae['_splitMarkerName'](_0xf5fbcb);return'suggestion'==_0x12cd92&&'tablePaste'==_0x5b2e78&&_0xf0f01==_0x307680['id']&&!_0x257f36['oldRange'];});for(const _0x29f8ca of _0x10faea){if('insert'!=_0x29f8ca['type']||'tableCellSuggestion'!=_0x29f8ca['name']||0x1!=_0x29f8ca['length'])continue;const _0x389a85=_0x344270['createRange'](_0x29f8ca['position'],_0x29f8ca['position']['getShiftedBy'](0x1));if(!_0x16dcaa['find'](({data:_0x38e16a})=>_0x38e16a['newRange']['isEqual'](_0x389a85))){for(const {name:_0x581001,data:_0x257e03}of _0x16dcaa)if(_0x389a85['containsRange'](_0x257e03['newRange'])){_0x344270['updateMarker'](_0x581001,{'range':_0x389a85}),_0xbba0b2=!0x0;break;}}}return _0xbba0b2;}),_0x2a49dd['model']['document']['registerPostFixer'](_0x5620e4=>{let _0x1ecbde=!0x1;const _0x64f116=_0x2a49dd['plugins']['get']('Users')['me'],_0x2b7534=_0x24d0ae['getSuggestions']()['filter'](_0x2ee07e=>_0x2ee07e['isInContent']&&_0x2ee07e['author']==_0x64f116),_0x442829=new Set(),_0x1545f7=new Set();for(const _0x137f4a of _0x2b7534)if('tablePaste'==_0x137f4a['subType'])for(const _0x44506b of _0x137f4a['getMarkers']()){const _0x4d642f=_0x44506b['getRange']()['getContainedElement']();if(_0x4d642f){if(_0x4d642f['is']('element','tableCellSuggestion')&&Be(_0x4d642f)){_0x137f4a['removeMarker'](_0x44506b['name']),_0x442829['add'](_0x4d642f),_0x1ecbde=!0x0;const _0x33800e=_0x4d642f['nextSibling'],_0x51dd72=_0x4d642f['previousSibling'],_0x1fb9b3=_0x33800e&&_0x33800e['is']('element','tableCellSuggestion'),_0x55f6be=_0x51dd72&&_0x51dd72['is']('element','tableCellSuggestion');_0x1fb9b3&&!_0x442829['has'](_0x33800e)&&_0x1545f7['add'](_0x33800e),_0x55f6be&&!_0x442829['has'](_0x51dd72)&&_0x1545f7['add'](_0x51dd72);}else _0x4d642f['is']('element','paragraph')&&_0x4d642f['isEmpty']&&(_0x137f4a['removeMarker'](_0x44506b['name']),_0x1ecbde=!0x0);}}else{if('tablePasteCell'==_0x137f4a['subType']){if(!_0x137f4a['attributes']||!_0x137f4a['attributes']['tablePasteChainId'])continue;const _0x4b0176=_0x137f4a['attributes']['markerAttributes'];if(_0x4b0176&&Object['keys'](_0x4b0176)['length'])continue;const _0x1fcd2d=_0x137f4a['attributes']['tablePasteChainId'];let _0xc46391=!0x0,_0x30d38d=!0x0;for(const _0x3ba629 of _0x2b7534)if(_0x3ba629['subType']&&_0x3ba629['subType']['startsWith']('tablePaste')){if(!_0x3ba629['attributes']['tablePasteChainId']){_0x30d38d=!0x1;break;}if(_0x3ba629['id']!=_0x137f4a['id']&&_0x3ba629['attributes']['tablePasteChainId']==_0x1fcd2d){_0xc46391=!0x1;break;}}_0x30d38d&&_0xc46391&&(_0x137f4a['removeMarkers'](),_0x1ecbde=!0x0);}}for(const _0x2afb85 of _0x442829)_0x5620e4['remove'](_0x2afb85);for(const _0xf5a3a of _0x1545f7)_0x5620e4['unwrap'](_0xf5a3a);return _0x1ecbde;}),_0x2a49dd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x125ab4=>_0x2dcb54(_0x125ab4),'converterPriority':'high'}),_0x2a49dd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2d3b5,_0x150b92)=>_0x150b92['options']['showSuggestionHighlights']?_0x2dcb54(_0x2d3b5,!0x1):null,'converterPriority':'high'});const _0x5b92cf=_0x2a49dd['editing']['view'];this['listenTo'](_0x5b92cf['document'],'clipboardOutput',(_0x22e0e7,_0x5bd4d5)=>{const _0x587b47=[];for(const _0x348a27 of _0x5b92cf['createRangeIn'](_0x5bd4d5['content'])['getItems']())_0x348a27['is']('element','suggestion-td')&&_0x587b47['push'](_0x348a27);_0x5b92cf['change'](_0x141d77=>{for(const _0x3ccab3 of _0x587b47)_0x141d77['move'](_0x141d77['createRangeIn'](_0x3ccab3),_0x141d77['createPositionBefore'](_0x3ccab3)),_0x141d77['remove'](_0x3ccab3);});});}}function Be(_0x2f558b){if(_0x2f558b['isEmpty'])return!0x0;const _0x1d6348=_0x2f558b['getChild'](0x0);return _0x1d6348['is']('element','paragraph')&&_0x1d6348['isEmpty'];}function Oe(_0xe4b3ae,_0x35b1d4={},_0x13be1d){for(const {isAnchor:_0x6ff2ab,cellHeight:_0xd97488,cellWidth:_0x50ce64}of _0x13be1d['createTableWalker'](_0xe4b3ae,{'includeAllSlots':!0x0,..._0x35b1d4}))if(!_0x6ff2ab||0x1!=_0xd97488||0x1!=_0x50ce64)return!0x1;return!0x0;}class Ot extends _0x1a5913{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x348871=this['editor']['plugins']['get']('TrackChangesEditing');_0x348871['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x348871['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x348871['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x348871['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x348871['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x348871['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x154f11,_0x335eb9){const _0x209d42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b27e1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x11e0a4=_0x335eb9['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3877d8=_0x2b27e1['getColumnGroupElement'](_0x11e0a4);let _0x4e465d=_0x3877d8?_0x2b27e1['getTableColumnsWidths'](_0x3877d8):null,_0x57611b=_0x11e0a4['getAttribute']('tableWidth')||null;const _0x42d6fe=_0x335eb9['tableWidth']||_0x57611b,_0xfc0349=_0x335eb9['columnWidths']||_0x4e465d,_0x1d0555=this['editor']['plugins']['get']('Users')['me'];for(const _0x130c7e of _0x209d42['getSuggestions']()){const _0x500eb6=_0x130c7e['getContainedElement']();if('resizeTable'===_0x130c7e['subType']&&_0x500eb6===_0x11e0a4){_0x130c7e['author']!==_0x1d0555&&_0x130c7e['discard']();const _0x3e142a=_0x130c7e['data']['commandParams'];_0x57611b=_0x3e142a[0x0]['tableWidth'],_0x4e465d=_0x3e142a[0x0]['columnWidths'];break;}}_0x154f11({'table':_0x11e0a4,'tableWidth':_0x42d6fe,'columnWidths':_0xfc0349}),_0x209d42['markBlockFormat'](_0x11e0a4,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x57611b,'columnWidths':_0x4e465d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4c1d48){if('formatBlock'!=_0x4c1d48['type']&&'formatInline'!=_0x4c1d48['type'])return;const {data:_0x51f10b}=_0x4c1d48;if(_0x51f10b&&'resizeTable'===_0x51f10b['formatGroupId']){const _0x24770c='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x24770c)};}}}class xt extends _0x1a5913{['afterInit'](){const _0x2ee408=this['editor'];_0x2ee408['plugins']['has']('Template')&&_0x2ee408['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x1a5913{['afterInit'](){const _0x3ef4fb=this['editor'];if(!_0x3ef4fb['commands']['get']('insertTableOfContents'))return;_0x3ef4fb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x81e87f=_0x3ef4fb['plugins']['get']('TrackChangesEditing'),_0x3070f7=_0x3ef4fb['locale'];_0x81e87f['descriptionFactory']['registerElementLabel']('tableOfContents',_0x16e296=>o(_0x3070f7,'ELEMENT_TABLE_OF_CONTENTS',_0x16e296));}}class Rt extends _0x1a5913{['afterInit'](){const _0x3a2a19=this['editor'];if(!_0x3a2a19['plugins']['has']('Title'))return;const _0x394979=_0x3a2a19['plugins']['get']('TrackChangesEditing');_0x394979['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3a2a19['locale'],'ELEMENT_TITLE')),_0x3a2a19['model']['document']['registerPostFixer'](_0x235fdd=>{let _0x5d6784=!0x1;const _0x204a77=Array['from'](_0x3a2a19['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x311c20,data:_0x9f991b}of _0x204a77){const {group:_0xe3018f}=_0x394979['_splitMarkerName'](_0x311c20);if('suggestion'!==_0xe3018f||!_0x9f991b['newRange'])continue;const _0x511e2b=_0x9f991b['newRange'],_0x339c00=_0x511e2b['end']['nodeBefore'];if(!_0x339c00||!_0x339c00['is']('element','title-content'))continue;if(!_0x511e2b['start']['isTouching'](_0x511e2b['end']))continue;const _0x535fc7=_0x3a2a19['model']['schema']['getNearestSelectionRange'](_0x511e2b['end'],'forward');if(_0x535fc7&&_0x535fc7['isCollapsed']){const _0x4f9887=_0x235fdd['createRange'](_0x511e2b['start'],_0x535fc7['start']);_0x4f9887['isEqual'](_0x511e2b)||(_0x235fdd['updateMarker'](_0x311c20,{'range':_0x4f9887}),_0x5d6784=!0x0);}_0x5d6784||(_0x235fdd['removeMarker'](_0x311c20),_0x5d6784=!0x0);}return _0x5d6784;});}}class Tt extends _0x1a5913{['afterInit'](){const _0x24fcaa=this['editor'],_0x55d8ae=_0x24fcaa['plugins']['get']('TrackChangesEditing');_0x24fcaa['plugins']['has']('Uploadcare')&&(_0x55d8ae['enableCommand']('uploadcare'),_0x24fcaa['plugins']['has']('UploadcareImageEdit')&&(_0x55d8ae['enableCommand']('uploadcareImageEdit'),_0x55d8ae['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x55d8ae['descriptionFactory']['registerDescriptionCallback'](_0x112d3f=>{if('attribute'!=_0x112d3f['type'])return;const {data:_0x252ae7}=_0x112d3f;return _0x252ae7&&'uploadcareImageId'==_0x252ae7['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x1a5913{['afterInit'](){const _0x3694fc=this['editor'],_0x113522=_0x3694fc['plugins']['get']('TrackChangesEditing');_0x3694fc['plugins']['has']('UndoEditing')&&(_0x113522['enableCommand']('undo'),_0x113522['enableCommand']('redo'));}}class Ut extends _0x1a5913{static get['requires'](){return[Nt];}['afterInit'](){const _0x25d43b=this['editor'];if(!_0x25d43b['plugins']['has']('TableCaptionEditing'))return;_0x25d43b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x1a5913{['tableProperties'];['tableCellProperties'];constructor(_0x32f6fa){super(_0x32f6fa),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x32f6fa['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 _0x445c97=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xf4e60d of this['tableProperties'])_0x445c97['enableCommand'](_0xf4e60d,(_0x1ccb17,_0x240ec5)=>{const _0x3cb78f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xf4e60d,[_0x3cb78f],this['tableProperties'],'tableProperties',_0x1ccb17,_0x240ec5);});_0x445c97['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x445c97['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x445c97['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x19a207,_0x3bec82)=>this['handleDiscardAction'](this['tableProperties'],_0x19a207,_0x3bec82)),_0x445c97['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3606b8 of this['tableCellProperties'])this['editor']['commands']['get'](_0x3606b8)&&_0x445c97['enableCommand'](_0x3606b8,(_0x13c493,_0x55b47c)=>{const _0x1f4cdf=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3606b8,_0x1f4cdf,this['tableCellProperties'],'tableCellProperties',_0x13c493,_0x55b47c);});_0x445c97['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x445c97['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x445c97['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3e3384,_0x56723e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3e3384,_0x56723e)),_0x445c97['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&(_0x445c97['registerBlockAttribute']('tableCellType'),_0x445c97['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE')));}_0x445c97['descriptionFactory']['registerDescriptionCallback'](_0x430ed4=>this['handleSuggestionDescription'](_0x430ed4)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x193b76,_0x56252a,_0x1ef37c,_0x3f5543,_0xee7c0b,_0x464e34){const _0x5fc8bb=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x464e34['batch'],()=>{for(const _0x264ee0 of _0x56252a){if(this['_getSuggestion'](_0x264ee0,_0x3f5543))_0xee7c0b(_0x464e34);else{const _0x1a7319={};for(const _0x24d9ab of _0x1ef37c){const _0x14166b=_0x264ee0['getAttribute'](_0x24d9ab);void 0x0!==_0x14166b&&(_0x1a7319[_0x24d9ab]=_0x14166b);}_0xee7c0b(_0x464e34),_0x5fc8bb['markBlockFormat'](_0x264ee0,{'commandParams':[_0x1a7319]},[],_0x3f5543);}}});}['handleDiscardAction'](_0x71bf11,_0x191a66,_0x96990e){const _0x10fb4b=_0x191a66[0x0]['start']['nodeAfter'],_0x24067f=_0x96990e['commandParams'][0x0];this['editor']['model']['change'](_0x40e190=>{for(const _0x42c4ba of _0x71bf11)void 0x0!==_0x24067f[_0x42c4ba]?_0x40e190['setAttribute'](_0x42c4ba,_0x24067f[_0x42c4ba],_0x10fb4b):_0x40e190['removeAttribute'](_0x42c4ba,_0x10fb4b);});}['handleSuggestionDescription'](_0x7386c){if(_0x7386c['data'])switch(_0x7386c['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'](_0x3ffaba,_0x681039){const _0x41012b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x19b9f7 of _0x41012b['getSuggestions']({'skipNotAttached':!0x0})){const _0x3ec588=_0x19b9f7['getContainedElement']();if(_0x19b9f7['subType']===_0x681039&&_0x3ec588===_0x3ffaba)return _0x19b9f7;}return null;}['_registerTablePropertiesAttributes'](){const _0x487367=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25f9d9=[...this['tableProperties'],...this['tableCellProperties']];for(const _0xad5043 of _0x25f9d9){const _0x4d1c40=_0xad5043['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x487367['descriptionFactory']['registerAttributeLabel'](_0xad5043,o(this['editor']['locale'],'FORMAT_'+_0x4d1c40));}}}class Ft extends _0x1a5913{['afterInit'](){const _0x2d7746=this['editor'];if(!_0x2d7746['plugins']['has']('LineHeight'))return;const _0x238477=_0x2d7746['plugins']['get']('TrackChangesEditing'),_0x240fca=_0x2d7746['locale'];_0x238477['enableDefaultAttributesIntegration']('lineHeight'),_0x238477['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x240fca,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x1a5913{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x2fa677,_0x2acaad,_0x2ceb56,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5de910){super(_0x5de910),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x559e40,_0x319dc5,_0xbbbb1a,_0x4eb6f0)=>{this['_model']['change'](()=>{for(const _0x5a5ff4 of[..._0x4eb6f0,..._0xbbbb1a])this['_model']['markers']['has'](_0x5a5ff4)&&_0x5de910['editing']['reconvertMarker'](_0x5a5ff4);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5de910['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x5de910['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5de910['config']['get']('trackChanges.trackFormatChanges'),_0x5de910['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5de910['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x5de910,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x7e9084=this['editor'];_0x7e9084['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5eb294,{writer:_0x45fcf6})=>{let _0x596817='suggestion:'+_0x5eb294['getAttribute']('suggestion-type')+':'+_0x5eb294['getAttribute']('id');return _0x5eb294['getAttribute']('marker-count')&&(_0x596817+=':'+_0x5eb294['getAttribute']('marker-count')),_0x45fcf6['createElement']('$marker',{'data-name':_0x596817});}}),_0x7e9084['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x7e9084['model']['document']['registerPostFixer'](_0x215af3=>{let _0x33e9dc=!0x1;const _0xfd43af=Array['from'](_0x7e9084['model']['document']['differ']['getChangedMarkers']()),_0x4a7795=new Set();for(const {name:_0x3c15a3,data:_0x4da74c}of _0xfd43af){const {group:_0x261165,type:_0xc8e4d0,subType:_0x3f7116,id:_0x48a6d4}=this['_splitMarkerName'](_0x3c15a3);if('suggestion'!==_0x261165)continue;const _0x42bd1c=_0x3f7116?'suggestion:'+_0xc8e4d0+':'+_0x3f7116+':'+_0x48a6d4:'suggestion:'+_0xc8e4d0+':'+_0x48a6d4,_0x5dba81=_0x7e9084['model']['markers']['getMarkersGroup'](_0x42bd1c),_0x3252be=_0x7e9084['model']['markers']['get'](_0x3c15a3),_0x1a54f5=this['_suggestions']['get'](_0x48a6d4);if(null!=_0x4da74c['newRange']){'formatInline'==_0xc8e4d0&&(_0x33e9dc=_0x33e9dc||Wt(_0x4da74c['newRange'],_0x3c15a3,_0x215af3,_0x7e9084['model']['schema']));const _0x543496='attribute'==_0xc8e4d0&&this['_isBlockAttribute'](_0x3f7116['split']('|')[0x0]),_0x2f60a1='attribute'==_0xc8e4d0&&this['_isInlineAttribute'](_0x3f7116['split']('|')[0x0]);if(_0x4da74c['newRange']['isCollapsed']||'$graveyard'==_0x4da74c['newRange']['root']['rootName']||'formatBlock'==_0xc8e4d0&&!Qt(_0x4da74c['newRange'])||_0x543496&&!Qt(_0x4da74c['newRange'])||_0x2f60a1&&Xt(_0x4da74c['newRange'])||'deletion'==_0xc8e4d0&&Xt(_0x4da74c['newRange'])||_0x3252be&&Yt(_0x3252be,_0x5dba81))_0x215af3['removeMarker'](_0x3c15a3),_0x33e9dc=!0x0;else{if(!_0x1a54f5||!_0x1a54f5['isInContent'])continue;if(_0x4da74c['newRange']&&_0x4da74c['oldRange']&&_0x4da74c['newRange']['isEqual'](_0x4da74c['oldRange']))continue;_0x4a7795['add'](_0x1a54f5);}}}return _0x4a7795['size']>0x0&&(_0x33e9dc=!!this['_joinWithAdjacentSuggestions'](_0x4a7795)||_0x33e9dc),_0x33e9dc;}),_0x7e9084['model']['document']['registerPostFixer'](_0x80c782=>{let _0x41581c=!0x1;for(const _0x27eb76 of _0x7e9084['model']['document']['differ']['getChanges']())if('insert'==_0x27eb76['type'])for(const _0x2d83e2 of this['_suggestions']['values']()){if(_0x2d83e2['isMultiRange']||!_0x2d83e2['isInContent'])continue;const _0x444510='formatBlock'==_0x2d83e2['type'],_0x807bb6=this['_getAttributeKey'](_0x2d83e2),_0x2218f1=_0x807bb6&&this['_isBlockAttribute'](_0x807bb6);if(!_0x444510&&!_0x2218f1)continue;const _0x2e1f7f=_0x2d83e2['getFirstRange']();if(_0x2e1f7f['start']['parent']!=_0x2e1f7f['end']['parent']&&!_0x2e1f7f['end']['isAtEnd']){const _0x101e62=_0x7e9084['model']['createPositionAt'](_0x2e1f7f['start']['nodeAfter'],'end'),_0xdae3b1=_0x7e9084['model']['createRange'](_0x2e1f7f['start'],_0x101e62);_0x80c782['updateMarker'](_0x2d83e2['getFirstMarker'](),{'range':_0xdae3b1}),_0x41581c=!0x0;}}return _0x41581c;}),_0x7e9084['model']['document']['registerPostFixer'](_0x38b6b6=>this['_processAttributeChanges'](_0x38b6b6)),_0x7e9084['model']['document']['registerPostFixer'](_0x2f22b3=>!_0x2f22b3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2f22b3)),_0x7e9084['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x7e9084['model']['document']['on']('change:data',(_0x282833,_0x4378c3)=>{if(!_0x4378c3['isLocal']||_0x4378c3['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x212250=_0x7e9084['model']['document']['differ']['getChanges']();if(0x0==_0x212250['length'])return;const _0x1ec9a8=[],_0x3a095e=_0x212250['filter'](_0x47b326=>'attribute'==_0x47b326['type']),_0x45ea9b=_0x212250['filter'](_0x4447a4=>'insert'==_0x4447a4['type']&&'$text'!=_0x4447a4['name']);for(const _0x767829 of _0x3a095e)this['_isRegisteredAttribute'](_0x767829['attributeKey'])&&_0x1ec9a8['push']({'key':_0x767829['attributeKey'],'newValue':_0x767829['attributeNewValue'],'oldValue':_0x767829['attributeOldValue'],'range':Zt(_0x767829['range'],_0x7e9084['model'])});for(const _0x4da483 of _0x45ea9b){if('rename'!=_0x4da483['action']&&'refresh'!=_0x4da483['action'])continue;const _0x34c5a6=tn(_0x4da483['position']['nodeAfter'],_0x7e9084['model']),_0x178197=_0x4da483['before'];'rename'==_0x4da483['action']&&_0x1ec9a8['push']({'key':m,'newValue':_0x4da483['name'],'oldValue':_0x178197['name'],'range':_0x34c5a6});for(const [_0x1f1742,_0x2b1253]of _0x178197['attributes']){if(!this['_isRegisteredAttribute'](_0x1f1742))continue;const _0x3d520c=_0x4da483['attributes']['get'](_0x1f1742);_0x2b1253!==_0x3d520c&&_0x1ec9a8['push']({'key':_0x1f1742,'newValue':_0x3d520c,'oldValue':_0x2b1253,'range':_0x34c5a6});}for(const [_0x1525e7,_0x4e234e]of _0x4da483['attributes'])this['_isRegisteredAttribute'](_0x1525e7)&&(_0x178197['attributes']['has'](_0x1525e7)||_0x1ec9a8['push']({'key':_0x1525e7,'newValue':_0x4e234e,'oldValue':null,'range':_0x34c5a6}));}0x0!=_0x1ec9a8['length']&&_0x7e9084['model']['enqueueChange'](_0x4378c3,_0x406774=>{const _0x23ba3f=_0x569ccd();for(const {range:_0x403abc,key:_0x4ec47,oldValue:_0x2c969b,newValue:_0x10ed23}of _0x1ec9a8)this['markAttributeChange'](_0x403abc,_0x4ec47,_0x2c969b,_0x10ed23,{'groupId':_0x23ba3f});this['_reduceExistingSuggestions'](_0x406774,_0x1ec9a8);});},{'priority':'lowest'}),_0x7e9084['model']['markers']['on']('update:suggestion',(_0x5e95f9,_0x4f93e9,_0x134546)=>{if(null==_0x134546){const {id:_0x12c9a1}=this['_splitMarkerName'](_0x4f93e9['name']),_0x253270=this['_suggestions']['get'](_0x12c9a1);_0x253270&&_0x253270['addMarkerName'](_0x4f93e9['name']);}}),_0x7e9084['model']['document']['on']('change:data',()=>{const _0x2546e5=Array['from'](_0x7e9084['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2c15a0=>'suggestion'===this['_splitMarkerName'](_0x2c15a0['name'])['group']);if(0x0===_0x2546e5['length'])return;_0x2546e5['sort']((_0x4aacb2,_0x195fa0)=>{const _0x4541af=_0x4aacb2['data']['oldRange'],_0xe06873=_0x195fa0['data']['oldRange'];return null===_0x4541af&&null===_0xe06873?0x0:null===_0x4541af&&null!==_0xe06873?-0x1:null!==_0x4541af&&null===_0xe06873?0x1:_0x4541af['start']['isBefore'](_0xe06873['start'])?-0x1:0x1;});const _0x12aeeb=new Set(),_0x102aad=new Set();for(const {name:_0x2dea0c,data:_0x3d516c}of _0x2546e5){const {id:_0x292cbd}=this['_splitMarkerName'](_0x2dea0c);if(null===_0x3d516c['oldRange']){const _0x3670a9=this['_handleNewSuggestionMarker'](_0x2dea0c);_0x102aad['add'](_0x3670a9);}else{const _0x36b4bf=this['_suggestions']['get'](_0x292cbd);null!==_0x3d516c['newRange']||_0x36b4bf['isInContent']?(_0x12aeeb['add'](_0x36b4bf['head']),_0x102aad['add'](_0x36b4bf)):this['_removeSuggestion'](_0x36b4bf);}}_0x102aad['size']>0x0&&this['_refreshSuggestionsChain'](_0x102aad);for(const _0x125390 of _0x12aeeb)this['fire']('suggestionChanged',_0x125390);}),_0x7e9084['model']['on']('applyOperation',(_0x7dae5a,_0x9f126a)=>{const _0x312163=_0x9f126a[0x0];if(!this['_suggestions']['size'])return;if(!_0x312163['isDocumentOperation'])return;if(_0x312163['batch']['isUndo']||!_0x312163['batch']['isLocal'])return;let _0x46d290,_0xaa7314;switch(_0x312163['type']){case'insert':_0x46d290=_0x7e9084['model']['createPositionAt'](_0x312163['position']),_0xaa7314=_0x46d290['getShiftedBy'](_0x312163['howMany']);break;case'split':_0x46d290=_0x7e9084['model']['createPositionAt'](_0x312163['splitPosition']),_0xaa7314=_0x7e9084['model']['createPositionAt'](_0x312163['moveTargetPosition']);break;case'move':_0x46d290=_0x7e9084['model']['createPositionAt'](_0x312163['targetPosition']),_0xaa7314=_0x46d290['getShiftedBy'](_0x312163['howMany']);break;default:return;}const _0x1872ce=_0x7e9084['model']['createRange'](_0x46d290,_0xaa7314);_0x7e9084['model']['change'](()=>{for(const {suggestion:_0x2891d2,meta:_0x3b0f55}of this['_findSuggestions'](_0x1872ce)){if(_0x2891d2['isMultiRange'])continue;if('formatInline'==_0x2891d2['type'])continue;const _0x1213f5=this['_getAttributeKey'](_0x2891d2);if(_0x1213f5&&this['_isBlockAttribute'](_0x1213f5)&&'split'!=_0x312163['type'])continue;const _0x5eb112=_0x2891d2['data']&&_0x2891d2['data']['multipleBlocks'];('formatBlock'!=_0x2891d2['type']||'split'==_0x312163['type']&&!_0x5eb112)&&(_0x3b0f55['containsRangeInObject']||'insertion'==_0x2891d2['type']&&_0x3b0f55['isOwn']||_0x2891d2['getFirstRange']()['containsRange'](_0x1872ce)&&this['_breakSuggestionMarker'](_0x2891d2,_0x46d290,_0xaa7314));}});},{'priority':'lowest'}),_0x7e9084['model']['on']('deleteContent',(_0x357eb0,_0x82e328)=>{const _0x253b33=_0x82e328[0x0],_0x5b2aa4=_0x82e328[0x1];if(_0x5b2aa4&&_0x5b2aa4['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x253b33['isCollapsed'])return;const _0x31b1e1=_0x7e9084['model']['schema'],{start:_0x205572,end:_0x2aee68}=_0x253b33['getFirstRange'](),_0x50226f=_0x205572['nodeAfter']&&_0x31b1e1['isLimit'](_0x205572['nodeAfter'])?null:_0x31b1e1['getNearestSelectionRange'](_0x205572,'forward'),_0xa5bc63=_0x2aee68['nodeBefore']&&_0x31b1e1['isLimit'](_0x2aee68['nodeBefore'])?null:_0x31b1e1['getNearestSelectionRange'](_0x2aee68,'backward'),_0x1c11dd=_0x7e9084['model']['createRange'](_0x50226f?_0x50226f['start']:_0x205572,_0xa5bc63?_0xa5bc63['end']:_0x2aee68);_0x7e9084['model']['change'](_0x1c8cb1=>{this['markDeletion'](_0x1c11dd);const _0x212cb4=_0x7e9084['model']['schema']['getNearestSelectionRange'](_0x1c11dd['start']);_0x253b33['is']('documentSelection')?_0x1c8cb1['setSelection'](_0x212cb4):_0x253b33['setTo'](_0x212cb4);}),_0x357eb0['stop']();},{'priority':_0x5b0e58['normal']+0xa}),_0x7e9084['model']['on']('insertContent',(_0x3fc1e7,_0x42c775)=>{const _0x29f9c6=_0x42c775[_0x42c775['length']-0x1];_0x29f9c6&&_0x29f9c6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x7e9084['model']['change'](()=>{let _0x49d989=_0x7e9084['model']['insertContent'](_0x42c775[0x0],_0x42c775[0x1],_0x42c775[0x2],{'forceDefaultExecution':!0x0});if(!_0x49d989)return;_0x3fc1e7['return']=_0x49d989['clone']();const _0x4d5534=_0x49d989['end']['nodeBefore'],_0x4164e5=_0x7e9084['model']['schema'];_0x4d5534&&_0x4164e5['isBlock'](_0x4d5534)&&!_0x4164e5['isObject'](_0x4d5534)&&(_0x49d989=_0x7e9084['model']['createRange'](_0x49d989['start'],_0x7e9084['model']['createPositionAt'](_0x4d5534,'end'))),this['markInsertion'](_0x49d989);}),_0x3fc1e7['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x333e91=new v(_0x7e9084,this['_suggestions']);_0x7e9084['commands']['add']('acceptSuggestion',_0x333e91),this['enableCommand']('acceptSuggestion');const _0x4642fe=new D(_0x7e9084,this['_suggestions']);_0x7e9084['commands']['add']('discardSuggestion',_0x4642fe),this['enableCommand']('discardSuggestion'),_0x7e9084['commands']['add']('acceptAllSuggestions',new B(_0x7e9084,_0x333e91,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x7e9084['commands']['add']('discardAllSuggestions',new B(_0x7e9084,_0x4642fe,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x7e9084['commands']['add']('acceptSelectedSuggestions',new O(_0x7e9084,_0x333e91,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x7e9084['commands']['add']('discardSelectedSuggestions',new O(_0x7e9084,_0x4642fe,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x42b5e9=_0x7e9084['plugins']['get']('CommentsRepository');this['listenTo'](_0x42b5e9,'addComment',(_0x2f95b6,{threadId:_0x13ab24})=>{const _0x1a2e43=this['_suggestions']['get'](_0x13ab24);_0x1a2e43&&_0x1a2e43['commentThread']&&0x1===_0x1a2e43['commentThread']['length']&&this['_updateSuggestionData'](_0x13ab24,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x42b5e9,'removeComment',(_0x87e0b7,{threadId:_0xc54fc7})=>{const _0x50fa50=this['_suggestions']['get'](_0xc54fc7);_0x50fa50&&_0x50fa50['commentThread']&&!_0x50fa50['commentThread']['length']&&this['_updateSuggestionData'](_0xc54fc7,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x57e712){const _0x51f826=_0x1788b0([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]),_0x392116=0x3d8d0df,_0x3a892f=0x3dfae47^_0x392116,_0x25452a=window[_0x1788b0([0x44,0x61,0x74,0x65])][_0x1788b0([0x6e,0x6f,0x77])](),_0x2faf7e=_0x57e712[_0x1788b0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x53deb5=new window[(_0x1788b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16cd23=>{_0x2faf7e[_0x1788b0([0x6f,0x6e,0x63,0x65])](_0x1788b0([0x72,0x65,0x61,0x64,0x79]),_0x16cd23);}),_0xbf57b6={[_0x1788b0([0x6b,0x74,0x79])]:_0x1788b0([0x45,0x43]),[_0x1788b0([0x75,0x73,0x65])]:_0x1788b0([0x73,0x69,0x67]),[_0x1788b0([0x63,0x72,0x76])]:_0x1788b0([0x50,0x2d,0x32,0x35,0x36]),[_0x1788b0([0x78])]:_0x1788b0([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]),[_0x1788b0([0x79])]:_0x1788b0([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]),[_0x1788b0([0x61,0x6c,0x67])]:_0x1788b0([0x45,0x53,0x32,0x35,0x36])},_0x6ad87=_0x2faf7e[_0x1788b0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1788b0([0x67,0x65,0x74])](_0x1788b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x29c2b2(){let _0x41e5bd,_0x5b4651=null,_0x46b33a=null;try{if(_0x6ad87==_0x1788b0([0x47,0x50,0x4c]))return _0x1788b0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x41e5bd=_0xf1efe4(),!_0x41e5bd)return _0x1788b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x41e5bd[_0x1788b0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x46b33a=_0xc2a6df(_0x41e5bd[_0x1788b0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x41e5bd[_0x1788b0([0x6a,0x74,0x69])])),await _0x281333()?_0x4d37ef()?_0x208bc3()?_0x1788b0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4425e1()?(_0x41e5bd[_0x1788b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1788b0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b4651=_0x3f0578(_0x1788b0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x53a945()):_0x1788b0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1788b0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1788b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1788b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x208bc3(){const _0x1f32f6=[_0x1788b0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1788b0([0x74,0x72,0x69,0x61,0x6c])][_0x1788b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41e5bd[_0x1788b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x25452a/0x3e8:0xe10*_0x3a892f;return _0x41e5bd[_0x1788b0([0x65,0x78,0x70])]<_0x1f32f6;}function _0x4d37ef(){const _0x4eaed6=_0x41e5bd[_0x1788b0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4eaed6)return!0x1;if(_0x4eaed6[_0x1788b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1788b0([0x2a])))return!0x0;if(_0x4eaed6[_0x1788b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1788b0([0x54,0x43])))return!0x0;if(_0x4eaed6[_0x1788b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1788b0([0x52,0x54,0x43]))){if(_0x5ee3fe())return!0x0;if(_0x417131()||_0x9893ae())return!0x0;}return!0x1;}function _0x4425e1(){const _0x3d1a29=_0x41e5bd[_0x1788b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3d1a29||0x0==_0x3d1a29[_0x1788b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x289094}=new URL(window[_0x1788b0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3d1a29[_0x1788b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x289094))return!0x0;const _0x1694e0=_0x289094[_0x1788b0([0x73,0x70,0x6c,0x69,0x74])](_0x1788b0([0x2e]));return _0x3d1a29[_0x1788b0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b058c=>_0x2b058c[_0x1788b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1788b0([0x2a])))[_0x1788b0([0x6d,0x61,0x70])](_0x1781dd=>_0x1781dd[_0x1788b0([0x73,0x70,0x6c,0x69,0x74])](_0x1788b0([0x2e])))[_0x1788b0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48535f=>_0x48535f[_0x1788b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1694e0[_0x1788b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1788b0([0x6d,0x61,0x70])](_0x396ff1=>Array(_0x1694e0[_0x1788b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x396ff1[_0x1788b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1788b0([0x66,0x69,0x6c,0x6c])](_0x396ff1[0x0]===_0x1788b0([0x2a])?_0x1788b0([0x2a]):'')[_0x1788b0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x396ff1))[_0x1788b0([0x73,0x6f,0x6d,0x65])](_0x5c0d65=>_0x1694e0[_0x1788b0([0x65,0x76,0x65,0x72,0x79])]((_0xc03b48,_0x20afaf)=>_0x5c0d65[_0x20afaf]===_0xc03b48||_0x5c0d65[_0x20afaf]===_0x1788b0([0x2a])));}function _0x53a945(){return _0x5b4651&&_0x46b33a?new window[(_0x1788b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4690dd,_0x41d3b6)=>{_0x5b4651[_0x1788b0([0x74,0x68,0x65,0x6e])](_0x4690dd,_0x41d3b6),_0x46b33a[_0x1788b0([0x74,0x68,0x65,0x6e])](_0xe2c698=>{_0xe2c698!=_0x1788b0([0x56,0x61,0x6c,0x69,0x64])&&_0x4690dd(_0xe2c698);},_0x41d3b6);}):_0x5b4651||_0x46b33a||_0x1788b0([0x56,0x61,0x6c,0x69,0x64]);}}function _0xc2a6df(_0x153a81,_0x456e12){return new window[(_0x1788b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x567144=>{if(_0x4415fb())return _0x567144(_0x1788b0([0x56,0x61,0x6c,0x69,0x64]));_0x5c4262(),_0x2faf7e[_0x1788b0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1788b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2cbcf8=!0x1;const _0x39b4f1=_0x569ccd();function _0x4f8ee5(_0x176da6){return!!_0x176da6&&(typeof _0x176da6===_0x1788b0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x176da6===_0x1788b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x176da6[_0x1788b0([0x74,0x68,0x65,0x6e])]===_0x1788b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x176da6[_0x1788b0([0x63,0x61,0x74,0x63,0x68])]===_0x1788b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f1a98(_0x2889a0){_0x1bb954(_0x2889a0)[_0x1788b0([0x74,0x68,0x65,0x6e])](_0x16e69a=>{if(!_0x16e69a||_0x16e69a[_0x1788b0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1788b0([0x6f,0x6b]))return _0x1788b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2b3242(_0x574ccd(_0x39b4f1+_0x456e12))!=_0x16e69a[_0x1788b0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1788b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1788b0([0x56,0x61,0x6c,0x69,0x64]);})[_0x1788b0([0x74,0x68,0x65,0x6e])](_0x7b53b5=>(_0x4f9d89(),_0x7b53b5),()=>{const _0x57a653=_0x537d35();return null==_0x57a653?(_0x4f9d89(),_0x1788b0([0x56,0x61,0x6c,0x69,0x64])):_0x1788b0(_0x25452a-_0x57a653>(0x27d454df^_0x392116)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1788b0([0x74,0x68,0x65,0x6e])](_0x567144)[_0x1788b0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x567144(_0x1788b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2a7ebd=0x3ee3e5f^_0x392116;function _0x4f9d89(){const _0x25bc52=_0x1788b0([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b3242(_0x574ccd(_0x153a81)),_0x6e6ef2=_0x33a79(_0x2b3242(window[_0x1788b0([0x4d,0x61,0x74,0x68])][_0x1788b0([0x63,0x65,0x69,0x6c])](_0x25452a/_0x2a7ebd)));window[_0x1788b0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1788b0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25bc52,_0x6e6ef2);}function _0x537d35(){const _0x3d11f6=_0x1788b0([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b3242(_0x574ccd(_0x153a81)),_0x479930=window[_0x1788b0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1788b0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d11f6);return _0x479930?window[_0x1788b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33a79(_0x479930),0x10)*_0x2a7ebd:null;}function _0x1bb954(_0x21140b){return new window[(_0x1788b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x405fdf,_0x5c8e8e)=>{_0x21140b[_0x1788b0([0x74,0x68,0x65,0x6e])](_0x405fdf,_0x5c8e8e),window[_0x1788b0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5c8e8e,0x3d9041f^_0x392116);});}}_0x2faf7e[_0x1788b0([0x6f,0x6e])](_0x1788b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f0bc5,_0x3fd62d)=>{if(_0x3fd62d[0x0]!=_0x153a81)return _0x567144(_0x1788b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3fd62d[0x1]={..._0x3fd62d[0x1],[_0x1788b0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x39b4f1};},{[_0x1788b0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1788b0([0x68,0x69,0x67,0x68])}),_0x2faf7e[_0x1788b0([0x6f,0x6e])](_0x1788b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x6eeb14=>{_0x4f8ee5(_0x6eeb14[_0x1788b0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2cbcf8=!0x0,_0x3f1a98(_0x6eeb14[_0x1788b0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1788b0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1788b0([0x6c,0x6f,0x77])}),_0x53deb5[_0x1788b0([0x74,0x68,0x65,0x6e])](()=>{_0x2cbcf8||_0x567144(_0x1788b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4415fb(){return _0x2faf7e[_0x1788b0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1788b0([0x76,0x69,0x65,0x77])][_0x1788b0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1788b0([0x61,0x75,0x74,0x6f]);}function _0x5c4262(){_0x2faf7e[_0x1788b0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1788b0([0x76,0x69,0x65,0x77])][_0x1788b0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1788b0([0x61,0x75,0x74,0x6f]);}}function _0x3f0578(_0x29e6fc){const _0x2cbe18=[new window[(_0x1788b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5abf43=>setTimeout(_0x5abf43,0x3d1ee13^_0x392116)),_0x53deb5[_0x1788b0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1788b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x129ed1=>{let _0x20e79c=0x0;_0x2faf7e[_0x1788b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x1788b0([0x6f,0x6e])](_0x1788b0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x297838,_0x101aa2)=>{_0x101aa2[0x0][_0x1788b0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x20e79c++,_0x20e79c==(0x3d8d537^_0x392116)&&(_0x129ed1(),_0x297838[_0x1788b0([0x6f,0x66,0x66])]());});}))];return window[_0x1788b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1788b0([0x72,0x61,0x63,0x65])](_0x2cbe18)[_0x1788b0([0x74,0x68,0x65,0x6e])](()=>_0x29e6fc);}async function _0x5d95dc(){await _0x53deb5,_0x2faf7e[_0x1788b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x1788b0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2889ab,_0x2faf7e[_0x1788b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x1788b0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2889ab,_0x2faf7e[_0x1788b0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1788b0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5ee3fe(){return _0xedef19(_0x1788b0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xa4541a(_0x1788b0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1788b0([0x73,0x74,0x61,0x74,0x65])]==_0x1788b0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x417131(){return _0xedef19(_0x1788b0([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 _0x9893ae(){return _0xedef19(_0x1788b0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4f4a1c(_0x1a983a){const _0x1e784d=_0x12d389();_0x2faf7e[_0x1e784d]=_0x1788b0([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1a983a,_0x1a983a!=_0x1788b0([0x56,0x61,0x6c,0x69,0x64])&&_0x5d95dc();}function _0x12d389(){const _0x30c118=window[_0x1788b0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1788b0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1788b0([0x6e,0x6f,0x77])]())[_0x1788b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1788b0([0x2e]),'');let _0x5c6ce0=_0x1788b0([0x52]);for(let _0x26e600=0x0;_0x26e600<_0x30c118[_0x1788b0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26e600+=0x2){let _0x847129=window[_0x1788b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30c118[_0x1788b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26e600,_0x26e600+0x2));_0x847129>=_0x51f826[_0x1788b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x847129-=_0x51f826[_0x1788b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5c6ce0+=_0x51f826[_0x847129];}return _0x5c6ce0;}function _0xf1efe4(){const _0x518418=_0x6ad87[_0x1788b0([0x73,0x70,0x6c,0x69,0x74])](_0x1788b0([0x2e]));if(0x3!=_0x518418[_0x1788b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x364636(_0x518418[0x1]);function _0x364636(_0x4418d0){const _0x36baa9=_0x20903a(_0x4418d0);return _0x36baa9&&_0x2585f2()?_0x36baa9:null;function _0x2585f2(){const _0x375ff3=_0x36baa9[_0x1788b0([0x6a,0x74,0x69])],_0x20e824=window[_0x1788b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x375ff3[_0x1788b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x375ff3[_0x1788b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4de891={..._0x36baa9,[_0x1788b0([0x6a,0x74,0x69])]:_0x375ff3[_0x1788b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x375ff3[_0x1788b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4de891[_0x1788b0([0x76,0x63])],_0x574ccd(_0x4de891)==_0x20e824;}}}async function _0x281333(){let _0x4103bd=!0x0;try{const _0x3d6b8c=_0x6ad87[_0x1788b0([0x73,0x70,0x6c,0x69,0x74])](_0x1788b0([0x2e])),[_0xe24da8,_0x4bca47,_0x209e92]=_0x3d6b8c;return _0x50be44(_0xe24da8),await _0x3bc29c(_0xe24da8,_0x4bca47,_0x209e92),_0x4103bd;}catch{return!0x1;}function _0x50be44(_0x15b18d){const _0x27899f=_0x20903a(_0x15b18d);_0x27899f&&_0x27899f[_0x1788b0([0x61,0x6c,0x67])]==_0x1788b0([0x45,0x53,0x32,0x35,0x36])||(_0x4103bd=!0x1);}async function _0x3bc29c(_0x5593fc,_0x312930,_0x159242){const _0x4cd7af=window[_0x1788b0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1788b0([0x66,0x72,0x6f,0x6d])](_0xf3cc39(_0x159242),_0x15bff1=>_0x15bff1[_0x1788b0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4b4138=new window[(_0x1788b0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1788b0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5593fc+_0x1788b0([0x2e])+_0x312930),_0x369d4f=window[_0x1788b0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1788b0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x369d4f)return;const _0x465f10=await _0x369d4f[_0x1788b0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1788b0([0x6a,0x77,0x6b]),_0xbf57b6,{[_0x1788b0([0x6e,0x61,0x6d,0x65])]:_0x1788b0([0x45,0x43,0x44,0x53,0x41]),[_0x1788b0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1788b0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1788b0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x369d4f[_0x1788b0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1788b0([0x6e,0x61,0x6d,0x65])]:_0x1788b0([0x45,0x43,0x44,0x53,0x41]),[_0x1788b0([0x68,0x61,0x73,0x68])]:{[_0x1788b0([0x6e,0x61,0x6d,0x65])]:_0x1788b0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x465f10,_0x4cd7af,_0x4b4138)||(_0x4103bd=!0x1);}}function _0x20903a(_0x3ba54c){return _0x3ba54c[_0x1788b0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1788b0([0x65,0x79]))?JSON[_0x1788b0([0x70,0x61,0x72,0x73,0x65])](_0xf3cc39(_0x3ba54c)):null;}function _0xf3cc39(_0x101038){return window[_0x1788b0([0x61,0x74,0x6f,0x62])](_0x101038[_0x1788b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1788b0([0x2b]))[_0x1788b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1788b0([0x2f])));}function _0x574ccd(_0x114e89){let _0x5e2b6c=0x1505;function _0x544453(_0x169d8a){for(let _0x13c889=0x0;_0x13c889<_0x169d8a[_0x1788b0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13c889++){const _0x54ae82=_0x169d8a[_0x1788b0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x13c889);_0x5e2b6c=(_0x5e2b6c<<0x5)+_0x5e2b6c+_0x54ae82,_0x5e2b6c&=_0x5e2b6c;}}function _0x43981a(_0x4e90f8){Array[_0x1788b0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4e90f8)?_0x4e90f8[_0x1788b0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x43981a):_0x4e90f8&&typeof _0x4e90f8==_0x1788b0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1788b0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4e90f8)[_0x1788b0([0x73,0x6f,0x72,0x74])]()[_0x1788b0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x284999,_0x4b5f80])=>{_0x544453(_0x284999),_0x43981a(_0x4b5f80);}):_0x544453(window[_0x1788b0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4e90f8));}return _0x43981a(_0x114e89),_0x5e2b6c>>>0x0;}function _0x2b3242(_0xc62ad6){return _0xc62ad6[_0x1788b0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1788b0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1788b0([0x30]));}function _0x33a79(_0x4e7f3e){return _0x4e7f3e[_0x1788b0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1788b0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1788b0([0x6a,0x6f,0x69,0x6e])]('');}function _0xedef19(_0x153c85){return _0x2faf7e[_0x1788b0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1788b0([0x68,0x61,0x73])](_0x153c85);}function _0xa4541a(_0x2a5fe9){return _0x2faf7e[_0x1788b0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1788b0([0x67,0x65,0x74])](_0x2a5fe9);}function _0x2889ab(){}function _0x1788b0(_0x565515){return _0x565515['map'](_0x1dad42=>String['fromCharCode'](_0x1dad42))['join']('');}_0x4f4a1c(await _0x29c2b2());}(this);}set['adapter'](_0xd88863){if(this['_adapter'])throw new _0x39abb4('track-changes-adapter-already-set',this);this['_adapter']=_0xd88863;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5d2adf=!0x1,toJSON:_0x588e0f=!0x1}={}){const _0x43f617=[];for(const _0x5298af of this['_suggestions']['values']())_0x5d2adf&&!_0x5298af['isInContent']||_0x43f617['push'](_0x5298af);return _0x588e0f?_0x43f617['map'](_0x2cc016=>_0x2cc016['toJSON']()):_0x43f617;}['getSuggestion'](_0x1520b7){const _0x3f1abc=this['_suggestions']['get'](_0x1520b7);if(!_0x3f1abc)throw new _0x39abb4('track-changes-suggestion-not-found',this);return _0x3f1abc;}['hasSuggestion'](_0xb08798){return this['_suggestions']['has'](_0xb08798);}['addSuggestionData'](_0x4c93b0){const {authorId:_0x763a1b,id:_0x55de99,originalSuggestionId:_0x4a6738,attributes:_0x1061a3}=_0x4c93b0,[_0x1e653a,_0x58a70f]=_0x4c93b0['type']['split'](':'),_0x34e193=this['_suggestions']['get'](_0x55de99)||this['_createSuggestion'](_0x1e653a,_0x58a70f,_0x55de99,_0x763a1b,_0x1061a3,_0x4a6738);if(this['_addThreadToSuggestion'](_0x34e193),this['_checkSuggestionCorrectness'](_0x34e193,_0x1e653a,_0x58a70f||null,_0x763a1b),_0x34e193['createdAt']=_0x4c93b0['createdAt'],_0x34e193['_isDataLoaded']=!0x0,_0x1061a3&&_0x1061a3['@external']){const _0x2c645c=_0x1061a3['@external'],_0x3f7243=this['_getExternalAuthor'](_0x2c645c['authorName']);_0x34e193['authoredAt']=_0x2c645c['createdAt'],_0x34e193['author']=_0x3f7243,_0x34e193['isExternal']=!0x0;}else _0x34e193['authoredAt']=_0x4c93b0['createdAt'];switch(_0x4c93b0['data']&&(_0x34e193['data']=_0x4c93b0['data']),_0x4c93b0['attributes']&&(_0x34e193['attributes']=_0x4c93b0['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x34e193['_saved']=!0x0),this['_suggestionState']['get'](_0x34e193)){case'notReady':this['_suggestionState']['set'](_0x34e193,'dataReady');break;case'markerReady':_0x34e193['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x34e193])),this['_refreshSuggestionsChain'](new Set([_0x34e193])),this['_suggestionState']['set'](_0x34e193,'ready'),this['fire']('suggestionLoaded',_0x34e193)):this['_suggestionState']['set'](_0x34e193,'removed');}return _0x34e193;}['acceptSuggestion'](_0x42e672){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x767ba2 of _0x42e672['getAllAdjacentSuggestions']())_0x767ba2['accept']();});});}['discardSuggestion'](_0x44c558){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xd53fd3 of _0x44c558['getAllAdjacentSuggestions']())_0xd53fd3['discard']();});});}['enableCommand'](_0x476c7c,_0x54d484){const _0xa92237=this['editor']['commands']['get'](_0x476c7c);if(!_0xa92237)throw new _0x39abb4('track-changes-command-not-found',this,{'commandName':_0x476c7c});if(this['_enabledCommands']['has'](_0xa92237))throw new _0x39abb4('track-changes-enable-command-twice',this,{'commandName':_0x476c7c});this['_enabledCommands']['add'](_0xa92237),_0x54d484&&_0xa92237['on']('execute',(_0x3d9121,_0x585d7e)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x585d7e['length']>0x0&&_0x585d7e[_0x585d7e['length']-0x1]&&_0x585d7e[_0x585d7e['length']-0x1]['forceDefaultExecution']?_0x585d7e['pop']():(_0x3d9121['return']=_0x54d484((..._0x21d40c)=>_0xa92237['execute'](..._0x21d40c,{'forceDefaultExecution':!0x0}),..._0x585d7e),_0x3d9121['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x524b95){let _0x3af532,_0xc4bb17;const _0x77092=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3af532=_0x524b95();}catch(_0x37e2c9){_0xc4bb17=_0x37e2c9;}return _0x77092||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xc4bb17&&_0x39abb4['rethrowUnexpectedError'](_0xc4bb17,this),_0x3af532;}['markInsertion'](_0x26516a,_0x12d747=null,_0x57eb8a={}){if(_0x26516a['isCollapsed'])return null;const _0x9e33c0=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x57eb8a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x36d275,meta:_0x3f0357}of this['_findSuggestions'](_0x26516a,'insertion'))if(_0x3f0357['isOwn']){if(!_0x3f0357['isNextTo']){if(_0x3f0357['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x36d275,_0x57eb8a))continue;return _0x36d275;}if(sn(_0x36d275,_0x57eb8a))return _0x36d275;this['_breakSuggestionMarker'](_0x36d275,_0x26516a['start'],_0x26516a['end']);break;}if(_0x12d747==_0x36d275['subType']&&sn(_0x36d275,_0x57eb8a)){const _0x9ce812=_0x36d275['getFirstRange']();return _0x9ce812['start']['isEqual'](_0x26516a['end'])?this['_setSuggestionRange'](_0x36d275,this['_model']['createRange'](_0x26516a['start'],_0x9ce812['end'])):this['_setSuggestionRange'](_0x36d275,this['_model']['createRange'](_0x9ce812['start'],_0x26516a['end'])),_0x36d275;}}const _0x4c1a19=_0x569ccd(),_0x37a88e=_0x9e33c0['id'],_0x40207a=_0x12d747?'insertion:'+_0x12d747:'insertion',_0xb7ebe1=this['_setSuggestionData']({'id':_0x4c1a19,'type':_0x40207a,'createdAt':new Date(),'authorId':_0x37a88e,'attributes':_0x57eb8a});return this['_addSuggestionMarker'](_0x40207a,_0x4c1a19,_0x37a88e,_0x26516a),_0xb7ebe1;}['markMultiRangeInsertion'](_0xcaaef5,_0x239482='multi',_0x595a72={}){const _0x59d25c=this['editor']['plugins']['get']('Users')['me'],_0x4db682=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x239482,'join');this['_trackingSessionId']&&(_0x595a72['trackingSessionId']=this['_trackingSessionId']);for(const _0x927160 of this['getSuggestions']())if(_0x927160['author']['id']==_0x59d25c['id']&&'insertion'==_0x927160['type']&&_0x927160['subType']==_0x239482&&sn(_0x927160,_0x595a72)&&(_0x4db682(_0x927160['getRanges'](),_0xcaaef5)||_0x4db682(_0xcaaef5,_0x927160['getRanges']()))){for(const _0x5cfb58 of _0xcaaef5)_0x927160['addRange'](_0x5cfb58);return _0x927160;}for(const {suggestion:_0x40afd2,meta:_0x41821b}of this['_findSuggestions'](_0xcaaef5,'insertion')){if(!_0x41821b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x41821b['containsRangeInObject'])continue;if(!sn(_0x40afd2,_0x595a72))continue;let _0x31bfbb=!0x0;for(const _0x5b3bb8 of _0x40afd2['getRanges']())for(const _0x35cb42 of _0xcaaef5)if(!_0x5b3bb8['containsRange'](_0x35cb42)){_0x31bfbb=!0x1;break;}if(_0x31bfbb)return _0x40afd2;}const _0x12f53d=_0x569ccd(),_0x24963e=_0x59d25c['id'],_0x5c2e16='insertion:'+_0x239482,_0xa86c72=this['_setSuggestionData']({'id':_0x12f53d,'type':_0x5c2e16,'createdAt':new Date(),'authorId':_0x24963e,'attributes':_0x595a72});for(const _0x1dbf59 of _0xcaaef5)this['_addSuggestionMarker'](_0x5c2e16,_0x12f53d,_0x24963e,_0x1dbf59,x['getMultiRangeId']());return _0xa86c72;}['markInlineFormat'](_0x5758f6,_0x549ba9,_0x8c1494=null,_0x5de83c={}){if(_0x8c1494=_0x8c1494||Ht(_0x549ba9),_0x5758f6['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5de83c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x20ac34=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x8c1494,'accept');return this['forceDefaultExecution'](()=>_0x20ac34([_0x5758f6],_0x549ba9,_0x5de83c)),null;}const _0x221374=this['editor']['plugins']['get']('Users')['me'],_0x4a3f07=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4aa257,meta:_0x4ac07b}of this['_findSuggestions'](_0x5758f6,'insertion'))_0x4ac07b['isOwn']&&!_0x4ac07b['isInsideObject']&&_0x4a3f07['push'](..._0x4aa257['getRanges']());}const _0x3f532f=function(_0x7466d4,_0x3d315c){const _0x269df4=[];for(const _0x2448d6 of _0x3d315c){const _0x57c43b=_0x7466d4['getIntersection'](_0x2448d6);_0x57c43b&&_0x269df4['push'](_0x57c43b);}return _0x269df4;}(_0x5758f6,_0x4a3f07),_0x25dab8=function(_0x1d71a9,_0x3278ed){const _0x3b9762=[_0x1d71a9];for(const _0x210478 of _0x3278ed){let _0x7059af=0x0;for(;_0x7059af<_0x3b9762['length'];){const _0x1b70cc=_0x3b9762[_0x7059af]['getDifference'](_0x210478);_0x3b9762['splice'](_0x7059af,0x1,..._0x1b70cc),_0x7059af+=_0x1b70cc['length'];}}return _0x3b9762;}(_0x5758f6,_0x4a3f07);_0x3f532f['length']&&this['_model']['change'](()=>{for(const _0x58a58c of _0x3f532f){const _0x4b8544=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x8c1494,'accept');this['forceDefaultExecution'](()=>_0x4b8544([_0x58a58c],_0x549ba9,_0x5de83c));}});for(const _0x1acb44 of _0x25dab8){let _0xe7fd9a=null,_0xfb9eaf=_0x1acb44['start'],_0x3a42b4=_0x1acb44['end'];for(const {suggestion:_0x1554e3,meta:_0x54e01d}of this['_findSuggestions'](_0x1acb44,'formatInline')){if(!_0x54e01d['isOwn'])continue;if(_0x1554e3['subType']!=_0x8c1494)continue;if(!sn(_0x1554e3,_0x5de83c))continue;const _0x570b67=_0x1554e3['getFirstRange']();if(_0x570b67['containsRange'](_0x1acb44,!0x0))return null;_0xfb9eaf=_0xfb9eaf['isBefore'](_0x570b67['start'])?_0xfb9eaf:_0x570b67['start'],_0x3a42b4=_0x3a42b4['isAfter'](_0x570b67['end'])?_0x3a42b4:_0x570b67['end'],_0xe7fd9a?_0x570b67['start']['isBefore'](_0xe7fd9a['getFirstRange']()['start'])?(_0xe7fd9a['removeMarkers'](),_0xe7fd9a=_0x1554e3):_0x1554e3['removeMarkers']():_0xe7fd9a=_0x1554e3;}const _0x3f1d95=this['_model']['createRange'](_0xfb9eaf,_0x3a42b4);if(_0xe7fd9a)this['_setSuggestionRange'](_0xe7fd9a,_0x3f1d95);else{const _0x890215=_0x569ccd(),_0x3a27fe=_0x221374['id'];this['_setSuggestionData']({'id':_0x890215,'type':'formatInline:'+_0x8c1494,'data':_0x549ba9,'createdAt':new Date(),'authorId':_0x3a27fe,'attributes':_0x5de83c}),this['_addSuggestionMarker']('formatInline:'+_0x8c1494,_0x890215,_0x3a27fe,_0x3f1d95);}}return null;}['markBlockFormat'](_0x35d1d1,_0x44c894,_0x30586d=[],_0x444765=null,_0x451cc5={}){_0x44c894['formatGroupId']||(_0x44c894['formatGroupId']=_0x44c894['commandName']),_0x44c894['multipleBlocks']=_0x35d1d1['is']('range'),_0x444765=_0x444765||Ht(_0x44c894);const _0x54b387=_0x30586d['map'](_0xc3e21f=>tn(_0xc3e21f,this['_model'])),_0x42e6dc=_0x35d1d1['is']('range')?_0x35d1d1:tn(_0x35d1d1,this['_model']);if(this['_trackingSessionId']&&(_0x451cc5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x12397d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x444765,'accept');return this['forceDefaultExecution'](()=>_0x12397d([_0x42e6dc],_0x44c894,_0x451cc5)),null;}_0x54b387['push'](_0x42e6dc);let _0x524e1b=!0x0;for(const _0x933e7f of _0x54b387)if(!this['_rangeIsInLocalUserInsertion'](_0x933e7f)){_0x524e1b=!0x1;break;}if(_0x524e1b&&'always'!==this['_trackFormatChanges']){const _0x4bbd5f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x444765,'accept');return this['forceDefaultExecution'](()=>_0x4bbd5f([_0x42e6dc],_0x44c894,_0x451cc5)),null;}let _0x7fc2ab=null,_0x25eb92=_0x42e6dc['start'],_0x2ebdee=_0x42e6dc['end'];for(const {suggestion:_0xbb3851,meta:_0x5507e3}of this['_findSuggestions'](_0x42e6dc,'formatBlock')){if(!_0x5507e3['isOwn'])continue;if(_0x5507e3['isNextTo']||_0x5507e3['containsRangeInObject']||_0x5507e3['isInsideObject'])continue;if(_0xbb3851['data']['formatGroupId']!=_0x44c894['formatGroupId'])continue;if(!sn(_0xbb3851,_0x451cc5))continue;const _0x4f1588=_0xbb3851['getFirstRange']();if(_0xbb3851['subType']==_0x444765){if(_0x4f1588['containsRange'](_0x42e6dc,!0x0))return null;_0x25eb92=_0x25eb92['isBefore'](_0x4f1588['start'])?_0x25eb92:_0x4f1588['start'],_0x2ebdee=_0x2ebdee['isAfter'](_0x4f1588['end'])?_0x2ebdee:_0x4f1588['end'],_0x7fc2ab?_0x4f1588['start']['isBefore'](_0x7fc2ab['getFirstRange']()['start'])?(_0x7fc2ab['removeMarkers'](),_0x7fc2ab=_0xbb3851):_0xbb3851['removeMarkers']():_0x7fc2ab=_0xbb3851;}else{const _0x3b5a0b=_0x42e6dc['getIntersection'](_0x4f1588);this['_cutOutSuggestionMarker'](_0xbb3851,_0x3b5a0b);}}const _0x3c68f0=this['editor']['plugins']['get']('Users')['me'],_0x4fb1d6=_0x569ccd(),_0x4deeae=_0x3c68f0['id'];if(_0x7fc2ab)return this['_setSuggestionRange'](_0x7fc2ab,this['_model']['createRange'](_0x25eb92,_0x2ebdee)),_0x7fc2ab;{const _0x1cf5cc=this['_setSuggestionData']({'id':_0x4fb1d6,'type':'formatBlock:'+_0x444765,'data':_0x44c894,'createdAt':new Date(),'authorId':_0x4deeae,'attributes':_0x451cc5});return this['_addSuggestionMarker']('formatBlock:'+_0x444765,_0x4fb1d6,_0x4deeae,this['_model']['createRange'](_0x25eb92,_0x2ebdee)),_0x1cf5cc;}}['markMultiRangeBlockFormat'](_0x3ba225,_0x463a91,_0x4f5d36=[],_0x1cc506=null,_0x3cea6c={}){_0x463a91['formatGroupId']||(_0x463a91['formatGroupId']=_0x463a91['commandName']);const _0x1071ce=_0x3ba225[0x0];_0x463a91['multipleBlocks']=_0x1071ce['is']('range'),_0x1cc506=_0x1cc506||Ht(_0x463a91);const _0x3b929b=_0x4f5d36['map'](_0x1ac9f6=>tn(_0x1ac9f6,this['_model'])),_0x106c07=_0x1071ce['is']('range')?_0x3ba225:_0x3ba225['map'](_0x2952cf=>tn(_0x2952cf,this['_model']));if(this['_trackingSessionId']&&(_0x3cea6c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2235f0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1cc506,'accept');return this['forceDefaultExecution'](()=>_0x2235f0(_0x106c07,_0x463a91,_0x3cea6c)),null;}_0x3b929b['push'](..._0x106c07);let _0xa6bbd8=!0x0;for(const _0x122f24 of _0x3b929b)if(!this['_rangeIsInLocalUserInsertion'](_0x122f24)){_0xa6bbd8=!0x1;break;}if(_0xa6bbd8&&'always'!==this['_trackFormatChanges']){const _0x17a0ed=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1cc506,'accept');return this['forceDefaultExecution'](()=>_0x17a0ed(_0x106c07,_0x463a91,_0x3cea6c)),null;}const _0x25108b=this['editor']['plugins']['get']('Users')['me'];for(const _0x11e85e of this['getSuggestions']()){const _0x17b9f4=_0x11e85e['data'];if(_0x11e85e['author']['id']!=_0x25108b['id'])continue;if('formatBlock'!=_0x11e85e['type']||_0x17b9f4['formatGroupId']!=_0x463a91['formatGroupId'])continue;if(!sn(_0x11e85e,_0x3cea6c))continue;const _0x18eede=_0x11e85e['subType']==_0x1cc506;for(let _0x25e0ac=0x0;_0x25e0ac<_0x106c07['length'];_0x25e0ac++){const _0x5774aa=_0x106c07[_0x25e0ac];for(const _0x31c5c9 of _0x11e85e['getMarkers']()){const _0x193b3b=_0x31c5c9['getRange']();if(_0x5774aa['isEqual'](_0x193b3b)){_0x18eede?(_0x106c07['splice'](_0x25e0ac,0x1),_0x25e0ac--):_0x11e85e['removeMarker'](_0x31c5c9['name']);break;}}}}if(0x0==_0x106c07['length'])return null;const _0x46d93c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1cc506,'join');for(const _0x44609a of this['getSuggestions']()){const _0x478509=_0x44609a['data'];if(_0x44609a['author']['id']==_0x25108b['id']&&('formatBlock'==_0x44609a['type']&&_0x478509['formatGroupId']==_0x463a91['formatGroupId']&&_0x44609a['subType']==_0x1cc506&&sn(_0x44609a,_0x3cea6c)&&(_0x46d93c(_0x44609a['getRanges'](),_0x106c07)||_0x46d93c(_0x106c07,_0x44609a['getRanges']())))){for(const _0x44081c of _0x106c07)_0x44609a['addRange'](_0x44081c);return _0x44609a;}}const _0x357d0f=_0x569ccd(),_0x760200=_0x25108b['id'],_0x4e6453='formatBlock:'+_0x1cc506,_0x19819e=this['_setSuggestionData']({'id':_0x357d0f,'type':_0x4e6453,'data':_0x463a91,'createdAt':new Date(),'authorId':_0x760200,'attributes':_0x3cea6c});for(const _0x15a0fa of _0x106c07)this['_addSuggestionMarker'](_0x4e6453,_0x357d0f,_0x760200,_0x15a0fa,x['getMultiRangeId']());return _0x19819e;}['markDeletion'](_0x1cf6ea,_0x3beb39=null,_0x4bc098={}){if(_0x1cf6ea['isCollapsed'])return null;const _0x3e5c8a=this['editor']['plugins']['get']('Users')['me'],_0x5293ce=new _0x4edbf7(_0x1cf6ea['start'],_0x1cf6ea['end']);this['_trackingSessionId']&&(_0x4bc098['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2da44d,meta:_0x2b4cf8}of this['_findSuggestions'](_0x5293ce,'insertion'))if(_0x2b4cf8['isOwn']&&!_0x2b4cf8['isNextTo']){if(_0x2da44d['isMultiRange']){const _0x292dd4=_0x2da44d['getRanges']()['filter'](_0x65a27=>'$graveyard'!=_0x65a27['root']['rootName']);_0x292dd4['every'](_0x7ce1f0=>_0x5293ce['containsRange'](_0x7ce1f0,!0x0))&&_0x2da44d['discard']();if(_0x292dd4['some'](_0x3cd610=>_0x3cd610['containsRange'](_0x5293ce,!0x0))){const _0x460069=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3beb39,'accept');return this['forceDefaultExecution'](()=>_0x460069([_0x5293ce],null,_0x4bc098)),null;}}else{const _0x2164f4=_0x5293ce['getIntersection'](_0x2da44d['getFirstRange']());null!==_0x2164f4&&_0x2da44d['_onDiscard']([_0x2164f4],null,_0x4bc098);}}if(_0x5293ce['detach'](),_0x5293ce['isCollapsed']||'$graveyard'==_0x5293ce['root']['rootName'])return null;let _0x3110a9=null,_0x42c0ce=_0x5293ce['start'],_0x43e829=_0x5293ce['end'];const _0x10599c=this['_findSuggestions'](_0x5293ce,'deletion');for(const {suggestion:_0x17ba3d,meta:_0x3773d0}of _0x10599c){const _0x196de1=this['_model']['createRange'](_0x42c0ce,_0x43e829);if(_0x3773d0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3773d0['containsRangeInObject']&&!_0x3773d0['isInsideObject'])){if(_0x17ba3d['isMultiRange']){if(!sn(_0x17ba3d,_0x4bc098))continue;let _0x97da77=!0x0;for(const _0x3ff806 of _0x17ba3d['getRanges']()){if(_0x3ff806['containsRange'](_0x196de1,!0x0))return _0x17ba3d;_0x196de1['containsRange'](_0x3ff806)||(_0x97da77=!0x1);}_0x97da77&&_0x17ba3d['discard']();}else{const _0x2b1e6e=_0x17ba3d['getFirstRange']();if(_0x2b1e6e['containsRange'](_0x196de1,!0x0))return _0x17ba3d;if(!sn(_0x17ba3d,_0x4bc098)){_0x196de1['containsRange'](_0x2b1e6e)?_0x17ba3d['removeMarkers']():_0x2b1e6e['containsPosition'](_0x42c0ce)?_0x42c0ce=_0x2b1e6e['end']:_0x2b1e6e['containsPosition'](_0x43e829)&&(_0x43e829=_0x2b1e6e['start']);continue;}_0x42c0ce=_0x42c0ce['isBefore'](_0x2b1e6e['start'])?_0x42c0ce:_0x2b1e6e['start'],_0x43e829=_0x43e829['isAfter'](_0x2b1e6e['end'])?_0x43e829:_0x2b1e6e['end'],_0x4bc098=Object['assign']({},_0x17ba3d['attributes']),_0x3110a9?_0x2b1e6e['start']['isBefore'](_0x3110a9['getFirstRange']()['start'])?(_0x3110a9['removeMarkers'](),_0x3110a9=_0x17ba3d):_0x17ba3d['removeMarkers']():_0x3110a9=_0x17ba3d;}}}if(_0x3110a9)return this['_setSuggestionRange'](_0x3110a9,this['_model']['createRange'](_0x42c0ce,_0x43e829)),_0x3110a9;{const _0x1bd72c=_0x569ccd(),_0x59dabf=this['_model']['createRange'](_0x42c0ce,_0x43e829),_0x2ee3d2=_0x3e5c8a['id'],_0x46a1f3=_0x3beb39?'deletion:'+_0x3beb39:'deletion',_0x161869=this['_setSuggestionData']({'id':_0x1bd72c,'type':_0x46a1f3,'createdAt':new Date(),'authorId':_0x2ee3d2,'attributes':_0x4bc098});return this['_addSuggestionMarker'](_0x46a1f3,_0x1bd72c,_0x2ee3d2,_0x59dabf),_0x161869;}}['markMultiRangeDeletion'](_0x571d6c,_0x53fed5='multi',_0x52062e={}){const _0x38547d=this['editor']['plugins']['get']('Users')['me'],_0x308165=_0x571d6c['map'](_0x53283e=>new _0x4edbf7(_0x53283e['start'],_0x53283e['end'])),_0x561d61=new Set();this['_trackingSessionId']&&(_0x52062e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4676a4,meta:_0x2ef52a}of this['_findSuggestions'](_0x308165,'insertion'))_0x2ef52a['isOwn']&&!_0x2ef52a['isNextTo']&&_0x561d61['add'](_0x4676a4);for(const _0x1a3f7 of _0x561d61)if(_0x1a3f7['isMultiRange']){const _0x4b8e5d=_0x1a3f7['getRanges']();(!_0x1a3f7['attributes']||!_0x1a3f7['attributes']['skipNestingCheck'])&&(_0x4b8e5d['every'](_0x5ed360=>_0x308165['some'](_0x2dca14=>_0x2dca14['containsRange'](_0x5ed360,!0x0)))&&_0x1a3f7['discard']());if(_0x308165['every'](_0x411e8f=>_0x4b8e5d['some'](_0x1ed0d0=>_0x1ed0d0['containsRange'](_0x411e8f,!0x0)))){const _0x3c18ec=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53fed5,'accept');return this['forceDefaultExecution'](()=>_0x3c18ec(_0x571d6c,null,_0x52062e)),null;}}else{const _0x147c11=_0x1a3f7['getFirstRange']();_0x308165['some'](_0x4531ad=>_0x4531ad['containsRange'](_0x147c11,!0x0))&&_0x1a3f7['discard']();if(_0x308165['every'](_0x5a9aa4=>_0x147c11['containsRange'](_0x5a9aa4,!0x0))){const _0x5a0e50=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53fed5,'accept');return this['forceDefaultExecution'](()=>_0x5a0e50(_0x308165,null,_0x52062e)),null;}}const _0x2489f6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53fed5,'join');let _0x3a5dfb=null;for(const _0x1ff8f1 of this['getSuggestions']())if(_0x1ff8f1['author']['id']==_0x38547d['id']&&_0x1ff8f1['isInContent']&&'deletion'==_0x1ff8f1['type']&&_0x1ff8f1['subType']==_0x53fed5&&sn(_0x1ff8f1,_0x52062e)&&(_0x2489f6(_0x1ff8f1['getRanges'](),_0x308165)||_0x2489f6(_0x308165,_0x1ff8f1['getRanges']()))){if(_0x3a5dfb){if(_0x1ff8f1['commentThread']&&_0x1ff8f1['commentThread']['length'])continue;for(const _0x3f9fe2 of _0x1ff8f1['getRanges']())_0x3a5dfb['isIntersectingWithRange'](_0x3f9fe2)||_0x3a5dfb['addRange'](_0x3f9fe2);_0x1ff8f1['removeMarkers']();}else{_0x3a5dfb=_0x1ff8f1;for(const _0x1aec44 of _0x308165)_0x1ff8f1['isIntersectingWithRange'](_0x1aec44)||_0x1ff8f1['addRange'](_0x1aec44);}}if(_0x3a5dfb)return _0x3a5dfb;_0x561d61['clear']();for(const {suggestion:_0xb398cf,meta:_0x1fe624}of this['_findSuggestions'](_0x308165,'deletion'))_0x1fe624['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1fe624['containsRangeInObject']&&!_0x1fe624['isInsideObject'])&&sn(_0xb398cf,_0x52062e)&&_0x561d61['add'](_0xb398cf);for(const _0x2a9827 of _0x561d61){const _0x470a49=_0x2a9827['getRanges']();if(!_0x52062e||!_0x52062e['skipNestingCheck']){if(_0x308165['every'](_0x48f679=>_0x470a49['some'](_0x151216=>_0x151216['containsRange'](_0x48f679,!0x0))))return _0x2a9827;}(!_0x2a9827['attributes']||!_0x2a9827['attributes']['skipNestingCheck'])&&(_0x470a49['every'](_0x181ab5=>_0x308165['some'](_0x50ac85=>_0x50ac85['containsRange'](_0x181ab5,!0x0)))&&_0x2a9827['discard']());}const _0x5655c7=_0x569ccd(),_0x568dfb=_0x38547d['id'],_0x1814ac='deletion:'+_0x53fed5,_0x44d9e5=this['_setSuggestionData']({'id':_0x5655c7,'type':_0x1814ac,'createdAt':new Date(),'authorId':_0x568dfb,'attributes':_0x52062e});for(const _0x255011 of _0x308165)_0x255011['detach'](),_0x255011['isCollapsed']||'$graveyard'==_0x255011['root']['rootName']||this['_addSuggestionMarker'](_0x1814ac,_0x5655c7,_0x568dfb,_0x255011,x['getMultiRangeId']());return _0x44d9e5;}['markAttributeChange'](_0x225f16,_0x34bea9,_0x41c372,_0x5d99a2,_0x1911ec){if(_0x225f16['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x47f456=this['editor']['plugins']['get']('Users')['me']['id'],_0x5773e9=Array['from'](this['_suggestions']['values']())['filter'](_0x1d99d5=>'attribute'==_0x1d99d5['type']&&_0x1d99d5['data']['key']==_0x34bea9&&_0x1d99d5['isIntersectingWithRange'](_0x225f16));if(this['_trackingSessionId']&&(_0x1911ec['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x20078f=this['_findSuggestions'](_0x225f16,'insertion')['filter'](({meta:_0x2863ba})=>_0x2863ba['isOwn']&&!_0x2863ba['isInsideObject']&&!_0x2863ba['isNextTo'])['map'](({suggestion:_0x2c3e90})=>_0x2c3e90);_0x5773e9['unshift'](..._0x20078f);}const _0x57a20a=new Map([[_0x225f16,_0x41c372]]);for(const _0x96a35a of _0x5773e9){const _0xa8ab1d='attribute'==_0x96a35a['type']?_0x96a35a['data']['oldValue']:void 0x0,_0x480dc8=_0x96a35a['getFirstRange'](),_0x3662d0=Array['from'](_0x57a20a['keys']())['find'](_0x2e4f9d=>_0x2e4f9d['isIntersecting'](_0x480dc8));if(!_0x3662d0)continue;const _0x451aa3=_0x3662d0['getDifference'](_0x480dc8);this['_isBlockAttribute'](_0x34bea9)&&'insertion'==_0x96a35a['type']&&0x0!=_0x451aa3['length']||(_0x57a20a['delete'](_0x3662d0),_0x451aa3['forEach'](_0x19a4a7=>{_0x57a20a['set'](_0x19a4a7,_0x41c372);}),'insertion'!=_0x96a35a['type']&&_0xa8ab1d!=_0x5d99a2&&_0x57a20a['set'](_0x3662d0['getIntersection'](_0x480dc8),_0xa8ab1d));}const _0x19a74c=[];for(const [_0x1f60ca,_0x5124db]of _0x57a20a){const _0xc561c2=_0x569ccd(),_0x2d6369={'key':_0x34bea9,'oldValue':_0x5124db,'newValue':_0x5d99a2};_0x34bea9['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':_0x34bea9});const _0x583166=('attribute:'+(_0x34bea9+'|'+Ht({'newValue':_0x5d99a2})))['substring'](0x0,0x3c),_0xa65db2=this['_setSuggestionData']({'id':_0xc561c2,'type':_0x583166,'data':_0x2d6369,'createdAt':new Date(),'authorId':_0x47f456,'attributes':_0x1911ec});_0x19a74c['push'](_0xa65db2),this['_addSuggestionMarker'](_0x583166,_0xc561c2,_0x47f456,_0x1f60ca);}return _0x19a74c;}['enableDefaultAttributesIntegration'](_0x4cea08){this['enableCommand'](_0x4cea08,(_0x1b1915,..._0x3b0d70)=>{this['recordAttributeChanges'](()=>{_0x1b1915(..._0x3b0d70);});});}['registerBlockAttribute'](_0x495d24){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x495d24);}['registerInlineAttribute'](_0x35e147){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x35e147);}['startTrackingSession'](_0x467db7){return this['_trackingSessionId']=void 0x0!==_0x467db7?_0x467db7:_0x569ccd(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1c4fe1){return'attribute'==_0x1c4fe1['type']?_0x1c4fe1['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x39b8b7){if(0x0==_0x39b8b7['length'])return;const _0x5bb5e0=this['editor'],_0x191eae=_0x5bb5e0['plugins']['get'](_0x2ceb56),_0x252d73=[];_0x5bb5e0['model']['change'](_0xd07b45=>{for(let _0x24984f=0x0;_0x24984f<_0x39b8b7['length'];_0x24984f++){const _0x24e914=_0x39b8b7[_0x24984f];if(_0x24e914['baseVersion']=_0x5bb5e0['model']['document']['version'],_0x24e914['isDocumentOperation']=!0x0,_0x191eae['isMarkedRemoveOperation'](_0x24e914)){const _0x3506ff=Lt(_0x24e914['newRange'],_0x5bb5e0['model']);_0x252d73['unshift'](_0x4edbf7['fromRange'](_0x3506ff));}else switch(_0x24e914['type']){case'rename':{const _0x23034d=_0x24e914['oldName'],_0x5a703f=_0x24e914['newName'];if(_0x23034d==_0x5a703f)break;_0xd07b45['batch']['addOperation'](_0x24e914),_0x5bb5e0['model']['applyOperation'](_0x24e914);const _0x337b25='$elementName',_0x427eb6=_0x24e914['position'],_0x59cfb4=_0x5bb5e0['model']['createRange'](_0x427eb6,_0x5bb5e0['model']['createPositionAt'](_0x427eb6['nodeAfter'],'end'));this['markAttributeChange'](_0x59cfb4,_0x337b25,_0x23034d,_0x5a703f,{'groupId':_0x569ccd()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x54ca80=_0x24e914['oldValue'],_0x68cd1=_0x24e914['newValue'];if(_0x54ca80==_0x68cd1)break;_0xd07b45['batch']['addOperation'](_0x24e914),_0x5bb5e0['model']['applyOperation'](_0x24e914);const _0x41ae70=_0x24e914['key'];if(!this['_isRegisteredAttribute'](_0x41ae70))break;const _0x323d62=Lt(_0x24e914['range'],_0x5bb5e0['model']);this['markAttributeChange'](_0x323d62,_0x41ae70,_0x54ca80,_0x68cd1,{'groupId':_0x569ccd()});break;}case'insert':{_0xd07b45['batch']['addOperation'](_0x24e914),_0x5bb5e0['model']['applyOperation'](_0x24e914);if(_0x39b8b7[_0x24984f+0x1]&&'move'==_0x39b8b7[_0x24984f+0x1]['type'])break;const _0x119a34=_0x24e914['position'],_0x2313fb=_0x24e914['howMany'],_0x2ded6e=Lt(_0x5bb5e0['model']['createRange'](_0x119a34,_0x119a34['getShiftedBy'](_0x2313fb)),_0x5bb5e0['model']);this['markInsertion'](_0x2ded6e);break;}case'split':{_0xd07b45['batch']['addOperation'](_0x24e914),_0x5bb5e0['model']['applyOperation'](_0x24e914);const _0x5e25e8=_0x24e914['splitPosition'],_0x1aa73e=_0x24e914['moveTargetPosition'];this['markInsertion'](_0x5bb5e0['model']['createRange'](_0x5e25e8,_0x1aa73e));break;}case'move':case'remove':_0xd07b45['batch']['addOperation'](_0x24e914),_0x5bb5e0['model']['applyOperation'](_0x24e914);}}for(const _0x339521 of _0x252d73)_0x339521['detach'](),this['markDeletion'](_0x339521);});}['_setSuggestionRange'](_0x5630df,_0x115150){const _0x5dce25=_0x5630df['getFirstMarker']();this['_model']['change'](_0x5ee810=>{_0x5ee810['updateMarker'](_0x5dce25,{'range':_0x115150});});}['_addThreadToSuggestion'](_0x41ab7a){const _0x1e26d5=_0x41ab7a['id'],_0x1470fa=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1e26d5)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1470fa,'threadId':_0x1e26d5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x35067a=this['_commentsRepository']['getCommentThread'](_0x1e26d5);_0x35067a['unbind']('isRemovable'),_0x35067a['isRemovable']=!0x1,_0x41ab7a['commentThread']=_0x35067a;}['_checkSuggestionCorrectness'](_0x4bbc92,_0x341ebc,_0x33fbf4,_0x33853e){if(_0x4bbc92['type']!=_0x341ebc||_0x4bbc92['subType']!=_0x33fbf4||_0x4bbc92['creator']['id']!=_0x33853e)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x39abb4('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x32d30d,_0x3252fb){const _0x2ab0d0=_0x32d30d['getFirstRange']();if(_0x3252fb['isEqual'](_0x2ab0d0))_0x32d30d['removeMarkers']();else{if(_0x2ab0d0['containsRange'](_0x3252fb)){const _0x40f2b7=this['_model']['createPositionAt'](_0x3252fb['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x32d30d,this['_model']['createRange'](_0x2ab0d0['start'],_0x40f2b7));const _0x4dc85c=_0x569ccd(),_0x236657=_0x32d30d['creator']['id'],_0x257e4a=_0x32d30d['type']+':'+_0x32d30d['subType'];this['_setSuggestionData']({'id':_0x4dc85c,'type':_0x257e4a,'createdAt':new Date(),'authorId':_0x236657,'data':_0x32d30d['data'],'attributes':_0x32d30d['attributes']});const _0x37845a=this['_model']['createPositionAt'](_0x3252fb['end']['parent'],'after'),_0x4d6a7b=this['_model']['createRange'](_0x37845a,_0x2ab0d0['end']);this['_addSuggestionMarker'](_0x257e4a,_0x4dc85c,_0x236657,_0x4d6a7b);}else{if(_0x2ab0d0['containsPosition'](_0x3252fb['start'])){const _0x581f70=this['_model']['createPositionAt'](_0x3252fb['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x32d30d,this['_model']['createRange'](_0x2ab0d0['start'],_0x581f70));}else{const _0x381bf8=this['_model']['createPositionAt'](_0x3252fb['end']['parent'],'after');this['_setSuggestionRange'](_0x32d30d,this['_model']['createRange'](_0x381bf8,_0x2ab0d0['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x341c8b){for(const {suggestion:_0x4ec8e3,meta:_0x14e2d2}of this['_findSuggestions'](_0x341c8b,'insertion')){if(!_0x14e2d2['isOwn'])continue;const _0x76b891=_0x4ec8e3['getRanges']();for(const _0x350ab9 of _0x76b891)if(!_0x341c8b['getDifference'](_0x350ab9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5a6160){return this['editor']['plugins']['get']('Users')['getUser'](_0x5a6160);}['_getExternalAuthor'](_0x3fbeeb){const _0x464431=this['editor']['plugins']['get']('Users'),_0x535caf=_0x5f4035('external:'+_0x3fbeeb),_0x29bc02=_0x464431['getUser'](_0x535caf);return _0x29bc02||_0x464431['addUser']({'id':_0x535caf,'name':_0x3fbeeb});}['_createSuggestion'](_0x42db7a,_0x4d954b,_0x2f6f8b,_0x107121,_0x2d5e51,_0x334231){const _0x1146bd=this['_getAuthorFromId'](_0x107121);if(!_0x1146bd)throw new _0x39abb4('track-changes-user-not-found',this,{'authorId':_0x107121,'suggestionId':_0x2f6f8b});const _0x16951d=this['_suggestionFactory']['buildSuggestion'](_0x42db7a,_0x4d954b,_0x2f6f8b,_0x1146bd,_0x2d5e51,_0x1a7ae8=>{this['_updateSuggestionData'](_0x2f6f8b,{'attributes':_0x1a7ae8});const _0x5b0e0b=this['getSuggestion'](_0x2f6f8b);this['_joinWithAdjacentSuggestions'](new Set([_0x5b0e0b])),this['_refreshSuggestionsChain'](new Set([_0x5b0e0b]));},_0x334231);return this['listenTo'](_0x16951d,'accept',()=>{this['_updateSuggestionData'](_0x2f6f8b,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x16951d,'discard',()=>{this['_updateSuggestionData'](_0x2f6f8b,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2f6f8b,_0x16951d),this['_suggestionState']['set'](_0x16951d,'notReady'),_0x16951d;}['_splitMarkerName'](_0x192e33){return Gt(_0x192e33);}['_breakSuggestionMarker'](_0x4d0bbb,_0x415e1e,_0x4f9013){const _0x38585e=_0x4d0bbb['getFirstRange'](),_0x426da4=_0x38585e['start'],_0x1a7fb0=_0x38585e['end'];this['_setSuggestionRange'](_0x4d0bbb,this['_model']['createRange'](_0x426da4,_0x415e1e));const _0x34a871=_0x569ccd(),_0x38c1ab=_0x4d0bbb['creator']['id'],_0x131ce9=_0x4d0bbb['type']+(_0x4d0bbb['subType']?':'+_0x4d0bbb['subType']:'');this['_setSuggestionData']({'id':_0x34a871,'type':_0x131ce9,'createdAt':new Date(),'authorId':_0x38c1ab,'originalSuggestionId':_0x4d0bbb['_originalSuggestionId']||_0x4d0bbb['id'],'attributes':_0x4d0bbb['attributes'],'data':_0x4d0bbb['data']});const _0x510cfc=this['_getAttributeKey'](_0x4d0bbb);('formatBlock'==_0x4d0bbb['type']||_0x510cfc&&this['_isBlockAttribute'](_0x510cfc))&&(_0x4f9013=this['_model']['createPositionBefore'](_0x4f9013['parent'])),this['_addSuggestionMarker'](_0x131ce9,_0x34a871,_0x38c1ab,this['_model']['createRange'](_0x4f9013,_0x1a7fb0));}['_findSuggestions'](_0x331ac1,_0x19b027=null){const _0x2361b2=[],_0x348745=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x331ac1)||(_0x331ac1=[_0x331ac1]);for(const _0x1ea539 of this['getSuggestions']()){if(!_0x1ea539['isInContent'])continue;if(_0x19b027&&_0x1ea539['type']!=_0x19b027)continue;let _0x3d41e2=!0x1;for(const _0x2c898c of _0x1ea539['getRanges']()){for(const _0x1f93ad of _0x331ac1){const _0x38b068=_0x1f93ad['start']['isEqual'](_0x2c898c['end'])||_0x1f93ad['end']['isEqual'](_0x2c898c['start']);if(_0x38b068||_0x1f93ad['getIntersection'](_0x2c898c)){const _0xe13a44=_0x1f93ad['containsRange'](_0x2c898c)&&zt(this['_model']['schema'],_0x2c898c['start'],_0x1f93ad),_0x53d4bc=_0x2c898c['containsRange'](_0x1f93ad)&&zt(this['_model']['schema'],_0x1f93ad['start'],_0x2c898c);_0x2361b2['push']({'suggestion':_0x1ea539,'meta':{'isOwn':_0x348745==_0x1ea539['author'],'isNextTo':_0x38b068,'isInsideObject':_0xe13a44,'containsRangeInObject':_0x53d4bc}}),_0x3d41e2=!0x0;break;}}if(_0x3d41e2)break;}}return _0x2361b2;}['_addSuggestionMarker'](_0x360a7e,_0x3e31ce,_0x3d5a7d,_0x16f4cb,_0x39fd62){this['_model']['change'](_0x378604=>{let _0x1c566b='suggestion:'+_0x360a7e+':'+_0x3e31ce+':'+_0x3d5a7d;_0x39fd62&&(_0x1c566b=_0x1c566b+':'+_0x39fd62),_0x378604['addMarker'](_0x1c566b,{'range':_0x16f4cb,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x55c5ae){const _0x1c775e=_0x55c5ae['previous'],_0x1d3ca6=_0x55c5ae['next'];_0x55c5ae['previous']=null,_0x55c5ae['next']=null,null!=_0x1c775e&&_0x1c775e['next']==_0x55c5ae&&(_0x1c775e['next']=_0x1d3ca6),null!=_0x1d3ca6&&_0x1d3ca6['previous']==_0x55c5ae&&(_0x1d3ca6['previous']=_0x1c775e),'ready'==this['_suggestionState']['get'](_0x55c5ae)&&(this['_suggestionState']['set'](_0x55c5ae,'removed'),this['fire']('suggestionUnloaded',_0x55c5ae,_0x1c775e,_0x1d3ca6));}['_setSuggestionData'](_0x38ec21){const _0x514bb0=_0x38ec21['id'],_0x49e14d=this['addSuggestionData'](_0x38ec21);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x388bb6=this['editor']['plugins']['get']('PendingActions'),_0x104b4c=_0x49e14d['hasComments'],_0x4b2b68=_0x49e14d['subType']?_0x49e14d['type']+':'+_0x49e14d['subType']:_0x49e14d['type'],_0x780942=this['editor']['locale'],_0x15326b=_0x388bb6['add'](o(_0x780942,'PENDING_ACTION_SUGGESTION')),_0x26ebe5={'id':_0x514bb0,'type':_0x4b2b68,'hasComments':_0x104b4c,'data':_0x38ec21['data']||null,'originalSuggestionId':_0x38ec21['originalSuggestionId']||null,'attributes':_0x49e14d['attributes']};this['_adapter']['addSuggestion'](_0x26ebe5)['then'](_0x58efd7=>{_0x49e14d['_saved']=!0x0,_0x388bb6['remove'](_0x15326b),_0x58efd7&&_0x58efd7['createdAt']&&(this['_suggestions']['get'](_0x514bb0)['createdAt']=_0x58efd7['createdAt']);})['catch'](_0x116230=>{throw _0x573ce7('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x49e14d['discard']();}),_0x49e14d['stopListening'](),this['_suggestions']['delete'](_0x49e14d['id']),this['_suggestionState']['delete'](_0x49e14d),_0x116230;});}return _0x49e14d;}['_isBlockAttribute'](_0x5b0da2){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x5b0da2);}['_isInlineAttribute'](_0x7cf7f4){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x7cf7f4);}['_updateSuggestionData'](_0x4d0a78,_0x3c94af){const _0x3bf641=this['editor']['plugins']['get']('PendingActions'),_0x58b7b3=this['getSuggestion'](_0x4d0a78);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x58b7b3['_saved']){const _0x3014ba=_0x3bf641['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4d0a78,_0x3c94af)['then'](()=>{_0x3bf641['remove'](_0x3014ba);});}else _0x58b7b3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4d0a78,_0x3c94af);});}}['_getSuggestionData'](_0x527413){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x39abb4('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x527413);}['_handleNewSuggestionMarker'](_0x5da96b){const {id:_0x3f088f,type:_0x3f48d8,subType:_0x28f8b2,authorId:_0x233256}=this['_splitMarkerName'](_0x5da96b),_0x48e446=this['_suggestions']['get'](_0x3f088f)||this['_createSuggestion'](_0x3f48d8,_0x28f8b2,_0x3f088f,_0x233256,{});switch(this['_checkSuggestionCorrectness'](_0x48e446,_0x3f48d8,_0x28f8b2,_0x233256),this['_suggestionState']['get'](_0x48e446)){case'notReady':this['_getSuggestionData'](_0x3f088f)['then'](_0x547ae8=>{let _0x4c99f2=Promise['resolve']();_0x547ae8['hasComments']&&(_0x4c99f2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3f088f})),_0x4c99f2['then'](()=>{this['addSuggestionData'](_0x547ae8)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x48e446,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3f088f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x48e446,'ready'),this['fire']('suggestionLoaded',_0x48e446);break;case'ready':this['fire']('suggestionChanged',_0x48e446);}return _0x48e446['addMarkerName'](_0x5da96b),_0x48e446;}['_refreshSuggestionsChain'](_0x1778c2){const _0x2e9b60=Array['from'](_0x1778c2),_0x2338ef=_0x2e9b60['filter'](_0x4c2190=>'attribute'==_0x4c2190['type']);this['_refreshAttributeSuggestionsChain'](_0x2338ef);const _0x26c6f7=_0x2e9b60['filter'](_0x3b1aa3=>!_0x3b1aa3['isMultiRange']&&'attribute'!=_0x3b1aa3['type']),_0x583900=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d7c56=>!_0x5d7c56['isMultiRange']&&'attribute'!=_0x5d7c56['type']),_0x3d1e61=_0x583900['filter'](_0x1963ff=>!_0x1778c2['has'](_0x1963ff)),_0x7055fb=new Map(_0x583900['map'](_0x54fe94=>[_0x54fe94,this['_suggestionFactory']['getSuggestionCallback'](_0x54fe94['type'],_0x54fe94['subType'],'chain')])),_0x3a94cd=new Map(_0x583900['map'](_0x550f78=>[_0x550f78,_0x550f78['getFirstRange']()])),_0x39b928=new Set(),_0x5ed2fe=new Set();for(let _0x2d4a49=0x0;_0x2d4a49<_0x26c6f7['length'];_0x2d4a49++)_0x1b999a(_0x26c6f7[_0x2d4a49],_0x26c6f7,_0x2d4a49+0x1);for(let _0x4f494e=0x0;_0x4f494e<_0x26c6f7['length'];_0x4f494e++)_0x1b999a(_0x26c6f7[_0x4f494e],_0x3d1e61,0x0);const _0x20990e=new Set();for(let _0x312f34=0x0;_0x312f34<_0x26c6f7['length'];_0x312f34++){const _0x1fcecd=_0x26c6f7[_0x312f34];!_0x5ed2fe['has'](_0x1fcecd)&&_0x1fcecd['previous']&&(_0x20990e['add'](_0x1fcecd['previous']),_0x1fcecd['previous']['next']===_0x1fcecd&&(_0x1fcecd['previous']['next']=null),_0x1fcecd['previous']=null),!_0x39b928['has'](_0x1fcecd)&&_0x1fcecd['next']&&(_0x20990e['add'](_0x1fcecd['next']),_0x1fcecd['next']['previous']===_0x1fcecd&&(_0x1fcecd['next']['previous']=null),_0x1fcecd['next']=null);}function _0x1b999a(_0x5ca999,_0x146b94,_0x5f1561){for(let _0x3e4ba3=_0x5f1561;_0x3e4ba3<_0x146b94['length'];_0x3e4ba3++){const _0x27264f=_0x168c5a(_0x5ca999,_0x146b94[_0x3e4ba3]);_0x27264f&&(_0x27264f[0x0]['next']=_0x27264f[0x1],_0x27264f[0x1]['previous']=_0x27264f[0x0],_0x39b928['add'](_0x27264f[0x0]),_0x5ed2fe['add'](_0x27264f[0x1]));}}function _0x168c5a(_0x2db8fe,_0x56735c){if(_0x2db8fe['author']['id']!==_0x56735c['author']['id'])return null;const _0x15dd96=_0x7055fb['get'](_0x2db8fe)(_0x2db8fe,_0x56735c,_0x3a94cd['get'](_0x2db8fe),_0x3a94cd['get'](_0x56735c));if(!_0x15dd96)return null;return _0x7055fb['get'](_0x56735c)(_0x2db8fe,_0x56735c,_0x3a94cd['get'](_0x2db8fe),_0x3a94cd['get'](_0x56735c))?_0x15dd96[0x1]['commentThread']&&_0x15dd96[0x1]['commentThread']['length']?null:_0x15dd96:null;}_0x20990e['size']&&this['_refreshSuggestionsChain'](_0x20990e);}['_refreshAttributeSuggestionsChain'](_0x496a72){if(0x0==_0x496a72['length'])return;const _0x4f0151=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2206c8=>'attribute'==_0x2206c8['type']&&_0x2206c8['_isDataLoaded']),_0x404bd3=[],_0x4b9f56=new Map();for(const _0x4cf730 of _0x4f0151){const _0x27c284=_0x5f4035(_0x4cf730['attributes']);_0x4b9f56['has'](_0x27c284)||(_0x4b9f56['set'](_0x27c284,_0x404bd3['length']),_0x404bd3['push']([]));const _0x3cc01e=_0x4b9f56['get'](_0x27c284);_0x404bd3[_0x3cc01e]['push'](_0x4cf730);}!(function(){_0x404bd3['sort']((_0x30f313,_0x3e8683)=>{const _0x10b338=_0x30f313[0x0]['createdAt'],_0x27ae98=_0x3e8683[0x0]['createdAt'];return _0x10b338==_0x27ae98?_0x30f313[0x0]['attributes']['groupId']<_0x3e8683[0x0]['attributes']['groupId']?-0x1:0x1:_0x10b338<_0x27ae98?-0x1:0x1;});for(const _0x44391c of _0x404bd3)_0x44391c['sort']((_0x3609bb,_0x307df3)=>_0x3609bb['id']<_0x307df3['id']?-0x1:0x1);}());for(let _0x2bc3a1=0x0;_0x2bc3a1<_0x404bd3['length'];_0x2bc3a1++){if(0x0==_0x404bd3[_0x2bc3a1]['length'])continue;const _0x416d5d=[];for(let _0x398ae9=_0x2bc3a1+0x1;_0x398ae9<_0x404bd3['length'];_0x398ae9++)0x0!=_0x404bd3[_0x398ae9]['length']&&_0x43d55d(_0x404bd3[_0x2bc3a1],_0x404bd3[_0x398ae9])&&_0x416d5d['push'](_0x398ae9);for(const _0x31f2d9 of _0x416d5d)_0x404bd3[_0x2bc3a1]=_0x404bd3[_0x2bc3a1]['concat'](_0x404bd3[_0x31f2d9]),_0x404bd3[_0x31f2d9]=[];}for(const _0x558f0f of _0x404bd3)for(let _0x4aad15=0x0;_0x4aad15<_0x558f0f['length'];_0x4aad15++){const _0x35e2f4=_0x558f0f[_0x4aad15+0x1]||null;_0x558f0f[_0x4aad15]['next']!==_0x35e2f4&&(_0x558f0f[_0x4aad15]['next']=_0x35e2f4);}for(const _0x477890 of _0x404bd3)for(let _0x5a63e9=0x0;_0x5a63e9<_0x477890['length'];_0x5a63e9++){const _0x26ce56=_0x477890[_0x5a63e9-0x1]||null;_0x477890[_0x5a63e9]['previous']!==_0x26ce56&&(_0x477890[_0x5a63e9]['previous']=_0x26ce56);}function _0x43d55d(_0x51129a,_0xe444f0){if(_0x51129a[0x0]['attributes']['groupId']!==_0xe444f0[0x0]['attributes']['groupId']&&_0x51129a[0x0]['author']!==_0xe444f0[0x0]['author'])return!0x1;if(!function(_0x1ab934,_0x22d4d1){if(!_0x1ab934['hasComments']&&!_0x22d4d1['hasComments'])return!0x0;if(_0x1ab934['hasComments']&&_0x22d4d1['hasComments'])return!0x1;if(_0x1ab934['hasComments']&&_0x22d4d1['createdAt']<_0x1ab934['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x22d4d1['hasComments']&&_0x1ab934['createdAt']<_0x22d4d1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x51129a[0x0],_0xe444f0[0x0]))return!0x1;const _0x54b0ae=Pt(_0x51129a[0x0]['attributes'],['groupId','trackingSessionId']),_0x49629b=Pt(_0xe444f0[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x3bf56f(_0x54b0ae,_0x49629b))return!0x1;if(_0x51129a[0x0]['attributes']['groupId']==_0xe444f0[0x0]['attributes']['groupId'])return!0x0;if(_0x51129a[0x0]['attributes']['trackingSessionId']!==_0xe444f0[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x51129a['every'](_0x21450b=>_0xe444f0['some'](_0x32881f=>_0x21450b['getFirstRange']()['isEqual'](_0x32881f['getFirstRange']())))&&_0xe444f0['every'](_0x4c4688=>_0x51129a['some'](_0x137971=>_0x4c4688['getFirstRange']()['isEqual'](_0x137971['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xa150e2){const _0x216ed0=Array['from'](_0xa150e2),_0x4eb157=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4a78ba=_0x4eb157['filter'](_0x4253a7=>!_0xa150e2['has'](_0x4253a7)),_0xad889=new Map(_0x216ed0['map'](_0x3f5b6a=>[_0x3f5b6a,this['_suggestionFactory']['getSuggestionCallback'](_0x3f5b6a['type'],_0x3f5b6a['subType'],'join')])),_0x1ea3c0=new Map(_0x4eb157['map'](_0x2ff8bd=>[_0x2ff8bd,_0x2ff8bd['getRanges']()]));for(let _0x21d439=0x0;_0x21d439<_0x216ed0['length'];_0x21d439++){if(_0x2909f0(this,_0x216ed0[_0x21d439],_0x216ed0,_0x21d439+0x1))return!0x0;}for(let _0xa2469e=0x0;_0xa2469e<_0x216ed0['length'];_0xa2469e++){if(_0x2909f0(this,_0x216ed0[_0xa2469e],_0x4a78ba,0x0))return!0x0;}return!0x1;function _0x2909f0(_0x507d10,_0x4d1bf2,_0x599e9c,_0x358ae2){for(let _0x102432=_0x358ae2;_0x102432<_0x599e9c['length'];_0x102432++){const _0x4ca971=_0x599e9c[_0x102432];if(_0x4ca971['type']!==_0x4d1bf2['type']||_0x4ca971['author']['id']!==_0x4d1bf2['author']['id']||_0x4ca971['subType']!==_0x4d1bf2['subType'])continue;if(!en(_0x4d1bf2,_0x4ca971))continue;if('attribute'==_0x4d1bf2['type']&&_0x4d1bf2['data']['oldValue']!=_0x4ca971['data']['oldValue'])continue;if('attribute'==_0x4d1bf2['type']&&_0x507d10['_isBlockAttribute'](_0x4d1bf2['data']['key']))continue;if('formatBlock'==_0x4d1bf2['type']){const _0x51db95=_0x507d10['editor']['model'],_0x590134=_0x4d1bf2['getContainedElement']();if(_0x590134&&(_0x51db95['schema']['isObject'](_0x590134)||_0x51db95['schema']['isLimit'](_0x590134)))continue;}const _0x54989a=_0xad889['get'](_0x4d1bf2),_0x26adac=_0x1ea3c0['get'](_0x4d1bf2),_0x31f079=_0x1ea3c0['get'](_0x4ca971),_0x53cec5=_0x4d1bf2['commentThread']&&_0x4d1bf2['commentThread']['length'],_0x2da7c0=_0x4ca971['commentThread']&&_0x4ca971['commentThread']['length'];if(!_0x53cec5&&_0x54989a(_0x31f079,_0x26adac))return _0x507d10['_joinSuggestions'](_0x4ca971,_0x4d1bf2),_0x1ea3c0['delete'](_0x4d1bf2),!0x0;if(!_0x2da7c0&&_0x54989a(_0x26adac,_0x31f079))return _0x507d10['_joinSuggestions'](_0x4d1bf2,_0x4ca971),_0x1ea3c0['delete'](_0x4ca971),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1260a0,_0x172adf){if(_0x1260a0['isMultiRange']){for(const _0x206c2f of _0x172adf['getRanges']())_0x1260a0['addRange'](_0x206c2f);}else{const _0x10ce90=_0x172adf['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1260a0,this['_model']['createRange'](_0x1260a0['getFirstRange']()['start'],_0x10ce90));}_0x172adf['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2a4ba0,_0x48fc42,_0x21a7ad){const _0x37d5b0=_0x2a4ba0['startsWith']('format')||_0x2a4ba0['startsWith']('attribute')?'FORMATTING':_0x2a4ba0['toUpperCase']();return o(this['editor']['locale'],_0x48fc42+'_'+_0x37d5b0+'_SUGGESTION_ANNOUNCEMENT',_0x21a7ad);}['_initAriaMarkerChangeAnnouncements'](){const _0x3c8079=this['editor'];if(!_0x3c8079['ui'])return;const {ariaLiveAnnouncer:_0x5ad3e0}=_0x3c8079['ui'];_0x3b94b7(this['_model'],({left:_0x1ec29c,entered:_0x440972})=>{for(const _0x31bdd2 of _0x1ec29c){const {group:_0x58f680,type:_0x1605d8}=this['_splitMarkerName'](_0x31bdd2['name']);if('suggestion'===_0x58f680){_0x5ad3e0['announce'](this['_getMarkerAnnouncementText'](_0x1605d8,'LEAVE'));break;}}for(const _0x55f69b of _0x440972){const {group:_0x2f7b16,type:_0x3348cd}=this['_splitMarkerName'](_0x55f69b['name']);if('suggestion'===_0x2f7b16){_0x5ad3e0['announce'](this['_getMarkerAnnouncementText'](_0x3348cd,'ENTER',_0x59d1d7(_0x327b45)));break;}}});}['_processAttributeChanges'](_0x507065){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1e544a=this['editor'],_0x3cd683=_0x1e544a['model']['document']['differ']['getChanges']();if(0x0==_0x3cd683['length'])return!0x1;const _0x54a0ca=[],_0x9a1e63=_0x3cd683['filter'](_0x5f11cd=>'attribute'==_0x5f11cd['type']),_0x3a16c9=_0x3cd683['filter'](_0x13bd18=>'insert'==_0x13bd18['type']&&'$text'!=_0x13bd18['name']),_0x32a812=_0x3cd683['filter'](_0x27e860=>'remove'==_0x27e860['type']&&'$text'!=_0x27e860['name']);for(const _0x4a7ccb of _0x9a1e63)_0x54a0ca['push']({'key':_0x4a7ccb['attributeKey'],'newValue':_0x4a7ccb['attributeNewValue'],'oldValue':_0x4a7ccb['attributeOldValue'],'range':Zt(_0x4a7ccb['range'],_0x1e544a['model'])});for(const _0x180bfa of _0x3a16c9){const _0x47dd3d=_0x32a812['find'](_0x62930f=>_0x62930f['position']['isEqual'](_0x180bfa['position']));_0x47dd3d&&_0x54a0ca['push']({'key':m,'newValue':_0x180bfa['name'],'oldValue':_0x47dd3d['name'],'range':_0x1e544a['model']['createRangeOn'](_0x180bfa['position']['nodeAfter'])});}return 0x0!=_0x54a0ca['length']&&this['_reduceExistingSuggestions'](_0x507065,_0x54a0ca);}['_processAttributeSuggestions'](_0x2111bf){let _0x548597=!0x1;const _0x4782f8=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1a8bca=>_0x1a8bca['data']['newRange']&&_0x1a8bca['name']['startsWith']('suggestion:attribute:'));for(const _0x34e5fb of _0x4782f8){const {subType:_0x4f21e6,id:_0x4988c9}=this['_splitMarkerName'](_0x34e5fb['name']),_0x1f0391=_0x4f21e6['split']('|')[0x0];for(const _0x39ee57 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x39ee57['id']!=_0x4988c9&&'attribute'==_0x39ee57['type']&&_0x39ee57['data']&&_0x39ee57['data']['key']==_0x1f0391&&_0x39ee57['getFirstRange']()['isIntersecting'](_0x34e5fb['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x39ee57,_0x34e5fb['data']['newRange'],_0x2111bf),_0x548597=!0x0);}return _0x548597;}['recordAttributeChanges'](_0x2cf270){this['_recordAttributeSuggestions']=!0x0,_0x2cf270();}['_isRegisteredAttribute'](_0xf027df){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0xf027df);}['_reduceExistingSuggestions'](_0x9c8056,_0x31441e){if(0x0==_0x31441e['length'])return!0x1;let _0x470d55=!0x1;for(const _0x5d2263 of _0x31441e){const _0x39a46c=this['_findSuggestions'](_0x5d2263['range'],'attribute')['filter'](_0x50e403=>!_0x50e403['meta']['isNextTo'])['map'](_0x578a98=>_0x578a98['suggestion']),_0x107118=_0x5f4035({'newValue':_0x5d2263['newValue']});_0x39a46c['filter'](_0x153700=>{const [_0xdb00cd,_0x210115]=_0x153700['subType']['split']('|');return _0xdb00cd==_0x5d2263['key']&&_0x210115!=_0x107118;})['forEach'](_0x2de606=>{this['_reduceSuggestionAttributeRange'](_0x2de606,_0x5d2263['range'],_0x9c8056),_0x470d55=!0x0;});}return _0x470d55;}['_reduceSuggestionAttributeRange'](_0x457a95,_0x42e347,_0x464e17){const _0x46f2ab=_0x457a95['getFirstRange']()['getDifference'](_0x42e347);0x0!==_0x46f2ab['length']?0x1!==_0x46f2ab['length']?this['_breakSuggestionMarker'](_0x457a95,_0x42e347['start'],_0x42e347['end']):this['_setSuggestionRange'](_0x457a95,_0x46f2ab[0x0]):_0x464e17['removeMarker'](_0x457a95['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5637f9){this['_editor']=_0x5637f9,this['_model']=_0x5637f9['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4f1216,_0x243210,_0x3b3d54,_0x24530e,_0x369ca7,_0x3d22b9,_0x430699){return new x(this['_model'],{'type':_0x4f1216,'subType':_0x243210,'id':_0x3b3d54,'originalSuggestionId':_0x430699,'author':_0x24530e,'creator':_0x24530e,'attributes':_0x369ca7,'onAttributesChange':_0x3d22b9,'onAccept':(..._0x17b3d8)=>this['getSuggestionCallback'](_0x4f1216,_0x243210,'accept')(..._0x17b3d8),'onDiscard':(..._0x8a04c0)=>this['getSuggestionCallback'](_0x4f1216,_0x243210,'discard')(..._0x8a04c0)});}['registerCustomCallback'](_0x25381d,_0x58617d,_0x33aac0,_0x5b3e5f){const _0x3ddeef=_0x25381d+':'+_0x58617d+':'+_0x33aac0;this['_customCallbacks']['set'](_0x3ddeef,_0x5b3e5f);}['getSuggestionCallback'](_0x5616e6,_0x4e3684,_0x5b3334){const _0x22db4f=_0x5616e6+':'+_0x4e3684+':'+_0x5b3334;return this['_customCallbacks']['get'](_0x22db4f)||this['_defaultCallbacks']['get'](_0x5616e6+':'+_0x5b3334);}['_registerDefaultCallbacks'](){const _0xe77193=()=>!0x1,_0x20fc76=_0x185a5f=>{_0x185a5f['sort']((_0x4d57af,_0x561fc6)=>_0x4d57af['start']['isBefore'](_0x561fc6['start'])?0x1:-0x1),this['_model']['change'](_0x3d80b2=>{for(const _0xe890b9 of _0x185a5f){let _0x472a48;_0x472a48=_0xe890b9['end']['isAtEnd']&&_0xe890b9['end']['parent']==_0xe890b9['start']['nodeAfter']?_0x3d80b2['createSelection'](_0xe890b9['start']['nodeAfter'],'on'):_0x3d80b2['createSelection'](_0xe890b9),this['_model']['deleteContent'](_0x472a48,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x28579e=(_0x3eb639,_0x351981)=>{_0x351981&&this['_model']['change'](_0x1e27b3=>{const {commandName:_0x5b83e7,commandParams:_0x505869=[]}=_0x351981,_0x27417e=_0x3eb639['map'](_0x31a917=>(Kt(_0x31a917)&&(_0x31a917=this['_model']['createRange'](_0x31a917['end'])),_0x31a917))['filter'](_0x1c5d7f=>'$graveyard'!==_0x1c5d7f['root']['rootName']);if(_0x27417e['length']<0x1)return;const _0x30a427=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x172565=>_0x4edbf7['fromRange'](_0x172565));_0x1e27b3['setSelection'](_0x27417e);for(const _0x49be06 of this['_editor']['commands']['commands']())_0x49be06['refresh']();_0x505869['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5b83e7,..._0x505869);const _0x2edb12=_0x30a427['filter'](_0x394131=>'$graveyard'!=_0x394131['root']['rootName']);_0x2edb12['length']>0x0&&_0x1e27b3['setSelection'](_0x2edb12);for(const _0x53ceda of _0x30a427)_0x53ceda['detach']();});},_0x5a7dbe=(_0x1cd3a5,_0x4f9007)=>0x1==_0x1cd3a5['length']&&0x1==_0x4f9007['length']&&_0x1cd3a5[0x0]['end']['isEqual'](_0x4f9007[0x0]['start']),_0x5ed7a4=(_0x15499b,_0x9aa3f7,_0x2a926b,_0x4192ed)=>nn(_0x15499b,_0x9aa3f7,_0x2a926b,_0x4192ed)?[_0x15499b,_0x9aa3f7]:nn(_0x9aa3f7,_0x15499b,_0x4192ed,_0x2a926b)?[_0x9aa3f7,_0x15499b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xe77193),this['_defaultCallbacks']['set']('insertion:discard',_0x20fc76),this['_defaultCallbacks']['set']('insertion:join',_0x5a7dbe),this['_defaultCallbacks']['set']('insertion:chain',_0x5ed7a4),this['_defaultCallbacks']['set']('deletion:accept',_0x20fc76),this['_defaultCallbacks']['set']('deletion:discard',_0xe77193),this['_defaultCallbacks']['set']('deletion:join',_0x5a7dbe),this['_defaultCallbacks']['set']('deletion:chain',_0x5ed7a4),this['_defaultCallbacks']['set']('formatInline:accept',_0x28579e),this['_defaultCallbacks']['set']('formatInline:discard',_0xe77193),this['_defaultCallbacks']['set']('formatInline:join',_0x5a7dbe),this['_defaultCallbacks']['set']('formatInline:chain',_0xe77193),this['_defaultCallbacks']['set']('formatBlock:accept',_0x28579e),this['_defaultCallbacks']['set']('formatBlock:discard',_0xe77193),this['_defaultCallbacks']['set']('formatBlock:join',_0x5a7dbe),this['_defaultCallbacks']['set']('formatBlock:chain',_0xe77193),this['_defaultCallbacks']['set']('attribute:accept',_0xe77193),this['_defaultCallbacks']['set']('attribute:discard',(_0x10ffd1,_0x2f0e29)=>{if(!_0x2f0e29)return;const _0x343d81=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x2a4a78=>{if(_0x2f0e29['key']==m)for(const _0x563c37 of _0x10ffd1){const _0x664918=_0x563c37['start']['nodeAfter'],_0x3a15b6=_0x2f0e29['oldValue'];_0x2a4a78['rename'](_0x664918,_0x3a15b6);}else{if(_0x343d81['_isBlockAttribute'](_0x2f0e29['key'])){for(const _0x2fc2ef of _0x10ffd1)void 0x0!==_0x2f0e29['oldValue']?_0x2a4a78['setAttribute'](_0x2f0e29['key'],_0x2f0e29['oldValue'],_0x2fc2ef['start']['nodeAfter']):_0x2a4a78['removeAttribute'](_0x2f0e29['key'],_0x2fc2ef['start']['nodeAfter']);}else{for(const _0x3d529e of _0x10ffd1)_0x2f0e29['oldValue']?_0x2a4a78['setAttribute'](_0x2f0e29['key'],_0x2f0e29['oldValue'],_0x3d529e):_0x2a4a78['removeAttribute'](_0x2f0e29['key'],_0x3d529e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5a7dbe);}}function zt(_0x1f0a1d,_0x33c057,_0x38aefe){for(const _0x1c4e7c of _0x33c057['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1c4e7c['root']==_0x1c4e7c)return!0x1;if(!_0x38aefe['containsItem'](_0x1c4e7c))return!0x1;if(_0x1f0a1d['isObject'](_0x1c4e7c)||_0x1f0a1d['isLimit'](_0x1c4e7c))return!0x0;}return!0x1;}function Kt(_0x4df176){return _0x4df176['end']['parent']==_0x4df176['start']['nodeAfter']&&_0x4df176['end']['isAtStart'];}function Wt(_0x2c15c1,_0x4625a8,_0x340fd0,_0x99ed48){const _0x3e9160=_0x51bf66=>!_0x51bf66['item']['is']('$textProxy')&&!_0x99ed48['isObject'](_0x51bf66['item']),_0x54ed81=_0x2c15c1['start']['getLastMatchingPosition'](_0x3e9160),_0x2f8b2b=_0x2c15c1['end']['getLastMatchingPosition'](_0x3e9160,{'direction':'backward'});return(!_0x2c15c1['start']['isEqual'](_0x54ed81)||!_0x2c15c1['end']['isEqual'](_0x2f8b2b))&&(_0x54ed81['isBefore'](_0x2f8b2b)?_0x340fd0['updateMarker'](_0x4625a8,{'range':_0x340fd0['createRange'](_0x54ed81,_0x2f8b2b)}):_0x340fd0['removeMarker'](_0x4625a8),!0x0);}function Ht(_0x2b07ab){return _0x5f4035(_0x2b07ab);}function Qt(_0x182f35){const _0x4bb680=_0x182f35['start']['nodeAfter'];return _0x4bb680&&_0x4bb680['is']('element');}function Xt(_0x3b3622){return Kt(_0x3b3622)||function(_0xbb8773){return _0xbb8773['start']['parent']==_0xbb8773['end']['nodeBefore']&&_0xbb8773['start']['isAtEnd'];}(_0x3b3622);}function Yt(_0x19628b,_0x30dc00){try{const _0x416396=_0x19628b['getRange']();for(const _0xca583 of _0x30dc00)if(_0x19628b!==_0xca583&&_0x416396&&_0x416396['isIntersecting'](_0xca583['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x25e82f,_0x2bc1cc){return null==_0x25e82f['end']['nodeBefore']&&_0x25e82f['end']['parent']==_0x25e82f['start']['nodeAfter']?tn(_0x25e82f['start']['nodeAfter'],_0x2bc1cc):_0x25e82f;}function tn(_0x2471f9,_0x1851ab){const _0x15428c=_0x1851ab['schema']['isObject'](_0x2471f9)||_0x1851ab['schema']['isSelectable'](_0x2471f9);return _0x1851ab['createRange'](_0x1851ab['createPositionAt'](_0x2471f9,'before'),_0x15428c?_0x1851ab['createPositionAfter'](_0x2471f9):_0x1851ab['createPositionAt'](_0x2471f9,'end'));}function nn(_0x752ba7,_0x37f6e1,_0x20b377,_0x2a0bff){return!!en(_0x752ba7,_0x37f6e1)&&_0x20b377['end']['isEqual'](_0x2a0bff['start']);}function en(_0x415680,_0x19c9c8){if(!_0x415680['_isDataLoaded']||!_0x19c9c8['_isDataLoaded'])return!0x1;const _0x316ce3=new Set(Object['keys'](_0x415680['attributes'])),_0x5a5720=new Set(Object['keys'](_0x19c9c8['attributes']));if(_0x316ce3['delete']('groupId'),_0x5a5720['delete']('groupId'),0x0==_0x316ce3['size']&&0x0==_0x5a5720['size'])return!0x0;if(_0x316ce3['size']!=_0x5a5720['size'])return!0x1;const _0x225b2d={..._0x415680['attributes']},_0x192062={..._0x19c9c8['attributes']};return delete _0x225b2d['groupId'],delete _0x192062['groupId'],JSON['stringify'](_0x225b2d)==JSON['stringify'](_0x192062);}function sn(_0x92118a,_0x9f219c){const _0x4b70e3=on(_0x92118a['attributes']),_0x570fb0=on(_0x9f219c);if(!_0x92118a['_isDataLoaded'])return!0x1;for(const _0x77a735 of Object['keys'](_0x570fb0))if(!_0x3bf56f(_0x4b70e3[_0x77a735],_0x570fb0[_0x77a735]))return!0x1;return!0x0;}function on(_0x4952f3){const _0x3c3a9=Object['assign']({},_0x4952f3);return delete _0x3c3a9['skipNestingCheck'],delete _0x3c3a9['tablePasteChainId'],_0x3c3a9;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x2735f7(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x259df2,_0x54722f,_0x43c5c1,_0x116b67){super(),this['model']=_0x54722f,this['view']=_0x43c5c1,this['commentThreadController']=_0x116b67,this['_editor']=_0x259df2,this['_acceptCommand']=_0x259df2['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x259df2['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x874564,_0x5cfc89)=>_0x874564||_0x5cfc89),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x212649=>_0x212649&&this['_editor']['model']['canEditAt'](_0x54722f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x161feb=>_0x161feb&&this['_editor']['model']['canEditAt'](_0x54722f['getRanges']())),this['_pendingAction']=null,_0x43c5c1['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x43c5c1,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x43c5c1,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x43c5c1,'change:isDirty',()=>{_0x43c5c1['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 _0x3440ed=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3440ed);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0xebe621{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x37e29b,_0x51b38e,_0x3bdb14,_0x47c94c){super(_0x37e29b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x802302(_0x37e29b,o(_0x37e29b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x51b38e['authoredAt']),this['bind']('authoredAt')['to'](_0x51b38e),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',_0x51b38e,'authoredAt',this,'descriptionParts',(_0x5dcf28,_0x223e6f,_0x175733)=>{const _0x2d825e=_0x175733['map'](_0x347ee8=>ls(_0x347ee8['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5dcf28-0x1,_0x51b38e['author']['name'],_0x223e6f?_0x47c94c['formatDateTime'](_0x223e6f):'',new DOMParser()['parseFromString'](_0x2d825e,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5d6f67(),this['focusTracker']=new _0x4c4288(),this['keystrokes']=new _0x17a1db(),this['focusCycler']=new _0x1cef4d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2b62cf=>_0x2b62cf['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x51b38e,this['_localUser']=_0x3bdb14,this['_config']=_0x47c94c,_0x47c94c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3f9d14(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1cf766}=this['_config'];this['commentsListView']=new _0x1cf766(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',_0xcca386=>_0xcca386+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2524d2,_0x44c4f6)=>_0x2524d2||!!_0x44c4f6);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3b584e}=this['_config'],_0x1ef67f=new _0x3b584e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3d3d24=_0x1ef67f['commentInputView'];return _0x1ef67f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3d3d24,'value',(_0x3ae1ed,_0x839345,_0x51138d)=>!!_0x51138d||_0x3ae1ed&&!_0x839345),_0x3d3d24['on']('submit',(_0x5b9220,_0x5bec89)=>{this['fire']('addComment',_0x5bec89),_0x3d3d24['editor']['setData']('');}),_0x3d3d24['on']('cancel',()=>this['focus']()),_0x3d3d24['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1ef67f;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x1e1dfa,_0x337380,_0x150bc0,_0x15731a){super(_0x1e1dfa,_0x337380,_0x150bc0,_0x15731a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1cf586=>_0x1cf586&&_0x1cf586[0x0]?_0x1cf586[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x320880,_0xc72c4a)=>{let _0x199bd7='';for(const _0x3955a5 of _0x320880)_0x199bd7+='<p>'+ls(_0x3955a5['content'],_0x3955a5['color'])+'</p>';return _0xc72c4a?_0x199bd7:_0x4df02e(_0x199bd7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x15731a['SuggestionView'](_0x1e1dfa,_0x337380,{'formatDateTime':_0x15731a['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 _0x441071=this['bindTemplate'],_0x3b3143=[this['suggestionView']];return this['commentsListView']&&_0x3b3143['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3b3143['push'](this['commentThreadInputView']),_0x3b3143['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x441071['if']('isActive','ck-suggestion-wrapper--active'),_0x441071['to']('type',_0x5067a1=>'ck-suggestion-'+_0x5067a1),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':_0x441071['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3b3143};}['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 _0xebe621{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x11edc7,_0x1a99dd,_0x46c561){super(_0x11edc7),this['_model']=_0x1a99dd,this['_config']=_0x46c561,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1a99dd),this['acceptButton']=this['_createButton'](o(_0x11edc7,'Accept\x20suggestion'),_0x461e67,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x11edc7,'Discard\x20suggestion'),_0x5c46ad,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x39b497(_0x11edc7,_0x1a99dd['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5d6f67([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4c4288(),this['keystrokes']=new _0x17a1db(),this['focusCycler']=new _0x1cef4d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x19d065=>_0x19d065['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3fbd39=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3fbd39['innerHTML']=this['description'],this['on']('change:description',(_0x13c376,_0x13080b,_0x41d842)=>{_0x3fbd39['innerHTML']=_0x41d842;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x269caf=this['bindTemplate'],_0x119e23=[{'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':_0x269caf['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x269caf['to']('authoredAt',_0xfe1fe5=>this['_config']['formatDateTime'](_0xfe1fe5))}]}]},{'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']&&_0x119e23['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':_0x119e23}]};}['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'](_0xf6a98a,_0x490ef4,_0x4a5c12,_0x591128,_0x505690){const _0xfad716=new _0x3236f3(this['locale']);return _0xfad716['set']({'label':_0xf6a98a,'icon':_0x490ef4,'tooltip':!0x0,'tooltipPosition':_0x505690}),_0xfad716['extendTemplate']({'attributes':{'class':_0x4a5c12}}),_0xfad716['on']('execute',()=>{this['fire'](_0x591128,this['_model']['id']);}),_0xfad716;}['_setupKeyboardNavigation'](){const _0x5d1519=this['element'];this['keystrokes']['listenTo'](_0x5d1519);for(const _0x55bbc0 of this['focusables'])this['focusTracker']['add'](_0x55bbc0['element']),this['keystrokes']['listenTo'](_0x55bbc0['element']);this['keystrokes']['set']('enter',(_0x31b8e0,_0x246ce0)=>{_0x5d1519===_0x31b8e0['target']&&(this['focusCycler']['focusFirst'](),_0x246ce0());}),this['keystrokes']['set']('esc',(_0x47691a,_0x6c38fe)=>{_0x5d1519!==_0x47691a['target']&&(this['focus'](),_0x6c38fe());});}}class u extends _0x1a5913{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x2fa677,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1ba2b7){super(_0x1ba2b7),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2f0a7e=this['editor']['config'];_0x2f0a7e['define']('trackChanges.SuggestionThreadView',fe),_0x2f0a7e['define']('trackChanges.SuggestionView',we),_0x2f0a7e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2f0a7e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x185e47,_0x589c3e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x8d3988,_0x11ff11]of this['_handleControllerBuffer']){const _0x9dfe8a=this['_suggestionToController']['has'](_0x8d3988);_0x9dfe8a||_0x11ff11?_0x9dfe8a&&_0x11ff11&&this['_destroyController'](_0x8d3988):this['_initializeController'](_0x8d3988);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x185e47,_0x589c3e);}['init'](){const _0x1f19e0=this['editor'],_0x45f888=_0x1f19e0['plugins']['get']('TrackChangesEditing'),_0x239033=_0x1f19e0['plugins']['get']('Annotations'),_0x7d5956=_0x1f19e0['plugins']['get']('EditorAnnotations'),_0x147370=_0x1f19e0['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x7d5956['addSourceCollector'](()=>{const _0x52de8c=[];for(const [_0xcf3bfd,_0x2153a1]of Array['from'](this['_suggestionToController'])){const _0x5a84cf=_0xcf3bfd['getAllAdjacentSuggestions'](),_0x154159=[];for(const _0x239750 of _0x5a84cf){if(!_0x239750['isInContent'])continue;if(_0x239750['isMultiRange']){_0x154159['push'](..._0x239750['getRanges']());continue;}const _0x5e0f42=_0x239750['getFirstRange']();if(_0x154159['length']>0x0){const _0x247605=_0x154159[0x0]['getJoined'](_0x5e0f42);if(_0x247605){_0x154159[0x0]=_0x247605;continue;}}_0x154159['push'](_0x5e0f42);}_0x52de8c['push']([_0x2153a1['view'],_0x154159]);}return _0x52de8c;}),this['listenTo'](_0x45f888,'suggestionLoaded',(_0x277479,_0x47dc30)=>{this['listenTo'](_0x47dc30,'change:previous',(_0x3c411a,_0x3a97e5,_0x195295,_0x417d42)=>{_0x47dc30['isInContent']&&(null==_0x195295?(this['_updateController'](_0x417d42['head']),this['_handleSuggestionControllerDelayed'](_0x47dc30,!0x1)):(this['_updateController'](_0x195295['head']),null==_0x417d42&&this['_handleSuggestionControllerDelayed'](_0x47dc30,!0x0)));}),null!==_0x47dc30['previous']?this['_updateController'](_0x47dc30['head']):this['_handleSuggestionControllerDelayed'](_0x47dc30,!0x1);}),this['listenTo'](_0x45f888,'suggestionUnloaded',(_0x2f5179,_0xeccd3c,_0x5013e2)=>{this['stopListening'](_0xeccd3c,'change:previous'),this['_handleControllerBuffer']['delete'](_0xeccd3c),this['_suggestionToController']['has'](_0xeccd3c)&&this['_destroyController'](_0xeccd3c),_0x5013e2&&this['_updateController'](_0x5013e2['head']);}),this['listenTo'](_0x45f888,'suggestionChanged',(_0x509771,_0x10a9f1)=>{this['_updateController'](_0x10a9f1);}),this['listenTo'](_0x239033,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x147370,'addComment',(_0x49e37e,{threadId:_0x2c132a,isFromAdapter:_0x5058ea})=>{if(_0x5058ea||!_0x45f888['hasSuggestion'](_0x2c132a))return;const _0x4b1c8d=_0x45f888['getSuggestion'](_0x2c132a);this['_suggestionToController']['get'](_0x4b1c8d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4a3828=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x267db4;for(const _0x18934c in _0x4a3828){const _0x4ecdd2=_0x18934c,_0x519e87=_0x4a3828[_0x4ecdd2];if('trackChangesLicenseKeyValid'==_0x519e87||'trackChangesLicenseKeyInvalid'==_0x519e87||'trackChangesLicenseKeyExpired'==_0x519e87||'trackChangesLicenseKeyDomainLimit'==_0x519e87||'trackChangesLicenseKeyNotAllowed'==_0x519e87||'trackChangesLicenseKeyEvaluationLimit'==_0x519e87||'trackChangesLicenseKeyUsageLimit'==_0x519e87){delete _0x4a3828[_0x4ecdd2],_0x267db4=_0x519e87,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x267db4&&_0x4a3828['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x267db4&&_0x4a3828['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x267db4&&_0x4a3828['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x267db4&&_0x4a3828['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x267db4&&_0x4a3828['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x267db4&&_0x4a3828['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2f617e){const _0x9b442e=this['_suggestionToController']['get'](_0x2f617e);if(!_0x9b442e)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x9b442e['view'])||null;}['getSuggestionForAnnotation'](_0x3e624e){const _0x1a37a6=this['_viewToController']['get'](_0x3e624e['innerView']);return _0x1a37a6?_0x1a37a6['model']:null;}['_refreshActiveMarkers'](){const _0x170b38=this['editor']['plugins']['get']('Annotations'),_0x1f1ce1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x244371=Array['from'](_0x170b38['activeAnnotations'],_0x5b92f4=>_0x5b92f4['innerView'])['filter'](_0x3c1b0d=>this['_viewToController']['has'](_0x3c1b0d)),_0x353dbd=[];for(const _0x46a790 of _0x244371){const _0x5b07fe=this['_viewToController']['get'](_0x46a790)['model']['getAllAdjacentSuggestions']();_0x353dbd['push'](..._0x5b07fe['reduce']((_0x4280f3,_0x52f72e)=>[..._0x4280f3,..._0x52f72e['getMarkerNames']()],[]));}_0x1f1ce1['activeMarkers']=_0x353dbd;}['_addUIComponentsToFactory'](){const _0x5bc5bb=this['editor'],_0x5054d0=_0x5bc5bb['locale'],_0x46fac1=o(_0x5054d0,'Track\x20changes'),_0x15b3ac=new _0x5bf6cf([{'type':'switchbutton','model':new _0xd08fef({'withText':!0x0,'isToggleable':!0x0,'label':_0x46fac1,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xd08fef({'withText':!0x0,'label':o(_0x5054d0,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xd08fef({'withText':!0x0,'label':o(_0x5054d0,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xd08fef({'withText':!0x0,'label':o(_0x5054d0,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xd08fef({'withText':!0x0,'label':o(_0x5054d0,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5bc5bb['plugins']['has']('TrackChangesPreview')&&_0x15b3ac['addMany']([{'type':'separator'},{'type':'button','model':new _0xd08fef({'withText':!0x0,'label':o(_0x5054d0,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x25e40d of _0x15b3ac)if(ke(_0x25e40d)){const _0x36f0a9=_0x5bc5bb['commands']['get'](_0x25e40d['model']['commandName']);_0x25e40d['model']['bind']('isOn','isEnabled')['to'](_0x36f0a9,'value','isEnabled');}_0x5bc5bb['ui']['componentFactory']['add']('trackChanges',_0x5dcfd9=>this['_createToolbarButton'](_0x5dcfd9,_0x15b3ac,_0x46fac1)),_0x5bc5bb['ui']['componentFactory']['add']('menuBar:trackChanges',_0x6c8dc3=>this['_createMenuBarMenu'](_0x6c8dc3,_0x15b3ac,_0x46fac1));}['_createToolbarButton'](_0x4301e5,_0x520ae7,_0x2895a5){const _0x1b23e8=_0x2d6ddd(_0x4301e5,_0x559023),_0x4a5fb9=this['editor']['commands']['get']('trackChanges');_0x1b23e8['buttonView']['set']({'tooltip':_0x2895a5,'label':_0x2895a5,'icon':_0x18a70b}),_0x1b23e8['buttonView']['bind']('isOn')['to'](_0x4a5fb9,'value'),_0x1b23e8['buttonView']['on']('execute',()=>{_0x4a5fb9['execute'](),this['editor']['editing']['view']['focus']();}),_0x24268b(_0x1b23e8,_0x520ae7,{'role':'menu'});const _0x22fdba=[];for(const _0x81286c of _0x520ae7)ke(_0x81286c)&&_0x22fdba['push'](this['editor']['commands']['get'](_0x81286c['model']['commandName']));const _0x35a9d2=_0x1b23e8['buttonView'];return _0x35a9d2['actionView']['unbind']('isEnabled'),_0x35a9d2['arrowView']['unbind']('isEnabled'),_0x35a9d2['actionView']['bind']('isEnabled')['to'](_0x4a5fb9,'isEnabled'),_0x35a9d2['arrowView']['bind']('isEnabled')['toMany'](_0x22fdba,'isEnabled',(..._0x5b5843)=>_0x5b5843['some'](_0x3bb3fa=>_0x3bb3fa)),_0x1b23e8['on']('execute',_0x37ec27=>{this['editor']['execute'](_0x37ec27['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1b23e8;}['_createMenuBarMenu'](_0xa9ef54,_0x4f3e8e,_0x334f56){const _0x419f46=new _0x186d43(_0xa9ef54),_0x57a9af=this['editor']['commands']['get']('trackChanges');_0x419f46['buttonView']['set']({'label':_0x334f56,'icon':_0x18a70b});const _0x143372=new _0x5ab945(_0xa9ef54);for(const _0x392381 of _0x4f3e8e){if('separator'==_0x392381['type']){_0x143372['items']['add'](new _0x2993de(_0xa9ef54));continue;}const _0x2c44de=new _0x4d059e(_0xa9ef54,_0x419f46),_0x4abae3=new _0x3eb356(_0xa9ef54),_0x338ade=_0x392381['model'];_0x4abae3['bind'](...Object['keys'](_0x338ade))['to'](_0x338ade),_0x4abae3['delegate']('execute')['to'](_0x419f46),_0x4abae3['on']('execute',()=>{this['editor']['execute'](_0x338ade['commandName']),this['editor']['editing']['view']['focus']();}),_0x2c44de['children']['add'](_0x4abae3),_0x143372['items']['add'](_0x2c44de);}return _0x419f46['bind']('isEnabled')['to'](_0x57a9af,'isEnabled'),_0x419f46['panelView']['children']['add'](_0x143372),_0x419f46;}['_initializeController'](_0x111c7c){const _0x3d50f1=this['editor'],_0x3e778e=_0x3d50f1['config'],_0x2853ac=_0x3d50f1['plugins']['get']('Annotations'),_0x43a62c=_0x3d50f1['plugins']['get']('CommentsRepository'),_0x3f8e4e=_0x3d50f1['plugins']['get']('EditorAnnotations'),_0x379c85=_0x3d50f1['plugins']['get'](_0x2fa677)['me'],_0xe4a622=_0x3e778e['get']('trackChanges')['SuggestionThreadView'],_0xfac551=_0x3e778e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x24e6e6,CommentThreadInputView:_0x185f26}=_0x3d50f1['plugins']['get']('CommentsUI');let _0x58e4e6,_0x472cfe,_0x391c0d;this['_annotationViews']['has'](_0x111c7c['id'])?(_0x472cfe=this['_annotationViews']['get'](_0x111c7c['id']),_0x58e4e6=_0x472cfe['mainView']):(_0x58e4e6=new _0xe4a622(_0x3d50f1['locale'],_0x111c7c,_0x379c85,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3e778e['get']('comments.editorConfig'),'licenseKey':_0x3e778e['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3e778e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3e778e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3e778e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5a3585(_0x3e778e['get']('locale'),_0x3d50f1['locale']),'CommentView':_0x3e778e['get']('comments')['CommentView'],'CommentsListView':_0x24e6e6,'CommentThreadInputView':_0x185f26,'SuggestionView':_0xfac551}),_0x58e4e6['suggestionView']['acceptButton']['on']('execute',()=>{_0x3d50f1['editing']['view']['focus']();}),_0x58e4e6['suggestionView']['discardButton']['on']('execute',()=>{_0x3d50f1['editing']['view']['focus']();}),_0x472cfe=_0x2853ac['createAnnotationView'](this['editor']['locale'],_0x58e4e6),_0x472cfe['bind']('isDirty')['to'](_0x58e4e6,'isDirty'),_0x472cfe['bind']('length')['to'](_0x58e4e6),_0x472cfe['bind']('type')['to'](_0x58e4e6,'type',_0x35434d=>'suggestion-'+_0x35434d),_0x58e4e6['on']('escape',()=>{_0x391c0d['fire']('escape');}),this['_annotationViews']['set'](_0x111c7c['id'],_0x472cfe));const _0x365b66=_0x43a62c['createCommentThreadController'](_0x111c7c['commentThread'],_0x58e4e6),_0x4a6247=new pe(_0x3d50f1,_0x111c7c,_0x58e4e6,_0x365b66),_0x41d4e2=_0x111c7c['getAllAdjacentSuggestions']()['filter'](_0x5bbdd8=>_0x5bbdd8['isInContent']);_0x58e4e6['descriptionParts']=_0x3d50f1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x41d4e2),this['_suggestionToController']['set'](_0x111c7c,_0x4a6247),this['_viewToController']['set'](_0x58e4e6,_0x4a6247);const _0x20c618=()=>{const _0x553ec2=[],_0x5c1217=_0x111c7c['getAllAdjacentSuggestions']()['filter'](_0x48a995=>_0x48a995['isInContent']);for(const _0x4eaad8 of _0x5c1217)_0x553ec2['push'](..._0x4eaad8['getMarkers']());return _0x214b7a(_0x3d50f1['editing'],_0x553ec2);};_0x391c0d=_0x2853ac['createAnnotation']({'view':_0x472cfe,'target':_0x20c618,'type':()=>'suggestion-'+_0x4a6247['view']['type'],'isVisible':!!_0x20c618()}),_0x43a62c['_bindAnnotationToEditors'](_0x58e4e6,_0x391c0d),_0x2853ac['add'](_0x391c0d),_0x3f8e4e['registerAnnotation'](_0x391c0d);}['_destroyController'](_0x323a2e){const _0x584955=this['editor']['plugins']['get']('CommentsRepository'),_0x1b3d46=this['editor']['plugins']['get']('Annotations'),_0x163153=this['_suggestionToController']['get'](_0x323a2e),_0x345318=_0x163153['view'],_0x208d9e=_0x1b3d46['getByInnerView'](_0x345318);_0x584955['_unbindEditors'](_0x345318),_0x208d9e&&_0x1b3d46['remove'](_0x208d9e),this['_suggestionToController']['delete'](_0x323a2e),this['_viewToController']['delete'](_0x345318),_0x163153['destroy']();}['_updateController'](_0x1568f3){if(!_0x1568f3['isInContent']||!this['_suggestionToController']['has'](_0x1568f3))return;const _0x21cc21=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14e45c=this['_suggestionToController']['get'](_0x1568f3),_0x23e20d=_0x1568f3['getAllAdjacentSuggestions']();_0x14e45c['view']['descriptionParts']=_0x21cc21['descriptionFactory']['getDescriptions'](_0x23e20d);}['destroy'](){for(const _0x2efc4a of this['_suggestionToController']['keys']())this['_destroyController'](_0x2efc4a);for(const _0x594b66 of this['_annotationViews']['values']())_0x594b66['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2a9148){return'model'in _0x2a9148;}class Ne extends _0x1a5913{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1cf8f6){this['editor']['plugins']['get'](d)['adapter']=_0x1cf8f6;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x4aa4d8){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x4aa4d8);}['getSuggestions']({skipNotAttached:_0x178663=!0x1,toJSON:_0x3cff7d=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x178663,'toJSON':_0x3cff7d});}['getSuggestion'](_0x7d0553){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x7d0553);}}const p=['Pagination'];class re extends _0x1a5913{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x53d924=this['editor'];if(_0x53d924['config']['define']('trackChangesData.editorCreator',_0x339e03=>{const _0xeb178c=_0x53d924['model']['document']['getRootNames']()['reduce']((_0x1b5d76,_0x2407de)=>(_0x1b5d76[_0x2407de]='',_0x1b5d76),{});return _0x53d924['constructor']['create'](_0xeb178c,_0x339e03);}),'function'!=typeof _0x53d924['config']['get']('trackChangesData')['editorCreator'])throw new _0x39abb4('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2c3f93){return P(this['editor'],!0x0,_0x2c3f93);}['getDataWithDiscardedSuggestions'](_0x151811){return P(this['editor'],!0x1,_0x151811);}}class Fe extends _0x1a5913{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b381e){function _0x5bd0dc(_0x23aff1){return _0x23aff1['map'](_0x1c1a01=>String['fromCharCode'](_0x1c1a01))['join']('');}super(_0x1b381e),this['result']='end',_0x1b381e[_0x5bd0dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5bd0dc([0x76,0x69,0x65,0x77])][_0x5bd0dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5bd0dc([0x61,0x75,0x74,0x6f]),_0x1b381e[_0x5bd0dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5bd0dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5bd0dc([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5bd0dc([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5bd0dc([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(_0x312dfa){return void 0x0!==_0x312dfa['getRootsAttributes'];}async function P(_0x39b91e,_0xba487e,_0x2bb0d4){const _0x15d6e5=_0x37d4ac(_0x39b91e,p);_0x15d6e5['plugins']['push'](d,Fe),_0x15d6e5['rootsAttributes']=De(_0x39b91e)?_0x39b91e['getRootsAttributes']():void 0x0;const _0x10d09b=document['createDocumentFragment'](),_0xabf57e=_0x39b91e['config']['get']('trackChangesData')['editorCreator'],_0x25bba3=await _0xabf57e(_0x15d6e5,()=>function(_0x17fa56){const _0x2f0122=document['createElement']('div');return _0x17fa56['appendChild'](_0x2f0122),_0x2f0122;}(_0x10d09b));!function(_0x5cbe88,_0x324b2c){const _0x5524c7=_0x5cbe88['model']['document']['getRootNames']()['reduce']((_0x4e8bb4,_0x409d63)=>(_0x4e8bb4[_0x409d63]=_0x5cbe88['data']['get']({'rootName':_0x409d63}),_0x4e8bb4),{}),_0x133fb8=_0x5cbe88['plugins']['get']('Users')['users']['map'](_0x2046eb=>({'id':_0x2046eb['id'],'name':_0x2046eb['name']})),_0x3de09e=_0x5cbe88['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x46a4b7=_0x5cbe88['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1051d3=_0x324b2c['plugins']['get']('Users'),_0x281721=_0x324b2c['plugins']['get']('TrackChangesEditing'),_0x2a5f1a=_0x324b2c['plugins']['get']('CommentsRepository');for(const _0x29d7f4 of _0x2a5f1a['getCommentThreads']())_0x29d7f4['remove']();for(const _0x360334 of _0x133fb8)_0x1051d3['getUser'](_0x360334['id'])||_0x1051d3['addUser'](_0x360334);_0x1051d3['me']||_0x1051d3['useAnonymousUser']();for(const _0x46efe6 of _0x46a4b7)_0x2a5f1a['addCommentThread'](_0x46efe6);for(const _0x360ba7 of _0x3de09e)_0x281721['addSuggestionData'](_0x360ba7);_0x324b2c['data']['set'](_0x5524c7);}(_0x39b91e,_0x25bba3),_0x25bba3['execute'](_0xba487e?'acceptAllSuggestions':'discardAllSuggestions');const _0x5f20e3=De(_0x25bba3)?_0x25bba3['getFullData'](_0x2bb0d4):_0x25bba3['data']['get'](_0x2bb0d4);return await _0x25bba3['destroy'](),_0x5f20e3;}class Me extends _0xebe621{['options'];constructor(_0x5a634f,_0x128b23){super(_0x5a634f),this['options']=_0x128b23,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'](_0x503079,_0x2e91fb){if(!this['element'])return;const _0xfa6e60=[];for(const [_0x2f012f,_0x1916ef]of _0x503079){const _0x47a238=document['createElement']('div');_0x47a238['setAttribute']('data-ck-root-name',_0x2f012f),_0x47a238['className']=_0x1916ef['classes']+'\x20ck-track-changes-preview__root-container',_0x47a238['innerHTML']=_0x1916ef['content'],_0xfa6e60['push'](_0x47a238);}_0x2e91fb(this['element'],_0xfa6e60),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0xa8ba53{constructor(_0x441202){super(_0x441202),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x39c297=this['editor'],_0x4fc40c=_0x39c297['locale'],_0xcde0a8=_0x39c297['plugins']['get']('Dialog');let _0x33e4ff;const _0x44d205=function(_0x4ce6b8){const _0x3d0980={};if('editables'in _0x4ce6b8['ui']['view']){for(const [_0x406a5f,_0x558dfd]of Object['entries'](_0x4ce6b8['ui']['view']['editables']))_0x3d0980[_0x406a5f]=_0x558dfd['element'];}else _0x3d0980[_0x4ce6b8['model']['document']['getRootNames']()[0x0]]=_0x4ce6b8['ui']['view']['editable']['element'];return _0x3d0980;}(_0x39c297),_0x9941eb=function(_0x1bf07f){let _0x12ef83=0x0;for(const _0x192c9e of Object['values'](_0x1bf07f))_0x12ef83=Math['max'](_0x12ef83,_0x192c9e['getBoundingClientRect']()['width']);let _0x57259b=0x0;for(const _0x3fa774 of Object['values'](_0x1bf07f))_0x57259b+=_0x3fa774['getBoundingClientRect']()['height'];const _0x36b88e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x36e3d7=Math['min'](_0x57259b,_0x36b88e);return{'width':_0x12ef83,'height':_0x36e3d7};}(_0x44d205);_0xcde0a8['show']({'id':'finalContentPreview','title':o(_0x4fc40c,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x4fc40c,{'dialogRects':_0x9941eb}),'onHide':()=>{_0x33e4ff['detachFromDom']();},'onShow':()=>{_0x39c297['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5445d1=>{const _0x5224af=this['_standarizeRootsData'](_0x5445d1,_0x39c297,_0x44d205);_0xcde0a8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5224af,_0x39c297['config']['get']('trackChanges.preview.renderFunction'));}),_0x33e4ff=new _0x26feba(_0x4fc40c,[_0xcde0a8['view']]),_0x33e4ff['attachToDom'](),_0x33e4ff['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x39c297['once']('destroy',()=>{_0x33e4ff['detachFromDom']();});const _0x32afe9=_0xcde0a8['view']['headerView']['class'];_0xcde0a8['view']['headerView']['class']=_0x32afe9?_0x32afe9+'\x20ck-reset_all':'ck-reset_all',_0xcde0a8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xcde0a8['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x59f2aa=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2270c5=_0x59f2aa['previewMode'],_0x51fae3={};if('$labels'===_0x2270c5){for(const _0x38bbc8 of _0x59f2aa['getMergeFieldsIds']())_0x51fae3[_0x38bbc8]=_0x59f2aa['getLabel'](_0x38bbc8)||_0x38bbc8;}else{const _0x2240b8='$defaultValues'===_0x2270c5?_0x59f2aa['getDefaultValues']():_0x59f2aa['getDataSetValues'](_0x2270c5,!0x0);for(const _0x2b5280 of Object['entries'](_0x2240b8)){const [_0x392423,_0x4a3732]=_0x2b5280;_0x51fae3[_0x392423]=null!==_0x4a3732?_0x4a3732:_0x59f2aa['getLabel'](_0x392423)||_0x392423;}}return{'mergeFieldsData':_0x51fae3};}['_standarizeRootsData'](_0x24704e,_0x574bf3,_0x24fdba){let _0x146ae9;if('string'==typeof _0x24704e){const _0x459f90=_0x574bf3['model']['document']['getRootNames']()[0x0];_0x146ae9={[_0x459f90]:_0x24704e};}else _0x146ae9=_0x24704e;const _0x6cfdb7=this['_fixMediaEmbeds'](_0x146ae9,_0x574bf3),_0x1b9682=function(_0x431bca,_0x31bd12){for(const [_0x2cd204,_0x2b8f61]of _0x431bca)_0x2b8f61['classes']=_0x31bd12[_0x2cd204]['classList']['value']['replace']('ck-focused','');return _0x431bca;}(this['_sortRoots'](_0x574bf3)['reduce']((_0x770b95,_0x2e0fbb)=>(_0x770b95['push']([_0x2e0fbb,{'content':_0x6cfdb7[_0x2e0fbb],'classes':''}]),_0x770b95),[]),_0x24fdba);return _0x1b9682;}['_fixMediaEmbeds'](_0x44f15b,_0xc4371d){if(!_0xc4371d['plugins']['has']('MediaEmbedEditing'))return _0x44f15b;const _0x325816=_0xc4371d['plugins']['get']('MediaEmbedEditing');for(const [_0x3c1005,_0x1db8fd]of Object['entries'](_0x44f15b)){const _0x4d9da9=document['createElement']('div');_0x4d9da9['innerHTML']=_0x1db8fd,(_0x4d9da9['querySelectorAll']('figure.media')['forEach'](_0x42311e=>{const _0x157037=_0x42311e['querySelector']('oembed');if(_0x157037){const _0x4dff67=_0x157037['getAttribute']('url');if(_0x4dff67){const _0x3f56d2=_0x325816['registry']['getMediaViewElement'](new _0x38dac4(_0xc4371d['editing']['view']['document']),_0x4dff67,{'elementName':'','renderForEditingView':!0x0}),_0x336ae9=document['createElement']('div');_0x336ae9['classList']['add']('ck-media__wrapper'),_0x3f56d2['render'](_0x336ae9,_0xc4371d['editing']['view']['domConverter']),_0x157037['replaceWith'](_0x336ae9);}}}),_0x44f15b[_0x3c1005]=_0x4d9da9['innerHTML']);}return _0x44f15b;}['_sortRoots'](_0x22c613){if(!function(_0x52db39){return void 0x0!==_0x52db39['getRootsAttributes'];}(_0x22c613))return _0x22c613['model']['document']['getRootNames']();const _0x13c9e6=[],_0x44936f=new Map();for(const _0x12f18a of _0x22c613['model']['document']['getRootNames']()){const _0x444c73=_0x22c613['editing']['view']['getDomRoot'](_0x12f18a)['getClientRects']()['item'](0x0);_0x13c9e6['push'](_0x12f18a),_0x44936f['set'](_0x12f18a,_0x444c73);}return _0x13c9e6['sort']((_0x4ab5ae,_0x85d142)=>{const _0x2ac90d=_0x44936f['get'](_0x4ab5ae),_0x360b17=_0x44936f['get'](_0x85d142);return _0x2ac90d['y']-_0x360b17['y']||_0x2ac90d['x']-_0x360b17['x'];}),_0x13c9e6;}}class Ue extends _0x1a5913{static get['requires'](){return[re,_0x4602a7];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5800a0){super(_0x5800a0),_0x5800a0['commands']['add']('previewFinalContent',new te(this['editor'])),_0x5800a0['config']['define']('trackChanges.preview.renderFunction',(_0x5f42a2,_0x3f5fb0)=>{for(const _0x3766ef of _0x3f5fb0)_0x5f42a2['appendChild'](_0x3766ef);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|