@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20251130.0 → 0.0.0-nightly-20251201.0
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
|
-
_0x3a7d6d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x19dbac,_0x1a65df){super(),this['id']=_0x1a65df['id'],this['type']=_0x1a65df['type'],this['subType']=_0x1a65df['subType']||null,this['author']=_0x1a65df['author'],this['creator']=_0x1a65df['creator']||_0x1a65df['author'],this['isExternal']=Boolean(_0x1a65df['attributes']&&_0x1a65df['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1a65df['originalSuggestionId']||null,this['_model']=_0x19dbac,this['_onAccept']=_0x1a65df['onAccept'],this['_onDiscard']=_0x1a65df['onDiscard'],this['_onAttributesChange']=_0x1a65df['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1a65df['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 _0x418f0d=this;for(;_0x418f0d['previous'];)_0x418f0d=_0x418f0d['previous'];return _0x418f0d;}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'](_0x1bf65f){this['_markerNames']['add'](_0x1bf65f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x14b82b=>this['_model']['markers']['get'](_0x14b82b))['filter'](_0x5b742c=>_0x5b742c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4819c8=>{for(const _0x4d4299 of this['getMarkers']())_0x4819c8['removeMarker'](_0x4d4299);}),this['_markerNames']['clear']();}['removeMarker'](_0x30ae04){this['_model']['change'](_0x6f6fd3=>{_0x6f6fd3['removeMarker'](_0x30ae04);}),this['_markerNames']['delete'](_0x30ae04);}['addRange'](_0x2bc0e1){const _0x315b6b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x315b6b),this['_model']['change'](_0x187094=>{_0x187094['addMarker'](_0x315b6b,{'range':_0x2bc0e1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x452ef5){for(const _0x542fdd of this['getRanges']())if(_0x542fdd['isIntersecting'](_0x452ef5))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x201294=>_0x201294['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x373293,_0x1e9d9c)=>[..._0x373293,..._0x1e9d9c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xbbaf7b=this['getRanges']();if(0x1!=_0xbbaf7b['length'])return null;const _0x51e75e=_0xbbaf7b[0x0],_0x2365df=_0x51e75e['start']['nodeAfter'],_0x35f635=_0x51e75e['end']['nodeBefore'];return _0x2365df instanceof _0x295885?_0x2365df!=_0x35f635?null:_0x2365df: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 _0x245097=[];let _0x8e0038=this['head'];for(;_0x8e0038;)_0x245097['push'](_0x8e0038),_0x8e0038=_0x8e0038['next'];return _0x245097;}['setAttribute'](_0x1f0630,_0xfa3f3e){const _0xa55fd0=_0x3ee329(this['attributes']);_0x561b10(_0xa55fd0,_0x1f0630,_0xfa3f3e),_0x137979(_0xa55fd0,this['attributes'])||(this['attributes']=_0xa55fd0,this['_onAttributesChange'](_0xa55fd0));}['removeAttribute'](_0xa5e4a8){const _0x4195f8=_0x3ee329(this['attributes']);_0x5a13fe(_0x4195f8,_0xa5e4a8),_0x137979(_0x4195f8,this['attributes'])||(this['attributes']=_0x4195f8,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 _0x8ed52d()['substr'](0x1,0x5);}}function o(_0x5aa4cb,_0x562d72,_0x3f908b){const _0x78228a=_0x5aa4cb['t'],t=_0x5aa4cb['t'];switch(_0x562d72){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',_0x3f908b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3f908b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3f908b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3f908b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3f908b);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',_0x3f908b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3f908b);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',_0x3f908b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3f908b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3f908b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3f908b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3f908b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3f908b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3f908b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3f908b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3f908b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3f908b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3f908b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3f908b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3f908b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3f908b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3f908b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3f908b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3f908b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3f908b);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'},_0x3f908b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3f908b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3f908b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3f908b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3f908b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3f908b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3f908b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3f908b);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'},_0x3f908b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3f908b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3f908b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3f908b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3f908b);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'},_0x3f908b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3f908b);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'},_0x3f908b);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_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'},_0x3f908b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3f908b);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'},_0x3f908b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3f908b);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'},_0x3f908b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3f908b);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x3f908b);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x3f908b);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x3f908b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3f908b);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'},_0x3f908b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3f908b);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 _0x78228a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3f908b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x78228a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3f908b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3f908b);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'},_0x3f908b);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'},_0x3f908b);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'},_0x3f908b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x562d72;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3b36df,_0x18e36f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3b36df,this['_locale']=_0x18e36f;}['getDescriptions'](_0x46d505){const _0x30ebae=[],_0x33c267=new Set(),_0x10163d=new Set();for(let _0x398666=0x0;_0x398666<_0x46d505['length'];_0x398666++){const _0x44ad57=_0x46d505[_0x398666];if(!_0x44ad57['isInContent'])continue;const _0x4d256f=this['_handleCustomCallbackDescription'](_0x44ad57);if(_0x4d256f){if(null!=_0x44ad57['subType']){if(_0x33c267['has'](_0x44ad57['subType']))continue;_0x33c267['add'](_0x44ad57['subType']);}_0x30ebae['push'](_0x4d256f);}else{if('attribute'==_0x44ad57['type']){const _0x182f71=_0x44ad57['data']['key'];if(_0x10163d['has'](_0x182f71))continue;_0x10163d['add'](_0x44ad57['data']['key']),_0x182f71==m?this['_handleRenameSuggestionDescription'](_0x30ebae,_0x44ad57):this['_handleAttributeSuggestionDescription'](_0x30ebae,_0x44ad57);continue;}'insertion'!=_0x44ad57['type']&&'deletion'!=_0x44ad57['type']||this['_handleInsertRemoveSuggestionDescription'](_0x30ebae,_0x44ad57,_0x46d505[_0x398666+0x1]);}}return this['_resolveDescriptionItems'](_0x30ebae);}['registerDescriptionCallback'](_0x5b5d76){this['_customCallbacks']['push'](_0x5b5d76);}['registerElementLabel'](_0x417c3a,_0x5b08b2,_0x300f1c=_0x2ea691['normal']){'function'==typeof _0x417c3a?_0x2c1cc0(this['_itemLabelsCallbacks'],{'matchingCallback':_0x417c3a,'label':_0x5b08b2,'priority':_0x300f1c}):this['_itemLabels']['set'](_0x417c3a,_0x5b08b2);}['registerAttributeLabel'](_0x45e48e,_0x29ceb0){this['_attributeLabels']['set'](_0x45e48e,_0x29ceb0);}['getItemLabel'](_0x22d720,_0x4ea8f8=0x1){let _0x253e7a;for(const _0x1d7d31 of this['_itemLabelsCallbacks'])if(_0x1d7d31['matchingCallback'](_0x22d720)){_0x253e7a=_0x1d7d31['label'];break;}return _0x253e7a||(_0x253e7a=this['_itemLabels']['get'](_0x22d720['name'])),_0x253e7a?_0x253e7a(_0x4ea8f8):0x1!==_0x4ea8f8?_0x4ea8f8+'\x20'+_0x22d720['name']+'s':''+_0x22d720['name'];}['_addDescriptionItems'](_0x6c0d6d,_0x5aef68){const _0x9ebec9=_0x5aef68['getFirstRange']()['getWalker'](),_0x4b6abe='insertion'==_0x5aef68['type']?'add':'remove';for(const _0x29b233 of _0x9ebec9){const _0x1271c6=_0x29b233['item'],_0x40dd6b=_0x6c0d6d[_0x6c0d6d['length']-0x1];if(_0x1271c6['is']('$textProxy'))_0x40dd6b&&_0x40dd6b['type']['indexOf']('Container')>-0x1&&_0x6c0d6d['pop'](),_0x40dd6b&&'text'==_0x40dd6b['type']?_0x40dd6b[_0x4b6abe]+=_0x1271c6['data']:_0x6c0d6d['push']({'type':'text','add':'add'==_0x4b6abe?_0x1271c6['data']:'','remove':'remove'==_0x4b6abe?_0x1271c6['data']:''});else{if(this['_schema']['isObject'](_0x1271c6)){const _0x12dea6=_0x1271c6;if(_0x40dd6b&&_0x40dd6b['type']['indexOf']('Container')>-0x1&&_0x6c0d6d['pop'](),'elementEnd'==_0x29b233['type'])continue;_0x40dd6b&&_0x40dd6b['type']==_0x4b6abe+'Object'&&_0x40dd6b['element']['name']==_0x12dea6['name']?_0x40dd6b['quantity']++:_0x6c0d6d['push']({'type':_0x4b6abe+'Object','element':_0x12dea6,'quantity':0x1}),_0x9ebec9['skip'](_0x4a84a4=>!('elementEnd'==_0x4a84a4['type']&&_0x4a84a4['item']==_0x1271c6));}else{if(this['_schema']['checkChild'](_0x1271c6,'$text')||_0x1271c6['is']('element','softBreak')){const _0x90b307=_0x1271c6;if('add'==_0x4b6abe&&'elementStart'==_0x29b233['type']||'remove'==_0x4b6abe&&'elementEnd'==_0x29b233['type'])continue;if(_0x40dd6b&&-0x1==_0x40dd6b['type']['indexOf']('Container')){'text'==_0x40dd6b['type']&&(_0x40dd6b[_0x4b6abe]+='\x0a');continue;}let _0x54a860;if(_0x54a860='add'==_0x4b6abe?_0x90b307['nextSibling']&&!this['_schema']['isObject'](_0x90b307['nextSibling'])?_0x90b307['nextSibling']:null:_0x90b307['previousSibling']&&!this['_schema']['isObject'](_0x90b307['previousSibling'])?_0x90b307['previousSibling']:null,_0x90b307['isEmpty']||_0x54a860&&_0x54a860['isEmpty']){const _0xe2224a=_0x54a860&&_0x54a860['isEmpty']?_0x54a860:_0x90b307;_0x40dd6b&&_0x40dd6b['type']==_0x4b6abe+'EmptyContainer'&&_0x40dd6b['element']['name']==_0xe2224a['name']?_0x40dd6b['quantity']++:_0x6c0d6d['push']({'type':_0x4b6abe+'EmptyContainer','element':_0xe2224a,'quantity':0x1});}else _0x6c0d6d['push']({'type':_0x4b6abe+'Container','element':_0x90b307});}}}}}['_resolveDescriptionItems'](_0x187fbc){const _0x183a8f=this['_locale'],_0x130b13=[],_0x140807=[],_0x59805b=[];for(const _0x355936 of _0x187fbc)switch(_0x355936['type']){case'text':if(_0x355936['add']=_0x355936['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x355936['remove']=_0x355936['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x355936['add']&&''!=_0x355936['remove']){_0x130b13['push']({'type':'replace','content':o(_0x183a8f,'REPLACE_TEXT',['\x22'+_0x355936['remove']+'\x22','\x22'+_0x355936['add']+'\x22'])});continue;}if(null!=_0x355936['add']['match'](/^ +$/)){_0x130b13['push']({'type':'insertion','content':o(_0x183a8f,'*Insert:*\x20%0',o(_0x183a8f,'ELEMENT_SPACE',_0x355936['add']['length']))});continue;}if(null!=_0x355936['remove']['match'](/^ +$/)){_0x130b13['push']({'type':'deletion','content':o(_0x183a8f,'*Remove:*\x20%0',o(_0x183a8f,'ELEMENT_SPACE',_0x355936['remove']['length']))});continue;}if(''!=_0x355936['add']){_0x130b13['push']({'type':'insertion','content':o(_0x183a8f,'*Insert:*\x20%0','\x22'+_0x355936['add']+'\x22')});continue;}_0x130b13['push']({'type':'deletion','content':o(_0x183a8f,'*Remove:*\x20%0','\x22'+_0x355936['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x130b13['push']({'type':'insertion','content':o(_0x183a8f,'*Insert:*\x20%0',this['getItemLabel'](_0x355936['element'],_0x355936['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x130b13['push']({'type':'deletion','content':o(_0x183a8f,'*Remove:*\x20%0',this['getItemLabel'](_0x355936['element'],_0x355936['quantity']))});continue;case'addContainer':_0x130b13['push']({'type':'insertion','content':o(_0x183a8f,'*Split:*\x20%0',this['getItemLabel'](_0x355936['element'],_0x355936['quantity']))});continue;case'removeContainer':_0x130b13['push']({'type':'deletion','content':o(_0x183a8f,'*Merge:*\x20%0',this['getItemLabel'](_0x355936['element'],_0x355936['quantity']))});continue;case'addFormat':_0x140807['push'](_0x355936['key']);continue;case'removeFormat':_0x59805b['push'](_0x355936['key']);continue;default:_0x130b13['push'](_0x355936);}if(_0x140807['length']){const _0x159c7d=_0x140807['map'](_0xb06cff=>this['_attributeLabels']['has'](_0xb06cff)?this['_attributeLabels']['get'](_0xb06cff):_0xb06cff)['join'](',\x20');_0x130b13['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x159c7d)});}if(_0x59805b['length']){const _0x2bd838=_0x59805b['map'](_0x32cbea=>this['_attributeLabels']['has'](_0x32cbea)?this['_attributeLabels']['get'](_0x32cbea):_0x32cbea)['join'](',\x20');_0x130b13['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2bd838)});}return _0x130b13;}['_handleCustomCallbackDescription'](_0x270904){for(const _0x13cdae of this['_customCallbacks']){const _0xbff8cf=_0x13cdae(_0x270904);if(_0xbff8cf&&'type'in _0xbff8cf)return _0xbff8cf;}}['_handleAttributeSuggestionDescription'](_0x4583dc,_0x3dca6c){const _0x516eb9=_0x3dca6c['data'],_0x371b8f=void 0x0===_0x516eb9['newValue']?'removeFormat':'addFormat';_0x4583dc['push']({'type':_0x371b8f,'key':_0x516eb9['key']});}['_handleRenameSuggestionDescription'](_0x2e31da,_0xcec212){_0x2e31da['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xcec212['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xee6987,_0x142c8d,_0x2a67e5){if(this['_addDescriptionItems'](_0xee6987,_0x142c8d),_0x2a67e5&&_0x2a67e5['getFirstRange']()&&!_0x142c8d['getFirstRange']()['end']['isEqual'](_0x2a67e5['getFirstRange']()['start'])){const _0x6c93d1=_0xee6987[_0xee6987['length']-0x1],_0x41dd41='insertion'==_0x142c8d['type']?'add':'remove';_0x6c93d1&&'text'==_0x6c93d1['type']&&(_0x6c93d1[_0x41dd41]+='\x0a');}}}class R extends _0x2b2f8b{['afterInit'](){const _0x5dd975=this['editor'],_0x373623=_0x5dd975['plugins']['get']('TrackChangesEditing');_0x5dd975['commands']['get']('showAIAssistant')&&_0x373623['enableCommand']('showAIAssistant');}}class T extends _0x2b2f8b{['afterInit'](){const _0x29939f=this['editor'],_0x308101=_0x29939f['plugins']['get']('TrackChangesEditing');_0x29939f['commands']['get']('toggleAi')&&_0x308101['enableCommand']('toggleAi');}}class E extends _0x2b2f8b{['afterInit'](){const _0x60bc1f=this['editor'],_0x124988=_0x60bc1f['plugins']['get']('TrackChangesEditing');_0x60bc1f['commands']['get']('aiQuickAction')&&_0x124988['enableCommand']('aiQuickAction');}}class U extends _0x2b2f8b{['afterInit'](){const _0x585c70=this['editor'],_0x441f7b=_0x585c70['locale'];if(!_0x585c70['plugins']['has']('AlignmentEditing'))return;const _0x5345c3=_0x585c70['plugins']['get']('TrackChangesEditing');_0x5345c3['enableDefaultAttributesIntegration']('alignment'),_0x5345c3['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x441f7b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6108f=this['editor'],_0xfed00c=_0x6108f['locale'];_0x6108f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19a7d2=>{if('formatBlock'!=_0x19a7d2['type'])return;const {data:_0x49e419}=_0x19a7d2;if(_0x49e419&&'alignment'==_0x49e419['commandName']){const _0x3df200=_0x49e419['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xfed00c,'*Format:*\x20%0',function(_0x4f9f25){switch(_0x4f9f25){case'left':return o(_0xfed00c,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xfed00c,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xfed00c,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xfed00c,'FORMAT_JUSTIFY_TEXT');}}(_0x3df200))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x2b2f8b{['afterInit'](){const _0x1e6949=this['editor'],_0x129da7=_0x1e6949['plugins']['get']('TrackChangesEditing'),_0x3dd523=_0x1e6949['locale'];for(const _0x1f10c4 of ti){if(!_0x1e6949['plugins']['has'](_0x1f10c4))continue;const _0x124fd6=_0x1f10c4['slice'](0x0,-0x7)['toLowerCase'](),_0x44cfce='FORMAT_'+_0x124fd6['toUpperCase']();_0x129da7['enableDefaultAttributesIntegration'](_0x124fd6),_0x129da7['descriptionFactory']['registerAttributeLabel'](_0x124fd6,o(_0x3dd523,_0x44cfce));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43674a=this['editor'],_0x26c6d8=_0x43674a['locale'],_0x644b54=_0x43674a['plugins']['get']('TrackChangesEditing');function _0x283f71(_0x484a51,_0xbd561a){_0x644b54['descriptionFactory']['registerDescriptionCallback'](_0x26a16a=>{if('formatInline'!=_0x26a16a['type'])return;const {data:_0x30bf19}=_0x26a16a;return _0x30bf19&&_0x30bf19['commandName']===_0x484a51?_0x30bf19['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x26c6d8,'*Format:*\x20%0',_0xbd561a)}:{'type':'format','content':o(_0x26c6d8,'*Remove\x20format:*\x20%0',_0xbd561a)}:void 0x0;});}_0x283f71('bold',o(_0x26c6d8,'FORMAT_BOLD')),_0x283f71('italic',o(_0x26c6d8,'FORMAT_ITALIC')),_0x283f71('underline',o(_0x26c6d8,'FORMAT_UNDERLINE')),_0x283f71('code',o(_0x26c6d8,'FORMAT_CODE')),_0x283f71('strikethrough',o(_0x26c6d8,'FORMAT_STRIKETHROUGH')),_0x283f71('subscript',o(_0x26c6d8,'FORMAT_SUBSCRIPT')),_0x283f71('superscript',o(_0x26c6d8,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2b2f8b{['afterInit'](){const _0x4e3854=this['editor'],_0x12bf44=_0x4e3854['locale'];if(!_0x4e3854['plugins']['has']('BlockQuoteEditing'))return;const _0x17a5bf=_0x4e3854['plugins']['get']('TrackChangesEditing'),_0x4f36b7=this['editor']['commands']['get']('blockQuote');_0x17a5bf['enableCommand']('blockQuote',(_0x3c8cad,_0x2266df={})=>{const _0x56e32f=this['editor']['model']['document']['selection'],_0xab83c7=_0x2266df&&void 0x0!==_0x2266df['forceValue']?_0x2266df['forceValue']:!_0x4f36b7['value'];let _0x5a04fb=[];if(_0xab83c7){const _0x11046f=Array['from'](_0x56e32f['getSelectedBlocks']())['filter'](_0x122522=>oo(_0x122522)||function(_0x41652e,_0x496c95){const _0x4973a8=_0x496c95['checkChild'](_0x41652e['parent'],'blockQuote'),_0x14254f=_0x496c95['checkChild'](['$root','blockQuote'],_0x41652e);return _0x4973a8&&_0x14254f;}(_0x122522,this['editor']['model']['schema']));_0x5a04fb=to(_0x11046f,_0x4e3854['model']);}else{const _0x845870=Array['from'](_0x56e32f['getSelectedBlocks']())['filter'](_0x47d55b=>oo(_0x47d55b));_0x5a04fb=to(_0x845870,_0x4e3854['model']);}_0x4e3854['model']['change'](()=>{for(const _0xacca3a of _0x5a04fb)_0x17a5bf['markBlockFormat'](_0xacca3a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xab83c7}]});});}),_0x17a5bf['descriptionFactory']['registerDescriptionCallback'](_0x1608b8=>{const {data:_0x265089}=_0x1608b8;if(_0x265089&&'blockQuote'==_0x265089['commandName']){const _0x1f0721=o(_0x12bf44,'ELEMENT_BLOCK_QUOTE');return _0x265089['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x12bf44,'*Set\x20format:*\x20%0',_0x1f0721)}:{'type':'format','content':o(_0x12bf44,'*Remove\x20format:*\x20%0',_0x1f0721)};}});}}function oo(_0x43246e){return'blockQuote'==_0x43246e['parent']['name'];}class G extends _0x2b2f8b{['afterInit'](){const _0x1aba62=this['editor'],_0x42067c=_0x1aba62['locale'],_0x34aaf1=_0x1aba62['plugins']['get']('TrackChangesEditing');_0x1aba62['plugins']['has']('BookmarkEditing')&&(_0x34aaf1['enableCommand']('insertBookmark'),_0x34aaf1['enableDefaultAttributesIntegration']('updateBookmark'),_0x34aaf1['descriptionFactory']['registerDescriptionCallback'](_0x48f1f4=>{if('insertion'!=_0x48f1f4['type']&&'deletion'!=_0x48f1f4['type']&&'attribute'!=_0x48f1f4['type'])return;const _0x200ab7=_0x48f1f4['getContainedElement']();if(null==_0x200ab7)return;if(!_0x200ab7['is']('element','bookmark'))return;const _0x503cdb=_0x200ab7['getAttribute']('bookmarkId');if('insertion'==_0x48f1f4['type'])return{'type':'insertion','content':o(_0x42067c,'*Insert:*\x20%0','\x22'+_0x503cdb+'\x22\x20'+o(_0x42067c,'ELEMENT_BOOKMARK'))};if('deletion'==_0x48f1f4['type'])return{'type':'deletion','content':o(_0x42067c,'*Remove:*\x20%0','\x22'+_0x503cdb+'\x22\x20'+o(_0x42067c,'ELEMENT_BOOKMARK'))};const {data:_0x2c4c7a}=_0x48f1f4;if(!_0x2c4c7a||'bookmarkId'!=_0x2c4c7a['key'])return;return{'type':'format','content':o(_0x42067c,'*Set\x20bookmark:*\x20%0','\x22'+_0x2c4c7a['newValue']+'\x22')};}));}}class L extends _0x2b2f8b{['afterInit'](){const _0x1ab20d=this['editor'];_0x1ab20d['plugins']['has']('CaseChange')&&(_0x1ab20d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1ab20d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1ab20d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x2b2f8b{['afterInit'](){const _0x12a69f=this['editor'];_0x12a69f['commands']['get']('ckbox')&&_0x12a69f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x2b2f8b{['afterInit'](){const _0x46a31a=this['editor'];if(!_0x46a31a['plugins']['has']('CodeBlock'))return;const _0x3ae4fa=_0x46a31a['plugins']['get']('TrackChangesEditing'),_0x1d5588=_0x46a31a['locale'],_0x1d338d=_0x46a31a['config']['get']('codeBlock')['languages'],_0x33960c=_0x46a31a['commands']['get']('codeBlock');_0x3ae4fa['enableCommand']('indentCodeBlock'),_0x3ae4fa['enableCommand']('outdentCodeBlock'),_0x3ae4fa['enableCommand']('codeBlock',(_0x15aed4,_0x23e64f={})=>{const _0x3119e0=_0x46a31a['model'],_0x53effa=_0x46a31a['model']['document']['selection'],_0x37a547=_0x23e64f&&void 0x0!==_0x23e64f['forceValue']?_0x23e64f['forceValue']:!_0x33960c['value'];let _0x5787dc;_0x23e64f['language']||(_0x23e64f['language']=_0x1d338d[0x0]['language']),_0x5787dc=_0x37a547?Array['from'](_0x53effa['getSelectedBlocks']())['filter'](_0x225825=>co(_0x225825)||function(_0x3a17c7,_0x318982){if(_0x3a17c7['is']('rootElement')||_0x318982['isLimit'](_0x3a17c7))return!0x1;return _0x318982['checkChild'](_0x3a17c7['parent'],'codeBlock');}(_0x225825,_0x3119e0['schema'])):Array['from'](_0x53effa['getSelectedBlocks']())['filter'](_0x9f21f7=>co(_0x9f21f7));const _0x35fec3=to(_0x5787dc,_0x3119e0);_0x3119e0['change'](()=>{for(const _0x2780d7 of _0x35fec3)_0x3ae4fa['markBlockFormat'](_0x2780d7,{'commandName':'codeBlock','commandParams':[{..._0x23e64f,'forceValue':_0x37a547}],'formatGroupId':'blockName'});});}),(_0x3ae4fa['descriptionFactory']['registerElementLabel']('codeBlock',_0x56b3f1=>o(_0x1d5588,'ELEMENT_CODE_BLOCK',_0x56b3f1)),_0x3ae4fa['descriptionFactory']['registerDescriptionCallback'](_0x4cb29e=>{if('formatBlock'!=_0x4cb29e['type'])return;const _0x301ccd=_0x1d5588['t'],{data:_0x23260e}=_0x4cb29e;if(!_0x23260e||'codeBlock'!=_0x23260e['commandName'])return;const _0x3cbd89=_0x23260e['commandParams'][0x0]['language'],_0x5cec91=_0x301ccd(_0x1d338d['find'](_0x1ed603=>_0x1ed603['language']===_0x3cbd89)['label'])['toLowerCase']();return _0x23260e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1d5588,'*Set\x20format:*\x20%0',o(_0x1d5588,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5cec91+')')}:{'type':'format','content':o(_0x1d5588,'*Remove\x20format:*\x20%0',o(_0x1d5588,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x10841b){return'codeBlock'==_0x10841b['name'];}class z extends _0x2b2f8b{['afterInit'](){const _0xfdc56f=this['editor'];if(!_0xfdc56f['plugins']['has']('CommentsEditing'))return;_0xfdc56f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x2b2f8b{static get['requires'](){return[_0x6938fe];}['init'](){const _0x4d31c1=this['editor'],_0x3cb861=_0x4d31c1['plugins']['get']('TrackChangesEditing');_0x3cb861['enableCommand']('delete');const _0x5a9204=_0x4d31c1['commands']['get']('deleteForward');_0x3cb861['enableCommand']('deleteForward',(_0x11db4e,_0x88c668={})=>{const _0x153e7b=_0x4d31c1['model']['createSelection'](_0x4d31c1['model']['document']['selection']);_0x153e7b['isCollapsed']&&_0x4d31c1['model']['modifySelection'](_0x153e7b,{'direction':'forward','unit':_0x88c668['unit']});const _0x374239=_0x153e7b['getFirstRange'](),_0x13ae09=_0xf26ff5['fromRange'](_0x374239);let _0x5f2402;_0x11db4e(_0x88c668),_0x5f2402='$graveyard'==_0x13ae09['root']['rootName']?_0x4d31c1['model']['createRange'](_0x374239['start']):_0x4d31c1['model']['createRange'](_0x13ae09['start'],_0x13ae09['end']),_0x13ae09['detach'](),_0x4d31c1['model']['enqueueChange'](_0x5a9204['buffer']['batch'],_0x3a99ce=>{_0x5a9204['buffer']['lock'](),_0x3a99ce['setSelection'](_0x3a99ce['createRange'](_0x5f2402['end'])),_0x5a9204['buffer']['unlock']();});});}}class W extends _0x2b2f8b{['afterInit'](){const _0x511713=this['editor'];if(!_0x511713['plugins']['has']('ListEditing'))return;const _0x2a905b=_0x511713['locale'],_0xf37cc4=_0x511713['plugins']['get']('TrackChangesEditing'),_0x45d837=_0x511713['plugins']['has']('TodoListEditing'),_0x64aee0=!!_0x511713['config']['get']('list.multiBlock');function _0x2aaa10(_0x49e287){return{'type':'format','content':''+o(_0x2a905b,'*Set\x20format:*\x20%0',_0x49e287)};}function _0x30ea55(_0x4964b5){return{'type':'format','content':''+o(_0x2a905b,'*Remove\x20format:*\x20%0',_0x4964b5)};}_0xf37cc4['enableDefaultAttributesIntegration']('numberedList'),_0xf37cc4['enableDefaultAttributesIntegration']('bulletedList'),_0xf37cc4['enableDefaultAttributesIntegration']('customNumberedList'),_0xf37cc4['enableDefaultAttributesIntegration']('customBulletedList'),_0xf37cc4['enableDefaultAttributesIntegration']('indentList'),_0xf37cc4['enableDefaultAttributesIntegration']('outdentList'),_0xf37cc4['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xf37cc4['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x64aee0&&(_0xf37cc4['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xf37cc4['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x45d837&&(_0xf37cc4['enableDefaultAttributesIntegration']('todoList'),_0xf37cc4['enableDefaultAttributesIntegration']('checkTodoList'),_0xf37cc4['descriptionFactory']['registerDescriptionCallback'](_0x59af8b=>{const {data:_0x17cc31}=_0x59af8b;if(_0x17cc31&&'todoListChecked'==_0x17cc31['key'])return{'type':'format','content':_0x17cc31['newValue']?o(_0x2a905b,'*Check\x20item*'):o(_0x2a905b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x548259=>{if(_0x548259['batch']['isUndo'])return!0x1;let _0x244a3c=!0x1;const _0x14c6c6=_0xf37cc4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f7aff=>'todoListChecked'===_0xf37cc4['_getAttributeKey'](_0x1f7aff));for(const _0x21d4b1 of _0x14c6c6){'todo'!=_0x21d4b1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xf37cc4['_findSuggestions'](_0x21d4b1['getFirstRange'](),'attribute')['find'](_0x238aef=>'listType'===_0xf37cc4['_getAttributeKey'](_0x238aef['suggestion']))||(_0x548259['removeMarker'](_0x21d4b1['getFirstMarker']()),_0x244a3c=!0x0));}return _0x244a3c;})),_0xf37cc4['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2a905b,'FORMAT_INDENT'));const _0x50aef4={'type':'format','content':''};_0xf37cc4['descriptionFactory']['registerDescriptionCallback'](_0x323416=>{const {data:_0x365688}=_0x323416;if(!_0x365688||'listType'!=_0x365688['key'])return;let _0x29f7e4=_0x323416['head'];for(;_0x29f7e4;){if(_0x29f7e4['data']&&(('listStyle'==_0x29f7e4['data']['key']||'listMarkerStyle'==_0x29f7e4['data']['key'])&&(_0x29f7e4['data']['newValue']&&'default'!=_0x29f7e4['data']['newValue']||'default'!=_0x29f7e4['data']['oldValue']&&!_0x365688['newValue'])||!_0x64aee0&&_0x29f7e4['data']['key']==m))return _0x50aef4;_0x29f7e4=_0x29f7e4['next'];}if(null==_0x365688['newValue'])switch(_0x365688['oldValue']){case'bulleted':return _0x30ea55(o(_0x2a905b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x30ea55(o(_0x2a905b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x30ea55(o(_0x2a905b,'ELEMENT_TODO_LIST'));}switch(_0x365688['newValue']){case'bulleted':return _0x2aaa10(o(_0x2a905b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2aaa10(o(_0x2a905b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2aaa10(o(_0x2a905b,'ELEMENT_TODO_LIST'));}}),_0xf37cc4['descriptionFactory']['registerDescriptionCallback'](_0x2172e1=>{const {data:_0x1394ba}=_0x2172e1;if(_0x1394ba&&'listIndent'==_0x1394ba['key'])return null==_0x1394ba['newValue']||null==_0x1394ba['oldValue']&&0x0==_0x1394ba['newValue']?_0x50aef4:void 0x0;}),_0xf37cc4['descriptionFactory']['registerDescriptionCallback'](_0x360a2a=>{if('attribute'!=_0x360a2a['type'])return;const {data:_0x4e58f7}=_0x360a2a;if(!_0x4e58f7||'listItemId'!=_0x4e58f7['key'])return;const _0x1c7ccc=Te(_0x360a2a);return'newValue'==_0x1c7ccc?{'type':'format','content':o(_0x2a905b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1c7ccc?{'type':'format','content':o(_0x2a905b,'*Split:*\x20list\x20item')}:_0x50aef4;}),_0x511713['model']['document']['registerPostFixer'](_0x35dd2d=>this['listItemIdFixer'](_0x35dd2d)),_0x511713['model']['document']['registerPostFixer'](_0x351fff=>this['noTrackChangesFixer'](_0x351fff)),_0x511713['model']['document']['on']('change:data',(_0x44b32f,_0x253dea)=>{if(_0x253dea['isUndo']||!_0x253dea['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2caaa0){if(_0x2caaa0['batch']['isUndo']||!_0x2caaa0['batch']['isLocal'])return!0x1;let _0x136aa9=!0x1;const _0x1f8dfb=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x73485d=>_0x73485d['data']&&'listItemId'==_0x73485d['data']['key'])['filter'](_0x5150b8=>_0x5150b8['data']['newValue']&&_0x5150b8['data']['oldValue']);for(const _0x19a522 of _0x1f8dfb)Te(_0x19a522)||(_0x2caaa0['removeMarker'](_0x19a522['getFirstMarker']()),_0x136aa9=!0x0);return _0x136aa9;}['noTrackChangesFixer'](_0x3c8ea7){if(_0x3c8ea7['batch']['isUndo']||!_0x3c8ea7['batch']['isLocal'])return!0x1;const _0x26a09b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x26a09b['trackChangesCommand']['value'])return!0x1;let _0x3c2c84=!0x1;const _0x3651e0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x440575=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x18b640=>'attribute'==_0x18b640['type'])['filter'](_0x17d646=>_0x3651e0['includes'](_0x17d646['attributeKey']));if(0x0==_0x440575['length'])return _0x3c2c84;for(const _0x5b543a of _0x440575){const _0x4b01bd=_0x26a09b['_findSuggestions'](_0x5b543a['range'],'attribute')['filter'](_0x490f7e=>!_0x490f7e['meta']['isNextTo'])['map'](_0x46bd97=>_0x46bd97['suggestion'])['filter'](_0x4773c0=>{const _0x546dd5=_0x26a09b['_getAttributeKey'](_0x4773c0);return _0x3651e0['includes'](_0x546dd5);});if(_0x4b01bd['length']){for(const _0x5e30bd of _0x4b01bd)_0x3c8ea7['removeMarker'](_0x5e30bd['getFirstMarker']());_0x3c2c84=!0x0;}}return _0x3c2c84;}['assureChains'](){const _0x2c52d6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4256ba=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xdfafce;const _0x48a82f=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1f67af=>{if(_0x1f67af['data']['oldRange']||!_0x1f67af['data']['newRange'])return null;if(!_0x1f67af['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x55a32f}=_0x2c52d6['_splitMarkerName'](_0x1f67af['name']);if(!_0x2c52d6['hasSuggestion'](_0x55a32f))return null;const _0x296327=_0x2c52d6['getSuggestion'](_0x55a32f);return _0x4256ba['includes'](_0x296327['data']['key']);})['map'](_0x23106=>{const {id:_0x14308a}=_0x2c52d6['_splitMarkerName'](_0x23106['name']),_0x362cd0=_0x2c52d6['getSuggestion'](_0x14308a);return _0xdfafce=_0x362cd0['attributes']['groupId'],_0x362cd0['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x48a82f['size'])return;const _0xe1ce11=_0x2c52d6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b61dc=>'attribute'==_0x5b61dc['type']&&_0x5b61dc['data']&&_0x4256ba['includes'](_0x5b61dc['data']['key'])&&_0x5b61dc['attributes']['groupId']!=_0xdfafce)['map'](_0x39b530=>({'listItem':_0x39b530['getFirstRange']()['start']['nodeAfter'],'groupId':_0x39b530['attributes']['groupId']})),_0x3cc86d=new Set();for(const {groupId:_0x47d0d8,listItem:_0x114286}of _0xe1ce11)_0x48a82f['has'](_0x114286)&&_0x3cc86d['add'](_0x47d0d8);for(const _0x15bea9 of _0x2c52d6['getSuggestions']())_0x3cc86d['has'](_0x15bea9['attributes']['groupId'])&&_0x15bea9['setAttribute']('groupId',_0xdfafce);}['_supportLegacySuggestions'](){const _0x5f4224=this['editor'],_0x585a2a=_0x5f4224['locale'],_0x465061=_0x5f4224['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x465061['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x25f6ab,_0x5f4e4c){const _0x4f3462=[];for(let _0x27f412 of _0x25f6ab)_0x27f412['start']['nodeAfter']===_0x27f412['end']['parent']&&(_0x27f412=_0x5f4224['model']['createRange'](_0x5f4224['model']['createPositionAt'](_0x27f412['start']['nodeAfter'],0x0))),_0x4f3462['push'](_0x27f412);_0x5f4224['model']['change'](_0x2405c9=>{const _0x5d20f4=_0x5f4224['model']['document']['selection'],_0x3658ef=Array['from'](_0x5d20f4['getRanges']())['map'](_0x315c65=>_0xf26ff5['fromRange'](_0x315c65));_0x2405c9['setSelection'](_0x4f3462),_0x5f4224['commands']['get'](_0x5f4e4c['commandName'])['refresh'](),_0x5f4e4c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5f4224['execute'](_0x5f4e4c['commandName'],..._0x5f4e4c['commandParams']),_0x2405c9['setSelection'](_0x3658ef);for(const _0x4caacc of _0x3658ef)_0x4caacc['detach']();});}),_0x465061['descriptionFactory']['registerElementLabel'](function(_0x48991f){const _0x1c7ebd=!_0x5f4224['model']['schema']['isObject'](_0x48991f),_0x3f0678=_0x48991f['previousSibling'],_0x3c79e2=_0x48991f['nextSibling'],_0x1792cf=_0x48991f['getAttribute']('listItemId'),_0x28da80=!_0x3f0678||_0x3f0678['getAttribute']('listItemId')!==_0x1792cf,_0x5e49b5=!_0x3c79e2||_0x3c79e2['getAttribute']('listItemId')!==_0x1792cf;return _0x1c7ebd&&Boolean(_0x1792cf)&&_0x28da80&&_0x5e49b5;},_0x4444ae=>o(_0x585a2a,'ELEMENT_LIST_ITEM',_0x4444ae));}['_registerLegacyDescription'](){const _0x169164=this['editor'],_0x4da6ee=_0x169164['locale'];function _0x487339(_0x25d630){const _0x1f474b=_0x169164['commands']['get']('bulletedList')['value'],_0x5da2ac=_0x169164['commands']['get']('numberedList')['value'];return'numberedList'===_0x25d630?_0x1f474b:_0x5da2ac;}_0x169164['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3d8e63){if('formatBlock'!=_0x3d8e63['type'])return;const {data:_0x2d359d}=_0x3d8e63;if(!_0x2d359d)return;let _0x1f6776,_0x2bff71,_0x1277b1,_0x4f474f;switch(_0x2d359d['commandName']){case'bulletedList':_0x1277b1=_0x2d359d['commandParams'][0x0]['forceValue'],_0x4f474f=_0x487339(_0x2d359d['commandName']),_0x1f6776=_0x1277b1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4f474f&&_0x169164['config']['get']('list.multiBlock')||(_0x1f6776='*Change\x20to:*\x20%0'),_0x2bff71={'type':'format','content':o(_0x4da6ee,_0x1f6776,o(_0x4da6ee,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1277b1=_0x2d359d['commandParams'][0x0]['forceValue'],_0x4f474f=_0x487339(_0x2d359d['commandName']),_0x1f6776=_0x1277b1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4f474f&&_0x169164['config']['get']('list.multiBlock')||(_0x1f6776='*Change\x20to:*\x20%0'),_0x2bff71={'type':'format','content':o(_0x4da6ee,_0x1f6776,o(_0x4da6ee,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1f6776='*Indent:*\x20%0',_0x2bff71={'type':'format','content':o(_0x4da6ee,_0x1f6776,o(_0x4da6ee,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1f6776=function(_0x6d7289){const _0x3e654c=_0x6d7289['getFirstRange']();let _0x39ba4f=_0x3e654c['start']['nodeAfter'];for(;_0x39ba4f&&_0x3e654c['containsItem'](_0x39ba4f);){if(_0x39ba4f['getAttribute']('listIndent')>0x0)return!0x1;_0x39ba4f=_0x39ba4f['nextSibling'];}return!0x0;}(_0x3d8e63)?o(_0x4da6ee,'*Format:*\x20remove\x20from\x20%0',o(_0x4da6ee,function(_0x511d18){return'ELEMENT_'+_0x511d18['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3d8e63))):o(_0x4da6ee,'*Outdent:*\x20%0',o(_0x4da6ee,'ELEMENT_LIST_ITEM')),_0x2bff71={'type':'format','content':_0x1f6776};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2d359d['multipleBlocks']&&(_0x1f6776='*Merge:*\x20%0',_0x2bff71={'type':'deletion','content':o(_0x4da6ee,_0x1f6776,o(_0x4da6ee,'ELEMENT_LIST_ITEM'))});}return _0x2bff71;});}}function Te(_0x5341c1){let _0x3ea379=_0x5341c1['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3ea379;){const _0x2916b3=_0x3ea379['getAttribute']('listItemId');if(!_0x2916b3)return!0x1;if(_0x2916b3==_0x5341c1['data']['newValue'])return'newValue';if(_0x2916b3==_0x5341c1['data']['oldValue'])return'oldValue';_0x3ea379=_0x3ea379['previousSibling'];}return!0x1;}class H extends _0x2b2f8b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x55c9d2=this['editor']['config']['get']('list.properties'),_0x186c4d=this['editor']['plugins']['get']('TrackChangesEditing');_0x55c9d2['styles']&&_0x186c4d['enableDefaultAttributesIntegration']('listStyle'),_0x55c9d2['reversed']&&_0x186c4d['enableDefaultAttributesIntegration']('listReversed'),_0x55c9d2['startIndex']&&_0x186c4d['enableDefaultAttributesIntegration']('listStart');const _0x5c8b4b={'type':'format','content':''};_0x186c4d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x283159=this['editor']['locale'];_0x186c4d['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x283159,'FORMAT_LIST_REVERSED')),_0x186c4d['descriptionFactory']['registerDescriptionCallback'](_0x362dce=>{const {data:_0x181b66}=_0x362dce;if(_0x181b66&&'listReversed'==_0x181b66['key'])return null==_0x181b66['newValue']||0x0==_0x181b66['newValue']&&null==_0x181b66['oldValue']?_0x5c8b4b:void 0x0;}),_0x186c4d['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x283159,'FORMAT_LIST_START')),_0x186c4d['descriptionFactory']['registerDescriptionCallback'](_0x4d948d=>{const {data:_0x5af128}=_0x4d948d;if(_0x5af128&&'listStart'==_0x5af128['key'])return null==_0x5af128['newValue']||0x1==_0x5af128['newValue']&&null==_0x5af128['oldValue']?_0x5c8b4b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x9668f7=>{if(_0x9668f7['batch']['isUndo'])return!0x1;let _0x35d795=!0x1;const _0x47c6ab=_0x186c4d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe0de97=>{const _0x431c0d=_0x186c4d['_getAttributeKey'](_0xe0de97);return'listStart'==_0x431c0d||'listReversed'==_0x431c0d;});for(const _0x221ebd of _0x47c6ab){const _0x5c1392=_0x221ebd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5c1392||'customNumbered'==_0x5c1392)continue;_0x186c4d['_findSuggestions'](_0x221ebd['getFirstRange'](),'attribute')['find'](_0x306431=>'listType'==_0x186c4d['_getAttributeKey'](_0x306431['suggestion']))||(_0x9668f7['removeMarker'](_0x221ebd['getFirstMarker']()),_0x35d795=!0x0);}return _0x35d795;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x24f5b7){const _0x135a6f=this['editor']['locale'],{data:_0x143587}=_0x24f5b7,_0x1504ce={'type':'format','content':''};if(!_0x143587||'listStyle'!=_0x143587['key'])return;if(!_0x143587['oldValue'])return'default'==_0x143587['newValue']?_0x1504ce:{'type':'format','content':''+o(_0x135a6f,'*Set\x20format:*\x20%0',o(_0x135a6f,this['_getTranslationKeyForListStyle'](_0x143587['newValue'])))};if(!_0x143587['newValue']){if('default'==_0x143587['oldValue'])return _0x1504ce;let _0x3357c2=_0x24f5b7['head'];for(;_0x3357c2;){if(_0x3357c2['data']&&'listType'==_0x3357c2['data']['key']&&_0x3357c2['data']['newValue'])return _0x1504ce;_0x3357c2=_0x3357c2['next'];}return{'type':'format','content':''+o(_0x135a6f,'*Remove\x20format:*\x20%0',o(_0x135a6f,this['_getTranslationKeyForListStyle'](_0x143587['oldValue'])))};}if('default'!=_0x143587['newValue'])return{'type':'format','content':''+o(_0x135a6f,'*Set\x20format:*\x20%0',o(_0x135a6f,this['_getTranslationKeyForListStyle'](_0x143587['newValue'])))};let _0xf92341=_0x24f5b7['head'];for(;_0xf92341;){if(_0xf92341['data']&&'listType'==_0xf92341['data']['key']&&_0xf92341['data']['newValue']&&_0xf92341['data']['oldValue'])return _0x1504ce;_0xf92341=_0xf92341['next'];}return{'type':'format','content':o(_0x135a6f,'*Set\x20format:*\x20%0',o(_0x135a6f,'ELEMENT_'+_0x24f5b7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x13c9d9=this['editor'],_0x4fb64e=_0x13c9d9['locale'];_0x13c9d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c39f=>{if('formatBlock'!=_0x2c39f['type'])return;const {data:_0x44b401}=_0x2c39f;if(!_0x44b401)return;let _0x5edf4c,_0x4de52c;switch(_0x44b401['commandName']){case'listStyle':_0x5edf4c='*Change\x20to:*\x20%0',_0x4de52c={'type':'format','content':o(_0x4fb64e,_0x5edf4c,o(_0x4fb64e,this['_getTranslationKeyForListStyle'](_0x44b401['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5edf4c=_0x44b401['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4de52c={'type':'format','content':o(_0x4fb64e,_0x5edf4c)};break;case'listStart':_0x5edf4c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4de52c={'type':'format','content':o(_0x4fb64e,_0x5edf4c,_0x44b401['commandParams'][0x0]['startIndex'])};}return _0x4de52c;});}['_getTranslationKeyForListStyle'](_0x5e7d66){return'ELEMENT_'+function(_0x5d723d){if(ye['includes'](_0x5d723d))return'bulleted';if(Se['includes'](_0x5d723d))return'numbered';return null;}(_0x5e7d66)['toUpperCase']()+'_LIST_'+_0x5e7d66['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x2b2f8b{['afterInit'](){const _0x5dd5cf=this['editor'];_0x5dd5cf['commands']['get']('emoji')&&_0x5dd5cf['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x2b2f8b{static get['requires'](){return[_0x120c4a];}['init'](){const _0x490bb6=this['editor'],_0x1f374c=_0x490bb6['plugins']['get']('TrackChangesEditing'),_0x49f1e3=_0x490bb6['commands']['get']('enter');_0x1f374c['enableCommand']('enter',()=>{_0x490bb6['model']['change'](_0x949785=>{const _0x1b6f4c=_0x490bb6['model']['document']['selection'],_0x53bba9=_0x1b6f4c['getFirstPosition'](),_0x2409e2=_0xf26ff5['fromRange'](_0x1b6f4c['getFirstRange']());if(_0x49f1e3['enterBlock'](_0x949785)){const _0x44476f=_0x490bb6['model']['createPositionAt'](_0x53bba9['parent']['nextSibling'],0x0),_0x2c3595=_0x949785['createRange'](_0x53bba9,_0x44476f);_0x1f374c['markInsertion'](_0x2c3595);}else _0x949785['setSelection'](_0x949785['createRange'](_0x2409e2['end']));_0x2409e2['detach'](),_0x49f1e3['fire']('afterExecute',{'writer':_0x949785});});});}}class Y extends _0x2b2f8b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1aac4d=this['editor']['plugins']['get']('TrackChangesEditing');_0x1aac4d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1aac4d['enableCommand']('findNext'),_0x1aac4d['enableCommand']('findPrevious'),_0x1aac4d['enableCommand']('replace'),_0x1aac4d['enableCommand']('replaceAll');}['handleFindCommand'](_0x570764,_0x127752,_0x2e5955={}){const _0x457517=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x570764(_0x1a4302=>{let _0x3e84d1=('string'==typeof _0x127752?_0x457517['findByTextCallback'](_0x127752,_0x2e5955):_0x127752)(_0x1a4302);Array['isArray'](_0x3e84d1)&&(_0x3e84d1={'results':_0x3e84d1,'searchText':'string'==typeof _0x127752?_0x127752:''});const _0x35a6e8=_0x3e84d1['results']['filter'](_0x3255d5=>!0x1===this['_isInDeletionRange'](_0x3255d5,_0x1a4302['item']));return{..._0x3e84d1,'results':_0x35a6e8};},_0x2e5955);}['_isInDeletionRange'](_0x6008f6,_0x4bab95){const _0x546028=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4bab95,_0x6008f6['start']),this['editor']['model']['createPositionAt'](_0x4bab95,_0x6008f6['end']));for(const _0x1fd3d7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x546028['getIntersection'](_0x1fd3d7['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 _0x2b2f8b{['afterInit'](){const _0x59c6af=this['editor']['locale'],_0xaa9e2d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x57571e,commandName:_0x29d12b}of eo)this['editor']['plugins']['has'](_0x57571e)&&_0xaa9e2d['enableDefaultAttributesIntegration'](_0x29d12b);_0xaa9e2d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x59c6af,'FORMAT_FONT_SIZE')),_0xaa9e2d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x59c6af,'FORMAT_FONT_FAMILY')),_0xaa9e2d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x59c6af,'FORMAT_FONT_COLOR')),_0xaa9e2d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x59c6af,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c4b9b=this['editor'],_0x5db91e=_0x1c4b9b['locale'];_0x1c4b9b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c26f3=>{const _0x4c1da2=_0x5db91e['t'];if('formatInline'!=_0x4c26f3['type'])return;const {data:_0x2278a1}=_0x4c26f3;if(null!=_0x2278a1){if('fontSize'==_0x2278a1['commandName']){const _0x5bedd9=_0x2278a1['commandParams'][0x0]['value'];if(_0x5bedd9){const _0x39d1bd=_0x4c1da2(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x72fc28=>_0x72fc28['model']==_0x5bedd9)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5db91e,'*Set\x20font\x20size:*\x20%0',_0x39d1bd)};}return{'type':'format','content':o(_0x5db91e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2278a1['commandName']){const _0x3d64ba=_0x2278a1['commandParams'][0x0]['value'];return _0x3d64ba?{'type':'format','content':o(_0x5db91e,'*Set\x20font\x20family:*\x20%0',_0x3d64ba)}:{'type':'format','content':o(_0x5db91e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2278a1['commandName']){const _0x3f5da9=_0x2278a1['commandParams'][0x0]['value'];if(_0x3f5da9){const _0x608799=_0x1bbcf4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2dda48=>_0x2dda48['model']==_0x3f5da9);let _0x4f1cbf=_0x3f5da9,_0x1e89d3='';return _0x608799&&(_0x4f1cbf=_0x608799['label'],_0x1e89d3=_0x4c1da2(_0x4f1cbf)['toLowerCase']()),{'type':'format','content':o(_0x5db91e,'*Set\x20font\x20color:*\x20%0',_0x1e89d3)['trim'](),'color':{'value':_0x3f5da9,'title':_0x1e89d3||_0x4f1cbf}};}return{'type':'format','content':o(_0x5db91e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2278a1['commandName']){const _0x3376f6=_0x2278a1['commandParams'][0x0]['value'];if(_0x3376f6){const _0x526f8b=_0x1bbcf4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x353cf4=>_0x353cf4['model']==_0x3376f6);let _0x3122a4=_0x3376f6,_0x11c7f8='';return _0x526f8b&&(_0x3122a4=_0x526f8b['label'],_0x11c7f8=_0x4c1da2(_0x3122a4)['toLowerCase']()),{'type':'format','content':o(_0x5db91e,'*Set\x20font\x20background\x20color:*\x20%0',_0x11c7f8)['trim'](),'color':{'value':_0x3376f6,'title':_0x11c7f8||_0x3122a4}};}return{'type':'format','content':o(_0x5db91e,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x2b2f8b{['afterInit'](){const {plugins:_0x28b207}=this['editor'];_0x28b207['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x28b207['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0xc7a4e9,plugins:_0xa28991,commands:_0x7af871}=this['editor'],_0x5aa099=_0xa28991['get']('TrackChangesEditing');_0x7af871['get']('footnotesStyle')&&_0x5aa099['enableDefaultAttributesIntegration']('footnotesStyle'),_0x7af871['get']('footnotesStart')&&_0x5aa099['enableDefaultAttributesIntegration']('footnotesStart'),_0x5aa099['registerBlockAttribute']('footnotesListStyle'),_0x5aa099['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0xc7a4e9,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x5aa099['registerBlockAttribute']('footnotesListStart'),_0x5aa099['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0xc7a4e9,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x2412e0=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x4b413d,commands:_0x76ce86}=this['editor'];_0x76ce86['get']('insertFootnote')&&_0x2412e0['enableCommand']('insertFootnote'),_0x2412e0['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4ba7e7=>o(_0x4b413d,'ELEMENT_FOOTNOTE_REF',_0x4ba7e7)),_0x2412e0['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x5f55d3=>o(_0x4b413d,'ELEMENT_FOOTNOTE_DEFINITION',_0x5f55d3)),_0x2412e0['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x41adac=>o(_0x4b413d,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x41adac));}}class nt extends _0x2b2f8b{['afterInit'](){const _0xb190b2=this['editor'],_0x5bf728=_0xb190b2['plugins']['get']('TrackChangesEditing'),_0x29b4ad=_0xb190b2['commands']['get']('copyFormat'),_0x490d2b=_0xb190b2['commands']['get']('pasteFormat');_0x29b4ad&&_0x490d2b&&(_0x5bf728['enableDefaultAttributesIntegration']('pasteFormat'),_0x5bf728['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x42ddba=this['editor'],_0xf43dc4=_0x42ddba['locale'];_0x42ddba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bb94c=>{if('formatBlock'!=_0x3bb94c['type']&&'formatInline'!=_0x3bb94c['type'])return;const {data:_0x19b10b}=_0x3bb94c;if(_0x19b10b&&'pasteFormat'===_0x19b10b['commandName']){const _0x12c039=[],_0x4d76b0=_0x19b10b['commandParams'][0x0];for(const [_0x3f43c6,_0x338b0f]of Object['entries'](_0x4d76b0))_0x12c039['push'](ro(_0x42ddba,_0x3f43c6,_0x338b0f));return _0x12c039['length']?{'type':'format','content':o(_0xf43dc4,'*Set\x20format\x20to:*\x20%0',_0x12c039['join'](',\x20'))}:{'type':'format','content':o(_0xf43dc4,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x38691c,_0x43a954,_0x1e3416){const _0x13afc1=_0x38691c['locale']['t'],_0x5f1dff=_0x43a954['split'](/(?=[A-Z])/)['join']('\x20'),_0x1634f8=_0x13afc1(_0x5f1dff['charAt'](0x0)['toUpperCase']()+_0x5f1dff['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1e3416)return _0x1634f8;if('fontColor'===_0x43a954||'fontBackgroundColor'===_0x43a954){const _0xd3b259=_0x1bbcf4(_0x38691c['config']['get']('fontColor.colors'))['find'](_0x3c5e6e=>_0x3c5e6e['model']==_0x1e3416);return _0x1634f8+'\x20('+(_0xd3b259?_0x13afc1(_0xd3b259['label'])['toLowerCase']():_0x1e3416)+')';}if('fontSize'===_0x43a954&&isNaN(parseFloat(_0x1e3416))){const _0x3ee467=_0x38691c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x38691c['config']['get']('fontSize.options'))['find'](_0x133356=>_0x133356['model']==_0x1e3416);return _0x1634f8+'\x20('+(_0x3ee467?_0x13afc1(_0x3ee467['title'])['toLowerCase']():_0x1e3416)+')';}return _0x1634f8+'\x20('+_0x1e3416+')';}class it extends _0x2b2f8b{['_headingOptions'];['afterInit'](){const _0x2f8e33=this['editor'];if(!_0x2f8e33['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2f8e33['config']['get']('heading.options');const _0x57d60a=_0x2f8e33['locale'],_0x3e577a=_0x2f8e33['plugins']['get']('TrackChangesEditing');_0x3e577a['enableDefaultAttributesIntegration']('heading');for(const _0x163d22 of this['_headingOptions'])'paragraph'!=_0x163d22['model']&&_0x3e577a['descriptionFactory']['registerElementLabel'](_0x163d22['model'],_0x296c82=>{const _0x1a7ea8=this['_getHeadingLevel'](_0x163d22['model']);return null!==_0x1a7ea8?_0x4443d9(_0x296c82,_0x1a7ea8):_0x48f515(_0x296c82,_0x163d22['title']);});function _0x4443d9(_0x5a5fda,_0x68ab34){return o(_0x57d60a,'ELEMENT_HEADING',[_0x5a5fda,_0x68ab34]);}function _0x48f515(_0x302b78,_0xa86d8a){return o(_0x57d60a,'ELEMENT_HEADING_CUSTOM',[_0x302b78,_0xa86d8a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2de4ff=this['editor'],_0x45fc7e=_0x2de4ff['locale'];function _0x530c3c(_0x186c98,_0xaf08c0){return o(_0x45fc7e,'ELEMENT_HEADING_CUSTOM',[_0x186c98,_0xaf08c0]);}_0x2de4ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b648a=>{if('formatBlock'!=_0x5b648a['type'])return;const {data:_0x1c6712}=_0x5b648a;if(_0x1c6712&&'heading'==_0x1c6712['commandName']){const _0x5b8ba2=_0x1c6712['commandParams'][0x0]['value'],_0x56a7a9=this['_getHeadingLevel'](_0x5b8ba2);if(null!==_0x56a7a9)return{'type':'format','content':o(_0x45fc7e,'*Change\x20to:*\x20%0',(_0x26e133=0x1,_0xbd5ce0=_0x56a7a9,o(_0x45fc7e,'ELEMENT_HEADING',[_0x26e133,_0xbd5ce0])))};const _0x45582a=this['_headingOptions']['find'](_0x58efd1=>_0x58efd1['model']===_0x5b8ba2)['title'];return{'type':'format','content':o(_0x45fc7e,'*Change\x20to:*\x20%0',_0x530c3c(0x1,_0x45582a))};}var _0x26e133,_0xbd5ce0;});}['_getHeadingLevel'](_0x489f81){const _0x820237=_0x489f81['match'](/^heading(\d+)/);if(_0x820237)return _0x820237[0x1];const _0x124870=this['_headingOptions']?.['find'](_0x1aad42=>_0x1aad42['model']==_0x489f81);if(_0x124870&&_0x124870['view']){const _0xbd135f=_0x124870['view'],_0x2c5580=(_0xbd135f['name']??_0xbd135f)['match'](/^h(\d+)/);if(_0x2c5580)return _0x2c5580[0x1];}return null;}}class et extends _0x2b2f8b{['afterInit'](){const _0xfe2bd1=this['editor'];if(!_0xfe2bd1['plugins']['has']('HighlightEditing'))return;const _0x232296=_0xfe2bd1['plugins']['get']('TrackChangesEditing'),_0x3c96f3=_0xfe2bd1['locale'];_0x232296['enableDefaultAttributesIntegration']('highlight'),_0x232296['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3c96f3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13923e=this['editor'],_0x463ef1=_0x13923e['locale'];_0x13923e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e14d1=>{if('formatInline'!=_0x1e14d1['type'])return;const {data:_0x293e2a}=_0x1e14d1;if(_0x293e2a&&'highlight'==_0x293e2a['commandName']){const _0x55c5bf=_0x463ef1['t'],_0x480747=_0x293e2a['commandParams'][0x0]['value'];if(_0x480747){const _0x51cac1=_0x13923e['config']['get']('highlight.options')['find'](_0x57ee12=>_0x57ee12['model']==_0x480747),_0x4831e9=_0x55c5bf(_0x51cac1['title'])['toLowerCase']();return{'type':'format','content':o(_0x463ef1,'*Set\x20highlight:*\x20%0',_0x4831e9),'color':{'value':_0x51cac1['color'],'title':_0x51cac1['title']}};}return{'type':'format','content':o(_0x463ef1,'*Remove\x20highlight*',o(_0x463ef1,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2b2f8b{['afterInit'](){const _0xd2e75d=this['editor'];if(!_0xd2e75d['plugins']['has']('HorizontalLineEditing'))return;_0xd2e75d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4d029d=_0xd2e75d['plugins']['get']('TrackChangesEditing'),_0x5331b8=_0xd2e75d['locale'];_0x4d029d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2b5df7=>o(_0x5331b8,'ELEMENT_HORIZONTAL_LINE',_0x2b5df7));}}class ot extends _0x2b2f8b{['afterInit'](){const _0x4f04a0=this['editor'];if(!_0x4f04a0['plugins']['has']('HtmlEmbed'))return;const _0x389549=_0x4f04a0['plugins']['get']('TrackChangesEditing'),_0x8b1095=_0x4f04a0['locale'];_0x389549['descriptionFactory']['registerElementLabel']('rawHtml',_0xa48de6=>o(_0x8b1095,'ELEMENT_HTML_EMBED',_0xa48de6)),_0x389549['enableDefaultAttributesIntegration']('htmlEmbed'),_0x389549['descriptionFactory']['registerDescriptionCallback'](_0x34e297=>{if('attribute'!=_0x34e297['type'])return;const {data:_0x15e768}=_0x34e297;if(_0x15e768&&'value'==_0x15e768['key']&&_0x34e297['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x332d3f=o(_0x8b1095,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x8b1095,'*Change\x20%0\x20content*',_0x332d3f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x445f87=this['editor'],_0x26b17b=_0x445f87['locale'];_0x445f87['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33ccc2=>{if('formatBlock'!=_0x33ccc2['type'])return;const {data:_0x3d59bd}=_0x33ccc2;if(_0x3d59bd&&'htmlEmbed'==_0x3d59bd['commandName']){const _0x45db92=o(_0x26b17b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x26b17b,'*Change\x20%0\x20content*',_0x45db92)};}});}}class rt extends _0x2b2f8b{['afterInit'](){const _0x1cc3d6=this['editor'];if(!_0x1cc3d6['plugins']['has']('ImageEditing'))return;const _0x443296=_0x1cc3d6['plugins']['get']('TrackChangesEditing'),_0x31e152=_0x1cc3d6['plugins']['get']('ImageUtils'),_0x3569c5=_0x1cc3d6['locale'];_0x443296['enableCommand']('insertImage'),_0x443296['descriptionFactory']['registerElementLabel']('imageBlock',_0x2653c6=>o(_0x3569c5,'ELEMENT_IMAGE',_0x2653c6)),_0x443296['descriptionFactory']['registerElementLabel']('imageInline',_0x429b2e=>o(_0x3569c5,'ELEMENT_INLINE_IMAGE',_0x429b2e)),_0x443296['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3569c5,'ELEMENT_CAPTION')),_0x1cc3d6['plugins']['has']('ImageUploadEditing')&&_0x443296['enableCommand']('uploadImage'),_0x1cc3d6['plugins']['has']('ImageBlockEditing')&&_0x1cc3d6['plugins']['has']('ImageInlineEditing')&&(_0x443296['enableCommand']('imageTypeInline',(_0x313a3d,_0x2d4782)=>{const _0x29b1d4=_0x31e152['getClosestSelectedImageElement'](_0x1cc3d6['model']['document']['selection']);_0x1cc3d6['model']['change'](()=>{_0x443296['markBlockFormat'](_0x29b1d4,{'commandName':'imageTypeInline','commandParams':[_0x2d4782]},[],'convertBlockImageToInline');});}),_0x443296['enableCommand']('imageTypeBlock',(_0x1b9fdb,_0x1c3e86)=>{_0x1cc3d6['model']['change'](_0x12ace3=>{let _0x2239a7=_0x31e152['getClosestSelectedImageElement'](_0x1cc3d6['model']['document']['selection']),_0x536ded=_0x12ace3['createRangeOn'](_0x2239a7);const _0x3c32d8=_0x73289d['fromPosition'](_0x536ded['start'],'toPrevious'),_0x3e6cfb=_0x73289d['fromPosition'](_0x536ded['end'],'toNext');_0x443296['forceDefaultExecution'](()=>_0x1b9fdb(_0x1c3e86)),_0x2239a7=_0x31e152['getClosestSelectedImageElement'](_0x1cc3d6['model']['document']['selection']),_0x536ded=_0x12ace3['createRangeOn'](_0x2239a7);const _0x362ff7=_0x12ace3['createRange'](_0x3c32d8,_0x3e6cfb);_0x3c32d8['detach'](),_0x3e6cfb['detach'](),_0x443296['markBlockFormat'](_0x2239a7,{'commandName':'imageTypeInline','commandParams':[_0x1c3e86]},[],'convertInlineImageToBlock'),_0x362ff7['start']['isBefore'](_0x536ded['start'])&&_0x443296['markInsertion'](_0x12ace3['createRange'](_0x362ff7['start'],_0x536ded['start']),'convertInlineImageToBlock'),_0x536ded['end']['isBefore'](_0x362ff7['end'])&&_0x443296['markInsertion'](_0x12ace3['createRange'](_0x536ded['end'],_0x362ff7['end']),'convertInlineImageToBlock');});}),_0x443296['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x443296['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x443296['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x443296['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x443296['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x443296['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x590af5])=>{const _0x3180f7=_0x443296['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2d4302=_0x590af5['start'],_0x2e6179=_0x590af5['end'];const _0x472426=_0x1cc3d6['model']['schema']['getNearestSelectionRange'](_0x2d4302,'backward'),_0xb63432=_0x1cc3d6['model']['schema']['getNearestSelectionRange'](_0x2e6179,'forward');_0x472426['isCollapsed']&&(_0x2d4302=_0x472426['start']),_0xb63432['isCollapsed']&&(_0x2e6179=_0xb63432['end']),_0x3180f7([_0x1cc3d6['model']['createRange'](_0x2d4302,_0x2e6179)]);}),_0x443296['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4e4fb0),_0x443296['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4e4fb0)),_0x1cc3d6['plugins']['has']('ImageCaptionEditing')&&(_0x443296['enableCommand']('toggleImageCaption',(_0x45c200,_0x361ec1)=>{const _0x3fb656=_0x1cc3d6['plugins']['get']('ImageCaptionUtils');let _0x3f2cc0=_0x31e152['getClosestSelectedImageElement'](_0x1cc3d6['model']['document']['selection']),_0x1ce1cd=_0x3fb656['getCaptionFromImageModelElement'](_0x3f2cc0);_0x1cc3d6['model']['change'](()=>{if(_0x1ce1cd)return void _0x443296['markDeletion'](_0x1cc3d6['model']['createRangeOn'](_0x1ce1cd));const _0x109635=_0x31e152['isBlockImage'](_0x3f2cc0);_0x45c200(_0x361ec1),_0x3f2cc0=_0x31e152['getClosestSelectedImageElement'](_0x1cc3d6['model']['document']['selection']),_0x1ce1cd=_0x3fb656['getCaptionFromImageModelElement'](_0x3f2cc0),_0x443296['markInsertion'](_0x1cc3d6['model']['createRangeOn'](_0x1ce1cd),_0x109635?null:'imageCaption');});}),_0x443296['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4e4fb0));const _0x39f3e1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ee9c6(_0x272113,_0xb6f5c0){const _0x223761=_0x39f3e1['findIndex'](({type:_0x36f234,subType:_0x107e86})=>_0x272113['type']==_0x36f234&&_0x272113['subType']==_0x107e86),_0x380a03=_0x39f3e1['findIndex'](({type:_0x54b61e,subType:_0x37e497})=>_0xb6f5c0['type']==_0x54b61e&&_0xb6f5c0['subType']==_0x37e497);if(_0x223761<0x0||_0x380a03<0x0)return!0x1;const _0x4d7174=_0x272113['getFirstRange'](),_0x562abc=_0xb6f5c0['getFirstRange']();if((0x0==_0x223761||0x1==_0x223761)&&0x2==_0x380a03&&_0x4d7174['isIntersecting'](_0x562abc))return!0x0;if(0x2==_0x223761&&0x3==_0x380a03){const _0x8bb66e=_0x443296['_findSuggestions'](_0x4d7174,'insertion')['filter'](({suggestion:_0x566e3a,meta:_0x3008a1})=>_0x3008a1['isOwn']&&'convertInlineImageToBlock'==_0x566e3a['subType']);if(_0x8bb66e['length']>0x1&&_0x562abc['end']['isEqual'](_0x4d7174['start']))return!0x0;if(0x1==_0x8bb66e['length']&&(_0x4d7174['start']['isEqual'](_0x562abc['end'])||_0x4d7174['end']['isEqual'](_0x562abc['start'])))return!0x0;}if(0x3==_0x223761&&0x3==_0x380a03&&_0x4d7174['start']['isBefore'](_0x562abc['start'])){const _0x4f4530=_0x4d7174['end']['nodeAfter'],_0x8d21b1=_0x562abc['start']['nodeBefore'];return _0x31e152['isBlockImage'](_0x4f4530)&&_0x4f4530===_0x8d21b1;}return!0x1;}function _0x4e4fb0(_0x34f3b9,_0x2ba0f7){return _0x4ee9c6(_0x34f3b9,_0x2ba0f7)?[_0x34f3b9,_0x2ba0f7]:_0x4ee9c6(_0x2ba0f7,_0x34f3b9)?[_0x2ba0f7,_0x34f3b9]:null;}_0x1cc3d6['plugins']['has']('ImageResize')&&(_0x443296['enableDefaultAttributesIntegration']('resizeImage'),_0x443296['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3569c5,'FORMAT_IMAGE_SIZE'))),_0x1cc3d6['plugins']['has']('ImageTextAlternativeEditing')&&_0x443296['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1cc3d6['plugins']['has']('PictureEditing')&&_0x443296['descriptionFactory']['registerDescriptionCallback'](_0x18269f=>{if('attribute'!=_0x18269f['type'])return;const {data:_0x30258d}=_0x18269f;return _0x30258d&&'sources'==_0x30258d['key']?{'type':'format','content':''}:void 0x0;}),_0x1cc3d6['plugins']['has']('ImageSizeAttributes')&&_0x443296['descriptionFactory']['registerDescriptionCallback'](_0x416134=>{if('attribute'!=_0x416134['type'])return;const {data:_0x27adc6}=_0x416134;return!_0x27adc6||'width'!=_0x27adc6['key']&&'height'!=_0x27adc6['key']?void 0x0:{'type':'format','content':''};}),_0x443296['descriptionFactory']['registerDescriptionCallback'](_0x52c373=>{if(!!_0x39f3e1['find'](({type:_0x564268,subType:_0x5b9583})=>_0x52c373['type']==_0x564268&&_0x52c373['subType']==_0x5b9583))return _0x52c373['previous']?{}:void 0x0;}),_0x443296['descriptionFactory']['registerDescriptionCallback'](_0x3eae18=>{if('insertion'==_0x3eae18['type']||'deletion'==_0x3eae18['type']){const _0x27dcf4=_0x3eae18['getContainedElement']();if(_0x27dcf4&&_0x27dcf4['is']('element','caption'))return{'type':'insertion'==_0x3eae18['type']?'addObject':'removeObject','element':_0x27dcf4,'quantity':0x1};}}),_0x443296['descriptionFactory']['registerDescriptionCallback'](_0x2769cb=>'formatBlock'==_0x2769cb['type']&&'convertInlineImageToBlock'==_0x2769cb['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2769cb['type']&&'convertBlockImageToInline'==_0x2769cb['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x443296['descriptionFactory']['registerDescriptionCallback'](_0x3aac25=>{if('attribute'!=_0x3aac25['type'])return;const {data:_0x52df6e}=_0x3aac25;if(!_0x52df6e||'alt'!=_0x52df6e['key'])return;const _0x3dcef3=_0x52df6e['newValue'];return _0x3dcef3?{'type':'format','content':o(_0x3569c5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3dcef3+'\x22')}:{'type':'format','content':o(_0x3569c5,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28329b=this['editor'],_0x5305d0=_0x28329b['locale'];_0x28329b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x490a1d=>{if('formatBlock'!=_0x490a1d['type']&&'formatInline'!=_0x490a1d['type'])return;const {data:_0x4c151c}=_0x490a1d;if(_0x4c151c){if('imageTextAlternative'==_0x4c151c['commandName']){const _0x1a2060=_0x4c151c['commandParams'][0x0]['newValue'];return _0x1a2060?{'type':'format','content':o(_0x5305d0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1a2060+'\x22')}:{'type':'format','content':o(_0x5305d0,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4c151c['commandName']){const _0x56b1bd=_0x4c151c['commandParams'][0x0]['width'];return _0x56b1bd?{'type':'format','content':o(_0x5305d0,'*Set\x20image\x20width:*\x20%0',_0x56b1bd)}:{'type':'format','content':o(_0x5305d0,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2b2f8b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4a585b=this['editor']['locale'],_0x172fed=this['editor']['plugins']['get']('TrackChangesEditing');_0x172fed['enableDefaultAttributesIntegration']('replaceImageSource'),_0x172fed['descriptionFactory']['registerDescriptionCallback'](_0x54e7aa=>{if('attribute'!=_0x54e7aa['type'])return;const {data:_0x2e9f10}=_0x54e7aa;return _0x2e9f10&&'src'==_0x2e9f10['key']?_0x2e9f10['newValue']&&_0x2e9f10['oldValue']?{'type':'format','content':o(_0x4a585b,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x563187=this['editor']['plugins']['get']('TrackChangesEditing');_0x563187['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x563187['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x563187['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x563187['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18a8e8=this['editor'],_0x3c39c6=_0x18a8e8['locale'];_0x18a8e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d3e34=>{if('formatBlock'!=_0x2d3e34['type']&&'formatInline'!=_0x2d3e34['type'])return;const {data:_0x388a4c}=_0x2d3e34;if(!_0x388a4c||'replaceImageSource'!=_0x388a4c['commandName'])return;return{'type':'format','content':o(_0x3c39c6,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2b2f8b{['afterInit'](){const _0x154534=this['editor'];if(!_0x154534['plugins']['has']('ImageStyleEditing'))return;const _0x4686fc=_0x154534['plugins']['get']('TrackChangesEditing'),_0xdcdcf7=_0x154534['plugins']['get']('ImageUtils'),_0x2668ac={};_0x4686fc['enableCommand']('imageStyle',(_0x261dfc,_0x5dea4c)=>{const _0x2be5b4=_0x154534['plugins']['get']('Users')['me'],_0x2bc51d=_0x154534['commands']['get']('imageStyle');let _0x3fb63d=_0xdcdcf7['getClosestSelectedImageElement'](_0x154534['model']['document']['selection']),_0x31ad2d=_0x154534['model']['createRangeOn'](_0x3fb63d),_0x365d04=_0x2bc51d['value'];if(_0x365d04==_0x5dea4c['value'])return;const _0x30d3be={'commandName':'imageStyle','commandParams':[_0x5dea4c],'formatGroupId':_0x8ed52d()};_0x154534['model']['change'](()=>{if(_0x4686fc['getSuggestions']()['filter'](_0xae4129=>_0xae4129['isInContent']&&_0x2be5b4==_0xae4129['author']&&('formatBlock'==_0xae4129['type']||'formatInline'==_0xae4129['type'])&&('imageStylePreApply'==_0xae4129['subType']||'imageStylePostApply'==_0xae4129['subType'])&&_0xae4129['getFirstRange']()['isEqual'](_0x31ad2d))['forEach'](_0x55681a=>_0x4686fc['discardSuggestion'](_0x55681a['head'])),_0x3fb63d=_0xdcdcf7['getClosestSelectedImageElement'](_0x154534['model']['document']['selection']),_0x31ad2d=_0x154534['model']['createRangeOn'](_0x3fb63d),_0x2bc51d['refresh'](),_0x154534['commands']['get']('imageTypeInline')['refresh'](),_0x154534['commands']['get']('imageTypeBlock')['refresh'](),_0x365d04=_0x2bc51d['value'],_0x365d04!=_0x5dea4c['value'])return _0xdcdcf7['isInlineImage'](_0x3fb63d)&&_0x2bc51d['shouldConvertImageType'](_0x5dea4c['value'],_0x3fb63d)?(_0x261dfc({..._0x5dea4c,'setImageSizes':!0x1}),_0x3fb63d=_0xdcdcf7['getClosestSelectedImageElement'](_0x154534['model']['document']['selection']),void _0x4686fc['markBlockFormat'](_0x3fb63d,{..._0x30d3be,'commandReversedParams':[{'value':_0x365d04||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xdcdcf7['isBlockImage'](_0x3fb63d)?_0x4686fc['markBlockFormat'](_0x3fb63d,_0x30d3be,[],'imageStylePostApply'):_0x4686fc['markInlineFormat'](_0x31ad2d,_0x30d3be,'imageStylePostApply'));});});for(const _0x55dc3d of _0x154534['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2668ac[_0x55dc3d['name']]=_0x55dc3d['title']['toLowerCase']();_0x4686fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4686fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4686fc['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4686fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5b957d])=>{_0xdcdcf7['setImageNaturalSizeAttributes'](_0x5b957d['getContainedElement']());}),_0x4686fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x126810,_0x48fc36)=>{_0x4686fc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x126810,{'commandName':_0x48fc36['commandName'],'commandParams':_0x48fc36['commandReversedParams']});}),_0x4686fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5865ab,_0x4663a9){if(_0x1c9354(_0x5865ab,_0x4663a9))return[_0x5865ab,_0x4663a9];if(_0x1c9354(_0x4663a9,_0x5865ab))return[_0x4663a9,_0x5865ab];return null;});const _0x96c0fb=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1c9354(_0x50a31d,_0x4b34fb){const _0x2ff5c9=_0x96c0fb['findIndex'](({type:_0x3fe5cd,subType:_0x36b3ff})=>_0x50a31d['type']==_0x3fe5cd&&_0x50a31d['subType']==_0x36b3ff),_0x4d69bd=_0x96c0fb['findIndex'](({type:_0x368990,subType:_0x40dc10})=>_0x4b34fb['type']==_0x368990&&_0x4b34fb['subType']==_0x40dc10);if(_0x2ff5c9<0x0||_0x4d69bd<0x0)return!0x1;const _0x9bde7=_0x50a31d['getFirstRange'](),_0x4930a4=_0x4b34fb['getFirstRange']();if((0x0==_0x2ff5c9||0x1==_0x2ff5c9)&&0x2==_0x4d69bd&&_0x9bde7['isIntersecting'](_0x4930a4))return!0x0;if(0x2==_0x2ff5c9&&0x3==_0x4d69bd){const _0x2eedd8=_0x4686fc['_findSuggestions'](_0x9bde7,'insertion')['filter'](({suggestion:_0x42b1f1,meta:_0x34e10d})=>_0x34e10d['isOwn']&&'convertInlineImageToBlock'==_0x42b1f1['subType']);if(_0x2eedd8['length']>0x1&&_0x4930a4['end']['isEqual'](_0x9bde7['start']))return!0x0;if(0x1==_0x2eedd8['length']&&(_0x9bde7['start']['isEqual'](_0x4930a4['end'])||_0x9bde7['end']['isEqual'](_0x4930a4['start'])))return!0x0;}if(0x3==_0x2ff5c9&&0x3==_0x4d69bd&&_0x9bde7['start']['isBefore'](_0x4930a4['start'])){const _0x112e43=_0x9bde7['end']['nodeAfter'],_0x2375a7=_0x4930a4['start']['nodeBefore'];return _0xdcdcf7['isBlockImage'](_0x112e43)&&_0x112e43===_0x2375a7;}return!0x1;}_0x154534['model']['document']['registerPostFixer'](()=>{let _0x5ceadd=!0x1;const _0x15a2bf=Array['from'](_0x154534['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5e2dfa,data:_0x26c602}of _0x15a2bf){const {group:_0x4982fa,type:_0x141549,subType:_0x3f03fe,id:_0xbe304e}=_0x4686fc['_splitMarkerName'](_0x5e2dfa);if('suggestion'==_0x4982fa&&_0x4686fc['hasSuggestion'](_0xbe304e)){if('formatBlock'==_0x141549&&('imageStylePreApply'==_0x3f03fe||'imageStylePostApply'==_0x3f03fe)){const _0x299ecc=_0x4686fc['getSuggestion'](_0xbe304e);if(_0x26c602['newRange']){const _0x25c0d2=_0x299ecc['getFirstRange']()['getContainedElement']();if(_0xdcdcf7['isBlockImage'](_0x25c0d2))continue;_0x4686fc['discardSuggestion'](_0x299ecc),_0x5ceadd=!0x0;}}if('insertion'==_0x141549&&'imageCaption'==_0x3f03fe&&!_0x26c602['newRange']){const _0x2954f0=_0x4686fc['getSuggestion'](_0xbe304e);_0x2954f0['next']&&_0x2954f0['next']['isInContent']&&(_0x4686fc['discardSuggestion'](_0x2954f0['next']),_0x5ceadd=!0x0);}}}return _0x5ceadd;}),this['_registerLegacyDescription'](_0x2668ac);}['_registerLegacyDescription'](_0x3869b4){const _0xce5075=this['editor'],_0x23b684=_0xce5075['locale'];_0xce5075['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f026b=>{if('formatBlock'!=_0x3f026b['type']&&'formatInline'!=_0x3f026b['type'])return;const {data:_0x414882}=_0x3f026b;if(!_0x414882||'imageStyle'!=_0x414882['commandName'])return;const _0x320807=_0x414882['commandParams'][0x0]['value'];return _0x4b6d4c('side'===_0x320807?o(_0x23b684,'FORMAT_SIDE_IMAGE'):_0x3869b4[_0x320807]||_0x320807);function _0x4b6d4c(_0x3dcbe0){return{'type':'format','content':o(_0x23b684,'*Format:*\x20%0',_0x3dcbe0)};}});}}class ut extends _0x2b2f8b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x6bd212){super(_0x6bd212),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x28092d=this['editor'],_0xf01f1e=_0x28092d['commands']['get']('importWord'),_0x183635=_0x28092d['commands']['get']('trackChanges');_0xf01f1e&&(_0xf01f1e['on']('execute',(_0x1a0b5d,[,_0x40c684])=>{this['_trackChangesValueDuringImport']=_0x183635['value'],_0x40c684['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xf01f1e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xf01f1e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x183635['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x28092d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1426f4,_0x1cb187){const {suggestions:_0xc60c34}=_0x1cb187,_0x5490ad=this['editor']['commands']['get']('trackChanges'),_0x304739=_0x5490ad['value'];this['_trackChangesValueDuringImport']!==_0x304739&&(_0x5490ad['execute'](),this['_trackChangesExecuted']=!0x0),_0xc60c34&&_0xc60c34['forEach'](({id:_0x50497c,type:_0x5e1b5b,author:_0x336717,created_at:_0xa1282})=>{const _0x5c285a={'id':_0x50497c,'type':_0x5e1b5b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x336717,'createdAt':_0xa1282?new Date(_0xa1282):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5c285a);});}}class ft extends _0x2b2f8b{['afterInit'](){const _0x2d11ac=this['editor'],_0x959dd0=_0x2d11ac['plugins']['get']('TrackChangesEditing');if(_0x2d11ac['plugins']['has']('IndentEditing')&&(_0x959dd0['enableCommand']('indent'),_0x959dd0['enableCommand']('outdent')),_0x2d11ac['plugins']['has']('IndentBlock')){for(const _0x531139 of['indentBlock','outdentBlock'])_0x959dd0['enableDefaultAttributesIntegration'](_0x531139);}const _0x4773bd=_0x2d11ac['locale'];_0x959dd0['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4773bd,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ac50e=this['editor'],_0x6faf3f=_0x1ac50e['locale'],_0x3ab120=_0x1ac50e['plugins']['get']('TrackChangesEditing');_0x3ab120['descriptionFactory']['registerDescriptionCallback'](_0x3353b8=>{if('formatBlock'!=_0x3353b8['type'])return;const {data:_0x3c1e21}=_0x3353b8;if(!_0x3c1e21)return;if('indentBlock'!=_0x3c1e21['commandName']&&'outdentBlock'!=_0x3c1e21['commandName'])return;const _0xe2b606=_0x3353b8['getItems']()[0x0],_0x4bc89d=_0x3ab120['descriptionFactory']['getItemLabel'](_0xe2b606);return'indentBlock'==_0x3c1e21['commandName']?{'type':'format','content':o(_0x6faf3f,'*Indent:*\x20%0',_0x4bc89d)}:'outdentBlock'==_0x3c1e21['commandName']?{'type':'format','content':o(_0x6faf3f,'*Outdent:*\x20%0',_0x4bc89d)}:void 0x0;});}}class ht extends _0x2b2f8b{static get['requires'](){return[_0x3b62bb];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x2b2f8b{['afterInit'](){const _0x239f30=this['editor'];if(!_0x239f30['plugins']['has']('LinkEditing'))return;const _0xe4a9d9=_0x239f30['plugins']['get']('TrackChangesEditing'),_0x5d0bd9=_0x239f30['commands']['get']('link');_0xe4a9d9['enableDefaultAttributesIntegration']('link'),_0xe4a9d9['enableDefaultAttributesIntegration']('unlink');for(const _0x5a7459 of _0x5d0bd9['manualDecorators'])_0xe4a9d9['descriptionFactory']['registerAttributeLabel'](_0x5a7459['id'],'link\x20('+_0x5a7459['label']['toLowerCase']()+')');_0xe4a9d9['descriptionFactory']['registerDescriptionCallback'](_0x23af2a=>{if('attribute'!=_0x23af2a['type'])return;const {data:_0x507479}=_0x23af2a;if(!_0x507479||'linkHref'!=_0x507479['key'])return;const _0x15d5aa=_0x507479['newValue'],_0xeca4e8=_0x239f30['locale'];return{'type':'format','content':null==_0x15d5aa?o(_0xeca4e8,'*Remove\x20link*'):o(_0xeca4e8,'*Set\x20link:*\x20%0','\x22'+_0x15d5aa+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f8e5d=this['editor'],_0xfbea3a=_0x1f8e5d['locale'];_0x1f8e5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43a627=>{if('formatInline'!=_0x43a627['type'])return;const {data:_0xc76a74}=_0x43a627;if(_0xc76a74){if('link'==_0xc76a74['commandName']){const _0x26e25d=_0xc76a74['commandParams'][0x0];return{'type':'format','content':o(_0xfbea3a,'*Set\x20link:*\x20%0','\x22'+_0x26e25d+'\x22')};}return'unlink'==_0xc76a74['commandName']?{'type':'format','content':o(_0xfbea3a,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x2b2f8b{['afterInit'](){const _0x296a03=this['editor'],_0x453241=_0x296a03['locale'];if(!_0x296a03['plugins']['has']('LegacyListEditing'))return;const _0x54492a=_0x296a03['plugins']['get']('TrackChangesEditing'),_0xed08d4=_0x296a03['plugins']['has']('LegacyTodoListEditing');function _0xe7ef1(_0x1d37e2){return()=>{const _0x264111=_0x296a03['model']['document']['selection'],_0x4d5c6b=_0x296a03['commands']['get'](_0x1d37e2);if(_0x4d5c6b['value'])return void _0x296a03['execute']('paragraph',{});const _0x6dce97=_0x1d37e2['slice'](0x0,-0x4),_0x51b98d=function(_0x35d1c5,_0x294d5f,_0x2fe1b5){let _0x939111=Array['from'](_0x35d1c5)['filter'](_0x6c08d1=>function(_0x2c4306,_0x3b52ef){return _0x3b52ef['checkChild'](_0x2c4306['parent'],'listItem')&&!_0x3b52ef['isObject'](_0x2c4306);}(_0x6c08d1,_0x2fe1b5));_0x939111=_0x939111['filter'](_0x5d8bfc=>!_0x5d8bfc['is']('element','listItem')||_0x5d8bfc['getAttribute']('listType')!=_0x294d5f);const _0x51ef7e=new Set();for(const _0x1f5815 of _0x939111)_0x1f5815['is']('element','listItem')?_0x51ef7e['add'](Le(_0x1f5815)):_0x51ef7e['add'](_0x1f5815);return Array['from'](_0x51ef7e);}(_0x264111['getSelectedBlocks'](),_0x6dce97,_0x296a03['model']['schema']);_0x296a03['model']['change'](()=>{for(const _0x59fd7b of _0x51b98d)_0x54492a['markBlockFormat'](_0x59fd7b,{'commandName':_0x1d37e2,'commandParams':[{'forceValue':!_0x4d5c6b['value']}],'formatGroupId':'blockName'},Ee(_0x59fd7b));});};}function _0xef3515(_0x169978){return()=>{const _0xb64b3d=function(_0x1a648d){let _0x528656=Array['from'](_0x1a648d);const _0x48cb95=_0x528656['findIndex'](_0x148fda=>'listItem'!=_0x148fda['name']);return _0x48cb95>-0x1&&(_0x528656=_0x528656['slice'](0x0,_0x48cb95)),_0x528656;}(_0x296a03['model']['document']['selection']['getSelectedBlocks']()),_0x1673a3=_0x296a03['model']['createRange'](_0x296a03['model']['createPositionAt'](_0xb64b3d[0x0],'before'),_0x296a03['model']['createPositionAt'](_0xb64b3d[_0xb64b3d['length']-0x1],'end'));_0x296a03['model']['change'](()=>{_0x54492a['markBlockFormat'](_0x1673a3,{'commandName':_0x169978,'commandParams':[],'formatGroupId':'listIndent'},function(_0x94a553){const _0x2d1163=new Set();for(const _0x4472fd of _0x94a553){let _0x1b7b25=_0x4472fd['nextSibling'];for(;_0x1b7b25&&_0x1b7b25['getAttribute']('listIndent')>_0x4472fd['getAttribute']('listIndent');)_0x2d1163['add'](_0x1b7b25),_0x1b7b25=_0x1b7b25['nextSibling'];}return Array['from'](_0x2d1163);}(_0xb64b3d));});};}_0x54492a['enableCommand']('numberedList',_0xe7ef1('numberedList')),_0x54492a['enableCommand']('bulletedList',_0xe7ef1('bulletedList')),_0xed08d4&&_0x54492a['enableCommand']('todoList',_0xe7ef1('todoList')),_0x54492a['enableCommand']('indentList',_0xef3515('indentList')),_0x54492a['enableCommand']('outdentList',_0xef3515('outdentList')),_0xed08d4&&_0x54492a['enableCommand']('checkTodoList',()=>{const _0x5ac043=_0x296a03['commands']['get']('checkTodoList'),_0xd404aa=Array['from'](_0x5ac043['_selectedElements']);_0xd404aa['filter'](_0x4a266f=>_0x4a266f['getAttribute']('todoListChecked')!=_0x5ac043['value']),_0x296a03['model']['change'](()=>{for(const _0x4a20be of _0xd404aa)_0x54492a['markBlockFormat'](_0x4a20be,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5ac043['value']}]});});}),_0x54492a['descriptionFactory']['registerElementLabel']('listItem',_0x242b5a=>o(_0x453241,'ELEMENT_LIST_ITEM',_0x242b5a)),_0x54492a['descriptionFactory']['registerDescriptionCallback'](_0x2c9e2e=>{if('formatBlock'!=_0x2c9e2e['type']&&'formatInline'!=_0x2c9e2e['type'])return;const {data:_0xd75b29}=_0x2c9e2e;if(_0xd75b29){if('numberedList'==_0xd75b29['commandName']||'bulletedList'==_0xd75b29['commandName']||'todoList'==_0xd75b29['commandName'])switch(_0xd75b29['commandName']['replace']('List','')){case'bulleted':return _0x353dd3(o(_0x453241,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x353dd3(o(_0x453241,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x353dd3(o(_0x453241,'ELEMENT_TODO_LIST'));}if('indentList'==_0xd75b29['commandName'])return{'type':'format','content':o(_0x453241,'*Indent:*\x20%0',o(_0x453241,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xd75b29['commandName'])return{'type':'format','content':o(_0x453241,'*Outdent:*\x20%0',o(_0x453241,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xd75b29['commandName'])return _0xd75b29['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x453241,'*Check\x20item*')}:{'type':'format','content':o(_0x453241,'*Uncheck\x20item*')};}function _0x353dd3(_0x429d13){return{'type':'format','content':o(_0x453241,'*Change\x20to:*\x20%0',_0x429d13)};}});}}function Le(_0x27118e){const _0x2f23f1=_0x27118e['getAttribute']('listIndent');if(0x0==_0x2f23f1)return _0x27118e;let _0x46d42b=_0x27118e;for(;_0x27118e['previousSibling']&&_0x27118e['previousSibling']['is']('element','listItem');){const _0x48bab3=_0x27118e['previousSibling']['getAttribute']('listIndent');if(_0x48bab3==_0x2f23f1)_0x46d42b=_0x27118e['previousSibling'];else{if(_0x48bab3<_0x2f23f1)break;}_0x27118e=_0x27118e['previousSibling'];}return _0x46d42b;}function Ee(_0x3549f1){const _0x887857=[];if(_0x3549f1['is']('element','listItem')&&_0x3549f1['getAttribute']('listIndent')>0x0){let _0x35e774=_0x3549f1['nextSibling'];for(;_0x35e774&&'listItem'==_0x35e774['name']&&_0x35e774['getAttribute']('listIndent')==_0x3549f1['getAttribute']('listIndent');)_0x887857['push'](_0x35e774),_0x35e774=_0x35e774['nextSibling'];}return _0x887857;}class mt extends _0x2b2f8b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x580205=this['editor']['config']['get']('list.properties'),_0x9f9390=this['editor']['plugins']['get']('TrackChangesEditing');_0x580205['styles']&&_0x9f9390['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x580205['reversed']&&_0x9f9390['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x580205['startIndex']&&_0x9f9390['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x9f9390['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x31793f,_0x5888b5={}){const _0x272854=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb703bc=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x272854['markMultiRangeBlockFormat'](_0xb703bc,{'commandName':'listStyle','commandParams':[{'type':_0x5888b5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1bd7b4,_0x5ee03a={}){const _0x33f4c3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28385f=this['_getSuggestionBlocks'](_0x4175fc=>_0x4175fc['is']('element','listItem')&&'numbered'===_0x4175fc['getAttribute']('listType'));if(_0x28385f['length']<0x1)return;const _0x393e69=_0x28385f['map'](_0x59f825=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x59f825,'before'),this['editor']['model']['createPositionAt'](_0x59f825,0x0)));this['editor']['model']['change'](()=>{_0x33f4c3['markMultiRangeBlockFormat'](_0x393e69,{'commandName':'listReversed','commandParams':[{'reversed':_0x5ee03a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x56bccc,_0x3f94d6={}){const _0x10598a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x318cc3=this['_getSuggestionBlocks'](_0x558457=>_0x558457['is']('element','listItem')&&'numbered'===_0x558457['getAttribute']('listType'));if(_0x318cc3['length']<0x1)return;const _0x8455b2=_0x318cc3['map'](_0x606c6a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x606c6a,'before'),this['editor']['model']['createPositionAt'](_0x606c6a,0x0)));this['editor']['model']['change'](()=>{_0x10598a['markMultiRangeBlockFormat'](_0x8455b2,{'commandName':'listStart','commandParams':[{'startIndex':_0x3f94d6['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5eedf8){if('formatBlock'!=_0x5eedf8['type']&&'formatInline'!=_0x5eedf8['type'])return;const _0x188f65=this['editor']['locale'],{data:_0x112669}=_0x5eedf8;if(!_0x112669)return;let _0x2db968,_0x4b7aae;switch(_0x112669['commandName']){case'listStyle':_0x2db968='*Change\x20to:*\x20%0',_0x4b7aae={'type':'format','content':o(_0x188f65,_0x2db968,o(_0x188f65,this['_getTranslationKeyForListStyle'](_0x112669['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2db968=_0x112669['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4b7aae={'type':'format','content':o(_0x188f65,_0x2db968)};break;case'listStart':_0x2db968='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4b7aae={'type':'format','content':o(_0x188f65,_0x2db968,_0x112669['commandParams'][0x0]['startIndex'])};}return _0x4b7aae;}['_getSuggestionBlocksForListStyle'](){const _0x15de05=this['editor']['plugins']['get']('LegacyListUtils');let _0x1dbe17=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1dbe17[0x0]?.['is']('element','listItem')&&_0x1dbe17['unshift'](..._0x15de05['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1dbe17[_0x1dbe17['length']-0x1]?.['is']('element','listItem')&&_0x1dbe17['push'](..._0x15de05['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1dbe17=[...new Set(_0x1dbe17)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1dbe17=_0x1dbe17['filter'](_0x2cf1c9=>_0x2cf1c9['is']('element','listItem'))),_0x1dbe17;}['_getSuggestionBlocks'](_0x10eafa){const _0x289a7b=this['editor']['plugins']['get']('LegacyListUtils');let _0x127fac=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x10eafa)['map'](_0xa01850=>{const _0x597970=this['editor']['model']['createPositionAt'](_0xa01850,0x0);return[..._0x289a7b['getSiblingNodes'](_0x597970,'backward'),..._0x289a7b['getSiblingNodes'](_0x597970,'forward')];})['flat']();return _0x127fac=[...new Set(_0x127fac)],_0x127fac;}['_getTranslationKeyForListStyle'](_0x5676dc){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5676dc)||'default')['toUpperCase']()+'_LIST_'+_0x5676dc['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2b2f8b{['afterInit'](){const _0xa5d3b1=this['editor'];if(!_0xa5d3b1['plugins']['has']('MediaEmbedEditing'))return;const _0x57e97f=_0xa5d3b1['plugins']['get']('TrackChangesEditing'),_0x1fd02a=_0xa5d3b1['locale'];_0x57e97f['enableCommand']('mediaEmbed'),_0x57e97f['descriptionFactory']['registerElementLabel']('media',_0x341ed0=>o(_0x1fd02a,'ELEMENT_MEDIA',_0x341ed0));}}class pt extends _0x2b2f8b{['afterInit'](){const _0x37eddd=this['editor'];_0x37eddd['plugins']['has']('MentionEditing')&&_0x37eddd['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x2b2f8b{['afterInit'](){const _0x3b7b24=this['editor'];if(!_0x3b7b24['plugins']['has']('MergeFieldsEditing'))return;const _0x1234d9=_0x3b7b24['plugins']['get']('TrackChangesEditing'),_0x286bd5=_0x3b7b24['locale'];_0x1234d9['enableCommand']('insertMergeField'),_0x1234d9['enableCommand']('insertMergeFieldBlock'),_0x1234d9['enableCommand']('insertMergeFieldImage'),_0x1234d9['descriptionFactory']['registerElementLabel']('mergeField',_0x3e70dd=>o(_0x286bd5,'ELEMENT_MERGE_FIELD',_0x3e70dd)),_0x1234d9['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1436c6=>o(_0x286bd5,'ELEMENT_MERGE_FIELD',_0x1436c6)),_0x1234d9['descriptionFactory']['registerDescriptionCallback'](_0x30059e=>{if('insertion'!=_0x30059e['type']&&'deletion'!=_0x30059e['type'])return;const _0x56d35c=_0x30059e['getContainedElement']();if(null==_0x56d35c)return;const _0x1bdcca=_0x3b7b24['plugins']['get']('MergeFieldsEditing');let _0x1613d0;switch(_0x1bdcca['getMergeFieldType'](_0x56d35c)){case null:return;case'image':{const _0x5b6044=_0x1bdcca['unwrapAffixes'](_0x56d35c['getAttribute']('src'));_0x1613d0=_0x1bdcca['getLabel'](_0x5b6044)||_0x5b6044;break;}default:{const _0x3e785d=_0x56d35c['getAttribute']('id');_0x1613d0=_0x1bdcca['getLabel'](_0x3e785d)||_0x3e785d;break;}}return'insertion'==_0x30059e['type']?{'type':'insertion','content':o(_0x286bd5,'*Insert:*\x20%0','\x22'+_0x1613d0+'\x22\x20'+o(_0x286bd5,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x286bd5,'*Remove:*\x20%0','\x22'+_0x1613d0+'\x22\x20'+o(_0x286bd5,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x2b2f8b{['afterInit'](){const _0x1853e0=this['editor'],_0x26d35f=_0x1853e0['plugins']['get']('TrackChangesEditing');_0x1853e0['plugins']['has']('MultiLevelList')&&(_0x26d35f['enableDefaultAttributesIntegration']('multiLevelList'),_0x26d35f['descriptionFactory']['registerDescriptionCallback'](_0x46817e=>this['handleDescriptions'](_0x46817e)));}['handleDescriptions'](_0x577fb4){const _0x5848a8=this['editor']['locale'],{data:_0x1e9ef3}=_0x577fb4,_0x424911={'type':'format','content':''};if(_0x1e9ef3&&'listMarkerStyle'==_0x1e9ef3['key']){if(!_0x1e9ef3['oldValue'])return{'type':'format','content':o(_0x5848a8,'*Set\x20format:*\x20%0',o(_0x5848a8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1e9ef3['newValue']+')'};if(!_0x1e9ef3['newValue']){let _0x192d00=_0x577fb4['head'];for(;_0x192d00;){if(_0x192d00['data']&&'listType'==_0x192d00['data']['key']&&_0x192d00['data']['newValue'])return _0x424911;_0x192d00=_0x192d00['next'];}return{'type':'format','content':o(_0x5848a8,'*Remove\x20format:*\x20%0',o(_0x5848a8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1e9ef3['oldValue']+')'};}}}}class bt extends _0x2b2f8b{['afterInit'](){const _0x5f3aae=this['editor'];if(!_0x5f3aae['plugins']['has']('PageBreakEditing'))return;_0x5f3aae['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4fa5b6=_0x5f3aae['plugins']['get']('TrackChangesEditing'),_0x34c8d2=_0x5f3aae['locale'];_0x4fa5b6['descriptionFactory']['registerElementLabel']('pageBreak',_0x4ccc27=>o(_0x34c8d2,'ELEMENT_PAGE_BREAK',_0x4ccc27));}}class yt extends _0x2b2f8b{['afterInit'](){const _0x35534c=this['editor'];if(!_0x35534c['plugins']['has']('Paragraph'))return;const _0x263aca=_0x35534c['locale'],_0x146b62=_0x35534c['plugins']['get']('TrackChangesEditing');_0x146b62['descriptionFactory']['registerElementLabel']('paragraph',_0x332738=>o(_0x263aca,'ELEMENT_PARAGRAPH',_0x332738)),_0x146b62['enableDefaultAttributesIntegration']('paragraph'),_0x146b62['enableCommand']('insertParagraph');const _0x34bc93=_0x146b62['descriptionFactory'];_0x34bc93['registerDescriptionCallback'](_0x5ac3c6=>{if('insertion'!==_0x5ac3c6['type'])return;const {start:_0x5e9732,end:_0x5e3041}=_0x5ac3c6['getFirstRange']();if(!_0x5e9732['isTouching'](_0x5e3041)||!_0x5e9732['nodeAfter'])return;const _0x40fb54=_0x35534c['model']['schema'],_0x4d8d4c=_0x5e9732['nodeAfter'];return _0x40fb54['isBlock'](_0x4d8d4c)&&!_0x40fb54['isLimit'](_0x4d8d4c)&&_0x40fb54['checkChild'](_0x4d8d4c,'$text')?{'type':'insertion','content':o(_0x263aca,'*Insert:*\x20%0',_0x34bc93['getItemLabel'](_0x4d8d4c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f3994=this['editor'],_0x75a349=_0x3f3994['locale'];_0x3f3994['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c7acc=>{if('formatBlock'!=_0x3c7acc['type'])return;const {data:_0x473035}=_0x3c7acc;return _0x473035&&'paragraph'==_0x473035['commandName']?{'type':'format','content':o(_0x75a349,'*Change\x20to:*\x20%0',o(_0x75a349,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x2b2f8b{['afterInit'](){const _0x1d113c=this['editor'];_0x1d113c['commands']['get']('replaceSource')&&_0x1d113c['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x2b2f8b{['afterInit'](){const _0x13a8d6=this['editor'];if(!_0x13a8d6['plugins']['has']('RemoveFormatEditing'))return;_0x13a8d6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36a59c=this['editor'];_0x36a59c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x401d67=>{if('formatBlock'!=_0x401d67['type']&&'formatInline'!=_0x401d67['type'])return;const {data:_0x41e6b9}=_0x401d67;return _0x41e6b9&&'removeFormat'==_0x41e6b9['commandName']?{'type':'format','content':o(_0x36a59c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x2b2f8b{['afterInit'](){const _0x376892=this['editor'];if(!_0x376892['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x157751=_0x376892['plugins']['get']('TrackChangesEditing');_0x157751['enableCommand']('goToPreviousRestrictedEditingException'),_0x157751['enableCommand']('goToNextRestrictedEditingException');const _0x3323d8=_0x376892['plugins']['get']('RestrictedEditingModeEditing');_0x3323d8['enableCommand']('trackChanges'),_0x3323d8['enableCommand']('acceptSuggestion'),_0x3323d8['enableCommand']('discardSuggestion'),_0x3323d8['enableCommand']('acceptAllSuggestions'),_0x3323d8['enableCommand']('discardAllSuggestions'),_0x3323d8['enableCommand']('acceptSelectedSuggestions'),_0x3323d8['enableCommand']('discardSelectedSuggestions');}}class At extends _0x2b2f8b{['afterInit'](){const _0x2f7e71=this['editor'];if(!_0x2f7e71['plugins']['has']('ShiftEnter'))return;const _0x2c5448=_0x2f7e71['plugins']['get']('TrackChangesEditing');_0x2c5448['enableCommand']('shiftEnter'),_0x2c5448['descriptionFactory']['registerElementLabel']('softBreak',_0x242590=>o(_0x2f7e71['locale'],'ELEMENT_LINE_BREAK',_0x242590));}}function an(_0x23ba27,_0x38b562,_0x40e2bd){const _0xd7bf02=[];for(const _0x2925f8 of _0x38b562['getItems']())_0x2925f8['hasAttribute'](_0x23ba27)&&_0xd7bf02['push'](_0x40e2bd['createRangeOn'](_0x2925f8));return _0xd7bf02;}class _t extends _0x2b2f8b{['afterInit'](){const _0x43685b=this['editor'],_0x5308f8=_0x43685b['plugins']['get']('TrackChangesEditing');_0x43685b['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x5308f8['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x2b9e2f=this['editor'],_0x5a931c=_0x2b9e2f['model'],_0x48d778=_0x2b9e2f['locale'],_0x57147f=_0x2b9e2f['plugins']['get']('TrackChangesEditing'),_0x36c58b='restrictedEditingException',_0x5e9a82=_0x2b9e2f['commands']['get'](_0x36c58b);_0x57147f['enableCommand'](_0x36c58b,(_0x4620fd,_0x378e6b={})=>{const _0x515feb=_0x5a931c['document']['selection'];if(_0x515feb['isCollapsed'])return void _0x4620fd(_0x378e6b);const _0x149f93=void 0x0!==_0x378e6b['forceValue']?_0x378e6b['forceValue']:!_0x5e9a82['value'];_0x5a931c['change'](()=>{const _0x14fd59=Array['from'](_0x515feb['getRanges']());for(const _0x252f6e of _0x14fd59){const _0x2158b7=_0x149f93?[_0x252f6e]:an(_0x36c58b,_0x252f6e,_0x5a931c);for(const _0x213994 of _0x2158b7)_0x57147f['markInlineFormat'](_0x213994,{'commandName':_0x36c58b,'commandParams':[{'forceValue':_0x149f93}]});}});}),_0x57147f['descriptionFactory']['registerDescriptionCallback'](_0x32cd9c=>{if('formatBlock'!=_0x32cd9c['type']&&'formatInline'!=_0x32cd9c['type'])return;const {data:_0x1bb64c}=_0x32cd9c;return _0x1bb64c&&_0x1bb64c['commandName']==_0x36c58b?_0x1bb64c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x48d778,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x48d778,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x4f3068=this['editor'],_0x622403=_0x4f3068['locale'],_0x40a4e7=_0x4f3068['plugins']['get']('TrackChangesEditing'),_0x11c1c7='restrictedEditingExceptionBlock',_0x253f71=this['editor']['commands']['get'](_0x11c1c7);_0x40a4e7['enableCommand'](_0x11c1c7,(_0x1dd52c,_0x485a65={})=>{const _0x278f9a=this['editor']['model']['document']['selection'],_0x4e3bb9=_0x485a65&&void 0x0!==_0x485a65['forceValue']?_0x485a65['forceValue']:!_0x253f71['value'];let _0x53682f=[];if(_0x4e3bb9){const _0x198101=Array['from'](_0x278f9a['getSelectedBlocks']())['filter'](_0x322a6d=>function(_0x335a11){return!!_0x335a11['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x322a6d)||function(_0xe83f3e,_0x5b370b){const _0x56997c=_0x5b370b['createContext'](_0xe83f3e['parent']);if(!_0x5b370b['checkChild'](_0x56997c,'restrictedEditingException'))return!0x1;if(!_0x5b370b['checkChild'](_0x56997c['push']('restrictedEditingException'),_0xe83f3e))return!0x1;return!0x0;}(_0x322a6d,this['editor']['model']['schema']));_0x53682f=to(_0x198101,_0x4f3068['model']);}else{const _0x8c08f4=Array['from'](_0x278f9a['getSelectedBlocks']())['map'](_0x294ef7=>function(_0x4f67cf){let _0x22263c=_0x4f67cf;for(;_0x22263c['parent'];){if('restrictedEditingException'==_0x22263c['parent']['name'])return _0x22263c;_0x22263c=_0x22263c['parent'];}return null;}(_0x294ef7))['filter'](_0x45d081=>!!_0x45d081);_0x53682f=to(_0x8c08f4,_0x4f3068['model']);}_0x4f3068['model']['change'](()=>{for(const _0x23787e of _0x53682f)_0x40a4e7['markBlockFormat'](_0x23787e,{'commandName':_0x11c1c7,'commandParams':[{'forceValue':_0x4e3bb9}]});});}),_0x40a4e7['descriptionFactory']['registerDescriptionCallback'](_0x4fc753=>{const {data:_0x27f005}=_0x4fc753;if(_0x27f005&&_0x27f005['commandName']==_0x11c1c7)return _0x27f005['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x622403,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x622403,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x2b2f8b{['afterInit'](){const _0x3d8e48=this['editor'];if(!_0x3d8e48['plugins']['has']('Style')||!_0x3d8e48['plugins']['has']('DataSchema'))return;const _0x2a9141=_0x3d8e48['plugins']['get']('TrackChangesEditing'),_0x526d0b=_0x3d8e48['locale'],_0x2227fe=_0x3d8e48['config']['get']('style')||{},_0x2a477d=_0x3d8e48['plugins']['get']('GeneralHtmlSupport'),_0x1cc83a=_0x3d8e48['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3d8e48['plugins']['get']('DataSchema'),_0x2227fe['definitions']);_0x2a9141['enableDefaultAttributesIntegration']('style');const _0x24cdc5=new Set();for(const _0x1c9617 of _0x1cc83a['block']){const _0x52952c=_0x2a477d['getGhsAttributeNameForElement'](_0x1c9617['element']);_0x24cdc5['add'](_0x52952c);}const _0x595765=new Set();for(const _0x49b4c9 of _0x1cc83a['inline']){const _0x558194=_0x2a477d['getGhsAttributeNameForElement'](_0x49b4c9['element']);_0x595765['add'](_0x558194);for(const _0x440023 of _0x49b4c9['ghsAttributes'])_0x595765['add'](_0x440023);}for(const _0x2ad310 of _0x24cdc5)_0x2a9141['descriptionFactory']['registerAttributeLabel'](_0x2ad310,o(_0x526d0b,'FORMAT_STYLE'));for(const _0x3ac1f4 of _0x595765)_0x2a9141['descriptionFactory']['registerAttributeLabel'](_0x3ac1f4,o(_0x526d0b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3233f9=this['editor'],_0xc721d7=_0x3233f9['locale'];_0x3233f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14384e=>{if('formatBlock'!=_0x14384e['type']&&'formatInline'!=_0x14384e['type'])return;const {data:_0x522bf4}=_0x14384e;return _0x522bf4&&'style'===_0x522bf4['commandName']?_0x522bf4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc721d7,'*Set\x20format:*\x20%0',_0x522bf4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xc721d7,'*Remove\x20format:*\x20%0',_0x522bf4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x2b2f8b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x440367){super(_0x440367),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x139759=this['editor'],_0x169d72=_0x139759['model']['document']['selection'];if(!_0x139759['plugins']['has']('TableEditing'))return;const _0x5178ea=_0x139759['locale'],_0x35fb5f=_0x139759['plugins']['get']('TrackChangesEditing'),_0x5b52b0=_0x139759['plugins']['get']('TableUtils');_0x35fb5f['descriptionFactory']['registerElementLabel']('table',_0x32d115=>o(_0x5178ea,'ELEMENT_TABLE',_0x32d115)),this['_setupColumnsRowsFixing'](),_0x35fb5f['enableCommand']('insertTable'),_0x35fb5f['enableCommand']('selectTableRow'),_0x35fb5f['enableCommand']('selectTableColumn');for(const _0x2d4919 of['insertTableRowAbove','insertTableRowBelow']){const _0x1f626c=_0x139759['commands']['get'](_0x2d4919);_0x35fb5f['enableCommand'](_0x2d4919,_0x3652ae=>{_0x139759['model']['change'](_0x80b6e8=>{_0x3652ae();const _0x36503e='above'===_0x1f626c['order'],_0x3be2ba=_0x5b52b0['getSelectionAffectedTableCells'](_0x169d72),_0x5900b9=_0x5b52b0['getRowIndexes'](_0x3be2ba),_0x68282f=_0x36503e?_0x5900b9['first']-0x1:_0x5900b9['last']+0x1,_0x493d83=_0x3be2ba[0x0]['findAncestor']('table'),_0x4e83b9=_0x5b52b0['createTableWalker'](_0x493d83,{'startRow':_0x68282f,'endRow':_0x68282f}),_0x19372f=Array['from'](_0x4e83b9)['map'](_0x5f1b89=>_0x80b6e8['createRangeOn'](_0x5f1b89['cell']));_0x35fb5f['markMultiRangeInsertion'](_0x19372f,'tableRow');});});}for(const _0x54c341 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3af83e=_0x139759['commands']['get'](_0x54c341);_0x35fb5f['enableCommand'](_0x54c341,_0x35fd0c=>{_0x139759['model']['change'](_0x1c4d05=>{_0x35fd0c();const _0x3adc19='left'===_0x3af83e['order'],_0x49ea15=_0x5b52b0['getSelectionAffectedTableCells'](_0x169d72),_0x7f47a7=_0x5b52b0['getColumnIndexes'](_0x49ea15),_0x38d244=_0x3adc19?_0x7f47a7['first']-0x1:_0x7f47a7['last']+0x1,_0x276ded=_0x49ea15[0x0]['findAncestor']('table'),_0x8396b8=_0x5b52b0['createTableWalker'](_0x276ded,{'startRow':0x0,'column':_0x38d244,'includeAllSlots':!0x1}),_0x374e53=Array['from'](_0x8396b8)['map'](_0x57fd7c=>_0x1c4d05['createRangeOn'](_0x57fd7c['cell']));_0x35fb5f['markMultiRangeInsertion'](_0x374e53,'tableColumn');});});}for(const _0x43bd52 of['removeTableRow','removeTableColumn']){const _0x219d0d=_0x43bd52['substr'](0xb),_0x199ff6=_0x219d0d['toLowerCase'](),_0x5dbf7b=_0x199ff6['substr'](0x0,0x3)+'span',_0x26bd7a='table'+_0x219d0d,_0x5ab8bb='min'+_0x219d0d,_0x321067='max'+_0x219d0d;_0x35fb5f['enableCommand'](_0x43bd52,()=>{_0x139759['model']['change'](_0x295cce=>{const _0x4e486d=_0x5b52b0['getSelectionAffectedTableCells'](_0x169d72),_0x407a79=_0x4e486d[0x0]['findAncestor']('table');let _0x19d03a;if('removeTableRow'==_0x43bd52){const _0x5c236e=_0x5b52b0['getRowIndexes'](_0x4e486d);_0x19d03a={'startRow':_0x5c236e['first'],'endRow':_0x5c236e['last'],'includeAllSlots':!0x0};}else{const _0x5d4316=_0x5b52b0['getColumnIndexes'](_0x4e486d);_0x19d03a={'startColumn':_0x5d4316['first'],'endColumn':_0x5d4316['last'],'includeAllSlots':!0x0};}const _0x414148=_0x5b52b0['createTableWalker'](_0x407a79,_0x19d03a),_0x463332=Array['from'](_0x414148)['map'](({cell:_0x1ad15c})=>_0x1ad15c),_0x502142=_e(_0x463332['filter'](_0x1a3ac4=>_0x1a3ac4['hasAttribute'](_0x5dbf7b))),_0x5755de=_e(_0x463332['filter'](_0x3dde8d=>!_0x3dde8d['hasAttribute'](_0x5dbf7b)))['map'](_0x294a1d=>_0x295cce['createRangeOn'](_0x294a1d)),_0x5622bf=_0x35fb5f['markMultiRangeDeletion'](_0x5755de,_0x26bd7a);if(_0x5622bf&&('tableRow'==_0x5622bf['subType']||'tableColumn'==_0x5622bf['subType'])){const _0x38f6ff=this['_getSuggestionCoords'](_0x5622bf);for(const _0x217c5c of _0x502142){const _0x232b3e=_0x295cce['createRangeOn'](_0x217c5c),_0x5ec9ac=_0x5b52b0['getCellLocation'](_0x217c5c),_0xd9fd89=_0x217c5c['getAttribute'](_0x5dbf7b)-0x1,_0x3e97d4=_0x38f6ff[_0x5ab8bb],_0x47772e=_0x38f6ff[_0x321067];_0x3e97d4<=_0x5ec9ac[_0x199ff6]&&_0x5ec9ac[_0x199ff6]+_0xd9fd89<=_0x47772e&&_0x5622bf['addRange'](_0x232b3e);}}});});}function _0x5d0d64(_0x21d410){const _0x326495=Array['from'](_0x169d72['getRanges']())['map'](_0x24d19c=>_0xf26ff5['fromRange'](_0x24d19c));_0x139759['model']['change'](_0x5e058a=>{const _0x551198=_0x5e058a['batch'];_0x21d410=_0x21d410['filter'](_0x508726=>'$graveyard'!=_0x508726['root']['rootName']),_0x5e058a['setSelection'](_0x21d410),_0x139759['commands']['get']('removeTableRow')['refresh'](),_0x139759['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x139759['model']['enqueueChange'](()=>{_0x139759['model']['enqueueChange'](_0x551198,_0x108755=>{const _0x1ed445=_0x326495['filter'](_0x4260fd=>'$graveyard'!=_0x4260fd['root']['rootName']);_0x1ed445['length']>0x0&&_0x108755['setSelection'](_0x1ed445);for(const _0x48e019 of _0x326495)_0x48e019['detach']();});});});}function _0x260919(_0x39237c){_0x139759['model']['change'](_0x222baa=>{const _0xe5dd47=Array['from'](_0x169d72['getRanges']())['map'](_0x5b15a2=>_0xf26ff5['fromRange'](_0x5b15a2)),_0x5ad83c=[];for(const _0x20332b of _0x39237c)for(const _0x38d4c9 of _0x20332b['getItems']({'shallow':!0x0}))_0x5ad83c['push'](_0x38d4c9);for(const _0x457cfa of _0x5ad83c)'$graveyard'!=_0x457cfa['root']['rootName']&&(_0x222baa['setSelection'](_0x222baa['createPositionAt'](_0x457cfa,0x0)),_0x139759['commands']['get']('removeTableColumn')['refresh'](),_0x139759['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5c6c2e=_0xe5dd47['filter'](_0x52b202=>'$graveyard'!=_0x52b202['root']['rootName']);_0x5c6c2e['length']>0x0&&_0x222baa['setSelection'](_0x5c6c2e);for(const _0x17e861 of _0xe5dd47)_0x17e861['detach']();});}function _0x27cc9e(_0x2c3992,_0xffe84){return _0xffe84['every'](_0x4138f3=>_0x2c3992['some'](_0x33c383=>_0x33c383['end']['isEqual'](_0x4138f3['start'])||_0x4138f3['end']['isEqual'](_0x33c383['start'])));}function _0x292742(_0x5aff8a,_0x457462){return!_0x5aff8a['some'](_0x1869b2=>_0x457462['some'](_0x54d132=>_0x1869b2['isIntersecting'](_0x54d132)))&&_0x5aff8a['some'](_0x367578=>_0x457462['some'](_0x122318=>_0x367578['end']['isTouching'](_0x122318['start'])));}_0x35fb5f['descriptionFactory']['registerDescriptionCallback'](_0x371079=>{if('insertion'!=_0x371079['type']&&'deletion'!=_0x371079['type'])return;const _0x5904e8=_0x371079['getContainedElement']();if(null!=_0x5904e8&&_0x5904e8['is']('element','table')){if('insertion'==_0x371079['type']){const _0x453921=_0x371079['getItems']()['filter'](_0x2340a6=>_0x2340a6['is']('$textProxy'))['map'](_0x5cc662=>_0x5cc662['data']);if(_0x453921['length'])return{'type':'insertion','content':o(_0x5178ea,'*Insert:*\x20%0',o(_0x5178ea,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x453921['join']('\x20')+'\x22'))};}if('deletion'==_0x371079['type']){const _0x4e6d97=_0x371079['getItems']()['filter'](_0x114623=>_0x114623['is']('$textProxy'))['map'](_0x33be17=>_0x33be17['data']);if(_0x4e6d97['length'])return{'type':'deletion','content':o(_0x5178ea,'*Remove:*\x20%0',o(_0x5178ea,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4e6d97['join']('\x20')+'\x22'))};}}}),_0x35fb5f['descriptionFactory']['registerDescriptionCallback'](_0x346a6f=>{if('tableRow'==_0x346a6f['subType']){const _0x9c8b6=_0x346a6f['getItems']()['filter'](_0x4c6698=>_0x4c6698['is']('$textProxy'))['map'](_0x3aae03=>_0x3aae03['data']),_0x4f1de0=this['_getSuggestionCoords'](_0x346a6f),_0xd347f2=_0x4f1de0['maxRow']-_0x4f1de0['minRow']+0x1;if('insertion'==_0x346a6f['type'])return _0x9c8b6['length']?{'type':'insertion','content':o(_0x5178ea,'*Insert:*\x20%0',o(_0x5178ea,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xd347f2,'\x22'+_0x9c8b6['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5178ea,'*Insert:*\x20%0',o(_0x5178ea,'ELEMENT_TABLE_ROW',_0xd347f2))};if('deletion'==_0x346a6f['type'])return _0x9c8b6['length']?{'type':'deletion','content':o(_0x5178ea,'*Remove:*\x20%0',o(_0x5178ea,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xd347f2,'\x22'+_0x9c8b6['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5178ea,'*Remove:*\x20%0',o(_0x5178ea,'ELEMENT_TABLE_ROW',_0xd347f2))};}if('tableColumn'==_0x346a6f['subType']){const _0x201181=_0x346a6f['getItems']()['filter'](_0x5751e4=>_0x5751e4['is']('$textProxy'))['map'](_0x56dacd=>_0x56dacd['data']),_0xd337c6=this['_getSuggestionCoords'](_0x346a6f),_0x57fdb0=_0xd337c6['maxColumn']-_0xd337c6['minColumn']+0x1;if('insertion'==_0x346a6f['type'])return _0x201181['length']?{'type':'insertion','content':o(_0x5178ea,'*Insert:*\x20%0',o(_0x5178ea,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x57fdb0,'\x22'+_0x201181['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5178ea,'*Insert:*\x20%0',o(_0x5178ea,'ELEMENT_TABLE_COLUMN',_0x57fdb0))};if('deletion'==_0x346a6f['type'])return _0x201181['length']?{'type':'deletion','content':o(_0x5178ea,'*Remove:*\x20%0',o(_0x5178ea,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x57fdb0,'\x22'+_0x201181['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5178ea,'*Remove:*\x20%0',o(_0x5178ea,'ELEMENT_TABLE_COLUMN',_0x57fdb0))};}}),_0x35fb5f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5d0d64),_0x35fb5f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5d0d64),_0x35fb5f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x260919),_0x35fb5f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x260919),_0x35fb5f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x27cc9e),_0x35fb5f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x27cc9e),_0x35fb5f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x292742),_0x35fb5f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x292742);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4757ef=this['editor'],_0x545a2a=_0x4757ef['model']['document']['selection'];return(_0x39e3ec,_0x27c142)=>{_0x4757ef['model']['change'](_0x414233=>{const {commandName:_0x1794ab,commandParams:_0x46fbaf}=_0x27c142;let _0x195128=_0x39e3ec[0x0]['end']['nodeBefore'];_0x46fbaf&&_0x46fbaf[0x0]&&!0x1===_0x46fbaf[0x0]['forceValue']&&(_0x195128=_0x39e3ec[0x0]['start']['nodeAfter']);const _0x441940=_0x414233['createRangeIn'](_0x195128);if('$graveyard'==_0x441940['root']['rootName'])return;const _0x188f36=Array['from'](_0x545a2a['getRanges']())['map'](_0x2ccb6f=>_0xf26ff5['fromRange'](_0x2ccb6f));_0x414233['setSelection'](_0x441940),_0x4757ef['commands']['get'](_0x1794ab)['refresh'](),_0x46fbaf['push']({'forceDefaultExecution':!0x0}),_0x4757ef['execute'](_0x1794ab,..._0x46fbaf);const _0x4e451d=_0x188f36['filter'](_0x226f5a=>'$graveyard'!=_0x226f5a['root']['rootName']);_0x4e451d['length']>0x0&&_0x414233['setSelection'](_0x4e451d);for(const _0x4e2591 of _0x188f36)_0x4e2591['detach']();});};}['_getCoordsForCells'](_0x35b35f){const _0x2658e0=this['editor']['plugins']['get']('TableUtils');let _0x7d7456=Number['MAX_SAFE_INTEGER'],_0x40a66a=Number['MIN_SAFE_INTEGER'],_0x50b098=Number['MAX_SAFE_INTEGER'],_0x23e5a7=Number['MIN_SAFE_INTEGER'];for(const _0x54cf3f of _0x35b35f){if('$graveyard'==_0x54cf3f['root']['rootName'])continue;const {row:_0x101540,column:_0x2a04a2}=_0x2658e0['getCellLocation'](_0x54cf3f),_0x4040d6=_0x54cf3f['hasAttribute']('rowspan')?_0x54cf3f['getAttribute']('rowspan')-0x1:0x0,_0x1b1a1c=_0x54cf3f['hasAttribute']('colspan')?_0x54cf3f['getAttribute']('colspan')-0x1:0x0;_0x7d7456=_0x101540<_0x7d7456?_0x101540:_0x7d7456,_0x40a66a=_0x101540+_0x4040d6>_0x40a66a?_0x101540+_0x4040d6:_0x40a66a,_0x50b098=_0x2a04a2<_0x50b098?_0x2a04a2:_0x50b098,_0x23e5a7=_0x2a04a2+_0x1b1a1c>_0x23e5a7?_0x2a04a2+_0x1b1a1c:_0x23e5a7;}return{'minRow':_0x7d7456,'maxRow':_0x40a66a,'minColumn':_0x50b098,'maxColumn':_0x23e5a7};}['_setupColumnsRowsFixing'](){const _0x15cc3e=this['editor'],_0x3197c7=_0x15cc3e['plugins']['get']('TrackChangesEditing'),_0xb7f256=_0x15cc3e['plugins']['get']('TableUtils');_0x15cc3e['model']['document']['on']('change:data',()=>{const _0x37dda2=Array['from'](_0x15cc3e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4ef889,data:_0x4966eb}of _0x37dda2){const {group:_0xc5e986,id:_0x537e83,subType:_0x18490f}=_0x3197c7['_splitMarkerName'](_0x4ef889);if('suggestion'!=_0xc5e986)continue;if(null!=_0x4966eb['oldRange'])continue;const _0x6572f0=_0x3197c7['getSuggestion'](_0x537e83);this['_tablePostFixingSubtypes']['includes'](_0x18490f)&&this['_tableSuggestions']['add'](_0x6572f0);}},{'priority':'low'});const _0x459e27=(_0x19387f,_0x3fb92c)=>{let _0x8d598d=!0x1;const _0x1c6626=_0x3fb92c['createRangeOn'](_0x19387f),_0x30fb35=_0x19387f['findAncestor']('table'),_0x3ff2fc=_0xb7f256['getCellLocation'](_0x19387f);for(const _0x4cb84c of this['_tableSuggestions']){const _0x2e3efe=_0x4cb84c['subType'],_0x203eaf=_0x2e3efe['startsWith']('tablePaste'),_0x411d46=_0x2e3efe['substr'](_0x203eaf?0xa:0x5),_0x352715=_0x411d46['toLowerCase'](),_0x38859b=_0x352715['substr'](0x0,0x3)+'span',_0x200f97='min'+_0x411d46,_0x4c7685='max'+_0x411d46;if(!_0x4cb84c['isInContent'])continue;if(_0x30fb35!=_0x4cb84c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4cb84c['isIntersectingWithRange'](_0x1c6626))continue;const _0x2b7310=_0x19387f['hasAttribute'](_0x38859b)?_0x19387f['getAttribute'](_0x38859b)-0x1:0x0,_0x8d99d6=this['_getSuggestionCoords'](_0x4cb84c),_0x43d073=_0x8d99d6[_0x200f97],_0x51fdc7=_0x8d99d6[_0x4c7685];_0x43d073<=_0x3ff2fc[_0x352715]&&_0x3ff2fc[_0x352715]+_0x2b7310<=_0x51fdc7&&(_0x4cb84c['addRange'](_0x1c6626),_0x8d598d=!0x0);}return _0x8d598d;};_0x15cc3e['model']['document']['registerPostFixer'](_0x2fb321=>{let _0x5f097a=!0x1;for(const _0x19c040 of _0x15cc3e['model']['document']['differ']['getChanges']())if('insert'==_0x19c040['type']){if('tableRow'==_0x19c040['name']){for(const _0x1dd806 of _0x19c040['position']['nodeAfter']['getChildren']())_0x5f097a=_0x5f097a||_0x459e27(_0x1dd806,_0x2fb321);}else'tableCell'==_0x19c040['name']&&(_0x5f097a=_0x5f097a||_0x459e27(_0x19c040['position']['nodeAfter'],_0x2fb321));}return _0x5f097a;});}['_getSuggestionCoords'](_0x56f80b){return this['_getCoordsForCells'](_0x56f80b['getRanges']()['map'](_0x5c4d3f=>_0x5c4d3f['start']['nodeAfter']));}}function _e(_0x4ea90e){return Array['from'](new Set(_0x4ea90e)['values']());}class $t extends _0x2b2f8b{static get['requires'](){return[Nt];}['afterInit'](){const _0x3f6b7e=this['editor'],_0x50b53a=_0x3f6b7e['model']['document']['selection'],_0xc83c66=_0x3f6b7e['locale'];if(!_0x3f6b7e['plugins']['has']('TableEditing'))return;const _0x2105b9=_0x3f6b7e['plugins']['get']('TrackChangesEditing'),_0x2ecb5c=_0x3f6b7e['plugins']['get']('TableUtils'),_0x59ee2d=_0x3f6b7e['plugins']['get'](Nt);_0x59ee2d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2105b9['enableCommand']('mergeTableCells',()=>{const _0x569a29=_0x2ecb5c['getSelectionAffectedTableCells'](_0x3f6b7e['model']['document']['selection']);_0x3f6b7e['model']['change'](()=>{_0x2105b9['markMultiRangeBlockFormat'](_0x569a29,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3f6b7e['commands']['get']('mergeTableCells')['on']('execute',(_0x11218a,_0x29e524)=>{_0x3f6b7e['commands']['get']('trackChanges')['value']&&(_0x29e524['length']>0x0&&_0x29e524[_0x29e524['length']-0x1]&&_0x29e524[_0x29e524['length']-0x1]['forceDefaultExecution']||_0x2105b9['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x11218a['stop']());},{'priority':'highest'});for(const _0x3870b0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x531764=_0x3f6b7e['commands']['get'](_0x3870b0);_0x2105b9['enableCommand'](_0x3870b0,()=>{const _0x2b1c7e=_0x3f6b7e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x27c34d=>_0x27c34d['is']('element','tableCell')),_0x54ef1d=_0x531764['value'];_0x3f6b7e['model']['change'](()=>{_0x2105b9['markMultiRangeBlockFormat']([_0x2b1c7e,_0x54ef1d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x478885 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3ad8d1=_0x3f6b7e['commands']['get'](_0x478885);_0x2105b9['enableCommand'](_0x478885,()=>{const _0x48634f=_0x2ecb5c['getSelectionAffectedTableCells'](_0x3f6b7e['model']['document']['selection'])[0x0],_0x3a5413=_0x48634f['findAncestor']('table'),{column:_0x4b0228,row:_0x550a5e}=_0x2ecb5c['getCellLocation'](_0x48634f);let _0x21d0e5=[];if('horizontally'==_0x3ad8d1['direction']){const _0x197131=_0x2ecb5c['createTableWalker'](_0x3a5413,{'startRow':_0x550a5e,'endRow':_0x550a5e,'includeAllSlots':!0x0});_0x21d0e5=Array['from'](_0x197131)['map'](_0xb7b45a=>_0xb7b45a['cell']);}else{const _0x4484cf=_0x2ecb5c['createTableWalker'](_0x3a5413,{'column':_0x4b0228,'includeAllSlots':!0x0});_0x21d0e5=Array['from'](_0x4484cf)['map'](_0x354af7=>_0x354af7['cell']);}_0x3f6b7e['model']['change'](_0x44b685=>{_0x2105b9['markBlockFormat'](_0x44b685['createRangeOn'](_0x48634f),{'commandName':_0x478885,'commandParams':[]},_0x21d0e5,_0x478885);});});}_0x2105b9['descriptionFactory']['registerDescriptionCallback'](_0x559cc0=>{if('formatBlock'!=_0x559cc0['type']&&'formatInline'!=_0x559cc0['type'])return;const {data:_0x1d869a}=_0x559cc0;return _0x1d869a&&'mergeTableCells'==_0x1d869a['commandName']?{'type':'format','content':o(_0xc83c66,'*Merge\x20cells*')}:void 0x0;}),_0x2105b9['descriptionFactory']['registerDescriptionCallback'](_0x5174cc=>{if('formatBlock'!=_0x5174cc['type']&&'formatInline'!=_0x5174cc['type'])return;const {data:_0x1a9230}=_0x5174cc;return _0x1a9230?'splitTableCellVertically'==_0x1a9230['commandName']?{'type':'format','content':o(_0xc83c66,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1a9230['commandName']?{'type':'format','content':o(_0xc83c66,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xcc77d6=_0x59ee2d['_acceptFormatSuggestionCallbackFactory']();for(const _0x54bf39 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2105b9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x54bf39,'accept',_0xcc77d6);for(const _0x3075fb of['splitTableCellVertically','splitTableCellHorizontally'])_0x2105b9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3075fb,'accept',_0xcc77d6);_0x2105b9['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x51d6c1=>{_0x3f6b7e['model']['change'](_0x9c3719=>{const _0x4ba1cc=Array['from'](_0x50b53a['getRanges']())['map'](_0x3fffd3=>_0xf26ff5['fromRange'](_0x3fffd3));_0x9c3719['setSelection'](_0x51d6c1),_0x3f6b7e['commands']['get']('mergeTableCells')['refresh'](),_0x3f6b7e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x18f3f8=_0x4ba1cc['filter'](_0x131dc4=>'$graveyard'!=_0x131dc4['root']['rootName']);_0x18f3f8['length']>0x0&&_0x9c3719['setSelection'](_0x18f3f8);for(const _0x2dbf7d of _0x4ba1cc)_0x2dbf7d['detach']();});});for(const _0x221e3c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2b2ad4=_0x3f6b7e['commands']['get'](_0x221e3c);_0x2b2ad4['on']('set:isEnabled',(_0x27e02c,_0x56d647,_0x361d28)=>{if(_0x361d28){const _0x6de21b=_0x3f6b7e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x592460=>_0x592460['is']('element','tableCell'));this['_areMergableCells'](_0x2b2ad4['value'],_0x6de21b)||(_0x27e02c['return']=!0x1,_0x27e02c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x421c4f=this['editor']['commands']['get']('mergeTableCells'),_0x9d79c6=this['editor']['plugins']['get']('TableUtils');if(!_0x421c4f['isEnabled'])return!0x1;const _0x3f23c7=_0x9d79c6['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5375cb of _0x3f23c7)for(const _0x30f3b2 of _0x3f23c7)if(_0x5375cb!=_0x30f3b2&&!this['_areMergableCells'](_0x5375cb,_0x30f3b2))return!0x1;return!0x0;}['_areMergableCells'](_0x3c7757,_0x5b1e31){const _0x2f9661=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14a5c6=this['editor']['model']['createRangeOn'](_0x3c7757),_0x175e76=this['editor']['model']['createRangeOn'](_0x5b1e31),_0xb8df3f=new Set(),_0x15d91c=new Set();for(const _0x5872c7 of _0x2f9661['getSuggestions']())if(('insertion'==_0x5872c7['type']||'deletion'==_0x5872c7['type']||'mergeTableCells'==_0x5872c7['subType'])&&_0x5872c7['isInContent']){for(const _0x3baf30 of _0x5872c7['getRanges']())_0x3baf30['containsRange'](_0x14a5c6,!0x0)&&_0xb8df3f['add'](_0x5872c7['type']+':'+_0x5872c7['author']['id']),_0x3baf30['containsRange'](_0x175e76,!0x0)&&_0x15d91c['add'](_0x5872c7['type']+':'+_0x5872c7['author']['id']);}if(_0xb8df3f['size']!=_0x15d91c['size'])return!0x1;for(const _0x314c7d of _0xb8df3f)if(!_0x15d91c['has'](_0x314c7d))return!0x1;return!0x0;}}class vt extends _0x2b2f8b{static get['requires'](){return[Nt];}['afterInit'](){const _0x4f082d=this['editor'];if(!_0x4f082d['plugins']['has']('TableEditing'))return;const _0x168033=_0x4f082d['locale'],_0x233c1f=_0x4f082d['plugins']['get']('TrackChangesEditing');_0x233c1f['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x233c1f['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x233c1f['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x168033,'FORMAT_HEADER_ROW')),_0x233c1f['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x168033,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x466f5c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d41da=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x466f5c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1d41da),_0x466f5c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1d41da),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x55f18b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x349cf5=this['editor']['plugins']['get']('TableUtils');function _0x30c54a({showActiveMarker:_0x4f94c1=!0x0,setDataAttribute:_0x2b25a6=!0x0}={}){return(_0x3b65f8,_0x436920,_0x29e24f)=>{const {type:_0x1bfafc,id:_0x36b809}=_0x55f18b['_splitMarkerName'](_0x436920['markerName']);if(!_0x55f18b['hasSuggestion'](_0x36b809))return;const _0x2ececb=_0x55f18b['getSuggestion'](_0x36b809),_0x335986=_0x2ececb['data'];if('formatBlock'!=_0x2ececb['type']||!_0x335986||'setTableColumnHeader'!=_0x335986['commandName'])return;if(_0x436920['item'])return void _0x3b65f8['stop']();if(!_0x29e24f['consumable']['consume'](_0x436920['markerRange'],_0x3b65f8['name']))return;const _0x49ab77=_0x436920['markerRange']['start']['nodeAfter'],_0x4be105=_0x436920['markerRange']['end']['nodeBefore'],_0x4fa0ab=_0x49ab77['parent']['parent'],{column:_0x4553c5}=_0x349cf5['getCellLocation'](_0x49ab77),{column:_0x467b09}=_0x349cf5['getCellLocation'](_0x4be105);for(let _0x1a2c7c=_0x4553c5;_0x1a2c7c<=_0x467b09;_0x1a2c7c++){const _0x5804ea=_0x349cf5['createTableWalker'](_0x4fa0ab,{'column':_0x1a2c7c,'includeAllSlots':!0x1});for(const _0x12ff03 of _0x5804ea){const _0x265a86=_0x12ff03['cell'],_0xc70049=_0x29e24f['mapper']['toViewElement'](_0x265a86);_0x29e24f['writer']['addClass']('ck-suggestion-marker-'+_0x1bfafc,_0xc70049),_0x2b25a6&&_0x29e24f['writer']['setAttribute']('data-suggestion',_0x36b809,_0xc70049),_0x29e24f['mapper']['bindElementToMarker'](_0xc70049,_0x436920['markerName']),_0x4f94c1&&(_0x55f18b['activeMarkers']['includes'](_0x436920['markerName'])?_0x29e24f['writer']['addClass']('ck-suggestion-marker--active',_0xc70049):_0x29e24f['writer']['removeClass']('ck-suggestion-marker--active',_0xc70049));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x30c54a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x7e1576,_0x34affe,_0x15fdb0)=>{_0x15fdb0['options']['showSuggestionHighlights']&&_0x30c54a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x7e1576,_0x34affe,_0x15fdb0);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x443624,_0x51e256,_0x51b0c9)=>{const {type:_0x176955,id:_0x32a33a}=_0x55f18b['_splitMarkerName'](_0x51e256['markerName']);if(!_0x55f18b['hasSuggestion'](_0x32a33a))return;const _0x392b9e=_0x55f18b['getSuggestion'](_0x32a33a),_0x1adea2=_0x392b9e['data'];if('formatBlock'!=_0x392b9e['type']||!_0x1adea2||'setTableColumnHeader'!=_0x1adea2['commandName'])return;const _0x2fb78c=_0x51b0c9['mapper']['markerNameToElements'](_0x51e256['markerName']);if(_0x2fb78c){for(const _0x2e1277 of _0x2fb78c)_0x51b0c9['writer']['removeClass']('ck-suggestion-marker-'+_0x176955,_0x2e1277),_0x51b0c9['writer']['removeClass']('ck-suggestion-marker--active',_0x2e1277),_0x51b0c9['writer']['removeAttribute']('data-suggestion',_0x2e1277),_0x51b0c9['mapper']['unbindElementFromMarkerName'](_0x2e1277,_0x51e256['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x5e2d3d=this['editor'],_0x51bba9=_0x5e2d3d['locale'];function _0x5c6195(_0x368d58){return{'type':'format','content':o(_0x51bba9,'*Format:*\x20%0',_0x368d58)};}_0x5e2d3d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e88e0=>{if('formatBlock'!=_0x2e88e0['type'])return;const {data:_0x143312}=_0x2e88e0;if(_0x143312){if('setTableRowHeader'==_0x143312['commandName']){const _0x4444cb=_0x143312['commandParams'][0x0]['forceValue'];return _0x5c6195(o(_0x51bba9,_0x4444cb?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x143312['commandName']){const _0x80013a=_0x143312['commandParams'][0x0]['forceValue'];return _0x5c6195(o(_0x51bba9,_0x80013a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x2b2f8b{['afterInit'](){const _0x16dc06=this['editor'],_0x28592f=_0x16dc06['locale'],_0x3c3c3e=_0x16dc06['plugins']['get']('TrackChangesEditing');function _0x44bc3c(_0x5d3892){return{'type':'format','content':''+o(_0x28592f,'*Set\x20table\x20type:*\x20%0',_0x5d3892)};}_0x16dc06['plugins']['has']('TableLayout')&&(_0x3c3c3e['enableCommand']('insertTableLayout'),_0x3c3c3e['enableDefaultAttributesIntegration']('tableType'),_0x3c3c3e['descriptionFactory']['registerElementLabel'](_0x18a030=>_0x18a030['is']('element','table')&&'layout'===_0x18a030['getAttribute']('tableType'),_0x1fe846=>o(_0x28592f,'ELEMENT_LAYOUT_TABLE',_0x1fe846)),_0x3c3c3e['descriptionFactory']['registerDescriptionCallback'](_0x22bd7a=>{const {data:_0x912582}=_0x22bd7a;if(_0x912582&&'tableType'==_0x912582['key'])switch(_0x912582['newValue']){case'layout':return _0x44bc3c(o(_0x28592f,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x44bc3c(o(_0x28592f,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Re['map'](_0x57fcb1=>[_0x57fcb1,null]));class Bt extends _0x2b2f8b{static get['requires'](){return[Nt];}['afterInit'](){const _0x43d201=this['editor'];if(!_0x43d201['plugins']['has']('TableClipboard'))return;const _0x262d7f=_0x43d201['plugins']['get']('TrackChangesEditing'),_0x2966c8=_0x43d201['plugins']['get']('TableUtils'),_0x1b31d9=_0x43d201['plugins']['get'](Nt),_0x56dbfb=_0x43d201['plugins']['get']('TableClipboard'),_0x3927b0=_0x43d201['plugins']['get']('TableSelection'),_0x736385=_0x43d201['plugins']['get'](_0x3b749b);_0x1b31d9['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x43d201['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x43d201['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x24158a=null,_0x418230=!0x1;_0x736385['on']('contentInsertion',(_0x3ddf26,_0x578c51)=>{_0x418230='paste'===_0x578c51['method'];}),_0x43d201['model']['on']('insertContent',(_0x5ec3b0,_0x2a6bb4)=>{if(!_0x418230&&null===_0x3927b0['getSelectedTableCells']())return;const [_0x578e7f,_0x7f4b41]=_0x2a6bb4,_0x46431e=_0x2a6bb4[_0x2a6bb4['length']-0x1];_0x46431e&&_0x46431e['forceDefaultExecution']||_0x262d7f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x130654,_0x336e23,_0x37209b,_0x16cf1e,_0x23e86b){if(_0x336e23&&!_0x336e23['is']('documentSelection'))return!0x1;const _0x4939ab=_0x23e86b['getTableIfOnlyTableInContent'](_0x130654,_0x37209b);if(!_0x4939ab||!Oe(_0x4939ab,void 0x0,_0x16cf1e))return!0x1;const _0x29d5cc=_0x16cf1e['getSelectionAffectedTableCells'](_0x37209b['document']['selection']);if(!_0x29d5cc['length'])return!0x1;const _0x1012ee=_0x29d5cc[0x0]['findAncestor']('table'),_0x105bbf=_0x16cf1e['getRowIndexes'](_0x29d5cc),_0xe4fba8=_0x16cf1e['getColumnIndexes'](_0x29d5cc),_0x35e892={'startRow':_0x105bbf['first'],'endRow':_0x105bbf['last'],'startColumn':_0xe4fba8['first'],'endColumn':_0xe4fba8['last']};return 0x1==_0x29d5cc['length']&&(_0x35e892['endRow']+=_0x16cf1e['getRows'](_0x4939ab)-0x1,_0x35e892['endColumn']+=_0x16cf1e['getColumns'](_0x4939ab)-0x1),Oe(_0x1012ee,_0x35e892,_0x16cf1e);}(_0x578e7f,_0x7f4b41,_0x43d201['model'],_0x2966c8,_0x56dbfb)&&(_0x5ec3b0['stop'](),_0x24158a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x43d201['model']['change'](()=>{_0x43d201['model']['insertContent'](_0x2a6bb4[0x0],_0x2a6bb4[0x1],_0x2a6bb4[0x2],{'forceDefaultExecution':!0x0});const _0x48fe44=_0x8ed52d(),{rowInsertionRanges:_0x3fe5c2,columnInsertionRanges:_0x590d21,insertionRanges:_0x22e826,deletionRanges:_0x256682,cells:_0x5803ce}=_0x24158a;_0x3fe5c2['length']&&_0x262d7f['markMultiRangeInsertion'](_0x3fe5c2,'tablePasteRow',{'tablePasteChainId':_0x48fe44}),_0x590d21['length']&&_0x262d7f['markMultiRangeInsertion'](_0x590d21,'tablePasteColumn',{'tablePasteChainId':_0x48fe44}),_0x22e826['length']&&(_0x262d7f['markMultiRangeInsertion'](_0x22e826,'tablePaste',{'tablePasteChainId':_0x48fe44,'skipNestingCheck':!0x0}),_0x22e826['forEach'](_0x4dd7eb=>_0x4dd7eb['detach']?.())),_0x256682['length']&&(_0x262d7f['markMultiRangeDeletion'](_0x256682,'tablePaste',{'tablePasteChainId':_0x48fe44,'skipNestingCheck':!0x0}),_0x256682['forEach'](_0x2931d9=>_0x2931d9['detach']?.()));const _0x233495=_0x262d7f['markMultiRangeBlockFormat'](_0x5803ce['map'](({element:_0x2d356b})=>_0x2d356b),{'formatGroupId':_0x8ed52d()},[],'tablePasteCell',{'tablePasteChainId':_0x48fe44});if(_0x233495){const _0x19c1fe=_0x233495['getMarkers'](),_0x3a4a97=[];for(const {element:_0x1bf4a9,attributes:_0x4f981a}of _0x5803ce){if(!_0x4f981a)continue;const _0x4af79a=_0x43d201['model']['createRangeOn'](_0x1bf4a9),_0x4f99ae=_0x19c1fe['find'](_0x182721=>_0x182721['getRange']()['isEqual'](_0x4af79a));_0x4f99ae&&_0x3a4a97['push']([_0x4f99ae['name'],_0x4f981a]);}_0x3a4a97['length']&&_0x233495['setAttribute']('markerAttributes',Object['fromEntries'](_0x3a4a97));}_0x24158a=null;}));},{'priority':_0x2ea691['high']+0xa}),_0x736385['on']('contentInsertion',()=>{_0x418230=!0x1;},{'priority':'lowest'}),_0x43d201['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x490db7,_0xe26253)=>{const [_0x319403,_0x49f46b,,_0x59ca65]=_0xe26253;if(!_0x24158a)return;_0x490db7['stop']();const _0x1b33d3=_0x319403['cell'],_0x2b09b4=_0x49f46b,_0x26dc7c=Be(_0x1b33d3),_0xb6f368=Be(_0x2b09b4);_0x490db7['return']=_0x1b33d3;let _0x56270f=null,_0x14a27f=null;if(_0xb6f368||_0x26dc7c){if(_0x26dc7c&&!_0xb6f368){_0x59ca65['remove'](_0x1b33d3['getChild'](0x0));for(const _0xd02e68 of Array['from'](_0x2b09b4['getChildren']()))_0x59ca65['insert'](_0xd02e68,_0x1b33d3,'end');const _0x45ad28=_0x24158a['rowInsertionIndexes']['includes'](_0x319403['row']),_0x589685=_0x24158a['columnInsertionIndexes']['includes'](_0x319403['column']);_0x45ad28||_0x589685||(_0x56270f=_0xf26ff5['fromRange'](_0x59ca65['createRangeIn'](_0x1b33d3)));}else _0xb6f368&&!_0x26dc7c&&(_0x14a27f=_0x59ca65['createRangeIn'](_0x1b33d3));}else{const _0x255e6e=_0x59ca65['createElement']('tableCellSuggestion'),_0x5256ad=_0x59ca65['createElement']('tableCellSuggestion');_0x59ca65['wrap'](_0x59ca65['createRangeIn'](_0x1b33d3),_0x5256ad),_0x59ca65['insert'](_0x255e6e,_0x1b33d3,0x0);for(const _0x3ccb28 of Array['from'](_0x2b09b4['getChildren']()))_0x59ca65['insert'](_0x3ccb28,_0x255e6e,'end');_0x56270f=_0xf26ff5['fromRange'](_0x59ca65['createRangeOn'](_0x255e6e)),_0x14a27f=_0xf26ff5['fromRange'](_0x59ca65['createRangeOn'](_0x5256ad));}const _0x53af2c=Array['from'](_0x2b09b4['getAttributes']())['filter'](([_0x1bcc0d])=>Re['includes'](_0x1bcc0d));_0x24158a['cells']['push']({'element':_0x1b33d3,'attributes':_0x53af2c['length']?Object['fromEntries'](_0x53af2c):null}),_0x56270f&&_0x24158a['insertionRanges']['push'](_0x56270f),_0x14a27f&&_0x24158a['deletionRanges']['push'](_0x14a27f);},{'priority':'high'}),_0x2966c8['on']('insertColumns',(_0x238346,_0x3b70a5)=>{const [_0x233f47,_0x94dbab={}]=_0x3b70a5;if(!_0x24158a)return;const _0x29810c=_0x94dbab['at']||0x0,_0x2f8de6=_0x94dbab['columns']||0x1;_0x24158a['columnInsertionIndexes']=new Array(_0x2f8de6)['fill'](_0x29810c)['map']((_0x496944,_0x5b7168)=>_0x496944+_0x5b7168);for(const {cell:_0x42167f}of _0x2966c8['createTableWalker'](_0x233f47,{'startColumn':_0x29810c,'endColumn':_0x29810c+_0x2f8de6-0x1}))_0x24158a['columnInsertionRanges']['push'](_0x43d201['model']['createRangeOn'](_0x42167f));},{'priority':'low'}),_0x2966c8['on']('insertRows',(_0x80d05e,_0x44be22)=>{const [_0x3f8ba9,_0x4f7991={}]=_0x44be22;if(!_0x24158a)return;const _0x13d993=_0x4f7991['at']||0x0,_0x11d99d=_0x4f7991['rows']||0x1;_0x24158a['rowInsertionIndexes']=new Array(_0x11d99d)['fill'](_0x13d993)['map']((_0x4c059e,_0x651520)=>_0x4c059e+_0x651520);for(const {cell:_0x4f012a}of _0x2966c8['createTableWalker'](_0x3f8ba9,{'startRow':_0x13d993,'endRow':_0x13d993+_0x11d99d-0x1}))_0x24158a['rowInsertionRanges']['push'](_0x43d201['model']['createRangeOn'](_0x4f012a));},{'priority':'low'}),_0x262d7f['descriptionFactory']['registerDescriptionCallback'](_0x17cb9e=>{if(_0x17cb9e['subType']&&_0x17cb9e['subType']['startsWith']('tablePaste'))return _0x17cb9e['previous']?{}:{'type':'insertion','content':o(_0x43d201['locale'],'*Replace\x20table\x20cells*')};});const _0x32b493=()=>!0x1;for(const _0x264dfe of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x262d7f['_suggestionFactory']['registerCustomCallback']('insertion',_0x264dfe,'join',_0x32b493),_0x262d7f['_suggestionFactory']['registerCustomCallback']('deletion',_0x264dfe,'join',_0x32b493),_0x262d7f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x264dfe,'join',_0x32b493);_0x262d7f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x32b493),_0x262d7f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x991fa0,_0xe15f5d,_0xf10be3)=>{const _0x14d7c1=_0x991fa0['map'](_0x27ceea=>_0x27ceea['getContainedElement']())['filter'](_0x6fcc6c=>_0x6fcc6c),_0x92e441=new Map(_0x14d7c1['map'](_0x212c5a=>[_0x212c5a,null]));if(_0x24158a){for(const {element:_0x42ca63,attributes:_0x41bee8}of _0x24158a['cells'])_0x41bee8&&_0x92e441['set'](_0x42ca63,_0x41bee8);}else{if(_0xf10be3&&_0xf10be3['markerAttributes'])for(const [_0x3e653e,_0x4441a8]of Object['entries'](_0xf10be3['markerAttributes'])){const _0x2c5e16=_0x43d201['model']['markers']['get'](_0x3e653e),_0x223a67=_0x2c5e16?_0x2c5e16['getRange']()['getContainedElement']():null;_0x223a67&&_0x92e441['set'](_0x223a67,_0x4441a8);}}_0x43d201['model']['change'](_0x7e6664=>{for(const [_0x885b53,_0x41cc71]of _0x92e441)_0x7e6664['setAttributes']({...Ae,..._0x41cc71},_0x885b53);});});const _0x3f0e31=(_0x25fece,_0x1bd0ce)=>{_0x262d7f['_suggestionFactory']['registerCustomCallback'](_0x25fece,'tablePaste',_0x1bd0ce,(_0x7323f6,_0x5b4e2a,_0x107867)=>{_0x43d201['model']['change'](_0x25ed68=>{const _0x41c2ef=[];for(const _0x415b2d of _0x7323f6){const _0x2f4b13=_0x415b2d['start']['nodeAfter'];_0x2f4b13['is']('element','tableCellSuggestion')&&_0x41c2ef['push'](_0x2f4b13);}_0x262d7f['_suggestionFactory']['getSuggestionCallback'](_0x25fece,null,_0x1bd0ce)(_0x7323f6,_0x5b4e2a,_0x107867);for(const _0x1be4e0 of _0x41c2ef)'$graveyard'!=_0x1be4e0['root']['rootName']&&_0x25ed68['unwrap'](_0x1be4e0);});});};_0x3f0e31('insertion','accept'),_0x3f0e31('insertion','discard'),_0x3f0e31('deletion','accept'),_0x3f0e31('deletion','discard'),_0x262d7f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x521ab2=>{const _0x584056=_0x521ab2['map'](_0x5d38e1=>_0x5d38e1['getContainedElement']()),_0x26fadd=_0x584056[0x0]['findAncestor']('table'),{minRow:_0x57b003,maxRow:_0xc9abdb}=_0x1b31d9['_getCoordsForCells'](_0x584056);_0x2966c8['removeRows'](_0x26fadd,{'at':_0x57b003,'rows':_0xc9abdb-_0x57b003+0x1});}),_0x262d7f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x27dee2=>{const _0x57e6d9=_0x27dee2['map'](_0xfdd1bc=>_0xfdd1bc['getContainedElement']()),_0x3f5d98=_0x57e6d9[0x0]['findAncestor']('table'),{minColumn:_0x43985c,maxColumn:_0x1d035d}=_0x1b31d9['_getCoordsForCells'](_0x57e6d9);_0x2966c8['removeColumns'](_0x3f5d98,{'at':_0x43985c,'columns':_0x1d035d-_0x43985c+0x1});});const _0x967e92=(_0x25f549,_0x5bc91b)=>{if(!_0x5bc91b['subType']||!_0x5bc91b['subType']['startsWith']('tablePaste'))return;const _0x552bd4=_0x5bc91b['attributes']['tablePasteChainId'],_0x9a9257=_0x262d7f['getSuggestions']()['filter'](_0x91d777=>_0x91d777['isInContent']&&_0x91d777['attributes']&&_0x91d777['attributes']['tablePasteChainId']==_0x552bd4);_0x9a9257['length']&&_0x5bc91b['getAllAdjacentSuggestions']()['length']!=_0x9a9257['length']&&_0x9a9257['reduce']((_0x2c007d,_0x3ce623)=>(_0x2c007d['next']=_0x3ce623,_0x3ce623['previous']=_0x2c007d,_0x3ce623));};function _0x286b82(_0x1dc2c0,_0x22bc43=!0x0){const {id:_0x139773,authorId:_0x54a595}=_0x262d7f['_splitMarkerName'](_0x1dc2c0['markerName']),_0x2fd700=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1ee83b=_0x262d7f['activeMarkers']['includes'](_0x1dc2c0['markerName']);return _0x1ee83b&&_0x2fd700['push']('ck-suggestion-marker--active'),{'classes':_0x2fd700,'attributes':{'data-suggestion':_0x139773,'data-author-id':_0x54a595},'priority':_0x1ee83b&&_0x22bc43?0xbc2:0xbb8};}_0x262d7f['on']('suggestionLoaded',_0x967e92,{'priority':'high'}),_0x262d7f['on']('suggestionUnloaded',_0x967e92,{'priority':'high'}),_0x43d201['model']['document']['registerPostFixer'](()=>{let _0x14ef2c=!0x1;const _0x2a15dd=Array['from'](_0x43d201['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1cd118,data:_0x3c693f}of _0x2a15dd){const {group:_0x3e2a7e,type:_0x2c764d,id:_0x5ca42b}=_0x262d7f['_splitMarkerName'](_0x1cd118);if('suggestion'!=_0x3e2a7e||'deletion'!=_0x2c764d||_0x3c693f['oldRange'])continue;if(!_0x262d7f['hasSuggestion'](_0x5ca42b))continue;const _0x22c1ea=_0x262d7f['getSuggestion'](_0x5ca42b)['getRanges'](),_0x2ffdd8=_0x43d201['plugins']['get']('Users')['me'];for(const _0x5e9927 of _0x262d7f['getSuggestions']()){if(!_0x5e9927['isInContent']||_0x5e9927['author']!=_0x2ffdd8)continue;if('formatBlock'!=_0x5e9927['type']||'tablePasteCell'!=_0x5e9927['subType'])continue;if(_0x5e9927['getRanges']()['every'](_0x457cb3=>_0x22c1ea['some'](_0x3794dc=>_0x3794dc['containsRange'](_0x457cb3,!0x0)))){for(const _0x14f462 of _0x5e9927['getAllAdjacentSuggestions']())_0x14f462['isInContent']&&(_0x14f462['discard'](),_0x14ef2c=!0x0);}}}return _0x14ef2c;}),_0x43d201['model']['document']['registerPostFixer'](_0x1185d4=>{const _0x4a64c3=_0x43d201['commands']['get']('redo');if(!_0x4a64c3||!_0x4a64c3['_createdBatches']['has'](_0x1185d4['batch']))return!0x1;let _0x22bc4c=!0x1;const _0x174bbb=_0x43d201['plugins']['get']('Users')['me'],_0x41e4e9=_0x43d201['model']['document']['differ']['getChanges'](),_0x4b7071=Array['from'](_0x43d201['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2196a4,data:_0x594543})=>{const {group:_0x3700a2,subType:_0x1ef509,authorId:_0xb6b0e5}=_0x262d7f['_splitMarkerName'](_0x2196a4);return'suggestion'==_0x3700a2&&'tablePaste'==_0x1ef509&&_0xb6b0e5==_0x174bbb['id']&&!_0x594543['oldRange'];});for(const _0x4bd956 of _0x41e4e9){if('insert'!=_0x4bd956['type']||'tableCellSuggestion'!=_0x4bd956['name']||0x1!=_0x4bd956['length'])continue;const _0x75130e=_0x1185d4['createRange'](_0x4bd956['position'],_0x4bd956['position']['getShiftedBy'](0x1));if(!_0x4b7071['find'](({data:_0x27ccca})=>_0x27ccca['newRange']['isEqual'](_0x75130e))){for(const {name:_0x31d0e2,data:_0x5d5ae9}of _0x4b7071)if(_0x75130e['containsRange'](_0x5d5ae9['newRange'])){_0x1185d4['updateMarker'](_0x31d0e2,{'range':_0x75130e}),_0x22bc4c=!0x0;break;}}}return _0x22bc4c;}),_0x43d201['model']['document']['registerPostFixer'](_0x5ecdda=>{let _0x5e3630=!0x1;const _0x49ed6b=_0x43d201['plugins']['get']('Users')['me'],_0x48245b=_0x262d7f['getSuggestions']()['filter'](_0x2437c1=>_0x2437c1['isInContent']&&_0x2437c1['author']==_0x49ed6b),_0x166fb3=new Set(),_0x528567=new Set();for(const _0x210048 of _0x48245b)if('tablePaste'==_0x210048['subType'])for(const _0x565b7a of _0x210048['getMarkers']()){const _0x2434c5=_0x565b7a['getRange']()['getContainedElement']();if(_0x2434c5){if(_0x2434c5['is']('element','tableCellSuggestion')&&Be(_0x2434c5)){_0x210048['removeMarker'](_0x565b7a['name']),_0x166fb3['add'](_0x2434c5),_0x5e3630=!0x0;const _0x5078e2=_0x2434c5['nextSibling'],_0x5e8e80=_0x2434c5['previousSibling'],_0x5f567a=_0x5078e2&&_0x5078e2['is']('element','tableCellSuggestion'),_0x4cb408=_0x5e8e80&&_0x5e8e80['is']('element','tableCellSuggestion');_0x5f567a&&!_0x166fb3['has'](_0x5078e2)&&_0x528567['add'](_0x5078e2),_0x4cb408&&!_0x166fb3['has'](_0x5e8e80)&&_0x528567['add'](_0x5e8e80);}else _0x2434c5['is']('element','paragraph')&&_0x2434c5['isEmpty']&&(_0x210048['removeMarker'](_0x565b7a['name']),_0x5e3630=!0x0);}}else{if('tablePasteCell'==_0x210048['subType']){if(!_0x210048['attributes']||!_0x210048['attributes']['tablePasteChainId'])continue;const _0x181678=_0x210048['attributes']['markerAttributes'];if(_0x181678&&Object['keys'](_0x181678)['length'])continue;const _0x15cdf=_0x210048['attributes']['tablePasteChainId'];let _0x56924c=!0x0,_0x103c04=!0x0;for(const _0x43b1c6 of _0x48245b)if(_0x43b1c6['subType']&&_0x43b1c6['subType']['startsWith']('tablePaste')){if(!_0x43b1c6['attributes']['tablePasteChainId']){_0x103c04=!0x1;break;}if(_0x43b1c6['id']!=_0x210048['id']&&_0x43b1c6['attributes']['tablePasteChainId']==_0x15cdf){_0x56924c=!0x1;break;}}_0x103c04&&_0x56924c&&(_0x210048['removeMarkers'](),_0x5e3630=!0x0);}}for(const _0x33a2e0 of _0x166fb3)_0x5ecdda['remove'](_0x33a2e0);for(const _0x3cbc87 of _0x528567)_0x5ecdda['unwrap'](_0x3cbc87);return _0x5e3630;}),_0x43d201['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5d6e5d=>_0x286b82(_0x5d6e5d),'converterPriority':'high'}),_0x43d201['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x228864,_0x4a1782)=>_0x4a1782['options']['showSuggestionHighlights']?_0x286b82(_0x228864,!0x1):null,'converterPriority':'high'});const _0x119a13=_0x43d201['editing']['view'];this['listenTo'](_0x119a13['document'],'clipboardOutput',(_0x8d5339,_0x4cb5e1)=>{const _0x4d82a9=[];for(const _0x2a2f30 of _0x119a13['createRangeIn'](_0x4cb5e1['content'])['getItems']())_0x2a2f30['is']('element','suggestion-td')&&_0x4d82a9['push'](_0x2a2f30);_0x119a13['change'](_0x3df780=>{for(const _0x3fcea8 of _0x4d82a9)_0x3df780['move'](_0x3df780['createRangeIn'](_0x3fcea8),_0x3df780['createPositionBefore'](_0x3fcea8)),_0x3df780['remove'](_0x3fcea8);});});}}function Be(_0x24bb82){if(_0x24bb82['isEmpty'])return!0x0;const _0x523620=_0x24bb82['getChild'](0x0);return _0x523620['is']('element','paragraph')&&_0x523620['isEmpty'];}function Oe(_0x4d221f,_0x231bbf={},_0x2586a0){for(const {isAnchor:_0x390c21,cellHeight:_0x321096,cellWidth:_0x264dcd}of _0x2586a0['createTableWalker'](_0x4d221f,{'includeAllSlots':!0x0,..._0x231bbf}))if(!_0x390c21||0x1!=_0x321096||0x1!=_0x264dcd)return!0x1;return!0x0;}class Ot extends _0x2b2f8b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x22c783=this['editor']['plugins']['get']('TrackChangesEditing');_0x22c783['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x22c783['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x22c783['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x22c783['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x22c783['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x22c783['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3a457b,_0x294c0a){const _0x37741f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41d861=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x13b338=_0x294c0a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x136e6f=_0x41d861['getColumnGroupElement'](_0x13b338);let _0x201ec1=_0x136e6f?_0x41d861['getTableColumnsWidths'](_0x136e6f):null,_0x196af5=_0x13b338['getAttribute']('tableWidth')||null;const _0x3f3b17=_0x294c0a['tableWidth']||_0x196af5,_0x442385=_0x294c0a['columnWidths']||_0x201ec1,_0x545996=this['editor']['plugins']['get']('Users')['me'];for(const _0x1f4a67 of _0x37741f['getSuggestions']()){const _0x35f3fb=_0x1f4a67['getContainedElement']();if('resizeTable'===_0x1f4a67['subType']&&_0x35f3fb===_0x13b338){_0x1f4a67['author']!==_0x545996&&_0x1f4a67['discard']();const _0x154532=_0x1f4a67['data']['commandParams'];_0x196af5=_0x154532[0x0]['tableWidth'],_0x201ec1=_0x154532[0x0]['columnWidths'];break;}}_0x3a457b({'table':_0x13b338,'tableWidth':_0x3f3b17,'columnWidths':_0x442385}),_0x37741f['markBlockFormat'](_0x13b338,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x196af5,'columnWidths':_0x201ec1}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3560c5){if('formatBlock'!=_0x3560c5['type']&&'formatInline'!=_0x3560c5['type'])return;const {data:_0x34f5a3}=_0x3560c5;if(_0x34f5a3&&'resizeTable'===_0x34f5a3['formatGroupId']){const _0x4ac523='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4ac523)};}}}class xt extends _0x2b2f8b{['afterInit'](){const _0x43bf35=this['editor'];_0x43bf35['plugins']['has']('Template')&&_0x43bf35['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x2b2f8b{['afterInit'](){const _0x3df330=this['editor'];if(!_0x3df330['commands']['get']('insertTableOfContents'))return;_0x3df330['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x47893e=_0x3df330['plugins']['get']('TrackChangesEditing'),_0x318542=_0x3df330['locale'];_0x47893e['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1a3cb2=>o(_0x318542,'ELEMENT_TABLE_OF_CONTENTS',_0x1a3cb2));}}class Rt extends _0x2b2f8b{['afterInit'](){const _0x3154b7=this['editor'];if(!_0x3154b7['plugins']['has']('Title'))return;const _0x26caa3=_0x3154b7['plugins']['get']('TrackChangesEditing');_0x26caa3['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3154b7['locale'],'ELEMENT_TITLE')),_0x3154b7['model']['document']['registerPostFixer'](_0x293dcb=>{let _0xe1929b=!0x1;const _0x137c07=Array['from'](_0x3154b7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1bfd52,data:_0x141fce}of _0x137c07){const {group:_0x2a944d}=_0x26caa3['_splitMarkerName'](_0x1bfd52);if('suggestion'!==_0x2a944d||!_0x141fce['newRange'])continue;const _0xbf4dca=_0x141fce['newRange'],_0x5b5221=_0xbf4dca['end']['nodeBefore'];if(!_0x5b5221||!_0x5b5221['is']('element','title-content'))continue;if(!_0xbf4dca['start']['isTouching'](_0xbf4dca['end']))continue;const _0x424fba=_0x3154b7['model']['schema']['getNearestSelectionRange'](_0xbf4dca['end'],'forward');if(_0x424fba&&_0x424fba['isCollapsed']){const _0x22d070=_0x293dcb['createRange'](_0xbf4dca['start'],_0x424fba['start']);_0x22d070['isEqual'](_0xbf4dca)||(_0x293dcb['updateMarker'](_0x1bfd52,{'range':_0x22d070}),_0xe1929b=!0x0);}_0xe1929b||(_0x293dcb['removeMarker'](_0x1bfd52),_0xe1929b=!0x0);}return _0xe1929b;});}}class Tt extends _0x2b2f8b{['afterInit'](){const _0x4efad6=this['editor'],_0x1b6f22=_0x4efad6['plugins']['get']('TrackChangesEditing');_0x4efad6['plugins']['has']('Uploadcare')&&(_0x1b6f22['enableCommand']('uploadcare'),_0x4efad6['plugins']['has']('UploadcareImageEdit')&&(_0x1b6f22['enableCommand']('uploadcareImageEdit'),_0x1b6f22['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1b6f22['descriptionFactory']['registerDescriptionCallback'](_0x20131f=>{if('attribute'!=_0x20131f['type'])return;const {data:_0x3b1f93}=_0x20131f;return _0x3b1f93&&'uploadcareImageId'==_0x3b1f93['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x2b2f8b{['afterInit'](){const _0x486508=this['editor'],_0xf4da01=_0x486508['plugins']['get']('TrackChangesEditing');_0x486508['plugins']['has']('UndoEditing')&&(_0xf4da01['enableCommand']('undo'),_0xf4da01['enableCommand']('redo'));}}class Ut extends _0x2b2f8b{static get['requires'](){return[Nt];}['afterInit'](){const _0x1cf880=this['editor'];if(!_0x1cf880['plugins']['has']('TableCaptionEditing'))return;_0x1cf880['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x2b2f8b{['tableProperties'];['tableCellProperties'];constructor(_0x3cca86){super(_0x3cca86),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x408a98=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x7014dc of this['tableProperties'])_0x408a98['enableCommand'](_0x7014dc,(_0x5df769,_0x4665d6)=>{const _0x4c71cc=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x7014dc,[_0x4c71cc],this['tableProperties'],'tableProperties',_0x5df769,_0x4665d6);});_0x408a98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x408a98['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x408a98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x30bba8,_0x32adbd)=>this['handleDiscardAction'](this['tableProperties'],_0x30bba8,_0x32adbd)),_0x408a98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2d3c8a of this['tableCellProperties'])_0x408a98['enableCommand'](_0x2d3c8a,(_0xc1ee71,_0x3ce162)=>{const _0x4c23e=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2d3c8a,_0x4c23e,this['tableCellProperties'],'tableCellProperties',_0xc1ee71,_0x3ce162);});_0x408a98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x408a98['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x408a98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2ee172,_0x80264a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2ee172,_0x80264a)),_0x408a98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x408a98['descriptionFactory']['registerDescriptionCallback'](_0x31ca9d=>this['handleSuggestionDescription'](_0x31ca9d)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x29cb3e,_0x1a7f92,_0x5d9aeb,_0x34884c,_0x73f95,_0x2cf363){const _0x45bcf5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2cf363['batch'],()=>{for(const _0x2e9d86 of _0x1a7f92){if(this['_getSuggestion'](_0x2e9d86,_0x34884c))_0x73f95(_0x2cf363);else{const _0x2c9e26={};for(const _0x60550a of _0x5d9aeb){const _0x473744=_0x2e9d86['getAttribute'](_0x60550a);void 0x0!==_0x473744&&(_0x2c9e26[_0x60550a]=_0x473744);}_0x73f95(_0x2cf363),_0x45bcf5['markBlockFormat'](_0x2e9d86,{'commandParams':[_0x2c9e26]},[],_0x34884c);}}});}['handleDiscardAction'](_0x289fca,_0x292367,_0x15aaec){const _0x275b9e=_0x292367[0x0]['start']['nodeAfter'],_0x2562e2=_0x15aaec['commandParams'][0x0];this['editor']['model']['change'](_0x2d909d=>{for(const _0x13605f of _0x289fca)void 0x0!==_0x2562e2[_0x13605f]?_0x2d909d['setAttribute'](_0x13605f,_0x2562e2[_0x13605f],_0x275b9e):_0x2d909d['removeAttribute'](_0x13605f,_0x275b9e);});}['handleSuggestionDescription'](_0x26d28f){if(_0x26d28f['data'])switch(_0x26d28f['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'](_0x5ea0d1,_0x554486){const _0x2a70fb=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3ea709 of _0x2a70fb['getSuggestions']({'skipNotAttached':!0x0})){const _0x5b8ce9=_0x3ea709['getContainedElement']();if(_0x3ea709['subType']===_0x554486&&_0x5b8ce9===_0x5ea0d1)return _0x3ea709;}return null;}['_registerTablePropertiesAttributes'](){const _0x35b075=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa149e3=[...this['tableProperties'],...this['tableCellProperties']];for(const _0xcf4e2a of _0xa149e3){const _0x26f578=_0xcf4e2a['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x35b075['descriptionFactory']['registerAttributeLabel'](_0xcf4e2a,o(this['editor']['locale'],'FORMAT_'+_0x26f578));}}}class Ft extends _0x2b2f8b{['afterInit'](){const _0x1d7421=this['editor'];if(!_0x1d7421['plugins']['has']('LineHeight'))return;const _0x47a8e9=_0x1d7421['plugins']['get']('TrackChangesEditing'),_0x155d7c=_0x1d7421['locale'];_0x47a8e9['enableDefaultAttributesIntegration']('lineHeight'),_0x47a8e9['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x155d7c,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x2b2f8b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x3f7a3e,_0x5f55e4,_0x4c6b68,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(_0x5d7203){super(_0x5d7203),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x28d88d,_0x41d293,_0x5a2322,_0x252f1d)=>{this['_model']['change'](()=>{for(const _0x30f5ca of[..._0x252f1d,..._0x5a2322])this['_model']['markers']['has'](_0x30f5ca)&&_0x5d7203['editing']['reconvertMarker'](_0x30f5ca);});}),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']=_0x5d7203['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x5d7203['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5d7203['config']['get']('trackChanges.trackFormatChanges'),_0x5d7203['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5d7203['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x5d7203,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5da618=this['editor'];_0x5da618['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x40a881,{writer:_0x268c5c})=>{let _0x4b747f='suggestion:'+_0x40a881['getAttribute']('suggestion-type')+':'+_0x40a881['getAttribute']('id');return _0x40a881['getAttribute']('marker-count')&&(_0x4b747f+=':'+_0x40a881['getAttribute']('marker-count')),_0x268c5c['createElement']('$marker',{'data-name':_0x4b747f});}}),_0x5da618['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5da618['model']['document']['registerPostFixer'](_0x57787d=>{let _0x1d7405=!0x1;const _0x3edc5a=Array['from'](_0x5da618['model']['document']['differ']['getChangedMarkers']()),_0x278dff=new Set();for(const {name:_0x23b0a5,data:_0x31752b}of _0x3edc5a){const {group:_0x4d2fe9,type:_0x5c781d,subType:_0x34ebfa,id:_0x370512}=this['_splitMarkerName'](_0x23b0a5);if('suggestion'!==_0x4d2fe9)continue;const _0x368c44=_0x34ebfa?'suggestion:'+_0x5c781d+':'+_0x34ebfa+':'+_0x370512:'suggestion:'+_0x5c781d+':'+_0x370512,_0x1c0dad=_0x5da618['model']['markers']['getMarkersGroup'](_0x368c44),_0x51bb56=_0x5da618['model']['markers']['get'](_0x23b0a5),_0x395684=this['_suggestions']['get'](_0x370512);if(null!=_0x31752b['newRange']){'formatInline'==_0x5c781d&&(_0x1d7405=_0x1d7405||Wt(_0x31752b['newRange'],_0x23b0a5,_0x57787d,_0x5da618['model']['schema']));const _0x50c1c7='attribute'==_0x5c781d&&this['_isBlockAttribute'](_0x34ebfa['split']('|')[0x0]),_0x42e720='attribute'==_0x5c781d&&this['_isInlineAttribute'](_0x34ebfa['split']('|')[0x0]);if(_0x31752b['newRange']['isCollapsed']||'$graveyard'==_0x31752b['newRange']['root']['rootName']||'formatBlock'==_0x5c781d&&!Qt(_0x31752b['newRange'])||_0x50c1c7&&!Qt(_0x31752b['newRange'])||_0x42e720&&Xt(_0x31752b['newRange'])||'deletion'==_0x5c781d&&Xt(_0x31752b['newRange'])||_0x51bb56&&Yt(_0x51bb56,_0x1c0dad))_0x57787d['removeMarker'](_0x23b0a5),_0x1d7405=!0x0;else{if(!_0x395684||!_0x395684['isInContent'])continue;if(_0x31752b['newRange']&&_0x31752b['oldRange']&&_0x31752b['newRange']['isEqual'](_0x31752b['oldRange']))continue;_0x278dff['add'](_0x395684);}}}return _0x278dff['size']>0x0&&(_0x1d7405=!!this['_joinWithAdjacentSuggestions'](_0x278dff)||_0x1d7405),_0x1d7405;}),_0x5da618['model']['document']['registerPostFixer'](_0x5cb82f=>{let _0x311658=!0x1;for(const _0x242615 of _0x5da618['model']['document']['differ']['getChanges']())if('insert'==_0x242615['type'])for(const _0x54a970 of this['_suggestions']['values']()){if(_0x54a970['isMultiRange']||!_0x54a970['isInContent'])continue;const _0xbe0597='formatBlock'==_0x54a970['type'],_0x4be2d6=this['_getAttributeKey'](_0x54a970),_0x485aa6=_0x4be2d6&&this['_isBlockAttribute'](_0x4be2d6);if(!_0xbe0597&&!_0x485aa6)continue;const _0x277992=_0x54a970['getFirstRange']();if(_0x277992['start']['parent']!=_0x277992['end']['parent']&&!_0x277992['end']['isAtEnd']){const _0x31abb0=_0x5da618['model']['createPositionAt'](_0x277992['start']['nodeAfter'],'end'),_0x5a0b07=_0x5da618['model']['createRange'](_0x277992['start'],_0x31abb0);_0x5cb82f['updateMarker'](_0x54a970['getFirstMarker'](),{'range':_0x5a0b07}),_0x311658=!0x0;}}return _0x311658;}),_0x5da618['model']['document']['registerPostFixer'](_0x111a7f=>this['_processAttributeChanges'](_0x111a7f)),_0x5da618['model']['document']['registerPostFixer'](_0x57a357=>!_0x57a357['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x57a357)),_0x5da618['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5da618['model']['document']['on']('change:data',(_0x379927,_0xe602de)=>{if(!_0xe602de['isLocal']||_0xe602de['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x32c86e=_0x5da618['model']['document']['differ']['getChanges']();if(0x0==_0x32c86e['length'])return;const _0x22ac3b=[],_0x750ef4=_0x32c86e['filter'](_0x4c94c7=>'attribute'==_0x4c94c7['type']),_0x38c862=_0x32c86e['filter'](_0x14aaaf=>'insert'==_0x14aaaf['type']&&'$text'!=_0x14aaaf['name']);for(const _0x326e12 of _0x750ef4)this['_isRegisteredAttribute'](_0x326e12['attributeKey'])&&_0x22ac3b['push']({'key':_0x326e12['attributeKey'],'newValue':_0x326e12['attributeNewValue'],'oldValue':_0x326e12['attributeOldValue'],'range':Zt(_0x326e12['range'],_0x5da618['model'])});for(const _0x36b4bc of _0x38c862){if('rename'!=_0x36b4bc['action']&&'refresh'!=_0x36b4bc['action'])continue;const _0x338b2a=tn(_0x36b4bc['position']['nodeAfter'],_0x5da618['model']),_0x50d115=_0x36b4bc['before'];'rename'==_0x36b4bc['action']&&_0x22ac3b['push']({'key':m,'newValue':_0x36b4bc['name'],'oldValue':_0x50d115['name'],'range':_0x338b2a});for(const [_0x261fed,_0x236658]of _0x50d115['attributes']){if(!this['_isRegisteredAttribute'](_0x261fed))continue;const _0x36b77f=_0x36b4bc['attributes']['get'](_0x261fed);_0x236658!==_0x36b77f&&_0x22ac3b['push']({'key':_0x261fed,'newValue':_0x36b77f,'oldValue':_0x236658,'range':_0x338b2a});}for(const [_0x534f13,_0x5ab452]of _0x36b4bc['attributes'])this['_isRegisteredAttribute'](_0x534f13)&&(_0x50d115['attributes']['has'](_0x534f13)||_0x22ac3b['push']({'key':_0x534f13,'newValue':_0x5ab452,'oldValue':null,'range':_0x338b2a}));}0x0!=_0x22ac3b['length']&&_0x5da618['model']['enqueueChange'](_0xe602de,_0x20cfbc=>{const _0x5f347a=_0x8ed52d();for(const {range:_0x61634f,key:_0x3e1d76,oldValue:_0x5c26a4,newValue:_0x45bea9}of _0x22ac3b)this['markAttributeChange'](_0x61634f,_0x3e1d76,_0x5c26a4,_0x45bea9,{'groupId':_0x5f347a});this['_reduceExistingSuggestions'](_0x20cfbc,_0x22ac3b);});},{'priority':'lowest'}),_0x5da618['model']['markers']['on']('update:suggestion',(_0x4e05af,_0xd0f66a,_0x134fb5)=>{if(null==_0x134fb5){const {id:_0x3b8101}=this['_splitMarkerName'](_0xd0f66a['name']),_0x58114a=this['_suggestions']['get'](_0x3b8101);_0x58114a&&_0x58114a['addMarkerName'](_0xd0f66a['name']);}}),_0x5da618['model']['document']['on']('change:data',()=>{const _0x149494=Array['from'](_0x5da618['model']['document']['differ']['getChangedMarkers']())['filter'](_0xf313bd=>'suggestion'===this['_splitMarkerName'](_0xf313bd['name'])['group']);if(0x0===_0x149494['length'])return;_0x149494['sort']((_0x37f2c4,_0x4c29da)=>{const _0x1f8d35=_0x37f2c4['data']['oldRange'],_0x5d58c3=_0x4c29da['data']['oldRange'];return null===_0x1f8d35&&null===_0x5d58c3?0x0:null===_0x1f8d35&&null!==_0x5d58c3?-0x1:null!==_0x1f8d35&&null===_0x5d58c3?0x1:_0x1f8d35['start']['isBefore'](_0x5d58c3['start'])?-0x1:0x1;});const _0xa5cbc6=new Set(),_0x49e5b6=new Set();for(const {name:_0x1be5d3,data:_0x23af61}of _0x149494){const {id:_0x8292a3}=this['_splitMarkerName'](_0x1be5d3);if(null===_0x23af61['oldRange']){const _0x561f61=this['_handleNewSuggestionMarker'](_0x1be5d3);_0x49e5b6['add'](_0x561f61);}else{const _0x1c0b20=this['_suggestions']['get'](_0x8292a3);null!==_0x23af61['newRange']||_0x1c0b20['isInContent']?(_0xa5cbc6['add'](_0x1c0b20['head']),_0x49e5b6['add'](_0x1c0b20)):this['_removeSuggestion'](_0x1c0b20);}}_0x49e5b6['size']>0x0&&this['_refreshSuggestionsChain'](_0x49e5b6);for(const _0x2844a3 of _0xa5cbc6)this['fire']('suggestionChanged',_0x2844a3);}),_0x5da618['model']['on']('applyOperation',(_0x22d354,_0x39117a)=>{const _0x4d8923=_0x39117a[0x0];if(!this['_suggestions']['size'])return;if(!_0x4d8923['isDocumentOperation'])return;if(_0x4d8923['batch']['isUndo']||!_0x4d8923['batch']['isLocal'])return;let _0x5c7d73,_0xf4fbb3;switch(_0x4d8923['type']){case'insert':_0x5c7d73=_0x5da618['model']['createPositionAt'](_0x4d8923['position']),_0xf4fbb3=_0x5c7d73['getShiftedBy'](_0x4d8923['howMany']);break;case'split':_0x5c7d73=_0x5da618['model']['createPositionAt'](_0x4d8923['splitPosition']),_0xf4fbb3=_0x5da618['model']['createPositionAt'](_0x4d8923['moveTargetPosition']);break;case'move':_0x5c7d73=_0x5da618['model']['createPositionAt'](_0x4d8923['targetPosition']),_0xf4fbb3=_0x5c7d73['getShiftedBy'](_0x4d8923['howMany']);break;default:return;}const _0x473a6b=_0x5da618['model']['createRange'](_0x5c7d73,_0xf4fbb3);_0x5da618['model']['change'](()=>{for(const {suggestion:_0x4e0b2d,meta:_0x19021c}of this['_findSuggestions'](_0x473a6b)){if(_0x4e0b2d['isMultiRange'])continue;if('formatInline'==_0x4e0b2d['type'])continue;const _0x5ce8e2=this['_getAttributeKey'](_0x4e0b2d);if(_0x5ce8e2&&this['_isBlockAttribute'](_0x5ce8e2)&&'split'!=_0x4d8923['type'])continue;const _0x11f61b=_0x4e0b2d['data']&&_0x4e0b2d['data']['multipleBlocks'];('formatBlock'!=_0x4e0b2d['type']||'split'==_0x4d8923['type']&&!_0x11f61b)&&(_0x19021c['containsRangeInObject']||'insertion'==_0x4e0b2d['type']&&_0x19021c['isOwn']||_0x4e0b2d['getFirstRange']()['containsRange'](_0x473a6b)&&this['_breakSuggestionMarker'](_0x4e0b2d,_0x5c7d73,_0xf4fbb3));}});},{'priority':'lowest'}),_0x5da618['model']['on']('deleteContent',(_0x1bfa80,_0x101731)=>{const _0x261f36=_0x101731[0x0],_0x9e9228=_0x101731[0x1];if(_0x9e9228&&_0x9e9228['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x261f36['isCollapsed'])return;const _0x3bf1d7=_0x5da618['model']['schema'],{start:_0x311fd8,end:_0x3aba18}=_0x261f36['getFirstRange'](),_0x3bda88=_0x311fd8['nodeAfter']&&_0x3bf1d7['isLimit'](_0x311fd8['nodeAfter'])?null:_0x3bf1d7['getNearestSelectionRange'](_0x311fd8,'forward'),_0x41c35c=_0x3aba18['nodeBefore']&&_0x3bf1d7['isLimit'](_0x3aba18['nodeBefore'])?null:_0x3bf1d7['getNearestSelectionRange'](_0x3aba18,'backward'),_0x20ce43=_0x5da618['model']['createRange'](_0x3bda88?_0x3bda88['start']:_0x311fd8,_0x41c35c?_0x41c35c['end']:_0x3aba18);_0x5da618['model']['change'](_0x533810=>{this['markDeletion'](_0x20ce43);const _0x5f5349=_0x5da618['model']['schema']['getNearestSelectionRange'](_0x20ce43['start']);_0x261f36['is']('documentSelection')?_0x533810['setSelection'](_0x5f5349):_0x261f36['setTo'](_0x5f5349);}),_0x1bfa80['stop']();},{'priority':_0x2ea691['normal']+0xa}),_0x5da618['model']['on']('insertContent',(_0x27e1c7,_0x35bf60)=>{const _0x2dc8c6=_0x35bf60[_0x35bf60['length']-0x1];_0x2dc8c6&&_0x2dc8c6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5da618['model']['change'](()=>{let _0x4691dd=_0x5da618['model']['insertContent'](_0x35bf60[0x0],_0x35bf60[0x1],_0x35bf60[0x2],{'forceDefaultExecution':!0x0});if(!_0x4691dd)return;_0x27e1c7['return']=_0x4691dd['clone']();const _0xb8ca09=_0x4691dd['end']['nodeBefore'],_0x4c33c2=_0x5da618['model']['schema'];_0xb8ca09&&_0x4c33c2['isBlock'](_0xb8ca09)&&!_0x4c33c2['isObject'](_0xb8ca09)&&(_0x4691dd=_0x5da618['model']['createRange'](_0x4691dd['start'],_0x5da618['model']['createPositionAt'](_0xb8ca09,'end'))),this['markInsertion'](_0x4691dd);}),_0x27e1c7['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x57c7c0=new v(_0x5da618,this['_suggestions']);_0x5da618['commands']['add']('acceptSuggestion',_0x57c7c0),this['enableCommand']('acceptSuggestion');const _0x204354=new D(_0x5da618,this['_suggestions']);_0x5da618['commands']['add']('discardSuggestion',_0x204354),this['enableCommand']('discardSuggestion'),_0x5da618['commands']['add']('acceptAllSuggestions',new B(_0x5da618,_0x57c7c0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5da618['commands']['add']('discardAllSuggestions',new B(_0x5da618,_0x204354,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5da618['commands']['add']('acceptSelectedSuggestions',new O(_0x5da618,_0x57c7c0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5da618['commands']['add']('discardSelectedSuggestions',new O(_0x5da618,_0x204354,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x255918=_0x5da618['plugins']['get']('CommentsRepository');this['listenTo'](_0x255918,'addComment',(_0x409edb,{threadId:_0x2188a3})=>{const _0x395e5b=this['_suggestions']['get'](_0x2188a3);_0x395e5b&&_0x395e5b['commentThread']&&0x1===_0x395e5b['commentThread']['length']&&this['_updateSuggestionData'](_0x2188a3,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x255918,'removeComment',(_0x2901a2,{threadId:_0x5328b7})=>{const _0x54b654=this['_suggestions']['get'](_0x5328b7);_0x54b654&&_0x54b654['commentThread']&&!_0x54b654['commentThread']['length']&&this['_updateSuggestionData'](_0x5328b7,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5e4bd4){const _0x4d3c35=_0xfd81f3([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]),_0x43dea4=0x3d8d0df,_0x31f53e=0x3dfaa4f^_0x43dea4,_0x4e614a=window[_0xfd81f3([0x44,0x61,0x74,0x65])][_0xfd81f3([0x6e,0x6f,0x77])](),_0x33c79b=_0x5e4bd4[_0xfd81f3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2f3467=new window[(_0xfd81f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e3a33=>{_0x33c79b[_0xfd81f3([0x6f,0x6e,0x63,0x65])](_0xfd81f3([0x72,0x65,0x61,0x64,0x79]),_0x1e3a33);}),_0x312ac4={[_0xfd81f3([0x6b,0x74,0x79])]:_0xfd81f3([0x45,0x43]),[_0xfd81f3([0x75,0x73,0x65])]:_0xfd81f3([0x73,0x69,0x67]),[_0xfd81f3([0x63,0x72,0x76])]:_0xfd81f3([0x50,0x2d,0x32,0x35,0x36]),[_0xfd81f3([0x78])]:_0xfd81f3([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]),[_0xfd81f3([0x79])]:_0xfd81f3([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]),[_0xfd81f3([0x61,0x6c,0x67])]:_0xfd81f3([0x45,0x53,0x32,0x35,0x36])},_0x316ef8=_0x33c79b[_0xfd81f3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xfd81f3([0x67,0x65,0x74])](_0xfd81f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2660cc(){let _0x12d905,_0xe3005a=null,_0x3b4596=null;try{if(_0x316ef8==_0xfd81f3([0x47,0x50,0x4c]))return _0xfd81f3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x12d905=_0x2bb0dc(),!_0x12d905)return _0xfd81f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x12d905[_0xfd81f3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3b4596=_0x337b6b(_0x12d905[_0xfd81f3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x12d905[_0xfd81f3([0x6a,0x74,0x69])])),await _0x381dd0()?_0x1bf829()?_0xce8ab5()?_0xfd81f3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x55c96a()?(_0x12d905[_0xfd81f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xfd81f3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe3005a=_0x557366(_0xfd81f3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x12d905[_0xfd81f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xfd81f3([0x74,0x72,0x69,0x61,0x6c])&&(_0xe3005a=_0x557366(_0xfd81f3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x53e7a7()):_0xfd81f3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xfd81f3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xfd81f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xfd81f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xce8ab5(){const _0x4fccb1=[_0xfd81f3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xfd81f3([0x74,0x72,0x69,0x61,0x6c])][_0xfd81f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12d905[_0xfd81f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4e614a/0x3e8:0xe10*_0x31f53e;return _0x12d905[_0xfd81f3([0x65,0x78,0x70])]<_0x4fccb1;}function _0x1bf829(){const _0x979f66=_0x12d905[_0xfd81f3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x979f66)return!0x1;if(_0x979f66[_0xfd81f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfd81f3([0x2a])))return!0x0;if(_0x979f66[_0xfd81f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfd81f3([0x54,0x43])))return!0x0;if(_0x979f66[_0xfd81f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfd81f3([0x52,0x54,0x43]))){if(_0x1fb3da())return!0x0;if(_0x292782()||_0x345f33())return!0x0;}return!0x1;}function _0x55c96a(){const _0x5890cd=_0x12d905[_0xfd81f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5890cd||0x0==_0x5890cd[_0xfd81f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x366909}=new URL(window[_0xfd81f3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5890cd[_0xfd81f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x366909))return!0x0;const _0x2e912d=_0x366909[_0xfd81f3([0x73,0x70,0x6c,0x69,0x74])](_0xfd81f3([0x2e]));return _0x5890cd[_0xfd81f3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xbb94c3=>_0xbb94c3[_0xfd81f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfd81f3([0x2a])))[_0xfd81f3([0x6d,0x61,0x70])](_0x3791ff=>_0x3791ff[_0xfd81f3([0x73,0x70,0x6c,0x69,0x74])](_0xfd81f3([0x2e])))[_0xfd81f3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20de52=>_0x20de52[_0xfd81f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2e912d[_0xfd81f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xfd81f3([0x6d,0x61,0x70])](_0x5af437=>Array(_0x2e912d[_0xfd81f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5af437[_0xfd81f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xfd81f3([0x66,0x69,0x6c,0x6c])](_0x5af437[0x0]===_0xfd81f3([0x2a])?_0xfd81f3([0x2a]):'')[_0xfd81f3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5af437))[_0xfd81f3([0x73,0x6f,0x6d,0x65])](_0x3cefa5=>_0x2e912d[_0xfd81f3([0x65,0x76,0x65,0x72,0x79])]((_0x2a8eac,_0x2001df)=>_0x3cefa5[_0x2001df]===_0x2a8eac||_0x3cefa5[_0x2001df]===_0xfd81f3([0x2a])));}function _0x53e7a7(){return _0xe3005a&&_0x3b4596?new window[(_0xfd81f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a440e,_0x28287f)=>{_0xe3005a[_0xfd81f3([0x74,0x68,0x65,0x6e])](_0x3a440e,_0x28287f),_0x3b4596[_0xfd81f3([0x74,0x68,0x65,0x6e])](_0x5208b9=>{_0x5208b9!=_0xfd81f3([0x56,0x61,0x6c,0x69,0x64])&&_0x3a440e(_0x5208b9);},_0x28287f);}):_0xe3005a||_0x3b4596||_0xfd81f3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x337b6b(_0x1847cc,_0xadee77){return new window[(_0xfd81f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24d19f=>{if(_0x1fab36())return _0x24d19f(_0xfd81f3([0x56,0x61,0x6c,0x69,0x64]));_0x325da6(),_0x33c79b[_0xfd81f3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xfd81f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2a0ac5=!0x1;const _0x2a38c3=_0x8ed52d();function _0x3a893a(_0x4498a9){return!!_0x4498a9&&(typeof _0x4498a9===_0xfd81f3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4498a9===_0xfd81f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4498a9[_0xfd81f3([0x74,0x68,0x65,0x6e])]===_0xfd81f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4498a9[_0xfd81f3([0x63,0x61,0x74,0x63,0x68])]===_0xfd81f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x11ce31(_0x457483){_0x4edc1e(_0x457483)[_0xfd81f3([0x74,0x68,0x65,0x6e])](_0x5b863c=>{if(!_0x5b863c||_0x5b863c[_0xfd81f3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xfd81f3([0x6f,0x6b]))return _0xfd81f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x10e3a3(_0x1116f2(_0x2a38c3+_0xadee77))!=_0x5b863c[_0xfd81f3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xfd81f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xfd81f3([0x56,0x61,0x6c,0x69,0x64]);})[_0xfd81f3([0x74,0x68,0x65,0x6e])](_0x2d5c37=>(_0x1db742(),_0x2d5c37),()=>{const _0x31cd5b=_0x284e29();return null==_0x31cd5b?(_0x1db742(),_0xfd81f3([0x56,0x61,0x6c,0x69,0x64])):_0xfd81f3(_0x4e614a-_0x31cd5b>(0x27d454df^_0x43dea4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xfd81f3([0x74,0x68,0x65,0x6e])](_0x24d19f)[_0xfd81f3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24d19f(_0xfd81f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x477178=0x3ee3e5f^_0x43dea4;function _0x1db742(){const _0x48a143=_0xfd81f3([0x6c,0x6c,0x63,0x74,0x2d])+_0x10e3a3(_0x1116f2(_0x1847cc)),_0x39c94d=_0x3f4acc(_0x10e3a3(window[_0xfd81f3([0x4d,0x61,0x74,0x68])][_0xfd81f3([0x63,0x65,0x69,0x6c])](_0x4e614a/_0x477178)));window[_0xfd81f3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xfd81f3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48a143,_0x39c94d);}function _0x284e29(){const _0x120c06=_0xfd81f3([0x6c,0x6c,0x63,0x74,0x2d])+_0x10e3a3(_0x1116f2(_0x1847cc)),_0x4aa1f3=window[_0xfd81f3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xfd81f3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x120c06);return _0x4aa1f3?window[_0xfd81f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f4acc(_0x4aa1f3),0x10)*_0x477178:null;}function _0x4edc1e(_0x4a5b8b){return new window[(_0xfd81f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x486621,_0x5e9533)=>{_0x4a5b8b[_0xfd81f3([0x74,0x68,0x65,0x6e])](_0x486621,_0x5e9533),window[_0xfd81f3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5e9533,0x3d9041f^_0x43dea4);});}}_0x33c79b[_0xfd81f3([0x6f,0x6e])](_0xfd81f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51cd1d,_0x16eec7)=>{if(_0x16eec7[0x0]!=_0x1847cc)return _0x24d19f(_0xfd81f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x16eec7[0x1]={..._0x16eec7[0x1],[_0xfd81f3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2a38c3};},{[_0xfd81f3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xfd81f3([0x68,0x69,0x67,0x68])}),_0x33c79b[_0xfd81f3([0x6f,0x6e])](_0xfd81f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xd44497=>{_0x3a893a(_0xd44497[_0xfd81f3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2a0ac5=!0x0,_0x11ce31(_0xd44497[_0xfd81f3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xfd81f3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xfd81f3([0x6c,0x6f,0x77])}),_0x2f3467[_0xfd81f3([0x74,0x68,0x65,0x6e])](()=>{_0x2a0ac5||_0x24d19f(_0xfd81f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1fab36(){return _0x33c79b[_0xfd81f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xfd81f3([0x76,0x69,0x65,0x77])][_0xfd81f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xfd81f3([0x61,0x75,0x74,0x6f]);}function _0x325da6(){_0x33c79b[_0xfd81f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xfd81f3([0x76,0x69,0x65,0x77])][_0xfd81f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xfd81f3([0x61,0x75,0x74,0x6f]);}}function _0x557366(_0xefab49){const _0x516a0e=[new window[(_0xfd81f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x211732=>setTimeout(_0x211732,0x3d1ee13^_0x43dea4)),_0x2f3467[_0xfd81f3([0x74,0x68,0x65,0x6e])](()=>new window[(_0xfd81f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f0d39=>{let _0x225816=0x0;_0x33c79b[_0xfd81f3([0x6d,0x6f,0x64,0x65,0x6c])][_0xfd81f3([0x6f,0x6e])](_0xfd81f3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c2f8d,_0x7f1257)=>{_0x7f1257[0x0][_0xfd81f3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x225816++,_0x225816==(0x3d8d127^_0x43dea4)&&(_0x5f0d39(),_0x1c2f8d[_0xfd81f3([0x6f,0x66,0x66])]());});}))];return window[_0xfd81f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xfd81f3([0x72,0x61,0x63,0x65])](_0x516a0e)[_0xfd81f3([0x74,0x68,0x65,0x6e])](()=>_0xefab49);}async function _0x1aebeb(){await _0x2f3467,_0x33c79b[_0xfd81f3([0x6d,0x6f,0x64,0x65,0x6c])][_0xfd81f3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x45633d,_0x33c79b[_0xfd81f3([0x6d,0x6f,0x64,0x65,0x6c])][_0xfd81f3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x45633d,_0x33c79b[_0xfd81f3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xfd81f3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1fb3da(){return _0x5c5b9e(_0xfd81f3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x40ff5c(_0xfd81f3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xfd81f3([0x73,0x74,0x61,0x74,0x65])]==_0xfd81f3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x292782(){return _0x5c5b9e(_0xfd81f3([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 _0x345f33(){return _0x5c5b9e(_0xfd81f3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x314abe(_0x413b5d){const _0x5a75fc=_0x2e794c();_0x33c79b[_0x5a75fc]=_0xfd81f3([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x413b5d,_0x413b5d!=_0xfd81f3([0x56,0x61,0x6c,0x69,0x64])&&_0x1aebeb();}function _0x2e794c(){const _0x72a62e=window[_0xfd81f3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xfd81f3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xfd81f3([0x6e,0x6f,0x77])]())[_0xfd81f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xfd81f3([0x2e]),'');let _0x4da39d=_0xfd81f3([0x52]);for(let _0x2b06f0=0x0;_0x2b06f0<_0x72a62e[_0xfd81f3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b06f0+=0x2){let _0x52aaeb=window[_0xfd81f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x72a62e[_0xfd81f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b06f0,_0x2b06f0+0x2));_0x52aaeb>=_0x4d3c35[_0xfd81f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x52aaeb-=_0x4d3c35[_0xfd81f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4da39d+=_0x4d3c35[_0x52aaeb];}return _0x4da39d;}function _0x2bb0dc(){const _0x411115=_0x316ef8[_0xfd81f3([0x73,0x70,0x6c,0x69,0x74])](_0xfd81f3([0x2e]));if(0x3!=_0x411115[_0xfd81f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xadfc1e(_0x411115[0x1]);function _0xadfc1e(_0x2cec3c){const _0xf02d2f=_0xe985c2(_0x2cec3c);return _0xf02d2f&&_0x1a05c0()?_0xf02d2f:null;function _0x1a05c0(){const _0x3632fe=_0xf02d2f[_0xfd81f3([0x6a,0x74,0x69])],_0x56edbe=window[_0xfd81f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3632fe[_0xfd81f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3632fe[_0xfd81f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x369e66={..._0xf02d2f,[_0xfd81f3([0x6a,0x74,0x69])]:_0x3632fe[_0xfd81f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3632fe[_0xfd81f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x369e66[_0xfd81f3([0x76,0x63])],_0x1116f2(_0x369e66)==_0x56edbe;}}}async function _0x381dd0(){let _0x566560=!0x0;try{const _0x10da97=_0x316ef8[_0xfd81f3([0x73,0x70,0x6c,0x69,0x74])](_0xfd81f3([0x2e])),[_0x59fedc,_0x45d068,_0x29c7cf]=_0x10da97;return _0x5dff4b(_0x59fedc),await _0x47f557(_0x59fedc,_0x45d068,_0x29c7cf),_0x566560;}catch{return!0x1;}function _0x5dff4b(_0xcd8481){const _0x985e93=_0xe985c2(_0xcd8481);_0x985e93&&_0x985e93[_0xfd81f3([0x61,0x6c,0x67])]==_0xfd81f3([0x45,0x53,0x32,0x35,0x36])||(_0x566560=!0x1);}async function _0x47f557(_0x3d4c9c,_0x183945,_0x580ef3){const _0x45b309=window[_0xfd81f3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xfd81f3([0x66,0x72,0x6f,0x6d])](_0x2b3039(_0x580ef3),_0x22e3d5=>_0x22e3d5[_0xfd81f3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4523ea=new window[(_0xfd81f3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xfd81f3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d4c9c+_0xfd81f3([0x2e])+_0x183945),_0x4face9=window[_0xfd81f3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xfd81f3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4face9)return;const _0x588027=await _0x4face9[_0xfd81f3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xfd81f3([0x6a,0x77,0x6b]),_0x312ac4,{[_0xfd81f3([0x6e,0x61,0x6d,0x65])]:_0xfd81f3([0x45,0x43,0x44,0x53,0x41]),[_0xfd81f3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xfd81f3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xfd81f3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4face9[_0xfd81f3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xfd81f3([0x6e,0x61,0x6d,0x65])]:_0xfd81f3([0x45,0x43,0x44,0x53,0x41]),[_0xfd81f3([0x68,0x61,0x73,0x68])]:{[_0xfd81f3([0x6e,0x61,0x6d,0x65])]:_0xfd81f3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x588027,_0x45b309,_0x4523ea)||(_0x566560=!0x1);}}function _0xe985c2(_0x2d256a){return _0x2d256a[_0xfd81f3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xfd81f3([0x65,0x79]))?JSON[_0xfd81f3([0x70,0x61,0x72,0x73,0x65])](_0x2b3039(_0x2d256a)):null;}function _0x2b3039(_0x1f6a1f){return window[_0xfd81f3([0x61,0x74,0x6f,0x62])](_0x1f6a1f[_0xfd81f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xfd81f3([0x2b]))[_0xfd81f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xfd81f3([0x2f])));}function _0x1116f2(_0x4ea8bb){let _0x186c6e=0x1505;function _0x16532b(_0x2b9da7){for(let _0x1f550b=0x0;_0x1f550b<_0x2b9da7[_0xfd81f3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f550b++){const _0x52742d=_0x2b9da7[_0xfd81f3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f550b);_0x186c6e=(_0x186c6e<<0x5)+_0x186c6e+_0x52742d,_0x186c6e&=_0x186c6e;}}function _0x3add9a(_0x246445){Array[_0xfd81f3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x246445)?_0x246445[_0xfd81f3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3add9a):_0x246445&&typeof _0x246445==_0xfd81f3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xfd81f3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x246445)[_0xfd81f3([0x73,0x6f,0x72,0x74])]()[_0xfd81f3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e7188,_0x2db0c2])=>{_0x16532b(_0x5e7188),_0x3add9a(_0x2db0c2);}):_0x16532b(window[_0xfd81f3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x246445));}return _0x3add9a(_0x4ea8bb),_0x186c6e>>>0x0;}function _0x10e3a3(_0x50c7f5){return _0x50c7f5[_0xfd81f3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xfd81f3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xfd81f3([0x30]));}function _0x3f4acc(_0x1d48f2){return _0x1d48f2[_0xfd81f3([0x73,0x70,0x6c,0x69,0x74])]('')[_0xfd81f3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xfd81f3([0x6a,0x6f,0x69,0x6e])]('');}function _0x5c5b9e(_0x45688a){return _0x33c79b[_0xfd81f3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xfd81f3([0x68,0x61,0x73])](_0x45688a);}function _0x40ff5c(_0x197529){return _0x33c79b[_0xfd81f3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xfd81f3([0x67,0x65,0x74])](_0x197529);}function _0x45633d(){}function _0xfd81f3(_0x266637){return _0x266637['map'](_0x50ed56=>String['fromCharCode'](_0x50ed56))['join']('');}_0x314abe(await _0x2660cc());}(this);}set['adapter'](_0x6d1a48){if(this['_adapter'])throw new _0x608ef8('track-changes-adapter-already-set',this);this['_adapter']=_0x6d1a48;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2adf20=!0x1,toJSON:_0x37dbd5=!0x1}={}){const _0x512816=[];for(const _0x5493cd of this['_suggestions']['values']())_0x2adf20&&!_0x5493cd['isInContent']||_0x512816['push'](_0x5493cd);return _0x37dbd5?_0x512816['map'](_0x54c25c=>_0x54c25c['toJSON']()):_0x512816;}['getSuggestion'](_0x353b4b){const _0x27e28e=this['_suggestions']['get'](_0x353b4b);if(!_0x27e28e)throw new _0x608ef8('track-changes-suggestion-not-found',this);return _0x27e28e;}['hasSuggestion'](_0x2c2077){return this['_suggestions']['has'](_0x2c2077);}['addSuggestionData'](_0x4ae3cf){const {authorId:_0xaa45ee,id:_0x37a48d,originalSuggestionId:_0x147826,attributes:_0x4cfdd5}=_0x4ae3cf,[_0x47c93e,_0x334f71]=_0x4ae3cf['type']['split'](':'),_0x5dd95b=this['_suggestions']['get'](_0x37a48d)||this['_createSuggestion'](_0x47c93e,_0x334f71,_0x37a48d,_0xaa45ee,_0x4cfdd5,_0x147826);if(this['_addThreadToSuggestion'](_0x5dd95b),this['_checkSuggestionCorrectness'](_0x5dd95b,_0x47c93e,_0x334f71||null,_0xaa45ee),_0x5dd95b['createdAt']=_0x4ae3cf['createdAt'],_0x5dd95b['_isDataLoaded']=!0x0,_0x4cfdd5&&_0x4cfdd5['@external']){const _0x44dc98=_0x4cfdd5['@external'],_0x12a9e7=this['_getExternalAuthor'](_0x44dc98['authorName']);_0x5dd95b['authoredAt']=_0x44dc98['createdAt'],_0x5dd95b['author']=_0x12a9e7,_0x5dd95b['isExternal']=!0x0;}else _0x5dd95b['authoredAt']=_0x4ae3cf['createdAt'];switch(_0x4ae3cf['data']&&(_0x5dd95b['data']=_0x4ae3cf['data']),_0x4ae3cf['attributes']&&(_0x5dd95b['attributes']=_0x4ae3cf['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5dd95b['_saved']=!0x0),this['_suggestionState']['get'](_0x5dd95b)){case'notReady':this['_suggestionState']['set'](_0x5dd95b,'dataReady');break;case'markerReady':_0x5dd95b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5dd95b])),this['_refreshSuggestionsChain'](new Set([_0x5dd95b])),this['_suggestionState']['set'](_0x5dd95b,'ready'),this['fire']('suggestionLoaded',_0x5dd95b)):this['_suggestionState']['set'](_0x5dd95b,'removed');}return _0x5dd95b;}['acceptSuggestion'](_0xca5462){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x41da72 of _0xca5462['getAllAdjacentSuggestions']())_0x41da72['accept']();});});}['discardSuggestion'](_0x406142){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4f538e of _0x406142['getAllAdjacentSuggestions']())_0x4f538e['discard']();});});}['enableCommand'](_0x2f7162,_0x4e0f4f){const _0x248768=this['editor']['commands']['get'](_0x2f7162);if(!_0x248768)throw new _0x608ef8('track-changes-command-not-found',this,{'commandName':_0x2f7162});if(this['_enabledCommands']['has'](_0x248768))throw new _0x608ef8('track-changes-enable-command-twice',this,{'commandName':_0x2f7162});this['_enabledCommands']['add'](_0x248768),_0x4e0f4f&&_0x248768['on']('execute',(_0x26c5b0,_0x196aaf)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x196aaf['length']>0x0&&_0x196aaf[_0x196aaf['length']-0x1]&&_0x196aaf[_0x196aaf['length']-0x1]['forceDefaultExecution']?_0x196aaf['pop']():(_0x26c5b0['return']=_0x4e0f4f((..._0x31f4d2)=>_0x248768['execute'](..._0x31f4d2,{'forceDefaultExecution':!0x0}),..._0x196aaf),_0x26c5b0['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xada5b1){let _0x41211a,_0xbb1e09;const _0x3b57d9=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x41211a=_0xada5b1();}catch(_0x56054b){_0xbb1e09=_0x56054b;}return _0x3b57d9||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xbb1e09&&_0x608ef8['rethrowUnexpectedError'](_0xbb1e09,this),_0x41211a;}['markInsertion'](_0x27fde0,_0x76ea17=null,_0x118b12={}){if(_0x27fde0['isCollapsed'])return null;const _0x250d7e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x118b12['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x53dbc1,meta:_0x49a4c4}of this['_findSuggestions'](_0x27fde0,'insertion'))if(_0x49a4c4['isOwn']){if(!_0x49a4c4['isNextTo']){if(_0x49a4c4['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x53dbc1,_0x118b12))continue;return _0x53dbc1;}if(sn(_0x53dbc1,_0x118b12))return _0x53dbc1;this['_breakSuggestionMarker'](_0x53dbc1,_0x27fde0['start'],_0x27fde0['end']);break;}if(_0x76ea17==_0x53dbc1['subType']&&sn(_0x53dbc1,_0x118b12)){const _0x274e4e=_0x53dbc1['getFirstRange']();return _0x274e4e['start']['isEqual'](_0x27fde0['end'])?this['_setSuggestionRange'](_0x53dbc1,this['_model']['createRange'](_0x27fde0['start'],_0x274e4e['end'])):this['_setSuggestionRange'](_0x53dbc1,this['_model']['createRange'](_0x274e4e['start'],_0x27fde0['end'])),_0x53dbc1;}}const _0x438f19=_0x8ed52d(),_0x7cf51=_0x250d7e['id'],_0xead3e2=_0x76ea17?'insertion:'+_0x76ea17:'insertion',_0x136dc8=this['_setSuggestionData']({'id':_0x438f19,'type':_0xead3e2,'createdAt':new Date(),'authorId':_0x7cf51,'attributes':_0x118b12});return this['_addSuggestionMarker'](_0xead3e2,_0x438f19,_0x7cf51,_0x27fde0),_0x136dc8;}['markMultiRangeInsertion'](_0x4b199d,_0x4bbed6='multi',_0x32943c={}){const _0x4920ec=this['editor']['plugins']['get']('Users')['me'],_0x5bac5c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4bbed6,'join');this['_trackingSessionId']&&(_0x32943c['trackingSessionId']=this['_trackingSessionId']);for(const _0x5204e0 of this['getSuggestions']())if(_0x5204e0['author']['id']==_0x4920ec['id']&&'insertion'==_0x5204e0['type']&&_0x5204e0['subType']==_0x4bbed6&&sn(_0x5204e0,_0x32943c)&&(_0x5bac5c(_0x5204e0['getRanges'](),_0x4b199d)||_0x5bac5c(_0x4b199d,_0x5204e0['getRanges']()))){for(const _0x2ae98c of _0x4b199d)_0x5204e0['addRange'](_0x2ae98c);return _0x5204e0;}for(const {suggestion:_0x35cfdd,meta:_0x67e49a}of this['_findSuggestions'](_0x4b199d,'insertion')){if(!_0x67e49a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x67e49a['containsRangeInObject'])continue;if(!sn(_0x35cfdd,_0x32943c))continue;let _0x41e460=!0x0;for(const _0x45b653 of _0x35cfdd['getRanges']())for(const _0x48b5d7 of _0x4b199d)if(!_0x45b653['containsRange'](_0x48b5d7)){_0x41e460=!0x1;break;}if(_0x41e460)return _0x35cfdd;}const _0x191ad8=_0x8ed52d(),_0x4657df=_0x4920ec['id'],_0x32fad3='insertion:'+_0x4bbed6,_0x2645a8=this['_setSuggestionData']({'id':_0x191ad8,'type':_0x32fad3,'createdAt':new Date(),'authorId':_0x4657df,'attributes':_0x32943c});for(const _0x34eb81 of _0x4b199d)this['_addSuggestionMarker'](_0x32fad3,_0x191ad8,_0x4657df,_0x34eb81,x['getMultiRangeId']());return _0x2645a8;}['markInlineFormat'](_0x5d77d4,_0x349a43,_0x4d12b6=null,_0x33f192={}){if(_0x4d12b6=_0x4d12b6||Ht(_0x349a43),_0x5d77d4['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x33f192['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2ae83a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d12b6,'accept');return this['forceDefaultExecution'](()=>_0x2ae83a([_0x5d77d4],_0x349a43,_0x33f192)),null;}const _0x1bbdf6=this['editor']['plugins']['get']('Users')['me'],_0x28b340=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1b1457,meta:_0x517ade}of this['_findSuggestions'](_0x5d77d4,'insertion'))_0x517ade['isOwn']&&!_0x517ade['isInsideObject']&&_0x28b340['push'](..._0x1b1457['getRanges']());}const _0x15fc41=function(_0x364bec,_0x110b77){const _0x541173=[];for(const _0x4a87e1 of _0x110b77){const _0x31007f=_0x364bec['getIntersection'](_0x4a87e1);_0x31007f&&_0x541173['push'](_0x31007f);}return _0x541173;}(_0x5d77d4,_0x28b340),_0x55f7a5=function(_0x1b036b,_0x38a9cb){const _0x307aed=[_0x1b036b];for(const _0x10c2f1 of _0x38a9cb){let _0x3b23a9=0x0;for(;_0x3b23a9<_0x307aed['length'];){const _0x271e5b=_0x307aed[_0x3b23a9]['getDifference'](_0x10c2f1);_0x307aed['splice'](_0x3b23a9,0x1,..._0x271e5b),_0x3b23a9+=_0x271e5b['length'];}}return _0x307aed;}(_0x5d77d4,_0x28b340);_0x15fc41['length']&&this['_model']['change'](()=>{for(const _0x3247f0 of _0x15fc41){const _0x27f234=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d12b6,'accept');this['forceDefaultExecution'](()=>_0x27f234([_0x3247f0],_0x349a43,_0x33f192));}});for(const _0x3ba709 of _0x55f7a5){let _0x119aad=null,_0x593424=_0x3ba709['start'],_0x452eb7=_0x3ba709['end'];for(const {suggestion:_0x2b90e5,meta:_0xa5a46c}of this['_findSuggestions'](_0x3ba709,'formatInline')){if(!_0xa5a46c['isOwn'])continue;if(_0x2b90e5['subType']!=_0x4d12b6)continue;if(!sn(_0x2b90e5,_0x33f192))continue;const _0x8bdc52=_0x2b90e5['getFirstRange']();if(_0x8bdc52['containsRange'](_0x3ba709,!0x0))return null;_0x593424=_0x593424['isBefore'](_0x8bdc52['start'])?_0x593424:_0x8bdc52['start'],_0x452eb7=_0x452eb7['isAfter'](_0x8bdc52['end'])?_0x452eb7:_0x8bdc52['end'],_0x119aad?_0x8bdc52['start']['isBefore'](_0x119aad['getFirstRange']()['start'])?(_0x119aad['removeMarkers'](),_0x119aad=_0x2b90e5):_0x2b90e5['removeMarkers']():_0x119aad=_0x2b90e5;}const _0x5d11d1=this['_model']['createRange'](_0x593424,_0x452eb7);if(_0x119aad)this['_setSuggestionRange'](_0x119aad,_0x5d11d1);else{const _0x2d725a=_0x8ed52d(),_0x5793ba=_0x1bbdf6['id'];this['_setSuggestionData']({'id':_0x2d725a,'type':'formatInline:'+_0x4d12b6,'data':_0x349a43,'createdAt':new Date(),'authorId':_0x5793ba,'attributes':_0x33f192}),this['_addSuggestionMarker']('formatInline:'+_0x4d12b6,_0x2d725a,_0x5793ba,_0x5d11d1);}}return null;}['markBlockFormat'](_0x58bcd1,_0x89feaa,_0x438276=[],_0x366240=null,_0x18c856={}){_0x89feaa['formatGroupId']||(_0x89feaa['formatGroupId']=_0x89feaa['commandName']),_0x89feaa['multipleBlocks']=_0x58bcd1['is']('range'),_0x366240=_0x366240||Ht(_0x89feaa);const _0x3a1e94=_0x438276['map'](_0x232db1=>tn(_0x232db1,this['_model'])),_0x1b2b40=_0x58bcd1['is']('range')?_0x58bcd1:tn(_0x58bcd1,this['_model']);if(this['_trackingSessionId']&&(_0x18c856['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x42b216=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x366240,'accept');return this['forceDefaultExecution'](()=>_0x42b216([_0x1b2b40],_0x89feaa,_0x18c856)),null;}_0x3a1e94['push'](_0x1b2b40);let _0x211a35=!0x0;for(const _0x3318c3 of _0x3a1e94)if(!this['_rangeIsInLocalUserInsertion'](_0x3318c3)){_0x211a35=!0x1;break;}if(_0x211a35&&'always'!==this['_trackFormatChanges']){const _0x15ff40=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x366240,'accept');return this['forceDefaultExecution'](()=>_0x15ff40([_0x1b2b40],_0x89feaa,_0x18c856)),null;}let _0xdcf808=null,_0x599e21=_0x1b2b40['start'],_0x19b66e=_0x1b2b40['end'];for(const {suggestion:_0x3e6bc0,meta:_0x329ae0}of this['_findSuggestions'](_0x1b2b40,'formatBlock')){if(!_0x329ae0['isOwn'])continue;if(_0x329ae0['isNextTo']||_0x329ae0['containsRangeInObject']||_0x329ae0['isInsideObject'])continue;if(_0x3e6bc0['data']['formatGroupId']!=_0x89feaa['formatGroupId'])continue;if(!sn(_0x3e6bc0,_0x18c856))continue;const _0x693f67=_0x3e6bc0['getFirstRange']();if(_0x3e6bc0['subType']==_0x366240){if(_0x693f67['containsRange'](_0x1b2b40,!0x0))return null;_0x599e21=_0x599e21['isBefore'](_0x693f67['start'])?_0x599e21:_0x693f67['start'],_0x19b66e=_0x19b66e['isAfter'](_0x693f67['end'])?_0x19b66e:_0x693f67['end'],_0xdcf808?_0x693f67['start']['isBefore'](_0xdcf808['getFirstRange']()['start'])?(_0xdcf808['removeMarkers'](),_0xdcf808=_0x3e6bc0):_0x3e6bc0['removeMarkers']():_0xdcf808=_0x3e6bc0;}else{const _0x32ba18=_0x1b2b40['getIntersection'](_0x693f67);this['_cutOutSuggestionMarker'](_0x3e6bc0,_0x32ba18);}}const _0x24656e=this['editor']['plugins']['get']('Users')['me'],_0x28a235=_0x8ed52d(),_0x62e029=_0x24656e['id'];if(_0xdcf808)return this['_setSuggestionRange'](_0xdcf808,this['_model']['createRange'](_0x599e21,_0x19b66e)),_0xdcf808;{const _0x4cfb4e=this['_setSuggestionData']({'id':_0x28a235,'type':'formatBlock:'+_0x366240,'data':_0x89feaa,'createdAt':new Date(),'authorId':_0x62e029,'attributes':_0x18c856});return this['_addSuggestionMarker']('formatBlock:'+_0x366240,_0x28a235,_0x62e029,this['_model']['createRange'](_0x599e21,_0x19b66e)),_0x4cfb4e;}}['markMultiRangeBlockFormat'](_0x4cde45,_0x1fb71c,_0x2d0ef7=[],_0x4ac65e=null,_0x3e01c8={}){_0x1fb71c['formatGroupId']||(_0x1fb71c['formatGroupId']=_0x1fb71c['commandName']);const _0x21a4ea=_0x4cde45[0x0];_0x1fb71c['multipleBlocks']=_0x21a4ea['is']('range'),_0x4ac65e=_0x4ac65e||Ht(_0x1fb71c);const _0x298cdc=_0x2d0ef7['map'](_0x1a0461=>tn(_0x1a0461,this['_model'])),_0x376485=_0x21a4ea['is']('range')?_0x4cde45:_0x4cde45['map'](_0x211ca7=>tn(_0x211ca7,this['_model']));if(this['_trackingSessionId']&&(_0x3e01c8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1027be=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ac65e,'accept');return this['forceDefaultExecution'](()=>_0x1027be(_0x376485,_0x1fb71c,_0x3e01c8)),null;}_0x298cdc['push'](..._0x376485);let _0x2467ce=!0x0;for(const _0x3396a8 of _0x298cdc)if(!this['_rangeIsInLocalUserInsertion'](_0x3396a8)){_0x2467ce=!0x1;break;}if(_0x2467ce&&'always'!==this['_trackFormatChanges']){const _0x25dc99=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ac65e,'accept');return this['forceDefaultExecution'](()=>_0x25dc99(_0x376485,_0x1fb71c,_0x3e01c8)),null;}const _0x300b05=this['editor']['plugins']['get']('Users')['me'];for(const _0x342a23 of this['getSuggestions']()){const _0xc342c3=_0x342a23['data'];if(_0x342a23['author']['id']!=_0x300b05['id'])continue;if('formatBlock'!=_0x342a23['type']||_0xc342c3['formatGroupId']!=_0x1fb71c['formatGroupId'])continue;if(!sn(_0x342a23,_0x3e01c8))continue;const _0x19eea3=_0x342a23['subType']==_0x4ac65e;for(let _0x5cfb64=0x0;_0x5cfb64<_0x376485['length'];_0x5cfb64++){const _0x121e5a=_0x376485[_0x5cfb64];for(const _0x3f3cc0 of _0x342a23['getMarkers']()){const _0x366247=_0x3f3cc0['getRange']();if(_0x121e5a['isEqual'](_0x366247)){_0x19eea3?(_0x376485['splice'](_0x5cfb64,0x1),_0x5cfb64--):_0x342a23['removeMarker'](_0x3f3cc0['name']);break;}}}}if(0x0==_0x376485['length'])return null;const _0x4128e2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ac65e,'join');for(const _0x454a99 of this['getSuggestions']()){const _0x9d8a70=_0x454a99['data'];if(_0x454a99['author']['id']==_0x300b05['id']&&('formatBlock'==_0x454a99['type']&&_0x9d8a70['formatGroupId']==_0x1fb71c['formatGroupId']&&_0x454a99['subType']==_0x4ac65e&&sn(_0x454a99,_0x3e01c8)&&(_0x4128e2(_0x454a99['getRanges'](),_0x376485)||_0x4128e2(_0x376485,_0x454a99['getRanges']())))){for(const _0x151ee7 of _0x376485)_0x454a99['addRange'](_0x151ee7);return _0x454a99;}}const _0x110123=_0x8ed52d(),_0x44eacd=_0x300b05['id'],_0x422374='formatBlock:'+_0x4ac65e,_0x2e2ecb=this['_setSuggestionData']({'id':_0x110123,'type':_0x422374,'data':_0x1fb71c,'createdAt':new Date(),'authorId':_0x44eacd,'attributes':_0x3e01c8});for(const _0x39e77b of _0x376485)this['_addSuggestionMarker'](_0x422374,_0x110123,_0x44eacd,_0x39e77b,x['getMultiRangeId']());return _0x2e2ecb;}['markDeletion'](_0x3c3ff2,_0x4b669d=null,_0x264a4b={}){if(_0x3c3ff2['isCollapsed'])return null;const _0x4e6204=this['editor']['plugins']['get']('Users')['me'],_0x169efb=new _0xf26ff5(_0x3c3ff2['start'],_0x3c3ff2['end']);this['_trackingSessionId']&&(_0x264a4b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2574e2,meta:_0x2ea74c}of this['_findSuggestions'](_0x169efb,'insertion'))if(_0x2ea74c['isOwn']&&!_0x2ea74c['isNextTo']){if(_0x2574e2['isMultiRange']){const _0x2d3470=_0x2574e2['getRanges']()['filter'](_0x2df3f5=>'$graveyard'!=_0x2df3f5['root']['rootName']);_0x2d3470['every'](_0x1c7ff9=>_0x169efb['containsRange'](_0x1c7ff9,!0x0))&&_0x2574e2['discard']();if(_0x2d3470['some'](_0x3cfe9=>_0x3cfe9['containsRange'](_0x169efb,!0x0))){const _0x43428d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b669d,'accept');return this['forceDefaultExecution'](()=>_0x43428d([_0x169efb],null,_0x264a4b)),null;}}else{const _0x3b0b76=_0x169efb['getIntersection'](_0x2574e2['getFirstRange']());null!==_0x3b0b76&&_0x2574e2['_onDiscard']([_0x3b0b76],null,_0x264a4b);}}if(_0x169efb['detach'](),_0x169efb['isCollapsed']||'$graveyard'==_0x169efb['root']['rootName'])return null;let _0x466e48=null,_0x56f68e=_0x169efb['start'],_0x47bef5=_0x169efb['end'];const _0x139027=this['_findSuggestions'](_0x169efb,'deletion');for(const {suggestion:_0x597992,meta:_0x567faa}of _0x139027){const _0x1b7844=this['_model']['createRange'](_0x56f68e,_0x47bef5);if(_0x567faa['isOwn']&&(this['_mergeNestedSuggestions']||!_0x567faa['containsRangeInObject']&&!_0x567faa['isInsideObject'])){if(_0x597992['isMultiRange']){if(!sn(_0x597992,_0x264a4b))continue;let _0x5b1356=!0x0;for(const _0x173675 of _0x597992['getRanges']()){if(_0x173675['containsRange'](_0x1b7844,!0x0))return _0x597992;_0x1b7844['containsRange'](_0x173675)||(_0x5b1356=!0x1);}_0x5b1356&&_0x597992['discard']();}else{const _0x54f649=_0x597992['getFirstRange']();if(_0x54f649['containsRange'](_0x1b7844,!0x0))return _0x597992;if(!sn(_0x597992,_0x264a4b)){_0x1b7844['containsRange'](_0x54f649)?_0x597992['removeMarkers']():_0x54f649['containsPosition'](_0x56f68e)?_0x56f68e=_0x54f649['end']:_0x54f649['containsPosition'](_0x47bef5)&&(_0x47bef5=_0x54f649['start']);continue;}_0x56f68e=_0x56f68e['isBefore'](_0x54f649['start'])?_0x56f68e:_0x54f649['start'],_0x47bef5=_0x47bef5['isAfter'](_0x54f649['end'])?_0x47bef5:_0x54f649['end'],_0x264a4b=Object['assign']({},_0x597992['attributes']),_0x466e48?_0x54f649['start']['isBefore'](_0x466e48['getFirstRange']()['start'])?(_0x466e48['removeMarkers'](),_0x466e48=_0x597992):_0x597992['removeMarkers']():_0x466e48=_0x597992;}}}if(_0x466e48)return this['_setSuggestionRange'](_0x466e48,this['_model']['createRange'](_0x56f68e,_0x47bef5)),_0x466e48;{const _0x19ece0=_0x8ed52d(),_0x2d2c91=this['_model']['createRange'](_0x56f68e,_0x47bef5),_0x1e8ae7=_0x4e6204['id'],_0x52d48e=_0x4b669d?'deletion:'+_0x4b669d:'deletion',_0x3ee233=this['_setSuggestionData']({'id':_0x19ece0,'type':_0x52d48e,'createdAt':new Date(),'authorId':_0x1e8ae7,'attributes':_0x264a4b});return this['_addSuggestionMarker'](_0x52d48e,_0x19ece0,_0x1e8ae7,_0x2d2c91),_0x3ee233;}}['markMultiRangeDeletion'](_0x1cf1cb,_0x31d5bc='multi',_0x348663={}){const _0x14059f=this['editor']['plugins']['get']('Users')['me'],_0x121b3c=_0x1cf1cb['map'](_0x1d7eaa=>new _0xf26ff5(_0x1d7eaa['start'],_0x1d7eaa['end'])),_0x147096=new Set();this['_trackingSessionId']&&(_0x348663['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1562b3,meta:_0x9e9da8}of this['_findSuggestions'](_0x121b3c,'insertion'))_0x9e9da8['isOwn']&&!_0x9e9da8['isNextTo']&&_0x147096['add'](_0x1562b3);for(const _0x3b5ae6 of _0x147096)if(_0x3b5ae6['isMultiRange']){const _0x22ac73=_0x3b5ae6['getRanges']();(!_0x3b5ae6['attributes']||!_0x3b5ae6['attributes']['skipNestingCheck'])&&(_0x22ac73['every'](_0x161b02=>_0x121b3c['some'](_0x2ed227=>_0x2ed227['containsRange'](_0x161b02,!0x0)))&&_0x3b5ae6['discard']());if(_0x121b3c['every'](_0xcaf574=>_0x22ac73['some'](_0xdd6a48=>_0xdd6a48['containsRange'](_0xcaf574,!0x0)))){const _0x2411cd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31d5bc,'accept');return this['forceDefaultExecution'](()=>_0x2411cd(_0x1cf1cb,null,_0x348663)),null;}}else{const _0x175844=_0x3b5ae6['getFirstRange']();_0x121b3c['some'](_0x18af08=>_0x18af08['containsRange'](_0x175844,!0x0))&&_0x3b5ae6['discard']();if(_0x121b3c['every'](_0x2d1ddb=>_0x175844['containsRange'](_0x2d1ddb,!0x0))){const _0x58c17c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31d5bc,'accept');return this['forceDefaultExecution'](()=>_0x58c17c(_0x121b3c,null,_0x348663)),null;}}const _0x3d2ef5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31d5bc,'join');let _0xdc9c82=null;for(const _0x4cf525 of this['getSuggestions']())if(_0x4cf525['author']['id']==_0x14059f['id']&&_0x4cf525['isInContent']&&'deletion'==_0x4cf525['type']&&_0x4cf525['subType']==_0x31d5bc&&sn(_0x4cf525,_0x348663)&&(_0x3d2ef5(_0x4cf525['getRanges'](),_0x121b3c)||_0x3d2ef5(_0x121b3c,_0x4cf525['getRanges']()))){if(_0xdc9c82){if(_0x4cf525['commentThread']&&_0x4cf525['commentThread']['length'])continue;for(const _0xda5652 of _0x4cf525['getRanges']())_0xdc9c82['isIntersectingWithRange'](_0xda5652)||_0xdc9c82['addRange'](_0xda5652);_0x4cf525['removeMarkers']();}else{_0xdc9c82=_0x4cf525;for(const _0x473deb of _0x121b3c)_0x4cf525['isIntersectingWithRange'](_0x473deb)||_0x4cf525['addRange'](_0x473deb);}}if(_0xdc9c82)return _0xdc9c82;_0x147096['clear']();for(const {suggestion:_0x41a103,meta:_0x178cc9}of this['_findSuggestions'](_0x121b3c,'deletion'))_0x178cc9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x178cc9['containsRangeInObject']&&!_0x178cc9['isInsideObject'])&&sn(_0x41a103,_0x348663)&&_0x147096['add'](_0x41a103);for(const _0x15696a of _0x147096){const _0x56e85e=_0x15696a['getRanges']();if(!_0x348663||!_0x348663['skipNestingCheck']){if(_0x121b3c['every'](_0x55e8bf=>_0x56e85e['some'](_0x559e81=>_0x559e81['containsRange'](_0x55e8bf,!0x0))))return _0x15696a;}(!_0x15696a['attributes']||!_0x15696a['attributes']['skipNestingCheck'])&&(_0x56e85e['every'](_0x16fbf5=>_0x121b3c['some'](_0x358b39=>_0x358b39['containsRange'](_0x16fbf5,!0x0)))&&_0x15696a['discard']());}const _0x402640=_0x8ed52d(),_0x2e2406=_0x14059f['id'],_0x26f99d='deletion:'+_0x31d5bc,_0x3fae53=this['_setSuggestionData']({'id':_0x402640,'type':_0x26f99d,'createdAt':new Date(),'authorId':_0x2e2406,'attributes':_0x348663});for(const _0x478de7 of _0x121b3c)_0x478de7['detach'](),_0x478de7['isCollapsed']||'$graveyard'==_0x478de7['root']['rootName']||this['_addSuggestionMarker'](_0x26f99d,_0x402640,_0x2e2406,_0x478de7,x['getMultiRangeId']());return _0x3fae53;}['markAttributeChange'](_0x36ea6b,_0x17ed4a,_0x3bc608,_0xcf891f,_0x6f7e73){if(_0x36ea6b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3bd6db=this['editor']['plugins']['get']('Users')['me']['id'],_0x90417e=Array['from'](this['_suggestions']['values']())['filter'](_0x2f8569=>'attribute'==_0x2f8569['type']&&_0x2f8569['data']['key']==_0x17ed4a&&_0x2f8569['isIntersectingWithRange'](_0x36ea6b));if(this['_trackingSessionId']&&(_0x6f7e73['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x124036=this['_findSuggestions'](_0x36ea6b,'insertion')['filter'](({meta:_0x53152a})=>_0x53152a['isOwn']&&!_0x53152a['isInsideObject']&&!_0x53152a['isNextTo'])['map'](({suggestion:_0x47d794})=>_0x47d794);_0x90417e['unshift'](..._0x124036);}const _0x1666e5=new Map([[_0x36ea6b,_0x3bc608]]);for(const _0x96cbfa of _0x90417e){const _0x375f25='attribute'==_0x96cbfa['type']?_0x96cbfa['data']['oldValue']:void 0x0,_0x388b8a=_0x96cbfa['getFirstRange'](),_0x15261d=Array['from'](_0x1666e5['keys']())['find'](_0x50fa7f=>_0x50fa7f['isIntersecting'](_0x388b8a));if(!_0x15261d)continue;const _0x84b8b=_0x15261d['getDifference'](_0x388b8a);this['_isBlockAttribute'](_0x17ed4a)&&'insertion'==_0x96cbfa['type']&&0x0!=_0x84b8b['length']||(_0x1666e5['delete'](_0x15261d),_0x84b8b['forEach'](_0x2b2b23=>{_0x1666e5['set'](_0x2b2b23,_0x3bc608);}),'insertion'!=_0x96cbfa['type']&&_0x375f25!=_0xcf891f&&_0x1666e5['set'](_0x15261d['getIntersection'](_0x388b8a),_0x375f25));}const _0xe11af9=[];for(const [_0x107de8,_0x2569a1]of _0x1666e5){const _0x53b6de=_0x8ed52d(),_0x51fc15={'key':_0x17ed4a,'oldValue':_0x2569a1,'newValue':_0xcf891f};_0x17ed4a['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':_0x17ed4a});const _0x4b782b=('attribute:'+(_0x17ed4a+'|'+Ht({'newValue':_0xcf891f})))['substring'](0x0,0x3c),_0x3dafd9=this['_setSuggestionData']({'id':_0x53b6de,'type':_0x4b782b,'data':_0x51fc15,'createdAt':new Date(),'authorId':_0x3bd6db,'attributes':_0x6f7e73});_0xe11af9['push'](_0x3dafd9),this['_addSuggestionMarker'](_0x4b782b,_0x53b6de,_0x3bd6db,_0x107de8);}return _0xe11af9;}['enableDefaultAttributesIntegration'](_0x4678a7){this['enableCommand'](_0x4678a7,(_0x3fb420,..._0x3be6c9)=>{this['recordAttributeChanges'](()=>{_0x3fb420(..._0x3be6c9);});});}['registerBlockAttribute'](_0x14206b){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x14206b);}['registerInlineAttribute'](_0x47ebe9){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x47ebe9);}['startTrackingSession'](_0x18368c){return this['_trackingSessionId']=void 0x0!==_0x18368c?_0x18368c:_0x8ed52d(),this['_trackingSessionId'];}['_getAttributeKey'](_0x4b4ad0){return'attribute'==_0x4b4ad0['type']?_0x4b4ad0['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x9923c0){if(0x0==_0x9923c0['length'])return;const _0x3fba7b=this['editor'],_0x1446b3=_0x3fba7b['plugins']['get'](_0x4c6b68),_0x2bbc8d=[];_0x3fba7b['model']['change'](_0x3ebc74=>{for(let _0x1ad4ab=0x0;_0x1ad4ab<_0x9923c0['length'];_0x1ad4ab++){const _0x501d1f=_0x9923c0[_0x1ad4ab];if(_0x501d1f['baseVersion']=_0x3fba7b['model']['document']['version'],_0x501d1f['isDocumentOperation']=!0x0,_0x1446b3['isMarkedRemoveOperation'](_0x501d1f)){const _0x26cce2=Lt(_0x501d1f['newRange'],_0x3fba7b['model']);_0x2bbc8d['unshift'](_0xf26ff5['fromRange'](_0x26cce2));}else switch(_0x501d1f['type']){case'rename':{const _0xb30e54=_0x501d1f['oldName'],_0xbd3225=_0x501d1f['newName'];if(_0xb30e54==_0xbd3225)break;_0x3ebc74['batch']['addOperation'](_0x501d1f),_0x3fba7b['model']['applyOperation'](_0x501d1f);const _0x447ba3='$elementName',_0x504580=_0x501d1f['position'],_0x30b45c=_0x3fba7b['model']['createRange'](_0x504580,_0x3fba7b['model']['createPositionAt'](_0x504580['nodeAfter'],'end'));this['markAttributeChange'](_0x30b45c,_0x447ba3,_0xb30e54,_0xbd3225,{'groupId':_0x8ed52d()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x18d5a0=_0x501d1f['oldValue'],_0xe45125=_0x501d1f['newValue'];if(_0x18d5a0==_0xe45125)break;_0x3ebc74['batch']['addOperation'](_0x501d1f),_0x3fba7b['model']['applyOperation'](_0x501d1f);const _0x3fa466=_0x501d1f['key'];if(!this['_isRegisteredAttribute'](_0x3fa466))break;const _0x4d9070=Lt(_0x501d1f['range'],_0x3fba7b['model']);this['markAttributeChange'](_0x4d9070,_0x3fa466,_0x18d5a0,_0xe45125,{'groupId':_0x8ed52d()});break;}case'insert':{_0x3ebc74['batch']['addOperation'](_0x501d1f),_0x3fba7b['model']['applyOperation'](_0x501d1f);if(_0x9923c0[_0x1ad4ab+0x1]&&'move'==_0x9923c0[_0x1ad4ab+0x1]['type'])break;const _0x5895cc=_0x501d1f['position'],_0x2c2eb5=_0x501d1f['howMany'],_0x358899=Lt(_0x3fba7b['model']['createRange'](_0x5895cc,_0x5895cc['getShiftedBy'](_0x2c2eb5)),_0x3fba7b['model']);this['markInsertion'](_0x358899);break;}case'split':{_0x3ebc74['batch']['addOperation'](_0x501d1f),_0x3fba7b['model']['applyOperation'](_0x501d1f);const _0x47d297=_0x501d1f['splitPosition'],_0x1d64eb=_0x501d1f['moveTargetPosition'];this['markInsertion'](_0x3fba7b['model']['createRange'](_0x47d297,_0x1d64eb));break;}case'move':case'remove':_0x3ebc74['batch']['addOperation'](_0x501d1f),_0x3fba7b['model']['applyOperation'](_0x501d1f);}}for(const _0xa6dfce of _0x2bbc8d)_0xa6dfce['detach'](),this['markDeletion'](_0xa6dfce);});}['_setSuggestionRange'](_0x1505b2,_0x52e20e){const _0x4b95d8=_0x1505b2['getFirstMarker']();this['_model']['change'](_0x50a471=>{_0x50a471['updateMarker'](_0x4b95d8,{'range':_0x52e20e});});}['_addThreadToSuggestion'](_0x1fcb03){const _0x392093=_0x1fcb03['id'],_0x1b7baf=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x392093)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1b7baf,'threadId':_0x392093,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xd6b8d4=this['_commentsRepository']['getCommentThread'](_0x392093);_0xd6b8d4['unbind']('isRemovable'),_0xd6b8d4['isRemovable']=!0x1,_0x1fcb03['commentThread']=_0xd6b8d4;}['_checkSuggestionCorrectness'](_0xd7fb22,_0x485b76,_0x42359e,_0xb0dd27){if(_0xd7fb22['type']!=_0x485b76||_0xd7fb22['subType']!=_0x42359e||_0xd7fb22['creator']['id']!=_0xb0dd27)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x608ef8('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x41efdd,_0x4a5d01){const _0x44cc0a=_0x41efdd['getFirstRange']();if(_0x4a5d01['isEqual'](_0x44cc0a))_0x41efdd['removeMarkers']();else{if(_0x44cc0a['containsRange'](_0x4a5d01)){const _0x25cdbd=this['_model']['createPositionAt'](_0x4a5d01['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x41efdd,this['_model']['createRange'](_0x44cc0a['start'],_0x25cdbd));const _0x320922=_0x8ed52d(),_0x2724ba=_0x41efdd['creator']['id'],_0x42416c=_0x41efdd['type']+':'+_0x41efdd['subType'];this['_setSuggestionData']({'id':_0x320922,'type':_0x42416c,'createdAt':new Date(),'authorId':_0x2724ba,'data':_0x41efdd['data'],'attributes':_0x41efdd['attributes']});const _0xf203ac=this['_model']['createPositionAt'](_0x4a5d01['end']['parent'],'after'),_0x1efca3=this['_model']['createRange'](_0xf203ac,_0x44cc0a['end']);this['_addSuggestionMarker'](_0x42416c,_0x320922,_0x2724ba,_0x1efca3);}else{if(_0x44cc0a['containsPosition'](_0x4a5d01['start'])){const _0x25a5e9=this['_model']['createPositionAt'](_0x4a5d01['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x41efdd,this['_model']['createRange'](_0x44cc0a['start'],_0x25a5e9));}else{const _0x6f139f=this['_model']['createPositionAt'](_0x4a5d01['end']['parent'],'after');this['_setSuggestionRange'](_0x41efdd,this['_model']['createRange'](_0x6f139f,_0x44cc0a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4bb92d){for(const {suggestion:_0x5b8e4f,meta:_0x16acea}of this['_findSuggestions'](_0x4bb92d,'insertion')){if(!_0x16acea['isOwn'])continue;const _0x5dee1a=_0x5b8e4f['getRanges']();for(const _0xaa4b0b of _0x5dee1a)if(!_0x4bb92d['getDifference'](_0xaa4b0b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5e799f){return this['editor']['plugins']['get']('Users')['getUser'](_0x5e799f);}['_getExternalAuthor'](_0x3d3547){const _0x4de3c1=this['editor']['plugins']['get']('Users'),_0x21aad0=_0x487fef('external:'+_0x3d3547),_0x5e03df=_0x4de3c1['getUser'](_0x21aad0);return _0x5e03df||_0x4de3c1['addUser']({'id':_0x21aad0,'name':_0x3d3547});}['_createSuggestion'](_0x3b477d,_0x389dac,_0x535c66,_0x12ccc9,_0x21fec1,_0x3cbf4c){const _0x35b1b2=this['_getAuthorFromId'](_0x12ccc9);if(!_0x35b1b2)throw new _0x608ef8('track-changes-user-not-found',this,{'authorId':_0x12ccc9,'suggestionId':_0x535c66});const _0x340421=this['_suggestionFactory']['buildSuggestion'](_0x3b477d,_0x389dac,_0x535c66,_0x35b1b2,_0x21fec1,_0x3e213c=>{this['_updateSuggestionData'](_0x535c66,{'attributes':_0x3e213c});const _0x12f5a2=this['getSuggestion'](_0x535c66);this['_joinWithAdjacentSuggestions'](new Set([_0x12f5a2])),this['_refreshSuggestionsChain'](new Set([_0x12f5a2]));},_0x3cbf4c);return this['listenTo'](_0x340421,'accept',()=>{this['_updateSuggestionData'](_0x535c66,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x340421,'discard',()=>{this['_updateSuggestionData'](_0x535c66,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x535c66,_0x340421),this['_suggestionState']['set'](_0x340421,'notReady'),_0x340421;}['_splitMarkerName'](_0x101b27){return Gt(_0x101b27);}['_breakSuggestionMarker'](_0x3982b1,_0x256a56,_0x2dcce4){const _0x2b4db4=_0x3982b1['getFirstRange'](),_0x2adfdd=_0x2b4db4['start'],_0x5c4418=_0x2b4db4['end'];this['_setSuggestionRange'](_0x3982b1,this['_model']['createRange'](_0x2adfdd,_0x256a56));const _0x4890e4=_0x8ed52d(),_0x6d8255=_0x3982b1['creator']['id'],_0x4c5df8=_0x3982b1['type']+(_0x3982b1['subType']?':'+_0x3982b1['subType']:'');this['_setSuggestionData']({'id':_0x4890e4,'type':_0x4c5df8,'createdAt':new Date(),'authorId':_0x6d8255,'originalSuggestionId':_0x3982b1['_originalSuggestionId']||_0x3982b1['id'],'attributes':_0x3982b1['attributes'],'data':_0x3982b1['data']});const _0xc0a014=this['_getAttributeKey'](_0x3982b1);('formatBlock'==_0x3982b1['type']||_0xc0a014&&this['_isBlockAttribute'](_0xc0a014))&&(_0x2dcce4=this['_model']['createPositionBefore'](_0x2dcce4['parent'])),this['_addSuggestionMarker'](_0x4c5df8,_0x4890e4,_0x6d8255,this['_model']['createRange'](_0x2dcce4,_0x5c4418));}['_findSuggestions'](_0x1706a6,_0x55e3ea=null){const _0x112437=[],_0x1672c1=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1706a6)||(_0x1706a6=[_0x1706a6]);for(const _0x42039a of this['getSuggestions']()){if(!_0x42039a['isInContent'])continue;if(_0x55e3ea&&_0x42039a['type']!=_0x55e3ea)continue;let _0x365134=!0x1;for(const _0x163f66 of _0x42039a['getRanges']()){for(const _0x384993 of _0x1706a6){const _0x5aaf99=_0x384993['start']['isEqual'](_0x163f66['end'])||_0x384993['end']['isEqual'](_0x163f66['start']);if(_0x5aaf99||_0x384993['getIntersection'](_0x163f66)){const _0x189420=_0x384993['containsRange'](_0x163f66)&&zt(this['_model']['schema'],_0x163f66['start'],_0x384993),_0x407255=_0x163f66['containsRange'](_0x384993)&&zt(this['_model']['schema'],_0x384993['start'],_0x163f66);_0x112437['push']({'suggestion':_0x42039a,'meta':{'isOwn':_0x1672c1==_0x42039a['author'],'isNextTo':_0x5aaf99,'isInsideObject':_0x189420,'containsRangeInObject':_0x407255}}),_0x365134=!0x0;break;}}if(_0x365134)break;}}return _0x112437;}['_addSuggestionMarker'](_0x2f8eb1,_0x11b153,_0x5a2a5d,_0x533c32,_0x356b9b){this['_model']['change'](_0x23dda8=>{let _0x4df18c='suggestion:'+_0x2f8eb1+':'+_0x11b153+':'+_0x5a2a5d;_0x356b9b&&(_0x4df18c=_0x4df18c+':'+_0x356b9b),_0x23dda8['addMarker'](_0x4df18c,{'range':_0x533c32,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x355276){const _0x3d35a8=_0x355276['previous'],_0x580dff=_0x355276['next'];_0x355276['previous']=null,_0x355276['next']=null,null!=_0x3d35a8&&_0x3d35a8['next']==_0x355276&&(_0x3d35a8['next']=_0x580dff),null!=_0x580dff&&_0x580dff['previous']==_0x355276&&(_0x580dff['previous']=_0x3d35a8),'ready'==this['_suggestionState']['get'](_0x355276)&&(this['_suggestionState']['set'](_0x355276,'removed'),this['fire']('suggestionUnloaded',_0x355276,_0x3d35a8,_0x580dff));}['_setSuggestionData'](_0x14ede9){const _0xcf915d=_0x14ede9['id'],_0x1eeccf=this['addSuggestionData'](_0x14ede9);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x28eac3=this['editor']['plugins']['get']('PendingActions'),_0x189f92=_0x1eeccf['hasComments'],_0x4946a1=_0x1eeccf['subType']?_0x1eeccf['type']+':'+_0x1eeccf['subType']:_0x1eeccf['type'],_0x591e43=this['editor']['locale'],_0x129b74=_0x28eac3['add'](o(_0x591e43,'PENDING_ACTION_SUGGESTION')),_0x2c1e44={'id':_0xcf915d,'type':_0x4946a1,'hasComments':_0x189f92,'data':_0x14ede9['data']||null,'originalSuggestionId':_0x14ede9['originalSuggestionId']||null,'attributes':_0x1eeccf['attributes']};this['_adapter']['addSuggestion'](_0x2c1e44)['then'](_0x1997ce=>{_0x1eeccf['_saved']=!0x0,_0x28eac3['remove'](_0x129b74),_0x1997ce&&_0x1997ce['createdAt']&&(this['_suggestions']['get'](_0xcf915d)['createdAt']=_0x1997ce['createdAt']);})['catch'](_0x4f0a8e=>{throw _0x1f8465('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1eeccf['discard']();}),_0x1eeccf['stopListening'](),this['_suggestions']['delete'](_0x1eeccf['id']),this['_suggestionState']['delete'](_0x1eeccf),_0x4f0a8e;});}return _0x1eeccf;}['_isBlockAttribute'](_0x4c5215){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x4c5215);}['_isInlineAttribute'](_0x1d7a4a){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x1d7a4a);}['_updateSuggestionData'](_0x4b76d8,_0x3c5878){const _0x48d828=this['editor']['plugins']['get']('PendingActions'),_0x69245e=this['getSuggestion'](_0x4b76d8);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x69245e['_saved']){const _0x20779d=_0x48d828['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4b76d8,_0x3c5878)['then'](()=>{_0x48d828['remove'](_0x20779d);});}else _0x69245e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4b76d8,_0x3c5878);});}}['_getSuggestionData'](_0x4681cf){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x608ef8('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4681cf);}['_handleNewSuggestionMarker'](_0x3e39ef){const {id:_0x3630e2,type:_0x4a1371,subType:_0x37a724,authorId:_0x561379}=this['_splitMarkerName'](_0x3e39ef),_0x2145d0=this['_suggestions']['get'](_0x3630e2)||this['_createSuggestion'](_0x4a1371,_0x37a724,_0x3630e2,_0x561379,{});switch(this['_checkSuggestionCorrectness'](_0x2145d0,_0x4a1371,_0x37a724,_0x561379),this['_suggestionState']['get'](_0x2145d0)){case'notReady':this['_getSuggestionData'](_0x3630e2)['then'](_0x3ba953=>{let _0x40ec21=Promise['resolve']();_0x3ba953['hasComments']&&(_0x40ec21=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3630e2})),_0x40ec21['then'](()=>{this['addSuggestionData'](_0x3ba953)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2145d0,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3630e2,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2145d0,'ready'),this['fire']('suggestionLoaded',_0x2145d0);break;case'ready':this['fire']('suggestionChanged',_0x2145d0);}return _0x2145d0['addMarkerName'](_0x3e39ef),_0x2145d0;}['_refreshSuggestionsChain'](_0x1781b1){const _0x15cbd9=Array['from'](_0x1781b1),_0x58c4ff=_0x15cbd9['filter'](_0x9f5557=>'attribute'==_0x9f5557['type']);this['_refreshAttributeSuggestionsChain'](_0x58c4ff);const _0x5683d6=_0x15cbd9['filter'](_0x3f95ae=>!_0x3f95ae['isMultiRange']&&'attribute'!=_0x3f95ae['type']),_0x436eaf=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5cc557=>!_0x5cc557['isMultiRange']&&'attribute'!=_0x5cc557['type']),_0x3cf448=_0x436eaf['filter'](_0x3f9bf8=>!_0x1781b1['has'](_0x3f9bf8)),_0x3a8b30=new Map(_0x436eaf['map'](_0x2232a4=>[_0x2232a4,this['_suggestionFactory']['getSuggestionCallback'](_0x2232a4['type'],_0x2232a4['subType'],'chain')])),_0x1b24be=new Map(_0x436eaf['map'](_0x3cc916=>[_0x3cc916,_0x3cc916['getFirstRange']()])),_0x1fdc7a=new Set(),_0x1c6cf2=new Set();for(let _0x52b46b=0x0;_0x52b46b<_0x5683d6['length'];_0x52b46b++)_0x3847da(_0x5683d6[_0x52b46b],_0x5683d6,_0x52b46b+0x1);for(let _0xeec98f=0x0;_0xeec98f<_0x5683d6['length'];_0xeec98f++)_0x3847da(_0x5683d6[_0xeec98f],_0x3cf448,0x0);const _0x24a41d=new Set();for(let _0x2b5287=0x0;_0x2b5287<_0x5683d6['length'];_0x2b5287++){const _0x48f16d=_0x5683d6[_0x2b5287];!_0x1c6cf2['has'](_0x48f16d)&&_0x48f16d['previous']&&(_0x24a41d['add'](_0x48f16d['previous']),_0x48f16d['previous']['next']===_0x48f16d&&(_0x48f16d['previous']['next']=null),_0x48f16d['previous']=null),!_0x1fdc7a['has'](_0x48f16d)&&_0x48f16d['next']&&(_0x24a41d['add'](_0x48f16d['next']),_0x48f16d['next']['previous']===_0x48f16d&&(_0x48f16d['next']['previous']=null),_0x48f16d['next']=null);}function _0x3847da(_0x2d1bc3,_0x46b4b7,_0x15ba23){for(let _0x1fef27=_0x15ba23;_0x1fef27<_0x46b4b7['length'];_0x1fef27++){const _0x1a2417=_0x5768b0(_0x2d1bc3,_0x46b4b7[_0x1fef27]);_0x1a2417&&(_0x1a2417[0x0]['next']=_0x1a2417[0x1],_0x1a2417[0x1]['previous']=_0x1a2417[0x0],_0x1fdc7a['add'](_0x1a2417[0x0]),_0x1c6cf2['add'](_0x1a2417[0x1]));}}function _0x5768b0(_0x1ea8d0,_0x214f77){if(_0x1ea8d0['author']['id']!==_0x214f77['author']['id'])return null;const _0x157e31=_0x3a8b30['get'](_0x1ea8d0)(_0x1ea8d0,_0x214f77,_0x1b24be['get'](_0x1ea8d0),_0x1b24be['get'](_0x214f77));if(!_0x157e31)return null;return _0x3a8b30['get'](_0x214f77)(_0x1ea8d0,_0x214f77,_0x1b24be['get'](_0x1ea8d0),_0x1b24be['get'](_0x214f77))?_0x157e31[0x1]['commentThread']&&_0x157e31[0x1]['commentThread']['length']?null:_0x157e31:null;}_0x24a41d['size']&&this['_refreshSuggestionsChain'](_0x24a41d);}['_refreshAttributeSuggestionsChain'](_0x4be7ec){if(0x0==_0x4be7ec['length'])return;const _0x13325e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40bdf6=>'attribute'==_0x40bdf6['type']&&_0x40bdf6['_isDataLoaded']),_0x519898=[],_0x4d97f0=new Map();for(const _0x4c0a5d of _0x13325e){const _0x4be58c=_0x487fef(_0x4c0a5d['attributes']);_0x4d97f0['has'](_0x4be58c)||(_0x4d97f0['set'](_0x4be58c,_0x519898['length']),_0x519898['push']([]));const _0x505686=_0x4d97f0['get'](_0x4be58c);_0x519898[_0x505686]['push'](_0x4c0a5d);}!(function(){_0x519898['sort']((_0x41e093,_0x4457f8)=>{const _0x4898eb=_0x41e093[0x0]['createdAt'],_0x528eb4=_0x4457f8[0x0]['createdAt'];return _0x4898eb==_0x528eb4?_0x41e093[0x0]['attributes']['groupId']<_0x4457f8[0x0]['attributes']['groupId']?-0x1:0x1:_0x4898eb<_0x528eb4?-0x1:0x1;});for(const _0x379710 of _0x519898)_0x379710['sort']((_0x2e3b61,_0x24a6f9)=>_0x2e3b61['id']<_0x24a6f9['id']?-0x1:0x1);}());for(let _0x3e946a=0x0;_0x3e946a<_0x519898['length'];_0x3e946a++){if(0x0==_0x519898[_0x3e946a]['length'])continue;const _0x37a9b3=[];for(let _0x25dbe8=_0x3e946a+0x1;_0x25dbe8<_0x519898['length'];_0x25dbe8++)0x0!=_0x519898[_0x25dbe8]['length']&&_0x5ceefc(_0x519898[_0x3e946a],_0x519898[_0x25dbe8])&&_0x37a9b3['push'](_0x25dbe8);for(const _0x234440 of _0x37a9b3)_0x519898[_0x3e946a]=_0x519898[_0x3e946a]['concat'](_0x519898[_0x234440]),_0x519898[_0x234440]=[];}for(const _0x536e3b of _0x519898)for(let _0x4a1083=0x0;_0x4a1083<_0x536e3b['length'];_0x4a1083++){const _0x373fd8=_0x536e3b[_0x4a1083+0x1]||null;_0x536e3b[_0x4a1083]['next']!==_0x373fd8&&(_0x536e3b[_0x4a1083]['next']=_0x373fd8);}for(const _0x44947b of _0x519898)for(let _0x182d46=0x0;_0x182d46<_0x44947b['length'];_0x182d46++){const _0x3c6f6c=_0x44947b[_0x182d46-0x1]||null;_0x44947b[_0x182d46]['previous']!==_0x3c6f6c&&(_0x44947b[_0x182d46]['previous']=_0x3c6f6c);}function _0x5ceefc(_0x311b3e,_0x1d2fd1){if(_0x311b3e[0x0]['attributes']['groupId']!==_0x1d2fd1[0x0]['attributes']['groupId']&&_0x311b3e[0x0]['author']!==_0x1d2fd1[0x0]['author'])return!0x1;if(!function(_0x3346b3,_0x3e004f){if(!_0x3346b3['hasComments']&&!_0x3e004f['hasComments'])return!0x0;if(_0x3346b3['hasComments']&&_0x3e004f['hasComments'])return!0x1;if(_0x3346b3['hasComments']&&_0x3e004f['createdAt']<_0x3346b3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3e004f['hasComments']&&_0x3346b3['createdAt']<_0x3e004f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x311b3e[0x0],_0x1d2fd1[0x0]))return!0x1;const _0x421a9d=Pt(_0x311b3e[0x0]['attributes'],['groupId','trackingSessionId']),_0x52d5e3=Pt(_0x1d2fd1[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x137979(_0x421a9d,_0x52d5e3))return!0x1;if(_0x311b3e[0x0]['attributes']['groupId']==_0x1d2fd1[0x0]['attributes']['groupId'])return!0x0;if(_0x311b3e[0x0]['attributes']['trackingSessionId']!==_0x1d2fd1[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x311b3e['every'](_0x42bcb9=>_0x1d2fd1['some'](_0x49892e=>_0x42bcb9['getFirstRange']()['isEqual'](_0x49892e['getFirstRange']())))&&_0x1d2fd1['every'](_0x11f7f2=>_0x311b3e['some'](_0x3fe813=>_0x11f7f2['getFirstRange']()['isEqual'](_0x3fe813['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xa89b6e){const _0x3ec445=Array['from'](_0xa89b6e),_0x634818=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1afafe=_0x634818['filter'](_0x4c6117=>!_0xa89b6e['has'](_0x4c6117)),_0x57bcd=new Map(_0x3ec445['map'](_0x2c7a10=>[_0x2c7a10,this['_suggestionFactory']['getSuggestionCallback'](_0x2c7a10['type'],_0x2c7a10['subType'],'join')])),_0x32753b=new Map(_0x634818['map'](_0x5df1e8=>[_0x5df1e8,_0x5df1e8['getRanges']()]));for(let _0x898a4c=0x0;_0x898a4c<_0x3ec445['length'];_0x898a4c++){if(_0x3ca65a(this,_0x3ec445[_0x898a4c],_0x3ec445,_0x898a4c+0x1))return!0x0;}for(let _0x2aac27=0x0;_0x2aac27<_0x3ec445['length'];_0x2aac27++){if(_0x3ca65a(this,_0x3ec445[_0x2aac27],_0x1afafe,0x0))return!0x0;}return!0x1;function _0x3ca65a(_0x3c2977,_0x1c8dd4,_0x251118,_0x1d7262){for(let _0x265a29=_0x1d7262;_0x265a29<_0x251118['length'];_0x265a29++){const _0x3c460f=_0x251118[_0x265a29];if(_0x3c460f['type']!==_0x1c8dd4['type']||_0x3c460f['author']['id']!==_0x1c8dd4['author']['id']||_0x3c460f['subType']!==_0x1c8dd4['subType'])continue;if(!en(_0x1c8dd4,_0x3c460f))continue;if('attribute'==_0x1c8dd4['type']&&_0x1c8dd4['data']['oldValue']!=_0x3c460f['data']['oldValue'])continue;if('attribute'==_0x1c8dd4['type']&&_0x3c2977['_isBlockAttribute'](_0x1c8dd4['data']['key']))continue;if('formatBlock'==_0x1c8dd4['type']){const _0x419d61=_0x3c2977['editor']['model'],_0x2d3149=_0x1c8dd4['getContainedElement']();if(_0x2d3149&&(_0x419d61['schema']['isObject'](_0x2d3149)||_0x419d61['schema']['isLimit'](_0x2d3149)))continue;}const _0x1184d9=_0x57bcd['get'](_0x1c8dd4),_0x3af258=_0x32753b['get'](_0x1c8dd4),_0x5669aa=_0x32753b['get'](_0x3c460f),_0x8cd1cf=_0x1c8dd4['commentThread']&&_0x1c8dd4['commentThread']['length'],_0x19ee04=_0x3c460f['commentThread']&&_0x3c460f['commentThread']['length'];if(!_0x8cd1cf&&_0x1184d9(_0x5669aa,_0x3af258))return _0x3c2977['_joinSuggestions'](_0x3c460f,_0x1c8dd4),_0x32753b['delete'](_0x1c8dd4),!0x0;if(!_0x19ee04&&_0x1184d9(_0x3af258,_0x5669aa))return _0x3c2977['_joinSuggestions'](_0x1c8dd4,_0x3c460f),_0x32753b['delete'](_0x3c460f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5c3a49,_0x5d886c){if(_0x5c3a49['isMultiRange']){for(const _0x120665 of _0x5d886c['getRanges']())_0x5c3a49['addRange'](_0x120665);}else{const _0x42480d=_0x5d886c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5c3a49,this['_model']['createRange'](_0x5c3a49['getFirstRange']()['start'],_0x42480d));}_0x5d886c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x43a3c6,_0x45c688,_0x2ddb9c){const _0xa83333=_0x43a3c6['startsWith']('format')||_0x43a3c6['startsWith']('attribute')?'FORMATTING':_0x43a3c6['toUpperCase']();return o(this['editor']['locale'],_0x45c688+'_'+_0xa83333+'_SUGGESTION_ANNOUNCEMENT',_0x2ddb9c);}['_initAriaMarkerChangeAnnouncements'](){const _0x33d65e=this['editor'];if(!_0x33d65e['ui'])return;const {ariaLiveAnnouncer:_0x3ea4e5}=_0x33d65e['ui'];_0x128c29(this['_model'],({left:_0x3ec882,entered:_0x527582})=>{for(const _0xbd14f7 of _0x3ec882){const {group:_0x44f623,type:_0x346963}=this['_splitMarkerName'](_0xbd14f7['name']);if('suggestion'===_0x44f623){_0x3ea4e5['announce'](this['_getMarkerAnnouncementText'](_0x346963,'LEAVE'));break;}}for(const _0x40917c of _0x527582){const {group:_0x288e4a,type:_0x132fb0}=this['_splitMarkerName'](_0x40917c['name']);if('suggestion'===_0x288e4a){_0x3ea4e5['announce'](this['_getMarkerAnnouncementText'](_0x132fb0,'ENTER',_0x41a2e7(_0x56e01e)));break;}}});}['_processAttributeChanges'](_0x2f68a8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2759a7=this['editor'],_0x2fcc1b=_0x2759a7['model']['document']['differ']['getChanges']();if(0x0==_0x2fcc1b['length'])return!0x1;const _0x1a9e66=[],_0x1c15ae=_0x2fcc1b['filter'](_0x1b0fc5=>'attribute'==_0x1b0fc5['type']),_0x58674a=_0x2fcc1b['filter'](_0x2cf149=>'insert'==_0x2cf149['type']&&'$text'!=_0x2cf149['name']),_0x5cb12a=_0x2fcc1b['filter'](_0x39950b=>'remove'==_0x39950b['type']&&'$text'!=_0x39950b['name']);for(const _0x462506 of _0x1c15ae)_0x1a9e66['push']({'key':_0x462506['attributeKey'],'newValue':_0x462506['attributeNewValue'],'oldValue':_0x462506['attributeOldValue'],'range':Zt(_0x462506['range'],_0x2759a7['model'])});for(const _0x2d0659 of _0x58674a){const _0x479f7b=_0x5cb12a['find'](_0x12a4e7=>_0x12a4e7['position']['isEqual'](_0x2d0659['position']));_0x479f7b&&_0x1a9e66['push']({'key':m,'newValue':_0x2d0659['name'],'oldValue':_0x479f7b['name'],'range':_0x2759a7['model']['createRangeOn'](_0x2d0659['position']['nodeAfter'])});}return 0x0!=_0x1a9e66['length']&&this['_reduceExistingSuggestions'](_0x2f68a8,_0x1a9e66);}['_processAttributeSuggestions'](_0x2f22f0){let _0x352d28=!0x1;const _0x523e36=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3f4b81=>_0x3f4b81['data']['newRange']&&_0x3f4b81['name']['startsWith']('suggestion:attribute:'));for(const _0x178b26 of _0x523e36){const {subType:_0x17489a,id:_0x3232ad}=this['_splitMarkerName'](_0x178b26['name']),_0x56a9ee=_0x17489a['split']('|')[0x0];for(const _0x3bef33 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3bef33['id']!=_0x3232ad&&'attribute'==_0x3bef33['type']&&_0x3bef33['data']&&_0x3bef33['data']['key']==_0x56a9ee&&_0x3bef33['getFirstRange']()['isIntersecting'](_0x178b26['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3bef33,_0x178b26['data']['newRange'],_0x2f22f0),_0x352d28=!0x0);}return _0x352d28;}['recordAttributeChanges'](_0x712cf){this['_recordAttributeSuggestions']=!0x0,_0x712cf();}['_isRegisteredAttribute'](_0x1f6346){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x1f6346);}['_reduceExistingSuggestions'](_0x2f5859,_0x149ad6){if(0x0==_0x149ad6['length'])return!0x1;let _0x2bc72b=!0x1;for(const _0x4c8325 of _0x149ad6){const _0x41b40d=this['_findSuggestions'](_0x4c8325['range'],'attribute')['filter'](_0x4fb043=>!_0x4fb043['meta']['isNextTo'])['map'](_0x1524a3=>_0x1524a3['suggestion']),_0x5f0fd9=_0x487fef({'newValue':_0x4c8325['newValue']});_0x41b40d['filter'](_0xcd004d=>{const [_0x15686b,_0x36dc61]=_0xcd004d['subType']['split']('|');return _0x15686b==_0x4c8325['key']&&_0x36dc61!=_0x5f0fd9;})['forEach'](_0x2eb296=>{this['_reduceSuggestionAttributeRange'](_0x2eb296,_0x4c8325['range'],_0x2f5859),_0x2bc72b=!0x0;});}return _0x2bc72b;}['_reduceSuggestionAttributeRange'](_0x3b28af,_0x164421,_0x2cd97a){const _0x2d2515=_0x3b28af['getFirstRange']()['getDifference'](_0x164421);0x0!==_0x2d2515['length']?0x1!==_0x2d2515['length']?this['_breakSuggestionMarker'](_0x3b28af,_0x164421['start'],_0x164421['end']):this['_setSuggestionRange'](_0x3b28af,_0x2d2515[0x0]):_0x2cd97a['removeMarker'](_0x3b28af['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x209702){this['_editor']=_0x209702,this['_model']=_0x209702['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x438b82,_0x359e0f,_0x437b0d,_0x200a0a,_0x3776d2,_0x513ce6,_0x4d4bdc){return new x(this['_model'],{'type':_0x438b82,'subType':_0x359e0f,'id':_0x437b0d,'originalSuggestionId':_0x4d4bdc,'author':_0x200a0a,'creator':_0x200a0a,'attributes':_0x3776d2,'onAttributesChange':_0x513ce6,'onAccept':(..._0x43c0dd)=>this['getSuggestionCallback'](_0x438b82,_0x359e0f,'accept')(..._0x43c0dd),'onDiscard':(..._0x3f5283)=>this['getSuggestionCallback'](_0x438b82,_0x359e0f,'discard')(..._0x3f5283)});}['registerCustomCallback'](_0x3c01ba,_0x28c6e8,_0x17b948,_0x4714bf){const _0x45c67b=_0x3c01ba+':'+_0x28c6e8+':'+_0x17b948;this['_customCallbacks']['set'](_0x45c67b,_0x4714bf);}['getSuggestionCallback'](_0x3130e9,_0x5570af,_0x5848ff){const _0x5a9170=_0x3130e9+':'+_0x5570af+':'+_0x5848ff;return this['_customCallbacks']['get'](_0x5a9170)||this['_defaultCallbacks']['get'](_0x3130e9+':'+_0x5848ff);}['_registerDefaultCallbacks'](){const _0x5bb182=()=>!0x1,_0x40590a=_0x9e90d8=>{_0x9e90d8['sort']((_0x155b00,_0x3a7dee)=>_0x155b00['start']['isBefore'](_0x3a7dee['start'])?0x1:-0x1),this['_model']['change'](_0x4413ca=>{for(const _0x2ff423 of _0x9e90d8){let _0x21b8f1;_0x21b8f1=_0x2ff423['end']['isAtEnd']&&_0x2ff423['end']['parent']==_0x2ff423['start']['nodeAfter']?_0x4413ca['createSelection'](_0x2ff423['start']['nodeAfter'],'on'):_0x4413ca['createSelection'](_0x2ff423),this['_model']['deleteContent'](_0x21b8f1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x568d0c=(_0x2147ff,_0x31f66a)=>{_0x31f66a&&this['_model']['change'](_0x390bd1=>{const {commandName:_0x233e83,commandParams:_0x4f745e=[]}=_0x31f66a,_0x39ed8b=_0x2147ff['map'](_0x520720=>(Kt(_0x520720)&&(_0x520720=this['_model']['createRange'](_0x520720['end'])),_0x520720))['filter'](_0x769bb=>'$graveyard'!==_0x769bb['root']['rootName']);if(_0x39ed8b['length']<0x1)return;const _0x514405=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x160812=>_0xf26ff5['fromRange'](_0x160812));_0x390bd1['setSelection'](_0x39ed8b);for(const _0x4bae99 of this['_editor']['commands']['commands']())_0x4bae99['refresh']();_0x4f745e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x233e83,..._0x4f745e);const _0x326b89=_0x514405['filter'](_0xc19af3=>'$graveyard'!=_0xc19af3['root']['rootName']);_0x326b89['length']>0x0&&_0x390bd1['setSelection'](_0x326b89);for(const _0x4b505a of _0x514405)_0x4b505a['detach']();});},_0x19ee26=(_0x55b97c,_0x47fc22)=>0x1==_0x55b97c['length']&&0x1==_0x47fc22['length']&&_0x55b97c[0x0]['end']['isEqual'](_0x47fc22[0x0]['start']),_0x2c0430=(_0x128a05,_0x32a6dc,_0x1a064c,_0x984715)=>nn(_0x128a05,_0x32a6dc,_0x1a064c,_0x984715)?[_0x128a05,_0x32a6dc]:nn(_0x32a6dc,_0x128a05,_0x984715,_0x1a064c)?[_0x32a6dc,_0x128a05]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5bb182),this['_defaultCallbacks']['set']('insertion:discard',_0x40590a),this['_defaultCallbacks']['set']('insertion:join',_0x19ee26),this['_defaultCallbacks']['set']('insertion:chain',_0x2c0430),this['_defaultCallbacks']['set']('deletion:accept',_0x40590a),this['_defaultCallbacks']['set']('deletion:discard',_0x5bb182),this['_defaultCallbacks']['set']('deletion:join',_0x19ee26),this['_defaultCallbacks']['set']('deletion:chain',_0x2c0430),this['_defaultCallbacks']['set']('formatInline:accept',_0x568d0c),this['_defaultCallbacks']['set']('formatInline:discard',_0x5bb182),this['_defaultCallbacks']['set']('formatInline:join',_0x19ee26),this['_defaultCallbacks']['set']('formatInline:chain',_0x5bb182),this['_defaultCallbacks']['set']('formatBlock:accept',_0x568d0c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5bb182),this['_defaultCallbacks']['set']('formatBlock:join',_0x19ee26),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5bb182),this['_defaultCallbacks']['set']('attribute:accept',_0x5bb182),this['_defaultCallbacks']['set']('attribute:discard',(_0x76ddde,_0x3b79de)=>{if(!_0x3b79de)return;const _0x4c5c21=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x44384e=>{if(_0x3b79de['key']==m)for(const _0x324e87 of _0x76ddde){const _0x158dd4=_0x324e87['start']['nodeAfter'],_0x52399c=_0x3b79de['oldValue'];_0x44384e['rename'](_0x158dd4,_0x52399c);}else{if(_0x4c5c21['_isBlockAttribute'](_0x3b79de['key'])){for(const _0x2f5fdc of _0x76ddde)void 0x0!==_0x3b79de['oldValue']?_0x44384e['setAttribute'](_0x3b79de['key'],_0x3b79de['oldValue'],_0x2f5fdc['start']['nodeAfter']):_0x44384e['removeAttribute'](_0x3b79de['key'],_0x2f5fdc['start']['nodeAfter']);}else{for(const _0x4a32c0 of _0x76ddde)_0x3b79de['oldValue']?_0x44384e['setAttribute'](_0x3b79de['key'],_0x3b79de['oldValue'],_0x4a32c0):_0x44384e['removeAttribute'](_0x3b79de['key'],_0x4a32c0);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x19ee26);}}function zt(_0xf28a23,_0x20a06e,_0x501f5c){for(const _0xe86bc9 of _0x20a06e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xe86bc9['root']==_0xe86bc9)return!0x1;if(!_0x501f5c['containsItem'](_0xe86bc9))return!0x1;if(_0xf28a23['isObject'](_0xe86bc9)||_0xf28a23['isLimit'](_0xe86bc9))return!0x0;}return!0x1;}function Kt(_0x295a16){return _0x295a16['end']['parent']==_0x295a16['start']['nodeAfter']&&_0x295a16['end']['isAtStart'];}function Wt(_0xeefb39,_0x1f80a1,_0x5fd281,_0x5ada4d){const _0x568090=_0xf5c33e=>!_0xf5c33e['item']['is']('$textProxy')&&!_0x5ada4d['isObject'](_0xf5c33e['item']),_0x28c434=_0xeefb39['start']['getLastMatchingPosition'](_0x568090),_0xdd5fbf=_0xeefb39['end']['getLastMatchingPosition'](_0x568090,{'direction':'backward'});return(!_0xeefb39['start']['isEqual'](_0x28c434)||!_0xeefb39['end']['isEqual'](_0xdd5fbf))&&(_0x28c434['isBefore'](_0xdd5fbf)?_0x5fd281['updateMarker'](_0x1f80a1,{'range':_0x5fd281['createRange'](_0x28c434,_0xdd5fbf)}):_0x5fd281['removeMarker'](_0x1f80a1),!0x0);}function Ht(_0x19b396){return _0x487fef(_0x19b396);}function Qt(_0x310290){const _0x4d1218=_0x310290['start']['nodeAfter'];return _0x4d1218&&_0x4d1218['is']('element');}function Xt(_0x5b923b){return Kt(_0x5b923b)||function(_0x42e5ca){return _0x42e5ca['start']['parent']==_0x42e5ca['end']['nodeBefore']&&_0x42e5ca['start']['isAtEnd'];}(_0x5b923b);}function Yt(_0x34ba30,_0xae5f96){try{const _0x23cc36=_0x34ba30['getRange']();for(const _0x1bc0f5 of _0xae5f96)if(_0x34ba30!==_0x1bc0f5&&_0x23cc36&&_0x23cc36['isIntersecting'](_0x1bc0f5['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x39651f,_0x5fe13b){return null==_0x39651f['end']['nodeBefore']&&_0x39651f['end']['parent']==_0x39651f['start']['nodeAfter']?tn(_0x39651f['start']['nodeAfter'],_0x5fe13b):_0x39651f;}function tn(_0x4af800,_0x16d8ef){const _0x3fdc16=_0x16d8ef['schema']['isObject'](_0x4af800)||_0x16d8ef['schema']['isSelectable'](_0x4af800);return _0x16d8ef['createRange'](_0x16d8ef['createPositionAt'](_0x4af800,'before'),_0x3fdc16?_0x16d8ef['createPositionAfter'](_0x4af800):_0x16d8ef['createPositionAt'](_0x4af800,'end'));}function nn(_0x2efedb,_0x5b36b9,_0x2c0e9b,_0x41cf3a){return!!en(_0x2efedb,_0x5b36b9)&&_0x2c0e9b['end']['isEqual'](_0x41cf3a['start']);}function en(_0x16265b,_0x442b98){if(!_0x16265b['_isDataLoaded']||!_0x442b98['_isDataLoaded'])return!0x1;const _0x4fe879=new Set(Object['keys'](_0x16265b['attributes'])),_0x18817e=new Set(Object['keys'](_0x442b98['attributes']));if(_0x4fe879['delete']('groupId'),_0x18817e['delete']('groupId'),0x0==_0x4fe879['size']&&0x0==_0x18817e['size'])return!0x0;if(_0x4fe879['size']!=_0x18817e['size'])return!0x1;const _0xb69faa={..._0x16265b['attributes']},_0x248150={..._0x442b98['attributes']};return delete _0xb69faa['groupId'],delete _0x248150['groupId'],JSON['stringify'](_0xb69faa)==JSON['stringify'](_0x248150);}function sn(_0x44891c,_0x5f3c05){const _0x5b3266=on(_0x44891c['attributes']),_0x5a4a45=on(_0x5f3c05);if(!_0x44891c['_isDataLoaded'])return!0x1;for(const _0x39737b of Object['keys'](_0x5a4a45))if(!_0x137979(_0x5b3266[_0x39737b],_0x5a4a45[_0x39737b]))return!0x1;return!0x0;}function on(_0x28cfa8){const _0x9b4b8f=Object['assign']({},_0x28cfa8);return delete _0x9b4b8f['skipNestingCheck'],delete _0x9b4b8f['tablePasteChainId'],_0x9b4b8f;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x3a7d6d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2a2fe9,_0x4ac55f,_0x67bf84,_0x2162f3){super(),this['model']=_0x4ac55f,this['view']=_0x67bf84,this['commentThreadController']=_0x2162f3,this['_editor']=_0x2a2fe9,this['_acceptCommand']=_0x2a2fe9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2a2fe9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x640cae,_0x22b4af)=>_0x640cae||_0x22b4af),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1a7d81=>_0x1a7d81&&this['_editor']['model']['canEditAt'](_0x4ac55f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3e224e=>_0x3e224e&&this['_editor']['model']['canEditAt'](_0x4ac55f['getRanges']())),this['_pendingAction']=null,_0x67bf84['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x67bf84,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x67bf84,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x67bf84,'change:isDirty',()=>{_0x67bf84['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 _0xa126fc=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xa126fc);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x715ce1{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x10291d,_0x5706d2,_0x549cc7,_0x56284b){super(_0x10291d),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x13f691(_0x10291d,o(_0x10291d,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5706d2['authoredAt']),this['bind']('authoredAt')['to'](_0x5706d2),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',_0x5706d2,'authoredAt',this,'descriptionParts',(_0x29572a,_0x3a079f,_0x144ceb)=>{const _0x5d8851=_0x144ceb['map'](_0x2642c7=>ls(_0x2642c7['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x29572a-0x1,_0x5706d2['author']['name'],_0x3a079f?_0x56284b['formatDateTime'](_0x3a079f):'',new DOMParser()['parseFromString'](_0x5d8851,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2b5487(),this['focusTracker']=new _0x5ab23f(),this['keystrokes']=new _0x3073dd(),this['focusCycler']=new _0x25aed1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3a0c53=>_0x3a0c53['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5706d2,this['_localUser']=_0x549cc7,this['_config']=_0x56284b,_0x56284b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4d1541(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1438ac}=this['_config'];this['commentsListView']=new _0x1438ac(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',_0x4e39ed=>_0x4e39ed+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x486d4d,_0x51e5ec)=>_0x486d4d||!!_0x51e5ec);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3ada6c}=this['_config'],_0x181300=new _0x3ada6c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xd2ba84=_0x181300['commentInputView'];return _0x181300['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xd2ba84,'value',(_0x2e97e8,_0x107ad3,_0x1af0b6)=>!!_0x1af0b6||_0x2e97e8&&!_0x107ad3),_0xd2ba84['on']('submit',(_0x3c3146,_0x2fc030)=>{this['fire']('addComment',_0x2fc030),_0xd2ba84['editor']['setData']('');}),_0xd2ba84['on']('cancel',()=>this['focus']()),_0xd2ba84['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x181300;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x479e16,_0x1df65a,_0x57252f,_0x37eafa){super(_0x479e16,_0x1df65a,_0x57252f,_0x37eafa),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4996d9=>_0x4996d9&&_0x4996d9[0x0]?_0x4996d9[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x398b59,_0x1b0ba4)=>{let _0x19f75f='';for(const _0x4f6768 of _0x398b59)_0x19f75f+='<p>'+ls(_0x4f6768['content'],_0x4f6768['color'])+'</p>';return _0x1b0ba4?_0x19f75f:_0x1a811f(_0x19f75f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x37eafa['SuggestionView'](_0x479e16,_0x1df65a,{'formatDateTime':_0x37eafa['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 _0x4d9748=this['bindTemplate'],_0x3bbd18=[this['suggestionView']];return this['commentsListView']&&_0x3bbd18['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3bbd18['push'](this['commentThreadInputView']),_0x3bbd18['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4d9748['if']('isActive','ck-suggestion-wrapper--active'),_0x4d9748['to']('type',_0x537de3=>'ck-suggestion-'+_0x537de3),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':_0x4d9748['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3bbd18};}['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 _0x715ce1{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4bb7b0,_0x14056a,_0x77b738){super(_0x4bb7b0),this['_model']=_0x14056a,this['_config']=_0x77b738,this['set']('description',''),this['bind']('authoredAt')['to'](_0x14056a),this['acceptButton']=this['_createButton'](o(_0x4bb7b0,'Accept\x20suggestion'),_0xf98b60,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4bb7b0,'Discard\x20suggestion'),_0xa215b2,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3581d8(_0x4bb7b0,_0x14056a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2b5487([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5ab23f(),this['keystrokes']=new _0x3073dd(),this['focusCycler']=new _0x25aed1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2918e6=>_0x2918e6['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x250617=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x250617['innerHTML']=this['description'],this['on']('change:description',(_0x47f944,_0x177daa,_0x56c29a)=>{_0x250617['innerHTML']=_0x56c29a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3f481a=this['bindTemplate'],_0x5ec4a8=[{'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':_0x3f481a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3f481a['to']('authoredAt',_0x30fc10=>this['_config']['formatDateTime'](_0x30fc10))}]}]},{'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']&&_0x5ec4a8['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':_0x5ec4a8}]};}['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'](_0x4fbd6c,_0x5d6db0,_0x433cb9,_0x34f03f,_0x43f8fa){const _0x16fb69=new _0xd07ec2(this['locale']);return _0x16fb69['set']({'label':_0x4fbd6c,'icon':_0x5d6db0,'tooltip':!0x0,'tooltipPosition':_0x43f8fa}),_0x16fb69['extendTemplate']({'attributes':{'class':_0x433cb9}}),_0x16fb69['on']('execute',()=>{this['fire'](_0x34f03f,this['_model']['id']);}),_0x16fb69;}['_setupKeyboardNavigation'](){const _0x484d93=this['element'];this['keystrokes']['listenTo'](_0x484d93);for(const _0x17993c of this['focusables'])this['focusTracker']['add'](_0x17993c['element']),this['keystrokes']['listenTo'](_0x17993c['element']);this['keystrokes']['set']('enter',(_0x1287ee,_0x1f3e56)=>{_0x484d93===_0x1287ee['target']&&(this['focusCycler']['focusFirst'](),_0x1f3e56());}),this['keystrokes']['set']('esc',(_0x2e0972,_0x13e8d8)=>{_0x484d93!==_0x2e0972['target']&&(this['focus'](),_0x13e8d8());});}}class u extends _0x2b2f8b{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x3f7a3e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d826e){super(_0x1d826e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3c4cf6=this['editor']['config'];_0x3c4cf6['define']('trackChanges.SuggestionThreadView',fe),_0x3c4cf6['define']('trackChanges.SuggestionView',we),_0x3c4cf6['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3c4cf6['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x321a0e,_0x4c3caf){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4b079b,_0x56aab5]of this['_handleControllerBuffer']){const _0x35c3de=this['_suggestionToController']['has'](_0x4b079b);_0x35c3de||_0x56aab5?_0x35c3de&&_0x56aab5&&this['_destroyController'](_0x4b079b):this['_initializeController'](_0x4b079b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x321a0e,_0x4c3caf);}['init'](){const _0x17eeec=this['editor'],_0xed9701=_0x17eeec['plugins']['get']('TrackChangesEditing'),_0xf715b0=_0x17eeec['plugins']['get']('Annotations'),_0x2dfc94=_0x17eeec['plugins']['get']('EditorAnnotations'),_0x4e2aad=_0x17eeec['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2dfc94['addSourceCollector'](()=>{const _0x47ef44=[];for(const [_0x25d287,_0x369644]of Array['from'](this['_suggestionToController'])){const _0xe6aa9f=_0x25d287['getAllAdjacentSuggestions'](),_0x194bdd=[];for(const _0x46bebb of _0xe6aa9f){if(!_0x46bebb['isInContent'])continue;if(_0x46bebb['isMultiRange']){_0x194bdd['push'](..._0x46bebb['getRanges']());continue;}const _0x54277a=_0x46bebb['getFirstRange']();if(_0x194bdd['length']>0x0){const _0xe396a7=_0x194bdd[0x0]['getJoined'](_0x54277a);if(_0xe396a7){_0x194bdd[0x0]=_0xe396a7;continue;}}_0x194bdd['push'](_0x54277a);}_0x47ef44['push']([_0x369644['view'],_0x194bdd]);}return _0x47ef44;}),this['listenTo'](_0xed9701,'suggestionLoaded',(_0x5305ef,_0x7e3276)=>{this['listenTo'](_0x7e3276,'change:previous',(_0x31ed49,_0x19a4f3,_0x10e853,_0x75c07d)=>{_0x7e3276['isInContent']&&(null==_0x10e853?(this['_updateController'](_0x75c07d['head']),this['_handleSuggestionControllerDelayed'](_0x7e3276,!0x1)):(this['_updateController'](_0x10e853['head']),null==_0x75c07d&&this['_handleSuggestionControllerDelayed'](_0x7e3276,!0x0)));}),null!==_0x7e3276['previous']?this['_updateController'](_0x7e3276['head']):this['_handleSuggestionControllerDelayed'](_0x7e3276,!0x1);}),this['listenTo'](_0xed9701,'suggestionUnloaded',(_0x598b1b,_0x28b90c,_0xd38833)=>{this['stopListening'](_0x28b90c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x28b90c),this['_suggestionToController']['has'](_0x28b90c)&&this['_destroyController'](_0x28b90c),_0xd38833&&this['_updateController'](_0xd38833['head']);}),this['listenTo'](_0xed9701,'suggestionChanged',(_0x3e4a19,_0x83c6db)=>{this['_updateController'](_0x83c6db);}),this['listenTo'](_0xf715b0,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4e2aad,'addComment',(_0xdacce1,{threadId:_0x5bf408,isFromAdapter:_0x470152})=>{if(_0x470152||!_0xed9701['hasSuggestion'](_0x5bf408))return;const _0x37fc6b=_0xed9701['getSuggestion'](_0x5bf408);this['_suggestionToController']['get'](_0x37fc6b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xad3c74=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5bc5d6;for(const _0x1901d9 in _0xad3c74){const _0x50bcd4=_0x1901d9,_0x1c5128=_0xad3c74[_0x50bcd4];if('trackChangesLicenseKeyValid'==_0x1c5128||'trackChangesLicenseKeyInvalid'==_0x1c5128||'trackChangesLicenseKeyExpired'==_0x1c5128||'trackChangesLicenseKeyDomainLimit'==_0x1c5128||'trackChangesLicenseKeyNotAllowed'==_0x1c5128||'trackChangesLicenseKeyEvaluationLimit'==_0x1c5128||'trackChangesLicenseKeyTrialLimit'==_0x1c5128||'trackChangesLicenseKeyUsageLimit'==_0x1c5128){delete _0xad3c74[_0x50bcd4],_0x5bc5d6=_0x1c5128,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5bc5d6&&_0xad3c74['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5bc5d6&&_0xad3c74['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5bc5d6&&_0xad3c74['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5bc5d6&&_0xad3c74['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5bc5d6&&_0xad3c74['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5bc5d6&&_0xad3c74['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5bc5d6&&_0xad3c74['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x52c9e8){const _0x3154d7=this['_suggestionToController']['get'](_0x52c9e8);if(!_0x3154d7)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3154d7['view'])||null;}['getSuggestionForAnnotation'](_0x308fbc){const _0x471e0d=this['_viewToController']['get'](_0x308fbc['innerView']);return _0x471e0d?_0x471e0d['model']:null;}['_refreshActiveMarkers'](){const _0x27c2e1=this['editor']['plugins']['get']('Annotations'),_0x3e7823=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ae2fe=Array['from'](_0x27c2e1['activeAnnotations'],_0xc5233d=>_0xc5233d['innerView'])['filter'](_0xf8089=>this['_viewToController']['has'](_0xf8089)),_0x6acd3=[];for(const _0x399445 of _0x2ae2fe){const _0x3876bc=this['_viewToController']['get'](_0x399445)['model']['getAllAdjacentSuggestions']();_0x6acd3['push'](..._0x3876bc['reduce']((_0x2ddab6,_0x2b0cfe)=>[..._0x2ddab6,..._0x2b0cfe['getMarkerNames']()],[]));}_0x3e7823['activeMarkers']=_0x6acd3;}['_addUIComponentsToFactory'](){const _0x25caca=this['editor'],_0x539e54=_0x25caca['locale'],_0x4a5fe1=o(_0x539e54,'Track\x20changes'),_0x25c4d8=new _0x334b83([{'type':'switchbutton','model':new _0x1a2249({'withText':!0x0,'isToggleable':!0x0,'label':_0x4a5fe1,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1a2249({'withText':!0x0,'label':o(_0x539e54,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1a2249({'withText':!0x0,'label':o(_0x539e54,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1a2249({'withText':!0x0,'label':o(_0x539e54,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1a2249({'withText':!0x0,'label':o(_0x539e54,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x25caca['plugins']['has']('TrackChangesPreview')&&_0x25c4d8['addMany']([{'type':'separator'},{'type':'button','model':new _0x1a2249({'withText':!0x0,'label':o(_0x539e54,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x20b093 of _0x25c4d8)if(ke(_0x20b093)){const _0x590716=_0x25caca['commands']['get'](_0x20b093['model']['commandName']);_0x20b093['model']['bind']('isOn','isEnabled')['to'](_0x590716,'value','isEnabled');}_0x25caca['ui']['componentFactory']['add']('trackChanges',_0x3dbddd=>this['_createToolbarButton'](_0x3dbddd,_0x25c4d8,_0x4a5fe1)),_0x25caca['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1cbcbb=>this['_createMenuBarMenu'](_0x1cbcbb,_0x25c4d8,_0x4a5fe1));}['_createToolbarButton'](_0x25d6d4,_0x1398d8,_0x30e7e1){const _0xd0604b=_0x28f557(_0x25d6d4,_0x15354f),_0x527528=this['editor']['commands']['get']('trackChanges');_0xd0604b['buttonView']['set']({'tooltip':_0x30e7e1,'label':_0x30e7e1,'icon':_0x542c64}),_0xd0604b['buttonView']['bind']('isOn')['to'](_0x527528,'value'),_0xd0604b['buttonView']['on']('execute',()=>{_0x527528['execute'](),this['editor']['editing']['view']['focus']();}),_0x57b6db(_0xd0604b,_0x1398d8,{'role':'menu'});const _0x4feb35=[];for(const _0x4314ab of _0x1398d8)ke(_0x4314ab)&&_0x4feb35['push'](this['editor']['commands']['get'](_0x4314ab['model']['commandName']));const _0x1e22e8=_0xd0604b['buttonView'];return _0x1e22e8['actionView']['unbind']('isEnabled'),_0x1e22e8['arrowView']['unbind']('isEnabled'),_0x1e22e8['actionView']['bind']('isEnabled')['to'](_0x527528,'isEnabled'),_0x1e22e8['arrowView']['bind']('isEnabled')['toMany'](_0x4feb35,'isEnabled',(..._0x54d2c1)=>_0x54d2c1['some'](_0x18ab42=>_0x18ab42)),_0xd0604b['on']('execute',_0x206f57=>{this['editor']['execute'](_0x206f57['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xd0604b;}['_createMenuBarMenu'](_0x534993,_0x29d21d,_0x58e114){const _0x46fab3=new _0x141511(_0x534993),_0x5b644b=this['editor']['commands']['get']('trackChanges');_0x46fab3['buttonView']['set']({'label':_0x58e114,'icon':_0x542c64});const _0x157e79=new _0x2e7927(_0x534993);for(const _0x3f98fa of _0x29d21d){if('separator'==_0x3f98fa['type']){_0x157e79['items']['add'](new _0x327c83(_0x534993));continue;}const _0xb0620a=new _0x59c0a6(_0x534993,_0x46fab3),_0x9519e=new _0x12ca26(_0x534993),_0x5ea844=_0x3f98fa['model'];_0x9519e['bind'](...Object['keys'](_0x5ea844))['to'](_0x5ea844),_0x9519e['delegate']('execute')['to'](_0x46fab3),_0x9519e['on']('execute',()=>{this['editor']['execute'](_0x5ea844['commandName']),this['editor']['editing']['view']['focus']();}),_0xb0620a['children']['add'](_0x9519e),_0x157e79['items']['add'](_0xb0620a);}return _0x46fab3['bind']('isEnabled')['to'](_0x5b644b,'isEnabled'),_0x46fab3['panelView']['children']['add'](_0x157e79),_0x46fab3;}['_initializeController'](_0x517067){const _0xe768f6=this['editor'],_0x3f7d31=_0xe768f6['config'],_0x5186d0=_0xe768f6['plugins']['get']('Annotations'),_0x5a046f=_0xe768f6['plugins']['get']('CommentsRepository'),_0x55190b=_0xe768f6['plugins']['get']('EditorAnnotations'),_0x4cd157=_0xe768f6['plugins']['get'](_0x3f7a3e)['me'],_0x2384e9=_0x3f7d31['get']('trackChanges')['SuggestionThreadView'],_0xfcc28f=_0x3f7d31['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x15c71e,CommentThreadInputView:_0x17a4c0}=_0xe768f6['plugins']['get']('CommentsUI');let _0x3a46b3,_0x48e298,_0xd32994;this['_annotationViews']['has'](_0x517067['id'])?(_0x48e298=this['_annotationViews']['get'](_0x517067['id']),_0x3a46b3=_0x48e298['mainView']):(_0x3a46b3=new _0x2384e9(_0xe768f6['locale'],_0x517067,_0x4cd157,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3f7d31['get']('comments.editorConfig'),'licenseKey':_0x3f7d31['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3f7d31['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3f7d31['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3f7d31['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x38529d(_0x3f7d31['get']('locale'),_0xe768f6['locale']),'CommentView':_0x3f7d31['get']('comments')['CommentView'],'CommentsListView':_0x15c71e,'CommentThreadInputView':_0x17a4c0,'SuggestionView':_0xfcc28f}),_0x3a46b3['suggestionView']['acceptButton']['on']('execute',()=>{_0xe768f6['editing']['view']['focus']();}),_0x3a46b3['suggestionView']['discardButton']['on']('execute',()=>{_0xe768f6['editing']['view']['focus']();}),_0x48e298=_0x5186d0['createAnnotationView'](this['editor']['locale'],_0x3a46b3),_0x48e298['bind']('isDirty')['to'](_0x3a46b3,'isDirty'),_0x48e298['bind']('length')['to'](_0x3a46b3),_0x48e298['bind']('type')['to'](_0x3a46b3,'type',_0x2a03fd=>'suggestion-'+_0x2a03fd),_0x3a46b3['on']('escape',()=>{_0xd32994['fire']('escape');}),this['_annotationViews']['set'](_0x517067['id'],_0x48e298));const _0x5793f9=_0x5a046f['createCommentThreadController'](_0x517067['commentThread'],_0x3a46b3),_0x143d3b=new pe(_0xe768f6,_0x517067,_0x3a46b3,_0x5793f9),_0xc8b0e2=_0x517067['getAllAdjacentSuggestions']()['filter'](_0x562352=>_0x562352['isInContent']);_0x3a46b3['descriptionParts']=_0xe768f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xc8b0e2),this['_suggestionToController']['set'](_0x517067,_0x143d3b),this['_viewToController']['set'](_0x3a46b3,_0x143d3b);const _0x5773b4=()=>{const _0x151143=[],_0x5d0ad0=_0x517067['getAllAdjacentSuggestions']()['filter'](_0x22d4f8=>_0x22d4f8['isInContent']);for(const _0x29f7cc of _0x5d0ad0)_0x151143['push'](..._0x29f7cc['getMarkers']());return _0x2b3cce(_0xe768f6['editing'],_0x151143);};_0xd32994=_0x5186d0['createAnnotation']({'view':_0x48e298,'target':_0x5773b4,'type':()=>'suggestion-'+_0x143d3b['view']['type'],'isVisible':!!_0x5773b4()}),_0x5a046f['_bindAnnotationToEditors'](_0x3a46b3,_0xd32994),_0x5186d0['add'](_0xd32994),_0x55190b['registerAnnotation'](_0xd32994);}['_destroyController'](_0x102c47){const _0xaebc61=this['editor']['plugins']['get']('CommentsRepository'),_0x3d11c6=this['editor']['plugins']['get']('Annotations'),_0x55a9d5=this['_suggestionToController']['get'](_0x102c47),_0xa4fa83=_0x55a9d5['view'],_0x3eaaab=_0x3d11c6['getByInnerView'](_0xa4fa83);_0xaebc61['_unbindEditors'](_0xa4fa83),_0x3eaaab&&_0x3d11c6['remove'](_0x3eaaab),this['_suggestionToController']['delete'](_0x102c47),this['_viewToController']['delete'](_0xa4fa83),_0x55a9d5['destroy']();}['_updateController'](_0x12a21d){if(!_0x12a21d['isInContent']||!this['_suggestionToController']['has'](_0x12a21d))return;const _0x4b664a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d4166=this['_suggestionToController']['get'](_0x12a21d),_0x4806e2=_0x12a21d['getAllAdjacentSuggestions']();_0x1d4166['view']['descriptionParts']=_0x4b664a['descriptionFactory']['getDescriptions'](_0x4806e2);}['destroy'](){for(const _0x1a506d of this['_suggestionToController']['keys']())this['_destroyController'](_0x1a506d);for(const _0x461f73 of this['_annotationViews']['values']())_0x461f73['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4e6fbb){return'model'in _0x4e6fbb;}class Ne extends _0x2b2f8b{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3107f9){this['editor']['plugins']['get'](d)['adapter']=_0x3107f9;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x18dbbd){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x18dbbd);}['getSuggestions']({skipNotAttached:_0x57e377=!0x1,toJSON:_0x2ca9bb=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x57e377,'toJSON':_0x2ca9bb});}['getSuggestion'](_0x360066){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x360066);}}const p=['Pagination'];class re extends _0x2b2f8b{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2354fe=this['editor'];if(_0x2354fe['config']['define']('trackChangesData.editorCreator',_0x2529ff=>{const _0x331fdb=_0x2354fe['model']['document']['getRootNames']()['reduce']((_0x498910,_0x70cc07)=>(_0x498910[_0x70cc07]='',_0x498910),{});return _0x2354fe['constructor']['create'](_0x331fdb,_0x2529ff);}),'function'!=typeof _0x2354fe['config']['get']('trackChangesData')['editorCreator'])throw new _0x608ef8('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x14c8b0){return P(this['editor'],!0x0,_0x14c8b0);}['getDataWithDiscardedSuggestions'](_0x48999d){return P(this['editor'],!0x1,_0x48999d);}}class Fe extends _0x2b2f8b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1037c5){function _0x5903cf(_0x17a4ed){return _0x17a4ed['map'](_0x298a35=>String['fromCharCode'](_0x298a35))['join']('');}super(_0x1037c5),this['result']='end',_0x1037c5[_0x5903cf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5903cf([0x76,0x69,0x65,0x77])][_0x5903cf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5903cf([0x61,0x75,0x74,0x6f]),_0x1037c5[_0x5903cf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5903cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5903cf([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5903cf([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5903cf([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(_0x4021b3){return void 0x0!==_0x4021b3['getRootsAttributes'];}async function P(_0x451199,_0x3d04e6,_0x471e94){const _0x44499a=_0x4d3052(_0x451199,p);_0x44499a['plugins']['push'](d,Fe),_0x44499a['rootsAttributes']=De(_0x451199)?_0x451199['getRootsAttributes']():void 0x0;const _0xcb5a1a=document['createDocumentFragment'](),_0x2e05d7=_0x451199['config']['get']('trackChangesData')['editorCreator'],_0x5d47b5=await _0x2e05d7(_0x44499a,()=>function(_0x45d78d){const _0x215b3f=document['createElement']('div');return _0x45d78d['appendChild'](_0x215b3f),_0x215b3f;}(_0xcb5a1a));!function(_0x4b6ac0,_0x2760ec){const _0x22077b=_0x4b6ac0['model']['document']['getRootNames']()['reduce']((_0x5dfcc0,_0x51cae2)=>(_0x5dfcc0[_0x51cae2]=_0x4b6ac0['data']['get']({'rootName':_0x51cae2}),_0x5dfcc0),{}),_0x102026=_0x4b6ac0['plugins']['get']('Users')['users']['map'](_0x265ab0=>({'id':_0x265ab0['id'],'name':_0x265ab0['name']})),_0x1f3016=_0x4b6ac0['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x249387=_0x4b6ac0['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x42e0d3=_0x2760ec['plugins']['get']('Users'),_0x30b77c=_0x2760ec['plugins']['get']('TrackChangesEditing'),_0x133248=_0x2760ec['plugins']['get']('CommentsRepository');for(const _0x314d39 of _0x133248['getCommentThreads']())_0x314d39['remove']();for(const _0x507118 of _0x102026)_0x42e0d3['getUser'](_0x507118['id'])||_0x42e0d3['addUser'](_0x507118);_0x42e0d3['me']||_0x42e0d3['useAnonymousUser']();for(const _0x2447a1 of _0x249387)_0x133248['addCommentThread'](_0x2447a1);for(const _0xb4e26a of _0x1f3016)_0x30b77c['addSuggestionData'](_0xb4e26a);_0x2760ec['data']['set'](_0x22077b);}(_0x451199,_0x5d47b5),_0x5d47b5['execute'](_0x3d04e6?'acceptAllSuggestions':'discardAllSuggestions');const _0x51db06=De(_0x5d47b5)?_0x5d47b5['getFullData'](_0x471e94):_0x5d47b5['data']['get'](_0x471e94);return await _0x5d47b5['destroy'](),_0x51db06;}class Me extends _0x715ce1{['options'];constructor(_0x1f2362,_0x3947dc){super(_0x1f2362),this['options']=_0x3947dc,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'](_0x247607,_0x2cab02){if(!this['element'])return;const _0x99ebc7=[];for(const [_0x456a98,_0x3906c1]of _0x247607){const _0x39a665=document['createElement']('div');_0x39a665['setAttribute']('data-ck-root-name',_0x456a98),_0x39a665['className']=_0x3906c1['classes']+'\x20ck-track-changes-preview__root-container',_0x39a665['innerHTML']=_0x3906c1['content'],_0x99ebc7['push'](_0x39a665);}_0x2cab02(this['element'],_0x99ebc7),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x3e835b{constructor(_0xa32afb){super(_0xa32afb),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1ad4e1=this['editor'],_0x44c13e=_0x1ad4e1['locale'],_0xefe0c7=_0x1ad4e1['plugins']['get']('Dialog');let _0xdb871d;const _0x4fa023=function(_0x56607c){const _0x52dbff={};if('editables'in _0x56607c['ui']['view']){for(const [_0xec033f,_0x102738]of Object['entries'](_0x56607c['ui']['view']['editables']))_0x52dbff[_0xec033f]=_0x102738['element'];}else _0x52dbff[_0x56607c['model']['document']['getRootNames']()[0x0]]=_0x56607c['ui']['view']['editable']['element'];return _0x52dbff;}(_0x1ad4e1),_0x3547b9=function(_0x311ccc){let _0x399175=0x0;for(const _0x3e5493 of Object['values'](_0x311ccc))_0x399175=Math['max'](_0x399175,_0x3e5493['getBoundingClientRect']()['width']);let _0xa6e0d9=0x0;for(const _0x342f62 of Object['values'](_0x311ccc))_0xa6e0d9+=_0x342f62['getBoundingClientRect']()['height'];const _0x615b7=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1f0988=Math['min'](_0xa6e0d9,_0x615b7);return{'width':_0x399175,'height':_0x1f0988};}(_0x4fa023);_0xefe0c7['show']({'id':'finalContentPreview','title':o(_0x44c13e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x44c13e,{'dialogRects':_0x3547b9}),'onHide':()=>{_0xdb871d['detachFromDom']();},'onShow':()=>{_0x1ad4e1['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2dd0ec=>{const _0x3e96bb=this['_standarizeRootsData'](_0x2dd0ec,_0x1ad4e1,_0x4fa023);_0xefe0c7['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3e96bb,_0x1ad4e1['config']['get']('trackChanges.preview.renderFunction'));}),_0xdb871d=new _0x4983d4(_0x44c13e,[_0xefe0c7['view']]),_0xdb871d['attachToDom'](),_0xdb871d['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1ad4e1['once']('destroy',()=>{_0xdb871d['detachFromDom']();});const _0x548416=_0xefe0c7['view']['headerView']['class'];_0xefe0c7['view']['headerView']['class']=_0x548416?_0x548416+'\x20ck-reset_all':'ck-reset_all',_0xefe0c7['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xefe0c7['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x28ca86=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x458497=_0x28ca86['previewMode'],_0x34631e={};if('$labels'===_0x458497){for(const _0x41bdf6 of _0x28ca86['getMergeFieldsIds']())_0x34631e[_0x41bdf6]=_0x28ca86['getLabel'](_0x41bdf6)||_0x41bdf6;}else{const _0x144ef1='$defaultValues'===_0x458497?_0x28ca86['getDefaultValues']():_0x28ca86['getDataSetValues'](_0x458497,!0x0);for(const _0xdff5df of Object['entries'](_0x144ef1)){const [_0x4769aa,_0x5cb828]=_0xdff5df;_0x34631e[_0x4769aa]=null!==_0x5cb828?_0x5cb828:_0x28ca86['getLabel'](_0x4769aa)||_0x4769aa;}}return{'mergeFieldsData':_0x34631e};}['_standarizeRootsData'](_0x3791f9,_0x55bab6,_0xcfb484){let _0x505eb3;if('string'==typeof _0x3791f9){const _0x5882e2=_0x55bab6['model']['document']['getRootNames']()[0x0];_0x505eb3={[_0x5882e2]:_0x3791f9};}else _0x505eb3=_0x3791f9;const _0x4a0954=this['_fixMediaEmbeds'](_0x505eb3,_0x55bab6),_0x54cfec=function(_0x42be11,_0x317121){for(const [_0x322b5b,_0x9aa258]of _0x42be11)_0x9aa258['classes']=_0x317121[_0x322b5b]['classList']['value']['replace']('ck-focused','');return _0x42be11;}(this['_sortRoots'](_0x55bab6)['reduce']((_0x37f02e,_0x3b502e)=>(_0x37f02e['push']([_0x3b502e,{'content':_0x4a0954[_0x3b502e],'classes':''}]),_0x37f02e),[]),_0xcfb484);return _0x54cfec;}['_fixMediaEmbeds'](_0x334cc8,_0x1ecfb3){if(!_0x1ecfb3['plugins']['has']('MediaEmbedEditing'))return _0x334cc8;const _0x18c959=_0x1ecfb3['plugins']['get']('MediaEmbedEditing');for(const [_0x21618d,_0x38e995]of Object['entries'](_0x334cc8)){const _0x3af3a6=document['createElement']('div');_0x3af3a6['innerHTML']=_0x38e995,(_0x3af3a6['querySelectorAll']('figure.media')['forEach'](_0x432f5b=>{const _0x441bf2=_0x432f5b['querySelector']('oembed');if(_0x441bf2){const _0x331230=_0x441bf2['getAttribute']('url');if(_0x331230){const _0x55b1d5=_0x18c959['registry']['getMediaViewElement'](new _0x10c888(_0x1ecfb3['editing']['view']['document']),_0x331230,{'elementName':'','renderForEditingView':!0x0}),_0x494b72=document['createElement']('div');_0x494b72['classList']['add']('ck-media__wrapper'),_0x55b1d5['render'](_0x494b72,_0x1ecfb3['editing']['view']['domConverter']),_0x441bf2['replaceWith'](_0x494b72);}}}),_0x334cc8[_0x21618d]=_0x3af3a6['innerHTML']);}return _0x334cc8;}['_sortRoots'](_0x4bd8b7){if(!function(_0x419edc){return void 0x0!==_0x419edc['getRootsAttributes'];}(_0x4bd8b7))return _0x4bd8b7['model']['document']['getRootNames']();const _0x146339=[],_0x12f007=new Map();for(const _0x43d4d0 of _0x4bd8b7['model']['document']['getRootNames']()){const _0x581904=_0x4bd8b7['editing']['view']['getDomRoot'](_0x43d4d0)['getClientRects']()['item'](0x0);_0x146339['push'](_0x43d4d0),_0x12f007['set'](_0x43d4d0,_0x581904);}return _0x146339['sort']((_0x1f4541,_0x433a86)=>{const _0x396744=_0x12f007['get'](_0x1f4541),_0x3c5ac1=_0x12f007['get'](_0x433a86);return _0x396744['y']-_0x3c5ac1['y']||_0x396744['x']-_0x3c5ac1['x'];}),_0x146339;}}class Ue extends _0x2b2f8b{static get['requires'](){return[re,_0x480e2d];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x25fd04){super(_0x25fd04),_0x25fd04['commands']['add']('previewFinalContent',new te(this['editor'])),_0x25fd04['config']['define']('trackChanges.preview.renderFunction',(_0x521f24,_0x26d216)=>{for(const _0x113167 of _0x26d216)_0x521f24['appendChild'](_0x113167);});}}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 _0x359dd7,Plugin as _0x223c7c,PendingActions as _0x373216}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x36afc1,ObservableMixin as _0x4833ed,uid as _0x180995,priorities as _0x14da34,insertToPriorityArray as _0x2b1de2,logWarning as _0x4561a0,getEnvKeystrokeText as _0x216d26,FocusTracker as _0x46cf29,KeystrokeHandler as _0x41b175,Collection as _0x53db15}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4a1395,IconCancel as _0x26bd9e,IconTrackChanges as _0x2c535f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0xaed96b,View as _0x12cac7,ViewCollection as _0x45662f,FocusCycler as _0x2b8f57,UIModel as _0x26b3b9,createDropdown as _0x2d45a4,SplitButtonView as _0x4e9e5c,addListToDropdown as _0x555346,MenuBarMenuView as _0x2aeb70,MenuBarMenuListView as _0x2a5289,ListSeparatorView as _0x3f3fc1,MenuBarMenuListItemView as _0x529d87,MenuBarMenuListItemButtonView as _0x3548a7,BodyCollection as _0x14c4f7,Dialog as _0x277606}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x17e254,DocumentCompare as _0x4dbdf7,hashObject as _0x58c5fe,surroundingMarkersDetector as _0x3aab64,FOCUS_ANNOTATION_KEYSTROKE as _0x37e699,AriaDescriptionView as _0xe84840,setupThreadKeyboardNavigation as _0x7cce84,trimHtml as _0x33d346,UserView as _0x4bcd1b,LateFocusButtonView as _0x3bc64b,getDateTimeFormatter as _0x4e5388,getAllMarkersDomElementsSorted as _0x47a92e,sanitizeEditorConfig as _0x19d9b3}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x36b3c5,ModelLiveRange as _0xfdd8dd,ModelLivePosition as _0x13409c,ViewDowncastWriter as _0x1b579e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x3c1969,set as _0x5e4df9,isEqual as _0x2ab580,unset as _0x4a1cf5,omit as Pt}from'es-toolkit/compat';import{Delete as _0x5ea8c6,Input as _0x252ac4}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2d0d60}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x23b8fb}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 _0x359dd7{['_enabledCommands'];constructor(_0x352b5b,_0x55fcd7){super(_0x352b5b),this['_enabledCommands']=_0x55fcd7,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 _0x20d6b8 of this['editor']['commands']['commands']())_0x20d6b8['affectsData']&&!this['_enabledCommands']['has'](_0x20d6b8)&&_0x20d6b8['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3ae8bd of this['editor']['commands']['commands']())_0x3ae8bd['affectsData']&&!this['_enabledCommands']['has'](_0x3ae8bd)&&_0x3ae8bd['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x359dd7{['_suggestions'];constructor(_0x410f7b,_0x40deff){super(_0x410f7b),this['_suggestions']=_0x40deff,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1a8c89){const _0x3e6e53=this['_suggestions']['get'](_0x1a8c89);if(!_0x3e6e53)throw new _0x36afc1('track-changes-accept-suggestion-not-found',this);const _0x5373a1=_0x3e6e53['getRanges']();this['editor']['model']['canEditAt'](_0x5373a1)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3e6e53);}}class D extends _0x359dd7{['_suggestions'];constructor(_0x14f5c8,_0x4fa929){super(_0x14f5c8),this['_suggestions']=_0x4fa929,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3ed207){const _0x5041d7=this['_suggestions']['get'](_0x3ed207);if(!_0x5041d7)throw new _0x36afc1('track-changes-discard-suggestion-not-found',this);const _0x52689a=_0x5041d7['getRanges']();this['editor']['model']['canEditAt'](_0x52689a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5041d7);}}function ls(_0xe7e578,_0x2f0fba){let _0x147d95='';return _0x147d95+=_0xe7e578['split']('*')['map']((_0x2d152b,_0x12850a)=>_0x12850a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x2d152b)+'</span>':rn(_0x2d152b))['join'](''),_0x2f0fba&&(_0x147d95+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2f0fba['value']+'\x22\x20title=\x22'+_0x2f0fba['title']+'\x22></span>'),_0x147d95;}function rn(_0x9a7014){const _0x3df66c=document['createElement']('span');return _0x3df66c['innerText']=_0x9a7014,_0x3df66c['innerHTML'];}function ts(_0x35cb1d){return _0x35cb1d['sort']((_0x151b18,_0x26d32f)=>'attribute'===_0x151b18['type']&&'attribute'!==_0x26d32f['type']?-0x1:'attribute'!==_0x151b18['type']&&'attribute'===_0x26d32f['type']?0x1:'deletion'==_0x151b18['type']&&'deletion'!=_0x26d32f['type']?-0x1:'deletion'!=_0x151b18['type']&&'deletion'==_0x26d32f['type']?0x1:0x0);}function to(_0x109a93,_0x13f785){let _0x2bb5e0,_0x4ab417=0x0;const _0x24b376=[],_0x89a53b=_0x13f785['schema'];for(;_0x4ab417<_0x109a93['length'];){const _0x54fe1b=_0x109a93[_0x4ab417],_0x370f96=_0x109a93[_0x4ab417+0x1];_0x2bb5e0||(_0x2bb5e0=_0x13f785['createPositionBefore'](_0x54fe1b)),cn(_0x13f785,_0x54fe1b,_0x370f96)||(_0x24b376['push'](_0x13f785['createRange'](_0x2bb5e0,_0x89a53b['isObject'](_0x54fe1b)?_0x13f785['createPositionAfter'](_0x54fe1b):_0x13f785['createPositionAt'](_0x54fe1b,'end'))),_0x2bb5e0=null),_0x4ab417++;}return _0x24b376;}function cn(_0x5d3817,_0x2c7987,_0x259b45){if(!_0x259b45)return!0x1;const _0x370966=_0x5d3817['createPositionAfter'](_0x2c7987),_0x4c01ee=_0x5d3817['createPositionBefore'](_0x259b45);return _0x370966['isTouching'](_0x4c01ee);}function rs(_0xac4fda,_0x3d0e29,_0x33d966){for(;_0x33d966['length'];){const _0x72a3d5=_0x33d966['splice'](0x0,0x64);_0xac4fda['change'](()=>{for(const _0x30e5aa of _0x72a3d5)_0x30e5aa['isInContent']&&_0x3d0e29['execute'](_0x30e5aa['id']);});}}class B extends _0x359dd7{['_command'];['_suggestions'];constructor(_0xfe24fe,_0x3b8dc8,_0x198693){super(_0xfe24fe),this['_command']=_0x3b8dc8,this['_suggestions']=_0x198693,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2b6801=Array['from'](this['_suggestions']['values']())['some'](_0x1438dc=>_0x1438dc['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2b6801;}['execute'](){const _0x10961b=ts(Array['from'](this['_suggestions']['values']()));for(const _0x1b9a4d of _0x10961b){const _0x316c46=_0x1b9a4d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x316c46))return;}rs(this['editor']['model'],this['_command'],_0x10961b);}}class O extends _0x359dd7{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x243153,_0x464a52,_0x7638dc){super(_0x243153),this['_command']=_0x464a52,this['_suggestions']=_0x7638dc,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x58c0fd=this['editor']['model']['document']['selection'],_0x138983=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3cf11,_0x1588f2){const _0x1d6f84=Array['from'](_0x3cf11['getRanges']()),_0x1c4b55=new Set();for(const _0x4040ee of _0x1588f2)if(_0x4040ee['isInContent']){for(const _0x3e46b0 of _0x1d6f84)for(const _0x15013f of _0x4040ee['getRanges']())(_0x3e46b0['isIntersecting'](_0x15013f)||_0x3cf11['isCollapsed']&&!_0x4040ee['isMultiRange']&&_0x4040ee['next']&&_0x15013f['end']['isTouching'](_0x3e46b0['start']))&&_0x1c4b55['add'](_0x4040ee);}return _0x1c4b55;}(_0x58c0fd,_0x138983),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x427e70=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1e5087 of _0x427e70){const _0x3de75e=_0x1e5087['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3de75e))return;}rs(this['editor']['model'],this['_command'],_0x427e70);}}class x extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4833ed(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3354aa,_0x193f30){super(),this['id']=_0x193f30['id'],this['type']=_0x193f30['type'],this['subType']=_0x193f30['subType']||null,this['author']=_0x193f30['author'],this['creator']=_0x193f30['creator']||_0x193f30['author'],this['isExternal']=Boolean(_0x193f30['attributes']&&_0x193f30['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x193f30['originalSuggestionId']||null,this['_model']=_0x3354aa,this['_onAccept']=_0x193f30['onAccept'],this['_onDiscard']=_0x193f30['onDiscard'],this['_onAttributesChange']=_0x193f30['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x193f30['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 _0x4bd960=this;for(;_0x4bd960['previous'];)_0x4bd960=_0x4bd960['previous'];return _0x4bd960;}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'](_0x4825d5){this['_markerNames']['add'](_0x4825d5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x24e750=>this['_model']['markers']['get'](_0x24e750))['filter'](_0x5719f2=>_0x5719f2);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1818ec=>{for(const _0x2ef660 of this['getMarkers']())_0x1818ec['removeMarker'](_0x2ef660);}),this['_markerNames']['clear']();}['removeMarker'](_0x5a71ac){this['_model']['change'](_0xd07c51=>{_0xd07c51['removeMarker'](_0x5a71ac);}),this['_markerNames']['delete'](_0x5a71ac);}['addRange'](_0x2719a0){const _0x40f6a7='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x40f6a7),this['_model']['change'](_0x485bfb=>{_0x485bfb['addMarker'](_0x40f6a7,{'range':_0x2719a0,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x38708f){for(const _0x358122 of this['getRanges']())if(_0x358122['isIntersecting'](_0x38708f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x23dc67=>_0x23dc67['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x354a4d,_0x1e8815)=>[..._0x354a4d,..._0x1e8815['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1bb6ae=this['getRanges']();if(0x1!=_0x1bb6ae['length'])return null;const _0x545a45=_0x1bb6ae[0x0],_0x29b2fa=_0x545a45['start']['nodeAfter'],_0x195dfb=_0x545a45['end']['nodeBefore'];return _0x29b2fa instanceof _0x36b3c5?_0x29b2fa!=_0x195dfb?null:_0x29b2fa: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 _0x3ca031=[];let _0x4b6576=this['head'];for(;_0x4b6576;)_0x3ca031['push'](_0x4b6576),_0x4b6576=_0x4b6576['next'];return _0x3ca031;}['setAttribute'](_0x22c03f,_0x34757f){const _0xfb0687=_0x3c1969(this['attributes']);_0x5e4df9(_0xfb0687,_0x22c03f,_0x34757f),_0x2ab580(_0xfb0687,this['attributes'])||(this['attributes']=_0xfb0687,this['_onAttributesChange'](_0xfb0687));}['removeAttribute'](_0x3e6e36){const _0x35dfb3=_0x3c1969(this['attributes']);_0x4a1cf5(_0x35dfb3,_0x3e6e36),_0x2ab580(_0x35dfb3,this['attributes'])||(this['attributes']=_0x35dfb3,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 _0x180995()['substr'](0x1,0x5);}}function o(_0x3701db,_0x4a3f68,_0x5e21f0){const _0x151e47=_0x3701db['t'],t=_0x3701db['t'];switch(_0x4a3f68){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',_0x5e21f0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5e21f0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5e21f0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5e21f0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5e21f0);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',_0x5e21f0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5e21f0);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',_0x5e21f0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5e21f0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5e21f0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5e21f0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5e21f0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5e21f0);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5e21f0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5e21f0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5e21f0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5e21f0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5e21f0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5e21f0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5e21f0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5e21f0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5e21f0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5e21f0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5e21f0);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5e21f0);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'},_0x5e21f0);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5e21f0);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5e21f0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5e21f0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5e21f0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5e21f0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5e21f0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5e21f0);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'},_0x5e21f0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5e21f0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5e21f0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5e21f0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5e21f0);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'},_0x5e21f0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5e21f0);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'},_0x5e21f0);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_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'},_0x5e21f0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5e21f0);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'},_0x5e21f0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5e21f0);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'},_0x5e21f0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5e21f0);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5e21f0);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5e21f0);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5e21f0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5e21f0);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'},_0x5e21f0);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5e21f0);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 _0x151e47({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5e21f0);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x151e47({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5e21f0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5e21f0);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'},_0x5e21f0);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'},_0x5e21f0);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'},_0x5e21f0);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4a3f68;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2e2a7a,_0x1669b0){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2e2a7a,this['_locale']=_0x1669b0;}['getDescriptions'](_0xf4b930){const _0x1af153=[],_0x4fd055=new Set(),_0x3fcb42=new Set();for(let _0x54aa51=0x0;_0x54aa51<_0xf4b930['length'];_0x54aa51++){const _0x4ca0a6=_0xf4b930[_0x54aa51];if(!_0x4ca0a6['isInContent'])continue;const _0x4593f5=this['_handleCustomCallbackDescription'](_0x4ca0a6);if(_0x4593f5){if(null!=_0x4ca0a6['subType']){if(_0x4fd055['has'](_0x4ca0a6['subType']))continue;_0x4fd055['add'](_0x4ca0a6['subType']);}_0x1af153['push'](_0x4593f5);}else{if('attribute'==_0x4ca0a6['type']){const _0x32dfc1=_0x4ca0a6['data']['key'];if(_0x3fcb42['has'](_0x32dfc1))continue;_0x3fcb42['add'](_0x4ca0a6['data']['key']),_0x32dfc1==m?this['_handleRenameSuggestionDescription'](_0x1af153,_0x4ca0a6):this['_handleAttributeSuggestionDescription'](_0x1af153,_0x4ca0a6);continue;}'insertion'!=_0x4ca0a6['type']&&'deletion'!=_0x4ca0a6['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1af153,_0x4ca0a6,_0xf4b930[_0x54aa51+0x1]);}}return this['_resolveDescriptionItems'](_0x1af153);}['registerDescriptionCallback'](_0x39ab61){this['_customCallbacks']['push'](_0x39ab61);}['registerElementLabel'](_0x1758b5,_0x11dae0,_0x285db8=_0x14da34['normal']){'function'==typeof _0x1758b5?_0x2b1de2(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1758b5,'label':_0x11dae0,'priority':_0x285db8}):this['_itemLabels']['set'](_0x1758b5,_0x11dae0);}['registerAttributeLabel'](_0x3c6bee,_0x248b7e){this['_attributeLabels']['set'](_0x3c6bee,_0x248b7e);}['getItemLabel'](_0x432ec8,_0x40e9be=0x1){let _0x313077;for(const _0x4cb403 of this['_itemLabelsCallbacks'])if(_0x4cb403['matchingCallback'](_0x432ec8)){_0x313077=_0x4cb403['label'];break;}return _0x313077||(_0x313077=this['_itemLabels']['get'](_0x432ec8['name'])),_0x313077?_0x313077(_0x40e9be):0x1!==_0x40e9be?_0x40e9be+'\x20'+_0x432ec8['name']+'s':''+_0x432ec8['name'];}['_addDescriptionItems'](_0x3851ff,_0x3387a9){const _0x6a9fcd=_0x3387a9['getFirstRange']()['getWalker'](),_0x58ce1a='insertion'==_0x3387a9['type']?'add':'remove';for(const _0x36338d of _0x6a9fcd){const _0x565379=_0x36338d['item'],_0x367dff=_0x3851ff[_0x3851ff['length']-0x1];if(_0x565379['is']('$textProxy'))_0x367dff&&_0x367dff['type']['indexOf']('Container')>-0x1&&_0x3851ff['pop'](),_0x367dff&&'text'==_0x367dff['type']?_0x367dff[_0x58ce1a]+=_0x565379['data']:_0x3851ff['push']({'type':'text','add':'add'==_0x58ce1a?_0x565379['data']:'','remove':'remove'==_0x58ce1a?_0x565379['data']:''});else{if(this['_schema']['isObject'](_0x565379)){const _0x2e5cf2=_0x565379;if(_0x367dff&&_0x367dff['type']['indexOf']('Container')>-0x1&&_0x3851ff['pop'](),'elementEnd'==_0x36338d['type'])continue;_0x367dff&&_0x367dff['type']==_0x58ce1a+'Object'&&_0x367dff['element']['name']==_0x2e5cf2['name']?_0x367dff['quantity']++:_0x3851ff['push']({'type':_0x58ce1a+'Object','element':_0x2e5cf2,'quantity':0x1}),_0x6a9fcd['skip'](_0x431177=>!('elementEnd'==_0x431177['type']&&_0x431177['item']==_0x565379));}else{if(this['_schema']['checkChild'](_0x565379,'$text')||_0x565379['is']('element','softBreak')){const _0x352347=_0x565379;if('add'==_0x58ce1a&&'elementStart'==_0x36338d['type']||'remove'==_0x58ce1a&&'elementEnd'==_0x36338d['type'])continue;if(_0x367dff&&-0x1==_0x367dff['type']['indexOf']('Container')){'text'==_0x367dff['type']&&(_0x367dff[_0x58ce1a]+='\x0a');continue;}let _0x3ccb46;if(_0x3ccb46='add'==_0x58ce1a?_0x352347['nextSibling']&&!this['_schema']['isObject'](_0x352347['nextSibling'])?_0x352347['nextSibling']:null:_0x352347['previousSibling']&&!this['_schema']['isObject'](_0x352347['previousSibling'])?_0x352347['previousSibling']:null,_0x352347['isEmpty']||_0x3ccb46&&_0x3ccb46['isEmpty']){const _0x106f37=_0x3ccb46&&_0x3ccb46['isEmpty']?_0x3ccb46:_0x352347;_0x367dff&&_0x367dff['type']==_0x58ce1a+'EmptyContainer'&&_0x367dff['element']['name']==_0x106f37['name']?_0x367dff['quantity']++:_0x3851ff['push']({'type':_0x58ce1a+'EmptyContainer','element':_0x106f37,'quantity':0x1});}else _0x3851ff['push']({'type':_0x58ce1a+'Container','element':_0x352347});}}}}}['_resolveDescriptionItems'](_0x3ac7fa){const _0x435f5f=this['_locale'],_0x1140ca=[],_0x13ba87=[],_0x4e8eaa=[];for(const _0x2aae77 of _0x3ac7fa)switch(_0x2aae77['type']){case'text':if(_0x2aae77['add']=_0x2aae77['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2aae77['remove']=_0x2aae77['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2aae77['add']&&''!=_0x2aae77['remove']){_0x1140ca['push']({'type':'replace','content':o(_0x435f5f,'REPLACE_TEXT',['\x22'+_0x2aae77['remove']+'\x22','\x22'+_0x2aae77['add']+'\x22'])});continue;}if(null!=_0x2aae77['add']['match'](/^ +$/)){_0x1140ca['push']({'type':'insertion','content':o(_0x435f5f,'*Insert:*\x20%0',o(_0x435f5f,'ELEMENT_SPACE',_0x2aae77['add']['length']))});continue;}if(null!=_0x2aae77['remove']['match'](/^ +$/)){_0x1140ca['push']({'type':'deletion','content':o(_0x435f5f,'*Remove:*\x20%0',o(_0x435f5f,'ELEMENT_SPACE',_0x2aae77['remove']['length']))});continue;}if(''!=_0x2aae77['add']){_0x1140ca['push']({'type':'insertion','content':o(_0x435f5f,'*Insert:*\x20%0','\x22'+_0x2aae77['add']+'\x22')});continue;}_0x1140ca['push']({'type':'deletion','content':o(_0x435f5f,'*Remove:*\x20%0','\x22'+_0x2aae77['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1140ca['push']({'type':'insertion','content':o(_0x435f5f,'*Insert:*\x20%0',this['getItemLabel'](_0x2aae77['element'],_0x2aae77['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1140ca['push']({'type':'deletion','content':o(_0x435f5f,'*Remove:*\x20%0',this['getItemLabel'](_0x2aae77['element'],_0x2aae77['quantity']))});continue;case'addContainer':_0x1140ca['push']({'type':'insertion','content':o(_0x435f5f,'*Split:*\x20%0',this['getItemLabel'](_0x2aae77['element'],_0x2aae77['quantity']))});continue;case'removeContainer':_0x1140ca['push']({'type':'deletion','content':o(_0x435f5f,'*Merge:*\x20%0',this['getItemLabel'](_0x2aae77['element'],_0x2aae77['quantity']))});continue;case'addFormat':_0x13ba87['push'](_0x2aae77['key']);continue;case'removeFormat':_0x4e8eaa['push'](_0x2aae77['key']);continue;default:_0x1140ca['push'](_0x2aae77);}if(_0x13ba87['length']){const _0x8f3570=_0x13ba87['map'](_0x4b8482=>this['_attributeLabels']['has'](_0x4b8482)?this['_attributeLabels']['get'](_0x4b8482):_0x4b8482)['join'](',\x20');_0x1140ca['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x8f3570)});}if(_0x4e8eaa['length']){const _0x398efa=_0x4e8eaa['map'](_0x4e1ef9=>this['_attributeLabels']['has'](_0x4e1ef9)?this['_attributeLabels']['get'](_0x4e1ef9):_0x4e1ef9)['join'](',\x20');_0x1140ca['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x398efa)});}return _0x1140ca;}['_handleCustomCallbackDescription'](_0x3767a8){for(const _0x32cebc of this['_customCallbacks']){const _0x479724=_0x32cebc(_0x3767a8);if(_0x479724&&'type'in _0x479724)return _0x479724;}}['_handleAttributeSuggestionDescription'](_0x8b2227,_0x24e434){const _0x1575ff=_0x24e434['data'],_0x3d3505=void 0x0===_0x1575ff['newValue']?'removeFormat':'addFormat';_0x8b2227['push']({'type':_0x3d3505,'key':_0x1575ff['key']});}['_handleRenameSuggestionDescription'](_0x5c8627,_0x50985c){_0x5c8627['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x50985c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x22d8a6,_0x2223ac,_0xf1789b){if(this['_addDescriptionItems'](_0x22d8a6,_0x2223ac),_0xf1789b&&_0xf1789b['getFirstRange']()&&!_0x2223ac['getFirstRange']()['end']['isEqual'](_0xf1789b['getFirstRange']()['start'])){const _0x4f6ced=_0x22d8a6[_0x22d8a6['length']-0x1],_0x5b89c5='insertion'==_0x2223ac['type']?'add':'remove';_0x4f6ced&&'text'==_0x4f6ced['type']&&(_0x4f6ced[_0x5b89c5]+='\x0a');}}}class R extends _0x223c7c{['afterInit'](){const _0x12532a=this['editor'],_0x17d958=_0x12532a['plugins']['get']('TrackChangesEditing');_0x12532a['commands']['get']('showAIAssistant')&&_0x17d958['enableCommand']('showAIAssistant');}}class T extends _0x223c7c{['afterInit'](){const _0x5d2eec=this['editor'],_0x15d1f6=_0x5d2eec['plugins']['get']('TrackChangesEditing');_0x5d2eec['commands']['get']('toggleAi')&&_0x15d1f6['enableCommand']('toggleAi');}}class E extends _0x223c7c{['afterInit'](){const _0x1fe797=this['editor'],_0x4e6d04=_0x1fe797['plugins']['get']('TrackChangesEditing');_0x1fe797['commands']['get']('aiQuickAction')&&_0x4e6d04['enableCommand']('aiQuickAction');}}class U extends _0x223c7c{['afterInit'](){const _0x4c966c=this['editor'],_0x3c12e4=_0x4c966c['locale'];if(!_0x4c966c['plugins']['has']('AlignmentEditing'))return;const _0x2baa36=_0x4c966c['plugins']['get']('TrackChangesEditing');_0x2baa36['enableDefaultAttributesIntegration']('alignment'),_0x2baa36['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3c12e4,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33b4df=this['editor'],_0x73380f=_0x33b4df['locale'];_0x33b4df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5eb9ab=>{if('formatBlock'!=_0x5eb9ab['type'])return;const {data:_0x5ad3ae}=_0x5eb9ab;if(_0x5ad3ae&&'alignment'==_0x5ad3ae['commandName']){const _0x4b09da=_0x5ad3ae['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x73380f,'*Format:*\x20%0',function(_0x332f80){switch(_0x332f80){case'left':return o(_0x73380f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x73380f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x73380f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x73380f,'FORMAT_JUSTIFY_TEXT');}}(_0x4b09da))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x223c7c{['afterInit'](){const _0x58520a=this['editor'],_0x138b8a=_0x58520a['plugins']['get']('TrackChangesEditing'),_0x3b93cc=_0x58520a['locale'];for(const _0x5df490 of ti){if(!_0x58520a['plugins']['has'](_0x5df490))continue;const _0x196632=_0x5df490['slice'](0x0,-0x7)['toLowerCase'](),_0x12d401='FORMAT_'+_0x196632['toUpperCase']();_0x138b8a['enableDefaultAttributesIntegration'](_0x196632),_0x138b8a['descriptionFactory']['registerAttributeLabel'](_0x196632,o(_0x3b93cc,_0x12d401));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fa04d=this['editor'],_0x4db1bc=_0x4fa04d['locale'],_0x87c65c=_0x4fa04d['plugins']['get']('TrackChangesEditing');function _0xaa0493(_0x12c163,_0x20029b){_0x87c65c['descriptionFactory']['registerDescriptionCallback'](_0x3b3fa7=>{if('formatInline'!=_0x3b3fa7['type'])return;const {data:_0x5a4001}=_0x3b3fa7;return _0x5a4001&&_0x5a4001['commandName']===_0x12c163?_0x5a4001['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4db1bc,'*Format:*\x20%0',_0x20029b)}:{'type':'format','content':o(_0x4db1bc,'*Remove\x20format:*\x20%0',_0x20029b)}:void 0x0;});}_0xaa0493('bold',o(_0x4db1bc,'FORMAT_BOLD')),_0xaa0493('italic',o(_0x4db1bc,'FORMAT_ITALIC')),_0xaa0493('underline',o(_0x4db1bc,'FORMAT_UNDERLINE')),_0xaa0493('code',o(_0x4db1bc,'FORMAT_CODE')),_0xaa0493('strikethrough',o(_0x4db1bc,'FORMAT_STRIKETHROUGH')),_0xaa0493('subscript',o(_0x4db1bc,'FORMAT_SUBSCRIPT')),_0xaa0493('superscript',o(_0x4db1bc,'FORMAT_SUPERSCRIPT'));}}class F extends _0x223c7c{['afterInit'](){const _0x22d6b3=this['editor'],_0x18350f=_0x22d6b3['locale'];if(!_0x22d6b3['plugins']['has']('BlockQuoteEditing'))return;const _0x5544f0=_0x22d6b3['plugins']['get']('TrackChangesEditing'),_0x7ee1fd=this['editor']['commands']['get']('blockQuote');_0x5544f0['enableCommand']('blockQuote',(_0x279f31,_0x4d9849={})=>{const _0x5d75c7=this['editor']['model']['document']['selection'],_0x2229c6=_0x4d9849&&void 0x0!==_0x4d9849['forceValue']?_0x4d9849['forceValue']:!_0x7ee1fd['value'];let _0x1e84ab=[];if(_0x2229c6){const _0x43e45f=Array['from'](_0x5d75c7['getSelectedBlocks']())['filter'](_0x37a493=>oo(_0x37a493)||function(_0x476985,_0x5c5019){const _0x4a06=_0x5c5019['checkChild'](_0x476985['parent'],'blockQuote'),_0x520fd1=_0x5c5019['checkChild'](['$root','blockQuote'],_0x476985);return _0x4a06&&_0x520fd1;}(_0x37a493,this['editor']['model']['schema']));_0x1e84ab=to(_0x43e45f,_0x22d6b3['model']);}else{const _0x59ce1b=Array['from'](_0x5d75c7['getSelectedBlocks']())['filter'](_0x945e03=>oo(_0x945e03));_0x1e84ab=to(_0x59ce1b,_0x22d6b3['model']);}_0x22d6b3['model']['change'](()=>{for(const _0xee200e of _0x1e84ab)_0x5544f0['markBlockFormat'](_0xee200e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2229c6}]});});}),_0x5544f0['descriptionFactory']['registerDescriptionCallback'](_0x31eae6=>{const {data:_0x537b31}=_0x31eae6;if(_0x537b31&&'blockQuote'==_0x537b31['commandName']){const _0x3ee892=o(_0x18350f,'ELEMENT_BLOCK_QUOTE');return _0x537b31['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x18350f,'*Set\x20format:*\x20%0',_0x3ee892)}:{'type':'format','content':o(_0x18350f,'*Remove\x20format:*\x20%0',_0x3ee892)};}});}}function oo(_0xfaf5ea){return'blockQuote'==_0xfaf5ea['parent']['name'];}class G extends _0x223c7c{['afterInit'](){const _0x3566f8=this['editor'],_0x263697=_0x3566f8['locale'],_0x279c87=_0x3566f8['plugins']['get']('TrackChangesEditing');_0x3566f8['plugins']['has']('BookmarkEditing')&&(_0x279c87['enableCommand']('insertBookmark'),_0x279c87['enableDefaultAttributesIntegration']('updateBookmark'),_0x279c87['descriptionFactory']['registerDescriptionCallback'](_0x1da078=>{if('insertion'!=_0x1da078['type']&&'deletion'!=_0x1da078['type']&&'attribute'!=_0x1da078['type'])return;const _0x2d180d=_0x1da078['getContainedElement']();if(null==_0x2d180d)return;if(!_0x2d180d['is']('element','bookmark'))return;const _0x58aa03=_0x2d180d['getAttribute']('bookmarkId');if('insertion'==_0x1da078['type'])return{'type':'insertion','content':o(_0x263697,'*Insert:*\x20%0','\x22'+_0x58aa03+'\x22\x20'+o(_0x263697,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1da078['type'])return{'type':'deletion','content':o(_0x263697,'*Remove:*\x20%0','\x22'+_0x58aa03+'\x22\x20'+o(_0x263697,'ELEMENT_BOOKMARK'))};const {data:_0x3798b4}=_0x1da078;if(!_0x3798b4||'bookmarkId'!=_0x3798b4['key'])return;return{'type':'format','content':o(_0x263697,'*Set\x20bookmark:*\x20%0','\x22'+_0x3798b4['newValue']+'\x22')};}));}}class L extends _0x223c7c{['afterInit'](){const _0x2c1630=this['editor'];_0x2c1630['plugins']['has']('CaseChange')&&(_0x2c1630['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2c1630['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2c1630['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x223c7c{['afterInit'](){const _0x56332a=this['editor'];_0x56332a['commands']['get']('ckbox')&&_0x56332a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x223c7c{['afterInit'](){const _0x22c90f=this['editor'];if(!_0x22c90f['plugins']['has']('CodeBlock'))return;const _0x4317c1=_0x22c90f['plugins']['get']('TrackChangesEditing'),_0x4a99b0=_0x22c90f['locale'],_0x3d731d=_0x22c90f['config']['get']('codeBlock')['languages'],_0x337d96=_0x22c90f['commands']['get']('codeBlock');_0x4317c1['enableCommand']('indentCodeBlock'),_0x4317c1['enableCommand']('outdentCodeBlock'),_0x4317c1['enableCommand']('codeBlock',(_0x5d4c68,_0x2981ca={})=>{const _0x41c21e=_0x22c90f['model'],_0x472f23=_0x22c90f['model']['document']['selection'],_0x4d9b7b=_0x2981ca&&void 0x0!==_0x2981ca['forceValue']?_0x2981ca['forceValue']:!_0x337d96['value'];let _0x40aa68;_0x2981ca['language']||(_0x2981ca['language']=_0x3d731d[0x0]['language']),_0x40aa68=_0x4d9b7b?Array['from'](_0x472f23['getSelectedBlocks']())['filter'](_0x56cb0c=>co(_0x56cb0c)||function(_0x36edb4,_0x54ee86){if(_0x36edb4['is']('rootElement')||_0x54ee86['isLimit'](_0x36edb4))return!0x1;return _0x54ee86['checkChild'](_0x36edb4['parent'],'codeBlock');}(_0x56cb0c,_0x41c21e['schema'])):Array['from'](_0x472f23['getSelectedBlocks']())['filter'](_0x38cd1=>co(_0x38cd1));const _0x2633a9=to(_0x40aa68,_0x41c21e);_0x41c21e['change'](()=>{for(const _0x1bbe4d of _0x2633a9)_0x4317c1['markBlockFormat'](_0x1bbe4d,{'commandName':'codeBlock','commandParams':[{..._0x2981ca,'forceValue':_0x4d9b7b}],'formatGroupId':'blockName'});});}),(_0x4317c1['descriptionFactory']['registerElementLabel']('codeBlock',_0x4a9cee=>o(_0x4a99b0,'ELEMENT_CODE_BLOCK',_0x4a9cee)),_0x4317c1['descriptionFactory']['registerDescriptionCallback'](_0x198ebd=>{if('formatBlock'!=_0x198ebd['type'])return;const _0x57699b=_0x4a99b0['t'],{data:_0x5ebca3}=_0x198ebd;if(!_0x5ebca3||'codeBlock'!=_0x5ebca3['commandName'])return;const _0x552b6d=_0x5ebca3['commandParams'][0x0]['language'],_0x2cc41e=_0x57699b(_0x3d731d['find'](_0x551b6f=>_0x551b6f['language']===_0x552b6d)['label'])['toLowerCase']();return _0x5ebca3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4a99b0,'*Set\x20format:*\x20%0',o(_0x4a99b0,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2cc41e+')')}:{'type':'format','content':o(_0x4a99b0,'*Remove\x20format:*\x20%0',o(_0x4a99b0,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x89551){return'codeBlock'==_0x89551['name'];}class z extends _0x223c7c{['afterInit'](){const _0x5f116b=this['editor'];if(!_0x5f116b['plugins']['has']('CommentsEditing'))return;_0x5f116b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x223c7c{static get['requires'](){return[_0x5ea8c6];}['init'](){const _0x26034a=this['editor'],_0x58a122=_0x26034a['plugins']['get']('TrackChangesEditing');_0x58a122['enableCommand']('delete');const _0x515776=_0x26034a['commands']['get']('deleteForward');_0x58a122['enableCommand']('deleteForward',(_0x414f68,_0x322ca8={})=>{const _0x145ded=_0x26034a['model']['createSelection'](_0x26034a['model']['document']['selection']);_0x145ded['isCollapsed']&&_0x26034a['model']['modifySelection'](_0x145ded,{'direction':'forward','unit':_0x322ca8['unit']});const _0x5b0c11=_0x145ded['getFirstRange'](),_0xe26fe1=_0xfdd8dd['fromRange'](_0x5b0c11);let _0x50351f;_0x414f68(_0x322ca8),_0x50351f='$graveyard'==_0xe26fe1['root']['rootName']?_0x26034a['model']['createRange'](_0x5b0c11['start']):_0x26034a['model']['createRange'](_0xe26fe1['start'],_0xe26fe1['end']),_0xe26fe1['detach'](),_0x26034a['model']['enqueueChange'](_0x515776['buffer']['batch'],_0x555b05=>{_0x515776['buffer']['lock'](),_0x555b05['setSelection'](_0x555b05['createRange'](_0x50351f['end'])),_0x515776['buffer']['unlock']();});});}}class W extends _0x223c7c{['afterInit'](){const _0x5bdc05=this['editor'];if(!_0x5bdc05['plugins']['has']('ListEditing'))return;const _0x425dfe=_0x5bdc05['locale'],_0x334f95=_0x5bdc05['plugins']['get']('TrackChangesEditing'),_0x36cf17=_0x5bdc05['plugins']['has']('TodoListEditing'),_0x8ab5d3=!!_0x5bdc05['config']['get']('list.multiBlock');function _0x136792(_0x934dbf){return{'type':'format','content':''+o(_0x425dfe,'*Set\x20format:*\x20%0',_0x934dbf)};}function _0x1ac2b3(_0x2e0bad){return{'type':'format','content':''+o(_0x425dfe,'*Remove\x20format:*\x20%0',_0x2e0bad)};}_0x334f95['enableDefaultAttributesIntegration']('numberedList'),_0x334f95['enableDefaultAttributesIntegration']('bulletedList'),_0x334f95['enableDefaultAttributesIntegration']('customNumberedList'),_0x334f95['enableDefaultAttributesIntegration']('customBulletedList'),_0x334f95['enableDefaultAttributesIntegration']('indentList'),_0x334f95['enableDefaultAttributesIntegration']('outdentList'),_0x334f95['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x334f95['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x8ab5d3&&(_0x334f95['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x334f95['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x36cf17&&(_0x334f95['enableDefaultAttributesIntegration']('todoList'),_0x334f95['enableDefaultAttributesIntegration']('checkTodoList'),_0x334f95['descriptionFactory']['registerDescriptionCallback'](_0x1dea38=>{const {data:_0x190044}=_0x1dea38;if(_0x190044&&'todoListChecked'==_0x190044['key'])return{'type':'format','content':_0x190044['newValue']?o(_0x425dfe,'*Check\x20item*'):o(_0x425dfe,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x362012=>{if(_0x362012['batch']['isUndo'])return!0x1;let _0x2de324=!0x1;const _0x190587=_0x334f95['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17464b=>'todoListChecked'===_0x334f95['_getAttributeKey'](_0x17464b));for(const _0x2d237f of _0x190587){'todo'!=_0x2d237f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x334f95['_findSuggestions'](_0x2d237f['getFirstRange'](),'attribute')['find'](_0x56b543=>'listType'===_0x334f95['_getAttributeKey'](_0x56b543['suggestion']))||(_0x362012['removeMarker'](_0x2d237f['getFirstMarker']()),_0x2de324=!0x0));}return _0x2de324;})),_0x334f95['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x425dfe,'FORMAT_INDENT'));const _0x1d2bb0={'type':'format','content':''};_0x334f95['descriptionFactory']['registerDescriptionCallback'](_0x145ab4=>{const {data:_0x29bb14}=_0x145ab4;if(!_0x29bb14||'listType'!=_0x29bb14['key'])return;let _0x446cb7=_0x145ab4['head'];for(;_0x446cb7;){if(_0x446cb7['data']&&(('listStyle'==_0x446cb7['data']['key']||'listMarkerStyle'==_0x446cb7['data']['key'])&&(_0x446cb7['data']['newValue']&&'default'!=_0x446cb7['data']['newValue']||'default'!=_0x446cb7['data']['oldValue']&&!_0x29bb14['newValue'])||!_0x8ab5d3&&_0x446cb7['data']['key']==m))return _0x1d2bb0;_0x446cb7=_0x446cb7['next'];}if(null==_0x29bb14['newValue'])switch(_0x29bb14['oldValue']){case'bulleted':return _0x1ac2b3(o(_0x425dfe,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1ac2b3(o(_0x425dfe,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1ac2b3(o(_0x425dfe,'ELEMENT_TODO_LIST'));}switch(_0x29bb14['newValue']){case'bulleted':return _0x136792(o(_0x425dfe,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x136792(o(_0x425dfe,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x136792(o(_0x425dfe,'ELEMENT_TODO_LIST'));}}),_0x334f95['descriptionFactory']['registerDescriptionCallback'](_0x4c9e40=>{const {data:_0x2b7327}=_0x4c9e40;if(_0x2b7327&&'listIndent'==_0x2b7327['key'])return null==_0x2b7327['newValue']||null==_0x2b7327['oldValue']&&0x0==_0x2b7327['newValue']?_0x1d2bb0:void 0x0;}),_0x334f95['descriptionFactory']['registerDescriptionCallback'](_0x40c25a=>{if('attribute'!=_0x40c25a['type'])return;const {data:_0x590963}=_0x40c25a;if(!_0x590963||'listItemId'!=_0x590963['key'])return;const _0x4d0bac=Te(_0x40c25a);return'newValue'==_0x4d0bac?{'type':'format','content':o(_0x425dfe,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4d0bac?{'type':'format','content':o(_0x425dfe,'*Split:*\x20list\x20item')}:_0x1d2bb0;}),_0x5bdc05['model']['document']['registerPostFixer'](_0x2024c2=>this['listItemIdFixer'](_0x2024c2)),_0x5bdc05['model']['document']['registerPostFixer'](_0x53a406=>this['noTrackChangesFixer'](_0x53a406)),_0x5bdc05['model']['document']['on']('change:data',(_0x44fec7,_0x2ad9f6)=>{if(_0x2ad9f6['isUndo']||!_0x2ad9f6['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3ec2e6){if(_0x3ec2e6['batch']['isUndo']||!_0x3ec2e6['batch']['isLocal'])return!0x1;let _0x2a0f4b=!0x1;const _0x366d6f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x65a3cc=>_0x65a3cc['data']&&'listItemId'==_0x65a3cc['data']['key'])['filter'](_0x585737=>_0x585737['data']['newValue']&&_0x585737['data']['oldValue']);for(const _0x2c8ca6 of _0x366d6f)Te(_0x2c8ca6)||(_0x3ec2e6['removeMarker'](_0x2c8ca6['getFirstMarker']()),_0x2a0f4b=!0x0);return _0x2a0f4b;}['noTrackChangesFixer'](_0x56ea31){if(_0x56ea31['batch']['isUndo']||!_0x56ea31['batch']['isLocal'])return!0x1;const _0x4037f4=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4037f4['trackChangesCommand']['value'])return!0x1;let _0x5c6798=!0x1;const _0x2596f6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x54aaad=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x43c5a7=>'attribute'==_0x43c5a7['type'])['filter'](_0x13eeb3=>_0x2596f6['includes'](_0x13eeb3['attributeKey']));if(0x0==_0x54aaad['length'])return _0x5c6798;for(const _0x1290b8 of _0x54aaad){const _0x5647ed=_0x4037f4['_findSuggestions'](_0x1290b8['range'],'attribute')['filter'](_0x39af05=>!_0x39af05['meta']['isNextTo'])['map'](_0x1cf0d1=>_0x1cf0d1['suggestion'])['filter'](_0x14b7fc=>{const _0x12df37=_0x4037f4['_getAttributeKey'](_0x14b7fc);return _0x2596f6['includes'](_0x12df37);});if(_0x5647ed['length']){for(const _0x3ec699 of _0x5647ed)_0x56ea31['removeMarker'](_0x3ec699['getFirstMarker']());_0x5c6798=!0x0;}}return _0x5c6798;}['assureChains'](){const _0xb388f1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b1019=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x465f26;const _0x521db5=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x54290a=>{if(_0x54290a['data']['oldRange']||!_0x54290a['data']['newRange'])return null;if(!_0x54290a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x259bd3}=_0xb388f1['_splitMarkerName'](_0x54290a['name']);if(!_0xb388f1['hasSuggestion'](_0x259bd3))return null;const _0x1f8798=_0xb388f1['getSuggestion'](_0x259bd3);return _0x4b1019['includes'](_0x1f8798['data']['key']);})['map'](_0x546997=>{const {id:_0x3a8354}=_0xb388f1['_splitMarkerName'](_0x546997['name']),_0x1071bd=_0xb388f1['getSuggestion'](_0x3a8354);return _0x465f26=_0x1071bd['attributes']['groupId'],_0x1071bd['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x521db5['size'])return;const _0x56bcf3=_0xb388f1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ee6f3=>'attribute'==_0x4ee6f3['type']&&_0x4ee6f3['data']&&_0x4b1019['includes'](_0x4ee6f3['data']['key'])&&_0x4ee6f3['attributes']['groupId']!=_0x465f26)['map'](_0x3df6ac=>({'listItem':_0x3df6ac['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3df6ac['attributes']['groupId']})),_0x29c7a2=new Set();for(const {groupId:_0x560803,listItem:_0x3eaf1c}of _0x56bcf3)_0x521db5['has'](_0x3eaf1c)&&_0x29c7a2['add'](_0x560803);for(const _0x4e870a of _0xb388f1['getSuggestions']())_0x29c7a2['has'](_0x4e870a['attributes']['groupId'])&&_0x4e870a['setAttribute']('groupId',_0x465f26);}['_supportLegacySuggestions'](){const _0x330a98=this['editor'],_0x12faa8=_0x330a98['locale'],_0x494fc2=_0x330a98['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x494fc2['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4c2ff7,_0x540f94){const _0x4ddce3=[];for(let _0x25306e of _0x4c2ff7)_0x25306e['start']['nodeAfter']===_0x25306e['end']['parent']&&(_0x25306e=_0x330a98['model']['createRange'](_0x330a98['model']['createPositionAt'](_0x25306e['start']['nodeAfter'],0x0))),_0x4ddce3['push'](_0x25306e);_0x330a98['model']['change'](_0x4be005=>{const _0x256048=_0x330a98['model']['document']['selection'],_0x1056d8=Array['from'](_0x256048['getRanges']())['map'](_0x1e6335=>_0xfdd8dd['fromRange'](_0x1e6335));_0x4be005['setSelection'](_0x4ddce3),_0x330a98['commands']['get'](_0x540f94['commandName'])['refresh'](),_0x540f94['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x330a98['execute'](_0x540f94['commandName'],..._0x540f94['commandParams']),_0x4be005['setSelection'](_0x1056d8);for(const _0x5ceb60 of _0x1056d8)_0x5ceb60['detach']();});}),_0x494fc2['descriptionFactory']['registerElementLabel'](function(_0x45f099){const _0x517e0f=!_0x330a98['model']['schema']['isObject'](_0x45f099),_0x433b80=_0x45f099['previousSibling'],_0x2e6b30=_0x45f099['nextSibling'],_0x53c042=_0x45f099['getAttribute']('listItemId'),_0x47a7a1=!_0x433b80||_0x433b80['getAttribute']('listItemId')!==_0x53c042,_0x432395=!_0x2e6b30||_0x2e6b30['getAttribute']('listItemId')!==_0x53c042;return _0x517e0f&&Boolean(_0x53c042)&&_0x47a7a1&&_0x432395;},_0x29095d=>o(_0x12faa8,'ELEMENT_LIST_ITEM',_0x29095d));}['_registerLegacyDescription'](){const _0xf79c2e=this['editor'],_0x487029=_0xf79c2e['locale'];function _0x72a306(_0x1c146c){const _0x1e1ef2=_0xf79c2e['commands']['get']('bulletedList')['value'],_0x491d7d=_0xf79c2e['commands']['get']('numberedList')['value'];return'numberedList'===_0x1c146c?_0x1e1ef2:_0x491d7d;}_0xf79c2e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2bf6dd){if('formatBlock'!=_0x2bf6dd['type'])return;const {data:_0x2d63f2}=_0x2bf6dd;if(!_0x2d63f2)return;let _0xbb1d20,_0x2a2194,_0x35da00,_0xc59f1c;switch(_0x2d63f2['commandName']){case'bulletedList':_0x35da00=_0x2d63f2['commandParams'][0x0]['forceValue'],_0xc59f1c=_0x72a306(_0x2d63f2['commandName']),_0xbb1d20=_0x35da00?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xc59f1c&&_0xf79c2e['config']['get']('list.multiBlock')||(_0xbb1d20='*Change\x20to:*\x20%0'),_0x2a2194={'type':'format','content':o(_0x487029,_0xbb1d20,o(_0x487029,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x35da00=_0x2d63f2['commandParams'][0x0]['forceValue'],_0xc59f1c=_0x72a306(_0x2d63f2['commandName']),_0xbb1d20=_0x35da00?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xc59f1c&&_0xf79c2e['config']['get']('list.multiBlock')||(_0xbb1d20='*Change\x20to:*\x20%0'),_0x2a2194={'type':'format','content':o(_0x487029,_0xbb1d20,o(_0x487029,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xbb1d20='*Indent:*\x20%0',_0x2a2194={'type':'format','content':o(_0x487029,_0xbb1d20,o(_0x487029,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xbb1d20=function(_0x589a92){const _0x4b68c4=_0x589a92['getFirstRange']();let _0x4eb751=_0x4b68c4['start']['nodeAfter'];for(;_0x4eb751&&_0x4b68c4['containsItem'](_0x4eb751);){if(_0x4eb751['getAttribute']('listIndent')>0x0)return!0x1;_0x4eb751=_0x4eb751['nextSibling'];}return!0x0;}(_0x2bf6dd)?o(_0x487029,'*Format:*\x20remove\x20from\x20%0',o(_0x487029,function(_0x3c3c28){return'ELEMENT_'+_0x3c3c28['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2bf6dd))):o(_0x487029,'*Outdent:*\x20%0',o(_0x487029,'ELEMENT_LIST_ITEM')),_0x2a2194={'type':'format','content':_0xbb1d20};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2d63f2['multipleBlocks']&&(_0xbb1d20='*Merge:*\x20%0',_0x2a2194={'type':'deletion','content':o(_0x487029,_0xbb1d20,o(_0x487029,'ELEMENT_LIST_ITEM'))});}return _0x2a2194;});}}function Te(_0xf43448){let _0x5e7e0b=_0xf43448['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5e7e0b;){const _0x23e158=_0x5e7e0b['getAttribute']('listItemId');if(!_0x23e158)return!0x1;if(_0x23e158==_0xf43448['data']['newValue'])return'newValue';if(_0x23e158==_0xf43448['data']['oldValue'])return'oldValue';_0x5e7e0b=_0x5e7e0b['previousSibling'];}return!0x1;}class H extends _0x223c7c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x56fff1=this['editor']['config']['get']('list.properties'),_0x2867a6=this['editor']['plugins']['get']('TrackChangesEditing');_0x56fff1['styles']&&_0x2867a6['enableDefaultAttributesIntegration']('listStyle'),_0x56fff1['reversed']&&_0x2867a6['enableDefaultAttributesIntegration']('listReversed'),_0x56fff1['startIndex']&&_0x2867a6['enableDefaultAttributesIntegration']('listStart');const _0x251375={'type':'format','content':''};_0x2867a6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x312477=this['editor']['locale'];_0x2867a6['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x312477,'FORMAT_LIST_REVERSED')),_0x2867a6['descriptionFactory']['registerDescriptionCallback'](_0x3cebf2=>{const {data:_0x158c4d}=_0x3cebf2;if(_0x158c4d&&'listReversed'==_0x158c4d['key'])return null==_0x158c4d['newValue']||0x0==_0x158c4d['newValue']&&null==_0x158c4d['oldValue']?_0x251375:void 0x0;}),_0x2867a6['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x312477,'FORMAT_LIST_START')),_0x2867a6['descriptionFactory']['registerDescriptionCallback'](_0x5c06f6=>{const {data:_0x3778be}=_0x5c06f6;if(_0x3778be&&'listStart'==_0x3778be['key'])return null==_0x3778be['newValue']||0x1==_0x3778be['newValue']&&null==_0x3778be['oldValue']?_0x251375:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1c0668=>{if(_0x1c0668['batch']['isUndo'])return!0x1;let _0x19568c=!0x1;const _0x35f578=_0x2867a6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3dd2ef=>{const _0x4ad657=_0x2867a6['_getAttributeKey'](_0x3dd2ef);return'listStart'==_0x4ad657||'listReversed'==_0x4ad657;});for(const _0xd5f9b7 of _0x35f578){const _0x2ad43d=_0xd5f9b7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2ad43d||'customNumbered'==_0x2ad43d)continue;_0x2867a6['_findSuggestions'](_0xd5f9b7['getFirstRange'](),'attribute')['find'](_0xf02fb0=>'listType'==_0x2867a6['_getAttributeKey'](_0xf02fb0['suggestion']))||(_0x1c0668['removeMarker'](_0xd5f9b7['getFirstMarker']()),_0x19568c=!0x0);}return _0x19568c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x6a74cb){const _0x552248=this['editor']['locale'],{data:_0x5942c5}=_0x6a74cb,_0x3c8df2={'type':'format','content':''};if(!_0x5942c5||'listStyle'!=_0x5942c5['key'])return;if(!_0x5942c5['oldValue'])return'default'==_0x5942c5['newValue']?_0x3c8df2:{'type':'format','content':''+o(_0x552248,'*Set\x20format:*\x20%0',o(_0x552248,this['_getTranslationKeyForListStyle'](_0x5942c5['newValue'])))};if(!_0x5942c5['newValue']){if('default'==_0x5942c5['oldValue'])return _0x3c8df2;let _0x4adda8=_0x6a74cb['head'];for(;_0x4adda8;){if(_0x4adda8['data']&&'listType'==_0x4adda8['data']['key']&&_0x4adda8['data']['newValue'])return _0x3c8df2;_0x4adda8=_0x4adda8['next'];}return{'type':'format','content':''+o(_0x552248,'*Remove\x20format:*\x20%0',o(_0x552248,this['_getTranslationKeyForListStyle'](_0x5942c5['oldValue'])))};}if('default'!=_0x5942c5['newValue'])return{'type':'format','content':''+o(_0x552248,'*Set\x20format:*\x20%0',o(_0x552248,this['_getTranslationKeyForListStyle'](_0x5942c5['newValue'])))};let _0x558994=_0x6a74cb['head'];for(;_0x558994;){if(_0x558994['data']&&'listType'==_0x558994['data']['key']&&_0x558994['data']['newValue']&&_0x558994['data']['oldValue'])return _0x3c8df2;_0x558994=_0x558994['next'];}return{'type':'format','content':o(_0x552248,'*Set\x20format:*\x20%0',o(_0x552248,'ELEMENT_'+_0x6a74cb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x49e0f3=this['editor'],_0x191397=_0x49e0f3['locale'];_0x49e0f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a6f30=>{if('formatBlock'!=_0x4a6f30['type'])return;const {data:_0x2511eb}=_0x4a6f30;if(!_0x2511eb)return;let _0x1949aa,_0x2fb355;switch(_0x2511eb['commandName']){case'listStyle':_0x1949aa='*Change\x20to:*\x20%0',_0x2fb355={'type':'format','content':o(_0x191397,_0x1949aa,o(_0x191397,this['_getTranslationKeyForListStyle'](_0x2511eb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1949aa=_0x2511eb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2fb355={'type':'format','content':o(_0x191397,_0x1949aa)};break;case'listStart':_0x1949aa='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2fb355={'type':'format','content':o(_0x191397,_0x1949aa,_0x2511eb['commandParams'][0x0]['startIndex'])};}return _0x2fb355;});}['_getTranslationKeyForListStyle'](_0xd5874d){return'ELEMENT_'+function(_0x7bf90a){if(ye['includes'](_0x7bf90a))return'bulleted';if(Se['includes'](_0x7bf90a))return'numbered';return null;}(_0xd5874d)['toUpperCase']()+'_LIST_'+_0xd5874d['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x223c7c{['afterInit'](){const _0x2f12f5=this['editor'];_0x2f12f5['commands']['get']('emoji')&&_0x2f12f5['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x223c7c{static get['requires'](){return[_0x2d0d60];}['init'](){const _0x395adf=this['editor'],_0x590dae=_0x395adf['plugins']['get']('TrackChangesEditing'),_0x16d7b1=_0x395adf['commands']['get']('enter');_0x590dae['enableCommand']('enter',()=>{_0x395adf['model']['change'](_0x35b59a=>{const _0x23fd47=_0x395adf['model']['document']['selection'],_0x4481a2=_0x23fd47['getFirstPosition'](),_0x1589ba=_0xfdd8dd['fromRange'](_0x23fd47['getFirstRange']());if(_0x16d7b1['enterBlock'](_0x35b59a)){const _0x4bec39=_0x395adf['model']['createPositionAt'](_0x4481a2['parent']['nextSibling'],0x0),_0x56fcd9=_0x35b59a['createRange'](_0x4481a2,_0x4bec39);_0x590dae['markInsertion'](_0x56fcd9);}else _0x35b59a['setSelection'](_0x35b59a['createRange'](_0x1589ba['end']));_0x1589ba['detach'](),_0x16d7b1['fire']('afterExecute',{'writer':_0x35b59a});});});}}class Y extends _0x223c7c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x41bc62=this['editor']['plugins']['get']('TrackChangesEditing');_0x41bc62['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x41bc62['enableCommand']('findNext'),_0x41bc62['enableCommand']('findPrevious'),_0x41bc62['enableCommand']('replace'),_0x41bc62['enableCommand']('replaceAll');}['handleFindCommand'](_0x598ce5,_0x2179cf,_0x3fa139={}){const _0x1f8d4d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x598ce5(_0x47f3c5=>{let _0xcc320c=('string'==typeof _0x2179cf?_0x1f8d4d['findByTextCallback'](_0x2179cf,_0x3fa139):_0x2179cf)(_0x47f3c5);Array['isArray'](_0xcc320c)&&(_0xcc320c={'results':_0xcc320c,'searchText':'string'==typeof _0x2179cf?_0x2179cf:''});const _0x24dcae=_0xcc320c['results']['filter'](_0x448c18=>!0x1===this['_isInDeletionRange'](_0x448c18,_0x47f3c5['item']));return{..._0xcc320c,'results':_0x24dcae};},_0x3fa139);}['_isInDeletionRange'](_0x4c6402,_0x4731f6){const _0x4f8916=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4731f6,_0x4c6402['start']),this['editor']['model']['createPositionAt'](_0x4731f6,_0x4c6402['end']));for(const _0x57359b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4f8916['getIntersection'](_0x57359b['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 _0x223c7c{['afterInit'](){const _0x4fcec0=this['editor']['locale'],_0x3528b7=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2ba5b7,commandName:_0x52757a}of eo)this['editor']['plugins']['has'](_0x2ba5b7)&&_0x3528b7['enableDefaultAttributesIntegration'](_0x52757a);_0x3528b7['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4fcec0,'FORMAT_FONT_SIZE')),_0x3528b7['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4fcec0,'FORMAT_FONT_FAMILY')),_0x3528b7['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4fcec0,'FORMAT_FONT_COLOR')),_0x3528b7['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4fcec0,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x228cd1=this['editor'],_0x31012b=_0x228cd1['locale'];_0x228cd1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x521485=>{const _0x49917f=_0x31012b['t'];if('formatInline'!=_0x521485['type'])return;const {data:_0x1b9013}=_0x521485;if(null!=_0x1b9013){if('fontSize'==_0x1b9013['commandName']){const _0x5e8183=_0x1b9013['commandParams'][0x0]['value'];if(_0x5e8183){const _0x1fc9cc=_0x49917f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3f2077=>_0x3f2077['model']==_0x5e8183)['title'])['toLowerCase']();return{'type':'format','content':o(_0x31012b,'*Set\x20font\x20size:*\x20%0',_0x1fc9cc)};}return{'type':'format','content':o(_0x31012b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1b9013['commandName']){const _0x3e6517=_0x1b9013['commandParams'][0x0]['value'];return _0x3e6517?{'type':'format','content':o(_0x31012b,'*Set\x20font\x20family:*\x20%0',_0x3e6517)}:{'type':'format','content':o(_0x31012b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1b9013['commandName']){const _0x44d546=_0x1b9013['commandParams'][0x0]['value'];if(_0x44d546){const _0x24157f=_0xaed96b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2089dd=>_0x2089dd['model']==_0x44d546);let _0x1c7c02=_0x44d546,_0x4e359e='';return _0x24157f&&(_0x1c7c02=_0x24157f['label'],_0x4e359e=_0x49917f(_0x1c7c02)['toLowerCase']()),{'type':'format','content':o(_0x31012b,'*Set\x20font\x20color:*\x20%0',_0x4e359e)['trim'](),'color':{'value':_0x44d546,'title':_0x4e359e||_0x1c7c02}};}return{'type':'format','content':o(_0x31012b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1b9013['commandName']){const _0x369c02=_0x1b9013['commandParams'][0x0]['value'];if(_0x369c02){const _0xe18e87=_0xaed96b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xd3bee2=>_0xd3bee2['model']==_0x369c02);let _0x5b0caf=_0x369c02,_0x43bda5='';return _0xe18e87&&(_0x5b0caf=_0xe18e87['label'],_0x43bda5=_0x49917f(_0x5b0caf)['toLowerCase']()),{'type':'format','content':o(_0x31012b,'*Set\x20font\x20background\x20color:*\x20%0',_0x43bda5)['trim'](),'color':{'value':_0x369c02,'title':_0x43bda5||_0x5b0caf}};}return{'type':'format','content':o(_0x31012b,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x223c7c{['afterInit'](){const {plugins:_0x4e0523}=this['editor'];_0x4e0523['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x4e0523['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x561c0e,plugins:_0x130496,commands:_0x9ab753}=this['editor'],_0x25fea4=_0x130496['get']('TrackChangesEditing');_0x9ab753['get']('footnotesStyle')&&_0x25fea4['enableDefaultAttributesIntegration']('footnotesStyle'),_0x9ab753['get']('footnotesStart')&&_0x25fea4['enableDefaultAttributesIntegration']('footnotesStart'),_0x25fea4['registerBlockAttribute']('footnotesListStyle'),_0x25fea4['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x561c0e,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x25fea4['registerBlockAttribute']('footnotesListStart'),_0x25fea4['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x561c0e,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x496fc9=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x5696dd,commands:_0x3a3bb6}=this['editor'];_0x3a3bb6['get']('insertFootnote')&&_0x496fc9['enableCommand']('insertFootnote'),_0x496fc9['descriptionFactory']['registerElementLabel']('footnoteRef',_0x45692a=>o(_0x5696dd,'ELEMENT_FOOTNOTE_REF',_0x45692a)),_0x496fc9['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x362f3d=>o(_0x5696dd,'ELEMENT_FOOTNOTE_DEFINITION',_0x362f3d)),_0x496fc9['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x875faa=>o(_0x5696dd,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x875faa));}}class nt extends _0x223c7c{['afterInit'](){const _0x1dab53=this['editor'],_0x38c8be=_0x1dab53['plugins']['get']('TrackChangesEditing'),_0x52b222=_0x1dab53['commands']['get']('copyFormat'),_0x35b408=_0x1dab53['commands']['get']('pasteFormat');_0x52b222&&_0x35b408&&(_0x38c8be['enableDefaultAttributesIntegration']('pasteFormat'),_0x38c8be['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xb2e44c=this['editor'],_0x499c7f=_0xb2e44c['locale'];_0xb2e44c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x187bae=>{if('formatBlock'!=_0x187bae['type']&&'formatInline'!=_0x187bae['type'])return;const {data:_0x552d55}=_0x187bae;if(_0x552d55&&'pasteFormat'===_0x552d55['commandName']){const _0x5887c1=[],_0x2635fd=_0x552d55['commandParams'][0x0];for(const [_0x111e49,_0x4b4f37]of Object['entries'](_0x2635fd))_0x5887c1['push'](ro(_0xb2e44c,_0x111e49,_0x4b4f37));return _0x5887c1['length']?{'type':'format','content':o(_0x499c7f,'*Set\x20format\x20to:*\x20%0',_0x5887c1['join'](',\x20'))}:{'type':'format','content':o(_0x499c7f,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x300aef,_0x4d4c4d,_0xc78751){const _0x29cd6c=_0x300aef['locale']['t'],_0x174dd2=_0x4d4c4d['split'](/(?=[A-Z])/)['join']('\x20'),_0x11ba44=_0x29cd6c(_0x174dd2['charAt'](0x0)['toUpperCase']()+_0x174dd2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xc78751)return _0x11ba44;if('fontColor'===_0x4d4c4d||'fontBackgroundColor'===_0x4d4c4d){const _0xc46e28=_0xaed96b(_0x300aef['config']['get']('fontColor.colors'))['find'](_0x5b4653=>_0x5b4653['model']==_0xc78751);return _0x11ba44+'\x20('+(_0xc46e28?_0x29cd6c(_0xc46e28['label'])['toLowerCase']():_0xc78751)+')';}if('fontSize'===_0x4d4c4d&&isNaN(parseFloat(_0xc78751))){const _0xcdc6a7=_0x300aef['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x300aef['config']['get']('fontSize.options'))['find'](_0x1701c4=>_0x1701c4['model']==_0xc78751);return _0x11ba44+'\x20('+(_0xcdc6a7?_0x29cd6c(_0xcdc6a7['title'])['toLowerCase']():_0xc78751)+')';}return _0x11ba44+'\x20('+_0xc78751+')';}class it extends _0x223c7c{['_headingOptions'];['afterInit'](){const _0x1b6267=this['editor'];if(!_0x1b6267['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1b6267['config']['get']('heading.options');const _0xd657ca=_0x1b6267['locale'],_0x58ca56=_0x1b6267['plugins']['get']('TrackChangesEditing');_0x58ca56['enableDefaultAttributesIntegration']('heading');for(const _0x2a0bf5 of this['_headingOptions'])'paragraph'!=_0x2a0bf5['model']&&_0x58ca56['descriptionFactory']['registerElementLabel'](_0x2a0bf5['model'],_0x40f792=>{const _0x38ed29=this['_getHeadingLevel'](_0x2a0bf5['model']);return null!==_0x38ed29?_0x4a085d(_0x40f792,_0x38ed29):_0x315815(_0x40f792,_0x2a0bf5['title']);});function _0x4a085d(_0x2552a4,_0x25d4f7){return o(_0xd657ca,'ELEMENT_HEADING',[_0x2552a4,_0x25d4f7]);}function _0x315815(_0x38e809,_0x404f4b){return o(_0xd657ca,'ELEMENT_HEADING_CUSTOM',[_0x38e809,_0x404f4b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1600c7=this['editor'],_0xc78377=_0x1600c7['locale'];function _0x5397ee(_0xc2a661,_0x113300){return o(_0xc78377,'ELEMENT_HEADING_CUSTOM',[_0xc2a661,_0x113300]);}_0x1600c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd22bf=>{if('formatBlock'!=_0xd22bf['type'])return;const {data:_0x1aed86}=_0xd22bf;if(_0x1aed86&&'heading'==_0x1aed86['commandName']){const _0x536aa6=_0x1aed86['commandParams'][0x0]['value'],_0x734c26=this['_getHeadingLevel'](_0x536aa6);if(null!==_0x734c26)return{'type':'format','content':o(_0xc78377,'*Change\x20to:*\x20%0',(_0x3bff2b=0x1,_0x5bbd57=_0x734c26,o(_0xc78377,'ELEMENT_HEADING',[_0x3bff2b,_0x5bbd57])))};const _0x4a2f19=this['_headingOptions']['find'](_0x59bab3=>_0x59bab3['model']===_0x536aa6)['title'];return{'type':'format','content':o(_0xc78377,'*Change\x20to:*\x20%0',_0x5397ee(0x1,_0x4a2f19))};}var _0x3bff2b,_0x5bbd57;});}['_getHeadingLevel'](_0x11e6e7){const _0x340bc2=_0x11e6e7['match'](/^heading(\d+)/);if(_0x340bc2)return _0x340bc2[0x1];const _0x24b5d4=this['_headingOptions']?.['find'](_0x43deb7=>_0x43deb7['model']==_0x11e6e7);if(_0x24b5d4&&_0x24b5d4['view']){const _0x2f6a57=_0x24b5d4['view'],_0xa322d9=(_0x2f6a57['name']??_0x2f6a57)['match'](/^h(\d+)/);if(_0xa322d9)return _0xa322d9[0x1];}return null;}}class et extends _0x223c7c{['afterInit'](){const _0x3fa516=this['editor'];if(!_0x3fa516['plugins']['has']('HighlightEditing'))return;const _0x5d6a81=_0x3fa516['plugins']['get']('TrackChangesEditing'),_0x9b64a5=_0x3fa516['locale'];_0x5d6a81['enableDefaultAttributesIntegration']('highlight'),_0x5d6a81['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x9b64a5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bf8f1=this['editor'],_0x4dd7c2=_0x2bf8f1['locale'];_0x2bf8f1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32325f=>{if('formatInline'!=_0x32325f['type'])return;const {data:_0x51bc37}=_0x32325f;if(_0x51bc37&&'highlight'==_0x51bc37['commandName']){const _0x42592f=_0x4dd7c2['t'],_0x28dc70=_0x51bc37['commandParams'][0x0]['value'];if(_0x28dc70){const _0x159e42=_0x2bf8f1['config']['get']('highlight.options')['find'](_0x584011=>_0x584011['model']==_0x28dc70),_0x2bcc2a=_0x42592f(_0x159e42['title'])['toLowerCase']();return{'type':'format','content':o(_0x4dd7c2,'*Set\x20highlight:*\x20%0',_0x2bcc2a),'color':{'value':_0x159e42['color'],'title':_0x159e42['title']}};}return{'type':'format','content':o(_0x4dd7c2,'*Remove\x20highlight*',o(_0x4dd7c2,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x223c7c{['afterInit'](){const _0x21a856=this['editor'];if(!_0x21a856['plugins']['has']('HorizontalLineEditing'))return;_0x21a856['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x7af012=_0x21a856['plugins']['get']('TrackChangesEditing'),_0x151380=_0x21a856['locale'];_0x7af012['descriptionFactory']['registerElementLabel']('horizontalLine',_0x57e59a=>o(_0x151380,'ELEMENT_HORIZONTAL_LINE',_0x57e59a));}}class ot extends _0x223c7c{['afterInit'](){const _0x2d52af=this['editor'];if(!_0x2d52af['plugins']['has']('HtmlEmbed'))return;const _0x2f2fbf=_0x2d52af['plugins']['get']('TrackChangesEditing'),_0x1b3293=_0x2d52af['locale'];_0x2f2fbf['descriptionFactory']['registerElementLabel']('rawHtml',_0x455b39=>o(_0x1b3293,'ELEMENT_HTML_EMBED',_0x455b39)),_0x2f2fbf['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2f2fbf['descriptionFactory']['registerDescriptionCallback'](_0x1e3897=>{if('attribute'!=_0x1e3897['type'])return;const {data:_0x724072}=_0x1e3897;if(_0x724072&&'value'==_0x724072['key']&&_0x1e3897['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3dde1b=o(_0x1b3293,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1b3293,'*Change\x20%0\x20content*',_0x3dde1b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33d97b=this['editor'],_0x332531=_0x33d97b['locale'];_0x33d97b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2da53e=>{if('formatBlock'!=_0x2da53e['type'])return;const {data:_0x4c4aaf}=_0x2da53e;if(_0x4c4aaf&&'htmlEmbed'==_0x4c4aaf['commandName']){const _0x42c5f3=o(_0x332531,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x332531,'*Change\x20%0\x20content*',_0x42c5f3)};}});}}class rt extends _0x223c7c{['afterInit'](){const _0x4be647=this['editor'];if(!_0x4be647['plugins']['has']('ImageEditing'))return;const _0x18eeed=_0x4be647['plugins']['get']('TrackChangesEditing'),_0x2b7f1b=_0x4be647['plugins']['get']('ImageUtils'),_0x1876d0=_0x4be647['locale'];_0x18eeed['enableCommand']('insertImage'),_0x18eeed['descriptionFactory']['registerElementLabel']('imageBlock',_0x3c5066=>o(_0x1876d0,'ELEMENT_IMAGE',_0x3c5066)),_0x18eeed['descriptionFactory']['registerElementLabel']('imageInline',_0x11cc60=>o(_0x1876d0,'ELEMENT_INLINE_IMAGE',_0x11cc60)),_0x18eeed['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1876d0,'ELEMENT_CAPTION')),_0x4be647['plugins']['has']('ImageUploadEditing')&&_0x18eeed['enableCommand']('uploadImage'),_0x4be647['plugins']['has']('ImageBlockEditing')&&_0x4be647['plugins']['has']('ImageInlineEditing')&&(_0x18eeed['enableCommand']('imageTypeInline',(_0x4efada,_0xc51173)=>{const _0x79d313=_0x2b7f1b['getClosestSelectedImageElement'](_0x4be647['model']['document']['selection']);_0x4be647['model']['change'](()=>{_0x18eeed['markBlockFormat'](_0x79d313,{'commandName':'imageTypeInline','commandParams':[_0xc51173]},[],'convertBlockImageToInline');});}),_0x18eeed['enableCommand']('imageTypeBlock',(_0x3a155a,_0x2643f7)=>{_0x4be647['model']['change'](_0x27d682=>{let _0x1cfb83=_0x2b7f1b['getClosestSelectedImageElement'](_0x4be647['model']['document']['selection']),_0x2d43f2=_0x27d682['createRangeOn'](_0x1cfb83);const _0x2607d2=_0x13409c['fromPosition'](_0x2d43f2['start'],'toPrevious'),_0x44ccc4=_0x13409c['fromPosition'](_0x2d43f2['end'],'toNext');_0x18eeed['forceDefaultExecution'](()=>_0x3a155a(_0x2643f7)),_0x1cfb83=_0x2b7f1b['getClosestSelectedImageElement'](_0x4be647['model']['document']['selection']),_0x2d43f2=_0x27d682['createRangeOn'](_0x1cfb83);const _0x165b0d=_0x27d682['createRange'](_0x2607d2,_0x44ccc4);_0x2607d2['detach'](),_0x44ccc4['detach'](),_0x18eeed['markBlockFormat'](_0x1cfb83,{'commandName':'imageTypeInline','commandParams':[_0x2643f7]},[],'convertInlineImageToBlock'),_0x165b0d['start']['isBefore'](_0x2d43f2['start'])&&_0x18eeed['markInsertion'](_0x27d682['createRange'](_0x165b0d['start'],_0x2d43f2['start']),'convertInlineImageToBlock'),_0x2d43f2['end']['isBefore'](_0x165b0d['end'])&&_0x18eeed['markInsertion'](_0x27d682['createRange'](_0x2d43f2['end'],_0x165b0d['end']),'convertInlineImageToBlock');});}),_0x18eeed['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x18eeed['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x18eeed['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x18eeed['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x18eeed['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x18eeed['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x899127])=>{const _0x350563=_0x18eeed['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x868ed8=_0x899127['start'],_0x439800=_0x899127['end'];const _0x1bd852=_0x4be647['model']['schema']['getNearestSelectionRange'](_0x868ed8,'backward'),_0x2eb404=_0x4be647['model']['schema']['getNearestSelectionRange'](_0x439800,'forward');_0x1bd852['isCollapsed']&&(_0x868ed8=_0x1bd852['start']),_0x2eb404['isCollapsed']&&(_0x439800=_0x2eb404['end']),_0x350563([_0x4be647['model']['createRange'](_0x868ed8,_0x439800)]);}),_0x18eeed['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x12ffdb),_0x18eeed['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x12ffdb)),_0x4be647['plugins']['has']('ImageCaptionEditing')&&(_0x18eeed['enableCommand']('toggleImageCaption',(_0x460668,_0x2a595f)=>{const _0xd5dda8=_0x4be647['plugins']['get']('ImageCaptionUtils');let _0x167ba2=_0x2b7f1b['getClosestSelectedImageElement'](_0x4be647['model']['document']['selection']),_0x51da41=_0xd5dda8['getCaptionFromImageModelElement'](_0x167ba2);_0x4be647['model']['change'](()=>{if(_0x51da41)return void _0x18eeed['markDeletion'](_0x4be647['model']['createRangeOn'](_0x51da41));const _0x2b6456=_0x2b7f1b['isBlockImage'](_0x167ba2);_0x460668(_0x2a595f),_0x167ba2=_0x2b7f1b['getClosestSelectedImageElement'](_0x4be647['model']['document']['selection']),_0x51da41=_0xd5dda8['getCaptionFromImageModelElement'](_0x167ba2),_0x18eeed['markInsertion'](_0x4be647['model']['createRangeOn'](_0x51da41),_0x2b6456?null:'imageCaption');});}),_0x18eeed['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x12ffdb));const _0x4a4888=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x36259c(_0x138724,_0x1c79fc){const _0x5aec8c=_0x4a4888['findIndex'](({type:_0x3e4f44,subType:_0x2262b0})=>_0x138724['type']==_0x3e4f44&&_0x138724['subType']==_0x2262b0),_0x4f1a4c=_0x4a4888['findIndex'](({type:_0x138d54,subType:_0x25a719})=>_0x1c79fc['type']==_0x138d54&&_0x1c79fc['subType']==_0x25a719);if(_0x5aec8c<0x0||_0x4f1a4c<0x0)return!0x1;const _0x353f9d=_0x138724['getFirstRange'](),_0x1528d3=_0x1c79fc['getFirstRange']();if((0x0==_0x5aec8c||0x1==_0x5aec8c)&&0x2==_0x4f1a4c&&_0x353f9d['isIntersecting'](_0x1528d3))return!0x0;if(0x2==_0x5aec8c&&0x3==_0x4f1a4c){const _0x159847=_0x18eeed['_findSuggestions'](_0x353f9d,'insertion')['filter'](({suggestion:_0x30d1e2,meta:_0x1af315})=>_0x1af315['isOwn']&&'convertInlineImageToBlock'==_0x30d1e2['subType']);if(_0x159847['length']>0x1&&_0x1528d3['end']['isEqual'](_0x353f9d['start']))return!0x0;if(0x1==_0x159847['length']&&(_0x353f9d['start']['isEqual'](_0x1528d3['end'])||_0x353f9d['end']['isEqual'](_0x1528d3['start'])))return!0x0;}if(0x3==_0x5aec8c&&0x3==_0x4f1a4c&&_0x353f9d['start']['isBefore'](_0x1528d3['start'])){const _0x5e30bf=_0x353f9d['end']['nodeAfter'],_0xee3d4c=_0x1528d3['start']['nodeBefore'];return _0x2b7f1b['isBlockImage'](_0x5e30bf)&&_0x5e30bf===_0xee3d4c;}return!0x1;}function _0x12ffdb(_0x945d20,_0x5a50ce){return _0x36259c(_0x945d20,_0x5a50ce)?[_0x945d20,_0x5a50ce]:_0x36259c(_0x5a50ce,_0x945d20)?[_0x5a50ce,_0x945d20]:null;}_0x4be647['plugins']['has']('ImageResize')&&(_0x18eeed['enableDefaultAttributesIntegration']('resizeImage'),_0x18eeed['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1876d0,'FORMAT_IMAGE_SIZE'))),_0x4be647['plugins']['has']('ImageTextAlternativeEditing')&&_0x18eeed['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4be647['plugins']['has']('PictureEditing')&&_0x18eeed['descriptionFactory']['registerDescriptionCallback'](_0x2403bf=>{if('attribute'!=_0x2403bf['type'])return;const {data:_0x2d1a01}=_0x2403bf;return _0x2d1a01&&'sources'==_0x2d1a01['key']?{'type':'format','content':''}:void 0x0;}),_0x4be647['plugins']['has']('ImageSizeAttributes')&&_0x18eeed['descriptionFactory']['registerDescriptionCallback'](_0x24f4e3=>{if('attribute'!=_0x24f4e3['type'])return;const {data:_0x3e04a8}=_0x24f4e3;return!_0x3e04a8||'width'!=_0x3e04a8['key']&&'height'!=_0x3e04a8['key']?void 0x0:{'type':'format','content':''};}),_0x18eeed['descriptionFactory']['registerDescriptionCallback'](_0xcde87d=>{if(!!_0x4a4888['find'](({type:_0x4e6ec3,subType:_0x16418b})=>_0xcde87d['type']==_0x4e6ec3&&_0xcde87d['subType']==_0x16418b))return _0xcde87d['previous']?{}:void 0x0;}),_0x18eeed['descriptionFactory']['registerDescriptionCallback'](_0x3c976f=>{if('insertion'==_0x3c976f['type']||'deletion'==_0x3c976f['type']){const _0x4ef507=_0x3c976f['getContainedElement']();if(_0x4ef507&&_0x4ef507['is']('element','caption'))return{'type':'insertion'==_0x3c976f['type']?'addObject':'removeObject','element':_0x4ef507,'quantity':0x1};}}),_0x18eeed['descriptionFactory']['registerDescriptionCallback'](_0xcc2177=>'formatBlock'==_0xcc2177['type']&&'convertInlineImageToBlock'==_0xcc2177['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xcc2177['type']&&'convertBlockImageToInline'==_0xcc2177['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x18eeed['descriptionFactory']['registerDescriptionCallback'](_0x3a1b84=>{if('attribute'!=_0x3a1b84['type'])return;const {data:_0x1ecf9d}=_0x3a1b84;if(!_0x1ecf9d||'alt'!=_0x1ecf9d['key'])return;const _0x196134=_0x1ecf9d['newValue'];return _0x196134?{'type':'format','content':o(_0x1876d0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x196134+'\x22')}:{'type':'format','content':o(_0x1876d0,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1873d7=this['editor'],_0x20f868=_0x1873d7['locale'];_0x1873d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd2acd9=>{if('formatBlock'!=_0xd2acd9['type']&&'formatInline'!=_0xd2acd9['type'])return;const {data:_0x203341}=_0xd2acd9;if(_0x203341){if('imageTextAlternative'==_0x203341['commandName']){const _0xed695b=_0x203341['commandParams'][0x0]['newValue'];return _0xed695b?{'type':'format','content':o(_0x20f868,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xed695b+'\x22')}:{'type':'format','content':o(_0x20f868,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x203341['commandName']){const _0x9b7c44=_0x203341['commandParams'][0x0]['width'];return _0x9b7c44?{'type':'format','content':o(_0x20f868,'*Set\x20image\x20width:*\x20%0',_0x9b7c44)}:{'type':'format','content':o(_0x20f868,'*Reset\x20image\x20width*')};}}});}}class at extends _0x223c7c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3a1696=this['editor']['locale'],_0x35c4ce=this['editor']['plugins']['get']('TrackChangesEditing');_0x35c4ce['enableDefaultAttributesIntegration']('replaceImageSource'),_0x35c4ce['descriptionFactory']['registerDescriptionCallback'](_0x11c892=>{if('attribute'!=_0x11c892['type'])return;const {data:_0x5d388a}=_0x11c892;return _0x5d388a&&'src'==_0x5d388a['key']?_0x5d388a['newValue']&&_0x5d388a['oldValue']?{'type':'format','content':o(_0x3a1696,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2819c8=this['editor']['plugins']['get']('TrackChangesEditing');_0x2819c8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2819c8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2819c8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2819c8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x342e62=this['editor'],_0x114a73=_0x342e62['locale'];_0x342e62['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a6c89=>{if('formatBlock'!=_0x2a6c89['type']&&'formatInline'!=_0x2a6c89['type'])return;const {data:_0x5927fa}=_0x2a6c89;if(!_0x5927fa||'replaceImageSource'!=_0x5927fa['commandName'])return;return{'type':'format','content':o(_0x114a73,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x223c7c{['afterInit'](){const _0x1d2511=this['editor'];if(!_0x1d2511['plugins']['has']('ImageStyleEditing'))return;const _0x1f524e=_0x1d2511['plugins']['get']('TrackChangesEditing'),_0x1a4cd9=_0x1d2511['plugins']['get']('ImageUtils'),_0x21ad3e={};_0x1f524e['enableCommand']('imageStyle',(_0x394813,_0x4eea9a)=>{const _0x14f284=_0x1d2511['plugins']['get']('Users')['me'],_0x487c49=_0x1d2511['commands']['get']('imageStyle');let _0xb2238c=_0x1a4cd9['getClosestSelectedImageElement'](_0x1d2511['model']['document']['selection']),_0x25d698=_0x1d2511['model']['createRangeOn'](_0xb2238c),_0x5baccc=_0x487c49['value'];if(_0x5baccc==_0x4eea9a['value'])return;const _0x631d98={'commandName':'imageStyle','commandParams':[_0x4eea9a],'formatGroupId':_0x180995()};_0x1d2511['model']['change'](()=>{if(_0x1f524e['getSuggestions']()['filter'](_0x3b780f=>_0x3b780f['isInContent']&&_0x14f284==_0x3b780f['author']&&('formatBlock'==_0x3b780f['type']||'formatInline'==_0x3b780f['type'])&&('imageStylePreApply'==_0x3b780f['subType']||'imageStylePostApply'==_0x3b780f['subType'])&&_0x3b780f['getFirstRange']()['isEqual'](_0x25d698))['forEach'](_0x318985=>_0x1f524e['discardSuggestion'](_0x318985['head'])),_0xb2238c=_0x1a4cd9['getClosestSelectedImageElement'](_0x1d2511['model']['document']['selection']),_0x25d698=_0x1d2511['model']['createRangeOn'](_0xb2238c),_0x487c49['refresh'](),_0x1d2511['commands']['get']('imageTypeInline')['refresh'](),_0x1d2511['commands']['get']('imageTypeBlock')['refresh'](),_0x5baccc=_0x487c49['value'],_0x5baccc!=_0x4eea9a['value'])return _0x1a4cd9['isInlineImage'](_0xb2238c)&&_0x487c49['shouldConvertImageType'](_0x4eea9a['value'],_0xb2238c)?(_0x394813({..._0x4eea9a,'setImageSizes':!0x1}),_0xb2238c=_0x1a4cd9['getClosestSelectedImageElement'](_0x1d2511['model']['document']['selection']),void _0x1f524e['markBlockFormat'](_0xb2238c,{..._0x631d98,'commandReversedParams':[{'value':_0x5baccc||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1a4cd9['isBlockImage'](_0xb2238c)?_0x1f524e['markBlockFormat'](_0xb2238c,_0x631d98,[],'imageStylePostApply'):_0x1f524e['markInlineFormat'](_0x25d698,_0x631d98,'imageStylePostApply'));});});for(const _0x1fcde2 of _0x1d2511['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x21ad3e[_0x1fcde2['name']]=_0x1fcde2['title']['toLowerCase']();_0x1f524e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1f524e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1f524e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1f524e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4f43b0])=>{_0x1a4cd9['setImageNaturalSizeAttributes'](_0x4f43b0['getContainedElement']());}),_0x1f524e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x244e40,_0x413291)=>{_0x1f524e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x244e40,{'commandName':_0x413291['commandName'],'commandParams':_0x413291['commandReversedParams']});}),_0x1f524e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x58a3d7,_0x1ef7de){if(_0x42d076(_0x58a3d7,_0x1ef7de))return[_0x58a3d7,_0x1ef7de];if(_0x42d076(_0x1ef7de,_0x58a3d7))return[_0x1ef7de,_0x58a3d7];return null;});const _0x54f266=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x42d076(_0x303713,_0x221a19){const _0x41bb3d=_0x54f266['findIndex'](({type:_0x5eae31,subType:_0x1e32a1})=>_0x303713['type']==_0x5eae31&&_0x303713['subType']==_0x1e32a1),_0x27320f=_0x54f266['findIndex'](({type:_0x5d4e0b,subType:_0x1f937f})=>_0x221a19['type']==_0x5d4e0b&&_0x221a19['subType']==_0x1f937f);if(_0x41bb3d<0x0||_0x27320f<0x0)return!0x1;const _0x4ac459=_0x303713['getFirstRange'](),_0x3a6768=_0x221a19['getFirstRange']();if((0x0==_0x41bb3d||0x1==_0x41bb3d)&&0x2==_0x27320f&&_0x4ac459['isIntersecting'](_0x3a6768))return!0x0;if(0x2==_0x41bb3d&&0x3==_0x27320f){const _0x389b8c=_0x1f524e['_findSuggestions'](_0x4ac459,'insertion')['filter'](({suggestion:_0x1cf97a,meta:_0x502089})=>_0x502089['isOwn']&&'convertInlineImageToBlock'==_0x1cf97a['subType']);if(_0x389b8c['length']>0x1&&_0x3a6768['end']['isEqual'](_0x4ac459['start']))return!0x0;if(0x1==_0x389b8c['length']&&(_0x4ac459['start']['isEqual'](_0x3a6768['end'])||_0x4ac459['end']['isEqual'](_0x3a6768['start'])))return!0x0;}if(0x3==_0x41bb3d&&0x3==_0x27320f&&_0x4ac459['start']['isBefore'](_0x3a6768['start'])){const _0x5d7acb=_0x4ac459['end']['nodeAfter'],_0x30fed0=_0x3a6768['start']['nodeBefore'];return _0x1a4cd9['isBlockImage'](_0x5d7acb)&&_0x5d7acb===_0x30fed0;}return!0x1;}_0x1d2511['model']['document']['registerPostFixer'](()=>{let _0x402848=!0x1;const _0x535279=Array['from'](_0x1d2511['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3d84c1,data:_0x29cb2d}of _0x535279){const {group:_0x2c5b87,type:_0x3c9371,subType:_0x18a029,id:_0x17de25}=_0x1f524e['_splitMarkerName'](_0x3d84c1);if('suggestion'==_0x2c5b87&&_0x1f524e['hasSuggestion'](_0x17de25)){if('formatBlock'==_0x3c9371&&('imageStylePreApply'==_0x18a029||'imageStylePostApply'==_0x18a029)){const _0x4ebb4e=_0x1f524e['getSuggestion'](_0x17de25);if(_0x29cb2d['newRange']){const _0x13666d=_0x4ebb4e['getFirstRange']()['getContainedElement']();if(_0x1a4cd9['isBlockImage'](_0x13666d))continue;_0x1f524e['discardSuggestion'](_0x4ebb4e),_0x402848=!0x0;}}if('insertion'==_0x3c9371&&'imageCaption'==_0x18a029&&!_0x29cb2d['newRange']){const _0x3d96a8=_0x1f524e['getSuggestion'](_0x17de25);_0x3d96a8['next']&&_0x3d96a8['next']['isInContent']&&(_0x1f524e['discardSuggestion'](_0x3d96a8['next']),_0x402848=!0x0);}}}return _0x402848;}),this['_registerLegacyDescription'](_0x21ad3e);}['_registerLegacyDescription'](_0x40aa53){const _0x44ac40=this['editor'],_0x13cb3e=_0x44ac40['locale'];_0x44ac40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x385077=>{if('formatBlock'!=_0x385077['type']&&'formatInline'!=_0x385077['type'])return;const {data:_0x3dcf27}=_0x385077;if(!_0x3dcf27||'imageStyle'!=_0x3dcf27['commandName'])return;const _0x1e147c=_0x3dcf27['commandParams'][0x0]['value'];return _0x3527cf('side'===_0x1e147c?o(_0x13cb3e,'FORMAT_SIDE_IMAGE'):_0x40aa53[_0x1e147c]||_0x1e147c);function _0x3527cf(_0xf3c3de){return{'type':'format','content':o(_0x13cb3e,'*Format:*\x20%0',_0xf3c3de)};}});}}class ut extends _0x223c7c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3aaa2a){super(_0x3aaa2a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x371edb=this['editor'],_0x32b24d=_0x371edb['commands']['get']('importWord'),_0x4fdf05=_0x371edb['commands']['get']('trackChanges');_0x32b24d&&(_0x32b24d['on']('execute',(_0x4681c3,[,_0x30ec3b])=>{this['_trackChangesValueDuringImport']=_0x4fdf05['value'],_0x30ec3b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x32b24d,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x32b24d,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4fdf05['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x371edb['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4511b4,_0x5295cd){const {suggestions:_0x5b8d2a}=_0x5295cd,_0x363e9e=this['editor']['commands']['get']('trackChanges'),_0x542934=_0x363e9e['value'];this['_trackChangesValueDuringImport']!==_0x542934&&(_0x363e9e['execute'](),this['_trackChangesExecuted']=!0x0),_0x5b8d2a&&_0x5b8d2a['forEach'](({id:_0x122386,type:_0x3b530a,author:_0x2162ce,created_at:_0x46e48d})=>{const _0x476e45={'id':_0x122386,'type':_0x3b530a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2162ce,'createdAt':_0x46e48d?new Date(_0x46e48d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x476e45);});}}class ft extends _0x223c7c{['afterInit'](){const _0x134d26=this['editor'],_0x88adc9=_0x134d26['plugins']['get']('TrackChangesEditing');if(_0x134d26['plugins']['has']('IndentEditing')&&(_0x88adc9['enableCommand']('indent'),_0x88adc9['enableCommand']('outdent')),_0x134d26['plugins']['has']('IndentBlock')){for(const _0x30f6e9 of['indentBlock','outdentBlock'])_0x88adc9['enableDefaultAttributesIntegration'](_0x30f6e9);}const _0x45e3d6=_0x134d26['locale'];_0x88adc9['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x45e3d6,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57f224=this['editor'],_0x59f22d=_0x57f224['locale'],_0x38ec45=_0x57f224['plugins']['get']('TrackChangesEditing');_0x38ec45['descriptionFactory']['registerDescriptionCallback'](_0x170c9c=>{if('formatBlock'!=_0x170c9c['type'])return;const {data:_0x2f1418}=_0x170c9c;if(!_0x2f1418)return;if('indentBlock'!=_0x2f1418['commandName']&&'outdentBlock'!=_0x2f1418['commandName'])return;const _0x2f0305=_0x170c9c['getItems']()[0x0],_0x4a2718=_0x38ec45['descriptionFactory']['getItemLabel'](_0x2f0305);return'indentBlock'==_0x2f1418['commandName']?{'type':'format','content':o(_0x59f22d,'*Indent:*\x20%0',_0x4a2718)}:'outdentBlock'==_0x2f1418['commandName']?{'type':'format','content':o(_0x59f22d,'*Outdent:*\x20%0',_0x4a2718)}:void 0x0;});}}class ht extends _0x223c7c{static get['requires'](){return[_0x252ac4];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x223c7c{['afterInit'](){const _0x194290=this['editor'];if(!_0x194290['plugins']['has']('LinkEditing'))return;const _0x126e0f=_0x194290['plugins']['get']('TrackChangesEditing'),_0x553d78=_0x194290['commands']['get']('link');_0x126e0f['enableDefaultAttributesIntegration']('link'),_0x126e0f['enableDefaultAttributesIntegration']('unlink');for(const _0x463749 of _0x553d78['manualDecorators'])_0x126e0f['descriptionFactory']['registerAttributeLabel'](_0x463749['id'],'link\x20('+_0x463749['label']['toLowerCase']()+')');_0x126e0f['descriptionFactory']['registerDescriptionCallback'](_0x2d822a=>{if('attribute'!=_0x2d822a['type'])return;const {data:_0xef5b09}=_0x2d822a;if(!_0xef5b09||'linkHref'!=_0xef5b09['key'])return;const _0x3ea02c=_0xef5b09['newValue'],_0x59edea=_0x194290['locale'];return{'type':'format','content':null==_0x3ea02c?o(_0x59edea,'*Remove\x20link*'):o(_0x59edea,'*Set\x20link:*\x20%0','\x22'+_0x3ea02c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x273bd2=this['editor'],_0x593ee0=_0x273bd2['locale'];_0x273bd2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b60d0=>{if('formatInline'!=_0x4b60d0['type'])return;const {data:_0x50668a}=_0x4b60d0;if(_0x50668a){if('link'==_0x50668a['commandName']){const _0x828d12=_0x50668a['commandParams'][0x0];return{'type':'format','content':o(_0x593ee0,'*Set\x20link:*\x20%0','\x22'+_0x828d12+'\x22')};}return'unlink'==_0x50668a['commandName']?{'type':'format','content':o(_0x593ee0,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x223c7c{['afterInit'](){const _0x42068d=this['editor'],_0x243927=_0x42068d['locale'];if(!_0x42068d['plugins']['has']('LegacyListEditing'))return;const _0x50a255=_0x42068d['plugins']['get']('TrackChangesEditing'),_0x216daa=_0x42068d['plugins']['has']('LegacyTodoListEditing');function _0x97dffc(_0x2e5ec5){return()=>{const _0x3d3bd6=_0x42068d['model']['document']['selection'],_0x2b5a88=_0x42068d['commands']['get'](_0x2e5ec5);if(_0x2b5a88['value'])return void _0x42068d['execute']('paragraph',{});const _0x3bbd4b=_0x2e5ec5['slice'](0x0,-0x4),_0x41b081=function(_0x29363d,_0xed863e,_0x2c56c2){let _0xf2c446=Array['from'](_0x29363d)['filter'](_0x29b0e3=>function(_0xd33692,_0x218c3b){return _0x218c3b['checkChild'](_0xd33692['parent'],'listItem')&&!_0x218c3b['isObject'](_0xd33692);}(_0x29b0e3,_0x2c56c2));_0xf2c446=_0xf2c446['filter'](_0x5584f7=>!_0x5584f7['is']('element','listItem')||_0x5584f7['getAttribute']('listType')!=_0xed863e);const _0x36beff=new Set();for(const _0x542ce8 of _0xf2c446)_0x542ce8['is']('element','listItem')?_0x36beff['add'](Le(_0x542ce8)):_0x36beff['add'](_0x542ce8);return Array['from'](_0x36beff);}(_0x3d3bd6['getSelectedBlocks'](),_0x3bbd4b,_0x42068d['model']['schema']);_0x42068d['model']['change'](()=>{for(const _0x34fb8a of _0x41b081)_0x50a255['markBlockFormat'](_0x34fb8a,{'commandName':_0x2e5ec5,'commandParams':[{'forceValue':!_0x2b5a88['value']}],'formatGroupId':'blockName'},Ee(_0x34fb8a));});};}function _0x32f246(_0x158bd8){return()=>{const _0x4a8a93=function(_0x4cc98a){let _0x575700=Array['from'](_0x4cc98a);const _0x5b60f6=_0x575700['findIndex'](_0xe5bb4d=>'listItem'!=_0xe5bb4d['name']);return _0x5b60f6>-0x1&&(_0x575700=_0x575700['slice'](0x0,_0x5b60f6)),_0x575700;}(_0x42068d['model']['document']['selection']['getSelectedBlocks']()),_0x388e0d=_0x42068d['model']['createRange'](_0x42068d['model']['createPositionAt'](_0x4a8a93[0x0],'before'),_0x42068d['model']['createPositionAt'](_0x4a8a93[_0x4a8a93['length']-0x1],'end'));_0x42068d['model']['change'](()=>{_0x50a255['markBlockFormat'](_0x388e0d,{'commandName':_0x158bd8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x140fdc){const _0x580d23=new Set();for(const _0x598bf8 of _0x140fdc){let _0x49c22f=_0x598bf8['nextSibling'];for(;_0x49c22f&&_0x49c22f['getAttribute']('listIndent')>_0x598bf8['getAttribute']('listIndent');)_0x580d23['add'](_0x49c22f),_0x49c22f=_0x49c22f['nextSibling'];}return Array['from'](_0x580d23);}(_0x4a8a93));});};}_0x50a255['enableCommand']('numberedList',_0x97dffc('numberedList')),_0x50a255['enableCommand']('bulletedList',_0x97dffc('bulletedList')),_0x216daa&&_0x50a255['enableCommand']('todoList',_0x97dffc('todoList')),_0x50a255['enableCommand']('indentList',_0x32f246('indentList')),_0x50a255['enableCommand']('outdentList',_0x32f246('outdentList')),_0x216daa&&_0x50a255['enableCommand']('checkTodoList',()=>{const _0x439787=_0x42068d['commands']['get']('checkTodoList'),_0x3bc7ab=Array['from'](_0x439787['_selectedElements']);_0x3bc7ab['filter'](_0x2aad42=>_0x2aad42['getAttribute']('todoListChecked')!=_0x439787['value']),_0x42068d['model']['change'](()=>{for(const _0x13e410 of _0x3bc7ab)_0x50a255['markBlockFormat'](_0x13e410,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x439787['value']}]});});}),_0x50a255['descriptionFactory']['registerElementLabel']('listItem',_0x25b206=>o(_0x243927,'ELEMENT_LIST_ITEM',_0x25b206)),_0x50a255['descriptionFactory']['registerDescriptionCallback'](_0x5194e9=>{if('formatBlock'!=_0x5194e9['type']&&'formatInline'!=_0x5194e9['type'])return;const {data:_0x469954}=_0x5194e9;if(_0x469954){if('numberedList'==_0x469954['commandName']||'bulletedList'==_0x469954['commandName']||'todoList'==_0x469954['commandName'])switch(_0x469954['commandName']['replace']('List','')){case'bulleted':return _0x20a74f(o(_0x243927,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x20a74f(o(_0x243927,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x20a74f(o(_0x243927,'ELEMENT_TODO_LIST'));}if('indentList'==_0x469954['commandName'])return{'type':'format','content':o(_0x243927,'*Indent:*\x20%0',o(_0x243927,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x469954['commandName'])return{'type':'format','content':o(_0x243927,'*Outdent:*\x20%0',o(_0x243927,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x469954['commandName'])return _0x469954['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x243927,'*Check\x20item*')}:{'type':'format','content':o(_0x243927,'*Uncheck\x20item*')};}function _0x20a74f(_0x4743a2){return{'type':'format','content':o(_0x243927,'*Change\x20to:*\x20%0',_0x4743a2)};}});}}function Le(_0x26f3f8){const _0x3f6cd7=_0x26f3f8['getAttribute']('listIndent');if(0x0==_0x3f6cd7)return _0x26f3f8;let _0x1c5cf8=_0x26f3f8;for(;_0x26f3f8['previousSibling']&&_0x26f3f8['previousSibling']['is']('element','listItem');){const _0xb67f10=_0x26f3f8['previousSibling']['getAttribute']('listIndent');if(_0xb67f10==_0x3f6cd7)_0x1c5cf8=_0x26f3f8['previousSibling'];else{if(_0xb67f10<_0x3f6cd7)break;}_0x26f3f8=_0x26f3f8['previousSibling'];}return _0x1c5cf8;}function Ee(_0x31a320){const _0x59bdd2=[];if(_0x31a320['is']('element','listItem')&&_0x31a320['getAttribute']('listIndent')>0x0){let _0x143dbe=_0x31a320['nextSibling'];for(;_0x143dbe&&'listItem'==_0x143dbe['name']&&_0x143dbe['getAttribute']('listIndent')==_0x31a320['getAttribute']('listIndent');)_0x59bdd2['push'](_0x143dbe),_0x143dbe=_0x143dbe['nextSibling'];}return _0x59bdd2;}class mt extends _0x223c7c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x127662=this['editor']['config']['get']('list.properties'),_0x2dba97=this['editor']['plugins']['get']('TrackChangesEditing');_0x127662['styles']&&_0x2dba97['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x127662['reversed']&&_0x2dba97['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x127662['startIndex']&&_0x2dba97['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2dba97['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x47bce6,_0x47833d={}){const _0x42dec8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37ebad=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x42dec8['markMultiRangeBlockFormat'](_0x37ebad,{'commandName':'listStyle','commandParams':[{'type':_0x47833d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5904a8,_0x631baf={}){const _0x2c56e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x107760=this['_getSuggestionBlocks'](_0x33c88b=>_0x33c88b['is']('element','listItem')&&'numbered'===_0x33c88b['getAttribute']('listType'));if(_0x107760['length']<0x1)return;const _0x80754a=_0x107760['map'](_0x4f8206=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f8206,'before'),this['editor']['model']['createPositionAt'](_0x4f8206,0x0)));this['editor']['model']['change'](()=>{_0x2c56e4['markMultiRangeBlockFormat'](_0x80754a,{'commandName':'listReversed','commandParams':[{'reversed':_0x631baf['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2b3f37,_0x37246f={}){const _0x3999ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d13af=this['_getSuggestionBlocks'](_0x2c1f49=>_0x2c1f49['is']('element','listItem')&&'numbered'===_0x2c1f49['getAttribute']('listType'));if(_0x3d13af['length']<0x1)return;const _0x1cc696=_0x3d13af['map'](_0x5efaa6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5efaa6,'before'),this['editor']['model']['createPositionAt'](_0x5efaa6,0x0)));this['editor']['model']['change'](()=>{_0x3999ea['markMultiRangeBlockFormat'](_0x1cc696,{'commandName':'listStart','commandParams':[{'startIndex':_0x37246f['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x564bf8){if('formatBlock'!=_0x564bf8['type']&&'formatInline'!=_0x564bf8['type'])return;const _0x584425=this['editor']['locale'],{data:_0x1c7e26}=_0x564bf8;if(!_0x1c7e26)return;let _0x399da8,_0x183d28;switch(_0x1c7e26['commandName']){case'listStyle':_0x399da8='*Change\x20to:*\x20%0',_0x183d28={'type':'format','content':o(_0x584425,_0x399da8,o(_0x584425,this['_getTranslationKeyForListStyle'](_0x1c7e26['commandParams'][0x0]['type'])))};break;case'listReversed':_0x399da8=_0x1c7e26['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x183d28={'type':'format','content':o(_0x584425,_0x399da8)};break;case'listStart':_0x399da8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x183d28={'type':'format','content':o(_0x584425,_0x399da8,_0x1c7e26['commandParams'][0x0]['startIndex'])};}return _0x183d28;}['_getSuggestionBlocksForListStyle'](){const _0x21a511=this['editor']['plugins']['get']('LegacyListUtils');let _0x50449a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x50449a[0x0]?.['is']('element','listItem')&&_0x50449a['unshift'](..._0x21a511['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x50449a[_0x50449a['length']-0x1]?.['is']('element','listItem')&&_0x50449a['push'](..._0x21a511['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x50449a=[...new Set(_0x50449a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x50449a=_0x50449a['filter'](_0x44e052=>_0x44e052['is']('element','listItem'))),_0x50449a;}['_getSuggestionBlocks'](_0x510ae2){const _0x3e04c8=this['editor']['plugins']['get']('LegacyListUtils');let _0x58b29d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x510ae2)['map'](_0x39127c=>{const _0x98ee9a=this['editor']['model']['createPositionAt'](_0x39127c,0x0);return[..._0x3e04c8['getSiblingNodes'](_0x98ee9a,'backward'),..._0x3e04c8['getSiblingNodes'](_0x98ee9a,'forward')];})['flat']();return _0x58b29d=[...new Set(_0x58b29d)],_0x58b29d;}['_getTranslationKeyForListStyle'](_0x3628ed){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3628ed)||'default')['toUpperCase']()+'_LIST_'+_0x3628ed['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x223c7c{['afterInit'](){const _0x3bcf97=this['editor'];if(!_0x3bcf97['plugins']['has']('MediaEmbedEditing'))return;const _0x296aa3=_0x3bcf97['plugins']['get']('TrackChangesEditing'),_0x11e7bd=_0x3bcf97['locale'];_0x296aa3['enableCommand']('mediaEmbed'),_0x296aa3['descriptionFactory']['registerElementLabel']('media',_0x1b8b66=>o(_0x11e7bd,'ELEMENT_MEDIA',_0x1b8b66));}}class pt extends _0x223c7c{['afterInit'](){const _0x3e735b=this['editor'];_0x3e735b['plugins']['has']('MentionEditing')&&_0x3e735b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x223c7c{['afterInit'](){const _0x3b3d9e=this['editor'];if(!_0x3b3d9e['plugins']['has']('MergeFieldsEditing'))return;const _0x16f656=_0x3b3d9e['plugins']['get']('TrackChangesEditing'),_0x389519=_0x3b3d9e['locale'];_0x16f656['enableCommand']('insertMergeField'),_0x16f656['enableCommand']('insertMergeFieldBlock'),_0x16f656['enableCommand']('insertMergeFieldImage'),_0x16f656['descriptionFactory']['registerElementLabel']('mergeField',_0x344d2e=>o(_0x389519,'ELEMENT_MERGE_FIELD',_0x344d2e)),_0x16f656['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x632246=>o(_0x389519,'ELEMENT_MERGE_FIELD',_0x632246)),_0x16f656['descriptionFactory']['registerDescriptionCallback'](_0x4f05c7=>{if('insertion'!=_0x4f05c7['type']&&'deletion'!=_0x4f05c7['type'])return;const _0x7930e2=_0x4f05c7['getContainedElement']();if(null==_0x7930e2)return;const _0x570ce3=_0x3b3d9e['plugins']['get']('MergeFieldsEditing');let _0x3daa85;switch(_0x570ce3['getMergeFieldType'](_0x7930e2)){case null:return;case'image':{const _0x100d69=_0x570ce3['unwrapAffixes'](_0x7930e2['getAttribute']('src'));_0x3daa85=_0x570ce3['getLabel'](_0x100d69)||_0x100d69;break;}default:{const _0x4262db=_0x7930e2['getAttribute']('id');_0x3daa85=_0x570ce3['getLabel'](_0x4262db)||_0x4262db;break;}}return'insertion'==_0x4f05c7['type']?{'type':'insertion','content':o(_0x389519,'*Insert:*\x20%0','\x22'+_0x3daa85+'\x22\x20'+o(_0x389519,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x389519,'*Remove:*\x20%0','\x22'+_0x3daa85+'\x22\x20'+o(_0x389519,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x223c7c{['afterInit'](){const _0xedb4a3=this['editor'],_0x534b32=_0xedb4a3['plugins']['get']('TrackChangesEditing');_0xedb4a3['plugins']['has']('MultiLevelList')&&(_0x534b32['enableDefaultAttributesIntegration']('multiLevelList'),_0x534b32['descriptionFactory']['registerDescriptionCallback'](_0x5ab5f0=>this['handleDescriptions'](_0x5ab5f0)));}['handleDescriptions'](_0x1e7795){const _0x499389=this['editor']['locale'],{data:_0x250657}=_0x1e7795,_0x407c07={'type':'format','content':''};if(_0x250657&&'listMarkerStyle'==_0x250657['key']){if(!_0x250657['oldValue'])return{'type':'format','content':o(_0x499389,'*Set\x20format:*\x20%0',o(_0x499389,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x250657['newValue']+')'};if(!_0x250657['newValue']){let _0x5555a7=_0x1e7795['head'];for(;_0x5555a7;){if(_0x5555a7['data']&&'listType'==_0x5555a7['data']['key']&&_0x5555a7['data']['newValue'])return _0x407c07;_0x5555a7=_0x5555a7['next'];}return{'type':'format','content':o(_0x499389,'*Remove\x20format:*\x20%0',o(_0x499389,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x250657['oldValue']+')'};}}}}class bt extends _0x223c7c{['afterInit'](){const _0x1f60af=this['editor'];if(!_0x1f60af['plugins']['has']('PageBreakEditing'))return;_0x1f60af['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x41a1da=_0x1f60af['plugins']['get']('TrackChangesEditing'),_0x27fcbd=_0x1f60af['locale'];_0x41a1da['descriptionFactory']['registerElementLabel']('pageBreak',_0x2a13f4=>o(_0x27fcbd,'ELEMENT_PAGE_BREAK',_0x2a13f4));}}class yt extends _0x223c7c{['afterInit'](){const _0x3c830e=this['editor'];if(!_0x3c830e['plugins']['has']('Paragraph'))return;const _0x39e496=_0x3c830e['locale'],_0x4e4d3a=_0x3c830e['plugins']['get']('TrackChangesEditing');_0x4e4d3a['descriptionFactory']['registerElementLabel']('paragraph',_0xc164ef=>o(_0x39e496,'ELEMENT_PARAGRAPH',_0xc164ef)),_0x4e4d3a['enableDefaultAttributesIntegration']('paragraph'),_0x4e4d3a['enableCommand']('insertParagraph');const _0x2be0cb=_0x4e4d3a['descriptionFactory'];_0x2be0cb['registerDescriptionCallback'](_0x5ec030=>{if('insertion'!==_0x5ec030['type'])return;const {start:_0xe645e4,end:_0x493ad6}=_0x5ec030['getFirstRange']();if(!_0xe645e4['isTouching'](_0x493ad6)||!_0xe645e4['nodeAfter'])return;const _0x4b4361=_0x3c830e['model']['schema'],_0x5671a1=_0xe645e4['nodeAfter'];return _0x4b4361['isBlock'](_0x5671a1)&&!_0x4b4361['isLimit'](_0x5671a1)&&_0x4b4361['checkChild'](_0x5671a1,'$text')?{'type':'insertion','content':o(_0x39e496,'*Insert:*\x20%0',_0x2be0cb['getItemLabel'](_0x5671a1,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1df616=this['editor'],_0x237bc2=_0x1df616['locale'];_0x1df616['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d86b4=>{if('formatBlock'!=_0x5d86b4['type'])return;const {data:_0x308a1d}=_0x5d86b4;return _0x308a1d&&'paragraph'==_0x308a1d['commandName']?{'type':'format','content':o(_0x237bc2,'*Change\x20to:*\x20%0',o(_0x237bc2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x223c7c{['afterInit'](){const _0x1b4dc0=this['editor'];_0x1b4dc0['commands']['get']('replaceSource')&&_0x1b4dc0['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x223c7c{['afterInit'](){const _0x486871=this['editor'];if(!_0x486871['plugins']['has']('RemoveFormatEditing'))return;_0x486871['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bf97d=this['editor'];_0x4bf97d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b1256=>{if('formatBlock'!=_0x4b1256['type']&&'formatInline'!=_0x4b1256['type'])return;const {data:_0x4fb69d}=_0x4b1256;return _0x4fb69d&&'removeFormat'==_0x4fb69d['commandName']?{'type':'format','content':o(_0x4bf97d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x223c7c{['afterInit'](){const _0x4586ab=this['editor'];if(!_0x4586ab['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x524da2=_0x4586ab['plugins']['get']('TrackChangesEditing');_0x524da2['enableCommand']('goToPreviousRestrictedEditingException'),_0x524da2['enableCommand']('goToNextRestrictedEditingException');const _0x34ca61=_0x4586ab['plugins']['get']('RestrictedEditingModeEditing');_0x34ca61['enableCommand']('trackChanges'),_0x34ca61['enableCommand']('acceptSuggestion'),_0x34ca61['enableCommand']('discardSuggestion'),_0x34ca61['enableCommand']('acceptAllSuggestions'),_0x34ca61['enableCommand']('discardAllSuggestions'),_0x34ca61['enableCommand']('acceptSelectedSuggestions'),_0x34ca61['enableCommand']('discardSelectedSuggestions');}}class At extends _0x223c7c{['afterInit'](){const _0x29ebac=this['editor'];if(!_0x29ebac['plugins']['has']('ShiftEnter'))return;const _0x33c665=_0x29ebac['plugins']['get']('TrackChangesEditing');_0x33c665['enableCommand']('shiftEnter'),_0x33c665['descriptionFactory']['registerElementLabel']('softBreak',_0x60f299=>o(_0x29ebac['locale'],'ELEMENT_LINE_BREAK',_0x60f299));}}function an(_0x1da100,_0x4800a3,_0x36f7d0){const _0x33291f=[];for(const _0x26bbc3 of _0x4800a3['getItems']())_0x26bbc3['hasAttribute'](_0x1da100)&&_0x33291f['push'](_0x36f7d0['createRangeOn'](_0x26bbc3));return _0x33291f;}class _t extends _0x223c7c{['afterInit'](){const _0x2400d5=this['editor'],_0x274ed1=_0x2400d5['plugins']['get']('TrackChangesEditing');_0x2400d5['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x274ed1['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x231568=this['editor'],_0x364c53=_0x231568['model'],_0x395eb7=_0x231568['locale'],_0x5f3297=_0x231568['plugins']['get']('TrackChangesEditing'),_0x1f8117='restrictedEditingException',_0x418cb2=_0x231568['commands']['get'](_0x1f8117);_0x5f3297['enableCommand'](_0x1f8117,(_0x2d2390,_0x36bf4f={})=>{const _0x20020d=_0x364c53['document']['selection'];if(_0x20020d['isCollapsed'])return void _0x2d2390(_0x36bf4f);const _0x2e1533=void 0x0!==_0x36bf4f['forceValue']?_0x36bf4f['forceValue']:!_0x418cb2['value'];_0x364c53['change'](()=>{const _0x309e52=Array['from'](_0x20020d['getRanges']());for(const _0x33bbb3 of _0x309e52){const _0x185771=_0x2e1533?[_0x33bbb3]:an(_0x1f8117,_0x33bbb3,_0x364c53);for(const _0x2930bd of _0x185771)_0x5f3297['markInlineFormat'](_0x2930bd,{'commandName':_0x1f8117,'commandParams':[{'forceValue':_0x2e1533}]});}});}),_0x5f3297['descriptionFactory']['registerDescriptionCallback'](_0x4eab0f=>{if('formatBlock'!=_0x4eab0f['type']&&'formatInline'!=_0x4eab0f['type'])return;const {data:_0x234d77}=_0x4eab0f;return _0x234d77&&_0x234d77['commandName']==_0x1f8117?_0x234d77['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x395eb7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x395eb7,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x450bf9=this['editor'],_0xc2f197=_0x450bf9['locale'],_0x4b14bc=_0x450bf9['plugins']['get']('TrackChangesEditing'),_0x2eb66e='restrictedEditingExceptionBlock',_0x56348f=this['editor']['commands']['get'](_0x2eb66e);_0x4b14bc['enableCommand'](_0x2eb66e,(_0x28ceb8,_0x41b586={})=>{const _0x28baed=this['editor']['model']['document']['selection'],_0x27d84d=_0x41b586&&void 0x0!==_0x41b586['forceValue']?_0x41b586['forceValue']:!_0x56348f['value'];let _0x590d33=[];if(_0x27d84d){const _0x4bfb4d=Array['from'](_0x28baed['getSelectedBlocks']())['filter'](_0xe4a443=>function(_0x412cc7){return!!_0x412cc7['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0xe4a443)||function(_0x19c6ef,_0x143293){const _0x38e230=_0x143293['createContext'](_0x19c6ef['parent']);if(!_0x143293['checkChild'](_0x38e230,'restrictedEditingException'))return!0x1;if(!_0x143293['checkChild'](_0x38e230['push']('restrictedEditingException'),_0x19c6ef))return!0x1;return!0x0;}(_0xe4a443,this['editor']['model']['schema']));_0x590d33=to(_0x4bfb4d,_0x450bf9['model']);}else{const _0x1d8616=Array['from'](_0x28baed['getSelectedBlocks']())['map'](_0x27667c=>function(_0x1d6ae7){let _0x69f26=_0x1d6ae7;for(;_0x69f26['parent'];){if('restrictedEditingException'==_0x69f26['parent']['name'])return _0x69f26;_0x69f26=_0x69f26['parent'];}return null;}(_0x27667c))['filter'](_0x33ffd0=>!!_0x33ffd0);_0x590d33=to(_0x1d8616,_0x450bf9['model']);}_0x450bf9['model']['change'](()=>{for(const _0x49a293 of _0x590d33)_0x4b14bc['markBlockFormat'](_0x49a293,{'commandName':_0x2eb66e,'commandParams':[{'forceValue':_0x27d84d}]});});}),_0x4b14bc['descriptionFactory']['registerDescriptionCallback'](_0x4b6a49=>{const {data:_0x5c628d}=_0x4b6a49;if(_0x5c628d&&_0x5c628d['commandName']==_0x2eb66e)return _0x5c628d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc2f197,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xc2f197,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x223c7c{['afterInit'](){const _0x46be8c=this['editor'];if(!_0x46be8c['plugins']['has']('Style')||!_0x46be8c['plugins']['has']('DataSchema'))return;const _0x376404=_0x46be8c['plugins']['get']('TrackChangesEditing'),_0x493374=_0x46be8c['locale'],_0x5e5160=_0x46be8c['config']['get']('style')||{},_0x5745b2=_0x46be8c['plugins']['get']('GeneralHtmlSupport'),_0x3e61f0=_0x46be8c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x46be8c['plugins']['get']('DataSchema'),_0x5e5160['definitions']);_0x376404['enableDefaultAttributesIntegration']('style');const _0xb874fe=new Set();for(const _0x1f7bd0 of _0x3e61f0['block']){const _0x27ba00=_0x5745b2['getGhsAttributeNameForElement'](_0x1f7bd0['element']);_0xb874fe['add'](_0x27ba00);}const _0x2d7629=new Set();for(const _0x3937a8 of _0x3e61f0['inline']){const _0x2b7628=_0x5745b2['getGhsAttributeNameForElement'](_0x3937a8['element']);_0x2d7629['add'](_0x2b7628);for(const _0x5f70b8 of _0x3937a8['ghsAttributes'])_0x2d7629['add'](_0x5f70b8);}for(const _0x40839e of _0xb874fe)_0x376404['descriptionFactory']['registerAttributeLabel'](_0x40839e,o(_0x493374,'FORMAT_STYLE'));for(const _0x3f618f of _0x2d7629)_0x376404['descriptionFactory']['registerAttributeLabel'](_0x3f618f,o(_0x493374,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x474748=this['editor'],_0x11a33b=_0x474748['locale'];_0x474748['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x326a7d=>{if('formatBlock'!=_0x326a7d['type']&&'formatInline'!=_0x326a7d['type'])return;const {data:_0x5b8870}=_0x326a7d;return _0x5b8870&&'style'===_0x5b8870['commandName']?_0x5b8870['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11a33b,'*Set\x20format:*\x20%0',_0x5b8870['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x11a33b,'*Remove\x20format:*\x20%0',_0x5b8870['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x223c7c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x51e4f5){super(_0x51e4f5),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x304d6f=this['editor'],_0x47651d=_0x304d6f['model']['document']['selection'];if(!_0x304d6f['plugins']['has']('TableEditing'))return;const _0x34330b=_0x304d6f['locale'],_0x5e6397=_0x304d6f['plugins']['get']('TrackChangesEditing'),_0x379e5d=_0x304d6f['plugins']['get']('TableUtils');_0x5e6397['descriptionFactory']['registerElementLabel']('table',_0x5c0fb7=>o(_0x34330b,'ELEMENT_TABLE',_0x5c0fb7)),this['_setupColumnsRowsFixing'](),_0x5e6397['enableCommand']('insertTable'),_0x5e6397['enableCommand']('selectTableRow'),_0x5e6397['enableCommand']('selectTableColumn');for(const _0x16cf4c of['insertTableRowAbove','insertTableRowBelow']){const _0x27ad14=_0x304d6f['commands']['get'](_0x16cf4c);_0x5e6397['enableCommand'](_0x16cf4c,_0x308b3b=>{_0x304d6f['model']['change'](_0x1a82b9=>{_0x308b3b();const _0x420a0e='above'===_0x27ad14['order'],_0x14bfee=_0x379e5d['getSelectionAffectedTableCells'](_0x47651d),_0x3a1ded=_0x379e5d['getRowIndexes'](_0x14bfee),_0x88c96d=_0x420a0e?_0x3a1ded['first']-0x1:_0x3a1ded['last']+0x1,_0x567cc7=_0x14bfee[0x0]['findAncestor']('table'),_0xb33fcb=_0x379e5d['createTableWalker'](_0x567cc7,{'startRow':_0x88c96d,'endRow':_0x88c96d}),_0x363573=Array['from'](_0xb33fcb)['map'](_0x3ef516=>_0x1a82b9['createRangeOn'](_0x3ef516['cell']));_0x5e6397['markMultiRangeInsertion'](_0x363573,'tableRow');});});}for(const _0x5d7fb6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2f0f83=_0x304d6f['commands']['get'](_0x5d7fb6);_0x5e6397['enableCommand'](_0x5d7fb6,_0x5d3438=>{_0x304d6f['model']['change'](_0x5b08b4=>{_0x5d3438();const _0x42fb60='left'===_0x2f0f83['order'],_0x56fada=_0x379e5d['getSelectionAffectedTableCells'](_0x47651d),_0x1339d5=_0x379e5d['getColumnIndexes'](_0x56fada),_0x35a423=_0x42fb60?_0x1339d5['first']-0x1:_0x1339d5['last']+0x1,_0x380a35=_0x56fada[0x0]['findAncestor']('table'),_0x3bbe31=_0x379e5d['createTableWalker'](_0x380a35,{'startRow':0x0,'column':_0x35a423,'includeAllSlots':!0x1}),_0x3da73f=Array['from'](_0x3bbe31)['map'](_0x3ccfa8=>_0x5b08b4['createRangeOn'](_0x3ccfa8['cell']));_0x5e6397['markMultiRangeInsertion'](_0x3da73f,'tableColumn');});});}for(const _0x37862f of['removeTableRow','removeTableColumn']){const _0x4111bf=_0x37862f['substr'](0xb),_0x194c77=_0x4111bf['toLowerCase'](),_0x1c92f2=_0x194c77['substr'](0x0,0x3)+'span',_0x65163d='table'+_0x4111bf,_0x4fb714='min'+_0x4111bf,_0x4c2000='max'+_0x4111bf;_0x5e6397['enableCommand'](_0x37862f,()=>{_0x304d6f['model']['change'](_0x2be286=>{const _0x3f30c1=_0x379e5d['getSelectionAffectedTableCells'](_0x47651d),_0x46431b=_0x3f30c1[0x0]['findAncestor']('table');let _0x54c678;if('removeTableRow'==_0x37862f){const _0x51356a=_0x379e5d['getRowIndexes'](_0x3f30c1);_0x54c678={'startRow':_0x51356a['first'],'endRow':_0x51356a['last'],'includeAllSlots':!0x0};}else{const _0xa9f5e7=_0x379e5d['getColumnIndexes'](_0x3f30c1);_0x54c678={'startColumn':_0xa9f5e7['first'],'endColumn':_0xa9f5e7['last'],'includeAllSlots':!0x0};}const _0x1aa6ba=_0x379e5d['createTableWalker'](_0x46431b,_0x54c678),_0x42c523=Array['from'](_0x1aa6ba)['map'](({cell:_0x1315d0})=>_0x1315d0),_0x528b19=_e(_0x42c523['filter'](_0x1e9c3c=>_0x1e9c3c['hasAttribute'](_0x1c92f2))),_0x45d96f=_e(_0x42c523['filter'](_0x469bde=>!_0x469bde['hasAttribute'](_0x1c92f2)))['map'](_0x399606=>_0x2be286['createRangeOn'](_0x399606)),_0x449277=_0x5e6397['markMultiRangeDeletion'](_0x45d96f,_0x65163d);if(_0x449277&&('tableRow'==_0x449277['subType']||'tableColumn'==_0x449277['subType'])){const _0x20ff15=this['_getSuggestionCoords'](_0x449277);for(const _0x54572e of _0x528b19){const _0x169294=_0x2be286['createRangeOn'](_0x54572e),_0x42dddd=_0x379e5d['getCellLocation'](_0x54572e),_0x170627=_0x54572e['getAttribute'](_0x1c92f2)-0x1,_0x15cdab=_0x20ff15[_0x4fb714],_0x5190ea=_0x20ff15[_0x4c2000];_0x15cdab<=_0x42dddd[_0x194c77]&&_0x42dddd[_0x194c77]+_0x170627<=_0x5190ea&&_0x449277['addRange'](_0x169294);}}});});}function _0x436043(_0x3281d6){const _0x2d1ede=Array['from'](_0x47651d['getRanges']())['map'](_0x4c414a=>_0xfdd8dd['fromRange'](_0x4c414a));_0x304d6f['model']['change'](_0x3222df=>{const _0x3aca1a=_0x3222df['batch'];_0x3281d6=_0x3281d6['filter'](_0x29941b=>'$graveyard'!=_0x29941b['root']['rootName']),_0x3222df['setSelection'](_0x3281d6),_0x304d6f['commands']['get']('removeTableRow')['refresh'](),_0x304d6f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x304d6f['model']['enqueueChange'](()=>{_0x304d6f['model']['enqueueChange'](_0x3aca1a,_0x476b1c=>{const _0x2ee947=_0x2d1ede['filter'](_0x4ad696=>'$graveyard'!=_0x4ad696['root']['rootName']);_0x2ee947['length']>0x0&&_0x476b1c['setSelection'](_0x2ee947);for(const _0x56da3d of _0x2d1ede)_0x56da3d['detach']();});});});}function _0x3575b7(_0x41896b){_0x304d6f['model']['change'](_0xf9ee76=>{const _0x449dc3=Array['from'](_0x47651d['getRanges']())['map'](_0x184dcb=>_0xfdd8dd['fromRange'](_0x184dcb)),_0x4d0b30=[];for(const _0x234f32 of _0x41896b)for(const _0x445d2f of _0x234f32['getItems']({'shallow':!0x0}))_0x4d0b30['push'](_0x445d2f);for(const _0x3f1f10 of _0x4d0b30)'$graveyard'!=_0x3f1f10['root']['rootName']&&(_0xf9ee76['setSelection'](_0xf9ee76['createPositionAt'](_0x3f1f10,0x0)),_0x304d6f['commands']['get']('removeTableColumn')['refresh'](),_0x304d6f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x33a68e=_0x449dc3['filter'](_0xcb4b4c=>'$graveyard'!=_0xcb4b4c['root']['rootName']);_0x33a68e['length']>0x0&&_0xf9ee76['setSelection'](_0x33a68e);for(const _0x55ea5b of _0x449dc3)_0x55ea5b['detach']();});}function _0xd56f37(_0x126f38,_0x131bb8){return _0x131bb8['every'](_0x15b798=>_0x126f38['some'](_0x11769a=>_0x11769a['end']['isEqual'](_0x15b798['start'])||_0x15b798['end']['isEqual'](_0x11769a['start'])));}function _0x59528a(_0x56f7ef,_0x466080){return!_0x56f7ef['some'](_0xae073f=>_0x466080['some'](_0x23de6d=>_0xae073f['isIntersecting'](_0x23de6d)))&&_0x56f7ef['some'](_0x1e1de7=>_0x466080['some'](_0x470130=>_0x1e1de7['end']['isTouching'](_0x470130['start'])));}_0x5e6397['descriptionFactory']['registerDescriptionCallback'](_0x182758=>{if('insertion'!=_0x182758['type']&&'deletion'!=_0x182758['type'])return;const _0x535881=_0x182758['getContainedElement']();if(null!=_0x535881&&_0x535881['is']('element','table')){if('insertion'==_0x182758['type']){const _0x1d4374=_0x182758['getItems']()['filter'](_0xce6b1b=>_0xce6b1b['is']('$textProxy'))['map'](_0xcae570=>_0xcae570['data']);if(_0x1d4374['length'])return{'type':'insertion','content':o(_0x34330b,'*Insert:*\x20%0',o(_0x34330b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1d4374['join']('\x20')+'\x22'))};}if('deletion'==_0x182758['type']){const _0x269ec7=_0x182758['getItems']()['filter'](_0x4400b9=>_0x4400b9['is']('$textProxy'))['map'](_0x15af67=>_0x15af67['data']);if(_0x269ec7['length'])return{'type':'deletion','content':o(_0x34330b,'*Remove:*\x20%0',o(_0x34330b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x269ec7['join']('\x20')+'\x22'))};}}}),_0x5e6397['descriptionFactory']['registerDescriptionCallback'](_0x7c6fcc=>{if('tableRow'==_0x7c6fcc['subType']){const _0x42ffeb=_0x7c6fcc['getItems']()['filter'](_0x727f0c=>_0x727f0c['is']('$textProxy'))['map'](_0x6cb320=>_0x6cb320['data']),_0x1ae191=this['_getSuggestionCoords'](_0x7c6fcc),_0x25e842=_0x1ae191['maxRow']-_0x1ae191['minRow']+0x1;if('insertion'==_0x7c6fcc['type'])return _0x42ffeb['length']?{'type':'insertion','content':o(_0x34330b,'*Insert:*\x20%0',o(_0x34330b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x25e842,'\x22'+_0x42ffeb['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x34330b,'*Insert:*\x20%0',o(_0x34330b,'ELEMENT_TABLE_ROW',_0x25e842))};if('deletion'==_0x7c6fcc['type'])return _0x42ffeb['length']?{'type':'deletion','content':o(_0x34330b,'*Remove:*\x20%0',o(_0x34330b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x25e842,'\x22'+_0x42ffeb['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x34330b,'*Remove:*\x20%0',o(_0x34330b,'ELEMENT_TABLE_ROW',_0x25e842))};}if('tableColumn'==_0x7c6fcc['subType']){const _0x37a282=_0x7c6fcc['getItems']()['filter'](_0x5a64cf=>_0x5a64cf['is']('$textProxy'))['map'](_0x580d87=>_0x580d87['data']),_0x2b447e=this['_getSuggestionCoords'](_0x7c6fcc),_0x1c8655=_0x2b447e['maxColumn']-_0x2b447e['minColumn']+0x1;if('insertion'==_0x7c6fcc['type'])return _0x37a282['length']?{'type':'insertion','content':o(_0x34330b,'*Insert:*\x20%0',o(_0x34330b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1c8655,'\x22'+_0x37a282['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x34330b,'*Insert:*\x20%0',o(_0x34330b,'ELEMENT_TABLE_COLUMN',_0x1c8655))};if('deletion'==_0x7c6fcc['type'])return _0x37a282['length']?{'type':'deletion','content':o(_0x34330b,'*Remove:*\x20%0',o(_0x34330b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1c8655,'\x22'+_0x37a282['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x34330b,'*Remove:*\x20%0',o(_0x34330b,'ELEMENT_TABLE_COLUMN',_0x1c8655))};}}),_0x5e6397['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x436043),_0x5e6397['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x436043),_0x5e6397['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3575b7),_0x5e6397['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3575b7),_0x5e6397['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xd56f37),_0x5e6397['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xd56f37),_0x5e6397['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x59528a),_0x5e6397['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x59528a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x56c153=this['editor'],_0x36bd79=_0x56c153['model']['document']['selection'];return(_0x23509f,_0xd466f8)=>{_0x56c153['model']['change'](_0x2abc12=>{const {commandName:_0x5d1a10,commandParams:_0x46e93b}=_0xd466f8;let _0x57c006=_0x23509f[0x0]['end']['nodeBefore'];_0x46e93b&&_0x46e93b[0x0]&&!0x1===_0x46e93b[0x0]['forceValue']&&(_0x57c006=_0x23509f[0x0]['start']['nodeAfter']);const _0x5eda8d=_0x2abc12['createRangeIn'](_0x57c006);if('$graveyard'==_0x5eda8d['root']['rootName'])return;const _0x14e893=Array['from'](_0x36bd79['getRanges']())['map'](_0x104750=>_0xfdd8dd['fromRange'](_0x104750));_0x2abc12['setSelection'](_0x5eda8d),_0x56c153['commands']['get'](_0x5d1a10)['refresh'](),_0x46e93b['push']({'forceDefaultExecution':!0x0}),_0x56c153['execute'](_0x5d1a10,..._0x46e93b);const _0x4b7349=_0x14e893['filter'](_0x1e0bdb=>'$graveyard'!=_0x1e0bdb['root']['rootName']);_0x4b7349['length']>0x0&&_0x2abc12['setSelection'](_0x4b7349);for(const _0x383a02 of _0x14e893)_0x383a02['detach']();});};}['_getCoordsForCells'](_0x98fc7b){const _0x4ee2e4=this['editor']['plugins']['get']('TableUtils');let _0x1968c9=Number['MAX_SAFE_INTEGER'],_0x44181c=Number['MIN_SAFE_INTEGER'],_0x1eb46c=Number['MAX_SAFE_INTEGER'],_0x156932=Number['MIN_SAFE_INTEGER'];for(const _0x3f85c1 of _0x98fc7b){if('$graveyard'==_0x3f85c1['root']['rootName'])continue;const {row:_0x173382,column:_0x3180e8}=_0x4ee2e4['getCellLocation'](_0x3f85c1),_0xc298d9=_0x3f85c1['hasAttribute']('rowspan')?_0x3f85c1['getAttribute']('rowspan')-0x1:0x0,_0x35b9ad=_0x3f85c1['hasAttribute']('colspan')?_0x3f85c1['getAttribute']('colspan')-0x1:0x0;_0x1968c9=_0x173382<_0x1968c9?_0x173382:_0x1968c9,_0x44181c=_0x173382+_0xc298d9>_0x44181c?_0x173382+_0xc298d9:_0x44181c,_0x1eb46c=_0x3180e8<_0x1eb46c?_0x3180e8:_0x1eb46c,_0x156932=_0x3180e8+_0x35b9ad>_0x156932?_0x3180e8+_0x35b9ad:_0x156932;}return{'minRow':_0x1968c9,'maxRow':_0x44181c,'minColumn':_0x1eb46c,'maxColumn':_0x156932};}['_setupColumnsRowsFixing'](){const _0x6e6ef5=this['editor'],_0x18eb5c=_0x6e6ef5['plugins']['get']('TrackChangesEditing'),_0x4f275e=_0x6e6ef5['plugins']['get']('TableUtils');_0x6e6ef5['model']['document']['on']('change:data',()=>{const _0x156ff5=Array['from'](_0x6e6ef5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x529225,data:_0x4a259d}of _0x156ff5){const {group:_0xe2488,id:_0x1de298,subType:_0x458138}=_0x18eb5c['_splitMarkerName'](_0x529225);if('suggestion'!=_0xe2488)continue;if(null!=_0x4a259d['oldRange'])continue;const _0x3fecae=_0x18eb5c['getSuggestion'](_0x1de298);this['_tablePostFixingSubtypes']['includes'](_0x458138)&&this['_tableSuggestions']['add'](_0x3fecae);}},{'priority':'low'});const _0x2a5582=(_0x63e33f,_0x2e271c)=>{let _0x222ab0=!0x1;const _0x4eba18=_0x2e271c['createRangeOn'](_0x63e33f),_0x472101=_0x63e33f['findAncestor']('table'),_0x2ec5f9=_0x4f275e['getCellLocation'](_0x63e33f);for(const _0x154781 of this['_tableSuggestions']){const _0x1e2554=_0x154781['subType'],_0x39101e=_0x1e2554['startsWith']('tablePaste'),_0x13d77e=_0x1e2554['substr'](_0x39101e?0xa:0x5),_0x529555=_0x13d77e['toLowerCase'](),_0x29146e=_0x529555['substr'](0x0,0x3)+'span',_0x8add7e='min'+_0x13d77e,_0x2d1655='max'+_0x13d77e;if(!_0x154781['isInContent'])continue;if(_0x472101!=_0x154781['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x154781['isIntersectingWithRange'](_0x4eba18))continue;const _0x36fb52=_0x63e33f['hasAttribute'](_0x29146e)?_0x63e33f['getAttribute'](_0x29146e)-0x1:0x0,_0x2feb35=this['_getSuggestionCoords'](_0x154781),_0x391594=_0x2feb35[_0x8add7e],_0x2d8288=_0x2feb35[_0x2d1655];_0x391594<=_0x2ec5f9[_0x529555]&&_0x2ec5f9[_0x529555]+_0x36fb52<=_0x2d8288&&(_0x154781['addRange'](_0x4eba18),_0x222ab0=!0x0);}return _0x222ab0;};_0x6e6ef5['model']['document']['registerPostFixer'](_0x5a420a=>{let _0x2d279a=!0x1;for(const _0x28372b of _0x6e6ef5['model']['document']['differ']['getChanges']())if('insert'==_0x28372b['type']){if('tableRow'==_0x28372b['name']){for(const _0x17c8e1 of _0x28372b['position']['nodeAfter']['getChildren']())_0x2d279a=_0x2d279a||_0x2a5582(_0x17c8e1,_0x5a420a);}else'tableCell'==_0x28372b['name']&&(_0x2d279a=_0x2d279a||_0x2a5582(_0x28372b['position']['nodeAfter'],_0x5a420a));}return _0x2d279a;});}['_getSuggestionCoords'](_0x387160){return this['_getCoordsForCells'](_0x387160['getRanges']()['map'](_0x46ad1=>_0x46ad1['start']['nodeAfter']));}}function _e(_0x26f74e){return Array['from'](new Set(_0x26f74e)['values']());}class $t extends _0x223c7c{static get['requires'](){return[Nt];}['afterInit'](){const _0x27f3e1=this['editor'],_0x3796bb=_0x27f3e1['model']['document']['selection'],_0x253cd0=_0x27f3e1['locale'];if(!_0x27f3e1['plugins']['has']('TableEditing'))return;const _0xac9ab=_0x27f3e1['plugins']['get']('TrackChangesEditing'),_0x228013=_0x27f3e1['plugins']['get']('TableUtils'),_0x9117c1=_0x27f3e1['plugins']['get'](Nt);_0x9117c1['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xac9ab['enableCommand']('mergeTableCells',()=>{const _0x19dd20=_0x228013['getSelectionAffectedTableCells'](_0x27f3e1['model']['document']['selection']);_0x27f3e1['model']['change'](()=>{_0xac9ab['markMultiRangeBlockFormat'](_0x19dd20,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x27f3e1['commands']['get']('mergeTableCells')['on']('execute',(_0x5ac65a,_0x48e93f)=>{_0x27f3e1['commands']['get']('trackChanges')['value']&&(_0x48e93f['length']>0x0&&_0x48e93f[_0x48e93f['length']-0x1]&&_0x48e93f[_0x48e93f['length']-0x1]['forceDefaultExecution']||_0xac9ab['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5ac65a['stop']());},{'priority':'highest'});for(const _0x328bd4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x195ae3=_0x27f3e1['commands']['get'](_0x328bd4);_0xac9ab['enableCommand'](_0x328bd4,()=>{const _0x2a1420=_0x27f3e1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x35fabb=>_0x35fabb['is']('element','tableCell')),_0x2e3e89=_0x195ae3['value'];_0x27f3e1['model']['change'](()=>{_0xac9ab['markMultiRangeBlockFormat']([_0x2a1420,_0x2e3e89],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x241bbf of['splitTableCellVertically','splitTableCellHorizontally']){const _0xfdd1c6=_0x27f3e1['commands']['get'](_0x241bbf);_0xac9ab['enableCommand'](_0x241bbf,()=>{const _0x51293a=_0x228013['getSelectionAffectedTableCells'](_0x27f3e1['model']['document']['selection'])[0x0],_0x5eba6c=_0x51293a['findAncestor']('table'),{column:_0x242e58,row:_0x2a5208}=_0x228013['getCellLocation'](_0x51293a);let _0x73c056=[];if('horizontally'==_0xfdd1c6['direction']){const _0x5c9579=_0x228013['createTableWalker'](_0x5eba6c,{'startRow':_0x2a5208,'endRow':_0x2a5208,'includeAllSlots':!0x0});_0x73c056=Array['from'](_0x5c9579)['map'](_0x4c41d9=>_0x4c41d9['cell']);}else{const _0x4745b6=_0x228013['createTableWalker'](_0x5eba6c,{'column':_0x242e58,'includeAllSlots':!0x0});_0x73c056=Array['from'](_0x4745b6)['map'](_0x4998e9=>_0x4998e9['cell']);}_0x27f3e1['model']['change'](_0x28b4d6=>{_0xac9ab['markBlockFormat'](_0x28b4d6['createRangeOn'](_0x51293a),{'commandName':_0x241bbf,'commandParams':[]},_0x73c056,_0x241bbf);});});}_0xac9ab['descriptionFactory']['registerDescriptionCallback'](_0x6ac277=>{if('formatBlock'!=_0x6ac277['type']&&'formatInline'!=_0x6ac277['type'])return;const {data:_0x225d3e}=_0x6ac277;return _0x225d3e&&'mergeTableCells'==_0x225d3e['commandName']?{'type':'format','content':o(_0x253cd0,'*Merge\x20cells*')}:void 0x0;}),_0xac9ab['descriptionFactory']['registerDescriptionCallback'](_0x1dfac9=>{if('formatBlock'!=_0x1dfac9['type']&&'formatInline'!=_0x1dfac9['type'])return;const {data:_0x2dfaf7}=_0x1dfac9;return _0x2dfaf7?'splitTableCellVertically'==_0x2dfaf7['commandName']?{'type':'format','content':o(_0x253cd0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2dfaf7['commandName']?{'type':'format','content':o(_0x253cd0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3c7468=_0x9117c1['_acceptFormatSuggestionCallbackFactory']();for(const _0x1e1e0b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xac9ab['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1e1e0b,'accept',_0x3c7468);for(const _0x1e8044 of['splitTableCellVertically','splitTableCellHorizontally'])_0xac9ab['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1e8044,'accept',_0x3c7468);_0xac9ab['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x12cd9b=>{_0x27f3e1['model']['change'](_0x3328f8=>{const _0x268b0f=Array['from'](_0x3796bb['getRanges']())['map'](_0xc2de19=>_0xfdd8dd['fromRange'](_0xc2de19));_0x3328f8['setSelection'](_0x12cd9b),_0x27f3e1['commands']['get']('mergeTableCells')['refresh'](),_0x27f3e1['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2ec519=_0x268b0f['filter'](_0x58ebc8=>'$graveyard'!=_0x58ebc8['root']['rootName']);_0x2ec519['length']>0x0&&_0x3328f8['setSelection'](_0x2ec519);for(const _0x2216c7 of _0x268b0f)_0x2216c7['detach']();});});for(const _0x75edb2 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x22f0c3=_0x27f3e1['commands']['get'](_0x75edb2);_0x22f0c3['on']('set:isEnabled',(_0x252d21,_0x569062,_0x1ae92f)=>{if(_0x1ae92f){const _0x5ad0b9=_0x27f3e1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4eee6a=>_0x4eee6a['is']('element','tableCell'));this['_areMergableCells'](_0x22f0c3['value'],_0x5ad0b9)||(_0x252d21['return']=!0x1,_0x252d21['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3f1c6a=this['editor']['commands']['get']('mergeTableCells'),_0x815b40=this['editor']['plugins']['get']('TableUtils');if(!_0x3f1c6a['isEnabled'])return!0x1;const _0x26f3de=_0x815b40['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4ee0a1 of _0x26f3de)for(const _0x35e15d of _0x26f3de)if(_0x4ee0a1!=_0x35e15d&&!this['_areMergableCells'](_0x4ee0a1,_0x35e15d))return!0x1;return!0x0;}['_areMergableCells'](_0x246bb9,_0x4b907a){const _0x3d24cc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ec01e=this['editor']['model']['createRangeOn'](_0x246bb9),_0x1a4b65=this['editor']['model']['createRangeOn'](_0x4b907a),_0x3f8733=new Set(),_0x12f618=new Set();for(const _0x24abbc of _0x3d24cc['getSuggestions']())if(('insertion'==_0x24abbc['type']||'deletion'==_0x24abbc['type']||'mergeTableCells'==_0x24abbc['subType'])&&_0x24abbc['isInContent']){for(const _0xeef30 of _0x24abbc['getRanges']())_0xeef30['containsRange'](_0x3ec01e,!0x0)&&_0x3f8733['add'](_0x24abbc['type']+':'+_0x24abbc['author']['id']),_0xeef30['containsRange'](_0x1a4b65,!0x0)&&_0x12f618['add'](_0x24abbc['type']+':'+_0x24abbc['author']['id']);}if(_0x3f8733['size']!=_0x12f618['size'])return!0x1;for(const _0x228a2f of _0x3f8733)if(!_0x12f618['has'](_0x228a2f))return!0x1;return!0x0;}}class vt extends _0x223c7c{static get['requires'](){return[Nt];}['afterInit'](){const _0x116e29=this['editor'];if(!_0x116e29['plugins']['has']('TableEditing'))return;const _0x431d07=_0x116e29['locale'],_0x1bc3fa=_0x116e29['plugins']['get']('TrackChangesEditing');_0x1bc3fa['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1bc3fa['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1bc3fa['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x431d07,'FORMAT_HEADER_ROW')),_0x1bc3fa['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x431d07,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1b77ff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22be82=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x1b77ff['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x22be82),_0x1b77ff['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x22be82),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x5db4c1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b0bb9=this['editor']['plugins']['get']('TableUtils');function _0x2e9cfe({showActiveMarker:_0x3a03ef=!0x0,setDataAttribute:_0x51e574=!0x0}={}){return(_0x48a3ac,_0x270a2a,_0x2b438c)=>{const {type:_0xfa771c,id:_0x3757e5}=_0x5db4c1['_splitMarkerName'](_0x270a2a['markerName']);if(!_0x5db4c1['hasSuggestion'](_0x3757e5))return;const _0x4fa627=_0x5db4c1['getSuggestion'](_0x3757e5),_0x57477d=_0x4fa627['data'];if('formatBlock'!=_0x4fa627['type']||!_0x57477d||'setTableColumnHeader'!=_0x57477d['commandName'])return;if(_0x270a2a['item'])return void _0x48a3ac['stop']();if(!_0x2b438c['consumable']['consume'](_0x270a2a['markerRange'],_0x48a3ac['name']))return;const _0x56e008=_0x270a2a['markerRange']['start']['nodeAfter'],_0x3a5b91=_0x270a2a['markerRange']['end']['nodeBefore'],_0x57762d=_0x56e008['parent']['parent'],{column:_0x418b92}=_0x3b0bb9['getCellLocation'](_0x56e008),{column:_0x7c41ed}=_0x3b0bb9['getCellLocation'](_0x3a5b91);for(let _0x493732=_0x418b92;_0x493732<=_0x7c41ed;_0x493732++){const _0x58d579=_0x3b0bb9['createTableWalker'](_0x57762d,{'column':_0x493732,'includeAllSlots':!0x1});for(const _0x137a26 of _0x58d579){const _0x12f61c=_0x137a26['cell'],_0x576e33=_0x2b438c['mapper']['toViewElement'](_0x12f61c);_0x2b438c['writer']['addClass']('ck-suggestion-marker-'+_0xfa771c,_0x576e33),_0x51e574&&_0x2b438c['writer']['setAttribute']('data-suggestion',_0x3757e5,_0x576e33),_0x2b438c['mapper']['bindElementToMarker'](_0x576e33,_0x270a2a['markerName']),_0x3a03ef&&(_0x5db4c1['activeMarkers']['includes'](_0x270a2a['markerName'])?_0x2b438c['writer']['addClass']('ck-suggestion-marker--active',_0x576e33):_0x2b438c['writer']['removeClass']('ck-suggestion-marker--active',_0x576e33));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2e9cfe(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x16b0d0,_0x5defe1,_0x320c1c)=>{_0x320c1c['options']['showSuggestionHighlights']&&_0x2e9cfe({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x16b0d0,_0x5defe1,_0x320c1c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1cea59,_0x1bae9d,_0x460c50)=>{const {type:_0x516cc1,id:_0x135a3f}=_0x5db4c1['_splitMarkerName'](_0x1bae9d['markerName']);if(!_0x5db4c1['hasSuggestion'](_0x135a3f))return;const _0x366269=_0x5db4c1['getSuggestion'](_0x135a3f),_0x2d93f7=_0x366269['data'];if('formatBlock'!=_0x366269['type']||!_0x2d93f7||'setTableColumnHeader'!=_0x2d93f7['commandName'])return;const _0x2bbc2d=_0x460c50['mapper']['markerNameToElements'](_0x1bae9d['markerName']);if(_0x2bbc2d){for(const _0xc95f3e of _0x2bbc2d)_0x460c50['writer']['removeClass']('ck-suggestion-marker-'+_0x516cc1,_0xc95f3e),_0x460c50['writer']['removeClass']('ck-suggestion-marker--active',_0xc95f3e),_0x460c50['writer']['removeAttribute']('data-suggestion',_0xc95f3e),_0x460c50['mapper']['unbindElementFromMarkerName'](_0xc95f3e,_0x1bae9d['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x185704=this['editor'],_0x164d61=_0x185704['locale'];function _0x38e9df(_0xe63d9c){return{'type':'format','content':o(_0x164d61,'*Format:*\x20%0',_0xe63d9c)};}_0x185704['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x71de98=>{if('formatBlock'!=_0x71de98['type'])return;const {data:_0x4ec76e}=_0x71de98;if(_0x4ec76e){if('setTableRowHeader'==_0x4ec76e['commandName']){const _0x57667a=_0x4ec76e['commandParams'][0x0]['forceValue'];return _0x38e9df(o(_0x164d61,_0x57667a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4ec76e['commandName']){const _0x48252d=_0x4ec76e['commandParams'][0x0]['forceValue'];return _0x38e9df(o(_0x164d61,_0x48252d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x223c7c{['afterInit'](){const _0x5d6ce7=this['editor'],_0x2473ed=_0x5d6ce7['locale'],_0x1b0877=_0x5d6ce7['plugins']['get']('TrackChangesEditing');function _0x50ecc4(_0x5ce1b8){return{'type':'format','content':''+o(_0x2473ed,'*Set\x20table\x20type:*\x20%0',_0x5ce1b8)};}_0x5d6ce7['plugins']['has']('TableLayout')&&(_0x1b0877['enableCommand']('insertTableLayout'),_0x1b0877['enableDefaultAttributesIntegration']('tableType'),_0x1b0877['descriptionFactory']['registerElementLabel'](_0x182f49=>_0x182f49['is']('element','table')&&'layout'===_0x182f49['getAttribute']('tableType'),_0x1c188b=>o(_0x2473ed,'ELEMENT_LAYOUT_TABLE',_0x1c188b)),_0x1b0877['descriptionFactory']['registerDescriptionCallback'](_0x1b31d8=>{const {data:_0x1e69da}=_0x1b31d8;if(_0x1e69da&&'tableType'==_0x1e69da['key'])switch(_0x1e69da['newValue']){case'layout':return _0x50ecc4(o(_0x2473ed,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x50ecc4(o(_0x2473ed,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Re['map'](_0x3255cb=>[_0x3255cb,null]));class Bt extends _0x223c7c{static get['requires'](){return[Nt];}['afterInit'](){const _0x4ebf97=this['editor'];if(!_0x4ebf97['plugins']['has']('TableClipboard'))return;const _0x17b2e1=_0x4ebf97['plugins']['get']('TrackChangesEditing'),_0x120f96=_0x4ebf97['plugins']['get']('TableUtils'),_0x1e13be=_0x4ebf97['plugins']['get'](Nt),_0x53675a=_0x4ebf97['plugins']['get']('TableClipboard'),_0xc9fc10=_0x4ebf97['plugins']['get']('TableSelection'),_0x23aaf6=_0x4ebf97['plugins']['get'](_0x23b8fb);_0x1e13be['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4ebf97['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4ebf97['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x468601=null,_0x42928=!0x1;_0x23aaf6['on']('contentInsertion',(_0xc496c0,_0x138921)=>{_0x42928='paste'===_0x138921['method'];}),_0x4ebf97['model']['on']('insertContent',(_0x303298,_0x181106)=>{if(!_0x42928&&null===_0xc9fc10['getSelectedTableCells']())return;const [_0xcf66a3,_0x1f11ad]=_0x181106,_0x3fddf6=_0x181106[_0x181106['length']-0x1];_0x3fddf6&&_0x3fddf6['forceDefaultExecution']||_0x17b2e1['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1a80d7,_0x5a7429,_0x3936d3,_0x15b4fa,_0x3d77f7){if(_0x5a7429&&!_0x5a7429['is']('documentSelection'))return!0x1;const _0x166c87=_0x3d77f7['getTableIfOnlyTableInContent'](_0x1a80d7,_0x3936d3);if(!_0x166c87||!Oe(_0x166c87,void 0x0,_0x15b4fa))return!0x1;const _0xf84fa1=_0x15b4fa['getSelectionAffectedTableCells'](_0x3936d3['document']['selection']);if(!_0xf84fa1['length'])return!0x1;const _0x3c2ebe=_0xf84fa1[0x0]['findAncestor']('table'),_0x2238bf=_0x15b4fa['getRowIndexes'](_0xf84fa1),_0x27ad6c=_0x15b4fa['getColumnIndexes'](_0xf84fa1),_0x531f88={'startRow':_0x2238bf['first'],'endRow':_0x2238bf['last'],'startColumn':_0x27ad6c['first'],'endColumn':_0x27ad6c['last']};return 0x1==_0xf84fa1['length']&&(_0x531f88['endRow']+=_0x15b4fa['getRows'](_0x166c87)-0x1,_0x531f88['endColumn']+=_0x15b4fa['getColumns'](_0x166c87)-0x1),Oe(_0x3c2ebe,_0x531f88,_0x15b4fa);}(_0xcf66a3,_0x1f11ad,_0x4ebf97['model'],_0x120f96,_0x53675a)&&(_0x303298['stop'](),_0x468601={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4ebf97['model']['change'](()=>{_0x4ebf97['model']['insertContent'](_0x181106[0x0],_0x181106[0x1],_0x181106[0x2],{'forceDefaultExecution':!0x0});const _0x57576a=_0x180995(),{rowInsertionRanges:_0x36e2b7,columnInsertionRanges:_0x5a3122,insertionRanges:_0x50757d,deletionRanges:_0x4f7beb,cells:_0xdea1e4}=_0x468601;_0x36e2b7['length']&&_0x17b2e1['markMultiRangeInsertion'](_0x36e2b7,'tablePasteRow',{'tablePasteChainId':_0x57576a}),_0x5a3122['length']&&_0x17b2e1['markMultiRangeInsertion'](_0x5a3122,'tablePasteColumn',{'tablePasteChainId':_0x57576a}),_0x50757d['length']&&(_0x17b2e1['markMultiRangeInsertion'](_0x50757d,'tablePaste',{'tablePasteChainId':_0x57576a,'skipNestingCheck':!0x0}),_0x50757d['forEach'](_0xad1dce=>_0xad1dce['detach']?.())),_0x4f7beb['length']&&(_0x17b2e1['markMultiRangeDeletion'](_0x4f7beb,'tablePaste',{'tablePasteChainId':_0x57576a,'skipNestingCheck':!0x0}),_0x4f7beb['forEach'](_0x1a46ba=>_0x1a46ba['detach']?.()));const _0x24ba03=_0x17b2e1['markMultiRangeBlockFormat'](_0xdea1e4['map'](({element:_0x192c3a})=>_0x192c3a),{'formatGroupId':_0x180995()},[],'tablePasteCell',{'tablePasteChainId':_0x57576a});if(_0x24ba03){const _0x181c48=_0x24ba03['getMarkers'](),_0x4d3977=[];for(const {element:_0x2a18e5,attributes:_0x574ead}of _0xdea1e4){if(!_0x574ead)continue;const _0x5b8aa0=_0x4ebf97['model']['createRangeOn'](_0x2a18e5),_0x4c09ce=_0x181c48['find'](_0x1bbd49=>_0x1bbd49['getRange']()['isEqual'](_0x5b8aa0));_0x4c09ce&&_0x4d3977['push']([_0x4c09ce['name'],_0x574ead]);}_0x4d3977['length']&&_0x24ba03['setAttribute']('markerAttributes',Object['fromEntries'](_0x4d3977));}_0x468601=null;}));},{'priority':_0x14da34['high']+0xa}),_0x23aaf6['on']('contentInsertion',()=>{_0x42928=!0x1;},{'priority':'lowest'}),_0x4ebf97['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x12f6f9,_0x4fc53f)=>{const [_0x2880ce,_0x494673,,_0x579146]=_0x4fc53f;if(!_0x468601)return;_0x12f6f9['stop']();const _0x59f929=_0x2880ce['cell'],_0x5de138=_0x494673,_0x15a59a=Be(_0x59f929),_0x5b2f98=Be(_0x5de138);_0x12f6f9['return']=_0x59f929;let _0x58a242=null,_0x3dbb0a=null;if(_0x5b2f98||_0x15a59a){if(_0x15a59a&&!_0x5b2f98){_0x579146['remove'](_0x59f929['getChild'](0x0));for(const _0x4ee56f of Array['from'](_0x5de138['getChildren']()))_0x579146['insert'](_0x4ee56f,_0x59f929,'end');const _0x172308=_0x468601['rowInsertionIndexes']['includes'](_0x2880ce['row']),_0x3ca25a=_0x468601['columnInsertionIndexes']['includes'](_0x2880ce['column']);_0x172308||_0x3ca25a||(_0x58a242=_0xfdd8dd['fromRange'](_0x579146['createRangeIn'](_0x59f929)));}else _0x5b2f98&&!_0x15a59a&&(_0x3dbb0a=_0x579146['createRangeIn'](_0x59f929));}else{const _0x55a164=_0x579146['createElement']('tableCellSuggestion'),_0x1a5d94=_0x579146['createElement']('tableCellSuggestion');_0x579146['wrap'](_0x579146['createRangeIn'](_0x59f929),_0x1a5d94),_0x579146['insert'](_0x55a164,_0x59f929,0x0);for(const _0x3ff380 of Array['from'](_0x5de138['getChildren']()))_0x579146['insert'](_0x3ff380,_0x55a164,'end');_0x58a242=_0xfdd8dd['fromRange'](_0x579146['createRangeOn'](_0x55a164)),_0x3dbb0a=_0xfdd8dd['fromRange'](_0x579146['createRangeOn'](_0x1a5d94));}const _0x354eaf=Array['from'](_0x5de138['getAttributes']())['filter'](([_0x97ff11])=>Re['includes'](_0x97ff11));_0x468601['cells']['push']({'element':_0x59f929,'attributes':_0x354eaf['length']?Object['fromEntries'](_0x354eaf):null}),_0x58a242&&_0x468601['insertionRanges']['push'](_0x58a242),_0x3dbb0a&&_0x468601['deletionRanges']['push'](_0x3dbb0a);},{'priority':'high'}),_0x120f96['on']('insertColumns',(_0x36a8f1,_0x3bfcb2)=>{const [_0x3fcf4b,_0x3722d8={}]=_0x3bfcb2;if(!_0x468601)return;const _0x2c5f36=_0x3722d8['at']||0x0,_0x1bca76=_0x3722d8['columns']||0x1;_0x468601['columnInsertionIndexes']=new Array(_0x1bca76)['fill'](_0x2c5f36)['map']((_0x308955,_0x16faf8)=>_0x308955+_0x16faf8);for(const {cell:_0x1ce8fb}of _0x120f96['createTableWalker'](_0x3fcf4b,{'startColumn':_0x2c5f36,'endColumn':_0x2c5f36+_0x1bca76-0x1}))_0x468601['columnInsertionRanges']['push'](_0x4ebf97['model']['createRangeOn'](_0x1ce8fb));},{'priority':'low'}),_0x120f96['on']('insertRows',(_0x4a53af,_0x6c503)=>{const [_0x1095a3,_0x2f80c7={}]=_0x6c503;if(!_0x468601)return;const _0x525206=_0x2f80c7['at']||0x0,_0x43505a=_0x2f80c7['rows']||0x1;_0x468601['rowInsertionIndexes']=new Array(_0x43505a)['fill'](_0x525206)['map']((_0x591db6,_0x36710c)=>_0x591db6+_0x36710c);for(const {cell:_0x7629d4}of _0x120f96['createTableWalker'](_0x1095a3,{'startRow':_0x525206,'endRow':_0x525206+_0x43505a-0x1}))_0x468601['rowInsertionRanges']['push'](_0x4ebf97['model']['createRangeOn'](_0x7629d4));},{'priority':'low'}),_0x17b2e1['descriptionFactory']['registerDescriptionCallback'](_0x4d7b82=>{if(_0x4d7b82['subType']&&_0x4d7b82['subType']['startsWith']('tablePaste'))return _0x4d7b82['previous']?{}:{'type':'insertion','content':o(_0x4ebf97['locale'],'*Replace\x20table\x20cells*')};});const _0xd9eb26=()=>!0x1;for(const _0x55f5dc of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x17b2e1['_suggestionFactory']['registerCustomCallback']('insertion',_0x55f5dc,'join',_0xd9eb26),_0x17b2e1['_suggestionFactory']['registerCustomCallback']('deletion',_0x55f5dc,'join',_0xd9eb26),_0x17b2e1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x55f5dc,'join',_0xd9eb26);_0x17b2e1['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xd9eb26),_0x17b2e1['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5eec78,_0x464cb3,_0x5bc50c)=>{const _0x285d3b=_0x5eec78['map'](_0x4c4b74=>_0x4c4b74['getContainedElement']())['filter'](_0x1ac70f=>_0x1ac70f),_0x59d39a=new Map(_0x285d3b['map'](_0x4334fa=>[_0x4334fa,null]));if(_0x468601){for(const {element:_0x39b0b6,attributes:_0x24b8ee}of _0x468601['cells'])_0x24b8ee&&_0x59d39a['set'](_0x39b0b6,_0x24b8ee);}else{if(_0x5bc50c&&_0x5bc50c['markerAttributes'])for(const [_0x3e9ac5,_0x260e88]of Object['entries'](_0x5bc50c['markerAttributes'])){const _0x57b2e8=_0x4ebf97['model']['markers']['get'](_0x3e9ac5),_0x43cffb=_0x57b2e8?_0x57b2e8['getRange']()['getContainedElement']():null;_0x43cffb&&_0x59d39a['set'](_0x43cffb,_0x260e88);}}_0x4ebf97['model']['change'](_0x25e132=>{for(const [_0x2555d3,_0x6c4ae6]of _0x59d39a)_0x25e132['setAttributes']({...Ae,..._0x6c4ae6},_0x2555d3);});});const _0x1cd096=(_0x3d0bc,_0x65037b)=>{_0x17b2e1['_suggestionFactory']['registerCustomCallback'](_0x3d0bc,'tablePaste',_0x65037b,(_0x43262d,_0x36fe37,_0x57f305)=>{_0x4ebf97['model']['change'](_0xfcf4e5=>{const _0x31a11d=[];for(const _0x4fc790 of _0x43262d){const _0x1aa3bd=_0x4fc790['start']['nodeAfter'];_0x1aa3bd['is']('element','tableCellSuggestion')&&_0x31a11d['push'](_0x1aa3bd);}_0x17b2e1['_suggestionFactory']['getSuggestionCallback'](_0x3d0bc,null,_0x65037b)(_0x43262d,_0x36fe37,_0x57f305);for(const _0x548a2c of _0x31a11d)'$graveyard'!=_0x548a2c['root']['rootName']&&_0xfcf4e5['unwrap'](_0x548a2c);});});};_0x1cd096('insertion','accept'),_0x1cd096('insertion','discard'),_0x1cd096('deletion','accept'),_0x1cd096('deletion','discard'),_0x17b2e1['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x23ec34=>{const _0xec4795=_0x23ec34['map'](_0x353928=>_0x353928['getContainedElement']()),_0x54420d=_0xec4795[0x0]['findAncestor']('table'),{minRow:_0xec05a3,maxRow:_0x4f1d9e}=_0x1e13be['_getCoordsForCells'](_0xec4795);_0x120f96['removeRows'](_0x54420d,{'at':_0xec05a3,'rows':_0x4f1d9e-_0xec05a3+0x1});}),_0x17b2e1['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x182e31=>{const _0x3e3f01=_0x182e31['map'](_0x5952cd=>_0x5952cd['getContainedElement']()),_0x3bac20=_0x3e3f01[0x0]['findAncestor']('table'),{minColumn:_0x201861,maxColumn:_0x51fd4c}=_0x1e13be['_getCoordsForCells'](_0x3e3f01);_0x120f96['removeColumns'](_0x3bac20,{'at':_0x201861,'columns':_0x51fd4c-_0x201861+0x1});});const _0x2e6e9b=(_0xacc47c,_0x16841a)=>{if(!_0x16841a['subType']||!_0x16841a['subType']['startsWith']('tablePaste'))return;const _0x2c1211=_0x16841a['attributes']['tablePasteChainId'],_0x96ec98=_0x17b2e1['getSuggestions']()['filter'](_0x3e028d=>_0x3e028d['isInContent']&&_0x3e028d['attributes']&&_0x3e028d['attributes']['tablePasteChainId']==_0x2c1211);_0x96ec98['length']&&_0x16841a['getAllAdjacentSuggestions']()['length']!=_0x96ec98['length']&&_0x96ec98['reduce']((_0x3ed553,_0x24cf1c)=>(_0x3ed553['next']=_0x24cf1c,_0x24cf1c['previous']=_0x3ed553,_0x24cf1c));};function _0x4d5de1(_0x5131ce,_0x482133=!0x0){const {id:_0xe79e59,authorId:_0x2ef2b7}=_0x17b2e1['_splitMarkerName'](_0x5131ce['markerName']),_0x127d23=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x40fd5e=_0x17b2e1['activeMarkers']['includes'](_0x5131ce['markerName']);return _0x40fd5e&&_0x127d23['push']('ck-suggestion-marker--active'),{'classes':_0x127d23,'attributes':{'data-suggestion':_0xe79e59,'data-author-id':_0x2ef2b7},'priority':_0x40fd5e&&_0x482133?0xbc2:0xbb8};}_0x17b2e1['on']('suggestionLoaded',_0x2e6e9b,{'priority':'high'}),_0x17b2e1['on']('suggestionUnloaded',_0x2e6e9b,{'priority':'high'}),_0x4ebf97['model']['document']['registerPostFixer'](()=>{let _0x58f31c=!0x1;const _0x3ef3c2=Array['from'](_0x4ebf97['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x33eeaf,data:_0x222a1d}of _0x3ef3c2){const {group:_0x2ddd05,type:_0x55fcbf,id:_0x2f61a3}=_0x17b2e1['_splitMarkerName'](_0x33eeaf);if('suggestion'!=_0x2ddd05||'deletion'!=_0x55fcbf||_0x222a1d['oldRange'])continue;if(!_0x17b2e1['hasSuggestion'](_0x2f61a3))continue;const _0x1fe899=_0x17b2e1['getSuggestion'](_0x2f61a3)['getRanges'](),_0x3058f2=_0x4ebf97['plugins']['get']('Users')['me'];for(const _0x4dc5df of _0x17b2e1['getSuggestions']()){if(!_0x4dc5df['isInContent']||_0x4dc5df['author']!=_0x3058f2)continue;if('formatBlock'!=_0x4dc5df['type']||'tablePasteCell'!=_0x4dc5df['subType'])continue;if(_0x4dc5df['getRanges']()['every'](_0x3399fc=>_0x1fe899['some'](_0x449d7b=>_0x449d7b['containsRange'](_0x3399fc,!0x0)))){for(const _0x33f2d9 of _0x4dc5df['getAllAdjacentSuggestions']())_0x33f2d9['isInContent']&&(_0x33f2d9['discard'](),_0x58f31c=!0x0);}}}return _0x58f31c;}),_0x4ebf97['model']['document']['registerPostFixer'](_0x339e52=>{const _0x471f26=_0x4ebf97['commands']['get']('redo');if(!_0x471f26||!_0x471f26['_createdBatches']['has'](_0x339e52['batch']))return!0x1;let _0x4cdb50=!0x1;const _0x558724=_0x4ebf97['plugins']['get']('Users')['me'],_0x502b5a=_0x4ebf97['model']['document']['differ']['getChanges'](),_0x4b3c7b=Array['from'](_0x4ebf97['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x161c21,data:_0x2d7d80})=>{const {group:_0x261918,subType:_0x11798b,authorId:_0x12c45a}=_0x17b2e1['_splitMarkerName'](_0x161c21);return'suggestion'==_0x261918&&'tablePaste'==_0x11798b&&_0x12c45a==_0x558724['id']&&!_0x2d7d80['oldRange'];});for(const _0x624ad9 of _0x502b5a){if('insert'!=_0x624ad9['type']||'tableCellSuggestion'!=_0x624ad9['name']||0x1!=_0x624ad9['length'])continue;const _0x4b8609=_0x339e52['createRange'](_0x624ad9['position'],_0x624ad9['position']['getShiftedBy'](0x1));if(!_0x4b3c7b['find'](({data:_0x410685})=>_0x410685['newRange']['isEqual'](_0x4b8609))){for(const {name:_0x364703,data:_0x581378}of _0x4b3c7b)if(_0x4b8609['containsRange'](_0x581378['newRange'])){_0x339e52['updateMarker'](_0x364703,{'range':_0x4b8609}),_0x4cdb50=!0x0;break;}}}return _0x4cdb50;}),_0x4ebf97['model']['document']['registerPostFixer'](_0x91013e=>{let _0x1fecaf=!0x1;const _0x5c6e75=_0x4ebf97['plugins']['get']('Users')['me'],_0x585154=_0x17b2e1['getSuggestions']()['filter'](_0x3c358d=>_0x3c358d['isInContent']&&_0x3c358d['author']==_0x5c6e75),_0x1d11c2=new Set(),_0x9293a2=new Set();for(const _0x203f2a of _0x585154)if('tablePaste'==_0x203f2a['subType'])for(const _0x27df60 of _0x203f2a['getMarkers']()){const _0x4f2f02=_0x27df60['getRange']()['getContainedElement']();if(_0x4f2f02){if(_0x4f2f02['is']('element','tableCellSuggestion')&&Be(_0x4f2f02)){_0x203f2a['removeMarker'](_0x27df60['name']),_0x1d11c2['add'](_0x4f2f02),_0x1fecaf=!0x0;const _0x1ce686=_0x4f2f02['nextSibling'],_0x328702=_0x4f2f02['previousSibling'],_0x466221=_0x1ce686&&_0x1ce686['is']('element','tableCellSuggestion'),_0x6cfae3=_0x328702&&_0x328702['is']('element','tableCellSuggestion');_0x466221&&!_0x1d11c2['has'](_0x1ce686)&&_0x9293a2['add'](_0x1ce686),_0x6cfae3&&!_0x1d11c2['has'](_0x328702)&&_0x9293a2['add'](_0x328702);}else _0x4f2f02['is']('element','paragraph')&&_0x4f2f02['isEmpty']&&(_0x203f2a['removeMarker'](_0x27df60['name']),_0x1fecaf=!0x0);}}else{if('tablePasteCell'==_0x203f2a['subType']){if(!_0x203f2a['attributes']||!_0x203f2a['attributes']['tablePasteChainId'])continue;const _0x56e68a=_0x203f2a['attributes']['markerAttributes'];if(_0x56e68a&&Object['keys'](_0x56e68a)['length'])continue;const _0x28582a=_0x203f2a['attributes']['tablePasteChainId'];let _0x5d9869=!0x0,_0x21fb95=!0x0;for(const _0x8f6c69 of _0x585154)if(_0x8f6c69['subType']&&_0x8f6c69['subType']['startsWith']('tablePaste')){if(!_0x8f6c69['attributes']['tablePasteChainId']){_0x21fb95=!0x1;break;}if(_0x8f6c69['id']!=_0x203f2a['id']&&_0x8f6c69['attributes']['tablePasteChainId']==_0x28582a){_0x5d9869=!0x1;break;}}_0x21fb95&&_0x5d9869&&(_0x203f2a['removeMarkers'](),_0x1fecaf=!0x0);}}for(const _0x31a1cb of _0x1d11c2)_0x91013e['remove'](_0x31a1cb);for(const _0x5e7aa4 of _0x9293a2)_0x91013e['unwrap'](_0x5e7aa4);return _0x1fecaf;}),_0x4ebf97['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x36419c=>_0x4d5de1(_0x36419c),'converterPriority':'high'}),_0x4ebf97['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3ee02d,_0x56ac3e)=>_0x56ac3e['options']['showSuggestionHighlights']?_0x4d5de1(_0x3ee02d,!0x1):null,'converterPriority':'high'});const _0x2ad8a5=_0x4ebf97['editing']['view'];this['listenTo'](_0x2ad8a5['document'],'clipboardOutput',(_0x45de17,_0x30c521)=>{const _0xd087d7=[];for(const _0x4542d0 of _0x2ad8a5['createRangeIn'](_0x30c521['content'])['getItems']())_0x4542d0['is']('element','suggestion-td')&&_0xd087d7['push'](_0x4542d0);_0x2ad8a5['change'](_0x5b82cb=>{for(const _0x15d082 of _0xd087d7)_0x5b82cb['move'](_0x5b82cb['createRangeIn'](_0x15d082),_0x5b82cb['createPositionBefore'](_0x15d082)),_0x5b82cb['remove'](_0x15d082);});});}}function Be(_0x506237){if(_0x506237['isEmpty'])return!0x0;const _0x1e6ea=_0x506237['getChild'](0x0);return _0x1e6ea['is']('element','paragraph')&&_0x1e6ea['isEmpty'];}function Oe(_0x4ddcbc,_0x5814b7={},_0xc6f73f){for(const {isAnchor:_0x4404c0,cellHeight:_0x3a4d04,cellWidth:_0x508dbc}of _0xc6f73f['createTableWalker'](_0x4ddcbc,{'includeAllSlots':!0x0,..._0x5814b7}))if(!_0x4404c0||0x1!=_0x3a4d04||0x1!=_0x508dbc)return!0x1;return!0x0;}class Ot extends _0x223c7c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5880d0=this['editor']['plugins']['get']('TrackChangesEditing');_0x5880d0['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5880d0['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5880d0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5880d0['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5880d0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5880d0['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x168027,_0xfd7582){const _0x390a54=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26b96d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x505c22=_0xfd7582['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3be1dd=_0x26b96d['getColumnGroupElement'](_0x505c22);let _0x455499=_0x3be1dd?_0x26b96d['getTableColumnsWidths'](_0x3be1dd):null,_0x4b3c38=_0x505c22['getAttribute']('tableWidth')||null;const _0xb5f6dc=_0xfd7582['tableWidth']||_0x4b3c38,_0x25f55b=_0xfd7582['columnWidths']||_0x455499,_0xe03c99=this['editor']['plugins']['get']('Users')['me'];for(const _0x191916 of _0x390a54['getSuggestions']()){const _0x52702f=_0x191916['getContainedElement']();if('resizeTable'===_0x191916['subType']&&_0x52702f===_0x505c22){_0x191916['author']!==_0xe03c99&&_0x191916['discard']();const _0x461cc4=_0x191916['data']['commandParams'];_0x4b3c38=_0x461cc4[0x0]['tableWidth'],_0x455499=_0x461cc4[0x0]['columnWidths'];break;}}_0x168027({'table':_0x505c22,'tableWidth':_0xb5f6dc,'columnWidths':_0x25f55b}),_0x390a54['markBlockFormat'](_0x505c22,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4b3c38,'columnWidths':_0x455499}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x427db0){if('formatBlock'!=_0x427db0['type']&&'formatInline'!=_0x427db0['type'])return;const {data:_0x2c032a}=_0x427db0;if(_0x2c032a&&'resizeTable'===_0x2c032a['formatGroupId']){const _0x410e8d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x410e8d)};}}}class xt extends _0x223c7c{['afterInit'](){const _0x4af86c=this['editor'];_0x4af86c['plugins']['has']('Template')&&_0x4af86c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x223c7c{['afterInit'](){const _0x5e53b0=this['editor'];if(!_0x5e53b0['commands']['get']('insertTableOfContents'))return;_0x5e53b0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4d3736=_0x5e53b0['plugins']['get']('TrackChangesEditing'),_0x4bab7d=_0x5e53b0['locale'];_0x4d3736['descriptionFactory']['registerElementLabel']('tableOfContents',_0x447a0f=>o(_0x4bab7d,'ELEMENT_TABLE_OF_CONTENTS',_0x447a0f));}}class Rt extends _0x223c7c{['afterInit'](){const _0x136989=this['editor'];if(!_0x136989['plugins']['has']('Title'))return;const _0x3b4479=_0x136989['plugins']['get']('TrackChangesEditing');_0x3b4479['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x136989['locale'],'ELEMENT_TITLE')),_0x136989['model']['document']['registerPostFixer'](_0x159437=>{let _0x36cbd0=!0x1;const _0x552fd3=Array['from'](_0x136989['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4815f3,data:_0x4ff130}of _0x552fd3){const {group:_0x5eb163}=_0x3b4479['_splitMarkerName'](_0x4815f3);if('suggestion'!==_0x5eb163||!_0x4ff130['newRange'])continue;const _0x28f43f=_0x4ff130['newRange'],_0x20de26=_0x28f43f['end']['nodeBefore'];if(!_0x20de26||!_0x20de26['is']('element','title-content'))continue;if(!_0x28f43f['start']['isTouching'](_0x28f43f['end']))continue;const _0x1d0f6e=_0x136989['model']['schema']['getNearestSelectionRange'](_0x28f43f['end'],'forward');if(_0x1d0f6e&&_0x1d0f6e['isCollapsed']){const _0x58658b=_0x159437['createRange'](_0x28f43f['start'],_0x1d0f6e['start']);_0x58658b['isEqual'](_0x28f43f)||(_0x159437['updateMarker'](_0x4815f3,{'range':_0x58658b}),_0x36cbd0=!0x0);}_0x36cbd0||(_0x159437['removeMarker'](_0x4815f3),_0x36cbd0=!0x0);}return _0x36cbd0;});}}class Tt extends _0x223c7c{['afterInit'](){const _0x2fe93d=this['editor'],_0x3e2c90=_0x2fe93d['plugins']['get']('TrackChangesEditing');_0x2fe93d['plugins']['has']('Uploadcare')&&(_0x3e2c90['enableCommand']('uploadcare'),_0x2fe93d['plugins']['has']('UploadcareImageEdit')&&(_0x3e2c90['enableCommand']('uploadcareImageEdit'),_0x3e2c90['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3e2c90['descriptionFactory']['registerDescriptionCallback'](_0x160f97=>{if('attribute'!=_0x160f97['type'])return;const {data:_0x3999b4}=_0x160f97;return _0x3999b4&&'uploadcareImageId'==_0x3999b4['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x223c7c{['afterInit'](){const _0x27e323=this['editor'],_0x6f2283=_0x27e323['plugins']['get']('TrackChangesEditing');_0x27e323['plugins']['has']('UndoEditing')&&(_0x6f2283['enableCommand']('undo'),_0x6f2283['enableCommand']('redo'));}}class Ut extends _0x223c7c{static get['requires'](){return[Nt];}['afterInit'](){const _0x39cab1=this['editor'];if(!_0x39cab1['plugins']['has']('TableCaptionEditing'))return;_0x39cab1['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x223c7c{['tableProperties'];['tableCellProperties'];constructor(_0x5450d5){super(_0x5450d5),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x34ef2e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2e5ee5 of this['tableProperties'])_0x34ef2e['enableCommand'](_0x2e5ee5,(_0x34cc4e,_0x4e8497)=>{const _0x10dad5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2e5ee5,[_0x10dad5],this['tableProperties'],'tableProperties',_0x34cc4e,_0x4e8497);});_0x34ef2e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x34ef2e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34ef2e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x23a62d,_0x5517e7)=>this['handleDiscardAction'](this['tableProperties'],_0x23a62d,_0x5517e7)),_0x34ef2e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x37d1e6 of this['tableCellProperties'])_0x34ef2e['enableCommand'](_0x37d1e6,(_0x21a3d3,_0x262f28)=>{const _0x3f1978=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x37d1e6,_0x3f1978,this['tableCellProperties'],'tableCellProperties',_0x21a3d3,_0x262f28);});_0x34ef2e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x34ef2e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34ef2e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xc93d1c,_0x5e9511)=>this['handleDiscardAction'](this['tableCellProperties'],_0xc93d1c,_0x5e9511)),_0x34ef2e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x34ef2e['descriptionFactory']['registerDescriptionCallback'](_0x2cb73d=>this['handleSuggestionDescription'](_0x2cb73d)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x8657b3,_0x5791d4,_0x1c0f90,_0x583129,_0x5e87a3,_0x490a70){const _0xd39d8c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x490a70['batch'],()=>{for(const _0x1db884 of _0x5791d4){if(this['_getSuggestion'](_0x1db884,_0x583129))_0x5e87a3(_0x490a70);else{const _0x582904={};for(const _0x2747fa of _0x1c0f90){const _0xdbf55c=_0x1db884['getAttribute'](_0x2747fa);void 0x0!==_0xdbf55c&&(_0x582904[_0x2747fa]=_0xdbf55c);}_0x5e87a3(_0x490a70),_0xd39d8c['markBlockFormat'](_0x1db884,{'commandParams':[_0x582904]},[],_0x583129);}}});}['handleDiscardAction'](_0x2238b8,_0x36708a,_0x3e6eea){const _0x343f2e=_0x36708a[0x0]['start']['nodeAfter'],_0x245b8b=_0x3e6eea['commandParams'][0x0];this['editor']['model']['change'](_0xcd7780=>{for(const _0x136336 of _0x2238b8)void 0x0!==_0x245b8b[_0x136336]?_0xcd7780['setAttribute'](_0x136336,_0x245b8b[_0x136336],_0x343f2e):_0xcd7780['removeAttribute'](_0x136336,_0x343f2e);});}['handleSuggestionDescription'](_0x456953){if(_0x456953['data'])switch(_0x456953['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'](_0x1aacee,_0x185a3c){const _0x5dddc2=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x532130 of _0x5dddc2['getSuggestions']({'skipNotAttached':!0x0})){const _0x4fa082=_0x532130['getContainedElement']();if(_0x532130['subType']===_0x185a3c&&_0x4fa082===_0x1aacee)return _0x532130;}return null;}['_registerTablePropertiesAttributes'](){const _0x2356f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25c4b3=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4b89b5 of _0x25c4b3){const _0x5450e5=_0x4b89b5['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2356f8['descriptionFactory']['registerAttributeLabel'](_0x4b89b5,o(this['editor']['locale'],'FORMAT_'+_0x5450e5));}}}class Ft extends _0x223c7c{['afterInit'](){const _0x6be0d9=this['editor'];if(!_0x6be0d9['plugins']['has']('LineHeight'))return;const _0x340cb5=_0x6be0d9['plugins']['get']('TrackChangesEditing'),_0x31883b=_0x6be0d9['locale'];_0x340cb5['enableDefaultAttributesIntegration']('lineHeight'),_0x340cb5['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x31883b,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x223c7c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x17e254,_0x373216,_0x4dbdf7,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(_0x338cdc){super(_0x338cdc),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x34b013,_0x182a60,_0x277d71,_0x5abc52)=>{this['_model']['change'](()=>{for(const _0x1f8287 of[..._0x5abc52,..._0x277d71])this['_model']['markers']['has'](_0x1f8287)&&_0x338cdc['editing']['reconvertMarker'](_0x1f8287);});}),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']=_0x338cdc['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x338cdc['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x338cdc['config']['get']('trackChanges.trackFormatChanges'),_0x338cdc['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x338cdc['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x338cdc,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xefffaf=this['editor'];_0xefffaf['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5de9fa,{writer:_0x3eb2a4})=>{let _0x5f127e='suggestion:'+_0x5de9fa['getAttribute']('suggestion-type')+':'+_0x5de9fa['getAttribute']('id');return _0x5de9fa['getAttribute']('marker-count')&&(_0x5f127e+=':'+_0x5de9fa['getAttribute']('marker-count')),_0x3eb2a4['createElement']('$marker',{'data-name':_0x5f127e});}}),_0xefffaf['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xefffaf['model']['document']['registerPostFixer'](_0x5d7d58=>{let _0x132829=!0x1;const _0x3ba333=Array['from'](_0xefffaf['model']['document']['differ']['getChangedMarkers']()),_0x1e3f59=new Set();for(const {name:_0x56d618,data:_0x1fe24c}of _0x3ba333){const {group:_0x3eed3b,type:_0x33dd2d,subType:_0x3898b5,id:_0x56ecee}=this['_splitMarkerName'](_0x56d618);if('suggestion'!==_0x3eed3b)continue;const _0x16ddff=_0x3898b5?'suggestion:'+_0x33dd2d+':'+_0x3898b5+':'+_0x56ecee:'suggestion:'+_0x33dd2d+':'+_0x56ecee,_0xdcbd45=_0xefffaf['model']['markers']['getMarkersGroup'](_0x16ddff),_0x48c9ca=_0xefffaf['model']['markers']['get'](_0x56d618),_0x2dea02=this['_suggestions']['get'](_0x56ecee);if(null!=_0x1fe24c['newRange']){'formatInline'==_0x33dd2d&&(_0x132829=_0x132829||Wt(_0x1fe24c['newRange'],_0x56d618,_0x5d7d58,_0xefffaf['model']['schema']));const _0x3cffe1='attribute'==_0x33dd2d&&this['_isBlockAttribute'](_0x3898b5['split']('|')[0x0]),_0xa28fb2='attribute'==_0x33dd2d&&this['_isInlineAttribute'](_0x3898b5['split']('|')[0x0]);if(_0x1fe24c['newRange']['isCollapsed']||'$graveyard'==_0x1fe24c['newRange']['root']['rootName']||'formatBlock'==_0x33dd2d&&!Qt(_0x1fe24c['newRange'])||_0x3cffe1&&!Qt(_0x1fe24c['newRange'])||_0xa28fb2&&Xt(_0x1fe24c['newRange'])||'deletion'==_0x33dd2d&&Xt(_0x1fe24c['newRange'])||_0x48c9ca&&Yt(_0x48c9ca,_0xdcbd45))_0x5d7d58['removeMarker'](_0x56d618),_0x132829=!0x0;else{if(!_0x2dea02||!_0x2dea02['isInContent'])continue;if(_0x1fe24c['newRange']&&_0x1fe24c['oldRange']&&_0x1fe24c['newRange']['isEqual'](_0x1fe24c['oldRange']))continue;_0x1e3f59['add'](_0x2dea02);}}}return _0x1e3f59['size']>0x0&&(_0x132829=!!this['_joinWithAdjacentSuggestions'](_0x1e3f59)||_0x132829),_0x132829;}),_0xefffaf['model']['document']['registerPostFixer'](_0x24a0a5=>{let _0x2b3d25=!0x1;for(const _0x4e66fd of _0xefffaf['model']['document']['differ']['getChanges']())if('insert'==_0x4e66fd['type'])for(const _0x1b27ff of this['_suggestions']['values']()){if(_0x1b27ff['isMultiRange']||!_0x1b27ff['isInContent'])continue;const _0x4e9de2='formatBlock'==_0x1b27ff['type'],_0x52cea0=this['_getAttributeKey'](_0x1b27ff),_0x34681c=_0x52cea0&&this['_isBlockAttribute'](_0x52cea0);if(!_0x4e9de2&&!_0x34681c)continue;const _0x35248f=_0x1b27ff['getFirstRange']();if(_0x35248f['start']['parent']!=_0x35248f['end']['parent']&&!_0x35248f['end']['isAtEnd']){const _0x8b438b=_0xefffaf['model']['createPositionAt'](_0x35248f['start']['nodeAfter'],'end'),_0x2f4c78=_0xefffaf['model']['createRange'](_0x35248f['start'],_0x8b438b);_0x24a0a5['updateMarker'](_0x1b27ff['getFirstMarker'](),{'range':_0x2f4c78}),_0x2b3d25=!0x0;}}return _0x2b3d25;}),_0xefffaf['model']['document']['registerPostFixer'](_0x3c6b48=>this['_processAttributeChanges'](_0x3c6b48)),_0xefffaf['model']['document']['registerPostFixer'](_0xa34b91=>!_0xa34b91['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xa34b91)),_0xefffaf['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xefffaf['model']['document']['on']('change:data',(_0x2cbde0,_0x61e7c2)=>{if(!_0x61e7c2['isLocal']||_0x61e7c2['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x259e1b=_0xefffaf['model']['document']['differ']['getChanges']();if(0x0==_0x259e1b['length'])return;const _0x5a3905=[],_0x1c7818=_0x259e1b['filter'](_0x4ae6f2=>'attribute'==_0x4ae6f2['type']),_0x2566e2=_0x259e1b['filter'](_0x3f49dc=>'insert'==_0x3f49dc['type']&&'$text'!=_0x3f49dc['name']);for(const _0x506cb3 of _0x1c7818)this['_isRegisteredAttribute'](_0x506cb3['attributeKey'])&&_0x5a3905['push']({'key':_0x506cb3['attributeKey'],'newValue':_0x506cb3['attributeNewValue'],'oldValue':_0x506cb3['attributeOldValue'],'range':Zt(_0x506cb3['range'],_0xefffaf['model'])});for(const _0x2cbfad of _0x2566e2){if('rename'!=_0x2cbfad['action']&&'refresh'!=_0x2cbfad['action'])continue;const _0x1ef5ee=tn(_0x2cbfad['position']['nodeAfter'],_0xefffaf['model']),_0x559597=_0x2cbfad['before'];'rename'==_0x2cbfad['action']&&_0x5a3905['push']({'key':m,'newValue':_0x2cbfad['name'],'oldValue':_0x559597['name'],'range':_0x1ef5ee});for(const [_0x17d9ce,_0x344e0b]of _0x559597['attributes']){if(!this['_isRegisteredAttribute'](_0x17d9ce))continue;const _0x526528=_0x2cbfad['attributes']['get'](_0x17d9ce);_0x344e0b!==_0x526528&&_0x5a3905['push']({'key':_0x17d9ce,'newValue':_0x526528,'oldValue':_0x344e0b,'range':_0x1ef5ee});}for(const [_0x4cc788,_0x2994ab]of _0x2cbfad['attributes'])this['_isRegisteredAttribute'](_0x4cc788)&&(_0x559597['attributes']['has'](_0x4cc788)||_0x5a3905['push']({'key':_0x4cc788,'newValue':_0x2994ab,'oldValue':null,'range':_0x1ef5ee}));}0x0!=_0x5a3905['length']&&_0xefffaf['model']['enqueueChange'](_0x61e7c2,_0x27fae4=>{const _0x37eaa0=_0x180995();for(const {range:_0x142229,key:_0x1bbb54,oldValue:_0x5814b4,newValue:_0x5c7f92}of _0x5a3905)this['markAttributeChange'](_0x142229,_0x1bbb54,_0x5814b4,_0x5c7f92,{'groupId':_0x37eaa0});this['_reduceExistingSuggestions'](_0x27fae4,_0x5a3905);});},{'priority':'lowest'}),_0xefffaf['model']['markers']['on']('update:suggestion',(_0x386cad,_0x2bf714,_0x667b26)=>{if(null==_0x667b26){const {id:_0x3c2fcc}=this['_splitMarkerName'](_0x2bf714['name']),_0x33ab05=this['_suggestions']['get'](_0x3c2fcc);_0x33ab05&&_0x33ab05['addMarkerName'](_0x2bf714['name']);}}),_0xefffaf['model']['document']['on']('change:data',()=>{const _0x2e5b9d=Array['from'](_0xefffaf['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4eb8b8=>'suggestion'===this['_splitMarkerName'](_0x4eb8b8['name'])['group']);if(0x0===_0x2e5b9d['length'])return;_0x2e5b9d['sort']((_0x105b6d,_0x4306be)=>{const _0x3a7d70=_0x105b6d['data']['oldRange'],_0x4b7316=_0x4306be['data']['oldRange'];return null===_0x3a7d70&&null===_0x4b7316?0x0:null===_0x3a7d70&&null!==_0x4b7316?-0x1:null!==_0x3a7d70&&null===_0x4b7316?0x1:_0x3a7d70['start']['isBefore'](_0x4b7316['start'])?-0x1:0x1;});const _0x1b29b7=new Set(),_0x1d9c50=new Set();for(const {name:_0x50d3a6,data:_0x1050d1}of _0x2e5b9d){const {id:_0x43c30e}=this['_splitMarkerName'](_0x50d3a6);if(null===_0x1050d1['oldRange']){const _0x16468d=this['_handleNewSuggestionMarker'](_0x50d3a6);_0x1d9c50['add'](_0x16468d);}else{const _0x3f7d41=this['_suggestions']['get'](_0x43c30e);null!==_0x1050d1['newRange']||_0x3f7d41['isInContent']?(_0x1b29b7['add'](_0x3f7d41['head']),_0x1d9c50['add'](_0x3f7d41)):this['_removeSuggestion'](_0x3f7d41);}}_0x1d9c50['size']>0x0&&this['_refreshSuggestionsChain'](_0x1d9c50);for(const _0x278771 of _0x1b29b7)this['fire']('suggestionChanged',_0x278771);}),_0xefffaf['model']['on']('applyOperation',(_0x48ad15,_0x11f57d)=>{const _0x44ff9d=_0x11f57d[0x0];if(!this['_suggestions']['size'])return;if(!_0x44ff9d['isDocumentOperation'])return;if(_0x44ff9d['batch']['isUndo']||!_0x44ff9d['batch']['isLocal'])return;let _0x234dcb,_0x501e8f;switch(_0x44ff9d['type']){case'insert':_0x234dcb=_0xefffaf['model']['createPositionAt'](_0x44ff9d['position']),_0x501e8f=_0x234dcb['getShiftedBy'](_0x44ff9d['howMany']);break;case'split':_0x234dcb=_0xefffaf['model']['createPositionAt'](_0x44ff9d['splitPosition']),_0x501e8f=_0xefffaf['model']['createPositionAt'](_0x44ff9d['moveTargetPosition']);break;case'move':_0x234dcb=_0xefffaf['model']['createPositionAt'](_0x44ff9d['targetPosition']),_0x501e8f=_0x234dcb['getShiftedBy'](_0x44ff9d['howMany']);break;default:return;}const _0x1cb97b=_0xefffaf['model']['createRange'](_0x234dcb,_0x501e8f);_0xefffaf['model']['change'](()=>{for(const {suggestion:_0x3179f8,meta:_0x4825e1}of this['_findSuggestions'](_0x1cb97b)){if(_0x3179f8['isMultiRange'])continue;if('formatInline'==_0x3179f8['type'])continue;const _0x4896f1=this['_getAttributeKey'](_0x3179f8);if(_0x4896f1&&this['_isBlockAttribute'](_0x4896f1)&&'split'!=_0x44ff9d['type'])continue;const _0x557b56=_0x3179f8['data']&&_0x3179f8['data']['multipleBlocks'];('formatBlock'!=_0x3179f8['type']||'split'==_0x44ff9d['type']&&!_0x557b56)&&(_0x4825e1['containsRangeInObject']||'insertion'==_0x3179f8['type']&&_0x4825e1['isOwn']||_0x3179f8['getFirstRange']()['containsRange'](_0x1cb97b)&&this['_breakSuggestionMarker'](_0x3179f8,_0x234dcb,_0x501e8f));}});},{'priority':'lowest'}),_0xefffaf['model']['on']('deleteContent',(_0x169b35,_0x3d920a)=>{const _0x4e36d3=_0x3d920a[0x0],_0x4df650=_0x3d920a[0x1];if(_0x4df650&&_0x4df650['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4e36d3['isCollapsed'])return;const _0x19cc9e=_0xefffaf['model']['schema'],{start:_0x308a3f,end:_0x9af3fe}=_0x4e36d3['getFirstRange'](),_0x50a481=_0x308a3f['nodeAfter']&&_0x19cc9e['isLimit'](_0x308a3f['nodeAfter'])?null:_0x19cc9e['getNearestSelectionRange'](_0x308a3f,'forward'),_0x18286b=_0x9af3fe['nodeBefore']&&_0x19cc9e['isLimit'](_0x9af3fe['nodeBefore'])?null:_0x19cc9e['getNearestSelectionRange'](_0x9af3fe,'backward'),_0x4470b9=_0xefffaf['model']['createRange'](_0x50a481?_0x50a481['start']:_0x308a3f,_0x18286b?_0x18286b['end']:_0x9af3fe);_0xefffaf['model']['change'](_0x37b194=>{this['markDeletion'](_0x4470b9);const _0x72c6a5=_0xefffaf['model']['schema']['getNearestSelectionRange'](_0x4470b9['start']);_0x4e36d3['is']('documentSelection')?_0x37b194['setSelection'](_0x72c6a5):_0x4e36d3['setTo'](_0x72c6a5);}),_0x169b35['stop']();},{'priority':_0x14da34['normal']+0xa}),_0xefffaf['model']['on']('insertContent',(_0x1df2b9,_0x11eedb)=>{const _0x3ade75=_0x11eedb[_0x11eedb['length']-0x1];_0x3ade75&&_0x3ade75['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xefffaf['model']['change'](()=>{let _0x3535d5=_0xefffaf['model']['insertContent'](_0x11eedb[0x0],_0x11eedb[0x1],_0x11eedb[0x2],{'forceDefaultExecution':!0x0});if(!_0x3535d5)return;_0x1df2b9['return']=_0x3535d5['clone']();const _0x827118=_0x3535d5['end']['nodeBefore'],_0x28c56f=_0xefffaf['model']['schema'];_0x827118&&_0x28c56f['isBlock'](_0x827118)&&!_0x28c56f['isObject'](_0x827118)&&(_0x3535d5=_0xefffaf['model']['createRange'](_0x3535d5['start'],_0xefffaf['model']['createPositionAt'](_0x827118,'end'))),this['markInsertion'](_0x3535d5);}),_0x1df2b9['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x226c61=new v(_0xefffaf,this['_suggestions']);_0xefffaf['commands']['add']('acceptSuggestion',_0x226c61),this['enableCommand']('acceptSuggestion');const _0x152c14=new D(_0xefffaf,this['_suggestions']);_0xefffaf['commands']['add']('discardSuggestion',_0x152c14),this['enableCommand']('discardSuggestion'),_0xefffaf['commands']['add']('acceptAllSuggestions',new B(_0xefffaf,_0x226c61,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xefffaf['commands']['add']('discardAllSuggestions',new B(_0xefffaf,_0x152c14,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xefffaf['commands']['add']('acceptSelectedSuggestions',new O(_0xefffaf,_0x226c61,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xefffaf['commands']['add']('discardSelectedSuggestions',new O(_0xefffaf,_0x152c14,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x100986=_0xefffaf['plugins']['get']('CommentsRepository');this['listenTo'](_0x100986,'addComment',(_0x31297c,{threadId:_0x5d8765})=>{const _0x5dba5b=this['_suggestions']['get'](_0x5d8765);_0x5dba5b&&_0x5dba5b['commentThread']&&0x1===_0x5dba5b['commentThread']['length']&&this['_updateSuggestionData'](_0x5d8765,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x100986,'removeComment',(_0x3711a5,{threadId:_0x37bc53})=>{const _0x1ec0ac=this['_suggestions']['get'](_0x37bc53);_0x1ec0ac&&_0x1ec0ac['commentThread']&&!_0x1ec0ac['commentThread']['length']&&this['_updateSuggestionData'](_0x37bc53,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1eae93){const _0x4b7aa2=_0x1bbcb2([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]),_0x1b43bc=0x3d8d0df,_0x120416=0x3dfaa77^_0x1b43bc,_0xff2150=window[_0x1bbcb2([0x44,0x61,0x74,0x65])][_0x1bbcb2([0x6e,0x6f,0x77])](),_0x307c53=_0x1eae93[_0x1bbcb2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x20ff0d=new window[(_0x1bbcb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1dc8fb=>{_0x307c53[_0x1bbcb2([0x6f,0x6e,0x63,0x65])](_0x1bbcb2([0x72,0x65,0x61,0x64,0x79]),_0x1dc8fb);}),_0xcf3264={[_0x1bbcb2([0x6b,0x74,0x79])]:_0x1bbcb2([0x45,0x43]),[_0x1bbcb2([0x75,0x73,0x65])]:_0x1bbcb2([0x73,0x69,0x67]),[_0x1bbcb2([0x63,0x72,0x76])]:_0x1bbcb2([0x50,0x2d,0x32,0x35,0x36]),[_0x1bbcb2([0x78])]:_0x1bbcb2([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]),[_0x1bbcb2([0x79])]:_0x1bbcb2([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]),[_0x1bbcb2([0x61,0x6c,0x67])]:_0x1bbcb2([0x45,0x53,0x32,0x35,0x36])},_0xbff230=_0x307c53[_0x1bbcb2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1bbcb2([0x67,0x65,0x74])](_0x1bbcb2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e3fa7(){let _0x22a9d1,_0x453f7a=null,_0x4c0ad0=null;try{if(_0xbff230==_0x1bbcb2([0x47,0x50,0x4c]))return _0x1bbcb2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x22a9d1=_0x5194dc(),!_0x22a9d1)return _0x1bbcb2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x22a9d1[_0x1bbcb2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c0ad0=_0x542d0e(_0x22a9d1[_0x1bbcb2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x22a9d1[_0x1bbcb2([0x6a,0x74,0x69])])),await _0x2c1e91()?_0x439ba5()?_0x592b36()?_0x1bbcb2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xabdecc()?(_0x22a9d1[_0x1bbcb2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1bbcb2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x453f7a=_0x1cb10b(_0x1bbcb2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x22a9d1[_0x1bbcb2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1bbcb2([0x74,0x72,0x69,0x61,0x6c])&&(_0x453f7a=_0x1cb10b(_0x1bbcb2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22e5fb()):_0x1bbcb2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1bbcb2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1bbcb2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1bbcb2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x592b36(){const _0xf91d5d=[_0x1bbcb2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1bbcb2([0x74,0x72,0x69,0x61,0x6c])][_0x1bbcb2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22a9d1[_0x1bbcb2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xff2150/0x3e8:0xe10*_0x120416;return _0x22a9d1[_0x1bbcb2([0x65,0x78,0x70])]<_0xf91d5d;}function _0x439ba5(){const _0xa35bfc=_0x22a9d1[_0x1bbcb2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xa35bfc)return!0x1;if(_0xa35bfc[_0x1bbcb2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bbcb2([0x2a])))return!0x0;if(_0xa35bfc[_0x1bbcb2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bbcb2([0x54,0x43])))return!0x0;if(_0xa35bfc[_0x1bbcb2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bbcb2([0x52,0x54,0x43]))){if(_0x46f3f7())return!0x0;if(_0x516f3c()||_0x7abf21())return!0x0;}return!0x1;}function _0xabdecc(){const _0x1505d0=_0x22a9d1[_0x1bbcb2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1505d0||0x0==_0x1505d0[_0x1bbcb2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x35493d}=new URL(window[_0x1bbcb2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1505d0[_0x1bbcb2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35493d))return!0x0;const _0x53dcb5=_0x35493d[_0x1bbcb2([0x73,0x70,0x6c,0x69,0x74])](_0x1bbcb2([0x2e]));return _0x1505d0[_0x1bbcb2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12cfaa=>_0x12cfaa[_0x1bbcb2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bbcb2([0x2a])))[_0x1bbcb2([0x6d,0x61,0x70])](_0x4815c2=>_0x4815c2[_0x1bbcb2([0x73,0x70,0x6c,0x69,0x74])](_0x1bbcb2([0x2e])))[_0x1bbcb2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x31993c=>_0x31993c[_0x1bbcb2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x53dcb5[_0x1bbcb2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1bbcb2([0x6d,0x61,0x70])](_0x526bcb=>Array(_0x53dcb5[_0x1bbcb2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x526bcb[_0x1bbcb2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1bbcb2([0x66,0x69,0x6c,0x6c])](_0x526bcb[0x0]===_0x1bbcb2([0x2a])?_0x1bbcb2([0x2a]):'')[_0x1bbcb2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x526bcb))[_0x1bbcb2([0x73,0x6f,0x6d,0x65])](_0x32ed6e=>_0x53dcb5[_0x1bbcb2([0x65,0x76,0x65,0x72,0x79])]((_0xc926d7,_0x2f9e63)=>_0x32ed6e[_0x2f9e63]===_0xc926d7||_0x32ed6e[_0x2f9e63]===_0x1bbcb2([0x2a])));}function _0x22e5fb(){return _0x453f7a&&_0x4c0ad0?new window[(_0x1bbcb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x25acf4,_0x572a69)=>{_0x453f7a[_0x1bbcb2([0x74,0x68,0x65,0x6e])](_0x25acf4,_0x572a69),_0x4c0ad0[_0x1bbcb2([0x74,0x68,0x65,0x6e])](_0x510011=>{_0x510011!=_0x1bbcb2([0x56,0x61,0x6c,0x69,0x64])&&_0x25acf4(_0x510011);},_0x572a69);}):_0x453f7a||_0x4c0ad0||_0x1bbcb2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x542d0e(_0x25a94c,_0x4df88d){return new window[(_0x1bbcb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57c76d=>{if(_0x2061fe())return _0x57c76d(_0x1bbcb2([0x56,0x61,0x6c,0x69,0x64]));_0x17691b(),_0x307c53[_0x1bbcb2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1bbcb2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x355d1f=!0x1;const _0x5736f0=_0x180995();function _0x13fab2(_0x1bcf7d){return!!_0x1bcf7d&&(typeof _0x1bcf7d===_0x1bbcb2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1bcf7d===_0x1bbcb2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1bcf7d[_0x1bbcb2([0x74,0x68,0x65,0x6e])]===_0x1bbcb2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1bcf7d[_0x1bbcb2([0x63,0x61,0x74,0x63,0x68])]===_0x1bbcb2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f6054(_0x29404d){_0x4853f9(_0x29404d)[_0x1bbcb2([0x74,0x68,0x65,0x6e])](_0x1125d3=>{if(!_0x1125d3||_0x1125d3[_0x1bbcb2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1bbcb2([0x6f,0x6b]))return _0x1bbcb2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x271209(_0xde631b(_0x5736f0+_0x4df88d))!=_0x1125d3[_0x1bbcb2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1bbcb2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1bbcb2([0x56,0x61,0x6c,0x69,0x64]);})[_0x1bbcb2([0x74,0x68,0x65,0x6e])](_0x4c138b=>(_0x20bec3(),_0x4c138b),()=>{const _0x5a8b30=_0xfb0c52();return null==_0x5a8b30?(_0x20bec3(),_0x1bbcb2([0x56,0x61,0x6c,0x69,0x64])):_0x1bbcb2(_0xff2150-_0x5a8b30>(0x27d454df^_0x1b43bc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1bbcb2([0x74,0x68,0x65,0x6e])](_0x57c76d)[_0x1bbcb2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x57c76d(_0x1bbcb2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4c2861=0x3ee3e5f^_0x1b43bc;function _0x20bec3(){const _0x5423a1=_0x1bbcb2([0x6c,0x6c,0x63,0x74,0x2d])+_0x271209(_0xde631b(_0x25a94c)),_0x41286b=_0x2fac4f(_0x271209(window[_0x1bbcb2([0x4d,0x61,0x74,0x68])][_0x1bbcb2([0x63,0x65,0x69,0x6c])](_0xff2150/_0x4c2861)));window[_0x1bbcb2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1bbcb2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5423a1,_0x41286b);}function _0xfb0c52(){const _0x3ae832=_0x1bbcb2([0x6c,0x6c,0x63,0x74,0x2d])+_0x271209(_0xde631b(_0x25a94c)),_0x3723a8=window[_0x1bbcb2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1bbcb2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ae832);return _0x3723a8?window[_0x1bbcb2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fac4f(_0x3723a8),0x10)*_0x4c2861:null;}function _0x4853f9(_0x346237){return new window[(_0x1bbcb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x77eb32,_0x1bb4bb)=>{_0x346237[_0x1bbcb2([0x74,0x68,0x65,0x6e])](_0x77eb32,_0x1bb4bb),window[_0x1bbcb2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1bb4bb,0x3d9041f^_0x1b43bc);});}}_0x307c53[_0x1bbcb2([0x6f,0x6e])](_0x1bbcb2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x45d0a5,_0x2e2d73)=>{if(_0x2e2d73[0x0]!=_0x25a94c)return _0x57c76d(_0x1bbcb2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e2d73[0x1]={..._0x2e2d73[0x1],[_0x1bbcb2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5736f0};},{[_0x1bbcb2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1bbcb2([0x68,0x69,0x67,0x68])}),_0x307c53[_0x1bbcb2([0x6f,0x6e])](_0x1bbcb2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xac918d=>{_0x13fab2(_0xac918d[_0x1bbcb2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x355d1f=!0x0,_0x3f6054(_0xac918d[_0x1bbcb2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1bbcb2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1bbcb2([0x6c,0x6f,0x77])}),_0x20ff0d[_0x1bbcb2([0x74,0x68,0x65,0x6e])](()=>{_0x355d1f||_0x57c76d(_0x1bbcb2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2061fe(){return _0x307c53[_0x1bbcb2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1bbcb2([0x76,0x69,0x65,0x77])][_0x1bbcb2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1bbcb2([0x61,0x75,0x74,0x6f]);}function _0x17691b(){_0x307c53[_0x1bbcb2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1bbcb2([0x76,0x69,0x65,0x77])][_0x1bbcb2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1bbcb2([0x61,0x75,0x74,0x6f]);}}function _0x1cb10b(_0x995c97){const _0x2aedb6=[new window[(_0x1bbcb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12eb6c=>setTimeout(_0x12eb6c,0x3d1ee13^_0x1b43bc)),_0x20ff0d[_0x1bbcb2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1bbcb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c04c5=>{let _0x3d8e97=0x0;_0x307c53[_0x1bbcb2([0x6d,0x6f,0x64,0x65,0x6c])][_0x1bbcb2([0x6f,0x6e])](_0x1bbcb2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x353139,_0x1f317c)=>{_0x1f317c[0x0][_0x1bbcb2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3d8e97++,_0x3d8e97==(0x3d8d127^_0x1b43bc)&&(_0x2c04c5(),_0x353139[_0x1bbcb2([0x6f,0x66,0x66])]());});}))];return window[_0x1bbcb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1bbcb2([0x72,0x61,0x63,0x65])](_0x2aedb6)[_0x1bbcb2([0x74,0x68,0x65,0x6e])](()=>_0x995c97);}async function _0xdd46f9(){await _0x20ff0d,_0x307c53[_0x1bbcb2([0x6d,0x6f,0x64,0x65,0x6c])][_0x1bbcb2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x45f438,_0x307c53[_0x1bbcb2([0x6d,0x6f,0x64,0x65,0x6c])][_0x1bbcb2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x45f438,_0x307c53[_0x1bbcb2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1bbcb2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x46f3f7(){return _0x18544a(_0x1bbcb2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4f22b2(_0x1bbcb2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1bbcb2([0x73,0x74,0x61,0x74,0x65])]==_0x1bbcb2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x516f3c(){return _0x18544a(_0x1bbcb2([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 _0x7abf21(){return _0x18544a(_0x1bbcb2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2567b5(_0x21dbd0){const _0x11d90a=_0x2930b6();_0x307c53[_0x11d90a]=_0x1bbcb2([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x21dbd0,_0x21dbd0!=_0x1bbcb2([0x56,0x61,0x6c,0x69,0x64])&&_0xdd46f9();}function _0x2930b6(){const _0x478767=window[_0x1bbcb2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1bbcb2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1bbcb2([0x6e,0x6f,0x77])]())[_0x1bbcb2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1bbcb2([0x2e]),'');let _0x421335=_0x1bbcb2([0x52]);for(let _0x17ed89=0x0;_0x17ed89<_0x478767[_0x1bbcb2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17ed89+=0x2){let _0x46d7ed=window[_0x1bbcb2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x478767[_0x1bbcb2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17ed89,_0x17ed89+0x2));_0x46d7ed>=_0x4b7aa2[_0x1bbcb2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x46d7ed-=_0x4b7aa2[_0x1bbcb2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x421335+=_0x4b7aa2[_0x46d7ed];}return _0x421335;}function _0x5194dc(){const _0x20ada7=_0xbff230[_0x1bbcb2([0x73,0x70,0x6c,0x69,0x74])](_0x1bbcb2([0x2e]));if(0x3!=_0x20ada7[_0x1bbcb2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f6cc0(_0x20ada7[0x1]);function _0x4f6cc0(_0x5c523f){const _0x5c1c20=_0x1670a4(_0x5c523f);return _0x5c1c20&&_0x1c68a7()?_0x5c1c20:null;function _0x1c68a7(){const _0x2ba36d=_0x5c1c20[_0x1bbcb2([0x6a,0x74,0x69])],_0x2543ae=window[_0x1bbcb2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ba36d[_0x1bbcb2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ba36d[_0x1bbcb2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x25e9ce={..._0x5c1c20,[_0x1bbcb2([0x6a,0x74,0x69])]:_0x2ba36d[_0x1bbcb2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2ba36d[_0x1bbcb2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x25e9ce[_0x1bbcb2([0x76,0x63])],_0xde631b(_0x25e9ce)==_0x2543ae;}}}async function _0x2c1e91(){let _0x47ae08=!0x0;try{const _0xdee383=_0xbff230[_0x1bbcb2([0x73,0x70,0x6c,0x69,0x74])](_0x1bbcb2([0x2e])),[_0x59b4fb,_0x1e785a,_0x5d9a71]=_0xdee383;return _0x413595(_0x59b4fb),await _0x3adf94(_0x59b4fb,_0x1e785a,_0x5d9a71),_0x47ae08;}catch{return!0x1;}function _0x413595(_0x51c765){const _0x965eef=_0x1670a4(_0x51c765);_0x965eef&&_0x965eef[_0x1bbcb2([0x61,0x6c,0x67])]==_0x1bbcb2([0x45,0x53,0x32,0x35,0x36])||(_0x47ae08=!0x1);}async function _0x3adf94(_0x38155d,_0x48f647,_0x2c9c01){const _0x3c0339=window[_0x1bbcb2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1bbcb2([0x66,0x72,0x6f,0x6d])](_0x1b7259(_0x2c9c01),_0x540e18=>_0x540e18[_0x1bbcb2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d4ee3=new window[(_0x1bbcb2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1bbcb2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x38155d+_0x1bbcb2([0x2e])+_0x48f647),_0x174942=window[_0x1bbcb2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1bbcb2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x174942)return;const _0x2097e5=await _0x174942[_0x1bbcb2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1bbcb2([0x6a,0x77,0x6b]),_0xcf3264,{[_0x1bbcb2([0x6e,0x61,0x6d,0x65])]:_0x1bbcb2([0x45,0x43,0x44,0x53,0x41]),[_0x1bbcb2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1bbcb2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1bbcb2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x174942[_0x1bbcb2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1bbcb2([0x6e,0x61,0x6d,0x65])]:_0x1bbcb2([0x45,0x43,0x44,0x53,0x41]),[_0x1bbcb2([0x68,0x61,0x73,0x68])]:{[_0x1bbcb2([0x6e,0x61,0x6d,0x65])]:_0x1bbcb2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2097e5,_0x3c0339,_0x5d4ee3)||(_0x47ae08=!0x1);}}function _0x1670a4(_0x3ffdbd){return _0x3ffdbd[_0x1bbcb2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1bbcb2([0x65,0x79]))?JSON[_0x1bbcb2([0x70,0x61,0x72,0x73,0x65])](_0x1b7259(_0x3ffdbd)):null;}function _0x1b7259(_0x4c3b8b){return window[_0x1bbcb2([0x61,0x74,0x6f,0x62])](_0x4c3b8b[_0x1bbcb2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1bbcb2([0x2b]))[_0x1bbcb2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1bbcb2([0x2f])));}function _0xde631b(_0x355bcb){let _0x5a8a5b=0x1505;function _0x36e65d(_0x198358){for(let _0x2b937d=0x0;_0x2b937d<_0x198358[_0x1bbcb2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b937d++){const _0x59828e=_0x198358[_0x1bbcb2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b937d);_0x5a8a5b=(_0x5a8a5b<<0x5)+_0x5a8a5b+_0x59828e,_0x5a8a5b&=_0x5a8a5b;}}function _0x37400d(_0x2611a9){Array[_0x1bbcb2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2611a9)?_0x2611a9[_0x1bbcb2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x37400d):_0x2611a9&&typeof _0x2611a9==_0x1bbcb2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1bbcb2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2611a9)[_0x1bbcb2([0x73,0x6f,0x72,0x74])]()[_0x1bbcb2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1fed4f,_0x1f38f6])=>{_0x36e65d(_0x1fed4f),_0x37400d(_0x1f38f6);}):_0x36e65d(window[_0x1bbcb2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2611a9));}return _0x37400d(_0x355bcb),_0x5a8a5b>>>0x0;}function _0x271209(_0xbf9f3f){return _0xbf9f3f[_0x1bbcb2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1bbcb2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1bbcb2([0x30]));}function _0x2fac4f(_0x34569a){return _0x34569a[_0x1bbcb2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1bbcb2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1bbcb2([0x6a,0x6f,0x69,0x6e])]('');}function _0x18544a(_0x50eb4b){return _0x307c53[_0x1bbcb2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1bbcb2([0x68,0x61,0x73])](_0x50eb4b);}function _0x4f22b2(_0x135fc8){return _0x307c53[_0x1bbcb2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1bbcb2([0x67,0x65,0x74])](_0x135fc8);}function _0x45f438(){}function _0x1bbcb2(_0xd6ba22){return _0xd6ba22['map'](_0x311e20=>String['fromCharCode'](_0x311e20))['join']('');}_0x2567b5(await _0x3e3fa7());}(this);}set['adapter'](_0x116e73){if(this['_adapter'])throw new _0x36afc1('track-changes-adapter-already-set',this);this['_adapter']=_0x116e73;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1ef4e2=!0x1,toJSON:_0x5e6b68=!0x1}={}){const _0x40c6d3=[];for(const _0x374dab of this['_suggestions']['values']())_0x1ef4e2&&!_0x374dab['isInContent']||_0x40c6d3['push'](_0x374dab);return _0x5e6b68?_0x40c6d3['map'](_0x3e6cce=>_0x3e6cce['toJSON']()):_0x40c6d3;}['getSuggestion'](_0x93cd2b){const _0x2eabbd=this['_suggestions']['get'](_0x93cd2b);if(!_0x2eabbd)throw new _0x36afc1('track-changes-suggestion-not-found',this);return _0x2eabbd;}['hasSuggestion'](_0x3d0670){return this['_suggestions']['has'](_0x3d0670);}['addSuggestionData'](_0x513d1b){const {authorId:_0x26cf14,id:_0x29667e,originalSuggestionId:_0x24db65,attributes:_0x72088c}=_0x513d1b,[_0x5ee8c2,_0x518c33]=_0x513d1b['type']['split'](':'),_0x3d01fa=this['_suggestions']['get'](_0x29667e)||this['_createSuggestion'](_0x5ee8c2,_0x518c33,_0x29667e,_0x26cf14,_0x72088c,_0x24db65);if(this['_addThreadToSuggestion'](_0x3d01fa),this['_checkSuggestionCorrectness'](_0x3d01fa,_0x5ee8c2,_0x518c33||null,_0x26cf14),_0x3d01fa['createdAt']=_0x513d1b['createdAt'],_0x3d01fa['_isDataLoaded']=!0x0,_0x72088c&&_0x72088c['@external']){const _0x44fff1=_0x72088c['@external'],_0x1855d9=this['_getExternalAuthor'](_0x44fff1['authorName']);_0x3d01fa['authoredAt']=_0x44fff1['createdAt'],_0x3d01fa['author']=_0x1855d9,_0x3d01fa['isExternal']=!0x0;}else _0x3d01fa['authoredAt']=_0x513d1b['createdAt'];switch(_0x513d1b['data']&&(_0x3d01fa['data']=_0x513d1b['data']),_0x513d1b['attributes']&&(_0x3d01fa['attributes']=_0x513d1b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3d01fa['_saved']=!0x0),this['_suggestionState']['get'](_0x3d01fa)){case'notReady':this['_suggestionState']['set'](_0x3d01fa,'dataReady');break;case'markerReady':_0x3d01fa['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3d01fa])),this['_refreshSuggestionsChain'](new Set([_0x3d01fa])),this['_suggestionState']['set'](_0x3d01fa,'ready'),this['fire']('suggestionLoaded',_0x3d01fa)):this['_suggestionState']['set'](_0x3d01fa,'removed');}return _0x3d01fa;}['acceptSuggestion'](_0x180ea4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x12818e of _0x180ea4['getAllAdjacentSuggestions']())_0x12818e['accept']();});});}['discardSuggestion'](_0x5ea8bd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xf8d5ff of _0x5ea8bd['getAllAdjacentSuggestions']())_0xf8d5ff['discard']();});});}['enableCommand'](_0x2902e0,_0x34de41){const _0x1bca30=this['editor']['commands']['get'](_0x2902e0);if(!_0x1bca30)throw new _0x36afc1('track-changes-command-not-found',this,{'commandName':_0x2902e0});if(this['_enabledCommands']['has'](_0x1bca30))throw new _0x36afc1('track-changes-enable-command-twice',this,{'commandName':_0x2902e0});this['_enabledCommands']['add'](_0x1bca30),_0x34de41&&_0x1bca30['on']('execute',(_0xd87961,_0x365f03)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x365f03['length']>0x0&&_0x365f03[_0x365f03['length']-0x1]&&_0x365f03[_0x365f03['length']-0x1]['forceDefaultExecution']?_0x365f03['pop']():(_0xd87961['return']=_0x34de41((..._0x1e2108)=>_0x1bca30['execute'](..._0x1e2108,{'forceDefaultExecution':!0x0}),..._0x365f03),_0xd87961['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x8a02f){let _0x5845b0,_0x5c3839;const _0x13ebb1=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5845b0=_0x8a02f();}catch(_0x5e16fb){_0x5c3839=_0x5e16fb;}return _0x13ebb1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5c3839&&_0x36afc1['rethrowUnexpectedError'](_0x5c3839,this),_0x5845b0;}['markInsertion'](_0x1842fd,_0x1b83c7=null,_0x32ef2a={}){if(_0x1842fd['isCollapsed'])return null;const _0x46fd0a=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x32ef2a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x11b027,meta:_0x18cee2}of this['_findSuggestions'](_0x1842fd,'insertion'))if(_0x18cee2['isOwn']){if(!_0x18cee2['isNextTo']){if(_0x18cee2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x11b027,_0x32ef2a))continue;return _0x11b027;}if(sn(_0x11b027,_0x32ef2a))return _0x11b027;this['_breakSuggestionMarker'](_0x11b027,_0x1842fd['start'],_0x1842fd['end']);break;}if(_0x1b83c7==_0x11b027['subType']&&sn(_0x11b027,_0x32ef2a)){const _0x13c3f6=_0x11b027['getFirstRange']();return _0x13c3f6['start']['isEqual'](_0x1842fd['end'])?this['_setSuggestionRange'](_0x11b027,this['_model']['createRange'](_0x1842fd['start'],_0x13c3f6['end'])):this['_setSuggestionRange'](_0x11b027,this['_model']['createRange'](_0x13c3f6['start'],_0x1842fd['end'])),_0x11b027;}}const _0x4731e7=_0x180995(),_0x1d0e95=_0x46fd0a['id'],_0x29fa20=_0x1b83c7?'insertion:'+_0x1b83c7:'insertion',_0x389757=this['_setSuggestionData']({'id':_0x4731e7,'type':_0x29fa20,'createdAt':new Date(),'authorId':_0x1d0e95,'attributes':_0x32ef2a});return this['_addSuggestionMarker'](_0x29fa20,_0x4731e7,_0x1d0e95,_0x1842fd),_0x389757;}['markMultiRangeInsertion'](_0x235acb,_0x57c4d2='multi',_0xdc96f4={}){const _0x2583ca=this['editor']['plugins']['get']('Users')['me'],_0x44afd9=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x57c4d2,'join');this['_trackingSessionId']&&(_0xdc96f4['trackingSessionId']=this['_trackingSessionId']);for(const _0x7c32f2 of this['getSuggestions']())if(_0x7c32f2['author']['id']==_0x2583ca['id']&&'insertion'==_0x7c32f2['type']&&_0x7c32f2['subType']==_0x57c4d2&&sn(_0x7c32f2,_0xdc96f4)&&(_0x44afd9(_0x7c32f2['getRanges'](),_0x235acb)||_0x44afd9(_0x235acb,_0x7c32f2['getRanges']()))){for(const _0x3b4d2e of _0x235acb)_0x7c32f2['addRange'](_0x3b4d2e);return _0x7c32f2;}for(const {suggestion:_0x375788,meta:_0x221410}of this['_findSuggestions'](_0x235acb,'insertion')){if(!_0x221410['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x221410['containsRangeInObject'])continue;if(!sn(_0x375788,_0xdc96f4))continue;let _0x52d94d=!0x0;for(const _0x1b81d1 of _0x375788['getRanges']())for(const _0x2d88be of _0x235acb)if(!_0x1b81d1['containsRange'](_0x2d88be)){_0x52d94d=!0x1;break;}if(_0x52d94d)return _0x375788;}const _0xaa0bf=_0x180995(),_0x76add7=_0x2583ca['id'],_0x111ef0='insertion:'+_0x57c4d2,_0x49155f=this['_setSuggestionData']({'id':_0xaa0bf,'type':_0x111ef0,'createdAt':new Date(),'authorId':_0x76add7,'attributes':_0xdc96f4});for(const _0x492ed7 of _0x235acb)this['_addSuggestionMarker'](_0x111ef0,_0xaa0bf,_0x76add7,_0x492ed7,x['getMultiRangeId']());return _0x49155f;}['markInlineFormat'](_0x131b84,_0xd96b15,_0x5a7e6f=null,_0x4b8af8={}){if(_0x5a7e6f=_0x5a7e6f||Ht(_0xd96b15),_0x131b84['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4b8af8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2a1bc6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5a7e6f,'accept');return this['forceDefaultExecution'](()=>_0x2a1bc6([_0x131b84],_0xd96b15,_0x4b8af8)),null;}const _0xc0f40f=this['editor']['plugins']['get']('Users')['me'],_0x1eb73c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x261c2a,meta:_0x41c7b7}of this['_findSuggestions'](_0x131b84,'insertion'))_0x41c7b7['isOwn']&&!_0x41c7b7['isInsideObject']&&_0x1eb73c['push'](..._0x261c2a['getRanges']());}const _0x51cdbf=function(_0x5b7262,_0x19b948){const _0x3bde7b=[];for(const _0x680f0 of _0x19b948){const _0x133a4f=_0x5b7262['getIntersection'](_0x680f0);_0x133a4f&&_0x3bde7b['push'](_0x133a4f);}return _0x3bde7b;}(_0x131b84,_0x1eb73c),_0x2ad29d=function(_0x5b4f7f,_0x61da52){const _0x43a40b=[_0x5b4f7f];for(const _0x488ee8 of _0x61da52){let _0x3315b8=0x0;for(;_0x3315b8<_0x43a40b['length'];){const _0x2ce19d=_0x43a40b[_0x3315b8]['getDifference'](_0x488ee8);_0x43a40b['splice'](_0x3315b8,0x1,..._0x2ce19d),_0x3315b8+=_0x2ce19d['length'];}}return _0x43a40b;}(_0x131b84,_0x1eb73c);_0x51cdbf['length']&&this['_model']['change'](()=>{for(const _0x421d69 of _0x51cdbf){const _0x45a3a1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5a7e6f,'accept');this['forceDefaultExecution'](()=>_0x45a3a1([_0x421d69],_0xd96b15,_0x4b8af8));}});for(const _0x4042ce of _0x2ad29d){let _0x384ab3=null,_0x2aab20=_0x4042ce['start'],_0x2197d8=_0x4042ce['end'];for(const {suggestion:_0x4e0146,meta:_0x555a4f}of this['_findSuggestions'](_0x4042ce,'formatInline')){if(!_0x555a4f['isOwn'])continue;if(_0x4e0146['subType']!=_0x5a7e6f)continue;if(!sn(_0x4e0146,_0x4b8af8))continue;const _0xa8d154=_0x4e0146['getFirstRange']();if(_0xa8d154['containsRange'](_0x4042ce,!0x0))return null;_0x2aab20=_0x2aab20['isBefore'](_0xa8d154['start'])?_0x2aab20:_0xa8d154['start'],_0x2197d8=_0x2197d8['isAfter'](_0xa8d154['end'])?_0x2197d8:_0xa8d154['end'],_0x384ab3?_0xa8d154['start']['isBefore'](_0x384ab3['getFirstRange']()['start'])?(_0x384ab3['removeMarkers'](),_0x384ab3=_0x4e0146):_0x4e0146['removeMarkers']():_0x384ab3=_0x4e0146;}const _0x3f85f4=this['_model']['createRange'](_0x2aab20,_0x2197d8);if(_0x384ab3)this['_setSuggestionRange'](_0x384ab3,_0x3f85f4);else{const _0x52d403=_0x180995(),_0x5189b4=_0xc0f40f['id'];this['_setSuggestionData']({'id':_0x52d403,'type':'formatInline:'+_0x5a7e6f,'data':_0xd96b15,'createdAt':new Date(),'authorId':_0x5189b4,'attributes':_0x4b8af8}),this['_addSuggestionMarker']('formatInline:'+_0x5a7e6f,_0x52d403,_0x5189b4,_0x3f85f4);}}return null;}['markBlockFormat'](_0x546f1f,_0x118985,_0x32da5f=[],_0x5e3f84=null,_0x442324={}){_0x118985['formatGroupId']||(_0x118985['formatGroupId']=_0x118985['commandName']),_0x118985['multipleBlocks']=_0x546f1f['is']('range'),_0x5e3f84=_0x5e3f84||Ht(_0x118985);const _0x33e5f3=_0x32da5f['map'](_0x5d8a3f=>tn(_0x5d8a3f,this['_model'])),_0x1c70c7=_0x546f1f['is']('range')?_0x546f1f:tn(_0x546f1f,this['_model']);if(this['_trackingSessionId']&&(_0x442324['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x342d2e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e3f84,'accept');return this['forceDefaultExecution'](()=>_0x342d2e([_0x1c70c7],_0x118985,_0x442324)),null;}_0x33e5f3['push'](_0x1c70c7);let _0x24070b=!0x0;for(const _0x2dd2d5 of _0x33e5f3)if(!this['_rangeIsInLocalUserInsertion'](_0x2dd2d5)){_0x24070b=!0x1;break;}if(_0x24070b&&'always'!==this['_trackFormatChanges']){const _0x2b9373=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e3f84,'accept');return this['forceDefaultExecution'](()=>_0x2b9373([_0x1c70c7],_0x118985,_0x442324)),null;}let _0x4b173c=null,_0x2d2b5f=_0x1c70c7['start'],_0x141739=_0x1c70c7['end'];for(const {suggestion:_0x36bf5f,meta:_0xf3529a}of this['_findSuggestions'](_0x1c70c7,'formatBlock')){if(!_0xf3529a['isOwn'])continue;if(_0xf3529a['isNextTo']||_0xf3529a['containsRangeInObject']||_0xf3529a['isInsideObject'])continue;if(_0x36bf5f['data']['formatGroupId']!=_0x118985['formatGroupId'])continue;if(!sn(_0x36bf5f,_0x442324))continue;const _0x1264a0=_0x36bf5f['getFirstRange']();if(_0x36bf5f['subType']==_0x5e3f84){if(_0x1264a0['containsRange'](_0x1c70c7,!0x0))return null;_0x2d2b5f=_0x2d2b5f['isBefore'](_0x1264a0['start'])?_0x2d2b5f:_0x1264a0['start'],_0x141739=_0x141739['isAfter'](_0x1264a0['end'])?_0x141739:_0x1264a0['end'],_0x4b173c?_0x1264a0['start']['isBefore'](_0x4b173c['getFirstRange']()['start'])?(_0x4b173c['removeMarkers'](),_0x4b173c=_0x36bf5f):_0x36bf5f['removeMarkers']():_0x4b173c=_0x36bf5f;}else{const _0x5bf3b2=_0x1c70c7['getIntersection'](_0x1264a0);this['_cutOutSuggestionMarker'](_0x36bf5f,_0x5bf3b2);}}const _0x6430f0=this['editor']['plugins']['get']('Users')['me'],_0x3d55ed=_0x180995(),_0x2b76a3=_0x6430f0['id'];if(_0x4b173c)return this['_setSuggestionRange'](_0x4b173c,this['_model']['createRange'](_0x2d2b5f,_0x141739)),_0x4b173c;{const _0x3e3f13=this['_setSuggestionData']({'id':_0x3d55ed,'type':'formatBlock:'+_0x5e3f84,'data':_0x118985,'createdAt':new Date(),'authorId':_0x2b76a3,'attributes':_0x442324});return this['_addSuggestionMarker']('formatBlock:'+_0x5e3f84,_0x3d55ed,_0x2b76a3,this['_model']['createRange'](_0x2d2b5f,_0x141739)),_0x3e3f13;}}['markMultiRangeBlockFormat'](_0x22c186,_0x48260d,_0x428f5c=[],_0x237570=null,_0x1bb83d={}){_0x48260d['formatGroupId']||(_0x48260d['formatGroupId']=_0x48260d['commandName']);const _0x1bfb70=_0x22c186[0x0];_0x48260d['multipleBlocks']=_0x1bfb70['is']('range'),_0x237570=_0x237570||Ht(_0x48260d);const _0x2de6f5=_0x428f5c['map'](_0x517927=>tn(_0x517927,this['_model'])),_0x10d5d6=_0x1bfb70['is']('range')?_0x22c186:_0x22c186['map'](_0x4c2385=>tn(_0x4c2385,this['_model']));if(this['_trackingSessionId']&&(_0x1bb83d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3c7230=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x237570,'accept');return this['forceDefaultExecution'](()=>_0x3c7230(_0x10d5d6,_0x48260d,_0x1bb83d)),null;}_0x2de6f5['push'](..._0x10d5d6);let _0x185db2=!0x0;for(const _0x377ad5 of _0x2de6f5)if(!this['_rangeIsInLocalUserInsertion'](_0x377ad5)){_0x185db2=!0x1;break;}if(_0x185db2&&'always'!==this['_trackFormatChanges']){const _0x4e0aca=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x237570,'accept');return this['forceDefaultExecution'](()=>_0x4e0aca(_0x10d5d6,_0x48260d,_0x1bb83d)),null;}const _0x5dd51e=this['editor']['plugins']['get']('Users')['me'];for(const _0x2d6163 of this['getSuggestions']()){const _0x3cd503=_0x2d6163['data'];if(_0x2d6163['author']['id']!=_0x5dd51e['id'])continue;if('formatBlock'!=_0x2d6163['type']||_0x3cd503['formatGroupId']!=_0x48260d['formatGroupId'])continue;if(!sn(_0x2d6163,_0x1bb83d))continue;const _0x46fda1=_0x2d6163['subType']==_0x237570;for(let _0x12f60f=0x0;_0x12f60f<_0x10d5d6['length'];_0x12f60f++){const _0x5ba90c=_0x10d5d6[_0x12f60f];for(const _0x32083a of _0x2d6163['getMarkers']()){const _0x2b579d=_0x32083a['getRange']();if(_0x5ba90c['isEqual'](_0x2b579d)){_0x46fda1?(_0x10d5d6['splice'](_0x12f60f,0x1),_0x12f60f--):_0x2d6163['removeMarker'](_0x32083a['name']);break;}}}}if(0x0==_0x10d5d6['length'])return null;const _0xe6e9a1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x237570,'join');for(const _0x10ee63 of this['getSuggestions']()){const _0x345818=_0x10ee63['data'];if(_0x10ee63['author']['id']==_0x5dd51e['id']&&('formatBlock'==_0x10ee63['type']&&_0x345818['formatGroupId']==_0x48260d['formatGroupId']&&_0x10ee63['subType']==_0x237570&&sn(_0x10ee63,_0x1bb83d)&&(_0xe6e9a1(_0x10ee63['getRanges'](),_0x10d5d6)||_0xe6e9a1(_0x10d5d6,_0x10ee63['getRanges']())))){for(const _0x5abedc of _0x10d5d6)_0x10ee63['addRange'](_0x5abedc);return _0x10ee63;}}const _0x334f58=_0x180995(),_0x2243be=_0x5dd51e['id'],_0x471854='formatBlock:'+_0x237570,_0x26c74b=this['_setSuggestionData']({'id':_0x334f58,'type':_0x471854,'data':_0x48260d,'createdAt':new Date(),'authorId':_0x2243be,'attributes':_0x1bb83d});for(const _0x4c4f7d of _0x10d5d6)this['_addSuggestionMarker'](_0x471854,_0x334f58,_0x2243be,_0x4c4f7d,x['getMultiRangeId']());return _0x26c74b;}['markDeletion'](_0xb94f58,_0x36aa62=null,_0x88f4a7={}){if(_0xb94f58['isCollapsed'])return null;const _0x7190eb=this['editor']['plugins']['get']('Users')['me'],_0x4969c2=new _0xfdd8dd(_0xb94f58['start'],_0xb94f58['end']);this['_trackingSessionId']&&(_0x88f4a7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x107dc4,meta:_0x2f24be}of this['_findSuggestions'](_0x4969c2,'insertion'))if(_0x2f24be['isOwn']&&!_0x2f24be['isNextTo']){if(_0x107dc4['isMultiRange']){const _0x1b0541=_0x107dc4['getRanges']()['filter'](_0x5ba09a=>'$graveyard'!=_0x5ba09a['root']['rootName']);_0x1b0541['every'](_0x45a20e=>_0x4969c2['containsRange'](_0x45a20e,!0x0))&&_0x107dc4['discard']();if(_0x1b0541['some'](_0xa2d552=>_0xa2d552['containsRange'](_0x4969c2,!0x0))){const _0x239c0b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x36aa62,'accept');return this['forceDefaultExecution'](()=>_0x239c0b([_0x4969c2],null,_0x88f4a7)),null;}}else{const _0x461c58=_0x4969c2['getIntersection'](_0x107dc4['getFirstRange']());null!==_0x461c58&&_0x107dc4['_onDiscard']([_0x461c58],null,_0x88f4a7);}}if(_0x4969c2['detach'](),_0x4969c2['isCollapsed']||'$graveyard'==_0x4969c2['root']['rootName'])return null;let _0x2bc936=null,_0xcd549a=_0x4969c2['start'],_0x54670f=_0x4969c2['end'];const _0x2f0898=this['_findSuggestions'](_0x4969c2,'deletion');for(const {suggestion:_0x19202d,meta:_0x5e8c0c}of _0x2f0898){const _0x4f150d=this['_model']['createRange'](_0xcd549a,_0x54670f);if(_0x5e8c0c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5e8c0c['containsRangeInObject']&&!_0x5e8c0c['isInsideObject'])){if(_0x19202d['isMultiRange']){if(!sn(_0x19202d,_0x88f4a7))continue;let _0x37a8c2=!0x0;for(const _0x369337 of _0x19202d['getRanges']()){if(_0x369337['containsRange'](_0x4f150d,!0x0))return _0x19202d;_0x4f150d['containsRange'](_0x369337)||(_0x37a8c2=!0x1);}_0x37a8c2&&_0x19202d['discard']();}else{const _0x2df080=_0x19202d['getFirstRange']();if(_0x2df080['containsRange'](_0x4f150d,!0x0))return _0x19202d;if(!sn(_0x19202d,_0x88f4a7)){_0x4f150d['containsRange'](_0x2df080)?_0x19202d['removeMarkers']():_0x2df080['containsPosition'](_0xcd549a)?_0xcd549a=_0x2df080['end']:_0x2df080['containsPosition'](_0x54670f)&&(_0x54670f=_0x2df080['start']);continue;}_0xcd549a=_0xcd549a['isBefore'](_0x2df080['start'])?_0xcd549a:_0x2df080['start'],_0x54670f=_0x54670f['isAfter'](_0x2df080['end'])?_0x54670f:_0x2df080['end'],_0x88f4a7=Object['assign']({},_0x19202d['attributes']),_0x2bc936?_0x2df080['start']['isBefore'](_0x2bc936['getFirstRange']()['start'])?(_0x2bc936['removeMarkers'](),_0x2bc936=_0x19202d):_0x19202d['removeMarkers']():_0x2bc936=_0x19202d;}}}if(_0x2bc936)return this['_setSuggestionRange'](_0x2bc936,this['_model']['createRange'](_0xcd549a,_0x54670f)),_0x2bc936;{const _0x1605b3=_0x180995(),_0x3aa2d5=this['_model']['createRange'](_0xcd549a,_0x54670f),_0x49c1b1=_0x7190eb['id'],_0x786fc8=_0x36aa62?'deletion:'+_0x36aa62:'deletion',_0x8c8329=this['_setSuggestionData']({'id':_0x1605b3,'type':_0x786fc8,'createdAt':new Date(),'authorId':_0x49c1b1,'attributes':_0x88f4a7});return this['_addSuggestionMarker'](_0x786fc8,_0x1605b3,_0x49c1b1,_0x3aa2d5),_0x8c8329;}}['markMultiRangeDeletion'](_0x2724dc,_0x252120='multi',_0x327d65={}){const _0x150e82=this['editor']['plugins']['get']('Users')['me'],_0x5d375d=_0x2724dc['map'](_0xb95abe=>new _0xfdd8dd(_0xb95abe['start'],_0xb95abe['end'])),_0x976f5=new Set();this['_trackingSessionId']&&(_0x327d65['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x565eca,meta:_0x407ad8}of this['_findSuggestions'](_0x5d375d,'insertion'))_0x407ad8['isOwn']&&!_0x407ad8['isNextTo']&&_0x976f5['add'](_0x565eca);for(const _0x58cbbb of _0x976f5)if(_0x58cbbb['isMultiRange']){const _0x29397c=_0x58cbbb['getRanges']();(!_0x58cbbb['attributes']||!_0x58cbbb['attributes']['skipNestingCheck'])&&(_0x29397c['every'](_0x2af1a5=>_0x5d375d['some'](_0x210cd2=>_0x210cd2['containsRange'](_0x2af1a5,!0x0)))&&_0x58cbbb['discard']());if(_0x5d375d['every'](_0x9db830=>_0x29397c['some'](_0xf9bfd6=>_0xf9bfd6['containsRange'](_0x9db830,!0x0)))){const _0x11391f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x252120,'accept');return this['forceDefaultExecution'](()=>_0x11391f(_0x2724dc,null,_0x327d65)),null;}}else{const _0x2bc440=_0x58cbbb['getFirstRange']();_0x5d375d['some'](_0x1bc350=>_0x1bc350['containsRange'](_0x2bc440,!0x0))&&_0x58cbbb['discard']();if(_0x5d375d['every'](_0x1659d3=>_0x2bc440['containsRange'](_0x1659d3,!0x0))){const _0x505ce2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x252120,'accept');return this['forceDefaultExecution'](()=>_0x505ce2(_0x5d375d,null,_0x327d65)),null;}}const _0x58413f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x252120,'join');let _0x3dcd1d=null;for(const _0xff945 of this['getSuggestions']())if(_0xff945['author']['id']==_0x150e82['id']&&_0xff945['isInContent']&&'deletion'==_0xff945['type']&&_0xff945['subType']==_0x252120&&sn(_0xff945,_0x327d65)&&(_0x58413f(_0xff945['getRanges'](),_0x5d375d)||_0x58413f(_0x5d375d,_0xff945['getRanges']()))){if(_0x3dcd1d){if(_0xff945['commentThread']&&_0xff945['commentThread']['length'])continue;for(const _0x1ac5fd of _0xff945['getRanges']())_0x3dcd1d['isIntersectingWithRange'](_0x1ac5fd)||_0x3dcd1d['addRange'](_0x1ac5fd);_0xff945['removeMarkers']();}else{_0x3dcd1d=_0xff945;for(const _0x119374 of _0x5d375d)_0xff945['isIntersectingWithRange'](_0x119374)||_0xff945['addRange'](_0x119374);}}if(_0x3dcd1d)return _0x3dcd1d;_0x976f5['clear']();for(const {suggestion:_0x3051f0,meta:_0x1cae9c}of this['_findSuggestions'](_0x5d375d,'deletion'))_0x1cae9c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1cae9c['containsRangeInObject']&&!_0x1cae9c['isInsideObject'])&&sn(_0x3051f0,_0x327d65)&&_0x976f5['add'](_0x3051f0);for(const _0x16a6aa of _0x976f5){const _0x5e7add=_0x16a6aa['getRanges']();if(!_0x327d65||!_0x327d65['skipNestingCheck']){if(_0x5d375d['every'](_0x4134b9=>_0x5e7add['some'](_0x365e09=>_0x365e09['containsRange'](_0x4134b9,!0x0))))return _0x16a6aa;}(!_0x16a6aa['attributes']||!_0x16a6aa['attributes']['skipNestingCheck'])&&(_0x5e7add['every'](_0x28e412=>_0x5d375d['some'](_0x2f6766=>_0x2f6766['containsRange'](_0x28e412,!0x0)))&&_0x16a6aa['discard']());}const _0xad7a29=_0x180995(),_0x488ce5=_0x150e82['id'],_0x431e54='deletion:'+_0x252120,_0x56dfdc=this['_setSuggestionData']({'id':_0xad7a29,'type':_0x431e54,'createdAt':new Date(),'authorId':_0x488ce5,'attributes':_0x327d65});for(const _0x241693 of _0x5d375d)_0x241693['detach'](),_0x241693['isCollapsed']||'$graveyard'==_0x241693['root']['rootName']||this['_addSuggestionMarker'](_0x431e54,_0xad7a29,_0x488ce5,_0x241693,x['getMultiRangeId']());return _0x56dfdc;}['markAttributeChange'](_0x44729b,_0xe9d0a7,_0x109646,_0x39a8cf,_0x478775){if(_0x44729b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1e13a6=this['editor']['plugins']['get']('Users')['me']['id'],_0x1d52df=Array['from'](this['_suggestions']['values']())['filter'](_0x1b00fe=>'attribute'==_0x1b00fe['type']&&_0x1b00fe['data']['key']==_0xe9d0a7&&_0x1b00fe['isIntersectingWithRange'](_0x44729b));if(this['_trackingSessionId']&&(_0x478775['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x16c6ff=this['_findSuggestions'](_0x44729b,'insertion')['filter'](({meta:_0x52cfed})=>_0x52cfed['isOwn']&&!_0x52cfed['isInsideObject']&&!_0x52cfed['isNextTo'])['map'](({suggestion:_0x282da0})=>_0x282da0);_0x1d52df['unshift'](..._0x16c6ff);}const _0x1ba7a4=new Map([[_0x44729b,_0x109646]]);for(const _0x5bfd4e of _0x1d52df){const _0x28067e='attribute'==_0x5bfd4e['type']?_0x5bfd4e['data']['oldValue']:void 0x0,_0x204ec7=_0x5bfd4e['getFirstRange'](),_0x38c43e=Array['from'](_0x1ba7a4['keys']())['find'](_0x190a71=>_0x190a71['isIntersecting'](_0x204ec7));if(!_0x38c43e)continue;const _0x28f565=_0x38c43e['getDifference'](_0x204ec7);this['_isBlockAttribute'](_0xe9d0a7)&&'insertion'==_0x5bfd4e['type']&&0x0!=_0x28f565['length']||(_0x1ba7a4['delete'](_0x38c43e),_0x28f565['forEach'](_0x2b692d=>{_0x1ba7a4['set'](_0x2b692d,_0x109646);}),'insertion'!=_0x5bfd4e['type']&&_0x28067e!=_0x39a8cf&&_0x1ba7a4['set'](_0x38c43e['getIntersection'](_0x204ec7),_0x28067e));}const _0x3eddef=[];for(const [_0x24c3a3,_0x3dc0bb]of _0x1ba7a4){const _0x249053=_0x180995(),_0x1ebf9a={'key':_0xe9d0a7,'oldValue':_0x3dc0bb,'newValue':_0x39a8cf};_0xe9d0a7['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':_0xe9d0a7});const _0x500bb8=('attribute:'+(_0xe9d0a7+'|'+Ht({'newValue':_0x39a8cf})))['substring'](0x0,0x3c),_0x5224da=this['_setSuggestionData']({'id':_0x249053,'type':_0x500bb8,'data':_0x1ebf9a,'createdAt':new Date(),'authorId':_0x1e13a6,'attributes':_0x478775});_0x3eddef['push'](_0x5224da),this['_addSuggestionMarker'](_0x500bb8,_0x249053,_0x1e13a6,_0x24c3a3);}return _0x3eddef;}['enableDefaultAttributesIntegration'](_0x40e157){this['enableCommand'](_0x40e157,(_0x5d6cc6,..._0x550c2b)=>{this['recordAttributeChanges'](()=>{_0x5d6cc6(..._0x550c2b);});});}['registerBlockAttribute'](_0x2ff4c5){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x2ff4c5);}['registerInlineAttribute'](_0x4d0a17){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x4d0a17);}['startTrackingSession'](_0x2e618d){return this['_trackingSessionId']=void 0x0!==_0x2e618d?_0x2e618d:_0x180995(),this['_trackingSessionId'];}['_getAttributeKey'](_0x201b58){return'attribute'==_0x201b58['type']?_0x201b58['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x537065){if(0x0==_0x537065['length'])return;const _0x4d3892=this['editor'],_0x2f4600=_0x4d3892['plugins']['get'](_0x4dbdf7),_0x31ab4c=[];_0x4d3892['model']['change'](_0x478237=>{for(let _0x42fde4=0x0;_0x42fde4<_0x537065['length'];_0x42fde4++){const _0x25bfe8=_0x537065[_0x42fde4];if(_0x25bfe8['baseVersion']=_0x4d3892['model']['document']['version'],_0x25bfe8['isDocumentOperation']=!0x0,_0x2f4600['isMarkedRemoveOperation'](_0x25bfe8)){const _0x5adb8d=Lt(_0x25bfe8['newRange'],_0x4d3892['model']);_0x31ab4c['unshift'](_0xfdd8dd['fromRange'](_0x5adb8d));}else switch(_0x25bfe8['type']){case'rename':{const _0xc0b480=_0x25bfe8['oldName'],_0xb54734=_0x25bfe8['newName'];if(_0xc0b480==_0xb54734)break;_0x478237['batch']['addOperation'](_0x25bfe8),_0x4d3892['model']['applyOperation'](_0x25bfe8);const _0x41b9bf='$elementName',_0x59c139=_0x25bfe8['position'],_0x19c092=_0x4d3892['model']['createRange'](_0x59c139,_0x4d3892['model']['createPositionAt'](_0x59c139['nodeAfter'],'end'));this['markAttributeChange'](_0x19c092,_0x41b9bf,_0xc0b480,_0xb54734,{'groupId':_0x180995()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x1505ab=_0x25bfe8['oldValue'],_0xdb455f=_0x25bfe8['newValue'];if(_0x1505ab==_0xdb455f)break;_0x478237['batch']['addOperation'](_0x25bfe8),_0x4d3892['model']['applyOperation'](_0x25bfe8);const _0x33fb7b=_0x25bfe8['key'];if(!this['_isRegisteredAttribute'](_0x33fb7b))break;const _0x4ee967=Lt(_0x25bfe8['range'],_0x4d3892['model']);this['markAttributeChange'](_0x4ee967,_0x33fb7b,_0x1505ab,_0xdb455f,{'groupId':_0x180995()});break;}case'insert':{_0x478237['batch']['addOperation'](_0x25bfe8),_0x4d3892['model']['applyOperation'](_0x25bfe8);if(_0x537065[_0x42fde4+0x1]&&'move'==_0x537065[_0x42fde4+0x1]['type'])break;const _0x3f351e=_0x25bfe8['position'],_0x2fe4be=_0x25bfe8['howMany'],_0x35f8ac=Lt(_0x4d3892['model']['createRange'](_0x3f351e,_0x3f351e['getShiftedBy'](_0x2fe4be)),_0x4d3892['model']);this['markInsertion'](_0x35f8ac);break;}case'split':{_0x478237['batch']['addOperation'](_0x25bfe8),_0x4d3892['model']['applyOperation'](_0x25bfe8);const _0x1312c=_0x25bfe8['splitPosition'],_0x514d5b=_0x25bfe8['moveTargetPosition'];this['markInsertion'](_0x4d3892['model']['createRange'](_0x1312c,_0x514d5b));break;}case'move':case'remove':_0x478237['batch']['addOperation'](_0x25bfe8),_0x4d3892['model']['applyOperation'](_0x25bfe8);}}for(const _0x3b1616 of _0x31ab4c)_0x3b1616['detach'](),this['markDeletion'](_0x3b1616);});}['_setSuggestionRange'](_0x17a5d0,_0x417806){const _0x1503e2=_0x17a5d0['getFirstMarker']();this['_model']['change'](_0x240ef0=>{_0x240ef0['updateMarker'](_0x1503e2,{'range':_0x417806});});}['_addThreadToSuggestion'](_0xed5466){const _0x47ec1b=_0xed5466['id'],_0x57cd56=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x47ec1b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x57cd56,'threadId':_0x47ec1b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5350ec=this['_commentsRepository']['getCommentThread'](_0x47ec1b);_0x5350ec['unbind']('isRemovable'),_0x5350ec['isRemovable']=!0x1,_0xed5466['commentThread']=_0x5350ec;}['_checkSuggestionCorrectness'](_0x2af739,_0x50dabb,_0x15d080,_0x247eaf){if(_0x2af739['type']!=_0x50dabb||_0x2af739['subType']!=_0x15d080||_0x2af739['creator']['id']!=_0x247eaf)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x36afc1('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x374c08,_0x40161d){const _0x1d63cb=_0x374c08['getFirstRange']();if(_0x40161d['isEqual'](_0x1d63cb))_0x374c08['removeMarkers']();else{if(_0x1d63cb['containsRange'](_0x40161d)){const _0x4fbfbe=this['_model']['createPositionAt'](_0x40161d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x374c08,this['_model']['createRange'](_0x1d63cb['start'],_0x4fbfbe));const _0x32da85=_0x180995(),_0x1f054a=_0x374c08['creator']['id'],_0x2346e9=_0x374c08['type']+':'+_0x374c08['subType'];this['_setSuggestionData']({'id':_0x32da85,'type':_0x2346e9,'createdAt':new Date(),'authorId':_0x1f054a,'data':_0x374c08['data'],'attributes':_0x374c08['attributes']});const _0x106d9b=this['_model']['createPositionAt'](_0x40161d['end']['parent'],'after'),_0x50da9a=this['_model']['createRange'](_0x106d9b,_0x1d63cb['end']);this['_addSuggestionMarker'](_0x2346e9,_0x32da85,_0x1f054a,_0x50da9a);}else{if(_0x1d63cb['containsPosition'](_0x40161d['start'])){const _0x2e1395=this['_model']['createPositionAt'](_0x40161d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x374c08,this['_model']['createRange'](_0x1d63cb['start'],_0x2e1395));}else{const _0x3a804c=this['_model']['createPositionAt'](_0x40161d['end']['parent'],'after');this['_setSuggestionRange'](_0x374c08,this['_model']['createRange'](_0x3a804c,_0x1d63cb['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x392cd0){for(const {suggestion:_0x46cf46,meta:_0x289e27}of this['_findSuggestions'](_0x392cd0,'insertion')){if(!_0x289e27['isOwn'])continue;const _0x33adbd=_0x46cf46['getRanges']();for(const _0x5bb981 of _0x33adbd)if(!_0x392cd0['getDifference'](_0x5bb981)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x98fd40){return this['editor']['plugins']['get']('Users')['getUser'](_0x98fd40);}['_getExternalAuthor'](_0x4cc6ba){const _0x5d2b52=this['editor']['plugins']['get']('Users'),_0x4aca72=_0x58c5fe('external:'+_0x4cc6ba),_0x10ea66=_0x5d2b52['getUser'](_0x4aca72);return _0x10ea66||_0x5d2b52['addUser']({'id':_0x4aca72,'name':_0x4cc6ba});}['_createSuggestion'](_0x32b258,_0x39a555,_0x51efab,_0x421d31,_0xb7abe5,_0x34d771){const _0x55e1bf=this['_getAuthorFromId'](_0x421d31);if(!_0x55e1bf)throw new _0x36afc1('track-changes-user-not-found',this,{'authorId':_0x421d31,'suggestionId':_0x51efab});const _0x561f53=this['_suggestionFactory']['buildSuggestion'](_0x32b258,_0x39a555,_0x51efab,_0x55e1bf,_0xb7abe5,_0x6703b6=>{this['_updateSuggestionData'](_0x51efab,{'attributes':_0x6703b6});const _0x3ae61c=this['getSuggestion'](_0x51efab);this['_joinWithAdjacentSuggestions'](new Set([_0x3ae61c])),this['_refreshSuggestionsChain'](new Set([_0x3ae61c]));},_0x34d771);return this['listenTo'](_0x561f53,'accept',()=>{this['_updateSuggestionData'](_0x51efab,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x561f53,'discard',()=>{this['_updateSuggestionData'](_0x51efab,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x51efab,_0x561f53),this['_suggestionState']['set'](_0x561f53,'notReady'),_0x561f53;}['_splitMarkerName'](_0x20b3d5){return Gt(_0x20b3d5);}['_breakSuggestionMarker'](_0x2f8710,_0x35e3b3,_0x3a9d66){const _0x2a7b16=_0x2f8710['getFirstRange'](),_0x2b9d82=_0x2a7b16['start'],_0x23b84e=_0x2a7b16['end'];this['_setSuggestionRange'](_0x2f8710,this['_model']['createRange'](_0x2b9d82,_0x35e3b3));const _0x3db0c1=_0x180995(),_0x1b4857=_0x2f8710['creator']['id'],_0x49a4b5=_0x2f8710['type']+(_0x2f8710['subType']?':'+_0x2f8710['subType']:'');this['_setSuggestionData']({'id':_0x3db0c1,'type':_0x49a4b5,'createdAt':new Date(),'authorId':_0x1b4857,'originalSuggestionId':_0x2f8710['_originalSuggestionId']||_0x2f8710['id'],'attributes':_0x2f8710['attributes'],'data':_0x2f8710['data']});const _0x58f7e3=this['_getAttributeKey'](_0x2f8710);('formatBlock'==_0x2f8710['type']||_0x58f7e3&&this['_isBlockAttribute'](_0x58f7e3))&&(_0x3a9d66=this['_model']['createPositionBefore'](_0x3a9d66['parent'])),this['_addSuggestionMarker'](_0x49a4b5,_0x3db0c1,_0x1b4857,this['_model']['createRange'](_0x3a9d66,_0x23b84e));}['_findSuggestions'](_0x1d9a50,_0x4808b8=null){const _0x9a7e46=[],_0x2bc50e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1d9a50)||(_0x1d9a50=[_0x1d9a50]);for(const _0x51f9b8 of this['getSuggestions']()){if(!_0x51f9b8['isInContent'])continue;if(_0x4808b8&&_0x51f9b8['type']!=_0x4808b8)continue;let _0x3435b2=!0x1;for(const _0x369eb of _0x51f9b8['getRanges']()){for(const _0x56f307 of _0x1d9a50){const _0x3f9f12=_0x56f307['start']['isEqual'](_0x369eb['end'])||_0x56f307['end']['isEqual'](_0x369eb['start']);if(_0x3f9f12||_0x56f307['getIntersection'](_0x369eb)){const _0x32c844=_0x56f307['containsRange'](_0x369eb)&&zt(this['_model']['schema'],_0x369eb['start'],_0x56f307),_0x50c662=_0x369eb['containsRange'](_0x56f307)&&zt(this['_model']['schema'],_0x56f307['start'],_0x369eb);_0x9a7e46['push']({'suggestion':_0x51f9b8,'meta':{'isOwn':_0x2bc50e==_0x51f9b8['author'],'isNextTo':_0x3f9f12,'isInsideObject':_0x32c844,'containsRangeInObject':_0x50c662}}),_0x3435b2=!0x0;break;}}if(_0x3435b2)break;}}return _0x9a7e46;}['_addSuggestionMarker'](_0x3b2c0c,_0xf5dc6a,_0xe11eb6,_0x1fac86,_0x1ad28c){this['_model']['change'](_0x20dc2f=>{let _0x554d40='suggestion:'+_0x3b2c0c+':'+_0xf5dc6a+':'+_0xe11eb6;_0x1ad28c&&(_0x554d40=_0x554d40+':'+_0x1ad28c),_0x20dc2f['addMarker'](_0x554d40,{'range':_0x1fac86,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x59f9d9){const _0x4f5ff6=_0x59f9d9['previous'],_0x5b17a3=_0x59f9d9['next'];_0x59f9d9['previous']=null,_0x59f9d9['next']=null,null!=_0x4f5ff6&&_0x4f5ff6['next']==_0x59f9d9&&(_0x4f5ff6['next']=_0x5b17a3),null!=_0x5b17a3&&_0x5b17a3['previous']==_0x59f9d9&&(_0x5b17a3['previous']=_0x4f5ff6),'ready'==this['_suggestionState']['get'](_0x59f9d9)&&(this['_suggestionState']['set'](_0x59f9d9,'removed'),this['fire']('suggestionUnloaded',_0x59f9d9,_0x4f5ff6,_0x5b17a3));}['_setSuggestionData'](_0xf510bb){const _0x2d0ba5=_0xf510bb['id'],_0x865bf0=this['addSuggestionData'](_0xf510bb);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x8f696e=this['editor']['plugins']['get']('PendingActions'),_0x2f4fc7=_0x865bf0['hasComments'],_0x15b6da=_0x865bf0['subType']?_0x865bf0['type']+':'+_0x865bf0['subType']:_0x865bf0['type'],_0x4f4e8b=this['editor']['locale'],_0x5c1772=_0x8f696e['add'](o(_0x4f4e8b,'PENDING_ACTION_SUGGESTION')),_0x2145ea={'id':_0x2d0ba5,'type':_0x15b6da,'hasComments':_0x2f4fc7,'data':_0xf510bb['data']||null,'originalSuggestionId':_0xf510bb['originalSuggestionId']||null,'attributes':_0x865bf0['attributes']};this['_adapter']['addSuggestion'](_0x2145ea)['then'](_0x4c3e8e=>{_0x865bf0['_saved']=!0x0,_0x8f696e['remove'](_0x5c1772),_0x4c3e8e&&_0x4c3e8e['createdAt']&&(this['_suggestions']['get'](_0x2d0ba5)['createdAt']=_0x4c3e8e['createdAt']);})['catch'](_0x3b87ba=>{throw _0x4561a0('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x865bf0['discard']();}),_0x865bf0['stopListening'](),this['_suggestions']['delete'](_0x865bf0['id']),this['_suggestionState']['delete'](_0x865bf0),_0x3b87ba;});}return _0x865bf0;}['_isBlockAttribute'](_0x29518a){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x29518a);}['_isInlineAttribute'](_0x166b08){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x166b08);}['_updateSuggestionData'](_0x4a300f,_0x5019cb){const _0x18c88f=this['editor']['plugins']['get']('PendingActions'),_0x2e94d3=this['getSuggestion'](_0x4a300f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2e94d3['_saved']){const _0x4dc2d4=_0x18c88f['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4a300f,_0x5019cb)['then'](()=>{_0x18c88f['remove'](_0x4dc2d4);});}else _0x2e94d3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4a300f,_0x5019cb);});}}['_getSuggestionData'](_0x171694){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x36afc1('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x171694);}['_handleNewSuggestionMarker'](_0x31df90){const {id:_0x1d30ea,type:_0x2d8084,subType:_0xee20f9,authorId:_0xe47680}=this['_splitMarkerName'](_0x31df90),_0x3ff435=this['_suggestions']['get'](_0x1d30ea)||this['_createSuggestion'](_0x2d8084,_0xee20f9,_0x1d30ea,_0xe47680,{});switch(this['_checkSuggestionCorrectness'](_0x3ff435,_0x2d8084,_0xee20f9,_0xe47680),this['_suggestionState']['get'](_0x3ff435)){case'notReady':this['_getSuggestionData'](_0x1d30ea)['then'](_0x383330=>{let _0x13cf06=Promise['resolve']();_0x383330['hasComments']&&(_0x13cf06=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1d30ea})),_0x13cf06['then'](()=>{this['addSuggestionData'](_0x383330)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3ff435,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1d30ea,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3ff435,'ready'),this['fire']('suggestionLoaded',_0x3ff435);break;case'ready':this['fire']('suggestionChanged',_0x3ff435);}return _0x3ff435['addMarkerName'](_0x31df90),_0x3ff435;}['_refreshSuggestionsChain'](_0x3af1e1){const _0x3fe7b=Array['from'](_0x3af1e1),_0x2d0888=_0x3fe7b['filter'](_0x313595=>'attribute'==_0x313595['type']);this['_refreshAttributeSuggestionsChain'](_0x2d0888);const _0x58ccfe=_0x3fe7b['filter'](_0xe4f564=>!_0xe4f564['isMultiRange']&&'attribute'!=_0xe4f564['type']),_0x357a2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9056b5=>!_0x9056b5['isMultiRange']&&'attribute'!=_0x9056b5['type']),_0x23ca19=_0x357a2['filter'](_0x49f577=>!_0x3af1e1['has'](_0x49f577)),_0x443a0d=new Map(_0x357a2['map'](_0x442c32=>[_0x442c32,this['_suggestionFactory']['getSuggestionCallback'](_0x442c32['type'],_0x442c32['subType'],'chain')])),_0x551e23=new Map(_0x357a2['map'](_0xdb37a2=>[_0xdb37a2,_0xdb37a2['getFirstRange']()])),_0xc8d35a=new Set(),_0x23b9ad=new Set();for(let _0x1f982e=0x0;_0x1f982e<_0x58ccfe['length'];_0x1f982e++)_0x4e5f32(_0x58ccfe[_0x1f982e],_0x58ccfe,_0x1f982e+0x1);for(let _0x3f3bf6=0x0;_0x3f3bf6<_0x58ccfe['length'];_0x3f3bf6++)_0x4e5f32(_0x58ccfe[_0x3f3bf6],_0x23ca19,0x0);const _0x30fc2a=new Set();for(let _0x209122=0x0;_0x209122<_0x58ccfe['length'];_0x209122++){const _0x1253ce=_0x58ccfe[_0x209122];!_0x23b9ad['has'](_0x1253ce)&&_0x1253ce['previous']&&(_0x30fc2a['add'](_0x1253ce['previous']),_0x1253ce['previous']['next']===_0x1253ce&&(_0x1253ce['previous']['next']=null),_0x1253ce['previous']=null),!_0xc8d35a['has'](_0x1253ce)&&_0x1253ce['next']&&(_0x30fc2a['add'](_0x1253ce['next']),_0x1253ce['next']['previous']===_0x1253ce&&(_0x1253ce['next']['previous']=null),_0x1253ce['next']=null);}function _0x4e5f32(_0x5374e5,_0xbb4344,_0x260f79){for(let _0x46d702=_0x260f79;_0x46d702<_0xbb4344['length'];_0x46d702++){const _0xed2f1f=_0x1ee4ac(_0x5374e5,_0xbb4344[_0x46d702]);_0xed2f1f&&(_0xed2f1f[0x0]['next']=_0xed2f1f[0x1],_0xed2f1f[0x1]['previous']=_0xed2f1f[0x0],_0xc8d35a['add'](_0xed2f1f[0x0]),_0x23b9ad['add'](_0xed2f1f[0x1]));}}function _0x1ee4ac(_0x2aab70,_0x2d9aa6){if(_0x2aab70['author']['id']!==_0x2d9aa6['author']['id'])return null;const _0x1d7c97=_0x443a0d['get'](_0x2aab70)(_0x2aab70,_0x2d9aa6,_0x551e23['get'](_0x2aab70),_0x551e23['get'](_0x2d9aa6));if(!_0x1d7c97)return null;return _0x443a0d['get'](_0x2d9aa6)(_0x2aab70,_0x2d9aa6,_0x551e23['get'](_0x2aab70),_0x551e23['get'](_0x2d9aa6))?_0x1d7c97[0x1]['commentThread']&&_0x1d7c97[0x1]['commentThread']['length']?null:_0x1d7c97:null;}_0x30fc2a['size']&&this['_refreshSuggestionsChain'](_0x30fc2a);}['_refreshAttributeSuggestionsChain'](_0x5a6118){if(0x0==_0x5a6118['length'])return;const _0x30245d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f969b=>'attribute'==_0x3f969b['type']&&_0x3f969b['_isDataLoaded']),_0x1a2643=[],_0x163981=new Map();for(const _0x5d389e of _0x30245d){const _0x2003f8=_0x58c5fe(_0x5d389e['attributes']);_0x163981['has'](_0x2003f8)||(_0x163981['set'](_0x2003f8,_0x1a2643['length']),_0x1a2643['push']([]));const _0x25f8a5=_0x163981['get'](_0x2003f8);_0x1a2643[_0x25f8a5]['push'](_0x5d389e);}!(function(){_0x1a2643['sort']((_0x391a06,_0x79774)=>{const _0x1cb9d7=_0x391a06[0x0]['createdAt'],_0x204ca8=_0x79774[0x0]['createdAt'];return _0x1cb9d7==_0x204ca8?_0x391a06[0x0]['attributes']['groupId']<_0x79774[0x0]['attributes']['groupId']?-0x1:0x1:_0x1cb9d7<_0x204ca8?-0x1:0x1;});for(const _0xe88218 of _0x1a2643)_0xe88218['sort']((_0x59ce8f,_0x4d9b67)=>_0x59ce8f['id']<_0x4d9b67['id']?-0x1:0x1);}());for(let _0x580f3b=0x0;_0x580f3b<_0x1a2643['length'];_0x580f3b++){if(0x0==_0x1a2643[_0x580f3b]['length'])continue;const _0x51cd81=[];for(let _0x4e57e1=_0x580f3b+0x1;_0x4e57e1<_0x1a2643['length'];_0x4e57e1++)0x0!=_0x1a2643[_0x4e57e1]['length']&&_0x36af2c(_0x1a2643[_0x580f3b],_0x1a2643[_0x4e57e1])&&_0x51cd81['push'](_0x4e57e1);for(const _0x5c453e of _0x51cd81)_0x1a2643[_0x580f3b]=_0x1a2643[_0x580f3b]['concat'](_0x1a2643[_0x5c453e]),_0x1a2643[_0x5c453e]=[];}for(const _0x5ec624 of _0x1a2643)for(let _0x44a97f=0x0;_0x44a97f<_0x5ec624['length'];_0x44a97f++){const _0x1c4987=_0x5ec624[_0x44a97f+0x1]||null;_0x5ec624[_0x44a97f]['next']!==_0x1c4987&&(_0x5ec624[_0x44a97f]['next']=_0x1c4987);}for(const _0x35b129 of _0x1a2643)for(let _0x12d3d2=0x0;_0x12d3d2<_0x35b129['length'];_0x12d3d2++){const _0x1d1857=_0x35b129[_0x12d3d2-0x1]||null;_0x35b129[_0x12d3d2]['previous']!==_0x1d1857&&(_0x35b129[_0x12d3d2]['previous']=_0x1d1857);}function _0x36af2c(_0x134147,_0x482cc4){if(_0x134147[0x0]['attributes']['groupId']!==_0x482cc4[0x0]['attributes']['groupId']&&_0x134147[0x0]['author']!==_0x482cc4[0x0]['author'])return!0x1;if(!function(_0x50cde3,_0x511b01){if(!_0x50cde3['hasComments']&&!_0x511b01['hasComments'])return!0x0;if(_0x50cde3['hasComments']&&_0x511b01['hasComments'])return!0x1;if(_0x50cde3['hasComments']&&_0x511b01['createdAt']<_0x50cde3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x511b01['hasComments']&&_0x50cde3['createdAt']<_0x511b01['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x134147[0x0],_0x482cc4[0x0]))return!0x1;const _0x22ba10=Pt(_0x134147[0x0]['attributes'],['groupId','trackingSessionId']),_0x3b48cf=Pt(_0x482cc4[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2ab580(_0x22ba10,_0x3b48cf))return!0x1;if(_0x134147[0x0]['attributes']['groupId']==_0x482cc4[0x0]['attributes']['groupId'])return!0x0;if(_0x134147[0x0]['attributes']['trackingSessionId']!==_0x482cc4[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x134147['every'](_0x125f3d=>_0x482cc4['some'](_0x3ac3fc=>_0x125f3d['getFirstRange']()['isEqual'](_0x3ac3fc['getFirstRange']())))&&_0x482cc4['every'](_0xda6e47=>_0x134147['some'](_0x439a48=>_0xda6e47['getFirstRange']()['isEqual'](_0x439a48['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3ceed0){const _0x54e01c=Array['from'](_0x3ceed0),_0x18372a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2419c0=_0x18372a['filter'](_0x2c5377=>!_0x3ceed0['has'](_0x2c5377)),_0xf95398=new Map(_0x54e01c['map'](_0x50d5ba=>[_0x50d5ba,this['_suggestionFactory']['getSuggestionCallback'](_0x50d5ba['type'],_0x50d5ba['subType'],'join')])),_0x305fac=new Map(_0x18372a['map'](_0x5483cf=>[_0x5483cf,_0x5483cf['getRanges']()]));for(let _0x351aa9=0x0;_0x351aa9<_0x54e01c['length'];_0x351aa9++){if(_0xcc71c(this,_0x54e01c[_0x351aa9],_0x54e01c,_0x351aa9+0x1))return!0x0;}for(let _0x27673c=0x0;_0x27673c<_0x54e01c['length'];_0x27673c++){if(_0xcc71c(this,_0x54e01c[_0x27673c],_0x2419c0,0x0))return!0x0;}return!0x1;function _0xcc71c(_0x1c348b,_0xa15424,_0x126e8a,_0x80fe63){for(let _0x52cfb7=_0x80fe63;_0x52cfb7<_0x126e8a['length'];_0x52cfb7++){const _0xed4b22=_0x126e8a[_0x52cfb7];if(_0xed4b22['type']!==_0xa15424['type']||_0xed4b22['author']['id']!==_0xa15424['author']['id']||_0xed4b22['subType']!==_0xa15424['subType'])continue;if(!en(_0xa15424,_0xed4b22))continue;if('attribute'==_0xa15424['type']&&_0xa15424['data']['oldValue']!=_0xed4b22['data']['oldValue'])continue;if('attribute'==_0xa15424['type']&&_0x1c348b['_isBlockAttribute'](_0xa15424['data']['key']))continue;if('formatBlock'==_0xa15424['type']){const _0x2463ec=_0x1c348b['editor']['model'],_0x56ff82=_0xa15424['getContainedElement']();if(_0x56ff82&&(_0x2463ec['schema']['isObject'](_0x56ff82)||_0x2463ec['schema']['isLimit'](_0x56ff82)))continue;}const _0x491463=_0xf95398['get'](_0xa15424),_0x523e7a=_0x305fac['get'](_0xa15424),_0x425d1b=_0x305fac['get'](_0xed4b22),_0x220df2=_0xa15424['commentThread']&&_0xa15424['commentThread']['length'],_0x50d95c=_0xed4b22['commentThread']&&_0xed4b22['commentThread']['length'];if(!_0x220df2&&_0x491463(_0x425d1b,_0x523e7a))return _0x1c348b['_joinSuggestions'](_0xed4b22,_0xa15424),_0x305fac['delete'](_0xa15424),!0x0;if(!_0x50d95c&&_0x491463(_0x523e7a,_0x425d1b))return _0x1c348b['_joinSuggestions'](_0xa15424,_0xed4b22),_0x305fac['delete'](_0xed4b22),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4a6515,_0x2781a5){if(_0x4a6515['isMultiRange']){for(const _0x3a12aa of _0x2781a5['getRanges']())_0x4a6515['addRange'](_0x3a12aa);}else{const _0x10d440=_0x2781a5['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4a6515,this['_model']['createRange'](_0x4a6515['getFirstRange']()['start'],_0x10d440));}_0x2781a5['removeMarkers']();}['_getMarkerAnnouncementText'](_0x297908,_0x1e6e25,_0xcaaac1){const _0x384b8f=_0x297908['startsWith']('format')||_0x297908['startsWith']('attribute')?'FORMATTING':_0x297908['toUpperCase']();return o(this['editor']['locale'],_0x1e6e25+'_'+_0x384b8f+'_SUGGESTION_ANNOUNCEMENT',_0xcaaac1);}['_initAriaMarkerChangeAnnouncements'](){const _0x1638ee=this['editor'];if(!_0x1638ee['ui'])return;const {ariaLiveAnnouncer:_0x467ec6}=_0x1638ee['ui'];_0x3aab64(this['_model'],({left:_0x47c2a1,entered:_0x1263a3})=>{for(const _0x44c320 of _0x47c2a1){const {group:_0x72bba8,type:_0x4e4aea}=this['_splitMarkerName'](_0x44c320['name']);if('suggestion'===_0x72bba8){_0x467ec6['announce'](this['_getMarkerAnnouncementText'](_0x4e4aea,'LEAVE'));break;}}for(const _0x237538 of _0x1263a3){const {group:_0x542c6,type:_0x244c8b}=this['_splitMarkerName'](_0x237538['name']);if('suggestion'===_0x542c6){_0x467ec6['announce'](this['_getMarkerAnnouncementText'](_0x244c8b,'ENTER',_0x216d26(_0x37e699)));break;}}});}['_processAttributeChanges'](_0x42c23f){if(this['_recordAttributeSuggestions'])return!0x1;const _0x47d313=this['editor'],_0x9af770=_0x47d313['model']['document']['differ']['getChanges']();if(0x0==_0x9af770['length'])return!0x1;const _0x18a9fc=[],_0x5999b5=_0x9af770['filter'](_0x131b57=>'attribute'==_0x131b57['type']),_0x4029ea=_0x9af770['filter'](_0x2df034=>'insert'==_0x2df034['type']&&'$text'!=_0x2df034['name']),_0x2a8389=_0x9af770['filter'](_0x3c4066=>'remove'==_0x3c4066['type']&&'$text'!=_0x3c4066['name']);for(const _0x497039 of _0x5999b5)_0x18a9fc['push']({'key':_0x497039['attributeKey'],'newValue':_0x497039['attributeNewValue'],'oldValue':_0x497039['attributeOldValue'],'range':Zt(_0x497039['range'],_0x47d313['model'])});for(const _0xdbebae of _0x4029ea){const _0x267216=_0x2a8389['find'](_0x5d6620=>_0x5d6620['position']['isEqual'](_0xdbebae['position']));_0x267216&&_0x18a9fc['push']({'key':m,'newValue':_0xdbebae['name'],'oldValue':_0x267216['name'],'range':_0x47d313['model']['createRangeOn'](_0xdbebae['position']['nodeAfter'])});}return 0x0!=_0x18a9fc['length']&&this['_reduceExistingSuggestions'](_0x42c23f,_0x18a9fc);}['_processAttributeSuggestions'](_0x2b9d02){let _0x3c4b3a=!0x1;const _0x482eb6=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5bfa0a=>_0x5bfa0a['data']['newRange']&&_0x5bfa0a['name']['startsWith']('suggestion:attribute:'));for(const _0x21ce8e of _0x482eb6){const {subType:_0x2f0d31,id:_0x3bba1a}=this['_splitMarkerName'](_0x21ce8e['name']),_0x794bb8=_0x2f0d31['split']('|')[0x0];for(const _0x1c826a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1c826a['id']!=_0x3bba1a&&'attribute'==_0x1c826a['type']&&_0x1c826a['data']&&_0x1c826a['data']['key']==_0x794bb8&&_0x1c826a['getFirstRange']()['isIntersecting'](_0x21ce8e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1c826a,_0x21ce8e['data']['newRange'],_0x2b9d02),_0x3c4b3a=!0x0);}return _0x3c4b3a;}['recordAttributeChanges'](_0x43c1a2){this['_recordAttributeSuggestions']=!0x0,_0x43c1a2();}['_isRegisteredAttribute'](_0x51f71d){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x51f71d);}['_reduceExistingSuggestions'](_0x5493c8,_0x1d3ba5){if(0x0==_0x1d3ba5['length'])return!0x1;let _0x210cf9=!0x1;for(const _0x28ba33 of _0x1d3ba5){const _0x10e385=this['_findSuggestions'](_0x28ba33['range'],'attribute')['filter'](_0xa6f387=>!_0xa6f387['meta']['isNextTo'])['map'](_0x158a0b=>_0x158a0b['suggestion']),_0x4dd3e5=_0x58c5fe({'newValue':_0x28ba33['newValue']});_0x10e385['filter'](_0x12a25d=>{const [_0x41c045,_0x16787f]=_0x12a25d['subType']['split']('|');return _0x41c045==_0x28ba33['key']&&_0x16787f!=_0x4dd3e5;})['forEach'](_0x237296=>{this['_reduceSuggestionAttributeRange'](_0x237296,_0x28ba33['range'],_0x5493c8),_0x210cf9=!0x0;});}return _0x210cf9;}['_reduceSuggestionAttributeRange'](_0x5d180f,_0x256e7e,_0x5b7db2){const _0x39ab3c=_0x5d180f['getFirstRange']()['getDifference'](_0x256e7e);0x0!==_0x39ab3c['length']?0x1!==_0x39ab3c['length']?this['_breakSuggestionMarker'](_0x5d180f,_0x256e7e['start'],_0x256e7e['end']):this['_setSuggestionRange'](_0x5d180f,_0x39ab3c[0x0]):_0x5b7db2['removeMarker'](_0x5d180f['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xbe3436){this['_editor']=_0xbe3436,this['_model']=_0xbe3436['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x41dd6f,_0x54425d,_0x335079,_0x142247,_0x1344bf,_0x2e86d5,_0x5c0b6d){return new x(this['_model'],{'type':_0x41dd6f,'subType':_0x54425d,'id':_0x335079,'originalSuggestionId':_0x5c0b6d,'author':_0x142247,'creator':_0x142247,'attributes':_0x1344bf,'onAttributesChange':_0x2e86d5,'onAccept':(..._0x1f3852)=>this['getSuggestionCallback'](_0x41dd6f,_0x54425d,'accept')(..._0x1f3852),'onDiscard':(..._0x44443e)=>this['getSuggestionCallback'](_0x41dd6f,_0x54425d,'discard')(..._0x44443e)});}['registerCustomCallback'](_0x223053,_0x3a6fcc,_0x1842bb,_0x48a71f){const _0x59f47a=_0x223053+':'+_0x3a6fcc+':'+_0x1842bb;this['_customCallbacks']['set'](_0x59f47a,_0x48a71f);}['getSuggestionCallback'](_0x1db62c,_0x54fc03,_0x11b012){const _0x3d9283=_0x1db62c+':'+_0x54fc03+':'+_0x11b012;return this['_customCallbacks']['get'](_0x3d9283)||this['_defaultCallbacks']['get'](_0x1db62c+':'+_0x11b012);}['_registerDefaultCallbacks'](){const _0x6fe1a6=()=>!0x1,_0x145431=_0x2432f3=>{_0x2432f3['sort']((_0x2bd44d,_0x5166c6)=>_0x2bd44d['start']['isBefore'](_0x5166c6['start'])?0x1:-0x1),this['_model']['change'](_0x3a804f=>{for(const _0x25c64a of _0x2432f3){let _0x429574;_0x429574=_0x25c64a['end']['isAtEnd']&&_0x25c64a['end']['parent']==_0x25c64a['start']['nodeAfter']?_0x3a804f['createSelection'](_0x25c64a['start']['nodeAfter'],'on'):_0x3a804f['createSelection'](_0x25c64a),this['_model']['deleteContent'](_0x429574,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x337444=(_0x53a79d,_0x1dcd6a)=>{_0x1dcd6a&&this['_model']['change'](_0x23df5d=>{const {commandName:_0x5ba45c,commandParams:_0x28f215=[]}=_0x1dcd6a,_0x29f28b=_0x53a79d['map'](_0x53e631=>(Kt(_0x53e631)&&(_0x53e631=this['_model']['createRange'](_0x53e631['end'])),_0x53e631))['filter'](_0x44800c=>'$graveyard'!==_0x44800c['root']['rootName']);if(_0x29f28b['length']<0x1)return;const _0x3b8e84=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x6219b8=>_0xfdd8dd['fromRange'](_0x6219b8));_0x23df5d['setSelection'](_0x29f28b);for(const _0x4fca9e of this['_editor']['commands']['commands']())_0x4fca9e['refresh']();_0x28f215['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5ba45c,..._0x28f215);const _0x1365f2=_0x3b8e84['filter'](_0x48e22b=>'$graveyard'!=_0x48e22b['root']['rootName']);_0x1365f2['length']>0x0&&_0x23df5d['setSelection'](_0x1365f2);for(const _0x1c00a0 of _0x3b8e84)_0x1c00a0['detach']();});},_0xdb6ed6=(_0x32aa8b,_0x563d1a)=>0x1==_0x32aa8b['length']&&0x1==_0x563d1a['length']&&_0x32aa8b[0x0]['end']['isEqual'](_0x563d1a[0x0]['start']),_0x16cd8c=(_0x763258,_0x214b48,_0x21cbcc,_0x422675)=>nn(_0x763258,_0x214b48,_0x21cbcc,_0x422675)?[_0x763258,_0x214b48]:nn(_0x214b48,_0x763258,_0x422675,_0x21cbcc)?[_0x214b48,_0x763258]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x6fe1a6),this['_defaultCallbacks']['set']('insertion:discard',_0x145431),this['_defaultCallbacks']['set']('insertion:join',_0xdb6ed6),this['_defaultCallbacks']['set']('insertion:chain',_0x16cd8c),this['_defaultCallbacks']['set']('deletion:accept',_0x145431),this['_defaultCallbacks']['set']('deletion:discard',_0x6fe1a6),this['_defaultCallbacks']['set']('deletion:join',_0xdb6ed6),this['_defaultCallbacks']['set']('deletion:chain',_0x16cd8c),this['_defaultCallbacks']['set']('formatInline:accept',_0x337444),this['_defaultCallbacks']['set']('formatInline:discard',_0x6fe1a6),this['_defaultCallbacks']['set']('formatInline:join',_0xdb6ed6),this['_defaultCallbacks']['set']('formatInline:chain',_0x6fe1a6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x337444),this['_defaultCallbacks']['set']('formatBlock:discard',_0x6fe1a6),this['_defaultCallbacks']['set']('formatBlock:join',_0xdb6ed6),this['_defaultCallbacks']['set']('formatBlock:chain',_0x6fe1a6),this['_defaultCallbacks']['set']('attribute:accept',_0x6fe1a6),this['_defaultCallbacks']['set']('attribute:discard',(_0xac62f7,_0x7b99db)=>{if(!_0x7b99db)return;const _0x767509=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x17a314=>{if(_0x7b99db['key']==m)for(const _0x481862 of _0xac62f7){const _0x3830b7=_0x481862['start']['nodeAfter'],_0x20f10e=_0x7b99db['oldValue'];_0x17a314['rename'](_0x3830b7,_0x20f10e);}else{if(_0x767509['_isBlockAttribute'](_0x7b99db['key'])){for(const _0x397927 of _0xac62f7)void 0x0!==_0x7b99db['oldValue']?_0x17a314['setAttribute'](_0x7b99db['key'],_0x7b99db['oldValue'],_0x397927['start']['nodeAfter']):_0x17a314['removeAttribute'](_0x7b99db['key'],_0x397927['start']['nodeAfter']);}else{for(const _0x1d2c26 of _0xac62f7)_0x7b99db['oldValue']?_0x17a314['setAttribute'](_0x7b99db['key'],_0x7b99db['oldValue'],_0x1d2c26):_0x17a314['removeAttribute'](_0x7b99db['key'],_0x1d2c26);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xdb6ed6);}}function zt(_0x346fa2,_0x153348,_0x320489){for(const _0x53e53c of _0x153348['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x53e53c['root']==_0x53e53c)return!0x1;if(!_0x320489['containsItem'](_0x53e53c))return!0x1;if(_0x346fa2['isObject'](_0x53e53c)||_0x346fa2['isLimit'](_0x53e53c))return!0x0;}return!0x1;}function Kt(_0x7e5edf){return _0x7e5edf['end']['parent']==_0x7e5edf['start']['nodeAfter']&&_0x7e5edf['end']['isAtStart'];}function Wt(_0x3c5967,_0x254149,_0x4875ca,_0x3df381){const _0x31ea79=_0x1cf7c0=>!_0x1cf7c0['item']['is']('$textProxy')&&!_0x3df381['isObject'](_0x1cf7c0['item']),_0x50eac8=_0x3c5967['start']['getLastMatchingPosition'](_0x31ea79),_0xc80dbe=_0x3c5967['end']['getLastMatchingPosition'](_0x31ea79,{'direction':'backward'});return(!_0x3c5967['start']['isEqual'](_0x50eac8)||!_0x3c5967['end']['isEqual'](_0xc80dbe))&&(_0x50eac8['isBefore'](_0xc80dbe)?_0x4875ca['updateMarker'](_0x254149,{'range':_0x4875ca['createRange'](_0x50eac8,_0xc80dbe)}):_0x4875ca['removeMarker'](_0x254149),!0x0);}function Ht(_0x3662ca){return _0x58c5fe(_0x3662ca);}function Qt(_0x2a5193){const _0xfbdbc0=_0x2a5193['start']['nodeAfter'];return _0xfbdbc0&&_0xfbdbc0['is']('element');}function Xt(_0x4f0ff0){return Kt(_0x4f0ff0)||function(_0x3cb7de){return _0x3cb7de['start']['parent']==_0x3cb7de['end']['nodeBefore']&&_0x3cb7de['start']['isAtEnd'];}(_0x4f0ff0);}function Yt(_0x53532d,_0x5d475b){try{const _0x32f1c0=_0x53532d['getRange']();for(const _0x4aa221 of _0x5d475b)if(_0x53532d!==_0x4aa221&&_0x32f1c0&&_0x32f1c0['isIntersecting'](_0x4aa221['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x378aea,_0x3e8175){return null==_0x378aea['end']['nodeBefore']&&_0x378aea['end']['parent']==_0x378aea['start']['nodeAfter']?tn(_0x378aea['start']['nodeAfter'],_0x3e8175):_0x378aea;}function tn(_0x1dd90b,_0x5de4ec){const _0x30a39d=_0x5de4ec['schema']['isObject'](_0x1dd90b)||_0x5de4ec['schema']['isSelectable'](_0x1dd90b);return _0x5de4ec['createRange'](_0x5de4ec['createPositionAt'](_0x1dd90b,'before'),_0x30a39d?_0x5de4ec['createPositionAfter'](_0x1dd90b):_0x5de4ec['createPositionAt'](_0x1dd90b,'end'));}function nn(_0x48f5f3,_0x4e95f0,_0x14f1d1,_0x2993e){return!!en(_0x48f5f3,_0x4e95f0)&&_0x14f1d1['end']['isEqual'](_0x2993e['start']);}function en(_0x4c663b,_0xcc44b1){if(!_0x4c663b['_isDataLoaded']||!_0xcc44b1['_isDataLoaded'])return!0x1;const _0x2b779c=new Set(Object['keys'](_0x4c663b['attributes'])),_0x4a1132=new Set(Object['keys'](_0xcc44b1['attributes']));if(_0x2b779c['delete']('groupId'),_0x4a1132['delete']('groupId'),0x0==_0x2b779c['size']&&0x0==_0x4a1132['size'])return!0x0;if(_0x2b779c['size']!=_0x4a1132['size'])return!0x1;const _0x59595a={..._0x4c663b['attributes']},_0x812052={..._0xcc44b1['attributes']};return delete _0x59595a['groupId'],delete _0x812052['groupId'],JSON['stringify'](_0x59595a)==JSON['stringify'](_0x812052);}function sn(_0x3c4969,_0x2be256){const _0x4b25a8=on(_0x3c4969['attributes']),_0x507f26=on(_0x2be256);if(!_0x3c4969['_isDataLoaded'])return!0x1;for(const _0x5b0675 of Object['keys'](_0x507f26))if(!_0x2ab580(_0x4b25a8[_0x5b0675],_0x507f26[_0x5b0675]))return!0x1;return!0x0;}function on(_0x32c2e1){const _0x12e1cd=Object['assign']({},_0x32c2e1);return delete _0x12e1cd['skipNestingCheck'],delete _0x12e1cd['tablePasteChainId'],_0x12e1cd;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x4833ed(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x29eeea,_0x45ae76,_0x3aa0db,_0x2fa5da){super(),this['model']=_0x45ae76,this['view']=_0x3aa0db,this['commentThreadController']=_0x2fa5da,this['_editor']=_0x29eeea,this['_acceptCommand']=_0x29eeea['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x29eeea['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x826fd4,_0xac558a)=>_0x826fd4||_0xac558a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x23773d=>_0x23773d&&this['_editor']['model']['canEditAt'](_0x45ae76['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x618ada=>_0x618ada&&this['_editor']['model']['canEditAt'](_0x45ae76['getRanges']())),this['_pendingAction']=null,_0x3aa0db['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3aa0db,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3aa0db,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3aa0db,'change:isDirty',()=>{_0x3aa0db['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 _0x36a57f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x36a57f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x12cac7{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xb91fcb,_0xe12658,_0x16c680,_0x1e9cd4){super(_0xb91fcb),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xe84840(_0xb91fcb,o(_0xb91fcb,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xe12658['authoredAt']),this['bind']('authoredAt')['to'](_0xe12658),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',_0xe12658,'authoredAt',this,'descriptionParts',(_0xcbc0a8,_0x13d3a8,_0x5095b1)=>{const _0x484938=_0x5095b1['map'](_0x58308c=>ls(_0x58308c['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xcbc0a8-0x1,_0xe12658['author']['name'],_0x13d3a8?_0x1e9cd4['formatDateTime'](_0x13d3a8):'',new DOMParser()['parseFromString'](_0x484938,'text/html')['body']['textContent']]);}),this['focusables']=new _0x45662f(),this['focusTracker']=new _0x46cf29(),this['keystrokes']=new _0x41b175(),this['focusCycler']=new _0x2b8f57({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x551acb=>_0x551acb['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xe12658,this['_localUser']=_0x16c680,this['_config']=_0x1e9cd4,_0x1e9cd4['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x7cce84(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2e8af4}=this['_config'];this['commentsListView']=new _0x2e8af4(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',_0x2641e3=>_0x2641e3+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3fd83d,_0x38a974)=>_0x3fd83d||!!_0x38a974);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x48f0ab}=this['_config'],_0x51df7b=new _0x48f0ab(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x55b6d1=_0x51df7b['commentInputView'];return _0x51df7b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x55b6d1,'value',(_0x3559b0,_0x1d1e5b,_0x1641a7)=>!!_0x1641a7||_0x3559b0&&!_0x1d1e5b),_0x55b6d1['on']('submit',(_0x55d3e0,_0x41d8cc)=>{this['fire']('addComment',_0x41d8cc),_0x55b6d1['editor']['setData']('');}),_0x55b6d1['on']('cancel',()=>this['focus']()),_0x55b6d1['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x51df7b;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x332659,_0x20bfd7,_0x4b705a,_0x478300){super(_0x332659,_0x20bfd7,_0x4b705a,_0x478300),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x475ab1=>_0x475ab1&&_0x475ab1[0x0]?_0x475ab1[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x27d366,_0x26f6be)=>{let _0x38c4c9='';for(const _0x38bf28 of _0x27d366)_0x38c4c9+='<p>'+ls(_0x38bf28['content'],_0x38bf28['color'])+'</p>';return _0x26f6be?_0x38c4c9:_0x33d346(_0x38c4c9,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x478300['SuggestionView'](_0x332659,_0x20bfd7,{'formatDateTime':_0x478300['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 _0x157f07=this['bindTemplate'],_0x5934bf=[this['suggestionView']];return this['commentsListView']&&_0x5934bf['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5934bf['push'](this['commentThreadInputView']),_0x5934bf['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x157f07['if']('isActive','ck-suggestion-wrapper--active'),_0x157f07['to']('type',_0x2974a6=>'ck-suggestion-'+_0x2974a6),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':_0x157f07['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5934bf};}['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 _0x12cac7{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1614b8,_0x1f25e5,_0xabfab8){super(_0x1614b8),this['_model']=_0x1f25e5,this['_config']=_0xabfab8,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1f25e5),this['acceptButton']=this['_createButton'](o(_0x1614b8,'Accept\x20suggestion'),_0x4a1395,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1614b8,'Discard\x20suggestion'),_0x26bd9e,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4bcd1b(_0x1614b8,_0x1f25e5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x45662f([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x46cf29(),this['keystrokes']=new _0x41b175(),this['focusCycler']=new _0x2b8f57({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x73da7e=>_0x73da7e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5024b8=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5024b8['innerHTML']=this['description'],this['on']('change:description',(_0x539983,_0xc8d209,_0x5bcf62)=>{_0x5024b8['innerHTML']=_0x5bcf62;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3fb546=this['bindTemplate'],_0x48d8d2=[{'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':_0x3fb546['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3fb546['to']('authoredAt',_0xde3491=>this['_config']['formatDateTime'](_0xde3491))}]}]},{'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']&&_0x48d8d2['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':_0x48d8d2}]};}['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'](_0x3c9a25,_0x360efa,_0x111e65,_0x195f46,_0x11af7e){const _0x5de0e7=new _0x3bc64b(this['locale']);return _0x5de0e7['set']({'label':_0x3c9a25,'icon':_0x360efa,'tooltip':!0x0,'tooltipPosition':_0x11af7e}),_0x5de0e7['extendTemplate']({'attributes':{'class':_0x111e65}}),_0x5de0e7['on']('execute',()=>{this['fire'](_0x195f46,this['_model']['id']);}),_0x5de0e7;}['_setupKeyboardNavigation'](){const _0x16f4ab=this['element'];this['keystrokes']['listenTo'](_0x16f4ab);for(const _0x48c369 of this['focusables'])this['focusTracker']['add'](_0x48c369['element']),this['keystrokes']['listenTo'](_0x48c369['element']);this['keystrokes']['set']('enter',(_0x573e52,_0x254341)=>{_0x16f4ab===_0x573e52['target']&&(this['focusCycler']['focusFirst'](),_0x254341());}),this['keystrokes']['set']('esc',(_0x311f55,_0xbfdea8)=>{_0x16f4ab!==_0x311f55['target']&&(this['focus'](),_0xbfdea8());});}}class u extends _0x223c7c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x17e254,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x341400){super(_0x341400),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x51016f=this['editor']['config'];_0x51016f['define']('trackChanges.SuggestionThreadView',fe),_0x51016f['define']('trackChanges.SuggestionView',we),_0x51016f['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x51016f['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1555cf,_0x10674c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x170b25,_0x5d0659]of this['_handleControllerBuffer']){const _0x324231=this['_suggestionToController']['has'](_0x170b25);_0x324231||_0x5d0659?_0x324231&&_0x5d0659&&this['_destroyController'](_0x170b25):this['_initializeController'](_0x170b25);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1555cf,_0x10674c);}['init'](){const _0x53d5d0=this['editor'],_0x186d79=_0x53d5d0['plugins']['get']('TrackChangesEditing'),_0x5d8d66=_0x53d5d0['plugins']['get']('Annotations'),_0x5d9b4f=_0x53d5d0['plugins']['get']('EditorAnnotations'),_0x4ae8c1=_0x53d5d0['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5d9b4f['addSourceCollector'](()=>{const _0x47fe47=[];for(const [_0x1a86f5,_0x25f2be]of Array['from'](this['_suggestionToController'])){const _0x176052=_0x1a86f5['getAllAdjacentSuggestions'](),_0x40bd9a=[];for(const _0x45a4f9 of _0x176052){if(!_0x45a4f9['isInContent'])continue;if(_0x45a4f9['isMultiRange']){_0x40bd9a['push'](..._0x45a4f9['getRanges']());continue;}const _0x53d038=_0x45a4f9['getFirstRange']();if(_0x40bd9a['length']>0x0){const _0x3329ac=_0x40bd9a[0x0]['getJoined'](_0x53d038);if(_0x3329ac){_0x40bd9a[0x0]=_0x3329ac;continue;}}_0x40bd9a['push'](_0x53d038);}_0x47fe47['push']([_0x25f2be['view'],_0x40bd9a]);}return _0x47fe47;}),this['listenTo'](_0x186d79,'suggestionLoaded',(_0x37ea63,_0x44f34a)=>{this['listenTo'](_0x44f34a,'change:previous',(_0x4b6018,_0x2734d3,_0x1a8001,_0x5ee56f)=>{_0x44f34a['isInContent']&&(null==_0x1a8001?(this['_updateController'](_0x5ee56f['head']),this['_handleSuggestionControllerDelayed'](_0x44f34a,!0x1)):(this['_updateController'](_0x1a8001['head']),null==_0x5ee56f&&this['_handleSuggestionControllerDelayed'](_0x44f34a,!0x0)));}),null!==_0x44f34a['previous']?this['_updateController'](_0x44f34a['head']):this['_handleSuggestionControllerDelayed'](_0x44f34a,!0x1);}),this['listenTo'](_0x186d79,'suggestionUnloaded',(_0x12d6d4,_0x475654,_0x11c2b1)=>{this['stopListening'](_0x475654,'change:previous'),this['_handleControllerBuffer']['delete'](_0x475654),this['_suggestionToController']['has'](_0x475654)&&this['_destroyController'](_0x475654),_0x11c2b1&&this['_updateController'](_0x11c2b1['head']);}),this['listenTo'](_0x186d79,'suggestionChanged',(_0x3b28b7,_0x218e51)=>{this['_updateController'](_0x218e51);}),this['listenTo'](_0x5d8d66,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4ae8c1,'addComment',(_0x55ce7c,{threadId:_0x305803,isFromAdapter:_0x53a76f})=>{if(_0x53a76f||!_0x186d79['hasSuggestion'](_0x305803))return;const _0x717d1a=_0x186d79['getSuggestion'](_0x305803);this['_suggestionToController']['get'](_0x717d1a)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x26526e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x20cd43;for(const _0x1d182d in _0x26526e){const _0x237f70=_0x1d182d,_0x71e4b1=_0x26526e[_0x237f70];if('trackChangesLicenseKeyValid'==_0x71e4b1||'trackChangesLicenseKeyInvalid'==_0x71e4b1||'trackChangesLicenseKeyExpired'==_0x71e4b1||'trackChangesLicenseKeyDomainLimit'==_0x71e4b1||'trackChangesLicenseKeyNotAllowed'==_0x71e4b1||'trackChangesLicenseKeyEvaluationLimit'==_0x71e4b1||'trackChangesLicenseKeyTrialLimit'==_0x71e4b1||'trackChangesLicenseKeyUsageLimit'==_0x71e4b1){delete _0x26526e[_0x237f70],_0x20cd43=_0x71e4b1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x20cd43&&_0x26526e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x20cd43&&_0x26526e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x20cd43&&_0x26526e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x20cd43&&_0x26526e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x20cd43&&_0x26526e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x20cd43&&_0x26526e['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x20cd43&&_0x26526e['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x415a17){const _0x3367c7=this['_suggestionToController']['get'](_0x415a17);if(!_0x3367c7)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3367c7['view'])||null;}['getSuggestionForAnnotation'](_0x4c66d8){const _0x1c0072=this['_viewToController']['get'](_0x4c66d8['innerView']);return _0x1c0072?_0x1c0072['model']:null;}['_refreshActiveMarkers'](){const _0x132679=this['editor']['plugins']['get']('Annotations'),_0x1fda6e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x249f2f=Array['from'](_0x132679['activeAnnotations'],_0x199097=>_0x199097['innerView'])['filter'](_0x3e4a37=>this['_viewToController']['has'](_0x3e4a37)),_0x5ea210=[];for(const _0x431160 of _0x249f2f){const _0x2da29a=this['_viewToController']['get'](_0x431160)['model']['getAllAdjacentSuggestions']();_0x5ea210['push'](..._0x2da29a['reduce']((_0x36cc13,_0xd240af)=>[..._0x36cc13,..._0xd240af['getMarkerNames']()],[]));}_0x1fda6e['activeMarkers']=_0x5ea210;}['_addUIComponentsToFactory'](){const _0x184172=this['editor'],_0x33ef5c=_0x184172['locale'],_0x39c771=o(_0x33ef5c,'Track\x20changes'),_0x2be355=new _0x53db15([{'type':'switchbutton','model':new _0x26b3b9({'withText':!0x0,'isToggleable':!0x0,'label':_0x39c771,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x26b3b9({'withText':!0x0,'label':o(_0x33ef5c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x26b3b9({'withText':!0x0,'label':o(_0x33ef5c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x26b3b9({'withText':!0x0,'label':o(_0x33ef5c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x26b3b9({'withText':!0x0,'label':o(_0x33ef5c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x184172['plugins']['has']('TrackChangesPreview')&&_0x2be355['addMany']([{'type':'separator'},{'type':'button','model':new _0x26b3b9({'withText':!0x0,'label':o(_0x33ef5c,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x550e1d of _0x2be355)if(ke(_0x550e1d)){const _0xe17c1c=_0x184172['commands']['get'](_0x550e1d['model']['commandName']);_0x550e1d['model']['bind']('isOn','isEnabled')['to'](_0xe17c1c,'value','isEnabled');}_0x184172['ui']['componentFactory']['add']('trackChanges',_0x5f2e01=>this['_createToolbarButton'](_0x5f2e01,_0x2be355,_0x39c771)),_0x184172['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3e7ec7=>this['_createMenuBarMenu'](_0x3e7ec7,_0x2be355,_0x39c771));}['_createToolbarButton'](_0xd475fc,_0x2f1c5d,_0x47c1fe){const _0x268ef4=_0x2d45a4(_0xd475fc,_0x4e9e5c),_0x3a2c41=this['editor']['commands']['get']('trackChanges');_0x268ef4['buttonView']['set']({'tooltip':_0x47c1fe,'label':_0x47c1fe,'icon':_0x2c535f}),_0x268ef4['buttonView']['bind']('isOn')['to'](_0x3a2c41,'value'),_0x268ef4['buttonView']['on']('execute',()=>{_0x3a2c41['execute'](),this['editor']['editing']['view']['focus']();}),_0x555346(_0x268ef4,_0x2f1c5d,{'role':'menu'});const _0x14754f=[];for(const _0x4bba77 of _0x2f1c5d)ke(_0x4bba77)&&_0x14754f['push'](this['editor']['commands']['get'](_0x4bba77['model']['commandName']));const _0x398ebd=_0x268ef4['buttonView'];return _0x398ebd['actionView']['unbind']('isEnabled'),_0x398ebd['arrowView']['unbind']('isEnabled'),_0x398ebd['actionView']['bind']('isEnabled')['to'](_0x3a2c41,'isEnabled'),_0x398ebd['arrowView']['bind']('isEnabled')['toMany'](_0x14754f,'isEnabled',(..._0x34def3)=>_0x34def3['some'](_0xea5285=>_0xea5285)),_0x268ef4['on']('execute',_0x291a1e=>{this['editor']['execute'](_0x291a1e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x268ef4;}['_createMenuBarMenu'](_0x4c0297,_0xa595c4,_0x5b165f){const _0x2cea19=new _0x2aeb70(_0x4c0297),_0x2eb5a9=this['editor']['commands']['get']('trackChanges');_0x2cea19['buttonView']['set']({'label':_0x5b165f,'icon':_0x2c535f});const _0x29857b=new _0x2a5289(_0x4c0297);for(const _0x3498b1 of _0xa595c4){if('separator'==_0x3498b1['type']){_0x29857b['items']['add'](new _0x3f3fc1(_0x4c0297));continue;}const _0x3363b6=new _0x529d87(_0x4c0297,_0x2cea19),_0x384f6c=new _0x3548a7(_0x4c0297),_0x554b95=_0x3498b1['model'];_0x384f6c['bind'](...Object['keys'](_0x554b95))['to'](_0x554b95),_0x384f6c['delegate']('execute')['to'](_0x2cea19),_0x384f6c['on']('execute',()=>{this['editor']['execute'](_0x554b95['commandName']),this['editor']['editing']['view']['focus']();}),_0x3363b6['children']['add'](_0x384f6c),_0x29857b['items']['add'](_0x3363b6);}return _0x2cea19['bind']('isEnabled')['to'](_0x2eb5a9,'isEnabled'),_0x2cea19['panelView']['children']['add'](_0x29857b),_0x2cea19;}['_initializeController'](_0x16a808){const _0x590b00=this['editor'],_0x13377e=_0x590b00['config'],_0x1b0811=_0x590b00['plugins']['get']('Annotations'),_0x1a8f96=_0x590b00['plugins']['get']('CommentsRepository'),_0x4b7e98=_0x590b00['plugins']['get']('EditorAnnotations'),_0x2f783a=_0x590b00['plugins']['get'](_0x17e254)['me'],_0x56c39c=_0x13377e['get']('trackChanges')['SuggestionThreadView'],_0x3cae7d=_0x13377e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xb1beae,CommentThreadInputView:_0x55ef78}=_0x590b00['plugins']['get']('CommentsUI');let _0x5e9838,_0x4ecce3,_0x18eb0c;this['_annotationViews']['has'](_0x16a808['id'])?(_0x4ecce3=this['_annotationViews']['get'](_0x16a808['id']),_0x5e9838=_0x4ecce3['mainView']):(_0x5e9838=new _0x56c39c(_0x590b00['locale'],_0x16a808,_0x2f783a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x13377e['get']('comments.editorConfig'),'licenseKey':_0x13377e['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x13377e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x13377e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x13377e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4e5388(_0x13377e['get']('locale'),_0x590b00['locale']),'CommentView':_0x13377e['get']('comments')['CommentView'],'CommentsListView':_0xb1beae,'CommentThreadInputView':_0x55ef78,'SuggestionView':_0x3cae7d}),_0x5e9838['suggestionView']['acceptButton']['on']('execute',()=>{_0x590b00['editing']['view']['focus']();}),_0x5e9838['suggestionView']['discardButton']['on']('execute',()=>{_0x590b00['editing']['view']['focus']();}),_0x4ecce3=_0x1b0811['createAnnotationView'](this['editor']['locale'],_0x5e9838),_0x4ecce3['bind']('isDirty')['to'](_0x5e9838,'isDirty'),_0x4ecce3['bind']('length')['to'](_0x5e9838),_0x4ecce3['bind']('type')['to'](_0x5e9838,'type',_0x44f36f=>'suggestion-'+_0x44f36f),_0x5e9838['on']('escape',()=>{_0x18eb0c['fire']('escape');}),this['_annotationViews']['set'](_0x16a808['id'],_0x4ecce3));const _0x1d5ec8=_0x1a8f96['createCommentThreadController'](_0x16a808['commentThread'],_0x5e9838),_0xdb3708=new pe(_0x590b00,_0x16a808,_0x5e9838,_0x1d5ec8),_0x4e7a1a=_0x16a808['getAllAdjacentSuggestions']()['filter'](_0x4d6d0e=>_0x4d6d0e['isInContent']);_0x5e9838['descriptionParts']=_0x590b00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4e7a1a),this['_suggestionToController']['set'](_0x16a808,_0xdb3708),this['_viewToController']['set'](_0x5e9838,_0xdb3708);const _0x1f3741=()=>{const _0x50d372=[],_0x5a83a1=_0x16a808['getAllAdjacentSuggestions']()['filter'](_0x351f4f=>_0x351f4f['isInContent']);for(const _0x393653 of _0x5a83a1)_0x50d372['push'](..._0x393653['getMarkers']());return _0x47a92e(_0x590b00['editing'],_0x50d372);};_0x18eb0c=_0x1b0811['createAnnotation']({'view':_0x4ecce3,'target':_0x1f3741,'type':()=>'suggestion-'+_0xdb3708['view']['type'],'isVisible':!!_0x1f3741()}),_0x1a8f96['_bindAnnotationToEditors'](_0x5e9838,_0x18eb0c),_0x1b0811['add'](_0x18eb0c),_0x4b7e98['registerAnnotation'](_0x18eb0c);}['_destroyController'](_0x254b2e){const _0x453426=this['editor']['plugins']['get']('CommentsRepository'),_0x1f1f7d=this['editor']['plugins']['get']('Annotations'),_0x92f4c9=this['_suggestionToController']['get'](_0x254b2e),_0x4ae494=_0x92f4c9['view'],_0x11580c=_0x1f1f7d['getByInnerView'](_0x4ae494);_0x453426['_unbindEditors'](_0x4ae494),_0x11580c&&_0x1f1f7d['remove'](_0x11580c),this['_suggestionToController']['delete'](_0x254b2e),this['_viewToController']['delete'](_0x4ae494),_0x92f4c9['destroy']();}['_updateController'](_0x1d6fd5){if(!_0x1d6fd5['isInContent']||!this['_suggestionToController']['has'](_0x1d6fd5))return;const _0x596d7e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x348a9c=this['_suggestionToController']['get'](_0x1d6fd5),_0x3bdeec=_0x1d6fd5['getAllAdjacentSuggestions']();_0x348a9c['view']['descriptionParts']=_0x596d7e['descriptionFactory']['getDescriptions'](_0x3bdeec);}['destroy'](){for(const _0x3c38b1 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3c38b1);for(const _0x2a297f of this['_annotationViews']['values']())_0x2a297f['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2861d5){return'model'in _0x2861d5;}class Ne extends _0x223c7c{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xa4394c){this['editor']['plugins']['get'](d)['adapter']=_0xa4394c;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x54211e){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x54211e);}['getSuggestions']({skipNotAttached:_0x185755=!0x1,toJSON:_0x72b1d9=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x185755,'toJSON':_0x72b1d9});}['getSuggestion'](_0x2cdf27){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x2cdf27);}}const p=['Pagination'];class re extends _0x223c7c{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1e1943=this['editor'];if(_0x1e1943['config']['define']('trackChangesData.editorCreator',_0x3d9a9a=>{const _0x254c22=_0x1e1943['model']['document']['getRootNames']()['reduce']((_0x4df87b,_0x16c053)=>(_0x4df87b[_0x16c053]='',_0x4df87b),{});return _0x1e1943['constructor']['create'](_0x254c22,_0x3d9a9a);}),'function'!=typeof _0x1e1943['config']['get']('trackChangesData')['editorCreator'])throw new _0x36afc1('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4e65df){return P(this['editor'],!0x0,_0x4e65df);}['getDataWithDiscardedSuggestions'](_0xbafc3d){return P(this['editor'],!0x1,_0xbafc3d);}}class Fe extends _0x223c7c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x584e0f){function _0x5f0589(_0xac7687){return _0xac7687['map'](_0x5c18ed=>String['fromCharCode'](_0x5c18ed))['join']('');}super(_0x584e0f),this['result']='end',_0x584e0f[_0x5f0589([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f0589([0x76,0x69,0x65,0x77])][_0x5f0589([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5f0589([0x61,0x75,0x74,0x6f]),_0x584e0f[_0x5f0589([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5f0589([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5f0589([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5f0589([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5f0589([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(_0x6b2dea){return void 0x0!==_0x6b2dea['getRootsAttributes'];}async function P(_0x135a3c,_0xaf7287,_0x220f88){const _0x12bb1c=_0x19d9b3(_0x135a3c,p);_0x12bb1c['plugins']['push'](d,Fe),_0x12bb1c['rootsAttributes']=De(_0x135a3c)?_0x135a3c['getRootsAttributes']():void 0x0;const _0x4f8723=document['createDocumentFragment'](),_0x4861e4=_0x135a3c['config']['get']('trackChangesData')['editorCreator'],_0x2a3e2f=await _0x4861e4(_0x12bb1c,()=>function(_0x48ceb9){const _0x5651ad=document['createElement']('div');return _0x48ceb9['appendChild'](_0x5651ad),_0x5651ad;}(_0x4f8723));!function(_0x6b27bf,_0x738d59){const _0x52cc93=_0x6b27bf['model']['document']['getRootNames']()['reduce']((_0x35817f,_0x56eaa1)=>(_0x35817f[_0x56eaa1]=_0x6b27bf['data']['get']({'rootName':_0x56eaa1}),_0x35817f),{}),_0x102f9a=_0x6b27bf['plugins']['get']('Users')['users']['map'](_0x4803d1=>({'id':_0x4803d1['id'],'name':_0x4803d1['name']})),_0x49599a=_0x6b27bf['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2c0673=_0x6b27bf['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x19279f=_0x738d59['plugins']['get']('Users'),_0x2044cd=_0x738d59['plugins']['get']('TrackChangesEditing'),_0x35a072=_0x738d59['plugins']['get']('CommentsRepository');for(const _0xfadd17 of _0x35a072['getCommentThreads']())_0xfadd17['remove']();for(const _0x1a4b10 of _0x102f9a)_0x19279f['getUser'](_0x1a4b10['id'])||_0x19279f['addUser'](_0x1a4b10);_0x19279f['me']||_0x19279f['useAnonymousUser']();for(const _0x6dba3a of _0x2c0673)_0x35a072['addCommentThread'](_0x6dba3a);for(const _0x54dd4f of _0x49599a)_0x2044cd['addSuggestionData'](_0x54dd4f);_0x738d59['data']['set'](_0x52cc93);}(_0x135a3c,_0x2a3e2f),_0x2a3e2f['execute'](_0xaf7287?'acceptAllSuggestions':'discardAllSuggestions');const _0x53cb61=De(_0x2a3e2f)?_0x2a3e2f['getFullData'](_0x220f88):_0x2a3e2f['data']['get'](_0x220f88);return await _0x2a3e2f['destroy'](),_0x53cb61;}class Me extends _0x12cac7{['options'];constructor(_0x3a4dda,_0x33bc4c){super(_0x3a4dda),this['options']=_0x33bc4c,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'](_0x5a635c,_0x4c2e63){if(!this['element'])return;const _0x3f816a=[];for(const [_0x4627ab,_0x1ec12e]of _0x5a635c){const _0x449e44=document['createElement']('div');_0x449e44['setAttribute']('data-ck-root-name',_0x4627ab),_0x449e44['className']=_0x1ec12e['classes']+'\x20ck-track-changes-preview__root-container',_0x449e44['innerHTML']=_0x1ec12e['content'],_0x3f816a['push'](_0x449e44);}_0x4c2e63(this['element'],_0x3f816a),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x359dd7{constructor(_0x3252f1){super(_0x3252f1),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1483a3=this['editor'],_0x33e5a1=_0x1483a3['locale'],_0x2d1c67=_0x1483a3['plugins']['get']('Dialog');let _0x501635;const _0x5349b6=function(_0x4cea31){const _0x229ae2={};if('editables'in _0x4cea31['ui']['view']){for(const [_0xd563f4,_0x47755f]of Object['entries'](_0x4cea31['ui']['view']['editables']))_0x229ae2[_0xd563f4]=_0x47755f['element'];}else _0x229ae2[_0x4cea31['model']['document']['getRootNames']()[0x0]]=_0x4cea31['ui']['view']['editable']['element'];return _0x229ae2;}(_0x1483a3),_0x522593=function(_0x3bccd2){let _0x52edf4=0x0;for(const _0x322b6a of Object['values'](_0x3bccd2))_0x52edf4=Math['max'](_0x52edf4,_0x322b6a['getBoundingClientRect']()['width']);let _0x186d6a=0x0;for(const _0x4ba424 of Object['values'](_0x3bccd2))_0x186d6a+=_0x4ba424['getBoundingClientRect']()['height'];const _0x552d6c=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3cee3f=Math['min'](_0x186d6a,_0x552d6c);return{'width':_0x52edf4,'height':_0x3cee3f};}(_0x5349b6);_0x2d1c67['show']({'id':'finalContentPreview','title':o(_0x33e5a1,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x33e5a1,{'dialogRects':_0x522593}),'onHide':()=>{_0x501635['detachFromDom']();},'onShow':()=>{_0x1483a3['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x8c55ed=>{const _0x16afc2=this['_standarizeRootsData'](_0x8c55ed,_0x1483a3,_0x5349b6);_0x2d1c67['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x16afc2,_0x1483a3['config']['get']('trackChanges.preview.renderFunction'));}),_0x501635=new _0x14c4f7(_0x33e5a1,[_0x2d1c67['view']]),_0x501635['attachToDom'](),_0x501635['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1483a3['once']('destroy',()=>{_0x501635['detachFromDom']();});const _0x1612fa=_0x2d1c67['view']['headerView']['class'];_0x2d1c67['view']['headerView']['class']=_0x1612fa?_0x1612fa+'\x20ck-reset_all':'ck-reset_all',_0x2d1c67['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2d1c67['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x477d7e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x30d4f5=_0x477d7e['previewMode'],_0x4cdd3d={};if('$labels'===_0x30d4f5){for(const _0x451f05 of _0x477d7e['getMergeFieldsIds']())_0x4cdd3d[_0x451f05]=_0x477d7e['getLabel'](_0x451f05)||_0x451f05;}else{const _0x5505bd='$defaultValues'===_0x30d4f5?_0x477d7e['getDefaultValues']():_0x477d7e['getDataSetValues'](_0x30d4f5,!0x0);for(const _0x14c85f of Object['entries'](_0x5505bd)){const [_0x36445e,_0x116987]=_0x14c85f;_0x4cdd3d[_0x36445e]=null!==_0x116987?_0x116987:_0x477d7e['getLabel'](_0x36445e)||_0x36445e;}}return{'mergeFieldsData':_0x4cdd3d};}['_standarizeRootsData'](_0x50693f,_0x3541a1,_0x19fb3e){let _0x5c6cc1;if('string'==typeof _0x50693f){const _0xdfb5db=_0x3541a1['model']['document']['getRootNames']()[0x0];_0x5c6cc1={[_0xdfb5db]:_0x50693f};}else _0x5c6cc1=_0x50693f;const _0x12d963=this['_fixMediaEmbeds'](_0x5c6cc1,_0x3541a1),_0x4518f6=function(_0x2ebeff,_0x477aba){for(const [_0x4a2d5c,_0x3b0b0f]of _0x2ebeff)_0x3b0b0f['classes']=_0x477aba[_0x4a2d5c]['classList']['value']['replace']('ck-focused','');return _0x2ebeff;}(this['_sortRoots'](_0x3541a1)['reduce']((_0x258bbd,_0x5037ef)=>(_0x258bbd['push']([_0x5037ef,{'content':_0x12d963[_0x5037ef],'classes':''}]),_0x258bbd),[]),_0x19fb3e);return _0x4518f6;}['_fixMediaEmbeds'](_0x44c152,_0x1b24d9){if(!_0x1b24d9['plugins']['has']('MediaEmbedEditing'))return _0x44c152;const _0x5abc63=_0x1b24d9['plugins']['get']('MediaEmbedEditing');for(const [_0x2da133,_0x54caad]of Object['entries'](_0x44c152)){const _0x584646=document['createElement']('div');_0x584646['innerHTML']=_0x54caad,(_0x584646['querySelectorAll']('figure.media')['forEach'](_0x6634a2=>{const _0x10b9b9=_0x6634a2['querySelector']('oembed');if(_0x10b9b9){const _0x356d67=_0x10b9b9['getAttribute']('url');if(_0x356d67){const _0x324060=_0x5abc63['registry']['getMediaViewElement'](new _0x1b579e(_0x1b24d9['editing']['view']['document']),_0x356d67,{'elementName':'','renderForEditingView':!0x0}),_0xbc8421=document['createElement']('div');_0xbc8421['classList']['add']('ck-media__wrapper'),_0x324060['render'](_0xbc8421,_0x1b24d9['editing']['view']['domConverter']),_0x10b9b9['replaceWith'](_0xbc8421);}}}),_0x44c152[_0x2da133]=_0x584646['innerHTML']);}return _0x44c152;}['_sortRoots'](_0x42d81b){if(!function(_0x88308d){return void 0x0!==_0x88308d['getRootsAttributes'];}(_0x42d81b))return _0x42d81b['model']['document']['getRootNames']();const _0x20819c=[],_0x109506=new Map();for(const _0x16c940 of _0x42d81b['model']['document']['getRootNames']()){const _0x579c14=_0x42d81b['editing']['view']['getDomRoot'](_0x16c940)['getClientRects']()['item'](0x0);_0x20819c['push'](_0x16c940),_0x109506['set'](_0x16c940,_0x579c14);}return _0x20819c['sort']((_0x50c5e4,_0x345c8b)=>{const _0x6b9c3d=_0x109506['get'](_0x50c5e4),_0xe6956e=_0x109506['get'](_0x345c8b);return _0x6b9c3d['y']-_0xe6956e['y']||_0x6b9c3d['x']-_0xe6956e['x'];}),_0x20819c;}}class Ue extends _0x223c7c{static get['requires'](){return[re,_0x277606];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x94564){super(_0x94564),_0x94564['commands']['add']('previewFinalContent',new te(this['editor'])),_0x94564['config']['define']('trackChanges.preview.renderFunction',(_0x19652b,_0x5ab221)=>{for(const _0x23a49d of _0x5ab221)_0x19652b['appendChild'](_0x23a49d);});}}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};
|