@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20241005.0 → 0.0.0-nightly-20241006.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x409965,PendingActions as _0x2c8515,icons as _0x13725c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1a44d6,ObservableMixin as _0x4f8ba7,uid as _0x413213,insertToPriorityArray as _0xe1fefd,priorities as _0x3dec8d,logWarning as _0x2bae4b,getEnvKeystrokeText as _0x32d411,FocusTracker as _0x52be18,KeystrokeHandler as _0xc7e8f7,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x757e03,View as _0x2a40a0,ViewCollection as _0x65b505,FocusCycler as _0x15d0d7,ViewModel as _0x503b3a,createDropdown as Qt,SplitButtonView as _0x4794fd,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x1baf7d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0xf1e53e,hashObject as _0x222301,surroundingMarkersDetector as _0x238c7a,FOCUS_ANNOTATION_KEYSTROKE as _0x1450a3,AriaDescriptionView as _0x46a1c7,setupThreadKeyboardNavigation as _0x5e55dc,trimHtml as _0x37c84d,UserView as _0x69d512,LateFocusButtonView as _0x4831dd,getDateTimeFormatter as _0x28686b,getAllMarkersDomElementsSorted as _0x35251d,sanitizeEditorConfig as _0x141c13}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x592aa3,LiveRange as _0x531671,LivePosition as _0x3b38bf}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1ee629,toWidget as _0xa3b2cd}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x41a7f3,set as _0x5b60c5,isEqual as _0xa8556c,unset as _0x2a4224,omit as Tt}from'lodash-es';import{Delete as _0x36b70b,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3d721a,ShiftEnter as _0x1096a5}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x29444c,_0x421503){super(_0x29444c),this['_enabledCommands']=_0x421503,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 _0x4d8e4f of this['editor']['commands']['commands']())_0x4d8e4f['affectsData']&&!this['_enabledCommands']['has'](_0x4d8e4f)&&_0x4d8e4f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5e296b of this['editor']['commands']['commands']())_0x5e296b['affectsData']&&!this['_enabledCommands']['has'](_0x5e296b)&&_0x5e296b['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x3095dd,_0x283e6f){super(_0x3095dd),this['_suggestions']=_0x283e6f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1b9dba){const _0x32364e=this['_suggestions']['get'](_0x1b9dba);if(!_0x32364e)throw new _0x1a44d6('track-changes-accept-suggestion-not-found',this);const _0xedc840=_0x32364e['getRanges']();this['editor']['model']['canEditAt'](_0xedc840)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x32364e);}}class R extends ts{['_suggestions'];constructor(_0x8d1971,_0x3d8320){super(_0x8d1971),this['_suggestions']=_0x3d8320,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1709c3){const _0x597656=this['_suggestions']['get'](_0x1709c3);if(!_0x597656)throw new _0x1a44d6('track-changes-discard-suggestion-not-found',this);const _0x7caf99=_0x597656['getRanges']();this['editor']['model']['canEditAt'](_0x7caf99)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x597656);}}function ls(_0x23bfca,_0x2cd1a5){let _0x53e714='';return _0x53e714+=_0x23bfca['split']('*')['map']((_0x2dae4f,_0x266a76)=>_0x266a76%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x2dae4f)+'</span>':nn(_0x2dae4f))['join'](''),_0x2cd1a5&&(_0x53e714+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2cd1a5['value']+'\x22\x20title=\x22'+_0x2cd1a5['title']+'\x22></span>'),_0x53e714;}function nn(_0x36520a){const _0x223737=document['createElement']('span');return _0x223737['innerText']=_0x36520a,_0x223737['innerHTML'];}function ss(_0x4b639c){return _0x4b639c['sort']((_0x5186f8,_0x2fd950)=>'deletion'==_0x5186f8['type']&&'deletion'!=_0x2fd950['type']?-0x1:'deletion'!=_0x5186f8['type']&&'deletion'==_0x2fd950['type']?0x1:0x0);}function to(_0x2a9ecf,_0x4b3743){let _0x1e06f,_0x5d475c=0x0;const _0x465503=[],_0x556818=_0x4b3743['schema'];for(;_0x5d475c<_0x2a9ecf['length'];){const _0x587274=_0x2a9ecf[_0x5d475c],_0x9c8b86=_0x2a9ecf[_0x5d475c+0x1];_0x1e06f||(_0x1e06f=_0x4b3743['createPositionBefore'](_0x587274)),on(_0x4b3743,_0x587274,_0x9c8b86)||(_0x465503['push'](_0x4b3743['createRange'](_0x1e06f,_0x556818['isObject'](_0x587274)?_0x4b3743['createPositionAfter'](_0x587274):_0x4b3743['createPositionAt'](_0x587274,'end'))),_0x1e06f=null),_0x5d475c++;}return _0x465503;}function on(_0x188eaa,_0x48764a,_0xb69cf2){if(!_0xb69cf2)return!0x1;const _0x55a288=_0x188eaa['createPositionAfter'](_0x48764a),_0x119274=_0x188eaa['createPositionBefore'](_0xb69cf2);return _0x55a288['isTouching'](_0x119274);}function rs(_0xf069d5,_0x3b67be,_0x2ecb65){for(;_0x2ecb65['length'];){const _0x5eeec1=_0x2ecb65['splice'](0x0,0x64);_0xf069d5['change'](()=>{for(const _0x26dbb2 of _0x5eeec1)_0x26dbb2['isInContent']&&_0x3b67be['execute'](_0x26dbb2['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x5ab253,_0x12d8ee,_0x57da78){super(_0x5ab253),this['_command']=_0x12d8ee,this['_suggestions']=_0x57da78,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x115e03=Array['from'](this['_suggestions']['values']())['some'](_0xe8202b=>_0xe8202b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x115e03;}['execute'](){const _0x23c20f=ss(Array['from'](this['_suggestions']['values']()));for(const _0x293f08 of _0x23c20f){const _0x32ddd3=_0x293f08['getRanges']();if(!this['editor']['model']['canEditAt'](_0x32ddd3))return;}rs(this['editor']['model'],this['_command'],_0x23c20f);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x572282,_0x1d58f9,_0x46cf06){super(_0x572282),this['_command']=_0x1d58f9,this['_suggestions']=_0x46cf06,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x13b18d=this['editor']['model']['document']['selection'],_0x193801=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x243c6f,_0x3338c2){const _0x42017c=Array['from'](_0x243c6f['getRanges']()),_0x621648=new Set();for(const _0x56b470 of _0x3338c2)if(_0x56b470['isInContent']){for(const _0x59d859 of _0x42017c)for(const _0x36b25c of _0x56b470['getRanges']())(_0x59d859['isIntersecting'](_0x36b25c)||_0x243c6f['isCollapsed']&&!_0x56b470['isMultiRange']&&_0x56b470['next']&&_0x36b25c['end']['isTouching'](_0x59d859['start']))&&_0x621648['add'](_0x56b470);}return _0x621648;}(_0x13b18d,_0x193801),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x26377f=ss(Array['from'](this['_selectedSuggestions']));for(const _0x25d2cf of _0x26377f){const _0x34a1ba=_0x25d2cf['getRanges']();if(!this['editor']['model']['canEditAt'](_0x34a1ba))return;}rs(this['editor']['model'],this['_command'],_0x26377f);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x4f8ba7(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4359a7,_0x2f0a11){super(),this['id']=_0x2f0a11['id'],this['type']=_0x2f0a11['type'],this['subType']=_0x2f0a11['subType']||null,this['author']=_0x2f0a11['author'],this['creator']=_0x2f0a11['creator']||_0x2f0a11['author'],this['isExternal']=Boolean(_0x2f0a11['attributes']&&_0x2f0a11['attributes']['@external']),this['data']=null,this['_model']=_0x4359a7,this['_onAccept']=_0x2f0a11['onAccept'],this['_onDiscard']=_0x2f0a11['onDiscard'],this['_onAttributesChange']=_0x2f0a11['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2f0a11['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 _0x5122a3=this;for(;_0x5122a3['previous'];)_0x5122a3=_0x5122a3['previous'];return _0x5122a3;}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'](_0x46452d){this['_markerNames']['add'](_0x46452d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x93f80f=>this['_model']['markers']['get'](_0x93f80f))['filter'](_0x1a974e=>_0x1a974e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2cdbc6=>{for(const _0x39c937 of this['getMarkers']())_0x2cdbc6['removeMarker'](_0x39c937);}),this['_markerNames']['clear']();}['removeMarker'](_0x774e85){this['_model']['change'](_0x57401b=>{_0x57401b['removeMarker'](_0x774e85);}),this['_markerNames']['delete'](_0x774e85);}['addRange'](_0xe00ad8){const _0x13fd07='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x13fd07),this['_model']['change'](_0xbfd6e9=>{_0xbfd6e9['addMarker'](_0x13fd07,{'range':_0xe00ad8,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2cd3b5){for(const _0x4f67d8 of this['getRanges']())if(_0x4f67d8['isIntersecting'](_0x2cd3b5))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4c4e69=>_0x4c4e69['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1f6ed3,_0x23bff4)=>[..._0x1f6ed3,..._0x23bff4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x50dbb3=this['getRanges']();if(0x1!=_0x50dbb3['length'])return null;const _0x15a758=_0x50dbb3[0x0],_0x45a442=_0x15a758['start']['nodeAfter'],_0x23aff9=_0x15a758['end']['nodeBefore'];return _0x45a442 instanceof _0x592aa3?_0x45a442!=_0x23aff9?null:_0x45a442: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 _0x48beb9=[];let _0x31fb3d=this['head'];for(;_0x31fb3d;)_0x48beb9['push'](_0x31fb3d),_0x31fb3d=_0x31fb3d['next'];return _0x48beb9;}['setAttribute'](_0x2b5bbf,_0x2c4c4c){const _0x26a545=_0x41a7f3(this['attributes']);_0x5b60c5(_0x26a545,_0x2b5bbf,_0x2c4c4c),_0xa8556c(_0x26a545,this['attributes'])||(this['attributes']=_0x26a545,this['_onAttributesChange'](_0x26a545));}['removeAttribute'](_0x2094c0){const _0x127a9a=_0x41a7f3(this['attributes']);_0x2a4224(_0x127a9a,_0x2094c0),_0xa8556c(_0x127a9a,this['attributes'])||(this['attributes']=_0x127a9a,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 _0x413213()['substr'](0x1,0x5);}}function o(_0x16ea82,_0x31e879,_0x2015dc){const t=_0x16ea82['t'];switch(_0x31e879){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'*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',_0x2015dc);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2015dc);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2015dc);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2015dc);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2015dc);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',_0x2015dc);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2015dc);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x2015dc);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2015dc);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2015dc);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2015dc);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2015dc);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2015dc);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2015dc);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2015dc);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2015dc);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2015dc);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2015dc);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2015dc);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2015dc);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2015dc);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2015dc);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2015dc);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'},_0x2015dc);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2015dc);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2015dc);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2015dc);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2015dc);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2015dc);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'},_0x2015dc);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2015dc);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2015dc);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2015dc);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2015dc);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'},_0x2015dc);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2015dc);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'},_0x2015dc);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'},_0x2015dc);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2015dc);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'},_0x2015dc);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2015dc);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'},_0x2015dc);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2015dc);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2015dc);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'},_0x2015dc);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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2015dc);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2015dc);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2015dc);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'},_0x2015dc);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'},_0x2015dc);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'},_0x2015dc);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x31e879;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5210a8,_0x18d016){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5210a8,this['_locale']=_0x18d016;}['getDescriptions'](_0x26e46c){const _0x2bfec4=[],_0x531946=new Set(),_0x5eeac5=new Set();for(let _0x1c0e81=0x0;_0x1c0e81<_0x26e46c['length'];_0x1c0e81++){const _0x48b669=_0x26e46c[_0x1c0e81];if(!_0x48b669['isInContent'])continue;const _0x343265=this['_handleCustomCallbackDescription'](_0x48b669);if(_0x343265){if(null!=_0x48b669['subType']){if(_0x531946['has'](_0x48b669['subType']))continue;_0x531946['add'](_0x48b669['subType']);}_0x2bfec4['push'](_0x343265);}else{if('attribute'!=_0x48b669['type'])'insertion'!=_0x48b669['type']&&'deletion'!=_0x48b669['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2bfec4,_0x48b669,_0x26e46c[_0x1c0e81+0x1]);else{const _0x48ea89=_0x48b669['data']['key'];if(_0x5eeac5['has'](_0x48ea89))continue;_0x5eeac5['add'](_0x48b669['data']['key']),_0x48ea89==m?this['_handleRenameSuggestionDescription'](_0x2bfec4,_0x48b669):this['_handleAttributeSuggestionDescription'](_0x2bfec4,_0x48b669);}}}return this['_resolveDescriptionItems'](_0x2bfec4);}['registerDescriptionCallback'](_0x49cd70){this['_customCallbacks']['push'](_0x49cd70);}['registerElementLabel'](_0x40b87f,_0x54ff8a,_0x362872=_0x3dec8d['normal']){'function'==typeof _0x40b87f?_0xe1fefd(this['_itemLabelsCallbacks'],{'matchingCallback':_0x40b87f,'label':_0x54ff8a,'priority':_0x362872}):this['_itemLabels']['set'](_0x40b87f,_0x54ff8a);}['registerAttributeLabel'](_0x1fb42e,_0xf716e0){this['_attributeLabels']['set'](_0x1fb42e,_0xf716e0);}['getItemLabel'](_0x1ee199,_0x31a361=0x1){let _0x367fb6;for(const _0x24c931 of this['_itemLabelsCallbacks'])if(_0x24c931['matchingCallback'](_0x1ee199)){_0x367fb6=_0x24c931['label'];break;}return _0x367fb6||(_0x367fb6=this['_itemLabels']['get'](_0x1ee199['name'])),_0x367fb6?_0x367fb6(_0x31a361):0x1!==_0x31a361?_0x31a361+'\x20'+_0x1ee199['name']+'s':''+_0x1ee199['name'];}['_addDescriptionItems'](_0x42c46c,_0x411bbb){const _0x259d1f=_0x411bbb['getFirstRange']()['getWalker'](),_0x32af53='insertion'==_0x411bbb['type']?'add':'remove';for(const _0x3ad69d of _0x259d1f){const _0x5cb917=_0x3ad69d['item'],_0x3ddb64=_0x42c46c[_0x42c46c['length']-0x1];if(_0x5cb917['is']('$textProxy'))_0x3ddb64&&_0x3ddb64['type']['indexOf']('Container')>-0x1&&_0x42c46c['pop'](),_0x3ddb64&&'text'==_0x3ddb64['type']?_0x3ddb64[_0x32af53]+=_0x5cb917['data']:_0x42c46c['push']({'type':'text','add':'add'==_0x32af53?_0x5cb917['data']:'','remove':'remove'==_0x32af53?_0x5cb917['data']:''});else{if(this['_schema']['isObject'](_0x5cb917)){const _0xdb4cb5=_0x5cb917;if(_0x3ddb64&&_0x3ddb64['type']['indexOf']('Container')>-0x1&&_0x42c46c['pop'](),'elementEnd'==_0x3ad69d['type'])continue;_0x3ddb64&&_0x3ddb64['type']==_0x32af53+'Object'&&_0x3ddb64['element']['name']==_0xdb4cb5['name']?_0x3ddb64['quantity']++:_0x42c46c['push']({'type':_0x32af53+'Object','element':_0xdb4cb5,'quantity':0x1}),_0x259d1f['skip'](_0x6b3baa=>!('elementEnd'==_0x6b3baa['type']&&_0x6b3baa['item']==_0x5cb917));}else{if(this['_schema']['checkChild'](_0x5cb917,'$text')||_0x5cb917['is']('element','softBreak')){const _0x4bf7c5=_0x5cb917;if('add'==_0x32af53&&'elementStart'==_0x3ad69d['type']||'remove'==_0x32af53&&'elementEnd'==_0x3ad69d['type'])continue;if(_0x3ddb64&&-0x1==_0x3ddb64['type']['indexOf']('Container')){'text'==_0x3ddb64['type']&&(_0x3ddb64[_0x32af53]+='\x0a');continue;}let _0x1d3abb;if(_0x1d3abb='add'==_0x32af53?_0x4bf7c5['nextSibling']&&!this['_schema']['isObject'](_0x4bf7c5['nextSibling'])?_0x4bf7c5['nextSibling']:null:_0x4bf7c5['previousSibling']&&!this['_schema']['isObject'](_0x4bf7c5['previousSibling'])?_0x4bf7c5['previousSibling']:null,_0x4bf7c5['isEmpty']||_0x1d3abb&&_0x1d3abb['isEmpty']){const _0x598b36=_0x1d3abb&&_0x1d3abb['isEmpty']?_0x1d3abb:_0x4bf7c5;_0x3ddb64&&_0x3ddb64['type']==_0x32af53+'EmptyContainer'&&_0x3ddb64['element']['name']==_0x598b36['name']?_0x3ddb64['quantity']++:_0x42c46c['push']({'type':_0x32af53+'EmptyContainer','element':_0x598b36,'quantity':0x1});}else _0x42c46c['push']({'type':_0x32af53+'Container','element':_0x4bf7c5});}}}}}['_resolveDescriptionItems'](_0x32d8dd){const _0x4166e6=this['_locale'],_0x195c8e=[],_0x1c085b=[],_0x4787df=[];for(const _0x52e4ef of _0x32d8dd)switch(_0x52e4ef['type']){case'text':if(_0x52e4ef['add']=_0x52e4ef['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x52e4ef['remove']=_0x52e4ef['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x52e4ef['add']&&''!=_0x52e4ef['remove']){_0x195c8e['push']({'type':'replace','content':o(_0x4166e6,'REPLACE_TEXT',['\x22'+_0x52e4ef['remove']+'\x22','\x22'+_0x52e4ef['add']+'\x22'])});continue;}if(null!=_0x52e4ef['add']['match'](/^ +$/)){_0x195c8e['push']({'type':'insertion','content':o(_0x4166e6,'*Insert:*\x20%0',o(_0x4166e6,'ELEMENT_SPACE',_0x52e4ef['add']['length']))});continue;}if(null!=_0x52e4ef['remove']['match'](/^ +$/)){_0x195c8e['push']({'type':'deletion','content':o(_0x4166e6,'*Remove:*\x20%0',o(_0x4166e6,'ELEMENT_SPACE',_0x52e4ef['remove']['length']))});continue;}if(''!=_0x52e4ef['add']){_0x195c8e['push']({'type':'insertion','content':o(_0x4166e6,'*Insert:*\x20%0','\x22'+_0x52e4ef['add']+'\x22')});continue;}_0x195c8e['push']({'type':'deletion','content':o(_0x4166e6,'*Remove:*\x20%0','\x22'+_0x52e4ef['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x195c8e['push']({'type':'insertion','content':o(_0x4166e6,'*Insert:*\x20%0',this['getItemLabel'](_0x52e4ef['element'],_0x52e4ef['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x195c8e['push']({'type':'deletion','content':o(_0x4166e6,'*Remove:*\x20%0',this['getItemLabel'](_0x52e4ef['element'],_0x52e4ef['quantity']))});continue;case'addContainer':_0x195c8e['push']({'type':'insertion','content':o(_0x4166e6,'*Split:*\x20%0',this['getItemLabel'](_0x52e4ef['element'],_0x52e4ef['quantity']))});continue;case'removeContainer':_0x195c8e['push']({'type':'deletion','content':o(_0x4166e6,'*Merge:*\x20%0',this['getItemLabel'](_0x52e4ef['element'],_0x52e4ef['quantity']))});continue;case'addFormat':_0x1c085b['push'](_0x52e4ef['key']);continue;case'removeFormat':_0x4787df['push'](_0x52e4ef['key']);continue;default:_0x195c8e['push'](_0x52e4ef);}if(_0x1c085b['length']){const _0x33aadf=_0x1c085b['map'](_0x363392=>this['_attributeLabels']['has'](_0x363392)?this['_attributeLabels']['get'](_0x363392):_0x363392)['join'](',\x20');_0x195c8e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x33aadf)});}if(_0x4787df['length']){const _0x30363f=_0x4787df['map'](_0x1b3141=>this['_attributeLabels']['has'](_0x1b3141)?this['_attributeLabels']['get'](_0x1b3141):_0x1b3141)['join'](',\x20');_0x195c8e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x30363f)});}return _0x195c8e;}['_handleCustomCallbackDescription'](_0x38eab0){for(const _0x341598 of this['_customCallbacks']){const _0x226020=_0x341598(_0x38eab0);if(_0x226020&&'type'in _0x226020)return _0x226020;}}['_handleAttributeSuggestionDescription'](_0x3b1ff5,_0x41687d){const _0x5cc838=_0x41687d['data'],_0x2100de=void 0x0===_0x5cc838['newValue']?'removeFormat':'addFormat';_0x3b1ff5['push']({'type':_0x2100de,'key':_0x5cc838['key']});}['_handleRenameSuggestionDescription'](_0x59a780,_0x4d2b8d){_0x59a780['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4d2b8d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2d4ae9,_0x59588e,_0x1993a0){if(this['_addDescriptionItems'](_0x2d4ae9,_0x59588e),_0x1993a0&&_0x1993a0['getFirstRange']()&&!_0x59588e['getFirstRange']()['end']['isEqual'](_0x1993a0['getFirstRange']()['start'])){const _0x41dee9=_0x2d4ae9[_0x2d4ae9['length']-0x1],_0x202736='insertion'==_0x59588e['type']?'add':'remove';_0x41dee9&&'text'==_0x41dee9['type']&&(_0x41dee9[_0x202736]+='\x0a');}}}class V extends _0x409965{['afterInit'](){const _0x23a5fe=this['editor'],_0x5d1e43=_0x23a5fe['plugins']['get']('TrackChangesEditing');_0x23a5fe['commands']['get']('showAIAssistant')&&_0x5d1e43['enableCommand']('showAIAssistant');}}class U extends _0x409965{['afterInit'](){const _0x1f8256=this['editor'],_0x31cec3=_0x1f8256['locale'];if(!_0x1f8256['plugins']['has']('AlignmentEditing'))return;const _0x1a1d7f=_0x1f8256['plugins']['get']('TrackChangesEditing');_0x1a1d7f['enableDefaultAttributesIntegration']('alignment'),_0x1a1d7f['registerBlockAttribute']('alignment'),_0x1a1d7f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x31cec3,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bfdd2=this['editor'],_0x2a10e2=_0x3bfdd2['locale'];_0x3bfdd2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15aeb2=>{if('formatBlock'!=_0x15aeb2['type'])return;const {data:_0x274084}=_0x15aeb2;if(_0x274084&&'alignment'==_0x274084['commandName']){const _0x254167=_0x274084['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2a10e2,'*Format:*\x20%0',function(_0x9f1ffd){switch(_0x9f1ffd){case'left':return o(_0x2a10e2,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2a10e2,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2a10e2,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2a10e2,'FORMAT_JUSTIFY_TEXT');}}(_0x254167))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x409965{['afterInit'](){const _0x1b7533=this['editor'],_0x561858=_0x1b7533['plugins']['get']('TrackChangesEditing'),_0x2eb86b=_0x1b7533['locale'];for(const _0x18cad1 of ti){if(!_0x1b7533['plugins']['has'](_0x18cad1))continue;const _0x38826f=_0x18cad1['slice'](0x0,-0x7)['toLowerCase'](),_0x495755='FORMAT_'+_0x38826f['toUpperCase']();_0x561858['enableDefaultAttributesIntegration'](_0x38826f),_0x561858['registerInlineAttribute'](_0x38826f),_0x561858['descriptionFactory']['registerAttributeLabel'](_0x38826f,o(_0x2eb86b,_0x495755));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e6e5f=this['editor'],_0x5444ca=_0x2e6e5f['locale'],_0x4649d4=_0x2e6e5f['plugins']['get']('TrackChangesEditing');function _0xa06e7b(_0x52093e,_0x3d984c){_0x4649d4['descriptionFactory']['registerDescriptionCallback'](_0x9fd924=>{if('formatInline'!=_0x9fd924['type'])return;const {data:_0x2b966d}=_0x9fd924;return _0x2b966d&&_0x2b966d['commandName']===_0x52093e?_0x2b966d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5444ca,'*Format:*\x20%0',_0x3d984c)}:{'type':'format','content':o(_0x5444ca,'*Remove\x20format:*\x20%0',_0x3d984c)}:void 0x0;});}_0xa06e7b('bold',o(_0x5444ca,'FORMAT_BOLD')),_0xa06e7b('italic',o(_0x5444ca,'FORMAT_ITALIC')),_0xa06e7b('underline',o(_0x5444ca,'FORMAT_UNDERLINE')),_0xa06e7b('code',o(_0x5444ca,'FORMAT_CODE')),_0xa06e7b('strikethrough',o(_0x5444ca,'FORMAT_STRIKETHROUGH')),_0xa06e7b('subscript',o(_0x5444ca,'FORMAT_SUBSCRIPT')),_0xa06e7b('superscript',o(_0x5444ca,'FORMAT_SUPERSCRIPT'));}}class F extends _0x409965{['afterInit'](){const _0x3d1607=this['editor'],_0x5d72d3=_0x3d1607['locale'];if(!_0x3d1607['plugins']['has']('BlockQuoteEditing'))return;const _0x360144=_0x3d1607['plugins']['get']('TrackChangesEditing'),_0x4ffaca=this['editor']['commands']['get']('blockQuote');_0x360144['enableCommand']('blockQuote',(_0x1e72d7,_0x274240={})=>{const _0x5cb431=this['editor']['model']['document']['selection'],_0x1b4fa1=_0x274240&&void 0x0!==_0x274240['forceValue']?_0x274240['forceValue']:!_0x4ffaca['value'];let _0x24aaf2=[];if(_0x1b4fa1){const _0x2e0a97=Array['from'](_0x5cb431['getSelectedBlocks']())['filter'](_0x31a208=>oo(_0x31a208)||function(_0x357c9c,_0xee5d01){const _0x382175=_0xee5d01['checkChild'](_0x357c9c['parent'],'blockQuote'),_0x120b00=_0xee5d01['checkChild'](['$root','blockQuote'],_0x357c9c);return _0x382175&&_0x120b00;}(_0x31a208,this['editor']['model']['schema']));_0x24aaf2=to(_0x2e0a97,_0x3d1607['model']);}else{const _0x274b09=Array['from'](_0x5cb431['getSelectedBlocks']())['filter'](_0x4abf63=>oo(_0x4abf63));_0x24aaf2=to(_0x274b09,_0x3d1607['model']);}_0x3d1607['model']['change'](()=>{for(const _0x57d715 of _0x24aaf2)_0x360144['markBlockFormat'](_0x57d715,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1b4fa1}]});});}),_0x360144['descriptionFactory']['registerDescriptionCallback'](_0x4ea35b=>{const {data:_0x1a8007}=_0x4ea35b;if(_0x1a8007&&'blockQuote'==_0x1a8007['commandName']){const _0x4aba6=o(_0x5d72d3,'ELEMENT_BLOCK_QUOTE');return _0x1a8007['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d72d3,'*Set\x20format:*\x20%0',_0x4aba6)}:{'type':'format','content':o(_0x5d72d3,'*Remove\x20format:*\x20%0',_0x4aba6)};}});}}function oo(_0xb798cc){return'blockQuote'==_0xb798cc['parent']['name'];}class L extends _0x409965{['afterInit'](){const _0x23dc2a=this['editor'];_0x23dc2a['plugins']['has']('CaseChange')&&(_0x23dc2a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x23dc2a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x23dc2a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x409965{['afterInit'](){const _0x127ca9=this['editor'];_0x127ca9['commands']['get']('ckbox')&&_0x127ca9['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x409965{['afterInit'](){const _0x2f47ef=this['editor'];if(!_0x2f47ef['plugins']['has']('CodeBlock'))return;const _0x3876b4=_0x2f47ef['plugins']['get']('TrackChangesEditing'),_0x410354=_0x2f47ef['locale'],_0x2738a1=_0x2f47ef['config']['get']('codeBlock')['languages'],_0x25cd61=_0x2f47ef['commands']['get']('codeBlock');_0x3876b4['enableCommand']('indentCodeBlock'),_0x3876b4['enableCommand']('outdentCodeBlock'),_0x3876b4['enableCommand']('codeBlock',(_0x27aca2,_0xbde108={})=>{const _0x41295e=_0x2f47ef['model'],_0x5e0e24=_0x2f47ef['model']['document']['selection'],_0x23821d=_0xbde108&&void 0x0!==_0xbde108['forceValue']?_0xbde108['forceValue']:!_0x25cd61['value'];let _0x3986c9;_0xbde108['language']||(_0xbde108['language']=_0x2738a1[0x0]['language']),_0x3986c9=_0x23821d?Array['from'](_0x5e0e24['getSelectedBlocks']())['filter'](_0x4f6c2=>eo(_0x4f6c2)||function(_0x5558b0,_0x245e24){if(_0x5558b0['is']('rootElement')||_0x245e24['isLimit'](_0x5558b0))return!0x1;return _0x245e24['checkChild'](_0x5558b0['parent'],'codeBlock');}(_0x4f6c2,_0x41295e['schema'])):Array['from'](_0x5e0e24['getSelectedBlocks']())['filter'](_0x145168=>eo(_0x145168));const _0x463c87=to(_0x3986c9,_0x41295e);_0x41295e['change'](()=>{for(const _0x10f2f2 of _0x463c87)_0x3876b4['markBlockFormat'](_0x10f2f2,{'commandName':'codeBlock','commandParams':[{..._0xbde108,'forceValue':_0x23821d}],'formatGroupId':'blockName'});});}),(_0x3876b4['descriptionFactory']['registerElementLabel']('codeBlock',_0x3a5aa1=>o(_0x410354,'ELEMENT_CODE_BLOCK',_0x3a5aa1)),_0x3876b4['descriptionFactory']['registerDescriptionCallback'](_0x23ed57=>{if('formatBlock'!=_0x23ed57['type'])return;const _0x326c59=_0x410354['t'],{data:_0x4b7385}=_0x23ed57;if(!_0x4b7385||'codeBlock'!=_0x4b7385['commandName'])return;const _0xdd53d3=_0x4b7385['commandParams'][0x0]['language'],_0x502010=_0x326c59(_0x2738a1['find'](_0x7a3c97=>_0x7a3c97['language']===_0xdd53d3)['label'])['toLowerCase']();return _0x4b7385['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x410354,'*Set\x20format:*\x20%0',o(_0x410354,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x502010+')')}:{'type':'format','content':o(_0x410354,'*Remove\x20format:*\x20%0',o(_0x410354,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5b24d9){return'codeBlock'==_0x5b24d9['name'];}class q extends _0x409965{['afterInit'](){const _0x2402a9=this['editor'];if(!_0x2402a9['plugins']['has']('CommentsEditing'))return;_0x2402a9['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3b099c,_0x1ccc04,_0x26fd2a){const _0x522add=[];for(const _0x31f59f of _0x1ccc04['getItems']())_0x31f59f['hasAttribute'](_0x3b099c)&&_0x522add['push'](_0x26fd2a['createRangeOn'](_0x31f59f));return _0x522add;}function _e(_0x3830d2,_0x2e4689,{showActiveMarker:_0x5bc81e=!0x0}={}){const _0x24512c=_0x3830d2['plugins']['get']('TrackChangesEditing');return(_0x472b58,_0x4e1d7f,_0x4d04cb)=>{if(!_0x4d04cb['consumable']['test'](_0x4e1d7f['markerRange'],_0x472b58['name']))return;const _0x3ca1bc=_0x4e1d7f['markerRange']['getWalker'](),_0x3679ed=_0x4e1d7f['markerRange']['start'],_0x264028=_0x3830d2['model']['schema'];let _0x158a41=null,_0x581ae5=null,_0x345a29=!0x1,_0x19f470=!0x1;for(const _0x5242cf of _0x3ca1bc){const _0x59431b=_0x5242cf['item'];_0x345a29=_0x345a29||_0x264028['isContent'](_0x59431b);const _0x393d24=_0x4d04cb['mapper']['toViewElement'](_0x59431b);if(_0x393d24&&_0x393d24['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5242cf['type']&&(_0x264028['isBlock'](_0x59431b)&&!_0x264028['isLimit'](_0x59431b)&&(_0x59431b['nextSibling']||_0x3679ed['isAtEnd']?_0x158a41&&_0x158a41['parent']==_0x59431b||(_0x158a41=_0x59431b,_0x1f37ea(_0x5242cf['previousPosition']),_0x19f470=!0x0):_0x581ae5=_0x581ae5||_0x5242cf['previousPosition']));}function _0x1f37ea(_0x291c1f){const {authorId:_0x178f45}=_0x24512c['_splitMarkerName'](_0x4e1d7f['markerName']),_0x6879c3=_0x4d04cb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2e4689,'data-author-id':_0x178f45}),_0x1c0fe6=_0x4d04cb['mapper']['toViewPosition'](_0x291c1f);_0x5bc81e&&_0x24512c['activeMarkers']['includes'](_0x4e1d7f['markerName'])&&_0x4d04cb['writer']['addClass']('ck-suggestion-marker--active',_0x6879c3),_0x4d04cb['writer']['insert'](_0x1c0fe6,_0x6879c3),_0x4d04cb['mapper']['bindElementToMarker'](_0x6879c3,_0x4e1d7f['markerName']);}_0x345a29||_0x19f470||!_0x581ae5||_0x1f37ea(_0x581ae5);};}class z extends _0x409965{static get['requires'](){return[_0x36b70b];}['init'](){const _0x2c00f8=this['editor'],_0x1da82e=_0x2c00f8['plugins']['get']('TrackChangesEditing');_0x1da82e['enableCommand']('delete');const _0x3786b7=_0x2c00f8['commands']['get']('deleteForward');_0x1da82e['enableCommand']('deleteForward',(_0x39190b,_0x1d4943={})=>{const _0x4113e0=_0x2c00f8['model']['createSelection'](_0x2c00f8['model']['document']['selection']);_0x4113e0['isCollapsed']&&_0x2c00f8['model']['modifySelection'](_0x4113e0,{'direction':'forward','unit':_0x1d4943['unit']});const _0x5261d2=_0x4113e0['getFirstRange'](),_0x5839e5=_0x531671['fromRange'](_0x5261d2);let _0xb117af;_0x39190b(_0x1d4943),_0xb117af='$graveyard'==_0x5839e5['root']['rootName']?_0x2c00f8['model']['createRange'](_0x5261d2['start']):_0x2c00f8['model']['createRange'](_0x5839e5['start'],_0x5839e5['end']),_0x5839e5['detach'](),_0x2c00f8['model']['enqueueChange'](_0x3786b7['buffer']['batch'],_0x1b5eca=>{_0x3786b7['buffer']['lock'](),_0x1b5eca['setSelection'](_0x1b5eca['createRange'](_0xb117af['end'])),_0x3786b7['buffer']['unlock']();});}),_0x2c00f8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2c00f8,'merge'),{'priority':'high'}),_0x2c00f8['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x57ee2c,_0x44e4c9,_0x4bbd25)=>{_0x4bbd25['options']['showSuggestionHighlights']&&_e(_0x2c00f8,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x57ee2c,_0x44e4c9,_0x4bbd25);},{'priority':'high'}),_0x2c00f8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3f83c5,_0x24f457,_0x2a6b3b)=>{const _0x32ee39=_0x2a6b3b['mapper']['markerNameToElements'](_0x24f457['markerName']);if(_0x32ee39){for(const _0x5e1e6b of _0x32ee39)_0x5e1e6b['is']('uiElement')&&(_0x2a6b3b['mapper']['unbindElementFromMarkerName'](_0x5e1e6b,_0x24f457['markerName']),_0x2a6b3b['writer']['remove'](_0x5e1e6b));}},{'priority':'high'});}}class K extends _0x409965{['afterInit'](){const _0xfe619d=this['editor'];if(!_0xfe619d['plugins']['has']('ListEditing'))return;const _0x37fa1f=_0xfe619d['locale'],_0x4a4721=_0xfe619d['plugins']['get']('TrackChangesEditing'),_0xe964c4=_0xfe619d['plugins']['has']('TodoListEditing'),_0x3f1b1c=!!_0xfe619d['config']['get']('list.multiBlock');function _0xa960ae(_0x576634){return{'type':'format','content':''+o(_0x37fa1f,'*Set\x20format:*\x20%0',_0x576634)};}function _0x4a39ab(_0x33fd53){return{'type':'format','content':''+o(_0x37fa1f,'*Remove\x20format:*\x20%0',_0x33fd53)};}_0x4a4721['enableDefaultAttributesIntegration']('numberedList'),_0x4a4721['enableDefaultAttributesIntegration']('bulletedList'),_0x4a4721['enableDefaultAttributesIntegration']('customNumberedList'),_0x4a4721['enableDefaultAttributesIntegration']('customBulletedList'),_0x4a4721['enableDefaultAttributesIntegration']('indentList'),_0x4a4721['enableDefaultAttributesIntegration']('outdentList'),_0x4a4721['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4a4721['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4a4721['registerBlockAttribute']('listItemId'),_0x4a4721['registerBlockAttribute']('listType'),_0x4a4721['registerBlockAttribute']('listIndent'),_0x3f1b1c&&(_0x4a4721['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4a4721['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xe964c4&&(_0x4a4721['enableDefaultAttributesIntegration']('todoList'),_0x4a4721['enableDefaultAttributesIntegration']('checkTodoList'),_0x4a4721['registerBlockAttribute']('todoListChecked'),_0x4a4721['descriptionFactory']['registerDescriptionCallback'](_0x1f43b8=>{const {data:_0x4286b9}=_0x1f43b8;if(_0x4286b9&&'todoListChecked'==_0x4286b9['key'])return{'type':'format','content':_0x4286b9['newValue']?o(_0x37fa1f,'*Check\x20item*'):o(_0x37fa1f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x80fd83=>{if(_0x80fd83['batch']['isUndo'])return!0x1;let _0x3aea61=!0x1;const _0x3d38dd=_0x4a4721['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50b0ed=>'todoListChecked'===_0x4a4721['_getAttributeKey'](_0x50b0ed));for(const _0x5e4715 of _0x3d38dd){'todo'!=_0x5e4715['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4a4721['_findSuggestions'](_0x5e4715['getFirstRange'](),'attribute')['find'](_0x4fbcb0=>'listType'===_0x4a4721['_getAttributeKey'](_0x4fbcb0['suggestion']))||(_0x80fd83['removeMarker'](_0x5e4715['getFirstMarker']()),_0x3aea61=!0x0));}return _0x3aea61;})),_0x4a4721['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x37fa1f,'FORMAT_INDENT'));const _0xc52074={'type':'format','content':''};_0x4a4721['descriptionFactory']['registerDescriptionCallback'](_0x2e16fe=>{const {data:_0x1217dd}=_0x2e16fe;if(!_0x1217dd||'listType'!=_0x1217dd['key'])return;let _0xbcddfe=_0x2e16fe['head'];for(;_0xbcddfe;){if(_0xbcddfe['data']&&(('listStyle'==_0xbcddfe['data']['key']||'listMarkerStyle'==_0xbcddfe['data']['key'])&&(_0xbcddfe['data']['newValue']&&'default'!=_0xbcddfe['data']['newValue']||'default'!=_0xbcddfe['data']['oldValue']&&!_0x1217dd['newValue'])||!_0x3f1b1c&&_0xbcddfe['data']['key']==m))return _0xc52074;_0xbcddfe=_0xbcddfe['next'];}if(null==_0x1217dd['newValue'])switch(_0x1217dd['oldValue']){case'bulleted':return _0x4a39ab(o(_0x37fa1f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4a39ab(o(_0x37fa1f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4a39ab(o(_0x37fa1f,'ELEMENT_TODO_LIST'));}switch(_0x1217dd['newValue']){case'bulleted':return _0xa960ae(o(_0x37fa1f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa960ae(o(_0x37fa1f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa960ae(o(_0x37fa1f,'ELEMENT_TODO_LIST'));}}),_0x4a4721['descriptionFactory']['registerDescriptionCallback'](_0x2cd33d=>{const {data:_0x227036}=_0x2cd33d;if(_0x227036&&'listIndent'==_0x227036['key'])return null==_0x227036['newValue']||null==_0x227036['oldValue']&&0x0==_0x227036['newValue']?_0xc52074:void 0x0;}),_0x4a4721['descriptionFactory']['registerDescriptionCallback'](_0x3bcada=>{if('attribute'!=_0x3bcada['type'])return;const {data:_0x572b86}=_0x3bcada;if(!_0x572b86||'listItemId'!=_0x572b86['key'])return;const _0x4c756e=Ee(_0x3bcada);return'newValue'==_0x4c756e?{'type':'format','content':o(_0x37fa1f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4c756e?{'type':'format','content':o(_0x37fa1f,'*Split:*\x20list\x20item')}:_0xc52074;}),_0xfe619d['model']['document']['registerPostFixer'](_0x33b702=>this['listItemIdFixer'](_0x33b702)),_0xfe619d['model']['document']['registerPostFixer'](_0x351b91=>this['noTrackChangesFixer'](_0x351b91)),_0xfe619d['model']['document']['on']('change:data',(_0x5b6490,_0xcab2a7)=>{if(_0xcab2a7['isUndo']||!_0xcab2a7['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5cae09){if(_0x5cae09['batch']['isUndo']||!_0x5cae09['batch']['isLocal'])return!0x1;let _0x44ddfa=!0x1;const _0x210fc8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a1e10=>_0x4a1e10['data']&&'listItemId'==_0x4a1e10['data']['key'])['filter'](_0x5e8ed3=>_0x5e8ed3['data']['newValue']&&_0x5e8ed3['data']['oldValue']);for(const _0x415128 of _0x210fc8)Ee(_0x415128)||(_0x5cae09['removeMarker'](_0x415128['getFirstMarker']()),_0x44ddfa=!0x0);return _0x44ddfa;}['noTrackChangesFixer'](_0x4f9788){if(_0x4f9788['batch']['isUndo']||!_0x4f9788['batch']['isLocal'])return!0x1;const _0x4fbdeb=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4fbdeb['trackChangesCommand']['value'])return!0x1;let _0x3ae352=!0x1;const _0x3a5883=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3c919d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x48802c=>'attribute'==_0x48802c['type'])['filter'](_0x1f90d3=>_0x3a5883['includes'](_0x1f90d3['attributeKey']));if(0x0==_0x3c919d['length'])return _0x3ae352;for(const _0x334794 of _0x3c919d){const _0x55ac71=_0x4fbdeb['_findSuggestions'](_0x334794['range'],'attribute')['filter'](_0x6b84d6=>!_0x6b84d6['meta']['isNextTo'])['map'](_0x32eeb4=>_0x32eeb4['suggestion'])['filter'](_0x2b6131=>{const _0x5271d9=_0x4fbdeb['_getAttributeKey'](_0x2b6131);return _0x3a5883['includes'](_0x5271d9);});if(_0x55ac71['length']){for(const _0x56051f of _0x55ac71)_0x4f9788['removeMarker'](_0x56051f['getFirstMarker']());_0x3ae352=!0x0;}}return _0x3ae352;}['assureChains'](){const _0x13a0dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc597f7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1ff0a1;const _0x120a20=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x539078=>{if(_0x539078['data']['oldRange']||!_0x539078['data']['newRange'])return null;if(!_0x539078['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x307a86}=_0x13a0dd['_splitMarkerName'](_0x539078['name']);if(!_0x13a0dd['hasSuggestion'](_0x307a86))return null;const _0x2504bc=_0x13a0dd['getSuggestion'](_0x307a86);return _0xc597f7['includes'](_0x2504bc['data']['key']);})['map'](_0x5b35d6=>{const {id:_0x8f2ba8}=_0x13a0dd['_splitMarkerName'](_0x5b35d6['name']),_0x26e77e=_0x13a0dd['getSuggestion'](_0x8f2ba8);return _0x1ff0a1=_0x26e77e['attributes']['groupId'],_0x26e77e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x120a20['size'])return;const _0x545a27=_0x13a0dd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xabbe80=>'attribute'==_0xabbe80['type']&&_0xabbe80['data']&&_0xc597f7['includes'](_0xabbe80['data']['key'])&&_0xabbe80['attributes']['groupId']!=_0x1ff0a1)['map'](_0x209e3e=>({'listItem':_0x209e3e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x209e3e['attributes']['groupId']})),_0x39f4aa=new Set();for(const {groupId:_0x31a8e7,listItem:_0x28ff90}of _0x545a27)_0x120a20['has'](_0x28ff90)&&_0x39f4aa['add'](_0x31a8e7);for(const _0x10dc97 of _0x13a0dd['getSuggestions']())_0x39f4aa['has'](_0x10dc97['attributes']['groupId'])&&_0x10dc97['setAttribute']('groupId',_0x1ff0a1);}['_supportLegacySuggestions'](){const _0x250272=this['editor'],_0x4d8109=_0x250272['locale'],_0x27d8c5=_0x250272['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x27d8c5['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1030c7,_0x274a22){const _0x67c221=[];for(let _0x58dfb3 of _0x1030c7)_0x58dfb3['start']['nodeAfter']===_0x58dfb3['end']['parent']&&(_0x58dfb3=_0x250272['model']['createRange'](_0x250272['model']['createPositionAt'](_0x58dfb3['start']['nodeAfter'],0x0))),_0x67c221['push'](_0x58dfb3);_0x250272['model']['change'](_0x4fc11f=>{const _0x1c342d=_0x250272['model']['document']['selection'],_0x412d77=Array['from'](_0x1c342d['getRanges']())['map'](_0x11a34f=>_0x531671['fromRange'](_0x11a34f));_0x4fc11f['setSelection'](_0x67c221),_0x250272['commands']['get'](_0x274a22['commandName'])['refresh'](),_0x274a22['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x250272['execute'](_0x274a22['commandName'],..._0x274a22['commandParams']),_0x4fc11f['setSelection'](_0x412d77);for(const _0x48d9c4 of _0x412d77)_0x48d9c4['detach']();});}),_0x27d8c5['descriptionFactory']['registerElementLabel'](function(_0x56f1da){const _0x31b033=!_0x250272['model']['schema']['isObject'](_0x56f1da),_0x239e42=_0x56f1da['previousSibling'],_0x459e76=_0x56f1da['nextSibling'],_0x26a99c=_0x56f1da['getAttribute']('listItemId'),_0x52b89a=!_0x239e42||_0x239e42['getAttribute']('listItemId')!==_0x26a99c,_0x522db4=!_0x459e76||_0x459e76['getAttribute']('listItemId')!==_0x26a99c;return _0x31b033&&Boolean(_0x26a99c)&&_0x52b89a&&_0x522db4;},_0x49d751=>o(_0x4d8109,'ELEMENT_LIST_ITEM',_0x49d751));}['_registerLegacyDescription'](){const _0x481136=this['editor'],_0x4ee967=_0x481136['locale'];function _0x262606(_0x2ca39d){const _0x3f9c7d=_0x481136['commands']['get']('bulletedList')['value'],_0x305bd0=_0x481136['commands']['get']('numberedList')['value'];return'numberedList'===_0x2ca39d?_0x3f9c7d:_0x305bd0;}_0x481136['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x81a16e){if('formatBlock'!=_0x81a16e['type'])return;const {data:_0x618428}=_0x81a16e;if(!_0x618428)return;let _0x50fdf7,_0x3a2fc4,_0x52700a,_0x29f8c6;switch(_0x618428['commandName']){case'bulletedList':_0x52700a=_0x618428['commandParams'][0x0]['forceValue'],_0x29f8c6=_0x262606(_0x618428['commandName']),_0x50fdf7=_0x52700a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x29f8c6&&_0x481136['config']['get']('list.multiBlock')||(_0x50fdf7='*Change\x20to:*\x20%0'),_0x3a2fc4={'type':'format','content':o(_0x4ee967,_0x50fdf7,o(_0x4ee967,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x52700a=_0x618428['commandParams'][0x0]['forceValue'],_0x29f8c6=_0x262606(_0x618428['commandName']),_0x50fdf7=_0x52700a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x29f8c6&&_0x481136['config']['get']('list.multiBlock')||(_0x50fdf7='*Change\x20to:*\x20%0'),_0x3a2fc4={'type':'format','content':o(_0x4ee967,_0x50fdf7,o(_0x4ee967,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x50fdf7='*Indent:*\x20%0',_0x3a2fc4={'type':'format','content':o(_0x4ee967,_0x50fdf7,o(_0x4ee967,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x50fdf7=function(_0x404bd8){const _0x596e73=_0x404bd8['getFirstRange']();let _0x280209=_0x596e73['start']['nodeAfter'];for(;_0x280209&&_0x596e73['containsItem'](_0x280209);){if(_0x280209['getAttribute']('listIndent')>0x0)return!0x1;_0x280209=_0x280209['nextSibling'];}return!0x0;}(_0x81a16e)?o(_0x4ee967,'*Format:*\x20remove\x20from\x20%0',o(_0x4ee967,function(_0x2d93a0){return'ELEMENT_'+_0x2d93a0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x81a16e))):o(_0x4ee967,'*Outdent:*\x20%0',o(_0x4ee967,'ELEMENT_LIST_ITEM')),_0x3a2fc4={'type':'format','content':_0x50fdf7};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x618428['multipleBlocks']&&(_0x50fdf7='*Merge:*\x20%0',_0x3a2fc4={'type':'deletion','content':o(_0x4ee967,_0x50fdf7,o(_0x4ee967,'ELEMENT_LIST_ITEM'))});}return _0x3a2fc4;});}}function Ee(_0x537873){let _0x59b022=_0x537873['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x59b022;){const _0x2502f3=_0x59b022['getAttribute']('listItemId');if(!_0x2502f3)return!0x1;if(_0x2502f3==_0x537873['data']['newValue'])return'newValue';if(_0x2502f3==_0x537873['data']['oldValue'])return'oldValue';_0x59b022=_0x59b022['previousSibling'];}return!0x1;}class pe extends _0x409965{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x309ead=this['editor']['config']['get']('list.properties'),_0x4e718c=this['editor']['plugins']['get']('TrackChangesEditing');_0x309ead['styles']&&(_0x4e718c['enableDefaultAttributesIntegration']('listStyle'),_0x4e718c['registerBlockAttribute']('listStyle')),_0x309ead['reversed']&&(_0x4e718c['enableDefaultAttributesIntegration']('listReversed'),_0x4e718c['registerBlockAttribute']('listReversed')),_0x309ead['startIndex']&&(_0x4e718c['enableDefaultAttributesIntegration']('listStart'),_0x4e718c['registerBlockAttribute']('listStart'));const _0x3be95b={'type':'format','content':''};_0x4e718c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xace206=this['editor']['locale'];_0x4e718c['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xace206,'FORMAT_LIST_REVERSED')),_0x4e718c['descriptionFactory']['registerDescriptionCallback'](_0x5e462f=>{const {data:_0x47c049}=_0x5e462f;if(_0x47c049&&'listReversed'==_0x47c049['key'])return null==_0x47c049['newValue']||0x0==_0x47c049['newValue']&&null==_0x47c049['oldValue']?_0x3be95b:void 0x0;}),_0x4e718c['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xace206,'FORMAT_LIST_START')),_0x4e718c['descriptionFactory']['registerDescriptionCallback'](_0x24596e=>{const {data:_0x264f22}=_0x24596e;if(_0x264f22&&'listStart'==_0x264f22['key'])return null==_0x264f22['newValue']||0x1==_0x264f22['newValue']&&null==_0x264f22['oldValue']?_0x3be95b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4fc852=>{if(_0x4fc852['batch']['isUndo'])return!0x1;let _0x1cd186=!0x1;const _0x5194df=_0x4e718c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x287ba4=>{const _0x13f86f=_0x4e718c['_getAttributeKey'](_0x287ba4);return'listStart'==_0x13f86f||'listReversed'==_0x13f86f;});for(const _0x793b5c of _0x5194df){const _0xe3dfbf=_0x793b5c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xe3dfbf||'customNumbered'==_0xe3dfbf)continue;_0x4e718c['_findSuggestions'](_0x793b5c['getFirstRange'](),'attribute')['find'](_0xc1fc6f=>'listType'==_0x4e718c['_getAttributeKey'](_0xc1fc6f['suggestion']))||(_0x4fc852['removeMarker'](_0x793b5c['getFirstMarker']()),_0x1cd186=!0x0);}return _0x1cd186;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5838c3){const _0x52e0a2=this['editor']['locale'],{data:_0x4c5500}=_0x5838c3,_0x26b64b={'type':'format','content':''};if(!_0x4c5500||'listStyle'!=_0x4c5500['key'])return;if(!_0x4c5500['oldValue'])return'default'==_0x4c5500['newValue']?_0x26b64b:{'type':'format','content':''+o(_0x52e0a2,'*Set\x20format:*\x20%0',o(_0x52e0a2,this['_getTranslationKeyForListStyle'](_0x4c5500['newValue'])))};if(!_0x4c5500['newValue']){if('default'==_0x4c5500['oldValue'])return _0x26b64b;let _0x112d8c=_0x5838c3['head'];for(;_0x112d8c;){if(_0x112d8c['data']&&'listType'==_0x112d8c['data']['key']&&_0x112d8c['data']['newValue'])return _0x26b64b;_0x112d8c=_0x112d8c['next'];}return{'type':'format','content':''+o(_0x52e0a2,'*Remove\x20format:*\x20%0',o(_0x52e0a2,this['_getTranslationKeyForListStyle'](_0x4c5500['oldValue'])))};}if('default'!=_0x4c5500['newValue'])return{'type':'format','content':''+o(_0x52e0a2,'*Set\x20format:*\x20%0',o(_0x52e0a2,this['_getTranslationKeyForListStyle'](_0x4c5500['newValue'])))};let _0x3090f7=_0x5838c3['head'];for(;_0x3090f7;){if(_0x3090f7['data']&&'listType'==_0x3090f7['data']['key']&&_0x3090f7['data']['newValue']&&_0x3090f7['data']['oldValue'])return _0x26b64b;_0x3090f7=_0x3090f7['next'];}return{'type':'format','content':o(_0x52e0a2,'*Set\x20format:*\x20%0',o(_0x52e0a2,'ELEMENT_'+_0x5838c3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x15e457=this['editor'],_0xeac104=_0x15e457['locale'];_0x15e457['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22b642=>{if('formatBlock'!=_0x22b642['type'])return;const {data:_0x433775}=_0x22b642;if(!_0x433775)return;let _0x36de6a,_0x1aefa7;switch(_0x433775['commandName']){case'listStyle':_0x36de6a='*Change\x20to:*\x20%0',_0x1aefa7={'type':'format','content':o(_0xeac104,_0x36de6a,o(_0xeac104,this['_getTranslationKeyForListStyle'](_0x433775['commandParams'][0x0]['type'])))};break;case'listReversed':_0x36de6a=_0x433775['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1aefa7={'type':'format','content':o(_0xeac104,_0x36de6a)};break;case'listStart':_0x36de6a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1aefa7={'type':'format','content':o(_0xeac104,_0x36de6a,_0x433775['commandParams'][0x0]['startIndex'])};}return _0x1aefa7;});}['_getTranslationKeyForListStyle'](_0x582bfb){return'ELEMENT_'+function(_0x39bbd1){if(ye['includes'](_0x39bbd1))return'bulleted';if(Se['includes'](_0x39bbd1))return'numbered';return null;}(_0x582bfb)['toUpperCase']()+'_LIST_'+_0x582bfb['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x409965{static get['requires'](){return[_0x3d721a];}['init'](){const _0x34556d=this['editor'],_0x15eac6=_0x34556d['plugins']['get']('TrackChangesEditing'),_0xb7f6df=_0x34556d['commands']['get']('enter');_0x15eac6['enableCommand']('enter',()=>{_0x34556d['model']['change'](_0x10d470=>{const _0x21cc98=_0x34556d['model']['document']['selection'],_0x3a827c=_0x21cc98['getFirstPosition'](),_0x83a4b1=_0x531671['fromRange'](_0x21cc98['getFirstRange']());if(_0xb7f6df['enterBlock'](_0x10d470)){const _0x19980b=_0x34556d['model']['createPositionAt'](_0x3a827c['parent']['nextSibling'],0x0),_0x12435b=_0x10d470['createRange'](_0x3a827c,_0x19980b);_0x15eac6['markInsertion'](_0x12435b);}else _0x10d470['setSelection'](_0x10d470['createRange'](_0x83a4b1['end']));_0x83a4b1['detach'](),_0xb7f6df['fire']('afterExecute',{'writer':_0x10d470});});}),_0x34556d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x34556d,'split'),{'priority':'high'}),_0x34556d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x383bd1,_0x4c7b1c,_0x39a083)=>{const _0x2ac800=_0x39a083['mapper']['markerNameToElements'](_0x4c7b1c['markerName']);if(_0x2ac800){for(const _0x5c0aa6 of _0x2ac800)_0x5c0aa6['hasClass']('ck-suggestion-marker-split')&&(_0x39a083['mapper']['unbindElementFromMarkerName'](_0x5c0aa6,_0x4c7b1c['markerName']),_0x39a083['writer']['remove'](_0x5c0aa6));}},{'priority':'high'}),_0x34556d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x320db4,_0x188247,_0xee49be)=>{_0xee49be['options']['showSuggestionHighlights']&&_e(_0x34556d,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x320db4,_0x188247,_0xee49be);},{'priority':'high'});}}class X extends _0x409965{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4b0d9c=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b0d9c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4b0d9c['enableCommand']('findNext'),_0x4b0d9c['enableCommand']('findPrevious'),_0x4b0d9c['enableCommand']('replace'),_0x4b0d9c['enableCommand']('replaceAll');}['handleFindCommand'](_0x97a3e1,_0x26faf9,_0x16e29d={}){const _0x480349=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x97a3e1(_0x274fcd=>{let _0xd33d3=('string'==typeof _0x26faf9?_0x480349['findByTextCallback'](_0x26faf9,_0x16e29d):_0x26faf9)(_0x274fcd);Array['isArray'](_0xd33d3)&&(_0xd33d3={'results':_0xd33d3,'searchText':'string'==typeof _0x26faf9?_0x26faf9:''});const _0x4d67d3=_0xd33d3['results']['filter'](_0x293543=>!0x1===this['_isInDeletionRange'](_0x293543,_0x274fcd['item']));return{..._0xd33d3,'results':_0x4d67d3};},_0x16e29d);}['_isInDeletionRange'](_0x219bce,_0x469714){const _0x510fe5=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x469714,_0x219bce['start']),this['editor']['model']['createPositionAt'](_0x469714,_0x219bce['end']));for(const _0x10fb1c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x510fe5['getIntersection'](_0x10fb1c['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x409965{['afterInit'](){const _0x2290b1=this['editor']['locale'],_0x4836ab=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1d8f81,commandName:_0x26bd67}of ro)this['editor']['plugins']['has'](_0x1d8f81)&&(_0x4836ab['enableDefaultAttributesIntegration'](_0x26bd67),_0x4836ab['registerInlineAttribute'](_0x26bd67));_0x4836ab['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2290b1,'FORMAT_FONT_SIZE')),_0x4836ab['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2290b1,'FORMAT_FONT_FAMILY')),_0x4836ab['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2290b1,'FORMAT_FONT_COLOR')),_0x4836ab['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2290b1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb579db=this['editor'],_0x527be7=_0xb579db['locale'];_0xb579db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bd340=>{const _0xeabbbd=_0x527be7['t'];if('formatInline'!=_0x2bd340['type'])return;const {data:_0x2f32ff}=_0x2bd340;if(null!=_0x2f32ff){if('fontSize'==_0x2f32ff['commandName']){const _0x415bbf=_0x2f32ff['commandParams'][0x0]['value'];if(_0x415bbf){const _0x49b0ea=_0xeabbbd(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x42af5d=>_0x42af5d['model']==_0x415bbf)['title'])['toLowerCase']();return{'type':'format','content':o(_0x527be7,'*Set\x20font\x20size:*\x20%0',_0x49b0ea)};}return{'type':'format','content':o(_0x527be7,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2f32ff['commandName']){const _0x55915e=_0x2f32ff['commandParams'][0x0]['value'];return _0x55915e?{'type':'format','content':o(_0x527be7,'*Set\x20font\x20family:*\x20%0',_0x55915e)}:{'type':'format','content':o(_0x527be7,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2f32ff['commandName']){const _0x4c5ebd=_0x2f32ff['commandParams'][0x0]['value'];if(_0x4c5ebd){const _0x268546=_0x757e03(this['editor']['config']['get']('fontColor.colors'))['find'](_0x136600=>_0x136600['model']==_0x4c5ebd);let _0x19c1bf=_0x4c5ebd,_0x3f29ed='';return _0x268546&&(_0x19c1bf=_0x268546['label'],_0x3f29ed=_0xeabbbd(_0x19c1bf)['toLowerCase']()),{'type':'format','content':o(_0x527be7,'*Set\x20font\x20color:*\x20%0',_0x3f29ed)['trim'](),'color':{'value':_0x4c5ebd,'title':_0x3f29ed||_0x19c1bf}};}return{'type':'format','content':o(_0x527be7,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2f32ff['commandName']){const _0x5cbd2e=_0x2f32ff['commandParams'][0x0]['value'];if(_0x5cbd2e){const _0x2980a9=_0x757e03(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x288460=>_0x288460['model']==_0x5cbd2e);let _0x7d3455=_0x5cbd2e,_0x74669a='';return _0x2980a9&&(_0x7d3455=_0x2980a9['label'],_0x74669a=_0xeabbbd(_0x7d3455)['toLowerCase']()),{'type':'format','content':o(_0x527be7,'*Set\x20font\x20background\x20color:*\x20%0',_0x74669a)['trim'](),'color':{'value':_0x5cbd2e,'title':_0x74669a||_0x7d3455}};}return{'type':'format','content':o(_0x527be7,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x409965{['afterInit'](){const _0x228073=this['editor'],_0x5d33c1=_0x228073['plugins']['get']('TrackChangesEditing'),_0x40e11c=_0x228073['commands']['get']('copyFormat'),_0x310fd7=_0x228073['commands']['get']('pasteFormat');_0x40e11c&&_0x310fd7&&(_0x5d33c1['enableDefaultAttributesIntegration']('pasteFormat'),_0x5d33c1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4336d5=this['editor'],_0x16a31e=_0x4336d5['locale'];_0x4336d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28d042=>{if('formatBlock'!=_0x28d042['type']&&'formatInline'!=_0x28d042['type'])return;const {data:_0x138224}=_0x28d042;if(_0x138224&&'pasteFormat'===_0x138224['commandName']){const _0x19e9df=[],_0x1ac7fb=_0x138224['commandParams'][0x0];for(const [_0x219d86,_0x526558]of Object['entries'](_0x1ac7fb))_0x19e9df['push'](so(_0x4336d5,_0x219d86,_0x526558));return _0x19e9df['length']?{'type':'format','content':o(_0x16a31e,'*Set\x20format\x20to:*\x20%0',_0x19e9df['join'](',\x20'))}:{'type':'format','content':o(_0x16a31e,'*Remove\x20all\x20formatting*')};}});}}function so(_0xe048eb,_0x3cbbcf,_0x4e0d06){const _0x4309ef=_0xe048eb['locale']['t'],_0x3d5a46=_0x3cbbcf['split'](/(?=[A-Z])/)['join']('\x20'),_0xb4f73d=_0x4309ef(_0x3d5a46['charAt'](0x0)['toUpperCase']()+_0x3d5a46['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4e0d06)return _0xb4f73d;if('fontColor'===_0x3cbbcf||'fontBackgroundColor'===_0x3cbbcf){const _0x198e9f=_0x757e03(_0xe048eb['config']['get']('fontColor.colors'))['find'](_0x29878e=>_0x29878e['model']==_0x4e0d06);return _0xb4f73d+'\x20('+(_0x198e9f?_0x4309ef(_0x198e9f['label'])['toLowerCase']():_0x4e0d06)+')';}if('fontSize'===_0x3cbbcf&&isNaN(parseFloat(_0x4e0d06))){const _0x133736=_0xe048eb['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xe048eb['config']['get']('fontSize.options'))['find'](_0x528c10=>_0x528c10['model']==_0x4e0d06);return _0xb4f73d+'\x20('+(_0x133736?_0x4309ef(_0x133736['title'])['toLowerCase']():_0x4e0d06)+')';}return _0xb4f73d+'\x20('+_0x4e0d06+')';}class tt extends _0x409965{['_headingOptions'];['afterInit'](){const _0x3f60c6=this['editor'];if(!_0x3f60c6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3f60c6['config']['get']('heading.options');const _0x1cfe68=_0x3f60c6['locale'],_0x47bd3a=_0x3f60c6['plugins']['get']('TrackChangesEditing');_0x47bd3a['enableDefaultAttributesIntegration']('heading');for(const _0x1c315c of this['_headingOptions'])'paragraph'!=_0x1c315c['model']&&_0x47bd3a['descriptionFactory']['registerElementLabel'](_0x1c315c['model'],_0xcedbd=>{const _0x4c830c=this['_getHeadingLevel'](_0x1c315c['model']);return null!==_0x4c830c?_0x186204(_0xcedbd,_0x4c830c):_0x504bf2(_0xcedbd,_0x1c315c['title']);});function _0x186204(_0x4e3a4f,_0xc23351){return o(_0x1cfe68,'ELEMENT_HEADING',[_0x4e3a4f,_0xc23351]);}function _0x504bf2(_0x1685d8,_0x2309ff){return o(_0x1cfe68,'ELEMENT_HEADING_CUSTOM',[_0x1685d8,_0x2309ff]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c2c07=this['editor'],_0x48cf01=_0x2c2c07['locale'];function _0x3389a0(_0x5783d6,_0x13a2c9){return o(_0x48cf01,'ELEMENT_HEADING_CUSTOM',[_0x5783d6,_0x13a2c9]);}_0x2c2c07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5306e1=>{if('formatBlock'!=_0x5306e1['type'])return;const {data:_0x3deb06}=_0x5306e1;if(_0x3deb06&&'heading'==_0x3deb06['commandName']){const _0x501a4e=_0x3deb06['commandParams'][0x0]['value'],_0x1fa265=this['_getHeadingLevel'](_0x501a4e);if(null!==_0x1fa265)return{'type':'format','content':o(_0x48cf01,'*Change\x20to:*\x20%0',(_0x42cace=0x1,_0x5f23ed=_0x1fa265,o(_0x48cf01,'ELEMENT_HEADING',[_0x42cace,_0x5f23ed])))};const _0x55e4d1=this['_headingOptions']['find'](_0xd1b9e9=>_0xd1b9e9['model']===_0x501a4e)['title'];return{'type':'format','content':o(_0x48cf01,'*Change\x20to:*\x20%0',_0x3389a0(0x1,_0x55e4d1))};}var _0x42cace,_0x5f23ed;});}['_getHeadingLevel'](_0xdfae0f){const _0x38eef7=_0xdfae0f['match'](/^heading(\d+)/);if(_0x38eef7)return _0x38eef7[0x1];const _0x4bd1ad=this['_headingOptions']?.['find'](_0x3f959b=>_0x3f959b['model']==_0xdfae0f);if(_0x4bd1ad&&_0x4bd1ad['view']){const _0x3294bd=_0x4bd1ad['view'],_0x1fbb10=(_0x3294bd['name']??_0x3294bd)['match'](/^h(\d+)/);if(_0x1fbb10)return _0x1fbb10[0x1];}return null;}}class et extends _0x409965{['afterInit'](){const _0x8bd2c0=this['editor'];if(!_0x8bd2c0['plugins']['has']('HighlightEditing'))return;const _0x4396d6=_0x8bd2c0['plugins']['get']('TrackChangesEditing'),_0x90fd1d=_0x8bd2c0['locale'];_0x4396d6['enableDefaultAttributesIntegration']('highlight'),_0x4396d6['registerInlineAttribute']('highlight'),_0x4396d6['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x90fd1d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d385a=this['editor'],_0x4c8254=_0x5d385a['locale'];_0x5d385a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b1dd5=>{if('formatInline'!=_0x3b1dd5['type'])return;const {data:_0x5aeeeb}=_0x3b1dd5;if(_0x5aeeeb&&'highlight'==_0x5aeeeb['commandName']){const _0x5b63fb=_0x4c8254['t'],_0x177504=_0x5aeeeb['commandParams'][0x0]['value'];if(_0x177504){const _0x5ee5a5=_0x5d385a['config']['get']('highlight.options')['find'](_0xc0194c=>_0xc0194c['model']==_0x177504),_0x414775=_0x5b63fb(_0x5ee5a5['title'])['toLowerCase']();return{'type':'format','content':o(_0x4c8254,'*Set\x20highlight:*\x20%0',_0x414775),'color':{'value':_0x5ee5a5['color'],'title':_0x5ee5a5['title']}};}return{'type':'format','content':o(_0x4c8254,'*Remove\x20highlight*',o(_0x4c8254,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x409965{['afterInit'](){const _0x42bd53=this['editor'];if(!_0x42bd53['plugins']['has']('HorizontalLineEditing'))return;_0x42bd53['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x163134=_0x42bd53['plugins']['get']('TrackChangesEditing'),_0x4ee655=_0x42bd53['locale'];_0x163134['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2d9e92=>o(_0x4ee655,'ELEMENT_HORIZONTAL_LINE',_0x2d9e92)),_0x42bd53['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1b7894,{writer:_0x3b0b31,options:_0x286b25})=>{if(!_0x286b25['showSuggestionHighlights'])return null;const _0x1db7ba=_0x3b0b31['createContainerElement']('div'),_0x4f1ee8=_0x3b0b31['createEmptyElement']('hr');return _0x3b0b31['addClass']('ck-horizontal-line',_0x1db7ba),_0x3b0b31['insert'](_0x3b0b31['createPositionAt'](_0x1db7ba,0x0),_0x4f1ee8),_0x1db7ba;},'converterPriority':'high'});}}class st extends _0x409965{['afterInit'](){const _0x1e5dd4=this['editor'];if(!_0x1e5dd4['plugins']['has']('HtmlEmbed'))return;const _0x5d8356=_0x1e5dd4['plugins']['get']('TrackChangesEditing'),_0xabde66=_0x1e5dd4['locale'];_0x5d8356['descriptionFactory']['registerElementLabel']('rawHtml',_0x5f5a97=>o(_0xabde66,'ELEMENT_HTML_EMBED',_0x5f5a97)),_0x5d8356['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5d8356['registerBlockAttribute']('value'),_0x5d8356['descriptionFactory']['registerDescriptionCallback'](_0x53e5f2=>{if('attribute'!=_0x53e5f2['type'])return;const {data:_0x2146a2}=_0x53e5f2;if(_0x2146a2&&'value'==_0x2146a2['key']&&_0x53e5f2['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4f2d5f=o(_0xabde66,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xabde66,'*Change\x20%0\x20content*',_0x4f2d5f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c2f04=this['editor'],_0x53ef07=_0x5c2f04['locale'];_0x5c2f04['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3373ce=>{if('formatBlock'!=_0x3373ce['type'])return;const {data:_0x445093}=_0x3373ce;if(_0x445093&&'htmlEmbed'==_0x445093['commandName']){const _0x167139=o(_0x53ef07,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x53ef07,'*Change\x20%0\x20content*',_0x167139)};}});}}class nt extends _0x409965{['afterInit'](){const _0x1e2459=this['editor'];if(!_0x1e2459['plugins']['has']('ImageEditing'))return;const _0x393e51=_0x1e2459['plugins']['get']('TrackChangesEditing'),_0x2008c0=_0x1e2459['plugins']['get']('ImageUtils'),_0xe3c458=_0x1e2459['locale'];_0x393e51['enableCommand']('insertImage'),_0x393e51['descriptionFactory']['registerElementLabel']('imageBlock',_0x54ff89=>o(_0xe3c458,'ELEMENT_IMAGE',_0x54ff89)),_0x393e51['descriptionFactory']['registerElementLabel']('imageInline',_0xa613c9=>o(_0xe3c458,'ELEMENT_INLINE_IMAGE',_0xa613c9)),_0x393e51['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xe3c458,'ELEMENT_CAPTION')),_0x1e2459['plugins']['has']('ImageUploadEditing')&&_0x393e51['enableCommand']('uploadImage'),_0x1e2459['plugins']['has']('ImageBlockEditing')&&_0x1e2459['plugins']['has']('ImageInlineEditing')&&(_0x393e51['enableCommand']('imageTypeInline',(_0x2ec814,_0x56eec5)=>{const _0x42a16c=_0x2008c0['getClosestSelectedImageElement'](_0x1e2459['model']['document']['selection']);_0x1e2459['model']['change'](()=>{_0x393e51['markBlockFormat'](_0x42a16c,{'commandName':'imageTypeInline','commandParams':[_0x56eec5]},[],'convertBlockImageToInline');});}),_0x393e51['enableCommand']('imageTypeBlock',(_0x498669,_0x384efb)=>{_0x1e2459['model']['change'](_0x4eeb36=>{let _0x3636d7=_0x2008c0['getClosestSelectedImageElement'](_0x1e2459['model']['document']['selection']),_0x39e3de=_0x4eeb36['createRangeOn'](_0x3636d7);const _0x3ca86e=_0x3b38bf['fromPosition'](_0x39e3de['start'],'toPrevious'),_0x3f5a9f=_0x3b38bf['fromPosition'](_0x39e3de['end'],'toNext');_0x393e51['forceDefaultExecution'](()=>_0x498669(_0x384efb)),_0x3636d7=_0x2008c0['getClosestSelectedImageElement'](_0x1e2459['model']['document']['selection']),_0x39e3de=_0x4eeb36['createRangeOn'](_0x3636d7);const _0x4ddad6=_0x4eeb36['createRange'](_0x3ca86e,_0x3f5a9f);_0x3ca86e['detach'](),_0x3f5a9f['detach'](),_0x393e51['markBlockFormat'](_0x3636d7,{'commandName':'imageTypeInline','commandParams':[_0x384efb]},[],'convertInlineImageToBlock'),_0x4ddad6['start']['isBefore'](_0x39e3de['start'])&&_0x393e51['markInsertion'](_0x4eeb36['createRange'](_0x4ddad6['start'],_0x39e3de['start']),'convertInlineImageToBlock'),_0x39e3de['end']['isBefore'](_0x4ddad6['end'])&&_0x393e51['markInsertion'](_0x4eeb36['createRange'](_0x39e3de['end'],_0x4ddad6['end']),'convertInlineImageToBlock');});}),_0x393e51['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x393e51['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x393e51['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x393e51['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x393e51['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x393e51['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x393085])=>{const _0x17fc9c=_0x393e51['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x342fd7=_0x393085['start'],_0x308308=_0x393085['end'];const _0x4139f6=_0x1e2459['model']['schema']['getNearestSelectionRange'](_0x342fd7,'backward'),_0x57e8ff=_0x1e2459['model']['schema']['getNearestSelectionRange'](_0x308308,'forward');_0x4139f6['isCollapsed']&&(_0x342fd7=_0x4139f6['start']),_0x57e8ff['isCollapsed']&&(_0x308308=_0x57e8ff['end']),_0x17fc9c([_0x1e2459['model']['createRange'](_0x342fd7,_0x308308)]);}),_0x393e51['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3a8ab1),_0x393e51['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3a8ab1)),_0x1e2459['plugins']['has']('ImageCaptionEditing')&&(_0x393e51['enableCommand']('toggleImageCaption',(_0x512833,_0x2f566a)=>{const _0x5356e4=_0x1e2459['plugins']['get']('ImageCaptionUtils');let _0x700898=_0x2008c0['getClosestSelectedImageElement'](_0x1e2459['model']['document']['selection']),_0x280260=_0x5356e4['getCaptionFromImageModelElement'](_0x700898);_0x1e2459['model']['change'](()=>{if(_0x280260)return void _0x393e51['markDeletion'](_0x1e2459['model']['createRangeOn'](_0x280260));const _0x245651=_0x2008c0['isBlockImage'](_0x700898);_0x512833(_0x2f566a),_0x700898=_0x2008c0['getClosestSelectedImageElement'](_0x1e2459['model']['document']['selection']),_0x280260=_0x5356e4['getCaptionFromImageModelElement'](_0x700898),_0x393e51['markInsertion'](_0x1e2459['model']['createRangeOn'](_0x280260),_0x245651?null:'imageCaption');});}),_0x393e51['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3a8ab1));const _0x171434=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3bce04(_0x479b07,_0x51021e){const _0xaac02b=_0x171434['findIndex'](({type:_0x4c828e,subType:_0xc4c84b})=>_0x479b07['type']==_0x4c828e&&_0x479b07['subType']==_0xc4c84b),_0x2aa35b=_0x171434['findIndex'](({type:_0x32259b,subType:_0x30f99e})=>_0x51021e['type']==_0x32259b&&_0x51021e['subType']==_0x30f99e);if(_0xaac02b<0x0||_0x2aa35b<0x0)return!0x1;const _0x48d0bd=_0x479b07['getFirstRange'](),_0x128874=_0x51021e['getFirstRange']();if((0x0==_0xaac02b||0x1==_0xaac02b)&&0x2==_0x2aa35b&&_0x48d0bd['isIntersecting'](_0x128874))return!0x0;if(0x2==_0xaac02b&&0x3==_0x2aa35b){const _0x3672c2=_0x393e51['_findSuggestions'](_0x48d0bd,'insertion')['filter'](({suggestion:_0x3281ef,meta:_0xd4fdcb})=>_0xd4fdcb['isOwn']&&'convertInlineImageToBlock'==_0x3281ef['subType']);if(_0x3672c2['length']>0x1&&_0x128874['end']['isEqual'](_0x48d0bd['start']))return!0x0;if(0x1==_0x3672c2['length']&&(_0x48d0bd['start']['isEqual'](_0x128874['end'])||_0x48d0bd['end']['isEqual'](_0x128874['start'])))return!0x0;}if(0x3==_0xaac02b&&0x3==_0x2aa35b&&_0x48d0bd['start']['isBefore'](_0x128874['start'])){const _0x20c2ab=_0x48d0bd['end']['nodeAfter'],_0x4eef54=_0x128874['start']['nodeBefore'];return _0x2008c0['isBlockImage'](_0x20c2ab)&&_0x20c2ab===_0x4eef54;}return!0x1;}function _0x3a8ab1(_0x41eeb5,_0x5c5332){return _0x3bce04(_0x41eeb5,_0x5c5332)?[_0x41eeb5,_0x5c5332]:_0x3bce04(_0x5c5332,_0x41eeb5)?[_0x5c5332,_0x41eeb5]:null;}_0x1e2459['plugins']['has']('ImageResize')&&(_0x393e51['enableDefaultAttributesIntegration']('resizeImage'),_0x393e51['registerBlockAttribute']('resizedWidth'),_0x393e51['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xe3c458,'FORMAT_IMAGE_SIZE'))),_0x1e2459['plugins']['has']('ImageTextAlternativeEditing')&&(_0x393e51['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x393e51['registerBlockAttribute']('alt')),_0x393e51['descriptionFactory']['registerDescriptionCallback'](_0x395a36=>{if(!!_0x171434['find'](({type:_0x50c72f,subType:_0x2c540d})=>_0x395a36['type']==_0x50c72f&&_0x395a36['subType']==_0x2c540d))return _0x395a36['previous']?{}:void 0x0;}),_0x393e51['descriptionFactory']['registerDescriptionCallback'](_0x111e0b=>{if('insertion'==_0x111e0b['type']||'deletion'==_0x111e0b['type']){const _0x572cdc=_0x111e0b['getContainedElement']();if(_0x572cdc&&_0x572cdc['is']('element','caption'))return{'type':'insertion'==_0x111e0b['type']?'addObject':'removeObject','element':_0x572cdc,'quantity':0x1};}}),_0x393e51['descriptionFactory']['registerDescriptionCallback'](_0x4c4bf2=>'formatBlock'==_0x4c4bf2['type']&&'convertInlineImageToBlock'==_0x4c4bf2['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4c4bf2['type']&&'convertBlockImageToInline'==_0x4c4bf2['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x393e51['descriptionFactory']['registerDescriptionCallback'](_0x270177=>{if('attribute'!=_0x270177['type'])return;const {data:_0x5f4a47}=_0x270177;if(!_0x5f4a47||'alt'!=_0x5f4a47['key'])return;const _0xf7c14=_0x5f4a47['newValue'];return _0xf7c14?{'type':'format','content':o(_0xe3c458,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xf7c14+'\x22')}:{'type':'format','content':o(_0xe3c458,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cd0a9=this['editor'],_0xd16b59=_0x1cd0a9['locale'];_0x1cd0a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x458c95=>{if('formatBlock'!=_0x458c95['type']&&'formatInline'!=_0x458c95['type'])return;const {data:_0x4b018f}=_0x458c95;if(_0x4b018f){if('imageTextAlternative'==_0x4b018f['commandName']){const _0x275d4e=_0x4b018f['commandParams'][0x0]['newValue'];return _0x275d4e?{'type':'format','content':o(_0xd16b59,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x275d4e+'\x22')}:{'type':'format','content':o(_0xd16b59,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4b018f['commandName']){const _0x3d45cb=_0x4b018f['commandParams'][0x0]['width'];return _0x3d45cb?{'type':'format','content':o(_0xd16b59,'*Set\x20image\x20width:*\x20%0',_0x3d45cb)}:{'type':'format','content':o(_0xd16b59,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x409965{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3bab68=this['editor']['locale'],_0x1de969=this['editor']['plugins']['get']('TrackChangesEditing');_0x1de969['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1de969['registerBlockAttribute']('src'),_0x1de969['descriptionFactory']['registerDescriptionCallback'](_0x3ea9cb=>{if('attribute'!=_0x3ea9cb['type'])return;const {data:_0x3ca450}=_0x3ea9cb;return _0x3ca450&&'src'==_0x3ca450['key']?_0x3ca450['newValue']&&_0x3ca450['oldValue']?{'type':'format','content':o(_0x3bab68,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5d9d65=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d9d65['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5d9d65['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d9d65['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5d9d65['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d7218=this['editor'],_0x361ca7=_0x2d7218['locale'];_0x2d7218['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d68a4=>{if('formatBlock'!=_0x4d68a4['type']&&'formatInline'!=_0x4d68a4['type'])return;const {data:_0x4d9592}=_0x4d68a4;if(!_0x4d9592||'replaceImageSource'!=_0x4d9592['commandName'])return;return{'type':'format','content':o(_0x361ca7,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x409965{['afterInit'](){const _0x3bacb3=this['editor'];if(!_0x3bacb3['plugins']['has']('ImageStyleEditing'))return;const _0x16551c=_0x3bacb3['plugins']['get']('TrackChangesEditing'),_0x417d1b=_0x3bacb3['plugins']['get']('ImageUtils'),_0x2bfae9={};_0x16551c['enableCommand']('imageStyle',(_0x2932d0,_0x32330c)=>{const _0x3851ef=_0x3bacb3['plugins']['get']('Users')['me'],_0x30d6ef=_0x3bacb3['commands']['get']('imageStyle');let _0x54c640=_0x417d1b['getClosestSelectedImageElement'](_0x3bacb3['model']['document']['selection']),_0x49d346=_0x3bacb3['model']['createRangeOn'](_0x54c640),_0x12f9bd=_0x30d6ef['value'];if(_0x12f9bd==_0x32330c['value'])return;const _0x4595de={'commandName':'imageStyle','commandParams':[_0x32330c],'formatGroupId':_0x413213()};_0x3bacb3['model']['change'](()=>{if(_0x16551c['getSuggestions']()['filter'](_0x2bb863=>_0x2bb863['isInContent']&&_0x3851ef==_0x2bb863['author']&&('formatBlock'==_0x2bb863['type']||'formatInline'==_0x2bb863['type'])&&('imageStylePreApply'==_0x2bb863['subType']||'imageStylePostApply'==_0x2bb863['subType'])&&_0x2bb863['getFirstRange']()['isEqual'](_0x49d346))['forEach'](_0x2bda5f=>_0x16551c['discardSuggestion'](_0x2bda5f['head'])),_0x54c640=_0x417d1b['getClosestSelectedImageElement'](_0x3bacb3['model']['document']['selection']),_0x49d346=_0x3bacb3['model']['createRangeOn'](_0x54c640),_0x30d6ef['refresh'](),_0x3bacb3['commands']['get']('imageTypeInline')['refresh'](),_0x3bacb3['commands']['get']('imageTypeBlock')['refresh'](),_0x12f9bd=_0x30d6ef['value'],_0x12f9bd!=_0x32330c['value'])return _0x417d1b['isInlineImage'](_0x54c640)&&_0x30d6ef['shouldConvertImageType'](_0x32330c['value'],_0x54c640)?(_0x2932d0({..._0x32330c,'setImageSizes':!0x1}),_0x54c640=_0x417d1b['getClosestSelectedImageElement'](_0x3bacb3['model']['document']['selection']),void _0x16551c['markBlockFormat'](_0x54c640,{..._0x4595de,'commandReversedParams':[{'value':_0x12f9bd||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x417d1b['isBlockImage'](_0x54c640)?_0x16551c['markBlockFormat'](_0x54c640,_0x4595de,[],'imageStylePostApply'):_0x16551c['markInlineFormat'](_0x49d346,_0x4595de,'imageStylePostApply'));});});for(const _0x24b8e7 of _0x3bacb3['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2bfae9[_0x24b8e7['name']]=_0x24b8e7['title']['toLowerCase']();_0x16551c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x16551c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x16551c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x16551c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4b2616])=>{_0x417d1b['setImageNaturalSizeAttributes'](_0x4b2616['getContainedElement']());}),_0x16551c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x25484f,_0x99bff)=>{_0x16551c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x25484f,{'commandName':_0x99bff['commandName'],'commandParams':_0x99bff['commandReversedParams']});}),_0x16551c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1f6866,_0x52f5e7){if(_0x519599(_0x1f6866,_0x52f5e7))return[_0x1f6866,_0x52f5e7];if(_0x519599(_0x52f5e7,_0x1f6866))return[_0x52f5e7,_0x1f6866];return null;});const _0x51f0bd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x519599(_0x239c16,_0x447f4f){const _0x13e69b=_0x51f0bd['findIndex'](({type:_0x5ad5db,subType:_0x48e653})=>_0x239c16['type']==_0x5ad5db&&_0x239c16['subType']==_0x48e653),_0x1bc9fc=_0x51f0bd['findIndex'](({type:_0x263c4d,subType:_0x14f307})=>_0x447f4f['type']==_0x263c4d&&_0x447f4f['subType']==_0x14f307);if(_0x13e69b<0x0||_0x1bc9fc<0x0)return!0x1;const _0x162aa3=_0x239c16['getFirstRange'](),_0x45ec17=_0x447f4f['getFirstRange']();if((0x0==_0x13e69b||0x1==_0x13e69b)&&0x2==_0x1bc9fc&&_0x162aa3['isIntersecting'](_0x45ec17))return!0x0;if(0x2==_0x13e69b&&0x3==_0x1bc9fc){const _0x4db573=_0x16551c['_findSuggestions'](_0x162aa3,'insertion')['filter'](({suggestion:_0x1fc64f,meta:_0x400100})=>_0x400100['isOwn']&&'convertInlineImageToBlock'==_0x1fc64f['subType']);if(_0x4db573['length']>0x1&&_0x45ec17['end']['isEqual'](_0x162aa3['start']))return!0x0;if(0x1==_0x4db573['length']&&(_0x162aa3['start']['isEqual'](_0x45ec17['end'])||_0x162aa3['end']['isEqual'](_0x45ec17['start'])))return!0x0;}if(0x3==_0x13e69b&&0x3==_0x1bc9fc&&_0x162aa3['start']['isBefore'](_0x45ec17['start'])){const _0x1a54d0=_0x162aa3['end']['nodeAfter'],_0x5d4242=_0x45ec17['start']['nodeBefore'];return _0x417d1b['isBlockImage'](_0x1a54d0)&&_0x1a54d0===_0x5d4242;}return!0x1;}_0x3bacb3['model']['document']['registerPostFixer'](()=>{let _0x522e7a=!0x1;const _0x43f26d=Array['from'](_0x3bacb3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2e6466,data:_0x5f0829}of _0x43f26d){const {group:_0x33b0a3,type:_0x52ad5a,subType:_0x3199ea,id:_0x59a4a9}=_0x16551c['_splitMarkerName'](_0x2e6466);if('suggestion'==_0x33b0a3&&_0x16551c['hasSuggestion'](_0x59a4a9)){if('formatBlock'==_0x52ad5a&&('imageStylePreApply'==_0x3199ea||'imageStylePostApply'==_0x3199ea)){const _0x155cbf=_0x16551c['getSuggestion'](_0x59a4a9);if(_0x5f0829['newRange']){const _0x5b5668=_0x155cbf['getFirstRange']()['getContainedElement']();if(_0x417d1b['isBlockImage'](_0x5b5668))continue;_0x16551c['discardSuggestion'](_0x155cbf),_0x522e7a=!0x0;}}if('insertion'==_0x52ad5a&&'imageCaption'==_0x3199ea&&!_0x5f0829['newRange']){const _0x3e4189=_0x16551c['getSuggestion'](_0x59a4a9);_0x3e4189['next']&&_0x3e4189['next']['isInContent']&&(_0x16551c['discardSuggestion'](_0x3e4189['next']),_0x522e7a=!0x0);}}}return _0x522e7a;}),this['_registerLegacyDescription'](_0x2bfae9);}['_registerLegacyDescription'](_0x52f9c9){const _0x259ade=this['editor'],_0x8bd63a=_0x259ade['locale'];_0x259ade['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d6452=>{if('formatBlock'!=_0x3d6452['type']&&'formatInline'!=_0x3d6452['type'])return;const {data:_0x10d1a7}=_0x3d6452;if(!_0x10d1a7||'imageStyle'!=_0x10d1a7['commandName'])return;const _0x33963a=_0x10d1a7['commandParams'][0x0]['value'];return _0x3bd00b('side'===_0x33963a?o(_0x8bd63a,'FORMAT_SIDE_IMAGE'):_0x52f9c9[_0x33963a]||_0x33963a);function _0x3bd00b(_0x5df2ab){return{'type':'format','content':o(_0x8bd63a,'*Format:*\x20%0',_0x5df2ab)};}});}}class at extends _0x409965{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1e17ea){super(_0x1e17ea),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x918e06=this['editor'],_0x5b924f=_0x918e06['commands']['get']('importWord'),_0x192656=_0x918e06['commands']['get']('trackChanges');_0x5b924f&&(_0x5b924f['on']('execute',(_0x53ed10,[,_0x4d5db1])=>{this['_trackChangesValueDuringImport']=_0x192656['value'],_0x4d5db1['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5b924f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5b924f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x192656['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x918e06['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5e0c88,_0x254325){const {suggestions:_0x4bbc77}=_0x254325,_0x5173c3=this['editor']['commands']['get']('trackChanges'),_0x5daae5=_0x5173c3['value'];this['_trackChangesValueDuringImport']!==_0x5daae5&&(_0x5173c3['execute'](),this['_trackChangesExecuted']=!0x0),_0x4bbc77&&_0x4bbc77['forEach'](({id:_0x1f4be3,type:_0x3803b7,author:_0x172798,created_at:_0x234252})=>{const _0xf23a86={'id':_0x1f4be3,'type':_0x3803b7,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x172798,'createdAt':_0x234252?new Date(_0x234252):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xf23a86);});}}class ct extends _0x409965{['afterInit'](){const _0x258703=this['editor'],_0xa0dd4c=_0x258703['plugins']['get']('TrackChangesEditing');if(_0x258703['plugins']['has']('IndentEditing')&&(_0xa0dd4c['enableCommand']('indent'),_0xa0dd4c['enableCommand']('outdent')),_0x258703['plugins']['has']('IndentBlock')){for(const _0xfbdd20 of['indentBlock','outdentBlock'])_0xa0dd4c['enableDefaultAttributesIntegration'](_0xfbdd20);}const _0x2e6c24=_0x258703['locale'];_0xa0dd4c['registerBlockAttribute']('blockIndent'),_0xa0dd4c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2e6c24,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50920d=this['editor'],_0x37ca48=_0x50920d['locale'],_0x56295f=_0x50920d['plugins']['get']('TrackChangesEditing');_0x56295f['descriptionFactory']['registerDescriptionCallback'](_0x4d8b57=>{if('formatBlock'!=_0x4d8b57['type'])return;const {data:_0x1ba012}=_0x4d8b57;if(!_0x1ba012)return;if('indentBlock'!=_0x1ba012['commandName']&&'outdentBlock'!=_0x1ba012['commandName'])return;const _0x42d81f=_0x4d8b57['getItems']()[0x0],_0x39c97b=_0x56295f['descriptionFactory']['getItemLabel'](_0x42d81f);return'indentBlock'==_0x1ba012['commandName']?{'type':'format','content':o(_0x37ca48,'*Indent:*\x20%0',_0x39c97b)}:'outdentBlock'==_0x1ba012['commandName']?{'type':'format','content':o(_0x37ca48,'*Outdent:*\x20%0',_0x39c97b)}:void 0x0;});}}class ut extends _0x409965{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x409965{['afterInit'](){const _0x26e43f=this['editor'];if(!_0x26e43f['plugins']['has']('LinkEditing'))return;const _0x2c7f19=_0x26e43f['plugins']['get']('TrackChangesEditing'),_0x44ca03=_0x26e43f['commands']['get']('link');_0x2c7f19['enableDefaultAttributesIntegration']('link'),_0x2c7f19['enableDefaultAttributesIntegration']('unlink'),_0x2c7f19['registerInlineAttribute']('linkHref');for(const _0x4c134d of _0x44ca03['manualDecorators'])_0x2c7f19['registerInlineAttribute'](_0x4c134d['id']),_0x2c7f19['descriptionFactory']['registerAttributeLabel'](_0x4c134d['id'],'link\x20('+_0x4c134d['label']['toLowerCase']()+')');_0x2c7f19['descriptionFactory']['registerDescriptionCallback'](_0x22378f=>{if('attribute'!=_0x22378f['type'])return;const {data:_0xd87ae}=_0x22378f;if(!_0xd87ae||'linkHref'!=_0xd87ae['key'])return;const _0x570853=_0xd87ae['newValue'],_0x4c2eaa=_0x26e43f['locale'];return{'type':'format','content':null==_0x570853?o(_0x4c2eaa,'*Remove\x20link*'):o(_0x4c2eaa,'*Set\x20link:*\x20%0','\x22'+_0x570853+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e13de=this['editor'],_0x3fb7bd=_0x4e13de['locale'];_0x4e13de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17ff94=>{if('formatInline'!=_0x17ff94['type'])return;const {data:_0x117529}=_0x17ff94;if(_0x117529){if('link'==_0x117529['commandName']){const _0x4c8f57=_0x117529['commandParams'][0x0];return{'type':'format','content':o(_0x3fb7bd,'*Set\x20link:*\x20%0','\x22'+_0x4c8f57+'\x22')};}return'unlink'==_0x117529['commandName']?{'type':'format','content':o(_0x3fb7bd,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x409965{['afterInit'](){const _0x52e5e2=this['editor'],_0x3eaa04=_0x52e5e2['locale'];if(!_0x52e5e2['plugins']['has']('LegacyListEditing'))return;const _0x3c64fe=_0x52e5e2['plugins']['get']('TrackChangesEditing'),_0x5a8679=_0x52e5e2['plugins']['has']('LegacyTodoListEditing');function _0x53c76f(_0xe811c0){return()=>{const _0x1e012a=_0x52e5e2['model']['document']['selection'],_0x54dc28=_0x52e5e2['commands']['get'](_0xe811c0);if(_0x54dc28['value'])return void _0x52e5e2['execute']('paragraph',{});const _0x211273=_0xe811c0['slice'](0x0,-0x4),_0x1b0202=function(_0x376b06,_0x234d2c,_0x20d9ae){let _0x34d64c=Array['from'](_0x376b06)['filter'](_0x2892b8=>function(_0x275ffe,_0x41bbae){return _0x41bbae['checkChild'](_0x275ffe['parent'],'listItem')&&!_0x41bbae['isObject'](_0x275ffe);}(_0x2892b8,_0x20d9ae));_0x34d64c=_0x34d64c['filter'](_0x50b3b7=>!_0x50b3b7['is']('element','listItem')||_0x50b3b7['getAttribute']('listType')!=_0x234d2c);const _0x51f359=new Set();for(const _0xf60399 of _0x34d64c)_0xf60399['is']('element','listItem')?_0x51f359['add'](fe(_0xf60399)):_0x51f359['add'](_0xf60399);return Array['from'](_0x51f359);}(_0x1e012a['getSelectedBlocks'](),_0x211273,_0x52e5e2['model']['schema']);_0x52e5e2['model']['change'](()=>{for(const _0x42856a of _0x1b0202)_0x3c64fe['markBlockFormat'](_0x42856a,{'commandName':_0xe811c0,'commandParams':[{'forceValue':!_0x54dc28['value']}],'formatGroupId':'blockName'},ue(_0x42856a));});};}function _0x4f8ff6(_0x1db71e){return()=>{const _0x3edf5b=function(_0x2d7b53){let _0x19b81f=Array['from'](_0x2d7b53);const _0x54459b=_0x19b81f['findIndex'](_0x953dbc=>'listItem'!=_0x953dbc['name']);return _0x54459b>-0x1&&(_0x19b81f=_0x19b81f['slice'](0x0,_0x54459b)),_0x19b81f;}(_0x52e5e2['model']['document']['selection']['getSelectedBlocks']()),_0x108a27=_0x52e5e2['model']['createRange'](_0x52e5e2['model']['createPositionAt'](_0x3edf5b[0x0],'before'),_0x52e5e2['model']['createPositionAt'](_0x3edf5b[_0x3edf5b['length']-0x1],'end'));_0x52e5e2['model']['change'](()=>{_0x3c64fe['markBlockFormat'](_0x108a27,{'commandName':_0x1db71e,'commandParams':[],'formatGroupId':'listIndent'},function(_0xd111f4){const _0x4a29c5=new Set();for(const _0x38ee2f of _0xd111f4){let _0x29b343=_0x38ee2f['nextSibling'];for(;_0x29b343&&_0x29b343['getAttribute']('listIndent')>_0x38ee2f['getAttribute']('listIndent');)_0x4a29c5['add'](_0x29b343),_0x29b343=_0x29b343['nextSibling'];}return Array['from'](_0x4a29c5);}(_0x3edf5b));});};}_0x3c64fe['enableCommand']('numberedList',_0x53c76f('numberedList')),_0x3c64fe['enableCommand']('bulletedList',_0x53c76f('bulletedList')),_0x5a8679&&_0x3c64fe['enableCommand']('todoList',_0x53c76f('todoList')),_0x3c64fe['enableCommand']('indentList',_0x4f8ff6('indentList')),_0x3c64fe['enableCommand']('outdentList',_0x4f8ff6('outdentList')),_0x5a8679&&_0x3c64fe['enableCommand']('checkTodoList',()=>{const _0x1e928d=_0x52e5e2['commands']['get']('checkTodoList'),_0x20b0b9=Array['from'](_0x1e928d['_selectedElements']);_0x20b0b9['filter'](_0x5cec21=>_0x5cec21['getAttribute']('todoListChecked')!=_0x1e928d['value']),_0x52e5e2['model']['change'](()=>{for(const _0x247502 of _0x20b0b9)_0x3c64fe['markBlockFormat'](_0x247502,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1e928d['value']}]});});}),_0x3c64fe['descriptionFactory']['registerElementLabel']('listItem',_0x336ed3=>o(_0x3eaa04,'ELEMENT_LIST_ITEM',_0x336ed3)),_0x3c64fe['descriptionFactory']['registerDescriptionCallback'](_0x17e91e=>{if('formatBlock'!=_0x17e91e['type']&&'formatInline'!=_0x17e91e['type'])return;const {data:_0x5324e7}=_0x17e91e;if(_0x5324e7){if('numberedList'==_0x5324e7['commandName']||'bulletedList'==_0x5324e7['commandName']||'todoList'==_0x5324e7['commandName'])switch(_0x5324e7['commandName']['replace']('List','')){case'bulleted':return _0x561712(o(_0x3eaa04,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x561712(o(_0x3eaa04,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x561712(o(_0x3eaa04,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5324e7['commandName'])return{'type':'format','content':o(_0x3eaa04,'*Indent:*\x20%0',o(_0x3eaa04,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5324e7['commandName'])return{'type':'format','content':o(_0x3eaa04,'*Outdent:*\x20%0',o(_0x3eaa04,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5324e7['commandName'])return _0x5324e7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3eaa04,'*Check\x20item*')}:{'type':'format','content':o(_0x3eaa04,'*Uncheck\x20item*')};}function _0x561712(_0x407b4c){return{'type':'format','content':o(_0x3eaa04,'*Change\x20to:*\x20%0',_0x407b4c)};}});}}function fe(_0x39d942){const _0x8db569=_0x39d942['getAttribute']('listIndent');if(0x0==_0x8db569)return _0x39d942;let _0x50d74a=_0x39d942;for(;_0x39d942['previousSibling']&&_0x39d942['previousSibling']['is']('element','listItem');){const _0xe0666d=_0x39d942['previousSibling']['getAttribute']('listIndent');if(_0xe0666d==_0x8db569)_0x50d74a=_0x39d942['previousSibling'];else{if(_0xe0666d<_0x8db569)break;}_0x39d942=_0x39d942['previousSibling'];}return _0x50d74a;}function ue(_0xe7bd80){const _0xa32fbb=[];if(_0xe7bd80['is']('element','listItem')&&_0xe7bd80['getAttribute']('listIndent')>0x0){let _0x23046a=_0xe7bd80['nextSibling'];for(;_0x23046a&&'listItem'==_0x23046a['name']&&_0x23046a['getAttribute']('listIndent')==_0xe7bd80['getAttribute']('listIndent');)_0xa32fbb['push'](_0x23046a),_0x23046a=_0x23046a['nextSibling'];}return _0xa32fbb;}class W extends _0x409965{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x51a2a1=this['editor']['config']['get']('list.properties'),_0x2424b5=this['editor']['plugins']['get']('TrackChangesEditing');_0x51a2a1['styles']&&_0x2424b5['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x51a2a1['reversed']&&_0x2424b5['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x51a2a1['startIndex']&&_0x2424b5['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2424b5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x35beca,_0x39903a={}){const _0x2d439d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e9c52=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2d439d['markMultiRangeBlockFormat'](_0x5e9c52,{'commandName':'listStyle','commandParams':[{'type':_0x39903a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x23ffb5,_0x52d185={}){const _0xb2df9f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d6036=this['_getSuggestionBlocks'](_0x9d67ac=>_0x9d67ac['is']('element','listItem')&&'numbered'===_0x9d67ac['getAttribute']('listType'));if(_0x3d6036['length']<0x1)return;const _0x2a7694=_0x3d6036['map'](_0x5908c1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5908c1,'before'),this['editor']['model']['createPositionAt'](_0x5908c1,0x0)));this['editor']['model']['change'](()=>{_0xb2df9f['markMultiRangeBlockFormat'](_0x2a7694,{'commandName':'listReversed','commandParams':[{'reversed':_0x52d185['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4cce50,_0x59fd40={}){const _0x3de801=this['editor']['plugins']['get']('TrackChangesEditing'),_0x244be4=this['_getSuggestionBlocks'](_0x2e6b4c=>_0x2e6b4c['is']('element','listItem')&&'numbered'===_0x2e6b4c['getAttribute']('listType'));if(_0x244be4['length']<0x1)return;const _0x1c383e=_0x244be4['map'](_0x4f2602=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f2602,'before'),this['editor']['model']['createPositionAt'](_0x4f2602,0x0)));this['editor']['model']['change'](()=>{_0x3de801['markMultiRangeBlockFormat'](_0x1c383e,{'commandName':'listStart','commandParams':[{'startIndex':_0x59fd40['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1a9d6f){if('formatBlock'!=_0x1a9d6f['type']&&'formatInline'!=_0x1a9d6f['type'])return;const _0x2610fa=this['editor']['locale'],{data:_0x1e5224}=_0x1a9d6f;if(!_0x1e5224)return;let _0x4ebc37,_0x2471fc;switch(_0x1e5224['commandName']){case'listStyle':_0x4ebc37='*Change\x20to:*\x20%0',_0x2471fc={'type':'format','content':o(_0x2610fa,_0x4ebc37,o(_0x2610fa,this['_getTranslationKeyForListStyle'](_0x1e5224['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4ebc37=_0x1e5224['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2471fc={'type':'format','content':o(_0x2610fa,_0x4ebc37)};break;case'listStart':_0x4ebc37='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2471fc={'type':'format','content':o(_0x2610fa,_0x4ebc37,_0x1e5224['commandParams'][0x0]['startIndex'])};}return _0x2471fc;}['_getSuggestionBlocksForListStyle'](){const _0x18c5e4=this['editor']['plugins']['get']('LegacyListUtils');let _0x983dfd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x983dfd[0x0]?.['is']('element','listItem')&&_0x983dfd['unshift'](..._0x18c5e4['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x983dfd[_0x983dfd['length']-0x1]?.['is']('element','listItem')&&_0x983dfd['push'](..._0x18c5e4['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x983dfd=[...new Set(_0x983dfd)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x983dfd=_0x983dfd['filter'](_0x20ff19=>_0x20ff19['is']('element','listItem'))),_0x983dfd;}['_getSuggestionBlocks'](_0x3f0330){const _0x419900=this['editor']['plugins']['get']('LegacyListUtils');let _0x45fde2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3f0330)['map'](_0x42799c=>{const _0x3ddaaf=this['editor']['model']['createPositionAt'](_0x42799c,0x0);return[..._0x419900['getSiblingNodes'](_0x3ddaaf,'backward'),..._0x419900['getSiblingNodes'](_0x3ddaaf,'forward')];})['flat']();return _0x45fde2=[...new Set(_0x45fde2)],_0x45fde2;}['_getTranslationKeyForListStyle'](_0x381d36){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x381d36)||'default')['toUpperCase']()+'_LIST_'+_0x381d36['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x409965{['afterInit'](){const _0x36d926=this['editor'];if(!_0x36d926['plugins']['has']('MediaEmbedEditing'))return;const _0x5ad155=_0x36d926['plugins']['get']('TrackChangesEditing'),_0xdc22=_0x36d926['locale'];_0x5ad155['enableCommand']('mediaEmbed'),_0x5ad155['descriptionFactory']['registerElementLabel']('media',_0x2e2f94=>o(_0xdc22,'ELEMENT_MEDIA',_0x2e2f94)),_0x36d926['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4f5043,{writer:_0x19d0d9,options:_0x50dbbf})=>{if(_0x50dbbf['showSuggestionHighlights'])return _0x19d0d9['createEmptyElement']('div');},'converterPriority':'high'}),_0x36d926['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1ba4a4,_0x3d683e,_0x552355)=>{_0x552355['options']['showSuggestionHighlights']&&_0x1ba4a4['stop']();},{'priority':'high'});}}class mt extends _0x409965{['afterInit'](){const _0x901c6f=this['editor'];_0x901c6f['plugins']['has']('MentionEditing')&&_0x901c6f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x409965{['afterInit'](){const _0x476455=this['editor'];if(!_0x476455['plugins']['has']('MergeFieldsEditing'))return;_0x476455['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x476455['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x555075=_0x476455['plugins']['get']('TrackChangesEditing'),_0x262a2f=_0x476455['locale'];_0x555075['descriptionFactory']['registerElementLabel']('mergeField',_0x6d2f0b=>o(_0x262a2f,'ELEMENT_MERGE_FIELD',_0x6d2f0b)),_0x555075['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x6b2e25=>o(_0x262a2f,'ELEMENT_MERGE_FIELD',_0x6b2e25)),_0x555075['descriptionFactory']['registerDescriptionCallback'](_0x1cd314=>{if('insertion'!=_0x1cd314['type']&&'deletion'!=_0x1cd314['type'])return;const _0x529e05=_0x1cd314['getContainedElement']();if(null==_0x529e05)return;if(!_0x529e05['is']('element','mergeField')&&!_0x529e05['is']('element','mergeFieldBlock'))return;const _0x354d9d=_0x476455['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x529e05['getAttribute']('id'));return'insertion'==_0x1cd314['type']?{'type':'insertion','content':o(_0x262a2f,'*Insert:*\x20%0','\x22'+_0x354d9d+'\x22\x20'+o(_0x262a2f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x262a2f,'*Remove:*\x20%0','\x22'+_0x354d9d+'\x22\x20'+o(_0x262a2f,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x409965{['afterInit'](){const _0x155dd5=this['editor'],_0x441424=_0x155dd5['plugins']['get']('TrackChangesEditing');_0x155dd5['plugins']['has']('MultiLevelList')&&(_0x441424['enableDefaultAttributesIntegration']('multiLevelList'),_0x441424['registerBlockAttribute']('listMarkerStyle'),_0x441424['descriptionFactory']['registerDescriptionCallback'](_0x49ca40=>this['handleDescriptions'](_0x49ca40)));}['handleDescriptions'](_0x1343b6){const _0x45a030=this['editor']['locale'],{data:_0x23c714}=_0x1343b6,_0x2dfee6={'type':'format','content':''};if(_0x23c714&&'listMarkerStyle'==_0x23c714['key']){if(!_0x23c714['oldValue'])return{'type':'format','content':o(_0x45a030,'*Set\x20format:*\x20%0',o(_0x45a030,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x23c714['newValue']+')'};if(!_0x23c714['newValue']){let _0x303779=_0x1343b6['head'];for(;_0x303779;){if(_0x303779['data']&&'listType'==_0x303779['data']['key']&&_0x303779['data']['newValue'])return _0x2dfee6;_0x303779=_0x303779['next'];}return{'type':'format','content':o(_0x45a030,'*Remove\x20format:*\x20%0',o(_0x45a030,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x23c714['oldValue']+')'};}}}}class kt extends _0x409965{['afterInit'](){const _0x5a22c4=this['editor'];if(!_0x5a22c4['plugins']['has']('PageBreakEditing'))return;_0x5a22c4['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2b92c6=_0x5a22c4['plugins']['get']('TrackChangesEditing'),_0x5da908=_0x5a22c4['locale'];_0x2b92c6['descriptionFactory']['registerElementLabel']('pageBreak',_0x337c21=>o(_0x5da908,'ELEMENT_PAGE_BREAK',_0x337c21));}}class bt extends _0x409965{['afterInit'](){const _0x5f36d7=this['editor'];if(!_0x5f36d7['plugins']['has']('Paragraph'))return;const _0x38806e=_0x5f36d7['locale'],_0x2e4854=_0x5f36d7['plugins']['get']('TrackChangesEditing');_0x2e4854['descriptionFactory']['registerElementLabel']('paragraph',_0x4ff1a5=>o(_0x38806e,'ELEMENT_PARAGRAPH',_0x4ff1a5)),_0x2e4854['enableDefaultAttributesIntegration']('paragraph'),_0x2e4854['enableCommand']('insertParagraph'),_0x5f36d7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5f36d7),{'priority':'highest'}),_0x5f36d7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1372f9,_0x43da5d,_0x7b2909)=>{_0x7b2909['options']['showSuggestionHighlights']&&nr(_0x5f36d7,{'showActiveMarker':!0x1})(_0x1372f9,_0x43da5d,_0x7b2909);},{'priority':'highest'});const _0x19e90d=_0x2e4854['descriptionFactory'];_0x19e90d['registerDescriptionCallback'](_0xe96a3a=>{if('insertion'!==_0xe96a3a['type'])return;const {start:_0x90bac4,end:_0x46e928}=_0xe96a3a['getFirstRange']();if(!_0x90bac4['isTouching'](_0x46e928)||!_0x90bac4['nodeAfter'])return;const _0x30eb0a=_0x5f36d7['model']['schema'],_0x101bd0=_0x90bac4['nodeAfter'];return _0x30eb0a['isBlock'](_0x101bd0)&&!_0x30eb0a['isLimit'](_0x101bd0)&&_0x30eb0a['checkChild'](_0x101bd0,'$text')?{'type':'insertion','content':o(_0x38806e,'*Insert:*\x20%0',_0x19e90d['getItemLabel'](_0x101bd0,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b4fec=this['editor'],_0x1883b8=_0x3b4fec['locale'];_0x3b4fec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1069d9=>{if('formatBlock'!=_0x1069d9['type'])return;const {data:_0x4c52a8}=_0x1069d9;return _0x4c52a8&&'paragraph'==_0x4c52a8['commandName']?{'type':'format','content':o(_0x1883b8,'*Change\x20to:*\x20%0',o(_0x1883b8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x22b2de,{showActiveMarker:_0x4b70dd=!0x0}={}){return(_0x13c4f6,_0x8c75d6,_0x2b5460)=>{const _0x22d874=_0x22b2de['plugins']['get']('TrackChangesEditing'),_0x10947a=_0x8c75d6['markerRange']['start'],_0x43fef3=_0x8c75d6['markerRange']['end'],_0x433f49=_0x22b2de['model']['schema'];if(!_0x10947a['isTouching'](_0x43fef3)||!_0x10947a['nodeAfter'])return;const _0x2cf80a=_0x10947a['nodeAfter'];if(_0x433f49['isBlock'](_0x2cf80a)&&!_0x433f49['isLimit'](_0x2cf80a)&&_0x433f49['checkChild'](_0x2cf80a,'$text')){if(!_0x2b5460['consumable']['consume'](_0x8c75d6['markerRange'],_0x13c4f6['name']))return;const {authorId:_0x2fa0f1}=_0x22d874['_splitMarkerName'](_0x8c75d6['markerName']),_0x425624=_0x2b5460['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x2fa0f1}),_0x1cd3ac=_0x2b5460['mapper']['toViewPosition'](_0x43fef3);_0x4b70dd&&_0x22d874['activeMarkers']['includes'](_0x8c75d6['markerName'])&&_0x2b5460['writer']['addClass']('ck-suggestion-marker--active',_0x425624),_0x2b5460['writer']['insert'](_0x1cd3ac,_0x425624),_0x2b5460['mapper']['bindElementToMarker'](_0x425624,_0x8c75d6['markerName']);}};}class wt extends _0x409965{['afterInit'](){const _0xfecc5b=this['editor'];if(!_0xfecc5b['plugins']['has']('RemoveFormatEditing'))return;_0xfecc5b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b3e70=this['editor'];_0x1b3e70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x255bbf=>{if('formatBlock'!=_0x255bbf['type']&&'formatInline'!=_0x255bbf['type'])return;const {data:_0x3f6b76}=_0x255bbf;return _0x3f6b76&&'removeFormat'==_0x3f6b76['commandName']?{'type':'format','content':o(_0x1b3e70['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x409965{['afterInit'](){const _0xc6b155=this['editor'];if(!_0xc6b155['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x31be89=_0xc6b155['plugins']['get']('TrackChangesEditing');_0x31be89['enableCommand']('goToPreviousRestrictedEditingException'),_0x31be89['enableCommand']('goToNextRestrictedEditingException');const _0x324109=_0xc6b155['plugins']['get']('RestrictedEditingModeEditing');_0x324109['enableCommand']('trackChanges'),_0x324109['enableCommand']('acceptSuggestion'),_0x324109['enableCommand']('discardSuggestion'),_0x324109['enableCommand']('acceptAllSuggestions'),_0x324109['enableCommand']('discardAllSuggestions'),_0x324109['enableCommand']('acceptSelectedSuggestions'),_0x324109['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x409965{static get['requires'](){return[_0x1096a5];}['init'](){const _0x5d9dfc=this['editor'],_0xc95a26=_0x5d9dfc['plugins']['get']('TrackChangesEditing');_0xc95a26['enableCommand']('shiftEnter'),_0x5d9dfc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x5d9dfc),{'priority':'high'}),_0x5d9dfc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x5d9dfc),{'priority':'high'}),_0x5d9dfc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x426726,_0x4b8a85,_0x18ebba)=>{_0x18ebba['options']['showSuggestionHighlights']&&ge(_0x5d9dfc,{'showActiveMarker':!0x1})(_0x426726,_0x4b8a85,_0x18ebba);}),_0xc95a26['descriptionFactory']['registerElementLabel']('softBreak',_0x293de6=>o(_0x5d9dfc['locale'],'ELEMENT_LINE_BREAK',_0x293de6));}}function ge(_0x2b3927,{showActiveMarker:_0x3c2755=!0x0}={}){return(_0x699d60,_0x49faf4,_0xfaacd4)=>{const _0x4d8321=_0x2b3927['plugins']['get']('TrackChangesEditing');if(!_0xfaacd4['consumable']['test'](_0x49faf4['markerRange'],_0x699d60['name']))return;const _0x442161=_0x2b3927['model'];for(const _0x42ea39 of _0x49faf4['markerRange']['getItems']()){if(!_0x42ea39['is']('element','softBreak'))continue;const _0x5d6866='deletion'==_0x49faf4['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x42efa}=_0x4d8321['_splitMarkerName'](_0x49faf4['markerName']),_0x2fa3ed=_0xfaacd4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5d6866,'data-author-id':_0x42efa}),_0x1a299f=_0xfaacd4['mapper']['toViewPosition'](_0x442161['createPositionBefore'](_0x42ea39));_0x3c2755&&_0x4d8321['activeMarkers']['includes'](_0x49faf4['markerName'])&&_0xfaacd4['writer']['addClass']('ck-suggestion-marker--active',_0x2fa3ed),_0xfaacd4['writer']['insert'](_0x1a299f,_0x2fa3ed),_0xfaacd4['mapper']['bindElementToMarker'](_0x2fa3ed,_0x49faf4['markerName']);}};}class St extends _0x409965{['afterInit'](){const _0x4ae173=this['editor'],_0x5d6784=_0x4ae173['model'],_0x51e4fe=_0x4ae173['locale'];if(!_0x4ae173['plugins']['has']('StandardEditingModeEditing'))return;const _0x1f5d00=_0x4ae173['plugins']['get']('TrackChangesEditing'),_0x11a7e4='restrictedEditingException',_0x14209e=_0x4ae173['commands']['get'](_0x11a7e4);_0x1f5d00['enableCommand'](_0x11a7e4,(_0x49cbe8,_0xb32731={})=>{const _0x1f9616=_0x5d6784['document']['selection'];if(_0x1f9616['isCollapsed'])return void _0x49cbe8(_0xb32731);const _0x48f186=void 0x0!==_0xb32731['forceValue']?_0xb32731['forceValue']:!_0x14209e['value'];_0x5d6784['change'](()=>{const _0xfe9c69=Array['from'](_0x1f9616['getRanges']());for(const _0x3d6ab2 of _0xfe9c69){const _0x45a823=_0x48f186?[_0x3d6ab2]:io(_0x11a7e4,_0x3d6ab2,_0x5d6784);for(const _0x3cc5bd of _0x45a823)_0x1f5d00['markInlineFormat'](_0x3cc5bd,{'commandName':_0x11a7e4,'commandParams':[{'forceValue':_0x48f186}]});}});}),_0x1f5d00['descriptionFactory']['registerDescriptionCallback'](_0x12b28c=>{if('formatBlock'!=_0x12b28c['type']&&'formatInline'!=_0x12b28c['type'])return;const {data:_0x16104b}=_0x12b28c;return _0x16104b&&_0x16104b['commandName']==_0x11a7e4?_0x16104b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x51e4fe,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x51e4fe,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x409965{['afterInit'](){const _0x3480c4=this['editor'];if(!_0x3480c4['plugins']['has']('Style')||!_0x3480c4['plugins']['has']('DataSchema'))return;const _0xae32ca=_0x3480c4['plugins']['get']('TrackChangesEditing'),_0x79f069=_0x3480c4['locale'],_0x46974d=_0x3480c4['config']['get']('style')||{},_0x1c0eaa=_0x3480c4['plugins']['get']('GeneralHtmlSupport'),_0x22cd89=_0x3480c4['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3480c4['plugins']['get']('DataSchema'),_0x46974d['definitions']);_0xae32ca['enableDefaultAttributesIntegration']('style');const _0x3cd59d=new Set();for(const _0x108e29 of _0x22cd89['block']){const _0x4193fc=_0x1c0eaa['getGhsAttributeNameForElement'](_0x108e29['element']);_0x3cd59d['add'](_0x4193fc);}const _0x19e9fb=new Set();for(const _0x235d6e of _0x22cd89['inline']){const _0x519cb6=_0x1c0eaa['getGhsAttributeNameForElement'](_0x235d6e['element']);_0x19e9fb['add'](_0x519cb6);for(const _0x1134dc of _0x235d6e['ghsAttributes'])_0x19e9fb['add'](_0x1134dc);}for(const _0x18eb39 of _0x3cd59d)_0xae32ca['registerBlockAttribute'](_0x18eb39),_0xae32ca['descriptionFactory']['registerAttributeLabel'](_0x18eb39,o(_0x79f069,'FORMAT_STYLE'));for(const _0x3deb58 of _0x19e9fb)_0xae32ca['registerInlineAttribute'](_0x3deb58),_0xae32ca['descriptionFactory']['registerAttributeLabel'](_0x3deb58,o(_0x79f069,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21416d=this['editor'],_0x15c7f9=_0x21416d['locale'];_0x21416d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x227924=>{if('formatBlock'!=_0x227924['type']&&'formatInline'!=_0x227924['type'])return;const {data:_0x5aec33}=_0x227924;return _0x5aec33&&'style'===_0x5aec33['commandName']?_0x5aec33['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x15c7f9,'*Set\x20format:*\x20%0',_0x5aec33['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x15c7f9,'*Remove\x20format:*\x20%0',_0x5aec33['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x409965{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x6522f5){super(_0x6522f5),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x26e529=this['editor'],_0x225c1b=_0x26e529['model']['document']['selection'];if(!_0x26e529['plugins']['has']('TableEditing'))return;const _0x18ad29=_0x26e529['locale'],_0xfb9f62=_0x26e529['plugins']['get']('TrackChangesEditing'),_0x40976b=_0x26e529['plugins']['get']('TableUtils');_0xfb9f62['descriptionFactory']['registerElementLabel']('table',_0xab7c35=>o(_0x18ad29,'ELEMENT_TABLE',_0xab7c35)),this['_setupColumnsRowsFixing'](),_0xfb9f62['enableCommand']('insertTable'),_0xfb9f62['enableCommand']('selectTableRow'),_0xfb9f62['enableCommand']('selectTableColumn');for(const _0x2d6692 of['insertTableRowAbove','insertTableRowBelow']){const _0x10f3a4=_0x26e529['commands']['get'](_0x2d6692);_0xfb9f62['enableCommand'](_0x2d6692,_0x55e70d=>{_0x26e529['model']['change'](_0x1da70d=>{_0x55e70d();const _0x2f8a70='above'===_0x10f3a4['order'],_0x412f56=_0x40976b['getSelectionAffectedTableCells'](_0x225c1b),_0x32cf7b=_0x40976b['getRowIndexes'](_0x412f56),_0x28b026=_0x2f8a70?_0x32cf7b['first']-0x1:_0x32cf7b['last']+0x1,_0x5d34b0=_0x412f56[0x0]['findAncestor']('table'),_0x4f222b=_0x40976b['createTableWalker'](_0x5d34b0,{'startRow':_0x28b026,'endRow':_0x28b026}),_0x23e6dc=Array['from'](_0x4f222b)['map'](_0x1f3c64=>_0x1da70d['createRangeOn'](_0x1f3c64['cell']));_0xfb9f62['markMultiRangeInsertion'](_0x23e6dc,'tableRow');});});}for(const _0x5705eb of['insertTableColumnLeft','insertTableColumnRight']){const _0x3059b2=_0x26e529['commands']['get'](_0x5705eb);_0xfb9f62['enableCommand'](_0x5705eb,_0x319fbd=>{_0x26e529['model']['change'](_0x198592=>{_0x319fbd();const _0x5d6f28='left'===_0x3059b2['order'],_0x1364e7=_0x40976b['getSelectionAffectedTableCells'](_0x225c1b),_0x33a831=_0x40976b['getColumnIndexes'](_0x1364e7),_0x12b1ae=_0x5d6f28?_0x33a831['first']-0x1:_0x33a831['last']+0x1,_0x392857=_0x1364e7[0x0]['findAncestor']('table'),_0x22a04d=_0x40976b['createTableWalker'](_0x392857,{'startRow':0x0,'column':_0x12b1ae,'includeAllSlots':!0x1}),_0x2af71d=Array['from'](_0x22a04d)['map'](_0x5a9cce=>_0x198592['createRangeOn'](_0x5a9cce['cell']));_0xfb9f62['markMultiRangeInsertion'](_0x2af71d,'tableColumn');});});}for(const _0x2e75ed of['removeTableRow','removeTableColumn']){const _0x1ef50e=_0x2e75ed['substr'](0xb),_0x141de2=_0x1ef50e['toLowerCase'](),_0x22f7fa=_0x141de2['substr'](0x0,0x3)+'span',_0x4d3eda='table'+_0x1ef50e,_0x56b1ed='min'+_0x1ef50e,_0xdd106e='max'+_0x1ef50e;_0xfb9f62['enableCommand'](_0x2e75ed,()=>{_0x26e529['model']['change'](_0x4dc132=>{const _0x55380c=_0x40976b['getSelectionAffectedTableCells'](_0x225c1b),_0x18c9f9=_0x55380c[0x0]['findAncestor']('table');let _0x4edf9a;if('removeTableRow'==_0x2e75ed){const _0x21fc53=_0x40976b['getRowIndexes'](_0x55380c);_0x4edf9a={'startRow':_0x21fc53['first'],'endRow':_0x21fc53['last'],'includeAllSlots':!0x0};}else{const _0xbdb80c=_0x40976b['getColumnIndexes'](_0x55380c);_0x4edf9a={'startColumn':_0xbdb80c['first'],'endColumn':_0xbdb80c['last'],'includeAllSlots':!0x0};}const _0x307c74=_0x40976b['createTableWalker'](_0x18c9f9,_0x4edf9a),_0x5abeb2=Array['from'](_0x307c74)['map'](({cell:_0x1735e8})=>_0x1735e8),_0x15c84f=be(_0x5abeb2['filter'](_0x6e83bf=>_0x6e83bf['hasAttribute'](_0x22f7fa))),_0x317c14=be(_0x5abeb2['filter'](_0x4ef15b=>!_0x4ef15b['hasAttribute'](_0x22f7fa)))['map'](_0x4efa3e=>_0x4dc132['createRangeOn'](_0x4efa3e)),_0xbf77e7=_0xfb9f62['markMultiRangeDeletion'](_0x317c14,_0x4d3eda);if(_0xbf77e7&&('tableRow'==_0xbf77e7['subType']||'tableColumn'==_0xbf77e7['subType'])){const _0x50a5eb=this['_getSuggestionCoords'](_0xbf77e7);for(const _0x2b21db of _0x15c84f){const _0x59dd25=_0x4dc132['createRangeOn'](_0x2b21db),_0x2eeb48=_0x40976b['getCellLocation'](_0x2b21db),_0x2f6126=_0x2b21db['getAttribute'](_0x22f7fa)-0x1,_0x479daf=_0x50a5eb[_0x56b1ed],_0x4ea1ca=_0x50a5eb[_0xdd106e];_0x479daf<=_0x2eeb48[_0x141de2]&&_0x2eeb48[_0x141de2]+_0x2f6126<=_0x4ea1ca&&_0xbf77e7['addRange'](_0x59dd25);}}});});}function _0x11a9b3(_0x34fd5d){const _0x5493aa=Array['from'](_0x225c1b['getRanges']())['map'](_0x391347=>_0x531671['fromRange'](_0x391347));_0x26e529['model']['change'](_0x2c9cf3=>{const _0x47a488=_0x2c9cf3['batch'];_0x34fd5d=_0x34fd5d['filter'](_0x2b0c6b=>'$graveyard'!=_0x2b0c6b['root']['rootName']),_0x2c9cf3['setSelection'](_0x34fd5d),_0x26e529['commands']['get']('removeTableRow')['refresh'](),_0x26e529['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x26e529['model']['enqueueChange'](()=>{_0x26e529['model']['enqueueChange'](_0x47a488,_0x2a9191=>{const _0x528309=_0x5493aa['filter'](_0x37de58=>'$graveyard'!=_0x37de58['root']['rootName']);_0x528309['length']>0x0&&_0x2a9191['setSelection'](_0x528309);for(const _0x2a095e of _0x5493aa)_0x2a095e['detach']();});});});}function _0x449420(_0x22203c){_0x26e529['model']['change'](_0x2b03da=>{const _0x499d69=Array['from'](_0x225c1b['getRanges']())['map'](_0x1288f4=>_0x531671['fromRange'](_0x1288f4)),_0x5580db=[];for(const _0x397062 of _0x22203c)for(const _0x47f102 of _0x397062['getItems']({'shallow':!0x0}))_0x5580db['push'](_0x47f102);for(const _0x34a592 of _0x5580db)'$graveyard'!=_0x34a592['root']['rootName']&&(_0x2b03da['setSelection'](_0x2b03da['createPositionAt'](_0x34a592,0x0)),_0x26e529['commands']['get']('removeTableColumn')['refresh'](),_0x26e529['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x51041b=_0x499d69['filter'](_0x546eec=>'$graveyard'!=_0x546eec['root']['rootName']);_0x51041b['length']>0x0&&_0x2b03da['setSelection'](_0x51041b);for(const _0x2a2a32 of _0x499d69)_0x2a2a32['detach']();});}function _0x45cf49(_0x1adba2,_0x5291be){return _0x5291be['every'](_0x3bcdda=>_0x1adba2['some'](_0x528342=>_0x528342['end']['isEqual'](_0x3bcdda['start'])||_0x3bcdda['end']['isEqual'](_0x528342['start'])));}function _0x479d0b(_0x36306a,_0x853805){return!_0x36306a['some'](_0x29f99c=>_0x853805['some'](_0x2af114=>_0x29f99c['isIntersecting'](_0x2af114)))&&_0x36306a['some'](_0x3b825f=>_0x853805['some'](_0x1e600c=>_0x3b825f['end']['isTouching'](_0x1e600c['start'])));}_0x26e529['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5c5a6a,_0x2c289d,_0x229741)=>{if(!_0x229741['options']['showSuggestionHighlights'])return;const _0xa9d3aa=_0x2c289d['item'];if(!_0xa9d3aa)return;const _0x3ad7c9=_0x229741['mapper']['toViewElement'](_0xa9d3aa);function _0x2681bc(_0x524dd3){return Array['isArray'](_0x524dd3)?_0x524dd3:[_0x524dd3];}_0x3ad7c9&&'tableCell'===_0xa9d3aa['name']&&_0x1ee629(_0x3ad7c9,_0x229741['writer'],(_0x4c8a4d,_0x4b6d7c,_0x1d7b43)=>_0x1d7b43['addClass'](_0x2681bc(_0x4b6d7c['classes']),_0x4c8a4d),(_0x4c5678,_0x13079b,_0x1938a2)=>_0x1938a2['removeClass'](_0x2681bc(_0x13079b['classes']),_0x4c5678));},{'priority':'highest'}),_0xfb9f62['descriptionFactory']['registerDescriptionCallback'](_0x57db4e=>{if('insertion'!=_0x57db4e['type']&&'deletion'!=_0x57db4e['type'])return;const _0x590536=_0x57db4e['getContainedElement']();if(null!=_0x590536&&_0x590536['is']('element','table')){if('insertion'==_0x57db4e['type']){const _0x3177cc=_0x57db4e['getItems']()['filter'](_0x7b6794=>_0x7b6794['is']('$textProxy'))['map'](_0x208e24=>_0x208e24['data']);if(_0x3177cc['length'])return{'type':'insertion','content':o(_0x18ad29,'*Insert:*\x20%0',o(_0x18ad29,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3177cc['join']('\x20')+'\x22'))};}if('deletion'==_0x57db4e['type']){const _0x1abcc6=_0x57db4e['getItems']()['filter'](_0x7ebdbf=>_0x7ebdbf['is']('$textProxy'))['map'](_0x4b0bbf=>_0x4b0bbf['data']);if(_0x1abcc6['length'])return{'type':'deletion','content':o(_0x18ad29,'*Remove:*\x20%0',o(_0x18ad29,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1abcc6['join']('\x20')+'\x22'))};}}}),_0xfb9f62['descriptionFactory']['registerDescriptionCallback'](_0x34719f=>{if('tableRow'==_0x34719f['subType']){const _0x87aa50=_0x34719f['getItems']()['filter'](_0x1c0319=>_0x1c0319['is']('$textProxy'))['map'](_0x224ad2=>_0x224ad2['data']),_0x5c0fa7=this['_getSuggestionCoords'](_0x34719f),_0x23f0ff=_0x5c0fa7['maxRow']-_0x5c0fa7['minRow']+0x1;if('insertion'==_0x34719f['type'])return _0x87aa50['length']?{'type':'insertion','content':o(_0x18ad29,'*Insert:*\x20%0',o(_0x18ad29,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x23f0ff,'\x22'+_0x87aa50['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x18ad29,'*Insert:*\x20%0',o(_0x18ad29,'ELEMENT_TABLE_ROW',_0x23f0ff))};if('deletion'==_0x34719f['type'])return _0x87aa50['length']?{'type':'deletion','content':o(_0x18ad29,'*Remove:*\x20%0',o(_0x18ad29,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x23f0ff,'\x22'+_0x87aa50['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x18ad29,'*Remove:*\x20%0',o(_0x18ad29,'ELEMENT_TABLE_ROW',_0x23f0ff))};}if('tableColumn'==_0x34719f['subType']){const _0x58a3b5=_0x34719f['getItems']()['filter'](_0x118b1e=>_0x118b1e['is']('$textProxy'))['map'](_0x2f5552=>_0x2f5552['data']),_0x1d1e76=this['_getSuggestionCoords'](_0x34719f),_0x2dc26e=_0x1d1e76['maxColumn']-_0x1d1e76['minColumn']+0x1;if('insertion'==_0x34719f['type'])return _0x58a3b5['length']?{'type':'insertion','content':o(_0x18ad29,'*Insert:*\x20%0',o(_0x18ad29,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2dc26e,'\x22'+_0x58a3b5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x18ad29,'*Insert:*\x20%0',o(_0x18ad29,'ELEMENT_TABLE_COLUMN',_0x2dc26e))};if('deletion'==_0x34719f['type'])return _0x58a3b5['length']?{'type':'deletion','content':o(_0x18ad29,'*Remove:*\x20%0',o(_0x18ad29,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2dc26e,'\x22'+_0x58a3b5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x18ad29,'*Remove:*\x20%0',o(_0x18ad29,'ELEMENT_TABLE_COLUMN',_0x2dc26e))};}}),_0xfb9f62['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x11a9b3),_0xfb9f62['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x11a9b3),_0xfb9f62['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x449420),_0xfb9f62['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x449420),_0xfb9f62['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x45cf49),_0xfb9f62['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x45cf49),_0xfb9f62['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x479d0b),_0xfb9f62['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x479d0b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x12501a=this['editor'],_0x47d281=_0x12501a['model']['document']['selection'];return(_0x1477a2,_0x20d825)=>{_0x12501a['model']['change'](_0x36ab1c=>{const {commandName:_0x406cdd,commandParams:_0x23e2f3}=_0x20d825;let _0x45628c=_0x1477a2[0x0]['end']['nodeBefore'];_0x23e2f3&&_0x23e2f3[0x0]&&!0x1===_0x23e2f3[0x0]['forceValue']&&(_0x45628c=_0x1477a2[0x0]['start']['nodeAfter']);const _0x48986d=_0x36ab1c['createRangeIn'](_0x45628c);if('$graveyard'==_0x48986d['root']['rootName'])return;const _0x4b0c8d=Array['from'](_0x47d281['getRanges']())['map'](_0x4c8b0b=>_0x531671['fromRange'](_0x4c8b0b));_0x36ab1c['setSelection'](_0x48986d),_0x12501a['commands']['get'](_0x406cdd)['refresh'](),_0x23e2f3['push']({'forceDefaultExecution':!0x0}),_0x12501a['execute'](_0x406cdd,..._0x23e2f3);const _0x536f30=_0x4b0c8d['filter'](_0x5d8ed7=>'$graveyard'!=_0x5d8ed7['root']['rootName']);_0x536f30['length']>0x0&&_0x36ab1c['setSelection'](_0x536f30);for(const _0xe423f of _0x4b0c8d)_0xe423f['detach']();});};}['_getCoordsForCells'](_0x3fd8a0){const _0x1fd625=this['editor']['plugins']['get']('TableUtils');let _0x304d02=Number['MAX_SAFE_INTEGER'],_0x2202d7=Number['MIN_SAFE_INTEGER'],_0xac2781=Number['MAX_SAFE_INTEGER'],_0x2e2b4a=Number['MIN_SAFE_INTEGER'];for(const _0x3456c0 of _0x3fd8a0){if('$graveyard'==_0x3456c0['root']['rootName'])continue;const {row:_0x6847e4,column:_0x468b2d}=_0x1fd625['getCellLocation'](_0x3456c0),_0x30d193=_0x3456c0['hasAttribute']('rowspan')?_0x3456c0['getAttribute']('rowspan')-0x1:0x0,_0x59a1c0=_0x3456c0['hasAttribute']('colspan')?_0x3456c0['getAttribute']('colspan')-0x1:0x0;_0x304d02=_0x6847e4<_0x304d02?_0x6847e4:_0x304d02,_0x2202d7=_0x6847e4+_0x30d193>_0x2202d7?_0x6847e4+_0x30d193:_0x2202d7,_0xac2781=_0x468b2d<_0xac2781?_0x468b2d:_0xac2781,_0x2e2b4a=_0x468b2d+_0x59a1c0>_0x2e2b4a?_0x468b2d+_0x59a1c0:_0x2e2b4a;}return{'minRow':_0x304d02,'maxRow':_0x2202d7,'minColumn':_0xac2781,'maxColumn':_0x2e2b4a};}['_setupColumnsRowsFixing'](){const _0x432a4f=this['editor'],_0x34982f=_0x432a4f['plugins']['get']('TrackChangesEditing'),_0x405d1a=_0x432a4f['plugins']['get']('TableUtils');_0x432a4f['model']['document']['on']('change:data',()=>{const _0x3e85ec=Array['from'](_0x432a4f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x322d46,data:_0x166656}of _0x3e85ec){const {group:_0xbc66db,id:_0x597f06,subType:_0x130e66}=_0x34982f['_splitMarkerName'](_0x322d46);if('suggestion'!=_0xbc66db)continue;if(null!=_0x166656['oldRange'])continue;const _0x187cb9=_0x34982f['getSuggestion'](_0x597f06);this['_tablePostFixingSubtypes']['includes'](_0x130e66)&&this['_tableSuggestions']['add'](_0x187cb9);}},{'priority':'low'});const _0x5230ec=(_0x5a5552,_0x4a61c5)=>{let _0x47d259=!0x1;const _0x2c79a0=_0x4a61c5['createRangeOn'](_0x5a5552),_0x42fec8=_0x5a5552['findAncestor']('table'),_0x2fce69=_0x405d1a['getCellLocation'](_0x5a5552);for(const _0xb56f76 of this['_tableSuggestions']){const _0x10a7b5=_0xb56f76['subType'],_0x4bd360=_0x10a7b5['startsWith']('tablePaste'),_0x172abe=_0x10a7b5['substr'](_0x4bd360?0xa:0x5),_0x4ad6f0=_0x172abe['toLowerCase'](),_0x4048d6=_0x4ad6f0['substr'](0x0,0x3)+'span',_0x42ddf2='min'+_0x172abe,_0x4c605b='max'+_0x172abe;if(!_0xb56f76['isInContent'])continue;if(_0x42fec8!=_0xb56f76['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xb56f76['isIntersectingWithRange'](_0x2c79a0))continue;const _0x1e1b15=_0x5a5552['hasAttribute'](_0x4048d6)?_0x5a5552['getAttribute'](_0x4048d6)-0x1:0x0,_0x5280f4=this['_getSuggestionCoords'](_0xb56f76),_0xe64edd=_0x5280f4[_0x42ddf2],_0x4f3e25=_0x5280f4[_0x4c605b];_0xe64edd<=_0x2fce69[_0x4ad6f0]&&_0x2fce69[_0x4ad6f0]+_0x1e1b15<=_0x4f3e25&&(_0xb56f76['addRange'](_0x2c79a0),_0x47d259=!0x0);}return _0x47d259;};_0x432a4f['model']['document']['registerPostFixer'](_0x54a0bb=>{let _0x657598=!0x1;for(const _0x42e930 of _0x432a4f['model']['document']['differ']['getChanges']())if('insert'==_0x42e930['type']){if('tableRow'==_0x42e930['name']){for(const _0x13e556 of _0x42e930['position']['nodeAfter']['getChildren']())_0x657598=_0x657598||_0x5230ec(_0x13e556,_0x54a0bb);}else'tableCell'==_0x42e930['name']&&(_0x657598=_0x657598||_0x5230ec(_0x42e930['position']['nodeAfter'],_0x54a0bb));}return _0x657598;});}['_getSuggestionCoords'](_0x39a1d0){return this['_getCoordsForCells'](_0x39a1d0['getRanges']()['map'](_0x4c751a=>_0x4c751a['start']['nodeAfter']));}}function be(_0x24697c){return Array['from'](new Set(_0x24697c)['values']());}class vt extends _0x409965{static get['requires'](){return[It];}['afterInit'](){const _0x244c7a=this['editor'],_0x44b29b=_0x244c7a['model']['document']['selection'],_0x591f09=_0x244c7a['locale'];if(!_0x244c7a['plugins']['has']('TableEditing'))return;const _0x109466=_0x244c7a['plugins']['get']('TrackChangesEditing'),_0x20f3c5=_0x244c7a['plugins']['get']('TableUtils'),_0x52b377=_0x244c7a['plugins']['get'](It);_0x52b377['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x109466['enableCommand']('mergeTableCells',()=>{const _0x5db0a9=_0x20f3c5['getSelectionAffectedTableCells'](_0x244c7a['model']['document']['selection']);_0x244c7a['model']['change'](()=>{_0x109466['markMultiRangeBlockFormat'](_0x5db0a9,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x244c7a['commands']['get']('mergeTableCells')['on']('execute',(_0x4ec0cc,_0x24ca2e)=>{_0x244c7a['commands']['get']('trackChanges')['value']&&(_0x24ca2e['length']>0x0&&_0x24ca2e[_0x24ca2e['length']-0x1]&&_0x24ca2e[_0x24ca2e['length']-0x1]['forceDefaultExecution']||_0x109466['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4ec0cc['stop']());},{'priority':'highest'});for(const _0x32ce4a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2fc949=_0x244c7a['commands']['get'](_0x32ce4a);_0x109466['enableCommand'](_0x32ce4a,()=>{const _0x31a04e=_0x244c7a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x18346f=>_0x18346f['is']('element','tableCell')),_0x38916e=_0x2fc949['value'];_0x244c7a['model']['change'](()=>{_0x109466['markMultiRangeBlockFormat']([_0x31a04e,_0x38916e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x761201 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1c94db=_0x244c7a['commands']['get'](_0x761201);_0x109466['enableCommand'](_0x761201,()=>{const _0x45dbbf=_0x20f3c5['getSelectionAffectedTableCells'](_0x244c7a['model']['document']['selection'])[0x0],_0x322734=_0x45dbbf['findAncestor']('table'),{column:_0x4b9210,row:_0x473cec}=_0x20f3c5['getCellLocation'](_0x45dbbf);let _0x893ada=[];if('horizontally'==_0x1c94db['direction']){const _0x5d600f=_0x20f3c5['createTableWalker'](_0x322734,{'startRow':_0x473cec,'endRow':_0x473cec,'includeAllSlots':!0x0});_0x893ada=Array['from'](_0x5d600f)['map'](_0x2e3aa8=>_0x2e3aa8['cell']);}else{const _0x58d32c=_0x20f3c5['createTableWalker'](_0x322734,{'column':_0x4b9210,'includeAllSlots':!0x0});_0x893ada=Array['from'](_0x58d32c)['map'](_0x1df0bf=>_0x1df0bf['cell']);}_0x244c7a['model']['change'](_0x5f7db6=>{_0x109466['markBlockFormat'](_0x5f7db6['createRangeOn'](_0x45dbbf),{'commandName':_0x761201,'commandParams':[]},_0x893ada,_0x761201);});});}_0x109466['descriptionFactory']['registerDescriptionCallback'](_0x4153b4=>{if('formatBlock'!=_0x4153b4['type']&&'formatInline'!=_0x4153b4['type'])return;const {data:_0x1352a1}=_0x4153b4;return _0x1352a1&&'mergeTableCells'==_0x1352a1['commandName']?{'type':'format','content':o(_0x591f09,'*Merge\x20cells*')}:void 0x0;}),_0x109466['descriptionFactory']['registerDescriptionCallback'](_0x4e64a5=>{if('formatBlock'!=_0x4e64a5['type']&&'formatInline'!=_0x4e64a5['type'])return;const {data:_0x2ee9c3}=_0x4e64a5;return _0x2ee9c3?'splitTableCellVertically'==_0x2ee9c3['commandName']?{'type':'format','content':o(_0x591f09,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2ee9c3['commandName']?{'type':'format','content':o(_0x591f09,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5a5afa=_0x52b377['_acceptFormatSuggestionCallbackFactory']();for(const _0x92471a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x109466['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x92471a,'accept',_0x5a5afa);for(const _0x30cb18 of['splitTableCellVertically','splitTableCellHorizontally'])_0x109466['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x30cb18,'accept',_0x5a5afa);_0x109466['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4feb86=>{_0x244c7a['model']['change'](_0x15716c=>{const _0x20ec2f=Array['from'](_0x44b29b['getRanges']())['map'](_0x31df76=>_0x531671['fromRange'](_0x31df76));_0x15716c['setSelection'](_0x4feb86),_0x244c7a['commands']['get']('mergeTableCells')['refresh'](),_0x244c7a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4ccf27=_0x20ec2f['filter'](_0x5b3e67=>'$graveyard'!=_0x5b3e67['root']['rootName']);_0x4ccf27['length']>0x0&&_0x15716c['setSelection'](_0x4ccf27);for(const _0x451766 of _0x20ec2f)_0x451766['detach']();});});for(const _0xaa335b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x422099=_0x244c7a['commands']['get'](_0xaa335b);_0x422099['on']('set:isEnabled',(_0x30a548,_0x4a006d,_0x9a0f9)=>{if(_0x9a0f9){const _0x2205a9=_0x244c7a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x298077=>_0x298077['is']('element','tableCell'));this['_areMergableCells'](_0x422099['value'],_0x2205a9)||(_0x30a548['return']=!0x1,_0x30a548['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x372119=this['editor']['commands']['get']('mergeTableCells'),_0x12a046=this['editor']['plugins']['get']('TableUtils');if(!_0x372119['isEnabled'])return!0x1;const _0x36d2f4=_0x12a046['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x53e3cd of _0x36d2f4)for(const _0x2d8a6d of _0x36d2f4)if(_0x53e3cd!=_0x2d8a6d&&!this['_areMergableCells'](_0x53e3cd,_0x2d8a6d))return!0x1;return!0x0;}['_areMergableCells'](_0x2d06bf,_0x90671){const _0x48dcbf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17e450=this['editor']['model']['createRangeOn'](_0x2d06bf),_0x3f9dc6=this['editor']['model']['createRangeOn'](_0x90671),_0x52c1b7=new Set(),_0x58d5ff=new Set();for(const _0x11bcdc of _0x48dcbf['getSuggestions']())if(('insertion'==_0x11bcdc['type']||'deletion'==_0x11bcdc['type']||'mergeTableCells'==_0x11bcdc['subType'])&&_0x11bcdc['isInContent']){for(const _0x4cb678 of _0x11bcdc['getRanges']())_0x4cb678['containsRange'](_0x17e450,!0x0)&&_0x52c1b7['add'](_0x11bcdc['type']+':'+_0x11bcdc['author']['id']),_0x4cb678['containsRange'](_0x3f9dc6,!0x0)&&_0x58d5ff['add'](_0x11bcdc['type']+':'+_0x11bcdc['author']['id']);}if(_0x52c1b7['size']!=_0x58d5ff['size'])return!0x1;for(const _0x1bcdf1 of _0x52c1b7)if(!_0x58d5ff['has'](_0x1bcdf1))return!0x1;return!0x0;}}class Ct extends _0x409965{static get['requires'](){return[It];}['afterInit'](){const _0x4e34e6=this['editor'];if(!_0x4e34e6['plugins']['has']('TableEditing'))return;const _0x23bb02=_0x4e34e6['locale'],_0x19feb8=_0x4e34e6['plugins']['get']('TrackChangesEditing');_0x19feb8['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x19feb8['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x19feb8['registerBlockAttribute']('headingRows'),_0x19feb8['registerBlockAttribute']('headingColumns'),_0x19feb8['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x23bb02,'FORMAT_HEADER_ROW')),_0x19feb8['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x23bb02,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x254339=this['editor']['plugins']['get']('TrackChangesEditing'),_0x351ad5=this['editor']['plugins']['get']('TableUtils'),_0x4ea157=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x375d1b({showActiveMarker:_0x12a2e6=!0x0,setDataAttribute:_0x9e6940=!0x0}={}){return(_0x54d4e9,_0x21d146,_0x4d19f5)=>{const {type:_0x399b77,id:_0x594f90}=_0x254339['_splitMarkerName'](_0x21d146['markerName']),_0x2b0364=_0x254339['getSuggestion'](_0x594f90),_0x536b1a=_0x2b0364['data'];if('formatBlock'!=_0x2b0364['type']||!_0x536b1a||'setTableColumnHeader'!=_0x536b1a['commandName'])return;if(_0x21d146['item'])return void _0x54d4e9['stop']();if(!_0x4d19f5['consumable']['consume'](_0x21d146['markerRange'],_0x54d4e9['name']))return;const _0x1dfb04=_0x21d146['markerRange']['start']['nodeAfter'],_0x18b616=_0x21d146['markerRange']['end']['nodeBefore'],_0x5a6bac=_0x1dfb04['parent']['parent'],{column:_0x545568}=_0x351ad5['getCellLocation'](_0x1dfb04),{column:_0x473043}=_0x351ad5['getCellLocation'](_0x18b616);for(let _0x46c053=_0x545568;_0x46c053<=_0x473043;_0x46c053++){const _0x10fd86=_0x351ad5['createTableWalker'](_0x5a6bac,{'column':_0x46c053,'includeAllSlots':!0x1});for(const _0x5e4aaf of _0x10fd86){const _0x59dd23=_0x5e4aaf['cell'],_0x41447d=_0x4d19f5['mapper']['toViewElement'](_0x59dd23);_0x4d19f5['writer']['addClass']('ck-suggestion-marker-'+_0x399b77,_0x41447d),_0x9e6940&&_0x4d19f5['writer']['setAttribute']('data-suggestion',_0x594f90,_0x41447d),_0x4d19f5['mapper']['bindElementToMarker'](_0x41447d,_0x21d146['markerName']),_0x12a2e6&&(_0x254339['activeMarkers']['includes'](_0x21d146['markerName'])?_0x4d19f5['writer']['addClass']('ck-suggestion-marker--active',_0x41447d):_0x4d19f5['writer']['removeClass']('ck-suggestion-marker--active',_0x41447d));}}};}_0x254339['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4ea157),_0x254339['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4ea157),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x375d1b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x41d18b,_0x5c6161,_0x2bc0fd)=>{_0x2bc0fd['options']['showSuggestionHighlights']&&_0x375d1b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x41d18b,_0x5c6161,_0x2bc0fd);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1171b9,_0x3cfd87,_0x4a0498)=>{const {type:_0x4c5d00,id:_0x316f52}=_0x254339['_splitMarkerName'](_0x3cfd87['markerName']),_0x4cd755=_0x254339['getSuggestion'](_0x316f52),_0x32bafa=_0x4cd755['data'];if('formatBlock'!=_0x4cd755['type']||!_0x32bafa||'setTableColumnHeader'!=_0x32bafa['commandName'])return;const _0x30a84a=_0x4a0498['mapper']['markerNameToElements'](_0x3cfd87['markerName']);if(_0x30a84a){for(const _0x42ee39 of _0x30a84a)_0x4a0498['writer']['removeClass']('ck-suggestion-marker-'+_0x4c5d00,_0x42ee39),_0x4a0498['writer']['removeClass']('ck-suggestion-marker--active',_0x42ee39),_0x4a0498['writer']['removeAttribute']('data-suggestion',_0x42ee39),_0x4a0498['mapper']['unbindElementFromMarkerName'](_0x42ee39,_0x3cfd87['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2afb99=this['editor'],_0x2aaf46=_0x2afb99['locale'];function _0x221f85(_0x13a0d5){return{'type':'format','content':o(_0x2aaf46,'*Format:*\x20%0',_0x13a0d5)};}_0x2afb99['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x901c83=>{if('formatBlock'!=_0x901c83['type'])return;const {data:_0x1b12a9}=_0x901c83;if(_0x1b12a9){if('setTableRowHeader'==_0x1b12a9['commandName']){const _0x5cdb21=_0x1b12a9['commandParams'][0x0]['forceValue'];return _0x221f85(o(_0x2aaf46,_0x5cdb21?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1b12a9['commandName']){const _0x3ab027=_0x1b12a9['commandParams'][0x0]['forceValue'];return _0x221f85(o(_0x2aaf46,_0x3ab027?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x218956=>[_0x218956,null]));class _t extends _0x409965{static get['requires'](){return[It];}['afterInit'](){const _0x429fa2=this['editor'];if(!_0x429fa2['plugins']['has']('TableClipboard'))return;const _0x48030c=_0x429fa2['plugins']['get']('TrackChangesEditing'),_0x46a982=_0x429fa2['plugins']['get']('TableUtils'),_0x5dec82=_0x429fa2['plugins']['get'](It),_0x43174f=_0x429fa2['plugins']['get']('TableClipboard');_0x5dec82['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x429fa2['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x429fa2['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4ab4ee=null;_0x429fa2['model']['on']('insertContent',(_0x2cf6d9,_0x9535d6)=>{const [_0x161e5f,_0x419212]=_0x9535d6,_0xf2040e=_0x9535d6[_0x9535d6['length']-0x1];_0xf2040e&&_0xf2040e['forceDefaultExecution']||_0x48030c['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1d5a2f,_0x48c9af,_0x3c37c8,_0x634fc1,_0x373435){if(_0x48c9af&&!_0x48c9af['is']('documentSelection'))return!0x1;const _0x1eaa85=_0x373435['getTableIfOnlyTableInContent'](_0x1d5a2f,_0x3c37c8);if(!_0x1eaa85||!Re(_0x1eaa85,void 0x0,_0x634fc1))return!0x1;const _0x4d06eb=_0x634fc1['getSelectionAffectedTableCells'](_0x3c37c8['document']['selection']);if(!_0x4d06eb['length'])return!0x1;const _0x573250=_0x4d06eb[0x0]['findAncestor']('table'),_0x4bad7b=_0x634fc1['getRowIndexes'](_0x4d06eb),_0x452cb1=_0x634fc1['getColumnIndexes'](_0x4d06eb),_0x36eb38={'startRow':_0x4bad7b['first'],'endRow':_0x4bad7b['last'],'startColumn':_0x452cb1['first'],'endColumn':_0x452cb1['last']};return 0x1==_0x4d06eb['length']&&(_0x36eb38['endRow']+=_0x634fc1['getRows'](_0x1eaa85)-0x1,_0x36eb38['endColumn']+=_0x634fc1['getColumns'](_0x1eaa85)-0x1),Re(_0x573250,_0x36eb38,_0x634fc1);}(_0x161e5f,_0x419212,_0x429fa2['model'],_0x46a982,_0x43174f)&&(_0x2cf6d9['stop'](),_0x4ab4ee={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x429fa2['model']['change'](()=>{_0x429fa2['model']['insertContent'](_0x9535d6[0x0],_0x9535d6[0x1],_0x9535d6[0x2],{'forceDefaultExecution':!0x0});const _0x173bbb=_0x413213(),{rowInsertionRanges:_0x50d637,columnInsertionRanges:_0x4aff77,insertionRanges:_0x63f295,deletionRanges:_0x24f1f0,cells:_0x5b7336}=_0x4ab4ee;_0x50d637['length']&&_0x48030c['markMultiRangeInsertion'](_0x50d637,'tablePasteRow',{'tablePasteChainId':_0x173bbb}),_0x4aff77['length']&&_0x48030c['markMultiRangeInsertion'](_0x4aff77,'tablePasteColumn',{'tablePasteChainId':_0x173bbb}),_0x63f295['length']&&(_0x48030c['markMultiRangeInsertion'](_0x63f295,'tablePaste',{'tablePasteChainId':_0x173bbb,'skipNestingCheck':!0x0}),_0x63f295['forEach'](_0x5d8125=>_0x5d8125['detach']?.())),_0x24f1f0['length']&&(_0x48030c['markMultiRangeDeletion'](_0x24f1f0,'tablePaste',{'tablePasteChainId':_0x173bbb,'skipNestingCheck':!0x0}),_0x24f1f0['forEach'](_0x316fb2=>_0x316fb2['detach']?.()));const _0x5d840a=_0x48030c['markMultiRangeBlockFormat'](_0x5b7336['map'](({element:_0x299f2f})=>_0x299f2f),{'formatGroupId':_0x413213()},[],'tablePasteCell',{'tablePasteChainId':_0x173bbb});if(_0x5d840a){const _0x1e6eb6=_0x5d840a['getMarkers'](),_0x41a0de=[];for(const {element:_0x5a8efb,attributes:_0x10f847}of _0x5b7336){if(!_0x10f847)continue;const _0x365af2=_0x429fa2['model']['createRangeOn'](_0x5a8efb),_0x1e69ea=_0x1e6eb6['find'](_0x3154e7=>_0x3154e7['getRange']()['isEqual'](_0x365af2));_0x1e69ea&&_0x41a0de['push']([_0x1e69ea['name'],_0x10f847]);}_0x41a0de['length']&&_0x5d840a['setAttribute']('markerAttributes',Object['fromEntries'](_0x41a0de));}_0x4ab4ee=null;}));},{'priority':_0x3dec8d['high']+0xa}),_0x429fa2['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x33c4f6,_0x7dc426)=>{const [_0x5a92e1,_0x49bfaa,,_0x4b4948]=_0x7dc426;if(!_0x4ab4ee)return;_0x33c4f6['stop']();const _0x339564=_0x5a92e1['cell'],_0x4914c3=_0x49bfaa,_0x2b6277=ke(_0x339564),_0x925225=ke(_0x4914c3);_0x33c4f6['return']=_0x339564;let _0x23aea3=null,_0x29aaf8=null;if(_0x925225||_0x2b6277){if(_0x2b6277&&!_0x925225){_0x4b4948['remove'](_0x339564['getChild'](0x0));for(const _0x54cdd8 of Array['from'](_0x4914c3['getChildren']()))_0x4b4948['insert'](_0x54cdd8,_0x339564,'end');const _0x56b0f6=_0x4ab4ee['rowInsertionIndexes']['includes'](_0x5a92e1['row']),_0x237ca3=_0x4ab4ee['columnInsertionIndexes']['includes'](_0x5a92e1['column']);_0x56b0f6||_0x237ca3||(_0x23aea3=_0x531671['fromRange'](_0x4b4948['createRangeIn'](_0x339564)));}else _0x925225&&!_0x2b6277&&(_0x29aaf8=_0x4b4948['createRangeIn'](_0x339564));}else{const _0x29c176=_0x4b4948['createElement']('tableCellSuggestion'),_0x382d8f=_0x4b4948['createElement']('tableCellSuggestion');_0x4b4948['wrap'](_0x4b4948['createRangeIn'](_0x339564),_0x382d8f),_0x4b4948['insert'](_0x29c176,_0x339564,0x0);for(const _0x4eefbd of Array['from'](_0x4914c3['getChildren']()))_0x4b4948['insert'](_0x4eefbd,_0x29c176,'end');_0x23aea3=_0x531671['fromRange'](_0x4b4948['createRangeOn'](_0x29c176)),_0x29aaf8=_0x531671['fromRange'](_0x4b4948['createRangeOn'](_0x382d8f));}const _0x1449fb=Array['from'](_0x4914c3['getAttributes']())['filter'](([_0x221dd4])=>Pe['includes'](_0x221dd4));_0x4ab4ee['cells']['push']({'element':_0x339564,'attributes':_0x1449fb['length']?Object['fromEntries'](_0x1449fb):null}),_0x23aea3&&_0x4ab4ee['insertionRanges']['push'](_0x23aea3),_0x29aaf8&&_0x4ab4ee['deletionRanges']['push'](_0x29aaf8);},{'priority':'high'}),_0x46a982['on']('insertColumns',(_0x32e986,_0x1fde29)=>{const [_0x395193,_0x110a32={}]=_0x1fde29;if(!_0x4ab4ee)return;const _0x22b35e=_0x110a32['at']||0x0,_0x5ee7e0=_0x110a32['columns']||0x1;_0x4ab4ee['columnInsertionIndexes']=new Array(_0x5ee7e0)['fill'](_0x22b35e)['map']((_0x470af7,_0x4b8a7d)=>_0x470af7+_0x4b8a7d);for(const {cell:_0x31c283}of _0x46a982['createTableWalker'](_0x395193,{'startColumn':_0x22b35e,'endColumn':_0x22b35e+_0x5ee7e0-0x1}))_0x4ab4ee['columnInsertionRanges']['push'](_0x429fa2['model']['createRangeOn'](_0x31c283));},{'priority':'low'}),_0x46a982['on']('insertRows',(_0xceadd9,_0x5db46b)=>{const [_0x1a2b25,_0x531e77={}]=_0x5db46b;if(!_0x4ab4ee)return;const _0x317aeb=_0x531e77['at']||0x0,_0xa25307=_0x531e77['rows']||0x1;_0x4ab4ee['rowInsertionIndexes']=new Array(_0xa25307)['fill'](_0x317aeb)['map']((_0x1369ca,_0x4e6f55)=>_0x1369ca+_0x4e6f55);for(const {cell:_0x5ea697}of _0x46a982['createTableWalker'](_0x1a2b25,{'startRow':_0x317aeb,'endRow':_0x317aeb+_0xa25307-0x1}))_0x4ab4ee['rowInsertionRanges']['push'](_0x429fa2['model']['createRangeOn'](_0x5ea697));},{'priority':'low'}),_0x48030c['descriptionFactory']['registerDescriptionCallback'](_0x7058b2=>{if(_0x7058b2['subType']&&_0x7058b2['subType']['startsWith']('tablePaste'))return _0x7058b2['previous']?{}:{'type':'insertion','content':o(_0x429fa2['locale'],'*Replace\x20table\x20cells*')};});const _0x25a501=()=>!0x1;for(const _0x3b933f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x48030c['_suggestionFactory']['registerCustomCallback']('insertion',_0x3b933f,'join',_0x25a501),_0x48030c['_suggestionFactory']['registerCustomCallback']('deletion',_0x3b933f,'join',_0x25a501),_0x48030c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3b933f,'join',_0x25a501);_0x48030c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x25a501),_0x48030c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x37970e,_0x11425b,_0x3b084c)=>{const _0x50416b=_0x37970e['map'](_0xadf281=>_0xadf281['getContainedElement']())['filter'](_0x37e033=>_0x37e033),_0x3b6510=new Map(_0x50416b['map'](_0xaff73=>[_0xaff73,null]));if(_0x4ab4ee){for(const {element:_0x23ffee,attributes:_0x291e05}of _0x4ab4ee['cells'])_0x291e05&&_0x3b6510['set'](_0x23ffee,_0x291e05);}else{if(_0x3b084c&&_0x3b084c['markerAttributes'])for(const [_0x3ebb96,_0x448e9f]of Object['entries'](_0x3b084c['markerAttributes'])){const _0x3a22ff=_0x429fa2['model']['markers']['get'](_0x3ebb96),_0x3244fa=_0x3a22ff?_0x3a22ff['getRange']()['getContainedElement']():null;_0x3244fa&&_0x3b6510['set'](_0x3244fa,_0x448e9f);}}_0x429fa2['model']['change'](_0xc67455=>{for(const [_0xf6b5e6,_0x27a676]of _0x3b6510)_0xc67455['setAttributes']({...we,..._0x27a676},_0xf6b5e6);});});const _0x51269c=(_0x5a9fbc,_0x5d7b30)=>{_0x48030c['_suggestionFactory']['registerCustomCallback'](_0x5a9fbc,'tablePaste',_0x5d7b30,(_0x4d3a07,_0x30d7d7,_0x44ad89)=>{_0x429fa2['model']['change'](_0x5b2b9f=>{const _0x284793=[];for(const _0x50e5d5 of _0x4d3a07){const _0x4b5ebe=_0x50e5d5['start']['nodeAfter'];_0x4b5ebe['is']('element','tableCellSuggestion')&&_0x284793['push'](_0x4b5ebe);}_0x48030c['_suggestionFactory']['getSuggestionCallback'](_0x5a9fbc,null,_0x5d7b30)(_0x4d3a07,_0x30d7d7,_0x44ad89);for(const _0x309f9c of _0x284793)'$graveyard'!=_0x309f9c['root']['rootName']&&_0x5b2b9f['unwrap'](_0x309f9c);});});};_0x51269c('insertion','accept'),_0x51269c('insertion','discard'),_0x51269c('deletion','accept'),_0x51269c('deletion','discard'),_0x48030c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3f4433=>{const _0x3b336c=_0x3f4433['map'](_0x2a37ec=>_0x2a37ec['getContainedElement']()),_0x1215e9=_0x3b336c[0x0]['findAncestor']('table'),{minRow:_0x161f45,maxRow:_0x15acd6}=_0x5dec82['_getCoordsForCells'](_0x3b336c);_0x46a982['removeRows'](_0x1215e9,{'at':_0x161f45,'rows':_0x15acd6-_0x161f45+0x1});}),_0x48030c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1aca1c=>{const _0x1c37da=_0x1aca1c['map'](_0x9c8d9d=>_0x9c8d9d['getContainedElement']()),_0x51bcc9=_0x1c37da[0x0]['findAncestor']('table'),{minColumn:_0x4b5c4d,maxColumn:_0x2f6f39}=_0x5dec82['_getCoordsForCells'](_0x1c37da);_0x46a982['removeColumns'](_0x51bcc9,{'at':_0x4b5c4d,'columns':_0x2f6f39-_0x4b5c4d+0x1});});const _0x59d54c=(_0x5332bf,_0x1c5c3f)=>{if(!_0x1c5c3f['subType']||!_0x1c5c3f['subType']['startsWith']('tablePaste'))return;const _0x5063ae=_0x1c5c3f['attributes']['tablePasteChainId'],_0x5dab47=_0x48030c['getSuggestions']()['filter'](_0x5b6991=>_0x5b6991['isInContent']&&_0x5b6991['attributes']&&_0x5b6991['attributes']['tablePasteChainId']==_0x5063ae);_0x5dab47['length']&&_0x1c5c3f['getAllAdjacentSuggestions']()['length']!=_0x5dab47['length']&&_0x5dab47['reduce']((_0x420084,_0x522c62)=>(_0x420084['next']=_0x522c62,_0x522c62['previous']=_0x420084,_0x522c62));};function _0x7b314f(_0x1caac7,_0x286e7d=!0x0){const {id:_0x398b02,authorId:_0x5a1ef7}=_0x48030c['_splitMarkerName'](_0x1caac7['markerName']),_0x5e0559=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4fd45a=_0x48030c['activeMarkers']['includes'](_0x1caac7['markerName']);return _0x4fd45a&&_0x5e0559['push']('ck-suggestion-marker--active'),{'classes':_0x5e0559,'attributes':{'data-suggestion':_0x398b02,'data-author-id':_0x5a1ef7},'priority':_0x4fd45a&&_0x286e7d?0xbc2:0xbb8};}_0x48030c['on']('suggestionLoaded',_0x59d54c,{'priority':'high'}),_0x48030c['on']('suggestionUnloaded',_0x59d54c,{'priority':'high'}),_0x429fa2['model']['document']['registerPostFixer'](()=>{let _0x5ad33e=!0x1;const _0x4f3338=Array['from'](_0x429fa2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x382806,data:_0x49b2d6}of _0x4f3338){const {group:_0x4e9bd3,type:_0x48d0b5,id:_0x5a037b}=_0x48030c['_splitMarkerName'](_0x382806);if('suggestion'!=_0x4e9bd3||'deletion'!=_0x48d0b5||_0x49b2d6['oldRange'])continue;if(!_0x48030c['hasSuggestion'](_0x5a037b))continue;const _0x6a770c=_0x48030c['getSuggestion'](_0x5a037b)['getRanges'](),_0x4d0725=_0x429fa2['plugins']['get']('Users')['me'];for(const _0x5c65f9 of _0x48030c['getSuggestions']()){if(!_0x5c65f9['isInContent']||_0x5c65f9['author']!=_0x4d0725)continue;if('formatBlock'!=_0x5c65f9['type']||'tablePasteCell'!=_0x5c65f9['subType'])continue;if(_0x5c65f9['getRanges']()['every'](_0x5c4ae5=>_0x6a770c['some'](_0x2ec14e=>_0x2ec14e['containsRange'](_0x5c4ae5,!0x0)))){for(const _0x4c0f38 of _0x5c65f9['getAllAdjacentSuggestions']())_0x4c0f38['isInContent']&&(_0x4c0f38['discard'](),_0x5ad33e=!0x0);}}}return _0x5ad33e;}),_0x429fa2['model']['document']['registerPostFixer'](_0x4e3b45=>{const _0x4b196d=_0x429fa2['commands']['get']('redo');if(!_0x4b196d||!_0x4b196d['_createdBatches']['has'](_0x4e3b45['batch']))return!0x1;let _0x5568da=!0x1;const _0xdb686=_0x429fa2['plugins']['get']('Users')['me'],_0x24d973=_0x429fa2['model']['document']['differ']['getChanges'](),_0x49f800=Array['from'](_0x429fa2['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3c4972,data:_0x2c384c})=>{const {group:_0x14bf38,subType:_0x548e39,authorId:_0xafd35a}=_0x48030c['_splitMarkerName'](_0x3c4972);return'suggestion'==_0x14bf38&&'tablePaste'==_0x548e39&&_0xafd35a==_0xdb686['id']&&!_0x2c384c['oldRange'];});for(const _0x12a4b4 of _0x24d973){if('insert'!=_0x12a4b4['type']||'tableCellSuggestion'!=_0x12a4b4['name']||0x1!=_0x12a4b4['length'])continue;const _0xef8bb5=_0x4e3b45['createRange'](_0x12a4b4['position'],_0x12a4b4['position']['getShiftedBy'](0x1));if(!_0x49f800['find'](({data:_0x2a731d})=>_0x2a731d['newRange']['isEqual'](_0xef8bb5))){for(const {name:_0x2ca62a,data:_0x2eb6ac}of _0x49f800)if(_0xef8bb5['containsRange'](_0x2eb6ac['newRange'])){_0x4e3b45['updateMarker'](_0x2ca62a,{'range':_0xef8bb5}),_0x5568da=!0x0;break;}}}return _0x5568da;}),_0x429fa2['model']['document']['registerPostFixer'](_0x30eb0c=>{let _0x148a2f=!0x1;const _0x17380c=_0x429fa2['plugins']['get']('Users')['me'],_0x5d65d1=_0x48030c['getSuggestions']()['filter'](_0x2c0140=>_0x2c0140['isInContent']&&_0x2c0140['author']==_0x17380c),_0x3f3b36=new Set(),_0x295718=new Set();for(const _0x14d085 of _0x5d65d1)if('tablePaste'==_0x14d085['subType'])for(const _0x3ac77c of _0x14d085['getMarkers']()){const _0x415331=_0x3ac77c['getRange']()['getContainedElement']();if(_0x415331){if(_0x415331['is']('element','tableCellSuggestion')&&ke(_0x415331)){_0x14d085['removeMarker'](_0x3ac77c['name']),_0x3f3b36['add'](_0x415331),_0x148a2f=!0x0;const _0x10fc72=_0x415331['nextSibling'],_0x4a7958=_0x415331['previousSibling'],_0x632c7a=_0x10fc72&&_0x10fc72['is']('element','tableCellSuggestion'),_0x9f1ff7=_0x4a7958&&_0x4a7958['is']('element','tableCellSuggestion');_0x632c7a&&!_0x3f3b36['has'](_0x10fc72)&&_0x295718['add'](_0x10fc72),_0x9f1ff7&&!_0x3f3b36['has'](_0x4a7958)&&_0x295718['add'](_0x4a7958);}else _0x415331['is']('element','paragraph')&&_0x415331['isEmpty']&&(_0x14d085['removeMarker'](_0x3ac77c['name']),_0x148a2f=!0x0);}}else{if('tablePasteCell'==_0x14d085['subType']){if(!_0x14d085['attributes']||!_0x14d085['attributes']['tablePasteChainId'])continue;const _0x119d1f=_0x14d085['attributes']['markerAttributes'];if(_0x119d1f&&Object['keys'](_0x119d1f)['length'])continue;const _0x369a39=_0x14d085['attributes']['tablePasteChainId'];let _0x4eebd3=!0x0,_0x404aee=!0x0;for(const _0x408590 of _0x5d65d1)if(_0x408590['subType']&&_0x408590['subType']['startsWith']('tablePaste')){if(!_0x408590['attributes']['tablePasteChainId']){_0x404aee=!0x1;break;}if(_0x408590['id']!=_0x14d085['id']&&_0x408590['attributes']['tablePasteChainId']==_0x369a39){_0x4eebd3=!0x1;break;}}_0x404aee&&_0x4eebd3&&(_0x14d085['removeMarkers'](),_0x148a2f=!0x0);}}for(const _0x2343f3 of _0x3f3b36)_0x30eb0c['remove'](_0x2343f3);for(const _0x54a4ca of _0x295718)_0x30eb0c['unwrap'](_0x54a4ca);return _0x148a2f;}),_0x429fa2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x504824=>_0x7b314f(_0x504824),'converterPriority':'high'}),_0x429fa2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4370f9,_0x49e1cf)=>_0x49e1cf['options']['showSuggestionHighlights']?_0x7b314f(_0x4370f9,!0x1):null,'converterPriority':'high'});const _0x36732c=_0x429fa2['editing']['view'];this['listenTo'](_0x36732c['document'],'clipboardOutput',(_0x5c2d75,_0x2e8e85)=>{const _0x54c1a6=[];for(const _0x3498d7 of _0x36732c['createRangeIn'](_0x2e8e85['content'])['getItems']())_0x3498d7['is']('element','suggestion-td')&&_0x54c1a6['push'](_0x3498d7);_0x36732c['change'](_0x45b0d1=>{for(const _0x33d4da of _0x54c1a6)_0x45b0d1['move'](_0x45b0d1['createRangeIn'](_0x33d4da),_0x45b0d1['createPositionBefore'](_0x33d4da)),_0x45b0d1['remove'](_0x33d4da);});});}}function ke(_0x4e0c75){if(_0x4e0c75['isEmpty'])return!0x0;const _0x52b227=_0x4e0c75['getChild'](0x0);return _0x52b227['is']('element','paragraph')&&_0x52b227['isEmpty'];}function Re(_0x6de90,_0xa31a97={},_0x4de12f){for(const {isAnchor:_0xbebf76,cellHeight:_0x2150b2,cellWidth:_0x5319c0}of _0x4de12f['createTableWalker'](_0x6de90,{'includeAllSlots':!0x0,..._0xa31a97}))if(!_0xbebf76||0x1!=_0x2150b2||0x1!=_0x5319c0)return!0x1;return!0x0;}class Nt extends _0x409965{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x8cc4ab=this['editor']['plugins']['get']('TrackChangesEditing');_0x8cc4ab['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x8cc4ab['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x8cc4ab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x8cc4ab['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x8cc4ab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x8cc4ab['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3c55bf,_0x862878){const _0x4c3426=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ecb4c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4e9e01=_0x862878['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2d4e51=_0x1ecb4c['getColumnGroupElement'](_0x4e9e01);let _0xf89bb=_0x2d4e51?_0x1ecb4c['getTableColumnsWidths'](_0x2d4e51):null,_0x586509=_0x4e9e01['getAttribute']('tableWidth')||null;const _0x30ec8b=_0x862878['tableWidth']||_0x586509,_0xfc47a2=_0x862878['columnWidths']||_0xf89bb,_0x2682e6=this['editor']['plugins']['get']('Users')['me'];for(const _0x4fd50f of _0x4c3426['getSuggestions']()){const _0x63bc55=_0x4fd50f['getContainedElement']();if('resizeTable'===_0x4fd50f['subType']&&_0x63bc55===_0x4e9e01){_0x4fd50f['author']!==_0x2682e6&&_0x4fd50f['discard']();const _0xd000b8=_0x4fd50f['data']['commandParams'];_0x586509=_0xd000b8[0x0]['tableWidth'],_0xf89bb=_0xd000b8[0x0]['columnWidths'];break;}}_0x3c55bf({'table':_0x4e9e01,'tableWidth':_0x30ec8b,'columnWidths':_0xfc47a2}),_0x4c3426['markBlockFormat'](_0x4e9e01,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x586509,'columnWidths':_0xf89bb}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xcce72){if('formatBlock'!=_0xcce72['type']&&'formatInline'!=_0xcce72['type'])return;const {data:_0x1933ab}=_0xcce72;if(_0x1933ab&&'resizeTable'===_0x1933ab['formatGroupId']){const _0x3f1a4d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3f1a4d)};}}}class Dt extends _0x409965{['afterInit'](){const _0x13d1db=this['editor'];_0x13d1db['plugins']['has']('Template')&&_0x13d1db['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x409965{['afterInit'](){const _0x371dcb=this['editor'];if(!_0x371dcb['commands']['get']('insertTableOfContents'))return;_0x371dcb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x33d15a=_0x371dcb['plugins']['get']('TrackChangesEditing'),_0x5afaa6=_0x371dcb['locale'];_0x33d15a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2a5e57=>o(_0x5afaa6,'ELEMENT_TABLE_OF_CONTENTS',_0x2a5e57));}}class $t extends _0x409965{['afterInit'](){const _0x2484f0=this['editor'];if(!_0x2484f0['plugins']['has']('Title'))return;const _0x2a560f=_0x2484f0['plugins']['get']('TrackChangesEditing');_0x2a560f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2484f0['locale'],'ELEMENT_TITLE')),_0x2484f0['model']['document']['registerPostFixer'](_0x2c86fa=>{let _0x32af8b=!0x1;const _0x18607f=Array['from'](_0x2484f0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x29625e,data:_0x1b6980}of _0x18607f){const {group:_0xb68505}=_0x2a560f['_splitMarkerName'](_0x29625e);if('suggestion'!==_0xb68505||!_0x1b6980['newRange'])continue;const _0x5426c8=_0x1b6980['newRange'],_0x4df234=_0x5426c8['end']['nodeBefore'];if(!_0x4df234||!_0x4df234['is']('element','title-content'))continue;if(!_0x5426c8['start']['isTouching'](_0x5426c8['end']))continue;const _0x27bc1e=_0x2484f0['model']['schema']['getNearestSelectionRange'](_0x5426c8['end'],'forward');if(_0x27bc1e&&_0x27bc1e['isCollapsed']){const _0x231425=_0x2c86fa['createRange'](_0x5426c8['start'],_0x27bc1e['start']);_0x231425['isEqual'](_0x5426c8)||(_0x2c86fa['updateMarker'](_0x29625e,{'range':_0x231425}),_0x32af8b=!0x0);}_0x32af8b||(_0x2c86fa['removeMarker'](_0x29625e),_0x32af8b=!0x0);}return _0x32af8b;});}}class Bt extends _0x409965{['afterInit'](){const _0xfe0728=this['editor'],_0x497183=_0xfe0728['plugins']['get']('TrackChangesEditing');_0xfe0728['plugins']['has']('UndoEditing')&&(_0x497183['enableCommand']('undo'),_0x497183['enableCommand']('redo'));}}class xt extends _0x409965{static get['requires'](){return[It];}['afterInit'](){const _0x2e96cc=this['editor'];if(!_0x2e96cc['plugins']['has']('TableCaptionEditing'))return;_0x2e96cc['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x409965{['tableProperties'];['tableCellProperties'];constructor(_0x44b94c){super(_0x44b94c),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';}['afterInit'](){const _0x202062=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x318133 of this['tableProperties'])_0x202062['enableCommand'](_0x318133,(_0x285a4,_0x1a872f)=>{const _0x1867bd=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x318133,[_0x1867bd],this['tableProperties'],'tableProperties',_0x285a4,_0x1a872f);});_0x202062['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x202062['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x202062['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x166770,_0x65d8f8)=>this['handleDiscardAction'](this['tableProperties'],_0x166770,_0x65d8f8)),_0x202062['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x56ab0d of this['tableCellProperties'])_0x202062['enableCommand'](_0x56ab0d,(_0x3e5426,_0x11e0d6)=>{const _0x5bfb8c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x56ab0d,_0x5bfb8c,this['tableCellProperties'],'tableCellProperties',_0x3e5426,_0x11e0d6);});_0x202062['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x202062['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x202062['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5aa15b,_0x1f38d2)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5aa15b,_0x1f38d2)),_0x202062['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x202062['descriptionFactory']['registerDescriptionCallback'](_0x1ac4ee=>this['handleSuggestionDescription'](_0x1ac4ee));}['_handlePropertyChange'](_0x556253,_0x1f5d14,_0x558849,_0x6106bf,_0x5327a9,_0x58507d){const _0xe2385d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x58507d['batch'],()=>{for(const _0x27c275 of _0x1f5d14){if(this['_getSuggestion'](_0x27c275,_0x6106bf))_0x5327a9(_0x58507d);else{const _0x2fa5b3={};for(const _0x16838c of _0x558849){const _0x495612=_0x27c275['getAttribute'](_0x16838c);void 0x0!==_0x495612&&(_0x2fa5b3[_0x16838c]=_0x495612);}_0x5327a9(_0x58507d),_0xe2385d['markBlockFormat'](_0x27c275,{'commandParams':[_0x2fa5b3]},[],_0x6106bf);}}});}['handleDiscardAction'](_0x1ef24a,_0x2a1e93,_0x5114e2){const _0x11cc02=_0x2a1e93[0x0]['start']['nodeAfter'],_0x5e19eb=_0x5114e2['commandParams'][0x0];this['editor']['model']['change'](_0x4b8fbe=>{for(const _0x467966 of _0x1ef24a)void 0x0!==_0x5e19eb[_0x467966]?_0x4b8fbe['setAttribute'](_0x467966,_0x5e19eb[_0x467966],_0x11cc02):_0x4b8fbe['removeAttribute'](_0x467966,_0x11cc02);});}['handleSuggestionDescription'](_0x29397b){if(_0x29397b['data'])switch(_0x29397b['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'](_0x3b01c4,_0x5d016e){const _0x5db37b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x152fec of _0x5db37b['getSuggestions']({'skipNotAttached':!0x0})){const _0x120e6a=_0x152fec['getContainedElement']();if(_0x152fec['subType']===_0x5d016e&&_0x120e6a===_0x3b01c4)return _0x152fec;}return null;}}const m='$elementName';class p extends _0x409965{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xf1e53e,_0x2c8515,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x53924c){function _0x56e213(_0x3271b7){return _0x3271b7['map'](_0x26357a=>String['fromCharCode'](_0x26357a))['join']('');}super(_0x53924c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5a435a,_0x187496,_0x2faf45,_0x4fece1)=>{this['_model']['change'](()=>{for(const _0x18ae52 of[..._0x4fece1,..._0x2faf45])this['_model']['markers']['has'](_0x18ae52)&&_0x53924c['editing']['reconvertMarker'](_0x18ae52);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x53924c['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(),_0x53924c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x53924c['config']['get']('trackChanges.trackFormatChanges'),_0x53924c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x53924c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x53924c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x56e213([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x56e213([0x34,0x30,0x34,0x38,0x32,0x30,0x31,0x30]);}['init'](){const _0x5f073e=this['editor'],_0x267564=(_0x2c50f2,_0x13ae02)=>{if('attribute'!=_0x2c50f2)return'ck-suggestion-marker-'+_0x2c50f2;const _0xe8364c=_0x13ae02['split']('|')[0x0];return this['_isBlockAttribute'](_0xe8364c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5f073e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1751ab=>{const {id:_0x25e958,authorId:_0x40842c,type:_0x52a9bc,subType:_0x291d8e}=this['_splitMarkerName'](_0x1751ab['markerName']),_0x596e1d=['ck-suggestion-marker',_0x267564(_0x52a9bc,_0x291d8e)];let _0x42cf2f=0xbb8;return this['activeMarkers']['includes'](_0x1751ab['markerName'])&&(_0x596e1d['push']('ck-suggestion-marker--active'),_0x42cf2f=0xbc2),'deletion'==_0x52a9bc&&(_0x42cf2f+=0x5),{'classes':_0x596e1d,'attributes':{'data-suggestion':_0x25e958,'data-author-id':_0x40842c},'priority':_0x42cf2f};}}),_0x5f073e['conversion']['for']('dataDowncast')['add'](_0x474dd7=>{_0x474dd7['on']('addMarker:suggestion',(_0x22f777,_0x4a60f4,_0x515173)=>{if(!_0x515173['options']['showSuggestionHighlights'])return;const _0x160ee0=_0x4a60f4['item'];if(!_0x160ee0)return;const _0x515df2=_0x515173['mapper']['toViewElement'](_0x160ee0);_0x5f073e['model']['schema']['isObject'](_0x160ee0)&&_0x515df2&&!_0x515df2['getCustomProperty']('widget')&&_0x515df2['is']('containerElement')&&_0xa3b2cd(_0x515df2,_0x515173['writer']);},{'priority':'high'});}),_0x5f073e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x57ec9a,_0x772ace)=>{if(!_0x772ace['options']['showSuggestionHighlights'])return null;const {type:_0x52f5e1,subType:_0x4f713f}=this['_splitMarkerName'](_0x57ec9a['markerName']);return{'classes':['ck-suggestion-marker',_0x267564(_0x52f5e1,_0x4f713f)],'priority':0xbb8};}});const _0x23f7e0=({showActiveMarkers:_0x1768aa=!0x0,isAttributeSuggestion:_0x4e7f36=!0x1}={})=>(_0x14bd1d,_0x4726dc,_0x3446a5)=>{if(!_0x4726dc['item'])return;const {id:_0x43fd87,authorId:_0x25149a}=this['_splitMarkerName'](_0x4726dc['markerName']);if(_0x4e7f36){const _0x1e208a=this['_suggestions']['get'](_0x43fd87),_0x34c4ff=this['_getAttributeKey'](_0x1e208a);if(!this['_isBlockAttribute'](_0x34c4ff))return;}if(_0x4726dc['item']['is']('selection'))return void _0x3446a5['consumable']['consume'](_0x4726dc['item'],_0x14bd1d['name']);const _0x56997b=_0x3446a5['mapper']['toViewElement'](_0x4726dc['item']);if(_0x4726dc['item']['is']('element')&&_0x5f073e['model']['schema']['isBlock'](_0x4726dc['item'])&&!_0x56997b['getCustomProperty']('addHighlight')){_0x3446a5['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x56997b),_0x3446a5['writer']['setAttribute']('data-suggestion',_0x43fd87,_0x56997b),_0x3446a5['writer']['setAttribute']('data-author-id',_0x25149a,_0x56997b),_0x3446a5['mapper']['bindElementToMarker'](_0x56997b,_0x4726dc['markerName']),_0x1768aa&&(this['activeMarkers']['includes'](_0x4726dc['markerName'])?_0x3446a5['writer']['addClass']('ck-suggestion-marker--active',_0x56997b):_0x3446a5['writer']['removeClass']('ck-suggestion-marker--active',_0x56997b));for(const _0x5ee1fc of _0x5f073e['model']['createRangeIn'](_0x4726dc['item'])['getItems']())_0x3446a5['consumable']['consume'](_0x5ee1fc,_0x14bd1d['name']);_0x3446a5['consumable']['consume'](_0x4726dc['item'],_0x14bd1d['name']);}};_0x5f073e['conversion']['for']('dataDowncast')['add'](_0x22366c=>{_0x22366c['on']('addMarker:suggestion:formatBlock',(_0x5ac1f0,_0x10540f,_0x1b0731)=>{_0x1b0731['options']['showSuggestionHighlights']&&_0x23f7e0({'showActiveMarkers':!0x1})(_0x5ac1f0,_0x10540f,_0x1b0731);},{'priority':'highest'});}),_0x5f073e['conversion']['for']('dataDowncast')['add'](_0x3b4679=>{_0x3b4679['on']('addMarker:suggestion:attribute',(_0x20de89,_0x551154,_0x64192f)=>{_0x64192f['options']['showSuggestionHighlights']&&_0x23f7e0({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x20de89,_0x551154,_0x64192f);},{'priority':'highest'});}),_0x5f073e['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x34b8cd,_0x2a11a9)=>_0x2a11a9['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x34b8cd['substr'](0xb)}}),_0x5f073e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x378df4,{writer:_0x1d4aa7})=>{let _0x2106fe='suggestion:'+_0x378df4['getAttribute']('suggestion-type')+':'+_0x378df4['getAttribute']('id');return _0x378df4['getAttribute']('marker-count')&&(_0x2106fe+=':'+_0x378df4['getAttribute']('marker-count')),_0x1d4aa7['createElement']('$marker',{'data-name':_0x2106fe});}}),_0x5f073e['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5f073e['conversion']['for']('editingDowncast')['add'](_0x37efaa=>{_0x37efaa['on']('addMarker:suggestion:formatBlock',_0x23f7e0(),{'priority':'high'});}),_0x5f073e['conversion']['for']('editingDowncast')['add'](_0x179ec5=>{_0x179ec5['on']('addMarker:suggestion:attribute',_0x23f7e0({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5f073e['conversion']['for']('editingDowncast')['add'](_0x32a52c=>{_0x32a52c['on']('removeMarker:suggestion:formatBlock',(_0xe85c27,_0x153d9d,_0x59e26d)=>{const _0x51484c=_0x59e26d['mapper']['markerNameToElements'](_0x153d9d['markerName']);if(_0x51484c){for(const _0x39c2c5 of _0x51484c)_0x39c2c5['getCustomProperty']('addHighlight')||(_0x59e26d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x39c2c5),_0x59e26d['writer']['removeAttribute']('data-suggestion',_0x39c2c5),_0x59e26d['writer']['removeAttribute']('data-author-id',_0x39c2c5),_0x59e26d['mapper']['unbindElementFromMarkerName'](_0x39c2c5,_0x153d9d['markerName']));}},{'priority':'high'});}),_0x5f073e['conversion']['for']('editingDowncast')['add'](_0x5e3b21=>{_0x5e3b21['on']('removeMarker:suggestion:attribute',(_0x3d0e72,_0x8b6ee7,_0x40d201)=>{const _0x53cc5a=_0x40d201['mapper']['markerNameToElements'](_0x8b6ee7['markerName']);if(!_0x53cc5a)return;const {id:_0x26a314}=this['_splitMarkerName'](_0x8b6ee7['markerName']),_0x18e928=this['_suggestions']['get'](_0x26a314),_0x43e5b0=this['_getAttributeKey'](_0x18e928);if(this['_isBlockAttribute'](_0x43e5b0)){for(const _0x17fe97 of _0x53cc5a)_0x17fe97['getCustomProperty']('addHighlight')||(_0x40d201['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x17fe97),_0x40d201['writer']['removeAttribute']('data-suggestion',_0x17fe97),_0x40d201['writer']['removeAttribute']('data-author-id',_0x17fe97),_0x40d201['mapper']['unbindElementFromMarkerName'](_0x17fe97,_0x8b6ee7['markerName']));}},{'priority':'high'});}),_0x5f073e['model']['document']['registerPostFixer'](_0x10bc65=>{let _0x8acc41=!0x1;const _0x294965=Array['from'](_0x5f073e['model']['document']['differ']['getChangedMarkers']()),_0x1b5762=new Set();for(const {name:_0x1b577d,data:_0x643b00}of _0x294965){const {group:_0x3da391,type:_0x3d7d7,subType:_0x35bf7d,id:_0x171f94}=this['_splitMarkerName'](_0x1b577d);if('suggestion'!==_0x3da391)continue;const _0x280a74=this['_suggestions']['get'](_0x171f94);if(null!=_0x643b00['newRange']){'formatInline'==_0x3d7d7&&(_0x8acc41=_0x8acc41||Ut(_0x643b00['newRange'],_0x1b577d,_0x10bc65,_0x5f073e['model']['schema']));const _0x143964='attribute'==_0x3d7d7&&this['_isBlockAttribute'](_0x35bf7d['split']('|')[0x0]);if(_0x643b00['newRange']['isCollapsed']||'$graveyard'==_0x643b00['newRange']['root']['rootName']||'formatBlock'==_0x3d7d7&&!Ft(_0x643b00['newRange'])||_0x143964&&!Ft(_0x643b00['newRange'])||'deletion'==_0x3d7d7&&!(!Vt(_0x3f63c2=_0x643b00['newRange'])&&!function(_0x2e143c){return _0x2e143c['start']['parent']==_0x2e143c['end']['nodeBefore']&&_0x2e143c['start']['isAtEnd'];}(_0x3f63c2)))_0x10bc65['removeMarker'](_0x1b577d),_0x8acc41=!0x0;else{if(!_0x280a74||!_0x280a74['isInContent'])continue;if(_0x643b00['newRange']&&_0x643b00['oldRange']&&_0x643b00['newRange']['isEqual'](_0x643b00['oldRange']))continue;_0x1b5762['add'](_0x280a74);}}}var _0x3f63c2;return _0x1b5762['size']>0x0&&(_0x8acc41=!!this['_joinWithAdjacentSuggestions'](_0x1b5762)||_0x8acc41),_0x8acc41;}),_0x5f073e['model']['document']['registerPostFixer'](_0x66b984=>{let _0x1fa0ce=!0x1;for(const _0x2b9461 of _0x5f073e['model']['document']['differ']['getChanges']())if('insert'==_0x2b9461['type'])for(const _0x4aab12 of this['_suggestions']['values']()){if(_0x4aab12['isMultiRange']||!_0x4aab12['isInContent'])continue;const _0x4f1ca6='formatBlock'==_0x4aab12['type'],_0x7caca=this['_getAttributeKey'](_0x4aab12),_0x5c45c3=_0x7caca&&this['_isBlockAttribute'](_0x7caca);if(!_0x4f1ca6&&!_0x5c45c3)continue;const _0x5c3a33=_0x4aab12['getFirstRange']();if(_0x5c3a33['start']['parent']!=_0x5c3a33['end']['parent']&&!_0x5c3a33['end']['isAtEnd']){const _0x4794a0=_0x5f073e['model']['createPositionAt'](_0x5c3a33['start']['nodeAfter'],'end'),_0x218d49=_0x5f073e['model']['createRange'](_0x5c3a33['start'],_0x4794a0);_0x66b984['updateMarker'](_0x4aab12['getFirstMarker'](),{'range':_0x218d49}),_0x1fa0ce=!0x0;}}return _0x1fa0ce;}),_0x5f073e['model']['document']['registerPostFixer'](_0x853f45=>this['_processAttributeChanges'](_0x853f45)),_0x5f073e['model']['document']['registerPostFixer'](_0x3eb26f=>!_0x3eb26f['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3eb26f)),_0x5f073e['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5f073e['model']['document']['on']('change:data',(_0x16915a,_0x1794d9)=>{if(!_0x1794d9['isLocal']||_0x1794d9['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x47ed37=_0x5f073e['model']['document']['differ']['getChanges']();if(0x0==_0x47ed37['length'])return;const _0x1bbad9=[],_0x196dc8=_0x47ed37['filter'](_0x34ac1b=>'attribute'==_0x34ac1b['type']),_0x2959ba=_0x47ed37['filter'](_0x151880=>'insert'==_0x151880['type']&&'$text'!=_0x151880['name']);for(const _0xa35aaa of _0x196dc8)this['_isRegisteredAttribute'](_0xa35aaa['attributeKey'])&&_0x1bbad9['push']({'key':_0xa35aaa['attributeKey'],'newValue':_0xa35aaa['attributeNewValue'],'oldValue':_0xa35aaa['attributeOldValue'],'range':Pt(_0xa35aaa['range'],_0x5f073e['model'])});for(const _0x21e2cb of _0x2959ba){if('rename'!=_0x21e2cb['action']&&'refresh'!=_0x21e2cb['action'])continue;const _0x118ad7=Lt(_0x21e2cb['position']['nodeAfter'],_0x5f073e['model']),_0x31a4a7=_0x21e2cb['before'];'rename'==_0x21e2cb['action']&&_0x1bbad9['push']({'key':m,'newValue':_0x21e2cb['name'],'oldValue':_0x31a4a7['name'],'range':_0x118ad7});for(const [_0xbccef5,_0x3d3240]of _0x31a4a7['attributes']){if(!this['_isRegisteredAttribute'](_0xbccef5))continue;const _0x10da88=_0x21e2cb['attributes']['get'](_0xbccef5);_0x3d3240!==_0x10da88&&_0x1bbad9['push']({'key':_0xbccef5,'newValue':_0x10da88,'oldValue':_0x3d3240,'range':_0x118ad7});}for(const [_0x5e5791,_0x24e7ab]of _0x21e2cb['attributes'])this['_isRegisteredAttribute'](_0x5e5791)&&(_0x31a4a7['attributes']['has'](_0x5e5791)||_0x1bbad9['push']({'key':_0x5e5791,'newValue':_0x24e7ab,'oldValue':null,'range':_0x118ad7}));}0x0!=_0x1bbad9['length']&&_0x5f073e['model']['enqueueChange'](_0x1794d9,_0x315ca4=>{const _0x2f96fa=_0x413213();for(const {range:_0x1e0225,key:_0x277075,oldValue:_0x1ce6f7,newValue:_0x6ef1fd}of _0x1bbad9)this['markAttributeChange'](_0x1e0225,_0x277075,_0x1ce6f7,_0x6ef1fd,{'groupId':_0x2f96fa});this['_reduceExistingSuggestions'](_0x315ca4,_0x1bbad9);});},{'priority':'lowest'}),_0x5f073e['model']['markers']['on']('update:suggestion',(_0x3e7b44,_0x58a787,_0x4cfefc)=>{if(null==_0x4cfefc){const {id:_0x5c2962}=this['_splitMarkerName'](_0x58a787['name']),_0x18fddf=this['_suggestions']['get'](_0x5c2962);_0x18fddf&&_0x18fddf['addMarkerName'](_0x58a787['name']);}}),_0x5f073e['model']['document']['on']('change:data',()=>{const _0x53a9fe=Array['from'](_0x5f073e['model']['document']['differ']['getChangedMarkers']())['filter'](_0x50c478=>'suggestion'===this['_splitMarkerName'](_0x50c478['name'])['group']);if(0x0===_0x53a9fe['length'])return;_0x53a9fe['sort']((_0x409643,_0x364f26)=>{const _0x3f872b=_0x409643['data']['oldRange'],_0x2ef2f5=_0x364f26['data']['oldRange'];return null===_0x3f872b&&null===_0x2ef2f5?0x0:null===_0x3f872b&&null!==_0x2ef2f5?-0x1:null!==_0x3f872b&&null===_0x2ef2f5?0x1:_0x3f872b['start']['isBefore'](_0x2ef2f5['start'])?-0x1:0x1;});const _0x688915=new Set(),_0x5e6e76=new Set();for(const {name:_0xfeff8d,data:_0x5533a6}of _0x53a9fe){const {id:_0x498d34}=this['_splitMarkerName'](_0xfeff8d);if(null===_0x5533a6['oldRange']){const _0x517a16=this['_handleNewSuggestionMarker'](_0xfeff8d);_0x5e6e76['add'](_0x517a16);}else{const _0x1c650b=this['_suggestions']['get'](_0x498d34);null!==_0x5533a6['newRange']||_0x1c650b['isInContent']?(_0x688915['add'](_0x1c650b['head']),_0x5e6e76['add'](_0x1c650b)):this['_removeSuggestion'](_0x1c650b);}}_0x5e6e76['size']>0x0&&this['_refreshSuggestionsChain'](_0x5e6e76);for(const _0x47ad98 of _0x688915)this['fire']('suggestionChanged',_0x47ad98);}),_0x5f073e['model']['on']('applyOperation',(_0x775c91,_0xbe4e7a)=>{const _0x136b2c=_0xbe4e7a[0x0];if(!this['_suggestions']['size'])return;if(!_0x136b2c['isDocumentOperation'])return;if(_0x136b2c['batch']['isUndo']||!_0x136b2c['batch']['isLocal'])return;let _0x4be0de,_0x52d289;switch(_0x136b2c['type']){case'insert':_0x4be0de=_0x5f073e['model']['createPositionAt'](_0x136b2c['position']),_0x52d289=_0x4be0de['getShiftedBy'](_0x136b2c['howMany']);break;case'split':_0x4be0de=_0x5f073e['model']['createPositionAt'](_0x136b2c['splitPosition']),_0x52d289=_0x5f073e['model']['createPositionAt'](_0x136b2c['moveTargetPosition']);break;case'move':_0x4be0de=_0x5f073e['model']['createPositionAt'](_0x136b2c['targetPosition']),_0x52d289=_0x4be0de['getShiftedBy'](_0x136b2c['howMany']);break;default:return;}const _0x306750=_0x5f073e['model']['createRange'](_0x4be0de,_0x52d289);_0x5f073e['model']['change'](()=>{for(const {suggestion:_0x16c047,meta:_0x387cc9}of this['_findSuggestions'](_0x306750)){if(_0x16c047['isMultiRange'])continue;if('formatInline'==_0x16c047['type'])continue;const _0x30d852=this['_getAttributeKey'](_0x16c047);if(_0x30d852&&this['_isBlockAttribute'](_0x30d852)&&'split'!=_0x136b2c['type'])continue;const _0x3c0ebc=_0x16c047['data']&&_0x16c047['data']['multipleBlocks'];('formatBlock'!=_0x16c047['type']||'split'==_0x136b2c['type']&&!_0x3c0ebc)&&(_0x387cc9['containsRangeInObject']||'insertion'==_0x16c047['type']&&_0x387cc9['isOwn']||_0x16c047['getFirstRange']()['containsRange'](_0x306750)&&this['_breakSuggestionMarker'](_0x16c047,_0x4be0de,_0x52d289));}});},{'priority':'lowest'}),_0x5f073e['model']['on']('deleteContent',(_0x1dc2c2,_0x35f368)=>{const _0xd393ea=_0x35f368[0x0],_0x23515d=_0x35f368[0x1];if(_0x23515d&&_0x23515d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xd393ea['isCollapsed'])return;const _0x1474b0=_0x5f073e['model']['schema'],{start:_0x2f09a3,end:_0x3f847b}=_0xd393ea['getFirstRange'](),_0xe09cb8=_0x2f09a3['nodeAfter']&&_0x1474b0['isLimit'](_0x2f09a3['nodeAfter'])?null:_0x1474b0['getNearestSelectionRange'](_0x2f09a3,'forward'),_0x1777b0=_0x3f847b['nodeBefore']&&_0x1474b0['isLimit'](_0x3f847b['nodeBefore'])?null:_0x1474b0['getNearestSelectionRange'](_0x3f847b,'backward'),_0x24bdae=_0x5f073e['model']['createRange'](_0xe09cb8?_0xe09cb8['start']:_0x2f09a3,_0x1777b0?_0x1777b0['end']:_0x3f847b);_0x5f073e['model']['change'](_0x278d4b=>{this['markDeletion'](_0x24bdae);const _0x50012b=_0x5f073e['model']['schema']['getNearestSelectionRange'](_0x24bdae['start']);_0xd393ea['is']('documentSelection')?_0x278d4b['setSelection'](_0x50012b):_0xd393ea['setTo'](_0x50012b);}),_0x1dc2c2['stop']();},{'priority':_0x3dec8d['normal']+0xa}),_0x5f073e['model']['on']('insertContent',(_0x1fe7e8,_0x3b74a6)=>{const _0x5096c6=_0x3b74a6[_0x3b74a6['length']-0x1];_0x5096c6&&_0x5096c6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5f073e['model']['change'](()=>{let _0x4fbb8a=_0x5f073e['model']['insertContent'](_0x3b74a6[0x0],_0x3b74a6[0x1],_0x3b74a6[0x2],{'forceDefaultExecution':!0x0});if(!_0x4fbb8a)return;_0x1fe7e8['return']=_0x4fbb8a['clone']();const _0x4033e6=_0x4fbb8a['end']['nodeBefore'],_0xeb1fc6=_0x5f073e['model']['schema'];_0x4033e6&&_0xeb1fc6['isBlock'](_0x4033e6)&&!_0xeb1fc6['isObject'](_0x4033e6)&&(_0x4fbb8a=_0x5f073e['model']['createRange'](_0x4fbb8a['start'],_0x5f073e['model']['createPositionAt'](_0x4033e6,'end'))),this['markInsertion'](_0x4fbb8a);}),_0x1fe7e8['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x250c3d=new x(_0x5f073e,this['_suggestions']);_0x5f073e['commands']['add']('acceptSuggestion',_0x250c3d),this['enableCommand']('acceptSuggestion');const _0xbedd3=new R(_0x5f073e,this['_suggestions']);_0x5f073e['commands']['add']('discardSuggestion',_0xbedd3),this['enableCommand']('discardSuggestion'),_0x5f073e['commands']['add']('acceptAllSuggestions',new E(_0x5f073e,_0x250c3d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5f073e['commands']['add']('discardAllSuggestions',new E(_0x5f073e,_0xbedd3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5f073e['commands']['add']('acceptSelectedSuggestions',new O(_0x5f073e,_0x250c3d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5f073e['commands']['add']('discardSelectedSuggestions',new O(_0x5f073e,_0xbedd3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1c7440=_0x5f073e['plugins']['get']('CommentsRepository');this['listenTo'](_0x1c7440,'addComment',(_0x3bd4b1,{threadId:_0x5cbc2c})=>{const _0x591339=this['_suggestions']['get'](_0x5cbc2c);_0x591339&&_0x591339['commentThread']&&0x1===_0x591339['commentThread']['length']&&this['_updateSuggestionData'](_0x5cbc2c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1c7440,'removeComment',(_0x429e97,{threadId:_0x556a35})=>{const _0x32f1c3=this['_suggestions']['get'](_0x556a35);_0x32f1c3&&_0x32f1c3['commentThread']&&!_0x32f1c3['commentThread']['length']&&this['_updateSuggestionData'](_0x556a35,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0xe3c4){if(this['_adapter'])throw new _0x1a44d6('track-changes-adapter-already-set',this);this['_adapter']=_0xe3c4;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x9bf5e7=!0x1,toJSON:_0x5c2056=!0x1}={}){const _0x1f7f76=[];for(const _0x26ad41 of this['_suggestions']['values']())_0x9bf5e7&&!_0x26ad41['isInContent']||_0x1f7f76['push'](_0x26ad41);return _0x5c2056?_0x1f7f76['map'](_0x9637fa=>_0x9637fa['toJSON']()):_0x1f7f76;}['getSuggestion'](_0x432a65){const _0x57d47b=this['_suggestions']['get'](_0x432a65);if(!_0x57d47b)throw new _0x1a44d6('track-changes-suggestion-not-found',this);return _0x57d47b;}['hasSuggestion'](_0x5cf377){return this['_suggestions']['has'](_0x5cf377);}['addSuggestionData'](_0x4b78b5){const {authorId:_0x5095d7,id:_0x48219b,attributes:_0x49e9c3}=_0x4b78b5,[_0x3007ae,_0x4b7c39]=_0x4b78b5['type']['split'](':'),_0x1230b0=this['_suggestions']['get'](_0x48219b)||this['_createSuggestion'](_0x3007ae,_0x4b7c39,_0x48219b,_0x5095d7,_0x49e9c3);if(this['_addThreadToSuggestion'](_0x1230b0),this['_checkSuggestionCorrectness'](_0x1230b0,_0x3007ae,_0x4b7c39||null,_0x5095d7),_0x1230b0['createdAt']=_0x4b78b5['createdAt'],_0x1230b0['_isDataLoaded']=!0x0,_0x49e9c3&&_0x49e9c3['@external']){const _0x2d18d6=_0x49e9c3['@external'],_0x51150d=this['_getExternalAuthor'](_0x2d18d6['authorName']);_0x1230b0['authoredAt']=_0x2d18d6['createdAt'],_0x1230b0['author']=_0x51150d,_0x1230b0['isExternal']=!0x0;}else _0x1230b0['authoredAt']=_0x4b78b5['createdAt'];switch(_0x4b78b5['data']&&(_0x1230b0['data']=_0x4b78b5['data']),_0x4b78b5['attributes']&&(_0x1230b0['attributes']=_0x4b78b5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1230b0['_saved']=!0x0),this['_suggestionState']['get'](_0x1230b0)){case'notReady':this['_suggestionState']['set'](_0x1230b0,'dataReady');break;case'markerReady':_0x1230b0['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1230b0])),this['_refreshSuggestionsChain'](new Set([_0x1230b0])),this['_suggestionState']['set'](_0x1230b0,'ready'),this['fire']('suggestionLoaded',_0x1230b0)):this['_suggestionState']['set'](_0x1230b0,'removed');}return _0x1230b0;}['acceptSuggestion'](_0x34a347){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1f1699 of _0x34a347['getAllAdjacentSuggestions']())_0x1f1699['accept']();});});}['discardSuggestion'](_0x4fc945){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x243303 of _0x4fc945['getAllAdjacentSuggestions']())_0x243303['discard']();});});}['enableCommand'](_0x57ae61,_0x2cdfd7){const _0x1486de=this['editor']['commands']['get'](_0x57ae61);if(!_0x1486de)throw new _0x1a44d6('track-changes-command-not-found',this,{'commandName':_0x57ae61});if(this['_enabledCommands']['has'](_0x1486de))throw new _0x1a44d6('track-changes-enable-command-twice',this,{'commandName':_0x57ae61});this['_enabledCommands']['add'](_0x1486de),_0x2cdfd7&&_0x1486de['on']('execute',(_0x4e357f,_0x5e455e)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5e455e['length']>0x0&&_0x5e455e[_0x5e455e['length']-0x1]&&_0x5e455e[_0x5e455e['length']-0x1]['forceDefaultExecution']?_0x5e455e['pop']():(_0x4e357f['return']=_0x2cdfd7((..._0x3d05c3)=>_0x1486de['execute'](..._0x3d05c3,{'forceDefaultExecution':!0x0}),..._0x5e455e),_0x4e357f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1706aa){let _0x4b2c2b,_0x3133cd;const _0x329892=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4b2c2b=_0x1706aa();}catch(_0x327e09){_0x3133cd=_0x327e09;}return _0x329892||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3133cd&&_0x1a44d6['rethrowUnexpectedError'](_0x3133cd,this),_0x4b2c2b;}['markInsertion'](_0x2d11ad,_0x146e8c=null,_0x22a94b={}){if(_0x2d11ad['isCollapsed'])return null;const _0x444d7c=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x255e87,meta:_0x5e93f9}of this['_findSuggestions'](_0x2d11ad,'insertion'))if(_0x5e93f9['isOwn']){if(!_0x5e93f9['isNextTo']){if(_0x5e93f9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x255e87,_0x22a94b))continue;return _0x255e87;}if(qt(_0x255e87,_0x22a94b))return _0x255e87;this['_breakSuggestionMarker'](_0x255e87,_0x2d11ad['start'],_0x2d11ad['end']);break;}if(_0x146e8c==_0x255e87['subType']&&qt(_0x255e87,_0x22a94b)){const _0x14e991=_0x255e87['getFirstRange']();return _0x14e991['start']['isEqual'](_0x2d11ad['end'])?this['_setSuggestionRange'](_0x255e87,this['_model']['createRange'](_0x2d11ad['start'],_0x14e991['end'])):this['_setSuggestionRange'](_0x255e87,this['_model']['createRange'](_0x14e991['start'],_0x2d11ad['end'])),_0x255e87;}}const _0x55b856=_0x413213(),_0x197653=_0x444d7c['id'],_0x3b375a=_0x146e8c?'insertion:'+_0x146e8c:'insertion',_0x37e86a=this['_setSuggestionData']({'id':_0x55b856,'type':_0x3b375a,'createdAt':new Date(),'authorId':_0x197653,'attributes':_0x22a94b});return this['_addSuggestionMarker'](_0x3b375a,_0x55b856,_0x197653,_0x2d11ad),_0x37e86a;}['markMultiRangeInsertion'](_0x113192,_0x5bb6a3='multi',_0x1c53a2={}){const _0x15e66c=this['editor']['plugins']['get']('Users')['me'],_0x1f8a13=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5bb6a3,'join');for(const _0x3c3f8a of this['getSuggestions']())if(_0x3c3f8a['author']['id']==_0x15e66c['id']&&'insertion'==_0x3c3f8a['type']&&_0x3c3f8a['subType']==_0x5bb6a3&&qt(_0x3c3f8a,_0x1c53a2)&&(_0x1f8a13(_0x3c3f8a['getRanges'](),_0x113192)||_0x1f8a13(_0x113192,_0x3c3f8a['getRanges']()))){for(const _0x367671 of _0x113192)_0x3c3f8a['addRange'](_0x367671);return _0x3c3f8a;}for(const {suggestion:_0x1678c1,meta:_0x42f358}of this['_findSuggestions'](_0x113192,'insertion')){if(!_0x42f358['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x42f358['containsRangeInObject'])continue;if(!qt(_0x1678c1,_0x1c53a2))continue;let _0xfeef4c=!0x0;for(const _0x43646c of _0x1678c1['getRanges']())for(const _0x5a5c43 of _0x113192)if(!_0x43646c['containsRange'](_0x5a5c43)){_0xfeef4c=!0x1;break;}if(_0xfeef4c)return _0x1678c1;}const _0x179c3a=_0x413213(),_0x8cad9a=_0x15e66c['id'],_0x4974f5='insertion:'+_0x5bb6a3,_0x4b62df=this['_setSuggestionData']({'id':_0x179c3a,'type':_0x4974f5,'createdAt':new Date(),'authorId':_0x8cad9a,'attributes':_0x1c53a2});for(const _0x53392e of _0x113192)this['_addSuggestionMarker'](_0x4974f5,_0x179c3a,_0x8cad9a,_0x53392e,u['getMultiRangeId']());return _0x4b62df;}['markInlineFormat'](_0x2f86dd,_0x178ca4,_0x3102c9=null,_0x15ede9={}){if(_0x3102c9=_0x3102c9||Gt(_0x178ca4),_0x2f86dd['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x51d0b5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3102c9,'accept');return this['forceDefaultExecution'](()=>_0x51d0b5([_0x2f86dd],_0x178ca4,_0x15ede9)),null;}const _0x49db43=this['editor']['plugins']['get']('Users')['me'],_0x269d28=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4d053d,meta:_0x4425e4}of this['_findSuggestions'](_0x2f86dd,'insertion'))_0x4425e4['isOwn']&&!_0x4425e4['isInsideObject']&&_0x269d28['push'](..._0x4d053d['getRanges']());}const _0x3c9690=function(_0x3869af,_0x13b358){const _0xb4e96=[];for(const _0x33c6a9 of _0x13b358){const _0x4f20d8=_0x3869af['getIntersection'](_0x33c6a9);_0x4f20d8&&_0xb4e96['push'](_0x4f20d8);}return _0xb4e96;}(_0x2f86dd,_0x269d28),_0x589144=function(_0x5e624d,_0x2e186d){const _0x32ca80=[_0x5e624d];for(const _0x13a16d of _0x2e186d){let _0x47ca9d=0x0;for(;_0x47ca9d<_0x32ca80['length'];){const _0x1d4718=_0x32ca80[_0x47ca9d]['getDifference'](_0x13a16d);_0x32ca80['splice'](_0x47ca9d,0x1,..._0x1d4718),_0x47ca9d+=_0x1d4718['length'];}}return _0x32ca80;}(_0x2f86dd,_0x269d28);_0x3c9690['length']&&this['_model']['change'](()=>{for(const _0x5cd26b of _0x3c9690){const _0x2bd01c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3102c9,'accept');this['forceDefaultExecution'](()=>_0x2bd01c([_0x5cd26b],_0x178ca4,_0x15ede9));}});for(const _0x506740 of _0x589144){let _0x34c668=null,_0x388e95=_0x506740['start'],_0x12e5b6=_0x506740['end'];for(const {suggestion:_0x87b5f1,meta:_0x529558}of this['_findSuggestions'](_0x506740,'formatInline')){if(!_0x529558['isOwn'])continue;if(_0x87b5f1['subType']!=_0x3102c9)continue;if(!qt(_0x87b5f1,_0x15ede9))continue;const _0x1d3fbc=_0x87b5f1['getFirstRange']();if(_0x1d3fbc['containsRange'](_0x506740,!0x0))return null;_0x388e95=_0x388e95['isBefore'](_0x1d3fbc['start'])?_0x388e95:_0x1d3fbc['start'],_0x12e5b6=_0x12e5b6['isAfter'](_0x1d3fbc['end'])?_0x12e5b6:_0x1d3fbc['end'],_0x34c668?_0x1d3fbc['start']['isBefore'](_0x34c668['getFirstRange']()['start'])?(_0x34c668['removeMarkers'](),_0x34c668=_0x87b5f1):_0x87b5f1['removeMarkers']():_0x34c668=_0x87b5f1;}const _0x1a1fa6=this['_model']['createRange'](_0x388e95,_0x12e5b6);if(_0x34c668)this['_setSuggestionRange'](_0x34c668,_0x1a1fa6);else{const _0x15f566=_0x413213(),_0x124294=_0x49db43['id'];this['_setSuggestionData']({'id':_0x15f566,'type':'formatInline:'+_0x3102c9,'data':_0x178ca4,'createdAt':new Date(),'authorId':_0x124294,'attributes':_0x15ede9}),this['_addSuggestionMarker']('formatInline:'+_0x3102c9,_0x15f566,_0x124294,_0x1a1fa6);}}return null;}['markBlockFormat'](_0x1df00b,_0x56e41a,_0x891288=[],_0x1dcece=null,_0x1e3460={}){_0x56e41a['formatGroupId']||(_0x56e41a['formatGroupId']=_0x56e41a['commandName']),_0x56e41a['multipleBlocks']=_0x1df00b['is']('range'),_0x1dcece=_0x1dcece||Gt(_0x56e41a);const _0x40b2fe=_0x891288['map'](_0x5ebd91=>Lt(_0x5ebd91,this['_model'])),_0x46efe9=_0x1df00b['is']('range')?_0x1df00b:Lt(_0x1df00b,this['_model']);if('never'===this['_trackFormatChanges']){const _0x458c60=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1dcece,'accept');return this['forceDefaultExecution'](()=>_0x458c60([_0x46efe9],_0x56e41a,_0x1e3460)),null;}_0x40b2fe['push'](_0x46efe9);let _0x4af109=!0x0;for(const _0x1ef173 of _0x40b2fe)if(!this['_rangeIsInLocalUserInsertion'](_0x1ef173)){_0x4af109=!0x1;break;}if(_0x4af109&&'always'!==this['_trackFormatChanges']){const _0x3ac876=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1dcece,'accept');return this['forceDefaultExecution'](()=>_0x3ac876([_0x46efe9],_0x56e41a,_0x1e3460)),null;}let _0x173caf=null,_0xd1133b=_0x46efe9['start'],_0x570504=_0x46efe9['end'];for(const {suggestion:_0x51acab,meta:_0x4a8742}of this['_findSuggestions'](_0x46efe9,'formatBlock')){if(!_0x4a8742['isOwn'])continue;if(_0x4a8742['isNextTo']||_0x4a8742['containsRangeInObject']||_0x4a8742['isInsideObject'])continue;if(_0x51acab['data']['formatGroupId']!=_0x56e41a['formatGroupId'])continue;if(!qt(_0x51acab,_0x1e3460))continue;const _0x572032=_0x51acab['getFirstRange']();if(_0x51acab['subType']==_0x1dcece){if(_0x572032['containsRange'](_0x46efe9,!0x0))return null;_0xd1133b=_0xd1133b['isBefore'](_0x572032['start'])?_0xd1133b:_0x572032['start'],_0x570504=_0x570504['isAfter'](_0x572032['end'])?_0x570504:_0x572032['end'],_0x173caf?_0x572032['start']['isBefore'](_0x173caf['getFirstRange']()['start'])?(_0x173caf['removeMarkers'](),_0x173caf=_0x51acab):_0x51acab['removeMarkers']():_0x173caf=_0x51acab;}else{const _0x116529=_0x46efe9['getIntersection'](_0x572032);this['_cutOutSuggestionMarker'](_0x51acab,_0x116529);}}const _0x4a1c56=this['editor']['plugins']['get']('Users')['me'],_0x56d782=_0x413213(),_0x27bf94=_0x4a1c56['id'];if(_0x173caf)return this['_setSuggestionRange'](_0x173caf,this['_model']['createRange'](_0xd1133b,_0x570504)),_0x173caf;{const _0x961f5b=this['_setSuggestionData']({'id':_0x56d782,'type':'formatBlock:'+_0x1dcece,'data':_0x56e41a,'createdAt':new Date(),'authorId':_0x27bf94,'attributes':_0x1e3460});return this['_addSuggestionMarker']('formatBlock:'+_0x1dcece,_0x56d782,_0x27bf94,this['_model']['createRange'](_0xd1133b,_0x570504)),_0x961f5b;}}['markMultiRangeBlockFormat'](_0x5badde,_0x11698d,_0x29c870=[],_0x36d2d9=null,_0x80eb2a={}){_0x11698d['formatGroupId']||(_0x11698d['formatGroupId']=_0x11698d['commandName']);const _0xcda748=_0x5badde[0x0];_0x11698d['multipleBlocks']=_0xcda748['is']('range'),_0x36d2d9=_0x36d2d9||Gt(_0x11698d);const _0x5866ef=_0x29c870['map'](_0x49bdec=>Lt(_0x49bdec,this['_model'])),_0x48f5b1=_0xcda748['is']('range')?_0x5badde:_0x5badde['map'](_0x2cb6bd=>Lt(_0x2cb6bd,this['_model']));if('never'===this['_trackFormatChanges']){const _0x34f3c9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x36d2d9,'accept');return this['forceDefaultExecution'](()=>_0x34f3c9(_0x48f5b1,_0x11698d,_0x80eb2a)),null;}_0x5866ef['push'](..._0x48f5b1);let _0x4718d3=!0x0;for(const _0x3009f1 of _0x5866ef)if(!this['_rangeIsInLocalUserInsertion'](_0x3009f1)){_0x4718d3=!0x1;break;}if(_0x4718d3&&'always'!==this['_trackFormatChanges']){const _0x46df6a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x36d2d9,'accept');return this['forceDefaultExecution'](()=>_0x46df6a(_0x48f5b1,_0x11698d,_0x80eb2a)),null;}const _0x47412f=this['editor']['plugins']['get']('Users')['me'];for(const _0x51293f of this['getSuggestions']()){if(_0x51293f['author']['id']!=_0x47412f['id'])continue;if('formatBlock'!=_0x51293f['type']||_0x51293f['data']['formatGroupId']!=_0x11698d['formatGroupId'])continue;if(!qt(_0x51293f,_0x80eb2a))continue;const _0x551358=_0x51293f['subType']==_0x36d2d9;for(let _0x260961=0x0;_0x260961<_0x48f5b1['length'];_0x260961++){const _0x330e23=_0x48f5b1[_0x260961];for(const _0x43836c of _0x51293f['getMarkers']()){const _0x129791=_0x43836c['getRange']();if(_0x330e23['isEqual'](_0x129791)){_0x551358?(_0x48f5b1['splice'](_0x260961,0x1),_0x260961--):_0x51293f['removeMarker'](_0x43836c['name']);break;}}}}if(0x0==_0x48f5b1['length'])return null;const _0x2447d2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x36d2d9,'join');for(const _0x550398 of this['getSuggestions']())if(_0x550398['author']['id']==_0x47412f['id']&&'formatBlock'==_0x550398['type']&&_0x550398['data']['formatGroupId']==_0x11698d['formatGroupId']&&_0x550398['subType']==_0x36d2d9&&qt(_0x550398,_0x80eb2a)&&(_0x2447d2(_0x550398['getRanges'](),_0x48f5b1)||_0x2447d2(_0x48f5b1,_0x550398['getRanges']()))){for(const _0x1fc2f6 of _0x48f5b1)_0x550398['addRange'](_0x1fc2f6);return _0x550398;}const _0x211276=_0x413213(),_0x19a14d=_0x47412f['id'],_0x14b495='formatBlock:'+_0x36d2d9,_0x33aec9=this['_setSuggestionData']({'id':_0x211276,'type':_0x14b495,'data':_0x11698d,'createdAt':new Date(),'authorId':_0x19a14d,'attributes':_0x80eb2a});for(const _0x5e8b16 of _0x48f5b1)this['_addSuggestionMarker'](_0x14b495,_0x211276,_0x19a14d,_0x5e8b16,u['getMultiRangeId']());return _0x33aec9;}['markDeletion'](_0x5a7454,_0x2b3bd=null,_0x1e75ec={}){if(_0x5a7454['isCollapsed'])return null;const _0x46f443=this['editor']['plugins']['get']('Users')['me'],_0x5a8c42=new _0x531671(_0x5a7454['start'],_0x5a7454['end']);for(const {suggestion:_0x3f6551,meta:_0x556528}of this['_findSuggestions'](_0x5a8c42,'insertion'))if(_0x556528['isOwn']&&!_0x556528['isNextTo']){if(_0x3f6551['isMultiRange']){const _0xbd9b44=_0x3f6551['getRanges']()['filter'](_0x169b22=>'$graveyard'!=_0x169b22['root']['rootName']);_0xbd9b44['every'](_0x31b6fb=>_0x5a8c42['containsRange'](_0x31b6fb,!0x0))&&_0x3f6551['discard']();if(_0xbd9b44['some'](_0xaa79f7=>_0xaa79f7['containsRange'](_0x5a8c42,!0x0))){const _0x31dee9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2b3bd,'accept');return this['forceDefaultExecution'](()=>_0x31dee9([_0x5a8c42],null,_0x1e75ec)),null;}}else{const _0x1776f3=_0x5a8c42['getIntersection'](_0x3f6551['getFirstRange']());null!==_0x1776f3&&_0x3f6551['_onDiscard']([_0x1776f3],null,_0x1e75ec);}}if(_0x5a8c42['detach'](),_0x5a8c42['isCollapsed']||'$graveyard'==_0x5a8c42['root']['rootName'])return null;let _0x75db91=null,_0x5a7e6e=_0x5a8c42['start'],_0x39deed=_0x5a8c42['end'];const _0x3c0b97=this['_findSuggestions'](_0x5a8c42,'deletion');for(const {suggestion:_0x12206a,meta:_0xaa7a6}of _0x3c0b97){const _0x57469e=this['_model']['createRange'](_0x5a7e6e,_0x39deed);if(_0xaa7a6['isOwn']&&(this['_mergeNestedSuggestions']||!_0xaa7a6['containsRangeInObject']&&!_0xaa7a6['isInsideObject'])){if(_0x12206a['isMultiRange']){if(!qt(_0x12206a,_0x1e75ec))continue;let _0x2bc075=!0x0;for(const _0x17d31a of _0x12206a['getRanges']()){if(_0x17d31a['containsRange'](_0x57469e,!0x0))return _0x12206a;_0x57469e['containsRange'](_0x17d31a)||(_0x2bc075=!0x1);}_0x2bc075&&_0x12206a['discard']();}else{const _0xe5880c=_0x12206a['getFirstRange']();if(_0xe5880c['containsRange'](_0x57469e,!0x0))return _0x12206a;if(!qt(_0x12206a,_0x1e75ec)){_0x57469e['containsRange'](_0xe5880c)?_0x12206a['removeMarkers']():_0xe5880c['containsPosition'](_0x5a7e6e)?_0x5a7e6e=_0xe5880c['end']:_0xe5880c['containsPosition'](_0x39deed)&&(_0x39deed=_0xe5880c['start']);continue;}_0x5a7e6e=_0x5a7e6e['isBefore'](_0xe5880c['start'])?_0x5a7e6e:_0xe5880c['start'],_0x39deed=_0x39deed['isAfter'](_0xe5880c['end'])?_0x39deed:_0xe5880c['end'],_0x1e75ec=Object['assign']({},_0x12206a['attributes']),_0x75db91?_0xe5880c['start']['isBefore'](_0x75db91['getFirstRange']()['start'])?(_0x75db91['removeMarkers'](),_0x75db91=_0x12206a):_0x12206a['removeMarkers']():_0x75db91=_0x12206a;}}}if(_0x75db91)return this['_setSuggestionRange'](_0x75db91,this['_model']['createRange'](_0x5a7e6e,_0x39deed)),_0x75db91;{const _0x512f54=_0x413213(),_0x1b2b4b=this['_model']['createRange'](_0x5a7e6e,_0x39deed),_0x360fc5=_0x46f443['id'],_0x705ab8=_0x2b3bd?'deletion:'+_0x2b3bd:'deletion',_0x4167cd=this['_setSuggestionData']({'id':_0x512f54,'type':_0x705ab8,'createdAt':new Date(),'authorId':_0x360fc5,'attributes':_0x1e75ec});return this['_addSuggestionMarker'](_0x705ab8,_0x512f54,_0x360fc5,_0x1b2b4b),_0x4167cd;}}['markMultiRangeDeletion'](_0x590f1b,_0x404055='multi',_0x2935b1={}){const _0xb49b0c=this['editor']['plugins']['get']('Users')['me'],_0x58063d=_0x590f1b['map'](_0x192524=>new _0x531671(_0x192524['start'],_0x192524['end'])),_0x1c6cc8=new Set();for(const {suggestion:_0x285fea,meta:_0x1ecba3}of this['_findSuggestions'](_0x58063d,'insertion'))_0x1ecba3['isOwn']&&!_0x1ecba3['isNextTo']&&_0x1c6cc8['add'](_0x285fea);for(const _0x16fd27 of _0x1c6cc8)if(_0x16fd27['isMultiRange']){const _0xd7c78f=_0x16fd27['getRanges']();(!_0x16fd27['attributes']||!_0x16fd27['attributes']['skipNestingCheck'])&&(_0xd7c78f['every'](_0x473855=>_0x58063d['some'](_0x3323d6=>_0x3323d6['containsRange'](_0x473855,!0x0)))&&_0x16fd27['discard']());if(_0x58063d['every'](_0x47a6ba=>_0xd7c78f['some'](_0x1e6976=>_0x1e6976['containsRange'](_0x47a6ba,!0x0)))){const _0x3eb74d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x404055,'accept');return this['forceDefaultExecution'](()=>_0x3eb74d(_0x590f1b,null,_0x2935b1)),null;}}else{const _0x3b873e=_0x16fd27['getFirstRange']();_0x58063d['some'](_0xa5a192=>_0xa5a192['containsRange'](_0x3b873e,!0x0))&&_0x16fd27['discard']();if(_0x58063d['every'](_0x4dc365=>_0x3b873e['containsRange'](_0x4dc365,!0x0))){const _0x1ac31c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x404055,'accept');return this['forceDefaultExecution'](()=>_0x1ac31c(_0x58063d,null,_0x2935b1)),null;}}const _0x54431c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x404055,'join');let _0x1a2a3c=null;for(const _0x58dd61 of this['getSuggestions']())if(_0x58dd61['author']['id']==_0xb49b0c['id']&&_0x58dd61['isInContent']&&'deletion'==_0x58dd61['type']&&_0x58dd61['subType']==_0x404055&&qt(_0x58dd61,_0x2935b1)&&(_0x54431c(_0x58dd61['getRanges'](),_0x58063d)||_0x54431c(_0x58063d,_0x58dd61['getRanges']()))){if(_0x1a2a3c){if(_0x58dd61['commentThread']&&_0x58dd61['commentThread']['length'])continue;for(const _0x851a4c of _0x58dd61['getRanges']())_0x1a2a3c['isIntersectingWithRange'](_0x851a4c)||_0x1a2a3c['addRange'](_0x851a4c);_0x58dd61['removeMarkers']();}else{_0x1a2a3c=_0x58dd61;for(const _0x3be582 of _0x58063d)_0x58dd61['isIntersectingWithRange'](_0x3be582)||_0x58dd61['addRange'](_0x3be582);}}if(_0x1a2a3c)return _0x1a2a3c;_0x1c6cc8['clear']();for(const {suggestion:_0xbeb26,meta:_0x449b4b}of this['_findSuggestions'](_0x58063d,'deletion'))_0x449b4b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x449b4b['containsRangeInObject']&&!_0x449b4b['isInsideObject'])&&qt(_0xbeb26,_0x2935b1)&&_0x1c6cc8['add'](_0xbeb26);for(const _0x3567c8 of _0x1c6cc8){const _0x44dc48=_0x3567c8['getRanges']();if(!_0x2935b1||!_0x2935b1['skipNestingCheck']){if(_0x58063d['every'](_0x59850=>_0x44dc48['some'](_0x42e7a0=>_0x42e7a0['containsRange'](_0x59850,!0x0))))return _0x3567c8;}(!_0x3567c8['attributes']||!_0x3567c8['attributes']['skipNestingCheck'])&&(_0x44dc48['every'](_0x16a08a=>_0x58063d['some'](_0x2a855e=>_0x2a855e['containsRange'](_0x16a08a,!0x0)))&&_0x3567c8['discard']());}const _0xc78a68=_0x413213(),_0x29a364=_0xb49b0c['id'],_0x3a975e='deletion:'+_0x404055,_0xd5c63a=this['_setSuggestionData']({'id':_0xc78a68,'type':_0x3a975e,'createdAt':new Date(),'authorId':_0x29a364,'attributes':_0x2935b1});for(const _0x1e59da of _0x58063d)_0x1e59da['detach'](),_0x1e59da['isCollapsed']||'$graveyard'==_0x1e59da['root']['rootName']||this['_addSuggestionMarker'](_0x3a975e,_0xc78a68,_0x29a364,_0x1e59da,u['getMultiRangeId']());return _0xd5c63a;}['markAttributeChange'](_0x54a43b,_0x47f955,_0x1705f3,_0x328898,_0x3fe380){if(_0x54a43b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3c09a0=this['editor']['plugins']['get']('Users')['me']['id'],_0x5ceb39=Array['from'](this['_suggestions']['values']())['filter'](_0x4def94=>'attribute'==_0x4def94['type']&&_0x4def94['data']['key']==_0x47f955&&_0x4def94['isIntersectingWithRange'](_0x54a43b));if('default'===this['_trackFormatChanges']){const _0x1a42c2=this['_findSuggestions'](_0x54a43b,'insertion')['filter'](({meta:_0x2905d0})=>_0x2905d0['isOwn']&&!_0x2905d0['isInsideObject']&&!_0x2905d0['isNextTo'])['map'](({suggestion:_0x41f7aa})=>_0x41f7aa);_0x5ceb39['unshift'](..._0x1a42c2);}const _0x45f839=new Map([[_0x54a43b,_0x1705f3]]);for(const _0x28d8cb of _0x5ceb39){const _0x544233='attribute'==_0x28d8cb['type']?_0x28d8cb['data']['oldValue']:void 0x0,_0x34e760=_0x28d8cb['getFirstRange'](),_0x19ff84=Array['from'](_0x45f839['keys']())['find'](_0x5bc4ee=>_0x5bc4ee['isIntersecting'](_0x34e760));if(!_0x19ff84)continue;const _0x5bf214=_0x19ff84['getDifference'](_0x34e760);this['_isBlockAttribute'](_0x47f955)&&'insertion'==_0x28d8cb['type']&&0x0!=_0x5bf214['length']||(_0x45f839['delete'](_0x19ff84),_0x5bf214['forEach'](_0x43ce5d=>{_0x45f839['set'](_0x43ce5d,_0x1705f3);}),'insertion'!=_0x28d8cb['type']&&_0x544233!=_0x328898&&_0x45f839['set'](_0x19ff84['getIntersection'](_0x34e760),_0x544233));}const _0x59ab23=[];for(const [_0x416f43,_0x2a937f]of _0x45f839){const _0x504b64=_0x413213(),_0x4edc1f={'key':_0x47f955,'oldValue':_0x2a937f,'newValue':_0x328898};_0x47f955['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':_0x47f955});const _0x9bf2f6=('attribute:'+(_0x47f955+'|'+Gt({'newValue':_0x328898})))['substring'](0x0,0x3c),_0x2dfd66=this['_setSuggestionData']({'id':_0x504b64,'type':_0x9bf2f6,'data':_0x4edc1f,'createdAt':new Date(),'authorId':_0x3c09a0,'attributes':_0x3fe380});_0x59ab23['push'](_0x2dfd66),this['_addSuggestionMarker'](_0x9bf2f6,_0x504b64,_0x3c09a0,_0x416f43);}return _0x59ab23;}['enableDefaultAttributesIntegration'](_0x400d3c){this['enableCommand'](_0x400d3c,(_0x4b91b4,..._0x442d5f)=>{this['_recordAttributeChanges'](()=>{_0x4b91b4(..._0x442d5f);});});}['registerBlockAttribute'](_0xdb2258){this['_blockAttributeKeys']['add'](_0xdb2258);}['registerInlineAttribute'](_0xe4b02f){this['_inlineAttributeKeys']['add'](_0xe4b02f);}['_getAttributeKey'](_0x5c13b0){return'attribute'==_0x5c13b0['type']?_0x5c13b0['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5194a,_0xb31dc8){const _0x107501=_0x5194a['getFirstMarker']();this['_model']['change'](_0x2cb9d0=>{_0x2cb9d0['updateMarker'](_0x107501,{'range':_0xb31dc8});});}['_addThreadToSuggestion'](_0x145f7f){const _0x542ed3=_0x145f7f['id'],_0x434868=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x542ed3)||this['_commentsRepository']['addCommentThread']({'channelId':_0x434868,'threadId':_0x542ed3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2b163f=this['_commentsRepository']['getCommentThread'](_0x542ed3);_0x2b163f['unbind']('isRemovable'),_0x2b163f['isRemovable']=!0x1,_0x145f7f['commentThread']=_0x2b163f;}['_checkSuggestionCorrectness'](_0x22897f,_0x425c29,_0x518cdf,_0x2463a0){if(_0x22897f['type']!=_0x425c29||_0x22897f['subType']!=_0x518cdf||_0x22897f['creator']['id']!=_0x2463a0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1a44d6('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1945c3,_0x483944){const _0x322a98=_0x1945c3['getFirstRange']();if(_0x483944['isEqual'](_0x322a98))_0x1945c3['removeMarkers']();else{if(_0x322a98['containsRange'](_0x483944)){const _0xc24d3b=this['_model']['createPositionAt'](_0x483944['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1945c3,this['_model']['createRange'](_0x322a98['start'],_0xc24d3b));const _0x434cbe=_0x413213(),_0x3918db=_0x1945c3['creator']['id'],_0x7d0c51=_0x1945c3['type']+':'+_0x1945c3['subType'];this['_setSuggestionData']({'id':_0x434cbe,'type':_0x7d0c51,'createdAt':new Date(),'authorId':_0x3918db,'data':_0x1945c3['data'],'attributes':_0x1945c3['attributes']});const _0x11f629=this['_model']['createPositionAt'](_0x483944['end']['parent'],'after'),_0x208ddc=this['_model']['createRange'](_0x11f629,_0x322a98['end']);this['_addSuggestionMarker'](_0x7d0c51,_0x434cbe,_0x3918db,_0x208ddc);}else{if(_0x322a98['containsPosition'](_0x483944['start'])){const _0x40719b=this['_model']['createPositionAt'](_0x483944['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1945c3,this['_model']['createRange'](_0x322a98['start'],_0x40719b));}else{const _0x37c9cf=this['_model']['createPositionAt'](_0x483944['end']['parent'],'after');this['_setSuggestionRange'](_0x1945c3,this['_model']['createRange'](_0x37c9cf,_0x322a98['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5e78ef){for(const {suggestion:_0x424ebc,meta:_0x3d1147}of this['_findSuggestions'](_0x5e78ef,'insertion')){if(!_0x3d1147['isOwn'])continue;const _0x2669b5=_0x424ebc['getRanges']();for(const _0x5d81ee of _0x2669b5)if(!_0x5e78ef['getDifference'](_0x5d81ee)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2fbe55){const _0x53bf17=this['editor']['plugins']['get']('Users')['getUser'](_0x2fbe55);if(!_0x53bf17)throw new _0x1a44d6('track-changes-user-not-found',this);return _0x53bf17;}['_getExternalAuthor'](_0xe1faa4){const _0x4d2532=this['editor']['plugins']['get']('Users'),_0x5b2b89=_0x222301('external:'+_0xe1faa4),_0x232535=_0x4d2532['getUser'](_0x5b2b89);return _0x232535||_0x4d2532['addUser']({'id':_0x5b2b89,'name':_0xe1faa4});}['_createSuggestion'](_0x22b20d,_0x3aa039,_0x1c62dd,_0x15197c,_0x468a1e){const _0x36affe=this['_getAuthorFromId'](_0x15197c),_0x541848=this['_suggestionFactory']['buildSuggestion'](_0x22b20d,_0x3aa039,_0x1c62dd,_0x36affe,_0x468a1e,_0x4d3e16=>{this['_updateSuggestionData'](_0x1c62dd,{'attributes':_0x4d3e16});const _0x395da2=this['getSuggestion'](_0x1c62dd);this['_joinWithAdjacentSuggestions'](new Set([_0x395da2])),this['_refreshSuggestionsChain'](new Set([_0x395da2]));});return this['listenTo'](_0x541848,'accept',()=>{this['_updateSuggestionData'](_0x1c62dd,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x541848,'discard',()=>{this['_updateSuggestionData'](_0x1c62dd,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1c62dd,_0x541848),this['_suggestionState']['set'](_0x541848,'notReady'),_0x541848;}['_splitMarkerName'](_0x58a78e){const _0x103467=_0x58a78e['split'](':');return{'group':_0x103467[0x0],'type':_0x103467[0x1],'subType':_0x103467['length']>=0x5?_0x103467[0x2]:null,'id':_0x103467['length']<0x5?_0x103467[0x2]:_0x103467[0x3],'authorId':_0x103467['length']<0x5?_0x103467[0x3]:_0x103467[0x4],'markerCount':0x6==_0x103467['length']?_0x103467[0x5]:null};}['_breakSuggestionMarker'](_0xa319a3,_0x33e996,_0x25391e){const _0x1b2574=_0xa319a3['getFirstRange'](),_0x3f5a55=_0x1b2574['start'],_0x943baf=_0x1b2574['end'];this['_setSuggestionRange'](_0xa319a3,this['_model']['createRange'](_0x3f5a55,_0x33e996));const _0x371193=_0x413213(),_0xc79636=_0xa319a3['creator']['id'],_0x3477ea=_0xa319a3['type']+(_0xa319a3['subType']?':'+_0xa319a3['subType']:'');this['_setSuggestionData']({'id':_0x371193,'type':_0x3477ea,'createdAt':new Date(),'authorId':_0xc79636,'originalSuggestionId':_0xa319a3['id'],'attributes':_0xa319a3['attributes'],'data':_0xa319a3['data']});const _0x1656f9=this['_getAttributeKey'](_0xa319a3);('formatBlock'==_0xa319a3['type']||_0x1656f9&&this['_isBlockAttribute'](_0x1656f9))&&(_0x25391e=this['_model']['createPositionBefore'](_0x25391e['parent'])),this['_addSuggestionMarker'](_0x3477ea,_0x371193,_0xc79636,this['_model']['createRange'](_0x25391e,_0x943baf));}['_findSuggestions'](_0x3eca69,_0x3ee3bc=null){const _0x4453aa=[],_0x4703a4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3eca69)||(_0x3eca69=[_0x3eca69]);for(const _0x59bbcb of this['getSuggestions']()){if(!_0x59bbcb['isInContent'])continue;if(_0x3ee3bc&&_0x59bbcb['type']!=_0x3ee3bc)continue;let _0x2d9bf1=!0x1;for(const _0x15f424 of _0x59bbcb['getRanges']()){for(const _0x535ad5 of _0x3eca69){const _0x155e6f=_0x535ad5['start']['isEqual'](_0x15f424['end'])||_0x535ad5['end']['isEqual'](_0x15f424['start']);if(_0x155e6f||_0x535ad5['getIntersection'](_0x15f424)){const _0x2d3a64=_0x535ad5['containsRange'](_0x15f424)&&Ot(this['_model']['schema'],_0x15f424['start'],_0x535ad5),_0x356c83=_0x15f424['containsRange'](_0x535ad5)&&Ot(this['_model']['schema'],_0x535ad5['start'],_0x15f424);_0x4453aa['push']({'suggestion':_0x59bbcb,'meta':{'isOwn':_0x4703a4==_0x59bbcb['author'],'isNextTo':_0x155e6f,'isInsideObject':_0x2d3a64,'containsRangeInObject':_0x356c83}}),_0x2d9bf1=!0x0;break;}}if(_0x2d9bf1)break;}}return _0x4453aa;}['_addSuggestionMarker'](_0x571952,_0x56081c,_0x4b7f56,_0x516e65,_0x32ae39){this['_model']['change'](_0x35eb8=>{let _0xefa85b='suggestion:'+_0x571952+':'+_0x56081c+':'+_0x4b7f56;_0x32ae39&&(_0xefa85b=_0xefa85b+':'+_0x32ae39),_0x35eb8['addMarker'](_0xefa85b,{'range':_0x516e65,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x90592a){const _0xec4a68=_0x90592a['previous'],_0x4ebf87=_0x90592a['next'];_0x90592a['previous']=null,_0x90592a['next']=null,null!=_0xec4a68&&_0xec4a68['next']==_0x90592a&&(_0xec4a68['next']=_0x4ebf87),null!=_0x4ebf87&&_0x4ebf87['previous']==_0x90592a&&(_0x4ebf87['previous']=_0xec4a68),'ready'==this['_suggestionState']['get'](_0x90592a)&&(this['_suggestionState']['set'](_0x90592a,'removed'),this['fire']('suggestionUnloaded',_0x90592a,_0xec4a68,_0x4ebf87));}['_setSuggestionData'](_0xc472dc){const _0x3a9f9c=_0xc472dc['id'],_0x57de50=this['addSuggestionData'](_0xc472dc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x168699=this['editor']['plugins']['get']('PendingActions'),_0x5d61e1=_0x57de50['hasComments'],_0x5e03ce=_0x57de50['subType']?_0x57de50['type']+':'+_0x57de50['subType']:_0x57de50['type'],_0x599b24=this['editor']['locale'],_0x249412=_0x168699['add'](o(_0x599b24,'PENDING_ACTION_SUGGESTION')),_0x136725={'id':_0x3a9f9c,'type':_0x5e03ce,'hasComments':_0x5d61e1,'data':_0xc472dc['data']||null,'originalSuggestionId':_0xc472dc['originalSuggestionId']||null,'attributes':_0x57de50['attributes']};this['_adapter']['addSuggestion'](_0x136725)['then'](_0x2a30b6=>{_0x57de50['_saved']=!0x0,_0x168699['remove'](_0x249412),_0x2a30b6&&_0x2a30b6['createdAt']&&(this['_suggestions']['get'](_0x3a9f9c)['createdAt']=_0x2a30b6['createdAt']);})['catch'](_0x2cfb07=>{throw _0x2bae4b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x57de50['discard']();}),_0x57de50['stopListening'](),this['_suggestions']['delete'](_0x57de50['id']),this['_suggestionState']['delete'](_0x57de50),_0x2cfb07;});}return _0x57de50;}['_isBlockAttribute'](_0x397c56){return this['_blockAttributeKeys']['has'](_0x397c56);}['_updateSuggestionData'](_0x2e4da8,_0x3a19fd){const _0x472202=this['editor']['plugins']['get']('PendingActions'),_0x3165c3=this['getSuggestion'](_0x2e4da8);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3165c3['_saved']){const _0x403a31=_0x472202['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2e4da8,_0x3a19fd)['then'](()=>{_0x472202['remove'](_0x403a31);});}else _0x3165c3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2e4da8,_0x3a19fd);});}}['_getSuggestionData'](_0x47dfd8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1a44d6('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x47dfd8);}['_handleNewSuggestionMarker'](_0x318db1){const {id:_0x282250,type:_0x78522d,subType:_0x4aa193,authorId:_0xab2b5f}=this['_splitMarkerName'](_0x318db1),_0x499251=this['_suggestions']['get'](_0x282250)||this['_createSuggestion'](_0x78522d,_0x4aa193,_0x282250,_0xab2b5f,{});switch(this['_checkSuggestionCorrectness'](_0x499251,_0x78522d,_0x4aa193,_0xab2b5f),this['_suggestionState']['get'](_0x499251)){case'notReady':this['_getSuggestionData'](_0x282250)['then'](_0x43ca34=>{let _0x357988=Promise['resolve']();_0x43ca34['hasComments']&&(_0x357988=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x282250})),_0x357988['then'](()=>{this['addSuggestionData'](_0x43ca34)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x499251,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x282250,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x499251,'ready'),this['fire']('suggestionLoaded',_0x499251);break;case'ready':this['fire']('suggestionChanged',_0x499251);}return _0x499251['addMarkerName'](_0x318db1),_0x499251;}['_refreshSuggestionsChain'](_0x35aad6){const _0x1e79a8=Array['from'](_0x35aad6),_0xaf05f6=_0x1e79a8['filter'](_0xb9c73e=>'attribute'==_0xb9c73e['type']);this['_refreshAttributeSuggestionsChain'](_0xaf05f6);const _0x273625=_0x1e79a8['filter'](_0xe31492=>!_0xe31492['isMultiRange']&&'attribute'!=_0xe31492['type']),_0x59511b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4fdb1a=>!_0x4fdb1a['isMultiRange']&&'attribute'!=_0x4fdb1a['type']),_0x419b60=_0x59511b['filter'](_0x4122cf=>!_0x35aad6['has'](_0x4122cf)),_0x1a57da=new Map(_0x59511b['map'](_0x3bdcfd=>[_0x3bdcfd,this['_suggestionFactory']['getSuggestionCallback'](_0x3bdcfd['type'],_0x3bdcfd['subType'],'chain')])),_0x41f631=new Map(_0x59511b['map'](_0x42d416=>[_0x42d416,_0x42d416['getFirstRange']()])),_0x50b0a0=new Set(),_0x3ac720=new Set();for(let _0x2fb51f=0x0;_0x2fb51f<_0x273625['length'];_0x2fb51f++)_0xb6dbb2(_0x273625[_0x2fb51f],_0x273625,_0x2fb51f+0x1);for(let _0x351853=0x0;_0x351853<_0x273625['length'];_0x351853++)_0xb6dbb2(_0x273625[_0x351853],_0x419b60,0x0);const _0x13e2f9=new Set();for(let _0x30c49e=0x0;_0x30c49e<_0x273625['length'];_0x30c49e++){const _0x112bc7=_0x273625[_0x30c49e];!_0x3ac720['has'](_0x112bc7)&&_0x112bc7['previous']&&(_0x13e2f9['add'](_0x112bc7['previous']),_0x112bc7['previous']['next']===_0x112bc7&&(_0x112bc7['previous']['next']=null),_0x112bc7['previous']=null),!_0x50b0a0['has'](_0x112bc7)&&_0x112bc7['next']&&(_0x13e2f9['add'](_0x112bc7['next']),_0x112bc7['next']['previous']===_0x112bc7&&(_0x112bc7['next']['previous']=null),_0x112bc7['next']=null);}function _0xb6dbb2(_0x19c15e,_0x16d0bc,_0x5af252){for(let _0x12c603=_0x5af252;_0x12c603<_0x16d0bc['length'];_0x12c603++){const _0x3b6d32=_0x14024f(_0x19c15e,_0x16d0bc[_0x12c603]);_0x3b6d32&&(_0x3b6d32[0x0]['next']=_0x3b6d32[0x1],_0x3b6d32[0x1]['previous']=_0x3b6d32[0x0],_0x50b0a0['add'](_0x3b6d32[0x0]),_0x3ac720['add'](_0x3b6d32[0x1]));}}function _0x14024f(_0x284c8e,_0x3349f3){if(_0x284c8e['author']['id']!==_0x3349f3['author']['id'])return null;const _0x5ca350=_0x1a57da['get'](_0x284c8e)(_0x284c8e,_0x3349f3,_0x41f631['get'](_0x284c8e),_0x41f631['get'](_0x3349f3));if(!_0x5ca350)return null;return _0x1a57da['get'](_0x3349f3)(_0x284c8e,_0x3349f3,_0x41f631['get'](_0x284c8e),_0x41f631['get'](_0x3349f3))?_0x5ca350[0x1]['commentThread']&&_0x5ca350[0x1]['commentThread']['length']?null:_0x5ca350:null;}_0x13e2f9['size']&&this['_refreshSuggestionsChain'](_0x13e2f9);}['_refreshAttributeSuggestionsChain'](_0xb3ca1b){if(0x0==_0xb3ca1b['length'])return;const _0x5034ae=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42af1e=>'attribute'==_0x42af1e['type']&&_0x42af1e['_isDataLoaded']),_0x2b6056=[],_0x11873f=new Map();for(const _0xa0bc47 of _0x5034ae){const _0x3d06e1=_0x222301(_0xa0bc47['attributes']);_0x11873f['has'](_0x3d06e1)||(_0x11873f['set'](_0x3d06e1,_0x2b6056['length']),_0x2b6056['push']([]));const _0x423e97=_0x11873f['get'](_0x3d06e1);_0x2b6056[_0x423e97]['push'](_0xa0bc47);}!(function(){_0x2b6056['sort']((_0x44ff6b,_0x47259b)=>{const _0x5498fd=_0x44ff6b[0x0]['createdAt'],_0x5c337c=_0x47259b[0x0]['createdAt'];return _0x5498fd==_0x5c337c?_0x44ff6b[0x0]['attributes']['groupId']<_0x47259b[0x0]['attributes']['groupId']?-0x1:0x1:_0x5498fd<_0x5c337c?-0x1:0x1;});for(const _0x5f5474 of _0x2b6056)_0x5f5474['sort']((_0x4b83cd,_0x4fe519)=>_0x4b83cd['id']<_0x4fe519['id']?-0x1:0x1);}());for(let _0x47b3fa=0x0;_0x47b3fa<_0x2b6056['length'];_0x47b3fa++){if(0x0==_0x2b6056[_0x47b3fa]['length'])continue;const _0x17187c=[];for(let _0xdba9dc=_0x47b3fa+0x1;_0xdba9dc<_0x2b6056['length'];_0xdba9dc++)0x0!=_0x2b6056[_0xdba9dc]['length']&&_0x500f00(_0x2b6056[_0x47b3fa],_0x2b6056[_0xdba9dc])&&_0x17187c['push'](_0xdba9dc);for(const _0x644a9f of _0x17187c)_0x2b6056[_0x47b3fa]=_0x2b6056[_0x47b3fa]['concat'](_0x2b6056[_0x644a9f]),_0x2b6056[_0x644a9f]=[];}for(const _0x1949e1 of _0x2b6056)for(let _0x210766=0x0;_0x210766<_0x1949e1['length'];_0x210766++){const _0x3c99bd=_0x1949e1[_0x210766+0x1]||null;_0x1949e1[_0x210766]['next']!==_0x3c99bd&&(_0x1949e1[_0x210766]['next']=_0x3c99bd);}for(const _0x571555 of _0x2b6056)for(let _0x45a127=0x0;_0x45a127<_0x571555['length'];_0x45a127++){const _0x239967=_0x571555[_0x45a127-0x1]||null;_0x571555[_0x45a127]['previous']!==_0x239967&&(_0x571555[_0x45a127]['previous']=_0x239967);}function _0x500f00(_0x125e98,_0x58ff4e){if(_0x125e98[0x0]['attributes']['groupId']!==_0x58ff4e[0x0]['attributes']['groupId']&&_0x125e98[0x0]['author']!==_0x58ff4e[0x0]['author'])return!0x1;if(!function(_0x526d6c,_0x52597f){if(!_0x526d6c['hasComments']&&!_0x52597f['hasComments'])return!0x0;if(_0x526d6c['hasComments']&&_0x52597f['hasComments'])return!0x1;if(_0x526d6c['hasComments']&&_0x52597f['createdAt']<_0x526d6c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x52597f['hasComments']&&_0x526d6c['createdAt']<_0x52597f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x125e98[0x0],_0x58ff4e[0x0]))return!0x1;const _0x5859ee=Tt(_0x125e98[0x0]['attributes'],'groupId'),_0x2e584e=Tt(_0x58ff4e[0x0]['attributes'],'groupId');if(!_0xa8556c(_0x5859ee,_0x2e584e))return!0x1;return!!_0x125e98['every'](_0x1668ee=>_0x58ff4e['some'](_0x3a30b2=>_0x1668ee['getFirstRange']()['isEqual'](_0x3a30b2['getFirstRange']())))&&_0x58ff4e['every'](_0x462815=>_0x125e98['some'](_0xe272e3=>_0x462815['getFirstRange']()['isEqual'](_0xe272e3['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x34ae67){const _0x28de83=Array['from'](_0x34ae67),_0x5c9ea3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x50d935=_0x5c9ea3['filter'](_0x3ca67e=>!_0x34ae67['has'](_0x3ca67e)),_0x1d79fd=new Map(_0x28de83['map'](_0x5930bd=>[_0x5930bd,this['_suggestionFactory']['getSuggestionCallback'](_0x5930bd['type'],_0x5930bd['subType'],'join')])),_0x2c8927=new Map(_0x5c9ea3['map'](_0x234b95=>[_0x234b95,_0x234b95['getRanges']()]));for(let _0x5627f6=0x0;_0x5627f6<_0x28de83['length'];_0x5627f6++){if(_0x5cfab9(this,_0x28de83[_0x5627f6],_0x28de83,_0x5627f6+0x1))return!0x0;}for(let _0x248df5=0x0;_0x248df5<_0x28de83['length'];_0x248df5++){if(_0x5cfab9(this,_0x28de83[_0x248df5],_0x50d935,0x0))return!0x0;}return!0x1;function _0x5cfab9(_0x22f827,_0x43e675,_0x571bec,_0xddad01){for(let _0x398666=_0xddad01;_0x398666<_0x571bec['length'];_0x398666++){const _0x4a501c=_0x571bec[_0x398666];if(_0x4a501c['type']!==_0x43e675['type']||_0x4a501c['author']['id']!==_0x43e675['author']['id']||_0x4a501c['subType']!==_0x43e675['subType'])continue;if(!Jt(_0x43e675,_0x4a501c))continue;if('attribute'==_0x43e675['type']&&_0x43e675['data']['oldValue']!=_0x4a501c['data']['oldValue'])continue;if('attribute'==_0x43e675['type']&&_0x22f827['_isBlockAttribute'](_0x43e675['data']['key']))continue;if('formatBlock'==_0x43e675['type']){const _0x997001=_0x22f827['editor']['model'],_0x48f299=_0x43e675['getContainedElement']();if(_0x48f299&&(_0x997001['schema']['isObject'](_0x48f299)||_0x997001['schema']['isLimit'](_0x48f299)))continue;}const _0x2566da=_0x1d79fd['get'](_0x43e675),_0x4e1f41=_0x2c8927['get'](_0x43e675),_0x21437d=_0x2c8927['get'](_0x4a501c),_0x33a4c4=_0x43e675['commentThread']&&_0x43e675['commentThread']['length'],_0x4293fd=_0x4a501c['commentThread']&&_0x4a501c['commentThread']['length'];if(!_0x33a4c4&&_0x2566da(_0x21437d,_0x4e1f41))return _0x22f827['_joinSuggestions'](_0x4a501c,_0x43e675),_0x2c8927['delete'](_0x43e675),!0x0;if(!_0x4293fd&&_0x2566da(_0x4e1f41,_0x21437d))return _0x22f827['_joinSuggestions'](_0x43e675,_0x4a501c),_0x2c8927['delete'](_0x4a501c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x344661,_0x54dd78){if(_0x344661['isMultiRange']){for(const _0x5bc2c8 of _0x54dd78['getRanges']())_0x344661['addRange'](_0x5bc2c8);}else{const _0x47ec06=_0x54dd78['getFirstRange']()['end'];this['_setSuggestionRange'](_0x344661,this['_model']['createRange'](_0x344661['getFirstRange']()['start'],_0x47ec06));}_0x54dd78['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3c21e7,_0x8baab,_0x5ec3fc){const _0x2b07b3=_0x3c21e7['startsWith']('format')||_0x3c21e7['startsWith']('attribute')?'FORMATTING':_0x3c21e7['toUpperCase']();return o(this['editor']['locale'],_0x8baab+'_'+_0x2b07b3+'_SUGGESTION_ANNOUNCEMENT',_0x5ec3fc);}['_initAriaMarkerChangeAnnouncements'](){const _0x250ab2=this['editor'];if(!_0x250ab2['ui'])return;const {ariaLiveAnnouncer:_0x1d4cff}=_0x250ab2['ui'];_0x238c7a(this['_model'],({left:_0x4c5b9a,entered:_0x52c878})=>{for(const _0x133f2c of _0x4c5b9a){const {group:_0x427b5f,type:_0x1cfa79}=this['_splitMarkerName'](_0x133f2c['name']);if('suggestion'===_0x427b5f){_0x1d4cff['announce'](this['_getMarkerAnnouncementText'](_0x1cfa79,'LEAVE'));break;}}for(const _0x1a7402 of _0x52c878){const {group:_0x34fc56,type:_0x39532e}=this['_splitMarkerName'](_0x1a7402['name']);if('suggestion'===_0x34fc56){_0x1d4cff['announce'](this['_getMarkerAnnouncementText'](_0x39532e,'ENTER',_0x32d411(_0x1450a3)));break;}}});}['_processAttributeChanges'](_0x3fa3c4){if(this['_recordAttributeSuggestions'])return!0x1;const _0x180f9b=this['editor'],_0x27af7b=_0x180f9b['model']['document']['differ']['getChanges']();if(0x0==_0x27af7b['length'])return!0x1;const _0x4b7a71=[],_0x5e78af=_0x27af7b['filter'](_0x5ac7c4=>'attribute'==_0x5ac7c4['type']),_0x14c39c=_0x27af7b['filter'](_0x4d60b6=>'insert'==_0x4d60b6['type']&&'$text'!=_0x4d60b6['name']),_0x2c36b5=_0x27af7b['filter'](_0x44df24=>'remove'==_0x44df24['type']&&'$text'!=_0x44df24['name']);for(const _0x211764 of _0x5e78af)_0x4b7a71['push']({'key':_0x211764['attributeKey'],'newValue':_0x211764['attributeNewValue'],'oldValue':_0x211764['attributeOldValue'],'range':Pt(_0x211764['range'],_0x180f9b['model'])});for(const _0x500b46 of _0x14c39c){const _0x58ab61=_0x2c36b5['find'](_0x812f62=>_0x812f62['position']['isEqual'](_0x500b46['position']));_0x58ab61&&_0x4b7a71['push']({'key':m,'newValue':_0x500b46['name'],'oldValue':_0x58ab61['name'],'range':_0x180f9b['model']['createRangeOn'](_0x500b46['position']['nodeAfter'])});}return 0x0!=_0x4b7a71['length']&&this['_reduceExistingSuggestions'](_0x3fa3c4,_0x4b7a71);}['_processAttributeSuggestions'](_0x3e5b65){let _0x15bc42=!0x1;const _0x8a4f96=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x159998=>_0x159998['data']['newRange']&&_0x159998['name']['startsWith']('suggestion:attribute:'));for(const _0x105508 of _0x8a4f96){const {subType:_0x4143c6,id:_0x3a7b9b}=this['_splitMarkerName'](_0x105508['name']),_0x2b4f13=_0x4143c6['split']('|')[0x0];for(const _0xc4bdd2 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xc4bdd2['id']!=_0x3a7b9b&&'attribute'==_0xc4bdd2['type']&&_0xc4bdd2['data']&&_0xc4bdd2['data']['key']==_0x2b4f13&&_0xc4bdd2['getFirstRange']()['isIntersecting'](_0x105508['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xc4bdd2,_0x105508['data']['newRange'],_0x3e5b65),_0x15bc42=!0x0);}return _0x15bc42;}['_recordAttributeChanges'](_0x2416d8){this['_recordAttributeSuggestions']=!0x0,_0x2416d8();}['_isRegisteredAttribute'](_0x715289){const _0x36ba47=this['_isBlockAttribute'](_0x715289),_0x51be8f=this['_inlineAttributeKeys']['has'](_0x715289);return _0x36ba47||_0x51be8f;}['_reduceExistingSuggestions'](_0x23e79d,_0x1fb28e){if(0x0==_0x1fb28e['length'])return!0x1;let _0xb11ae7=!0x1;for(const _0x23bda9 of _0x1fb28e){const _0x5c4724=this['_findSuggestions'](_0x23bda9['range'],'attribute')['filter'](_0x51d603=>!_0x51d603['meta']['isNextTo'])['map'](_0x2047f1=>_0x2047f1['suggestion']),_0x453ca5=_0x222301({'newValue':_0x23bda9['newValue']});_0x5c4724['filter'](_0x763f03=>{const [_0x529ef0,_0x3cb43a]=_0x763f03['subType']['split']('|');return _0x529ef0==_0x23bda9['key']&&_0x3cb43a!=_0x453ca5;})['forEach'](_0x391484=>{this['_reduceSuggestionAttributeRange'](_0x391484,_0x23bda9['range'],_0x23e79d),_0xb11ae7=!0x0;});}return _0xb11ae7;}['_reduceSuggestionAttributeRange'](_0x18268b,_0x3e3c3f,_0x2a0399){const _0x5dae22=_0x18268b['getFirstRange']()['getDifference'](_0x3e3c3f);0x0!==_0x5dae22['length']?0x1!==_0x5dae22['length']?this['_breakSuggestionMarker'](_0x18268b,_0x3e3c3f['start'],_0x3e3c3f['end']):this['_setSuggestionRange'](_0x18268b,_0x5dae22[0x0]):_0x2a0399['removeMarker'](_0x18268b['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x52a4fd){this['_editor']=_0x52a4fd,this['_model']=_0x52a4fd['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x570423,_0x18222a,_0x520da5,_0x569bfd,_0x5ab1cc,_0x5bec68){return new u(this['_model'],{'type':_0x570423,'subType':_0x18222a,'id':_0x520da5,'author':_0x569bfd,'creator':_0x569bfd,'attributes':_0x5ab1cc,'onAttributesChange':_0x5bec68,'onAccept':(..._0x343de9)=>this['getSuggestionCallback'](_0x570423,_0x18222a,'accept')(..._0x343de9),'onDiscard':(..._0x119f3f)=>this['getSuggestionCallback'](_0x570423,_0x18222a,'discard')(..._0x119f3f)});}['registerCustomCallback'](_0x3efa5a,_0x5e77e6,_0xb3089c,_0x109cb7){const _0xcb716d=_0x3efa5a+':'+_0x5e77e6+':'+_0xb3089c;this['_customCallbacks']['set'](_0xcb716d,_0x109cb7);}['getSuggestionCallback'](_0x1b6f65,_0x2415c9,_0x47dc4d){const _0x18a92f=_0x1b6f65+':'+_0x2415c9+':'+_0x47dc4d;return this['_customCallbacks']['get'](_0x18a92f)||this['_defaultCallbacks']['get'](_0x1b6f65+':'+_0x47dc4d);}['_registerDefaultCallbacks'](){const _0x12de83=()=>!0x1,_0x246baa=_0x5daf5d=>{_0x5daf5d['sort']((_0x2a283e,_0x53e68b)=>_0x2a283e['start']['isBefore'](_0x53e68b['start'])?0x1:-0x1),this['_model']['change'](_0x4197b7=>{for(const _0x152aa6 of _0x5daf5d){let _0x5988d6;_0x5988d6=_0x152aa6['end']['isAtEnd']&&_0x152aa6['end']['parent']==_0x152aa6['start']['nodeAfter']?_0x4197b7['createSelection'](_0x152aa6['start']['nodeAfter'],'on'):_0x4197b7['createSelection'](_0x152aa6),this['_model']['deleteContent'](_0x5988d6,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x36569f=(_0x35f6c1,_0x191d12)=>{_0x191d12&&this['_model']['change'](_0x3ea9f8=>{const {commandName:_0x3f345e,commandParams:_0x1da32d=[]}=_0x191d12,_0x1b5491=_0x35f6c1['map'](_0x2e9e5f=>(Vt(_0x2e9e5f)&&(_0x2e9e5f=this['_model']['createRange'](_0x2e9e5f['end'])),_0x2e9e5f))['filter'](_0x3ff1ed=>'$graveyard'!==_0x3ff1ed['root']['rootName']);if(_0x1b5491['length']<0x1)return;const _0x4778c1=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4224cf=>_0x531671['fromRange'](_0x4224cf));_0x3ea9f8['setSelection'](_0x1b5491);for(const _0x51a0b6 of this['_editor']['commands']['commands']())_0x51a0b6['refresh']();_0x1da32d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3f345e,..._0x1da32d);const _0x590802=_0x4778c1['filter'](_0x5f3632=>'$graveyard'!=_0x5f3632['root']['rootName']);_0x590802['length']>0x0&&_0x3ea9f8['setSelection'](_0x590802);for(const _0x578932 of _0x4778c1)_0x578932['detach']();});},_0x167a4f=(_0xa88a10,_0x4f7c8a)=>0x1==_0xa88a10['length']&&0x1==_0x4f7c8a['length']&&_0xa88a10[0x0]['end']['isEqual'](_0x4f7c8a[0x0]['start']),_0x15430d=(_0x161159,_0x5e3ab5,_0x1ae08f,_0x266a95)=>Ht(_0x161159,_0x5e3ab5,_0x1ae08f,_0x266a95,this['_model'])?[_0x161159,_0x5e3ab5]:Ht(_0x5e3ab5,_0x161159,_0x266a95,_0x1ae08f,this['_model'])?[_0x5e3ab5,_0x161159]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x12de83),this['_defaultCallbacks']['set']('insertion:discard',_0x246baa),this['_defaultCallbacks']['set']('insertion:join',_0x167a4f),this['_defaultCallbacks']['set']('insertion:chain',_0x15430d),this['_defaultCallbacks']['set']('deletion:accept',_0x246baa),this['_defaultCallbacks']['set']('deletion:discard',_0x12de83),this['_defaultCallbacks']['set']('deletion:join',_0x167a4f),this['_defaultCallbacks']['set']('deletion:chain',_0x15430d),this['_defaultCallbacks']['set']('formatInline:accept',_0x36569f),this['_defaultCallbacks']['set']('formatInline:discard',_0x12de83),this['_defaultCallbacks']['set']('formatInline:join',_0x167a4f),this['_defaultCallbacks']['set']('formatInline:chain',_0x12de83),this['_defaultCallbacks']['set']('formatBlock:accept',_0x36569f),this['_defaultCallbacks']['set']('formatBlock:discard',_0x12de83),this['_defaultCallbacks']['set']('formatBlock:join',_0x167a4f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x12de83),this['_defaultCallbacks']['set']('attribute:accept',_0x12de83),this['_defaultCallbacks']['set']('attribute:discard',(_0x4d9401,_0x2d6087)=>{if(!_0x2d6087)return;const _0x27c0e1=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2c900c=>{if(_0x2d6087['key']==m)for(const _0x207fd9 of _0x4d9401){const _0x215921=_0x207fd9['start']['nodeAfter'],_0x5270eb=_0x2d6087['oldValue'];_0x2c900c['rename'](_0x215921,_0x5270eb);}else{if(_0x27c0e1['_isBlockAttribute'](_0x2d6087['key'])){for(const _0x53ab69 of _0x4d9401)void 0x0!==_0x2d6087['oldValue']?_0x2c900c['setAttribute'](_0x2d6087['key'],_0x2d6087['oldValue'],_0x53ab69['start']['nodeAfter']):_0x2c900c['removeAttribute'](_0x2d6087['key'],_0x53ab69['start']['nodeAfter']);}else{for(const _0x5bad10 of _0x4d9401)_0x2d6087['oldValue']?_0x2c900c['setAttribute'](_0x2d6087['key'],_0x2d6087['oldValue'],_0x5bad10):_0x2c900c['removeAttribute'](_0x2d6087['key'],_0x5bad10);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x167a4f);}}function Ot(_0x2e258c,_0x555ae5,_0x4284e7){for(const _0x398796 of _0x555ae5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x398796['root']==_0x398796)return!0x1;if(!_0x4284e7['containsItem'](_0x398796))return!0x1;if(_0x2e258c['isObject'](_0x398796)||_0x2e258c['isLimit'](_0x398796))return!0x0;}return!0x1;}function Vt(_0x2fc6c4){return _0x2fc6c4['end']['parent']==_0x2fc6c4['start']['nodeAfter']&&_0x2fc6c4['end']['isAtStart'];}function Ut(_0x48b467,_0x5807fd,_0x215dcd,_0x3631c3){const _0x53db77=_0x4ef791=>!_0x4ef791['item']['is']('$textProxy')&&!_0x3631c3['isObject'](_0x4ef791['item']),_0x3684c3=_0x48b467['start']['getLastMatchingPosition'](_0x53db77),_0x48970f=_0x48b467['end']['getLastMatchingPosition'](_0x53db77,{'direction':'backward'});return(!_0x48b467['start']['isEqual'](_0x3684c3)||!_0x48b467['end']['isEqual'](_0x48970f))&&(_0x3684c3['isBefore'](_0x48970f)?_0x215dcd['updateMarker'](_0x5807fd,{'range':_0x215dcd['createRange'](_0x3684c3,_0x48970f)}):_0x215dcd['removeMarker'](_0x5807fd),!0x0);}function Gt(_0x6a58ef){return _0x222301(_0x6a58ef);}function Ft(_0x976718){const _0x1cc72f=_0x976718['start']['nodeAfter'];return _0x1cc72f&&_0x1cc72f['is']('element');}function Pt(_0x355dd6,_0x381bda){return null==_0x355dd6['end']['nodeBefore']&&_0x355dd6['end']['parent']==_0x355dd6['start']['nodeAfter']?Lt(_0x355dd6['start']['nodeAfter'],_0x381bda):_0x355dd6;}function Lt(_0x5aba51,_0x63dfb6){const _0x7f728b=_0x63dfb6['schema']['isObject'](_0x5aba51)||_0x63dfb6['schema']['isSelectable'](_0x5aba51);return _0x63dfb6['createRange'](_0x63dfb6['createPositionAt'](_0x5aba51,'before'),_0x7f728b?_0x63dfb6['createPositionAfter'](_0x5aba51):_0x63dfb6['createPositionAt'](_0x5aba51,'end'));}function Ht(_0x31f76b,_0x3b8a9a,_0x26a7d1,_0x14cdac,_0x1845ca){if(_0x31f76b['next'])return!0x1;if(!Jt(_0x31f76b,_0x3b8a9a))return!0x1;if(_0x26a7d1['end']['isEqual'](_0x14cdac['start']))return!0x0;if(_0x31f76b['type']!=_0x3b8a9a['type'])return!0x1;if(!_0x26a7d1['end']['isTouching'](_0x14cdac['start']))return!0x1;const _0x2558bf=_0x1845ca['createRange'](_0x26a7d1['end'],_0x14cdac['start'])['getWalker']();for(const _0x169f92 of _0x2558bf)if(['elementStart','elementEnd']['includes'](_0x169f92['type'])&&_0x1845ca['schema']['isLimit'](_0x169f92['item']))return!0x1;return!0x0;}function Jt(_0x4c2190,_0x295886){if(!_0x4c2190['_isDataLoaded']||!_0x295886['_isDataLoaded'])return!0x1;const _0x39665f=new Set(Object['keys'](_0x4c2190['attributes'])),_0x3e7b97=new Set(Object['keys'](_0x295886['attributes']));if(_0x39665f['delete']('groupId'),_0x3e7b97['delete']('groupId'),0x0==_0x39665f['size']&&0x0==_0x3e7b97['size'])return!0x0;if(_0x39665f['size']!=_0x3e7b97['size'])return!0x1;const _0x3c843d={..._0x4c2190['attributes']},_0x3d7018={..._0x295886['attributes']};return delete _0x3c843d['groupId'],delete _0x3d7018['groupId'],JSON['stringify'](_0x3c843d)==JSON['stringify'](_0x3d7018);}function qt(_0x46e590,_0xb58753){const _0x389d5a=zt(_0x46e590['attributes']),_0x21dd88=zt(_0xb58753);if(!_0x46e590['_isDataLoaded'])return!0x1;for(const _0x1f76d9 of Object['keys'](_0x21dd88))if(!_0xa8556c(_0x389d5a[_0x1f76d9],_0x21dd88[_0x1f76d9]))return!0x1;return!0x0;}function zt(_0x427b07){const _0x578f5f=Object['assign']({},_0x427b07);return delete _0x578f5f['skipNestingCheck'],delete _0x578f5f['tablePasteChainId'],_0x578f5f;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x4f8ba7(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x567171,_0x435b9e,_0x591939,_0xd9746){super(),this['model']=_0x435b9e,this['view']=_0x591939,this['commentThreadController']=_0xd9746,this['_editor']=_0x567171,this['_acceptCommand']=_0x567171['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x567171['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2ab3e6,_0x6d07e8)=>_0x2ab3e6||_0x6d07e8),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x39a4a1=>_0x39a4a1&&this['_editor']['model']['canEditAt'](_0x435b9e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x169141=>_0x169141&&this['_editor']['model']['canEditAt'](_0x435b9e['getRanges']())),this['_pendingAction']=null,_0x591939['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x591939,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x591939,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x591939,'change:isDirty',()=>{_0x591939['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 _0x1e8edb=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1e8edb);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2a40a0{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x115d12,_0x3eb4e2,_0x1b8ed9,_0x324f36){super(_0x115d12),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x46a1c7(_0x115d12,o(_0x115d12,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3eb4e2['authoredAt']),this['bind']('authoredAt')['to'](_0x3eb4e2),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',_0x3eb4e2,'authoredAt',this,'descriptionParts',(_0x45e980,_0x1707e6,_0x13d232)=>{const _0x9b81d9=_0x13d232['map'](_0x32cdab=>ls(_0x32cdab['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x45e980-0x1,_0x3eb4e2['author']['name'],_0x1707e6?_0x324f36['formatDateTime'](_0x1707e6):'',new DOMParser()['parseFromString'](_0x9b81d9,'text/html')['body']['textContent']]);}),this['focusables']=new _0x65b505(),this['focusTracker']=new _0x52be18(),this['keystrokes']=new _0xc7e8f7(),this['focusCycler']=new _0x15d0d7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xb8612d=>_0xb8612d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3eb4e2,this['_localUser']=_0x1b8ed9,this['_config']=_0x324f36,_0x324f36['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5e55dc(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x319f13}=this['_config'];this['commentsListView']=new _0x319f13(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',_0x3ff1b7=>_0x3ff1b7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4bd394,_0x6491ac)=>_0x4bd394||!!_0x6491ac);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x49cca7}=this['_config'],_0x51504b=new _0x49cca7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x32f96a=_0x51504b['commentInputView'];return _0x51504b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x32f96a,'value',(_0xba5706,_0x6151e9,_0xfc32f1)=>!!_0xfc32f1||_0xba5706&&!_0x6151e9),_0x32f96a['on']('submit',(_0x111fa6,_0x48e245)=>{this['fire']('addComment',_0x48e245),_0x32f96a['editor']['setData']('');}),_0x32f96a['on']('cancel',()=>this['focus']()),_0x32f96a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x51504b;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x4bf042,_0x4a5a2e,_0xc6ca3a,_0x5a2507){super(_0x4bf042,_0x4a5a2e,_0xc6ca3a,_0x5a2507),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x36288a=>_0x36288a&&_0x36288a[0x0]?_0x36288a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4bd919,_0x38e89)=>{let _0x32c3f8='';for(const _0x2d8674 of _0x4bd919)_0x32c3f8+='<p>'+ls(_0x2d8674['content'],_0x2d8674['color'])+'</p>';return _0x38e89?_0x32c3f8:_0x37c84d(_0x32c3f8,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5a2507['SuggestionView'](_0x4bf042,_0x4a5a2e,{'formatDateTime':_0x5a2507['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 _0x44d911=this['bindTemplate'],_0x298dd9=[this['suggestionView']];return this['commentsListView']&&_0x298dd9['push'](this['commentsListView']),this['commentThreadInputView']&&_0x298dd9['push'](this['commentThreadInputView']),_0x298dd9['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x44d911['if']('isActive','ck-suggestion-wrapper--active'),_0x44d911['to']('type',_0x517cd5=>'ck-suggestion-'+_0x517cd5),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':_0x44d911['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x298dd9};}['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 ce extends _0x2a40a0{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x51051b,_0x2c054c,_0x32471a){super(_0x51051b),this['_model']=_0x2c054c,this['_config']=_0x32471a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2c054c),this['acceptButton']=this['_createButton'](o(_0x51051b,'Accept\x20suggestion'),_0x13725c['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x51051b,'Discard\x20suggestion'),_0x13725c['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x69d512(_0x51051b,_0x2c054c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x65b505([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x52be18(),this['keystrokes']=new _0xc7e8f7(),this['focusCycler']=new _0x15d0d7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x236ba9=>_0x236ba9['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2c380e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2c380e['innerHTML']=this['description'],this['on']('change:description',(_0x3a2f00,_0x51657e,_0x34baf7)=>{_0x2c380e['innerHTML']=_0x34baf7;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5a3df7=this['bindTemplate'],_0x1863b1=[{'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']}},{'tag':'time','attributes':{'datetime':_0x5a3df7['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5a3df7['to']('authoredAt',_0x1df37f=>this['_config']['formatDateTime'](_0x1df37f))}]}]},{'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']&&_0x1863b1['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':_0x1863b1}]};}['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'](_0xf16b99,_0x4d2ac4,_0x5cc985,_0x387fe6,_0x364611){const _0x4852b0=new _0x4831dd(this['locale']);return _0x4852b0['set']({'label':_0xf16b99,'icon':_0x4d2ac4,'tooltip':!0x0,'tooltipPosition':_0x364611}),_0x4852b0['extendTemplate']({'attributes':{'class':_0x5cc985}}),_0x4852b0['on']('execute',()=>{this['fire'](_0x387fe6,this['_model']['id']);}),_0x4852b0;}['_setupKeyboardNavigation'](){const _0x235f85=this['element'];this['keystrokes']['listenTo'](_0x235f85);for(const _0x2f939a of this['focusables'])this['focusTracker']['add'](_0x2f939a['element']),this['keystrokes']['listenTo'](_0x2f939a['element']);this['keystrokes']['set']('enter',(_0x1d1af6,_0x583e9b)=>{_0x235f85===_0x1d1af6['target']&&(this['focusCycler']['focusFirst'](),_0x583e9b());}),this['keystrokes']['set']('esc',(_0x464929,_0x54bb16)=>{_0x235f85!==_0x464929['target']&&(this['focus'](),_0x54bb16());});}}var he='<!--\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-2024,\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 _0x409965{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xf1e53e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x50b22b){super(_0x50b22b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5934c8=this['editor']['config'];_0x5934c8['define']('trackChanges.SuggestionThreadView',re),_0x5934c8['define']('trackChanges.SuggestionView',ce),_0x5934c8['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5934c8['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x611adc,_0x509414){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xef5ef4,_0x5f1d5b]of this['_handleControllerBuffer']){const _0x1a73ea=this['_suggestionToController']['has'](_0xef5ef4);_0x1a73ea||_0x5f1d5b?_0x1a73ea&&_0x5f1d5b&&this['_destroyController'](_0xef5ef4):this['_initializeController'](_0xef5ef4);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x611adc,_0x509414);}['init'](){const _0x1a838c=this['editor'],_0x50f944=_0x1a838c['plugins']['get']('TrackChangesEditing'),_0x18219c=_0x1a838c['plugins']['get']('Annotations'),_0x271db7=_0x1a838c['plugins']['get']('EditorAnnotations'),_0x228121=_0x1a838c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x271db7['addSourceCollector'](()=>{const _0x5f0fd7=[];for(const [_0x29d744,_0x4af4ee]of Array['from'](this['_suggestionToController'])){const _0x1035b2=_0x29d744['getAllAdjacentSuggestions'](),_0x38c72e=[];for(const _0x541e2d of _0x1035b2){if(!_0x541e2d['isInContent'])continue;if(_0x541e2d['isMultiRange']){_0x38c72e['push'](..._0x541e2d['getRanges']());continue;}const _0x2f45e8=_0x541e2d['getFirstRange']();if(_0x38c72e['length']>0x0){const _0x69b7d6=_0x38c72e[0x0]['getJoined'](_0x2f45e8);if(_0x69b7d6){_0x38c72e[0x0]=_0x69b7d6;continue;}}_0x38c72e['push'](_0x2f45e8);}_0x5f0fd7['push']([_0x4af4ee['view'],_0x38c72e]);}return _0x5f0fd7;}),this['listenTo'](_0x50f944,'suggestionLoaded',(_0x5e6ea6,_0x14ac75)=>{this['listenTo'](_0x14ac75,'change:previous',(_0x1239a6,_0x5dc65a,_0x1fcec9,_0x279627)=>{_0x14ac75['isInContent']&&(null==_0x1fcec9?(this['_updateController'](_0x279627['head']),this['_handleSuggestionControllerDelayed'](_0x14ac75,!0x1)):(this['_updateController'](_0x1fcec9['head']),null==_0x279627&&this['_handleSuggestionControllerDelayed'](_0x14ac75,!0x0)));}),null!==_0x14ac75['previous']?this['_updateController'](_0x14ac75['head']):this['_handleSuggestionControllerDelayed'](_0x14ac75,!0x1);}),this['listenTo'](_0x50f944,'suggestionUnloaded',(_0x26996a,_0x368965,_0x46cad4)=>{this['stopListening'](_0x368965,'change:previous'),this['_handleControllerBuffer']['delete'](_0x368965),this['_suggestionToController']['has'](_0x368965)&&this['_destroyController'](_0x368965),_0x46cad4&&this['_updateController'](_0x46cad4['head']);}),this['listenTo'](_0x50f944,'suggestionChanged',(_0x154408,_0x1dccdc)=>{this['_updateController'](_0x1dccdc);}),this['listenTo'](_0x18219c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x228121,'addComment',(_0x2e2be3,{threadId:_0x44acb7,isFromAdapter:_0x6b048e})=>{if(_0x6b048e||!_0x50f944['hasSuggestion'](_0x44acb7))return;const _0x57d51d=_0x50f944['getSuggestion'](_0x44acb7);this['_suggestionToController']['get'](_0x57d51d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5bd29e=this['editor']['plugins']['get']('Annotations'),_0x773df1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40797e=Array['from'](_0x5bd29e['activeAnnotations'],_0xab63ef=>_0xab63ef['innerView'])['filter'](_0x4b5056=>this['_viewToController']['has'](_0x4b5056)),_0x3cfff8=[];for(const _0x342f1c of _0x40797e){const _0x58e636=this['_viewToController']['get'](_0x342f1c)['model']['getAllAdjacentSuggestions']();_0x3cfff8['push'](..._0x58e636['reduce']((_0x138cc9,_0xddf17d)=>[..._0x138cc9,..._0xddf17d['getMarkerNames']()],[]));}_0x773df1['activeMarkers']=_0x3cfff8;}['_addUIComponentsToFactory'](){const _0x154f09=this['editor'],_0x50ef14=_0x154f09['locale'],_0x5112c1=o(_0x50ef14,'Track\x20changes'),_0x156a26=new Wt([{'type':'switchbutton','model':new _0x503b3a({'withText':!0x0,'isToggleable':!0x0,'label':_0x5112c1,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x503b3a({'withText':!0x0,'label':o(_0x50ef14,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x503b3a({'withText':!0x0,'label':o(_0x50ef14,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x503b3a({'withText':!0x0,'label':o(_0x50ef14,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x503b3a({'withText':!0x0,'label':o(_0x50ef14,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x4761c1 of _0x156a26)if(me(_0x4761c1)){const _0x5ecd4c=_0x154f09['commands']['get'](_0x4761c1['model']['commandName']);_0x4761c1['model']['bind']('isOn','isEnabled')['to'](_0x5ecd4c,'value','isEnabled');}_0x154f09['ui']['componentFactory']['add']('trackChanges',_0x4b08cf=>this['_createToolbarButton'](_0x4b08cf,_0x156a26,_0x5112c1)),_0x154f09['ui']['componentFactory']['add']('menuBar:trackChanges',_0x134569=>this['_createMenuBarMenu'](_0x134569,_0x156a26,_0x5112c1));}['_createToolbarButton'](_0xb65a27,_0x336844,_0x2d42e4){const _0x383d46=Qt(_0xb65a27,_0x4794fd),_0x866d7c=this['editor']['commands']['get']('trackChanges');_0x383d46['buttonView']['set']({'tooltip':_0x2d42e4,'label':_0x2d42e4,'icon':he}),_0x383d46['buttonView']['bind']('isOn')['to'](_0x866d7c,'value'),_0x383d46['buttonView']['on']('execute',()=>{_0x866d7c['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x383d46,_0x336844,{'role':'menu'});const _0x496b63=[];for(const _0x5f3424 of _0x336844)me(_0x5f3424)&&_0x496b63['push'](this['editor']['commands']['get'](_0x5f3424['model']['commandName']));const _0xd191f1=_0x383d46['buttonView'];return _0xd191f1['actionView']['unbind']('isEnabled'),_0xd191f1['arrowView']['unbind']('isEnabled'),_0xd191f1['actionView']['bind']('isEnabled')['to'](_0x866d7c,'isEnabled'),_0xd191f1['arrowView']['bind']('isEnabled')['toMany'](_0x496b63,'isEnabled',(..._0x2f11c1)=>_0x2f11c1['some'](_0x16a0a8=>_0x16a0a8)),_0x383d46['on']('execute',_0x3d7fe0=>{this['editor']['execute'](_0x3d7fe0['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x383d46;}['_createMenuBarMenu'](_0x2655ab,_0x40b1ed,_0x3177e9){const _0x52fdfd=new Yt(_0x2655ab),_0x213ee5=this['editor']['commands']['get']('trackChanges');_0x52fdfd['buttonView']['set']({'label':_0x3177e9,'icon':he});const _0x441523=new Zt(_0x2655ab);for(const _0x28892a of _0x40b1ed){if('separator'==_0x28892a['type']){_0x441523['items']['add'](new Xt(_0x2655ab));continue;}const _0x1b09ca=new te(_0x2655ab,_0x52fdfd),_0x4c3a90=new _0x1baf7d(_0x2655ab),_0x576946=_0x28892a['model'];_0x4c3a90['bind'](...Object['keys'](_0x576946))['to'](_0x576946),_0x4c3a90['delegate']('execute')['to'](_0x52fdfd),_0x4c3a90['on']('execute',()=>{this['editor']['execute'](_0x576946['commandName']),this['editor']['editing']['view']['focus']();}),_0x1b09ca['children']['add'](_0x4c3a90),_0x441523['items']['add'](_0x1b09ca);}return _0x52fdfd['bind']('isEnabled')['to'](_0x213ee5,'isEnabled'),_0x52fdfd['panelView']['children']['add'](_0x441523),_0x52fdfd;}['_initializeController'](_0x1ed093){const _0x563563=this['editor'],_0x588405=_0x563563['config'],_0x453236=_0x563563['plugins']['get']('Annotations'),_0x53ea5e=_0x563563['plugins']['get']('CommentsRepository'),_0x36d189=_0x563563['plugins']['get']('EditorAnnotations'),_0x1bbac8=_0x563563['plugins']['get'](_0xf1e53e)['me'],_0x1336e0=_0x588405['get']('trackChanges')['SuggestionThreadView'],_0x4692f6=_0x588405['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4103f6,CommentThreadInputView:_0x1422f6}=_0x563563['plugins']['get']('CommentsUI');let _0x5ad666,_0x5c8e71,_0x53f655;this['_annotationViews']['has'](_0x1ed093['id'])?(_0x5c8e71=this['_annotationViews']['get'](_0x1ed093['id']),_0x5ad666=_0x5c8e71['mainView']):(_0x5ad666=new _0x1336e0(_0x563563['locale'],_0x1ed093,_0x1bbac8,{'disableComments':this['_disableComments'],'editorConfig':_0x588405['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x588405['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x588405['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x588405['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x28686b(_0x588405['get']('locale')),'CommentView':_0x588405['get']('comments')['CommentView'],'CommentsListView':_0x4103f6,'CommentThreadInputView':_0x1422f6,'SuggestionView':_0x4692f6}),_0x5ad666['suggestionView']['acceptButton']['on']('execute',()=>{_0x563563['editing']['view']['focus']();}),_0x5ad666['suggestionView']['discardButton']['on']('execute',()=>{_0x563563['editing']['view']['focus']();}),_0x5c8e71=_0x453236['createAnnotationView'](this['editor']['locale'],_0x5ad666),_0x5c8e71['bind']('isDirty')['to'](_0x5ad666,'isDirty'),_0x5c8e71['bind']('length')['to'](_0x5ad666),_0x5c8e71['bind']('type')['to'](_0x5ad666,'type',_0x12f48a=>'suggestion-'+_0x12f48a),_0x5ad666['on']('escape',()=>{_0x53f655['fire']('escape');}),this['_annotationViews']['set'](_0x1ed093['id'],_0x5c8e71));const _0x3c82db=_0x53ea5e['createCommentThreadController'](_0x1ed093['commentThread'],_0x5ad666),_0x5aa644=new ae(_0x563563,_0x1ed093,_0x5ad666,_0x3c82db),_0x230dbe=_0x1ed093['getAllAdjacentSuggestions']()['filter'](_0xa47bbb=>_0xa47bbb['isInContent']);_0x5ad666['descriptionParts']=_0x563563['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x230dbe),this['_suggestionToController']['set'](_0x1ed093,_0x5aa644),this['_viewToController']['set'](_0x5ad666,_0x5aa644),_0x53f655=_0x453236['createAnnotation']({'view':_0x5c8e71,'target':()=>{const _0x10e93f=[],_0xb5827d=_0x1ed093['getAllAdjacentSuggestions']()['filter'](_0x124223=>_0x124223['isInContent']);for(const _0x36f981 of _0xb5827d)_0x10e93f['push'](..._0x36f981['getMarkers']());return _0x35251d(_0x563563['editing'],_0x10e93f);},'type':()=>'suggestion-'+_0x5aa644['view']['type']}),_0x53ea5e['_bindAnnotationToEditors'](_0x5ad666,_0x53f655),_0x453236['add'](_0x53f655),_0x36d189['registerAnnotation'](_0x53f655);}['_destroyController'](_0x3fab44){const _0x12239b=this['editor']['plugins']['get']('CommentsRepository'),_0x7861e4=this['editor']['plugins']['get']('Annotations'),_0x3c5dbb=this['_suggestionToController']['get'](_0x3fab44),_0x3bb29d=_0x3c5dbb['view'],_0x5676d7=_0x7861e4['getByInnerView'](_0x3bb29d);_0x12239b['_unbindEditors'](_0x3bb29d),_0x5676d7&&_0x7861e4['remove'](_0x5676d7),this['_suggestionToController']['delete'](_0x3fab44),this['_viewToController']['delete'](_0x3bb29d),_0x3c5dbb['destroy']();}['_updateController'](_0x5e12cc){if(!_0x5e12cc['isInContent']||!this['_suggestionToController']['has'](_0x5e12cc))return;const _0x39b771=this['editor']['plugins']['get']('TrackChangesEditing'),_0x547788=this['_suggestionToController']['get'](_0x5e12cc),_0x49ae01=_0x5e12cc['getAllAdjacentSuggestions']();_0x547788['view']['descriptionParts']=_0x39b771['descriptionFactory']['getDescriptions'](_0x49ae01);}['destroy'](){for(const _0x550d41 of this['_suggestionToController']['keys']())this['_destroyController'](_0x550d41);for(const _0x114cfa of this['_annotationViews']['values']())_0x114cfa['mainView']['destroy']();super['destroy']();}}function me(_0x50f52e){return'model'in _0x50f52e;}class k extends _0x409965{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x2d862a){this['editor']['plugins']['get'](p)['adapter']=_0x2d862a;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x124409){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x124409);}['getSuggestions']({skipNotAttached:_0x73049b=!0x1,toJSON:_0x22b1dd=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x73049b,'toJSON':_0x22b1dd});}['getSuggestion'](_0x3dda45){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3dda45);}}const T=['Pagination'];class P extends _0x409965{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x1e5d28=this['editor'];if(_0x1e5d28['config']['define']('trackChangesData.editorCreator',_0x395c95=>{const _0x31fc58=_0x1e5d28['model']['document']['getRootNames']()['reduce']((_0x42567e,_0x539e3b)=>(_0x42567e[_0x539e3b]='',_0x42567e),{});return _0x1e5d28['constructor']['create'](_0x31fc58,_0x395c95);}),'function'!=typeof _0x1e5d28['config']['get']('trackChangesData')['editorCreator'])throw new _0x1a44d6('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3011a3){return N(this['editor'],!0x0,_0x3011a3);}['getDataWithDiscardedSuggestions'](_0x5a36f0){return N(this['editor'],!0x1,_0x5a36f0);}}class D extends _0x409965{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x354955){super(_0x354955),this['result']='end';}['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 v(_0x20a002){return void 0x0!==_0x20a002['getRootsAttributes'];}async function N(_0x343888,_0x23bb40,_0x17fee6){const _0x33c13c=_0x141c13(_0x343888,T);_0x33c13c['plugins']['push'](p,D),_0x33c13c['rootsAttributes']=v(_0x343888)?_0x343888['getRootsAttributes']():void 0x0;const _0x37a25d=document['createDocumentFragment'](),_0x5244d3=_0x343888['config']['get']('trackChangesData')['editorCreator'],_0x4a8091=await _0x5244d3(_0x33c13c,()=>function(_0x59e5cd){const _0xa30148=document['createElement']('div');return _0x59e5cd['appendChild'](_0xa30148),_0xa30148;}(_0x37a25d));!function(_0x4a2b25,_0x39eb2e){const _0x5bb31e=_0x4a2b25['model']['document']['getRootNames']()['reduce']((_0x27f203,_0x50326f)=>(_0x27f203[_0x50326f]=_0x4a2b25['data']['get']({'rootName':_0x50326f}),_0x27f203),{}),_0x47e8fc=_0x4a2b25['plugins']['get']('Users')['users']['map'](_0x374ea8=>({'id':_0x374ea8['id'],'name':_0x374ea8['name']})),_0x54d564=_0x4a2b25['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2738f7=_0x4a2b25['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4d9c81=_0x39eb2e['plugins']['get']('Users'),_0x339a2e=_0x39eb2e['plugins']['get']('TrackChangesEditing'),_0x127569=_0x39eb2e['plugins']['get']('CommentsRepository');for(const _0x651ae0 of _0x127569['getCommentThreads']())_0x651ae0['remove']();for(const _0x2100bd of _0x47e8fc)_0x4d9c81['getUser'](_0x2100bd['id'])||_0x4d9c81['addUser'](_0x2100bd);_0x4d9c81['me']||_0x4d9c81['useAnonymousUser']();for(const _0x427a41 of _0x2738f7)_0x127569['addCommentThread'](_0x427a41);for(const _0x1eb589 of _0x54d564)_0x339a2e['addSuggestionData'](_0x1eb589);_0x39eb2e['data']['set'](_0x5bb31e);}(_0x343888,_0x4a8091),_0x4a8091['execute'](_0x23bb40?'acceptAllSuggestions':'discardAllSuggestions');const _0x1f4306=v(_0x4a8091)?_0x4a8091['getFullData'](_0x17fee6):_0x4a8091['data']['get'](_0x17fee6);return await _0x4a8091['destroy'](),_0x1f4306;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x35dcdc,PendingActions as _0x4ea8ef,icons as _0x24d51f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4c97a0,ObservableMixin as _0x431519,uid as _0x4bdc2b,insertToPriorityArray as _0x2e2187,priorities as _0x2c006d,logWarning as _0x4cee66,getEnvKeystrokeText as _0x570436,FocusTracker as _0x5e9eb5,KeystrokeHandler as _0x45e3cc,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x554b01,View as _0x4eeea1,ViewCollection as _0xb04134,FocusCycler as _0x1f7653,ViewModel as _0x32796c,createDropdown as Qt,SplitButtonView as _0x549f17,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x1bed13}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4a9a53,hashObject as _0x4e0629,surroundingMarkersDetector as _0x338662,FOCUS_ANNOTATION_KEYSTROKE as _0x30046c,AriaDescriptionView as _0x569f27,setupThreadKeyboardNavigation as _0x2fa3f4,trimHtml as _0x4a7044,UserView as _0x4528a4,LateFocusButtonView as _0xf243c6,getDateTimeFormatter as _0xa0a8c6,getAllMarkersDomElementsSorted as _0x31c527,sanitizeEditorConfig as _0x318346}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4fcfda,LiveRange as _0x343169,LivePosition as _0x3db03b}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1b7836,toWidget as _0x24a831}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5e597c,set as _0x285d4a,isEqual as _0x4bc8db,unset as _0x44e6ba,omit as Tt}from'lodash-es';import{Delete as _0x43506e,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4a5e81,ShiftEnter as _0x307b1e}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x2755f3,_0x5456e9){super(_0x2755f3),this['_enabledCommands']=_0x5456e9,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 _0x44d36f of this['editor']['commands']['commands']())_0x44d36f['affectsData']&&!this['_enabledCommands']['has'](_0x44d36f)&&_0x44d36f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x30df65 of this['editor']['commands']['commands']())_0x30df65['affectsData']&&!this['_enabledCommands']['has'](_0x30df65)&&_0x30df65['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x439e4e,_0x4f61ed){super(_0x439e4e),this['_suggestions']=_0x4f61ed,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x43778b){const _0x5a1199=this['_suggestions']['get'](_0x43778b);if(!_0x5a1199)throw new _0x4c97a0('track-changes-accept-suggestion-not-found',this);const _0x5f389b=_0x5a1199['getRanges']();this['editor']['model']['canEditAt'](_0x5f389b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5a1199);}}class R extends ts{['_suggestions'];constructor(_0x111571,_0x147f69){super(_0x111571),this['_suggestions']=_0x147f69,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xd356eb){const _0x4d4cab=this['_suggestions']['get'](_0xd356eb);if(!_0x4d4cab)throw new _0x4c97a0('track-changes-discard-suggestion-not-found',this);const _0x541cb4=_0x4d4cab['getRanges']();this['editor']['model']['canEditAt'](_0x541cb4)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4d4cab);}}function ls(_0x7a7de0,_0x3065d6){let _0x160c16='';return _0x160c16+=_0x7a7de0['split']('*')['map']((_0x5c1942,_0xadc3c0)=>_0xadc3c0%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x5c1942)+'</span>':nn(_0x5c1942))['join'](''),_0x3065d6&&(_0x160c16+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3065d6['value']+'\x22\x20title=\x22'+_0x3065d6['title']+'\x22></span>'),_0x160c16;}function nn(_0x104101){const _0x320659=document['createElement']('span');return _0x320659['innerText']=_0x104101,_0x320659['innerHTML'];}function ss(_0x2ebc17){return _0x2ebc17['sort']((_0x3de641,_0x4501c7)=>'deletion'==_0x3de641['type']&&'deletion'!=_0x4501c7['type']?-0x1:'deletion'!=_0x3de641['type']&&'deletion'==_0x4501c7['type']?0x1:0x0);}function to(_0x5c85b1,_0x1ee441){let _0x3efed4,_0x575321=0x0;const _0x5c927b=[],_0x1465cc=_0x1ee441['schema'];for(;_0x575321<_0x5c85b1['length'];){const _0x162158=_0x5c85b1[_0x575321],_0x1c7f78=_0x5c85b1[_0x575321+0x1];_0x3efed4||(_0x3efed4=_0x1ee441['createPositionBefore'](_0x162158)),on(_0x1ee441,_0x162158,_0x1c7f78)||(_0x5c927b['push'](_0x1ee441['createRange'](_0x3efed4,_0x1465cc['isObject'](_0x162158)?_0x1ee441['createPositionAfter'](_0x162158):_0x1ee441['createPositionAt'](_0x162158,'end'))),_0x3efed4=null),_0x575321++;}return _0x5c927b;}function on(_0x3b5a83,_0x1324a8,_0x2f9364){if(!_0x2f9364)return!0x1;const _0x18d656=_0x3b5a83['createPositionAfter'](_0x1324a8),_0x5a26cf=_0x3b5a83['createPositionBefore'](_0x2f9364);return _0x18d656['isTouching'](_0x5a26cf);}function rs(_0x515119,_0x34e81e,_0x4c3d22){for(;_0x4c3d22['length'];){const _0x58bf28=_0x4c3d22['splice'](0x0,0x64);_0x515119['change'](()=>{for(const _0x5e2ae0 of _0x58bf28)_0x5e2ae0['isInContent']&&_0x34e81e['execute'](_0x5e2ae0['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x275577,_0x2a0e30,_0x578cff){super(_0x275577),this['_command']=_0x2a0e30,this['_suggestions']=_0x578cff,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2eda9e=Array['from'](this['_suggestions']['values']())['some'](_0x1da322=>_0x1da322['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2eda9e;}['execute'](){const _0x15bb80=ss(Array['from'](this['_suggestions']['values']()));for(const _0xd7dc36 of _0x15bb80){const _0xb934d0=_0xd7dc36['getRanges']();if(!this['editor']['model']['canEditAt'](_0xb934d0))return;}rs(this['editor']['model'],this['_command'],_0x15bb80);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4f12b4,_0x35c317,_0x24f3da){super(_0x4f12b4),this['_command']=_0x35c317,this['_suggestions']=_0x24f3da,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1683a7=this['editor']['model']['document']['selection'],_0x20c200=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xea8874,_0xbaebaf){const _0x50153e=Array['from'](_0xea8874['getRanges']()),_0x301128=new Set();for(const _0x53b1b2 of _0xbaebaf)if(_0x53b1b2['isInContent']){for(const _0x378c3f of _0x50153e)for(const _0x4bfe44 of _0x53b1b2['getRanges']())(_0x378c3f['isIntersecting'](_0x4bfe44)||_0xea8874['isCollapsed']&&!_0x53b1b2['isMultiRange']&&_0x53b1b2['next']&&_0x4bfe44['end']['isTouching'](_0x378c3f['start']))&&_0x301128['add'](_0x53b1b2);}return _0x301128;}(_0x1683a7,_0x20c200),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x593999=ss(Array['from'](this['_selectedSuggestions']));for(const _0x5458ee of _0x593999){const _0x523d54=_0x5458ee['getRanges']();if(!this['editor']['model']['canEditAt'](_0x523d54))return;}rs(this['editor']['model'],this['_command'],_0x593999);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x431519(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1cde52,_0x1c70ab){super(),this['id']=_0x1c70ab['id'],this['type']=_0x1c70ab['type'],this['subType']=_0x1c70ab['subType']||null,this['author']=_0x1c70ab['author'],this['creator']=_0x1c70ab['creator']||_0x1c70ab['author'],this['isExternal']=Boolean(_0x1c70ab['attributes']&&_0x1c70ab['attributes']['@external']),this['data']=null,this['_model']=_0x1cde52,this['_onAccept']=_0x1c70ab['onAccept'],this['_onDiscard']=_0x1c70ab['onDiscard'],this['_onAttributesChange']=_0x1c70ab['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1c70ab['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 _0x5eed7f=this;for(;_0x5eed7f['previous'];)_0x5eed7f=_0x5eed7f['previous'];return _0x5eed7f;}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'](_0x420599){this['_markerNames']['add'](_0x420599);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3c87b6=>this['_model']['markers']['get'](_0x3c87b6))['filter'](_0x227b29=>_0x227b29);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x24a83d=>{for(const _0x5da558 of this['getMarkers']())_0x24a83d['removeMarker'](_0x5da558);}),this['_markerNames']['clear']();}['removeMarker'](_0x278050){this['_model']['change'](_0x25a002=>{_0x25a002['removeMarker'](_0x278050);}),this['_markerNames']['delete'](_0x278050);}['addRange'](_0x3c147a){const _0x1bd778='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1bd778),this['_model']['change'](_0x344a2e=>{_0x344a2e['addMarker'](_0x1bd778,{'range':_0x3c147a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x12e6d2){for(const _0x436fb4 of this['getRanges']())if(_0x436fb4['isIntersecting'](_0x12e6d2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x32205a=>_0x32205a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2e5551,_0x1a58e4)=>[..._0x2e5551,..._0x1a58e4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x105687=this['getRanges']();if(0x1!=_0x105687['length'])return null;const _0x385e3b=_0x105687[0x0],_0x53e153=_0x385e3b['start']['nodeAfter'],_0x3ec3a8=_0x385e3b['end']['nodeBefore'];return _0x53e153 instanceof _0x4fcfda?_0x53e153!=_0x3ec3a8?null:_0x53e153: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 _0x45de6f=[];let _0x299cab=this['head'];for(;_0x299cab;)_0x45de6f['push'](_0x299cab),_0x299cab=_0x299cab['next'];return _0x45de6f;}['setAttribute'](_0xb052ec,_0x46758a){const _0x4845d2=_0x5e597c(this['attributes']);_0x285d4a(_0x4845d2,_0xb052ec,_0x46758a),_0x4bc8db(_0x4845d2,this['attributes'])||(this['attributes']=_0x4845d2,this['_onAttributesChange'](_0x4845d2));}['removeAttribute'](_0x396284){const _0x24fd77=_0x5e597c(this['attributes']);_0x44e6ba(_0x24fd77,_0x396284),_0x4bc8db(_0x24fd77,this['attributes'])||(this['attributes']=_0x24fd77,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 _0x4bdc2b()['substr'](0x1,0x5);}}function o(_0x58eaa1,_0x267ae4,_0x248dc8){const t=_0x58eaa1['t'];switch(_0x267ae4){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'*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',_0x248dc8);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x248dc8);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x248dc8);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x248dc8);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x248dc8);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',_0x248dc8);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x248dc8);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x248dc8);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x248dc8);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x248dc8);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x248dc8);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x248dc8);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x248dc8);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x248dc8);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x248dc8);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x248dc8);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x248dc8);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x248dc8);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x248dc8);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x248dc8);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x248dc8);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x248dc8);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x248dc8);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'},_0x248dc8);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x248dc8);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x248dc8);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x248dc8);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x248dc8);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x248dc8);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'},_0x248dc8);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x248dc8);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x248dc8);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x248dc8);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x248dc8);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'},_0x248dc8);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x248dc8);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'},_0x248dc8);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'},_0x248dc8);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x248dc8);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'},_0x248dc8);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x248dc8);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'},_0x248dc8);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x248dc8);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x248dc8);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'},_0x248dc8);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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x248dc8);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x248dc8);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x248dc8);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'},_0x248dc8);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'},_0x248dc8);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'},_0x248dc8);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x267ae4;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x483cbf,_0x5263f2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x483cbf,this['_locale']=_0x5263f2;}['getDescriptions'](_0x395fec){const _0x585c42=[],_0x525ee6=new Set(),_0x319da6=new Set();for(let _0x478ce4=0x0;_0x478ce4<_0x395fec['length'];_0x478ce4++){const _0x20ece7=_0x395fec[_0x478ce4];if(!_0x20ece7['isInContent'])continue;const _0x16f76f=this['_handleCustomCallbackDescription'](_0x20ece7);if(_0x16f76f){if(null!=_0x20ece7['subType']){if(_0x525ee6['has'](_0x20ece7['subType']))continue;_0x525ee6['add'](_0x20ece7['subType']);}_0x585c42['push'](_0x16f76f);}else{if('attribute'!=_0x20ece7['type'])'insertion'!=_0x20ece7['type']&&'deletion'!=_0x20ece7['type']||this['_handleInsertRemoveSuggestionDescription'](_0x585c42,_0x20ece7,_0x395fec[_0x478ce4+0x1]);else{const _0x4b532b=_0x20ece7['data']['key'];if(_0x319da6['has'](_0x4b532b))continue;_0x319da6['add'](_0x20ece7['data']['key']),_0x4b532b==m?this['_handleRenameSuggestionDescription'](_0x585c42,_0x20ece7):this['_handleAttributeSuggestionDescription'](_0x585c42,_0x20ece7);}}}return this['_resolveDescriptionItems'](_0x585c42);}['registerDescriptionCallback'](_0x59fe21){this['_customCallbacks']['push'](_0x59fe21);}['registerElementLabel'](_0x3fad16,_0x8a1025,_0x2b147b=_0x2c006d['normal']){'function'==typeof _0x3fad16?_0x2e2187(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3fad16,'label':_0x8a1025,'priority':_0x2b147b}):this['_itemLabels']['set'](_0x3fad16,_0x8a1025);}['registerAttributeLabel'](_0x46ff6e,_0x31af72){this['_attributeLabels']['set'](_0x46ff6e,_0x31af72);}['getItemLabel'](_0x2f58b8,_0x51bbf0=0x1){let _0x10818c;for(const _0x102644 of this['_itemLabelsCallbacks'])if(_0x102644['matchingCallback'](_0x2f58b8)){_0x10818c=_0x102644['label'];break;}return _0x10818c||(_0x10818c=this['_itemLabels']['get'](_0x2f58b8['name'])),_0x10818c?_0x10818c(_0x51bbf0):0x1!==_0x51bbf0?_0x51bbf0+'\x20'+_0x2f58b8['name']+'s':''+_0x2f58b8['name'];}['_addDescriptionItems'](_0x4f3966,_0x506a44){const _0x2188f6=_0x506a44['getFirstRange']()['getWalker'](),_0x50dd8a='insertion'==_0x506a44['type']?'add':'remove';for(const _0x457edf of _0x2188f6){const _0x5a35d4=_0x457edf['item'],_0x7af7d4=_0x4f3966[_0x4f3966['length']-0x1];if(_0x5a35d4['is']('$textProxy'))_0x7af7d4&&_0x7af7d4['type']['indexOf']('Container')>-0x1&&_0x4f3966['pop'](),_0x7af7d4&&'text'==_0x7af7d4['type']?_0x7af7d4[_0x50dd8a]+=_0x5a35d4['data']:_0x4f3966['push']({'type':'text','add':'add'==_0x50dd8a?_0x5a35d4['data']:'','remove':'remove'==_0x50dd8a?_0x5a35d4['data']:''});else{if(this['_schema']['isObject'](_0x5a35d4)){const _0x7e7bcf=_0x5a35d4;if(_0x7af7d4&&_0x7af7d4['type']['indexOf']('Container')>-0x1&&_0x4f3966['pop'](),'elementEnd'==_0x457edf['type'])continue;_0x7af7d4&&_0x7af7d4['type']==_0x50dd8a+'Object'&&_0x7af7d4['element']['name']==_0x7e7bcf['name']?_0x7af7d4['quantity']++:_0x4f3966['push']({'type':_0x50dd8a+'Object','element':_0x7e7bcf,'quantity':0x1}),_0x2188f6['skip'](_0x542c07=>!('elementEnd'==_0x542c07['type']&&_0x542c07['item']==_0x5a35d4));}else{if(this['_schema']['checkChild'](_0x5a35d4,'$text')||_0x5a35d4['is']('element','softBreak')){const _0xa67bf1=_0x5a35d4;if('add'==_0x50dd8a&&'elementStart'==_0x457edf['type']||'remove'==_0x50dd8a&&'elementEnd'==_0x457edf['type'])continue;if(_0x7af7d4&&-0x1==_0x7af7d4['type']['indexOf']('Container')){'text'==_0x7af7d4['type']&&(_0x7af7d4[_0x50dd8a]+='\x0a');continue;}let _0x3be787;if(_0x3be787='add'==_0x50dd8a?_0xa67bf1['nextSibling']&&!this['_schema']['isObject'](_0xa67bf1['nextSibling'])?_0xa67bf1['nextSibling']:null:_0xa67bf1['previousSibling']&&!this['_schema']['isObject'](_0xa67bf1['previousSibling'])?_0xa67bf1['previousSibling']:null,_0xa67bf1['isEmpty']||_0x3be787&&_0x3be787['isEmpty']){const _0x3a33c4=_0x3be787&&_0x3be787['isEmpty']?_0x3be787:_0xa67bf1;_0x7af7d4&&_0x7af7d4['type']==_0x50dd8a+'EmptyContainer'&&_0x7af7d4['element']['name']==_0x3a33c4['name']?_0x7af7d4['quantity']++:_0x4f3966['push']({'type':_0x50dd8a+'EmptyContainer','element':_0x3a33c4,'quantity':0x1});}else _0x4f3966['push']({'type':_0x50dd8a+'Container','element':_0xa67bf1});}}}}}['_resolveDescriptionItems'](_0x400375){const _0x32d04c=this['_locale'],_0x391ffb=[],_0x61be7b=[],_0x34c730=[];for(const _0x3c2ea0 of _0x400375)switch(_0x3c2ea0['type']){case'text':if(_0x3c2ea0['add']=_0x3c2ea0['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3c2ea0['remove']=_0x3c2ea0['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3c2ea0['add']&&''!=_0x3c2ea0['remove']){_0x391ffb['push']({'type':'replace','content':o(_0x32d04c,'REPLACE_TEXT',['\x22'+_0x3c2ea0['remove']+'\x22','\x22'+_0x3c2ea0['add']+'\x22'])});continue;}if(null!=_0x3c2ea0['add']['match'](/^ +$/)){_0x391ffb['push']({'type':'insertion','content':o(_0x32d04c,'*Insert:*\x20%0',o(_0x32d04c,'ELEMENT_SPACE',_0x3c2ea0['add']['length']))});continue;}if(null!=_0x3c2ea0['remove']['match'](/^ +$/)){_0x391ffb['push']({'type':'deletion','content':o(_0x32d04c,'*Remove:*\x20%0',o(_0x32d04c,'ELEMENT_SPACE',_0x3c2ea0['remove']['length']))});continue;}if(''!=_0x3c2ea0['add']){_0x391ffb['push']({'type':'insertion','content':o(_0x32d04c,'*Insert:*\x20%0','\x22'+_0x3c2ea0['add']+'\x22')});continue;}_0x391ffb['push']({'type':'deletion','content':o(_0x32d04c,'*Remove:*\x20%0','\x22'+_0x3c2ea0['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x391ffb['push']({'type':'insertion','content':o(_0x32d04c,'*Insert:*\x20%0',this['getItemLabel'](_0x3c2ea0['element'],_0x3c2ea0['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x391ffb['push']({'type':'deletion','content':o(_0x32d04c,'*Remove:*\x20%0',this['getItemLabel'](_0x3c2ea0['element'],_0x3c2ea0['quantity']))});continue;case'addContainer':_0x391ffb['push']({'type':'insertion','content':o(_0x32d04c,'*Split:*\x20%0',this['getItemLabel'](_0x3c2ea0['element'],_0x3c2ea0['quantity']))});continue;case'removeContainer':_0x391ffb['push']({'type':'deletion','content':o(_0x32d04c,'*Merge:*\x20%0',this['getItemLabel'](_0x3c2ea0['element'],_0x3c2ea0['quantity']))});continue;case'addFormat':_0x61be7b['push'](_0x3c2ea0['key']);continue;case'removeFormat':_0x34c730['push'](_0x3c2ea0['key']);continue;default:_0x391ffb['push'](_0x3c2ea0);}if(_0x61be7b['length']){const _0x627f5c=_0x61be7b['map'](_0xdc3a76=>this['_attributeLabels']['has'](_0xdc3a76)?this['_attributeLabels']['get'](_0xdc3a76):_0xdc3a76)['join'](',\x20');_0x391ffb['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x627f5c)});}if(_0x34c730['length']){const _0x3691ff=_0x34c730['map'](_0xcdc50a=>this['_attributeLabels']['has'](_0xcdc50a)?this['_attributeLabels']['get'](_0xcdc50a):_0xcdc50a)['join'](',\x20');_0x391ffb['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3691ff)});}return _0x391ffb;}['_handleCustomCallbackDescription'](_0x1aa500){for(const _0x5b57cf of this['_customCallbacks']){const _0x55cc56=_0x5b57cf(_0x1aa500);if(_0x55cc56&&'type'in _0x55cc56)return _0x55cc56;}}['_handleAttributeSuggestionDescription'](_0xa752b4,_0x1c7f4c){const _0x3f953e=_0x1c7f4c['data'],_0x584ff7=void 0x0===_0x3f953e['newValue']?'removeFormat':'addFormat';_0xa752b4['push']({'type':_0x584ff7,'key':_0x3f953e['key']});}['_handleRenameSuggestionDescription'](_0x51dc51,_0x22424d){_0x51dc51['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x22424d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x37c5f9,_0x5e7c73,_0x319dfc){if(this['_addDescriptionItems'](_0x37c5f9,_0x5e7c73),_0x319dfc&&_0x319dfc['getFirstRange']()&&!_0x5e7c73['getFirstRange']()['end']['isEqual'](_0x319dfc['getFirstRange']()['start'])){const _0x2a1e9d=_0x37c5f9[_0x37c5f9['length']-0x1],_0x1b5cfa='insertion'==_0x5e7c73['type']?'add':'remove';_0x2a1e9d&&'text'==_0x2a1e9d['type']&&(_0x2a1e9d[_0x1b5cfa]+='\x0a');}}}class V extends _0x35dcdc{['afterInit'](){const _0xf4d44e=this['editor'],_0x188cc3=_0xf4d44e['plugins']['get']('TrackChangesEditing');_0xf4d44e['commands']['get']('showAIAssistant')&&_0x188cc3['enableCommand']('showAIAssistant');}}class U extends _0x35dcdc{['afterInit'](){const _0x5b3299=this['editor'],_0x3d2b9c=_0x5b3299['locale'];if(!_0x5b3299['plugins']['has']('AlignmentEditing'))return;const _0x3d3cf7=_0x5b3299['plugins']['get']('TrackChangesEditing');_0x3d3cf7['enableDefaultAttributesIntegration']('alignment'),_0x3d3cf7['registerBlockAttribute']('alignment'),_0x3d3cf7['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3d2b9c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bbf90=this['editor'],_0x3fe8f1=_0x1bbf90['locale'];_0x1bbf90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53ce8e=>{if('formatBlock'!=_0x53ce8e['type'])return;const {data:_0x5e5eee}=_0x53ce8e;if(_0x5e5eee&&'alignment'==_0x5e5eee['commandName']){const _0x696be2=_0x5e5eee['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3fe8f1,'*Format:*\x20%0',function(_0x5e8edd){switch(_0x5e8edd){case'left':return o(_0x3fe8f1,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3fe8f1,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3fe8f1,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3fe8f1,'FORMAT_JUSTIFY_TEXT');}}(_0x696be2))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x35dcdc{['afterInit'](){const _0x41fb43=this['editor'],_0x348688=_0x41fb43['plugins']['get']('TrackChangesEditing'),_0x2bb2f0=_0x41fb43['locale'];for(const _0x28255b of ti){if(!_0x41fb43['plugins']['has'](_0x28255b))continue;const _0x310e21=_0x28255b['slice'](0x0,-0x7)['toLowerCase'](),_0x1edaa1='FORMAT_'+_0x310e21['toUpperCase']();_0x348688['enableDefaultAttributesIntegration'](_0x310e21),_0x348688['registerInlineAttribute'](_0x310e21),_0x348688['descriptionFactory']['registerAttributeLabel'](_0x310e21,o(_0x2bb2f0,_0x1edaa1));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x782cec=this['editor'],_0xc57c84=_0x782cec['locale'],_0x37211c=_0x782cec['plugins']['get']('TrackChangesEditing');function _0x248992(_0x5996f9,_0xa8e9b5){_0x37211c['descriptionFactory']['registerDescriptionCallback'](_0x553f08=>{if('formatInline'!=_0x553f08['type'])return;const {data:_0x88f9da}=_0x553f08;return _0x88f9da&&_0x88f9da['commandName']===_0x5996f9?_0x88f9da['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc57c84,'*Format:*\x20%0',_0xa8e9b5)}:{'type':'format','content':o(_0xc57c84,'*Remove\x20format:*\x20%0',_0xa8e9b5)}:void 0x0;});}_0x248992('bold',o(_0xc57c84,'FORMAT_BOLD')),_0x248992('italic',o(_0xc57c84,'FORMAT_ITALIC')),_0x248992('underline',o(_0xc57c84,'FORMAT_UNDERLINE')),_0x248992('code',o(_0xc57c84,'FORMAT_CODE')),_0x248992('strikethrough',o(_0xc57c84,'FORMAT_STRIKETHROUGH')),_0x248992('subscript',o(_0xc57c84,'FORMAT_SUBSCRIPT')),_0x248992('superscript',o(_0xc57c84,'FORMAT_SUPERSCRIPT'));}}class F extends _0x35dcdc{['afterInit'](){const _0x5d26b4=this['editor'],_0x3301dc=_0x5d26b4['locale'];if(!_0x5d26b4['plugins']['has']('BlockQuoteEditing'))return;const _0x1fe3a9=_0x5d26b4['plugins']['get']('TrackChangesEditing'),_0x407b97=this['editor']['commands']['get']('blockQuote');_0x1fe3a9['enableCommand']('blockQuote',(_0x2eba42,_0x366985={})=>{const _0x407b1d=this['editor']['model']['document']['selection'],_0xc63dc8=_0x366985&&void 0x0!==_0x366985['forceValue']?_0x366985['forceValue']:!_0x407b97['value'];let _0x111594=[];if(_0xc63dc8){const _0x57a713=Array['from'](_0x407b1d['getSelectedBlocks']())['filter'](_0x4644d4=>oo(_0x4644d4)||function(_0x1b300f,_0x3edd69){const _0x4f4b5b=_0x3edd69['checkChild'](_0x1b300f['parent'],'blockQuote'),_0xe57004=_0x3edd69['checkChild'](['$root','blockQuote'],_0x1b300f);return _0x4f4b5b&&_0xe57004;}(_0x4644d4,this['editor']['model']['schema']));_0x111594=to(_0x57a713,_0x5d26b4['model']);}else{const _0x4a48e2=Array['from'](_0x407b1d['getSelectedBlocks']())['filter'](_0x15fb45=>oo(_0x15fb45));_0x111594=to(_0x4a48e2,_0x5d26b4['model']);}_0x5d26b4['model']['change'](()=>{for(const _0x348bfa of _0x111594)_0x1fe3a9['markBlockFormat'](_0x348bfa,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xc63dc8}]});});}),_0x1fe3a9['descriptionFactory']['registerDescriptionCallback'](_0x5850c6=>{const {data:_0x25ac34}=_0x5850c6;if(_0x25ac34&&'blockQuote'==_0x25ac34['commandName']){const _0x5b55a2=o(_0x3301dc,'ELEMENT_BLOCK_QUOTE');return _0x25ac34['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3301dc,'*Set\x20format:*\x20%0',_0x5b55a2)}:{'type':'format','content':o(_0x3301dc,'*Remove\x20format:*\x20%0',_0x5b55a2)};}});}}function oo(_0x131fc3){return'blockQuote'==_0x131fc3['parent']['name'];}class L extends _0x35dcdc{['afterInit'](){const _0x15de90=this['editor'];_0x15de90['plugins']['has']('CaseChange')&&(_0x15de90['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x15de90['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x15de90['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x35dcdc{['afterInit'](){const _0x5380e0=this['editor'];_0x5380e0['commands']['get']('ckbox')&&_0x5380e0['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x35dcdc{['afterInit'](){const _0x5991fd=this['editor'];if(!_0x5991fd['plugins']['has']('CodeBlock'))return;const _0x35e004=_0x5991fd['plugins']['get']('TrackChangesEditing'),_0x543edf=_0x5991fd['locale'],_0x830569=_0x5991fd['config']['get']('codeBlock')['languages'],_0x4d6eb5=_0x5991fd['commands']['get']('codeBlock');_0x35e004['enableCommand']('indentCodeBlock'),_0x35e004['enableCommand']('outdentCodeBlock'),_0x35e004['enableCommand']('codeBlock',(_0x108ebd,_0x1e240b={})=>{const _0x12833d=_0x5991fd['model'],_0x4ef3f0=_0x5991fd['model']['document']['selection'],_0x53f6a5=_0x1e240b&&void 0x0!==_0x1e240b['forceValue']?_0x1e240b['forceValue']:!_0x4d6eb5['value'];let _0x1f7b91;_0x1e240b['language']||(_0x1e240b['language']=_0x830569[0x0]['language']),_0x1f7b91=_0x53f6a5?Array['from'](_0x4ef3f0['getSelectedBlocks']())['filter'](_0x5e4c84=>eo(_0x5e4c84)||function(_0x44388b,_0x16e93d){if(_0x44388b['is']('rootElement')||_0x16e93d['isLimit'](_0x44388b))return!0x1;return _0x16e93d['checkChild'](_0x44388b['parent'],'codeBlock');}(_0x5e4c84,_0x12833d['schema'])):Array['from'](_0x4ef3f0['getSelectedBlocks']())['filter'](_0x23ed92=>eo(_0x23ed92));const _0x5124e3=to(_0x1f7b91,_0x12833d);_0x12833d['change'](()=>{for(const _0x3b00e5 of _0x5124e3)_0x35e004['markBlockFormat'](_0x3b00e5,{'commandName':'codeBlock','commandParams':[{..._0x1e240b,'forceValue':_0x53f6a5}],'formatGroupId':'blockName'});});}),(_0x35e004['descriptionFactory']['registerElementLabel']('codeBlock',_0xbab67c=>o(_0x543edf,'ELEMENT_CODE_BLOCK',_0xbab67c)),_0x35e004['descriptionFactory']['registerDescriptionCallback'](_0x15c717=>{if('formatBlock'!=_0x15c717['type'])return;const _0x288ffc=_0x543edf['t'],{data:_0x11f453}=_0x15c717;if(!_0x11f453||'codeBlock'!=_0x11f453['commandName'])return;const _0x2c0f3c=_0x11f453['commandParams'][0x0]['language'],_0x5b9816=_0x288ffc(_0x830569['find'](_0x2d4a55=>_0x2d4a55['language']===_0x2c0f3c)['label'])['toLowerCase']();return _0x11f453['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x543edf,'*Set\x20format:*\x20%0',o(_0x543edf,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5b9816+')')}:{'type':'format','content':o(_0x543edf,'*Remove\x20format:*\x20%0',o(_0x543edf,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x188000){return'codeBlock'==_0x188000['name'];}class q extends _0x35dcdc{['afterInit'](){const _0x4806bc=this['editor'];if(!_0x4806bc['plugins']['has']('CommentsEditing'))return;_0x4806bc['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x59ec61,_0x143141,_0x1a5e47){const _0x37ff7a=[];for(const _0x5239fd of _0x143141['getItems']())_0x5239fd['hasAttribute'](_0x59ec61)&&_0x37ff7a['push'](_0x1a5e47['createRangeOn'](_0x5239fd));return _0x37ff7a;}function _e(_0x14ed7e,_0x3388d9,{showActiveMarker:_0x503c28=!0x0}={}){const _0x2ea8ed=_0x14ed7e['plugins']['get']('TrackChangesEditing');return(_0x4e18cd,_0x5b8939,_0x5b3689)=>{if(!_0x5b3689['consumable']['test'](_0x5b8939['markerRange'],_0x4e18cd['name']))return;const _0x5725d9=_0x5b8939['markerRange']['getWalker'](),_0x1b6837=_0x5b8939['markerRange']['start'],_0x110002=_0x14ed7e['model']['schema'];let _0x4fccd1=null,_0x245487=null,_0x12810e=!0x1,_0x263aae=!0x1;for(const _0x426faf of _0x5725d9){const _0x254083=_0x426faf['item'];_0x12810e=_0x12810e||_0x110002['isContent'](_0x254083);const _0x403f8f=_0x5b3689['mapper']['toViewElement'](_0x254083);if(_0x403f8f&&_0x403f8f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x426faf['type']&&(_0x110002['isBlock'](_0x254083)&&!_0x110002['isLimit'](_0x254083)&&(_0x254083['nextSibling']||_0x1b6837['isAtEnd']?_0x4fccd1&&_0x4fccd1['parent']==_0x254083||(_0x4fccd1=_0x254083,_0x212b0e(_0x426faf['previousPosition']),_0x263aae=!0x0):_0x245487=_0x245487||_0x426faf['previousPosition']));}function _0x212b0e(_0x728fa3){const {authorId:_0x16e47f}=_0x2ea8ed['_splitMarkerName'](_0x5b8939['markerName']),_0x35df75=_0x5b3689['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3388d9,'data-author-id':_0x16e47f}),_0x50e79d=_0x5b3689['mapper']['toViewPosition'](_0x728fa3);_0x503c28&&_0x2ea8ed['activeMarkers']['includes'](_0x5b8939['markerName'])&&_0x5b3689['writer']['addClass']('ck-suggestion-marker--active',_0x35df75),_0x5b3689['writer']['insert'](_0x50e79d,_0x35df75),_0x5b3689['mapper']['bindElementToMarker'](_0x35df75,_0x5b8939['markerName']);}_0x12810e||_0x263aae||!_0x245487||_0x212b0e(_0x245487);};}class z extends _0x35dcdc{static get['requires'](){return[_0x43506e];}['init'](){const _0xeb837b=this['editor'],_0xe13d86=_0xeb837b['plugins']['get']('TrackChangesEditing');_0xe13d86['enableCommand']('delete');const _0x336afc=_0xeb837b['commands']['get']('deleteForward');_0xe13d86['enableCommand']('deleteForward',(_0x25c87c,_0x1be535={})=>{const _0x4a5aac=_0xeb837b['model']['createSelection'](_0xeb837b['model']['document']['selection']);_0x4a5aac['isCollapsed']&&_0xeb837b['model']['modifySelection'](_0x4a5aac,{'direction':'forward','unit':_0x1be535['unit']});const _0x1c0f90=_0x4a5aac['getFirstRange'](),_0x3cbe7c=_0x343169['fromRange'](_0x1c0f90);let _0x3151ad;_0x25c87c(_0x1be535),_0x3151ad='$graveyard'==_0x3cbe7c['root']['rootName']?_0xeb837b['model']['createRange'](_0x1c0f90['start']):_0xeb837b['model']['createRange'](_0x3cbe7c['start'],_0x3cbe7c['end']),_0x3cbe7c['detach'](),_0xeb837b['model']['enqueueChange'](_0x336afc['buffer']['batch'],_0x5abff0=>{_0x336afc['buffer']['lock'](),_0x5abff0['setSelection'](_0x5abff0['createRange'](_0x3151ad['end'])),_0x336afc['buffer']['unlock']();});}),_0xeb837b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0xeb837b,'merge'),{'priority':'high'}),_0xeb837b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1cc470,_0x252945,_0x275153)=>{_0x275153['options']['showSuggestionHighlights']&&_e(_0xeb837b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1cc470,_0x252945,_0x275153);},{'priority':'high'}),_0xeb837b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4a2342,_0x2ba1d8,_0x4e035c)=>{const _0x16dd29=_0x4e035c['mapper']['markerNameToElements'](_0x2ba1d8['markerName']);if(_0x16dd29){for(const _0x5c2aea of _0x16dd29)_0x5c2aea['is']('uiElement')&&(_0x4e035c['mapper']['unbindElementFromMarkerName'](_0x5c2aea,_0x2ba1d8['markerName']),_0x4e035c['writer']['remove'](_0x5c2aea));}},{'priority':'high'});}}class K extends _0x35dcdc{['afterInit'](){const _0x1f4f35=this['editor'];if(!_0x1f4f35['plugins']['has']('ListEditing'))return;const _0x750338=_0x1f4f35['locale'],_0x56eaf9=_0x1f4f35['plugins']['get']('TrackChangesEditing'),_0x41e44a=_0x1f4f35['plugins']['has']('TodoListEditing'),_0x5be826=!!_0x1f4f35['config']['get']('list.multiBlock');function _0x2d603c(_0x149a6a){return{'type':'format','content':''+o(_0x750338,'*Set\x20format:*\x20%0',_0x149a6a)};}function _0x499a7a(_0x48c3e6){return{'type':'format','content':''+o(_0x750338,'*Remove\x20format:*\x20%0',_0x48c3e6)};}_0x56eaf9['enableDefaultAttributesIntegration']('numberedList'),_0x56eaf9['enableDefaultAttributesIntegration']('bulletedList'),_0x56eaf9['enableDefaultAttributesIntegration']('customNumberedList'),_0x56eaf9['enableDefaultAttributesIntegration']('customBulletedList'),_0x56eaf9['enableDefaultAttributesIntegration']('indentList'),_0x56eaf9['enableDefaultAttributesIntegration']('outdentList'),_0x56eaf9['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x56eaf9['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x56eaf9['registerBlockAttribute']('listItemId'),_0x56eaf9['registerBlockAttribute']('listType'),_0x56eaf9['registerBlockAttribute']('listIndent'),_0x5be826&&(_0x56eaf9['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x56eaf9['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x41e44a&&(_0x56eaf9['enableDefaultAttributesIntegration']('todoList'),_0x56eaf9['enableDefaultAttributesIntegration']('checkTodoList'),_0x56eaf9['registerBlockAttribute']('todoListChecked'),_0x56eaf9['descriptionFactory']['registerDescriptionCallback'](_0x2a28c3=>{const {data:_0xacb018}=_0x2a28c3;if(_0xacb018&&'todoListChecked'==_0xacb018['key'])return{'type':'format','content':_0xacb018['newValue']?o(_0x750338,'*Check\x20item*'):o(_0x750338,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x44795c=>{if(_0x44795c['batch']['isUndo'])return!0x1;let _0x402a4c=!0x1;const _0x37ef78=_0x56eaf9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x265a27=>'todoListChecked'===_0x56eaf9['_getAttributeKey'](_0x265a27));for(const _0x4e7368 of _0x37ef78){'todo'!=_0x4e7368['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x56eaf9['_findSuggestions'](_0x4e7368['getFirstRange'](),'attribute')['find'](_0x4b4ea0=>'listType'===_0x56eaf9['_getAttributeKey'](_0x4b4ea0['suggestion']))||(_0x44795c['removeMarker'](_0x4e7368['getFirstMarker']()),_0x402a4c=!0x0));}return _0x402a4c;})),_0x56eaf9['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x750338,'FORMAT_INDENT'));const _0x50f885={'type':'format','content':''};_0x56eaf9['descriptionFactory']['registerDescriptionCallback'](_0x1c9a9c=>{const {data:_0x2b6c9b}=_0x1c9a9c;if(!_0x2b6c9b||'listType'!=_0x2b6c9b['key'])return;let _0x3fb95d=_0x1c9a9c['head'];for(;_0x3fb95d;){if(_0x3fb95d['data']&&(('listStyle'==_0x3fb95d['data']['key']||'listMarkerStyle'==_0x3fb95d['data']['key'])&&(_0x3fb95d['data']['newValue']&&'default'!=_0x3fb95d['data']['newValue']||'default'!=_0x3fb95d['data']['oldValue']&&!_0x2b6c9b['newValue'])||!_0x5be826&&_0x3fb95d['data']['key']==m))return _0x50f885;_0x3fb95d=_0x3fb95d['next'];}if(null==_0x2b6c9b['newValue'])switch(_0x2b6c9b['oldValue']){case'bulleted':return _0x499a7a(o(_0x750338,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x499a7a(o(_0x750338,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x499a7a(o(_0x750338,'ELEMENT_TODO_LIST'));}switch(_0x2b6c9b['newValue']){case'bulleted':return _0x2d603c(o(_0x750338,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2d603c(o(_0x750338,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2d603c(o(_0x750338,'ELEMENT_TODO_LIST'));}}),_0x56eaf9['descriptionFactory']['registerDescriptionCallback'](_0x2a9708=>{const {data:_0x4d0785}=_0x2a9708;if(_0x4d0785&&'listIndent'==_0x4d0785['key'])return null==_0x4d0785['newValue']||null==_0x4d0785['oldValue']&&0x0==_0x4d0785['newValue']?_0x50f885:void 0x0;}),_0x56eaf9['descriptionFactory']['registerDescriptionCallback'](_0x196e56=>{if('attribute'!=_0x196e56['type'])return;const {data:_0x3329eb}=_0x196e56;if(!_0x3329eb||'listItemId'!=_0x3329eb['key'])return;const _0x5abf71=Ee(_0x196e56);return'newValue'==_0x5abf71?{'type':'format','content':o(_0x750338,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5abf71?{'type':'format','content':o(_0x750338,'*Split:*\x20list\x20item')}:_0x50f885;}),_0x1f4f35['model']['document']['registerPostFixer'](_0x4ed1fc=>this['listItemIdFixer'](_0x4ed1fc)),_0x1f4f35['model']['document']['registerPostFixer'](_0x5b0544=>this['noTrackChangesFixer'](_0x5b0544)),_0x1f4f35['model']['document']['on']('change:data',(_0x41bf3b,_0xa72ed0)=>{if(_0xa72ed0['isUndo']||!_0xa72ed0['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x226733){if(_0x226733['batch']['isUndo']||!_0x226733['batch']['isLocal'])return!0x1;let _0x1b7540=!0x1;const _0x66ab44=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x297ce2=>_0x297ce2['data']&&'listItemId'==_0x297ce2['data']['key'])['filter'](_0x446e20=>_0x446e20['data']['newValue']&&_0x446e20['data']['oldValue']);for(const _0x51f13f of _0x66ab44)Ee(_0x51f13f)||(_0x226733['removeMarker'](_0x51f13f['getFirstMarker']()),_0x1b7540=!0x0);return _0x1b7540;}['noTrackChangesFixer'](_0x4054db){if(_0x4054db['batch']['isUndo']||!_0x4054db['batch']['isLocal'])return!0x1;const _0x3052d8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3052d8['trackChangesCommand']['value'])return!0x1;let _0xc0c91d=!0x1;const _0x1396cd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x44f466=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x16e715=>'attribute'==_0x16e715['type'])['filter'](_0x38b90d=>_0x1396cd['includes'](_0x38b90d['attributeKey']));if(0x0==_0x44f466['length'])return _0xc0c91d;for(const _0x3a9bb2 of _0x44f466){const _0x2b63e2=_0x3052d8['_findSuggestions'](_0x3a9bb2['range'],'attribute')['filter'](_0x35f6a9=>!_0x35f6a9['meta']['isNextTo'])['map'](_0x53b97a=>_0x53b97a['suggestion'])['filter'](_0x5ab7a6=>{const _0x4714fe=_0x3052d8['_getAttributeKey'](_0x5ab7a6);return _0x1396cd['includes'](_0x4714fe);});if(_0x2b63e2['length']){for(const _0x4289e4 of _0x2b63e2)_0x4054db['removeMarker'](_0x4289e4['getFirstMarker']());_0xc0c91d=!0x0;}}return _0xc0c91d;}['assureChains'](){const _0x29806e=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfac582=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x22a777;const _0x343ff0=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1c1921=>{if(_0x1c1921['data']['oldRange']||!_0x1c1921['data']['newRange'])return null;if(!_0x1c1921['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x337bee}=_0x29806e['_splitMarkerName'](_0x1c1921['name']);if(!_0x29806e['hasSuggestion'](_0x337bee))return null;const _0x2d265b=_0x29806e['getSuggestion'](_0x337bee);return _0xfac582['includes'](_0x2d265b['data']['key']);})['map'](_0x549fbd=>{const {id:_0x5681ec}=_0x29806e['_splitMarkerName'](_0x549fbd['name']),_0x244466=_0x29806e['getSuggestion'](_0x5681ec);return _0x22a777=_0x244466['attributes']['groupId'],_0x244466['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x343ff0['size'])return;const _0x3d054d=_0x29806e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc68ade=>'attribute'==_0xc68ade['type']&&_0xc68ade['data']&&_0xfac582['includes'](_0xc68ade['data']['key'])&&_0xc68ade['attributes']['groupId']!=_0x22a777)['map'](_0x1950d0=>({'listItem':_0x1950d0['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1950d0['attributes']['groupId']})),_0x32ef60=new Set();for(const {groupId:_0x6a30b9,listItem:_0x467569}of _0x3d054d)_0x343ff0['has'](_0x467569)&&_0x32ef60['add'](_0x6a30b9);for(const _0x2bda0c of _0x29806e['getSuggestions']())_0x32ef60['has'](_0x2bda0c['attributes']['groupId'])&&_0x2bda0c['setAttribute']('groupId',_0x22a777);}['_supportLegacySuggestions'](){const _0x4d7596=this['editor'],_0x2f1049=_0x4d7596['locale'],_0x865018=_0x4d7596['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x865018['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1c069b,_0x2bc044){const _0x1f3ab3=[];for(let _0x1120bd of _0x1c069b)_0x1120bd['start']['nodeAfter']===_0x1120bd['end']['parent']&&(_0x1120bd=_0x4d7596['model']['createRange'](_0x4d7596['model']['createPositionAt'](_0x1120bd['start']['nodeAfter'],0x0))),_0x1f3ab3['push'](_0x1120bd);_0x4d7596['model']['change'](_0x4911bd=>{const _0x40cc6e=_0x4d7596['model']['document']['selection'],_0x4ac6d0=Array['from'](_0x40cc6e['getRanges']())['map'](_0x410bfa=>_0x343169['fromRange'](_0x410bfa));_0x4911bd['setSelection'](_0x1f3ab3),_0x4d7596['commands']['get'](_0x2bc044['commandName'])['refresh'](),_0x2bc044['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4d7596['execute'](_0x2bc044['commandName'],..._0x2bc044['commandParams']),_0x4911bd['setSelection'](_0x4ac6d0);for(const _0x33be17 of _0x4ac6d0)_0x33be17['detach']();});}),_0x865018['descriptionFactory']['registerElementLabel'](function(_0xd56ebd){const _0x460d8e=!_0x4d7596['model']['schema']['isObject'](_0xd56ebd),_0x456e0c=_0xd56ebd['previousSibling'],_0x3b450c=_0xd56ebd['nextSibling'],_0x4c8b38=_0xd56ebd['getAttribute']('listItemId'),_0x37570a=!_0x456e0c||_0x456e0c['getAttribute']('listItemId')!==_0x4c8b38,_0x556594=!_0x3b450c||_0x3b450c['getAttribute']('listItemId')!==_0x4c8b38;return _0x460d8e&&Boolean(_0x4c8b38)&&_0x37570a&&_0x556594;},_0x4572af=>o(_0x2f1049,'ELEMENT_LIST_ITEM',_0x4572af));}['_registerLegacyDescription'](){const _0x7f9b52=this['editor'],_0x145a1d=_0x7f9b52['locale'];function _0x1d1009(_0x2351f8){const _0x4c738a=_0x7f9b52['commands']['get']('bulletedList')['value'],_0x627622=_0x7f9b52['commands']['get']('numberedList')['value'];return'numberedList'===_0x2351f8?_0x4c738a:_0x627622;}_0x7f9b52['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3085c5){if('formatBlock'!=_0x3085c5['type'])return;const {data:_0x3378bf}=_0x3085c5;if(!_0x3378bf)return;let _0x5466f1,_0x44bd4a,_0x4d65ee,_0x1a263b;switch(_0x3378bf['commandName']){case'bulletedList':_0x4d65ee=_0x3378bf['commandParams'][0x0]['forceValue'],_0x1a263b=_0x1d1009(_0x3378bf['commandName']),_0x5466f1=_0x4d65ee?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1a263b&&_0x7f9b52['config']['get']('list.multiBlock')||(_0x5466f1='*Change\x20to:*\x20%0'),_0x44bd4a={'type':'format','content':o(_0x145a1d,_0x5466f1,o(_0x145a1d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4d65ee=_0x3378bf['commandParams'][0x0]['forceValue'],_0x1a263b=_0x1d1009(_0x3378bf['commandName']),_0x5466f1=_0x4d65ee?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1a263b&&_0x7f9b52['config']['get']('list.multiBlock')||(_0x5466f1='*Change\x20to:*\x20%0'),_0x44bd4a={'type':'format','content':o(_0x145a1d,_0x5466f1,o(_0x145a1d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5466f1='*Indent:*\x20%0',_0x44bd4a={'type':'format','content':o(_0x145a1d,_0x5466f1,o(_0x145a1d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5466f1=function(_0x47607e){const _0x5d60ff=_0x47607e['getFirstRange']();let _0xb7f55a=_0x5d60ff['start']['nodeAfter'];for(;_0xb7f55a&&_0x5d60ff['containsItem'](_0xb7f55a);){if(_0xb7f55a['getAttribute']('listIndent')>0x0)return!0x1;_0xb7f55a=_0xb7f55a['nextSibling'];}return!0x0;}(_0x3085c5)?o(_0x145a1d,'*Format:*\x20remove\x20from\x20%0',o(_0x145a1d,function(_0x18bacd){return'ELEMENT_'+_0x18bacd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3085c5))):o(_0x145a1d,'*Outdent:*\x20%0',o(_0x145a1d,'ELEMENT_LIST_ITEM')),_0x44bd4a={'type':'format','content':_0x5466f1};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3378bf['multipleBlocks']&&(_0x5466f1='*Merge:*\x20%0',_0x44bd4a={'type':'deletion','content':o(_0x145a1d,_0x5466f1,o(_0x145a1d,'ELEMENT_LIST_ITEM'))});}return _0x44bd4a;});}}function Ee(_0x55d989){let _0x5d6d1d=_0x55d989['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5d6d1d;){const _0x20bef3=_0x5d6d1d['getAttribute']('listItemId');if(!_0x20bef3)return!0x1;if(_0x20bef3==_0x55d989['data']['newValue'])return'newValue';if(_0x20bef3==_0x55d989['data']['oldValue'])return'oldValue';_0x5d6d1d=_0x5d6d1d['previousSibling'];}return!0x1;}class pe extends _0x35dcdc{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x100a95=this['editor']['config']['get']('list.properties'),_0x32c5ef=this['editor']['plugins']['get']('TrackChangesEditing');_0x100a95['styles']&&(_0x32c5ef['enableDefaultAttributesIntegration']('listStyle'),_0x32c5ef['registerBlockAttribute']('listStyle')),_0x100a95['reversed']&&(_0x32c5ef['enableDefaultAttributesIntegration']('listReversed'),_0x32c5ef['registerBlockAttribute']('listReversed')),_0x100a95['startIndex']&&(_0x32c5ef['enableDefaultAttributesIntegration']('listStart'),_0x32c5ef['registerBlockAttribute']('listStart'));const _0x30bde5={'type':'format','content':''};_0x32c5ef['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x255405=this['editor']['locale'];_0x32c5ef['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x255405,'FORMAT_LIST_REVERSED')),_0x32c5ef['descriptionFactory']['registerDescriptionCallback'](_0x3d8c6e=>{const {data:_0x4cad72}=_0x3d8c6e;if(_0x4cad72&&'listReversed'==_0x4cad72['key'])return null==_0x4cad72['newValue']||0x0==_0x4cad72['newValue']&&null==_0x4cad72['oldValue']?_0x30bde5:void 0x0;}),_0x32c5ef['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x255405,'FORMAT_LIST_START')),_0x32c5ef['descriptionFactory']['registerDescriptionCallback'](_0x291990=>{const {data:_0x4a78af}=_0x291990;if(_0x4a78af&&'listStart'==_0x4a78af['key'])return null==_0x4a78af['newValue']||0x1==_0x4a78af['newValue']&&null==_0x4a78af['oldValue']?_0x30bde5:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x470dbf=>{if(_0x470dbf['batch']['isUndo'])return!0x1;let _0x5a9016=!0x1;const _0x56b647=_0x32c5ef['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a7094=>{const _0x571dad=_0x32c5ef['_getAttributeKey'](_0x3a7094);return'listStart'==_0x571dad||'listReversed'==_0x571dad;});for(const _0x13f3d0 of _0x56b647){const _0x4aabab=_0x13f3d0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4aabab||'customNumbered'==_0x4aabab)continue;_0x32c5ef['_findSuggestions'](_0x13f3d0['getFirstRange'](),'attribute')['find'](_0x285b97=>'listType'==_0x32c5ef['_getAttributeKey'](_0x285b97['suggestion']))||(_0x470dbf['removeMarker'](_0x13f3d0['getFirstMarker']()),_0x5a9016=!0x0);}return _0x5a9016;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2e2362){const _0x5d9600=this['editor']['locale'],{data:_0x1a4961}=_0x2e2362,_0x419aba={'type':'format','content':''};if(!_0x1a4961||'listStyle'!=_0x1a4961['key'])return;if(!_0x1a4961['oldValue'])return'default'==_0x1a4961['newValue']?_0x419aba:{'type':'format','content':''+o(_0x5d9600,'*Set\x20format:*\x20%0',o(_0x5d9600,this['_getTranslationKeyForListStyle'](_0x1a4961['newValue'])))};if(!_0x1a4961['newValue']){if('default'==_0x1a4961['oldValue'])return _0x419aba;let _0x5d8085=_0x2e2362['head'];for(;_0x5d8085;){if(_0x5d8085['data']&&'listType'==_0x5d8085['data']['key']&&_0x5d8085['data']['newValue'])return _0x419aba;_0x5d8085=_0x5d8085['next'];}return{'type':'format','content':''+o(_0x5d9600,'*Remove\x20format:*\x20%0',o(_0x5d9600,this['_getTranslationKeyForListStyle'](_0x1a4961['oldValue'])))};}if('default'!=_0x1a4961['newValue'])return{'type':'format','content':''+o(_0x5d9600,'*Set\x20format:*\x20%0',o(_0x5d9600,this['_getTranslationKeyForListStyle'](_0x1a4961['newValue'])))};let _0x2fd61e=_0x2e2362['head'];for(;_0x2fd61e;){if(_0x2fd61e['data']&&'listType'==_0x2fd61e['data']['key']&&_0x2fd61e['data']['newValue']&&_0x2fd61e['data']['oldValue'])return _0x419aba;_0x2fd61e=_0x2fd61e['next'];}return{'type':'format','content':o(_0x5d9600,'*Set\x20format:*\x20%0',o(_0x5d9600,'ELEMENT_'+_0x2e2362['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x108f95=this['editor'],_0x5e8aef=_0x108f95['locale'];_0x108f95['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x495e08=>{if('formatBlock'!=_0x495e08['type'])return;const {data:_0xdd02eb}=_0x495e08;if(!_0xdd02eb)return;let _0x5c57e7,_0x22d422;switch(_0xdd02eb['commandName']){case'listStyle':_0x5c57e7='*Change\x20to:*\x20%0',_0x22d422={'type':'format','content':o(_0x5e8aef,_0x5c57e7,o(_0x5e8aef,this['_getTranslationKeyForListStyle'](_0xdd02eb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5c57e7=_0xdd02eb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x22d422={'type':'format','content':o(_0x5e8aef,_0x5c57e7)};break;case'listStart':_0x5c57e7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x22d422={'type':'format','content':o(_0x5e8aef,_0x5c57e7,_0xdd02eb['commandParams'][0x0]['startIndex'])};}return _0x22d422;});}['_getTranslationKeyForListStyle'](_0x46f43e){return'ELEMENT_'+function(_0xbd2ce9){if(ye['includes'](_0xbd2ce9))return'bulleted';if(Se['includes'](_0xbd2ce9))return'numbered';return null;}(_0x46f43e)['toUpperCase']()+'_LIST_'+_0x46f43e['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x35dcdc{static get['requires'](){return[_0x4a5e81];}['init'](){const _0xa64495=this['editor'],_0xe90ec9=_0xa64495['plugins']['get']('TrackChangesEditing'),_0x5de142=_0xa64495['commands']['get']('enter');_0xe90ec9['enableCommand']('enter',()=>{_0xa64495['model']['change'](_0xfb6291=>{const _0x35f382=_0xa64495['model']['document']['selection'],_0x32b5d3=_0x35f382['getFirstPosition'](),_0x35498b=_0x343169['fromRange'](_0x35f382['getFirstRange']());if(_0x5de142['enterBlock'](_0xfb6291)){const _0x372923=_0xa64495['model']['createPositionAt'](_0x32b5d3['parent']['nextSibling'],0x0),_0x390b09=_0xfb6291['createRange'](_0x32b5d3,_0x372923);_0xe90ec9['markInsertion'](_0x390b09);}else _0xfb6291['setSelection'](_0xfb6291['createRange'](_0x35498b['end']));_0x35498b['detach'](),_0x5de142['fire']('afterExecute',{'writer':_0xfb6291});});}),_0xa64495['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0xa64495,'split'),{'priority':'high'}),_0xa64495['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2d9717,_0x213a3e,_0x4805d6)=>{const _0x2a58e2=_0x4805d6['mapper']['markerNameToElements'](_0x213a3e['markerName']);if(_0x2a58e2){for(const _0x56cd88 of _0x2a58e2)_0x56cd88['hasClass']('ck-suggestion-marker-split')&&(_0x4805d6['mapper']['unbindElementFromMarkerName'](_0x56cd88,_0x213a3e['markerName']),_0x4805d6['writer']['remove'](_0x56cd88));}},{'priority':'high'}),_0xa64495['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3b7f4b,_0x4eeb02,_0x23b2c6)=>{_0x23b2c6['options']['showSuggestionHighlights']&&_e(_0xa64495,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3b7f4b,_0x4eeb02,_0x23b2c6);},{'priority':'high'});}}class X extends _0x35dcdc{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x14cac4=this['editor']['plugins']['get']('TrackChangesEditing');_0x14cac4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x14cac4['enableCommand']('findNext'),_0x14cac4['enableCommand']('findPrevious'),_0x14cac4['enableCommand']('replace'),_0x14cac4['enableCommand']('replaceAll');}['handleFindCommand'](_0x1350a9,_0x4cc206,_0x535174={}){const _0xd0d7a9=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1350a9(_0x477cb5=>{let _0x1317d1=('string'==typeof _0x4cc206?_0xd0d7a9['findByTextCallback'](_0x4cc206,_0x535174):_0x4cc206)(_0x477cb5);Array['isArray'](_0x1317d1)&&(_0x1317d1={'results':_0x1317d1,'searchText':'string'==typeof _0x4cc206?_0x4cc206:''});const _0x54f481=_0x1317d1['results']['filter'](_0xbdb2de=>!0x1===this['_isInDeletionRange'](_0xbdb2de,_0x477cb5['item']));return{..._0x1317d1,'results':_0x54f481};},_0x535174);}['_isInDeletionRange'](_0x555f78,_0x8966fd){const _0x2ecafd=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x8966fd,_0x555f78['start']),this['editor']['model']['createPositionAt'](_0x8966fd,_0x555f78['end']));for(const _0x28c19f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2ecafd['getIntersection'](_0x28c19f['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x35dcdc{['afterInit'](){const _0x498c4c=this['editor']['locale'],_0x4de712=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1b8172,commandName:_0x32a25e}of ro)this['editor']['plugins']['has'](_0x1b8172)&&(_0x4de712['enableDefaultAttributesIntegration'](_0x32a25e),_0x4de712['registerInlineAttribute'](_0x32a25e));_0x4de712['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x498c4c,'FORMAT_FONT_SIZE')),_0x4de712['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x498c4c,'FORMAT_FONT_FAMILY')),_0x4de712['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x498c4c,'FORMAT_FONT_COLOR')),_0x4de712['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x498c4c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38bd5b=this['editor'],_0x33070e=_0x38bd5b['locale'];_0x38bd5b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17d177=>{const _0x1a2b24=_0x33070e['t'];if('formatInline'!=_0x17d177['type'])return;const {data:_0x250f75}=_0x17d177;if(null!=_0x250f75){if('fontSize'==_0x250f75['commandName']){const _0x54959c=_0x250f75['commandParams'][0x0]['value'];if(_0x54959c){const _0x31517f=_0x1a2b24(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x595c85=>_0x595c85['model']==_0x54959c)['title'])['toLowerCase']();return{'type':'format','content':o(_0x33070e,'*Set\x20font\x20size:*\x20%0',_0x31517f)};}return{'type':'format','content':o(_0x33070e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x250f75['commandName']){const _0xb5250=_0x250f75['commandParams'][0x0]['value'];return _0xb5250?{'type':'format','content':o(_0x33070e,'*Set\x20font\x20family:*\x20%0',_0xb5250)}:{'type':'format','content':o(_0x33070e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x250f75['commandName']){const _0x313679=_0x250f75['commandParams'][0x0]['value'];if(_0x313679){const _0x475c9e=_0x554b01(this['editor']['config']['get']('fontColor.colors'))['find'](_0x44c3d1=>_0x44c3d1['model']==_0x313679);let _0xa62c9f=_0x313679,_0x4decd3='';return _0x475c9e&&(_0xa62c9f=_0x475c9e['label'],_0x4decd3=_0x1a2b24(_0xa62c9f)['toLowerCase']()),{'type':'format','content':o(_0x33070e,'*Set\x20font\x20color:*\x20%0',_0x4decd3)['trim'](),'color':{'value':_0x313679,'title':_0x4decd3||_0xa62c9f}};}return{'type':'format','content':o(_0x33070e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x250f75['commandName']){const _0x5dca0b=_0x250f75['commandParams'][0x0]['value'];if(_0x5dca0b){const _0x564075=_0x554b01(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x41560c=>_0x41560c['model']==_0x5dca0b);let _0x483f91=_0x5dca0b,_0x4de6c1='';return _0x564075&&(_0x483f91=_0x564075['label'],_0x4de6c1=_0x1a2b24(_0x483f91)['toLowerCase']()),{'type':'format','content':o(_0x33070e,'*Set\x20font\x20background\x20color:*\x20%0',_0x4de6c1)['trim'](),'color':{'value':_0x5dca0b,'title':_0x4de6c1||_0x483f91}};}return{'type':'format','content':o(_0x33070e,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x35dcdc{['afterInit'](){const _0x39ea60=this['editor'],_0x4d7bd5=_0x39ea60['plugins']['get']('TrackChangesEditing'),_0x4ff8c0=_0x39ea60['commands']['get']('copyFormat'),_0x4f253b=_0x39ea60['commands']['get']('pasteFormat');_0x4ff8c0&&_0x4f253b&&(_0x4d7bd5['enableDefaultAttributesIntegration']('pasteFormat'),_0x4d7bd5['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1a9dc4=this['editor'],_0x16169c=_0x1a9dc4['locale'];_0x1a9dc4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x167c8e=>{if('formatBlock'!=_0x167c8e['type']&&'formatInline'!=_0x167c8e['type'])return;const {data:_0x5c2ef8}=_0x167c8e;if(_0x5c2ef8&&'pasteFormat'===_0x5c2ef8['commandName']){const _0x4430f5=[],_0x29a016=_0x5c2ef8['commandParams'][0x0];for(const [_0x5d5e1a,_0x52296b]of Object['entries'](_0x29a016))_0x4430f5['push'](so(_0x1a9dc4,_0x5d5e1a,_0x52296b));return _0x4430f5['length']?{'type':'format','content':o(_0x16169c,'*Set\x20format\x20to:*\x20%0',_0x4430f5['join'](',\x20'))}:{'type':'format','content':o(_0x16169c,'*Remove\x20all\x20formatting*')};}});}}function so(_0x280120,_0x5d5def,_0x66d3d0){const _0x32bd80=_0x280120['locale']['t'],_0x1f5cd2=_0x5d5def['split'](/(?=[A-Z])/)['join']('\x20'),_0x348385=_0x32bd80(_0x1f5cd2['charAt'](0x0)['toUpperCase']()+_0x1f5cd2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x66d3d0)return _0x348385;if('fontColor'===_0x5d5def||'fontBackgroundColor'===_0x5d5def){const _0x470560=_0x554b01(_0x280120['config']['get']('fontColor.colors'))['find'](_0x5b34e9=>_0x5b34e9['model']==_0x66d3d0);return _0x348385+'\x20('+(_0x470560?_0x32bd80(_0x470560['label'])['toLowerCase']():_0x66d3d0)+')';}if('fontSize'===_0x5d5def&&isNaN(parseFloat(_0x66d3d0))){const _0x52bf5a=_0x280120['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x280120['config']['get']('fontSize.options'))['find'](_0x494b2a=>_0x494b2a['model']==_0x66d3d0);return _0x348385+'\x20('+(_0x52bf5a?_0x32bd80(_0x52bf5a['title'])['toLowerCase']():_0x66d3d0)+')';}return _0x348385+'\x20('+_0x66d3d0+')';}class tt extends _0x35dcdc{['_headingOptions'];['afterInit'](){const _0x5749b4=this['editor'];if(!_0x5749b4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5749b4['config']['get']('heading.options');const _0x38dd4e=_0x5749b4['locale'],_0x3b15fc=_0x5749b4['plugins']['get']('TrackChangesEditing');_0x3b15fc['enableDefaultAttributesIntegration']('heading');for(const _0xe40901 of this['_headingOptions'])'paragraph'!=_0xe40901['model']&&_0x3b15fc['descriptionFactory']['registerElementLabel'](_0xe40901['model'],_0x3806f2=>{const _0xaad79f=this['_getHeadingLevel'](_0xe40901['model']);return null!==_0xaad79f?_0xf6448c(_0x3806f2,_0xaad79f):_0x6697fd(_0x3806f2,_0xe40901['title']);});function _0xf6448c(_0x5730ef,_0x1c8426){return o(_0x38dd4e,'ELEMENT_HEADING',[_0x5730ef,_0x1c8426]);}function _0x6697fd(_0x22e941,_0x269801){return o(_0x38dd4e,'ELEMENT_HEADING_CUSTOM',[_0x22e941,_0x269801]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bc4e1=this['editor'],_0x5cfc8d=_0x2bc4e1['locale'];function _0x4fdafa(_0x1366b7,_0xed3e3){return o(_0x5cfc8d,'ELEMENT_HEADING_CUSTOM',[_0x1366b7,_0xed3e3]);}_0x2bc4e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16d674=>{if('formatBlock'!=_0x16d674['type'])return;const {data:_0x9eafe4}=_0x16d674;if(_0x9eafe4&&'heading'==_0x9eafe4['commandName']){const _0x59c299=_0x9eafe4['commandParams'][0x0]['value'],_0x451a48=this['_getHeadingLevel'](_0x59c299);if(null!==_0x451a48)return{'type':'format','content':o(_0x5cfc8d,'*Change\x20to:*\x20%0',(_0x318542=0x1,_0x364cfb=_0x451a48,o(_0x5cfc8d,'ELEMENT_HEADING',[_0x318542,_0x364cfb])))};const _0x21d7ab=this['_headingOptions']['find'](_0x2069db=>_0x2069db['model']===_0x59c299)['title'];return{'type':'format','content':o(_0x5cfc8d,'*Change\x20to:*\x20%0',_0x4fdafa(0x1,_0x21d7ab))};}var _0x318542,_0x364cfb;});}['_getHeadingLevel'](_0x5890cb){const _0x28dad7=_0x5890cb['match'](/^heading(\d+)/);if(_0x28dad7)return _0x28dad7[0x1];const _0x17aef5=this['_headingOptions']?.['find'](_0x1d7a06=>_0x1d7a06['model']==_0x5890cb);if(_0x17aef5&&_0x17aef5['view']){const _0x2a0a08=_0x17aef5['view'],_0x44470b=(_0x2a0a08['name']??_0x2a0a08)['match'](/^h(\d+)/);if(_0x44470b)return _0x44470b[0x1];}return null;}}class et extends _0x35dcdc{['afterInit'](){const _0x386391=this['editor'];if(!_0x386391['plugins']['has']('HighlightEditing'))return;const _0x266f82=_0x386391['plugins']['get']('TrackChangesEditing'),_0x5b9d22=_0x386391['locale'];_0x266f82['enableDefaultAttributesIntegration']('highlight'),_0x266f82['registerInlineAttribute']('highlight'),_0x266f82['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5b9d22,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b1109=this['editor'],_0x320959=_0x4b1109['locale'];_0x4b1109['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3db892=>{if('formatInline'!=_0x3db892['type'])return;const {data:_0x8286f8}=_0x3db892;if(_0x8286f8&&'highlight'==_0x8286f8['commandName']){const _0x5ceb00=_0x320959['t'],_0x11ab25=_0x8286f8['commandParams'][0x0]['value'];if(_0x11ab25){const _0xcae111=_0x4b1109['config']['get']('highlight.options')['find'](_0x1ea8e7=>_0x1ea8e7['model']==_0x11ab25),_0x39e7b1=_0x5ceb00(_0xcae111['title'])['toLowerCase']();return{'type':'format','content':o(_0x320959,'*Set\x20highlight:*\x20%0',_0x39e7b1),'color':{'value':_0xcae111['color'],'title':_0xcae111['title']}};}return{'type':'format','content':o(_0x320959,'*Remove\x20highlight*',o(_0x320959,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x35dcdc{['afterInit'](){const _0x51e760=this['editor'];if(!_0x51e760['plugins']['has']('HorizontalLineEditing'))return;_0x51e760['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3375e2=_0x51e760['plugins']['get']('TrackChangesEditing'),_0x540c8e=_0x51e760['locale'];_0x3375e2['descriptionFactory']['registerElementLabel']('horizontalLine',_0x263897=>o(_0x540c8e,'ELEMENT_HORIZONTAL_LINE',_0x263897)),_0x51e760['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x19e3cf,{writer:_0x494fae,options:_0x34b94d})=>{if(!_0x34b94d['showSuggestionHighlights'])return null;const _0x548048=_0x494fae['createContainerElement']('div'),_0x4192f9=_0x494fae['createEmptyElement']('hr');return _0x494fae['addClass']('ck-horizontal-line',_0x548048),_0x494fae['insert'](_0x494fae['createPositionAt'](_0x548048,0x0),_0x4192f9),_0x548048;},'converterPriority':'high'});}}class st extends _0x35dcdc{['afterInit'](){const _0x56abab=this['editor'];if(!_0x56abab['plugins']['has']('HtmlEmbed'))return;const _0x2cea99=_0x56abab['plugins']['get']('TrackChangesEditing'),_0x468688=_0x56abab['locale'];_0x2cea99['descriptionFactory']['registerElementLabel']('rawHtml',_0x1207ba=>o(_0x468688,'ELEMENT_HTML_EMBED',_0x1207ba)),_0x2cea99['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2cea99['registerBlockAttribute']('value'),_0x2cea99['descriptionFactory']['registerDescriptionCallback'](_0x3f5e04=>{if('attribute'!=_0x3f5e04['type'])return;const {data:_0x123835}=_0x3f5e04;if(_0x123835&&'value'==_0x123835['key']&&_0x3f5e04['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4f0101=o(_0x468688,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x468688,'*Change\x20%0\x20content*',_0x4f0101)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d9cc0=this['editor'],_0x40228f=_0x1d9cc0['locale'];_0x1d9cc0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57810a=>{if('formatBlock'!=_0x57810a['type'])return;const {data:_0x35b6c8}=_0x57810a;if(_0x35b6c8&&'htmlEmbed'==_0x35b6c8['commandName']){const _0x1e36ea=o(_0x40228f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x40228f,'*Change\x20%0\x20content*',_0x1e36ea)};}});}}class nt extends _0x35dcdc{['afterInit'](){const _0x2615c4=this['editor'];if(!_0x2615c4['plugins']['has']('ImageEditing'))return;const _0x32f684=_0x2615c4['plugins']['get']('TrackChangesEditing'),_0x1f1ec2=_0x2615c4['plugins']['get']('ImageUtils'),_0x4c6732=_0x2615c4['locale'];_0x32f684['enableCommand']('insertImage'),_0x32f684['descriptionFactory']['registerElementLabel']('imageBlock',_0x580e82=>o(_0x4c6732,'ELEMENT_IMAGE',_0x580e82)),_0x32f684['descriptionFactory']['registerElementLabel']('imageInline',_0x5d03f7=>o(_0x4c6732,'ELEMENT_INLINE_IMAGE',_0x5d03f7)),_0x32f684['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4c6732,'ELEMENT_CAPTION')),_0x2615c4['plugins']['has']('ImageUploadEditing')&&_0x32f684['enableCommand']('uploadImage'),_0x2615c4['plugins']['has']('ImageBlockEditing')&&_0x2615c4['plugins']['has']('ImageInlineEditing')&&(_0x32f684['enableCommand']('imageTypeInline',(_0x253ac0,_0x6f2fc9)=>{const _0x400cfd=_0x1f1ec2['getClosestSelectedImageElement'](_0x2615c4['model']['document']['selection']);_0x2615c4['model']['change'](()=>{_0x32f684['markBlockFormat'](_0x400cfd,{'commandName':'imageTypeInline','commandParams':[_0x6f2fc9]},[],'convertBlockImageToInline');});}),_0x32f684['enableCommand']('imageTypeBlock',(_0xe5792a,_0x1fc435)=>{_0x2615c4['model']['change'](_0x56ed60=>{let _0x2d7745=_0x1f1ec2['getClosestSelectedImageElement'](_0x2615c4['model']['document']['selection']),_0x1643da=_0x56ed60['createRangeOn'](_0x2d7745);const _0x556374=_0x3db03b['fromPosition'](_0x1643da['start'],'toPrevious'),_0x45c697=_0x3db03b['fromPosition'](_0x1643da['end'],'toNext');_0x32f684['forceDefaultExecution'](()=>_0xe5792a(_0x1fc435)),_0x2d7745=_0x1f1ec2['getClosestSelectedImageElement'](_0x2615c4['model']['document']['selection']),_0x1643da=_0x56ed60['createRangeOn'](_0x2d7745);const _0x188aed=_0x56ed60['createRange'](_0x556374,_0x45c697);_0x556374['detach'](),_0x45c697['detach'](),_0x32f684['markBlockFormat'](_0x2d7745,{'commandName':'imageTypeInline','commandParams':[_0x1fc435]},[],'convertInlineImageToBlock'),_0x188aed['start']['isBefore'](_0x1643da['start'])&&_0x32f684['markInsertion'](_0x56ed60['createRange'](_0x188aed['start'],_0x1643da['start']),'convertInlineImageToBlock'),_0x1643da['end']['isBefore'](_0x188aed['end'])&&_0x32f684['markInsertion'](_0x56ed60['createRange'](_0x1643da['end'],_0x188aed['end']),'convertInlineImageToBlock');});}),_0x32f684['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x32f684['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x32f684['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x32f684['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x32f684['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x32f684['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x510095])=>{const _0x2d2fa8=_0x32f684['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4d6002=_0x510095['start'],_0x1fb9a1=_0x510095['end'];const _0x3eb565=_0x2615c4['model']['schema']['getNearestSelectionRange'](_0x4d6002,'backward'),_0x8b0a32=_0x2615c4['model']['schema']['getNearestSelectionRange'](_0x1fb9a1,'forward');_0x3eb565['isCollapsed']&&(_0x4d6002=_0x3eb565['start']),_0x8b0a32['isCollapsed']&&(_0x1fb9a1=_0x8b0a32['end']),_0x2d2fa8([_0x2615c4['model']['createRange'](_0x4d6002,_0x1fb9a1)]);}),_0x32f684['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x482bf0),_0x32f684['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x482bf0)),_0x2615c4['plugins']['has']('ImageCaptionEditing')&&(_0x32f684['enableCommand']('toggleImageCaption',(_0x5bf6f9,_0x2aeaa4)=>{const _0x2ae290=_0x2615c4['plugins']['get']('ImageCaptionUtils');let _0x38e50e=_0x1f1ec2['getClosestSelectedImageElement'](_0x2615c4['model']['document']['selection']),_0x29d15a=_0x2ae290['getCaptionFromImageModelElement'](_0x38e50e);_0x2615c4['model']['change'](()=>{if(_0x29d15a)return void _0x32f684['markDeletion'](_0x2615c4['model']['createRangeOn'](_0x29d15a));const _0xa09b74=_0x1f1ec2['isBlockImage'](_0x38e50e);_0x5bf6f9(_0x2aeaa4),_0x38e50e=_0x1f1ec2['getClosestSelectedImageElement'](_0x2615c4['model']['document']['selection']),_0x29d15a=_0x2ae290['getCaptionFromImageModelElement'](_0x38e50e),_0x32f684['markInsertion'](_0x2615c4['model']['createRangeOn'](_0x29d15a),_0xa09b74?null:'imageCaption');});}),_0x32f684['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x482bf0));const _0x1089fd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x561e5b(_0x4b775f,_0x297fb5){const _0xfa044=_0x1089fd['findIndex'](({type:_0x541987,subType:_0x23f1a2})=>_0x4b775f['type']==_0x541987&&_0x4b775f['subType']==_0x23f1a2),_0x88acec=_0x1089fd['findIndex'](({type:_0xab6331,subType:_0xe53ea0})=>_0x297fb5['type']==_0xab6331&&_0x297fb5['subType']==_0xe53ea0);if(_0xfa044<0x0||_0x88acec<0x0)return!0x1;const _0x527b6c=_0x4b775f['getFirstRange'](),_0x3f6542=_0x297fb5['getFirstRange']();if((0x0==_0xfa044||0x1==_0xfa044)&&0x2==_0x88acec&&_0x527b6c['isIntersecting'](_0x3f6542))return!0x0;if(0x2==_0xfa044&&0x3==_0x88acec){const _0x4cc6e5=_0x32f684['_findSuggestions'](_0x527b6c,'insertion')['filter'](({suggestion:_0xd65ebc,meta:_0x930948})=>_0x930948['isOwn']&&'convertInlineImageToBlock'==_0xd65ebc['subType']);if(_0x4cc6e5['length']>0x1&&_0x3f6542['end']['isEqual'](_0x527b6c['start']))return!0x0;if(0x1==_0x4cc6e5['length']&&(_0x527b6c['start']['isEqual'](_0x3f6542['end'])||_0x527b6c['end']['isEqual'](_0x3f6542['start'])))return!0x0;}if(0x3==_0xfa044&&0x3==_0x88acec&&_0x527b6c['start']['isBefore'](_0x3f6542['start'])){const _0xcd75fd=_0x527b6c['end']['nodeAfter'],_0x55bf23=_0x3f6542['start']['nodeBefore'];return _0x1f1ec2['isBlockImage'](_0xcd75fd)&&_0xcd75fd===_0x55bf23;}return!0x1;}function _0x482bf0(_0x3a4876,_0x18af8b){return _0x561e5b(_0x3a4876,_0x18af8b)?[_0x3a4876,_0x18af8b]:_0x561e5b(_0x18af8b,_0x3a4876)?[_0x18af8b,_0x3a4876]:null;}_0x2615c4['plugins']['has']('ImageResize')&&(_0x32f684['enableDefaultAttributesIntegration']('resizeImage'),_0x32f684['registerBlockAttribute']('resizedWidth'),_0x32f684['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4c6732,'FORMAT_IMAGE_SIZE'))),_0x2615c4['plugins']['has']('ImageTextAlternativeEditing')&&(_0x32f684['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x32f684['registerBlockAttribute']('alt')),_0x32f684['descriptionFactory']['registerDescriptionCallback'](_0x311bf2=>{if(!!_0x1089fd['find'](({type:_0x3ff56b,subType:_0x2f33c1})=>_0x311bf2['type']==_0x3ff56b&&_0x311bf2['subType']==_0x2f33c1))return _0x311bf2['previous']?{}:void 0x0;}),_0x32f684['descriptionFactory']['registerDescriptionCallback'](_0x5dff46=>{if('insertion'==_0x5dff46['type']||'deletion'==_0x5dff46['type']){const _0x2beca5=_0x5dff46['getContainedElement']();if(_0x2beca5&&_0x2beca5['is']('element','caption'))return{'type':'insertion'==_0x5dff46['type']?'addObject':'removeObject','element':_0x2beca5,'quantity':0x1};}}),_0x32f684['descriptionFactory']['registerDescriptionCallback'](_0x36ad5d=>'formatBlock'==_0x36ad5d['type']&&'convertInlineImageToBlock'==_0x36ad5d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x36ad5d['type']&&'convertBlockImageToInline'==_0x36ad5d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x32f684['descriptionFactory']['registerDescriptionCallback'](_0x194807=>{if('attribute'!=_0x194807['type'])return;const {data:_0x3a4f8f}=_0x194807;if(!_0x3a4f8f||'alt'!=_0x3a4f8f['key'])return;const _0x20866f=_0x3a4f8f['newValue'];return _0x20866f?{'type':'format','content':o(_0x4c6732,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x20866f+'\x22')}:{'type':'format','content':o(_0x4c6732,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e8058=this['editor'],_0x263616=_0x1e8058['locale'];_0x1e8058['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28874f=>{if('formatBlock'!=_0x28874f['type']&&'formatInline'!=_0x28874f['type'])return;const {data:_0x409049}=_0x28874f;if(_0x409049){if('imageTextAlternative'==_0x409049['commandName']){const _0x430a4f=_0x409049['commandParams'][0x0]['newValue'];return _0x430a4f?{'type':'format','content':o(_0x263616,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x430a4f+'\x22')}:{'type':'format','content':o(_0x263616,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x409049['commandName']){const _0x34325b=_0x409049['commandParams'][0x0]['width'];return _0x34325b?{'type':'format','content':o(_0x263616,'*Set\x20image\x20width:*\x20%0',_0x34325b)}:{'type':'format','content':o(_0x263616,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x35dcdc{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2aa05a=this['editor']['locale'],_0x49c778=this['editor']['plugins']['get']('TrackChangesEditing');_0x49c778['enableDefaultAttributesIntegration']('replaceImageSource'),_0x49c778['registerBlockAttribute']('src'),_0x49c778['descriptionFactory']['registerDescriptionCallback'](_0x39d151=>{if('attribute'!=_0x39d151['type'])return;const {data:_0x5653fe}=_0x39d151;return _0x5653fe&&'src'==_0x5653fe['key']?_0x5653fe['newValue']&&_0x5653fe['oldValue']?{'type':'format','content':o(_0x2aa05a,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x10e727=this['editor']['plugins']['get']('TrackChangesEditing');_0x10e727['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x10e727['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x10e727['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x10e727['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x589cad=this['editor'],_0x19ee1a=_0x589cad['locale'];_0x589cad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ab082=>{if('formatBlock'!=_0x2ab082['type']&&'formatInline'!=_0x2ab082['type'])return;const {data:_0x3c72de}=_0x2ab082;if(!_0x3c72de||'replaceImageSource'!=_0x3c72de['commandName'])return;return{'type':'format','content':o(_0x19ee1a,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x35dcdc{['afterInit'](){const _0x49a1c1=this['editor'];if(!_0x49a1c1['plugins']['has']('ImageStyleEditing'))return;const _0x1b2669=_0x49a1c1['plugins']['get']('TrackChangesEditing'),_0x14f25b=_0x49a1c1['plugins']['get']('ImageUtils'),_0x6a5d8={};_0x1b2669['enableCommand']('imageStyle',(_0x56a0d6,_0x7d3b34)=>{const _0x1e63e1=_0x49a1c1['plugins']['get']('Users')['me'],_0x56cc7f=_0x49a1c1['commands']['get']('imageStyle');let _0x1f81bb=_0x14f25b['getClosestSelectedImageElement'](_0x49a1c1['model']['document']['selection']),_0x5a1f1c=_0x49a1c1['model']['createRangeOn'](_0x1f81bb),_0x56d356=_0x56cc7f['value'];if(_0x56d356==_0x7d3b34['value'])return;const _0x510571={'commandName':'imageStyle','commandParams':[_0x7d3b34],'formatGroupId':_0x4bdc2b()};_0x49a1c1['model']['change'](()=>{if(_0x1b2669['getSuggestions']()['filter'](_0x315fe0=>_0x315fe0['isInContent']&&_0x1e63e1==_0x315fe0['author']&&('formatBlock'==_0x315fe0['type']||'formatInline'==_0x315fe0['type'])&&('imageStylePreApply'==_0x315fe0['subType']||'imageStylePostApply'==_0x315fe0['subType'])&&_0x315fe0['getFirstRange']()['isEqual'](_0x5a1f1c))['forEach'](_0x40411f=>_0x1b2669['discardSuggestion'](_0x40411f['head'])),_0x1f81bb=_0x14f25b['getClosestSelectedImageElement'](_0x49a1c1['model']['document']['selection']),_0x5a1f1c=_0x49a1c1['model']['createRangeOn'](_0x1f81bb),_0x56cc7f['refresh'](),_0x49a1c1['commands']['get']('imageTypeInline')['refresh'](),_0x49a1c1['commands']['get']('imageTypeBlock')['refresh'](),_0x56d356=_0x56cc7f['value'],_0x56d356!=_0x7d3b34['value'])return _0x14f25b['isInlineImage'](_0x1f81bb)&&_0x56cc7f['shouldConvertImageType'](_0x7d3b34['value'],_0x1f81bb)?(_0x56a0d6({..._0x7d3b34,'setImageSizes':!0x1}),_0x1f81bb=_0x14f25b['getClosestSelectedImageElement'](_0x49a1c1['model']['document']['selection']),void _0x1b2669['markBlockFormat'](_0x1f81bb,{..._0x510571,'commandReversedParams':[{'value':_0x56d356||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x14f25b['isBlockImage'](_0x1f81bb)?_0x1b2669['markBlockFormat'](_0x1f81bb,_0x510571,[],'imageStylePostApply'):_0x1b2669['markInlineFormat'](_0x5a1f1c,_0x510571,'imageStylePostApply'));});});for(const _0x17e766 of _0x49a1c1['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x6a5d8[_0x17e766['name']]=_0x17e766['title']['toLowerCase']();_0x1b2669['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1b2669['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1b2669['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1b2669['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2e5887])=>{_0x14f25b['setImageNaturalSizeAttributes'](_0x2e5887['getContainedElement']());}),_0x1b2669['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2d82b1,_0x240f58)=>{_0x1b2669['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2d82b1,{'commandName':_0x240f58['commandName'],'commandParams':_0x240f58['commandReversedParams']});}),_0x1b2669['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5d6f3,_0x4f6b58){if(_0x5bf02b(_0x5d6f3,_0x4f6b58))return[_0x5d6f3,_0x4f6b58];if(_0x5bf02b(_0x4f6b58,_0x5d6f3))return[_0x4f6b58,_0x5d6f3];return null;});const _0x5d2161=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5bf02b(_0x22181f,_0x35f31e){const _0x3a68b6=_0x5d2161['findIndex'](({type:_0x40491d,subType:_0x2595a7})=>_0x22181f['type']==_0x40491d&&_0x22181f['subType']==_0x2595a7),_0xb5779d=_0x5d2161['findIndex'](({type:_0x2ab361,subType:_0x4eb2e1})=>_0x35f31e['type']==_0x2ab361&&_0x35f31e['subType']==_0x4eb2e1);if(_0x3a68b6<0x0||_0xb5779d<0x0)return!0x1;const _0x183004=_0x22181f['getFirstRange'](),_0x1248e7=_0x35f31e['getFirstRange']();if((0x0==_0x3a68b6||0x1==_0x3a68b6)&&0x2==_0xb5779d&&_0x183004['isIntersecting'](_0x1248e7))return!0x0;if(0x2==_0x3a68b6&&0x3==_0xb5779d){const _0xb915ae=_0x1b2669['_findSuggestions'](_0x183004,'insertion')['filter'](({suggestion:_0x197f8a,meta:_0x3143dd})=>_0x3143dd['isOwn']&&'convertInlineImageToBlock'==_0x197f8a['subType']);if(_0xb915ae['length']>0x1&&_0x1248e7['end']['isEqual'](_0x183004['start']))return!0x0;if(0x1==_0xb915ae['length']&&(_0x183004['start']['isEqual'](_0x1248e7['end'])||_0x183004['end']['isEqual'](_0x1248e7['start'])))return!0x0;}if(0x3==_0x3a68b6&&0x3==_0xb5779d&&_0x183004['start']['isBefore'](_0x1248e7['start'])){const _0x1a3ac8=_0x183004['end']['nodeAfter'],_0x37f366=_0x1248e7['start']['nodeBefore'];return _0x14f25b['isBlockImage'](_0x1a3ac8)&&_0x1a3ac8===_0x37f366;}return!0x1;}_0x49a1c1['model']['document']['registerPostFixer'](()=>{let _0x2319ed=!0x1;const _0xa7e386=Array['from'](_0x49a1c1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5ec246,data:_0x491de4}of _0xa7e386){const {group:_0x292289,type:_0x66b3d0,subType:_0x50d8a3,id:_0x102000}=_0x1b2669['_splitMarkerName'](_0x5ec246);if('suggestion'==_0x292289&&_0x1b2669['hasSuggestion'](_0x102000)){if('formatBlock'==_0x66b3d0&&('imageStylePreApply'==_0x50d8a3||'imageStylePostApply'==_0x50d8a3)){const _0x2a6e4f=_0x1b2669['getSuggestion'](_0x102000);if(_0x491de4['newRange']){const _0xd8d2ec=_0x2a6e4f['getFirstRange']()['getContainedElement']();if(_0x14f25b['isBlockImage'](_0xd8d2ec))continue;_0x1b2669['discardSuggestion'](_0x2a6e4f),_0x2319ed=!0x0;}}if('insertion'==_0x66b3d0&&'imageCaption'==_0x50d8a3&&!_0x491de4['newRange']){const _0x5c81bc=_0x1b2669['getSuggestion'](_0x102000);_0x5c81bc['next']&&_0x5c81bc['next']['isInContent']&&(_0x1b2669['discardSuggestion'](_0x5c81bc['next']),_0x2319ed=!0x0);}}}return _0x2319ed;}),this['_registerLegacyDescription'](_0x6a5d8);}['_registerLegacyDescription'](_0x3f3d54){const _0x3fe6ea=this['editor'],_0x1cabe1=_0x3fe6ea['locale'];_0x3fe6ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34a5a9=>{if('formatBlock'!=_0x34a5a9['type']&&'formatInline'!=_0x34a5a9['type'])return;const {data:_0x3d1adb}=_0x34a5a9;if(!_0x3d1adb||'imageStyle'!=_0x3d1adb['commandName'])return;const _0x344687=_0x3d1adb['commandParams'][0x0]['value'];return _0x810e23('side'===_0x344687?o(_0x1cabe1,'FORMAT_SIDE_IMAGE'):_0x3f3d54[_0x344687]||_0x344687);function _0x810e23(_0x4a7632){return{'type':'format','content':o(_0x1cabe1,'*Format:*\x20%0',_0x4a7632)};}});}}class at extends _0x35dcdc{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4be390){super(_0x4be390),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x30c157=this['editor'],_0x2e8b42=_0x30c157['commands']['get']('importWord'),_0xd4d1=_0x30c157['commands']['get']('trackChanges');_0x2e8b42&&(_0x2e8b42['on']('execute',(_0x5919c7,[,_0x398671])=>{this['_trackChangesValueDuringImport']=_0xd4d1['value'],_0x398671['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2e8b42,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2e8b42,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xd4d1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x30c157['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x25bd01,_0x51fca8){const {suggestions:_0x3d1ed4}=_0x51fca8,_0x4f16cc=this['editor']['commands']['get']('trackChanges'),_0x4357aa=_0x4f16cc['value'];this['_trackChangesValueDuringImport']!==_0x4357aa&&(_0x4f16cc['execute'](),this['_trackChangesExecuted']=!0x0),_0x3d1ed4&&_0x3d1ed4['forEach'](({id:_0x1a4f67,type:_0x58c398,author:_0x2f5824,created_at:_0x2fcc53})=>{const _0x1ae018={'id':_0x1a4f67,'type':_0x58c398,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2f5824,'createdAt':_0x2fcc53?new Date(_0x2fcc53):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1ae018);});}}class ct extends _0x35dcdc{['afterInit'](){const _0x1bf9f1=this['editor'],_0x488515=_0x1bf9f1['plugins']['get']('TrackChangesEditing');if(_0x1bf9f1['plugins']['has']('IndentEditing')&&(_0x488515['enableCommand']('indent'),_0x488515['enableCommand']('outdent')),_0x1bf9f1['plugins']['has']('IndentBlock')){for(const _0x4bd4df of['indentBlock','outdentBlock'])_0x488515['enableDefaultAttributesIntegration'](_0x4bd4df);}const _0x46c61a=_0x1bf9f1['locale'];_0x488515['registerBlockAttribute']('blockIndent'),_0x488515['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x46c61a,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56dcc5=this['editor'],_0x3b3c3b=_0x56dcc5['locale'],_0x4a70b8=_0x56dcc5['plugins']['get']('TrackChangesEditing');_0x4a70b8['descriptionFactory']['registerDescriptionCallback'](_0x3b69cb=>{if('formatBlock'!=_0x3b69cb['type'])return;const {data:_0xd6ed97}=_0x3b69cb;if(!_0xd6ed97)return;if('indentBlock'!=_0xd6ed97['commandName']&&'outdentBlock'!=_0xd6ed97['commandName'])return;const _0x1fd9b0=_0x3b69cb['getItems']()[0x0],_0xfe99f4=_0x4a70b8['descriptionFactory']['getItemLabel'](_0x1fd9b0);return'indentBlock'==_0xd6ed97['commandName']?{'type':'format','content':o(_0x3b3c3b,'*Indent:*\x20%0',_0xfe99f4)}:'outdentBlock'==_0xd6ed97['commandName']?{'type':'format','content':o(_0x3b3c3b,'*Outdent:*\x20%0',_0xfe99f4)}:void 0x0;});}}class ut extends _0x35dcdc{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x35dcdc{['afterInit'](){const _0x2f2d66=this['editor'];if(!_0x2f2d66['plugins']['has']('LinkEditing'))return;const _0x9f3b29=_0x2f2d66['plugins']['get']('TrackChangesEditing'),_0x164538=_0x2f2d66['commands']['get']('link');_0x9f3b29['enableDefaultAttributesIntegration']('link'),_0x9f3b29['enableDefaultAttributesIntegration']('unlink'),_0x9f3b29['registerInlineAttribute']('linkHref');for(const _0xf413f3 of _0x164538['manualDecorators'])_0x9f3b29['registerInlineAttribute'](_0xf413f3['id']),_0x9f3b29['descriptionFactory']['registerAttributeLabel'](_0xf413f3['id'],'link\x20('+_0xf413f3['label']['toLowerCase']()+')');_0x9f3b29['descriptionFactory']['registerDescriptionCallback'](_0x4699e7=>{if('attribute'!=_0x4699e7['type'])return;const {data:_0x24420a}=_0x4699e7;if(!_0x24420a||'linkHref'!=_0x24420a['key'])return;const _0x5de042=_0x24420a['newValue'],_0x2ed1e6=_0x2f2d66['locale'];return{'type':'format','content':null==_0x5de042?o(_0x2ed1e6,'*Remove\x20link*'):o(_0x2ed1e6,'*Set\x20link:*\x20%0','\x22'+_0x5de042+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58f048=this['editor'],_0x4b8cc7=_0x58f048['locale'];_0x58f048['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c9081=>{if('formatInline'!=_0x1c9081['type'])return;const {data:_0x6f67ad}=_0x1c9081;if(_0x6f67ad){if('link'==_0x6f67ad['commandName']){const _0x1b54e8=_0x6f67ad['commandParams'][0x0];return{'type':'format','content':o(_0x4b8cc7,'*Set\x20link:*\x20%0','\x22'+_0x1b54e8+'\x22')};}return'unlink'==_0x6f67ad['commandName']?{'type':'format','content':o(_0x4b8cc7,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x35dcdc{['afterInit'](){const _0x5cbc20=this['editor'],_0x1c7bab=_0x5cbc20['locale'];if(!_0x5cbc20['plugins']['has']('LegacyListEditing'))return;const _0xe46d70=_0x5cbc20['plugins']['get']('TrackChangesEditing'),_0x36f674=_0x5cbc20['plugins']['has']('LegacyTodoListEditing');function _0x24145c(_0x371980){return()=>{const _0x62c180=_0x5cbc20['model']['document']['selection'],_0x4a6ecc=_0x5cbc20['commands']['get'](_0x371980);if(_0x4a6ecc['value'])return void _0x5cbc20['execute']('paragraph',{});const _0xd44e4d=_0x371980['slice'](0x0,-0x4),_0x54dd1e=function(_0xc46f60,_0x153790,_0x6fbe5f){let _0x2cf4e3=Array['from'](_0xc46f60)['filter'](_0x35d9ea=>function(_0x2e29f7,_0x3c8a70){return _0x3c8a70['checkChild'](_0x2e29f7['parent'],'listItem')&&!_0x3c8a70['isObject'](_0x2e29f7);}(_0x35d9ea,_0x6fbe5f));_0x2cf4e3=_0x2cf4e3['filter'](_0x6b7618=>!_0x6b7618['is']('element','listItem')||_0x6b7618['getAttribute']('listType')!=_0x153790);const _0x48cbbf=new Set();for(const _0x35156e of _0x2cf4e3)_0x35156e['is']('element','listItem')?_0x48cbbf['add'](fe(_0x35156e)):_0x48cbbf['add'](_0x35156e);return Array['from'](_0x48cbbf);}(_0x62c180['getSelectedBlocks'](),_0xd44e4d,_0x5cbc20['model']['schema']);_0x5cbc20['model']['change'](()=>{for(const _0x1e0981 of _0x54dd1e)_0xe46d70['markBlockFormat'](_0x1e0981,{'commandName':_0x371980,'commandParams':[{'forceValue':!_0x4a6ecc['value']}],'formatGroupId':'blockName'},ue(_0x1e0981));});};}function _0x2830ba(_0x2f0ce0){return()=>{const _0x4ff904=function(_0x368084){let _0x33438e=Array['from'](_0x368084);const _0x2063e6=_0x33438e['findIndex'](_0x30c2ed=>'listItem'!=_0x30c2ed['name']);return _0x2063e6>-0x1&&(_0x33438e=_0x33438e['slice'](0x0,_0x2063e6)),_0x33438e;}(_0x5cbc20['model']['document']['selection']['getSelectedBlocks']()),_0x2076f3=_0x5cbc20['model']['createRange'](_0x5cbc20['model']['createPositionAt'](_0x4ff904[0x0],'before'),_0x5cbc20['model']['createPositionAt'](_0x4ff904[_0x4ff904['length']-0x1],'end'));_0x5cbc20['model']['change'](()=>{_0xe46d70['markBlockFormat'](_0x2076f3,{'commandName':_0x2f0ce0,'commandParams':[],'formatGroupId':'listIndent'},function(_0x33d0a9){const _0x59443a=new Set();for(const _0xf5c6cc of _0x33d0a9){let _0x2e452e=_0xf5c6cc['nextSibling'];for(;_0x2e452e&&_0x2e452e['getAttribute']('listIndent')>_0xf5c6cc['getAttribute']('listIndent');)_0x59443a['add'](_0x2e452e),_0x2e452e=_0x2e452e['nextSibling'];}return Array['from'](_0x59443a);}(_0x4ff904));});};}_0xe46d70['enableCommand']('numberedList',_0x24145c('numberedList')),_0xe46d70['enableCommand']('bulletedList',_0x24145c('bulletedList')),_0x36f674&&_0xe46d70['enableCommand']('todoList',_0x24145c('todoList')),_0xe46d70['enableCommand']('indentList',_0x2830ba('indentList')),_0xe46d70['enableCommand']('outdentList',_0x2830ba('outdentList')),_0x36f674&&_0xe46d70['enableCommand']('checkTodoList',()=>{const _0x354eeb=_0x5cbc20['commands']['get']('checkTodoList'),_0x29ed4d=Array['from'](_0x354eeb['_selectedElements']);_0x29ed4d['filter'](_0x5cca65=>_0x5cca65['getAttribute']('todoListChecked')!=_0x354eeb['value']),_0x5cbc20['model']['change'](()=>{for(const _0x407d57 of _0x29ed4d)_0xe46d70['markBlockFormat'](_0x407d57,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x354eeb['value']}]});});}),_0xe46d70['descriptionFactory']['registerElementLabel']('listItem',_0x2f8a80=>o(_0x1c7bab,'ELEMENT_LIST_ITEM',_0x2f8a80)),_0xe46d70['descriptionFactory']['registerDescriptionCallback'](_0x6303ef=>{if('formatBlock'!=_0x6303ef['type']&&'formatInline'!=_0x6303ef['type'])return;const {data:_0xee6f80}=_0x6303ef;if(_0xee6f80){if('numberedList'==_0xee6f80['commandName']||'bulletedList'==_0xee6f80['commandName']||'todoList'==_0xee6f80['commandName'])switch(_0xee6f80['commandName']['replace']('List','')){case'bulleted':return _0x244d7a(o(_0x1c7bab,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x244d7a(o(_0x1c7bab,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x244d7a(o(_0x1c7bab,'ELEMENT_TODO_LIST'));}if('indentList'==_0xee6f80['commandName'])return{'type':'format','content':o(_0x1c7bab,'*Indent:*\x20%0',o(_0x1c7bab,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xee6f80['commandName'])return{'type':'format','content':o(_0x1c7bab,'*Outdent:*\x20%0',o(_0x1c7bab,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xee6f80['commandName'])return _0xee6f80['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c7bab,'*Check\x20item*')}:{'type':'format','content':o(_0x1c7bab,'*Uncheck\x20item*')};}function _0x244d7a(_0x537945){return{'type':'format','content':o(_0x1c7bab,'*Change\x20to:*\x20%0',_0x537945)};}});}}function fe(_0x2c30f4){const _0x27c53e=_0x2c30f4['getAttribute']('listIndent');if(0x0==_0x27c53e)return _0x2c30f4;let _0xda9205=_0x2c30f4;for(;_0x2c30f4['previousSibling']&&_0x2c30f4['previousSibling']['is']('element','listItem');){const _0x4cd138=_0x2c30f4['previousSibling']['getAttribute']('listIndent');if(_0x4cd138==_0x27c53e)_0xda9205=_0x2c30f4['previousSibling'];else{if(_0x4cd138<_0x27c53e)break;}_0x2c30f4=_0x2c30f4['previousSibling'];}return _0xda9205;}function ue(_0x4af6b6){const _0x990f14=[];if(_0x4af6b6['is']('element','listItem')&&_0x4af6b6['getAttribute']('listIndent')>0x0){let _0x5ab72c=_0x4af6b6['nextSibling'];for(;_0x5ab72c&&'listItem'==_0x5ab72c['name']&&_0x5ab72c['getAttribute']('listIndent')==_0x4af6b6['getAttribute']('listIndent');)_0x990f14['push'](_0x5ab72c),_0x5ab72c=_0x5ab72c['nextSibling'];}return _0x990f14;}class W extends _0x35dcdc{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x22cd26=this['editor']['config']['get']('list.properties'),_0x24384f=this['editor']['plugins']['get']('TrackChangesEditing');_0x22cd26['styles']&&_0x24384f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x22cd26['reversed']&&_0x24384f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x22cd26['startIndex']&&_0x24384f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x24384f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4f3497,_0x2a9a4e={}){const _0x495fdc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4dfbde=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x495fdc['markMultiRangeBlockFormat'](_0x4dfbde,{'commandName':'listStyle','commandParams':[{'type':_0x2a9a4e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3e35f1,_0x58019a={}){const _0x5af69f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28c2e9=this['_getSuggestionBlocks'](_0x40de35=>_0x40de35['is']('element','listItem')&&'numbered'===_0x40de35['getAttribute']('listType'));if(_0x28c2e9['length']<0x1)return;const _0x476856=_0x28c2e9['map'](_0x466c14=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x466c14,'before'),this['editor']['model']['createPositionAt'](_0x466c14,0x0)));this['editor']['model']['change'](()=>{_0x5af69f['markMultiRangeBlockFormat'](_0x476856,{'commandName':'listReversed','commandParams':[{'reversed':_0x58019a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x105837,_0x35bb7d={}){const _0x17ff45=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d6267=this['_getSuggestionBlocks'](_0x325c1e=>_0x325c1e['is']('element','listItem')&&'numbered'===_0x325c1e['getAttribute']('listType'));if(_0x3d6267['length']<0x1)return;const _0x70adc6=_0x3d6267['map'](_0x2eee52=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2eee52,'before'),this['editor']['model']['createPositionAt'](_0x2eee52,0x0)));this['editor']['model']['change'](()=>{_0x17ff45['markMultiRangeBlockFormat'](_0x70adc6,{'commandName':'listStart','commandParams':[{'startIndex':_0x35bb7d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x51318a){if('formatBlock'!=_0x51318a['type']&&'formatInline'!=_0x51318a['type'])return;const _0x2b16d6=this['editor']['locale'],{data:_0x5f3784}=_0x51318a;if(!_0x5f3784)return;let _0x2625e1,_0x24a191;switch(_0x5f3784['commandName']){case'listStyle':_0x2625e1='*Change\x20to:*\x20%0',_0x24a191={'type':'format','content':o(_0x2b16d6,_0x2625e1,o(_0x2b16d6,this['_getTranslationKeyForListStyle'](_0x5f3784['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2625e1=_0x5f3784['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x24a191={'type':'format','content':o(_0x2b16d6,_0x2625e1)};break;case'listStart':_0x2625e1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x24a191={'type':'format','content':o(_0x2b16d6,_0x2625e1,_0x5f3784['commandParams'][0x0]['startIndex'])};}return _0x24a191;}['_getSuggestionBlocksForListStyle'](){const _0x4b9640=this['editor']['plugins']['get']('LegacyListUtils');let _0x5ef667=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5ef667[0x0]?.['is']('element','listItem')&&_0x5ef667['unshift'](..._0x4b9640['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5ef667[_0x5ef667['length']-0x1]?.['is']('element','listItem')&&_0x5ef667['push'](..._0x4b9640['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5ef667=[...new Set(_0x5ef667)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5ef667=_0x5ef667['filter'](_0x163d7d=>_0x163d7d['is']('element','listItem'))),_0x5ef667;}['_getSuggestionBlocks'](_0x7af584){const _0x49b263=this['editor']['plugins']['get']('LegacyListUtils');let _0xe5ece4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x7af584)['map'](_0x4ff77f=>{const _0x4ec784=this['editor']['model']['createPositionAt'](_0x4ff77f,0x0);return[..._0x49b263['getSiblingNodes'](_0x4ec784,'backward'),..._0x49b263['getSiblingNodes'](_0x4ec784,'forward')];})['flat']();return _0xe5ece4=[...new Set(_0xe5ece4)],_0xe5ece4;}['_getTranslationKeyForListStyle'](_0x1b6e2f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1b6e2f)||'default')['toUpperCase']()+'_LIST_'+_0x1b6e2f['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x35dcdc{['afterInit'](){const _0x5c034a=this['editor'];if(!_0x5c034a['plugins']['has']('MediaEmbedEditing'))return;const _0xddb65f=_0x5c034a['plugins']['get']('TrackChangesEditing'),_0x528a28=_0x5c034a['locale'];_0xddb65f['enableCommand']('mediaEmbed'),_0xddb65f['descriptionFactory']['registerElementLabel']('media',_0x57ab7a=>o(_0x528a28,'ELEMENT_MEDIA',_0x57ab7a)),_0x5c034a['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x55d0f0,{writer:_0x3dd7a3,options:_0x466f42})=>{if(_0x466f42['showSuggestionHighlights'])return _0x3dd7a3['createEmptyElement']('div');},'converterPriority':'high'}),_0x5c034a['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2efd45,_0x3ed4e2,_0x5abffc)=>{_0x5abffc['options']['showSuggestionHighlights']&&_0x2efd45['stop']();},{'priority':'high'});}}class mt extends _0x35dcdc{['afterInit'](){const _0x23200e=this['editor'];_0x23200e['plugins']['has']('MentionEditing')&&_0x23200e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x35dcdc{['afterInit'](){const _0x327f9c=this['editor'];if(!_0x327f9c['plugins']['has']('MergeFieldsEditing'))return;_0x327f9c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x327f9c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x6ab38c=_0x327f9c['plugins']['get']('TrackChangesEditing'),_0x184b7f=_0x327f9c['locale'];_0x6ab38c['descriptionFactory']['registerElementLabel']('mergeField',_0x2cc684=>o(_0x184b7f,'ELEMENT_MERGE_FIELD',_0x2cc684)),_0x6ab38c['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x19e779=>o(_0x184b7f,'ELEMENT_MERGE_FIELD',_0x19e779)),_0x6ab38c['descriptionFactory']['registerDescriptionCallback'](_0x287b96=>{if('insertion'!=_0x287b96['type']&&'deletion'!=_0x287b96['type'])return;const _0x30ec27=_0x287b96['getContainedElement']();if(null==_0x30ec27)return;if(!_0x30ec27['is']('element','mergeField')&&!_0x30ec27['is']('element','mergeFieldBlock'))return;const _0x43d6d0=_0x327f9c['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x30ec27['getAttribute']('id'));return'insertion'==_0x287b96['type']?{'type':'insertion','content':o(_0x184b7f,'*Insert:*\x20%0','\x22'+_0x43d6d0+'\x22\x20'+o(_0x184b7f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x184b7f,'*Remove:*\x20%0','\x22'+_0x43d6d0+'\x22\x20'+o(_0x184b7f,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x35dcdc{['afterInit'](){const _0x45d5d7=this['editor'],_0x286df3=_0x45d5d7['plugins']['get']('TrackChangesEditing');_0x45d5d7['plugins']['has']('MultiLevelList')&&(_0x286df3['enableDefaultAttributesIntegration']('multiLevelList'),_0x286df3['registerBlockAttribute']('listMarkerStyle'),_0x286df3['descriptionFactory']['registerDescriptionCallback'](_0x279e21=>this['handleDescriptions'](_0x279e21)));}['handleDescriptions'](_0x43e853){const _0x43ecf6=this['editor']['locale'],{data:_0x4995de}=_0x43e853,_0x17b8fd={'type':'format','content':''};if(_0x4995de&&'listMarkerStyle'==_0x4995de['key']){if(!_0x4995de['oldValue'])return{'type':'format','content':o(_0x43ecf6,'*Set\x20format:*\x20%0',o(_0x43ecf6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4995de['newValue']+')'};if(!_0x4995de['newValue']){let _0x3500f0=_0x43e853['head'];for(;_0x3500f0;){if(_0x3500f0['data']&&'listType'==_0x3500f0['data']['key']&&_0x3500f0['data']['newValue'])return _0x17b8fd;_0x3500f0=_0x3500f0['next'];}return{'type':'format','content':o(_0x43ecf6,'*Remove\x20format:*\x20%0',o(_0x43ecf6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4995de['oldValue']+')'};}}}}class kt extends _0x35dcdc{['afterInit'](){const _0x71fa78=this['editor'];if(!_0x71fa78['plugins']['has']('PageBreakEditing'))return;_0x71fa78['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x424a95=_0x71fa78['plugins']['get']('TrackChangesEditing'),_0x2b9bbe=_0x71fa78['locale'];_0x424a95['descriptionFactory']['registerElementLabel']('pageBreak',_0x13d0f1=>o(_0x2b9bbe,'ELEMENT_PAGE_BREAK',_0x13d0f1));}}class bt extends _0x35dcdc{['afterInit'](){const _0x138c30=this['editor'];if(!_0x138c30['plugins']['has']('Paragraph'))return;const _0x388bcd=_0x138c30['locale'],_0x240628=_0x138c30['plugins']['get']('TrackChangesEditing');_0x240628['descriptionFactory']['registerElementLabel']('paragraph',_0x1157e9=>o(_0x388bcd,'ELEMENT_PARAGRAPH',_0x1157e9)),_0x240628['enableDefaultAttributesIntegration']('paragraph'),_0x240628['enableCommand']('insertParagraph'),_0x138c30['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x138c30),{'priority':'highest'}),_0x138c30['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x39fdd8,_0x3a1147,_0x52d200)=>{_0x52d200['options']['showSuggestionHighlights']&&nr(_0x138c30,{'showActiveMarker':!0x1})(_0x39fdd8,_0x3a1147,_0x52d200);},{'priority':'highest'});const _0x47f4b0=_0x240628['descriptionFactory'];_0x47f4b0['registerDescriptionCallback'](_0x1b88c5=>{if('insertion'!==_0x1b88c5['type'])return;const {start:_0x3b6f29,end:_0x448f58}=_0x1b88c5['getFirstRange']();if(!_0x3b6f29['isTouching'](_0x448f58)||!_0x3b6f29['nodeAfter'])return;const _0xffef80=_0x138c30['model']['schema'],_0xb17a10=_0x3b6f29['nodeAfter'];return _0xffef80['isBlock'](_0xb17a10)&&!_0xffef80['isLimit'](_0xb17a10)&&_0xffef80['checkChild'](_0xb17a10,'$text')?{'type':'insertion','content':o(_0x388bcd,'*Insert:*\x20%0',_0x47f4b0['getItemLabel'](_0xb17a10,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x296c01=this['editor'],_0x883c77=_0x296c01['locale'];_0x296c01['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fdd64=>{if('formatBlock'!=_0x3fdd64['type'])return;const {data:_0x1d78a5}=_0x3fdd64;return _0x1d78a5&&'paragraph'==_0x1d78a5['commandName']?{'type':'format','content':o(_0x883c77,'*Change\x20to:*\x20%0',o(_0x883c77,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3e8355,{showActiveMarker:_0x55ae15=!0x0}={}){return(_0x168984,_0x238d2d,_0x1d369c)=>{const _0x21725b=_0x3e8355['plugins']['get']('TrackChangesEditing'),_0x35a560=_0x238d2d['markerRange']['start'],_0x46208b=_0x238d2d['markerRange']['end'],_0x3bb3c4=_0x3e8355['model']['schema'];if(!_0x35a560['isTouching'](_0x46208b)||!_0x35a560['nodeAfter'])return;const _0x591343=_0x35a560['nodeAfter'];if(_0x3bb3c4['isBlock'](_0x591343)&&!_0x3bb3c4['isLimit'](_0x591343)&&_0x3bb3c4['checkChild'](_0x591343,'$text')){if(!_0x1d369c['consumable']['consume'](_0x238d2d['markerRange'],_0x168984['name']))return;const {authorId:_0x40fc0d}=_0x21725b['_splitMarkerName'](_0x238d2d['markerName']),_0x2dcc4b=_0x1d369c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x40fc0d}),_0x581d7c=_0x1d369c['mapper']['toViewPosition'](_0x46208b);_0x55ae15&&_0x21725b['activeMarkers']['includes'](_0x238d2d['markerName'])&&_0x1d369c['writer']['addClass']('ck-suggestion-marker--active',_0x2dcc4b),_0x1d369c['writer']['insert'](_0x581d7c,_0x2dcc4b),_0x1d369c['mapper']['bindElementToMarker'](_0x2dcc4b,_0x238d2d['markerName']);}};}class wt extends _0x35dcdc{['afterInit'](){const _0x5eb921=this['editor'];if(!_0x5eb921['plugins']['has']('RemoveFormatEditing'))return;_0x5eb921['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b26d2=this['editor'];_0x2b26d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48bdf4=>{if('formatBlock'!=_0x48bdf4['type']&&'formatInline'!=_0x48bdf4['type'])return;const {data:_0x4effe5}=_0x48bdf4;return _0x4effe5&&'removeFormat'==_0x4effe5['commandName']?{'type':'format','content':o(_0x2b26d2['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x35dcdc{['afterInit'](){const _0x51bc13=this['editor'];if(!_0x51bc13['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x204c65=_0x51bc13['plugins']['get']('TrackChangesEditing');_0x204c65['enableCommand']('goToPreviousRestrictedEditingException'),_0x204c65['enableCommand']('goToNextRestrictedEditingException');const _0x2712d0=_0x51bc13['plugins']['get']('RestrictedEditingModeEditing');_0x2712d0['enableCommand']('trackChanges'),_0x2712d0['enableCommand']('acceptSuggestion'),_0x2712d0['enableCommand']('discardSuggestion'),_0x2712d0['enableCommand']('acceptAllSuggestions'),_0x2712d0['enableCommand']('discardAllSuggestions'),_0x2712d0['enableCommand']('acceptSelectedSuggestions'),_0x2712d0['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x35dcdc{static get['requires'](){return[_0x307b1e];}['init'](){const _0x225a36=this['editor'],_0x535e75=_0x225a36['plugins']['get']('TrackChangesEditing');_0x535e75['enableCommand']('shiftEnter'),_0x225a36['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x225a36),{'priority':'high'}),_0x225a36['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x225a36),{'priority':'high'}),_0x225a36['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x8ca55c,_0x47e417,_0x11f0fc)=>{_0x11f0fc['options']['showSuggestionHighlights']&&ge(_0x225a36,{'showActiveMarker':!0x1})(_0x8ca55c,_0x47e417,_0x11f0fc);}),_0x535e75['descriptionFactory']['registerElementLabel']('softBreak',_0x48d651=>o(_0x225a36['locale'],'ELEMENT_LINE_BREAK',_0x48d651));}}function ge(_0x1e1206,{showActiveMarker:_0x25ed45=!0x0}={}){return(_0x2ba131,_0x2abe93,_0x575e37)=>{const _0x58a9ec=_0x1e1206['plugins']['get']('TrackChangesEditing');if(!_0x575e37['consumable']['test'](_0x2abe93['markerRange'],_0x2ba131['name']))return;const _0x361a13=_0x1e1206['model'];for(const _0x3772c7 of _0x2abe93['markerRange']['getItems']()){if(!_0x3772c7['is']('element','softBreak'))continue;const _0x2971d9='deletion'==_0x2abe93['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x3a8d11}=_0x58a9ec['_splitMarkerName'](_0x2abe93['markerName']),_0x4430b2=_0x575e37['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2971d9,'data-author-id':_0x3a8d11}),_0x426af0=_0x575e37['mapper']['toViewPosition'](_0x361a13['createPositionBefore'](_0x3772c7));_0x25ed45&&_0x58a9ec['activeMarkers']['includes'](_0x2abe93['markerName'])&&_0x575e37['writer']['addClass']('ck-suggestion-marker--active',_0x4430b2),_0x575e37['writer']['insert'](_0x426af0,_0x4430b2),_0x575e37['mapper']['bindElementToMarker'](_0x4430b2,_0x2abe93['markerName']);}};}class St extends _0x35dcdc{['afterInit'](){const _0x1a0171=this['editor'],_0x53c4fd=_0x1a0171['model'],_0xf1361a=_0x1a0171['locale'];if(!_0x1a0171['plugins']['has']('StandardEditingModeEditing'))return;const _0x241b6c=_0x1a0171['plugins']['get']('TrackChangesEditing'),_0x661a2f='restrictedEditingException',_0x2d32b8=_0x1a0171['commands']['get'](_0x661a2f);_0x241b6c['enableCommand'](_0x661a2f,(_0x3b3dda,_0x437e61={})=>{const _0x58fba8=_0x53c4fd['document']['selection'];if(_0x58fba8['isCollapsed'])return void _0x3b3dda(_0x437e61);const _0x5eb69c=void 0x0!==_0x437e61['forceValue']?_0x437e61['forceValue']:!_0x2d32b8['value'];_0x53c4fd['change'](()=>{const _0x7be74d=Array['from'](_0x58fba8['getRanges']());for(const _0x34838a of _0x7be74d){const _0x5ab272=_0x5eb69c?[_0x34838a]:io(_0x661a2f,_0x34838a,_0x53c4fd);for(const _0x48dbeb of _0x5ab272)_0x241b6c['markInlineFormat'](_0x48dbeb,{'commandName':_0x661a2f,'commandParams':[{'forceValue':_0x5eb69c}]});}});}),_0x241b6c['descriptionFactory']['registerDescriptionCallback'](_0x30ecf9=>{if('formatBlock'!=_0x30ecf9['type']&&'formatInline'!=_0x30ecf9['type'])return;const {data:_0x10a79a}=_0x30ecf9;return _0x10a79a&&_0x10a79a['commandName']==_0x661a2f?_0x10a79a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf1361a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xf1361a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x35dcdc{['afterInit'](){const _0x72949c=this['editor'];if(!_0x72949c['plugins']['has']('Style')||!_0x72949c['plugins']['has']('DataSchema'))return;const _0x5651ef=_0x72949c['plugins']['get']('TrackChangesEditing'),_0x1d2044=_0x72949c['locale'],_0x27dec8=_0x72949c['config']['get']('style')||{},_0x46988c=_0x72949c['plugins']['get']('GeneralHtmlSupport'),_0x505f06=_0x72949c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x72949c['plugins']['get']('DataSchema'),_0x27dec8['definitions']);_0x5651ef['enableDefaultAttributesIntegration']('style');const _0x570555=new Set();for(const _0x5932ae of _0x505f06['block']){const _0x7e5d99=_0x46988c['getGhsAttributeNameForElement'](_0x5932ae['element']);_0x570555['add'](_0x7e5d99);}const _0x3616ee=new Set();for(const _0x4dd4c5 of _0x505f06['inline']){const _0x1ebab4=_0x46988c['getGhsAttributeNameForElement'](_0x4dd4c5['element']);_0x3616ee['add'](_0x1ebab4);for(const _0x169fa1 of _0x4dd4c5['ghsAttributes'])_0x3616ee['add'](_0x169fa1);}for(const _0xad518b of _0x570555)_0x5651ef['registerBlockAttribute'](_0xad518b),_0x5651ef['descriptionFactory']['registerAttributeLabel'](_0xad518b,o(_0x1d2044,'FORMAT_STYLE'));for(const _0x157a7a of _0x3616ee)_0x5651ef['registerInlineAttribute'](_0x157a7a),_0x5651ef['descriptionFactory']['registerAttributeLabel'](_0x157a7a,o(_0x1d2044,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f4d24=this['editor'],_0x2b5a6a=_0x2f4d24['locale'];_0x2f4d24['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa90044=>{if('formatBlock'!=_0xa90044['type']&&'formatInline'!=_0xa90044['type'])return;const {data:_0x17411b}=_0xa90044;return _0x17411b&&'style'===_0x17411b['commandName']?_0x17411b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2b5a6a,'*Set\x20format:*\x20%0',_0x17411b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2b5a6a,'*Remove\x20format:*\x20%0',_0x17411b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x35dcdc{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x17de49){super(_0x17de49),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3ff5d9=this['editor'],_0x33d5e1=_0x3ff5d9['model']['document']['selection'];if(!_0x3ff5d9['plugins']['has']('TableEditing'))return;const _0x54a054=_0x3ff5d9['locale'],_0x44bac7=_0x3ff5d9['plugins']['get']('TrackChangesEditing'),_0x34862d=_0x3ff5d9['plugins']['get']('TableUtils');_0x44bac7['descriptionFactory']['registerElementLabel']('table',_0x58bcb6=>o(_0x54a054,'ELEMENT_TABLE',_0x58bcb6)),this['_setupColumnsRowsFixing'](),_0x44bac7['enableCommand']('insertTable'),_0x44bac7['enableCommand']('selectTableRow'),_0x44bac7['enableCommand']('selectTableColumn');for(const _0x241120 of['insertTableRowAbove','insertTableRowBelow']){const _0x18dc7c=_0x3ff5d9['commands']['get'](_0x241120);_0x44bac7['enableCommand'](_0x241120,_0x41a988=>{_0x3ff5d9['model']['change'](_0x465cd8=>{_0x41a988();const _0x85c7df='above'===_0x18dc7c['order'],_0x288176=_0x34862d['getSelectionAffectedTableCells'](_0x33d5e1),_0x4de43b=_0x34862d['getRowIndexes'](_0x288176),_0x2022e7=_0x85c7df?_0x4de43b['first']-0x1:_0x4de43b['last']+0x1,_0x2529a=_0x288176[0x0]['findAncestor']('table'),_0x11eba2=_0x34862d['createTableWalker'](_0x2529a,{'startRow':_0x2022e7,'endRow':_0x2022e7}),_0x536927=Array['from'](_0x11eba2)['map'](_0x28cbdf=>_0x465cd8['createRangeOn'](_0x28cbdf['cell']));_0x44bac7['markMultiRangeInsertion'](_0x536927,'tableRow');});});}for(const _0xb60997 of['insertTableColumnLeft','insertTableColumnRight']){const _0x45ad9b=_0x3ff5d9['commands']['get'](_0xb60997);_0x44bac7['enableCommand'](_0xb60997,_0x39acc3=>{_0x3ff5d9['model']['change'](_0x57db8a=>{_0x39acc3();const _0x14aa00='left'===_0x45ad9b['order'],_0x2b0a35=_0x34862d['getSelectionAffectedTableCells'](_0x33d5e1),_0x59de66=_0x34862d['getColumnIndexes'](_0x2b0a35),_0x207ba5=_0x14aa00?_0x59de66['first']-0x1:_0x59de66['last']+0x1,_0x18a7c3=_0x2b0a35[0x0]['findAncestor']('table'),_0x4e6579=_0x34862d['createTableWalker'](_0x18a7c3,{'startRow':0x0,'column':_0x207ba5,'includeAllSlots':!0x1}),_0x2ef05d=Array['from'](_0x4e6579)['map'](_0x40bcb4=>_0x57db8a['createRangeOn'](_0x40bcb4['cell']));_0x44bac7['markMultiRangeInsertion'](_0x2ef05d,'tableColumn');});});}for(const _0x24764c of['removeTableRow','removeTableColumn']){const _0x3ebc77=_0x24764c['substr'](0xb),_0x17c3c2=_0x3ebc77['toLowerCase'](),_0x36ba0=_0x17c3c2['substr'](0x0,0x3)+'span',_0x2bef55='table'+_0x3ebc77,_0xaf1528='min'+_0x3ebc77,_0x4baa78='max'+_0x3ebc77;_0x44bac7['enableCommand'](_0x24764c,()=>{_0x3ff5d9['model']['change'](_0xeb93dc=>{const _0x394bbb=_0x34862d['getSelectionAffectedTableCells'](_0x33d5e1),_0x4e515c=_0x394bbb[0x0]['findAncestor']('table');let _0x425ea2;if('removeTableRow'==_0x24764c){const _0x2bb439=_0x34862d['getRowIndexes'](_0x394bbb);_0x425ea2={'startRow':_0x2bb439['first'],'endRow':_0x2bb439['last'],'includeAllSlots':!0x0};}else{const _0x6043a7=_0x34862d['getColumnIndexes'](_0x394bbb);_0x425ea2={'startColumn':_0x6043a7['first'],'endColumn':_0x6043a7['last'],'includeAllSlots':!0x0};}const _0x18a53a=_0x34862d['createTableWalker'](_0x4e515c,_0x425ea2),_0x43e112=Array['from'](_0x18a53a)['map'](({cell:_0x2d89bf})=>_0x2d89bf),_0x1f09ec=be(_0x43e112['filter'](_0x8f82cf=>_0x8f82cf['hasAttribute'](_0x36ba0))),_0x18cc98=be(_0x43e112['filter'](_0x2bec66=>!_0x2bec66['hasAttribute'](_0x36ba0)))['map'](_0x277b14=>_0xeb93dc['createRangeOn'](_0x277b14)),_0x1004e9=_0x44bac7['markMultiRangeDeletion'](_0x18cc98,_0x2bef55);if(_0x1004e9&&('tableRow'==_0x1004e9['subType']||'tableColumn'==_0x1004e9['subType'])){const _0xad0fd9=this['_getSuggestionCoords'](_0x1004e9);for(const _0x581bdc of _0x1f09ec){const _0x97771f=_0xeb93dc['createRangeOn'](_0x581bdc),_0x4f2fb6=_0x34862d['getCellLocation'](_0x581bdc),_0x4bac62=_0x581bdc['getAttribute'](_0x36ba0)-0x1,_0x16502c=_0xad0fd9[_0xaf1528],_0x3febd0=_0xad0fd9[_0x4baa78];_0x16502c<=_0x4f2fb6[_0x17c3c2]&&_0x4f2fb6[_0x17c3c2]+_0x4bac62<=_0x3febd0&&_0x1004e9['addRange'](_0x97771f);}}});});}function _0x3cc352(_0x5912b2){const _0x5cf8bc=Array['from'](_0x33d5e1['getRanges']())['map'](_0x2cd2da=>_0x343169['fromRange'](_0x2cd2da));_0x3ff5d9['model']['change'](_0x52d49d=>{const _0x13cacb=_0x52d49d['batch'];_0x5912b2=_0x5912b2['filter'](_0x3ac279=>'$graveyard'!=_0x3ac279['root']['rootName']),_0x52d49d['setSelection'](_0x5912b2),_0x3ff5d9['commands']['get']('removeTableRow')['refresh'](),_0x3ff5d9['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3ff5d9['model']['enqueueChange'](()=>{_0x3ff5d9['model']['enqueueChange'](_0x13cacb,_0x323741=>{const _0x1ae3f7=_0x5cf8bc['filter'](_0x27c912=>'$graveyard'!=_0x27c912['root']['rootName']);_0x1ae3f7['length']>0x0&&_0x323741['setSelection'](_0x1ae3f7);for(const _0x4e3fdf of _0x5cf8bc)_0x4e3fdf['detach']();});});});}function _0x39464d(_0x3cb178){_0x3ff5d9['model']['change'](_0xe621e8=>{const _0x581497=Array['from'](_0x33d5e1['getRanges']())['map'](_0x32ba3f=>_0x343169['fromRange'](_0x32ba3f)),_0x49dc43=[];for(const _0x5aea9e of _0x3cb178)for(const _0x3acc26 of _0x5aea9e['getItems']({'shallow':!0x0}))_0x49dc43['push'](_0x3acc26);for(const _0x18c2c3 of _0x49dc43)'$graveyard'!=_0x18c2c3['root']['rootName']&&(_0xe621e8['setSelection'](_0xe621e8['createPositionAt'](_0x18c2c3,0x0)),_0x3ff5d9['commands']['get']('removeTableColumn')['refresh'](),_0x3ff5d9['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x258190=_0x581497['filter'](_0x36101c=>'$graveyard'!=_0x36101c['root']['rootName']);_0x258190['length']>0x0&&_0xe621e8['setSelection'](_0x258190);for(const _0x122a4a of _0x581497)_0x122a4a['detach']();});}function _0x1b39ee(_0x19fb36,_0x4b9c40){return _0x4b9c40['every'](_0x2fe7e0=>_0x19fb36['some'](_0x66c30=>_0x66c30['end']['isEqual'](_0x2fe7e0['start'])||_0x2fe7e0['end']['isEqual'](_0x66c30['start'])));}function _0xad8ad5(_0x45a8c4,_0x5bff02){return!_0x45a8c4['some'](_0x20b77b=>_0x5bff02['some'](_0x395e44=>_0x20b77b['isIntersecting'](_0x395e44)))&&_0x45a8c4['some'](_0x54013a=>_0x5bff02['some'](_0x4b2a58=>_0x54013a['end']['isTouching'](_0x4b2a58['start'])));}_0x3ff5d9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x57874a,_0x3f7d30,_0x1ea19b)=>{if(!_0x1ea19b['options']['showSuggestionHighlights'])return;const _0x2369d3=_0x3f7d30['item'];if(!_0x2369d3)return;const _0x2b763c=_0x1ea19b['mapper']['toViewElement'](_0x2369d3);function _0xd44fcb(_0x5ed2c3){return Array['isArray'](_0x5ed2c3)?_0x5ed2c3:[_0x5ed2c3];}_0x2b763c&&'tableCell'===_0x2369d3['name']&&_0x1b7836(_0x2b763c,_0x1ea19b['writer'],(_0x861b12,_0x256fcc,_0x1bd616)=>_0x1bd616['addClass'](_0xd44fcb(_0x256fcc['classes']),_0x861b12),(_0x22019e,_0x5b20e8,_0x14a44a)=>_0x14a44a['removeClass'](_0xd44fcb(_0x5b20e8['classes']),_0x22019e));},{'priority':'highest'}),_0x44bac7['descriptionFactory']['registerDescriptionCallback'](_0x1d86e9=>{if('insertion'!=_0x1d86e9['type']&&'deletion'!=_0x1d86e9['type'])return;const _0x381738=_0x1d86e9['getContainedElement']();if(null!=_0x381738&&_0x381738['is']('element','table')){if('insertion'==_0x1d86e9['type']){const _0x5dd56c=_0x1d86e9['getItems']()['filter'](_0x4444f5=>_0x4444f5['is']('$textProxy'))['map'](_0x116e24=>_0x116e24['data']);if(_0x5dd56c['length'])return{'type':'insertion','content':o(_0x54a054,'*Insert:*\x20%0',o(_0x54a054,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5dd56c['join']('\x20')+'\x22'))};}if('deletion'==_0x1d86e9['type']){const _0xc758da=_0x1d86e9['getItems']()['filter'](_0x30a2c4=>_0x30a2c4['is']('$textProxy'))['map'](_0x488a41=>_0x488a41['data']);if(_0xc758da['length'])return{'type':'deletion','content':o(_0x54a054,'*Remove:*\x20%0',o(_0x54a054,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xc758da['join']('\x20')+'\x22'))};}}}),_0x44bac7['descriptionFactory']['registerDescriptionCallback'](_0x36243e=>{if('tableRow'==_0x36243e['subType']){const _0x5984a6=_0x36243e['getItems']()['filter'](_0x3e218f=>_0x3e218f['is']('$textProxy'))['map'](_0x5bff6d=>_0x5bff6d['data']),_0x4aae06=this['_getSuggestionCoords'](_0x36243e),_0xb7c910=_0x4aae06['maxRow']-_0x4aae06['minRow']+0x1;if('insertion'==_0x36243e['type'])return _0x5984a6['length']?{'type':'insertion','content':o(_0x54a054,'*Insert:*\x20%0',o(_0x54a054,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xb7c910,'\x22'+_0x5984a6['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x54a054,'*Insert:*\x20%0',o(_0x54a054,'ELEMENT_TABLE_ROW',_0xb7c910))};if('deletion'==_0x36243e['type'])return _0x5984a6['length']?{'type':'deletion','content':o(_0x54a054,'*Remove:*\x20%0',o(_0x54a054,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xb7c910,'\x22'+_0x5984a6['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x54a054,'*Remove:*\x20%0',o(_0x54a054,'ELEMENT_TABLE_ROW',_0xb7c910))};}if('tableColumn'==_0x36243e['subType']){const _0x24aeff=_0x36243e['getItems']()['filter'](_0x372d20=>_0x372d20['is']('$textProxy'))['map'](_0x410c22=>_0x410c22['data']),_0x6e3ba2=this['_getSuggestionCoords'](_0x36243e),_0x1bee8e=_0x6e3ba2['maxColumn']-_0x6e3ba2['minColumn']+0x1;if('insertion'==_0x36243e['type'])return _0x24aeff['length']?{'type':'insertion','content':o(_0x54a054,'*Insert:*\x20%0',o(_0x54a054,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1bee8e,'\x22'+_0x24aeff['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x54a054,'*Insert:*\x20%0',o(_0x54a054,'ELEMENT_TABLE_COLUMN',_0x1bee8e))};if('deletion'==_0x36243e['type'])return _0x24aeff['length']?{'type':'deletion','content':o(_0x54a054,'*Remove:*\x20%0',o(_0x54a054,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1bee8e,'\x22'+_0x24aeff['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x54a054,'*Remove:*\x20%0',o(_0x54a054,'ELEMENT_TABLE_COLUMN',_0x1bee8e))};}}),_0x44bac7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3cc352),_0x44bac7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3cc352),_0x44bac7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x39464d),_0x44bac7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x39464d),_0x44bac7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1b39ee),_0x44bac7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1b39ee),_0x44bac7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xad8ad5),_0x44bac7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xad8ad5);}['_acceptFormatSuggestionCallbackFactory'](){const _0x50ddbd=this['editor'],_0xadbcd4=_0x50ddbd['model']['document']['selection'];return(_0x4f5432,_0x219bf2)=>{_0x50ddbd['model']['change'](_0x259444=>{const {commandName:_0x40ea96,commandParams:_0x8c1c2f}=_0x219bf2;let _0x22c382=_0x4f5432[0x0]['end']['nodeBefore'];_0x8c1c2f&&_0x8c1c2f[0x0]&&!0x1===_0x8c1c2f[0x0]['forceValue']&&(_0x22c382=_0x4f5432[0x0]['start']['nodeAfter']);const _0x579f3b=_0x259444['createRangeIn'](_0x22c382);if('$graveyard'==_0x579f3b['root']['rootName'])return;const _0x2cd1be=Array['from'](_0xadbcd4['getRanges']())['map'](_0x29d721=>_0x343169['fromRange'](_0x29d721));_0x259444['setSelection'](_0x579f3b),_0x50ddbd['commands']['get'](_0x40ea96)['refresh'](),_0x8c1c2f['push']({'forceDefaultExecution':!0x0}),_0x50ddbd['execute'](_0x40ea96,..._0x8c1c2f);const _0xdf47eb=_0x2cd1be['filter'](_0x5de030=>'$graveyard'!=_0x5de030['root']['rootName']);_0xdf47eb['length']>0x0&&_0x259444['setSelection'](_0xdf47eb);for(const _0x53b74a of _0x2cd1be)_0x53b74a['detach']();});};}['_getCoordsForCells'](_0x59723b){const _0x53205e=this['editor']['plugins']['get']('TableUtils');let _0x40e2c8=Number['MAX_SAFE_INTEGER'],_0x4d9cef=Number['MIN_SAFE_INTEGER'],_0xf59477=Number['MAX_SAFE_INTEGER'],_0x2e16e0=Number['MIN_SAFE_INTEGER'];for(const _0x3349a9 of _0x59723b){if('$graveyard'==_0x3349a9['root']['rootName'])continue;const {row:_0x11ce10,column:_0x3ed9aa}=_0x53205e['getCellLocation'](_0x3349a9),_0x36d252=_0x3349a9['hasAttribute']('rowspan')?_0x3349a9['getAttribute']('rowspan')-0x1:0x0,_0x486999=_0x3349a9['hasAttribute']('colspan')?_0x3349a9['getAttribute']('colspan')-0x1:0x0;_0x40e2c8=_0x11ce10<_0x40e2c8?_0x11ce10:_0x40e2c8,_0x4d9cef=_0x11ce10+_0x36d252>_0x4d9cef?_0x11ce10+_0x36d252:_0x4d9cef,_0xf59477=_0x3ed9aa<_0xf59477?_0x3ed9aa:_0xf59477,_0x2e16e0=_0x3ed9aa+_0x486999>_0x2e16e0?_0x3ed9aa+_0x486999:_0x2e16e0;}return{'minRow':_0x40e2c8,'maxRow':_0x4d9cef,'minColumn':_0xf59477,'maxColumn':_0x2e16e0};}['_setupColumnsRowsFixing'](){const _0x1fd1f8=this['editor'],_0x490d8a=_0x1fd1f8['plugins']['get']('TrackChangesEditing'),_0x234a6f=_0x1fd1f8['plugins']['get']('TableUtils');_0x1fd1f8['model']['document']['on']('change:data',()=>{const _0x11bbee=Array['from'](_0x1fd1f8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10079d,data:_0x44fc8a}of _0x11bbee){const {group:_0x564b64,id:_0x3f1b55,subType:_0x1a1428}=_0x490d8a['_splitMarkerName'](_0x10079d);if('suggestion'!=_0x564b64)continue;if(null!=_0x44fc8a['oldRange'])continue;const _0x37c96a=_0x490d8a['getSuggestion'](_0x3f1b55);this['_tablePostFixingSubtypes']['includes'](_0x1a1428)&&this['_tableSuggestions']['add'](_0x37c96a);}},{'priority':'low'});const _0x302c82=(_0x43cedd,_0x4bca51)=>{let _0x4b40a9=!0x1;const _0x5ab2c0=_0x4bca51['createRangeOn'](_0x43cedd),_0x304d44=_0x43cedd['findAncestor']('table'),_0x55c5aa=_0x234a6f['getCellLocation'](_0x43cedd);for(const _0x369cc6 of this['_tableSuggestions']){const _0x38c52d=_0x369cc6['subType'],_0x3ec5ae=_0x38c52d['startsWith']('tablePaste'),_0x297c7e=_0x38c52d['substr'](_0x3ec5ae?0xa:0x5),_0x1fab8c=_0x297c7e['toLowerCase'](),_0x57c5bc=_0x1fab8c['substr'](0x0,0x3)+'span',_0x57492d='min'+_0x297c7e,_0x366a0a='max'+_0x297c7e;if(!_0x369cc6['isInContent'])continue;if(_0x304d44!=_0x369cc6['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x369cc6['isIntersectingWithRange'](_0x5ab2c0))continue;const _0x278367=_0x43cedd['hasAttribute'](_0x57c5bc)?_0x43cedd['getAttribute'](_0x57c5bc)-0x1:0x0,_0x408a5f=this['_getSuggestionCoords'](_0x369cc6),_0x5d37c6=_0x408a5f[_0x57492d],_0x265aca=_0x408a5f[_0x366a0a];_0x5d37c6<=_0x55c5aa[_0x1fab8c]&&_0x55c5aa[_0x1fab8c]+_0x278367<=_0x265aca&&(_0x369cc6['addRange'](_0x5ab2c0),_0x4b40a9=!0x0);}return _0x4b40a9;};_0x1fd1f8['model']['document']['registerPostFixer'](_0x38e815=>{let _0x491008=!0x1;for(const _0x1cdc0b of _0x1fd1f8['model']['document']['differ']['getChanges']())if('insert'==_0x1cdc0b['type']){if('tableRow'==_0x1cdc0b['name']){for(const _0x2237ff of _0x1cdc0b['position']['nodeAfter']['getChildren']())_0x491008=_0x491008||_0x302c82(_0x2237ff,_0x38e815);}else'tableCell'==_0x1cdc0b['name']&&(_0x491008=_0x491008||_0x302c82(_0x1cdc0b['position']['nodeAfter'],_0x38e815));}return _0x491008;});}['_getSuggestionCoords'](_0x38e67a){return this['_getCoordsForCells'](_0x38e67a['getRanges']()['map'](_0x341e9e=>_0x341e9e['start']['nodeAfter']));}}function be(_0x5dab25){return Array['from'](new Set(_0x5dab25)['values']());}class vt extends _0x35dcdc{static get['requires'](){return[It];}['afterInit'](){const _0x483854=this['editor'],_0xb67738=_0x483854['model']['document']['selection'],_0x2b2e4e=_0x483854['locale'];if(!_0x483854['plugins']['has']('TableEditing'))return;const _0x4c142c=_0x483854['plugins']['get']('TrackChangesEditing'),_0x24653c=_0x483854['plugins']['get']('TableUtils'),_0x356450=_0x483854['plugins']['get'](It);_0x356450['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4c142c['enableCommand']('mergeTableCells',()=>{const _0x5a610a=_0x24653c['getSelectionAffectedTableCells'](_0x483854['model']['document']['selection']);_0x483854['model']['change'](()=>{_0x4c142c['markMultiRangeBlockFormat'](_0x5a610a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x483854['commands']['get']('mergeTableCells')['on']('execute',(_0x2d664c,_0x24807f)=>{_0x483854['commands']['get']('trackChanges')['value']&&(_0x24807f['length']>0x0&&_0x24807f[_0x24807f['length']-0x1]&&_0x24807f[_0x24807f['length']-0x1]['forceDefaultExecution']||_0x4c142c['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2d664c['stop']());},{'priority':'highest'});for(const _0x3a9663 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x846d37=_0x483854['commands']['get'](_0x3a9663);_0x4c142c['enableCommand'](_0x3a9663,()=>{const _0x168e56=_0x483854['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4fe114=>_0x4fe114['is']('element','tableCell')),_0x13794f=_0x846d37['value'];_0x483854['model']['change'](()=>{_0x4c142c['markMultiRangeBlockFormat']([_0x168e56,_0x13794f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x8e512b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x422db0=_0x483854['commands']['get'](_0x8e512b);_0x4c142c['enableCommand'](_0x8e512b,()=>{const _0x5c8bcd=_0x24653c['getSelectionAffectedTableCells'](_0x483854['model']['document']['selection'])[0x0],_0x566b3d=_0x5c8bcd['findAncestor']('table'),{column:_0x1c02f1,row:_0x47aa2e}=_0x24653c['getCellLocation'](_0x5c8bcd);let _0x10be93=[];if('horizontally'==_0x422db0['direction']){const _0x13c3c1=_0x24653c['createTableWalker'](_0x566b3d,{'startRow':_0x47aa2e,'endRow':_0x47aa2e,'includeAllSlots':!0x0});_0x10be93=Array['from'](_0x13c3c1)['map'](_0xf22b92=>_0xf22b92['cell']);}else{const _0x2f6368=_0x24653c['createTableWalker'](_0x566b3d,{'column':_0x1c02f1,'includeAllSlots':!0x0});_0x10be93=Array['from'](_0x2f6368)['map'](_0x2be10f=>_0x2be10f['cell']);}_0x483854['model']['change'](_0x4fc7e9=>{_0x4c142c['markBlockFormat'](_0x4fc7e9['createRangeOn'](_0x5c8bcd),{'commandName':_0x8e512b,'commandParams':[]},_0x10be93,_0x8e512b);});});}_0x4c142c['descriptionFactory']['registerDescriptionCallback'](_0x3d7298=>{if('formatBlock'!=_0x3d7298['type']&&'formatInline'!=_0x3d7298['type'])return;const {data:_0x283af4}=_0x3d7298;return _0x283af4&&'mergeTableCells'==_0x283af4['commandName']?{'type':'format','content':o(_0x2b2e4e,'*Merge\x20cells*')}:void 0x0;}),_0x4c142c['descriptionFactory']['registerDescriptionCallback'](_0x371e3e=>{if('formatBlock'!=_0x371e3e['type']&&'formatInline'!=_0x371e3e['type'])return;const {data:_0x5b8774}=_0x371e3e;return _0x5b8774?'splitTableCellVertically'==_0x5b8774['commandName']?{'type':'format','content':o(_0x2b2e4e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5b8774['commandName']?{'type':'format','content':o(_0x2b2e4e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5a2da3=_0x356450['_acceptFormatSuggestionCallbackFactory']();for(const _0x439035 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4c142c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x439035,'accept',_0x5a2da3);for(const _0x305e0d of['splitTableCellVertically','splitTableCellHorizontally'])_0x4c142c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x305e0d,'accept',_0x5a2da3);_0x4c142c['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xe70e3d=>{_0x483854['model']['change'](_0x18243d=>{const _0x5a3463=Array['from'](_0xb67738['getRanges']())['map'](_0x57eadf=>_0x343169['fromRange'](_0x57eadf));_0x18243d['setSelection'](_0xe70e3d),_0x483854['commands']['get']('mergeTableCells')['refresh'](),_0x483854['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3131e0=_0x5a3463['filter'](_0x5ab08d=>'$graveyard'!=_0x5ab08d['root']['rootName']);_0x3131e0['length']>0x0&&_0x18243d['setSelection'](_0x3131e0);for(const _0x2b4505 of _0x5a3463)_0x2b4505['detach']();});});for(const _0x3c78d8 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x417e63=_0x483854['commands']['get'](_0x3c78d8);_0x417e63['on']('set:isEnabled',(_0x7896df,_0x198c23,_0x40dbd1)=>{if(_0x40dbd1){const _0x3379c6=_0x483854['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x11df15=>_0x11df15['is']('element','tableCell'));this['_areMergableCells'](_0x417e63['value'],_0x3379c6)||(_0x7896df['return']=!0x1,_0x7896df['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x457c8e=this['editor']['commands']['get']('mergeTableCells'),_0x4316ea=this['editor']['plugins']['get']('TableUtils');if(!_0x457c8e['isEnabled'])return!0x1;const _0x1b70ed=_0x4316ea['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x571952 of _0x1b70ed)for(const _0x21761c of _0x1b70ed)if(_0x571952!=_0x21761c&&!this['_areMergableCells'](_0x571952,_0x21761c))return!0x1;return!0x0;}['_areMergableCells'](_0xe7ff84,_0x4bd26e){const _0x42320d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1516a1=this['editor']['model']['createRangeOn'](_0xe7ff84),_0x20031e=this['editor']['model']['createRangeOn'](_0x4bd26e),_0x48986a=new Set(),_0x37933e=new Set();for(const _0x525a6c of _0x42320d['getSuggestions']())if(('insertion'==_0x525a6c['type']||'deletion'==_0x525a6c['type']||'mergeTableCells'==_0x525a6c['subType'])&&_0x525a6c['isInContent']){for(const _0x2ba9fa of _0x525a6c['getRanges']())_0x2ba9fa['containsRange'](_0x1516a1,!0x0)&&_0x48986a['add'](_0x525a6c['type']+':'+_0x525a6c['author']['id']),_0x2ba9fa['containsRange'](_0x20031e,!0x0)&&_0x37933e['add'](_0x525a6c['type']+':'+_0x525a6c['author']['id']);}if(_0x48986a['size']!=_0x37933e['size'])return!0x1;for(const _0x22e524 of _0x48986a)if(!_0x37933e['has'](_0x22e524))return!0x1;return!0x0;}}class Ct extends _0x35dcdc{static get['requires'](){return[It];}['afterInit'](){const _0x2b719e=this['editor'];if(!_0x2b719e['plugins']['has']('TableEditing'))return;const _0x479994=_0x2b719e['locale'],_0x22245d=_0x2b719e['plugins']['get']('TrackChangesEditing');_0x22245d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x22245d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x22245d['registerBlockAttribute']('headingRows'),_0x22245d['registerBlockAttribute']('headingColumns'),_0x22245d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x479994,'FORMAT_HEADER_ROW')),_0x22245d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x479994,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x9e7ac1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3946f2=this['editor']['plugins']['get']('TableUtils'),_0x17d3cb=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x448a1d({showActiveMarker:_0x53bf0f=!0x0,setDataAttribute:_0x3a6522=!0x0}={}){return(_0x2a133a,_0x232b94,_0x1077db)=>{const {type:_0x3cf514,id:_0x46147c}=_0x9e7ac1['_splitMarkerName'](_0x232b94['markerName']),_0x5cd87=_0x9e7ac1['getSuggestion'](_0x46147c),_0x2a3a99=_0x5cd87['data'];if('formatBlock'!=_0x5cd87['type']||!_0x2a3a99||'setTableColumnHeader'!=_0x2a3a99['commandName'])return;if(_0x232b94['item'])return void _0x2a133a['stop']();if(!_0x1077db['consumable']['consume'](_0x232b94['markerRange'],_0x2a133a['name']))return;const _0x1907d8=_0x232b94['markerRange']['start']['nodeAfter'],_0x42cefd=_0x232b94['markerRange']['end']['nodeBefore'],_0x4303f9=_0x1907d8['parent']['parent'],{column:_0xd9c70e}=_0x3946f2['getCellLocation'](_0x1907d8),{column:_0x5d2412}=_0x3946f2['getCellLocation'](_0x42cefd);for(let _0x2a9f7a=_0xd9c70e;_0x2a9f7a<=_0x5d2412;_0x2a9f7a++){const _0x1b22f2=_0x3946f2['createTableWalker'](_0x4303f9,{'column':_0x2a9f7a,'includeAllSlots':!0x1});for(const _0x232b45 of _0x1b22f2){const _0x40b31a=_0x232b45['cell'],_0xadc31f=_0x1077db['mapper']['toViewElement'](_0x40b31a);_0x1077db['writer']['addClass']('ck-suggestion-marker-'+_0x3cf514,_0xadc31f),_0x3a6522&&_0x1077db['writer']['setAttribute']('data-suggestion',_0x46147c,_0xadc31f),_0x1077db['mapper']['bindElementToMarker'](_0xadc31f,_0x232b94['markerName']),_0x53bf0f&&(_0x9e7ac1['activeMarkers']['includes'](_0x232b94['markerName'])?_0x1077db['writer']['addClass']('ck-suggestion-marker--active',_0xadc31f):_0x1077db['writer']['removeClass']('ck-suggestion-marker--active',_0xadc31f));}}};}_0x9e7ac1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x17d3cb),_0x9e7ac1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x17d3cb),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x448a1d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2b9f8a,_0x48f45c,_0x20a711)=>{_0x20a711['options']['showSuggestionHighlights']&&_0x448a1d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2b9f8a,_0x48f45c,_0x20a711);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3b4570,_0x4077d0,_0x51b571)=>{const {type:_0x396b2c,id:_0x3538e9}=_0x9e7ac1['_splitMarkerName'](_0x4077d0['markerName']),_0x4d11fa=_0x9e7ac1['getSuggestion'](_0x3538e9),_0x775d4f=_0x4d11fa['data'];if('formatBlock'!=_0x4d11fa['type']||!_0x775d4f||'setTableColumnHeader'!=_0x775d4f['commandName'])return;const _0x3c63b5=_0x51b571['mapper']['markerNameToElements'](_0x4077d0['markerName']);if(_0x3c63b5){for(const _0x5269c7 of _0x3c63b5)_0x51b571['writer']['removeClass']('ck-suggestion-marker-'+_0x396b2c,_0x5269c7),_0x51b571['writer']['removeClass']('ck-suggestion-marker--active',_0x5269c7),_0x51b571['writer']['removeAttribute']('data-suggestion',_0x5269c7),_0x51b571['mapper']['unbindElementFromMarkerName'](_0x5269c7,_0x4077d0['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d139c=this['editor'],_0x69e125=_0x2d139c['locale'];function _0x5b55b8(_0x124fb6){return{'type':'format','content':o(_0x69e125,'*Format:*\x20%0',_0x124fb6)};}_0x2d139c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f4ed5=>{if('formatBlock'!=_0x5f4ed5['type'])return;const {data:_0x427b61}=_0x5f4ed5;if(_0x427b61){if('setTableRowHeader'==_0x427b61['commandName']){const _0x5b9f1c=_0x427b61['commandParams'][0x0]['forceValue'];return _0x5b55b8(o(_0x69e125,_0x5b9f1c?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x427b61['commandName']){const _0x2692da=_0x427b61['commandParams'][0x0]['forceValue'];return _0x5b55b8(o(_0x69e125,_0x2692da?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x2e177d=>[_0x2e177d,null]));class _t extends _0x35dcdc{static get['requires'](){return[It];}['afterInit'](){const _0x4eade3=this['editor'];if(!_0x4eade3['plugins']['has']('TableClipboard'))return;const _0x3bf1ac=_0x4eade3['plugins']['get']('TrackChangesEditing'),_0x206cc0=_0x4eade3['plugins']['get']('TableUtils'),_0xc9ec1e=_0x4eade3['plugins']['get'](It),_0x4955f9=_0x4eade3['plugins']['get']('TableClipboard');_0xc9ec1e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4eade3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4eade3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5ec3cc=null;_0x4eade3['model']['on']('insertContent',(_0x494fe3,_0x426ed9)=>{const [_0x4876b4,_0x2d9a9b]=_0x426ed9,_0x1499b4=_0x426ed9[_0x426ed9['length']-0x1];_0x1499b4&&_0x1499b4['forceDefaultExecution']||_0x3bf1ac['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2cdcd6,_0x12af93,_0x55a0e6,_0x31c29f,_0x1542b4){if(_0x12af93&&!_0x12af93['is']('documentSelection'))return!0x1;const _0x6d682c=_0x1542b4['getTableIfOnlyTableInContent'](_0x2cdcd6,_0x55a0e6);if(!_0x6d682c||!Re(_0x6d682c,void 0x0,_0x31c29f))return!0x1;const _0x1bd180=_0x31c29f['getSelectionAffectedTableCells'](_0x55a0e6['document']['selection']);if(!_0x1bd180['length'])return!0x1;const _0x4f5b24=_0x1bd180[0x0]['findAncestor']('table'),_0x4f040c=_0x31c29f['getRowIndexes'](_0x1bd180),_0x554da1=_0x31c29f['getColumnIndexes'](_0x1bd180),_0xfd0730={'startRow':_0x4f040c['first'],'endRow':_0x4f040c['last'],'startColumn':_0x554da1['first'],'endColumn':_0x554da1['last']};return 0x1==_0x1bd180['length']&&(_0xfd0730['endRow']+=_0x31c29f['getRows'](_0x6d682c)-0x1,_0xfd0730['endColumn']+=_0x31c29f['getColumns'](_0x6d682c)-0x1),Re(_0x4f5b24,_0xfd0730,_0x31c29f);}(_0x4876b4,_0x2d9a9b,_0x4eade3['model'],_0x206cc0,_0x4955f9)&&(_0x494fe3['stop'](),_0x5ec3cc={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4eade3['model']['change'](()=>{_0x4eade3['model']['insertContent'](_0x426ed9[0x0],_0x426ed9[0x1],_0x426ed9[0x2],{'forceDefaultExecution':!0x0});const _0x3ca957=_0x4bdc2b(),{rowInsertionRanges:_0x24b89a,columnInsertionRanges:_0x1c831a,insertionRanges:_0x5e25ed,deletionRanges:_0x40cc2a,cells:_0x18e75f}=_0x5ec3cc;_0x24b89a['length']&&_0x3bf1ac['markMultiRangeInsertion'](_0x24b89a,'tablePasteRow',{'tablePasteChainId':_0x3ca957}),_0x1c831a['length']&&_0x3bf1ac['markMultiRangeInsertion'](_0x1c831a,'tablePasteColumn',{'tablePasteChainId':_0x3ca957}),_0x5e25ed['length']&&(_0x3bf1ac['markMultiRangeInsertion'](_0x5e25ed,'tablePaste',{'tablePasteChainId':_0x3ca957,'skipNestingCheck':!0x0}),_0x5e25ed['forEach'](_0xab6ae6=>_0xab6ae6['detach']?.())),_0x40cc2a['length']&&(_0x3bf1ac['markMultiRangeDeletion'](_0x40cc2a,'tablePaste',{'tablePasteChainId':_0x3ca957,'skipNestingCheck':!0x0}),_0x40cc2a['forEach'](_0x175878=>_0x175878['detach']?.()));const _0x104cac=_0x3bf1ac['markMultiRangeBlockFormat'](_0x18e75f['map'](({element:_0x376439})=>_0x376439),{'formatGroupId':_0x4bdc2b()},[],'tablePasteCell',{'tablePasteChainId':_0x3ca957});if(_0x104cac){const _0x3a4f82=_0x104cac['getMarkers'](),_0x46f601=[];for(const {element:_0x2059ea,attributes:_0x32824b}of _0x18e75f){if(!_0x32824b)continue;const _0x16f40c=_0x4eade3['model']['createRangeOn'](_0x2059ea),_0x308844=_0x3a4f82['find'](_0x13e24b=>_0x13e24b['getRange']()['isEqual'](_0x16f40c));_0x308844&&_0x46f601['push']([_0x308844['name'],_0x32824b]);}_0x46f601['length']&&_0x104cac['setAttribute']('markerAttributes',Object['fromEntries'](_0x46f601));}_0x5ec3cc=null;}));},{'priority':_0x2c006d['high']+0xa}),_0x4eade3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x40064c,_0x575b90)=>{const [_0x1e44c1,_0x2e5c18,,_0x3cd6e7]=_0x575b90;if(!_0x5ec3cc)return;_0x40064c['stop']();const _0x58f995=_0x1e44c1['cell'],_0x3e39e6=_0x2e5c18,_0x32bb70=ke(_0x58f995),_0x25451a=ke(_0x3e39e6);_0x40064c['return']=_0x58f995;let _0x5950a1=null,_0x4dd7d6=null;if(_0x25451a||_0x32bb70){if(_0x32bb70&&!_0x25451a){_0x3cd6e7['remove'](_0x58f995['getChild'](0x0));for(const _0x16382e of Array['from'](_0x3e39e6['getChildren']()))_0x3cd6e7['insert'](_0x16382e,_0x58f995,'end');const _0x324efe=_0x5ec3cc['rowInsertionIndexes']['includes'](_0x1e44c1['row']),_0x5414ef=_0x5ec3cc['columnInsertionIndexes']['includes'](_0x1e44c1['column']);_0x324efe||_0x5414ef||(_0x5950a1=_0x343169['fromRange'](_0x3cd6e7['createRangeIn'](_0x58f995)));}else _0x25451a&&!_0x32bb70&&(_0x4dd7d6=_0x3cd6e7['createRangeIn'](_0x58f995));}else{const _0x35bbfb=_0x3cd6e7['createElement']('tableCellSuggestion'),_0x273f5a=_0x3cd6e7['createElement']('tableCellSuggestion');_0x3cd6e7['wrap'](_0x3cd6e7['createRangeIn'](_0x58f995),_0x273f5a),_0x3cd6e7['insert'](_0x35bbfb,_0x58f995,0x0);for(const _0x6cfab7 of Array['from'](_0x3e39e6['getChildren']()))_0x3cd6e7['insert'](_0x6cfab7,_0x35bbfb,'end');_0x5950a1=_0x343169['fromRange'](_0x3cd6e7['createRangeOn'](_0x35bbfb)),_0x4dd7d6=_0x343169['fromRange'](_0x3cd6e7['createRangeOn'](_0x273f5a));}const _0x41564f=Array['from'](_0x3e39e6['getAttributes']())['filter'](([_0x5890b3])=>Pe['includes'](_0x5890b3));_0x5ec3cc['cells']['push']({'element':_0x58f995,'attributes':_0x41564f['length']?Object['fromEntries'](_0x41564f):null}),_0x5950a1&&_0x5ec3cc['insertionRanges']['push'](_0x5950a1),_0x4dd7d6&&_0x5ec3cc['deletionRanges']['push'](_0x4dd7d6);},{'priority':'high'}),_0x206cc0['on']('insertColumns',(_0x37ea1c,_0x5de033)=>{const [_0x495c5a,_0x1cf701={}]=_0x5de033;if(!_0x5ec3cc)return;const _0x3dbd3e=_0x1cf701['at']||0x0,_0x1e64c1=_0x1cf701['columns']||0x1;_0x5ec3cc['columnInsertionIndexes']=new Array(_0x1e64c1)['fill'](_0x3dbd3e)['map']((_0x27bd64,_0x1fd738)=>_0x27bd64+_0x1fd738);for(const {cell:_0x5b8304}of _0x206cc0['createTableWalker'](_0x495c5a,{'startColumn':_0x3dbd3e,'endColumn':_0x3dbd3e+_0x1e64c1-0x1}))_0x5ec3cc['columnInsertionRanges']['push'](_0x4eade3['model']['createRangeOn'](_0x5b8304));},{'priority':'low'}),_0x206cc0['on']('insertRows',(_0x463f62,_0x4bae4b)=>{const [_0x218636,_0x45d5b4={}]=_0x4bae4b;if(!_0x5ec3cc)return;const _0x1fecc7=_0x45d5b4['at']||0x0,_0x237691=_0x45d5b4['rows']||0x1;_0x5ec3cc['rowInsertionIndexes']=new Array(_0x237691)['fill'](_0x1fecc7)['map']((_0x1b20a7,_0x38256e)=>_0x1b20a7+_0x38256e);for(const {cell:_0x4d06e4}of _0x206cc0['createTableWalker'](_0x218636,{'startRow':_0x1fecc7,'endRow':_0x1fecc7+_0x237691-0x1}))_0x5ec3cc['rowInsertionRanges']['push'](_0x4eade3['model']['createRangeOn'](_0x4d06e4));},{'priority':'low'}),_0x3bf1ac['descriptionFactory']['registerDescriptionCallback'](_0x314a08=>{if(_0x314a08['subType']&&_0x314a08['subType']['startsWith']('tablePaste'))return _0x314a08['previous']?{}:{'type':'insertion','content':o(_0x4eade3['locale'],'*Replace\x20table\x20cells*')};});const _0x565cc3=()=>!0x1;for(const _0xc606f5 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3bf1ac['_suggestionFactory']['registerCustomCallback']('insertion',_0xc606f5,'join',_0x565cc3),_0x3bf1ac['_suggestionFactory']['registerCustomCallback']('deletion',_0xc606f5,'join',_0x565cc3),_0x3bf1ac['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xc606f5,'join',_0x565cc3);_0x3bf1ac['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x565cc3),_0x3bf1ac['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x15069e,_0x59a79c,_0x457299)=>{const _0x1aca9f=_0x15069e['map'](_0x1485fc=>_0x1485fc['getContainedElement']())['filter'](_0x2dfaab=>_0x2dfaab),_0x1c407c=new Map(_0x1aca9f['map'](_0x24470c=>[_0x24470c,null]));if(_0x5ec3cc){for(const {element:_0x253440,attributes:_0x35d64d}of _0x5ec3cc['cells'])_0x35d64d&&_0x1c407c['set'](_0x253440,_0x35d64d);}else{if(_0x457299&&_0x457299['markerAttributes'])for(const [_0x29718a,_0x3904a4]of Object['entries'](_0x457299['markerAttributes'])){const _0x1b2e11=_0x4eade3['model']['markers']['get'](_0x29718a),_0x30c440=_0x1b2e11?_0x1b2e11['getRange']()['getContainedElement']():null;_0x30c440&&_0x1c407c['set'](_0x30c440,_0x3904a4);}}_0x4eade3['model']['change'](_0xd8f3a5=>{for(const [_0x1909f1,_0x581c9b]of _0x1c407c)_0xd8f3a5['setAttributes']({...we,..._0x581c9b},_0x1909f1);});});const _0x1442ef=(_0x4d43cd,_0x4f545b)=>{_0x3bf1ac['_suggestionFactory']['registerCustomCallback'](_0x4d43cd,'tablePaste',_0x4f545b,(_0x4257c6,_0x5143d0,_0x1d760c)=>{_0x4eade3['model']['change'](_0x3004ce=>{const _0x2c3601=[];for(const _0x1feafb of _0x4257c6){const _0x27d097=_0x1feafb['start']['nodeAfter'];_0x27d097['is']('element','tableCellSuggestion')&&_0x2c3601['push'](_0x27d097);}_0x3bf1ac['_suggestionFactory']['getSuggestionCallback'](_0x4d43cd,null,_0x4f545b)(_0x4257c6,_0x5143d0,_0x1d760c);for(const _0x14cd5e of _0x2c3601)'$graveyard'!=_0x14cd5e['root']['rootName']&&_0x3004ce['unwrap'](_0x14cd5e);});});};_0x1442ef('insertion','accept'),_0x1442ef('insertion','discard'),_0x1442ef('deletion','accept'),_0x1442ef('deletion','discard'),_0x3bf1ac['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5750c3=>{const _0x427b0a=_0x5750c3['map'](_0x48e18a=>_0x48e18a['getContainedElement']()),_0x1da4c8=_0x427b0a[0x0]['findAncestor']('table'),{minRow:_0x35b549,maxRow:_0xf86bf5}=_0xc9ec1e['_getCoordsForCells'](_0x427b0a);_0x206cc0['removeRows'](_0x1da4c8,{'at':_0x35b549,'rows':_0xf86bf5-_0x35b549+0x1});}),_0x3bf1ac['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2b54cb=>{const _0x14ae08=_0x2b54cb['map'](_0xf0d938=>_0xf0d938['getContainedElement']()),_0x1da13d=_0x14ae08[0x0]['findAncestor']('table'),{minColumn:_0x182032,maxColumn:_0x42ec95}=_0xc9ec1e['_getCoordsForCells'](_0x14ae08);_0x206cc0['removeColumns'](_0x1da13d,{'at':_0x182032,'columns':_0x42ec95-_0x182032+0x1});});const _0x5c11d4=(_0x26e6a1,_0x2fb8b0)=>{if(!_0x2fb8b0['subType']||!_0x2fb8b0['subType']['startsWith']('tablePaste'))return;const _0x27b0e4=_0x2fb8b0['attributes']['tablePasteChainId'],_0x4d7fd7=_0x3bf1ac['getSuggestions']()['filter'](_0x3bde20=>_0x3bde20['isInContent']&&_0x3bde20['attributes']&&_0x3bde20['attributes']['tablePasteChainId']==_0x27b0e4);_0x4d7fd7['length']&&_0x2fb8b0['getAllAdjacentSuggestions']()['length']!=_0x4d7fd7['length']&&_0x4d7fd7['reduce']((_0x3a88df,_0x3a87ca)=>(_0x3a88df['next']=_0x3a87ca,_0x3a87ca['previous']=_0x3a88df,_0x3a87ca));};function _0x3f5cb1(_0x24ff2b,_0x75f39f=!0x0){const {id:_0x41f5fa,authorId:_0x18770e}=_0x3bf1ac['_splitMarkerName'](_0x24ff2b['markerName']),_0xe86543=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x797522=_0x3bf1ac['activeMarkers']['includes'](_0x24ff2b['markerName']);return _0x797522&&_0xe86543['push']('ck-suggestion-marker--active'),{'classes':_0xe86543,'attributes':{'data-suggestion':_0x41f5fa,'data-author-id':_0x18770e},'priority':_0x797522&&_0x75f39f?0xbc2:0xbb8};}_0x3bf1ac['on']('suggestionLoaded',_0x5c11d4,{'priority':'high'}),_0x3bf1ac['on']('suggestionUnloaded',_0x5c11d4,{'priority':'high'}),_0x4eade3['model']['document']['registerPostFixer'](()=>{let _0xd562df=!0x1;const _0x3ec491=Array['from'](_0x4eade3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1376bb,data:_0x279d66}of _0x3ec491){const {group:_0x37b503,type:_0xe18e0a,id:_0x3cd6ba}=_0x3bf1ac['_splitMarkerName'](_0x1376bb);if('suggestion'!=_0x37b503||'deletion'!=_0xe18e0a||_0x279d66['oldRange'])continue;if(!_0x3bf1ac['hasSuggestion'](_0x3cd6ba))continue;const _0x53817b=_0x3bf1ac['getSuggestion'](_0x3cd6ba)['getRanges'](),_0x1efbb0=_0x4eade3['plugins']['get']('Users')['me'];for(const _0x49bfd2 of _0x3bf1ac['getSuggestions']()){if(!_0x49bfd2['isInContent']||_0x49bfd2['author']!=_0x1efbb0)continue;if('formatBlock'!=_0x49bfd2['type']||'tablePasteCell'!=_0x49bfd2['subType'])continue;if(_0x49bfd2['getRanges']()['every'](_0x5e27dd=>_0x53817b['some'](_0x18f52a=>_0x18f52a['containsRange'](_0x5e27dd,!0x0)))){for(const _0x4389d0 of _0x49bfd2['getAllAdjacentSuggestions']())_0x4389d0['isInContent']&&(_0x4389d0['discard'](),_0xd562df=!0x0);}}}return _0xd562df;}),_0x4eade3['model']['document']['registerPostFixer'](_0x5bc1cc=>{const _0x4c80f6=_0x4eade3['commands']['get']('redo');if(!_0x4c80f6||!_0x4c80f6['_createdBatches']['has'](_0x5bc1cc['batch']))return!0x1;let _0x3440a1=!0x1;const _0xe637f2=_0x4eade3['plugins']['get']('Users')['me'],_0x2a8ed9=_0x4eade3['model']['document']['differ']['getChanges'](),_0x24fc09=Array['from'](_0x4eade3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2952c7,data:_0xfcf18a})=>{const {group:_0x4e0847,subType:_0x27be6e,authorId:_0x414216}=_0x3bf1ac['_splitMarkerName'](_0x2952c7);return'suggestion'==_0x4e0847&&'tablePaste'==_0x27be6e&&_0x414216==_0xe637f2['id']&&!_0xfcf18a['oldRange'];});for(const _0x1d991e of _0x2a8ed9){if('insert'!=_0x1d991e['type']||'tableCellSuggestion'!=_0x1d991e['name']||0x1!=_0x1d991e['length'])continue;const _0x370bba=_0x5bc1cc['createRange'](_0x1d991e['position'],_0x1d991e['position']['getShiftedBy'](0x1));if(!_0x24fc09['find'](({data:_0x594e27})=>_0x594e27['newRange']['isEqual'](_0x370bba))){for(const {name:_0x335295,data:_0x33e29e}of _0x24fc09)if(_0x370bba['containsRange'](_0x33e29e['newRange'])){_0x5bc1cc['updateMarker'](_0x335295,{'range':_0x370bba}),_0x3440a1=!0x0;break;}}}return _0x3440a1;}),_0x4eade3['model']['document']['registerPostFixer'](_0x3d692f=>{let _0x4b4c51=!0x1;const _0x5a3bb2=_0x4eade3['plugins']['get']('Users')['me'],_0x26d31d=_0x3bf1ac['getSuggestions']()['filter'](_0x47311f=>_0x47311f['isInContent']&&_0x47311f['author']==_0x5a3bb2),_0x4b8d9a=new Set(),_0x38f43a=new Set();for(const _0x3c2fce of _0x26d31d)if('tablePaste'==_0x3c2fce['subType'])for(const _0x5c1b9b of _0x3c2fce['getMarkers']()){const _0x445c9a=_0x5c1b9b['getRange']()['getContainedElement']();if(_0x445c9a){if(_0x445c9a['is']('element','tableCellSuggestion')&&ke(_0x445c9a)){_0x3c2fce['removeMarker'](_0x5c1b9b['name']),_0x4b8d9a['add'](_0x445c9a),_0x4b4c51=!0x0;const _0x54f765=_0x445c9a['nextSibling'],_0x349846=_0x445c9a['previousSibling'],_0x1a082a=_0x54f765&&_0x54f765['is']('element','tableCellSuggestion'),_0x596a30=_0x349846&&_0x349846['is']('element','tableCellSuggestion');_0x1a082a&&!_0x4b8d9a['has'](_0x54f765)&&_0x38f43a['add'](_0x54f765),_0x596a30&&!_0x4b8d9a['has'](_0x349846)&&_0x38f43a['add'](_0x349846);}else _0x445c9a['is']('element','paragraph')&&_0x445c9a['isEmpty']&&(_0x3c2fce['removeMarker'](_0x5c1b9b['name']),_0x4b4c51=!0x0);}}else{if('tablePasteCell'==_0x3c2fce['subType']){if(!_0x3c2fce['attributes']||!_0x3c2fce['attributes']['tablePasteChainId'])continue;const _0x34bf1b=_0x3c2fce['attributes']['markerAttributes'];if(_0x34bf1b&&Object['keys'](_0x34bf1b)['length'])continue;const _0x7a3be9=_0x3c2fce['attributes']['tablePasteChainId'];let _0x311bec=!0x0,_0x47ebd3=!0x0;for(const _0x3cad5b of _0x26d31d)if(_0x3cad5b['subType']&&_0x3cad5b['subType']['startsWith']('tablePaste')){if(!_0x3cad5b['attributes']['tablePasteChainId']){_0x47ebd3=!0x1;break;}if(_0x3cad5b['id']!=_0x3c2fce['id']&&_0x3cad5b['attributes']['tablePasteChainId']==_0x7a3be9){_0x311bec=!0x1;break;}}_0x47ebd3&&_0x311bec&&(_0x3c2fce['removeMarkers'](),_0x4b4c51=!0x0);}}for(const _0x5a52e9 of _0x4b8d9a)_0x3d692f['remove'](_0x5a52e9);for(const _0x5dff96 of _0x38f43a)_0x3d692f['unwrap'](_0x5dff96);return _0x4b4c51;}),_0x4eade3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x29cf58=>_0x3f5cb1(_0x29cf58),'converterPriority':'high'}),_0x4eade3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5bff36,_0x1098fc)=>_0x1098fc['options']['showSuggestionHighlights']?_0x3f5cb1(_0x5bff36,!0x1):null,'converterPriority':'high'});const _0x1c2152=_0x4eade3['editing']['view'];this['listenTo'](_0x1c2152['document'],'clipboardOutput',(_0xa421a7,_0x47337d)=>{const _0x42246a=[];for(const _0x4a6ffe of _0x1c2152['createRangeIn'](_0x47337d['content'])['getItems']())_0x4a6ffe['is']('element','suggestion-td')&&_0x42246a['push'](_0x4a6ffe);_0x1c2152['change'](_0x11a707=>{for(const _0x2e4352 of _0x42246a)_0x11a707['move'](_0x11a707['createRangeIn'](_0x2e4352),_0x11a707['createPositionBefore'](_0x2e4352)),_0x11a707['remove'](_0x2e4352);});});}}function ke(_0x21a03f){if(_0x21a03f['isEmpty'])return!0x0;const _0x33b5e3=_0x21a03f['getChild'](0x0);return _0x33b5e3['is']('element','paragraph')&&_0x33b5e3['isEmpty'];}function Re(_0x7a845d,_0x3ae913={},_0x5e9a73){for(const {isAnchor:_0x5e7174,cellHeight:_0x480790,cellWidth:_0x2c53ea}of _0x5e9a73['createTableWalker'](_0x7a845d,{'includeAllSlots':!0x0,..._0x3ae913}))if(!_0x5e7174||0x1!=_0x480790||0x1!=_0x2c53ea)return!0x1;return!0x0;}class Nt extends _0x35dcdc{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x44e0e7=this['editor']['plugins']['get']('TrackChangesEditing');_0x44e0e7['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x44e0e7['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x44e0e7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x44e0e7['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x44e0e7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x44e0e7['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5574b1,_0x87dc74){const _0x26d70f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x135d19=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4e7b3d=_0x87dc74['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4d794b=_0x135d19['getColumnGroupElement'](_0x4e7b3d);let _0x117066=_0x4d794b?_0x135d19['getTableColumnsWidths'](_0x4d794b):null,_0x1a7343=_0x4e7b3d['getAttribute']('tableWidth')||null;const _0x1b124e=_0x87dc74['tableWidth']||_0x1a7343,_0x3fd001=_0x87dc74['columnWidths']||_0x117066,_0x248346=this['editor']['plugins']['get']('Users')['me'];for(const _0x4031e3 of _0x26d70f['getSuggestions']()){const _0x86677c=_0x4031e3['getContainedElement']();if('resizeTable'===_0x4031e3['subType']&&_0x86677c===_0x4e7b3d){_0x4031e3['author']!==_0x248346&&_0x4031e3['discard']();const _0x33d0b2=_0x4031e3['data']['commandParams'];_0x1a7343=_0x33d0b2[0x0]['tableWidth'],_0x117066=_0x33d0b2[0x0]['columnWidths'];break;}}_0x5574b1({'table':_0x4e7b3d,'tableWidth':_0x1b124e,'columnWidths':_0x3fd001}),_0x26d70f['markBlockFormat'](_0x4e7b3d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1a7343,'columnWidths':_0x117066}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x582e07){if('formatBlock'!=_0x582e07['type']&&'formatInline'!=_0x582e07['type'])return;const {data:_0x27c322}=_0x582e07;if(_0x27c322&&'resizeTable'===_0x27c322['formatGroupId']){const _0x1e05bf='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1e05bf)};}}}class Dt extends _0x35dcdc{['afterInit'](){const _0x1f9f68=this['editor'];_0x1f9f68['plugins']['has']('Template')&&_0x1f9f68['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x35dcdc{['afterInit'](){const _0xbdef2d=this['editor'];if(!_0xbdef2d['commands']['get']('insertTableOfContents'))return;_0xbdef2d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x512cba=_0xbdef2d['plugins']['get']('TrackChangesEditing'),_0x37a559=_0xbdef2d['locale'];_0x512cba['descriptionFactory']['registerElementLabel']('tableOfContents',_0x214db3=>o(_0x37a559,'ELEMENT_TABLE_OF_CONTENTS',_0x214db3));}}class $t extends _0x35dcdc{['afterInit'](){const _0xbe708e=this['editor'];if(!_0xbe708e['plugins']['has']('Title'))return;const _0x344336=_0xbe708e['plugins']['get']('TrackChangesEditing');_0x344336['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xbe708e['locale'],'ELEMENT_TITLE')),_0xbe708e['model']['document']['registerPostFixer'](_0x331644=>{let _0x59d6f2=!0x1;const _0x118f96=Array['from'](_0xbe708e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c85fa,data:_0x4bcc9b}of _0x118f96){const {group:_0x3b2c0a}=_0x344336['_splitMarkerName'](_0x5c85fa);if('suggestion'!==_0x3b2c0a||!_0x4bcc9b['newRange'])continue;const _0x573859=_0x4bcc9b['newRange'],_0x40dad2=_0x573859['end']['nodeBefore'];if(!_0x40dad2||!_0x40dad2['is']('element','title-content'))continue;if(!_0x573859['start']['isTouching'](_0x573859['end']))continue;const _0x28e446=_0xbe708e['model']['schema']['getNearestSelectionRange'](_0x573859['end'],'forward');if(_0x28e446&&_0x28e446['isCollapsed']){const _0x1ffb5d=_0x331644['createRange'](_0x573859['start'],_0x28e446['start']);_0x1ffb5d['isEqual'](_0x573859)||(_0x331644['updateMarker'](_0x5c85fa,{'range':_0x1ffb5d}),_0x59d6f2=!0x0);}_0x59d6f2||(_0x331644['removeMarker'](_0x5c85fa),_0x59d6f2=!0x0);}return _0x59d6f2;});}}class Bt extends _0x35dcdc{['afterInit'](){const _0x33a938=this['editor'],_0x38b726=_0x33a938['plugins']['get']('TrackChangesEditing');_0x33a938['plugins']['has']('UndoEditing')&&(_0x38b726['enableCommand']('undo'),_0x38b726['enableCommand']('redo'));}}class xt extends _0x35dcdc{static get['requires'](){return[It];}['afterInit'](){const _0x5c77b6=this['editor'];if(!_0x5c77b6['plugins']['has']('TableCaptionEditing'))return;_0x5c77b6['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x35dcdc{['tableProperties'];['tableCellProperties'];constructor(_0x521cfd){super(_0x521cfd),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';}['afterInit'](){const _0x51962a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1f34c5 of this['tableProperties'])_0x51962a['enableCommand'](_0x1f34c5,(_0x52e93f,_0x3f189c)=>{const _0x4a1496=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1f34c5,[_0x4a1496],this['tableProperties'],'tableProperties',_0x52e93f,_0x3f189c);});_0x51962a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x51962a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x51962a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x534c36,_0x38ba69)=>this['handleDiscardAction'](this['tableProperties'],_0x534c36,_0x38ba69)),_0x51962a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x49c0e2 of this['tableCellProperties'])_0x51962a['enableCommand'](_0x49c0e2,(_0x3788cd,_0x29cb4e)=>{const _0x2f2a27=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x49c0e2,_0x2f2a27,this['tableCellProperties'],'tableCellProperties',_0x3788cd,_0x29cb4e);});_0x51962a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x51962a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x51962a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4a2bab,_0x2ae9fb)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4a2bab,_0x2ae9fb)),_0x51962a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x51962a['descriptionFactory']['registerDescriptionCallback'](_0x97654e=>this['handleSuggestionDescription'](_0x97654e));}['_handlePropertyChange'](_0x3803ae,_0x140e6d,_0x2ed639,_0x5b0694,_0x22d7e0,_0x57eff4){const _0x3af618=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x57eff4['batch'],()=>{for(const _0x58120e of _0x140e6d){if(this['_getSuggestion'](_0x58120e,_0x5b0694))_0x22d7e0(_0x57eff4);else{const _0x13210c={};for(const _0xfb94c7 of _0x2ed639){const _0x368c2e=_0x58120e['getAttribute'](_0xfb94c7);void 0x0!==_0x368c2e&&(_0x13210c[_0xfb94c7]=_0x368c2e);}_0x22d7e0(_0x57eff4),_0x3af618['markBlockFormat'](_0x58120e,{'commandParams':[_0x13210c]},[],_0x5b0694);}}});}['handleDiscardAction'](_0x36cb6d,_0x334975,_0x36c2ae){const _0xa6713d=_0x334975[0x0]['start']['nodeAfter'],_0x2fa710=_0x36c2ae['commandParams'][0x0];this['editor']['model']['change'](_0x369510=>{for(const _0x42b065 of _0x36cb6d)void 0x0!==_0x2fa710[_0x42b065]?_0x369510['setAttribute'](_0x42b065,_0x2fa710[_0x42b065],_0xa6713d):_0x369510['removeAttribute'](_0x42b065,_0xa6713d);});}['handleSuggestionDescription'](_0x2580b4){if(_0x2580b4['data'])switch(_0x2580b4['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'](_0x4aa70f,_0x2e50c8){const _0x45f9d8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x121e62 of _0x45f9d8['getSuggestions']({'skipNotAttached':!0x0})){const _0xd77ae0=_0x121e62['getContainedElement']();if(_0x121e62['subType']===_0x2e50c8&&_0xd77ae0===_0x4aa70f)return _0x121e62;}return null;}}const m='$elementName';class p extends _0x35dcdc{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4a9a53,_0x4ea8ef,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x3b0344){function _0x1db311(_0x24cf4f){return _0x24cf4f['map'](_0x58b61d=>String['fromCharCode'](_0x58b61d))['join']('');}super(_0x3b0344),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x714b80,_0x2f0c85,_0x3934eb,_0x13937e)=>{this['_model']['change'](()=>{for(const _0x32061b of[..._0x13937e,..._0x3934eb])this['_model']['markers']['has'](_0x32061b)&&_0x3b0344['editing']['reconvertMarker'](_0x32061b);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3b0344['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(),_0x3b0344['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3b0344['config']['get']('trackChanges.trackFormatChanges'),_0x3b0344['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3b0344['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3b0344,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1db311([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1db311([0x34,0x30,0x34,0x38,0x32,0x30,0x31,0x32]);}['init'](){const _0x1c9d57=this['editor'],_0x4e430c=(_0x38d8ad,_0x4a7c33)=>{if('attribute'!=_0x38d8ad)return'ck-suggestion-marker-'+_0x38d8ad;const _0x1547ff=_0x4a7c33['split']('|')[0x0];return this['_isBlockAttribute'](_0x1547ff)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1c9d57['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x810a81=>{const {id:_0x2ba117,authorId:_0xc13e08,type:_0x1452ae,subType:_0x3c858d}=this['_splitMarkerName'](_0x810a81['markerName']),_0xdba41b=['ck-suggestion-marker',_0x4e430c(_0x1452ae,_0x3c858d)];let _0x515b93=0xbb8;return this['activeMarkers']['includes'](_0x810a81['markerName'])&&(_0xdba41b['push']('ck-suggestion-marker--active'),_0x515b93=0xbc2),'deletion'==_0x1452ae&&(_0x515b93+=0x5),{'classes':_0xdba41b,'attributes':{'data-suggestion':_0x2ba117,'data-author-id':_0xc13e08},'priority':_0x515b93};}}),_0x1c9d57['conversion']['for']('dataDowncast')['add'](_0xf6a975=>{_0xf6a975['on']('addMarker:suggestion',(_0x1590a1,_0x22180a,_0x113873)=>{if(!_0x113873['options']['showSuggestionHighlights'])return;const _0x15d9cb=_0x22180a['item'];if(!_0x15d9cb)return;const _0x521046=_0x113873['mapper']['toViewElement'](_0x15d9cb);_0x1c9d57['model']['schema']['isObject'](_0x15d9cb)&&_0x521046&&!_0x521046['getCustomProperty']('widget')&&_0x521046['is']('containerElement')&&_0x24a831(_0x521046,_0x113873['writer']);},{'priority':'high'});}),_0x1c9d57['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x8b45ac,_0x2f5ed)=>{if(!_0x2f5ed['options']['showSuggestionHighlights'])return null;const {type:_0x50c866,subType:_0x43dbc6}=this['_splitMarkerName'](_0x8b45ac['markerName']);return{'classes':['ck-suggestion-marker',_0x4e430c(_0x50c866,_0x43dbc6)],'priority':0xbb8};}});const _0x573615=({showActiveMarkers:_0x58d743=!0x0,isAttributeSuggestion:_0xd15efe=!0x1}={})=>(_0x4a4314,_0x57015d,_0x5996d2)=>{if(!_0x57015d['item'])return;const {id:_0x25b757,authorId:_0x17d33e}=this['_splitMarkerName'](_0x57015d['markerName']);if(_0xd15efe){const _0x11ac9e=this['_suggestions']['get'](_0x25b757),_0x51a5f0=this['_getAttributeKey'](_0x11ac9e);if(!this['_isBlockAttribute'](_0x51a5f0))return;}if(_0x57015d['item']['is']('selection'))return void _0x5996d2['consumable']['consume'](_0x57015d['item'],_0x4a4314['name']);const _0x400cb9=_0x5996d2['mapper']['toViewElement'](_0x57015d['item']);if(_0x57015d['item']['is']('element')&&_0x1c9d57['model']['schema']['isBlock'](_0x57015d['item'])&&!_0x400cb9['getCustomProperty']('addHighlight')){_0x5996d2['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x400cb9),_0x5996d2['writer']['setAttribute']('data-suggestion',_0x25b757,_0x400cb9),_0x5996d2['writer']['setAttribute']('data-author-id',_0x17d33e,_0x400cb9),_0x5996d2['mapper']['bindElementToMarker'](_0x400cb9,_0x57015d['markerName']),_0x58d743&&(this['activeMarkers']['includes'](_0x57015d['markerName'])?_0x5996d2['writer']['addClass']('ck-suggestion-marker--active',_0x400cb9):_0x5996d2['writer']['removeClass']('ck-suggestion-marker--active',_0x400cb9));for(const _0x58a441 of _0x1c9d57['model']['createRangeIn'](_0x57015d['item'])['getItems']())_0x5996d2['consumable']['consume'](_0x58a441,_0x4a4314['name']);_0x5996d2['consumable']['consume'](_0x57015d['item'],_0x4a4314['name']);}};_0x1c9d57['conversion']['for']('dataDowncast')['add'](_0x1b9504=>{_0x1b9504['on']('addMarker:suggestion:formatBlock',(_0x15caba,_0x387836,_0x3a2384)=>{_0x3a2384['options']['showSuggestionHighlights']&&_0x573615({'showActiveMarkers':!0x1})(_0x15caba,_0x387836,_0x3a2384);},{'priority':'highest'});}),_0x1c9d57['conversion']['for']('dataDowncast')['add'](_0x5a799e=>{_0x5a799e['on']('addMarker:suggestion:attribute',(_0x3ab4c,_0x50e969,_0x4c249d)=>{_0x4c249d['options']['showSuggestionHighlights']&&_0x573615({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3ab4c,_0x50e969,_0x4c249d);},{'priority':'highest'});}),_0x1c9d57['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3ab8ce,_0xdbf9e1)=>_0xdbf9e1['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3ab8ce['substr'](0xb)}}),_0x1c9d57['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x167420,{writer:_0x4313ab})=>{let _0x416e9c='suggestion:'+_0x167420['getAttribute']('suggestion-type')+':'+_0x167420['getAttribute']('id');return _0x167420['getAttribute']('marker-count')&&(_0x416e9c+=':'+_0x167420['getAttribute']('marker-count')),_0x4313ab['createElement']('$marker',{'data-name':_0x416e9c});}}),_0x1c9d57['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1c9d57['conversion']['for']('editingDowncast')['add'](_0x3dd0a6=>{_0x3dd0a6['on']('addMarker:suggestion:formatBlock',_0x573615(),{'priority':'high'});}),_0x1c9d57['conversion']['for']('editingDowncast')['add'](_0x3acd39=>{_0x3acd39['on']('addMarker:suggestion:attribute',_0x573615({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1c9d57['conversion']['for']('editingDowncast')['add'](_0x408c7a=>{_0x408c7a['on']('removeMarker:suggestion:formatBlock',(_0x11cc52,_0x310626,_0x551e46)=>{const _0x6ea5d5=_0x551e46['mapper']['markerNameToElements'](_0x310626['markerName']);if(_0x6ea5d5){for(const _0x2e396c of _0x6ea5d5)_0x2e396c['getCustomProperty']('addHighlight')||(_0x551e46['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2e396c),_0x551e46['writer']['removeAttribute']('data-suggestion',_0x2e396c),_0x551e46['writer']['removeAttribute']('data-author-id',_0x2e396c),_0x551e46['mapper']['unbindElementFromMarkerName'](_0x2e396c,_0x310626['markerName']));}},{'priority':'high'});}),_0x1c9d57['conversion']['for']('editingDowncast')['add'](_0x80a287=>{_0x80a287['on']('removeMarker:suggestion:attribute',(_0x1a4088,_0x5a47ea,_0x33662f)=>{const _0x18c003=_0x33662f['mapper']['markerNameToElements'](_0x5a47ea['markerName']);if(!_0x18c003)return;const {id:_0x5aa034}=this['_splitMarkerName'](_0x5a47ea['markerName']),_0xf9ada5=this['_suggestions']['get'](_0x5aa034),_0x281942=this['_getAttributeKey'](_0xf9ada5);if(this['_isBlockAttribute'](_0x281942)){for(const _0x34987a of _0x18c003)_0x34987a['getCustomProperty']('addHighlight')||(_0x33662f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x34987a),_0x33662f['writer']['removeAttribute']('data-suggestion',_0x34987a),_0x33662f['writer']['removeAttribute']('data-author-id',_0x34987a),_0x33662f['mapper']['unbindElementFromMarkerName'](_0x34987a,_0x5a47ea['markerName']));}},{'priority':'high'});}),_0x1c9d57['model']['document']['registerPostFixer'](_0x489319=>{let _0x4d2a6b=!0x1;const _0x26e6b1=Array['from'](_0x1c9d57['model']['document']['differ']['getChangedMarkers']()),_0xc44572=new Set();for(const {name:_0x38cc6b,data:_0x54ae99}of _0x26e6b1){const {group:_0x4e1872,type:_0x2a4af6,subType:_0x3d5204,id:_0x403a70}=this['_splitMarkerName'](_0x38cc6b);if('suggestion'!==_0x4e1872)continue;const _0xc735d7=this['_suggestions']['get'](_0x403a70);if(null!=_0x54ae99['newRange']){'formatInline'==_0x2a4af6&&(_0x4d2a6b=_0x4d2a6b||Ut(_0x54ae99['newRange'],_0x38cc6b,_0x489319,_0x1c9d57['model']['schema']));const _0x323b02='attribute'==_0x2a4af6&&this['_isBlockAttribute'](_0x3d5204['split']('|')[0x0]);if(_0x54ae99['newRange']['isCollapsed']||'$graveyard'==_0x54ae99['newRange']['root']['rootName']||'formatBlock'==_0x2a4af6&&!Ft(_0x54ae99['newRange'])||_0x323b02&&!Ft(_0x54ae99['newRange'])||'deletion'==_0x2a4af6&&!(!Vt(_0x1fd918=_0x54ae99['newRange'])&&!function(_0x4dbe06){return _0x4dbe06['start']['parent']==_0x4dbe06['end']['nodeBefore']&&_0x4dbe06['start']['isAtEnd'];}(_0x1fd918)))_0x489319['removeMarker'](_0x38cc6b),_0x4d2a6b=!0x0;else{if(!_0xc735d7||!_0xc735d7['isInContent'])continue;if(_0x54ae99['newRange']&&_0x54ae99['oldRange']&&_0x54ae99['newRange']['isEqual'](_0x54ae99['oldRange']))continue;_0xc44572['add'](_0xc735d7);}}}var _0x1fd918;return _0xc44572['size']>0x0&&(_0x4d2a6b=!!this['_joinWithAdjacentSuggestions'](_0xc44572)||_0x4d2a6b),_0x4d2a6b;}),_0x1c9d57['model']['document']['registerPostFixer'](_0x22603f=>{let _0x4881d1=!0x1;for(const _0x1e57b7 of _0x1c9d57['model']['document']['differ']['getChanges']())if('insert'==_0x1e57b7['type'])for(const _0x3762c7 of this['_suggestions']['values']()){if(_0x3762c7['isMultiRange']||!_0x3762c7['isInContent'])continue;const _0x1a312c='formatBlock'==_0x3762c7['type'],_0x3294f7=this['_getAttributeKey'](_0x3762c7),_0x1f1eb2=_0x3294f7&&this['_isBlockAttribute'](_0x3294f7);if(!_0x1a312c&&!_0x1f1eb2)continue;const _0x3d5a33=_0x3762c7['getFirstRange']();if(_0x3d5a33['start']['parent']!=_0x3d5a33['end']['parent']&&!_0x3d5a33['end']['isAtEnd']){const _0x3c2816=_0x1c9d57['model']['createPositionAt'](_0x3d5a33['start']['nodeAfter'],'end'),_0x28991d=_0x1c9d57['model']['createRange'](_0x3d5a33['start'],_0x3c2816);_0x22603f['updateMarker'](_0x3762c7['getFirstMarker'](),{'range':_0x28991d}),_0x4881d1=!0x0;}}return _0x4881d1;}),_0x1c9d57['model']['document']['registerPostFixer'](_0xc8e2aa=>this['_processAttributeChanges'](_0xc8e2aa)),_0x1c9d57['model']['document']['registerPostFixer'](_0x2d46a2=>!_0x2d46a2['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2d46a2)),_0x1c9d57['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1c9d57['model']['document']['on']('change:data',(_0x4f7a35,_0x196127)=>{if(!_0x196127['isLocal']||_0x196127['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x427c73=_0x1c9d57['model']['document']['differ']['getChanges']();if(0x0==_0x427c73['length'])return;const _0x530fe3=[],_0x2a0493=_0x427c73['filter'](_0x113c68=>'attribute'==_0x113c68['type']),_0x2ad0a8=_0x427c73['filter'](_0x251360=>'insert'==_0x251360['type']&&'$text'!=_0x251360['name']);for(const _0x573c7e of _0x2a0493)this['_isRegisteredAttribute'](_0x573c7e['attributeKey'])&&_0x530fe3['push']({'key':_0x573c7e['attributeKey'],'newValue':_0x573c7e['attributeNewValue'],'oldValue':_0x573c7e['attributeOldValue'],'range':Pt(_0x573c7e['range'],_0x1c9d57['model'])});for(const _0x493ee4 of _0x2ad0a8){if('rename'!=_0x493ee4['action']&&'refresh'!=_0x493ee4['action'])continue;const _0x4efb1a=Lt(_0x493ee4['position']['nodeAfter'],_0x1c9d57['model']),_0x4757c1=_0x493ee4['before'];'rename'==_0x493ee4['action']&&_0x530fe3['push']({'key':m,'newValue':_0x493ee4['name'],'oldValue':_0x4757c1['name'],'range':_0x4efb1a});for(const [_0x36a1a7,_0x5a3cf5]of _0x4757c1['attributes']){if(!this['_isRegisteredAttribute'](_0x36a1a7))continue;const _0x46fa4e=_0x493ee4['attributes']['get'](_0x36a1a7);_0x5a3cf5!==_0x46fa4e&&_0x530fe3['push']({'key':_0x36a1a7,'newValue':_0x46fa4e,'oldValue':_0x5a3cf5,'range':_0x4efb1a});}for(const [_0x225bc6,_0x1675e6]of _0x493ee4['attributes'])this['_isRegisteredAttribute'](_0x225bc6)&&(_0x4757c1['attributes']['has'](_0x225bc6)||_0x530fe3['push']({'key':_0x225bc6,'newValue':_0x1675e6,'oldValue':null,'range':_0x4efb1a}));}0x0!=_0x530fe3['length']&&_0x1c9d57['model']['enqueueChange'](_0x196127,_0x5916d5=>{const _0x1d6e5e=_0x4bdc2b();for(const {range:_0x32acc4,key:_0x49b686,oldValue:_0x2c8be8,newValue:_0x56b377}of _0x530fe3)this['markAttributeChange'](_0x32acc4,_0x49b686,_0x2c8be8,_0x56b377,{'groupId':_0x1d6e5e});this['_reduceExistingSuggestions'](_0x5916d5,_0x530fe3);});},{'priority':'lowest'}),_0x1c9d57['model']['markers']['on']('update:suggestion',(_0xdd81a6,_0x453d41,_0x3a7365)=>{if(null==_0x3a7365){const {id:_0x440d0c}=this['_splitMarkerName'](_0x453d41['name']),_0xabd4c6=this['_suggestions']['get'](_0x440d0c);_0xabd4c6&&_0xabd4c6['addMarkerName'](_0x453d41['name']);}}),_0x1c9d57['model']['document']['on']('change:data',()=>{const _0x13fb11=Array['from'](_0x1c9d57['model']['document']['differ']['getChangedMarkers']())['filter'](_0x466b6c=>'suggestion'===this['_splitMarkerName'](_0x466b6c['name'])['group']);if(0x0===_0x13fb11['length'])return;_0x13fb11['sort']((_0x36ea54,_0x2347aa)=>{const _0x23db2c=_0x36ea54['data']['oldRange'],_0x1ce2d6=_0x2347aa['data']['oldRange'];return null===_0x23db2c&&null===_0x1ce2d6?0x0:null===_0x23db2c&&null!==_0x1ce2d6?-0x1:null!==_0x23db2c&&null===_0x1ce2d6?0x1:_0x23db2c['start']['isBefore'](_0x1ce2d6['start'])?-0x1:0x1;});const _0x511ed7=new Set(),_0x1a28ed=new Set();for(const {name:_0x1ec9a7,data:_0x19edbb}of _0x13fb11){const {id:_0xbff223}=this['_splitMarkerName'](_0x1ec9a7);if(null===_0x19edbb['oldRange']){const _0x431f99=this['_handleNewSuggestionMarker'](_0x1ec9a7);_0x1a28ed['add'](_0x431f99);}else{const _0x2f02b3=this['_suggestions']['get'](_0xbff223);null!==_0x19edbb['newRange']||_0x2f02b3['isInContent']?(_0x511ed7['add'](_0x2f02b3['head']),_0x1a28ed['add'](_0x2f02b3)):this['_removeSuggestion'](_0x2f02b3);}}_0x1a28ed['size']>0x0&&this['_refreshSuggestionsChain'](_0x1a28ed);for(const _0x345e96 of _0x511ed7)this['fire']('suggestionChanged',_0x345e96);}),_0x1c9d57['model']['on']('applyOperation',(_0x2c82ca,_0x812e3d)=>{const _0x1b6e01=_0x812e3d[0x0];if(!this['_suggestions']['size'])return;if(!_0x1b6e01['isDocumentOperation'])return;if(_0x1b6e01['batch']['isUndo']||!_0x1b6e01['batch']['isLocal'])return;let _0x26a537,_0x342c0a;switch(_0x1b6e01['type']){case'insert':_0x26a537=_0x1c9d57['model']['createPositionAt'](_0x1b6e01['position']),_0x342c0a=_0x26a537['getShiftedBy'](_0x1b6e01['howMany']);break;case'split':_0x26a537=_0x1c9d57['model']['createPositionAt'](_0x1b6e01['splitPosition']),_0x342c0a=_0x1c9d57['model']['createPositionAt'](_0x1b6e01['moveTargetPosition']);break;case'move':_0x26a537=_0x1c9d57['model']['createPositionAt'](_0x1b6e01['targetPosition']),_0x342c0a=_0x26a537['getShiftedBy'](_0x1b6e01['howMany']);break;default:return;}const _0x42bee3=_0x1c9d57['model']['createRange'](_0x26a537,_0x342c0a);_0x1c9d57['model']['change'](()=>{for(const {suggestion:_0x34896a,meta:_0x2f406d}of this['_findSuggestions'](_0x42bee3)){if(_0x34896a['isMultiRange'])continue;if('formatInline'==_0x34896a['type'])continue;const _0x27d455=this['_getAttributeKey'](_0x34896a);if(_0x27d455&&this['_isBlockAttribute'](_0x27d455)&&'split'!=_0x1b6e01['type'])continue;const _0x17d8e9=_0x34896a['data']&&_0x34896a['data']['multipleBlocks'];('formatBlock'!=_0x34896a['type']||'split'==_0x1b6e01['type']&&!_0x17d8e9)&&(_0x2f406d['containsRangeInObject']||'insertion'==_0x34896a['type']&&_0x2f406d['isOwn']||_0x34896a['getFirstRange']()['containsRange'](_0x42bee3)&&this['_breakSuggestionMarker'](_0x34896a,_0x26a537,_0x342c0a));}});},{'priority':'lowest'}),_0x1c9d57['model']['on']('deleteContent',(_0x5f1577,_0x377309)=>{const _0x5c8ad7=_0x377309[0x0],_0xf3aee2=_0x377309[0x1];if(_0xf3aee2&&_0xf3aee2['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5c8ad7['isCollapsed'])return;const _0x3db02e=_0x1c9d57['model']['schema'],{start:_0x127d4c,end:_0x25c4f5}=_0x5c8ad7['getFirstRange'](),_0x208955=_0x127d4c['nodeAfter']&&_0x3db02e['isLimit'](_0x127d4c['nodeAfter'])?null:_0x3db02e['getNearestSelectionRange'](_0x127d4c,'forward'),_0x273bc0=_0x25c4f5['nodeBefore']&&_0x3db02e['isLimit'](_0x25c4f5['nodeBefore'])?null:_0x3db02e['getNearestSelectionRange'](_0x25c4f5,'backward'),_0x26dea9=_0x1c9d57['model']['createRange'](_0x208955?_0x208955['start']:_0x127d4c,_0x273bc0?_0x273bc0['end']:_0x25c4f5);_0x1c9d57['model']['change'](_0xfc59e=>{this['markDeletion'](_0x26dea9);const _0xa77391=_0x1c9d57['model']['schema']['getNearestSelectionRange'](_0x26dea9['start']);_0x5c8ad7['is']('documentSelection')?_0xfc59e['setSelection'](_0xa77391):_0x5c8ad7['setTo'](_0xa77391);}),_0x5f1577['stop']();},{'priority':_0x2c006d['normal']+0xa}),_0x1c9d57['model']['on']('insertContent',(_0x294c9b,_0x49d3ef)=>{const _0x32397a=_0x49d3ef[_0x49d3ef['length']-0x1];_0x32397a&&_0x32397a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1c9d57['model']['change'](()=>{let _0x1cbb39=_0x1c9d57['model']['insertContent'](_0x49d3ef[0x0],_0x49d3ef[0x1],_0x49d3ef[0x2],{'forceDefaultExecution':!0x0});if(!_0x1cbb39)return;_0x294c9b['return']=_0x1cbb39['clone']();const _0xc32adf=_0x1cbb39['end']['nodeBefore'],_0x1cc65d=_0x1c9d57['model']['schema'];_0xc32adf&&_0x1cc65d['isBlock'](_0xc32adf)&&!_0x1cc65d['isObject'](_0xc32adf)&&(_0x1cbb39=_0x1c9d57['model']['createRange'](_0x1cbb39['start'],_0x1c9d57['model']['createPositionAt'](_0xc32adf,'end'))),this['markInsertion'](_0x1cbb39);}),_0x294c9b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x26b27e=new x(_0x1c9d57,this['_suggestions']);_0x1c9d57['commands']['add']('acceptSuggestion',_0x26b27e),this['enableCommand']('acceptSuggestion');const _0xc1b92c=new R(_0x1c9d57,this['_suggestions']);_0x1c9d57['commands']['add']('discardSuggestion',_0xc1b92c),this['enableCommand']('discardSuggestion'),_0x1c9d57['commands']['add']('acceptAllSuggestions',new E(_0x1c9d57,_0x26b27e,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1c9d57['commands']['add']('discardAllSuggestions',new E(_0x1c9d57,_0xc1b92c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1c9d57['commands']['add']('acceptSelectedSuggestions',new O(_0x1c9d57,_0x26b27e,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1c9d57['commands']['add']('discardSelectedSuggestions',new O(_0x1c9d57,_0xc1b92c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x11d045=_0x1c9d57['plugins']['get']('CommentsRepository');this['listenTo'](_0x11d045,'addComment',(_0x472baf,{threadId:_0x334033})=>{const _0x256705=this['_suggestions']['get'](_0x334033);_0x256705&&_0x256705['commentThread']&&0x1===_0x256705['commentThread']['length']&&this['_updateSuggestionData'](_0x334033,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x11d045,'removeComment',(_0x26f783,{threadId:_0xa4ed93})=>{const _0x5878e9=this['_suggestions']['get'](_0xa4ed93);_0x5878e9&&_0x5878e9['commentThread']&&!_0x5878e9['commentThread']['length']&&this['_updateSuggestionData'](_0xa4ed93,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x2edd53){if(this['_adapter'])throw new _0x4c97a0('track-changes-adapter-already-set',this);this['_adapter']=_0x2edd53;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x28e357=!0x1,toJSON:_0x37bf78=!0x1}={}){const _0x19e9ed=[];for(const _0xa498ce of this['_suggestions']['values']())_0x28e357&&!_0xa498ce['isInContent']||_0x19e9ed['push'](_0xa498ce);return _0x37bf78?_0x19e9ed['map'](_0x31e479=>_0x31e479['toJSON']()):_0x19e9ed;}['getSuggestion'](_0x244a84){const _0x2b8ffb=this['_suggestions']['get'](_0x244a84);if(!_0x2b8ffb)throw new _0x4c97a0('track-changes-suggestion-not-found',this);return _0x2b8ffb;}['hasSuggestion'](_0x1f6ce9){return this['_suggestions']['has'](_0x1f6ce9);}['addSuggestionData'](_0x5e68b6){const {authorId:_0x22a2a0,id:_0x268b9d,attributes:_0x3811f8}=_0x5e68b6,[_0x15fd58,_0x4c99f3]=_0x5e68b6['type']['split'](':'),_0x318102=this['_suggestions']['get'](_0x268b9d)||this['_createSuggestion'](_0x15fd58,_0x4c99f3,_0x268b9d,_0x22a2a0,_0x3811f8);if(this['_addThreadToSuggestion'](_0x318102),this['_checkSuggestionCorrectness'](_0x318102,_0x15fd58,_0x4c99f3||null,_0x22a2a0),_0x318102['createdAt']=_0x5e68b6['createdAt'],_0x318102['_isDataLoaded']=!0x0,_0x3811f8&&_0x3811f8['@external']){const _0x59d4fe=_0x3811f8['@external'],_0x449d62=this['_getExternalAuthor'](_0x59d4fe['authorName']);_0x318102['authoredAt']=_0x59d4fe['createdAt'],_0x318102['author']=_0x449d62,_0x318102['isExternal']=!0x0;}else _0x318102['authoredAt']=_0x5e68b6['createdAt'];switch(_0x5e68b6['data']&&(_0x318102['data']=_0x5e68b6['data']),_0x5e68b6['attributes']&&(_0x318102['attributes']=_0x5e68b6['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x318102['_saved']=!0x0),this['_suggestionState']['get'](_0x318102)){case'notReady':this['_suggestionState']['set'](_0x318102,'dataReady');break;case'markerReady':_0x318102['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x318102])),this['_refreshSuggestionsChain'](new Set([_0x318102])),this['_suggestionState']['set'](_0x318102,'ready'),this['fire']('suggestionLoaded',_0x318102)):this['_suggestionState']['set'](_0x318102,'removed');}return _0x318102;}['acceptSuggestion'](_0x216b10){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x54e58c of _0x216b10['getAllAdjacentSuggestions']())_0x54e58c['accept']();});});}['discardSuggestion'](_0x45569c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2ccaab of _0x45569c['getAllAdjacentSuggestions']())_0x2ccaab['discard']();});});}['enableCommand'](_0x578160,_0xd53417){const _0x3a4c7e=this['editor']['commands']['get'](_0x578160);if(!_0x3a4c7e)throw new _0x4c97a0('track-changes-command-not-found',this,{'commandName':_0x578160});if(this['_enabledCommands']['has'](_0x3a4c7e))throw new _0x4c97a0('track-changes-enable-command-twice',this,{'commandName':_0x578160});this['_enabledCommands']['add'](_0x3a4c7e),_0xd53417&&_0x3a4c7e['on']('execute',(_0x23b85c,_0x4c13d3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4c13d3['length']>0x0&&_0x4c13d3[_0x4c13d3['length']-0x1]&&_0x4c13d3[_0x4c13d3['length']-0x1]['forceDefaultExecution']?_0x4c13d3['pop']():(_0x23b85c['return']=_0xd53417((..._0x553adf)=>_0x3a4c7e['execute'](..._0x553adf,{'forceDefaultExecution':!0x0}),..._0x4c13d3),_0x23b85c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x41770f){let _0x21efd0,_0x199713;const _0x24c617=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x21efd0=_0x41770f();}catch(_0x4a7ba3){_0x199713=_0x4a7ba3;}return _0x24c617||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x199713&&_0x4c97a0['rethrowUnexpectedError'](_0x199713,this),_0x21efd0;}['markInsertion'](_0x5158d4,_0x3ec6fc=null,_0x489138={}){if(_0x5158d4['isCollapsed'])return null;const _0x38a00f=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2ad5f7,meta:_0x181eed}of this['_findSuggestions'](_0x5158d4,'insertion'))if(_0x181eed['isOwn']){if(!_0x181eed['isNextTo']){if(_0x181eed['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x2ad5f7,_0x489138))continue;return _0x2ad5f7;}if(qt(_0x2ad5f7,_0x489138))return _0x2ad5f7;this['_breakSuggestionMarker'](_0x2ad5f7,_0x5158d4['start'],_0x5158d4['end']);break;}if(_0x3ec6fc==_0x2ad5f7['subType']&&qt(_0x2ad5f7,_0x489138)){const _0x1a9191=_0x2ad5f7['getFirstRange']();return _0x1a9191['start']['isEqual'](_0x5158d4['end'])?this['_setSuggestionRange'](_0x2ad5f7,this['_model']['createRange'](_0x5158d4['start'],_0x1a9191['end'])):this['_setSuggestionRange'](_0x2ad5f7,this['_model']['createRange'](_0x1a9191['start'],_0x5158d4['end'])),_0x2ad5f7;}}const _0x856ac3=_0x4bdc2b(),_0x114bc4=_0x38a00f['id'],_0x432225=_0x3ec6fc?'insertion:'+_0x3ec6fc:'insertion',_0x494bee=this['_setSuggestionData']({'id':_0x856ac3,'type':_0x432225,'createdAt':new Date(),'authorId':_0x114bc4,'attributes':_0x489138});return this['_addSuggestionMarker'](_0x432225,_0x856ac3,_0x114bc4,_0x5158d4),_0x494bee;}['markMultiRangeInsertion'](_0x55b5a0,_0x294c6e='multi',_0x55f450={}){const _0x23b68d=this['editor']['plugins']['get']('Users')['me'],_0x457076=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x294c6e,'join');for(const _0x51cce6 of this['getSuggestions']())if(_0x51cce6['author']['id']==_0x23b68d['id']&&'insertion'==_0x51cce6['type']&&_0x51cce6['subType']==_0x294c6e&&qt(_0x51cce6,_0x55f450)&&(_0x457076(_0x51cce6['getRanges'](),_0x55b5a0)||_0x457076(_0x55b5a0,_0x51cce6['getRanges']()))){for(const _0x3b4ace of _0x55b5a0)_0x51cce6['addRange'](_0x3b4ace);return _0x51cce6;}for(const {suggestion:_0x400c2e,meta:_0xb13863}of this['_findSuggestions'](_0x55b5a0,'insertion')){if(!_0xb13863['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xb13863['containsRangeInObject'])continue;if(!qt(_0x400c2e,_0x55f450))continue;let _0x290fd7=!0x0;for(const _0x5defd4 of _0x400c2e['getRanges']())for(const _0x296f1d of _0x55b5a0)if(!_0x5defd4['containsRange'](_0x296f1d)){_0x290fd7=!0x1;break;}if(_0x290fd7)return _0x400c2e;}const _0x3d197e=_0x4bdc2b(),_0x2683c8=_0x23b68d['id'],_0x347ab8='insertion:'+_0x294c6e,_0x5735e1=this['_setSuggestionData']({'id':_0x3d197e,'type':_0x347ab8,'createdAt':new Date(),'authorId':_0x2683c8,'attributes':_0x55f450});for(const _0x2fbf3a of _0x55b5a0)this['_addSuggestionMarker'](_0x347ab8,_0x3d197e,_0x2683c8,_0x2fbf3a,u['getMultiRangeId']());return _0x5735e1;}['markInlineFormat'](_0x4bedec,_0x480348,_0x4a6f02=null,_0x6d5281={}){if(_0x4a6f02=_0x4a6f02||Gt(_0x480348),_0x4bedec['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x574a47=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4a6f02,'accept');return this['forceDefaultExecution'](()=>_0x574a47([_0x4bedec],_0x480348,_0x6d5281)),null;}const _0x2cf348=this['editor']['plugins']['get']('Users')['me'],_0x39959e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x145f88,meta:_0x5046cb}of this['_findSuggestions'](_0x4bedec,'insertion'))_0x5046cb['isOwn']&&!_0x5046cb['isInsideObject']&&_0x39959e['push'](..._0x145f88['getRanges']());}const _0x313394=function(_0x58e819,_0x4451f1){const _0xf363af=[];for(const _0x46cc5f of _0x4451f1){const _0x3c76fd=_0x58e819['getIntersection'](_0x46cc5f);_0x3c76fd&&_0xf363af['push'](_0x3c76fd);}return _0xf363af;}(_0x4bedec,_0x39959e),_0x173f7b=function(_0x554749,_0x4cf5c9){const _0x4df26c=[_0x554749];for(const _0xa4484 of _0x4cf5c9){let _0x1f9f48=0x0;for(;_0x1f9f48<_0x4df26c['length'];){const _0x44a25e=_0x4df26c[_0x1f9f48]['getDifference'](_0xa4484);_0x4df26c['splice'](_0x1f9f48,0x1,..._0x44a25e),_0x1f9f48+=_0x44a25e['length'];}}return _0x4df26c;}(_0x4bedec,_0x39959e);_0x313394['length']&&this['_model']['change'](()=>{for(const _0x1eee6e of _0x313394){const _0x2b710a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4a6f02,'accept');this['forceDefaultExecution'](()=>_0x2b710a([_0x1eee6e],_0x480348,_0x6d5281));}});for(const _0x3fbf4c of _0x173f7b){let _0x5b33ec=null,_0x5b91ff=_0x3fbf4c['start'],_0x507140=_0x3fbf4c['end'];for(const {suggestion:_0xc5ea23,meta:_0x2c8b23}of this['_findSuggestions'](_0x3fbf4c,'formatInline')){if(!_0x2c8b23['isOwn'])continue;if(_0xc5ea23['subType']!=_0x4a6f02)continue;if(!qt(_0xc5ea23,_0x6d5281))continue;const _0x49f331=_0xc5ea23['getFirstRange']();if(_0x49f331['containsRange'](_0x3fbf4c,!0x0))return null;_0x5b91ff=_0x5b91ff['isBefore'](_0x49f331['start'])?_0x5b91ff:_0x49f331['start'],_0x507140=_0x507140['isAfter'](_0x49f331['end'])?_0x507140:_0x49f331['end'],_0x5b33ec?_0x49f331['start']['isBefore'](_0x5b33ec['getFirstRange']()['start'])?(_0x5b33ec['removeMarkers'](),_0x5b33ec=_0xc5ea23):_0xc5ea23['removeMarkers']():_0x5b33ec=_0xc5ea23;}const _0x5a586a=this['_model']['createRange'](_0x5b91ff,_0x507140);if(_0x5b33ec)this['_setSuggestionRange'](_0x5b33ec,_0x5a586a);else{const _0x599572=_0x4bdc2b(),_0x270863=_0x2cf348['id'];this['_setSuggestionData']({'id':_0x599572,'type':'formatInline:'+_0x4a6f02,'data':_0x480348,'createdAt':new Date(),'authorId':_0x270863,'attributes':_0x6d5281}),this['_addSuggestionMarker']('formatInline:'+_0x4a6f02,_0x599572,_0x270863,_0x5a586a);}}return null;}['markBlockFormat'](_0x44c31f,_0x54f856,_0x2345cc=[],_0x431860=null,_0x4962f2={}){_0x54f856['formatGroupId']||(_0x54f856['formatGroupId']=_0x54f856['commandName']),_0x54f856['multipleBlocks']=_0x44c31f['is']('range'),_0x431860=_0x431860||Gt(_0x54f856);const _0x3e4650=_0x2345cc['map'](_0x10ffab=>Lt(_0x10ffab,this['_model'])),_0x55cd7a=_0x44c31f['is']('range')?_0x44c31f:Lt(_0x44c31f,this['_model']);if('never'===this['_trackFormatChanges']){const _0xfac888=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x431860,'accept');return this['forceDefaultExecution'](()=>_0xfac888([_0x55cd7a],_0x54f856,_0x4962f2)),null;}_0x3e4650['push'](_0x55cd7a);let _0x50a2a2=!0x0;for(const _0x35b728 of _0x3e4650)if(!this['_rangeIsInLocalUserInsertion'](_0x35b728)){_0x50a2a2=!0x1;break;}if(_0x50a2a2&&'always'!==this['_trackFormatChanges']){const _0x37cc50=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x431860,'accept');return this['forceDefaultExecution'](()=>_0x37cc50([_0x55cd7a],_0x54f856,_0x4962f2)),null;}let _0x44914a=null,_0x280a8f=_0x55cd7a['start'],_0x4acebd=_0x55cd7a['end'];for(const {suggestion:_0x203bd7,meta:_0x15414b}of this['_findSuggestions'](_0x55cd7a,'formatBlock')){if(!_0x15414b['isOwn'])continue;if(_0x15414b['isNextTo']||_0x15414b['containsRangeInObject']||_0x15414b['isInsideObject'])continue;if(_0x203bd7['data']['formatGroupId']!=_0x54f856['formatGroupId'])continue;if(!qt(_0x203bd7,_0x4962f2))continue;const _0x150d81=_0x203bd7['getFirstRange']();if(_0x203bd7['subType']==_0x431860){if(_0x150d81['containsRange'](_0x55cd7a,!0x0))return null;_0x280a8f=_0x280a8f['isBefore'](_0x150d81['start'])?_0x280a8f:_0x150d81['start'],_0x4acebd=_0x4acebd['isAfter'](_0x150d81['end'])?_0x4acebd:_0x150d81['end'],_0x44914a?_0x150d81['start']['isBefore'](_0x44914a['getFirstRange']()['start'])?(_0x44914a['removeMarkers'](),_0x44914a=_0x203bd7):_0x203bd7['removeMarkers']():_0x44914a=_0x203bd7;}else{const _0x30b04e=_0x55cd7a['getIntersection'](_0x150d81);this['_cutOutSuggestionMarker'](_0x203bd7,_0x30b04e);}}const _0x23d66e=this['editor']['plugins']['get']('Users')['me'],_0xcf054=_0x4bdc2b(),_0x207bc8=_0x23d66e['id'];if(_0x44914a)return this['_setSuggestionRange'](_0x44914a,this['_model']['createRange'](_0x280a8f,_0x4acebd)),_0x44914a;{const _0x201831=this['_setSuggestionData']({'id':_0xcf054,'type':'formatBlock:'+_0x431860,'data':_0x54f856,'createdAt':new Date(),'authorId':_0x207bc8,'attributes':_0x4962f2});return this['_addSuggestionMarker']('formatBlock:'+_0x431860,_0xcf054,_0x207bc8,this['_model']['createRange'](_0x280a8f,_0x4acebd)),_0x201831;}}['markMultiRangeBlockFormat'](_0x4baf52,_0x1972c5,_0x17c612=[],_0x452af3=null,_0x1a62aa={}){_0x1972c5['formatGroupId']||(_0x1972c5['formatGroupId']=_0x1972c5['commandName']);const _0x5b18a2=_0x4baf52[0x0];_0x1972c5['multipleBlocks']=_0x5b18a2['is']('range'),_0x452af3=_0x452af3||Gt(_0x1972c5);const _0x4b818e=_0x17c612['map'](_0x5e713f=>Lt(_0x5e713f,this['_model'])),_0x3b8b6c=_0x5b18a2['is']('range')?_0x4baf52:_0x4baf52['map'](_0x306622=>Lt(_0x306622,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4b1dfc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x452af3,'accept');return this['forceDefaultExecution'](()=>_0x4b1dfc(_0x3b8b6c,_0x1972c5,_0x1a62aa)),null;}_0x4b818e['push'](..._0x3b8b6c);let _0x4f8568=!0x0;for(const _0x50e350 of _0x4b818e)if(!this['_rangeIsInLocalUserInsertion'](_0x50e350)){_0x4f8568=!0x1;break;}if(_0x4f8568&&'always'!==this['_trackFormatChanges']){const _0xa042ae=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x452af3,'accept');return this['forceDefaultExecution'](()=>_0xa042ae(_0x3b8b6c,_0x1972c5,_0x1a62aa)),null;}const _0x5f1060=this['editor']['plugins']['get']('Users')['me'];for(const _0x912010 of this['getSuggestions']()){if(_0x912010['author']['id']!=_0x5f1060['id'])continue;if('formatBlock'!=_0x912010['type']||_0x912010['data']['formatGroupId']!=_0x1972c5['formatGroupId'])continue;if(!qt(_0x912010,_0x1a62aa))continue;const _0x151690=_0x912010['subType']==_0x452af3;for(let _0x17adc7=0x0;_0x17adc7<_0x3b8b6c['length'];_0x17adc7++){const _0x217192=_0x3b8b6c[_0x17adc7];for(const _0x4d411b of _0x912010['getMarkers']()){const _0x2b1671=_0x4d411b['getRange']();if(_0x217192['isEqual'](_0x2b1671)){_0x151690?(_0x3b8b6c['splice'](_0x17adc7,0x1),_0x17adc7--):_0x912010['removeMarker'](_0x4d411b['name']);break;}}}}if(0x0==_0x3b8b6c['length'])return null;const _0x2a6d4f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x452af3,'join');for(const _0x11f366 of this['getSuggestions']())if(_0x11f366['author']['id']==_0x5f1060['id']&&'formatBlock'==_0x11f366['type']&&_0x11f366['data']['formatGroupId']==_0x1972c5['formatGroupId']&&_0x11f366['subType']==_0x452af3&&qt(_0x11f366,_0x1a62aa)&&(_0x2a6d4f(_0x11f366['getRanges'](),_0x3b8b6c)||_0x2a6d4f(_0x3b8b6c,_0x11f366['getRanges']()))){for(const _0x4c00bd of _0x3b8b6c)_0x11f366['addRange'](_0x4c00bd);return _0x11f366;}const _0x41f0d2=_0x4bdc2b(),_0x298691=_0x5f1060['id'],_0x372405='formatBlock:'+_0x452af3,_0x4920a9=this['_setSuggestionData']({'id':_0x41f0d2,'type':_0x372405,'data':_0x1972c5,'createdAt':new Date(),'authorId':_0x298691,'attributes':_0x1a62aa});for(const _0x2b7111 of _0x3b8b6c)this['_addSuggestionMarker'](_0x372405,_0x41f0d2,_0x298691,_0x2b7111,u['getMultiRangeId']());return _0x4920a9;}['markDeletion'](_0x4c20e9,_0x633c3e=null,_0x1e858b={}){if(_0x4c20e9['isCollapsed'])return null;const _0x41d08c=this['editor']['plugins']['get']('Users')['me'],_0x175019=new _0x343169(_0x4c20e9['start'],_0x4c20e9['end']);for(const {suggestion:_0x29b954,meta:_0x53b46c}of this['_findSuggestions'](_0x175019,'insertion'))if(_0x53b46c['isOwn']&&!_0x53b46c['isNextTo']){if(_0x29b954['isMultiRange']){const _0x4bc437=_0x29b954['getRanges']()['filter'](_0x365666=>'$graveyard'!=_0x365666['root']['rootName']);_0x4bc437['every'](_0x403547=>_0x175019['containsRange'](_0x403547,!0x0))&&_0x29b954['discard']();if(_0x4bc437['some'](_0x1974dc=>_0x1974dc['containsRange'](_0x175019,!0x0))){const _0x43d8c9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x633c3e,'accept');return this['forceDefaultExecution'](()=>_0x43d8c9([_0x175019],null,_0x1e858b)),null;}}else{const _0x5abea0=_0x175019['getIntersection'](_0x29b954['getFirstRange']());null!==_0x5abea0&&_0x29b954['_onDiscard']([_0x5abea0],null,_0x1e858b);}}if(_0x175019['detach'](),_0x175019['isCollapsed']||'$graveyard'==_0x175019['root']['rootName'])return null;let _0x55bccf=null,_0x24531e=_0x175019['start'],_0x427648=_0x175019['end'];const _0x2e141d=this['_findSuggestions'](_0x175019,'deletion');for(const {suggestion:_0x3b4976,meta:_0x31e11c}of _0x2e141d){const _0x2e608a=this['_model']['createRange'](_0x24531e,_0x427648);if(_0x31e11c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x31e11c['containsRangeInObject']&&!_0x31e11c['isInsideObject'])){if(_0x3b4976['isMultiRange']){if(!qt(_0x3b4976,_0x1e858b))continue;let _0x349b62=!0x0;for(const _0x3a57f1 of _0x3b4976['getRanges']()){if(_0x3a57f1['containsRange'](_0x2e608a,!0x0))return _0x3b4976;_0x2e608a['containsRange'](_0x3a57f1)||(_0x349b62=!0x1);}_0x349b62&&_0x3b4976['discard']();}else{const _0x513ee4=_0x3b4976['getFirstRange']();if(_0x513ee4['containsRange'](_0x2e608a,!0x0))return _0x3b4976;if(!qt(_0x3b4976,_0x1e858b)){_0x2e608a['containsRange'](_0x513ee4)?_0x3b4976['removeMarkers']():_0x513ee4['containsPosition'](_0x24531e)?_0x24531e=_0x513ee4['end']:_0x513ee4['containsPosition'](_0x427648)&&(_0x427648=_0x513ee4['start']);continue;}_0x24531e=_0x24531e['isBefore'](_0x513ee4['start'])?_0x24531e:_0x513ee4['start'],_0x427648=_0x427648['isAfter'](_0x513ee4['end'])?_0x427648:_0x513ee4['end'],_0x1e858b=Object['assign']({},_0x3b4976['attributes']),_0x55bccf?_0x513ee4['start']['isBefore'](_0x55bccf['getFirstRange']()['start'])?(_0x55bccf['removeMarkers'](),_0x55bccf=_0x3b4976):_0x3b4976['removeMarkers']():_0x55bccf=_0x3b4976;}}}if(_0x55bccf)return this['_setSuggestionRange'](_0x55bccf,this['_model']['createRange'](_0x24531e,_0x427648)),_0x55bccf;{const _0x1bd54d=_0x4bdc2b(),_0x3d6e9a=this['_model']['createRange'](_0x24531e,_0x427648),_0x394eb0=_0x41d08c['id'],_0x2bf612=_0x633c3e?'deletion:'+_0x633c3e:'deletion',_0x348307=this['_setSuggestionData']({'id':_0x1bd54d,'type':_0x2bf612,'createdAt':new Date(),'authorId':_0x394eb0,'attributes':_0x1e858b});return this['_addSuggestionMarker'](_0x2bf612,_0x1bd54d,_0x394eb0,_0x3d6e9a),_0x348307;}}['markMultiRangeDeletion'](_0x38ef86,_0x117b87='multi',_0x2642ba={}){const _0x16a87a=this['editor']['plugins']['get']('Users')['me'],_0x9374b5=_0x38ef86['map'](_0x444be3=>new _0x343169(_0x444be3['start'],_0x444be3['end'])),_0x1722e9=new Set();for(const {suggestion:_0x29b14a,meta:_0x5ddc57}of this['_findSuggestions'](_0x9374b5,'insertion'))_0x5ddc57['isOwn']&&!_0x5ddc57['isNextTo']&&_0x1722e9['add'](_0x29b14a);for(const _0x42a734 of _0x1722e9)if(_0x42a734['isMultiRange']){const _0x1db781=_0x42a734['getRanges']();(!_0x42a734['attributes']||!_0x42a734['attributes']['skipNestingCheck'])&&(_0x1db781['every'](_0x4cf1d2=>_0x9374b5['some'](_0x607870=>_0x607870['containsRange'](_0x4cf1d2,!0x0)))&&_0x42a734['discard']());if(_0x9374b5['every'](_0x3ba5c5=>_0x1db781['some'](_0x1f6b3=>_0x1f6b3['containsRange'](_0x3ba5c5,!0x0)))){const _0x7aafe6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x117b87,'accept');return this['forceDefaultExecution'](()=>_0x7aafe6(_0x38ef86,null,_0x2642ba)),null;}}else{const _0x457883=_0x42a734['getFirstRange']();_0x9374b5['some'](_0x26f82e=>_0x26f82e['containsRange'](_0x457883,!0x0))&&_0x42a734['discard']();if(_0x9374b5['every'](_0x20fb48=>_0x457883['containsRange'](_0x20fb48,!0x0))){const _0x11e8e9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x117b87,'accept');return this['forceDefaultExecution'](()=>_0x11e8e9(_0x9374b5,null,_0x2642ba)),null;}}const _0x5c4a6c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x117b87,'join');let _0x3019db=null;for(const _0x586683 of this['getSuggestions']())if(_0x586683['author']['id']==_0x16a87a['id']&&_0x586683['isInContent']&&'deletion'==_0x586683['type']&&_0x586683['subType']==_0x117b87&&qt(_0x586683,_0x2642ba)&&(_0x5c4a6c(_0x586683['getRanges'](),_0x9374b5)||_0x5c4a6c(_0x9374b5,_0x586683['getRanges']()))){if(_0x3019db){if(_0x586683['commentThread']&&_0x586683['commentThread']['length'])continue;for(const _0x381592 of _0x586683['getRanges']())_0x3019db['isIntersectingWithRange'](_0x381592)||_0x3019db['addRange'](_0x381592);_0x586683['removeMarkers']();}else{_0x3019db=_0x586683;for(const _0x25baf6 of _0x9374b5)_0x586683['isIntersectingWithRange'](_0x25baf6)||_0x586683['addRange'](_0x25baf6);}}if(_0x3019db)return _0x3019db;_0x1722e9['clear']();for(const {suggestion:_0x47422a,meta:_0x3c146f}of this['_findSuggestions'](_0x9374b5,'deletion'))_0x3c146f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3c146f['containsRangeInObject']&&!_0x3c146f['isInsideObject'])&&qt(_0x47422a,_0x2642ba)&&_0x1722e9['add'](_0x47422a);for(const _0x4f91e8 of _0x1722e9){const _0x491fd0=_0x4f91e8['getRanges']();if(!_0x2642ba||!_0x2642ba['skipNestingCheck']){if(_0x9374b5['every'](_0x5e201e=>_0x491fd0['some'](_0xab5ad3=>_0xab5ad3['containsRange'](_0x5e201e,!0x0))))return _0x4f91e8;}(!_0x4f91e8['attributes']||!_0x4f91e8['attributes']['skipNestingCheck'])&&(_0x491fd0['every'](_0x81e868=>_0x9374b5['some'](_0x34221a=>_0x34221a['containsRange'](_0x81e868,!0x0)))&&_0x4f91e8['discard']());}const _0x1d3da8=_0x4bdc2b(),_0x4a7c23=_0x16a87a['id'],_0x1440d6='deletion:'+_0x117b87,_0xa08e2a=this['_setSuggestionData']({'id':_0x1d3da8,'type':_0x1440d6,'createdAt':new Date(),'authorId':_0x4a7c23,'attributes':_0x2642ba});for(const _0x2c1c91 of _0x9374b5)_0x2c1c91['detach'](),_0x2c1c91['isCollapsed']||'$graveyard'==_0x2c1c91['root']['rootName']||this['_addSuggestionMarker'](_0x1440d6,_0x1d3da8,_0x4a7c23,_0x2c1c91,u['getMultiRangeId']());return _0xa08e2a;}['markAttributeChange'](_0xed4ab2,_0x3ef1ca,_0x3029ef,_0x475b21,_0x570923){if(_0xed4ab2['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x180a12=this['editor']['plugins']['get']('Users')['me']['id'],_0x470c66=Array['from'](this['_suggestions']['values']())['filter'](_0x55394f=>'attribute'==_0x55394f['type']&&_0x55394f['data']['key']==_0x3ef1ca&&_0x55394f['isIntersectingWithRange'](_0xed4ab2));if('default'===this['_trackFormatChanges']){const _0x4f355c=this['_findSuggestions'](_0xed4ab2,'insertion')['filter'](({meta:_0x56bf8d})=>_0x56bf8d['isOwn']&&!_0x56bf8d['isInsideObject']&&!_0x56bf8d['isNextTo'])['map'](({suggestion:_0x4d04a5})=>_0x4d04a5);_0x470c66['unshift'](..._0x4f355c);}const _0xe95cd9=new Map([[_0xed4ab2,_0x3029ef]]);for(const _0x3ff667 of _0x470c66){const _0x544d33='attribute'==_0x3ff667['type']?_0x3ff667['data']['oldValue']:void 0x0,_0x4a0027=_0x3ff667['getFirstRange'](),_0x703bb5=Array['from'](_0xe95cd9['keys']())['find'](_0x162366=>_0x162366['isIntersecting'](_0x4a0027));if(!_0x703bb5)continue;const _0x56316f=_0x703bb5['getDifference'](_0x4a0027);this['_isBlockAttribute'](_0x3ef1ca)&&'insertion'==_0x3ff667['type']&&0x0!=_0x56316f['length']||(_0xe95cd9['delete'](_0x703bb5),_0x56316f['forEach'](_0x2e43e5=>{_0xe95cd9['set'](_0x2e43e5,_0x3029ef);}),'insertion'!=_0x3ff667['type']&&_0x544d33!=_0x475b21&&_0xe95cd9['set'](_0x703bb5['getIntersection'](_0x4a0027),_0x544d33));}const _0x110b24=[];for(const [_0x5b4363,_0x5db58e]of _0xe95cd9){const _0x807cf3=_0x4bdc2b(),_0x59f686={'key':_0x3ef1ca,'oldValue':_0x5db58e,'newValue':_0x475b21};_0x3ef1ca['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':_0x3ef1ca});const _0x30509d=('attribute:'+(_0x3ef1ca+'|'+Gt({'newValue':_0x475b21})))['substring'](0x0,0x3c),_0x5f7b07=this['_setSuggestionData']({'id':_0x807cf3,'type':_0x30509d,'data':_0x59f686,'createdAt':new Date(),'authorId':_0x180a12,'attributes':_0x570923});_0x110b24['push'](_0x5f7b07),this['_addSuggestionMarker'](_0x30509d,_0x807cf3,_0x180a12,_0x5b4363);}return _0x110b24;}['enableDefaultAttributesIntegration'](_0x1831ae){this['enableCommand'](_0x1831ae,(_0x507f3b,..._0x594568)=>{this['_recordAttributeChanges'](()=>{_0x507f3b(..._0x594568);});});}['registerBlockAttribute'](_0x5c2ec1){this['_blockAttributeKeys']['add'](_0x5c2ec1);}['registerInlineAttribute'](_0x1d3ae4){this['_inlineAttributeKeys']['add'](_0x1d3ae4);}['_getAttributeKey'](_0x1ab484){return'attribute'==_0x1ab484['type']?_0x1ab484['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x271588,_0x2968a1){const _0x27f1e3=_0x271588['getFirstMarker']();this['_model']['change'](_0x4bd873=>{_0x4bd873['updateMarker'](_0x27f1e3,{'range':_0x2968a1});});}['_addThreadToSuggestion'](_0x4ad615){const _0x2526bc=_0x4ad615['id'],_0x4528d9=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2526bc)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4528d9,'threadId':_0x2526bc,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x385bad=this['_commentsRepository']['getCommentThread'](_0x2526bc);_0x385bad['unbind']('isRemovable'),_0x385bad['isRemovable']=!0x1,_0x4ad615['commentThread']=_0x385bad;}['_checkSuggestionCorrectness'](_0x37f496,_0x29d206,_0x538760,_0x2cff8b){if(_0x37f496['type']!=_0x29d206||_0x37f496['subType']!=_0x538760||_0x37f496['creator']['id']!=_0x2cff8b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4c97a0('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x578dcc,_0x4598e9){const _0x393048=_0x578dcc['getFirstRange']();if(_0x4598e9['isEqual'](_0x393048))_0x578dcc['removeMarkers']();else{if(_0x393048['containsRange'](_0x4598e9)){const _0x288df6=this['_model']['createPositionAt'](_0x4598e9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x578dcc,this['_model']['createRange'](_0x393048['start'],_0x288df6));const _0x5e3f4b=_0x4bdc2b(),_0x3944c1=_0x578dcc['creator']['id'],_0x25f30d=_0x578dcc['type']+':'+_0x578dcc['subType'];this['_setSuggestionData']({'id':_0x5e3f4b,'type':_0x25f30d,'createdAt':new Date(),'authorId':_0x3944c1,'data':_0x578dcc['data'],'attributes':_0x578dcc['attributes']});const _0x4d6c02=this['_model']['createPositionAt'](_0x4598e9['end']['parent'],'after'),_0x2fd380=this['_model']['createRange'](_0x4d6c02,_0x393048['end']);this['_addSuggestionMarker'](_0x25f30d,_0x5e3f4b,_0x3944c1,_0x2fd380);}else{if(_0x393048['containsPosition'](_0x4598e9['start'])){const _0x61f852=this['_model']['createPositionAt'](_0x4598e9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x578dcc,this['_model']['createRange'](_0x393048['start'],_0x61f852));}else{const _0x17d0f2=this['_model']['createPositionAt'](_0x4598e9['end']['parent'],'after');this['_setSuggestionRange'](_0x578dcc,this['_model']['createRange'](_0x17d0f2,_0x393048['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x399f84){for(const {suggestion:_0x4a7017,meta:_0x54da55}of this['_findSuggestions'](_0x399f84,'insertion')){if(!_0x54da55['isOwn'])continue;const _0x31b9c9=_0x4a7017['getRanges']();for(const _0x54e15e of _0x31b9c9)if(!_0x399f84['getDifference'](_0x54e15e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x297bbf){const _0x4aa227=this['editor']['plugins']['get']('Users')['getUser'](_0x297bbf);if(!_0x4aa227)throw new _0x4c97a0('track-changes-user-not-found',this);return _0x4aa227;}['_getExternalAuthor'](_0x31a11d){const _0xc0d459=this['editor']['plugins']['get']('Users'),_0x59b849=_0x4e0629('external:'+_0x31a11d),_0x3a69b2=_0xc0d459['getUser'](_0x59b849);return _0x3a69b2||_0xc0d459['addUser']({'id':_0x59b849,'name':_0x31a11d});}['_createSuggestion'](_0x362ea1,_0x282376,_0x238741,_0x11a2b5,_0x592f80){const _0x4f2c71=this['_getAuthorFromId'](_0x11a2b5),_0x4d8484=this['_suggestionFactory']['buildSuggestion'](_0x362ea1,_0x282376,_0x238741,_0x4f2c71,_0x592f80,_0x3e4102=>{this['_updateSuggestionData'](_0x238741,{'attributes':_0x3e4102});const _0x3b9761=this['getSuggestion'](_0x238741);this['_joinWithAdjacentSuggestions'](new Set([_0x3b9761])),this['_refreshSuggestionsChain'](new Set([_0x3b9761]));});return this['listenTo'](_0x4d8484,'accept',()=>{this['_updateSuggestionData'](_0x238741,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4d8484,'discard',()=>{this['_updateSuggestionData'](_0x238741,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x238741,_0x4d8484),this['_suggestionState']['set'](_0x4d8484,'notReady'),_0x4d8484;}['_splitMarkerName'](_0x220b29){const _0x2d470b=_0x220b29['split'](':');return{'group':_0x2d470b[0x0],'type':_0x2d470b[0x1],'subType':_0x2d470b['length']>=0x5?_0x2d470b[0x2]:null,'id':_0x2d470b['length']<0x5?_0x2d470b[0x2]:_0x2d470b[0x3],'authorId':_0x2d470b['length']<0x5?_0x2d470b[0x3]:_0x2d470b[0x4],'markerCount':0x6==_0x2d470b['length']?_0x2d470b[0x5]:null};}['_breakSuggestionMarker'](_0x43f51e,_0x73d1b5,_0x332d3b){const _0x579985=_0x43f51e['getFirstRange'](),_0x4bb340=_0x579985['start'],_0x32b946=_0x579985['end'];this['_setSuggestionRange'](_0x43f51e,this['_model']['createRange'](_0x4bb340,_0x73d1b5));const _0x2bcbb3=_0x4bdc2b(),_0x18051e=_0x43f51e['creator']['id'],_0x52eeb0=_0x43f51e['type']+(_0x43f51e['subType']?':'+_0x43f51e['subType']:'');this['_setSuggestionData']({'id':_0x2bcbb3,'type':_0x52eeb0,'createdAt':new Date(),'authorId':_0x18051e,'originalSuggestionId':_0x43f51e['id'],'attributes':_0x43f51e['attributes'],'data':_0x43f51e['data']});const _0x2b49a0=this['_getAttributeKey'](_0x43f51e);('formatBlock'==_0x43f51e['type']||_0x2b49a0&&this['_isBlockAttribute'](_0x2b49a0))&&(_0x332d3b=this['_model']['createPositionBefore'](_0x332d3b['parent'])),this['_addSuggestionMarker'](_0x52eeb0,_0x2bcbb3,_0x18051e,this['_model']['createRange'](_0x332d3b,_0x32b946));}['_findSuggestions'](_0x2eca0e,_0x21176e=null){const _0x3de170=[],_0x27d748=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2eca0e)||(_0x2eca0e=[_0x2eca0e]);for(const _0xdb47b4 of this['getSuggestions']()){if(!_0xdb47b4['isInContent'])continue;if(_0x21176e&&_0xdb47b4['type']!=_0x21176e)continue;let _0x5a86b9=!0x1;for(const _0x21007e of _0xdb47b4['getRanges']()){for(const _0x1537aa of _0x2eca0e){const _0x3716bf=_0x1537aa['start']['isEqual'](_0x21007e['end'])||_0x1537aa['end']['isEqual'](_0x21007e['start']);if(_0x3716bf||_0x1537aa['getIntersection'](_0x21007e)){const _0x45d6f6=_0x1537aa['containsRange'](_0x21007e)&&Ot(this['_model']['schema'],_0x21007e['start'],_0x1537aa),_0x3302f6=_0x21007e['containsRange'](_0x1537aa)&&Ot(this['_model']['schema'],_0x1537aa['start'],_0x21007e);_0x3de170['push']({'suggestion':_0xdb47b4,'meta':{'isOwn':_0x27d748==_0xdb47b4['author'],'isNextTo':_0x3716bf,'isInsideObject':_0x45d6f6,'containsRangeInObject':_0x3302f6}}),_0x5a86b9=!0x0;break;}}if(_0x5a86b9)break;}}return _0x3de170;}['_addSuggestionMarker'](_0x5ab939,_0x33ce25,_0x24ad56,_0x10538c,_0x459482){this['_model']['change'](_0x30259e=>{let _0x415941='suggestion:'+_0x5ab939+':'+_0x33ce25+':'+_0x24ad56;_0x459482&&(_0x415941=_0x415941+':'+_0x459482),_0x30259e['addMarker'](_0x415941,{'range':_0x10538c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x55a418){const _0x408943=_0x55a418['previous'],_0x3104=_0x55a418['next'];_0x55a418['previous']=null,_0x55a418['next']=null,null!=_0x408943&&_0x408943['next']==_0x55a418&&(_0x408943['next']=_0x3104),null!=_0x3104&&_0x3104['previous']==_0x55a418&&(_0x3104['previous']=_0x408943),'ready'==this['_suggestionState']['get'](_0x55a418)&&(this['_suggestionState']['set'](_0x55a418,'removed'),this['fire']('suggestionUnloaded',_0x55a418,_0x408943,_0x3104));}['_setSuggestionData'](_0x52821b){const _0x18f11b=_0x52821b['id'],_0x25350e=this['addSuggestionData'](_0x52821b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x495a63=this['editor']['plugins']['get']('PendingActions'),_0x3f6b70=_0x25350e['hasComments'],_0x5d51c4=_0x25350e['subType']?_0x25350e['type']+':'+_0x25350e['subType']:_0x25350e['type'],_0x2f711b=this['editor']['locale'],_0x346a0a=_0x495a63['add'](o(_0x2f711b,'PENDING_ACTION_SUGGESTION')),_0x4cbb9d={'id':_0x18f11b,'type':_0x5d51c4,'hasComments':_0x3f6b70,'data':_0x52821b['data']||null,'originalSuggestionId':_0x52821b['originalSuggestionId']||null,'attributes':_0x25350e['attributes']};this['_adapter']['addSuggestion'](_0x4cbb9d)['then'](_0x54a7c0=>{_0x25350e['_saved']=!0x0,_0x495a63['remove'](_0x346a0a),_0x54a7c0&&_0x54a7c0['createdAt']&&(this['_suggestions']['get'](_0x18f11b)['createdAt']=_0x54a7c0['createdAt']);})['catch'](_0x28b6ed=>{throw _0x4cee66('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x25350e['discard']();}),_0x25350e['stopListening'](),this['_suggestions']['delete'](_0x25350e['id']),this['_suggestionState']['delete'](_0x25350e),_0x28b6ed;});}return _0x25350e;}['_isBlockAttribute'](_0x365016){return this['_blockAttributeKeys']['has'](_0x365016);}['_updateSuggestionData'](_0x2de5b8,_0x781823){const _0x33f7e1=this['editor']['plugins']['get']('PendingActions'),_0x17355b=this['getSuggestion'](_0x2de5b8);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x17355b['_saved']){const _0x2db0ed=_0x33f7e1['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2de5b8,_0x781823)['then'](()=>{_0x33f7e1['remove'](_0x2db0ed);});}else _0x17355b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2de5b8,_0x781823);});}}['_getSuggestionData'](_0x815d23){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4c97a0('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x815d23);}['_handleNewSuggestionMarker'](_0x32031f){const {id:_0x301c5d,type:_0x24fb37,subType:_0x351614,authorId:_0x48f2d0}=this['_splitMarkerName'](_0x32031f),_0x16d866=this['_suggestions']['get'](_0x301c5d)||this['_createSuggestion'](_0x24fb37,_0x351614,_0x301c5d,_0x48f2d0,{});switch(this['_checkSuggestionCorrectness'](_0x16d866,_0x24fb37,_0x351614,_0x48f2d0),this['_suggestionState']['get'](_0x16d866)){case'notReady':this['_getSuggestionData'](_0x301c5d)['then'](_0x400782=>{let _0x1067f5=Promise['resolve']();_0x400782['hasComments']&&(_0x1067f5=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x301c5d})),_0x1067f5['then'](()=>{this['addSuggestionData'](_0x400782)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x16d866,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x301c5d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x16d866,'ready'),this['fire']('suggestionLoaded',_0x16d866);break;case'ready':this['fire']('suggestionChanged',_0x16d866);}return _0x16d866['addMarkerName'](_0x32031f),_0x16d866;}['_refreshSuggestionsChain'](_0x8d511){const _0x414d1e=Array['from'](_0x8d511),_0xb84553=_0x414d1e['filter'](_0xea7de7=>'attribute'==_0xea7de7['type']);this['_refreshAttributeSuggestionsChain'](_0xb84553);const _0xc70022=_0x414d1e['filter'](_0x10873c=>!_0x10873c['isMultiRange']&&'attribute'!=_0x10873c['type']),_0x743f41=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xee49de=>!_0xee49de['isMultiRange']&&'attribute'!=_0xee49de['type']),_0x35937=_0x743f41['filter'](_0x2253b6=>!_0x8d511['has'](_0x2253b6)),_0x1e775d=new Map(_0x743f41['map'](_0xd1abb3=>[_0xd1abb3,this['_suggestionFactory']['getSuggestionCallback'](_0xd1abb3['type'],_0xd1abb3['subType'],'chain')])),_0x128548=new Map(_0x743f41['map'](_0x389973=>[_0x389973,_0x389973['getFirstRange']()])),_0x471842=new Set(),_0x3c0bee=new Set();for(let _0x4a20e7=0x0;_0x4a20e7<_0xc70022['length'];_0x4a20e7++)_0x104890(_0xc70022[_0x4a20e7],_0xc70022,_0x4a20e7+0x1);for(let _0x448de9=0x0;_0x448de9<_0xc70022['length'];_0x448de9++)_0x104890(_0xc70022[_0x448de9],_0x35937,0x0);const _0x5e18b0=new Set();for(let _0x5908ba=0x0;_0x5908ba<_0xc70022['length'];_0x5908ba++){const _0x3b76d2=_0xc70022[_0x5908ba];!_0x3c0bee['has'](_0x3b76d2)&&_0x3b76d2['previous']&&(_0x5e18b0['add'](_0x3b76d2['previous']),_0x3b76d2['previous']['next']===_0x3b76d2&&(_0x3b76d2['previous']['next']=null),_0x3b76d2['previous']=null),!_0x471842['has'](_0x3b76d2)&&_0x3b76d2['next']&&(_0x5e18b0['add'](_0x3b76d2['next']),_0x3b76d2['next']['previous']===_0x3b76d2&&(_0x3b76d2['next']['previous']=null),_0x3b76d2['next']=null);}function _0x104890(_0x2fe45b,_0x3be00a,_0x4a2f21){for(let _0xd5734f=_0x4a2f21;_0xd5734f<_0x3be00a['length'];_0xd5734f++){const _0x5ee521=_0x34dfa1(_0x2fe45b,_0x3be00a[_0xd5734f]);_0x5ee521&&(_0x5ee521[0x0]['next']=_0x5ee521[0x1],_0x5ee521[0x1]['previous']=_0x5ee521[0x0],_0x471842['add'](_0x5ee521[0x0]),_0x3c0bee['add'](_0x5ee521[0x1]));}}function _0x34dfa1(_0x11716a,_0x1321be){if(_0x11716a['author']['id']!==_0x1321be['author']['id'])return null;const _0x21ac15=_0x1e775d['get'](_0x11716a)(_0x11716a,_0x1321be,_0x128548['get'](_0x11716a),_0x128548['get'](_0x1321be));if(!_0x21ac15)return null;return _0x1e775d['get'](_0x1321be)(_0x11716a,_0x1321be,_0x128548['get'](_0x11716a),_0x128548['get'](_0x1321be))?_0x21ac15[0x1]['commentThread']&&_0x21ac15[0x1]['commentThread']['length']?null:_0x21ac15:null;}_0x5e18b0['size']&&this['_refreshSuggestionsChain'](_0x5e18b0);}['_refreshAttributeSuggestionsChain'](_0x1776d5){if(0x0==_0x1776d5['length'])return;const _0x4af88a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x447d79=>'attribute'==_0x447d79['type']&&_0x447d79['_isDataLoaded']),_0x3cef29=[],_0x120b61=new Map();for(const _0xf67c7e of _0x4af88a){const _0x453789=_0x4e0629(_0xf67c7e['attributes']);_0x120b61['has'](_0x453789)||(_0x120b61['set'](_0x453789,_0x3cef29['length']),_0x3cef29['push']([]));const _0x2682f2=_0x120b61['get'](_0x453789);_0x3cef29[_0x2682f2]['push'](_0xf67c7e);}!(function(){_0x3cef29['sort']((_0x17699e,_0x21e234)=>{const _0x49e519=_0x17699e[0x0]['createdAt'],_0x4ee7e7=_0x21e234[0x0]['createdAt'];return _0x49e519==_0x4ee7e7?_0x17699e[0x0]['attributes']['groupId']<_0x21e234[0x0]['attributes']['groupId']?-0x1:0x1:_0x49e519<_0x4ee7e7?-0x1:0x1;});for(const _0x19f6ea of _0x3cef29)_0x19f6ea['sort']((_0x46f5e8,_0x411dde)=>_0x46f5e8['id']<_0x411dde['id']?-0x1:0x1);}());for(let _0x26cec3=0x0;_0x26cec3<_0x3cef29['length'];_0x26cec3++){if(0x0==_0x3cef29[_0x26cec3]['length'])continue;const _0x51164c=[];for(let _0x37deb9=_0x26cec3+0x1;_0x37deb9<_0x3cef29['length'];_0x37deb9++)0x0!=_0x3cef29[_0x37deb9]['length']&&_0x4be5eb(_0x3cef29[_0x26cec3],_0x3cef29[_0x37deb9])&&_0x51164c['push'](_0x37deb9);for(const _0x432f07 of _0x51164c)_0x3cef29[_0x26cec3]=_0x3cef29[_0x26cec3]['concat'](_0x3cef29[_0x432f07]),_0x3cef29[_0x432f07]=[];}for(const _0x23acf8 of _0x3cef29)for(let _0x401154=0x0;_0x401154<_0x23acf8['length'];_0x401154++){const _0x1a5b1c=_0x23acf8[_0x401154+0x1]||null;_0x23acf8[_0x401154]['next']!==_0x1a5b1c&&(_0x23acf8[_0x401154]['next']=_0x1a5b1c);}for(const _0x1c0ecd of _0x3cef29)for(let _0x1858aa=0x0;_0x1858aa<_0x1c0ecd['length'];_0x1858aa++){const _0x2dafbd=_0x1c0ecd[_0x1858aa-0x1]||null;_0x1c0ecd[_0x1858aa]['previous']!==_0x2dafbd&&(_0x1c0ecd[_0x1858aa]['previous']=_0x2dafbd);}function _0x4be5eb(_0x3e88c8,_0x233834){if(_0x3e88c8[0x0]['attributes']['groupId']!==_0x233834[0x0]['attributes']['groupId']&&_0x3e88c8[0x0]['author']!==_0x233834[0x0]['author'])return!0x1;if(!function(_0x4d4df0,_0x4b14f5){if(!_0x4d4df0['hasComments']&&!_0x4b14f5['hasComments'])return!0x0;if(_0x4d4df0['hasComments']&&_0x4b14f5['hasComments'])return!0x1;if(_0x4d4df0['hasComments']&&_0x4b14f5['createdAt']<_0x4d4df0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4b14f5['hasComments']&&_0x4d4df0['createdAt']<_0x4b14f5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3e88c8[0x0],_0x233834[0x0]))return!0x1;const _0x7fc89f=Tt(_0x3e88c8[0x0]['attributes'],'groupId'),_0x3d98c8=Tt(_0x233834[0x0]['attributes'],'groupId');if(!_0x4bc8db(_0x7fc89f,_0x3d98c8))return!0x1;return!!_0x3e88c8['every'](_0x23d102=>_0x233834['some'](_0x5a7ff9=>_0x23d102['getFirstRange']()['isEqual'](_0x5a7ff9['getFirstRange']())))&&_0x233834['every'](_0x1bed4b=>_0x3e88c8['some'](_0x3f762e=>_0x1bed4b['getFirstRange']()['isEqual'](_0x3f762e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x115ff7){const _0x1d39d9=Array['from'](_0x115ff7),_0x7a6af8=this['getSuggestions']({'skipNotAttached':!0x0}),_0x41d4ba=_0x7a6af8['filter'](_0x37febd=>!_0x115ff7['has'](_0x37febd)),_0x1fe4a1=new Map(_0x1d39d9['map'](_0x525b3d=>[_0x525b3d,this['_suggestionFactory']['getSuggestionCallback'](_0x525b3d['type'],_0x525b3d['subType'],'join')])),_0x551d97=new Map(_0x7a6af8['map'](_0x4462a4=>[_0x4462a4,_0x4462a4['getRanges']()]));for(let _0x4eb8d8=0x0;_0x4eb8d8<_0x1d39d9['length'];_0x4eb8d8++){if(_0x53ed19(this,_0x1d39d9[_0x4eb8d8],_0x1d39d9,_0x4eb8d8+0x1))return!0x0;}for(let _0x5136c1=0x0;_0x5136c1<_0x1d39d9['length'];_0x5136c1++){if(_0x53ed19(this,_0x1d39d9[_0x5136c1],_0x41d4ba,0x0))return!0x0;}return!0x1;function _0x53ed19(_0x18d997,_0xf7da84,_0x82c1c2,_0x1e8164){for(let _0x58c317=_0x1e8164;_0x58c317<_0x82c1c2['length'];_0x58c317++){const _0x7c166f=_0x82c1c2[_0x58c317];if(_0x7c166f['type']!==_0xf7da84['type']||_0x7c166f['author']['id']!==_0xf7da84['author']['id']||_0x7c166f['subType']!==_0xf7da84['subType'])continue;if(!Jt(_0xf7da84,_0x7c166f))continue;if('attribute'==_0xf7da84['type']&&_0xf7da84['data']['oldValue']!=_0x7c166f['data']['oldValue'])continue;if('attribute'==_0xf7da84['type']&&_0x18d997['_isBlockAttribute'](_0xf7da84['data']['key']))continue;if('formatBlock'==_0xf7da84['type']){const _0x45ceb3=_0x18d997['editor']['model'],_0x384e2f=_0xf7da84['getContainedElement']();if(_0x384e2f&&(_0x45ceb3['schema']['isObject'](_0x384e2f)||_0x45ceb3['schema']['isLimit'](_0x384e2f)))continue;}const _0x4010b2=_0x1fe4a1['get'](_0xf7da84),_0xc5f338=_0x551d97['get'](_0xf7da84),_0xe7c4fa=_0x551d97['get'](_0x7c166f),_0x39b64c=_0xf7da84['commentThread']&&_0xf7da84['commentThread']['length'],_0x2adf9b=_0x7c166f['commentThread']&&_0x7c166f['commentThread']['length'];if(!_0x39b64c&&_0x4010b2(_0xe7c4fa,_0xc5f338))return _0x18d997['_joinSuggestions'](_0x7c166f,_0xf7da84),_0x551d97['delete'](_0xf7da84),!0x0;if(!_0x2adf9b&&_0x4010b2(_0xc5f338,_0xe7c4fa))return _0x18d997['_joinSuggestions'](_0xf7da84,_0x7c166f),_0x551d97['delete'](_0x7c166f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4b8b8,_0x46e255){if(_0x4b8b8['isMultiRange']){for(const _0x4d7ce2 of _0x46e255['getRanges']())_0x4b8b8['addRange'](_0x4d7ce2);}else{const _0x1905d0=_0x46e255['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4b8b8,this['_model']['createRange'](_0x4b8b8['getFirstRange']()['start'],_0x1905d0));}_0x46e255['removeMarkers']();}['_getMarkerAnnouncementText'](_0x32daec,_0x4556e1,_0x4151b9){const _0x475204=_0x32daec['startsWith']('format')||_0x32daec['startsWith']('attribute')?'FORMATTING':_0x32daec['toUpperCase']();return o(this['editor']['locale'],_0x4556e1+'_'+_0x475204+'_SUGGESTION_ANNOUNCEMENT',_0x4151b9);}['_initAriaMarkerChangeAnnouncements'](){const _0x5df048=this['editor'];if(!_0x5df048['ui'])return;const {ariaLiveAnnouncer:_0x7a7e83}=_0x5df048['ui'];_0x338662(this['_model'],({left:_0x45f6b4,entered:_0x41cad1})=>{for(const _0x13c21a of _0x45f6b4){const {group:_0x58daf0,type:_0x39243e}=this['_splitMarkerName'](_0x13c21a['name']);if('suggestion'===_0x58daf0){_0x7a7e83['announce'](this['_getMarkerAnnouncementText'](_0x39243e,'LEAVE'));break;}}for(const _0x23bc60 of _0x41cad1){const {group:_0x1c9d60,type:_0x9e5f80}=this['_splitMarkerName'](_0x23bc60['name']);if('suggestion'===_0x1c9d60){_0x7a7e83['announce'](this['_getMarkerAnnouncementText'](_0x9e5f80,'ENTER',_0x570436(_0x30046c)));break;}}});}['_processAttributeChanges'](_0x2d3601){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1827a9=this['editor'],_0xd74c21=_0x1827a9['model']['document']['differ']['getChanges']();if(0x0==_0xd74c21['length'])return!0x1;const _0x197b70=[],_0x17cb64=_0xd74c21['filter'](_0x1b67b1=>'attribute'==_0x1b67b1['type']),_0x5af25c=_0xd74c21['filter'](_0x2494e0=>'insert'==_0x2494e0['type']&&'$text'!=_0x2494e0['name']),_0x3c4032=_0xd74c21['filter'](_0xafd407=>'remove'==_0xafd407['type']&&'$text'!=_0xafd407['name']);for(const _0x210762 of _0x17cb64)_0x197b70['push']({'key':_0x210762['attributeKey'],'newValue':_0x210762['attributeNewValue'],'oldValue':_0x210762['attributeOldValue'],'range':Pt(_0x210762['range'],_0x1827a9['model'])});for(const _0x533f0c of _0x5af25c){const _0x17a6b2=_0x3c4032['find'](_0x16c88c=>_0x16c88c['position']['isEqual'](_0x533f0c['position']));_0x17a6b2&&_0x197b70['push']({'key':m,'newValue':_0x533f0c['name'],'oldValue':_0x17a6b2['name'],'range':_0x1827a9['model']['createRangeOn'](_0x533f0c['position']['nodeAfter'])});}return 0x0!=_0x197b70['length']&&this['_reduceExistingSuggestions'](_0x2d3601,_0x197b70);}['_processAttributeSuggestions'](_0x41cb0c){let _0x249ad8=!0x1;const _0x36b86e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2718c9=>_0x2718c9['data']['newRange']&&_0x2718c9['name']['startsWith']('suggestion:attribute:'));for(const _0x13d7b7 of _0x36b86e){const {subType:_0x319e7f,id:_0x3613fc}=this['_splitMarkerName'](_0x13d7b7['name']),_0x2940d5=_0x319e7f['split']('|')[0x0];for(const _0x3c358f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3c358f['id']!=_0x3613fc&&'attribute'==_0x3c358f['type']&&_0x3c358f['data']&&_0x3c358f['data']['key']==_0x2940d5&&_0x3c358f['getFirstRange']()['isIntersecting'](_0x13d7b7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3c358f,_0x13d7b7['data']['newRange'],_0x41cb0c),_0x249ad8=!0x0);}return _0x249ad8;}['_recordAttributeChanges'](_0x163ec6){this['_recordAttributeSuggestions']=!0x0,_0x163ec6();}['_isRegisteredAttribute'](_0x507fa2){const _0x22a2ef=this['_isBlockAttribute'](_0x507fa2),_0x36725d=this['_inlineAttributeKeys']['has'](_0x507fa2);return _0x22a2ef||_0x36725d;}['_reduceExistingSuggestions'](_0x3a2455,_0x4db059){if(0x0==_0x4db059['length'])return!0x1;let _0x13e798=!0x1;for(const _0x31f6f4 of _0x4db059){const _0x5a6fe9=this['_findSuggestions'](_0x31f6f4['range'],'attribute')['filter'](_0x25840f=>!_0x25840f['meta']['isNextTo'])['map'](_0x259b69=>_0x259b69['suggestion']),_0x187a94=_0x4e0629({'newValue':_0x31f6f4['newValue']});_0x5a6fe9['filter'](_0x191598=>{const [_0x5bcb0b,_0x2f6118]=_0x191598['subType']['split']('|');return _0x5bcb0b==_0x31f6f4['key']&&_0x2f6118!=_0x187a94;})['forEach'](_0x1c42d1=>{this['_reduceSuggestionAttributeRange'](_0x1c42d1,_0x31f6f4['range'],_0x3a2455),_0x13e798=!0x0;});}return _0x13e798;}['_reduceSuggestionAttributeRange'](_0x10ab5d,_0x5b99c2,_0x4397ad){const _0x109c8a=_0x10ab5d['getFirstRange']()['getDifference'](_0x5b99c2);0x0!==_0x109c8a['length']?0x1!==_0x109c8a['length']?this['_breakSuggestionMarker'](_0x10ab5d,_0x5b99c2['start'],_0x5b99c2['end']):this['_setSuggestionRange'](_0x10ab5d,_0x109c8a[0x0]):_0x4397ad['removeMarker'](_0x10ab5d['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x165c91){this['_editor']=_0x165c91,this['_model']=_0x165c91['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2733ac,_0x40701b,_0x68eeea,_0x36ab8e,_0x354a97,_0x49f0b){return new u(this['_model'],{'type':_0x2733ac,'subType':_0x40701b,'id':_0x68eeea,'author':_0x36ab8e,'creator':_0x36ab8e,'attributes':_0x354a97,'onAttributesChange':_0x49f0b,'onAccept':(..._0x3d9e03)=>this['getSuggestionCallback'](_0x2733ac,_0x40701b,'accept')(..._0x3d9e03),'onDiscard':(..._0x16f344)=>this['getSuggestionCallback'](_0x2733ac,_0x40701b,'discard')(..._0x16f344)});}['registerCustomCallback'](_0x1d24aa,_0x538abe,_0x2030aa,_0x321cb4){const _0x5ca6d2=_0x1d24aa+':'+_0x538abe+':'+_0x2030aa;this['_customCallbacks']['set'](_0x5ca6d2,_0x321cb4);}['getSuggestionCallback'](_0x2f1832,_0x47459c,_0x8227d1){const _0x4cdd2b=_0x2f1832+':'+_0x47459c+':'+_0x8227d1;return this['_customCallbacks']['get'](_0x4cdd2b)||this['_defaultCallbacks']['get'](_0x2f1832+':'+_0x8227d1);}['_registerDefaultCallbacks'](){const _0x4a5bc5=()=>!0x1,_0x315f53=_0x40a993=>{_0x40a993['sort']((_0x8dd250,_0x287b99)=>_0x8dd250['start']['isBefore'](_0x287b99['start'])?0x1:-0x1),this['_model']['change'](_0x48e123=>{for(const _0x575cf2 of _0x40a993){let _0x1a903b;_0x1a903b=_0x575cf2['end']['isAtEnd']&&_0x575cf2['end']['parent']==_0x575cf2['start']['nodeAfter']?_0x48e123['createSelection'](_0x575cf2['start']['nodeAfter'],'on'):_0x48e123['createSelection'](_0x575cf2),this['_model']['deleteContent'](_0x1a903b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x554c0a=(_0x9af81f,_0x29b53c)=>{_0x29b53c&&this['_model']['change'](_0x42a35f=>{const {commandName:_0x35be11,commandParams:_0x30c057=[]}=_0x29b53c,_0x1994e0=_0x9af81f['map'](_0x266b7f=>(Vt(_0x266b7f)&&(_0x266b7f=this['_model']['createRange'](_0x266b7f['end'])),_0x266b7f))['filter'](_0x57b027=>'$graveyard'!==_0x57b027['root']['rootName']);if(_0x1994e0['length']<0x1)return;const _0x5c8011=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5452cc=>_0x343169['fromRange'](_0x5452cc));_0x42a35f['setSelection'](_0x1994e0);for(const _0x3d2ef4 of this['_editor']['commands']['commands']())_0x3d2ef4['refresh']();_0x30c057['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x35be11,..._0x30c057);const _0x242759=_0x5c8011['filter'](_0xd57df8=>'$graveyard'!=_0xd57df8['root']['rootName']);_0x242759['length']>0x0&&_0x42a35f['setSelection'](_0x242759);for(const _0x2a5c09 of _0x5c8011)_0x2a5c09['detach']();});},_0x2c54db=(_0x35ffea,_0x4e94d9)=>0x1==_0x35ffea['length']&&0x1==_0x4e94d9['length']&&_0x35ffea[0x0]['end']['isEqual'](_0x4e94d9[0x0]['start']),_0x57472c=(_0x221f24,_0x440ad3,_0x576624,_0x10b741)=>Ht(_0x221f24,_0x440ad3,_0x576624,_0x10b741,this['_model'])?[_0x221f24,_0x440ad3]:Ht(_0x440ad3,_0x221f24,_0x10b741,_0x576624,this['_model'])?[_0x440ad3,_0x221f24]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4a5bc5),this['_defaultCallbacks']['set']('insertion:discard',_0x315f53),this['_defaultCallbacks']['set']('insertion:join',_0x2c54db),this['_defaultCallbacks']['set']('insertion:chain',_0x57472c),this['_defaultCallbacks']['set']('deletion:accept',_0x315f53),this['_defaultCallbacks']['set']('deletion:discard',_0x4a5bc5),this['_defaultCallbacks']['set']('deletion:join',_0x2c54db),this['_defaultCallbacks']['set']('deletion:chain',_0x57472c),this['_defaultCallbacks']['set']('formatInline:accept',_0x554c0a),this['_defaultCallbacks']['set']('formatInline:discard',_0x4a5bc5),this['_defaultCallbacks']['set']('formatInline:join',_0x2c54db),this['_defaultCallbacks']['set']('formatInline:chain',_0x4a5bc5),this['_defaultCallbacks']['set']('formatBlock:accept',_0x554c0a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4a5bc5),this['_defaultCallbacks']['set']('formatBlock:join',_0x2c54db),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4a5bc5),this['_defaultCallbacks']['set']('attribute:accept',_0x4a5bc5),this['_defaultCallbacks']['set']('attribute:discard',(_0x2be0ec,_0x361248)=>{if(!_0x361248)return;const _0x2f9dd7=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x365398=>{if(_0x361248['key']==m)for(const _0x3e92bd of _0x2be0ec){const _0x49999c=_0x3e92bd['start']['nodeAfter'],_0x5c9d2d=_0x361248['oldValue'];_0x365398['rename'](_0x49999c,_0x5c9d2d);}else{if(_0x2f9dd7['_isBlockAttribute'](_0x361248['key'])){for(const _0x493c8a of _0x2be0ec)void 0x0!==_0x361248['oldValue']?_0x365398['setAttribute'](_0x361248['key'],_0x361248['oldValue'],_0x493c8a['start']['nodeAfter']):_0x365398['removeAttribute'](_0x361248['key'],_0x493c8a['start']['nodeAfter']);}else{for(const _0xccadaf of _0x2be0ec)_0x361248['oldValue']?_0x365398['setAttribute'](_0x361248['key'],_0x361248['oldValue'],_0xccadaf):_0x365398['removeAttribute'](_0x361248['key'],_0xccadaf);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2c54db);}}function Ot(_0x5cac33,_0x69d9b3,_0x56e4e5){for(const _0x373438 of _0x69d9b3['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x373438['root']==_0x373438)return!0x1;if(!_0x56e4e5['containsItem'](_0x373438))return!0x1;if(_0x5cac33['isObject'](_0x373438)||_0x5cac33['isLimit'](_0x373438))return!0x0;}return!0x1;}function Vt(_0x178f79){return _0x178f79['end']['parent']==_0x178f79['start']['nodeAfter']&&_0x178f79['end']['isAtStart'];}function Ut(_0x178e32,_0x4f5b1a,_0x2f9eca,_0x42669b){const _0x552775=_0x55c587=>!_0x55c587['item']['is']('$textProxy')&&!_0x42669b['isObject'](_0x55c587['item']),_0x51b3d4=_0x178e32['start']['getLastMatchingPosition'](_0x552775),_0x436fff=_0x178e32['end']['getLastMatchingPosition'](_0x552775,{'direction':'backward'});return(!_0x178e32['start']['isEqual'](_0x51b3d4)||!_0x178e32['end']['isEqual'](_0x436fff))&&(_0x51b3d4['isBefore'](_0x436fff)?_0x2f9eca['updateMarker'](_0x4f5b1a,{'range':_0x2f9eca['createRange'](_0x51b3d4,_0x436fff)}):_0x2f9eca['removeMarker'](_0x4f5b1a),!0x0);}function Gt(_0xd9bbd){return _0x4e0629(_0xd9bbd);}function Ft(_0x3425ad){const _0x59418e=_0x3425ad['start']['nodeAfter'];return _0x59418e&&_0x59418e['is']('element');}function Pt(_0x8ba97,_0x20528c){return null==_0x8ba97['end']['nodeBefore']&&_0x8ba97['end']['parent']==_0x8ba97['start']['nodeAfter']?Lt(_0x8ba97['start']['nodeAfter'],_0x20528c):_0x8ba97;}function Lt(_0x1466a8,_0x4d286b){const _0x41e3e7=_0x4d286b['schema']['isObject'](_0x1466a8)||_0x4d286b['schema']['isSelectable'](_0x1466a8);return _0x4d286b['createRange'](_0x4d286b['createPositionAt'](_0x1466a8,'before'),_0x41e3e7?_0x4d286b['createPositionAfter'](_0x1466a8):_0x4d286b['createPositionAt'](_0x1466a8,'end'));}function Ht(_0x26d362,_0x902b4a,_0x9a3ad5,_0x5156b9,_0x4516fa){if(_0x26d362['next'])return!0x1;if(!Jt(_0x26d362,_0x902b4a))return!0x1;if(_0x9a3ad5['end']['isEqual'](_0x5156b9['start']))return!0x0;if(_0x26d362['type']!=_0x902b4a['type'])return!0x1;if(!_0x9a3ad5['end']['isTouching'](_0x5156b9['start']))return!0x1;const _0x2040c2=_0x4516fa['createRange'](_0x9a3ad5['end'],_0x5156b9['start'])['getWalker']();for(const _0x4e1e66 of _0x2040c2)if(['elementStart','elementEnd']['includes'](_0x4e1e66['type'])&&_0x4516fa['schema']['isLimit'](_0x4e1e66['item']))return!0x1;return!0x0;}function Jt(_0x63709a,_0x336902){if(!_0x63709a['_isDataLoaded']||!_0x336902['_isDataLoaded'])return!0x1;const _0x1e5b69=new Set(Object['keys'](_0x63709a['attributes'])),_0x3253ef=new Set(Object['keys'](_0x336902['attributes']));if(_0x1e5b69['delete']('groupId'),_0x3253ef['delete']('groupId'),0x0==_0x1e5b69['size']&&0x0==_0x3253ef['size'])return!0x0;if(_0x1e5b69['size']!=_0x3253ef['size'])return!0x1;const _0x278e88={..._0x63709a['attributes']},_0x1f9c27={..._0x336902['attributes']};return delete _0x278e88['groupId'],delete _0x1f9c27['groupId'],JSON['stringify'](_0x278e88)==JSON['stringify'](_0x1f9c27);}function qt(_0x2ef507,_0x270b21){const _0x493ebc=zt(_0x2ef507['attributes']),_0x4193d6=zt(_0x270b21);if(!_0x2ef507['_isDataLoaded'])return!0x1;for(const _0x21028b of Object['keys'](_0x4193d6))if(!_0x4bc8db(_0x493ebc[_0x21028b],_0x4193d6[_0x21028b]))return!0x1;return!0x0;}function zt(_0x5560be){const _0x2c3ae8=Object['assign']({},_0x5560be);return delete _0x2c3ae8['skipNestingCheck'],delete _0x2c3ae8['tablePasteChainId'],_0x2c3ae8;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x431519(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x274c43,_0x388736,_0x364d93,_0x5d1e48){super(),this['model']=_0x388736,this['view']=_0x364d93,this['commentThreadController']=_0x5d1e48,this['_editor']=_0x274c43,this['_acceptCommand']=_0x274c43['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x274c43['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1d70ee,_0x4d5bd6)=>_0x1d70ee||_0x4d5bd6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x543163=>_0x543163&&this['_editor']['model']['canEditAt'](_0x388736['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x643451=>_0x643451&&this['_editor']['model']['canEditAt'](_0x388736['getRanges']())),this['_pendingAction']=null,_0x364d93['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x364d93,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x364d93,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x364d93,'change:isDirty',()=>{_0x364d93['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 _0x2d6b30=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2d6b30);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x4eeea1{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3f175f,_0x5c6a11,_0x289aa0,_0x204f5a){super(_0x3f175f),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x569f27(_0x3f175f,o(_0x3f175f,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5c6a11['authoredAt']),this['bind']('authoredAt')['to'](_0x5c6a11),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',_0x5c6a11,'authoredAt',this,'descriptionParts',(_0x56fc28,_0x432ace,_0x33ef9e)=>{const _0x343759=_0x33ef9e['map'](_0x34dd00=>ls(_0x34dd00['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x56fc28-0x1,_0x5c6a11['author']['name'],_0x432ace?_0x204f5a['formatDateTime'](_0x432ace):'',new DOMParser()['parseFromString'](_0x343759,'text/html')['body']['textContent']]);}),this['focusables']=new _0xb04134(),this['focusTracker']=new _0x5e9eb5(),this['keystrokes']=new _0x45e3cc(),this['focusCycler']=new _0x1f7653({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x978c1b=>_0x978c1b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5c6a11,this['_localUser']=_0x289aa0,this['_config']=_0x204f5a,_0x204f5a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2fa3f4(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3981cc}=this['_config'];this['commentsListView']=new _0x3981cc(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',_0x58cd3a=>_0x58cd3a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x424ef9,_0xca6140)=>_0x424ef9||!!_0xca6140);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1fec3d}=this['_config'],_0x1007fc=new _0x1fec3d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x24759c=_0x1007fc['commentInputView'];return _0x1007fc['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x24759c,'value',(_0x5ab7f6,_0x1ac988,_0x2a57d9)=>!!_0x2a57d9||_0x5ab7f6&&!_0x1ac988),_0x24759c['on']('submit',(_0x77c9f1,_0x2c1865)=>{this['fire']('addComment',_0x2c1865),_0x24759c['editor']['setData']('');}),_0x24759c['on']('cancel',()=>this['focus']()),_0x24759c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1007fc;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1fa35d,_0x4d8e3e,_0x32951d,_0x3f57e6){super(_0x1fa35d,_0x4d8e3e,_0x32951d,_0x3f57e6),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5efcca=>_0x5efcca&&_0x5efcca[0x0]?_0x5efcca[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x28a329,_0x4a9a86)=>{let _0x31dc15='';for(const _0x4a6645 of _0x28a329)_0x31dc15+='<p>'+ls(_0x4a6645['content'],_0x4a6645['color'])+'</p>';return _0x4a9a86?_0x31dc15:_0x4a7044(_0x31dc15,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3f57e6['SuggestionView'](_0x1fa35d,_0x4d8e3e,{'formatDateTime':_0x3f57e6['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 _0x322628=this['bindTemplate'],_0x3ce29c=[this['suggestionView']];return this['commentsListView']&&_0x3ce29c['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3ce29c['push'](this['commentThreadInputView']),_0x3ce29c['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x322628['if']('isActive','ck-suggestion-wrapper--active'),_0x322628['to']('type',_0x422f63=>'ck-suggestion-'+_0x422f63),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':_0x322628['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3ce29c};}['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 ce extends _0x4eeea1{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5123f4,_0xa9f8ce,_0x222f70){super(_0x5123f4),this['_model']=_0xa9f8ce,this['_config']=_0x222f70,this['set']('description',''),this['bind']('authoredAt')['to'](_0xa9f8ce),this['acceptButton']=this['_createButton'](o(_0x5123f4,'Accept\x20suggestion'),_0x24d51f['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5123f4,'Discard\x20suggestion'),_0x24d51f['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4528a4(_0x5123f4,_0xa9f8ce['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xb04134([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5e9eb5(),this['keystrokes']=new _0x45e3cc(),this['focusCycler']=new _0x1f7653({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2dc08a=>_0x2dc08a['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5dd9bb=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5dd9bb['innerHTML']=this['description'],this['on']('change:description',(_0x544d37,_0x40780f,_0x46c0df)=>{_0x5dd9bb['innerHTML']=_0x46c0df;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3ac999=this['bindTemplate'],_0x507440=[{'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']}},{'tag':'time','attributes':{'datetime':_0x3ac999['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3ac999['to']('authoredAt',_0xd16db4=>this['_config']['formatDateTime'](_0xd16db4))}]}]},{'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']&&_0x507440['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':_0x507440}]};}['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'](_0x4a916b,_0x5ce15b,_0x2b987e,_0x249014,_0x5ae073){const _0x14b0ba=new _0xf243c6(this['locale']);return _0x14b0ba['set']({'label':_0x4a916b,'icon':_0x5ce15b,'tooltip':!0x0,'tooltipPosition':_0x5ae073}),_0x14b0ba['extendTemplate']({'attributes':{'class':_0x2b987e}}),_0x14b0ba['on']('execute',()=>{this['fire'](_0x249014,this['_model']['id']);}),_0x14b0ba;}['_setupKeyboardNavigation'](){const _0x14206e=this['element'];this['keystrokes']['listenTo'](_0x14206e);for(const _0x59429d of this['focusables'])this['focusTracker']['add'](_0x59429d['element']),this['keystrokes']['listenTo'](_0x59429d['element']);this['keystrokes']['set']('enter',(_0xa30680,_0x4f057f)=>{_0x14206e===_0xa30680['target']&&(this['focusCycler']['focusFirst'](),_0x4f057f());}),this['keystrokes']['set']('esc',(_0x4164e1,_0x834099)=>{_0x14206e!==_0x4164e1['target']&&(this['focus'](),_0x834099());});}}var he='<!--\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-2024,\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 _0x35dcdc{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4a9a53,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x499380){super(_0x499380),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1a91be=this['editor']['config'];_0x1a91be['define']('trackChanges.SuggestionThreadView',re),_0x1a91be['define']('trackChanges.SuggestionView',ce),_0x1a91be['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1a91be['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1d682b,_0x73e791){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3ed929,_0x35f162]of this['_handleControllerBuffer']){const _0x4b3019=this['_suggestionToController']['has'](_0x3ed929);_0x4b3019||_0x35f162?_0x4b3019&&_0x35f162&&this['_destroyController'](_0x3ed929):this['_initializeController'](_0x3ed929);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1d682b,_0x73e791);}['init'](){const _0x23a726=this['editor'],_0x208672=_0x23a726['plugins']['get']('TrackChangesEditing'),_0xcd1a11=_0x23a726['plugins']['get']('Annotations'),_0x44a2ad=_0x23a726['plugins']['get']('EditorAnnotations'),_0x195709=_0x23a726['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x44a2ad['addSourceCollector'](()=>{const _0x1126dd=[];for(const [_0x19139e,_0x117b53]of Array['from'](this['_suggestionToController'])){const _0x3096fe=_0x19139e['getAllAdjacentSuggestions'](),_0x4dedab=[];for(const _0xb28103 of _0x3096fe){if(!_0xb28103['isInContent'])continue;if(_0xb28103['isMultiRange']){_0x4dedab['push'](..._0xb28103['getRanges']());continue;}const _0x2163d7=_0xb28103['getFirstRange']();if(_0x4dedab['length']>0x0){const _0x34c9ea=_0x4dedab[0x0]['getJoined'](_0x2163d7);if(_0x34c9ea){_0x4dedab[0x0]=_0x34c9ea;continue;}}_0x4dedab['push'](_0x2163d7);}_0x1126dd['push']([_0x117b53['view'],_0x4dedab]);}return _0x1126dd;}),this['listenTo'](_0x208672,'suggestionLoaded',(_0x3e34b8,_0x5d2b29)=>{this['listenTo'](_0x5d2b29,'change:previous',(_0x4e87c3,_0x37a9c0,_0x4c7706,_0x280438)=>{_0x5d2b29['isInContent']&&(null==_0x4c7706?(this['_updateController'](_0x280438['head']),this['_handleSuggestionControllerDelayed'](_0x5d2b29,!0x1)):(this['_updateController'](_0x4c7706['head']),null==_0x280438&&this['_handleSuggestionControllerDelayed'](_0x5d2b29,!0x0)));}),null!==_0x5d2b29['previous']?this['_updateController'](_0x5d2b29['head']):this['_handleSuggestionControllerDelayed'](_0x5d2b29,!0x1);}),this['listenTo'](_0x208672,'suggestionUnloaded',(_0x32e430,_0x8a8e02,_0xa426fb)=>{this['stopListening'](_0x8a8e02,'change:previous'),this['_handleControllerBuffer']['delete'](_0x8a8e02),this['_suggestionToController']['has'](_0x8a8e02)&&this['_destroyController'](_0x8a8e02),_0xa426fb&&this['_updateController'](_0xa426fb['head']);}),this['listenTo'](_0x208672,'suggestionChanged',(_0x23d430,_0x3475a8)=>{this['_updateController'](_0x3475a8);}),this['listenTo'](_0xcd1a11,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x195709,'addComment',(_0x3d7c15,{threadId:_0x57caa0,isFromAdapter:_0x1eebb9})=>{if(_0x1eebb9||!_0x208672['hasSuggestion'](_0x57caa0))return;const _0x30834d=_0x208672['getSuggestion'](_0x57caa0);this['_suggestionToController']['get'](_0x30834d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4b134b=this['editor']['plugins']['get']('Annotations'),_0x4fdb17=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20d00a=Array['from'](_0x4b134b['activeAnnotations'],_0x1800ab=>_0x1800ab['innerView'])['filter'](_0x537f9b=>this['_viewToController']['has'](_0x537f9b)),_0x5eb16f=[];for(const _0x48e5ec of _0x20d00a){const _0x297bcf=this['_viewToController']['get'](_0x48e5ec)['model']['getAllAdjacentSuggestions']();_0x5eb16f['push'](..._0x297bcf['reduce']((_0x4d97cf,_0x336221)=>[..._0x4d97cf,..._0x336221['getMarkerNames']()],[]));}_0x4fdb17['activeMarkers']=_0x5eb16f;}['_addUIComponentsToFactory'](){const _0x158d98=this['editor'],_0xa60d04=_0x158d98['locale'],_0x571294=o(_0xa60d04,'Track\x20changes'),_0x22d1a6=new Wt([{'type':'switchbutton','model':new _0x32796c({'withText':!0x0,'isToggleable':!0x0,'label':_0x571294,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x32796c({'withText':!0x0,'label':o(_0xa60d04,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x32796c({'withText':!0x0,'label':o(_0xa60d04,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x32796c({'withText':!0x0,'label':o(_0xa60d04,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x32796c({'withText':!0x0,'label':o(_0xa60d04,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x2bbff4 of _0x22d1a6)if(me(_0x2bbff4)){const _0x2bb5f3=_0x158d98['commands']['get'](_0x2bbff4['model']['commandName']);_0x2bbff4['model']['bind']('isOn','isEnabled')['to'](_0x2bb5f3,'value','isEnabled');}_0x158d98['ui']['componentFactory']['add']('trackChanges',_0x46adb7=>this['_createToolbarButton'](_0x46adb7,_0x22d1a6,_0x571294)),_0x158d98['ui']['componentFactory']['add']('menuBar:trackChanges',_0x201a88=>this['_createMenuBarMenu'](_0x201a88,_0x22d1a6,_0x571294));}['_createToolbarButton'](_0x597f6b,_0x27cbe3,_0x693214){const _0x1a6a8b=Qt(_0x597f6b,_0x549f17),_0x160b77=this['editor']['commands']['get']('trackChanges');_0x1a6a8b['buttonView']['set']({'tooltip':_0x693214,'label':_0x693214,'icon':he}),_0x1a6a8b['buttonView']['bind']('isOn')['to'](_0x160b77,'value'),_0x1a6a8b['buttonView']['on']('execute',()=>{_0x160b77['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x1a6a8b,_0x27cbe3,{'role':'menu'});const _0x29bfb8=[];for(const _0x3f790f of _0x27cbe3)me(_0x3f790f)&&_0x29bfb8['push'](this['editor']['commands']['get'](_0x3f790f['model']['commandName']));const _0x1343a9=_0x1a6a8b['buttonView'];return _0x1343a9['actionView']['unbind']('isEnabled'),_0x1343a9['arrowView']['unbind']('isEnabled'),_0x1343a9['actionView']['bind']('isEnabled')['to'](_0x160b77,'isEnabled'),_0x1343a9['arrowView']['bind']('isEnabled')['toMany'](_0x29bfb8,'isEnabled',(..._0xbc7724)=>_0xbc7724['some'](_0x2f9cc7=>_0x2f9cc7)),_0x1a6a8b['on']('execute',_0xc27641=>{this['editor']['execute'](_0xc27641['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1a6a8b;}['_createMenuBarMenu'](_0x272c53,_0x2b84d6,_0x48b7da){const _0x18fd11=new Yt(_0x272c53),_0x49c4fe=this['editor']['commands']['get']('trackChanges');_0x18fd11['buttonView']['set']({'label':_0x48b7da,'icon':he});const _0x17aa4f=new Zt(_0x272c53);for(const _0x423681 of _0x2b84d6){if('separator'==_0x423681['type']){_0x17aa4f['items']['add'](new Xt(_0x272c53));continue;}const _0x6f73ad=new te(_0x272c53,_0x18fd11),_0x746ebd=new _0x1bed13(_0x272c53),_0x14e3db=_0x423681['model'];_0x746ebd['bind'](...Object['keys'](_0x14e3db))['to'](_0x14e3db),_0x746ebd['delegate']('execute')['to'](_0x18fd11),_0x746ebd['on']('execute',()=>{this['editor']['execute'](_0x14e3db['commandName']),this['editor']['editing']['view']['focus']();}),_0x6f73ad['children']['add'](_0x746ebd),_0x17aa4f['items']['add'](_0x6f73ad);}return _0x18fd11['bind']('isEnabled')['to'](_0x49c4fe,'isEnabled'),_0x18fd11['panelView']['children']['add'](_0x17aa4f),_0x18fd11;}['_initializeController'](_0x3a0d40){const _0x99763d=this['editor'],_0x53a423=_0x99763d['config'],_0x1c79e6=_0x99763d['plugins']['get']('Annotations'),_0x22bbad=_0x99763d['plugins']['get']('CommentsRepository'),_0x3ff8b9=_0x99763d['plugins']['get']('EditorAnnotations'),_0x5b5fcf=_0x99763d['plugins']['get'](_0x4a9a53)['me'],_0xa2e1b0=_0x53a423['get']('trackChanges')['SuggestionThreadView'],_0x1c2737=_0x53a423['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2a03cf,CommentThreadInputView:_0x64d275}=_0x99763d['plugins']['get']('CommentsUI');let _0x491273,_0x512863,_0x313fd9;this['_annotationViews']['has'](_0x3a0d40['id'])?(_0x512863=this['_annotationViews']['get'](_0x3a0d40['id']),_0x491273=_0x512863['mainView']):(_0x491273=new _0xa2e1b0(_0x99763d['locale'],_0x3a0d40,_0x5b5fcf,{'disableComments':this['_disableComments'],'editorConfig':_0x53a423['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x53a423['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x53a423['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x53a423['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xa0a8c6(_0x53a423['get']('locale')),'CommentView':_0x53a423['get']('comments')['CommentView'],'CommentsListView':_0x2a03cf,'CommentThreadInputView':_0x64d275,'SuggestionView':_0x1c2737}),_0x491273['suggestionView']['acceptButton']['on']('execute',()=>{_0x99763d['editing']['view']['focus']();}),_0x491273['suggestionView']['discardButton']['on']('execute',()=>{_0x99763d['editing']['view']['focus']();}),_0x512863=_0x1c79e6['createAnnotationView'](this['editor']['locale'],_0x491273),_0x512863['bind']('isDirty')['to'](_0x491273,'isDirty'),_0x512863['bind']('length')['to'](_0x491273),_0x512863['bind']('type')['to'](_0x491273,'type',_0x5ed523=>'suggestion-'+_0x5ed523),_0x491273['on']('escape',()=>{_0x313fd9['fire']('escape');}),this['_annotationViews']['set'](_0x3a0d40['id'],_0x512863));const _0x4ba8c2=_0x22bbad['createCommentThreadController'](_0x3a0d40['commentThread'],_0x491273),_0x2b863f=new ae(_0x99763d,_0x3a0d40,_0x491273,_0x4ba8c2),_0x251286=_0x3a0d40['getAllAdjacentSuggestions']()['filter'](_0x54a163=>_0x54a163['isInContent']);_0x491273['descriptionParts']=_0x99763d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x251286),this['_suggestionToController']['set'](_0x3a0d40,_0x2b863f),this['_viewToController']['set'](_0x491273,_0x2b863f),_0x313fd9=_0x1c79e6['createAnnotation']({'view':_0x512863,'target':()=>{const _0x21b08a=[],_0x1952a1=_0x3a0d40['getAllAdjacentSuggestions']()['filter'](_0x54f0f7=>_0x54f0f7['isInContent']);for(const _0x5b305 of _0x1952a1)_0x21b08a['push'](..._0x5b305['getMarkers']());return _0x31c527(_0x99763d['editing'],_0x21b08a);},'type':()=>'suggestion-'+_0x2b863f['view']['type']}),_0x22bbad['_bindAnnotationToEditors'](_0x491273,_0x313fd9),_0x1c79e6['add'](_0x313fd9),_0x3ff8b9['registerAnnotation'](_0x313fd9);}['_destroyController'](_0x143923){const _0x1e7ecb=this['editor']['plugins']['get']('CommentsRepository'),_0x2e2238=this['editor']['plugins']['get']('Annotations'),_0x94db52=this['_suggestionToController']['get'](_0x143923),_0x5473e8=_0x94db52['view'],_0x1c7f3e=_0x2e2238['getByInnerView'](_0x5473e8);_0x1e7ecb['_unbindEditors'](_0x5473e8),_0x1c7f3e&&_0x2e2238['remove'](_0x1c7f3e),this['_suggestionToController']['delete'](_0x143923),this['_viewToController']['delete'](_0x5473e8),_0x94db52['destroy']();}['_updateController'](_0x4dfc19){if(!_0x4dfc19['isInContent']||!this['_suggestionToController']['has'](_0x4dfc19))return;const _0x1e991d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22db2d=this['_suggestionToController']['get'](_0x4dfc19),_0x18c6e7=_0x4dfc19['getAllAdjacentSuggestions']();_0x22db2d['view']['descriptionParts']=_0x1e991d['descriptionFactory']['getDescriptions'](_0x18c6e7);}['destroy'](){for(const _0x3ee9f6 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3ee9f6);for(const _0x118edc of this['_annotationViews']['values']())_0x118edc['mainView']['destroy']();super['destroy']();}}function me(_0x19a3ab){return'model'in _0x19a3ab;}class k extends _0x35dcdc{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3f5d68){this['editor']['plugins']['get'](p)['adapter']=_0x3f5d68;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2f4ac8){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2f4ac8);}['getSuggestions']({skipNotAttached:_0x2e123f=!0x1,toJSON:_0x1a0a81=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2e123f,'toJSON':_0x1a0a81});}['getSuggestion'](_0x1a0a3c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1a0a3c);}}const T=['Pagination'];class P extends _0x35dcdc{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x56792a=this['editor'];if(_0x56792a['config']['define']('trackChangesData.editorCreator',_0x516221=>{const _0x5150f5=_0x56792a['model']['document']['getRootNames']()['reduce']((_0x4f9e6c,_0x34fd37)=>(_0x4f9e6c[_0x34fd37]='',_0x4f9e6c),{});return _0x56792a['constructor']['create'](_0x5150f5,_0x516221);}),'function'!=typeof _0x56792a['config']['get']('trackChangesData')['editorCreator'])throw new _0x4c97a0('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4cc15c){return N(this['editor'],!0x0,_0x4cc15c);}['getDataWithDiscardedSuggestions'](_0x1de29b){return N(this['editor'],!0x1,_0x1de29b);}}class D extends _0x35dcdc{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x2afea1){super(_0x2afea1),this['result']='end';}['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 v(_0x2fbdcd){return void 0x0!==_0x2fbdcd['getRootsAttributes'];}async function N(_0x1ec30f,_0x313823,_0x59ba86){const _0x5cfe8b=_0x318346(_0x1ec30f,T);_0x5cfe8b['plugins']['push'](p,D),_0x5cfe8b['rootsAttributes']=v(_0x1ec30f)?_0x1ec30f['getRootsAttributes']():void 0x0;const _0x1f584b=document['createDocumentFragment'](),_0x5dce03=_0x1ec30f['config']['get']('trackChangesData')['editorCreator'],_0x4d2a2c=await _0x5dce03(_0x5cfe8b,()=>function(_0x4eb7a0){const _0x2f8b80=document['createElement']('div');return _0x4eb7a0['appendChild'](_0x2f8b80),_0x2f8b80;}(_0x1f584b));!function(_0x4abc0d,_0x4b687c){const _0x383fbd=_0x4abc0d['model']['document']['getRootNames']()['reduce']((_0x4ffd85,_0x44469d)=>(_0x4ffd85[_0x44469d]=_0x4abc0d['data']['get']({'rootName':_0x44469d}),_0x4ffd85),{}),_0x39dd2c=_0x4abc0d['plugins']['get']('Users')['users']['map'](_0x46cea9=>({'id':_0x46cea9['id'],'name':_0x46cea9['name']})),_0x4c50ec=_0x4abc0d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x57c4ca=_0x4abc0d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x45d0d6=_0x4b687c['plugins']['get']('Users'),_0x4c942e=_0x4b687c['plugins']['get']('TrackChangesEditing'),_0x13bb49=_0x4b687c['plugins']['get']('CommentsRepository');for(const _0x548949 of _0x13bb49['getCommentThreads']())_0x548949['remove']();for(const _0x4d8487 of _0x39dd2c)_0x45d0d6['getUser'](_0x4d8487['id'])||_0x45d0d6['addUser'](_0x4d8487);_0x45d0d6['me']||_0x45d0d6['useAnonymousUser']();for(const _0x5ef1bd of _0x57c4ca)_0x13bb49['addCommentThread'](_0x5ef1bd);for(const _0x35ee0d of _0x4c50ec)_0x4c942e['addSuggestionData'](_0x35ee0d);_0x4b687c['data']['set'](_0x383fbd);}(_0x1ec30f,_0x4d2a2c),_0x4d2a2c['execute'](_0x313823?'acceptAllSuggestions':'discardAllSuggestions');const _0x50e99e=v(_0x4d2a2c)?_0x4d2a2c['getFullData'](_0x59ba86):_0x4d2a2c['data']['get'](_0x59ba86);return await _0x4d2a2c['destroy'](),_0x50e99e;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};