@ckeditor/ckeditor5-track-changes 44.2.0-alpha.12 → 44.2.0-alpha.13
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 +3 -3
- package/package.json +25 -25
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as Yt,Plugin as
|
|
24
|
-
_0x5bc7ae(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x57d60a,_0x158037){super(),this['id']=_0x158037['id'],this['type']=_0x158037['type'],this['subType']=_0x158037['subType']||null,this['author']=_0x158037['author'],this['creator']=_0x158037['creator']||_0x158037['author'],this['isExternal']=Boolean(_0x158037['attributes']&&_0x158037['attributes']['@external']),this['data']=null,this['_model']=_0x57d60a,this['_onAccept']=_0x158037['onAccept'],this['_onDiscard']=_0x158037['onDiscard'],this['_onAttributesChange']=_0x158037['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x158037['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 _0x1c7770=this;for(;_0x1c7770['previous'];)_0x1c7770=_0x1c7770['previous'];return _0x1c7770;}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'](_0x108544){this['_markerNames']['add'](_0x108544);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x45a5cc=>this['_model']['markers']['get'](_0x45a5cc))['filter'](_0xf52c20=>_0xf52c20);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x18dc10=>{for(const _0x3b1bfc of this['getMarkers']())_0x18dc10['removeMarker'](_0x3b1bfc);}),this['_markerNames']['clear']();}['removeMarker'](_0x51dea1){this['_model']['change'](_0xbc7994=>{_0xbc7994['removeMarker'](_0x51dea1);}),this['_markerNames']['delete'](_0x51dea1);}['addRange'](_0x2219ef){const _0x59ab36='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x59ab36),this['_model']['change'](_0x359312=>{_0x359312['addMarker'](_0x59ab36,{'range':_0x2219ef,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x56c1c6){for(const _0x3fe129 of this['getRanges']())if(_0x3fe129['isIntersecting'](_0x56c1c6))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x398b5b=>_0x398b5b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2925b3,_0x554646)=>[..._0x2925b3,..._0x554646['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5d5bc2=this['getRanges']();if(0x1!=_0x5d5bc2['length'])return null;const _0x5c1fcd=_0x5d5bc2[0x0],_0xb0cff0=_0x5c1fcd['start']['nodeAfter'],_0x3f2b95=_0x5c1fcd['end']['nodeBefore'];return _0xb0cff0 instanceof _0x596a10?_0xb0cff0!=_0x3f2b95?null:_0xb0cff0: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 _0xb32c32=[];let _0x54bc41=this['head'];for(;_0x54bc41;)_0xb32c32['push'](_0x54bc41),_0x54bc41=_0x54bc41['next'];return _0xb32c32;}['setAttribute'](_0x4cfbce,_0x194c50){const _0x105390=_0x448b79(this['attributes']);_0x3fed51(_0x105390,_0x4cfbce,_0x194c50),_0x368862(_0x105390,this['attributes'])||(this['attributes']=_0x105390,this['_onAttributesChange'](_0x105390));}['removeAttribute'](_0x7c0f2b){const _0x235a6d=_0x448b79(this['attributes']);_0x249feb(_0x235a6d,_0x7c0f2b),_0x368862(_0x235a6d,this['attributes'])||(this['attributes']=_0x235a6d,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 _0x3c9712()['substr'](0x1,0x5);}}function o(_0x693e21,_0x1bcd17,_0x285b47){const _0x4bf4da=_0x693e21['t'],t=_0x693e21['t'];switch(_0x1bcd17){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',_0x285b47);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x285b47);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x285b47);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x285b47);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x285b47);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',_0x285b47);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x285b47);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',_0x285b47);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x285b47);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x285b47);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x285b47);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x285b47);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x285b47);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x285b47);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x285b47);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x285b47);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x285b47);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x285b47);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x285b47);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x285b47);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x285b47);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x285b47);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x285b47);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x285b47);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'},_0x285b47);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x285b47);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x285b47);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x285b47);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x285b47);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x285b47);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'},_0x285b47);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x285b47);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x285b47);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x285b47);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x285b47);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'},_0x285b47);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x285b47);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'},_0x285b47);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'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'},_0x285b47);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x285b47);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'},_0x285b47);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x285b47);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'},_0x285b47);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x285b47);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x285b47);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'},_0x285b47);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x285b47);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 _0x4bf4da({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x285b47);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4bf4da({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x285b47);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x285b47);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'},_0x285b47);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'},_0x285b47);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'},_0x285b47);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1bcd17;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1d00ae,_0x144201){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1d00ae,this['_locale']=_0x144201;}['getDescriptions'](_0x2c2354){const _0x416d97=[],_0x5d6bfa=new Set(),_0x28a060=new Set();for(let _0x39e7c5=0x0;_0x39e7c5<_0x2c2354['length'];_0x39e7c5++){const _0x31e126=_0x2c2354[_0x39e7c5];if(!_0x31e126['isInContent'])continue;const _0x1b2729=this['_handleCustomCallbackDescription'](_0x31e126);if(_0x1b2729){if(null!=_0x31e126['subType']){if(_0x5d6bfa['has'](_0x31e126['subType']))continue;_0x5d6bfa['add'](_0x31e126['subType']);}_0x416d97['push'](_0x1b2729);}else{if('attribute'!=_0x31e126['type'])'insertion'!=_0x31e126['type']&&'deletion'!=_0x31e126['type']||this['_handleInsertRemoveSuggestionDescription'](_0x416d97,_0x31e126,_0x2c2354[_0x39e7c5+0x1]);else{const _0xb9225=_0x31e126['data']['key'];if(_0x28a060['has'](_0xb9225))continue;_0x28a060['add'](_0x31e126['data']['key']),_0xb9225==m?this['_handleRenameSuggestionDescription'](_0x416d97,_0x31e126):this['_handleAttributeSuggestionDescription'](_0x416d97,_0x31e126);}}}return this['_resolveDescriptionItems'](_0x416d97);}['registerDescriptionCallback'](_0x203a22){this['_customCallbacks']['push'](_0x203a22);}['registerElementLabel'](_0x39df42,_0x3dd774,_0x3732fb=_0x192293['normal']){'function'==typeof _0x39df42?_0x1c3f49(this['_itemLabelsCallbacks'],{'matchingCallback':_0x39df42,'label':_0x3dd774,'priority':_0x3732fb}):this['_itemLabels']['set'](_0x39df42,_0x3dd774);}['registerAttributeLabel'](_0x319571,_0x2a6550){this['_attributeLabels']['set'](_0x319571,_0x2a6550);}['getItemLabel'](_0x354dbd,_0x3c460c=0x1){let _0x3040b6;for(const _0xa7626c of this['_itemLabelsCallbacks'])if(_0xa7626c['matchingCallback'](_0x354dbd)){_0x3040b6=_0xa7626c['label'];break;}return _0x3040b6||(_0x3040b6=this['_itemLabels']['get'](_0x354dbd['name'])),_0x3040b6?_0x3040b6(_0x3c460c):0x1!==_0x3c460c?_0x3c460c+'\x20'+_0x354dbd['name']+'s':''+_0x354dbd['name'];}['_addDescriptionItems'](_0x369831,_0x58090c){const _0xd8fcd2=_0x58090c['getFirstRange']()['getWalker'](),_0x3c3111='insertion'==_0x58090c['type']?'add':'remove';for(const _0x40767c of _0xd8fcd2){const _0x1c364b=_0x40767c['item'],_0x2ab3da=_0x369831[_0x369831['length']-0x1];if(_0x1c364b['is']('$textProxy'))_0x2ab3da&&_0x2ab3da['type']['indexOf']('Container')>-0x1&&_0x369831['pop'](),_0x2ab3da&&'text'==_0x2ab3da['type']?_0x2ab3da[_0x3c3111]+=_0x1c364b['data']:_0x369831['push']({'type':'text','add':'add'==_0x3c3111?_0x1c364b['data']:'','remove':'remove'==_0x3c3111?_0x1c364b['data']:''});else{if(this['_schema']['isObject'](_0x1c364b)){const _0x256158=_0x1c364b;if(_0x2ab3da&&_0x2ab3da['type']['indexOf']('Container')>-0x1&&_0x369831['pop'](),'elementEnd'==_0x40767c['type'])continue;_0x2ab3da&&_0x2ab3da['type']==_0x3c3111+'Object'&&_0x2ab3da['element']['name']==_0x256158['name']?_0x2ab3da['quantity']++:_0x369831['push']({'type':_0x3c3111+'Object','element':_0x256158,'quantity':0x1}),_0xd8fcd2['skip'](_0x191338=>!('elementEnd'==_0x191338['type']&&_0x191338['item']==_0x1c364b));}else{if(this['_schema']['checkChild'](_0x1c364b,'$text')||_0x1c364b['is']('element','softBreak')){const _0x4a533a=_0x1c364b;if('add'==_0x3c3111&&'elementStart'==_0x40767c['type']||'remove'==_0x3c3111&&'elementEnd'==_0x40767c['type'])continue;if(_0x2ab3da&&-0x1==_0x2ab3da['type']['indexOf']('Container')){'text'==_0x2ab3da['type']&&(_0x2ab3da[_0x3c3111]+='\x0a');continue;}let _0x1c474e;if(_0x1c474e='add'==_0x3c3111?_0x4a533a['nextSibling']&&!this['_schema']['isObject'](_0x4a533a['nextSibling'])?_0x4a533a['nextSibling']:null:_0x4a533a['previousSibling']&&!this['_schema']['isObject'](_0x4a533a['previousSibling'])?_0x4a533a['previousSibling']:null,_0x4a533a['isEmpty']||_0x1c474e&&_0x1c474e['isEmpty']){const _0x14462c=_0x1c474e&&_0x1c474e['isEmpty']?_0x1c474e:_0x4a533a;_0x2ab3da&&_0x2ab3da['type']==_0x3c3111+'EmptyContainer'&&_0x2ab3da['element']['name']==_0x14462c['name']?_0x2ab3da['quantity']++:_0x369831['push']({'type':_0x3c3111+'EmptyContainer','element':_0x14462c,'quantity':0x1});}else _0x369831['push']({'type':_0x3c3111+'Container','element':_0x4a533a});}}}}}['_resolveDescriptionItems'](_0x340b73){const _0x3d59f0=this['_locale'],_0x2c4dc3=[],_0x4e6a28=[],_0xfa8c6b=[];for(const _0x5f0226 of _0x340b73)switch(_0x5f0226['type']){case'text':if(_0x5f0226['add']=_0x5f0226['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5f0226['remove']=_0x5f0226['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5f0226['add']&&''!=_0x5f0226['remove']){_0x2c4dc3['push']({'type':'replace','content':o(_0x3d59f0,'REPLACE_TEXT',['\x22'+_0x5f0226['remove']+'\x22','\x22'+_0x5f0226['add']+'\x22'])});continue;}if(null!=_0x5f0226['add']['match'](/^ +$/)){_0x2c4dc3['push']({'type':'insertion','content':o(_0x3d59f0,'*Insert:*\x20%0',o(_0x3d59f0,'ELEMENT_SPACE',_0x5f0226['add']['length']))});continue;}if(null!=_0x5f0226['remove']['match'](/^ +$/)){_0x2c4dc3['push']({'type':'deletion','content':o(_0x3d59f0,'*Remove:*\x20%0',o(_0x3d59f0,'ELEMENT_SPACE',_0x5f0226['remove']['length']))});continue;}if(''!=_0x5f0226['add']){_0x2c4dc3['push']({'type':'insertion','content':o(_0x3d59f0,'*Insert:*\x20%0','\x22'+_0x5f0226['add']+'\x22')});continue;}_0x2c4dc3['push']({'type':'deletion','content':o(_0x3d59f0,'*Remove:*\x20%0','\x22'+_0x5f0226['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2c4dc3['push']({'type':'insertion','content':o(_0x3d59f0,'*Insert:*\x20%0',this['getItemLabel'](_0x5f0226['element'],_0x5f0226['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2c4dc3['push']({'type':'deletion','content':o(_0x3d59f0,'*Remove:*\x20%0',this['getItemLabel'](_0x5f0226['element'],_0x5f0226['quantity']))});continue;case'addContainer':_0x2c4dc3['push']({'type':'insertion','content':o(_0x3d59f0,'*Split:*\x20%0',this['getItemLabel'](_0x5f0226['element'],_0x5f0226['quantity']))});continue;case'removeContainer':_0x2c4dc3['push']({'type':'deletion','content':o(_0x3d59f0,'*Merge:*\x20%0',this['getItemLabel'](_0x5f0226['element'],_0x5f0226['quantity']))});continue;case'addFormat':_0x4e6a28['push'](_0x5f0226['key']);continue;case'removeFormat':_0xfa8c6b['push'](_0x5f0226['key']);continue;default:_0x2c4dc3['push'](_0x5f0226);}if(_0x4e6a28['length']){const _0x4dc9b9=_0x4e6a28['map'](_0x103439=>this['_attributeLabels']['has'](_0x103439)?this['_attributeLabels']['get'](_0x103439):_0x103439)['join'](',\x20');_0x2c4dc3['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4dc9b9)});}if(_0xfa8c6b['length']){const _0x1e49bc=_0xfa8c6b['map'](_0x304510=>this['_attributeLabels']['has'](_0x304510)?this['_attributeLabels']['get'](_0x304510):_0x304510)['join'](',\x20');_0x2c4dc3['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1e49bc)});}return _0x2c4dc3;}['_handleCustomCallbackDescription'](_0x32150d){for(const _0x1d18ee of this['_customCallbacks']){const _0x11c1a8=_0x1d18ee(_0x32150d);if(_0x11c1a8&&'type'in _0x11c1a8)return _0x11c1a8;}}['_handleAttributeSuggestionDescription'](_0x3719ef,_0xac63f4){const _0x42662d=_0xac63f4['data'],_0x5ddc8e=void 0x0===_0x42662d['newValue']?'removeFormat':'addFormat';_0x3719ef['push']({'type':_0x5ddc8e,'key':_0x42662d['key']});}['_handleRenameSuggestionDescription'](_0x575c8b,_0x2d593c){_0x575c8b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2d593c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4896d6,_0x445476,_0x1fcb80){if(this['_addDescriptionItems'](_0x4896d6,_0x445476),_0x1fcb80&&_0x1fcb80['getFirstRange']()&&!_0x445476['getFirstRange']()['end']['isEqual'](_0x1fcb80['getFirstRange']()['start'])){const _0x50f0e2=_0x4896d6[_0x4896d6['length']-0x1],_0x3f2fff='insertion'==_0x445476['type']?'add':'remove';_0x50f0e2&&'text'==_0x50f0e2['type']&&(_0x50f0e2[_0x3f2fff]+='\x0a');}}}class U extends _0x647c34{['afterInit'](){const _0x57dd36=this['editor'],_0x1f9335=_0x57dd36['plugins']['get']('TrackChangesEditing');_0x57dd36['commands']['get']('showAIAssistant')&&_0x1f9335['enableCommand']('showAIAssistant');}}class V extends _0x647c34{['afterInit'](){const _0x3d8abf=this['editor'],_0x2e919f=_0x3d8abf['locale'];if(!_0x3d8abf['plugins']['has']('AlignmentEditing'))return;const _0x48d228=_0x3d8abf['plugins']['get']('TrackChangesEditing');_0x48d228['enableDefaultAttributesIntegration']('alignment'),_0x48d228['registerBlockAttribute']('alignment'),_0x48d228['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2e919f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x641894=this['editor'],_0x5272f9=_0x641894['locale'];_0x641894['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x231786=>{if('formatBlock'!=_0x231786['type'])return;const {data:_0xb39c31}=_0x231786;if(_0xb39c31&&'alignment'==_0xb39c31['commandName']){const _0xba960c=_0xb39c31['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5272f9,'*Format:*\x20%0',function(_0x26b002){switch(_0x26b002){case'left':return o(_0x5272f9,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5272f9,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5272f9,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5272f9,'FORMAT_JUSTIFY_TEXT');}}(_0xba960c))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x647c34{['afterInit'](){const _0x12a2c6=this['editor'],_0x3f1cff=_0x12a2c6['plugins']['get']('TrackChangesEditing'),_0x955cd5=_0x12a2c6['locale'];for(const _0x140a8e of ti){if(!_0x12a2c6['plugins']['has'](_0x140a8e))continue;const _0x5829f0=_0x140a8e['slice'](0x0,-0x7)['toLowerCase'](),_0x2df99a='FORMAT_'+_0x5829f0['toUpperCase']();_0x3f1cff['enableDefaultAttributesIntegration'](_0x5829f0),_0x3f1cff['registerInlineAttribute'](_0x5829f0),_0x3f1cff['descriptionFactory']['registerAttributeLabel'](_0x5829f0,o(_0x955cd5,_0x2df99a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54f765=this['editor'],_0xfa28af=_0x54f765['locale'],_0x38c0c3=_0x54f765['plugins']['get']('TrackChangesEditing');function _0x4f62e6(_0x29e5a4,_0x384456){_0x38c0c3['descriptionFactory']['registerDescriptionCallback'](_0x54d081=>{if('formatInline'!=_0x54d081['type'])return;const {data:_0x43fd3d}=_0x54d081;return _0x43fd3d&&_0x43fd3d['commandName']===_0x29e5a4?_0x43fd3d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xfa28af,'*Format:*\x20%0',_0x384456)}:{'type':'format','content':o(_0xfa28af,'*Remove\x20format:*\x20%0',_0x384456)}:void 0x0;});}_0x4f62e6('bold',o(_0xfa28af,'FORMAT_BOLD')),_0x4f62e6('italic',o(_0xfa28af,'FORMAT_ITALIC')),_0x4f62e6('underline',o(_0xfa28af,'FORMAT_UNDERLINE')),_0x4f62e6('code',o(_0xfa28af,'FORMAT_CODE')),_0x4f62e6('strikethrough',o(_0xfa28af,'FORMAT_STRIKETHROUGH')),_0x4f62e6('subscript',o(_0xfa28af,'FORMAT_SUBSCRIPT')),_0x4f62e6('superscript',o(_0xfa28af,'FORMAT_SUPERSCRIPT'));}}class F extends _0x647c34{['afterInit'](){const _0x42da30=this['editor'],_0x1bcaf3=_0x42da30['locale'];if(!_0x42da30['plugins']['has']('BlockQuoteEditing'))return;const _0x14910f=_0x42da30['plugins']['get']('TrackChangesEditing'),_0x34efd4=this['editor']['commands']['get']('blockQuote');_0x14910f['enableCommand']('blockQuote',(_0x288ce7,_0x491c5e={})=>{const _0x273035=this['editor']['model']['document']['selection'],_0x57fadd=_0x491c5e&&void 0x0!==_0x491c5e['forceValue']?_0x491c5e['forceValue']:!_0x34efd4['value'];let _0x5f3f46=[];if(_0x57fadd){const _0x406331=Array['from'](_0x273035['getSelectedBlocks']())['filter'](_0x1e0e3b=>oo(_0x1e0e3b)||function(_0x43cc1a,_0x3c5ba0){const _0x2ae2ef=_0x3c5ba0['checkChild'](_0x43cc1a['parent'],'blockQuote'),_0x1c95b3=_0x3c5ba0['checkChild'](['$root','blockQuote'],_0x43cc1a);return _0x2ae2ef&&_0x1c95b3;}(_0x1e0e3b,this['editor']['model']['schema']));_0x5f3f46=to(_0x406331,_0x42da30['model']);}else{const _0x3b802c=Array['from'](_0x273035['getSelectedBlocks']())['filter'](_0x267e94=>oo(_0x267e94));_0x5f3f46=to(_0x3b802c,_0x42da30['model']);}_0x42da30['model']['change'](()=>{for(const _0x107f23 of _0x5f3f46)_0x14910f['markBlockFormat'](_0x107f23,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x57fadd}]});});}),_0x14910f['descriptionFactory']['registerDescriptionCallback'](_0x54bf53=>{const {data:_0x2d7ef5}=_0x54bf53;if(_0x2d7ef5&&'blockQuote'==_0x2d7ef5['commandName']){const _0x3ec541=o(_0x1bcaf3,'ELEMENT_BLOCK_QUOTE');return _0x2d7ef5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1bcaf3,'*Set\x20format:*\x20%0',_0x3ec541)}:{'type':'format','content':o(_0x1bcaf3,'*Remove\x20format:*\x20%0',_0x3ec541)};}});}}function oo(_0x33463c){return'blockQuote'==_0x33463c['parent']['name'];}class L extends _0x647c34{['afterInit'](){const _0xc0ce71=this['editor'],_0x4db603=_0xc0ce71['locale'],_0x1f31a4=_0xc0ce71['plugins']['get']('TrackChangesEditing');_0xc0ce71['plugins']['has']('BookmarkEditing')&&(_0x1f31a4['enableCommand']('insertBookmark'),_0x1f31a4['enableDefaultAttributesIntegration']('updateBookmark'),_0x1f31a4['registerBlockAttribute']('bookmarkId'),_0x1f31a4['descriptionFactory']['registerDescriptionCallback'](_0x37f1ee=>{if('insertion'!=_0x37f1ee['type']&&'deletion'!=_0x37f1ee['type']&&'attribute'!=_0x37f1ee['type'])return;const _0x305fe8=_0x37f1ee['getContainedElement']();if(null==_0x305fe8)return;if(!_0x305fe8['is']('element','bookmark'))return;const _0x468b65=_0x305fe8['getAttribute']('bookmarkId');if('insertion'==_0x37f1ee['type'])return{'type':'insertion','content':o(_0x4db603,'*Insert:*\x20%0','\x22'+_0x468b65+'\x22\x20'+o(_0x4db603,'ELEMENT_BOOKMARK'))};if('deletion'==_0x37f1ee['type'])return{'type':'deletion','content':o(_0x4db603,'*Remove:*\x20%0','\x22'+_0x468b65+'\x22\x20'+o(_0x4db603,'ELEMENT_BOOKMARK'))};const {data:_0x43e70a}=_0x37f1ee;if(!_0x43e70a||'bookmarkId'!=_0x43e70a['key'])return;return{'type':'format','content':o(_0x4db603,'*Set\x20bookmark:*\x20%0','\x22'+_0x43e70a['newValue']+'\x22')};}));}}class J extends _0x647c34{['afterInit'](){const _0x257d80=this['editor'];_0x257d80['plugins']['has']('CaseChange')&&(_0x257d80['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x257d80['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x257d80['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x647c34{['afterInit'](){const _0x14302b=this['editor'];_0x14302b['commands']['get']('ckbox')&&_0x14302b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x647c34{['afterInit'](){const _0x2ae966=this['editor'];if(!_0x2ae966['plugins']['has']('CodeBlock'))return;const _0x57ce3d=_0x2ae966['plugins']['get']('TrackChangesEditing'),_0x409e52=_0x2ae966['locale'],_0x175389=_0x2ae966['config']['get']('codeBlock')['languages'],_0x23b30b=_0x2ae966['commands']['get']('codeBlock');_0x57ce3d['enableCommand']('indentCodeBlock'),_0x57ce3d['enableCommand']('outdentCodeBlock'),_0x57ce3d['enableCommand']('codeBlock',(_0x5fc90,_0x22ff4a={})=>{const _0x538e17=_0x2ae966['model'],_0x5f5225=_0x2ae966['model']['document']['selection'],_0x207909=_0x22ff4a&&void 0x0!==_0x22ff4a['forceValue']?_0x22ff4a['forceValue']:!_0x23b30b['value'];let _0xb167be;_0x22ff4a['language']||(_0x22ff4a['language']=_0x175389[0x0]['language']),_0xb167be=_0x207909?Array['from'](_0x5f5225['getSelectedBlocks']())['filter'](_0x403e16=>eo(_0x403e16)||function(_0x2a79c3,_0xbe1c04){if(_0x2a79c3['is']('rootElement')||_0xbe1c04['isLimit'](_0x2a79c3))return!0x1;return _0xbe1c04['checkChild'](_0x2a79c3['parent'],'codeBlock');}(_0x403e16,_0x538e17['schema'])):Array['from'](_0x5f5225['getSelectedBlocks']())['filter'](_0x4f3fa7=>eo(_0x4f3fa7));const _0x18dbc1=to(_0xb167be,_0x538e17);_0x538e17['change'](()=>{for(const _0x5d3979 of _0x18dbc1)_0x57ce3d['markBlockFormat'](_0x5d3979,{'commandName':'codeBlock','commandParams':[{..._0x22ff4a,'forceValue':_0x207909}],'formatGroupId':'blockName'});});}),(_0x57ce3d['descriptionFactory']['registerElementLabel']('codeBlock',_0x12bab4=>o(_0x409e52,'ELEMENT_CODE_BLOCK',_0x12bab4)),_0x57ce3d['descriptionFactory']['registerDescriptionCallback'](_0x2fc6ea=>{if('formatBlock'!=_0x2fc6ea['type'])return;const _0x2db21b=_0x409e52['t'],{data:_0x18c9dc}=_0x2fc6ea;if(!_0x18c9dc||'codeBlock'!=_0x18c9dc['commandName'])return;const _0x1e4886=_0x18c9dc['commandParams'][0x0]['language'],_0x493395=_0x2db21b(_0x175389['find'](_0x632ff4=>_0x632ff4['language']===_0x1e4886)['label'])['toLowerCase']();return _0x18c9dc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x409e52,'*Set\x20format:*\x20%0',o(_0x409e52,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x493395+')')}:{'type':'format','content':o(_0x409e52,'*Remove\x20format:*\x20%0',o(_0x409e52,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x26dd56){return'codeBlock'==_0x26dd56['name'];}class z extends _0x647c34{['afterInit'](){const _0x16ff55=this['editor'];if(!_0x16ff55['plugins']['has']('CommentsEditing'))return;_0x16ff55['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xc8f955,_0x5969ad,_0x7431ce){const _0x5ed66b=[];for(const _0x1d5362 of _0x5969ad['getItems']())_0x1d5362['hasAttribute'](_0xc8f955)&&_0x5ed66b['push'](_0x7431ce['createRangeOn'](_0x1d5362));return _0x5ed66b;}function De(_0xc0ac6b,_0x471c07,{showActiveMarker:_0x58f90c=!0x0}={}){const _0x55dd37=_0xc0ac6b['plugins']['get']('TrackChangesEditing');return(_0x344805,_0x3ab09b,_0x21aa4b)=>{if(!_0x21aa4b['consumable']['test'](_0x3ab09b['markerRange'],_0x344805['name']))return;const _0x177ec2=_0x3ab09b['markerRange']['getWalker'](),_0x1d3c30=_0x3ab09b['markerRange']['start'],_0x53bbb0=_0xc0ac6b['model']['schema'];let _0x2b658c=null,_0x2aea87=null,_0x4b60a1=!0x1,_0x4fec63=!0x1;for(const _0x2c6a41 of _0x177ec2){const _0x1354b7=_0x2c6a41['item'];_0x4b60a1=_0x4b60a1||_0x53bbb0['isContent'](_0x1354b7);const _0x2280ba=_0x21aa4b['mapper']['toViewElement'](_0x1354b7);if(_0x2280ba&&_0x2280ba['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2c6a41['type']&&(_0x53bbb0['isBlock'](_0x1354b7)&&!_0x53bbb0['isLimit'](_0x1354b7)&&(_0x1354b7['nextSibling']||_0x1d3c30['isAtEnd']?_0x2b658c&&_0x2b658c['parent']==_0x1354b7||(_0x2b658c=_0x1354b7,_0x5ae0a7(_0x2c6a41['previousPosition']),_0x4fec63=!0x0):_0x2aea87=_0x2aea87||_0x2c6a41['previousPosition']));}function _0x5ae0a7(_0x11e30b){const {authorId:_0x332ce6}=_0x55dd37['_splitMarkerName'](_0x3ab09b['markerName']),_0xbcf464=_0x21aa4b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x471c07,'data-author-id':_0x332ce6}),_0x16d7a2=_0x21aa4b['mapper']['toViewPosition'](_0x11e30b);_0x58f90c&&_0x55dd37['activeMarkers']['includes'](_0x3ab09b['markerName'])&&_0x21aa4b['writer']['addClass']('ck-suggestion-marker--active',_0xbcf464),_0x21aa4b['writer']['insert'](_0x16d7a2,_0xbcf464),_0x21aa4b['mapper']['bindElementToMarker'](_0xbcf464,_0x3ab09b['markerName']);}_0x4b60a1||_0x4fec63||!_0x2aea87||_0x5ae0a7(_0x2aea87);};}class K extends _0x647c34{static get['requires'](){return[_0x2efb45];}['init'](){const _0x3c0991=this['editor'],_0x359056=_0x3c0991['plugins']['get']('TrackChangesEditing');_0x359056['enableCommand']('delete');const _0x50df79=_0x3c0991['commands']['get']('deleteForward');_0x359056['enableCommand']('deleteForward',(_0x117a2b,_0x7bfd56={})=>{const _0x52208b=_0x3c0991['model']['createSelection'](_0x3c0991['model']['document']['selection']);_0x52208b['isCollapsed']&&_0x3c0991['model']['modifySelection'](_0x52208b,{'direction':'forward','unit':_0x7bfd56['unit']});const _0x493828=_0x52208b['getFirstRange'](),_0x202634=_0x48b32a['fromRange'](_0x493828);let _0x18a777;_0x117a2b(_0x7bfd56),_0x18a777='$graveyard'==_0x202634['root']['rootName']?_0x3c0991['model']['createRange'](_0x493828['start']):_0x3c0991['model']['createRange'](_0x202634['start'],_0x202634['end']),_0x202634['detach'](),_0x3c0991['model']['enqueueChange'](_0x50df79['buffer']['batch'],_0x2b21ff=>{_0x50df79['buffer']['lock'](),_0x2b21ff['setSelection'](_0x2b21ff['createRange'](_0x18a777['end'])),_0x50df79['buffer']['unlock']();});}),_0x3c0991['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x3c0991,'merge'),{'priority':'high'}),_0x3c0991['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x45dca1,_0x449cd0,_0x364aa4)=>{_0x364aa4['options']['showSuggestionHighlights']&&De(_0x3c0991,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x45dca1,_0x449cd0,_0x364aa4);},{'priority':'high'}),_0x3c0991['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1e8245,_0x3fee47,_0x5f2b2f)=>{const _0x372a98=_0x5f2b2f['mapper']['markerNameToElements'](_0x3fee47['markerName']);if(_0x372a98){for(const _0x499199 of _0x372a98)_0x499199['is']('uiElement')&&(_0x5f2b2f['mapper']['unbindElementFromMarkerName'](_0x499199,_0x3fee47['markerName']),_0x5f2b2f['writer']['remove'](_0x499199));}},{'priority':'high'});}}class W extends _0x647c34{['afterInit'](){const _0x3c6858=this['editor'];if(!_0x3c6858['plugins']['has']('ListEditing'))return;const _0x47b3be=_0x3c6858['locale'],_0x5b931e=_0x3c6858['plugins']['get']('TrackChangesEditing'),_0x5d7c0b=_0x3c6858['plugins']['has']('TodoListEditing'),_0x57ff9e=!!_0x3c6858['config']['get']('list.multiBlock');function _0x30d480(_0x276b6b){return{'type':'format','content':''+o(_0x47b3be,'*Set\x20format:*\x20%0',_0x276b6b)};}function _0x149461(_0x266e77){return{'type':'format','content':''+o(_0x47b3be,'*Remove\x20format:*\x20%0',_0x266e77)};}_0x5b931e['enableDefaultAttributesIntegration']('numberedList'),_0x5b931e['enableDefaultAttributesIntegration']('bulletedList'),_0x5b931e['enableDefaultAttributesIntegration']('customNumberedList'),_0x5b931e['enableDefaultAttributesIntegration']('customBulletedList'),_0x5b931e['enableDefaultAttributesIntegration']('indentList'),_0x5b931e['enableDefaultAttributesIntegration']('outdentList'),_0x5b931e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5b931e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5b931e['registerBlockAttribute']('listItemId'),_0x5b931e['registerBlockAttribute']('listType'),_0x5b931e['registerBlockAttribute']('listIndent'),_0x57ff9e&&(_0x5b931e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5b931e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5d7c0b&&(_0x5b931e['enableDefaultAttributesIntegration']('todoList'),_0x5b931e['enableDefaultAttributesIntegration']('checkTodoList'),_0x5b931e['registerBlockAttribute']('todoListChecked'),_0x5b931e['descriptionFactory']['registerDescriptionCallback'](_0x5de675=>{const {data:_0x5a689f}=_0x5de675;if(_0x5a689f&&'todoListChecked'==_0x5a689f['key'])return{'type':'format','content':_0x5a689f['newValue']?o(_0x47b3be,'*Check\x20item*'):o(_0x47b3be,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x56bdd9=>{if(_0x56bdd9['batch']['isUndo'])return!0x1;let _0x2266c1=!0x1;const _0x2f0070=_0x5b931e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x36eff9=>'todoListChecked'===_0x5b931e['_getAttributeKey'](_0x36eff9));for(const _0x22d084 of _0x2f0070){'todo'!=_0x22d084['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5b931e['_findSuggestions'](_0x22d084['getFirstRange'](),'attribute')['find'](_0x4d741d=>'listType'===_0x5b931e['_getAttributeKey'](_0x4d741d['suggestion']))||(_0x56bdd9['removeMarker'](_0x22d084['getFirstMarker']()),_0x2266c1=!0x0));}return _0x2266c1;})),_0x5b931e['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x47b3be,'FORMAT_INDENT'));const _0x45dbcf={'type':'format','content':''};_0x5b931e['descriptionFactory']['registerDescriptionCallback'](_0x5d3efe=>{const {data:_0x482ec8}=_0x5d3efe;if(!_0x482ec8||'listType'!=_0x482ec8['key'])return;let _0x25e305=_0x5d3efe['head'];for(;_0x25e305;){if(_0x25e305['data']&&(('listStyle'==_0x25e305['data']['key']||'listMarkerStyle'==_0x25e305['data']['key'])&&(_0x25e305['data']['newValue']&&'default'!=_0x25e305['data']['newValue']||'default'!=_0x25e305['data']['oldValue']&&!_0x482ec8['newValue'])||!_0x57ff9e&&_0x25e305['data']['key']==m))return _0x45dbcf;_0x25e305=_0x25e305['next'];}if(null==_0x482ec8['newValue'])switch(_0x482ec8['oldValue']){case'bulleted':return _0x149461(o(_0x47b3be,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x149461(o(_0x47b3be,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x149461(o(_0x47b3be,'ELEMENT_TODO_LIST'));}switch(_0x482ec8['newValue']){case'bulleted':return _0x30d480(o(_0x47b3be,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x30d480(o(_0x47b3be,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x30d480(o(_0x47b3be,'ELEMENT_TODO_LIST'));}}),_0x5b931e['descriptionFactory']['registerDescriptionCallback'](_0x1c3253=>{const {data:_0x27458b}=_0x1c3253;if(_0x27458b&&'listIndent'==_0x27458b['key'])return null==_0x27458b['newValue']||null==_0x27458b['oldValue']&&0x0==_0x27458b['newValue']?_0x45dbcf:void 0x0;}),_0x5b931e['descriptionFactory']['registerDescriptionCallback'](_0x10fe82=>{if('attribute'!=_0x10fe82['type'])return;const {data:_0x35f3d6}=_0x10fe82;if(!_0x35f3d6||'listItemId'!=_0x35f3d6['key'])return;const _0x510e6c=Te(_0x10fe82);return'newValue'==_0x510e6c?{'type':'format','content':o(_0x47b3be,'*Merge:*\x20list\x20item')}:'oldValue'==_0x510e6c?{'type':'format','content':o(_0x47b3be,'*Split:*\x20list\x20item')}:_0x45dbcf;}),_0x3c6858['model']['document']['registerPostFixer'](_0x20a1c6=>this['listItemIdFixer'](_0x20a1c6)),_0x3c6858['model']['document']['registerPostFixer'](_0x59bb2f=>this['noTrackChangesFixer'](_0x59bb2f)),_0x3c6858['model']['document']['on']('change:data',(_0x557ca6,_0x1755f4)=>{if(_0x1755f4['isUndo']||!_0x1755f4['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x49d95a){if(_0x49d95a['batch']['isUndo']||!_0x49d95a['batch']['isLocal'])return!0x1;let _0x32e609=!0x1;const _0x5f3b7c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b0bc3=>_0x3b0bc3['data']&&'listItemId'==_0x3b0bc3['data']['key'])['filter'](_0x12c0b5=>_0x12c0b5['data']['newValue']&&_0x12c0b5['data']['oldValue']);for(const _0x37bdc3 of _0x5f3b7c)Te(_0x37bdc3)||(_0x49d95a['removeMarker'](_0x37bdc3['getFirstMarker']()),_0x32e609=!0x0);return _0x32e609;}['noTrackChangesFixer'](_0x2ea9a6){if(_0x2ea9a6['batch']['isUndo']||!_0x2ea9a6['batch']['isLocal'])return!0x1;const _0x5227c9=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5227c9['trackChangesCommand']['value'])return!0x1;let _0xddac5f=!0x1;const _0x4a3359=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x30c930=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x48cad0=>'attribute'==_0x48cad0['type'])['filter'](_0x42b01b=>_0x4a3359['includes'](_0x42b01b['attributeKey']));if(0x0==_0x30c930['length'])return _0xddac5f;for(const _0x4dd952 of _0x30c930){const _0x22f3cd=_0x5227c9['_findSuggestions'](_0x4dd952['range'],'attribute')['filter'](_0x442bca=>!_0x442bca['meta']['isNextTo'])['map'](_0xe4d3a0=>_0xe4d3a0['suggestion'])['filter'](_0x3a1921=>{const _0x2822bb=_0x5227c9['_getAttributeKey'](_0x3a1921);return _0x4a3359['includes'](_0x2822bb);});if(_0x22f3cd['length']){for(const _0x3788af of _0x22f3cd)_0x2ea9a6['removeMarker'](_0x3788af['getFirstMarker']());_0xddac5f=!0x0;}}return _0xddac5f;}['assureChains'](){const _0xc914c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26e32f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x14bfb1;const _0x1ddab7=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1fbea2=>{if(_0x1fbea2['data']['oldRange']||!_0x1fbea2['data']['newRange'])return null;if(!_0x1fbea2['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2254dc}=_0xc914c0['_splitMarkerName'](_0x1fbea2['name']);if(!_0xc914c0['hasSuggestion'](_0x2254dc))return null;const _0x2323c1=_0xc914c0['getSuggestion'](_0x2254dc);return _0x26e32f['includes'](_0x2323c1['data']['key']);})['map'](_0x3f3de5=>{const {id:_0x2a7f45}=_0xc914c0['_splitMarkerName'](_0x3f3de5['name']),_0x1ab1a4=_0xc914c0['getSuggestion'](_0x2a7f45);return _0x14bfb1=_0x1ab1a4['attributes']['groupId'],_0x1ab1a4['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1ddab7['size'])return;const _0x155305=_0xc914c0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1ceda3=>'attribute'==_0x1ceda3['type']&&_0x1ceda3['data']&&_0x26e32f['includes'](_0x1ceda3['data']['key'])&&_0x1ceda3['attributes']['groupId']!=_0x14bfb1)['map'](_0x245823=>({'listItem':_0x245823['getFirstRange']()['start']['nodeAfter'],'groupId':_0x245823['attributes']['groupId']})),_0x24ce94=new Set();for(const {groupId:_0x3c17fd,listItem:_0x536800}of _0x155305)_0x1ddab7['has'](_0x536800)&&_0x24ce94['add'](_0x3c17fd);for(const _0x46f8a8 of _0xc914c0['getSuggestions']())_0x24ce94['has'](_0x46f8a8['attributes']['groupId'])&&_0x46f8a8['setAttribute']('groupId',_0x14bfb1);}['_supportLegacySuggestions'](){const _0x5a21f0=this['editor'],_0x4f7608=_0x5a21f0['locale'],_0xb8e3f3=_0x5a21f0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xb8e3f3['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x241d5a,_0x3bc531){const _0x463703=[];for(let _0x5dd7e2 of _0x241d5a)_0x5dd7e2['start']['nodeAfter']===_0x5dd7e2['end']['parent']&&(_0x5dd7e2=_0x5a21f0['model']['createRange'](_0x5a21f0['model']['createPositionAt'](_0x5dd7e2['start']['nodeAfter'],0x0))),_0x463703['push'](_0x5dd7e2);_0x5a21f0['model']['change'](_0xbbf6f9=>{const _0x164ddc=_0x5a21f0['model']['document']['selection'],_0x20e4d8=Array['from'](_0x164ddc['getRanges']())['map'](_0x571c32=>_0x48b32a['fromRange'](_0x571c32));_0xbbf6f9['setSelection'](_0x463703),_0x5a21f0['commands']['get'](_0x3bc531['commandName'])['refresh'](),_0x3bc531['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5a21f0['execute'](_0x3bc531['commandName'],..._0x3bc531['commandParams']),_0xbbf6f9['setSelection'](_0x20e4d8);for(const _0x109c7b of _0x20e4d8)_0x109c7b['detach']();});}),_0xb8e3f3['descriptionFactory']['registerElementLabel'](function(_0x2c0d1a){const _0x2d5f8b=!_0x5a21f0['model']['schema']['isObject'](_0x2c0d1a),_0x323967=_0x2c0d1a['previousSibling'],_0x5ebf5e=_0x2c0d1a['nextSibling'],_0x519f12=_0x2c0d1a['getAttribute']('listItemId'),_0x53dd76=!_0x323967||_0x323967['getAttribute']('listItemId')!==_0x519f12,_0x3ec6f5=!_0x5ebf5e||_0x5ebf5e['getAttribute']('listItemId')!==_0x519f12;return _0x2d5f8b&&Boolean(_0x519f12)&&_0x53dd76&&_0x3ec6f5;},_0xe40dfc=>o(_0x4f7608,'ELEMENT_LIST_ITEM',_0xe40dfc));}['_registerLegacyDescription'](){const _0x20f170=this['editor'],_0x1c6271=_0x20f170['locale'];function _0x5e2793(_0x37d11d){const _0x48fa1c=_0x20f170['commands']['get']('bulletedList')['value'],_0x5b9381=_0x20f170['commands']['get']('numberedList')['value'];return'numberedList'===_0x37d11d?_0x48fa1c:_0x5b9381;}_0x20f170['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x31cc43){if('formatBlock'!=_0x31cc43['type'])return;const {data:_0x23f84e}=_0x31cc43;if(!_0x23f84e)return;let _0x1bea5c,_0x4b307b,_0x3d9cac,_0x93d5f6;switch(_0x23f84e['commandName']){case'bulletedList':_0x3d9cac=_0x23f84e['commandParams'][0x0]['forceValue'],_0x93d5f6=_0x5e2793(_0x23f84e['commandName']),_0x1bea5c=_0x3d9cac?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x93d5f6&&_0x20f170['config']['get']('list.multiBlock')||(_0x1bea5c='*Change\x20to:*\x20%0'),_0x4b307b={'type':'format','content':o(_0x1c6271,_0x1bea5c,o(_0x1c6271,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3d9cac=_0x23f84e['commandParams'][0x0]['forceValue'],_0x93d5f6=_0x5e2793(_0x23f84e['commandName']),_0x1bea5c=_0x3d9cac?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x93d5f6&&_0x20f170['config']['get']('list.multiBlock')||(_0x1bea5c='*Change\x20to:*\x20%0'),_0x4b307b={'type':'format','content':o(_0x1c6271,_0x1bea5c,o(_0x1c6271,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1bea5c='*Indent:*\x20%0',_0x4b307b={'type':'format','content':o(_0x1c6271,_0x1bea5c,o(_0x1c6271,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1bea5c=function(_0x5b78be){const _0x29faab=_0x5b78be['getFirstRange']();let _0x547756=_0x29faab['start']['nodeAfter'];for(;_0x547756&&_0x29faab['containsItem'](_0x547756);){if(_0x547756['getAttribute']('listIndent')>0x0)return!0x1;_0x547756=_0x547756['nextSibling'];}return!0x0;}(_0x31cc43)?o(_0x1c6271,'*Format:*\x20remove\x20from\x20%0',o(_0x1c6271,function(_0x5bf8a2){return'ELEMENT_'+_0x5bf8a2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x31cc43))):o(_0x1c6271,'*Outdent:*\x20%0',o(_0x1c6271,'ELEMENT_LIST_ITEM')),_0x4b307b={'type':'format','content':_0x1bea5c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x23f84e['multipleBlocks']&&(_0x1bea5c='*Merge:*\x20%0',_0x4b307b={'type':'deletion','content':o(_0x1c6271,_0x1bea5c,o(_0x1c6271,'ELEMENT_LIST_ITEM'))});}return _0x4b307b;});}}function Te(_0x4ca3e7){let _0x5fa988=_0x4ca3e7['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5fa988;){const _0x2c218c=_0x5fa988['getAttribute']('listItemId');if(!_0x2c218c)return!0x1;if(_0x2c218c==_0x4ca3e7['data']['newValue'])return'newValue';if(_0x2c218c==_0x4ca3e7['data']['oldValue'])return'oldValue';_0x5fa988=_0x5fa988['previousSibling'];}return!0x1;}class Se extends _0x647c34{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4858ce=this['editor']['config']['get']('list.properties'),_0x32cd04=this['editor']['plugins']['get']('TrackChangesEditing');_0x4858ce['styles']&&(_0x32cd04['enableDefaultAttributesIntegration']('listStyle'),_0x32cd04['registerBlockAttribute']('listStyle')),_0x4858ce['reversed']&&(_0x32cd04['enableDefaultAttributesIntegration']('listReversed'),_0x32cd04['registerBlockAttribute']('listReversed')),_0x4858ce['startIndex']&&(_0x32cd04['enableDefaultAttributesIntegration']('listStart'),_0x32cd04['registerBlockAttribute']('listStart'));const _0x29cfd2={'type':'format','content':''};_0x32cd04['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5d58b6=this['editor']['locale'];_0x32cd04['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5d58b6,'FORMAT_LIST_REVERSED')),_0x32cd04['descriptionFactory']['registerDescriptionCallback'](_0x3741c7=>{const {data:_0x21a447}=_0x3741c7;if(_0x21a447&&'listReversed'==_0x21a447['key'])return null==_0x21a447['newValue']||0x0==_0x21a447['newValue']&&null==_0x21a447['oldValue']?_0x29cfd2:void 0x0;}),_0x32cd04['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5d58b6,'FORMAT_LIST_START')),_0x32cd04['descriptionFactory']['registerDescriptionCallback'](_0x1e9a09=>{const {data:_0x22831b}=_0x1e9a09;if(_0x22831b&&'listStart'==_0x22831b['key'])return null==_0x22831b['newValue']||0x1==_0x22831b['newValue']&&null==_0x22831b['oldValue']?_0x29cfd2:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x57862c=>{if(_0x57862c['batch']['isUndo'])return!0x1;let _0x15458a=!0x1;const _0x59c8f0=_0x32cd04['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x851d0b=>{const _0x5aa952=_0x32cd04['_getAttributeKey'](_0x851d0b);return'listStart'==_0x5aa952||'listReversed'==_0x5aa952;});for(const _0x2ba8c5 of _0x59c8f0){const _0x4520e4=_0x2ba8c5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4520e4||'customNumbered'==_0x4520e4)continue;_0x32cd04['_findSuggestions'](_0x2ba8c5['getFirstRange'](),'attribute')['find'](_0x4c2620=>'listType'==_0x32cd04['_getAttributeKey'](_0x4c2620['suggestion']))||(_0x57862c['removeMarker'](_0x2ba8c5['getFirstMarker']()),_0x15458a=!0x0);}return _0x15458a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4b4e46){const _0x427893=this['editor']['locale'],{data:_0x4794e3}=_0x4b4e46,_0x35d69e={'type':'format','content':''};if(!_0x4794e3||'listStyle'!=_0x4794e3['key'])return;if(!_0x4794e3['oldValue'])return'default'==_0x4794e3['newValue']?_0x35d69e:{'type':'format','content':''+o(_0x427893,'*Set\x20format:*\x20%0',o(_0x427893,this['_getTranslationKeyForListStyle'](_0x4794e3['newValue'])))};if(!_0x4794e3['newValue']){if('default'==_0x4794e3['oldValue'])return _0x35d69e;let _0x356a35=_0x4b4e46['head'];for(;_0x356a35;){if(_0x356a35['data']&&'listType'==_0x356a35['data']['key']&&_0x356a35['data']['newValue'])return _0x35d69e;_0x356a35=_0x356a35['next'];}return{'type':'format','content':''+o(_0x427893,'*Remove\x20format:*\x20%0',o(_0x427893,this['_getTranslationKeyForListStyle'](_0x4794e3['oldValue'])))};}if('default'!=_0x4794e3['newValue'])return{'type':'format','content':''+o(_0x427893,'*Set\x20format:*\x20%0',o(_0x427893,this['_getTranslationKeyForListStyle'](_0x4794e3['newValue'])))};let _0x27bc04=_0x4b4e46['head'];for(;_0x27bc04;){if(_0x27bc04['data']&&'listType'==_0x27bc04['data']['key']&&_0x27bc04['data']['newValue']&&_0x27bc04['data']['oldValue'])return _0x35d69e;_0x27bc04=_0x27bc04['next'];}return{'type':'format','content':o(_0x427893,'*Set\x20format:*\x20%0',o(_0x427893,'ELEMENT_'+_0x4b4e46['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2a86c1=this['editor'],_0x1e4078=_0x2a86c1['locale'];_0x2a86c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x416354=>{if('formatBlock'!=_0x416354['type'])return;const {data:_0x3ac7dc}=_0x416354;if(!_0x3ac7dc)return;let _0x34a3bb,_0x4cdbb3;switch(_0x3ac7dc['commandName']){case'listStyle':_0x34a3bb='*Change\x20to:*\x20%0',_0x4cdbb3={'type':'format','content':o(_0x1e4078,_0x34a3bb,o(_0x1e4078,this['_getTranslationKeyForListStyle'](_0x3ac7dc['commandParams'][0x0]['type'])))};break;case'listReversed':_0x34a3bb=_0x3ac7dc['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4cdbb3={'type':'format','content':o(_0x1e4078,_0x34a3bb)};break;case'listStart':_0x34a3bb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4cdbb3={'type':'format','content':o(_0x1e4078,_0x34a3bb,_0x3ac7dc['commandParams'][0x0]['startIndex'])};}return _0x4cdbb3;});}['_getTranslationKeyForListStyle'](_0x4290ef){return'ELEMENT_'+function(_0x5c64fd){if(_e['includes'](_0x5c64fd))return'bulleted';if(Re['includes'](_0x5c64fd))return'numbered';return null;}(_0x4290ef)['toUpperCase']()+'_LIST_'+_0x4290ef['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x647c34{['afterInit'](){const _0x123e44=this['editor'];_0x123e44['commands']['get']('emoji')&&_0x123e44['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x647c34{static get['requires'](){return[_0x47cf41];}['init'](){const _0x253aea=this['editor'],_0x2eefed=_0x253aea['plugins']['get']('TrackChangesEditing'),_0x19e6a0=_0x253aea['commands']['get']('enter');_0x2eefed['enableCommand']('enter',()=>{_0x253aea['model']['change'](_0x4892a3=>{const _0x207074=_0x253aea['model']['document']['selection'],_0x4f0488=_0x207074['getFirstPosition'](),_0x87bb1e=_0x48b32a['fromRange'](_0x207074['getFirstRange']());if(_0x19e6a0['enterBlock'](_0x4892a3)){const _0x83da4f=_0x253aea['model']['createPositionAt'](_0x4f0488['parent']['nextSibling'],0x0),_0x4b6fd8=_0x4892a3['createRange'](_0x4f0488,_0x83da4f);_0x2eefed['markInsertion'](_0x4b6fd8);}else _0x4892a3['setSelection'](_0x4892a3['createRange'](_0x87bb1e['end']));_0x87bb1e['detach'](),_0x19e6a0['fire']('afterExecute',{'writer':_0x4892a3});});}),_0x253aea['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x253aea,'split'),{'priority':'high'}),_0x253aea['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x30927b,_0x5622ae,_0x15f6e2)=>{const _0x16ae78=_0x15f6e2['mapper']['markerNameToElements'](_0x5622ae['markerName']);if(_0x16ae78){for(const _0x276140 of _0x16ae78)_0x276140['hasClass']('ck-suggestion-marker-split')&&(_0x15f6e2['mapper']['unbindElementFromMarkerName'](_0x276140,_0x5622ae['markerName']),_0x15f6e2['writer']['remove'](_0x276140));}},{'priority':'high'}),_0x253aea['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3f0f7f,_0x4020b0,_0x50682d)=>{_0x50682d['options']['showSuggestionHighlights']&&De(_0x253aea,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3f0f7f,_0x4020b0,_0x50682d);},{'priority':'high'});}}class Z extends _0x647c34{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x43975d=this['editor']['plugins']['get']('TrackChangesEditing');_0x43975d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x43975d['enableCommand']('findNext'),_0x43975d['enableCommand']('findPrevious'),_0x43975d['enableCommand']('replace'),_0x43975d['enableCommand']('replaceAll');}['handleFindCommand'](_0x5f40de,_0x1e772f,_0x2c9d97={}){const _0x4a205d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5f40de(_0x20df1e=>{let _0x1a6ba7=('string'==typeof _0x1e772f?_0x4a205d['findByTextCallback'](_0x1e772f,_0x2c9d97):_0x1e772f)(_0x20df1e);Array['isArray'](_0x1a6ba7)&&(_0x1a6ba7={'results':_0x1a6ba7,'searchText':'string'==typeof _0x1e772f?_0x1e772f:''});const _0x3f961f=_0x1a6ba7['results']['filter'](_0x3eb25a=>!0x1===this['_isInDeletionRange'](_0x3eb25a,_0x20df1e['item']));return{..._0x1a6ba7,'results':_0x3f961f};},_0x2c9d97);}['_isInDeletionRange'](_0x50f3d4,_0x1accd4){const _0x1b5d1a=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1accd4,_0x50f3d4['start']),this['editor']['model']['createPositionAt'](_0x1accd4,_0x50f3d4['end']));for(const _0x10b665 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1b5d1a['getIntersection'](_0x10b665['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x647c34{['afterInit'](){const _0x45588c=this['editor']['locale'],_0x28dcd8=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xfeea36,commandName:_0x107142}of ro)this['editor']['plugins']['has'](_0xfeea36)&&(_0x28dcd8['enableDefaultAttributesIntegration'](_0x107142),_0x28dcd8['registerInlineAttribute'](_0x107142));_0x28dcd8['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x45588c,'FORMAT_FONT_SIZE')),_0x28dcd8['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x45588c,'FORMAT_FONT_FAMILY')),_0x28dcd8['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x45588c,'FORMAT_FONT_COLOR')),_0x28dcd8['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x45588c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x264c19=this['editor'],_0x189743=_0x264c19['locale'];_0x264c19['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x520aef=>{const _0x1c95ac=_0x189743['t'];if('formatInline'!=_0x520aef['type'])return;const {data:_0x4d4b6e}=_0x520aef;if(null!=_0x4d4b6e){if('fontSize'==_0x4d4b6e['commandName']){const _0x2bcc04=_0x4d4b6e['commandParams'][0x0]['value'];if(_0x2bcc04){const _0x4c1e5a=_0x1c95ac(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4fbe2d=>_0x4fbe2d['model']==_0x2bcc04)['title'])['toLowerCase']();return{'type':'format','content':o(_0x189743,'*Set\x20font\x20size:*\x20%0',_0x4c1e5a)};}return{'type':'format','content':o(_0x189743,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4d4b6e['commandName']){const _0x21f136=_0x4d4b6e['commandParams'][0x0]['value'];return _0x21f136?{'type':'format','content':o(_0x189743,'*Set\x20font\x20family:*\x20%0',_0x21f136)}:{'type':'format','content':o(_0x189743,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4d4b6e['commandName']){const _0x35ad23=_0x4d4b6e['commandParams'][0x0]['value'];if(_0x35ad23){const _0x28fa71=_0x1f86d1(this['editor']['config']['get']('fontColor.colors'))['find'](_0x52f53d=>_0x52f53d['model']==_0x35ad23);let _0x1678c8=_0x35ad23,_0x963b11='';return _0x28fa71&&(_0x1678c8=_0x28fa71['label'],_0x963b11=_0x1c95ac(_0x1678c8)['toLowerCase']()),{'type':'format','content':o(_0x189743,'*Set\x20font\x20color:*\x20%0',_0x963b11)['trim'](),'color':{'value':_0x35ad23,'title':_0x963b11||_0x1678c8}};}return{'type':'format','content':o(_0x189743,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4d4b6e['commandName']){const _0x3d0cbb=_0x4d4b6e['commandParams'][0x0]['value'];if(_0x3d0cbb){const _0x2ed7e5=_0x1f86d1(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x14d877=>_0x14d877['model']==_0x3d0cbb);let _0x1722af=_0x3d0cbb,_0x4876d0='';return _0x2ed7e5&&(_0x1722af=_0x2ed7e5['label'],_0x4876d0=_0x1c95ac(_0x1722af)['toLowerCase']()),{'type':'format','content':o(_0x189743,'*Set\x20font\x20background\x20color:*\x20%0',_0x4876d0)['trim'](),'color':{'value':_0x3d0cbb,'title':_0x4876d0||_0x1722af}};}return{'type':'format','content':o(_0x189743,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x647c34{['afterInit'](){const _0x32f3d7=this['editor'],_0x22cd04=_0x32f3d7['plugins']['get']('TrackChangesEditing'),_0x3f5beb=_0x32f3d7['commands']['get']('copyFormat'),_0x238750=_0x32f3d7['commands']['get']('pasteFormat');_0x3f5beb&&_0x238750&&(_0x22cd04['enableDefaultAttributesIntegration']('pasteFormat'),_0x22cd04['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1ae30e=this['editor'],_0xa240c8=_0x1ae30e['locale'];_0x1ae30e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2767b6=>{if('formatBlock'!=_0x2767b6['type']&&'formatInline'!=_0x2767b6['type'])return;const {data:_0xab2321}=_0x2767b6;if(_0xab2321&&'pasteFormat'===_0xab2321['commandName']){const _0x5a5601=[],_0x1f194c=_0xab2321['commandParams'][0x0];for(const [_0x44ef8d,_0x2b2e35]of Object['entries'](_0x1f194c))_0x5a5601['push'](so(_0x1ae30e,_0x44ef8d,_0x2b2e35));return _0x5a5601['length']?{'type':'format','content':o(_0xa240c8,'*Set\x20format\x20to:*\x20%0',_0x5a5601['join'](',\x20'))}:{'type':'format','content':o(_0xa240c8,'*Remove\x20all\x20formatting*')};}});}}function so(_0x152340,_0x381c8d,_0x364199){const _0x519329=_0x152340['locale']['t'],_0x598208=_0x381c8d['split'](/(?=[A-Z])/)['join']('\x20'),_0x59650b=_0x519329(_0x598208['charAt'](0x0)['toUpperCase']()+_0x598208['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x364199)return _0x59650b;if('fontColor'===_0x381c8d||'fontBackgroundColor'===_0x381c8d){const _0x29d9dc=_0x1f86d1(_0x152340['config']['get']('fontColor.colors'))['find'](_0x5b33fb=>_0x5b33fb['model']==_0x364199);return _0x59650b+'\x20('+(_0x29d9dc?_0x519329(_0x29d9dc['label'])['toLowerCase']():_0x364199)+')';}if('fontSize'===_0x381c8d&&isNaN(parseFloat(_0x364199))){const _0x1b26b7=_0x152340['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x152340['config']['get']('fontSize.options'))['find'](_0x4f9b3d=>_0x4f9b3d['model']==_0x364199);return _0x59650b+'\x20('+(_0x1b26b7?_0x519329(_0x1b26b7['title'])['toLowerCase']():_0x364199)+')';}return _0x59650b+'\x20('+_0x364199+')';}class it extends _0x647c34{['_headingOptions'];['afterInit'](){const _0x40ea65=this['editor'];if(!_0x40ea65['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x40ea65['config']['get']('heading.options');const _0x42542e=_0x40ea65['locale'],_0x4c1eaf=_0x40ea65['plugins']['get']('TrackChangesEditing');_0x4c1eaf['enableDefaultAttributesIntegration']('heading');for(const _0x1ee09d of this['_headingOptions'])'paragraph'!=_0x1ee09d['model']&&_0x4c1eaf['descriptionFactory']['registerElementLabel'](_0x1ee09d['model'],_0x487230=>{const _0x2c8c0a=this['_getHeadingLevel'](_0x1ee09d['model']);return null!==_0x2c8c0a?_0x568b59(_0x487230,_0x2c8c0a):_0x2bdc3f(_0x487230,_0x1ee09d['title']);});function _0x568b59(_0x364e05,_0x307fb2){return o(_0x42542e,'ELEMENT_HEADING',[_0x364e05,_0x307fb2]);}function _0x2bdc3f(_0x3bdbcb,_0x1c292a){return o(_0x42542e,'ELEMENT_HEADING_CUSTOM',[_0x3bdbcb,_0x1c292a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58c44e=this['editor'],_0x5be890=_0x58c44e['locale'];function _0xc5ee63(_0x417a56,_0x393614){return o(_0x5be890,'ELEMENT_HEADING_CUSTOM',[_0x417a56,_0x393614]);}_0x58c44e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52cc2c=>{if('formatBlock'!=_0x52cc2c['type'])return;const {data:_0x1100f8}=_0x52cc2c;if(_0x1100f8&&'heading'==_0x1100f8['commandName']){const _0x11c125=_0x1100f8['commandParams'][0x0]['value'],_0x451fca=this['_getHeadingLevel'](_0x11c125);if(null!==_0x451fca)return{'type':'format','content':o(_0x5be890,'*Change\x20to:*\x20%0',(_0x2b8760=0x1,_0x2aa87e=_0x451fca,o(_0x5be890,'ELEMENT_HEADING',[_0x2b8760,_0x2aa87e])))};const _0x5145c7=this['_headingOptions']['find'](_0x35b2fd=>_0x35b2fd['model']===_0x11c125)['title'];return{'type':'format','content':o(_0x5be890,'*Change\x20to:*\x20%0',_0xc5ee63(0x1,_0x5145c7))};}var _0x2b8760,_0x2aa87e;});}['_getHeadingLevel'](_0x3a6fac){const _0x13e9a9=_0x3a6fac['match'](/^heading(\d+)/);if(_0x13e9a9)return _0x13e9a9[0x1];const _0x2d607f=this['_headingOptions']?.['find'](_0x26f1eb=>_0x26f1eb['model']==_0x3a6fac);if(_0x2d607f&&_0x2d607f['view']){const _0x3a3f45=_0x2d607f['view'],_0x1472fc=(_0x3a3f45['name']??_0x3a3f45)['match'](/^h(\d+)/);if(_0x1472fc)return _0x1472fc[0x1];}return null;}}class et extends _0x647c34{['afterInit'](){const _0x1146f8=this['editor'];if(!_0x1146f8['plugins']['has']('HighlightEditing'))return;const _0x4d4d26=_0x1146f8['plugins']['get']('TrackChangesEditing'),_0x2ef338=_0x1146f8['locale'];_0x4d4d26['enableDefaultAttributesIntegration']('highlight'),_0x4d4d26['registerInlineAttribute']('highlight'),_0x4d4d26['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2ef338,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52b47f=this['editor'],_0x33fd1e=_0x52b47f['locale'];_0x52b47f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x363532=>{if('formatInline'!=_0x363532['type'])return;const {data:_0x5db6ec}=_0x363532;if(_0x5db6ec&&'highlight'==_0x5db6ec['commandName']){const _0x3315d9=_0x33fd1e['t'],_0x4079c6=_0x5db6ec['commandParams'][0x0]['value'];if(_0x4079c6){const _0x49b3d2=_0x52b47f['config']['get']('highlight.options')['find'](_0xf8e0db=>_0xf8e0db['model']==_0x4079c6),_0x3346bc=_0x3315d9(_0x49b3d2['title'])['toLowerCase']();return{'type':'format','content':o(_0x33fd1e,'*Set\x20highlight:*\x20%0',_0x3346bc),'color':{'value':_0x49b3d2['color'],'title':_0x49b3d2['title']}};}return{'type':'format','content':o(_0x33fd1e,'*Remove\x20highlight*',o(_0x33fd1e,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x647c34{['afterInit'](){const _0x253b3b=this['editor'];if(!_0x253b3b['plugins']['has']('HorizontalLineEditing'))return;_0x253b3b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x50ea1a=_0x253b3b['plugins']['get']('TrackChangesEditing'),_0xf03deb=_0x253b3b['locale'];_0x50ea1a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5bd016=>o(_0xf03deb,'ELEMENT_HORIZONTAL_LINE',_0x5bd016)),_0x253b3b['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5db7ff,{writer:_0x12d006,options:_0x26ecfc})=>{if(!_0x26ecfc['showSuggestionHighlights'])return null;const _0x48106e=_0x12d006['createContainerElement']('div'),_0xb97d32=_0x12d006['createEmptyElement']('hr');return _0x12d006['addClass']('ck-horizontal-line',_0x48106e),_0x12d006['insert'](_0x12d006['createPositionAt'](_0x48106e,0x0),_0xb97d32),_0x48106e;},'converterPriority':'high'});}}class ot extends _0x647c34{['afterInit'](){const _0x3d43ee=this['editor'];if(!_0x3d43ee['plugins']['has']('HtmlEmbed'))return;const _0x1b24d6=_0x3d43ee['plugins']['get']('TrackChangesEditing'),_0xe5b40b=_0x3d43ee['locale'];_0x1b24d6['descriptionFactory']['registerElementLabel']('rawHtml',_0x561de2=>o(_0xe5b40b,'ELEMENT_HTML_EMBED',_0x561de2)),_0x1b24d6['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1b24d6['registerBlockAttribute']('value'),_0x1b24d6['descriptionFactory']['registerDescriptionCallback'](_0x2356e2=>{if('attribute'!=_0x2356e2['type'])return;const {data:_0x420b73}=_0x2356e2;if(_0x420b73&&'value'==_0x420b73['key']&&_0x2356e2['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x131554=o(_0xe5b40b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xe5b40b,'*Change\x20%0\x20content*',_0x131554)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cefcf=this['editor'],_0x35add5=_0x5cefcf['locale'];_0x5cefcf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cdae3=>{if('formatBlock'!=_0x1cdae3['type'])return;const {data:_0x183a58}=_0x1cdae3;if(_0x183a58&&'htmlEmbed'==_0x183a58['commandName']){const _0x446af4=o(_0x35add5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x35add5,'*Change\x20%0\x20content*',_0x446af4)};}});}}class rt extends _0x647c34{['afterInit'](){const _0x2a21e7=this['editor'];if(!_0x2a21e7['plugins']['has']('ImageEditing'))return;const _0x26a199=_0x2a21e7['plugins']['get']('TrackChangesEditing'),_0x4bf156=_0x2a21e7['plugins']['get']('ImageUtils'),_0x4adf42=_0x2a21e7['locale'];_0x26a199['enableCommand']('insertImage'),_0x26a199['descriptionFactory']['registerElementLabel']('imageBlock',_0x5b5e95=>o(_0x4adf42,'ELEMENT_IMAGE',_0x5b5e95)),_0x26a199['descriptionFactory']['registerElementLabel']('imageInline',_0xa2890d=>o(_0x4adf42,'ELEMENT_INLINE_IMAGE',_0xa2890d)),_0x26a199['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4adf42,'ELEMENT_CAPTION')),_0x2a21e7['plugins']['has']('ImageUploadEditing')&&_0x26a199['enableCommand']('uploadImage'),_0x2a21e7['plugins']['has']('ImageBlockEditing')&&_0x2a21e7['plugins']['has']('ImageInlineEditing')&&(_0x26a199['enableCommand']('imageTypeInline',(_0x36973f,_0xf3e8b9)=>{const _0x5532b8=_0x4bf156['getClosestSelectedImageElement'](_0x2a21e7['model']['document']['selection']);_0x2a21e7['model']['change'](()=>{_0x26a199['markBlockFormat'](_0x5532b8,{'commandName':'imageTypeInline','commandParams':[_0xf3e8b9]},[],'convertBlockImageToInline');});}),_0x26a199['enableCommand']('imageTypeBlock',(_0x48e589,_0x3103ad)=>{_0x2a21e7['model']['change'](_0x49ef43=>{let _0x304ab8=_0x4bf156['getClosestSelectedImageElement'](_0x2a21e7['model']['document']['selection']),_0x1d2a00=_0x49ef43['createRangeOn'](_0x304ab8);const _0x1e840f=_0xf8c667['fromPosition'](_0x1d2a00['start'],'toPrevious'),_0x4a6d21=_0xf8c667['fromPosition'](_0x1d2a00['end'],'toNext');_0x26a199['forceDefaultExecution'](()=>_0x48e589(_0x3103ad)),_0x304ab8=_0x4bf156['getClosestSelectedImageElement'](_0x2a21e7['model']['document']['selection']),_0x1d2a00=_0x49ef43['createRangeOn'](_0x304ab8);const _0x45c519=_0x49ef43['createRange'](_0x1e840f,_0x4a6d21);_0x1e840f['detach'](),_0x4a6d21['detach'](),_0x26a199['markBlockFormat'](_0x304ab8,{'commandName':'imageTypeInline','commandParams':[_0x3103ad]},[],'convertInlineImageToBlock'),_0x45c519['start']['isBefore'](_0x1d2a00['start'])&&_0x26a199['markInsertion'](_0x49ef43['createRange'](_0x45c519['start'],_0x1d2a00['start']),'convertInlineImageToBlock'),_0x1d2a00['end']['isBefore'](_0x45c519['end'])&&_0x26a199['markInsertion'](_0x49ef43['createRange'](_0x1d2a00['end'],_0x45c519['end']),'convertInlineImageToBlock');});}),_0x26a199['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x26a199['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x26a199['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x26a199['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x26a199['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x26a199['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x543c7c])=>{const _0x143236=_0x26a199['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3674aa=_0x543c7c['start'],_0x1b34c9=_0x543c7c['end'];const _0x41e003=_0x2a21e7['model']['schema']['getNearestSelectionRange'](_0x3674aa,'backward'),_0x3967b4=_0x2a21e7['model']['schema']['getNearestSelectionRange'](_0x1b34c9,'forward');_0x41e003['isCollapsed']&&(_0x3674aa=_0x41e003['start']),_0x3967b4['isCollapsed']&&(_0x1b34c9=_0x3967b4['end']),_0x143236([_0x2a21e7['model']['createRange'](_0x3674aa,_0x1b34c9)]);}),_0x26a199['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4f43f8),_0x26a199['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4f43f8)),_0x2a21e7['plugins']['has']('ImageCaptionEditing')&&(_0x26a199['enableCommand']('toggleImageCaption',(_0x5c422b,_0x198f3d)=>{const _0x223598=_0x2a21e7['plugins']['get']('ImageCaptionUtils');let _0x5127f9=_0x4bf156['getClosestSelectedImageElement'](_0x2a21e7['model']['document']['selection']),_0x3c86aa=_0x223598['getCaptionFromImageModelElement'](_0x5127f9);_0x2a21e7['model']['change'](()=>{if(_0x3c86aa)return void _0x26a199['markDeletion'](_0x2a21e7['model']['createRangeOn'](_0x3c86aa));const _0x2d2697=_0x4bf156['isBlockImage'](_0x5127f9);_0x5c422b(_0x198f3d),_0x5127f9=_0x4bf156['getClosestSelectedImageElement'](_0x2a21e7['model']['document']['selection']),_0x3c86aa=_0x223598['getCaptionFromImageModelElement'](_0x5127f9),_0x26a199['markInsertion'](_0x2a21e7['model']['createRangeOn'](_0x3c86aa),_0x2d2697?null:'imageCaption');});}),_0x26a199['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4f43f8));const _0x4185b2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x43bdfb(_0x2f806c,_0x219878){const _0x35e6f3=_0x4185b2['findIndex'](({type:_0x4dee9b,subType:_0x46e25c})=>_0x2f806c['type']==_0x4dee9b&&_0x2f806c['subType']==_0x46e25c),_0x8a7a74=_0x4185b2['findIndex'](({type:_0x33b10b,subType:_0x3b4d2f})=>_0x219878['type']==_0x33b10b&&_0x219878['subType']==_0x3b4d2f);if(_0x35e6f3<0x0||_0x8a7a74<0x0)return!0x1;const _0x35fc44=_0x2f806c['getFirstRange'](),_0x1d8a90=_0x219878['getFirstRange']();if((0x0==_0x35e6f3||0x1==_0x35e6f3)&&0x2==_0x8a7a74&&_0x35fc44['isIntersecting'](_0x1d8a90))return!0x0;if(0x2==_0x35e6f3&&0x3==_0x8a7a74){const _0xe2a985=_0x26a199['_findSuggestions'](_0x35fc44,'insertion')['filter'](({suggestion:_0x5172f8,meta:_0x2d7c5f})=>_0x2d7c5f['isOwn']&&'convertInlineImageToBlock'==_0x5172f8['subType']);if(_0xe2a985['length']>0x1&&_0x1d8a90['end']['isEqual'](_0x35fc44['start']))return!0x0;if(0x1==_0xe2a985['length']&&(_0x35fc44['start']['isEqual'](_0x1d8a90['end'])||_0x35fc44['end']['isEqual'](_0x1d8a90['start'])))return!0x0;}if(0x3==_0x35e6f3&&0x3==_0x8a7a74&&_0x35fc44['start']['isBefore'](_0x1d8a90['start'])){const _0x1c6caf=_0x35fc44['end']['nodeAfter'],_0x22af8f=_0x1d8a90['start']['nodeBefore'];return _0x4bf156['isBlockImage'](_0x1c6caf)&&_0x1c6caf===_0x22af8f;}return!0x1;}function _0x4f43f8(_0x2928c3,_0x4078ef){return _0x43bdfb(_0x2928c3,_0x4078ef)?[_0x2928c3,_0x4078ef]:_0x43bdfb(_0x4078ef,_0x2928c3)?[_0x4078ef,_0x2928c3]:null;}_0x2a21e7['plugins']['has']('ImageResize')&&(_0x26a199['enableDefaultAttributesIntegration']('resizeImage'),_0x26a199['registerBlockAttribute']('resizedWidth'),_0x26a199['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4adf42,'FORMAT_IMAGE_SIZE'))),_0x2a21e7['plugins']['has']('ImageTextAlternativeEditing')&&(_0x26a199['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x26a199['registerBlockAttribute']('alt')),_0x2a21e7['plugins']['has']('PictureEditing')&&(_0x26a199['registerBlockAttribute']('sources'),_0x26a199['descriptionFactory']['registerDescriptionCallback'](_0x2b615f=>{if('attribute'!=_0x2b615f['type'])return;const {data:_0x554f94}=_0x2b615f;return _0x554f94&&'sources'==_0x554f94['key']?{'type':'format','content':''}:void 0x0;})),_0x2a21e7['plugins']['has']('ImageSizeAttributes')&&(_0x26a199['registerBlockAttribute']('width'),_0x26a199['registerBlockAttribute']('height'),_0x26a199['descriptionFactory']['registerDescriptionCallback'](_0x4c7f1b=>{if('attribute'!=_0x4c7f1b['type'])return;const {data:_0x59bbf3}=_0x4c7f1b;return!_0x59bbf3||'width'!=_0x59bbf3['key']&&'height'!=_0x59bbf3['key']?void 0x0:{'type':'format','content':''};})),_0x26a199['descriptionFactory']['registerDescriptionCallback'](_0x5818fa=>{if(!!_0x4185b2['find'](({type:_0x38cedc,subType:_0x262b8a})=>_0x5818fa['type']==_0x38cedc&&_0x5818fa['subType']==_0x262b8a))return _0x5818fa['previous']?{}:void 0x0;}),_0x26a199['descriptionFactory']['registerDescriptionCallback'](_0x37579a=>{if('insertion'==_0x37579a['type']||'deletion'==_0x37579a['type']){const _0x206ee2=_0x37579a['getContainedElement']();if(_0x206ee2&&_0x206ee2['is']('element','caption'))return{'type':'insertion'==_0x37579a['type']?'addObject':'removeObject','element':_0x206ee2,'quantity':0x1};}}),_0x26a199['descriptionFactory']['registerDescriptionCallback'](_0x21f7c5=>'formatBlock'==_0x21f7c5['type']&&'convertInlineImageToBlock'==_0x21f7c5['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x21f7c5['type']&&'convertBlockImageToInline'==_0x21f7c5['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x26a199['descriptionFactory']['registerDescriptionCallback'](_0x68ca92=>{if('attribute'!=_0x68ca92['type'])return;const {data:_0x44bd49}=_0x68ca92;if(!_0x44bd49||'alt'!=_0x44bd49['key'])return;const _0x17dcdf=_0x44bd49['newValue'];return _0x17dcdf?{'type':'format','content':o(_0x4adf42,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x17dcdf+'\x22')}:{'type':'format','content':o(_0x4adf42,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xff32f9=this['editor'],_0x3446c0=_0xff32f9['locale'];_0xff32f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52043a=>{if('formatBlock'!=_0x52043a['type']&&'formatInline'!=_0x52043a['type'])return;const {data:_0x2bb440}=_0x52043a;if(_0x2bb440){if('imageTextAlternative'==_0x2bb440['commandName']){const _0x4bba95=_0x2bb440['commandParams'][0x0]['newValue'];return _0x4bba95?{'type':'format','content':o(_0x3446c0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4bba95+'\x22')}:{'type':'format','content':o(_0x3446c0,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2bb440['commandName']){const _0x149b71=_0x2bb440['commandParams'][0x0]['width'];return _0x149b71?{'type':'format','content':o(_0x3446c0,'*Set\x20image\x20width:*\x20%0',_0x149b71)}:{'type':'format','content':o(_0x3446c0,'*Reset\x20image\x20width*')};}}});}}class at extends _0x647c34{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x12b856=this['editor']['locale'],_0x564f4d=this['editor']['plugins']['get']('TrackChangesEditing');_0x564f4d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x564f4d['registerBlockAttribute']('src'),_0x564f4d['descriptionFactory']['registerDescriptionCallback'](_0xb2b39b=>{if('attribute'!=_0xb2b39b['type'])return;const {data:_0x46df49}=_0xb2b39b;return _0x46df49&&'src'==_0x46df49['key']?_0x46df49['newValue']&&_0x46df49['oldValue']?{'type':'format','content':o(_0x12b856,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x43b224=this['editor']['plugins']['get']('TrackChangesEditing');_0x43b224['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x43b224['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x43b224['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x43b224['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13622c=this['editor'],_0x3ceb70=_0x13622c['locale'];_0x13622c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37b82b=>{if('formatBlock'!=_0x37b82b['type']&&'formatInline'!=_0x37b82b['type'])return;const {data:_0x588fe9}=_0x37b82b;if(!_0x588fe9||'replaceImageSource'!=_0x588fe9['commandName'])return;return{'type':'format','content':o(_0x3ceb70,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x647c34{['afterInit'](){const _0x161e83=this['editor'];if(!_0x161e83['plugins']['has']('ImageStyleEditing'))return;const _0x24298f=_0x161e83['plugins']['get']('TrackChangesEditing'),_0x1eef34=_0x161e83['plugins']['get']('ImageUtils'),_0xeb818d={};_0x24298f['enableCommand']('imageStyle',(_0x5858ef,_0x385afb)=>{const _0x5ed7f5=_0x161e83['plugins']['get']('Users')['me'],_0x5b4a13=_0x161e83['commands']['get']('imageStyle');let _0x664ee5=_0x1eef34['getClosestSelectedImageElement'](_0x161e83['model']['document']['selection']),_0xa61fe=_0x161e83['model']['createRangeOn'](_0x664ee5),_0x45361b=_0x5b4a13['value'];if(_0x45361b==_0x385afb['value'])return;const _0x3640fc={'commandName':'imageStyle','commandParams':[_0x385afb],'formatGroupId':_0x3c9712()};_0x161e83['model']['change'](()=>{if(_0x24298f['getSuggestions']()['filter'](_0x51b7f4=>_0x51b7f4['isInContent']&&_0x5ed7f5==_0x51b7f4['author']&&('formatBlock'==_0x51b7f4['type']||'formatInline'==_0x51b7f4['type'])&&('imageStylePreApply'==_0x51b7f4['subType']||'imageStylePostApply'==_0x51b7f4['subType'])&&_0x51b7f4['getFirstRange']()['isEqual'](_0xa61fe))['forEach'](_0x2b097c=>_0x24298f['discardSuggestion'](_0x2b097c['head'])),_0x664ee5=_0x1eef34['getClosestSelectedImageElement'](_0x161e83['model']['document']['selection']),_0xa61fe=_0x161e83['model']['createRangeOn'](_0x664ee5),_0x5b4a13['refresh'](),_0x161e83['commands']['get']('imageTypeInline')['refresh'](),_0x161e83['commands']['get']('imageTypeBlock')['refresh'](),_0x45361b=_0x5b4a13['value'],_0x45361b!=_0x385afb['value'])return _0x1eef34['isInlineImage'](_0x664ee5)&&_0x5b4a13['shouldConvertImageType'](_0x385afb['value'],_0x664ee5)?(_0x5858ef({..._0x385afb,'setImageSizes':!0x1}),_0x664ee5=_0x1eef34['getClosestSelectedImageElement'](_0x161e83['model']['document']['selection']),void _0x24298f['markBlockFormat'](_0x664ee5,{..._0x3640fc,'commandReversedParams':[{'value':_0x45361b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1eef34['isBlockImage'](_0x664ee5)?_0x24298f['markBlockFormat'](_0x664ee5,_0x3640fc,[],'imageStylePostApply'):_0x24298f['markInlineFormat'](_0xa61fe,_0x3640fc,'imageStylePostApply'));});});for(const _0x18de2e of _0x161e83['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xeb818d[_0x18de2e['name']]=_0x18de2e['title']['toLowerCase']();_0x24298f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x24298f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x24298f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x24298f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4ef913])=>{_0x1eef34['setImageNaturalSizeAttributes'](_0x4ef913['getContainedElement']());}),_0x24298f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x173428,_0x206796)=>{_0x24298f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x173428,{'commandName':_0x206796['commandName'],'commandParams':_0x206796['commandReversedParams']});}),_0x24298f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3cdee2,_0x59952b){if(_0x543047(_0x3cdee2,_0x59952b))return[_0x3cdee2,_0x59952b];if(_0x543047(_0x59952b,_0x3cdee2))return[_0x59952b,_0x3cdee2];return null;});const _0x8d5629=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x543047(_0x30a019,_0xe80f5d){const _0x4e75b8=_0x8d5629['findIndex'](({type:_0x591c97,subType:_0x3bab11})=>_0x30a019['type']==_0x591c97&&_0x30a019['subType']==_0x3bab11),_0x41b9b4=_0x8d5629['findIndex'](({type:_0x2812ac,subType:_0x100033})=>_0xe80f5d['type']==_0x2812ac&&_0xe80f5d['subType']==_0x100033);if(_0x4e75b8<0x0||_0x41b9b4<0x0)return!0x1;const _0x286cc3=_0x30a019['getFirstRange'](),_0x1f25ff=_0xe80f5d['getFirstRange']();if((0x0==_0x4e75b8||0x1==_0x4e75b8)&&0x2==_0x41b9b4&&_0x286cc3['isIntersecting'](_0x1f25ff))return!0x0;if(0x2==_0x4e75b8&&0x3==_0x41b9b4){const _0x279a15=_0x24298f['_findSuggestions'](_0x286cc3,'insertion')['filter'](({suggestion:_0x392e3b,meta:_0x13ec1d})=>_0x13ec1d['isOwn']&&'convertInlineImageToBlock'==_0x392e3b['subType']);if(_0x279a15['length']>0x1&&_0x1f25ff['end']['isEqual'](_0x286cc3['start']))return!0x0;if(0x1==_0x279a15['length']&&(_0x286cc3['start']['isEqual'](_0x1f25ff['end'])||_0x286cc3['end']['isEqual'](_0x1f25ff['start'])))return!0x0;}if(0x3==_0x4e75b8&&0x3==_0x41b9b4&&_0x286cc3['start']['isBefore'](_0x1f25ff['start'])){const _0x3a278c=_0x286cc3['end']['nodeAfter'],_0x870985=_0x1f25ff['start']['nodeBefore'];return _0x1eef34['isBlockImage'](_0x3a278c)&&_0x3a278c===_0x870985;}return!0x1;}_0x161e83['model']['document']['registerPostFixer'](()=>{let _0x37ffa5=!0x1;const _0x13bcc5=Array['from'](_0x161e83['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x475cbb,data:_0x4736b4}of _0x13bcc5){const {group:_0x3c703c,type:_0x2fd8b2,subType:_0x233488,id:_0x3ed5f6}=_0x24298f['_splitMarkerName'](_0x475cbb);if('suggestion'==_0x3c703c&&_0x24298f['hasSuggestion'](_0x3ed5f6)){if('formatBlock'==_0x2fd8b2&&('imageStylePreApply'==_0x233488||'imageStylePostApply'==_0x233488)){const _0x4b351a=_0x24298f['getSuggestion'](_0x3ed5f6);if(_0x4736b4['newRange']){const _0x1a903c=_0x4b351a['getFirstRange']()['getContainedElement']();if(_0x1eef34['isBlockImage'](_0x1a903c))continue;_0x24298f['discardSuggestion'](_0x4b351a),_0x37ffa5=!0x0;}}if('insertion'==_0x2fd8b2&&'imageCaption'==_0x233488&&!_0x4736b4['newRange']){const _0x403bc4=_0x24298f['getSuggestion'](_0x3ed5f6);_0x403bc4['next']&&_0x403bc4['next']['isInContent']&&(_0x24298f['discardSuggestion'](_0x403bc4['next']),_0x37ffa5=!0x0);}}}return _0x37ffa5;}),this['_registerLegacyDescription'](_0xeb818d);}['_registerLegacyDescription'](_0xa5cb3f){const _0x2fc448=this['editor'],_0x47a840=_0x2fc448['locale'];_0x2fc448['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4dce1b=>{if('formatBlock'!=_0x4dce1b['type']&&'formatInline'!=_0x4dce1b['type'])return;const {data:_0x5c333f}=_0x4dce1b;if(!_0x5c333f||'imageStyle'!=_0x5c333f['commandName'])return;const _0x3f7481=_0x5c333f['commandParams'][0x0]['value'];return _0x108446('side'===_0x3f7481?o(_0x47a840,'FORMAT_SIDE_IMAGE'):_0xa5cb3f[_0x3f7481]||_0x3f7481);function _0x108446(_0x236bf9){return{'type':'format','content':o(_0x47a840,'*Format:*\x20%0',_0x236bf9)};}});}}class ut extends _0x647c34{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xfe17b){super(_0xfe17b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5b9b03=this['editor'],_0x538e76=_0x5b9b03['commands']['get']('importWord'),_0x1d4f55=_0x5b9b03['commands']['get']('trackChanges');_0x538e76&&(_0x538e76['on']('execute',(_0x507396,[,_0xdd70ab])=>{this['_trackChangesValueDuringImport']=_0x1d4f55['value'],_0xdd70ab['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x538e76,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x538e76,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1d4f55['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5b9b03['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3795d5,_0x3f5636){const {suggestions:_0x2c115d}=_0x3f5636,_0x33b837=this['editor']['commands']['get']('trackChanges'),_0x5a6a97=_0x33b837['value'];this['_trackChangesValueDuringImport']!==_0x5a6a97&&(_0x33b837['execute'](),this['_trackChangesExecuted']=!0x0),_0x2c115d&&_0x2c115d['forEach'](({id:_0x46f7e2,type:_0x39a5c5,author:_0x4eb8c5,created_at:_0x420b25})=>{const _0x30674a={'id':_0x46f7e2,'type':_0x39a5c5,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4eb8c5,'createdAt':_0x420b25?new Date(_0x420b25):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x30674a);});}}class ft extends _0x647c34{['afterInit'](){const _0x341630=this['editor'],_0x5291f8=_0x341630['plugins']['get']('TrackChangesEditing');if(_0x341630['plugins']['has']('IndentEditing')&&(_0x5291f8['enableCommand']('indent'),_0x5291f8['enableCommand']('outdent')),_0x341630['plugins']['has']('IndentBlock')){for(const _0x771933 of['indentBlock','outdentBlock'])_0x5291f8['enableDefaultAttributesIntegration'](_0x771933);}const _0xeede5d=_0x341630['locale'];_0x5291f8['registerBlockAttribute']('blockIndent'),_0x5291f8['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xeede5d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdc18de=this['editor'],_0x190b8e=_0xdc18de['locale'],_0x2de6bf=_0xdc18de['plugins']['get']('TrackChangesEditing');_0x2de6bf['descriptionFactory']['registerDescriptionCallback'](_0x4ff4be=>{if('formatBlock'!=_0x4ff4be['type'])return;const {data:_0x57d55a}=_0x4ff4be;if(!_0x57d55a)return;if('indentBlock'!=_0x57d55a['commandName']&&'outdentBlock'!=_0x57d55a['commandName'])return;const _0x4b5bae=_0x4ff4be['getItems']()[0x0],_0x464c32=_0x2de6bf['descriptionFactory']['getItemLabel'](_0x4b5bae);return'indentBlock'==_0x57d55a['commandName']?{'type':'format','content':o(_0x190b8e,'*Indent:*\x20%0',_0x464c32)}:'outdentBlock'==_0x57d55a['commandName']?{'type':'format','content':o(_0x190b8e,'*Outdent:*\x20%0',_0x464c32)}:void 0x0;});}}class ht extends _0x647c34{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x647c34{['afterInit'](){const _0x45d736=this['editor'];if(!_0x45d736['plugins']['has']('LinkEditing'))return;const _0x21ab72=_0x45d736['plugins']['get']('TrackChangesEditing'),_0x21747c=_0x45d736['commands']['get']('link');_0x21ab72['enableDefaultAttributesIntegration']('link'),_0x21ab72['enableDefaultAttributesIntegration']('unlink'),_0x21ab72['registerInlineAttribute']('linkHref');for(const _0x33ce2a of _0x21747c['manualDecorators'])_0x21ab72['registerInlineAttribute'](_0x33ce2a['id']),_0x21ab72['descriptionFactory']['registerAttributeLabel'](_0x33ce2a['id'],'link\x20('+_0x33ce2a['label']['toLowerCase']()+')');_0x21ab72['descriptionFactory']['registerDescriptionCallback'](_0x45024d=>{if('attribute'!=_0x45024d['type'])return;const {data:_0x4bd8f9}=_0x45024d;if(!_0x4bd8f9||'linkHref'!=_0x4bd8f9['key'])return;const _0x514db3=_0x4bd8f9['newValue'],_0x287cc6=_0x45d736['locale'];return{'type':'format','content':null==_0x514db3?o(_0x287cc6,'*Remove\x20link*'):o(_0x287cc6,'*Set\x20link:*\x20%0','\x22'+_0x514db3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f3e1c=this['editor'],_0x4f7893=_0x2f3e1c['locale'];_0x2f3e1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x132dad=>{if('formatInline'!=_0x132dad['type'])return;const {data:_0x4303c1}=_0x132dad;if(_0x4303c1){if('link'==_0x4303c1['commandName']){const _0xd1e3c3=_0x4303c1['commandParams'][0x0];return{'type':'format','content':o(_0x4f7893,'*Set\x20link:*\x20%0','\x22'+_0xd1e3c3+'\x22')};}return'unlink'==_0x4303c1['commandName']?{'type':'format','content':o(_0x4f7893,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x647c34{['afterInit'](){const _0xe01df0=this['editor'],_0x31192a=_0xe01df0['locale'];if(!_0xe01df0['plugins']['has']('LegacyListEditing'))return;const _0x28dc52=_0xe01df0['plugins']['get']('TrackChangesEditing'),_0x4ca473=_0xe01df0['plugins']['has']('LegacyTodoListEditing');function _0x4eba8b(_0xbbcccc){return()=>{const _0x188639=_0xe01df0['model']['document']['selection'],_0x5306b7=_0xe01df0['commands']['get'](_0xbbcccc);if(_0x5306b7['value'])return void _0xe01df0['execute']('paragraph',{});const _0xca5d0e=_0xbbcccc['slice'](0x0,-0x4),_0x1c6bed=function(_0x22be3c,_0x288604,_0x290e54){let _0x271a22=Array['from'](_0x22be3c)['filter'](_0x13a104=>function(_0x166ef3,_0x5c0fe3){return _0x5c0fe3['checkChild'](_0x166ef3['parent'],'listItem')&&!_0x5c0fe3['isObject'](_0x166ef3);}(_0x13a104,_0x290e54));_0x271a22=_0x271a22['filter'](_0x576902=>!_0x576902['is']('element','listItem')||_0x576902['getAttribute']('listType')!=_0x288604);const _0x23fe42=new Set();for(const _0xe5ef11 of _0x271a22)_0xe5ef11['is']('element','listItem')?_0x23fe42['add'](Le(_0xe5ef11)):_0x23fe42['add'](_0xe5ef11);return Array['from'](_0x23fe42);}(_0x188639['getSelectedBlocks'](),_0xca5d0e,_0xe01df0['model']['schema']);_0xe01df0['model']['change'](()=>{for(const _0x21afa6 of _0x1c6bed)_0x28dc52['markBlockFormat'](_0x21afa6,{'commandName':_0xbbcccc,'commandParams':[{'forceValue':!_0x5306b7['value']}],'formatGroupId':'blockName'},Ee(_0x21afa6));});};}function _0x20f864(_0x2f4f6c){return()=>{const _0x102317=function(_0x1fc2c2){let _0x1cf137=Array['from'](_0x1fc2c2);const _0x4e56c4=_0x1cf137['findIndex'](_0x2b5b92=>'listItem'!=_0x2b5b92['name']);return _0x4e56c4>-0x1&&(_0x1cf137=_0x1cf137['slice'](0x0,_0x4e56c4)),_0x1cf137;}(_0xe01df0['model']['document']['selection']['getSelectedBlocks']()),_0x310a9a=_0xe01df0['model']['createRange'](_0xe01df0['model']['createPositionAt'](_0x102317[0x0],'before'),_0xe01df0['model']['createPositionAt'](_0x102317[_0x102317['length']-0x1],'end'));_0xe01df0['model']['change'](()=>{_0x28dc52['markBlockFormat'](_0x310a9a,{'commandName':_0x2f4f6c,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5d31ea){const _0x355685=new Set();for(const _0x2f651a of _0x5d31ea){let _0x5ba014=_0x2f651a['nextSibling'];for(;_0x5ba014&&_0x5ba014['getAttribute']('listIndent')>_0x2f651a['getAttribute']('listIndent');)_0x355685['add'](_0x5ba014),_0x5ba014=_0x5ba014['nextSibling'];}return Array['from'](_0x355685);}(_0x102317));});};}_0x28dc52['enableCommand']('numberedList',_0x4eba8b('numberedList')),_0x28dc52['enableCommand']('bulletedList',_0x4eba8b('bulletedList')),_0x4ca473&&_0x28dc52['enableCommand']('todoList',_0x4eba8b('todoList')),_0x28dc52['enableCommand']('indentList',_0x20f864('indentList')),_0x28dc52['enableCommand']('outdentList',_0x20f864('outdentList')),_0x4ca473&&_0x28dc52['enableCommand']('checkTodoList',()=>{const _0x503fa1=_0xe01df0['commands']['get']('checkTodoList'),_0x328687=Array['from'](_0x503fa1['_selectedElements']);_0x328687['filter'](_0x496f37=>_0x496f37['getAttribute']('todoListChecked')!=_0x503fa1['value']),_0xe01df0['model']['change'](()=>{for(const _0x46bda2 of _0x328687)_0x28dc52['markBlockFormat'](_0x46bda2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x503fa1['value']}]});});}),_0x28dc52['descriptionFactory']['registerElementLabel']('listItem',_0x2a44e3=>o(_0x31192a,'ELEMENT_LIST_ITEM',_0x2a44e3)),_0x28dc52['descriptionFactory']['registerDescriptionCallback'](_0x1d3419=>{if('formatBlock'!=_0x1d3419['type']&&'formatInline'!=_0x1d3419['type'])return;const {data:_0x3ade07}=_0x1d3419;if(_0x3ade07){if('numberedList'==_0x3ade07['commandName']||'bulletedList'==_0x3ade07['commandName']||'todoList'==_0x3ade07['commandName'])switch(_0x3ade07['commandName']['replace']('List','')){case'bulleted':return _0x25ffbf(o(_0x31192a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x25ffbf(o(_0x31192a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x25ffbf(o(_0x31192a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3ade07['commandName'])return{'type':'format','content':o(_0x31192a,'*Indent:*\x20%0',o(_0x31192a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3ade07['commandName'])return{'type':'format','content':o(_0x31192a,'*Outdent:*\x20%0',o(_0x31192a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3ade07['commandName'])return _0x3ade07['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x31192a,'*Check\x20item*')}:{'type':'format','content':o(_0x31192a,'*Uncheck\x20item*')};}function _0x25ffbf(_0xecb317){return{'type':'format','content':o(_0x31192a,'*Change\x20to:*\x20%0',_0xecb317)};}});}}function Le(_0x32eca8){const _0x4cc822=_0x32eca8['getAttribute']('listIndent');if(0x0==_0x4cc822)return _0x32eca8;let _0x21bd83=_0x32eca8;for(;_0x32eca8['previousSibling']&&_0x32eca8['previousSibling']['is']('element','listItem');){const _0x24233a=_0x32eca8['previousSibling']['getAttribute']('listIndent');if(_0x24233a==_0x4cc822)_0x21bd83=_0x32eca8['previousSibling'];else{if(_0x24233a<_0x4cc822)break;}_0x32eca8=_0x32eca8['previousSibling'];}return _0x21bd83;}function Ee(_0x2bdea2){const _0xeaf024=[];if(_0x2bdea2['is']('element','listItem')&&_0x2bdea2['getAttribute']('listIndent')>0x0){let _0x8a6c81=_0x2bdea2['nextSibling'];for(;_0x8a6c81&&'listItem'==_0x8a6c81['name']&&_0x8a6c81['getAttribute']('listIndent')==_0x2bdea2['getAttribute']('listIndent');)_0xeaf024['push'](_0x8a6c81),_0x8a6c81=_0x8a6c81['nextSibling'];}return _0xeaf024;}class Q extends _0x647c34{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4d3ec2=this['editor']['config']['get']('list.properties'),_0x104773=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d3ec2['styles']&&_0x104773['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4d3ec2['reversed']&&_0x104773['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4d3ec2['startIndex']&&_0x104773['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x104773['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5ef6e9,_0x414ca5={}){const _0x3721fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e1f82=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3721fc['markMultiRangeBlockFormat'](_0x1e1f82,{'commandName':'listStyle','commandParams':[{'type':_0x414ca5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2cf233,_0x5e340a={}){const _0x7ac1f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3813c6=this['_getSuggestionBlocks'](_0x3a052f=>_0x3a052f['is']('element','listItem')&&'numbered'===_0x3a052f['getAttribute']('listType'));if(_0x3813c6['length']<0x1)return;const _0x15c96a=_0x3813c6['map'](_0x1768a1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1768a1,'before'),this['editor']['model']['createPositionAt'](_0x1768a1,0x0)));this['editor']['model']['change'](()=>{_0x7ac1f0['markMultiRangeBlockFormat'](_0x15c96a,{'commandName':'listReversed','commandParams':[{'reversed':_0x5e340a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x321445,_0x148f86={}){const _0x2159ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x468dd5=this['_getSuggestionBlocks'](_0x586949=>_0x586949['is']('element','listItem')&&'numbered'===_0x586949['getAttribute']('listType'));if(_0x468dd5['length']<0x1)return;const _0x1865b6=_0x468dd5['map'](_0x141a1a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x141a1a,'before'),this['editor']['model']['createPositionAt'](_0x141a1a,0x0)));this['editor']['model']['change'](()=>{_0x2159ca['markMultiRangeBlockFormat'](_0x1865b6,{'commandName':'listStart','commandParams':[{'startIndex':_0x148f86['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x21ae8e){if('formatBlock'!=_0x21ae8e['type']&&'formatInline'!=_0x21ae8e['type'])return;const _0x160bfd=this['editor']['locale'],{data:_0x2c2182}=_0x21ae8e;if(!_0x2c2182)return;let _0x1225d7,_0xa34479;switch(_0x2c2182['commandName']){case'listStyle':_0x1225d7='*Change\x20to:*\x20%0',_0xa34479={'type':'format','content':o(_0x160bfd,_0x1225d7,o(_0x160bfd,this['_getTranslationKeyForListStyle'](_0x2c2182['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1225d7=_0x2c2182['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xa34479={'type':'format','content':o(_0x160bfd,_0x1225d7)};break;case'listStart':_0x1225d7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xa34479={'type':'format','content':o(_0x160bfd,_0x1225d7,_0x2c2182['commandParams'][0x0]['startIndex'])};}return _0xa34479;}['_getSuggestionBlocksForListStyle'](){const _0x8a8f1f=this['editor']['plugins']['get']('LegacyListUtils');let _0xc02fcb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xc02fcb[0x0]?.['is']('element','listItem')&&_0xc02fcb['unshift'](..._0x8a8f1f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xc02fcb[_0xc02fcb['length']-0x1]?.['is']('element','listItem')&&_0xc02fcb['push'](..._0x8a8f1f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xc02fcb=[...new Set(_0xc02fcb)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xc02fcb=_0xc02fcb['filter'](_0x315bf0=>_0x315bf0['is']('element','listItem'))),_0xc02fcb;}['_getSuggestionBlocks'](_0x94f588){const _0x472443=this['editor']['plugins']['get']('LegacyListUtils');let _0x3339ea=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x94f588)['map'](_0x3b703b=>{const _0x23126e=this['editor']['model']['createPositionAt'](_0x3b703b,0x0);return[..._0x472443['getSiblingNodes'](_0x23126e,'backward'),..._0x472443['getSiblingNodes'](_0x23126e,'forward')];})['flat']();return _0x3339ea=[...new Set(_0x3339ea)],_0x3339ea;}['_getTranslationKeyForListStyle'](_0x573e84){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x573e84)||'default')['toUpperCase']()+'_LIST_'+_0x573e84['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x647c34{['afterInit'](){const _0x34c9ac=this['editor'];if(!_0x34c9ac['plugins']['has']('MediaEmbedEditing'))return;const _0x111453=_0x34c9ac['plugins']['get']('TrackChangesEditing'),_0x476772=_0x34c9ac['locale'];_0x111453['enableCommand']('mediaEmbed'),_0x111453['descriptionFactory']['registerElementLabel']('media',_0x1bd1cf=>o(_0x476772,'ELEMENT_MEDIA',_0x1bd1cf)),_0x34c9ac['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2ffec7,{writer:_0x44b7d1,options:_0x92274a})=>{if(_0x92274a['showSuggestionHighlights'])return _0x44b7d1['createEmptyElement']('div');},'converterPriority':'high'}),_0x34c9ac['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3eba5f,_0x131fbf,_0x35a25d)=>{_0x35a25d['options']['showSuggestionHighlights']&&_0x3eba5f['stop']();},{'priority':'high'});}}class pt extends _0x647c34{['afterInit'](){const _0x391dbf=this['editor'];_0x391dbf['plugins']['has']('MentionEditing')&&_0x391dbf['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x647c34{['afterInit'](){const _0x5569c5=this['editor'];if(!_0x5569c5['plugins']['has']('MergeFieldsEditing'))return;const _0x7b511d=_0x5569c5['plugins']['get']('TrackChangesEditing'),_0x36ed47=_0x5569c5['locale'];_0x7b511d['enableCommand']('insertMergeField'),_0x7b511d['enableCommand']('insertMergeFieldBlock'),_0x7b511d['enableCommand']('insertMergeFieldImage'),_0x7b511d['descriptionFactory']['registerElementLabel']('mergeField',_0x18c4e6=>o(_0x36ed47,'ELEMENT_MERGE_FIELD',_0x18c4e6)),_0x7b511d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1d8abe=>o(_0x36ed47,'ELEMENT_MERGE_FIELD',_0x1d8abe)),_0x7b511d['descriptionFactory']['registerDescriptionCallback'](_0x5a5e1c=>{if('insertion'!=_0x5a5e1c['type']&&'deletion'!=_0x5a5e1c['type'])return;const _0x1cea5f=_0x5a5e1c['getContainedElement']();if(null==_0x1cea5f)return;const _0x23014b=_0x5569c5['plugins']['get']('MergeFieldsEditing');let _0x277a1b;switch(_0x23014b['getMergeFieldType'](_0x1cea5f)){case null:return;case'image':{const _0x2b65e5=_0x23014b['unwrapAffixes'](_0x1cea5f['getAttribute']('src'));_0x277a1b=_0x23014b['getLabel'](_0x2b65e5)||_0x2b65e5;break;}default:{const _0x4d70b0=_0x1cea5f['getAttribute']('id');_0x277a1b=_0x23014b['getLabel'](_0x4d70b0)||_0x4d70b0;break;}}return'insertion'==_0x5a5e1c['type']?{'type':'insertion','content':o(_0x36ed47,'*Insert:*\x20%0','\x22'+_0x277a1b+'\x22\x20'+o(_0x36ed47,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x36ed47,'*Remove:*\x20%0','\x22'+_0x277a1b+'\x22\x20'+o(_0x36ed47,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x647c34{['afterInit'](){const _0x2a2882=this['editor'],_0x1d53f7=_0x2a2882['plugins']['get']('TrackChangesEditing');_0x2a2882['plugins']['has']('MultiLevelList')&&(_0x1d53f7['enableDefaultAttributesIntegration']('multiLevelList'),_0x1d53f7['registerBlockAttribute']('listMarkerStyle'),_0x1d53f7['descriptionFactory']['registerDescriptionCallback'](_0x46a8e5=>this['handleDescriptions'](_0x46a8e5)));}['handleDescriptions'](_0x4b03c5){const _0x2c9f56=this['editor']['locale'],{data:_0x53fc2c}=_0x4b03c5,_0x5648da={'type':'format','content':''};if(_0x53fc2c&&'listMarkerStyle'==_0x53fc2c['key']){if(!_0x53fc2c['oldValue'])return{'type':'format','content':o(_0x2c9f56,'*Set\x20format:*\x20%0',o(_0x2c9f56,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x53fc2c['newValue']+')'};if(!_0x53fc2c['newValue']){let _0x4cd979=_0x4b03c5['head'];for(;_0x4cd979;){if(_0x4cd979['data']&&'listType'==_0x4cd979['data']['key']&&_0x4cd979['data']['newValue'])return _0x5648da;_0x4cd979=_0x4cd979['next'];}return{'type':'format','content':o(_0x2c9f56,'*Remove\x20format:*\x20%0',o(_0x2c9f56,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x53fc2c['oldValue']+')'};}}}}class bt extends _0x647c34{['afterInit'](){const _0x574ee0=this['editor'];if(!_0x574ee0['plugins']['has']('PageBreakEditing'))return;_0x574ee0['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x29447d=_0x574ee0['plugins']['get']('TrackChangesEditing'),_0x1de8f9=_0x574ee0['locale'];_0x29447d['descriptionFactory']['registerElementLabel']('pageBreak',_0xac2835=>o(_0x1de8f9,'ELEMENT_PAGE_BREAK',_0xac2835));}}class yt extends _0x647c34{['afterInit'](){const _0x563bda=this['editor'];if(!_0x563bda['plugins']['has']('Paragraph'))return;const _0x4d34d8=_0x563bda['locale'],_0x32a824=_0x563bda['plugins']['get']('TrackChangesEditing');_0x32a824['descriptionFactory']['registerElementLabel']('paragraph',_0x492ec4=>o(_0x4d34d8,'ELEMENT_PARAGRAPH',_0x492ec4)),_0x32a824['enableDefaultAttributesIntegration']('paragraph'),_0x32a824['enableCommand']('insertParagraph'),_0x563bda['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x563bda),{'priority':'highest'}),_0x563bda['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x134002,_0x1cc964,_0x1be0d5)=>{_0x1be0d5['options']['showSuggestionHighlights']&&nr(_0x563bda,{'showActiveMarker':!0x1})(_0x134002,_0x1cc964,_0x1be0d5);},{'priority':'highest'});const _0xadd22d=_0x32a824['descriptionFactory'];_0xadd22d['registerDescriptionCallback'](_0x42b57f=>{if('insertion'!==_0x42b57f['type'])return;const {start:_0x433131,end:_0x3c9daa}=_0x42b57f['getFirstRange']();if(!_0x433131['isTouching'](_0x3c9daa)||!_0x433131['nodeAfter'])return;const _0x34737c=_0x563bda['model']['schema'],_0x1be142=_0x433131['nodeAfter'];return _0x34737c['isBlock'](_0x1be142)&&!_0x34737c['isLimit'](_0x1be142)&&_0x34737c['checkChild'](_0x1be142,'$text')?{'type':'insertion','content':o(_0x4d34d8,'*Insert:*\x20%0',_0xadd22d['getItemLabel'](_0x1be142,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x554225=this['editor'],_0x4fb9c2=_0x554225['locale'];_0x554225['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x120f09=>{if('formatBlock'!=_0x120f09['type'])return;const {data:_0x27e341}=_0x120f09;return _0x27e341&&'paragraph'==_0x27e341['commandName']?{'type':'format','content':o(_0x4fb9c2,'*Change\x20to:*\x20%0',o(_0x4fb9c2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x615f64,{showActiveMarker:_0x40ff9e=!0x0}={}){return(_0x4e5504,_0x4d2ded,_0x44a086)=>{const _0x129d8d=_0x615f64['plugins']['get']('TrackChangesEditing'),_0x70ef45=_0x4d2ded['markerRange']['start'],_0x221700=_0x4d2ded['markerRange']['end'],_0x4c2832=_0x615f64['model']['schema'];if(!_0x70ef45['isTouching'](_0x221700)||!_0x70ef45['nodeAfter'])return;const _0xfece32=_0x70ef45['nodeAfter'];if(_0x4c2832['isBlock'](_0xfece32)&&!_0x4c2832['isLimit'](_0xfece32)&&_0x4c2832['checkChild'](_0xfece32,'$text')){if(!_0x44a086['consumable']['consume'](_0x4d2ded['markerRange'],_0x4e5504['name']))return;const {authorId:_0x1b9730}=_0x129d8d['_splitMarkerName'](_0x4d2ded['markerName']),_0x17215a=_0x44a086['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1b9730}),_0x5ab881=_0x44a086['mapper']['toViewPosition'](_0x221700);_0x40ff9e&&_0x129d8d['activeMarkers']['includes'](_0x4d2ded['markerName'])&&_0x44a086['writer']['addClass']('ck-suggestion-marker--active',_0x17215a),_0x44a086['writer']['insert'](_0x5ab881,_0x17215a),_0x44a086['mapper']['bindElementToMarker'](_0x17215a,_0x4d2ded['markerName']);}};}class jt extends _0x647c34{['afterInit'](){const _0x3cf61b=this['editor'];_0x3cf61b['commands']['get']('replaceSource')&&_0x3cf61b['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x647c34{['afterInit'](){const _0xcfc901=this['editor'];if(!_0xcfc901['plugins']['has']('RemoveFormatEditing'))return;_0xcfc901['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x228358=this['editor'];_0x228358['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d74a5=>{if('formatBlock'!=_0x1d74a5['type']&&'formatInline'!=_0x1d74a5['type'])return;const {data:_0xf1ddd8}=_0x1d74a5;return _0xf1ddd8&&'removeFormat'==_0xf1ddd8['commandName']?{'type':'format','content':o(_0x228358['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x647c34{['afterInit'](){const _0x4c466b=this['editor'];if(!_0x4c466b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x34d8ea=_0x4c466b['plugins']['get']('TrackChangesEditing');_0x34d8ea['enableCommand']('goToPreviousRestrictedEditingException'),_0x34d8ea['enableCommand']('goToNextRestrictedEditingException');const _0x5b8951=_0x4c466b['plugins']['get']('RestrictedEditingModeEditing');_0x5b8951['enableCommand']('trackChanges'),_0x5b8951['enableCommand']('acceptSuggestion'),_0x5b8951['enableCommand']('discardSuggestion'),_0x5b8951['enableCommand']('acceptAllSuggestions'),_0x5b8951['enableCommand']('discardAllSuggestions'),_0x5b8951['enableCommand']('acceptSelectedSuggestions'),_0x5b8951['enableCommand']('discardSelectedSuggestions');}}class It extends _0x647c34{static get['requires'](){return[_0x4a4cbb];}['init'](){const _0x53d80e=this['editor'],_0x12ad4e=_0x53d80e['plugins']['get']('TrackChangesEditing');_0x12ad4e['enableCommand']('shiftEnter'),_0x53d80e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x53d80e),{'priority':'high'}),_0x53d80e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x53d80e),{'priority':'high'}),_0x53d80e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xbc08b4,_0xcfda83,_0x5d3713)=>{_0x5d3713['options']['showSuggestionHighlights']&&je(_0x53d80e,{'showActiveMarker':!0x1})(_0xbc08b4,_0xcfda83,_0x5d3713);}),_0x12ad4e['descriptionFactory']['registerElementLabel']('softBreak',_0x51919d=>o(_0x53d80e['locale'],'ELEMENT_LINE_BREAK',_0x51919d));}}function je(_0x1b4b9c,{showActiveMarker:_0x348287=!0x0}={}){return(_0x5e21d5,_0x1cd9c1,_0x91747e)=>{const _0x194c61=_0x1b4b9c['plugins']['get']('TrackChangesEditing');if(!_0x91747e['consumable']['test'](_0x1cd9c1['markerRange'],_0x5e21d5['name']))return;const _0x3a21cd=_0x1b4b9c['model'];for(const _0x4bc762 of _0x1cd9c1['markerRange']['getItems']()){if(!_0x4bc762['is']('element','softBreak'))continue;const _0xf0c77b='deletion'==_0x1cd9c1['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x16ec41}=_0x194c61['_splitMarkerName'](_0x1cd9c1['markerName']),_0xa48a4f=_0x91747e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xf0c77b,'data-author-id':_0x16ec41}),_0x481fa4=_0x91747e['mapper']['toViewPosition'](_0x3a21cd['createPositionBefore'](_0x4bc762));_0x348287&&_0x194c61['activeMarkers']['includes'](_0x1cd9c1['markerName'])&&_0x91747e['writer']['addClass']('ck-suggestion-marker--active',_0xa48a4f),_0x91747e['writer']['insert'](_0x481fa4,_0xa48a4f),_0x91747e['mapper']['bindElementToMarker'](_0xa48a4f,_0x1cd9c1['markerName']);}};}class vt extends _0x647c34{['afterInit'](){const _0x14921c=this['editor'],_0x543467=_0x14921c['model'],_0x2397d5=_0x14921c['locale'];if(!_0x14921c['plugins']['has']('StandardEditingModeEditing'))return;const _0x2747c0=_0x14921c['plugins']['get']('TrackChangesEditing'),_0x3a833e='restrictedEditingException',_0x2fc43f=_0x14921c['commands']['get'](_0x3a833e);_0x2747c0['enableCommand'](_0x3a833e,(_0x37b45b,_0x9bc809={})=>{const _0x48e0a9=_0x543467['document']['selection'];if(_0x48e0a9['isCollapsed'])return void _0x37b45b(_0x9bc809);const _0x3e9b48=void 0x0!==_0x9bc809['forceValue']?_0x9bc809['forceValue']:!_0x2fc43f['value'];_0x543467['change'](()=>{const _0x3a31d4=Array['from'](_0x48e0a9['getRanges']());for(const _0x3331c9 of _0x3a31d4){const _0x5e61b5=_0x3e9b48?[_0x3331c9]:io(_0x3a833e,_0x3331c9,_0x543467);for(const _0x5cc6ff of _0x5e61b5)_0x2747c0['markInlineFormat'](_0x5cc6ff,{'commandName':_0x3a833e,'commandParams':[{'forceValue':_0x3e9b48}]});}});}),_0x2747c0['descriptionFactory']['registerDescriptionCallback'](_0xfb6156=>{if('formatBlock'!=_0xfb6156['type']&&'formatInline'!=_0xfb6156['type'])return;const {data:_0x6c57e8}=_0xfb6156;return _0x6c57e8&&_0x6c57e8['commandName']==_0x3a833e?_0x6c57e8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2397d5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2397d5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x647c34{['afterInit'](){const _0x229752=this['editor'];if(!_0x229752['plugins']['has']('Style')||!_0x229752['plugins']['has']('DataSchema'))return;const _0x59e2ee=_0x229752['plugins']['get']('TrackChangesEditing'),_0x11b9a7=_0x229752['locale'],_0xa15668=_0x229752['config']['get']('style')||{},_0x3f9301=_0x229752['plugins']['get']('GeneralHtmlSupport'),_0x5bb6b8=_0x229752['plugins']['get']('StyleUtils')['normalizeConfig'](_0x229752['plugins']['get']('DataSchema'),_0xa15668['definitions']);_0x59e2ee['enableDefaultAttributesIntegration']('style');const _0x5f1c8a=new Set();for(const _0x58dc64 of _0x5bb6b8['block']){const _0x5d0c10=_0x3f9301['getGhsAttributeNameForElement'](_0x58dc64['element']);_0x5f1c8a['add'](_0x5d0c10);}const _0x56a258=new Set();for(const _0x28eb86 of _0x5bb6b8['inline']){const _0x2c62f8=_0x3f9301['getGhsAttributeNameForElement'](_0x28eb86['element']);_0x56a258['add'](_0x2c62f8);for(const _0x4be077 of _0x28eb86['ghsAttributes'])_0x56a258['add'](_0x4be077);}for(const _0x28ed6e of _0x5f1c8a)_0x59e2ee['registerBlockAttribute'](_0x28ed6e),_0x59e2ee['descriptionFactory']['registerAttributeLabel'](_0x28ed6e,o(_0x11b9a7,'FORMAT_STYLE'));for(const _0xced696 of _0x56a258)_0x59e2ee['registerInlineAttribute'](_0xced696),_0x59e2ee['descriptionFactory']['registerAttributeLabel'](_0xced696,o(_0x11b9a7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x118264=this['editor'],_0x4cf464=_0x118264['locale'];_0x118264['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16a3b2=>{if('formatBlock'!=_0x16a3b2['type']&&'formatInline'!=_0x16a3b2['type'])return;const {data:_0x5aa200}=_0x16a3b2;return _0x5aa200&&'style'===_0x5aa200['commandName']?_0x5aa200['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4cf464,'*Set\x20format:*\x20%0',_0x5aa200['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4cf464,'*Remove\x20format:*\x20%0',_0x5aa200['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x647c34{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1c3ce0){super(_0x1c3ce0),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x31600b=this['editor'],_0x1c8eec=_0x31600b['model']['document']['selection'];if(!_0x31600b['plugins']['has']('TableEditing'))return;const _0x390eb2=_0x31600b['locale'],_0x30a1c3=_0x31600b['plugins']['get']('TrackChangesEditing'),_0xfc20c7=_0x31600b['plugins']['get']('TableUtils');_0x30a1c3['descriptionFactory']['registerElementLabel']('table',_0x53ca48=>o(_0x390eb2,'ELEMENT_TABLE',_0x53ca48)),this['_setupColumnsRowsFixing'](),_0x30a1c3['enableCommand']('insertTable'),_0x30a1c3['enableCommand']('selectTableRow'),_0x30a1c3['enableCommand']('selectTableColumn');for(const _0x6e915c of['insertTableRowAbove','insertTableRowBelow']){const _0x5ebbe3=_0x31600b['commands']['get'](_0x6e915c);_0x30a1c3['enableCommand'](_0x6e915c,_0x1af091=>{_0x31600b['model']['change'](_0x3d9b4f=>{_0x1af091();const _0x5833e6='above'===_0x5ebbe3['order'],_0x1878a8=_0xfc20c7['getSelectionAffectedTableCells'](_0x1c8eec),_0x4fe9da=_0xfc20c7['getRowIndexes'](_0x1878a8),_0x25dd64=_0x5833e6?_0x4fe9da['first']-0x1:_0x4fe9da['last']+0x1,_0x267f89=_0x1878a8[0x0]['findAncestor']('table'),_0x5868f4=_0xfc20c7['createTableWalker'](_0x267f89,{'startRow':_0x25dd64,'endRow':_0x25dd64}),_0x25a44e=Array['from'](_0x5868f4)['map'](_0x3ca5ef=>_0x3d9b4f['createRangeOn'](_0x3ca5ef['cell']));_0x30a1c3['markMultiRangeInsertion'](_0x25a44e,'tableRow');});});}for(const _0x27b7e1 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2b70c1=_0x31600b['commands']['get'](_0x27b7e1);_0x30a1c3['enableCommand'](_0x27b7e1,_0xa82bce=>{_0x31600b['model']['change'](_0x57ad4d=>{_0xa82bce();const _0x195490='left'===_0x2b70c1['order'],_0x4eae5d=_0xfc20c7['getSelectionAffectedTableCells'](_0x1c8eec),_0x1cb228=_0xfc20c7['getColumnIndexes'](_0x4eae5d),_0x53bbd0=_0x195490?_0x1cb228['first']-0x1:_0x1cb228['last']+0x1,_0x11da17=_0x4eae5d[0x0]['findAncestor']('table'),_0x4353a5=_0xfc20c7['createTableWalker'](_0x11da17,{'startRow':0x0,'column':_0x53bbd0,'includeAllSlots':!0x1}),_0x5dcf65=Array['from'](_0x4353a5)['map'](_0x58e54f=>_0x57ad4d['createRangeOn'](_0x58e54f['cell']));_0x30a1c3['markMultiRangeInsertion'](_0x5dcf65,'tableColumn');});});}for(const _0x1db668 of['removeTableRow','removeTableColumn']){const _0x5532cd=_0x1db668['substr'](0xb),_0x17733a=_0x5532cd['toLowerCase'](),_0x31b039=_0x17733a['substr'](0x0,0x3)+'span',_0x541634='table'+_0x5532cd,_0x194a09='min'+_0x5532cd,_0x47f443='max'+_0x5532cd;_0x30a1c3['enableCommand'](_0x1db668,()=>{_0x31600b['model']['change'](_0x2c6286=>{const _0x3aedc4=_0xfc20c7['getSelectionAffectedTableCells'](_0x1c8eec),_0x603f66=_0x3aedc4[0x0]['findAncestor']('table');let _0x13fdfd;if('removeTableRow'==_0x1db668){const _0x178722=_0xfc20c7['getRowIndexes'](_0x3aedc4);_0x13fdfd={'startRow':_0x178722['first'],'endRow':_0x178722['last'],'includeAllSlots':!0x0};}else{const _0x3b70ff=_0xfc20c7['getColumnIndexes'](_0x3aedc4);_0x13fdfd={'startColumn':_0x3b70ff['first'],'endColumn':_0x3b70ff['last'],'includeAllSlots':!0x0};}const _0x1a9640=_0xfc20c7['createTableWalker'](_0x603f66,_0x13fdfd),_0x577f98=Array['from'](_0x1a9640)['map'](({cell:_0xa38d37})=>_0xa38d37),_0xa773ff=Ne(_0x577f98['filter'](_0x380eb6=>_0x380eb6['hasAttribute'](_0x31b039))),_0x5cd7f3=Ne(_0x577f98['filter'](_0x5852bb=>!_0x5852bb['hasAttribute'](_0x31b039)))['map'](_0x26eaae=>_0x2c6286['createRangeOn'](_0x26eaae)),_0x1a9c0a=_0x30a1c3['markMultiRangeDeletion'](_0x5cd7f3,_0x541634);if(_0x1a9c0a&&('tableRow'==_0x1a9c0a['subType']||'tableColumn'==_0x1a9c0a['subType'])){const _0xdd10e9=this['_getSuggestionCoords'](_0x1a9c0a);for(const _0x39a561 of _0xa773ff){const _0x80c684=_0x2c6286['createRangeOn'](_0x39a561),_0x1d62af=_0xfc20c7['getCellLocation'](_0x39a561),_0x1918e1=_0x39a561['getAttribute'](_0x31b039)-0x1,_0x48fd07=_0xdd10e9[_0x194a09],_0x2acbcb=_0xdd10e9[_0x47f443];_0x48fd07<=_0x1d62af[_0x17733a]&&_0x1d62af[_0x17733a]+_0x1918e1<=_0x2acbcb&&_0x1a9c0a['addRange'](_0x80c684);}}});});}function _0x409e29(_0x4b380a){const _0x3cbe89=Array['from'](_0x1c8eec['getRanges']())['map'](_0x22b46a=>_0x48b32a['fromRange'](_0x22b46a));_0x31600b['model']['change'](_0xd6dfd7=>{const _0x41dfbe=_0xd6dfd7['batch'];_0x4b380a=_0x4b380a['filter'](_0x25a023=>'$graveyard'!=_0x25a023['root']['rootName']),_0xd6dfd7['setSelection'](_0x4b380a),_0x31600b['commands']['get']('removeTableRow')['refresh'](),_0x31600b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x31600b['model']['enqueueChange'](()=>{_0x31600b['model']['enqueueChange'](_0x41dfbe,_0x2685ba=>{const _0x4b4438=_0x3cbe89['filter'](_0xe71780=>'$graveyard'!=_0xe71780['root']['rootName']);_0x4b4438['length']>0x0&&_0x2685ba['setSelection'](_0x4b4438);for(const _0x10adf8 of _0x3cbe89)_0x10adf8['detach']();});});});}function _0x29768f(_0x1ffac1){_0x31600b['model']['change'](_0x2ff51b=>{const _0x458fe7=Array['from'](_0x1c8eec['getRanges']())['map'](_0x51c3c7=>_0x48b32a['fromRange'](_0x51c3c7)),_0x2a05b1=[];for(const _0x2f61ca of _0x1ffac1)for(const _0x69f37a of _0x2f61ca['getItems']({'shallow':!0x0}))_0x2a05b1['push'](_0x69f37a);for(const _0x5a25db of _0x2a05b1)'$graveyard'!=_0x5a25db['root']['rootName']&&(_0x2ff51b['setSelection'](_0x2ff51b['createPositionAt'](_0x5a25db,0x0)),_0x31600b['commands']['get']('removeTableColumn')['refresh'](),_0x31600b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x14b654=_0x458fe7['filter'](_0x1b0aa7=>'$graveyard'!=_0x1b0aa7['root']['rootName']);_0x14b654['length']>0x0&&_0x2ff51b['setSelection'](_0x14b654);for(const _0x4abf89 of _0x458fe7)_0x4abf89['detach']();});}function _0x185ce6(_0x55121f,_0x2ffc2d){return _0x2ffc2d['every'](_0x2114ae=>_0x55121f['some'](_0xf769bf=>_0xf769bf['end']['isEqual'](_0x2114ae['start'])||_0x2114ae['end']['isEqual'](_0xf769bf['start'])));}function _0x300e62(_0x5cd0c7,_0xdbcdff){return!_0x5cd0c7['some'](_0x3f2eb4=>_0xdbcdff['some'](_0x5c0d1f=>_0x3f2eb4['isIntersecting'](_0x5c0d1f)))&&_0x5cd0c7['some'](_0x5a8311=>_0xdbcdff['some'](_0x4612a1=>_0x5a8311['end']['isTouching'](_0x4612a1['start'])));}_0x31600b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x18699a,_0x3a2618,_0x367c1e)=>{if(!_0x367c1e['options']['showSuggestionHighlights'])return;const _0x120b93=_0x3a2618['item'];if(!_0x120b93)return;const _0x765ab8=_0x367c1e['mapper']['toViewElement'](_0x120b93);function _0x330be9(_0x34aa5b){return Array['isArray'](_0x34aa5b)?_0x34aa5b:[_0x34aa5b];}_0x765ab8&&'tableCell'===_0x120b93['name']&&_0x80ea03(_0x765ab8,_0x367c1e['writer'],(_0x14d48a,_0x73efbd,_0x434cce)=>_0x434cce['addClass'](_0x330be9(_0x73efbd['classes']),_0x14d48a),(_0xb824c6,_0x578379,_0x37cdda)=>_0x37cdda['removeClass'](_0x330be9(_0x578379['classes']),_0xb824c6));},{'priority':'highest'}),_0x30a1c3['descriptionFactory']['registerDescriptionCallback'](_0x2da217=>{if('insertion'!=_0x2da217['type']&&'deletion'!=_0x2da217['type'])return;const _0x1a04fa=_0x2da217['getContainedElement']();if(null!=_0x1a04fa&&_0x1a04fa['is']('element','table')){if('insertion'==_0x2da217['type']){const _0x2cd0ff=_0x2da217['getItems']()['filter'](_0x4634b5=>_0x4634b5['is']('$textProxy'))['map'](_0x58bb85=>_0x58bb85['data']);if(_0x2cd0ff['length'])return{'type':'insertion','content':o(_0x390eb2,'*Insert:*\x20%0',o(_0x390eb2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2cd0ff['join']('\x20')+'\x22'))};}if('deletion'==_0x2da217['type']){const _0x57bb70=_0x2da217['getItems']()['filter'](_0x1188b2=>_0x1188b2['is']('$textProxy'))['map'](_0xe65e72=>_0xe65e72['data']);if(_0x57bb70['length'])return{'type':'deletion','content':o(_0x390eb2,'*Remove:*\x20%0',o(_0x390eb2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x57bb70['join']('\x20')+'\x22'))};}}}),_0x30a1c3['descriptionFactory']['registerDescriptionCallback'](_0xcda6f3=>{if('tableRow'==_0xcda6f3['subType']){const _0x3a36f7=_0xcda6f3['getItems']()['filter'](_0x360b87=>_0x360b87['is']('$textProxy'))['map'](_0x362052=>_0x362052['data']),_0x348e82=this['_getSuggestionCoords'](_0xcda6f3),_0x518b87=_0x348e82['maxRow']-_0x348e82['minRow']+0x1;if('insertion'==_0xcda6f3['type'])return _0x3a36f7['length']?{'type':'insertion','content':o(_0x390eb2,'*Insert:*\x20%0',o(_0x390eb2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x518b87,'\x22'+_0x3a36f7['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x390eb2,'*Insert:*\x20%0',o(_0x390eb2,'ELEMENT_TABLE_ROW',_0x518b87))};if('deletion'==_0xcda6f3['type'])return _0x3a36f7['length']?{'type':'deletion','content':o(_0x390eb2,'*Remove:*\x20%0',o(_0x390eb2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x518b87,'\x22'+_0x3a36f7['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x390eb2,'*Remove:*\x20%0',o(_0x390eb2,'ELEMENT_TABLE_ROW',_0x518b87))};}if('tableColumn'==_0xcda6f3['subType']){const _0x554bfb=_0xcda6f3['getItems']()['filter'](_0x5e66db=>_0x5e66db['is']('$textProxy'))['map'](_0x3b5a1d=>_0x3b5a1d['data']),_0x444bd9=this['_getSuggestionCoords'](_0xcda6f3),_0xff331c=_0x444bd9['maxColumn']-_0x444bd9['minColumn']+0x1;if('insertion'==_0xcda6f3['type'])return _0x554bfb['length']?{'type':'insertion','content':o(_0x390eb2,'*Insert:*\x20%0',o(_0x390eb2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xff331c,'\x22'+_0x554bfb['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x390eb2,'*Insert:*\x20%0',o(_0x390eb2,'ELEMENT_TABLE_COLUMN',_0xff331c))};if('deletion'==_0xcda6f3['type'])return _0x554bfb['length']?{'type':'deletion','content':o(_0x390eb2,'*Remove:*\x20%0',o(_0x390eb2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xff331c,'\x22'+_0x554bfb['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x390eb2,'*Remove:*\x20%0',o(_0x390eb2,'ELEMENT_TABLE_COLUMN',_0xff331c))};}}),_0x30a1c3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x409e29),_0x30a1c3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x409e29),_0x30a1c3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x29768f),_0x30a1c3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x29768f),_0x30a1c3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x185ce6),_0x30a1c3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x185ce6),_0x30a1c3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x300e62),_0x30a1c3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x300e62);}['_acceptFormatSuggestionCallbackFactory'](){const _0x23d03a=this['editor'],_0xb2a10b=_0x23d03a['model']['document']['selection'];return(_0x138ffe,_0x2ca2f3)=>{_0x23d03a['model']['change'](_0x205ed6=>{const {commandName:_0x3510b7,commandParams:_0xef602e}=_0x2ca2f3;let _0x4e3f00=_0x138ffe[0x0]['end']['nodeBefore'];_0xef602e&&_0xef602e[0x0]&&!0x1===_0xef602e[0x0]['forceValue']&&(_0x4e3f00=_0x138ffe[0x0]['start']['nodeAfter']);const _0x2c645f=_0x205ed6['createRangeIn'](_0x4e3f00);if('$graveyard'==_0x2c645f['root']['rootName'])return;const _0x3b46e0=Array['from'](_0xb2a10b['getRanges']())['map'](_0x507589=>_0x48b32a['fromRange'](_0x507589));_0x205ed6['setSelection'](_0x2c645f),_0x23d03a['commands']['get'](_0x3510b7)['refresh'](),_0xef602e['push']({'forceDefaultExecution':!0x0}),_0x23d03a['execute'](_0x3510b7,..._0xef602e);const _0x58874d=_0x3b46e0['filter'](_0x3bf8ae=>'$graveyard'!=_0x3bf8ae['root']['rootName']);_0x58874d['length']>0x0&&_0x205ed6['setSelection'](_0x58874d);for(const _0x45af28 of _0x3b46e0)_0x45af28['detach']();});};}['_getCoordsForCells'](_0x3ee749){const _0x461c88=this['editor']['plugins']['get']('TableUtils');let _0x369049=Number['MAX_SAFE_INTEGER'],_0x219047=Number['MIN_SAFE_INTEGER'],_0x255518=Number['MAX_SAFE_INTEGER'],_0x11a8c9=Number['MIN_SAFE_INTEGER'];for(const _0x16801b of _0x3ee749){if('$graveyard'==_0x16801b['root']['rootName'])continue;const {row:_0x5d42d3,column:_0x32f24b}=_0x461c88['getCellLocation'](_0x16801b),_0x515837=_0x16801b['hasAttribute']('rowspan')?_0x16801b['getAttribute']('rowspan')-0x1:0x0,_0x9eb2f3=_0x16801b['hasAttribute']('colspan')?_0x16801b['getAttribute']('colspan')-0x1:0x0;_0x369049=_0x5d42d3<_0x369049?_0x5d42d3:_0x369049,_0x219047=_0x5d42d3+_0x515837>_0x219047?_0x5d42d3+_0x515837:_0x219047,_0x255518=_0x32f24b<_0x255518?_0x32f24b:_0x255518,_0x11a8c9=_0x32f24b+_0x9eb2f3>_0x11a8c9?_0x32f24b+_0x9eb2f3:_0x11a8c9;}return{'minRow':_0x369049,'maxRow':_0x219047,'minColumn':_0x255518,'maxColumn':_0x11a8c9};}['_setupColumnsRowsFixing'](){const _0x45160d=this['editor'],_0x2a3d67=_0x45160d['plugins']['get']('TrackChangesEditing'),_0x1c23dd=_0x45160d['plugins']['get']('TableUtils');_0x45160d['model']['document']['on']('change:data',()=>{const _0x1bc6f=Array['from'](_0x45160d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x969e4f,data:_0x116b48}of _0x1bc6f){const {group:_0x31dcef,id:_0xd2fd27,subType:_0x3362ba}=_0x2a3d67['_splitMarkerName'](_0x969e4f);if('suggestion'!=_0x31dcef)continue;if(null!=_0x116b48['oldRange'])continue;const _0x51b5f7=_0x2a3d67['getSuggestion'](_0xd2fd27);this['_tablePostFixingSubtypes']['includes'](_0x3362ba)&&this['_tableSuggestions']['add'](_0x51b5f7);}},{'priority':'low'});const _0x3b2c0d=(_0x45cd0d,_0x13833b)=>{let _0x2cfca7=!0x1;const _0x190005=_0x13833b['createRangeOn'](_0x45cd0d),_0x2469e5=_0x45cd0d['findAncestor']('table'),_0x3c4d16=_0x1c23dd['getCellLocation'](_0x45cd0d);for(const _0x43c7b1 of this['_tableSuggestions']){const _0x15b406=_0x43c7b1['subType'],_0x31d649=_0x15b406['startsWith']('tablePaste'),_0x1d5328=_0x15b406['substr'](_0x31d649?0xa:0x5),_0x27fcce=_0x1d5328['toLowerCase'](),_0x2d6f1c=_0x27fcce['substr'](0x0,0x3)+'span',_0x34f0cc='min'+_0x1d5328,_0x5e3c1b='max'+_0x1d5328;if(!_0x43c7b1['isInContent'])continue;if(_0x2469e5!=_0x43c7b1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x43c7b1['isIntersectingWithRange'](_0x190005))continue;const _0x2f79c8=_0x45cd0d['hasAttribute'](_0x2d6f1c)?_0x45cd0d['getAttribute'](_0x2d6f1c)-0x1:0x0,_0x18109c=this['_getSuggestionCoords'](_0x43c7b1),_0x122838=_0x18109c[_0x34f0cc],_0x569963=_0x18109c[_0x5e3c1b];_0x122838<=_0x3c4d16[_0x27fcce]&&_0x3c4d16[_0x27fcce]+_0x2f79c8<=_0x569963&&(_0x43c7b1['addRange'](_0x190005),_0x2cfca7=!0x0);}return _0x2cfca7;};_0x45160d['model']['document']['registerPostFixer'](_0x48d21d=>{let _0x4bcd3a=!0x1;for(const _0x5e8395 of _0x45160d['model']['document']['differ']['getChanges']())if('insert'==_0x5e8395['type']){if('tableRow'==_0x5e8395['name']){for(const _0x1e91d6 of _0x5e8395['position']['nodeAfter']['getChildren']())_0x4bcd3a=_0x4bcd3a||_0x3b2c0d(_0x1e91d6,_0x48d21d);}else'tableCell'==_0x5e8395['name']&&(_0x4bcd3a=_0x4bcd3a||_0x3b2c0d(_0x5e8395['position']['nodeAfter'],_0x48d21d));}return _0x4bcd3a;});}['_getSuggestionCoords'](_0x27895a){return this['_getCoordsForCells'](_0x27895a['getRanges']()['map'](_0x1c4101=>_0x1c4101['start']['nodeAfter']));}}function Ne(_0x5273e9){return Array['from'](new Set(_0x5273e9)['values']());}class Nt extends _0x647c34{static get['requires'](){return[Ct];}['afterInit'](){const _0x1d952a=this['editor'],_0x3520fd=_0x1d952a['model']['document']['selection'],_0x4b2ffc=_0x1d952a['locale'];if(!_0x1d952a['plugins']['has']('TableEditing'))return;const _0x50d0c2=_0x1d952a['plugins']['get']('TrackChangesEditing'),_0x19ad62=_0x1d952a['plugins']['get']('TableUtils'),_0x26f422=_0x1d952a['plugins']['get'](Ct);_0x26f422['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x50d0c2['enableCommand']('mergeTableCells',()=>{const _0x525dce=_0x19ad62['getSelectionAffectedTableCells'](_0x1d952a['model']['document']['selection']);_0x1d952a['model']['change'](()=>{_0x50d0c2['markMultiRangeBlockFormat'](_0x525dce,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1d952a['commands']['get']('mergeTableCells')['on']('execute',(_0x526f5b,_0x3bec5b)=>{_0x1d952a['commands']['get']('trackChanges')['value']&&(_0x3bec5b['length']>0x0&&_0x3bec5b[_0x3bec5b['length']-0x1]&&_0x3bec5b[_0x3bec5b['length']-0x1]['forceDefaultExecution']||_0x50d0c2['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x526f5b['stop']());},{'priority':'highest'});for(const _0x400cc2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1b20df=_0x1d952a['commands']['get'](_0x400cc2);_0x50d0c2['enableCommand'](_0x400cc2,()=>{const _0x5323f0=_0x1d952a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x13b8d3=>_0x13b8d3['is']('element','tableCell')),_0x30ab2e=_0x1b20df['value'];_0x1d952a['model']['change'](()=>{_0x50d0c2['markMultiRangeBlockFormat']([_0x5323f0,_0x30ab2e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x45539f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x18aef9=_0x1d952a['commands']['get'](_0x45539f);_0x50d0c2['enableCommand'](_0x45539f,()=>{const _0x5b01c4=_0x19ad62['getSelectionAffectedTableCells'](_0x1d952a['model']['document']['selection'])[0x0],_0x552a39=_0x5b01c4['findAncestor']('table'),{column:_0x220709,row:_0x5e1293}=_0x19ad62['getCellLocation'](_0x5b01c4);let _0x42c63a=[];if('horizontally'==_0x18aef9['direction']){const _0x1bbb29=_0x19ad62['createTableWalker'](_0x552a39,{'startRow':_0x5e1293,'endRow':_0x5e1293,'includeAllSlots':!0x0});_0x42c63a=Array['from'](_0x1bbb29)['map'](_0x2e39dc=>_0x2e39dc['cell']);}else{const _0x1e743a=_0x19ad62['createTableWalker'](_0x552a39,{'column':_0x220709,'includeAllSlots':!0x0});_0x42c63a=Array['from'](_0x1e743a)['map'](_0x320270=>_0x320270['cell']);}_0x1d952a['model']['change'](_0x4af399=>{_0x50d0c2['markBlockFormat'](_0x4af399['createRangeOn'](_0x5b01c4),{'commandName':_0x45539f,'commandParams':[]},_0x42c63a,_0x45539f);});});}_0x50d0c2['descriptionFactory']['registerDescriptionCallback'](_0x4b2b9d=>{if('formatBlock'!=_0x4b2b9d['type']&&'formatInline'!=_0x4b2b9d['type'])return;const {data:_0x4153d4}=_0x4b2b9d;return _0x4153d4&&'mergeTableCells'==_0x4153d4['commandName']?{'type':'format','content':o(_0x4b2ffc,'*Merge\x20cells*')}:void 0x0;}),_0x50d0c2['descriptionFactory']['registerDescriptionCallback'](_0xf03e9f=>{if('formatBlock'!=_0xf03e9f['type']&&'formatInline'!=_0xf03e9f['type'])return;const {data:_0x36db10}=_0xf03e9f;return _0x36db10?'splitTableCellVertically'==_0x36db10['commandName']?{'type':'format','content':o(_0x4b2ffc,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x36db10['commandName']?{'type':'format','content':o(_0x4b2ffc,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x24e419=_0x26f422['_acceptFormatSuggestionCallbackFactory']();for(const _0x35ffc2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x50d0c2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x35ffc2,'accept',_0x24e419);for(const _0x49574c of['splitTableCellVertically','splitTableCellHorizontally'])_0x50d0c2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x49574c,'accept',_0x24e419);_0x50d0c2['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5dbf28=>{_0x1d952a['model']['change'](_0x420406=>{const _0x1c8b59=Array['from'](_0x3520fd['getRanges']())['map'](_0x5ab86a=>_0x48b32a['fromRange'](_0x5ab86a));_0x420406['setSelection'](_0x5dbf28),_0x1d952a['commands']['get']('mergeTableCells')['refresh'](),_0x1d952a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4d7c49=_0x1c8b59['filter'](_0x393636=>'$graveyard'!=_0x393636['root']['rootName']);_0x4d7c49['length']>0x0&&_0x420406['setSelection'](_0x4d7c49);for(const _0x51fa8a of _0x1c8b59)_0x51fa8a['detach']();});});for(const _0x4dc438 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x264a65=_0x1d952a['commands']['get'](_0x4dc438);_0x264a65['on']('set:isEnabled',(_0x136fb7,_0x1a32be,_0x1e863b)=>{if(_0x1e863b){const _0xdfd0ff=_0x1d952a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x158d2f=>_0x158d2f['is']('element','tableCell'));this['_areMergableCells'](_0x264a65['value'],_0xdfd0ff)||(_0x136fb7['return']=!0x1,_0x136fb7['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1d2177=this['editor']['commands']['get']('mergeTableCells'),_0x4d4ae2=this['editor']['plugins']['get']('TableUtils');if(!_0x1d2177['isEnabled'])return!0x1;const _0x1f6fdc=_0x4d4ae2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3b069f of _0x1f6fdc)for(const _0xc23d31 of _0x1f6fdc)if(_0x3b069f!=_0xc23d31&&!this['_areMergableCells'](_0x3b069f,_0xc23d31))return!0x1;return!0x0;}['_areMergableCells'](_0x367b58,_0x3b2f34){const _0x383037=this['editor']['plugins']['get']('TrackChangesEditing'),_0xabc8e9=this['editor']['model']['createRangeOn'](_0x367b58),_0xe47a80=this['editor']['model']['createRangeOn'](_0x3b2f34),_0x3aef7c=new Set(),_0x1e46b9=new Set();for(const _0x4fd3de of _0x383037['getSuggestions']())if(('insertion'==_0x4fd3de['type']||'deletion'==_0x4fd3de['type']||'mergeTableCells'==_0x4fd3de['subType'])&&_0x4fd3de['isInContent']){for(const _0x5ebb3e of _0x4fd3de['getRanges']())_0x5ebb3e['containsRange'](_0xabc8e9,!0x0)&&_0x3aef7c['add'](_0x4fd3de['type']+':'+_0x4fd3de['author']['id']),_0x5ebb3e['containsRange'](_0xe47a80,!0x0)&&_0x1e46b9['add'](_0x4fd3de['type']+':'+_0x4fd3de['author']['id']);}if(_0x3aef7c['size']!=_0x1e46b9['size'])return!0x1;for(const _0x4678b9 of _0x3aef7c)if(!_0x1e46b9['has'](_0x4678b9))return!0x1;return!0x0;}}class Dt extends _0x647c34{static get['requires'](){return[Ct];}['afterInit'](){const _0x232016=this['editor'];if(!_0x232016['plugins']['has']('TableEditing'))return;const _0x20fa88=_0x232016['locale'],_0x8378a6=_0x232016['plugins']['get']('TrackChangesEditing');_0x8378a6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x8378a6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x8378a6['registerBlockAttribute']('headingRows'),_0x8378a6['registerBlockAttribute']('headingColumns'),_0x8378a6['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x20fa88,'FORMAT_HEADER_ROW')),_0x8378a6['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x20fa88,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x40b68e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2da83c=this['editor']['plugins']['get']('TableUtils'),_0x32291e=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x5b4799({showActiveMarker:_0x43b6cd=!0x0,setDataAttribute:_0x401367=!0x0}={}){return(_0x1b7104,_0x178739,_0x63f061)=>{const {type:_0x589c46,id:_0x9ffd4b}=_0x40b68e['_splitMarkerName'](_0x178739['markerName']),_0x33b9e8=_0x40b68e['getSuggestion'](_0x9ffd4b),_0x1b59d2=_0x33b9e8['data'];if('formatBlock'!=_0x33b9e8['type']||!_0x1b59d2||'setTableColumnHeader'!=_0x1b59d2['commandName'])return;if(_0x178739['item'])return void _0x1b7104['stop']();if(!_0x63f061['consumable']['consume'](_0x178739['markerRange'],_0x1b7104['name']))return;const _0x5a73e8=_0x178739['markerRange']['start']['nodeAfter'],_0xd97a0b=_0x178739['markerRange']['end']['nodeBefore'],_0x5e8413=_0x5a73e8['parent']['parent'],{column:_0x3cba5e}=_0x2da83c['getCellLocation'](_0x5a73e8),{column:_0x402ec8}=_0x2da83c['getCellLocation'](_0xd97a0b);for(let _0x51bcbb=_0x3cba5e;_0x51bcbb<=_0x402ec8;_0x51bcbb++){const _0x4bd66c=_0x2da83c['createTableWalker'](_0x5e8413,{'column':_0x51bcbb,'includeAllSlots':!0x1});for(const _0x4e695a of _0x4bd66c){const _0x4c36fb=_0x4e695a['cell'],_0x319d6d=_0x63f061['mapper']['toViewElement'](_0x4c36fb);_0x63f061['writer']['addClass']('ck-suggestion-marker-'+_0x589c46,_0x319d6d),_0x401367&&_0x63f061['writer']['setAttribute']('data-suggestion',_0x9ffd4b,_0x319d6d),_0x63f061['mapper']['bindElementToMarker'](_0x319d6d,_0x178739['markerName']),_0x43b6cd&&(_0x40b68e['activeMarkers']['includes'](_0x178739['markerName'])?_0x63f061['writer']['addClass']('ck-suggestion-marker--active',_0x319d6d):_0x63f061['writer']['removeClass']('ck-suggestion-marker--active',_0x319d6d));}}};}_0x40b68e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x32291e),_0x40b68e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x32291e),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5b4799(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x273c69,_0x1990da,_0x52078a)=>{_0x52078a['options']['showSuggestionHighlights']&&_0x5b4799({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x273c69,_0x1990da,_0x52078a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5384ac,_0x3cc295,_0x16d2c7)=>{const {type:_0x178382,id:_0x428fde}=_0x40b68e['_splitMarkerName'](_0x3cc295['markerName']),_0x5b5d49=_0x40b68e['getSuggestion'](_0x428fde),_0xebf5d2=_0x5b5d49['data'];if('formatBlock'!=_0x5b5d49['type']||!_0xebf5d2||'setTableColumnHeader'!=_0xebf5d2['commandName'])return;const _0x13d114=_0x16d2c7['mapper']['markerNameToElements'](_0x3cc295['markerName']);if(_0x13d114){for(const _0x3b8f1f of _0x13d114)_0x16d2c7['writer']['removeClass']('ck-suggestion-marker-'+_0x178382,_0x3b8f1f),_0x16d2c7['writer']['removeClass']('ck-suggestion-marker--active',_0x3b8f1f),_0x16d2c7['writer']['removeAttribute']('data-suggestion',_0x3b8f1f),_0x16d2c7['mapper']['unbindElementFromMarkerName'](_0x3b8f1f,_0x3cc295['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x256e91=this['editor'],_0x4dd193=_0x256e91['locale'];function _0x2bf7c5(_0x7c243b){return{'type':'format','content':o(_0x4dd193,'*Format:*\x20%0',_0x7c243b)};}_0x256e91['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x422a6c=>{if('formatBlock'!=_0x422a6c['type'])return;const {data:_0x94cedd}=_0x422a6c;if(_0x94cedd){if('setTableRowHeader'==_0x94cedd['commandName']){const _0x18ffaa=_0x94cedd['commandParams'][0x0]['forceValue'];return _0x2bf7c5(o(_0x4dd193,_0x18ffaa?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x94cedd['commandName']){const _0x4b8c19=_0x94cedd['commandParams'][0x0]['forceValue'];return _0x2bf7c5(o(_0x4dd193,_0x4b8c19?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x105acd=>[_0x105acd,null]));class Mt extends _0x647c34{static get['requires'](){return[Ct];}['afterInit'](){const _0x239d1a=this['editor'];if(!_0x239d1a['plugins']['has']('TableClipboard'))return;const _0x473d1f=_0x239d1a['plugins']['get']('TrackChangesEditing'),_0x3e6dc7=_0x239d1a['plugins']['get']('TableUtils'),_0x49ff82=_0x239d1a['plugins']['get'](Ct),_0x525fb8=_0x239d1a['plugins']['get']('TableClipboard');_0x49ff82['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x239d1a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x239d1a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3fc5f1=null;_0x239d1a['model']['on']('insertContent',(_0x59fc80,_0x2668a0)=>{const [_0x22c7bc,_0x4a571f]=_0x2668a0,_0x396c96=_0x2668a0[_0x2668a0['length']-0x1];_0x396c96&&_0x396c96['forceDefaultExecution']||_0x473d1f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x251b31,_0x44be8b,_0x36c5cf,_0x2c34b7,_0x1aeaaa){if(_0x44be8b&&!_0x44be8b['is']('documentSelection'))return!0x1;const _0x5b3708=_0x1aeaaa['getTableIfOnlyTableInContent'](_0x251b31,_0x36c5cf);if(!_0x5b3708||!Ue(_0x5b3708,void 0x0,_0x2c34b7))return!0x1;const _0x3ab2c8=_0x2c34b7['getSelectionAffectedTableCells'](_0x36c5cf['document']['selection']);if(!_0x3ab2c8['length'])return!0x1;const _0x3ec8e9=_0x3ab2c8[0x0]['findAncestor']('table'),_0x5a8ee9=_0x2c34b7['getRowIndexes'](_0x3ab2c8),_0x20f5d2=_0x2c34b7['getColumnIndexes'](_0x3ab2c8),_0x1519e9={'startRow':_0x5a8ee9['first'],'endRow':_0x5a8ee9['last'],'startColumn':_0x20f5d2['first'],'endColumn':_0x20f5d2['last']};return 0x1==_0x3ab2c8['length']&&(_0x1519e9['endRow']+=_0x2c34b7['getRows'](_0x5b3708)-0x1,_0x1519e9['endColumn']+=_0x2c34b7['getColumns'](_0x5b3708)-0x1),Ue(_0x3ec8e9,_0x1519e9,_0x2c34b7);}(_0x22c7bc,_0x4a571f,_0x239d1a['model'],_0x3e6dc7,_0x525fb8)&&(_0x59fc80['stop'](),_0x3fc5f1={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x239d1a['model']['change'](()=>{_0x239d1a['model']['insertContent'](_0x2668a0[0x0],_0x2668a0[0x1],_0x2668a0[0x2],{'forceDefaultExecution':!0x0});const _0x396bb4=_0x3c9712(),{rowInsertionRanges:_0x55d26b,columnInsertionRanges:_0x5b7ff6,insertionRanges:_0x2b6426,deletionRanges:_0x5cff93,cells:_0x5e5c27}=_0x3fc5f1;_0x55d26b['length']&&_0x473d1f['markMultiRangeInsertion'](_0x55d26b,'tablePasteRow',{'tablePasteChainId':_0x396bb4}),_0x5b7ff6['length']&&_0x473d1f['markMultiRangeInsertion'](_0x5b7ff6,'tablePasteColumn',{'tablePasteChainId':_0x396bb4}),_0x2b6426['length']&&(_0x473d1f['markMultiRangeInsertion'](_0x2b6426,'tablePaste',{'tablePasteChainId':_0x396bb4,'skipNestingCheck':!0x0}),_0x2b6426['forEach'](_0xa5ded0=>_0xa5ded0['detach']?.())),_0x5cff93['length']&&(_0x473d1f['markMultiRangeDeletion'](_0x5cff93,'tablePaste',{'tablePasteChainId':_0x396bb4,'skipNestingCheck':!0x0}),_0x5cff93['forEach'](_0x55248b=>_0x55248b['detach']?.()));const _0x1ed1b5=_0x473d1f['markMultiRangeBlockFormat'](_0x5e5c27['map'](({element:_0x53fbd1})=>_0x53fbd1),{'formatGroupId':_0x3c9712()},[],'tablePasteCell',{'tablePasteChainId':_0x396bb4});if(_0x1ed1b5){const _0x43a0de=_0x1ed1b5['getMarkers'](),_0x1753dd=[];for(const {element:_0x1963b7,attributes:_0xcd60cf}of _0x5e5c27){if(!_0xcd60cf)continue;const _0x3f5a92=_0x239d1a['model']['createRangeOn'](_0x1963b7),_0xeb83df=_0x43a0de['find'](_0x5133ac=>_0x5133ac['getRange']()['isEqual'](_0x3f5a92));_0xeb83df&&_0x1753dd['push']([_0xeb83df['name'],_0xcd60cf]);}_0x1753dd['length']&&_0x1ed1b5['setAttribute']('markerAttributes',Object['fromEntries'](_0x1753dd));}_0x3fc5f1=null;}));},{'priority':_0x192293['high']+0xa}),_0x239d1a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4488a9,_0x467bf3)=>{const [_0x4ff4e1,_0xe20fad,,_0x1d09aa]=_0x467bf3;if(!_0x3fc5f1)return;_0x4488a9['stop']();const _0x2fc663=_0x4ff4e1['cell'],_0x4d12f2=_0xe20fad,_0xda16da=Oe(_0x2fc663),_0x27701a=Oe(_0x4d12f2);_0x4488a9['return']=_0x2fc663;let _0x1ac315=null,_0x39f8fb=null;if(_0x27701a||_0xda16da){if(_0xda16da&&!_0x27701a){_0x1d09aa['remove'](_0x2fc663['getChild'](0x0));for(const _0x4c8b91 of Array['from'](_0x4d12f2['getChildren']()))_0x1d09aa['insert'](_0x4c8b91,_0x2fc663,'end');const _0x44b527=_0x3fc5f1['rowInsertionIndexes']['includes'](_0x4ff4e1['row']),_0x4f43bd=_0x3fc5f1['columnInsertionIndexes']['includes'](_0x4ff4e1['column']);_0x44b527||_0x4f43bd||(_0x1ac315=_0x48b32a['fromRange'](_0x1d09aa['createRangeIn'](_0x2fc663)));}else _0x27701a&&!_0xda16da&&(_0x39f8fb=_0x1d09aa['createRangeIn'](_0x2fc663));}else{const _0x211935=_0x1d09aa['createElement']('tableCellSuggestion'),_0x410d1f=_0x1d09aa['createElement']('tableCellSuggestion');_0x1d09aa['wrap'](_0x1d09aa['createRangeIn'](_0x2fc663),_0x410d1f),_0x1d09aa['insert'](_0x211935,_0x2fc663,0x0);for(const _0x47748a of Array['from'](_0x4d12f2['getChildren']()))_0x1d09aa['insert'](_0x47748a,_0x211935,'end');_0x1ac315=_0x48b32a['fromRange'](_0x1d09aa['createRangeOn'](_0x211935)),_0x39f8fb=_0x48b32a['fromRange'](_0x1d09aa['createRangeOn'](_0x410d1f));}const _0x3846a7=Array['from'](_0x4d12f2['getAttributes']())['filter'](([_0x343705])=>Be['includes'](_0x343705));_0x3fc5f1['cells']['push']({'element':_0x2fc663,'attributes':_0x3846a7['length']?Object['fromEntries'](_0x3846a7):null}),_0x1ac315&&_0x3fc5f1['insertionRanges']['push'](_0x1ac315),_0x39f8fb&&_0x3fc5f1['deletionRanges']['push'](_0x39f8fb);},{'priority':'high'}),_0x3e6dc7['on']('insertColumns',(_0x16e166,_0x2c29e9)=>{const [_0x5aead3,_0x4cf4bc={}]=_0x2c29e9;if(!_0x3fc5f1)return;const _0xb2e14b=_0x4cf4bc['at']||0x0,_0x4159e8=_0x4cf4bc['columns']||0x1;_0x3fc5f1['columnInsertionIndexes']=new Array(_0x4159e8)['fill'](_0xb2e14b)['map']((_0x44a419,_0x255161)=>_0x44a419+_0x255161);for(const {cell:_0x511b45}of _0x3e6dc7['createTableWalker'](_0x5aead3,{'startColumn':_0xb2e14b,'endColumn':_0xb2e14b+_0x4159e8-0x1}))_0x3fc5f1['columnInsertionRanges']['push'](_0x239d1a['model']['createRangeOn'](_0x511b45));},{'priority':'low'}),_0x3e6dc7['on']('insertRows',(_0x279b38,_0x5ce576)=>{const [_0x490474,_0x4b141f={}]=_0x5ce576;if(!_0x3fc5f1)return;const _0x5771d2=_0x4b141f['at']||0x0,_0x5e8e74=_0x4b141f['rows']||0x1;_0x3fc5f1['rowInsertionIndexes']=new Array(_0x5e8e74)['fill'](_0x5771d2)['map']((_0x27749,_0x190fd7)=>_0x27749+_0x190fd7);for(const {cell:_0x102ff6}of _0x3e6dc7['createTableWalker'](_0x490474,{'startRow':_0x5771d2,'endRow':_0x5771d2+_0x5e8e74-0x1}))_0x3fc5f1['rowInsertionRanges']['push'](_0x239d1a['model']['createRangeOn'](_0x102ff6));},{'priority':'low'}),_0x473d1f['descriptionFactory']['registerDescriptionCallback'](_0x87d4b8=>{if(_0x87d4b8['subType']&&_0x87d4b8['subType']['startsWith']('tablePaste'))return _0x87d4b8['previous']?{}:{'type':'insertion','content':o(_0x239d1a['locale'],'*Replace\x20table\x20cells*')};});const _0x527c67=()=>!0x1;for(const _0x15c54e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x473d1f['_suggestionFactory']['registerCustomCallback']('insertion',_0x15c54e,'join',_0x527c67),_0x473d1f['_suggestionFactory']['registerCustomCallback']('deletion',_0x15c54e,'join',_0x527c67),_0x473d1f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x15c54e,'join',_0x527c67);_0x473d1f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x527c67),_0x473d1f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x7f1539,_0x37f48,_0x125e36)=>{const _0x509356=_0x7f1539['map'](_0xfe49e9=>_0xfe49e9['getContainedElement']())['filter'](_0x39f154=>_0x39f154),_0x330cfa=new Map(_0x509356['map'](_0x3d9a7b=>[_0x3d9a7b,null]));if(_0x3fc5f1){for(const {element:_0x49e701,attributes:_0x32c59d}of _0x3fc5f1['cells'])_0x32c59d&&_0x330cfa['set'](_0x49e701,_0x32c59d);}else{if(_0x125e36&&_0x125e36['markerAttributes'])for(const [_0xe21dc8,_0x5db637]of Object['entries'](_0x125e36['markerAttributes'])){const _0x57a44b=_0x239d1a['model']['markers']['get'](_0xe21dc8),_0x3daad4=_0x57a44b?_0x57a44b['getRange']()['getContainedElement']():null;_0x3daad4&&_0x330cfa['set'](_0x3daad4,_0x5db637);}}_0x239d1a['model']['change'](_0x3a1d9f=>{for(const [_0x529e08,_0x107af9]of _0x330cfa)_0x3a1d9f['setAttributes']({...xe,..._0x107af9},_0x529e08);});});const _0x41452b=(_0x236ad9,_0x1cd468)=>{_0x473d1f['_suggestionFactory']['registerCustomCallback'](_0x236ad9,'tablePaste',_0x1cd468,(_0x2b42b9,_0x1a4200,_0x2e08c7)=>{_0x239d1a['model']['change'](_0x3badb6=>{const _0x233a3e=[];for(const _0x50dd56 of _0x2b42b9){const _0x28687e=_0x50dd56['start']['nodeAfter'];_0x28687e['is']('element','tableCellSuggestion')&&_0x233a3e['push'](_0x28687e);}_0x473d1f['_suggestionFactory']['getSuggestionCallback'](_0x236ad9,null,_0x1cd468)(_0x2b42b9,_0x1a4200,_0x2e08c7);for(const _0x29334e of _0x233a3e)'$graveyard'!=_0x29334e['root']['rootName']&&_0x3badb6['unwrap'](_0x29334e);});});};_0x41452b('insertion','accept'),_0x41452b('insertion','discard'),_0x41452b('deletion','accept'),_0x41452b('deletion','discard'),_0x473d1f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1a44e0=>{const _0x1eada3=_0x1a44e0['map'](_0x4f5e8c=>_0x4f5e8c['getContainedElement']()),_0x1e4b5f=_0x1eada3[0x0]['findAncestor']('table'),{minRow:_0x416ce7,maxRow:_0x1aa7a7}=_0x49ff82['_getCoordsForCells'](_0x1eada3);_0x3e6dc7['removeRows'](_0x1e4b5f,{'at':_0x416ce7,'rows':_0x1aa7a7-_0x416ce7+0x1});}),_0x473d1f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x329007=>{const _0x16bda6=_0x329007['map'](_0x143c1b=>_0x143c1b['getContainedElement']()),_0x2a5b02=_0x16bda6[0x0]['findAncestor']('table'),{minColumn:_0x4538eb,maxColumn:_0x258a63}=_0x49ff82['_getCoordsForCells'](_0x16bda6);_0x3e6dc7['removeColumns'](_0x2a5b02,{'at':_0x4538eb,'columns':_0x258a63-_0x4538eb+0x1});});const _0x4b419c=(_0x507714,_0x2b5ed0)=>{if(!_0x2b5ed0['subType']||!_0x2b5ed0['subType']['startsWith']('tablePaste'))return;const _0x3e834d=_0x2b5ed0['attributes']['tablePasteChainId'],_0x4443c4=_0x473d1f['getSuggestions']()['filter'](_0x1c7da5=>_0x1c7da5['isInContent']&&_0x1c7da5['attributes']&&_0x1c7da5['attributes']['tablePasteChainId']==_0x3e834d);_0x4443c4['length']&&_0x2b5ed0['getAllAdjacentSuggestions']()['length']!=_0x4443c4['length']&&_0x4443c4['reduce']((_0x5621a5,_0x555256)=>(_0x5621a5['next']=_0x555256,_0x555256['previous']=_0x5621a5,_0x555256));};function _0xad6944(_0x3bccf8,_0x346fe0=!0x0){const {id:_0x407bdb,authorId:_0x40f6be}=_0x473d1f['_splitMarkerName'](_0x3bccf8['markerName']),_0x5e7916=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3d7e49=_0x473d1f['activeMarkers']['includes'](_0x3bccf8['markerName']);return _0x3d7e49&&_0x5e7916['push']('ck-suggestion-marker--active'),{'classes':_0x5e7916,'attributes':{'data-suggestion':_0x407bdb,'data-author-id':_0x40f6be},'priority':_0x3d7e49&&_0x346fe0?0xbc2:0xbb8};}_0x473d1f['on']('suggestionLoaded',_0x4b419c,{'priority':'high'}),_0x473d1f['on']('suggestionUnloaded',_0x4b419c,{'priority':'high'}),_0x239d1a['model']['document']['registerPostFixer'](()=>{let _0x458f11=!0x1;const _0x2b4933=Array['from'](_0x239d1a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ab10c,data:_0x1d3261}of _0x2b4933){const {group:_0x162927,type:_0x1ed778,id:_0x189eef}=_0x473d1f['_splitMarkerName'](_0x1ab10c);if('suggestion'!=_0x162927||'deletion'!=_0x1ed778||_0x1d3261['oldRange'])continue;if(!_0x473d1f['hasSuggestion'](_0x189eef))continue;const _0x3ed83d=_0x473d1f['getSuggestion'](_0x189eef)['getRanges'](),_0x11ba27=_0x239d1a['plugins']['get']('Users')['me'];for(const _0x34b212 of _0x473d1f['getSuggestions']()){if(!_0x34b212['isInContent']||_0x34b212['author']!=_0x11ba27)continue;if('formatBlock'!=_0x34b212['type']||'tablePasteCell'!=_0x34b212['subType'])continue;if(_0x34b212['getRanges']()['every'](_0x4fbe33=>_0x3ed83d['some'](_0x1903d5=>_0x1903d5['containsRange'](_0x4fbe33,!0x0)))){for(const _0x2b720b of _0x34b212['getAllAdjacentSuggestions']())_0x2b720b['isInContent']&&(_0x2b720b['discard'](),_0x458f11=!0x0);}}}return _0x458f11;}),_0x239d1a['model']['document']['registerPostFixer'](_0x59152f=>{const _0x151db9=_0x239d1a['commands']['get']('redo');if(!_0x151db9||!_0x151db9['_createdBatches']['has'](_0x59152f['batch']))return!0x1;let _0x3e4d9c=!0x1;const _0x4269cb=_0x239d1a['plugins']['get']('Users')['me'],_0x4cd03f=_0x239d1a['model']['document']['differ']['getChanges'](),_0x346649=Array['from'](_0x239d1a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4ed75a,data:_0x23ad3c})=>{const {group:_0x7dd68a,subType:_0x1dc1f6,authorId:_0x22a6fc}=_0x473d1f['_splitMarkerName'](_0x4ed75a);return'suggestion'==_0x7dd68a&&'tablePaste'==_0x1dc1f6&&_0x22a6fc==_0x4269cb['id']&&!_0x23ad3c['oldRange'];});for(const _0x3181ba of _0x4cd03f){if('insert'!=_0x3181ba['type']||'tableCellSuggestion'!=_0x3181ba['name']||0x1!=_0x3181ba['length'])continue;const _0x444772=_0x59152f['createRange'](_0x3181ba['position'],_0x3181ba['position']['getShiftedBy'](0x1));if(!_0x346649['find'](({data:_0xc3fd3e})=>_0xc3fd3e['newRange']['isEqual'](_0x444772))){for(const {name:_0x1c3dfa,data:_0x1151fd}of _0x346649)if(_0x444772['containsRange'](_0x1151fd['newRange'])){_0x59152f['updateMarker'](_0x1c3dfa,{'range':_0x444772}),_0x3e4d9c=!0x0;break;}}}return _0x3e4d9c;}),_0x239d1a['model']['document']['registerPostFixer'](_0x445488=>{let _0x6374ee=!0x1;const _0x45bb84=_0x239d1a['plugins']['get']('Users')['me'],_0x390e2d=_0x473d1f['getSuggestions']()['filter'](_0x1d13d1=>_0x1d13d1['isInContent']&&_0x1d13d1['author']==_0x45bb84),_0x278d2f=new Set(),_0x595117=new Set();for(const _0x151f72 of _0x390e2d)if('tablePaste'==_0x151f72['subType'])for(const _0x28e34f of _0x151f72['getMarkers']()){const _0x3b230c=_0x28e34f['getRange']()['getContainedElement']();if(_0x3b230c){if(_0x3b230c['is']('element','tableCellSuggestion')&&Oe(_0x3b230c)){_0x151f72['removeMarker'](_0x28e34f['name']),_0x278d2f['add'](_0x3b230c),_0x6374ee=!0x0;const _0x125164=_0x3b230c['nextSibling'],_0x47a9d5=_0x3b230c['previousSibling'],_0x341bc9=_0x125164&&_0x125164['is']('element','tableCellSuggestion'),_0x59655d=_0x47a9d5&&_0x47a9d5['is']('element','tableCellSuggestion');_0x341bc9&&!_0x278d2f['has'](_0x125164)&&_0x595117['add'](_0x125164),_0x59655d&&!_0x278d2f['has'](_0x47a9d5)&&_0x595117['add'](_0x47a9d5);}else _0x3b230c['is']('element','paragraph')&&_0x3b230c['isEmpty']&&(_0x151f72['removeMarker'](_0x28e34f['name']),_0x6374ee=!0x0);}}else{if('tablePasteCell'==_0x151f72['subType']){if(!_0x151f72['attributes']||!_0x151f72['attributes']['tablePasteChainId'])continue;const _0x517d38=_0x151f72['attributes']['markerAttributes'];if(_0x517d38&&Object['keys'](_0x517d38)['length'])continue;const _0x1f9a8e=_0x151f72['attributes']['tablePasteChainId'];let _0x4f870b=!0x0,_0x145011=!0x0;for(const _0x448f79 of _0x390e2d)if(_0x448f79['subType']&&_0x448f79['subType']['startsWith']('tablePaste')){if(!_0x448f79['attributes']['tablePasteChainId']){_0x145011=!0x1;break;}if(_0x448f79['id']!=_0x151f72['id']&&_0x448f79['attributes']['tablePasteChainId']==_0x1f9a8e){_0x4f870b=!0x1;break;}}_0x145011&&_0x4f870b&&(_0x151f72['removeMarkers'](),_0x6374ee=!0x0);}}for(const _0x3f4182 of _0x278d2f)_0x445488['remove'](_0x3f4182);for(const _0x120581 of _0x595117)_0x445488['unwrap'](_0x120581);return _0x6374ee;}),_0x239d1a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1682b2=>_0xad6944(_0x1682b2),'converterPriority':'high'}),_0x239d1a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1ba958,_0x51c204)=>_0x51c204['options']['showSuggestionHighlights']?_0xad6944(_0x1ba958,!0x1):null,'converterPriority':'high'});const _0x26d202=_0x239d1a['editing']['view'];this['listenTo'](_0x26d202['document'],'clipboardOutput',(_0x5c5097,_0x5e4838)=>{const _0x1e167e=[];for(const _0x21b978 of _0x26d202['createRangeIn'](_0x5e4838['content'])['getItems']())_0x21b978['is']('element','suggestion-td')&&_0x1e167e['push'](_0x21b978);_0x26d202['change'](_0x20bb84=>{for(const _0x1fff37 of _0x1e167e)_0x20bb84['move'](_0x20bb84['createRangeIn'](_0x1fff37),_0x20bb84['createPositionBefore'](_0x1fff37)),_0x20bb84['remove'](_0x1fff37);});});}}function Oe(_0x348338){if(_0x348338['isEmpty'])return!0x0;const _0x500b7c=_0x348338['getChild'](0x0);return _0x500b7c['is']('element','paragraph')&&_0x500b7c['isEmpty'];}function Ue(_0x50173a,_0x1d0b04={},_0x380cde){for(const {isAnchor:_0x4059a4,cellHeight:_0xdf6c03,cellWidth:_0x143052}of _0x380cde['createTableWalker'](_0x50173a,{'includeAllSlots':!0x0,..._0x1d0b04}))if(!_0x4059a4||0x1!=_0xdf6c03||0x1!=_0x143052)return!0x1;return!0x0;}class $t extends _0x647c34{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1205bc=this['editor']['plugins']['get']('TrackChangesEditing');_0x1205bc['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1205bc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1205bc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1205bc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1205bc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1205bc['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3a76fc,_0x107c7f){const _0x1ed22=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4898b8=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xb88230=_0x107c7f['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2f573f=_0x4898b8['getColumnGroupElement'](_0xb88230);let _0xe6a321=_0x2f573f?_0x4898b8['getTableColumnsWidths'](_0x2f573f):null,_0x959720=_0xb88230['getAttribute']('tableWidth')||null;const _0x23d73e=_0x107c7f['tableWidth']||_0x959720,_0x85236=_0x107c7f['columnWidths']||_0xe6a321,_0x3d6137=this['editor']['plugins']['get']('Users')['me'];for(const _0x4fc410 of _0x1ed22['getSuggestions']()){const _0x172c86=_0x4fc410['getContainedElement']();if('resizeTable'===_0x4fc410['subType']&&_0x172c86===_0xb88230){_0x4fc410['author']!==_0x3d6137&&_0x4fc410['discard']();const _0x5b11dc=_0x4fc410['data']['commandParams'];_0x959720=_0x5b11dc[0x0]['tableWidth'],_0xe6a321=_0x5b11dc[0x0]['columnWidths'];break;}}_0x3a76fc({'table':_0xb88230,'tableWidth':_0x23d73e,'columnWidths':_0x85236}),_0x1ed22['markBlockFormat'](_0xb88230,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x959720,'columnWidths':_0xe6a321}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x144ea3){if('formatBlock'!=_0x144ea3['type']&&'formatInline'!=_0x144ea3['type'])return;const {data:_0x45b494}=_0x144ea3;if(_0x45b494&&'resizeTable'===_0x45b494['formatGroupId']){const _0x28da53='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x28da53)};}}}class Bt extends _0x647c34{['afterInit'](){const _0x4a7839=this['editor'];_0x4a7839['plugins']['has']('Template')&&_0x4a7839['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x647c34{['afterInit'](){const _0x5b8290=this['editor'];if(!_0x5b8290['commands']['get']('insertTableOfContents'))return;_0x5b8290['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x58620c=_0x5b8290['plugins']['get']('TrackChangesEditing'),_0x36a0f0=_0x5b8290['locale'];_0x58620c['descriptionFactory']['registerElementLabel']('tableOfContents',_0x47f719=>o(_0x36a0f0,'ELEMENT_TABLE_OF_CONTENTS',_0x47f719));}}class Rt extends _0x647c34{['afterInit'](){const _0x414280=this['editor'];if(!_0x414280['plugins']['has']('Title'))return;const _0x342cbf=_0x414280['plugins']['get']('TrackChangesEditing');_0x342cbf['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x414280['locale'],'ELEMENT_TITLE')),_0x414280['model']['document']['registerPostFixer'](_0x2dab77=>{let _0x147854=!0x1;const _0x7c1f=Array['from'](_0x414280['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x327931,data:_0x40cc0d}of _0x7c1f){const {group:_0x596e61}=_0x342cbf['_splitMarkerName'](_0x327931);if('suggestion'!==_0x596e61||!_0x40cc0d['newRange'])continue;const _0x108b69=_0x40cc0d['newRange'],_0x4bbe44=_0x108b69['end']['nodeBefore'];if(!_0x4bbe44||!_0x4bbe44['is']('element','title-content'))continue;if(!_0x108b69['start']['isTouching'](_0x108b69['end']))continue;const _0x5566e1=_0x414280['model']['schema']['getNearestSelectionRange'](_0x108b69['end'],'forward');if(_0x5566e1&&_0x5566e1['isCollapsed']){const _0x2e5dc8=_0x2dab77['createRange'](_0x108b69['start'],_0x5566e1['start']);_0x2e5dc8['isEqual'](_0x108b69)||(_0x2dab77['updateMarker'](_0x327931,{'range':_0x2e5dc8}),_0x147854=!0x0);}_0x147854||(_0x2dab77['removeMarker'](_0x327931),_0x147854=!0x0);}return _0x147854;});}}class Tt extends _0x647c34{['afterInit'](){const _0x57ad68=this['editor'],_0x1d35f4=_0x57ad68['plugins']['get']('TrackChangesEditing');_0x57ad68['plugins']['has']('Uploadcare')&&(_0x1d35f4['enableCommand']('uploadcare'),_0x57ad68['plugins']['has']('UploadcareImageEdit')&&(_0x1d35f4['enableCommand']('uploadcareImageEdit'),_0x1d35f4['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1d35f4['registerBlockAttribute']('uploadcareImageId'),_0x1d35f4['descriptionFactory']['registerDescriptionCallback'](_0x14a4f0=>{if('attribute'!=_0x14a4f0['type'])return;const {data:_0x2ae278}=_0x14a4f0;return _0x2ae278&&'uploadcareImageId'==_0x2ae278['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x647c34{['afterInit'](){const _0x2e6fae=this['editor'],_0x8a9b70=_0x2e6fae['plugins']['get']('TrackChangesEditing');_0x2e6fae['plugins']['has']('UndoEditing')&&(_0x8a9b70['enableCommand']('undo'),_0x8a9b70['enableCommand']('redo'));}}class Et extends _0x647c34{static get['requires'](){return[Ct];}['afterInit'](){const _0x251495=this['editor'];if(!_0x251495['plugins']['has']('TableCaptionEditing'))return;_0x251495['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x647c34{['tableProperties'];['tableCellProperties'];constructor(_0x4dfb3f){super(_0x4dfb3f),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 _0x1cbf21=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1bdaec of this['tableProperties'])_0x1cbf21['enableCommand'](_0x1bdaec,(_0x435025,_0x15512c)=>{const _0x41bedf=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1bdaec,[_0x41bedf],this['tableProperties'],'tableProperties',_0x435025,_0x15512c);});_0x1cbf21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1cbf21['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1cbf21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x59e3fc,_0x1c110f)=>this['handleDiscardAction'](this['tableProperties'],_0x59e3fc,_0x1c110f)),_0x1cbf21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x345cb9 of this['tableCellProperties'])_0x1cbf21['enableCommand'](_0x345cb9,(_0x2e9549,_0x3e8bd8)=>{const _0x382919=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x345cb9,_0x382919,this['tableCellProperties'],'tableCellProperties',_0x2e9549,_0x3e8bd8);});_0x1cbf21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1cbf21['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1cbf21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x147aca,_0x459fd4)=>this['handleDiscardAction'](this['tableCellProperties'],_0x147aca,_0x459fd4)),_0x1cbf21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1cbf21['descriptionFactory']['registerDescriptionCallback'](_0x375415=>this['handleSuggestionDescription'](_0x375415));}['_handlePropertyChange'](_0x492b98,_0x318634,_0x35797d,_0x3c6cad,_0x23610e,_0x46f478){const _0x251f21=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x46f478['batch'],()=>{for(const _0x4a62ab of _0x318634){if(this['_getSuggestion'](_0x4a62ab,_0x3c6cad))_0x23610e(_0x46f478);else{const _0xb4e039={};for(const _0x469c53 of _0x35797d){const _0xde81f7=_0x4a62ab['getAttribute'](_0x469c53);void 0x0!==_0xde81f7&&(_0xb4e039[_0x469c53]=_0xde81f7);}_0x23610e(_0x46f478),_0x251f21['markBlockFormat'](_0x4a62ab,{'commandParams':[_0xb4e039]},[],_0x3c6cad);}}});}['handleDiscardAction'](_0x12bcbe,_0x5d3a5a,_0x5e9a18){const _0x528b15=_0x5d3a5a[0x0]['start']['nodeAfter'],_0x550b19=_0x5e9a18['commandParams'][0x0];this['editor']['model']['change'](_0x5ee2e4=>{for(const _0x2a14d6 of _0x12bcbe)void 0x0!==_0x550b19[_0x2a14d6]?_0x5ee2e4['setAttribute'](_0x2a14d6,_0x550b19[_0x2a14d6],_0x528b15):_0x5ee2e4['removeAttribute'](_0x2a14d6,_0x528b15);});}['handleSuggestionDescription'](_0x38828a){if(_0x38828a['data'])switch(_0x38828a['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'](_0x3ffbde,_0x47b547){const _0x478da3=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x595229 of _0x478da3['getSuggestions']({'skipNotAttached':!0x0})){const _0x454410=_0x595229['getContainedElement']();if(_0x595229['subType']===_0x47b547&&_0x454410===_0x3ffbde)return _0x595229;}return null;}}const m='$elementName';class p extends _0x647c34{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x25306f,_0x23fd1d,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2250ce){super(_0x2250ce),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x19dc42,_0x7a0488,_0x434955,_0x4f7f64)=>{this['_model']['change'](()=>{for(const _0x146e8d of[..._0x4f7f64,..._0x434955])this['_model']['markers']['has'](_0x146e8d)&&_0x2250ce['editing']['reconvertMarker'](_0x146e8d);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2250ce['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x2250ce['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2250ce['config']['get']('trackChanges.trackFormatChanges'),_0x2250ce['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2250ce['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2250ce,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x279e50=this['editor'],_0x1b8c22=(_0x37fd63,_0x3966e2)=>{if('attribute'!=_0x37fd63)return'ck-suggestion-marker-'+_0x37fd63;const _0xfab0d5=_0x3966e2['split']('|')[0x0];return this['_isBlockAttribute'](_0xfab0d5)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x279e50['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xa08432=>{const {id:_0x187282,authorId:_0x44ce56,type:_0x284d2b,subType:_0x513d86}=this['_splitMarkerName'](_0xa08432['markerName']),_0x5f44c6=['ck-suggestion-marker',_0x1b8c22(_0x284d2b,_0x513d86)];let _0x262548=0xbb8;return this['activeMarkers']['includes'](_0xa08432['markerName'])&&(_0x5f44c6['push']('ck-suggestion-marker--active'),_0x262548=0xbc2),'deletion'==_0x284d2b&&(_0x262548+=0x5),{'classes':_0x5f44c6,'attributes':{'data-suggestion':_0x187282,'data-author-id':_0x44ce56},'priority':_0x262548};}}),_0x279e50['conversion']['for']('dataDowncast')['add'](_0x398013=>{_0x398013['on']('addMarker:suggestion',(_0x2e8b3e,_0x4e278c,_0x52a3bc)=>{if(!_0x52a3bc['options']['showSuggestionHighlights'])return;const _0x59d75b=_0x4e278c['item'];if(!_0x59d75b)return;const _0x1af30e=_0x52a3bc['mapper']['toViewElement'](_0x59d75b);_0x279e50['model']['schema']['isObject'](_0x59d75b)&&_0x1af30e&&!_0x1af30e['getCustomProperty']('widget')&&_0x1af30e['is']('containerElement')&&_0x10a07c(_0x1af30e,_0x52a3bc['writer']);},{'priority':'high'});}),_0x279e50['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xa096be,_0x2c0ad1)=>{if(!_0x2c0ad1['options']['showSuggestionHighlights'])return null;const {type:_0x58d7ff,subType:_0x448d37}=this['_splitMarkerName'](_0xa096be['markerName']);return{'classes':['ck-suggestion-marker',_0x1b8c22(_0x58d7ff,_0x448d37)],'priority':0xbb8};}});const _0x22c615=({showActiveMarkers:_0x3b6a5c=!0x0,isAttributeSuggestion:_0x439078=!0x1}={})=>(_0x4a5793,_0x5c2888,_0x38f746)=>{if(!_0x5c2888['item'])return;const {id:_0x267467,authorId:_0x21cb85}=this['_splitMarkerName'](_0x5c2888['markerName']);if(_0x439078){const _0x5cf7b4=this['_suggestions']['get'](_0x267467),_0x5d05b7=this['_getAttributeKey'](_0x5cf7b4);if(!this['_isBlockAttribute'](_0x5d05b7))return;}if(_0x5c2888['item']['is']('selection'))return void _0x38f746['consumable']['consume'](_0x5c2888['item'],_0x4a5793['name']);const _0x17b4e1=_0x38f746['mapper']['toViewElement'](_0x5c2888['item']);if(_0x5c2888['item']['is']('element')&&_0x279e50['model']['schema']['isBlock'](_0x5c2888['item'])&&!_0x17b4e1['getCustomProperty']('addHighlight')){_0x38f746['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x17b4e1),_0x38f746['writer']['setAttribute']('data-suggestion',_0x267467,_0x17b4e1),_0x38f746['writer']['setAttribute']('data-author-id',_0x21cb85,_0x17b4e1),_0x38f746['mapper']['bindElementToMarker'](_0x17b4e1,_0x5c2888['markerName']),_0x3b6a5c&&(this['activeMarkers']['includes'](_0x5c2888['markerName'])?_0x38f746['writer']['addClass']('ck-suggestion-marker--active',_0x17b4e1):_0x38f746['writer']['removeClass']('ck-suggestion-marker--active',_0x17b4e1));for(const _0xb6d192 of _0x279e50['model']['createRangeIn'](_0x5c2888['item'])['getItems']())_0x38f746['consumable']['consume'](_0xb6d192,_0x4a5793['name']);_0x38f746['consumable']['consume'](_0x5c2888['item'],_0x4a5793['name']);}};_0x279e50['conversion']['for']('dataDowncast')['add'](_0x2f1266=>{_0x2f1266['on']('addMarker:suggestion:formatBlock',(_0x5425f3,_0x242c6e,_0x30dc07)=>{_0x30dc07['options']['showSuggestionHighlights']&&_0x22c615({'showActiveMarkers':!0x1})(_0x5425f3,_0x242c6e,_0x30dc07);},{'priority':'highest'});}),_0x279e50['conversion']['for']('dataDowncast')['add'](_0x502d5d=>{_0x502d5d['on']('addMarker:suggestion:attribute',(_0x143954,_0x5a32fd,_0x23a820)=>{_0x23a820['options']['showSuggestionHighlights']&&_0x22c615({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x143954,_0x5a32fd,_0x23a820);},{'priority':'highest'});}),_0x279e50['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x47f89f,_0x2a6ad7)=>_0x2a6ad7['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x47f89f['substr'](0xb)}}),_0x279e50['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3584c8,{writer:_0x33e271})=>{let _0xa33f7d='suggestion:'+_0x3584c8['getAttribute']('suggestion-type')+':'+_0x3584c8['getAttribute']('id');return _0x3584c8['getAttribute']('marker-count')&&(_0xa33f7d+=':'+_0x3584c8['getAttribute']('marker-count')),_0x33e271['createElement']('$marker',{'data-name':_0xa33f7d});}}),_0x279e50['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x279e50['conversion']['for']('editingDowncast')['add'](_0x58023e=>{_0x58023e['on']('addMarker:suggestion:formatBlock',_0x22c615(),{'priority':'high'});}),_0x279e50['conversion']['for']('editingDowncast')['add'](_0x314ca6=>{_0x314ca6['on']('addMarker:suggestion:attribute',_0x22c615({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x279e50['conversion']['for']('editingDowncast')['add'](_0x410cd6=>{_0x410cd6['on']('removeMarker:suggestion:formatBlock',(_0x4ae55b,_0x1229c6,_0x556de6)=>{const _0x1c478f=_0x556de6['mapper']['markerNameToElements'](_0x1229c6['markerName']);if(_0x1c478f){for(const _0x136939 of _0x1c478f)_0x136939['getCustomProperty']('addHighlight')||(_0x556de6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x136939),_0x556de6['writer']['removeAttribute']('data-suggestion',_0x136939),_0x556de6['writer']['removeAttribute']('data-author-id',_0x136939),_0x556de6['mapper']['unbindElementFromMarkerName'](_0x136939,_0x1229c6['markerName']));}},{'priority':'high'});}),_0x279e50['conversion']['for']('editingDowncast')['add'](_0x141f7f=>{_0x141f7f['on']('removeMarker:suggestion:attribute',(_0x432357,_0x5e0dc3,_0x4defb8)=>{const _0x2bfef8=_0x4defb8['mapper']['markerNameToElements'](_0x5e0dc3['markerName']);if(!_0x2bfef8)return;const {id:_0x4c5f3d}=this['_splitMarkerName'](_0x5e0dc3['markerName']),_0x3ad703=this['_suggestions']['get'](_0x4c5f3d),_0x439a72=this['_getAttributeKey'](_0x3ad703);if(this['_isBlockAttribute'](_0x439a72)){for(const _0x29f29a of _0x2bfef8)_0x29f29a['getCustomProperty']('addHighlight')||(_0x4defb8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x29f29a),_0x4defb8['writer']['removeAttribute']('data-suggestion',_0x29f29a),_0x4defb8['writer']['removeAttribute']('data-author-id',_0x29f29a),_0x4defb8['mapper']['unbindElementFromMarkerName'](_0x29f29a,_0x5e0dc3['markerName']));}},{'priority':'high'});}),_0x279e50['model']['document']['registerPostFixer'](_0xc97e6f=>{let _0x3aaef7=!0x1;const _0x4cb2cc=Array['from'](_0x279e50['model']['document']['differ']['getChangedMarkers']()),_0x30cb76=new Set();for(const {name:_0x44379c,data:_0x2e2c17}of _0x4cb2cc){const {group:_0x4ab0ec,type:_0x5de3b4,subType:_0x27f273,id:_0x1cc1bb}=this['_splitMarkerName'](_0x44379c);if('suggestion'!==_0x4ab0ec)continue;const _0x3f0b04=this['_suggestions']['get'](_0x1cc1bb);if(null!=_0x2e2c17['newRange']){'formatInline'==_0x5de3b4&&(_0x3aaef7=_0x3aaef7||Lt(_0x2e2c17['newRange'],_0x44379c,_0xc97e6f,_0x279e50['model']['schema']));const _0x1342c9='attribute'==_0x5de3b4&&this['_isBlockAttribute'](_0x27f273['split']('|')[0x0]);if(_0x2e2c17['newRange']['isCollapsed']||'$graveyard'==_0x2e2c17['newRange']['root']['rootName']||'formatBlock'==_0x5de3b4&&!Ht(_0x2e2c17['newRange'])||_0x1342c9&&!Ht(_0x2e2c17['newRange'])||'deletion'==_0x5de3b4&&!(!Ft(_0x3ecc9a=_0x2e2c17['newRange'])&&!function(_0x580c87){return _0x580c87['start']['parent']==_0x580c87['end']['nodeBefore']&&_0x580c87['start']['isAtEnd'];}(_0x3ecc9a)))_0xc97e6f['removeMarker'](_0x44379c),_0x3aaef7=!0x0;else{if(!_0x3f0b04||!_0x3f0b04['isInContent'])continue;if(_0x2e2c17['newRange']&&_0x2e2c17['oldRange']&&_0x2e2c17['newRange']['isEqual'](_0x2e2c17['oldRange']))continue;_0x30cb76['add'](_0x3f0b04);}}}var _0x3ecc9a;return _0x30cb76['size']>0x0&&(_0x3aaef7=!!this['_joinWithAdjacentSuggestions'](_0x30cb76)||_0x3aaef7),_0x3aaef7;}),_0x279e50['model']['document']['registerPostFixer'](_0x1e6e65=>{let _0x4cb6fb=!0x1;for(const _0x1b83c5 of _0x279e50['model']['document']['differ']['getChanges']())if('insert'==_0x1b83c5['type'])for(const _0x54b74b of this['_suggestions']['values']()){if(_0x54b74b['isMultiRange']||!_0x54b74b['isInContent'])continue;const _0x31b5eb='formatBlock'==_0x54b74b['type'],_0x13779f=this['_getAttributeKey'](_0x54b74b),_0x368c0f=_0x13779f&&this['_isBlockAttribute'](_0x13779f);if(!_0x31b5eb&&!_0x368c0f)continue;const _0x4b1aea=_0x54b74b['getFirstRange']();if(_0x4b1aea['start']['parent']!=_0x4b1aea['end']['parent']&&!_0x4b1aea['end']['isAtEnd']){const _0x2a7aad=_0x279e50['model']['createPositionAt'](_0x4b1aea['start']['nodeAfter'],'end'),_0x556eec=_0x279e50['model']['createRange'](_0x4b1aea['start'],_0x2a7aad);_0x1e6e65['updateMarker'](_0x54b74b['getFirstMarker'](),{'range':_0x556eec}),_0x4cb6fb=!0x0;}}return _0x4cb6fb;}),_0x279e50['model']['document']['registerPostFixer'](_0xe44907=>this['_processAttributeChanges'](_0xe44907)),_0x279e50['model']['document']['registerPostFixer'](_0x2dc929=>!_0x2dc929['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2dc929)),_0x279e50['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x279e50['model']['document']['on']('change:data',(_0x4722d2,_0x515784)=>{if(!_0x515784['isLocal']||_0x515784['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x340342=_0x279e50['model']['document']['differ']['getChanges']();if(0x0==_0x340342['length'])return;const _0x3501e4=[],_0x5a3c7a=_0x340342['filter'](_0xa04d43=>'attribute'==_0xa04d43['type']),_0x2c0482=_0x340342['filter'](_0x3deaf5=>'insert'==_0x3deaf5['type']&&'$text'!=_0x3deaf5['name']);for(const _0x3516e9 of _0x5a3c7a)this['_isRegisteredAttribute'](_0x3516e9['attributeKey'])&&_0x3501e4['push']({'key':_0x3516e9['attributeKey'],'newValue':_0x3516e9['attributeNewValue'],'oldValue':_0x3516e9['attributeOldValue'],'range':qt(_0x3516e9['range'],_0x279e50['model'])});for(const _0x48a49e of _0x2c0482){if('rename'!=_0x48a49e['action']&&'refresh'!=_0x48a49e['action'])continue;const _0x3cbe32=zt(_0x48a49e['position']['nodeAfter'],_0x279e50['model']),_0x25fbed=_0x48a49e['before'];'rename'==_0x48a49e['action']&&_0x3501e4['push']({'key':m,'newValue':_0x48a49e['name'],'oldValue':_0x25fbed['name'],'range':_0x3cbe32});for(const [_0x1293b7,_0x15ea74]of _0x25fbed['attributes']){if(!this['_isRegisteredAttribute'](_0x1293b7))continue;const _0x4a45df=_0x48a49e['attributes']['get'](_0x1293b7);_0x15ea74!==_0x4a45df&&_0x3501e4['push']({'key':_0x1293b7,'newValue':_0x4a45df,'oldValue':_0x15ea74,'range':_0x3cbe32});}for(const [_0x18c94f,_0x5d2bd3]of _0x48a49e['attributes'])this['_isRegisteredAttribute'](_0x18c94f)&&(_0x25fbed['attributes']['has'](_0x18c94f)||_0x3501e4['push']({'key':_0x18c94f,'newValue':_0x5d2bd3,'oldValue':null,'range':_0x3cbe32}));}0x0!=_0x3501e4['length']&&_0x279e50['model']['enqueueChange'](_0x515784,_0x83ede0=>{const _0x43c73c=_0x3c9712();for(const {range:_0x5c3db9,key:_0xe9920b,oldValue:_0x11a500,newValue:_0x12caf6}of _0x3501e4)this['markAttributeChange'](_0x5c3db9,_0xe9920b,_0x11a500,_0x12caf6,{'groupId':_0x43c73c});this['_reduceExistingSuggestions'](_0x83ede0,_0x3501e4);});},{'priority':'lowest'}),_0x279e50['model']['markers']['on']('update:suggestion',(_0x50ac54,_0x396b38,_0x465ac6)=>{if(null==_0x465ac6){const {id:_0x2c627d}=this['_splitMarkerName'](_0x396b38['name']),_0x5c79aa=this['_suggestions']['get'](_0x2c627d);_0x5c79aa&&_0x5c79aa['addMarkerName'](_0x396b38['name']);}}),_0x279e50['model']['document']['on']('change:data',()=>{const _0x326389=Array['from'](_0x279e50['model']['document']['differ']['getChangedMarkers']())['filter'](_0x20dd05=>'suggestion'===this['_splitMarkerName'](_0x20dd05['name'])['group']);if(0x0===_0x326389['length'])return;_0x326389['sort']((_0x2d4d3c,_0x51a26b)=>{const _0x48d28e=_0x2d4d3c['data']['oldRange'],_0x2226d5=_0x51a26b['data']['oldRange'];return null===_0x48d28e&&null===_0x2226d5?0x0:null===_0x48d28e&&null!==_0x2226d5?-0x1:null!==_0x48d28e&&null===_0x2226d5?0x1:_0x48d28e['start']['isBefore'](_0x2226d5['start'])?-0x1:0x1;});const _0x3432db=new Set(),_0x5f5278=new Set();for(const {name:_0x2de99d,data:_0x599c40}of _0x326389){const {id:_0x160a27}=this['_splitMarkerName'](_0x2de99d);if(null===_0x599c40['oldRange']){const _0x16c03a=this['_handleNewSuggestionMarker'](_0x2de99d);_0x5f5278['add'](_0x16c03a);}else{const _0x39aee7=this['_suggestions']['get'](_0x160a27);null!==_0x599c40['newRange']||_0x39aee7['isInContent']?(_0x3432db['add'](_0x39aee7['head']),_0x5f5278['add'](_0x39aee7)):this['_removeSuggestion'](_0x39aee7);}}_0x5f5278['size']>0x0&&this['_refreshSuggestionsChain'](_0x5f5278);for(const _0x473db6 of _0x3432db)this['fire']('suggestionChanged',_0x473db6);}),_0x279e50['model']['on']('applyOperation',(_0x13cbb7,_0x279216)=>{const _0x3b8bdd=_0x279216[0x0];if(!this['_suggestions']['size'])return;if(!_0x3b8bdd['isDocumentOperation'])return;if(_0x3b8bdd['batch']['isUndo']||!_0x3b8bdd['batch']['isLocal'])return;let _0x51eb7e,_0x3478a3;switch(_0x3b8bdd['type']){case'insert':_0x51eb7e=_0x279e50['model']['createPositionAt'](_0x3b8bdd['position']),_0x3478a3=_0x51eb7e['getShiftedBy'](_0x3b8bdd['howMany']);break;case'split':_0x51eb7e=_0x279e50['model']['createPositionAt'](_0x3b8bdd['splitPosition']),_0x3478a3=_0x279e50['model']['createPositionAt'](_0x3b8bdd['moveTargetPosition']);break;case'move':_0x51eb7e=_0x279e50['model']['createPositionAt'](_0x3b8bdd['targetPosition']),_0x3478a3=_0x51eb7e['getShiftedBy'](_0x3b8bdd['howMany']);break;default:return;}const _0x4bc95d=_0x279e50['model']['createRange'](_0x51eb7e,_0x3478a3);_0x279e50['model']['change'](()=>{for(const {suggestion:_0x5ab90c,meta:_0x259749}of this['_findSuggestions'](_0x4bc95d)){if(_0x5ab90c['isMultiRange'])continue;if('formatInline'==_0x5ab90c['type'])continue;const _0x2635d8=this['_getAttributeKey'](_0x5ab90c);if(_0x2635d8&&this['_isBlockAttribute'](_0x2635d8)&&'split'!=_0x3b8bdd['type'])continue;const _0x50cd1b=_0x5ab90c['data']&&_0x5ab90c['data']['multipleBlocks'];('formatBlock'!=_0x5ab90c['type']||'split'==_0x3b8bdd['type']&&!_0x50cd1b)&&(_0x259749['containsRangeInObject']||'insertion'==_0x5ab90c['type']&&_0x259749['isOwn']||_0x5ab90c['getFirstRange']()['containsRange'](_0x4bc95d)&&this['_breakSuggestionMarker'](_0x5ab90c,_0x51eb7e,_0x3478a3));}});},{'priority':'lowest'}),_0x279e50['model']['on']('deleteContent',(_0x213729,_0x279efd)=>{const _0x260888=_0x279efd[0x0],_0x4eed6e=_0x279efd[0x1];if(_0x4eed6e&&_0x4eed6e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x260888['isCollapsed'])return;const _0x4ec36d=_0x279e50['model']['schema'],{start:_0xbaa35c,end:_0x9da2f8}=_0x260888['getFirstRange'](),_0x575743=_0xbaa35c['nodeAfter']&&_0x4ec36d['isLimit'](_0xbaa35c['nodeAfter'])?null:_0x4ec36d['getNearestSelectionRange'](_0xbaa35c,'forward'),_0x3cbbab=_0x9da2f8['nodeBefore']&&_0x4ec36d['isLimit'](_0x9da2f8['nodeBefore'])?null:_0x4ec36d['getNearestSelectionRange'](_0x9da2f8,'backward'),_0x39ef08=_0x279e50['model']['createRange'](_0x575743?_0x575743['start']:_0xbaa35c,_0x3cbbab?_0x3cbbab['end']:_0x9da2f8);_0x279e50['model']['change'](_0x39881d=>{this['markDeletion'](_0x39ef08);const _0x3d5aed=_0x279e50['model']['schema']['getNearestSelectionRange'](_0x39ef08['start']);_0x260888['is']('documentSelection')?_0x39881d['setSelection'](_0x3d5aed):_0x260888['setTo'](_0x3d5aed);}),_0x213729['stop']();},{'priority':_0x192293['normal']+0xa}),_0x279e50['model']['on']('insertContent',(_0x5cf9a4,_0x3d5eaf)=>{const _0x1a6243=_0x3d5eaf[_0x3d5eaf['length']-0x1];_0x1a6243&&_0x1a6243['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x279e50['model']['change'](()=>{let _0x1822ec=_0x279e50['model']['insertContent'](_0x3d5eaf[0x0],_0x3d5eaf[0x1],_0x3d5eaf[0x2],{'forceDefaultExecution':!0x0});if(!_0x1822ec)return;_0x5cf9a4['return']=_0x1822ec['clone']();const _0x2baa93=_0x1822ec['end']['nodeBefore'],_0x3d98f3=_0x279e50['model']['schema'];_0x2baa93&&_0x3d98f3['isBlock'](_0x2baa93)&&!_0x3d98f3['isObject'](_0x2baa93)&&(_0x1822ec=_0x279e50['model']['createRange'](_0x1822ec['start'],_0x279e50['model']['createPositionAt'](_0x2baa93,'end'))),this['markInsertion'](_0x1822ec);}),_0x5cf9a4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x151ead=new O(_0x279e50,this['_suggestions']);_0x279e50['commands']['add']('acceptSuggestion',_0x151ead),this['enableCommand']('acceptSuggestion');const _0x4c59d7=new R(_0x279e50,this['_suggestions']);_0x279e50['commands']['add']('discardSuggestion',_0x4c59d7),this['enableCommand']('discardSuggestion'),_0x279e50['commands']['add']('acceptAllSuggestions',new x(_0x279e50,_0x151ead,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x279e50['commands']['add']('discardAllSuggestions',new x(_0x279e50,_0x4c59d7,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x279e50['commands']['add']('acceptSelectedSuggestions',new E(_0x279e50,_0x151ead,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x279e50['commands']['add']('discardSelectedSuggestions',new E(_0x279e50,_0x4c59d7,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x350af1=_0x279e50['plugins']['get']('CommentsRepository');this['listenTo'](_0x350af1,'addComment',(_0x3e2990,{threadId:_0x377b71})=>{const _0x51d69c=this['_suggestions']['get'](_0x377b71);_0x51d69c&&_0x51d69c['commentThread']&&0x1===_0x51d69c['commentThread']['length']&&this['_updateSuggestionData'](_0x377b71,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x350af1,'removeComment',(_0xf5aa8b,{threadId:_0x215bdb})=>{const _0xba34c8=this['_suggestions']['get'](_0x215bdb);_0xba34c8&&_0xba34c8['commentThread']&&!_0xba34c8['commentThread']['length']&&this['_updateSuggestionData'](_0x215bdb,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x32e8b5){const _0x2ea89f=_0x38c68b([0x4e,0x32,0x42,0x61,0x30,0x56,0x49,0x55,0x48,0x36,0x51,0x64,0x76,0x78,0x45,0x68,0x6d,0x59,0x6e,0x4b,0x37,0x4a,0x62,0x53,0x50,0x58,0x46,0x6c,0x44,0x74,0x71,0x72,0x52,0x39,0x67,0x73,0x70,0x6a,0x54,0x5a,0x4c,0x77,0x38,0x75,0x43,0x4f,0x34,0x33,0x47,0x7a,0x65,0x69,0x4d,0x6f,0x57,0x41,0x31,0x79,0x63,0x66,0x6b,0x35]),_0x2b789b=0x30b7ec45,_0x139948=0x30b0b2ad^_0x2b789b,_0x4a5400=window[_0x38c68b([0x44,0x61,0x74,0x65])][_0x38c68b([0x6e,0x6f,0x77])](),_0x30bce6=_0x32e8b5[_0x38c68b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1b5454=new window[(_0x38c68b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b1ca7=>{_0x30bce6[_0x38c68b([0x6f,0x6e,0x63,0x65])](_0x38c68b([0x72,0x65,0x61,0x64,0x79]),_0x2b1ca7);}),_0xc80fcd={[_0x38c68b([0x6b,0x74,0x79])]:_0x38c68b([0x45,0x43]),[_0x38c68b([0x75,0x73,0x65])]:_0x38c68b([0x73,0x69,0x67]),[_0x38c68b([0x63,0x72,0x76])]:_0x38c68b([0x50,0x2d,0x32,0x35,0x36]),[_0x38c68b([0x78])]:_0x38c68b([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]),[_0x38c68b([0x79])]:_0x38c68b([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]),[_0x38c68b([0x61,0x6c,0x67])]:_0x38c68b([0x45,0x53,0x32,0x35,0x36])},_0xd69761=_0x30bce6[_0x38c68b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x38c68b([0x67,0x65,0x74])](_0x38c68b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x353ab2(){let _0x1adb19,_0xc21e69=null,_0x257559=null;try{if(_0xd69761==_0x38c68b([0x47,0x50,0x4c]))return _0x38c68b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1adb19=_0x23b718(),!_0x1adb19)return _0x38c68b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1adb19[_0x38c68b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x257559=_0x20febc(_0x1adb19[_0x38c68b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1adb19[_0x38c68b([0x6a,0x74,0x69])])),await _0x49e001()?_0x38c7dd()?_0x3e43a2()?_0x38c68b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x53576e()?(_0x1adb19[_0x38c68b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38c68b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc21e69=_0x4f3293(_0x38c68b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1adb19[_0x38c68b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38c68b([0x74,0x72,0x69,0x61,0x6c])&&(_0xc21e69=_0x4f3293(_0x38c68b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x196da7()):_0x38c68b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x38c68b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x38c68b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x22de5b){return _0x38c68b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3e43a2(){const _0x5e6870=[_0x38c68b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x38c68b([0x74,0x72,0x69,0x61,0x6c])][_0x38c68b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1adb19[_0x38c68b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a5400/0x3e8:0xe10*_0x139948;return _0x1adb19[_0x38c68b([0x65,0x78,0x70])]<_0x5e6870;}function _0x38c7dd(){const _0x4add24=_0x1adb19[_0x38c68b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4add24)return!0x1;if(_0x4add24[_0x38c68b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38c68b([0x2a])))return!0x0;if(_0x4add24[_0x38c68b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38c68b([0x54,0x43])))return!0x0;if(_0x4add24[_0x38c68b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38c68b([0x52,0x54,0x43]))){if(_0x1a6f5a())return!0x0;if(_0x29cb7a()||_0x3eb28d())return!0x0;}return!0x1;}function _0x53576e(){const _0x67359f=_0x1adb19[_0x38c68b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x67359f||0x0==_0x67359f[_0x38c68b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1949dc}=new URL(window[_0x38c68b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x67359f[_0x38c68b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1949dc))return!0x0;const _0x2fbb64=_0x1949dc[_0x38c68b([0x73,0x70,0x6c,0x69,0x74])](_0x38c68b([0x2e]));return _0x67359f[_0x38c68b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c626c=>_0x5c626c[_0x38c68b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38c68b([0x2a])))[_0x38c68b([0x6d,0x61,0x70])](_0x464a78=>_0x464a78[_0x38c68b([0x73,0x70,0x6c,0x69,0x74])](_0x38c68b([0x2e])))[_0x38c68b([0x73,0x6f,0x6d,0x65])](_0x256d5e=>_0x2fbb64[_0x38c68b([0x65,0x76,0x65,0x72,0x79])]((_0x253bc1,_0x139dcf)=>_0x256d5e[_0x139dcf]===_0x253bc1||_0x256d5e[_0x139dcf]===_0x38c68b([0x2a])));}function _0x196da7(){return _0xc21e69&&_0x257559?new window[(_0x38c68b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d27c1,_0x2de8a0)=>{_0xc21e69[_0x38c68b([0x74,0x68,0x65,0x6e])](_0x2d27c1,_0x2de8a0),_0x257559[_0x38c68b([0x74,0x68,0x65,0x6e])](_0x20229a=>{_0x20229a!=_0x38c68b([0x56,0x61,0x6c,0x69,0x64])&&_0x2d27c1(_0x20229a);},_0x2de8a0);}):_0xc21e69||_0x257559||_0x38c68b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x20febc(_0x4d057a,_0x18628f){return new window[(_0x38c68b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c3650=>{if(_0x4bc9ac())return _0x4c3650(_0x38c68b([0x56,0x61,0x6c,0x69,0x64]));_0x1b494b(),_0x30bce6[_0x38c68b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x38c68b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x594d8c=!0x1;const _0x306134=_0x3c9712();function _0x5974c9(_0x185b01){return!!_0x185b01&&(typeof _0x185b01===_0x38c68b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x185b01===_0x38c68b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x185b01[_0x38c68b([0x74,0x68,0x65,0x6e])]===_0x38c68b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x185b01[_0x38c68b([0x63,0x61,0x74,0x63,0x68])]===_0x38c68b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3cc64d(_0x47e2d5){_0x180539(_0x47e2d5)[_0x38c68b([0x74,0x68,0x65,0x6e])](_0x5b03eb=>{if(!_0x5b03eb||_0x5b03eb[_0x38c68b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x38c68b([0x6f,0x6b]))return _0x38c68b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x59c0b4(_0x574caf(_0x306134+_0x18628f))!=_0x5b03eb[_0x38c68b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x38c68b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x38c68b([0x56,0x61,0x6c,0x69,0x64]);})[_0x38c68b([0x74,0x68,0x65,0x6e])](_0x4884bf=>(_0x2b8fb8(),_0x4884bf),()=>{const _0x1e7627=_0x39ea81();return null==_0x1e7627?(_0x2b8fb8(),_0x38c68b([0x56,0x61,0x6c,0x69,0x64])):_0x38c68b(_0x4a5400-_0x1e7627>(0x14bb6845^_0x2b789b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x38c68b([0x74,0x68,0x65,0x6e])](_0x4c3650)[_0x38c68b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4c3650(_0x38c68b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x14cbe8=0x308102c5^_0x2b789b;function _0x2b8fb8(){const _0x502890=_0x38c68b([0x6c,0x6c,0x63,0x74,0x2d])+_0x59c0b4(_0x574caf(_0x4d057a)),_0x7ae7a2=_0x32f346(_0x59c0b4(window[_0x38c68b([0x4d,0x61,0x74,0x68])][_0x38c68b([0x63,0x65,0x69,0x6c])](_0x4a5400/_0x14cbe8)));window[_0x38c68b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38c68b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x502890,_0x7ae7a2);}function _0x39ea81(){const _0x37edf7=_0x38c68b([0x6c,0x6c,0x63,0x74,0x2d])+_0x59c0b4(_0x574caf(_0x4d057a)),_0x1542ae=window[_0x38c68b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38c68b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37edf7);return _0x1542ae?window[_0x38c68b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32f346(_0x1542ae),0x10)*_0x14cbe8:null;}function _0x180539(_0x5444ac){return new window[(_0x38c68b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58e765,_0x4990e2)=>{_0x5444ac[_0x38c68b([0x74,0x68,0x65,0x6e])](_0x58e765,_0x4990e2),window[_0x38c68b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4990e2,0x30b63885^_0x2b789b);});}}_0x30bce6[_0x38c68b([0x6f,0x6e])](_0x38c68b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x413d49,_0x26be28)=>{if(_0x26be28[0x0]!=_0x4d057a)return _0x4c3650(_0x38c68b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x26be28[0x1]={..._0x26be28[0x1],[_0x38c68b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x306134};},{[_0x38c68b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38c68b([0x68,0x69,0x67,0x68])}),_0x30bce6[_0x38c68b([0x6f,0x6e])](_0x38c68b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x338630=>{_0x5974c9(_0x338630[_0x38c68b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x594d8c=!0x0,_0x3cc64d(_0x338630[_0x38c68b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x38c68b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38c68b([0x6c,0x6f,0x77])}),_0x1b5454[_0x38c68b([0x74,0x68,0x65,0x6e])](()=>{_0x594d8c||_0x4c3650(_0x38c68b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4bc9ac(){return _0x30bce6[_0x38c68b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38c68b([0x76,0x69,0x65,0x77])][_0x38c68b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x38c68b([0x61,0x75,0x74,0x6f]);}function _0x1b494b(){_0x30bce6[_0x38c68b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38c68b([0x76,0x69,0x65,0x77])][_0x38c68b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x38c68b([0x61,0x75,0x74,0x6f]);}}function _0x4f3293(_0x145717){const _0x1f5b68=[new window[(_0x38c68b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a8ae2=>setTimeout(_0x4a8ae2,0x30bed289^_0x2b789b)),_0x1b5454[_0x38c68b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x38c68b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45801d=>{let _0x3425bd=0x0;_0x30bce6[_0x38c68b([0x6d,0x6f,0x64,0x65,0x6c])][_0x38c68b([0x6f,0x6e])](_0x38c68b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x46912e,_0x385231)=>{_0x385231[0x0][_0x38c68b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3425bd++,_0x3425bd==(0x30b7edbd^_0x2b789b)&&(_0x45801d(),_0x46912e[_0x38c68b([0x6f,0x66,0x66])]());});}))];return window[_0x38c68b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x38c68b([0x72,0x61,0x63,0x65])](_0x1f5b68)[_0x38c68b([0x74,0x68,0x65,0x6e])](()=>_0x145717);}async function _0x40167d(){await _0x1b5454,_0x30bce6[_0x38c68b([0x6d,0x6f,0x64,0x65,0x6c])][_0x38c68b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x444c61,_0x30bce6[_0x38c68b([0x6d,0x6f,0x64,0x65,0x6c])][_0x38c68b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x444c61,_0x30bce6[_0x38c68b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x38c68b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1a6f5a(){return _0xc28b47(_0x38c68b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x239c64(_0x38c68b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x38c68b([0x73,0x74,0x61,0x74,0x65])]==_0x38c68b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x29cb7a(){return _0xc28b47(_0x38c68b([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 _0x3eb28d(){return _0xc28b47(_0x38c68b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5ee093(_0xc4aa67){const _0x30ce4a=_0x1c1b7c();_0x30bce6[_0x30ce4a]=_0x38c68b([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xc4aa67,_0xc4aa67!=_0x38c68b([0x56,0x61,0x6c,0x69,0x64])&&_0x40167d();}function _0x1c1b7c(){const _0x3bfe16=window[_0x38c68b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x38c68b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x38c68b([0x6e,0x6f,0x77])]())[_0x38c68b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x38c68b([0x2e]),'');let _0x185846=_0x38c68b([0x4e]);for(let _0x1df143=0x0;_0x1df143<_0x3bfe16[_0x38c68b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1df143+=0x2){let _0x21e67a=window[_0x38c68b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bfe16[_0x38c68b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1df143,_0x1df143+0x2));_0x21e67a>=_0x2ea89f[_0x38c68b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x21e67a-=_0x2ea89f[_0x38c68b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x185846+=_0x2ea89f[_0x21e67a];}return _0x185846;}function _0x23b718(){const _0x26b2f2=_0xd69761[_0x38c68b([0x73,0x70,0x6c,0x69,0x74])](_0x38c68b([0x2e]));if(0x3!=_0x26b2f2[_0x38c68b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x104932(_0x26b2f2[0x1]);function _0x104932(_0x2403d8){const _0x3ea628=_0x589277(_0x2403d8);return _0x3ea628&&_0x49019c()?_0x3ea628:null;function _0x49019c(){const _0x41e794=_0x3ea628[_0x38c68b([0x6a,0x74,0x69])],_0x48fc8e=window[_0x38c68b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41e794[_0x38c68b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x41e794[_0x38c68b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2cde39={..._0x3ea628,[_0x38c68b([0x6a,0x74,0x69])]:_0x41e794[_0x38c68b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x41e794[_0x38c68b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2cde39[_0x38c68b([0x76,0x63])],_0x574caf(_0x2cde39)==_0x48fc8e;}}}async function _0x49e001(){let _0x354d6b=!0x0;try{const _0x1ebc1e=_0xd69761[_0x38c68b([0x73,0x70,0x6c,0x69,0x74])](_0x38c68b([0x2e])),[_0x3b9389,_0x5507bb,_0x24bcaf]=_0x1ebc1e;return _0x124400(_0x3b9389),await _0xd41cad(_0x3b9389,_0x5507bb,_0x24bcaf),_0x354d6b;}catch(_0x58274b){return!0x1;}function _0x124400(_0x42ee96){const _0x26f526=_0x589277(_0x42ee96);_0x26f526&&_0x26f526[_0x38c68b([0x61,0x6c,0x67])]==_0x38c68b([0x45,0x53,0x32,0x35,0x36])||(_0x354d6b=!0x1);}async function _0xd41cad(_0x2832f2,_0x479d54,_0x766836){const _0x18c42e=window[_0x38c68b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x38c68b([0x66,0x72,0x6f,0x6d])](_0x3ad576(_0x766836),_0x209973=>_0x209973[_0x38c68b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x7d0fc4=new window[(_0x38c68b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x38c68b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2832f2+_0x38c68b([0x2e])+_0x479d54),_0x2064b9=window[_0x38c68b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x38c68b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2064b9)return;const _0x36a628=await _0x2064b9[_0x38c68b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x38c68b([0x6a,0x77,0x6b]),_0xc80fcd,{[_0x38c68b([0x6e,0x61,0x6d,0x65])]:_0x38c68b([0x45,0x43,0x44,0x53,0x41]),[_0x38c68b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x38c68b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x38c68b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2064b9[_0x38c68b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x38c68b([0x6e,0x61,0x6d,0x65])]:_0x38c68b([0x45,0x43,0x44,0x53,0x41]),[_0x38c68b([0x68,0x61,0x73,0x68])]:{[_0x38c68b([0x6e,0x61,0x6d,0x65])]:_0x38c68b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x36a628,_0x18c42e,_0x7d0fc4)||(_0x354d6b=!0x1);}}function _0x589277(_0x4e2bae){return _0x4e2bae[_0x38c68b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x38c68b([0x65,0x79]))?JSON[_0x38c68b([0x70,0x61,0x72,0x73,0x65])](_0x3ad576(_0x4e2bae)):null;}function _0x3ad576(_0x249e55){return window[_0x38c68b([0x61,0x74,0x6f,0x62])](_0x249e55[_0x38c68b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x38c68b([0x2b]))[_0x38c68b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x38c68b([0x2f])));}function _0x574caf(_0x23747f){let _0x45b5d8=0x1505;function _0x5aa2c6(_0x26788c){for(let _0x35cdd5=0x0;_0x35cdd5<_0x26788c[_0x38c68b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35cdd5++){const _0x446116=_0x26788c[_0x38c68b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x35cdd5);_0x45b5d8=(_0x45b5d8<<0x5)+_0x45b5d8+_0x446116,_0x45b5d8&=_0x45b5d8;}}function _0x16fa9d(_0x5d44a2){Array[_0x38c68b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d44a2)?_0x5d44a2[_0x38c68b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x16fa9d):_0x5d44a2&&typeof _0x5d44a2==_0x38c68b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x38c68b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d44a2)[_0x38c68b([0x73,0x6f,0x72,0x74])]()[_0x38c68b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3d8363,_0x137355])=>{_0x5aa2c6(_0x3d8363),_0x16fa9d(_0x137355);}):_0x5aa2c6(window[_0x38c68b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d44a2));}return _0x16fa9d(_0x23747f),_0x45b5d8>>>0x0;}function _0x59c0b4(_0x58d085){return _0x58d085[_0x38c68b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x38c68b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x38c68b([0x30]));}function _0x32f346(_0x7eccba){return _0x7eccba[_0x38c68b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x38c68b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x38c68b([0x6a,0x6f,0x69,0x6e])]('');}function _0xc28b47(_0x442e3f){return _0x30bce6[_0x38c68b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x38c68b([0x68,0x61,0x73])](_0x442e3f);}function _0x239c64(_0x504174){return _0x30bce6[_0x38c68b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x38c68b([0x67,0x65,0x74])](_0x504174);}function _0x444c61(){}function _0x38c68b(_0x38d4d5){return _0x38d4d5['map'](_0x579d95=>String['fromCharCode'](_0x579d95))['join']('');}_0x5ee093(await _0x353ab2());}(this);}set['adapter'](_0x2a5109){if(this['_adapter'])throw new _0x5ce67c('track-changes-adapter-already-set',this);this['_adapter']=_0x2a5109;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x379992=!0x1,toJSON:_0x1a54e5=!0x1}={}){const _0x20a6a1=[];for(const _0x288972 of this['_suggestions']['values']())_0x379992&&!_0x288972['isInContent']||_0x20a6a1['push'](_0x288972);return _0x1a54e5?_0x20a6a1['map'](_0xb63b15=>_0xb63b15['toJSON']()):_0x20a6a1;}['getSuggestion'](_0x2f09e0){const _0x2a73e5=this['_suggestions']['get'](_0x2f09e0);if(!_0x2a73e5)throw new _0x5ce67c('track-changes-suggestion-not-found',this);return _0x2a73e5;}['hasSuggestion'](_0x565d7a){return this['_suggestions']['has'](_0x565d7a);}['addSuggestionData'](_0x3e70e5){const {authorId:_0x3fb584,id:_0x4eb732,attributes:_0xdcfb20}=_0x3e70e5,[_0x57a277,_0x36eca1]=_0x3e70e5['type']['split'](':'),_0x43516b=this['_suggestions']['get'](_0x4eb732)||this['_createSuggestion'](_0x57a277,_0x36eca1,_0x4eb732,_0x3fb584,_0xdcfb20);if(this['_addThreadToSuggestion'](_0x43516b),this['_checkSuggestionCorrectness'](_0x43516b,_0x57a277,_0x36eca1||null,_0x3fb584),_0x43516b['createdAt']=_0x3e70e5['createdAt'],_0x43516b['_isDataLoaded']=!0x0,_0xdcfb20&&_0xdcfb20['@external']){const _0x2c8740=_0xdcfb20['@external'],_0x422cef=this['_getExternalAuthor'](_0x2c8740['authorName']);_0x43516b['authoredAt']=_0x2c8740['createdAt'],_0x43516b['author']=_0x422cef,_0x43516b['isExternal']=!0x0;}else _0x43516b['authoredAt']=_0x3e70e5['createdAt'];switch(_0x3e70e5['data']&&(_0x43516b['data']=_0x3e70e5['data']),_0x3e70e5['attributes']&&(_0x43516b['attributes']=_0x3e70e5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x43516b['_saved']=!0x0),this['_suggestionState']['get'](_0x43516b)){case'notReady':this['_suggestionState']['set'](_0x43516b,'dataReady');break;case'markerReady':_0x43516b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x43516b])),this['_refreshSuggestionsChain'](new Set([_0x43516b])),this['_suggestionState']['set'](_0x43516b,'ready'),this['fire']('suggestionLoaded',_0x43516b)):this['_suggestionState']['set'](_0x43516b,'removed');}return _0x43516b;}['acceptSuggestion'](_0x29a157){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x233e10 of _0x29a157['getAllAdjacentSuggestions']())_0x233e10['accept']();});});}['discardSuggestion'](_0x1fe4b8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2851b3 of _0x1fe4b8['getAllAdjacentSuggestions']())_0x2851b3['discard']();});});}['enableCommand'](_0x19c8f4,_0x30218a){const _0x54741b=this['editor']['commands']['get'](_0x19c8f4);if(!_0x54741b)throw new _0x5ce67c('track-changes-command-not-found',this,{'commandName':_0x19c8f4});if(this['_enabledCommands']['has'](_0x54741b))throw new _0x5ce67c('track-changes-enable-command-twice',this,{'commandName':_0x19c8f4});this['_enabledCommands']['add'](_0x54741b),_0x30218a&&_0x54741b['on']('execute',(_0x5081d2,_0x28bfa5)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x28bfa5['length']>0x0&&_0x28bfa5[_0x28bfa5['length']-0x1]&&_0x28bfa5[_0x28bfa5['length']-0x1]['forceDefaultExecution']?_0x28bfa5['pop']():(_0x5081d2['return']=_0x30218a((..._0x3313c6)=>_0x54741b['execute'](..._0x3313c6,{'forceDefaultExecution':!0x0}),..._0x28bfa5),_0x5081d2['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1a635b){let _0x2ced54,_0x49fcb8;const _0x4aef70=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2ced54=_0x1a635b();}catch(_0x51227b){_0x49fcb8=_0x51227b;}return _0x4aef70||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x49fcb8&&_0x5ce67c['rethrowUnexpectedError'](_0x49fcb8,this),_0x2ced54;}['markInsertion'](_0x1a4a51,_0x44bfdb=null,_0x5714d6={}){if(_0x1a4a51['isCollapsed'])return null;const _0x2291b7=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x22122e,meta:_0x110cdf}of this['_findSuggestions'](_0x1a4a51,'insertion'))if(_0x110cdf['isOwn']){if(!_0x110cdf['isNextTo']){if(_0x110cdf['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x22122e,_0x5714d6))continue;return _0x22122e;}if(Qt(_0x22122e,_0x5714d6))return _0x22122e;this['_breakSuggestionMarker'](_0x22122e,_0x1a4a51['start'],_0x1a4a51['end']);break;}if(_0x44bfdb==_0x22122e['subType']&&Qt(_0x22122e,_0x5714d6)){const _0x3d0f56=_0x22122e['getFirstRange']();return _0x3d0f56['start']['isEqual'](_0x1a4a51['end'])?this['_setSuggestionRange'](_0x22122e,this['_model']['createRange'](_0x1a4a51['start'],_0x3d0f56['end'])):this['_setSuggestionRange'](_0x22122e,this['_model']['createRange'](_0x3d0f56['start'],_0x1a4a51['end'])),_0x22122e;}}const _0x4395a2=_0x3c9712(),_0x4dc94a=_0x2291b7['id'],_0x5b474d=_0x44bfdb?'insertion:'+_0x44bfdb:'insertion',_0x261ece=this['_setSuggestionData']({'id':_0x4395a2,'type':_0x5b474d,'createdAt':new Date(),'authorId':_0x4dc94a,'attributes':_0x5714d6});return this['_addSuggestionMarker'](_0x5b474d,_0x4395a2,_0x4dc94a,_0x1a4a51),_0x261ece;}['markMultiRangeInsertion'](_0x274574,_0x3b6a88='multi',_0x47e2e9={}){const _0x232b30=this['editor']['plugins']['get']('Users')['me'],_0x331a9b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3b6a88,'join');for(const _0x155a4a of this['getSuggestions']())if(_0x155a4a['author']['id']==_0x232b30['id']&&'insertion'==_0x155a4a['type']&&_0x155a4a['subType']==_0x3b6a88&&Qt(_0x155a4a,_0x47e2e9)&&(_0x331a9b(_0x155a4a['getRanges'](),_0x274574)||_0x331a9b(_0x274574,_0x155a4a['getRanges']()))){for(const _0x13c765 of _0x274574)_0x155a4a['addRange'](_0x13c765);return _0x155a4a;}for(const {suggestion:_0x515c93,meta:_0x51fd5d}of this['_findSuggestions'](_0x274574,'insertion')){if(!_0x51fd5d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x51fd5d['containsRangeInObject'])continue;if(!Qt(_0x515c93,_0x47e2e9))continue;let _0x3ff0e6=!0x0;for(const _0x1308b7 of _0x515c93['getRanges']())for(const _0x2dca0d of _0x274574)if(!_0x1308b7['containsRange'](_0x2dca0d)){_0x3ff0e6=!0x1;break;}if(_0x3ff0e6)return _0x515c93;}const _0x12c64e=_0x3c9712(),_0x396a53=_0x232b30['id'],_0x10b61e='insertion:'+_0x3b6a88,_0x2b45b8=this['_setSuggestionData']({'id':_0x12c64e,'type':_0x10b61e,'createdAt':new Date(),'authorId':_0x396a53,'attributes':_0x47e2e9});for(const _0x4ce027 of _0x274574)this['_addSuggestionMarker'](_0x10b61e,_0x12c64e,_0x396a53,_0x4ce027,u['getMultiRangeId']());return _0x2b45b8;}['markInlineFormat'](_0x204945,_0xf30909,_0x116366=null,_0x31f9a0={}){if(_0x116366=_0x116366||Jt(_0xf30909),_0x204945['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x321b63=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x116366,'accept');return this['forceDefaultExecution'](()=>_0x321b63([_0x204945],_0xf30909,_0x31f9a0)),null;}const _0x56d414=this['editor']['plugins']['get']('Users')['me'],_0x78af78=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x13abdc,meta:_0x37b76a}of this['_findSuggestions'](_0x204945,'insertion'))_0x37b76a['isOwn']&&!_0x37b76a['isInsideObject']&&_0x78af78['push'](..._0x13abdc['getRanges']());}const _0x683c2e=function(_0x6d07eb,_0x4993b0){const _0x230c4d=[];for(const _0x5035fa of _0x4993b0){const _0x599a73=_0x6d07eb['getIntersection'](_0x5035fa);_0x599a73&&_0x230c4d['push'](_0x599a73);}return _0x230c4d;}(_0x204945,_0x78af78),_0x227f32=function(_0x11ca12,_0x1fe05d){const _0x375702=[_0x11ca12];for(const _0x3f64b5 of _0x1fe05d){let _0x48eb58=0x0;for(;_0x48eb58<_0x375702['length'];){const _0x25f12b=_0x375702[_0x48eb58]['getDifference'](_0x3f64b5);_0x375702['splice'](_0x48eb58,0x1,..._0x25f12b),_0x48eb58+=_0x25f12b['length'];}}return _0x375702;}(_0x204945,_0x78af78);_0x683c2e['length']&&this['_model']['change'](()=>{for(const _0x54d370 of _0x683c2e){const _0x25b153=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x116366,'accept');this['forceDefaultExecution'](()=>_0x25b153([_0x54d370],_0xf30909,_0x31f9a0));}});for(const _0x2061a2 of _0x227f32){let _0x1bb94d=null,_0x5e7797=_0x2061a2['start'],_0x27aaa2=_0x2061a2['end'];for(const {suggestion:_0xb723bf,meta:_0x333614}of this['_findSuggestions'](_0x2061a2,'formatInline')){if(!_0x333614['isOwn'])continue;if(_0xb723bf['subType']!=_0x116366)continue;if(!Qt(_0xb723bf,_0x31f9a0))continue;const _0x5a6f3d=_0xb723bf['getFirstRange']();if(_0x5a6f3d['containsRange'](_0x2061a2,!0x0))return null;_0x5e7797=_0x5e7797['isBefore'](_0x5a6f3d['start'])?_0x5e7797:_0x5a6f3d['start'],_0x27aaa2=_0x27aaa2['isAfter'](_0x5a6f3d['end'])?_0x27aaa2:_0x5a6f3d['end'],_0x1bb94d?_0x5a6f3d['start']['isBefore'](_0x1bb94d['getFirstRange']()['start'])?(_0x1bb94d['removeMarkers'](),_0x1bb94d=_0xb723bf):_0xb723bf['removeMarkers']():_0x1bb94d=_0xb723bf;}const _0x107f2a=this['_model']['createRange'](_0x5e7797,_0x27aaa2);if(_0x1bb94d)this['_setSuggestionRange'](_0x1bb94d,_0x107f2a);else{const _0x34113a=_0x3c9712(),_0x9e29a=_0x56d414['id'];this['_setSuggestionData']({'id':_0x34113a,'type':'formatInline:'+_0x116366,'data':_0xf30909,'createdAt':new Date(),'authorId':_0x9e29a,'attributes':_0x31f9a0}),this['_addSuggestionMarker']('formatInline:'+_0x116366,_0x34113a,_0x9e29a,_0x107f2a);}}return null;}['markBlockFormat'](_0xc7f22e,_0x2b0da8,_0x2d58b4=[],_0x2c52da=null,_0x37b3c8={}){_0x2b0da8['formatGroupId']||(_0x2b0da8['formatGroupId']=_0x2b0da8['commandName']),_0x2b0da8['multipleBlocks']=_0xc7f22e['is']('range'),_0x2c52da=_0x2c52da||Jt(_0x2b0da8);const _0x4b89d6=_0x2d58b4['map'](_0x43f3af=>zt(_0x43f3af,this['_model'])),_0xfc1617=_0xc7f22e['is']('range')?_0xc7f22e:zt(_0xc7f22e,this['_model']);if('never'===this['_trackFormatChanges']){const _0x158535=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c52da,'accept');return this['forceDefaultExecution'](()=>_0x158535([_0xfc1617],_0x2b0da8,_0x37b3c8)),null;}_0x4b89d6['push'](_0xfc1617);let _0x1e97bf=!0x0;for(const _0x150b48 of _0x4b89d6)if(!this['_rangeIsInLocalUserInsertion'](_0x150b48)){_0x1e97bf=!0x1;break;}if(_0x1e97bf&&'always'!==this['_trackFormatChanges']){const _0x183a2e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c52da,'accept');return this['forceDefaultExecution'](()=>_0x183a2e([_0xfc1617],_0x2b0da8,_0x37b3c8)),null;}let _0x4ff794=null,_0x31179d=_0xfc1617['start'],_0x4c43fb=_0xfc1617['end'];for(const {suggestion:_0x3b05a4,meta:_0xce4835}of this['_findSuggestions'](_0xfc1617,'formatBlock')){if(!_0xce4835['isOwn'])continue;if(_0xce4835['isNextTo']||_0xce4835['containsRangeInObject']||_0xce4835['isInsideObject'])continue;if(_0x3b05a4['data']['formatGroupId']!=_0x2b0da8['formatGroupId'])continue;if(!Qt(_0x3b05a4,_0x37b3c8))continue;const _0x1b1a01=_0x3b05a4['getFirstRange']();if(_0x3b05a4['subType']==_0x2c52da){if(_0x1b1a01['containsRange'](_0xfc1617,!0x0))return null;_0x31179d=_0x31179d['isBefore'](_0x1b1a01['start'])?_0x31179d:_0x1b1a01['start'],_0x4c43fb=_0x4c43fb['isAfter'](_0x1b1a01['end'])?_0x4c43fb:_0x1b1a01['end'],_0x4ff794?_0x1b1a01['start']['isBefore'](_0x4ff794['getFirstRange']()['start'])?(_0x4ff794['removeMarkers'](),_0x4ff794=_0x3b05a4):_0x3b05a4['removeMarkers']():_0x4ff794=_0x3b05a4;}else{const _0x457dee=_0xfc1617['getIntersection'](_0x1b1a01);this['_cutOutSuggestionMarker'](_0x3b05a4,_0x457dee);}}const _0x51e1bb=this['editor']['plugins']['get']('Users')['me'],_0x2b5060=_0x3c9712(),_0x165194=_0x51e1bb['id'];if(_0x4ff794)return this['_setSuggestionRange'](_0x4ff794,this['_model']['createRange'](_0x31179d,_0x4c43fb)),_0x4ff794;{const _0x9cff1a=this['_setSuggestionData']({'id':_0x2b5060,'type':'formatBlock:'+_0x2c52da,'data':_0x2b0da8,'createdAt':new Date(),'authorId':_0x165194,'attributes':_0x37b3c8});return this['_addSuggestionMarker']('formatBlock:'+_0x2c52da,_0x2b5060,_0x165194,this['_model']['createRange'](_0x31179d,_0x4c43fb)),_0x9cff1a;}}['markMultiRangeBlockFormat'](_0x12cfb6,_0x47328a,_0x4a3e67=[],_0x3c2dfc=null,_0x4b805d={}){_0x47328a['formatGroupId']||(_0x47328a['formatGroupId']=_0x47328a['commandName']);const _0x3b2efd=_0x12cfb6[0x0];_0x47328a['multipleBlocks']=_0x3b2efd['is']('range'),_0x3c2dfc=_0x3c2dfc||Jt(_0x47328a);const _0x24a8d1=_0x4a3e67['map'](_0x395979=>zt(_0x395979,this['_model'])),_0x59ac54=_0x3b2efd['is']('range')?_0x12cfb6:_0x12cfb6['map'](_0x25cf24=>zt(_0x25cf24,this['_model']));if('never'===this['_trackFormatChanges']){const _0x48f0c3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c2dfc,'accept');return this['forceDefaultExecution'](()=>_0x48f0c3(_0x59ac54,_0x47328a,_0x4b805d)),null;}_0x24a8d1['push'](..._0x59ac54);let _0x599cf9=!0x0;for(const _0x1af8b8 of _0x24a8d1)if(!this['_rangeIsInLocalUserInsertion'](_0x1af8b8)){_0x599cf9=!0x1;break;}if(_0x599cf9&&'always'!==this['_trackFormatChanges']){const _0x2897cd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c2dfc,'accept');return this['forceDefaultExecution'](()=>_0x2897cd(_0x59ac54,_0x47328a,_0x4b805d)),null;}const _0x3e4b18=this['editor']['plugins']['get']('Users')['me'];for(const _0x3127d8 of this['getSuggestions']()){if(_0x3127d8['author']['id']!=_0x3e4b18['id'])continue;if('formatBlock'!=_0x3127d8['type']||_0x3127d8['data']['formatGroupId']!=_0x47328a['formatGroupId'])continue;if(!Qt(_0x3127d8,_0x4b805d))continue;const _0x2ae0ea=_0x3127d8['subType']==_0x3c2dfc;for(let _0x211f12=0x0;_0x211f12<_0x59ac54['length'];_0x211f12++){const _0x13a901=_0x59ac54[_0x211f12];for(const _0x10e63f of _0x3127d8['getMarkers']()){const _0x1f1695=_0x10e63f['getRange']();if(_0x13a901['isEqual'](_0x1f1695)){_0x2ae0ea?(_0x59ac54['splice'](_0x211f12,0x1),_0x211f12--):_0x3127d8['removeMarker'](_0x10e63f['name']);break;}}}}if(0x0==_0x59ac54['length'])return null;const _0x5afd87=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c2dfc,'join');for(const _0x17ab28 of this['getSuggestions']())if(_0x17ab28['author']['id']==_0x3e4b18['id']&&'formatBlock'==_0x17ab28['type']&&_0x17ab28['data']['formatGroupId']==_0x47328a['formatGroupId']&&_0x17ab28['subType']==_0x3c2dfc&&Qt(_0x17ab28,_0x4b805d)&&(_0x5afd87(_0x17ab28['getRanges'](),_0x59ac54)||_0x5afd87(_0x59ac54,_0x17ab28['getRanges']()))){for(const _0xc53102 of _0x59ac54)_0x17ab28['addRange'](_0xc53102);return _0x17ab28;}const _0x34b012=_0x3c9712(),_0x4e9e11=_0x3e4b18['id'],_0x28fa17='formatBlock:'+_0x3c2dfc,_0x21866f=this['_setSuggestionData']({'id':_0x34b012,'type':_0x28fa17,'data':_0x47328a,'createdAt':new Date(),'authorId':_0x4e9e11,'attributes':_0x4b805d});for(const _0x46e7f7 of _0x59ac54)this['_addSuggestionMarker'](_0x28fa17,_0x34b012,_0x4e9e11,_0x46e7f7,u['getMultiRangeId']());return _0x21866f;}['markDeletion'](_0xb6e4e2,_0x5eb751=null,_0x2f233f={}){if(_0xb6e4e2['isCollapsed'])return null;const _0x4ae328=this['editor']['plugins']['get']('Users')['me'],_0x583131=new _0x48b32a(_0xb6e4e2['start'],_0xb6e4e2['end']);for(const {suggestion:_0x3eaf9e,meta:_0x8879e3}of this['_findSuggestions'](_0x583131,'insertion'))if(_0x8879e3['isOwn']&&!_0x8879e3['isNextTo']){if(_0x3eaf9e['isMultiRange']){const _0x1d58ee=_0x3eaf9e['getRanges']()['filter'](_0x227478=>'$graveyard'!=_0x227478['root']['rootName']);_0x1d58ee['every'](_0x397b8b=>_0x583131['containsRange'](_0x397b8b,!0x0))&&_0x3eaf9e['discard']();if(_0x1d58ee['some'](_0x289b8e=>_0x289b8e['containsRange'](_0x583131,!0x0))){const _0x3b0ef4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5eb751,'accept');return this['forceDefaultExecution'](()=>_0x3b0ef4([_0x583131],null,_0x2f233f)),null;}}else{const _0x5cdf9d=_0x583131['getIntersection'](_0x3eaf9e['getFirstRange']());null!==_0x5cdf9d&&_0x3eaf9e['_onDiscard']([_0x5cdf9d],null,_0x2f233f);}}if(_0x583131['detach'](),_0x583131['isCollapsed']||'$graveyard'==_0x583131['root']['rootName'])return null;let _0xccb41=null,_0x4482dc=_0x583131['start'],_0x4f8201=_0x583131['end'];const _0xb99503=this['_findSuggestions'](_0x583131,'deletion');for(const {suggestion:_0x1a1d69,meta:_0x45e8fd}of _0xb99503){const _0x1bb0e3=this['_model']['createRange'](_0x4482dc,_0x4f8201);if(_0x45e8fd['isOwn']&&(this['_mergeNestedSuggestions']||!_0x45e8fd['containsRangeInObject']&&!_0x45e8fd['isInsideObject'])){if(_0x1a1d69['isMultiRange']){if(!Qt(_0x1a1d69,_0x2f233f))continue;let _0x55b95c=!0x0;for(const _0x2ccd1f of _0x1a1d69['getRanges']()){if(_0x2ccd1f['containsRange'](_0x1bb0e3,!0x0))return _0x1a1d69;_0x1bb0e3['containsRange'](_0x2ccd1f)||(_0x55b95c=!0x1);}_0x55b95c&&_0x1a1d69['discard']();}else{const _0x2a486d=_0x1a1d69['getFirstRange']();if(_0x2a486d['containsRange'](_0x1bb0e3,!0x0))return _0x1a1d69;if(!Qt(_0x1a1d69,_0x2f233f)){_0x1bb0e3['containsRange'](_0x2a486d)?_0x1a1d69['removeMarkers']():_0x2a486d['containsPosition'](_0x4482dc)?_0x4482dc=_0x2a486d['end']:_0x2a486d['containsPosition'](_0x4f8201)&&(_0x4f8201=_0x2a486d['start']);continue;}_0x4482dc=_0x4482dc['isBefore'](_0x2a486d['start'])?_0x4482dc:_0x2a486d['start'],_0x4f8201=_0x4f8201['isAfter'](_0x2a486d['end'])?_0x4f8201:_0x2a486d['end'],_0x2f233f=Object['assign']({},_0x1a1d69['attributes']),_0xccb41?_0x2a486d['start']['isBefore'](_0xccb41['getFirstRange']()['start'])?(_0xccb41['removeMarkers'](),_0xccb41=_0x1a1d69):_0x1a1d69['removeMarkers']():_0xccb41=_0x1a1d69;}}}if(_0xccb41)return this['_setSuggestionRange'](_0xccb41,this['_model']['createRange'](_0x4482dc,_0x4f8201)),_0xccb41;{const _0x354a31=_0x3c9712(),_0xf029ac=this['_model']['createRange'](_0x4482dc,_0x4f8201),_0x38188f=_0x4ae328['id'],_0x205f06=_0x5eb751?'deletion:'+_0x5eb751:'deletion',_0x3587ba=this['_setSuggestionData']({'id':_0x354a31,'type':_0x205f06,'createdAt':new Date(),'authorId':_0x38188f,'attributes':_0x2f233f});return this['_addSuggestionMarker'](_0x205f06,_0x354a31,_0x38188f,_0xf029ac),_0x3587ba;}}['markMultiRangeDeletion'](_0x2dd547,_0xe696c5='multi',_0x5a33c9={}){const _0x586724=this['editor']['plugins']['get']('Users')['me'],_0x1839cc=_0x2dd547['map'](_0x41bd1b=>new _0x48b32a(_0x41bd1b['start'],_0x41bd1b['end'])),_0x424ec5=new Set();for(const {suggestion:_0x4d3f31,meta:_0x1ea7c6}of this['_findSuggestions'](_0x1839cc,'insertion'))_0x1ea7c6['isOwn']&&!_0x1ea7c6['isNextTo']&&_0x424ec5['add'](_0x4d3f31);for(const _0xc49a0f of _0x424ec5)if(_0xc49a0f['isMultiRange']){const _0x7fb8a6=_0xc49a0f['getRanges']();(!_0xc49a0f['attributes']||!_0xc49a0f['attributes']['skipNestingCheck'])&&(_0x7fb8a6['every'](_0x567146=>_0x1839cc['some'](_0x5c6449=>_0x5c6449['containsRange'](_0x567146,!0x0)))&&_0xc49a0f['discard']());if(_0x1839cc['every'](_0x3ca5d0=>_0x7fb8a6['some'](_0x326a90=>_0x326a90['containsRange'](_0x3ca5d0,!0x0)))){const _0xf5510c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xe696c5,'accept');return this['forceDefaultExecution'](()=>_0xf5510c(_0x2dd547,null,_0x5a33c9)),null;}}else{const _0x29c7eb=_0xc49a0f['getFirstRange']();_0x1839cc['some'](_0x140671=>_0x140671['containsRange'](_0x29c7eb,!0x0))&&_0xc49a0f['discard']();if(_0x1839cc['every'](_0x28fc36=>_0x29c7eb['containsRange'](_0x28fc36,!0x0))){const _0x496e00=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xe696c5,'accept');return this['forceDefaultExecution'](()=>_0x496e00(_0x1839cc,null,_0x5a33c9)),null;}}const _0x57343d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xe696c5,'join');let _0x4b837a=null;for(const _0x4e1862 of this['getSuggestions']())if(_0x4e1862['author']['id']==_0x586724['id']&&_0x4e1862['isInContent']&&'deletion'==_0x4e1862['type']&&_0x4e1862['subType']==_0xe696c5&&Qt(_0x4e1862,_0x5a33c9)&&(_0x57343d(_0x4e1862['getRanges'](),_0x1839cc)||_0x57343d(_0x1839cc,_0x4e1862['getRanges']()))){if(_0x4b837a){if(_0x4e1862['commentThread']&&_0x4e1862['commentThread']['length'])continue;for(const _0x4f9a8e of _0x4e1862['getRanges']())_0x4b837a['isIntersectingWithRange'](_0x4f9a8e)||_0x4b837a['addRange'](_0x4f9a8e);_0x4e1862['removeMarkers']();}else{_0x4b837a=_0x4e1862;for(const _0xf086a9 of _0x1839cc)_0x4e1862['isIntersectingWithRange'](_0xf086a9)||_0x4e1862['addRange'](_0xf086a9);}}if(_0x4b837a)return _0x4b837a;_0x424ec5['clear']();for(const {suggestion:_0x356f1d,meta:_0x20c9a1}of this['_findSuggestions'](_0x1839cc,'deletion'))_0x20c9a1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x20c9a1['containsRangeInObject']&&!_0x20c9a1['isInsideObject'])&&Qt(_0x356f1d,_0x5a33c9)&&_0x424ec5['add'](_0x356f1d);for(const _0xe38506 of _0x424ec5){const _0x17cf74=_0xe38506['getRanges']();if(!_0x5a33c9||!_0x5a33c9['skipNestingCheck']){if(_0x1839cc['every'](_0x2dda35=>_0x17cf74['some'](_0x51b98a=>_0x51b98a['containsRange'](_0x2dda35,!0x0))))return _0xe38506;}(!_0xe38506['attributes']||!_0xe38506['attributes']['skipNestingCheck'])&&(_0x17cf74['every'](_0x324cfe=>_0x1839cc['some'](_0x295528=>_0x295528['containsRange'](_0x324cfe,!0x0)))&&_0xe38506['discard']());}const _0x30349b=_0x3c9712(),_0x545221=_0x586724['id'],_0xb24215='deletion:'+_0xe696c5,_0x237c98=this['_setSuggestionData']({'id':_0x30349b,'type':_0xb24215,'createdAt':new Date(),'authorId':_0x545221,'attributes':_0x5a33c9});for(const _0x259c09 of _0x1839cc)_0x259c09['detach'](),_0x259c09['isCollapsed']||'$graveyard'==_0x259c09['root']['rootName']||this['_addSuggestionMarker'](_0xb24215,_0x30349b,_0x545221,_0x259c09,u['getMultiRangeId']());return _0x237c98;}['markAttributeChange'](_0x2e5037,_0x256b76,_0x25bb75,_0x2ad1ec,_0xa90b9e){if(_0x2e5037['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5afd08=this['editor']['plugins']['get']('Users')['me']['id'],_0x5dcf7a=Array['from'](this['_suggestions']['values']())['filter'](_0x3367f5=>'attribute'==_0x3367f5['type']&&_0x3367f5['data']['key']==_0x256b76&&_0x3367f5['isIntersectingWithRange'](_0x2e5037));if('default'===this['_trackFormatChanges']){const _0x43c1b5=this['_findSuggestions'](_0x2e5037,'insertion')['filter'](({meta:_0x264e6f})=>_0x264e6f['isOwn']&&!_0x264e6f['isInsideObject']&&!_0x264e6f['isNextTo'])['map'](({suggestion:_0x547688})=>_0x547688);_0x5dcf7a['unshift'](..._0x43c1b5);}const _0x1b5000=new Map([[_0x2e5037,_0x25bb75]]);for(const _0x585abf of _0x5dcf7a){const _0x2fc8ed='attribute'==_0x585abf['type']?_0x585abf['data']['oldValue']:void 0x0,_0x4e62a0=_0x585abf['getFirstRange'](),_0x5f3f3=Array['from'](_0x1b5000['keys']())['find'](_0x29eee7=>_0x29eee7['isIntersecting'](_0x4e62a0));if(!_0x5f3f3)continue;const _0x3f2532=_0x5f3f3['getDifference'](_0x4e62a0);this['_isBlockAttribute'](_0x256b76)&&'insertion'==_0x585abf['type']&&0x0!=_0x3f2532['length']||(_0x1b5000['delete'](_0x5f3f3),_0x3f2532['forEach'](_0x491842=>{_0x1b5000['set'](_0x491842,_0x25bb75);}),'insertion'!=_0x585abf['type']&&_0x2fc8ed!=_0x2ad1ec&&_0x1b5000['set'](_0x5f3f3['getIntersection'](_0x4e62a0),_0x2fc8ed));}const _0x596fd7=[];for(const [_0x2df155,_0x8365c0]of _0x1b5000){const _0x47bc42=_0x3c9712(),_0x2b6b32={'key':_0x256b76,'oldValue':_0x8365c0,'newValue':_0x2ad1ec};_0x256b76['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':_0x256b76});const _0x39ce59=('attribute:'+(_0x256b76+'|'+Jt({'newValue':_0x2ad1ec})))['substring'](0x0,0x3c),_0x53f179=this['_setSuggestionData']({'id':_0x47bc42,'type':_0x39ce59,'data':_0x2b6b32,'createdAt':new Date(),'authorId':_0x5afd08,'attributes':_0xa90b9e});_0x596fd7['push'](_0x53f179),this['_addSuggestionMarker'](_0x39ce59,_0x47bc42,_0x5afd08,_0x2df155);}return _0x596fd7;}['enableDefaultAttributesIntegration'](_0x3030e8){this['enableCommand'](_0x3030e8,(_0x2db7c6,..._0x174632)=>{this['_recordAttributeChanges'](()=>{_0x2db7c6(..._0x174632);});});}['registerBlockAttribute'](_0x56be14){this['_blockAttributeKeys']['add'](_0x56be14);}['registerInlineAttribute'](_0x22b26d){this['_inlineAttributeKeys']['add'](_0x22b26d);}['_getAttributeKey'](_0x4d01a6){return'attribute'==_0x4d01a6['type']?_0x4d01a6['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x20cdd4,_0x286750){const _0x362be8=_0x20cdd4['getFirstMarker']();this['_model']['change'](_0xcae20c=>{_0xcae20c['updateMarker'](_0x362be8,{'range':_0x286750});});}['_addThreadToSuggestion'](_0x45b169){const _0x569f31=_0x45b169['id'],_0x7f5749=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x569f31)||this['_commentsRepository']['addCommentThread']({'channelId':_0x7f5749,'threadId':_0x569f31,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x827d14=this['_commentsRepository']['getCommentThread'](_0x569f31);_0x827d14['unbind']('isRemovable'),_0x827d14['isRemovable']=!0x1,_0x45b169['commentThread']=_0x827d14;}['_checkSuggestionCorrectness'](_0x39ab8e,_0xce9254,_0x48dc5d,_0x5222fc){if(_0x39ab8e['type']!=_0xce9254||_0x39ab8e['subType']!=_0x48dc5d||_0x39ab8e['creator']['id']!=_0x5222fc)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5ce67c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5c5247,_0x8b658c){const _0x230ac6=_0x5c5247['getFirstRange']();if(_0x8b658c['isEqual'](_0x230ac6))_0x5c5247['removeMarkers']();else{if(_0x230ac6['containsRange'](_0x8b658c)){const _0x3f6d93=this['_model']['createPositionAt'](_0x8b658c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5c5247,this['_model']['createRange'](_0x230ac6['start'],_0x3f6d93));const _0x127f56=_0x3c9712(),_0x1da692=_0x5c5247['creator']['id'],_0x2eb248=_0x5c5247['type']+':'+_0x5c5247['subType'];this['_setSuggestionData']({'id':_0x127f56,'type':_0x2eb248,'createdAt':new Date(),'authorId':_0x1da692,'data':_0x5c5247['data'],'attributes':_0x5c5247['attributes']});const _0x14ca3e=this['_model']['createPositionAt'](_0x8b658c['end']['parent'],'after'),_0x460b11=this['_model']['createRange'](_0x14ca3e,_0x230ac6['end']);this['_addSuggestionMarker'](_0x2eb248,_0x127f56,_0x1da692,_0x460b11);}else{if(_0x230ac6['containsPosition'](_0x8b658c['start'])){const _0x33ad47=this['_model']['createPositionAt'](_0x8b658c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5c5247,this['_model']['createRange'](_0x230ac6['start'],_0x33ad47));}else{const _0x3fd5d9=this['_model']['createPositionAt'](_0x8b658c['end']['parent'],'after');this['_setSuggestionRange'](_0x5c5247,this['_model']['createRange'](_0x3fd5d9,_0x230ac6['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2626e6){for(const {suggestion:_0x3d5b00,meta:_0x4e5d36}of this['_findSuggestions'](_0x2626e6,'insertion')){if(!_0x4e5d36['isOwn'])continue;const _0x267209=_0x3d5b00['getRanges']();for(const _0x25594d of _0x267209)if(!_0x2626e6['getDifference'](_0x25594d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x8e1ca6){const _0x10ec36=this['editor']['plugins']['get']('Users')['getUser'](_0x8e1ca6);if(!_0x10ec36)throw new _0x5ce67c('track-changes-user-not-found',this);return _0x10ec36;}['_getExternalAuthor'](_0x12325e){const _0x310896=this['editor']['plugins']['get']('Users'),_0x1acbe8=_0x2b43fc('external:'+_0x12325e),_0x43b883=_0x310896['getUser'](_0x1acbe8);return _0x43b883||_0x310896['addUser']({'id':_0x1acbe8,'name':_0x12325e});}['_createSuggestion'](_0x130bdf,_0x2ebf62,_0x42ad5e,_0x122a82,_0x247955){const _0x354bd3=this['_getAuthorFromId'](_0x122a82),_0x39b83d=this['_suggestionFactory']['buildSuggestion'](_0x130bdf,_0x2ebf62,_0x42ad5e,_0x354bd3,_0x247955,_0x35f5f0=>{this['_updateSuggestionData'](_0x42ad5e,{'attributes':_0x35f5f0});const _0x33973d=this['getSuggestion'](_0x42ad5e);this['_joinWithAdjacentSuggestions'](new Set([_0x33973d])),this['_refreshSuggestionsChain'](new Set([_0x33973d]));});return this['listenTo'](_0x39b83d,'accept',()=>{this['_updateSuggestionData'](_0x42ad5e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x39b83d,'discard',()=>{this['_updateSuggestionData'](_0x42ad5e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x42ad5e,_0x39b83d),this['_suggestionState']['set'](_0x39b83d,'notReady'),_0x39b83d;}['_splitMarkerName'](_0x1ff7c0){const _0x33486b=_0x1ff7c0['split'](':');return{'group':_0x33486b[0x0],'type':_0x33486b[0x1],'subType':_0x33486b['length']>=0x5?_0x33486b[0x2]:null,'id':_0x33486b['length']<0x5?_0x33486b[0x2]:_0x33486b[0x3],'authorId':_0x33486b['length']<0x5?_0x33486b[0x3]:_0x33486b[0x4],'markerCount':0x6==_0x33486b['length']?_0x33486b[0x5]:null};}['_breakSuggestionMarker'](_0x5d930e,_0x41a1fb,_0x2d83c2){const _0x18ed7b=_0x5d930e['getFirstRange'](),_0xe1fa0d=_0x18ed7b['start'],_0x37f806=_0x18ed7b['end'];this['_setSuggestionRange'](_0x5d930e,this['_model']['createRange'](_0xe1fa0d,_0x41a1fb));const _0x32c880=_0x3c9712(),_0x37e0fa=_0x5d930e['creator']['id'],_0x1eabbf=_0x5d930e['type']+(_0x5d930e['subType']?':'+_0x5d930e['subType']:'');this['_setSuggestionData']({'id':_0x32c880,'type':_0x1eabbf,'createdAt':new Date(),'authorId':_0x37e0fa,'originalSuggestionId':_0x5d930e['id'],'attributes':_0x5d930e['attributes'],'data':_0x5d930e['data']});const _0x360290=this['_getAttributeKey'](_0x5d930e);('formatBlock'==_0x5d930e['type']||_0x360290&&this['_isBlockAttribute'](_0x360290))&&(_0x2d83c2=this['_model']['createPositionBefore'](_0x2d83c2['parent'])),this['_addSuggestionMarker'](_0x1eabbf,_0x32c880,_0x37e0fa,this['_model']['createRange'](_0x2d83c2,_0x37f806));}['_findSuggestions'](_0x2510d1,_0x2f6d1c=null){const _0x2a47d9=[],_0x1f151e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2510d1)||(_0x2510d1=[_0x2510d1]);for(const _0x1561a3 of this['getSuggestions']()){if(!_0x1561a3['isInContent'])continue;if(_0x2f6d1c&&_0x1561a3['type']!=_0x2f6d1c)continue;let _0x5655be=!0x1;for(const _0x76ffe1 of _0x1561a3['getRanges']()){for(const _0x4e2e32 of _0x2510d1){const _0x25762d=_0x4e2e32['start']['isEqual'](_0x76ffe1['end'])||_0x4e2e32['end']['isEqual'](_0x76ffe1['start']);if(_0x25762d||_0x4e2e32['getIntersection'](_0x76ffe1)){const _0x18fce0=_0x4e2e32['containsRange'](_0x76ffe1)&&Gt(this['_model']['schema'],_0x76ffe1['start'],_0x4e2e32),_0x3ab883=_0x76ffe1['containsRange'](_0x4e2e32)&&Gt(this['_model']['schema'],_0x4e2e32['start'],_0x76ffe1);_0x2a47d9['push']({'suggestion':_0x1561a3,'meta':{'isOwn':_0x1f151e==_0x1561a3['author'],'isNextTo':_0x25762d,'isInsideObject':_0x18fce0,'containsRangeInObject':_0x3ab883}}),_0x5655be=!0x0;break;}}if(_0x5655be)break;}}return _0x2a47d9;}['_addSuggestionMarker'](_0x3052e5,_0x4a4226,_0x6dbe6f,_0x3cc4a7,_0x5b310f){this['_model']['change'](_0x51edcd=>{let _0x19f95a='suggestion:'+_0x3052e5+':'+_0x4a4226+':'+_0x6dbe6f;_0x5b310f&&(_0x19f95a=_0x19f95a+':'+_0x5b310f),_0x51edcd['addMarker'](_0x19f95a,{'range':_0x3cc4a7,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xfd7565){const _0x2347da=_0xfd7565['previous'],_0x5c95c5=_0xfd7565['next'];_0xfd7565['previous']=null,_0xfd7565['next']=null,null!=_0x2347da&&_0x2347da['next']==_0xfd7565&&(_0x2347da['next']=_0x5c95c5),null!=_0x5c95c5&&_0x5c95c5['previous']==_0xfd7565&&(_0x5c95c5['previous']=_0x2347da),'ready'==this['_suggestionState']['get'](_0xfd7565)&&(this['_suggestionState']['set'](_0xfd7565,'removed'),this['fire']('suggestionUnloaded',_0xfd7565,_0x2347da,_0x5c95c5));}['_setSuggestionData'](_0x51c49d){const _0xacd3df=_0x51c49d['id'],_0x37ddc2=this['addSuggestionData'](_0x51c49d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2086fa=this['editor']['plugins']['get']('PendingActions'),_0x472462=_0x37ddc2['hasComments'],_0xffc14e=_0x37ddc2['subType']?_0x37ddc2['type']+':'+_0x37ddc2['subType']:_0x37ddc2['type'],_0x4c07d5=this['editor']['locale'],_0x319ff9=_0x2086fa['add'](o(_0x4c07d5,'PENDING_ACTION_SUGGESTION')),_0x396b27={'id':_0xacd3df,'type':_0xffc14e,'hasComments':_0x472462,'data':_0x51c49d['data']||null,'originalSuggestionId':_0x51c49d['originalSuggestionId']||null,'attributes':_0x37ddc2['attributes']};this['_adapter']['addSuggestion'](_0x396b27)['then'](_0x1132d7=>{_0x37ddc2['_saved']=!0x0,_0x2086fa['remove'](_0x319ff9),_0x1132d7&&_0x1132d7['createdAt']&&(this['_suggestions']['get'](_0xacd3df)['createdAt']=_0x1132d7['createdAt']);})['catch'](_0x5498c0=>{throw _0x1a0c82('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x37ddc2['discard']();}),_0x37ddc2['stopListening'](),this['_suggestions']['delete'](_0x37ddc2['id']),this['_suggestionState']['delete'](_0x37ddc2),_0x5498c0;});}return _0x37ddc2;}['_isBlockAttribute'](_0x4d5caf){return this['_blockAttributeKeys']['has'](_0x4d5caf);}['_updateSuggestionData'](_0x4a3e2a,_0x40ac63){const _0x1afc2a=this['editor']['plugins']['get']('PendingActions'),_0x3aae62=this['getSuggestion'](_0x4a3e2a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3aae62['_saved']){const _0x317b4a=_0x1afc2a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4a3e2a,_0x40ac63)['then'](()=>{_0x1afc2a['remove'](_0x317b4a);});}else _0x3aae62['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4a3e2a,_0x40ac63);});}}['_getSuggestionData'](_0x2948c6){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5ce67c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2948c6);}['_handleNewSuggestionMarker'](_0x525929){const {id:_0x17c775,type:_0x596f2b,subType:_0x2c2719,authorId:_0x3ecede}=this['_splitMarkerName'](_0x525929),_0x232cc3=this['_suggestions']['get'](_0x17c775)||this['_createSuggestion'](_0x596f2b,_0x2c2719,_0x17c775,_0x3ecede,{});switch(this['_checkSuggestionCorrectness'](_0x232cc3,_0x596f2b,_0x2c2719,_0x3ecede),this['_suggestionState']['get'](_0x232cc3)){case'notReady':this['_getSuggestionData'](_0x17c775)['then'](_0x322143=>{let _0x1de919=Promise['resolve']();_0x322143['hasComments']&&(_0x1de919=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x17c775})),_0x1de919['then'](()=>{this['addSuggestionData'](_0x322143)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x232cc3,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x17c775,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x232cc3,'ready'),this['fire']('suggestionLoaded',_0x232cc3);break;case'ready':this['fire']('suggestionChanged',_0x232cc3);}return _0x232cc3['addMarkerName'](_0x525929),_0x232cc3;}['_refreshSuggestionsChain'](_0x45bf4a){const _0x35215a=Array['from'](_0x45bf4a),_0x31133b=_0x35215a['filter'](_0x13b868=>'attribute'==_0x13b868['type']);this['_refreshAttributeSuggestionsChain'](_0x31133b);const _0x44b245=_0x35215a['filter'](_0x263eaf=>!_0x263eaf['isMultiRange']&&'attribute'!=_0x263eaf['type']),_0x522a0b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x331ff7=>!_0x331ff7['isMultiRange']&&'attribute'!=_0x331ff7['type']),_0x1fb60c=_0x522a0b['filter'](_0x819699=>!_0x45bf4a['has'](_0x819699)),_0x4c0e1f=new Map(_0x522a0b['map'](_0x3fef69=>[_0x3fef69,this['_suggestionFactory']['getSuggestionCallback'](_0x3fef69['type'],_0x3fef69['subType'],'chain')])),_0x2e0dc0=new Map(_0x522a0b['map'](_0x49a6ac=>[_0x49a6ac,_0x49a6ac['getFirstRange']()])),_0x38446c=new Set(),_0x11873d=new Set();for(let _0x4fbe32=0x0;_0x4fbe32<_0x44b245['length'];_0x4fbe32++)_0x4eda42(_0x44b245[_0x4fbe32],_0x44b245,_0x4fbe32+0x1);for(let _0xf7a432=0x0;_0xf7a432<_0x44b245['length'];_0xf7a432++)_0x4eda42(_0x44b245[_0xf7a432],_0x1fb60c,0x0);const _0x3cbd9b=new Set();for(let _0x5076a0=0x0;_0x5076a0<_0x44b245['length'];_0x5076a0++){const _0x102fb9=_0x44b245[_0x5076a0];!_0x11873d['has'](_0x102fb9)&&_0x102fb9['previous']&&(_0x3cbd9b['add'](_0x102fb9['previous']),_0x102fb9['previous']['next']===_0x102fb9&&(_0x102fb9['previous']['next']=null),_0x102fb9['previous']=null),!_0x38446c['has'](_0x102fb9)&&_0x102fb9['next']&&(_0x3cbd9b['add'](_0x102fb9['next']),_0x102fb9['next']['previous']===_0x102fb9&&(_0x102fb9['next']['previous']=null),_0x102fb9['next']=null);}function _0x4eda42(_0x26f369,_0x2535fd,_0x922a62){for(let _0x5c64f3=_0x922a62;_0x5c64f3<_0x2535fd['length'];_0x5c64f3++){const _0x3352ea=_0x44721b(_0x26f369,_0x2535fd[_0x5c64f3]);_0x3352ea&&(_0x3352ea[0x0]['next']=_0x3352ea[0x1],_0x3352ea[0x1]['previous']=_0x3352ea[0x0],_0x38446c['add'](_0x3352ea[0x0]),_0x11873d['add'](_0x3352ea[0x1]));}}function _0x44721b(_0x7673a4,_0x117a85){if(_0x7673a4['author']['id']!==_0x117a85['author']['id'])return null;const _0x399219=_0x4c0e1f['get'](_0x7673a4)(_0x7673a4,_0x117a85,_0x2e0dc0['get'](_0x7673a4),_0x2e0dc0['get'](_0x117a85));if(!_0x399219)return null;return _0x4c0e1f['get'](_0x117a85)(_0x7673a4,_0x117a85,_0x2e0dc0['get'](_0x7673a4),_0x2e0dc0['get'](_0x117a85))?_0x399219[0x1]['commentThread']&&_0x399219[0x1]['commentThread']['length']?null:_0x399219:null;}_0x3cbd9b['size']&&this['_refreshSuggestionsChain'](_0x3cbd9b);}['_refreshAttributeSuggestionsChain'](_0x2731ed){if(0x0==_0x2731ed['length'])return;const _0x37ccb7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x566f04=>'attribute'==_0x566f04['type']&&_0x566f04['_isDataLoaded']),_0xd003a2=[],_0x169957=new Map();for(const _0x2535ad of _0x37ccb7){const _0x727b15=_0x2b43fc(_0x2535ad['attributes']);_0x169957['has'](_0x727b15)||(_0x169957['set'](_0x727b15,_0xd003a2['length']),_0xd003a2['push']([]));const _0x5c8c24=_0x169957['get'](_0x727b15);_0xd003a2[_0x5c8c24]['push'](_0x2535ad);}!(function(){_0xd003a2['sort']((_0x946cdc,_0x494e4d)=>{const _0x2ae146=_0x946cdc[0x0]['createdAt'],_0x21f9bf=_0x494e4d[0x0]['createdAt'];return _0x2ae146==_0x21f9bf?_0x946cdc[0x0]['attributes']['groupId']<_0x494e4d[0x0]['attributes']['groupId']?-0x1:0x1:_0x2ae146<_0x21f9bf?-0x1:0x1;});for(const _0x760470 of _0xd003a2)_0x760470['sort']((_0x109544,_0x38ccd5)=>_0x109544['id']<_0x38ccd5['id']?-0x1:0x1);}());for(let _0x5ab639=0x0;_0x5ab639<_0xd003a2['length'];_0x5ab639++){if(0x0==_0xd003a2[_0x5ab639]['length'])continue;const _0x34514a=[];for(let _0x1e4f62=_0x5ab639+0x1;_0x1e4f62<_0xd003a2['length'];_0x1e4f62++)0x0!=_0xd003a2[_0x1e4f62]['length']&&_0x3dffcd(_0xd003a2[_0x5ab639],_0xd003a2[_0x1e4f62])&&_0x34514a['push'](_0x1e4f62);for(const _0x457a22 of _0x34514a)_0xd003a2[_0x5ab639]=_0xd003a2[_0x5ab639]['concat'](_0xd003a2[_0x457a22]),_0xd003a2[_0x457a22]=[];}for(const _0x29323c of _0xd003a2)for(let _0xa52e68=0x0;_0xa52e68<_0x29323c['length'];_0xa52e68++){const _0x3c8e93=_0x29323c[_0xa52e68+0x1]||null;_0x29323c[_0xa52e68]['next']!==_0x3c8e93&&(_0x29323c[_0xa52e68]['next']=_0x3c8e93);}for(const _0x4df68e of _0xd003a2)for(let _0x1920d0=0x0;_0x1920d0<_0x4df68e['length'];_0x1920d0++){const _0x27e529=_0x4df68e[_0x1920d0-0x1]||null;_0x4df68e[_0x1920d0]['previous']!==_0x27e529&&(_0x4df68e[_0x1920d0]['previous']=_0x27e529);}function _0x3dffcd(_0x4881b6,_0x3fdbe6){if(_0x4881b6[0x0]['attributes']['groupId']!==_0x3fdbe6[0x0]['attributes']['groupId']&&_0x4881b6[0x0]['author']!==_0x3fdbe6[0x0]['author'])return!0x1;if(!function(_0x4412b7,_0x2ebe6c){if(!_0x4412b7['hasComments']&&!_0x2ebe6c['hasComments'])return!0x0;if(_0x4412b7['hasComments']&&_0x2ebe6c['hasComments'])return!0x1;if(_0x4412b7['hasComments']&&_0x2ebe6c['createdAt']<_0x4412b7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2ebe6c['hasComments']&&_0x4412b7['createdAt']<_0x2ebe6c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4881b6[0x0],_0x3fdbe6[0x0]))return!0x1;const _0x3e864d=Vt(_0x4881b6[0x0]['attributes'],'groupId'),_0x90fe7f=Vt(_0x3fdbe6[0x0]['attributes'],'groupId');if(!_0x368862(_0x3e864d,_0x90fe7f))return!0x1;return!!_0x4881b6['every'](_0x39098b=>_0x3fdbe6['some'](_0x5cc447=>_0x39098b['getFirstRange']()['isEqual'](_0x5cc447['getFirstRange']())))&&_0x3fdbe6['every'](_0xb78a84=>_0x4881b6['some'](_0x33020b=>_0xb78a84['getFirstRange']()['isEqual'](_0x33020b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x217104){const _0x9dec81=Array['from'](_0x217104),_0xd90b5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x197331=_0xd90b5['filter'](_0x2ba99c=>!_0x217104['has'](_0x2ba99c)),_0x2ef1d8=new Map(_0x9dec81['map'](_0x134d1c=>[_0x134d1c,this['_suggestionFactory']['getSuggestionCallback'](_0x134d1c['type'],_0x134d1c['subType'],'join')])),_0x87164=new Map(_0xd90b5['map'](_0x52b2b1=>[_0x52b2b1,_0x52b2b1['getRanges']()]));for(let _0x3ae503=0x0;_0x3ae503<_0x9dec81['length'];_0x3ae503++){if(_0x272c6f(this,_0x9dec81[_0x3ae503],_0x9dec81,_0x3ae503+0x1))return!0x0;}for(let _0x4f0874=0x0;_0x4f0874<_0x9dec81['length'];_0x4f0874++){if(_0x272c6f(this,_0x9dec81[_0x4f0874],_0x197331,0x0))return!0x0;}return!0x1;function _0x272c6f(_0x1a0d2a,_0x213443,_0x1692b8,_0x49bdde){for(let _0x49aa52=_0x49bdde;_0x49aa52<_0x1692b8['length'];_0x49aa52++){const _0x219ab8=_0x1692b8[_0x49aa52];if(_0x219ab8['type']!==_0x213443['type']||_0x219ab8['author']['id']!==_0x213443['author']['id']||_0x219ab8['subType']!==_0x213443['subType'])continue;if(!Wt(_0x213443,_0x219ab8))continue;if('attribute'==_0x213443['type']&&_0x213443['data']['oldValue']!=_0x219ab8['data']['oldValue'])continue;if('attribute'==_0x213443['type']&&_0x1a0d2a['_isBlockAttribute'](_0x213443['data']['key']))continue;if('formatBlock'==_0x213443['type']){const _0xefcfe6=_0x1a0d2a['editor']['model'],_0x5a3c50=_0x213443['getContainedElement']();if(_0x5a3c50&&(_0xefcfe6['schema']['isObject'](_0x5a3c50)||_0xefcfe6['schema']['isLimit'](_0x5a3c50)))continue;}const _0x12684c=_0x2ef1d8['get'](_0x213443),_0x26e2f7=_0x87164['get'](_0x213443),_0xbe9b85=_0x87164['get'](_0x219ab8),_0x3de4f4=_0x213443['commentThread']&&_0x213443['commentThread']['length'],_0x3e6fc2=_0x219ab8['commentThread']&&_0x219ab8['commentThread']['length'];if(!_0x3de4f4&&_0x12684c(_0xbe9b85,_0x26e2f7))return _0x1a0d2a['_joinSuggestions'](_0x219ab8,_0x213443),_0x87164['delete'](_0x213443),!0x0;if(!_0x3e6fc2&&_0x12684c(_0x26e2f7,_0xbe9b85))return _0x1a0d2a['_joinSuggestions'](_0x213443,_0x219ab8),_0x87164['delete'](_0x219ab8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5d74e7,_0x2438e9){if(_0x5d74e7['isMultiRange']){for(const _0x3f8b4f of _0x2438e9['getRanges']())_0x5d74e7['addRange'](_0x3f8b4f);}else{const _0x4e9c8b=_0x2438e9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5d74e7,this['_model']['createRange'](_0x5d74e7['getFirstRange']()['start'],_0x4e9c8b));}_0x2438e9['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3e8782,_0x3e1aa6,_0x1bf672){const _0x1a027e=_0x3e8782['startsWith']('format')||_0x3e8782['startsWith']('attribute')?'FORMATTING':_0x3e8782['toUpperCase']();return o(this['editor']['locale'],_0x3e1aa6+'_'+_0x1a027e+'_SUGGESTION_ANNOUNCEMENT',_0x1bf672);}['_initAriaMarkerChangeAnnouncements'](){const _0x298c0=this['editor'];if(!_0x298c0['ui'])return;const {ariaLiveAnnouncer:_0x2b5cf8}=_0x298c0['ui'];_0x594392(this['_model'],({left:_0x3a78f2,entered:_0x55a310})=>{for(const _0x4dd340 of _0x3a78f2){const {group:_0x1ae03a,type:_0x4815e0}=this['_splitMarkerName'](_0x4dd340['name']);if('suggestion'===_0x1ae03a){_0x2b5cf8['announce'](this['_getMarkerAnnouncementText'](_0x4815e0,'LEAVE'));break;}}for(const _0x465e9c of _0x55a310){const {group:_0x43e1e5,type:_0x31eca2}=this['_splitMarkerName'](_0x465e9c['name']);if('suggestion'===_0x43e1e5){_0x2b5cf8['announce'](this['_getMarkerAnnouncementText'](_0x31eca2,'ENTER',_0xec83d3(_0x3fcc05)));break;}}});}['_processAttributeChanges'](_0x5bd91d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x517e43=this['editor'],_0x33ea1b=_0x517e43['model']['document']['differ']['getChanges']();if(0x0==_0x33ea1b['length'])return!0x1;const _0x7de50a=[],_0x23295d=_0x33ea1b['filter'](_0xdf64bb=>'attribute'==_0xdf64bb['type']),_0x149e9f=_0x33ea1b['filter'](_0x3fabd4=>'insert'==_0x3fabd4['type']&&'$text'!=_0x3fabd4['name']),_0x2d52e5=_0x33ea1b['filter'](_0x572271=>'remove'==_0x572271['type']&&'$text'!=_0x572271['name']);for(const _0x4486ba of _0x23295d)_0x7de50a['push']({'key':_0x4486ba['attributeKey'],'newValue':_0x4486ba['attributeNewValue'],'oldValue':_0x4486ba['attributeOldValue'],'range':qt(_0x4486ba['range'],_0x517e43['model'])});for(const _0x517573 of _0x149e9f){const _0x41775e=_0x2d52e5['find'](_0x4134c3=>_0x4134c3['position']['isEqual'](_0x517573['position']));_0x41775e&&_0x7de50a['push']({'key':m,'newValue':_0x517573['name'],'oldValue':_0x41775e['name'],'range':_0x517e43['model']['createRangeOn'](_0x517573['position']['nodeAfter'])});}return 0x0!=_0x7de50a['length']&&this['_reduceExistingSuggestions'](_0x5bd91d,_0x7de50a);}['_processAttributeSuggestions'](_0xb1b7a7){let _0x415226=!0x1;const _0xebb2f9=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5dcce8=>_0x5dcce8['data']['newRange']&&_0x5dcce8['name']['startsWith']('suggestion:attribute:'));for(const _0x814116 of _0xebb2f9){const {subType:_0x4d40ab,id:_0x1e032c}=this['_splitMarkerName'](_0x814116['name']),_0x52fd41=_0x4d40ab['split']('|')[0x0];for(const _0x35182c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x35182c['id']!=_0x1e032c&&'attribute'==_0x35182c['type']&&_0x35182c['data']&&_0x35182c['data']['key']==_0x52fd41&&_0x35182c['getFirstRange']()['isIntersecting'](_0x814116['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x35182c,_0x814116['data']['newRange'],_0xb1b7a7),_0x415226=!0x0);}return _0x415226;}['_recordAttributeChanges'](_0x11cdfb){this['_recordAttributeSuggestions']=!0x0,_0x11cdfb();}['_isRegisteredAttribute'](_0x1f89f2){const _0x30afcd=this['_isBlockAttribute'](_0x1f89f2),_0x437345=this['_inlineAttributeKeys']['has'](_0x1f89f2);return _0x30afcd||_0x437345;}['_reduceExistingSuggestions'](_0x272635,_0x304d83){if(0x0==_0x304d83['length'])return!0x1;let _0x4f6f2c=!0x1;for(const _0x2f0fe8 of _0x304d83){const _0x3a1d1f=this['_findSuggestions'](_0x2f0fe8['range'],'attribute')['filter'](_0x1ca166=>!_0x1ca166['meta']['isNextTo'])['map'](_0x5c1d19=>_0x5c1d19['suggestion']),_0x1ac666=_0x2b43fc({'newValue':_0x2f0fe8['newValue']});_0x3a1d1f['filter'](_0x5314d6=>{const [_0x4bdacc,_0x569b18]=_0x5314d6['subType']['split']('|');return _0x4bdacc==_0x2f0fe8['key']&&_0x569b18!=_0x1ac666;})['forEach'](_0x28e1f6=>{this['_reduceSuggestionAttributeRange'](_0x28e1f6,_0x2f0fe8['range'],_0x272635),_0x4f6f2c=!0x0;});}return _0x4f6f2c;}['_reduceSuggestionAttributeRange'](_0x772a7d,_0xb17b86,_0x441b2a){const _0x422f51=_0x772a7d['getFirstRange']()['getDifference'](_0xb17b86);0x0!==_0x422f51['length']?0x1!==_0x422f51['length']?this['_breakSuggestionMarker'](_0x772a7d,_0xb17b86['start'],_0xb17b86['end']):this['_setSuggestionRange'](_0x772a7d,_0x422f51[0x0]):_0x441b2a['removeMarker'](_0x772a7d['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x497d9d){this['_editor']=_0x497d9d,this['_model']=_0x497d9d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x25d4ed,_0x2e4569,_0x5330ef,_0x58d616,_0x173bd9,_0x458e0f){return new u(this['_model'],{'type':_0x25d4ed,'subType':_0x2e4569,'id':_0x5330ef,'author':_0x58d616,'creator':_0x58d616,'attributes':_0x173bd9,'onAttributesChange':_0x458e0f,'onAccept':(..._0x58fe43)=>this['getSuggestionCallback'](_0x25d4ed,_0x2e4569,'accept')(..._0x58fe43),'onDiscard':(..._0x10fb5f)=>this['getSuggestionCallback'](_0x25d4ed,_0x2e4569,'discard')(..._0x10fb5f)});}['registerCustomCallback'](_0x3918ba,_0x2c3622,_0x16afb5,_0x5eafcd){const _0x38fe67=_0x3918ba+':'+_0x2c3622+':'+_0x16afb5;this['_customCallbacks']['set'](_0x38fe67,_0x5eafcd);}['getSuggestionCallback'](_0x3c8ed8,_0x4380d3,_0x590da6){const _0x47104a=_0x3c8ed8+':'+_0x4380d3+':'+_0x590da6;return this['_customCallbacks']['get'](_0x47104a)||this['_defaultCallbacks']['get'](_0x3c8ed8+':'+_0x590da6);}['_registerDefaultCallbacks'](){const _0x3a99b4=()=>!0x1,_0x56b6f6=_0x456cad=>{_0x456cad['sort']((_0x602a11,_0x433d41)=>_0x602a11['start']['isBefore'](_0x433d41['start'])?0x1:-0x1),this['_model']['change'](_0x412d31=>{for(const _0x435b80 of _0x456cad){let _0x415a24;_0x415a24=_0x435b80['end']['isAtEnd']&&_0x435b80['end']['parent']==_0x435b80['start']['nodeAfter']?_0x412d31['createSelection'](_0x435b80['start']['nodeAfter'],'on'):_0x412d31['createSelection'](_0x435b80),this['_model']['deleteContent'](_0x415a24,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x24cecd=(_0xe1ef0,_0x418eba)=>{_0x418eba&&this['_model']['change'](_0x372c9f=>{const {commandName:_0x3cf234,commandParams:_0x4a98de=[]}=_0x418eba,_0x35d7f6=_0xe1ef0['map'](_0x17f8d8=>(Ft(_0x17f8d8)&&(_0x17f8d8=this['_model']['createRange'](_0x17f8d8['end'])),_0x17f8d8))['filter'](_0x3e335d=>'$graveyard'!==_0x3e335d['root']['rootName']);if(_0x35d7f6['length']<0x1)return;const _0xb068ad=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3bffcf=>_0x48b32a['fromRange'](_0x3bffcf));_0x372c9f['setSelection'](_0x35d7f6);for(const _0x24f37a of this['_editor']['commands']['commands']())_0x24f37a['refresh']();_0x4a98de['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3cf234,..._0x4a98de);const _0x4dcded=_0xb068ad['filter'](_0x587479=>'$graveyard'!=_0x587479['root']['rootName']);_0x4dcded['length']>0x0&&_0x372c9f['setSelection'](_0x4dcded);for(const _0x412ca2 of _0xb068ad)_0x412ca2['detach']();});},_0x8e6076=(_0xccce46,_0x56aff6)=>0x1==_0xccce46['length']&&0x1==_0x56aff6['length']&&_0xccce46[0x0]['end']['isEqual'](_0x56aff6[0x0]['start']),_0xe85a83=(_0x596c6f,_0x12c91d,_0xd5f18d,_0x1c820e)=>Kt(_0x596c6f,_0x12c91d,_0xd5f18d,_0x1c820e)?[_0x596c6f,_0x12c91d]:Kt(_0x12c91d,_0x596c6f,_0x1c820e,_0xd5f18d)?[_0x12c91d,_0x596c6f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3a99b4),this['_defaultCallbacks']['set']('insertion:discard',_0x56b6f6),this['_defaultCallbacks']['set']('insertion:join',_0x8e6076),this['_defaultCallbacks']['set']('insertion:chain',_0xe85a83),this['_defaultCallbacks']['set']('deletion:accept',_0x56b6f6),this['_defaultCallbacks']['set']('deletion:discard',_0x3a99b4),this['_defaultCallbacks']['set']('deletion:join',_0x8e6076),this['_defaultCallbacks']['set']('deletion:chain',_0xe85a83),this['_defaultCallbacks']['set']('formatInline:accept',_0x24cecd),this['_defaultCallbacks']['set']('formatInline:discard',_0x3a99b4),this['_defaultCallbacks']['set']('formatInline:join',_0x8e6076),this['_defaultCallbacks']['set']('formatInline:chain',_0x3a99b4),this['_defaultCallbacks']['set']('formatBlock:accept',_0x24cecd),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3a99b4),this['_defaultCallbacks']['set']('formatBlock:join',_0x8e6076),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3a99b4),this['_defaultCallbacks']['set']('attribute:accept',_0x3a99b4),this['_defaultCallbacks']['set']('attribute:discard',(_0x624c08,_0xf0a1b5)=>{if(!_0xf0a1b5)return;const _0x18b1d3=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x503ae1=>{if(_0xf0a1b5['key']==m)for(const _0x2d11c6 of _0x624c08){const _0x59c2fb=_0x2d11c6['start']['nodeAfter'],_0x515be6=_0xf0a1b5['oldValue'];_0x503ae1['rename'](_0x59c2fb,_0x515be6);}else{if(_0x18b1d3['_isBlockAttribute'](_0xf0a1b5['key'])){for(const _0xb3ec35 of _0x624c08)void 0x0!==_0xf0a1b5['oldValue']?_0x503ae1['setAttribute'](_0xf0a1b5['key'],_0xf0a1b5['oldValue'],_0xb3ec35['start']['nodeAfter']):_0x503ae1['removeAttribute'](_0xf0a1b5['key'],_0xb3ec35['start']['nodeAfter']);}else{for(const _0x4b590b of _0x624c08)_0xf0a1b5['oldValue']?_0x503ae1['setAttribute'](_0xf0a1b5['key'],_0xf0a1b5['oldValue'],_0x4b590b):_0x503ae1['removeAttribute'](_0xf0a1b5['key'],_0x4b590b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x8e6076);}}function Gt(_0x31425c,_0x51e3c3,_0x2ee252){for(const _0x3cb945 of _0x51e3c3['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3cb945['root']==_0x3cb945)return!0x1;if(!_0x2ee252['containsItem'](_0x3cb945))return!0x1;if(_0x31425c['isObject'](_0x3cb945)||_0x31425c['isLimit'](_0x3cb945))return!0x0;}return!0x1;}function Ft(_0x342e7d){return _0x342e7d['end']['parent']==_0x342e7d['start']['nodeAfter']&&_0x342e7d['end']['isAtStart'];}function Lt(_0x20e5af,_0x3dbc8d,_0x9501a6,_0x54090e){const _0x3cd80a=_0x3180be=>!_0x3180be['item']['is']('$textProxy')&&!_0x54090e['isObject'](_0x3180be['item']),_0x51ae16=_0x20e5af['start']['getLastMatchingPosition'](_0x3cd80a),_0x462d3c=_0x20e5af['end']['getLastMatchingPosition'](_0x3cd80a,{'direction':'backward'});return(!_0x20e5af['start']['isEqual'](_0x51ae16)||!_0x20e5af['end']['isEqual'](_0x462d3c))&&(_0x51ae16['isBefore'](_0x462d3c)?_0x9501a6['updateMarker'](_0x3dbc8d,{'range':_0x9501a6['createRange'](_0x51ae16,_0x462d3c)}):_0x9501a6['removeMarker'](_0x3dbc8d),!0x0);}function Jt(_0x1c5c82){return _0x2b43fc(_0x1c5c82);}function Ht(_0x22812c){const _0x28a505=_0x22812c['start']['nodeAfter'];return _0x28a505&&_0x28a505['is']('element');}function qt(_0x4dbc76,_0x27f0ef){return null==_0x4dbc76['end']['nodeBefore']&&_0x4dbc76['end']['parent']==_0x4dbc76['start']['nodeAfter']?zt(_0x4dbc76['start']['nodeAfter'],_0x27f0ef):_0x4dbc76;}function zt(_0x109c45,_0x1227f4){const _0x16c613=_0x1227f4['schema']['isObject'](_0x109c45)||_0x1227f4['schema']['isSelectable'](_0x109c45);return _0x1227f4['createRange'](_0x1227f4['createPositionAt'](_0x109c45,'before'),_0x16c613?_0x1227f4['createPositionAfter'](_0x109c45):_0x1227f4['createPositionAt'](_0x109c45,'end'));}function Kt(_0x255550,_0x430088,_0x3e987c,_0x291489){return!!Wt(_0x255550,_0x430088)&&_0x3e987c['end']['isEqual'](_0x291489['start']);}function Wt(_0x523534,_0x344dd0){if(!_0x523534['_isDataLoaded']||!_0x344dd0['_isDataLoaded'])return!0x1;const _0x2234fe=new Set(Object['keys'](_0x523534['attributes'])),_0xbfe2a9=new Set(Object['keys'](_0x344dd0['attributes']));if(_0x2234fe['delete']('groupId'),_0xbfe2a9['delete']('groupId'),0x0==_0x2234fe['size']&&0x0==_0xbfe2a9['size'])return!0x0;if(_0x2234fe['size']!=_0xbfe2a9['size'])return!0x1;const _0x5594e7={..._0x523534['attributes']},_0x1de098={..._0x344dd0['attributes']};return delete _0x5594e7['groupId'],delete _0x1de098['groupId'],JSON['stringify'](_0x5594e7)==JSON['stringify'](_0x1de098);}function Qt(_0x277742,_0x15c3b5){const _0x15020a=Xt(_0x277742['attributes']),_0x34976d=Xt(_0x15c3b5);if(!_0x277742['_isDataLoaded'])return!0x1;for(const _0x2d7ea9 of Object['keys'](_0x34976d))if(!_0x368862(_0x15020a[_0x2d7ea9],_0x34976d[_0x2d7ea9]))return!0x1;return!0x0;}function Xt(_0x752aa2){const _0x399646=Object['assign']({},_0x752aa2);return delete _0x399646['skipNestingCheck'],delete _0x399646['tablePasteChainId'],_0x399646;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5bc7ae(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1973b7,_0x123905,_0xbe393c,_0x2d3064){super(),this['model']=_0x123905,this['view']=_0xbe393c,this['commentThreadController']=_0x2d3064,this['_editor']=_0x1973b7,this['_acceptCommand']=_0x1973b7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1973b7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1720bb,_0x66f2d4)=>_0x1720bb||_0x66f2d4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5a8fa5=>_0x5a8fa5&&this['_editor']['model']['canEditAt'](_0x123905['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4e7133=>_0x4e7133&&this['_editor']['model']['canEditAt'](_0x123905['getRanges']())),this['_pendingAction']=null,_0xbe393c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xbe393c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xbe393c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xbe393c,'change:isDirty',()=>{_0xbe393c['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 _0x5d88e1=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5d88e1);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x2d0d7c{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3ae45a,_0x3a4211,_0x344c12,_0x34dd85){super(_0x3ae45a),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x250142(_0x3ae45a,o(_0x3ae45a,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3a4211['authoredAt']),this['bind']('authoredAt')['to'](_0x3a4211),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',_0x3a4211,'authoredAt',this,'descriptionParts',(_0x5eb8f2,_0x18e9f8,_0x4a7bb9)=>{const _0x15368b=_0x4a7bb9['map'](_0x1258b8=>cs(_0x1258b8['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5eb8f2-0x1,_0x3a4211['author']['name'],_0x18e9f8?_0x34dd85['formatDateTime'](_0x18e9f8):'',new DOMParser()['parseFromString'](_0x15368b,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4e25f5(),this['focusTracker']=new _0x232c5b(),this['keystrokes']=new _0x37c388(),this['focusCycler']=new _0x3c8af0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x40b092=>_0x40b092['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3a4211,this['_localUser']=_0x344c12,this['_config']=_0x34dd85,_0x34dd85['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x35133b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4c55d1}=this['_config'];this['commentsListView']=new _0x4c55d1(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',_0x541471=>_0x541471+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x50b07d,_0x2b4ea6)=>_0x50b07d||!!_0x2b4ea6);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x257d39}=this['_config'],_0x209c09=new _0x257d39(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x55ee25=_0x209c09['commentInputView'];return _0x209c09['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x55ee25,'value',(_0x58ac34,_0x4ed998,_0x11baab)=>!!_0x11baab||_0x58ac34&&!_0x4ed998),_0x55ee25['on']('submit',(_0x535e5a,_0x36f380)=>{this['fire']('addComment',_0x36f380),_0x55ee25['editor']['setData']('');}),_0x55ee25['on']('cancel',()=>this['focus']()),_0x55ee25['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x209c09;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x843e37,_0x52cfcc,_0x5e7e9d,_0x480cc0){super(_0x843e37,_0x52cfcc,_0x5e7e9d,_0x480cc0),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2a8300=>_0x2a8300&&_0x2a8300[0x0]?_0x2a8300[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x448758,_0x313af1)=>{let _0x4249bb='';for(const _0x26454f of _0x448758)_0x4249bb+='<p>'+cs(_0x26454f['content'],_0x26454f['color'])+'</p>';return _0x313af1?_0x4249bb:_0x2e84b1(_0x4249bb,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x480cc0['SuggestionView'](_0x843e37,_0x52cfcc,{'formatDateTime':_0x480cc0['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 _0x4d0a37=this['bindTemplate'],_0xe0ca6f=[this['suggestionView']];return this['commentsListView']&&_0xe0ca6f['push'](this['commentsListView']),this['commentThreadInputView']&&_0xe0ca6f['push'](this['commentThreadInputView']),_0xe0ca6f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4d0a37['if']('isActive','ck-suggestion-wrapper--active'),_0x4d0a37['to']('type',_0x1c10fc=>'ck-suggestion-'+_0x1c10fc),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':_0x4d0a37['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xe0ca6f};}['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 fe extends _0x2d0d7c{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5bbaf5,_0x3e36b4,_0x678f53){super(_0x5bbaf5),this['_model']=_0x3e36b4,this['_config']=_0x678f53,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3e36b4),this['acceptButton']=this['_createButton'](o(_0x5bbaf5,'Accept\x20suggestion'),_0x9de0ee['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5bbaf5,'Discard\x20suggestion'),_0x9de0ee['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x43ccf5(_0x5bbaf5,_0x3e36b4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4e25f5([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x232c5b(),this['keystrokes']=new _0x37c388(),this['focusCycler']=new _0x3c8af0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4c22e5=>_0x4c22e5['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x396e54=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x396e54['innerHTML']=this['description'],this['on']('change:description',(_0x15cf1f,_0x494862,_0x48071f)=>{_0x396e54['innerHTML']=_0x48071f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x29eaf2=this['bindTemplate'],_0x32109d=[{'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':_0x29eaf2['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x29eaf2['to']('authoredAt',_0x14ecd8=>this['_config']['formatDateTime'](_0x14ecd8))}]}]},{'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']&&_0x32109d['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':_0x32109d}]};}['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'](_0x434921,_0x4d6974,_0x353c0f,_0x2b3027,_0x236c4f){const _0x384746=new _0x5c8e0d(this['locale']);return _0x384746['set']({'label':_0x434921,'icon':_0x4d6974,'tooltip':!0x0,'tooltipPosition':_0x236c4f}),_0x384746['extendTemplate']({'attributes':{'class':_0x353c0f}}),_0x384746['on']('execute',()=>{this['fire'](_0x2b3027,this['_model']['id']);}),_0x384746;}['_setupKeyboardNavigation'](){const _0x384f12=this['element'];this['keystrokes']['listenTo'](_0x384f12);for(const _0x16d6bc of this['focusables'])this['focusTracker']['add'](_0x16d6bc['element']),this['keystrokes']['listenTo'](_0x16d6bc['element']);this['keystrokes']['set']('enter',(_0x2bf29e,_0x1818ab)=>{_0x384f12===_0x2bf29e['target']&&(this['focusCycler']['focusFirst'](),_0x1818ab());}),this['keystrokes']['set']('esc',(_0x3fbe91,_0x2db3f4)=>{_0x384f12!==_0x3fbe91['target']&&(this['focus'](),_0x2db3f4());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x647c34{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x25306f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb0f6ef){super(_0xb0f6ef),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x9d9033=this['editor']['config'];_0x9d9033['define']('trackChanges.SuggestionThreadView',pe),_0x9d9033['define']('trackChanges.SuggestionView',fe),_0x9d9033['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x9d9033['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x283e71,_0x5bf200){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2cb632,_0x13ebb6]of this['_handleControllerBuffer']){const _0x4655e4=this['_suggestionToController']['has'](_0x2cb632);_0x4655e4||_0x13ebb6?_0x4655e4&&_0x13ebb6&&this['_destroyController'](_0x2cb632):this['_initializeController'](_0x2cb632);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x283e71,_0x5bf200);}['init'](){const _0x261676=this['editor'],_0x5c06db=_0x261676['plugins']['get']('TrackChangesEditing'),_0x5c2696=_0x261676['plugins']['get']('Annotations'),_0x248356=_0x261676['plugins']['get']('EditorAnnotations'),_0x429e11=_0x261676['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x248356['addSourceCollector'](()=>{const _0x450db1=[];for(const [_0x584f80,_0x26d4db]of Array['from'](this['_suggestionToController'])){const _0x143f6d=_0x584f80['getAllAdjacentSuggestions'](),_0x45c6e9=[];for(const _0x44261f of _0x143f6d){if(!_0x44261f['isInContent'])continue;if(_0x44261f['isMultiRange']){_0x45c6e9['push'](..._0x44261f['getRanges']());continue;}const _0x482afc=_0x44261f['getFirstRange']();if(_0x45c6e9['length']>0x0){const _0x370ace=_0x45c6e9[0x0]['getJoined'](_0x482afc);if(_0x370ace){_0x45c6e9[0x0]=_0x370ace;continue;}}_0x45c6e9['push'](_0x482afc);}_0x450db1['push']([_0x26d4db['view'],_0x45c6e9]);}return _0x450db1;}),this['listenTo'](_0x5c06db,'suggestionLoaded',(_0x179b6f,_0x4458fd)=>{this['listenTo'](_0x4458fd,'change:previous',(_0x23a7f0,_0x5f4685,_0x399d58,_0x190b50)=>{_0x4458fd['isInContent']&&(null==_0x399d58?(this['_updateController'](_0x190b50['head']),this['_handleSuggestionControllerDelayed'](_0x4458fd,!0x1)):(this['_updateController'](_0x399d58['head']),null==_0x190b50&&this['_handleSuggestionControllerDelayed'](_0x4458fd,!0x0)));}),null!==_0x4458fd['previous']?this['_updateController'](_0x4458fd['head']):this['_handleSuggestionControllerDelayed'](_0x4458fd,!0x1);}),this['listenTo'](_0x5c06db,'suggestionUnloaded',(_0xfc30f0,_0x598868,_0x26ce11)=>{this['stopListening'](_0x598868,'change:previous'),this['_handleControllerBuffer']['delete'](_0x598868),this['_suggestionToController']['has'](_0x598868)&&this['_destroyController'](_0x598868),_0x26ce11&&this['_updateController'](_0x26ce11['head']);}),this['listenTo'](_0x5c06db,'suggestionChanged',(_0x53bd6d,_0x501ed8)=>{this['_updateController'](_0x501ed8);}),this['listenTo'](_0x5c2696,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x429e11,'addComment',(_0x396108,{threadId:_0x24dc9b,isFromAdapter:_0x3ccc8c})=>{if(_0x3ccc8c||!_0x5c06db['hasSuggestion'](_0x24dc9b))return;const _0xfb89c9=_0x5c06db['getSuggestion'](_0x24dc9b);this['_suggestionToController']['get'](_0xfb89c9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4eaaa9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4e9eca;for(const _0x4028ba in _0x4eaaa9){const _0x188355=_0x4028ba,_0x23c1ce=_0x4eaaa9[_0x188355];if('trackChangesLicenseKeyValid'==_0x23c1ce||'trackChangesLicenseKeyInvalid'==_0x23c1ce||'trackChangesLicenseKeyExpired'==_0x23c1ce||'trackChangesLicenseKeyDomainLimit'==_0x23c1ce||'trackChangesLicenseKeyNotAllowed'==_0x23c1ce||'trackChangesLicenseKeyEvaluationLimit'==_0x23c1ce||'trackChangesLicenseKeyTrialLimit'==_0x23c1ce||'trackChangesLicenseKeyUsageLimit'==_0x23c1ce){delete _0x4eaaa9[_0x188355],_0x4e9eca=_0x23c1ce,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4e9eca&&_0x4eaaa9['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4e9eca&&_0x4eaaa9['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4e9eca&&_0x4eaaa9['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4e9eca&&_0x4eaaa9['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4e9eca&&_0x4eaaa9['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4e9eca&&_0x4eaaa9['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4e9eca&&_0x4eaaa9['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x50303d=this['editor']['plugins']['get']('Annotations'),_0x213884=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fffb9=Array['from'](_0x50303d['activeAnnotations'],_0x4d5cbe=>_0x4d5cbe['innerView'])['filter'](_0x19e1d0=>this['_viewToController']['has'](_0x19e1d0)),_0x343863=[];for(const _0x56ab84 of _0x1fffb9){const _0x524af3=this['_viewToController']['get'](_0x56ab84)['model']['getAllAdjacentSuggestions']();_0x343863['push'](..._0x524af3['reduce']((_0x35b642,_0x233921)=>[..._0x35b642,..._0x233921['getMarkerNames']()],[]));}_0x213884['activeMarkers']=_0x343863;}['_addUIComponentsToFactory'](){const _0x2c22fa=this['editor'],_0x27c4a3=_0x2c22fa['locale'],_0x4e2a98=o(_0x27c4a3,'Track\x20changes'),_0x1a8c2d=new _0x132dba([{'type':'switchbutton','model':new _0x553af1({'withText':!0x0,'isToggleable':!0x0,'label':_0x4e2a98,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x553af1({'withText':!0x0,'label':o(_0x27c4a3,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x553af1({'withText':!0x0,'label':o(_0x27c4a3,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x553af1({'withText':!0x0,'label':o(_0x27c4a3,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x553af1({'withText':!0x0,'label':o(_0x27c4a3,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2c22fa['plugins']['has']('TrackChangesPreview')&&_0x1a8c2d['addMany']([{'type':'separator'},{'type':'button','model':new _0x553af1({'withText':!0x0,'label':o(_0x27c4a3,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x43d92c of _0x1a8c2d)if(ke(_0x43d92c)){const _0x2b9358=_0x2c22fa['commands']['get'](_0x43d92c['model']['commandName']);_0x43d92c['model']['bind']('isOn','isEnabled')['to'](_0x2b9358,'value','isEnabled');}_0x2c22fa['ui']['componentFactory']['add']('trackChanges',_0x2a81ac=>this['_createToolbarButton'](_0x2a81ac,_0x1a8c2d,_0x4e2a98)),_0x2c22fa['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4e7f0c=>this['_createMenuBarMenu'](_0x4e7f0c,_0x1a8c2d,_0x4e2a98));}['_createToolbarButton'](_0x1b930e,_0x2e35f8,_0x43562b){const _0x3d472d=_0x275312(_0x1b930e,_0x401f1e),_0x5282e6=this['editor']['commands']['get']('trackChanges');_0x3d472d['buttonView']['set']({'tooltip':_0x43562b,'label':_0x43562b,'icon':we}),_0x3d472d['buttonView']['bind']('isOn')['to'](_0x5282e6,'value'),_0x3d472d['buttonView']['on']('execute',()=>{_0x5282e6['execute'](),this['editor']['editing']['view']['focus']();}),_0x2971af(_0x3d472d,_0x2e35f8,{'role':'menu'});const _0x56c316=[];for(const _0x391ce6 of _0x2e35f8)ke(_0x391ce6)&&_0x56c316['push'](this['editor']['commands']['get'](_0x391ce6['model']['commandName']));const _0x51130f=_0x3d472d['buttonView'];return _0x51130f['actionView']['unbind']('isEnabled'),_0x51130f['arrowView']['unbind']('isEnabled'),_0x51130f['actionView']['bind']('isEnabled')['to'](_0x5282e6,'isEnabled'),_0x51130f['arrowView']['bind']('isEnabled')['toMany'](_0x56c316,'isEnabled',(..._0x5cb1b6)=>_0x5cb1b6['some'](_0x13cf0f=>_0x13cf0f)),_0x3d472d['on']('execute',_0x41d6ad=>{this['editor']['execute'](_0x41d6ad['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3d472d;}['_createMenuBarMenu'](_0x1d78de,_0x21afb0,_0x26141f){const _0x5708ce=new _0x22b53f(_0x1d78de),_0x399e3d=this['editor']['commands']['get']('trackChanges');_0x5708ce['buttonView']['set']({'label':_0x26141f,'icon':we});const _0x281228=new _0x269874(_0x1d78de);for(const _0x598a5a of _0x21afb0){if('separator'==_0x598a5a['type']){_0x281228['items']['add'](new _0x2adb1a(_0x1d78de));continue;}const _0x4dbecf=new _0x5bb529(_0x1d78de,_0x5708ce),_0xe2467a=new _0x39fb13(_0x1d78de),_0x18001f=_0x598a5a['model'];_0xe2467a['bind'](...Object['keys'](_0x18001f))['to'](_0x18001f),_0xe2467a['delegate']('execute')['to'](_0x5708ce),_0xe2467a['on']('execute',()=>{this['editor']['execute'](_0x18001f['commandName']),this['editor']['editing']['view']['focus']();}),_0x4dbecf['children']['add'](_0xe2467a),_0x281228['items']['add'](_0x4dbecf);}return _0x5708ce['bind']('isEnabled')['to'](_0x399e3d,'isEnabled'),_0x5708ce['panelView']['children']['add'](_0x281228),_0x5708ce;}['_initializeController'](_0x4b20b4){const _0x3e58be=this['editor'],_0x1dd77c=_0x3e58be['config'],_0x44736b=_0x3e58be['plugins']['get']('Annotations'),_0x5764b5=_0x3e58be['plugins']['get']('CommentsRepository'),_0x27b7dc=_0x3e58be['plugins']['get']('EditorAnnotations'),_0x20b8d4=_0x3e58be['plugins']['get'](_0x25306f)['me'],_0x466a5f=_0x1dd77c['get']('trackChanges')['SuggestionThreadView'],_0x51bcd8=_0x1dd77c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xa44b43,CommentThreadInputView:_0x2d14b3}=_0x3e58be['plugins']['get']('CommentsUI');let _0x3ac806,_0x684e1b,_0x4a63da;this['_annotationViews']['has'](_0x4b20b4['id'])?(_0x684e1b=this['_annotationViews']['get'](_0x4b20b4['id']),_0x3ac806=_0x684e1b['mainView']):(_0x3ac806=new _0x466a5f(_0x3e58be['locale'],_0x4b20b4,_0x20b8d4,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1dd77c['get']('comments.editorConfig'),'licenseKey':_0x1dd77c['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1dd77c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1dd77c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1dd77c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3226da(_0x1dd77c['get']('locale')),'CommentView':_0x1dd77c['get']('comments')['CommentView'],'CommentsListView':_0xa44b43,'CommentThreadInputView':_0x2d14b3,'SuggestionView':_0x51bcd8}),_0x3ac806['suggestionView']['acceptButton']['on']('execute',()=>{_0x3e58be['editing']['view']['focus']();}),_0x3ac806['suggestionView']['discardButton']['on']('execute',()=>{_0x3e58be['editing']['view']['focus']();}),_0x684e1b=_0x44736b['createAnnotationView'](this['editor']['locale'],_0x3ac806),_0x684e1b['bind']('isDirty')['to'](_0x3ac806,'isDirty'),_0x684e1b['bind']('length')['to'](_0x3ac806),_0x684e1b['bind']('type')['to'](_0x3ac806,'type',_0x425974=>'suggestion-'+_0x425974),_0x3ac806['on']('escape',()=>{_0x4a63da['fire']('escape');}),this['_annotationViews']['set'](_0x4b20b4['id'],_0x684e1b));const _0x499f3e=_0x5764b5['createCommentThreadController'](_0x4b20b4['commentThread'],_0x3ac806),_0x37e460=new Ce(_0x3e58be,_0x4b20b4,_0x3ac806,_0x499f3e),_0x56ade0=_0x4b20b4['getAllAdjacentSuggestions']()['filter'](_0x3a0d1b=>_0x3a0d1b['isInContent']);_0x3ac806['descriptionParts']=_0x3e58be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x56ade0),this['_suggestionToController']['set'](_0x4b20b4,_0x37e460),this['_viewToController']['set'](_0x3ac806,_0x37e460),_0x4a63da=_0x44736b['createAnnotation']({'view':_0x684e1b,'target':()=>{const _0x29fee1=[],_0x5d3808=_0x4b20b4['getAllAdjacentSuggestions']()['filter'](_0x3a0f39=>_0x3a0f39['isInContent']);for(const _0x260db5 of _0x5d3808)_0x29fee1['push'](..._0x260db5['getMarkers']());return _0xacb8dc(_0x3e58be['editing'],_0x29fee1);},'type':()=>'suggestion-'+_0x37e460['view']['type']}),_0x5764b5['_bindAnnotationToEditors'](_0x3ac806,_0x4a63da),_0x44736b['add'](_0x4a63da),_0x27b7dc['registerAnnotation'](_0x4a63da);}['_destroyController'](_0x1f4487){const _0x971ef4=this['editor']['plugins']['get']('CommentsRepository'),_0x1f9c7a=this['editor']['plugins']['get']('Annotations'),_0x353864=this['_suggestionToController']['get'](_0x1f4487),_0x42f184=_0x353864['view'],_0x242134=_0x1f9c7a['getByInnerView'](_0x42f184);_0x971ef4['_unbindEditors'](_0x42f184),_0x242134&&_0x1f9c7a['remove'](_0x242134),this['_suggestionToController']['delete'](_0x1f4487),this['_viewToController']['delete'](_0x42f184),_0x353864['destroy']();}['_updateController'](_0x3a21bc){if(!_0x3a21bc['isInContent']||!this['_suggestionToController']['has'](_0x3a21bc))return;const _0x399626=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ece41=this['_suggestionToController']['get'](_0x3a21bc),_0x4d688f=_0x3a21bc['getAllAdjacentSuggestions']();_0x1ece41['view']['descriptionParts']=_0x399626['descriptionFactory']['getDescriptions'](_0x4d688f);}['destroy'](){for(const _0x55dbb0 of this['_suggestionToController']['keys']())this['_destroyController'](_0x55dbb0);for(const _0x3fcfc1 of this['_annotationViews']['values']())_0x3fcfc1['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xcb4438){return'model'in _0xcb4438;}class k extends _0x647c34{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2b5c45){this['editor']['plugins']['get'](p)['adapter']=_0x2b5c45;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2b751f){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2b751f);}['getSuggestions']({skipNotAttached:_0x50855a=!0x1,toJSON:_0x47d215=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x50855a,'toJSON':_0x47d215});}['getSuggestion'](_0x2aee61){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2aee61);}}const w=['Pagination'];class T extends _0x647c34{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x27833f=this['editor'];if(_0x27833f['config']['define']('trackChangesData.editorCreator',_0x3e892f=>{const _0x1972a7=_0x27833f['model']['document']['getRootNames']()['reduce']((_0xa241d2,_0x220ba0)=>(_0xa241d2[_0x220ba0]='',_0xa241d2),{});return _0x27833f['constructor']['create'](_0x1972a7,_0x3e892f);}),'function'!=typeof _0x27833f['config']['get']('trackChangesData')['editorCreator'])throw new _0x5ce67c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x577467){return N(this['editor'],!0x0,_0x577467);}['getDataWithDiscardedSuggestions'](_0x1beb04){return N(this['editor'],!0x1,_0x1beb04);}}class D extends _0x647c34{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x341538){function _0x4b162c(_0x47699e){return _0x47699e['map'](_0x47d5e7=>String['fromCharCode'](_0x47d5e7))['join']('');}super(_0x341538),this['result']='end',_0x341538[_0x4b162c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b162c([0x76,0x69,0x65,0x77])][_0x4b162c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b162c([0x61,0x75,0x74,0x6f]),_0x341538[_0x4b162c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4b162c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b162c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4b162c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4b162c([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 Fe(_0x5b07b9){return void 0x0!==_0x5b07b9['getRootsAttributes'];}async function N(_0x1803cc,_0x193307,_0x2f12d3){const _0x1e317a=_0x4b1fcd(_0x1803cc,w);_0x1e317a['plugins']['push'](p,D),_0x1e317a['rootsAttributes']=Fe(_0x1803cc)?_0x1803cc['getRootsAttributes']():void 0x0;const _0x16301e=document['createDocumentFragment'](),_0x59ffdd=_0x1803cc['config']['get']('trackChangesData')['editorCreator'],_0x32a9a8=await _0x59ffdd(_0x1e317a,()=>function(_0x31581f){const _0x6490b=document['createElement']('div');return _0x31581f['appendChild'](_0x6490b),_0x6490b;}(_0x16301e));!function(_0x59c208,_0x20a194){const _0x1b281d=_0x59c208['model']['document']['getRootNames']()['reduce']((_0x433303,_0x1be3c8)=>(_0x433303[_0x1be3c8]=_0x59c208['data']['get']({'rootName':_0x1be3c8}),_0x433303),{}),_0x4fb705=_0x59c208['plugins']['get']('Users')['users']['map'](_0x630f54=>({'id':_0x630f54['id'],'name':_0x630f54['name']})),_0x29122b=_0x59c208['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3bd7e3=_0x59c208['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2f5476=_0x20a194['plugins']['get']('Users'),_0x1acad2=_0x20a194['plugins']['get']('TrackChangesEditing'),_0x727fae=_0x20a194['plugins']['get']('CommentsRepository');for(const _0x681747 of _0x727fae['getCommentThreads']())_0x681747['remove']();for(const _0x4f6096 of _0x4fb705)_0x2f5476['getUser'](_0x4f6096['id'])||_0x2f5476['addUser'](_0x4f6096);_0x2f5476['me']||_0x2f5476['useAnonymousUser']();for(const _0x229293 of _0x3bd7e3)_0x727fae['addCommentThread'](_0x229293);for(const _0x434607 of _0x29122b)_0x1acad2['addSuggestionData'](_0x434607);_0x20a194['data']['set'](_0x1b281d);}(_0x1803cc,_0x32a9a8),_0x32a9a8['execute'](_0x193307?'acceptAllSuggestions':'discardAllSuggestions');const _0x14a6bb=Fe(_0x32a9a8)?_0x32a9a8['getFullData'](_0x2f12d3):_0x32a9a8['data']['get'](_0x2f12d3);return await _0x32a9a8['destroy'](),_0x14a6bb;}class Me extends _0x2d0d7c{['options'];constructor(_0x40493c,_0x480c99){super(_0x40493c),this['options']=_0x480c99,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'](_0xf6d4b2,_0xe09610){if(!this['element'])return;const _0x3dfd52=[];for(const [_0x30810c,_0x108307]of _0xf6d4b2){const _0x19f117=document['createElement']('div');_0x19f117['setAttribute']('data-ck-root-name',_0x30810c),_0x19f117['className']=_0x108307['classes']+'\x20ck-track-changes-preview__root-container',_0x19f117['innerHTML']=_0x108307['content'],_0x3dfd52['push'](_0x19f117);}_0xe09610(this['element'],_0x3dfd52),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x28fce6){super(_0x28fce6),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3d5868=this['editor'],_0x28c57e=_0x3d5868['locale'],_0x12f0d2=_0x3d5868['plugins']['get']('Dialog');let _0x10f430;const _0xdf62d5=function(_0x22525c){const _0x17cfe0={};if('editables'in _0x22525c['ui']['view']){for(const [_0x337d3f,_0x22cfec]of Object['entries'](_0x22525c['ui']['view']['editables']))_0x17cfe0[_0x337d3f]=_0x22cfec['element'];}else _0x17cfe0[_0x22525c['model']['document']['getRootNames']()[0x0]]=_0x22525c['ui']['view']['editable']['element'];return _0x17cfe0;}(_0x3d5868),_0x34e88c=function(_0x5637f5){let _0x6c8ef=0x0;for(const _0x33b5e5 of Object['values'](_0x5637f5))_0x6c8ef=Math['max'](_0x6c8ef,_0x33b5e5['getBoundingClientRect']()['width']);let _0x4689df=0x0;for(const _0x3ef352 of Object['values'](_0x5637f5))_0x4689df+=_0x3ef352['getBoundingClientRect']()['height'];const _0x4d1bf6=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x18b7d9=Math['min'](_0x4689df,_0x4d1bf6);return{'width':_0x6c8ef,'height':_0x18b7d9};}(_0xdf62d5);_0x12f0d2['show']({'id':'finalContentPreview','title':o(_0x28c57e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x28c57e,{'dialogRects':_0x34e88c}),'onHide':()=>{_0x10f430['detachFromDom']();},'onShow':()=>{_0x3d5868['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x30f280=>{const _0xc5b147=this['_standarizeRootsData'](_0x30f280,_0x3d5868,_0xdf62d5);_0x12f0d2['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xc5b147,_0x3d5868['config']['get']('trackChanges.preview.renderFunction'));}),_0x10f430=new _0x1476c9(_0x28c57e,[_0x12f0d2['view']]),_0x10f430['attachToDom'](),_0x10f430['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3d5868['once']('destroy',()=>{_0x10f430['detachFromDom']();});const _0x4818b1=_0x12f0d2['view']['headerView']['class'];_0x12f0d2['view']['headerView']['class']=_0x4818b1?_0x4818b1+'\x20ck-reset_all':'ck-reset_all',_0x12f0d2['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x12f0d2['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x35ac0e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1625a3=_0x35ac0e['previewMode'],_0x4bd22b={};if('$labels'===_0x1625a3){for(const _0x17aba4 of _0x35ac0e['getMergeFieldsIds']())_0x4bd22b[_0x17aba4]=_0x35ac0e['getLabel'](_0x17aba4)||_0x17aba4;}else{const _0x405fef='$defaultValues'===_0x1625a3?_0x35ac0e['getDefaultValues']():_0x35ac0e['getDataSetValues'](_0x1625a3,!0x0);for(const _0x3b4ad5 of Object['entries'](_0x405fef)){const [_0x103185,_0x50d96a]=_0x3b4ad5;_0x4bd22b[_0x103185]=null!==_0x50d96a?_0x50d96a:_0x35ac0e['getLabel'](_0x103185)||_0x103185;}}return{'mergeFieldsData':_0x4bd22b};}['_standarizeRootsData'](_0x310ef4,_0x4fa6ef,_0x2d6b38){let _0x16b75a;if('string'==typeof _0x310ef4){const _0x8ef58=_0x4fa6ef['model']['document']['getRootNames']()[0x0];_0x16b75a={[_0x8ef58]:_0x310ef4};}else _0x16b75a=_0x310ef4;const _0x68a331=this['_fixMediaEmbeds'](_0x16b75a,_0x4fa6ef),_0x4809af=function(_0x3ec342,_0x3c5d8c){for(const [_0x491720,_0x59851d]of _0x3ec342)_0x59851d['classes']=_0x3c5d8c[_0x491720]['classList']['value']['replace']('ck-focused','');return _0x3ec342;}(this['_sortRoots'](_0x4fa6ef)['reduce']((_0x13dc1c,_0x39cdcf)=>(_0x13dc1c['push']([_0x39cdcf,{'content':_0x68a331[_0x39cdcf],'classes':''}]),_0x13dc1c),[]),_0x2d6b38);return _0x4809af;}['_fixMediaEmbeds'](_0x12fef3,_0x28b1e4){if(!_0x28b1e4['plugins']['has']('MediaEmbedEditing'))return _0x12fef3;const _0x5f19ba=_0x28b1e4['plugins']['get']('MediaEmbedEditing');for(const [_0x394a9f,_0x4f44d4]of Object['entries'](_0x12fef3)){const _0x4c5319=document['createElement']('div');_0x4c5319['innerHTML']=_0x4f44d4,(_0x4c5319['querySelectorAll']('figure.media')['forEach'](_0xd70bd6=>{const _0x13c78b=_0xd70bd6['querySelector']('oembed');if(_0x13c78b){const _0x386579=_0x13c78b['getAttribute']('url');if(_0x386579){const _0xad4efd=_0x5f19ba['registry']['getMediaViewElement'](new _0x43510c(_0x28b1e4['editing']['view']['document']),_0x386579,{'elementName':'','renderForEditingView':!0x0}),_0x4bec39=document['createElement']('div');_0x4bec39['classList']['add']('ck-media__wrapper'),_0xad4efd['render'](_0x4bec39,_0x28b1e4['editing']['view']['domConverter']),_0x13c78b['replaceWith'](_0x4bec39);}}}),_0x12fef3[_0x394a9f]=_0x4c5319['innerHTML']);}return _0x12fef3;}['_sortRoots'](_0x478c82){if(!function(_0x510f29){return void 0x0!==_0x510f29['getRootsAttributes'];}(_0x478c82))return _0x478c82['model']['document']['getRootNames']();const _0x194bfd=[],_0x2db96e=new Map();for(const _0x1cf031 of _0x478c82['model']['document']['getRootNames']()){const _0xc981ca=_0x478c82['editing']['view']['getDomRoot'](_0x1cf031)['getClientRects']()['item'](0x0);_0x194bfd['push'](_0x1cf031),_0x2db96e['set'](_0x1cf031,_0xc981ca);}return _0x194bfd['sort']((_0x1b5981,_0x52a114)=>{const _0x186560=_0x2db96e['get'](_0x1b5981),_0x16800f=_0x2db96e['get'](_0x52a114);return _0x186560['y']-_0x16800f['y']||_0x186560['x']-_0x16800f['x'];}),_0x194bfd;}}class te extends _0x647c34{static get['requires'](){return[T,_0x116c3a];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x54b20e){super(_0x54b20e),_0x54b20e['commands']['add']('previewFinalContent',new re(this['editor'])),_0x54b20e['config']['define']('trackChanges.preview.renderFunction',(_0x6676d2,_0x227bfa)=>{for(const _0x28dcc4 of _0x227bfa)_0x6676d2['appendChild'](_0x28dcc4);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as Yt,Plugin as _0x334dcc,PendingActions as _0x44d761,icons as _0x32f7bd}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x36ec92,ObservableMixin as _0x28426d,uid as _0x493eac,priorities as _0x53a02d,insertToPriorityArray as _0x373f2c,logWarning as _0x5d2b24,getEnvKeystrokeText as _0x43d92f,FocusTracker as _0x5ea68b,KeystrokeHandler as _0x259fda,Collection as _0x5cface}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x507543,View as _0x256c75,ViewCollection as _0x26983e,FocusCycler as _0x1cfa7a,ViewModel as _0x33f8d5,createDropdown as _0x5343cc,SplitButtonView as _0x57ddec,addListToDropdown as _0x461bd3,MenuBarMenuView as _0x3316ce,MenuBarMenuListView as _0x150464,ListSeparatorView as _0x1ce921,MenuBarMenuListItemView as _0x3fa025,MenuBarMenuListItemButtonView as _0x17026f,BodyCollection as _0x39748b,Dialog as _0xcc23b5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x56e9d7,hashObject as _0x1960d4,surroundingMarkersDetector as _0x225a2e,FOCUS_ANNOTATION_KEYSTROKE as _0x3c5087,AriaDescriptionView as _0x40d9b3,setupThreadKeyboardNavigation as _0x98937b,trimHtml as _0x20553b,UserView as _0x403132,LateFocusButtonView as _0x2ac8fa,getDateTimeFormatter as _0x24b58b,getAllMarkersDomElementsSorted as _0x1002f7,sanitizeEditorConfig as _0x3ae72a}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x340863,LiveRange as _0x3dae0a,LivePosition as _0xb34e4b,DowncastWriter as _0x19e29c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x36341b,toWidget as _0x36976d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1dd486,set as _0x4b773e,isEqual as _0x196e1a,unset as _0x5d86f8,omit as Vt}from'lodash-es';import{Delete as _0x32ab9a,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3bea98,ShiftEnter as _0x4bfe6a}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x5b09bd,_0x47a0ca){super(_0x5b09bd),this['_enabledCommands']=_0x47a0ca,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 _0x529a83 of this['editor']['commands']['commands']())_0x529a83['affectsData']&&!this['_enabledCommands']['has'](_0x529a83)&&_0x529a83['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x56cad2 of this['editor']['commands']['commands']())_0x56cad2['affectsData']&&!this['_enabledCommands']['has'](_0x56cad2)&&_0x56cad2['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x537457,_0x31eb89){super(_0x537457),this['_suggestions']=_0x31eb89,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2a72d5){const _0x50e008=this['_suggestions']['get'](_0x2a72d5);if(!_0x50e008)throw new _0x36ec92('track-changes-accept-suggestion-not-found',this);const _0x30dbb9=_0x50e008['getRanges']();this['editor']['model']['canEditAt'](_0x30dbb9)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x50e008);}}class R extends Yt{['_suggestions'];constructor(_0x36671a,_0x28e208){super(_0x36671a),this['_suggestions']=_0x28e208,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3394be){const _0x403ffd=this['_suggestions']['get'](_0x3394be);if(!_0x403ffd)throw new _0x36ec92('track-changes-discard-suggestion-not-found',this);const _0x3e0cc6=_0x403ffd['getRanges']();this['editor']['model']['canEditAt'](_0x3e0cc6)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x403ffd);}}function cs(_0x77273,_0x5d435f){let _0xcc1d38='';return _0xcc1d38+=_0x77273['split']('*')['map']((_0x190d3c,_0x19f7e3)=>_0x19f7e3%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x190d3c)+'</span>':nn(_0x190d3c))['join'](''),_0x5d435f&&(_0xcc1d38+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5d435f['value']+'\x22\x20title=\x22'+_0x5d435f['title']+'\x22></span>'),_0xcc1d38;}function nn(_0x248cc4){const _0x22bb5b=document['createElement']('span');return _0x22bb5b['innerText']=_0x248cc4,_0x22bb5b['innerHTML'];}function Zt(_0x2f8b8c){return _0x2f8b8c['sort']((_0x212f90,_0x40f443)=>'deletion'==_0x212f90['type']&&'deletion'!=_0x40f443['type']?-0x1:'deletion'!=_0x212f90['type']&&'deletion'==_0x40f443['type']?0x1:0x0);}function to(_0x10fc79,_0x25e677){let _0x39211c,_0x205b97=0x0;const _0x5de473=[],_0x4e33d4=_0x25e677['schema'];for(;_0x205b97<_0x10fc79['length'];){const _0x479681=_0x10fc79[_0x205b97],_0x121223=_0x10fc79[_0x205b97+0x1];_0x39211c||(_0x39211c=_0x25e677['createPositionBefore'](_0x479681)),on(_0x25e677,_0x479681,_0x121223)||(_0x5de473['push'](_0x25e677['createRange'](_0x39211c,_0x4e33d4['isObject'](_0x479681)?_0x25e677['createPositionAfter'](_0x479681):_0x25e677['createPositionAt'](_0x479681,'end'))),_0x39211c=null),_0x205b97++;}return _0x5de473;}function on(_0x5eae88,_0x3dc251,_0x29bd2a){if(!_0x29bd2a)return!0x1;const _0x1458a0=_0x5eae88['createPositionAfter'](_0x3dc251),_0x18f180=_0x5eae88['createPositionBefore'](_0x29bd2a);return _0x1458a0['isTouching'](_0x18f180);}function ts(_0x58ab9f,_0x21ee78,_0x4ce94b){for(;_0x4ce94b['length'];){const _0x484ad5=_0x4ce94b['splice'](0x0,0x64);_0x58ab9f['change'](()=>{for(const _0x526059 of _0x484ad5)_0x526059['isInContent']&&_0x21ee78['execute'](_0x526059['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x2068e4,_0x21a0b5,_0x4e6a62){super(_0x2068e4),this['_command']=_0x21a0b5,this['_suggestions']=_0x4e6a62,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4cfaa4=Array['from'](this['_suggestions']['values']())['some'](_0x5018e0=>_0x5018e0['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4cfaa4;}['execute'](){const _0x1e081f=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x49e1e2 of _0x1e081f){const _0x25ea29=_0x49e1e2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x25ea29))return;}ts(this['editor']['model'],this['_command'],_0x1e081f);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x28d649,_0x520ccf,_0x1d433a){super(_0x28d649),this['_command']=_0x520ccf,this['_suggestions']=_0x1d433a,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3e302f=this['editor']['model']['document']['selection'],_0x4a3a07=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x46258a,_0x338668){const _0x2872c1=Array['from'](_0x46258a['getRanges']()),_0x49d736=new Set();for(const _0x49b65e of _0x338668)if(_0x49b65e['isInContent']){for(const _0x2d82f5 of _0x2872c1)for(const _0x22ca34 of _0x49b65e['getRanges']())(_0x2d82f5['isIntersecting'](_0x22ca34)||_0x46258a['isCollapsed']&&!_0x49b65e['isMultiRange']&&_0x49b65e['next']&&_0x22ca34['end']['isTouching'](_0x2d82f5['start']))&&_0x49d736['add'](_0x49b65e);}return _0x49d736;}(_0x3e302f,_0x4a3a07),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x31f2d2=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x3bb6a4 of _0x31f2d2){const _0x298af9=_0x3bb6a4['getRanges']();if(!this['editor']['model']['canEditAt'](_0x298af9))return;}ts(this['editor']['model'],this['_command'],_0x31f2d2);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x28426d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x344480,_0x5b6e85){super(),this['id']=_0x5b6e85['id'],this['type']=_0x5b6e85['type'],this['subType']=_0x5b6e85['subType']||null,this['author']=_0x5b6e85['author'],this['creator']=_0x5b6e85['creator']||_0x5b6e85['author'],this['isExternal']=Boolean(_0x5b6e85['attributes']&&_0x5b6e85['attributes']['@external']),this['data']=null,this['_model']=_0x344480,this['_onAccept']=_0x5b6e85['onAccept'],this['_onDiscard']=_0x5b6e85['onDiscard'],this['_onAttributesChange']=_0x5b6e85['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5b6e85['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 _0x49f231=this;for(;_0x49f231['previous'];)_0x49f231=_0x49f231['previous'];return _0x49f231;}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'](_0xb78f5c){this['_markerNames']['add'](_0xb78f5c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4b5d2f=>this['_model']['markers']['get'](_0x4b5d2f))['filter'](_0x5d6bef=>_0x5d6bef);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x43d378=>{for(const _0x262ec3 of this['getMarkers']())_0x43d378['removeMarker'](_0x262ec3);}),this['_markerNames']['clear']();}['removeMarker'](_0x5d29c9){this['_model']['change'](_0x2e5be7=>{_0x2e5be7['removeMarker'](_0x5d29c9);}),this['_markerNames']['delete'](_0x5d29c9);}['addRange'](_0x5032c5){const _0x4375dc='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4375dc),this['_model']['change'](_0x59ccf1=>{_0x59ccf1['addMarker'](_0x4375dc,{'range':_0x5032c5,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2d59a4){for(const _0x300f30 of this['getRanges']())if(_0x300f30['isIntersecting'](_0x2d59a4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x352dd0=>_0x352dd0['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3eae87,_0x28815f)=>[..._0x3eae87,..._0x28815f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4a75ab=this['getRanges']();if(0x1!=_0x4a75ab['length'])return null;const _0x1eb99e=_0x4a75ab[0x0],_0x25125b=_0x1eb99e['start']['nodeAfter'],_0x6d24ae=_0x1eb99e['end']['nodeBefore'];return _0x25125b instanceof _0x340863?_0x25125b!=_0x6d24ae?null:_0x25125b: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 _0x50c06c=[];let _0x222580=this['head'];for(;_0x222580;)_0x50c06c['push'](_0x222580),_0x222580=_0x222580['next'];return _0x50c06c;}['setAttribute'](_0x3e9aa4,_0x1b27e7){const _0x4f1dff=_0x1dd486(this['attributes']);_0x4b773e(_0x4f1dff,_0x3e9aa4,_0x1b27e7),_0x196e1a(_0x4f1dff,this['attributes'])||(this['attributes']=_0x4f1dff,this['_onAttributesChange'](_0x4f1dff));}['removeAttribute'](_0x52c9f7){const _0x3ca4e1=_0x1dd486(this['attributes']);_0x5d86f8(_0x3ca4e1,_0x52c9f7),_0x196e1a(_0x3ca4e1,this['attributes'])||(this['attributes']=_0x3ca4e1,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 _0x493eac()['substr'](0x1,0x5);}}function o(_0x1af606,_0x5a1dbd,_0x579b60){const _0x11b29f=_0x1af606['t'],t=_0x1af606['t'];switch(_0x5a1dbd){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',_0x579b60);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x579b60);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x579b60);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x579b60);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x579b60);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',_0x579b60);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x579b60);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',_0x579b60);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x579b60);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x579b60);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x579b60);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x579b60);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x579b60);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x579b60);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x579b60);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x579b60);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x579b60);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x579b60);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x579b60);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x579b60);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x579b60);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x579b60);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x579b60);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x579b60);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'},_0x579b60);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x579b60);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x579b60);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x579b60);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x579b60);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x579b60);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'},_0x579b60);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x579b60);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x579b60);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x579b60);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x579b60);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'},_0x579b60);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x579b60);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'},_0x579b60);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'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'},_0x579b60);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x579b60);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'},_0x579b60);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x579b60);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'},_0x579b60);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x579b60);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x579b60);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'},_0x579b60);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x579b60);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 _0x11b29f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x579b60);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x11b29f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x579b60);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x579b60);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'},_0x579b60);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'},_0x579b60);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'},_0x579b60);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5a1dbd;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4b66be,_0x1e0924){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4b66be,this['_locale']=_0x1e0924;}['getDescriptions'](_0x58c51e){const _0x1f8d42=[],_0x8f5883=new Set(),_0x5087c7=new Set();for(let _0x529649=0x0;_0x529649<_0x58c51e['length'];_0x529649++){const _0x5477c7=_0x58c51e[_0x529649];if(!_0x5477c7['isInContent'])continue;const _0x44abc2=this['_handleCustomCallbackDescription'](_0x5477c7);if(_0x44abc2){if(null!=_0x5477c7['subType']){if(_0x8f5883['has'](_0x5477c7['subType']))continue;_0x8f5883['add'](_0x5477c7['subType']);}_0x1f8d42['push'](_0x44abc2);}else{if('attribute'!=_0x5477c7['type'])'insertion'!=_0x5477c7['type']&&'deletion'!=_0x5477c7['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1f8d42,_0x5477c7,_0x58c51e[_0x529649+0x1]);else{const _0x55a4f3=_0x5477c7['data']['key'];if(_0x5087c7['has'](_0x55a4f3))continue;_0x5087c7['add'](_0x5477c7['data']['key']),_0x55a4f3==m?this['_handleRenameSuggestionDescription'](_0x1f8d42,_0x5477c7):this['_handleAttributeSuggestionDescription'](_0x1f8d42,_0x5477c7);}}}return this['_resolveDescriptionItems'](_0x1f8d42);}['registerDescriptionCallback'](_0x17b51a){this['_customCallbacks']['push'](_0x17b51a);}['registerElementLabel'](_0x497182,_0x11e2e4,_0x151a42=_0x53a02d['normal']){'function'==typeof _0x497182?_0x373f2c(this['_itemLabelsCallbacks'],{'matchingCallback':_0x497182,'label':_0x11e2e4,'priority':_0x151a42}):this['_itemLabels']['set'](_0x497182,_0x11e2e4);}['registerAttributeLabel'](_0x54b88a,_0xd387b7){this['_attributeLabels']['set'](_0x54b88a,_0xd387b7);}['getItemLabel'](_0x267ee7,_0xb62807=0x1){let _0x358376;for(const _0xbf42d of this['_itemLabelsCallbacks'])if(_0xbf42d['matchingCallback'](_0x267ee7)){_0x358376=_0xbf42d['label'];break;}return _0x358376||(_0x358376=this['_itemLabels']['get'](_0x267ee7['name'])),_0x358376?_0x358376(_0xb62807):0x1!==_0xb62807?_0xb62807+'\x20'+_0x267ee7['name']+'s':''+_0x267ee7['name'];}['_addDescriptionItems'](_0x372029,_0x5cadbd){const _0x5e4340=_0x5cadbd['getFirstRange']()['getWalker'](),_0x54a63e='insertion'==_0x5cadbd['type']?'add':'remove';for(const _0x28f2a5 of _0x5e4340){const _0xd551ce=_0x28f2a5['item'],_0x4427d6=_0x372029[_0x372029['length']-0x1];if(_0xd551ce['is']('$textProxy'))_0x4427d6&&_0x4427d6['type']['indexOf']('Container')>-0x1&&_0x372029['pop'](),_0x4427d6&&'text'==_0x4427d6['type']?_0x4427d6[_0x54a63e]+=_0xd551ce['data']:_0x372029['push']({'type':'text','add':'add'==_0x54a63e?_0xd551ce['data']:'','remove':'remove'==_0x54a63e?_0xd551ce['data']:''});else{if(this['_schema']['isObject'](_0xd551ce)){const _0x2a60b0=_0xd551ce;if(_0x4427d6&&_0x4427d6['type']['indexOf']('Container')>-0x1&&_0x372029['pop'](),'elementEnd'==_0x28f2a5['type'])continue;_0x4427d6&&_0x4427d6['type']==_0x54a63e+'Object'&&_0x4427d6['element']['name']==_0x2a60b0['name']?_0x4427d6['quantity']++:_0x372029['push']({'type':_0x54a63e+'Object','element':_0x2a60b0,'quantity':0x1}),_0x5e4340['skip'](_0x2b2532=>!('elementEnd'==_0x2b2532['type']&&_0x2b2532['item']==_0xd551ce));}else{if(this['_schema']['checkChild'](_0xd551ce,'$text')||_0xd551ce['is']('element','softBreak')){const _0x2e135b=_0xd551ce;if('add'==_0x54a63e&&'elementStart'==_0x28f2a5['type']||'remove'==_0x54a63e&&'elementEnd'==_0x28f2a5['type'])continue;if(_0x4427d6&&-0x1==_0x4427d6['type']['indexOf']('Container')){'text'==_0x4427d6['type']&&(_0x4427d6[_0x54a63e]+='\x0a');continue;}let _0x229614;if(_0x229614='add'==_0x54a63e?_0x2e135b['nextSibling']&&!this['_schema']['isObject'](_0x2e135b['nextSibling'])?_0x2e135b['nextSibling']:null:_0x2e135b['previousSibling']&&!this['_schema']['isObject'](_0x2e135b['previousSibling'])?_0x2e135b['previousSibling']:null,_0x2e135b['isEmpty']||_0x229614&&_0x229614['isEmpty']){const _0x274d0f=_0x229614&&_0x229614['isEmpty']?_0x229614:_0x2e135b;_0x4427d6&&_0x4427d6['type']==_0x54a63e+'EmptyContainer'&&_0x4427d6['element']['name']==_0x274d0f['name']?_0x4427d6['quantity']++:_0x372029['push']({'type':_0x54a63e+'EmptyContainer','element':_0x274d0f,'quantity':0x1});}else _0x372029['push']({'type':_0x54a63e+'Container','element':_0x2e135b});}}}}}['_resolveDescriptionItems'](_0xc52cd4){const _0x283990=this['_locale'],_0x356d0e=[],_0x14de41=[],_0x23f314=[];for(const _0x37859f of _0xc52cd4)switch(_0x37859f['type']){case'text':if(_0x37859f['add']=_0x37859f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x37859f['remove']=_0x37859f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x37859f['add']&&''!=_0x37859f['remove']){_0x356d0e['push']({'type':'replace','content':o(_0x283990,'REPLACE_TEXT',['\x22'+_0x37859f['remove']+'\x22','\x22'+_0x37859f['add']+'\x22'])});continue;}if(null!=_0x37859f['add']['match'](/^ +$/)){_0x356d0e['push']({'type':'insertion','content':o(_0x283990,'*Insert:*\x20%0',o(_0x283990,'ELEMENT_SPACE',_0x37859f['add']['length']))});continue;}if(null!=_0x37859f['remove']['match'](/^ +$/)){_0x356d0e['push']({'type':'deletion','content':o(_0x283990,'*Remove:*\x20%0',o(_0x283990,'ELEMENT_SPACE',_0x37859f['remove']['length']))});continue;}if(''!=_0x37859f['add']){_0x356d0e['push']({'type':'insertion','content':o(_0x283990,'*Insert:*\x20%0','\x22'+_0x37859f['add']+'\x22')});continue;}_0x356d0e['push']({'type':'deletion','content':o(_0x283990,'*Remove:*\x20%0','\x22'+_0x37859f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x356d0e['push']({'type':'insertion','content':o(_0x283990,'*Insert:*\x20%0',this['getItemLabel'](_0x37859f['element'],_0x37859f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x356d0e['push']({'type':'deletion','content':o(_0x283990,'*Remove:*\x20%0',this['getItemLabel'](_0x37859f['element'],_0x37859f['quantity']))});continue;case'addContainer':_0x356d0e['push']({'type':'insertion','content':o(_0x283990,'*Split:*\x20%0',this['getItemLabel'](_0x37859f['element'],_0x37859f['quantity']))});continue;case'removeContainer':_0x356d0e['push']({'type':'deletion','content':o(_0x283990,'*Merge:*\x20%0',this['getItemLabel'](_0x37859f['element'],_0x37859f['quantity']))});continue;case'addFormat':_0x14de41['push'](_0x37859f['key']);continue;case'removeFormat':_0x23f314['push'](_0x37859f['key']);continue;default:_0x356d0e['push'](_0x37859f);}if(_0x14de41['length']){const _0x4e78ee=_0x14de41['map'](_0x14113c=>this['_attributeLabels']['has'](_0x14113c)?this['_attributeLabels']['get'](_0x14113c):_0x14113c)['join'](',\x20');_0x356d0e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4e78ee)});}if(_0x23f314['length']){const _0x27a27d=_0x23f314['map'](_0x5be285=>this['_attributeLabels']['has'](_0x5be285)?this['_attributeLabels']['get'](_0x5be285):_0x5be285)['join'](',\x20');_0x356d0e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x27a27d)});}return _0x356d0e;}['_handleCustomCallbackDescription'](_0x395281){for(const _0xe1fca3 of this['_customCallbacks']){const _0x407aaa=_0xe1fca3(_0x395281);if(_0x407aaa&&'type'in _0x407aaa)return _0x407aaa;}}['_handleAttributeSuggestionDescription'](_0x5955bf,_0x4f629f){const _0x4c1c0b=_0x4f629f['data'],_0x489890=void 0x0===_0x4c1c0b['newValue']?'removeFormat':'addFormat';_0x5955bf['push']({'type':_0x489890,'key':_0x4c1c0b['key']});}['_handleRenameSuggestionDescription'](_0x17025c,_0x41dfa6){_0x17025c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x41dfa6['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x496d7d,_0xad7f2c,_0x5e65f2){if(this['_addDescriptionItems'](_0x496d7d,_0xad7f2c),_0x5e65f2&&_0x5e65f2['getFirstRange']()&&!_0xad7f2c['getFirstRange']()['end']['isEqual'](_0x5e65f2['getFirstRange']()['start'])){const _0x48bb6d=_0x496d7d[_0x496d7d['length']-0x1],_0x3219bd='insertion'==_0xad7f2c['type']?'add':'remove';_0x48bb6d&&'text'==_0x48bb6d['type']&&(_0x48bb6d[_0x3219bd]+='\x0a');}}}class U extends _0x334dcc{['afterInit'](){const _0x11e506=this['editor'],_0x5a344d=_0x11e506['plugins']['get']('TrackChangesEditing');_0x11e506['commands']['get']('showAIAssistant')&&_0x5a344d['enableCommand']('showAIAssistant');}}class V extends _0x334dcc{['afterInit'](){const _0x2eb1d0=this['editor'],_0x4bdb57=_0x2eb1d0['locale'];if(!_0x2eb1d0['plugins']['has']('AlignmentEditing'))return;const _0x17cf6e=_0x2eb1d0['plugins']['get']('TrackChangesEditing');_0x17cf6e['enableDefaultAttributesIntegration']('alignment'),_0x17cf6e['registerBlockAttribute']('alignment'),_0x17cf6e['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4bdb57,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd760b4=this['editor'],_0x2f5008=_0xd760b4['locale'];_0xd760b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31e962=>{if('formatBlock'!=_0x31e962['type'])return;const {data:_0x1ff1d7}=_0x31e962;if(_0x1ff1d7&&'alignment'==_0x1ff1d7['commandName']){const _0x23f161=_0x1ff1d7['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2f5008,'*Format:*\x20%0',function(_0x23d87e){switch(_0x23d87e){case'left':return o(_0x2f5008,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2f5008,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2f5008,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2f5008,'FORMAT_JUSTIFY_TEXT');}}(_0x23f161))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x334dcc{['afterInit'](){const _0x4ad9f3=this['editor'],_0x50f718=_0x4ad9f3['plugins']['get']('TrackChangesEditing'),_0x53ed82=_0x4ad9f3['locale'];for(const _0x429f1f of ti){if(!_0x4ad9f3['plugins']['has'](_0x429f1f))continue;const _0x106bd=_0x429f1f['slice'](0x0,-0x7)['toLowerCase'](),_0x119748='FORMAT_'+_0x106bd['toUpperCase']();_0x50f718['enableDefaultAttributesIntegration'](_0x106bd),_0x50f718['registerInlineAttribute'](_0x106bd),_0x50f718['descriptionFactory']['registerAttributeLabel'](_0x106bd,o(_0x53ed82,_0x119748));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c9948=this['editor'],_0x38d797=_0x2c9948['locale'],_0x41a2d9=_0x2c9948['plugins']['get']('TrackChangesEditing');function _0x399522(_0x57bb95,_0x447205){_0x41a2d9['descriptionFactory']['registerDescriptionCallback'](_0x87ce1c=>{if('formatInline'!=_0x87ce1c['type'])return;const {data:_0x2bc712}=_0x87ce1c;return _0x2bc712&&_0x2bc712['commandName']===_0x57bb95?_0x2bc712['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x38d797,'*Format:*\x20%0',_0x447205)}:{'type':'format','content':o(_0x38d797,'*Remove\x20format:*\x20%0',_0x447205)}:void 0x0;});}_0x399522('bold',o(_0x38d797,'FORMAT_BOLD')),_0x399522('italic',o(_0x38d797,'FORMAT_ITALIC')),_0x399522('underline',o(_0x38d797,'FORMAT_UNDERLINE')),_0x399522('code',o(_0x38d797,'FORMAT_CODE')),_0x399522('strikethrough',o(_0x38d797,'FORMAT_STRIKETHROUGH')),_0x399522('subscript',o(_0x38d797,'FORMAT_SUBSCRIPT')),_0x399522('superscript',o(_0x38d797,'FORMAT_SUPERSCRIPT'));}}class F extends _0x334dcc{['afterInit'](){const _0x6caaec=this['editor'],_0x55c95a=_0x6caaec['locale'];if(!_0x6caaec['plugins']['has']('BlockQuoteEditing'))return;const _0x5af066=_0x6caaec['plugins']['get']('TrackChangesEditing'),_0x178e5d=this['editor']['commands']['get']('blockQuote');_0x5af066['enableCommand']('blockQuote',(_0x930c5d,_0x31a86d={})=>{const _0x1a5a53=this['editor']['model']['document']['selection'],_0x406a21=_0x31a86d&&void 0x0!==_0x31a86d['forceValue']?_0x31a86d['forceValue']:!_0x178e5d['value'];let _0x36427d=[];if(_0x406a21){const _0x56d3ee=Array['from'](_0x1a5a53['getSelectedBlocks']())['filter'](_0xace8e4=>oo(_0xace8e4)||function(_0x3559d5,_0xbc43de){const _0x47501b=_0xbc43de['checkChild'](_0x3559d5['parent'],'blockQuote'),_0x2a871c=_0xbc43de['checkChild'](['$root','blockQuote'],_0x3559d5);return _0x47501b&&_0x2a871c;}(_0xace8e4,this['editor']['model']['schema']));_0x36427d=to(_0x56d3ee,_0x6caaec['model']);}else{const _0x595d3c=Array['from'](_0x1a5a53['getSelectedBlocks']())['filter'](_0x597f17=>oo(_0x597f17));_0x36427d=to(_0x595d3c,_0x6caaec['model']);}_0x6caaec['model']['change'](()=>{for(const _0x25585f of _0x36427d)_0x5af066['markBlockFormat'](_0x25585f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x406a21}]});});}),_0x5af066['descriptionFactory']['registerDescriptionCallback'](_0xd97d23=>{const {data:_0x372dcf}=_0xd97d23;if(_0x372dcf&&'blockQuote'==_0x372dcf['commandName']){const _0x2155c0=o(_0x55c95a,'ELEMENT_BLOCK_QUOTE');return _0x372dcf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x55c95a,'*Set\x20format:*\x20%0',_0x2155c0)}:{'type':'format','content':o(_0x55c95a,'*Remove\x20format:*\x20%0',_0x2155c0)};}});}}function oo(_0x2a83dd){return'blockQuote'==_0x2a83dd['parent']['name'];}class L extends _0x334dcc{['afterInit'](){const _0xe986b2=this['editor'],_0x2dba05=_0xe986b2['locale'],_0x22f8e3=_0xe986b2['plugins']['get']('TrackChangesEditing');_0xe986b2['plugins']['has']('BookmarkEditing')&&(_0x22f8e3['enableCommand']('insertBookmark'),_0x22f8e3['enableDefaultAttributesIntegration']('updateBookmark'),_0x22f8e3['registerBlockAttribute']('bookmarkId'),_0x22f8e3['descriptionFactory']['registerDescriptionCallback'](_0x28098a=>{if('insertion'!=_0x28098a['type']&&'deletion'!=_0x28098a['type']&&'attribute'!=_0x28098a['type'])return;const _0x163584=_0x28098a['getContainedElement']();if(null==_0x163584)return;if(!_0x163584['is']('element','bookmark'))return;const _0x5bec6f=_0x163584['getAttribute']('bookmarkId');if('insertion'==_0x28098a['type'])return{'type':'insertion','content':o(_0x2dba05,'*Insert:*\x20%0','\x22'+_0x5bec6f+'\x22\x20'+o(_0x2dba05,'ELEMENT_BOOKMARK'))};if('deletion'==_0x28098a['type'])return{'type':'deletion','content':o(_0x2dba05,'*Remove:*\x20%0','\x22'+_0x5bec6f+'\x22\x20'+o(_0x2dba05,'ELEMENT_BOOKMARK'))};const {data:_0x1b5b4f}=_0x28098a;if(!_0x1b5b4f||'bookmarkId'!=_0x1b5b4f['key'])return;return{'type':'format','content':o(_0x2dba05,'*Set\x20bookmark:*\x20%0','\x22'+_0x1b5b4f['newValue']+'\x22')};}));}}class J extends _0x334dcc{['afterInit'](){const _0x496476=this['editor'];_0x496476['plugins']['has']('CaseChange')&&(_0x496476['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x496476['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x496476['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x334dcc{['afterInit'](){const _0xdd7bcb=this['editor'];_0xdd7bcb['commands']['get']('ckbox')&&_0xdd7bcb['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x334dcc{['afterInit'](){const _0x58500c=this['editor'];if(!_0x58500c['plugins']['has']('CodeBlock'))return;const _0x2be03a=_0x58500c['plugins']['get']('TrackChangesEditing'),_0x200f46=_0x58500c['locale'],_0x25e588=_0x58500c['config']['get']('codeBlock')['languages'],_0x5f2e2e=_0x58500c['commands']['get']('codeBlock');_0x2be03a['enableCommand']('indentCodeBlock'),_0x2be03a['enableCommand']('outdentCodeBlock'),_0x2be03a['enableCommand']('codeBlock',(_0x11f3ce,_0x55e421={})=>{const _0x10d79f=_0x58500c['model'],_0x34b0cd=_0x58500c['model']['document']['selection'],_0x20b27c=_0x55e421&&void 0x0!==_0x55e421['forceValue']?_0x55e421['forceValue']:!_0x5f2e2e['value'];let _0x1c4a8a;_0x55e421['language']||(_0x55e421['language']=_0x25e588[0x0]['language']),_0x1c4a8a=_0x20b27c?Array['from'](_0x34b0cd['getSelectedBlocks']())['filter'](_0x63cc52=>eo(_0x63cc52)||function(_0x3e242b,_0x55358d){if(_0x3e242b['is']('rootElement')||_0x55358d['isLimit'](_0x3e242b))return!0x1;return _0x55358d['checkChild'](_0x3e242b['parent'],'codeBlock');}(_0x63cc52,_0x10d79f['schema'])):Array['from'](_0x34b0cd['getSelectedBlocks']())['filter'](_0x4d08d6=>eo(_0x4d08d6));const _0x4e6e77=to(_0x1c4a8a,_0x10d79f);_0x10d79f['change'](()=>{for(const _0x2541bc of _0x4e6e77)_0x2be03a['markBlockFormat'](_0x2541bc,{'commandName':'codeBlock','commandParams':[{..._0x55e421,'forceValue':_0x20b27c}],'formatGroupId':'blockName'});});}),(_0x2be03a['descriptionFactory']['registerElementLabel']('codeBlock',_0x4ba133=>o(_0x200f46,'ELEMENT_CODE_BLOCK',_0x4ba133)),_0x2be03a['descriptionFactory']['registerDescriptionCallback'](_0x5b6a26=>{if('formatBlock'!=_0x5b6a26['type'])return;const _0x318356=_0x200f46['t'],{data:_0x481b02}=_0x5b6a26;if(!_0x481b02||'codeBlock'!=_0x481b02['commandName'])return;const _0x2c8f94=_0x481b02['commandParams'][0x0]['language'],_0x52a73e=_0x318356(_0x25e588['find'](_0x53e389=>_0x53e389['language']===_0x2c8f94)['label'])['toLowerCase']();return _0x481b02['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x200f46,'*Set\x20format:*\x20%0',o(_0x200f46,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x52a73e+')')}:{'type':'format','content':o(_0x200f46,'*Remove\x20format:*\x20%0',o(_0x200f46,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x57e0c7){return'codeBlock'==_0x57e0c7['name'];}class z extends _0x334dcc{['afterInit'](){const _0x27a0a5=this['editor'];if(!_0x27a0a5['plugins']['has']('CommentsEditing'))return;_0x27a0a5['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x293353,_0x48d60a,_0x409beb){const _0x5148e5=[];for(const _0x1928d1 of _0x48d60a['getItems']())_0x1928d1['hasAttribute'](_0x293353)&&_0x5148e5['push'](_0x409beb['createRangeOn'](_0x1928d1));return _0x5148e5;}function De(_0x5a7c24,_0xeac5ca,{showActiveMarker:_0x256287=!0x0}={}){const _0x1f440f=_0x5a7c24['plugins']['get']('TrackChangesEditing');return(_0x2698d0,_0xfe273a,_0x1d71a9)=>{if(!_0x1d71a9['consumable']['test'](_0xfe273a['markerRange'],_0x2698d0['name']))return;const _0x1f8c2e=_0xfe273a['markerRange']['getWalker'](),_0x7dd267=_0xfe273a['markerRange']['start'],_0xb0a5d8=_0x5a7c24['model']['schema'];let _0x4b80cd=null,_0x42e578=null,_0x51a20e=!0x1,_0x185d78=!0x1;for(const _0x1edb0b of _0x1f8c2e){const _0x289ba0=_0x1edb0b['item'];_0x51a20e=_0x51a20e||_0xb0a5d8['isContent'](_0x289ba0);const _0x25fb2f=_0x1d71a9['mapper']['toViewElement'](_0x289ba0);if(_0x25fb2f&&_0x25fb2f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1edb0b['type']&&(_0xb0a5d8['isBlock'](_0x289ba0)&&!_0xb0a5d8['isLimit'](_0x289ba0)&&(_0x289ba0['nextSibling']||_0x7dd267['isAtEnd']?_0x4b80cd&&_0x4b80cd['parent']==_0x289ba0||(_0x4b80cd=_0x289ba0,_0x294332(_0x1edb0b['previousPosition']),_0x185d78=!0x0):_0x42e578=_0x42e578||_0x1edb0b['previousPosition']));}function _0x294332(_0x1d8a56){const {authorId:_0x6c91b5}=_0x1f440f['_splitMarkerName'](_0xfe273a['markerName']),_0x55c450=_0x1d71a9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xeac5ca,'data-author-id':_0x6c91b5}),_0x29f26f=_0x1d71a9['mapper']['toViewPosition'](_0x1d8a56);_0x256287&&_0x1f440f['activeMarkers']['includes'](_0xfe273a['markerName'])&&_0x1d71a9['writer']['addClass']('ck-suggestion-marker--active',_0x55c450),_0x1d71a9['writer']['insert'](_0x29f26f,_0x55c450),_0x1d71a9['mapper']['bindElementToMarker'](_0x55c450,_0xfe273a['markerName']);}_0x51a20e||_0x185d78||!_0x42e578||_0x294332(_0x42e578);};}class K extends _0x334dcc{static get['requires'](){return[_0x32ab9a];}['init'](){const _0x37392d=this['editor'],_0x4d90f0=_0x37392d['plugins']['get']('TrackChangesEditing');_0x4d90f0['enableCommand']('delete');const _0x2a6221=_0x37392d['commands']['get']('deleteForward');_0x4d90f0['enableCommand']('deleteForward',(_0x33ec61,_0x50a678={})=>{const _0x26c13e=_0x37392d['model']['createSelection'](_0x37392d['model']['document']['selection']);_0x26c13e['isCollapsed']&&_0x37392d['model']['modifySelection'](_0x26c13e,{'direction':'forward','unit':_0x50a678['unit']});const _0x661d28=_0x26c13e['getFirstRange'](),_0x33b664=_0x3dae0a['fromRange'](_0x661d28);let _0x43788b;_0x33ec61(_0x50a678),_0x43788b='$graveyard'==_0x33b664['root']['rootName']?_0x37392d['model']['createRange'](_0x661d28['start']):_0x37392d['model']['createRange'](_0x33b664['start'],_0x33b664['end']),_0x33b664['detach'](),_0x37392d['model']['enqueueChange'](_0x2a6221['buffer']['batch'],_0xec8a9a=>{_0x2a6221['buffer']['lock'](),_0xec8a9a['setSelection'](_0xec8a9a['createRange'](_0x43788b['end'])),_0x2a6221['buffer']['unlock']();});}),_0x37392d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x37392d,'merge'),{'priority':'high'}),_0x37392d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x38ca2f,_0x1daddd,_0x289bdd)=>{_0x289bdd['options']['showSuggestionHighlights']&&De(_0x37392d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x38ca2f,_0x1daddd,_0x289bdd);},{'priority':'high'}),_0x37392d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5e51e7,_0x3291bc,_0x4005e6)=>{const _0x51bb9f=_0x4005e6['mapper']['markerNameToElements'](_0x3291bc['markerName']);if(_0x51bb9f){for(const _0x16bbfc of _0x51bb9f)_0x16bbfc['is']('uiElement')&&(_0x4005e6['mapper']['unbindElementFromMarkerName'](_0x16bbfc,_0x3291bc['markerName']),_0x4005e6['writer']['remove'](_0x16bbfc));}},{'priority':'high'});}}class W extends _0x334dcc{['afterInit'](){const _0x1a14eb=this['editor'];if(!_0x1a14eb['plugins']['has']('ListEditing'))return;const _0x4adae6=_0x1a14eb['locale'],_0x272fcf=_0x1a14eb['plugins']['get']('TrackChangesEditing'),_0xa46e2b=_0x1a14eb['plugins']['has']('TodoListEditing'),_0x324b41=!!_0x1a14eb['config']['get']('list.multiBlock');function _0xf83257(_0x4b13ff){return{'type':'format','content':''+o(_0x4adae6,'*Set\x20format:*\x20%0',_0x4b13ff)};}function _0x50c4db(_0x1ad21f){return{'type':'format','content':''+o(_0x4adae6,'*Remove\x20format:*\x20%0',_0x1ad21f)};}_0x272fcf['enableDefaultAttributesIntegration']('numberedList'),_0x272fcf['enableDefaultAttributesIntegration']('bulletedList'),_0x272fcf['enableDefaultAttributesIntegration']('customNumberedList'),_0x272fcf['enableDefaultAttributesIntegration']('customBulletedList'),_0x272fcf['enableDefaultAttributesIntegration']('indentList'),_0x272fcf['enableDefaultAttributesIntegration']('outdentList'),_0x272fcf['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x272fcf['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x272fcf['registerBlockAttribute']('listItemId'),_0x272fcf['registerBlockAttribute']('listType'),_0x272fcf['registerBlockAttribute']('listIndent'),_0x324b41&&(_0x272fcf['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x272fcf['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xa46e2b&&(_0x272fcf['enableDefaultAttributesIntegration']('todoList'),_0x272fcf['enableDefaultAttributesIntegration']('checkTodoList'),_0x272fcf['registerBlockAttribute']('todoListChecked'),_0x272fcf['descriptionFactory']['registerDescriptionCallback'](_0x5b2200=>{const {data:_0x11b0a4}=_0x5b2200;if(_0x11b0a4&&'todoListChecked'==_0x11b0a4['key'])return{'type':'format','content':_0x11b0a4['newValue']?o(_0x4adae6,'*Check\x20item*'):o(_0x4adae6,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x178d0d=>{if(_0x178d0d['batch']['isUndo'])return!0x1;let _0x4bd5d0=!0x1;const _0x5a486d=_0x272fcf['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5acbf7=>'todoListChecked'===_0x272fcf['_getAttributeKey'](_0x5acbf7));for(const _0x26088f of _0x5a486d){'todo'!=_0x26088f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x272fcf['_findSuggestions'](_0x26088f['getFirstRange'](),'attribute')['find'](_0x440918=>'listType'===_0x272fcf['_getAttributeKey'](_0x440918['suggestion']))||(_0x178d0d['removeMarker'](_0x26088f['getFirstMarker']()),_0x4bd5d0=!0x0));}return _0x4bd5d0;})),_0x272fcf['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4adae6,'FORMAT_INDENT'));const _0x21bb53={'type':'format','content':''};_0x272fcf['descriptionFactory']['registerDescriptionCallback'](_0x5ef514=>{const {data:_0x5c2a97}=_0x5ef514;if(!_0x5c2a97||'listType'!=_0x5c2a97['key'])return;let _0x771718=_0x5ef514['head'];for(;_0x771718;){if(_0x771718['data']&&(('listStyle'==_0x771718['data']['key']||'listMarkerStyle'==_0x771718['data']['key'])&&(_0x771718['data']['newValue']&&'default'!=_0x771718['data']['newValue']||'default'!=_0x771718['data']['oldValue']&&!_0x5c2a97['newValue'])||!_0x324b41&&_0x771718['data']['key']==m))return _0x21bb53;_0x771718=_0x771718['next'];}if(null==_0x5c2a97['newValue'])switch(_0x5c2a97['oldValue']){case'bulleted':return _0x50c4db(o(_0x4adae6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x50c4db(o(_0x4adae6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x50c4db(o(_0x4adae6,'ELEMENT_TODO_LIST'));}switch(_0x5c2a97['newValue']){case'bulleted':return _0xf83257(o(_0x4adae6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xf83257(o(_0x4adae6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xf83257(o(_0x4adae6,'ELEMENT_TODO_LIST'));}}),_0x272fcf['descriptionFactory']['registerDescriptionCallback'](_0x156d10=>{const {data:_0xedba2}=_0x156d10;if(_0xedba2&&'listIndent'==_0xedba2['key'])return null==_0xedba2['newValue']||null==_0xedba2['oldValue']&&0x0==_0xedba2['newValue']?_0x21bb53:void 0x0;}),_0x272fcf['descriptionFactory']['registerDescriptionCallback'](_0x2db211=>{if('attribute'!=_0x2db211['type'])return;const {data:_0x391d67}=_0x2db211;if(!_0x391d67||'listItemId'!=_0x391d67['key'])return;const _0x57f53b=Te(_0x2db211);return'newValue'==_0x57f53b?{'type':'format','content':o(_0x4adae6,'*Merge:*\x20list\x20item')}:'oldValue'==_0x57f53b?{'type':'format','content':o(_0x4adae6,'*Split:*\x20list\x20item')}:_0x21bb53;}),_0x1a14eb['model']['document']['registerPostFixer'](_0x68d475=>this['listItemIdFixer'](_0x68d475)),_0x1a14eb['model']['document']['registerPostFixer'](_0x2b85d9=>this['noTrackChangesFixer'](_0x2b85d9)),_0x1a14eb['model']['document']['on']('change:data',(_0x14274c,_0x119bc4)=>{if(_0x119bc4['isUndo']||!_0x119bc4['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x168a0c){if(_0x168a0c['batch']['isUndo']||!_0x168a0c['batch']['isLocal'])return!0x1;let _0x32ae1f=!0x1;const _0x4acba8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x575100=>_0x575100['data']&&'listItemId'==_0x575100['data']['key'])['filter'](_0x11361b=>_0x11361b['data']['newValue']&&_0x11361b['data']['oldValue']);for(const _0x4e3969 of _0x4acba8)Te(_0x4e3969)||(_0x168a0c['removeMarker'](_0x4e3969['getFirstMarker']()),_0x32ae1f=!0x0);return _0x32ae1f;}['noTrackChangesFixer'](_0x3ba4c7){if(_0x3ba4c7['batch']['isUndo']||!_0x3ba4c7['batch']['isLocal'])return!0x1;const _0x2e658f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2e658f['trackChangesCommand']['value'])return!0x1;let _0x5474d2=!0x1;const _0x49ebe5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3850d5=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2efc51=>'attribute'==_0x2efc51['type'])['filter'](_0x1d34d1=>_0x49ebe5['includes'](_0x1d34d1['attributeKey']));if(0x0==_0x3850d5['length'])return _0x5474d2;for(const _0x5b2867 of _0x3850d5){const _0x234b0b=_0x2e658f['_findSuggestions'](_0x5b2867['range'],'attribute')['filter'](_0x2fdecc=>!_0x2fdecc['meta']['isNextTo'])['map'](_0x541d0c=>_0x541d0c['suggestion'])['filter'](_0x4c8de8=>{const _0x26d946=_0x2e658f['_getAttributeKey'](_0x4c8de8);return _0x49ebe5['includes'](_0x26d946);});if(_0x234b0b['length']){for(const _0x5279cd of _0x234b0b)_0x3ba4c7['removeMarker'](_0x5279cd['getFirstMarker']());_0x5474d2=!0x0;}}return _0x5474d2;}['assureChains'](){const _0x3b32c3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x411fb0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3154e2;const _0xbe2698=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5e095a=>{if(_0x5e095a['data']['oldRange']||!_0x5e095a['data']['newRange'])return null;if(!_0x5e095a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x177624}=_0x3b32c3['_splitMarkerName'](_0x5e095a['name']);if(!_0x3b32c3['hasSuggestion'](_0x177624))return null;const _0xcd4970=_0x3b32c3['getSuggestion'](_0x177624);return _0x411fb0['includes'](_0xcd4970['data']['key']);})['map'](_0x3270a5=>{const {id:_0x125df4}=_0x3b32c3['_splitMarkerName'](_0x3270a5['name']),_0xf629=_0x3b32c3['getSuggestion'](_0x125df4);return _0x3154e2=_0xf629['attributes']['groupId'],_0xf629['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0xbe2698['size'])return;const _0x295ad7=_0x3b32c3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3276c9=>'attribute'==_0x3276c9['type']&&_0x3276c9['data']&&_0x411fb0['includes'](_0x3276c9['data']['key'])&&_0x3276c9['attributes']['groupId']!=_0x3154e2)['map'](_0x5da499=>({'listItem':_0x5da499['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5da499['attributes']['groupId']})),_0x5a2697=new Set();for(const {groupId:_0x104a30,listItem:_0x1c7e4e}of _0x295ad7)_0xbe2698['has'](_0x1c7e4e)&&_0x5a2697['add'](_0x104a30);for(const _0x314d24 of _0x3b32c3['getSuggestions']())_0x5a2697['has'](_0x314d24['attributes']['groupId'])&&_0x314d24['setAttribute']('groupId',_0x3154e2);}['_supportLegacySuggestions'](){const _0x5b3fef=this['editor'],_0x22b8ef=_0x5b3fef['locale'],_0xa70798=_0x5b3fef['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xa70798['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2812f5,_0x29b3f0){const _0x1217ef=[];for(let _0x212845 of _0x2812f5)_0x212845['start']['nodeAfter']===_0x212845['end']['parent']&&(_0x212845=_0x5b3fef['model']['createRange'](_0x5b3fef['model']['createPositionAt'](_0x212845['start']['nodeAfter'],0x0))),_0x1217ef['push'](_0x212845);_0x5b3fef['model']['change'](_0x1128dd=>{const _0x323f17=_0x5b3fef['model']['document']['selection'],_0x5ec273=Array['from'](_0x323f17['getRanges']())['map'](_0x481eb3=>_0x3dae0a['fromRange'](_0x481eb3));_0x1128dd['setSelection'](_0x1217ef),_0x5b3fef['commands']['get'](_0x29b3f0['commandName'])['refresh'](),_0x29b3f0['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5b3fef['execute'](_0x29b3f0['commandName'],..._0x29b3f0['commandParams']),_0x1128dd['setSelection'](_0x5ec273);for(const _0xe44c90 of _0x5ec273)_0xe44c90['detach']();});}),_0xa70798['descriptionFactory']['registerElementLabel'](function(_0xb0885e){const _0x1317b0=!_0x5b3fef['model']['schema']['isObject'](_0xb0885e),_0x271004=_0xb0885e['previousSibling'],_0xea1f85=_0xb0885e['nextSibling'],_0x459a3e=_0xb0885e['getAttribute']('listItemId'),_0x5345b6=!_0x271004||_0x271004['getAttribute']('listItemId')!==_0x459a3e,_0x66b40d=!_0xea1f85||_0xea1f85['getAttribute']('listItemId')!==_0x459a3e;return _0x1317b0&&Boolean(_0x459a3e)&&_0x5345b6&&_0x66b40d;},_0x50a46a=>o(_0x22b8ef,'ELEMENT_LIST_ITEM',_0x50a46a));}['_registerLegacyDescription'](){const _0x436517=this['editor'],_0x1ed1be=_0x436517['locale'];function _0x49dfac(_0x4b2957){const _0x436d7e=_0x436517['commands']['get']('bulletedList')['value'],_0x1eefcf=_0x436517['commands']['get']('numberedList')['value'];return'numberedList'===_0x4b2957?_0x436d7e:_0x1eefcf;}_0x436517['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4466fc){if('formatBlock'!=_0x4466fc['type'])return;const {data:_0x4dc21a}=_0x4466fc;if(!_0x4dc21a)return;let _0x9d769b,_0x1b67a4,_0x23ee78,_0x332c94;switch(_0x4dc21a['commandName']){case'bulletedList':_0x23ee78=_0x4dc21a['commandParams'][0x0]['forceValue'],_0x332c94=_0x49dfac(_0x4dc21a['commandName']),_0x9d769b=_0x23ee78?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x332c94&&_0x436517['config']['get']('list.multiBlock')||(_0x9d769b='*Change\x20to:*\x20%0'),_0x1b67a4={'type':'format','content':o(_0x1ed1be,_0x9d769b,o(_0x1ed1be,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x23ee78=_0x4dc21a['commandParams'][0x0]['forceValue'],_0x332c94=_0x49dfac(_0x4dc21a['commandName']),_0x9d769b=_0x23ee78?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x332c94&&_0x436517['config']['get']('list.multiBlock')||(_0x9d769b='*Change\x20to:*\x20%0'),_0x1b67a4={'type':'format','content':o(_0x1ed1be,_0x9d769b,o(_0x1ed1be,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x9d769b='*Indent:*\x20%0',_0x1b67a4={'type':'format','content':o(_0x1ed1be,_0x9d769b,o(_0x1ed1be,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x9d769b=function(_0x3c7876){const _0x1810ae=_0x3c7876['getFirstRange']();let _0x260169=_0x1810ae['start']['nodeAfter'];for(;_0x260169&&_0x1810ae['containsItem'](_0x260169);){if(_0x260169['getAttribute']('listIndent')>0x0)return!0x1;_0x260169=_0x260169['nextSibling'];}return!0x0;}(_0x4466fc)?o(_0x1ed1be,'*Format:*\x20remove\x20from\x20%0',o(_0x1ed1be,function(_0x3e5595){return'ELEMENT_'+_0x3e5595['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4466fc))):o(_0x1ed1be,'*Outdent:*\x20%0',o(_0x1ed1be,'ELEMENT_LIST_ITEM')),_0x1b67a4={'type':'format','content':_0x9d769b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4dc21a['multipleBlocks']&&(_0x9d769b='*Merge:*\x20%0',_0x1b67a4={'type':'deletion','content':o(_0x1ed1be,_0x9d769b,o(_0x1ed1be,'ELEMENT_LIST_ITEM'))});}return _0x1b67a4;});}}function Te(_0x28f573){let _0x4b4ad3=_0x28f573['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4b4ad3;){const _0x3c932a=_0x4b4ad3['getAttribute']('listItemId');if(!_0x3c932a)return!0x1;if(_0x3c932a==_0x28f573['data']['newValue'])return'newValue';if(_0x3c932a==_0x28f573['data']['oldValue'])return'oldValue';_0x4b4ad3=_0x4b4ad3['previousSibling'];}return!0x1;}class Se extends _0x334dcc{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x55ae2e=this['editor']['config']['get']('list.properties'),_0x40399d=this['editor']['plugins']['get']('TrackChangesEditing');_0x55ae2e['styles']&&(_0x40399d['enableDefaultAttributesIntegration']('listStyle'),_0x40399d['registerBlockAttribute']('listStyle')),_0x55ae2e['reversed']&&(_0x40399d['enableDefaultAttributesIntegration']('listReversed'),_0x40399d['registerBlockAttribute']('listReversed')),_0x55ae2e['startIndex']&&(_0x40399d['enableDefaultAttributesIntegration']('listStart'),_0x40399d['registerBlockAttribute']('listStart'));const _0x58c57a={'type':'format','content':''};_0x40399d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xc3d389=this['editor']['locale'];_0x40399d['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xc3d389,'FORMAT_LIST_REVERSED')),_0x40399d['descriptionFactory']['registerDescriptionCallback'](_0x1c222f=>{const {data:_0x2281ff}=_0x1c222f;if(_0x2281ff&&'listReversed'==_0x2281ff['key'])return null==_0x2281ff['newValue']||0x0==_0x2281ff['newValue']&&null==_0x2281ff['oldValue']?_0x58c57a:void 0x0;}),_0x40399d['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xc3d389,'FORMAT_LIST_START')),_0x40399d['descriptionFactory']['registerDescriptionCallback'](_0x1bd6db=>{const {data:_0x36e439}=_0x1bd6db;if(_0x36e439&&'listStart'==_0x36e439['key'])return null==_0x36e439['newValue']||0x1==_0x36e439['newValue']&&null==_0x36e439['oldValue']?_0x58c57a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x278fea=>{if(_0x278fea['batch']['isUndo'])return!0x1;let _0x779b1e=!0x1;const _0x2f0b59=_0x40399d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f7eec=>{const _0x3d7224=_0x40399d['_getAttributeKey'](_0x2f7eec);return'listStart'==_0x3d7224||'listReversed'==_0x3d7224;});for(const _0x471a47 of _0x2f0b59){const _0x1b9870=_0x471a47['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1b9870||'customNumbered'==_0x1b9870)continue;_0x40399d['_findSuggestions'](_0x471a47['getFirstRange'](),'attribute')['find'](_0x21e399=>'listType'==_0x40399d['_getAttributeKey'](_0x21e399['suggestion']))||(_0x278fea['removeMarker'](_0x471a47['getFirstMarker']()),_0x779b1e=!0x0);}return _0x779b1e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1a4b1b){const _0x3f181c=this['editor']['locale'],{data:_0x47907d}=_0x1a4b1b,_0x2f549f={'type':'format','content':''};if(!_0x47907d||'listStyle'!=_0x47907d['key'])return;if(!_0x47907d['oldValue'])return'default'==_0x47907d['newValue']?_0x2f549f:{'type':'format','content':''+o(_0x3f181c,'*Set\x20format:*\x20%0',o(_0x3f181c,this['_getTranslationKeyForListStyle'](_0x47907d['newValue'])))};if(!_0x47907d['newValue']){if('default'==_0x47907d['oldValue'])return _0x2f549f;let _0x597cf8=_0x1a4b1b['head'];for(;_0x597cf8;){if(_0x597cf8['data']&&'listType'==_0x597cf8['data']['key']&&_0x597cf8['data']['newValue'])return _0x2f549f;_0x597cf8=_0x597cf8['next'];}return{'type':'format','content':''+o(_0x3f181c,'*Remove\x20format:*\x20%0',o(_0x3f181c,this['_getTranslationKeyForListStyle'](_0x47907d['oldValue'])))};}if('default'!=_0x47907d['newValue'])return{'type':'format','content':''+o(_0x3f181c,'*Set\x20format:*\x20%0',o(_0x3f181c,this['_getTranslationKeyForListStyle'](_0x47907d['newValue'])))};let _0x544bbd=_0x1a4b1b['head'];for(;_0x544bbd;){if(_0x544bbd['data']&&'listType'==_0x544bbd['data']['key']&&_0x544bbd['data']['newValue']&&_0x544bbd['data']['oldValue'])return _0x2f549f;_0x544bbd=_0x544bbd['next'];}return{'type':'format','content':o(_0x3f181c,'*Set\x20format:*\x20%0',o(_0x3f181c,'ELEMENT_'+_0x1a4b1b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x18770d=this['editor'],_0x340dac=_0x18770d['locale'];_0x18770d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34ae23=>{if('formatBlock'!=_0x34ae23['type'])return;const {data:_0x5d5342}=_0x34ae23;if(!_0x5d5342)return;let _0x4391b3,_0x3cbc63;switch(_0x5d5342['commandName']){case'listStyle':_0x4391b3='*Change\x20to:*\x20%0',_0x3cbc63={'type':'format','content':o(_0x340dac,_0x4391b3,o(_0x340dac,this['_getTranslationKeyForListStyle'](_0x5d5342['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4391b3=_0x5d5342['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3cbc63={'type':'format','content':o(_0x340dac,_0x4391b3)};break;case'listStart':_0x4391b3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3cbc63={'type':'format','content':o(_0x340dac,_0x4391b3,_0x5d5342['commandParams'][0x0]['startIndex'])};}return _0x3cbc63;});}['_getTranslationKeyForListStyle'](_0x35c7f1){return'ELEMENT_'+function(_0x5b7d5d){if(_e['includes'](_0x5b7d5d))return'bulleted';if(Re['includes'](_0x5b7d5d))return'numbered';return null;}(_0x35c7f1)['toUpperCase']()+'_LIST_'+_0x35c7f1['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x334dcc{['afterInit'](){const _0x1578a6=this['editor'];_0x1578a6['commands']['get']('emoji')&&_0x1578a6['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x334dcc{static get['requires'](){return[_0x3bea98];}['init'](){const _0x4e1ed6=this['editor'],_0x3bafc=_0x4e1ed6['plugins']['get']('TrackChangesEditing'),_0x2dbb48=_0x4e1ed6['commands']['get']('enter');_0x3bafc['enableCommand']('enter',()=>{_0x4e1ed6['model']['change'](_0x3b5640=>{const _0x5270b7=_0x4e1ed6['model']['document']['selection'],_0x5e1305=_0x5270b7['getFirstPosition'](),_0x1bc38e=_0x3dae0a['fromRange'](_0x5270b7['getFirstRange']());if(_0x2dbb48['enterBlock'](_0x3b5640)){const _0xa9c7e0=_0x4e1ed6['model']['createPositionAt'](_0x5e1305['parent']['nextSibling'],0x0),_0x73f347=_0x3b5640['createRange'](_0x5e1305,_0xa9c7e0);_0x3bafc['markInsertion'](_0x73f347);}else _0x3b5640['setSelection'](_0x3b5640['createRange'](_0x1bc38e['end']));_0x1bc38e['detach'](),_0x2dbb48['fire']('afterExecute',{'writer':_0x3b5640});});}),_0x4e1ed6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x4e1ed6,'split'),{'priority':'high'}),_0x4e1ed6['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x445877,_0x498725,_0x24604f)=>{const _0x16ce9f=_0x24604f['mapper']['markerNameToElements'](_0x498725['markerName']);if(_0x16ce9f){for(const _0x195a64 of _0x16ce9f)_0x195a64['hasClass']('ck-suggestion-marker-split')&&(_0x24604f['mapper']['unbindElementFromMarkerName'](_0x195a64,_0x498725['markerName']),_0x24604f['writer']['remove'](_0x195a64));}},{'priority':'high'}),_0x4e1ed6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x151996,_0x18b930,_0x162fef)=>{_0x162fef['options']['showSuggestionHighlights']&&De(_0x4e1ed6,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x151996,_0x18b930,_0x162fef);},{'priority':'high'});}}class Z extends _0x334dcc{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x186ea3=this['editor']['plugins']['get']('TrackChangesEditing');_0x186ea3['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x186ea3['enableCommand']('findNext'),_0x186ea3['enableCommand']('findPrevious'),_0x186ea3['enableCommand']('replace'),_0x186ea3['enableCommand']('replaceAll');}['handleFindCommand'](_0x19a456,_0xb7272f,_0x3d923a={}){const _0x2f34e1=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x19a456(_0x3b078d=>{let _0x26595a=('string'==typeof _0xb7272f?_0x2f34e1['findByTextCallback'](_0xb7272f,_0x3d923a):_0xb7272f)(_0x3b078d);Array['isArray'](_0x26595a)&&(_0x26595a={'results':_0x26595a,'searchText':'string'==typeof _0xb7272f?_0xb7272f:''});const _0x4ec953=_0x26595a['results']['filter'](_0xdeca43=>!0x1===this['_isInDeletionRange'](_0xdeca43,_0x3b078d['item']));return{..._0x26595a,'results':_0x4ec953};},_0x3d923a);}['_isInDeletionRange'](_0x1ca40a,_0x3d4325){const _0x2933f0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3d4325,_0x1ca40a['start']),this['editor']['model']['createPositionAt'](_0x3d4325,_0x1ca40a['end']));for(const _0x55afd8 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2933f0['getIntersection'](_0x55afd8['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x334dcc{['afterInit'](){const _0x501e00=this['editor']['locale'],_0x855985=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x25a7f2,commandName:_0x4b5495}of ro)this['editor']['plugins']['has'](_0x25a7f2)&&(_0x855985['enableDefaultAttributesIntegration'](_0x4b5495),_0x855985['registerInlineAttribute'](_0x4b5495));_0x855985['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x501e00,'FORMAT_FONT_SIZE')),_0x855985['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x501e00,'FORMAT_FONT_FAMILY')),_0x855985['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x501e00,'FORMAT_FONT_COLOR')),_0x855985['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x501e00,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cd4ee=this['editor'],_0x157ae9=_0x3cd4ee['locale'];_0x3cd4ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3679c9=>{const _0x5ae481=_0x157ae9['t'];if('formatInline'!=_0x3679c9['type'])return;const {data:_0x54fba9}=_0x3679c9;if(null!=_0x54fba9){if('fontSize'==_0x54fba9['commandName']){const _0x5d3d35=_0x54fba9['commandParams'][0x0]['value'];if(_0x5d3d35){const _0x11f359=_0x5ae481(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2ddc2f=>_0x2ddc2f['model']==_0x5d3d35)['title'])['toLowerCase']();return{'type':'format','content':o(_0x157ae9,'*Set\x20font\x20size:*\x20%0',_0x11f359)};}return{'type':'format','content':o(_0x157ae9,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x54fba9['commandName']){const _0x5ee979=_0x54fba9['commandParams'][0x0]['value'];return _0x5ee979?{'type':'format','content':o(_0x157ae9,'*Set\x20font\x20family:*\x20%0',_0x5ee979)}:{'type':'format','content':o(_0x157ae9,'*Reset\x20font\x20family*')};}if('fontColor'==_0x54fba9['commandName']){const _0xd53396=_0x54fba9['commandParams'][0x0]['value'];if(_0xd53396){const _0xd68c57=_0x507543(this['editor']['config']['get']('fontColor.colors'))['find'](_0x168729=>_0x168729['model']==_0xd53396);let _0x598e47=_0xd53396,_0x1037f8='';return _0xd68c57&&(_0x598e47=_0xd68c57['label'],_0x1037f8=_0x5ae481(_0x598e47)['toLowerCase']()),{'type':'format','content':o(_0x157ae9,'*Set\x20font\x20color:*\x20%0',_0x1037f8)['trim'](),'color':{'value':_0xd53396,'title':_0x1037f8||_0x598e47}};}return{'type':'format','content':o(_0x157ae9,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x54fba9['commandName']){const _0x1cfb46=_0x54fba9['commandParams'][0x0]['value'];if(_0x1cfb46){const _0x8a4d9f=_0x507543(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4e630f=>_0x4e630f['model']==_0x1cfb46);let _0x919ade=_0x1cfb46,_0x236b1d='';return _0x8a4d9f&&(_0x919ade=_0x8a4d9f['label'],_0x236b1d=_0x5ae481(_0x919ade)['toLowerCase']()),{'type':'format','content':o(_0x157ae9,'*Set\x20font\x20background\x20color:*\x20%0',_0x236b1d)['trim'](),'color':{'value':_0x1cfb46,'title':_0x236b1d||_0x919ade}};}return{'type':'format','content':o(_0x157ae9,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x334dcc{['afterInit'](){const _0x58717b=this['editor'],_0x246828=_0x58717b['plugins']['get']('TrackChangesEditing'),_0x1e3be6=_0x58717b['commands']['get']('copyFormat'),_0x4b38a8=_0x58717b['commands']['get']('pasteFormat');_0x1e3be6&&_0x4b38a8&&(_0x246828['enableDefaultAttributesIntegration']('pasteFormat'),_0x246828['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x44d7b3=this['editor'],_0x441bba=_0x44d7b3['locale'];_0x44d7b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x224a28=>{if('formatBlock'!=_0x224a28['type']&&'formatInline'!=_0x224a28['type'])return;const {data:_0x5204e8}=_0x224a28;if(_0x5204e8&&'pasteFormat'===_0x5204e8['commandName']){const _0x3bd5ec=[],_0x42609f=_0x5204e8['commandParams'][0x0];for(const [_0x5023f8,_0x4434b1]of Object['entries'](_0x42609f))_0x3bd5ec['push'](so(_0x44d7b3,_0x5023f8,_0x4434b1));return _0x3bd5ec['length']?{'type':'format','content':o(_0x441bba,'*Set\x20format\x20to:*\x20%0',_0x3bd5ec['join'](',\x20'))}:{'type':'format','content':o(_0x441bba,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2fa65b,_0x4fd50a,_0x584f22){const _0x457ff9=_0x2fa65b['locale']['t'],_0x2374e0=_0x4fd50a['split'](/(?=[A-Z])/)['join']('\x20'),_0xb5135a=_0x457ff9(_0x2374e0['charAt'](0x0)['toUpperCase']()+_0x2374e0['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x584f22)return _0xb5135a;if('fontColor'===_0x4fd50a||'fontBackgroundColor'===_0x4fd50a){const _0x360e73=_0x507543(_0x2fa65b['config']['get']('fontColor.colors'))['find'](_0x10e748=>_0x10e748['model']==_0x584f22);return _0xb5135a+'\x20('+(_0x360e73?_0x457ff9(_0x360e73['label'])['toLowerCase']():_0x584f22)+')';}if('fontSize'===_0x4fd50a&&isNaN(parseFloat(_0x584f22))){const _0x1c3e1a=_0x2fa65b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2fa65b['config']['get']('fontSize.options'))['find'](_0xc639bc=>_0xc639bc['model']==_0x584f22);return _0xb5135a+'\x20('+(_0x1c3e1a?_0x457ff9(_0x1c3e1a['title'])['toLowerCase']():_0x584f22)+')';}return _0xb5135a+'\x20('+_0x584f22+')';}class it extends _0x334dcc{['_headingOptions'];['afterInit'](){const _0x56b327=this['editor'];if(!_0x56b327['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x56b327['config']['get']('heading.options');const _0x177122=_0x56b327['locale'],_0xf40acd=_0x56b327['plugins']['get']('TrackChangesEditing');_0xf40acd['enableDefaultAttributesIntegration']('heading');for(const _0x1b3f45 of this['_headingOptions'])'paragraph'!=_0x1b3f45['model']&&_0xf40acd['descriptionFactory']['registerElementLabel'](_0x1b3f45['model'],_0x211492=>{const _0x5424ea=this['_getHeadingLevel'](_0x1b3f45['model']);return null!==_0x5424ea?_0x44c0e7(_0x211492,_0x5424ea):_0x1f52b7(_0x211492,_0x1b3f45['title']);});function _0x44c0e7(_0x2477c8,_0x36cbc3){return o(_0x177122,'ELEMENT_HEADING',[_0x2477c8,_0x36cbc3]);}function _0x1f52b7(_0x216074,_0x474b7f){return o(_0x177122,'ELEMENT_HEADING_CUSTOM',[_0x216074,_0x474b7f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e223e=this['editor'],_0x4553a1=_0x3e223e['locale'];function _0x22daa9(_0x3aaeea,_0x58d688){return o(_0x4553a1,'ELEMENT_HEADING_CUSTOM',[_0x3aaeea,_0x58d688]);}_0x3e223e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35b793=>{if('formatBlock'!=_0x35b793['type'])return;const {data:_0x14dc5b}=_0x35b793;if(_0x14dc5b&&'heading'==_0x14dc5b['commandName']){const _0x196908=_0x14dc5b['commandParams'][0x0]['value'],_0x3fbe18=this['_getHeadingLevel'](_0x196908);if(null!==_0x3fbe18)return{'type':'format','content':o(_0x4553a1,'*Change\x20to:*\x20%0',(_0x2155bf=0x1,_0x1b35a9=_0x3fbe18,o(_0x4553a1,'ELEMENT_HEADING',[_0x2155bf,_0x1b35a9])))};const _0xd1964f=this['_headingOptions']['find'](_0x5585ee=>_0x5585ee['model']===_0x196908)['title'];return{'type':'format','content':o(_0x4553a1,'*Change\x20to:*\x20%0',_0x22daa9(0x1,_0xd1964f))};}var _0x2155bf,_0x1b35a9;});}['_getHeadingLevel'](_0x58ba98){const _0x16cda7=_0x58ba98['match'](/^heading(\d+)/);if(_0x16cda7)return _0x16cda7[0x1];const _0x3ebe1e=this['_headingOptions']?.['find'](_0x23a821=>_0x23a821['model']==_0x58ba98);if(_0x3ebe1e&&_0x3ebe1e['view']){const _0x2964f9=_0x3ebe1e['view'],_0x5576a2=(_0x2964f9['name']??_0x2964f9)['match'](/^h(\d+)/);if(_0x5576a2)return _0x5576a2[0x1];}return null;}}class et extends _0x334dcc{['afterInit'](){const _0x33e61e=this['editor'];if(!_0x33e61e['plugins']['has']('HighlightEditing'))return;const _0x12548d=_0x33e61e['plugins']['get']('TrackChangesEditing'),_0x242ede=_0x33e61e['locale'];_0x12548d['enableDefaultAttributesIntegration']('highlight'),_0x12548d['registerInlineAttribute']('highlight'),_0x12548d['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x242ede,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ad6db=this['editor'],_0x1c428d=_0x4ad6db['locale'];_0x4ad6db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56577a=>{if('formatInline'!=_0x56577a['type'])return;const {data:_0x181ba3}=_0x56577a;if(_0x181ba3&&'highlight'==_0x181ba3['commandName']){const _0x56c881=_0x1c428d['t'],_0x19b5a0=_0x181ba3['commandParams'][0x0]['value'];if(_0x19b5a0){const _0x9aeeee=_0x4ad6db['config']['get']('highlight.options')['find'](_0x33b710=>_0x33b710['model']==_0x19b5a0),_0x48dc17=_0x56c881(_0x9aeeee['title'])['toLowerCase']();return{'type':'format','content':o(_0x1c428d,'*Set\x20highlight:*\x20%0',_0x48dc17),'color':{'value':_0x9aeeee['color'],'title':_0x9aeeee['title']}};}return{'type':'format','content':o(_0x1c428d,'*Remove\x20highlight*',o(_0x1c428d,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x334dcc{['afterInit'](){const _0x369420=this['editor'];if(!_0x369420['plugins']['has']('HorizontalLineEditing'))return;_0x369420['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5dcf94=_0x369420['plugins']['get']('TrackChangesEditing'),_0x59e9b8=_0x369420['locale'];_0x5dcf94['descriptionFactory']['registerElementLabel']('horizontalLine',_0x22ee30=>o(_0x59e9b8,'ELEMENT_HORIZONTAL_LINE',_0x22ee30)),_0x369420['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3456f3,{writer:_0x2bf773,options:_0x265c42})=>{if(!_0x265c42['showSuggestionHighlights'])return null;const _0x4b223d=_0x2bf773['createContainerElement']('div'),_0x219483=_0x2bf773['createEmptyElement']('hr');return _0x2bf773['addClass']('ck-horizontal-line',_0x4b223d),_0x2bf773['insert'](_0x2bf773['createPositionAt'](_0x4b223d,0x0),_0x219483),_0x4b223d;},'converterPriority':'high'});}}class ot extends _0x334dcc{['afterInit'](){const _0x449d8c=this['editor'];if(!_0x449d8c['plugins']['has']('HtmlEmbed'))return;const _0x3fb6fe=_0x449d8c['plugins']['get']('TrackChangesEditing'),_0x1e8084=_0x449d8c['locale'];_0x3fb6fe['descriptionFactory']['registerElementLabel']('rawHtml',_0x14647c=>o(_0x1e8084,'ELEMENT_HTML_EMBED',_0x14647c)),_0x3fb6fe['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3fb6fe['registerBlockAttribute']('value'),_0x3fb6fe['descriptionFactory']['registerDescriptionCallback'](_0x1a7b5e=>{if('attribute'!=_0x1a7b5e['type'])return;const {data:_0x2385cb}=_0x1a7b5e;if(_0x2385cb&&'value'==_0x2385cb['key']&&_0x1a7b5e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4d91bd=o(_0x1e8084,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1e8084,'*Change\x20%0\x20content*',_0x4d91bd)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x490500=this['editor'],_0x388c33=_0x490500['locale'];_0x490500['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a3b84=>{if('formatBlock'!=_0x5a3b84['type'])return;const {data:_0x5ac74c}=_0x5a3b84;if(_0x5ac74c&&'htmlEmbed'==_0x5ac74c['commandName']){const _0x2e7bf5=o(_0x388c33,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x388c33,'*Change\x20%0\x20content*',_0x2e7bf5)};}});}}class rt extends _0x334dcc{['afterInit'](){const _0x176db1=this['editor'];if(!_0x176db1['plugins']['has']('ImageEditing'))return;const _0x1e6d90=_0x176db1['plugins']['get']('TrackChangesEditing'),_0x2c5fe2=_0x176db1['plugins']['get']('ImageUtils'),_0x31b01d=_0x176db1['locale'];_0x1e6d90['enableCommand']('insertImage'),_0x1e6d90['descriptionFactory']['registerElementLabel']('imageBlock',_0x2ebad8=>o(_0x31b01d,'ELEMENT_IMAGE',_0x2ebad8)),_0x1e6d90['descriptionFactory']['registerElementLabel']('imageInline',_0x2a9133=>o(_0x31b01d,'ELEMENT_INLINE_IMAGE',_0x2a9133)),_0x1e6d90['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x31b01d,'ELEMENT_CAPTION')),_0x176db1['plugins']['has']('ImageUploadEditing')&&_0x1e6d90['enableCommand']('uploadImage'),_0x176db1['plugins']['has']('ImageBlockEditing')&&_0x176db1['plugins']['has']('ImageInlineEditing')&&(_0x1e6d90['enableCommand']('imageTypeInline',(_0x55cb63,_0x37ed2b)=>{const _0x526b14=_0x2c5fe2['getClosestSelectedImageElement'](_0x176db1['model']['document']['selection']);_0x176db1['model']['change'](()=>{_0x1e6d90['markBlockFormat'](_0x526b14,{'commandName':'imageTypeInline','commandParams':[_0x37ed2b]},[],'convertBlockImageToInline');});}),_0x1e6d90['enableCommand']('imageTypeBlock',(_0x79cf18,_0x1d33a6)=>{_0x176db1['model']['change'](_0x5237d2=>{let _0x4bd397=_0x2c5fe2['getClosestSelectedImageElement'](_0x176db1['model']['document']['selection']),_0x162c91=_0x5237d2['createRangeOn'](_0x4bd397);const _0x5ccc8f=_0xb34e4b['fromPosition'](_0x162c91['start'],'toPrevious'),_0x2021ed=_0xb34e4b['fromPosition'](_0x162c91['end'],'toNext');_0x1e6d90['forceDefaultExecution'](()=>_0x79cf18(_0x1d33a6)),_0x4bd397=_0x2c5fe2['getClosestSelectedImageElement'](_0x176db1['model']['document']['selection']),_0x162c91=_0x5237d2['createRangeOn'](_0x4bd397);const _0x83426e=_0x5237d2['createRange'](_0x5ccc8f,_0x2021ed);_0x5ccc8f['detach'](),_0x2021ed['detach'](),_0x1e6d90['markBlockFormat'](_0x4bd397,{'commandName':'imageTypeInline','commandParams':[_0x1d33a6]},[],'convertInlineImageToBlock'),_0x83426e['start']['isBefore'](_0x162c91['start'])&&_0x1e6d90['markInsertion'](_0x5237d2['createRange'](_0x83426e['start'],_0x162c91['start']),'convertInlineImageToBlock'),_0x162c91['end']['isBefore'](_0x83426e['end'])&&_0x1e6d90['markInsertion'](_0x5237d2['createRange'](_0x162c91['end'],_0x83426e['end']),'convertInlineImageToBlock');});}),_0x1e6d90['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1e6d90['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1e6d90['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1e6d90['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1e6d90['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1e6d90['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x35312f])=>{const _0x1efbb1=_0x1e6d90['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2463a7=_0x35312f['start'],_0x4ab3b4=_0x35312f['end'];const _0x2dc1af=_0x176db1['model']['schema']['getNearestSelectionRange'](_0x2463a7,'backward'),_0x3f8e37=_0x176db1['model']['schema']['getNearestSelectionRange'](_0x4ab3b4,'forward');_0x2dc1af['isCollapsed']&&(_0x2463a7=_0x2dc1af['start']),_0x3f8e37['isCollapsed']&&(_0x4ab3b4=_0x3f8e37['end']),_0x1efbb1([_0x176db1['model']['createRange'](_0x2463a7,_0x4ab3b4)]);}),_0x1e6d90['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x13ee69),_0x1e6d90['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x13ee69)),_0x176db1['plugins']['has']('ImageCaptionEditing')&&(_0x1e6d90['enableCommand']('toggleImageCaption',(_0x347285,_0x3b33c7)=>{const _0x3c19c3=_0x176db1['plugins']['get']('ImageCaptionUtils');let _0x5ad0fe=_0x2c5fe2['getClosestSelectedImageElement'](_0x176db1['model']['document']['selection']),_0x4ea76b=_0x3c19c3['getCaptionFromImageModelElement'](_0x5ad0fe);_0x176db1['model']['change'](()=>{if(_0x4ea76b)return void _0x1e6d90['markDeletion'](_0x176db1['model']['createRangeOn'](_0x4ea76b));const _0x448536=_0x2c5fe2['isBlockImage'](_0x5ad0fe);_0x347285(_0x3b33c7),_0x5ad0fe=_0x2c5fe2['getClosestSelectedImageElement'](_0x176db1['model']['document']['selection']),_0x4ea76b=_0x3c19c3['getCaptionFromImageModelElement'](_0x5ad0fe),_0x1e6d90['markInsertion'](_0x176db1['model']['createRangeOn'](_0x4ea76b),_0x448536?null:'imageCaption');});}),_0x1e6d90['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x13ee69));const _0x4def0d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x392ac3(_0x3def10,_0x4a62de){const _0x1306db=_0x4def0d['findIndex'](({type:_0x3c6433,subType:_0x3d325d})=>_0x3def10['type']==_0x3c6433&&_0x3def10['subType']==_0x3d325d),_0x403cc6=_0x4def0d['findIndex'](({type:_0x15b203,subType:_0x15f679})=>_0x4a62de['type']==_0x15b203&&_0x4a62de['subType']==_0x15f679);if(_0x1306db<0x0||_0x403cc6<0x0)return!0x1;const _0x124b70=_0x3def10['getFirstRange'](),_0x2ebdc9=_0x4a62de['getFirstRange']();if((0x0==_0x1306db||0x1==_0x1306db)&&0x2==_0x403cc6&&_0x124b70['isIntersecting'](_0x2ebdc9))return!0x0;if(0x2==_0x1306db&&0x3==_0x403cc6){const _0x1d2eb0=_0x1e6d90['_findSuggestions'](_0x124b70,'insertion')['filter'](({suggestion:_0x14e7bb,meta:_0x1a281e})=>_0x1a281e['isOwn']&&'convertInlineImageToBlock'==_0x14e7bb['subType']);if(_0x1d2eb0['length']>0x1&&_0x2ebdc9['end']['isEqual'](_0x124b70['start']))return!0x0;if(0x1==_0x1d2eb0['length']&&(_0x124b70['start']['isEqual'](_0x2ebdc9['end'])||_0x124b70['end']['isEqual'](_0x2ebdc9['start'])))return!0x0;}if(0x3==_0x1306db&&0x3==_0x403cc6&&_0x124b70['start']['isBefore'](_0x2ebdc9['start'])){const _0x3f6caf=_0x124b70['end']['nodeAfter'],_0x506402=_0x2ebdc9['start']['nodeBefore'];return _0x2c5fe2['isBlockImage'](_0x3f6caf)&&_0x3f6caf===_0x506402;}return!0x1;}function _0x13ee69(_0x24dea0,_0x3e1eed){return _0x392ac3(_0x24dea0,_0x3e1eed)?[_0x24dea0,_0x3e1eed]:_0x392ac3(_0x3e1eed,_0x24dea0)?[_0x3e1eed,_0x24dea0]:null;}_0x176db1['plugins']['has']('ImageResize')&&(_0x1e6d90['enableDefaultAttributesIntegration']('resizeImage'),_0x1e6d90['registerBlockAttribute']('resizedWidth'),_0x1e6d90['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x31b01d,'FORMAT_IMAGE_SIZE'))),_0x176db1['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1e6d90['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1e6d90['registerBlockAttribute']('alt')),_0x176db1['plugins']['has']('PictureEditing')&&(_0x1e6d90['registerBlockAttribute']('sources'),_0x1e6d90['descriptionFactory']['registerDescriptionCallback'](_0x528e94=>{if('attribute'!=_0x528e94['type'])return;const {data:_0x5031cb}=_0x528e94;return _0x5031cb&&'sources'==_0x5031cb['key']?{'type':'format','content':''}:void 0x0;})),_0x176db1['plugins']['has']('ImageSizeAttributes')&&(_0x1e6d90['registerBlockAttribute']('width'),_0x1e6d90['registerBlockAttribute']('height'),_0x1e6d90['descriptionFactory']['registerDescriptionCallback'](_0x371927=>{if('attribute'!=_0x371927['type'])return;const {data:_0x21b6a6}=_0x371927;return!_0x21b6a6||'width'!=_0x21b6a6['key']&&'height'!=_0x21b6a6['key']?void 0x0:{'type':'format','content':''};})),_0x1e6d90['descriptionFactory']['registerDescriptionCallback'](_0x3ca158=>{if(!!_0x4def0d['find'](({type:_0x33fe94,subType:_0x3c0060})=>_0x3ca158['type']==_0x33fe94&&_0x3ca158['subType']==_0x3c0060))return _0x3ca158['previous']?{}:void 0x0;}),_0x1e6d90['descriptionFactory']['registerDescriptionCallback'](_0x376f57=>{if('insertion'==_0x376f57['type']||'deletion'==_0x376f57['type']){const _0x3be1bc=_0x376f57['getContainedElement']();if(_0x3be1bc&&_0x3be1bc['is']('element','caption'))return{'type':'insertion'==_0x376f57['type']?'addObject':'removeObject','element':_0x3be1bc,'quantity':0x1};}}),_0x1e6d90['descriptionFactory']['registerDescriptionCallback'](_0xb0f340=>'formatBlock'==_0xb0f340['type']&&'convertInlineImageToBlock'==_0xb0f340['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xb0f340['type']&&'convertBlockImageToInline'==_0xb0f340['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1e6d90['descriptionFactory']['registerDescriptionCallback'](_0x4dd8ee=>{if('attribute'!=_0x4dd8ee['type'])return;const {data:_0x2f30f0}=_0x4dd8ee;if(!_0x2f30f0||'alt'!=_0x2f30f0['key'])return;const _0xba87bd=_0x2f30f0['newValue'];return _0xba87bd?{'type':'format','content':o(_0x31b01d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xba87bd+'\x22')}:{'type':'format','content':o(_0x31b01d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x310cce=this['editor'],_0x3fed82=_0x310cce['locale'];_0x310cce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48f6a1=>{if('formatBlock'!=_0x48f6a1['type']&&'formatInline'!=_0x48f6a1['type'])return;const {data:_0x215b1a}=_0x48f6a1;if(_0x215b1a){if('imageTextAlternative'==_0x215b1a['commandName']){const _0xf2289e=_0x215b1a['commandParams'][0x0]['newValue'];return _0xf2289e?{'type':'format','content':o(_0x3fed82,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xf2289e+'\x22')}:{'type':'format','content':o(_0x3fed82,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x215b1a['commandName']){const _0x4bc7a4=_0x215b1a['commandParams'][0x0]['width'];return _0x4bc7a4?{'type':'format','content':o(_0x3fed82,'*Set\x20image\x20width:*\x20%0',_0x4bc7a4)}:{'type':'format','content':o(_0x3fed82,'*Reset\x20image\x20width*')};}}});}}class at extends _0x334dcc{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x58eaa0=this['editor']['locale'],_0x1a5ee2=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a5ee2['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1a5ee2['registerBlockAttribute']('src'),_0x1a5ee2['descriptionFactory']['registerDescriptionCallback'](_0x843b19=>{if('attribute'!=_0x843b19['type'])return;const {data:_0x3c7a01}=_0x843b19;return _0x3c7a01&&'src'==_0x3c7a01['key']?_0x3c7a01['newValue']&&_0x3c7a01['oldValue']?{'type':'format','content':o(_0x58eaa0,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5516e3=this['editor']['plugins']['get']('TrackChangesEditing');_0x5516e3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5516e3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5516e3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5516e3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e7fde=this['editor'],_0x220ba2=_0x3e7fde['locale'];_0x3e7fde['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d9c39=>{if('formatBlock'!=_0x3d9c39['type']&&'formatInline'!=_0x3d9c39['type'])return;const {data:_0x566fb9}=_0x3d9c39;if(!_0x566fb9||'replaceImageSource'!=_0x566fb9['commandName'])return;return{'type':'format','content':o(_0x220ba2,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x334dcc{['afterInit'](){const _0x3ce6f0=this['editor'];if(!_0x3ce6f0['plugins']['has']('ImageStyleEditing'))return;const _0x477a39=_0x3ce6f0['plugins']['get']('TrackChangesEditing'),_0x47f1d8=_0x3ce6f0['plugins']['get']('ImageUtils'),_0xaa678b={};_0x477a39['enableCommand']('imageStyle',(_0x465170,_0x181f2d)=>{const _0x209453=_0x3ce6f0['plugins']['get']('Users')['me'],_0x172188=_0x3ce6f0['commands']['get']('imageStyle');let _0x11531c=_0x47f1d8['getClosestSelectedImageElement'](_0x3ce6f0['model']['document']['selection']),_0x59eb76=_0x3ce6f0['model']['createRangeOn'](_0x11531c),_0x3b21fb=_0x172188['value'];if(_0x3b21fb==_0x181f2d['value'])return;const _0x23faa3={'commandName':'imageStyle','commandParams':[_0x181f2d],'formatGroupId':_0x493eac()};_0x3ce6f0['model']['change'](()=>{if(_0x477a39['getSuggestions']()['filter'](_0x3591bc=>_0x3591bc['isInContent']&&_0x209453==_0x3591bc['author']&&('formatBlock'==_0x3591bc['type']||'formatInline'==_0x3591bc['type'])&&('imageStylePreApply'==_0x3591bc['subType']||'imageStylePostApply'==_0x3591bc['subType'])&&_0x3591bc['getFirstRange']()['isEqual'](_0x59eb76))['forEach'](_0x328615=>_0x477a39['discardSuggestion'](_0x328615['head'])),_0x11531c=_0x47f1d8['getClosestSelectedImageElement'](_0x3ce6f0['model']['document']['selection']),_0x59eb76=_0x3ce6f0['model']['createRangeOn'](_0x11531c),_0x172188['refresh'](),_0x3ce6f0['commands']['get']('imageTypeInline')['refresh'](),_0x3ce6f0['commands']['get']('imageTypeBlock')['refresh'](),_0x3b21fb=_0x172188['value'],_0x3b21fb!=_0x181f2d['value'])return _0x47f1d8['isInlineImage'](_0x11531c)&&_0x172188['shouldConvertImageType'](_0x181f2d['value'],_0x11531c)?(_0x465170({..._0x181f2d,'setImageSizes':!0x1}),_0x11531c=_0x47f1d8['getClosestSelectedImageElement'](_0x3ce6f0['model']['document']['selection']),void _0x477a39['markBlockFormat'](_0x11531c,{..._0x23faa3,'commandReversedParams':[{'value':_0x3b21fb||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x47f1d8['isBlockImage'](_0x11531c)?_0x477a39['markBlockFormat'](_0x11531c,_0x23faa3,[],'imageStylePostApply'):_0x477a39['markInlineFormat'](_0x59eb76,_0x23faa3,'imageStylePostApply'));});});for(const _0x18a8b3 of _0x3ce6f0['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xaa678b[_0x18a8b3['name']]=_0x18a8b3['title']['toLowerCase']();_0x477a39['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x477a39['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x477a39['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x477a39['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3368f9])=>{_0x47f1d8['setImageNaturalSizeAttributes'](_0x3368f9['getContainedElement']());}),_0x477a39['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x549323,_0x4be603)=>{_0x477a39['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x549323,{'commandName':_0x4be603['commandName'],'commandParams':_0x4be603['commandReversedParams']});}),_0x477a39['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x17ed08,_0x4dbe5a){if(_0x5bc27b(_0x17ed08,_0x4dbe5a))return[_0x17ed08,_0x4dbe5a];if(_0x5bc27b(_0x4dbe5a,_0x17ed08))return[_0x4dbe5a,_0x17ed08];return null;});const _0x2bdacb=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5bc27b(_0x56a1bc,_0x13f5b6){const _0x5bd28b=_0x2bdacb['findIndex'](({type:_0x49ba4a,subType:_0x3a520a})=>_0x56a1bc['type']==_0x49ba4a&&_0x56a1bc['subType']==_0x3a520a),_0x105afd=_0x2bdacb['findIndex'](({type:_0x5ddc3a,subType:_0x58e9a8})=>_0x13f5b6['type']==_0x5ddc3a&&_0x13f5b6['subType']==_0x58e9a8);if(_0x5bd28b<0x0||_0x105afd<0x0)return!0x1;const _0x2ca4ed=_0x56a1bc['getFirstRange'](),_0x1fe711=_0x13f5b6['getFirstRange']();if((0x0==_0x5bd28b||0x1==_0x5bd28b)&&0x2==_0x105afd&&_0x2ca4ed['isIntersecting'](_0x1fe711))return!0x0;if(0x2==_0x5bd28b&&0x3==_0x105afd){const _0x243eb4=_0x477a39['_findSuggestions'](_0x2ca4ed,'insertion')['filter'](({suggestion:_0x3c243d,meta:_0x4b01f0})=>_0x4b01f0['isOwn']&&'convertInlineImageToBlock'==_0x3c243d['subType']);if(_0x243eb4['length']>0x1&&_0x1fe711['end']['isEqual'](_0x2ca4ed['start']))return!0x0;if(0x1==_0x243eb4['length']&&(_0x2ca4ed['start']['isEqual'](_0x1fe711['end'])||_0x2ca4ed['end']['isEqual'](_0x1fe711['start'])))return!0x0;}if(0x3==_0x5bd28b&&0x3==_0x105afd&&_0x2ca4ed['start']['isBefore'](_0x1fe711['start'])){const _0x4d90a5=_0x2ca4ed['end']['nodeAfter'],_0x4fc70b=_0x1fe711['start']['nodeBefore'];return _0x47f1d8['isBlockImage'](_0x4d90a5)&&_0x4d90a5===_0x4fc70b;}return!0x1;}_0x3ce6f0['model']['document']['registerPostFixer'](()=>{let _0x5e8e1c=!0x1;const _0x46914a=Array['from'](_0x3ce6f0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b6ac0,data:_0x134dbe}of _0x46914a){const {group:_0x302338,type:_0x1a799d,subType:_0x341ac0,id:_0x42d92a}=_0x477a39['_splitMarkerName'](_0x1b6ac0);if('suggestion'==_0x302338&&_0x477a39['hasSuggestion'](_0x42d92a)){if('formatBlock'==_0x1a799d&&('imageStylePreApply'==_0x341ac0||'imageStylePostApply'==_0x341ac0)){const _0xef7960=_0x477a39['getSuggestion'](_0x42d92a);if(_0x134dbe['newRange']){const _0x4383b3=_0xef7960['getFirstRange']()['getContainedElement']();if(_0x47f1d8['isBlockImage'](_0x4383b3))continue;_0x477a39['discardSuggestion'](_0xef7960),_0x5e8e1c=!0x0;}}if('insertion'==_0x1a799d&&'imageCaption'==_0x341ac0&&!_0x134dbe['newRange']){const _0x20adf7=_0x477a39['getSuggestion'](_0x42d92a);_0x20adf7['next']&&_0x20adf7['next']['isInContent']&&(_0x477a39['discardSuggestion'](_0x20adf7['next']),_0x5e8e1c=!0x0);}}}return _0x5e8e1c;}),this['_registerLegacyDescription'](_0xaa678b);}['_registerLegacyDescription'](_0x1f6f98){const _0x354895=this['editor'],_0xf7a0cd=_0x354895['locale'];_0x354895['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26ca52=>{if('formatBlock'!=_0x26ca52['type']&&'formatInline'!=_0x26ca52['type'])return;const {data:_0x442d15}=_0x26ca52;if(!_0x442d15||'imageStyle'!=_0x442d15['commandName'])return;const _0x2ffdec=_0x442d15['commandParams'][0x0]['value'];return _0x6b5156('side'===_0x2ffdec?o(_0xf7a0cd,'FORMAT_SIDE_IMAGE'):_0x1f6f98[_0x2ffdec]||_0x2ffdec);function _0x6b5156(_0x48b253){return{'type':'format','content':o(_0xf7a0cd,'*Format:*\x20%0',_0x48b253)};}});}}class ut extends _0x334dcc{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x39eae5){super(_0x39eae5),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x59d9f1=this['editor'],_0x2804a0=_0x59d9f1['commands']['get']('importWord'),_0x15ae65=_0x59d9f1['commands']['get']('trackChanges');_0x2804a0&&(_0x2804a0['on']('execute',(_0x35cd60,[,_0x3bbdeb])=>{this['_trackChangesValueDuringImport']=_0x15ae65['value'],_0x3bbdeb['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2804a0,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2804a0,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x15ae65['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x59d9f1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x51e4e6,_0x455a63){const {suggestions:_0x5be3c7}=_0x455a63,_0x3c4495=this['editor']['commands']['get']('trackChanges'),_0x3000a2=_0x3c4495['value'];this['_trackChangesValueDuringImport']!==_0x3000a2&&(_0x3c4495['execute'](),this['_trackChangesExecuted']=!0x0),_0x5be3c7&&_0x5be3c7['forEach'](({id:_0x19b19a,type:_0x5aa1f9,author:_0x2b7a64,created_at:_0x1c42b9})=>{const _0x4660b7={'id':_0x19b19a,'type':_0x5aa1f9,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2b7a64,'createdAt':_0x1c42b9?new Date(_0x1c42b9):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4660b7);});}}class ft extends _0x334dcc{['afterInit'](){const _0x364cdf=this['editor'],_0x321675=_0x364cdf['plugins']['get']('TrackChangesEditing');if(_0x364cdf['plugins']['has']('IndentEditing')&&(_0x321675['enableCommand']('indent'),_0x321675['enableCommand']('outdent')),_0x364cdf['plugins']['has']('IndentBlock')){for(const _0xf26dc2 of['indentBlock','outdentBlock'])_0x321675['enableDefaultAttributesIntegration'](_0xf26dc2);}const _0x57004a=_0x364cdf['locale'];_0x321675['registerBlockAttribute']('blockIndent'),_0x321675['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x57004a,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e0c77=this['editor'],_0x380fb0=_0x4e0c77['locale'],_0x2f0662=_0x4e0c77['plugins']['get']('TrackChangesEditing');_0x2f0662['descriptionFactory']['registerDescriptionCallback'](_0xe5c627=>{if('formatBlock'!=_0xe5c627['type'])return;const {data:_0x18ac56}=_0xe5c627;if(!_0x18ac56)return;if('indentBlock'!=_0x18ac56['commandName']&&'outdentBlock'!=_0x18ac56['commandName'])return;const _0x111775=_0xe5c627['getItems']()[0x0],_0x1a382f=_0x2f0662['descriptionFactory']['getItemLabel'](_0x111775);return'indentBlock'==_0x18ac56['commandName']?{'type':'format','content':o(_0x380fb0,'*Indent:*\x20%0',_0x1a382f)}:'outdentBlock'==_0x18ac56['commandName']?{'type':'format','content':o(_0x380fb0,'*Outdent:*\x20%0',_0x1a382f)}:void 0x0;});}}class ht extends _0x334dcc{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x334dcc{['afterInit'](){const _0x280da9=this['editor'];if(!_0x280da9['plugins']['has']('LinkEditing'))return;const _0x1ad390=_0x280da9['plugins']['get']('TrackChangesEditing'),_0x309914=_0x280da9['commands']['get']('link');_0x1ad390['enableDefaultAttributesIntegration']('link'),_0x1ad390['enableDefaultAttributesIntegration']('unlink'),_0x1ad390['registerInlineAttribute']('linkHref');for(const _0x1e8b24 of _0x309914['manualDecorators'])_0x1ad390['registerInlineAttribute'](_0x1e8b24['id']),_0x1ad390['descriptionFactory']['registerAttributeLabel'](_0x1e8b24['id'],'link\x20('+_0x1e8b24['label']['toLowerCase']()+')');_0x1ad390['descriptionFactory']['registerDescriptionCallback'](_0x1d3311=>{if('attribute'!=_0x1d3311['type'])return;const {data:_0x317dec}=_0x1d3311;if(!_0x317dec||'linkHref'!=_0x317dec['key'])return;const _0x7d4eeb=_0x317dec['newValue'],_0x1be51b=_0x280da9['locale'];return{'type':'format','content':null==_0x7d4eeb?o(_0x1be51b,'*Remove\x20link*'):o(_0x1be51b,'*Set\x20link:*\x20%0','\x22'+_0x7d4eeb+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f27fe=this['editor'],_0x1e83c2=_0x4f27fe['locale'];_0x4f27fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19c7f6=>{if('formatInline'!=_0x19c7f6['type'])return;const {data:_0x1ae2f5}=_0x19c7f6;if(_0x1ae2f5){if('link'==_0x1ae2f5['commandName']){const _0x3d6893=_0x1ae2f5['commandParams'][0x0];return{'type':'format','content':o(_0x1e83c2,'*Set\x20link:*\x20%0','\x22'+_0x3d6893+'\x22')};}return'unlink'==_0x1ae2f5['commandName']?{'type':'format','content':o(_0x1e83c2,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x334dcc{['afterInit'](){const _0x48dc68=this['editor'],_0x5a1ffb=_0x48dc68['locale'];if(!_0x48dc68['plugins']['has']('LegacyListEditing'))return;const _0x35aed3=_0x48dc68['plugins']['get']('TrackChangesEditing'),_0x183ac2=_0x48dc68['plugins']['has']('LegacyTodoListEditing');function _0x1b13aa(_0x587b6e){return()=>{const _0x569ffd=_0x48dc68['model']['document']['selection'],_0x5ea673=_0x48dc68['commands']['get'](_0x587b6e);if(_0x5ea673['value'])return void _0x48dc68['execute']('paragraph',{});const _0x49f91a=_0x587b6e['slice'](0x0,-0x4),_0x283497=function(_0x5d5b6c,_0x43c306,_0x3c2205){let _0x41d9ae=Array['from'](_0x5d5b6c)['filter'](_0x5b67b4=>function(_0x215afa,_0x2e269d){return _0x2e269d['checkChild'](_0x215afa['parent'],'listItem')&&!_0x2e269d['isObject'](_0x215afa);}(_0x5b67b4,_0x3c2205));_0x41d9ae=_0x41d9ae['filter'](_0x19e16d=>!_0x19e16d['is']('element','listItem')||_0x19e16d['getAttribute']('listType')!=_0x43c306);const _0x326f99=new Set();for(const _0x42cf79 of _0x41d9ae)_0x42cf79['is']('element','listItem')?_0x326f99['add'](Le(_0x42cf79)):_0x326f99['add'](_0x42cf79);return Array['from'](_0x326f99);}(_0x569ffd['getSelectedBlocks'](),_0x49f91a,_0x48dc68['model']['schema']);_0x48dc68['model']['change'](()=>{for(const _0x31ca49 of _0x283497)_0x35aed3['markBlockFormat'](_0x31ca49,{'commandName':_0x587b6e,'commandParams':[{'forceValue':!_0x5ea673['value']}],'formatGroupId':'blockName'},Ee(_0x31ca49));});};}function _0x19ef4f(_0x83729d){return()=>{const _0x228d30=function(_0x1a9a92){let _0x4e3c96=Array['from'](_0x1a9a92);const _0x26b57e=_0x4e3c96['findIndex'](_0x4084ee=>'listItem'!=_0x4084ee['name']);return _0x26b57e>-0x1&&(_0x4e3c96=_0x4e3c96['slice'](0x0,_0x26b57e)),_0x4e3c96;}(_0x48dc68['model']['document']['selection']['getSelectedBlocks']()),_0x5b067b=_0x48dc68['model']['createRange'](_0x48dc68['model']['createPositionAt'](_0x228d30[0x0],'before'),_0x48dc68['model']['createPositionAt'](_0x228d30[_0x228d30['length']-0x1],'end'));_0x48dc68['model']['change'](()=>{_0x35aed3['markBlockFormat'](_0x5b067b,{'commandName':_0x83729d,'commandParams':[],'formatGroupId':'listIndent'},function(_0xddc4d1){const _0x5408ae=new Set();for(const _0x477c5 of _0xddc4d1){let _0x2dff22=_0x477c5['nextSibling'];for(;_0x2dff22&&_0x2dff22['getAttribute']('listIndent')>_0x477c5['getAttribute']('listIndent');)_0x5408ae['add'](_0x2dff22),_0x2dff22=_0x2dff22['nextSibling'];}return Array['from'](_0x5408ae);}(_0x228d30));});};}_0x35aed3['enableCommand']('numberedList',_0x1b13aa('numberedList')),_0x35aed3['enableCommand']('bulletedList',_0x1b13aa('bulletedList')),_0x183ac2&&_0x35aed3['enableCommand']('todoList',_0x1b13aa('todoList')),_0x35aed3['enableCommand']('indentList',_0x19ef4f('indentList')),_0x35aed3['enableCommand']('outdentList',_0x19ef4f('outdentList')),_0x183ac2&&_0x35aed3['enableCommand']('checkTodoList',()=>{const _0x4b79bd=_0x48dc68['commands']['get']('checkTodoList'),_0x3dc0fc=Array['from'](_0x4b79bd['_selectedElements']);_0x3dc0fc['filter'](_0x2b40cd=>_0x2b40cd['getAttribute']('todoListChecked')!=_0x4b79bd['value']),_0x48dc68['model']['change'](()=>{for(const _0x2290a4 of _0x3dc0fc)_0x35aed3['markBlockFormat'](_0x2290a4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4b79bd['value']}]});});}),_0x35aed3['descriptionFactory']['registerElementLabel']('listItem',_0x5ab3e7=>o(_0x5a1ffb,'ELEMENT_LIST_ITEM',_0x5ab3e7)),_0x35aed3['descriptionFactory']['registerDescriptionCallback'](_0x10b330=>{if('formatBlock'!=_0x10b330['type']&&'formatInline'!=_0x10b330['type'])return;const {data:_0x46ab83}=_0x10b330;if(_0x46ab83){if('numberedList'==_0x46ab83['commandName']||'bulletedList'==_0x46ab83['commandName']||'todoList'==_0x46ab83['commandName'])switch(_0x46ab83['commandName']['replace']('List','')){case'bulleted':return _0x35557c(o(_0x5a1ffb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x35557c(o(_0x5a1ffb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x35557c(o(_0x5a1ffb,'ELEMENT_TODO_LIST'));}if('indentList'==_0x46ab83['commandName'])return{'type':'format','content':o(_0x5a1ffb,'*Indent:*\x20%0',o(_0x5a1ffb,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x46ab83['commandName'])return{'type':'format','content':o(_0x5a1ffb,'*Outdent:*\x20%0',o(_0x5a1ffb,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x46ab83['commandName'])return _0x46ab83['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a1ffb,'*Check\x20item*')}:{'type':'format','content':o(_0x5a1ffb,'*Uncheck\x20item*')};}function _0x35557c(_0x5e180c){return{'type':'format','content':o(_0x5a1ffb,'*Change\x20to:*\x20%0',_0x5e180c)};}});}}function Le(_0x100f32){const _0x2675f6=_0x100f32['getAttribute']('listIndent');if(0x0==_0x2675f6)return _0x100f32;let _0x4afbce=_0x100f32;for(;_0x100f32['previousSibling']&&_0x100f32['previousSibling']['is']('element','listItem');){const _0x483c02=_0x100f32['previousSibling']['getAttribute']('listIndent');if(_0x483c02==_0x2675f6)_0x4afbce=_0x100f32['previousSibling'];else{if(_0x483c02<_0x2675f6)break;}_0x100f32=_0x100f32['previousSibling'];}return _0x4afbce;}function Ee(_0x1e4a44){const _0x2cfe35=[];if(_0x1e4a44['is']('element','listItem')&&_0x1e4a44['getAttribute']('listIndent')>0x0){let _0x3c48f2=_0x1e4a44['nextSibling'];for(;_0x3c48f2&&'listItem'==_0x3c48f2['name']&&_0x3c48f2['getAttribute']('listIndent')==_0x1e4a44['getAttribute']('listIndent');)_0x2cfe35['push'](_0x3c48f2),_0x3c48f2=_0x3c48f2['nextSibling'];}return _0x2cfe35;}class Q extends _0x334dcc{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x30ad35=this['editor']['config']['get']('list.properties'),_0x25c23f=this['editor']['plugins']['get']('TrackChangesEditing');_0x30ad35['styles']&&_0x25c23f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x30ad35['reversed']&&_0x25c23f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x30ad35['startIndex']&&_0x25c23f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x25c23f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2ddb9b,_0x266867={}){const _0x28b7c1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16aba9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x28b7c1['markMultiRangeBlockFormat'](_0x16aba9,{'commandName':'listStyle','commandParams':[{'type':_0x266867['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xb359f2,_0x29f550={}){const _0x3e6fcc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42d498=this['_getSuggestionBlocks'](_0x45945b=>_0x45945b['is']('element','listItem')&&'numbered'===_0x45945b['getAttribute']('listType'));if(_0x42d498['length']<0x1)return;const _0x2c39ff=_0x42d498['map'](_0x5afdfd=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5afdfd,'before'),this['editor']['model']['createPositionAt'](_0x5afdfd,0x0)));this['editor']['model']['change'](()=>{_0x3e6fcc['markMultiRangeBlockFormat'](_0x2c39ff,{'commandName':'listReversed','commandParams':[{'reversed':_0x29f550['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4831a6,_0x25cbd8={}){const _0x1be7b3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46c6c6=this['_getSuggestionBlocks'](_0x117c5d=>_0x117c5d['is']('element','listItem')&&'numbered'===_0x117c5d['getAttribute']('listType'));if(_0x46c6c6['length']<0x1)return;const _0x447c83=_0x46c6c6['map'](_0x366c7c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x366c7c,'before'),this['editor']['model']['createPositionAt'](_0x366c7c,0x0)));this['editor']['model']['change'](()=>{_0x1be7b3['markMultiRangeBlockFormat'](_0x447c83,{'commandName':'listStart','commandParams':[{'startIndex':_0x25cbd8['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x110958){if('formatBlock'!=_0x110958['type']&&'formatInline'!=_0x110958['type'])return;const _0x4f7234=this['editor']['locale'],{data:_0x56cc9e}=_0x110958;if(!_0x56cc9e)return;let _0x40efc8,_0xba5dc;switch(_0x56cc9e['commandName']){case'listStyle':_0x40efc8='*Change\x20to:*\x20%0',_0xba5dc={'type':'format','content':o(_0x4f7234,_0x40efc8,o(_0x4f7234,this['_getTranslationKeyForListStyle'](_0x56cc9e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x40efc8=_0x56cc9e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xba5dc={'type':'format','content':o(_0x4f7234,_0x40efc8)};break;case'listStart':_0x40efc8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xba5dc={'type':'format','content':o(_0x4f7234,_0x40efc8,_0x56cc9e['commandParams'][0x0]['startIndex'])};}return _0xba5dc;}['_getSuggestionBlocksForListStyle'](){const _0x56f1ea=this['editor']['plugins']['get']('LegacyListUtils');let _0x58d345=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x58d345[0x0]?.['is']('element','listItem')&&_0x58d345['unshift'](..._0x56f1ea['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x58d345[_0x58d345['length']-0x1]?.['is']('element','listItem')&&_0x58d345['push'](..._0x56f1ea['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x58d345=[...new Set(_0x58d345)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x58d345=_0x58d345['filter'](_0xc41edc=>_0xc41edc['is']('element','listItem'))),_0x58d345;}['_getSuggestionBlocks'](_0x2927bc){const _0xe5c9dc=this['editor']['plugins']['get']('LegacyListUtils');let _0x234840=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2927bc)['map'](_0x45b8dc=>{const _0xfab975=this['editor']['model']['createPositionAt'](_0x45b8dc,0x0);return[..._0xe5c9dc['getSiblingNodes'](_0xfab975,'backward'),..._0xe5c9dc['getSiblingNodes'](_0xfab975,'forward')];})['flat']();return _0x234840=[...new Set(_0x234840)],_0x234840;}['_getTranslationKeyForListStyle'](_0x24fdc1){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x24fdc1)||'default')['toUpperCase']()+'_LIST_'+_0x24fdc1['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x334dcc{['afterInit'](){const _0x27ac56=this['editor'];if(!_0x27ac56['plugins']['has']('MediaEmbedEditing'))return;const _0x1e1366=_0x27ac56['plugins']['get']('TrackChangesEditing'),_0x6c184c=_0x27ac56['locale'];_0x1e1366['enableCommand']('mediaEmbed'),_0x1e1366['descriptionFactory']['registerElementLabel']('media',_0x24ffd0=>o(_0x6c184c,'ELEMENT_MEDIA',_0x24ffd0)),_0x27ac56['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x831070,{writer:_0x304c49,options:_0x1a7df5})=>{if(_0x1a7df5['showSuggestionHighlights'])return _0x304c49['createEmptyElement']('div');},'converterPriority':'high'}),_0x27ac56['data']['downcastDispatcher']['on']('attribute:url:media',(_0x52157e,_0x1960cf,_0x44cfb9)=>{_0x44cfb9['options']['showSuggestionHighlights']&&_0x52157e['stop']();},{'priority':'high'});}}class pt extends _0x334dcc{['afterInit'](){const _0x5966e9=this['editor'];_0x5966e9['plugins']['has']('MentionEditing')&&_0x5966e9['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x334dcc{['afterInit'](){const _0xf416a=this['editor'];if(!_0xf416a['plugins']['has']('MergeFieldsEditing'))return;const _0x66c1c=_0xf416a['plugins']['get']('TrackChangesEditing'),_0x5c6fb5=_0xf416a['locale'];_0x66c1c['enableCommand']('insertMergeField'),_0x66c1c['enableCommand']('insertMergeFieldBlock'),_0x66c1c['enableCommand']('insertMergeFieldImage'),_0x66c1c['descriptionFactory']['registerElementLabel']('mergeField',_0x10cf2b=>o(_0x5c6fb5,'ELEMENT_MERGE_FIELD',_0x10cf2b)),_0x66c1c['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x230ada=>o(_0x5c6fb5,'ELEMENT_MERGE_FIELD',_0x230ada)),_0x66c1c['descriptionFactory']['registerDescriptionCallback'](_0x4cd9ea=>{if('insertion'!=_0x4cd9ea['type']&&'deletion'!=_0x4cd9ea['type'])return;const _0x5e21fe=_0x4cd9ea['getContainedElement']();if(null==_0x5e21fe)return;const _0x2ea139=_0xf416a['plugins']['get']('MergeFieldsEditing');let _0x5a6388;switch(_0x2ea139['getMergeFieldType'](_0x5e21fe)){case null:return;case'image':{const _0x40db86=_0x2ea139['unwrapAffixes'](_0x5e21fe['getAttribute']('src'));_0x5a6388=_0x2ea139['getLabel'](_0x40db86)||_0x40db86;break;}default:{const _0x53e5a1=_0x5e21fe['getAttribute']('id');_0x5a6388=_0x2ea139['getLabel'](_0x53e5a1)||_0x53e5a1;break;}}return'insertion'==_0x4cd9ea['type']?{'type':'insertion','content':o(_0x5c6fb5,'*Insert:*\x20%0','\x22'+_0x5a6388+'\x22\x20'+o(_0x5c6fb5,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5c6fb5,'*Remove:*\x20%0','\x22'+_0x5a6388+'\x22\x20'+o(_0x5c6fb5,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x334dcc{['afterInit'](){const _0x52a494=this['editor'],_0x49040c=_0x52a494['plugins']['get']('TrackChangesEditing');_0x52a494['plugins']['has']('MultiLevelList')&&(_0x49040c['enableDefaultAttributesIntegration']('multiLevelList'),_0x49040c['registerBlockAttribute']('listMarkerStyle'),_0x49040c['descriptionFactory']['registerDescriptionCallback'](_0x411594=>this['handleDescriptions'](_0x411594)));}['handleDescriptions'](_0x4574ec){const _0xab256e=this['editor']['locale'],{data:_0x18bc65}=_0x4574ec,_0x474772={'type':'format','content':''};if(_0x18bc65&&'listMarkerStyle'==_0x18bc65['key']){if(!_0x18bc65['oldValue'])return{'type':'format','content':o(_0xab256e,'*Set\x20format:*\x20%0',o(_0xab256e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x18bc65['newValue']+')'};if(!_0x18bc65['newValue']){let _0x2951e0=_0x4574ec['head'];for(;_0x2951e0;){if(_0x2951e0['data']&&'listType'==_0x2951e0['data']['key']&&_0x2951e0['data']['newValue'])return _0x474772;_0x2951e0=_0x2951e0['next'];}return{'type':'format','content':o(_0xab256e,'*Remove\x20format:*\x20%0',o(_0xab256e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x18bc65['oldValue']+')'};}}}}class bt extends _0x334dcc{['afterInit'](){const _0x3edbcc=this['editor'];if(!_0x3edbcc['plugins']['has']('PageBreakEditing'))return;_0x3edbcc['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3cd6b5=_0x3edbcc['plugins']['get']('TrackChangesEditing'),_0x54fd6e=_0x3edbcc['locale'];_0x3cd6b5['descriptionFactory']['registerElementLabel']('pageBreak',_0x11ee72=>o(_0x54fd6e,'ELEMENT_PAGE_BREAK',_0x11ee72));}}class yt extends _0x334dcc{['afterInit'](){const _0x264233=this['editor'];if(!_0x264233['plugins']['has']('Paragraph'))return;const _0x1f3f11=_0x264233['locale'],_0x43dcfc=_0x264233['plugins']['get']('TrackChangesEditing');_0x43dcfc['descriptionFactory']['registerElementLabel']('paragraph',_0x10ece6=>o(_0x1f3f11,'ELEMENT_PARAGRAPH',_0x10ece6)),_0x43dcfc['enableDefaultAttributesIntegration']('paragraph'),_0x43dcfc['enableCommand']('insertParagraph'),_0x264233['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x264233),{'priority':'highest'}),_0x264233['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5df80f,_0x59f06f,_0x103ac3)=>{_0x103ac3['options']['showSuggestionHighlights']&&nr(_0x264233,{'showActiveMarker':!0x1})(_0x5df80f,_0x59f06f,_0x103ac3);},{'priority':'highest'});const _0x2e2992=_0x43dcfc['descriptionFactory'];_0x2e2992['registerDescriptionCallback'](_0x401f01=>{if('insertion'!==_0x401f01['type'])return;const {start:_0x3f0ac5,end:_0x3227f7}=_0x401f01['getFirstRange']();if(!_0x3f0ac5['isTouching'](_0x3227f7)||!_0x3f0ac5['nodeAfter'])return;const _0x73e386=_0x264233['model']['schema'],_0x314431=_0x3f0ac5['nodeAfter'];return _0x73e386['isBlock'](_0x314431)&&!_0x73e386['isLimit'](_0x314431)&&_0x73e386['checkChild'](_0x314431,'$text')?{'type':'insertion','content':o(_0x1f3f11,'*Insert:*\x20%0',_0x2e2992['getItemLabel'](_0x314431,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5dd175=this['editor'],_0x1be256=_0x5dd175['locale'];_0x5dd175['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x90cda8=>{if('formatBlock'!=_0x90cda8['type'])return;const {data:_0x2a19d9}=_0x90cda8;return _0x2a19d9&&'paragraph'==_0x2a19d9['commandName']?{'type':'format','content':o(_0x1be256,'*Change\x20to:*\x20%0',o(_0x1be256,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x17b2e6,{showActiveMarker:_0xe6cf5f=!0x0}={}){return(_0xf534c8,_0x4b86a2,_0xcec814)=>{const _0x2eebac=_0x17b2e6['plugins']['get']('TrackChangesEditing'),_0x5f0afd=_0x4b86a2['markerRange']['start'],_0x46a1bb=_0x4b86a2['markerRange']['end'],_0xcf8582=_0x17b2e6['model']['schema'];if(!_0x5f0afd['isTouching'](_0x46a1bb)||!_0x5f0afd['nodeAfter'])return;const _0x33cddc=_0x5f0afd['nodeAfter'];if(_0xcf8582['isBlock'](_0x33cddc)&&!_0xcf8582['isLimit'](_0x33cddc)&&_0xcf8582['checkChild'](_0x33cddc,'$text')){if(!_0xcec814['consumable']['consume'](_0x4b86a2['markerRange'],_0xf534c8['name']))return;const {authorId:_0x46fd29}=_0x2eebac['_splitMarkerName'](_0x4b86a2['markerName']),_0x2d51e4=_0xcec814['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x46fd29}),_0x253b48=_0xcec814['mapper']['toViewPosition'](_0x46a1bb);_0xe6cf5f&&_0x2eebac['activeMarkers']['includes'](_0x4b86a2['markerName'])&&_0xcec814['writer']['addClass']('ck-suggestion-marker--active',_0x2d51e4),_0xcec814['writer']['insert'](_0x253b48,_0x2d51e4),_0xcec814['mapper']['bindElementToMarker'](_0x2d51e4,_0x4b86a2['markerName']);}};}class jt extends _0x334dcc{['afterInit'](){const _0x3bb3e6=this['editor'];_0x3bb3e6['commands']['get']('replaceSource')&&_0x3bb3e6['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x334dcc{['afterInit'](){const _0x32898d=this['editor'];if(!_0x32898d['plugins']['has']('RemoveFormatEditing'))return;_0x32898d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x278511=this['editor'];_0x278511['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39d813=>{if('formatBlock'!=_0x39d813['type']&&'formatInline'!=_0x39d813['type'])return;const {data:_0x164d48}=_0x39d813;return _0x164d48&&'removeFormat'==_0x164d48['commandName']?{'type':'format','content':o(_0x278511['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x334dcc{['afterInit'](){const _0x50b12e=this['editor'];if(!_0x50b12e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x35c77d=_0x50b12e['plugins']['get']('TrackChangesEditing');_0x35c77d['enableCommand']('goToPreviousRestrictedEditingException'),_0x35c77d['enableCommand']('goToNextRestrictedEditingException');const _0x4c9286=_0x50b12e['plugins']['get']('RestrictedEditingModeEditing');_0x4c9286['enableCommand']('trackChanges'),_0x4c9286['enableCommand']('acceptSuggestion'),_0x4c9286['enableCommand']('discardSuggestion'),_0x4c9286['enableCommand']('acceptAllSuggestions'),_0x4c9286['enableCommand']('discardAllSuggestions'),_0x4c9286['enableCommand']('acceptSelectedSuggestions'),_0x4c9286['enableCommand']('discardSelectedSuggestions');}}class It extends _0x334dcc{static get['requires'](){return[_0x4bfe6a];}['init'](){const _0x59fbb9=this['editor'],_0x129566=_0x59fbb9['plugins']['get']('TrackChangesEditing');_0x129566['enableCommand']('shiftEnter'),_0x59fbb9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x59fbb9),{'priority':'high'}),_0x59fbb9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x59fbb9),{'priority':'high'}),_0x59fbb9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1b2e0a,_0x1e9d28,_0x2eeced)=>{_0x2eeced['options']['showSuggestionHighlights']&&je(_0x59fbb9,{'showActiveMarker':!0x1})(_0x1b2e0a,_0x1e9d28,_0x2eeced);}),_0x129566['descriptionFactory']['registerElementLabel']('softBreak',_0x30bbbc=>o(_0x59fbb9['locale'],'ELEMENT_LINE_BREAK',_0x30bbbc));}}function je(_0x29a20c,{showActiveMarker:_0x1cd81b=!0x0}={}){return(_0x4db8f4,_0x571516,_0x24630b)=>{const _0x2932f3=_0x29a20c['plugins']['get']('TrackChangesEditing');if(!_0x24630b['consumable']['test'](_0x571516['markerRange'],_0x4db8f4['name']))return;const _0x43a7b3=_0x29a20c['model'];for(const _0x384757 of _0x571516['markerRange']['getItems']()){if(!_0x384757['is']('element','softBreak'))continue;const _0x17b0ef='deletion'==_0x571516['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x3b5931}=_0x2932f3['_splitMarkerName'](_0x571516['markerName']),_0x31c26b=_0x24630b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x17b0ef,'data-author-id':_0x3b5931}),_0x581a7b=_0x24630b['mapper']['toViewPosition'](_0x43a7b3['createPositionBefore'](_0x384757));_0x1cd81b&&_0x2932f3['activeMarkers']['includes'](_0x571516['markerName'])&&_0x24630b['writer']['addClass']('ck-suggestion-marker--active',_0x31c26b),_0x24630b['writer']['insert'](_0x581a7b,_0x31c26b),_0x24630b['mapper']['bindElementToMarker'](_0x31c26b,_0x571516['markerName']);}};}class vt extends _0x334dcc{['afterInit'](){const _0x2095a4=this['editor'],_0x295336=_0x2095a4['model'],_0x5cec75=_0x2095a4['locale'];if(!_0x2095a4['plugins']['has']('StandardEditingModeEditing'))return;const _0x5c44a8=_0x2095a4['plugins']['get']('TrackChangesEditing'),_0x455b14='restrictedEditingException',_0x52f5dd=_0x2095a4['commands']['get'](_0x455b14);_0x5c44a8['enableCommand'](_0x455b14,(_0x4103d5,_0x19856d={})=>{const _0x61b5f6=_0x295336['document']['selection'];if(_0x61b5f6['isCollapsed'])return void _0x4103d5(_0x19856d);const _0x2e0832=void 0x0!==_0x19856d['forceValue']?_0x19856d['forceValue']:!_0x52f5dd['value'];_0x295336['change'](()=>{const _0x320a59=Array['from'](_0x61b5f6['getRanges']());for(const _0x499a65 of _0x320a59){const _0x7fc139=_0x2e0832?[_0x499a65]:io(_0x455b14,_0x499a65,_0x295336);for(const _0x80478a of _0x7fc139)_0x5c44a8['markInlineFormat'](_0x80478a,{'commandName':_0x455b14,'commandParams':[{'forceValue':_0x2e0832}]});}});}),_0x5c44a8['descriptionFactory']['registerDescriptionCallback'](_0xf73e9f=>{if('formatBlock'!=_0xf73e9f['type']&&'formatInline'!=_0xf73e9f['type'])return;const {data:_0xb3b887}=_0xf73e9f;return _0xb3b887&&_0xb3b887['commandName']==_0x455b14?_0xb3b887['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5cec75,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5cec75,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x334dcc{['afterInit'](){const _0x236e74=this['editor'];if(!_0x236e74['plugins']['has']('Style')||!_0x236e74['plugins']['has']('DataSchema'))return;const _0x2f7a69=_0x236e74['plugins']['get']('TrackChangesEditing'),_0x53ef2c=_0x236e74['locale'],_0x4da953=_0x236e74['config']['get']('style')||{},_0x4d7610=_0x236e74['plugins']['get']('GeneralHtmlSupport'),_0xfd1cbd=_0x236e74['plugins']['get']('StyleUtils')['normalizeConfig'](_0x236e74['plugins']['get']('DataSchema'),_0x4da953['definitions']);_0x2f7a69['enableDefaultAttributesIntegration']('style');const _0x36f464=new Set();for(const _0x4d8f60 of _0xfd1cbd['block']){const _0x4f7ccd=_0x4d7610['getGhsAttributeNameForElement'](_0x4d8f60['element']);_0x36f464['add'](_0x4f7ccd);}const _0x5d7747=new Set();for(const _0x3928fa of _0xfd1cbd['inline']){const _0x4160ca=_0x4d7610['getGhsAttributeNameForElement'](_0x3928fa['element']);_0x5d7747['add'](_0x4160ca);for(const _0x3d4b69 of _0x3928fa['ghsAttributes'])_0x5d7747['add'](_0x3d4b69);}for(const _0x4a42d4 of _0x36f464)_0x2f7a69['registerBlockAttribute'](_0x4a42d4),_0x2f7a69['descriptionFactory']['registerAttributeLabel'](_0x4a42d4,o(_0x53ef2c,'FORMAT_STYLE'));for(const _0xa7158d of _0x5d7747)_0x2f7a69['registerInlineAttribute'](_0xa7158d),_0x2f7a69['descriptionFactory']['registerAttributeLabel'](_0xa7158d,o(_0x53ef2c,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b24db=this['editor'],_0x240d75=_0x5b24db['locale'];_0x5b24db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28ecea=>{if('formatBlock'!=_0x28ecea['type']&&'formatInline'!=_0x28ecea['type'])return;const {data:_0x32ac5c}=_0x28ecea;return _0x32ac5c&&'style'===_0x32ac5c['commandName']?_0x32ac5c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x240d75,'*Set\x20format:*\x20%0',_0x32ac5c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x240d75,'*Remove\x20format:*\x20%0',_0x32ac5c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x334dcc{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x53106c){super(_0x53106c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4cb4a4=this['editor'],_0x1ac80d=_0x4cb4a4['model']['document']['selection'];if(!_0x4cb4a4['plugins']['has']('TableEditing'))return;const _0x12ec6e=_0x4cb4a4['locale'],_0x152fb2=_0x4cb4a4['plugins']['get']('TrackChangesEditing'),_0x2ec080=_0x4cb4a4['plugins']['get']('TableUtils');_0x152fb2['descriptionFactory']['registerElementLabel']('table',_0x449b64=>o(_0x12ec6e,'ELEMENT_TABLE',_0x449b64)),this['_setupColumnsRowsFixing'](),_0x152fb2['enableCommand']('insertTable'),_0x152fb2['enableCommand']('selectTableRow'),_0x152fb2['enableCommand']('selectTableColumn');for(const _0x4ddeb4 of['insertTableRowAbove','insertTableRowBelow']){const _0x9c5a86=_0x4cb4a4['commands']['get'](_0x4ddeb4);_0x152fb2['enableCommand'](_0x4ddeb4,_0x465bf3=>{_0x4cb4a4['model']['change'](_0x1dd06d=>{_0x465bf3();const _0x4f93b0='above'===_0x9c5a86['order'],_0x3f30a9=_0x2ec080['getSelectionAffectedTableCells'](_0x1ac80d),_0x33e41d=_0x2ec080['getRowIndexes'](_0x3f30a9),_0x4b5130=_0x4f93b0?_0x33e41d['first']-0x1:_0x33e41d['last']+0x1,_0x5a708d=_0x3f30a9[0x0]['findAncestor']('table'),_0x5d40ca=_0x2ec080['createTableWalker'](_0x5a708d,{'startRow':_0x4b5130,'endRow':_0x4b5130}),_0x4c0ccb=Array['from'](_0x5d40ca)['map'](_0x24dcc3=>_0x1dd06d['createRangeOn'](_0x24dcc3['cell']));_0x152fb2['markMultiRangeInsertion'](_0x4c0ccb,'tableRow');});});}for(const _0x1972bd of['insertTableColumnLeft','insertTableColumnRight']){const _0x253fb7=_0x4cb4a4['commands']['get'](_0x1972bd);_0x152fb2['enableCommand'](_0x1972bd,_0xf17d75=>{_0x4cb4a4['model']['change'](_0x20db67=>{_0xf17d75();const _0x4caf57='left'===_0x253fb7['order'],_0x2ce4d5=_0x2ec080['getSelectionAffectedTableCells'](_0x1ac80d),_0x5aa882=_0x2ec080['getColumnIndexes'](_0x2ce4d5),_0x54ce5f=_0x4caf57?_0x5aa882['first']-0x1:_0x5aa882['last']+0x1,_0x4f8a18=_0x2ce4d5[0x0]['findAncestor']('table'),_0x595b5=_0x2ec080['createTableWalker'](_0x4f8a18,{'startRow':0x0,'column':_0x54ce5f,'includeAllSlots':!0x1}),_0x11a661=Array['from'](_0x595b5)['map'](_0x554876=>_0x20db67['createRangeOn'](_0x554876['cell']));_0x152fb2['markMultiRangeInsertion'](_0x11a661,'tableColumn');});});}for(const _0x503491 of['removeTableRow','removeTableColumn']){const _0x33195b=_0x503491['substr'](0xb),_0x11e17f=_0x33195b['toLowerCase'](),_0x2ad887=_0x11e17f['substr'](0x0,0x3)+'span',_0x241d4d='table'+_0x33195b,_0x1403c2='min'+_0x33195b,_0x285197='max'+_0x33195b;_0x152fb2['enableCommand'](_0x503491,()=>{_0x4cb4a4['model']['change'](_0xa8cccc=>{const _0x579ac7=_0x2ec080['getSelectionAffectedTableCells'](_0x1ac80d),_0x546512=_0x579ac7[0x0]['findAncestor']('table');let _0x4b27f7;if('removeTableRow'==_0x503491){const _0x241501=_0x2ec080['getRowIndexes'](_0x579ac7);_0x4b27f7={'startRow':_0x241501['first'],'endRow':_0x241501['last'],'includeAllSlots':!0x0};}else{const _0x8601d4=_0x2ec080['getColumnIndexes'](_0x579ac7);_0x4b27f7={'startColumn':_0x8601d4['first'],'endColumn':_0x8601d4['last'],'includeAllSlots':!0x0};}const _0x1e61da=_0x2ec080['createTableWalker'](_0x546512,_0x4b27f7),_0x4828bd=Array['from'](_0x1e61da)['map'](({cell:_0x2e499b})=>_0x2e499b),_0x280d10=Ne(_0x4828bd['filter'](_0x261593=>_0x261593['hasAttribute'](_0x2ad887))),_0x4543b6=Ne(_0x4828bd['filter'](_0x285618=>!_0x285618['hasAttribute'](_0x2ad887)))['map'](_0x4c201f=>_0xa8cccc['createRangeOn'](_0x4c201f)),_0x3a21b3=_0x152fb2['markMultiRangeDeletion'](_0x4543b6,_0x241d4d);if(_0x3a21b3&&('tableRow'==_0x3a21b3['subType']||'tableColumn'==_0x3a21b3['subType'])){const _0x90b27f=this['_getSuggestionCoords'](_0x3a21b3);for(const _0x1642d6 of _0x280d10){const _0x299d06=_0xa8cccc['createRangeOn'](_0x1642d6),_0x2ec9cc=_0x2ec080['getCellLocation'](_0x1642d6),_0x1bceed=_0x1642d6['getAttribute'](_0x2ad887)-0x1,_0x1a2990=_0x90b27f[_0x1403c2],_0x2f8016=_0x90b27f[_0x285197];_0x1a2990<=_0x2ec9cc[_0x11e17f]&&_0x2ec9cc[_0x11e17f]+_0x1bceed<=_0x2f8016&&_0x3a21b3['addRange'](_0x299d06);}}});});}function _0x2761ec(_0x2a156e){const _0x35be7c=Array['from'](_0x1ac80d['getRanges']())['map'](_0x573ec0=>_0x3dae0a['fromRange'](_0x573ec0));_0x4cb4a4['model']['change'](_0x31ed76=>{const _0x141d3d=_0x31ed76['batch'];_0x2a156e=_0x2a156e['filter'](_0x39d8e8=>'$graveyard'!=_0x39d8e8['root']['rootName']),_0x31ed76['setSelection'](_0x2a156e),_0x4cb4a4['commands']['get']('removeTableRow')['refresh'](),_0x4cb4a4['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4cb4a4['model']['enqueueChange'](()=>{_0x4cb4a4['model']['enqueueChange'](_0x141d3d,_0x1a3936=>{const _0x374fa7=_0x35be7c['filter'](_0x29e785=>'$graveyard'!=_0x29e785['root']['rootName']);_0x374fa7['length']>0x0&&_0x1a3936['setSelection'](_0x374fa7);for(const _0xf59fb7 of _0x35be7c)_0xf59fb7['detach']();});});});}function _0x2f384f(_0x33543b){_0x4cb4a4['model']['change'](_0x49134b=>{const _0x356a99=Array['from'](_0x1ac80d['getRanges']())['map'](_0x29fdef=>_0x3dae0a['fromRange'](_0x29fdef)),_0x310546=[];for(const _0x37e4c5 of _0x33543b)for(const _0x3e389b of _0x37e4c5['getItems']({'shallow':!0x0}))_0x310546['push'](_0x3e389b);for(const _0x454697 of _0x310546)'$graveyard'!=_0x454697['root']['rootName']&&(_0x49134b['setSelection'](_0x49134b['createPositionAt'](_0x454697,0x0)),_0x4cb4a4['commands']['get']('removeTableColumn')['refresh'](),_0x4cb4a4['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x12e046=_0x356a99['filter'](_0x15ccdf=>'$graveyard'!=_0x15ccdf['root']['rootName']);_0x12e046['length']>0x0&&_0x49134b['setSelection'](_0x12e046);for(const _0x1f5661 of _0x356a99)_0x1f5661['detach']();});}function _0x2fe0be(_0x2549a3,_0x5798f4){return _0x5798f4['every'](_0x313cdb=>_0x2549a3['some'](_0x26f55f=>_0x26f55f['end']['isEqual'](_0x313cdb['start'])||_0x313cdb['end']['isEqual'](_0x26f55f['start'])));}function _0x1f8cb2(_0x482b47,_0x11bad3){return!_0x482b47['some'](_0x2413c0=>_0x11bad3['some'](_0x1e9e7b=>_0x2413c0['isIntersecting'](_0x1e9e7b)))&&_0x482b47['some'](_0x3113fe=>_0x11bad3['some'](_0xa11550=>_0x3113fe['end']['isTouching'](_0xa11550['start'])));}_0x4cb4a4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2e45ce,_0xaff0fd,_0x1c1ab0)=>{if(!_0x1c1ab0['options']['showSuggestionHighlights'])return;const _0x1dadf4=_0xaff0fd['item'];if(!_0x1dadf4)return;const _0x17001a=_0x1c1ab0['mapper']['toViewElement'](_0x1dadf4);function _0x29a63f(_0x1bfbbf){return Array['isArray'](_0x1bfbbf)?_0x1bfbbf:[_0x1bfbbf];}_0x17001a&&'tableCell'===_0x1dadf4['name']&&_0x36341b(_0x17001a,_0x1c1ab0['writer'],(_0x573a61,_0x24b63f,_0x53db83)=>_0x53db83['addClass'](_0x29a63f(_0x24b63f['classes']),_0x573a61),(_0x302c17,_0x255516,_0x410a99)=>_0x410a99['removeClass'](_0x29a63f(_0x255516['classes']),_0x302c17));},{'priority':'highest'}),_0x152fb2['descriptionFactory']['registerDescriptionCallback'](_0x309cdf=>{if('insertion'!=_0x309cdf['type']&&'deletion'!=_0x309cdf['type'])return;const _0x1f7a0f=_0x309cdf['getContainedElement']();if(null!=_0x1f7a0f&&_0x1f7a0f['is']('element','table')){if('insertion'==_0x309cdf['type']){const _0x1ba72e=_0x309cdf['getItems']()['filter'](_0x2ff2f0=>_0x2ff2f0['is']('$textProxy'))['map'](_0xb3bd98=>_0xb3bd98['data']);if(_0x1ba72e['length'])return{'type':'insertion','content':o(_0x12ec6e,'*Insert:*\x20%0',o(_0x12ec6e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1ba72e['join']('\x20')+'\x22'))};}if('deletion'==_0x309cdf['type']){const _0x57aa21=_0x309cdf['getItems']()['filter'](_0x136361=>_0x136361['is']('$textProxy'))['map'](_0x41b30f=>_0x41b30f['data']);if(_0x57aa21['length'])return{'type':'deletion','content':o(_0x12ec6e,'*Remove:*\x20%0',o(_0x12ec6e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x57aa21['join']('\x20')+'\x22'))};}}}),_0x152fb2['descriptionFactory']['registerDescriptionCallback'](_0x2cc259=>{if('tableRow'==_0x2cc259['subType']){const _0x5bf012=_0x2cc259['getItems']()['filter'](_0x205f7a=>_0x205f7a['is']('$textProxy'))['map'](_0x4e7709=>_0x4e7709['data']),_0x19603c=this['_getSuggestionCoords'](_0x2cc259),_0x5ddc36=_0x19603c['maxRow']-_0x19603c['minRow']+0x1;if('insertion'==_0x2cc259['type'])return _0x5bf012['length']?{'type':'insertion','content':o(_0x12ec6e,'*Insert:*\x20%0',o(_0x12ec6e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5ddc36,'\x22'+_0x5bf012['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x12ec6e,'*Insert:*\x20%0',o(_0x12ec6e,'ELEMENT_TABLE_ROW',_0x5ddc36))};if('deletion'==_0x2cc259['type'])return _0x5bf012['length']?{'type':'deletion','content':o(_0x12ec6e,'*Remove:*\x20%0',o(_0x12ec6e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5ddc36,'\x22'+_0x5bf012['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x12ec6e,'*Remove:*\x20%0',o(_0x12ec6e,'ELEMENT_TABLE_ROW',_0x5ddc36))};}if('tableColumn'==_0x2cc259['subType']){const _0x5f4543=_0x2cc259['getItems']()['filter'](_0x1b3787=>_0x1b3787['is']('$textProxy'))['map'](_0x140143=>_0x140143['data']),_0x4f061c=this['_getSuggestionCoords'](_0x2cc259),_0x13e3d2=_0x4f061c['maxColumn']-_0x4f061c['minColumn']+0x1;if('insertion'==_0x2cc259['type'])return _0x5f4543['length']?{'type':'insertion','content':o(_0x12ec6e,'*Insert:*\x20%0',o(_0x12ec6e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x13e3d2,'\x22'+_0x5f4543['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x12ec6e,'*Insert:*\x20%0',o(_0x12ec6e,'ELEMENT_TABLE_COLUMN',_0x13e3d2))};if('deletion'==_0x2cc259['type'])return _0x5f4543['length']?{'type':'deletion','content':o(_0x12ec6e,'*Remove:*\x20%0',o(_0x12ec6e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x13e3d2,'\x22'+_0x5f4543['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x12ec6e,'*Remove:*\x20%0',o(_0x12ec6e,'ELEMENT_TABLE_COLUMN',_0x13e3d2))};}}),_0x152fb2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2761ec),_0x152fb2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2761ec),_0x152fb2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2f384f),_0x152fb2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2f384f),_0x152fb2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2fe0be),_0x152fb2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2fe0be),_0x152fb2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1f8cb2),_0x152fb2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1f8cb2);}['_acceptFormatSuggestionCallbackFactory'](){const _0x11cafc=this['editor'],_0x5e8960=_0x11cafc['model']['document']['selection'];return(_0x4c4f25,_0x2b8524)=>{_0x11cafc['model']['change'](_0x2e6fc7=>{const {commandName:_0xc46b2d,commandParams:_0x979e56}=_0x2b8524;let _0x2408e2=_0x4c4f25[0x0]['end']['nodeBefore'];_0x979e56&&_0x979e56[0x0]&&!0x1===_0x979e56[0x0]['forceValue']&&(_0x2408e2=_0x4c4f25[0x0]['start']['nodeAfter']);const _0x573cbe=_0x2e6fc7['createRangeIn'](_0x2408e2);if('$graveyard'==_0x573cbe['root']['rootName'])return;const _0x2bffb6=Array['from'](_0x5e8960['getRanges']())['map'](_0x3a0103=>_0x3dae0a['fromRange'](_0x3a0103));_0x2e6fc7['setSelection'](_0x573cbe),_0x11cafc['commands']['get'](_0xc46b2d)['refresh'](),_0x979e56['push']({'forceDefaultExecution':!0x0}),_0x11cafc['execute'](_0xc46b2d,..._0x979e56);const _0x340550=_0x2bffb6['filter'](_0x1c3260=>'$graveyard'!=_0x1c3260['root']['rootName']);_0x340550['length']>0x0&&_0x2e6fc7['setSelection'](_0x340550);for(const _0x4c9d59 of _0x2bffb6)_0x4c9d59['detach']();});};}['_getCoordsForCells'](_0x4ae1ba){const _0x5a5e43=this['editor']['plugins']['get']('TableUtils');let _0x21d392=Number['MAX_SAFE_INTEGER'],_0x58c5b6=Number['MIN_SAFE_INTEGER'],_0x33f68c=Number['MAX_SAFE_INTEGER'],_0x24d5e9=Number['MIN_SAFE_INTEGER'];for(const _0x7068bc of _0x4ae1ba){if('$graveyard'==_0x7068bc['root']['rootName'])continue;const {row:_0x532049,column:_0x52607c}=_0x5a5e43['getCellLocation'](_0x7068bc),_0x744ae5=_0x7068bc['hasAttribute']('rowspan')?_0x7068bc['getAttribute']('rowspan')-0x1:0x0,_0x52c8f4=_0x7068bc['hasAttribute']('colspan')?_0x7068bc['getAttribute']('colspan')-0x1:0x0;_0x21d392=_0x532049<_0x21d392?_0x532049:_0x21d392,_0x58c5b6=_0x532049+_0x744ae5>_0x58c5b6?_0x532049+_0x744ae5:_0x58c5b6,_0x33f68c=_0x52607c<_0x33f68c?_0x52607c:_0x33f68c,_0x24d5e9=_0x52607c+_0x52c8f4>_0x24d5e9?_0x52607c+_0x52c8f4:_0x24d5e9;}return{'minRow':_0x21d392,'maxRow':_0x58c5b6,'minColumn':_0x33f68c,'maxColumn':_0x24d5e9};}['_setupColumnsRowsFixing'](){const _0x1bea2f=this['editor'],_0x477cf2=_0x1bea2f['plugins']['get']('TrackChangesEditing'),_0x3f8bf3=_0x1bea2f['plugins']['get']('TableUtils');_0x1bea2f['model']['document']['on']('change:data',()=>{const _0x4b8d61=Array['from'](_0x1bea2f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb5b4f1,data:_0x20a61a}of _0x4b8d61){const {group:_0x25dce1,id:_0x587231,subType:_0x40c82c}=_0x477cf2['_splitMarkerName'](_0xb5b4f1);if('suggestion'!=_0x25dce1)continue;if(null!=_0x20a61a['oldRange'])continue;const _0x1db04e=_0x477cf2['getSuggestion'](_0x587231);this['_tablePostFixingSubtypes']['includes'](_0x40c82c)&&this['_tableSuggestions']['add'](_0x1db04e);}},{'priority':'low'});const _0x38dbe0=(_0x4baffa,_0x17bfac)=>{let _0x56bc3f=!0x1;const _0x1d0d4c=_0x17bfac['createRangeOn'](_0x4baffa),_0x4b3257=_0x4baffa['findAncestor']('table'),_0xf36a31=_0x3f8bf3['getCellLocation'](_0x4baffa);for(const _0x1af556 of this['_tableSuggestions']){const _0x150f44=_0x1af556['subType'],_0x93f9f9=_0x150f44['startsWith']('tablePaste'),_0x562509=_0x150f44['substr'](_0x93f9f9?0xa:0x5),_0x3a0662=_0x562509['toLowerCase'](),_0x1fcb73=_0x3a0662['substr'](0x0,0x3)+'span',_0x323353='min'+_0x562509,_0xf754e8='max'+_0x562509;if(!_0x1af556['isInContent'])continue;if(_0x4b3257!=_0x1af556['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1af556['isIntersectingWithRange'](_0x1d0d4c))continue;const _0x4f2eef=_0x4baffa['hasAttribute'](_0x1fcb73)?_0x4baffa['getAttribute'](_0x1fcb73)-0x1:0x0,_0xc9f246=this['_getSuggestionCoords'](_0x1af556),_0x4eaa16=_0xc9f246[_0x323353],_0x1401b1=_0xc9f246[_0xf754e8];_0x4eaa16<=_0xf36a31[_0x3a0662]&&_0xf36a31[_0x3a0662]+_0x4f2eef<=_0x1401b1&&(_0x1af556['addRange'](_0x1d0d4c),_0x56bc3f=!0x0);}return _0x56bc3f;};_0x1bea2f['model']['document']['registerPostFixer'](_0x48489d=>{let _0x181bc9=!0x1;for(const _0x168e96 of _0x1bea2f['model']['document']['differ']['getChanges']())if('insert'==_0x168e96['type']){if('tableRow'==_0x168e96['name']){for(const _0x7723e7 of _0x168e96['position']['nodeAfter']['getChildren']())_0x181bc9=_0x181bc9||_0x38dbe0(_0x7723e7,_0x48489d);}else'tableCell'==_0x168e96['name']&&(_0x181bc9=_0x181bc9||_0x38dbe0(_0x168e96['position']['nodeAfter'],_0x48489d));}return _0x181bc9;});}['_getSuggestionCoords'](_0x5ef685){return this['_getCoordsForCells'](_0x5ef685['getRanges']()['map'](_0x11fefb=>_0x11fefb['start']['nodeAfter']));}}function Ne(_0x39b655){return Array['from'](new Set(_0x39b655)['values']());}class Nt extends _0x334dcc{static get['requires'](){return[Ct];}['afterInit'](){const _0x46e844=this['editor'],_0x4e2efc=_0x46e844['model']['document']['selection'],_0x4e0c61=_0x46e844['locale'];if(!_0x46e844['plugins']['has']('TableEditing'))return;const _0x21a2a5=_0x46e844['plugins']['get']('TrackChangesEditing'),_0x583958=_0x46e844['plugins']['get']('TableUtils'),_0x59dc19=_0x46e844['plugins']['get'](Ct);_0x59dc19['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x21a2a5['enableCommand']('mergeTableCells',()=>{const _0x18fd54=_0x583958['getSelectionAffectedTableCells'](_0x46e844['model']['document']['selection']);_0x46e844['model']['change'](()=>{_0x21a2a5['markMultiRangeBlockFormat'](_0x18fd54,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x46e844['commands']['get']('mergeTableCells')['on']('execute',(_0x498605,_0x5ec509)=>{_0x46e844['commands']['get']('trackChanges')['value']&&(_0x5ec509['length']>0x0&&_0x5ec509[_0x5ec509['length']-0x1]&&_0x5ec509[_0x5ec509['length']-0x1]['forceDefaultExecution']||_0x21a2a5['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x498605['stop']());},{'priority':'highest'});for(const _0x2ed1c8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x20106e=_0x46e844['commands']['get'](_0x2ed1c8);_0x21a2a5['enableCommand'](_0x2ed1c8,()=>{const _0xc6e01b=_0x46e844['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x50a217=>_0x50a217['is']('element','tableCell')),_0x471650=_0x20106e['value'];_0x46e844['model']['change'](()=>{_0x21a2a5['markMultiRangeBlockFormat']([_0xc6e01b,_0x471650],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x236e6b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x180946=_0x46e844['commands']['get'](_0x236e6b);_0x21a2a5['enableCommand'](_0x236e6b,()=>{const _0x44c35f=_0x583958['getSelectionAffectedTableCells'](_0x46e844['model']['document']['selection'])[0x0],_0x2dcfad=_0x44c35f['findAncestor']('table'),{column:_0x275b35,row:_0x4d024f}=_0x583958['getCellLocation'](_0x44c35f);let _0x4c58c8=[];if('horizontally'==_0x180946['direction']){const _0x5aa494=_0x583958['createTableWalker'](_0x2dcfad,{'startRow':_0x4d024f,'endRow':_0x4d024f,'includeAllSlots':!0x0});_0x4c58c8=Array['from'](_0x5aa494)['map'](_0xb808e0=>_0xb808e0['cell']);}else{const _0x29e406=_0x583958['createTableWalker'](_0x2dcfad,{'column':_0x275b35,'includeAllSlots':!0x0});_0x4c58c8=Array['from'](_0x29e406)['map'](_0x149008=>_0x149008['cell']);}_0x46e844['model']['change'](_0x22961b=>{_0x21a2a5['markBlockFormat'](_0x22961b['createRangeOn'](_0x44c35f),{'commandName':_0x236e6b,'commandParams':[]},_0x4c58c8,_0x236e6b);});});}_0x21a2a5['descriptionFactory']['registerDescriptionCallback'](_0x208b8a=>{if('formatBlock'!=_0x208b8a['type']&&'formatInline'!=_0x208b8a['type'])return;const {data:_0x19b401}=_0x208b8a;return _0x19b401&&'mergeTableCells'==_0x19b401['commandName']?{'type':'format','content':o(_0x4e0c61,'*Merge\x20cells*')}:void 0x0;}),_0x21a2a5['descriptionFactory']['registerDescriptionCallback'](_0x3f2e97=>{if('formatBlock'!=_0x3f2e97['type']&&'formatInline'!=_0x3f2e97['type'])return;const {data:_0x50ad8c}=_0x3f2e97;return _0x50ad8c?'splitTableCellVertically'==_0x50ad8c['commandName']?{'type':'format','content':o(_0x4e0c61,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x50ad8c['commandName']?{'type':'format','content':o(_0x4e0c61,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x570a9c=_0x59dc19['_acceptFormatSuggestionCallbackFactory']();for(const _0x105dff of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x21a2a5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x105dff,'accept',_0x570a9c);for(const _0x2adf75 of['splitTableCellVertically','splitTableCellHorizontally'])_0x21a2a5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2adf75,'accept',_0x570a9c);_0x21a2a5['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x37a7d2=>{_0x46e844['model']['change'](_0x3aceb6=>{const _0x37fdca=Array['from'](_0x4e2efc['getRanges']())['map'](_0x38f097=>_0x3dae0a['fromRange'](_0x38f097));_0x3aceb6['setSelection'](_0x37a7d2),_0x46e844['commands']['get']('mergeTableCells')['refresh'](),_0x46e844['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x18eb0b=_0x37fdca['filter'](_0x2aed6f=>'$graveyard'!=_0x2aed6f['root']['rootName']);_0x18eb0b['length']>0x0&&_0x3aceb6['setSelection'](_0x18eb0b);for(const _0x1a13f8 of _0x37fdca)_0x1a13f8['detach']();});});for(const _0xa837a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5a6fc1=_0x46e844['commands']['get'](_0xa837a);_0x5a6fc1['on']('set:isEnabled',(_0x15c0ed,_0xdaf876,_0x2b9ccb)=>{if(_0x2b9ccb){const _0x49caef=_0x46e844['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5a2dbc=>_0x5a2dbc['is']('element','tableCell'));this['_areMergableCells'](_0x5a6fc1['value'],_0x49caef)||(_0x15c0ed['return']=!0x1,_0x15c0ed['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2a4e06=this['editor']['commands']['get']('mergeTableCells'),_0x599725=this['editor']['plugins']['get']('TableUtils');if(!_0x2a4e06['isEnabled'])return!0x1;const _0x4658fc=_0x599725['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1873d7 of _0x4658fc)for(const _0x5aaca6 of _0x4658fc)if(_0x1873d7!=_0x5aaca6&&!this['_areMergableCells'](_0x1873d7,_0x5aaca6))return!0x1;return!0x0;}['_areMergableCells'](_0x1c122f,_0x200b94){const _0xe106f6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x224822=this['editor']['model']['createRangeOn'](_0x1c122f),_0x41a18d=this['editor']['model']['createRangeOn'](_0x200b94),_0x1592c3=new Set(),_0x1323ea=new Set();for(const _0x5f48fa of _0xe106f6['getSuggestions']())if(('insertion'==_0x5f48fa['type']||'deletion'==_0x5f48fa['type']||'mergeTableCells'==_0x5f48fa['subType'])&&_0x5f48fa['isInContent']){for(const _0xdce931 of _0x5f48fa['getRanges']())_0xdce931['containsRange'](_0x224822,!0x0)&&_0x1592c3['add'](_0x5f48fa['type']+':'+_0x5f48fa['author']['id']),_0xdce931['containsRange'](_0x41a18d,!0x0)&&_0x1323ea['add'](_0x5f48fa['type']+':'+_0x5f48fa['author']['id']);}if(_0x1592c3['size']!=_0x1323ea['size'])return!0x1;for(const _0x2938d7 of _0x1592c3)if(!_0x1323ea['has'](_0x2938d7))return!0x1;return!0x0;}}class Dt extends _0x334dcc{static get['requires'](){return[Ct];}['afterInit'](){const _0x3e7068=this['editor'];if(!_0x3e7068['plugins']['has']('TableEditing'))return;const _0x38629b=_0x3e7068['locale'],_0x12ce28=_0x3e7068['plugins']['get']('TrackChangesEditing');_0x12ce28['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x12ce28['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x12ce28['registerBlockAttribute']('headingRows'),_0x12ce28['registerBlockAttribute']('headingColumns'),_0x12ce28['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x38629b,'FORMAT_HEADER_ROW')),_0x12ce28['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x38629b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x14b802=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d51d7=this['editor']['plugins']['get']('TableUtils'),_0x30f94b=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x1854c2({showActiveMarker:_0x40283c=!0x0,setDataAttribute:_0x1ff6cb=!0x0}={}){return(_0x4f5730,_0x592bd6,_0x384d32)=>{const {type:_0x4c4a34,id:_0x4c099}=_0x14b802['_splitMarkerName'](_0x592bd6['markerName']),_0x300ae6=_0x14b802['getSuggestion'](_0x4c099),_0x86786b=_0x300ae6['data'];if('formatBlock'!=_0x300ae6['type']||!_0x86786b||'setTableColumnHeader'!=_0x86786b['commandName'])return;if(_0x592bd6['item'])return void _0x4f5730['stop']();if(!_0x384d32['consumable']['consume'](_0x592bd6['markerRange'],_0x4f5730['name']))return;const _0x5d58fe=_0x592bd6['markerRange']['start']['nodeAfter'],_0x8e6aa5=_0x592bd6['markerRange']['end']['nodeBefore'],_0x4cd1bb=_0x5d58fe['parent']['parent'],{column:_0x2d8f46}=_0x1d51d7['getCellLocation'](_0x5d58fe),{column:_0x4dbdbb}=_0x1d51d7['getCellLocation'](_0x8e6aa5);for(let _0x4182fd=_0x2d8f46;_0x4182fd<=_0x4dbdbb;_0x4182fd++){const _0x1cf87f=_0x1d51d7['createTableWalker'](_0x4cd1bb,{'column':_0x4182fd,'includeAllSlots':!0x1});for(const _0x300aae of _0x1cf87f){const _0x1a47e2=_0x300aae['cell'],_0x5e599c=_0x384d32['mapper']['toViewElement'](_0x1a47e2);_0x384d32['writer']['addClass']('ck-suggestion-marker-'+_0x4c4a34,_0x5e599c),_0x1ff6cb&&_0x384d32['writer']['setAttribute']('data-suggestion',_0x4c099,_0x5e599c),_0x384d32['mapper']['bindElementToMarker'](_0x5e599c,_0x592bd6['markerName']),_0x40283c&&(_0x14b802['activeMarkers']['includes'](_0x592bd6['markerName'])?_0x384d32['writer']['addClass']('ck-suggestion-marker--active',_0x5e599c):_0x384d32['writer']['removeClass']('ck-suggestion-marker--active',_0x5e599c));}}};}_0x14b802['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x30f94b),_0x14b802['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x30f94b),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1854c2(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x49b373,_0x4794c8,_0x4eff20)=>{_0x4eff20['options']['showSuggestionHighlights']&&_0x1854c2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x49b373,_0x4794c8,_0x4eff20);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x59af44,_0x3d67bd,_0x20ee3c)=>{const {type:_0x5d9340,id:_0x34602a}=_0x14b802['_splitMarkerName'](_0x3d67bd['markerName']),_0x4e127f=_0x14b802['getSuggestion'](_0x34602a),_0x17a72e=_0x4e127f['data'];if('formatBlock'!=_0x4e127f['type']||!_0x17a72e||'setTableColumnHeader'!=_0x17a72e['commandName'])return;const _0x1fac8a=_0x20ee3c['mapper']['markerNameToElements'](_0x3d67bd['markerName']);if(_0x1fac8a){for(const _0x44b07e of _0x1fac8a)_0x20ee3c['writer']['removeClass']('ck-suggestion-marker-'+_0x5d9340,_0x44b07e),_0x20ee3c['writer']['removeClass']('ck-suggestion-marker--active',_0x44b07e),_0x20ee3c['writer']['removeAttribute']('data-suggestion',_0x44b07e),_0x20ee3c['mapper']['unbindElementFromMarkerName'](_0x44b07e,_0x3d67bd['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e8266=this['editor'],_0xe04de2=_0x2e8266['locale'];function _0x5e765d(_0x536875){return{'type':'format','content':o(_0xe04de2,'*Format:*\x20%0',_0x536875)};}_0x2e8266['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x381056=>{if('formatBlock'!=_0x381056['type'])return;const {data:_0x11fd6c}=_0x381056;if(_0x11fd6c){if('setTableRowHeader'==_0x11fd6c['commandName']){const _0x5c518c=_0x11fd6c['commandParams'][0x0]['forceValue'];return _0x5e765d(o(_0xe04de2,_0x5c518c?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x11fd6c['commandName']){const _0xda9c25=_0x11fd6c['commandParams'][0x0]['forceValue'];return _0x5e765d(o(_0xe04de2,_0xda9c25?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x451807=>[_0x451807,null]));class Mt extends _0x334dcc{static get['requires'](){return[Ct];}['afterInit'](){const _0xabf898=this['editor'];if(!_0xabf898['plugins']['has']('TableClipboard'))return;const _0x3ca6d3=_0xabf898['plugins']['get']('TrackChangesEditing'),_0x476758=_0xabf898['plugins']['get']('TableUtils'),_0x6d36ae=_0xabf898['plugins']['get'](Ct),_0x45d983=_0xabf898['plugins']['get']('TableClipboard');_0x6d36ae['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xabf898['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xabf898['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x953b57=null;_0xabf898['model']['on']('insertContent',(_0x28fc74,_0x458c59)=>{const [_0x42d0c3,_0x5761b8]=_0x458c59,_0x140dab=_0x458c59[_0x458c59['length']-0x1];_0x140dab&&_0x140dab['forceDefaultExecution']||_0x3ca6d3['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xb643ab,_0x19d9c7,_0x2fcad6,_0x9ecb9b,_0x125779){if(_0x19d9c7&&!_0x19d9c7['is']('documentSelection'))return!0x1;const _0x57c559=_0x125779['getTableIfOnlyTableInContent'](_0xb643ab,_0x2fcad6);if(!_0x57c559||!Ue(_0x57c559,void 0x0,_0x9ecb9b))return!0x1;const _0x37ef81=_0x9ecb9b['getSelectionAffectedTableCells'](_0x2fcad6['document']['selection']);if(!_0x37ef81['length'])return!0x1;const _0x2c4c22=_0x37ef81[0x0]['findAncestor']('table'),_0xd6b877=_0x9ecb9b['getRowIndexes'](_0x37ef81),_0x5d7507=_0x9ecb9b['getColumnIndexes'](_0x37ef81),_0x1f328f={'startRow':_0xd6b877['first'],'endRow':_0xd6b877['last'],'startColumn':_0x5d7507['first'],'endColumn':_0x5d7507['last']};return 0x1==_0x37ef81['length']&&(_0x1f328f['endRow']+=_0x9ecb9b['getRows'](_0x57c559)-0x1,_0x1f328f['endColumn']+=_0x9ecb9b['getColumns'](_0x57c559)-0x1),Ue(_0x2c4c22,_0x1f328f,_0x9ecb9b);}(_0x42d0c3,_0x5761b8,_0xabf898['model'],_0x476758,_0x45d983)&&(_0x28fc74['stop'](),_0x953b57={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xabf898['model']['change'](()=>{_0xabf898['model']['insertContent'](_0x458c59[0x0],_0x458c59[0x1],_0x458c59[0x2],{'forceDefaultExecution':!0x0});const _0x3bd71e=_0x493eac(),{rowInsertionRanges:_0x4dacbd,columnInsertionRanges:_0x42ced4,insertionRanges:_0x59ef18,deletionRanges:_0x88a084,cells:_0x52fcd6}=_0x953b57;_0x4dacbd['length']&&_0x3ca6d3['markMultiRangeInsertion'](_0x4dacbd,'tablePasteRow',{'tablePasteChainId':_0x3bd71e}),_0x42ced4['length']&&_0x3ca6d3['markMultiRangeInsertion'](_0x42ced4,'tablePasteColumn',{'tablePasteChainId':_0x3bd71e}),_0x59ef18['length']&&(_0x3ca6d3['markMultiRangeInsertion'](_0x59ef18,'tablePaste',{'tablePasteChainId':_0x3bd71e,'skipNestingCheck':!0x0}),_0x59ef18['forEach'](_0x31efbf=>_0x31efbf['detach']?.())),_0x88a084['length']&&(_0x3ca6d3['markMultiRangeDeletion'](_0x88a084,'tablePaste',{'tablePasteChainId':_0x3bd71e,'skipNestingCheck':!0x0}),_0x88a084['forEach'](_0x10dff6=>_0x10dff6['detach']?.()));const _0x51981d=_0x3ca6d3['markMultiRangeBlockFormat'](_0x52fcd6['map'](({element:_0x5800df})=>_0x5800df),{'formatGroupId':_0x493eac()},[],'tablePasteCell',{'tablePasteChainId':_0x3bd71e});if(_0x51981d){const _0x17bcf1=_0x51981d['getMarkers'](),_0x1234c4=[];for(const {element:_0x29eb9c,attributes:_0x4f57ca}of _0x52fcd6){if(!_0x4f57ca)continue;const _0x428ea5=_0xabf898['model']['createRangeOn'](_0x29eb9c),_0x205d6c=_0x17bcf1['find'](_0x147ad9=>_0x147ad9['getRange']()['isEqual'](_0x428ea5));_0x205d6c&&_0x1234c4['push']([_0x205d6c['name'],_0x4f57ca]);}_0x1234c4['length']&&_0x51981d['setAttribute']('markerAttributes',Object['fromEntries'](_0x1234c4));}_0x953b57=null;}));},{'priority':_0x53a02d['high']+0xa}),_0xabf898['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x37c6e8,_0x5e528d)=>{const [_0x14b81b,_0x31abc3,,_0x2e18c3]=_0x5e528d;if(!_0x953b57)return;_0x37c6e8['stop']();const _0x5e421c=_0x14b81b['cell'],_0x5e98f9=_0x31abc3,_0x36d599=Oe(_0x5e421c),_0x1bbdf2=Oe(_0x5e98f9);_0x37c6e8['return']=_0x5e421c;let _0x1b9b38=null,_0x25b011=null;if(_0x1bbdf2||_0x36d599){if(_0x36d599&&!_0x1bbdf2){_0x2e18c3['remove'](_0x5e421c['getChild'](0x0));for(const _0x4912f7 of Array['from'](_0x5e98f9['getChildren']()))_0x2e18c3['insert'](_0x4912f7,_0x5e421c,'end');const _0x3c308d=_0x953b57['rowInsertionIndexes']['includes'](_0x14b81b['row']),_0x283795=_0x953b57['columnInsertionIndexes']['includes'](_0x14b81b['column']);_0x3c308d||_0x283795||(_0x1b9b38=_0x3dae0a['fromRange'](_0x2e18c3['createRangeIn'](_0x5e421c)));}else _0x1bbdf2&&!_0x36d599&&(_0x25b011=_0x2e18c3['createRangeIn'](_0x5e421c));}else{const _0x5545f9=_0x2e18c3['createElement']('tableCellSuggestion'),_0x397d01=_0x2e18c3['createElement']('tableCellSuggestion');_0x2e18c3['wrap'](_0x2e18c3['createRangeIn'](_0x5e421c),_0x397d01),_0x2e18c3['insert'](_0x5545f9,_0x5e421c,0x0);for(const _0x1a51dd of Array['from'](_0x5e98f9['getChildren']()))_0x2e18c3['insert'](_0x1a51dd,_0x5545f9,'end');_0x1b9b38=_0x3dae0a['fromRange'](_0x2e18c3['createRangeOn'](_0x5545f9)),_0x25b011=_0x3dae0a['fromRange'](_0x2e18c3['createRangeOn'](_0x397d01));}const _0x34a314=Array['from'](_0x5e98f9['getAttributes']())['filter'](([_0x1109af])=>Be['includes'](_0x1109af));_0x953b57['cells']['push']({'element':_0x5e421c,'attributes':_0x34a314['length']?Object['fromEntries'](_0x34a314):null}),_0x1b9b38&&_0x953b57['insertionRanges']['push'](_0x1b9b38),_0x25b011&&_0x953b57['deletionRanges']['push'](_0x25b011);},{'priority':'high'}),_0x476758['on']('insertColumns',(_0x4cffe4,_0x3e6385)=>{const [_0x136955,_0x277f50={}]=_0x3e6385;if(!_0x953b57)return;const _0x51663b=_0x277f50['at']||0x0,_0x1dfd16=_0x277f50['columns']||0x1;_0x953b57['columnInsertionIndexes']=new Array(_0x1dfd16)['fill'](_0x51663b)['map']((_0x448c33,_0x5621c7)=>_0x448c33+_0x5621c7);for(const {cell:_0x41c950}of _0x476758['createTableWalker'](_0x136955,{'startColumn':_0x51663b,'endColumn':_0x51663b+_0x1dfd16-0x1}))_0x953b57['columnInsertionRanges']['push'](_0xabf898['model']['createRangeOn'](_0x41c950));},{'priority':'low'}),_0x476758['on']('insertRows',(_0x15f75f,_0x4c0489)=>{const [_0x3af8c1,_0x10c754={}]=_0x4c0489;if(!_0x953b57)return;const _0x39c0ed=_0x10c754['at']||0x0,_0x51ca0e=_0x10c754['rows']||0x1;_0x953b57['rowInsertionIndexes']=new Array(_0x51ca0e)['fill'](_0x39c0ed)['map']((_0x3384f7,_0x313aab)=>_0x3384f7+_0x313aab);for(const {cell:_0x36b9ea}of _0x476758['createTableWalker'](_0x3af8c1,{'startRow':_0x39c0ed,'endRow':_0x39c0ed+_0x51ca0e-0x1}))_0x953b57['rowInsertionRanges']['push'](_0xabf898['model']['createRangeOn'](_0x36b9ea));},{'priority':'low'}),_0x3ca6d3['descriptionFactory']['registerDescriptionCallback'](_0x263f80=>{if(_0x263f80['subType']&&_0x263f80['subType']['startsWith']('tablePaste'))return _0x263f80['previous']?{}:{'type':'insertion','content':o(_0xabf898['locale'],'*Replace\x20table\x20cells*')};});const _0x1533da=()=>!0x1;for(const _0x597df9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3ca6d3['_suggestionFactory']['registerCustomCallback']('insertion',_0x597df9,'join',_0x1533da),_0x3ca6d3['_suggestionFactory']['registerCustomCallback']('deletion',_0x597df9,'join',_0x1533da),_0x3ca6d3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x597df9,'join',_0x1533da);_0x3ca6d3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1533da),_0x3ca6d3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x50b753,_0x3b0aee,_0xb7e1d2)=>{const _0x3264a7=_0x50b753['map'](_0x270a76=>_0x270a76['getContainedElement']())['filter'](_0x782fe5=>_0x782fe5),_0x10d30a=new Map(_0x3264a7['map'](_0x2966c2=>[_0x2966c2,null]));if(_0x953b57){for(const {element:_0x1b1757,attributes:_0x37b7f4}of _0x953b57['cells'])_0x37b7f4&&_0x10d30a['set'](_0x1b1757,_0x37b7f4);}else{if(_0xb7e1d2&&_0xb7e1d2['markerAttributes'])for(const [_0x42ccf9,_0x627aee]of Object['entries'](_0xb7e1d2['markerAttributes'])){const _0x4acfa3=_0xabf898['model']['markers']['get'](_0x42ccf9),_0x292366=_0x4acfa3?_0x4acfa3['getRange']()['getContainedElement']():null;_0x292366&&_0x10d30a['set'](_0x292366,_0x627aee);}}_0xabf898['model']['change'](_0x14c9f2=>{for(const [_0x57c625,_0x1dc4ff]of _0x10d30a)_0x14c9f2['setAttributes']({...xe,..._0x1dc4ff},_0x57c625);});});const _0x35ba01=(_0x3f6f21,_0x108781)=>{_0x3ca6d3['_suggestionFactory']['registerCustomCallback'](_0x3f6f21,'tablePaste',_0x108781,(_0x31c773,_0x391190,_0xb34d34)=>{_0xabf898['model']['change'](_0x12fd77=>{const _0x99d9c8=[];for(const _0x2c0893 of _0x31c773){const _0x2978e4=_0x2c0893['start']['nodeAfter'];_0x2978e4['is']('element','tableCellSuggestion')&&_0x99d9c8['push'](_0x2978e4);}_0x3ca6d3['_suggestionFactory']['getSuggestionCallback'](_0x3f6f21,null,_0x108781)(_0x31c773,_0x391190,_0xb34d34);for(const _0x4a25c2 of _0x99d9c8)'$graveyard'!=_0x4a25c2['root']['rootName']&&_0x12fd77['unwrap'](_0x4a25c2);});});};_0x35ba01('insertion','accept'),_0x35ba01('insertion','discard'),_0x35ba01('deletion','accept'),_0x35ba01('deletion','discard'),_0x3ca6d3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1095dd=>{const _0x329625=_0x1095dd['map'](_0x2e177d=>_0x2e177d['getContainedElement']()),_0x71c1f5=_0x329625[0x0]['findAncestor']('table'),{minRow:_0x28ff39,maxRow:_0x5f2d0a}=_0x6d36ae['_getCoordsForCells'](_0x329625);_0x476758['removeRows'](_0x71c1f5,{'at':_0x28ff39,'rows':_0x5f2d0a-_0x28ff39+0x1});}),_0x3ca6d3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5957e3=>{const _0x53fcb4=_0x5957e3['map'](_0x2af290=>_0x2af290['getContainedElement']()),_0x374d98=_0x53fcb4[0x0]['findAncestor']('table'),{minColumn:_0x19338e,maxColumn:_0x11476a}=_0x6d36ae['_getCoordsForCells'](_0x53fcb4);_0x476758['removeColumns'](_0x374d98,{'at':_0x19338e,'columns':_0x11476a-_0x19338e+0x1});});const _0x4b1f21=(_0x3dad91,_0x5006fa)=>{if(!_0x5006fa['subType']||!_0x5006fa['subType']['startsWith']('tablePaste'))return;const _0x1323f2=_0x5006fa['attributes']['tablePasteChainId'],_0x5752bf=_0x3ca6d3['getSuggestions']()['filter'](_0x350fc5=>_0x350fc5['isInContent']&&_0x350fc5['attributes']&&_0x350fc5['attributes']['tablePasteChainId']==_0x1323f2);_0x5752bf['length']&&_0x5006fa['getAllAdjacentSuggestions']()['length']!=_0x5752bf['length']&&_0x5752bf['reduce']((_0x1f8861,_0x1c9af0)=>(_0x1f8861['next']=_0x1c9af0,_0x1c9af0['previous']=_0x1f8861,_0x1c9af0));};function _0x54a9c2(_0x21d608,_0x37b4db=!0x0){const {id:_0x18be7f,authorId:_0xba2239}=_0x3ca6d3['_splitMarkerName'](_0x21d608['markerName']),_0x5b7a2d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4f1d3a=_0x3ca6d3['activeMarkers']['includes'](_0x21d608['markerName']);return _0x4f1d3a&&_0x5b7a2d['push']('ck-suggestion-marker--active'),{'classes':_0x5b7a2d,'attributes':{'data-suggestion':_0x18be7f,'data-author-id':_0xba2239},'priority':_0x4f1d3a&&_0x37b4db?0xbc2:0xbb8};}_0x3ca6d3['on']('suggestionLoaded',_0x4b1f21,{'priority':'high'}),_0x3ca6d3['on']('suggestionUnloaded',_0x4b1f21,{'priority':'high'}),_0xabf898['model']['document']['registerPostFixer'](()=>{let _0x13127f=!0x1;const _0x41372e=Array['from'](_0xabf898['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4aad80,data:_0x4bf83e}of _0x41372e){const {group:_0x307958,type:_0x3455e6,id:_0x108567}=_0x3ca6d3['_splitMarkerName'](_0x4aad80);if('suggestion'!=_0x307958||'deletion'!=_0x3455e6||_0x4bf83e['oldRange'])continue;if(!_0x3ca6d3['hasSuggestion'](_0x108567))continue;const _0x4b61e8=_0x3ca6d3['getSuggestion'](_0x108567)['getRanges'](),_0x100cd0=_0xabf898['plugins']['get']('Users')['me'];for(const _0x4c53f0 of _0x3ca6d3['getSuggestions']()){if(!_0x4c53f0['isInContent']||_0x4c53f0['author']!=_0x100cd0)continue;if('formatBlock'!=_0x4c53f0['type']||'tablePasteCell'!=_0x4c53f0['subType'])continue;if(_0x4c53f0['getRanges']()['every'](_0x472e37=>_0x4b61e8['some'](_0x212d93=>_0x212d93['containsRange'](_0x472e37,!0x0)))){for(const _0x30e4d7 of _0x4c53f0['getAllAdjacentSuggestions']())_0x30e4d7['isInContent']&&(_0x30e4d7['discard'](),_0x13127f=!0x0);}}}return _0x13127f;}),_0xabf898['model']['document']['registerPostFixer'](_0xf5c18e=>{const _0x5b6883=_0xabf898['commands']['get']('redo');if(!_0x5b6883||!_0x5b6883['_createdBatches']['has'](_0xf5c18e['batch']))return!0x1;let _0x190f10=!0x1;const _0x54d49d=_0xabf898['plugins']['get']('Users')['me'],_0x68100a=_0xabf898['model']['document']['differ']['getChanges'](),_0x21d261=Array['from'](_0xabf898['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x26d9c1,data:_0x5fe12f})=>{const {group:_0xb0f11f,subType:_0xcef1aa,authorId:_0x22f725}=_0x3ca6d3['_splitMarkerName'](_0x26d9c1);return'suggestion'==_0xb0f11f&&'tablePaste'==_0xcef1aa&&_0x22f725==_0x54d49d['id']&&!_0x5fe12f['oldRange'];});for(const _0x25adc9 of _0x68100a){if('insert'!=_0x25adc9['type']||'tableCellSuggestion'!=_0x25adc9['name']||0x1!=_0x25adc9['length'])continue;const _0x115f7d=_0xf5c18e['createRange'](_0x25adc9['position'],_0x25adc9['position']['getShiftedBy'](0x1));if(!_0x21d261['find'](({data:_0x210bf0})=>_0x210bf0['newRange']['isEqual'](_0x115f7d))){for(const {name:_0x578f27,data:_0x216300}of _0x21d261)if(_0x115f7d['containsRange'](_0x216300['newRange'])){_0xf5c18e['updateMarker'](_0x578f27,{'range':_0x115f7d}),_0x190f10=!0x0;break;}}}return _0x190f10;}),_0xabf898['model']['document']['registerPostFixer'](_0x5d6f82=>{let _0x3a7e78=!0x1;const _0x15708e=_0xabf898['plugins']['get']('Users')['me'],_0x2ffb05=_0x3ca6d3['getSuggestions']()['filter'](_0x36a701=>_0x36a701['isInContent']&&_0x36a701['author']==_0x15708e),_0x31be56=new Set(),_0x54d425=new Set();for(const _0x238efc of _0x2ffb05)if('tablePaste'==_0x238efc['subType'])for(const _0x459874 of _0x238efc['getMarkers']()){const _0x483c33=_0x459874['getRange']()['getContainedElement']();if(_0x483c33){if(_0x483c33['is']('element','tableCellSuggestion')&&Oe(_0x483c33)){_0x238efc['removeMarker'](_0x459874['name']),_0x31be56['add'](_0x483c33),_0x3a7e78=!0x0;const _0x49f602=_0x483c33['nextSibling'],_0x38cd7b=_0x483c33['previousSibling'],_0x2a585d=_0x49f602&&_0x49f602['is']('element','tableCellSuggestion'),_0x2276f4=_0x38cd7b&&_0x38cd7b['is']('element','tableCellSuggestion');_0x2a585d&&!_0x31be56['has'](_0x49f602)&&_0x54d425['add'](_0x49f602),_0x2276f4&&!_0x31be56['has'](_0x38cd7b)&&_0x54d425['add'](_0x38cd7b);}else _0x483c33['is']('element','paragraph')&&_0x483c33['isEmpty']&&(_0x238efc['removeMarker'](_0x459874['name']),_0x3a7e78=!0x0);}}else{if('tablePasteCell'==_0x238efc['subType']){if(!_0x238efc['attributes']||!_0x238efc['attributes']['tablePasteChainId'])continue;const _0x3cc982=_0x238efc['attributes']['markerAttributes'];if(_0x3cc982&&Object['keys'](_0x3cc982)['length'])continue;const _0x35914c=_0x238efc['attributes']['tablePasteChainId'];let _0x1357fa=!0x0,_0x3952ed=!0x0;for(const _0x2821e6 of _0x2ffb05)if(_0x2821e6['subType']&&_0x2821e6['subType']['startsWith']('tablePaste')){if(!_0x2821e6['attributes']['tablePasteChainId']){_0x3952ed=!0x1;break;}if(_0x2821e6['id']!=_0x238efc['id']&&_0x2821e6['attributes']['tablePasteChainId']==_0x35914c){_0x1357fa=!0x1;break;}}_0x3952ed&&_0x1357fa&&(_0x238efc['removeMarkers'](),_0x3a7e78=!0x0);}}for(const _0x51bd2c of _0x31be56)_0x5d6f82['remove'](_0x51bd2c);for(const _0x45fe17 of _0x54d425)_0x5d6f82['unwrap'](_0x45fe17);return _0x3a7e78;}),_0xabf898['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x257747=>_0x54a9c2(_0x257747),'converterPriority':'high'}),_0xabf898['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x189aac,_0x5b36e9)=>_0x5b36e9['options']['showSuggestionHighlights']?_0x54a9c2(_0x189aac,!0x1):null,'converterPriority':'high'});const _0x154ea9=_0xabf898['editing']['view'];this['listenTo'](_0x154ea9['document'],'clipboardOutput',(_0x583cf3,_0x4b2c21)=>{const _0x43b6c0=[];for(const _0x2ebbb3 of _0x154ea9['createRangeIn'](_0x4b2c21['content'])['getItems']())_0x2ebbb3['is']('element','suggestion-td')&&_0x43b6c0['push'](_0x2ebbb3);_0x154ea9['change'](_0x37e9cb=>{for(const _0x5ac4d1 of _0x43b6c0)_0x37e9cb['move'](_0x37e9cb['createRangeIn'](_0x5ac4d1),_0x37e9cb['createPositionBefore'](_0x5ac4d1)),_0x37e9cb['remove'](_0x5ac4d1);});});}}function Oe(_0x2de881){if(_0x2de881['isEmpty'])return!0x0;const _0x2052b5=_0x2de881['getChild'](0x0);return _0x2052b5['is']('element','paragraph')&&_0x2052b5['isEmpty'];}function Ue(_0x2da9f4,_0x4a0f14={},_0x21b549){for(const {isAnchor:_0x1a26d2,cellHeight:_0x491a3b,cellWidth:_0x5cd6f7}of _0x21b549['createTableWalker'](_0x2da9f4,{'includeAllSlots':!0x0,..._0x4a0f14}))if(!_0x1a26d2||0x1!=_0x491a3b||0x1!=_0x5cd6f7)return!0x1;return!0x0;}class $t extends _0x334dcc{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x48bf59=this['editor']['plugins']['get']('TrackChangesEditing');_0x48bf59['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x48bf59['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x48bf59['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48bf59['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x48bf59['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x48bf59['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x454208,_0x3c51e4){const _0x41ebf0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ddad4=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x478651=_0x3c51e4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5ab6b5=_0x2ddad4['getColumnGroupElement'](_0x478651);let _0x440624=_0x5ab6b5?_0x2ddad4['getTableColumnsWidths'](_0x5ab6b5):null,_0x53271f=_0x478651['getAttribute']('tableWidth')||null;const _0x702888=_0x3c51e4['tableWidth']||_0x53271f,_0x327245=_0x3c51e4['columnWidths']||_0x440624,_0x2bb8b9=this['editor']['plugins']['get']('Users')['me'];for(const _0x24c77a of _0x41ebf0['getSuggestions']()){const _0x187e50=_0x24c77a['getContainedElement']();if('resizeTable'===_0x24c77a['subType']&&_0x187e50===_0x478651){_0x24c77a['author']!==_0x2bb8b9&&_0x24c77a['discard']();const _0x4cac08=_0x24c77a['data']['commandParams'];_0x53271f=_0x4cac08[0x0]['tableWidth'],_0x440624=_0x4cac08[0x0]['columnWidths'];break;}}_0x454208({'table':_0x478651,'tableWidth':_0x702888,'columnWidths':_0x327245}),_0x41ebf0['markBlockFormat'](_0x478651,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x53271f,'columnWidths':_0x440624}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x549bd2){if('formatBlock'!=_0x549bd2['type']&&'formatInline'!=_0x549bd2['type'])return;const {data:_0x36c32a}=_0x549bd2;if(_0x36c32a&&'resizeTable'===_0x36c32a['formatGroupId']){const _0x9197a6='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x9197a6)};}}}class Bt extends _0x334dcc{['afterInit'](){const _0x501eaa=this['editor'];_0x501eaa['plugins']['has']('Template')&&_0x501eaa['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x334dcc{['afterInit'](){const _0x157675=this['editor'];if(!_0x157675['commands']['get']('insertTableOfContents'))return;_0x157675['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x36fefa=_0x157675['plugins']['get']('TrackChangesEditing'),_0x776618=_0x157675['locale'];_0x36fefa['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2e4ec4=>o(_0x776618,'ELEMENT_TABLE_OF_CONTENTS',_0x2e4ec4));}}class Rt extends _0x334dcc{['afterInit'](){const _0x545889=this['editor'];if(!_0x545889['plugins']['has']('Title'))return;const _0x80a7a2=_0x545889['plugins']['get']('TrackChangesEditing');_0x80a7a2['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x545889['locale'],'ELEMENT_TITLE')),_0x545889['model']['document']['registerPostFixer'](_0x19145f=>{let _0x40b8f9=!0x1;const _0x593725=Array['from'](_0x545889['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ed198,data:_0x24f5a3}of _0x593725){const {group:_0x4130f7}=_0x80a7a2['_splitMarkerName'](_0x2ed198);if('suggestion'!==_0x4130f7||!_0x24f5a3['newRange'])continue;const _0x1863de=_0x24f5a3['newRange'],_0x2b97b1=_0x1863de['end']['nodeBefore'];if(!_0x2b97b1||!_0x2b97b1['is']('element','title-content'))continue;if(!_0x1863de['start']['isTouching'](_0x1863de['end']))continue;const _0x504341=_0x545889['model']['schema']['getNearestSelectionRange'](_0x1863de['end'],'forward');if(_0x504341&&_0x504341['isCollapsed']){const _0x1a730c=_0x19145f['createRange'](_0x1863de['start'],_0x504341['start']);_0x1a730c['isEqual'](_0x1863de)||(_0x19145f['updateMarker'](_0x2ed198,{'range':_0x1a730c}),_0x40b8f9=!0x0);}_0x40b8f9||(_0x19145f['removeMarker'](_0x2ed198),_0x40b8f9=!0x0);}return _0x40b8f9;});}}class Tt extends _0x334dcc{['afterInit'](){const _0x44e45a=this['editor'],_0x59c0ef=_0x44e45a['plugins']['get']('TrackChangesEditing');_0x44e45a['plugins']['has']('Uploadcare')&&(_0x59c0ef['enableCommand']('uploadcare'),_0x44e45a['plugins']['has']('UploadcareImageEdit')&&(_0x59c0ef['enableCommand']('uploadcareImageEdit'),_0x59c0ef['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x59c0ef['registerBlockAttribute']('uploadcareImageId'),_0x59c0ef['descriptionFactory']['registerDescriptionCallback'](_0x4925b5=>{if('attribute'!=_0x4925b5['type'])return;const {data:_0x1453ff}=_0x4925b5;return _0x1453ff&&'uploadcareImageId'==_0x1453ff['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x334dcc{['afterInit'](){const _0x5337c4=this['editor'],_0x58300c=_0x5337c4['plugins']['get']('TrackChangesEditing');_0x5337c4['plugins']['has']('UndoEditing')&&(_0x58300c['enableCommand']('undo'),_0x58300c['enableCommand']('redo'));}}class Et extends _0x334dcc{static get['requires'](){return[Ct];}['afterInit'](){const _0x2f6109=this['editor'];if(!_0x2f6109['plugins']['has']('TableCaptionEditing'))return;_0x2f6109['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x334dcc{['tableProperties'];['tableCellProperties'];constructor(_0x3ec000){super(_0x3ec000),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 _0x2983e4=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x422dc8 of this['tableProperties'])_0x2983e4['enableCommand'](_0x422dc8,(_0x1d5836,_0x21def7)=>{const _0x48c786=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x422dc8,[_0x48c786],this['tableProperties'],'tableProperties',_0x1d5836,_0x21def7);});_0x2983e4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2983e4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2983e4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x510999,_0x20cf03)=>this['handleDiscardAction'](this['tableProperties'],_0x510999,_0x20cf03)),_0x2983e4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4b435e of this['tableCellProperties'])_0x2983e4['enableCommand'](_0x4b435e,(_0x8496a7,_0x134d80)=>{const _0x201f48=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4b435e,_0x201f48,this['tableCellProperties'],'tableCellProperties',_0x8496a7,_0x134d80);});_0x2983e4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2983e4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2983e4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x58fdbe,_0x264c69)=>this['handleDiscardAction'](this['tableCellProperties'],_0x58fdbe,_0x264c69)),_0x2983e4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2983e4['descriptionFactory']['registerDescriptionCallback'](_0x1f69a5=>this['handleSuggestionDescription'](_0x1f69a5));}['_handlePropertyChange'](_0x1e421e,_0x4aa575,_0x2c8efa,_0x347ef6,_0x591f63,_0x55af2d){const _0x16fad9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x55af2d['batch'],()=>{for(const _0x18800a of _0x4aa575){if(this['_getSuggestion'](_0x18800a,_0x347ef6))_0x591f63(_0x55af2d);else{const _0x3dcc99={};for(const _0xcadf16 of _0x2c8efa){const _0x53bcc6=_0x18800a['getAttribute'](_0xcadf16);void 0x0!==_0x53bcc6&&(_0x3dcc99[_0xcadf16]=_0x53bcc6);}_0x591f63(_0x55af2d),_0x16fad9['markBlockFormat'](_0x18800a,{'commandParams':[_0x3dcc99]},[],_0x347ef6);}}});}['handleDiscardAction'](_0x5dd11b,_0x365da8,_0x725bc5){const _0x19622b=_0x365da8[0x0]['start']['nodeAfter'],_0x4eb772=_0x725bc5['commandParams'][0x0];this['editor']['model']['change'](_0x523462=>{for(const _0x1c6989 of _0x5dd11b)void 0x0!==_0x4eb772[_0x1c6989]?_0x523462['setAttribute'](_0x1c6989,_0x4eb772[_0x1c6989],_0x19622b):_0x523462['removeAttribute'](_0x1c6989,_0x19622b);});}['handleSuggestionDescription'](_0x1a4659){if(_0x1a4659['data'])switch(_0x1a4659['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'](_0x36d9d9,_0x59d128){const _0x2a5512=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x336017 of _0x2a5512['getSuggestions']({'skipNotAttached':!0x0})){const _0x546d5f=_0x336017['getContainedElement']();if(_0x336017['subType']===_0x59d128&&_0x546d5f===_0x36d9d9)return _0x336017;}return null;}}const m='$elementName';class p extends _0x334dcc{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x56e9d7,_0x44d761,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb8b4b6){super(_0xb8b4b6),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x56bdb0,_0x245202,_0x2098d5,_0x4f9c79)=>{this['_model']['change'](()=>{for(const _0x2257fc of[..._0x4f9c79,..._0x2098d5])this['_model']['markers']['has'](_0x2257fc)&&_0xb8b4b6['editing']['reconvertMarker'](_0x2257fc);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xb8b4b6['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0xb8b4b6['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xb8b4b6['config']['get']('trackChanges.trackFormatChanges'),_0xb8b4b6['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xb8b4b6['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xb8b4b6,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4ef697=this['editor'],_0x305d42=(_0x19ce8e,_0x5b0959)=>{if('attribute'!=_0x19ce8e)return'ck-suggestion-marker-'+_0x19ce8e;const _0x5b8542=_0x5b0959['split']('|')[0x0];return this['_isBlockAttribute'](_0x5b8542)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4ef697['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2cc4c1=>{const {id:_0x5f3e61,authorId:_0x551b35,type:_0x10a53d,subType:_0x1e1d05}=this['_splitMarkerName'](_0x2cc4c1['markerName']),_0x9f3b1=['ck-suggestion-marker',_0x305d42(_0x10a53d,_0x1e1d05)];let _0x5ee2a5=0xbb8;return this['activeMarkers']['includes'](_0x2cc4c1['markerName'])&&(_0x9f3b1['push']('ck-suggestion-marker--active'),_0x5ee2a5=0xbc2),'deletion'==_0x10a53d&&(_0x5ee2a5+=0x5),{'classes':_0x9f3b1,'attributes':{'data-suggestion':_0x5f3e61,'data-author-id':_0x551b35},'priority':_0x5ee2a5};}}),_0x4ef697['conversion']['for']('dataDowncast')['add'](_0x4de393=>{_0x4de393['on']('addMarker:suggestion',(_0x4f36f7,_0x5a579f,_0x59245e)=>{if(!_0x59245e['options']['showSuggestionHighlights'])return;const _0x56ef34=_0x5a579f['item'];if(!_0x56ef34)return;const _0x1d0112=_0x59245e['mapper']['toViewElement'](_0x56ef34);_0x4ef697['model']['schema']['isObject'](_0x56ef34)&&_0x1d0112&&!_0x1d0112['getCustomProperty']('widget')&&_0x1d0112['is']('containerElement')&&_0x36976d(_0x1d0112,_0x59245e['writer']);},{'priority':'high'});}),_0x4ef697['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xb66fdd,_0xa9dc5c)=>{if(!_0xa9dc5c['options']['showSuggestionHighlights'])return null;const {type:_0x5e874b,subType:_0x49e09b}=this['_splitMarkerName'](_0xb66fdd['markerName']);return{'classes':['ck-suggestion-marker',_0x305d42(_0x5e874b,_0x49e09b)],'priority':0xbb8};}});const _0x41c69c=({showActiveMarkers:_0x517100=!0x0,isAttributeSuggestion:_0x499c99=!0x1}={})=>(_0x1b7633,_0x23e6fb,_0xcb7b3e)=>{if(!_0x23e6fb['item'])return;const {id:_0x3f1979,authorId:_0x6f1971}=this['_splitMarkerName'](_0x23e6fb['markerName']);if(_0x499c99){const _0x4f36a4=this['_suggestions']['get'](_0x3f1979),_0x138a9d=this['_getAttributeKey'](_0x4f36a4);if(!this['_isBlockAttribute'](_0x138a9d))return;}if(_0x23e6fb['item']['is']('selection'))return void _0xcb7b3e['consumable']['consume'](_0x23e6fb['item'],_0x1b7633['name']);const _0x345c8a=_0xcb7b3e['mapper']['toViewElement'](_0x23e6fb['item']);if(_0x23e6fb['item']['is']('element')&&_0x4ef697['model']['schema']['isBlock'](_0x23e6fb['item'])&&!_0x345c8a['getCustomProperty']('addHighlight')){_0xcb7b3e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x345c8a),_0xcb7b3e['writer']['setAttribute']('data-suggestion',_0x3f1979,_0x345c8a),_0xcb7b3e['writer']['setAttribute']('data-author-id',_0x6f1971,_0x345c8a),_0xcb7b3e['mapper']['bindElementToMarker'](_0x345c8a,_0x23e6fb['markerName']),_0x517100&&(this['activeMarkers']['includes'](_0x23e6fb['markerName'])?_0xcb7b3e['writer']['addClass']('ck-suggestion-marker--active',_0x345c8a):_0xcb7b3e['writer']['removeClass']('ck-suggestion-marker--active',_0x345c8a));for(const _0x23f414 of _0x4ef697['model']['createRangeIn'](_0x23e6fb['item'])['getItems']())_0xcb7b3e['consumable']['consume'](_0x23f414,_0x1b7633['name']);_0xcb7b3e['consumable']['consume'](_0x23e6fb['item'],_0x1b7633['name']);}};_0x4ef697['conversion']['for']('dataDowncast')['add'](_0x244b87=>{_0x244b87['on']('addMarker:suggestion:formatBlock',(_0x4bb09b,_0x191cfb,_0x462b8c)=>{_0x462b8c['options']['showSuggestionHighlights']&&_0x41c69c({'showActiveMarkers':!0x1})(_0x4bb09b,_0x191cfb,_0x462b8c);},{'priority':'highest'});}),_0x4ef697['conversion']['for']('dataDowncast')['add'](_0x5dcc13=>{_0x5dcc13['on']('addMarker:suggestion:attribute',(_0x43a856,_0x513788,_0x28f2ad)=>{_0x28f2ad['options']['showSuggestionHighlights']&&_0x41c69c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x43a856,_0x513788,_0x28f2ad);},{'priority':'highest'});}),_0x4ef697['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x131a21,_0x1f0a2a)=>_0x1f0a2a['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x131a21['substr'](0xb)}}),_0x4ef697['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x52e0fd,{writer:_0x5771c})=>{let _0x5e67d1='suggestion:'+_0x52e0fd['getAttribute']('suggestion-type')+':'+_0x52e0fd['getAttribute']('id');return _0x52e0fd['getAttribute']('marker-count')&&(_0x5e67d1+=':'+_0x52e0fd['getAttribute']('marker-count')),_0x5771c['createElement']('$marker',{'data-name':_0x5e67d1});}}),_0x4ef697['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4ef697['conversion']['for']('editingDowncast')['add'](_0x4ddb8f=>{_0x4ddb8f['on']('addMarker:suggestion:formatBlock',_0x41c69c(),{'priority':'high'});}),_0x4ef697['conversion']['for']('editingDowncast')['add'](_0x4a1a01=>{_0x4a1a01['on']('addMarker:suggestion:attribute',_0x41c69c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4ef697['conversion']['for']('editingDowncast')['add'](_0x330f85=>{_0x330f85['on']('removeMarker:suggestion:formatBlock',(_0x686241,_0x4baf40,_0x382718)=>{const _0x548a77=_0x382718['mapper']['markerNameToElements'](_0x4baf40['markerName']);if(_0x548a77){for(const _0x5365e6 of _0x548a77)_0x5365e6['getCustomProperty']('addHighlight')||(_0x382718['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5365e6),_0x382718['writer']['removeAttribute']('data-suggestion',_0x5365e6),_0x382718['writer']['removeAttribute']('data-author-id',_0x5365e6),_0x382718['mapper']['unbindElementFromMarkerName'](_0x5365e6,_0x4baf40['markerName']));}},{'priority':'high'});}),_0x4ef697['conversion']['for']('editingDowncast')['add'](_0x41c9b4=>{_0x41c9b4['on']('removeMarker:suggestion:attribute',(_0x18eddd,_0x59fedf,_0x576efe)=>{const _0x5b1172=_0x576efe['mapper']['markerNameToElements'](_0x59fedf['markerName']);if(!_0x5b1172)return;const {id:_0x33aaca}=this['_splitMarkerName'](_0x59fedf['markerName']),_0x505b2a=this['_suggestions']['get'](_0x33aaca),_0x2038cf=this['_getAttributeKey'](_0x505b2a);if(this['_isBlockAttribute'](_0x2038cf)){for(const _0x58f8fc of _0x5b1172)_0x58f8fc['getCustomProperty']('addHighlight')||(_0x576efe['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x58f8fc),_0x576efe['writer']['removeAttribute']('data-suggestion',_0x58f8fc),_0x576efe['writer']['removeAttribute']('data-author-id',_0x58f8fc),_0x576efe['mapper']['unbindElementFromMarkerName'](_0x58f8fc,_0x59fedf['markerName']));}},{'priority':'high'});}),_0x4ef697['model']['document']['registerPostFixer'](_0x81c52e=>{let _0x1e2a45=!0x1;const _0x4501e9=Array['from'](_0x4ef697['model']['document']['differ']['getChangedMarkers']()),_0x48198f=new Set();for(const {name:_0x38076b,data:_0x2d5c67}of _0x4501e9){const {group:_0x36ee7c,type:_0x41e7a0,subType:_0x324c02,id:_0x3b2b1a}=this['_splitMarkerName'](_0x38076b);if('suggestion'!==_0x36ee7c)continue;const _0x223f40=this['_suggestions']['get'](_0x3b2b1a);if(null!=_0x2d5c67['newRange']){'formatInline'==_0x41e7a0&&(_0x1e2a45=_0x1e2a45||Lt(_0x2d5c67['newRange'],_0x38076b,_0x81c52e,_0x4ef697['model']['schema']));const _0x5d90d8='attribute'==_0x41e7a0&&this['_isBlockAttribute'](_0x324c02['split']('|')[0x0]);if(_0x2d5c67['newRange']['isCollapsed']||'$graveyard'==_0x2d5c67['newRange']['root']['rootName']||'formatBlock'==_0x41e7a0&&!Ht(_0x2d5c67['newRange'])||_0x5d90d8&&!Ht(_0x2d5c67['newRange'])||'deletion'==_0x41e7a0&&!(!Ft(_0x2725d1=_0x2d5c67['newRange'])&&!function(_0x445401){return _0x445401['start']['parent']==_0x445401['end']['nodeBefore']&&_0x445401['start']['isAtEnd'];}(_0x2725d1)))_0x81c52e['removeMarker'](_0x38076b),_0x1e2a45=!0x0;else{if(!_0x223f40||!_0x223f40['isInContent'])continue;if(_0x2d5c67['newRange']&&_0x2d5c67['oldRange']&&_0x2d5c67['newRange']['isEqual'](_0x2d5c67['oldRange']))continue;_0x48198f['add'](_0x223f40);}}}var _0x2725d1;return _0x48198f['size']>0x0&&(_0x1e2a45=!!this['_joinWithAdjacentSuggestions'](_0x48198f)||_0x1e2a45),_0x1e2a45;}),_0x4ef697['model']['document']['registerPostFixer'](_0x5f26cc=>{let _0x2dfd9f=!0x1;for(const _0x53813e of _0x4ef697['model']['document']['differ']['getChanges']())if('insert'==_0x53813e['type'])for(const _0x283941 of this['_suggestions']['values']()){if(_0x283941['isMultiRange']||!_0x283941['isInContent'])continue;const _0x1ebbdb='formatBlock'==_0x283941['type'],_0x30e6b2=this['_getAttributeKey'](_0x283941),_0x1ba13e=_0x30e6b2&&this['_isBlockAttribute'](_0x30e6b2);if(!_0x1ebbdb&&!_0x1ba13e)continue;const _0x5dcb5b=_0x283941['getFirstRange']();if(_0x5dcb5b['start']['parent']!=_0x5dcb5b['end']['parent']&&!_0x5dcb5b['end']['isAtEnd']){const _0x2f4e27=_0x4ef697['model']['createPositionAt'](_0x5dcb5b['start']['nodeAfter'],'end'),_0x89bb35=_0x4ef697['model']['createRange'](_0x5dcb5b['start'],_0x2f4e27);_0x5f26cc['updateMarker'](_0x283941['getFirstMarker'](),{'range':_0x89bb35}),_0x2dfd9f=!0x0;}}return _0x2dfd9f;}),_0x4ef697['model']['document']['registerPostFixer'](_0x167b5d=>this['_processAttributeChanges'](_0x167b5d)),_0x4ef697['model']['document']['registerPostFixer'](_0x56143d=>!_0x56143d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x56143d)),_0x4ef697['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4ef697['model']['document']['on']('change:data',(_0x3eae49,_0x3de917)=>{if(!_0x3de917['isLocal']||_0x3de917['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x15de8b=_0x4ef697['model']['document']['differ']['getChanges']();if(0x0==_0x15de8b['length'])return;const _0x3a5884=[],_0xd49996=_0x15de8b['filter'](_0x5506df=>'attribute'==_0x5506df['type']),_0x5b475d=_0x15de8b['filter'](_0x24207a=>'insert'==_0x24207a['type']&&'$text'!=_0x24207a['name']);for(const _0x662c66 of _0xd49996)this['_isRegisteredAttribute'](_0x662c66['attributeKey'])&&_0x3a5884['push']({'key':_0x662c66['attributeKey'],'newValue':_0x662c66['attributeNewValue'],'oldValue':_0x662c66['attributeOldValue'],'range':qt(_0x662c66['range'],_0x4ef697['model'])});for(const _0x1c4e5 of _0x5b475d){if('rename'!=_0x1c4e5['action']&&'refresh'!=_0x1c4e5['action'])continue;const _0x16f680=zt(_0x1c4e5['position']['nodeAfter'],_0x4ef697['model']),_0x327c28=_0x1c4e5['before'];'rename'==_0x1c4e5['action']&&_0x3a5884['push']({'key':m,'newValue':_0x1c4e5['name'],'oldValue':_0x327c28['name'],'range':_0x16f680});for(const [_0x419b46,_0x132981]of _0x327c28['attributes']){if(!this['_isRegisteredAttribute'](_0x419b46))continue;const _0xf37c2b=_0x1c4e5['attributes']['get'](_0x419b46);_0x132981!==_0xf37c2b&&_0x3a5884['push']({'key':_0x419b46,'newValue':_0xf37c2b,'oldValue':_0x132981,'range':_0x16f680});}for(const [_0x86d4c4,_0x11eb5c]of _0x1c4e5['attributes'])this['_isRegisteredAttribute'](_0x86d4c4)&&(_0x327c28['attributes']['has'](_0x86d4c4)||_0x3a5884['push']({'key':_0x86d4c4,'newValue':_0x11eb5c,'oldValue':null,'range':_0x16f680}));}0x0!=_0x3a5884['length']&&_0x4ef697['model']['enqueueChange'](_0x3de917,_0x2927ab=>{const _0x4e0b61=_0x493eac();for(const {range:_0x23dbb5,key:_0x350465,oldValue:_0x1021f9,newValue:_0x49b1b1}of _0x3a5884)this['markAttributeChange'](_0x23dbb5,_0x350465,_0x1021f9,_0x49b1b1,{'groupId':_0x4e0b61});this['_reduceExistingSuggestions'](_0x2927ab,_0x3a5884);});},{'priority':'lowest'}),_0x4ef697['model']['markers']['on']('update:suggestion',(_0x4bbe64,_0x4585e9,_0x1bfec7)=>{if(null==_0x1bfec7){const {id:_0x446056}=this['_splitMarkerName'](_0x4585e9['name']),_0x549224=this['_suggestions']['get'](_0x446056);_0x549224&&_0x549224['addMarkerName'](_0x4585e9['name']);}}),_0x4ef697['model']['document']['on']('change:data',()=>{const _0x1ff80e=Array['from'](_0x4ef697['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3236e3=>'suggestion'===this['_splitMarkerName'](_0x3236e3['name'])['group']);if(0x0===_0x1ff80e['length'])return;_0x1ff80e['sort']((_0x1aa715,_0xcd78b7)=>{const _0x1aaac4=_0x1aa715['data']['oldRange'],_0x35d32d=_0xcd78b7['data']['oldRange'];return null===_0x1aaac4&&null===_0x35d32d?0x0:null===_0x1aaac4&&null!==_0x35d32d?-0x1:null!==_0x1aaac4&&null===_0x35d32d?0x1:_0x1aaac4['start']['isBefore'](_0x35d32d['start'])?-0x1:0x1;});const _0x4ecfaf=new Set(),_0x50a8cf=new Set();for(const {name:_0x586241,data:_0x4e9181}of _0x1ff80e){const {id:_0x107bbd}=this['_splitMarkerName'](_0x586241);if(null===_0x4e9181['oldRange']){const _0x4a1cc8=this['_handleNewSuggestionMarker'](_0x586241);_0x50a8cf['add'](_0x4a1cc8);}else{const _0x561e4c=this['_suggestions']['get'](_0x107bbd);null!==_0x4e9181['newRange']||_0x561e4c['isInContent']?(_0x4ecfaf['add'](_0x561e4c['head']),_0x50a8cf['add'](_0x561e4c)):this['_removeSuggestion'](_0x561e4c);}}_0x50a8cf['size']>0x0&&this['_refreshSuggestionsChain'](_0x50a8cf);for(const _0x1eb821 of _0x4ecfaf)this['fire']('suggestionChanged',_0x1eb821);}),_0x4ef697['model']['on']('applyOperation',(_0x523761,_0x2b2730)=>{const _0x26bc14=_0x2b2730[0x0];if(!this['_suggestions']['size'])return;if(!_0x26bc14['isDocumentOperation'])return;if(_0x26bc14['batch']['isUndo']||!_0x26bc14['batch']['isLocal'])return;let _0x23da6e,_0x223456;switch(_0x26bc14['type']){case'insert':_0x23da6e=_0x4ef697['model']['createPositionAt'](_0x26bc14['position']),_0x223456=_0x23da6e['getShiftedBy'](_0x26bc14['howMany']);break;case'split':_0x23da6e=_0x4ef697['model']['createPositionAt'](_0x26bc14['splitPosition']),_0x223456=_0x4ef697['model']['createPositionAt'](_0x26bc14['moveTargetPosition']);break;case'move':_0x23da6e=_0x4ef697['model']['createPositionAt'](_0x26bc14['targetPosition']),_0x223456=_0x23da6e['getShiftedBy'](_0x26bc14['howMany']);break;default:return;}const _0x51416a=_0x4ef697['model']['createRange'](_0x23da6e,_0x223456);_0x4ef697['model']['change'](()=>{for(const {suggestion:_0x41d3b8,meta:_0xa5bcd2}of this['_findSuggestions'](_0x51416a)){if(_0x41d3b8['isMultiRange'])continue;if('formatInline'==_0x41d3b8['type'])continue;const _0x4eedb6=this['_getAttributeKey'](_0x41d3b8);if(_0x4eedb6&&this['_isBlockAttribute'](_0x4eedb6)&&'split'!=_0x26bc14['type'])continue;const _0xaad719=_0x41d3b8['data']&&_0x41d3b8['data']['multipleBlocks'];('formatBlock'!=_0x41d3b8['type']||'split'==_0x26bc14['type']&&!_0xaad719)&&(_0xa5bcd2['containsRangeInObject']||'insertion'==_0x41d3b8['type']&&_0xa5bcd2['isOwn']||_0x41d3b8['getFirstRange']()['containsRange'](_0x51416a)&&this['_breakSuggestionMarker'](_0x41d3b8,_0x23da6e,_0x223456));}});},{'priority':'lowest'}),_0x4ef697['model']['on']('deleteContent',(_0x529cb5,_0x58527c)=>{const _0x37f5d8=_0x58527c[0x0],_0x2cb68a=_0x58527c[0x1];if(_0x2cb68a&&_0x2cb68a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x37f5d8['isCollapsed'])return;const _0x46cfb0=_0x4ef697['model']['schema'],{start:_0x510193,end:_0x43451b}=_0x37f5d8['getFirstRange'](),_0x2851c1=_0x510193['nodeAfter']&&_0x46cfb0['isLimit'](_0x510193['nodeAfter'])?null:_0x46cfb0['getNearestSelectionRange'](_0x510193,'forward'),_0x51418c=_0x43451b['nodeBefore']&&_0x46cfb0['isLimit'](_0x43451b['nodeBefore'])?null:_0x46cfb0['getNearestSelectionRange'](_0x43451b,'backward'),_0x39bfcb=_0x4ef697['model']['createRange'](_0x2851c1?_0x2851c1['start']:_0x510193,_0x51418c?_0x51418c['end']:_0x43451b);_0x4ef697['model']['change'](_0x954696=>{this['markDeletion'](_0x39bfcb);const _0x35908e=_0x4ef697['model']['schema']['getNearestSelectionRange'](_0x39bfcb['start']);_0x37f5d8['is']('documentSelection')?_0x954696['setSelection'](_0x35908e):_0x37f5d8['setTo'](_0x35908e);}),_0x529cb5['stop']();},{'priority':_0x53a02d['normal']+0xa}),_0x4ef697['model']['on']('insertContent',(_0x51ea8e,_0x3f7f8e)=>{const _0x29d9d1=_0x3f7f8e[_0x3f7f8e['length']-0x1];_0x29d9d1&&_0x29d9d1['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4ef697['model']['change'](()=>{let _0x8b86b7=_0x4ef697['model']['insertContent'](_0x3f7f8e[0x0],_0x3f7f8e[0x1],_0x3f7f8e[0x2],{'forceDefaultExecution':!0x0});if(!_0x8b86b7)return;_0x51ea8e['return']=_0x8b86b7['clone']();const _0x4d5a9d=_0x8b86b7['end']['nodeBefore'],_0x164634=_0x4ef697['model']['schema'];_0x4d5a9d&&_0x164634['isBlock'](_0x4d5a9d)&&!_0x164634['isObject'](_0x4d5a9d)&&(_0x8b86b7=_0x4ef697['model']['createRange'](_0x8b86b7['start'],_0x4ef697['model']['createPositionAt'](_0x4d5a9d,'end'))),this['markInsertion'](_0x8b86b7);}),_0x51ea8e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x41bf6e=new O(_0x4ef697,this['_suggestions']);_0x4ef697['commands']['add']('acceptSuggestion',_0x41bf6e),this['enableCommand']('acceptSuggestion');const _0x202916=new R(_0x4ef697,this['_suggestions']);_0x4ef697['commands']['add']('discardSuggestion',_0x202916),this['enableCommand']('discardSuggestion'),_0x4ef697['commands']['add']('acceptAllSuggestions',new x(_0x4ef697,_0x41bf6e,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4ef697['commands']['add']('discardAllSuggestions',new x(_0x4ef697,_0x202916,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4ef697['commands']['add']('acceptSelectedSuggestions',new E(_0x4ef697,_0x41bf6e,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4ef697['commands']['add']('discardSelectedSuggestions',new E(_0x4ef697,_0x202916,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x313ab0=_0x4ef697['plugins']['get']('CommentsRepository');this['listenTo'](_0x313ab0,'addComment',(_0x33f162,{threadId:_0x497bf6})=>{const _0x4bbae5=this['_suggestions']['get'](_0x497bf6);_0x4bbae5&&_0x4bbae5['commentThread']&&0x1===_0x4bbae5['commentThread']['length']&&this['_updateSuggestionData'](_0x497bf6,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x313ab0,'removeComment',(_0x2a54d6,{threadId:_0x16ba90})=>{const _0x3a670a=this['_suggestions']['get'](_0x16ba90);_0x3a670a&&_0x3a670a['commentThread']&&!_0x3a670a['commentThread']['length']&&this['_updateSuggestionData'](_0x16ba90,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x17a9cd){const _0x5d3171=_0x13409e([0x69,0x38,0x59,0x4c,0x72,0x53,0x6b,0x78,0x68,0x70,0x48,0x34,0x64,0x49,0x61,0x43,0x77,0x45,0x46,0x47,0x67,0x31,0x79,0x4d,0x63,0x32,0x37,0x42,0x4b,0x33,0x75,0x51,0x56,0x35,0x76,0x57,0x39,0x4e,0x62,0x7a,0x55,0x44,0x50,0x36,0x6e,0x58,0x4a,0x4f,0x6d,0x65,0x52,0x71,0x41,0x5a,0x30,0x6c,0x6a,0x54,0x74,0x73,0x6f,0x66]),_0x4d4ea4=0x640acc5a,_0x5d0884=0x640d935a^_0x4d4ea4,_0x5993ec=window[_0x13409e([0x44,0x61,0x74,0x65])][_0x13409e([0x6e,0x6f,0x77])](),_0x26191e=_0x17a9cd[_0x13409e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x165435=new window[(_0x13409e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1dffa9=>{_0x26191e[_0x13409e([0x6f,0x6e,0x63,0x65])](_0x13409e([0x72,0x65,0x61,0x64,0x79]),_0x1dffa9);}),_0x542b71={[_0x13409e([0x6b,0x74,0x79])]:_0x13409e([0x45,0x43]),[_0x13409e([0x75,0x73,0x65])]:_0x13409e([0x73,0x69,0x67]),[_0x13409e([0x63,0x72,0x76])]:_0x13409e([0x50,0x2d,0x32,0x35,0x36]),[_0x13409e([0x78])]:_0x13409e([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]),[_0x13409e([0x79])]:_0x13409e([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]),[_0x13409e([0x61,0x6c,0x67])]:_0x13409e([0x45,0x53,0x32,0x35,0x36])},_0x31d801=_0x26191e[_0x13409e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x13409e([0x67,0x65,0x74])](_0x13409e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x120d21(){let _0x1cd422,_0x2a8422=null,_0x12f450=null;try{if(_0x31d801==_0x13409e([0x47,0x50,0x4c]))return _0x13409e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1cd422=_0x16e2f4(),!_0x1cd422)return _0x13409e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1cd422[_0x13409e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x12f450=_0xd56504(_0x1cd422[_0x13409e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1cd422[_0x13409e([0x6a,0x74,0x69])])),await _0x6d4076()?_0x223f4a()?_0x45e9a6()?_0x13409e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1d13e1()?(_0x1cd422[_0x13409e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13409e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2a8422=_0x5ed282(_0x13409e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1cd422[_0x13409e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13409e([0x74,0x72,0x69,0x61,0x6c])&&(_0x2a8422=_0x5ed282(_0x13409e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1da6c5()):_0x13409e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x13409e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x13409e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x44b811){return _0x13409e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x45e9a6(){const _0x345e62=[_0x13409e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x13409e([0x74,0x72,0x69,0x61,0x6c])][_0x13409e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cd422[_0x13409e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5993ec/0x3e8:0xe10*_0x5d0884;return _0x1cd422[_0x13409e([0x65,0x78,0x70])]<_0x345e62;}function _0x223f4a(){const _0x46143d=_0x1cd422[_0x13409e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x46143d)return!0x1;if(_0x46143d[_0x13409e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13409e([0x2a])))return!0x0;if(_0x46143d[_0x13409e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13409e([0x54,0x43])))return!0x0;if(_0x46143d[_0x13409e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13409e([0x52,0x54,0x43]))){if(_0x53650e())return!0x0;if(_0x5946d8()||_0x2a97b8())return!0x0;}return!0x1;}function _0x1d13e1(){const _0x4b96c7=_0x1cd422[_0x13409e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4b96c7||0x0==_0x4b96c7[_0x13409e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa04cc9}=new URL(window[_0x13409e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4b96c7[_0x13409e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa04cc9))return!0x0;const _0x1c2475=_0xa04cc9[_0x13409e([0x73,0x70,0x6c,0x69,0x74])](_0x13409e([0x2e]));return _0x4b96c7[_0x13409e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f2573=>_0x3f2573[_0x13409e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13409e([0x2a])))[_0x13409e([0x6d,0x61,0x70])](_0x4da4c8=>_0x4da4c8[_0x13409e([0x73,0x70,0x6c,0x69,0x74])](_0x13409e([0x2e])))[_0x13409e([0x73,0x6f,0x6d,0x65])](_0x45cb02=>_0x1c2475[_0x13409e([0x65,0x76,0x65,0x72,0x79])]((_0x3df143,_0x339f52)=>_0x45cb02[_0x339f52]===_0x3df143||_0x45cb02[_0x339f52]===_0x13409e([0x2a])));}function _0x1da6c5(){return _0x2a8422&&_0x12f450?new window[(_0x13409e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10376b,_0x403764)=>{_0x2a8422[_0x13409e([0x74,0x68,0x65,0x6e])](_0x10376b,_0x403764),_0x12f450[_0x13409e([0x74,0x68,0x65,0x6e])](_0x471795=>{_0x471795!=_0x13409e([0x56,0x61,0x6c,0x69,0x64])&&_0x10376b(_0x471795);},_0x403764);}):_0x2a8422||_0x12f450||_0x13409e([0x56,0x61,0x6c,0x69,0x64]);}}function _0xd56504(_0x270a8e,_0x2d5bac){return new window[(_0x13409e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x76c114=>{if(_0x476466())return _0x76c114(_0x13409e([0x56,0x61,0x6c,0x69,0x64]));_0x2849a8(),_0x26191e[_0x13409e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x13409e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x41433e=!0x1;const _0x543cbb=_0x493eac();function _0x2139fb(_0x9a9982){return!!_0x9a9982&&(typeof _0x9a9982===_0x13409e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x9a9982===_0x13409e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x9a9982[_0x13409e([0x74,0x68,0x65,0x6e])]===_0x13409e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x9a9982[_0x13409e([0x63,0x61,0x74,0x63,0x68])]===_0x13409e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x34f715(_0x4c6fe9){_0x369b44(_0x4c6fe9)[_0x13409e([0x74,0x68,0x65,0x6e])](_0x19fb8c=>{if(!_0x19fb8c||_0x19fb8c[_0x13409e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x13409e([0x6f,0x6b]))return _0x13409e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xadcc47(_0x2200c9(_0x543cbb+_0x2d5bac))!=_0x19fb8c[_0x13409e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x13409e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x13409e([0x56,0x61,0x6c,0x69,0x64]);})[_0x13409e([0x74,0x68,0x65,0x6e])](_0x2395f2=>(_0x16d442(),_0x2395f2),()=>{const _0x52da22=_0xd5cff8();return null==_0x52da22?(_0x16d442(),_0x13409e([0x56,0x61,0x6c,0x69,0x64])):_0x13409e(_0x5993ec-_0x52da22>(0x4006485a^_0x4d4ea4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x13409e([0x74,0x68,0x65,0x6e])](_0x76c114)[_0x13409e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x76c114(_0x13409e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x357354=0x643c22da^_0x4d4ea4;function _0x16d442(){const _0x365193=_0x13409e([0x6c,0x6c,0x63,0x74,0x2d])+_0xadcc47(_0x2200c9(_0x270a8e)),_0x3da419=_0xd2c608(_0xadcc47(window[_0x13409e([0x4d,0x61,0x74,0x68])][_0x13409e([0x63,0x65,0x69,0x6c])](_0x5993ec/_0x357354)));window[_0x13409e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13409e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x365193,_0x3da419);}function _0xd5cff8(){const _0x2b9d14=_0x13409e([0x6c,0x6c,0x63,0x74,0x2d])+_0xadcc47(_0x2200c9(_0x270a8e)),_0x15dfb8=window[_0x13409e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13409e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b9d14);return _0x15dfb8?window[_0x13409e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd2c608(_0x15dfb8),0x10)*_0x357354:null;}function _0x369b44(_0x387e19){return new window[(_0x13409e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4deedf,_0x56c536)=>{_0x387e19[_0x13409e([0x74,0x68,0x65,0x6e])](_0x4deedf,_0x56c536),window[_0x13409e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x56c536,0x640b189a^_0x4d4ea4);});}}_0x26191e[_0x13409e([0x6f,0x6e])](_0x13409e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x10d31b,_0x58749a)=>{if(_0x58749a[0x0]!=_0x270a8e)return _0x76c114(_0x13409e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x58749a[0x1]={..._0x58749a[0x1],[_0x13409e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x543cbb};},{[_0x13409e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13409e([0x68,0x69,0x67,0x68])}),_0x26191e[_0x13409e([0x6f,0x6e])](_0x13409e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2d0489=>{_0x2139fb(_0x2d0489[_0x13409e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x41433e=!0x0,_0x34f715(_0x2d0489[_0x13409e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x13409e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13409e([0x6c,0x6f,0x77])}),_0x165435[_0x13409e([0x74,0x68,0x65,0x6e])](()=>{_0x41433e||_0x76c114(_0x13409e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x476466(){return _0x26191e[_0x13409e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13409e([0x76,0x69,0x65,0x77])][_0x13409e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x13409e([0x61,0x75,0x74,0x6f]);}function _0x2849a8(){_0x26191e[_0x13409e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13409e([0x76,0x69,0x65,0x77])][_0x13409e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13409e([0x61,0x75,0x74,0x6f]);}}function _0x5ed282(_0x225342){const _0x2acffe=[new window[(_0x13409e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36456a=>setTimeout(_0x36456a,0x6403f296^_0x4d4ea4)),_0x165435[_0x13409e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x13409e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x83bb52=>{let _0x599342=0x0;_0x26191e[_0x13409e([0x6d,0x6f,0x64,0x65,0x6c])][_0x13409e([0x6f,0x6e])](_0x13409e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x195a41,_0x360625)=>{_0x360625[0x0][_0x13409e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x599342++,_0x599342==(0x640acda2^_0x4d4ea4)&&(_0x83bb52(),_0x195a41[_0x13409e([0x6f,0x66,0x66])]());});}))];return window[_0x13409e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13409e([0x72,0x61,0x63,0x65])](_0x2acffe)[_0x13409e([0x74,0x68,0x65,0x6e])](()=>_0x225342);}async function _0x4eb343(){await _0x165435,_0x26191e[_0x13409e([0x6d,0x6f,0x64,0x65,0x6c])][_0x13409e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x489bba,_0x26191e[_0x13409e([0x6d,0x6f,0x64,0x65,0x6c])][_0x13409e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x489bba,_0x26191e[_0x13409e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x13409e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x53650e(){return _0x433354(_0x13409e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xcd57c6(_0x13409e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x13409e([0x73,0x74,0x61,0x74,0x65])]==_0x13409e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5946d8(){return _0x433354(_0x13409e([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 _0x2a97b8(){return _0x433354(_0x13409e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2f38f4(_0x4469a3){const _0x549ecb=_0x309d19();_0x26191e[_0x549ecb]=_0x13409e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4469a3,_0x4469a3!=_0x13409e([0x56,0x61,0x6c,0x69,0x64])&&_0x4eb343();}function _0x309d19(){const _0x560e50=window[_0x13409e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x13409e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x13409e([0x6e,0x6f,0x77])]())[_0x13409e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x13409e([0x2e]),'');let _0x27319d=_0x13409e([0x69]);for(let _0x44b6d8=0x0;_0x44b6d8<_0x560e50[_0x13409e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44b6d8+=0x2){let _0x2984df=window[_0x13409e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x560e50[_0x13409e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44b6d8,_0x44b6d8+0x2));_0x2984df>=_0x5d3171[_0x13409e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2984df-=_0x5d3171[_0x13409e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x27319d+=_0x5d3171[_0x2984df];}return _0x27319d;}function _0x16e2f4(){const _0x3362e1=_0x31d801[_0x13409e([0x73,0x70,0x6c,0x69,0x74])](_0x13409e([0x2e]));if(0x3!=_0x3362e1[_0x13409e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x197c34(_0x3362e1[0x1]);function _0x197c34(_0x127e8c){const _0x1e7d8f=_0x5c6d4d(_0x127e8c);return _0x1e7d8f&&_0x2d6151()?_0x1e7d8f:null;function _0x2d6151(){const _0x292b6f=_0x1e7d8f[_0x13409e([0x6a,0x74,0x69])],_0x33bbe5=window[_0x13409e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x292b6f[_0x13409e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x292b6f[_0x13409e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f07b1={..._0x1e7d8f,[_0x13409e([0x6a,0x74,0x69])]:_0x292b6f[_0x13409e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x292b6f[_0x13409e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f07b1[_0x13409e([0x76,0x63])],_0x2200c9(_0x2f07b1)==_0x33bbe5;}}}async function _0x6d4076(){let _0x300e20=!0x0;try{const _0x381c32=_0x31d801[_0x13409e([0x73,0x70,0x6c,0x69,0x74])](_0x13409e([0x2e])),[_0x2f8cbc,_0x2ddf13,_0x3b154b]=_0x381c32;return _0xe084ab(_0x2f8cbc),await _0x28e4ab(_0x2f8cbc,_0x2ddf13,_0x3b154b),_0x300e20;}catch(_0x59c682){return!0x1;}function _0xe084ab(_0x54ff3d){const _0x1d92e0=_0x5c6d4d(_0x54ff3d);_0x1d92e0&&_0x1d92e0[_0x13409e([0x61,0x6c,0x67])]==_0x13409e([0x45,0x53,0x32,0x35,0x36])||(_0x300e20=!0x1);}async function _0x28e4ab(_0x209992,_0x3c0734,_0x48c4c0){const _0x2e7c6b=window[_0x13409e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x13409e([0x66,0x72,0x6f,0x6d])](_0x454a4d(_0x48c4c0),_0x342b18=>_0x342b18[_0x13409e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x21e9f8=new window[(_0x13409e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x13409e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x209992+_0x13409e([0x2e])+_0x3c0734),_0x8dd252=window[_0x13409e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x13409e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x8dd252)return;const _0x4ed291=await _0x8dd252[_0x13409e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x13409e([0x6a,0x77,0x6b]),_0x542b71,{[_0x13409e([0x6e,0x61,0x6d,0x65])]:_0x13409e([0x45,0x43,0x44,0x53,0x41]),[_0x13409e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x13409e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x13409e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x8dd252[_0x13409e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x13409e([0x6e,0x61,0x6d,0x65])]:_0x13409e([0x45,0x43,0x44,0x53,0x41]),[_0x13409e([0x68,0x61,0x73,0x68])]:{[_0x13409e([0x6e,0x61,0x6d,0x65])]:_0x13409e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ed291,_0x2e7c6b,_0x21e9f8)||(_0x300e20=!0x1);}}function _0x5c6d4d(_0x4d6d46){return _0x4d6d46[_0x13409e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x13409e([0x65,0x79]))?JSON[_0x13409e([0x70,0x61,0x72,0x73,0x65])](_0x454a4d(_0x4d6d46)):null;}function _0x454a4d(_0x5ae5dc){return window[_0x13409e([0x61,0x74,0x6f,0x62])](_0x5ae5dc[_0x13409e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x13409e([0x2b]))[_0x13409e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x13409e([0x2f])));}function _0x2200c9(_0x33487b){let _0x819df1=0x1505;function _0x5287bc(_0x3dd292){for(let _0x512026=0x0;_0x512026<_0x3dd292[_0x13409e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x512026++){const _0xa6fa1=_0x3dd292[_0x13409e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x512026);_0x819df1=(_0x819df1<<0x5)+_0x819df1+_0xa6fa1,_0x819df1&=_0x819df1;}}function _0x5f04f0(_0x1b6682){Array[_0x13409e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1b6682)?_0x1b6682[_0x13409e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5f04f0):_0x1b6682&&typeof _0x1b6682==_0x13409e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x13409e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1b6682)[_0x13409e([0x73,0x6f,0x72,0x74])]()[_0x13409e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2d7d13,_0x1f42ff])=>{_0x5287bc(_0x2d7d13),_0x5f04f0(_0x1f42ff);}):_0x5287bc(window[_0x13409e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1b6682));}return _0x5f04f0(_0x33487b),_0x819df1>>>0x0;}function _0xadcc47(_0x1909af){return _0x1909af[_0x13409e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x13409e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x13409e([0x30]));}function _0xd2c608(_0x11adfc){return _0x11adfc[_0x13409e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x13409e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x13409e([0x6a,0x6f,0x69,0x6e])]('');}function _0x433354(_0x508d50){return _0x26191e[_0x13409e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x13409e([0x68,0x61,0x73])](_0x508d50);}function _0xcd57c6(_0x253815){return _0x26191e[_0x13409e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x13409e([0x67,0x65,0x74])](_0x253815);}function _0x489bba(){}function _0x13409e(_0x52e377){return _0x52e377['map'](_0x242845=>String['fromCharCode'](_0x242845))['join']('');}_0x2f38f4(await _0x120d21());}(this);}set['adapter'](_0x3a93d9){if(this['_adapter'])throw new _0x36ec92('track-changes-adapter-already-set',this);this['_adapter']=_0x3a93d9;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2809ff=!0x1,toJSON:_0x17ba4f=!0x1}={}){const _0xcb61ee=[];for(const _0x24c6fd of this['_suggestions']['values']())_0x2809ff&&!_0x24c6fd['isInContent']||_0xcb61ee['push'](_0x24c6fd);return _0x17ba4f?_0xcb61ee['map'](_0x4a7e67=>_0x4a7e67['toJSON']()):_0xcb61ee;}['getSuggestion'](_0x2b6cd0){const _0x5b5cc5=this['_suggestions']['get'](_0x2b6cd0);if(!_0x5b5cc5)throw new _0x36ec92('track-changes-suggestion-not-found',this);return _0x5b5cc5;}['hasSuggestion'](_0x1d4fe0){return this['_suggestions']['has'](_0x1d4fe0);}['addSuggestionData'](_0x2a8a45){const {authorId:_0x12782e,id:_0x23cf27,attributes:_0x14ddd8}=_0x2a8a45,[_0x13a9b0,_0x49112a]=_0x2a8a45['type']['split'](':'),_0x3ef94b=this['_suggestions']['get'](_0x23cf27)||this['_createSuggestion'](_0x13a9b0,_0x49112a,_0x23cf27,_0x12782e,_0x14ddd8);if(this['_addThreadToSuggestion'](_0x3ef94b),this['_checkSuggestionCorrectness'](_0x3ef94b,_0x13a9b0,_0x49112a||null,_0x12782e),_0x3ef94b['createdAt']=_0x2a8a45['createdAt'],_0x3ef94b['_isDataLoaded']=!0x0,_0x14ddd8&&_0x14ddd8['@external']){const _0x442c2c=_0x14ddd8['@external'],_0x118bf5=this['_getExternalAuthor'](_0x442c2c['authorName']);_0x3ef94b['authoredAt']=_0x442c2c['createdAt'],_0x3ef94b['author']=_0x118bf5,_0x3ef94b['isExternal']=!0x0;}else _0x3ef94b['authoredAt']=_0x2a8a45['createdAt'];switch(_0x2a8a45['data']&&(_0x3ef94b['data']=_0x2a8a45['data']),_0x2a8a45['attributes']&&(_0x3ef94b['attributes']=_0x2a8a45['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3ef94b['_saved']=!0x0),this['_suggestionState']['get'](_0x3ef94b)){case'notReady':this['_suggestionState']['set'](_0x3ef94b,'dataReady');break;case'markerReady':_0x3ef94b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3ef94b])),this['_refreshSuggestionsChain'](new Set([_0x3ef94b])),this['_suggestionState']['set'](_0x3ef94b,'ready'),this['fire']('suggestionLoaded',_0x3ef94b)):this['_suggestionState']['set'](_0x3ef94b,'removed');}return _0x3ef94b;}['acceptSuggestion'](_0x18c8a2){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5d0178 of _0x18c8a2['getAllAdjacentSuggestions']())_0x5d0178['accept']();});});}['discardSuggestion'](_0xed5657){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x58376d of _0xed5657['getAllAdjacentSuggestions']())_0x58376d['discard']();});});}['enableCommand'](_0xde6d10,_0x53ee44){const _0x324025=this['editor']['commands']['get'](_0xde6d10);if(!_0x324025)throw new _0x36ec92('track-changes-command-not-found',this,{'commandName':_0xde6d10});if(this['_enabledCommands']['has'](_0x324025))throw new _0x36ec92('track-changes-enable-command-twice',this,{'commandName':_0xde6d10});this['_enabledCommands']['add'](_0x324025),_0x53ee44&&_0x324025['on']('execute',(_0xffc4b7,_0x6cdee8)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x6cdee8['length']>0x0&&_0x6cdee8[_0x6cdee8['length']-0x1]&&_0x6cdee8[_0x6cdee8['length']-0x1]['forceDefaultExecution']?_0x6cdee8['pop']():(_0xffc4b7['return']=_0x53ee44((..._0x33bdfd)=>_0x324025['execute'](..._0x33bdfd,{'forceDefaultExecution':!0x0}),..._0x6cdee8),_0xffc4b7['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1d3fbd){let _0x2400d4,_0x60d3eb;const _0x12b352=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2400d4=_0x1d3fbd();}catch(_0x37762a){_0x60d3eb=_0x37762a;}return _0x12b352||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x60d3eb&&_0x36ec92['rethrowUnexpectedError'](_0x60d3eb,this),_0x2400d4;}['markInsertion'](_0x7fd24a,_0x162e0a=null,_0x88be4a={}){if(_0x7fd24a['isCollapsed'])return null;const _0x183010=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x539c16,meta:_0x4a33a5}of this['_findSuggestions'](_0x7fd24a,'insertion'))if(_0x4a33a5['isOwn']){if(!_0x4a33a5['isNextTo']){if(_0x4a33a5['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x539c16,_0x88be4a))continue;return _0x539c16;}if(Qt(_0x539c16,_0x88be4a))return _0x539c16;this['_breakSuggestionMarker'](_0x539c16,_0x7fd24a['start'],_0x7fd24a['end']);break;}if(_0x162e0a==_0x539c16['subType']&&Qt(_0x539c16,_0x88be4a)){const _0x128715=_0x539c16['getFirstRange']();return _0x128715['start']['isEqual'](_0x7fd24a['end'])?this['_setSuggestionRange'](_0x539c16,this['_model']['createRange'](_0x7fd24a['start'],_0x128715['end'])):this['_setSuggestionRange'](_0x539c16,this['_model']['createRange'](_0x128715['start'],_0x7fd24a['end'])),_0x539c16;}}const _0x5ce679=_0x493eac(),_0x14ebcf=_0x183010['id'],_0x5337c9=_0x162e0a?'insertion:'+_0x162e0a:'insertion',_0x459fe4=this['_setSuggestionData']({'id':_0x5ce679,'type':_0x5337c9,'createdAt':new Date(),'authorId':_0x14ebcf,'attributes':_0x88be4a});return this['_addSuggestionMarker'](_0x5337c9,_0x5ce679,_0x14ebcf,_0x7fd24a),_0x459fe4;}['markMultiRangeInsertion'](_0x347cc1,_0x2f778f='multi',_0x429cf8={}){const _0xf16a5a=this['editor']['plugins']['get']('Users')['me'],_0x206e81=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2f778f,'join');for(const _0x21e649 of this['getSuggestions']())if(_0x21e649['author']['id']==_0xf16a5a['id']&&'insertion'==_0x21e649['type']&&_0x21e649['subType']==_0x2f778f&&Qt(_0x21e649,_0x429cf8)&&(_0x206e81(_0x21e649['getRanges'](),_0x347cc1)||_0x206e81(_0x347cc1,_0x21e649['getRanges']()))){for(const _0x43e4e7 of _0x347cc1)_0x21e649['addRange'](_0x43e4e7);return _0x21e649;}for(const {suggestion:_0x13af8c,meta:_0x5f177f}of this['_findSuggestions'](_0x347cc1,'insertion')){if(!_0x5f177f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5f177f['containsRangeInObject'])continue;if(!Qt(_0x13af8c,_0x429cf8))continue;let _0x143216=!0x0;for(const _0x492008 of _0x13af8c['getRanges']())for(const _0x44749d of _0x347cc1)if(!_0x492008['containsRange'](_0x44749d)){_0x143216=!0x1;break;}if(_0x143216)return _0x13af8c;}const _0x2e60a1=_0x493eac(),_0x3662e6=_0xf16a5a['id'],_0x3aa000='insertion:'+_0x2f778f,_0x57b991=this['_setSuggestionData']({'id':_0x2e60a1,'type':_0x3aa000,'createdAt':new Date(),'authorId':_0x3662e6,'attributes':_0x429cf8});for(const _0x1a6d25 of _0x347cc1)this['_addSuggestionMarker'](_0x3aa000,_0x2e60a1,_0x3662e6,_0x1a6d25,u['getMultiRangeId']());return _0x57b991;}['markInlineFormat'](_0x38bd42,_0x18cba8,_0x505b69=null,_0x4cac44={}){if(_0x505b69=_0x505b69||Jt(_0x18cba8),_0x38bd42['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x371831=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x505b69,'accept');return this['forceDefaultExecution'](()=>_0x371831([_0x38bd42],_0x18cba8,_0x4cac44)),null;}const _0x2b4c97=this['editor']['plugins']['get']('Users')['me'],_0x56b389=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x30f463,meta:_0x29b6c8}of this['_findSuggestions'](_0x38bd42,'insertion'))_0x29b6c8['isOwn']&&!_0x29b6c8['isInsideObject']&&_0x56b389['push'](..._0x30f463['getRanges']());}const _0x41e7fb=function(_0x24fcff,_0x5489e9){const _0x1ecd04=[];for(const _0x5f8ff9 of _0x5489e9){const _0x2de736=_0x24fcff['getIntersection'](_0x5f8ff9);_0x2de736&&_0x1ecd04['push'](_0x2de736);}return _0x1ecd04;}(_0x38bd42,_0x56b389),_0x354274=function(_0x343182,_0x1dae43){const _0x3aeb24=[_0x343182];for(const _0x382480 of _0x1dae43){let _0x59c325=0x0;for(;_0x59c325<_0x3aeb24['length'];){const _0x58be09=_0x3aeb24[_0x59c325]['getDifference'](_0x382480);_0x3aeb24['splice'](_0x59c325,0x1,..._0x58be09),_0x59c325+=_0x58be09['length'];}}return _0x3aeb24;}(_0x38bd42,_0x56b389);_0x41e7fb['length']&&this['_model']['change'](()=>{for(const _0x5aecd4 of _0x41e7fb){const _0x89566a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x505b69,'accept');this['forceDefaultExecution'](()=>_0x89566a([_0x5aecd4],_0x18cba8,_0x4cac44));}});for(const _0x10e26e of _0x354274){let _0x401e8f=null,_0x381ea1=_0x10e26e['start'],_0x5d5e94=_0x10e26e['end'];for(const {suggestion:_0x42b7cf,meta:_0x59836e}of this['_findSuggestions'](_0x10e26e,'formatInline')){if(!_0x59836e['isOwn'])continue;if(_0x42b7cf['subType']!=_0x505b69)continue;if(!Qt(_0x42b7cf,_0x4cac44))continue;const _0x59a950=_0x42b7cf['getFirstRange']();if(_0x59a950['containsRange'](_0x10e26e,!0x0))return null;_0x381ea1=_0x381ea1['isBefore'](_0x59a950['start'])?_0x381ea1:_0x59a950['start'],_0x5d5e94=_0x5d5e94['isAfter'](_0x59a950['end'])?_0x5d5e94:_0x59a950['end'],_0x401e8f?_0x59a950['start']['isBefore'](_0x401e8f['getFirstRange']()['start'])?(_0x401e8f['removeMarkers'](),_0x401e8f=_0x42b7cf):_0x42b7cf['removeMarkers']():_0x401e8f=_0x42b7cf;}const _0x2527d8=this['_model']['createRange'](_0x381ea1,_0x5d5e94);if(_0x401e8f)this['_setSuggestionRange'](_0x401e8f,_0x2527d8);else{const _0x5cf535=_0x493eac(),_0x3f7faf=_0x2b4c97['id'];this['_setSuggestionData']({'id':_0x5cf535,'type':'formatInline:'+_0x505b69,'data':_0x18cba8,'createdAt':new Date(),'authorId':_0x3f7faf,'attributes':_0x4cac44}),this['_addSuggestionMarker']('formatInline:'+_0x505b69,_0x5cf535,_0x3f7faf,_0x2527d8);}}return null;}['markBlockFormat'](_0x55e237,_0x106d7e,_0x487a27=[],_0xa3184c=null,_0x5a5cc1={}){_0x106d7e['formatGroupId']||(_0x106d7e['formatGroupId']=_0x106d7e['commandName']),_0x106d7e['multipleBlocks']=_0x55e237['is']('range'),_0xa3184c=_0xa3184c||Jt(_0x106d7e);const _0x1c3674=_0x487a27['map'](_0x3671ef=>zt(_0x3671ef,this['_model'])),_0x1c89a8=_0x55e237['is']('range')?_0x55e237:zt(_0x55e237,this['_model']);if('never'===this['_trackFormatChanges']){const _0xd351e2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xa3184c,'accept');return this['forceDefaultExecution'](()=>_0xd351e2([_0x1c89a8],_0x106d7e,_0x5a5cc1)),null;}_0x1c3674['push'](_0x1c89a8);let _0x4c3310=!0x0;for(const _0x12402a of _0x1c3674)if(!this['_rangeIsInLocalUserInsertion'](_0x12402a)){_0x4c3310=!0x1;break;}if(_0x4c3310&&'always'!==this['_trackFormatChanges']){const _0x2e3aae=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xa3184c,'accept');return this['forceDefaultExecution'](()=>_0x2e3aae([_0x1c89a8],_0x106d7e,_0x5a5cc1)),null;}let _0x5ba6b7=null,_0x99f433=_0x1c89a8['start'],_0x227786=_0x1c89a8['end'];for(const {suggestion:_0x24adf1,meta:_0x3e4a8c}of this['_findSuggestions'](_0x1c89a8,'formatBlock')){if(!_0x3e4a8c['isOwn'])continue;if(_0x3e4a8c['isNextTo']||_0x3e4a8c['containsRangeInObject']||_0x3e4a8c['isInsideObject'])continue;if(_0x24adf1['data']['formatGroupId']!=_0x106d7e['formatGroupId'])continue;if(!Qt(_0x24adf1,_0x5a5cc1))continue;const _0x2ee358=_0x24adf1['getFirstRange']();if(_0x24adf1['subType']==_0xa3184c){if(_0x2ee358['containsRange'](_0x1c89a8,!0x0))return null;_0x99f433=_0x99f433['isBefore'](_0x2ee358['start'])?_0x99f433:_0x2ee358['start'],_0x227786=_0x227786['isAfter'](_0x2ee358['end'])?_0x227786:_0x2ee358['end'],_0x5ba6b7?_0x2ee358['start']['isBefore'](_0x5ba6b7['getFirstRange']()['start'])?(_0x5ba6b7['removeMarkers'](),_0x5ba6b7=_0x24adf1):_0x24adf1['removeMarkers']():_0x5ba6b7=_0x24adf1;}else{const _0x1c5aa0=_0x1c89a8['getIntersection'](_0x2ee358);this['_cutOutSuggestionMarker'](_0x24adf1,_0x1c5aa0);}}const _0x437b58=this['editor']['plugins']['get']('Users')['me'],_0x4491fa=_0x493eac(),_0x314956=_0x437b58['id'];if(_0x5ba6b7)return this['_setSuggestionRange'](_0x5ba6b7,this['_model']['createRange'](_0x99f433,_0x227786)),_0x5ba6b7;{const _0x588bdc=this['_setSuggestionData']({'id':_0x4491fa,'type':'formatBlock:'+_0xa3184c,'data':_0x106d7e,'createdAt':new Date(),'authorId':_0x314956,'attributes':_0x5a5cc1});return this['_addSuggestionMarker']('formatBlock:'+_0xa3184c,_0x4491fa,_0x314956,this['_model']['createRange'](_0x99f433,_0x227786)),_0x588bdc;}}['markMultiRangeBlockFormat'](_0xcf799b,_0x5ec834,_0x3bf615=[],_0x2c6aa5=null,_0x504d01={}){_0x5ec834['formatGroupId']||(_0x5ec834['formatGroupId']=_0x5ec834['commandName']);const _0x56066d=_0xcf799b[0x0];_0x5ec834['multipleBlocks']=_0x56066d['is']('range'),_0x2c6aa5=_0x2c6aa5||Jt(_0x5ec834);const _0x40d228=_0x3bf615['map'](_0x26211a=>zt(_0x26211a,this['_model'])),_0x26636e=_0x56066d['is']('range')?_0xcf799b:_0xcf799b['map'](_0x42ba5e=>zt(_0x42ba5e,this['_model']));if('never'===this['_trackFormatChanges']){const _0x5211a8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c6aa5,'accept');return this['forceDefaultExecution'](()=>_0x5211a8(_0x26636e,_0x5ec834,_0x504d01)),null;}_0x40d228['push'](..._0x26636e);let _0x194f68=!0x0;for(const _0x156e12 of _0x40d228)if(!this['_rangeIsInLocalUserInsertion'](_0x156e12)){_0x194f68=!0x1;break;}if(_0x194f68&&'always'!==this['_trackFormatChanges']){const _0x202419=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c6aa5,'accept');return this['forceDefaultExecution'](()=>_0x202419(_0x26636e,_0x5ec834,_0x504d01)),null;}const _0x57d0be=this['editor']['plugins']['get']('Users')['me'];for(const _0x31a47a of this['getSuggestions']()){if(_0x31a47a['author']['id']!=_0x57d0be['id'])continue;if('formatBlock'!=_0x31a47a['type']||_0x31a47a['data']['formatGroupId']!=_0x5ec834['formatGroupId'])continue;if(!Qt(_0x31a47a,_0x504d01))continue;const _0x4880e7=_0x31a47a['subType']==_0x2c6aa5;for(let _0x519675=0x0;_0x519675<_0x26636e['length'];_0x519675++){const _0x162c2b=_0x26636e[_0x519675];for(const _0xe42cc5 of _0x31a47a['getMarkers']()){const _0x9c7d62=_0xe42cc5['getRange']();if(_0x162c2b['isEqual'](_0x9c7d62)){_0x4880e7?(_0x26636e['splice'](_0x519675,0x1),_0x519675--):_0x31a47a['removeMarker'](_0xe42cc5['name']);break;}}}}if(0x0==_0x26636e['length'])return null;const _0x1301ba=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c6aa5,'join');for(const _0x4ddf5e of this['getSuggestions']())if(_0x4ddf5e['author']['id']==_0x57d0be['id']&&'formatBlock'==_0x4ddf5e['type']&&_0x4ddf5e['data']['formatGroupId']==_0x5ec834['formatGroupId']&&_0x4ddf5e['subType']==_0x2c6aa5&&Qt(_0x4ddf5e,_0x504d01)&&(_0x1301ba(_0x4ddf5e['getRanges'](),_0x26636e)||_0x1301ba(_0x26636e,_0x4ddf5e['getRanges']()))){for(const _0x2df750 of _0x26636e)_0x4ddf5e['addRange'](_0x2df750);return _0x4ddf5e;}const _0x58de4e=_0x493eac(),_0x332f48=_0x57d0be['id'],_0x918d6='formatBlock:'+_0x2c6aa5,_0x1a89c6=this['_setSuggestionData']({'id':_0x58de4e,'type':_0x918d6,'data':_0x5ec834,'createdAt':new Date(),'authorId':_0x332f48,'attributes':_0x504d01});for(const _0x553861 of _0x26636e)this['_addSuggestionMarker'](_0x918d6,_0x58de4e,_0x332f48,_0x553861,u['getMultiRangeId']());return _0x1a89c6;}['markDeletion'](_0x2b6724,_0x3a5699=null,_0x5088c0={}){if(_0x2b6724['isCollapsed'])return null;const _0x44f911=this['editor']['plugins']['get']('Users')['me'],_0x32e422=new _0x3dae0a(_0x2b6724['start'],_0x2b6724['end']);for(const {suggestion:_0xe41b16,meta:_0x2facc2}of this['_findSuggestions'](_0x32e422,'insertion'))if(_0x2facc2['isOwn']&&!_0x2facc2['isNextTo']){if(_0xe41b16['isMultiRange']){const _0x304cc2=_0xe41b16['getRanges']()['filter'](_0x5b47ee=>'$graveyard'!=_0x5b47ee['root']['rootName']);_0x304cc2['every'](_0x1b0e47=>_0x32e422['containsRange'](_0x1b0e47,!0x0))&&_0xe41b16['discard']();if(_0x304cc2['some'](_0x69865a=>_0x69865a['containsRange'](_0x32e422,!0x0))){const _0x191e07=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a5699,'accept');return this['forceDefaultExecution'](()=>_0x191e07([_0x32e422],null,_0x5088c0)),null;}}else{const _0x5a5d80=_0x32e422['getIntersection'](_0xe41b16['getFirstRange']());null!==_0x5a5d80&&_0xe41b16['_onDiscard']([_0x5a5d80],null,_0x5088c0);}}if(_0x32e422['detach'](),_0x32e422['isCollapsed']||'$graveyard'==_0x32e422['root']['rootName'])return null;let _0xa37663=null,_0x12b0b1=_0x32e422['start'],_0x11f8e6=_0x32e422['end'];const _0x537cd5=this['_findSuggestions'](_0x32e422,'deletion');for(const {suggestion:_0x45c856,meta:_0x59be42}of _0x537cd5){const _0x38e4f4=this['_model']['createRange'](_0x12b0b1,_0x11f8e6);if(_0x59be42['isOwn']&&(this['_mergeNestedSuggestions']||!_0x59be42['containsRangeInObject']&&!_0x59be42['isInsideObject'])){if(_0x45c856['isMultiRange']){if(!Qt(_0x45c856,_0x5088c0))continue;let _0x114a7d=!0x0;for(const _0x1318c3 of _0x45c856['getRanges']()){if(_0x1318c3['containsRange'](_0x38e4f4,!0x0))return _0x45c856;_0x38e4f4['containsRange'](_0x1318c3)||(_0x114a7d=!0x1);}_0x114a7d&&_0x45c856['discard']();}else{const _0x26062f=_0x45c856['getFirstRange']();if(_0x26062f['containsRange'](_0x38e4f4,!0x0))return _0x45c856;if(!Qt(_0x45c856,_0x5088c0)){_0x38e4f4['containsRange'](_0x26062f)?_0x45c856['removeMarkers']():_0x26062f['containsPosition'](_0x12b0b1)?_0x12b0b1=_0x26062f['end']:_0x26062f['containsPosition'](_0x11f8e6)&&(_0x11f8e6=_0x26062f['start']);continue;}_0x12b0b1=_0x12b0b1['isBefore'](_0x26062f['start'])?_0x12b0b1:_0x26062f['start'],_0x11f8e6=_0x11f8e6['isAfter'](_0x26062f['end'])?_0x11f8e6:_0x26062f['end'],_0x5088c0=Object['assign']({},_0x45c856['attributes']),_0xa37663?_0x26062f['start']['isBefore'](_0xa37663['getFirstRange']()['start'])?(_0xa37663['removeMarkers'](),_0xa37663=_0x45c856):_0x45c856['removeMarkers']():_0xa37663=_0x45c856;}}}if(_0xa37663)return this['_setSuggestionRange'](_0xa37663,this['_model']['createRange'](_0x12b0b1,_0x11f8e6)),_0xa37663;{const _0x1b6a05=_0x493eac(),_0x5d6029=this['_model']['createRange'](_0x12b0b1,_0x11f8e6),_0x2f4fbb=_0x44f911['id'],_0x30e7c8=_0x3a5699?'deletion:'+_0x3a5699:'deletion',_0x40197c=this['_setSuggestionData']({'id':_0x1b6a05,'type':_0x30e7c8,'createdAt':new Date(),'authorId':_0x2f4fbb,'attributes':_0x5088c0});return this['_addSuggestionMarker'](_0x30e7c8,_0x1b6a05,_0x2f4fbb,_0x5d6029),_0x40197c;}}['markMultiRangeDeletion'](_0xef618b,_0x2ffc9c='multi',_0x44c10e={}){const _0x4cc2c7=this['editor']['plugins']['get']('Users')['me'],_0x216ece=_0xef618b['map'](_0x211428=>new _0x3dae0a(_0x211428['start'],_0x211428['end'])),_0x269243=new Set();for(const {suggestion:_0x15a948,meta:_0x39600d}of this['_findSuggestions'](_0x216ece,'insertion'))_0x39600d['isOwn']&&!_0x39600d['isNextTo']&&_0x269243['add'](_0x15a948);for(const _0x3ba17e of _0x269243)if(_0x3ba17e['isMultiRange']){const _0x386fba=_0x3ba17e['getRanges']();(!_0x3ba17e['attributes']||!_0x3ba17e['attributes']['skipNestingCheck'])&&(_0x386fba['every'](_0x58a00f=>_0x216ece['some'](_0x317dbf=>_0x317dbf['containsRange'](_0x58a00f,!0x0)))&&_0x3ba17e['discard']());if(_0x216ece['every'](_0xad4c57=>_0x386fba['some'](_0x1d1fce=>_0x1d1fce['containsRange'](_0xad4c57,!0x0)))){const _0x1c11fe=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2ffc9c,'accept');return this['forceDefaultExecution'](()=>_0x1c11fe(_0xef618b,null,_0x44c10e)),null;}}else{const _0x2aee4d=_0x3ba17e['getFirstRange']();_0x216ece['some'](_0xfa5ac8=>_0xfa5ac8['containsRange'](_0x2aee4d,!0x0))&&_0x3ba17e['discard']();if(_0x216ece['every'](_0x118322=>_0x2aee4d['containsRange'](_0x118322,!0x0))){const _0x37e005=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2ffc9c,'accept');return this['forceDefaultExecution'](()=>_0x37e005(_0x216ece,null,_0x44c10e)),null;}}const _0x1bbdc1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2ffc9c,'join');let _0x5538a8=null;for(const _0x4b2514 of this['getSuggestions']())if(_0x4b2514['author']['id']==_0x4cc2c7['id']&&_0x4b2514['isInContent']&&'deletion'==_0x4b2514['type']&&_0x4b2514['subType']==_0x2ffc9c&&Qt(_0x4b2514,_0x44c10e)&&(_0x1bbdc1(_0x4b2514['getRanges'](),_0x216ece)||_0x1bbdc1(_0x216ece,_0x4b2514['getRanges']()))){if(_0x5538a8){if(_0x4b2514['commentThread']&&_0x4b2514['commentThread']['length'])continue;for(const _0x8b21d3 of _0x4b2514['getRanges']())_0x5538a8['isIntersectingWithRange'](_0x8b21d3)||_0x5538a8['addRange'](_0x8b21d3);_0x4b2514['removeMarkers']();}else{_0x5538a8=_0x4b2514;for(const _0xb59424 of _0x216ece)_0x4b2514['isIntersectingWithRange'](_0xb59424)||_0x4b2514['addRange'](_0xb59424);}}if(_0x5538a8)return _0x5538a8;_0x269243['clear']();for(const {suggestion:_0x11749b,meta:_0x59d1a0}of this['_findSuggestions'](_0x216ece,'deletion'))_0x59d1a0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x59d1a0['containsRangeInObject']&&!_0x59d1a0['isInsideObject'])&&Qt(_0x11749b,_0x44c10e)&&_0x269243['add'](_0x11749b);for(const _0x41be6c of _0x269243){const _0x13c459=_0x41be6c['getRanges']();if(!_0x44c10e||!_0x44c10e['skipNestingCheck']){if(_0x216ece['every'](_0x1337e7=>_0x13c459['some'](_0x477c35=>_0x477c35['containsRange'](_0x1337e7,!0x0))))return _0x41be6c;}(!_0x41be6c['attributes']||!_0x41be6c['attributes']['skipNestingCheck'])&&(_0x13c459['every'](_0x2ef22=>_0x216ece['some'](_0x41ef2b=>_0x41ef2b['containsRange'](_0x2ef22,!0x0)))&&_0x41be6c['discard']());}const _0x534a93=_0x493eac(),_0x5b63ca=_0x4cc2c7['id'],_0x37189b='deletion:'+_0x2ffc9c,_0x1da8f9=this['_setSuggestionData']({'id':_0x534a93,'type':_0x37189b,'createdAt':new Date(),'authorId':_0x5b63ca,'attributes':_0x44c10e});for(const _0xb39d76 of _0x216ece)_0xb39d76['detach'](),_0xb39d76['isCollapsed']||'$graveyard'==_0xb39d76['root']['rootName']||this['_addSuggestionMarker'](_0x37189b,_0x534a93,_0x5b63ca,_0xb39d76,u['getMultiRangeId']());return _0x1da8f9;}['markAttributeChange'](_0x1fe03d,_0x149006,_0x418148,_0x103f62,_0x285a3b){if(_0x1fe03d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x480ce1=this['editor']['plugins']['get']('Users')['me']['id'],_0x46828b=Array['from'](this['_suggestions']['values']())['filter'](_0x116e00=>'attribute'==_0x116e00['type']&&_0x116e00['data']['key']==_0x149006&&_0x116e00['isIntersectingWithRange'](_0x1fe03d));if('default'===this['_trackFormatChanges']){const _0x34c0b7=this['_findSuggestions'](_0x1fe03d,'insertion')['filter'](({meta:_0x8908f7})=>_0x8908f7['isOwn']&&!_0x8908f7['isInsideObject']&&!_0x8908f7['isNextTo'])['map'](({suggestion:_0x32c389})=>_0x32c389);_0x46828b['unshift'](..._0x34c0b7);}const _0x14773e=new Map([[_0x1fe03d,_0x418148]]);for(const _0x582cc5 of _0x46828b){const _0x1f4219='attribute'==_0x582cc5['type']?_0x582cc5['data']['oldValue']:void 0x0,_0xe9936b=_0x582cc5['getFirstRange'](),_0x4e6532=Array['from'](_0x14773e['keys']())['find'](_0x534be5=>_0x534be5['isIntersecting'](_0xe9936b));if(!_0x4e6532)continue;const _0x163e22=_0x4e6532['getDifference'](_0xe9936b);this['_isBlockAttribute'](_0x149006)&&'insertion'==_0x582cc5['type']&&0x0!=_0x163e22['length']||(_0x14773e['delete'](_0x4e6532),_0x163e22['forEach'](_0x588427=>{_0x14773e['set'](_0x588427,_0x418148);}),'insertion'!=_0x582cc5['type']&&_0x1f4219!=_0x103f62&&_0x14773e['set'](_0x4e6532['getIntersection'](_0xe9936b),_0x1f4219));}const _0x5b5833=[];for(const [_0xf4a13a,_0xa80150]of _0x14773e){const _0x293260=_0x493eac(),_0x569fee={'key':_0x149006,'oldValue':_0xa80150,'newValue':_0x103f62};_0x149006['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':_0x149006});const _0xfd0960=('attribute:'+(_0x149006+'|'+Jt({'newValue':_0x103f62})))['substring'](0x0,0x3c),_0x30718c=this['_setSuggestionData']({'id':_0x293260,'type':_0xfd0960,'data':_0x569fee,'createdAt':new Date(),'authorId':_0x480ce1,'attributes':_0x285a3b});_0x5b5833['push'](_0x30718c),this['_addSuggestionMarker'](_0xfd0960,_0x293260,_0x480ce1,_0xf4a13a);}return _0x5b5833;}['enableDefaultAttributesIntegration'](_0x544016){this['enableCommand'](_0x544016,(_0x83b60a,..._0x25c1af)=>{this['_recordAttributeChanges'](()=>{_0x83b60a(..._0x25c1af);});});}['registerBlockAttribute'](_0x1a3cb9){this['_blockAttributeKeys']['add'](_0x1a3cb9);}['registerInlineAttribute'](_0x58643d){this['_inlineAttributeKeys']['add'](_0x58643d);}['_getAttributeKey'](_0x5d383b){return'attribute'==_0x5d383b['type']?_0x5d383b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1312f5,_0xce0ba2){const _0x2a518c=_0x1312f5['getFirstMarker']();this['_model']['change'](_0x1e9db4=>{_0x1e9db4['updateMarker'](_0x2a518c,{'range':_0xce0ba2});});}['_addThreadToSuggestion'](_0x5ba9b6){const _0x271293=_0x5ba9b6['id'],_0x514287=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x271293)||this['_commentsRepository']['addCommentThread']({'channelId':_0x514287,'threadId':_0x271293,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xbd5768=this['_commentsRepository']['getCommentThread'](_0x271293);_0xbd5768['unbind']('isRemovable'),_0xbd5768['isRemovable']=!0x1,_0x5ba9b6['commentThread']=_0xbd5768;}['_checkSuggestionCorrectness'](_0x50b2a0,_0x4db0b3,_0x3fcefb,_0x1250a5){if(_0x50b2a0['type']!=_0x4db0b3||_0x50b2a0['subType']!=_0x3fcefb||_0x50b2a0['creator']['id']!=_0x1250a5)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x36ec92('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x27edf9,_0x13555c){const _0x1c7a97=_0x27edf9['getFirstRange']();if(_0x13555c['isEqual'](_0x1c7a97))_0x27edf9['removeMarkers']();else{if(_0x1c7a97['containsRange'](_0x13555c)){const _0x4f7e6f=this['_model']['createPositionAt'](_0x13555c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x27edf9,this['_model']['createRange'](_0x1c7a97['start'],_0x4f7e6f));const _0x4ab009=_0x493eac(),_0x56516d=_0x27edf9['creator']['id'],_0xb20ddf=_0x27edf9['type']+':'+_0x27edf9['subType'];this['_setSuggestionData']({'id':_0x4ab009,'type':_0xb20ddf,'createdAt':new Date(),'authorId':_0x56516d,'data':_0x27edf9['data'],'attributes':_0x27edf9['attributes']});const _0xe82ba5=this['_model']['createPositionAt'](_0x13555c['end']['parent'],'after'),_0x26f557=this['_model']['createRange'](_0xe82ba5,_0x1c7a97['end']);this['_addSuggestionMarker'](_0xb20ddf,_0x4ab009,_0x56516d,_0x26f557);}else{if(_0x1c7a97['containsPosition'](_0x13555c['start'])){const _0x58ad7f=this['_model']['createPositionAt'](_0x13555c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x27edf9,this['_model']['createRange'](_0x1c7a97['start'],_0x58ad7f));}else{const _0x1af655=this['_model']['createPositionAt'](_0x13555c['end']['parent'],'after');this['_setSuggestionRange'](_0x27edf9,this['_model']['createRange'](_0x1af655,_0x1c7a97['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x18d1b3){for(const {suggestion:_0x4808ba,meta:_0x25ceb0}of this['_findSuggestions'](_0x18d1b3,'insertion')){if(!_0x25ceb0['isOwn'])continue;const _0x47c483=_0x4808ba['getRanges']();for(const _0xbe1931 of _0x47c483)if(!_0x18d1b3['getDifference'](_0xbe1931)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x527942){const _0x5f1529=this['editor']['plugins']['get']('Users')['getUser'](_0x527942);if(!_0x5f1529)throw new _0x36ec92('track-changes-user-not-found',this);return _0x5f1529;}['_getExternalAuthor'](_0x256e36){const _0x5a552b=this['editor']['plugins']['get']('Users'),_0x4f972c=_0x1960d4('external:'+_0x256e36),_0x58e7ff=_0x5a552b['getUser'](_0x4f972c);return _0x58e7ff||_0x5a552b['addUser']({'id':_0x4f972c,'name':_0x256e36});}['_createSuggestion'](_0x12c6e0,_0x461c0e,_0x1aead5,_0x47051a,_0x18db74){const _0x18b399=this['_getAuthorFromId'](_0x47051a),_0x5582c5=this['_suggestionFactory']['buildSuggestion'](_0x12c6e0,_0x461c0e,_0x1aead5,_0x18b399,_0x18db74,_0x1c7fe4=>{this['_updateSuggestionData'](_0x1aead5,{'attributes':_0x1c7fe4});const _0x3c42de=this['getSuggestion'](_0x1aead5);this['_joinWithAdjacentSuggestions'](new Set([_0x3c42de])),this['_refreshSuggestionsChain'](new Set([_0x3c42de]));});return this['listenTo'](_0x5582c5,'accept',()=>{this['_updateSuggestionData'](_0x1aead5,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5582c5,'discard',()=>{this['_updateSuggestionData'](_0x1aead5,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1aead5,_0x5582c5),this['_suggestionState']['set'](_0x5582c5,'notReady'),_0x5582c5;}['_splitMarkerName'](_0x33c830){const _0x37159d=_0x33c830['split'](':');return{'group':_0x37159d[0x0],'type':_0x37159d[0x1],'subType':_0x37159d['length']>=0x5?_0x37159d[0x2]:null,'id':_0x37159d['length']<0x5?_0x37159d[0x2]:_0x37159d[0x3],'authorId':_0x37159d['length']<0x5?_0x37159d[0x3]:_0x37159d[0x4],'markerCount':0x6==_0x37159d['length']?_0x37159d[0x5]:null};}['_breakSuggestionMarker'](_0xe1d71d,_0x1e3fff,_0x543728){const _0x8ad139=_0xe1d71d['getFirstRange'](),_0x21ef5e=_0x8ad139['start'],_0x1e0ef1=_0x8ad139['end'];this['_setSuggestionRange'](_0xe1d71d,this['_model']['createRange'](_0x21ef5e,_0x1e3fff));const _0x31e287=_0x493eac(),_0x484336=_0xe1d71d['creator']['id'],_0x45df14=_0xe1d71d['type']+(_0xe1d71d['subType']?':'+_0xe1d71d['subType']:'');this['_setSuggestionData']({'id':_0x31e287,'type':_0x45df14,'createdAt':new Date(),'authorId':_0x484336,'originalSuggestionId':_0xe1d71d['id'],'attributes':_0xe1d71d['attributes'],'data':_0xe1d71d['data']});const _0x4d1c9d=this['_getAttributeKey'](_0xe1d71d);('formatBlock'==_0xe1d71d['type']||_0x4d1c9d&&this['_isBlockAttribute'](_0x4d1c9d))&&(_0x543728=this['_model']['createPositionBefore'](_0x543728['parent'])),this['_addSuggestionMarker'](_0x45df14,_0x31e287,_0x484336,this['_model']['createRange'](_0x543728,_0x1e0ef1));}['_findSuggestions'](_0x2a78cc,_0x1ea6db=null){const _0x2f0dc9=[],_0x2a6667=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2a78cc)||(_0x2a78cc=[_0x2a78cc]);for(const _0x26ae4f of this['getSuggestions']()){if(!_0x26ae4f['isInContent'])continue;if(_0x1ea6db&&_0x26ae4f['type']!=_0x1ea6db)continue;let _0x51a73b=!0x1;for(const _0x2c5af6 of _0x26ae4f['getRanges']()){for(const _0x59e145 of _0x2a78cc){const _0x4b83c1=_0x59e145['start']['isEqual'](_0x2c5af6['end'])||_0x59e145['end']['isEqual'](_0x2c5af6['start']);if(_0x4b83c1||_0x59e145['getIntersection'](_0x2c5af6)){const _0x4ade78=_0x59e145['containsRange'](_0x2c5af6)&&Gt(this['_model']['schema'],_0x2c5af6['start'],_0x59e145),_0x3dd424=_0x2c5af6['containsRange'](_0x59e145)&&Gt(this['_model']['schema'],_0x59e145['start'],_0x2c5af6);_0x2f0dc9['push']({'suggestion':_0x26ae4f,'meta':{'isOwn':_0x2a6667==_0x26ae4f['author'],'isNextTo':_0x4b83c1,'isInsideObject':_0x4ade78,'containsRangeInObject':_0x3dd424}}),_0x51a73b=!0x0;break;}}if(_0x51a73b)break;}}return _0x2f0dc9;}['_addSuggestionMarker'](_0x1fc647,_0xf171d,_0x42119e,_0x3bb3b5,_0x3164cb){this['_model']['change'](_0x2556e4=>{let _0xa6fc2='suggestion:'+_0x1fc647+':'+_0xf171d+':'+_0x42119e;_0x3164cb&&(_0xa6fc2=_0xa6fc2+':'+_0x3164cb),_0x2556e4['addMarker'](_0xa6fc2,{'range':_0x3bb3b5,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x45fdf4){const _0x4e77cd=_0x45fdf4['previous'],_0x4951ff=_0x45fdf4['next'];_0x45fdf4['previous']=null,_0x45fdf4['next']=null,null!=_0x4e77cd&&_0x4e77cd['next']==_0x45fdf4&&(_0x4e77cd['next']=_0x4951ff),null!=_0x4951ff&&_0x4951ff['previous']==_0x45fdf4&&(_0x4951ff['previous']=_0x4e77cd),'ready'==this['_suggestionState']['get'](_0x45fdf4)&&(this['_suggestionState']['set'](_0x45fdf4,'removed'),this['fire']('suggestionUnloaded',_0x45fdf4,_0x4e77cd,_0x4951ff));}['_setSuggestionData'](_0x3c76b6){const _0x3c6abb=_0x3c76b6['id'],_0x22488c=this['addSuggestionData'](_0x3c76b6);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3aff9d=this['editor']['plugins']['get']('PendingActions'),_0x5a771f=_0x22488c['hasComments'],_0x1c0fb6=_0x22488c['subType']?_0x22488c['type']+':'+_0x22488c['subType']:_0x22488c['type'],_0x41ff59=this['editor']['locale'],_0x146bd7=_0x3aff9d['add'](o(_0x41ff59,'PENDING_ACTION_SUGGESTION')),_0x137962={'id':_0x3c6abb,'type':_0x1c0fb6,'hasComments':_0x5a771f,'data':_0x3c76b6['data']||null,'originalSuggestionId':_0x3c76b6['originalSuggestionId']||null,'attributes':_0x22488c['attributes']};this['_adapter']['addSuggestion'](_0x137962)['then'](_0x228c87=>{_0x22488c['_saved']=!0x0,_0x3aff9d['remove'](_0x146bd7),_0x228c87&&_0x228c87['createdAt']&&(this['_suggestions']['get'](_0x3c6abb)['createdAt']=_0x228c87['createdAt']);})['catch'](_0x14d3a8=>{throw _0x5d2b24('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x22488c['discard']();}),_0x22488c['stopListening'](),this['_suggestions']['delete'](_0x22488c['id']),this['_suggestionState']['delete'](_0x22488c),_0x14d3a8;});}return _0x22488c;}['_isBlockAttribute'](_0x4a5ac4){return this['_blockAttributeKeys']['has'](_0x4a5ac4);}['_updateSuggestionData'](_0x5b1f58,_0xb5f456){const _0x341479=this['editor']['plugins']['get']('PendingActions'),_0x40e14c=this['getSuggestion'](_0x5b1f58);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x40e14c['_saved']){const _0x19bf82=_0x341479['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5b1f58,_0xb5f456)['then'](()=>{_0x341479['remove'](_0x19bf82);});}else _0x40e14c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5b1f58,_0xb5f456);});}}['_getSuggestionData'](_0x548cd4){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x36ec92('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x548cd4);}['_handleNewSuggestionMarker'](_0x5e3aa1){const {id:_0x464769,type:_0x27e7df,subType:_0x43fa82,authorId:_0x12d1ec}=this['_splitMarkerName'](_0x5e3aa1),_0x36f575=this['_suggestions']['get'](_0x464769)||this['_createSuggestion'](_0x27e7df,_0x43fa82,_0x464769,_0x12d1ec,{});switch(this['_checkSuggestionCorrectness'](_0x36f575,_0x27e7df,_0x43fa82,_0x12d1ec),this['_suggestionState']['get'](_0x36f575)){case'notReady':this['_getSuggestionData'](_0x464769)['then'](_0x38eeaa=>{let _0x5c14d5=Promise['resolve']();_0x38eeaa['hasComments']&&(_0x5c14d5=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x464769})),_0x5c14d5['then'](()=>{this['addSuggestionData'](_0x38eeaa)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x36f575,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x464769,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x36f575,'ready'),this['fire']('suggestionLoaded',_0x36f575);break;case'ready':this['fire']('suggestionChanged',_0x36f575);}return _0x36f575['addMarkerName'](_0x5e3aa1),_0x36f575;}['_refreshSuggestionsChain'](_0x4afe29){const _0x546b7a=Array['from'](_0x4afe29),_0x105e9b=_0x546b7a['filter'](_0x3876c8=>'attribute'==_0x3876c8['type']);this['_refreshAttributeSuggestionsChain'](_0x105e9b);const _0x54e3fc=_0x546b7a['filter'](_0x2ff2cb=>!_0x2ff2cb['isMultiRange']&&'attribute'!=_0x2ff2cb['type']),_0x9a012b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc9e447=>!_0xc9e447['isMultiRange']&&'attribute'!=_0xc9e447['type']),_0x725547=_0x9a012b['filter'](_0x4af697=>!_0x4afe29['has'](_0x4af697)),_0x3b4593=new Map(_0x9a012b['map'](_0x38cccb=>[_0x38cccb,this['_suggestionFactory']['getSuggestionCallback'](_0x38cccb['type'],_0x38cccb['subType'],'chain')])),_0x3c4ea8=new Map(_0x9a012b['map'](_0x11d269=>[_0x11d269,_0x11d269['getFirstRange']()])),_0x50ec73=new Set(),_0x4a3447=new Set();for(let _0x1ef609=0x0;_0x1ef609<_0x54e3fc['length'];_0x1ef609++)_0x3d9e21(_0x54e3fc[_0x1ef609],_0x54e3fc,_0x1ef609+0x1);for(let _0x2f8a66=0x0;_0x2f8a66<_0x54e3fc['length'];_0x2f8a66++)_0x3d9e21(_0x54e3fc[_0x2f8a66],_0x725547,0x0);const _0x366d61=new Set();for(let _0x210b2f=0x0;_0x210b2f<_0x54e3fc['length'];_0x210b2f++){const _0x36775a=_0x54e3fc[_0x210b2f];!_0x4a3447['has'](_0x36775a)&&_0x36775a['previous']&&(_0x366d61['add'](_0x36775a['previous']),_0x36775a['previous']['next']===_0x36775a&&(_0x36775a['previous']['next']=null),_0x36775a['previous']=null),!_0x50ec73['has'](_0x36775a)&&_0x36775a['next']&&(_0x366d61['add'](_0x36775a['next']),_0x36775a['next']['previous']===_0x36775a&&(_0x36775a['next']['previous']=null),_0x36775a['next']=null);}function _0x3d9e21(_0x5b5607,_0x62acce,_0x42e6aa){for(let _0x1e0e5b=_0x42e6aa;_0x1e0e5b<_0x62acce['length'];_0x1e0e5b++){const _0x1ec971=_0xb4bc06(_0x5b5607,_0x62acce[_0x1e0e5b]);_0x1ec971&&(_0x1ec971[0x0]['next']=_0x1ec971[0x1],_0x1ec971[0x1]['previous']=_0x1ec971[0x0],_0x50ec73['add'](_0x1ec971[0x0]),_0x4a3447['add'](_0x1ec971[0x1]));}}function _0xb4bc06(_0x188877,_0x562d00){if(_0x188877['author']['id']!==_0x562d00['author']['id'])return null;const _0x132989=_0x3b4593['get'](_0x188877)(_0x188877,_0x562d00,_0x3c4ea8['get'](_0x188877),_0x3c4ea8['get'](_0x562d00));if(!_0x132989)return null;return _0x3b4593['get'](_0x562d00)(_0x188877,_0x562d00,_0x3c4ea8['get'](_0x188877),_0x3c4ea8['get'](_0x562d00))?_0x132989[0x1]['commentThread']&&_0x132989[0x1]['commentThread']['length']?null:_0x132989:null;}_0x366d61['size']&&this['_refreshSuggestionsChain'](_0x366d61);}['_refreshAttributeSuggestionsChain'](_0x383df5){if(0x0==_0x383df5['length'])return;const _0x95aa5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x211a84=>'attribute'==_0x211a84['type']&&_0x211a84['_isDataLoaded']),_0x533c45=[],_0x12d8af=new Map();for(const _0x20d52c of _0x95aa5){const _0x3adb19=_0x1960d4(_0x20d52c['attributes']);_0x12d8af['has'](_0x3adb19)||(_0x12d8af['set'](_0x3adb19,_0x533c45['length']),_0x533c45['push']([]));const _0x130c61=_0x12d8af['get'](_0x3adb19);_0x533c45[_0x130c61]['push'](_0x20d52c);}!(function(){_0x533c45['sort']((_0x421783,_0x24b43e)=>{const _0xe6e92a=_0x421783[0x0]['createdAt'],_0x1f5d43=_0x24b43e[0x0]['createdAt'];return _0xe6e92a==_0x1f5d43?_0x421783[0x0]['attributes']['groupId']<_0x24b43e[0x0]['attributes']['groupId']?-0x1:0x1:_0xe6e92a<_0x1f5d43?-0x1:0x1;});for(const _0x3f60aa of _0x533c45)_0x3f60aa['sort']((_0x79b467,_0x473bfb)=>_0x79b467['id']<_0x473bfb['id']?-0x1:0x1);}());for(let _0x281751=0x0;_0x281751<_0x533c45['length'];_0x281751++){if(0x0==_0x533c45[_0x281751]['length'])continue;const _0x351858=[];for(let _0x4d22bd=_0x281751+0x1;_0x4d22bd<_0x533c45['length'];_0x4d22bd++)0x0!=_0x533c45[_0x4d22bd]['length']&&_0x19485b(_0x533c45[_0x281751],_0x533c45[_0x4d22bd])&&_0x351858['push'](_0x4d22bd);for(const _0x4b3ca7 of _0x351858)_0x533c45[_0x281751]=_0x533c45[_0x281751]['concat'](_0x533c45[_0x4b3ca7]),_0x533c45[_0x4b3ca7]=[];}for(const _0x3f1bba of _0x533c45)for(let _0x108bba=0x0;_0x108bba<_0x3f1bba['length'];_0x108bba++){const _0x2a527e=_0x3f1bba[_0x108bba+0x1]||null;_0x3f1bba[_0x108bba]['next']!==_0x2a527e&&(_0x3f1bba[_0x108bba]['next']=_0x2a527e);}for(const _0x36a7a0 of _0x533c45)for(let _0x4f9a37=0x0;_0x4f9a37<_0x36a7a0['length'];_0x4f9a37++){const _0x2d8769=_0x36a7a0[_0x4f9a37-0x1]||null;_0x36a7a0[_0x4f9a37]['previous']!==_0x2d8769&&(_0x36a7a0[_0x4f9a37]['previous']=_0x2d8769);}function _0x19485b(_0x3c5814,_0x478473){if(_0x3c5814[0x0]['attributes']['groupId']!==_0x478473[0x0]['attributes']['groupId']&&_0x3c5814[0x0]['author']!==_0x478473[0x0]['author'])return!0x1;if(!function(_0x38f817,_0x35a6c1){if(!_0x38f817['hasComments']&&!_0x35a6c1['hasComments'])return!0x0;if(_0x38f817['hasComments']&&_0x35a6c1['hasComments'])return!0x1;if(_0x38f817['hasComments']&&_0x35a6c1['createdAt']<_0x38f817['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x35a6c1['hasComments']&&_0x38f817['createdAt']<_0x35a6c1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3c5814[0x0],_0x478473[0x0]))return!0x1;const _0x4773bb=Vt(_0x3c5814[0x0]['attributes'],'groupId'),_0x396dfc=Vt(_0x478473[0x0]['attributes'],'groupId');if(!_0x196e1a(_0x4773bb,_0x396dfc))return!0x1;return!!_0x3c5814['every'](_0x1ce044=>_0x478473['some'](_0x1dc1f9=>_0x1ce044['getFirstRange']()['isEqual'](_0x1dc1f9['getFirstRange']())))&&_0x478473['every'](_0x4f251f=>_0x3c5814['some'](_0x45d55e=>_0x4f251f['getFirstRange']()['isEqual'](_0x45d55e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x12bf4a){const _0x5bc38e=Array['from'](_0x12bf4a),_0x56b1f1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x313116=_0x56b1f1['filter'](_0x2d432e=>!_0x12bf4a['has'](_0x2d432e)),_0x25e210=new Map(_0x5bc38e['map'](_0x21d459=>[_0x21d459,this['_suggestionFactory']['getSuggestionCallback'](_0x21d459['type'],_0x21d459['subType'],'join')])),_0x3fc290=new Map(_0x56b1f1['map'](_0x57b356=>[_0x57b356,_0x57b356['getRanges']()]));for(let _0xaedc98=0x0;_0xaedc98<_0x5bc38e['length'];_0xaedc98++){if(_0x34ec72(this,_0x5bc38e[_0xaedc98],_0x5bc38e,_0xaedc98+0x1))return!0x0;}for(let _0x5718e6=0x0;_0x5718e6<_0x5bc38e['length'];_0x5718e6++){if(_0x34ec72(this,_0x5bc38e[_0x5718e6],_0x313116,0x0))return!0x0;}return!0x1;function _0x34ec72(_0x2ea892,_0x3589c8,_0x50b027,_0x19145c){for(let _0x3c3f6a=_0x19145c;_0x3c3f6a<_0x50b027['length'];_0x3c3f6a++){const _0x164915=_0x50b027[_0x3c3f6a];if(_0x164915['type']!==_0x3589c8['type']||_0x164915['author']['id']!==_0x3589c8['author']['id']||_0x164915['subType']!==_0x3589c8['subType'])continue;if(!Wt(_0x3589c8,_0x164915))continue;if('attribute'==_0x3589c8['type']&&_0x3589c8['data']['oldValue']!=_0x164915['data']['oldValue'])continue;if('attribute'==_0x3589c8['type']&&_0x2ea892['_isBlockAttribute'](_0x3589c8['data']['key']))continue;if('formatBlock'==_0x3589c8['type']){const _0x4c8fd9=_0x2ea892['editor']['model'],_0x558d47=_0x3589c8['getContainedElement']();if(_0x558d47&&(_0x4c8fd9['schema']['isObject'](_0x558d47)||_0x4c8fd9['schema']['isLimit'](_0x558d47)))continue;}const _0x43d823=_0x25e210['get'](_0x3589c8),_0x2cc232=_0x3fc290['get'](_0x3589c8),_0x4a0ef8=_0x3fc290['get'](_0x164915),_0x1066cd=_0x3589c8['commentThread']&&_0x3589c8['commentThread']['length'],_0x15ff92=_0x164915['commentThread']&&_0x164915['commentThread']['length'];if(!_0x1066cd&&_0x43d823(_0x4a0ef8,_0x2cc232))return _0x2ea892['_joinSuggestions'](_0x164915,_0x3589c8),_0x3fc290['delete'](_0x3589c8),!0x0;if(!_0x15ff92&&_0x43d823(_0x2cc232,_0x4a0ef8))return _0x2ea892['_joinSuggestions'](_0x3589c8,_0x164915),_0x3fc290['delete'](_0x164915),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4896eb,_0x146eaa){if(_0x4896eb['isMultiRange']){for(const _0x2829f4 of _0x146eaa['getRanges']())_0x4896eb['addRange'](_0x2829f4);}else{const _0x531731=_0x146eaa['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4896eb,this['_model']['createRange'](_0x4896eb['getFirstRange']()['start'],_0x531731));}_0x146eaa['removeMarkers']();}['_getMarkerAnnouncementText'](_0x54fdf2,_0x393c25,_0x3398f1){const _0xd8e541=_0x54fdf2['startsWith']('format')||_0x54fdf2['startsWith']('attribute')?'FORMATTING':_0x54fdf2['toUpperCase']();return o(this['editor']['locale'],_0x393c25+'_'+_0xd8e541+'_SUGGESTION_ANNOUNCEMENT',_0x3398f1);}['_initAriaMarkerChangeAnnouncements'](){const _0x3e3d10=this['editor'];if(!_0x3e3d10['ui'])return;const {ariaLiveAnnouncer:_0x6e6223}=_0x3e3d10['ui'];_0x225a2e(this['_model'],({left:_0x5af587,entered:_0x216601})=>{for(const _0x3bd03d of _0x5af587){const {group:_0x460772,type:_0x21e44a}=this['_splitMarkerName'](_0x3bd03d['name']);if('suggestion'===_0x460772){_0x6e6223['announce'](this['_getMarkerAnnouncementText'](_0x21e44a,'LEAVE'));break;}}for(const _0x46d742 of _0x216601){const {group:_0x5cfe60,type:_0x9fc935}=this['_splitMarkerName'](_0x46d742['name']);if('suggestion'===_0x5cfe60){_0x6e6223['announce'](this['_getMarkerAnnouncementText'](_0x9fc935,'ENTER',_0x43d92f(_0x3c5087)));break;}}});}['_processAttributeChanges'](_0x29ee25){if(this['_recordAttributeSuggestions'])return!0x1;const _0x17d407=this['editor'],_0x40ecfa=_0x17d407['model']['document']['differ']['getChanges']();if(0x0==_0x40ecfa['length'])return!0x1;const _0x56625e=[],_0x4decd8=_0x40ecfa['filter'](_0x1db1ef=>'attribute'==_0x1db1ef['type']),_0x5a053c=_0x40ecfa['filter'](_0x3a6815=>'insert'==_0x3a6815['type']&&'$text'!=_0x3a6815['name']),_0x3227ff=_0x40ecfa['filter'](_0x4fd836=>'remove'==_0x4fd836['type']&&'$text'!=_0x4fd836['name']);for(const _0x97f0a5 of _0x4decd8)_0x56625e['push']({'key':_0x97f0a5['attributeKey'],'newValue':_0x97f0a5['attributeNewValue'],'oldValue':_0x97f0a5['attributeOldValue'],'range':qt(_0x97f0a5['range'],_0x17d407['model'])});for(const _0x50501e of _0x5a053c){const _0x3d4cab=_0x3227ff['find'](_0x1311fe=>_0x1311fe['position']['isEqual'](_0x50501e['position']));_0x3d4cab&&_0x56625e['push']({'key':m,'newValue':_0x50501e['name'],'oldValue':_0x3d4cab['name'],'range':_0x17d407['model']['createRangeOn'](_0x50501e['position']['nodeAfter'])});}return 0x0!=_0x56625e['length']&&this['_reduceExistingSuggestions'](_0x29ee25,_0x56625e);}['_processAttributeSuggestions'](_0x14a311){let _0x50eefe=!0x1;const _0x4d5072=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3a9644=>_0x3a9644['data']['newRange']&&_0x3a9644['name']['startsWith']('suggestion:attribute:'));for(const _0x44a78e of _0x4d5072){const {subType:_0x913c69,id:_0x54ecae}=this['_splitMarkerName'](_0x44a78e['name']),_0x6abede=_0x913c69['split']('|')[0x0];for(const _0x54924a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x54924a['id']!=_0x54ecae&&'attribute'==_0x54924a['type']&&_0x54924a['data']&&_0x54924a['data']['key']==_0x6abede&&_0x54924a['getFirstRange']()['isIntersecting'](_0x44a78e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x54924a,_0x44a78e['data']['newRange'],_0x14a311),_0x50eefe=!0x0);}return _0x50eefe;}['_recordAttributeChanges'](_0xe778a3){this['_recordAttributeSuggestions']=!0x0,_0xe778a3();}['_isRegisteredAttribute'](_0x53db77){const _0x802c78=this['_isBlockAttribute'](_0x53db77),_0x27f7e6=this['_inlineAttributeKeys']['has'](_0x53db77);return _0x802c78||_0x27f7e6;}['_reduceExistingSuggestions'](_0x13ec29,_0x4179ab){if(0x0==_0x4179ab['length'])return!0x1;let _0x2f5718=!0x1;for(const _0x49565e of _0x4179ab){const _0x1110b5=this['_findSuggestions'](_0x49565e['range'],'attribute')['filter'](_0x40bc25=>!_0x40bc25['meta']['isNextTo'])['map'](_0x2e921b=>_0x2e921b['suggestion']),_0x3e0718=_0x1960d4({'newValue':_0x49565e['newValue']});_0x1110b5['filter'](_0x401797=>{const [_0x15c621,_0x16807a]=_0x401797['subType']['split']('|');return _0x15c621==_0x49565e['key']&&_0x16807a!=_0x3e0718;})['forEach'](_0x4d80df=>{this['_reduceSuggestionAttributeRange'](_0x4d80df,_0x49565e['range'],_0x13ec29),_0x2f5718=!0x0;});}return _0x2f5718;}['_reduceSuggestionAttributeRange'](_0x16a313,_0x226a32,_0x2b297a){const _0x52a2a2=_0x16a313['getFirstRange']()['getDifference'](_0x226a32);0x0!==_0x52a2a2['length']?0x1!==_0x52a2a2['length']?this['_breakSuggestionMarker'](_0x16a313,_0x226a32['start'],_0x226a32['end']):this['_setSuggestionRange'](_0x16a313,_0x52a2a2[0x0]):_0x2b297a['removeMarker'](_0x16a313['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x25c9ff){this['_editor']=_0x25c9ff,this['_model']=_0x25c9ff['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x159196,_0x3d7916,_0x2a1f5,_0x3f93e3,_0x7e4833,_0x56419b){return new u(this['_model'],{'type':_0x159196,'subType':_0x3d7916,'id':_0x2a1f5,'author':_0x3f93e3,'creator':_0x3f93e3,'attributes':_0x7e4833,'onAttributesChange':_0x56419b,'onAccept':(..._0x4e87d0)=>this['getSuggestionCallback'](_0x159196,_0x3d7916,'accept')(..._0x4e87d0),'onDiscard':(..._0x7c7fc6)=>this['getSuggestionCallback'](_0x159196,_0x3d7916,'discard')(..._0x7c7fc6)});}['registerCustomCallback'](_0x17fa31,_0x32df30,_0x23a21b,_0x25bb24){const _0x47223e=_0x17fa31+':'+_0x32df30+':'+_0x23a21b;this['_customCallbacks']['set'](_0x47223e,_0x25bb24);}['getSuggestionCallback'](_0x218acf,_0x3f3b80,_0xfad0c6){const _0x374e1b=_0x218acf+':'+_0x3f3b80+':'+_0xfad0c6;return this['_customCallbacks']['get'](_0x374e1b)||this['_defaultCallbacks']['get'](_0x218acf+':'+_0xfad0c6);}['_registerDefaultCallbacks'](){const _0x52b48f=()=>!0x1,_0x37786f=_0x456f7f=>{_0x456f7f['sort']((_0x4ee576,_0x4e7e85)=>_0x4ee576['start']['isBefore'](_0x4e7e85['start'])?0x1:-0x1),this['_model']['change'](_0x38c1ab=>{for(const _0x5c9ddc of _0x456f7f){let _0xce84ec;_0xce84ec=_0x5c9ddc['end']['isAtEnd']&&_0x5c9ddc['end']['parent']==_0x5c9ddc['start']['nodeAfter']?_0x38c1ab['createSelection'](_0x5c9ddc['start']['nodeAfter'],'on'):_0x38c1ab['createSelection'](_0x5c9ddc),this['_model']['deleteContent'](_0xce84ec,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x487e0f=(_0x7fd68b,_0x2f7e5f)=>{_0x2f7e5f&&this['_model']['change'](_0x17a21f=>{const {commandName:_0x45b71f,commandParams:_0x307045=[]}=_0x2f7e5f,_0x2531fd=_0x7fd68b['map'](_0x1dfd2b=>(Ft(_0x1dfd2b)&&(_0x1dfd2b=this['_model']['createRange'](_0x1dfd2b['end'])),_0x1dfd2b))['filter'](_0x3a0022=>'$graveyard'!==_0x3a0022['root']['rootName']);if(_0x2531fd['length']<0x1)return;const _0x3a4d56=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x420f77=>_0x3dae0a['fromRange'](_0x420f77));_0x17a21f['setSelection'](_0x2531fd);for(const _0x3d8348 of this['_editor']['commands']['commands']())_0x3d8348['refresh']();_0x307045['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x45b71f,..._0x307045);const _0x1d6f0f=_0x3a4d56['filter'](_0x1a2421=>'$graveyard'!=_0x1a2421['root']['rootName']);_0x1d6f0f['length']>0x0&&_0x17a21f['setSelection'](_0x1d6f0f);for(const _0x10c736 of _0x3a4d56)_0x10c736['detach']();});},_0x2c635e=(_0x26caa7,_0x15b40d)=>0x1==_0x26caa7['length']&&0x1==_0x15b40d['length']&&_0x26caa7[0x0]['end']['isEqual'](_0x15b40d[0x0]['start']),_0x57f0f7=(_0x3eadfc,_0x1db52a,_0x57b22d,_0x18f515)=>Kt(_0x3eadfc,_0x1db52a,_0x57b22d,_0x18f515)?[_0x3eadfc,_0x1db52a]:Kt(_0x1db52a,_0x3eadfc,_0x18f515,_0x57b22d)?[_0x1db52a,_0x3eadfc]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x52b48f),this['_defaultCallbacks']['set']('insertion:discard',_0x37786f),this['_defaultCallbacks']['set']('insertion:join',_0x2c635e),this['_defaultCallbacks']['set']('insertion:chain',_0x57f0f7),this['_defaultCallbacks']['set']('deletion:accept',_0x37786f),this['_defaultCallbacks']['set']('deletion:discard',_0x52b48f),this['_defaultCallbacks']['set']('deletion:join',_0x2c635e),this['_defaultCallbacks']['set']('deletion:chain',_0x57f0f7),this['_defaultCallbacks']['set']('formatInline:accept',_0x487e0f),this['_defaultCallbacks']['set']('formatInline:discard',_0x52b48f),this['_defaultCallbacks']['set']('formatInline:join',_0x2c635e),this['_defaultCallbacks']['set']('formatInline:chain',_0x52b48f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x487e0f),this['_defaultCallbacks']['set']('formatBlock:discard',_0x52b48f),this['_defaultCallbacks']['set']('formatBlock:join',_0x2c635e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x52b48f),this['_defaultCallbacks']['set']('attribute:accept',_0x52b48f),this['_defaultCallbacks']['set']('attribute:discard',(_0x5028f7,_0x53c988)=>{if(!_0x53c988)return;const _0x66ad6b=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xc7350b=>{if(_0x53c988['key']==m)for(const _0xa5f984 of _0x5028f7){const _0x1e20f1=_0xa5f984['start']['nodeAfter'],_0x24ab46=_0x53c988['oldValue'];_0xc7350b['rename'](_0x1e20f1,_0x24ab46);}else{if(_0x66ad6b['_isBlockAttribute'](_0x53c988['key'])){for(const _0x24aaca of _0x5028f7)void 0x0!==_0x53c988['oldValue']?_0xc7350b['setAttribute'](_0x53c988['key'],_0x53c988['oldValue'],_0x24aaca['start']['nodeAfter']):_0xc7350b['removeAttribute'](_0x53c988['key'],_0x24aaca['start']['nodeAfter']);}else{for(const _0x1e99ab of _0x5028f7)_0x53c988['oldValue']?_0xc7350b['setAttribute'](_0x53c988['key'],_0x53c988['oldValue'],_0x1e99ab):_0xc7350b['removeAttribute'](_0x53c988['key'],_0x1e99ab);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2c635e);}}function Gt(_0x246803,_0x13684f,_0x295896){for(const _0x15262f of _0x13684f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x15262f['root']==_0x15262f)return!0x1;if(!_0x295896['containsItem'](_0x15262f))return!0x1;if(_0x246803['isObject'](_0x15262f)||_0x246803['isLimit'](_0x15262f))return!0x0;}return!0x1;}function Ft(_0x5bb341){return _0x5bb341['end']['parent']==_0x5bb341['start']['nodeAfter']&&_0x5bb341['end']['isAtStart'];}function Lt(_0x1c4177,_0x3a554e,_0x406ec5,_0x307392){const _0x4efce9=_0x15ded8=>!_0x15ded8['item']['is']('$textProxy')&&!_0x307392['isObject'](_0x15ded8['item']),_0x46d0b7=_0x1c4177['start']['getLastMatchingPosition'](_0x4efce9),_0x5cfdd2=_0x1c4177['end']['getLastMatchingPosition'](_0x4efce9,{'direction':'backward'});return(!_0x1c4177['start']['isEqual'](_0x46d0b7)||!_0x1c4177['end']['isEqual'](_0x5cfdd2))&&(_0x46d0b7['isBefore'](_0x5cfdd2)?_0x406ec5['updateMarker'](_0x3a554e,{'range':_0x406ec5['createRange'](_0x46d0b7,_0x5cfdd2)}):_0x406ec5['removeMarker'](_0x3a554e),!0x0);}function Jt(_0x160d59){return _0x1960d4(_0x160d59);}function Ht(_0x317fb5){const _0x284728=_0x317fb5['start']['nodeAfter'];return _0x284728&&_0x284728['is']('element');}function qt(_0x3a5565,_0xe1e668){return null==_0x3a5565['end']['nodeBefore']&&_0x3a5565['end']['parent']==_0x3a5565['start']['nodeAfter']?zt(_0x3a5565['start']['nodeAfter'],_0xe1e668):_0x3a5565;}function zt(_0x1d030a,_0x577ea5){const _0xd0ffd7=_0x577ea5['schema']['isObject'](_0x1d030a)||_0x577ea5['schema']['isSelectable'](_0x1d030a);return _0x577ea5['createRange'](_0x577ea5['createPositionAt'](_0x1d030a,'before'),_0xd0ffd7?_0x577ea5['createPositionAfter'](_0x1d030a):_0x577ea5['createPositionAt'](_0x1d030a,'end'));}function Kt(_0x334cc9,_0x25b7f0,_0x3808ae,_0x3b4ce9){return!!Wt(_0x334cc9,_0x25b7f0)&&_0x3808ae['end']['isEqual'](_0x3b4ce9['start']);}function Wt(_0x2ba46c,_0x39f36d){if(!_0x2ba46c['_isDataLoaded']||!_0x39f36d['_isDataLoaded'])return!0x1;const _0x37489c=new Set(Object['keys'](_0x2ba46c['attributes'])),_0x901ce7=new Set(Object['keys'](_0x39f36d['attributes']));if(_0x37489c['delete']('groupId'),_0x901ce7['delete']('groupId'),0x0==_0x37489c['size']&&0x0==_0x901ce7['size'])return!0x0;if(_0x37489c['size']!=_0x901ce7['size'])return!0x1;const _0x477ee9={..._0x2ba46c['attributes']},_0x2e5e9a={..._0x39f36d['attributes']};return delete _0x477ee9['groupId'],delete _0x2e5e9a['groupId'],JSON['stringify'](_0x477ee9)==JSON['stringify'](_0x2e5e9a);}function Qt(_0x1a2e4b,_0x57f977){const _0x5cd67f=Xt(_0x1a2e4b['attributes']),_0x239966=Xt(_0x57f977);if(!_0x1a2e4b['_isDataLoaded'])return!0x1;for(const _0x44605a of Object['keys'](_0x239966))if(!_0x196e1a(_0x5cd67f[_0x44605a],_0x239966[_0x44605a]))return!0x1;return!0x0;}function Xt(_0x113d1c){const _0x5cbf18=Object['assign']({},_0x113d1c);return delete _0x5cbf18['skipNestingCheck'],delete _0x5cbf18['tablePasteChainId'],_0x5cbf18;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x28426d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1ea445,_0x571eeb,_0x11a27e,_0x45e601){super(),this['model']=_0x571eeb,this['view']=_0x11a27e,this['commentThreadController']=_0x45e601,this['_editor']=_0x1ea445,this['_acceptCommand']=_0x1ea445['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1ea445['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x27f565,_0x4a7f1f)=>_0x27f565||_0x4a7f1f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xa04f35=>_0xa04f35&&this['_editor']['model']['canEditAt'](_0x571eeb['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3669b8=>_0x3669b8&&this['_editor']['model']['canEditAt'](_0x571eeb['getRanges']())),this['_pendingAction']=null,_0x11a27e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x11a27e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x11a27e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x11a27e,'change:isDirty',()=>{_0x11a27e['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 _0x350e6e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x350e6e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x256c75{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xfa136a,_0x23f443,_0xeba212,_0x4a9298){super(_0xfa136a),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x40d9b3(_0xfa136a,o(_0xfa136a,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x23f443['authoredAt']),this['bind']('authoredAt')['to'](_0x23f443),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',_0x23f443,'authoredAt',this,'descriptionParts',(_0x5e0a03,_0x5a0e5e,_0x5b13ef)=>{const _0x1e0f98=_0x5b13ef['map'](_0x32fce1=>cs(_0x32fce1['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5e0a03-0x1,_0x23f443['author']['name'],_0x5a0e5e?_0x4a9298['formatDateTime'](_0x5a0e5e):'',new DOMParser()['parseFromString'](_0x1e0f98,'text/html')['body']['textContent']]);}),this['focusables']=new _0x26983e(),this['focusTracker']=new _0x5ea68b(),this['keystrokes']=new _0x259fda(),this['focusCycler']=new _0x1cfa7a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x53f093=>_0x53f093['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x23f443,this['_localUser']=_0xeba212,this['_config']=_0x4a9298,_0x4a9298['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x98937b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x12a226}=this['_config'];this['commentsListView']=new _0x12a226(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',_0x22c229=>_0x22c229+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1ff534,_0x3688b7)=>_0x1ff534||!!_0x3688b7);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x10c35f}=this['_config'],_0x3f2c91=new _0x10c35f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2d38d1=_0x3f2c91['commentInputView'];return _0x3f2c91['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2d38d1,'value',(_0x4d4b45,_0x3c591c,_0x43256e)=>!!_0x43256e||_0x4d4b45&&!_0x3c591c),_0x2d38d1['on']('submit',(_0x2347a0,_0x517a6a)=>{this['fire']('addComment',_0x517a6a),_0x2d38d1['editor']['setData']('');}),_0x2d38d1['on']('cancel',()=>this['focus']()),_0x2d38d1['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3f2c91;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x5906f4,_0xc83ead,_0x5bac64,_0x50e3c2){super(_0x5906f4,_0xc83ead,_0x5bac64,_0x50e3c2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x259144=>_0x259144&&_0x259144[0x0]?_0x259144[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x30405b,_0x58f553)=>{let _0x1ef5f3='';for(const _0x384723 of _0x30405b)_0x1ef5f3+='<p>'+cs(_0x384723['content'],_0x384723['color'])+'</p>';return _0x58f553?_0x1ef5f3:_0x20553b(_0x1ef5f3,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x50e3c2['SuggestionView'](_0x5906f4,_0xc83ead,{'formatDateTime':_0x50e3c2['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 _0x3dae55=this['bindTemplate'],_0x2c73d4=[this['suggestionView']];return this['commentsListView']&&_0x2c73d4['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2c73d4['push'](this['commentThreadInputView']),_0x2c73d4['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3dae55['if']('isActive','ck-suggestion-wrapper--active'),_0x3dae55['to']('type',_0x2eb25b=>'ck-suggestion-'+_0x2eb25b),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':_0x3dae55['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2c73d4};}['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 fe extends _0x256c75{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x48962c,_0x35b130,_0x125d66){super(_0x48962c),this['_model']=_0x35b130,this['_config']=_0x125d66,this['set']('description',''),this['bind']('authoredAt')['to'](_0x35b130),this['acceptButton']=this['_createButton'](o(_0x48962c,'Accept\x20suggestion'),_0x32f7bd['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x48962c,'Discard\x20suggestion'),_0x32f7bd['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x403132(_0x48962c,_0x35b130['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x26983e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5ea68b(),this['keystrokes']=new _0x259fda(),this['focusCycler']=new _0x1cfa7a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x104881=>_0x104881['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4e6780=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4e6780['innerHTML']=this['description'],this['on']('change:description',(_0xde726f,_0x5ce020,_0x496a83)=>{_0x4e6780['innerHTML']=_0x496a83;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x307cff=this['bindTemplate'],_0x1e03e8=[{'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':_0x307cff['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x307cff['to']('authoredAt',_0x36ab71=>this['_config']['formatDateTime'](_0x36ab71))}]}]},{'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']&&_0x1e03e8['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':_0x1e03e8}]};}['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'](_0x41173c,_0x3fbfee,_0x1a3ac8,_0x37ef99,_0x2cd74f){const _0x52a4f8=new _0x2ac8fa(this['locale']);return _0x52a4f8['set']({'label':_0x41173c,'icon':_0x3fbfee,'tooltip':!0x0,'tooltipPosition':_0x2cd74f}),_0x52a4f8['extendTemplate']({'attributes':{'class':_0x1a3ac8}}),_0x52a4f8['on']('execute',()=>{this['fire'](_0x37ef99,this['_model']['id']);}),_0x52a4f8;}['_setupKeyboardNavigation'](){const _0x32065b=this['element'];this['keystrokes']['listenTo'](_0x32065b);for(const _0x5c0cb3 of this['focusables'])this['focusTracker']['add'](_0x5c0cb3['element']),this['keystrokes']['listenTo'](_0x5c0cb3['element']);this['keystrokes']['set']('enter',(_0x2d8529,_0x18aeb4)=>{_0x32065b===_0x2d8529['target']&&(this['focusCycler']['focusFirst'](),_0x18aeb4());}),this['keystrokes']['set']('esc',(_0xc7ba46,_0x2d5ea5)=>{_0x32065b!==_0xc7ba46['target']&&(this['focus'](),_0x2d5ea5());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x334dcc{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x56e9d7,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34cd56){super(_0x34cd56),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x10c098=this['editor']['config'];_0x10c098['define']('trackChanges.SuggestionThreadView',pe),_0x10c098['define']('trackChanges.SuggestionView',fe),_0x10c098['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x10c098['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x36750f,_0x354961){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1810d9,_0x485742]of this['_handleControllerBuffer']){const _0x17a5ee=this['_suggestionToController']['has'](_0x1810d9);_0x17a5ee||_0x485742?_0x17a5ee&&_0x485742&&this['_destroyController'](_0x1810d9):this['_initializeController'](_0x1810d9);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x36750f,_0x354961);}['init'](){const _0x2c1024=this['editor'],_0x69317b=_0x2c1024['plugins']['get']('TrackChangesEditing'),_0x2ecef0=_0x2c1024['plugins']['get']('Annotations'),_0x580801=_0x2c1024['plugins']['get']('EditorAnnotations'),_0x41b94d=_0x2c1024['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x580801['addSourceCollector'](()=>{const _0x2e020c=[];for(const [_0xaf520a,_0x3e9504]of Array['from'](this['_suggestionToController'])){const _0x2ed93e=_0xaf520a['getAllAdjacentSuggestions'](),_0x54346b=[];for(const _0x5895dc of _0x2ed93e){if(!_0x5895dc['isInContent'])continue;if(_0x5895dc['isMultiRange']){_0x54346b['push'](..._0x5895dc['getRanges']());continue;}const _0x359b5b=_0x5895dc['getFirstRange']();if(_0x54346b['length']>0x0){const _0x2ae857=_0x54346b[0x0]['getJoined'](_0x359b5b);if(_0x2ae857){_0x54346b[0x0]=_0x2ae857;continue;}}_0x54346b['push'](_0x359b5b);}_0x2e020c['push']([_0x3e9504['view'],_0x54346b]);}return _0x2e020c;}),this['listenTo'](_0x69317b,'suggestionLoaded',(_0x293451,_0x3eaba4)=>{this['listenTo'](_0x3eaba4,'change:previous',(_0xa9d549,_0x3bfd4f,_0xfd280d,_0x199c17)=>{_0x3eaba4['isInContent']&&(null==_0xfd280d?(this['_updateController'](_0x199c17['head']),this['_handleSuggestionControllerDelayed'](_0x3eaba4,!0x1)):(this['_updateController'](_0xfd280d['head']),null==_0x199c17&&this['_handleSuggestionControllerDelayed'](_0x3eaba4,!0x0)));}),null!==_0x3eaba4['previous']?this['_updateController'](_0x3eaba4['head']):this['_handleSuggestionControllerDelayed'](_0x3eaba4,!0x1);}),this['listenTo'](_0x69317b,'suggestionUnloaded',(_0x1b8d6d,_0x380abc,_0x28eed4)=>{this['stopListening'](_0x380abc,'change:previous'),this['_handleControllerBuffer']['delete'](_0x380abc),this['_suggestionToController']['has'](_0x380abc)&&this['_destroyController'](_0x380abc),_0x28eed4&&this['_updateController'](_0x28eed4['head']);}),this['listenTo'](_0x69317b,'suggestionChanged',(_0x467731,_0x1843d1)=>{this['_updateController'](_0x1843d1);}),this['listenTo'](_0x2ecef0,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x41b94d,'addComment',(_0xbad935,{threadId:_0x537317,isFromAdapter:_0x42bf40})=>{if(_0x42bf40||!_0x69317b['hasSuggestion'](_0x537317))return;const _0x50218b=_0x69317b['getSuggestion'](_0x537317);this['_suggestionToController']['get'](_0x50218b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x57267e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4e9db4;for(const _0x2ef451 in _0x57267e){const _0x5bedd2=_0x2ef451,_0x3c2996=_0x57267e[_0x5bedd2];if('trackChangesLicenseKeyValid'==_0x3c2996||'trackChangesLicenseKeyInvalid'==_0x3c2996||'trackChangesLicenseKeyExpired'==_0x3c2996||'trackChangesLicenseKeyDomainLimit'==_0x3c2996||'trackChangesLicenseKeyNotAllowed'==_0x3c2996||'trackChangesLicenseKeyEvaluationLimit'==_0x3c2996||'trackChangesLicenseKeyTrialLimit'==_0x3c2996||'trackChangesLicenseKeyUsageLimit'==_0x3c2996){delete _0x57267e[_0x5bedd2],_0x4e9db4=_0x3c2996,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4e9db4&&_0x57267e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4e9db4&&_0x57267e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4e9db4&&_0x57267e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4e9db4&&_0x57267e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4e9db4&&_0x57267e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4e9db4&&_0x57267e['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4e9db4&&_0x57267e['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x5aba0a=this['editor']['plugins']['get']('Annotations'),_0x47eaaa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28ce81=Array['from'](_0x5aba0a['activeAnnotations'],_0x3ea9b9=>_0x3ea9b9['innerView'])['filter'](_0x2ab379=>this['_viewToController']['has'](_0x2ab379)),_0x979b8c=[];for(const _0x2aabd5 of _0x28ce81){const _0x5a4b69=this['_viewToController']['get'](_0x2aabd5)['model']['getAllAdjacentSuggestions']();_0x979b8c['push'](..._0x5a4b69['reduce']((_0x32cd3a,_0x1781c0)=>[..._0x32cd3a,..._0x1781c0['getMarkerNames']()],[]));}_0x47eaaa['activeMarkers']=_0x979b8c;}['_addUIComponentsToFactory'](){const _0x26f2c7=this['editor'],_0x3ae060=_0x26f2c7['locale'],_0x4c46b0=o(_0x3ae060,'Track\x20changes'),_0x1ad5b4=new _0x5cface([{'type':'switchbutton','model':new _0x33f8d5({'withText':!0x0,'isToggleable':!0x0,'label':_0x4c46b0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x33f8d5({'withText':!0x0,'label':o(_0x3ae060,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x33f8d5({'withText':!0x0,'label':o(_0x3ae060,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x33f8d5({'withText':!0x0,'label':o(_0x3ae060,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x33f8d5({'withText':!0x0,'label':o(_0x3ae060,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x26f2c7['plugins']['has']('TrackChangesPreview')&&_0x1ad5b4['addMany']([{'type':'separator'},{'type':'button','model':new _0x33f8d5({'withText':!0x0,'label':o(_0x3ae060,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x568af8 of _0x1ad5b4)if(ke(_0x568af8)){const _0x2e9742=_0x26f2c7['commands']['get'](_0x568af8['model']['commandName']);_0x568af8['model']['bind']('isOn','isEnabled')['to'](_0x2e9742,'value','isEnabled');}_0x26f2c7['ui']['componentFactory']['add']('trackChanges',_0x240c6e=>this['_createToolbarButton'](_0x240c6e,_0x1ad5b4,_0x4c46b0)),_0x26f2c7['ui']['componentFactory']['add']('menuBar:trackChanges',_0xb33fd5=>this['_createMenuBarMenu'](_0xb33fd5,_0x1ad5b4,_0x4c46b0));}['_createToolbarButton'](_0x26bf5d,_0x2fcc8b,_0x37a038){const _0x1a82c2=_0x5343cc(_0x26bf5d,_0x57ddec),_0x58ca70=this['editor']['commands']['get']('trackChanges');_0x1a82c2['buttonView']['set']({'tooltip':_0x37a038,'label':_0x37a038,'icon':we}),_0x1a82c2['buttonView']['bind']('isOn')['to'](_0x58ca70,'value'),_0x1a82c2['buttonView']['on']('execute',()=>{_0x58ca70['execute'](),this['editor']['editing']['view']['focus']();}),_0x461bd3(_0x1a82c2,_0x2fcc8b,{'role':'menu'});const _0xd943b3=[];for(const _0x3fda33 of _0x2fcc8b)ke(_0x3fda33)&&_0xd943b3['push'](this['editor']['commands']['get'](_0x3fda33['model']['commandName']));const _0x31e3bc=_0x1a82c2['buttonView'];return _0x31e3bc['actionView']['unbind']('isEnabled'),_0x31e3bc['arrowView']['unbind']('isEnabled'),_0x31e3bc['actionView']['bind']('isEnabled')['to'](_0x58ca70,'isEnabled'),_0x31e3bc['arrowView']['bind']('isEnabled')['toMany'](_0xd943b3,'isEnabled',(..._0x4e235e)=>_0x4e235e['some'](_0x4d7346=>_0x4d7346)),_0x1a82c2['on']('execute',_0x2b8b9c=>{this['editor']['execute'](_0x2b8b9c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1a82c2;}['_createMenuBarMenu'](_0x10ba86,_0x1867fe,_0x49719e){const _0x415db3=new _0x3316ce(_0x10ba86),_0x5c0159=this['editor']['commands']['get']('trackChanges');_0x415db3['buttonView']['set']({'label':_0x49719e,'icon':we});const _0x5063b1=new _0x150464(_0x10ba86);for(const _0x4efb3d of _0x1867fe){if('separator'==_0x4efb3d['type']){_0x5063b1['items']['add'](new _0x1ce921(_0x10ba86));continue;}const _0x449bee=new _0x3fa025(_0x10ba86,_0x415db3),_0x2db0bf=new _0x17026f(_0x10ba86),_0x28150f=_0x4efb3d['model'];_0x2db0bf['bind'](...Object['keys'](_0x28150f))['to'](_0x28150f),_0x2db0bf['delegate']('execute')['to'](_0x415db3),_0x2db0bf['on']('execute',()=>{this['editor']['execute'](_0x28150f['commandName']),this['editor']['editing']['view']['focus']();}),_0x449bee['children']['add'](_0x2db0bf),_0x5063b1['items']['add'](_0x449bee);}return _0x415db3['bind']('isEnabled')['to'](_0x5c0159,'isEnabled'),_0x415db3['panelView']['children']['add'](_0x5063b1),_0x415db3;}['_initializeController'](_0x14ab6a){const _0x3bc817=this['editor'],_0x4fab37=_0x3bc817['config'],_0x3e06ba=_0x3bc817['plugins']['get']('Annotations'),_0xb5e01e=_0x3bc817['plugins']['get']('CommentsRepository'),_0x3e0d08=_0x3bc817['plugins']['get']('EditorAnnotations'),_0x56ffc2=_0x3bc817['plugins']['get'](_0x56e9d7)['me'],_0x48dec3=_0x4fab37['get']('trackChanges')['SuggestionThreadView'],_0x41a3fb=_0x4fab37['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x40cade,CommentThreadInputView:_0x21a8af}=_0x3bc817['plugins']['get']('CommentsUI');let _0x5dda27,_0x263aa6,_0x3724a2;this['_annotationViews']['has'](_0x14ab6a['id'])?(_0x263aa6=this['_annotationViews']['get'](_0x14ab6a['id']),_0x5dda27=_0x263aa6['mainView']):(_0x5dda27=new _0x48dec3(_0x3bc817['locale'],_0x14ab6a,_0x56ffc2,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4fab37['get']('comments.editorConfig'),'licenseKey':_0x4fab37['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4fab37['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4fab37['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4fab37['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x24b58b(_0x4fab37['get']('locale')),'CommentView':_0x4fab37['get']('comments')['CommentView'],'CommentsListView':_0x40cade,'CommentThreadInputView':_0x21a8af,'SuggestionView':_0x41a3fb}),_0x5dda27['suggestionView']['acceptButton']['on']('execute',()=>{_0x3bc817['editing']['view']['focus']();}),_0x5dda27['suggestionView']['discardButton']['on']('execute',()=>{_0x3bc817['editing']['view']['focus']();}),_0x263aa6=_0x3e06ba['createAnnotationView'](this['editor']['locale'],_0x5dda27),_0x263aa6['bind']('isDirty')['to'](_0x5dda27,'isDirty'),_0x263aa6['bind']('length')['to'](_0x5dda27),_0x263aa6['bind']('type')['to'](_0x5dda27,'type',_0x236ee1=>'suggestion-'+_0x236ee1),_0x5dda27['on']('escape',()=>{_0x3724a2['fire']('escape');}),this['_annotationViews']['set'](_0x14ab6a['id'],_0x263aa6));const _0x4fd7b7=_0xb5e01e['createCommentThreadController'](_0x14ab6a['commentThread'],_0x5dda27),_0x24d352=new Ce(_0x3bc817,_0x14ab6a,_0x5dda27,_0x4fd7b7),_0x1c3c6f=_0x14ab6a['getAllAdjacentSuggestions']()['filter'](_0x47bee8=>_0x47bee8['isInContent']);_0x5dda27['descriptionParts']=_0x3bc817['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1c3c6f),this['_suggestionToController']['set'](_0x14ab6a,_0x24d352),this['_viewToController']['set'](_0x5dda27,_0x24d352),_0x3724a2=_0x3e06ba['createAnnotation']({'view':_0x263aa6,'target':()=>{const _0x2507ef=[],_0xc942cd=_0x14ab6a['getAllAdjacentSuggestions']()['filter'](_0x2785cb=>_0x2785cb['isInContent']);for(const _0x3b91b2 of _0xc942cd)_0x2507ef['push'](..._0x3b91b2['getMarkers']());return _0x1002f7(_0x3bc817['editing'],_0x2507ef);},'type':()=>'suggestion-'+_0x24d352['view']['type']}),_0xb5e01e['_bindAnnotationToEditors'](_0x5dda27,_0x3724a2),_0x3e06ba['add'](_0x3724a2),_0x3e0d08['registerAnnotation'](_0x3724a2);}['_destroyController'](_0x3d81f3){const _0x499c1f=this['editor']['plugins']['get']('CommentsRepository'),_0x266cdb=this['editor']['plugins']['get']('Annotations'),_0xbe80d=this['_suggestionToController']['get'](_0x3d81f3),_0x5b9da8=_0xbe80d['view'],_0x44ef4d=_0x266cdb['getByInnerView'](_0x5b9da8);_0x499c1f['_unbindEditors'](_0x5b9da8),_0x44ef4d&&_0x266cdb['remove'](_0x44ef4d),this['_suggestionToController']['delete'](_0x3d81f3),this['_viewToController']['delete'](_0x5b9da8),_0xbe80d['destroy']();}['_updateController'](_0x39ccea){if(!_0x39ccea['isInContent']||!this['_suggestionToController']['has'](_0x39ccea))return;const _0x693923=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54e0b9=this['_suggestionToController']['get'](_0x39ccea),_0x150d10=_0x39ccea['getAllAdjacentSuggestions']();_0x54e0b9['view']['descriptionParts']=_0x693923['descriptionFactory']['getDescriptions'](_0x150d10);}['destroy'](){for(const _0x20c2e7 of this['_suggestionToController']['keys']())this['_destroyController'](_0x20c2e7);for(const _0x459e80 of this['_annotationViews']['values']())_0x459e80['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x1e918e){return'model'in _0x1e918e;}class k extends _0x334dcc{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2569fc){this['editor']['plugins']['get'](p)['adapter']=_0x2569fc;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2c38a8){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2c38a8);}['getSuggestions']({skipNotAttached:_0x493ba7=!0x1,toJSON:_0x22ada2=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x493ba7,'toJSON':_0x22ada2});}['getSuggestion'](_0x55a51b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x55a51b);}}const w=['Pagination'];class T extends _0x334dcc{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x22205c=this['editor'];if(_0x22205c['config']['define']('trackChangesData.editorCreator',_0x11bf0a=>{const _0x5a74eb=_0x22205c['model']['document']['getRootNames']()['reduce']((_0x4e1226,_0x48012f)=>(_0x4e1226[_0x48012f]='',_0x4e1226),{});return _0x22205c['constructor']['create'](_0x5a74eb,_0x11bf0a);}),'function'!=typeof _0x22205c['config']['get']('trackChangesData')['editorCreator'])throw new _0x36ec92('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3a9e2b){return N(this['editor'],!0x0,_0x3a9e2b);}['getDataWithDiscardedSuggestions'](_0x5467f4){return N(this['editor'],!0x1,_0x5467f4);}}class D extends _0x334dcc{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4bc82d){function _0x4e1fa9(_0x4f4a89){return _0x4f4a89['map'](_0x4a8749=>String['fromCharCode'](_0x4a8749))['join']('');}super(_0x4bc82d),this['result']='end',_0x4bc82d[_0x4e1fa9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e1fa9([0x76,0x69,0x65,0x77])][_0x4e1fa9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e1fa9([0x61,0x75,0x74,0x6f]),_0x4bc82d[_0x4e1fa9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4e1fa9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e1fa9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4e1fa9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4e1fa9([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 Fe(_0x29ad6b){return void 0x0!==_0x29ad6b['getRootsAttributes'];}async function N(_0xaf97ed,_0x48a684,_0x1032e0){const _0x32d51b=_0x3ae72a(_0xaf97ed,w);_0x32d51b['plugins']['push'](p,D),_0x32d51b['rootsAttributes']=Fe(_0xaf97ed)?_0xaf97ed['getRootsAttributes']():void 0x0;const _0x518890=document['createDocumentFragment'](),_0x159e5c=_0xaf97ed['config']['get']('trackChangesData')['editorCreator'],_0x3c20c9=await _0x159e5c(_0x32d51b,()=>function(_0x1ee52f){const _0x12dd02=document['createElement']('div');return _0x1ee52f['appendChild'](_0x12dd02),_0x12dd02;}(_0x518890));!function(_0x139d00,_0x5dc925){const _0x53c6bf=_0x139d00['model']['document']['getRootNames']()['reduce']((_0x301caa,_0x4aefa4)=>(_0x301caa[_0x4aefa4]=_0x139d00['data']['get']({'rootName':_0x4aefa4}),_0x301caa),{}),_0x52153a=_0x139d00['plugins']['get']('Users')['users']['map'](_0x43dd41=>({'id':_0x43dd41['id'],'name':_0x43dd41['name']})),_0x35f681=_0x139d00['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x495ae0=_0x139d00['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x28d9cf=_0x5dc925['plugins']['get']('Users'),_0x205167=_0x5dc925['plugins']['get']('TrackChangesEditing'),_0x46bff8=_0x5dc925['plugins']['get']('CommentsRepository');for(const _0xe225b8 of _0x46bff8['getCommentThreads']())_0xe225b8['remove']();for(const _0x58e992 of _0x52153a)_0x28d9cf['getUser'](_0x58e992['id'])||_0x28d9cf['addUser'](_0x58e992);_0x28d9cf['me']||_0x28d9cf['useAnonymousUser']();for(const _0x2a94cd of _0x495ae0)_0x46bff8['addCommentThread'](_0x2a94cd);for(const _0x242b8c of _0x35f681)_0x205167['addSuggestionData'](_0x242b8c);_0x5dc925['data']['set'](_0x53c6bf);}(_0xaf97ed,_0x3c20c9),_0x3c20c9['execute'](_0x48a684?'acceptAllSuggestions':'discardAllSuggestions');const _0x430981=Fe(_0x3c20c9)?_0x3c20c9['getFullData'](_0x1032e0):_0x3c20c9['data']['get'](_0x1032e0);return await _0x3c20c9['destroy'](),_0x430981;}class Me extends _0x256c75{['options'];constructor(_0x2d2e83,_0x13c7bd){super(_0x2d2e83),this['options']=_0x13c7bd,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'](_0x802829,_0x206738){if(!this['element'])return;const _0x228dee=[];for(const [_0x2b6fd0,_0x3dd9dd]of _0x802829){const _0x1a8942=document['createElement']('div');_0x1a8942['setAttribute']('data-ck-root-name',_0x2b6fd0),_0x1a8942['className']=_0x3dd9dd['classes']+'\x20ck-track-changes-preview__root-container',_0x1a8942['innerHTML']=_0x3dd9dd['content'],_0x228dee['push'](_0x1a8942);}_0x206738(this['element'],_0x228dee),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x2f3023){super(_0x2f3023),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x23772a=this['editor'],_0x1385b2=_0x23772a['locale'],_0x4192ed=_0x23772a['plugins']['get']('Dialog');let _0x3875b9;const _0x3aada2=function(_0x4ce8ac){const _0x21a4bd={};if('editables'in _0x4ce8ac['ui']['view']){for(const [_0x3a0f06,_0x4f9d66]of Object['entries'](_0x4ce8ac['ui']['view']['editables']))_0x21a4bd[_0x3a0f06]=_0x4f9d66['element'];}else _0x21a4bd[_0x4ce8ac['model']['document']['getRootNames']()[0x0]]=_0x4ce8ac['ui']['view']['editable']['element'];return _0x21a4bd;}(_0x23772a),_0x9e4b64=function(_0x153d00){let _0x3f0c5f=0x0;for(const _0x430bc9 of Object['values'](_0x153d00))_0x3f0c5f=Math['max'](_0x3f0c5f,_0x430bc9['getBoundingClientRect']()['width']);let _0x55db4d=0x0;for(const _0x1d887a of Object['values'](_0x153d00))_0x55db4d+=_0x1d887a['getBoundingClientRect']()['height'];const _0x16dc63=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3014fd=Math['min'](_0x55db4d,_0x16dc63);return{'width':_0x3f0c5f,'height':_0x3014fd};}(_0x3aada2);_0x4192ed['show']({'id':'finalContentPreview','title':o(_0x1385b2,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1385b2,{'dialogRects':_0x9e4b64}),'onHide':()=>{_0x3875b9['detachFromDom']();},'onShow':()=>{_0x23772a['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x52259e=>{const _0x5bffdc=this['_standarizeRootsData'](_0x52259e,_0x23772a,_0x3aada2);_0x4192ed['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5bffdc,_0x23772a['config']['get']('trackChanges.preview.renderFunction'));}),_0x3875b9=new _0x39748b(_0x1385b2,[_0x4192ed['view']]),_0x3875b9['attachToDom'](),_0x3875b9['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x23772a['once']('destroy',()=>{_0x3875b9['detachFromDom']();});const _0x4011e5=_0x4192ed['view']['headerView']['class'];_0x4192ed['view']['headerView']['class']=_0x4011e5?_0x4011e5+'\x20ck-reset_all':'ck-reset_all',_0x4192ed['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4192ed['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x12f07b=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x21bf9e=_0x12f07b['previewMode'],_0x16096e={};if('$labels'===_0x21bf9e){for(const _0x3981c5 of _0x12f07b['getMergeFieldsIds']())_0x16096e[_0x3981c5]=_0x12f07b['getLabel'](_0x3981c5)||_0x3981c5;}else{const _0x440682='$defaultValues'===_0x21bf9e?_0x12f07b['getDefaultValues']():_0x12f07b['getDataSetValues'](_0x21bf9e,!0x0);for(const _0x310d7c of Object['entries'](_0x440682)){const [_0x632e49,_0x3bcd62]=_0x310d7c;_0x16096e[_0x632e49]=null!==_0x3bcd62?_0x3bcd62:_0x12f07b['getLabel'](_0x632e49)||_0x632e49;}}return{'mergeFieldsData':_0x16096e};}['_standarizeRootsData'](_0x275507,_0x13144f,_0x4ca5c1){let _0x283484;if('string'==typeof _0x275507){const _0x439393=_0x13144f['model']['document']['getRootNames']()[0x0];_0x283484={[_0x439393]:_0x275507};}else _0x283484=_0x275507;const _0x490444=this['_fixMediaEmbeds'](_0x283484,_0x13144f),_0x3424ea=function(_0x45b205,_0x324013){for(const [_0x58e46a,_0x1b6a90]of _0x45b205)_0x1b6a90['classes']=_0x324013[_0x58e46a]['classList']['value']['replace']('ck-focused','');return _0x45b205;}(this['_sortRoots'](_0x13144f)['reduce']((_0x50f82e,_0x38f010)=>(_0x50f82e['push']([_0x38f010,{'content':_0x490444[_0x38f010],'classes':''}]),_0x50f82e),[]),_0x4ca5c1);return _0x3424ea;}['_fixMediaEmbeds'](_0x3a1252,_0x4e119f){if(!_0x4e119f['plugins']['has']('MediaEmbedEditing'))return _0x3a1252;const _0x246100=_0x4e119f['plugins']['get']('MediaEmbedEditing');for(const [_0x430b32,_0x2d4cca]of Object['entries'](_0x3a1252)){const _0x26e5c1=document['createElement']('div');_0x26e5c1['innerHTML']=_0x2d4cca,(_0x26e5c1['querySelectorAll']('figure.media')['forEach'](_0x120848=>{const _0x4cb9ac=_0x120848['querySelector']('oembed');if(_0x4cb9ac){const _0x13e16f=_0x4cb9ac['getAttribute']('url');if(_0x13e16f){const _0x4edd49=_0x246100['registry']['getMediaViewElement'](new _0x19e29c(_0x4e119f['editing']['view']['document']),_0x13e16f,{'elementName':'','renderForEditingView':!0x0}),_0x58b9ea=document['createElement']('div');_0x58b9ea['classList']['add']('ck-media__wrapper'),_0x4edd49['render'](_0x58b9ea,_0x4e119f['editing']['view']['domConverter']),_0x4cb9ac['replaceWith'](_0x58b9ea);}}}),_0x3a1252[_0x430b32]=_0x26e5c1['innerHTML']);}return _0x3a1252;}['_sortRoots'](_0x5e9f9b){if(!function(_0x1dd808){return void 0x0!==_0x1dd808['getRootsAttributes'];}(_0x5e9f9b))return _0x5e9f9b['model']['document']['getRootNames']();const _0x1360ec=[],_0x338b30=new Map();for(const _0x2d033c of _0x5e9f9b['model']['document']['getRootNames']()){const _0x40f799=_0x5e9f9b['editing']['view']['getDomRoot'](_0x2d033c)['getClientRects']()['item'](0x0);_0x1360ec['push'](_0x2d033c),_0x338b30['set'](_0x2d033c,_0x40f799);}return _0x1360ec['sort']((_0x2e47f6,_0x3feef7)=>{const _0x287496=_0x338b30['get'](_0x2e47f6),_0x21d40a=_0x338b30['get'](_0x3feef7);return _0x287496['y']-_0x21d40a['y']||_0x287496['x']-_0x21d40a['x'];}),_0x1360ec;}}class te extends _0x334dcc{static get['requires'](){return[T,_0xcc23b5];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d6c47){super(_0x1d6c47),_0x1d6c47['commands']['add']('previewFinalContent',new re(this['editor'])),_0x1d6c47['config']['define']('trackChanges.preview.renderFunction',(_0x120ea1,_0x5aac51)=>{for(const _0x3ae75e of _0x5aac51)_0x120ea1['appendChild'](_0x3ae75e);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|