@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240918.0 → 0.0.0-nightly-20240920.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 _0x5eca65,PendingActions as _0x3c05f6,icons as _0x54e97a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x97e699,ObservableMixin as _0x2b690f,uid as _0x3529ea,insertToPriorityArray as _0x330c6d,priorities as _0x273d74,logWarning as _0x3be10d,getEnvKeystrokeText as _0x5d66a8,FocusTracker as _0x21770b,KeystrokeHandler as _0x2c4637,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4bc733,View as _0x1a1f2a,ViewCollection as _0x13eefd,FocusCycler as _0x5f435a,ViewModel as _0x440560,createDropdown as Qt,SplitButtonView as _0x3f6de1,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x2a1bb3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x17bd53,hashObject as _0x39bb84,surroundingMarkersDetector as _0x1bf8aa,FOCUS_ANNOTATION_KEYSTROKE as _0x734bd5,AriaDescriptionView as _0x593ead,setupThreadKeyboardNavigation as _0x4f811d,trimHtml as _0x31e836,UserView as _0x3cbe58,LateFocusButtonView as _0x595eaa,getDateTimeFormatter as _0x43e9aa,getAllMarkersDomElementsSorted as _0x46e998,sanitizeEditorConfig as _0x16a92b}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1a8cff,LiveRange as _0x1c0e5b,LivePosition as _0x363280}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xdd39e7,toWidget as _0x45ff41}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1b07aa,set as _0x3b1d56,isEqual as _0x5b354c,unset as _0x1febcc,omit as Tt}from'lodash-es';import{Delete as _0x3fa6c3,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1ca728,ShiftEnter as _0x39d9f3}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x4a1cc7,_0x327fca){super(_0x4a1cc7),this['_enabledCommands']=_0x327fca,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 _0x4aeeab of this['editor']['commands']['commands']())_0x4aeeab['affectsData']&&!this['_enabledCommands']['has'](_0x4aeeab)&&_0x4aeeab['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x53587b of this['editor']['commands']['commands']())_0x53587b['affectsData']&&!this['_enabledCommands']['has'](_0x53587b)&&_0x53587b['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x5c38b7,_0x1a1d9d){super(_0x5c38b7),this['_suggestions']=_0x1a1d9d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2a5808){const _0x2f2b1d=this['_suggestions']['get'](_0x2a5808);if(!_0x2f2b1d)throw new _0x97e699('track-changes-accept-suggestion-not-found',this);const _0x44e480=_0x2f2b1d['getRanges']();this['editor']['model']['canEditAt'](_0x44e480)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2f2b1d);}}class R extends ts{['_suggestions'];constructor(_0x2f4078,_0x6f1624){super(_0x2f4078),this['_suggestions']=_0x6f1624,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x20afdb){const _0x34b503=this['_suggestions']['get'](_0x20afdb);if(!_0x34b503)throw new _0x97e699('track-changes-discard-suggestion-not-found',this);const _0x50f2a0=_0x34b503['getRanges']();this['editor']['model']['canEditAt'](_0x50f2a0)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x34b503);}}function ls(_0x39bd6f,_0x2e945f){let _0xbf5965='';return _0xbf5965+=_0x39bd6f['split']('*')['map']((_0x368da7,_0x5a977b)=>_0x5a977b%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x368da7)+'</span>':nn(_0x368da7))['join'](''),_0x2e945f&&(_0xbf5965+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2e945f['value']+'\x22\x20title=\x22'+_0x2e945f['title']+'\x22></span>'),_0xbf5965;}function nn(_0x2e2ce5){const _0x41ea86=document['createElement']('span');return _0x41ea86['innerText']=_0x2e2ce5,_0x41ea86['innerHTML'];}function ss(_0x1a3068){return _0x1a3068['sort']((_0x58655f,_0x184bea)=>'deletion'==_0x58655f['type']&&'deletion'!=_0x184bea['type']?-0x1:'deletion'!=_0x58655f['type']&&'deletion'==_0x184bea['type']?0x1:0x0);}function to(_0x561779,_0x5cee0a){let _0x3ab05b,_0x77b17a=0x0;const _0x537b61=[],_0xc19381=_0x5cee0a['schema'];for(;_0x77b17a<_0x561779['length'];){const _0x31eee3=_0x561779[_0x77b17a],_0x4bf85b=_0x561779[_0x77b17a+0x1];_0x3ab05b||(_0x3ab05b=_0x5cee0a['createPositionBefore'](_0x31eee3)),on(_0x5cee0a,_0x31eee3,_0x4bf85b)||(_0x537b61['push'](_0x5cee0a['createRange'](_0x3ab05b,_0xc19381['isObject'](_0x31eee3)?_0x5cee0a['createPositionAfter'](_0x31eee3):_0x5cee0a['createPositionAt'](_0x31eee3,'end'))),_0x3ab05b=null),_0x77b17a++;}return _0x537b61;}function on(_0x999608,_0x116412,_0x1afb93){if(!_0x1afb93)return!0x1;const _0x1840f8=_0x999608['createPositionAfter'](_0x116412),_0x173eb2=_0x999608['createPositionBefore'](_0x1afb93);return _0x1840f8['isTouching'](_0x173eb2);}function rs(_0x137315,_0x2ab8d3,_0x36c9f8){for(;_0x36c9f8['length'];){const _0x4113ac=_0x36c9f8['splice'](0x0,0x64);_0x137315['change'](()=>{for(const _0x41871a of _0x4113ac)_0x41871a['isInContent']&&_0x2ab8d3['execute'](_0x41871a['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x57ff25,_0x519404,_0x59b00b){super(_0x57ff25),this['_command']=_0x519404,this['_suggestions']=_0x59b00b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3d2c00=Array['from'](this['_suggestions']['values']())['some'](_0x3b2d1d=>_0x3b2d1d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3d2c00;}['execute'](){const _0x996f8c=ss(Array['from'](this['_suggestions']['values']()));for(const _0x19c9d0 of _0x996f8c){const _0x356489=_0x19c9d0['getRanges']();if(!this['editor']['model']['canEditAt'](_0x356489))return;}rs(this['editor']['model'],this['_command'],_0x996f8c);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1624af,_0x362e15,_0x57bcdd){super(_0x1624af),this['_command']=_0x362e15,this['_suggestions']=_0x57bcdd,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x12b3dd=this['editor']['model']['document']['selection'],_0x1e74f4=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2fb97f,_0x402a09){const _0x3be9c3=Array['from'](_0x2fb97f['getRanges']()),_0x5e54c7=new Set();for(const _0x43fadf of _0x402a09)if(_0x43fadf['isInContent']){for(const _0x15c6b4 of _0x3be9c3)for(const _0x3a68ea of _0x43fadf['getRanges']())(_0x15c6b4['isIntersecting'](_0x3a68ea)||_0x2fb97f['isCollapsed']&&!_0x43fadf['isMultiRange']&&_0x43fadf['next']&&_0x3a68ea['end']['isTouching'](_0x15c6b4['start']))&&_0x5e54c7['add'](_0x43fadf);}return _0x5e54c7;}(_0x12b3dd,_0x1e74f4),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x133ac0=ss(Array['from'](this['_selectedSuggestions']));for(const _0x510ccb of _0x133ac0){const _0x522ce7=_0x510ccb['getRanges']();if(!this['editor']['model']['canEditAt'](_0x522ce7))return;}rs(this['editor']['model'],this['_command'],_0x133ac0);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x2b690f(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1ef8db,_0x3e6444){super(),this['id']=_0x3e6444['id'],this['type']=_0x3e6444['type'],this['subType']=_0x3e6444['subType']||null,this['author']=_0x3e6444['author'],this['creator']=_0x3e6444['creator']||_0x3e6444['author'],this['isExternal']=Boolean(_0x3e6444['attributes']&&_0x3e6444['attributes']['@external']),this['data']=null,this['_model']=_0x1ef8db,this['_onAccept']=_0x3e6444['onAccept'],this['_onDiscard']=_0x3e6444['onDiscard'],this['_onAttributesChange']=_0x3e6444['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3e6444['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 _0x2530d9=this;for(;_0x2530d9['previous'];)_0x2530d9=_0x2530d9['previous'];return _0x2530d9;}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'](_0x9164eb){this['_markerNames']['add'](_0x9164eb);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3bcd63=>this['_model']['markers']['get'](_0x3bcd63))['filter'](_0x45ac1e=>_0x45ac1e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1c3a3c=>{for(const _0x1dbe26 of this['getMarkers']())_0x1c3a3c['removeMarker'](_0x1dbe26);}),this['_markerNames']['clear']();}['removeMarker'](_0x515e28){this['_model']['change'](_0x4764c1=>{_0x4764c1['removeMarker'](_0x515e28);}),this['_markerNames']['delete'](_0x515e28);}['addRange'](_0x407d49){const _0x204eb9='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x204eb9),this['_model']['change'](_0x51b3fc=>{_0x51b3fc['addMarker'](_0x204eb9,{'range':_0x407d49,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4ffd8f){for(const _0x354df1 of this['getRanges']())if(_0x354df1['isIntersecting'](_0x4ffd8f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xc4364c=>_0xc4364c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3e90f0,_0x46d15c)=>[..._0x3e90f0,..._0x46d15c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4c1976=this['getRanges']();if(0x1!=_0x4c1976['length'])return null;const _0xc3dd4c=_0x4c1976[0x0],_0x4fc3f9=_0xc3dd4c['start']['nodeAfter'],_0x1e448b=_0xc3dd4c['end']['nodeBefore'];return _0x4fc3f9 instanceof _0x1a8cff?_0x4fc3f9!=_0x1e448b?null:_0x4fc3f9: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 _0x1f7b07=[];let _0x5d690f=this['head'];for(;_0x5d690f;)_0x1f7b07['push'](_0x5d690f),_0x5d690f=_0x5d690f['next'];return _0x1f7b07;}['setAttribute'](_0x141ca4,_0x39828b){const _0x2c3bd1=_0x1b07aa(this['attributes']);_0x3b1d56(_0x2c3bd1,_0x141ca4,_0x39828b),_0x5b354c(_0x2c3bd1,this['attributes'])||(this['attributes']=_0x2c3bd1,this['_onAttributesChange'](_0x2c3bd1));}['removeAttribute'](_0x3c86d5){const _0x8af199=_0x1b07aa(this['attributes']);_0x1febcc(_0x8af199,_0x3c86d5),_0x5b354c(_0x8af199,this['attributes'])||(this['attributes']=_0x8af199,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 _0x3529ea()['substr'](0x1,0x5);}}function o(_0x60202,_0x353469,_0x571d21){const t=_0x60202['t'];switch(_0x353469){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',_0x571d21);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x571d21);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x571d21);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x571d21);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x571d21);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',_0x571d21);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x571d21);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',_0x571d21);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x571d21);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x571d21);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x571d21);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x571d21);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x571d21);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x571d21);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x571d21);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x571d21);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x571d21);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x571d21);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x571d21);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x571d21);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x571d21);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x571d21);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x571d21);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'},_0x571d21);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x571d21);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x571d21);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x571d21);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x571d21);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x571d21);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'},_0x571d21);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x571d21);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x571d21);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x571d21);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x571d21);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'},_0x571d21);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x571d21);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'},_0x571d21);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'},_0x571d21);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x571d21);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'},_0x571d21);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x571d21);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'},_0x571d21);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x571d21);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x571d21);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'},_0x571d21);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'},_0x571d21);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'},_0x571d21);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x571d21);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'},_0x571d21);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'},_0x571d21);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'},_0x571d21);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x353469;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1721db,_0x3690ae){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1721db,this['_locale']=_0x3690ae;}['getDescriptions'](_0x3faa77){const _0x28f1ee=[],_0x5961b6=new Set(),_0x3e3078=new Set();for(let _0x44132b=0x0;_0x44132b<_0x3faa77['length'];_0x44132b++){const _0x267752=_0x3faa77[_0x44132b];if(!_0x267752['isInContent'])continue;const _0x48311e=this['_handleCustomCallbackDescription'](_0x267752);if(_0x48311e){if(null!=_0x267752['subType']){if(_0x5961b6['has'](_0x267752['subType']))continue;_0x5961b6['add'](_0x267752['subType']);}_0x28f1ee['push'](_0x48311e);}else{if('attribute'!=_0x267752['type'])'insertion'!=_0x267752['type']&&'deletion'!=_0x267752['type']||this['_handleInsertRemoveSuggestionDescription'](_0x28f1ee,_0x267752,_0x3faa77[_0x44132b+0x1]);else{const _0x522dfa=_0x267752['data']['key'];if(_0x3e3078['has'](_0x522dfa))continue;_0x3e3078['add'](_0x267752['data']['key']),_0x522dfa==m?this['_handleRenameSuggestionDescription'](_0x28f1ee,_0x267752):this['_handleAttributeSuggestionDescription'](_0x28f1ee,_0x267752);}}}return this['_resolveDescriptionItems'](_0x28f1ee);}['registerDescriptionCallback'](_0x5d2746){this['_customCallbacks']['push'](_0x5d2746);}['registerElementLabel'](_0x37bea6,_0x27efb5,_0x1c2d30=_0x273d74['normal']){'function'==typeof _0x37bea6?_0x330c6d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x37bea6,'label':_0x27efb5,'priority':_0x1c2d30}):this['_itemLabels']['set'](_0x37bea6,_0x27efb5);}['registerAttributeLabel'](_0xa94a82,_0x46150a){this['_attributeLabels']['set'](_0xa94a82,_0x46150a);}['getItemLabel'](_0x5a85f8,_0x3a8bd4=0x1){let _0x1e69d9;for(const _0x1a1892 of this['_itemLabelsCallbacks'])if(_0x1a1892['matchingCallback'](_0x5a85f8)){_0x1e69d9=_0x1a1892['label'];break;}return _0x1e69d9||(_0x1e69d9=this['_itemLabels']['get'](_0x5a85f8['name'])),_0x1e69d9?_0x1e69d9(_0x3a8bd4):0x1!==_0x3a8bd4?_0x3a8bd4+'\x20'+_0x5a85f8['name']+'s':''+_0x5a85f8['name'];}['_addDescriptionItems'](_0x1ee013,_0x4a2892){const _0x4a0a89=_0x4a2892['getFirstRange']()['getWalker'](),_0x1bac87='insertion'==_0x4a2892['type']?'add':'remove';for(const _0xb00771 of _0x4a0a89){const _0x4f370f=_0xb00771['item'],_0x430eb2=_0x1ee013[_0x1ee013['length']-0x1];if(_0x4f370f['is']('$textProxy'))_0x430eb2&&_0x430eb2['type']['indexOf']('Container')>-0x1&&_0x1ee013['pop'](),_0x430eb2&&'text'==_0x430eb2['type']?_0x430eb2[_0x1bac87]+=_0x4f370f['data']:_0x1ee013['push']({'type':'text','add':'add'==_0x1bac87?_0x4f370f['data']:'','remove':'remove'==_0x1bac87?_0x4f370f['data']:''});else{if(this['_schema']['isObject'](_0x4f370f)){const _0x36c998=_0x4f370f;if(_0x430eb2&&_0x430eb2['type']['indexOf']('Container')>-0x1&&_0x1ee013['pop'](),'elementEnd'==_0xb00771['type'])continue;_0x430eb2&&_0x430eb2['type']==_0x1bac87+'Object'&&_0x430eb2['element']['name']==_0x36c998['name']?_0x430eb2['quantity']++:_0x1ee013['push']({'type':_0x1bac87+'Object','element':_0x36c998,'quantity':0x1}),_0x4a0a89['skip'](_0x8ac092=>!('elementEnd'==_0x8ac092['type']&&_0x8ac092['item']==_0x4f370f));}else{if(this['_schema']['checkChild'](_0x4f370f,'$text')||_0x4f370f['is']('element','softBreak')){const _0x2137f2=_0x4f370f;if('add'==_0x1bac87&&'elementStart'==_0xb00771['type']||'remove'==_0x1bac87&&'elementEnd'==_0xb00771['type'])continue;if(_0x430eb2&&-0x1==_0x430eb2['type']['indexOf']('Container')){'text'==_0x430eb2['type']&&(_0x430eb2[_0x1bac87]+='\x0a');continue;}let _0x3885c4;if(_0x3885c4='add'==_0x1bac87?_0x2137f2['nextSibling']&&!this['_schema']['isObject'](_0x2137f2['nextSibling'])?_0x2137f2['nextSibling']:null:_0x2137f2['previousSibling']&&!this['_schema']['isObject'](_0x2137f2['previousSibling'])?_0x2137f2['previousSibling']:null,_0x2137f2['isEmpty']||_0x3885c4&&_0x3885c4['isEmpty']){const _0x448a68=_0x3885c4&&_0x3885c4['isEmpty']?_0x3885c4:_0x2137f2;_0x430eb2&&_0x430eb2['type']==_0x1bac87+'EmptyContainer'&&_0x430eb2['element']['name']==_0x448a68['name']?_0x430eb2['quantity']++:_0x1ee013['push']({'type':_0x1bac87+'EmptyContainer','element':_0x448a68,'quantity':0x1});}else _0x1ee013['push']({'type':_0x1bac87+'Container','element':_0x2137f2});}}}}}['_resolveDescriptionItems'](_0x5e9349){const _0x4da1cb=this['_locale'],_0x197216=[],_0x22cc4d=[],_0x183331=[];for(const _0x5ac413 of _0x5e9349)switch(_0x5ac413['type']){case'text':if(_0x5ac413['add']=_0x5ac413['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5ac413['remove']=_0x5ac413['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5ac413['add']&&''!=_0x5ac413['remove']){_0x197216['push']({'type':'replace','content':o(_0x4da1cb,'REPLACE_TEXT',['\x22'+_0x5ac413['remove']+'\x22','\x22'+_0x5ac413['add']+'\x22'])});continue;}if(null!=_0x5ac413['add']['match'](/^ +$/)){_0x197216['push']({'type':'insertion','content':o(_0x4da1cb,'*Insert:*\x20%0',o(_0x4da1cb,'ELEMENT_SPACE',_0x5ac413['add']['length']))});continue;}if(null!=_0x5ac413['remove']['match'](/^ +$/)){_0x197216['push']({'type':'deletion','content':o(_0x4da1cb,'*Remove:*\x20%0',o(_0x4da1cb,'ELEMENT_SPACE',_0x5ac413['remove']['length']))});continue;}if(''!=_0x5ac413['add']){_0x197216['push']({'type':'insertion','content':o(_0x4da1cb,'*Insert:*\x20%0','\x22'+_0x5ac413['add']+'\x22')});continue;}_0x197216['push']({'type':'deletion','content':o(_0x4da1cb,'*Remove:*\x20%0','\x22'+_0x5ac413['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x197216['push']({'type':'insertion','content':o(_0x4da1cb,'*Insert:*\x20%0',this['getItemLabel'](_0x5ac413['element'],_0x5ac413['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x197216['push']({'type':'deletion','content':o(_0x4da1cb,'*Remove:*\x20%0',this['getItemLabel'](_0x5ac413['element'],_0x5ac413['quantity']))});continue;case'addContainer':_0x197216['push']({'type':'insertion','content':o(_0x4da1cb,'*Split:*\x20%0',this['getItemLabel'](_0x5ac413['element'],_0x5ac413['quantity']))});continue;case'removeContainer':_0x197216['push']({'type':'deletion','content':o(_0x4da1cb,'*Merge:*\x20%0',this['getItemLabel'](_0x5ac413['element'],_0x5ac413['quantity']))});continue;case'addFormat':_0x22cc4d['push'](_0x5ac413['key']);continue;case'removeFormat':_0x183331['push'](_0x5ac413['key']);continue;default:_0x197216['push'](_0x5ac413);}if(_0x22cc4d['length']){const _0x31c834=_0x22cc4d['map'](_0x10d40d=>this['_attributeLabels']['has'](_0x10d40d)?this['_attributeLabels']['get'](_0x10d40d):_0x10d40d)['join'](',\x20');_0x197216['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x31c834)});}if(_0x183331['length']){const _0x344f9b=_0x183331['map'](_0x129dd6=>this['_attributeLabels']['has'](_0x129dd6)?this['_attributeLabels']['get'](_0x129dd6):_0x129dd6)['join'](',\x20');_0x197216['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x344f9b)});}return _0x197216;}['_handleCustomCallbackDescription'](_0x2a58a4){for(const _0x4ec938 of this['_customCallbacks']){const _0x37c1e1=_0x4ec938(_0x2a58a4);if(_0x37c1e1&&'type'in _0x37c1e1)return _0x37c1e1;}}['_handleAttributeSuggestionDescription'](_0x557f58,_0xe38a2){const _0x2966ac=_0xe38a2['data'],_0x3151fa=void 0x0===_0x2966ac['newValue']?'removeFormat':'addFormat';_0x557f58['push']({'type':_0x3151fa,'key':_0x2966ac['key']});}['_handleRenameSuggestionDescription'](_0x3ce7f6,_0xbed71d){_0x3ce7f6['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xbed71d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xc2ac39,_0x41d885,_0x2f192a){if(this['_addDescriptionItems'](_0xc2ac39,_0x41d885),_0x2f192a&&_0x2f192a['getFirstRange']()&&!_0x41d885['getFirstRange']()['end']['isEqual'](_0x2f192a['getFirstRange']()['start'])){const _0x10a6a7=_0xc2ac39[_0xc2ac39['length']-0x1],_0x2993e7='insertion'==_0x41d885['type']?'add':'remove';_0x10a6a7&&'text'==_0x10a6a7['type']&&(_0x10a6a7[_0x2993e7]+='\x0a');}}}class V extends _0x5eca65{['afterInit'](){const _0x41b5c0=this['editor'],_0x28e4b6=_0x41b5c0['plugins']['get']('TrackChangesEditing');_0x41b5c0['commands']['get']('showAIAssistant')&&_0x28e4b6['enableCommand']('showAIAssistant');}}class U extends _0x5eca65{['afterInit'](){const _0x499f94=this['editor'],_0x2689a5=_0x499f94['locale'];if(!_0x499f94['plugins']['has']('AlignmentEditing'))return;const _0x2b616a=_0x499f94['plugins']['get']('TrackChangesEditing');_0x2b616a['enableDefaultAttributesIntegration']('alignment'),_0x2b616a['registerBlockAttribute']('alignment'),_0x2b616a['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2689a5,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5561a5=this['editor'],_0xbc42ef=_0x5561a5['locale'];_0x5561a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x409f20=>{if('formatBlock'!=_0x409f20['type'])return;const {data:_0x140b0d}=_0x409f20;if(_0x140b0d&&'alignment'==_0x140b0d['commandName']){const _0xe63b97=_0x140b0d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xbc42ef,'*Format:*\x20%0',function(_0x160071){switch(_0x160071){case'left':return o(_0xbc42ef,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xbc42ef,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xbc42ef,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xbc42ef,'FORMAT_JUSTIFY_TEXT');}}(_0xe63b97))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x5eca65{['afterInit'](){const _0x45850a=this['editor'],_0x406720=_0x45850a['plugins']['get']('TrackChangesEditing'),_0x82ce40=_0x45850a['locale'];for(const _0x3301f9 of ti){if(!_0x45850a['plugins']['has'](_0x3301f9))continue;const _0x5905f9=_0x3301f9['slice'](0x0,-0x7)['toLowerCase'](),_0x46ea6a='FORMAT_'+_0x5905f9['toUpperCase']();_0x406720['enableDefaultAttributesIntegration'](_0x5905f9),_0x406720['registerInlineAttribute'](_0x5905f9),_0x406720['descriptionFactory']['registerAttributeLabel'](_0x5905f9,o(_0x82ce40,_0x46ea6a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2da69d=this['editor'],_0x2c387b=_0x2da69d['locale'],_0x2af9c6=_0x2da69d['plugins']['get']('TrackChangesEditing');function _0xe2779d(_0x111df0,_0x442e15){_0x2af9c6['descriptionFactory']['registerDescriptionCallback'](_0x5aba57=>{if('formatInline'!=_0x5aba57['type'])return;const {data:_0x251b94}=_0x5aba57;return _0x251b94&&_0x251b94['commandName']===_0x111df0?_0x251b94['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2c387b,'*Format:*\x20%0',_0x442e15)}:{'type':'format','content':o(_0x2c387b,'*Remove\x20format:*\x20%0',_0x442e15)}:void 0x0;});}_0xe2779d('bold',o(_0x2c387b,'FORMAT_BOLD')),_0xe2779d('italic',o(_0x2c387b,'FORMAT_ITALIC')),_0xe2779d('underline',o(_0x2c387b,'FORMAT_UNDERLINE')),_0xe2779d('code',o(_0x2c387b,'FORMAT_CODE')),_0xe2779d('strikethrough',o(_0x2c387b,'FORMAT_STRIKETHROUGH')),_0xe2779d('subscript',o(_0x2c387b,'FORMAT_SUBSCRIPT')),_0xe2779d('superscript',o(_0x2c387b,'FORMAT_SUPERSCRIPT'));}}class F extends _0x5eca65{['afterInit'](){const _0xdcdd16=this['editor'],_0x33100d=_0xdcdd16['locale'];if(!_0xdcdd16['plugins']['has']('BlockQuoteEditing'))return;const _0x21f1a6=_0xdcdd16['plugins']['get']('TrackChangesEditing'),_0x16f2d0=this['editor']['commands']['get']('blockQuote');_0x21f1a6['enableCommand']('blockQuote',(_0x446968,_0x8e1ed1={})=>{const _0x524267=this['editor']['model']['document']['selection'],_0xb87592=_0x8e1ed1&&void 0x0!==_0x8e1ed1['forceValue']?_0x8e1ed1['forceValue']:!_0x16f2d0['value'];let _0x517a2c=[];if(_0xb87592){const _0x5a9fa9=Array['from'](_0x524267['getSelectedBlocks']())['filter'](_0x4936a8=>oo(_0x4936a8)||function(_0x12fd1d,_0x18dcb3){const _0x343991=_0x18dcb3['checkChild'](_0x12fd1d['parent'],'blockQuote'),_0x4cc722=_0x18dcb3['checkChild'](['$root','blockQuote'],_0x12fd1d);return _0x343991&&_0x4cc722;}(_0x4936a8,this['editor']['model']['schema']));_0x517a2c=to(_0x5a9fa9,_0xdcdd16['model']);}else{const _0x22af9e=Array['from'](_0x524267['getSelectedBlocks']())['filter'](_0xe76f7d=>oo(_0xe76f7d));_0x517a2c=to(_0x22af9e,_0xdcdd16['model']);}_0xdcdd16['model']['change'](()=>{for(const _0x127998 of _0x517a2c)_0x21f1a6['markBlockFormat'](_0x127998,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xb87592}]});});}),_0x21f1a6['descriptionFactory']['registerDescriptionCallback'](_0x31f547=>{const {data:_0x2416f4}=_0x31f547;if(_0x2416f4&&'blockQuote'==_0x2416f4['commandName']){const _0x37188f=o(_0x33100d,'ELEMENT_BLOCK_QUOTE');return _0x2416f4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33100d,'*Set\x20format:*\x20%0',_0x37188f)}:{'type':'format','content':o(_0x33100d,'*Remove\x20format:*\x20%0',_0x37188f)};}});}}function oo(_0x387a26){return'blockQuote'==_0x387a26['parent']['name'];}class L extends _0x5eca65{['afterInit'](){const _0x32e7da=this['editor'];_0x32e7da['plugins']['has']('CaseChange')&&(_0x32e7da['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x32e7da['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x32e7da['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x5eca65{['afterInit'](){const _0x34ad18=this['editor'];_0x34ad18['commands']['get']('ckbox')&&_0x34ad18['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x5eca65{['afterInit'](){const _0x214c81=this['editor'];if(!_0x214c81['plugins']['has']('CodeBlock'))return;const _0x1b1450=_0x214c81['plugins']['get']('TrackChangesEditing'),_0x282bd5=_0x214c81['locale'],_0x4dff83=_0x214c81['config']['get']('codeBlock')['languages'],_0x3a4661=_0x214c81['commands']['get']('codeBlock');_0x1b1450['enableCommand']('indentCodeBlock'),_0x1b1450['enableCommand']('outdentCodeBlock'),_0x1b1450['enableCommand']('codeBlock',(_0x4841c9,_0x3afe78={})=>{const _0x587e91=_0x214c81['model'],_0x5f5149=_0x214c81['model']['document']['selection'],_0x108338=_0x3afe78&&void 0x0!==_0x3afe78['forceValue']?_0x3afe78['forceValue']:!_0x3a4661['value'];let _0x5e9abe;_0x3afe78['language']||(_0x3afe78['language']=_0x4dff83[0x0]['language']),_0x5e9abe=_0x108338?Array['from'](_0x5f5149['getSelectedBlocks']())['filter'](_0x57b017=>eo(_0x57b017)||function(_0x457f91,_0x12b5fa){if(_0x457f91['is']('rootElement')||_0x12b5fa['isLimit'](_0x457f91))return!0x1;return _0x12b5fa['checkChild'](_0x457f91['parent'],'codeBlock');}(_0x57b017,_0x587e91['schema'])):Array['from'](_0x5f5149['getSelectedBlocks']())['filter'](_0x36fe12=>eo(_0x36fe12));const _0x136b63=to(_0x5e9abe,_0x587e91);_0x587e91['change'](()=>{for(const _0x510209 of _0x136b63)_0x1b1450['markBlockFormat'](_0x510209,{'commandName':'codeBlock','commandParams':[{..._0x3afe78,'forceValue':_0x108338}],'formatGroupId':'blockName'});});}),(_0x1b1450['descriptionFactory']['registerElementLabel']('codeBlock',_0x55472f=>o(_0x282bd5,'ELEMENT_CODE_BLOCK',_0x55472f)),_0x1b1450['descriptionFactory']['registerDescriptionCallback'](_0x84e0b2=>{if('formatBlock'!=_0x84e0b2['type'])return;const _0x30fbd5=_0x282bd5['t'],{data:_0x411059}=_0x84e0b2;if(!_0x411059||'codeBlock'!=_0x411059['commandName'])return;const _0x4fff89=_0x411059['commandParams'][0x0]['language'],_0x4cc3fa=_0x30fbd5(_0x4dff83['find'](_0x3dfa82=>_0x3dfa82['language']===_0x4fff89)['label'])['toLowerCase']();return _0x411059['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x282bd5,'*Set\x20format:*\x20%0',o(_0x282bd5,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4cc3fa+')')}:{'type':'format','content':o(_0x282bd5,'*Remove\x20format:*\x20%0',o(_0x282bd5,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x8a1738){return'codeBlock'==_0x8a1738['name'];}class q extends _0x5eca65{['afterInit'](){const _0x27d8c8=this['editor'];if(!_0x27d8c8['plugins']['has']('CommentsEditing'))return;_0x27d8c8['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3fad01,_0x10eaaa,_0x171f93){const _0x64f294=[];for(const _0x212749 of _0x10eaaa['getItems']())_0x212749['hasAttribute'](_0x3fad01)&&_0x64f294['push'](_0x171f93['createRangeOn'](_0x212749));return _0x64f294;}function _e(_0x4298c3,_0x273343,{showActiveMarker:_0x311ec4=!0x0}={}){const _0x47e1a7=_0x4298c3['plugins']['get']('TrackChangesEditing');return(_0x11c396,_0x59f7a6,_0x1619c2)=>{if(!_0x1619c2['consumable']['test'](_0x59f7a6['markerRange'],_0x11c396['name']))return;const _0x32a1c9=_0x59f7a6['markerRange']['getWalker'](),_0x4f1804=_0x59f7a6['markerRange']['start'],_0x64e74f=_0x4298c3['model']['schema'];let _0x5f49b3=null,_0x5b5cf2=null,_0x29863e=!0x1,_0x199f5c=!0x1;for(const _0xbd4fdd of _0x32a1c9){const _0x40daa4=_0xbd4fdd['item'];_0x29863e=_0x29863e||_0x64e74f['isContent'](_0x40daa4);const _0x24e03c=_0x1619c2['mapper']['toViewElement'](_0x40daa4);if(_0x24e03c&&_0x24e03c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xbd4fdd['type']&&(_0x64e74f['isBlock'](_0x40daa4)&&!_0x64e74f['isLimit'](_0x40daa4)&&(_0x40daa4['nextSibling']||_0x4f1804['isAtEnd']?_0x5f49b3&&_0x5f49b3['parent']==_0x40daa4||(_0x5f49b3=_0x40daa4,_0x4a9df5(_0xbd4fdd['previousPosition']),_0x199f5c=!0x0):_0x5b5cf2=_0x5b5cf2||_0xbd4fdd['previousPosition']));}function _0x4a9df5(_0x4b4e03){const {authorId:_0x2221d7}=_0x47e1a7['_splitMarkerName'](_0x59f7a6['markerName']),_0x5206d9=_0x1619c2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x273343,'data-author-id':_0x2221d7}),_0x27eb6c=_0x1619c2['mapper']['toViewPosition'](_0x4b4e03);_0x311ec4&&_0x47e1a7['activeMarkers']['includes'](_0x59f7a6['markerName'])&&_0x1619c2['writer']['addClass']('ck-suggestion-marker--active',_0x5206d9),_0x1619c2['writer']['insert'](_0x27eb6c,_0x5206d9),_0x1619c2['mapper']['bindElementToMarker'](_0x5206d9,_0x59f7a6['markerName']);}_0x29863e||_0x199f5c||!_0x5b5cf2||_0x4a9df5(_0x5b5cf2);};}class z extends _0x5eca65{static get['requires'](){return[_0x3fa6c3];}['init'](){const _0xcee73b=this['editor'],_0x33b4cd=_0xcee73b['plugins']['get']('TrackChangesEditing');_0x33b4cd['enableCommand']('delete');const _0x40a9a7=_0xcee73b['commands']['get']('deleteForward');_0x33b4cd['enableCommand']('deleteForward',(_0x50e501,_0xd32c03={})=>{const _0x2de7b8=_0xcee73b['model']['createSelection'](_0xcee73b['model']['document']['selection']);_0x2de7b8['isCollapsed']&&_0xcee73b['model']['modifySelection'](_0x2de7b8,{'direction':'forward','unit':_0xd32c03['unit']});const _0x585c35=_0x2de7b8['getFirstRange'](),_0xf2a675=_0x1c0e5b['fromRange'](_0x585c35);let _0x405b5c;_0x50e501(_0xd32c03),_0x405b5c='$graveyard'==_0xf2a675['root']['rootName']?_0xcee73b['model']['createRange'](_0x585c35['start']):_0xcee73b['model']['createRange'](_0xf2a675['start'],_0xf2a675['end']),_0xf2a675['detach'](),_0xcee73b['model']['enqueueChange'](_0x40a9a7['buffer']['batch'],_0x54dd7e=>{_0x40a9a7['buffer']['lock'](),_0x54dd7e['setSelection'](_0x54dd7e['createRange'](_0x405b5c['end'])),_0x40a9a7['buffer']['unlock']();});}),_0xcee73b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0xcee73b,'merge'),{'priority':'high'}),_0xcee73b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xa18ef9,_0x36753c,_0x105df8)=>{_0x105df8['options']['showSuggestionHighlights']&&_e(_0xcee73b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xa18ef9,_0x36753c,_0x105df8);},{'priority':'high'}),_0xcee73b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xf0ccc9,_0x259e48,_0x330c47)=>{const _0xb2531=_0x330c47['mapper']['markerNameToElements'](_0x259e48['markerName']);if(_0xb2531){for(const _0x180b2d of _0xb2531)_0x180b2d['is']('uiElement')&&(_0x330c47['mapper']['unbindElementFromMarkerName'](_0x180b2d,_0x259e48['markerName']),_0x330c47['writer']['remove'](_0x180b2d));}},{'priority':'high'});}}class K extends _0x5eca65{['afterInit'](){const _0x2b59d6=this['editor'];if(!_0x2b59d6['plugins']['has']('ListEditing'))return;const _0x594281=_0x2b59d6['locale'],_0x32c229=_0x2b59d6['plugins']['get']('TrackChangesEditing'),_0x5c9753=_0x2b59d6['plugins']['has']('TodoListEditing'),_0x1c0ae6=!!_0x2b59d6['config']['get']('list.multiBlock');function _0x30472d(_0x2dd0f3){return{'type':'format','content':''+o(_0x594281,'*Set\x20format:*\x20%0',_0x2dd0f3)};}function _0x34ac61(_0x21f23f){return{'type':'format','content':''+o(_0x594281,'*Remove\x20format:*\x20%0',_0x21f23f)};}_0x32c229['enableDefaultAttributesIntegration']('numberedList'),_0x32c229['enableDefaultAttributesIntegration']('bulletedList'),_0x32c229['enableDefaultAttributesIntegration']('customNumberedList'),_0x32c229['enableDefaultAttributesIntegration']('customBulletedList'),_0x32c229['enableDefaultAttributesIntegration']('indentList'),_0x32c229['enableDefaultAttributesIntegration']('outdentList'),_0x32c229['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x32c229['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x32c229['registerBlockAttribute']('listItemId'),_0x32c229['registerBlockAttribute']('listType'),_0x32c229['registerBlockAttribute']('listIndent'),_0x1c0ae6&&(_0x32c229['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x32c229['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5c9753&&(_0x32c229['enableDefaultAttributesIntegration']('todoList'),_0x32c229['enableDefaultAttributesIntegration']('checkTodoList'),_0x32c229['registerBlockAttribute']('todoListChecked'),_0x32c229['descriptionFactory']['registerDescriptionCallback'](_0x3f5241=>{const {data:_0x30a938}=_0x3f5241;if(_0x30a938&&'todoListChecked'==_0x30a938['key'])return{'type':'format','content':_0x30a938['newValue']?o(_0x594281,'*Check\x20item*'):o(_0x594281,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x48ad4d=>{if(_0x48ad4d['batch']['isUndo'])return!0x1;let _0x557ace=!0x1;const _0x2805fc=_0x32c229['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57d8f8=>'todoListChecked'===_0x32c229['_getAttributeKey'](_0x57d8f8));for(const _0x32eed4 of _0x2805fc){'todo'!=_0x32eed4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x32c229['_findSuggestions'](_0x32eed4['getFirstRange'](),'attribute')['find'](_0x107d45=>'listType'===_0x32c229['_getAttributeKey'](_0x107d45['suggestion']))||(_0x48ad4d['removeMarker'](_0x32eed4['getFirstMarker']()),_0x557ace=!0x0));}return _0x557ace;})),_0x32c229['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x594281,'FORMAT_INDENT'));const _0x4795f7={'type':'format','content':''};_0x32c229['descriptionFactory']['registerDescriptionCallback'](_0x52d561=>{const {data:_0x170991}=_0x52d561;if(!_0x170991||'listType'!=_0x170991['key'])return;let _0x38f604=_0x52d561['head'];for(;_0x38f604;){if(_0x38f604['data']&&(('listStyle'==_0x38f604['data']['key']||'listMarkerStyle'==_0x38f604['data']['key'])&&(_0x38f604['data']['newValue']&&'default'!=_0x38f604['data']['newValue']||'default'!=_0x38f604['data']['oldValue']&&!_0x170991['newValue'])||!_0x1c0ae6&&_0x38f604['data']['key']==m))return _0x4795f7;_0x38f604=_0x38f604['next'];}if(null==_0x170991['newValue'])switch(_0x170991['oldValue']){case'bulleted':return _0x34ac61(o(_0x594281,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x34ac61(o(_0x594281,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x34ac61(o(_0x594281,'ELEMENT_TODO_LIST'));}switch(_0x170991['newValue']){case'bulleted':return _0x30472d(o(_0x594281,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x30472d(o(_0x594281,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x30472d(o(_0x594281,'ELEMENT_TODO_LIST'));}}),_0x32c229['descriptionFactory']['registerDescriptionCallback'](_0x360faa=>{const {data:_0x32e9dc}=_0x360faa;if(_0x32e9dc&&'listIndent'==_0x32e9dc['key'])return null==_0x32e9dc['newValue']||null==_0x32e9dc['oldValue']&&0x0==_0x32e9dc['newValue']?_0x4795f7:void 0x0;}),_0x32c229['descriptionFactory']['registerDescriptionCallback'](_0x3ae25c=>{if('attribute'!=_0x3ae25c['type'])return;const {data:_0x1657e2}=_0x3ae25c;if(!_0x1657e2||'listItemId'!=_0x1657e2['key'])return;const _0x145e91=Ee(_0x3ae25c);return'newValue'==_0x145e91?{'type':'format','content':o(_0x594281,'*Merge:*\x20list\x20item')}:'oldValue'==_0x145e91?{'type':'format','content':o(_0x594281,'*Split:*\x20list\x20item')}:_0x4795f7;}),_0x2b59d6['model']['document']['registerPostFixer'](_0x408284=>this['listItemIdFixer'](_0x408284)),_0x2b59d6['model']['document']['registerPostFixer'](_0x240917=>this['noTrackChangesFixer'](_0x240917)),_0x2b59d6['model']['document']['on']('change:data',(_0x158515,_0x111ef4)=>{if(_0x111ef4['isUndo']||!_0x111ef4['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3722b1){if(_0x3722b1['batch']['isUndo']||!_0x3722b1['batch']['isLocal'])return!0x1;let _0xb2d100=!0x1;const _0x1469e6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c98fc=>_0x2c98fc['data']&&'listItemId'==_0x2c98fc['data']['key'])['filter'](_0xc653f3=>_0xc653f3['data']['newValue']&&_0xc653f3['data']['oldValue']);for(const _0x3075a2 of _0x1469e6)Ee(_0x3075a2)||(_0x3722b1['removeMarker'](_0x3075a2['getFirstMarker']()),_0xb2d100=!0x0);return _0xb2d100;}['noTrackChangesFixer'](_0x266ef6){if(_0x266ef6['batch']['isUndo']||!_0x266ef6['batch']['isLocal'])return!0x1;const _0x2c6220=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2c6220['trackChangesCommand']['value'])return!0x1;let _0x1f96ab=!0x1;const _0x236062=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x49aa40=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3e2b76=>'attribute'==_0x3e2b76['type'])['filter'](_0x48b6a2=>_0x236062['includes'](_0x48b6a2['attributeKey']));if(0x0==_0x49aa40['length'])return _0x1f96ab;for(const _0x2d8cee of _0x49aa40){const _0x2832f2=_0x2c6220['_findSuggestions'](_0x2d8cee['range'],'attribute')['filter'](_0x154934=>!_0x154934['meta']['isNextTo'])['map'](_0x557184=>_0x557184['suggestion'])['filter'](_0x371f8b=>{const _0xc7bbca=_0x2c6220['_getAttributeKey'](_0x371f8b);return _0x236062['includes'](_0xc7bbca);});if(_0x2832f2['length']){for(const _0x5a284a of _0x2832f2)_0x266ef6['removeMarker'](_0x5a284a['getFirstMarker']());_0x1f96ab=!0x0;}}return _0x1f96ab;}['assureChains'](){const _0x5aded2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5eab78=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x15e410;const _0x47de7e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4cca6f=>{if(_0x4cca6f['data']['oldRange']||!_0x4cca6f['data']['newRange'])return null;if(!_0x4cca6f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5471d3}=_0x5aded2['_splitMarkerName'](_0x4cca6f['name']);if(!_0x5aded2['hasSuggestion'](_0x5471d3))return null;const _0x3e5d29=_0x5aded2['getSuggestion'](_0x5471d3);return _0x5eab78['includes'](_0x3e5d29['data']['key']);})['map'](_0xdd5e9=>{const {id:_0x1e77c5}=_0x5aded2['_splitMarkerName'](_0xdd5e9['name']),_0x3c791d=_0x5aded2['getSuggestion'](_0x1e77c5);return _0x15e410=_0x3c791d['attributes']['groupId'],_0x3c791d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x47de7e['size'])return;const _0x508647=_0x5aded2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f1a2c=>'attribute'==_0x4f1a2c['type']&&_0x4f1a2c['data']&&_0x5eab78['includes'](_0x4f1a2c['data']['key'])&&_0x4f1a2c['attributes']['groupId']!=_0x15e410)['map'](_0x2583cf=>({'listItem':_0x2583cf['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2583cf['attributes']['groupId']})),_0x3edaec=new Set();for(const {groupId:_0x36aecb,listItem:_0x3475f2}of _0x508647)_0x47de7e['has'](_0x3475f2)&&_0x3edaec['add'](_0x36aecb);for(const _0x9f2d37 of _0x5aded2['getSuggestions']())_0x3edaec['has'](_0x9f2d37['attributes']['groupId'])&&_0x9f2d37['setAttribute']('groupId',_0x15e410);}['_supportLegacySuggestions'](){const _0x301231=this['editor'],_0xa034be=_0x301231['locale'],_0x19b7e0=_0x301231['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x19b7e0['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x7ecd99,_0x287f63){const _0x2a6924=[];for(let _0x7bcfcc of _0x7ecd99)_0x7bcfcc['start']['nodeAfter']===_0x7bcfcc['end']['parent']&&(_0x7bcfcc=_0x301231['model']['createRange'](_0x301231['model']['createPositionAt'](_0x7bcfcc['start']['nodeAfter'],0x0))),_0x2a6924['push'](_0x7bcfcc);_0x301231['model']['change'](_0x38f6ea=>{const _0x250f14=_0x301231['model']['document']['selection'],_0x4dc167=Array['from'](_0x250f14['getRanges']())['map'](_0x4b1ba2=>_0x1c0e5b['fromRange'](_0x4b1ba2));_0x38f6ea['setSelection'](_0x2a6924),_0x301231['commands']['get'](_0x287f63['commandName'])['refresh'](),_0x287f63['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x301231['execute'](_0x287f63['commandName'],..._0x287f63['commandParams']),_0x38f6ea['setSelection'](_0x4dc167);for(const _0x1de58d of _0x4dc167)_0x1de58d['detach']();});}),_0x19b7e0['descriptionFactory']['registerElementLabel'](function(_0x28d8ad){const _0x1b4169=!_0x301231['model']['schema']['isObject'](_0x28d8ad),_0x41f696=_0x28d8ad['previousSibling'],_0x12c525=_0x28d8ad['nextSibling'],_0x496c8e=_0x28d8ad['getAttribute']('listItemId'),_0x376236=!_0x41f696||_0x41f696['getAttribute']('listItemId')!==_0x496c8e,_0x3ecd39=!_0x12c525||_0x12c525['getAttribute']('listItemId')!==_0x496c8e;return _0x1b4169&&Boolean(_0x496c8e)&&_0x376236&&_0x3ecd39;},_0x308aed=>o(_0xa034be,'ELEMENT_LIST_ITEM',_0x308aed));}['_registerLegacyDescription'](){const _0x262801=this['editor'],_0x135ae6=_0x262801['locale'];function _0x3a0c5f(_0x2c967a){const _0x46009f=_0x262801['commands']['get']('bulletedList')['value'],_0x3450d1=_0x262801['commands']['get']('numberedList')['value'];return'numberedList'===_0x2c967a?_0x46009f:_0x3450d1;}_0x262801['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5262c7){if('formatBlock'!=_0x5262c7['type'])return;const {data:_0x25627d}=_0x5262c7;if(!_0x25627d)return;let _0x3659dc,_0x4fde34,_0x37de90,_0x1e49a4;switch(_0x25627d['commandName']){case'bulletedList':_0x37de90=_0x25627d['commandParams'][0x0]['forceValue'],_0x1e49a4=_0x3a0c5f(_0x25627d['commandName']),_0x3659dc=_0x37de90?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1e49a4&&_0x262801['config']['get']('list.multiBlock')||(_0x3659dc='*Change\x20to:*\x20%0'),_0x4fde34={'type':'format','content':o(_0x135ae6,_0x3659dc,o(_0x135ae6,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x37de90=_0x25627d['commandParams'][0x0]['forceValue'],_0x1e49a4=_0x3a0c5f(_0x25627d['commandName']),_0x3659dc=_0x37de90?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1e49a4&&_0x262801['config']['get']('list.multiBlock')||(_0x3659dc='*Change\x20to:*\x20%0'),_0x4fde34={'type':'format','content':o(_0x135ae6,_0x3659dc,o(_0x135ae6,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3659dc='*Indent:*\x20%0',_0x4fde34={'type':'format','content':o(_0x135ae6,_0x3659dc,o(_0x135ae6,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3659dc=function(_0x4417ba){const _0x552237=_0x4417ba['getFirstRange']();let _0x36918b=_0x552237['start']['nodeAfter'];for(;_0x36918b&&_0x552237['containsItem'](_0x36918b);){if(_0x36918b['getAttribute']('listIndent')>0x0)return!0x1;_0x36918b=_0x36918b['nextSibling'];}return!0x0;}(_0x5262c7)?o(_0x135ae6,'*Format:*\x20remove\x20from\x20%0',o(_0x135ae6,function(_0x1279b5){return'ELEMENT_'+_0x1279b5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5262c7))):o(_0x135ae6,'*Outdent:*\x20%0',o(_0x135ae6,'ELEMENT_LIST_ITEM')),_0x4fde34={'type':'format','content':_0x3659dc};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x25627d['multipleBlocks']&&(_0x3659dc='*Merge:*\x20%0',_0x4fde34={'type':'deletion','content':o(_0x135ae6,_0x3659dc,o(_0x135ae6,'ELEMENT_LIST_ITEM'))});}return _0x4fde34;});}}function Ee(_0x525b2d){let _0x1d7acc=_0x525b2d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1d7acc;){const _0x241dc4=_0x1d7acc['getAttribute']('listItemId');if(!_0x241dc4)return!0x1;if(_0x241dc4==_0x525b2d['data']['newValue'])return'newValue';if(_0x241dc4==_0x525b2d['data']['oldValue'])return'oldValue';_0x1d7acc=_0x1d7acc['previousSibling'];}return!0x1;}class pe extends _0x5eca65{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x294179=this['editor']['config']['get']('list.properties'),_0x5c39f2=this['editor']['plugins']['get']('TrackChangesEditing');_0x294179['styles']&&(_0x5c39f2['enableDefaultAttributesIntegration']('listStyle'),_0x5c39f2['registerBlockAttribute']('listStyle')),_0x294179['reversed']&&(_0x5c39f2['enableDefaultAttributesIntegration']('listReversed'),_0x5c39f2['registerBlockAttribute']('listReversed')),_0x294179['startIndex']&&(_0x5c39f2['enableDefaultAttributesIntegration']('listStart'),_0x5c39f2['registerBlockAttribute']('listStart'));const _0x15ef21={'type':'format','content':''};_0x5c39f2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x27e43f=this['editor']['locale'];_0x5c39f2['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x27e43f,'FORMAT_LIST_REVERSED')),_0x5c39f2['descriptionFactory']['registerDescriptionCallback'](_0x175d50=>{const {data:_0x3377ba}=_0x175d50;if(_0x3377ba&&'listReversed'==_0x3377ba['key'])return null==_0x3377ba['newValue']||0x0==_0x3377ba['newValue']&&null==_0x3377ba['oldValue']?_0x15ef21:void 0x0;}),_0x5c39f2['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x27e43f,'FORMAT_LIST_START')),_0x5c39f2['descriptionFactory']['registerDescriptionCallback'](_0xba0b6e=>{const {data:_0x480d76}=_0xba0b6e;if(_0x480d76&&'listStart'==_0x480d76['key'])return null==_0x480d76['newValue']||0x1==_0x480d76['newValue']&&null==_0x480d76['oldValue']?_0x15ef21:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x21c932=>{if(_0x21c932['batch']['isUndo'])return!0x1;let _0x2d4016=!0x1;const _0x5a0b71=_0x5c39f2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3619ef=>{const _0x16e803=_0x5c39f2['_getAttributeKey'](_0x3619ef);return'listStart'==_0x16e803||'listReversed'==_0x16e803;});for(const _0x5a958d of _0x5a0b71){const _0x1ff99f=_0x5a958d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1ff99f||'customNumbered'==_0x1ff99f)continue;_0x5c39f2['_findSuggestions'](_0x5a958d['getFirstRange'](),'attribute')['find'](_0xead183=>'listType'==_0x5c39f2['_getAttributeKey'](_0xead183['suggestion']))||(_0x21c932['removeMarker'](_0x5a958d['getFirstMarker']()),_0x2d4016=!0x0);}return _0x2d4016;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5b4f7d){const _0x32e6bf=this['editor']['locale'],{data:_0x213528}=_0x5b4f7d,_0x106dc7={'type':'format','content':''};if(!_0x213528||'listStyle'!=_0x213528['key'])return;if(!_0x213528['oldValue'])return'default'==_0x213528['newValue']?_0x106dc7:{'type':'format','content':''+o(_0x32e6bf,'*Set\x20format:*\x20%0',o(_0x32e6bf,this['_getTranslationKeyForListStyle'](_0x213528['newValue'])))};if(!_0x213528['newValue']){if('default'==_0x213528['oldValue'])return _0x106dc7;let _0x3132fa=_0x5b4f7d['head'];for(;_0x3132fa;){if(_0x3132fa['data']&&'listType'==_0x3132fa['data']['key']&&_0x3132fa['data']['newValue'])return _0x106dc7;_0x3132fa=_0x3132fa['next'];}return{'type':'format','content':''+o(_0x32e6bf,'*Remove\x20format:*\x20%0',o(_0x32e6bf,this['_getTranslationKeyForListStyle'](_0x213528['oldValue'])))};}if('default'!=_0x213528['newValue'])return{'type':'format','content':''+o(_0x32e6bf,'*Set\x20format:*\x20%0',o(_0x32e6bf,this['_getTranslationKeyForListStyle'](_0x213528['newValue'])))};let _0xa74919=_0x5b4f7d['head'];for(;_0xa74919;){if(_0xa74919['data']&&'listType'==_0xa74919['data']['key']&&_0xa74919['data']['newValue']&&_0xa74919['data']['oldValue'])return _0x106dc7;_0xa74919=_0xa74919['next'];}return{'type':'format','content':o(_0x32e6bf,'*Set\x20format:*\x20%0',o(_0x32e6bf,'ELEMENT_'+_0x5b4f7d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x10f305=this['editor'],_0xbe1904=_0x10f305['locale'];_0x10f305['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5de992=>{if('formatBlock'!=_0x5de992['type'])return;const {data:_0xfcc6f8}=_0x5de992;if(!_0xfcc6f8)return;let _0x741523,_0x3697c1;switch(_0xfcc6f8['commandName']){case'listStyle':_0x741523='*Change\x20to:*\x20%0',_0x3697c1={'type':'format','content':o(_0xbe1904,_0x741523,o(_0xbe1904,this['_getTranslationKeyForListStyle'](_0xfcc6f8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x741523=_0xfcc6f8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3697c1={'type':'format','content':o(_0xbe1904,_0x741523)};break;case'listStart':_0x741523='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3697c1={'type':'format','content':o(_0xbe1904,_0x741523,_0xfcc6f8['commandParams'][0x0]['startIndex'])};}return _0x3697c1;});}['_getTranslationKeyForListStyle'](_0x4e93bd){return'ELEMENT_'+function(_0x3f2032){if(ye['includes'](_0x3f2032))return'bulleted';if(Se['includes'](_0x3f2032))return'numbered';return null;}(_0x4e93bd)['toUpperCase']()+'_LIST_'+_0x4e93bd['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x5eca65{static get['requires'](){return[_0x1ca728];}['init'](){const _0x4bae8e=this['editor'],_0x418dea=_0x4bae8e['plugins']['get']('TrackChangesEditing'),_0x1a5d09=_0x4bae8e['commands']['get']('enter');_0x418dea['enableCommand']('enter',()=>{_0x4bae8e['model']['change'](_0x1b6ad3=>{const _0x5246ce=_0x4bae8e['model']['document']['selection'],_0x462a48=_0x5246ce['getFirstPosition'](),_0x175298=_0x1c0e5b['fromRange'](_0x5246ce['getFirstRange']());if(_0x1a5d09['enterBlock'](_0x1b6ad3)){const _0x381dba=_0x4bae8e['model']['createPositionAt'](_0x462a48['parent']['nextSibling'],0x0),_0x4bf962=_0x1b6ad3['createRange'](_0x462a48,_0x381dba);_0x418dea['markInsertion'](_0x4bf962);}else _0x1b6ad3['setSelection'](_0x1b6ad3['createRange'](_0x175298['end']));_0x175298['detach'](),_0x1a5d09['fire']('afterExecute',{'writer':_0x1b6ad3});});}),_0x4bae8e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4bae8e,'split'),{'priority':'high'}),_0x4bae8e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5ebccd,_0x109079,_0x5e6e72)=>{const _0x903435=_0x5e6e72['mapper']['markerNameToElements'](_0x109079['markerName']);if(_0x903435){for(const _0x48bbc of _0x903435)_0x48bbc['hasClass']('ck-suggestion-marker-split')&&(_0x5e6e72['mapper']['unbindElementFromMarkerName'](_0x48bbc,_0x109079['markerName']),_0x5e6e72['writer']['remove'](_0x48bbc));}},{'priority':'high'}),_0x4bae8e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1f29c5,_0x4fa64f,_0x506518)=>{_0x506518['options']['showSuggestionHighlights']&&_e(_0x4bae8e,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1f29c5,_0x4fa64f,_0x506518);},{'priority':'high'});}}class X extends _0x5eca65{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x19b2fa=this['editor']['plugins']['get']('TrackChangesEditing');_0x19b2fa['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x19b2fa['enableCommand']('findNext'),_0x19b2fa['enableCommand']('findPrevious'),_0x19b2fa['enableCommand']('replace'),_0x19b2fa['enableCommand']('replaceAll');}['handleFindCommand'](_0x5728fb,_0x32e7d7,_0x3c977b={}){const _0x10a59b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5728fb(_0x3e9188=>{let _0x293387=('string'==typeof _0x32e7d7?_0x10a59b['findByTextCallback'](_0x32e7d7,_0x3c977b):_0x32e7d7)(_0x3e9188);Array['isArray'](_0x293387)&&(_0x293387={'results':_0x293387,'searchText':'string'==typeof _0x32e7d7?_0x32e7d7:''});const _0x4b713b=_0x293387['results']['filter'](_0x95240f=>!0x1===this['_isInDeletionRange'](_0x95240f,_0x3e9188['item']));return{..._0x293387,'results':_0x4b713b};},_0x3c977b);}['_isInDeletionRange'](_0x2f9caf,_0x363023){const _0x558147=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x363023,_0x2f9caf['start']),this['editor']['model']['createPositionAt'](_0x363023,_0x2f9caf['end']));for(const _0x1ff735 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x558147['getIntersection'](_0x1ff735['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 _0x5eca65{['afterInit'](){const _0x5370c0=this['editor']['locale'],_0x51ce21=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3671dd,commandName:_0x3f23d7}of ro)this['editor']['plugins']['has'](_0x3671dd)&&(_0x51ce21['enableDefaultAttributesIntegration'](_0x3f23d7),_0x51ce21['registerInlineAttribute'](_0x3f23d7));_0x51ce21['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5370c0,'FORMAT_FONT_SIZE')),_0x51ce21['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5370c0,'FORMAT_FONT_FAMILY')),_0x51ce21['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5370c0,'FORMAT_FONT_COLOR')),_0x51ce21['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5370c0,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd3de0c=this['editor'],_0x18fc28=_0xd3de0c['locale'];_0xd3de0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x415f35=>{const _0x2bf06a=_0x18fc28['t'];if('formatInline'!=_0x415f35['type'])return;const {data:_0x1930ba}=_0x415f35;if(null!=_0x1930ba){if('fontSize'==_0x1930ba['commandName']){const _0x58df3b=_0x1930ba['commandParams'][0x0]['value'];if(_0x58df3b){const _0x2678f8=_0x2bf06a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x33300d=>_0x33300d['model']==_0x58df3b)['title'])['toLowerCase']();return{'type':'format','content':o(_0x18fc28,'*Set\x20font\x20size:*\x20%0',_0x2678f8)};}return{'type':'format','content':o(_0x18fc28,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1930ba['commandName']){const _0x190e0a=_0x1930ba['commandParams'][0x0]['value'];return _0x190e0a?{'type':'format','content':o(_0x18fc28,'*Set\x20font\x20family:*\x20%0',_0x190e0a)}:{'type':'format','content':o(_0x18fc28,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1930ba['commandName']){const _0x56fb56=_0x1930ba['commandParams'][0x0]['value'];if(_0x56fb56){const _0x277b7f=_0x4bc733(this['editor']['config']['get']('fontColor.colors'))['find'](_0x405130=>_0x405130['model']==_0x56fb56);let _0x428098=_0x56fb56,_0x56ac54='';return _0x277b7f&&(_0x428098=_0x277b7f['label'],_0x56ac54=_0x2bf06a(_0x428098)['toLowerCase']()),{'type':'format','content':o(_0x18fc28,'*Set\x20font\x20color:*\x20%0',_0x56ac54)['trim'](),'color':{'value':_0x56fb56,'title':_0x56ac54||_0x428098}};}return{'type':'format','content':o(_0x18fc28,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1930ba['commandName']){const _0x24bd1b=_0x1930ba['commandParams'][0x0]['value'];if(_0x24bd1b){const _0xe73f5b=_0x4bc733(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1df684=>_0x1df684['model']==_0x24bd1b);let _0x400c30=_0x24bd1b,_0x5ba85c='';return _0xe73f5b&&(_0x400c30=_0xe73f5b['label'],_0x5ba85c=_0x2bf06a(_0x400c30)['toLowerCase']()),{'type':'format','content':o(_0x18fc28,'*Set\x20font\x20background\x20color:*\x20%0',_0x5ba85c)['trim'](),'color':{'value':_0x24bd1b,'title':_0x5ba85c||_0x400c30}};}return{'type':'format','content':o(_0x18fc28,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x5eca65{['afterInit'](){const _0x34c5a7=this['editor'],_0x4542ec=_0x34c5a7['plugins']['get']('TrackChangesEditing'),_0x215446=_0x34c5a7['commands']['get']('copyFormat'),_0x5c0a2c=_0x34c5a7['commands']['get']('pasteFormat');_0x215446&&_0x5c0a2c&&(_0x4542ec['enableDefaultAttributesIntegration']('pasteFormat'),_0x4542ec['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x8abcce=this['editor'],_0x6a4855=_0x8abcce['locale'];_0x8abcce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30c804=>{if('formatBlock'!=_0x30c804['type']&&'formatInline'!=_0x30c804['type'])return;const {data:_0x16f91a}=_0x30c804;if(_0x16f91a&&'pasteFormat'===_0x16f91a['commandName']){const _0x1fd08d=[],_0x390f69=_0x16f91a['commandParams'][0x0];for(const [_0x3591ec,_0x4f1df3]of Object['entries'](_0x390f69))_0x1fd08d['push'](so(_0x8abcce,_0x3591ec,_0x4f1df3));return _0x1fd08d['length']?{'type':'format','content':o(_0x6a4855,'*Set\x20format\x20to:*\x20%0',_0x1fd08d['join'](',\x20'))}:{'type':'format','content':o(_0x6a4855,'*Remove\x20all\x20formatting*')};}});}}function so(_0xeee29c,_0x4c9efd,_0x4ebeb5){const _0x3e5589=_0xeee29c['locale']['t'],_0x31e611=_0x4c9efd['split'](/(?=[A-Z])/)['join']('\x20'),_0x29604e=_0x3e5589(_0x31e611['charAt'](0x0)['toUpperCase']()+_0x31e611['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4ebeb5)return _0x29604e;if('fontColor'===_0x4c9efd||'fontBackgroundColor'===_0x4c9efd){const _0x51b1a7=_0x4bc733(_0xeee29c['config']['get']('fontColor.colors'))['find'](_0x1dccfe=>_0x1dccfe['model']==_0x4ebeb5);return _0x29604e+'\x20('+(_0x51b1a7?_0x3e5589(_0x51b1a7['label'])['toLowerCase']():_0x4ebeb5)+')';}if('fontSize'===_0x4c9efd&&isNaN(parseFloat(_0x4ebeb5))){const _0x31ba71=_0xeee29c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xeee29c['config']['get']('fontSize.options'))['find'](_0x316538=>_0x316538['model']==_0x4ebeb5);return _0x29604e+'\x20('+(_0x31ba71?_0x3e5589(_0x31ba71['title'])['toLowerCase']():_0x4ebeb5)+')';}return _0x29604e+'\x20('+_0x4ebeb5+')';}class tt extends _0x5eca65{['_headingOptions'];['afterInit'](){const _0xd1f7b7=this['editor'];if(!_0xd1f7b7['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xd1f7b7['config']['get']('heading.options');const _0x56598a=_0xd1f7b7['locale'],_0x570e47=_0xd1f7b7['plugins']['get']('TrackChangesEditing');_0x570e47['enableDefaultAttributesIntegration']('heading');for(const _0x51d457 of this['_headingOptions'])'paragraph'!=_0x51d457['model']&&_0x570e47['descriptionFactory']['registerElementLabel'](_0x51d457['model'],_0x29618a=>{const _0x33e028=this['_getHeadingLevel'](_0x51d457['model']);return null!==_0x33e028?_0xddb4e3(_0x29618a,_0x33e028):_0x5c36a4(_0x29618a,_0x51d457['title']);});function _0xddb4e3(_0x1bba0f,_0x50c11d){return o(_0x56598a,'ELEMENT_HEADING',[_0x1bba0f,_0x50c11d]);}function _0x5c36a4(_0x3f1bb4,_0x196103){return o(_0x56598a,'ELEMENT_HEADING_CUSTOM',[_0x3f1bb4,_0x196103]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x190047=this['editor'],_0x547c13=_0x190047['locale'];function _0x363476(_0x3381ec,_0x67e0ca){return o(_0x547c13,'ELEMENT_HEADING_CUSTOM',[_0x3381ec,_0x67e0ca]);}_0x190047['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21a8e6=>{if('formatBlock'!=_0x21a8e6['type'])return;const {data:_0x4d0401}=_0x21a8e6;if(_0x4d0401&&'heading'==_0x4d0401['commandName']){const _0x5b11a7=_0x4d0401['commandParams'][0x0]['value'],_0xd4156a=this['_getHeadingLevel'](_0x5b11a7);if(null!==_0xd4156a)return{'type':'format','content':o(_0x547c13,'*Change\x20to:*\x20%0',(_0x429705=0x1,_0x2fd5ba=_0xd4156a,o(_0x547c13,'ELEMENT_HEADING',[_0x429705,_0x2fd5ba])))};const _0x4526e0=this['_headingOptions']['find'](_0x6e19d1=>_0x6e19d1['model']===_0x5b11a7)['title'];return{'type':'format','content':o(_0x547c13,'*Change\x20to:*\x20%0',_0x363476(0x1,_0x4526e0))};}var _0x429705,_0x2fd5ba;});}['_getHeadingLevel'](_0x4359c2){const _0x3fd63d=_0x4359c2['match'](/^heading(\d+)/);if(_0x3fd63d)return _0x3fd63d[0x1];const _0x311da2=this['_headingOptions']?.['find'](_0x6dae14=>_0x6dae14['model']==_0x4359c2);if(_0x311da2&&_0x311da2['view']){const _0x4dc048=_0x311da2['view'],_0x4d35b9=(_0x4dc048['name']??_0x4dc048)['match'](/^h(\d+)/);if(_0x4d35b9)return _0x4d35b9[0x1];}return null;}}class et extends _0x5eca65{['afterInit'](){const _0x421277=this['editor'];if(!_0x421277['plugins']['has']('HighlightEditing'))return;const _0x37840d=_0x421277['plugins']['get']('TrackChangesEditing'),_0x2bf397=_0x421277['locale'];_0x37840d['enableDefaultAttributesIntegration']('highlight'),_0x37840d['registerInlineAttribute']('highlight'),_0x37840d['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2bf397,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6a216f=this['editor'],_0xb69bc3=_0x6a216f['locale'];_0x6a216f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dac85=>{if('formatInline'!=_0x5dac85['type'])return;const {data:_0x1a8a0e}=_0x5dac85;if(_0x1a8a0e&&'highlight'==_0x1a8a0e['commandName']){const _0x18ca1e=_0xb69bc3['t'],_0x14cefb=_0x1a8a0e['commandParams'][0x0]['value'];if(_0x14cefb){const _0xdf21ef=_0x6a216f['config']['get']('highlight.options')['find'](_0x10753b=>_0x10753b['model']==_0x14cefb),_0x2d0827=_0x18ca1e(_0xdf21ef['title'])['toLowerCase']();return{'type':'format','content':o(_0xb69bc3,'*Set\x20highlight:*\x20%0',_0x2d0827),'color':{'value':_0xdf21ef['color'],'title':_0xdf21ef['title']}};}return{'type':'format','content':o(_0xb69bc3,'*Remove\x20highlight*',o(_0xb69bc3,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x5eca65{['afterInit'](){const _0x258bfa=this['editor'];if(!_0x258bfa['plugins']['has']('HorizontalLineEditing'))return;_0x258bfa['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5d7b27=_0x258bfa['plugins']['get']('TrackChangesEditing'),_0x1d9068=_0x258bfa['locale'];_0x5d7b27['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3050ce=>o(_0x1d9068,'ELEMENT_HORIZONTAL_LINE',_0x3050ce)),_0x258bfa['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x37c464,{writer:_0x45f992,options:_0x476af9})=>{if(!_0x476af9['showSuggestionHighlights'])return null;const _0x2ec23e=_0x45f992['createContainerElement']('div'),_0x439419=_0x45f992['createEmptyElement']('hr');return _0x45f992['addClass']('ck-horizontal-line',_0x2ec23e),_0x45f992['insert'](_0x45f992['createPositionAt'](_0x2ec23e,0x0),_0x439419),_0x2ec23e;},'converterPriority':'high'});}}class st extends _0x5eca65{['afterInit'](){const _0x28fbf2=this['editor'];if(!_0x28fbf2['plugins']['has']('HtmlEmbed'))return;const _0x1190fa=_0x28fbf2['plugins']['get']('TrackChangesEditing'),_0x5db53c=_0x28fbf2['locale'];_0x1190fa['descriptionFactory']['registerElementLabel']('rawHtml',_0xf34c76=>o(_0x5db53c,'ELEMENT_HTML_EMBED',_0xf34c76)),_0x1190fa['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1190fa['registerBlockAttribute']('value'),_0x1190fa['descriptionFactory']['registerDescriptionCallback'](_0x488981=>{if('attribute'!=_0x488981['type'])return;const {data:_0x10b69f}=_0x488981;if(_0x10b69f&&'value'==_0x10b69f['key']&&_0x488981['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xd2cd09=o(_0x5db53c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5db53c,'*Change\x20%0\x20content*',_0xd2cd09)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26cf23=this['editor'],_0x3a2395=_0x26cf23['locale'];_0x26cf23['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7c43d0=>{if('formatBlock'!=_0x7c43d0['type'])return;const {data:_0x479642}=_0x7c43d0;if(_0x479642&&'htmlEmbed'==_0x479642['commandName']){const _0x199421=o(_0x3a2395,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3a2395,'*Change\x20%0\x20content*',_0x199421)};}});}}class nt extends _0x5eca65{['afterInit'](){const _0x1dab17=this['editor'];if(!_0x1dab17['plugins']['has']('ImageEditing'))return;const _0x16b53e=_0x1dab17['plugins']['get']('TrackChangesEditing'),_0x5f247e=_0x1dab17['plugins']['get']('ImageUtils'),_0x283b30=_0x1dab17['locale'];_0x16b53e['enableCommand']('insertImage'),_0x16b53e['descriptionFactory']['registerElementLabel']('imageBlock',_0x31152d=>o(_0x283b30,'ELEMENT_IMAGE',_0x31152d)),_0x16b53e['descriptionFactory']['registerElementLabel']('imageInline',_0x2cca7d=>o(_0x283b30,'ELEMENT_INLINE_IMAGE',_0x2cca7d)),_0x16b53e['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x283b30,'ELEMENT_CAPTION')),_0x1dab17['plugins']['has']('ImageUploadEditing')&&_0x16b53e['enableCommand']('uploadImage'),_0x1dab17['plugins']['has']('ImageBlockEditing')&&_0x1dab17['plugins']['has']('ImageInlineEditing')&&(_0x16b53e['enableCommand']('imageTypeInline',(_0x52c8f3,_0x50e43a)=>{const _0x50e445=_0x5f247e['getClosestSelectedImageElement'](_0x1dab17['model']['document']['selection']);_0x1dab17['model']['change'](()=>{_0x16b53e['markBlockFormat'](_0x50e445,{'commandName':'imageTypeInline','commandParams':[_0x50e43a]},[],'convertBlockImageToInline');});}),_0x16b53e['enableCommand']('imageTypeBlock',(_0x402899,_0x15403c)=>{_0x1dab17['model']['change'](_0x494d0e=>{let _0x21d472=_0x5f247e['getClosestSelectedImageElement'](_0x1dab17['model']['document']['selection']),_0xab4cf8=_0x494d0e['createRangeOn'](_0x21d472);const _0x18fe00=_0x363280['fromPosition'](_0xab4cf8['start'],'toPrevious'),_0x4d83e0=_0x363280['fromPosition'](_0xab4cf8['end'],'toNext');_0x16b53e['forceDefaultExecution'](()=>_0x402899(_0x15403c)),_0x21d472=_0x5f247e['getClosestSelectedImageElement'](_0x1dab17['model']['document']['selection']),_0xab4cf8=_0x494d0e['createRangeOn'](_0x21d472);const _0x561359=_0x494d0e['createRange'](_0x18fe00,_0x4d83e0);_0x18fe00['detach'](),_0x4d83e0['detach'](),_0x16b53e['markBlockFormat'](_0x21d472,{'commandName':'imageTypeInline','commandParams':[_0x15403c]},[],'convertInlineImageToBlock'),_0x561359['start']['isBefore'](_0xab4cf8['start'])&&_0x16b53e['markInsertion'](_0x494d0e['createRange'](_0x561359['start'],_0xab4cf8['start']),'convertInlineImageToBlock'),_0xab4cf8['end']['isBefore'](_0x561359['end'])&&_0x16b53e['markInsertion'](_0x494d0e['createRange'](_0xab4cf8['end'],_0x561359['end']),'convertInlineImageToBlock');});}),_0x16b53e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x16b53e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x16b53e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x16b53e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x16b53e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x16b53e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4f3ca6])=>{const _0x54e4e5=_0x16b53e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4749ae=_0x4f3ca6['start'],_0x3c0644=_0x4f3ca6['end'];const _0x8678cf=_0x1dab17['model']['schema']['getNearestSelectionRange'](_0x4749ae,'backward'),_0x4a08e0=_0x1dab17['model']['schema']['getNearestSelectionRange'](_0x3c0644,'forward');_0x8678cf['isCollapsed']&&(_0x4749ae=_0x8678cf['start']),_0x4a08e0['isCollapsed']&&(_0x3c0644=_0x4a08e0['end']),_0x54e4e5([_0x1dab17['model']['createRange'](_0x4749ae,_0x3c0644)]);}),_0x16b53e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x44be41),_0x16b53e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x44be41)),_0x1dab17['plugins']['has']('ImageCaptionEditing')&&(_0x16b53e['enableCommand']('toggleImageCaption',(_0x1b4b6b,_0x1577ef)=>{const _0x2e7856=_0x1dab17['plugins']['get']('ImageCaptionUtils');let _0x32e9cb=_0x5f247e['getClosestSelectedImageElement'](_0x1dab17['model']['document']['selection']),_0x38bc35=_0x2e7856['getCaptionFromImageModelElement'](_0x32e9cb);_0x1dab17['model']['change'](()=>{if(_0x38bc35)return void _0x16b53e['markDeletion'](_0x1dab17['model']['createRangeOn'](_0x38bc35));const _0x39b710=_0x5f247e['isBlockImage'](_0x32e9cb);_0x1b4b6b(_0x1577ef),_0x32e9cb=_0x5f247e['getClosestSelectedImageElement'](_0x1dab17['model']['document']['selection']),_0x38bc35=_0x2e7856['getCaptionFromImageModelElement'](_0x32e9cb),_0x16b53e['markInsertion'](_0x1dab17['model']['createRangeOn'](_0x38bc35),_0x39b710?null:'imageCaption');});}),_0x16b53e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x44be41));const _0x389d7b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2fb6db(_0x9c357b,_0x34e915){const _0x1fccc2=_0x389d7b['findIndex'](({type:_0x49fe68,subType:_0x4a8534})=>_0x9c357b['type']==_0x49fe68&&_0x9c357b['subType']==_0x4a8534),_0x21ba0a=_0x389d7b['findIndex'](({type:_0x125261,subType:_0x44b665})=>_0x34e915['type']==_0x125261&&_0x34e915['subType']==_0x44b665);if(_0x1fccc2<0x0||_0x21ba0a<0x0)return!0x1;const _0x343a19=_0x9c357b['getFirstRange'](),_0x335eb2=_0x34e915['getFirstRange']();if((0x0==_0x1fccc2||0x1==_0x1fccc2)&&0x2==_0x21ba0a&&_0x343a19['isIntersecting'](_0x335eb2))return!0x0;if(0x2==_0x1fccc2&&0x3==_0x21ba0a){const _0x169dee=_0x16b53e['_findSuggestions'](_0x343a19,'insertion')['filter'](({suggestion:_0x416946,meta:_0x2b449e})=>_0x2b449e['isOwn']&&'convertInlineImageToBlock'==_0x416946['subType']);if(_0x169dee['length']>0x1&&_0x335eb2['end']['isEqual'](_0x343a19['start']))return!0x0;if(0x1==_0x169dee['length']&&(_0x343a19['start']['isEqual'](_0x335eb2['end'])||_0x343a19['end']['isEqual'](_0x335eb2['start'])))return!0x0;}if(0x3==_0x1fccc2&&0x3==_0x21ba0a&&_0x343a19['start']['isBefore'](_0x335eb2['start'])){const _0x1add08=_0x343a19['end']['nodeAfter'],_0x3cc11d=_0x335eb2['start']['nodeBefore'];return _0x5f247e['isBlockImage'](_0x1add08)&&_0x1add08===_0x3cc11d;}return!0x1;}function _0x44be41(_0x902eac,_0x20eabc){return _0x2fb6db(_0x902eac,_0x20eabc)?[_0x902eac,_0x20eabc]:_0x2fb6db(_0x20eabc,_0x902eac)?[_0x20eabc,_0x902eac]:null;}_0x1dab17['plugins']['has']('ImageResize')&&(_0x16b53e['enableDefaultAttributesIntegration']('resizeImage'),_0x16b53e['registerBlockAttribute']('resizedWidth'),_0x16b53e['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x283b30,'FORMAT_IMAGE_SIZE'))),_0x1dab17['plugins']['has']('ImageTextAlternativeEditing')&&(_0x16b53e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x16b53e['registerBlockAttribute']('alt')),_0x16b53e['descriptionFactory']['registerDescriptionCallback'](_0x42b341=>{if(!!_0x389d7b['find'](({type:_0x325d77,subType:_0x267f64})=>_0x42b341['type']==_0x325d77&&_0x42b341['subType']==_0x267f64))return _0x42b341['previous']?{}:void 0x0;}),_0x16b53e['descriptionFactory']['registerDescriptionCallback'](_0x164fc8=>{if('insertion'==_0x164fc8['type']||'deletion'==_0x164fc8['type']){const _0x482144=_0x164fc8['getContainedElement']();if(_0x482144&&_0x482144['is']('element','caption'))return{'type':'insertion'==_0x164fc8['type']?'addObject':'removeObject','element':_0x482144,'quantity':0x1};}}),_0x16b53e['descriptionFactory']['registerDescriptionCallback'](_0x3b8018=>'formatBlock'==_0x3b8018['type']&&'convertInlineImageToBlock'==_0x3b8018['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3b8018['type']&&'convertBlockImageToInline'==_0x3b8018['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x16b53e['descriptionFactory']['registerDescriptionCallback'](_0x5b04bb=>{if('attribute'!=_0x5b04bb['type'])return;const {data:_0x47684a}=_0x5b04bb;if(!_0x47684a||'alt'!=_0x47684a['key'])return;const _0x328719=_0x47684a['newValue'];return _0x328719?{'type':'format','content':o(_0x283b30,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x328719+'\x22')}:{'type':'format','content':o(_0x283b30,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x268acc=this['editor'],_0x333779=_0x268acc['locale'];_0x268acc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e6788=>{if('formatBlock'!=_0x2e6788['type']&&'formatInline'!=_0x2e6788['type'])return;const {data:_0x34708e}=_0x2e6788;if(_0x34708e){if('imageTextAlternative'==_0x34708e['commandName']){const _0x254818=_0x34708e['commandParams'][0x0]['newValue'];return _0x254818?{'type':'format','content':o(_0x333779,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x254818+'\x22')}:{'type':'format','content':o(_0x333779,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x34708e['commandName']){const _0x3b6f1f=_0x34708e['commandParams'][0x0]['width'];return _0x3b6f1f?{'type':'format','content':o(_0x333779,'*Set\x20image\x20width:*\x20%0',_0x3b6f1f)}:{'type':'format','content':o(_0x333779,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x5eca65{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x266279=this['editor']['locale'],_0x10fb5a=this['editor']['plugins']['get']('TrackChangesEditing');_0x10fb5a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x10fb5a['registerBlockAttribute']('src'),_0x10fb5a['descriptionFactory']['registerDescriptionCallback'](_0x38b7a4=>{if('attribute'!=_0x38b7a4['type'])return;const {data:_0x27f276}=_0x38b7a4;return _0x27f276&&'src'==_0x27f276['key']?_0x27f276['newValue']&&_0x27f276['oldValue']?{'type':'format','content':o(_0x266279,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x31ad11=this['editor']['plugins']['get']('TrackChangesEditing');_0x31ad11['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x31ad11['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x31ad11['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x31ad11['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xaf1bb6=this['editor'],_0x681eed=_0xaf1bb6['locale'];_0xaf1bb6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5444fb=>{if('formatBlock'!=_0x5444fb['type']&&'formatInline'!=_0x5444fb['type'])return;const {data:_0x930e0c}=_0x5444fb;if(!_0x930e0c||'replaceImageSource'!=_0x930e0c['commandName'])return;return{'type':'format','content':o(_0x681eed,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x5eca65{['afterInit'](){const _0x5af967=this['editor'];if(!_0x5af967['plugins']['has']('ImageStyleEditing'))return;const _0x3c8f92=_0x5af967['plugins']['get']('TrackChangesEditing'),_0x6ea033=_0x5af967['plugins']['get']('ImageUtils'),_0x2aaf39={};_0x3c8f92['enableCommand']('imageStyle',(_0x376dc6,_0x2eb941)=>{const _0x454552=_0x5af967['plugins']['get']('Users')['me'],_0x41dd22=_0x5af967['commands']['get']('imageStyle');let _0x2b1121=_0x6ea033['getClosestSelectedImageElement'](_0x5af967['model']['document']['selection']),_0x5f2bc3=_0x5af967['model']['createRangeOn'](_0x2b1121),_0x2958da=_0x41dd22['value'];if(_0x2958da==_0x2eb941['value'])return;const _0x266723={'commandName':'imageStyle','commandParams':[_0x2eb941],'formatGroupId':_0x3529ea()};_0x5af967['model']['change'](()=>{if(_0x3c8f92['getSuggestions']()['filter'](_0x209cb9=>_0x209cb9['isInContent']&&_0x454552==_0x209cb9['author']&&('formatBlock'==_0x209cb9['type']||'formatInline'==_0x209cb9['type'])&&('imageStylePreApply'==_0x209cb9['subType']||'imageStylePostApply'==_0x209cb9['subType'])&&_0x209cb9['getFirstRange']()['isEqual'](_0x5f2bc3))['forEach'](_0x20ef2d=>_0x3c8f92['discardSuggestion'](_0x20ef2d['head'])),_0x2b1121=_0x6ea033['getClosestSelectedImageElement'](_0x5af967['model']['document']['selection']),_0x5f2bc3=_0x5af967['model']['createRangeOn'](_0x2b1121),_0x41dd22['refresh'](),_0x5af967['commands']['get']('imageTypeInline')['refresh'](),_0x5af967['commands']['get']('imageTypeBlock')['refresh'](),_0x2958da=_0x41dd22['value'],_0x2958da!=_0x2eb941['value'])return _0x6ea033['isInlineImage'](_0x2b1121)&&_0x41dd22['shouldConvertImageType'](_0x2eb941['value'],_0x2b1121)?(_0x376dc6({..._0x2eb941,'setImageSizes':!0x1}),_0x2b1121=_0x6ea033['getClosestSelectedImageElement'](_0x5af967['model']['document']['selection']),void _0x3c8f92['markBlockFormat'](_0x2b1121,{..._0x266723,'commandReversedParams':[{'value':_0x2958da||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x6ea033['isBlockImage'](_0x2b1121)?_0x3c8f92['markBlockFormat'](_0x2b1121,_0x266723,[],'imageStylePostApply'):_0x3c8f92['markInlineFormat'](_0x5f2bc3,_0x266723,'imageStylePostApply'));});});for(const _0x4c5e88 of _0x5af967['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2aaf39[_0x4c5e88['name']]=_0x4c5e88['title']['toLowerCase']();_0x3c8f92['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3c8f92['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3c8f92['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3c8f92['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2d77ca])=>{_0x6ea033['setImageNaturalSizeAttributes'](_0x2d77ca['getContainedElement']());}),_0x3c8f92['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x19dcb4,_0x299da9)=>{_0x3c8f92['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x19dcb4,{'commandName':_0x299da9['commandName'],'commandParams':_0x299da9['commandReversedParams']});}),_0x3c8f92['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1c001d,_0x398a73){if(_0x5ecce7(_0x1c001d,_0x398a73))return[_0x1c001d,_0x398a73];if(_0x5ecce7(_0x398a73,_0x1c001d))return[_0x398a73,_0x1c001d];return null;});const _0x3c25e3=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5ecce7(_0x3ce021,_0x3dcae8){const _0x95162e=_0x3c25e3['findIndex'](({type:_0x1abdef,subType:_0x360c99})=>_0x3ce021['type']==_0x1abdef&&_0x3ce021['subType']==_0x360c99),_0x39cb45=_0x3c25e3['findIndex'](({type:_0x37e34d,subType:_0x1a384a})=>_0x3dcae8['type']==_0x37e34d&&_0x3dcae8['subType']==_0x1a384a);if(_0x95162e<0x0||_0x39cb45<0x0)return!0x1;const _0x54fab5=_0x3ce021['getFirstRange'](),_0x14869f=_0x3dcae8['getFirstRange']();if((0x0==_0x95162e||0x1==_0x95162e)&&0x2==_0x39cb45&&_0x54fab5['isIntersecting'](_0x14869f))return!0x0;if(0x2==_0x95162e&&0x3==_0x39cb45){const _0x538de1=_0x3c8f92['_findSuggestions'](_0x54fab5,'insertion')['filter'](({suggestion:_0x530b41,meta:_0x49ee22})=>_0x49ee22['isOwn']&&'convertInlineImageToBlock'==_0x530b41['subType']);if(_0x538de1['length']>0x1&&_0x14869f['end']['isEqual'](_0x54fab5['start']))return!0x0;if(0x1==_0x538de1['length']&&(_0x54fab5['start']['isEqual'](_0x14869f['end'])||_0x54fab5['end']['isEqual'](_0x14869f['start'])))return!0x0;}if(0x3==_0x95162e&&0x3==_0x39cb45&&_0x54fab5['start']['isBefore'](_0x14869f['start'])){const _0x14c710=_0x54fab5['end']['nodeAfter'],_0x44c111=_0x14869f['start']['nodeBefore'];return _0x6ea033['isBlockImage'](_0x14c710)&&_0x14c710===_0x44c111;}return!0x1;}_0x5af967['model']['document']['registerPostFixer'](()=>{let _0x54eb9e=!0x1;const _0x3541a2=Array['from'](_0x5af967['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1110f7,data:_0x235ac6}of _0x3541a2){const {group:_0x455f27,type:_0x54b951,subType:_0xf03ea5,id:_0x5ef5fc}=_0x3c8f92['_splitMarkerName'](_0x1110f7);if('suggestion'==_0x455f27&&_0x3c8f92['hasSuggestion'](_0x5ef5fc)){if('formatBlock'==_0x54b951&&('imageStylePreApply'==_0xf03ea5||'imageStylePostApply'==_0xf03ea5)){const _0x113cfe=_0x3c8f92['getSuggestion'](_0x5ef5fc);if(_0x235ac6['newRange']){const _0x1a5be9=_0x113cfe['getFirstRange']()['getContainedElement']();if(_0x6ea033['isBlockImage'](_0x1a5be9))continue;_0x3c8f92['discardSuggestion'](_0x113cfe),_0x54eb9e=!0x0;}}if('insertion'==_0x54b951&&'imageCaption'==_0xf03ea5&&!_0x235ac6['newRange']){const _0x335508=_0x3c8f92['getSuggestion'](_0x5ef5fc);_0x335508['next']&&_0x335508['next']['isInContent']&&(_0x3c8f92['discardSuggestion'](_0x335508['next']),_0x54eb9e=!0x0);}}}return _0x54eb9e;}),this['_registerLegacyDescription'](_0x2aaf39);}['_registerLegacyDescription'](_0xc0ec74){const _0x1c314c=this['editor'],_0x47bad4=_0x1c314c['locale'];_0x1c314c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x558038=>{if('formatBlock'!=_0x558038['type']&&'formatInline'!=_0x558038['type'])return;const {data:_0x3f8903}=_0x558038;if(!_0x3f8903||'imageStyle'!=_0x3f8903['commandName'])return;const _0x382105=_0x3f8903['commandParams'][0x0]['value'];return _0x2bb48e('side'===_0x382105?o(_0x47bad4,'FORMAT_SIDE_IMAGE'):_0xc0ec74[_0x382105]||_0x382105);function _0x2bb48e(_0x5b7df3){return{'type':'format','content':o(_0x47bad4,'*Format:*\x20%0',_0x5b7df3)};}});}}class at extends _0x5eca65{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x13c58b){super(_0x13c58b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x57c667=this['editor'],_0x56376e=_0x57c667['commands']['get']('importWord'),_0x55702f=_0x57c667['commands']['get']('trackChanges');_0x56376e&&(_0x56376e['on']('execute',(_0x375217,[,_0x1d2dfd])=>{this['_trackChangesValueDuringImport']=_0x55702f['value'],_0x1d2dfd['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x56376e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x56376e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x55702f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x57c667['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x26a8cd,_0x14aaca){const {suggestions:_0x32bafc}=_0x14aaca,_0x5b3b0e=this['editor']['commands']['get']('trackChanges'),_0x1270bf=_0x5b3b0e['value'];this['_trackChangesValueDuringImport']!==_0x1270bf&&(_0x5b3b0e['execute'](),this['_trackChangesExecuted']=!0x0),_0x32bafc&&_0x32bafc['forEach'](({id:_0x58f591,type:_0xf049da,author:_0x53951e,created_at:_0x5cd104})=>{const _0x5ebd4c={'id':_0x58f591,'type':_0xf049da,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x53951e,'createdAt':_0x5cd104?new Date(_0x5cd104):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5ebd4c);});}}class ct extends _0x5eca65{['afterInit'](){const _0x9dc361=this['editor'],_0x319917=_0x9dc361['plugins']['get']('TrackChangesEditing');if(_0x9dc361['plugins']['has']('IndentEditing')&&(_0x319917['enableCommand']('indent'),_0x319917['enableCommand']('outdent')),_0x9dc361['plugins']['has']('IndentBlock')){for(const _0x343632 of['indentBlock','outdentBlock'])_0x319917['enableDefaultAttributesIntegration'](_0x343632);}const _0x408a00=_0x9dc361['locale'];_0x319917['registerBlockAttribute']('blockIndent'),_0x319917['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x408a00,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x555432=this['editor'],_0x1b2bc4=_0x555432['locale'],_0x266f9e=_0x555432['plugins']['get']('TrackChangesEditing');_0x266f9e['descriptionFactory']['registerDescriptionCallback'](_0x191306=>{if('formatBlock'!=_0x191306['type'])return;const {data:_0x13cb16}=_0x191306;if(!_0x13cb16)return;if('indentBlock'!=_0x13cb16['commandName']&&'outdentBlock'!=_0x13cb16['commandName'])return;const _0xc19425=_0x191306['getItems']()[0x0],_0x1aa026=_0x266f9e['descriptionFactory']['getItemLabel'](_0xc19425);return'indentBlock'==_0x13cb16['commandName']?{'type':'format','content':o(_0x1b2bc4,'*Indent:*\x20%0',_0x1aa026)}:'outdentBlock'==_0x13cb16['commandName']?{'type':'format','content':o(_0x1b2bc4,'*Outdent:*\x20%0',_0x1aa026)}:void 0x0;});}}class ut extends _0x5eca65{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x5eca65{['afterInit'](){const _0x574a3a=this['editor'];if(!_0x574a3a['plugins']['has']('LinkEditing'))return;const _0xbb4db6=_0x574a3a['plugins']['get']('TrackChangesEditing'),_0x3a09ff=_0x574a3a['commands']['get']('link');_0xbb4db6['enableDefaultAttributesIntegration']('link'),_0xbb4db6['enableDefaultAttributesIntegration']('unlink'),_0xbb4db6['registerInlineAttribute']('linkHref');for(const _0xae2e95 of _0x3a09ff['manualDecorators'])_0xbb4db6['registerInlineAttribute'](_0xae2e95['id']),_0xbb4db6['descriptionFactory']['registerAttributeLabel'](_0xae2e95['id'],'link\x20('+_0xae2e95['label']['toLowerCase']()+')');_0xbb4db6['descriptionFactory']['registerDescriptionCallback'](_0x3ced2e=>{if('attribute'!=_0x3ced2e['type'])return;const {data:_0x4cfed3}=_0x3ced2e;if(!_0x4cfed3||'linkHref'!=_0x4cfed3['key'])return;const _0x4426b3=_0x4cfed3['newValue'],_0x155f53=_0x574a3a['locale'];return{'type':'format','content':null==_0x4426b3?o(_0x155f53,'*Remove\x20link*'):o(_0x155f53,'*Set\x20link:*\x20%0','\x22'+_0x4426b3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x403892=this['editor'],_0xa28099=_0x403892['locale'];_0x403892['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55196a=>{if('formatInline'!=_0x55196a['type'])return;const {data:_0x1b6f32}=_0x55196a;if(_0x1b6f32){if('link'==_0x1b6f32['commandName']){const _0x5d1e1c=_0x1b6f32['commandParams'][0x0];return{'type':'format','content':o(_0xa28099,'*Set\x20link:*\x20%0','\x22'+_0x5d1e1c+'\x22')};}return'unlink'==_0x1b6f32['commandName']?{'type':'format','content':o(_0xa28099,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x5eca65{['afterInit'](){const _0x138d82=this['editor'],_0x223586=_0x138d82['locale'];if(!_0x138d82['plugins']['has']('LegacyListEditing'))return;const _0x3555ca=_0x138d82['plugins']['get']('TrackChangesEditing'),_0x4b8be7=_0x138d82['plugins']['has']('LegacyTodoListEditing');function _0x36335c(_0x2d104d){return()=>{const _0xbbc69e=_0x138d82['model']['document']['selection'],_0x5c7ce8=_0x138d82['commands']['get'](_0x2d104d);if(_0x5c7ce8['value'])return void _0x138d82['execute']('paragraph',{});const _0x1a59fa=_0x2d104d['slice'](0x0,-0x4),_0x2c1e9c=function(_0x37c258,_0x452e90,_0x125906){let _0x5bc968=Array['from'](_0x37c258)['filter'](_0x268574=>function(_0x4f7fd6,_0x55e572){return _0x55e572['checkChild'](_0x4f7fd6['parent'],'listItem')&&!_0x55e572['isObject'](_0x4f7fd6);}(_0x268574,_0x125906));_0x5bc968=_0x5bc968['filter'](_0x47507a=>!_0x47507a['is']('element','listItem')||_0x47507a['getAttribute']('listType')!=_0x452e90);const _0x5a9fd4=new Set();for(const _0x1ffe78 of _0x5bc968)_0x1ffe78['is']('element','listItem')?_0x5a9fd4['add'](fe(_0x1ffe78)):_0x5a9fd4['add'](_0x1ffe78);return Array['from'](_0x5a9fd4);}(_0xbbc69e['getSelectedBlocks'](),_0x1a59fa,_0x138d82['model']['schema']);_0x138d82['model']['change'](()=>{for(const _0x428817 of _0x2c1e9c)_0x3555ca['markBlockFormat'](_0x428817,{'commandName':_0x2d104d,'commandParams':[{'forceValue':!_0x5c7ce8['value']}],'formatGroupId':'blockName'},ue(_0x428817));});};}function _0xf3f7be(_0x7c75d0){return()=>{const _0x24b6cb=function(_0x5bdcf2){let _0x3a434a=Array['from'](_0x5bdcf2);const _0x10a934=_0x3a434a['findIndex'](_0x11ecd5=>'listItem'!=_0x11ecd5['name']);return _0x10a934>-0x1&&(_0x3a434a=_0x3a434a['slice'](0x0,_0x10a934)),_0x3a434a;}(_0x138d82['model']['document']['selection']['getSelectedBlocks']()),_0x1419ca=_0x138d82['model']['createRange'](_0x138d82['model']['createPositionAt'](_0x24b6cb[0x0],'before'),_0x138d82['model']['createPositionAt'](_0x24b6cb[_0x24b6cb['length']-0x1],'end'));_0x138d82['model']['change'](()=>{_0x3555ca['markBlockFormat'](_0x1419ca,{'commandName':_0x7c75d0,'commandParams':[],'formatGroupId':'listIndent'},function(_0x29562a){const _0x3cbc2b=new Set();for(const _0x143ee2 of _0x29562a){let _0x3ddd8c=_0x143ee2['nextSibling'];for(;_0x3ddd8c&&_0x3ddd8c['getAttribute']('listIndent')>_0x143ee2['getAttribute']('listIndent');)_0x3cbc2b['add'](_0x3ddd8c),_0x3ddd8c=_0x3ddd8c['nextSibling'];}return Array['from'](_0x3cbc2b);}(_0x24b6cb));});};}_0x3555ca['enableCommand']('numberedList',_0x36335c('numberedList')),_0x3555ca['enableCommand']('bulletedList',_0x36335c('bulletedList')),_0x4b8be7&&_0x3555ca['enableCommand']('todoList',_0x36335c('todoList')),_0x3555ca['enableCommand']('indentList',_0xf3f7be('indentList')),_0x3555ca['enableCommand']('outdentList',_0xf3f7be('outdentList')),_0x4b8be7&&_0x3555ca['enableCommand']('checkTodoList',()=>{const _0x15234=_0x138d82['commands']['get']('checkTodoList'),_0x39d480=Array['from'](_0x15234['_selectedElements']);_0x39d480['filter'](_0x46f055=>_0x46f055['getAttribute']('todoListChecked')!=_0x15234['value']),_0x138d82['model']['change'](()=>{for(const _0xa30973 of _0x39d480)_0x3555ca['markBlockFormat'](_0xa30973,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x15234['value']}]});});}),_0x3555ca['descriptionFactory']['registerElementLabel']('listItem',_0x425e8d=>o(_0x223586,'ELEMENT_LIST_ITEM',_0x425e8d)),_0x3555ca['descriptionFactory']['registerDescriptionCallback'](_0x1f9cb9=>{if('formatBlock'!=_0x1f9cb9['type']&&'formatInline'!=_0x1f9cb9['type'])return;const {data:_0x250611}=_0x1f9cb9;if(_0x250611){if('numberedList'==_0x250611['commandName']||'bulletedList'==_0x250611['commandName']||'todoList'==_0x250611['commandName'])switch(_0x250611['commandName']['replace']('List','')){case'bulleted':return _0x1227ea(o(_0x223586,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1227ea(o(_0x223586,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1227ea(o(_0x223586,'ELEMENT_TODO_LIST'));}if('indentList'==_0x250611['commandName'])return{'type':'format','content':o(_0x223586,'*Indent:*\x20%0',o(_0x223586,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x250611['commandName'])return{'type':'format','content':o(_0x223586,'*Outdent:*\x20%0',o(_0x223586,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x250611['commandName'])return _0x250611['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x223586,'*Check\x20item*')}:{'type':'format','content':o(_0x223586,'*Uncheck\x20item*')};}function _0x1227ea(_0x56d900){return{'type':'format','content':o(_0x223586,'*Change\x20to:*\x20%0',_0x56d900)};}});}}function fe(_0x333ede){const _0x328425=_0x333ede['getAttribute']('listIndent');if(0x0==_0x328425)return _0x333ede;let _0x24fc1d=_0x333ede;for(;_0x333ede['previousSibling']&&_0x333ede['previousSibling']['is']('element','listItem');){const _0xad3f17=_0x333ede['previousSibling']['getAttribute']('listIndent');if(_0xad3f17==_0x328425)_0x24fc1d=_0x333ede['previousSibling'];else{if(_0xad3f17<_0x328425)break;}_0x333ede=_0x333ede['previousSibling'];}return _0x24fc1d;}function ue(_0x1d3465){const _0x12bf13=[];if(_0x1d3465['is']('element','listItem')&&_0x1d3465['getAttribute']('listIndent')>0x0){let _0x1619b8=_0x1d3465['nextSibling'];for(;_0x1619b8&&'listItem'==_0x1619b8['name']&&_0x1619b8['getAttribute']('listIndent')==_0x1d3465['getAttribute']('listIndent');)_0x12bf13['push'](_0x1619b8),_0x1619b8=_0x1619b8['nextSibling'];}return _0x12bf13;}class W extends _0x5eca65{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x44bbdb=this['editor']['config']['get']('list.properties'),_0x462bca=this['editor']['plugins']['get']('TrackChangesEditing');_0x44bbdb['styles']&&_0x462bca['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x44bbdb['reversed']&&_0x462bca['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x44bbdb['startIndex']&&_0x462bca['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x462bca['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x111d3d,_0x3e0b69={}){const _0x481879=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3dce71=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x481879['markMultiRangeBlockFormat'](_0x3dce71,{'commandName':'listStyle','commandParams':[{'type':_0x3e0b69['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2bc416,_0x560514={}){const _0x8e89a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb60fee=this['_getSuggestionBlocks'](_0x5d0ee7=>_0x5d0ee7['is']('element','listItem')&&'numbered'===_0x5d0ee7['getAttribute']('listType'));if(_0xb60fee['length']<0x1)return;const _0x1b0e73=_0xb60fee['map'](_0x4913ac=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4913ac,'before'),this['editor']['model']['createPositionAt'](_0x4913ac,0x0)));this['editor']['model']['change'](()=>{_0x8e89a8['markMultiRangeBlockFormat'](_0x1b0e73,{'commandName':'listReversed','commandParams':[{'reversed':_0x560514['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3cd271,_0xfb8218={}){const _0x42996a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x355e2d=this['_getSuggestionBlocks'](_0xdffe3b=>_0xdffe3b['is']('element','listItem')&&'numbered'===_0xdffe3b['getAttribute']('listType'));if(_0x355e2d['length']<0x1)return;const _0x5896b8=_0x355e2d['map'](_0x1ad100=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1ad100,'before'),this['editor']['model']['createPositionAt'](_0x1ad100,0x0)));this['editor']['model']['change'](()=>{_0x42996a['markMultiRangeBlockFormat'](_0x5896b8,{'commandName':'listStart','commandParams':[{'startIndex':_0xfb8218['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x9c7d90){if('formatBlock'!=_0x9c7d90['type']&&'formatInline'!=_0x9c7d90['type'])return;const _0x1cd7e6=this['editor']['locale'],{data:_0x3394ae}=_0x9c7d90;if(!_0x3394ae)return;let _0x53c74d,_0x35bd9e;switch(_0x3394ae['commandName']){case'listStyle':_0x53c74d='*Change\x20to:*\x20%0',_0x35bd9e={'type':'format','content':o(_0x1cd7e6,_0x53c74d,o(_0x1cd7e6,this['_getTranslationKeyForListStyle'](_0x3394ae['commandParams'][0x0]['type'])))};break;case'listReversed':_0x53c74d=_0x3394ae['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x35bd9e={'type':'format','content':o(_0x1cd7e6,_0x53c74d)};break;case'listStart':_0x53c74d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x35bd9e={'type':'format','content':o(_0x1cd7e6,_0x53c74d,_0x3394ae['commandParams'][0x0]['startIndex'])};}return _0x35bd9e;}['_getSuggestionBlocksForListStyle'](){const _0x5be675=this['editor']['plugins']['get']('LegacyListUtils');let _0x4ae7f4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4ae7f4[0x0]?.['is']('element','listItem')&&_0x4ae7f4['unshift'](..._0x5be675['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4ae7f4[_0x4ae7f4['length']-0x1]?.['is']('element','listItem')&&_0x4ae7f4['push'](..._0x5be675['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4ae7f4=[...new Set(_0x4ae7f4)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4ae7f4=_0x4ae7f4['filter'](_0x25a08c=>_0x25a08c['is']('element','listItem'))),_0x4ae7f4;}['_getSuggestionBlocks'](_0x452489){const _0x3338f6=this['editor']['plugins']['get']('LegacyListUtils');let _0x362a8f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x452489)['map'](_0x11639e=>{const _0x4d06e7=this['editor']['model']['createPositionAt'](_0x11639e,0x0);return[..._0x3338f6['getSiblingNodes'](_0x4d06e7,'backward'),..._0x3338f6['getSiblingNodes'](_0x4d06e7,'forward')];})['flat']();return _0x362a8f=[...new Set(_0x362a8f)],_0x362a8f;}['_getTranslationKeyForListStyle'](_0x4c0683){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4c0683)||'default')['toUpperCase']()+'_LIST_'+_0x4c0683['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x5eca65{['afterInit'](){const _0xd07a00=this['editor'];if(!_0xd07a00['plugins']['has']('MediaEmbedEditing'))return;const _0x3c4d7b=_0xd07a00['plugins']['get']('TrackChangesEditing'),_0x20bc83=_0xd07a00['locale'];_0x3c4d7b['enableCommand']('mediaEmbed'),_0x3c4d7b['descriptionFactory']['registerElementLabel']('media',_0x1d7094=>o(_0x20bc83,'ELEMENT_MEDIA',_0x1d7094)),_0xd07a00['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x323ffc,{writer:_0x17965d,options:_0x36e3df})=>{if(_0x36e3df['showSuggestionHighlights'])return _0x17965d['createEmptyElement']('div');},'converterPriority':'high'}),_0xd07a00['data']['downcastDispatcher']['on']('attribute:url:media',(_0x75f99f,_0x5798e2,_0x45cc1e)=>{_0x45cc1e['options']['showSuggestionHighlights']&&_0x75f99f['stop']();},{'priority':'high'});}}class mt extends _0x5eca65{['afterInit'](){const _0x5d27cd=this['editor'];_0x5d27cd['plugins']['has']('MentionEditing')&&_0x5d27cd['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x5eca65{['afterInit'](){const _0x53faef=this['editor'];if(!_0x53faef['plugins']['has']('MergeFieldsEditing'))return;_0x53faef['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x53faef['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x31083b=_0x53faef['plugins']['get']('TrackChangesEditing'),_0x58504c=_0x53faef['locale'];_0x31083b['descriptionFactory']['registerElementLabel']('mergeField',_0x335b48=>o(_0x58504c,'ELEMENT_MERGE_FIELD',_0x335b48)),_0x31083b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x58074d=>o(_0x58504c,'ELEMENT_MERGE_FIELD',_0x58074d)),_0x31083b['descriptionFactory']['registerDescriptionCallback'](_0x457440=>{if('insertion'!=_0x457440['type']&&'deletion'!=_0x457440['type'])return;const _0x1e7b33=_0x457440['getContainedElement']();if(null==_0x1e7b33)return;if(!_0x1e7b33['is']('element','mergeField')&&!_0x1e7b33['is']('element','mergeFieldBlock'))return;const _0x495222=_0x53faef['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x1e7b33['getAttribute']('id'));return'insertion'==_0x457440['type']?{'type':'insertion','content':o(_0x58504c,'*Insert:*\x20%0','\x22'+_0x495222+'\x22\x20'+o(_0x58504c,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x58504c,'*Remove:*\x20%0','\x22'+_0x495222+'\x22\x20'+o(_0x58504c,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x5eca65{['afterInit'](){const _0x502322=this['editor'],_0x306f98=_0x502322['plugins']['get']('TrackChangesEditing');_0x502322['plugins']['has']('MultiLevelList')&&(_0x306f98['enableDefaultAttributesIntegration']('multiLevelList'),_0x306f98['registerBlockAttribute']('listMarkerStyle'),_0x306f98['descriptionFactory']['registerDescriptionCallback'](_0x31d3c1=>this['handleDescriptions'](_0x31d3c1)));}['handleDescriptions'](_0x581bfd){const _0x5c3d85=this['editor']['locale'],{data:_0x9543a}=_0x581bfd,_0x1fc267={'type':'format','content':''};if(_0x9543a&&'listMarkerStyle'==_0x9543a['key']){if(!_0x9543a['oldValue'])return{'type':'format','content':o(_0x5c3d85,'*Set\x20format:*\x20%0',o(_0x5c3d85,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x9543a['newValue']+')'};if(!_0x9543a['newValue']){let _0x11093a=_0x581bfd['head'];for(;_0x11093a;){if(_0x11093a['data']&&'listType'==_0x11093a['data']['key']&&_0x11093a['data']['newValue'])return _0x1fc267;_0x11093a=_0x11093a['next'];}return{'type':'format','content':o(_0x5c3d85,'*Remove\x20format:*\x20%0',o(_0x5c3d85,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x9543a['oldValue']+')'};}}}}class kt extends _0x5eca65{['afterInit'](){const _0x4d2dd2=this['editor'];if(!_0x4d2dd2['plugins']['has']('PageBreakEditing'))return;_0x4d2dd2['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2c2ac8=_0x4d2dd2['plugins']['get']('TrackChangesEditing'),_0x2707e1=_0x4d2dd2['locale'];_0x2c2ac8['descriptionFactory']['registerElementLabel']('pageBreak',_0x6ba833=>o(_0x2707e1,'ELEMENT_PAGE_BREAK',_0x6ba833));}}class bt extends _0x5eca65{['afterInit'](){const _0x134210=this['editor'];if(!_0x134210['plugins']['has']('Paragraph'))return;const _0x49ba37=_0x134210['locale'],_0xb5969d=_0x134210['plugins']['get']('TrackChangesEditing');_0xb5969d['descriptionFactory']['registerElementLabel']('paragraph',_0x3a8973=>o(_0x49ba37,'ELEMENT_PARAGRAPH',_0x3a8973)),_0xb5969d['enableDefaultAttributesIntegration']('paragraph'),_0xb5969d['enableCommand']('insertParagraph'),_0x134210['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x134210),{'priority':'highest'}),_0x134210['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x272dea,_0x333299,_0x3ebd65)=>{_0x3ebd65['options']['showSuggestionHighlights']&&nr(_0x134210,{'showActiveMarker':!0x1})(_0x272dea,_0x333299,_0x3ebd65);},{'priority':'highest'});const _0x152775=_0xb5969d['descriptionFactory'];_0x152775['registerDescriptionCallback'](_0x48105a=>{if('insertion'!==_0x48105a['type'])return;const {start:_0x39c1a2,end:_0x5a2a47}=_0x48105a['getFirstRange']();if(!_0x39c1a2['isTouching'](_0x5a2a47)||!_0x39c1a2['nodeAfter'])return;const _0x46f3bb=_0x134210['model']['schema'],_0x24e6b0=_0x39c1a2['nodeAfter'];return _0x46f3bb['isBlock'](_0x24e6b0)&&!_0x46f3bb['isLimit'](_0x24e6b0)&&_0x46f3bb['checkChild'](_0x24e6b0,'$text')?{'type':'insertion','content':o(_0x49ba37,'*Insert:*\x20%0',_0x152775['getItemLabel'](_0x24e6b0,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4987c5=this['editor'],_0x438294=_0x4987c5['locale'];_0x4987c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30708f=>{if('formatBlock'!=_0x30708f['type'])return;const {data:_0x1083a1}=_0x30708f;return _0x1083a1&&'paragraph'==_0x1083a1['commandName']?{'type':'format','content':o(_0x438294,'*Change\x20to:*\x20%0',o(_0x438294,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5339e5,{showActiveMarker:_0x3b2c5b=!0x0}={}){return(_0x2f726f,_0x16bb28,_0x19a25e)=>{const _0x1043d0=_0x5339e5['plugins']['get']('TrackChangesEditing'),_0xaf38a3=_0x16bb28['markerRange']['start'],_0x4661dd=_0x16bb28['markerRange']['end'],_0x4e58d8=_0x5339e5['model']['schema'];if(!_0xaf38a3['isTouching'](_0x4661dd)||!_0xaf38a3['nodeAfter'])return;const _0x56ea9b=_0xaf38a3['nodeAfter'];if(_0x4e58d8['isBlock'](_0x56ea9b)&&!_0x4e58d8['isLimit'](_0x56ea9b)&&_0x4e58d8['checkChild'](_0x56ea9b,'$text')){if(!_0x19a25e['consumable']['consume'](_0x16bb28['markerRange'],_0x2f726f['name']))return;const {authorId:_0x52a3ad}=_0x1043d0['_splitMarkerName'](_0x16bb28['markerName']),_0x4b8a61=_0x19a25e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x52a3ad}),_0x366c90=_0x19a25e['mapper']['toViewPosition'](_0x4661dd);_0x3b2c5b&&_0x1043d0['activeMarkers']['includes'](_0x16bb28['markerName'])&&_0x19a25e['writer']['addClass']('ck-suggestion-marker--active',_0x4b8a61),_0x19a25e['writer']['insert'](_0x366c90,_0x4b8a61),_0x19a25e['mapper']['bindElementToMarker'](_0x4b8a61,_0x16bb28['markerName']);}};}class wt extends _0x5eca65{['afterInit'](){const _0x4004e0=this['editor'];if(!_0x4004e0['plugins']['has']('RemoveFormatEditing'))return;_0x4004e0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x417625=this['editor'];_0x417625['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23cfee=>{if('formatBlock'!=_0x23cfee['type']&&'formatInline'!=_0x23cfee['type'])return;const {data:_0x1a93be}=_0x23cfee;return _0x1a93be&&'removeFormat'==_0x1a93be['commandName']?{'type':'format','content':o(_0x417625['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x5eca65{['afterInit'](){const _0x94388=this['editor'];if(!_0x94388['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x106050=_0x94388['plugins']['get']('TrackChangesEditing');_0x106050['enableCommand']('goToPreviousRestrictedEditingException'),_0x106050['enableCommand']('goToNextRestrictedEditingException');const _0x108a8e=_0x94388['plugins']['get']('RestrictedEditingModeEditing');_0x108a8e['enableCommand']('trackChanges'),_0x108a8e['enableCommand']('acceptSuggestion'),_0x108a8e['enableCommand']('discardSuggestion'),_0x108a8e['enableCommand']('acceptAllSuggestions'),_0x108a8e['enableCommand']('discardAllSuggestions'),_0x108a8e['enableCommand']('acceptSelectedSuggestions'),_0x108a8e['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x5eca65{static get['requires'](){return[_0x39d9f3];}['init'](){const _0x39089b=this['editor'],_0x531621=_0x39089b['plugins']['get']('TrackChangesEditing');_0x531621['enableCommand']('shiftEnter'),_0x39089b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x39089b),{'priority':'high'}),_0x39089b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x39089b),{'priority':'high'}),_0x39089b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x50afbe,_0x9928ce,_0xf5cab1)=>{_0xf5cab1['options']['showSuggestionHighlights']&&ge(_0x39089b,{'showActiveMarker':!0x1})(_0x50afbe,_0x9928ce,_0xf5cab1);}),_0x531621['descriptionFactory']['registerElementLabel']('softBreak',_0x4897bb=>o(_0x39089b['locale'],'ELEMENT_LINE_BREAK',_0x4897bb));}}function ge(_0x4ee717,{showActiveMarker:_0x19f9b1=!0x0}={}){return(_0x693acc,_0x489ce4,_0xe0f16e)=>{const _0x5cab1f=_0x4ee717['plugins']['get']('TrackChangesEditing');if(!_0xe0f16e['consumable']['test'](_0x489ce4['markerRange'],_0x693acc['name']))return;const _0x21b300=_0x4ee717['model'];for(const _0x412005 of _0x489ce4['markerRange']['getItems']()){if(!_0x412005['is']('element','softBreak'))continue;const _0xdde6d4='deletion'==_0x489ce4['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x17d5a0}=_0x5cab1f['_splitMarkerName'](_0x489ce4['markerName']),_0x43cecd=_0xe0f16e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xdde6d4,'data-author-id':_0x17d5a0}),_0x1d978e=_0xe0f16e['mapper']['toViewPosition'](_0x21b300['createPositionBefore'](_0x412005));_0x19f9b1&&_0x5cab1f['activeMarkers']['includes'](_0x489ce4['markerName'])&&_0xe0f16e['writer']['addClass']('ck-suggestion-marker--active',_0x43cecd),_0xe0f16e['writer']['insert'](_0x1d978e,_0x43cecd),_0xe0f16e['mapper']['bindElementToMarker'](_0x43cecd,_0x489ce4['markerName']);}};}class St extends _0x5eca65{['afterInit'](){const _0x5296a8=this['editor'],_0x117e05=_0x5296a8['model'],_0x2fd9bf=_0x5296a8['locale'];if(!_0x5296a8['plugins']['has']('StandardEditingModeEditing'))return;const _0x408ae1=_0x5296a8['plugins']['get']('TrackChangesEditing'),_0x268ae3='restrictedEditingException',_0x1200e4=_0x5296a8['commands']['get'](_0x268ae3);_0x408ae1['enableCommand'](_0x268ae3,(_0xb97e9e,_0x311aeb={})=>{const _0x11bd38=_0x117e05['document']['selection'];if(_0x11bd38['isCollapsed'])return void _0xb97e9e(_0x311aeb);const _0x54e10e=void 0x0!==_0x311aeb['forceValue']?_0x311aeb['forceValue']:!_0x1200e4['value'];_0x117e05['change'](()=>{const _0x1b87d6=Array['from'](_0x11bd38['getRanges']());for(const _0x427600 of _0x1b87d6){const _0x6fdc43=_0x54e10e?[_0x427600]:io(_0x268ae3,_0x427600,_0x117e05);for(const _0x52ad59 of _0x6fdc43)_0x408ae1['markInlineFormat'](_0x52ad59,{'commandName':_0x268ae3,'commandParams':[{'forceValue':_0x54e10e}]});}});}),_0x408ae1['descriptionFactory']['registerDescriptionCallback'](_0x39a6db=>{if('formatBlock'!=_0x39a6db['type']&&'formatInline'!=_0x39a6db['type'])return;const {data:_0x106135}=_0x39a6db;return _0x106135&&_0x106135['commandName']==_0x268ae3?_0x106135['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2fd9bf,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2fd9bf,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x5eca65{['afterInit'](){const _0x4e348c=this['editor'];if(!_0x4e348c['plugins']['has']('Style')||!_0x4e348c['plugins']['has']('DataSchema'))return;const _0x959911=_0x4e348c['plugins']['get']('TrackChangesEditing'),_0x2e91ff=_0x4e348c['locale'],_0x209d20=_0x4e348c['config']['get']('style')||{},_0x1879c5=_0x4e348c['plugins']['get']('GeneralHtmlSupport'),_0x3106ea=_0x4e348c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4e348c['plugins']['get']('DataSchema'),_0x209d20['definitions']);_0x959911['enableDefaultAttributesIntegration']('style');const _0x35308c=new Set();for(const _0x42b334 of _0x3106ea['block']){const _0x3f33e8=_0x1879c5['getGhsAttributeNameForElement'](_0x42b334['element']);_0x35308c['add'](_0x3f33e8);}const _0x345b6a=new Set();for(const _0x5bffa2 of _0x3106ea['inline']){const _0x359c6d=_0x1879c5['getGhsAttributeNameForElement'](_0x5bffa2['element']);_0x345b6a['add'](_0x359c6d);for(const _0x2f670b of _0x5bffa2['ghsAttributes'])_0x345b6a['add'](_0x2f670b);}for(const _0x1804b0 of _0x35308c)_0x959911['registerBlockAttribute'](_0x1804b0),_0x959911['descriptionFactory']['registerAttributeLabel'](_0x1804b0,o(_0x2e91ff,'FORMAT_STYLE'));for(const _0x194a81 of _0x345b6a)_0x959911['registerInlineAttribute'](_0x194a81),_0x959911['descriptionFactory']['registerAttributeLabel'](_0x194a81,o(_0x2e91ff,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27304d=this['editor'],_0x55bebb=_0x27304d['locale'];_0x27304d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e46f7=>{if('formatBlock'!=_0x4e46f7['type']&&'formatInline'!=_0x4e46f7['type'])return;const {data:_0x2526a5}=_0x4e46f7;return _0x2526a5&&'style'===_0x2526a5['commandName']?_0x2526a5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x55bebb,'*Set\x20format:*\x20%0',_0x2526a5['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x55bebb,'*Remove\x20format:*\x20%0',_0x2526a5['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x5eca65{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x279fff){super(_0x279fff),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x12f2a6=this['editor'],_0x3e34b1=_0x12f2a6['model']['document']['selection'];if(!_0x12f2a6['plugins']['has']('TableEditing'))return;const _0xfa2a10=_0x12f2a6['locale'],_0x3076d8=_0x12f2a6['plugins']['get']('TrackChangesEditing'),_0x307d42=_0x12f2a6['plugins']['get']('TableUtils');_0x3076d8['descriptionFactory']['registerElementLabel']('table',_0x40b485=>o(_0xfa2a10,'ELEMENT_TABLE',_0x40b485)),this['_setupColumnsRowsFixing'](),_0x3076d8['enableCommand']('insertTable'),_0x3076d8['enableCommand']('selectTableRow'),_0x3076d8['enableCommand']('selectTableColumn');for(const _0xea1be4 of['insertTableRowAbove','insertTableRowBelow']){const _0x28ab95=_0x12f2a6['commands']['get'](_0xea1be4);_0x3076d8['enableCommand'](_0xea1be4,_0x83bd36=>{_0x12f2a6['model']['change'](_0x391c13=>{_0x83bd36();const _0x5eeeca='above'===_0x28ab95['order'],_0x5212cf=_0x307d42['getSelectionAffectedTableCells'](_0x3e34b1),_0x4036fc=_0x307d42['getRowIndexes'](_0x5212cf),_0x1393ba=_0x5eeeca?_0x4036fc['first']-0x1:_0x4036fc['last']+0x1,_0x690618=_0x5212cf[0x0]['findAncestor']('table'),_0x3419d8=_0x307d42['createTableWalker'](_0x690618,{'startRow':_0x1393ba,'endRow':_0x1393ba}),_0x5c4f6c=Array['from'](_0x3419d8)['map'](_0x192d62=>_0x391c13['createRangeOn'](_0x192d62['cell']));_0x3076d8['markMultiRangeInsertion'](_0x5c4f6c,'tableRow');});});}for(const _0x16e35d of['insertTableColumnLeft','insertTableColumnRight']){const _0x2fe957=_0x12f2a6['commands']['get'](_0x16e35d);_0x3076d8['enableCommand'](_0x16e35d,_0x5e00ca=>{_0x12f2a6['model']['change'](_0x437500=>{_0x5e00ca();const _0x46f9e5='left'===_0x2fe957['order'],_0x45457=_0x307d42['getSelectionAffectedTableCells'](_0x3e34b1),_0x375da1=_0x307d42['getColumnIndexes'](_0x45457),_0x1dd889=_0x46f9e5?_0x375da1['first']-0x1:_0x375da1['last']+0x1,_0x2fc35d=_0x45457[0x0]['findAncestor']('table'),_0x177e14=_0x307d42['createTableWalker'](_0x2fc35d,{'startRow':0x0,'column':_0x1dd889,'includeAllSlots':!0x1}),_0x295e4a=Array['from'](_0x177e14)['map'](_0x5a897b=>_0x437500['createRangeOn'](_0x5a897b['cell']));_0x3076d8['markMultiRangeInsertion'](_0x295e4a,'tableColumn');});});}for(const _0x4bc194 of['removeTableRow','removeTableColumn']){const _0x5baba0=_0x4bc194['substr'](0xb),_0x2d5fea=_0x5baba0['toLowerCase'](),_0x24c92b=_0x2d5fea['substr'](0x0,0x3)+'span',_0x496eb='table'+_0x5baba0,_0x7bcff7='min'+_0x5baba0,_0x55d494='max'+_0x5baba0;_0x3076d8['enableCommand'](_0x4bc194,()=>{_0x12f2a6['model']['change'](_0x3cfae1=>{const _0x337895=_0x307d42['getSelectionAffectedTableCells'](_0x3e34b1),_0x3192c2=_0x337895[0x0]['findAncestor']('table');let _0x199eb0;if('removeTableRow'==_0x4bc194){const _0x3e3ede=_0x307d42['getRowIndexes'](_0x337895);_0x199eb0={'startRow':_0x3e3ede['first'],'endRow':_0x3e3ede['last'],'includeAllSlots':!0x0};}else{const _0x3e73b9=_0x307d42['getColumnIndexes'](_0x337895);_0x199eb0={'startColumn':_0x3e73b9['first'],'endColumn':_0x3e73b9['last'],'includeAllSlots':!0x0};}const _0x1eb777=_0x307d42['createTableWalker'](_0x3192c2,_0x199eb0),_0x3ae090=Array['from'](_0x1eb777)['map'](({cell:_0x337c1e})=>_0x337c1e),_0x231217=be(_0x3ae090['filter'](_0x982ee0=>_0x982ee0['hasAttribute'](_0x24c92b))),_0x305c44=be(_0x3ae090['filter'](_0x20aa3a=>!_0x20aa3a['hasAttribute'](_0x24c92b)))['map'](_0x5596f5=>_0x3cfae1['createRangeOn'](_0x5596f5)),_0x53b8f9=_0x3076d8['markMultiRangeDeletion'](_0x305c44,_0x496eb);if(_0x53b8f9&&('tableRow'==_0x53b8f9['subType']||'tableColumn'==_0x53b8f9['subType'])){const _0x4c7b9e=this['_getSuggestionCoords'](_0x53b8f9);for(const _0x47aa72 of _0x231217){const _0x475577=_0x3cfae1['createRangeOn'](_0x47aa72),_0x44cada=_0x307d42['getCellLocation'](_0x47aa72),_0x5f0002=_0x47aa72['getAttribute'](_0x24c92b)-0x1,_0x2c73a0=_0x4c7b9e[_0x7bcff7],_0x229b61=_0x4c7b9e[_0x55d494];_0x2c73a0<=_0x44cada[_0x2d5fea]&&_0x44cada[_0x2d5fea]+_0x5f0002<=_0x229b61&&_0x53b8f9['addRange'](_0x475577);}}});});}function _0xa103bb(_0x2c7390){const _0x1c192b=Array['from'](_0x3e34b1['getRanges']())['map'](_0x2fc2f4=>_0x1c0e5b['fromRange'](_0x2fc2f4));_0x12f2a6['model']['change'](_0x350965=>{const _0x26d0e3=_0x350965['batch'];_0x2c7390=_0x2c7390['filter'](_0x54540f=>'$graveyard'!=_0x54540f['root']['rootName']),_0x350965['setSelection'](_0x2c7390),_0x12f2a6['commands']['get']('removeTableRow')['refresh'](),_0x12f2a6['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x12f2a6['model']['enqueueChange'](()=>{_0x12f2a6['model']['enqueueChange'](_0x26d0e3,_0x5cd36e=>{const _0x1526ba=_0x1c192b['filter'](_0x5a8f2c=>'$graveyard'!=_0x5a8f2c['root']['rootName']);_0x1526ba['length']>0x0&&_0x5cd36e['setSelection'](_0x1526ba);for(const _0x11e0d8 of _0x1c192b)_0x11e0d8['detach']();});});});}function _0x4549e7(_0x437b2b){_0x12f2a6['model']['change'](_0x2f9657=>{const _0x31f05e=Array['from'](_0x3e34b1['getRanges']())['map'](_0x95a614=>_0x1c0e5b['fromRange'](_0x95a614)),_0x41d406=[];for(const _0x1dea58 of _0x437b2b)for(const _0x1fd0db of _0x1dea58['getItems']({'shallow':!0x0}))_0x41d406['push'](_0x1fd0db);for(const _0x3a709e of _0x41d406)'$graveyard'!=_0x3a709e['root']['rootName']&&(_0x2f9657['setSelection'](_0x2f9657['createPositionAt'](_0x3a709e,0x0)),_0x12f2a6['commands']['get']('removeTableColumn')['refresh'](),_0x12f2a6['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x10f869=_0x31f05e['filter'](_0x201e05=>'$graveyard'!=_0x201e05['root']['rootName']);_0x10f869['length']>0x0&&_0x2f9657['setSelection'](_0x10f869);for(const _0x3149db of _0x31f05e)_0x3149db['detach']();});}function _0x4f28ea(_0x305057,_0x3cd7f3){return _0x3cd7f3['every'](_0x323a45=>_0x305057['some'](_0x30ff8f=>_0x30ff8f['end']['isEqual'](_0x323a45['start'])||_0x323a45['end']['isEqual'](_0x30ff8f['start'])));}function _0x340e20(_0x2a2ab1,_0x59637e){return!_0x2a2ab1['some'](_0x85c24c=>_0x59637e['some'](_0x593235=>_0x85c24c['isIntersecting'](_0x593235)))&&_0x2a2ab1['some'](_0x5cbb8d=>_0x59637e['some'](_0x46d2ca=>_0x5cbb8d['end']['isTouching'](_0x46d2ca['start'])));}_0x12f2a6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x48909d,_0x49f367,_0x1fea89)=>{if(!_0x1fea89['options']['showSuggestionHighlights'])return;const _0x54d022=_0x49f367['item'];if(!_0x54d022)return;const _0x344a96=_0x1fea89['mapper']['toViewElement'](_0x54d022);function _0x47770b(_0xe83e14){return Array['isArray'](_0xe83e14)?_0xe83e14:[_0xe83e14];}_0x344a96&&'tableCell'===_0x54d022['name']&&_0xdd39e7(_0x344a96,_0x1fea89['writer'],(_0x1c681a,_0x3021ae,_0x22a2c0)=>_0x22a2c0['addClass'](_0x47770b(_0x3021ae['classes']),_0x1c681a),(_0x36a175,_0xd08be0,_0x5df7d7)=>_0x5df7d7['removeClass'](_0x47770b(_0xd08be0['classes']),_0x36a175));},{'priority':'highest'}),_0x3076d8['descriptionFactory']['registerDescriptionCallback'](_0x3371fe=>{if('insertion'!=_0x3371fe['type']&&'deletion'!=_0x3371fe['type'])return;const _0x5233b7=_0x3371fe['getContainedElement']();if(null!=_0x5233b7&&_0x5233b7['is']('element','table')){if('insertion'==_0x3371fe['type']){const _0x3909e0=_0x3371fe['getItems']()['filter'](_0x266d59=>_0x266d59['is']('$textProxy'))['map'](_0x4558ad=>_0x4558ad['data']);if(_0x3909e0['length'])return{'type':'insertion','content':o(_0xfa2a10,'*Insert:*\x20%0',o(_0xfa2a10,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3909e0['join']('\x20')+'\x22'))};}if('deletion'==_0x3371fe['type']){const _0x4580ff=_0x3371fe['getItems']()['filter'](_0x30dc44=>_0x30dc44['is']('$textProxy'))['map'](_0x25b9c5=>_0x25b9c5['data']);if(_0x4580ff['length'])return{'type':'deletion','content':o(_0xfa2a10,'*Remove:*\x20%0',o(_0xfa2a10,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4580ff['join']('\x20')+'\x22'))};}}}),_0x3076d8['descriptionFactory']['registerDescriptionCallback'](_0x6cd817=>{if('tableRow'==_0x6cd817['subType']){const _0x569fbe=_0x6cd817['getItems']()['filter'](_0x3e7400=>_0x3e7400['is']('$textProxy'))['map'](_0x407256=>_0x407256['data']),_0x6bbb0b=this['_getSuggestionCoords'](_0x6cd817),_0x4ee125=_0x6bbb0b['maxRow']-_0x6bbb0b['minRow']+0x1;if('insertion'==_0x6cd817['type'])return _0x569fbe['length']?{'type':'insertion','content':o(_0xfa2a10,'*Insert:*\x20%0',o(_0xfa2a10,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4ee125,'\x22'+_0x569fbe['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xfa2a10,'*Insert:*\x20%0',o(_0xfa2a10,'ELEMENT_TABLE_ROW',_0x4ee125))};if('deletion'==_0x6cd817['type'])return _0x569fbe['length']?{'type':'deletion','content':o(_0xfa2a10,'*Remove:*\x20%0',o(_0xfa2a10,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4ee125,'\x22'+_0x569fbe['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xfa2a10,'*Remove:*\x20%0',o(_0xfa2a10,'ELEMENT_TABLE_ROW',_0x4ee125))};}if('tableColumn'==_0x6cd817['subType']){const _0x4bc99c=_0x6cd817['getItems']()['filter'](_0x1dd8af=>_0x1dd8af['is']('$textProxy'))['map'](_0x420dc2=>_0x420dc2['data']),_0x3acb34=this['_getSuggestionCoords'](_0x6cd817),_0x3a42b3=_0x3acb34['maxColumn']-_0x3acb34['minColumn']+0x1;if('insertion'==_0x6cd817['type'])return _0x4bc99c['length']?{'type':'insertion','content':o(_0xfa2a10,'*Insert:*\x20%0',o(_0xfa2a10,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3a42b3,'\x22'+_0x4bc99c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xfa2a10,'*Insert:*\x20%0',o(_0xfa2a10,'ELEMENT_TABLE_COLUMN',_0x3a42b3))};if('deletion'==_0x6cd817['type'])return _0x4bc99c['length']?{'type':'deletion','content':o(_0xfa2a10,'*Remove:*\x20%0',o(_0xfa2a10,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3a42b3,'\x22'+_0x4bc99c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xfa2a10,'*Remove:*\x20%0',o(_0xfa2a10,'ELEMENT_TABLE_COLUMN',_0x3a42b3))};}}),_0x3076d8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xa103bb),_0x3076d8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xa103bb),_0x3076d8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4549e7),_0x3076d8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4549e7),_0x3076d8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4f28ea),_0x3076d8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4f28ea),_0x3076d8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x340e20),_0x3076d8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x340e20);}['_acceptFormatSuggestionCallbackFactory'](){const _0x20240a=this['editor'],_0x59150b=_0x20240a['model']['document']['selection'];return(_0x1c3c56,_0x33686c)=>{_0x20240a['model']['change'](_0x1b8ea1=>{const {commandName:_0x28c5da,commandParams:_0x5c2319}=_0x33686c;let _0x22b93f=_0x1c3c56[0x0]['end']['nodeBefore'];_0x5c2319&&_0x5c2319[0x0]&&!0x1===_0x5c2319[0x0]['forceValue']&&(_0x22b93f=_0x1c3c56[0x0]['start']['nodeAfter']);const _0x36989e=_0x1b8ea1['createRangeIn'](_0x22b93f);if('$graveyard'==_0x36989e['root']['rootName'])return;const _0x3ee246=Array['from'](_0x59150b['getRanges']())['map'](_0x43dec0=>_0x1c0e5b['fromRange'](_0x43dec0));_0x1b8ea1['setSelection'](_0x36989e),_0x20240a['commands']['get'](_0x28c5da)['refresh'](),_0x5c2319['push']({'forceDefaultExecution':!0x0}),_0x20240a['execute'](_0x28c5da,..._0x5c2319);const _0x305c23=_0x3ee246['filter'](_0x15c161=>'$graveyard'!=_0x15c161['root']['rootName']);_0x305c23['length']>0x0&&_0x1b8ea1['setSelection'](_0x305c23);for(const _0x29824b of _0x3ee246)_0x29824b['detach']();});};}['_getCoordsForCells'](_0x44f736){const _0x159901=this['editor']['plugins']['get']('TableUtils');let _0x4e390d=Number['MAX_SAFE_INTEGER'],_0x49ac01=Number['MIN_SAFE_INTEGER'],_0x52b562=Number['MAX_SAFE_INTEGER'],_0x4143d2=Number['MIN_SAFE_INTEGER'];for(const _0x2bd2fa of _0x44f736){if('$graveyard'==_0x2bd2fa['root']['rootName'])continue;const {row:_0x4d5276,column:_0x326c4f}=_0x159901['getCellLocation'](_0x2bd2fa),_0x37676d=_0x2bd2fa['hasAttribute']('rowspan')?_0x2bd2fa['getAttribute']('rowspan')-0x1:0x0,_0x14f90b=_0x2bd2fa['hasAttribute']('colspan')?_0x2bd2fa['getAttribute']('colspan')-0x1:0x0;_0x4e390d=_0x4d5276<_0x4e390d?_0x4d5276:_0x4e390d,_0x49ac01=_0x4d5276+_0x37676d>_0x49ac01?_0x4d5276+_0x37676d:_0x49ac01,_0x52b562=_0x326c4f<_0x52b562?_0x326c4f:_0x52b562,_0x4143d2=_0x326c4f+_0x14f90b>_0x4143d2?_0x326c4f+_0x14f90b:_0x4143d2;}return{'minRow':_0x4e390d,'maxRow':_0x49ac01,'minColumn':_0x52b562,'maxColumn':_0x4143d2};}['_setupColumnsRowsFixing'](){const _0x25cd7b=this['editor'],_0x2073ba=_0x25cd7b['plugins']['get']('TrackChangesEditing'),_0x4f6cb0=_0x25cd7b['plugins']['get']('TableUtils');_0x25cd7b['model']['document']['on']('change:data',()=>{const _0x4533e5=Array['from'](_0x25cd7b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x172c8f,data:_0x540a09}of _0x4533e5){const {group:_0x4e8174,id:_0x248390,subType:_0x1fe2b7}=_0x2073ba['_splitMarkerName'](_0x172c8f);if('suggestion'!=_0x4e8174)continue;if(null!=_0x540a09['oldRange'])continue;const _0x32b0df=_0x2073ba['getSuggestion'](_0x248390);this['_tablePostFixingSubtypes']['includes'](_0x1fe2b7)&&this['_tableSuggestions']['add'](_0x32b0df);}},{'priority':'low'});const _0x23efac=(_0x4696b6,_0x424abc)=>{let _0xec0f6=!0x1;const _0xcc803e=_0x424abc['createRangeOn'](_0x4696b6),_0x18e778=_0x4696b6['findAncestor']('table'),_0xb8baf6=_0x4f6cb0['getCellLocation'](_0x4696b6);for(const _0xf15da of this['_tableSuggestions']){const _0x286cab=_0xf15da['subType'],_0x3e67c9=_0x286cab['startsWith']('tablePaste'),_0x2f4d4e=_0x286cab['substr'](_0x3e67c9?0xa:0x5),_0x49dee6=_0x2f4d4e['toLowerCase'](),_0x54e948=_0x49dee6['substr'](0x0,0x3)+'span',_0x31fb7f='min'+_0x2f4d4e,_0x517245='max'+_0x2f4d4e;if(!_0xf15da['isInContent'])continue;if(_0x18e778!=_0xf15da['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xf15da['isIntersectingWithRange'](_0xcc803e))continue;const _0xf8095c=_0x4696b6['hasAttribute'](_0x54e948)?_0x4696b6['getAttribute'](_0x54e948)-0x1:0x0,_0x35c35b=this['_getSuggestionCoords'](_0xf15da),_0x59da56=_0x35c35b[_0x31fb7f],_0x28f5bf=_0x35c35b[_0x517245];_0x59da56<=_0xb8baf6[_0x49dee6]&&_0xb8baf6[_0x49dee6]+_0xf8095c<=_0x28f5bf&&(_0xf15da['addRange'](_0xcc803e),_0xec0f6=!0x0);}return _0xec0f6;};_0x25cd7b['model']['document']['registerPostFixer'](_0x5a1425=>{let _0x4b81a8=!0x1;for(const _0x4251a5 of _0x25cd7b['model']['document']['differ']['getChanges']())if('insert'==_0x4251a5['type']){if('tableRow'==_0x4251a5['name']){for(const _0x5f53f7 of _0x4251a5['position']['nodeAfter']['getChildren']())_0x4b81a8=_0x4b81a8||_0x23efac(_0x5f53f7,_0x5a1425);}else'tableCell'==_0x4251a5['name']&&(_0x4b81a8=_0x4b81a8||_0x23efac(_0x4251a5['position']['nodeAfter'],_0x5a1425));}return _0x4b81a8;});}['_getSuggestionCoords'](_0x5db09f){return this['_getCoordsForCells'](_0x5db09f['getRanges']()['map'](_0x16afaf=>_0x16afaf['start']['nodeAfter']));}}function be(_0x397acd){return Array['from'](new Set(_0x397acd)['values']());}class vt extends _0x5eca65{static get['requires'](){return[It];}['afterInit'](){const _0x3883ba=this['editor'],_0x1c794f=_0x3883ba['model']['document']['selection'],_0x1f2343=_0x3883ba['locale'];if(!_0x3883ba['plugins']['has']('TableEditing'))return;const _0x716b63=_0x3883ba['plugins']['get']('TrackChangesEditing'),_0xb2d273=_0x3883ba['plugins']['get']('TableUtils'),_0x1cb4ea=_0x3883ba['plugins']['get'](It);_0x1cb4ea['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x716b63['enableCommand']('mergeTableCells',()=>{const _0x3414c8=_0xb2d273['getSelectionAffectedTableCells'](_0x3883ba['model']['document']['selection']);_0x3883ba['model']['change'](()=>{_0x716b63['markMultiRangeBlockFormat'](_0x3414c8,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3883ba['commands']['get']('mergeTableCells')['on']('execute',(_0x2b4647,_0x4acb79)=>{_0x3883ba['commands']['get']('trackChanges')['value']&&(_0x4acb79['length']>0x0&&_0x4acb79[_0x4acb79['length']-0x1]&&_0x4acb79[_0x4acb79['length']-0x1]['forceDefaultExecution']||_0x716b63['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2b4647['stop']());},{'priority':'highest'});for(const _0x398264 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3c4945=_0x3883ba['commands']['get'](_0x398264);_0x716b63['enableCommand'](_0x398264,()=>{const _0x26a44f=_0x3883ba['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x197c79=>_0x197c79['is']('element','tableCell')),_0x43f87f=_0x3c4945['value'];_0x3883ba['model']['change'](()=>{_0x716b63['markMultiRangeBlockFormat']([_0x26a44f,_0x43f87f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x339769 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x46e57d=_0x3883ba['commands']['get'](_0x339769);_0x716b63['enableCommand'](_0x339769,()=>{const _0xcefeda=_0xb2d273['getSelectionAffectedTableCells'](_0x3883ba['model']['document']['selection'])[0x0],_0x3bfb60=_0xcefeda['findAncestor']('table'),{column:_0x141c6e,row:_0x5b9c39}=_0xb2d273['getCellLocation'](_0xcefeda);let _0x5acfdf=[];if('horizontally'==_0x46e57d['direction']){const _0x2260ee=_0xb2d273['createTableWalker'](_0x3bfb60,{'startRow':_0x5b9c39,'endRow':_0x5b9c39,'includeAllSlots':!0x0});_0x5acfdf=Array['from'](_0x2260ee)['map'](_0x5917dd=>_0x5917dd['cell']);}else{const _0x56f183=_0xb2d273['createTableWalker'](_0x3bfb60,{'column':_0x141c6e,'includeAllSlots':!0x0});_0x5acfdf=Array['from'](_0x56f183)['map'](_0x538e7b=>_0x538e7b['cell']);}_0x3883ba['model']['change'](_0x576b1a=>{_0x716b63['markBlockFormat'](_0x576b1a['createRangeOn'](_0xcefeda),{'commandName':_0x339769,'commandParams':[]},_0x5acfdf,_0x339769);});});}_0x716b63['descriptionFactory']['registerDescriptionCallback'](_0x2709ba=>{if('formatBlock'!=_0x2709ba['type']&&'formatInline'!=_0x2709ba['type'])return;const {data:_0x1e7a9d}=_0x2709ba;return _0x1e7a9d&&'mergeTableCells'==_0x1e7a9d['commandName']?{'type':'format','content':o(_0x1f2343,'*Merge\x20cells*')}:void 0x0;}),_0x716b63['descriptionFactory']['registerDescriptionCallback'](_0x1b8305=>{if('formatBlock'!=_0x1b8305['type']&&'formatInline'!=_0x1b8305['type'])return;const {data:_0x2de3b1}=_0x1b8305;return _0x2de3b1?'splitTableCellVertically'==_0x2de3b1['commandName']?{'type':'format','content':o(_0x1f2343,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2de3b1['commandName']?{'type':'format','content':o(_0x1f2343,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1c388e=_0x1cb4ea['_acceptFormatSuggestionCallbackFactory']();for(const _0x3f49fc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x716b63['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f49fc,'accept',_0x1c388e);for(const _0x311ecb of['splitTableCellVertically','splitTableCellHorizontally'])_0x716b63['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x311ecb,'accept',_0x1c388e);_0x716b63['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x13e284=>{_0x3883ba['model']['change'](_0x2ef067=>{const _0x43fa3c=Array['from'](_0x1c794f['getRanges']())['map'](_0x331767=>_0x1c0e5b['fromRange'](_0x331767));_0x2ef067['setSelection'](_0x13e284),_0x3883ba['commands']['get']('mergeTableCells')['refresh'](),_0x3883ba['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xf37f69=_0x43fa3c['filter'](_0x3d93b2=>'$graveyard'!=_0x3d93b2['root']['rootName']);_0xf37f69['length']>0x0&&_0x2ef067['setSelection'](_0xf37f69);for(const _0x364784 of _0x43fa3c)_0x364784['detach']();});});for(const _0xacd2d0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2e3bd8=_0x3883ba['commands']['get'](_0xacd2d0);_0x2e3bd8['on']('set:isEnabled',(_0x38988b,_0x45d02b,_0x3144b5)=>{if(_0x3144b5){const _0x2a8c8b=_0x3883ba['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x13385e=>_0x13385e['is']('element','tableCell'));this['_areMergableCells'](_0x2e3bd8['value'],_0x2a8c8b)||(_0x38988b['return']=!0x1,_0x38988b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x92f122=this['editor']['commands']['get']('mergeTableCells'),_0x13a010=this['editor']['plugins']['get']('TableUtils');if(!_0x92f122['isEnabled'])return!0x1;const _0x1c0506=_0x13a010['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5b7056 of _0x1c0506)for(const _0x522805 of _0x1c0506)if(_0x5b7056!=_0x522805&&!this['_areMergableCells'](_0x5b7056,_0x522805))return!0x1;return!0x0;}['_areMergableCells'](_0x1ae0d3,_0x2a2027){const _0x54cb73=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfb636d=this['editor']['model']['createRangeOn'](_0x1ae0d3),_0x3fadd9=this['editor']['model']['createRangeOn'](_0x2a2027),_0x3c78f9=new Set(),_0x1eb45b=new Set();for(const _0x3c7a6d of _0x54cb73['getSuggestions']())if(('insertion'==_0x3c7a6d['type']||'deletion'==_0x3c7a6d['type']||'mergeTableCells'==_0x3c7a6d['subType'])&&_0x3c7a6d['isInContent']){for(const _0x4e1986 of _0x3c7a6d['getRanges']())_0x4e1986['containsRange'](_0xfb636d,!0x0)&&_0x3c78f9['add'](_0x3c7a6d['type']+':'+_0x3c7a6d['author']['id']),_0x4e1986['containsRange'](_0x3fadd9,!0x0)&&_0x1eb45b['add'](_0x3c7a6d['type']+':'+_0x3c7a6d['author']['id']);}if(_0x3c78f9['size']!=_0x1eb45b['size'])return!0x1;for(const _0x182fbd of _0x3c78f9)if(!_0x1eb45b['has'](_0x182fbd))return!0x1;return!0x0;}}class Ct extends _0x5eca65{static get['requires'](){return[It];}['afterInit'](){const _0x257c4e=this['editor'];if(!_0x257c4e['plugins']['has']('TableEditing'))return;const _0x366de5=_0x257c4e['locale'],_0x23fc11=_0x257c4e['plugins']['get']('TrackChangesEditing');_0x23fc11['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x23fc11['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x23fc11['registerBlockAttribute']('headingRows'),_0x23fc11['registerBlockAttribute']('headingColumns'),_0x23fc11['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x366de5,'FORMAT_HEADER_ROW')),_0x23fc11['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x366de5,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x421c68=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55ca7b=this['editor']['plugins']['get']('TableUtils'),_0x523401=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x31ecf3({showActiveMarker:_0x569d6d=!0x0,setDataAttribute:_0x337030=!0x0}={}){return(_0x5e1ae8,_0x599b61,_0xb41fe2)=>{const {type:_0x55618d,id:_0xb932f0}=_0x421c68['_splitMarkerName'](_0x599b61['markerName']),_0x6b4f75=_0x421c68['getSuggestion'](_0xb932f0),_0x457ba2=_0x6b4f75['data'];if('formatBlock'!=_0x6b4f75['type']||!_0x457ba2||'setTableColumnHeader'!=_0x457ba2['commandName'])return;if(_0x599b61['item'])return void _0x5e1ae8['stop']();if(!_0xb41fe2['consumable']['consume'](_0x599b61['markerRange'],_0x5e1ae8['name']))return;const _0x6db66b=_0x599b61['markerRange']['start']['nodeAfter'],_0x3a0050=_0x599b61['markerRange']['end']['nodeBefore'],_0x59baeb=_0x6db66b['parent']['parent'],{column:_0x90d9ca}=_0x55ca7b['getCellLocation'](_0x6db66b),{column:_0x4f90b5}=_0x55ca7b['getCellLocation'](_0x3a0050);for(let _0x377e30=_0x90d9ca;_0x377e30<=_0x4f90b5;_0x377e30++){const _0x191703=_0x55ca7b['createTableWalker'](_0x59baeb,{'column':_0x377e30,'includeAllSlots':!0x1});for(const _0x55659f of _0x191703){const _0x574dcd=_0x55659f['cell'],_0x384667=_0xb41fe2['mapper']['toViewElement'](_0x574dcd);_0xb41fe2['writer']['addClass']('ck-suggestion-marker-'+_0x55618d,_0x384667),_0x337030&&_0xb41fe2['writer']['setAttribute']('data-suggestion',_0xb932f0,_0x384667),_0xb41fe2['mapper']['bindElementToMarker'](_0x384667,_0x599b61['markerName']),_0x569d6d&&(_0x421c68['activeMarkers']['includes'](_0x599b61['markerName'])?_0xb41fe2['writer']['addClass']('ck-suggestion-marker--active',_0x384667):_0xb41fe2['writer']['removeClass']('ck-suggestion-marker--active',_0x384667));}}};}_0x421c68['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x523401),_0x421c68['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x523401),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x31ecf3(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4d8a24,_0x230e79,_0x2d91f8)=>{_0x2d91f8['options']['showSuggestionHighlights']&&_0x31ecf3({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4d8a24,_0x230e79,_0x2d91f8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x344ce9,_0x374bee,_0x12a6fd)=>{const {type:_0x53ef08,id:_0x3fc9d1}=_0x421c68['_splitMarkerName'](_0x374bee['markerName']),_0x446850=_0x421c68['getSuggestion'](_0x3fc9d1),_0x652630=_0x446850['data'];if('formatBlock'!=_0x446850['type']||!_0x652630||'setTableColumnHeader'!=_0x652630['commandName'])return;const _0x49797d=_0x12a6fd['mapper']['markerNameToElements'](_0x374bee['markerName']);if(_0x49797d){for(const _0x28b3b1 of _0x49797d)_0x12a6fd['writer']['removeClass']('ck-suggestion-marker-'+_0x53ef08,_0x28b3b1),_0x12a6fd['writer']['removeClass']('ck-suggestion-marker--active',_0x28b3b1),_0x12a6fd['writer']['removeAttribute']('data-suggestion',_0x28b3b1),_0x12a6fd['mapper']['unbindElementFromMarkerName'](_0x28b3b1,_0x374bee['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f4c74=this['editor'],_0x532888=_0x1f4c74['locale'];function _0x16f075(_0x3d79e8){return{'type':'format','content':o(_0x532888,'*Format:*\x20%0',_0x3d79e8)};}_0x1f4c74['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2aed10=>{if('formatBlock'!=_0x2aed10['type'])return;const {data:_0x4e9325}=_0x2aed10;if(_0x4e9325){if('setTableRowHeader'==_0x4e9325['commandName']){const _0x392221=_0x4e9325['commandParams'][0x0]['forceValue'];return _0x16f075(o(_0x532888,_0x392221?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4e9325['commandName']){const _0x35904d=_0x4e9325['commandParams'][0x0]['forceValue'];return _0x16f075(o(_0x532888,_0x35904d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x365164=>[_0x365164,null]));class _t extends _0x5eca65{static get['requires'](){return[It];}['afterInit'](){const _0x11ee4d=this['editor'];if(!_0x11ee4d['plugins']['has']('TableClipboard'))return;const _0x29ee89=_0x11ee4d['plugins']['get']('TrackChangesEditing'),_0x4b3a92=_0x11ee4d['plugins']['get']('TableUtils'),_0x43b45f=_0x11ee4d['plugins']['get'](It),_0x28a5c7=_0x11ee4d['plugins']['get']('TableClipboard');_0x43b45f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x11ee4d['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x11ee4d['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5d4c50=null;_0x11ee4d['model']['on']('insertContent',(_0x5707fb,_0x184bd4)=>{const [_0x1e3111,_0x173359]=_0x184bd4,_0x294564=_0x184bd4[_0x184bd4['length']-0x1];_0x294564&&_0x294564['forceDefaultExecution']||_0x29ee89['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x18afc1,_0x363543,_0x138608,_0x5770c8,_0x32552e){if(_0x363543&&!_0x363543['is']('documentSelection'))return!0x1;const _0x143f63=_0x32552e['getTableIfOnlyTableInContent'](_0x18afc1,_0x138608);if(!_0x143f63||!Re(_0x143f63,void 0x0,_0x5770c8))return!0x1;const _0x54c331=_0x5770c8['getSelectionAffectedTableCells'](_0x138608['document']['selection']);if(!_0x54c331['length'])return!0x1;const _0x2403e3=_0x54c331[0x0]['findAncestor']('table'),_0x422282=_0x5770c8['getRowIndexes'](_0x54c331),_0xabbc05=_0x5770c8['getColumnIndexes'](_0x54c331),_0x4a6797={'startRow':_0x422282['first'],'endRow':_0x422282['last'],'startColumn':_0xabbc05['first'],'endColumn':_0xabbc05['last']};return 0x1==_0x54c331['length']&&(_0x4a6797['endRow']+=_0x5770c8['getRows'](_0x143f63)-0x1,_0x4a6797['endColumn']+=_0x5770c8['getColumns'](_0x143f63)-0x1),Re(_0x2403e3,_0x4a6797,_0x5770c8);}(_0x1e3111,_0x173359,_0x11ee4d['model'],_0x4b3a92,_0x28a5c7)&&(_0x5707fb['stop'](),_0x5d4c50={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x11ee4d['model']['change'](()=>{_0x11ee4d['model']['insertContent'](_0x184bd4[0x0],_0x184bd4[0x1],_0x184bd4[0x2],{'forceDefaultExecution':!0x0});const _0x489782=_0x3529ea(),{rowInsertionRanges:_0x1ca372,columnInsertionRanges:_0x111044,insertionRanges:_0x41ae95,deletionRanges:_0x4481d9,cells:_0x4d6adc}=_0x5d4c50;_0x1ca372['length']&&_0x29ee89['markMultiRangeInsertion'](_0x1ca372,'tablePasteRow',{'tablePasteChainId':_0x489782}),_0x111044['length']&&_0x29ee89['markMultiRangeInsertion'](_0x111044,'tablePasteColumn',{'tablePasteChainId':_0x489782}),_0x41ae95['length']&&(_0x29ee89['markMultiRangeInsertion'](_0x41ae95,'tablePaste',{'tablePasteChainId':_0x489782,'skipNestingCheck':!0x0}),_0x41ae95['forEach'](_0x443ac7=>_0x443ac7['detach']?.())),_0x4481d9['length']&&(_0x29ee89['markMultiRangeDeletion'](_0x4481d9,'tablePaste',{'tablePasteChainId':_0x489782,'skipNestingCheck':!0x0}),_0x4481d9['forEach'](_0x5bc354=>_0x5bc354['detach']?.()));const _0x16be6d=_0x29ee89['markMultiRangeBlockFormat'](_0x4d6adc['map'](({element:_0x14ff6d})=>_0x14ff6d),{'formatGroupId':_0x3529ea()},[],'tablePasteCell',{'tablePasteChainId':_0x489782});if(_0x16be6d){const _0x21bfe4=_0x16be6d['getMarkers'](),_0x465e1d=[];for(const {element:_0xcfe854,attributes:_0xe23bd3}of _0x4d6adc){if(!_0xe23bd3)continue;const _0x4ada99=_0x11ee4d['model']['createRangeOn'](_0xcfe854),_0x3d188b=_0x21bfe4['find'](_0x450ba1=>_0x450ba1['getRange']()['isEqual'](_0x4ada99));_0x3d188b&&_0x465e1d['push']([_0x3d188b['name'],_0xe23bd3]);}_0x465e1d['length']&&_0x16be6d['setAttribute']('markerAttributes',Object['fromEntries'](_0x465e1d));}_0x5d4c50=null;}));},{'priority':_0x273d74['high']+0xa}),_0x11ee4d['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xbbd690,_0x2c7e2f)=>{const [_0x3272d9,_0x539392,,_0x59d45a]=_0x2c7e2f;if(!_0x5d4c50)return;_0xbbd690['stop']();const _0x44f1f3=_0x3272d9['cell'],_0xe9429e=_0x539392,_0x33bd97=ke(_0x44f1f3),_0x2415d1=ke(_0xe9429e);_0xbbd690['return']=_0x44f1f3;let _0x1db141=null,_0x4dc2c7=null;if(_0x2415d1||_0x33bd97){if(_0x33bd97&&!_0x2415d1){_0x59d45a['remove'](_0x44f1f3['getChild'](0x0));for(const _0x4773c8 of Array['from'](_0xe9429e['getChildren']()))_0x59d45a['insert'](_0x4773c8,_0x44f1f3,'end');const _0x13c778=_0x5d4c50['rowInsertionIndexes']['includes'](_0x3272d9['row']),_0x12f4ef=_0x5d4c50['columnInsertionIndexes']['includes'](_0x3272d9['column']);_0x13c778||_0x12f4ef||(_0x1db141=_0x1c0e5b['fromRange'](_0x59d45a['createRangeIn'](_0x44f1f3)));}else _0x2415d1&&!_0x33bd97&&(_0x4dc2c7=_0x59d45a['createRangeIn'](_0x44f1f3));}else{const _0x50e80b=_0x59d45a['createElement']('tableCellSuggestion'),_0x44d191=_0x59d45a['createElement']('tableCellSuggestion');_0x59d45a['wrap'](_0x59d45a['createRangeIn'](_0x44f1f3),_0x44d191),_0x59d45a['insert'](_0x50e80b,_0x44f1f3,0x0);for(const _0xa288e7 of Array['from'](_0xe9429e['getChildren']()))_0x59d45a['insert'](_0xa288e7,_0x50e80b,'end');_0x1db141=_0x1c0e5b['fromRange'](_0x59d45a['createRangeOn'](_0x50e80b)),_0x4dc2c7=_0x1c0e5b['fromRange'](_0x59d45a['createRangeOn'](_0x44d191));}const _0x19153e=Array['from'](_0xe9429e['getAttributes']())['filter'](([_0x24d0ba])=>Pe['includes'](_0x24d0ba));_0x5d4c50['cells']['push']({'element':_0x44f1f3,'attributes':_0x19153e['length']?Object['fromEntries'](_0x19153e):null}),_0x1db141&&_0x5d4c50['insertionRanges']['push'](_0x1db141),_0x4dc2c7&&_0x5d4c50['deletionRanges']['push'](_0x4dc2c7);},{'priority':'high'}),_0x4b3a92['on']('insertColumns',(_0x1b21a0,_0x44b197)=>{const [_0x1f15bc,_0x5539f4={}]=_0x44b197;if(!_0x5d4c50)return;const _0x42b160=_0x5539f4['at']||0x0,_0x5d3094=_0x5539f4['columns']||0x1;_0x5d4c50['columnInsertionIndexes']=new Array(_0x5d3094)['fill'](_0x42b160)['map']((_0x5d39e1,_0x58d1e3)=>_0x5d39e1+_0x58d1e3);for(const {cell:_0x4d9764}of _0x4b3a92['createTableWalker'](_0x1f15bc,{'startColumn':_0x42b160,'endColumn':_0x42b160+_0x5d3094-0x1}))_0x5d4c50['columnInsertionRanges']['push'](_0x11ee4d['model']['createRangeOn'](_0x4d9764));},{'priority':'low'}),_0x4b3a92['on']('insertRows',(_0x4769e6,_0x405638)=>{const [_0xbceb9e,_0x44f975={}]=_0x405638;if(!_0x5d4c50)return;const _0x19e0b4=_0x44f975['at']||0x0,_0x3c16cb=_0x44f975['rows']||0x1;_0x5d4c50['rowInsertionIndexes']=new Array(_0x3c16cb)['fill'](_0x19e0b4)['map']((_0x4567b1,_0x470b07)=>_0x4567b1+_0x470b07);for(const {cell:_0x439030}of _0x4b3a92['createTableWalker'](_0xbceb9e,{'startRow':_0x19e0b4,'endRow':_0x19e0b4+_0x3c16cb-0x1}))_0x5d4c50['rowInsertionRanges']['push'](_0x11ee4d['model']['createRangeOn'](_0x439030));},{'priority':'low'}),_0x29ee89['descriptionFactory']['registerDescriptionCallback'](_0x324220=>{if(_0x324220['subType']&&_0x324220['subType']['startsWith']('tablePaste'))return _0x324220['previous']?{}:{'type':'insertion','content':o(_0x11ee4d['locale'],'*Replace\x20table\x20cells*')};});const _0x5676be=()=>!0x1;for(const _0x155956 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x29ee89['_suggestionFactory']['registerCustomCallback']('insertion',_0x155956,'join',_0x5676be),_0x29ee89['_suggestionFactory']['registerCustomCallback']('deletion',_0x155956,'join',_0x5676be),_0x29ee89['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x155956,'join',_0x5676be);_0x29ee89['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5676be),_0x29ee89['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xb9ca4f,_0xd5609d,_0x1c0147)=>{const _0x4f644e=_0xb9ca4f['map'](_0x1d8571=>_0x1d8571['getContainedElement']())['filter'](_0x5c26a7=>_0x5c26a7),_0x276d25=new Map(_0x4f644e['map'](_0x21f434=>[_0x21f434,null]));if(_0x5d4c50){for(const {element:_0x2cb4e1,attributes:_0x14d579}of _0x5d4c50['cells'])_0x14d579&&_0x276d25['set'](_0x2cb4e1,_0x14d579);}else{if(_0x1c0147&&_0x1c0147['markerAttributes'])for(const [_0x3a2e01,_0x1ee9bf]of Object['entries'](_0x1c0147['markerAttributes'])){const _0x511945=_0x11ee4d['model']['markers']['get'](_0x3a2e01),_0x377e04=_0x511945?_0x511945['getRange']()['getContainedElement']():null;_0x377e04&&_0x276d25['set'](_0x377e04,_0x1ee9bf);}}_0x11ee4d['model']['change'](_0xf932cc=>{for(const [_0x3c55da,_0x25ce00]of _0x276d25)_0xf932cc['setAttributes']({...we,..._0x25ce00},_0x3c55da);});});const _0xf43856=(_0x4dd803,_0x40f359)=>{_0x29ee89['_suggestionFactory']['registerCustomCallback'](_0x4dd803,'tablePaste',_0x40f359,(_0x4379f2,_0x58174b,_0x28640e)=>{_0x11ee4d['model']['change'](_0x30dac2=>{const _0x3cf5cb=[];for(const _0x39b358 of _0x4379f2){const _0x239f19=_0x39b358['start']['nodeAfter'];_0x239f19['is']('element','tableCellSuggestion')&&_0x3cf5cb['push'](_0x239f19);}_0x29ee89['_suggestionFactory']['getSuggestionCallback'](_0x4dd803,null,_0x40f359)(_0x4379f2,_0x58174b,_0x28640e);for(const _0x1dca8e of _0x3cf5cb)'$graveyard'!=_0x1dca8e['root']['rootName']&&_0x30dac2['unwrap'](_0x1dca8e);});});};_0xf43856('insertion','accept'),_0xf43856('insertion','discard'),_0xf43856('deletion','accept'),_0xf43856('deletion','discard'),_0x29ee89['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x18dbbd=>{const _0x3d7f21=_0x18dbbd['map'](_0x2414bc=>_0x2414bc['getContainedElement']()),_0x11d131=_0x3d7f21[0x0]['findAncestor']('table'),{minRow:_0x507e79,maxRow:_0x7450a4}=_0x43b45f['_getCoordsForCells'](_0x3d7f21);_0x4b3a92['removeRows'](_0x11d131,{'at':_0x507e79,'rows':_0x7450a4-_0x507e79+0x1});}),_0x29ee89['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x320406=>{const _0x2b9d2e=_0x320406['map'](_0x758d97=>_0x758d97['getContainedElement']()),_0x5e2077=_0x2b9d2e[0x0]['findAncestor']('table'),{minColumn:_0x5d8be2,maxColumn:_0x3323e0}=_0x43b45f['_getCoordsForCells'](_0x2b9d2e);_0x4b3a92['removeColumns'](_0x5e2077,{'at':_0x5d8be2,'columns':_0x3323e0-_0x5d8be2+0x1});});const _0x128028=(_0xde3053,_0x4bad44)=>{if(!_0x4bad44['subType']||!_0x4bad44['subType']['startsWith']('tablePaste'))return;const _0x287f13=_0x4bad44['attributes']['tablePasteChainId'],_0x107c01=_0x29ee89['getSuggestions']()['filter'](_0x524b1=>_0x524b1['isInContent']&&_0x524b1['attributes']&&_0x524b1['attributes']['tablePasteChainId']==_0x287f13);_0x107c01['length']&&_0x4bad44['getAllAdjacentSuggestions']()['length']!=_0x107c01['length']&&_0x107c01['reduce']((_0x3b107d,_0xa3814f)=>(_0x3b107d['next']=_0xa3814f,_0xa3814f['previous']=_0x3b107d,_0xa3814f));};function _0x507e92(_0x356c73,_0x430cce=!0x0){const {id:_0x204cb0,authorId:_0x3160b1}=_0x29ee89['_splitMarkerName'](_0x356c73['markerName']),_0x398dcf=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x417b53=_0x29ee89['activeMarkers']['includes'](_0x356c73['markerName']);return _0x417b53&&_0x398dcf['push']('ck-suggestion-marker--active'),{'classes':_0x398dcf,'attributes':{'data-suggestion':_0x204cb0,'data-author-id':_0x3160b1},'priority':_0x417b53&&_0x430cce?0xbc2:0xbb8};}_0x29ee89['on']('suggestionLoaded',_0x128028,{'priority':'high'}),_0x29ee89['on']('suggestionUnloaded',_0x128028,{'priority':'high'}),_0x11ee4d['model']['document']['registerPostFixer'](()=>{let _0x28d7ad=!0x1;const _0x2a862a=Array['from'](_0x11ee4d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47401e,data:_0x1a8345}of _0x2a862a){const {group:_0x56bdbe,type:_0x332e4e,id:_0x3cf348}=_0x29ee89['_splitMarkerName'](_0x47401e);if('suggestion'!=_0x56bdbe||'deletion'!=_0x332e4e||_0x1a8345['oldRange'])continue;if(!_0x29ee89['hasSuggestion'](_0x3cf348))continue;const _0x1232e4=_0x29ee89['getSuggestion'](_0x3cf348)['getRanges'](),_0x26152d=_0x11ee4d['plugins']['get']('Users')['me'];for(const _0x2549bf of _0x29ee89['getSuggestions']()){if(!_0x2549bf['isInContent']||_0x2549bf['author']!=_0x26152d)continue;if('formatBlock'!=_0x2549bf['type']||'tablePasteCell'!=_0x2549bf['subType'])continue;if(_0x2549bf['getRanges']()['every'](_0x2f4931=>_0x1232e4['some'](_0x59bdab=>_0x59bdab['containsRange'](_0x2f4931,!0x0)))){for(const _0x3e8ed5 of _0x2549bf['getAllAdjacentSuggestions']())_0x3e8ed5['isInContent']&&(_0x3e8ed5['discard'](),_0x28d7ad=!0x0);}}}return _0x28d7ad;}),_0x11ee4d['model']['document']['registerPostFixer'](_0x17f8fd=>{const _0x2f831d=_0x11ee4d['commands']['get']('redo');if(!_0x2f831d||!_0x2f831d['_createdBatches']['has'](_0x17f8fd['batch']))return!0x1;let _0x52f711=!0x1;const _0x255dda=_0x11ee4d['plugins']['get']('Users')['me'],_0x4d41b4=_0x11ee4d['model']['document']['differ']['getChanges'](),_0x2f30f0=Array['from'](_0x11ee4d['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x195c77,data:_0x4e6855})=>{const {group:_0x424613,subType:_0x2f967b,authorId:_0x5eb844}=_0x29ee89['_splitMarkerName'](_0x195c77);return'suggestion'==_0x424613&&'tablePaste'==_0x2f967b&&_0x5eb844==_0x255dda['id']&&!_0x4e6855['oldRange'];});for(const _0x2f00b8 of _0x4d41b4){if('insert'!=_0x2f00b8['type']||'tableCellSuggestion'!=_0x2f00b8['name']||0x1!=_0x2f00b8['length'])continue;const _0x23490c=_0x17f8fd['createRange'](_0x2f00b8['position'],_0x2f00b8['position']['getShiftedBy'](0x1));if(!_0x2f30f0['find'](({data:_0x3bba1e})=>_0x3bba1e['newRange']['isEqual'](_0x23490c))){for(const {name:_0x12040a,data:_0x29f8ab}of _0x2f30f0)if(_0x23490c['containsRange'](_0x29f8ab['newRange'])){_0x17f8fd['updateMarker'](_0x12040a,{'range':_0x23490c}),_0x52f711=!0x0;break;}}}return _0x52f711;}),_0x11ee4d['model']['document']['registerPostFixer'](_0x5d567f=>{let _0x369d32=!0x1;const _0x5c5433=_0x11ee4d['plugins']['get']('Users')['me'],_0x214cfb=_0x29ee89['getSuggestions']()['filter'](_0x366a40=>_0x366a40['isInContent']&&_0x366a40['author']==_0x5c5433),_0x12d476=new Set(),_0x458bb6=new Set();for(const _0x546ac9 of _0x214cfb)if('tablePaste'==_0x546ac9['subType'])for(const _0x2c06d1 of _0x546ac9['getMarkers']()){const _0x360423=_0x2c06d1['getRange']()['getContainedElement']();if(_0x360423){if(_0x360423['is']('element','tableCellSuggestion')&&ke(_0x360423)){_0x546ac9['removeMarker'](_0x2c06d1['name']),_0x12d476['add'](_0x360423),_0x369d32=!0x0;const _0x1e72a8=_0x360423['nextSibling'],_0x4ba90d=_0x360423['previousSibling'],_0x59d8a5=_0x1e72a8&&_0x1e72a8['is']('element','tableCellSuggestion'),_0x53bf86=_0x4ba90d&&_0x4ba90d['is']('element','tableCellSuggestion');_0x59d8a5&&!_0x12d476['has'](_0x1e72a8)&&_0x458bb6['add'](_0x1e72a8),_0x53bf86&&!_0x12d476['has'](_0x4ba90d)&&_0x458bb6['add'](_0x4ba90d);}else _0x360423['is']('element','paragraph')&&_0x360423['isEmpty']&&(_0x546ac9['removeMarker'](_0x2c06d1['name']),_0x369d32=!0x0);}}else{if('tablePasteCell'==_0x546ac9['subType']){if(!_0x546ac9['attributes']||!_0x546ac9['attributes']['tablePasteChainId'])continue;const _0x47d5b8=_0x546ac9['attributes']['markerAttributes'];if(_0x47d5b8&&Object['keys'](_0x47d5b8)['length'])continue;const _0x3e6aa0=_0x546ac9['attributes']['tablePasteChainId'];let _0x7e5add=!0x0,_0x49c2ec=!0x0;for(const _0xb33b4e of _0x214cfb)if(_0xb33b4e['subType']&&_0xb33b4e['subType']['startsWith']('tablePaste')){if(!_0xb33b4e['attributes']['tablePasteChainId']){_0x49c2ec=!0x1;break;}if(_0xb33b4e['id']!=_0x546ac9['id']&&_0xb33b4e['attributes']['tablePasteChainId']==_0x3e6aa0){_0x7e5add=!0x1;break;}}_0x49c2ec&&_0x7e5add&&(_0x546ac9['removeMarkers'](),_0x369d32=!0x0);}}for(const _0x165eaa of _0x12d476)_0x5d567f['remove'](_0x165eaa);for(const _0x2a7cb5 of _0x458bb6)_0x5d567f['unwrap'](_0x2a7cb5);return _0x369d32;}),_0x11ee4d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x45cb90=>_0x507e92(_0x45cb90),'converterPriority':'high'}),_0x11ee4d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5aaf31,_0x17b604)=>_0x17b604['options']['showSuggestionHighlights']?_0x507e92(_0x5aaf31,!0x1):null,'converterPriority':'high'});const _0x4da552=_0x11ee4d['editing']['view'];this['listenTo'](_0x4da552['document'],'clipboardOutput',(_0x3c602f,_0x46ec06)=>{const _0x285274=[];for(const _0x2616fc of _0x4da552['createRangeIn'](_0x46ec06['content'])['getItems']())_0x2616fc['is']('element','suggestion-td')&&_0x285274['push'](_0x2616fc);_0x4da552['change'](_0x4fa109=>{for(const _0x4695da of _0x285274)_0x4fa109['move'](_0x4fa109['createRangeIn'](_0x4695da),_0x4fa109['createPositionBefore'](_0x4695da)),_0x4fa109['remove'](_0x4695da);});});}}function ke(_0x17abdd){if(_0x17abdd['isEmpty'])return!0x0;const _0x2a9069=_0x17abdd['getChild'](0x0);return _0x2a9069['is']('element','paragraph')&&_0x2a9069['isEmpty'];}function Re(_0x9f84f4,_0x5821f6={},_0x5e8037){for(const {isAnchor:_0x420543,cellHeight:_0x3b3961,cellWidth:_0x128614}of _0x5e8037['createTableWalker'](_0x9f84f4,{'includeAllSlots':!0x0,..._0x5821f6}))if(!_0x420543||0x1!=_0x3b3961||0x1!=_0x128614)return!0x1;return!0x0;}class Nt extends _0x5eca65{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2c318d=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c318d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2c318d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2c318d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2c318d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2c318d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2c318d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x493358,_0x387fd0){const _0x1ca74b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a40f7=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x438f66=_0x387fd0['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x20ef98=_0x1a40f7['getColumnGroupElement'](_0x438f66);let _0x2b6375=_0x20ef98?_0x1a40f7['getTableColumnsWidths'](_0x20ef98):null,_0x18a779=_0x438f66['getAttribute']('tableWidth')||null;const _0x20acbc=_0x387fd0['tableWidth']||_0x18a779,_0x444759=_0x387fd0['columnWidths']||_0x2b6375,_0x26c911=this['editor']['plugins']['get']('Users')['me'];for(const _0x433e3f of _0x1ca74b['getSuggestions']()){const _0x41ea2f=_0x433e3f['getContainedElement']();if('resizeTable'===_0x433e3f['subType']&&_0x41ea2f===_0x438f66){_0x433e3f['author']!==_0x26c911&&_0x433e3f['discard']();const _0xe72ba7=_0x433e3f['data']['commandParams'];_0x18a779=_0xe72ba7[0x0]['tableWidth'],_0x2b6375=_0xe72ba7[0x0]['columnWidths'];break;}}_0x493358({'table':_0x438f66,'tableWidth':_0x20acbc,'columnWidths':_0x444759}),_0x1ca74b['markBlockFormat'](_0x438f66,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x18a779,'columnWidths':_0x2b6375}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3e2bc2){if('formatBlock'!=_0x3e2bc2['type']&&'formatInline'!=_0x3e2bc2['type'])return;const {data:_0x3f0229}=_0x3e2bc2;if(_0x3f0229&&'resizeTable'===_0x3f0229['formatGroupId']){const _0x395e9a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x395e9a)};}}}class Dt extends _0x5eca65{['afterInit'](){const _0x2ba162=this['editor'];_0x2ba162['plugins']['has']('Template')&&_0x2ba162['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x5eca65{['afterInit'](){const _0x5eab96=this['editor'];if(!_0x5eab96['commands']['get']('insertTableOfContents'))return;_0x5eab96['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x51e7f1=_0x5eab96['plugins']['get']('TrackChangesEditing'),_0x2b30f2=_0x5eab96['locale'];_0x51e7f1['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2cf06b=>o(_0x2b30f2,'ELEMENT_TABLE_OF_CONTENTS',_0x2cf06b));}}class $t extends _0x5eca65{['afterInit'](){const _0x29c958=this['editor'];if(!_0x29c958['plugins']['has']('Title'))return;const _0x2dd4a1=_0x29c958['plugins']['get']('TrackChangesEditing');_0x2dd4a1['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x29c958['locale'],'ELEMENT_TITLE')),_0x29c958['model']['document']['registerPostFixer'](_0x18741d=>{let _0x23f1f4=!0x1;const _0x2b6596=Array['from'](_0x29c958['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x84cf4d,data:_0x17bf43}of _0x2b6596){const {group:_0x2f37eb}=_0x2dd4a1['_splitMarkerName'](_0x84cf4d);if('suggestion'!==_0x2f37eb||!_0x17bf43['newRange'])continue;const _0x32cc75=_0x17bf43['newRange'],_0x21685d=_0x32cc75['end']['nodeBefore'];if(!_0x21685d||!_0x21685d['is']('element','title-content'))continue;if(!_0x32cc75['start']['isTouching'](_0x32cc75['end']))continue;const _0x258537=_0x29c958['model']['schema']['getNearestSelectionRange'](_0x32cc75['end'],'forward');if(_0x258537&&_0x258537['isCollapsed']){const _0x4605ce=_0x18741d['createRange'](_0x32cc75['start'],_0x258537['start']);_0x4605ce['isEqual'](_0x32cc75)||(_0x18741d['updateMarker'](_0x84cf4d,{'range':_0x4605ce}),_0x23f1f4=!0x0);}_0x23f1f4||(_0x18741d['removeMarker'](_0x84cf4d),_0x23f1f4=!0x0);}return _0x23f1f4;});}}class Bt extends _0x5eca65{['afterInit'](){const _0x5a301b=this['editor'],_0x472f9a=_0x5a301b['plugins']['get']('TrackChangesEditing');_0x5a301b['plugins']['has']('UndoEditing')&&(_0x472f9a['enableCommand']('undo'),_0x472f9a['enableCommand']('redo'));}}class xt extends _0x5eca65{static get['requires'](){return[It];}['afterInit'](){const _0x32236a=this['editor'];if(!_0x32236a['plugins']['has']('TableCaptionEditing'))return;_0x32236a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x5eca65{['tableProperties'];['tableCellProperties'];constructor(_0x38d69f){super(_0x38d69f),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 _0x4d358e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x85ea70 of this['tableProperties'])_0x4d358e['enableCommand'](_0x85ea70,(_0x4cea10,_0x35056a)=>{const _0x387d7f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x85ea70,[_0x387d7f],this['tableProperties'],'tableProperties',_0x4cea10,_0x35056a);});_0x4d358e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4d358e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4d358e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1c5c0c,_0x59d1cd)=>this['handleDiscardAction'](this['tableProperties'],_0x1c5c0c,_0x59d1cd)),_0x4d358e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xa85b08 of this['tableCellProperties'])_0x4d358e['enableCommand'](_0xa85b08,(_0x1da67c,_0x79c2a2)=>{const _0x57648f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xa85b08,_0x57648f,this['tableCellProperties'],'tableCellProperties',_0x1da67c,_0x79c2a2);});_0x4d358e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4d358e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4d358e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4c08f6,_0x4a8ebf)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4c08f6,_0x4a8ebf)),_0x4d358e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4d358e['descriptionFactory']['registerDescriptionCallback'](_0xefc87=>this['handleSuggestionDescription'](_0xefc87));}['_handlePropertyChange'](_0x40901e,_0x1c305a,_0x254aca,_0x4c8e29,_0x13ff0d,_0x540a15){const _0xe0bfe=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x540a15['batch'],()=>{for(const _0x10245b of _0x1c305a){if(this['_getSuggestion'](_0x10245b,_0x4c8e29))_0x13ff0d(_0x540a15);else{const _0x489790={};for(const _0x3ca342 of _0x254aca){const _0x155a02=_0x10245b['getAttribute'](_0x3ca342);void 0x0!==_0x155a02&&(_0x489790[_0x3ca342]=_0x155a02);}_0x13ff0d(_0x540a15),_0xe0bfe['markBlockFormat'](_0x10245b,{'commandParams':[_0x489790]},[],_0x4c8e29);}}});}['handleDiscardAction'](_0x3cca77,_0x4f595a,_0x2cac87){const _0x1dc514=_0x4f595a[0x0]['start']['nodeAfter'],_0x5e54f1=_0x2cac87['commandParams'][0x0];this['editor']['model']['change'](_0x37f6c2=>{for(const _0x3cdaa2 of _0x3cca77)void 0x0!==_0x5e54f1[_0x3cdaa2]?_0x37f6c2['setAttribute'](_0x3cdaa2,_0x5e54f1[_0x3cdaa2],_0x1dc514):_0x37f6c2['removeAttribute'](_0x3cdaa2,_0x1dc514);});}['handleSuggestionDescription'](_0x2ba8c3){if(_0x2ba8c3['data'])switch(_0x2ba8c3['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'](_0x507973,_0x571137){const _0x2babee=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5d1653 of _0x2babee['getSuggestions']({'skipNotAttached':!0x0})){const _0x9a9184=_0x5d1653['getContainedElement']();if(_0x5d1653['subType']===_0x571137&&_0x9a9184===_0x507973)return _0x5d1653;}return null;}}const m='$elementName';class p extends _0x5eca65{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x17bd53,_0x3c05f6,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(_0x18881e){function _0x96513f(_0x2d51cd){return _0x2d51cd['map'](_0x1fa47c=>String['fromCharCode'](_0x1fa47c))['join']('');}super(_0x18881e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x52bac8,_0x1c40f0,_0x2bd54f,_0x360fd8)=>{this['_model']['change'](()=>{for(const _0x3dca65 of[..._0x360fd8,..._0x2bd54f])this['_model']['markers']['has'](_0x3dca65)&&_0x18881e['editing']['reconvertMarker'](_0x3dca65);});}),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']=_0x18881e['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(),_0x18881e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x18881e['config']['get']('trackChanges.trackFormatChanges'),_0x18881e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x18881e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x18881e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x96513f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x96513f([0x34,0x30,0x34,0x38,0x31,0x38,0x33,0x36]);}['init'](){const _0x16f8cf=this['editor'],_0x2108ea=(_0x4c11f5,_0x2d836c)=>{if('attribute'!=_0x4c11f5)return'ck-suggestion-marker-'+_0x4c11f5;const _0x36e8e6=_0x2d836c['split']('|')[0x0];return this['_isBlockAttribute'](_0x36e8e6)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x16f8cf['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x33fee1=>{const {id:_0x2c3630,authorId:_0x4a468a,type:_0x57f83f,subType:_0x4210bc}=this['_splitMarkerName'](_0x33fee1['markerName']),_0x97dda4=['ck-suggestion-marker',_0x2108ea(_0x57f83f,_0x4210bc)];let _0x5316e4=0xbb8;return this['activeMarkers']['includes'](_0x33fee1['markerName'])&&(_0x97dda4['push']('ck-suggestion-marker--active'),_0x5316e4=0xbc2),'deletion'==_0x57f83f&&(_0x5316e4+=0x5),{'classes':_0x97dda4,'attributes':{'data-suggestion':_0x2c3630,'data-author-id':_0x4a468a},'priority':_0x5316e4};}}),_0x16f8cf['conversion']['for']('dataDowncast')['add'](_0xa653cc=>{_0xa653cc['on']('addMarker:suggestion',(_0x2fdfb4,_0x3963d0,_0x30d696)=>{if(!_0x30d696['options']['showSuggestionHighlights'])return;const _0x2b7f6e=_0x3963d0['item'];if(!_0x2b7f6e)return;const _0x3e8f4c=_0x30d696['mapper']['toViewElement'](_0x2b7f6e);_0x16f8cf['model']['schema']['isObject'](_0x2b7f6e)&&_0x3e8f4c&&!_0x3e8f4c['getCustomProperty']('widget')&&_0x3e8f4c['is']('containerElement')&&_0x45ff41(_0x3e8f4c,_0x30d696['writer']);},{'priority':'high'});}),_0x16f8cf['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x579cb0,_0x3991aa)=>{if(!_0x3991aa['options']['showSuggestionHighlights'])return null;const {type:_0x5cde14,subType:_0x370627}=this['_splitMarkerName'](_0x579cb0['markerName']);return{'classes':['ck-suggestion-marker',_0x2108ea(_0x5cde14,_0x370627)],'priority':0xbb8};}});const _0x35374e=({showActiveMarkers:_0x400f74=!0x0,isAttributeSuggestion:_0x3f6cdd=!0x1}={})=>(_0x25239e,_0x104b1d,_0x27e44d)=>{if(!_0x104b1d['item'])return;const {id:_0x1f6e62,authorId:_0x3d427f}=this['_splitMarkerName'](_0x104b1d['markerName']);if(_0x3f6cdd){const _0x280dfb=this['_suggestions']['get'](_0x1f6e62),_0x1237fe=this['_getAttributeKey'](_0x280dfb);if(!this['_isBlockAttribute'](_0x1237fe))return;}if(_0x104b1d['item']['is']('selection'))return void _0x27e44d['consumable']['consume'](_0x104b1d['item'],_0x25239e['name']);const _0x22559a=_0x27e44d['mapper']['toViewElement'](_0x104b1d['item']);if(_0x104b1d['item']['is']('element')&&_0x16f8cf['model']['schema']['isBlock'](_0x104b1d['item'])&&!_0x22559a['getCustomProperty']('addHighlight')){_0x27e44d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x22559a),_0x27e44d['writer']['setAttribute']('data-suggestion',_0x1f6e62,_0x22559a),_0x27e44d['writer']['setAttribute']('data-author-id',_0x3d427f,_0x22559a),_0x27e44d['mapper']['bindElementToMarker'](_0x22559a,_0x104b1d['markerName']),_0x400f74&&(this['activeMarkers']['includes'](_0x104b1d['markerName'])?_0x27e44d['writer']['addClass']('ck-suggestion-marker--active',_0x22559a):_0x27e44d['writer']['removeClass']('ck-suggestion-marker--active',_0x22559a));for(const _0x3ce9d9 of _0x16f8cf['model']['createRangeIn'](_0x104b1d['item'])['getItems']())_0x27e44d['consumable']['consume'](_0x3ce9d9,_0x25239e['name']);_0x27e44d['consumable']['consume'](_0x104b1d['item'],_0x25239e['name']);}};_0x16f8cf['conversion']['for']('dataDowncast')['add'](_0x1ccd0e=>{_0x1ccd0e['on']('addMarker:suggestion:formatBlock',(_0x2996a4,_0x56c187,_0x42721a)=>{_0x42721a['options']['showSuggestionHighlights']&&_0x35374e({'showActiveMarkers':!0x1})(_0x2996a4,_0x56c187,_0x42721a);},{'priority':'highest'});}),_0x16f8cf['conversion']['for']('dataDowncast')['add'](_0x2d85a4=>{_0x2d85a4['on']('addMarker:suggestion:attribute',(_0x12e7ae,_0x1c6528,_0x5793e1)=>{_0x5793e1['options']['showSuggestionHighlights']&&_0x35374e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x12e7ae,_0x1c6528,_0x5793e1);},{'priority':'highest'});}),_0x16f8cf['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x57ea93,_0x1bcbf5)=>_0x1bcbf5['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x57ea93['substr'](0xb)}}),_0x16f8cf['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x155808,{writer:_0x4044c2})=>{let _0x2d372d='suggestion:'+_0x155808['getAttribute']('suggestion-type')+':'+_0x155808['getAttribute']('id');return _0x155808['getAttribute']('marker-count')&&(_0x2d372d+=':'+_0x155808['getAttribute']('marker-count')),_0x4044c2['createElement']('$marker',{'data-name':_0x2d372d});}}),_0x16f8cf['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x16f8cf['conversion']['for']('editingDowncast')['add'](_0x231f13=>{_0x231f13['on']('addMarker:suggestion:formatBlock',_0x35374e(),{'priority':'high'});}),_0x16f8cf['conversion']['for']('editingDowncast')['add'](_0xe7b7d5=>{_0xe7b7d5['on']('addMarker:suggestion:attribute',_0x35374e({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x16f8cf['conversion']['for']('editingDowncast')['add'](_0x56f8d3=>{_0x56f8d3['on']('removeMarker:suggestion:formatBlock',(_0xa20732,_0x2a18a2,_0x478ee0)=>{const _0x3bf239=_0x478ee0['mapper']['markerNameToElements'](_0x2a18a2['markerName']);if(_0x3bf239){for(const _0x3a768c of _0x3bf239)_0x3a768c['getCustomProperty']('addHighlight')||(_0x478ee0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3a768c),_0x478ee0['writer']['removeAttribute']('data-suggestion',_0x3a768c),_0x478ee0['writer']['removeAttribute']('data-author-id',_0x3a768c),_0x478ee0['mapper']['unbindElementFromMarkerName'](_0x3a768c,_0x2a18a2['markerName']));}},{'priority':'high'});}),_0x16f8cf['conversion']['for']('editingDowncast')['add'](_0x4d1166=>{_0x4d1166['on']('removeMarker:suggestion:attribute',(_0x125e4f,_0x2b4835,_0x31d38d)=>{const _0x11a480=_0x31d38d['mapper']['markerNameToElements'](_0x2b4835['markerName']);if(!_0x11a480)return;const {id:_0x5c0d2e}=this['_splitMarkerName'](_0x2b4835['markerName']),_0x2406e7=this['_suggestions']['get'](_0x5c0d2e),_0x5993de=this['_getAttributeKey'](_0x2406e7);if(this['_isBlockAttribute'](_0x5993de)){for(const _0x1abc1b of _0x11a480)_0x1abc1b['getCustomProperty']('addHighlight')||(_0x31d38d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1abc1b),_0x31d38d['writer']['removeAttribute']('data-suggestion',_0x1abc1b),_0x31d38d['writer']['removeAttribute']('data-author-id',_0x1abc1b),_0x31d38d['mapper']['unbindElementFromMarkerName'](_0x1abc1b,_0x2b4835['markerName']));}},{'priority':'high'});}),_0x16f8cf['model']['document']['registerPostFixer'](_0x1ef1e1=>{let _0x5d12da=!0x1;const _0x2f8ee5=Array['from'](_0x16f8cf['model']['document']['differ']['getChangedMarkers']()),_0x38b628=new Set();for(const {name:_0x4bfa01,data:_0x5797d1}of _0x2f8ee5){const {group:_0x25d760,type:_0x56fa25,subType:_0x5adbda,id:_0x1c663c}=this['_splitMarkerName'](_0x4bfa01);if('suggestion'!==_0x25d760)continue;const _0x16c3ba=this['_suggestions']['get'](_0x1c663c);if(null!=_0x5797d1['newRange']){'formatInline'==_0x56fa25&&(_0x5d12da=_0x5d12da||Ut(_0x5797d1['newRange'],_0x4bfa01,_0x1ef1e1,_0x16f8cf['model']['schema']));const _0x3b1d84='attribute'==_0x56fa25&&this['_isBlockAttribute'](_0x5adbda['split']('|')[0x0]);if(_0x5797d1['newRange']['isCollapsed']||'$graveyard'==_0x5797d1['newRange']['root']['rootName']||'formatBlock'==_0x56fa25&&!Ft(_0x5797d1['newRange'])||_0x3b1d84&&!Ft(_0x5797d1['newRange'])||'deletion'==_0x56fa25&&!(!Vt(_0x1b4c60=_0x5797d1['newRange'])&&!function(_0x2d214a){return _0x2d214a['start']['parent']==_0x2d214a['end']['nodeBefore']&&_0x2d214a['start']['isAtEnd'];}(_0x1b4c60)))_0x1ef1e1['removeMarker'](_0x4bfa01),_0x5d12da=!0x0;else{if(!_0x16c3ba||!_0x16c3ba['isInContent'])continue;if(_0x5797d1['newRange']&&_0x5797d1['oldRange']&&_0x5797d1['newRange']['isEqual'](_0x5797d1['oldRange']))continue;_0x38b628['add'](_0x16c3ba);}}}var _0x1b4c60;return _0x38b628['size']>0x0&&(_0x5d12da=!!this['_joinWithAdjacentSuggestions'](_0x38b628)||_0x5d12da),_0x5d12da;}),_0x16f8cf['model']['document']['registerPostFixer'](_0x108115=>{let _0x52bac2=!0x1;for(const _0x3dd686 of _0x16f8cf['model']['document']['differ']['getChanges']())if('insert'==_0x3dd686['type'])for(const _0x530223 of this['_suggestions']['values']()){if(_0x530223['isMultiRange']||!_0x530223['isInContent'])continue;const _0x2b4b7b='formatBlock'==_0x530223['type'],_0x494331=this['_getAttributeKey'](_0x530223),_0x3b1908=_0x494331&&this['_isBlockAttribute'](_0x494331);if(!_0x2b4b7b&&!_0x3b1908)continue;const _0x52d633=_0x530223['getFirstRange']();if(_0x52d633['start']['parent']!=_0x52d633['end']['parent']&&!_0x52d633['end']['isAtEnd']){const _0x24dd96=_0x16f8cf['model']['createPositionAt'](_0x52d633['start']['nodeAfter'],'end'),_0x4db577=_0x16f8cf['model']['createRange'](_0x52d633['start'],_0x24dd96);_0x108115['updateMarker'](_0x530223['getFirstMarker'](),{'range':_0x4db577}),_0x52bac2=!0x0;}}return _0x52bac2;}),_0x16f8cf['model']['document']['registerPostFixer'](_0x18009b=>this['_processAttributeChanges'](_0x18009b)),_0x16f8cf['model']['document']['registerPostFixer'](_0x2213ea=>!_0x2213ea['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2213ea)),_0x16f8cf['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x16f8cf['model']['document']['on']('change:data',(_0x3ba23b,_0x35cc44)=>{if(!_0x35cc44['isLocal']||_0x35cc44['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3ad1bd=_0x16f8cf['model']['document']['differ']['getChanges']();if(0x0==_0x3ad1bd['length'])return;const _0x360c4c=[],_0x1f428f=_0x3ad1bd['filter'](_0xd3589e=>'attribute'==_0xd3589e['type']),_0x24e1c6=_0x3ad1bd['filter'](_0x223555=>'insert'==_0x223555['type']&&'$text'!=_0x223555['name']);for(const _0x4e54ab of _0x1f428f)this['_isRegisteredAttribute'](_0x4e54ab['attributeKey'])&&_0x360c4c['push']({'key':_0x4e54ab['attributeKey'],'newValue':_0x4e54ab['attributeNewValue'],'oldValue':_0x4e54ab['attributeOldValue'],'range':Pt(_0x4e54ab['range'],_0x16f8cf['model'])});for(const _0x4b4f95 of _0x24e1c6){if('rename'!=_0x4b4f95['action']&&'refresh'!=_0x4b4f95['action'])continue;const _0x2ce3ae=Lt(_0x4b4f95['position']['nodeAfter'],_0x16f8cf['model']),_0x48b51f=_0x4b4f95['before'];'rename'==_0x4b4f95['action']&&_0x360c4c['push']({'key':m,'newValue':_0x4b4f95['name'],'oldValue':_0x48b51f['name'],'range':_0x2ce3ae});for(const [_0x49c88f,_0x43ad84]of _0x48b51f['attributes']){if(!this['_isRegisteredAttribute'](_0x49c88f))continue;const _0x3559db=_0x4b4f95['attributes']['get'](_0x49c88f);_0x43ad84!==_0x3559db&&_0x360c4c['push']({'key':_0x49c88f,'newValue':_0x3559db,'oldValue':_0x43ad84,'range':_0x2ce3ae});}for(const [_0x2b4144,_0x4f25e7]of _0x4b4f95['attributes'])this['_isRegisteredAttribute'](_0x2b4144)&&(_0x48b51f['attributes']['has'](_0x2b4144)||_0x360c4c['push']({'key':_0x2b4144,'newValue':_0x4f25e7,'oldValue':null,'range':_0x2ce3ae}));}0x0!=_0x360c4c['length']&&_0x16f8cf['model']['enqueueChange'](_0x35cc44,_0x1a3958=>{const _0x351c49=_0x3529ea();for(const {range:_0x2afc77,key:_0x16668b,oldValue:_0x1e1e93,newValue:_0x80e8f1}of _0x360c4c)this['markAttributeChange'](_0x2afc77,_0x16668b,_0x1e1e93,_0x80e8f1,{'groupId':_0x351c49});this['_reduceExistingSuggestions'](_0x1a3958,_0x360c4c);});},{'priority':'lowest'}),_0x16f8cf['model']['markers']['on']('update:suggestion',(_0x559c7b,_0x11a4cc,_0x2c3e1b)=>{if(null==_0x2c3e1b){const {id:_0x33dc8e}=this['_splitMarkerName'](_0x11a4cc['name']),_0x3e77e6=this['_suggestions']['get'](_0x33dc8e);_0x3e77e6&&_0x3e77e6['addMarkerName'](_0x11a4cc['name']);}}),_0x16f8cf['model']['document']['on']('change:data',()=>{const _0x16a2c5=Array['from'](_0x16f8cf['model']['document']['differ']['getChangedMarkers']())['filter'](_0x42cd5c=>'suggestion'===this['_splitMarkerName'](_0x42cd5c['name'])['group']);if(0x0===_0x16a2c5['length'])return;_0x16a2c5['sort']((_0xdab8e5,_0x2e27ac)=>{const _0x3289df=_0xdab8e5['data']['oldRange'],_0x1cf0e9=_0x2e27ac['data']['oldRange'];return null===_0x3289df&&null===_0x1cf0e9?0x0:null===_0x3289df&&null!==_0x1cf0e9?-0x1:null!==_0x3289df&&null===_0x1cf0e9?0x1:_0x3289df['start']['isBefore'](_0x1cf0e9['start'])?-0x1:0x1;});const _0x25dd04=new Set(),_0x14eee4=new Set();for(const {name:_0x2aef2d,data:_0x72558f}of _0x16a2c5){const {id:_0x49c69e}=this['_splitMarkerName'](_0x2aef2d);if(null===_0x72558f['oldRange']){const _0x1dc3cb=this['_handleNewSuggestionMarker'](_0x2aef2d);_0x14eee4['add'](_0x1dc3cb);}else{const _0x12c170=this['_suggestions']['get'](_0x49c69e);null!==_0x72558f['newRange']||_0x12c170['isInContent']?(_0x25dd04['add'](_0x12c170['head']),_0x14eee4['add'](_0x12c170)):this['_removeSuggestion'](_0x12c170);}}_0x14eee4['size']>0x0&&this['_refreshSuggestionsChain'](_0x14eee4);for(const _0x4782c5 of _0x25dd04)this['fire']('suggestionChanged',_0x4782c5);}),_0x16f8cf['model']['on']('applyOperation',(_0x111284,_0x3c27c6)=>{const _0x2f2fe4=_0x3c27c6[0x0];if(!this['_suggestions']['size'])return;if(!_0x2f2fe4['isDocumentOperation'])return;if(_0x2f2fe4['batch']['isUndo']||!_0x2f2fe4['batch']['isLocal'])return;let _0x5985da,_0x308d8a;switch(_0x2f2fe4['type']){case'insert':_0x5985da=_0x16f8cf['model']['createPositionAt'](_0x2f2fe4['position']),_0x308d8a=_0x5985da['getShiftedBy'](_0x2f2fe4['howMany']);break;case'split':_0x5985da=_0x16f8cf['model']['createPositionAt'](_0x2f2fe4['splitPosition']),_0x308d8a=_0x16f8cf['model']['createPositionAt'](_0x2f2fe4['moveTargetPosition']);break;case'move':_0x5985da=_0x16f8cf['model']['createPositionAt'](_0x2f2fe4['targetPosition']),_0x308d8a=_0x5985da['getShiftedBy'](_0x2f2fe4['howMany']);break;default:return;}const _0x39cd58=_0x16f8cf['model']['createRange'](_0x5985da,_0x308d8a);_0x16f8cf['model']['change'](()=>{for(const {suggestion:_0x2a270b,meta:_0x33251e}of this['_findSuggestions'](_0x39cd58)){if(_0x2a270b['isMultiRange'])continue;if('formatInline'==_0x2a270b['type'])continue;const _0x2586d0=this['_getAttributeKey'](_0x2a270b);if(_0x2586d0&&this['_isBlockAttribute'](_0x2586d0)&&'split'!=_0x2f2fe4['type'])continue;const _0x74b397=_0x2a270b['data']&&_0x2a270b['data']['multipleBlocks'];('formatBlock'!=_0x2a270b['type']||'split'==_0x2f2fe4['type']&&!_0x74b397)&&(_0x33251e['containsRangeInObject']||'insertion'==_0x2a270b['type']&&_0x33251e['isOwn']||_0x2a270b['getFirstRange']()['containsRange'](_0x39cd58)&&this['_breakSuggestionMarker'](_0x2a270b,_0x5985da,_0x308d8a));}});},{'priority':'lowest'}),_0x16f8cf['model']['on']('deleteContent',(_0x271a2f,_0x3dcb5f)=>{const _0x4b2e4f=_0x3dcb5f[0x0],_0x32faff=_0x3dcb5f[0x1];if(_0x32faff&&_0x32faff['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4b2e4f['isCollapsed'])return;const _0xaee8f3=_0x16f8cf['model']['schema'],{start:_0x51f104,end:_0x3b6a76}=_0x4b2e4f['getFirstRange'](),_0x492032=_0x51f104['nodeAfter']&&_0xaee8f3['isLimit'](_0x51f104['nodeAfter'])?null:_0xaee8f3['getNearestSelectionRange'](_0x51f104,'forward'),_0x3346c9=_0x3b6a76['nodeBefore']&&_0xaee8f3['isLimit'](_0x3b6a76['nodeBefore'])?null:_0xaee8f3['getNearestSelectionRange'](_0x3b6a76,'backward'),_0x125401=_0x16f8cf['model']['createRange'](_0x492032?_0x492032['start']:_0x51f104,_0x3346c9?_0x3346c9['end']:_0x3b6a76);_0x16f8cf['model']['change'](_0x4d9777=>{this['markDeletion'](_0x125401);const _0x10e571=_0x16f8cf['model']['schema']['getNearestSelectionRange'](_0x125401['start']);_0x4b2e4f['is']('documentSelection')?_0x4d9777['setSelection'](_0x10e571):_0x4b2e4f['setTo'](_0x10e571);}),_0x271a2f['stop']();},{'priority':_0x273d74['normal']+0xa}),_0x16f8cf['model']['on']('insertContent',(_0x37c7fe,_0x38dcfe)=>{const _0x3f816d=_0x38dcfe[_0x38dcfe['length']-0x1];_0x3f816d&&_0x3f816d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x16f8cf['model']['change'](()=>{let _0x578ca6=_0x16f8cf['model']['insertContent'](_0x38dcfe[0x0],_0x38dcfe[0x1],_0x38dcfe[0x2],{'forceDefaultExecution':!0x0});if(!_0x578ca6)return;_0x37c7fe['return']=_0x578ca6['clone']();const _0x1a7c6d=_0x578ca6['end']['nodeBefore'],_0x481bac=_0x16f8cf['model']['schema'];_0x1a7c6d&&_0x481bac['isBlock'](_0x1a7c6d)&&!_0x481bac['isObject'](_0x1a7c6d)&&(_0x578ca6=_0x16f8cf['model']['createRange'](_0x578ca6['start'],_0x16f8cf['model']['createPositionAt'](_0x1a7c6d,'end'))),this['markInsertion'](_0x578ca6);}),_0x37c7fe['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5d5fe9=new x(_0x16f8cf,this['_suggestions']);_0x16f8cf['commands']['add']('acceptSuggestion',_0x5d5fe9),this['enableCommand']('acceptSuggestion');const _0x20fbf2=new R(_0x16f8cf,this['_suggestions']);_0x16f8cf['commands']['add']('discardSuggestion',_0x20fbf2),this['enableCommand']('discardSuggestion'),_0x16f8cf['commands']['add']('acceptAllSuggestions',new E(_0x16f8cf,_0x5d5fe9,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x16f8cf['commands']['add']('discardAllSuggestions',new E(_0x16f8cf,_0x20fbf2,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x16f8cf['commands']['add']('acceptSelectedSuggestions',new O(_0x16f8cf,_0x5d5fe9,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x16f8cf['commands']['add']('discardSelectedSuggestions',new O(_0x16f8cf,_0x20fbf2,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x551e7b=_0x16f8cf['plugins']['get']('CommentsRepository');this['listenTo'](_0x551e7b,'addComment',(_0x291d70,{threadId:_0x344e1f})=>{const _0x32d69d=this['_suggestions']['get'](_0x344e1f);_0x32d69d&&_0x32d69d['commentThread']&&0x1===_0x32d69d['commentThread']['length']&&this['_updateSuggestionData'](_0x344e1f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x551e7b,'removeComment',(_0x4b3a44,{threadId:_0x1e4c99})=>{const _0x55d948=this['_suggestions']['get'](_0x1e4c99);_0x55d948&&_0x55d948['commentThread']&&!_0x55d948['commentThread']['length']&&this['_updateSuggestionData'](_0x1e4c99,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x41496f){if(this['_adapter'])throw new _0x97e699('track-changes-adapter-already-set',this);this['_adapter']=_0x41496f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x8a518d=!0x1,toJSON:_0x54d2bc=!0x1}={}){const _0x242f54=[];for(const _0x52d558 of this['_suggestions']['values']())_0x8a518d&&!_0x52d558['isInContent']||_0x242f54['push'](_0x52d558);return _0x54d2bc?_0x242f54['map'](_0x428204=>_0x428204['toJSON']()):_0x242f54;}['getSuggestion'](_0x493bc2){const _0x1de77d=this['_suggestions']['get'](_0x493bc2);if(!_0x1de77d)throw new _0x97e699('track-changes-suggestion-not-found',this);return _0x1de77d;}['hasSuggestion'](_0x4e5a3b){return this['_suggestions']['has'](_0x4e5a3b);}['addSuggestionData'](_0x507697){const {authorId:_0x4bef07,id:_0x5d77d9,attributes:_0x3e013a}=_0x507697,[_0x473057,_0x441e27]=_0x507697['type']['split'](':'),_0x49758e=this['_suggestions']['get'](_0x5d77d9)||this['_createSuggestion'](_0x473057,_0x441e27,_0x5d77d9,_0x4bef07,_0x3e013a);if(this['_addThreadToSuggestion'](_0x49758e),this['_checkSuggestionCorrectness'](_0x49758e,_0x473057,_0x441e27||null,_0x4bef07),_0x49758e['createdAt']=_0x507697['createdAt'],_0x49758e['_isDataLoaded']=!0x0,_0x3e013a&&_0x3e013a['@external']){const _0x40ef32=_0x3e013a['@external'],_0x385a7a=this['_getExternalAuthor'](_0x40ef32['authorName']);_0x49758e['authoredAt']=_0x40ef32['createdAt'],_0x49758e['author']=_0x385a7a,_0x49758e['isExternal']=!0x0;}else _0x49758e['authoredAt']=_0x507697['createdAt'];switch(_0x507697['data']&&(_0x49758e['data']=_0x507697['data']),_0x507697['attributes']&&(_0x49758e['attributes']=_0x507697['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x49758e['_saved']=!0x0),this['_suggestionState']['get'](_0x49758e)){case'notReady':this['_suggestionState']['set'](_0x49758e,'dataReady');break;case'markerReady':_0x49758e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x49758e])),this['_refreshSuggestionsChain'](new Set([_0x49758e])),this['_suggestionState']['set'](_0x49758e,'ready'),this['fire']('suggestionLoaded',_0x49758e)):this['_suggestionState']['set'](_0x49758e,'removed');}return _0x49758e;}['acceptSuggestion'](_0x1d2b76){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3d5e52 of _0x1d2b76['getAllAdjacentSuggestions']())_0x3d5e52['accept']();});});}['discardSuggestion'](_0x2eea94){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3ac3ad of _0x2eea94['getAllAdjacentSuggestions']())_0x3ac3ad['discard']();});});}['enableCommand'](_0x4ba31b,_0x48eda7){const _0x1b225a=this['editor']['commands']['get'](_0x4ba31b);if(!_0x1b225a)throw new _0x97e699('track-changes-command-not-found',this,{'commandName':_0x4ba31b});if(this['_enabledCommands']['has'](_0x1b225a))throw new _0x97e699('track-changes-enable-command-twice',this,{'commandName':_0x4ba31b});this['_enabledCommands']['add'](_0x1b225a),_0x48eda7&&_0x1b225a['on']('execute',(_0x1cac6c,_0x1da6fc)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1da6fc['length']>0x0&&_0x1da6fc[_0x1da6fc['length']-0x1]&&_0x1da6fc[_0x1da6fc['length']-0x1]['forceDefaultExecution']?_0x1da6fc['pop']():(_0x1cac6c['return']=_0x48eda7((..._0xb77263)=>_0x1b225a['execute'](..._0xb77263,{'forceDefaultExecution':!0x0}),..._0x1da6fc),_0x1cac6c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4976f8){let _0x364c25,_0x246587;const _0x27f628=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x364c25=_0x4976f8();}catch(_0x484cab){_0x246587=_0x484cab;}return _0x27f628||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x246587&&_0x97e699['rethrowUnexpectedError'](_0x246587,this),_0x364c25;}['markInsertion'](_0x3bf0ad,_0x24df5e=null,_0x1b65bc={}){if(_0x3bf0ad['isCollapsed'])return null;const _0x2b0ce0=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2124e4,meta:_0x3d6248}of this['_findSuggestions'](_0x3bf0ad,'insertion'))if(_0x3d6248['isOwn']){if(!_0x3d6248['isNextTo']){if(_0x3d6248['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x2124e4,_0x1b65bc))continue;return _0x2124e4;}if(qt(_0x2124e4,_0x1b65bc))return _0x2124e4;this['_breakSuggestionMarker'](_0x2124e4,_0x3bf0ad['start'],_0x3bf0ad['end']);break;}if(_0x24df5e==_0x2124e4['subType']&&qt(_0x2124e4,_0x1b65bc)){const _0xe5c586=_0x2124e4['getFirstRange']();return _0xe5c586['start']['isEqual'](_0x3bf0ad['end'])?this['_setSuggestionRange'](_0x2124e4,this['_model']['createRange'](_0x3bf0ad['start'],_0xe5c586['end'])):this['_setSuggestionRange'](_0x2124e4,this['_model']['createRange'](_0xe5c586['start'],_0x3bf0ad['end'])),_0x2124e4;}}const _0x1576a3=_0x3529ea(),_0x2d8065=_0x2b0ce0['id'],_0x19ef86=_0x24df5e?'insertion:'+_0x24df5e:'insertion',_0x179f5f=this['_setSuggestionData']({'id':_0x1576a3,'type':_0x19ef86,'createdAt':new Date(),'authorId':_0x2d8065,'attributes':_0x1b65bc});return this['_addSuggestionMarker'](_0x19ef86,_0x1576a3,_0x2d8065,_0x3bf0ad),_0x179f5f;}['markMultiRangeInsertion'](_0x510bc2,_0xbce3aa='multi',_0x5266c3={}){const _0x5d30b5=this['editor']['plugins']['get']('Users')['me'],_0x51a8d6=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xbce3aa,'join');for(const _0x25b52e of this['getSuggestions']())if(_0x25b52e['author']['id']==_0x5d30b5['id']&&'insertion'==_0x25b52e['type']&&_0x25b52e['subType']==_0xbce3aa&&qt(_0x25b52e,_0x5266c3)&&(_0x51a8d6(_0x25b52e['getRanges'](),_0x510bc2)||_0x51a8d6(_0x510bc2,_0x25b52e['getRanges']()))){for(const _0x25eca0 of _0x510bc2)_0x25b52e['addRange'](_0x25eca0);return _0x25b52e;}for(const {suggestion:_0x23740d,meta:_0x53bfe5}of this['_findSuggestions'](_0x510bc2,'insertion')){if(!_0x53bfe5['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x53bfe5['containsRangeInObject'])continue;if(!qt(_0x23740d,_0x5266c3))continue;let _0x2a3140=!0x0;for(const _0x5798be of _0x23740d['getRanges']())for(const _0x49feb0 of _0x510bc2)if(!_0x5798be['containsRange'](_0x49feb0)){_0x2a3140=!0x1;break;}if(_0x2a3140)return _0x23740d;}const _0x4e977e=_0x3529ea(),_0x4fa4e8=_0x5d30b5['id'],_0x136801='insertion:'+_0xbce3aa,_0x183797=this['_setSuggestionData']({'id':_0x4e977e,'type':_0x136801,'createdAt':new Date(),'authorId':_0x4fa4e8,'attributes':_0x5266c3});for(const _0x58d11c of _0x510bc2)this['_addSuggestionMarker'](_0x136801,_0x4e977e,_0x4fa4e8,_0x58d11c,u['getMultiRangeId']());return _0x183797;}['markInlineFormat'](_0x5bb28a,_0x2caeb9,_0x3be737=null,_0x38c1fd={}){if(_0x3be737=_0x3be737||Gt(_0x2caeb9),_0x5bb28a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1f4627=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3be737,'accept');return this['forceDefaultExecution'](()=>_0x1f4627([_0x5bb28a],_0x2caeb9,_0x38c1fd)),null;}const _0xbb0546=this['editor']['plugins']['get']('Users')['me'],_0x84b157=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5a0497,meta:_0x4f0608}of this['_findSuggestions'](_0x5bb28a,'insertion'))_0x4f0608['isOwn']&&!_0x4f0608['isInsideObject']&&_0x84b157['push'](..._0x5a0497['getRanges']());}const _0x101724=function(_0x17e3d6,_0x40b421){const _0x259241=[];for(const _0x5b89d5 of _0x40b421){const _0x3531ac=_0x17e3d6['getIntersection'](_0x5b89d5);_0x3531ac&&_0x259241['push'](_0x3531ac);}return _0x259241;}(_0x5bb28a,_0x84b157),_0x47b261=function(_0x468051,_0x171c87){const _0xa92f17=[_0x468051];for(const _0x354f1e of _0x171c87){let _0x1259bb=0x0;for(;_0x1259bb<_0xa92f17['length'];){const _0x4f3e53=_0xa92f17[_0x1259bb]['getDifference'](_0x354f1e);_0xa92f17['splice'](_0x1259bb,0x1,..._0x4f3e53),_0x1259bb+=_0x4f3e53['length'];}}return _0xa92f17;}(_0x5bb28a,_0x84b157);_0x101724['length']&&this['_model']['change'](()=>{for(const _0xfe3d52 of _0x101724){const _0x44fd20=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3be737,'accept');this['forceDefaultExecution'](()=>_0x44fd20([_0xfe3d52],_0x2caeb9,_0x38c1fd));}});for(const _0x319ec4 of _0x47b261){let _0x152fe8=null,_0x2a51ba=_0x319ec4['start'],_0x5936b3=_0x319ec4['end'];for(const {suggestion:_0x4687c7,meta:_0x4f2325}of this['_findSuggestions'](_0x319ec4,'formatInline')){if(!_0x4f2325['isOwn'])continue;if(_0x4687c7['subType']!=_0x3be737)continue;if(!qt(_0x4687c7,_0x38c1fd))continue;const _0x38447f=_0x4687c7['getFirstRange']();if(_0x38447f['containsRange'](_0x319ec4,!0x0))return null;_0x2a51ba=_0x2a51ba['isBefore'](_0x38447f['start'])?_0x2a51ba:_0x38447f['start'],_0x5936b3=_0x5936b3['isAfter'](_0x38447f['end'])?_0x5936b3:_0x38447f['end'],_0x152fe8?_0x38447f['start']['isBefore'](_0x152fe8['getFirstRange']()['start'])?(_0x152fe8['removeMarkers'](),_0x152fe8=_0x4687c7):_0x4687c7['removeMarkers']():_0x152fe8=_0x4687c7;}const _0x2f1de1=this['_model']['createRange'](_0x2a51ba,_0x5936b3);if(_0x152fe8)this['_setSuggestionRange'](_0x152fe8,_0x2f1de1);else{const _0x28c354=_0x3529ea(),_0x25e28a=_0xbb0546['id'];this['_setSuggestionData']({'id':_0x28c354,'type':'formatInline:'+_0x3be737,'data':_0x2caeb9,'createdAt':new Date(),'authorId':_0x25e28a,'attributes':_0x38c1fd}),this['_addSuggestionMarker']('formatInline:'+_0x3be737,_0x28c354,_0x25e28a,_0x2f1de1);}}return null;}['markBlockFormat'](_0x1519f7,_0x3a1abd,_0x1c3267=[],_0x4eaf1f=null,_0x4c20fc={}){_0x3a1abd['formatGroupId']||(_0x3a1abd['formatGroupId']=_0x3a1abd['commandName']),_0x3a1abd['multipleBlocks']=_0x1519f7['is']('range'),_0x4eaf1f=_0x4eaf1f||Gt(_0x3a1abd);const _0x14492b=_0x1c3267['map'](_0x54b577=>Lt(_0x54b577,this['_model'])),_0x4b30bb=_0x1519f7['is']('range')?_0x1519f7:Lt(_0x1519f7,this['_model']);if('never'===this['_trackFormatChanges']){const _0x19095d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4eaf1f,'accept');return this['forceDefaultExecution'](()=>_0x19095d([_0x4b30bb],_0x3a1abd,_0x4c20fc)),null;}_0x14492b['push'](_0x4b30bb);let _0x58f02b=!0x0;for(const _0x2df9ed of _0x14492b)if(!this['_rangeIsInLocalUserInsertion'](_0x2df9ed)){_0x58f02b=!0x1;break;}if(_0x58f02b&&'always'!==this['_trackFormatChanges']){const _0x28f754=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4eaf1f,'accept');return this['forceDefaultExecution'](()=>_0x28f754([_0x4b30bb],_0x3a1abd,_0x4c20fc)),null;}let _0x2fe5e6=null,_0x38a860=_0x4b30bb['start'],_0x1f840f=_0x4b30bb['end'];for(const {suggestion:_0x3a1b47,meta:_0xeeb8c0}of this['_findSuggestions'](_0x4b30bb,'formatBlock')){if(!_0xeeb8c0['isOwn'])continue;if(_0xeeb8c0['isNextTo']||_0xeeb8c0['containsRangeInObject']||_0xeeb8c0['isInsideObject'])continue;if(_0x3a1b47['data']['formatGroupId']!=_0x3a1abd['formatGroupId'])continue;if(!qt(_0x3a1b47,_0x4c20fc))continue;const _0x5ae0bf=_0x3a1b47['getFirstRange']();if(_0x3a1b47['subType']==_0x4eaf1f){if(_0x5ae0bf['containsRange'](_0x4b30bb,!0x0))return null;_0x38a860=_0x38a860['isBefore'](_0x5ae0bf['start'])?_0x38a860:_0x5ae0bf['start'],_0x1f840f=_0x1f840f['isAfter'](_0x5ae0bf['end'])?_0x1f840f:_0x5ae0bf['end'],_0x2fe5e6?_0x5ae0bf['start']['isBefore'](_0x2fe5e6['getFirstRange']()['start'])?(_0x2fe5e6['removeMarkers'](),_0x2fe5e6=_0x3a1b47):_0x3a1b47['removeMarkers']():_0x2fe5e6=_0x3a1b47;}else{const _0x4ee718=_0x4b30bb['getIntersection'](_0x5ae0bf);this['_cutOutSuggestionMarker'](_0x3a1b47,_0x4ee718);}}const _0x417078=this['editor']['plugins']['get']('Users')['me'],_0x2ff7e4=_0x3529ea(),_0x30c7ea=_0x417078['id'];if(_0x2fe5e6)return this['_setSuggestionRange'](_0x2fe5e6,this['_model']['createRange'](_0x38a860,_0x1f840f)),_0x2fe5e6;{const _0x1f0e93=this['_setSuggestionData']({'id':_0x2ff7e4,'type':'formatBlock:'+_0x4eaf1f,'data':_0x3a1abd,'createdAt':new Date(),'authorId':_0x30c7ea,'attributes':_0x4c20fc});return this['_addSuggestionMarker']('formatBlock:'+_0x4eaf1f,_0x2ff7e4,_0x30c7ea,this['_model']['createRange'](_0x38a860,_0x1f840f)),_0x1f0e93;}}['markMultiRangeBlockFormat'](_0x383bde,_0x502689,_0x274ba0=[],_0x33fd8c=null,_0x514724={}){_0x502689['formatGroupId']||(_0x502689['formatGroupId']=_0x502689['commandName']);const _0x3bb2da=_0x383bde[0x0];_0x502689['multipleBlocks']=_0x3bb2da['is']('range'),_0x33fd8c=_0x33fd8c||Gt(_0x502689);const _0x256fe6=_0x274ba0['map'](_0x38e275=>Lt(_0x38e275,this['_model'])),_0x54f564=_0x3bb2da['is']('range')?_0x383bde:_0x383bde['map'](_0x117c57=>Lt(_0x117c57,this['_model']));if('never'===this['_trackFormatChanges']){const _0x36d10a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33fd8c,'accept');return this['forceDefaultExecution'](()=>_0x36d10a(_0x54f564,_0x502689,_0x514724)),null;}_0x256fe6['push'](..._0x54f564);let _0x30cc68=!0x0;for(const _0x1a1708 of _0x256fe6)if(!this['_rangeIsInLocalUserInsertion'](_0x1a1708)){_0x30cc68=!0x1;break;}if(_0x30cc68&&'always'!==this['_trackFormatChanges']){const _0x2f6e1e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33fd8c,'accept');return this['forceDefaultExecution'](()=>_0x2f6e1e(_0x54f564,_0x502689,_0x514724)),null;}const _0x537717=this['editor']['plugins']['get']('Users')['me'];for(const _0x4525d0 of this['getSuggestions']()){if(_0x4525d0['author']['id']!=_0x537717['id'])continue;if('formatBlock'!=_0x4525d0['type']||_0x4525d0['data']['formatGroupId']!=_0x502689['formatGroupId'])continue;if(!qt(_0x4525d0,_0x514724))continue;const _0x528b0b=_0x4525d0['subType']==_0x33fd8c;for(let _0x22ae25=0x0;_0x22ae25<_0x54f564['length'];_0x22ae25++){const _0xa1ace3=_0x54f564[_0x22ae25];for(const _0x312f39 of _0x4525d0['getMarkers']()){const _0x4e6d4b=_0x312f39['getRange']();if(_0xa1ace3['isEqual'](_0x4e6d4b)){_0x528b0b?(_0x54f564['splice'](_0x22ae25,0x1),_0x22ae25--):_0x4525d0['removeMarker'](_0x312f39['name']);break;}}}}if(0x0==_0x54f564['length'])return null;const _0x1637aa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33fd8c,'join');for(const _0x9acb3d of this['getSuggestions']())if(_0x9acb3d['author']['id']==_0x537717['id']&&'formatBlock'==_0x9acb3d['type']&&_0x9acb3d['data']['formatGroupId']==_0x502689['formatGroupId']&&_0x9acb3d['subType']==_0x33fd8c&&qt(_0x9acb3d,_0x514724)&&(_0x1637aa(_0x9acb3d['getRanges'](),_0x54f564)||_0x1637aa(_0x54f564,_0x9acb3d['getRanges']()))){for(const _0x2a60d1 of _0x54f564)_0x9acb3d['addRange'](_0x2a60d1);return _0x9acb3d;}const _0x43d2d9=_0x3529ea(),_0x54f38b=_0x537717['id'],_0x4b79e4='formatBlock:'+_0x33fd8c,_0x2abd5b=this['_setSuggestionData']({'id':_0x43d2d9,'type':_0x4b79e4,'data':_0x502689,'createdAt':new Date(),'authorId':_0x54f38b,'attributes':_0x514724});for(const _0x50e931 of _0x54f564)this['_addSuggestionMarker'](_0x4b79e4,_0x43d2d9,_0x54f38b,_0x50e931,u['getMultiRangeId']());return _0x2abd5b;}['markDeletion'](_0x121e51,_0x4c9598=null,_0x4b8c8c={}){if(_0x121e51['isCollapsed'])return null;const _0x5d3230=this['editor']['plugins']['get']('Users')['me'],_0x52b9eb=new _0x1c0e5b(_0x121e51['start'],_0x121e51['end']);for(const {suggestion:_0x5227ed,meta:_0x5c0979}of this['_findSuggestions'](_0x52b9eb,'insertion'))if(_0x5c0979['isOwn']&&!_0x5c0979['isNextTo']){if(_0x5227ed['isMultiRange']){const _0xe78239=_0x5227ed['getRanges']()['filter'](_0x44b7af=>'$graveyard'!=_0x44b7af['root']['rootName']);_0xe78239['every'](_0x48adda=>_0x52b9eb['containsRange'](_0x48adda,!0x0))&&_0x5227ed['discard']();if(_0xe78239['some'](_0xf93b23=>_0xf93b23['containsRange'](_0x52b9eb,!0x0))){const _0x59d73d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4c9598,'accept');return this['forceDefaultExecution'](()=>_0x59d73d([_0x52b9eb],null,_0x4b8c8c)),null;}}else{const _0x152f75=_0x52b9eb['getIntersection'](_0x5227ed['getFirstRange']());null!==_0x152f75&&_0x5227ed['_onDiscard']([_0x152f75],null,_0x4b8c8c);}}if(_0x52b9eb['detach'](),_0x52b9eb['isCollapsed']||'$graveyard'==_0x52b9eb['root']['rootName'])return null;let _0x4189f6=null,_0x3ac4f5=_0x52b9eb['start'],_0x4ac780=_0x52b9eb['end'];const _0x5227a4=this['_findSuggestions'](_0x52b9eb,'deletion');for(const {suggestion:_0xae6582,meta:_0x537a90}of _0x5227a4){const _0x2ba13f=this['_model']['createRange'](_0x3ac4f5,_0x4ac780);if(_0x537a90['isOwn']&&(this['_mergeNestedSuggestions']||!_0x537a90['containsRangeInObject']&&!_0x537a90['isInsideObject'])){if(_0xae6582['isMultiRange']){if(!qt(_0xae6582,_0x4b8c8c))continue;let _0x38828c=!0x0;for(const _0x36ef30 of _0xae6582['getRanges']()){if(_0x36ef30['containsRange'](_0x2ba13f,!0x0))return _0xae6582;_0x2ba13f['containsRange'](_0x36ef30)||(_0x38828c=!0x1);}_0x38828c&&_0xae6582['discard']();}else{const _0x41551a=_0xae6582['getFirstRange']();if(_0x41551a['containsRange'](_0x2ba13f,!0x0))return _0xae6582;if(!qt(_0xae6582,_0x4b8c8c)){_0x2ba13f['containsRange'](_0x41551a)?_0xae6582['removeMarkers']():_0x41551a['containsPosition'](_0x3ac4f5)?_0x3ac4f5=_0x41551a['end']:_0x41551a['containsPosition'](_0x4ac780)&&(_0x4ac780=_0x41551a['start']);continue;}_0x3ac4f5=_0x3ac4f5['isBefore'](_0x41551a['start'])?_0x3ac4f5:_0x41551a['start'],_0x4ac780=_0x4ac780['isAfter'](_0x41551a['end'])?_0x4ac780:_0x41551a['end'],_0x4b8c8c=Object['assign']({},_0xae6582['attributes']),_0x4189f6?_0x41551a['start']['isBefore'](_0x4189f6['getFirstRange']()['start'])?(_0x4189f6['removeMarkers'](),_0x4189f6=_0xae6582):_0xae6582['removeMarkers']():_0x4189f6=_0xae6582;}}}if(_0x4189f6)return this['_setSuggestionRange'](_0x4189f6,this['_model']['createRange'](_0x3ac4f5,_0x4ac780)),_0x4189f6;{const _0x5c2d34=_0x3529ea(),_0x4b0009=this['_model']['createRange'](_0x3ac4f5,_0x4ac780),_0x21a6bc=_0x5d3230['id'],_0x4a9824=_0x4c9598?'deletion:'+_0x4c9598:'deletion',_0x1921b9=this['_setSuggestionData']({'id':_0x5c2d34,'type':_0x4a9824,'createdAt':new Date(),'authorId':_0x21a6bc,'attributes':_0x4b8c8c});return this['_addSuggestionMarker'](_0x4a9824,_0x5c2d34,_0x21a6bc,_0x4b0009),_0x1921b9;}}['markMultiRangeDeletion'](_0x18fc2c,_0x3a5483='multi',_0x3f33ad={}){const _0x2e3c1b=this['editor']['plugins']['get']('Users')['me'],_0x3143bc=_0x18fc2c['map'](_0x197ca3=>new _0x1c0e5b(_0x197ca3['start'],_0x197ca3['end'])),_0xe24260=new Set();for(const {suggestion:_0x3b030e,meta:_0xb7c1c2}of this['_findSuggestions'](_0x3143bc,'insertion'))_0xb7c1c2['isOwn']&&!_0xb7c1c2['isNextTo']&&_0xe24260['add'](_0x3b030e);for(const _0x54a48 of _0xe24260)if(_0x54a48['isMultiRange']){const _0xd4f8c9=_0x54a48['getRanges']();(!_0x54a48['attributes']||!_0x54a48['attributes']['skipNestingCheck'])&&(_0xd4f8c9['every'](_0x4f1c28=>_0x3143bc['some'](_0x2d2f54=>_0x2d2f54['containsRange'](_0x4f1c28,!0x0)))&&_0x54a48['discard']());if(_0x3143bc['every'](_0xa6e954=>_0xd4f8c9['some'](_0x17cb17=>_0x17cb17['containsRange'](_0xa6e954,!0x0)))){const _0x3f51f1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a5483,'accept');return this['forceDefaultExecution'](()=>_0x3f51f1(_0x18fc2c,null,_0x3f33ad)),null;}}else{const _0x489794=_0x54a48['getFirstRange']();_0x3143bc['some'](_0x4ce5b8=>_0x4ce5b8['containsRange'](_0x489794,!0x0))&&_0x54a48['discard']();if(_0x3143bc['every'](_0x5718fe=>_0x489794['containsRange'](_0x5718fe,!0x0))){const _0x3a955d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a5483,'accept');return this['forceDefaultExecution'](()=>_0x3a955d(_0x3143bc,null,_0x3f33ad)),null;}}const _0x41a742=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a5483,'join');let _0x36677e=null;for(const _0x1edcb6 of this['getSuggestions']())if(_0x1edcb6['author']['id']==_0x2e3c1b['id']&&_0x1edcb6['isInContent']&&'deletion'==_0x1edcb6['type']&&_0x1edcb6['subType']==_0x3a5483&&qt(_0x1edcb6,_0x3f33ad)&&(_0x41a742(_0x1edcb6['getRanges'](),_0x3143bc)||_0x41a742(_0x3143bc,_0x1edcb6['getRanges']()))){if(_0x36677e){if(_0x1edcb6['commentThread']&&_0x1edcb6['commentThread']['length'])continue;for(const _0xe29086 of _0x1edcb6['getRanges']())_0x36677e['isIntersectingWithRange'](_0xe29086)||_0x36677e['addRange'](_0xe29086);_0x1edcb6['removeMarkers']();}else{_0x36677e=_0x1edcb6;for(const _0x4d0e57 of _0x3143bc)_0x1edcb6['isIntersectingWithRange'](_0x4d0e57)||_0x1edcb6['addRange'](_0x4d0e57);}}if(_0x36677e)return _0x36677e;_0xe24260['clear']();for(const {suggestion:_0x92c554,meta:_0x34fdca}of this['_findSuggestions'](_0x3143bc,'deletion'))_0x34fdca['isOwn']&&(this['_mergeNestedSuggestions']||!_0x34fdca['containsRangeInObject']&&!_0x34fdca['isInsideObject'])&&qt(_0x92c554,_0x3f33ad)&&_0xe24260['add'](_0x92c554);for(const _0x34e7c4 of _0xe24260){const _0x37c910=_0x34e7c4['getRanges']();if(!_0x3f33ad||!_0x3f33ad['skipNestingCheck']){if(_0x3143bc['every'](_0x3a8121=>_0x37c910['some'](_0x1fe1f4=>_0x1fe1f4['containsRange'](_0x3a8121,!0x0))))return _0x34e7c4;}(!_0x34e7c4['attributes']||!_0x34e7c4['attributes']['skipNestingCheck'])&&(_0x37c910['every'](_0x282e74=>_0x3143bc['some'](_0x167f8f=>_0x167f8f['containsRange'](_0x282e74,!0x0)))&&_0x34e7c4['discard']());}const _0xae7640=_0x3529ea(),_0x53e381=_0x2e3c1b['id'],_0x2c4aca='deletion:'+_0x3a5483,_0x449b57=this['_setSuggestionData']({'id':_0xae7640,'type':_0x2c4aca,'createdAt':new Date(),'authorId':_0x53e381,'attributes':_0x3f33ad});for(const _0x216b20 of _0x3143bc)_0x216b20['detach'](),_0x216b20['isCollapsed']||'$graveyard'==_0x216b20['root']['rootName']||this['_addSuggestionMarker'](_0x2c4aca,_0xae7640,_0x53e381,_0x216b20,u['getMultiRangeId']());return _0x449b57;}['markAttributeChange'](_0x5632bd,_0x365772,_0x1ecf63,_0x78d719,_0x27d498){if(_0x5632bd['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5748ad=this['editor']['plugins']['get']('Users')['me']['id'],_0x336709=Array['from'](this['_suggestions']['values']())['filter'](_0x4f091c=>'attribute'==_0x4f091c['type']&&_0x4f091c['data']['key']==_0x365772&&_0x4f091c['isIntersectingWithRange'](_0x5632bd));if('default'===this['_trackFormatChanges']){const _0x50cebd=this['_findSuggestions'](_0x5632bd,'insertion')['filter'](({meta:_0x56dd70})=>_0x56dd70['isOwn']&&!_0x56dd70['isInsideObject']&&!_0x56dd70['isNextTo'])['map'](({suggestion:_0x290da0})=>_0x290da0);_0x336709['unshift'](..._0x50cebd);}const _0x1523b9=new Map([[_0x5632bd,_0x1ecf63]]);for(const _0x29cf01 of _0x336709){const _0x7de2ac='attribute'==_0x29cf01['type']?_0x29cf01['data']['oldValue']:void 0x0,_0x5ede12=_0x29cf01['getFirstRange'](),_0x421416=Array['from'](_0x1523b9['keys']())['find'](_0x312dda=>_0x312dda['isIntersecting'](_0x5ede12));if(!_0x421416)continue;const _0x1988b2=_0x421416['getDifference'](_0x5ede12);this['_isBlockAttribute'](_0x365772)&&'insertion'==_0x29cf01['type']&&0x0!=_0x1988b2['length']||(_0x1523b9['delete'](_0x421416),_0x1988b2['forEach'](_0x38b9c9=>{_0x1523b9['set'](_0x38b9c9,_0x1ecf63);}),'insertion'!=_0x29cf01['type']&&_0x7de2ac!=_0x78d719&&_0x1523b9['set'](_0x421416['getIntersection'](_0x5ede12),_0x7de2ac));}const _0xcbd91d=[];for(const [_0x4505ae,_0x4e0d2d]of _0x1523b9){const _0x41ce6c=_0x3529ea(),_0x164f93={'key':_0x365772,'oldValue':_0x4e0d2d,'newValue':_0x78d719};_0x365772['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':_0x365772});const _0x2467e7=('attribute:'+(_0x365772+'|'+Gt({'newValue':_0x78d719})))['substring'](0x0,0x3c),_0x488cf3=this['_setSuggestionData']({'id':_0x41ce6c,'type':_0x2467e7,'data':_0x164f93,'createdAt':new Date(),'authorId':_0x5748ad,'attributes':_0x27d498});_0xcbd91d['push'](_0x488cf3),this['_addSuggestionMarker'](_0x2467e7,_0x41ce6c,_0x5748ad,_0x4505ae);}return _0xcbd91d;}['enableDefaultAttributesIntegration'](_0xe0e78f){this['enableCommand'](_0xe0e78f,(_0x4413e3,..._0x11a6da)=>{this['_recordAttributeChanges'](()=>{_0x4413e3(..._0x11a6da);});});}['registerBlockAttribute'](_0x497f31){this['_blockAttributeKeys']['add'](_0x497f31);}['registerInlineAttribute'](_0x1f1810){this['_inlineAttributeKeys']['add'](_0x1f1810);}['_getAttributeKey'](_0x55c806){return'attribute'==_0x55c806['type']?_0x55c806['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3423f4,_0x421344){const _0x3d8018=_0x3423f4['getFirstMarker']();this['_model']['change'](_0x3ddf49=>{_0x3ddf49['updateMarker'](_0x3d8018,{'range':_0x421344});});}['_addThreadToSuggestion'](_0x38a572){const _0x1252fb=_0x38a572['id'],_0x1937a1=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1252fb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1937a1,'threadId':_0x1252fb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xfacfde=this['_commentsRepository']['getCommentThread'](_0x1252fb);_0xfacfde['unbind']('isRemovable'),_0xfacfde['isRemovable']=!0x1,_0x38a572['commentThread']=_0xfacfde;}['_checkSuggestionCorrectness'](_0x2de4b3,_0x1ee632,_0x160be4,_0x5e17bf){if(_0x2de4b3['type']!=_0x1ee632||_0x2de4b3['subType']!=_0x160be4||_0x2de4b3['creator']['id']!=_0x5e17bf)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x97e699('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x14e5d5,_0x12cdc4){const _0x58995c=_0x14e5d5['getFirstRange']();if(_0x12cdc4['isEqual'](_0x58995c))_0x14e5d5['removeMarkers']();else{if(_0x58995c['containsRange'](_0x12cdc4)){const _0x337e16=this['_model']['createPositionAt'](_0x12cdc4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x14e5d5,this['_model']['createRange'](_0x58995c['start'],_0x337e16));const _0x39e80b=_0x3529ea(),_0x15498a=_0x14e5d5['creator']['id'],_0x16f6f1=_0x14e5d5['type']+':'+_0x14e5d5['subType'];this['_setSuggestionData']({'id':_0x39e80b,'type':_0x16f6f1,'createdAt':new Date(),'authorId':_0x15498a,'data':_0x14e5d5['data'],'attributes':_0x14e5d5['attributes']});const _0x5b2024=this['_model']['createPositionAt'](_0x12cdc4['end']['parent'],'after'),_0x59cd3c=this['_model']['createRange'](_0x5b2024,_0x58995c['end']);this['_addSuggestionMarker'](_0x16f6f1,_0x39e80b,_0x15498a,_0x59cd3c);}else{if(_0x58995c['containsPosition'](_0x12cdc4['start'])){const _0x3fd860=this['_model']['createPositionAt'](_0x12cdc4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x14e5d5,this['_model']['createRange'](_0x58995c['start'],_0x3fd860));}else{const _0x56f879=this['_model']['createPositionAt'](_0x12cdc4['end']['parent'],'after');this['_setSuggestionRange'](_0x14e5d5,this['_model']['createRange'](_0x56f879,_0x58995c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3f9076){for(const {suggestion:_0x2d1617,meta:_0x4d74d4}of this['_findSuggestions'](_0x3f9076,'insertion')){if(!_0x4d74d4['isOwn'])continue;const _0x393ceb=_0x2d1617['getRanges']();for(const _0xa119b5 of _0x393ceb)if(!_0x3f9076['getDifference'](_0xa119b5)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x55c86c){const _0x1b7ea7=this['editor']['plugins']['get']('Users')['getUser'](_0x55c86c);if(!_0x1b7ea7)throw new _0x97e699('track-changes-user-not-found',this);return _0x1b7ea7;}['_getExternalAuthor'](_0x1b78eb){const _0x352351=this['editor']['plugins']['get']('Users'),_0x36ea77=_0x39bb84('external:'+_0x1b78eb),_0x15f4ea=_0x352351['getUser'](_0x36ea77);return _0x15f4ea||_0x352351['addUser']({'id':_0x36ea77,'name':_0x1b78eb});}['_createSuggestion'](_0xfdc35b,_0x33b9ef,_0x53162b,_0x13d27b,_0x25e015){const _0x2af9b6=this['_getAuthorFromId'](_0x13d27b),_0x92c2f5=this['_suggestionFactory']['buildSuggestion'](_0xfdc35b,_0x33b9ef,_0x53162b,_0x2af9b6,_0x25e015,_0x4b3946=>{this['_updateSuggestionData'](_0x53162b,{'attributes':_0x4b3946});const _0x2e887a=this['getSuggestion'](_0x53162b);this['_joinWithAdjacentSuggestions'](new Set([_0x2e887a])),this['_refreshSuggestionsChain'](new Set([_0x2e887a]));});return this['listenTo'](_0x92c2f5,'accept',()=>{this['_updateSuggestionData'](_0x53162b,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x92c2f5,'discard',()=>{this['_updateSuggestionData'](_0x53162b,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x53162b,_0x92c2f5),this['_suggestionState']['set'](_0x92c2f5,'notReady'),_0x92c2f5;}['_splitMarkerName'](_0x34b4f7){const _0x139877=_0x34b4f7['split'](':');return{'group':_0x139877[0x0],'type':_0x139877[0x1],'subType':_0x139877['length']>=0x5?_0x139877[0x2]:null,'id':_0x139877['length']<0x5?_0x139877[0x2]:_0x139877[0x3],'authorId':_0x139877['length']<0x5?_0x139877[0x3]:_0x139877[0x4],'markerCount':0x6==_0x139877['length']?_0x139877[0x5]:null};}['_breakSuggestionMarker'](_0x2232f7,_0x358c20,_0x34aeac){const _0x1bf528=_0x2232f7['getFirstRange'](),_0x2431fa=_0x1bf528['start'],_0x165b5c=_0x1bf528['end'];this['_setSuggestionRange'](_0x2232f7,this['_model']['createRange'](_0x2431fa,_0x358c20));const _0x20690f=_0x3529ea(),_0x3ed669=_0x2232f7['creator']['id'],_0x1dd2df=_0x2232f7['type']+(_0x2232f7['subType']?':'+_0x2232f7['subType']:'');this['_setSuggestionData']({'id':_0x20690f,'type':_0x1dd2df,'createdAt':new Date(),'authorId':_0x3ed669,'originalSuggestionId':_0x2232f7['id'],'attributes':_0x2232f7['attributes'],'data':_0x2232f7['data']});const _0x434417=this['_getAttributeKey'](_0x2232f7);('formatBlock'==_0x2232f7['type']||_0x434417&&this['_isBlockAttribute'](_0x434417))&&(_0x34aeac=this['_model']['createPositionBefore'](_0x34aeac['parent'])),this['_addSuggestionMarker'](_0x1dd2df,_0x20690f,_0x3ed669,this['_model']['createRange'](_0x34aeac,_0x165b5c));}['_findSuggestions'](_0x103e56,_0x485e70=null){const _0x1dc9b2=[],_0x3d9f20=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x103e56)||(_0x103e56=[_0x103e56]);for(const _0x505966 of this['getSuggestions']()){if(!_0x505966['isInContent'])continue;if(_0x485e70&&_0x505966['type']!=_0x485e70)continue;let _0x57a6d6=!0x1;for(const _0x4a7f40 of _0x505966['getRanges']()){for(const _0x4a8d1d of _0x103e56){const _0x528700=_0x4a8d1d['start']['isEqual'](_0x4a7f40['end'])||_0x4a8d1d['end']['isEqual'](_0x4a7f40['start']);if(_0x528700||_0x4a8d1d['getIntersection'](_0x4a7f40)){const _0x46100d=_0x4a8d1d['containsRange'](_0x4a7f40)&&Ot(this['_model']['schema'],_0x4a7f40['start'],_0x4a8d1d),_0x34f897=_0x4a7f40['containsRange'](_0x4a8d1d)&&Ot(this['_model']['schema'],_0x4a8d1d['start'],_0x4a7f40);_0x1dc9b2['push']({'suggestion':_0x505966,'meta':{'isOwn':_0x3d9f20==_0x505966['author'],'isNextTo':_0x528700,'isInsideObject':_0x46100d,'containsRangeInObject':_0x34f897}}),_0x57a6d6=!0x0;break;}}if(_0x57a6d6)break;}}return _0x1dc9b2;}['_addSuggestionMarker'](_0x9554fd,_0x2aaf1b,_0x14c476,_0x5f289a,_0x4ee9fd){this['_model']['change'](_0x3fa5b4=>{let _0x5b86ed='suggestion:'+_0x9554fd+':'+_0x2aaf1b+':'+_0x14c476;_0x4ee9fd&&(_0x5b86ed=_0x5b86ed+':'+_0x4ee9fd),_0x3fa5b4['addMarker'](_0x5b86ed,{'range':_0x5f289a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x416d54){const _0x3e5e83=_0x416d54['previous'],_0x36a8d1=_0x416d54['next'];_0x416d54['previous']=null,_0x416d54['next']=null,null!=_0x3e5e83&&_0x3e5e83['next']==_0x416d54&&(_0x3e5e83['next']=_0x36a8d1),null!=_0x36a8d1&&_0x36a8d1['previous']==_0x416d54&&(_0x36a8d1['previous']=_0x3e5e83),'ready'==this['_suggestionState']['get'](_0x416d54)&&(this['_suggestionState']['set'](_0x416d54,'removed'),this['fire']('suggestionUnloaded',_0x416d54,_0x3e5e83,_0x36a8d1));}['_setSuggestionData'](_0x13f5c4){const _0xd68df3=_0x13f5c4['id'],_0x51dd88=this['addSuggestionData'](_0x13f5c4);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x32af12=this['editor']['plugins']['get']('PendingActions'),_0x47cfa4=_0x51dd88['hasComments'],_0x2696fc=_0x51dd88['subType']?_0x51dd88['type']+':'+_0x51dd88['subType']:_0x51dd88['type'],_0x41fedd=this['editor']['locale'],_0x3825ed=_0x32af12['add'](o(_0x41fedd,'PENDING_ACTION_SUGGESTION')),_0x1a5ca6={'id':_0xd68df3,'type':_0x2696fc,'hasComments':_0x47cfa4,'data':_0x13f5c4['data']||null,'originalSuggestionId':_0x13f5c4['originalSuggestionId']||null,'attributes':_0x51dd88['attributes']};this['_adapter']['addSuggestion'](_0x1a5ca6)['then'](_0x5929d4=>{_0x51dd88['_saved']=!0x0,_0x32af12['remove'](_0x3825ed),_0x5929d4&&_0x5929d4['createdAt']&&(this['_suggestions']['get'](_0xd68df3)['createdAt']=_0x5929d4['createdAt']);})['catch'](_0x27cd30=>{throw _0x3be10d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x51dd88['discard']();}),_0x51dd88['stopListening'](),this['_suggestions']['delete'](_0x51dd88['id']),this['_suggestionState']['delete'](_0x51dd88),_0x27cd30;});}return _0x51dd88;}['_isBlockAttribute'](_0x2fb1c2){return this['_blockAttributeKeys']['has'](_0x2fb1c2);}['_updateSuggestionData'](_0x193b58,_0x2d9e4b){const _0x7aae5c=this['editor']['plugins']['get']('PendingActions'),_0x17f613=this['getSuggestion'](_0x193b58);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x17f613['_saved']){const _0x427e9c=_0x7aae5c['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x193b58,_0x2d9e4b)['then'](()=>{_0x7aae5c['remove'](_0x427e9c);});}else _0x17f613['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x193b58,_0x2d9e4b);});}}['_getSuggestionData'](_0x1725de){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x97e699('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1725de);}['_handleNewSuggestionMarker'](_0x40f0ea){const {id:_0x166586,type:_0x396812,subType:_0x34cba5,authorId:_0x7d0b51}=this['_splitMarkerName'](_0x40f0ea),_0x166dc9=this['_suggestions']['get'](_0x166586)||this['_createSuggestion'](_0x396812,_0x34cba5,_0x166586,_0x7d0b51,{});switch(this['_checkSuggestionCorrectness'](_0x166dc9,_0x396812,_0x34cba5,_0x7d0b51),this['_suggestionState']['get'](_0x166dc9)){case'notReady':this['_getSuggestionData'](_0x166586)['then'](_0x201956=>{let _0x526e53=Promise['resolve']();_0x201956['hasComments']&&(_0x526e53=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x166586})),_0x526e53['then'](()=>{this['addSuggestionData'](_0x201956)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x166dc9,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x166586,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x166dc9,'ready'),this['fire']('suggestionLoaded',_0x166dc9);break;case'ready':this['fire']('suggestionChanged',_0x166dc9);}return _0x166dc9['addMarkerName'](_0x40f0ea),_0x166dc9;}['_refreshSuggestionsChain'](_0x2577b9){const _0x4726a5=Array['from'](_0x2577b9),_0x1e0f49=_0x4726a5['filter'](_0x3201f9=>'attribute'==_0x3201f9['type']);this['_refreshAttributeSuggestionsChain'](_0x1e0f49);const _0x262748=_0x4726a5['filter'](_0x4a3cfc=>!_0x4a3cfc['isMultiRange']&&'attribute'!=_0x4a3cfc['type']),_0x1a5e4a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x323d92=>!_0x323d92['isMultiRange']&&'attribute'!=_0x323d92['type']),_0x5aee66=_0x1a5e4a['filter'](_0x56cbb4=>!_0x2577b9['has'](_0x56cbb4)),_0x126ae4=new Map(_0x1a5e4a['map'](_0x5a737f=>[_0x5a737f,this['_suggestionFactory']['getSuggestionCallback'](_0x5a737f['type'],_0x5a737f['subType'],'chain')])),_0x58bbe9=new Map(_0x1a5e4a['map'](_0x7b313c=>[_0x7b313c,_0x7b313c['getFirstRange']()])),_0x1429fa=new Set(),_0xd33d9=new Set();for(let _0x34a3d5=0x0;_0x34a3d5<_0x262748['length'];_0x34a3d5++)_0x467864(_0x262748[_0x34a3d5],_0x262748,_0x34a3d5+0x1);for(let _0x21a9f8=0x0;_0x21a9f8<_0x262748['length'];_0x21a9f8++)_0x467864(_0x262748[_0x21a9f8],_0x5aee66,0x0);const _0x5a8882=new Set();for(let _0x2449a1=0x0;_0x2449a1<_0x262748['length'];_0x2449a1++){const _0x1ea9a0=_0x262748[_0x2449a1];!_0xd33d9['has'](_0x1ea9a0)&&_0x1ea9a0['previous']&&(_0x5a8882['add'](_0x1ea9a0['previous']),_0x1ea9a0['previous']['next']===_0x1ea9a0&&(_0x1ea9a0['previous']['next']=null),_0x1ea9a0['previous']=null),!_0x1429fa['has'](_0x1ea9a0)&&_0x1ea9a0['next']&&(_0x5a8882['add'](_0x1ea9a0['next']),_0x1ea9a0['next']['previous']===_0x1ea9a0&&(_0x1ea9a0['next']['previous']=null),_0x1ea9a0['next']=null);}function _0x467864(_0x350fa9,_0x55e64a,_0x5772c4){for(let _0x58b1c5=_0x5772c4;_0x58b1c5<_0x55e64a['length'];_0x58b1c5++){const _0x22f2ba=_0x56a100(_0x350fa9,_0x55e64a[_0x58b1c5]);_0x22f2ba&&(_0x22f2ba[0x0]['next']=_0x22f2ba[0x1],_0x22f2ba[0x1]['previous']=_0x22f2ba[0x0],_0x1429fa['add'](_0x22f2ba[0x0]),_0xd33d9['add'](_0x22f2ba[0x1]));}}function _0x56a100(_0x3d5321,_0x4e5317){if(_0x3d5321['author']['id']!==_0x4e5317['author']['id'])return null;const _0x1831cc=_0x126ae4['get'](_0x3d5321)(_0x3d5321,_0x4e5317,_0x58bbe9['get'](_0x3d5321),_0x58bbe9['get'](_0x4e5317));if(!_0x1831cc)return null;return _0x126ae4['get'](_0x4e5317)(_0x3d5321,_0x4e5317,_0x58bbe9['get'](_0x3d5321),_0x58bbe9['get'](_0x4e5317))?_0x1831cc[0x1]['commentThread']&&_0x1831cc[0x1]['commentThread']['length']?null:_0x1831cc:null;}_0x5a8882['size']&&this['_refreshSuggestionsChain'](_0x5a8882);}['_refreshAttributeSuggestionsChain'](_0x1d79e4){if(0x0==_0x1d79e4['length'])return;const _0x411113=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ec69f=>'attribute'==_0x5ec69f['type']&&_0x5ec69f['_isDataLoaded']),_0x2b0926=[],_0x1582e8=new Map();for(const _0x477e06 of _0x411113){const _0x4eb5ee=_0x39bb84(_0x477e06['attributes']);_0x1582e8['has'](_0x4eb5ee)||(_0x1582e8['set'](_0x4eb5ee,_0x2b0926['length']),_0x2b0926['push']([]));const _0x505ca6=_0x1582e8['get'](_0x4eb5ee);_0x2b0926[_0x505ca6]['push'](_0x477e06);}!(function(){_0x2b0926['sort']((_0x209cf9,_0x1607f5)=>{const _0x1e1530=_0x209cf9[0x0]['createdAt'],_0x5a8a97=_0x1607f5[0x0]['createdAt'];return _0x1e1530==_0x5a8a97?_0x209cf9[0x0]['attributes']['groupId']<_0x1607f5[0x0]['attributes']['groupId']?-0x1:0x1:_0x1e1530<_0x5a8a97?-0x1:0x1;});for(const _0x2dea42 of _0x2b0926)_0x2dea42['sort']((_0x44240a,_0x453af5)=>_0x44240a['id']<_0x453af5['id']?-0x1:0x1);}());for(let _0x35b3b7=0x0;_0x35b3b7<_0x2b0926['length'];_0x35b3b7++){if(0x0==_0x2b0926[_0x35b3b7]['length'])continue;const _0x5bfc94=[];for(let _0x5895ef=_0x35b3b7+0x1;_0x5895ef<_0x2b0926['length'];_0x5895ef++)0x0!=_0x2b0926[_0x5895ef]['length']&&_0x46fa5d(_0x2b0926[_0x35b3b7],_0x2b0926[_0x5895ef])&&_0x5bfc94['push'](_0x5895ef);for(const _0x23168a of _0x5bfc94)_0x2b0926[_0x35b3b7]=_0x2b0926[_0x35b3b7]['concat'](_0x2b0926[_0x23168a]),_0x2b0926[_0x23168a]=[];}for(const _0x5c0497 of _0x2b0926)for(let _0x1f81fd=0x0;_0x1f81fd<_0x5c0497['length'];_0x1f81fd++){const _0x44f33f=_0x5c0497[_0x1f81fd+0x1]||null;_0x5c0497[_0x1f81fd]['next']!==_0x44f33f&&(_0x5c0497[_0x1f81fd]['next']=_0x44f33f);}for(const _0x54a043 of _0x2b0926)for(let _0x4ebde9=0x0;_0x4ebde9<_0x54a043['length'];_0x4ebde9++){const _0x548c0a=_0x54a043[_0x4ebde9-0x1]||null;_0x54a043[_0x4ebde9]['previous']!==_0x548c0a&&(_0x54a043[_0x4ebde9]['previous']=_0x548c0a);}function _0x46fa5d(_0x40d212,_0x1f33ba){if(_0x40d212[0x0]['attributes']['groupId']!==_0x1f33ba[0x0]['attributes']['groupId']&&_0x40d212[0x0]['author']!==_0x1f33ba[0x0]['author'])return!0x1;if(!function(_0x3e1bbb,_0x5b0006){if(!_0x3e1bbb['hasComments']&&!_0x5b0006['hasComments'])return!0x0;if(_0x3e1bbb['hasComments']&&_0x5b0006['hasComments'])return!0x1;if(_0x3e1bbb['hasComments']&&_0x5b0006['createdAt']<_0x3e1bbb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5b0006['hasComments']&&_0x3e1bbb['createdAt']<_0x5b0006['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x40d212[0x0],_0x1f33ba[0x0]))return!0x1;const _0x59fab8=Tt(_0x40d212[0x0]['attributes'],'groupId'),_0x32a4b4=Tt(_0x1f33ba[0x0]['attributes'],'groupId');if(!_0x5b354c(_0x59fab8,_0x32a4b4))return!0x1;return!!_0x40d212['every'](_0x524460=>_0x1f33ba['some'](_0x2df9e7=>_0x524460['getFirstRange']()['isEqual'](_0x2df9e7['getFirstRange']())))&&_0x1f33ba['every'](_0x183711=>_0x40d212['some'](_0x57653e=>_0x183711['getFirstRange']()['isEqual'](_0x57653e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x395e3f){const _0x3a1892=Array['from'](_0x395e3f),_0x58c9b7=this['getSuggestions']({'skipNotAttached':!0x0}),_0x13ea31=_0x58c9b7['filter'](_0x492635=>!_0x395e3f['has'](_0x492635)),_0x50bb5d=new Map(_0x3a1892['map'](_0x4567c4=>[_0x4567c4,this['_suggestionFactory']['getSuggestionCallback'](_0x4567c4['type'],_0x4567c4['subType'],'join')])),_0x15c837=new Map(_0x58c9b7['map'](_0x5beed1=>[_0x5beed1,_0x5beed1['getRanges']()]));for(let _0x10514f=0x0;_0x10514f<_0x3a1892['length'];_0x10514f++){if(_0x3239e9(this,_0x3a1892[_0x10514f],_0x3a1892,_0x10514f+0x1))return!0x0;}for(let _0x5389a1=0x0;_0x5389a1<_0x3a1892['length'];_0x5389a1++){if(_0x3239e9(this,_0x3a1892[_0x5389a1],_0x13ea31,0x0))return!0x0;}return!0x1;function _0x3239e9(_0x263b35,_0x18a32e,_0x2a85c7,_0x5bb5d5){for(let _0x724c1e=_0x5bb5d5;_0x724c1e<_0x2a85c7['length'];_0x724c1e++){const _0x21f83f=_0x2a85c7[_0x724c1e];if(_0x21f83f['type']!==_0x18a32e['type']||_0x21f83f['author']['id']!==_0x18a32e['author']['id']||_0x21f83f['subType']!==_0x18a32e['subType'])continue;if(!Jt(_0x18a32e,_0x21f83f))continue;if('attribute'==_0x18a32e['type']&&_0x18a32e['data']['oldValue']!=_0x21f83f['data']['oldValue'])continue;if('attribute'==_0x18a32e['type']&&_0x263b35['_isBlockAttribute'](_0x18a32e['data']['key']))continue;if('formatBlock'==_0x18a32e['type']){const _0x4410d0=_0x263b35['editor']['model'],_0x4c4d36=_0x18a32e['getContainedElement']();if(_0x4c4d36&&(_0x4410d0['schema']['isObject'](_0x4c4d36)||_0x4410d0['schema']['isLimit'](_0x4c4d36)))continue;}const _0x1ca04e=_0x50bb5d['get'](_0x18a32e),_0x2d14e9=_0x15c837['get'](_0x18a32e),_0x51d364=_0x15c837['get'](_0x21f83f),_0x1bee0a=_0x18a32e['commentThread']&&_0x18a32e['commentThread']['length'],_0x55d81c=_0x21f83f['commentThread']&&_0x21f83f['commentThread']['length'];if(!_0x1bee0a&&_0x1ca04e(_0x51d364,_0x2d14e9))return _0x263b35['_joinSuggestions'](_0x21f83f,_0x18a32e),_0x15c837['delete'](_0x18a32e),!0x0;if(!_0x55d81c&&_0x1ca04e(_0x2d14e9,_0x51d364))return _0x263b35['_joinSuggestions'](_0x18a32e,_0x21f83f),_0x15c837['delete'](_0x21f83f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x944d1c,_0x3bda44){if(_0x944d1c['isMultiRange']){for(const _0x4657ce of _0x3bda44['getRanges']())_0x944d1c['addRange'](_0x4657ce);}else{const _0xc85c49=_0x3bda44['getFirstRange']()['end'];this['_setSuggestionRange'](_0x944d1c,this['_model']['createRange'](_0x944d1c['getFirstRange']()['start'],_0xc85c49));}_0x3bda44['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3859f9,_0x58e3f7,_0x557c29){const _0x59db4f=_0x3859f9['startsWith']('format')||_0x3859f9['startsWith']('attribute')?'FORMATTING':_0x3859f9['toUpperCase']();return o(this['editor']['locale'],_0x58e3f7+'_'+_0x59db4f+'_SUGGESTION_ANNOUNCEMENT',_0x557c29);}['_initAriaMarkerChangeAnnouncements'](){const _0x35a077=this['editor'];if(!_0x35a077['ui'])return;const {ariaLiveAnnouncer:_0x23eca1}=_0x35a077['ui'];_0x1bf8aa(this['_model'],({left:_0x3bfbd6,entered:_0x52a8d5})=>{for(const _0x151a9f of _0x3bfbd6){const {group:_0x1e5eb5,type:_0x12447a}=this['_splitMarkerName'](_0x151a9f['name']);if('suggestion'===_0x1e5eb5){_0x23eca1['announce'](this['_getMarkerAnnouncementText'](_0x12447a,'LEAVE'));break;}}for(const _0x404d2b of _0x52a8d5){const {group:_0x4184a4,type:_0x48af75}=this['_splitMarkerName'](_0x404d2b['name']);if('suggestion'===_0x4184a4){_0x23eca1['announce'](this['_getMarkerAnnouncementText'](_0x48af75,'ENTER',_0x5d66a8(_0x734bd5)));break;}}});}['_processAttributeChanges'](_0x12d145){if(this['_recordAttributeSuggestions'])return!0x1;const _0x88415e=this['editor'],_0x5f9fe4=_0x88415e['model']['document']['differ']['getChanges']();if(0x0==_0x5f9fe4['length'])return!0x1;const _0x287c5b=[],_0xd80af1=_0x5f9fe4['filter'](_0xbe8023=>'attribute'==_0xbe8023['type']),_0x6ab92e=_0x5f9fe4['filter'](_0x29e0e3=>'insert'==_0x29e0e3['type']&&'$text'!=_0x29e0e3['name']),_0x5e1d0c=_0x5f9fe4['filter'](_0x18993e=>'remove'==_0x18993e['type']&&'$text'!=_0x18993e['name']);for(const _0xdd8816 of _0xd80af1)_0x287c5b['push']({'key':_0xdd8816['attributeKey'],'newValue':_0xdd8816['attributeNewValue'],'oldValue':_0xdd8816['attributeOldValue'],'range':Pt(_0xdd8816['range'],_0x88415e['model'])});for(const _0x381585 of _0x6ab92e){const _0xff72b5=_0x5e1d0c['find'](_0x436d61=>_0x436d61['position']['isEqual'](_0x381585['position']));_0xff72b5&&_0x287c5b['push']({'key':m,'newValue':_0x381585['name'],'oldValue':_0xff72b5['name'],'range':_0x88415e['model']['createRangeOn'](_0x381585['position']['nodeAfter'])});}return 0x0!=_0x287c5b['length']&&this['_reduceExistingSuggestions'](_0x12d145,_0x287c5b);}['_processAttributeSuggestions'](_0x29573b){let _0x944df6=!0x1;const _0x1d1fe9=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x73ffb1=>_0x73ffb1['data']['newRange']&&_0x73ffb1['name']['startsWith']('suggestion:attribute:'));for(const _0x48f055 of _0x1d1fe9){const {subType:_0x3e9839,id:_0x2fef1e}=this['_splitMarkerName'](_0x48f055['name']),_0x2566b2=_0x3e9839['split']('|')[0x0];for(const _0x490650 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x490650['id']!=_0x2fef1e&&'attribute'==_0x490650['type']&&_0x490650['data']&&_0x490650['data']['key']==_0x2566b2&&_0x490650['getFirstRange']()['isIntersecting'](_0x48f055['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x490650,_0x48f055['data']['newRange'],_0x29573b),_0x944df6=!0x0);}return _0x944df6;}['_recordAttributeChanges'](_0x521769){this['_recordAttributeSuggestions']=!0x0,_0x521769();}['_isRegisteredAttribute'](_0x1bb105){const _0x20a507=this['_isBlockAttribute'](_0x1bb105),_0x4716e9=this['_inlineAttributeKeys']['has'](_0x1bb105);return _0x20a507||_0x4716e9;}['_reduceExistingSuggestions'](_0x5b0f53,_0x2b6195){if(0x0==_0x2b6195['length'])return!0x1;let _0x5b657d=!0x1;for(const _0x19d259 of _0x2b6195){const _0x101cd3=this['_findSuggestions'](_0x19d259['range'],'attribute')['filter'](_0x543f51=>!_0x543f51['meta']['isNextTo'])['map'](_0x253551=>_0x253551['suggestion']),_0x562a53=_0x39bb84({'newValue':_0x19d259['newValue']});_0x101cd3['filter'](_0x399e05=>{const [_0x30c65c,_0x47adac]=_0x399e05['subType']['split']('|');return _0x30c65c==_0x19d259['key']&&_0x47adac!=_0x562a53;})['forEach'](_0x5c5f4c=>{this['_reduceSuggestionAttributeRange'](_0x5c5f4c,_0x19d259['range'],_0x5b0f53),_0x5b657d=!0x0;});}return _0x5b657d;}['_reduceSuggestionAttributeRange'](_0xf5bee9,_0x41f3b8,_0x20c591){const _0x14a456=_0xf5bee9['getFirstRange']()['getDifference'](_0x41f3b8);0x0!==_0x14a456['length']?0x1!==_0x14a456['length']?this['_breakSuggestionMarker'](_0xf5bee9,_0x41f3b8['start'],_0x41f3b8['end']):this['_setSuggestionRange'](_0xf5bee9,_0x14a456[0x0]):_0x20c591['removeMarker'](_0xf5bee9['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x112104){this['_editor']=_0x112104,this['_model']=_0x112104['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x142b0c,_0x3c4214,_0x146a14,_0x954c63,_0x2ab21e,_0x16900c){return new u(this['_model'],{'type':_0x142b0c,'subType':_0x3c4214,'id':_0x146a14,'author':_0x954c63,'creator':_0x954c63,'attributes':_0x2ab21e,'onAttributesChange':_0x16900c,'onAccept':(..._0x111c17)=>this['getSuggestionCallback'](_0x142b0c,_0x3c4214,'accept')(..._0x111c17),'onDiscard':(..._0x317baf)=>this['getSuggestionCallback'](_0x142b0c,_0x3c4214,'discard')(..._0x317baf)});}['registerCustomCallback'](_0x153e1a,_0x21f7b3,_0xc60d35,_0x5a3d4f){const _0x756a88=_0x153e1a+':'+_0x21f7b3+':'+_0xc60d35;this['_customCallbacks']['set'](_0x756a88,_0x5a3d4f);}['getSuggestionCallback'](_0x4cda28,_0x5871f2,_0x3cbbb2){const _0xef18e0=_0x4cda28+':'+_0x5871f2+':'+_0x3cbbb2;return this['_customCallbacks']['get'](_0xef18e0)||this['_defaultCallbacks']['get'](_0x4cda28+':'+_0x3cbbb2);}['_registerDefaultCallbacks'](){const _0x27bba9=()=>!0x1,_0x3775a0=_0x3be91a=>{_0x3be91a['sort']((_0x56c5ad,_0x182f3e)=>_0x56c5ad['start']['isBefore'](_0x182f3e['start'])?0x1:-0x1),this['_model']['change'](_0x10ac79=>{for(const _0x2ec504 of _0x3be91a){let _0x36693;_0x36693=_0x2ec504['end']['isAtEnd']&&_0x2ec504['end']['parent']==_0x2ec504['start']['nodeAfter']?_0x10ac79['createSelection'](_0x2ec504['start']['nodeAfter'],'on'):_0x10ac79['createSelection'](_0x2ec504),this['_model']['deleteContent'](_0x36693,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x48d442=(_0x448f0e,_0x3e2f7c)=>{_0x3e2f7c&&this['_model']['change'](_0x912177=>{const {commandName:_0x35f485,commandParams:_0x2470c2=[]}=_0x3e2f7c,_0x4a8f69=_0x448f0e['map'](_0x1571e7=>(Vt(_0x1571e7)&&(_0x1571e7=this['_model']['createRange'](_0x1571e7['end'])),_0x1571e7))['filter'](_0x497d6d=>'$graveyard'!==_0x497d6d['root']['rootName']);if(_0x4a8f69['length']<0x1)return;const _0xfd0b0c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x33e8e5=>_0x1c0e5b['fromRange'](_0x33e8e5));_0x912177['setSelection'](_0x4a8f69);for(const _0x59cce7 of this['_editor']['commands']['commands']())_0x59cce7['refresh']();_0x2470c2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x35f485,..._0x2470c2);const _0x2deed0=_0xfd0b0c['filter'](_0x578be1=>'$graveyard'!=_0x578be1['root']['rootName']);_0x2deed0['length']>0x0&&_0x912177['setSelection'](_0x2deed0);for(const _0x12f1b2 of _0xfd0b0c)_0x12f1b2['detach']();});},_0xfd9659=(_0x5807e8,_0x8e0547)=>0x1==_0x5807e8['length']&&0x1==_0x8e0547['length']&&_0x5807e8[0x0]['end']['isEqual'](_0x8e0547[0x0]['start']),_0x438c36=(_0x190fa9,_0x3b16d7,_0x2e8aa8,_0x4099e8)=>Ht(_0x190fa9,_0x3b16d7,_0x2e8aa8,_0x4099e8,this['_model'])?[_0x190fa9,_0x3b16d7]:Ht(_0x3b16d7,_0x190fa9,_0x4099e8,_0x2e8aa8,this['_model'])?[_0x3b16d7,_0x190fa9]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x27bba9),this['_defaultCallbacks']['set']('insertion:discard',_0x3775a0),this['_defaultCallbacks']['set']('insertion:join',_0xfd9659),this['_defaultCallbacks']['set']('insertion:chain',_0x438c36),this['_defaultCallbacks']['set']('deletion:accept',_0x3775a0),this['_defaultCallbacks']['set']('deletion:discard',_0x27bba9),this['_defaultCallbacks']['set']('deletion:join',_0xfd9659),this['_defaultCallbacks']['set']('deletion:chain',_0x438c36),this['_defaultCallbacks']['set']('formatInline:accept',_0x48d442),this['_defaultCallbacks']['set']('formatInline:discard',_0x27bba9),this['_defaultCallbacks']['set']('formatInline:join',_0xfd9659),this['_defaultCallbacks']['set']('formatInline:chain',_0x27bba9),this['_defaultCallbacks']['set']('formatBlock:accept',_0x48d442),this['_defaultCallbacks']['set']('formatBlock:discard',_0x27bba9),this['_defaultCallbacks']['set']('formatBlock:join',_0xfd9659),this['_defaultCallbacks']['set']('formatBlock:chain',_0x27bba9),this['_defaultCallbacks']['set']('attribute:accept',_0x27bba9),this['_defaultCallbacks']['set']('attribute:discard',(_0x3a0211,_0x3c825c)=>{if(!_0x3c825c)return;const _0x1255a3=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4da330=>{if(_0x3c825c['key']==m)for(const _0x2fc7b4 of _0x3a0211){const _0x215843=_0x2fc7b4['start']['nodeAfter'],_0x498868=_0x3c825c['oldValue'];_0x4da330['rename'](_0x215843,_0x498868);}else{if(_0x1255a3['_isBlockAttribute'](_0x3c825c['key'])){for(const _0x2898c5 of _0x3a0211)void 0x0!==_0x3c825c['oldValue']?_0x4da330['setAttribute'](_0x3c825c['key'],_0x3c825c['oldValue'],_0x2898c5['start']['nodeAfter']):_0x4da330['removeAttribute'](_0x3c825c['key'],_0x2898c5['start']['nodeAfter']);}else{for(const _0x5b589d of _0x3a0211)_0x3c825c['oldValue']?_0x4da330['setAttribute'](_0x3c825c['key'],_0x3c825c['oldValue'],_0x5b589d):_0x4da330['removeAttribute'](_0x3c825c['key'],_0x5b589d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xfd9659);}}function Ot(_0x10e892,_0x24d109,_0x4501ee){for(const _0x464618 of _0x24d109['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x464618['root']==_0x464618)return!0x1;if(!_0x4501ee['containsItem'](_0x464618))return!0x1;if(_0x10e892['isObject'](_0x464618)||_0x10e892['isLimit'](_0x464618))return!0x0;}return!0x1;}function Vt(_0x5f1e55){return _0x5f1e55['end']['parent']==_0x5f1e55['start']['nodeAfter']&&_0x5f1e55['end']['isAtStart'];}function Ut(_0x3f330b,_0xea428c,_0x94db30,_0x5258e5){const _0x406360=_0x184210=>!_0x184210['item']['is']('$textProxy')&&!_0x5258e5['isObject'](_0x184210['item']),_0x4e2c90=_0x3f330b['start']['getLastMatchingPosition'](_0x406360),_0x3eadd1=_0x3f330b['end']['getLastMatchingPosition'](_0x406360,{'direction':'backward'});return(!_0x3f330b['start']['isEqual'](_0x4e2c90)||!_0x3f330b['end']['isEqual'](_0x3eadd1))&&(_0x4e2c90['isBefore'](_0x3eadd1)?_0x94db30['updateMarker'](_0xea428c,{'range':_0x94db30['createRange'](_0x4e2c90,_0x3eadd1)}):_0x94db30['removeMarker'](_0xea428c),!0x0);}function Gt(_0x4dea5c){return _0x39bb84(_0x4dea5c);}function Ft(_0x3dbbee){const _0x348737=_0x3dbbee['start']['nodeAfter'];return _0x348737&&_0x348737['is']('element');}function Pt(_0x1142d2,_0x2b431d){return null==_0x1142d2['end']['nodeBefore']&&_0x1142d2['end']['parent']==_0x1142d2['start']['nodeAfter']?Lt(_0x1142d2['start']['nodeAfter'],_0x2b431d):_0x1142d2;}function Lt(_0xa73896,_0x4f0e47){const _0x52d414=_0x4f0e47['schema']['isObject'](_0xa73896)||_0x4f0e47['schema']['isSelectable'](_0xa73896);return _0x4f0e47['createRange'](_0x4f0e47['createPositionAt'](_0xa73896,'before'),_0x52d414?_0x4f0e47['createPositionAfter'](_0xa73896):_0x4f0e47['createPositionAt'](_0xa73896,'end'));}function Ht(_0x450978,_0x502cb8,_0x1ff282,_0x5b385d,_0x498046){if(_0x450978['next'])return!0x1;if(!Jt(_0x450978,_0x502cb8))return!0x1;if(_0x1ff282['end']['isEqual'](_0x5b385d['start']))return!0x0;if(_0x450978['type']!=_0x502cb8['type'])return!0x1;if(!_0x1ff282['end']['isTouching'](_0x5b385d['start']))return!0x1;const _0x2227f2=_0x498046['createRange'](_0x1ff282['end'],_0x5b385d['start'])['getWalker']();for(const _0x1eb920 of _0x2227f2)if(['elementStart','elementEnd']['includes'](_0x1eb920['type'])&&_0x498046['schema']['isLimit'](_0x1eb920['item']))return!0x1;return!0x0;}function Jt(_0xf17475,_0x52c84f){if(!_0xf17475['_isDataLoaded']||!_0x52c84f['_isDataLoaded'])return!0x1;const _0x5502f3=new Set(Object['keys'](_0xf17475['attributes'])),_0x3a2979=new Set(Object['keys'](_0x52c84f['attributes']));if(_0x5502f3['delete']('groupId'),_0x3a2979['delete']('groupId'),0x0==_0x5502f3['size']&&0x0==_0x3a2979['size'])return!0x0;if(_0x5502f3['size']!=_0x3a2979['size'])return!0x1;const _0x2666f9={..._0xf17475['attributes']},_0x27eac4={..._0x52c84f['attributes']};return delete _0x2666f9['groupId'],delete _0x27eac4['groupId'],JSON['stringify'](_0x2666f9)==JSON['stringify'](_0x27eac4);}function qt(_0xc012b2,_0x1811f3){const _0x157613=zt(_0xc012b2['attributes']),_0x3ed159=zt(_0x1811f3);if(!_0xc012b2['_isDataLoaded'])return!0x1;for(const _0x5002c4 of Object['keys'](_0x3ed159))if(!_0x5b354c(_0x157613[_0x5002c4],_0x3ed159[_0x5002c4]))return!0x1;return!0x0;}function zt(_0x3aa94b){const _0x3ebb42=Object['assign']({},_0x3aa94b);return delete _0x3ebb42['skipNestingCheck'],delete _0x3ebb42['tablePasteChainId'],_0x3ebb42;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x2b690f(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x284169,_0x291b01,_0x372130,_0x87c061){super(),this['model']=_0x291b01,this['view']=_0x372130,this['commentThreadController']=_0x87c061,this['_editor']=_0x284169,this['_acceptCommand']=_0x284169['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x284169['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x546193,_0x504b63)=>_0x546193||_0x504b63),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3cd83a=>_0x3cd83a&&this['_editor']['model']['canEditAt'](_0x291b01['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x298028=>_0x298028&&this['_editor']['model']['canEditAt'](_0x291b01['getRanges']())),this['_pendingAction']=null,_0x372130['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x372130,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x372130,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x372130,'change:isDirty',()=>{_0x372130['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 _0x19a58b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x19a58b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1a1f2a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5e69f4,_0x461df2,_0x5de4c2,_0x2b4957){super(_0x5e69f4),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x593ead(_0x5e69f4,o(_0x5e69f4,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x461df2['authoredAt']),this['bind']('authoredAt')['to'](_0x461df2),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',_0x461df2,'authoredAt',this,'descriptionParts',(_0xeaacbf,_0x28dd33,_0x5edf7f)=>{const _0x228337=_0x5edf7f['map'](_0x42a413=>ls(_0x42a413['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xeaacbf-0x1,_0x461df2['author']['name'],_0x28dd33?_0x2b4957['formatDateTime'](_0x28dd33):'',new DOMParser()['parseFromString'](_0x228337,'text/html')['body']['textContent']]);}),this['focusables']=new _0x13eefd(),this['focusTracker']=new _0x21770b(),this['keystrokes']=new _0x2c4637(),this['focusCycler']=new _0x5f435a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x382ee7=>_0x382ee7['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x461df2,this['_localUser']=_0x5de4c2,this['_config']=_0x2b4957,_0x2b4957['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4f811d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x145020}=this['_config'];this['commentsListView']=new _0x145020(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',_0x120339=>_0x120339+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xab7db4,_0x3ec4d0)=>_0xab7db4||!!_0x3ec4d0);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3ec779}=this['_config'],_0x2c37ab=new _0x3ec779(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x523ffd=_0x2c37ab['commentInputView'];return _0x2c37ab['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x523ffd,'value',(_0x31b085,_0x3a3505,_0x3642d8)=>!!_0x3642d8||_0x31b085&&!_0x3a3505),_0x523ffd['on']('submit',(_0x188ead,_0x3ba853)=>{this['fire']('addComment',_0x3ba853),_0x523ffd['editor']['setData']('');}),_0x523ffd['on']('cancel',()=>this['focus']()),_0x523ffd['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2c37ab;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x35ffdb,_0x47459f,_0x578fac,_0xf4fdff){super(_0x35ffdb,_0x47459f,_0x578fac,_0xf4fdff),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xab57ce=>_0xab57ce&&_0xab57ce[0x0]?_0xab57ce[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3f25d2,_0x35500b)=>{let _0x316bc0='';for(const _0x20e4f9 of _0x3f25d2)_0x316bc0+='<p>'+ls(_0x20e4f9['content'],_0x20e4f9['color'])+'</p>';return _0x35500b?_0x316bc0:_0x31e836(_0x316bc0,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xf4fdff['SuggestionView'](_0x35ffdb,_0x47459f,{'formatDateTime':_0xf4fdff['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 _0x57442c=this['bindTemplate'],_0xdb9c81=[this['suggestionView']];return this['commentsListView']&&_0xdb9c81['push'](this['commentsListView']),this['commentThreadInputView']&&_0xdb9c81['push'](this['commentThreadInputView']),_0xdb9c81['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x57442c['if']('isActive','ck-suggestion-wrapper--active'),_0x57442c['to']('type',_0x5f21e9=>'ck-suggestion-'+_0x5f21e9),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':_0x57442c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xdb9c81};}['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 _0x1a1f2a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5bf296,_0x15bc96,_0x5053cb){super(_0x5bf296),this['_model']=_0x15bc96,this['_config']=_0x5053cb,this['set']('description',''),this['bind']('authoredAt')['to'](_0x15bc96),this['acceptButton']=this['_createButton'](o(_0x5bf296,'Accept\x20suggestion'),_0x54e97a['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5bf296,'Discard\x20suggestion'),_0x54e97a['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3cbe58(_0x5bf296,_0x15bc96['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x13eefd([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x21770b(),this['keystrokes']=new _0x2c4637(),this['focusCycler']=new _0x5f435a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3fe9bf=>_0x3fe9bf['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x53bcb6=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x53bcb6['innerHTML']=this['description'],this['on']('change:description',(_0x3d549d,_0x107d37,_0x2b8b11)=>{_0x53bcb6['innerHTML']=_0x2b8b11;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4872f0=this['bindTemplate'],_0x127ef9=[{'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':_0x4872f0['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4872f0['to']('authoredAt',_0x5a816f=>this['_config']['formatDateTime'](_0x5a816f))}]}]},{'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']&&_0x127ef9['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':_0x127ef9}]};}['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'](_0x537264,_0x57b565,_0x4c8b7d,_0x42eda8,_0x1eac95){const _0x452663=new _0x595eaa(this['locale']);return _0x452663['set']({'label':_0x537264,'icon':_0x57b565,'tooltip':!0x0,'tooltipPosition':_0x1eac95}),_0x452663['extendTemplate']({'attributes':{'class':_0x4c8b7d}}),_0x452663['on']('execute',()=>{this['fire'](_0x42eda8,this['_model']['id']);}),_0x452663;}['_setupKeyboardNavigation'](){const _0x25069e=this['element'];this['keystrokes']['listenTo'](_0x25069e);for(const _0x11dd31 of this['focusables'])this['focusTracker']['add'](_0x11dd31['element']),this['keystrokes']['listenTo'](_0x11dd31['element']);this['keystrokes']['set']('enter',(_0x574f9f,_0x3366f8)=>{_0x25069e===_0x574f9f['target']&&(this['focusCycler']['focusFirst'](),_0x3366f8());}),this['keystrokes']['set']('esc',(_0x23ad4d,_0x454adb)=>{_0x25069e!==_0x23ad4d['target']&&(this['focus'](),_0x454adb());});}}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 _0x5eca65{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x17bd53,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x16e876){super(_0x16e876),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x41fefe=this['editor']['config'];_0x41fefe['define']('trackChanges.SuggestionThreadView',re),_0x41fefe['define']('trackChanges.SuggestionView',ce),_0x41fefe['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x41fefe['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1164f1,_0x3cb9f7){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x43fedc,_0x4d1147]of this['_handleControllerBuffer']){const _0x472596=this['_suggestionToController']['has'](_0x43fedc);_0x472596||_0x4d1147?_0x472596&&_0x4d1147&&this['_destroyController'](_0x43fedc):this['_initializeController'](_0x43fedc);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1164f1,_0x3cb9f7);}['init'](){const _0x2e4f51=this['editor'],_0x4545fe=_0x2e4f51['plugins']['get']('TrackChangesEditing'),_0x27a6a6=_0x2e4f51['plugins']['get']('Annotations'),_0xdbc3e9=_0x2e4f51['plugins']['get']('EditorAnnotations'),_0x256a89=_0x2e4f51['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xdbc3e9['addSourceCollector'](()=>{const _0x479680=[];for(const [_0x385c31,_0x184cee]of Array['from'](this['_suggestionToController'])){const _0x6fa42c=_0x385c31['getAllAdjacentSuggestions'](),_0x383cdb=[];for(const _0x4019e4 of _0x6fa42c){if(!_0x4019e4['isInContent'])continue;if(_0x4019e4['isMultiRange']){_0x383cdb['push'](..._0x4019e4['getRanges']());continue;}const _0x4a02bb=_0x4019e4['getFirstRange']();if(_0x383cdb['length']>0x0){const _0x3a4191=_0x383cdb[0x0]['getJoined'](_0x4a02bb);if(_0x3a4191){_0x383cdb[0x0]=_0x3a4191;continue;}}_0x383cdb['push'](_0x4a02bb);}_0x479680['push']([_0x184cee['view'],_0x383cdb]);}return _0x479680;}),this['listenTo'](_0x4545fe,'suggestionLoaded',(_0x16900b,_0x1dabbd)=>{this['listenTo'](_0x1dabbd,'change:previous',(_0x64ad56,_0x214c26,_0x543650,_0x43eb3d)=>{_0x1dabbd['isInContent']&&(null==_0x543650?(this['_updateController'](_0x43eb3d['head']),this['_handleSuggestionControllerDelayed'](_0x1dabbd,!0x1)):(this['_updateController'](_0x543650['head']),null==_0x43eb3d&&this['_handleSuggestionControllerDelayed'](_0x1dabbd,!0x0)));}),null!==_0x1dabbd['previous']?this['_updateController'](_0x1dabbd['head']):this['_handleSuggestionControllerDelayed'](_0x1dabbd,!0x1);}),this['listenTo'](_0x4545fe,'suggestionUnloaded',(_0x118102,_0x41c11f,_0xd448ff)=>{this['stopListening'](_0x41c11f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x41c11f),this['_suggestionToController']['has'](_0x41c11f)&&this['_destroyController'](_0x41c11f),_0xd448ff&&this['_updateController'](_0xd448ff['head']);}),this['listenTo'](_0x4545fe,'suggestionChanged',(_0x285bc6,_0x1732eb)=>{this['_updateController'](_0x1732eb);}),this['listenTo'](_0x27a6a6,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x256a89,'addComment',(_0x4409ff,{threadId:_0x5e958e,isFromAdapter:_0x1d082a})=>{if(_0x1d082a||!_0x4545fe['hasSuggestion'](_0x5e958e))return;const _0x5e4993=_0x4545fe['getSuggestion'](_0x5e958e);this['_suggestionToController']['get'](_0x5e4993)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x2db5d8=this['editor']['plugins']['get']('Annotations'),_0x80d8d1=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfa4b63=Array['from'](_0x2db5d8['activeAnnotations'],_0x4a9552=>_0x4a9552['innerView'])['filter'](_0x2153d6=>this['_viewToController']['has'](_0x2153d6)),_0x518a49=[];for(const _0x44b948 of _0xfa4b63){const _0x304277=this['_viewToController']['get'](_0x44b948)['model']['getAllAdjacentSuggestions']();_0x518a49['push'](..._0x304277['reduce']((_0x43d66d,_0x3e56cc)=>[..._0x43d66d,..._0x3e56cc['getMarkerNames']()],[]));}_0x80d8d1['activeMarkers']=_0x518a49;}['_addUIComponentsToFactory'](){const _0x165f7c=this['editor'],_0x4a615c=_0x165f7c['locale'],_0x570272=o(_0x4a615c,'Track\x20changes'),_0x538559=new Wt([{'type':'switchbutton','model':new _0x440560({'withText':!0x0,'isToggleable':!0x0,'label':_0x570272,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x440560({'withText':!0x0,'label':o(_0x4a615c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x440560({'withText':!0x0,'label':o(_0x4a615c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x440560({'withText':!0x0,'label':o(_0x4a615c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x440560({'withText':!0x0,'label':o(_0x4a615c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x38b7e1 of _0x538559)if(me(_0x38b7e1)){const _0x349800=_0x165f7c['commands']['get'](_0x38b7e1['model']['commandName']);_0x38b7e1['model']['bind']('isOn','isEnabled')['to'](_0x349800,'value','isEnabled');}_0x165f7c['ui']['componentFactory']['add']('trackChanges',_0x3f624c=>this['_createToolbarButton'](_0x3f624c,_0x538559,_0x570272)),_0x165f7c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1b5743=>this['_createMenuBarMenu'](_0x1b5743,_0x538559,_0x570272));}['_createToolbarButton'](_0x443a0d,_0x43d272,_0x55c2ab){const _0x6640ae=Qt(_0x443a0d,_0x3f6de1),_0x1ae102=this['editor']['commands']['get']('trackChanges');_0x6640ae['buttonView']['set']({'tooltip':_0x55c2ab,'label':_0x55c2ab,'icon':he}),_0x6640ae['buttonView']['bind']('isOn')['to'](_0x1ae102,'value'),_0x6640ae['buttonView']['on']('execute',()=>{_0x1ae102['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x6640ae,_0x43d272,{'role':'menu'});const _0xf48647=[];for(const _0x49076d of _0x43d272)me(_0x49076d)&&_0xf48647['push'](this['editor']['commands']['get'](_0x49076d['model']['commandName']));const _0x5869ba=_0x6640ae['buttonView'];return _0x5869ba['actionView']['unbind']('isEnabled'),_0x5869ba['arrowView']['unbind']('isEnabled'),_0x5869ba['actionView']['bind']('isEnabled')['to'](_0x1ae102,'isEnabled'),_0x5869ba['arrowView']['bind']('isEnabled')['toMany'](_0xf48647,'isEnabled',(..._0x3d7ca5)=>_0x3d7ca5['some'](_0x430859=>_0x430859)),_0x6640ae['on']('execute',_0x399ad3=>{this['editor']['execute'](_0x399ad3['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x6640ae;}['_createMenuBarMenu'](_0x138893,_0xceaeee,_0xd092e7){const _0x171169=new Yt(_0x138893),_0x10674f=this['editor']['commands']['get']('trackChanges');_0x171169['buttonView']['set']({'label':_0xd092e7,'icon':he});const _0x3e2d63=new Zt(_0x138893);for(const _0x11515f of _0xceaeee){if('separator'==_0x11515f['type']){_0x3e2d63['items']['add'](new Xt(_0x138893));continue;}const _0x49f24b=new te(_0x138893,_0x171169),_0x2920eb=new _0x2a1bb3(_0x138893),_0x3f5108=_0x11515f['model'];_0x2920eb['bind'](...Object['keys'](_0x3f5108))['to'](_0x3f5108),_0x2920eb['delegate']('execute')['to'](_0x171169),_0x2920eb['on']('execute',()=>{this['editor']['execute'](_0x3f5108['commandName']),this['editor']['editing']['view']['focus']();}),_0x49f24b['children']['add'](_0x2920eb),_0x3e2d63['items']['add'](_0x49f24b);}return _0x171169['bind']('isEnabled')['to'](_0x10674f,'isEnabled'),_0x171169['panelView']['children']['add'](_0x3e2d63),_0x171169;}['_initializeController'](_0x21edc7){const _0x3ca7d4=this['editor'],_0x129327=_0x3ca7d4['config'],_0xae806a=_0x3ca7d4['plugins']['get']('Annotations'),_0x52c9df=_0x3ca7d4['plugins']['get']('CommentsRepository'),_0x2d609f=_0x3ca7d4['plugins']['get']('EditorAnnotations'),_0x3564fd=_0x3ca7d4['plugins']['get'](_0x17bd53)['me'],_0x2420d2=_0x129327['get']('trackChanges')['SuggestionThreadView'],_0x577353=_0x129327['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x537c0a,CommentThreadInputView:_0x4090e0}=_0x3ca7d4['plugins']['get']('CommentsUI');let _0x13b737,_0x484e44,_0x664720;this['_annotationViews']['has'](_0x21edc7['id'])?(_0x484e44=this['_annotationViews']['get'](_0x21edc7['id']),_0x13b737=_0x484e44['mainView']):(_0x13b737=new _0x2420d2(_0x3ca7d4['locale'],_0x21edc7,_0x3564fd,{'disableComments':this['_disableComments'],'editorConfig':_0x129327['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x129327['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x129327['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x129327['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x43e9aa(_0x129327['get']('locale')),'CommentView':_0x129327['get']('comments')['CommentView'],'CommentsListView':_0x537c0a,'CommentThreadInputView':_0x4090e0,'SuggestionView':_0x577353}),_0x13b737['suggestionView']['acceptButton']['on']('execute',()=>{_0x3ca7d4['editing']['view']['focus']();}),_0x13b737['suggestionView']['discardButton']['on']('execute',()=>{_0x3ca7d4['editing']['view']['focus']();}),_0x484e44=_0xae806a['createAnnotationView'](this['editor']['locale'],_0x13b737),_0x484e44['bind']('isDirty')['to'](_0x13b737,'isDirty'),_0x484e44['bind']('length')['to'](_0x13b737),_0x484e44['bind']('type')['to'](_0x13b737,'type',_0x1c8504=>'suggestion-'+_0x1c8504),_0x13b737['on']('escape',()=>{_0x664720['fire']('escape');}),this['_annotationViews']['set'](_0x21edc7['id'],_0x484e44));const _0x2fddd0=_0x52c9df['createCommentThreadController'](_0x21edc7['commentThread'],_0x13b737),_0x54c61a=new ae(_0x3ca7d4,_0x21edc7,_0x13b737,_0x2fddd0),_0x197aff=_0x21edc7['getAllAdjacentSuggestions']()['filter'](_0x55d77e=>_0x55d77e['isInContent']);_0x13b737['descriptionParts']=_0x3ca7d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x197aff),this['_suggestionToController']['set'](_0x21edc7,_0x54c61a),this['_viewToController']['set'](_0x13b737,_0x54c61a),_0x664720=_0xae806a['createAnnotation']({'view':_0x484e44,'target':()=>{const _0x432504=[],_0x2c0863=_0x21edc7['getAllAdjacentSuggestions']()['filter'](_0x17172b=>_0x17172b['isInContent']);for(const _0x5006ec of _0x2c0863)_0x432504['push'](..._0x5006ec['getMarkers']());return _0x46e998(_0x3ca7d4['editing'],_0x432504);},'type':()=>'suggestion-'+_0x54c61a['view']['type']}),_0x52c9df['_bindAnnotationToEditors'](_0x13b737,_0x664720),_0xae806a['add'](_0x664720),_0x2d609f['registerAnnotation'](_0x664720);}['_destroyController'](_0x5c0660){const _0x5ab409=this['editor']['plugins']['get']('CommentsRepository'),_0x550b59=this['editor']['plugins']['get']('Annotations'),_0x155ed9=this['_suggestionToController']['get'](_0x5c0660),_0x203523=_0x155ed9['view'],_0x3ddd4b=_0x550b59['getByInnerView'](_0x203523);_0x5ab409['_unbindEditors'](_0x203523),_0x3ddd4b&&_0x550b59['remove'](_0x3ddd4b),this['_suggestionToController']['delete'](_0x5c0660),this['_viewToController']['delete'](_0x203523),_0x155ed9['destroy']();}['_updateController'](_0x342d8b){if(!_0x342d8b['isInContent']||!this['_suggestionToController']['has'](_0x342d8b))return;const _0xf8aacc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d21d3=this['_suggestionToController']['get'](_0x342d8b),_0x413a6f=_0x342d8b['getAllAdjacentSuggestions']();_0x4d21d3['view']['descriptionParts']=_0xf8aacc['descriptionFactory']['getDescriptions'](_0x413a6f);}['destroy'](){for(const _0x22d997 of this['_suggestionToController']['keys']())this['_destroyController'](_0x22d997);for(const _0x50f7af of this['_annotationViews']['values']())_0x50f7af['mainView']['destroy']();super['destroy']();}}function me(_0x281d0f){return'model'in _0x281d0f;}class k extends _0x5eca65{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x24c2be){this['editor']['plugins']['get'](p)['adapter']=_0x24c2be;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x18661f){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x18661f);}['getSuggestions']({skipNotAttached:_0x35001f=!0x1,toJSON:_0x4e2a78=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x35001f,'toJSON':_0x4e2a78});}['getSuggestion'](_0x47e4de){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x47e4de);}}const T=['Pagination'];class P extends _0x5eca65{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x137e5e=this['editor'];if(_0x137e5e['config']['define']('trackChangesData.editorCreator',_0x4f000a=>{const _0xe180c6=_0x137e5e['model']['document']['getRootNames']()['reduce']((_0x25560b,_0x3c2d36)=>(_0x25560b[_0x3c2d36]='',_0x25560b),{});return _0x137e5e['constructor']['create'](_0xe180c6,_0x4f000a);}),'function'!=typeof _0x137e5e['config']['get']('trackChangesData')['editorCreator'])throw new _0x97e699('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3d4d21){return N(this['editor'],!0x0,_0x3d4d21);}['getDataWithDiscardedSuggestions'](_0x2a7afb){return N(this['editor'],!0x1,_0x2a7afb);}}class D extends _0x5eca65{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x38e427){super(_0x38e427),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(_0x192f5b){return void 0x0!==_0x192f5b['getRootsAttributes'];}async function N(_0x5353c8,_0x17c279,_0x1babdf){const _0x3f0faa=_0x16a92b(_0x5353c8,T);_0x3f0faa['plugins']['push'](p,D),_0x3f0faa['rootsAttributes']=v(_0x5353c8)?_0x5353c8['getRootsAttributes']():void 0x0;const _0x2d245a=document['createDocumentFragment'](),_0x3d751e=_0x5353c8['config']['get']('trackChangesData')['editorCreator'],_0xdf5f02=await _0x3d751e(_0x3f0faa,()=>function(_0xcdb850){const _0x428d38=document['createElement']('div');return _0xcdb850['appendChild'](_0x428d38),_0x428d38;}(_0x2d245a));!function(_0x4a1739,_0xdfe665){const _0x185300=_0x4a1739['model']['document']['getRootNames']()['reduce']((_0x23cfef,_0x246d53)=>(_0x23cfef[_0x246d53]=_0x4a1739['data']['get']({'rootName':_0x246d53}),_0x23cfef),{}),_0x16afc6=_0x4a1739['plugins']['get']('Users')['users']['map'](_0x3eeadc=>({'id':_0x3eeadc['id'],'name':_0x3eeadc['name']})),_0x52d11e=_0x4a1739['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x40aad0=_0x4a1739['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x204166=_0xdfe665['plugins']['get']('Users'),_0x1ee78d=_0xdfe665['plugins']['get']('TrackChangesEditing'),_0xe4b8a3=_0xdfe665['plugins']['get']('CommentsRepository');for(const _0x4ba765 of _0xe4b8a3['getCommentThreads']())_0x4ba765['remove']();for(const _0x4ae7a4 of _0x16afc6)_0x204166['getUser'](_0x4ae7a4['id'])||_0x204166['addUser'](_0x4ae7a4);_0x204166['me']||_0x204166['useAnonymousUser']();for(const _0x156a84 of _0x40aad0)_0xe4b8a3['addCommentThread'](_0x156a84);for(const _0x5666c3 of _0x52d11e)_0x1ee78d['addSuggestionData'](_0x5666c3);_0xdfe665['data']['set'](_0x185300);}(_0x5353c8,_0xdf5f02),_0xdf5f02['execute'](_0x17c279?'acceptAllSuggestions':'discardAllSuggestions');const _0x342630=v(_0xdf5f02)?_0xdf5f02['getFullData'](_0x1babdf):_0xdf5f02['data']['get'](_0x1babdf);return await _0xdf5f02['destroy'](),_0x342630;}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 _0x8c8d34,PendingActions as _0x5a6a4e,icons as _0x468f77}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x153977,ObservableMixin as _0x4c5c55,uid as _0x3143a6,insertToPriorityArray as _0x4059f5,priorities as _0x1451a3,logWarning as _0x23aa7b,getEnvKeystrokeText as _0x3e0db4,FocusTracker as _0x304013,KeystrokeHandler as _0x149256,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3e6c79,View as _0x22cb69,ViewCollection as _0x583465,FocusCycler as _0x3096cd,ViewModel as _0x5bf8f3,createDropdown as Qt,SplitButtonView as _0x7268c3,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x283d7f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2c0b1d,hashObject as _0x4e16b3,surroundingMarkersDetector as _0x4ef66f,FOCUS_ANNOTATION_KEYSTROKE as _0x2141d8,AriaDescriptionView as _0x411d30,setupThreadKeyboardNavigation as _0x4bca5c,trimHtml as _0x12643e,UserView as _0x543256,LateFocusButtonView as _0x536629,getDateTimeFormatter as _0x1b61e2,getAllMarkersDomElementsSorted as _0x58809b,sanitizeEditorConfig as _0x2cb0fa}from'ckeditor5-collaboration/dist/index.js';import{Element as _0xabcd64,LiveRange as _0x4523d0,LivePosition as _0x2d06f4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x277b36,toWidget as _0x275a7c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x585bfa,set as _0x394d0e,isEqual as _0x2dc408,unset as _0x3fdaf5,omit as Tt}from'lodash-es';import{Delete as _0x394338,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x29ad21,ShiftEnter as _0x232db2}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0xdbac1e,_0x246112){super(_0xdbac1e),this['_enabledCommands']=_0x246112,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 _0x11dcdd of this['editor']['commands']['commands']())_0x11dcdd['affectsData']&&!this['_enabledCommands']['has'](_0x11dcdd)&&_0x11dcdd['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x35c0c4 of this['editor']['commands']['commands']())_0x35c0c4['affectsData']&&!this['_enabledCommands']['has'](_0x35c0c4)&&_0x35c0c4['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x4ced2e,_0x78b7da){super(_0x4ced2e),this['_suggestions']=_0x78b7da,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x29ae55){const _0x12ebc4=this['_suggestions']['get'](_0x29ae55);if(!_0x12ebc4)throw new _0x153977('track-changes-accept-suggestion-not-found',this);const _0x565452=_0x12ebc4['getRanges']();this['editor']['model']['canEditAt'](_0x565452)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x12ebc4);}}class R extends ts{['_suggestions'];constructor(_0x248586,_0x595580){super(_0x248586),this['_suggestions']=_0x595580,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x25317c){const _0x4d2353=this['_suggestions']['get'](_0x25317c);if(!_0x4d2353)throw new _0x153977('track-changes-discard-suggestion-not-found',this);const _0x3aa27b=_0x4d2353['getRanges']();this['editor']['model']['canEditAt'](_0x3aa27b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4d2353);}}function ls(_0x160cf5,_0x4c7794){let _0x196624='';return _0x196624+=_0x160cf5['split']('*')['map']((_0x5a971e,_0x417fe1)=>_0x417fe1%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x5a971e)+'</span>':nn(_0x5a971e))['join'](''),_0x4c7794&&(_0x196624+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4c7794['value']+'\x22\x20title=\x22'+_0x4c7794['title']+'\x22></span>'),_0x196624;}function nn(_0x4d87f5){const _0x8504dd=document['createElement']('span');return _0x8504dd['innerText']=_0x4d87f5,_0x8504dd['innerHTML'];}function ss(_0x375dcb){return _0x375dcb['sort']((_0x1ace9e,_0x8a9bf5)=>'deletion'==_0x1ace9e['type']&&'deletion'!=_0x8a9bf5['type']?-0x1:'deletion'!=_0x1ace9e['type']&&'deletion'==_0x8a9bf5['type']?0x1:0x0);}function to(_0x4dd900,_0x51495f){let _0x18bc61,_0x11891c=0x0;const _0x41de1f=[],_0x39893a=_0x51495f['schema'];for(;_0x11891c<_0x4dd900['length'];){const _0x15018f=_0x4dd900[_0x11891c],_0x40dc13=_0x4dd900[_0x11891c+0x1];_0x18bc61||(_0x18bc61=_0x51495f['createPositionBefore'](_0x15018f)),on(_0x51495f,_0x15018f,_0x40dc13)||(_0x41de1f['push'](_0x51495f['createRange'](_0x18bc61,_0x39893a['isObject'](_0x15018f)?_0x51495f['createPositionAfter'](_0x15018f):_0x51495f['createPositionAt'](_0x15018f,'end'))),_0x18bc61=null),_0x11891c++;}return _0x41de1f;}function on(_0x5c6c52,_0x11e7b5,_0x222d4e){if(!_0x222d4e)return!0x1;const _0x203207=_0x5c6c52['createPositionAfter'](_0x11e7b5),_0x58a2a3=_0x5c6c52['createPositionBefore'](_0x222d4e);return _0x203207['isTouching'](_0x58a2a3);}function rs(_0x311a2b,_0x119bbb,_0x78f6b5){for(;_0x78f6b5['length'];){const _0x3d24f5=_0x78f6b5['splice'](0x0,0x64);_0x311a2b['change'](()=>{for(const _0x3cd637 of _0x3d24f5)_0x3cd637['isInContent']&&_0x119bbb['execute'](_0x3cd637['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x1dda57,_0x352cd5,_0x2ffe4c){super(_0x1dda57),this['_command']=_0x352cd5,this['_suggestions']=_0x2ffe4c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5c9b64=Array['from'](this['_suggestions']['values']())['some'](_0x171c5d=>_0x171c5d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5c9b64;}['execute'](){const _0x54fd45=ss(Array['from'](this['_suggestions']['values']()));for(const _0x4eb39f of _0x54fd45){const _0x4e9890=_0x4eb39f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4e9890))return;}rs(this['editor']['model'],this['_command'],_0x54fd45);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x38c14e,_0x4ca093,_0x56503d){super(_0x38c14e),this['_command']=_0x4ca093,this['_suggestions']=_0x56503d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x47b466=this['editor']['model']['document']['selection'],_0x482875=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5a4ed6,_0x28ee67){const _0x44d59c=Array['from'](_0x5a4ed6['getRanges']()),_0x417efa=new Set();for(const _0x5413b6 of _0x28ee67)if(_0x5413b6['isInContent']){for(const _0x139b7b of _0x44d59c)for(const _0x3070f3 of _0x5413b6['getRanges']())(_0x139b7b['isIntersecting'](_0x3070f3)||_0x5a4ed6['isCollapsed']&&!_0x5413b6['isMultiRange']&&_0x5413b6['next']&&_0x3070f3['end']['isTouching'](_0x139b7b['start']))&&_0x417efa['add'](_0x5413b6);}return _0x417efa;}(_0x47b466,_0x482875),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3456ef=ss(Array['from'](this['_selectedSuggestions']));for(const _0x109ce7 of _0x3456ef){const _0x2d8c38=_0x109ce7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2d8c38))return;}rs(this['editor']['model'],this['_command'],_0x3456ef);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x4c5c55(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xb7950b,_0x154969){super(),this['id']=_0x154969['id'],this['type']=_0x154969['type'],this['subType']=_0x154969['subType']||null,this['author']=_0x154969['author'],this['creator']=_0x154969['creator']||_0x154969['author'],this['isExternal']=Boolean(_0x154969['attributes']&&_0x154969['attributes']['@external']),this['data']=null,this['_model']=_0xb7950b,this['_onAccept']=_0x154969['onAccept'],this['_onDiscard']=_0x154969['onDiscard'],this['_onAttributesChange']=_0x154969['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x154969['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 _0x1fb133=this;for(;_0x1fb133['previous'];)_0x1fb133=_0x1fb133['previous'];return _0x1fb133;}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'](_0x2bcae0){this['_markerNames']['add'](_0x2bcae0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1034fc=>this['_model']['markers']['get'](_0x1034fc))['filter'](_0x21132e=>_0x21132e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x325df6=>{for(const _0xa8ec51 of this['getMarkers']())_0x325df6['removeMarker'](_0xa8ec51);}),this['_markerNames']['clear']();}['removeMarker'](_0x53c94c){this['_model']['change'](_0x473f36=>{_0x473f36['removeMarker'](_0x53c94c);}),this['_markerNames']['delete'](_0x53c94c);}['addRange'](_0x5520d2){const _0x3ca0ae='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3ca0ae),this['_model']['change'](_0x1d0d73=>{_0x1d0d73['addMarker'](_0x3ca0ae,{'range':_0x5520d2,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2acc20){for(const _0x8851e of this['getRanges']())if(_0x8851e['isIntersecting'](_0x2acc20))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x28ab2c=>_0x28ab2c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x920e77,_0x1ca7d2)=>[..._0x920e77,..._0x1ca7d2['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x456f74=this['getRanges']();if(0x1!=_0x456f74['length'])return null;const _0x2561d1=_0x456f74[0x0],_0x2a7827=_0x2561d1['start']['nodeAfter'],_0x589927=_0x2561d1['end']['nodeBefore'];return _0x2a7827 instanceof _0xabcd64?_0x2a7827!=_0x589927?null:_0x2a7827: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 _0x175fad=[];let _0x57ca35=this['head'];for(;_0x57ca35;)_0x175fad['push'](_0x57ca35),_0x57ca35=_0x57ca35['next'];return _0x175fad;}['setAttribute'](_0xdb451b,_0x5e19f4){const _0x1972da=_0x585bfa(this['attributes']);_0x394d0e(_0x1972da,_0xdb451b,_0x5e19f4),_0x2dc408(_0x1972da,this['attributes'])||(this['attributes']=_0x1972da,this['_onAttributesChange'](_0x1972da));}['removeAttribute'](_0xc0d4a9){const _0x455c58=_0x585bfa(this['attributes']);_0x3fdaf5(_0x455c58,_0xc0d4a9),_0x2dc408(_0x455c58,this['attributes'])||(this['attributes']=_0x455c58,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 _0x3143a6()['substr'](0x1,0x5);}}function o(_0x34a7cf,_0x4ecc12,_0x1c83ec){const t=_0x34a7cf['t'];switch(_0x4ecc12){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',_0x1c83ec);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1c83ec);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1c83ec);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1c83ec);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1c83ec);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',_0x1c83ec);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1c83ec);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',_0x1c83ec);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1c83ec);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1c83ec);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1c83ec);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1c83ec);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1c83ec);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1c83ec);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1c83ec);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1c83ec);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1c83ec);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1c83ec);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1c83ec);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1c83ec);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1c83ec);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1c83ec);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1c83ec);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'},_0x1c83ec);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1c83ec);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1c83ec);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1c83ec);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1c83ec);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1c83ec);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'},_0x1c83ec);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1c83ec);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1c83ec);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1c83ec);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1c83ec);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'},_0x1c83ec);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1c83ec);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'},_0x1c83ec);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'},_0x1c83ec);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1c83ec);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'},_0x1c83ec);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1c83ec);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'},_0x1c83ec);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1c83ec);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1c83ec);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'},_0x1c83ec);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'},_0x1c83ec);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'},_0x1c83ec);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1c83ec);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'},_0x1c83ec);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'},_0x1c83ec);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'},_0x1c83ec);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4ecc12;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xefa4d4,_0x3a70ac){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xefa4d4,this['_locale']=_0x3a70ac;}['getDescriptions'](_0x531c80){const _0xcd0b72=[],_0x46939c=new Set(),_0x1b9903=new Set();for(let _0x430a53=0x0;_0x430a53<_0x531c80['length'];_0x430a53++){const _0x12f88e=_0x531c80[_0x430a53];if(!_0x12f88e['isInContent'])continue;const _0x103e74=this['_handleCustomCallbackDescription'](_0x12f88e);if(_0x103e74){if(null!=_0x12f88e['subType']){if(_0x46939c['has'](_0x12f88e['subType']))continue;_0x46939c['add'](_0x12f88e['subType']);}_0xcd0b72['push'](_0x103e74);}else{if('attribute'!=_0x12f88e['type'])'insertion'!=_0x12f88e['type']&&'deletion'!=_0x12f88e['type']||this['_handleInsertRemoveSuggestionDescription'](_0xcd0b72,_0x12f88e,_0x531c80[_0x430a53+0x1]);else{const _0x152e9a=_0x12f88e['data']['key'];if(_0x1b9903['has'](_0x152e9a))continue;_0x1b9903['add'](_0x12f88e['data']['key']),_0x152e9a==m?this['_handleRenameSuggestionDescription'](_0xcd0b72,_0x12f88e):this['_handleAttributeSuggestionDescription'](_0xcd0b72,_0x12f88e);}}}return this['_resolveDescriptionItems'](_0xcd0b72);}['registerDescriptionCallback'](_0x287810){this['_customCallbacks']['push'](_0x287810);}['registerElementLabel'](_0x354e0b,_0x54cb15,_0x17839b=_0x1451a3['normal']){'function'==typeof _0x354e0b?_0x4059f5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x354e0b,'label':_0x54cb15,'priority':_0x17839b}):this['_itemLabels']['set'](_0x354e0b,_0x54cb15);}['registerAttributeLabel'](_0x9f4521,_0x2a2681){this['_attributeLabels']['set'](_0x9f4521,_0x2a2681);}['getItemLabel'](_0x184213,_0x253607=0x1){let _0x3cb8c6;for(const _0x439423 of this['_itemLabelsCallbacks'])if(_0x439423['matchingCallback'](_0x184213)){_0x3cb8c6=_0x439423['label'];break;}return _0x3cb8c6||(_0x3cb8c6=this['_itemLabels']['get'](_0x184213['name'])),_0x3cb8c6?_0x3cb8c6(_0x253607):0x1!==_0x253607?_0x253607+'\x20'+_0x184213['name']+'s':''+_0x184213['name'];}['_addDescriptionItems'](_0x16580f,_0x31b017){const _0x5d47e1=_0x31b017['getFirstRange']()['getWalker'](),_0x40db46='insertion'==_0x31b017['type']?'add':'remove';for(const _0x10a3db of _0x5d47e1){const _0x2b41e9=_0x10a3db['item'],_0x1f0f22=_0x16580f[_0x16580f['length']-0x1];if(_0x2b41e9['is']('$textProxy'))_0x1f0f22&&_0x1f0f22['type']['indexOf']('Container')>-0x1&&_0x16580f['pop'](),_0x1f0f22&&'text'==_0x1f0f22['type']?_0x1f0f22[_0x40db46]+=_0x2b41e9['data']:_0x16580f['push']({'type':'text','add':'add'==_0x40db46?_0x2b41e9['data']:'','remove':'remove'==_0x40db46?_0x2b41e9['data']:''});else{if(this['_schema']['isObject'](_0x2b41e9)){const _0x56f741=_0x2b41e9;if(_0x1f0f22&&_0x1f0f22['type']['indexOf']('Container')>-0x1&&_0x16580f['pop'](),'elementEnd'==_0x10a3db['type'])continue;_0x1f0f22&&_0x1f0f22['type']==_0x40db46+'Object'&&_0x1f0f22['element']['name']==_0x56f741['name']?_0x1f0f22['quantity']++:_0x16580f['push']({'type':_0x40db46+'Object','element':_0x56f741,'quantity':0x1}),_0x5d47e1['skip'](_0x5d7512=>!('elementEnd'==_0x5d7512['type']&&_0x5d7512['item']==_0x2b41e9));}else{if(this['_schema']['checkChild'](_0x2b41e9,'$text')||_0x2b41e9['is']('element','softBreak')){const _0x80692d=_0x2b41e9;if('add'==_0x40db46&&'elementStart'==_0x10a3db['type']||'remove'==_0x40db46&&'elementEnd'==_0x10a3db['type'])continue;if(_0x1f0f22&&-0x1==_0x1f0f22['type']['indexOf']('Container')){'text'==_0x1f0f22['type']&&(_0x1f0f22[_0x40db46]+='\x0a');continue;}let _0x3f796e;if(_0x3f796e='add'==_0x40db46?_0x80692d['nextSibling']&&!this['_schema']['isObject'](_0x80692d['nextSibling'])?_0x80692d['nextSibling']:null:_0x80692d['previousSibling']&&!this['_schema']['isObject'](_0x80692d['previousSibling'])?_0x80692d['previousSibling']:null,_0x80692d['isEmpty']||_0x3f796e&&_0x3f796e['isEmpty']){const _0x79ffcb=_0x3f796e&&_0x3f796e['isEmpty']?_0x3f796e:_0x80692d;_0x1f0f22&&_0x1f0f22['type']==_0x40db46+'EmptyContainer'&&_0x1f0f22['element']['name']==_0x79ffcb['name']?_0x1f0f22['quantity']++:_0x16580f['push']({'type':_0x40db46+'EmptyContainer','element':_0x79ffcb,'quantity':0x1});}else _0x16580f['push']({'type':_0x40db46+'Container','element':_0x80692d});}}}}}['_resolveDescriptionItems'](_0x275e83){const _0x487399=this['_locale'],_0x5b3c06=[],_0x238c37=[],_0x12c4d6=[];for(const _0x58de9a of _0x275e83)switch(_0x58de9a['type']){case'text':if(_0x58de9a['add']=_0x58de9a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x58de9a['remove']=_0x58de9a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x58de9a['add']&&''!=_0x58de9a['remove']){_0x5b3c06['push']({'type':'replace','content':o(_0x487399,'REPLACE_TEXT',['\x22'+_0x58de9a['remove']+'\x22','\x22'+_0x58de9a['add']+'\x22'])});continue;}if(null!=_0x58de9a['add']['match'](/^ +$/)){_0x5b3c06['push']({'type':'insertion','content':o(_0x487399,'*Insert:*\x20%0',o(_0x487399,'ELEMENT_SPACE',_0x58de9a['add']['length']))});continue;}if(null!=_0x58de9a['remove']['match'](/^ +$/)){_0x5b3c06['push']({'type':'deletion','content':o(_0x487399,'*Remove:*\x20%0',o(_0x487399,'ELEMENT_SPACE',_0x58de9a['remove']['length']))});continue;}if(''!=_0x58de9a['add']){_0x5b3c06['push']({'type':'insertion','content':o(_0x487399,'*Insert:*\x20%0','\x22'+_0x58de9a['add']+'\x22')});continue;}_0x5b3c06['push']({'type':'deletion','content':o(_0x487399,'*Remove:*\x20%0','\x22'+_0x58de9a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5b3c06['push']({'type':'insertion','content':o(_0x487399,'*Insert:*\x20%0',this['getItemLabel'](_0x58de9a['element'],_0x58de9a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5b3c06['push']({'type':'deletion','content':o(_0x487399,'*Remove:*\x20%0',this['getItemLabel'](_0x58de9a['element'],_0x58de9a['quantity']))});continue;case'addContainer':_0x5b3c06['push']({'type':'insertion','content':o(_0x487399,'*Split:*\x20%0',this['getItemLabel'](_0x58de9a['element'],_0x58de9a['quantity']))});continue;case'removeContainer':_0x5b3c06['push']({'type':'deletion','content':o(_0x487399,'*Merge:*\x20%0',this['getItemLabel'](_0x58de9a['element'],_0x58de9a['quantity']))});continue;case'addFormat':_0x238c37['push'](_0x58de9a['key']);continue;case'removeFormat':_0x12c4d6['push'](_0x58de9a['key']);continue;default:_0x5b3c06['push'](_0x58de9a);}if(_0x238c37['length']){const _0x15e52f=_0x238c37['map'](_0x38841b=>this['_attributeLabels']['has'](_0x38841b)?this['_attributeLabels']['get'](_0x38841b):_0x38841b)['join'](',\x20');_0x5b3c06['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x15e52f)});}if(_0x12c4d6['length']){const _0x57ce7c=_0x12c4d6['map'](_0x468824=>this['_attributeLabels']['has'](_0x468824)?this['_attributeLabels']['get'](_0x468824):_0x468824)['join'](',\x20');_0x5b3c06['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x57ce7c)});}return _0x5b3c06;}['_handleCustomCallbackDescription'](_0x277aea){for(const _0x31a055 of this['_customCallbacks']){const _0x485717=_0x31a055(_0x277aea);if(_0x485717&&'type'in _0x485717)return _0x485717;}}['_handleAttributeSuggestionDescription'](_0x5b98bf,_0x583521){const _0x17c8f8=_0x583521['data'],_0x535239=void 0x0===_0x17c8f8['newValue']?'removeFormat':'addFormat';_0x5b98bf['push']({'type':_0x535239,'key':_0x17c8f8['key']});}['_handleRenameSuggestionDescription'](_0x4323a1,_0x27ee55){_0x4323a1['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x27ee55['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5f26d3,_0xb6fc54,_0x5de62b){if(this['_addDescriptionItems'](_0x5f26d3,_0xb6fc54),_0x5de62b&&_0x5de62b['getFirstRange']()&&!_0xb6fc54['getFirstRange']()['end']['isEqual'](_0x5de62b['getFirstRange']()['start'])){const _0x563686=_0x5f26d3[_0x5f26d3['length']-0x1],_0x591ecf='insertion'==_0xb6fc54['type']?'add':'remove';_0x563686&&'text'==_0x563686['type']&&(_0x563686[_0x591ecf]+='\x0a');}}}class V extends _0x8c8d34{['afterInit'](){const _0x438b53=this['editor'],_0x56a2a4=_0x438b53['plugins']['get']('TrackChangesEditing');_0x438b53['commands']['get']('showAIAssistant')&&_0x56a2a4['enableCommand']('showAIAssistant');}}class U extends _0x8c8d34{['afterInit'](){const _0x3f179c=this['editor'],_0x481fc8=_0x3f179c['locale'];if(!_0x3f179c['plugins']['has']('AlignmentEditing'))return;const _0x3bd503=_0x3f179c['plugins']['get']('TrackChangesEditing');_0x3bd503['enableDefaultAttributesIntegration']('alignment'),_0x3bd503['registerBlockAttribute']('alignment'),_0x3bd503['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x481fc8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27ba76=this['editor'],_0x4f8da5=_0x27ba76['locale'];_0x27ba76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf8d65c=>{if('formatBlock'!=_0xf8d65c['type'])return;const {data:_0xcf349}=_0xf8d65c;if(_0xcf349&&'alignment'==_0xcf349['commandName']){const _0x92b9a7=_0xcf349['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4f8da5,'*Format:*\x20%0',function(_0x34e441){switch(_0x34e441){case'left':return o(_0x4f8da5,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4f8da5,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4f8da5,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4f8da5,'FORMAT_JUSTIFY_TEXT');}}(_0x92b9a7))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x8c8d34{['afterInit'](){const _0x1dbf39=this['editor'],_0x2fc877=_0x1dbf39['plugins']['get']('TrackChangesEditing'),_0x2ba10b=_0x1dbf39['locale'];for(const _0x36a140 of ti){if(!_0x1dbf39['plugins']['has'](_0x36a140))continue;const _0xea6345=_0x36a140['slice'](0x0,-0x7)['toLowerCase'](),_0x42fb28='FORMAT_'+_0xea6345['toUpperCase']();_0x2fc877['enableDefaultAttributesIntegration'](_0xea6345),_0x2fc877['registerInlineAttribute'](_0xea6345),_0x2fc877['descriptionFactory']['registerAttributeLabel'](_0xea6345,o(_0x2ba10b,_0x42fb28));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e431d=this['editor'],_0x3dc097=_0x1e431d['locale'],_0x370039=_0x1e431d['plugins']['get']('TrackChangesEditing');function _0x206fed(_0x4a261f,_0x5b0c28){_0x370039['descriptionFactory']['registerDescriptionCallback'](_0x54db0f=>{if('formatInline'!=_0x54db0f['type'])return;const {data:_0x1a1b42}=_0x54db0f;return _0x1a1b42&&_0x1a1b42['commandName']===_0x4a261f?_0x1a1b42['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3dc097,'*Format:*\x20%0',_0x5b0c28)}:{'type':'format','content':o(_0x3dc097,'*Remove\x20format:*\x20%0',_0x5b0c28)}:void 0x0;});}_0x206fed('bold',o(_0x3dc097,'FORMAT_BOLD')),_0x206fed('italic',o(_0x3dc097,'FORMAT_ITALIC')),_0x206fed('underline',o(_0x3dc097,'FORMAT_UNDERLINE')),_0x206fed('code',o(_0x3dc097,'FORMAT_CODE')),_0x206fed('strikethrough',o(_0x3dc097,'FORMAT_STRIKETHROUGH')),_0x206fed('subscript',o(_0x3dc097,'FORMAT_SUBSCRIPT')),_0x206fed('superscript',o(_0x3dc097,'FORMAT_SUPERSCRIPT'));}}class F extends _0x8c8d34{['afterInit'](){const _0x517f3e=this['editor'],_0x3a3ac6=_0x517f3e['locale'];if(!_0x517f3e['plugins']['has']('BlockQuoteEditing'))return;const _0x24904c=_0x517f3e['plugins']['get']('TrackChangesEditing'),_0x489e8b=this['editor']['commands']['get']('blockQuote');_0x24904c['enableCommand']('blockQuote',(_0x255984,_0x4259f5={})=>{const _0x445b84=this['editor']['model']['document']['selection'],_0x9c9cd=_0x4259f5&&void 0x0!==_0x4259f5['forceValue']?_0x4259f5['forceValue']:!_0x489e8b['value'];let _0x635523=[];if(_0x9c9cd){const _0x1142fb=Array['from'](_0x445b84['getSelectedBlocks']())['filter'](_0x39ea11=>oo(_0x39ea11)||function(_0x2aab5e,_0x4d4dfe){const _0x3066d8=_0x4d4dfe['checkChild'](_0x2aab5e['parent'],'blockQuote'),_0x5086a7=_0x4d4dfe['checkChild'](['$root','blockQuote'],_0x2aab5e);return _0x3066d8&&_0x5086a7;}(_0x39ea11,this['editor']['model']['schema']));_0x635523=to(_0x1142fb,_0x517f3e['model']);}else{const _0x549eac=Array['from'](_0x445b84['getSelectedBlocks']())['filter'](_0x2bf393=>oo(_0x2bf393));_0x635523=to(_0x549eac,_0x517f3e['model']);}_0x517f3e['model']['change'](()=>{for(const _0x149d9c of _0x635523)_0x24904c['markBlockFormat'](_0x149d9c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x9c9cd}]});});}),_0x24904c['descriptionFactory']['registerDescriptionCallback'](_0x223b73=>{const {data:_0x2dc0a6}=_0x223b73;if(_0x2dc0a6&&'blockQuote'==_0x2dc0a6['commandName']){const _0x1fbe48=o(_0x3a3ac6,'ELEMENT_BLOCK_QUOTE');return _0x2dc0a6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a3ac6,'*Set\x20format:*\x20%0',_0x1fbe48)}:{'type':'format','content':o(_0x3a3ac6,'*Remove\x20format:*\x20%0',_0x1fbe48)};}});}}function oo(_0x15cc2d){return'blockQuote'==_0x15cc2d['parent']['name'];}class L extends _0x8c8d34{['afterInit'](){const _0x460c4f=this['editor'];_0x460c4f['plugins']['has']('CaseChange')&&(_0x460c4f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x460c4f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x460c4f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x8c8d34{['afterInit'](){const _0x378072=this['editor'];_0x378072['commands']['get']('ckbox')&&_0x378072['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x8c8d34{['afterInit'](){const _0xce5c30=this['editor'];if(!_0xce5c30['plugins']['has']('CodeBlock'))return;const _0x63e1d0=_0xce5c30['plugins']['get']('TrackChangesEditing'),_0x234161=_0xce5c30['locale'],_0x42cc42=_0xce5c30['config']['get']('codeBlock')['languages'],_0x223eff=_0xce5c30['commands']['get']('codeBlock');_0x63e1d0['enableCommand']('indentCodeBlock'),_0x63e1d0['enableCommand']('outdentCodeBlock'),_0x63e1d0['enableCommand']('codeBlock',(_0x5c81b2,_0x33a342={})=>{const _0x5eb9d5=_0xce5c30['model'],_0x3debe2=_0xce5c30['model']['document']['selection'],_0xd4db56=_0x33a342&&void 0x0!==_0x33a342['forceValue']?_0x33a342['forceValue']:!_0x223eff['value'];let _0x1236ae;_0x33a342['language']||(_0x33a342['language']=_0x42cc42[0x0]['language']),_0x1236ae=_0xd4db56?Array['from'](_0x3debe2['getSelectedBlocks']())['filter'](_0x13ae36=>eo(_0x13ae36)||function(_0x4692b6,_0xf54c8){if(_0x4692b6['is']('rootElement')||_0xf54c8['isLimit'](_0x4692b6))return!0x1;return _0xf54c8['checkChild'](_0x4692b6['parent'],'codeBlock');}(_0x13ae36,_0x5eb9d5['schema'])):Array['from'](_0x3debe2['getSelectedBlocks']())['filter'](_0x287aaf=>eo(_0x287aaf));const _0x2aeae4=to(_0x1236ae,_0x5eb9d5);_0x5eb9d5['change'](()=>{for(const _0x34f867 of _0x2aeae4)_0x63e1d0['markBlockFormat'](_0x34f867,{'commandName':'codeBlock','commandParams':[{..._0x33a342,'forceValue':_0xd4db56}],'formatGroupId':'blockName'});});}),(_0x63e1d0['descriptionFactory']['registerElementLabel']('codeBlock',_0xedcf10=>o(_0x234161,'ELEMENT_CODE_BLOCK',_0xedcf10)),_0x63e1d0['descriptionFactory']['registerDescriptionCallback'](_0x4fcb53=>{if('formatBlock'!=_0x4fcb53['type'])return;const _0x1ca6a2=_0x234161['t'],{data:_0x45e7f0}=_0x4fcb53;if(!_0x45e7f0||'codeBlock'!=_0x45e7f0['commandName'])return;const _0x34ad0a=_0x45e7f0['commandParams'][0x0]['language'],_0x3c5698=_0x1ca6a2(_0x42cc42['find'](_0x15fca4=>_0x15fca4['language']===_0x34ad0a)['label'])['toLowerCase']();return _0x45e7f0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x234161,'*Set\x20format:*\x20%0',o(_0x234161,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3c5698+')')}:{'type':'format','content':o(_0x234161,'*Remove\x20format:*\x20%0',o(_0x234161,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xf0487){return'codeBlock'==_0xf0487['name'];}class q extends _0x8c8d34{['afterInit'](){const _0x35d8b2=this['editor'];if(!_0x35d8b2['plugins']['has']('CommentsEditing'))return;_0x35d8b2['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x536ba3,_0x38864d,_0x40ed5e){const _0x1db2fb=[];for(const _0x525b23 of _0x38864d['getItems']())_0x525b23['hasAttribute'](_0x536ba3)&&_0x1db2fb['push'](_0x40ed5e['createRangeOn'](_0x525b23));return _0x1db2fb;}function _e(_0x3c3579,_0x5dec28,{showActiveMarker:_0x5d0d17=!0x0}={}){const _0x3f3581=_0x3c3579['plugins']['get']('TrackChangesEditing');return(_0x1c5162,_0x373f5e,_0x3b21ec)=>{if(!_0x3b21ec['consumable']['test'](_0x373f5e['markerRange'],_0x1c5162['name']))return;const _0x35e4b0=_0x373f5e['markerRange']['getWalker'](),_0x261e30=_0x373f5e['markerRange']['start'],_0x14e0b4=_0x3c3579['model']['schema'];let _0x4804f3=null,_0x12f4d4=null,_0x5bde7c=!0x1,_0x296863=!0x1;for(const _0x4aef38 of _0x35e4b0){const _0x578d14=_0x4aef38['item'];_0x5bde7c=_0x5bde7c||_0x14e0b4['isContent'](_0x578d14);const _0x1a78d8=_0x3b21ec['mapper']['toViewElement'](_0x578d14);if(_0x1a78d8&&_0x1a78d8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4aef38['type']&&(_0x14e0b4['isBlock'](_0x578d14)&&!_0x14e0b4['isLimit'](_0x578d14)&&(_0x578d14['nextSibling']||_0x261e30['isAtEnd']?_0x4804f3&&_0x4804f3['parent']==_0x578d14||(_0x4804f3=_0x578d14,_0x1131a7(_0x4aef38['previousPosition']),_0x296863=!0x0):_0x12f4d4=_0x12f4d4||_0x4aef38['previousPosition']));}function _0x1131a7(_0x493ae9){const {authorId:_0xddd13d}=_0x3f3581['_splitMarkerName'](_0x373f5e['markerName']),_0x2762f1=_0x3b21ec['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5dec28,'data-author-id':_0xddd13d}),_0x152c13=_0x3b21ec['mapper']['toViewPosition'](_0x493ae9);_0x5d0d17&&_0x3f3581['activeMarkers']['includes'](_0x373f5e['markerName'])&&_0x3b21ec['writer']['addClass']('ck-suggestion-marker--active',_0x2762f1),_0x3b21ec['writer']['insert'](_0x152c13,_0x2762f1),_0x3b21ec['mapper']['bindElementToMarker'](_0x2762f1,_0x373f5e['markerName']);}_0x5bde7c||_0x296863||!_0x12f4d4||_0x1131a7(_0x12f4d4);};}class z extends _0x8c8d34{static get['requires'](){return[_0x394338];}['init'](){const _0x37e9ac=this['editor'],_0x5ccb8b=_0x37e9ac['plugins']['get']('TrackChangesEditing');_0x5ccb8b['enableCommand']('delete');const _0x5631a0=_0x37e9ac['commands']['get']('deleteForward');_0x5ccb8b['enableCommand']('deleteForward',(_0x403175,_0x5b697b={})=>{const _0x4cc9b0=_0x37e9ac['model']['createSelection'](_0x37e9ac['model']['document']['selection']);_0x4cc9b0['isCollapsed']&&_0x37e9ac['model']['modifySelection'](_0x4cc9b0,{'direction':'forward','unit':_0x5b697b['unit']});const _0x2df0f9=_0x4cc9b0['getFirstRange'](),_0x46c979=_0x4523d0['fromRange'](_0x2df0f9);let _0x36b2b2;_0x403175(_0x5b697b),_0x36b2b2='$graveyard'==_0x46c979['root']['rootName']?_0x37e9ac['model']['createRange'](_0x2df0f9['start']):_0x37e9ac['model']['createRange'](_0x46c979['start'],_0x46c979['end']),_0x46c979['detach'](),_0x37e9ac['model']['enqueueChange'](_0x5631a0['buffer']['batch'],_0x3fbc99=>{_0x5631a0['buffer']['lock'](),_0x3fbc99['setSelection'](_0x3fbc99['createRange'](_0x36b2b2['end'])),_0x5631a0['buffer']['unlock']();});}),_0x37e9ac['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x37e9ac,'merge'),{'priority':'high'}),_0x37e9ac['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x41b964,_0x465c67,_0x506449)=>{_0x506449['options']['showSuggestionHighlights']&&_e(_0x37e9ac,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x41b964,_0x465c67,_0x506449);},{'priority':'high'}),_0x37e9ac['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x57f404,_0x5491bd,_0x31a999)=>{const _0x2e6f6a=_0x31a999['mapper']['markerNameToElements'](_0x5491bd['markerName']);if(_0x2e6f6a){for(const _0x49a948 of _0x2e6f6a)_0x49a948['is']('uiElement')&&(_0x31a999['mapper']['unbindElementFromMarkerName'](_0x49a948,_0x5491bd['markerName']),_0x31a999['writer']['remove'](_0x49a948));}},{'priority':'high'});}}class K extends _0x8c8d34{['afterInit'](){const _0x364e84=this['editor'];if(!_0x364e84['plugins']['has']('ListEditing'))return;const _0x104fb0=_0x364e84['locale'],_0x171414=_0x364e84['plugins']['get']('TrackChangesEditing'),_0x557ace=_0x364e84['plugins']['has']('TodoListEditing'),_0x369ce3=!!_0x364e84['config']['get']('list.multiBlock');function _0x5b2fdf(_0x1f8fb0){return{'type':'format','content':''+o(_0x104fb0,'*Set\x20format:*\x20%0',_0x1f8fb0)};}function _0xf33386(_0x41b0b4){return{'type':'format','content':''+o(_0x104fb0,'*Remove\x20format:*\x20%0',_0x41b0b4)};}_0x171414['enableDefaultAttributesIntegration']('numberedList'),_0x171414['enableDefaultAttributesIntegration']('bulletedList'),_0x171414['enableDefaultAttributesIntegration']('customNumberedList'),_0x171414['enableDefaultAttributesIntegration']('customBulletedList'),_0x171414['enableDefaultAttributesIntegration']('indentList'),_0x171414['enableDefaultAttributesIntegration']('outdentList'),_0x171414['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x171414['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x171414['registerBlockAttribute']('listItemId'),_0x171414['registerBlockAttribute']('listType'),_0x171414['registerBlockAttribute']('listIndent'),_0x369ce3&&(_0x171414['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x171414['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x557ace&&(_0x171414['enableDefaultAttributesIntegration']('todoList'),_0x171414['enableDefaultAttributesIntegration']('checkTodoList'),_0x171414['registerBlockAttribute']('todoListChecked'),_0x171414['descriptionFactory']['registerDescriptionCallback'](_0x2bd2cf=>{const {data:_0x4d949d}=_0x2bd2cf;if(_0x4d949d&&'todoListChecked'==_0x4d949d['key'])return{'type':'format','content':_0x4d949d['newValue']?o(_0x104fb0,'*Check\x20item*'):o(_0x104fb0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x38d82b=>{if(_0x38d82b['batch']['isUndo'])return!0x1;let _0xd76a4=!0x1;const _0x4f45a3=_0x171414['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e2c47=>'todoListChecked'===_0x171414['_getAttributeKey'](_0x5e2c47));for(const _0x3d3f7c of _0x4f45a3){'todo'!=_0x3d3f7c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x171414['_findSuggestions'](_0x3d3f7c['getFirstRange'](),'attribute')['find'](_0xd5caa4=>'listType'===_0x171414['_getAttributeKey'](_0xd5caa4['suggestion']))||(_0x38d82b['removeMarker'](_0x3d3f7c['getFirstMarker']()),_0xd76a4=!0x0));}return _0xd76a4;})),_0x171414['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x104fb0,'FORMAT_INDENT'));const _0x26cafe={'type':'format','content':''};_0x171414['descriptionFactory']['registerDescriptionCallback'](_0x39f8d3=>{const {data:_0x25a6e9}=_0x39f8d3;if(!_0x25a6e9||'listType'!=_0x25a6e9['key'])return;let _0x149ab6=_0x39f8d3['head'];for(;_0x149ab6;){if(_0x149ab6['data']&&(('listStyle'==_0x149ab6['data']['key']||'listMarkerStyle'==_0x149ab6['data']['key'])&&(_0x149ab6['data']['newValue']&&'default'!=_0x149ab6['data']['newValue']||'default'!=_0x149ab6['data']['oldValue']&&!_0x25a6e9['newValue'])||!_0x369ce3&&_0x149ab6['data']['key']==m))return _0x26cafe;_0x149ab6=_0x149ab6['next'];}if(null==_0x25a6e9['newValue'])switch(_0x25a6e9['oldValue']){case'bulleted':return _0xf33386(o(_0x104fb0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xf33386(o(_0x104fb0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xf33386(o(_0x104fb0,'ELEMENT_TODO_LIST'));}switch(_0x25a6e9['newValue']){case'bulleted':return _0x5b2fdf(o(_0x104fb0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5b2fdf(o(_0x104fb0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5b2fdf(o(_0x104fb0,'ELEMENT_TODO_LIST'));}}),_0x171414['descriptionFactory']['registerDescriptionCallback'](_0x245f2c=>{const {data:_0x3847a0}=_0x245f2c;if(_0x3847a0&&'listIndent'==_0x3847a0['key'])return null==_0x3847a0['newValue']||null==_0x3847a0['oldValue']&&0x0==_0x3847a0['newValue']?_0x26cafe:void 0x0;}),_0x171414['descriptionFactory']['registerDescriptionCallback'](_0x5dfc0c=>{if('attribute'!=_0x5dfc0c['type'])return;const {data:_0x27faa9}=_0x5dfc0c;if(!_0x27faa9||'listItemId'!=_0x27faa9['key'])return;const _0x2f3db5=Ee(_0x5dfc0c);return'newValue'==_0x2f3db5?{'type':'format','content':o(_0x104fb0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2f3db5?{'type':'format','content':o(_0x104fb0,'*Split:*\x20list\x20item')}:_0x26cafe;}),_0x364e84['model']['document']['registerPostFixer'](_0x2570ad=>this['listItemIdFixer'](_0x2570ad)),_0x364e84['model']['document']['registerPostFixer'](_0x15269d=>this['noTrackChangesFixer'](_0x15269d)),_0x364e84['model']['document']['on']('change:data',(_0x4233fa,_0x15afee)=>{if(_0x15afee['isUndo']||!_0x15afee['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x209bf4){if(_0x209bf4['batch']['isUndo']||!_0x209bf4['batch']['isLocal'])return!0x1;let _0x1e7786=!0x1;const _0x1fe5c9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f9497=>_0x1f9497['data']&&'listItemId'==_0x1f9497['data']['key'])['filter'](_0x16ff3d=>_0x16ff3d['data']['newValue']&&_0x16ff3d['data']['oldValue']);for(const _0xf54861 of _0x1fe5c9)Ee(_0xf54861)||(_0x209bf4['removeMarker'](_0xf54861['getFirstMarker']()),_0x1e7786=!0x0);return _0x1e7786;}['noTrackChangesFixer'](_0x5123b1){if(_0x5123b1['batch']['isUndo']||!_0x5123b1['batch']['isLocal'])return!0x1;const _0x39ffa3=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x39ffa3['trackChangesCommand']['value'])return!0x1;let _0x5990ba=!0x1;const _0x3b4bdf=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5bd626=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x223c3e=>'attribute'==_0x223c3e['type'])['filter'](_0x3dab42=>_0x3b4bdf['includes'](_0x3dab42['attributeKey']));if(0x0==_0x5bd626['length'])return _0x5990ba;for(const _0xfe1f4a of _0x5bd626){const _0x205864=_0x39ffa3['_findSuggestions'](_0xfe1f4a['range'],'attribute')['filter'](_0x3f2fbc=>!_0x3f2fbc['meta']['isNextTo'])['map'](_0x18f5ac=>_0x18f5ac['suggestion'])['filter'](_0x32437d=>{const _0xb1b736=_0x39ffa3['_getAttributeKey'](_0x32437d);return _0x3b4bdf['includes'](_0xb1b736);});if(_0x205864['length']){for(const _0x21d12e of _0x205864)_0x5123b1['removeMarker'](_0x21d12e['getFirstMarker']());_0x5990ba=!0x0;}}return _0x5990ba;}['assureChains'](){const _0x13e3e9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15e8d1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x54f660;const _0x3165ef=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x36bcef=>{if(_0x36bcef['data']['oldRange']||!_0x36bcef['data']['newRange'])return null;if(!_0x36bcef['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x392f10}=_0x13e3e9['_splitMarkerName'](_0x36bcef['name']);if(!_0x13e3e9['hasSuggestion'](_0x392f10))return null;const _0x1adc6e=_0x13e3e9['getSuggestion'](_0x392f10);return _0x15e8d1['includes'](_0x1adc6e['data']['key']);})['map'](_0x15c21a=>{const {id:_0x1f356f}=_0x13e3e9['_splitMarkerName'](_0x15c21a['name']),_0x2e2f5e=_0x13e3e9['getSuggestion'](_0x1f356f);return _0x54f660=_0x2e2f5e['attributes']['groupId'],_0x2e2f5e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3165ef['size'])return;const _0x43edcb=_0x13e3e9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xbe28b3=>'attribute'==_0xbe28b3['type']&&_0xbe28b3['data']&&_0x15e8d1['includes'](_0xbe28b3['data']['key'])&&_0xbe28b3['attributes']['groupId']!=_0x54f660)['map'](_0x2f121f=>({'listItem':_0x2f121f['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2f121f['attributes']['groupId']})),_0x22f980=new Set();for(const {groupId:_0x22bdc0,listItem:_0x586609}of _0x43edcb)_0x3165ef['has'](_0x586609)&&_0x22f980['add'](_0x22bdc0);for(const _0x2d4579 of _0x13e3e9['getSuggestions']())_0x22f980['has'](_0x2d4579['attributes']['groupId'])&&_0x2d4579['setAttribute']('groupId',_0x54f660);}['_supportLegacySuggestions'](){const _0x2199d0=this['editor'],_0x46d305=_0x2199d0['locale'],_0x17bd15=_0x2199d0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x17bd15['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x162a51,_0x4eaa15){const _0x365d94=[];for(let _0x11e195 of _0x162a51)_0x11e195['start']['nodeAfter']===_0x11e195['end']['parent']&&(_0x11e195=_0x2199d0['model']['createRange'](_0x2199d0['model']['createPositionAt'](_0x11e195['start']['nodeAfter'],0x0))),_0x365d94['push'](_0x11e195);_0x2199d0['model']['change'](_0x5dfc73=>{const _0x52f74d=_0x2199d0['model']['document']['selection'],_0x1088bf=Array['from'](_0x52f74d['getRanges']())['map'](_0x2e9bd2=>_0x4523d0['fromRange'](_0x2e9bd2));_0x5dfc73['setSelection'](_0x365d94),_0x2199d0['commands']['get'](_0x4eaa15['commandName'])['refresh'](),_0x4eaa15['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2199d0['execute'](_0x4eaa15['commandName'],..._0x4eaa15['commandParams']),_0x5dfc73['setSelection'](_0x1088bf);for(const _0x58b207 of _0x1088bf)_0x58b207['detach']();});}),_0x17bd15['descriptionFactory']['registerElementLabel'](function(_0x12d7ff){const _0x4c6767=!_0x2199d0['model']['schema']['isObject'](_0x12d7ff),_0x12ee26=_0x12d7ff['previousSibling'],_0x498679=_0x12d7ff['nextSibling'],_0x1a550e=_0x12d7ff['getAttribute']('listItemId'),_0x5b24fe=!_0x12ee26||_0x12ee26['getAttribute']('listItemId')!==_0x1a550e,_0x40953f=!_0x498679||_0x498679['getAttribute']('listItemId')!==_0x1a550e;return _0x4c6767&&Boolean(_0x1a550e)&&_0x5b24fe&&_0x40953f;},_0x565aef=>o(_0x46d305,'ELEMENT_LIST_ITEM',_0x565aef));}['_registerLegacyDescription'](){const _0x2c20e5=this['editor'],_0x232214=_0x2c20e5['locale'];function _0x521d86(_0x5d3fa9){const _0x30c399=_0x2c20e5['commands']['get']('bulletedList')['value'],_0x1a9449=_0x2c20e5['commands']['get']('numberedList')['value'];return'numberedList'===_0x5d3fa9?_0x30c399:_0x1a9449;}_0x2c20e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4e13c8){if('formatBlock'!=_0x4e13c8['type'])return;const {data:_0x57fa7d}=_0x4e13c8;if(!_0x57fa7d)return;let _0x341d40,_0x3d9c07,_0x314ba3,_0x11dd61;switch(_0x57fa7d['commandName']){case'bulletedList':_0x314ba3=_0x57fa7d['commandParams'][0x0]['forceValue'],_0x11dd61=_0x521d86(_0x57fa7d['commandName']),_0x341d40=_0x314ba3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x11dd61&&_0x2c20e5['config']['get']('list.multiBlock')||(_0x341d40='*Change\x20to:*\x20%0'),_0x3d9c07={'type':'format','content':o(_0x232214,_0x341d40,o(_0x232214,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x314ba3=_0x57fa7d['commandParams'][0x0]['forceValue'],_0x11dd61=_0x521d86(_0x57fa7d['commandName']),_0x341d40=_0x314ba3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x11dd61&&_0x2c20e5['config']['get']('list.multiBlock')||(_0x341d40='*Change\x20to:*\x20%0'),_0x3d9c07={'type':'format','content':o(_0x232214,_0x341d40,o(_0x232214,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x341d40='*Indent:*\x20%0',_0x3d9c07={'type':'format','content':o(_0x232214,_0x341d40,o(_0x232214,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x341d40=function(_0x2ad107){const _0x2aced0=_0x2ad107['getFirstRange']();let _0x43b177=_0x2aced0['start']['nodeAfter'];for(;_0x43b177&&_0x2aced0['containsItem'](_0x43b177);){if(_0x43b177['getAttribute']('listIndent')>0x0)return!0x1;_0x43b177=_0x43b177['nextSibling'];}return!0x0;}(_0x4e13c8)?o(_0x232214,'*Format:*\x20remove\x20from\x20%0',o(_0x232214,function(_0x5a2c2b){return'ELEMENT_'+_0x5a2c2b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4e13c8))):o(_0x232214,'*Outdent:*\x20%0',o(_0x232214,'ELEMENT_LIST_ITEM')),_0x3d9c07={'type':'format','content':_0x341d40};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x57fa7d['multipleBlocks']&&(_0x341d40='*Merge:*\x20%0',_0x3d9c07={'type':'deletion','content':o(_0x232214,_0x341d40,o(_0x232214,'ELEMENT_LIST_ITEM'))});}return _0x3d9c07;});}}function Ee(_0x113ad6){let _0x195d96=_0x113ad6['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x195d96;){const _0x18e528=_0x195d96['getAttribute']('listItemId');if(!_0x18e528)return!0x1;if(_0x18e528==_0x113ad6['data']['newValue'])return'newValue';if(_0x18e528==_0x113ad6['data']['oldValue'])return'oldValue';_0x195d96=_0x195d96['previousSibling'];}return!0x1;}class pe extends _0x8c8d34{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x43a400=this['editor']['config']['get']('list.properties'),_0xba6343=this['editor']['plugins']['get']('TrackChangesEditing');_0x43a400['styles']&&(_0xba6343['enableDefaultAttributesIntegration']('listStyle'),_0xba6343['registerBlockAttribute']('listStyle')),_0x43a400['reversed']&&(_0xba6343['enableDefaultAttributesIntegration']('listReversed'),_0xba6343['registerBlockAttribute']('listReversed')),_0x43a400['startIndex']&&(_0xba6343['enableDefaultAttributesIntegration']('listStart'),_0xba6343['registerBlockAttribute']('listStart'));const _0x525d8b={'type':'format','content':''};_0xba6343['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x27fa52=this['editor']['locale'];_0xba6343['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x27fa52,'FORMAT_LIST_REVERSED')),_0xba6343['descriptionFactory']['registerDescriptionCallback'](_0x459cc8=>{const {data:_0x173e81}=_0x459cc8;if(_0x173e81&&'listReversed'==_0x173e81['key'])return null==_0x173e81['newValue']||0x0==_0x173e81['newValue']&&null==_0x173e81['oldValue']?_0x525d8b:void 0x0;}),_0xba6343['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x27fa52,'FORMAT_LIST_START')),_0xba6343['descriptionFactory']['registerDescriptionCallback'](_0x563e7e=>{const {data:_0x1b2be4}=_0x563e7e;if(_0x1b2be4&&'listStart'==_0x1b2be4['key'])return null==_0x1b2be4['newValue']||0x1==_0x1b2be4['newValue']&&null==_0x1b2be4['oldValue']?_0x525d8b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4d88e2=>{if(_0x4d88e2['batch']['isUndo'])return!0x1;let _0x216f80=!0x1;const _0x4cad2a=_0xba6343['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x338c54=>{const _0xf74796=_0xba6343['_getAttributeKey'](_0x338c54);return'listStart'==_0xf74796||'listReversed'==_0xf74796;});for(const _0x72e972 of _0x4cad2a){const _0xda9f39=_0x72e972['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xda9f39||'customNumbered'==_0xda9f39)continue;_0xba6343['_findSuggestions'](_0x72e972['getFirstRange'](),'attribute')['find'](_0x2abdd5=>'listType'==_0xba6343['_getAttributeKey'](_0x2abdd5['suggestion']))||(_0x4d88e2['removeMarker'](_0x72e972['getFirstMarker']()),_0x216f80=!0x0);}return _0x216f80;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x32e083){const _0x53746c=this['editor']['locale'],{data:_0x2a6c2b}=_0x32e083,_0x594d38={'type':'format','content':''};if(!_0x2a6c2b||'listStyle'!=_0x2a6c2b['key'])return;if(!_0x2a6c2b['oldValue'])return'default'==_0x2a6c2b['newValue']?_0x594d38:{'type':'format','content':''+o(_0x53746c,'*Set\x20format:*\x20%0',o(_0x53746c,this['_getTranslationKeyForListStyle'](_0x2a6c2b['newValue'])))};if(!_0x2a6c2b['newValue']){if('default'==_0x2a6c2b['oldValue'])return _0x594d38;let _0x15a24a=_0x32e083['head'];for(;_0x15a24a;){if(_0x15a24a['data']&&'listType'==_0x15a24a['data']['key']&&_0x15a24a['data']['newValue'])return _0x594d38;_0x15a24a=_0x15a24a['next'];}return{'type':'format','content':''+o(_0x53746c,'*Remove\x20format:*\x20%0',o(_0x53746c,this['_getTranslationKeyForListStyle'](_0x2a6c2b['oldValue'])))};}if('default'!=_0x2a6c2b['newValue'])return{'type':'format','content':''+o(_0x53746c,'*Set\x20format:*\x20%0',o(_0x53746c,this['_getTranslationKeyForListStyle'](_0x2a6c2b['newValue'])))};let _0x2553e0=_0x32e083['head'];for(;_0x2553e0;){if(_0x2553e0['data']&&'listType'==_0x2553e0['data']['key']&&_0x2553e0['data']['newValue']&&_0x2553e0['data']['oldValue'])return _0x594d38;_0x2553e0=_0x2553e0['next'];}return{'type':'format','content':o(_0x53746c,'*Set\x20format:*\x20%0',o(_0x53746c,'ELEMENT_'+_0x32e083['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2e6e13=this['editor'],_0x50a1cb=_0x2e6e13['locale'];_0x2e6e13['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29f5a8=>{if('formatBlock'!=_0x29f5a8['type'])return;const {data:_0x4a0262}=_0x29f5a8;if(!_0x4a0262)return;let _0x520c26,_0x498cc5;switch(_0x4a0262['commandName']){case'listStyle':_0x520c26='*Change\x20to:*\x20%0',_0x498cc5={'type':'format','content':o(_0x50a1cb,_0x520c26,o(_0x50a1cb,this['_getTranslationKeyForListStyle'](_0x4a0262['commandParams'][0x0]['type'])))};break;case'listReversed':_0x520c26=_0x4a0262['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x498cc5={'type':'format','content':o(_0x50a1cb,_0x520c26)};break;case'listStart':_0x520c26='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x498cc5={'type':'format','content':o(_0x50a1cb,_0x520c26,_0x4a0262['commandParams'][0x0]['startIndex'])};}return _0x498cc5;});}['_getTranslationKeyForListStyle'](_0x14f42b){return'ELEMENT_'+function(_0x6b9e7a){if(ye['includes'](_0x6b9e7a))return'bulleted';if(Se['includes'](_0x6b9e7a))return'numbered';return null;}(_0x14f42b)['toUpperCase']()+'_LIST_'+_0x14f42b['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x8c8d34{static get['requires'](){return[_0x29ad21];}['init'](){const _0x58cdca=this['editor'],_0x4e3551=_0x58cdca['plugins']['get']('TrackChangesEditing'),_0x451b72=_0x58cdca['commands']['get']('enter');_0x4e3551['enableCommand']('enter',()=>{_0x58cdca['model']['change'](_0x2a7918=>{const _0x4b7c75=_0x58cdca['model']['document']['selection'],_0x14eb33=_0x4b7c75['getFirstPosition'](),_0x32c50b=_0x4523d0['fromRange'](_0x4b7c75['getFirstRange']());if(_0x451b72['enterBlock'](_0x2a7918)){const _0x213f65=_0x58cdca['model']['createPositionAt'](_0x14eb33['parent']['nextSibling'],0x0),_0x2117da=_0x2a7918['createRange'](_0x14eb33,_0x213f65);_0x4e3551['markInsertion'](_0x2117da);}else _0x2a7918['setSelection'](_0x2a7918['createRange'](_0x32c50b['end']));_0x32c50b['detach'](),_0x451b72['fire']('afterExecute',{'writer':_0x2a7918});});}),_0x58cdca['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x58cdca,'split'),{'priority':'high'}),_0x58cdca['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x284fe6,_0x2e41e5,_0x34a396)=>{const _0x9687ad=_0x34a396['mapper']['markerNameToElements'](_0x2e41e5['markerName']);if(_0x9687ad){for(const _0x37280a of _0x9687ad)_0x37280a['hasClass']('ck-suggestion-marker-split')&&(_0x34a396['mapper']['unbindElementFromMarkerName'](_0x37280a,_0x2e41e5['markerName']),_0x34a396['writer']['remove'](_0x37280a));}},{'priority':'high'}),_0x58cdca['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2ce590,_0x9fd7de,_0x2a4446)=>{_0x2a4446['options']['showSuggestionHighlights']&&_e(_0x58cdca,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2ce590,_0x9fd7de,_0x2a4446);},{'priority':'high'});}}class X extends _0x8c8d34{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3c1138=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c1138['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3c1138['enableCommand']('findNext'),_0x3c1138['enableCommand']('findPrevious'),_0x3c1138['enableCommand']('replace'),_0x3c1138['enableCommand']('replaceAll');}['handleFindCommand'](_0x26ed38,_0x751c2d,_0x1fd567={}){const _0x41828f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x26ed38(_0xfa8c4a=>{let _0x32a066=('string'==typeof _0x751c2d?_0x41828f['findByTextCallback'](_0x751c2d,_0x1fd567):_0x751c2d)(_0xfa8c4a);Array['isArray'](_0x32a066)&&(_0x32a066={'results':_0x32a066,'searchText':'string'==typeof _0x751c2d?_0x751c2d:''});const _0x37e45d=_0x32a066['results']['filter'](_0x12df73=>!0x1===this['_isInDeletionRange'](_0x12df73,_0xfa8c4a['item']));return{..._0x32a066,'results':_0x37e45d};},_0x1fd567);}['_isInDeletionRange'](_0x243784,_0x25c837){const _0x3085ef=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x25c837,_0x243784['start']),this['editor']['model']['createPositionAt'](_0x25c837,_0x243784['end']));for(const _0x5f6c39 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3085ef['getIntersection'](_0x5f6c39['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 _0x8c8d34{['afterInit'](){const _0x2e951e=this['editor']['locale'],_0x2e4dc3=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1a07b6,commandName:_0x1a5f60}of ro)this['editor']['plugins']['has'](_0x1a07b6)&&(_0x2e4dc3['enableDefaultAttributesIntegration'](_0x1a5f60),_0x2e4dc3['registerInlineAttribute'](_0x1a5f60));_0x2e4dc3['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2e951e,'FORMAT_FONT_SIZE')),_0x2e4dc3['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2e951e,'FORMAT_FONT_FAMILY')),_0x2e4dc3['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2e951e,'FORMAT_FONT_COLOR')),_0x2e4dc3['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2e951e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b3a6f=this['editor'],_0x1a21b0=_0x4b3a6f['locale'];_0x4b3a6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35382a=>{const _0x12675b=_0x1a21b0['t'];if('formatInline'!=_0x35382a['type'])return;const {data:_0x1f88ff}=_0x35382a;if(null!=_0x1f88ff){if('fontSize'==_0x1f88ff['commandName']){const _0x29b036=_0x1f88ff['commandParams'][0x0]['value'];if(_0x29b036){const _0x2d963e=_0x12675b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1cafc3=>_0x1cafc3['model']==_0x29b036)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1a21b0,'*Set\x20font\x20size:*\x20%0',_0x2d963e)};}return{'type':'format','content':o(_0x1a21b0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1f88ff['commandName']){const _0x16dcbc=_0x1f88ff['commandParams'][0x0]['value'];return _0x16dcbc?{'type':'format','content':o(_0x1a21b0,'*Set\x20font\x20family:*\x20%0',_0x16dcbc)}:{'type':'format','content':o(_0x1a21b0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1f88ff['commandName']){const _0x20604e=_0x1f88ff['commandParams'][0x0]['value'];if(_0x20604e){const _0x5b7b62=_0x3e6c79(this['editor']['config']['get']('fontColor.colors'))['find'](_0x31172d=>_0x31172d['model']==_0x20604e);let _0x5554ba=_0x20604e,_0x1dbb9b='';return _0x5b7b62&&(_0x5554ba=_0x5b7b62['label'],_0x1dbb9b=_0x12675b(_0x5554ba)['toLowerCase']()),{'type':'format','content':o(_0x1a21b0,'*Set\x20font\x20color:*\x20%0',_0x1dbb9b)['trim'](),'color':{'value':_0x20604e,'title':_0x1dbb9b||_0x5554ba}};}return{'type':'format','content':o(_0x1a21b0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1f88ff['commandName']){const _0x573707=_0x1f88ff['commandParams'][0x0]['value'];if(_0x573707){const _0x13fc21=_0x3e6c79(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3cd683=>_0x3cd683['model']==_0x573707);let _0xa27302=_0x573707,_0x48df1d='';return _0x13fc21&&(_0xa27302=_0x13fc21['label'],_0x48df1d=_0x12675b(_0xa27302)['toLowerCase']()),{'type':'format','content':o(_0x1a21b0,'*Set\x20font\x20background\x20color:*\x20%0',_0x48df1d)['trim'](),'color':{'value':_0x573707,'title':_0x48df1d||_0xa27302}};}return{'type':'format','content':o(_0x1a21b0,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x8c8d34{['afterInit'](){const _0x60dbab=this['editor'],_0x58a520=_0x60dbab['plugins']['get']('TrackChangesEditing'),_0x41a313=_0x60dbab['commands']['get']('copyFormat'),_0x10d217=_0x60dbab['commands']['get']('pasteFormat');_0x41a313&&_0x10d217&&(_0x58a520['enableDefaultAttributesIntegration']('pasteFormat'),_0x58a520['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x46da9c=this['editor'],_0x31a9f6=_0x46da9c['locale'];_0x46da9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a42b0=>{if('formatBlock'!=_0x5a42b0['type']&&'formatInline'!=_0x5a42b0['type'])return;const {data:_0xed61b2}=_0x5a42b0;if(_0xed61b2&&'pasteFormat'===_0xed61b2['commandName']){const _0x4d3e66=[],_0x1a362f=_0xed61b2['commandParams'][0x0];for(const [_0x5dc88c,_0x478af3]of Object['entries'](_0x1a362f))_0x4d3e66['push'](so(_0x46da9c,_0x5dc88c,_0x478af3));return _0x4d3e66['length']?{'type':'format','content':o(_0x31a9f6,'*Set\x20format\x20to:*\x20%0',_0x4d3e66['join'](',\x20'))}:{'type':'format','content':o(_0x31a9f6,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5048f5,_0x4769fe,_0x23649a){const _0xc4dcc2=_0x5048f5['locale']['t'],_0x148246=_0x4769fe['split'](/(?=[A-Z])/)['join']('\x20'),_0x3780cc=_0xc4dcc2(_0x148246['charAt'](0x0)['toUpperCase']()+_0x148246['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x23649a)return _0x3780cc;if('fontColor'===_0x4769fe||'fontBackgroundColor'===_0x4769fe){const _0x55cb6b=_0x3e6c79(_0x5048f5['config']['get']('fontColor.colors'))['find'](_0x2d446f=>_0x2d446f['model']==_0x23649a);return _0x3780cc+'\x20('+(_0x55cb6b?_0xc4dcc2(_0x55cb6b['label'])['toLowerCase']():_0x23649a)+')';}if('fontSize'===_0x4769fe&&isNaN(parseFloat(_0x23649a))){const _0x681727=_0x5048f5['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5048f5['config']['get']('fontSize.options'))['find'](_0x5879d9=>_0x5879d9['model']==_0x23649a);return _0x3780cc+'\x20('+(_0x681727?_0xc4dcc2(_0x681727['title'])['toLowerCase']():_0x23649a)+')';}return _0x3780cc+'\x20('+_0x23649a+')';}class tt extends _0x8c8d34{['_headingOptions'];['afterInit'](){const _0x11dd88=this['editor'];if(!_0x11dd88['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x11dd88['config']['get']('heading.options');const _0x34e6ef=_0x11dd88['locale'],_0x19607e=_0x11dd88['plugins']['get']('TrackChangesEditing');_0x19607e['enableDefaultAttributesIntegration']('heading');for(const _0x45b6b1 of this['_headingOptions'])'paragraph'!=_0x45b6b1['model']&&_0x19607e['descriptionFactory']['registerElementLabel'](_0x45b6b1['model'],_0x2a5bb8=>{const _0x35fbe6=this['_getHeadingLevel'](_0x45b6b1['model']);return null!==_0x35fbe6?_0x4f4141(_0x2a5bb8,_0x35fbe6):_0x1cd675(_0x2a5bb8,_0x45b6b1['title']);});function _0x4f4141(_0x3e4efc,_0x5b0b4d){return o(_0x34e6ef,'ELEMENT_HEADING',[_0x3e4efc,_0x5b0b4d]);}function _0x1cd675(_0x5f17d4,_0x281922){return o(_0x34e6ef,'ELEMENT_HEADING_CUSTOM',[_0x5f17d4,_0x281922]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd17927=this['editor'],_0x3c52a4=_0xd17927['locale'];function _0x499a21(_0x4ca8c9,_0x3a3474){return o(_0x3c52a4,'ELEMENT_HEADING_CUSTOM',[_0x4ca8c9,_0x3a3474]);}_0xd17927['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d5081=>{if('formatBlock'!=_0x2d5081['type'])return;const {data:_0x245520}=_0x2d5081;if(_0x245520&&'heading'==_0x245520['commandName']){const _0x76f38b=_0x245520['commandParams'][0x0]['value'],_0xe2201c=this['_getHeadingLevel'](_0x76f38b);if(null!==_0xe2201c)return{'type':'format','content':o(_0x3c52a4,'*Change\x20to:*\x20%0',(_0x44485a=0x1,_0x5b2a33=_0xe2201c,o(_0x3c52a4,'ELEMENT_HEADING',[_0x44485a,_0x5b2a33])))};const _0x449d13=this['_headingOptions']['find'](_0x6d11b9=>_0x6d11b9['model']===_0x76f38b)['title'];return{'type':'format','content':o(_0x3c52a4,'*Change\x20to:*\x20%0',_0x499a21(0x1,_0x449d13))};}var _0x44485a,_0x5b2a33;});}['_getHeadingLevel'](_0x526587){const _0x25a4ce=_0x526587['match'](/^heading(\d+)/);if(_0x25a4ce)return _0x25a4ce[0x1];const _0x44dca4=this['_headingOptions']?.['find'](_0x1529fe=>_0x1529fe['model']==_0x526587);if(_0x44dca4&&_0x44dca4['view']){const _0xd2ada1=_0x44dca4['view'],_0x388d04=(_0xd2ada1['name']??_0xd2ada1)['match'](/^h(\d+)/);if(_0x388d04)return _0x388d04[0x1];}return null;}}class et extends _0x8c8d34{['afterInit'](){const _0x3588af=this['editor'];if(!_0x3588af['plugins']['has']('HighlightEditing'))return;const _0x44220f=_0x3588af['plugins']['get']('TrackChangesEditing'),_0x5bf56a=_0x3588af['locale'];_0x44220f['enableDefaultAttributesIntegration']('highlight'),_0x44220f['registerInlineAttribute']('highlight'),_0x44220f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5bf56a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9ae886=this['editor'],_0x322127=_0x9ae886['locale'];_0x9ae886['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18e640=>{if('formatInline'!=_0x18e640['type'])return;const {data:_0x3ec839}=_0x18e640;if(_0x3ec839&&'highlight'==_0x3ec839['commandName']){const _0x3f1c4b=_0x322127['t'],_0x528962=_0x3ec839['commandParams'][0x0]['value'];if(_0x528962){const _0x45e65b=_0x9ae886['config']['get']('highlight.options')['find'](_0x991cd6=>_0x991cd6['model']==_0x528962),_0x2a7ee9=_0x3f1c4b(_0x45e65b['title'])['toLowerCase']();return{'type':'format','content':o(_0x322127,'*Set\x20highlight:*\x20%0',_0x2a7ee9),'color':{'value':_0x45e65b['color'],'title':_0x45e65b['title']}};}return{'type':'format','content':o(_0x322127,'*Remove\x20highlight*',o(_0x322127,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x8c8d34{['afterInit'](){const _0x398914=this['editor'];if(!_0x398914['plugins']['has']('HorizontalLineEditing'))return;_0x398914['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3657da=_0x398914['plugins']['get']('TrackChangesEditing'),_0x568983=_0x398914['locale'];_0x3657da['descriptionFactory']['registerElementLabel']('horizontalLine',_0x30de6a=>o(_0x568983,'ELEMENT_HORIZONTAL_LINE',_0x30de6a)),_0x398914['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4ce89e,{writer:_0x420377,options:_0x54c5eb})=>{if(!_0x54c5eb['showSuggestionHighlights'])return null;const _0x4e866d=_0x420377['createContainerElement']('div'),_0x260705=_0x420377['createEmptyElement']('hr');return _0x420377['addClass']('ck-horizontal-line',_0x4e866d),_0x420377['insert'](_0x420377['createPositionAt'](_0x4e866d,0x0),_0x260705),_0x4e866d;},'converterPriority':'high'});}}class st extends _0x8c8d34{['afterInit'](){const _0x21af94=this['editor'];if(!_0x21af94['plugins']['has']('HtmlEmbed'))return;const _0x5db5cd=_0x21af94['plugins']['get']('TrackChangesEditing'),_0x586b25=_0x21af94['locale'];_0x5db5cd['descriptionFactory']['registerElementLabel']('rawHtml',_0x57a852=>o(_0x586b25,'ELEMENT_HTML_EMBED',_0x57a852)),_0x5db5cd['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5db5cd['registerBlockAttribute']('value'),_0x5db5cd['descriptionFactory']['registerDescriptionCallback'](_0x2193e3=>{if('attribute'!=_0x2193e3['type'])return;const {data:_0x67bdb3}=_0x2193e3;if(_0x67bdb3&&'value'==_0x67bdb3['key']&&_0x2193e3['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4ba66d=o(_0x586b25,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x586b25,'*Change\x20%0\x20content*',_0x4ba66d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdb4b75=this['editor'],_0x8eee24=_0xdb4b75['locale'];_0xdb4b75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5853b4=>{if('formatBlock'!=_0x5853b4['type'])return;const {data:_0x1d1e39}=_0x5853b4;if(_0x1d1e39&&'htmlEmbed'==_0x1d1e39['commandName']){const _0x5906c9=o(_0x8eee24,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x8eee24,'*Change\x20%0\x20content*',_0x5906c9)};}});}}class nt extends _0x8c8d34{['afterInit'](){const _0x127044=this['editor'];if(!_0x127044['plugins']['has']('ImageEditing'))return;const _0x337f45=_0x127044['plugins']['get']('TrackChangesEditing'),_0x59d225=_0x127044['plugins']['get']('ImageUtils'),_0x33e4eb=_0x127044['locale'];_0x337f45['enableCommand']('insertImage'),_0x337f45['descriptionFactory']['registerElementLabel']('imageBlock',_0x9b751=>o(_0x33e4eb,'ELEMENT_IMAGE',_0x9b751)),_0x337f45['descriptionFactory']['registerElementLabel']('imageInline',_0x561932=>o(_0x33e4eb,'ELEMENT_INLINE_IMAGE',_0x561932)),_0x337f45['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x33e4eb,'ELEMENT_CAPTION')),_0x127044['plugins']['has']('ImageUploadEditing')&&_0x337f45['enableCommand']('uploadImage'),_0x127044['plugins']['has']('ImageBlockEditing')&&_0x127044['plugins']['has']('ImageInlineEditing')&&(_0x337f45['enableCommand']('imageTypeInline',(_0x1198c8,_0x580e81)=>{const _0x397d90=_0x59d225['getClosestSelectedImageElement'](_0x127044['model']['document']['selection']);_0x127044['model']['change'](()=>{_0x337f45['markBlockFormat'](_0x397d90,{'commandName':'imageTypeInline','commandParams':[_0x580e81]},[],'convertBlockImageToInline');});}),_0x337f45['enableCommand']('imageTypeBlock',(_0x4be30d,_0x21e1f5)=>{_0x127044['model']['change'](_0x3b5eba=>{let _0x3f69d1=_0x59d225['getClosestSelectedImageElement'](_0x127044['model']['document']['selection']),_0x25fa6b=_0x3b5eba['createRangeOn'](_0x3f69d1);const _0x1913fc=_0x2d06f4['fromPosition'](_0x25fa6b['start'],'toPrevious'),_0x37540b=_0x2d06f4['fromPosition'](_0x25fa6b['end'],'toNext');_0x337f45['forceDefaultExecution'](()=>_0x4be30d(_0x21e1f5)),_0x3f69d1=_0x59d225['getClosestSelectedImageElement'](_0x127044['model']['document']['selection']),_0x25fa6b=_0x3b5eba['createRangeOn'](_0x3f69d1);const _0x53be87=_0x3b5eba['createRange'](_0x1913fc,_0x37540b);_0x1913fc['detach'](),_0x37540b['detach'](),_0x337f45['markBlockFormat'](_0x3f69d1,{'commandName':'imageTypeInline','commandParams':[_0x21e1f5]},[],'convertInlineImageToBlock'),_0x53be87['start']['isBefore'](_0x25fa6b['start'])&&_0x337f45['markInsertion'](_0x3b5eba['createRange'](_0x53be87['start'],_0x25fa6b['start']),'convertInlineImageToBlock'),_0x25fa6b['end']['isBefore'](_0x53be87['end'])&&_0x337f45['markInsertion'](_0x3b5eba['createRange'](_0x25fa6b['end'],_0x53be87['end']),'convertInlineImageToBlock');});}),_0x337f45['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x337f45['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x337f45['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x337f45['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x337f45['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x337f45['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xd7fdb0])=>{const _0x51abb0=_0x337f45['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x53fab7=_0xd7fdb0['start'],_0x309483=_0xd7fdb0['end'];const _0x1d4e41=_0x127044['model']['schema']['getNearestSelectionRange'](_0x53fab7,'backward'),_0x497b42=_0x127044['model']['schema']['getNearestSelectionRange'](_0x309483,'forward');_0x1d4e41['isCollapsed']&&(_0x53fab7=_0x1d4e41['start']),_0x497b42['isCollapsed']&&(_0x309483=_0x497b42['end']),_0x51abb0([_0x127044['model']['createRange'](_0x53fab7,_0x309483)]);}),_0x337f45['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x22733d),_0x337f45['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x22733d)),_0x127044['plugins']['has']('ImageCaptionEditing')&&(_0x337f45['enableCommand']('toggleImageCaption',(_0x1d58e0,_0x179dc2)=>{const _0x591873=_0x127044['plugins']['get']('ImageCaptionUtils');let _0x544b52=_0x59d225['getClosestSelectedImageElement'](_0x127044['model']['document']['selection']),_0x325fde=_0x591873['getCaptionFromImageModelElement'](_0x544b52);_0x127044['model']['change'](()=>{if(_0x325fde)return void _0x337f45['markDeletion'](_0x127044['model']['createRangeOn'](_0x325fde));const _0x5336ca=_0x59d225['isBlockImage'](_0x544b52);_0x1d58e0(_0x179dc2),_0x544b52=_0x59d225['getClosestSelectedImageElement'](_0x127044['model']['document']['selection']),_0x325fde=_0x591873['getCaptionFromImageModelElement'](_0x544b52),_0x337f45['markInsertion'](_0x127044['model']['createRangeOn'](_0x325fde),_0x5336ca?null:'imageCaption');});}),_0x337f45['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x22733d));const _0x3e16b8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x93471e(_0x485842,_0x3c022e){const _0x5c4915=_0x3e16b8['findIndex'](({type:_0x54b8da,subType:_0x5a4812})=>_0x485842['type']==_0x54b8da&&_0x485842['subType']==_0x5a4812),_0x2389a0=_0x3e16b8['findIndex'](({type:_0xd36d4e,subType:_0x12cd4b})=>_0x3c022e['type']==_0xd36d4e&&_0x3c022e['subType']==_0x12cd4b);if(_0x5c4915<0x0||_0x2389a0<0x0)return!0x1;const _0x4ad697=_0x485842['getFirstRange'](),_0x3a7689=_0x3c022e['getFirstRange']();if((0x0==_0x5c4915||0x1==_0x5c4915)&&0x2==_0x2389a0&&_0x4ad697['isIntersecting'](_0x3a7689))return!0x0;if(0x2==_0x5c4915&&0x3==_0x2389a0){const _0x23f0aa=_0x337f45['_findSuggestions'](_0x4ad697,'insertion')['filter'](({suggestion:_0x461b4e,meta:_0x1846dd})=>_0x1846dd['isOwn']&&'convertInlineImageToBlock'==_0x461b4e['subType']);if(_0x23f0aa['length']>0x1&&_0x3a7689['end']['isEqual'](_0x4ad697['start']))return!0x0;if(0x1==_0x23f0aa['length']&&(_0x4ad697['start']['isEqual'](_0x3a7689['end'])||_0x4ad697['end']['isEqual'](_0x3a7689['start'])))return!0x0;}if(0x3==_0x5c4915&&0x3==_0x2389a0&&_0x4ad697['start']['isBefore'](_0x3a7689['start'])){const _0x4ffbd9=_0x4ad697['end']['nodeAfter'],_0xcf8d14=_0x3a7689['start']['nodeBefore'];return _0x59d225['isBlockImage'](_0x4ffbd9)&&_0x4ffbd9===_0xcf8d14;}return!0x1;}function _0x22733d(_0x5e9ea0,_0x37f6e4){return _0x93471e(_0x5e9ea0,_0x37f6e4)?[_0x5e9ea0,_0x37f6e4]:_0x93471e(_0x37f6e4,_0x5e9ea0)?[_0x37f6e4,_0x5e9ea0]:null;}_0x127044['plugins']['has']('ImageResize')&&(_0x337f45['enableDefaultAttributesIntegration']('resizeImage'),_0x337f45['registerBlockAttribute']('resizedWidth'),_0x337f45['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x33e4eb,'FORMAT_IMAGE_SIZE'))),_0x127044['plugins']['has']('ImageTextAlternativeEditing')&&(_0x337f45['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x337f45['registerBlockAttribute']('alt')),_0x337f45['descriptionFactory']['registerDescriptionCallback'](_0x28d747=>{if(!!_0x3e16b8['find'](({type:_0x41d396,subType:_0x21930c})=>_0x28d747['type']==_0x41d396&&_0x28d747['subType']==_0x21930c))return _0x28d747['previous']?{}:void 0x0;}),_0x337f45['descriptionFactory']['registerDescriptionCallback'](_0x4a8af4=>{if('insertion'==_0x4a8af4['type']||'deletion'==_0x4a8af4['type']){const _0x14e18f=_0x4a8af4['getContainedElement']();if(_0x14e18f&&_0x14e18f['is']('element','caption'))return{'type':'insertion'==_0x4a8af4['type']?'addObject':'removeObject','element':_0x14e18f,'quantity':0x1};}}),_0x337f45['descriptionFactory']['registerDescriptionCallback'](_0x3485c3=>'formatBlock'==_0x3485c3['type']&&'convertInlineImageToBlock'==_0x3485c3['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3485c3['type']&&'convertBlockImageToInline'==_0x3485c3['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x337f45['descriptionFactory']['registerDescriptionCallback'](_0x30ba61=>{if('attribute'!=_0x30ba61['type'])return;const {data:_0x179de4}=_0x30ba61;if(!_0x179de4||'alt'!=_0x179de4['key'])return;const _0xdce7b0=_0x179de4['newValue'];return _0xdce7b0?{'type':'format','content':o(_0x33e4eb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xdce7b0+'\x22')}:{'type':'format','content':o(_0x33e4eb,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8ec277=this['editor'],_0x180b4d=_0x8ec277['locale'];_0x8ec277['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57fdc4=>{if('formatBlock'!=_0x57fdc4['type']&&'formatInline'!=_0x57fdc4['type'])return;const {data:_0x46ec71}=_0x57fdc4;if(_0x46ec71){if('imageTextAlternative'==_0x46ec71['commandName']){const _0x86dbca=_0x46ec71['commandParams'][0x0]['newValue'];return _0x86dbca?{'type':'format','content':o(_0x180b4d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x86dbca+'\x22')}:{'type':'format','content':o(_0x180b4d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x46ec71['commandName']){const _0x4abfdf=_0x46ec71['commandParams'][0x0]['width'];return _0x4abfdf?{'type':'format','content':o(_0x180b4d,'*Set\x20image\x20width:*\x20%0',_0x4abfdf)}:{'type':'format','content':o(_0x180b4d,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x8c8d34{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5d484d=this['editor']['locale'],_0x4d1553=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d1553['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4d1553['registerBlockAttribute']('src'),_0x4d1553['descriptionFactory']['registerDescriptionCallback'](_0x354172=>{if('attribute'!=_0x354172['type'])return;const {data:_0x157e78}=_0x354172;return _0x157e78&&'src'==_0x157e78['key']?_0x157e78['newValue']&&_0x157e78['oldValue']?{'type':'format','content':o(_0x5d484d,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2924d1=this['editor']['plugins']['get']('TrackChangesEditing');_0x2924d1['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2924d1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2924d1['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2924d1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2594a8=this['editor'],_0x1629dd=_0x2594a8['locale'];_0x2594a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x428618=>{if('formatBlock'!=_0x428618['type']&&'formatInline'!=_0x428618['type'])return;const {data:_0x3f15be}=_0x428618;if(!_0x3f15be||'replaceImageSource'!=_0x3f15be['commandName'])return;return{'type':'format','content':o(_0x1629dd,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x8c8d34{['afterInit'](){const _0x1f0915=this['editor'];if(!_0x1f0915['plugins']['has']('ImageStyleEditing'))return;const _0x24f09d=_0x1f0915['plugins']['get']('TrackChangesEditing'),_0x531bde=_0x1f0915['plugins']['get']('ImageUtils'),_0x582b7c={};_0x24f09d['enableCommand']('imageStyle',(_0x54131f,_0x569b02)=>{const _0x4593a2=_0x1f0915['plugins']['get']('Users')['me'],_0x1e3923=_0x1f0915['commands']['get']('imageStyle');let _0x3e5d58=_0x531bde['getClosestSelectedImageElement'](_0x1f0915['model']['document']['selection']),_0x40ccca=_0x1f0915['model']['createRangeOn'](_0x3e5d58),_0x552fc2=_0x1e3923['value'];if(_0x552fc2==_0x569b02['value'])return;const _0x23a178={'commandName':'imageStyle','commandParams':[_0x569b02],'formatGroupId':_0x3143a6()};_0x1f0915['model']['change'](()=>{if(_0x24f09d['getSuggestions']()['filter'](_0x354d9c=>_0x354d9c['isInContent']&&_0x4593a2==_0x354d9c['author']&&('formatBlock'==_0x354d9c['type']||'formatInline'==_0x354d9c['type'])&&('imageStylePreApply'==_0x354d9c['subType']||'imageStylePostApply'==_0x354d9c['subType'])&&_0x354d9c['getFirstRange']()['isEqual'](_0x40ccca))['forEach'](_0x98fc08=>_0x24f09d['discardSuggestion'](_0x98fc08['head'])),_0x3e5d58=_0x531bde['getClosestSelectedImageElement'](_0x1f0915['model']['document']['selection']),_0x40ccca=_0x1f0915['model']['createRangeOn'](_0x3e5d58),_0x1e3923['refresh'](),_0x1f0915['commands']['get']('imageTypeInline')['refresh'](),_0x1f0915['commands']['get']('imageTypeBlock')['refresh'](),_0x552fc2=_0x1e3923['value'],_0x552fc2!=_0x569b02['value'])return _0x531bde['isInlineImage'](_0x3e5d58)&&_0x1e3923['shouldConvertImageType'](_0x569b02['value'],_0x3e5d58)?(_0x54131f({..._0x569b02,'setImageSizes':!0x1}),_0x3e5d58=_0x531bde['getClosestSelectedImageElement'](_0x1f0915['model']['document']['selection']),void _0x24f09d['markBlockFormat'](_0x3e5d58,{..._0x23a178,'commandReversedParams':[{'value':_0x552fc2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x531bde['isBlockImage'](_0x3e5d58)?_0x24f09d['markBlockFormat'](_0x3e5d58,_0x23a178,[],'imageStylePostApply'):_0x24f09d['markInlineFormat'](_0x40ccca,_0x23a178,'imageStylePostApply'));});});for(const _0x59d12b of _0x1f0915['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x582b7c[_0x59d12b['name']]=_0x59d12b['title']['toLowerCase']();_0x24f09d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x24f09d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x24f09d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x24f09d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1538a0])=>{_0x531bde['setImageNaturalSizeAttributes'](_0x1538a0['getContainedElement']());}),_0x24f09d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4defe1,_0x199794)=>{_0x24f09d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4defe1,{'commandName':_0x199794['commandName'],'commandParams':_0x199794['commandReversedParams']});}),_0x24f09d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2b132f,_0x1bc994){if(_0x2aa474(_0x2b132f,_0x1bc994))return[_0x2b132f,_0x1bc994];if(_0x2aa474(_0x1bc994,_0x2b132f))return[_0x1bc994,_0x2b132f];return null;});const _0x261d8c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2aa474(_0x2d199c,_0x3f05f8){const _0xb1ecb0=_0x261d8c['findIndex'](({type:_0x231257,subType:_0x3230a4})=>_0x2d199c['type']==_0x231257&&_0x2d199c['subType']==_0x3230a4),_0x30ff1f=_0x261d8c['findIndex'](({type:_0x213242,subType:_0x3f4512})=>_0x3f05f8['type']==_0x213242&&_0x3f05f8['subType']==_0x3f4512);if(_0xb1ecb0<0x0||_0x30ff1f<0x0)return!0x1;const _0x469e4f=_0x2d199c['getFirstRange'](),_0x71dfc3=_0x3f05f8['getFirstRange']();if((0x0==_0xb1ecb0||0x1==_0xb1ecb0)&&0x2==_0x30ff1f&&_0x469e4f['isIntersecting'](_0x71dfc3))return!0x0;if(0x2==_0xb1ecb0&&0x3==_0x30ff1f){const _0xb6fb34=_0x24f09d['_findSuggestions'](_0x469e4f,'insertion')['filter'](({suggestion:_0x57b50c,meta:_0x49c7d5})=>_0x49c7d5['isOwn']&&'convertInlineImageToBlock'==_0x57b50c['subType']);if(_0xb6fb34['length']>0x1&&_0x71dfc3['end']['isEqual'](_0x469e4f['start']))return!0x0;if(0x1==_0xb6fb34['length']&&(_0x469e4f['start']['isEqual'](_0x71dfc3['end'])||_0x469e4f['end']['isEqual'](_0x71dfc3['start'])))return!0x0;}if(0x3==_0xb1ecb0&&0x3==_0x30ff1f&&_0x469e4f['start']['isBefore'](_0x71dfc3['start'])){const _0x4e4f85=_0x469e4f['end']['nodeAfter'],_0x1a4c44=_0x71dfc3['start']['nodeBefore'];return _0x531bde['isBlockImage'](_0x4e4f85)&&_0x4e4f85===_0x1a4c44;}return!0x1;}_0x1f0915['model']['document']['registerPostFixer'](()=>{let _0x3fb009=!0x1;const _0x34cff2=Array['from'](_0x1f0915['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2dfc8,data:_0x174de7}of _0x34cff2){const {group:_0x3776bc,type:_0x14b06f,subType:_0x2e26cf,id:_0xd6f737}=_0x24f09d['_splitMarkerName'](_0x2dfc8);if('suggestion'==_0x3776bc&&_0x24f09d['hasSuggestion'](_0xd6f737)){if('formatBlock'==_0x14b06f&&('imageStylePreApply'==_0x2e26cf||'imageStylePostApply'==_0x2e26cf)){const _0x92426c=_0x24f09d['getSuggestion'](_0xd6f737);if(_0x174de7['newRange']){const _0x2cdfbf=_0x92426c['getFirstRange']()['getContainedElement']();if(_0x531bde['isBlockImage'](_0x2cdfbf))continue;_0x24f09d['discardSuggestion'](_0x92426c),_0x3fb009=!0x0;}}if('insertion'==_0x14b06f&&'imageCaption'==_0x2e26cf&&!_0x174de7['newRange']){const _0x31c400=_0x24f09d['getSuggestion'](_0xd6f737);_0x31c400['next']&&_0x31c400['next']['isInContent']&&(_0x24f09d['discardSuggestion'](_0x31c400['next']),_0x3fb009=!0x0);}}}return _0x3fb009;}),this['_registerLegacyDescription'](_0x582b7c);}['_registerLegacyDescription'](_0x2b7526){const _0x250bc4=this['editor'],_0x4919c7=_0x250bc4['locale'];_0x250bc4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b0626=>{if('formatBlock'!=_0x2b0626['type']&&'formatInline'!=_0x2b0626['type'])return;const {data:_0x1b4385}=_0x2b0626;if(!_0x1b4385||'imageStyle'!=_0x1b4385['commandName'])return;const _0x107578=_0x1b4385['commandParams'][0x0]['value'];return _0x131e9d('side'===_0x107578?o(_0x4919c7,'FORMAT_SIDE_IMAGE'):_0x2b7526[_0x107578]||_0x107578);function _0x131e9d(_0x13f35d){return{'type':'format','content':o(_0x4919c7,'*Format:*\x20%0',_0x13f35d)};}});}}class at extends _0x8c8d34{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x136940){super(_0x136940),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x120664=this['editor'],_0x387e79=_0x120664['commands']['get']('importWord'),_0x18bc9a=_0x120664['commands']['get']('trackChanges');_0x387e79&&(_0x387e79['on']('execute',(_0x291f55,[,_0x310a6e])=>{this['_trackChangesValueDuringImport']=_0x18bc9a['value'],_0x310a6e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x387e79,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x387e79,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x18bc9a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x120664['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2f668e,_0x1d586e){const {suggestions:_0x4760d8}=_0x1d586e,_0x5bf6f1=this['editor']['commands']['get']('trackChanges'),_0x23eb21=_0x5bf6f1['value'];this['_trackChangesValueDuringImport']!==_0x23eb21&&(_0x5bf6f1['execute'](),this['_trackChangesExecuted']=!0x0),_0x4760d8&&_0x4760d8['forEach'](({id:_0x3275a6,type:_0x4cf8a2,author:_0x344d94,created_at:_0x45c1ea})=>{const _0x2957c3={'id':_0x3275a6,'type':_0x4cf8a2,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x344d94,'createdAt':_0x45c1ea?new Date(_0x45c1ea):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2957c3);});}}class ct extends _0x8c8d34{['afterInit'](){const _0x1e48ba=this['editor'],_0x879e49=_0x1e48ba['plugins']['get']('TrackChangesEditing');if(_0x1e48ba['plugins']['has']('IndentEditing')&&(_0x879e49['enableCommand']('indent'),_0x879e49['enableCommand']('outdent')),_0x1e48ba['plugins']['has']('IndentBlock')){for(const _0x52cdfa of['indentBlock','outdentBlock'])_0x879e49['enableDefaultAttributesIntegration'](_0x52cdfa);}const _0x45bded=_0x1e48ba['locale'];_0x879e49['registerBlockAttribute']('blockIndent'),_0x879e49['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x45bded,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3da4fc=this['editor'],_0x2ce31b=_0x3da4fc['locale'],_0x583ab2=_0x3da4fc['plugins']['get']('TrackChangesEditing');_0x583ab2['descriptionFactory']['registerDescriptionCallback'](_0x22295c=>{if('formatBlock'!=_0x22295c['type'])return;const {data:_0x3d4d7c}=_0x22295c;if(!_0x3d4d7c)return;if('indentBlock'!=_0x3d4d7c['commandName']&&'outdentBlock'!=_0x3d4d7c['commandName'])return;const _0x1a58b6=_0x22295c['getItems']()[0x0],_0x3a4089=_0x583ab2['descriptionFactory']['getItemLabel'](_0x1a58b6);return'indentBlock'==_0x3d4d7c['commandName']?{'type':'format','content':o(_0x2ce31b,'*Indent:*\x20%0',_0x3a4089)}:'outdentBlock'==_0x3d4d7c['commandName']?{'type':'format','content':o(_0x2ce31b,'*Outdent:*\x20%0',_0x3a4089)}:void 0x0;});}}class ut extends _0x8c8d34{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x8c8d34{['afterInit'](){const _0x35fca6=this['editor'];if(!_0x35fca6['plugins']['has']('LinkEditing'))return;const _0x5e8054=_0x35fca6['plugins']['get']('TrackChangesEditing'),_0x1b71e3=_0x35fca6['commands']['get']('link');_0x5e8054['enableDefaultAttributesIntegration']('link'),_0x5e8054['enableDefaultAttributesIntegration']('unlink'),_0x5e8054['registerInlineAttribute']('linkHref');for(const _0x3e675d of _0x1b71e3['manualDecorators'])_0x5e8054['registerInlineAttribute'](_0x3e675d['id']),_0x5e8054['descriptionFactory']['registerAttributeLabel'](_0x3e675d['id'],'link\x20('+_0x3e675d['label']['toLowerCase']()+')');_0x5e8054['descriptionFactory']['registerDescriptionCallback'](_0x4902ba=>{if('attribute'!=_0x4902ba['type'])return;const {data:_0x2a9ba5}=_0x4902ba;if(!_0x2a9ba5||'linkHref'!=_0x2a9ba5['key'])return;const _0x429502=_0x2a9ba5['newValue'],_0x5ed587=_0x35fca6['locale'];return{'type':'format','content':null==_0x429502?o(_0x5ed587,'*Remove\x20link*'):o(_0x5ed587,'*Set\x20link:*\x20%0','\x22'+_0x429502+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41d8e1=this['editor'],_0x323c85=_0x41d8e1['locale'];_0x41d8e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xce2c57=>{if('formatInline'!=_0xce2c57['type'])return;const {data:_0xefc6f0}=_0xce2c57;if(_0xefc6f0){if('link'==_0xefc6f0['commandName']){const _0x15fbf8=_0xefc6f0['commandParams'][0x0];return{'type':'format','content':o(_0x323c85,'*Set\x20link:*\x20%0','\x22'+_0x15fbf8+'\x22')};}return'unlink'==_0xefc6f0['commandName']?{'type':'format','content':o(_0x323c85,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x8c8d34{['afterInit'](){const _0x11e7d1=this['editor'],_0x33d60d=_0x11e7d1['locale'];if(!_0x11e7d1['plugins']['has']('LegacyListEditing'))return;const _0x51895f=_0x11e7d1['plugins']['get']('TrackChangesEditing'),_0x54face=_0x11e7d1['plugins']['has']('LegacyTodoListEditing');function _0x49d5c6(_0x26e4ae){return()=>{const _0xf562a4=_0x11e7d1['model']['document']['selection'],_0xd6b11b=_0x11e7d1['commands']['get'](_0x26e4ae);if(_0xd6b11b['value'])return void _0x11e7d1['execute']('paragraph',{});const _0x3d3367=_0x26e4ae['slice'](0x0,-0x4),_0x8139a9=function(_0x423e80,_0x38e7ff,_0x19b5f8){let _0x597433=Array['from'](_0x423e80)['filter'](_0x51b013=>function(_0x4ee6a6,_0x30be3e){return _0x30be3e['checkChild'](_0x4ee6a6['parent'],'listItem')&&!_0x30be3e['isObject'](_0x4ee6a6);}(_0x51b013,_0x19b5f8));_0x597433=_0x597433['filter'](_0x3a04b1=>!_0x3a04b1['is']('element','listItem')||_0x3a04b1['getAttribute']('listType')!=_0x38e7ff);const _0x35752a=new Set();for(const _0x470fb4 of _0x597433)_0x470fb4['is']('element','listItem')?_0x35752a['add'](fe(_0x470fb4)):_0x35752a['add'](_0x470fb4);return Array['from'](_0x35752a);}(_0xf562a4['getSelectedBlocks'](),_0x3d3367,_0x11e7d1['model']['schema']);_0x11e7d1['model']['change'](()=>{for(const _0xf656f7 of _0x8139a9)_0x51895f['markBlockFormat'](_0xf656f7,{'commandName':_0x26e4ae,'commandParams':[{'forceValue':!_0xd6b11b['value']}],'formatGroupId':'blockName'},ue(_0xf656f7));});};}function _0x5c71e0(_0x54149a){return()=>{const _0xcf6ce5=function(_0x5d77d0){let _0xb35766=Array['from'](_0x5d77d0);const _0x32683f=_0xb35766['findIndex'](_0xbc77cb=>'listItem'!=_0xbc77cb['name']);return _0x32683f>-0x1&&(_0xb35766=_0xb35766['slice'](0x0,_0x32683f)),_0xb35766;}(_0x11e7d1['model']['document']['selection']['getSelectedBlocks']()),_0xdcc8ed=_0x11e7d1['model']['createRange'](_0x11e7d1['model']['createPositionAt'](_0xcf6ce5[0x0],'before'),_0x11e7d1['model']['createPositionAt'](_0xcf6ce5[_0xcf6ce5['length']-0x1],'end'));_0x11e7d1['model']['change'](()=>{_0x51895f['markBlockFormat'](_0xdcc8ed,{'commandName':_0x54149a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3ce23a){const _0x4d555a=new Set();for(const _0x4e3a3b of _0x3ce23a){let _0x13f3ad=_0x4e3a3b['nextSibling'];for(;_0x13f3ad&&_0x13f3ad['getAttribute']('listIndent')>_0x4e3a3b['getAttribute']('listIndent');)_0x4d555a['add'](_0x13f3ad),_0x13f3ad=_0x13f3ad['nextSibling'];}return Array['from'](_0x4d555a);}(_0xcf6ce5));});};}_0x51895f['enableCommand']('numberedList',_0x49d5c6('numberedList')),_0x51895f['enableCommand']('bulletedList',_0x49d5c6('bulletedList')),_0x54face&&_0x51895f['enableCommand']('todoList',_0x49d5c6('todoList')),_0x51895f['enableCommand']('indentList',_0x5c71e0('indentList')),_0x51895f['enableCommand']('outdentList',_0x5c71e0('outdentList')),_0x54face&&_0x51895f['enableCommand']('checkTodoList',()=>{const _0x4b7082=_0x11e7d1['commands']['get']('checkTodoList'),_0x220343=Array['from'](_0x4b7082['_selectedElements']);_0x220343['filter'](_0x1f9201=>_0x1f9201['getAttribute']('todoListChecked')!=_0x4b7082['value']),_0x11e7d1['model']['change'](()=>{for(const _0x3678d4 of _0x220343)_0x51895f['markBlockFormat'](_0x3678d4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4b7082['value']}]});});}),_0x51895f['descriptionFactory']['registerElementLabel']('listItem',_0x157986=>o(_0x33d60d,'ELEMENT_LIST_ITEM',_0x157986)),_0x51895f['descriptionFactory']['registerDescriptionCallback'](_0x1f4f15=>{if('formatBlock'!=_0x1f4f15['type']&&'formatInline'!=_0x1f4f15['type'])return;const {data:_0x23e5f3}=_0x1f4f15;if(_0x23e5f3){if('numberedList'==_0x23e5f3['commandName']||'bulletedList'==_0x23e5f3['commandName']||'todoList'==_0x23e5f3['commandName'])switch(_0x23e5f3['commandName']['replace']('List','')){case'bulleted':return _0x25ec1c(o(_0x33d60d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x25ec1c(o(_0x33d60d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x25ec1c(o(_0x33d60d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x23e5f3['commandName'])return{'type':'format','content':o(_0x33d60d,'*Indent:*\x20%0',o(_0x33d60d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x23e5f3['commandName'])return{'type':'format','content':o(_0x33d60d,'*Outdent:*\x20%0',o(_0x33d60d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x23e5f3['commandName'])return _0x23e5f3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33d60d,'*Check\x20item*')}:{'type':'format','content':o(_0x33d60d,'*Uncheck\x20item*')};}function _0x25ec1c(_0x5b033b){return{'type':'format','content':o(_0x33d60d,'*Change\x20to:*\x20%0',_0x5b033b)};}});}}function fe(_0xf48993){const _0x3ac3b7=_0xf48993['getAttribute']('listIndent');if(0x0==_0x3ac3b7)return _0xf48993;let _0x45be61=_0xf48993;for(;_0xf48993['previousSibling']&&_0xf48993['previousSibling']['is']('element','listItem');){const _0x4217b3=_0xf48993['previousSibling']['getAttribute']('listIndent');if(_0x4217b3==_0x3ac3b7)_0x45be61=_0xf48993['previousSibling'];else{if(_0x4217b3<_0x3ac3b7)break;}_0xf48993=_0xf48993['previousSibling'];}return _0x45be61;}function ue(_0x5b7e59){const _0xf1e62a=[];if(_0x5b7e59['is']('element','listItem')&&_0x5b7e59['getAttribute']('listIndent')>0x0){let _0x171bf0=_0x5b7e59['nextSibling'];for(;_0x171bf0&&'listItem'==_0x171bf0['name']&&_0x171bf0['getAttribute']('listIndent')==_0x5b7e59['getAttribute']('listIndent');)_0xf1e62a['push'](_0x171bf0),_0x171bf0=_0x171bf0['nextSibling'];}return _0xf1e62a;}class W extends _0x8c8d34{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x34561c=this['editor']['config']['get']('list.properties'),_0x3fc1f6=this['editor']['plugins']['get']('TrackChangesEditing');_0x34561c['styles']&&_0x3fc1f6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x34561c['reversed']&&_0x3fc1f6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x34561c['startIndex']&&_0x3fc1f6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3fc1f6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1301e7,_0x299767={}){const _0x43a40f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x218c57=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x43a40f['markMultiRangeBlockFormat'](_0x218c57,{'commandName':'listStyle','commandParams':[{'type':_0x299767['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5b84fe,_0x1c8075={}){const _0x12eb5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x572ac=this['_getSuggestionBlocks'](_0x385891=>_0x385891['is']('element','listItem')&&'numbered'===_0x385891['getAttribute']('listType'));if(_0x572ac['length']<0x1)return;const _0x1c4fc9=_0x572ac['map'](_0x4dc811=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4dc811,'before'),this['editor']['model']['createPositionAt'](_0x4dc811,0x0)));this['editor']['model']['change'](()=>{_0x12eb5['markMultiRangeBlockFormat'](_0x1c4fc9,{'commandName':'listReversed','commandParams':[{'reversed':_0x1c8075['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x44fed3,_0x53f480={}){const _0x4a28a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d15de=this['_getSuggestionBlocks'](_0x58ab71=>_0x58ab71['is']('element','listItem')&&'numbered'===_0x58ab71['getAttribute']('listType'));if(_0x3d15de['length']<0x1)return;const _0x4398e7=_0x3d15de['map'](_0x5c4418=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5c4418,'before'),this['editor']['model']['createPositionAt'](_0x5c4418,0x0)));this['editor']['model']['change'](()=>{_0x4a28a8['markMultiRangeBlockFormat'](_0x4398e7,{'commandName':'listStart','commandParams':[{'startIndex':_0x53f480['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x52f9db){if('formatBlock'!=_0x52f9db['type']&&'formatInline'!=_0x52f9db['type'])return;const _0x10c221=this['editor']['locale'],{data:_0x18e851}=_0x52f9db;if(!_0x18e851)return;let _0x4c9c07,_0x1a3e21;switch(_0x18e851['commandName']){case'listStyle':_0x4c9c07='*Change\x20to:*\x20%0',_0x1a3e21={'type':'format','content':o(_0x10c221,_0x4c9c07,o(_0x10c221,this['_getTranslationKeyForListStyle'](_0x18e851['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4c9c07=_0x18e851['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1a3e21={'type':'format','content':o(_0x10c221,_0x4c9c07)};break;case'listStart':_0x4c9c07='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1a3e21={'type':'format','content':o(_0x10c221,_0x4c9c07,_0x18e851['commandParams'][0x0]['startIndex'])};}return _0x1a3e21;}['_getSuggestionBlocksForListStyle'](){const _0x3a9ccd=this['editor']['plugins']['get']('LegacyListUtils');let _0x4bca3e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4bca3e[0x0]?.['is']('element','listItem')&&_0x4bca3e['unshift'](..._0x3a9ccd['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4bca3e[_0x4bca3e['length']-0x1]?.['is']('element','listItem')&&_0x4bca3e['push'](..._0x3a9ccd['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4bca3e=[...new Set(_0x4bca3e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4bca3e=_0x4bca3e['filter'](_0xebb6d7=>_0xebb6d7['is']('element','listItem'))),_0x4bca3e;}['_getSuggestionBlocks'](_0x21641c){const _0x18ae12=this['editor']['plugins']['get']('LegacyListUtils');let _0x1d4626=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x21641c)['map'](_0x28c22a=>{const _0x351553=this['editor']['model']['createPositionAt'](_0x28c22a,0x0);return[..._0x18ae12['getSiblingNodes'](_0x351553,'backward'),..._0x18ae12['getSiblingNodes'](_0x351553,'forward')];})['flat']();return _0x1d4626=[...new Set(_0x1d4626)],_0x1d4626;}['_getTranslationKeyForListStyle'](_0x2aa443){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2aa443)||'default')['toUpperCase']()+'_LIST_'+_0x2aa443['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x8c8d34{['afterInit'](){const _0x5e8b27=this['editor'];if(!_0x5e8b27['plugins']['has']('MediaEmbedEditing'))return;const _0x541b9f=_0x5e8b27['plugins']['get']('TrackChangesEditing'),_0x259186=_0x5e8b27['locale'];_0x541b9f['enableCommand']('mediaEmbed'),_0x541b9f['descriptionFactory']['registerElementLabel']('media',_0x3314f9=>o(_0x259186,'ELEMENT_MEDIA',_0x3314f9)),_0x5e8b27['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x12052e,{writer:_0x610d5,options:_0x34f2bc})=>{if(_0x34f2bc['showSuggestionHighlights'])return _0x610d5['createEmptyElement']('div');},'converterPriority':'high'}),_0x5e8b27['data']['downcastDispatcher']['on']('attribute:url:media',(_0x24adac,_0x5d02fc,_0x45325b)=>{_0x45325b['options']['showSuggestionHighlights']&&_0x24adac['stop']();},{'priority':'high'});}}class mt extends _0x8c8d34{['afterInit'](){const _0x3461d8=this['editor'];_0x3461d8['plugins']['has']('MentionEditing')&&_0x3461d8['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x8c8d34{['afterInit'](){const _0x5df22e=this['editor'];if(!_0x5df22e['plugins']['has']('MergeFieldsEditing'))return;_0x5df22e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x5df22e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0xbc9deb=_0x5df22e['plugins']['get']('TrackChangesEditing'),_0x2696c4=_0x5df22e['locale'];_0xbc9deb['descriptionFactory']['registerElementLabel']('mergeField',_0x2bf353=>o(_0x2696c4,'ELEMENT_MERGE_FIELD',_0x2bf353)),_0xbc9deb['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x28e924=>o(_0x2696c4,'ELEMENT_MERGE_FIELD',_0x28e924)),_0xbc9deb['descriptionFactory']['registerDescriptionCallback'](_0x54d888=>{if('insertion'!=_0x54d888['type']&&'deletion'!=_0x54d888['type'])return;const _0x230eb7=_0x54d888['getContainedElement']();if(null==_0x230eb7)return;if(!_0x230eb7['is']('element','mergeField')&&!_0x230eb7['is']('element','mergeFieldBlock'))return;const _0x5d2e58=_0x5df22e['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x230eb7['getAttribute']('id'));return'insertion'==_0x54d888['type']?{'type':'insertion','content':o(_0x2696c4,'*Insert:*\x20%0','\x22'+_0x5d2e58+'\x22\x20'+o(_0x2696c4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2696c4,'*Remove:*\x20%0','\x22'+_0x5d2e58+'\x22\x20'+o(_0x2696c4,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x8c8d34{['afterInit'](){const _0x45dfa8=this['editor'],_0x323e9a=_0x45dfa8['plugins']['get']('TrackChangesEditing');_0x45dfa8['plugins']['has']('MultiLevelList')&&(_0x323e9a['enableDefaultAttributesIntegration']('multiLevelList'),_0x323e9a['registerBlockAttribute']('listMarkerStyle'),_0x323e9a['descriptionFactory']['registerDescriptionCallback'](_0x2611e4=>this['handleDescriptions'](_0x2611e4)));}['handleDescriptions'](_0x1d8628){const _0x5002b9=this['editor']['locale'],{data:_0x4d652e}=_0x1d8628,_0x2cf57c={'type':'format','content':''};if(_0x4d652e&&'listMarkerStyle'==_0x4d652e['key']){if(!_0x4d652e['oldValue'])return{'type':'format','content':o(_0x5002b9,'*Set\x20format:*\x20%0',o(_0x5002b9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4d652e['newValue']+')'};if(!_0x4d652e['newValue']){let _0x9c5b96=_0x1d8628['head'];for(;_0x9c5b96;){if(_0x9c5b96['data']&&'listType'==_0x9c5b96['data']['key']&&_0x9c5b96['data']['newValue'])return _0x2cf57c;_0x9c5b96=_0x9c5b96['next'];}return{'type':'format','content':o(_0x5002b9,'*Remove\x20format:*\x20%0',o(_0x5002b9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4d652e['oldValue']+')'};}}}}class kt extends _0x8c8d34{['afterInit'](){const _0x251552=this['editor'];if(!_0x251552['plugins']['has']('PageBreakEditing'))return;_0x251552['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3ca941=_0x251552['plugins']['get']('TrackChangesEditing'),_0x312caa=_0x251552['locale'];_0x3ca941['descriptionFactory']['registerElementLabel']('pageBreak',_0x52423f=>o(_0x312caa,'ELEMENT_PAGE_BREAK',_0x52423f));}}class bt extends _0x8c8d34{['afterInit'](){const _0x213104=this['editor'];if(!_0x213104['plugins']['has']('Paragraph'))return;const _0x110c42=_0x213104['locale'],_0x2624e0=_0x213104['plugins']['get']('TrackChangesEditing');_0x2624e0['descriptionFactory']['registerElementLabel']('paragraph',_0x4c29f5=>o(_0x110c42,'ELEMENT_PARAGRAPH',_0x4c29f5)),_0x2624e0['enableDefaultAttributesIntegration']('paragraph'),_0x2624e0['enableCommand']('insertParagraph'),_0x213104['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x213104),{'priority':'highest'}),_0x213104['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3fb351,_0x39165e,_0x2d1652)=>{_0x2d1652['options']['showSuggestionHighlights']&&nr(_0x213104,{'showActiveMarker':!0x1})(_0x3fb351,_0x39165e,_0x2d1652);},{'priority':'highest'});const _0x2f1aab=_0x2624e0['descriptionFactory'];_0x2f1aab['registerDescriptionCallback'](_0x501127=>{if('insertion'!==_0x501127['type'])return;const {start:_0x386a5a,end:_0x163b11}=_0x501127['getFirstRange']();if(!_0x386a5a['isTouching'](_0x163b11)||!_0x386a5a['nodeAfter'])return;const _0x51e07c=_0x213104['model']['schema'],_0x52926a=_0x386a5a['nodeAfter'];return _0x51e07c['isBlock'](_0x52926a)&&!_0x51e07c['isLimit'](_0x52926a)&&_0x51e07c['checkChild'](_0x52926a,'$text')?{'type':'insertion','content':o(_0x110c42,'*Insert:*\x20%0',_0x2f1aab['getItemLabel'](_0x52926a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19ddf3=this['editor'],_0x1e75b6=_0x19ddf3['locale'];_0x19ddf3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1baac3=>{if('formatBlock'!=_0x1baac3['type'])return;const {data:_0x59c5a6}=_0x1baac3;return _0x59c5a6&&'paragraph'==_0x59c5a6['commandName']?{'type':'format','content':o(_0x1e75b6,'*Change\x20to:*\x20%0',o(_0x1e75b6,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x59a65a,{showActiveMarker:_0x2121ca=!0x0}={}){return(_0x1de8d6,_0x1c31c2,_0x249333)=>{const _0x12bd47=_0x59a65a['plugins']['get']('TrackChangesEditing'),_0x3e3f05=_0x1c31c2['markerRange']['start'],_0x1a61ab=_0x1c31c2['markerRange']['end'],_0xa39442=_0x59a65a['model']['schema'];if(!_0x3e3f05['isTouching'](_0x1a61ab)||!_0x3e3f05['nodeAfter'])return;const _0x165b04=_0x3e3f05['nodeAfter'];if(_0xa39442['isBlock'](_0x165b04)&&!_0xa39442['isLimit'](_0x165b04)&&_0xa39442['checkChild'](_0x165b04,'$text')){if(!_0x249333['consumable']['consume'](_0x1c31c2['markerRange'],_0x1de8d6['name']))return;const {authorId:_0x23702f}=_0x12bd47['_splitMarkerName'](_0x1c31c2['markerName']),_0x261cd4=_0x249333['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x23702f}),_0x3859b4=_0x249333['mapper']['toViewPosition'](_0x1a61ab);_0x2121ca&&_0x12bd47['activeMarkers']['includes'](_0x1c31c2['markerName'])&&_0x249333['writer']['addClass']('ck-suggestion-marker--active',_0x261cd4),_0x249333['writer']['insert'](_0x3859b4,_0x261cd4),_0x249333['mapper']['bindElementToMarker'](_0x261cd4,_0x1c31c2['markerName']);}};}class wt extends _0x8c8d34{['afterInit'](){const _0x4b5b07=this['editor'];if(!_0x4b5b07['plugins']['has']('RemoveFormatEditing'))return;_0x4b5b07['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7c0c21=this['editor'];_0x7c0c21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49bea8=>{if('formatBlock'!=_0x49bea8['type']&&'formatInline'!=_0x49bea8['type'])return;const {data:_0x112c57}=_0x49bea8;return _0x112c57&&'removeFormat'==_0x112c57['commandName']?{'type':'format','content':o(_0x7c0c21['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x8c8d34{['afterInit'](){const _0x4dab79=this['editor'];if(!_0x4dab79['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x37900b=_0x4dab79['plugins']['get']('TrackChangesEditing');_0x37900b['enableCommand']('goToPreviousRestrictedEditingException'),_0x37900b['enableCommand']('goToNextRestrictedEditingException');const _0x4a2b87=_0x4dab79['plugins']['get']('RestrictedEditingModeEditing');_0x4a2b87['enableCommand']('trackChanges'),_0x4a2b87['enableCommand']('acceptSuggestion'),_0x4a2b87['enableCommand']('discardSuggestion'),_0x4a2b87['enableCommand']('acceptAllSuggestions'),_0x4a2b87['enableCommand']('discardAllSuggestions'),_0x4a2b87['enableCommand']('acceptSelectedSuggestions'),_0x4a2b87['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x8c8d34{static get['requires'](){return[_0x232db2];}['init'](){const _0x31d7f9=this['editor'],_0x3f8f14=_0x31d7f9['plugins']['get']('TrackChangesEditing');_0x3f8f14['enableCommand']('shiftEnter'),_0x31d7f9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x31d7f9),{'priority':'high'}),_0x31d7f9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x31d7f9),{'priority':'high'}),_0x31d7f9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x355b6a,_0x3b48aa,_0x3247fb)=>{_0x3247fb['options']['showSuggestionHighlights']&&ge(_0x31d7f9,{'showActiveMarker':!0x1})(_0x355b6a,_0x3b48aa,_0x3247fb);}),_0x3f8f14['descriptionFactory']['registerElementLabel']('softBreak',_0x3543b9=>o(_0x31d7f9['locale'],'ELEMENT_LINE_BREAK',_0x3543b9));}}function ge(_0x1ffd20,{showActiveMarker:_0x50abaa=!0x0}={}){return(_0x4dc64f,_0x45e5c5,_0x30af48)=>{const _0x3f0772=_0x1ffd20['plugins']['get']('TrackChangesEditing');if(!_0x30af48['consumable']['test'](_0x45e5c5['markerRange'],_0x4dc64f['name']))return;const _0xefbd4a=_0x1ffd20['model'];for(const _0x350f87 of _0x45e5c5['markerRange']['getItems']()){if(!_0x350f87['is']('element','softBreak'))continue;const _0x580ff0='deletion'==_0x45e5c5['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x23fa79}=_0x3f0772['_splitMarkerName'](_0x45e5c5['markerName']),_0x19d69e=_0x30af48['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x580ff0,'data-author-id':_0x23fa79}),_0xac39b7=_0x30af48['mapper']['toViewPosition'](_0xefbd4a['createPositionBefore'](_0x350f87));_0x50abaa&&_0x3f0772['activeMarkers']['includes'](_0x45e5c5['markerName'])&&_0x30af48['writer']['addClass']('ck-suggestion-marker--active',_0x19d69e),_0x30af48['writer']['insert'](_0xac39b7,_0x19d69e),_0x30af48['mapper']['bindElementToMarker'](_0x19d69e,_0x45e5c5['markerName']);}};}class St extends _0x8c8d34{['afterInit'](){const _0x5f7ca0=this['editor'],_0x304f75=_0x5f7ca0['model'],_0x32e535=_0x5f7ca0['locale'];if(!_0x5f7ca0['plugins']['has']('StandardEditingModeEditing'))return;const _0x3643a6=_0x5f7ca0['plugins']['get']('TrackChangesEditing'),_0x4708a9='restrictedEditingException',_0x4b9dd3=_0x5f7ca0['commands']['get'](_0x4708a9);_0x3643a6['enableCommand'](_0x4708a9,(_0x2f0b45,_0x134cb6={})=>{const _0x29f6c5=_0x304f75['document']['selection'];if(_0x29f6c5['isCollapsed'])return void _0x2f0b45(_0x134cb6);const _0x1b1d2e=void 0x0!==_0x134cb6['forceValue']?_0x134cb6['forceValue']:!_0x4b9dd3['value'];_0x304f75['change'](()=>{const _0x2df0a1=Array['from'](_0x29f6c5['getRanges']());for(const _0x34c07e of _0x2df0a1){const _0x50b6f1=_0x1b1d2e?[_0x34c07e]:io(_0x4708a9,_0x34c07e,_0x304f75);for(const _0x3bb20d of _0x50b6f1)_0x3643a6['markInlineFormat'](_0x3bb20d,{'commandName':_0x4708a9,'commandParams':[{'forceValue':_0x1b1d2e}]});}});}),_0x3643a6['descriptionFactory']['registerDescriptionCallback'](_0x3b03c4=>{if('formatBlock'!=_0x3b03c4['type']&&'formatInline'!=_0x3b03c4['type'])return;const {data:_0x1dda90}=_0x3b03c4;return _0x1dda90&&_0x1dda90['commandName']==_0x4708a9?_0x1dda90['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x32e535,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x32e535,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x8c8d34{['afterInit'](){const _0x3a8561=this['editor'];if(!_0x3a8561['plugins']['has']('Style')||!_0x3a8561['plugins']['has']('DataSchema'))return;const _0xe593ac=_0x3a8561['plugins']['get']('TrackChangesEditing'),_0x2c8786=_0x3a8561['locale'],_0x448151=_0x3a8561['config']['get']('style')||{},_0x5a88f4=_0x3a8561['plugins']['get']('GeneralHtmlSupport'),_0x31588e=_0x3a8561['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3a8561['plugins']['get']('DataSchema'),_0x448151['definitions']);_0xe593ac['enableDefaultAttributesIntegration']('style');const _0x35fa1e=new Set();for(const _0x35ff15 of _0x31588e['block']){const _0x5930c2=_0x5a88f4['getGhsAttributeNameForElement'](_0x35ff15['element']);_0x35fa1e['add'](_0x5930c2);}const _0xc76297=new Set();for(const _0x190248 of _0x31588e['inline']){const _0x3f8328=_0x5a88f4['getGhsAttributeNameForElement'](_0x190248['element']);_0xc76297['add'](_0x3f8328);for(const _0x412dea of _0x190248['ghsAttributes'])_0xc76297['add'](_0x412dea);}for(const _0x89959a of _0x35fa1e)_0xe593ac['registerBlockAttribute'](_0x89959a),_0xe593ac['descriptionFactory']['registerAttributeLabel'](_0x89959a,o(_0x2c8786,'FORMAT_STYLE'));for(const _0x3edd9e of _0xc76297)_0xe593ac['registerInlineAttribute'](_0x3edd9e),_0xe593ac['descriptionFactory']['registerAttributeLabel'](_0x3edd9e,o(_0x2c8786,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55d545=this['editor'],_0x4e8c33=_0x55d545['locale'];_0x55d545['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16a5d9=>{if('formatBlock'!=_0x16a5d9['type']&&'formatInline'!=_0x16a5d9['type'])return;const {data:_0x3d19cd}=_0x16a5d9;return _0x3d19cd&&'style'===_0x3d19cd['commandName']?_0x3d19cd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e8c33,'*Set\x20format:*\x20%0',_0x3d19cd['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4e8c33,'*Remove\x20format:*\x20%0',_0x3d19cd['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x8c8d34{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x16599a){super(_0x16599a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2f76c9=this['editor'],_0xf31691=_0x2f76c9['model']['document']['selection'];if(!_0x2f76c9['plugins']['has']('TableEditing'))return;const _0x3b43a0=_0x2f76c9['locale'],_0x15a4bd=_0x2f76c9['plugins']['get']('TrackChangesEditing'),_0x567eff=_0x2f76c9['plugins']['get']('TableUtils');_0x15a4bd['descriptionFactory']['registerElementLabel']('table',_0x3b0a80=>o(_0x3b43a0,'ELEMENT_TABLE',_0x3b0a80)),this['_setupColumnsRowsFixing'](),_0x15a4bd['enableCommand']('insertTable'),_0x15a4bd['enableCommand']('selectTableRow'),_0x15a4bd['enableCommand']('selectTableColumn');for(const _0x596bc2 of['insertTableRowAbove','insertTableRowBelow']){const _0x54c2c0=_0x2f76c9['commands']['get'](_0x596bc2);_0x15a4bd['enableCommand'](_0x596bc2,_0x303a0d=>{_0x2f76c9['model']['change'](_0x2b05e3=>{_0x303a0d();const _0x9d32e='above'===_0x54c2c0['order'],_0x274e64=_0x567eff['getSelectionAffectedTableCells'](_0xf31691),_0xc164d6=_0x567eff['getRowIndexes'](_0x274e64),_0x415c34=_0x9d32e?_0xc164d6['first']-0x1:_0xc164d6['last']+0x1,_0x42414e=_0x274e64[0x0]['findAncestor']('table'),_0x576bd8=_0x567eff['createTableWalker'](_0x42414e,{'startRow':_0x415c34,'endRow':_0x415c34}),_0x398112=Array['from'](_0x576bd8)['map'](_0x28d6c9=>_0x2b05e3['createRangeOn'](_0x28d6c9['cell']));_0x15a4bd['markMultiRangeInsertion'](_0x398112,'tableRow');});});}for(const _0x313a3c of['insertTableColumnLeft','insertTableColumnRight']){const _0x1e8b92=_0x2f76c9['commands']['get'](_0x313a3c);_0x15a4bd['enableCommand'](_0x313a3c,_0x3315e9=>{_0x2f76c9['model']['change'](_0xb216d7=>{_0x3315e9();const _0x54277c='left'===_0x1e8b92['order'],_0x5c913d=_0x567eff['getSelectionAffectedTableCells'](_0xf31691),_0x3b65ee=_0x567eff['getColumnIndexes'](_0x5c913d),_0x3f79b4=_0x54277c?_0x3b65ee['first']-0x1:_0x3b65ee['last']+0x1,_0x4f86e6=_0x5c913d[0x0]['findAncestor']('table'),_0x5359af=_0x567eff['createTableWalker'](_0x4f86e6,{'startRow':0x0,'column':_0x3f79b4,'includeAllSlots':!0x1}),_0x34812e=Array['from'](_0x5359af)['map'](_0xb1c82f=>_0xb216d7['createRangeOn'](_0xb1c82f['cell']));_0x15a4bd['markMultiRangeInsertion'](_0x34812e,'tableColumn');});});}for(const _0x4ef2a8 of['removeTableRow','removeTableColumn']){const _0x4cc849=_0x4ef2a8['substr'](0xb),_0x5d0967=_0x4cc849['toLowerCase'](),_0xb1f8b7=_0x5d0967['substr'](0x0,0x3)+'span',_0x2a1a89='table'+_0x4cc849,_0x443a42='min'+_0x4cc849,_0x4649a8='max'+_0x4cc849;_0x15a4bd['enableCommand'](_0x4ef2a8,()=>{_0x2f76c9['model']['change'](_0x25f78e=>{const _0x245c8d=_0x567eff['getSelectionAffectedTableCells'](_0xf31691),_0x481ec0=_0x245c8d[0x0]['findAncestor']('table');let _0x16f834;if('removeTableRow'==_0x4ef2a8){const _0x4fc267=_0x567eff['getRowIndexes'](_0x245c8d);_0x16f834={'startRow':_0x4fc267['first'],'endRow':_0x4fc267['last'],'includeAllSlots':!0x0};}else{const _0x531516=_0x567eff['getColumnIndexes'](_0x245c8d);_0x16f834={'startColumn':_0x531516['first'],'endColumn':_0x531516['last'],'includeAllSlots':!0x0};}const _0x379f99=_0x567eff['createTableWalker'](_0x481ec0,_0x16f834),_0xe65644=Array['from'](_0x379f99)['map'](({cell:_0x2199ba})=>_0x2199ba),_0x3eca3d=be(_0xe65644['filter'](_0x273a77=>_0x273a77['hasAttribute'](_0xb1f8b7))),_0x2aa366=be(_0xe65644['filter'](_0x1c8fe8=>!_0x1c8fe8['hasAttribute'](_0xb1f8b7)))['map'](_0x5bcb22=>_0x25f78e['createRangeOn'](_0x5bcb22)),_0x24009e=_0x15a4bd['markMultiRangeDeletion'](_0x2aa366,_0x2a1a89);if(_0x24009e&&('tableRow'==_0x24009e['subType']||'tableColumn'==_0x24009e['subType'])){const _0x12e81a=this['_getSuggestionCoords'](_0x24009e);for(const _0x65021d of _0x3eca3d){const _0x168122=_0x25f78e['createRangeOn'](_0x65021d),_0x5d147d=_0x567eff['getCellLocation'](_0x65021d),_0x4949e2=_0x65021d['getAttribute'](_0xb1f8b7)-0x1,_0x535b88=_0x12e81a[_0x443a42],_0x542dc9=_0x12e81a[_0x4649a8];_0x535b88<=_0x5d147d[_0x5d0967]&&_0x5d147d[_0x5d0967]+_0x4949e2<=_0x542dc9&&_0x24009e['addRange'](_0x168122);}}});});}function _0x3fd054(_0x2aedf9){const _0xd0295c=Array['from'](_0xf31691['getRanges']())['map'](_0x45f8be=>_0x4523d0['fromRange'](_0x45f8be));_0x2f76c9['model']['change'](_0x5b7d5c=>{const _0x3597c3=_0x5b7d5c['batch'];_0x2aedf9=_0x2aedf9['filter'](_0x194511=>'$graveyard'!=_0x194511['root']['rootName']),_0x5b7d5c['setSelection'](_0x2aedf9),_0x2f76c9['commands']['get']('removeTableRow')['refresh'](),_0x2f76c9['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2f76c9['model']['enqueueChange'](()=>{_0x2f76c9['model']['enqueueChange'](_0x3597c3,_0x3260b6=>{const _0x499a4d=_0xd0295c['filter'](_0x221494=>'$graveyard'!=_0x221494['root']['rootName']);_0x499a4d['length']>0x0&&_0x3260b6['setSelection'](_0x499a4d);for(const _0x3964d5 of _0xd0295c)_0x3964d5['detach']();});});});}function _0x6c8537(_0x173fba){_0x2f76c9['model']['change'](_0x4a02cf=>{const _0x5aa607=Array['from'](_0xf31691['getRanges']())['map'](_0x12833f=>_0x4523d0['fromRange'](_0x12833f)),_0x2203c1=[];for(const _0x3b142a of _0x173fba)for(const _0x3c1f33 of _0x3b142a['getItems']({'shallow':!0x0}))_0x2203c1['push'](_0x3c1f33);for(const _0x15607d of _0x2203c1)'$graveyard'!=_0x15607d['root']['rootName']&&(_0x4a02cf['setSelection'](_0x4a02cf['createPositionAt'](_0x15607d,0x0)),_0x2f76c9['commands']['get']('removeTableColumn')['refresh'](),_0x2f76c9['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3515a0=_0x5aa607['filter'](_0x280197=>'$graveyard'!=_0x280197['root']['rootName']);_0x3515a0['length']>0x0&&_0x4a02cf['setSelection'](_0x3515a0);for(const _0x45429a of _0x5aa607)_0x45429a['detach']();});}function _0x125ba3(_0x395f1d,_0x10a294){return _0x10a294['every'](_0x4a0aac=>_0x395f1d['some'](_0x347ef8=>_0x347ef8['end']['isEqual'](_0x4a0aac['start'])||_0x4a0aac['end']['isEqual'](_0x347ef8['start'])));}function _0x999a54(_0x506476,_0x5d9450){return!_0x506476['some'](_0x2b02ec=>_0x5d9450['some'](_0x51ccc9=>_0x2b02ec['isIntersecting'](_0x51ccc9)))&&_0x506476['some'](_0x1c1824=>_0x5d9450['some'](_0x553a2b=>_0x1c1824['end']['isTouching'](_0x553a2b['start'])));}_0x2f76c9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x31fa20,_0x18b2cd,_0xc4d45e)=>{if(!_0xc4d45e['options']['showSuggestionHighlights'])return;const _0x194fed=_0x18b2cd['item'];if(!_0x194fed)return;const _0x11b6e4=_0xc4d45e['mapper']['toViewElement'](_0x194fed);function _0x450efd(_0x822c51){return Array['isArray'](_0x822c51)?_0x822c51:[_0x822c51];}_0x11b6e4&&'tableCell'===_0x194fed['name']&&_0x277b36(_0x11b6e4,_0xc4d45e['writer'],(_0x59400b,_0x25b63f,_0x266da5)=>_0x266da5['addClass'](_0x450efd(_0x25b63f['classes']),_0x59400b),(_0x42ae24,_0x2e03dc,_0x58a8eb)=>_0x58a8eb['removeClass'](_0x450efd(_0x2e03dc['classes']),_0x42ae24));},{'priority':'highest'}),_0x15a4bd['descriptionFactory']['registerDescriptionCallback'](_0x1db9b1=>{if('insertion'!=_0x1db9b1['type']&&'deletion'!=_0x1db9b1['type'])return;const _0x2dc5da=_0x1db9b1['getContainedElement']();if(null!=_0x2dc5da&&_0x2dc5da['is']('element','table')){if('insertion'==_0x1db9b1['type']){const _0x5e5953=_0x1db9b1['getItems']()['filter'](_0x276e1f=>_0x276e1f['is']('$textProxy'))['map'](_0x2788e7=>_0x2788e7['data']);if(_0x5e5953['length'])return{'type':'insertion','content':o(_0x3b43a0,'*Insert:*\x20%0',o(_0x3b43a0,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5e5953['join']('\x20')+'\x22'))};}if('deletion'==_0x1db9b1['type']){const _0xf497f0=_0x1db9b1['getItems']()['filter'](_0x101668=>_0x101668['is']('$textProxy'))['map'](_0x988573=>_0x988573['data']);if(_0xf497f0['length'])return{'type':'deletion','content':o(_0x3b43a0,'*Remove:*\x20%0',o(_0x3b43a0,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xf497f0['join']('\x20')+'\x22'))};}}}),_0x15a4bd['descriptionFactory']['registerDescriptionCallback'](_0xeb4729=>{if('tableRow'==_0xeb4729['subType']){const _0xf59f87=_0xeb4729['getItems']()['filter'](_0x4f104e=>_0x4f104e['is']('$textProxy'))['map'](_0x5ea37c=>_0x5ea37c['data']),_0x1c685e=this['_getSuggestionCoords'](_0xeb4729),_0x5c83c5=_0x1c685e['maxRow']-_0x1c685e['minRow']+0x1;if('insertion'==_0xeb4729['type'])return _0xf59f87['length']?{'type':'insertion','content':o(_0x3b43a0,'*Insert:*\x20%0',o(_0x3b43a0,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5c83c5,'\x22'+_0xf59f87['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3b43a0,'*Insert:*\x20%0',o(_0x3b43a0,'ELEMENT_TABLE_ROW',_0x5c83c5))};if('deletion'==_0xeb4729['type'])return _0xf59f87['length']?{'type':'deletion','content':o(_0x3b43a0,'*Remove:*\x20%0',o(_0x3b43a0,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5c83c5,'\x22'+_0xf59f87['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3b43a0,'*Remove:*\x20%0',o(_0x3b43a0,'ELEMENT_TABLE_ROW',_0x5c83c5))};}if('tableColumn'==_0xeb4729['subType']){const _0x4b98ec=_0xeb4729['getItems']()['filter'](_0x1ab52b=>_0x1ab52b['is']('$textProxy'))['map'](_0x1759e1=>_0x1759e1['data']),_0x5cf7a1=this['_getSuggestionCoords'](_0xeb4729),_0x4a8e51=_0x5cf7a1['maxColumn']-_0x5cf7a1['minColumn']+0x1;if('insertion'==_0xeb4729['type'])return _0x4b98ec['length']?{'type':'insertion','content':o(_0x3b43a0,'*Insert:*\x20%0',o(_0x3b43a0,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a8e51,'\x22'+_0x4b98ec['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3b43a0,'*Insert:*\x20%0',o(_0x3b43a0,'ELEMENT_TABLE_COLUMN',_0x4a8e51))};if('deletion'==_0xeb4729['type'])return _0x4b98ec['length']?{'type':'deletion','content':o(_0x3b43a0,'*Remove:*\x20%0',o(_0x3b43a0,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a8e51,'\x22'+_0x4b98ec['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3b43a0,'*Remove:*\x20%0',o(_0x3b43a0,'ELEMENT_TABLE_COLUMN',_0x4a8e51))};}}),_0x15a4bd['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3fd054),_0x15a4bd['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3fd054),_0x15a4bd['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x6c8537),_0x15a4bd['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x6c8537),_0x15a4bd['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x125ba3),_0x15a4bd['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x125ba3),_0x15a4bd['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x999a54),_0x15a4bd['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x999a54);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5f3468=this['editor'],_0x510982=_0x5f3468['model']['document']['selection'];return(_0x23c2f5,_0x2e8b6f)=>{_0x5f3468['model']['change'](_0x421678=>{const {commandName:_0x3f3a05,commandParams:_0x457636}=_0x2e8b6f;let _0x4c6ebf=_0x23c2f5[0x0]['end']['nodeBefore'];_0x457636&&_0x457636[0x0]&&!0x1===_0x457636[0x0]['forceValue']&&(_0x4c6ebf=_0x23c2f5[0x0]['start']['nodeAfter']);const _0x1b39d0=_0x421678['createRangeIn'](_0x4c6ebf);if('$graveyard'==_0x1b39d0['root']['rootName'])return;const _0x428e31=Array['from'](_0x510982['getRanges']())['map'](_0x5c352e=>_0x4523d0['fromRange'](_0x5c352e));_0x421678['setSelection'](_0x1b39d0),_0x5f3468['commands']['get'](_0x3f3a05)['refresh'](),_0x457636['push']({'forceDefaultExecution':!0x0}),_0x5f3468['execute'](_0x3f3a05,..._0x457636);const _0xba1e95=_0x428e31['filter'](_0x3539cb=>'$graveyard'!=_0x3539cb['root']['rootName']);_0xba1e95['length']>0x0&&_0x421678['setSelection'](_0xba1e95);for(const _0x4412f7 of _0x428e31)_0x4412f7['detach']();});};}['_getCoordsForCells'](_0x4df210){const _0x33e2d9=this['editor']['plugins']['get']('TableUtils');let _0x14913a=Number['MAX_SAFE_INTEGER'],_0x38c28e=Number['MIN_SAFE_INTEGER'],_0x2b7753=Number['MAX_SAFE_INTEGER'],_0x3842d3=Number['MIN_SAFE_INTEGER'];for(const _0x2fc43d of _0x4df210){if('$graveyard'==_0x2fc43d['root']['rootName'])continue;const {row:_0x3e682a,column:_0x5d1645}=_0x33e2d9['getCellLocation'](_0x2fc43d),_0x42162d=_0x2fc43d['hasAttribute']('rowspan')?_0x2fc43d['getAttribute']('rowspan')-0x1:0x0,_0x19765c=_0x2fc43d['hasAttribute']('colspan')?_0x2fc43d['getAttribute']('colspan')-0x1:0x0;_0x14913a=_0x3e682a<_0x14913a?_0x3e682a:_0x14913a,_0x38c28e=_0x3e682a+_0x42162d>_0x38c28e?_0x3e682a+_0x42162d:_0x38c28e,_0x2b7753=_0x5d1645<_0x2b7753?_0x5d1645:_0x2b7753,_0x3842d3=_0x5d1645+_0x19765c>_0x3842d3?_0x5d1645+_0x19765c:_0x3842d3;}return{'minRow':_0x14913a,'maxRow':_0x38c28e,'minColumn':_0x2b7753,'maxColumn':_0x3842d3};}['_setupColumnsRowsFixing'](){const _0x207797=this['editor'],_0x5eb8d5=_0x207797['plugins']['get']('TrackChangesEditing'),_0x5aaa68=_0x207797['plugins']['get']('TableUtils');_0x207797['model']['document']['on']('change:data',()=>{const _0x581751=Array['from'](_0x207797['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ece04,data:_0x1353bc}of _0x581751){const {group:_0x304fd0,id:_0x327f65,subType:_0xae671c}=_0x5eb8d5['_splitMarkerName'](_0x2ece04);if('suggestion'!=_0x304fd0)continue;if(null!=_0x1353bc['oldRange'])continue;const _0x4e750c=_0x5eb8d5['getSuggestion'](_0x327f65);this['_tablePostFixingSubtypes']['includes'](_0xae671c)&&this['_tableSuggestions']['add'](_0x4e750c);}},{'priority':'low'});const _0x18ebdf=(_0x2b7c61,_0x3b5ea9)=>{let _0x24d4b2=!0x1;const _0x16a5f7=_0x3b5ea9['createRangeOn'](_0x2b7c61),_0x1d8662=_0x2b7c61['findAncestor']('table'),_0x30a77b=_0x5aaa68['getCellLocation'](_0x2b7c61);for(const _0x51b9db of this['_tableSuggestions']){const _0x104bfb=_0x51b9db['subType'],_0x4b9e88=_0x104bfb['startsWith']('tablePaste'),_0x46b31c=_0x104bfb['substr'](_0x4b9e88?0xa:0x5),_0x5f1491=_0x46b31c['toLowerCase'](),_0x35aafe=_0x5f1491['substr'](0x0,0x3)+'span',_0x2c8720='min'+_0x46b31c,_0x3b02ac='max'+_0x46b31c;if(!_0x51b9db['isInContent'])continue;if(_0x1d8662!=_0x51b9db['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x51b9db['isIntersectingWithRange'](_0x16a5f7))continue;const _0x3b9554=_0x2b7c61['hasAttribute'](_0x35aafe)?_0x2b7c61['getAttribute'](_0x35aafe)-0x1:0x0,_0x56e9bf=this['_getSuggestionCoords'](_0x51b9db),_0x56a399=_0x56e9bf[_0x2c8720],_0x10f445=_0x56e9bf[_0x3b02ac];_0x56a399<=_0x30a77b[_0x5f1491]&&_0x30a77b[_0x5f1491]+_0x3b9554<=_0x10f445&&(_0x51b9db['addRange'](_0x16a5f7),_0x24d4b2=!0x0);}return _0x24d4b2;};_0x207797['model']['document']['registerPostFixer'](_0x1763ec=>{let _0x282ead=!0x1;for(const _0x117225 of _0x207797['model']['document']['differ']['getChanges']())if('insert'==_0x117225['type']){if('tableRow'==_0x117225['name']){for(const _0x1cafad of _0x117225['position']['nodeAfter']['getChildren']())_0x282ead=_0x282ead||_0x18ebdf(_0x1cafad,_0x1763ec);}else'tableCell'==_0x117225['name']&&(_0x282ead=_0x282ead||_0x18ebdf(_0x117225['position']['nodeAfter'],_0x1763ec));}return _0x282ead;});}['_getSuggestionCoords'](_0x2cfcfe){return this['_getCoordsForCells'](_0x2cfcfe['getRanges']()['map'](_0x9ac9c1=>_0x9ac9c1['start']['nodeAfter']));}}function be(_0x3f7faf){return Array['from'](new Set(_0x3f7faf)['values']());}class vt extends _0x8c8d34{static get['requires'](){return[It];}['afterInit'](){const _0x396ec4=this['editor'],_0x316399=_0x396ec4['model']['document']['selection'],_0x45c6b=_0x396ec4['locale'];if(!_0x396ec4['plugins']['has']('TableEditing'))return;const _0x219c3e=_0x396ec4['plugins']['get']('TrackChangesEditing'),_0x57d7fb=_0x396ec4['plugins']['get']('TableUtils'),_0x56cc07=_0x396ec4['plugins']['get'](It);_0x56cc07['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x219c3e['enableCommand']('mergeTableCells',()=>{const _0x4ec3dc=_0x57d7fb['getSelectionAffectedTableCells'](_0x396ec4['model']['document']['selection']);_0x396ec4['model']['change'](()=>{_0x219c3e['markMultiRangeBlockFormat'](_0x4ec3dc,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x396ec4['commands']['get']('mergeTableCells')['on']('execute',(_0x1dced0,_0x2239f6)=>{_0x396ec4['commands']['get']('trackChanges')['value']&&(_0x2239f6['length']>0x0&&_0x2239f6[_0x2239f6['length']-0x1]&&_0x2239f6[_0x2239f6['length']-0x1]['forceDefaultExecution']||_0x219c3e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1dced0['stop']());},{'priority':'highest'});for(const _0x1f76f0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xbe6a92=_0x396ec4['commands']['get'](_0x1f76f0);_0x219c3e['enableCommand'](_0x1f76f0,()=>{const _0x55ff28=_0x396ec4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xf59432=>_0xf59432['is']('element','tableCell')),_0x3526e4=_0xbe6a92['value'];_0x396ec4['model']['change'](()=>{_0x219c3e['markMultiRangeBlockFormat']([_0x55ff28,_0x3526e4],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x364333 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2d19b4=_0x396ec4['commands']['get'](_0x364333);_0x219c3e['enableCommand'](_0x364333,()=>{const _0x27830b=_0x57d7fb['getSelectionAffectedTableCells'](_0x396ec4['model']['document']['selection'])[0x0],_0x57c00e=_0x27830b['findAncestor']('table'),{column:_0x379fb9,row:_0x204929}=_0x57d7fb['getCellLocation'](_0x27830b);let _0x541069=[];if('horizontally'==_0x2d19b4['direction']){const _0x489962=_0x57d7fb['createTableWalker'](_0x57c00e,{'startRow':_0x204929,'endRow':_0x204929,'includeAllSlots':!0x0});_0x541069=Array['from'](_0x489962)['map'](_0x2ade9d=>_0x2ade9d['cell']);}else{const _0x26f0cc=_0x57d7fb['createTableWalker'](_0x57c00e,{'column':_0x379fb9,'includeAllSlots':!0x0});_0x541069=Array['from'](_0x26f0cc)['map'](_0x284787=>_0x284787['cell']);}_0x396ec4['model']['change'](_0x1ea4be=>{_0x219c3e['markBlockFormat'](_0x1ea4be['createRangeOn'](_0x27830b),{'commandName':_0x364333,'commandParams':[]},_0x541069,_0x364333);});});}_0x219c3e['descriptionFactory']['registerDescriptionCallback'](_0x100031=>{if('formatBlock'!=_0x100031['type']&&'formatInline'!=_0x100031['type'])return;const {data:_0x23fa87}=_0x100031;return _0x23fa87&&'mergeTableCells'==_0x23fa87['commandName']?{'type':'format','content':o(_0x45c6b,'*Merge\x20cells*')}:void 0x0;}),_0x219c3e['descriptionFactory']['registerDescriptionCallback'](_0x57db00=>{if('formatBlock'!=_0x57db00['type']&&'formatInline'!=_0x57db00['type'])return;const {data:_0xc6a7f3}=_0x57db00;return _0xc6a7f3?'splitTableCellVertically'==_0xc6a7f3['commandName']?{'type':'format','content':o(_0x45c6b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xc6a7f3['commandName']?{'type':'format','content':o(_0x45c6b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2a05e2=_0x56cc07['_acceptFormatSuggestionCallbackFactory']();for(const _0x16befe of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x219c3e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x16befe,'accept',_0x2a05e2);for(const _0x5d8cc3 of['splitTableCellVertically','splitTableCellHorizontally'])_0x219c3e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5d8cc3,'accept',_0x2a05e2);_0x219c3e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x350141=>{_0x396ec4['model']['change'](_0x3015dd=>{const _0x38fb0d=Array['from'](_0x316399['getRanges']())['map'](_0x4473d6=>_0x4523d0['fromRange'](_0x4473d6));_0x3015dd['setSelection'](_0x350141),_0x396ec4['commands']['get']('mergeTableCells')['refresh'](),_0x396ec4['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1fad23=_0x38fb0d['filter'](_0x1b572f=>'$graveyard'!=_0x1b572f['root']['rootName']);_0x1fad23['length']>0x0&&_0x3015dd['setSelection'](_0x1fad23);for(const _0x3a3cfe of _0x38fb0d)_0x3a3cfe['detach']();});});for(const _0x3385c2 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x44a51b=_0x396ec4['commands']['get'](_0x3385c2);_0x44a51b['on']('set:isEnabled',(_0x4f4a2f,_0x9633e6,_0x559e74)=>{if(_0x559e74){const _0x3632fa=_0x396ec4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4a0d99=>_0x4a0d99['is']('element','tableCell'));this['_areMergableCells'](_0x44a51b['value'],_0x3632fa)||(_0x4f4a2f['return']=!0x1,_0x4f4a2f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xa3b4bd=this['editor']['commands']['get']('mergeTableCells'),_0x87893b=this['editor']['plugins']['get']('TableUtils');if(!_0xa3b4bd['isEnabled'])return!0x1;const _0x34dbb3=_0x87893b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2b6b8e of _0x34dbb3)for(const _0xa55c5b of _0x34dbb3)if(_0x2b6b8e!=_0xa55c5b&&!this['_areMergableCells'](_0x2b6b8e,_0xa55c5b))return!0x1;return!0x0;}['_areMergableCells'](_0x5a11bd,_0x54acdb){const _0x344432=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ca59d=this['editor']['model']['createRangeOn'](_0x5a11bd),_0x2c9e2b=this['editor']['model']['createRangeOn'](_0x54acdb),_0x2466de=new Set(),_0x4977b2=new Set();for(const _0x2f5c7d of _0x344432['getSuggestions']())if(('insertion'==_0x2f5c7d['type']||'deletion'==_0x2f5c7d['type']||'mergeTableCells'==_0x2f5c7d['subType'])&&_0x2f5c7d['isInContent']){for(const _0x28771c of _0x2f5c7d['getRanges']())_0x28771c['containsRange'](_0x3ca59d,!0x0)&&_0x2466de['add'](_0x2f5c7d['type']+':'+_0x2f5c7d['author']['id']),_0x28771c['containsRange'](_0x2c9e2b,!0x0)&&_0x4977b2['add'](_0x2f5c7d['type']+':'+_0x2f5c7d['author']['id']);}if(_0x2466de['size']!=_0x4977b2['size'])return!0x1;for(const _0x377f80 of _0x2466de)if(!_0x4977b2['has'](_0x377f80))return!0x1;return!0x0;}}class Ct extends _0x8c8d34{static get['requires'](){return[It];}['afterInit'](){const _0x5d35db=this['editor'];if(!_0x5d35db['plugins']['has']('TableEditing'))return;const _0x53f3ea=_0x5d35db['locale'],_0x183ff1=_0x5d35db['plugins']['get']('TrackChangesEditing');_0x183ff1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x183ff1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x183ff1['registerBlockAttribute']('headingRows'),_0x183ff1['registerBlockAttribute']('headingColumns'),_0x183ff1['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x53f3ea,'FORMAT_HEADER_ROW')),_0x183ff1['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x53f3ea,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2f4bc5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e8bee=this['editor']['plugins']['get']('TableUtils'),_0x3ca2f6=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x533c3e({showActiveMarker:_0x5d9bf3=!0x0,setDataAttribute:_0x29f1ed=!0x0}={}){return(_0x2dfe1b,_0x256607,_0xa1121a)=>{const {type:_0x371b7f,id:_0x47f80a}=_0x2f4bc5['_splitMarkerName'](_0x256607['markerName']),_0x45a38d=_0x2f4bc5['getSuggestion'](_0x47f80a),_0x458543=_0x45a38d['data'];if('formatBlock'!=_0x45a38d['type']||!_0x458543||'setTableColumnHeader'!=_0x458543['commandName'])return;if(_0x256607['item'])return void _0x2dfe1b['stop']();if(!_0xa1121a['consumable']['consume'](_0x256607['markerRange'],_0x2dfe1b['name']))return;const _0x464b72=_0x256607['markerRange']['start']['nodeAfter'],_0x2b6bbb=_0x256607['markerRange']['end']['nodeBefore'],_0x16b748=_0x464b72['parent']['parent'],{column:_0x18f3e5}=_0x3e8bee['getCellLocation'](_0x464b72),{column:_0x321ec6}=_0x3e8bee['getCellLocation'](_0x2b6bbb);for(let _0x2bec84=_0x18f3e5;_0x2bec84<=_0x321ec6;_0x2bec84++){const _0x588b0c=_0x3e8bee['createTableWalker'](_0x16b748,{'column':_0x2bec84,'includeAllSlots':!0x1});for(const _0x4d4fb1 of _0x588b0c){const _0x46950b=_0x4d4fb1['cell'],_0x514d95=_0xa1121a['mapper']['toViewElement'](_0x46950b);_0xa1121a['writer']['addClass']('ck-suggestion-marker-'+_0x371b7f,_0x514d95),_0x29f1ed&&_0xa1121a['writer']['setAttribute']('data-suggestion',_0x47f80a,_0x514d95),_0xa1121a['mapper']['bindElementToMarker'](_0x514d95,_0x256607['markerName']),_0x5d9bf3&&(_0x2f4bc5['activeMarkers']['includes'](_0x256607['markerName'])?_0xa1121a['writer']['addClass']('ck-suggestion-marker--active',_0x514d95):_0xa1121a['writer']['removeClass']('ck-suggestion-marker--active',_0x514d95));}}};}_0x2f4bc5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3ca2f6),_0x2f4bc5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3ca2f6),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x533c3e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x922cf7,_0x446418,_0x3e8dfd)=>{_0x3e8dfd['options']['showSuggestionHighlights']&&_0x533c3e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x922cf7,_0x446418,_0x3e8dfd);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x347fa9,_0x3861be,_0x1285ff)=>{const {type:_0x1150e7,id:_0xe5d048}=_0x2f4bc5['_splitMarkerName'](_0x3861be['markerName']),_0xd57c03=_0x2f4bc5['getSuggestion'](_0xe5d048),_0xcc8053=_0xd57c03['data'];if('formatBlock'!=_0xd57c03['type']||!_0xcc8053||'setTableColumnHeader'!=_0xcc8053['commandName'])return;const _0x4e7ec0=_0x1285ff['mapper']['markerNameToElements'](_0x3861be['markerName']);if(_0x4e7ec0){for(const _0x52c405 of _0x4e7ec0)_0x1285ff['writer']['removeClass']('ck-suggestion-marker-'+_0x1150e7,_0x52c405),_0x1285ff['writer']['removeClass']('ck-suggestion-marker--active',_0x52c405),_0x1285ff['writer']['removeAttribute']('data-suggestion',_0x52c405),_0x1285ff['mapper']['unbindElementFromMarkerName'](_0x52c405,_0x3861be['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x96eb5a=this['editor'],_0x504ce9=_0x96eb5a['locale'];function _0xebad9f(_0x55e57e){return{'type':'format','content':o(_0x504ce9,'*Format:*\x20%0',_0x55e57e)};}_0x96eb5a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57afa4=>{if('formatBlock'!=_0x57afa4['type'])return;const {data:_0x5b71c3}=_0x57afa4;if(_0x5b71c3){if('setTableRowHeader'==_0x5b71c3['commandName']){const _0x3f1366=_0x5b71c3['commandParams'][0x0]['forceValue'];return _0xebad9f(o(_0x504ce9,_0x3f1366?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5b71c3['commandName']){const _0x39c6ca=_0x5b71c3['commandParams'][0x0]['forceValue'];return _0xebad9f(o(_0x504ce9,_0x39c6ca?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x4c8e4e=>[_0x4c8e4e,null]));class _t extends _0x8c8d34{static get['requires'](){return[It];}['afterInit'](){const _0x27d5d8=this['editor'];if(!_0x27d5d8['plugins']['has']('TableClipboard'))return;const _0x4edec7=_0x27d5d8['plugins']['get']('TrackChangesEditing'),_0x253ae8=_0x27d5d8['plugins']['get']('TableUtils'),_0x164308=_0x27d5d8['plugins']['get'](It),_0x8f7764=_0x27d5d8['plugins']['get']('TableClipboard');_0x164308['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x27d5d8['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x27d5d8['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x20e4ad=null;_0x27d5d8['model']['on']('insertContent',(_0x2b09ba,_0xca13cd)=>{const [_0x5d495e,_0x2abc65]=_0xca13cd,_0x31f30e=_0xca13cd[_0xca13cd['length']-0x1];_0x31f30e&&_0x31f30e['forceDefaultExecution']||_0x4edec7['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4c2585,_0x457941,_0x203203,_0x47302e,_0x5f07c1){if(_0x457941&&!_0x457941['is']('documentSelection'))return!0x1;const _0x441df6=_0x5f07c1['getTableIfOnlyTableInContent'](_0x4c2585,_0x203203);if(!_0x441df6||!Re(_0x441df6,void 0x0,_0x47302e))return!0x1;const _0x1b754a=_0x47302e['getSelectionAffectedTableCells'](_0x203203['document']['selection']);if(!_0x1b754a['length'])return!0x1;const _0xd6b09b=_0x1b754a[0x0]['findAncestor']('table'),_0x4da1a6=_0x47302e['getRowIndexes'](_0x1b754a),_0x5dee51=_0x47302e['getColumnIndexes'](_0x1b754a),_0x2fd1ca={'startRow':_0x4da1a6['first'],'endRow':_0x4da1a6['last'],'startColumn':_0x5dee51['first'],'endColumn':_0x5dee51['last']};return 0x1==_0x1b754a['length']&&(_0x2fd1ca['endRow']+=_0x47302e['getRows'](_0x441df6)-0x1,_0x2fd1ca['endColumn']+=_0x47302e['getColumns'](_0x441df6)-0x1),Re(_0xd6b09b,_0x2fd1ca,_0x47302e);}(_0x5d495e,_0x2abc65,_0x27d5d8['model'],_0x253ae8,_0x8f7764)&&(_0x2b09ba['stop'](),_0x20e4ad={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x27d5d8['model']['change'](()=>{_0x27d5d8['model']['insertContent'](_0xca13cd[0x0],_0xca13cd[0x1],_0xca13cd[0x2],{'forceDefaultExecution':!0x0});const _0x2297ed=_0x3143a6(),{rowInsertionRanges:_0x2da4ed,columnInsertionRanges:_0x591938,insertionRanges:_0x36fadf,deletionRanges:_0x411d80,cells:_0x3a4a9d}=_0x20e4ad;_0x2da4ed['length']&&_0x4edec7['markMultiRangeInsertion'](_0x2da4ed,'tablePasteRow',{'tablePasteChainId':_0x2297ed}),_0x591938['length']&&_0x4edec7['markMultiRangeInsertion'](_0x591938,'tablePasteColumn',{'tablePasteChainId':_0x2297ed}),_0x36fadf['length']&&(_0x4edec7['markMultiRangeInsertion'](_0x36fadf,'tablePaste',{'tablePasteChainId':_0x2297ed,'skipNestingCheck':!0x0}),_0x36fadf['forEach'](_0x175c04=>_0x175c04['detach']?.())),_0x411d80['length']&&(_0x4edec7['markMultiRangeDeletion'](_0x411d80,'tablePaste',{'tablePasteChainId':_0x2297ed,'skipNestingCheck':!0x0}),_0x411d80['forEach'](_0x59b502=>_0x59b502['detach']?.()));const _0x49494a=_0x4edec7['markMultiRangeBlockFormat'](_0x3a4a9d['map'](({element:_0x5ec5d4})=>_0x5ec5d4),{'formatGroupId':_0x3143a6()},[],'tablePasteCell',{'tablePasteChainId':_0x2297ed});if(_0x49494a){const _0x1697a4=_0x49494a['getMarkers'](),_0x360755=[];for(const {element:_0x10f9b8,attributes:_0x655e93}of _0x3a4a9d){if(!_0x655e93)continue;const _0x19a9c7=_0x27d5d8['model']['createRangeOn'](_0x10f9b8),_0x309d4a=_0x1697a4['find'](_0x44632c=>_0x44632c['getRange']()['isEqual'](_0x19a9c7));_0x309d4a&&_0x360755['push']([_0x309d4a['name'],_0x655e93]);}_0x360755['length']&&_0x49494a['setAttribute']('markerAttributes',Object['fromEntries'](_0x360755));}_0x20e4ad=null;}));},{'priority':_0x1451a3['high']+0xa}),_0x27d5d8['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x391934,_0x48b006)=>{const [_0x5eadd8,_0x130083,,_0x404a9f]=_0x48b006;if(!_0x20e4ad)return;_0x391934['stop']();const _0x141338=_0x5eadd8['cell'],_0x5cc398=_0x130083,_0x22c186=ke(_0x141338),_0x3d60e6=ke(_0x5cc398);_0x391934['return']=_0x141338;let _0x480e2e=null,_0x5a0b76=null;if(_0x3d60e6||_0x22c186){if(_0x22c186&&!_0x3d60e6){_0x404a9f['remove'](_0x141338['getChild'](0x0));for(const _0x333d7a of Array['from'](_0x5cc398['getChildren']()))_0x404a9f['insert'](_0x333d7a,_0x141338,'end');const _0x14af9c=_0x20e4ad['rowInsertionIndexes']['includes'](_0x5eadd8['row']),_0x32c0e5=_0x20e4ad['columnInsertionIndexes']['includes'](_0x5eadd8['column']);_0x14af9c||_0x32c0e5||(_0x480e2e=_0x4523d0['fromRange'](_0x404a9f['createRangeIn'](_0x141338)));}else _0x3d60e6&&!_0x22c186&&(_0x5a0b76=_0x404a9f['createRangeIn'](_0x141338));}else{const _0x12a4a2=_0x404a9f['createElement']('tableCellSuggestion'),_0x3eae12=_0x404a9f['createElement']('tableCellSuggestion');_0x404a9f['wrap'](_0x404a9f['createRangeIn'](_0x141338),_0x3eae12),_0x404a9f['insert'](_0x12a4a2,_0x141338,0x0);for(const _0xb122fc of Array['from'](_0x5cc398['getChildren']()))_0x404a9f['insert'](_0xb122fc,_0x12a4a2,'end');_0x480e2e=_0x4523d0['fromRange'](_0x404a9f['createRangeOn'](_0x12a4a2)),_0x5a0b76=_0x4523d0['fromRange'](_0x404a9f['createRangeOn'](_0x3eae12));}const _0x38c2bd=Array['from'](_0x5cc398['getAttributes']())['filter'](([_0x558008])=>Pe['includes'](_0x558008));_0x20e4ad['cells']['push']({'element':_0x141338,'attributes':_0x38c2bd['length']?Object['fromEntries'](_0x38c2bd):null}),_0x480e2e&&_0x20e4ad['insertionRanges']['push'](_0x480e2e),_0x5a0b76&&_0x20e4ad['deletionRanges']['push'](_0x5a0b76);},{'priority':'high'}),_0x253ae8['on']('insertColumns',(_0x3d8853,_0x175c96)=>{const [_0x3a8c10,_0x3ad77a={}]=_0x175c96;if(!_0x20e4ad)return;const _0x5b7743=_0x3ad77a['at']||0x0,_0x589453=_0x3ad77a['columns']||0x1;_0x20e4ad['columnInsertionIndexes']=new Array(_0x589453)['fill'](_0x5b7743)['map']((_0x42bfd3,_0x52f4b7)=>_0x42bfd3+_0x52f4b7);for(const {cell:_0x11b3c5}of _0x253ae8['createTableWalker'](_0x3a8c10,{'startColumn':_0x5b7743,'endColumn':_0x5b7743+_0x589453-0x1}))_0x20e4ad['columnInsertionRanges']['push'](_0x27d5d8['model']['createRangeOn'](_0x11b3c5));},{'priority':'low'}),_0x253ae8['on']('insertRows',(_0x582fa5,_0x5578d9)=>{const [_0x874dc6,_0x5aa478={}]=_0x5578d9;if(!_0x20e4ad)return;const _0x36c989=_0x5aa478['at']||0x0,_0x2122c3=_0x5aa478['rows']||0x1;_0x20e4ad['rowInsertionIndexes']=new Array(_0x2122c3)['fill'](_0x36c989)['map']((_0x5197ed,_0x3991f3)=>_0x5197ed+_0x3991f3);for(const {cell:_0x2abcd9}of _0x253ae8['createTableWalker'](_0x874dc6,{'startRow':_0x36c989,'endRow':_0x36c989+_0x2122c3-0x1}))_0x20e4ad['rowInsertionRanges']['push'](_0x27d5d8['model']['createRangeOn'](_0x2abcd9));},{'priority':'low'}),_0x4edec7['descriptionFactory']['registerDescriptionCallback'](_0x5e06c7=>{if(_0x5e06c7['subType']&&_0x5e06c7['subType']['startsWith']('tablePaste'))return _0x5e06c7['previous']?{}:{'type':'insertion','content':o(_0x27d5d8['locale'],'*Replace\x20table\x20cells*')};});const _0x59b8f2=()=>!0x1;for(const _0x2332ec of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4edec7['_suggestionFactory']['registerCustomCallback']('insertion',_0x2332ec,'join',_0x59b8f2),_0x4edec7['_suggestionFactory']['registerCustomCallback']('deletion',_0x2332ec,'join',_0x59b8f2),_0x4edec7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2332ec,'join',_0x59b8f2);_0x4edec7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x59b8f2),_0x4edec7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4d9793,_0x2ed10a,_0x3eaafe)=>{const _0x627301=_0x4d9793['map'](_0x383c67=>_0x383c67['getContainedElement']())['filter'](_0x11146e=>_0x11146e),_0x4b0dcc=new Map(_0x627301['map'](_0x149d18=>[_0x149d18,null]));if(_0x20e4ad){for(const {element:_0x5d6f3d,attributes:_0x2ccca0}of _0x20e4ad['cells'])_0x2ccca0&&_0x4b0dcc['set'](_0x5d6f3d,_0x2ccca0);}else{if(_0x3eaafe&&_0x3eaafe['markerAttributes'])for(const [_0xa1bdc1,_0x2969ce]of Object['entries'](_0x3eaafe['markerAttributes'])){const _0x20d107=_0x27d5d8['model']['markers']['get'](_0xa1bdc1),_0x378d08=_0x20d107?_0x20d107['getRange']()['getContainedElement']():null;_0x378d08&&_0x4b0dcc['set'](_0x378d08,_0x2969ce);}}_0x27d5d8['model']['change'](_0x2a11e4=>{for(const [_0xafa008,_0x773c26]of _0x4b0dcc)_0x2a11e4['setAttributes']({...we,..._0x773c26},_0xafa008);});});const _0x26755f=(_0x228b98,_0x6581e8)=>{_0x4edec7['_suggestionFactory']['registerCustomCallback'](_0x228b98,'tablePaste',_0x6581e8,(_0x38d2e2,_0x5c4243,_0xfb7d1b)=>{_0x27d5d8['model']['change'](_0x501afd=>{const _0xf49cca=[];for(const _0x116254 of _0x38d2e2){const _0x343f21=_0x116254['start']['nodeAfter'];_0x343f21['is']('element','tableCellSuggestion')&&_0xf49cca['push'](_0x343f21);}_0x4edec7['_suggestionFactory']['getSuggestionCallback'](_0x228b98,null,_0x6581e8)(_0x38d2e2,_0x5c4243,_0xfb7d1b);for(const _0x36d52c of _0xf49cca)'$graveyard'!=_0x36d52c['root']['rootName']&&_0x501afd['unwrap'](_0x36d52c);});});};_0x26755f('insertion','accept'),_0x26755f('insertion','discard'),_0x26755f('deletion','accept'),_0x26755f('deletion','discard'),_0x4edec7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x595ec6=>{const _0x103364=_0x595ec6['map'](_0x492acf=>_0x492acf['getContainedElement']()),_0x6cb8f3=_0x103364[0x0]['findAncestor']('table'),{minRow:_0x32afd6,maxRow:_0x3d74e0}=_0x164308['_getCoordsForCells'](_0x103364);_0x253ae8['removeRows'](_0x6cb8f3,{'at':_0x32afd6,'rows':_0x3d74e0-_0x32afd6+0x1});}),_0x4edec7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x123f28=>{const _0x97d88b=_0x123f28['map'](_0x3f1837=>_0x3f1837['getContainedElement']()),_0x563e32=_0x97d88b[0x0]['findAncestor']('table'),{minColumn:_0x448a3d,maxColumn:_0x3ad332}=_0x164308['_getCoordsForCells'](_0x97d88b);_0x253ae8['removeColumns'](_0x563e32,{'at':_0x448a3d,'columns':_0x3ad332-_0x448a3d+0x1});});const _0x6040fb=(_0xc09a6a,_0x38c1bc)=>{if(!_0x38c1bc['subType']||!_0x38c1bc['subType']['startsWith']('tablePaste'))return;const _0x39ea23=_0x38c1bc['attributes']['tablePasteChainId'],_0x2e3672=_0x4edec7['getSuggestions']()['filter'](_0x4683f2=>_0x4683f2['isInContent']&&_0x4683f2['attributes']&&_0x4683f2['attributes']['tablePasteChainId']==_0x39ea23);_0x2e3672['length']&&_0x38c1bc['getAllAdjacentSuggestions']()['length']!=_0x2e3672['length']&&_0x2e3672['reduce']((_0x1b3728,_0x3aa016)=>(_0x1b3728['next']=_0x3aa016,_0x3aa016['previous']=_0x1b3728,_0x3aa016));};function _0x25433a(_0x59fdee,_0x4ed9ee=!0x0){const {id:_0x376269,authorId:_0x26643f}=_0x4edec7['_splitMarkerName'](_0x59fdee['markerName']),_0x104365=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5df59d=_0x4edec7['activeMarkers']['includes'](_0x59fdee['markerName']);return _0x5df59d&&_0x104365['push']('ck-suggestion-marker--active'),{'classes':_0x104365,'attributes':{'data-suggestion':_0x376269,'data-author-id':_0x26643f},'priority':_0x5df59d&&_0x4ed9ee?0xbc2:0xbb8};}_0x4edec7['on']('suggestionLoaded',_0x6040fb,{'priority':'high'}),_0x4edec7['on']('suggestionUnloaded',_0x6040fb,{'priority':'high'}),_0x27d5d8['model']['document']['registerPostFixer'](()=>{let _0xa48b97=!0x1;const _0x482141=Array['from'](_0x27d5d8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x586998,data:_0x3162dd}of _0x482141){const {group:_0x4ec7ef,type:_0x99f9cc,id:_0x299de5}=_0x4edec7['_splitMarkerName'](_0x586998);if('suggestion'!=_0x4ec7ef||'deletion'!=_0x99f9cc||_0x3162dd['oldRange'])continue;if(!_0x4edec7['hasSuggestion'](_0x299de5))continue;const _0x3d7f50=_0x4edec7['getSuggestion'](_0x299de5)['getRanges'](),_0x358aa2=_0x27d5d8['plugins']['get']('Users')['me'];for(const _0x5255dc of _0x4edec7['getSuggestions']()){if(!_0x5255dc['isInContent']||_0x5255dc['author']!=_0x358aa2)continue;if('formatBlock'!=_0x5255dc['type']||'tablePasteCell'!=_0x5255dc['subType'])continue;if(_0x5255dc['getRanges']()['every'](_0x5d4b1f=>_0x3d7f50['some'](_0x3f4853=>_0x3f4853['containsRange'](_0x5d4b1f,!0x0)))){for(const _0x1c5b5a of _0x5255dc['getAllAdjacentSuggestions']())_0x1c5b5a['isInContent']&&(_0x1c5b5a['discard'](),_0xa48b97=!0x0);}}}return _0xa48b97;}),_0x27d5d8['model']['document']['registerPostFixer'](_0x7851a4=>{const _0x37ea55=_0x27d5d8['commands']['get']('redo');if(!_0x37ea55||!_0x37ea55['_createdBatches']['has'](_0x7851a4['batch']))return!0x1;let _0x239920=!0x1;const _0x260d62=_0x27d5d8['plugins']['get']('Users')['me'],_0x135e7e=_0x27d5d8['model']['document']['differ']['getChanges'](),_0x36d8a9=Array['from'](_0x27d5d8['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4db4a7,data:_0x1efc64})=>{const {group:_0x1ceb97,subType:_0x3355dc,authorId:_0x2deb54}=_0x4edec7['_splitMarkerName'](_0x4db4a7);return'suggestion'==_0x1ceb97&&'tablePaste'==_0x3355dc&&_0x2deb54==_0x260d62['id']&&!_0x1efc64['oldRange'];});for(const _0x3bc407 of _0x135e7e){if('insert'!=_0x3bc407['type']||'tableCellSuggestion'!=_0x3bc407['name']||0x1!=_0x3bc407['length'])continue;const _0x4210e1=_0x7851a4['createRange'](_0x3bc407['position'],_0x3bc407['position']['getShiftedBy'](0x1));if(!_0x36d8a9['find'](({data:_0x50a458})=>_0x50a458['newRange']['isEqual'](_0x4210e1))){for(const {name:_0x4f1588,data:_0x2aa0f7}of _0x36d8a9)if(_0x4210e1['containsRange'](_0x2aa0f7['newRange'])){_0x7851a4['updateMarker'](_0x4f1588,{'range':_0x4210e1}),_0x239920=!0x0;break;}}}return _0x239920;}),_0x27d5d8['model']['document']['registerPostFixer'](_0x354da6=>{let _0x55d5b7=!0x1;const _0x2ea1c5=_0x27d5d8['plugins']['get']('Users')['me'],_0x32bc8b=_0x4edec7['getSuggestions']()['filter'](_0xf145d4=>_0xf145d4['isInContent']&&_0xf145d4['author']==_0x2ea1c5),_0x327c1c=new Set(),_0x4409b2=new Set();for(const _0x17be17 of _0x32bc8b)if('tablePaste'==_0x17be17['subType'])for(const _0x4d55e1 of _0x17be17['getMarkers']()){const _0xfa6136=_0x4d55e1['getRange']()['getContainedElement']();if(_0xfa6136){if(_0xfa6136['is']('element','tableCellSuggestion')&&ke(_0xfa6136)){_0x17be17['removeMarker'](_0x4d55e1['name']),_0x327c1c['add'](_0xfa6136),_0x55d5b7=!0x0;const _0x593089=_0xfa6136['nextSibling'],_0x42d30e=_0xfa6136['previousSibling'],_0x456eb3=_0x593089&&_0x593089['is']('element','tableCellSuggestion'),_0x2db3ec=_0x42d30e&&_0x42d30e['is']('element','tableCellSuggestion');_0x456eb3&&!_0x327c1c['has'](_0x593089)&&_0x4409b2['add'](_0x593089),_0x2db3ec&&!_0x327c1c['has'](_0x42d30e)&&_0x4409b2['add'](_0x42d30e);}else _0xfa6136['is']('element','paragraph')&&_0xfa6136['isEmpty']&&(_0x17be17['removeMarker'](_0x4d55e1['name']),_0x55d5b7=!0x0);}}else{if('tablePasteCell'==_0x17be17['subType']){if(!_0x17be17['attributes']||!_0x17be17['attributes']['tablePasteChainId'])continue;const _0x226cdd=_0x17be17['attributes']['markerAttributes'];if(_0x226cdd&&Object['keys'](_0x226cdd)['length'])continue;const _0x120518=_0x17be17['attributes']['tablePasteChainId'];let _0x295428=!0x0,_0xf8b45b=!0x0;for(const _0x5cb929 of _0x32bc8b)if(_0x5cb929['subType']&&_0x5cb929['subType']['startsWith']('tablePaste')){if(!_0x5cb929['attributes']['tablePasteChainId']){_0xf8b45b=!0x1;break;}if(_0x5cb929['id']!=_0x17be17['id']&&_0x5cb929['attributes']['tablePasteChainId']==_0x120518){_0x295428=!0x1;break;}}_0xf8b45b&&_0x295428&&(_0x17be17['removeMarkers'](),_0x55d5b7=!0x0);}}for(const _0x5eb818 of _0x327c1c)_0x354da6['remove'](_0x5eb818);for(const _0x58fc7b of _0x4409b2)_0x354da6['unwrap'](_0x58fc7b);return _0x55d5b7;}),_0x27d5d8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x53c7ec=>_0x25433a(_0x53c7ec),'converterPriority':'high'}),_0x27d5d8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x32e445,_0x220dc1)=>_0x220dc1['options']['showSuggestionHighlights']?_0x25433a(_0x32e445,!0x1):null,'converterPriority':'high'});const _0x21dec8=_0x27d5d8['editing']['view'];this['listenTo'](_0x21dec8['document'],'clipboardOutput',(_0x414ee8,_0x595a2a)=>{const _0x582a5a=[];for(const _0x28574a of _0x21dec8['createRangeIn'](_0x595a2a['content'])['getItems']())_0x28574a['is']('element','suggestion-td')&&_0x582a5a['push'](_0x28574a);_0x21dec8['change'](_0x250930=>{for(const _0x3de676 of _0x582a5a)_0x250930['move'](_0x250930['createRangeIn'](_0x3de676),_0x250930['createPositionBefore'](_0x3de676)),_0x250930['remove'](_0x3de676);});});}}function ke(_0x39e056){if(_0x39e056['isEmpty'])return!0x0;const _0x11e3e4=_0x39e056['getChild'](0x0);return _0x11e3e4['is']('element','paragraph')&&_0x11e3e4['isEmpty'];}function Re(_0x39945d,_0x4527da={},_0x36e38b){for(const {isAnchor:_0x481ddb,cellHeight:_0x1eba0b,cellWidth:_0x5b0cb0}of _0x36e38b['createTableWalker'](_0x39945d,{'includeAllSlots':!0x0,..._0x4527da}))if(!_0x481ddb||0x1!=_0x1eba0b||0x1!=_0x5b0cb0)return!0x1;return!0x0;}class Nt extends _0x8c8d34{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x28f4ec=this['editor']['plugins']['get']('TrackChangesEditing');_0x28f4ec['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x28f4ec['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x28f4ec['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28f4ec['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x28f4ec['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x28f4ec['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5c0eba,_0x3100cd){const _0x24bf07=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d8cd3=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x41aa3e=_0x3100cd['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2af4d4=_0x3d8cd3['getColumnGroupElement'](_0x41aa3e);let _0xc6ba32=_0x2af4d4?_0x3d8cd3['getTableColumnsWidths'](_0x2af4d4):null,_0x10a08d=_0x41aa3e['getAttribute']('tableWidth')||null;const _0x1c5c09=_0x3100cd['tableWidth']||_0x10a08d,_0x2e5f1a=_0x3100cd['columnWidths']||_0xc6ba32,_0x3e8ee4=this['editor']['plugins']['get']('Users')['me'];for(const _0x31047d of _0x24bf07['getSuggestions']()){const _0x26bf34=_0x31047d['getContainedElement']();if('resizeTable'===_0x31047d['subType']&&_0x26bf34===_0x41aa3e){_0x31047d['author']!==_0x3e8ee4&&_0x31047d['discard']();const _0x3b7805=_0x31047d['data']['commandParams'];_0x10a08d=_0x3b7805[0x0]['tableWidth'],_0xc6ba32=_0x3b7805[0x0]['columnWidths'];break;}}_0x5c0eba({'table':_0x41aa3e,'tableWidth':_0x1c5c09,'columnWidths':_0x2e5f1a}),_0x24bf07['markBlockFormat'](_0x41aa3e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x10a08d,'columnWidths':_0xc6ba32}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x47291e){if('formatBlock'!=_0x47291e['type']&&'formatInline'!=_0x47291e['type'])return;const {data:_0x3619f4}=_0x47291e;if(_0x3619f4&&'resizeTable'===_0x3619f4['formatGroupId']){const _0x1f46e6='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1f46e6)};}}}class Dt extends _0x8c8d34{['afterInit'](){const _0x2472b4=this['editor'];_0x2472b4['plugins']['has']('Template')&&_0x2472b4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x8c8d34{['afterInit'](){const _0x43adb2=this['editor'];if(!_0x43adb2['commands']['get']('insertTableOfContents'))return;_0x43adb2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1abb69=_0x43adb2['plugins']['get']('TrackChangesEditing'),_0x25250a=_0x43adb2['locale'];_0x1abb69['descriptionFactory']['registerElementLabel']('tableOfContents',_0x7639c=>o(_0x25250a,'ELEMENT_TABLE_OF_CONTENTS',_0x7639c));}}class $t extends _0x8c8d34{['afterInit'](){const _0x3d0122=this['editor'];if(!_0x3d0122['plugins']['has']('Title'))return;const _0x364cc7=_0x3d0122['plugins']['get']('TrackChangesEditing');_0x364cc7['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3d0122['locale'],'ELEMENT_TITLE')),_0x3d0122['model']['document']['registerPostFixer'](_0x54f1bb=>{let _0x513f40=!0x1;const _0x2f2a58=Array['from'](_0x3d0122['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x39b012,data:_0x2c2569}of _0x2f2a58){const {group:_0xcbadfd}=_0x364cc7['_splitMarkerName'](_0x39b012);if('suggestion'!==_0xcbadfd||!_0x2c2569['newRange'])continue;const _0x2cd485=_0x2c2569['newRange'],_0x51ea2c=_0x2cd485['end']['nodeBefore'];if(!_0x51ea2c||!_0x51ea2c['is']('element','title-content'))continue;if(!_0x2cd485['start']['isTouching'](_0x2cd485['end']))continue;const _0x2395da=_0x3d0122['model']['schema']['getNearestSelectionRange'](_0x2cd485['end'],'forward');if(_0x2395da&&_0x2395da['isCollapsed']){const _0x3a3c2a=_0x54f1bb['createRange'](_0x2cd485['start'],_0x2395da['start']);_0x3a3c2a['isEqual'](_0x2cd485)||(_0x54f1bb['updateMarker'](_0x39b012,{'range':_0x3a3c2a}),_0x513f40=!0x0);}_0x513f40||(_0x54f1bb['removeMarker'](_0x39b012),_0x513f40=!0x0);}return _0x513f40;});}}class Bt extends _0x8c8d34{['afterInit'](){const _0x1a660f=this['editor'],_0x2a0b8b=_0x1a660f['plugins']['get']('TrackChangesEditing');_0x1a660f['plugins']['has']('UndoEditing')&&(_0x2a0b8b['enableCommand']('undo'),_0x2a0b8b['enableCommand']('redo'));}}class xt extends _0x8c8d34{static get['requires'](){return[It];}['afterInit'](){const _0x31c7d9=this['editor'];if(!_0x31c7d9['plugins']['has']('TableCaptionEditing'))return;_0x31c7d9['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x8c8d34{['tableProperties'];['tableCellProperties'];constructor(_0x1afff3){super(_0x1afff3),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 _0x2415c8=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x214427 of this['tableProperties'])_0x2415c8['enableCommand'](_0x214427,(_0x1477af,_0x305dc9)=>{const _0x5cb2ba=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x214427,[_0x5cb2ba],this['tableProperties'],'tableProperties',_0x1477af,_0x305dc9);});_0x2415c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2415c8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2415c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2b49a8,_0x42325f)=>this['handleDiscardAction'](this['tableProperties'],_0x2b49a8,_0x42325f)),_0x2415c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1bac02 of this['tableCellProperties'])_0x2415c8['enableCommand'](_0x1bac02,(_0x542748,_0x3d4b55)=>{const _0x1b25c9=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1bac02,_0x1b25c9,this['tableCellProperties'],'tableCellProperties',_0x542748,_0x3d4b55);});_0x2415c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2415c8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2415c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2c9a0a,_0x129e47)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2c9a0a,_0x129e47)),_0x2415c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2415c8['descriptionFactory']['registerDescriptionCallback'](_0x4bcf56=>this['handleSuggestionDescription'](_0x4bcf56));}['_handlePropertyChange'](_0x2c423a,_0xcb6497,_0x608475,_0x53721a,_0x2b7fda,_0x179389){const _0x26150d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x179389['batch'],()=>{for(const _0x3babcd of _0xcb6497){if(this['_getSuggestion'](_0x3babcd,_0x53721a))_0x2b7fda(_0x179389);else{const _0x3836b5={};for(const _0x4142a4 of _0x608475){const _0x6ed2cc=_0x3babcd['getAttribute'](_0x4142a4);void 0x0!==_0x6ed2cc&&(_0x3836b5[_0x4142a4]=_0x6ed2cc);}_0x2b7fda(_0x179389),_0x26150d['markBlockFormat'](_0x3babcd,{'commandParams':[_0x3836b5]},[],_0x53721a);}}});}['handleDiscardAction'](_0x3f0a70,_0x48deb4,_0x5e5399){const _0x3768e9=_0x48deb4[0x0]['start']['nodeAfter'],_0x471b4d=_0x5e5399['commandParams'][0x0];this['editor']['model']['change'](_0x1c3109=>{for(const _0x2fb954 of _0x3f0a70)void 0x0!==_0x471b4d[_0x2fb954]?_0x1c3109['setAttribute'](_0x2fb954,_0x471b4d[_0x2fb954],_0x3768e9):_0x1c3109['removeAttribute'](_0x2fb954,_0x3768e9);});}['handleSuggestionDescription'](_0x198062){if(_0x198062['data'])switch(_0x198062['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'](_0x1c8ba6,_0x7dbe0d){const _0x538181=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x55e025 of _0x538181['getSuggestions']({'skipNotAttached':!0x0})){const _0x63c177=_0x55e025['getContainedElement']();if(_0x55e025['subType']===_0x7dbe0d&&_0x63c177===_0x1c8ba6)return _0x55e025;}return null;}}const m='$elementName';class p extends _0x8c8d34{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2c0b1d,_0x5a6a4e,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(_0x3390f1){function _0x1b457c(_0xf5dfa0){return _0xf5dfa0['map'](_0x2d52b8=>String['fromCharCode'](_0x2d52b8))['join']('');}super(_0x3390f1),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2db3e8,_0x5eae7e,_0x5e3634,_0x2bd975)=>{this['_model']['change'](()=>{for(const _0x538f16 of[..._0x2bd975,..._0x5e3634])this['_model']['markers']['has'](_0x538f16)&&_0x3390f1['editing']['reconvertMarker'](_0x538f16);});}),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']=_0x3390f1['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(),_0x3390f1['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3390f1['config']['get']('trackChanges.trackFormatChanges'),_0x3390f1['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3390f1['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3390f1,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1b457c([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1b457c([0x34,0x30,0x34,0x38,0x31,0x38,0x34,0x30]);}['init'](){const _0x5771e3=this['editor'],_0x135b5c=(_0x5c4983,_0x565843)=>{if('attribute'!=_0x5c4983)return'ck-suggestion-marker-'+_0x5c4983;const _0x3b8947=_0x565843['split']('|')[0x0];return this['_isBlockAttribute'](_0x3b8947)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5771e3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x30eb30=>{const {id:_0x273c43,authorId:_0x12ea4d,type:_0x51be1f,subType:_0x3d2a36}=this['_splitMarkerName'](_0x30eb30['markerName']),_0xc3fcd1=['ck-suggestion-marker',_0x135b5c(_0x51be1f,_0x3d2a36)];let _0x4dd858=0xbb8;return this['activeMarkers']['includes'](_0x30eb30['markerName'])&&(_0xc3fcd1['push']('ck-suggestion-marker--active'),_0x4dd858=0xbc2),'deletion'==_0x51be1f&&(_0x4dd858+=0x5),{'classes':_0xc3fcd1,'attributes':{'data-suggestion':_0x273c43,'data-author-id':_0x12ea4d},'priority':_0x4dd858};}}),_0x5771e3['conversion']['for']('dataDowncast')['add'](_0x150a7a=>{_0x150a7a['on']('addMarker:suggestion',(_0x2d5978,_0x2a1e0f,_0x439b41)=>{if(!_0x439b41['options']['showSuggestionHighlights'])return;const _0xd93630=_0x2a1e0f['item'];if(!_0xd93630)return;const _0x352dc4=_0x439b41['mapper']['toViewElement'](_0xd93630);_0x5771e3['model']['schema']['isObject'](_0xd93630)&&_0x352dc4&&!_0x352dc4['getCustomProperty']('widget')&&_0x352dc4['is']('containerElement')&&_0x275a7c(_0x352dc4,_0x439b41['writer']);},{'priority':'high'});}),_0x5771e3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x556123,_0x150382)=>{if(!_0x150382['options']['showSuggestionHighlights'])return null;const {type:_0x571128,subType:_0x209446}=this['_splitMarkerName'](_0x556123['markerName']);return{'classes':['ck-suggestion-marker',_0x135b5c(_0x571128,_0x209446)],'priority':0xbb8};}});const _0x256460=({showActiveMarkers:_0x75a9cb=!0x0,isAttributeSuggestion:_0x2c0c1d=!0x1}={})=>(_0x468fef,_0x2d21e0,_0x4c7c09)=>{if(!_0x2d21e0['item'])return;const {id:_0xf95738,authorId:_0x1e336e}=this['_splitMarkerName'](_0x2d21e0['markerName']);if(_0x2c0c1d){const _0x2882fe=this['_suggestions']['get'](_0xf95738),_0x18f190=this['_getAttributeKey'](_0x2882fe);if(!this['_isBlockAttribute'](_0x18f190))return;}if(_0x2d21e0['item']['is']('selection'))return void _0x4c7c09['consumable']['consume'](_0x2d21e0['item'],_0x468fef['name']);const _0x2baeac=_0x4c7c09['mapper']['toViewElement'](_0x2d21e0['item']);if(_0x2d21e0['item']['is']('element')&&_0x5771e3['model']['schema']['isBlock'](_0x2d21e0['item'])&&!_0x2baeac['getCustomProperty']('addHighlight')){_0x4c7c09['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2baeac),_0x4c7c09['writer']['setAttribute']('data-suggestion',_0xf95738,_0x2baeac),_0x4c7c09['writer']['setAttribute']('data-author-id',_0x1e336e,_0x2baeac),_0x4c7c09['mapper']['bindElementToMarker'](_0x2baeac,_0x2d21e0['markerName']),_0x75a9cb&&(this['activeMarkers']['includes'](_0x2d21e0['markerName'])?_0x4c7c09['writer']['addClass']('ck-suggestion-marker--active',_0x2baeac):_0x4c7c09['writer']['removeClass']('ck-suggestion-marker--active',_0x2baeac));for(const _0x3ff460 of _0x5771e3['model']['createRangeIn'](_0x2d21e0['item'])['getItems']())_0x4c7c09['consumable']['consume'](_0x3ff460,_0x468fef['name']);_0x4c7c09['consumable']['consume'](_0x2d21e0['item'],_0x468fef['name']);}};_0x5771e3['conversion']['for']('dataDowncast')['add'](_0x4f3847=>{_0x4f3847['on']('addMarker:suggestion:formatBlock',(_0x3d01b3,_0x30ec62,_0x207654)=>{_0x207654['options']['showSuggestionHighlights']&&_0x256460({'showActiveMarkers':!0x1})(_0x3d01b3,_0x30ec62,_0x207654);},{'priority':'highest'});}),_0x5771e3['conversion']['for']('dataDowncast')['add'](_0x5bd6ad=>{_0x5bd6ad['on']('addMarker:suggestion:attribute',(_0x137418,_0x2992c1,_0x175ed3)=>{_0x175ed3['options']['showSuggestionHighlights']&&_0x256460({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x137418,_0x2992c1,_0x175ed3);},{'priority':'highest'});}),_0x5771e3['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x414008,_0x536921)=>_0x536921['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x414008['substr'](0xb)}}),_0x5771e3['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4eab70,{writer:_0x2d0a90})=>{let _0x1dc075='suggestion:'+_0x4eab70['getAttribute']('suggestion-type')+':'+_0x4eab70['getAttribute']('id');return _0x4eab70['getAttribute']('marker-count')&&(_0x1dc075+=':'+_0x4eab70['getAttribute']('marker-count')),_0x2d0a90['createElement']('$marker',{'data-name':_0x1dc075});}}),_0x5771e3['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5771e3['conversion']['for']('editingDowncast')['add'](_0x22fdf8=>{_0x22fdf8['on']('addMarker:suggestion:formatBlock',_0x256460(),{'priority':'high'});}),_0x5771e3['conversion']['for']('editingDowncast')['add'](_0x33b540=>{_0x33b540['on']('addMarker:suggestion:attribute',_0x256460({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5771e3['conversion']['for']('editingDowncast')['add'](_0x4a9476=>{_0x4a9476['on']('removeMarker:suggestion:formatBlock',(_0x27ed89,_0x535daa,_0x32f6a6)=>{const _0x2b86a1=_0x32f6a6['mapper']['markerNameToElements'](_0x535daa['markerName']);if(_0x2b86a1){for(const _0x37e033 of _0x2b86a1)_0x37e033['getCustomProperty']('addHighlight')||(_0x32f6a6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x37e033),_0x32f6a6['writer']['removeAttribute']('data-suggestion',_0x37e033),_0x32f6a6['writer']['removeAttribute']('data-author-id',_0x37e033),_0x32f6a6['mapper']['unbindElementFromMarkerName'](_0x37e033,_0x535daa['markerName']));}},{'priority':'high'});}),_0x5771e3['conversion']['for']('editingDowncast')['add'](_0x41f3f1=>{_0x41f3f1['on']('removeMarker:suggestion:attribute',(_0x315b20,_0x257f1f,_0x497b7f)=>{const _0x1481df=_0x497b7f['mapper']['markerNameToElements'](_0x257f1f['markerName']);if(!_0x1481df)return;const {id:_0x5b2971}=this['_splitMarkerName'](_0x257f1f['markerName']),_0x3283ed=this['_suggestions']['get'](_0x5b2971),_0x53f56d=this['_getAttributeKey'](_0x3283ed);if(this['_isBlockAttribute'](_0x53f56d)){for(const _0x36593b of _0x1481df)_0x36593b['getCustomProperty']('addHighlight')||(_0x497b7f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x36593b),_0x497b7f['writer']['removeAttribute']('data-suggestion',_0x36593b),_0x497b7f['writer']['removeAttribute']('data-author-id',_0x36593b),_0x497b7f['mapper']['unbindElementFromMarkerName'](_0x36593b,_0x257f1f['markerName']));}},{'priority':'high'});}),_0x5771e3['model']['document']['registerPostFixer'](_0x5185b8=>{let _0x13a4f0=!0x1;const _0x175b95=Array['from'](_0x5771e3['model']['document']['differ']['getChangedMarkers']()),_0x361854=new Set();for(const {name:_0x39b3f0,data:_0xf32eb5}of _0x175b95){const {group:_0x2af307,type:_0x145a83,subType:_0x279bd4,id:_0x1304e8}=this['_splitMarkerName'](_0x39b3f0);if('suggestion'!==_0x2af307)continue;const _0x23babd=this['_suggestions']['get'](_0x1304e8);if(null!=_0xf32eb5['newRange']){'formatInline'==_0x145a83&&(_0x13a4f0=_0x13a4f0||Ut(_0xf32eb5['newRange'],_0x39b3f0,_0x5185b8,_0x5771e3['model']['schema']));const _0x12fb1e='attribute'==_0x145a83&&this['_isBlockAttribute'](_0x279bd4['split']('|')[0x0]);if(_0xf32eb5['newRange']['isCollapsed']||'$graveyard'==_0xf32eb5['newRange']['root']['rootName']||'formatBlock'==_0x145a83&&!Ft(_0xf32eb5['newRange'])||_0x12fb1e&&!Ft(_0xf32eb5['newRange'])||'deletion'==_0x145a83&&!(!Vt(_0x2613fd=_0xf32eb5['newRange'])&&!function(_0x1c3d4c){return _0x1c3d4c['start']['parent']==_0x1c3d4c['end']['nodeBefore']&&_0x1c3d4c['start']['isAtEnd'];}(_0x2613fd)))_0x5185b8['removeMarker'](_0x39b3f0),_0x13a4f0=!0x0;else{if(!_0x23babd||!_0x23babd['isInContent'])continue;if(_0xf32eb5['newRange']&&_0xf32eb5['oldRange']&&_0xf32eb5['newRange']['isEqual'](_0xf32eb5['oldRange']))continue;_0x361854['add'](_0x23babd);}}}var _0x2613fd;return _0x361854['size']>0x0&&(_0x13a4f0=!!this['_joinWithAdjacentSuggestions'](_0x361854)||_0x13a4f0),_0x13a4f0;}),_0x5771e3['model']['document']['registerPostFixer'](_0x32b6f1=>{let _0x6309b2=!0x1;for(const _0x24f1cf of _0x5771e3['model']['document']['differ']['getChanges']())if('insert'==_0x24f1cf['type'])for(const _0x22b410 of this['_suggestions']['values']()){if(_0x22b410['isMultiRange']||!_0x22b410['isInContent'])continue;const _0x133016='formatBlock'==_0x22b410['type'],_0x1ec8bd=this['_getAttributeKey'](_0x22b410),_0x5f0213=_0x1ec8bd&&this['_isBlockAttribute'](_0x1ec8bd);if(!_0x133016&&!_0x5f0213)continue;const _0x52935e=_0x22b410['getFirstRange']();if(_0x52935e['start']['parent']!=_0x52935e['end']['parent']&&!_0x52935e['end']['isAtEnd']){const _0x3c1bd1=_0x5771e3['model']['createPositionAt'](_0x52935e['start']['nodeAfter'],'end'),_0x1e9da6=_0x5771e3['model']['createRange'](_0x52935e['start'],_0x3c1bd1);_0x32b6f1['updateMarker'](_0x22b410['getFirstMarker'](),{'range':_0x1e9da6}),_0x6309b2=!0x0;}}return _0x6309b2;}),_0x5771e3['model']['document']['registerPostFixer'](_0x2cfae7=>this['_processAttributeChanges'](_0x2cfae7)),_0x5771e3['model']['document']['registerPostFixer'](_0x594593=>!_0x594593['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x594593)),_0x5771e3['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5771e3['model']['document']['on']('change:data',(_0x508730,_0x140c6b)=>{if(!_0x140c6b['isLocal']||_0x140c6b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x27e6f0=_0x5771e3['model']['document']['differ']['getChanges']();if(0x0==_0x27e6f0['length'])return;const _0x305bb4=[],_0x1607e7=_0x27e6f0['filter'](_0x100fb8=>'attribute'==_0x100fb8['type']),_0x38b3b3=_0x27e6f0['filter'](_0x6d1f71=>'insert'==_0x6d1f71['type']&&'$text'!=_0x6d1f71['name']);for(const _0x25934a of _0x1607e7)this['_isRegisteredAttribute'](_0x25934a['attributeKey'])&&_0x305bb4['push']({'key':_0x25934a['attributeKey'],'newValue':_0x25934a['attributeNewValue'],'oldValue':_0x25934a['attributeOldValue'],'range':Pt(_0x25934a['range'],_0x5771e3['model'])});for(const _0xc3e80f of _0x38b3b3){if('rename'!=_0xc3e80f['action']&&'refresh'!=_0xc3e80f['action'])continue;const _0x168dd0=Lt(_0xc3e80f['position']['nodeAfter'],_0x5771e3['model']),_0xcf8415=_0xc3e80f['before'];'rename'==_0xc3e80f['action']&&_0x305bb4['push']({'key':m,'newValue':_0xc3e80f['name'],'oldValue':_0xcf8415['name'],'range':_0x168dd0});for(const [_0x48dfcd,_0x156242]of _0xcf8415['attributes']){if(!this['_isRegisteredAttribute'](_0x48dfcd))continue;const _0x47063c=_0xc3e80f['attributes']['get'](_0x48dfcd);_0x156242!==_0x47063c&&_0x305bb4['push']({'key':_0x48dfcd,'newValue':_0x47063c,'oldValue':_0x156242,'range':_0x168dd0});}for(const [_0x2a7e41,_0x31937a]of _0xc3e80f['attributes'])this['_isRegisteredAttribute'](_0x2a7e41)&&(_0xcf8415['attributes']['has'](_0x2a7e41)||_0x305bb4['push']({'key':_0x2a7e41,'newValue':_0x31937a,'oldValue':null,'range':_0x168dd0}));}0x0!=_0x305bb4['length']&&_0x5771e3['model']['enqueueChange'](_0x140c6b,_0x3248cf=>{const _0x4f81af=_0x3143a6();for(const {range:_0x5dbe8b,key:_0x251a7a,oldValue:_0x54dde8,newValue:_0x120977}of _0x305bb4)this['markAttributeChange'](_0x5dbe8b,_0x251a7a,_0x54dde8,_0x120977,{'groupId':_0x4f81af});this['_reduceExistingSuggestions'](_0x3248cf,_0x305bb4);});},{'priority':'lowest'}),_0x5771e3['model']['markers']['on']('update:suggestion',(_0x554b14,_0x4748a0,_0x424bc9)=>{if(null==_0x424bc9){const {id:_0x4f8470}=this['_splitMarkerName'](_0x4748a0['name']),_0x4f3297=this['_suggestions']['get'](_0x4f8470);_0x4f3297&&_0x4f3297['addMarkerName'](_0x4748a0['name']);}}),_0x5771e3['model']['document']['on']('change:data',()=>{const _0x46fdbf=Array['from'](_0x5771e3['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2799f8=>'suggestion'===this['_splitMarkerName'](_0x2799f8['name'])['group']);if(0x0===_0x46fdbf['length'])return;_0x46fdbf['sort']((_0x528d1b,_0x4df163)=>{const _0x44ecfb=_0x528d1b['data']['oldRange'],_0x503eb1=_0x4df163['data']['oldRange'];return null===_0x44ecfb&&null===_0x503eb1?0x0:null===_0x44ecfb&&null!==_0x503eb1?-0x1:null!==_0x44ecfb&&null===_0x503eb1?0x1:_0x44ecfb['start']['isBefore'](_0x503eb1['start'])?-0x1:0x1;});const _0x171ccd=new Set(),_0x375988=new Set();for(const {name:_0x5519c1,data:_0x1bc5a6}of _0x46fdbf){const {id:_0x5dd4d0}=this['_splitMarkerName'](_0x5519c1);if(null===_0x1bc5a6['oldRange']){const _0x3c20d2=this['_handleNewSuggestionMarker'](_0x5519c1);_0x375988['add'](_0x3c20d2);}else{const _0x1eaac9=this['_suggestions']['get'](_0x5dd4d0);null!==_0x1bc5a6['newRange']||_0x1eaac9['isInContent']?(_0x171ccd['add'](_0x1eaac9['head']),_0x375988['add'](_0x1eaac9)):this['_removeSuggestion'](_0x1eaac9);}}_0x375988['size']>0x0&&this['_refreshSuggestionsChain'](_0x375988);for(const _0x4e8db1 of _0x171ccd)this['fire']('suggestionChanged',_0x4e8db1);}),_0x5771e3['model']['on']('applyOperation',(_0x20312d,_0x817eb2)=>{const _0x4b59da=_0x817eb2[0x0];if(!this['_suggestions']['size'])return;if(!_0x4b59da['isDocumentOperation'])return;if(_0x4b59da['batch']['isUndo']||!_0x4b59da['batch']['isLocal'])return;let _0x533d23,_0x10f966;switch(_0x4b59da['type']){case'insert':_0x533d23=_0x5771e3['model']['createPositionAt'](_0x4b59da['position']),_0x10f966=_0x533d23['getShiftedBy'](_0x4b59da['howMany']);break;case'split':_0x533d23=_0x5771e3['model']['createPositionAt'](_0x4b59da['splitPosition']),_0x10f966=_0x5771e3['model']['createPositionAt'](_0x4b59da['moveTargetPosition']);break;case'move':_0x533d23=_0x5771e3['model']['createPositionAt'](_0x4b59da['targetPosition']),_0x10f966=_0x533d23['getShiftedBy'](_0x4b59da['howMany']);break;default:return;}const _0x26ccfc=_0x5771e3['model']['createRange'](_0x533d23,_0x10f966);_0x5771e3['model']['change'](()=>{for(const {suggestion:_0x3b76eb,meta:_0x5106e4}of this['_findSuggestions'](_0x26ccfc)){if(_0x3b76eb['isMultiRange'])continue;if('formatInline'==_0x3b76eb['type'])continue;const _0x5f3ce8=this['_getAttributeKey'](_0x3b76eb);if(_0x5f3ce8&&this['_isBlockAttribute'](_0x5f3ce8)&&'split'!=_0x4b59da['type'])continue;const _0x2448d3=_0x3b76eb['data']&&_0x3b76eb['data']['multipleBlocks'];('formatBlock'!=_0x3b76eb['type']||'split'==_0x4b59da['type']&&!_0x2448d3)&&(_0x5106e4['containsRangeInObject']||'insertion'==_0x3b76eb['type']&&_0x5106e4['isOwn']||_0x3b76eb['getFirstRange']()['containsRange'](_0x26ccfc)&&this['_breakSuggestionMarker'](_0x3b76eb,_0x533d23,_0x10f966));}});},{'priority':'lowest'}),_0x5771e3['model']['on']('deleteContent',(_0x37b0fc,_0x1dc4c6)=>{const _0xa46810=_0x1dc4c6[0x0],_0x4fe683=_0x1dc4c6[0x1];if(_0x4fe683&&_0x4fe683['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xa46810['isCollapsed'])return;const _0xb45650=_0x5771e3['model']['schema'],{start:_0x3752e8,end:_0x3428b8}=_0xa46810['getFirstRange'](),_0x573cc5=_0x3752e8['nodeAfter']&&_0xb45650['isLimit'](_0x3752e8['nodeAfter'])?null:_0xb45650['getNearestSelectionRange'](_0x3752e8,'forward'),_0x5bb55a=_0x3428b8['nodeBefore']&&_0xb45650['isLimit'](_0x3428b8['nodeBefore'])?null:_0xb45650['getNearestSelectionRange'](_0x3428b8,'backward'),_0x295126=_0x5771e3['model']['createRange'](_0x573cc5?_0x573cc5['start']:_0x3752e8,_0x5bb55a?_0x5bb55a['end']:_0x3428b8);_0x5771e3['model']['change'](_0x4bfffc=>{this['markDeletion'](_0x295126);const _0x54bc61=_0x5771e3['model']['schema']['getNearestSelectionRange'](_0x295126['start']);_0xa46810['is']('documentSelection')?_0x4bfffc['setSelection'](_0x54bc61):_0xa46810['setTo'](_0x54bc61);}),_0x37b0fc['stop']();},{'priority':_0x1451a3['normal']+0xa}),_0x5771e3['model']['on']('insertContent',(_0x3a5ae0,_0x2a54b2)=>{const _0x249afd=_0x2a54b2[_0x2a54b2['length']-0x1];_0x249afd&&_0x249afd['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5771e3['model']['change'](()=>{let _0x54ef79=_0x5771e3['model']['insertContent'](_0x2a54b2[0x0],_0x2a54b2[0x1],_0x2a54b2[0x2],{'forceDefaultExecution':!0x0});if(!_0x54ef79)return;_0x3a5ae0['return']=_0x54ef79['clone']();const _0x117c34=_0x54ef79['end']['nodeBefore'],_0x5dcbe4=_0x5771e3['model']['schema'];_0x117c34&&_0x5dcbe4['isBlock'](_0x117c34)&&!_0x5dcbe4['isObject'](_0x117c34)&&(_0x54ef79=_0x5771e3['model']['createRange'](_0x54ef79['start'],_0x5771e3['model']['createPositionAt'](_0x117c34,'end'))),this['markInsertion'](_0x54ef79);}),_0x3a5ae0['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5bffde=new x(_0x5771e3,this['_suggestions']);_0x5771e3['commands']['add']('acceptSuggestion',_0x5bffde),this['enableCommand']('acceptSuggestion');const _0x3d2ca5=new R(_0x5771e3,this['_suggestions']);_0x5771e3['commands']['add']('discardSuggestion',_0x3d2ca5),this['enableCommand']('discardSuggestion'),_0x5771e3['commands']['add']('acceptAllSuggestions',new E(_0x5771e3,_0x5bffde,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5771e3['commands']['add']('discardAllSuggestions',new E(_0x5771e3,_0x3d2ca5,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5771e3['commands']['add']('acceptSelectedSuggestions',new O(_0x5771e3,_0x5bffde,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5771e3['commands']['add']('discardSelectedSuggestions',new O(_0x5771e3,_0x3d2ca5,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xa20bd9=_0x5771e3['plugins']['get']('CommentsRepository');this['listenTo'](_0xa20bd9,'addComment',(_0x2996ab,{threadId:_0x3a1926})=>{const _0x23c0bd=this['_suggestions']['get'](_0x3a1926);_0x23c0bd&&_0x23c0bd['commentThread']&&0x1===_0x23c0bd['commentThread']['length']&&this['_updateSuggestionData'](_0x3a1926,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xa20bd9,'removeComment',(_0x20d092,{threadId:_0x2d152f})=>{const _0x359612=this['_suggestions']['get'](_0x2d152f);_0x359612&&_0x359612['commentThread']&&!_0x359612['commentThread']['length']&&this['_updateSuggestionData'](_0x2d152f,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0xf8b4c7){if(this['_adapter'])throw new _0x153977('track-changes-adapter-already-set',this);this['_adapter']=_0xf8b4c7;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2931ae=!0x1,toJSON:_0x536f9d=!0x1}={}){const _0xf6c745=[];for(const _0xc9087a of this['_suggestions']['values']())_0x2931ae&&!_0xc9087a['isInContent']||_0xf6c745['push'](_0xc9087a);return _0x536f9d?_0xf6c745['map'](_0x574c36=>_0x574c36['toJSON']()):_0xf6c745;}['getSuggestion'](_0x5d3e7c){const _0x5cf0e7=this['_suggestions']['get'](_0x5d3e7c);if(!_0x5cf0e7)throw new _0x153977('track-changes-suggestion-not-found',this);return _0x5cf0e7;}['hasSuggestion'](_0x4ae308){return this['_suggestions']['has'](_0x4ae308);}['addSuggestionData'](_0x40d93c){const {authorId:_0x8a31fd,id:_0x3f9773,attributes:_0x4a44e2}=_0x40d93c,[_0x5601c8,_0x31fbee]=_0x40d93c['type']['split'](':'),_0x48900f=this['_suggestions']['get'](_0x3f9773)||this['_createSuggestion'](_0x5601c8,_0x31fbee,_0x3f9773,_0x8a31fd,_0x4a44e2);if(this['_addThreadToSuggestion'](_0x48900f),this['_checkSuggestionCorrectness'](_0x48900f,_0x5601c8,_0x31fbee||null,_0x8a31fd),_0x48900f['createdAt']=_0x40d93c['createdAt'],_0x48900f['_isDataLoaded']=!0x0,_0x4a44e2&&_0x4a44e2['@external']){const _0x4e1996=_0x4a44e2['@external'],_0x1c271b=this['_getExternalAuthor'](_0x4e1996['authorName']);_0x48900f['authoredAt']=_0x4e1996['createdAt'],_0x48900f['author']=_0x1c271b,_0x48900f['isExternal']=!0x0;}else _0x48900f['authoredAt']=_0x40d93c['createdAt'];switch(_0x40d93c['data']&&(_0x48900f['data']=_0x40d93c['data']),_0x40d93c['attributes']&&(_0x48900f['attributes']=_0x40d93c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x48900f['_saved']=!0x0),this['_suggestionState']['get'](_0x48900f)){case'notReady':this['_suggestionState']['set'](_0x48900f,'dataReady');break;case'markerReady':_0x48900f['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x48900f])),this['_refreshSuggestionsChain'](new Set([_0x48900f])),this['_suggestionState']['set'](_0x48900f,'ready'),this['fire']('suggestionLoaded',_0x48900f)):this['_suggestionState']['set'](_0x48900f,'removed');}return _0x48900f;}['acceptSuggestion'](_0xac6ae9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x8b3de2 of _0xac6ae9['getAllAdjacentSuggestions']())_0x8b3de2['accept']();});});}['discardSuggestion'](_0x175f19){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1908cd of _0x175f19['getAllAdjacentSuggestions']())_0x1908cd['discard']();});});}['enableCommand'](_0x179a8e,_0x234f6f){const _0x424c73=this['editor']['commands']['get'](_0x179a8e);if(!_0x424c73)throw new _0x153977('track-changes-command-not-found',this,{'commandName':_0x179a8e});if(this['_enabledCommands']['has'](_0x424c73))throw new _0x153977('track-changes-enable-command-twice',this,{'commandName':_0x179a8e});this['_enabledCommands']['add'](_0x424c73),_0x234f6f&&_0x424c73['on']('execute',(_0x1f998b,_0x5a26aa)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5a26aa['length']>0x0&&_0x5a26aa[_0x5a26aa['length']-0x1]&&_0x5a26aa[_0x5a26aa['length']-0x1]['forceDefaultExecution']?_0x5a26aa['pop']():(_0x1f998b['return']=_0x234f6f((..._0x323ac2)=>_0x424c73['execute'](..._0x323ac2,{'forceDefaultExecution':!0x0}),..._0x5a26aa),_0x1f998b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1238b1){let _0xfb4798,_0x5cdd2d;const _0x3fd0f7=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xfb4798=_0x1238b1();}catch(_0x4b227e){_0x5cdd2d=_0x4b227e;}return _0x3fd0f7||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5cdd2d&&_0x153977['rethrowUnexpectedError'](_0x5cdd2d,this),_0xfb4798;}['markInsertion'](_0x535b04,_0x58549e=null,_0x1f3c8a={}){if(_0x535b04['isCollapsed'])return null;const _0x116fc9=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4593c9,meta:_0x5009d3}of this['_findSuggestions'](_0x535b04,'insertion'))if(_0x5009d3['isOwn']){if(!_0x5009d3['isNextTo']){if(_0x5009d3['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x4593c9,_0x1f3c8a))continue;return _0x4593c9;}if(qt(_0x4593c9,_0x1f3c8a))return _0x4593c9;this['_breakSuggestionMarker'](_0x4593c9,_0x535b04['start'],_0x535b04['end']);break;}if(_0x58549e==_0x4593c9['subType']&&qt(_0x4593c9,_0x1f3c8a)){const _0x580a60=_0x4593c9['getFirstRange']();return _0x580a60['start']['isEqual'](_0x535b04['end'])?this['_setSuggestionRange'](_0x4593c9,this['_model']['createRange'](_0x535b04['start'],_0x580a60['end'])):this['_setSuggestionRange'](_0x4593c9,this['_model']['createRange'](_0x580a60['start'],_0x535b04['end'])),_0x4593c9;}}const _0x197e75=_0x3143a6(),_0x72d65f=_0x116fc9['id'],_0xb203f0=_0x58549e?'insertion:'+_0x58549e:'insertion',_0x1ca042=this['_setSuggestionData']({'id':_0x197e75,'type':_0xb203f0,'createdAt':new Date(),'authorId':_0x72d65f,'attributes':_0x1f3c8a});return this['_addSuggestionMarker'](_0xb203f0,_0x197e75,_0x72d65f,_0x535b04),_0x1ca042;}['markMultiRangeInsertion'](_0x453478,_0x2aae10='multi',_0x1c43aa={}){const _0x2ec626=this['editor']['plugins']['get']('Users')['me'],_0x16de36=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2aae10,'join');for(const _0x5e8f61 of this['getSuggestions']())if(_0x5e8f61['author']['id']==_0x2ec626['id']&&'insertion'==_0x5e8f61['type']&&_0x5e8f61['subType']==_0x2aae10&&qt(_0x5e8f61,_0x1c43aa)&&(_0x16de36(_0x5e8f61['getRanges'](),_0x453478)||_0x16de36(_0x453478,_0x5e8f61['getRanges']()))){for(const _0x76eec of _0x453478)_0x5e8f61['addRange'](_0x76eec);return _0x5e8f61;}for(const {suggestion:_0x1feacf,meta:_0x1cf3bc}of this['_findSuggestions'](_0x453478,'insertion')){if(!_0x1cf3bc['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1cf3bc['containsRangeInObject'])continue;if(!qt(_0x1feacf,_0x1c43aa))continue;let _0x43377d=!0x0;for(const _0x36064d of _0x1feacf['getRanges']())for(const _0x1d3d81 of _0x453478)if(!_0x36064d['containsRange'](_0x1d3d81)){_0x43377d=!0x1;break;}if(_0x43377d)return _0x1feacf;}const _0x1dc65a=_0x3143a6(),_0x29c688=_0x2ec626['id'],_0x1bd844='insertion:'+_0x2aae10,_0x41bf9f=this['_setSuggestionData']({'id':_0x1dc65a,'type':_0x1bd844,'createdAt':new Date(),'authorId':_0x29c688,'attributes':_0x1c43aa});for(const _0xd46849 of _0x453478)this['_addSuggestionMarker'](_0x1bd844,_0x1dc65a,_0x29c688,_0xd46849,u['getMultiRangeId']());return _0x41bf9f;}['markInlineFormat'](_0x4f0391,_0xfe51e6,_0x48121d=null,_0x1f6448={}){if(_0x48121d=_0x48121d||Gt(_0xfe51e6),_0x4f0391['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x44dd7f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x48121d,'accept');return this['forceDefaultExecution'](()=>_0x44dd7f([_0x4f0391],_0xfe51e6,_0x1f6448)),null;}const _0x55cb8a=this['editor']['plugins']['get']('Users')['me'],_0x269b9f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x49e883,meta:_0x5674db}of this['_findSuggestions'](_0x4f0391,'insertion'))_0x5674db['isOwn']&&!_0x5674db['isInsideObject']&&_0x269b9f['push'](..._0x49e883['getRanges']());}const _0x43f540=function(_0x3531f2,_0x4d21c8){const _0x4693f5=[];for(const _0x5319a0 of _0x4d21c8){const _0x3496da=_0x3531f2['getIntersection'](_0x5319a0);_0x3496da&&_0x4693f5['push'](_0x3496da);}return _0x4693f5;}(_0x4f0391,_0x269b9f),_0x27f84e=function(_0x2057e0,_0x48d6c1){const _0x58691f=[_0x2057e0];for(const _0x5de774 of _0x48d6c1){let _0x1a732d=0x0;for(;_0x1a732d<_0x58691f['length'];){const _0x39d898=_0x58691f[_0x1a732d]['getDifference'](_0x5de774);_0x58691f['splice'](_0x1a732d,0x1,..._0x39d898),_0x1a732d+=_0x39d898['length'];}}return _0x58691f;}(_0x4f0391,_0x269b9f);_0x43f540['length']&&this['_model']['change'](()=>{for(const _0x34c303 of _0x43f540){const _0x2a7605=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x48121d,'accept');this['forceDefaultExecution'](()=>_0x2a7605([_0x34c303],_0xfe51e6,_0x1f6448));}});for(const _0x3ce8ae of _0x27f84e){let _0x4df734=null,_0x4febf1=_0x3ce8ae['start'],_0x4d5846=_0x3ce8ae['end'];for(const {suggestion:_0x501ad5,meta:_0x44114a}of this['_findSuggestions'](_0x3ce8ae,'formatInline')){if(!_0x44114a['isOwn'])continue;if(_0x501ad5['subType']!=_0x48121d)continue;if(!qt(_0x501ad5,_0x1f6448))continue;const _0x17144d=_0x501ad5['getFirstRange']();if(_0x17144d['containsRange'](_0x3ce8ae,!0x0))return null;_0x4febf1=_0x4febf1['isBefore'](_0x17144d['start'])?_0x4febf1:_0x17144d['start'],_0x4d5846=_0x4d5846['isAfter'](_0x17144d['end'])?_0x4d5846:_0x17144d['end'],_0x4df734?_0x17144d['start']['isBefore'](_0x4df734['getFirstRange']()['start'])?(_0x4df734['removeMarkers'](),_0x4df734=_0x501ad5):_0x501ad5['removeMarkers']():_0x4df734=_0x501ad5;}const _0x4161fa=this['_model']['createRange'](_0x4febf1,_0x4d5846);if(_0x4df734)this['_setSuggestionRange'](_0x4df734,_0x4161fa);else{const _0x41476c=_0x3143a6(),_0xc2461=_0x55cb8a['id'];this['_setSuggestionData']({'id':_0x41476c,'type':'formatInline:'+_0x48121d,'data':_0xfe51e6,'createdAt':new Date(),'authorId':_0xc2461,'attributes':_0x1f6448}),this['_addSuggestionMarker']('formatInline:'+_0x48121d,_0x41476c,_0xc2461,_0x4161fa);}}return null;}['markBlockFormat'](_0x463c39,_0x508015,_0x873ff4=[],_0x4fe171=null,_0x7aba82={}){_0x508015['formatGroupId']||(_0x508015['formatGroupId']=_0x508015['commandName']),_0x508015['multipleBlocks']=_0x463c39['is']('range'),_0x4fe171=_0x4fe171||Gt(_0x508015);const _0x2a8415=_0x873ff4['map'](_0x310d74=>Lt(_0x310d74,this['_model'])),_0x4b161c=_0x463c39['is']('range')?_0x463c39:Lt(_0x463c39,this['_model']);if('never'===this['_trackFormatChanges']){const _0x55bf98=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fe171,'accept');return this['forceDefaultExecution'](()=>_0x55bf98([_0x4b161c],_0x508015,_0x7aba82)),null;}_0x2a8415['push'](_0x4b161c);let _0x367373=!0x0;for(const _0x5ed27b of _0x2a8415)if(!this['_rangeIsInLocalUserInsertion'](_0x5ed27b)){_0x367373=!0x1;break;}if(_0x367373&&'always'!==this['_trackFormatChanges']){const _0x59cce2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fe171,'accept');return this['forceDefaultExecution'](()=>_0x59cce2([_0x4b161c],_0x508015,_0x7aba82)),null;}let _0x3c3033=null,_0x28d561=_0x4b161c['start'],_0x304f26=_0x4b161c['end'];for(const {suggestion:_0x3d135c,meta:_0x292189}of this['_findSuggestions'](_0x4b161c,'formatBlock')){if(!_0x292189['isOwn'])continue;if(_0x292189['isNextTo']||_0x292189['containsRangeInObject']||_0x292189['isInsideObject'])continue;if(_0x3d135c['data']['formatGroupId']!=_0x508015['formatGroupId'])continue;if(!qt(_0x3d135c,_0x7aba82))continue;const _0x1fdc7d=_0x3d135c['getFirstRange']();if(_0x3d135c['subType']==_0x4fe171){if(_0x1fdc7d['containsRange'](_0x4b161c,!0x0))return null;_0x28d561=_0x28d561['isBefore'](_0x1fdc7d['start'])?_0x28d561:_0x1fdc7d['start'],_0x304f26=_0x304f26['isAfter'](_0x1fdc7d['end'])?_0x304f26:_0x1fdc7d['end'],_0x3c3033?_0x1fdc7d['start']['isBefore'](_0x3c3033['getFirstRange']()['start'])?(_0x3c3033['removeMarkers'](),_0x3c3033=_0x3d135c):_0x3d135c['removeMarkers']():_0x3c3033=_0x3d135c;}else{const _0x348757=_0x4b161c['getIntersection'](_0x1fdc7d);this['_cutOutSuggestionMarker'](_0x3d135c,_0x348757);}}const _0x2c3089=this['editor']['plugins']['get']('Users')['me'],_0x39913e=_0x3143a6(),_0x136ecc=_0x2c3089['id'];if(_0x3c3033)return this['_setSuggestionRange'](_0x3c3033,this['_model']['createRange'](_0x28d561,_0x304f26)),_0x3c3033;{const _0x19a815=this['_setSuggestionData']({'id':_0x39913e,'type':'formatBlock:'+_0x4fe171,'data':_0x508015,'createdAt':new Date(),'authorId':_0x136ecc,'attributes':_0x7aba82});return this['_addSuggestionMarker']('formatBlock:'+_0x4fe171,_0x39913e,_0x136ecc,this['_model']['createRange'](_0x28d561,_0x304f26)),_0x19a815;}}['markMultiRangeBlockFormat'](_0x15fb2a,_0x4ae31c,_0x209ff9=[],_0xdec2f4=null,_0x252731={}){_0x4ae31c['formatGroupId']||(_0x4ae31c['formatGroupId']=_0x4ae31c['commandName']);const _0x21003b=_0x15fb2a[0x0];_0x4ae31c['multipleBlocks']=_0x21003b['is']('range'),_0xdec2f4=_0xdec2f4||Gt(_0x4ae31c);const _0x11e310=_0x209ff9['map'](_0x100845=>Lt(_0x100845,this['_model'])),_0xd70ab4=_0x21003b['is']('range')?_0x15fb2a:_0x15fb2a['map'](_0x535b17=>Lt(_0x535b17,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3ee59a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xdec2f4,'accept');return this['forceDefaultExecution'](()=>_0x3ee59a(_0xd70ab4,_0x4ae31c,_0x252731)),null;}_0x11e310['push'](..._0xd70ab4);let _0x10ea88=!0x0;for(const _0x24d351 of _0x11e310)if(!this['_rangeIsInLocalUserInsertion'](_0x24d351)){_0x10ea88=!0x1;break;}if(_0x10ea88&&'always'!==this['_trackFormatChanges']){const _0x44d805=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xdec2f4,'accept');return this['forceDefaultExecution'](()=>_0x44d805(_0xd70ab4,_0x4ae31c,_0x252731)),null;}const _0x575f04=this['editor']['plugins']['get']('Users')['me'];for(const _0x2a0007 of this['getSuggestions']()){if(_0x2a0007['author']['id']!=_0x575f04['id'])continue;if('formatBlock'!=_0x2a0007['type']||_0x2a0007['data']['formatGroupId']!=_0x4ae31c['formatGroupId'])continue;if(!qt(_0x2a0007,_0x252731))continue;const _0x372417=_0x2a0007['subType']==_0xdec2f4;for(let _0xbd13a7=0x0;_0xbd13a7<_0xd70ab4['length'];_0xbd13a7++){const _0x3c4500=_0xd70ab4[_0xbd13a7];for(const _0x4e81cc of _0x2a0007['getMarkers']()){const _0x3669e6=_0x4e81cc['getRange']();if(_0x3c4500['isEqual'](_0x3669e6)){_0x372417?(_0xd70ab4['splice'](_0xbd13a7,0x1),_0xbd13a7--):_0x2a0007['removeMarker'](_0x4e81cc['name']);break;}}}}if(0x0==_0xd70ab4['length'])return null;const _0x520277=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xdec2f4,'join');for(const _0x1414ee of this['getSuggestions']())if(_0x1414ee['author']['id']==_0x575f04['id']&&'formatBlock'==_0x1414ee['type']&&_0x1414ee['data']['formatGroupId']==_0x4ae31c['formatGroupId']&&_0x1414ee['subType']==_0xdec2f4&&qt(_0x1414ee,_0x252731)&&(_0x520277(_0x1414ee['getRanges'](),_0xd70ab4)||_0x520277(_0xd70ab4,_0x1414ee['getRanges']()))){for(const _0x5d12dd of _0xd70ab4)_0x1414ee['addRange'](_0x5d12dd);return _0x1414ee;}const _0x49eea2=_0x3143a6(),_0xa95989=_0x575f04['id'],_0x3f8ecd='formatBlock:'+_0xdec2f4,_0x4edbb7=this['_setSuggestionData']({'id':_0x49eea2,'type':_0x3f8ecd,'data':_0x4ae31c,'createdAt':new Date(),'authorId':_0xa95989,'attributes':_0x252731});for(const _0x23289e of _0xd70ab4)this['_addSuggestionMarker'](_0x3f8ecd,_0x49eea2,_0xa95989,_0x23289e,u['getMultiRangeId']());return _0x4edbb7;}['markDeletion'](_0x5b5408,_0x341dbc=null,_0x13b40b={}){if(_0x5b5408['isCollapsed'])return null;const _0x356c1d=this['editor']['plugins']['get']('Users')['me'],_0x5a81a4=new _0x4523d0(_0x5b5408['start'],_0x5b5408['end']);for(const {suggestion:_0x323ffc,meta:_0x327d22}of this['_findSuggestions'](_0x5a81a4,'insertion'))if(_0x327d22['isOwn']&&!_0x327d22['isNextTo']){if(_0x323ffc['isMultiRange']){const _0x483e2d=_0x323ffc['getRanges']()['filter'](_0x2c3928=>'$graveyard'!=_0x2c3928['root']['rootName']);_0x483e2d['every'](_0x372a20=>_0x5a81a4['containsRange'](_0x372a20,!0x0))&&_0x323ffc['discard']();if(_0x483e2d['some'](_0x401816=>_0x401816['containsRange'](_0x5a81a4,!0x0))){const _0xa46bcb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x341dbc,'accept');return this['forceDefaultExecution'](()=>_0xa46bcb([_0x5a81a4],null,_0x13b40b)),null;}}else{const _0x3487fe=_0x5a81a4['getIntersection'](_0x323ffc['getFirstRange']());null!==_0x3487fe&&_0x323ffc['_onDiscard']([_0x3487fe],null,_0x13b40b);}}if(_0x5a81a4['detach'](),_0x5a81a4['isCollapsed']||'$graveyard'==_0x5a81a4['root']['rootName'])return null;let _0x1810f0=null,_0x1b8ab7=_0x5a81a4['start'],_0x56f533=_0x5a81a4['end'];const _0x248cd8=this['_findSuggestions'](_0x5a81a4,'deletion');for(const {suggestion:_0x513b80,meta:_0x948ed0}of _0x248cd8){const _0x353473=this['_model']['createRange'](_0x1b8ab7,_0x56f533);if(_0x948ed0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x948ed0['containsRangeInObject']&&!_0x948ed0['isInsideObject'])){if(_0x513b80['isMultiRange']){if(!qt(_0x513b80,_0x13b40b))continue;let _0x51551c=!0x0;for(const _0x8197b1 of _0x513b80['getRanges']()){if(_0x8197b1['containsRange'](_0x353473,!0x0))return _0x513b80;_0x353473['containsRange'](_0x8197b1)||(_0x51551c=!0x1);}_0x51551c&&_0x513b80['discard']();}else{const _0x22105a=_0x513b80['getFirstRange']();if(_0x22105a['containsRange'](_0x353473,!0x0))return _0x513b80;if(!qt(_0x513b80,_0x13b40b)){_0x353473['containsRange'](_0x22105a)?_0x513b80['removeMarkers']():_0x22105a['containsPosition'](_0x1b8ab7)?_0x1b8ab7=_0x22105a['end']:_0x22105a['containsPosition'](_0x56f533)&&(_0x56f533=_0x22105a['start']);continue;}_0x1b8ab7=_0x1b8ab7['isBefore'](_0x22105a['start'])?_0x1b8ab7:_0x22105a['start'],_0x56f533=_0x56f533['isAfter'](_0x22105a['end'])?_0x56f533:_0x22105a['end'],_0x13b40b=Object['assign']({},_0x513b80['attributes']),_0x1810f0?_0x22105a['start']['isBefore'](_0x1810f0['getFirstRange']()['start'])?(_0x1810f0['removeMarkers'](),_0x1810f0=_0x513b80):_0x513b80['removeMarkers']():_0x1810f0=_0x513b80;}}}if(_0x1810f0)return this['_setSuggestionRange'](_0x1810f0,this['_model']['createRange'](_0x1b8ab7,_0x56f533)),_0x1810f0;{const _0x5e2eec=_0x3143a6(),_0x2d81d9=this['_model']['createRange'](_0x1b8ab7,_0x56f533),_0xc846ab=_0x356c1d['id'],_0xa9402d=_0x341dbc?'deletion:'+_0x341dbc:'deletion',_0x2c746c=this['_setSuggestionData']({'id':_0x5e2eec,'type':_0xa9402d,'createdAt':new Date(),'authorId':_0xc846ab,'attributes':_0x13b40b});return this['_addSuggestionMarker'](_0xa9402d,_0x5e2eec,_0xc846ab,_0x2d81d9),_0x2c746c;}}['markMultiRangeDeletion'](_0x15b012,_0x1f983a='multi',_0x308ef9={}){const _0x2b7829=this['editor']['plugins']['get']('Users')['me'],_0x1546cb=_0x15b012['map'](_0x2b9d25=>new _0x4523d0(_0x2b9d25['start'],_0x2b9d25['end'])),_0x4b6bdd=new Set();for(const {suggestion:_0x538078,meta:_0xa80f1c}of this['_findSuggestions'](_0x1546cb,'insertion'))_0xa80f1c['isOwn']&&!_0xa80f1c['isNextTo']&&_0x4b6bdd['add'](_0x538078);for(const _0x4c855f of _0x4b6bdd)if(_0x4c855f['isMultiRange']){const _0x5c0c48=_0x4c855f['getRanges']();(!_0x4c855f['attributes']||!_0x4c855f['attributes']['skipNestingCheck'])&&(_0x5c0c48['every'](_0x58e3f4=>_0x1546cb['some'](_0x47cf81=>_0x47cf81['containsRange'](_0x58e3f4,!0x0)))&&_0x4c855f['discard']());if(_0x1546cb['every'](_0x5d9abd=>_0x5c0c48['some'](_0x4b9eb8=>_0x4b9eb8['containsRange'](_0x5d9abd,!0x0)))){const _0x2b827b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1f983a,'accept');return this['forceDefaultExecution'](()=>_0x2b827b(_0x15b012,null,_0x308ef9)),null;}}else{const _0x5bcaed=_0x4c855f['getFirstRange']();_0x1546cb['some'](_0x3c610e=>_0x3c610e['containsRange'](_0x5bcaed,!0x0))&&_0x4c855f['discard']();if(_0x1546cb['every'](_0x3fcc62=>_0x5bcaed['containsRange'](_0x3fcc62,!0x0))){const _0x40ea1b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1f983a,'accept');return this['forceDefaultExecution'](()=>_0x40ea1b(_0x1546cb,null,_0x308ef9)),null;}}const _0x5e0e40=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1f983a,'join');let _0x4a6f0a=null;for(const _0x1993e8 of this['getSuggestions']())if(_0x1993e8['author']['id']==_0x2b7829['id']&&_0x1993e8['isInContent']&&'deletion'==_0x1993e8['type']&&_0x1993e8['subType']==_0x1f983a&&qt(_0x1993e8,_0x308ef9)&&(_0x5e0e40(_0x1993e8['getRanges'](),_0x1546cb)||_0x5e0e40(_0x1546cb,_0x1993e8['getRanges']()))){if(_0x4a6f0a){if(_0x1993e8['commentThread']&&_0x1993e8['commentThread']['length'])continue;for(const _0x26e199 of _0x1993e8['getRanges']())_0x4a6f0a['isIntersectingWithRange'](_0x26e199)||_0x4a6f0a['addRange'](_0x26e199);_0x1993e8['removeMarkers']();}else{_0x4a6f0a=_0x1993e8;for(const _0x784319 of _0x1546cb)_0x1993e8['isIntersectingWithRange'](_0x784319)||_0x1993e8['addRange'](_0x784319);}}if(_0x4a6f0a)return _0x4a6f0a;_0x4b6bdd['clear']();for(const {suggestion:_0x339d41,meta:_0x1dcb44}of this['_findSuggestions'](_0x1546cb,'deletion'))_0x1dcb44['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1dcb44['containsRangeInObject']&&!_0x1dcb44['isInsideObject'])&&qt(_0x339d41,_0x308ef9)&&_0x4b6bdd['add'](_0x339d41);for(const _0x4d74a4 of _0x4b6bdd){const _0x167dea=_0x4d74a4['getRanges']();if(!_0x308ef9||!_0x308ef9['skipNestingCheck']){if(_0x1546cb['every'](_0x1e89c4=>_0x167dea['some'](_0x5150f4=>_0x5150f4['containsRange'](_0x1e89c4,!0x0))))return _0x4d74a4;}(!_0x4d74a4['attributes']||!_0x4d74a4['attributes']['skipNestingCheck'])&&(_0x167dea['every'](_0x3a6140=>_0x1546cb['some'](_0x51721b=>_0x51721b['containsRange'](_0x3a6140,!0x0)))&&_0x4d74a4['discard']());}const _0x347d41=_0x3143a6(),_0xbda0cd=_0x2b7829['id'],_0x12067a='deletion:'+_0x1f983a,_0x120315=this['_setSuggestionData']({'id':_0x347d41,'type':_0x12067a,'createdAt':new Date(),'authorId':_0xbda0cd,'attributes':_0x308ef9});for(const _0x75e0ab of _0x1546cb)_0x75e0ab['detach'](),_0x75e0ab['isCollapsed']||'$graveyard'==_0x75e0ab['root']['rootName']||this['_addSuggestionMarker'](_0x12067a,_0x347d41,_0xbda0cd,_0x75e0ab,u['getMultiRangeId']());return _0x120315;}['markAttributeChange'](_0x1b5ac5,_0x89ff27,_0x58e526,_0x27a602,_0x19167){if(_0x1b5ac5['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3fac7d=this['editor']['plugins']['get']('Users')['me']['id'],_0x173846=Array['from'](this['_suggestions']['values']())['filter'](_0x3ba675=>'attribute'==_0x3ba675['type']&&_0x3ba675['data']['key']==_0x89ff27&&_0x3ba675['isIntersectingWithRange'](_0x1b5ac5));if('default'===this['_trackFormatChanges']){const _0x4fad51=this['_findSuggestions'](_0x1b5ac5,'insertion')['filter'](({meta:_0x307cbb})=>_0x307cbb['isOwn']&&!_0x307cbb['isInsideObject']&&!_0x307cbb['isNextTo'])['map'](({suggestion:_0x932807})=>_0x932807);_0x173846['unshift'](..._0x4fad51);}const _0x50e87e=new Map([[_0x1b5ac5,_0x58e526]]);for(const _0x5b2349 of _0x173846){const _0x3916cd='attribute'==_0x5b2349['type']?_0x5b2349['data']['oldValue']:void 0x0,_0x4a1298=_0x5b2349['getFirstRange'](),_0x442926=Array['from'](_0x50e87e['keys']())['find'](_0x42ad2d=>_0x42ad2d['isIntersecting'](_0x4a1298));if(!_0x442926)continue;const _0xca43b8=_0x442926['getDifference'](_0x4a1298);this['_isBlockAttribute'](_0x89ff27)&&'insertion'==_0x5b2349['type']&&0x0!=_0xca43b8['length']||(_0x50e87e['delete'](_0x442926),_0xca43b8['forEach'](_0x32b210=>{_0x50e87e['set'](_0x32b210,_0x58e526);}),'insertion'!=_0x5b2349['type']&&_0x3916cd!=_0x27a602&&_0x50e87e['set'](_0x442926['getIntersection'](_0x4a1298),_0x3916cd));}const _0x17a007=[];for(const [_0x481b2c,_0x42324d]of _0x50e87e){const _0x929066=_0x3143a6(),_0x83632f={'key':_0x89ff27,'oldValue':_0x42324d,'newValue':_0x27a602};_0x89ff27['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':_0x89ff27});const _0x24e6e4=('attribute:'+(_0x89ff27+'|'+Gt({'newValue':_0x27a602})))['substring'](0x0,0x3c),_0x25397e=this['_setSuggestionData']({'id':_0x929066,'type':_0x24e6e4,'data':_0x83632f,'createdAt':new Date(),'authorId':_0x3fac7d,'attributes':_0x19167});_0x17a007['push'](_0x25397e),this['_addSuggestionMarker'](_0x24e6e4,_0x929066,_0x3fac7d,_0x481b2c);}return _0x17a007;}['enableDefaultAttributesIntegration'](_0x4ee8a5){this['enableCommand'](_0x4ee8a5,(_0x3464f6,..._0xcacc43)=>{this['_recordAttributeChanges'](()=>{_0x3464f6(..._0xcacc43);});});}['registerBlockAttribute'](_0x2ea739){this['_blockAttributeKeys']['add'](_0x2ea739);}['registerInlineAttribute'](_0x3fe703){this['_inlineAttributeKeys']['add'](_0x3fe703);}['_getAttributeKey'](_0x365fcf){return'attribute'==_0x365fcf['type']?_0x365fcf['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xd3c0ef,_0x4a9f59){const _0x4c1afe=_0xd3c0ef['getFirstMarker']();this['_model']['change'](_0x42fd68=>{_0x42fd68['updateMarker'](_0x4c1afe,{'range':_0x4a9f59});});}['_addThreadToSuggestion'](_0x1c7fd9){const _0x4e517e=_0x1c7fd9['id'],_0x1800e1=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4e517e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1800e1,'threadId':_0x4e517e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x23dc78=this['_commentsRepository']['getCommentThread'](_0x4e517e);_0x23dc78['unbind']('isRemovable'),_0x23dc78['isRemovable']=!0x1,_0x1c7fd9['commentThread']=_0x23dc78;}['_checkSuggestionCorrectness'](_0x2ea3ec,_0x3c2534,_0x594ffd,_0x282371){if(_0x2ea3ec['type']!=_0x3c2534||_0x2ea3ec['subType']!=_0x594ffd||_0x2ea3ec['creator']['id']!=_0x282371)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x153977('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3873a2,_0x41456d){const _0x21070e=_0x3873a2['getFirstRange']();if(_0x41456d['isEqual'](_0x21070e))_0x3873a2['removeMarkers']();else{if(_0x21070e['containsRange'](_0x41456d)){const _0x55af08=this['_model']['createPositionAt'](_0x41456d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3873a2,this['_model']['createRange'](_0x21070e['start'],_0x55af08));const _0x3a5a04=_0x3143a6(),_0x36842=_0x3873a2['creator']['id'],_0x5e412e=_0x3873a2['type']+':'+_0x3873a2['subType'];this['_setSuggestionData']({'id':_0x3a5a04,'type':_0x5e412e,'createdAt':new Date(),'authorId':_0x36842,'data':_0x3873a2['data'],'attributes':_0x3873a2['attributes']});const _0x1a71e6=this['_model']['createPositionAt'](_0x41456d['end']['parent'],'after'),_0x3dd82b=this['_model']['createRange'](_0x1a71e6,_0x21070e['end']);this['_addSuggestionMarker'](_0x5e412e,_0x3a5a04,_0x36842,_0x3dd82b);}else{if(_0x21070e['containsPosition'](_0x41456d['start'])){const _0xbb0169=this['_model']['createPositionAt'](_0x41456d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3873a2,this['_model']['createRange'](_0x21070e['start'],_0xbb0169));}else{const _0x2a6f92=this['_model']['createPositionAt'](_0x41456d['end']['parent'],'after');this['_setSuggestionRange'](_0x3873a2,this['_model']['createRange'](_0x2a6f92,_0x21070e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5428b3){for(const {suggestion:_0x62863e,meta:_0x4cd801}of this['_findSuggestions'](_0x5428b3,'insertion')){if(!_0x4cd801['isOwn'])continue;const _0x3130e4=_0x62863e['getRanges']();for(const _0x51fecd of _0x3130e4)if(!_0x5428b3['getDifference'](_0x51fecd)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x30d076){const _0x288b3e=this['editor']['plugins']['get']('Users')['getUser'](_0x30d076);if(!_0x288b3e)throw new _0x153977('track-changes-user-not-found',this);return _0x288b3e;}['_getExternalAuthor'](_0x411124){const _0x2032cc=this['editor']['plugins']['get']('Users'),_0x2ecc07=_0x4e16b3('external:'+_0x411124),_0x27389e=_0x2032cc['getUser'](_0x2ecc07);return _0x27389e||_0x2032cc['addUser']({'id':_0x2ecc07,'name':_0x411124});}['_createSuggestion'](_0x32f873,_0xc5b6d2,_0x4f361c,_0x5b271b,_0x4d7203){const _0x1c34ce=this['_getAuthorFromId'](_0x5b271b),_0x12add8=this['_suggestionFactory']['buildSuggestion'](_0x32f873,_0xc5b6d2,_0x4f361c,_0x1c34ce,_0x4d7203,_0x46aea3=>{this['_updateSuggestionData'](_0x4f361c,{'attributes':_0x46aea3});const _0x13fe63=this['getSuggestion'](_0x4f361c);this['_joinWithAdjacentSuggestions'](new Set([_0x13fe63])),this['_refreshSuggestionsChain'](new Set([_0x13fe63]));});return this['listenTo'](_0x12add8,'accept',()=>{this['_updateSuggestionData'](_0x4f361c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x12add8,'discard',()=>{this['_updateSuggestionData'](_0x4f361c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4f361c,_0x12add8),this['_suggestionState']['set'](_0x12add8,'notReady'),_0x12add8;}['_splitMarkerName'](_0x9e9e52){const _0x5a8fa2=_0x9e9e52['split'](':');return{'group':_0x5a8fa2[0x0],'type':_0x5a8fa2[0x1],'subType':_0x5a8fa2['length']>=0x5?_0x5a8fa2[0x2]:null,'id':_0x5a8fa2['length']<0x5?_0x5a8fa2[0x2]:_0x5a8fa2[0x3],'authorId':_0x5a8fa2['length']<0x5?_0x5a8fa2[0x3]:_0x5a8fa2[0x4],'markerCount':0x6==_0x5a8fa2['length']?_0x5a8fa2[0x5]:null};}['_breakSuggestionMarker'](_0x590bee,_0x2e4878,_0x29a14e){const _0x19a1a5=_0x590bee['getFirstRange'](),_0x41cac7=_0x19a1a5['start'],_0x4e5852=_0x19a1a5['end'];this['_setSuggestionRange'](_0x590bee,this['_model']['createRange'](_0x41cac7,_0x2e4878));const _0x337837=_0x3143a6(),_0x17614c=_0x590bee['creator']['id'],_0x388e9d=_0x590bee['type']+(_0x590bee['subType']?':'+_0x590bee['subType']:'');this['_setSuggestionData']({'id':_0x337837,'type':_0x388e9d,'createdAt':new Date(),'authorId':_0x17614c,'originalSuggestionId':_0x590bee['id'],'attributes':_0x590bee['attributes'],'data':_0x590bee['data']});const _0x4671b6=this['_getAttributeKey'](_0x590bee);('formatBlock'==_0x590bee['type']||_0x4671b6&&this['_isBlockAttribute'](_0x4671b6))&&(_0x29a14e=this['_model']['createPositionBefore'](_0x29a14e['parent'])),this['_addSuggestionMarker'](_0x388e9d,_0x337837,_0x17614c,this['_model']['createRange'](_0x29a14e,_0x4e5852));}['_findSuggestions'](_0xcf0c1d,_0x193f5a=null){const _0x1f6d4a=[],_0x586143=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xcf0c1d)||(_0xcf0c1d=[_0xcf0c1d]);for(const _0x5d271c of this['getSuggestions']()){if(!_0x5d271c['isInContent'])continue;if(_0x193f5a&&_0x5d271c['type']!=_0x193f5a)continue;let _0x1bbdb5=!0x1;for(const _0x34d842 of _0x5d271c['getRanges']()){for(const _0x4bd8e2 of _0xcf0c1d){const _0x514a9c=_0x4bd8e2['start']['isEqual'](_0x34d842['end'])||_0x4bd8e2['end']['isEqual'](_0x34d842['start']);if(_0x514a9c||_0x4bd8e2['getIntersection'](_0x34d842)){const _0x2c44b4=_0x4bd8e2['containsRange'](_0x34d842)&&Ot(this['_model']['schema'],_0x34d842['start'],_0x4bd8e2),_0x4a0921=_0x34d842['containsRange'](_0x4bd8e2)&&Ot(this['_model']['schema'],_0x4bd8e2['start'],_0x34d842);_0x1f6d4a['push']({'suggestion':_0x5d271c,'meta':{'isOwn':_0x586143==_0x5d271c['author'],'isNextTo':_0x514a9c,'isInsideObject':_0x2c44b4,'containsRangeInObject':_0x4a0921}}),_0x1bbdb5=!0x0;break;}}if(_0x1bbdb5)break;}}return _0x1f6d4a;}['_addSuggestionMarker'](_0x5db4e6,_0x1dd245,_0x1f7f8c,_0xae9d46,_0x108e53){this['_model']['change'](_0xfa8a9d=>{let _0x371e8f='suggestion:'+_0x5db4e6+':'+_0x1dd245+':'+_0x1f7f8c;_0x108e53&&(_0x371e8f=_0x371e8f+':'+_0x108e53),_0xfa8a9d['addMarker'](_0x371e8f,{'range':_0xae9d46,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x15da94){const _0x23d2d3=_0x15da94['previous'],_0x193433=_0x15da94['next'];_0x15da94['previous']=null,_0x15da94['next']=null,null!=_0x23d2d3&&_0x23d2d3['next']==_0x15da94&&(_0x23d2d3['next']=_0x193433),null!=_0x193433&&_0x193433['previous']==_0x15da94&&(_0x193433['previous']=_0x23d2d3),'ready'==this['_suggestionState']['get'](_0x15da94)&&(this['_suggestionState']['set'](_0x15da94,'removed'),this['fire']('suggestionUnloaded',_0x15da94,_0x23d2d3,_0x193433));}['_setSuggestionData'](_0x48804a){const _0x73e274=_0x48804a['id'],_0x34a99c=this['addSuggestionData'](_0x48804a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x23bc9b=this['editor']['plugins']['get']('PendingActions'),_0x29158f=_0x34a99c['hasComments'],_0x92486=_0x34a99c['subType']?_0x34a99c['type']+':'+_0x34a99c['subType']:_0x34a99c['type'],_0xe38344=this['editor']['locale'],_0x5448a6=_0x23bc9b['add'](o(_0xe38344,'PENDING_ACTION_SUGGESTION')),_0x83ce68={'id':_0x73e274,'type':_0x92486,'hasComments':_0x29158f,'data':_0x48804a['data']||null,'originalSuggestionId':_0x48804a['originalSuggestionId']||null,'attributes':_0x34a99c['attributes']};this['_adapter']['addSuggestion'](_0x83ce68)['then'](_0x2fe325=>{_0x34a99c['_saved']=!0x0,_0x23bc9b['remove'](_0x5448a6),_0x2fe325&&_0x2fe325['createdAt']&&(this['_suggestions']['get'](_0x73e274)['createdAt']=_0x2fe325['createdAt']);})['catch'](_0x443a8d=>{throw _0x23aa7b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x34a99c['discard']();}),_0x34a99c['stopListening'](),this['_suggestions']['delete'](_0x34a99c['id']),this['_suggestionState']['delete'](_0x34a99c),_0x443a8d;});}return _0x34a99c;}['_isBlockAttribute'](_0x289436){return this['_blockAttributeKeys']['has'](_0x289436);}['_updateSuggestionData'](_0x1f8bd0,_0x1111b0){const _0x3406b=this['editor']['plugins']['get']('PendingActions'),_0x4d30a8=this['getSuggestion'](_0x1f8bd0);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4d30a8['_saved']){const _0x5e1bc9=_0x3406b['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1f8bd0,_0x1111b0)['then'](()=>{_0x3406b['remove'](_0x5e1bc9);});}else _0x4d30a8['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1f8bd0,_0x1111b0);});}}['_getSuggestionData'](_0x5a27e1){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x153977('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5a27e1);}['_handleNewSuggestionMarker'](_0x5bbf78){const {id:_0x3ce10a,type:_0x2348ca,subType:_0x8868ec,authorId:_0x57522e}=this['_splitMarkerName'](_0x5bbf78),_0x1bf779=this['_suggestions']['get'](_0x3ce10a)||this['_createSuggestion'](_0x2348ca,_0x8868ec,_0x3ce10a,_0x57522e,{});switch(this['_checkSuggestionCorrectness'](_0x1bf779,_0x2348ca,_0x8868ec,_0x57522e),this['_suggestionState']['get'](_0x1bf779)){case'notReady':this['_getSuggestionData'](_0x3ce10a)['then'](_0x106e79=>{let _0x1c312b=Promise['resolve']();_0x106e79['hasComments']&&(_0x1c312b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3ce10a})),_0x1c312b['then'](()=>{this['addSuggestionData'](_0x106e79)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1bf779,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3ce10a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1bf779,'ready'),this['fire']('suggestionLoaded',_0x1bf779);break;case'ready':this['fire']('suggestionChanged',_0x1bf779);}return _0x1bf779['addMarkerName'](_0x5bbf78),_0x1bf779;}['_refreshSuggestionsChain'](_0x302019){const _0x207da5=Array['from'](_0x302019),_0x567971=_0x207da5['filter'](_0x521e77=>'attribute'==_0x521e77['type']);this['_refreshAttributeSuggestionsChain'](_0x567971);const _0x3bd0c1=_0x207da5['filter'](_0x38e8f3=>!_0x38e8f3['isMultiRange']&&'attribute'!=_0x38e8f3['type']),_0x4838d6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x717c0f=>!_0x717c0f['isMultiRange']&&'attribute'!=_0x717c0f['type']),_0x41024f=_0x4838d6['filter'](_0x2d3c99=>!_0x302019['has'](_0x2d3c99)),_0x1b2675=new Map(_0x4838d6['map'](_0x3b24de=>[_0x3b24de,this['_suggestionFactory']['getSuggestionCallback'](_0x3b24de['type'],_0x3b24de['subType'],'chain')])),_0x310a53=new Map(_0x4838d6['map'](_0x17ed07=>[_0x17ed07,_0x17ed07['getFirstRange']()])),_0xb81333=new Set(),_0x2fb3da=new Set();for(let _0x3268e8=0x0;_0x3268e8<_0x3bd0c1['length'];_0x3268e8++)_0x3c7352(_0x3bd0c1[_0x3268e8],_0x3bd0c1,_0x3268e8+0x1);for(let _0x1bc3d1=0x0;_0x1bc3d1<_0x3bd0c1['length'];_0x1bc3d1++)_0x3c7352(_0x3bd0c1[_0x1bc3d1],_0x41024f,0x0);const _0x372360=new Set();for(let _0x1a722e=0x0;_0x1a722e<_0x3bd0c1['length'];_0x1a722e++){const _0x4e35a8=_0x3bd0c1[_0x1a722e];!_0x2fb3da['has'](_0x4e35a8)&&_0x4e35a8['previous']&&(_0x372360['add'](_0x4e35a8['previous']),_0x4e35a8['previous']['next']===_0x4e35a8&&(_0x4e35a8['previous']['next']=null),_0x4e35a8['previous']=null),!_0xb81333['has'](_0x4e35a8)&&_0x4e35a8['next']&&(_0x372360['add'](_0x4e35a8['next']),_0x4e35a8['next']['previous']===_0x4e35a8&&(_0x4e35a8['next']['previous']=null),_0x4e35a8['next']=null);}function _0x3c7352(_0x1839d5,_0x5cd2b4,_0x22962d){for(let _0x437fbb=_0x22962d;_0x437fbb<_0x5cd2b4['length'];_0x437fbb++){const _0x4c67d0=_0x39dd98(_0x1839d5,_0x5cd2b4[_0x437fbb]);_0x4c67d0&&(_0x4c67d0[0x0]['next']=_0x4c67d0[0x1],_0x4c67d0[0x1]['previous']=_0x4c67d0[0x0],_0xb81333['add'](_0x4c67d0[0x0]),_0x2fb3da['add'](_0x4c67d0[0x1]));}}function _0x39dd98(_0x39c376,_0xf4f478){if(_0x39c376['author']['id']!==_0xf4f478['author']['id'])return null;const _0x3549ce=_0x1b2675['get'](_0x39c376)(_0x39c376,_0xf4f478,_0x310a53['get'](_0x39c376),_0x310a53['get'](_0xf4f478));if(!_0x3549ce)return null;return _0x1b2675['get'](_0xf4f478)(_0x39c376,_0xf4f478,_0x310a53['get'](_0x39c376),_0x310a53['get'](_0xf4f478))?_0x3549ce[0x1]['commentThread']&&_0x3549ce[0x1]['commentThread']['length']?null:_0x3549ce:null;}_0x372360['size']&&this['_refreshSuggestionsChain'](_0x372360);}['_refreshAttributeSuggestionsChain'](_0x14d061){if(0x0==_0x14d061['length'])return;const _0x4f0d9e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4dc79d=>'attribute'==_0x4dc79d['type']&&_0x4dc79d['_isDataLoaded']),_0x4b94e8=[],_0x41c22e=new Map();for(const _0x3c61d3 of _0x4f0d9e){const _0x198163=_0x4e16b3(_0x3c61d3['attributes']);_0x41c22e['has'](_0x198163)||(_0x41c22e['set'](_0x198163,_0x4b94e8['length']),_0x4b94e8['push']([]));const _0x521513=_0x41c22e['get'](_0x198163);_0x4b94e8[_0x521513]['push'](_0x3c61d3);}!(function(){_0x4b94e8['sort']((_0x51fdd4,_0x2038a6)=>{const _0x155614=_0x51fdd4[0x0]['createdAt'],_0x257f8a=_0x2038a6[0x0]['createdAt'];return _0x155614==_0x257f8a?_0x51fdd4[0x0]['attributes']['groupId']<_0x2038a6[0x0]['attributes']['groupId']?-0x1:0x1:_0x155614<_0x257f8a?-0x1:0x1;});for(const _0xa66048 of _0x4b94e8)_0xa66048['sort']((_0x50605c,_0x53fb9e)=>_0x50605c['id']<_0x53fb9e['id']?-0x1:0x1);}());for(let _0x5d6005=0x0;_0x5d6005<_0x4b94e8['length'];_0x5d6005++){if(0x0==_0x4b94e8[_0x5d6005]['length'])continue;const _0xef8dce=[];for(let _0x505395=_0x5d6005+0x1;_0x505395<_0x4b94e8['length'];_0x505395++)0x0!=_0x4b94e8[_0x505395]['length']&&_0x454f52(_0x4b94e8[_0x5d6005],_0x4b94e8[_0x505395])&&_0xef8dce['push'](_0x505395);for(const _0x2d85c8 of _0xef8dce)_0x4b94e8[_0x5d6005]=_0x4b94e8[_0x5d6005]['concat'](_0x4b94e8[_0x2d85c8]),_0x4b94e8[_0x2d85c8]=[];}for(const _0x327c6c of _0x4b94e8)for(let _0x3c04fc=0x0;_0x3c04fc<_0x327c6c['length'];_0x3c04fc++){const _0x8c687e=_0x327c6c[_0x3c04fc+0x1]||null;_0x327c6c[_0x3c04fc]['next']!==_0x8c687e&&(_0x327c6c[_0x3c04fc]['next']=_0x8c687e);}for(const _0x195380 of _0x4b94e8)for(let _0x478c90=0x0;_0x478c90<_0x195380['length'];_0x478c90++){const _0x4ab199=_0x195380[_0x478c90-0x1]||null;_0x195380[_0x478c90]['previous']!==_0x4ab199&&(_0x195380[_0x478c90]['previous']=_0x4ab199);}function _0x454f52(_0x502fa3,_0x366b31){if(_0x502fa3[0x0]['attributes']['groupId']!==_0x366b31[0x0]['attributes']['groupId']&&_0x502fa3[0x0]['author']!==_0x366b31[0x0]['author'])return!0x1;if(!function(_0x4dd9cc,_0x1130c6){if(!_0x4dd9cc['hasComments']&&!_0x1130c6['hasComments'])return!0x0;if(_0x4dd9cc['hasComments']&&_0x1130c6['hasComments'])return!0x1;if(_0x4dd9cc['hasComments']&&_0x1130c6['createdAt']<_0x4dd9cc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1130c6['hasComments']&&_0x4dd9cc['createdAt']<_0x1130c6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x502fa3[0x0],_0x366b31[0x0]))return!0x1;const _0xbf791d=Tt(_0x502fa3[0x0]['attributes'],'groupId'),_0x1b4ab8=Tt(_0x366b31[0x0]['attributes'],'groupId');if(!_0x2dc408(_0xbf791d,_0x1b4ab8))return!0x1;return!!_0x502fa3['every'](_0x36a52c=>_0x366b31['some'](_0x401751=>_0x36a52c['getFirstRange']()['isEqual'](_0x401751['getFirstRange']())))&&_0x366b31['every'](_0xf52044=>_0x502fa3['some'](_0x26d3be=>_0xf52044['getFirstRange']()['isEqual'](_0x26d3be['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4e3bd8){const _0x3a8110=Array['from'](_0x4e3bd8),_0x21d4cb=this['getSuggestions']({'skipNotAttached':!0x0}),_0x33b127=_0x21d4cb['filter'](_0x4fb446=>!_0x4e3bd8['has'](_0x4fb446)),_0x1e4ed2=new Map(_0x3a8110['map'](_0x44e41a=>[_0x44e41a,this['_suggestionFactory']['getSuggestionCallback'](_0x44e41a['type'],_0x44e41a['subType'],'join')])),_0x1b464a=new Map(_0x21d4cb['map'](_0x52ff4f=>[_0x52ff4f,_0x52ff4f['getRanges']()]));for(let _0x3836ad=0x0;_0x3836ad<_0x3a8110['length'];_0x3836ad++){if(_0x58a50c(this,_0x3a8110[_0x3836ad],_0x3a8110,_0x3836ad+0x1))return!0x0;}for(let _0x4628ab=0x0;_0x4628ab<_0x3a8110['length'];_0x4628ab++){if(_0x58a50c(this,_0x3a8110[_0x4628ab],_0x33b127,0x0))return!0x0;}return!0x1;function _0x58a50c(_0x46dd68,_0x12cc31,_0x14a5d5,_0x284f59){for(let _0x1cbdf4=_0x284f59;_0x1cbdf4<_0x14a5d5['length'];_0x1cbdf4++){const _0x363dd7=_0x14a5d5[_0x1cbdf4];if(_0x363dd7['type']!==_0x12cc31['type']||_0x363dd7['author']['id']!==_0x12cc31['author']['id']||_0x363dd7['subType']!==_0x12cc31['subType'])continue;if(!Jt(_0x12cc31,_0x363dd7))continue;if('attribute'==_0x12cc31['type']&&_0x12cc31['data']['oldValue']!=_0x363dd7['data']['oldValue'])continue;if('attribute'==_0x12cc31['type']&&_0x46dd68['_isBlockAttribute'](_0x12cc31['data']['key']))continue;if('formatBlock'==_0x12cc31['type']){const _0x599e99=_0x46dd68['editor']['model'],_0x4d6037=_0x12cc31['getContainedElement']();if(_0x4d6037&&(_0x599e99['schema']['isObject'](_0x4d6037)||_0x599e99['schema']['isLimit'](_0x4d6037)))continue;}const _0x136000=_0x1e4ed2['get'](_0x12cc31),_0x57fb75=_0x1b464a['get'](_0x12cc31),_0x97e2e9=_0x1b464a['get'](_0x363dd7),_0x553a07=_0x12cc31['commentThread']&&_0x12cc31['commentThread']['length'],_0x41e445=_0x363dd7['commentThread']&&_0x363dd7['commentThread']['length'];if(!_0x553a07&&_0x136000(_0x97e2e9,_0x57fb75))return _0x46dd68['_joinSuggestions'](_0x363dd7,_0x12cc31),_0x1b464a['delete'](_0x12cc31),!0x0;if(!_0x41e445&&_0x136000(_0x57fb75,_0x97e2e9))return _0x46dd68['_joinSuggestions'](_0x12cc31,_0x363dd7),_0x1b464a['delete'](_0x363dd7),!0x0;}return!0x1;}}['_joinSuggestions'](_0xb77055,_0x2d1333){if(_0xb77055['isMultiRange']){for(const _0x9ef9c7 of _0x2d1333['getRanges']())_0xb77055['addRange'](_0x9ef9c7);}else{const _0x36cb96=_0x2d1333['getFirstRange']()['end'];this['_setSuggestionRange'](_0xb77055,this['_model']['createRange'](_0xb77055['getFirstRange']()['start'],_0x36cb96));}_0x2d1333['removeMarkers']();}['_getMarkerAnnouncementText'](_0x41f803,_0x58f5e0,_0x529efd){const _0x1cc9f8=_0x41f803['startsWith']('format')||_0x41f803['startsWith']('attribute')?'FORMATTING':_0x41f803['toUpperCase']();return o(this['editor']['locale'],_0x58f5e0+'_'+_0x1cc9f8+'_SUGGESTION_ANNOUNCEMENT',_0x529efd);}['_initAriaMarkerChangeAnnouncements'](){const _0x2312b7=this['editor'];if(!_0x2312b7['ui'])return;const {ariaLiveAnnouncer:_0xc91085}=_0x2312b7['ui'];_0x4ef66f(this['_model'],({left:_0x3ae582,entered:_0x17ef5a})=>{for(const _0x54b294 of _0x3ae582){const {group:_0xabac31,type:_0x55e4e0}=this['_splitMarkerName'](_0x54b294['name']);if('suggestion'===_0xabac31){_0xc91085['announce'](this['_getMarkerAnnouncementText'](_0x55e4e0,'LEAVE'));break;}}for(const _0x5121c5 of _0x17ef5a){const {group:_0x3eda79,type:_0x2ae978}=this['_splitMarkerName'](_0x5121c5['name']);if('suggestion'===_0x3eda79){_0xc91085['announce'](this['_getMarkerAnnouncementText'](_0x2ae978,'ENTER',_0x3e0db4(_0x2141d8)));break;}}});}['_processAttributeChanges'](_0x3b0d0d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2f0d37=this['editor'],_0x2d117e=_0x2f0d37['model']['document']['differ']['getChanges']();if(0x0==_0x2d117e['length'])return!0x1;const _0x13f171=[],_0x51268a=_0x2d117e['filter'](_0x2878db=>'attribute'==_0x2878db['type']),_0x32f69c=_0x2d117e['filter'](_0x50915c=>'insert'==_0x50915c['type']&&'$text'!=_0x50915c['name']),_0x194883=_0x2d117e['filter'](_0x2c61c4=>'remove'==_0x2c61c4['type']&&'$text'!=_0x2c61c4['name']);for(const _0x1eee62 of _0x51268a)_0x13f171['push']({'key':_0x1eee62['attributeKey'],'newValue':_0x1eee62['attributeNewValue'],'oldValue':_0x1eee62['attributeOldValue'],'range':Pt(_0x1eee62['range'],_0x2f0d37['model'])});for(const _0x45be22 of _0x32f69c){const _0x2c52cf=_0x194883['find'](_0x5570c7=>_0x5570c7['position']['isEqual'](_0x45be22['position']));_0x2c52cf&&_0x13f171['push']({'key':m,'newValue':_0x45be22['name'],'oldValue':_0x2c52cf['name'],'range':_0x2f0d37['model']['createRangeOn'](_0x45be22['position']['nodeAfter'])});}return 0x0!=_0x13f171['length']&&this['_reduceExistingSuggestions'](_0x3b0d0d,_0x13f171);}['_processAttributeSuggestions'](_0x259f17){let _0x5bd15e=!0x1;const _0x29a596=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2d6bb3=>_0x2d6bb3['data']['newRange']&&_0x2d6bb3['name']['startsWith']('suggestion:attribute:'));for(const _0x4a3516 of _0x29a596){const {subType:_0x5c6740,id:_0x17746f}=this['_splitMarkerName'](_0x4a3516['name']),_0x4c2fff=_0x5c6740['split']('|')[0x0];for(const _0x49f586 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x49f586['id']!=_0x17746f&&'attribute'==_0x49f586['type']&&_0x49f586['data']&&_0x49f586['data']['key']==_0x4c2fff&&_0x49f586['getFirstRange']()['isIntersecting'](_0x4a3516['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x49f586,_0x4a3516['data']['newRange'],_0x259f17),_0x5bd15e=!0x0);}return _0x5bd15e;}['_recordAttributeChanges'](_0x180ac5){this['_recordAttributeSuggestions']=!0x0,_0x180ac5();}['_isRegisteredAttribute'](_0x24f8b6){const _0x52cfd2=this['_isBlockAttribute'](_0x24f8b6),_0x296cf0=this['_inlineAttributeKeys']['has'](_0x24f8b6);return _0x52cfd2||_0x296cf0;}['_reduceExistingSuggestions'](_0x493501,_0x2049ba){if(0x0==_0x2049ba['length'])return!0x1;let _0x587b13=!0x1;for(const _0x59776f of _0x2049ba){const _0x2646ab=this['_findSuggestions'](_0x59776f['range'],'attribute')['filter'](_0x2b1322=>!_0x2b1322['meta']['isNextTo'])['map'](_0x15cfbd=>_0x15cfbd['suggestion']),_0x189ff8=_0x4e16b3({'newValue':_0x59776f['newValue']});_0x2646ab['filter'](_0x19cc41=>{const [_0x5e5992,_0x4a421f]=_0x19cc41['subType']['split']('|');return _0x5e5992==_0x59776f['key']&&_0x4a421f!=_0x189ff8;})['forEach'](_0x5e7c22=>{this['_reduceSuggestionAttributeRange'](_0x5e7c22,_0x59776f['range'],_0x493501),_0x587b13=!0x0;});}return _0x587b13;}['_reduceSuggestionAttributeRange'](_0x358d94,_0x2799af,_0x30041c){const _0x409453=_0x358d94['getFirstRange']()['getDifference'](_0x2799af);0x0!==_0x409453['length']?0x1!==_0x409453['length']?this['_breakSuggestionMarker'](_0x358d94,_0x2799af['start'],_0x2799af['end']):this['_setSuggestionRange'](_0x358d94,_0x409453[0x0]):_0x30041c['removeMarker'](_0x358d94['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x14c373){this['_editor']=_0x14c373,this['_model']=_0x14c373['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x441c3f,_0x207940,_0xe17d20,_0xf4918e,_0x528fbf,_0x23317b){return new u(this['_model'],{'type':_0x441c3f,'subType':_0x207940,'id':_0xe17d20,'author':_0xf4918e,'creator':_0xf4918e,'attributes':_0x528fbf,'onAttributesChange':_0x23317b,'onAccept':(..._0x5404fb)=>this['getSuggestionCallback'](_0x441c3f,_0x207940,'accept')(..._0x5404fb),'onDiscard':(..._0x6378f8)=>this['getSuggestionCallback'](_0x441c3f,_0x207940,'discard')(..._0x6378f8)});}['registerCustomCallback'](_0x19d88d,_0x20f118,_0x3aa4de,_0xbf638d){const _0x3a4071=_0x19d88d+':'+_0x20f118+':'+_0x3aa4de;this['_customCallbacks']['set'](_0x3a4071,_0xbf638d);}['getSuggestionCallback'](_0x41b68d,_0x59bb7b,_0x6c03f5){const _0x261ed9=_0x41b68d+':'+_0x59bb7b+':'+_0x6c03f5;return this['_customCallbacks']['get'](_0x261ed9)||this['_defaultCallbacks']['get'](_0x41b68d+':'+_0x6c03f5);}['_registerDefaultCallbacks'](){const _0x496b17=()=>!0x1,_0x20c745=_0x3c767b=>{_0x3c767b['sort']((_0x2a918d,_0x73e818)=>_0x2a918d['start']['isBefore'](_0x73e818['start'])?0x1:-0x1),this['_model']['change'](_0x5d6105=>{for(const _0x154e57 of _0x3c767b){let _0x473dbc;_0x473dbc=_0x154e57['end']['isAtEnd']&&_0x154e57['end']['parent']==_0x154e57['start']['nodeAfter']?_0x5d6105['createSelection'](_0x154e57['start']['nodeAfter'],'on'):_0x5d6105['createSelection'](_0x154e57),this['_model']['deleteContent'](_0x473dbc,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x599e37=(_0x108d90,_0x507cda)=>{_0x507cda&&this['_model']['change'](_0x55f61f=>{const {commandName:_0x3e918e,commandParams:_0x390e3b=[]}=_0x507cda,_0x306a95=_0x108d90['map'](_0x4cb3ee=>(Vt(_0x4cb3ee)&&(_0x4cb3ee=this['_model']['createRange'](_0x4cb3ee['end'])),_0x4cb3ee))['filter'](_0x27d1e8=>'$graveyard'!==_0x27d1e8['root']['rootName']);if(_0x306a95['length']<0x1)return;const _0x20c1aa=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x437a39=>_0x4523d0['fromRange'](_0x437a39));_0x55f61f['setSelection'](_0x306a95);for(const _0x2da1fc of this['_editor']['commands']['commands']())_0x2da1fc['refresh']();_0x390e3b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3e918e,..._0x390e3b);const _0x488914=_0x20c1aa['filter'](_0x4588a2=>'$graveyard'!=_0x4588a2['root']['rootName']);_0x488914['length']>0x0&&_0x55f61f['setSelection'](_0x488914);for(const _0x4bc7a3 of _0x20c1aa)_0x4bc7a3['detach']();});},_0x2e6e57=(_0xf82c39,_0x366a9d)=>0x1==_0xf82c39['length']&&0x1==_0x366a9d['length']&&_0xf82c39[0x0]['end']['isEqual'](_0x366a9d[0x0]['start']),_0x352a50=(_0x1f1893,_0x220985,_0x11433b,_0xfb7b0d)=>Ht(_0x1f1893,_0x220985,_0x11433b,_0xfb7b0d,this['_model'])?[_0x1f1893,_0x220985]:Ht(_0x220985,_0x1f1893,_0xfb7b0d,_0x11433b,this['_model'])?[_0x220985,_0x1f1893]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x496b17),this['_defaultCallbacks']['set']('insertion:discard',_0x20c745),this['_defaultCallbacks']['set']('insertion:join',_0x2e6e57),this['_defaultCallbacks']['set']('insertion:chain',_0x352a50),this['_defaultCallbacks']['set']('deletion:accept',_0x20c745),this['_defaultCallbacks']['set']('deletion:discard',_0x496b17),this['_defaultCallbacks']['set']('deletion:join',_0x2e6e57),this['_defaultCallbacks']['set']('deletion:chain',_0x352a50),this['_defaultCallbacks']['set']('formatInline:accept',_0x599e37),this['_defaultCallbacks']['set']('formatInline:discard',_0x496b17),this['_defaultCallbacks']['set']('formatInline:join',_0x2e6e57),this['_defaultCallbacks']['set']('formatInline:chain',_0x496b17),this['_defaultCallbacks']['set']('formatBlock:accept',_0x599e37),this['_defaultCallbacks']['set']('formatBlock:discard',_0x496b17),this['_defaultCallbacks']['set']('formatBlock:join',_0x2e6e57),this['_defaultCallbacks']['set']('formatBlock:chain',_0x496b17),this['_defaultCallbacks']['set']('attribute:accept',_0x496b17),this['_defaultCallbacks']['set']('attribute:discard',(_0x4a8d30,_0x845606)=>{if(!_0x845606)return;const _0x4b713d=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xe6d41d=>{if(_0x845606['key']==m)for(const _0x1ee00e of _0x4a8d30){const _0x4f910a=_0x1ee00e['start']['nodeAfter'],_0x8ebeda=_0x845606['oldValue'];_0xe6d41d['rename'](_0x4f910a,_0x8ebeda);}else{if(_0x4b713d['_isBlockAttribute'](_0x845606['key'])){for(const _0x5ba054 of _0x4a8d30)void 0x0!==_0x845606['oldValue']?_0xe6d41d['setAttribute'](_0x845606['key'],_0x845606['oldValue'],_0x5ba054['start']['nodeAfter']):_0xe6d41d['removeAttribute'](_0x845606['key'],_0x5ba054['start']['nodeAfter']);}else{for(const _0x113e1c of _0x4a8d30)_0x845606['oldValue']?_0xe6d41d['setAttribute'](_0x845606['key'],_0x845606['oldValue'],_0x113e1c):_0xe6d41d['removeAttribute'](_0x845606['key'],_0x113e1c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2e6e57);}}function Ot(_0xf57204,_0x438c13,_0x534f12){for(const _0x1a33b7 of _0x438c13['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1a33b7['root']==_0x1a33b7)return!0x1;if(!_0x534f12['containsItem'](_0x1a33b7))return!0x1;if(_0xf57204['isObject'](_0x1a33b7)||_0xf57204['isLimit'](_0x1a33b7))return!0x0;}return!0x1;}function Vt(_0x569558){return _0x569558['end']['parent']==_0x569558['start']['nodeAfter']&&_0x569558['end']['isAtStart'];}function Ut(_0x23c22c,_0x43c969,_0x40d65a,_0x339cbc){const _0x3aeba6=_0x585d85=>!_0x585d85['item']['is']('$textProxy')&&!_0x339cbc['isObject'](_0x585d85['item']),_0x3e0a5b=_0x23c22c['start']['getLastMatchingPosition'](_0x3aeba6),_0x233064=_0x23c22c['end']['getLastMatchingPosition'](_0x3aeba6,{'direction':'backward'});return(!_0x23c22c['start']['isEqual'](_0x3e0a5b)||!_0x23c22c['end']['isEqual'](_0x233064))&&(_0x3e0a5b['isBefore'](_0x233064)?_0x40d65a['updateMarker'](_0x43c969,{'range':_0x40d65a['createRange'](_0x3e0a5b,_0x233064)}):_0x40d65a['removeMarker'](_0x43c969),!0x0);}function Gt(_0x1450d4){return _0x4e16b3(_0x1450d4);}function Ft(_0x6b84f9){const _0x57953b=_0x6b84f9['start']['nodeAfter'];return _0x57953b&&_0x57953b['is']('element');}function Pt(_0x57ee0f,_0x4cbb66){return null==_0x57ee0f['end']['nodeBefore']&&_0x57ee0f['end']['parent']==_0x57ee0f['start']['nodeAfter']?Lt(_0x57ee0f['start']['nodeAfter'],_0x4cbb66):_0x57ee0f;}function Lt(_0x229e22,_0x3b36e0){const _0xebfa35=_0x3b36e0['schema']['isObject'](_0x229e22)||_0x3b36e0['schema']['isSelectable'](_0x229e22);return _0x3b36e0['createRange'](_0x3b36e0['createPositionAt'](_0x229e22,'before'),_0xebfa35?_0x3b36e0['createPositionAfter'](_0x229e22):_0x3b36e0['createPositionAt'](_0x229e22,'end'));}function Ht(_0x257eeb,_0x3f3db5,_0x12963f,_0x3e390e,_0x106298){if(_0x257eeb['next'])return!0x1;if(!Jt(_0x257eeb,_0x3f3db5))return!0x1;if(_0x12963f['end']['isEqual'](_0x3e390e['start']))return!0x0;if(_0x257eeb['type']!=_0x3f3db5['type'])return!0x1;if(!_0x12963f['end']['isTouching'](_0x3e390e['start']))return!0x1;const _0x57985d=_0x106298['createRange'](_0x12963f['end'],_0x3e390e['start'])['getWalker']();for(const _0x59e3a8 of _0x57985d)if(['elementStart','elementEnd']['includes'](_0x59e3a8['type'])&&_0x106298['schema']['isLimit'](_0x59e3a8['item']))return!0x1;return!0x0;}function Jt(_0x5ed292,_0x2b105d){if(!_0x5ed292['_isDataLoaded']||!_0x2b105d['_isDataLoaded'])return!0x1;const _0xf0e01f=new Set(Object['keys'](_0x5ed292['attributes'])),_0x2013fb=new Set(Object['keys'](_0x2b105d['attributes']));if(_0xf0e01f['delete']('groupId'),_0x2013fb['delete']('groupId'),0x0==_0xf0e01f['size']&&0x0==_0x2013fb['size'])return!0x0;if(_0xf0e01f['size']!=_0x2013fb['size'])return!0x1;const _0x1bf79c={..._0x5ed292['attributes']},_0x9ffd48={..._0x2b105d['attributes']};return delete _0x1bf79c['groupId'],delete _0x9ffd48['groupId'],JSON['stringify'](_0x1bf79c)==JSON['stringify'](_0x9ffd48);}function qt(_0x3dff75,_0x2aa169){const _0x3d5166=zt(_0x3dff75['attributes']),_0x1ae3a6=zt(_0x2aa169);if(!_0x3dff75['_isDataLoaded'])return!0x1;for(const _0x51fc5c of Object['keys'](_0x1ae3a6))if(!_0x2dc408(_0x3d5166[_0x51fc5c],_0x1ae3a6[_0x51fc5c]))return!0x1;return!0x0;}function zt(_0x4bed71){const _0x231e09=Object['assign']({},_0x4bed71);return delete _0x231e09['skipNestingCheck'],delete _0x231e09['tablePasteChainId'],_0x231e09;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x4c5c55(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x460689,_0x3c9b61,_0x960524,_0x4adc58){super(),this['model']=_0x3c9b61,this['view']=_0x960524,this['commentThreadController']=_0x4adc58,this['_editor']=_0x460689,this['_acceptCommand']=_0x460689['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x460689['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x12685c,_0x1e76d4)=>_0x12685c||_0x1e76d4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xd49557=>_0xd49557&&this['_editor']['model']['canEditAt'](_0x3c9b61['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x49c92c=>_0x49c92c&&this['_editor']['model']['canEditAt'](_0x3c9b61['getRanges']())),this['_pendingAction']=null,_0x960524['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x960524,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x960524,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x960524,'change:isDirty',()=>{_0x960524['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 _0x14ec37=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x14ec37);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x22cb69{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x494e19,_0x5a9277,_0x57b795,_0x2796ad){super(_0x494e19),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x411d30(_0x494e19,o(_0x494e19,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5a9277['authoredAt']),this['bind']('authoredAt')['to'](_0x5a9277),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',_0x5a9277,'authoredAt',this,'descriptionParts',(_0xfdf9e2,_0x5f73c5,_0x171dfc)=>{const _0x18a9af=_0x171dfc['map'](_0x2be78e=>ls(_0x2be78e['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xfdf9e2-0x1,_0x5a9277['author']['name'],_0x5f73c5?_0x2796ad['formatDateTime'](_0x5f73c5):'',new DOMParser()['parseFromString'](_0x18a9af,'text/html')['body']['textContent']]);}),this['focusables']=new _0x583465(),this['focusTracker']=new _0x304013(),this['keystrokes']=new _0x149256(),this['focusCycler']=new _0x3096cd({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5cd208=>_0x5cd208['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5a9277,this['_localUser']=_0x57b795,this['_config']=_0x2796ad,_0x2796ad['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4bca5c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x10f004}=this['_config'];this['commentsListView']=new _0x10f004(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',_0x37912a=>_0x37912a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4f1a6a,_0x96923)=>_0x4f1a6a||!!_0x96923);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x44ea0d}=this['_config'],_0x2f33e1=new _0x44ea0d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x55aa35=_0x2f33e1['commentInputView'];return _0x2f33e1['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x55aa35,'value',(_0x21e216,_0x448c04,_0x2ddf36)=>!!_0x2ddf36||_0x21e216&&!_0x448c04),_0x55aa35['on']('submit',(_0x4f4fa4,_0x54a996)=>{this['fire']('addComment',_0x54a996),_0x55aa35['editor']['setData']('');}),_0x55aa35['on']('cancel',()=>this['focus']()),_0x55aa35['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2f33e1;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1163b2,_0x150d3,_0x5320ba,_0xd62299){super(_0x1163b2,_0x150d3,_0x5320ba,_0xd62299),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x26d21d=>_0x26d21d&&_0x26d21d[0x0]?_0x26d21d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2fa9ca,_0x30885d)=>{let _0x227375='';for(const _0x26f25d of _0x2fa9ca)_0x227375+='<p>'+ls(_0x26f25d['content'],_0x26f25d['color'])+'</p>';return _0x30885d?_0x227375:_0x12643e(_0x227375,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xd62299['SuggestionView'](_0x1163b2,_0x150d3,{'formatDateTime':_0xd62299['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 _0x139932=this['bindTemplate'],_0x4337c2=[this['suggestionView']];return this['commentsListView']&&_0x4337c2['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4337c2['push'](this['commentThreadInputView']),_0x4337c2['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x139932['if']('isActive','ck-suggestion-wrapper--active'),_0x139932['to']('type',_0x317bf8=>'ck-suggestion-'+_0x317bf8),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':_0x139932['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4337c2};}['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 _0x22cb69{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x6339c0,_0x36587e,_0x1f0e9a){super(_0x6339c0),this['_model']=_0x36587e,this['_config']=_0x1f0e9a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x36587e),this['acceptButton']=this['_createButton'](o(_0x6339c0,'Accept\x20suggestion'),_0x468f77['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x6339c0,'Discard\x20suggestion'),_0x468f77['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x543256(_0x6339c0,_0x36587e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x583465([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x304013(),this['keystrokes']=new _0x149256(),this['focusCycler']=new _0x3096cd({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x15fae2=>_0x15fae2['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x32de1f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x32de1f['innerHTML']=this['description'],this['on']('change:description',(_0x2c1d5d,_0x5728c7,_0x15c4ca)=>{_0x32de1f['innerHTML']=_0x15c4ca;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x17e55a=this['bindTemplate'],_0x24f22d=[{'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':_0x17e55a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x17e55a['to']('authoredAt',_0x26d118=>this['_config']['formatDateTime'](_0x26d118))}]}]},{'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']&&_0x24f22d['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':_0x24f22d}]};}['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'](_0x328b2d,_0xe1f69d,_0x5a53b1,_0x1d638b,_0x23e6d4){const _0x180bf2=new _0x536629(this['locale']);return _0x180bf2['set']({'label':_0x328b2d,'icon':_0xe1f69d,'tooltip':!0x0,'tooltipPosition':_0x23e6d4}),_0x180bf2['extendTemplate']({'attributes':{'class':_0x5a53b1}}),_0x180bf2['on']('execute',()=>{this['fire'](_0x1d638b,this['_model']['id']);}),_0x180bf2;}['_setupKeyboardNavigation'](){const _0x1715b2=this['element'];this['keystrokes']['listenTo'](_0x1715b2);for(const _0x587278 of this['focusables'])this['focusTracker']['add'](_0x587278['element']),this['keystrokes']['listenTo'](_0x587278['element']);this['keystrokes']['set']('enter',(_0x52074a,_0x508808)=>{_0x1715b2===_0x52074a['target']&&(this['focusCycler']['focusFirst'](),_0x508808());}),this['keystrokes']['set']('esc',(_0x5a2f22,_0x210a4d)=>{_0x1715b2!==_0x5a2f22['target']&&(this['focus'](),_0x210a4d());});}}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 _0x8c8d34{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2c0b1d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x23568d){super(_0x23568d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2b6d8a=this['editor']['config'];_0x2b6d8a['define']('trackChanges.SuggestionThreadView',re),_0x2b6d8a['define']('trackChanges.SuggestionView',ce),_0x2b6d8a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2b6d8a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2e7a11,_0x352c00){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x209ae9,_0x42a65e]of this['_handleControllerBuffer']){const _0x58c947=this['_suggestionToController']['has'](_0x209ae9);_0x58c947||_0x42a65e?_0x58c947&&_0x42a65e&&this['_destroyController'](_0x209ae9):this['_initializeController'](_0x209ae9);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2e7a11,_0x352c00);}['init'](){const _0x44dc08=this['editor'],_0x3f46f2=_0x44dc08['plugins']['get']('TrackChangesEditing'),_0x1152d7=_0x44dc08['plugins']['get']('Annotations'),_0x4b2c70=_0x44dc08['plugins']['get']('EditorAnnotations'),_0x251966=_0x44dc08['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4b2c70['addSourceCollector'](()=>{const _0xaf6d1=[];for(const [_0x3843c0,_0x4881bd]of Array['from'](this['_suggestionToController'])){const _0x3e8de9=_0x3843c0['getAllAdjacentSuggestions'](),_0x1a7f73=[];for(const _0x14583e of _0x3e8de9){if(!_0x14583e['isInContent'])continue;if(_0x14583e['isMultiRange']){_0x1a7f73['push'](..._0x14583e['getRanges']());continue;}const _0x535d45=_0x14583e['getFirstRange']();if(_0x1a7f73['length']>0x0){const _0x2d3929=_0x1a7f73[0x0]['getJoined'](_0x535d45);if(_0x2d3929){_0x1a7f73[0x0]=_0x2d3929;continue;}}_0x1a7f73['push'](_0x535d45);}_0xaf6d1['push']([_0x4881bd['view'],_0x1a7f73]);}return _0xaf6d1;}),this['listenTo'](_0x3f46f2,'suggestionLoaded',(_0x1aa6cf,_0x17e461)=>{this['listenTo'](_0x17e461,'change:previous',(_0x40a15a,_0x128acb,_0x2c6649,_0x35caca)=>{_0x17e461['isInContent']&&(null==_0x2c6649?(this['_updateController'](_0x35caca['head']),this['_handleSuggestionControllerDelayed'](_0x17e461,!0x1)):(this['_updateController'](_0x2c6649['head']),null==_0x35caca&&this['_handleSuggestionControllerDelayed'](_0x17e461,!0x0)));}),null!==_0x17e461['previous']?this['_updateController'](_0x17e461['head']):this['_handleSuggestionControllerDelayed'](_0x17e461,!0x1);}),this['listenTo'](_0x3f46f2,'suggestionUnloaded',(_0x16cdf2,_0x4103b5,_0x1b110c)=>{this['stopListening'](_0x4103b5,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4103b5),this['_suggestionToController']['has'](_0x4103b5)&&this['_destroyController'](_0x4103b5),_0x1b110c&&this['_updateController'](_0x1b110c['head']);}),this['listenTo'](_0x3f46f2,'suggestionChanged',(_0x7cb2eb,_0x54650a)=>{this['_updateController'](_0x54650a);}),this['listenTo'](_0x1152d7,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x251966,'addComment',(_0x2dfba1,{threadId:_0x1520df,isFromAdapter:_0x78fffe})=>{if(_0x78fffe||!_0x3f46f2['hasSuggestion'](_0x1520df))return;const _0x5c04e4=_0x3f46f2['getSuggestion'](_0x1520df);this['_suggestionToController']['get'](_0x5c04e4)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x21922d=this['editor']['plugins']['get']('Annotations'),_0x5dd08e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d8f4d=Array['from'](_0x21922d['activeAnnotations'],_0x52f6b6=>_0x52f6b6['innerView'])['filter'](_0x52c2d0=>this['_viewToController']['has'](_0x52c2d0)),_0x51de14=[];for(const _0x5c7353 of _0x4d8f4d){const _0x50bea1=this['_viewToController']['get'](_0x5c7353)['model']['getAllAdjacentSuggestions']();_0x51de14['push'](..._0x50bea1['reduce']((_0x1a7f29,_0x5dd8c4)=>[..._0x1a7f29,..._0x5dd8c4['getMarkerNames']()],[]));}_0x5dd08e['activeMarkers']=_0x51de14;}['_addUIComponentsToFactory'](){const _0x45e5a2=this['editor'],_0xef9b10=_0x45e5a2['locale'],_0xeb5543=o(_0xef9b10,'Track\x20changes'),_0x2d9e77=new Wt([{'type':'switchbutton','model':new _0x5bf8f3({'withText':!0x0,'isToggleable':!0x0,'label':_0xeb5543,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5bf8f3({'withText':!0x0,'label':o(_0xef9b10,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5bf8f3({'withText':!0x0,'label':o(_0xef9b10,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5bf8f3({'withText':!0x0,'label':o(_0xef9b10,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5bf8f3({'withText':!0x0,'label':o(_0xef9b10,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x55e03b of _0x2d9e77)if(me(_0x55e03b)){const _0x44f033=_0x45e5a2['commands']['get'](_0x55e03b['model']['commandName']);_0x55e03b['model']['bind']('isOn','isEnabled')['to'](_0x44f033,'value','isEnabled');}_0x45e5a2['ui']['componentFactory']['add']('trackChanges',_0x319ae2=>this['_createToolbarButton'](_0x319ae2,_0x2d9e77,_0xeb5543)),_0x45e5a2['ui']['componentFactory']['add']('menuBar:trackChanges',_0x57c309=>this['_createMenuBarMenu'](_0x57c309,_0x2d9e77,_0xeb5543));}['_createToolbarButton'](_0x2530b7,_0x10c217,_0x4e8825){const _0x556341=Qt(_0x2530b7,_0x7268c3),_0x10fdc6=this['editor']['commands']['get']('trackChanges');_0x556341['buttonView']['set']({'tooltip':_0x4e8825,'label':_0x4e8825,'icon':he}),_0x556341['buttonView']['bind']('isOn')['to'](_0x10fdc6,'value'),_0x556341['buttonView']['on']('execute',()=>{_0x10fdc6['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x556341,_0x10c217,{'role':'menu'});const _0x58d438=[];for(const _0x31e5de of _0x10c217)me(_0x31e5de)&&_0x58d438['push'](this['editor']['commands']['get'](_0x31e5de['model']['commandName']));const _0x361443=_0x556341['buttonView'];return _0x361443['actionView']['unbind']('isEnabled'),_0x361443['arrowView']['unbind']('isEnabled'),_0x361443['actionView']['bind']('isEnabled')['to'](_0x10fdc6,'isEnabled'),_0x361443['arrowView']['bind']('isEnabled')['toMany'](_0x58d438,'isEnabled',(..._0xbb99bd)=>_0xbb99bd['some'](_0x4124a8=>_0x4124a8)),_0x556341['on']('execute',_0x1821fc=>{this['editor']['execute'](_0x1821fc['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x556341;}['_createMenuBarMenu'](_0x224b1b,_0x4a6489,_0x1f44f8){const _0x3c135a=new Yt(_0x224b1b),_0x7710b5=this['editor']['commands']['get']('trackChanges');_0x3c135a['buttonView']['set']({'label':_0x1f44f8,'icon':he});const _0x1e85b0=new Zt(_0x224b1b);for(const _0x5c8dda of _0x4a6489){if('separator'==_0x5c8dda['type']){_0x1e85b0['items']['add'](new Xt(_0x224b1b));continue;}const _0x3955e1=new te(_0x224b1b,_0x3c135a),_0x4feb12=new _0x283d7f(_0x224b1b),_0x1d3af2=_0x5c8dda['model'];_0x4feb12['bind'](...Object['keys'](_0x1d3af2))['to'](_0x1d3af2),_0x4feb12['delegate']('execute')['to'](_0x3c135a),_0x4feb12['on']('execute',()=>{this['editor']['execute'](_0x1d3af2['commandName']),this['editor']['editing']['view']['focus']();}),_0x3955e1['children']['add'](_0x4feb12),_0x1e85b0['items']['add'](_0x3955e1);}return _0x3c135a['bind']('isEnabled')['to'](_0x7710b5,'isEnabled'),_0x3c135a['panelView']['children']['add'](_0x1e85b0),_0x3c135a;}['_initializeController'](_0x33661e){const _0x420e9c=this['editor'],_0x2b00b5=_0x420e9c['config'],_0x149f89=_0x420e9c['plugins']['get']('Annotations'),_0xa9ae2b=_0x420e9c['plugins']['get']('CommentsRepository'),_0x279abb=_0x420e9c['plugins']['get']('EditorAnnotations'),_0x76971e=_0x420e9c['plugins']['get'](_0x2c0b1d)['me'],_0x1fb160=_0x2b00b5['get']('trackChanges')['SuggestionThreadView'],_0x3b6e1f=_0x2b00b5['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3ee377,CommentThreadInputView:_0x102160}=_0x420e9c['plugins']['get']('CommentsUI');let _0x19f5bf,_0x32dbc2,_0x5be81b;this['_annotationViews']['has'](_0x33661e['id'])?(_0x32dbc2=this['_annotationViews']['get'](_0x33661e['id']),_0x19f5bf=_0x32dbc2['mainView']):(_0x19f5bf=new _0x1fb160(_0x420e9c['locale'],_0x33661e,_0x76971e,{'disableComments':this['_disableComments'],'editorConfig':_0x2b00b5['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2b00b5['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2b00b5['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2b00b5['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1b61e2(_0x2b00b5['get']('locale')),'CommentView':_0x2b00b5['get']('comments')['CommentView'],'CommentsListView':_0x3ee377,'CommentThreadInputView':_0x102160,'SuggestionView':_0x3b6e1f}),_0x19f5bf['suggestionView']['acceptButton']['on']('execute',()=>{_0x420e9c['editing']['view']['focus']();}),_0x19f5bf['suggestionView']['discardButton']['on']('execute',()=>{_0x420e9c['editing']['view']['focus']();}),_0x32dbc2=_0x149f89['createAnnotationView'](this['editor']['locale'],_0x19f5bf),_0x32dbc2['bind']('isDirty')['to'](_0x19f5bf,'isDirty'),_0x32dbc2['bind']('length')['to'](_0x19f5bf),_0x32dbc2['bind']('type')['to'](_0x19f5bf,'type',_0x5cb4af=>'suggestion-'+_0x5cb4af),_0x19f5bf['on']('escape',()=>{_0x5be81b['fire']('escape');}),this['_annotationViews']['set'](_0x33661e['id'],_0x32dbc2));const _0xdfb865=_0xa9ae2b['createCommentThreadController'](_0x33661e['commentThread'],_0x19f5bf),_0x431a67=new ae(_0x420e9c,_0x33661e,_0x19f5bf,_0xdfb865),_0x1e2822=_0x33661e['getAllAdjacentSuggestions']()['filter'](_0x4f84f7=>_0x4f84f7['isInContent']);_0x19f5bf['descriptionParts']=_0x420e9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1e2822),this['_suggestionToController']['set'](_0x33661e,_0x431a67),this['_viewToController']['set'](_0x19f5bf,_0x431a67),_0x5be81b=_0x149f89['createAnnotation']({'view':_0x32dbc2,'target':()=>{const _0x6f61f5=[],_0x2d0125=_0x33661e['getAllAdjacentSuggestions']()['filter'](_0x31d976=>_0x31d976['isInContent']);for(const _0x33b795 of _0x2d0125)_0x6f61f5['push'](..._0x33b795['getMarkers']());return _0x58809b(_0x420e9c['editing'],_0x6f61f5);},'type':()=>'suggestion-'+_0x431a67['view']['type']}),_0xa9ae2b['_bindAnnotationToEditors'](_0x19f5bf,_0x5be81b),_0x149f89['add'](_0x5be81b),_0x279abb['registerAnnotation'](_0x5be81b);}['_destroyController'](_0x470e96){const _0xfaf549=this['editor']['plugins']['get']('CommentsRepository'),_0x506330=this['editor']['plugins']['get']('Annotations'),_0x1fea3b=this['_suggestionToController']['get'](_0x470e96),_0x39ce15=_0x1fea3b['view'],_0x309f4a=_0x506330['getByInnerView'](_0x39ce15);_0xfaf549['_unbindEditors'](_0x39ce15),_0x309f4a&&_0x506330['remove'](_0x309f4a),this['_suggestionToController']['delete'](_0x470e96),this['_viewToController']['delete'](_0x39ce15),_0x1fea3b['destroy']();}['_updateController'](_0x3104e){if(!_0x3104e['isInContent']||!this['_suggestionToController']['has'](_0x3104e))return;const _0x5d5908=this['editor']['plugins']['get']('TrackChangesEditing'),_0x408a83=this['_suggestionToController']['get'](_0x3104e),_0x56f25e=_0x3104e['getAllAdjacentSuggestions']();_0x408a83['view']['descriptionParts']=_0x5d5908['descriptionFactory']['getDescriptions'](_0x56f25e);}['destroy'](){for(const _0x12d099 of this['_suggestionToController']['keys']())this['_destroyController'](_0x12d099);for(const _0x3a9b1f of this['_annotationViews']['values']())_0x3a9b1f['mainView']['destroy']();super['destroy']();}}function me(_0x2f9b42){return'model'in _0x2f9b42;}class k extends _0x8c8d34{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4c5208){this['editor']['plugins']['get'](p)['adapter']=_0x4c5208;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x93fd7b){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x93fd7b);}['getSuggestions']({skipNotAttached:_0x116d2a=!0x1,toJSON:_0x56ad0d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x116d2a,'toJSON':_0x56ad0d});}['getSuggestion'](_0x1c9c38){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1c9c38);}}const T=['Pagination'];class P extends _0x8c8d34{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x340d05=this['editor'];if(_0x340d05['config']['define']('trackChangesData.editorCreator',_0x3bcd56=>{const _0x19bb2e=_0x340d05['model']['document']['getRootNames']()['reduce']((_0x1878d6,_0x2aec7f)=>(_0x1878d6[_0x2aec7f]='',_0x1878d6),{});return _0x340d05['constructor']['create'](_0x19bb2e,_0x3bcd56);}),'function'!=typeof _0x340d05['config']['get']('trackChangesData')['editorCreator'])throw new _0x153977('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x206ae4){return N(this['editor'],!0x0,_0x206ae4);}['getDataWithDiscardedSuggestions'](_0x70247e){return N(this['editor'],!0x1,_0x70247e);}}class D extends _0x8c8d34{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x3aa9d1){super(_0x3aa9d1),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(_0x100c42){return void 0x0!==_0x100c42['getRootsAttributes'];}async function N(_0x1cf109,_0x198986,_0x29f399){const _0x52e565=_0x2cb0fa(_0x1cf109,T);_0x52e565['plugins']['push'](p,D),_0x52e565['rootsAttributes']=v(_0x1cf109)?_0x1cf109['getRootsAttributes']():void 0x0;const _0x4d19a0=document['createDocumentFragment'](),_0x296e3f=_0x1cf109['config']['get']('trackChangesData')['editorCreator'],_0x23b9bf=await _0x296e3f(_0x52e565,()=>function(_0x227c69){const _0x38e6f4=document['createElement']('div');return _0x227c69['appendChild'](_0x38e6f4),_0x38e6f4;}(_0x4d19a0));!function(_0x28ea15,_0xa22d4a){const _0x33ca0f=_0x28ea15['model']['document']['getRootNames']()['reduce']((_0x37b12c,_0x3b100c)=>(_0x37b12c[_0x3b100c]=_0x28ea15['data']['get']({'rootName':_0x3b100c}),_0x37b12c),{}),_0x3423cb=_0x28ea15['plugins']['get']('Users')['users']['map'](_0x2397a1=>({'id':_0x2397a1['id'],'name':_0x2397a1['name']})),_0x37498c=_0x28ea15['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4a2428=_0x28ea15['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x36fc25=_0xa22d4a['plugins']['get']('Users'),_0x400afa=_0xa22d4a['plugins']['get']('TrackChangesEditing'),_0x1ab1c5=_0xa22d4a['plugins']['get']('CommentsRepository');for(const _0x39aa97 of _0x1ab1c5['getCommentThreads']())_0x39aa97['remove']();for(const _0x3a5d80 of _0x3423cb)_0x36fc25['getUser'](_0x3a5d80['id'])||_0x36fc25['addUser'](_0x3a5d80);_0x36fc25['me']||_0x36fc25['useAnonymousUser']();for(const _0x19402d of _0x4a2428)_0x1ab1c5['addCommentThread'](_0x19402d);for(const _0x237c4a of _0x37498c)_0x400afa['addSuggestionData'](_0x237c4a);_0xa22d4a['data']['set'](_0x33ca0f);}(_0x1cf109,_0x23b9bf),_0x23b9bf['execute'](_0x198986?'acceptAllSuggestions':'discardAllSuggestions');const _0x1ebf66=v(_0x23b9bf)?_0x23b9bf['getFullData'](_0x29f399):_0x23b9bf['data']['get'](_0x29f399);return await _0x23b9bf['destroy'](),_0x1ebf66;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};